/* ============================================================
   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-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);
}

/* ---------- 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 20px; }
.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(15, 118, 110, .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(15, 118, 110, .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: 16px; 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;
}
.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(15, 118, 110, .16), transparent),
    radial-gradient(700px 400px at -10% 110%, rgba(15, 118, 110, .1), transparent),
    linear-gradient(180deg, #f0fdfa, #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(15, 118, 110, .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: 2fr 1fr 1.4fr 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: #f0fdfa; }
.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: #f0fdfa; }
.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: #f0fdfa; }
.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;
}
.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: 0 22px; height: 62px; 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 22px calc(90px + var(--safe-bottom)); 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: #f0fdfa; }
.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 */
  .container { padding: 0 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 14px calc(96px + var(--safe-bottom)); }
  .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; }
}
