:root {
  color-scheme: dark;
  --colors-primary: #73c2b3;
  --colors-primary-active: #9bd8cc;
  --colors-primary-disabled: #536d68;
  --colors-accent-yellow: #d8c28b;
  --colors-canvas: #111917;
  --colors-surface-soft: #192320;
  --colors-surface-strong: #222f2a;
  --colors-surface-dark: #0c1210;
  --colors-surface-dark-elevated: #151e1a;
  --colors-hairline: rgba(180, 204, 190, .17);
  --colors-hairline-soft: rgba(180, 204, 190, .1);
  --colors-ink: #edf3ee;
  --colors-body: #c0cec4;
  --colors-body-strong: #edf3ee;
  --colors-muted: #9aa99e;
  --colors-muted-soft: #829187;
  --site-blue: #83cbbb;
  --site-blue-dark: #a5dfd2;
  --site-ink: #edf3ee;
  --site-body: #c0cec4;
  --site-muted: #9aa99e;
  --site-canvas: #111917;
  --site-soft: #192320;
  --site-strong: #222f2a;
  --site-line: rgba(180, 204, 190, .17);
  --site-success: #83cbbb;
  --site-danger: #e88c8c;
  --site-glass: rgba(26, 38, 32, .68);
  --site-glass-strong: rgba(20, 30, 25, .84);
  --site-glass-line: rgba(190, 211, 197, .14);
  --site-shadow: 0 24px 70px rgba(0, 0, 0, .32);
  --site-shadow-inset: inset 0 1px 0 rgba(231, 240, 232, .08);
  --ink: var(--site-ink);
  --navy: var(--site-ink);
  --muted: var(--site-body);
  --line: var(--site-line);
  --paper: var(--site-canvas);
  --surface: var(--site-canvas);
  --soft: var(--site-soft);
  --strong: var(--site-strong);
  --coral: #9bd8cc;
  --accent: var(--site-blue);
  --danger: var(--site-danger);
}

/* Final brand overrides intentionally come after legacy component rules. */
.nav-pill-btn, .button-pill-cta, .btn.primary, .button.primary,
button.primary, input[type="submit"], input[type="button"] {
  background:
    linear-gradient(180deg, rgba(255, 244, 228, .18), transparent 48%),
    linear-gradient(135deg, #e88917, #a94b07) !important;
  border-color: rgba(255, 207, 143, .38) !important;
}

.nav-pill-btn:hover, .button-pill-cta:hover, .btn.primary:hover,
.button.primary:hover, button.primary:hover, input[type="submit"]:hover,
input[type="button"]:hover {
  background:
    linear-gradient(180deg, rgba(255, 244, 228, .22), transparent 48%),
    linear-gradient(135deg, #f19a2d, #c9630b) !important;
}

.theme-toggle {
  color: #e5efff !important;
  background:
    linear-gradient(135deg, rgba(65, 94, 81, .72), rgba(30, 48, 40, .88)) !important;
  border-color: rgba(151, 193, 168, .3) !important;
  box-shadow:
    inset 0 1px 0 rgba(232, 243, 235, .12),
    0 8px 24px rgba(0, 0, 0, .26),
    0 0 18px rgba(106, 176, 143, .1) !important;
}

.theme-toggle:hover {
  color: #fff !important;
  border-color: rgba(157, 207, 178, .48) !important;
  background: linear-gradient(135deg, rgba(75, 113, 94, .82), rgba(39, 62, 50, .94)) !important;
}

.theme-toggle:focus-visible {
  outline-color: #9bd8c5 !important;
}

.theme-toggle-icon {
  color: #b4ddc2;
  filter: drop-shadow(0 0 5px rgba(124, 190, 151, .32));
}

html {
  background:
    radial-gradient(ellipse at 8% 4%, rgba(82, 132, 105, .16), transparent 34rem),
    radial-gradient(ellipse at 94% 12%, rgba(147, 155, 111, .1), transparent 32rem),
    radial-gradient(ellipse at 52% 96%, rgba(73, 137, 117, .1), transparent 38rem),
    #0c1210 !important;
  background-attachment: fixed !important;
}

body {
  overflow-x: clip;
  color: var(--site-body) !important;
  background:
    linear-gradient(135deg, rgba(12, 18, 16, .72), rgba(18, 28, 23, .62)),
    transparent !important;
}

body::before {
  background: radial-gradient(circle, rgba(93, 153, 119, .16), transparent 68%);
  opacity: .7;
}

body::after {
  background: radial-gradient(circle, rgba(151, 159, 111, .12), transparent 68%);
  opacity: .7;
}

h1, h2, h3, h4, h5, h6,
.brand-title, .nav-bar, .topbar, .site-header, .page-header,
th, strong, dt, summary {
  color: var(--site-ink) !important;
}

p, li, label, dd, .lead, .small, .muted, .helper, .builder-note,
.footer, .section-intro, .eyebrow {
  color: var(--site-body) !important;
}

a, a:hover, a:visited {
  color: var(--site-blue);
}

header, .topbar, .site-header, .page-header,
.nav-bar, .nav-container {
  border-color: var(--site-glass-line) !important;
}

.topbar, .site-header, .page-header, .nav-bar {
  background:
    linear-gradient(135deg, rgba(32, 47, 39, .84), rgba(18, 29, 23, .72)),
    rgba(15, 24, 19, .7) !important;
  border-color: rgba(180, 204, 190, .16) !important;
  box-shadow:
    inset 0 1px 0 rgba(231, 240, 232, .1),
    0 18px 48px rgba(0, 0, 0, .28),
    0 0 24px rgba(104, 164, 126, .1),
    inset 0 -1px 0 rgba(125, 168, 139, .1) !important;
}

.topbar::before, .site-header::before, .page-header::before,
.nav-bar::before {
  background: linear-gradient(90deg, transparent, rgba(187, 219, 195, .48), transparent);
}

.topbar .status, .site-header .status, .page-header .status,
.status, .badge, .pill {
  color: var(--site-ink) !important;
  background: rgba(145, 183, 153, .1) !important;
  border-color: rgba(180, 204, 190, .18) !important;
}

.card, .panel, .surface, .content-card, article, section.card,
.glass, .glass-surface, .mode-card, .medication-builder,
.quick-actions, .verification, .india-references, .form-help,
.faq-item, .faq-card, .trust-card, .service-card, .credential,
.timing-banner, .notice, .scope-band, .vitals-section,
.verification-band, .portrait-badge-overlay {
  color: var(--site-body) !important;
  background:
    linear-gradient(135deg, rgba(34, 49, 41, .82), rgba(20, 31, 25, .72)),
    rgba(17, 26, 21, .76) !important;
  border-color: rgba(180, 204, 190, .16) !important;
  box-shadow:
    inset 0 1px 0 rgba(231, 240, 232, .08),
    0 18px 44px rgba(0, 0, 0, .24),
    0 0 24px rgba(99, 154, 119, .1) !important;
  backdrop-filter: saturate(135%) blur(20px);
  -webkit-backdrop-filter: saturate(135%) blur(20px);
}

.card::before, .panel::before, .surface::before,
.content-card::before, article::before, section.card::before,
footer.footer-light::before, footer.footer:not(.footer-light)::before {
  background: linear-gradient(90deg, transparent, rgba(197, 222, 202, .34), transparent);
  border-color: rgba(190, 211, 197, .14);
  box-shadow: inset 0 1px 1px rgba(231, 240, 232, .06);
}

.care-points li {
  color: var(--site-ink) !important;
  background: linear-gradient(135deg, rgba(37, 54, 44, .94), rgba(22, 34, 27, .9)) !important;
  border-color: rgba(180, 204, 190, .2) !important;
}

.care-points li::before {
  color: #a8d7ba !important;
  background: rgba(115, 176, 139, .14) !important;
}

button, .button, .btn, .continue, .nav-pill-btn, .button-pill-cta,
input[type="submit"], input[type="button"] {
  border-color: rgba(170, 207, 184, .32) !important;
  background:
    linear-gradient(180deg, rgba(235, 247, 238, .16), transparent 48%),
    linear-gradient(135deg, #347d6c, #235b50) !important;
  box-shadow:
    0 10px 24px rgba(44, 111, 88, .2),
    0 0 16px rgba(87, 151, 117, .08),
    inset 0 1px 0 rgba(238, 246, 239, .28),
    inset 0 -1px 0 rgba(12, 61, 49, .28);
}

button:hover, .button:hover, .btn:hover, .continue:hover,
.nav-pill-btn:hover, .button-pill-cta:hover,
input[type="submit"]:hover, input[type="button"]:hover {
  background:
    linear-gradient(180deg, rgba(237, 246, 239, .2), transparent 48%),
    linear-gradient(135deg, #438c79, #2d6a5a) !important;
  box-shadow:
    0 13px 28px rgba(44, 111, 88, .24),
    0 0 20px rgba(87, 151, 117, .1),
    inset 0 1px 0 rgba(245, 250, 246, .38);
}

button.secondary, .button.secondary, .btn.secondary, .button-pill-secondary,
.secondary, .button-pill-secondary, .continue-consult-btn,
.google-signin-btn, .patient-login-icon, .modal-close-btn,
.sex-buttons button {
  color: var(--site-ink) !important;
  background:
    linear-gradient(135deg, rgba(62, 82, 68, .52), rgba(31, 47, 37, .72)) !important;
  border-color: rgba(180, 204, 190, .2) !important;
  box-shadow:
    inset 0 1px 0 rgba(231, 240, 232, .1),
    0 10px 24px rgba(0, 0, 0, .2) !important;
}

.nav-pill-primary, .button-pill-cta, .button.primary, .btn.primary {
  color: #fff !important;
  text-shadow: none !important;
}

button.secondary:hover, .button.secondary:hover, .btn.secondary:hover,
.button-pill-secondary:hover, .secondary:hover,
.continue-consult-btn:hover, .google-signin-btn:hover,
.patient-login-icon:hover, .modal-close-btn:hover,
.sex-buttons button:hover {
  color: #fff !important;
  border-color: rgba(158, 204, 174, .42) !important;
  background: linear-gradient(135deg, rgba(73, 105, 82, .78), rgba(39, 62, 47, .86)) !important;
}

input, textarea, select {
  color: #edf3ee !important;
  background: rgba(14, 22, 18, .76) !important;
  border-color: rgba(180, 204, 190, .2) !important;
  box-shadow: inset 0 1px 0 rgba(231, 240, 232, .06);
}

input::placeholder, textarea::placeholder {
  color: #9aa99e !important;
  opacity: 1;
}

input:focus, textarea:focus, select:focus {
  outline-color: rgba(131, 203, 187, .3) !important;
  border-color: #83cbbb !important;
}

input:hover, textarea:hover, select:hover {
  background: rgba(28, 42, 34, .9) !important;
  border-color: rgba(131, 203, 187, .36) !important;
}

select option {
  color: #edf3ee;
  background: #151e1a;
}

table, th, td {
  color: var(--site-body);
  border-color: var(--site-line) !important;
}

th {
  background: rgba(131, 203, 187, .1) !important;
}

footer, footer.footer-light, footer.footer:not(.footer-light) {
  color: var(--site-body) !important;
  background:
    linear-gradient(135deg, rgba(31, 46, 37, .86), rgba(15, 25, 19, .82)),
    rgba(14, 23, 17, .8) !important;
  border-color: rgba(180, 204, 190, .16) !important;
  box-shadow:
    inset 0 1px 0 rgba(231, 240, 232, .08),
    0 16px 40px rgba(0, 0, 0, .24),
    0 0 22px rgba(99, 154, 119, .08) !important;
}

.modal-overlay {
  background:   rgba(4, 9, 6, .78) !important;
}

.login-modal-card {
  color: var(--site-body) !important;
  background:
    linear-gradient(135deg, rgba(38, 54, 44, .96), rgba(18, 29, 22, .94)) !important;
  border-color: rgba(180, 204, 190, .2) !important;
  box-shadow:
    inset 0 1px 0 rgba(231, 240, 232, .1),
    0 30px 80px rgba(0, 0, 0, .5),
    0 0 24px rgba(99, 154, 119, .08) !important;
}

.patient-video-tool, .patient-video-tool:hover,
.patient-video-tool:focus-visible {
  color: #fff !important;
  background: rgba(10, 16, 13, .82) !important;
}

body.patient-view #paymentQrPanel {
  color: #edf3ee !important;
  background: rgba(24, 36, 29, .96) !important;
  border-color: rgba(180, 204, 190, .2) !important;
  box-shadow: 0 10px 28px rgba(0, 0, 0, .28), inset 0 1px 0 rgba(231, 240, 232, .08) !important;
  backdrop-filter: blur(18px) saturate(135%);
  -webkit-backdrop-filter: blur(18px) saturate(135%);
}

body.patient-view #paymentQrPanel img {
  background: #fff !important;
  border-color: #dee1e6 !important;
}

body.patient-view #paymentQrPanel,
body.patient-view #paymentQrPanel strong,
body.patient-view #paymentQrPanel .payment-panel-heading strong {
  color: #edf3ee !important;
}

body.patient-view #paymentQrPanel #paymentQrTitle {
  color: #83cbbb !important;
}

body.patient-view #paymentQrPanel .payment-panel-content > span,
body.patient-view #paymentQrPanel .payment-panel-content > .helper {
  color: #c0cec4 !important;
}

body.patient-view #paymentQrPanel .payment-panel-content > span strong {
  color: #a5dfd2 !important;
  background: rgba(131, 203, 187, .14) !important;
}

body.patient-view #paymentQrPanel .payment-panel-toggle {
  color: #d9efe9 !important;
  background: linear-gradient(145deg, #263b37, #172521) !important;
  border-color: rgba(131, 203, 187, .28) !important;
  box-shadow: inset 0 1px 0 rgba(231, 240, 232, .12), 0 4px 12px rgba(0, 0, 0, .28) !important;
}

body.patient-view #paymentQrPanel .payment-panel-toggle:hover,
body.patient-view #paymentQrPanel .payment-panel-toggle:focus-visible {
  color: #fff !important;
  background: linear-gradient(145deg, #31534a, #1c3932) !important;
  border-color: rgba(155, 216, 204, .5) !important;
}

body.patient-view #paymentQrPanel .upi-app-link {
  color: #fff !important;
  background: #347d6c !important;
  border-color: rgba(155, 216, 204, .42) !important;
  box-shadow: 0 8px 20px rgba(23, 88, 74, .3), inset 0 1px 0 rgba(232, 243, 235, .3) !important;
}

body.patient-view #paymentQrPanel .upi-app-link:hover,
body.patient-view #paymentQrPanel .upi-app-link:focus-visible {
  color: #fff !important;
  background: #438c79 !important;
  border-color: rgba(174, 231, 218, .62) !important;
}

body.patient-view #clearSensitiveDetailsButton,
body.patient-view #clearSensitiveDetailsButton:hover:not(:disabled) {
  color: #fff !important;
  background: #b42332 !important;
  border-color: #ef6674 !important;
  box-shadow: none !important;
}

@media (min-width: 769px) {
  body.patient-view #paymentQrPanel {
    position: fixed;
    z-index: 9;
    top: 108px;
    right: 0;
    left: auto;
    bottom: auto;
    transform: none;
    display: grid;
    grid-template-columns: 1fr;
    width: 220px;
    max-width: min(220px, calc(100vw - 16px));
    min-width: 0;
    margin: 0;
    padding: 10px 10px 12px;
    gap: 6px;
    border-right: 0;
    border-radius: 16px 0 0 16px;
    text-align: center;
    transition: width .2s ease, transform .2s ease, padding .2s ease;
  }

  /* Cosmic saffron dark mode: midnight navy canvas with orange focus and
     violet space-glow highlights. */
  :root {
    --colors-primary: #ffad45;
    --colors-primary-active: #ffc477;
    --colors-primary-disabled: #8b5a2c;
    --colors-accent-yellow: #ffb347;
    --colors-canvas: #0b1020;
    --colors-surface-soft: #151b31;
    --colors-surface-strong: #202743;
    --colors-surface-dark: #070b16;
    --colors-surface-dark-elevated: #11182c;
    --colors-hairline: rgba(255, 190, 111, .2);
    --colors-hairline-soft: rgba(255, 190, 111, .11);
    --colors-ink: #fff4e4;
    --colors-body: #d8c9b9;
    --colors-body-strong: #fff4e4;
    --colors-muted: #b3a293;
    --colors-muted-soft: #8f8174;
    --site-blue: #ffad45;
    --site-blue-dark: #ffc477;
    --site-ink: #fff4e4;
    --site-body: #d8c9b9;
    --site-muted: #b3a293;
    --site-canvas: #0b1020;
    --site-soft: #151b31;
    --site-strong: #202743;
    --site-line: rgba(255, 190, 111, .2);
    --site-success: #ffad45;
    --site-glass-line: rgba(255, 190, 111, .2);
    --coral: #ffad45;
    --accent: #ffad45;
  }

  html {
    background:
      radial-gradient(ellipse at 8% 4%, rgba(232, 111, 25, .2), transparent 34rem),
      radial-gradient(ellipse at 94% 12%, rgba(112, 67, 174, .2), transparent 32rem),
      radial-gradient(ellipse at 52% 96%, rgba(232, 111, 25, .12), transparent 38rem),
      #070b16 !important;
  }

  body {
    background:
      linear-gradient(135deg, rgba(7, 11, 22, .78), rgba(20, 19, 42, .68)),
      transparent !important;
  }

  body::before { background: radial-gradient(circle, rgba(232, 111, 25, .18), transparent 68%); }
  body::after { background: radial-gradient(circle, rgba(112, 67, 174, .18), transparent 68%); }
  a, a:hover, a:visited { color: #ffbd68; }

  .topbar, .site-header, .page-header, .nav-bar {
    background:
      linear-gradient(135deg, rgba(29, 31, 59, .88), rgba(17, 20, 42, .78)),
      linear-gradient(90deg, rgba(232, 111, 25, .13), rgba(112, 67, 174, .12)) !important;
    box-shadow: inset 0 1px 0 rgba(255, 244, 228, .1),
      0 18px 48px rgba(0, 0, 0, .3), 0 0 24px rgba(232, 111, 25, .12) !important;
  }

  .card, .panel, .surface, .content-card, article, section.card,
  .glass, .glass-surface, .mode-card, .medication-builder,
  .quick-actions, .verification, .india-references, .form-help,
  .faq-item, .faq-card, .trust-card, .service-card, .credential,
  .timing-banner, .notice, .scope-band, .vitals-section,
  .verification-band, .portrait-badge-overlay {
    background:
      linear-gradient(135deg, rgba(32, 39, 72, .84), rgba(17, 22, 45, .76)),
      rgba(11, 16, 32, .8) !important;
    border-color: rgba(255, 190, 111, .18) !important;
    box-shadow: inset 0 1px 0 rgba(255, 244, 228, .08),
      0 18px 44px rgba(0, 0, 0, .26), 0 0 24px rgba(232, 111, 25, .1) !important;
  }

  button, .button, .btn, .continue, .nav-pill-btn, .button-pill-cta,
  input[type="submit"], input[type="button"] {
    border-color: rgba(255, 207, 143, .38) !important;
    background:
      linear-gradient(180deg, rgba(255, 244, 228, .18), transparent 48%),
      linear-gradient(135deg, #e88917, #a94b07) !important;
    box-shadow: 0 10px 24px rgba(185, 87, 8, .28),
      0 0 16px rgba(232, 111, 25, .12),
      inset 0 1px 0 rgba(255, 244, 228, .3) !important;
  }

  button:hover, .button:hover, .btn:hover, .continue:hover,
  .nav-pill-btn:hover, .button-pill-cta:hover,
  input[type="submit"]:hover, input[type="button"]:hover {
    background:
      linear-gradient(180deg, rgba(255, 244, 228, .22), transparent 48%),
      linear-gradient(135deg, #f19a2d, #c9630b) !important;
  }

  .theme-toggle {
    color: #fff4e4 !important;
    background: linear-gradient(135deg, rgba(61, 42, 56, .86), rgba(28, 27, 57, .94)) !important;
    border-color: rgba(255, 190, 111, .3) !important;
  }

  .theme-toggle-icon { color: #ffbd68; }

  body.patient-view #paymentQrPanel.is-collapsed {
    width: 44px;
    min-width: 44px;
    padding: 8px;
  }
}

:focus-visible {
  outline-color: #a9c7ff !important;
}

@media (prefers-reduced-transparency: reduce) {
  .card, .panel, .surface, .content-card, article, section.card,
  .glass, .glass-surface, .topbar, .site-header, .page-header,
  .nav-bar, footer, footer.footer-light, footer.footer:not(.footer-light) {
    background: #111c2e !important;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
}

button, .button, .btn, .continue, .nav-pill-btn, .button-pill-cta,
input[type="submit"], input[type="button"], input[type="reset"] {
  color: #fff4e4 !important;
}

.nav-pill-btn, .button-pill-cta, .nav-pill-primary, .btn.primary, .button.primary,
button.primary, input[type="submit"], input[type="button"] {
  color: #fff !important;
  text-shadow: none !important;
}

button.secondary, .button.secondary, .btn.secondary, .button-pill-secondary,
.continue-consult-btn, .google-signin-btn, .patient-login-icon {
  color: #fff4e4 !important;
  background: linear-gradient(145deg, #1a1c20, #101114) !important;
  border-color: rgba(255, 255, 255, .18) !important;
}

button.secondary:hover:not(:disabled), .button.secondary:hover:not(:disabled),
.btn.secondary:hover:not(:disabled), .button-pill-secondary:hover:not(:disabled),
.continue-consult-btn:hover:not(:disabled), .google-signin-btn:hover:not(:disabled),
.patient-login-icon:hover:not(:disabled) {
  color: #fff !important;
  background: linear-gradient(145deg, #292c31, #191b1f) !important;
  border-color: rgba(255, 190, 111, .42) !important;
}

button:disabled, .button:disabled, .btn:disabled,
input[type="submit"]:disabled, input[type="button"]:disabled {
  color: #d0cbc5 !important;
  background: linear-gradient(145deg, #292621, #1a1917) !important;
  border-color: rgba(255, 255, 255, .14) !important;
  box-shadow: none !important;
  opacity: 1 !important;
}

body:not(.patient-view) .private-meeting-tools > summary {
  border: 1px solid rgba(255, 255, 255, .18) !important;
  border-radius: 999px !important;
  background: linear-gradient(145deg, #1a1c20, #101114) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08) !important;
  color: #fff4e4 !important;
}

body:not(.patient-view) .private-meeting-tools > summary:hover {
  background: linear-gradient(145deg, #292c31, #191b1f) !important;
  border-color: rgba(255, 190, 111, .42) !important;
}

body:not(.patient-view) .topbar a,
body:not(.patient-view) .topbar a:visited,
body:not(.patient-view) footer a,
body:not(.patient-view) footer a:visited {
  color: #ffad45 !important;
}

body:not(.patient-view) footer.footer-light .footer-link,
body:not(.patient-view) footer.footer-light .footer-link:visited {
  color: #ffad45 !important;
}

body:not(.patient-view) button.secondary:not(:disabled),
body:not(.patient-view) .button.secondary:not(:disabled),
body:not(.patient-view) .btn.secondary:not(:disabled),
body:not(.patient-view) a.button.secondary {
  color: #fff4e4 !important;
}

body:not(.patient-view) #toggleAdmissions.danger-button {
  color: #ffd4d8 !important;
  background: linear-gradient(145deg, #45161c, #2d0e12) !important;
  border-color: rgba(255, 151, 160, .48) !important;
}

body:not(.patient-view) #toggleAdmissions.danger-button:hover {
  background: linear-gradient(145deg, #572029, #391218) !important;
}

body:not(.patient-view) .queue-icon:not(.secondary) {
  color: #fff4e4 !important;
  background: linear-gradient(145deg, #7a3500, #612700) !important;
  border-color: rgba(255, 190, 111, .38) !important;
}

body:not(.patient-view) .queue-icon:not(.secondary):hover {
  background: linear-gradient(145deg, #843800, #6f2d03) !important;
}

.emergency-number {
  color: #ff4d4f !important;
}

button, [role="button"], .button, .btn, .nav-pill-btn, .button-pill-cta,
input[type="submit"], input[type="button"], input[type="reset"] {
  text-transform: capitalize;
}

/* Final cosmic saffron overrides after all legacy component rules. */
.nav-pill-btn, .button-pill-cta, .btn.primary, .button.primary,
button.primary, input[type="submit"], input[type="button"] {
  color: #fff !important;
  background: linear-gradient(180deg, rgba(255, 244, 228, .18), transparent 48%), linear-gradient(135deg, #e88917, #a94b07) !important;
  border-color: rgba(255, 207, 143, .38) !important;
}
.nav-pill-btn:hover, .button-pill-cta:hover, .btn.primary:hover,
.button.primary:hover, button.primary:hover, input[type="submit"]:hover,
input[type="button"]:hover {
  color: #fff !important;
  background: linear-gradient(180deg, rgba(255, 244, 228, .22), transparent 48%), linear-gradient(135deg, #f19a2d, #c9630b) !important;
}

/* Keep the pitch-black cosmic-orange system consistent when dark mode is selected. */
:root {
  --colors-primary: #ff9a22;
  --colors-primary-active: #ffc06b;
  --colors-primary-disabled: #80521f;
  --colors-accent-yellow: #ffb24d;
  --colors-canvas: #050608;
  --colors-surface-soft: #0b0d11;
  --colors-surface-strong: #14171c;
  --colors-surface-dark: #050608;
  --colors-surface-dark-elevated: #0b0d11;
  --colors-hairline: rgba(255, 255, 255, .12);
  --colors-hairline-soft: rgba(255, 255, 255, .08);
  --colors-ink: #fff4e4;
  --colors-body: #c8c4bf;
  --colors-body-strong: #fff4e4;
  --colors-muted: #aaa5a0;
  --colors-muted-soft: #85817d;
  --colors-semantic-up: #57d99a;
  --colors-semantic-down: #ff7777;
  --colors-on-primary: #fff;
  --colors-on-dark: #fff4e4;
  --colors-on-dark-soft: #aaa5a0;
  --site-blue: #ff9a22;
  --site-blue-dark: #ffc06b;
  --site-ink: #fff4e4;
  --site-body: #c8c4bf;
  --site-muted: #aaa5a0;
  --site-canvas: #050608;
  --site-soft: #0b0d11;
  --site-strong: #14171c;
  --site-line: rgba(255, 255, 255, .12);
  --site-success: #57d99a;
  --site-danger: #ff7777;
  --site-glass: rgba(10, 11, 14, .86);
  --site-glass-strong: rgba(8, 9, 12, .96);
  --site-glass-line: rgba(255, 255, 255, .12);
  --site-shadow: 0 24px 70px rgba(0, 0, 0, .58);
  --site-shadow-inset: inset 0 1px 0 rgba(255, 255, 255, .05);
  --ink: var(--site-ink);
  --navy: var(--site-ink);
  --muted: var(--site-body);
  --line: var(--site-line);
  --paper: var(--site-canvas);
  --surface: var(--site-canvas);
  --soft: var(--site-soft);
  --strong: var(--site-strong);
  --coral: var(--site-blue);
  --accent: var(--site-blue);
}

html {
  overflow-x: clip;
  min-height: 100%;
  background:
    radial-gradient(ellipse 82rem 58rem at 50% 16%, rgba(232, 111, 25, .1), transparent 72%),
    radial-gradient(ellipse 72rem 64rem at 92% 44%, rgba(122, 67, 158, .08), transparent 74%),
    #050608 !important;
  background-attachment: fixed !important;
}

body {
  overflow-x: clip;
  min-height: 100vh;
  color: var(--site-body) !important;
  background:
    radial-gradient(ellipse 70rem 48rem at 52% 16%, rgba(232, 111, 25, .045), transparent 76%),
    radial-gradient(ellipse 64rem 58rem at 92% 70%, rgba(122, 67, 158, .035), transparent 76%),
    transparent !important;
  color-scheme: dark;
}

body::before {
  background: radial-gradient(circle, rgba(232, 111, 25, .12), transparent 68%) !important;
  opacity: .55 !important;
}

body::after {
  background: radial-gradient(circle, rgba(117, 72, 158, .1), transparent 68%) !important;
  opacity: .48 !important;
}

h1, h2, h3, h4, h5, h6, th, strong, dt, summary,
.brand-title, .nav-bar, .topbar, .site-header, .page-header {
  color: var(--site-ink) !important;
}

p, li, label, dd, .lead, .small, .muted, .helper, .builder-note,
.footer, .section-intro, .eyebrow {
  color: var(--site-body) !important;
}

a, a:visited { color: #ffad45 !important; }
a:hover { color: #ffd08e !important; }

header, .topbar, .site-header, .page-header, .nav-bar,
footer, footer.footer-light, footer.footer:not(.footer-light) {
  color: var(--site-body) !important;
  background: rgba(8, 9, 12, .94) !important;
  border-color: var(--site-glass-line) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .04), 0 18px 48px rgba(0, 0, 0, .38) !important;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.nav-container {
  background: transparent !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

.card, .panel, .surface, .content-card, article, section.card,
.glass, .glass-surface, .mode-card, .medication-builder,
.quick-actions, .verification, .india-references, .form-help,
.faq-item, .faq-card, .trust-card, .service-card, .credential,
.timing-banner, .notice, .scope-band, .vitals-section,
.verification-band, .portrait-badge-overlay {
  color: var(--site-body) !important;
  background: linear-gradient(145deg, rgba(15, 17, 21, .97), rgba(8, 9, 12, .98)) !important;
  border-color: rgba(255, 255, 255, .1) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .035), 0 18px 44px rgba(0, 0, 0, .32) !important;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

input, textarea, select, .form-control {
  color: #fff4e4 !important;
  background: #07080a !important;
  border-color: rgba(255, 255, 255, .16) !important;
}

input::placeholder, textarea::placeholder { color: #aaa5a0 !important; }
input:focus, textarea:focus, select:focus {
  border-color: #e88917 !important;
  box-shadow: 0 0 0 3px rgba(232, 137, 23, .18) !important;
}

.theme-toggle {
  color: #fff4e4 !important;
  background: linear-gradient(135deg, rgba(82, 42, 16, .9), rgba(30, 19, 14, .96)) !important;
  border-color: rgba(255, 173, 69, .3) !important;
  box-shadow: inset 0 1px 0 rgba(255, 244, 228, .1), 0 8px 24px rgba(0, 0, 0, .36), 0 0 20px rgba(232, 111, 25, .12) !important;
}

.theme-toggle:hover {
  border-color: rgba(255, 190, 111, .54) !important;
  background: linear-gradient(135deg, rgba(111, 57, 17, .94), rgba(44, 25, 15, .98)) !important;
}

.theme-toggle-icon { color: #ffb24d !important; filter: drop-shadow(0 0 6px rgba(232, 111, 25, .38)); }
:focus-visible { outline-color: #ffad45 !important; }

.hero-section {
  position: relative;
  isolation: isolate;
  background: transparent !important;
  border-color: transparent !important;
  box-shadow: none !important;
}

.hero-section::before {
  position: absolute;
  z-index: -1;
  inset: -12rem 0;
  background:
    radial-gradient(ellipse 58% 48% at 68% 32%, rgba(232, 111, 25, .15), transparent 78%),
    radial-gradient(ellipse 48% 50% at 19% 70%, rgba(114, 57, 151, .1), transparent 80%);
  content: "";
  filter: blur(76px);
  opacity: .72;
  pointer-events: none;
}

.hero-section h1, .hero-section h2, .hero-section h3 { color: #fff4e4 !important; }
.hero-section .hero-intro, .hero-section p { color: #c8c4bf !important; }
.hero-section .eyebrow { color: #ffad45 !important; }
.trust-icon-plate { color: #ffb24d !important; background: rgba(232, 111, 25, .12) !important; }

.portrait-badge-overlay,
.portrait-badge-overlay .portrait-name {
  color: #fff4e4 !important;
}

.portrait-badge-overlay .portrait-meta,
.portrait-badge-overlay .portrait-meta span {
  color: #c8c4bf !important;
}

.nav-pill-btn, .button-pill-cta, .btn, .btn.primary, .button.primary,
button.primary, input[type="submit"], input[type="button"] {
  color: #fff !important;
  background: linear-gradient(180deg, rgba(255, 244, 228, .18), transparent 48%), linear-gradient(135deg, #e88917, #a94b07) !important;
  border-color: rgba(255, 207, 143, .38) !important;
}

.nav-pill-btn:hover, .button-pill-cta:hover, .btn.primary:hover, .button.primary:hover,
button.primary:hover, input[type="submit"]:hover, input[type="button"]:hover {
  color: #fff !important;
}

@media (prefers-reduced-transparency: reduce) {
  .card, .panel, .surface, .content-card, article, section.card,
  .glass, .glass-surface, .topbar, .site-header, .page-header,
  .nav-bar, footer, footer.footer-light, footer.footer:not(.footer-light) {
    background: #0b0d11 !important;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
}

/* Keep shared interfaces rounded and glassy in dark mode as well. */
:root {
  --site-radius: 20px;
  --site-pill: 9999px;
}

header:not(.nav-bar), .topbar, .site-header, .page-header,
.card, .panel, .surface, .content-card, article, section.card,
.glass, .glass-surface, .mode-card, .medication-builder, .quick-actions,
.verification, .india-references, .form-help, .faq-item, .faq-card,
.trust-card, .service-card, .credential, .timing-banner, .notice,
.scope-band, .vitals-section, .verification-band, .portrait-badge-overlay,
.table-wrap, .table-container, .detail, dialog, [role="dialog"],
.modal-card, .login-modal-card, fieldset {
  border-radius: 20px !important;
  border-color: rgba(255, 255, 255, .14) !important;
  background-color: rgba(15, 17, 21, .76) !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .08),
    0 18px 44px rgba(0, 0, 0, .3) !important;
  backdrop-filter: saturate(145%) blur(20px);
  -webkit-backdrop-filter: saturate(145%) blur(20px);
}

header:not(.nav-bar) {
  padding: 18px 22px;
  border: 1px solid rgba(255, 255, 255, .14) !important;
}

.table-wrap, .table-container {
  overflow: auto;
  border: 1px solid rgba(255, 255, 255, .14) !important;
}

table {
  border-collapse: separate !important;
  border-spacing: 0;
  overflow: hidden;
  border-radius: 16px !important;
  background: rgba(8, 9, 12, .48) !important;
}

th {
  background: rgba(255, 255, 255, .06) !important;
}

td, th {
  border-color: rgba(255, 255, 255, .1) !important;
}

input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="color"]):not([type="hidden"]),
select, textarea {
  border-radius: 14px !important;
  border-color: rgba(255, 255, 255, .16) !important;
  background: rgba(7, 8, 10, .58) !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .06),
    0 5px 14px rgba(0, 0, 0, .18) !important;
}

input[type="checkbox"], input[type="radio"] {
  border-radius: 5px;
  accent-color: #ff9a22;
}

dialog {
  border: 1px solid rgba(255, 255, 255, .14) !important;
  background: rgba(11, 13, 17, .92) !important;
}

summary, .status, .badge, .pill {
  border-radius: 9999px !important;
}

@media (prefers-reduced-transparency: reduce) {
  header:not(.nav-bar), .topbar, .site-header, .page-header,
  .card, .panel, .surface, .content-card, article, section.card,
  .glass, .glass-surface, .mode-card, .medication-builder, .quick-actions,
  .verification, .india-references, .form-help, .faq-item, .faq-card,
  .trust-card, .service-card, .credential, .timing-banner, .notice,
  .scope-band, .vitals-section, .verification-band, .portrait-badge-overlay,
  .table-wrap, .table-container, dialog, [role="dialog"],
  .modal-card, .login-modal-card, fieldset {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
}
