:root {
  --ink: #173f3c;
  --ink-2: #24524e;
  --teal: #087c73;
  --teal-dark: #07655f;
  --teal-light: #dff3ef;
  --mint: #edf8f5;
  --coral: #ee8c72;
  --coral-light: #fff0eb;
  --blue: #4b7fb8;
  --blue-light: #eaf2fb;
  --violet: #796ca9;
  --cream: #faf9f5;
  --white: #fff;
  --text: #273e3d;
  --muted: #718481;
  --line: #dce7e3;
  --line-dark: #c9dad5;
  --danger: #bd584d;
  --danger-light: #fbe9e6;
  --warning: #a46c1e;
  --warning-light: #fff1d9;
  --success: #34755a;
  --success-light: #def2e8;
  --shadow-sm: 0 8px 24px rgba(18, 64, 57, .06);
  --shadow-lg: 0 30px 80px rgba(18, 64, 57, .14);
  --radius: 16px;
  --radius-lg: 28px;
  --max: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--cream); color: var(--text); font: 15px/1.6 "DM Sans", sans-serif; -webkit-font-smoothing: antialiased; }
body::selection { background: var(--teal-light); color: var(--ink); }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
button { color: inherit; }
svg { flex: 0 0 auto; }
h1, h2, h3, h4, p { margin-top: 0; }
h1, h2, h3 { color: var(--ink); font-family: "Manrope", sans-serif; letter-spacing: -.035em; }
h1 { font-size: clamp(42px, 5.6vw, 76px); line-height: 1.04; }
h2 { font-size: clamp(28px, 3vw, 42px); line-height: 1.12; }
h3 { font-size: 18px; line-height: 1.3; }
.muted { color: var(--muted); }
.block { display: block; }
.full { width: 100%; justify-content: center; }
.inline-form { display: inline-flex; margin: 0; }
.link-button, .text-button { border: 0; padding: 0; background: none; color: var(--teal); cursor: pointer; font-weight: 700; }
.text-link { display: inline-flex; align-items: center; gap: 8px; color: var(--teal); font-weight: 700; }
.text-link:hover, .text-button:hover, .link-button:hover { color: var(--teal-dark); }
.centered-link { justify-content: center; width: 100%; margin-top: 14px; }

.site-header {
  position: relative; z-index: 20; height: 80px; padding: 0 max(28px, calc((100vw - var(--max)) / 2));
  display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid rgba(210, 225, 220, .78); background: rgba(250, 249, 245, .94);
  backdrop-filter: blur(14px);
}
.brand { display: inline-flex; align-items: center; gap: 11px; line-height: 1.05; }
.brand-logo { width: 52px; height: 52px; flex: 0 0 auto; display: block; object-fit: contain; }
.brand > span:last-child { display: flex; flex-direction: column; gap: 4px; }
.brand b { color: var(--ink); font: 800 17px/1 "Manrope"; letter-spacing: -.04em; }
.brand small { color: var(--muted); font-size: 9px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; }
.main-nav { display: flex; align-items: center; gap: 27px; color: #4f6a67; font-size: 14px; font-weight: 600; }
.main-nav > a:not(.btn):hover { color: var(--teal); }
.notification-link { position: relative; display: flex; }
.notification-link span { position: absolute; top: -9px; right: -10px; min-width: 17px; height: 17px; display: grid; place-items: center; padding: 0 4px; background: var(--coral); color: white; border: 2px solid var(--cream); border-radius: 50px; font-size: 9px; }
.user-menu { display: flex; align-items: center; gap: 8px; }
.mobile-menu { display: none; border: 0; background: transparent; }

.btn {
  min-height: 43px; padding: 0 19px; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  border: 1px solid var(--teal); border-radius: 10px; background: var(--teal); color: white; cursor: pointer; font-weight: 700; font-size: 14px;
  box-shadow: 0 8px 20px rgba(8,124,115,.11); transition: transform .18s ease, background .18s ease, box-shadow .18s ease;
}
.btn:hover { transform: translateY(-1px); background: var(--teal-dark); box-shadow: 0 12px 26px rgba(8,124,115,.17); }
.btn:disabled { opacity: .46; pointer-events: none; }
.btn-lg { min-height: 52px; padding: 0 25px; border-radius: 12px; }
.btn-sm { min-height: 34px; padding: 0 13px; border-radius: 8px; font-size: 12px; }
.btn-light { background: white; color: var(--teal); border-color: white; }
.btn-light:hover { background: var(--mint); }
.btn-outline { background: transparent; color: var(--teal); box-shadow: none; border-color: var(--line-dark); }
.btn-outline:hover { background: var(--mint); box-shadow: none; }
.btn-danger { background: var(--danger-light); color: var(--danger); border-color: transparent; box-shadow: none; }
.btn-danger:hover { background: #f7d8d3; box-shadow: none; }

.flash-stack { position: fixed; z-index: 100; top: 94px; right: 24px; width: min(390px, calc(100vw - 32px)); display: grid; gap: 8px; }
.flash { display: flex; gap: 10px; align-items: start; padding: 14px 16px; border: 1px solid; border-radius: 12px; background: white; box-shadow: var(--shadow-lg); font-size: 13px; }
.flash.success { border-color: #bddfce; color: var(--success); }
.flash.error { border-color: #f0c9c3; color: var(--danger); }

.hero {
  min-height: 665px; max-width: var(--max); margin: auto; padding: 78px 0 86px; display: grid; grid-template-columns: 1.05fr .95fr; align-items: center; gap: 75px;
}
.hero-copy h1 { max-width: 680px; margin: 0 0 25px; }
.hero-copy > p { max-width: 590px; margin-bottom: 32px; color: var(--muted); font-size: 19px; line-height: 1.7; }
.eyebrow { display: inline-flex; align-items: center; gap: 9px; margin-bottom: 18px; color: var(--teal); font-size: 11px; line-height: 1; font-weight: 800; letter-spacing: .18em; text-transform: uppercase; }
.eyebrow i { width: 20px; height: 2px; background: var(--coral); border-radius: 3px; }
.eyebrow.light { color: rgba(255,255,255,.78); }
.hero-actions { display: flex; align-items: center; gap: 25px; }
.trust-row { margin-top: 40px; display: flex; align-items: center; gap: 23px; color: #5b7470; font-size: 12px; font-weight: 600; }
.trust-row span { display: flex; align-items: center; gap: 7px; }
.trust-row svg { color: var(--teal); }
.hero-visual { position: relative; min-height: 455px; display: grid; place-items: center; }
.hero-orbit { position: absolute; border-radius: 50%; border: 1px solid rgba(8,124,115,.16); }
.orbit-one { width: 440px; height: 440px; }
.orbit-two { width: 350px; height: 350px; border-style: dashed; animation: rotate 45s linear infinite; }
@keyframes rotate { to { transform: rotate(360deg); } }
.doctor-portrait { position: relative; width: 315px; height: 390px; display: grid; place-items: center; background: linear-gradient(145deg,#d6eee8,#b8ddd3); border-radius: 158px 158px 30px 30px; overflow: hidden; box-shadow: 0 34px 75px rgba(21,92,83,.16); }
.doctor-portrait::before { content: ""; position: absolute; inset: 34% -20% -25%; background: white; border-radius: 50% 50% 0 0; }
.portrait-symbol { position: relative; z-index: 1; color: var(--teal); transform: translateY(-35px); }
.availability { position: absolute; z-index: 2; bottom: 20px; left: 22px; right: 22px; padding: 13px 15px; display: flex; align-items: center; gap: 10px; border-radius: 12px; background: rgba(255,255,255,.91); backdrop-filter: blur(8px); box-shadow: var(--shadow-sm); }
.availability i { width: 9px; height: 9px; background: #31a16d; border-radius: 50%; box-shadow: 0 0 0 5px #e2f4eb; }
.availability span { display: flex; flex-direction: column; }
.availability b { font-size: 12px; }
.availability small { color: var(--muted); font-size: 10px; }
.floating-card { position: absolute; z-index: 3; display: flex; align-items: center; gap: 10px; padding: 13px 15px; border-radius: 13px; background: white; box-shadow: var(--shadow-lg); }
.floating-card svg { color: var(--teal); }
.floating-card span { display: flex; flex-direction: column; }
.floating-card b { font-size: 11px; }
.floating-card small { color: var(--muted); font-size: 9px; }
.card-secure { left: 0; top: 80px; }
.card-methods { right: 0; bottom: 75px; gap: 5px; }
.card-methods span { width: 35px; height: 35px; display: grid; place-items: center; border-radius: 9px; background: var(--mint); color: var(--teal); }
.card-methods span:nth-child(2) { background: var(--coral-light); color: var(--coral); }
.card-methods span:nth-child(3) { background: var(--blue-light); color: var(--blue); }
.single-doctor-hero .hero-copy h1 { max-width: 720px; }
.single-doctor-hero .hero-copy > p { max-width: 630px; }
.single-doctor-visual .doctor-portrait { background: linear-gradient(145deg,#d9efe9,#aed7cd); }
.doctor-trust-strip { max-width: var(--max); margin: auto; padding: 24px 28px; display: flex; align-items: center; justify-content: space-between; gap: 30px; border: 1px solid var(--line); border-radius: 15px; background: white; box-shadow: var(--shadow-sm); }
.doctor-trust-strip > div { display: flex; align-items: center; gap: 12px; }
.doctor-mini-mark { width: 43px; height: 43px; display: grid; place-items: center; border-radius: 12px; background: var(--teal-light); color: var(--teal); }
.doctor-trust-strip > div > span:last-child { display: flex; flex-direction: column; }
.doctor-trust-strip b { color: var(--ink); font-family: "Manrope"; }
.doctor-trust-strip small { color: var(--muted); }
.trust-features { gap: 24px !important; color: var(--muted); font-size: 11px; font-weight: 700; }
.trust-features span { display: flex; align-items: center; gap: 6px; }
.trust-features svg { color: var(--teal); }
.logo-strip { padding: 25px max(28px,calc((100vw - var(--max))/2)); display: flex; align-items: center; justify-content: space-between; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); color: var(--muted); font-size: 12px; }
.logo-strip div { display: flex; gap: 46px; color: #9aaba8; font-family: "Manrope"; letter-spacing: .06em; text-transform: uppercase; }

.section { max-width: var(--max); margin: auto; padding: 110px 0; }
.section-heading { max-width: 650px; margin-bottom: 55px; }
.section-heading h2 { margin-bottom: 16px; }
.section-heading p { color: var(--muted); font-size: 17px; }
.steps { display: grid; grid-template-columns: repeat(3,1fr); gap: 22px; }
.steps article { position: relative; min-height: 285px; padding: 30px; border: 1px solid var(--line); border-radius: var(--radius); background: white; box-shadow: var(--shadow-sm); }
.step-no { position: absolute; right: 25px; top: 22px; color: #d8e4e0; font: 800 35px "Manrope"; }
.feature-icon { width: 52px; height: 52px; display: grid; place-items: center; margin-bottom: 35px; border-radius: 15px; background: var(--teal-light); color: var(--teal); }
.feature-icon.coral { background: var(--coral-light); color: var(--coral); }
.feature-icon.blue { background: var(--blue-light); color: var(--blue); }
.steps article h3 { margin-bottom: 12px; }
.steps article p { color: var(--muted); }
.doctor-focus-section { max-width: var(--max); margin: 0 auto 110px; }
.doctor-focus-card { min-height: 470px; display: grid; grid-template-columns: .82fr 1.18fr; overflow: hidden; border-radius: var(--radius-lg); background: linear-gradient(120deg,#123f3c,#087c73); color: white; box-shadow: 0 30px 75px rgba(12,80,73,.2); }
.doctor-focus-visual { position: relative; display: grid; place-items: center; overflow: hidden; background: linear-gradient(150deg,rgba(255,255,255,.1),rgba(255,255,255,.02)); }
.doctor-focus-visual::before, .doctor-focus-visual::after { content: ""; position: absolute; border: 1px solid rgba(255,255,255,.12); border-radius: 50%; }
.doctor-focus-visual::before { width: 360px; height: 360px; }
.doctor-focus-visual::after { width: 250px; height: 250px; border-style: dashed; }
.doctor-focus-visual > span { position: relative; z-index: 2; width: 150px; height: 190px; display: grid; place-items: center; border-radius: 75px 75px 22px 22px; background: #d8eee8; color: var(--teal); box-shadow: 0 24px 50px rgba(0,0,0,.15); }
.doctor-focus-visual > i { position: absolute; z-index: 3; right: 18%; bottom: 21%; width: 17px; height: 17px; border: 4px solid white; border-radius: 50%; background: #35aa71; }
.doctor-focus-copy { padding: 64px 70px; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; }
.doctor-focus-copy h2 { margin-bottom: 15px; color: white; font-size: 42px; }
.doctor-focus-copy > p { max-width: 570px; margin-bottom: 22px; color: rgba(255,255,255,.72); font-size: 16px; }
.doctor-focus-points { margin-bottom: 28px; display: grid; gap: 9px; color: rgba(255,255,255,.87); font-size: 13px; }
.doctor-focus-points span { display: flex; align-items: center; gap: 8px; }
.doctor-focus-points svg { color: #8be1c4; }
.about-doctor-feature { margin-top: 0; }
.doctor-credentials { width: 100%; margin: 0 0 22px; display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 9px; }
.doctor-credentials span { padding: 11px 13px; display: flex; flex-direction: column; border: 1px solid rgba(255,255,255,.16); border-radius: 10px; background: rgba(255,255,255,.07); }
.doctor-credentials small { color: rgba(255,255,255,.55); font-size: 8px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.doctor-credentials b { overflow-wrap: anywhere; color: white; font-size: 12px; }

.ammai-babai-section { position: relative; max-width: var(--max); min-height: 580px; margin: 0 auto 110px; padding: 70px 75px; display: grid; grid-template-columns: 1.05fr .95fr; align-items: center; gap: 65px; overflow: hidden; border: 1px solid #f0d9df; border-radius: var(--radius-lg); background: linear-gradient(135deg,#fff8f8,#fceef2); }
.ammai-babai-section::before { content: ""; position: absolute; width: 340px; height: 340px; left: -180px; bottom: -220px; border-radius: 50%; background: rgba(236,139,157,.11); }
.ammai-babai-copy { position: relative; z-index: 2; }
.app-kicker { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 20px; color: #b35f76; font-size: 11px; font-weight: 800; letter-spacing: .11em; text-transform: uppercase; }
.app-kicker i { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 9px; background: white; color: #df7891; box-shadow: 0 7px 18px rgba(173,82,104,.1); }
.app-kicker .ammai-logo-mark { width: 46px; height: 46px; overflow: hidden; border-radius: 13px; }
.ammai-logo-mark img { width: 100%; height: 100%; display: block; object-fit: cover; }
.ammai-babai-copy h2 { margin-bottom: 6px; color: #713f50; font-size: clamp(40px,4vw,57px); }
.ammai-babai-copy h3 { margin-bottom: 18px; color: #9a5a6e; font-size: 20px; letter-spacing: -.02em; }
.ammai-babai-copy > p { max-width: 570px; color: #856a72; font-size: 16px; }
.app-features { margin: 25px 0 28px; display: grid; gap: 10px; color: #76545f; font-size: 13px; font-weight: 600; }
.app-features span { display: flex; align-items: center; gap: 9px; }
.app-features svg { color: #dc7890; }
.store-badges { display: flex; flex-wrap: wrap; gap: 10px; }
.store-badge { min-width: 156px; min-height: 52px; padding: 8px 14px; display: flex; align-items: center; gap: 11px; border-radius: 10px; background: #272327; color: white; box-shadow: 0 10px 25px rgba(76,44,55,.13); }
.store-badge > i { font-size: 21px; font-style: normal; }
.store-badge > span { display: flex; flex-direction: column; line-height: 1.15; }
.store-badge small { color: rgba(255,255,255,.7); font-size: 8px; }
.store-badge b { font: 700 15px "Manrope"; }
.app-showcase { position: relative; min-height: 440px; }
.app-glow { position: absolute; width: 390px; height: 390px; left: 50%; top: 50%; transform: translate(-50%,-50%); border-radius: 50%; background: radial-gradient(circle,#f5cbd5 0,#fae5ea 45%,transparent 70%); }
.phone { position: absolute; width: 210px; height: 420px; padding: 8px; border: 3px solid #47343b; border-radius: 34px; background: #31252a; box-shadow: 0 32px 60px rgba(97,54,68,.24); }
.phone::before { content: ""; position: absolute; z-index: 3; width: 75px; height: 19px; left: 50%; top: 7px; transform: translateX(-50%); border-radius: 0 0 12px 12px; background: #31252a; }
.phone-back { left: 4%; top: 30px; transform: rotate(-8deg) scale(.9); opacity: .88; }
.phone-front { z-index: 2; right: 4%; top: 0; transform: rotate(5deg); }
.phone-screen { width: 100%; height: 100%; padding: 38px 16px 18px; overflow: hidden; border-radius: 25px; background: linear-gradient(#fff9fa,#fbeef2); color: #714754; }
.phone-logo { width: 48px; height: 48px; display: grid; place-items: center; margin-bottom: 12px; overflow: hidden; border: 1px solid rgba(211,104,136,.16); border-radius: 15px; background: #fff; box-shadow: 0 7px 17px rgba(154,75,99,.13); }
.phone-logo img { width: 100%; height: 100%; display: block; object-fit: cover; }
.phone-screen > small { color: #b57b8b; font-weight: 700; }
.phone-screen h4 { margin: 7px 0 20px; color: #6f3f4d; font: 800 22px "Manrope"; }
.week-ring { width: 125px; height: 125px; margin: 22px auto; display: grid; place-content: center; text-align: center; border: 9px solid #f0a8b8; border-right-color: #f9dce3; border-radius: 50%; }
.week-ring b { font: 800 35px "Manrope"; }
.week-ring span { color: #b57b8b; font-size: 10px; }
.phone-screen > p { text-align: center; color: #9b6b79; font-size: 10px; }
.app-card { margin-bottom: 11px; padding: 14px; display: flex; flex-direction: column; border-radius: 13px; background: white; box-shadow: 0 8px 20px rgba(130,72,88,.08); }
.app-card b { font-size: 11px; }
.app-card span { color: #ad7a88; font-size: 9px; }
.app-card i { width: 74%; height: 5px; margin-top: 12px; border-radius: 10px; background: linear-gradient(90deg,#e7889e 65%,#f4d7de 65%); }
.app-card.soft { background: #fae1e7; }
.care-banner { max-width: var(--max); margin: 0 auto 100px; padding: 58px 64px; display: flex; align-items: center; justify-content: space-between; gap: 40px; border-radius: var(--radius-lg); background: linear-gradient(120deg,#0d5e59,#087c73); color: white; box-shadow: 0 25px 65px rgba(8,124,115,.2); }
.care-banner h2 { max-width: 700px; margin-bottom: 12px; color: white; }
.care-banner p { margin: 0; color: rgba(255,255,255,.72); font-size: 16px; }

.site-footer { max-width: var(--max); margin: auto; padding: 60px 0 24px; display: grid; grid-template-columns: 2fr 1fr 1.2fr; gap: 70px; border-top: 1px solid var(--line); color: var(--muted); font-size: 13px; }
.footer-brand { margin-bottom: 18px; }
.site-footer > div { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.site-footer > div > b { margin-bottom: 8px; color: var(--ink); font: 700 13px "Manrope"; }
.site-footer p { max-width: 360px; }
.site-footer a:hover { color: var(--teal); }
.site-footer > .footer-bottom { grid-column: 1/-1; width: 100%; padding-top: 22px; display: block; border-top: 1px solid var(--line); }

.page-hero { max-width: 900px; margin: auto; padding: 100px 20px 80px; text-align: center; }
.page-hero h1 { margin-bottom: 24px; }
.page-hero p { max-width: 750px; margin: auto; color: var(--muted); font-size: 19px; line-height: 1.7; }
.page-hero.compact { padding-bottom: 58px; }
.story-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: 100px; border-top: 1px solid var(--line); }
.story-grid p { color: var(--muted); font-size: 17px; line-height: 1.8; }
.values { padding-top: 0; display: grid; grid-template-columns: repeat(3,1fr); gap: 20px; }
.values article { padding: 32px; background: white; border: 1px solid var(--line); border-radius: var(--radius); }
.values svg { color: var(--teal); }
.values h3 { margin-top: 24px; }
.values p { color: var(--muted); }
.medical-note { max-width: var(--max); margin: 0 auto 100px; padding: 26px 30px; display: flex; gap: 18px; border-radius: var(--radius); background: var(--coral-light); color: #815247; }
.medical-note svg { color: var(--coral); }
.medical-note b { color: #70443b; }
.medical-note p { margin: 5px 0 0; }
.legal-page { max-width: 860px; margin: 0 auto 100px; padding: 45px 55px; }
.legal-page h2 { margin: 35px 0 10px; font-size: 22px; }
.legal-page h2:first-child { margin-top: 0; }
.legal-page p { color: var(--muted); font-size: 15px; line-height: 1.8; }
.legal-page a, .check-line a { color: var(--teal); font-weight: 700; }
.legal-page ul { margin: 0 0 24px; padding-left: 22px; color: var(--muted); }
.legal-page li { margin-bottom: 10px; padding-left: 4px; line-height: 1.75; }
.legal-page li::marker { color: var(--teal); }
.legal-page li b { color: var(--ink); }
.legal-summary { margin-bottom: 34px; padding: 20px 22px; border: 1px solid #cce3dc; border-radius: 13px; background: var(--mint); }
.legal-summary b { display: block; margin-bottom: 4px; color: var(--ink); font-family: "Manrope",sans-serif; }
.legal-summary p { margin: 0; font-size: 13px; }
.legal-hero h1 { font-size: clamp(43px,5vw,66px); }

.contact-layout { max-width: 1000px; margin: 0 auto 100px; display: grid; grid-template-columns: .8fr 1.2fr; gap: 70px; }
.contact-details { display: flex; flex-direction: column; gap: 18px; }
.contact-item { padding: 21px; display: flex; align-items: flex-start; gap: 15px; border-bottom: 1px solid var(--line); }
.contact-item > svg { color: var(--teal); }
.contact-item span { display: flex; flex-direction: column; gap: 4px; }
.contact-item b { color: var(--ink); }
.contact-item small, .contact-item a { color: var(--muted); }
.contact-doctor-card { padding: 25px; display: flex; gap: 16px; border-radius: var(--radius); background: linear-gradient(135deg,var(--ink),var(--teal-dark)); color: white; box-shadow: var(--shadow-lg); }
.contact-doctor-card > span { width: 54px; height: 54px; flex: 0 0 auto; display: grid; place-items: center; border-radius: 15px; background: rgba(255,255,255,.12); }
.contact-doctor-card small { color: rgba(255,255,255,.6); font-size: 9px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.contact-doctor-card h2 { margin: 3px 0 8px; color: white; font-size: 22px; }
.contact-doctor-card p { margin: 0; color: rgba(255,255,255,.7); font-size: 12px; }
.contact-item.emergency { border: 1px solid #f0d5ce; border-radius: 12px; background: var(--coral-light); }
.contact-item.emergency > svg { color: var(--coral); }
.contact-form-heading { margin-bottom: 25px; }

.card { background: white; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.form-card { padding: 30px; }
.form-card h2 { margin-bottom: 24px; font-size: 24px; }
.field { display: block; margin-bottom: 17px; color: #5d7471; font-size: 12px; font-weight: 700; }
.field > span:first-child { display: block; margin-bottom: 7px; }
.field b { color: var(--coral); }
.field input, .field select, .field textarea, input, select, textarea {
  width: 100%; min-height: 46px; padding: 11px 13px; border: 1px solid var(--line-dark); border-radius: 9px; outline: 0; background: #fcfdfc; color: var(--text); transition: border .18s, box-shadow .18s;
}
.field textarea, textarea { resize: vertical; line-height: 1.5; }
.field input:focus, .field select:focus, .field textarea:focus, input:focus, select:focus, textarea:focus { border-color: var(--teal); box-shadow: 0 0 0 3px rgba(8,124,115,.1); }
.field input:disabled { background: #f1f4f2; color: var(--muted); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 13px; }
.field-help { margin: -8px 0 18px; color: var(--muted); font-size: 11px; }
.check-line { display: flex; gap: 9px; align-items: flex-start; margin-bottom: 20px; color: var(--muted); font-size: 12px; }
.check-line input { width: auto; min-height: 0; margin-top: 3px; accent-color: var(--teal); }
.form-between { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 20px; font-size: 12px; }
.form-between .check-line { margin: 0; }
.form-between a { color: var(--teal); font-weight: 700; }

.auth-page .site-header, .auth-page .site-footer { display: none; }
.auth-shell { min-height: 100vh; display: grid; grid-template-columns: .9fr 1.1fr; }
.auth-intro { position: relative; overflow: hidden; padding: 70px max(55px,calc((100vw - 1180px)/2)); display: flex; flex-direction: column; justify-content: center; background: linear-gradient(145deg,#0c5c57,#087c73); color: white; }
.auth-intro::before, .auth-intro::after { content: ""; position: absolute; border: 1px solid rgba(255,255,255,.09); border-radius: 50%; }
.auth-intro::before { width: 560px; height: 560px; right: -290px; top: -180px; }
.auth-intro::after { width: 350px; height: 350px; left: -160px; bottom: -180px; }
.auth-brand { position: absolute; top: 38px; left: max(55px,calc((100vw - 1180px)/2)); }
.auth-brand b { color: white; }.auth-brand small { color: rgba(255,255,255,.62); }
.auth-intro h1 { max-width: 600px; color: white; font-size: clamp(42px,4.4vw,65px); }
.auth-intro > p { max-width: 560px; color: rgba(255,255,255,.72); font-size: 17px; }
.auth-points { display: flex; flex-direction: column; gap: 13px; margin-top: 28px; color: rgba(255,255,255,.82); font-size: 13px; }
.auth-points span { display: flex; align-items: center; gap: 10px; }
.auth-intro blockquote { margin: 45px 0 0; padding-left: 20px; border-left: 2px solid var(--coral); color: rgba(255,255,255,.78); font: 600 19px/1.5 "Manrope"; }
.auth-form-wrap { padding: 70px 7vw; display: grid; place-items: center; background: #fdfcf9; }
.auth-form { width: min(540px,100%); }
.login-form { width: min(430px,100%); }
.form-heading { margin-bottom: 30px; }
.form-heading > span { color: var(--teal); font-size: 10px; font-weight: 800; letter-spacing: .18em; text-transform: uppercase; }
.form-heading h2 { margin: 8px 0 8px; font-size: 34px; }
.form-heading p { color: var(--muted); font-size: 13px; }
.form-heading a { color: var(--teal); font-weight: 700; }
.secure-caption { margin: 18px 0 0; display: flex; align-items: center; justify-content: center; gap: 6px; color: var(--muted); font-size: 10px; }
.minimal-page .site-footer { display: none; }
.centered-page { min-height: calc(100vh - 80px); max-width: 600px; margin: auto; padding: 90px 20px; text-align: center; }
.centered-page h1 { margin: 10px 0 18px; font-size: 43px; }
.centered-page > p { color: var(--muted); font-size: 16px; }
.verification-icon { width: 66px; height: 66px; margin: 0 auto 24px; display: grid; place-items: center; border-radius: 20px; background: var(--teal-light); color: var(--teal); }
.narrow-form { max-width: 430px; margin: 30px auto 18px; padding: 26px; text-align: left; }
.otp-input { height: 64px; margin-bottom: 18px; text-align: center; font: 700 28px "Manrope"; letter-spacing: .45em; }
.resend { margin-top: 12px; }
.error-code { color: var(--coral); font: 800 70px "Manrope"; }

.doctor-directory { max-width: var(--max); margin: 0 auto 100px; display: grid; grid-template-columns: 1.5fr .72fr; gap: 25px; align-items: start; }
.doctor-list { display: flex; flex-direction: column; gap: 16px; }
.doctor-card { padding: 28px; border: 1px solid var(--line); border-radius: var(--radius); background: white; box-shadow: var(--shadow-sm); }
.doctor-summary { display: flex; gap: 17px; align-items: center; }
.doctor-summary h2 { margin: 5px 0 2px; font-size: 23px; }
.doctor-summary p { margin: 0; color: var(--teal); font-size: 13px; font-weight: 700; }
.doctor-summary small { color: var(--muted); font-size: 10px; }
.online-line { display: flex; align-items: center; gap: 6px; color: var(--muted); font-size: 9px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; }
.online-line i { width: 7px; height: 7px; border-radius: 50%; background: #b9c6c3; }
.online-line i.online { background: #33a86f; box-shadow: 0 0 0 4px #e3f4eb; }
.doctor-bio { margin: 22px 0; color: var(--muted); }
.public-doctor-details { margin: 22px 0 0; display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 9px; }
.public-doctor-details span { padding: 12px 14px; display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: 10px; background: var(--mint); }
.public-doctor-details small { color: var(--muted); font-size: 8px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.public-doctor-details b { overflow-wrap: anywhere; color: var(--ink); font-size: 12px; }
.package-heading { margin: 30px 0 14px; }
.package-heading > p { margin: 3px 0 0; color: var(--muted); font-size: 12px; }
.featured-doctor-card .package-option p { margin: 1px 0 0; color: var(--muted); font-size: 10px; }
.avatar { width: 43px; height: 43px; flex: 0 0 auto; display: inline-grid; place-items: center; border-radius: 13px; background: var(--teal-light); color: var(--teal); font: 800 12px "Manrope"; }
.avatar-sm { width: 31px; height: 31px; border-radius: 9px; font-size: 9px; }
.avatar-lg { width: 67px; height: 67px; border-radius: 20px; font-size: 17px; }
.package-list { display: flex; flex-direction: column; gap: 8px; }
.package-option { padding: 14px 16px; display: flex; align-items: center; justify-content: space-between; gap: 20px; border: 1px solid var(--line); border-radius: 11px; background: #fbfdfc; }
.package-option > div { display: flex; flex-direction: column; gap: 4px; }
.package-option > div:last-child { flex-direction: row; align-items: center; gap: 14px; }
.package-option small { display: flex; align-items: center; gap: 5px; color: var(--muted); }
.package-option strong { color: var(--ink); }
.booking-sidebar { position: sticky; top: 100px; padding: 26px; }
.booking-sidebar h2 { font-size: 25px; }
.booking-sidebar > p { color: var(--muted); }
.fine-print { margin: 15px 0 0; display: flex; align-items: center; justify-content: center; gap: 5px; color: var(--muted); font-size: 10px; }

.dashboard-page { background: #f6f8f6; }
.dashboard-shell { max-width: var(--max); margin: auto; padding: 56px 0 95px; }
.dashboard-head { margin-bottom: 30px; display: flex; align-items: end; justify-content: space-between; gap: 25px; }
.dashboard-head h1 { margin: 0 0 7px; font-size: 43px; }
.dashboard-head p { margin: 0; color: var(--muted); }
.metric-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 14px; margin-bottom: 30px; }
.metric-grid.admin-metrics { grid-template-columns: repeat(4,1fr); }
.metric-grid article { min-height: 112px; padding: 22px; display: flex; align-items: center; gap: 16px; border: 1px solid var(--line); border-radius: 14px; background: white; box-shadow: var(--shadow-sm); }
.metric-icon { width: 45px; height: 45px; display: grid; place-items: center; border-radius: 13px; }
.metric-icon.teal { background: var(--teal-light); color: var(--teal); }
.metric-icon.blue { background: var(--blue-light); color: var(--blue); }
.metric-icon.coral { background: var(--coral-light); color: var(--coral); }
.metric-icon.violet { background: #f0ecfa; color: var(--violet); }
.metric-grid article > div { display: flex; flex-direction: column; }
.metric-grid small { color: var(--muted); font-size: 11px; }
.metric-grid strong { color: var(--ink); font: 800 26px "Manrope"; letter-spacing: -.04em; }
.metric-grid em { color: var(--muted); font-size: 9px; font-style: normal; }
.next-consultation { margin-bottom: 30px; padding: 28px 32px; display: grid; grid-template-columns: 1fr auto auto; align-items: center; gap: 25px; border-radius: var(--radius); background: linear-gradient(120deg,var(--ink),var(--teal-dark)); color: white; box-shadow: var(--shadow-lg); }
.next-consultation h2 { margin: 0 0 5px; color: white; font-size: 26px; }
.next-consultation p { margin: 0; color: rgba(255,255,255,.65); }
.dashboard-columns { display: grid; grid-template-columns: 1.55fr .7fr; gap: 24px; align-items: start; }
.doctor-columns { grid-template-columns: 1.35fr .8fr; }
.section-title { min-height: 38px; display: flex; align-items: flex-start; justify-content: space-between; gap: 15px; }
.section-title h2 { margin-bottom: 5px; font-size: 21px; }
.section-title p { margin: 0; color: var(--muted); font-size: 12px; }
.section-title > a, .section-title > span { color: var(--teal); font-size: 11px; font-weight: 700; }
.booking-card { margin-bottom: 9px; padding: 14px 15px; display: flex; align-items: center; gap: 13px; border: 1px solid var(--line); border-radius: 12px; background: white; transition: border .18s, transform .18s, box-shadow .18s; }
.booking-card:hover { border-color: #afd0c8; transform: translateY(-1px); box-shadow: var(--shadow-sm); }
.booking-copy { min-width: 0; flex: 1; display: flex; flex-direction: column; }
.booking-copy strong { color: var(--ink); }
.booking-copy small { overflow: hidden; color: var(--muted); font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.card-arrow { color: var(--teal); }
.pill { display: inline-flex; align-items: center; justify-content: center; min-height: 24px; padding: 0 9px; border-radius: 50px; background: #edf1ef; color: var(--muted); font-size: 9px; font-weight: 800; letter-spacing: .04em; white-space: nowrap; text-transform: uppercase; }
.pill-pending { background: var(--warning-light); color: var(--warning); }
.pill-confirmed, .pill-active, .pill-paid, .pill-completed { background: var(--success-light); color: var(--success); }
.pill-expired, .pill-cancelled, .pill-rejected, .pill-refunded { background: var(--danger-light); color: var(--danger); }
.care-tip { padding: 28px; }
.tip-art { width: 58px; height: 58px; display: grid; place-items: center; border-radius: 18px; background: var(--coral-light); color: var(--coral); }
.care-tip h3 { margin-top: 25px; }
.care-tip p { color: var(--muted); }
.care-tip a { display: flex; align-items: center; gap: 6px; color: var(--teal); font-size: 12px; font-weight: 700; }
.past-section, .package-section { margin-top: 42px; }
.empty-state { padding: 50px 25px; text-align: center; border: 1px dashed var(--line-dark); border-radius: var(--radius); background: rgba(255,255,255,.45); color: var(--muted); }
.empty-state > svg { color: var(--teal); }
.empty-state h3 { margin: 17px 0 7px; }
.empty-state p { margin-bottom: 18px; }
.earnings-card { min-height: 330px; padding: 25px; }
.mini-chart { height: 220px; padding-top: 30px; display: flex; align-items: end; justify-content: space-around; gap: 12px; border-bottom: 1px solid var(--line); }
.mini-chart > div { height: 100%; flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: end; gap: 8px; }
.mini-chart > div span { width: min(30px,80%); min-height: 8px; border-radius: 8px 8px 2px 2px; background: linear-gradient(var(--teal),#7fc7ba); }
.mini-chart small { color: var(--muted); font-size: 9px; }
.package-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 14px; }
.package-card { padding: 22px; display: flex; flex-direction: column; gap: 16px; }
.package-card h3 { margin: 15px 0 5px; }
.package-card p { color: var(--muted); font-size: 12px; }
.package-card > strong { font: 800 20px "Manrope"; color: var(--ink); }
.package-meta { display: flex; flex-direction: column; gap: 5px; color: var(--muted); font-size: 11px; }
.package-meta span { display: flex; align-items: center; gap: 5px; }

.dialog { width: min(550px,calc(100vw - 28px)); max-height: 90vh; padding: 0; overflow: auto; border: 0; border-radius: 18px; box-shadow: 0 35px 120px rgba(15,55,50,.3); }
.dialog::backdrop { background: rgba(15,39,37,.58); backdrop-filter: blur(4px); }
.dialog > form { padding: 0 30px 30px; }
.dialog-wide { width: min(720px,calc(100vw - 28px)); }
.dialog-head { padding: 26px 30px 15px; display: flex; justify-content: space-between; }
.dialog-head h2 { margin: 0; font-size: 25px; }
.dialog-head button { width: 35px; height: 35px; display: grid; place-items: center; border: 0; border-radius: 9px; background: #f0f4f2; cursor: pointer; }
.method-checks { display: grid; grid-template-columns: repeat(3,1fr); gap: 8px; }
.method-checks label { padding: 11px; display: flex; align-items: center; gap: 7px; border: 1px solid var(--line); border-radius: 9px; font-weight: 600; }
.method-checks input { width: auto; min-height: 0; accent-color: var(--teal); }

.admin-table-card, .support-card { margin-top: 20px; padding: 25px; }
.maintenance-control { margin: -5px 0 24px; padding: 20px 22px; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 16px; border: 1px solid #cce1db; border-radius: 14px; background: linear-gradient(120deg,#fff,#f2faf7); box-shadow: var(--shadow-sm); }
.maintenance-control.on { border-color: #ecc8c1; background: linear-gradient(120deg,#fff,#fff1ed); }
.maintenance-control-icon { width: 50px; height: 50px; display: grid; place-items: center; border-radius: 14px; background: var(--teal-light); color: var(--teal); }
.maintenance-control.on .maintenance-control-icon { background: var(--danger-light); color: var(--danger); }
.maintenance-control-label { color: var(--muted); font-size: 9px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.maintenance-control h2 { margin: 1px 0 2px; font-size: 19px; }
.maintenance-control p { margin: 0; color: var(--muted); font-size: 12px; }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
th { padding: 12px; color: var(--muted); font-size: 9px; letter-spacing: .1em; text-align: left; text-transform: uppercase; }
td { padding: 13px 12px; border-top: 1px solid var(--line); font-size: 12px; }
.table-person { display: flex; align-items: center; gap: 10px; }
.table-person > span:last-child { display: flex; flex-direction: column; }
.table-person small, td small { color: var(--muted); }
.support-message { padding: 18px 0; display: flex; justify-content: space-between; gap: 25px; border-top: 1px solid var(--line); }
.support-message > div { min-width: 0; }
.support-message small { display: block; margin-top: 3px; color: var(--muted); }
.support-message p { margin: 10px 0 0; color: #536966; }

.consultation-body { background: #f3f6f4; }
.consultation-page { max-width: var(--max); margin: auto; padding: 38px 0 85px; }
.consult-head { margin-bottom: 22px; display: grid; grid-template-columns: 1fr auto; align-items: end; }
.consult-head .back-link { grid-column: 1/-1; margin-bottom: 20px; color: var(--muted); font-size: 12px; }
.consult-head h1 { margin: 0 0 5px; font-size: 35px; }
.consult-head p { margin: 0; color: var(--muted); }
.consult-grid { display: grid; grid-template-columns: 1.55fr .62fr; gap: 20px; align-items: start; }
.consult-room { overflow: hidden; }
.room-toolbar { padding: 16px 18px; display: flex; align-items: center; justify-content: space-between; gap: 20px; border-bottom: 1px solid var(--line); }
.room-toolbar > div:first-child { display: flex; align-items: center; gap: 11px; }
.room-toolbar > div:first-child > span:last-child { display: flex; flex-direction: column; }
.room-toolbar small { color: var(--muted); font-size: 10px; }
.call-buttons { display: flex; gap: 7px; }
.call-buttons button { min-height: 36px; padding: 0 11px; display: flex; align-items: center; gap: 6px; border: 1px solid var(--line); border-radius: 9px; background: white; color: var(--teal); cursor: pointer; font-size: 11px; font-weight: 700; }
.call-buttons button:hover { background: var(--mint); }
.call-buttons button:disabled { opacity: .4; cursor: not-allowed; }
.call-buttons .end-call { background: var(--danger); border-color: var(--danger); color: white; }
.call-buttons .end-call[hidden] { display: none; }
.incoming-call { margin: 12px 16px 0; padding: 13px 15px; display: flex; align-items: center; justify-content: space-between; border-radius: 10px; background: var(--teal-light); }
.incoming-call[hidden] { display: none; }
.voice-call-card { min-height: 330px; padding: 45px 24px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 25px; background: radial-gradient(circle at 50% 40%, #23534e 0, #142725 62%); color: white; text-align: center; }
.voice-call-card[hidden] { display: none; }
.voice-call-avatar { position: relative; width: 96px; height: 96px; display: grid; place-items: center; border-radius: 50%; background: linear-gradient(145deg,#29a995,#0c7468); box-shadow: 0 18px 45px rgba(0,0,0,.25); }
.voice-call-avatar svg { position: relative; z-index: 2; }
.voice-call-avatar i { position: absolute; inset: -13px; border: 1px solid rgba(123,231,213,.28); border-radius: inherit; animation: call-pulse 2s ease-out infinite; }
.voice-call-avatar i:last-child { animation-delay: 1s; }
.voice-call-card > div:last-child { display: flex; flex-direction: column; align-items: center; }
.voice-call-card span { margin-bottom: 5px; color: #9bd5cb; font-size: 10px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.voice-call-card strong { font-family: "Manrope",sans-serif; font-size: 24px; }
.voice-call-card small { margin-top: 8px; color: #d9ece8; font-size: 13px; font-variant-numeric: tabular-nums; }
@keyframes call-pulse { 0% { opacity: .8; transform: scale(.86); } 80%,100% { opacity: 0; transform: scale(1.35); } }
.video-stage { position: relative; display: grid; grid-template-columns: 1fr; overflow: hidden; background: #142725; }
.video-tile { position: relative; min-height: 360px; }
.video-tile[hidden] { display: none; }
.video-tile video { width: 100%; height: 100%; display: block; background: #142725; }
.video-tile.remote { width: 100%; height: clamp(320px, 46vw, 580px); min-height: 0; }
.video-tile.remote video { object-fit: contain; }
.video-tile span { position: absolute; bottom: 10px; left: 10px; padding: 4px 8px; border-radius: 6px; background: rgba(0,0,0,.5); color: white; font-size: 10px; }
.video-tile.local { position: absolute; z-index: 2; right: 12px; bottom: 12px; width: 150px; min-height: 100px; height: 100px; border: 2px solid white; border-radius: 10px; overflow: hidden; }
.video-tile.local video { object-fit: cover; }
.room-notice { margin: 22px; padding: 19px; display: flex; gap: 14px; border-radius: 12px; background: var(--warning-light); color: var(--warning); }
.room-notice b { color: #80581d; }
.room-notice p { margin: 3px 0 0; font-size: 12px; }
.chat-panel { border-top: 1px solid var(--line); }
.chat-title { padding: 15px 18px; display: flex; align-items: center; justify-content: space-between; }
.chat-title b { display: flex; align-items: center; gap: 7px; color: var(--ink); font-size: 13px; }
.chat-title span { color: var(--muted); font-size: 9px; }
.chat-messages { height: 390px; padding: 18px; overflow-y: auto; background: #fbfcfb; }
.chat-empty { padding: 80px 20px; text-align: center; color: var(--muted); font-size: 12px; }
.chat-message { max-width: 73%; margin-bottom: 13px; display: flex; flex-direction: column; align-items: flex-start; }
.chat-message.mine { margin-left: auto; align-items: flex-end; }
.chat-message > span { margin-bottom: 3px; color: var(--muted); font-size: 9px; }
.chat-message p { margin: 0; padding: 10px 13px; border-radius: 4px 12px 12px 12px; background: var(--teal-light); font-size: 13px; white-space: pre-wrap; }
.chat-message.mine p { border-radius: 12px 4px 12px 12px; background: var(--teal); color: white; }
.chat-message small { margin-top: 3px; color: #9aaba8; font-size: 8px; }
.chat-call-event { width: fit-content; max-width: 90%; margin: 5px auto 15px; padding: 10px 15px 10px 10px; display: flex; align-items: center; gap: 10px; border: 1px solid #dce8e5; border-radius: 999px; background: white; color: var(--ink); box-shadow: 0 5px 15px rgba(20,55,50,.05); }
.chat-call-icon { width: 31px; height: 31px; display: grid; place-items: center; flex: 0 0 auto; border-radius: 50%; background: var(--teal-light); color: var(--teal); font-size: 14px; }
.chat-call-event > div { display: flex; flex-direction: column; }
.chat-call-event b { font-size: 11px; }
.chat-call-event small { color: var(--muted); font-size: 9px; }
.chat-compose { padding: 12px; display: flex; gap: 8px; border-top: 1px solid var(--line); }
.chat-compose input { margin: 0; }
.chat-compose button { padding: 0 14px; display: flex; align-items: center; gap: 6px; border: 0; border-radius: 8px; background: var(--teal); color: white; cursor: pointer; font-size: 11px; font-weight: 700; }
.consult-sidebar { display: flex; flex-direction: column; gap: 13px; }
.detail-card, .payment-card, .action-card { padding: 23px; }
.detail-card h2, .payment-card h2, .action-card h2 { font-size: 19px; }
.payment-card h2 { margin-bottom: 17px; }
.payhere-checkout { display: grid; gap: 13px; }
.payhere-brand { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.payhere-brand > span:last-child { color: var(--muted); font-size: 9px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; }
.payhere-wordmark { display: inline-flex; align-items: center; font: 800 17px "Manrope"; letter-spacing: -.05em; }
.payhere-wordmark b:first-child { color: #26384a; }
.payhere-wordmark b:last-child { color: #f28c28; }
.payhere-summary { padding: 15px; display: flex; align-items: center; justify-content: space-between; gap: 15px; border: 1px solid var(--line); border-radius: 11px; background: #f8fbfa; }
.payhere-summary > span { min-width: 0; display: flex; flex-direction: column; }
.payhere-summary small { color: var(--muted); font-size: 8px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.payhere-summary b { overflow: hidden; color: var(--ink); font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.payhere-summary em { color: var(--muted); font-size: 9px; font-style: normal; }
.payhere-summary strong { color: var(--ink); font: 800 15px "Manrope"; white-space: nowrap; }
.payhere-security { display: flex; align-items: center; gap: 7px; color: var(--muted); font-size: 8px; font-weight: 800; }
.payhere-security span { padding: 4px 6px; border: 1px solid var(--line); border-radius: 5px; background: white; }
.payhere-security span:first-child { margin-right: auto; border: 0; padding-left: 0; background: transparent; color: var(--success); }
.payhere-button { min-height: 58px; padding: 8px 16px; justify-content: space-between; border: 0; background: linear-gradient(120deg,#0a776f,#075f5a); box-shadow: 0 12px 27px rgba(8,105,97,.2); }
.payhere-button > span:first-child { display: flex; flex-direction: column; align-items: flex-start; gap: 1px; text-align: left; }
.payhere-button b { color: white; font-size: 13px; }
.payhere-button small { color: rgba(255,255,255,.68); font-size: 8px; font-weight: 500; }
.payhere-button > span:last-child { font-size: 23px; }
.payhere-note { margin: -3px 0 0; color: var(--muted); font-size: 9px; text-align: center; }
.consult-countdown { width: max-content; margin-top: 13px; padding: 8px 11px; display: flex; align-items: center; gap: 8px; border: 1px solid #c7ded8; border-radius: 9px; background: white; color: var(--teal); }
.consult-countdown span { display: flex; flex-direction: column; }
.consult-countdown small { color: var(--muted); font-size: 7px; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; }
.consult-countdown b { color: var(--ink); font: 800 11px "Manrope"; }
.consult-countdown.ending { border-color: #edcec7; background: var(--danger-light); color: var(--danger); }
.detail-card dl { margin: 0; }
.detail-card dl div { padding: 12px 0; border-top: 1px solid var(--line); }
.detail-card dt { color: var(--muted); font-size: 9px; text-transform: uppercase; letter-spacing: .08em; }
.detail-card dd { margin: 4px 0 0; color: var(--ink); font-size: 12px; font-weight: 700; }
.bank-details pre { padding: 13px; white-space: pre-wrap; border-radius: 9px; background: var(--mint); color: var(--ink); font: 12px/1.6 "DM Sans"; }
.action-card form { display: grid; gap: 8px; }
.file-link { margin-bottom: 15px; padding: 10px; display: flex; align-items: center; gap: 7px; border-radius: 8px; background: var(--mint); color: var(--teal); font-size: 12px; font-weight: 700; }

.profile-grid { display: grid; grid-template-columns: 1.25fr .75fr; gap: 20px; align-items: start; }
.profile-grid aside { display: grid; gap: 15px; }
.switch-line { padding: 14px; display: flex; gap: 12px; border: 1px solid var(--line); border-radius: 10px; }
.switch-line input { width: auto; accent-color: var(--teal); }
.switch-line span { display: flex; flex-direction: column; }
.switch-line small { color: var(--muted); }
.account-card { padding: 23px; }
.account-card p { display: flex; align-items: center; gap: 8px; color: var(--success); font-size: 12px; }
.account-card > small { color: var(--muted); }
.notification-list { max-width: 820px; }
.notification-item { padding: 17px; display: flex; gap: 14px; border-bottom: 1px solid var(--line); background: white; }
.notification-item:first-child { border-radius: 13px 13px 0 0; }
.notification-item:last-child { border-radius: 0 0 13px 13px; border-bottom: 0; }
.notification-item.unread { background: var(--mint); }
.notification-icon { width: 37px; height: 37px; display: grid; place-items: center; border-radius: 10px; background: var(--teal-light); color: var(--teal); }
.notification-item > span:last-child { flex: 1; }
.notification-item p { margin: 3px 0; color: var(--muted); font-size: 12px; }
.notification-item small { color: #9aaba8; font-size: 9px; }

.maintenance-page { min-height: 100vh; background: #f3f7f5; }
.maintenance-shell { min-height: 100vh; display: grid; grid-template-columns: minmax(420px,610px) 1fr; }
.maintenance-card { padding: clamp(36px,7vw,92px); display: flex; flex-direction: column; justify-content: center; background: white; }
.maintenance-brand { position: absolute; top: 34px; display: inline-flex; align-items: center; gap: 11px; }
.maintenance-brand > span:last-child { display: flex; flex-direction: column; gap: 4px; }
.maintenance-brand b { color: var(--ink); font: 800 17px/1 "Manrope"; letter-spacing: -.04em; }
.maintenance-brand small { color: var(--muted); font-size: 9px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; }
.maintenance-symbol { position: relative; width: 76px; height: 76px; margin-bottom: 27px; display: grid; place-items: center; border-radius: 23px; background: var(--teal-light); color: var(--teal); }
.maintenance-symbol > i { position: absolute; right: -3px; bottom: -3px; width: 19px; height: 19px; border: 4px solid white; border-radius: 50%; background: var(--coral); }
.maintenance-card h1 { max-width: 480px; margin: 12px 0 18px; font-size: clamp(43px,5vw,64px); }
.maintenance-card > p { max-width: 500px; margin-bottom: 25px; color: var(--muted); font-size: 16px; }
.maintenance-status { max-width: 500px; padding: 15px 17px; display: flex; align-items: center; gap: 12px; border: 1px solid #f0d4cb; border-radius: 12px; background: #fff7f4; }
.maintenance-status > i { width: 9px; height: 9px; border-radius: 50%; background: var(--coral); box-shadow: 0 0 0 5px rgba(238,140,114,.15); }
.maintenance-status > span, .maintenance-account > span:last-child { display: flex; flex-direction: column; }
.maintenance-status b { color: var(--ink); font-size: 12px; }
.maintenance-status small, .maintenance-account small { color: var(--muted); font-size: 10px; }
.maintenance-account { max-width: 500px; margin: 20px 0 10px; padding: 13px; display: flex; align-items: center; gap: 11px; border: 1px solid var(--line); border-radius: 11px; }
.maintenance-card > form, .admin-access { max-width: 500px; }
.admin-access { margin-top: 22px; border-top: 1px solid var(--line); }
.admin-access summary { padding: 18px 0; color: var(--teal); cursor: pointer; font-size: 12px; font-weight: 700; }
.admin-access form { padding: 1px 0 5px; }
.maintenance-help { max-width: 500px; margin-top: 19px; color: var(--muted); font-size: 10px; }
.maintenance-help a { color: var(--teal); font-weight: 700; }
.maintenance-flash { max-width: 500px; margin-bottom: 20px; }
.maintenance-art { position: relative; overflow: hidden; display: grid; place-items: center; align-content: center; background: radial-gradient(circle at center,#13877e 0,#076c65 53%,#164d49 100%); color: white; }
.maintenance-art > span { position: relative; z-index: 2; width: 150px; height: 150px; display: grid; place-items: center; border: 1px solid rgba(255,255,255,.2); border-radius: 45px; background: rgba(255,255,255,.1); backdrop-filter: blur(10px); transform: rotate(-5deg); box-shadow: 0 35px 80px rgba(0,0,0,.16); }
.maintenance-art > span svg { transform: rotate(5deg); }
.maintenance-art > p { position: relative; z-index: 2; margin: 28px 0 0; color: rgba(255,255,255,.78); font: 700 13px "Manrope"; letter-spacing: .14em; text-transform: uppercase; }
.maintenance-orbit { position: absolute; border: 1px solid rgba(255,255,255,.13); border-radius: 50%; }
.maintenance-orbit.one { width: 520px; height: 520px; }
.maintenance-orbit.two { width: 760px; height: 760px; }

@media (max-width: 1050px) {
  :root { --max: calc(100vw - 48px); }
  .hero { gap: 30px; }
  .card-secure { left: -15px; }
  .metric-grid.admin-metrics { grid-template-columns: repeat(2,1fr); }
}

@media (max-width: 820px) {
  :root { --max: calc(100vw - 34px); }
  .site-header { height: 70px; padding: 0 17px; }
  .mobile-menu { display: grid; place-items: center; }
  .main-nav { position: absolute; top: 70px; left: 12px; right: 12px; padding: 18px; display: none; align-items: stretch; flex-direction: column; gap: 15px; border: 1px solid var(--line); border-radius: 14px; background: white; box-shadow: var(--shadow-lg); }
  .main-nav.open { display: flex; }
  .hero { padding-top: 55px; grid-template-columns: 1fr; }
  .hero-visual { min-height: 430px; }
  .hero-copy { text-align: center; }
  .hero-copy > p { margin-left: auto; margin-right: auto; }
  .hero-actions, .trust-row { justify-content: center; }
  .logo-strip { padding: 20px; flex-direction: column; gap: 17px; }
  .logo-strip div { width: 100%; justify-content: space-between; gap: 10px; }
  .doctor-trust-strip { align-items: flex-start; flex-direction: column; }
  .trust-features { width: 100%; justify-content: space-between; }
  .steps, .values, .package-grid { grid-template-columns: 1fr; }
  .doctor-focus-card, .ammai-babai-section { grid-template-columns: 1fr; }
  .doctor-focus-visual { min-height: 350px; }
  .doctor-focus-copy { padding: 48px; }
  .ammai-babai-section { padding: 55px 45px; }
  .app-showcase { min-height: 470px; }
  .phone-back { left: 16%; }
  .phone-front { right: 16%; }
  .care-banner { padding: 40px; }
  .site-footer { grid-template-columns: 1fr 1fr; }
  .site-footer > div:first-child, .footer-bottom { grid-column: 1/-1; }
  .story-grid { grid-template-columns: 1fr; gap: 20px; }
  .contact-layout, .doctor-directory, .dashboard-columns, .doctor-columns, .consult-grid, .profile-grid { grid-template-columns: 1fr; }
  .booking-sidebar { position: static; }
  .metric-grid { grid-template-columns: repeat(2,1fr); }
  .patient-metrics article:last-child { grid-column: 1/-1; }
  .next-consultation { grid-template-columns: 1fr auto; }
  .next-consultation .btn { grid-column: 1/-1; }
  .auth-shell { grid-template-columns: 1fr; }
  .auth-intro { min-height: 430px; padding: 100px 45px 55px; }
  .auth-form-wrap { padding: 55px 25px; }
  .auth-brand { left: 45px; }
  .maintenance-shell { grid-template-columns: 1fr; }
  .maintenance-art { display: none; }
}

@media (max-width: 560px) {
  h1 { font-size: 43px; }
  .hero { padding-bottom: 55px; }
  .hero-copy > p { font-size: 16px; }
  .hero-actions { flex-direction: column; }
  .trust-row { flex-wrap: wrap; }
  .doctor-portrait { width: 265px; height: 350px; }
  .orbit-one { width: 360px; height: 360px; }
  .orbit-two { width: 300px; height: 300px; }
  .card-secure { left: 0; }
  .card-methods { right: 0; }
  .doctor-trust-strip { padding: 20px; }
  .trust-features { align-items: flex-start !important; flex-direction: column; gap: 10px !important; }
  .section { padding: 75px 0; }
  .doctor-focus-section, .ammai-babai-section { margin-bottom: 70px; }
  .doctor-focus-copy { padding: 38px 25px; }
  .doctor-focus-copy h2 { font-size: 34px; }
  .ammai-babai-section { padding: 42px 23px; gap: 30px; }
  .store-badges { flex-direction: column; }
  .store-badge { width: 100%; }
  .app-showcase { min-height: 410px; transform: scale(.88); margin: -20px -20px -40px; }
  .phone-back { left: 0; }
  .phone-front { right: 0; }
  .care-banner { margin-bottom: 70px; padding: 34px 25px; flex-direction: column; align-items: flex-start; }
  .site-footer { padding-top: 45px; grid-template-columns: 1fr; }
  .site-footer > div:first-child, .footer-bottom { grid-column: auto; }
  .page-hero { padding-top: 70px; }
  .form-row, .metric-grid, .metric-grid.admin-metrics { grid-template-columns: 1fr; }
  .metric-grid article, .patient-metrics article:last-child { grid-column: auto; }
  .dashboard-shell { padding-top: 36px; }
  .dashboard-head { align-items: flex-start; flex-direction: column; }
  .dashboard-head h1 { font-size: 36px; }
  .next-consultation { grid-template-columns: 1fr; }
  .package-option { align-items: flex-start; flex-direction: column; }
  .package-option > div:last-child { width: 100%; justify-content: space-between; }
  .auth-intro { min-height: 470px; padding: 110px 24px 55px; }
  .auth-brand { left: 24px; }
  .auth-intro h1 { font-size: 42px; }
  .consultation-page { padding-top: 25px; }
  .consult-head { align-items: start; }
  .consult-head h1 { font-size: 29px; }
  .room-toolbar { align-items: flex-start; flex-direction: column; }
  .call-buttons { width: 100%; }
  .call-buttons button { flex: 1; justify-content: center; }
  .call-buttons button span { display: none; }
  .video-tile.remote { height: clamp(280px, 62vh, 520px); }
  .video-tile.local { right: 9px; bottom: 9px; width: 105px; min-height: 140px; height: 140px; }
  .chat-title span { display: none; }
  .chat-message { max-width: 87%; }
  .method-checks { grid-template-columns: 1fr; }
  .doctor-credentials, .public-doctor-details { grid-template-columns: 1fr; }
  .dialog > form { padding-left: 20px; padding-right: 20px; }
  .dialog-head { padding-left: 20px; padding-right: 20px; }
  .maintenance-control { grid-template-columns: auto 1fr; }
  .maintenance-control form { grid-column: 1/-1; }
  .maintenance-control .btn { width: 100%; }
  .maintenance-card { padding: 110px 24px 45px; }
  .maintenance-brand { top: 28px; }
}
