/* ─── Design tokens ─────────────────────────────────────────── */
:root {
  --bg:       #0F1719;
  --bg2:      #0E2830;
  --bg3:      #132E35;
  --border:   #1D3E47;
  --accent:   #1A9B6E;
  --accent2:  #0D8C7E;
  --accent-h: #15C287;
  --text:     #E0EFEC;
  --muted:    #6B9A93;
  --danger:   #E06060;
  --warning:  #C8913A;
  --white:    #FFFFFF;
  --radius:   14px;
  --radius-s: 8px;
  --font:     'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono:'JetBrains Mono', 'Fira Mono', monospace;
  --shadow:   0 2px 20px rgba(0,0,0,.35);
  --nav-h:    64px;
  --max-w:    1100px;
}

/* ─── Reset ──────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-h); }
img { max-width: 100%; display: block; }
button { font-family: var(--font); cursor: pointer; border: none; background: none; }
input, select, textarea { font-family: var(--font); }

/* ─── Utility ────────────────────────────────────────────────── */
.container    { max-width: var(--max-w); margin: 0 auto; padding: 0 24px; }
.sr-only      { position: absolute; width:1px; height:1px; overflow:hidden; clip:rect(0 0 0 0); }
.text-muted   { color: var(--muted); }
.text-accent  { color: var(--accent); }
.text-center  { text-align: center; }
.mt-auto      { margin-top: auto; }

/* ─── Nav ────────────────────────────────────────────────────── */
.nav {
  position: sticky; top: 0; z-index: 100;
  height: var(--nav-h);
  background: rgba(15,23,25,.9);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center;
}
.nav .container {
  display: flex; align-items: center; gap: 8px; width: 100%;
}
.nav-brand {
  display: flex; align-items: center; gap: 10px;
  font-weight: 700; font-size: 18px; color: var(--text);
  flex-shrink: 0;
}
.nav-brand svg { width: 32px; height: 32px; }
.nav-brand small {
  display: block; font-size: 11px; font-weight: 400; color: var(--muted);
}
.nav-links {
  display: flex; align-items: center; gap: 4px; margin-left: auto;
}
.nav-links a {
  color: var(--muted); font-size: 14px; font-weight: 500;
  padding: 6px 12px; border-radius: var(--radius-s);
  transition: color .15s, background .15s;
}
.nav-links a:hover, .nav-links a.active { color: var(--text); background: var(--bg3); }
.nav-book {
  margin-left: 8px;
  padding: 8px 18px !important;
  background: var(--accent) !important;
  color: #fff !important;
  border-radius: var(--radius-s) !important;
  font-weight: 600 !important;
}
.nav-book:hover { background: var(--accent-h) !important; }

/* Mobile nav */
.nav-toggle {
  display: none; margin-left: auto;
  width: 38px; height: 38px; align-items: center; justify-content: center;
  border-radius: var(--radius-s); border: 1px solid var(--border);
  color: var(--text);
}
.nav-toggle svg { width: 20px; height: 20px; }
.nav-drawer {
  display: none; flex-direction: column; gap: 4px;
  position: absolute; top: var(--nav-h); left: 0; right: 0;
  background: var(--bg2); border-bottom: 1px solid var(--border);
  padding: 12px 24px;
}
.nav-drawer a {
  padding: 10px 0; color: var(--muted); font-size: 15px; font-weight: 500;
  border-bottom: 1px solid var(--border);
}
.nav-drawer a:last-child { border-bottom: none; }
.nav-drawer.open { display: flex; }

@media(max-width: 700px) {
  .nav-links { display: none; }
  .nav-toggle { display: flex; }
}

/* ─── Hero ───────────────────────────────────────────────────── */
.hero {
  padding: 80px 0 60px;
  background: linear-gradient(160deg, #0E2830 0%, var(--bg) 60%);
  border-bottom: 1px solid var(--border);
}
.hero .container { display: flex; align-items: center; gap: 48px; }
.hero-text { flex: 1; }
.hero-tag {
  display: inline-flex; align-items: center; gap: 6px;
  background: rgba(26,155,110,.15); border: 1px solid rgba(26,155,110,.3);
  color: var(--accent); font-size: 12px; font-weight: 600; letter-spacing: .05em;
  padding: 4px 12px; border-radius: 100px; margin-bottom: 20px; text-transform: uppercase;
}
.hero h1 {
  font-size: clamp(28px, 4vw, 46px);
  font-weight: 700; line-height: 1.15;
  letter-spacing: -.02em; margin-bottom: 16px;
}
.hero h1 em { font-style: normal; color: var(--accent); }
.hero p {
  font-size: 17px; color: var(--muted); max-width: 500px; margin-bottom: 32px;
}
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }

.hero-card {
  flex-shrink: 0; width: 340px;
  background: var(--bg2); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 28px 24px;
  display: flex; flex-direction: column; gap: 16px;
}
.hero-card .doctor-photo {
  width: 80px; height: 80px; border-radius: 50%;
  background: var(--bg3); border: 2px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  font-size: 32px; color: var(--muted);
}
.hero-card .doctor-name { font-size: 16px; font-weight: 700; }
.hero-card .doctor-spec { font-size: 13px; color: var(--accent); font-weight: 500; }
.hero-card .doctor-qual { font-size: 13px; color: var(--muted); }
.hero-card .hero-stats {
  display: flex; gap: 16px; padding-top: 12px;
  border-top: 1px solid var(--border);
}
.hero-card .stat-item { text-align: center; flex: 1; }
.hero-card .stat-num { font-size: 17px; font-weight: 700; color: var(--accent); }
.hero-card .stat-label { font-size: 11px; color: var(--muted); }

@media(max-width: 820px) {
  .hero .container { flex-direction: column; align-items: flex-start; }
  .hero-card { width: 100%; max-width: 400px; }
}

/* ─── Buttons ────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 24px; border-radius: var(--radius-s);
  font-size: 15px; font-weight: 600;
  transition: all .15s; cursor: pointer; border: none;
  white-space: nowrap;
}
.btn-primary {
  background: var(--accent); color: #fff;
}
.btn-primary:hover { background: var(--accent-h); transform: translateY(-1px); }
.btn-secondary {
  background: var(--bg2); color: var(--text);
  border: 1px solid var(--border);
}
.btn-secondary:hover { background: var(--bg3); border-color: var(--accent); }
.btn-ghost { background: transparent; color: var(--muted); padding: 10px 16px; }
.btn-ghost:hover { color: var(--text); background: var(--bg2); }
.btn-whatsapp {
  background: #25D366; color: #fff;
}
.btn-whatsapp:hover { background: #1ebe5d; }
.btn-sm { padding: 8px 16px; font-size: 13px; }
.btn-full { width: 100%; justify-content: center; }
.btn:disabled { opacity: .5; cursor: not-allowed; transform: none !important; }

/* ─── Sections ───────────────────────────────────────────────── */
.section { padding: 72px 0; }
.section-alt { background: var(--bg2); }
.section-header { text-align: center; margin-bottom: 48px; }
.section-tag {
  display: inline-block;
  font-size: 12px; font-weight: 600; color: var(--accent);
  letter-spacing: .08em; text-transform: uppercase; margin-bottom: 12px;
}
.section-header h2 {
  font-size: clamp(24px, 3vw, 36px); font-weight: 700;
  letter-spacing: -.01em; margin-bottom: 12px;
}
.section-header p { font-size: 16px; color: var(--muted); max-width: 520px; margin: 0 auto; }

/* ─── Cards ──────────────────────────────────────────────────── */
.card {
  background: var(--bg2); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 28px 24px;
  transition: border-color .2s;
}
.card:hover { border-color: var(--accent2); }
.card-icon {
  width: 48px; height: 48px; border-radius: 12px;
  background: rgba(26,155,110,.15); display: flex; align-items: center; justify-content: center;
  margin-bottom: 16px;
}
.card-icon svg { width: 24px; height: 24px; color: var(--accent); }
.card h3 { font-size: 18px; font-weight: 600; margin-bottom: 8px; }
.card p { font-size: 14px; color: var(--muted); line-height: 1.65; }

/* ─── Grid layouts ───────────────────────────────────────────── */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.grid-3 { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(4,1fr); gap: 20px; }
@media(max-width: 900px) { .grid-3 { grid-template-columns: 1fr 1fr; } }
@media(max-width: 680px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
}

/* ─── Service type selector (Online vs Chamber) ──────────────── */
.type-selector { display: flex; gap: 16px; margin-bottom: 32px; }
.type-option {
  flex: 1; border: 2px solid var(--border); border-radius: var(--radius);
  padding: 20px; cursor: pointer; transition: all .15s;
  display: flex; flex-direction: column; gap: 8px;
}
.type-option.selected {
  border-color: var(--accent); background: rgba(26,155,110,.08);
}
.type-option:hover { border-color: var(--accent2); }
.type-option input[type="radio"] { display: none; }
.type-option .type-icon {
  width: 40px; height: 40px; border-radius: 10px;
  background: rgba(26,155,110,.15);
  display: flex; align-items: center; justify-content: center;
}
.type-option .type-icon svg { width: 22px; height: 22px; color: var(--accent); }
.type-option .type-label { font-weight: 600; font-size: 15px; }
.type-option .type-desc { font-size: 13px; color: var(--muted); }
.type-option .type-fee { font-size: 13px; color: var(--accent); font-weight: 600; margin-top: 4px; }

/* ─── Form elements ──────────────────────────────────────────── */
.form-group { display: flex; flex-direction: column; gap: 6px; margin-bottom: 18px; }
.form-group label { font-size: 13px; font-weight: 600; color: var(--muted); letter-spacing: .03em; }
.form-control {
  background: var(--bg2); border: 1px solid var(--border);
  border-radius: var(--radius-s); color: var(--text); font-size: 15px;
  padding: 11px 14px; width: 100%;
  transition: border-color .15s;
  outline: none;
}
.form-control:focus { border-color: var(--accent); }
.form-control::placeholder { color: var(--muted); opacity: .7; }
select.form-control { appearance: none; cursor: pointer; }
textarea.form-control { resize: vertical; min-height: 100px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media(max-width: 600px) { .form-row { grid-template-columns: 1fr; } }
.form-error { color: var(--danger); font-size: 13px; margin-top: 4px; }
.form-hint  { color: var(--muted); font-size: 12px; margin-top: 4px; }

/* Checkbox + radio */
.check-row { display: flex; align-items: flex-start; gap: 10px; cursor: pointer; }
.check-row input[type="checkbox"] {
  width: 18px; height: 18px; border-radius: 4px;
  border: 1.5px solid var(--border); background: var(--bg2);
  accent-color: var(--accent); flex-shrink: 0; margin-top: 2px;
  cursor: pointer;
}
.check-row span { font-size: 14px; color: var(--muted); line-height: 1.5; }

/* ─── Slot picker ────────────────────────────────────────────── */
.slot-grid { display: flex; flex-wrap: wrap; gap: 10px; }
.slot-btn {
  padding: 8px 16px; border-radius: var(--radius-s);
  border: 1px solid var(--border); background: var(--bg2);
  color: var(--text); font-size: 14px; font-weight: 500; cursor: pointer;
  transition: all .12s;
}
.slot-btn:hover:not(.taken) { border-color: var(--accent); color: var(--accent); }
.slot-btn.selected { border-color: var(--accent); background: var(--accent); color: #fff; }
.slot-btn.taken { opacity: .35; cursor: not-allowed; text-decoration: line-through; }

/* ─── Stepper ────────────────────────────────────────────────── */
.stepper {
  display: flex; align-items: center; gap: 0; margin-bottom: 36px;
  overflow-x: auto; padding-bottom: 4px;
}
.step {
  display: flex; align-items: center; gap: 10px;
  font-size: 13px; font-weight: 500; color: var(--muted);
  white-space: nowrap;
}
.step.active { color: var(--text); }
.step.done   { color: var(--accent); }
.step-num {
  width: 28px; height: 28px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 700;
  background: var(--bg3); border: 1.5px solid var(--border); flex-shrink: 0;
}
.step.active .step-num { background: var(--accent); border-color: var(--accent); color: #fff; }
.step.done   .step-num { background: rgba(26,155,110,.2); border-color: var(--accent); color: var(--accent); }
.step-sep { flex: 1; min-width: 24px; height: 1px; background: var(--border); margin: 0 8px; }

/* ─── Booking box ────────────────────────────────────────────── */
.book-box {
  background: var(--bg2); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 36px 32px; max-width: 680px; margin: 0 auto;
}
@media(max-width: 600px) { .book-box { padding: 24px 16px; } }

/* ─── Alert / callout ────────────────────────────────────────── */
.alert {
  padding: 14px 16px; border-radius: var(--radius-s);
  font-size: 14px; display: flex; gap: 10px; align-items: flex-start;
}
.alert-info    { background: rgba(13,140,126,.12); border: 1px solid rgba(13,140,126,.3); color: #9DE4DC; }
.alert-danger  { background: rgba(224,96,96,.1);  border: 1px solid rgba(224,96,96,.3);  color: var(--danger); }
.alert-success { background: rgba(26,155,110,.12); border: 1px solid rgba(26,155,110,.3); color: #8DE5C5; }

/* ─── Page header (non-hero pages) ──────────────────────────── */
.page-header {
  padding: 52px 0 40px;
  background: linear-gradient(160deg, #0E2830 0%, var(--bg) 70%);
  border-bottom: 1px solid var(--border);
}
.page-header h1 { font-size: clamp(24px, 3vw, 38px); font-weight: 700; letter-spacing: -.01em; }
.page-header p  { color: var(--muted); margin-top: 8px; font-size: 16px; }
.breadcrumb { display: flex; gap: 8px; align-items: center; font-size: 13px; color: var(--muted); margin-bottom: 16px; }
.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--text); }

/* ─── Doctor profile ─────────────────────────────────────────── */
.profile-grid { display: grid; grid-template-columns: 280px 1fr; gap: 36px; align-items: start; }
.profile-photo {
  width: 100%; aspect-ratio: 1; border-radius: var(--radius);
  background: var(--bg3); border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  font-size: 80px; color: var(--muted); overflow: hidden;
}
.profile-photo img { width: 100%; height: 100%; object-fit: cover; }
.profile-name { font-size: 30px; font-weight: 700; letter-spacing: -.01em; }
.profile-spec { color: var(--accent); font-weight: 600; margin: 4px 0 12px; }
.profile-qual { color: var(--muted); font-size: 14px; margin-bottom: 20px; }
.profile-bio  { color: var(--text); line-height: 1.75; font-size: 15px; }
.qual-badges  { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.qual-badge {
  background: rgba(26,155,110,.12); border: 1px solid rgba(26,155,110,.25);
  color: var(--accent); font-size: 12px; font-weight: 600;
  padding: 4px 10px; border-radius: 6px;
}
@media(max-width: 700px) {
  .profile-grid { grid-template-columns: 1fr; }
  .profile-photo { max-width: 200px; }
}

/* ─── Services list ──────────────────────────────────────────── */
.service-item {
  display: flex; gap: 20px; align-items: flex-start;
  padding: 24px; border-radius: var(--radius);
  background: var(--bg2); border: 1px solid var(--border);
  transition: border-color .15s;
}
.service-item:hover { border-color: var(--accent2); }
.service-item .svc-icon {
  width: 44px; height: 44px; border-radius: 10px; flex-shrink: 0;
  background: rgba(26,155,110,.15);
  display: flex; align-items: center; justify-content: center;
}
.service-item .svc-icon svg { width: 22px; height: 22px; color: var(--accent); }
.service-item h3 { font-size: 16px; font-weight: 600; margin-bottom: 6px; }
.service-item p  { font-size: 14px; color: var(--muted); }
.service-item .svc-fee { font-size: 14px; color: var(--accent); font-weight: 600; margin-top: 8px; }

/* ─── Contact page ───────────────────────────────────────────── */
.contact-grid { display: grid; grid-template-columns: 1fr 1.4fr; gap: 40px; align-items: start; }
.contact-info-block { display: flex; flex-direction: column; gap: 20px; }
.contact-item {
  display: flex; gap: 14px; align-items: flex-start;
  padding: 18px; border-radius: var(--radius-s);
  background: var(--bg2); border: 1px solid var(--border);
}
.contact-item .ci-icon {
  width: 40px; height: 40px; border-radius: 10px; flex-shrink: 0;
  background: rgba(26,155,110,.15);
  display: flex; align-items: center; justify-content: center;
}
.contact-item .ci-icon svg { width: 20px; height: 20px; color: var(--accent); }
.contact-item .ci-label { font-size: 12px; color: var(--muted); font-weight: 600; margin-bottom: 2px; }
.contact-item .ci-value { font-size: 15px; color: var(--text); }
@media(max-width: 720px) {
  .contact-grid { grid-template-columns: 1fr; }
}

/* ─── Footer ─────────────────────────────────────────────────── */
.footer {
  padding: 48px 0 32px;
  border-top: 1px solid var(--border);
  background: var(--bg2);
}
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
.footer-brand { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 16px; margin-bottom: 12px; }
.footer-brand svg { width: 26px; height: 26px; }
.footer-desc { font-size: 14px; color: var(--muted); line-height: 1.65; max-width: 280px; }
.footer-col h4 { font-size: 13px; font-weight: 700; color: var(--text); margin-bottom: 14px; letter-spacing: .04em; text-transform: uppercase; }
.footer-col a  { display: block; font-size: 14px; color: var(--muted); margin-bottom: 8px; }
.footer-col a:hover { color: var(--text); }
.footer-bottom {
  padding-top: 24px; border-top: 1px solid var(--border);
  display: flex; justify-content: space-between; align-items: center;
  font-size: 13px; color: var(--muted); flex-wrap: wrap; gap: 8px;
}
@media(max-width: 700px) { .footer-grid { grid-template-columns: 1fr; } }

/* ─── WhatsApp float button ──────────────────────────────────── */
.whatsapp-fab {
  position: fixed; bottom: 24px; right: 24px; z-index: 999;
  width: 56px; height: 56px; border-radius: 50%;
  background: #25D366; color: #fff;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 20px rgba(37,211,102,.4);
  transition: transform .15s;
}
.whatsapp-fab:hover { transform: scale(1.08); }
.whatsapp-fab svg { width: 28px; height: 28px; }

/* ─── Consent box ────────────────────────────────────────────── */
.consent-box {
  background: rgba(26,155,110,.06); border: 1px solid rgba(26,155,110,.2);
  border-radius: var(--radius-s); padding: 16px; margin-bottom: 20px;
}
.consent-box p { font-size: 13px; color: var(--muted); margin-bottom: 10px; }

/* ─── Confirmation card ──────────────────────────────────────── */
.confirm-card {
  text-align: center; padding: 48px 32px;
  background: var(--bg2); border: 1px solid var(--border);
  border-radius: var(--radius); max-width: 480px; margin: 0 auto;
}
.confirm-icon {
  width: 72px; height: 72px; border-radius: 50%; margin: 0 auto 24px;
  background: rgba(26,155,110,.15);
  display: flex; align-items: center; justify-content: center;
}
.confirm-icon svg { width: 36px; height: 36px; color: var(--accent); }
.confirm-card h2 { font-size: 24px; font-weight: 700; margin-bottom: 12px; }
.confirm-card p  { color: var(--muted); font-size: 15px; }
.confirm-details {
  background: var(--bg3); border-radius: var(--radius-s);
  padding: 16px; margin: 24px 0; text-align: left;
}
.confirm-row { display: flex; justify-content: space-between; padding: 8px 0; border-bottom: 1px solid var(--border); font-size: 14px; }
.confirm-row:last-child { border-bottom: none; }
.confirm-row span:first-child { color: var(--muted); }
.confirm-row span:last-child  { color: var(--text); font-weight: 500; }

/* ─── Loading spinner ────────────────────────────────────────── */
.spinner {
  width: 20px; height: 20px; border-radius: 50%;
  border: 2.5px solid rgba(255,255,255,.3);
  border-top-color: #fff;
  animation: spin .7s linear infinite; display: inline-block;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ─── Prose (privacy, disclosure pages) ─────────────────────── */
.prose { max-width: 780px; }
.prose h2 { font-size: 20px; font-weight: 700; margin: 36px 0 12px; color: var(--accent); }
.prose h3 { font-size: 16px; font-weight: 600; margin: 24px 0 8px; }
.prose p  { font-size: 15px; color: var(--muted); line-height: 1.8; margin-bottom: 14px; }
.prose ul { padding-left: 20px; margin-bottom: 14px; }
.prose ul li { font-size: 15px; color: var(--muted); line-height: 1.8; margin-bottom: 6px; }
.prose strong { color: var(--text); font-weight: 600; }

/* ─── FAQ accordion ──────────────────────────────────────────── */
.faq-item { border-bottom: 1px solid var(--border); }
.faq-q {
  display: flex; justify-content: space-between; align-items: center;
  padding: 18px 0; cursor: pointer; font-size: 15px; font-weight: 500;
  gap: 12px;
}
.faq-q svg { width: 18px; height: 18px; color: var(--muted); flex-shrink: 0; transition: transform .2s; }
.faq-item.open .faq-q svg { transform: rotate(45deg); color: var(--accent); }
.faq-a { font-size: 14px; color: var(--muted); line-height: 1.75; padding-bottom: 16px; display: none; }
.faq-item.open .faq-a { display: block; }

/* ─── Admin / Doctor panel shared ───────────────────────────── */
.panel-layout { display: flex; min-height: calc(100vh - var(--nav-h)); }
.panel-sidebar {
  width: 220px; flex-shrink: 0;
  background: var(--bg2); border-right: 1px solid var(--border);
  padding: 24px 16px;
  display: flex; flex-direction: column; gap: 4px;
}
.panel-sidebar a {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 12px; border-radius: var(--radius-s);
  font-size: 14px; color: var(--muted); font-weight: 500;
  transition: all .12s;
}
.panel-sidebar a:hover, .panel-sidebar a.active { background: var(--bg3); color: var(--text); }
.panel-sidebar a svg { width: 18px; height: 18px; }
.panel-main { flex: 1; padding: 32px; overflow-x: auto; }
.panel-header { margin-bottom: 28px; }
.panel-header h1 { font-size: 22px; font-weight: 700; }
.panel-header p  { color: var(--muted); font-size: 14px; margin-top: 4px; }

/* Data table */
.data-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.data-table th {
  text-align: left; padding: 10px 14px;
  border-bottom: 1px solid var(--border);
  font-size: 12px; font-weight: 700; color: var(--muted);
  letter-spacing: .04em; text-transform: uppercase;
}
.data-table td {
  padding: 12px 14px; border-bottom: 1px solid var(--border);
  vertical-align: middle;
}
.data-table tr:hover td { background: rgba(255,255,255,.02); }

/* Status pills */
.pill {
  display: inline-block; padding: 2px 10px; border-radius: 100px;
  font-size: 11px; font-weight: 700; letter-spacing: .04em;
}
.pill-green  { background: rgba(26,155,110,.15); color: var(--accent); }
.pill-red    { background: rgba(224,96,96,.15);  color: var(--danger); }
.pill-yellow { background: rgba(200,145,58,.15); color: var(--warning); }
.pill-blue   { background: rgba(13,140,126,.15); color: #4DD9CE; }
.pill-grey   { background: rgba(107,154,147,.12); color: var(--muted); }

/* ─── Chatbot widget ─────────────────────────────────────────── */
.chat-fab {
  position: fixed; bottom: 90px; right: 24px; z-index: 998;
  width: 52px; height: 52px; border-radius: 50%;
  background: var(--bg2); border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; transition: border-color .15s;
}
.chat-fab:hover { border-color: var(--accent); }
.chat-fab svg { width: 24px; height: 24px; color: var(--accent); }

.chat-window {
  position: fixed; bottom: 160px; right: 24px; z-index: 997;
  width: 340px; max-height: 480px;
  background: var(--bg2); border: 1px solid var(--border);
  border-radius: var(--radius);
  display: flex; flex-direction: column;
  display: none;
}
.chat-window.open { display: flex; }
.chat-header {
  padding: 14px 16px; border-bottom: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between;
}
.chat-header .ch-title { font-weight: 600; font-size: 14px; }
.chat-header .ch-sub   { font-size: 12px; color: var(--accent); }
.chat-msgs { flex: 1; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 12px; }
.chat-msg  { max-width: 80%; font-size: 14px; line-height: 1.5; }
.chat-msg.bot  { align-self: flex-start; background: var(--bg3); border-radius: 0 10px 10px 10px; padding: 10px 12px; }
.chat-msg.user { align-self: flex-end; background: var(--accent); color: #fff; border-radius: 10px 0 10px 10px; padding: 10px 12px; }
.chat-input-row {
  padding: 12px; border-top: 1px solid var(--border);
  display: flex; gap: 8px;
}
.chat-input-row input {
  flex: 1; background: var(--bg3); border: 1px solid var(--border);
  border-radius: var(--radius-s); color: var(--text);
  padding: 8px 12px; font-size: 14px; outline: none;
}
.chat-input-row input:focus { border-color: var(--accent); }
.chat-input-row button {
  padding: 8px 14px; background: var(--accent); color: #fff;
  border-radius: var(--radius-s); font-size: 13px; font-weight: 600;
}
@media(max-width: 400px) { .chat-window { width: calc(100vw - 24px); right: 12px; } }

/* ─── Responsive tweaks ──────────────────────────────────────── */
@media(max-width: 480px) {
  .section { padding: 48px 0; }
  .type-selector { flex-direction: column; }
  .hero { padding: 48px 0 40px; }
}
