:root {
  --navy: #0b315a;
  --blue: #0a6fae;
  --teal: #0a7697;
  --mint: #70d4c9;
  --ink: #173448;
  --muted: #607783;
  --line: #dbe7eb;
  --soft: #f3f8fa;
  --white: #fff;
  --success: #16735b;
  --warning: #9a5b08;
  --danger: #a13737;
  --shadow: 0 22px 60px rgba(11, 49, 90, .12);
  --radius: 22px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--white); font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; line-height: 1.55; }
button, input { font: inherit; }
select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: var(--blue); }
[hidden] { display: none !important; }
.shell { width: min(1180px, calc(100% - 40px)); margin: 0 auto; }
.skip-link { position: fixed; top: 8px; left: 8px; z-index: 100; padding: 10px 16px; color: #fff; background: var(--navy); border-radius: 10px; transform: translateY(-160%); }
.skip-link:focus { transform: translateY(0); }
.prototype-banner { display: flex; justify-content: center; gap: 12px; padding: 8px 20px; color: #fff; background: #864b0f; font-size: .84rem; text-align: center; }
.site-header { position: sticky; top: 0; z-index: 30; border-bottom: 1px solid rgba(219, 231, 235, .9); background: rgba(255, 255, 255, .94); backdrop-filter: blur(18px); }
.header-inner { display: grid; grid-template-columns: 260px 1fr auto; min-height: 82px; align-items: center; gap: 32px; }
.brand img { display: block; width: 245px; height: auto; }
.main-nav { display: flex; justify-content: center; gap: 28px; }
.main-nav a { color: #3e5968; font-size: .92rem; font-weight: 750; text-decoration: none; }
.main-nav a:hover { color: var(--blue); }
.header-actions { display: flex; align-items: center; gap: 14px; }
.language-switch { display: flex; padding: 3px; border: 1px solid var(--line); border-radius: 999px; background: var(--soft); }
.language-switch button { min-width: 38px; padding: 5px 8px; border: 0; border-radius: 999px; color: var(--muted); background: transparent; font-size: .78rem; font-weight: 800; cursor: pointer; }
.language-switch button[aria-pressed="true"] { color: var(--navy); background: #fff; box-shadow: 0 2px 7px rgba(11, 49, 90, .12); }
.button { display: inline-flex; min-height: 44px; align-items: center; justify-content: center; gap: 8px; padding: 11px 20px; border: 1px solid transparent; border-radius: 12px; font-weight: 780; text-decoration: none; cursor: pointer; transition: transform .18s ease, box-shadow .18s ease, background .18s ease; }
.button:hover { transform: translateY(-1px); }
.button:disabled { cursor: not-allowed; opacity: .55; transform: none; }
.button-primary { color: #fff; background: linear-gradient(135deg, var(--blue), var(--teal)); box-shadow: 0 10px 24px rgba(10, 111, 174, .22); }
.button-secondary { color: var(--navy); border-color: #c7d9df; background: #fff; }
.button-quiet { min-height: 38px; padding: 8px 14px; color: var(--navy); border-color: var(--line); background: #fff; }
.button-block { width: 100%; }
.text-button { padding: 5px; border: 0; color: var(--blue); background: transparent; font-weight: 750; cursor: pointer; }
.hero { overflow: hidden; padding: 80px 0 70px; background: radial-gradient(circle at 75% 15%, rgba(112, 212, 201, .26), transparent 33%), linear-gradient(150deg, #edf7fa 0%, #fff 55%, #f5fafb 100%); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(320px, .65fr); align-items: center; gap: 80px; }
.eyebrow, .step-label, .muted-label { margin: 0 0 8px; color: var(--teal); font-size: .76rem; font-weight: 850; letter-spacing: .13em; text-transform: uppercase; }
h1, h2, h3, p { margin-top: 0; }
h1 { max-width: 750px; margin-bottom: 24px; color: var(--navy); font-size: clamp(3rem, 5.2vw, 5.2rem); line-height: .98; letter-spacing: -.055em; }
h2 { color: var(--navy); font-size: clamp(1.85rem, 3vw, 2.7rem); line-height: 1.08; letter-spacing: -.035em; }
h3 { color: var(--navy); line-height: 1.2; }
.lede { max-width: 700px; color: #536c79; font-size: 1.13rem; }
.trust-row { display: flex; flex-wrap: wrap; gap: 18px 26px; margin-top: 34px; color: #3e5968; font-size: .9rem; font-weight: 700; }
.trust-row > span { display: flex; align-items: center; gap: 8px; }
.trust-row i { display: inline-grid; width: 22px; height: 22px; place-items: center; border-radius: 50%; color: var(--navy); background: var(--mint); font-style: normal; }
.doctor-card { display: flex; align-items: center; gap: 20px; padding: 28px; border: 1px solid rgba(199, 217, 223, .8); border-radius: var(--radius); background: rgba(255, 255, 255, .88); box-shadow: var(--shadow); }
.doctor-card h2 { margin-bottom: 5px; font-size: 1.45rem; }
.doctor-card p:last-child { margin: 0; color: var(--muted); font-size: .9rem; }
.doctor-mark { display: grid; width: 78px; aspect-ratio: 1; flex: 0 0 auto; place-items: center; border-radius: 24px; color: #fff; background: linear-gradient(145deg, var(--navy), var(--teal)); font-size: 1.4rem; font-weight: 850; }
.booking-section { padding: 80px 0 95px; }
.booking-layout { display: grid; grid-template-columns: minmax(0, 1fr) 350px; align-items: start; gap: 38px; }
.booking-panel { padding: 38px; border: 1px solid var(--line); border-radius: 28px; box-shadow: 0 18px 54px rgba(11, 49, 90, .08); }
.panel-heading { display: flex; justify-content: space-between; align-items: start; gap: 20px; margin-bottom: 28px; }
.panel-heading h2 { margin-bottom: 0; font-size: 2rem; }
.panel-heading.compact { margin-top: 48px; padding-top: 40px; border-top: 1px solid var(--line); }
.selection-summary { padding: 7px 12px; border-radius: 999px; color: var(--teal); background: #e9f8f6; font-size: .82rem; font-weight: 750; }
.service-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.service-card { position: relative; min-height: 190px; padding: 22px; border: 1px solid var(--line); border-radius: 18px; color: inherit; background: #fff; text-align: left; cursor: pointer; transition: border .18s ease, box-shadow .18s ease, transform .18s ease; }
.service-card:hover { transform: translateY(-2px); border-color: #8ebecb; box-shadow: 0 12px 28px rgba(11, 49, 90, .1); }
.service-card.selected { border: 2px solid var(--teal); background: #f1fbfa; }
.service-card .service-icon { display: grid; width: 42px; height: 42px; margin-bottom: 18px; place-items: center; border-radius: 13px; color: #fff; background: linear-gradient(145deg, var(--navy), var(--teal)); font-weight: 850; }
.service-card h3 { margin-bottom: 8px; font-size: 1.02rem; }
.service-card p { margin-bottom: 0; color: var(--muted); font-size: .86rem; }
.service-card small { display: block; margin-top: 14px; color: var(--teal); font-weight: 800; }
.date-strip { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; }
.date-tab { padding: 14px 8px; border: 1px solid var(--line); border-radius: 14px; color: var(--muted); background: #fff; text-align: center; cursor: pointer; }
.date-tab strong { display: block; color: var(--navy); font-size: 1.25rem; }
.date-tab span { display: block; font-size: .72rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.date-tab.selected { color: #fff; border-color: var(--navy); background: var(--navy); }
.date-tab.selected strong { color: #fff; }
.time-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-top: 20px; }
.time-button { padding: 12px; border: 1px solid #bfd6dd; border-radius: 12px; color: var(--navy); background: #fff; font-weight: 780; cursor: pointer; }
.time-button:hover, .time-button.selected { color: #fff; border-color: var(--teal); background: var(--teal); }
.fine-print { margin: 20px 0 0; color: var(--muted); font-size: .8rem; }
.request-card { position: sticky; top: 110px; min-height: 315px; padding: 30px; border-radius: 24px; color: #eaf5f7; background: linear-gradient(155deg, #0b315a, #0a637d); box-shadow: var(--shadow); }
.request-card h3 { color: #fff; font-size: 1.35rem; }
.request-empty { padding: 20px 0; text-align: center; }
.request-empty p { color: #c8dfe5; }
.calendar-icon { position: relative; width: 70px; height: 68px; margin: 0 auto 22px; border: 2px solid rgba(255,255,255,.78); border-radius: 16px; }
.calendar-icon::before { content: ''; position: absolute; top: 16px; left: 0; right: 0; border-top: 2px solid rgba(255,255,255,.78); }
.calendar-icon span::before, .calendar-icon span::after { content: ''; position: absolute; top: -7px; width: 8px; height: 18px; border-radius: 4px; background: var(--mint); }
.calendar-icon span::before { left: 16px; }.calendar-icon span::after { right: 16px; }
.selection-list { display: grid; gap: 14px; margin: 24px 0; }
.selection-list div { display: flex; justify-content: space-between; gap: 20px; padding-bottom: 12px; border-bottom: 1px solid rgba(255,255,255,.18); }
.selection-list dt { color: #b8d4db; font-size: .82rem; }.selection-list dd { margin: 0; color: #fff; font-weight: 750; text-align: right; }
.lock-note { display: flex; align-items: start; gap: 8px; margin: 15px 0 0; color: #c8dfe5; font-size: .78rem; }
.portal-section, .staff-section { padding: 88px 0; background: var(--soft); }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 30px; margin-bottom: 34px; }
.section-heading h2 { margin-bottom: 8px; }.section-heading p:last-child { max-width: 720px; margin-bottom: 0; color: var(--muted); }
.portal-grid { display: grid; grid-template-columns: .72fr 1.28fr; gap: 24px; }
.dashboard-card { padding: 28px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; box-shadow: 0 12px 34px rgba(11, 49, 90, .07); }
.card-title { display: flex; justify-content: space-between; align-items: start; gap: 18px; margin-bottom: 25px; }.card-title h3 { margin-bottom: 0; font-size: 1.35rem; }
.status-chip { display: inline-flex; padding: 5px 10px; border-radius: 999px; font-size: .72rem; font-weight: 850; text-transform: uppercase; }
.status-chip.success, .status-chip.confirmed { color: #12614e; background: #def5ed; }.status-chip.pending { color: #855006; background: #fff0cf; }.status-chip.cancelled, .status-chip.no_show { color: #873131; background: #f9dddd; }.status-chip.completed { color: #2f5a80; background: #dcecf7; }
form { display: grid; gap: 16px; }
label { display: grid; gap: 7px; color: #3f5968; font-size: .84rem; font-weight: 760; }
input { width: 100%; min-height: 46px; padding: 10px 12px; border: 1px solid #bdd0d7; border-radius: 11px; color: var(--ink); background: #fff; outline: none; }
input:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(10, 111, 174, .12); }
input:disabled { color: #6e818b; background: #edf3f5; }
.appointment-list { display: grid; gap: 13px; }
.appointment-item { display: grid; grid-template-columns: 58px 1fr auto; align-items: center; gap: 16px; padding: 17px; border: 1px solid var(--line); border-radius: 15px; }
.appointment-date { display: grid; place-items: center; min-height: 56px; border-radius: 13px; color: var(--navy); background: #e8f4f7; font-weight: 850; line-height: 1; }.appointment-date small { margin-bottom: 4px; font-size: .68rem; text-transform: uppercase; }.appointment-date strong { font-size: 1.35rem; }
.appointment-item h4 { margin: 0 0 4px; color: var(--navy); }.appointment-item p { margin: 0; color: var(--muted); font-size: .84rem; }
.appointment-actions { display: grid; justify-items: end; gap: 7px; }.appointment-actions button { color: var(--danger); }
.empty-state { padding: 28px; border: 1px dashed #b9cdd4; border-radius: 16px; color: var(--muted); text-align: center; }
.staff-section { background: #fff; }
.workspace-tabs { display: inline-flex; flex-wrap: wrap; gap: 5px; margin-bottom: 28px; padding: 5px; border: 1px solid var(--line); border-radius: 14px; background: var(--soft); }
.workspace-tabs button { min-height: 40px; padding: 8px 16px; border: 0; border-radius: 10px; color: var(--muted); background: transparent; font-weight: 800; cursor: pointer; }
.workspace-tabs button[aria-selected="true"] { color: var(--navy); background: #fff; box-shadow: 0 3px 12px rgba(11, 49, 90, .1); }
.workspace-intro { display: flex; justify-content: space-between; align-items: end; gap: 28px; margin-bottom: 22px; }
.workspace-intro h3 { margin-bottom: 6px; font-size: 1.35rem; }.workspace-intro p { max-width: 700px; margin-bottom: 0; color: var(--muted); }
.compact-select { min-width: 200px; }.compact-select select { min-height: 44px; padding: 8px 34px 8px 11px; border: 1px solid #bdd0d7; border-radius: 11px; color: var(--navy); background: #fff; }
.availability-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.availability-slot { display: flex; align-items: center; justify-content: space-between; gap: 15px; min-height: 72px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 14px; background: #fff; }
.availability-slot strong { color: var(--navy); }.availability-slot small { display: block; color: var(--muted); }
.availability-slot button { min-width: 76px; padding: 7px 10px; border: 1px solid #bdd0d7; border-radius: 9px; color: var(--navy); background: var(--soft); font-size: .76rem; font-weight: 800; cursor: pointer; }
.availability-slot.blocked { border-color: #e5c5c5; background: #fff7f7; }.availability-slot.blocked button { color: #fff; border-color: var(--danger); background: var(--danger); }.availability-slot.booked { border-color: #c4ded7; background: #f2fbf8; }.availability-slot.booked button { color: var(--success); border-color: #b5d9cf; background: #fff; cursor: not-allowed; }
.team-form { display: grid; grid-template-columns: 1fr 1.2fr 1fr .7fr auto; align-items: end; gap: 14px; margin-bottom: 24px; padding: 22px; border: 1px solid var(--line); border-radius: 17px; background: var(--soft); }
.team-form select { min-height: 46px; padding: 9px 34px 9px 11px; border: 1px solid #bdd0d7; border-radius: 11px; color: var(--navy); background: #fff; }
.activity-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.activity-list { display: grid; gap: 9px; }
.activity-row { display: grid; grid-template-columns: 1fr auto; gap: 14px; padding: 13px 0; border-bottom: 1px solid var(--line); }.activity-row:last-child { border-bottom: 0; }.activity-row strong { color: var(--navy); font-size: .9rem; }.activity-row small { display: block; color: var(--muted); }.activity-row time { color: var(--muted); font-size: .76rem; white-space: nowrap; }.activity-row .status-chip { align-self: start; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 15px; margin-bottom: 24px; }
.stat-card { padding: 21px; border: 1px solid var(--line); border-radius: 17px; background: var(--soft); }.stat-card strong { display: block; color: var(--navy); font-size: 2rem; }.stat-card span { color: var(--muted); font-size: .84rem; font-weight: 700; }
.staff-table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 18px; }
.staff-table { width: 100%; border-collapse: collapse; background: #fff; }.staff-table th, .staff-table td { padding: 15px 16px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: middle; }.staff-table th { color: #526b78; background: #f5f9fa; font-size: .75rem; letter-spacing: .08em; text-transform: uppercase; }.staff-table td { font-size: .86rem; }.staff-table tr:last-child td { border-bottom: 0; }.staff-table small { display: block; color: var(--muted); }.row-actions { display: flex; gap: 6px; }.row-actions button { padding: 6px 9px; border: 1px solid var(--line); border-radius: 8px; color: var(--navy); background: #fff; font-size: .75rem; font-weight: 750; cursor: pointer; }
.help-section { padding: 88px 0; }.help-grid { display: grid; grid-template-columns: 1fr .8fr; align-items: center; gap: 70px; }.privacy-card { padding: 32px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--soft); }.privacy-card p { color: var(--muted); }
footer { padding: 46px 0; color: #c9dce1; background: #08283a; }.footer-inner { display: grid; grid-template-columns: 260px 1fr auto; align-items: center; gap: 35px; }.footer-inner img { width: 240px; filter: brightness(0) invert(1); }.footer-inner p { margin: 0; font-size: .83rem; }
.modal-backdrop { position: fixed; inset: 0; z-index: 60; display: grid; place-items: center; padding: 20px; background: rgba(4, 25, 40, .66); backdrop-filter: blur(8px); }
.modal { position: relative; width: min(470px, 100%); padding: 38px; border-radius: 26px; background: #fff; box-shadow: 0 30px 100px rgba(0,0,0,.3); }.modal h2 { margin-bottom: 10px; }.modal > p:not(.eyebrow):not(.form-message) { color: var(--muted); }.modal-close { position: absolute; top: 14px; right: 16px; width: 38px; height: 38px; border: 0; border-radius: 50%; color: var(--muted); background: var(--soft); font-size: 1.5rem; cursor: pointer; }.modal-icon { display: grid; width: 52px; height: 52px; margin-bottom: 22px; place-items: center; border-radius: 16px; color: #fff; background: linear-gradient(145deg, var(--navy), var(--teal)); font-size: 1.3rem; font-weight: 850; }
.auth-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; margin: 20px 0; padding: 4px; border-radius: 12px; background: var(--soft); }.auth-tabs button { padding: 10px; border: 0; border-radius: 9px; color: var(--muted); background: transparent; font-weight: 800; cursor: pointer; }.auth-tabs button[aria-pressed="true"] { color: #fff; background: var(--navy); }.modal form small { display: block; margin-top: 5px; color: var(--muted); }
.dev-code { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; margin-top: 18px; padding: 14px; border: 1px solid #e4c487; border-radius: 12px; color: #704106; background: #fff8e8; }.dev-code span { padding: 3px 8px; border-radius: 6px; background: #fff; font-size: 1.1rem; font-weight: 900; letter-spacing: .12em; }.dev-code small { flex-basis: 100%; }
.form-message { min-height: 22px; margin: 14px 0 0; color: var(--danger); font-size: .84rem; }
.toast { position: fixed; right: 24px; bottom: 24px; z-index: 80; max-width: 380px; padding: 14px 18px; border-radius: 12px; color: #fff; background: var(--navy); box-shadow: var(--shadow); font-weight: 700; }
body.modal-open { overflow: hidden; }

@media (max-width: 980px) {
  .header-inner { grid-template-columns: 220px 1fr auto; }.brand img { width: 210px; }.main-nav { display: none; }
  .hero-grid { grid-template-columns: 1fr; gap: 38px; }.doctor-card { max-width: 520px; }
  .booking-layout { grid-template-columns: 1fr; }.request-card { position: static; }
  .portal-grid { grid-template-columns: 1fr; }.footer-inner { grid-template-columns: 1fr 1fr; }.footer-inner img { grid-column: 1 / -1; }
}

@media (max-width: 720px) {
  .shell { width: min(100% - 28px, 1180px); }.prototype-banner { display: grid; gap: 0; }
  .site-header { position: static; }.header-inner { grid-template-columns: 1fr auto; min-height: 74px; gap: 10px; }.brand img { width: 188px; }.header-actions .button { display: none; }
  .hero { padding: 54px 0; }.hero-grid { gap: 30px; }h1 { font-size: 3.15rem; }.trust-row { display: grid; gap: 11px; }
  .booking-section, .portal-section, .staff-section, .help-section { padding: 55px 0; }.booking-panel { padding: 23px; border-radius: 20px; }.service-grid { grid-template-columns: 1fr; }.service-card { min-height: 0; }.date-strip { grid-template-columns: repeat(3, 1fr); }.date-tab:nth-child(n+7) { display: none; }.time-grid { grid-template-columns: repeat(2, 1fr); }
  .section-heading { align-items: start; flex-direction: column; }.portal-grid { gap: 16px; }.dashboard-card { padding: 22px; }.appointment-item { grid-template-columns: 52px 1fr; }.appointment-actions { grid-column: 2; justify-items: start; }
  .stats-grid { grid-template-columns: 1fr 1fr; }.help-grid { grid-template-columns: 1fr; gap: 28px; }.footer-inner { grid-template-columns: 1fr; gap: 18px; }.footer-inner img { grid-column: auto; }
  .workspace-tabs { display: grid; grid-template-columns: 1fr; width: 100%; }.workspace-intro { align-items: stretch; flex-direction: column; }.compact-select { width: 100%; }.compact-select select { width: 100%; }.availability-grid { grid-template-columns: 1fr 1fr; }.team-form { grid-template-columns: 1fr 1fr; }.activity-grid { grid-template-columns: 1fr; }
  .modal { padding: 30px 22px; }
}

@media (max-width: 420px) {
  .language-switch { display: none; }.doctor-card { align-items: flex-start; }.doctor-mark { width: 60px; border-radius: 18px; }.date-strip { grid-template-columns: repeat(2, 1fr); }.stats-grid { grid-template-columns: 1fr; }
  .availability-grid, .team-form { grid-template-columns: 1fr; }
}

