/* ============================================================
   سمانة العربية — Design system (soft glass app UI)
   ============================================================ */
:root {
  --font: "IBM Plex Sans Arabic", system-ui, -apple-system, "Segoe UI", Tahoma, sans-serif;
  --bg: #F5F3F9;
  --blob1: #E7DAFF; --blob2: #FFE4C7; --blob3: #DCEBFF;
  --surface: #FFFFFF;
  --surface-2: #FAF9FC;
  --glass: rgba(255,255,255,.72);
  --border: rgba(30,20,60,.07);
  --text: #16141D;
  --text-2: #4A4757;
  --muted: #8E8A9C;
  --accent-1: #FFC52E;
  --accent-2: #FF9500;
  --accent: #FFA30F;
  --on-accent: #1E1400;
  --accent-soft: #FFF1D9;
  --purple: #8B5CF6; --blue: #3B82F6; --green: #10B981; --pink: #EC4899; --red: #EF4444;
  --shadow-sm: 0 2px 8px rgba(60,40,120,.06);
  --shadow: 0 10px 30px rgba(70,50,140,.08);
  --shadow-accent: 0 10px 22px rgba(255,149,0,.38);
  --r-lg: 26px; --r: 20px; --r-sm: 14px;
  --nav-h: 78px;
  color-scheme: light;
}
[data-theme="dark"] {
  --bg: #0F0F14;
  --blob1: #2B1E4A; --blob2: #3A2610; --blob3: #13233F;
  --surface: #1A1A22;
  --surface-2: #20202A;
  --glass: rgba(28,28,38,.72);
  --border: rgba(255,255,255,.07);
  --text: #F2F1F7;
  --text-2: #C9C6D6;
  --muted: #8C889C;
  --accent-soft: rgba(255,163,15,.14);
  --shadow-sm: 0 2px 8px rgba(0,0,0,.25);
  --shadow: 0 12px 30px rgba(0,0,0,.35);
  color-scheme: dark;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; font-family: var(--font); background: var(--bg); color: var(--text);
  font-size: 15px; line-height: 1.6; min-height: 100vh; -webkit-font-smoothing: antialiased;
  padding-bottom: calc(var(--nav-h) + 30px + env(safe-area-inset-bottom));
  transition: background .3s, color .3s;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
h1, h2, h3, h4 { margin: 0; line-height: 1.35; font-weight: 700; }
p { margin: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
::selection { background: var(--accent-1); color: #000; }

/* Background blobs (soft gradient like the reference) */
.bg-blobs { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.bg-blobs span { position: absolute; border-radius: 50%; filter: blur(70px); opacity: .9; }
.bg-blobs span:nth-child(1) { width: 520px; height: 420px; background: var(--blob1); top: -160px; inset-inline-end: -120px; }
.bg-blobs span:nth-child(2) { width: 460px; height: 380px; background: var(--blob2); top: 35%; inset-inline-start: -200px; opacity: .7; }
.bg-blobs span:nth-child(3) { width: 420px; height: 360px; background: var(--blob3); bottom: -160px; inset-inline-end: -100px; opacity: .6; }

.app { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 18px; }

/* ---------- Header ---------- */
.topbar {
  display: grid; grid-template-columns: auto 1fr auto; gap: 14px; align-items: center;
  padding: 16px 0 10px; position: sticky; top: 0; z-index: 30;
}
.topbar::before { content: ""; position: absolute; inset: 0 -18px; background: linear-gradient(var(--bg) 55%, transparent); z-index: -1; opacity: .92; }
.brand { display: flex; align-items: center; }
.logo { height: 46px; width: auto; }
.logo-dark { display: none; }
[data-theme="dark"] .logo-light { display: none; }
[data-theme="dark"] .logo-dark { display: block; }
.search {
  display: flex; align-items: center; gap: 10px; height: 52px; padding: 0 18px;
  background: var(--glass); border: 1px solid var(--border); border-radius: 999px;
  box-shadow: var(--shadow-sm); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  transition: box-shadow .2s, border-color .2s;
}
.search:focus-within { border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.search i { color: var(--muted); font-size: 17px; }
.search input { flex: 1; border: 0; outline: 0; background: transparent; min-width: 0; font-size: 15px; }
.search input::placeholder { color: var(--muted); }
.top-actions { display: flex; gap: 10px; }
.icon-btn {
  position: relative; width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center;
  background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow-sm); cursor: pointer;
  font-size: 18px; color: var(--text); transition: transform .15s, box-shadow .2s; flex-shrink: 0;
}
.icon-btn:hover { transform: translateY(-1px); box-shadow: var(--shadow); }
.icon-btn.ghost { visibility: hidden; }
.icon-btn .dot {
  position: absolute; top: -2px; inset-inline-end: -2px; min-width: 20px; height: 20px; border-radius: 10px; padding: 0 5px;
  background: linear-gradient(135deg, var(--accent-1), var(--accent-2)); color: var(--on-accent);
  font-size: 11px; font-weight: 700; display: grid; place-items: center; border: 2px solid var(--bg);
}
[data-theme-toggle] .fa-sun { display: none; }
[data-theme="dark"] [data-theme-toggle] .fa-sun { display: inline-block; color: var(--accent-1); }
[data-theme="dark"] [data-theme-toggle] .fa-moon { display: none; }

@media (max-width: 760px) {
  .topbar { grid-template-columns: 1fr auto; row-gap: 12px; }
  .topbar .search { grid-column: 1 / -1; grid-row: 2; }
  .logo { height: 40px; }
  .icon-btn { width: 44px; height: 44px; font-size: 17px; }
}

.announce {
  display: flex; gap: 10px; align-items: center; margin: 4px 0 6px; padding: 10px 16px; border-radius: var(--r-sm);
  background: var(--accent-soft); color: var(--text); font-size: 14px; font-weight: 500;
}
.announce i { color: var(--accent-2); }
.page-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 8px 0 14px; }
.page-head h1 { font-size: 21px; text-align: center; flex: 1; }

.content { display: flex; flex-direction: column; gap: 26px; padding-top: 8px; }

/* ---------- Generic UI ---------- */
.card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--r);
  box-shadow: var(--shadow-sm); padding: 16px; transition: transform .2s, box-shadow .2s;
}
a.card:hover, .card.hover:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.section-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 14px; }
.section-head h2 { font-size: 19px; }
.section-head .more { color: var(--muted); font-size: 14px; font-weight: 500; }
.arrow-btn {
  width: 34px; height: 34px; border-radius: 11px; display: grid; place-items: center;
  background: linear-gradient(135deg, var(--accent-1), var(--accent-2)); color: var(--on-accent); box-shadow: var(--shadow-accent); font-size: 14px;
}
[dir="rtl"] .flip-rtl { transform: scaleX(-1); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 0; cursor: pointer;
  height: 48px; padding: 0 22px; border-radius: 16px; font-weight: 600; font-size: 15px;
  background: var(--surface-2); color: var(--text); border: 1px solid var(--border); transition: transform .15s, box-shadow .2s, filter .2s;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: scale(.98); }
.btn-accent { background: linear-gradient(135deg, var(--accent-1), var(--accent-2)); color: var(--on-accent); border: 0; box-shadow: var(--shadow-accent); }
.btn-accent:hover { filter: brightness(1.04); }
.btn-dark { background: var(--text); color: var(--bg); border: 0; }
.btn-wa { background: #25D366; color: #fff; border: 0; }
.btn-block { width: 100%; }
.btn-sm { height: 38px; padding: 0 14px; border-radius: 12px; font-size: 14px; }
.btn[disabled] { opacity: .5; pointer-events: none; }

/* Chips (tabs like reference) */
.chips { display: flex; gap: 10px; overflow-x: auto; padding: 4px 2px 10px; scrollbar-width: none; scroll-snap-type: x proximity; }
.chips::-webkit-scrollbar { display: none; }
.chip {
  flex-shrink: 0; display: inline-flex; align-items: center; gap: 8px; height: 44px; padding: 0 18px; border-radius: 15px;
  background: var(--surface); border: 1px solid var(--border); color: var(--text-2); font-weight: 500; font-size: 14.5px;
  box-shadow: var(--shadow-sm); white-space: nowrap; cursor: pointer; scroll-snap-align: start; transition: all .2s;
}
.chip i { font-size: 15px; color: var(--muted); }
.chip:hover { color: var(--text); }
.chip.active { background: linear-gradient(135deg, var(--accent-1), var(--accent-2)); color: var(--on-accent); border-color: transparent; box-shadow: var(--shadow-accent); font-weight: 600; }
.chip.active i { color: var(--on-accent); }

/* Greeting */
.greet { display: flex; align-items: center; gap: 14px; }
.greet .av {
  width: 58px; height: 58px; border-radius: 50%; display: grid; place-items: center; font-size: 22px; flex-shrink: 0;
  background: radial-gradient(circle at 30% 30%, #A78BFA, #6D28D9); color: #fff; box-shadow: 0 8px 20px rgba(109,40,217,.3);
}
.greet small { color: var(--muted); font-size: 14px; display: block; }
.greet b { font-size: 20px; display: block; line-height: 1.3; }
.greet span { color: var(--text-2); font-size: 14px; }

/* Hero card */
.hero {
  position: relative; overflow: hidden; border-radius: var(--r-lg); padding: 26px 24px; display: grid; grid-template-columns: 1.1fr 1fr; align-items: center; gap: 10px;
  background: linear-gradient(135deg, rgba(255,255,255,.95), rgba(255,247,236,.92)); border: 1px solid var(--border); box-shadow: var(--shadow);
}
[data-theme="dark"] .hero { background: linear-gradient(135deg, #1D1B27, #2A2015); }
.hero h1 { font-size: clamp(22px, 3.4vw, 34px); letter-spacing: -.2px; }
.hero p { color: var(--text-2); font-size: 14px; margin: 10px 0 16px; max-width: 420px; }
.hero .art { width: 100%; max-height: 230px; }
@media (max-width: 560px) { .hero { grid-template-columns: 1fr; padding: 22px 20px 0; } .hero .art { max-height: 190px; margin-top: -4px; } }

/* Workspace-like cards with coloured side bar */
.grid { display: grid; gap: 14px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 980px) { .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .grid-3, .grid-docs { grid-template-columns: 1fr !important; } }
@media (max-width: 520px) { .grid-2 { grid-template-columns: 1fr; } }
.hscroll { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(240px, 1fr); gap: 14px; overflow-x: auto; padding: 2px 2px 12px; scrollbar-width: none; scroll-snap-type: x mandatory; }
.hscroll::-webkit-scrollbar { display: none; }
.hscroll > * { scroll-snap-align: start; }

.ws-card { display: flex; flex-direction: column; gap: 12px; }
.ws-title { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.ws-title h3 { font-size: 16px; font-weight: 600; padding-inline-start: 12px; border-inline-start: 4px solid var(--bar, var(--purple)); border-radius: 2px; line-height: 1.4; }
.ws-title .dots { color: var(--muted); }
.ws-card hr { border: 0; border-top: 1px solid var(--border); margin: 0; }
.ws-meta { display: flex; align-items: center; justify-content: space-between; gap: 10px; color: var(--muted); font-size: 13px; }
.ws-meta div { display: flex; flex-direction: column; gap: 4px; }
.ws-meta i { color: var(--text); width: 16px; }

/* Specialty tiles */
.spec-tile { display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }
.spec-ico { width: 48px; height: 48px; border-radius: 15px; display: grid; place-items: center; font-size: 20px; color: var(--c); background: color-mix(in srgb, var(--c) 14%, transparent); }
.spec-tile h3 { font-size: 15px; font-weight: 600; }
.spec-tile small { color: var(--muted); font-size: 13px; }
.spec-tile p { color: var(--text-2); font-size: 13px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* Date strip (reference style) */
.date-strip { display: flex; gap: 10px; overflow-x: auto; padding: 6px 2px 14px; scrollbar-width: none; }
.date-strip::-webkit-scrollbar { display: none; }
.day {
  flex: 0 0 64px; height: 88px; border-radius: 20px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px;
  background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow-sm); cursor: pointer; transition: all .2s; position: relative; user-select: none;
}
.day small { font-size: 12px; color: var(--muted); font-weight: 500; text-transform: uppercase; }
.day b { font-size: 22px; font-weight: 600; color: var(--text-2); line-height: 1; }
.day::after { content: ""; width: 22px; height: 2px; border-radius: 2px; background: transparent; position: absolute; top: 44px; }
.day:hover { transform: translateY(-2px); }
.day.active { background: linear-gradient(160deg, var(--accent-1), var(--accent-2)); border-color: transparent; box-shadow: var(--shadow-accent); }
.day.active small, .day.active b { color: var(--on-accent); }
.day.active::after { background: rgba(30,20,0,.35); }
.day.off { opacity: .45; cursor: not-allowed; }
.day.off:hover { transform: none; }

/* Slots */
.slots { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 10px; }
.slot {
  height: 46px; border-radius: 14px; border: 1px solid var(--border); background: var(--surface-2); cursor: pointer; font-weight: 600; font-size: 14px;
  display: grid; place-items: center; transition: all .15s;
}
.slot:hover { border-color: var(--accent); }
.slot.active { background: linear-gradient(135deg, var(--accent-1), var(--accent-2)); color: var(--on-accent); border-color: transparent; box-shadow: var(--shadow-accent); }
.slot[disabled] { opacity: .38; text-decoration: line-through; cursor: not-allowed; }
.empty { text-align: center; color: var(--muted); padding: 22px 10px; font-size: 14px; }
.empty i { display: block; font-size: 30px; margin-bottom: 8px; opacity: .6; }

/* Doctor card */
.grid-docs { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
.doc-card { display: flex; flex-direction: column; gap: 14px; position: relative; }
.doc-top { display: flex; gap: 14px; align-items: center; }
.doc-ph, .avatar-ph { width: 72px; height: 72px; border-radius: 20px; object-fit: cover; flex-shrink: 0; }
.avatar-ph { display: grid; place-items: center; font-size: 28px; color: hsl(var(--h) 70% 45%); background: linear-gradient(145deg, hsl(var(--h) 90% 94%), hsl(calc(var(--h) + 40) 90% 88%)); }
[data-theme="dark"] .avatar-ph { color: hsl(var(--h) 80% 75%); background: linear-gradient(145deg, hsl(var(--h) 30% 22%), hsl(calc(var(--h) + 40) 30% 18%)); }
.doc-info { min-width: 0; }
.doc-info h3 { font-size: 16px; font-weight: 600; }
.doc-info p { color: var(--text-2); font-size: 13.5px; padding-inline-start: 9px; border-inline-start: 3px solid var(--bar); margin: 3px 0 7px; }
.verified { color: var(--blue); font-size: 14px; }
.chips-mini { display: flex; flex-wrap: wrap; gap: 6px 12px; color: var(--muted); font-size: 12.5px; }
.chips-mini i { color: var(--text-2); }
.doc-meta { display: flex; justify-content: space-between; gap: 8px; flex-wrap: wrap; padding-top: 12px; border-top: 1px solid var(--border); font-size: 13px; color: var(--muted); }
.doc-meta i { color: var(--text); margin-inline-end: 4px; }
.doc-meta b { color: var(--text); font-weight: 600; }

/* Doctor profile */
.profile-hero { position: relative; overflow: hidden; padding: 24px; display: flex; gap: 20px; align-items: center; border-radius: var(--r-lg); }
.profile-hero::before { content: ""; position: absolute; inset: 0; background: linear-gradient(120deg, color-mix(in srgb, var(--bar) 18%, transparent), transparent 60%); pointer-events: none; }
.profile-hero .doc-ph, .profile-hero .avatar-ph { width: 112px; height: 112px; border-radius: 30px; font-size: 42px; box-shadow: var(--shadow); }
.profile-hero h1 { font-size: 23px; }
.profile-hero .sub { color: var(--text-2); margin: 4px 0 10px; }
.tag { display: inline-flex; align-items: center; gap: 6px; padding: 5px 11px; border-radius: 10px; background: var(--surface-2); border: 1px solid var(--border); font-size: 12.5px; color: var(--text-2); }
.tags { display: flex; flex-wrap: wrap; gap: 8px; }
@media (max-width: 560px) { .profile-hero { flex-direction: column; text-align: center; } .profile-hero .tags { justify-content: center; } }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.stat { text-align: center; padding: 14px 8px; }
.stat i { width: 40px; height: 40px; border-radius: 13px; display: inline-grid; place-items: center; background: var(--accent-soft); color: var(--accent-2); margin-bottom: 6px; }
.stat b { display: block; font-size: 16px; }
.stat small { color: var(--muted); font-size: 12.5px; }
.two-col { display: grid; grid-template-columns: 1.35fr 1fr; gap: 20px; align-items: start; }
.two-col > * { min-width: 0; }
.sticky { position: sticky; top: 90px; }
@media (max-width: 900px) { .two-col { grid-template-columns: 1fr; } .sticky { position: static; } }
.info-block h3 { font-size: 16px; display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.info-block h3 i { width: 34px; height: 34px; border-radius: 11px; display: grid; place-items: center; font-size: 14px; color: var(--c, var(--purple)); background: color-mix(in srgb, var(--c, var(--purple)) 14%, transparent); }
.info-block p, .info-block li { color: var(--text-2); font-size: 14.5px; }
.list-check { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.list-check li { display: flex; gap: 10px; align-items: flex-start; }
.list-check li::before { content: "\f00c"; font-family: "Font Awesome 6 Free"; font-weight: 900; color: var(--green); font-size: 12px; margin-top: 4px; }

/* Booking panel */
.book-panel { padding: 20px; display: flex; flex-direction: column; gap: 16px; }
.book-panel h2 { font-size: 18px; display: flex; gap: 10px; align-items: center; }
.note { font-size: 12.5px; color: var(--muted); display: flex; gap: 8px; align-items: flex-start; }
.selected-slot { display: none; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 14px; background: var(--accent-soft); font-size: 14px; font-weight: 500; }
.selected-slot.show { display: flex; }
.selected-slot i { color: var(--accent-2); }

/* Forms */
.form { display: grid; gap: 14px; }
.field { display: grid; gap: 6px; }
.field label { font-size: 13.5px; font-weight: 600; color: var(--text-2); }
.field label .req { color: var(--red); }
.field label small { color: var(--muted); font-weight: 400; }
.input, .field input, .field select, .field textarea {
  width: 100%; height: 50px; padding: 0 16px; border-radius: 15px; border: 1px solid var(--border); background: var(--surface-2);
  outline: 0; transition: border-color .2s, box-shadow .2s; font-size: 15px;
}
.field textarea { height: auto; min-height: 92px; padding: 12px 16px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.field input[type="tel"] { direction: ltr; text-align: start; }
[dir="rtl"] .field input[type="tel"] { text-align: right; }
.input-ico { position: relative; }
.input-ico i { position: absolute; top: 50%; transform: translateY(-50%); inset-inline-start: 16px; color: var(--muted); }
.input-ico input { padding-inline-start: 44px; }

.alert { padding: 13px 16px; border-radius: 15px; font-size: 14px; font-weight: 500; display: flex; gap: 10px; align-items: center; }
.alert-success { background: color-mix(in srgb, var(--green) 14%, transparent); color: color-mix(in srgb, var(--green) 70%, var(--text)); }
.alert-error { background: color-mix(in srgb, var(--red) 13%, transparent); color: color-mix(in srgb, var(--red) 75%, var(--text)); }

/* Badges */
.badge { display: inline-flex; align-items: center; gap: 6px; padding: 4px 11px; border-radius: 999px; font-size: 12.5px; font-weight: 600; white-space: nowrap; }
.b-new { background: color-mix(in srgb, var(--accent-2) 16%, transparent); color: #C26A00; }
.b-ok { background: color-mix(in srgb, var(--green) 16%, transparent); color: #058A5E; }
.b-done { background: color-mix(in srgb, var(--blue) 15%, transparent); color: #2563EB; }
.b-cancel { background: color-mix(in srgb, var(--red) 13%, transparent); color: #DC2626; }
[data-theme="dark"] .b-new { color: #FFB547; } [data-theme="dark"] .b-ok { color: #34D399; } [data-theme="dark"] .b-done { color: #7AA7FF; } [data-theme="dark"] .b-cancel { color: #F87171; }

/* Steps (how it works) */
.steps { counter-reset: s; }
.step { display: flex; gap: 12px; align-items: center; }
.step .n { width: 44px; height: 44px; border-radius: 14px; flex-shrink: 0; display: grid; place-items: center; font-weight: 700; color: var(--c); background: color-mix(in srgb, var(--c) 14%, transparent); font-size: 17px; }
.step h3 { font-size: 15px; font-weight: 600; }
.step p { font-size: 13px; color: var(--muted); }

/* Service cards */
.svc { display: flex; flex-direction: column; gap: 12px; }
.svc.main { background: linear-gradient(135deg, var(--accent-1), var(--accent-2)); color: var(--on-accent); border: 0; box-shadow: var(--shadow-accent); }
.svc.main p, .svc.main .ws-meta { color: rgba(30,20,0,.75); }
.svc.main .spec-ico { background: rgba(255,255,255,.35); color: var(--on-accent); }
.svc.main h3 { border-color: var(--on-accent) !important; }
.svc p { color: var(--text-2); font-size: 13.5px; }
.pill-label { font-size: 11.5px; font-weight: 700; padding: 3px 10px; border-radius: 999px; background: rgba(255,255,255,.45); }

/* Stats strip */
.counters { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.counter { text-align: center; padding: 16px 8px; }
.counter b { font-size: 24px; display: block; background: linear-gradient(135deg, var(--accent-1), var(--accent-2)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.counter small { color: var(--muted); }

/* FAQ */
.faq details { border-radius: var(--r-sm); background: var(--surface); border: 1px solid var(--border); padding: 0 16px; margin-bottom: 10px; box-shadow: var(--shadow-sm); }
.faq summary { cursor: pointer; padding: 15px 0; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 10px; align-items: center; font-size: 14.5px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "\f067"; font-family: "Font Awesome 6 Free"; font-weight: 900; font-size: 12px; color: var(--accent-2); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--text-2); padding-bottom: 15px; font-size: 14px; }

/* Lists (bookings, notifications) */
.list { display: grid; gap: 12px; }
.list-item { display: flex; gap: 14px; align-items: center; }
.list-item .ico { width: 46px; height: 46px; border-radius: 15px; display: grid; place-items: center; flex-shrink: 0; background: var(--accent-soft); color: var(--accent-2); font-size: 18px; }
.list-item .grow { flex: 1; min-width: 0; }
.list-item h3 { font-size: 15px; font-weight: 600; }
.list-item p, .list-item small { color: var(--muted); font-size: 13px; }
.list-item.unread { border-color: var(--accent); }

/* Segmented control (account settings) */
.seg { display: flex; padding: 5px; border-radius: 16px; background: var(--surface-2); border: 1px solid var(--border); gap: 4px; }
.seg a, .seg button { flex: 1; height: 42px; border-radius: 12px; border: 0; background: transparent; display: grid; place-items: center; font-weight: 600; font-size: 14px; color: var(--muted); cursor: pointer; }
.seg .active { background: var(--surface); color: var(--text); box-shadow: var(--shadow-sm); }
[data-theme="dark"] .seg .active { background: #2C2C38; }

/* Success page */
.success { text-align: center; padding: 30px 20px; display: grid; gap: 14px; justify-items: center; }
.success .big-ico { width: 88px; height: 88px; border-radius: 30px; display: grid; place-items: center; font-size: 38px; background: linear-gradient(135deg, var(--accent-1), var(--accent-2)); color: var(--on-accent); box-shadow: var(--shadow-accent); animation: pop .5s ease; }
@keyframes pop { 0% { transform: scale(.4); opacity: 0; } 70% { transform: scale(1.08); } 100% { transform: scale(1); opacity: 1; } }
.code-box { display: inline-flex; align-items: center; gap: 12px; padding: 12px 18px; border-radius: 16px; border: 2px dashed var(--accent); font-size: 22px; font-weight: 700; letter-spacing: 2px; direction: ltr; }
.kv { display: grid; gap: 10px; text-align: start; width: 100%; max-width: 440px; }
.kv div { display: flex; justify-content: space-between; gap: 10px; padding: 10px 0; border-bottom: 1px dashed var(--border); font-size: 14px; }
.kv span { color: var(--muted); }

/* Footer + bottom navigation (reference style) */
.site-foot { margin: 40px 0 10px; padding: 20px; border-radius: var(--r-lg); background: var(--glass); border: 1px solid var(--border); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; }
.foot-brand { display: flex; align-items: center; gap: 12px; }
.foot-brand img { width: 44px; height: 44px; border-radius: 14px; }
.foot-brand small { display: block; color: var(--muted); font-size: 12.5px; }
.foot-links { display: flex; gap: 10px; }
.foot-links a { width: 40px; height: 40px; border-radius: 13px; display: grid; place-items: center; background: var(--surface); border: 1px solid var(--border); }
.foot-links a:hover { color: var(--accent-2); }
.site-foot .copy { width: 100%; color: var(--muted); font-size: 12px; }

.bottom-nav {
  position: fixed; z-index: 50; bottom: 0; left: 50%; transform: translateX(-50%); width: 100%; max-width: 620px;
  height: calc(var(--nav-h) + env(safe-area-inset-bottom)); padding: 0 12px env(safe-area-inset-bottom);
  display: grid; grid-template-columns: repeat(5, 1fr); align-items: center;
  background: var(--glass); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border); border-bottom: 0; border-radius: 30px 30px 0 0; box-shadow: 0 -8px 30px rgba(60,40,120,.08);
}
@media (min-width: 640px) { .bottom-nav { bottom: 14px; border-radius: 30px; border-bottom: 1px solid var(--border); height: var(--nav-h); padding: 0 12px; } }
.bottom-nav a { display: flex; flex-direction: column; align-items: center; gap: 4px; color: var(--muted); font-size: 20px; transition: color .2s; }
.bottom-nav a small { font-size: 11px; font-weight: 500; }
.bottom-nav a.active { color: var(--accent-2); }
.bottom-nav a.active small { font-weight: 700; }
.bottom-nav .fab span {
  width: 64px; height: 64px; margin-top: -40px; border-radius: 50%; display: grid; place-items: center; font-size: 26px;
  background: linear-gradient(145deg, var(--accent-1), var(--accent-2)); color: var(--on-accent);
  box-shadow: var(--shadow-accent), 0 0 0 6px var(--bg); transition: transform .2s;
}
.bottom-nav .fab:hover span { transform: translateY(-2px) rotate(90deg); }
.bottom-nav .fab small { color: var(--text-2); font-weight: 600; }
.wa-fab { position: fixed; z-index: 49; bottom: calc(var(--nav-h) + 26px + env(safe-area-inset-bottom)); inset-inline-end: 18px; width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center; background: #25D366; color: #fff; font-size: 27px; box-shadow: 0 10px 24px rgba(37,211,102,.4); }

/* Misc */
.muted { color: var(--muted); }
.center { text-align: center; }
.row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.between { justify-content: space-between; }
.mt { margin-top: 14px; }
.stack { display: grid; gap: 14px; }
.stack > *, .grid > *, .form > * { min-width: 0; }
.toolbar { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.toolbar select { height: 44px; border-radius: 14px; border: 1px solid var(--border); background: var(--surface); padding: 0 12px; box-shadow: var(--shadow-sm); }
.city-tile { position: relative; overflow: hidden; display: flex; align-items: center; gap: 12px; }
.city-tile .spec-ico { --c: var(--blue); }
.reveal { opacity: 0; transform: translateY(14px); transition: opacity .5s ease, transform .5s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; } * { transition: none !important; animation: none !important; } }
.skeleton { background: linear-gradient(90deg, var(--surface-2), var(--border), var(--surface-2)); background-size: 200% 100%; animation: sk 1.2s infinite; border-radius: 14px; height: 46px; }
@keyframes sk { to { background-position: -200% 0; } }
.toast { position: fixed; bottom: calc(var(--nav-h) + 30px); left: 50%; transform: translateX(-50%) translateY(20px); background: var(--text); color: var(--bg); padding: 10px 18px; border-radius: 12px; font-size: 14px; opacity: 0; transition: all .3s; z-index: 60; pointer-events: none; }
.toast.show { opacity: 1; transform: translateX(-50%); }

/* Bottom nav centre button (icon only) */
.bottom-nav .fab { justify-content: center; }
.bottom-nav .fab span { margin-top: -34px; }

/* PWA install sheet */
.pwa-sheet { position: fixed; inset: 0; z-index: 90; display: flex; align-items: flex-end; justify-content: center; padding: 14px; background: rgba(10,8,20,.35); backdrop-filter: blur(3px); animation: fadeIn .25s ease; }
.pwa-sheet[hidden] { display: none; }
.pwa-card { width: min(460px, 100%); background: var(--surface); border: 1px solid var(--border); border-radius: 26px; box-shadow: var(--shadow); padding: 20px; display: grid; gap: 14px; margin-bottom: env(safe-area-inset-bottom); animation: slideUp .35s cubic-bezier(.2,.9,.3,1.2); }
.pwa-head { display: flex; gap: 14px; align-items: center; }
.pwa-head img { width: 62px; height: 62px; border-radius: 18px; box-shadow: var(--shadow-sm); }
.pwa-head b { display: block; font-size: 17px; }
.pwa-head small { color: var(--muted); font-size: 13px; line-height: 1.5; display: block; }
.pwa-head > div { flex: 1; }
.pwa-x { width: 36px; height: 36px; font-size: 14px; align-self: flex-start; }
.pwa-ios { display: none; margin: 0; padding: 14px 18px; padding-inline-start: 34px; background: var(--surface-2); border-radius: 16px; font-size: 14px; gap: 8px; }
.pwa-ios i { color: var(--blue); margin: 0 4px; }
.pwa-sheet.ios .pwa-ios { display: grid; }
.pwa-sheet.ios [data-pwa-install] { display: none; }
.pwa-actions .btn { flex: 1; }
@keyframes slideUp { from { transform: translateY(40px); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

/* Push opt-in */
.push-box { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }
.push-box .ico { width: 46px; height: 46px; border-radius: 15px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent-2); font-size: 18px; }
.push-box .grow { flex: 1; min-width: 200px; }
.push-box h3 { font-size: 15px; }
.push-box p { color: var(--muted); font-size: 13px; }
.push-box.on .btn { display: none; }
.push-box.on .ico { background: color-mix(in srgb, var(--green) 15%, transparent); color: var(--green); }

/* Google button */
.btn-google { background: #fff; color: #1f1f1f; border: 1px solid #dadce0; font-weight: 600; }
[data-theme="dark"] .btn-google { background: #131314; color: #e3e3e3; border-color: #8e918f; }
.btn-google svg { width: 20px; height: 20px; }
.or-sep { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: 13px; }
.or-sep::before, .or-sep::after { content: ""; flex: 1; height: 1px; background: var(--border); }
