@font-face {
  font-family: 'Red Hat Text';
  src: url('assets/fonts/RedHatText-600.ttf') format('truetype');
  font-weight: 600;
  font-display: swap;
}
@font-face {
  font-family: 'Red Hat Text';
  src: url('assets/fonts/RedHatText-700.ttf') format('truetype');
  font-weight: 700;
  font-display: swap;
}
@font-face {
  font-family: 'Lato';
  src: url('assets/fonts/Lato-400.ttf') format('truetype');
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: 'Lato';
  src: url('assets/fonts/Lato-700.ttf') format('truetype');
  font-weight: 700;
  font-display: swap;
}
@font-face {
  font-family: 'Source Code Pro';
  src: url('assets/fonts/SourceCodePro-500.ttf') format('truetype');
  font-weight: 500;
  font-display: swap;
}
@font-face {
  font-family: 'Source Code Pro';
  src: url('assets/fonts/SourceCodePro-600.ttf') format('truetype');
  font-weight: 600;
  font-display: swap;
}

:root {
  --navy: #102A43;
  --navy-deep: #0B1D30;
  --heading: #102A43;
  --teal: #138A91;
  --teal-deep: #0D6E74;
  --teal-soft: #C3FBFF;
  --on-teal-soft: #00373A;
  --gold: #D6AD60;
  --on-gold: #271900;
  --gold-soft: #FFEFD7;
  --on-gold-soft: #271900;
  --primary-soft: #D1E4FF;
  --on-primary-soft: #011D35;
  --surface: #F3F6FA;
  --card: #FFFFFF;
  --card-alt: #E8EEF5;
  --text: #243447;
  --muted: #64748B;
  --border: #CBD5E1;
  --success: #15803D;
  --success-text: #15803D;
  --success-bg: #DCFCE7;
  --on-success: #14532D;
  --warning: #B45309;
  --warning-bg: #FEF3C7;
  --on-warning: #78350F;
  --error: #BA1A1A;
  --error-bg: #FFDAD6;
  --on-error: #410002;
  --shadow-sm: 0 4px 14px rgba(16, 42, 67, 0.06);
  --shadow-md: 0 12px 32px rgba(16, 42, 67, 0.12);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
}

[data-theme="dark"] {
  --heading: #D1E4FF;
  --surface: #101E2E;
  --card: #0B1520;
  --card-alt: #162638;
  --text: #E8EEF5;
  --muted: #94A3B8;
  --border: #2D4258;
  --success-text: #4ADE80;
  --teal: #74D5DD;
  --teal-deep: #74D5DD;
  --teal-soft: #004F54;
  --on-teal-soft: #C3FBFF;
  --primary-soft: #19324B;
  --on-primary-soft: #D1E4FF;
  --gold-soft: #5D4200;
  --on-gold-soft: #FFEFD7;
  --shadow-sm: 0 6px 18px rgba(0, 0, 0, 0.35);
  --shadow-md: 0 14px 36px rgba(0, 0, 0, 0.45);
}

*, *::before, *::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: 'Lato', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--surface);
  color: var(--text);
  line-height: 1.55;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  font-family: 'Red Hat Text', sans-serif;
  margin: 0;
  line-height: 1.25;
}

code, .mono {
  font-family: 'Source Code Pro', monospace;
  font-variant-numeric: tabular-nums;
}

a { color: var(--teal-deep); }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }

img { max-width: 100%; display: block; image-rendering: -webkit-optimize-contrast; }
canvas { display: block; }
.qr-frame canvas { image-rendering: pixelated; }

.hidden { display: none !important; }

.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 18px;
}

kbd {
  padding: 1px 6px;
  border-radius: 4px;
  border: 1px solid var(--border);
  background: var(--card-alt);
  font-family: 'Source Code Pro', monospace;
  font-size: 0.76rem;
}

/* Top Security Announcement Ribbon */
.security-ribbon {
  background: var(--navy-deep);
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 700;
  padding: 7px 14px;
  text-align: center;
  border-bottom: 1px solid rgba(214, 173, 96, 0.25);
  letter-spacing: 0.3px;
}

/* Sticky Brand Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(16, 42, 67, 0.96);
  backdrop-filter: blur(12px);
  border-bottom: 3px solid var(--gold);
  color: #fff;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 10px 14px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: #fff;
  flex-shrink: 0;
}

.brand-seal-wrap {
  position: relative;
  width: 46px;
  height: 46px;
  padding: 2px;
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 0 0 2px var(--gold), 0 0 16px rgba(19, 138, 145, 0.45);
}

.brand-seal {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  object-fit: contain;
}

.brand-overline {
  display: block;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.8px;
  color: var(--gold);
}

.brand-title {
  display: block;
  font-family: 'Red Hat Text', sans-serif;
  font-size: 1.05rem;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2px;
  flex-wrap: nowrap;
  white-space: nowrap;
}

.nav-links a {
  color: rgba(255, 255, 255, 0.9);
  text-decoration: none;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 6px 6px;
  border-radius: var(--radius-sm);
  white-space: nowrap;
  transition: background 0.18s ease, color 0.18s ease;
}

.nav-links a:hover {
  color: var(--gold);
  background: rgba(255, 255, 255, 0.08);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
  white-space: nowrap;
}

.xp-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: rgba(214, 173, 96, 0.16);
  border: 1px solid rgba(214, 173, 96, 0.55);
  color: var(--gold);
  padding: 4px 9px;
  border-radius: 999px;
  font-size: 0.74rem;
  font-weight: 700;
}

.icon-btn {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
  font-size: 1rem;
  transition: transform 0.15s ease, background 0.15s ease;
}

.icon-btn:hover { background: rgba(255, 255, 255, 0.22); transform: translateY(-1px); }

.badge-count {
  position: absolute;
  top: -4px;
  right: -4px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  background: #BA1A1A;
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

.avatar-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid var(--gold);
  color: #fff;
  padding: 3px 10px 3px 4px;
  border-radius: 999px;
  cursor: pointer;
  font-size: 0.8rem;
  font-weight: 700;
}

.avatar-btn img {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  object-fit: cover;
}

/* Reusable Buttons, Cards & Pills */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: 'Lato', sans-serif;
  font-weight: 700;
  font-size: 0.9rem;
  border-radius: var(--radius-sm);
  padding: 10px 18px;
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.14s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.btn:hover { transform: translateY(-1px); }
.btn:active { transform: scale(0.98); }
.btn-sm { padding: 7px 13px; font-size: 0.8rem; }
.btn-primary { background: var(--navy); color: #fff; }
[data-theme="dark"] .btn-primary { background: #1E4D7A; }
.btn-teal { background: #0D6E74; color: #fff; }
.btn-gold { background: var(--gold); color: var(--on-gold); }
.btn-success { background: var(--success); color: #fff; }
.btn-outline {
  background: transparent;
  color: var(--text);
  border-color: var(--border);
}
.btn-outline-light {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.38);
}

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px;
  box-shadow: var(--shadow-sm);
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 11px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.3px;
}

.pill-gold { background: var(--gold); color: var(--on-gold); }
.pill-teal { background: var(--teal-soft); color: var(--on-teal-soft); }
.pill-navy { background: var(--primary-soft); color: var(--on-primary-soft); }
.pill-success { background: var(--success-bg); color: var(--on-success); }
.pill-warning { background: var(--warning-bg); color: var(--on-warning); }
.pill-error { background: var(--error-bg); color: var(--on-error); }

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chip {
  padding: 7px 14px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--card);
  color: var(--text);
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.16s ease;
}

.chip.active {
  background: #0D6E74;
  color: #fff;
  border-color: #0D6E74;
}

.ecg-chip {
  background: #163858;
  color: #fff;
  border-color: rgba(214, 173, 96, 0.45);
}

.ecg-chip.active {
  background: var(--gold);
  color: var(--on-gold);
  border-color: var(--gold);
}

/* Section Layout */
.section {
  padding: 48px 0;
}

.section-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 22px;
}

.section-overline {
  display: block;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--teal-deep);
  margin-bottom: 4px;
}

.section-title {
  font-size: clamp(1.45rem, 2.5vw, 2rem);
  color: var(--navy);
}
[data-theme="dark"] .section-title { color: #B0C9E8; }

.muted { color: var(--muted); }

/* Hero Section */
.hero-banner {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #0B1D30 0%, #102A43 52%, #0D6E74 100%);
  color: #fff;
  padding: 36px 0 48px;
  border-bottom: 4px solid var(--gold);
}

.hero-bg-art {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.14;
  pointer-events: none;
  mix-blend-mode: lighten;
}

.hero-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 24px;
  align-items: stretch;
}

.hero-headline {
  font-size: clamp(1.85rem, 3.4vw, 2.75rem);
  margin: 10px 0 10px;
}

.hero-sub {
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.03rem;
  max-width: 600px;
  margin: 0 0 18px;
}

.track-chip {
  padding: 8px 15px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  font-weight: 700;
  font-size: 0.84rem;
  cursor: pointer;
}

.track-chip.active {
  background: var(--gold);
  color: var(--on-gold);
  border-color: var(--gold);
}

.tracker-card {
  background: rgba(9, 25, 42, 0.78);
  border: 1px solid rgba(214, 173, 96, 0.48);
  border-radius: var(--radius-xl);
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 14px;
}

.tracker-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.metrics-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
  padding-top: 12px;
  text-align: center;
}

.metric-val {
  display: block;
  font-family: 'Source Code Pro', monospace;
  font-size: 1.1rem;
  font-weight: 700;
}

.metric-lbl {
  font-size: 0.74rem;
  color: rgba(255, 255, 255, 0.78);
}

.progress-track {
  width: 100%;
  height: 9px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  border-radius: 999px;
  background: var(--gold);
  transition: width 0.35s ease;
}

.progress-light {
  background: var(--card-alt);
}

.progress-light .progress-fill {
  background: #0D6E74;
}

/* Dashboard Sub-Widgets */
.dashboard-widgets {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr 1fr;
  gap: 18px;
  margin-top: -28px;
  position: relative;
  z-index: 10;
}

.editorial-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid rgba(214, 173, 96, 0.5);
  min-height: 228px;
  background: var(--navy);
  color: #fff;
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.editorial-card img.bg-art {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: right center;
  opacity: 0.52;
}

.editorial-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(11, 29, 48, 0.96) 0%, rgba(11, 29, 48, 0.78) 58%, rgba(11, 29, 48, 0.25) 100%);
}

.editorial-content {
  position: relative;
  z-index: 2;
  max-width: 72%;
}

/* Visual Topic Cards & 10-Module Grid */
.visual-topics-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.quick-journey-bar {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 18px;
}

.journey-step {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 12px 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: var(--shadow-sm);
}

.step-badge {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--gold);
  color: var(--on-gold);
  font-family: 'Red Hat Text', sans-serif;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* Interactive Visual Anatomy Atlas & Critical Labs */
.atlas-card {
  background: #0D2238;
  color: #fff;
  border: 1px solid rgba(214, 173, 96, 0.5);
  border-radius: var(--radius-lg);
  padding: 18px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.atlas-stage {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid rgba(116, 213, 221, 0.35);
  background: #071522;
}

.atlas-stage img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  object-position: center center;
  display: block;
}

.atlas-hotspot {
  position: absolute;
  transform: translate(-50%, -50%);
  min-width: 40px;
  height: 28px;
  padding: 0 8px;
  border-radius: 999px;
  border: 2px solid #fff;
  background: rgba(19, 138, 145, 0.92);
  color: #fff;
  font-family: 'Source Code Pro', monospace;
  font-size: 0.72rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 0 0 4px rgba(19, 138, 145, 0.35);
  transition: transform 0.16s ease, background 0.16s ease, box-shadow 0.16s ease;
}

.atlas-hotspot:hover {
  transform: translate(-50%, -50%) scale(1.08);
}

.atlas-hotspot.active {
  background: var(--gold);
  color: var(--on-gold);
  border-color: #fff;
  transform: translate(-50%, -50%) scale(1.14);
  box-shadow: 0 0 0 6px rgba(214, 173, 96, 0.42);
}

.body-hologram-stage {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid rgba(214, 173, 96, 0.45);
  background: #071522;
}

.body-hologram-stage img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  object-position: center center;
  display: block;
}

.body-hotspot {
  position: absolute;
  transform: translate(-50%, -50%);
  padding: 3px 9px;
  border-radius: 999px;
  border: 2px solid #fff;
  background: rgba(19, 138, 145, 0.92);
  color: #fff;
  font-family: 'Source Code Pro', monospace;
  font-size: 0.7rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 0 0 4px rgba(19, 138, 145, 0.35);
  transition: transform 0.16s ease, background 0.16s ease;
}

.body-hotspot:hover { transform: translate(-50%, -50%) scale(1.08); }
.body-hotspot.active {
  background: var(--gold);
  color: var(--on-gold);
  transform: translate(-50%, -50%) scale(1.14);
  box-shadow: 0 0 0 6px rgba(214, 173, 96, 0.42);
}

.organ-vitals-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  margin-top: 10px;
}

.organ-vital-chip {
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 8px 10px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-size: 0.78rem;
}

.muted-light {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 700;
}

.pharma-scroll-grid {
  max-height: 360px;
  overflow-y: auto;
  display: grid;
  gap: 7px;
  padding-right: 4px;
}

.lab-row-btn {
  width: 100%;
  text-align: left;
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 8px 10px;
  cursor: pointer;
  transition: border-color 0.15s ease, transform 0.12s ease;
}

.lab-row-btn:hover,
.lab-row-btn.active {
  border-color: var(--teal);
  transform: translateX(2px);
}

.faculty-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
}

.faculty-card img {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--gold);
  flex-shrink: 0;
}

.mobile-dock {
  display: none;
}

.visual-topic-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  min-height: 210px;
  border: 1px solid rgba(214, 173, 96, 0.45);
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: flex-end;
  padding: 16px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.visual-topic-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }

.visual-topic-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.visual-topic-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(11, 29, 48, 0.12) 0%, rgba(11, 29, 48, 0.92) 95%);
}

.visual-topic-body { position: relative; z-index: 2; }

.modules-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
  margin-top: 22px;
}

.module-tile {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  text-decoration: none;
  color: inherit;
  transition: transform 0.16s ease, border-color 0.16s ease;
}

.module-tile:hover {
  transform: translateY(-2px);
  border-color: var(--teal);
}

.module-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}

/* AI Study Co-Pilot Studio */
.ai-hero-bar {
  background: linear-gradient(135deg, #102A43 0%, #0E4A5F 100%);
  border: 1px solid rgba(214, 173, 96, 0.5);
  border-radius: var(--radius-xl);
  padding: 18px 22px;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.ai-orb {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  border: 2px solid var(--gold);
  object-fit: cover;
}

.ai-chat-shell {
  display: grid;
  grid-template-columns: 1.35fr 0.65fr;
  gap: 18px;
}

.chat-thread {
  height: 430px;
  overflow-y: auto;
  padding: 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.chat-bubble-user {
  align-self: flex-end;
  max-width: 78%;
  background: linear-gradient(135deg, #102A43, #1A4367);
  color: #fff;
  padding: 12px 16px;
  border-radius: 16px 16px 4px 16px;
}

.chat-bubble-ai {
  align-self: flex-start;
  width: 100%;
  background: var(--card);
  border: 1px solid rgba(19, 138, 145, 0.35);
  border-radius: 16px;
  padding: 16px;
  box-shadow: var(--shadow-sm);
}

.priority-box {
  margin-top: 10px;
  padding: 10px 12px;
  background: var(--card-alt);
  border-left: 3px solid var(--teal);
  border-radius: 8px;
  font-size: 0.9rem;
}

.mnemonic-box {
  margin-top: 8px;
  padding: 9px 12px;
  background: var(--gold-soft);
  color: var(--on-gold-soft);
  border-radius: 8px;
  font-size: 0.84rem;
  font-weight: 700;
}

/* Interactive ECG Monitor Lab */
.ecg-monitor-box {
  background: #0D2238;
  color: #fff;
  border: 1px solid rgba(214, 173, 96, 0.5);
  border-radius: var(--radius-lg);
  padding: 18px;
}

.ecg-canvas-wrap {
  background: #071522;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid rgba(116, 213, 221, 0.2);
  margin: 12px 0;
}

/* 3D Flashcards */
.flashcard-stage {
  perspective: 1200px;
  max-width: 680px;
  margin: 16px auto;
}

.flashcard-inner {
  position: relative;
  width: 100%;
  min-height: 255px;
  transition: transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
  transform-style: preserve-3d;
  cursor: pointer;
}

.flashcard-inner.flipped {
  transform: rotateY(180deg);
}

.flashcard-face {
  position: absolute;
  inset: 0;
  backface-visibility: hidden;
  border-radius: var(--radius-xl);
  padding: 26px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.flashcard-front {
  background: linear-gradient(135deg, #102A43, #0D6E74);
  color: #fff;
  border: 1px solid rgba(214, 173, 96, 0.55);
}

.flashcard-back {
  background: var(--card);
  color: var(--text);
  border: 2px solid var(--teal);
  transform: rotateY(180deg);
}

/* Two-Column Labs & Calculators */
.sim-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  align-items: stretch;
}
.sim-grid > * {
  min-width: 0;
}

.option-btn {
  width: 100%;
  text-align: left;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  font-weight: 600;
  cursor: pointer;
  margin-bottom: 8px;
  transition: all 0.14s ease;
}

.option-btn:hover { border-color: var(--teal); }
.option-btn.correct { background: var(--success-bg); border-color: var(--success); color: var(--on-success); }
.option-btn.wrong { background: var(--error-bg); border-color: var(--error); color: var(--on-error); }
.option-btn.selected { background: var(--teal-soft); border-color: #0D6E74; color: var(--on-teal-soft); }

/* AES-256 DRM Secure Reader */
.drm-reader-box {
  position: relative;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  overflow: hidden;
  user-select: none;
}

.drm-watermark {
  position: absolute;
  inset: -40px;
  pointer-events: none;
  display: flex;
  flex-direction: column;
  justify-content: space-evenly;
  align-items: center;
  transform: rotate(-16deg);
  opacity: 0.085;
  font-family: 'Source Code Pro', monospace;
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--text);
  z-index: 3;
}

.drm-table {
  width: 100%;
  border-collapse: collapse;
  margin: 14px 0;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--border);
}

.drm-table th {
  background: var(--navy);
  color: #fff;
  text-align: left;
  padding: 10px 12px;
  font-size: 0.84rem;
}

.drm-table td {
  padding: 10px 12px;
  border-top: 1px solid var(--border);
  font-size: 0.88rem;
}

/* Catalog Grids (Tests, PDFs, Classes) */
.cards-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.cards-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}

.book-thumb {
  width: 68px;
  height: 68px;
  border-radius: 12px;
  object-fit: cover;
  border: 1px solid rgba(214, 173, 96, 0.5);
  flex-shrink: 0;
}

/* Free Payment Portal Grid */
.checkout-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 20px;
}

.qr-frame {
  display: inline-block;
  background: #fff;
  padding: 12px;
  border-radius: var(--radius-lg);
  border: 2px solid var(--gold);
  box-shadow: var(--shadow-sm);
}

/* Modals, Inputs & Toast */
.input {
  width: 100%;
  padding: 10px 13px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  font-family: inherit;
  font-size: 0.92rem;
}

.field-label {
  display: block;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text);
}

.field-label .input { margin-top: 5px; }

.alert-box {
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  background: var(--success-bg);
  color: var(--on-success);
  font-weight: 700;
  font-size: 0.88rem;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(11, 21, 32, 0.72);
  backdrop-filter: blur(4px);
  z-index: 120;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.modal-panel {
  background: var(--card);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  max-width: 760px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  padding: 24px;
  box-shadow: var(--shadow-md);
}

.toast {
  position: fixed;
  bottom: 22px;
  right: 22px;
  z-index: 150;
  background: var(--navy);
  color: #fff;
  border: 1px solid var(--gold);
  padding: 12px 18px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  font-weight: 700;
  font-size: 0.88rem;
}

.site-footer {
  background: var(--navy-deep);
  color: rgba(255, 255, 255, 0.85);
  border-top: 3px solid var(--gold);
  padding: 36px 0 28px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 24px;
}

.site-footer a { color: var(--gold); text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }

@keyframes verifyPop {
  0% { transform: scale(0.6); opacity: 0; }
  65% { transform: scale(1.08); opacity: 1; }
  100% { transform: scale(1); opacity: 1; }
}

.verify-badge {
  animation: verifyPop 0.55s ease forwards;
}

/* 3-Role Portal Switcher & Unified Workspace Navigation */
.role-switcher {
  display: inline-flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(214, 173, 96, 0.42);
  border-radius: 999px;
  padding: 3px;
  gap: 2px;
  flex-shrink: 0;
}

.role-pill-btn {
  border: none;
  background: transparent;
  color: rgba(255, 255, 255, 0.86);
  font-family: 'Lato', sans-serif;
  font-size: 0.76rem;
  font-weight: 700;
  padding: 5px 11px;
  border-radius: 999px;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.16s ease, color 0.16s ease, transform 0.12s ease;
}

.role-pill-btn:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
}

.role-pill-btn.active {
  background: var(--gold);
  color: var(--on-gold);
}

.subnav-strip {
  background: var(--card);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 66px;
  z-index: 48;
  box-shadow: 0 2px 10px rgba(16, 42, 67, 0.04);
}

.subnav-inner {
  display: flex;
  align-items: center;
  gap: 6px;
  overflow-x: auto;
  padding: 8px 18px;
  scrollbar-width: none;
}

.subnav-inner::-webkit-scrollbar {
  display: none;
}

.subnav-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  text-decoration: none;
  white-space: nowrap;
  padding: 5px 10px;
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--border);
  cursor: pointer;
  transition: all 0.15s ease;
}

.subnav-link:hover,
.subnav-link.active {
  background: #0D6E74;
  color: #fff;
  border-color: #0D6E74;
}

.lang-select {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 999px;
  padding: 4px 8px;
  font-size: 0.75rem;
  font-weight: 700;
  cursor: pointer;
}

.lang-select option {
  background: #102A43;
  color: #fff;
}

/* Workspace Role Headers (Faculty & Admin) */
.portal-hero {
  background: linear-gradient(135deg, #0B1D30 0%, #102A43 60%, #0D6E74 100%);
  color: #fff;
  padding: 28px 0 32px;
  border-bottom: 4px solid var(--gold);
  position: relative;
  overflow: hidden;
}

.portal-hero-grid {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.portal-tabs-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 6px;
  margin-bottom: 20px;
  box-shadow: var(--shadow-sm);
}

.portal-tab-btn {
  flex: 1 1 150px;
  padding: 10px 14px;
  border-radius: var(--radius-md);
  border: none;
  background: transparent;
  color: var(--text);
  font-family: 'Lato', sans-serif;
  font-size: 0.86rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.16s ease, color 0.16s ease;
}

.portal-tab-btn:hover {
  background: var(--surface);
}

.portal-tab-btn.active {
  background: var(--navy);
  color: #fff;
}
[data-theme="dark"] .portal-tab-btn.active {
  background: #0D6E74;
}

.kpi-grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-bottom: 20px;
}

.kpi-box {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 16px 18px;
  box-shadow: var(--shadow-sm);
}

.kpi-box.navy {
  background: linear-gradient(135deg, #102A43, #173B5E);
  color: #fff;
  border-color: rgba(214, 173, 96, 0.5);
}

.kpi-label {
  display: block;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: var(--muted);
}

.kpi-box.navy .kpi-label {
  color: var(--gold);
}

.kpi-value {
  display: block;
  font-family: 'Red Hat Text', sans-serif;
  font-size: 1.65rem;
  font-weight: 700;
  margin: 4px 0 2px;
  font-variant-numeric: tabular-nums;
}

.kpi-sub {
  font-size: 0.8rem;
  color: var(--muted);
}

.kpi-box.navy .kpi-sub {
  color: #C3FBFF;
}

/* Live Video Player & Library / Profile Surfaces */
.video-viewport {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: #071522;
  border: 1px solid rgba(214, 173, 96, 0.45);
  margin-bottom: 12px;
}

.video-viewport img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.88;
  transition: opacity 0.2s ease;
}

.video-viewport.paused img {
  opacity: 0.42;
}

.video-overlay-grad {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(11, 29, 48, 0.55) 0%, transparent 45%, rgba(11, 29, 48, 0.92) 100%);
  padding: 12px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.video-center-play {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 58px;
  height: 58px;
  border-radius: 50%;
  border: 2px solid var(--gold);
  background: rgba(16, 42, 67, 0.85);
  color: #fff;
  font-size: 1.35rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.15s ease, background 0.15s ease;
}

.video-center-play:hover {
  transform: translate(-50%, -50%) scale(1.08);
  background: #0D6E74;
}

.day-strip {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
  margin-bottom: 14px;
}

.day-pill-btn {
  padding: 8px 6px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  text-align: center;
  cursor: pointer;
  transition: all 0.15s ease;
}

.day-pill-btn.active {
  background: #0D6E74;
  color: #fff;
  border-color: #0D6E74;
}

.day-pill-btn span {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
}

.day-pill-btn strong {
  display: block;
  font-family: 'Source Code Pro', monospace;
  font-size: 0.98rem;
}

.policy-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: var(--radius-md);
  background: var(--surface);
  border: 1px solid var(--border);
}

.switch-btn {
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid var(--border);
  font-weight: 700;
  font-size: 0.78rem;
  cursor: pointer;
  background: var(--card);
  color: var(--text);
}

.switch-btn.on {
  background: var(--success-bg);
  color: var(--on-success);
  border-color: var(--success);
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  font-size: 0.85rem;
}

.data-table th {
  background: var(--navy);
  color: #fff;
  text-align: left;
  padding: 10px 12px;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}

.data-table td {
  padding: 10px 12px;
  border-top: 1px solid var(--border);
  background: var(--card);
}

.profile-banner-card {
  background: linear-gradient(135deg, #102A43, #173C5E);
  color: #fff;
  border: 1px solid rgba(214, 173, 96, 0.5);
  border-radius: var(--radius-lg);
  padding: 20px;
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.profile-banner-card img {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--gold);
}

/* Responsive Breakpoints */
@media (max-width: 1240px) {
  .xp-pill { display: none; }
  .nav-links a { font-size: 0.77rem; padding: 5px 6px; }
}

@media (max-width: 1280px) and (min-width: 761px) {
  .header-inner {
    flex-wrap: wrap;
    gap: 8px;
  }
  .saas-cmd-pill {
    display: none;
  }
  .header-actions {
    flex-wrap: wrap;
    justify-content: flex-end;
    flex-shrink: 1;
    min-width: 0;
  }
}

@media (max-width: 1080px) {
  .hero-grid,
  .dashboard-widgets,
  .ai-chat-shell,
  .sim-grid,
  .checkout-grid,
  .quick-journey-bar {
    grid-template-columns: 1fr;
  }
  .kpi-grid-4 { grid-template-columns: repeat(2, 1fr); }
  .dashboard-widgets { margin-top: 18px; }
  .visual-topics-grid { grid-template-columns: repeat(2, 1fr); }
  .modules-grid { grid-template-columns: repeat(2, 1fr); }
  .cards-3 { grid-template-columns: repeat(2, 1fr); }
  .nav-links { display: none; }
  .subnav-strip { top: 58px; }
  .mobile-dock {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 80;
    background: rgba(11, 29, 48, 0.97);
    backdrop-filter: blur(10px);
    border-top: 2px solid var(--gold);
    display: flex;
    justify-content: space-around;
    padding: 6px 4px;
  }
  .mobile-dock a,
  .mobile-dock button {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    color: rgba(255, 255, 255, 0.92);
    text-decoration: none;
    background: transparent;
    border: none;
    cursor: pointer;
    font-family: inherit;
    font-size: 1rem;
    font-weight: 700;
    padding: 4px 6px;
  }
  .mobile-dock a span,
  .mobile-dock button span {
    font-size: 0.66rem;
    color: var(--gold);
  }
  .site-footer {
    padding-bottom: 84px;
  }
  .toast {
    bottom: 84px;
    right: 14px;
    max-width: calc(100vw - 28px);
  }
}

@media (max-width: 640px) {
  .header-inner { padding: 8px 10px; gap: 6px; flex-wrap: wrap; }
  .brand { gap: 6px; flex: 1 1 auto; min-width: 0; }
  .brand-seal-wrap { width: 34px; height: 34px; flex-shrink: 0; }
  .brand-seal { width: 30px; height: 30px; }
  .brand-overline {
    font-size: 0.54rem;
    letter-spacing: 0.2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 138px;
  }
  .brand-title { font-size: 0.86rem; white-space: nowrap; }
  .role-switcher { order: 3; width: 100%; justify-content: space-between; }
  .role-pill-btn { flex: 1; text-align: center; padding: 5px 6px; font-size: 0.72rem; }
  .header-actions { gap: 4px; }
  .icon-btn { width: 30px; height: 30px; font-size: 0.85rem; }
  .avatar-btn { padding: 2px; gap: 0; }
  .avatar-btn img { width: 26px; height: 26px; }
  #headerUserLabel { display: none; }
  #doseCalcInputs,
  #bmiMetricsGrid,
  #cycleHormoneStats {
    grid-template-columns: repeat(2, 1fr) !important;
  }
  #toxOptionsList {
    grid-template-columns: 1fr !important;
  }
  .visual-topics-grid,
  .cards-3,
  .cards-2,
  .footer-grid,
  .kpi-grid-4 {
    grid-template-columns: 1fr;
  }
  .metrics-4 { grid-template-columns: repeat(2, 1fr); }
  .xp-pill { display: none; }
  .editorial-content { max-width: 100%; }
}

/* All Nursing & Other Subjects Grid + Live Notice Banner + CMS Studio */
.notice-banner {
  background: linear-gradient(90deg, rgba(19, 138, 145, 0.14), rgba(214, 173, 96, 0.2));
  border-bottom: 1px solid rgba(214, 173, 96, 0.45);
  padding: 8px 14px;
  font-size: 0.84rem;
}

.notice-banner-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}

.subjects-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-top: 22px;
}

.subject-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 14px;
  text-align: left;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 8px;
  transition: transform 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease;
}

.subject-card:hover {
  transform: translateY(-2px);
  border-color: var(--teal);
  box-shadow: var(--shadow-sm);
}

.cms-subtabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}

.crud-item-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  padding: 12px 14px;
  border-radius: var(--radius-md);
  background: var(--surface);
  border: 1px solid var(--border);
}

@media (max-width: 1280px) and (min-width: 761px) {
  .header-inner {
    flex-wrap: wrap;
    gap: 8px;
  }
  .saas-cmd-pill {
    display: none;
  }
  .header-actions {
    flex-wrap: wrap;
    justify-content: flex-end;
    flex-shrink: 1;
    min-width: 0;
  }
}

@media (max-width: 1080px) {
  .subjects-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
  .subjects-grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}


/* Enterprise Hierarchy Tree, RBAC Badges, Notifications & Paginated Data Panels */
.ent-tree-list {
  display: grid;
  gap: 8px;
}

.ent-tree-node {
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--surface);
  padding: 10px 14px;
}

.ent-tree-children {
  margin-left: 16px;
  padding-left: 12px;
  border-left: 2px dashed rgba(19, 138, 145, 0.35);
  margin-top: 8px;
  display: grid;
  gap: 6px;
}

.ent-status-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  margin-right: 6px;
}

.ent-pager {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid var(--border);
}

.ent-dropzone {
  border: 2px dashed rgba(19, 138, 145, 0.45);
  border-radius: var(--radius-md);
  padding: 16px;
  text-align: center;
  background: rgba(19, 138, 145, 0.04);
  transition: border-color 0.15s ease, background 0.15s ease;
}

.ent-dropzone.dragover {
  border-color: var(--gold);
  background: rgba(214, 173, 96, 0.14);
}

/* ============================================================================
   INTERNATIONAL PHONE INPUT COMPONENT (E.164 + SEARCHABLE COUNTRY DROPDOWN)
   ============================================================================ */
.anvik-phone-field {
  position: relative;
  width: 100%;
}

.anvik-phone-row {
  display: flex;
  align-items: stretch;
  gap: 6px;
  width: 100%;
}

.anvik-country-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  min-height: 44px;
  padding: 0 11px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--card-alt);
  color: var(--text);
  font-family: inherit;
  font-size: 0.86rem;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
}

.anvik-dial-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 10px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--heading);
  font-family: 'Source Code Pro', monospace;
  font-size: 0.88rem;
  font-weight: 600;
  flex-shrink: 0;
}

.anvik-phone-input {
  width: 100%;
  min-width: 0;
  min-height: 44px;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--card);
  color: var(--text);
  font-family: 'Source Code Pro', monospace;
  font-size: 0.94rem;
}

.anvik-phone-input:focus {
  outline: none;
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(19, 138, 145, 0.18);
}

.anvik-phone-field.is-dark .anvik-country-btn {
  border-color: rgba(148, 163, 184, 0.32);
  background: rgba(255, 255, 255, 0.08);
  color: #FFFFFF;
}

.anvik-phone-field.is-dark .anvik-dial-pill {
  border-color: rgba(148, 163, 184, 0.32);
  background: rgba(19, 138, 145, 0.22);
  color: #C3FBFF;
}

.anvik-phone-field.is-dark .anvik-phone-input {
  border-color: rgba(148, 163, 184, 0.32);
  background: rgba(7, 19, 32, 0.72);
  color: #FFFFFF;
}

.anvik-phone-field.is-dark .anvik-phone-input::placeholder {
  color: rgba(148, 163, 184, 0.75);
}

.anvik-phone-field.is-dark .anvik-phone-input:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(214, 173, 96, 0.22);
}

.anvik-phone-hint {
  margin-top: 5px;
  font-size: 0.76rem;
  color: var(--muted);
}

.anvik-phone-field.is-dark .anvik-phone-hint {
  color: rgba(203, 213, 225, 0.85);
}

.anvik-phone-hint.is-error {
  color: #DC2626 !important;
  font-weight: 700;
}

.anvik-phone-field.is-dark .anvik-phone-hint.is-error {
  color: #FCA5A5 !important;
}

.anvik-country-dropdown {
  position: absolute;
  left: 0;
  right: 0;
  top: 48px;
  z-index: 90;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--card);
  color: var(--text);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.28);
  padding: 8px;
}

.anvik-phone-field.is-dark .anvik-country-dropdown {
  background: #0B1D30;
  border-color: rgba(214, 173, 96, 0.45);
  color: #F8FAFC;
}

.anvik-country-search {
  width: 100%;
  min-height: 38px;
  padding: 7px 10px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  font-family: inherit;
  font-size: 0.86rem;
  margin-bottom: 6px;
}

.anvik-phone-field.is-dark .anvik-country-search {
  background: rgba(7, 19, 32, 0.8);
  border-color: rgba(148, 163, 184, 0.35);
  color: #FFFFFF;
}

.anvik-country-list {
  max-height: 210px;
  overflow-y: auto;
  display: grid;
  gap: 2px;
}

.anvik-country-opt {
  width: 100%;
  text-align: left;
  padding: 8px 10px;
  border: none;
  border-radius: 8px;
  background: transparent;
  color: inherit;
  font-family: inherit;
  font-size: 0.86rem;
  font-weight: 600;
  cursor: pointer;
}

.anvik-country-opt:hover,
.anvik-country-opt.active {
  background: rgba(19, 138, 145, 0.16);
}

.anvik-country-empty {
  padding: 10px;
  font-size: 0.82rem;
  color: var(--muted);
  text-align: center;
}

@media (max-width: 480px) {
  .anvik-country-btn {
    padding: 0 8px;
    font-size: 0.8rem;
  }
  .anvik-dial-pill {
    padding: 0 7px;
    font-size: 0.82rem;
  }
}
