/* ============================================================
   BerberimPro — Tasarım Sistemi
   Tek dosya: tokenlar, temel, bileşenler, landing, panel, booking.
   Dış bağımlılık yok; Inter fontu yerel woff2 dosyalarından yüklenir.
   ============================================================ */

/* ---------- Yerel fontlar ---------- */
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 400; font-display: swap;
  src: url('../fonts/inter/inter-v20-latin_latin-ext-regular.woff2') format('woff2'); }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 500; font-display: swap;
  src: url('../fonts/inter/inter-v20-latin_latin-ext-500.woff2') format('woff2'); }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 600; font-display: swap;
  src: url('../fonts/inter/inter-v20-latin_latin-ext-600.woff2') format('woff2'); }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 700; font-display: swap;
  src: url('../fonts/inter/inter-v20-latin_latin-ext-700.woff2') format('woff2'); }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 800; font-display: swap;
  src: url('../fonts/inter/inter-v20-latin_latin-ext-800.woff2') format('woff2'); }

/* ---------- Tokenlar ---------- */
:root {
  --primary: #0f766e;
  --primary-rgb: 15, 118, 110;
  --primary-tint: #f0fdfa;
  --primary-accent: #14b8a6;
  --primary-deep: #134e4a;
  --primary-dark: #115e59;
  --primary-light: #ccfbf1;
  --ink: #0f172a;
  --ink-soft: #334155;
  --muted: #64748b;
  --line: #e2e8f0;
  --bg: #f8fafc;
  --card: #ffffff;
  --success: #16a34a;
  --success-bg: #dcfce7;
  --danger: #dc2626;
  --danger-bg: #fee2e2;
  --warning: #d97706;
  --warning-bg: #fef3c7;
  --info: #2563eb;
  --info-bg: #dbeafe;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 1px 3px rgba(15, 23, 42, .08), 0 4px 16px rgba(15, 23, 42, .06);
  --shadow-lg: 0 8px 30px rgba(15, 23, 42, .14);
  --font: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  /* iPhone çentik / Dinamik Ada ve yatay moddaki kenar boşlukları */
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-left: env(safe-area-inset-left, 0px);
  --safe-right: env(safe-area-inset-right, 0px);
  --gutter: 20px;
}

/* ---------- Reset & temel ---------- */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; font-family: var(--font); font-size: 15.5px; line-height: 1.55;
  color: var(--ink); background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4 { line-height: 1.25; margin: 0 0 .5em; font-weight: 700; }
p { margin: 0 0 1em; }
a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }
img, svg { vertical-align: middle; }
code { background: var(--primary-light); padding: 2px 8px; border-radius: 6px; font-size: .9em; word-break: break-all; }
hr.divider { border: 0; border-top: 1px solid var(--line); margin: 1.2rem 0; }
.muted { color: var(--muted); }
.text-danger { color: var(--danger); }
.icon { flex-shrink: 0; }

.container {
  max-width: 1120px; margin: 0 auto;
  padding: 0 max(var(--gutter), var(--safe-right)) 0 max(var(--gutter), var(--safe-left));
}
.container-narrow { max-width: 760px; }
.page-pad { padding: 40px 20px 64px; }
.hide-mobile { }

/* ---------- Butonlar ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 11px 20px; border-radius: var(--radius-sm); border: 1px solid transparent;
  font: 600 14.5px var(--font); cursor: pointer; text-decoration: none !important;
  transition: background .15s, border-color .15s, transform .1s, box-shadow .15s;
  min-height: 44px; /* dokunma hedefi */
}
.btn:active { transform: scale(.98); }
.btn-primary { background: var(--primary); color: #fff; box-shadow: 0 2px 8px rgba(var(--primary-rgb), .3); }
.btn-primary:hover { background: var(--primary-dark); }
.btn-outline { background: #fff; color: var(--primary); border-color: var(--primary); }
.btn-outline:hover { background: var(--primary-light); }
.btn-ghost { background: transparent; color: var(--ink-soft); }
.btn-ghost:hover { background: var(--line); }
.btn-success { background: var(--success); color: #fff; }
.btn-success:hover { filter: brightness(.93); }
.btn-danger { background: var(--danger); color: #fff; }
.btn-danger:hover { filter: brightness(.93); }
.btn-info { background: var(--info); color: #fff; }
.btn-info:hover { filter: brightness(.93); }
.btn-sm { padding: 7px 13px; font-size: 13.5px; min-height: 36px; }
.btn-lg { padding: 14px 28px; font-size: 16px; }
.btn-block { width: 100%; }
.btn-row { display: flex; gap: 10px; flex-wrap: wrap; }
.btn-icon {
  position: relative; display: inline-flex; align-items: center; justify-content: center;
  width: 42px; height: 42px; border: 0; border-radius: 50%;
  background: transparent; color: var(--ink-soft); cursor: pointer;
}
.btn-icon:hover { background: var(--line); }
.link-button { background: none; border: 0; color: var(--primary); font: 500 13px var(--font); cursor: pointer; }
.link-more { font-size: 13.5px; font-weight: 600; }

/* ---------- Rozetler ---------- */
.badge {
  display: inline-flex; align-items: center; gap: 5px; padding: 4px 11px;
  border-radius: 99px; font-size: 12.5px; font-weight: 600; white-space: nowrap;
}
.badge-success { background: var(--success-bg); color: #15803d; }
.badge-danger { background: var(--danger-bg); color: #b91c1c; }
.badge-warning { background: var(--warning-bg); color: #b45309; }
.badge-info { background: var(--info-bg); color: #1d4ed8; }
.badge-muted { background: var(--line); color: var(--muted); }

/* ---------- Formlar ---------- */
label { display: block; font-size: 14px; font-weight: 600; color: var(--ink-soft); }
label small { font-weight: 400; color: var(--muted); }
input, select, textarea {
  width: 100%; margin-top: 6px; padding: 11px 13px;
  border: 1.5px solid var(--line); border-radius: var(--radius-sm);
  font: 400 15px var(--font); color: var(--ink); background: #fff;
  transition: border-color .15s, box-shadow .15s;
}
input:focus, select:focus, textarea:focus {
  outline: none; border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(var(--primary-rgb), .14);
}
input:disabled { background: var(--bg); color: var(--muted); }
textarea { resize: vertical; }
.form-stack { display: flex; flex-direction: column; gap: 15px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; }
.form-grid .form-span { grid-column: 1 / -1; }
.form-inline { display: flex; gap: 12px; }
.form-inline label { flex: 1; }
.check-group { border: 1.5px solid var(--line); border-radius: var(--radius-sm); padding: 12px 14px; }
.check-group legend { font-size: 13.5px; font-weight: 600; color: var(--ink-soft); padding: 0 6px; }
.check-item { display: flex; align-items: center; gap: 9px; font-weight: 500; padding: 6px 0; cursor: pointer; }
.check-item input { width: 18px; height: 18px; margin: 0; accent-color: var(--primary); }
.filter-bar {
  display: flex; gap: 10px; flex-wrap: wrap; align-items: center;
  background: var(--card); padding: 13px; border-radius: var(--radius);
  box-shadow: var(--shadow); margin-bottom: 18px;
}
.filter-bar select, .filter-bar input { width: auto; margin: 0; min-width: 140px; }

/* ---------- Kartlar & listeler ---------- */
.card {
  background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 24px; margin-bottom: 20px;
}
.card-narrow { max-width: 640px; }
.card-list { display: flex; flex-direction: column; gap: 10px; }
.row-card {
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
  background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 14px 18px;
}
.row-card .row-body { flex: 1; min-width: 180px; display: flex; flex-direction: column; gap: 2px; }
.row-card .row-body small { color: var(--muted); }
.row-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.row-inactive { opacity: .55; }
.row-price { font-size: 17px; color: var(--primary); }
.page-actions { display: flex; justify-content: flex-end; margin-bottom: 18px; }
.detail-list { margin: 0 0 18px; }
.detail-list > div { display: flex; gap: 12px; padding: 7px 0; border-bottom: 1px dashed var(--line); }
.detail-list dt { width: 90px; color: var(--muted); font-size: 14px; flex-shrink: 0; }
.detail-list dd { margin: 0; font-weight: 600; }

.avatar {
  display: inline-flex; align-items: center; justify-content: center;
  width: 42px; height: 42px; border-radius: 50%; flex-shrink: 0;
  background: var(--primary-light); color: var(--primary-dark);
  font-weight: 700; font-size: 17px;
}
.avatar-lg { width: 54px; height: 54px; font-size: 21px; }

.empty-state {
  text-align: center; padding: 44px 20px; color: var(--muted);
  background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow);
  display: flex; flex-direction: column; align-items: center; gap: 12px;
}
.empty-state .icon { color: #cbd5e1; }
.error-state h1 { font-size: 64px; color: var(--primary); margin: 0; }

.table-wrap { overflow-x: auto; background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); }
.data-table { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.data-table th {
  text-align: left; padding: 13px 16px; font-size: 12.5px; text-transform: uppercase;
  letter-spacing: .04em; color: var(--muted); border-bottom: 2px solid var(--line);
}
.data-table td { padding: 13px 16px; border-bottom: 1px solid var(--line); }
.data-table tr:last-child td { border-bottom: 0; }

/* ---------- Toast bildirimleri ---------- */
#toast-container {
  position: fixed; top: calc(16px + var(--safe-top)); left: 50%; transform: translateX(-50%);
  z-index: 1000; display: flex; flex-direction: column; gap: 8px;
  width: min(94vw, 440px); pointer-events: none;
}
.toast {
  padding: 13px 18px; border-radius: var(--radius-sm); font-weight: 600; font-size: 14.5px;
  box-shadow: var(--shadow-lg); animation: toast-in .3s ease; pointer-events: auto;
  background: var(--ink); color: #fff;
}
.toast-success { background: var(--success); }
.toast-error { background: var(--danger); }
.toast.fade-out { opacity: 0; transition: opacity .4s; }
@keyframes toast-in { from { opacity: 0; transform: translateY(-12px); } }

/* ============================================================
   PUBLIC — header, footer, auth, dizin
   ============================================================ */
.site-header {
  background: rgba(255, 255, 255, .92); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 100;
  padding-top: var(--safe-top); /* PWA: içerik saat/Dinamik Ada altına girmesin */
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 62px; }
.brand {
  display: inline-flex; align-items: center; gap: 9px;
  font-weight: 800; font-size: 19px; color: var(--ink); text-decoration: none !important;
}
.brand .icon { color: var(--primary); }
.brand-muted { color: var(--muted); font-size: 16px; }
.header-nav { display: flex; align-items: center; gap: 18px; }
.nav-link { color: var(--ink-soft); font-weight: 600; font-size: 14.5px; }
.public-main { min-height: calc(100vh - 200px); }
.site-footer { border-top: 1px solid var(--line); background: var(--card); }
.footer-inner { padding: 22px 20px; display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; }
.footer-inner p { margin: 0; color: var(--muted); font-size: 13.5px; }

.auth-wrap { display: flex; justify-content: center; padding: 48px 20px 72px; }
.auth-card {
  width: 100%; max-width: 430px; background: var(--card);
  border-radius: 16px; box-shadow: var(--shadow-lg); padding: 34px 30px;
}
.auth-card h1 { font-size: 26px; }
.auth-sub { color: var(--muted); margin-bottom: 22px; }
.auth-alt, .auth-note { text-align: center; font-size: 14px; color: var(--muted); margin: 16px 0 0; }

.biz-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; }
.biz-card {
  display: flex; align-items: center; gap: 15px; padding: 20px;
  background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow);
  text-decoration: none !important; color: var(--ink);
  transition: transform .15s, box-shadow .15s;
}
.biz-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.biz-avatar {
  width: 52px; height: 52px; border-radius: 14px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff; font-weight: 800; font-size: 21px;
}
.biz-avatar-lg { width: 64px; height: 64px; font-size: 26px; }
.biz-info { flex: 1; min-width: 0; }
.biz-info h3 { margin: 0 0 4px; font-size: 17px; }
.biz-meta { display: flex; align-items: center; gap: 6px; color: var(--muted); font-size: 13.5px; margin: 0 0 2px; }
.biz-cta { color: var(--primary); }

/* ============================================================
   LANDING
   ============================================================ */
.landing-body { background: #fff; }
.hero {
  background:
    radial-gradient(1000px 500px at 85% -10%, rgba(var(--primary-rgb), .16), transparent),
    radial-gradient(700px 400px at -10% 110%, rgba(var(--primary-rgb), .1), transparent),
    linear-gradient(180deg, var(--primary-tint), #ffffff 75%);
  padding: 66px 0 76px;
}
.hero-inner { display: grid; grid-template-columns: 1.15fr .85fr; gap: 48px; align-items: center; }
.hero-eyebrow {
  display: inline-block; background: var(--primary-light); color: var(--primary-dark);
  font-weight: 700; font-size: 13.5px; padding: 6px 14px; border-radius: 99px; margin-bottom: 18px;
}
.hero h1 { font-size: clamp(32px, 5vw, 52px); font-weight: 800; letter-spacing: -.02em; }
.hero h1 em { font-style: normal; color: var(--primary); }
.hero-sub { font-size: 17.5px; color: var(--ink-soft); max-width: 520px; margin-bottom: 26px; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 24px; }
.hero-badges { display: flex; gap: 20px; flex-wrap: wrap; list-style: none; padding: 0; margin: 0; }
.hero-badges li { display: flex; align-items: center; gap: 7px; color: var(--ink-soft); font-size: 14px; font-weight: 500; }
.hero-badges .icon { color: var(--success); }

/* Hero telefon mockup'ı */
.hero-visual { display: flex; justify-content: center; }
.mock-phone {
  width: 290px; padding: 14px; border-radius: 38px;
  background: var(--ink); box-shadow: var(--shadow-lg), 0 30px 60px rgba(15, 23, 42, .25);
  transform: rotate(3deg);
}
.mock-screen { background: var(--bg); border-radius: 26px; padding: 18px 14px; display: flex; flex-direction: column; gap: 12px; }
.mock-header { display: flex; align-items: center; gap: 7px; font-weight: 800; font-size: 15px; }
.mock-header .icon { color: var(--primary); }
.mock-card {
  display: flex; align-items: center; gap: 10px; background: #fff;
  border-radius: 14px; padding: 12px; box-shadow: var(--shadow); font-size: 12.5px;
}
.mock-card strong { display: block; font-size: 13.5px; }
.mock-card small { color: var(--muted); }
.mock-card > div { flex: 1; }
.mock-avatar {
  width: 34px; height: 34px; border-radius: 50%; background: var(--primary-light);
  color: var(--primary-dark); display: flex; align-items: center; justify-content: center; font-weight: 700;
}
.mock-slots { display: grid; grid-template-columns: repeat(3, 1fr); gap: 7px; }
.mock-slots span {
  text-align: center; padding: 8px 0; border-radius: 9px; font-size: 12.5px; font-weight: 600;
  background: #fff; box-shadow: var(--shadow); color: var(--ink-soft);
}
.mock-slots .taken { opacity: .35; text-decoration: line-through; }
.mock-slots .active { background: var(--primary); color: #fff; }
.mock-btn {
  background: var(--primary); color: #fff; text-align: center; font-weight: 700;
  font-size: 13.5px; padding: 11px; border-radius: 11px;
}
.mock-notif {
  display: flex; align-items: center; gap: 7px; background: var(--ink); color: #fff;
  font-size: 12px; font-weight: 600; padding: 9px 12px; border-radius: 10px;
}

.section { padding: 72px 0; }
.section-alt { background: var(--bg); }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 44px; }
.section-head h1, .section-head h2 { font-size: clamp(26px, 3.5vw, 36px); letter-spacing: -.01em; }
.section-head p { color: var(--muted); font-size: 16.5px; }

.feature-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 18px; }
.feature-card {
  background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 26px 22px;
  transition: transform .15s, box-shadow .15s;
}
.feature-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.feature-icon {
  width: 48px; height: 48px; border-radius: 13px; margin-bottom: 15px;
  background: var(--primary-light); color: var(--primary-dark);
  display: flex; align-items: center; justify-content: center;
}
.feature-card h3 { font-size: 16.5px; }
.feature-card p { color: var(--muted); font-size: 14.5px; margin: 0; }

.steps-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; }
.step-card { background: var(--card); border-radius: 16px; padding: 30px 24px; box-shadow: var(--shadow); position: relative; }
.step-no {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: 50%; margin-bottom: 14px;
  background: var(--primary); color: #fff; font-weight: 800; font-size: 18px;
}
.step-card p { color: var(--muted); font-size: 14.5px; margin: 0; }

.pricing-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; align-items: stretch; }
.price-card {
  background: var(--card); border: 1.5px solid var(--line); border-radius: 18px; padding: 30px 26px;
  display: flex; flex-direction: column; position: relative;
}
.price-featured { border-color: var(--primary); box-shadow: 0 12px 34px rgba(var(--primary-rgb), .16); }
.price-tag {
  position: absolute; top: -13px; left: 50%; transform: translateX(-50%);
  background: var(--primary); color: #fff; font-size: 12.5px; font-weight: 700;
  padding: 4px 16px; border-radius: 99px; white-space: nowrap;
}
.price-card h3 { font-size: 17px; color: var(--muted); }
.price { font-size: 17px; color: var(--muted); margin-bottom: 18px; }
.price span { font-size: 38px; font-weight: 800; color: var(--ink); }
.price-card ul { list-style: none; padding: 0; margin: 0 0 24px; flex: 1; }
.price-card li { display: flex; align-items: center; gap: 9px; padding: 7px 0; font-size: 14.5px; }
.price-card li .icon { color: var(--success); }
.pricing-note { text-align: center; color: var(--muted); font-size: 13px; margin-top: 20px; }

.faq-item {
  background: var(--card); border: 1px solid var(--line); border-radius: 13px;
  margin-bottom: 10px; overflow: hidden;
}
.faq-item summary {
  padding: 17px 20px; font-weight: 600; cursor: pointer; list-style: none;
  display: flex; justify-content: space-between; align-items: center;
}
.faq-item summary::after { content: '+'; font-size: 21px; color: var(--primary); font-weight: 400; }
.faq-item[open] summary::after { content: '–'; }
.faq-item p { padding: 0 20px 17px; color: var(--muted); margin: 0; }

.demo-card { background: var(--card); border-radius: 20px; box-shadow: var(--shadow-lg); padding: 40px 34px; }
.landing-footer { background: var(--ink); border: 0; }
.footer-grid {
  display: grid; grid-template-columns: 1.8fr 1fr 1.4fr 1.3fr 1fr; gap: 30px; padding: 48px 20px 26px;
}
.landing-footer .brand { color: #fff; }
.landing-footer p { color: #94a3b8; font-size: 14px; }
.landing-footer h4 { color: #fff; font-size: 14px; text-transform: uppercase; letter-spacing: .05em; margin-bottom: 13px; }
.landing-footer a { display: flex; align-items: center; gap: 7px; color: #cbd5e1; font-size: 14px; padding: 4px 0; }
.landing-footer .footer-inner { border-top: 1px solid #1e293b; }
.landing-footer .footer-inner p { color: #64748b; }

/* ============================================================
   BOOKING — vitrin + sihirbaz
   ============================================================ */

/* ---------- İşletme temaları ----------
   .tenant-theme sarmalayıcısı CSS değişkenlerini ezer; içindeki tüm
   butonlar, slotlar ve vurgular otomatik olarak temaya uyar. */
.tenant-theme { --hero-from: var(--ink); --hero-to: #1e3a37; --hero-link: #99f6e4; }
.theme-altin {
  --primary: #b8860b; --primary-dark: #8a6508; --primary-light: #fdf3d7;
  --hero-from: #0c0a09; --hero-to: #44350b; --hero-link: #fcd34d;
}
.theme-bordo {
  --primary: #b91c1c; --primary-dark: #7f1d1d; --primary-light: #fee2e2;
  --hero-from: #1c1917; --hero-to: #5f1212; --hero-link: #fca5a5;
}
.theme-lacivert {
  --primary: #4f46e5; --primary-dark: #3730a3; --primary-light: #e0e7ff;
  --hero-from: #0f172a; --hero-to: #29277a; --hero-link: #a5b4fc;
}

.booking-hero {
  background: linear-gradient(135deg, var(--hero-from), var(--hero-to));
  color: #fff; padding: 34px 0 30px;
}
.tenant-theme .booking-biz a { color: var(--hero-link); }
.biz-logo {
  width: 68px; height: 68px; border-radius: 16px; object-fit: cover;
  background: #fff; flex-shrink: 0; box-shadow: var(--shadow);
}
.booking-biz { display: flex; align-items: center; gap: 17px; }
.booking-biz h1 { font-size: 24px; margin: 0 0 4px; }
.booking-biz p { margin: 0 0 2px; font-size: 14px; color: #cbd5e1; display: flex; align-items: center; gap: 6px; }
.booking-biz a { color: #99f6e4; }
.booking-desc { margin: 16px 0 0; color: #cbd5e1; font-size: 14.5px; max-width: 640px; }
.booking-wrap { padding: 26px 20px 90px; max-width: 860px; }

.wizard-steps {
  display: flex; gap: 6px; list-style: none; padding: 0; margin: 0 0 24px;
  counter-reset: step;
}
.wizard-steps li {
  flex: 1; text-align: center; font-size: 12.5px; font-weight: 600; color: var(--muted);
  padding: 9px 4px 11px; border-bottom: 3px solid var(--line); position: relative;
}
.wizard-steps li::before {
  content: attr(data-step-label);
  display: block; width: 26px; height: 26px; line-height: 26px; margin: 0 auto 5px;
  border-radius: 50%; background: var(--line); color: var(--muted); font-size: 13px;
}
.wizard-steps li.ws-active { color: var(--primary-dark); border-color: var(--primary); }
.wizard-steps li.ws-active::before { background: var(--primary); color: #fff; }
.wizard-steps li.ws-done { color: var(--primary-dark); border-color: var(--primary-light); }
.wizard-steps li.ws-done::before { content: '✓'; background: var(--primary-light); color: var(--primary-dark); }

.wizard-panel h2 { font-size: 19px; margin-bottom: 16px; }
.wizard-nav { margin-top: 18px; }

.pick-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 12px; }
.pick-card {
  display: flex; align-items: center; gap: 13px; text-align: left; width: 100%;
  background: var(--card); border: 2px solid var(--line); border-radius: 14px;
  padding: 15px; cursor: pointer; font: inherit; color: var(--ink);
  transition: border-color .15s, box-shadow .15s;
}
.pick-card:hover { border-color: var(--primary); box-shadow: var(--shadow); }
.pick-card.selected { border-color: var(--primary); background: var(--primary-tint); }
.pick-body { flex: 1; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.pick-body small { color: var(--muted); display: flex; align-items: center; gap: 5px; }
/* Tanıtım yazısı tek satırda kesilmek yerine iki satıra sarar (mobilde okunaklı) */
.pick-bio {
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden; line-height: 1.35;
}
.pick-price { font-weight: 700; color: var(--primary); font-size: 16px; }

.date-strip { display: grid; grid-template-columns: repeat(auto-fill, minmax(86px, 1fr)); gap: 9px; }
.date-chip {
  border: 2px solid var(--line); background: var(--card); border-radius: 12px;
  padding: 10px 4px; text-align: center; cursor: pointer; font: inherit;
  transition: border-color .15s;
}
.date-chip:hover { border-color: var(--primary); }
.date-chip.selected { border-color: var(--primary); background: var(--primary-tint); }
.date-chip .dc-day { display: block; font-size: 12px; color: var(--muted); font-weight: 600; text-transform: uppercase; }
.date-chip .dc-date { display: block; font-size: 17px; font-weight: 700; }
.date-chip .dc-month { display: block; font-size: 11.5px; color: var(--muted); }

.slot-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(76px, 1fr)); gap: 9px; margin-bottom: 22px; }
.slot-btn {
  border: 2px solid var(--line); background: var(--card); border-radius: 10px;
  padding: 11px 0; text-align: center; font: 600 14.5px var(--font); cursor: pointer;
  transition: border-color .15s, background .15s;
}
.slot-btn:hover { border-color: var(--primary); }
.slot-btn.selected { border-color: var(--primary); background: var(--primary); color: #fff; }

.booking-summary { background: var(--card); border-radius: 16px; box-shadow: var(--shadow); padding: 22px; }
.booking-summary h3 { font-size: 16.5px; margin-bottom: 12px; }
.booking-summary dl { margin: 0 0 15px; }
.booking-summary dl > div { display: flex; justify-content: space-between; padding: 7px 0; border-bottom: 1px dashed var(--line); }
.booking-summary dt { color: var(--muted); font-size: 14px; }
.booking-summary dd { margin: 0; font-weight: 600; }
.booking-note { margin-bottom: 15px; }
.booking-auth-note { background: var(--warning-bg); color: #92400e; padding: 11px 14px; border-radius: 9px; font-size: 14px; font-weight: 600; }

.booking-done {
  text-align: center; background: var(--card); border-radius: 18px;
  box-shadow: var(--shadow-lg); padding: 46px 26px;
}

/* Misafir randevu alanları */
.guest-fields { display: flex; flex-direction: column; gap: 13px; margin-bottom: 15px; }
.guest-alt { text-align: center; color: var(--muted); font-size: 13.5px; margin: 12px 0 0; }

/* ---------- Abonelik & ödeme ---------- */
.alert-banner {
  display: flex; gap: 13px; align-items: flex-start;
  border-radius: var(--radius); padding: 15px 18px; margin-bottom: 20px;
  font-size: 14.5px; box-shadow: var(--shadow);
}
.alert-banner strong { display: inline; }
.alert-banner-danger { background: var(--danger-bg); color: #7f1d1d; }
.alert-banner-danger .icon { color: var(--danger); }
.alert-banner-warning { background: var(--warning-bg); color: #78350f; }
.alert-banner-warning .icon { color: var(--warning); }
.pay-total {
  background: var(--primary-light); color: var(--primary-dark);
  border-radius: var(--radius-sm); padding: 12px 15px; font-size: 15px;
}
.pay-total strong { font-size: 18px; }

/* ---------- Tema seçici ---------- */
.theme-picker { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 11px; }
.theme-option {
  display: flex; flex-direction: column; gap: 8px; align-items: center;
  border: 2px solid var(--line); border-radius: 13px; padding: 12px 10px;
  cursor: pointer; font-size: 13px; text-align: center;
  transition: border-color .15s;
}
.theme-option:hover { border-color: var(--primary); }
.theme-option.selected { border-color: var(--primary); background: var(--primary-tint); }
.theme-option input { position: absolute; opacity: 0; width: 0; height: 0; margin: 0; }
.theme-preview {
  width: 100%; height: 54px; border-radius: 9px; overflow: hidden;
  background: var(--bg); border: 1px solid var(--line);
  display: flex; flex-direction: column; position: relative;
}
.theme-preview .tp-hero { height: 26px; background: linear-gradient(135deg, var(--sw-from), var(--sw-to)); }
.theme-preview .tp-dot {
  position: absolute; left: 8px; top: 18px; width: 16px; height: 16px;
  border-radius: 50%; background: var(--sw-accent); border: 2px solid #fff;
}
.theme-preview .tp-bar {
  margin: 12px 8px 0 32px; height: 7px; border-radius: 4px; background: var(--sw-accent); opacity: .8;
}
.theme-swatch-klasik   { --sw-from: #0f172a; --sw-to: #1e3a37; --sw-accent: #0f766e; }
.theme-swatch-altin    { --sw-from: #0c0a09; --sw-to: #44350b; --sw-accent: #b8860b; }
.theme-swatch-bordo    { --sw-from: #1c1917; --sw-to: #5f1212; --sw-accent: #b91c1c; }
.theme-swatch-lacivert { --sw-from: #0f172a; --sw-to: #29277a; --sw-accent: #4f46e5; }

.logo-current { display: flex; align-items: center; gap: 16px; margin-bottom: 6px; }
.logo-current img {
  width: 74px; height: 74px; border-radius: 14px; object-fit: cover;
  border: 1px solid var(--line); background: #fff;
}

/* ---------- Günlük takvim ---------- */
.cal-toolbar {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; flex-wrap: wrap; margin-bottom: 8px;
}
.cal-nav { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.cal-datepick input { margin: 0; width: 160px; }
.cal-date-label { color: var(--muted); font-weight: 600; margin: 0 0 14px; }
.cal-wrap {
  display: flex; gap: 14px; overflow-x: auto; padding-bottom: 8px;
  -webkit-overflow-scrolling: touch;
}
.cal-single .cal-column { max-width: 520px; }
.cal-column { flex: 1; min-width: 240px; }
.cal-column-head {
  background: var(--ink); color: #fff; font-weight: 700; font-size: 14px;
  text-align: center; padding: 9px; border-radius: 12px 12px 0 0;
}
.cal-grid {
  position: relative; background: var(--card); border: 1px solid var(--line);
  border-top: 0; border-radius: 0 0 12px 12px; overflow: hidden;
}
.cal-hour {
  position: absolute; left: 0; right: 0; border-top: 1px dashed var(--line);
  font-size: 10.5px; color: var(--muted);
}
.cal-hour span { position: absolute; top: 1px; left: 5px; }
.cal-appt {
  position: absolute; left: 44px; right: 6px; overflow: hidden;
  border-radius: 8px; padding: 3px 8px; font-size: 12px; line-height: 1.3;
  border-left: 3px solid var(--primary); background: var(--primary-light);
  color: var(--ink); box-shadow: var(--shadow);
}
.cal-appt strong { display: block; font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cal-appt small { color: var(--ink-soft); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: block; }
.cal-pending   { border-left-color: var(--warning); background: var(--warning-bg); }
.cal-completed { border-left-color: var(--info); background: var(--info-bg); opacity: .75; }
.cal-hint { font-size: 13px; margin-top: 10px; }

/* ---------- Rapor çubuk grafikleri ---------- */
.bar-chart {
  display: flex; align-items: flex-end; gap: 6px;
  height: 190px; padding-top: 10px;
}
.bar-item {
  flex: 1; display: flex; flex-direction: column; align-items: center;
  justify-content: flex-end; gap: 4px; min-width: 0;
}
.bar {
  width: 100%; max-width: 42px; border-radius: 6px 6px 2px 2px;
  background: linear-gradient(180deg, var(--primary), var(--primary-dark));
}
.bar-alt { background: linear-gradient(180deg, #64748b, #334155); }
.bar-value { font-size: 10.5px; font-weight: 700; color: var(--ink-soft); white-space: nowrap; }
.bar-label { font-size: 10px; color: var(--muted); white-space: nowrap; }

/* ---------- Müşteri detayı ---------- */
.customer-head { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.customer-totals { display: flex; gap: 22px; margin-left: auto; text-align: center; }
.customer-totals strong { display: block; font-size: 20px; }
.customer-totals small { color: var(--muted); }
.done-icon {
  width: 72px; height: 72px; margin: 0 auto 18px; border-radius: 50%;
  background: var(--success-bg); color: var(--success);
  display: flex; align-items: center; justify-content: center;
}

/* ============================================================
   PANEL — sidebar + topbar + alt navigasyon
   ============================================================ */
.panel-body { background: var(--bg); }
.panel-shell { display: flex; min-height: 100vh; }
.sidebar {
  width: 250px; flex-shrink: 0; background: var(--ink); color: #e2e8f0;
  display: flex; flex-direction: column; position: sticky; top: 0; height: 100vh;
  padding-top: var(--safe-top); padding-left: var(--safe-left);
}
.sidebar-brand { color: #fff; padding: 21px 22px 15px; font-size: 18px; }
.sidebar-user {
  display: flex; align-items: center; gap: 11px; padding: 13px 22px;
  border-top: 1px solid #1e293b; border-bottom: 1px solid #1e293b; margin-bottom: 9px;
}
.sidebar-user strong { display: block; font-size: 14px; color: #fff; }
.sidebar-user small { color: #94a3b8; font-size: 12px; }
.sidebar-nav { flex: 1; padding: 6px 12px; display: flex; flex-direction: column; gap: 2px; overflow-y: auto; }
.sidebar-link {
  display: flex; align-items: center; gap: 12px; padding: 11px 13px;
  border-radius: 9px; color: #cbd5e1; font-weight: 500; font-size: 14.5px;
  text-decoration: none !important; transition: background .12s, color .12s;
}
.sidebar-link:hover { background: #1e293b; color: #fff; }
.sidebar-link.active { background: var(--primary); color: #fff; }
.sidebar-logout { padding: 12px; border-top: 1px solid #1e293b; }
.as-button { width: 100%; background: none; border: 0; cursor: pointer; font: inherit; }

.panel-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.topbar {
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  background: var(--card); border-bottom: 1px solid var(--line);
  padding: var(--safe-top) max(22px, var(--safe-right)) 0 22px;
  height: calc(62px + var(--safe-top)); position: sticky; top: 0; z-index: 90;
}
.topbar-title { display: flex; align-items: center; gap: 10px; min-width: 0; }
.topbar-title h1 { font-size: 18px; margin: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.topbar-brand-mobile { display: none; color: var(--primary); }
.topbar-actions { display: flex; align-items: center; gap: 6px; }
.panel-content { flex: 1; padding: 24px max(22px, var(--safe-right)) calc(90px + var(--safe-bottom)) 22px; max-width: 1180px; width: 100%; }

.notif-wrap { position: relative; }
.notif-badge {
  position: absolute; top: 2px; right: 2px; min-width: 18px; height: 18px;
  background: var(--danger); color: #fff; font-size: 11px; font-weight: 700;
  border-radius: 99px; display: flex; align-items: center; justify-content: center; padding: 0 5px;
}
.notif-dropdown {
  position: absolute; right: 0; top: 50px; width: min(92vw, 360px);
  background: var(--card); border-radius: 14px; box-shadow: var(--shadow-lg);
  border: 1px solid var(--line); z-index: 200; overflow: hidden;
}
.notif-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 13px 16px; border-bottom: 1px solid var(--line);
}
.notif-list { max-height: 380px; overflow-y: auto; }
.notif-item { display: block; padding: 12px 16px; border-bottom: 1px solid var(--line); color: var(--ink); text-decoration: none !important; }
.notif-item:hover { background: var(--bg); }
.notif-item.unread { background: var(--primary-tint); }
.notif-item strong { display: block; font-size: 14px; }
.notif-item p { margin: 2px 0; font-size: 13px; color: var(--ink-soft); }
.notif-item time { font-size: 12px; color: var(--muted); }
.notif-empty { padding: 26px; text-align: center; color: var(--muted); margin: 0; }

.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 14px; margin-bottom: 24px; }
.stat-card {
  display: flex; align-items: center; gap: 14px;
  background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 18px;
}
.stat-card strong { display: block; font-size: 23px; line-height: 1.2; }
.stat-card small { color: var(--muted); font-size: 13px; }
.stat-icon {
  width: 46px; height: 46px; border-radius: 12px; flex-shrink: 0;
  background: var(--primary-light); color: var(--primary-dark);
  display: flex; align-items: center; justify-content: center;
}
.stat-attention { outline: 2px solid var(--warning); }
.stat-attention .stat-icon { background: var(--warning-bg); color: var(--warning); }

.panel-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; align-items: start; }
.panel-section { margin-bottom: 26px; min-width: 0; }
.section-title { display: flex; align-items: center; justify-content: space-between; margin-bottom: 13px; }
.section-title h2 { display: flex; align-items: center; gap: 9px; font-size: 16.5px; margin: 0; }
.section-title .icon { color: var(--primary); }

/* Randevu kartları */
.appt-list { display: flex; flex-direction: column; gap: 11px; }
.appt-card { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 15px 17px; }
.appt-main { display: flex; gap: 15px; align-items: flex-start; flex-wrap: wrap; }
.appt-when { min-width: 130px; }
.appt-when strong { display: block; font-size: 14px; }
.appt-time { color: var(--primary); font-weight: 700; font-size: 15px; }
.appt-who { flex: 1; min-width: 170px; display: flex; flex-direction: column; gap: 2px; }
.appt-who small { color: var(--muted); display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.appt-phone { font-size: 13px; display: inline-flex; align-items: center; gap: 4px; }
.appt-note { font-style: italic; }
.appt-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; padding-top: 12px; border-top: 1px dashed var(--line); }

.share-box { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 19px; }
.share-box p { color: var(--muted); font-size: 14px; }
.share-row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }

.hours-form { display: flex; flex-direction: column; gap: 9px; }
.hours-row {
  display: flex; align-items: center; gap: 11px; flex-wrap: wrap;
  padding: 9px 13px; border: 1px solid var(--line); border-radius: 10px;
}
.hours-row input[type="time"] { width: 112px; margin: 0; }
.hours-row .check-item { padding: 0; margin-left: auto; }
.hours-day { width: 86px; font-size: 14px; }
.hours-off { opacity: .55; background: var(--bg); }

.bottom-nav { display: none; }

/* ---------- Mobil menü çekmecesi ----------
   Masaüstünde sidebar var; çekmece yalnızca mobilde açılır (alt navigasyondaki
   "Menü" düğmesi masaüstünde gizli olduğu için buraya erişilemez). */
.mobile-drawer, .drawer-backdrop { display: none; }
body.drawer-open { overflow: hidden; }

/* PWA yükleme çubuğu */
.pwa-install-bar {
  position: fixed; left: 50%; transform: translateX(-50%);
  bottom: calc(14px + var(--safe-bottom)); z-index: 500;
  display: flex; align-items: center; gap: 13px;
  background: var(--ink); color: #fff; border-radius: 14px;
  padding: 13px 17px; box-shadow: var(--shadow-lg); width: min(94vw, 420px);
}
.pwa-install-bar p { margin: 0; font-size: 13.5px; flex: 1; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; text-align: center; }
  .hero-text { display: flex; flex-direction: column; align-items: center; }
  .hero-visual { margin-top: 14px; }
  .panel-cols { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 760px) {
  .hide-mobile { display: none !important; }
  .form-grid { grid-template-columns: 1fr; }

  /* iOS Safari 16px altındaki alanlara odaklanınca sayfayı zoomlar — engelle */
  input, select, textarea { font-size: 16px; }

  /* Dokunma hedefleri: onay kutuları ve satırları parmakla rahat seçilsin */
  .check-item { min-height: 40px; padding: 8px 0; }
  .check-item input { width: 22px; height: 22px; }

  /* Public header: 375px'te marka ile nav çakışıyordu */
  :root { --gutter: 14px; }
  .header-inner { gap: 10px; }
  .brand { font-size: 16px; gap: 7px; }
  .header-nav { gap: 10px; }
  .nav-link { font-size: 13px; }
  .site-header .btn-sm { padding: 7px 11px; font-size: 13px; }

  /* Sihirbaz: mobilde yalnızca içinde bulunulan adımın etiketi yazılır */
  .wizard-steps li.ws-active { font-size: 11px; }
  .wizard-steps li.ws-active::before { margin-bottom: 4px; }

  /* Rapor grafikleri: 12 etiket 375px'e sığmıyordu — yatay kaydırmalı yap */
  .bar-chart { overflow-x: auto; overflow-y: hidden; padding-bottom: 4px; }
  .bar-item { min-width: 36px; }

  /* Takvim araç çubuğu ve sütun genişliği */
  .cal-toolbar { flex-direction: column; align-items: stretch; }
  .cal-nav { justify-content: space-between; }
  .cal-toolbar > .btn { width: 100%; }
  .cal-datepick { flex: 1; }
  .cal-datepick input { width: 100%; }
  .cal-column { min-width: 210px; }

  /* Çekmece */
  .mobile-drawer {
    display: flex; flex-direction: column;
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 400;
    max-height: 82vh; background: var(--card);
    border-radius: 18px 18px 0 0; box-shadow: var(--shadow-lg);
    padding: 8px 14px calc(18px + var(--safe-bottom));
    animation: drawer-up .22s ease;
  }
  .mobile-drawer[hidden] { display: none; }
  .drawer-backdrop {
    display: block; position: fixed; inset: 0; z-index: 390;
    background: rgba(15, 23, 42, .45);
  }
  .drawer-backdrop[hidden] { display: none; }
  .drawer-head {
    display: flex; align-items: center; justify-content: space-between;
    gap: 10px; padding: 6px 2px 12px; border-bottom: 1px solid var(--line);
  }
  .drawer-user { border: 0; padding: 0; margin: 0; }
  .drawer-user strong { color: var(--ink); font-size: 15px; display: block; }
  .drawer-user small { color: var(--muted); font-size: 12.5px; }
  .drawer-nav {
    display: grid; grid-template-columns: 1fr 1fr; gap: 8px;
    padding: 14px 0; overflow-y: auto;
  }
  .drawer-link {
    display: flex; align-items: center; gap: 10px; min-height: 48px;
    padding: 11px 13px; border-radius: 11px; background: var(--bg);
    color: var(--ink); font-weight: 600; font-size: 14px;
    text-decoration: none !important;
  }
  .drawer-link .icon { color: var(--primary); flex-shrink: 0; }
  .drawer-link.active { background: var(--primary); color: #fff; }
  .drawer-link.active .icon { color: #fff; }
  .drawer-logout { padding-top: 4px; border-top: 1px solid var(--line); }
  @keyframes drawer-up { from { transform: translateY(100%); } }

  /* Panel: sidebar gizle, alt navigasyon göster */
  .sidebar { display: none; }
  .topbar-brand-mobile { display: inline-flex; }
  .panel-content {
    padding: 18px max(14px, var(--safe-right)) calc(96px + var(--safe-bottom)) max(14px, var(--safe-left));
  }
  .topbar { padding-left: max(14px, var(--safe-left)); padding-right: max(14px, var(--safe-right)); }
  .bottom-nav {
    display: flex; position: fixed; bottom: 0; left: 0; right: 0; z-index: 300;
    background: var(--card); border-top: 1px solid var(--line);
    padding: 6px 4px calc(6px + var(--safe-bottom));
  }
  .bottom-link {
    flex: 1; display: flex; flex-direction: column; align-items: center; gap: 3px;
    color: var(--muted); font-size: 10.5px; font-weight: 600;
    padding: 5px 2px; border-radius: 9px; text-decoration: none !important;
    min-height: 46px; justify-content: center;
    background: none; border: 0; font-family: var(--font); cursor: pointer;
  }
  .bottom-link.active { color: var(--primary); }
  .bottom-link span {
    white-space: nowrap; max-width: 100%; overflow: hidden; text-overflow: ellipsis;
  }
  .bottom-link .icon { flex-shrink: 0; }

  .appt-when { min-width: 100%; display: flex; justify-content: space-between; align-items: baseline; }
  .filter-bar select, .filter-bar input { flex: 1; min-width: 110px; }
  .booking-wrap { padding-bottom: 40px; }
  .wizard-steps li { font-size: 0; }         /* mobilde yalnız numaralar */
  .wizard-steps li::before { margin-bottom: 0; }
  .mock-phone { width: 250px; }
  .section { padding: 52px 0; }
}

@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
  .row-actions { width: 100%; }
  .row-actions .btn { flex: 1; }
}

/* Dar telefonlar (iPhone SE ve benzeri 320px sınıfı) */
@media (max-width: 380px) {
  .bottom-link span { font-size: 9.5px; }
  .drawer-nav { grid-template-columns: 1fr; }
  .stat-card strong { font-size: 20px; }
  .cal-column { min-width: 190px; }
}

/* ---------- Admin: abonelik paketi düzenleyici ---------- */
.plan-editor {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 14px;
}
.plan-box {
  border: 1.5px solid var(--line); border-radius: var(--radius); padding: 14px 16px;
  display: flex; flex-direction: column; gap: 10px; min-width: 0;
}
.plan-box legend {
  font-weight: 700; font-size: 14.5px; color: var(--primary-dark); padding: 0 6px;
}
.plan-box label { font-size: 13.5px; }
.plan-box textarea { font-size: 13.5px; }

/* ============================================================
   v1.5 — şifre sıfırlama, veri temizleme, bildirim/cron ayarları
   ============================================================ */

/* Tek seferlik geçici şifre kutusu */
.temp-password-box {
  background: var(--success-bg); border: 1.5px solid var(--success); color: #14532d;
  border-radius: var(--radius); padding: 16px 18px; margin-bottom: 18px;
  display: flex; flex-direction: column; gap: 8px;
}
.temp-password-row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.temp-password-row code {
  font-size: 20px; font-weight: 700; letter-spacing: .06em; background: #fff;
  padding: 6px 14px; color: var(--ink); user-select: all;
}

/* Satır içi şifre sıfırlama */
.reset-details { position: relative; }
.reset-details summary { list-style: none; cursor: pointer; }
.reset-details summary::-webkit-details-marker { display: none; }
.reset-details[open] summary { background: var(--primary-light); }
.reset-form {
  position: absolute; right: 0; top: calc(100% + 6px); z-index: 20; width: min(86vw, 300px);
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow-lg); padding: 14px; display: flex; flex-direction: column; gap: 10px;
}

/* Giriş sayfası: şifremi unuttum */
.forgot-box { margin-top: 14px; font-size: 14px; color: var(--ink-soft); }
.forgot-box summary { cursor: pointer; color: var(--primary); font-weight: 600; text-align: center; }
.forgot-box p { margin: 10px 0 0; line-height: 1.5; }

.sidebar-secondary { font-size: 13.5px; opacity: .85; margin: 0 12px; }

/* Veri temizleme */
.purge-stats { display: flex; flex-wrap: wrap; gap: 22px; margin-top: 14px; }
.purge-stats div { text-align: center; min-width: 64px; }
.purge-stats strong { display: block; font-size: 22px; }
.purge-stats small { color: var(--muted); }
.purge-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); gap: 16px; }
.purge-card { border-top: 4px solid var(--warning); display: flex; flex-direction: column; margin-bottom: 0; }
.purge-card.purge-danger { border-top-color: var(--danger); }
.purge-card h3 { font-size: 17px; margin-bottom: 4px; }
.purge-step { font-size: 12px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; }
.purge-h { font-size: 12.5px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); margin: 12px 0 6px; }
.purge-list { list-style: none; padding: 0; margin: 0; font-size: 14px; display: flex; flex-direction: column; gap: 5px; }
.purge-list li { display: flex; gap: 7px; align-items: flex-start; }
.purge-del .icon { color: var(--danger); margin-top: 3px; }
.purge-keep .icon { color: var(--success); margin-top: 3px; }
.purge-form { margin-top: auto; padding-top: 16px; }
.purge-form button:disabled { opacity: .45; cursor: not-allowed; }
.purge-entry { border: 1.5px dashed var(--danger); }

/* Admin ayarları: durum kutuları, bilgi, kopyalanabilir komut */
.status-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 12px; margin: 6px 0 16px; }
.status-item {
  border-radius: var(--radius-sm); padding: 12px 14px; border-left: 4px solid var(--muted);
  background: var(--bg); display: flex; flex-direction: column; gap: 3px;
}
.status-item small { color: var(--ink-soft); font-size: 13px; }
.status-success { border-left-color: var(--success); background: var(--success-bg); }
.status-warning { border-left-color: var(--warning); background: var(--warning-bg); }
.status-danger  { border-left-color: var(--danger);  background: var(--danger-bg); }
.info-box {
  background: var(--info-bg); color: #1e3a8a; border-radius: var(--radius-sm);
  padding: 12px 15px; font-size: 14px; margin-bottom: 16px;
}
.info-box p { margin: 0; }
.settings-h { font-size: 15px; margin: 18px 0 6px; }
.copy-row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.copy-row code {
  flex: 1; min-width: 0; display: block; padding: 10px 12px; font-size: 13px;
  background: var(--ink); color: #e2e8f0; border-radius: var(--radius-sm);
  overflow-x: auto; white-space: nowrap;
}

/* Bildirim izni çağrısı */
.push-banner {
  position: relative; margin: 14px 22px 0; background: var(--card);
  border: 1.5px solid var(--primary); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 12px 44px 12px 14px;
}
.push-banner-body { display: none; align-items: center; gap: 12px; flex-wrap: wrap; }
.push-banner[data-mode="ask"] .push-ask,
.push-banner[data-mode="ios"] .push-ios { display: flex; }
.push-banner-body > div { flex: 1; min-width: 180px; }
.push-banner strong { display: block; font-size: 14.5px; }
.push-banner small { color: var(--muted); font-size: 13px; }
.push-ico { font-size: 24px; }
.push-x {
  position: absolute; top: 6px; right: 8px; width: 32px; height: 32px; border: 0;
  background: none; font-size: 22px; line-height: 1; color: var(--muted); cursor: pointer; border-radius: 50%;
}
.push-x:hover { background: var(--line); }
.notif-foot { border-top: 1px solid var(--line); padding: 8px 16px; text-align: center; }
.notif-foot:empty { display: none; }
.notif-denied { font-size: 12.5px; color: var(--danger); margin: 4px 0; }

@media (max-width: 760px) {
  .push-banner { margin: 12px 14px 0; }
  .reset-form { position: static; width: 100%; margin-top: 8px; box-shadow: none; }
  .reset-details { width: 100%; }
}

/* ---------- v1.6: paket sınırları & çoklu şube ---------- */
.menu-lock { display: inline-flex; vertical-align: middle; margin-left: 4px; opacity: .7; }
.usage-chip {
  display: inline-flex; align-items: center; gap: 7px; padding: 8px 13px;
  background: var(--card); border-radius: 99px; box-shadow: var(--shadow);
  font-size: 13.5px; font-weight: 600; color: var(--ink-soft);
}
.usage-chip small { color: var(--muted); font-weight: 500; }
.usage-chip.usage-full { background: var(--warning-bg); color: #78350f; }
.btn.is-disabled { opacity: .5; cursor: not-allowed; pointer-events: none; }
.page-actions { flex-wrap: wrap; gap: 10px; align-items: center; }

.upgrade-box {
  display: flex; gap: 14px; align-items: flex-start;
  background: var(--card); border: 1px dashed var(--primary); border-radius: var(--radius);
  padding: 16px 18px; margin-bottom: 20px; box-shadow: var(--shadow);
}
.upgrade-icon {
  width: 40px; height: 40px; border-radius: 10px; flex-shrink: 0;
  background: var(--primary-light); color: var(--primary-dark);
  display: flex; align-items: center; justify-content: center;
}
.upgrade-body { min-width: 0; }
.upgrade-body strong { display: block; font-size: 15px; margin-bottom: 4px; }
.upgrade-body p { margin: 0 0 10px; color: var(--ink-soft); font-size: 14px; }
.upgrade-contact a { word-break: break-all; }
.locked-page { max-width: 620px; }

.plan-usage { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.plan-usage li {
  display: flex; align-items: center; gap: 10px; padding: 10px 0;
  border-bottom: 1px solid var(--line); font-size: 14.5px;
}
.plan-usage li:last-child { border-bottom: 0; }
.plan-usage li .icon { color: var(--primary); flex-shrink: 0; }
.plan-usage li span { flex: 1; }
.plan-usage li.is-off { color: var(--muted); }
.plan-usage li.is-off .icon { color: var(--muted); }

/* Şube seçici: koyu sidebar ve açık çekmecede */
.branch-switch { padding: 4px 22px 12px; }
.branch-switch label { display: flex; flex-direction: column; gap: 6px; font-size: 12px; }
.branch-switch label > span { display: flex; align-items: center; gap: 6px; color: #94a3b8; text-transform: uppercase; letter-spacing: .04em; }
.branch-switch select {
  width: 100%; padding: 9px 11px; border-radius: var(--radius-sm);
  border: 1px solid #334155; background: #1e293b; color: #fff; font: 500 14px var(--font);
}
.mobile-drawer .branch-switch { padding: 0 0 14px; }
.mobile-drawer .branch-switch label > span { color: var(--muted); }
.mobile-drawer .branch-switch select { background: var(--card); color: var(--ink); border-color: var(--line); }
.topbar-branch {
  display: inline-flex; align-items: center; gap: 5px; padding: 4px 10px; border-radius: 99px;
  background: var(--primary-light); color: var(--primary-dark); font-size: 12.5px; font-weight: 600;
  max-width: 200px; min-width: 0; flex-shrink: 1;
}

.topbar-branch .icon { flex-shrink: 0; }
.topbar-branch > span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.branch-table .num { text-align: right; white-space: nowrap; }
.branch-table td .badge { margin-left: 6px; }
.branch-table tr.is-current td { background: var(--primary-tint); }
.branch-table .row-actions { display: flex; gap: 6px; justify-content: flex-end; flex-wrap: wrap; }
.form-hint { font-size: 13px; margin: 0; }

@media (max-width: 760px) {
  /* Tablo → kart: dar ekranda yatay kaydırma yerine satır başına kart */
  .branch-table thead { display: none; }
  .branch-table, .branch-table tbody, .branch-table tr, .branch-table td { display: block; width: 100%; }
  .branch-table tr { padding: 12px 14px; border-bottom: 1px solid var(--line); }
  .branch-table td { padding: 3px 0; border: 0; }
  .branch-table td.num { display: flex; justify-content: space-between; text-align: left; }
  .branch-table td.num::before { content: attr(data-label); color: var(--muted); font-size: 13px; }
  .branch-table .row-actions { justify-content: flex-start; margin-top: 8px; }
  .topbar-branch { max-width: 110px; }
  .upgrade-box { flex-direction: column; }
}
.bare-fieldset { border: 0; padding: 0; margin: 0; min-width: 0; display: flex; flex-direction: column; gap: 14px; }
.row-branch { margin-left: 22px; border-left: 3px solid var(--primary-light); }
.plan-limits {
  display: flex; flex-direction: column; gap: 8px; padding: 11px 12px;
  background: var(--bg); border-radius: var(--radius-sm); border: 1px solid var(--line);
}
.plan-limits > strong { font-size: 13px; }
@media (max-width: 760px) { .row-branch { margin-left: 10px; } }

/* ---------- Onay sonrası WhatsApp önerisi ---------- */
.modal-backdrop {
  position: fixed; inset: 0; z-index: 1100; background: rgba(15, 23, 42, .55);
  display: flex; align-items: center; justify-content: center;
  padding: max(16px, var(--safe-top)) 16px max(16px, var(--safe-bottom));
}
.modal-backdrop[hidden] { display: none; }
.modal-card {
  width: min(440px, 100%); max-height: calc(100vh - 32px); overflow-y: auto;
  background: var(--card); border-radius: 16px; box-shadow: 0 20px 50px rgba(15, 23, 42, .3);
  padding: 24px 22px 18px; text-align: center;
}
.modal-card h2 { font-size: 19px; margin: 10px 0 8px; }
.modal-card p { color: var(--ink-soft); font-size: 15px; margin: 0 0 14px; }
.modal-icon {
  width: 52px; height: 52px; margin: 0 auto; border-radius: 50%;
  background: var(--success-bg); color: var(--success);
  display: flex; align-items: center; justify-content: center;
}
.modal-actions { display: flex; flex-direction: column; gap: 8px; margin: 16px 0 10px; }
.btn-whatsapp { background: #25d366; color: #fff; box-shadow: 0 2px 8px rgba(37, 211, 102, .35); }
.btn-whatsapp:hover { background: #1ebe5b; color: #fff; }
.wa-preview { text-align: left; font-size: 13.5px; }
.wa-preview summary { cursor: pointer; color: var(--primary); font-weight: 600; }
.wa-preview pre {
  white-space: pre-wrap; word-break: break-word; font: 14px/1.5 var(--font);
  background: #e7fbe9; border-radius: 10px; padding: 10px 12px; margin: 8px 0 0;
}
.modal-icon-info { background: var(--info-bg); color: var(--info); }
.modal-icon-danger { background: var(--danger-bg); color: var(--danger); }
/* WhatsApp şablon düzenleyici */
#whatsapp h2 { display: flex; align-items: center; gap: 8px; }
#whatsapp h2 .icon { color: #25d366; }
.wa-placeholders { display: flex; flex-direction: column; gap: 7px; margin-bottom: 16px; }
.wa-chip-list { display: flex; flex-wrap: wrap; gap: 6px; }
.wa-chip {
  border: 1px solid var(--line); background: var(--bg); color: var(--ink-soft);
  border-radius: 99px; padding: 4px 10px; font: 500 12.5px var(--font); cursor: pointer;
}
.wa-chip:hover { border-color: var(--primary); color: var(--primary); }
.wa-label-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.wa-label-row .link-button { margin-left: auto; }
#whatsapp textarea { font-size: 14px; line-height: 1.5; }
.wa-field { display: flex; flex-direction: column; gap: 6px; font-size: 14px; font-weight: 500; }

/* =====================================================================
   v1.8 — Sahip berber olarak + Vitrin sayfası
   ===================================================================== */
/* Panel: personel */
.avatar-photo { object-fit: cover; padding: 0; background: var(--line); }
.avatar-xl { width: 84px; height: 84px; border-radius: 50%; }
.self-staff-card {
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
  background: var(--primary-light); border: 1px solid var(--primary); border-radius: var(--radius);
  padding: 15px 18px; margin-bottom: 18px;
}
.self-staff-card > div { flex: 1; min-width: 220px; }
.self-staff-card strong { display: block; color: var(--primary-dark); }
.self-staff-card p { margin: 3px 0 0; font-size: 14px; color: var(--ink-soft); }
.self-staff-icon {
  width: 42px; height: 42px; border-radius: 12px; background: var(--primary); color: #fff;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.photo-field { display: flex; flex-direction: column; gap: 8px; }
.showcase-link {
  display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: var(--radius-sm);
  border: 1px dashed var(--primary); color: var(--ink); text-decoration: none !important; background: var(--bg);
}
.showcase-link .icon { color: var(--primary); flex-shrink: 0; }
.showcase-link strong { display: block; font-size: 14px; }
.showcase-link small { color: var(--primary); font-weight: 600; }

/* Panel: vitrin düzenleyici */
.showcase-form .card, #galeri.card, #videolar.card { margin-bottom: 20px; }
.form-grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; }
.form-grid-2 label .icon { vertical-align: -2px; color: var(--primary); }
.cover-edit { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 18px; margin-bottom: 16px; align-items: start; }
.cover-preview {
  aspect-ratio: 16 / 7; border-radius: var(--radius); background: center / cover no-repeat var(--line);
  display: flex; align-items: center; justify-content: center; text-align: center; color: var(--muted); font-size: 13px;
}
.amenity-picker { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 6px 14px; }
.sub-h { font-size: 14px; margin: 18px 0 8px; }
.sticky-save {
  position: sticky; bottom: 16px; z-index: 5; display: flex; justify-content: flex-end;
  margin: -6px 0 22px; pointer-events: none;
}
.sticky-save .btn { pointer-events: auto; box-shadow: 0 8px 24px rgba(15, 23, 42, .18); }
.upload-row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-bottom: 6px; }
.upload-row input[type=file] { flex: 1; min-width: 200px; }
.media-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 14px; margin-top: 16px; }
.media-grid-video { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.media-item { margin: 0; background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius-sm); overflow: hidden; display: flex; flex-direction: column; }
.media-item img, .media-item video { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block; background: #000; }
.media-item > small { padding: 4px 8px 0; }
.media-caption { display: flex; gap: 4px; padding: 6px 6px 0; }
.media-caption input { flex: 1; min-width: 0; font-size: 13px; padding: 6px 8px; }
.media-tools { display: flex; gap: 2px; padding: 4px 6px 6px; }
.media-tools form:last-child { margin-left: auto; }
.flip .icon { transform: scaleX(-1); }
.video-add { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 18px; }
.video-add form { background: var(--bg); border-radius: var(--radius-sm); padding: 14px; }

@media (max-width: 760px) {
  .cover-edit { grid-template-columns: 1fr; }
  .sticky-save { bottom: 80px; }
  .sticky-save .btn { width: 100%; }
}

/* ---------- Public vitrin ---------- */
.showcase { --sv-gap: 14px; }
.sv-hero {
  position: relative; color: #fff; padding: 38px 0 30px;
  background: linear-gradient(135deg, var(--hero-from), var(--hero-to));
}
.sv-hero.has-cover {
  padding: 120px 0 30px;
  background: linear-gradient(180deg, rgba(0,0,0,.15) 0%, rgba(0,0,0,.45) 45%, rgba(0,0,0,.82) 100%), var(--cover) center / cover no-repeat, var(--hero-from);
}
.sv-hero-inner { display: flex; flex-direction: column; gap: 18px; }
.sv-hero .booking-biz h1 { font-size: 30px; line-height: 1.15; text-shadow: 0 2px 12px rgba(0,0,0,.35); }
.sv-tagline { font-size: 16px !important; color: #e2e8f0 !important; margin: 2px 0 6px !important; }
.sv-meta { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 14px; color: #cbd5e1; }
.sv-meta span { display: inline-flex; align-items: center; gap: 5px; }
.sv-open.is-open { color: #86efac; font-weight: 600; }
.sv-open.is-closed { color: #fca5a5; }
.sv-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.sv-btn {
  background: rgba(255,255,255,.14); color: #fff !important; border: 1px solid rgba(255,255,255,.25);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
}
.sv-btn:hover { background: rgba(255,255,255,.24); }
.sv-icon { padding-left: 12px; padding-right: 12px; }

.sv-mosaic {
  display: grid; gap: 6px; margin-top: 18px; border-radius: 16px; overflow: hidden;
  grid-template-columns: 2fr 1fr 1fr; grid-template-rows: 170px 170px;
}
.sv-mosaic-1 { grid-template-columns: 1fr; grid-template-rows: 320px; }
.sv-mosaic-2 { grid-template-columns: 1fr 1fr; grid-template-rows: 300px; }
.sv-mosaic-3 { grid-template-columns: 2fr 1fr; }
.sv-mosaic-4 { grid-template-columns: 2fr 1fr 1fr; }
.sv-mosaic .sv-tile:first-child { grid-row: span 2; }
.sv-mosaic-2 .sv-tile:first-child, .sv-mosaic-1 .sv-tile:first-child { grid-row: auto; }
.sv-mosaic-4 .sv-tile:nth-child(4) { grid-column: span 2; }
.sv-tile { position: relative; display: block; overflow: hidden; background: var(--line); }
.sv-tile img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .35s; }
.sv-tile:hover img { transform: scale(1.04); }
.sv-more {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  background: rgba(0,0,0,.5); color: #fff; font-weight: 700; font-size: 17px;
}

.sv-tabs {
  position: sticky; top: calc(var(--site-header-h, 63px) + var(--safe-top)); z-index: 40; background: rgba(255,255,255,.92); border-bottom: 1px solid var(--line);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); margin-top: 18px;
}
.sv-tabs .container { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; }
.sv-tabs .container::-webkit-scrollbar { display: none; }
.sv-tabs a {
  padding: 13px 12px; white-space: nowrap; font-size: 14px; font-weight: 600; color: var(--ink-soft);
  text-decoration: none; border-bottom: 2px solid transparent;
}
.sv-tabs a:hover { color: var(--primary); border-bottom-color: var(--primary); }
.showcase [id] { scroll-margin-top: calc(120px + var(--safe-top)); }

.sv-section { max-width: 860px; padding-top: 10px; padding-bottom: 34px; }
.sv-section h2 { font-size: 21px; margin: 0 0 14px; }
.sv-about { font-size: 15.5px; line-height: 1.7; color: var(--ink-soft); }
.sv-amenities { list-style: none; padding: 0; margin: 18px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.sv-amenities li {
  display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border-radius: 99px;
  background: var(--primary-light); color: var(--primary-dark); font-size: 13.5px; font-weight: 600;
}
.sv-videos { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: var(--sv-gap); }
.sv-video { margin: 0; }
.sv-video video, .sv-video iframe, .sv-yt {
  width: 100%; aspect-ratio: 16 / 9; border: 0; border-radius: 12px; background: #000; display: block;
}
.sv-video video { aspect-ratio: auto; max-height: 480px; }
.sv-yt { position: relative; padding: 0; cursor: pointer; overflow: hidden; }
.sv-yt img { width: 100%; height: 100%; object-fit: cover; opacity: .9; }
.sv-play {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 64px; height: 64px;
  border-radius: 50%; background: rgba(220, 38, 38, .92); color: #fff; display: flex; align-items: center; justify-content: center;
}
.sv-play .icon { fill: #fff; margin-left: 4px; }
.sv-video figcaption { font-size: 13.5px; color: var(--muted); margin-top: 6px; }
.sv-team { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: var(--sv-gap); }
.sv-member {
  background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 18px 14px; text-align: center;
}
.sv-member img, .sv-member-initial {
  width: 96px; height: 96px; border-radius: 50%; object-fit: cover; margin: 0 auto 10px; display: flex;
  align-items: center; justify-content: center; background: var(--primary-light); color: var(--primary-dark); font-size: 34px; font-weight: 700;
}
.sv-member strong { display: block; }
.sv-member small { color: var(--primary); font-weight: 600; }
.sv-member p { font-size: 13px; color: var(--muted); margin: 6px 0 0; }
.sv-prices { list-style: none; margin: 0; padding: 0; background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); }
.sv-prices li { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 13px 16px; border-bottom: 1px solid var(--line); }
.sv-prices li:last-child { border-bottom: 0; }
.sv-prices small { display: block; color: var(--muted); font-size: 12.5px; }
.sv-prices b { color: var(--primary-dark); white-space: nowrap; }
.sv-location { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 20px; align-items: start; }
.sv-hours { width: 100%; border-collapse: collapse; background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.sv-hours th, .sv-hours td { padding: 9px 14px; text-align: left; font-size: 14px; border-bottom: 1px solid var(--line); }
.sv-hours th { font-weight: 500; color: var(--ink-soft); }
.sv-hours tr.is-today th, .sv-hours tr.is-today td { font-weight: 700; color: var(--primary-dark); background: var(--primary-light); }
.sv-contact { list-style: none; padding: 0; margin: 16px 0 0; display: flex; flex-direction: column; gap: 9px; font-size: 14.5px; }
.sv-contact li { display: flex; align-items: center; gap: 8px; }
.sv-contact .icon { color: var(--primary); flex-shrink: 0; }
.sv-map iframe { width: 100%; height: 320px; border: 0; border-radius: var(--radius); box-shadow: var(--shadow); }
.sv-fab {
  position: fixed; left: 50%; bottom: calc(18px + var(--safe-bottom)); transform: translate(-50%, 140px); z-index: 60;
  box-shadow: 0 10px 28px rgba(0,0,0,.25); transition: transform .25s; border-radius: 99px;
}
.sv-fab.is-visible { transform: translate(-50%, 0); }

/* Lightbox */
.lightbox {
  position: fixed; inset: 0; z-index: 1200; background: rgba(0,0,0,.92);
  display: flex; align-items: center; justify-content: center;
}
.lightbox[hidden] { display: none; }
.lightbox figure { margin: 0; max-width: 92vw; max-height: 86vh; text-align: center; }
.lightbox img { max-width: 92vw; max-height: 80vh; object-fit: contain; border-radius: 6px; }
.lightbox figcaption { color: #e2e8f0; margin-top: 10px; font-size: 14px; }
.lightbox button {
  position: absolute; background: rgba(255,255,255,.12); color: #fff; border: 0; cursor: pointer;
  width: 48px; height: 48px; border-radius: 50%; font-size: 30px; line-height: 1;
}
.lightbox button:hover { background: rgba(255,255,255,.25); }
.lb-close { top: calc(14px + var(--safe-top)); right: calc(14px + var(--safe-right)); }
.lb-prev { left: 14px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 14px; top: 50%; transform: translateY(-50%); }
.lb-single .lb-prev, .lb-single .lb-next, .lb-single .lb-count { display: none; }
.lb-count { position: absolute; top: calc(24px + var(--safe-top)); left: calc(20px + var(--safe-left)); color: #cbd5e1; font-size: 14px; }
body.lb-open { overflow: hidden; }

@media (max-width: 760px) {
  .sv-hero.has-cover { padding-top: 90px; }
  .sv-hero .booking-biz h1 { font-size: 24px; }
  .sv-actions .btn-lg { width: 100%; }
  .sv-mosaic, .sv-mosaic-3, .sv-mosaic-4, .sv-mosaic-5 {
    display: flex; overflow-x: auto; scroll-snap-type: x mandatory; border-radius: 12px; gap: 6px;
    scrollbar-width: none;
  }
  .sv-mosaic::-webkit-scrollbar { display: none; }
  .sv-mosaic .sv-tile { flex: 0 0 82%; height: 240px; scroll-snap-align: start; border-radius: 12px; }
  .sv-mosaic-1 .sv-tile { flex-basis: 100%; }
  .sv-location { grid-template-columns: 1fr; }
  .sv-team { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .sv-member { padding: 14px 10px; }
  .sv-member img, .sv-member-initial { width: 72px; height: 72px; font-size: 26px; }
  .lb-prev, .lb-next { top: auto; bottom: calc(18px + var(--safe-bottom)); transform: none; }
}

/* =====================================================================
   v1.9 — Yönetici paneli: işletmeler, detay, müşteriler, genel bakış
   ===================================================================== */
.sr-only {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.text-warning { color: var(--warning); }
.back-link { display: inline-flex; align-items: center; gap: 4px; font-size: 14px; font-weight: 600; margin-bottom: 12px; }
.card h3 { font-size: 16px; margin: 0 0 12px; }
.card .section-title h2, .card .section-title h3 { margin: 0; }

/* Araç çubuğu + arama */
.admin-toolbar { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-bottom: 14px; }
.admin-search { display: flex; gap: 8px; flex: 1; min-width: 0; flex-wrap: wrap; }
.admin-search input[type=search] { flex: 1; min-width: 200px; margin: 0; }
.admin-search select { width: auto; margin: 0; }

/* Segment sekmeler (sayılı) */
.seg-tabs {
  display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; margin-bottom: 16px;
  padding-bottom: 2px;
}
.seg-tabs::-webkit-scrollbar { display: none; }
.seg-tabs a {
  display: inline-flex; align-items: center; gap: 7px; white-space: nowrap;
  padding: 8px 13px; border-radius: 99px; background: var(--card); box-shadow: var(--shadow);
  color: var(--ink-soft); font-size: 13.5px; font-weight: 600; text-decoration: none !important;
}
.seg-tabs a span {
  min-width: 22px; padding: 1px 7px; border-radius: 99px; background: var(--line);
  font-size: 12px; text-align: center; color: var(--ink-soft);
}
.seg-tabs a.active { background: var(--primary); color: #fff; }
.seg-tabs a.active span { background: rgba(255,255,255,.22); color: #fff; }
.seg-tabs a.attention span { background: var(--warning-bg); color: #92400e; }

/* İşletme kartları */
.abiz-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 460px), 1fr)); gap: 14px; }
.abiz {
  background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 16px 16px 12px; display: flex; flex-direction: column; gap: 11px; min-width: 0;
}
.abiz.is-branch { border-left: 4px solid var(--primary-light); }
.abiz.is-inactive { opacity: .62; }
.abiz-head { display: flex; gap: 12px; align-items: flex-start; }
.abiz-logo {
  width: 46px; height: 46px; border-radius: 12px; object-fit: cover; flex-shrink: 0; background: var(--line);
}
.abiz-logo.is-initial {
  display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 19px;
  background: var(--primary-light); color: var(--primary-dark);
}
.abiz-logo.is-lg { width: 64px; height: 64px; font-size: 26px; border-radius: 16px; }
.abiz-title { flex: 1; min-width: 0; }
.abiz-name { display: block; font-weight: 700; font-size: 16px; color: var(--ink); overflow-wrap: anywhere; }
.abiz-badges { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 5px; align-items: center; font-size: 13px; }
.abiz-badges a.badge { text-decoration: none !important; }
.abiz-sub { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; font-size: 13.5px; padding: 7px 10px; border-radius: var(--radius-sm); background: var(--bg); }
.abiz-sub.sub-warning { background: var(--warning-bg); color: #78350f; }
.abiz-sub.sub-danger { background: var(--danger-bg); color: #7f1d1d; }
.abiz-owner { display: flex; flex-wrap: wrap; gap: 4px 12px; font-size: 13.5px; color: var(--ink-soft); }
.abiz-owner > * { display: inline-flex; align-items: center; gap: 4px; overflow-wrap: anywhere; }
.wa-mini { color: #16a34a !important; font-weight: 600; }
.abiz-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; margin: 0; }
.abiz-stats > div { background: var(--bg); border-radius: var(--radius-sm); padding: 7px 8px; text-align: center; }
.abiz-stats dt { font-size: 11.5px; color: var(--muted); }
.abiz-stats dd { margin: 2px 0 0; font-weight: 700; font-size: 16px; }
.abiz-stats dd small { font-weight: 500; color: var(--muted); font-size: 12px; }
.abiz-foot { display: flex; flex-wrap: wrap; gap: 4px 14px; align-items: center; font-size: 12.5px; color: var(--muted); border-top: 1px solid var(--line); padding-top: 10px; }
.abiz-foot b { color: var(--ink-soft); font-weight: 600; }
.abiz-foot .btn { margin-left: auto; }
.abiz-warn { margin: 0; font-size: 12.5px; color: #92400e; display: flex; align-items: center; gap: 5px; }

/* ⋯ menüsü */
.more-menu { position: relative; }
.more-menu summary { list-style: none; font-size: 18px; line-height: 1; padding: 4px 10px; }
.more-menu summary::-webkit-details-marker { display: none; }
.more-menu-list {
  position: absolute; right: 0; top: calc(100% + 4px); z-index: 30; min-width: 190px;
  background: var(--card); border-radius: var(--radius-sm); box-shadow: var(--shadow-lg);
  padding: 6px; display: flex; flex-direction: column;
}
.more-menu-list a, .more-menu-list button {
  display: flex; align-items: center; gap: 8px; padding: 9px 10px; border-radius: 6px; font-size: 14px;
  color: var(--ink); text-decoration: none !important; background: none; border: 0; width: 100%;
  text-align: left; font-family: inherit; cursor: pointer;
}
.more-menu-list a:hover, .more-menu-list button:hover { background: var(--bg); }
.more-menu-list .text-danger { color: var(--danger); }

/* İşletme detay */
.detail-hero { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; align-items: flex-start; }
.detail-hero-main { display: flex; gap: 14px; align-items: flex-start; min-width: 0; flex: 1; }
.detail-hero h2 { margin: 0; font-size: 21px; overflow-wrap: anywhere; }
.detail-meta { margin: 8px 0 0; font-size: 13.5px; overflow-wrap: anywhere; }
.detail-actions { display: flex; gap: 6px; flex-wrap: wrap; }
.detail-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: 16px; }
.detail-cols .card, .card + .card, .detail-hero, section.card { margin-bottom: 16px; }
.stat-grid-compact { grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); margin-bottom: 16px; }
.plain-list { list-style: none; padding: 0; margin: 0 0 10px; }
.plain-list li { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.plain-list li:last-child { border-bottom: 0; }

/* Duyarlı tablo: dar ekranda satır → kart */
@media (max-width: 760px) {
  .resp-table thead { display: none; }
  .resp-table, .resp-table tbody, .resp-table tr, .resp-table td { display: block; width: 100%; }
  .resp-table tr { padding: 11px 12px; border-bottom: 1px solid var(--line); }
  .resp-table tr:last-child { border-bottom: 0; }
  .resp-table td {
    position: relative; padding: 3px 0 3px 96px; border: 0; font-size: 14px; min-height: 24px;
    overflow-wrap: anywhere;
  }
  .resp-table td::before {
    content: attr(data-label); position: absolute; left: 0; top: 5px; width: 88px;
    color: var(--muted); font-size: 12.5px;
  }
  .resp-table td a[href^="tel:"] { white-space: nowrap; }
  .table-wrap:has(.resp-table) { overflow-x: visible; }
}

/* Müşteriler */
.chip-stats { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.chip-stats span {
  display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border-radius: 99px;
  background: var(--card); box-shadow: var(--shadow); font-size: 13.5px; color: var(--ink-soft);
}
.chip-stats .icon { color: var(--primary); }
.cust-group { padding: 0; overflow: hidden; margin-bottom: 16px; }
.cust-group-head {
  display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap;
  padding: 14px 16px; border-bottom: 1px solid var(--line); background: var(--bg);
}
.cust-group-head h3 { margin: 0; font-size: 16px; }
.cust-group .table-wrap { box-shadow: none; border-radius: 0; }
.user-biz-chips { display: flex; flex-wrap: wrap; gap: 4px; align-items: center; margin-top: 3px; }
.user-biz-chips a.badge { text-decoration: none !important; }

/* Genel bakış */
.stat-link { text-decoration: none !important; color: inherit; transition: transform .12s, box-shadow .12s; }
.stat-link:hover { transform: translateY(-1px); box-shadow: var(--shadow-lg); }
.attention-card { margin-bottom: 18px; border-left: 4px solid var(--warning); }
.attention-card.is-calm { border-left-color: var(--success); }
.attention-list { list-style: none; padding: 0; margin: 0; }
.attention-list li {
  display: flex; align-items: center; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 14px;
}
.attention-list li:last-child { border-bottom: 0; }
.attention-list li > .icon { flex-shrink: 0; color: var(--muted); }
.attention-list li.is-warning > .icon { color: var(--warning); }
.attention-list li.is-danger > .icon { color: var(--danger); }
.attention-list li > span:first-of-type { flex: 1; min-width: 0; }
.attention-hint { font-size: 12.5px; white-space: nowrap; }
.dash-charts { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 16px; margin-bottom: 8px; }
.dash-charts .card { margin-bottom: 0; }
.dash-charts .section-title { align-items: baseline; }
.row-link { text-decoration: none !important; color: inherit; }
.row-link:hover { box-shadow: var(--shadow-lg); }

/* Sütun grafik (tek seri) */
.mini-chart { margin: 6px 0 0; display: block; }
.bc-plot {
  height: 150px; display: flex; align-items: flex-end; gap: 8px; padding-top: 22px;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(to top, transparent calc(50% - 1px), var(--line) 50%, transparent calc(50% + 1px));
}
.bc-col { position: relative; flex: 1; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; outline: none; }
.bc-bar {
  width: 100%; max-width: 34px; min-height: 2px; background: var(--primary);
  border-radius: 4px 4px 0 0; transition: filter .12s;
}
.bc-bar.is-zero { background: var(--line); }
.bc-value { font-size: 12px; font-weight: 700; color: var(--ink-soft); margin-bottom: 3px; }
.bc-col:hover .bc-bar, .bc-col:focus .bc-bar { filter: brightness(1.15); }
.bc-col:hover::after, .bc-col:focus::after {
  content: attr(data-tip); position: absolute; bottom: calc(100% - 18px); left: 50%; transform: translateX(-50%);
  background: var(--ink); color: #fff; font-size: 12px; font-weight: 600; padding: 4px 8px; border-radius: 6px;
  white-space: nowrap; pointer-events: none; z-index: 2;
}
.bc-axis { display: flex; gap: 8px; margin-top: 6px; }
.bc-axis span { flex: 1; text-align: center; font-size: 12px; color: var(--muted); }

/* Yatay çubuk listesi (paket dağılımı) */
.hbar-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 12px; }
.hbar-list li { display: grid; grid-template-columns: 96px 1fr 34px; align-items: center; gap: 10px; font-size: 14px; }
.hbar-label { color: var(--ink-soft); font-weight: 600; text-decoration: none !important; }
.hbar-track { height: 10px; background: var(--bg); border-radius: 99px; overflow: hidden; }
.hbar-fill { display: block; height: 100%; background: var(--primary); border-radius: 99px; min-width: 2px; }
.hbar-value { text-align: right; font-weight: 700; }

@media (max-width: 760px) {
  .admin-toolbar > .btn { width: 100%; }
  .admin-search input[type=search] { min-width: 0; width: 100%; flex-basis: 100%; }
  .admin-search select { flex: 1; }
  .abiz-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .abiz-foot .btn { margin-left: 0; width: 100%; }
  .detail-actions .btn { flex: 1; }
  .attention-list li { flex-wrap: wrap; }
  .attention-list li > .btn { margin-left: 26px; }
}

/* Dar ekranda istatistik kartları iki sütun (tek sütun gereksiz uzun kaydırma yaratıyordu) */
@media (max-width: 560px) {
  .stat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .stat-card { flex-direction: column; align-items: flex-start; gap: 8px; padding: 13px; }
  .stat-card strong { font-size: 19px; overflow-wrap: anywhere; }
  .stat-card small { font-size: 12px; }
  .stat-icon { width: 34px; height: 34px; border-radius: 10px; }
  .stat-icon .icon { width: 17px; height: 17px; }
}
.seg-tabs { position: relative; } /* offsetLeft hesabı için */
.sub-choice .check-item { align-items: flex-start; margin: 6px 0; } .sub-choice .check-item input { margin-top: 3px; }

/* ---------- Randevu takvimi: gün ve saat doluluğu ---------- */
.date-strip.is-loading .date-chip { opacity: .7; }
.date-chip { position: relative; }
.date-chip .dc-status {
  display: block; margin-top: 5px; font-size: 10.5px; font-weight: 700; letter-spacing: .02em;
  padding: 2px 4px; border-radius: 99px; line-height: 1.3;
}
.date-chip.is-open .dc-status { color: #15803d; background: var(--success-bg); }
.date-chip.is-few .dc-status { color: #92400e; background: var(--warning-bg); }
.date-chip.is-unavailable {
  cursor: not-allowed; background: var(--bg); border-style: dashed; color: var(--muted);
}
.date-chip.is-unavailable:hover { border-color: var(--line); }
.date-chip.is-unavailable .dc-date { color: var(--muted); text-decoration: line-through; text-decoration-thickness: 1.5px; }
.date-chip.is-unavailable .dc-status { color: var(--muted); background: var(--line); }
.date-chip.is-full {
  background: repeating-linear-gradient(135deg, #fef2f2, #fef2f2 6px, #fff 6px, #fff 12px);
  border-color: #fecaca;
}
.date-chip.is-full .dc-status { color: #b91c1c; background: var(--danger-bg); }
.date-chip.is-first:not(.selected) { border-color: var(--primary); }

.slot-btn.is-taken {
  cursor: not-allowed; color: var(--muted); border-style: dashed; padding: 6px 0;
  background: repeating-linear-gradient(135deg, var(--bg), var(--bg) 5px, var(--card) 5px, var(--card) 10px);
  display: flex; flex-direction: column; align-items: center; line-height: 1.15;
}
.slot-btn.is-taken span { text-decoration: line-through; }
.slot-btn.is-taken small { font-size: 10.5px; font-weight: 700; color: #b91c1c; }
.slot-btn.is-taken:hover { border-color: var(--line); }
.slot-full-note { grid-column: 1 / -1; margin: 0 0 4px; padding: 10px 12px; border-radius: var(--radius-sm);
  background: var(--danger-bg); color: #7f1d1d; font-size: 14px; font-weight: 600; }
.slot-legend { grid-column: 1 / -1; margin: 4px 0 0; font-size: 12.5px; color: var(--muted); display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.slot-legend span { display: inline-block; width: 14px; height: 14px; border-radius: 4px; border: 2px solid var(--line); }
.slot-legend .lg-free { background: var(--card); }
.slot-legend .lg-taken { border-style: dashed; background: repeating-linear-gradient(135deg, var(--bg), var(--bg) 3px, var(--card) 3px, var(--card) 6px); margin-left: 8px; }
@media (max-width: 560px) {
  .date-strip { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
  .date-chip { padding: 7px 2px; border-radius: 10px; }
  .date-chip .dc-day { font-size: 10.5px; }
  .date-chip .dc-date { font-size: 16px; }
  .date-chip .dc-month { font-size: 10.5px; }
  .date-chip .dc-status { font-size: 9.5px; margin-top: 4px; padding: 1px 2px; }
}
.remember-item { align-items: flex-start; font-size: 14px; } .remember-item input { margin-top: 3px; } .remember-item small { display: block; font-size: 12px; font-weight: 400; }
/* Takvim: berberin mesai dışı saatleri */
.cal-off {
  position: absolute; left: 0; right: 0; z-index: 0; pointer-events: none;
  background: repeating-linear-gradient(135deg, var(--bg), var(--bg) 6px, transparent 6px, transparent 12px);
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
}
.cal-hour, .cal-appt { z-index: 1; }
/* Saat boş ama hizmet sığmıyor: "Dolu"dan ayırt edilsin (kırmızı değil, düz gri) */
.slot-btn.is-short { background: var(--bg); border-style: dotted; }
.slot-btn.is-short span { text-decoration: none; }
.slot-btn.is-short small { color: var(--muted); font-weight: 600; font-size: 9.5px; }
.slot-legend .lg-short { border-style: dotted; background: var(--bg); margin-left: 8px; }

/* ---------- Randevu ekranı (detay + düzenleme) ---------- */
.appt-card[data-href] { cursor: pointer; transition: box-shadow .12s; }
.appt-card[data-href]:hover { box-shadow: var(--shadow-lg); }
.appt-name-link { color: inherit; text-decoration: none; }
.appt-name-link:hover { color: var(--primary); text-decoration: underline; }
a.cal-appt { display: block; color: inherit; text-decoration: none !important; cursor: pointer; }
a.cal-appt:hover, a.cal-appt:focus { filter: brightness(.96); box-shadow: 0 2px 10px rgba(15, 23, 42, .15); z-index: 2; }
.appt-hero { border-top: 4px solid var(--primary); margin-bottom: 16px; }
.appt-hero-pending { border-top-color: var(--warning); }
.appt-hero-cancelled, .appt-hero-rejected { border-top-color: var(--muted); }
.appt-hero-completed { border-top-color: var(--info); }
.appt-hero-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
.appt-hero h2 { margin: 0; font-size: 20px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; overflow-wrap: anywhere; }
.appt-hero-phone { display: inline-block; margin-top: 3px; font-weight: 600; }
.appt-hero-when { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; margin: 14px 0 4px; color: var(--ink-soft); }
.appt-hero-when strong { font-size: 22px; color: var(--ink); }
.appt-hero-what { margin: 0 0 10px; color: var(--ink-soft); font-size: 14.5px; }
.contact-bar { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 8px; margin: 14px 0 8px; }
.contact-bar .btn { justify-content: center; min-height: 46px; }
.contact-bar .more-menu summary { width: 100%; justify-content: center; font-size: 15px; padding: 10px 14px; }
.wa-ready .more-menu-list { left: 0; right: auto; min-width: 210px; }
.action-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 10px; align-items: start; }
.action-grid .btn { min-height: 46px; justify-content: center; }
.reason-box summary { list-style: none; }
.reason-box summary::-webkit-details-marker { display: none; }
.reason-box[open] summary { margin-bottom: 10px; }
#duzenle h3 { display: flex; align-items: center; gap: 7px; }
@media (max-width: 760px) {
  .contact-bar { grid-template-columns: 1fr 1fr; }
  .contact-bar .more-menu { grid-column: 1 / -1; }
  .action-grid { grid-template-columns: 1fr; }
}
/* Panel: misafirlere WhatsApp hatırlatma listesi */
.guest-remind { margin-bottom: 20px; border-left: 4px solid #25d366; }
.guest-remind .section-title { flex-wrap: wrap; gap: 4px 12px; }
.guest-remind .section-title .icon { color: #25d366; }
.guest-remind-list { list-style: none; padding: 0; margin: 0; }
.guest-remind-list li { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.guest-remind-list li:last-child { border-bottom: 0; }
.guest-remind-who { display: flex; flex-direction: column; color: inherit; text-decoration: none !important; min-width: 0; }
.guest-remind-who span { font-size: 13px; color: var(--muted); overflow-wrap: anywhere; }
.guest-remind-list .btn { flex-shrink: 0; }
#hatirlatmalar h2 { display: flex; align-items: center; gap: 8px; }

/* ---------- Destek modu (yönetici işletme panelinde) ---------- */
.is-support .topbar { box-shadow: inset 0 -3px 0 var(--warning); }
.support-bar {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  margin: 14px max(22px, var(--safe-right)) 0 22px; padding: 10px 14px;
  background: var(--warning-bg); color: #78350f; border: 1px solid #fcd34d; border-radius: var(--radius);
}
.support-bar-ico { font-size: 20px; line-height: 1; }
.support-bar-text { flex: 1; min-width: 180px; display: flex; flex-direction: column; gap: 1px; font-size: 14px; }
.support-bar-text span { font-size: 13px; opacity: .9; }
.support-bar form { margin: 0; }
.support-bar-btn { background: #78350f; color: #fff; border: 0; }
.support-bar-btn:hover { background: #92400e; color: #fff; }
.support-exit { color: var(--warning) !important; font-weight: 600; }
.support-cta {
  display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  border: 1px solid #fcd34d; background: linear-gradient(90deg, var(--warning-bg), var(--card) 70%);
}
.support-cta h3 { margin: 0 0 4px; }
.support-cta p { margin: 0; max-width: 640px; font-size: 14px; }
.support-cta form { margin: 0; }
.support-log { list-style: none; margin: 0; padding: 0; }
.support-log li { display: grid; grid-template-columns: 120px 1fr auto; gap: 10px; align-items: baseline; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.support-log li:last-child { border-bottom: 0; }
.support-log-when { color: var(--muted, #64748b); font-variant-numeric: tabular-nums; font-size: 13px; }
.support-log-what { word-break: break-word; }
@media (max-width: 640px) {
  .support-bar { margin: 10px 14px 0; }
  .support-log li { grid-template-columns: 1fr; gap: 2px; }
}
.support-cta h3 { display: flex; align-items: center; gap: 8px; color: #92400e; }
.support-bar-ico { display: inline-flex; color: #92400e; }
.step-preview { display: block; margin-top: 4px; font-variant-numeric: tabular-nums; }

/* ---------- Tamamlanmayı bekleyen randevular (Genel Bakış) ---------- */
.awaiting { border-left: 4px solid var(--warning); }
.awaiting .section-title h2 { display: flex; align-items: center; gap: 8px; }
.awaiting-list { list-style: none; margin: 0; padding: 0; }
.awaiting-list li { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.awaiting-list li:last-child { border-bottom: 0; }
.awaiting-list li.is-old .awaiting-who strong { color: var(--warning); }
.awaiting-check { display: inline-flex; padding: 4px; cursor: pointer; }
.awaiting-check input { width: 18px; height: 18px; accent-color: var(--primary); }
.awaiting-who { flex: 1; min-width: 0; display: flex; flex-direction: column; color: inherit; text-decoration: none; }
.awaiting-who span { font-size: 13px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.awaiting-actions { display: flex; gap: 6px; flex-shrink: 0; }
.awaiting-actions form { margin: 0; }
.awaiting-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-top: 10px; }
.awaiting-foot .btn { margin-left: auto; }
@media (max-width: 640px) {
  .awaiting-list li { flex-wrap: wrap; }
  .awaiting-who { flex-basis: calc(100% - 40px); }
  .awaiting-actions { width: 100%; padding-left: 32px; }
  .awaiting-actions form { flex: 1; }
  .awaiting-actions .btn { width: 100%; justify-content: center; }
}
.awaiting-check { flex: 0 0 auto; }
.awaiting-check input { width: 18px; height: 18px; margin: 0; padding: 0; }
.awaiting .section-title { flex-wrap: wrap; gap: 4px 12px; }
.awaiting .section-title small { flex-basis: 100%; }
@media (max-width: 640px) {
  .awaiting-actions { padding-left: 36px; }
}

/* ---------- Abonelik: ödeme dönemi seçimi ---------- */
.pay-period { border: 0; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.pay-period legend { font-size: 14px; font-weight: 600; color: var(--ink-soft); margin-bottom: 6px; padding: 0; }
.pay-period-opt { position: relative; cursor: pointer; }
.pay-period-opt input { position: absolute; opacity: 0; pointer-events: none; }
.pay-period-opt span {
  display: flex; flex-direction: column; gap: 2px; padding: 11px 13px; border: 1.5px solid var(--line);
  border-radius: var(--radius-sm); background: #fff; transition: border-color .15s, background .15s;
}
.pay-period-opt b { font-size: 15px; color: var(--ink); }
.pay-period-opt small { font-size: 12.5px; color: var(--muted); font-weight: 500; }
.pay-period-opt input:checked + span { border-color: var(--primary); background: var(--primary-light); }
.pay-period-opt input:focus-visible + span { outline: 2px solid var(--primary); outline-offset: 2px; }
.pay-total s { color: var(--muted); margin-left: 6px; }
.pay-save { display: inline-block; margin-left: 6px; padding: 2px 9px; border-radius: 99px; background: var(--success-bg); color: var(--success); font-size: 12.5px; font-weight: 700; }

/* ============================================================
   KuaförPro marka paleti — gül kurusu (html[data-brand="kuaforpro"])
   Beyaz metin / ana renk kontrastı ≈ 5:1 (WCAG AA).
   ============================================================ */
:root[data-brand="kuaforpro"] {
  --primary: #9e5a63;
  --primary-dark: #7f4450;
  --primary-light: #f6e3e5;
  --primary-rgb: 158, 90, 99;
  --primary-tint: #fcf4f5;
  --primary-accent: #c98b93;
  --primary-deep: #5c2f38;
}

/* ---------- Müşteri notu ---------- */
.customer-note-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.customer-note-head h3 { display: flex; align-items: center; gap: 7px; margin: 0 0 8px; }
.customer-note.has-note { border-left: 4px solid #eab308; }
.customer-note-text {
  background: #fefce8; border: 1px solid #fde68a; border-radius: var(--radius-sm); padding: 12px 14px;
  font-size: 15px; line-height: 1.55; color: var(--ink); white-space: normal; overflow-wrap: anywhere;
}
.customer-note-meta { display: block; margin: 6px 0 10px; }
.customer-note-edit > summary { list-style: none; display: inline-flex; cursor: pointer; }
.customer-note-edit > summary::-webkit-details-marker { display: none; }
.customer-note-edit[open] > summary { display: none; }
.customer-note-edit form { margin-top: 4px; }

/* ---------- Hizmetler: kategoriler ---------- */
.svc-actions { gap: 8px; flex-wrap: wrap; }
.svc-empty { text-align: center; padding: 34px 22px; }
.svc-empty-ico { display: inline-grid; place-items: center; width: 64px; height: 64px; border-radius: 18px; background: var(--primary-light); color: var(--primary-dark); margin-bottom: 12px; }
.svc-empty p { max-width: 560px; margin: 0 auto 18px; }
.svc-empty .btn-row { justify-content: center; flex-wrap: wrap; }
.svc-cats > summary { list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 12px; cursor: pointer; }
.svc-cats > summary::-webkit-details-marker { display: none; }
.svc-cats > summary > span:first-child { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.svc-cats-toggle { color: var(--primary); font-weight: 600; font-size: 14px; white-space: nowrap; }
.svc-cats[open] .svc-cats-toggle { visibility: hidden; }
.svc-cats-hint { font-size: 13.5px; margin: 12px 0; }
.svc-cat-list { list-style: none; margin: 0 0 12px; padding: 0; display: grid; gap: 8px; }
.svc-cat-list li { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 8px 10px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: #fff; }
.svc-cat-rename { display: flex; align-items: center; gap: 6px; flex: 1; min-width: 200px; margin: 0; }
.svc-cat-rename input { margin: 0; padding: 8px 10px; }
.svc-cat-tools { display: flex; gap: 2px; }
.svc-cat-tools form { margin: 0; }
.svc-cat-tools .btn-icon[disabled] { opacity: .3; cursor: default; }
.svc-cat-new { display: flex; gap: 8px; margin: 0; }
.svc-cat-new input { margin: 0; }
.svc-group { margin-top: 18px; }
.svc-group-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin: 0 2px 8px; }
.svc-group-head h2 { font-size: 17px; margin: 0; }
.svc-desc { color: var(--muted); }

/* ---------- Hazır hizmet listesi ---------- */
.tpl-intro h2 { display: flex; align-items: center; gap: 8px; }
.tpl-legend { margin: 10px 0 0; padding-left: 18px; color: var(--muted); font-size: 13.5px; display: grid; gap: 4px; }
.tpl-chip { display: inline-block; padding: 1px 7px; border-radius: 99px; background: var(--primary-light); color: var(--primary-dark); font-size: 12px; font-weight: 700; }
.tpl-cat-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 6px; }
.tpl-cat-head h3 { margin: 0; }
.tpl-rows { display: grid; }
.tpl-row { display: grid; grid-template-columns: minmax(0, 1fr) auto auto auto; gap: 10px 14px; align-items: center; padding: 9px 4px; border-top: 1px solid var(--line); }
.tpl-row:first-child { border-top: 0; }
.tpl-row.is-on { background: var(--primary-tint); border-radius: var(--radius-sm); }
.tpl-row.is-existing { opacity: .55; }
.tpl-pick { display: flex; align-items: center; gap: 10px; font-weight: 600; cursor: pointer; margin: 0; }
.tpl-pick input { width: 18px; height: 18px; margin: 0; padding: 0; accent-color: var(--primary); }
.tpl-name em { font-style: normal; font-size: 12px; font-weight: 600; color: var(--muted); margin-left: 4px; }
.tpl-field { display: flex; align-items: center; gap: 6px; margin: 0; font-weight: 500; font-size: 13px; color: var(--muted); }
.tpl-field input { width: 84px; margin: 0; padding: 7px 9px; }
.tpl-field input:disabled, .tpl-from input:disabled + .tpl-chip { opacity: .45; }
.tpl-from { display: flex; align-items: center; gap: 5px; margin: 0; cursor: pointer; }
.tpl-from input { width: 16px; height: 16px; margin: 0; padding: 0; accent-color: var(--primary); }
.tpl-submit { position: sticky; bottom: calc(76px + var(--safe-bottom)); z-index: 5; box-shadow: var(--shadow-lg); }
.tpl-submit-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-top: 10px; }
@media (min-width: 900px) { .tpl-submit { bottom: 14px; } }
@media (max-width: 640px) {
  .tpl-row { grid-template-columns: 1fr 1fr; }
  .tpl-pick { grid-column: 1 / -1; }
  .tpl-from { grid-column: 1 / -1; }
  .tpl-field input { width: 100%; }
  .tpl-field { flex: 1; }
}

/* ---------- Randevu sayfası: kategorili / çoklu hizmet seçimi ---------- */
.svc-step-head p { margin: -6px 0 12px; font-size: 14px; }
.svc-tools { display: flex; flex-direction: column; gap: 10px; margin-bottom: 14px; }
.svc-tabs { display: flex; gap: 8px; overflow-x: auto; padding: 2px 2px 6px; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.svc-tabs::-webkit-scrollbar { display: none; }
.svc-tab {
  flex: 0 0 auto; padding: 8px 15px; border-radius: 99px; border: 1.5px solid var(--line); background: #fff;
  color: var(--ink-soft); font: 600 14px var(--font); cursor: pointer; white-space: nowrap;
}
.svc-tab.is-active { background: var(--primary); border-color: var(--primary); color: #fff; }
.svc-tab[hidden] { display: none; }
.svc-search { display: flex; align-items: center; gap: 8px; margin: 0; padding: 0 12px; border: 1.5px solid var(--line); border-radius: var(--radius-sm); background: #fff; color: var(--muted); }
.svc-search input { border: 0; margin: 0; padding: 10px 0; box-shadow: none !important; }
.svc-block { margin-bottom: 14px; }
.svc-block.is-filtered, .svc-block.is-searched-out, .pick-service.is-searched-out { display: none !important; }
.svc-block-title { font-size: 13px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin: 8px 2px 8px; }
.pick-desc { color: var(--muted); font-weight: 400; line-height: 1.35; }
.pick-service.is-multi { position: relative; padding-left: 46px; }
.pick-check {
  position: absolute; left: 14px; top: 50%; transform: translateY(-50%);
  width: 22px; height: 22px; border-radius: 7px; border: 2px solid var(--line); background: #fff;
  display: grid; place-items: center; color: transparent; transition: background .12s, border-color .12s;
}
.pick-service.is-multi.selected .pick-check { background: var(--primary); border-color: var(--primary); color: #fff; }
.svc-cart {
  position: sticky; bottom: calc(12px + var(--safe-bottom)); z-index: 20; margin-top: 14px;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 12px 14px 12px 18px; border-radius: 16px; background: var(--ink); color: #fff;
  box-shadow: 0 16px 34px -12px rgba(15, 23, 42, .55);
}
.svc-cart[hidden] { display: none; }
.svc-cart-info { display: flex; flex-direction: column; line-height: 1.3; min-width: 0; }
.svc-cart-info span { font-size: 13px; opacity: .85; }
.svc-cart .btn { flex-shrink: 0; }
.ma-services { border: 1.5px solid var(--line); border-radius: var(--radius-sm); padding: 10px 12px; margin: 0; }
.ma-services legend { font-size: 14px; font-weight: 600; color: var(--ink-soft); padding: 0 4px; }
.ma-svc-group { display: grid; gap: 2px; margin-bottom: 6px; }
.ma-svc-group[hidden], .ma-svc[hidden] { display: none; }
.ma-svc-title { font-size: 12.5px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); margin: 6px 0 2px; }
.ma-svc-total { margin: 8px 0 0; font-weight: 600; color: var(--ink-soft); }
.ae-services.form-span { grid-column: 1 / -1; }
.appt-items { list-style: none; margin: 8px 0 0; padding: 8px 12px; border-radius: var(--radius-sm); background: rgba(var(--primary-rgb), .06); display: grid; gap: 4px; }
.appt-items li { display: flex; justify-content: space-between; gap: 10px; font-size: 14px; }
.appt-items small { color: var(--muted); white-space: nowrap; }
.plan-brand-tabs { margin: 4px 0 10px; } .plan-brand-note { font-size: 14px; padding: 8px 12px; border-radius: var(--radius-sm); background: var(--primary-tint); }

/* ---------- Yasal metinler ---------- */
.legal-wrap { padding: 28px max(var(--gutter), var(--safe-right)) 64px; max-width: 880px; }
.legal-nav { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; }
.legal-nav a { padding: 7px 13px; border-radius: 99px; border: 1px solid var(--line); background: #fff; color: var(--ink-soft); font-size: 13.5px; font-weight: 600; text-decoration: none; }
.legal-nav a.is-active { background: var(--primary); border-color: var(--primary); color: #fff; }
.legal-doc h1 { font-size: clamp(24px, 3vw, 32px); margin-bottom: 4px; }
.legal-meta { font-size: 13.5px; margin-bottom: 20px; }
.legal-body { font-size: 15.5px; line-height: 1.7; color: var(--ink-soft); }
.legal-body h2 { font-size: 18px; color: var(--ink); margin: 26px 0 8px; }
.legal-body ul { padding-left: 20px; margin: 0 0 14px; }
.legal-body li { margin-bottom: 6px; }
.legal-editor { font-family: ui-monospace, Consolas, monospace; font-size: 13.5px; line-height: 1.55; }
.legal-admin { align-items: start; }
.legal-consent { font-size: 13.5px; font-weight: 500; }
.legal-consent a { font-weight: 600; }
.legal-fine { font-size: 12.5px; color: var(--muted); text-align: center; margin: 10px 0 0; }
.salon-type-pick { border: 0; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 8px; }
.salon-type-pick legend { font-size: 14px; font-weight: 600; color: var(--ink-soft); margin-bottom: 6px; padding: 0; }
.salon-type-opt { position: relative; margin: 0; cursor: pointer; }
.salon-type-opt input { position: absolute; opacity: 0; pointer-events: none; }
.salon-type-opt span { display: block; padding: 11px 12px; border: 1.5px solid var(--line); border-radius: var(--radius-sm); text-align: center; font-weight: 600; font-size: 14px; background: #fff; }
.salon-type-opt input:checked + span { border-color: var(--primary); background: var(--primary-light); color: var(--primary-dark); }
.salon-type-opt input:focus-visible + span { outline: 2px solid var(--primary); outline-offset: 2px; }
.footer-legal { display: flex; gap: 14px; flex-wrap: wrap; } .footer-legal a { color: var(--muted); font-size: 13px; }
.brand-badge.brand-berberim { background: #ccfbf1; color: #115e59; }
.brand-badge.brand-kuaforpro { background: #f6e3e5; color: #7f4450; }

/* ---------- Kuaför / güzellik temaları (randevu sayfası) ---------- */
.theme-gul {
  --primary: #9e5a63; --primary-dark: #7f4450; --primary-light: #f6e3e5; --primary-tint: #fcf4f5; --primary-rgb: 158, 90, 99;
  --hero-from: #3b1f25; --hero-to: #8c4f5a; --hero-link: #f5c6cc;
}
.theme-pudra {
  --primary: #9a6a52; --primary-dark: #7a523e; --primary-light: #f6e9e1; --primary-tint: #fcf7f3; --primary-rgb: 154, 106, 82;
  --hero-from: #3d2a20; --hero-to: #a3785f; --hero-link: #fde3cf;
}
.theme-lila {
  --primary: #7c5ca8; --primary-dark: #5b4180; --primary-light: #ede7f6; --primary-tint: #f8f5fc; --primary-rgb: 124, 92, 168;
  --hero-from: #2c2140; --hero-to: #6d4e96; --hero-link: #d8c8f0;
}
.theme-adacayi {
  --primary: #557560; --primary-dark: #3f5947; --primary-light: #e5efe8; --primary-tint: #f4f8f5; --primary-rgb: 85, 117, 96;
  --hero-from: #1f2d25; --hero-to: #557a63; --hero-link: #cfe6d6;
}
.theme-pembe {
  --primary: #c13a6c; --primary-dark: #962a52; --primary-light: #fde4ee; --primary-tint: #fff6fa; --primary-rgb: 193, 58, 108;
  --hero-from: #0b0b0f; --hero-to: #3a1426; --hero-link: #f9a8c9;
}
.theme-swatch-gul      { --sw-from: #3b1f25; --sw-to: #8c4f5a; --sw-accent: #9e5a63; }
.theme-swatch-pudra    { --sw-from: #3d2a20; --sw-to: #a3785f; --sw-accent: #9a6a52; }
.theme-swatch-lila     { --sw-from: #2c2140; --sw-to: #6d4e96; --sw-accent: #7c5ca8; }
.theme-swatch-adacayi  { --sw-from: #1f2d25; --sw-to: #557a63; --sw-accent: #557560; }
.theme-swatch-pembe    { --sw-from: #0b0b0f; --sw-to: #3a1426; --sw-accent: #c13a6c; }
