/* HelloDoc public website */
:root {
    --brand: #0b6e99;
    --brand-dark: #08557a;
    --brand-soft: #e6f3f8;
    --accent: #14a38b;
    --accent-soft: #e3f6f2;
    --ink: #0f1f2e;
    --muted: #5b6b7a;
    --line: #e3e9ef;
    --tint: #f5f9fb;
    --radius: 16px;
    --shadow: 0 10px 30px rgba(15, 31, 46, 0.08);
}

body.front {
    font-family: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
    color: var(--ink);
    background: #fff;
    -webkit-font-smoothing: antialiased;
}
.front a { text-decoration: none; }
.skip-link { position: absolute; left: 16px; top: 8px; z-index: 2000; background: #fff; padding: 8px 12px; border-radius: 8px; }

/* Buttons */
.btn-brand { background: var(--brand); border-color: var(--brand); color: #fff; font-weight: 600; border-radius: 10px; }
.btn-brand:hover, .btn-brand:focus { background: var(--brand-dark); border-color: var(--brand-dark); color: #fff; }
.btn-ghost { background: transparent; border: 1px solid var(--line); color: var(--ink); font-weight: 600; border-radius: 10px; }
.btn-ghost:hover { border-color: var(--brand); color: var(--brand); }
.btn-brand:disabled, .btn-brand.disabled { background: var(--brand); border-color: var(--brand); color: #fff; opacity: .45; }
.btn.disabled { opacity: .65; }
.link-brand { color: var(--brand); font-weight: 600; }
.badge-soon { display: inline-block; font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; padding: 2px 6px; border-radius: 6px; background: var(--accent-soft); color: var(--accent); vertical-align: middle; }

/* Header */
.site-header { background: rgba(255, 255, 255, .92); backdrop-filter: saturate(180%) blur(8px); border-bottom: 1px solid transparent; transition: border-color .2s, box-shadow .2s; }
.site-header.is-scrolled { border-color: var(--line); box-shadow: 0 4px 16px rgba(15, 31, 46, .05); }
.site-header .navbar { padding: 14px 0; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; font-size: 20px; color: var(--ink); }
.brand:hover { color: var(--ink); }
.brand-mark { width: 36px; height: 36px; display: inline-grid; place-items: center; border-radius: 10px; background: var(--brand); color: #fff; font-size: 16px; }
/* config('i.logo'): the file has empty space around the artwork, the negative margins trim it */
.brand-logo { height: 56px; width: auto; margin: -12px -12px -11px -12px; display: block; }
.brand-light, .brand-light:hover { color: #fff; }
.site-header .nav-link { color: var(--muted); font-weight: 600; padding: 8px 14px !important; }
.site-header .nav-link:hover, .site-header .nav-link.active { color: var(--brand); }
.site-header .nav-link.disabled { color: #9aa7b3; }
.navbar-toggler { border: 1px solid var(--line); color: var(--ink); }
@media (max-width: 991.98px) {
    .nav-actions { padding: 8px 0 12px; }
}

/* Type */
.eyebrow { display: inline-block; font-size: 13px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--accent); margin-bottom: 12px; }
.display-title { font-size: clamp(2rem, 4.5vw, 3.25rem); font-weight: 800; line-height: 1.12; letter-spacing: -.02em; }
.page-title { font-size: clamp(1.8rem, 3.5vw, 2.6rem); font-weight: 800; letter-spacing: -.02em; }
.lead-text { font-size: 1.125rem; color: var(--muted); max-width: 640px; margin-top: 16px; }
.draft-note { background: #fff8e6; border: 1px solid #f5dfa6; color: #7a5a00; padding: 10px 14px; border-radius: 10px; font-size: .95rem; }

/* Sections */
.section { padding: 80px 0; }
.section-tint { background: var(--tint); }
.section-head { text-align: center; max-width: 680px; margin: 0 auto 48px; }
.section-head h2 { font-weight: 800; font-size: clamp(1.6rem, 3vw, 2.2rem); letter-spacing: -.01em; }
.section-head p { color: var(--muted); margin-top: 12px; }
.container.narrow { max-width: 860px; }

/* Hero */
/* Home hero: one full-width block in the logo's navy so it stands out under the white header */
.hero { padding: 72px 0 88px; color: #fff; background: radial-gradient(900px 420px at 88% 0%, rgba(20, 163, 139, .28), transparent 62%), radial-gradient(700px 380px at 0% 100%, rgba(10, 132, 255, .22), transparent 60%), #0a2342; }
.hero .display-title { color: #fff; }
.hero .lead-text { color: rgba(255, 255, 255, .82); }
.hero .eyebrow { color: #4fe0c6; }
.hero .hero-points li { color: rgba(255, 255, 255, .88); }
.hero .hero-points i { color: #4fe0c6; }
.hero .btn-brand { background: var(--accent); border-color: var(--accent); }
.hero .btn-brand:hover, .hero .btn-brand:focus { background: #0f8a75; border-color: #0f8a75; }
.hero .btn-ghost { border-color: rgba(255, 255, 255, .55); color: #fff; }
.hero .btn-ghost:hover { background: #fff; border-color: #fff; color: #0a2342; }
.hero .mock-card { color: var(--ink); border-color: transparent; box-shadow: 0 18px 40px rgba(0, 0, 0, .28); }
.hero .mock-chat { color: var(--brand); }
.hero-points li { display: inline-flex; align-items: center; gap: 8px; margin: 0 18px 8px 0; color: var(--muted); font-weight: 500; }
.hero-points i { color: var(--accent); }
.hero-visual { position: relative; min-height: 380px; }
.mock-card { position: absolute; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 18px 20px; }
.mock-profile { top: 0; left: 4%; right: 18%; display: flex; gap: 14px; align-items: center; }
.mock-avatar { width: 56px; height: 56px; border-radius: 50%; background: var(--brand-soft); color: var(--brand); display: grid; place-items: center; font-size: 24px; flex-shrink: 0; }
.verified-pill { display: inline-flex; align-items: center; gap: 6px; margin-top: 6px; font-size: 12px; font-weight: 700; color: var(--accent); background: var(--accent-soft); padding: 3px 8px; border-radius: 999px; }
.mock-usage { top: 140px; right: 0; width: 62%; }
.usage-row { display: flex; justify-content: space-between; font-size: 14px; margin-bottom: 6px; }
.mock-usage .progress { height: 8px; border-radius: 99px; background: var(--brand-soft); }
.mock-usage .progress-bar { background: var(--brand); border-radius: 99px; }
.mock-usage .progress-bar.bg-accent { background: var(--accent); }
.mock-chat { bottom: 0; left: 0; font-weight: 600; color: var(--brand); display: flex; align-items: center; gap: 10px; }
@media (max-width: 575.98px) {
    .hero-visual { min-height: 0; display: grid; gap: 12px; }
    .mock-card { position: static; width: auto !important; }
}

/* Feature cards */
.feature-card { height: 100%; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; transition: transform .2s, box-shadow .2s; }
.feature-card:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.feature-card h3 { font-size: 1.1rem; font-weight: 700; margin: 16px 0 8px; }
.feature-card p { color: var(--muted); margin: 0; }
.feature-icon { width: 46px; height: 46px; border-radius: 12px; display: inline-grid; place-items: center; background: var(--brand-soft); color: var(--brand); font-size: 18px; flex-shrink: 0; }
.feature-icon.accent { background: var(--accent-soft); color: var(--accent); }

/* Steps */
.step { text-align: center; padding: 8px 16px; }
.step-no { width: 48px; height: 48px; border-radius: 50%; display: inline-grid; place-items: center; background: var(--brand); color: #fff; font-weight: 800; font-size: 18px; }
.step h3 { font-size: 1.1rem; font-weight: 700; margin: 16px 0 8px; }
.step p { color: var(--muted); }

/* Plan cards */
.plan-card { height: 100%; display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 24px; position: relative; }
.plan-card.is-featured { border: 2px solid var(--brand); box-shadow: var(--shadow); }
.plan-card .plan-flag { position: absolute; top: -12px; left: 50%; transform: translateX(-50%); background: var(--brand); color: #fff; font-size: 12px; font-weight: 700; padding: 4px 12px; border-radius: 999px; white-space: nowrap; }
.plan-name { font-weight: 800; font-size: 1.2rem; }
.plan-desc { color: var(--muted); font-size: .95rem; min-height: 44px; }
.plan-price { font-size: 2.2rem; font-weight: 800; letter-spacing: -.02em; margin: 12px 0 4px; }
.plan-price small { font-size: .95rem; font-weight: 600; color: var(--muted); }
.plan-list { list-style: none; padding: 0; margin: 16px 0 24px; flex-grow: 1; }
.plan-list li { display: flex; gap: 10px; padding: 6px 0; font-size: .95rem; }
.plan-list i { color: var(--accent); margin-top: 4px; }
.plan-list .muted { color: var(--muted); }
.plan-card .btn { width: 100%; }
.plan-card.is-skeleton { min-height: 360px; }
.sk { background: linear-gradient(90deg, #eef2f5 25%, #f6f8fa 50%, #eef2f5 75%); background-size: 200% 100%; animation: sk 1.2s infinite; border-radius: 8px; margin-bottom: 14px; }
.sk-title { height: 22px; width: 50%; }
.sk-price { height: 40px; width: 70%; margin-bottom: 24px; }
.sk-line { height: 14px; }
.sk-line.short { width: 60%; }
@keyframes sk { to { background-position: -200% 0; } }
@media (prefers-reduced-motion: reduce) { .sk { animation: none; } .feature-card { transition: none; } }

/* Compare table */
.compare-wrap { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
.compare-table th, .compare-table td { padding: 14px 18px; vertical-align: middle; border-color: var(--line); }
.compare-table thead th { font-weight: 800; background: #fff; }
.compare-table tbody th { font-weight: 600; color: var(--muted); white-space: nowrap; }
.compare-table .fa-check { color: var(--accent); }
.compare-table .fa-minus { color: #b8c3cc; }

/* FAQ */
.faq .accordion-item { border: 1px solid var(--line); border-radius: 12px !important; margin-bottom: 12px; overflow: hidden; }
.faq .accordion-button { font-weight: 700; color: var(--ink); }
.faq .accordion-button:not(.collapsed) { background: var(--brand-soft); color: var(--brand-dark); box-shadow: none; }
.faq .accordion-body { color: var(--muted); }

/* Static pages */
.page-hero { padding: 56px 0 40px; }
.page-hero .breadcrumb a { color: var(--brand); }
.prose h2 { font-size: 1.25rem; font-weight: 700; margin: 32px 0 10px; }
.prose p { color: var(--muted); line-height: 1.75; }
.contact-item { display: flex; gap: 14px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--line); }

/* App CTA */
.app-cta { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 24px; padding: 40px; border-radius: 24px; background: linear-gradient(120deg, var(--brand), var(--brand-dark)); color: #fff; }
.app-cta h2 { font-weight: 800; }
.app-cta p { color: rgba(255, 255, 255, .85); }
.app-badge { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 10px; background: #0f1f2e; color: #fff; font-weight: 600; font-size: 14px; }
.app-badge:hover { color: #fff; background: #000; }
.app-badge-lg { padding: 12px 18px; background: #fff; color: var(--ink); }
.app-badge-lg:hover { background: #f1f5f8; color: var(--ink); }

/* Footer */
/* Light footer so the colour logo (config('i.logo')) reads on it */
.site-footer { background: var(--tint); color: var(--ink); padding: 64px 0 32px; border-top: 1px solid var(--line); }
.site-footer h6 { font-weight: 700; margin-bottom: 16px; }
.site-footer hr { border-color: var(--line); opacity: 1; margin: 40px 0 20px; }
.footer-muted { color: var(--muted); }
.footer-links li { margin-bottom: 10px; }
.footer-links a { color: #33475b; }
.footer-links a:hover { color: var(--brand); }

@media (max-width: 767.98px) {
    .section { padding: 56px 0; }
    .hero { padding: 48px 0 56px; }
    .app-cta { padding: 28px; }
}

/* Chips */
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 4px 12px; border-radius: 999px; background: var(--brand-soft); color: var(--brand-dark); font-size: 13px; font-weight: 600; }
.chip:hover { background: var(--brand); color: #fff; }
.chip-lg { padding: 10px 18px; font-size: 15px; background: #fff; border: 1px solid var(--line); color: var(--ink); }
.chip-lg:hover { border-color: var(--brand); background: var(--brand-soft); color: var(--brand-dark); }
.chip-brand { background: var(--brand); border-color: var(--brand); color: #fff; }
.chip-brand:hover { background: var(--brand-dark); color: #fff; }
.pending-pill { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700; color: #8a6100; background: #fff4d6; padding: 3px 10px; border-radius: 999px; }

/* Directory */
.page-hero-tint { background: linear-gradient(180deg, var(--tint), #fff); }
.filter-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; position: sticky; top: 88px; }
.input-icon { position: relative; }
.input-icon i { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--muted); font-size: 14px; }
.input-icon .form-control { padding-left: 36px; }
.front .form-control, .front .form-select { border-radius: 10px; border-color: var(--line); }
.front .form-control:focus, .front .form-select:focus { border-color: var(--brand); box-shadow: 0 0 0 .2rem rgba(11, 110, 153, .15); }
.front .form-check-input:checked { background-color: var(--brand); border-color: var(--brand); }
.doctor-card { height: 100%; display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; transition: box-shadow .2s, transform .2s; }
.doctor-card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.doctor-card.is-skeleton:hover { box-shadow: none; transform: none; }
.doctor-avatar, .profile-avatar { flex-shrink: 0; border-radius: 50%; display: grid; place-items: center; background: var(--brand-soft); color: var(--brand); font-weight: 800; }
.doctor-avatar { width: 56px; height: 56px; font-size: 18px; }
img.doctor-avatar, img.profile-avatar { object-fit: cover; }
.doctor-name { font-weight: 700; font-size: 1.02rem; color: var(--ink); line-height: 1.3; }
.doctor-name:hover { color: var(--brand); }
.doctor-meta { color: var(--muted); font-size: .9rem; }
.doctor-meta i { width: 18px; margin-right: 4px; text-align: center; color: #9aa7b3; }
.doctor-card .card-foot { margin-top: auto; padding-top: 14px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.doctor-card .fee small { display: block; color: var(--muted); font-size: 12px; }
.doctor-card .fee strong { font-size: 1rem; }
.sk-avatar { width: 56px; height: 56px; border-radius: 50%; }
.empty-state { text-align: center; padding: 48px 16px; border: 1px dashed var(--line); border-radius: var(--radius); color: var(--muted); }
.empty-state i { font-size: 32px; color: #b8c3cc; margin-bottom: 12px; }

/* Profile */
.profile-head { display: flex; gap: 24px; align-items: center; flex-wrap: wrap; }
.profile-avatar { width: 96px; height: 96px; font-size: 32px; }
.profile-cta { text-align: right; }

/* Public doctor profile, page style: cover, overlapping photo, stats, section tabs */
.pf-top { background: #fff; border-bottom: 1px solid var(--line); }
.pf-cover { height: 220px; background: radial-gradient(700px 300px at 85% 0%, rgba(20, 163, 139, .45), transparent 65%), radial-gradient(600px 300px at 5% 100%, rgba(10, 132, 255, .35), transparent 60%), #0a2342; }
.pf-head { display: flex; align-items: flex-end; gap: 24px; flex-wrap: wrap; margin-top: -64px; }
.pf-avatar { width: 160px; height: 160px; flex-shrink: 0; border-radius: 50%; border: 5px solid #fff; background: var(--brand-soft); color: var(--brand); display: grid; place-items: center; font-size: 52px; font-weight: 800; object-fit: cover; box-shadow: var(--shadow); }
.pf-id { flex: 1 1 320px; min-width: 0; padding: 78px 0 6px; }
.pf-name { font-size: clamp(1.5rem, 3vw, 2.1rem); font-weight: 800; letter-spacing: -.01em; margin: 0; }
.pf-name i { color: var(--accent); font-size: .7em; vertical-align: middle; }
.pf-role { color: var(--muted); margin: 4px 0 10px; }
.pf-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; font-size: .9rem; color: var(--muted); }
.pf-meta strong { color: var(--ink); }
.pf-actions { display: flex; flex-wrap: wrap; gap: 8px; padding-bottom: 10px; }
.pf-actions .btn { display: inline-flex; align-items: center; gap: 8px; }
.pf-actions .btn.is-following { background: var(--brand-soft); border-color: var(--brand-soft); color: var(--brand-dark); }
.pf-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin: 24px 0; }
.pf-stat { display: block; padding: 14px 16px; border: 1px solid var(--line); border-radius: 14px; background: var(--tint); color: var(--ink); }
a.pf-stat:hover { border-color: var(--brand); color: var(--ink); }
.pf-stat strong { display: block; font-size: 1.35rem; font-weight: 800; }
.pf-stat strong i { color: #f5a623; font-size: .85em; }
.pf-stat span { font-size: .85rem; color: var(--muted); }
.pf-tabs { position: sticky; top: 68px; z-index: 10; background: #fff; border-top: 1px solid var(--line); }
.pf-tabs .container { display: flex; gap: 4px; overflow-x: auto; }
.pf-tabs a { padding: 14px 16px; font-weight: 600; color: var(--muted); border-bottom: 3px solid transparent; white-space: nowrap; }
.pf-tabs a:hover { color: var(--brand); }
.pf-tabs a.is-active { color: var(--brand); border-bottom-color: var(--brand); }
.pf-body { background: var(--tint); }
.pf-body .profile-block { scroll-margin-top: 140px; }
.pf-intro { position: sticky; top: 140px; }
.pf-facts li { display: flex; gap: 12px; align-items: flex-start; padding: 8px 0; }
.pf-facts i { width: 34px; height: 34px; flex-shrink: 0; border-radius: 10px; display: grid; place-items: center; background: var(--brand-soft); color: var(--brand); }
.pf-facts span { font-weight: 600; min-width: 0; overflow-wrap: anywhere; }
.pf-facts small { display: block; font-size: 12px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.pf-sub { font-size: .8rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); margin: 18px 0 10px; }
.sample-tag { display: inline-block; font-style: normal; font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; padding: 2px 6px; border-radius: 6px; background: #fff4d6; color: #8a6100; vertical-align: middle; }
.rating-summary { display: flex; gap: 28px; align-items: center; flex-wrap: wrap; padding: 4px 0 18px; }
.rating-score { text-align: center; min-width: 150px; }
.rating-score strong { display: block; font-size: 3rem; font-weight: 800; line-height: 1; }
.rating-score span { font-size: .85rem; color: var(--muted); }
.rating-stars { color: #f5a623; letter-spacing: 2px; margin: 6px 0; }
.rating-bars { flex: 1 1 260px; }
.rating-bar { display: grid; grid-template-columns: 34px 1fr 40px; gap: 10px; align-items: center; font-size: .85rem; color: var(--muted); margin-bottom: 6px; }
.rating-bar > span:first-child i { color: #f5a623; font-size: .8em; }
.rating-bar .progress { height: 8px; border-radius: 99px; background: #eef2f5; }
.rating-bar .progress-bar { background: #f5a623; border-radius: 99px; }
.review { display: flex; gap: 14px; padding: 16px 0; border-top: 1px solid var(--line); }
.review:last-child { padding-bottom: 0; }
.review-avatar { width: 40px; height: 40px; flex-shrink: 0; border-radius: 50%; display: grid; place-items: center; background: var(--accent-soft); color: #0b6b5b; font-weight: 700; }
@media (max-width: 991.98px) { .pf-intro { position: static; } }
@media (max-width: 767.98px) {
    .pf-cover { height: 150px; }
    .pf-head { flex-direction: column; align-items: flex-start; gap: 12px; margin-top: -56px; }
    .pf-id { flex-basis: auto; padding-top: 0; }
    .pf-avatar { width: 112px; height: 112px; font-size: 36px; }
    .pf-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* Waiting-room display (queue/{key}): full screen, readable from across a room */
body.queue-display { background: #0a2342; color: #fff; min-height: 100vh; }
.qd { min-height: 100vh; display: grid; grid-template-rows: auto 1fr auto; gap: 24px; padding: clamp(16px, 3vw, 40px); }
.qd-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; }
.qd-doctor { font-size: clamp(1.3rem, 2.6vw, 2.2rem); font-weight: 800; }
.qd-sub { color: rgba(255, 255, 255, .7); font-size: clamp(.9rem, 1.4vw, 1.15rem); }
.qd-clock { font-size: clamp(1.3rem, 2.6vw, 2.2rem); font-weight: 700; }
.qd-body { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: 24px; align-items: stretch; }
.qd-label { font-size: clamp(.85rem, 1.3vw, 1.1rem); font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: #4fe0c6; margin-bottom: 12px; }
.qd-serving, .qd-next { background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .12); border-radius: 24px; padding: clamp(18px, 2.4vw, 36px); }
.qd-token { display: grid; justify-items: center; text-align: center; gap: 6px; padding: 12px 0; }
.qd-token + .qd-token { border-top: 1px solid rgba(255, 255, 255, .12); margin-top: 12px; padding-top: 24px; }
.qd-token span { font-size: clamp(5rem, 16vw, 13rem); font-weight: 800; line-height: 1; letter-spacing: -.03em; }
.qd-token strong { font-size: clamp(1.4rem, 3vw, 2.6rem); font-weight: 700; }
.qd-token em { font-style: normal; color: rgba(255, 255, 255, .75); font-size: clamp(1rem, 1.6vw, 1.35rem); }
.qd-token.is-empty span { color: rgba(255, 255, 255, .3); }
.qd-token.is-called span { animation: qd-flash 1s ease infinite; color: #4fe0c6; }
@keyframes qd-flash { 50% { opacity: .25; transform: scale(1.04); } }
.qd-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.qd-list li { display: flex; align-items: center; gap: 16px; padding: 12px 18px; border-radius: 14px; background: rgba(255, 255, 255, .08); }
.qd-list li:first-child { background: rgba(79, 224, 198, .18); }
.qd-list span { font-size: clamp(1.6rem, 3.4vw, 3rem); font-weight: 800; min-width: 2.4em; }
.qd-list strong { font-size: clamp(1rem, 1.8vw, 1.5rem); font-weight: 600; }
.qd-counts { margin-top: 16px; color: rgba(255, 255, 255, .7); font-size: clamp(.9rem, 1.4vw, 1.15rem); }
.qd-foot { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.qd-foot img { height: 44px; background: #fff; border-radius: 10px; padding: 0 6px; }
@media (max-width: 767.98px) { .qd-body { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) { .qd-token.is-called span { animation: none; } }

/* Home: recently joined doctors and the specialty tiles */
.section-row { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; }
.section-row h2 { font-weight: 800; font-size: clamp(1.6rem, 3vw, 2.2rem); letter-spacing: -.01em; margin-bottom: 6px; }
.joined-card { position: relative; display: flex; flex-direction: column; align-items: center; height: 100%; padding: 0 18px 16px; text-align: center; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; color: var(--ink); transition: box-shadow .2s, transform .2s, border-color .2s; }
.joined-card:hover { color: var(--ink); border-color: var(--brand); box-shadow: var(--shadow); transform: translateY(-3px); }
.joined-cover { align-self: stretch; height: 64px; margin: 0 -18px; background: linear-gradient(120deg, #0a2342, #0b6e99 60%, #14a38b); }
.joined-avatar { width: 84px; height: 84px; margin-top: -42px; border-radius: 50%; border: 4px solid #fff; background: var(--brand-soft); color: var(--brand); display: grid; place-items: center; font-size: 26px; font-weight: 800; object-fit: cover; }
.joined-name { margin-top: 10px; font-weight: 700; font-size: 1.05rem; }
.joined-name i { color: var(--accent); font-size: .85em; }
.joined-role { color: var(--muted); font-size: .9rem; margin-bottom: 14px; }
.joined-foot { align-self: stretch; margin-top: auto; padding-top: 12px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; gap: 8px; font-size: .8rem; color: var(--muted); text-align: left; }
.joined-view { width: 30px; height: 30px; flex-shrink: 0; border-radius: 50%; display: grid; place-items: center; background: var(--brand-soft); color: var(--brand); transition: background .2s, color .2s; }
.joined-card:hover .joined-view { background: var(--brand); color: #fff; }
.specialty-band { padding: 48px 32px; border-radius: 28px; background: linear-gradient(135deg, var(--brand-soft), var(--accent-soft)); }
.specialty-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(165px, 1fr)); gap: 14px; }
.specialty-tile { display: flex; flex-direction: column; gap: 4px; padding: 18px; background: #fff; border: 1px solid transparent; border-radius: 18px; color: var(--ink); box-shadow: 0 2px 6px rgba(15, 31, 46, .04); transition: transform .2s, box-shadow .2s, border-color .2s; }
.specialty-tile:hover { color: var(--ink); transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--tile); }
.specialty-icon { width: 48px; height: 48px; margin-bottom: 10px; border-radius: 14px; display: grid; place-items: center; font-size: 20px; background: var(--tile-soft); color: var(--tile); transition: background .2s, color .2s; }
.specialty-tile:hover .specialty-icon { background: var(--tile); color: #fff; }
.specialty-name { font-weight: 700; line-height: 1.25; }
.specialty-count { font-size: .82rem; color: var(--muted); }
.specialty-tile.tone-0 { --tile: #0b6e99; --tile-soft: #e6f3f8; }
.specialty-tile.tone-1 { --tile: #14a38b; --tile-soft: #e3f6f2; }
.specialty-tile.tone-2 { --tile: #c2577a; --tile-soft: #fbe9ef; }
.specialty-tile.tone-3 { --tile: #b7791f; --tile-soft: #fdf3dc; }
.specialty-tile.is-all { --tile: #fff; --tile-soft: rgba(255, 255, 255, .16); background: #0a2342; color: #fff; }
.specialty-tile.is-all:hover { color: #fff; border-color: #0a2342; }
.specialty-tile.is-all:hover .specialty-icon { color: #0a2342; }
.specialty-tile.is-all .specialty-count { color: rgba(255, 255, 255, .7); }
@media (max-width: 575.98px) { .specialty-band { padding: 32px 16px; border-radius: 20px; } .specialty-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.profile-block { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; margin-bottom: 20px; }
.profile-block h2 { font-size: 1.1rem; font-weight: 700; margin-bottom: 12px; }
.profile-block p { color: #33475b; line-height: 1.7; }
.chamber-card { border: 1px solid var(--line); border-radius: 12px; padding: 16px 18px; }
.chamber-card + .chamber-card { margin-top: 12px; }
.chamber-card h3 { font-size: 1rem; font-weight: 700; margin-bottom: 4px; }
.day-row { display: inline-flex; gap: 4px; flex-wrap: wrap; }
.day { font-size: 12px; font-weight: 600; padding: 4px 8px; border-radius: 6px; background: #f1f4f7; color: #9aa7b3; }
.day.on { background: var(--accent-soft); color: var(--accent); }
.facts dt { font-size: 12px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.facts dd { font-weight: 600; margin-bottom: 14px; }
@media (max-width: 991.98px) {
    .filter-card { position: static; }
    .profile-cta { text-align: left; width: 100%; }
}
@media (max-width: 575.98px) {
    .profile-avatar { width: 72px; height: 72px; font-size: 24px; }
}

/* Doctor auth */
.auth-wrap { padding: 48px 0 80px; background: linear-gradient(180deg, var(--tint), #fff); }
.auth-card { display: grid; grid-template-columns: 5fr 7fr; max-width: 980px; margin: 0 auto; background: #fff; border: 1px solid var(--line); border-radius: 24px; overflow: hidden; box-shadow: var(--shadow); }
.auth-side { background: linear-gradient(150deg, var(--brand), var(--brand-dark)); color: #fff; padding: 40px; display: flex; flex-direction: column; }
.auth-side h2 { font-weight: 800; font-size: 1.6rem; line-height: 1.25; }
.auth-side li { display: flex; gap: 10px; align-items: flex-start; margin-bottom: 12px; color: rgba(255, 255, 255, .9); }
.auth-side li i { margin-top: 4px; color: #7ee0cf; }
.brand-mark-light { background: rgba(255, 255, 255, .15); }
.auth-main { padding: 40px; }
.auth-title { font-size: 1.6rem; font-weight: 800; letter-spacing: -.01em; margin-bottom: 4px; }
.otp-input { letter-spacing: .5em; font-weight: 700; text-align: center; font-size: 1.4rem; }
@media (max-width: 767.98px) {
    .auth-card { grid-template-columns: 1fr; }
    .auth-side { display: none; }
    .auth-main { padding: 28px 20px; }
}

/* Forms */
.form-alert { padding: 10px 14px; border-radius: 10px; font-size: .92rem; margin-bottom: 16px; }
.form-alert.is-error { background: #fdecec; color: #9b1c1c; border: 1px solid #f6caca; }
.form-alert.is-success { background: var(--accent-soft); color: #0b6b5b; border: 1px solid #bfe9df; }
.form-alert.is-info { background: var(--brand-soft); color: var(--brand-dark); border: 1px solid #cfe5ef; }
.form-alert.is-dev { background: #fff8e6; color: #7a5a00; border: 1px dashed #e9c96b; }
.form-alert .required { color: inherit; }
.btn.is-loading { position: relative; color: transparent !important; pointer-events: none; }
.btn.is-loading::after { content: ''; position: absolute; inset: 0; margin: auto; width: 18px; height: 18px; border: 2px solid rgba(255, 255, 255, .6); border-top-color: transparent; border-radius: 50%; animation: spin .7s linear infinite; }
.btn-ghost.is-loading::after { border-color: var(--brand); border-top-color: transparent; }
@keyframes spin { to { transform: rotate(360deg); } }
.check-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 6px 16px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; }
.min-w-0 { min-width: 0; }

/* Onboarding */
.stepper { list-style: none; display: flex; gap: 8px; padding: 0; margin: 0; counter-reset: step; }
.stepper li { flex: 1; }
.stepper a { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-radius: 12px; background: #fff; border: 1px solid var(--line); color: var(--muted); font-weight: 600; font-size: .92rem; }
.stepper-dot { width: 28px; height: 28px; flex-shrink: 0; border-radius: 50%; display: grid; place-items: center; background: #eef2f5; font-size: 13px; }
.stepper li.is-done .stepper-dot { background: var(--accent); color: #fff; }
.stepper li.is-current a { border-color: var(--brand); color: var(--brand-dark); box-shadow: 0 0 0 3px rgba(11, 110, 153, .1); }
.stepper li.is-current .stepper-dot { background: var(--brand); color: #fff; }
@media (max-width: 575.98px) { .stepper-label { display: none; } .stepper a { justify-content: center; } }
.doc-row { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; margin-bottom: 8px; }
.doc-row > i { font-size: 22px; color: var(--brand); }
.upload-box { border: 1px dashed #c9d5df; border-radius: 12px; padding: 14px; background: var(--tint); }
.block-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
.block-head h2 { margin-bottom: 0; display: flex; align-items: center; gap: 10px; }
.block-no { width: 26px; height: 26px; flex-shrink: 0; border-radius: 50%; display: inline-grid; place-items: center; background: var(--brand-soft); color: var(--brand-dark); font-size: 13px; }
.bmdc-field { display: flex; gap: 8px; max-width: 460px; }
.bmdc-field .form-control { letter-spacing: .04em; font-weight: 600; }
.bmdc-field .form-control::placeholder { font-weight: 400; letter-spacing: 0; }
.doc-slot { border: 1px solid var(--line); border-radius: 12px; padding: 14px; margin-bottom: 12px; transition: border-color .15s, background .15s; }
.doc-slot.is-needed { border-color: #f0d48a; }
.doc-slot.is-done { border-color: #bfe9df; }
.doc-slot.is-dragover { border-color: var(--brand); border-style: dashed; background: var(--brand-soft); }
.doc-slot-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; margin-bottom: 10px; }
.doc-slot .doc-row { background: var(--tint); }
.doc-flag { display: inline-block; margin-left: 6px; font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; padding: 2px 6px; border-radius: 6px; background: #eef2f5; color: var(--muted); vertical-align: middle; }
.doc-flag.is-required { background: #fdecec; color: #9b1c1c; }
.doc-drop { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.doc-drop .form-alert { width: 100%; margin-bottom: 0; }
.doc-drop .invalid-feedback:empty { display: none !important; }
@media (hover: none), (max-width: 575.98px) { .doc-drop-hint { display: none; } }
@media (max-width: 575.98px) { .bmdc-field { flex-direction: column; } .doc-row { flex-wrap: wrap; } .doc-row > .min-w-0 { flex-basis: calc(100% - 40px); } }
.review-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 24px; margin-bottom: 20px; }
.review-list dt { font-size: 12px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.review-list dd { margin: 2px 0 0; font-weight: 600; }
@media (max-width: 575.98px) { .review-list { grid-template-columns: 1fr; } }
.check-list li { display: flex; gap: 10px; align-items: flex-start; padding: 6px 0; color: #9b6a00; }
.check-list li i { margin-top: 4px; }
.check-list li.is-done { color: #0b6b5b; }

/* Doctor dashboard */
.status-card { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; padding: 24px; border-radius: var(--radius); border: 1px solid var(--line); border-left-width: 6px; background: #fff; }
.status-card.tone-success { border-left-color: var(--accent); }
.status-card.tone-warning { border-left-color: #e0a100; }
.status-card.tone-danger { border-left-color: #d64545; }
.status-card.tone-neutral { border-left-color: var(--brand); }
.coming-card { background: var(--tint); }

/* Booking */
.chamber-pick { display: block; height: 100%; border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; cursor: pointer; background: #fff; }
.btn-check:checked + .chamber-pick { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(11, 110, 153, .12); }
.slot-grid { display: flex; flex-wrap: wrap; gap: 6px; }
.slot-grid .btn-check:checked + .btn { background: var(--brand); border-color: var(--brand); color: #fff; }
.slot-grid .btn-check:disabled + .btn { text-decoration: line-through; opacity: .45; }
