/* سواك — Siwak dental clinic */
:root {
  --bg: #f5f8fc;
  --surface: #ffffff;
  --ink: #0f2540;
  --muted: #56677f;
  --line: #dfe7f1;
  --brand: #1a5fc0;
  --brand-700: #134a98;
  --brand-500: #3b82e0;
  --brand-50: #eaf2fd;
  --accent: #0ea5e9;
  --accent-ink: #0369a1;
  --navy: #0c2a55;
  --accent-50: #e5f5fd;
  --ok: #067647;
  --ok-50: #ecfdf3;
  --warn: #b54708;
  --warn-50: #fffaeb;
  --danger: #b42318;
  --danger-50: #fef3f2;
  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 18px 40px -20px rgba(19, 60, 130, 0.35);
  --shadow-sm: 0 4px 14px -6px rgba(19, 60, 130, 0.18);
  --container: 1160px;
  font-family: 'Tajawal', system-ui, -apple-system, 'Segoe UI', sans-serif;
  color: var(--ink);
  background: var(--bg);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; line-height: 1.7; background: var(--bg); color: var(--ink); -webkit-font-smoothing: antialiased; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3, h4 { line-height: 1.3; margin: 0 0 0.5em; font-weight: 800; }
p { margin: 0 0 1em; }
button, input, select, textarea { font: inherit; color: inherit; }

.container { width: min(100% - 32px, var(--container)); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.muted { color: var(--muted); }
.hidden { display: none !important; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 22px; border-radius: 999px; border: 1.5px solid transparent;
  font-weight: 700; text-decoration: none; cursor: pointer; transition: 0.2s ease;
  white-space: nowrap;
}
.btn:disabled { opacity: 0.55; cursor: not-allowed; }
.btn-primary { background: var(--brand); color: #fff; box-shadow: var(--shadow-sm); }
.btn-primary:hover:not(:disabled) { background: var(--brand-700); transform: translateY(-1px); }
.btn-ghost { background: transparent; border-color: var(--line); color: var(--ink); }
.btn-ghost:hover:not(:disabled) { border-color: var(--brand); color: var(--brand); }
.btn-light { background: #fff; color: var(--brand); }
.btn-block { width: 100%; }
.btn-sm { padding: 8px 14px; font-size: 0.9rem; }
.btn svg { width: 18px; height: 18px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid color-mix(in srgb, var(--line) 70%, transparent);
}
.nav { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 72px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 800; font-size: 1.5rem; color: var(--brand); }
.brand img { width: 40px; height: 40px; }
.brand small { display: block; font-size: 0.72rem; font-weight: 500; color: var(--muted); margin-top: -6px; }
.nav-links { display: flex; gap: 26px; list-style: none; margin: 0; padding: 0; }
.nav-links a { text-decoration: none; font-weight: 500; color: var(--muted); }
.nav-links a:hover { color: var(--brand); }
.nav-toggle { display: none; background: none; border: 0; padding: 8px; cursor: pointer; }
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--ink); margin: 5px 0; border-radius: 2px; }

@media (max-width: 860px) {
  .nav-links {
    position: absolute; inset: 72px 0 auto 0; flex-direction: column; gap: 0;
    background: var(--surface); border-bottom: 1px solid var(--line); padding: 8px 16px 16px;
    display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links a { display: block; padding: 12px 4px; border-bottom: 1px solid var(--line); }
  .nav-toggle { display: block; }
  .nav .btn-primary { display: none; }
}

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; padding: 72px 0 96px; }
.hero::before {
  content: ''; position: absolute; inset: -40% -10% auto auto; width: 720px; height: 720px;
  background: radial-gradient(circle, var(--brand-50) 0%, transparent 65%); z-index: -1;
}
.hero-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 56px; align-items: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 999px;
  background: var(--accent-50); color: var(--accent-ink); font-weight: 700; font-size: 0.9rem; margin-bottom: 18px;
}
.hero h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); letter-spacing: -0.5px; }
.hero h1 em { font-style: normal; color: var(--brand); position: relative; }
.hero h1 em::after {
  content: ''; position: absolute; inset: auto 0 6px 0; height: 12px; background: var(--accent); opacity: 0.25; z-index: -1; border-radius: 6px;
}
.hero p.lead { font-size: 1.15rem; color: var(--muted); max-width: 520px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin: 28px 0 32px; }
.hero-trust { display: flex; gap: 28px; flex-wrap: wrap; }
.hero-trust div strong { display: block; font-size: 1.6rem; color: var(--brand); }
.hero-trust div span { color: var(--muted); font-size: 0.9rem; }

.hero-visual { position: relative; min-height: 420px; }
.mock-card {
  background: var(--surface); border-radius: 24px; box-shadow: var(--shadow); padding: 24px;
  border: 1px solid var(--line);
}
.mock-card.main { position: relative; z-index: 1; }
.mock-card h4 { display: flex; align-items: center; justify-content: space-between; font-size: 1rem; }
.mock-row { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-top: 1px dashed var(--line); }
.mock-row:first-of-type { border-top: 0; }
.mock-row .ic { width: 40px; height: 40px; border-radius: 12px; background: var(--brand-50); color: var(--brand); display: grid; place-items: center; flex: none; }
.mock-row .ic svg { width: 20px; height: 20px; }
.mock-row small { display: block; color: var(--muted); font-size: 0.82rem; }
.mock-row b { font-size: 1rem; }
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; font-size: 0.78rem; font-weight: 700; }
.pill-ok { background: var(--ok-50); color: var(--ok); }
.pill-warn { background: var(--warn-50); color: var(--warn); }
.pill-danger { background: var(--danger-50); color: var(--danger); }
.pill-muted { background: #f2f4f3; color: var(--muted); }
.pill-brand { background: var(--brand-50); color: var(--brand); }

.sms-bubble {
  position: absolute; z-index: 2; inset-inline-start: -28px; bottom: 6px; width: 290px;
  background: var(--brand); color: #fff; border-radius: 20px 20px 20px 6px; padding: 16px 18px;
  box-shadow: var(--shadow); font-size: 0.92rem; line-height: 1.6;
  animation: float 5s ease-in-out infinite;
}
.sms-bubble .from { display: flex; align-items: center; gap: 8px; font-size: 0.78rem; opacity: 0.85; margin-bottom: 6px; }
.sms-bubble .from svg { width: 16px; height: 16px; }
.deposit-chip {
  position: absolute; z-index: 2; inset-inline-end: -12px; top: -22px; background: var(--surface);
  border-radius: 16px; padding: 12px 16px; box-shadow: var(--shadow); display: flex; gap: 10px; align-items: center;
  border: 1px solid var(--line); animation: float 6s ease-in-out infinite reverse;
}
.deposit-chip .ic { width: 36px; height: 36px; border-radius: 10px; background: var(--accent-50); color: var(--accent-ink); display: grid; place-items: center; }
.deposit-chip .ic svg { width: 18px; height: 18px; }
.deposit-chip small { display: block; color: var(--muted); font-size: 0.78rem; }
@keyframes float { 50% { transform: translateY(-8px); } }
@media (prefers-reduced-motion: reduce) { .sms-bubble, .deposit-chip { animation: none; } }

@media (max-width: 960px) {
  .hero { padding: 40px 0 72px; }
  .hero-grid { grid-template-columns: 1fr; gap: 48px; }
  .hero-visual { min-height: 0; max-width: 460px; margin-inline: auto; width: 100%; }
  .sms-bubble { position: relative; inset: auto; margin: -24px 16px 0 auto; width: auto; max-width: 300px; }
  .deposit-chip { inset-inline-end: 8px; }
}

/* ---------- Sections ---------- */
section { scroll-margin-top: 80px; }
.section { padding: 88px 0; }
.section-alt { background: var(--surface); border-block: 1px solid var(--line); }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 48px; }
.section-head .kicker { color: var(--accent-ink); font-weight: 800; letter-spacing: 0.5px; font-size: 0.95rem; }
.section-head h2 { font-size: clamp(1.7rem, 3.5vw, 2.4rem); }
.section-head p { color: var(--muted); }

.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.feature { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.section-alt .feature { background: var(--bg); }
.feature .ic { width: 52px; height: 52px; border-radius: 14px; background: var(--brand-50); color: var(--brand); display: grid; place-items: center; margin-bottom: 16px; }
.feature .ic svg { width: 26px; height: 26px; }
.feature h3 { font-size: 1.2rem; }
.feature p { color: var(--muted); margin: 0; }

.services-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.service-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px;
  display: flex; flex-direction: column; transition: 0.2s ease; text-decoration: none;
}
.service-card:hover { border-color: var(--brand-500); box-shadow: var(--shadow-sm); transform: translateY(-3px); }
.service-card .ic { width: 48px; height: 48px; border-radius: 14px; background: var(--accent-50); color: var(--accent-ink); display: grid; place-items: center; margin-bottom: 14px; }
.service-card .ic svg { width: 24px; height: 24px; }
.service-card h3 { font-size: 1.1rem; margin-bottom: 6px; }
.service-card p { color: var(--muted); font-size: 0.93rem; flex: 1; }
.service-meta { display: flex; justify-content: space-between; align-items: center; border-top: 1px dashed var(--line); padding-top: 12px; font-size: 0.88rem; }
.service-meta b { color: var(--brand); }

.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; counter-reset: step; }
.step { position: relative; padding: 28px 24px 24px; border-radius: var(--radius); background: var(--bg); border: 1px solid var(--line); }
.step::before {
  counter-increment: step; content: counter(step);
  display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%;
  background: var(--brand); color: #fff; font-weight: 800; margin-bottom: 14px;
}
.step h3 { font-size: 1.1rem; }
.step p { color: var(--muted); margin: 0; font-size: 0.95rem; }

.doctors-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.doctor-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; text-align: center; }
.avatar {
  width: 88px; height: 88px; border-radius: 50%; margin: 0 auto 16px; display: grid; place-items: center;
  background: linear-gradient(135deg, var(--brand-50), var(--accent-50)); color: var(--brand); font-size: 2rem; font-weight: 800;
}
.doctor-card h3 { font-size: 1.15rem; margin-bottom: 2px; }
.doctor-card p { color: var(--muted); margin-bottom: 12px; }
.doctor-days { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; }

.faq { max-width: 780px; margin: 0 auto; display: grid; gap: 12px; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 4px 20px; }
.section-alt .faq details { background: var(--bg); }
.faq summary { cursor: pointer; font-weight: 700; padding: 14px 0; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; color: var(--brand); font-size: 1.4rem; line-height: 1; }
.faq details[open] summary::after { content: '−'; }
.faq details p { color: var(--muted); }

.cta-band {
  background: linear-gradient(135deg, var(--brand-500) 0%, var(--brand-700) 100%); color: #fff;
  border-radius: 28px; padding: 48px; display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap;
  position: relative; overflow: hidden;
}
.cta-band::after { content: ''; position: absolute; width: 320px; height: 320px; border-radius: 50%; background: rgba(255,255,255,0.06); inset: -120px auto auto -80px; }
.cta-band h2 { margin-bottom: 6px; }
.cta-band p { margin: 0; opacity: 0.85; }

.contact-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.contact-item { display: flex; gap: 14px; align-items: flex-start; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.contact-item .ic { width: 44px; height: 44px; border-radius: 12px; background: var(--brand-50); color: var(--brand); display: grid; place-items: center; flex: none; }
.contact-item .ic svg { width: 22px; height: 22px; }
.contact-item h3 { font-size: 1rem; margin-bottom: 4px; }
.contact-item p, .contact-item a { margin: 0; color: var(--muted); text-decoration: none; }
.hours-list { list-style: none; padding: 0; margin: 0; color: var(--muted); font-size: 0.93rem; }
.hours-list li { display: flex; justify-content: space-between; gap: 12px; }

@media (max-width: 1000px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 760px) {
  .section { padding: 64px 0; }
  .features, .doctors-grid, .contact-grid { grid-template-columns: 1fr; }
  .cta-band { padding: 32px 24px; }
}
@media (max-width: 520px) {
  .services-grid, .steps { grid-template-columns: 1fr; }
}

/* ---------- Footer ---------- */
.site-footer { background: var(--navy); color: rgba(255,255,255,0.8); padding: 48px 0 24px; margin-top: 88px; }
.footer-grid { display: flex; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.site-footer .brand { color: #fff; }
.site-footer .brand small { color: rgba(255,255,255,0.65); }
.site-footer a { color: rgba(255,255,255,0.85); text-decoration: none; }
.site-footer a:hover { color: #fff; }
.footer-links { display: flex; gap: 20px; flex-wrap: wrap; list-style: none; margin: 0; padding: 0; }
.copyright { border-top: 1px solid rgba(255,255,255,0.12); margin-top: 32px; padding-top: 20px; font-size: 0.88rem; }

/* ---------- Forms ---------- */
.field { display: grid; gap: 6px; margin-bottom: 16px; }
.field label { font-weight: 700; font-size: 0.95rem; }
.field .hint { color: var(--muted); font-size: 0.85rem; }
.input {
  width: 100%; padding: 13px 16px; border-radius: var(--radius-sm); border: 1.5px solid var(--line);
  background: var(--surface); transition: 0.15s ease; outline: none;
}
.input:focus { border-color: var(--brand-500); box-shadow: 0 0 0 4px var(--brand-50); }
.input[dir='ltr'] { text-align: right; }
textarea.input { min-height: 90px; resize: vertical; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 0.93rem; color: var(--muted); cursor: pointer; }
.check input { width: 20px; height: 20px; accent-color: var(--brand); margin-top: 3px; flex: none; }

.alert { border-radius: var(--radius-sm); padding: 12px 16px; font-size: 0.95rem; margin-bottom: 16px; }
.alert-error { background: var(--danger-50); color: var(--danger); }
.alert-ok { background: var(--ok-50); color: var(--ok); }
.alert-info { background: var(--brand-50); color: var(--brand-700); }
.alert-warn { background: var(--warn-50); color: var(--warn); }

/* ---------- Booking ---------- */
.page-head { padding: 40px 0 8px; }
.page-head h1 { font-size: clamp(1.8rem, 4vw, 2.4rem); margin-bottom: 4px; }
.stepper { display: flex; gap: 8px; list-style: none; padding: 0; margin: 24px 0 28px; }
.stepper li { flex: 1; display: flex; align-items: center; gap: 10px; font-weight: 700; color: var(--muted); font-size: 0.92rem; }
.stepper li::before {
  content: attr(data-n); display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%;
  border: 2px solid var(--line); background: var(--surface); flex: none; font-size: 0.9rem;
}
.stepper li::after { content: ''; flex: 1; height: 2px; background: var(--line); border-radius: 2px; }
.stepper li:last-child::after { display: none; }
.stepper li.active { color: var(--brand); }
.stepper li.active::before { border-color: var(--brand); background: var(--brand); color: #fff; }
.stepper li.done { color: var(--brand); }
.stepper li.done::before { content: '✓'; border-color: var(--brand); color: var(--brand); }
.stepper li.done::after { background: var(--brand); }
@media (max-width: 640px) { .stepper li span { display: none; } }

.booking-layout { display: grid; grid-template-columns: 1fr 340px; gap: 28px; align-items: start; }
@media (max-width: 960px) { .booking-layout { grid-template-columns: 1fr; } .summary { position: static; } }

.panel { background: var(--surface); border: 1px solid var(--line); border-radius: 22px; padding: 28px; }
.panel h2 { font-size: 1.3rem; }
.panel + .panel { margin-top: 20px; }
@media (max-width: 560px) { .panel { padding: 20px; } }

.choice-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
@media (max-width: 560px) { .choice-grid { grid-template-columns: 1fr; } }
.choice {
  position: relative; display: flex; gap: 14px; align-items: flex-start; text-align: start; width: 100%;
  padding: 16px; border-radius: 16px; border: 1.5px solid var(--line); background: var(--surface); cursor: pointer; transition: 0.15s ease;
}
.choice:hover { border-color: var(--brand-500); }
.choice[aria-pressed='true'] { border-color: var(--brand); background: var(--brand-50); box-shadow: 0 0 0 3px var(--brand-50); }
.choice .ic { width: 42px; height: 42px; border-radius: 12px; background: var(--accent-50); color: var(--accent-ink); display: grid; place-items: center; flex: none; }
.choice .ic svg { width: 22px; height: 22px; }
.choice b { display: block; }
.choice small { color: var(--muted); display: block; line-height: 1.5; }
.choice .price { margin-top: 6px; font-size: 0.85rem; color: var(--brand); font-weight: 700; }

.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip {
  padding: 10px 16px; border-radius: 999px; border: 1.5px solid var(--line); background: var(--surface);
  cursor: pointer; font-weight: 700; transition: 0.15s ease; text-align: start;
}
.chip small { display: block; font-weight: 500; color: var(--muted); font-size: 0.78rem; }
.chip:hover { border-color: var(--brand-500); }
.chip[aria-pressed='true'] { background: var(--brand); border-color: var(--brand); color: #fff; }
.chip[aria-pressed='true'] small { color: rgba(255,255,255,0.8); }

.date-strip { display: flex; gap: 10px; overflow-x: auto; padding: 4px 2px 12px; scroll-snap-type: x mandatory; scrollbar-width: thin; }
.date-btn {
  flex: none; width: 84px; padding: 10px 6px; border-radius: 16px; border: 1.5px solid var(--line);
  background: var(--surface); cursor: pointer; text-align: center; scroll-snap-align: start; transition: 0.15s ease;
}
.date-btn span { display: block; font-size: 0.75rem; color: var(--muted); white-space: nowrap; }
.date-btn b { display: block; font-size: 1.35rem; line-height: 1.3; }
.date-btn:hover:not(:disabled) { border-color: var(--brand-500); }
.date-btn:disabled { opacity: 0.4; cursor: not-allowed; text-decoration: line-through; }
.date-btn[aria-pressed='true'] { background: var(--brand); border-color: var(--brand); color: #fff; }
.date-btn[aria-pressed='true'] span { color: rgba(255,255,255,0.8); }

.slot-group h4 { font-size: 0.95rem; color: var(--muted); margin: 18px 0 10px; font-weight: 700; }
.slots { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 10px; }
.slot { padding: 10px 6px; border-radius: 12px; border: 1.5px solid var(--line); background: var(--surface); cursor: pointer; font-weight: 700; transition: 0.15s ease; }
.slot:hover { border-color: var(--brand-500); }
.slot[aria-pressed='true'] { background: var(--brand); border-color: var(--brand); color: #fff; }
.empty { text-align: center; padding: 28px; color: var(--muted); border: 1.5px dashed var(--line); border-radius: 16px; }

.step-actions { display: flex; justify-content: space-between; gap: 12px; margin-top: 24px; flex-wrap: wrap; }

.otp-box { display: flex; gap: 10px; align-items: stretch; flex-wrap: wrap; }
.otp-box .input { flex: 1; min-width: 160px; }
.otp-box .otp-input { letter-spacing: 8px; font-size: 1.3rem; text-align: center; font-weight: 800; }
.verified { display: inline-flex; align-items: center; gap: 8px; color: var(--ok); font-weight: 700; }
.verified svg { width: 20px; height: 20px; }

.summary { position: sticky; top: 92px; }
.summary h3 { font-size: 1.1rem; }
.summary dl { margin: 0; display: grid; gap: 12px; }
.summary dl div { display: flex; justify-content: space-between; gap: 12px; padding-bottom: 12px; border-bottom: 1px dashed var(--line); }
.summary dt { color: var(--muted); }
.summary dd { margin: 0; font-weight: 700; text-align: left; }
.summary .total { display: flex; justify-content: space-between; align-items: center; padding: 14px 16px; margin-top: 14px; border-radius: 14px; background: var(--accent-50); }
.summary .total b { font-size: 1.3rem; color: var(--brand); }
.summary .note { font-size: 0.85rem; color: var(--muted); margin: 12px 0 0; }

.spinner { width: 18px; height: 18px; border: 2.5px solid currentColor; border-inline-end-color: transparent; border-radius: 50%; animation: spin 0.7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.loading { display: flex; align-items: center; justify-content: center; gap: 10px; padding: 28px; color: var(--muted); }

/* ---------- Confirmation ---------- */
.result { max-width: 640px; margin: 48px auto 0; text-align: center; }
.result-icon { width: 84px; height: 84px; border-radius: 50%; display: grid; place-items: center; margin: 0 auto 20px; }
.result-icon svg { width: 42px; height: 42px; }
.result-icon.ok { background: var(--ok-50); color: var(--ok); }
.result-icon.warn { background: var(--warn-50); color: var(--warn); }
.result-icon.danger { background: var(--danger-50); color: var(--danger); }
.ticket { text-align: start; margin-top: 24px; }
.ticket-ref { display: flex; justify-content: space-between; align-items: center; padding-bottom: 16px; margin-bottom: 4px; border-bottom: 2px dashed var(--line); }
.ticket-ref b { font-size: 1.3rem; letter-spacing: 1px; direction: ltr; }
.ticket dl { margin: 0; }
.ticket dl div { display: flex; justify-content: space-between; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.ticket dl div:last-child { border: 0; }
.ticket dt { color: var(--muted); }
.ticket dd { margin: 0; font-weight: 700; }
.result-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 24px; }

/* ---------- Mock pay ---------- */
.pay-wrap { max-width: 460px; margin: 48px auto; }
.card-visual {
  background: linear-gradient(135deg, #0c2a55, #1a5fc0); color: #fff; border-radius: 18px; padding: 22px; margin-bottom: 20px;
  aspect-ratio: 1.6; display: flex; flex-direction: column; justify-content: space-between; direction: ltr;
}
.card-visual .num { font-size: 1.3rem; letter-spacing: 3px; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

/* ---------- Admin ---------- */
.admin-body { background: #eff4fa; }
.admin-top { background: var(--surface); border-bottom: 1px solid var(--line); }
.admin-top .nav { height: 64px; }
.stats { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; margin: 24px 0; }
.stat { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 18px; }
.stat span { color: var(--muted); font-size: 0.88rem; }
.stat b { display: block; font-size: 1.6rem; color: var(--brand); }
.stat.alert-stat b { color: var(--danger); }
@media (max-width: 900px) { .stats { grid-template-columns: repeat(2, 1fr); } }

.toolbar { display: flex; gap: 10px; flex-wrap: wrap; align-items: end; margin-bottom: 16px; }
.toolbar .field { margin: 0; }
.toolbar .input { padding: 0 12px; min-width: 240px; }
.tabs { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 16px; }

.table-wrap { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; }
table { width: 100%; border-collapse: collapse; font-size: 0.93rem; }
th, td { padding: 12px 14px; text-align: start; border-bottom: 1px solid var(--line); vertical-align: middle; }
th { background: #f6f9fd; color: var(--muted); font-weight: 700; font-size: 0.85rem; }
tr:last-child td { border-bottom: 0; }
td .sub { display: block; color: var(--muted); font-size: 0.82rem; }
td.actions { white-space: nowrap; }
td.actions .btn { margin-inline-start: 4px; }
td [dir='ltr'] { unicode-bidi: isolate; }
@media (max-width: 860px) {
  thead { display: none; }
  table, tbody, tr, td { display: block; width: 100%; }
  tr { border-bottom: 1px solid var(--line); padding: 10px 0; }
  td { border: 0; padding: 6px 16px; }
  td::before { content: attr(data-label); display: block; color: var(--muted); font-size: 0.78rem; }
  td.actions { white-space: normal; }
}

.login-box { max-width: 400px; margin: 10vh auto; }
.login-box .brand { justify-content: center; margin-bottom: 20px; }

.toast {
  position: fixed; bottom: 24px; inset-inline: 0; margin: 0 auto; width: fit-content; max-width: calc(100% - 32px);
  background: var(--ink); color: #fff; padding: 12px 20px; border-radius: 12px; box-shadow: var(--shadow); z-index: 100;
}

.eyebrow-ic { display: inline-block; width: 16px; height: 16px; }
.eyebrow-ic svg { width: 16px; height: 16px; }
.grow { flex: 1; }
.btn-block + .btn-block { margin-top: 10px; }
.pay-wrap .brand { margin-bottom: 16px; }
.pay-wrap .ticket { margin: 0 0 16px; }
.logo-center { margin: 0 auto 16px; }
.admin-body { min-height: 100vh; }
.toolbar .input { height: 44px; }
.label-ic { display: inline-block; width: 18px; height: 18px; vertical-align: -3px; color: var(--brand); }
.label-ic svg { width: 18px; height: 18px; }
.slot-group:first-child h4 { margin-top: 4px; }
