/* Zero Gravity shared theme support
   Generated from app-light-theme.css rules that can affect dark/shared UI.
   Keep this loaded for every theme; load app-light-theme.css only for light. */

:root,
html[data-accent="blue"],
html[data-accent="neon"],
html[data-accent="orange"] {
  --accent: #4967D6;
  --accent-hover: #3F58C2;
  --accent-pressed: #344BAE;
  --accent-rgb: 73, 103, 214;
  --accent-soft: rgba(73, 103, 214, 0.11);
  --accent-faint: rgba(73, 103, 214, 0.07);
  --accent-border: rgba(73, 103, 214, 0.28);
  --accent-ring: rgba(73, 103, 214, 0.22);
  --accent-contrast: #FFFFFF;
}

html .dot-neon,
html .dot-orange,
html .accent-option[data-accent="neon"],
html .accent-option[data-accent="orange"] {
  display: none !important;
}

html[data-theme="dark"] .notification-page {
  width: min(100% - 32px, 840px);
  min-height: 100vh;
  margin: 0 auto;
  padding: 28px 0 80px;
}

html[data-theme="dark"] .notification-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
}

html[data-theme="dark"] .notification-header h1 {
  margin: 2px 0 0;
  color: var(--text-primary);
}

html[data-theme="dark"] .notification-kicker,
html[data-theme="dark"] .notification-status {
  color: var(--accent);
  font-size: 0.7rem;
  font-weight: 850;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

html[data-theme="dark"] .notification-back {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--bg-card);
  color: var(--text-primary);
}

html[data-theme="dark"] .notification-empty {
  min-height: 480px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 48px 28px;
  text-align: center;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 28px;
  box-shadow: var(--shadow-lg);
}

html[data-theme="dark"] .notification-icon {
  width: 76px;
  height: 76px;
  display: grid;
  place-items: center;
  margin-bottom: 18px;
  border: 1px solid var(--accent-border);
  border-radius: 24px;
  background: var(--accent-soft);
  color: var(--accent);
}

html[data-theme="dark"] .notification-icon svg {
  width: 34px;
  height: 34px;
}

html[data-theme="dark"] .notification-empty h2 {
  margin: 10px 0 8px;
  color: var(--text-primary);
}

html[data-theme="dark"] .notification-empty p {
  max-width: 520px;
  margin: 0 0 24px;
  color: var(--text-secondary);
  line-height: 1.65;
}

html[data-theme="dark"] .notification-empty .btn-primary {
  min-height: 44px;
  padding: 0 20px;
  background: var(--accent);
  border: 1px solid var(--accent);
  border-radius: 13px;
  color: var(--accent-contrast);
  font-weight: 800;
  box-shadow: 0 10px 24px rgba(var(--accent-rgb), 0.22);
  cursor: pointer;
}

html[data-theme="dark"] .subjects-hero,
html[data-theme="dark"] .chapters-hero,
html[data-theme="dark"] .chapter-hero,
html[data-theme="dark"] .video-hero,
html[data-theme="dark"] .lab-hero,
html[data-theme="dark"] .podcast-hero,
html[data-theme="dark"] .solved-hero,
html[data-theme="dark"] .result-hero,
html[data-theme="dark"] .hero-card,
html[data-theme="dark"] .hero-section,
html[data-theme="dark"] .card.hero,
html[data-theme="dark"] .mission-card {
  background: var(--bg-card) !important;
  background-image: none !important;
  border: 1px solid var(--border) !important;
  color: var(--text-primary) !important;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.28) !important;
}

html[data-theme="dark"] .subjects-hero::before,
html[data-theme="dark"] .subjects-hero::after,
html[data-theme="dark"] .chapters-hero::before,
html[data-theme="dark"] .chapters-hero::after,
html[data-theme="dark"] .chapter-hero::before,
html[data-theme="dark"] .chapter-hero::after,
html[data-theme="dark"] .video-hero::before,
html[data-theme="dark"] .video-hero::after,
html[data-theme="dark"] .lab-hero::before,
html[data-theme="dark"] .lab-hero::after,
html[data-theme="dark"] .hero-card::before,
html[data-theme="dark"] .hero-card::after,
html[data-theme="dark"] .mission-card::before,
html[data-theme="dark"] .mission-card::after {
  display: none !important;
  opacity: 0 !important;
}

html[data-theme="dark"] .subjects-hero h1,
html[data-theme="dark"] .subjects-hero .heading-1,
html[data-theme="dark"] .chapters-hero h1,
html[data-theme="dark"] .chapter-hero h1,
html[data-theme="dark"] .chapter-hero h2,
html[data-theme="dark"] .video-hero h1,
html[data-theme="dark"] .video-hero h2,
html[data-theme="dark"] .lab-hero h1,
html[data-theme="dark"] .podcast-hero-title,
html[data-theme="dark"] .solved-hero .hero-title,
html[data-theme="dark"] .result-hero h1,
html[data-theme="dark"] .hero-card h1,
html[data-theme="dark"] .hero-card h2,
html[data-theme="dark"] .card.hero h1,
html[data-theme="dark"] .mission-card h1,
html[data-theme="dark"] .mission-card h2,
html[data-theme="dark"] .mission-card h3 {
  color: var(--text-primary) !important;
}

html[data-theme="dark"] .subjects-hero p,
html[data-theme="dark"] .subjects-hero-subtitle,
html[data-theme="dark"] .chapters-hero p,
html[data-theme="dark"] .chapter-hero p,
html[data-theme="dark"] .chapter-hero .hero-subject,
html[data-theme="dark"] .video-hero p,
html[data-theme="dark"] .video-hero .hero-bottom,
html[data-theme="dark"] .lab-hero-sub,
html[data-theme="dark"] .podcast-hero-subtitle,
html[data-theme="dark"] .solved-hero .hero-subtitle,
html[data-theme="dark"] .result-hero p,
html[data-theme="dark"] .hero-card p,
html[data-theme="dark"] .card.hero p,
html[data-theme="dark"] .mission-card p,
html[data-theme="dark"] .mission-card span {
  color: var(--text-secondary) !important;
}

html[data-theme="dark"] #continueTitle,
html[data-theme="dark"] #missionPct {
  color: var(--text-primary) !important;
}

html[data-theme="dark"] #continueSub {
  color: var(--text-secondary) !important;
}

html[data-theme="dark"] .mission-card .mission-info > div:first-child {
  color: var(--text-muted) !important;
}

html[data-theme="dark"] #continueCard .mission-info > div[style*="height: 8px"] {
  background: var(--bg-secondary) !important;
}

html[data-theme="dark"] #continueProgress {
  background: var(--accent) !important;
}

html[data-theme="dark"] #missionRingFill {
  stroke: var(--accent) !important;
  filter: none !important;
}

html[data-theme="dark"] .hero-icon-svg,
html[data-theme="dark"] .lab-hero-badge,
html[data-theme="dark"] .podcast-hero-progress-ring {
  background: var(--bg-card2) !important;
  border: 1px solid var(--border) !important;
  color: var(--accent) !important;
}

html[data-theme="dark"] .hero-metric-pill,
html[data-theme="dark"] .hero-stats .stat-card,
html[data-theme="dark"] .chapter-hero .stat-card,
html[data-theme="dark"] .video-hero .hero-pill,
html[data-theme="dark"] .chapter-hero .stat-crumb {
  background: var(--bg-card2) !important;
  border: 1px solid var(--border) !important;
  color: var(--text-primary) !important;
}

@media (max-width: 700px) {
  html[data-theme="dark"] .dashboard-main {
    gap: 14px !important;
  }

  html[data-theme="dark"] #masteryHubSection {
    margin-bottom: 0 !important;
  }

  html[data-theme="dark"] .horizontal-mastery {
    padding-bottom: 4px !important;
    margin-bottom: 0 !important;
  }

  html[data-theme="dark"] .mission-center {
    gap: 12px !important;
    margin-top: 0 !important;
  }
}

@media (max-width: 820px) {
  html[data-theme="light"] .dashboard-main,
  html[data-theme="dark"] .dashboard-main {
    gap: 14px !important;
  }

  html[data-theme="light"] #masteryHubSection,
  html[data-theme="dark"] #masteryHubSection {
    margin-bottom: 0 !important;
  }

  html[data-theme="light"] .horizontal-mastery,
  html[data-theme="dark"] .horizontal-mastery {
    padding-bottom: 4px !important;
    margin-bottom: 0 !important;
  }

  html[data-theme="light"] .mission-center,
  html[data-theme="dark"] .mission-center {
    gap: 12px !important;
    margin-top: 0 !important;
  }
}

@media (max-width: 700px) {
  html[data-theme="light"] .subjects-hero,
  html[data-theme="dark"] .subjects-hero,
  html[data-theme="light"] .chapters-hero,
  html[data-theme="dark"] .chapters-hero,
  html[data-theme="light"] .chapter-hero,
  html[data-theme="dark"] .chapter-hero,
  html[data-theme="light"] .video-hero,
  html[data-theme="dark"] .video-hero,
  html[data-theme="light"] .podcast-hero,
  html[data-theme="dark"] .podcast-hero,
  html[data-theme="light"] .solved-hero,
  html[data-theme="dark"] .solved-hero,
  html[data-theme="light"] .result-hero,
  html[data-theme="dark"] .result-hero,
  html[data-theme="light"] .hero-card,
  html[data-theme="dark"] .hero-card,
  html[data-theme="light"] .hero-section,
  html[data-theme="dark"] .hero-section,
  html[data-theme="light"] .card.hero,
  html[data-theme="dark"] .card.hero {
    min-height: auto !important;
    padding: 12px 14px !important;
    border-radius: 16px !important;
    margin-bottom: 10px !important;
    gap: 10px !important;
  }

  html[data-theme="light"] .subjects-hero,
  html[data-theme="dark"] .subjects-hero,
  html[data-theme="light"] .chapters-hero,
  html[data-theme="dark"] .chapters-hero {
    grid-template-columns: auto minmax(0, 1fr) !important;
  }

  html[data-theme="light"] .subjects-hero h1,
  html[data-theme="dark"] .subjects-hero h1,
  html[data-theme="light"] .subjects-hero .heading-1,
  html[data-theme="dark"] .subjects-hero .heading-1,
  html[data-theme="light"] .chapters-hero h1,
  html[data-theme="dark"] .chapters-hero h1,
  html[data-theme="light"] .chapter-hero h1,
  html[data-theme="dark"] .chapter-hero h1,
  html[data-theme="light"] .chapter-title,
  html[data-theme="dark"] .chapter-title,
  html[data-theme="light"] .video-hero h1,
  html[data-theme="dark"] .video-hero h1,
  html[data-theme="light"] .podcast-hero-title,
  html[data-theme="dark"] .podcast-hero-title,
  html[data-theme="light"] .solved-hero .hero-title,
  html[data-theme="dark"] .solved-hero .hero-title,
  html[data-theme="light"] .result-hero h1,
  html[data-theme="dark"] .result-hero h1,
  html[data-theme="light"] .hero-card h1,
  html[data-theme="dark"] .hero-card h1,
  html[data-theme="light"] .hero-card h2,
  html[data-theme="dark"] .hero-card h2,
  html[data-theme="light"] .card.hero h1,
  html[data-theme="dark"] .card.hero h1 {
    font-size: clamp(1.15rem, 6vw, 1.45rem) !important;
    line-height: 1.08 !important;
    margin-top: 0 !important;
    margin-bottom: 4px !important;
    letter-spacing: 0 !important;
  }

  html[data-theme="light"] .subjects-hero p,
  html[data-theme="dark"] .subjects-hero p,
  html[data-theme="light"] .subjects-hero-subtitle,
  html[data-theme="dark"] .subjects-hero-subtitle,
  html[data-theme="light"] .chapters-hero p,
  html[data-theme="dark"] .chapters-hero p,
  html[data-theme="light"] .chapter-hero p,
  html[data-theme="dark"] .chapter-hero p,
  html[data-theme="light"] .chapter-hero .hero-subject,
  html[data-theme="dark"] .chapter-hero .hero-subject,
  html[data-theme="light"] .video-hero p,
  html[data-theme="dark"] .video-hero p,
  html[data-theme="light"] .video-hero .hero-bottom,
  html[data-theme="dark"] .video-hero .hero-bottom,
  html[data-theme="light"] .podcast-hero-subtitle,
  html[data-theme="dark"] .podcast-hero-subtitle,
  html[data-theme="light"] .solved-hero .hero-subtitle,
  html[data-theme="dark"] .solved-hero .hero-subtitle,
  html[data-theme="light"] .result-hero p,
  html[data-theme="dark"] .result-hero p,
  html[data-theme="light"] .hero-card p,
  html[data-theme="dark"] .hero-card p,
  html[data-theme="light"] .card.hero p,
  html[data-theme="dark"] .card.hero p {
    margin-top: 4px !important;
    font-size: 0.78rem !important;
    line-height: 1.32 !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
  }

  html[data-theme="light"] .hero-icon-svg,
  html[data-theme="dark"] .hero-icon-svg,
  html[data-theme="light"] .podcast-hero-progress-ring,
  html[data-theme="dark"] .podcast-hero-progress-ring,
  html[data-theme="light"] #subjectHeroIcon,
  html[data-theme="dark"] #subjectHeroIcon {
    display: none !important;
  }

  html[data-theme="light"] .hero-metrics,
  html[data-theme="dark"] .hero-metrics,
  html[data-theme="light"] .hero-stats,
  html[data-theme="dark"] .hero-stats,
  html[data-theme="light"] .chapter-hero .hero-stats,
  html[data-theme="dark"] .chapter-hero .hero-stats {
    margin-top: 8px !important;
    gap: 6px !important;
  }

  html[data-theme="light"] .hero-metric-pill,
  html[data-theme="dark"] .hero-metric-pill,
  html[data-theme="light"] .hero-stats .stat-card,
  html[data-theme="dark"] .hero-stats .stat-card,
  html[data-theme="light"] .chapter-hero .stat-card,
  html[data-theme="dark"] .chapter-hero .stat-card,
  html[data-theme="light"] .chapter-hero .stat-crumb,
  html[data-theme="dark"] .chapter-hero .stat-crumb,
  html[data-theme="light"] .video-hero .hero-pill,
  html[data-theme="dark"] .video-hero .hero-pill {
    min-height: 38px !important;
    padding: 6px 8px !important;
    border-radius: 12px !important;
  }

  html[data-theme="light"] .chapter-hero .stat-crumb span,
  html[data-theme="dark"] .chapter-hero .stat-crumb span {
    font-size: 0.9rem !important;
  }

  html[data-theme="light"] .chapter-hero .stat-crumb label,
  html[data-theme="dark"] .chapter-hero .stat-crumb label {
    margin-top: 3px !important;
    font-size: 0.48rem !important;
    letter-spacing: 0.03em !important;
  }
}

html[data-theme="dark"] #continueCard.mission-card,
html[data-theme="light"] #continueCard.mission-card {
  position: relative !important;
  isolation: isolate !important;
  min-height: 194px !important;
  padding: 34px 38px !important;
  border-radius: 28px !important;
  align-items: center !important;
  justify-content: flex-start !important;
  gap: 0 !important;
  overflow: hidden !important;
  transform: translateZ(0) !important;
}

html[data-theme="dark"] #continueCard.mission-card {
  background:
    linear-gradient(
      180deg,
      rgba(59, 130, 246, 0.14) 0%,
      rgba(59, 130, 246, 0.055) 34%,
      rgba(59, 130, 246, 0) 70%
    ),
    #101216 !important;
  border-color: rgba(96, 165, 250, 0.20) !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.065),
    0 18px 55px rgba(0, 0, 0, 0.24),
    0 -6px 30px rgba(59, 130, 246, 0.055) !important;
}

html[data-theme="dark"] #continueCard.mission-card::before,
html[data-theme="light"] #continueCard.mission-card::before {
  content: none !important;
  display: none !important;
  background: none !important;
  opacity: 0 !important;
}

html[data-theme="dark"] #continueCard.mission-card::after,
html[data-theme="light"] #continueCard.mission-card::after {
  content: none !important;
  display: none !important;
  background: none !important;
  border: 0 !important;
  box-shadow: none !important;
  opacity: 0 !important;
}

html[data-theme="dark"] #continueCard .mission-kicker,
html[data-theme="light"] #continueCard .mission-kicker {
  display: inline-flex !important;
  align-items: center !important;
  gap: 9px !important;
  margin-bottom: 12px !important;
  color: #6D5DFF !important;
  letter-spacing: 0.14em !important;
}

html[data-theme="dark"] #continueCard .mission-kicker {
  color: #8EA2FF !important;
}

html[data-theme="dark"] #continueCard .mission-kicker::before,
html[data-theme="light"] #continueCard .mission-kicker::before {
  content: "" !important;
  width: 8px !important;
  height: 8px !important;
  border-radius: 50% !important;
  background: linear-gradient(135deg, var(--accent), #38BDF8) !important;
  box-shadow: 0 0 14px rgba(var(--accent-rgb), 0.52) !important;
}

html[data-theme="dark"] #continueTitle,
html[data-theme="light"] #continueTitle {
  max-width: 720px !important;
  font-size: clamp(1.8rem, 2.7vw, 2.6rem) !important;
  font-weight: 950 !important;
  letter-spacing: -0.05em !important;
  line-height: 0.98 !important;
}

html[data-theme="dark"] #continueTitle,
html[data-theme="dark"] #missionPct {
  color: #FFFFFF !important;
}

html[data-theme="dark"] #continueSub,
html[data-theme="light"] #continueSub {
  max-width: 560px !important;
  margin-top: 12px !important;
  font-size: 0.92rem !important;
  line-height: 1.42 !important;
}

html[data-theme="dark"] #continueSub {
  color: rgba(226, 232, 240, 0.72) !important;
}

html[data-theme="dark"] #continueCard .mission-progress-track,
html[data-theme="light"] #continueCard .mission-progress-track {
  width: min(620px, 76%) !important;
  height: 9px !important;
  margin-top: 28px !important;
  overflow: hidden !important;
}

html[data-theme="dark"] #continueCard .mission-progress-track {
  background: rgba(255, 255, 255, 0.08) !important;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.35) !important;
}

html[data-theme="dark"] #continueProgress,
html[data-theme="light"] #continueProgress {
  background: linear-gradient(90deg, var(--accent), var(--accent-hover), #38BDF8) !important;
  box-shadow: 0 0 20px rgba(var(--accent-rgb), 0.34) !important;
}

html[data-theme="dark"] #continueCard .mission-ring-wrap,
html[data-theme="light"] #continueCard .mission-ring-wrap {
  position: absolute !important;
  top: 34px !important;
  right: 34px !important;
  width: auto !important;
  height: 40px !important;
  flex: 0 0 auto !important;
  display: inline-flex !important;
  flex-direction: row !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 0 15px !important;
  border-radius: 999px !important;
  background: rgba(var(--accent-rgb), 0.12) !important;
  border: 1px solid rgba(129, 140, 248, 0.16) !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.07),
    0 10px 24px rgba(var(--accent-rgb), 0.10) !important;
}

html[data-theme="dark"] #continueCard .mission-ring-wrap::before,
html[data-theme="light"] #continueCard .mission-ring-wrap::before {
  content: none !important;
}

html[data-theme="dark"] #continueCard .mission-ring-bg,
html[data-theme="light"] #continueCard .mission-ring-bg {
  stroke: rgba(148, 163, 184, 0.22) !important;
}

html[data-theme="dark"] #continueCard .mission-ring-wrap svg,
html[data-theme="light"] #continueCard .mission-ring-wrap svg {
  display: none !important;
}

html[data-theme="dark"] #missionRingFill,
html[data-theme="light"] #missionRingFill {
  stroke: var(--accent) !important;
  filter: drop-shadow(0 0 8px rgba(var(--accent-rgb), 0.40)) !important;
}

html[data-theme="dark"] #missionPct,
html[data-theme="light"] #missionPct {
  position: static !important;
  inset: auto !important;
  display: inline-flex !important;
  flex-direction: row !important;
  align-items: center !important;
  justify-content: center !important;
  margin-top: 0 !important;
  font-size: 0.98rem !important;
  line-height: 1 !important;
  font-weight: 950 !important;
  letter-spacing: -0.01em !important;
}

html[data-theme="dark"] #missionPct::after,
html[data-theme="light"] #missionPct::after {
  content: none !important;
}

html[data-theme="dark"] #continueCard:hover,
html[data-theme="light"] #continueCard:hover {
  transform: translateY(-3px) !important;
}

@media (max-width: 700px) {
  html[data-theme="dark"] #continueCard.mission-card,
  html[data-theme="light"] #continueCard.mission-card {
    min-height: 168px !important;
    padding: 26px 24px !important;
    border-radius: 22px !important;
    gap: 14px !important;
  }

  html[data-theme="dark"] #continueCard.mission-card::after,
  html[data-theme="light"] #continueCard.mission-card::after {
    width: 150px !important;
    height: 150px !important;
    right: 12px !important;
    top: 42px !important;
    opacity: 0.28 !important;
  }

  html[data-theme="dark"] #continueTitle,
  html[data-theme="light"] #continueTitle {
    font-size: 1.35rem !important;
    line-height: 1.05 !important;
  }

  html[data-theme="dark"] #continueSub,
  html[data-theme="light"] #continueSub {
    font-size: 0.78rem !important;
    margin-top: 8px !important;
  }

  html[data-theme="dark"] #continueCard .mission-progress-track,
  html[data-theme="light"] #continueCard .mission-progress-track {
    width: calc(100% - 92px) !important;
    margin-top: 18px !important;
  }

  html[data-theme="dark"] #continueCard .mission-ring-wrap,
  html[data-theme="light"] #continueCard .mission-ring-wrap {
    top: auto !important;
    right: 24px !important;
    bottom: 24px !important;
    height: 32px !important;
    padding: 0 12px !important;
  }

  html[data-theme="dark"] #missionPct,
  html[data-theme="light"] #missionPct {
    font-size: 0.84rem !important;
  }
}

body:has(.otp-container) {
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: 28px;
  background: var(--bg-primary) !important;
}

.otp-container {
  position: relative;
  width: min(100%, 900px);
  min-height: 580px;
  display: grid;
  grid-template-columns: minmax(300px, 0.92fr) minmax(390px, 1.08fr);
  overflow: hidden;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 30px;
  box-shadow: var(--shadow-lg);
}

.otp-header {
  position: absolute;
  top: 22px;
  left: 22px;
  z-index: 3;
}

.otp-header .back-button {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  padding: 0;
  color: var(--text-primary);
  background: color-mix(in srgb, var(--bg-card) 88%, transparent);
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: var(--shadow-sm);
  backdrop-filter: blur(14px);
  cursor: pointer;
}

.otp-header .back-button svg {
  width: 20px;
  height: 20px;
}

.otp-illustration {
  display: grid;
  place-items: center;
  padding: 64px 42px;
  background:
    radial-gradient(circle at 32% 24%, rgba(var(--accent-rgb), 0.18), transparent 13rem),
    var(--bg-secondary);
  border-right: 1px solid var(--border);
}

.otp-icon-wrapper {
  width: clamp(170px, 21vw, 220px);
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  color: var(--accent);
  background: var(--bg-card);
  border: 1px solid var(--accent-border);
  border-radius: 52px;
  box-shadow: 0 22px 55px rgba(var(--accent-rgb), 0.16);
}

.otp-icon-wrapper svg {
  width: 52%;
  height: 52%;
}

.otp-form-area {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
  padding: 70px 64px 58px;
}

.otp-title {
  margin: 0 0 8px;
  font-size: clamp(1.9rem, 4vw, 2.55rem);
  line-height: 1.12;
  letter-spacing: -0.045em;
}

.otp-subtitle {
  margin: 0;
  color: var(--text-secondary) !important;
  font-size: 0.94rem;
  line-height: 1.6;
}

.phone-number-display {
  color: var(--text-primary);
  font-weight: 700;
}

.otp-inputs {
  width: 100%;
  display: flex;
  justify-content: flex-start;
  gap: 12px;
  margin: 30px 0 20px;
}

input.otp-box.glass-form-input {
  flex: 0 0 58px !important;
  display: block !important;
  width: 58px !important;
  height: 64px !important;
  margin: 0 !important;
  padding: 0 !important;
  text-align: center;
  color: var(--text-primary) !important;
  background: var(--bg-card2) !important;
  border: 1px solid var(--border) !important;
  border-radius: 16px !important;
  font-size: 1.35rem !important;
  font-weight: 800;
  box-shadow: none !important;
}

input.otp-box.glass-form-input:focus {
  outline: none !important;
  background: var(--bg-card) !important;
  border-color: var(--accent) !important;
  box-shadow: 0 0 0 4px var(--accent-ring) !important;
}

.otp-submit,
.otp-submit .btn-verify {
  width: 100%;
}

.otp-submit .btn-verify {
  min-height: 50px;
  border-radius: 15px;
  font-weight: 800;
}

.otp-submit .btn-verify:disabled {
  color: var(--text-muted) !important;
  background: var(--bg-secondary) !important;
  border-color: var(--border) !important;
  box-shadow: none !important;
  opacity: 1 !important;
}

.resend-section {
  margin-top: 22px;
  text-align: center;
}

.resend-text {
  font-size: 0.86rem;
  color: var(--text-secondary);
}

.resend-link {
  color: var(--accent);
  font-weight: 800;
  cursor: pointer;
}

@media (max-width: 720px) {
  body:has(.otp-container) {
    display: block;
    padding: 12px;
  }

  .otp-container {
    min-height: calc(100svh - 24px);
    grid-template-columns: 1fr;
    grid-template-rows: 240px 1fr;
    border-radius: 24px;
  }

  .otp-header {
    top: 16px;
    left: 16px;
  }

  .otp-illustration {
    padding: 50px 24px 24px;
    border-right: 0;
    border-bottom: 1px solid var(--border);
  }

  .otp-icon-wrapper {
    width: 136px;
    border-radius: 36px;
  }

  .otp-form-area {
    justify-content: flex-start;
    padding: 34px 24px 28px;
  }

  .otp-inputs {
    justify-content: space-between;
    gap: 8px;
    margin-top: 24px;
  }

  input.otp-box.glass-form-input {
    flex-basis: clamp(50px, 15vw, 58px) !important;
    width: clamp(50px, 15vw, 58px) !important;
    height: 60px !important;
    border-radius: 14px !important;
  }
}