@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Poppins:wght@500;600;700&display=swap');

:root {
  --chyber-deep: #1e3a8a;
  --chyber-cyan: #06b6d4;
  --chyber-gold: #facc15;
  --chyber-gray: #f8fafc;
  --chyber-dark: #0f172a;
  --gradient-dark: linear-gradient(135deg, #0f172a 0%, #1e3a8a 45%, #06b6d4 100%);
  --gradient-light: linear-gradient(135deg, rgba(6, 182, 212, 0.06) 0%, rgba(30, 58, 138, 0.08) 50%, rgba(250, 204, 21, 0.12) 100%);
  --glass-bg: rgba(15, 23, 42, 0.55);
  --glass-border: rgba(148, 163, 184, 0.25);
}

html,
body {
  width: 100%;
  overflow-x: hidden;
}

body {
  font-family: 'Inter', 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--gradient-light);
  color: #0f172a;
  min-height: 100vh;
}

.dark body {
  background: var(--gradient-dark);
  color: #e2e8f0;
}

/* Re-assert Tailwind spacing helpers so custom styles never suppress them */
.mt-1 { margin-top: 0.25rem !important; }
.mt-2 { margin-top: 0.5rem !important; }
.mt-3 { margin-top: 0.75rem !important; }
.mt-4 { margin-top: 1rem !important; }
.mt-6 { margin-top: 1.5rem !important; }
.mt-8 { margin-top: 2rem !important; }
.mt-10 { margin-top: 2.5rem !important; }
.mt-12 { margin-top: 3rem !important; }

.space-y-6 > :not([hidden]) ~ :not([hidden]) {
  margin-top: 1.5rem !important;
}

.card-glass {
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 30px 60px -25px rgba(15, 23, 42, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(18px);
  border-radius: 1.25rem;
}

.dark .card-glass {
  background: rgba(15, 23, 42, 0.8);
  border-color: rgba(148, 163, 184, 0.25);
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  background: linear-gradient(135deg, var(--chyber-cyan), var(--chyber-deep));
  color: #0f172a;
  font-weight: 600;
  border-radius: 0.75rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 20px 30px -15px rgba(6, 182, 212, 0.75);
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  border: 1px solid rgba(15, 23, 42, 0.12);
  border-radius: 0.75rem;
  color: var(--chyber-deep);
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.btn-outline:hover {
  border-color: var(--chyber-cyan);
  transform: translateY(-2px);
}

.dark .btn-outline {
  color: #e2e8f0;
  border-color: rgba(148, 163, 184, 0.25);
}

.btn-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 1rem;
  border: 1px solid rgba(15, 23, 42, 0.12);
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 18px 32px -22px rgba(15, 23, 42, 0.55);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
  color: var(--chyber-deep);
}

.btn-icon:hover {
  transform: translateY(-2px);
  border-color: rgba(6, 182, 212, 0.35);
  box-shadow: 0 24px 38px -24px rgba(6, 182, 212, 0.65);
}

.btn-icon:focus-visible {
  outline: 2px solid rgba(6, 182, 212, 0.4);
  outline-offset: 2px;
}

.btn-icon__glyph {
  width: 20px;
  height: 20px;
}

.dark .btn-icon {
  background: rgba(15, 23, 42, 0.78);
  border-color: rgba(148, 163, 184, 0.22);
  color: #f1f5f9;
  box-shadow: 0 20px 38px -26px rgba(15, 23, 42, 0.9);
}

.dark .btn-icon:hover {
  border-color: rgba(6, 182, 212, 0.55);
  box-shadow: 0 26px 46px -28px rgba(6, 182, 212, 0.6);
}

.badge-premium {
  background: rgba(6, 182, 212, 0.15);
  color: var(--chyber-deep);
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  font-weight: 500;
  font-size: 0.75rem;
}

.dark .badge-premium {
  background: rgba(6, 182, 212, 0.2);
  color: #f8fafc;
}

.tag-coming {
  background: rgba(250, 204, 21, 0.2);
  color: var(--chyber-dark);
  font-size: 0.75rem;
  border-radius: 999px;
  padding: 0.25rem 0.6rem;
}

.dark .tag-coming {
  color: #facc15;
}

.table-premium tbody tr {
  transition: background 0.15s ease;
}

.table-premium tbody tr:hover {
  background: rgba(6, 182, 212, 0.08);
}

.nav-glass {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(148, 163, 184, 0.15);
}

.dark .nav-glass {
  background: rgba(15, 23, 42, 0.85);
}

.status-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  background: rgba(6, 182, 212, 0.12);
  border: 1px solid rgba(6, 182, 212, 0.35);
  border-radius: 999px;
  padding: 0.45rem 0.95rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--chyber-dark);
  box-shadow: 0 12px 28px -20px rgba(6, 182, 212, 0.6);
  animation: glowPulse 3.2s ease-in-out infinite;
}

.dark .status-chip {
  background: rgba(15, 23, 42, 0.72);
  color: #f8fafc;
  border-color: rgba(6, 182, 212, 0.42);
  box-shadow: 0 18px 34px -26px rgba(15, 23, 42, 0.95);
}

.status-dot {
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 999px;
  background: #10b981;
  box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.16);
}

.btn-soft {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  border-radius: 0.85rem;
  border: 1px solid rgba(148, 163, 184, 0.16);
  background: rgba(15, 23, 42, 0.04);
  color: var(--chyber-dark);
  font-weight: 600;
  letter-spacing: 0.02em;
  transition: all 0.2s ease;
  cursor: pointer;
}

.btn-soft:hover {
  background: rgba(6, 182, 212, 0.14);
  border-color: rgba(6, 182, 212, 0.4);
}

.dark .btn-soft {
  background: rgba(15, 23, 42, 0.66);
  color: #e2e8f0;
  border-color: rgba(148, 163, 184, 0.24);
}

.dark .btn-soft:hover {
  background: rgba(6, 182, 212, 0.2);
  border-color: rgba(6, 182, 212, 0.48);
}

.quick-nav-scroll {
  display: flex;
  gap: 0.75rem;
  overflow-x: auto;
  padding-bottom: 0.35rem;
  margin: 0 -0.25rem;
  scroll-snap-type: x mandatory;
}

.quick-nav-scroll::-webkit-scrollbar {
  display: none;
}

.quick-nav-link {
  flex: 0 0 auto;
  scroll-snap-align: start;
  padding: 0.55rem 1.05rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.75);
  border: 1px solid rgba(148, 163, 184, 0.2);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--chyber-dark);
  transition: all 0.2s ease;
  position: relative;
}

.quick-nav-link.active {
  background: linear-gradient(135deg, rgba(6, 182, 212, 0.2), rgba(30, 58, 138, 0.32));
  border-color: rgba(6, 182, 212, 0.46);
  color: #0f172a;
  box-shadow: 0 16px 32px -26px rgba(6, 182, 212, 0.9);
}

.quick-nav-link:focus-visible {
  outline: 2px solid rgba(6, 182, 212, 0.6);
  outline-offset: 2px;
}

.dark .quick-nav-link {
  background: rgba(15, 23, 42, 0.7);
  border-color: rgba(148, 163, 184, 0.16);
  color: #e2e8f0;
}

.dark .quick-nav-link.active {
  background: linear-gradient(135deg, rgba(6, 182, 212, 0.22), rgba(15, 23, 42, 0.8));
  border-color: rgba(6, 182, 212, 0.52);
  color: #f8fafc;
}

.performance-panel {
  padding-right: 0.25rem;
}

.performance-track {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 0.5rem 0 0.65rem;
  margin-right: -1rem;
  padding-right: 1rem;
}

.performance-track::-webkit-scrollbar {
  display: none;
}

.performance-chip {
  position: relative;
  flex: 0 0 calc(75vw);
  min-width: 220px;
  max-width: 280px;
  border-radius: 1.25rem;
  border: 1px solid rgba(148, 163, 184, 0.16);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.95), rgba(248, 250, 252, 0.82));
  padding: 1.15rem 1.25rem;
  box-shadow: 0 24px 38px -32px rgba(15, 23, 42, 0.85);
  opacity: 0;
  transform: translateY(16px);
  transition: transform 0.35s ease, opacity 0.35s ease, box-shadow 0.28s ease;
  scroll-snap-align: start;
  overflow: hidden;
}

.performance-chip::after {
  content: '';
  position: absolute;
  inset: auto -35% -45% auto;
  width: 140px;
  height: 140px;
  background: radial-gradient(circle at center, rgba(6, 182, 212, 0.28), transparent 72%);
  opacity: 0.85;
  pointer-events: none;
  transform: rotate(28deg);
}

.performance-chip.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.performance-chip:hover {
  box-shadow: 0 28px 48px -28px rgba(6, 182, 212, 0.55);
}

.performance-chip .metric-label {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #64748b;
}

.performance-chip .metric-value {
  font-size: 1.8rem;
  font-weight: 600;
  color: #0f172a;
  margin-top: 0.35rem;
}

.performance-chip .metric-delta {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.75rem;
  font-weight: 600;
  background: rgba(6, 182, 212, 0.18);
  color: #0f172a;
  border-radius: 999px;
  padding: 0.25rem 0.65rem;
  margin-top: 0.9rem;
}

.performance-chip .metric-delta.positive {
  background: rgba(16, 185, 129, 0.16);
  color: #047857;
}

.performance-chip .metric-delta.negative {
  background: rgba(248, 113, 113, 0.18);
  color: #b91c1c;
}

.performance-chip .metric-delta.steady {
  background: rgba(148, 163, 184, 0.22);
  color: #475569;
}

.performance-chip .metric-delta .delta-icon {
  display: inline-flex;
  align-items: center;
  width: 0.75rem;
  height: 0.75rem;
}

.performance-chip .metric-delta .delta-copy {
  display: inline-block;
}

.performance-chip svg {
  width: 100%;
  height: 48px;
  margin-top: 1rem;
}

.performance-chip svg path {
  fill: none;
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-dasharray: var(--spark-length, 160);
  stroke-dashoffset: var(--spark-length, 160);
  animation: drawSpark 1.65s ease forwards, sparkPulse 5s ease-in-out infinite 1.65s;
  stroke: rgba(6, 182, 212, 0.7);
}

.dark .performance-chip {
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.9), rgba(15, 23, 42, 0.78));
  border-color: rgba(148, 163, 184, 0.12);
  box-shadow: 0 28px 44px -30px rgba(15, 23, 42, 0.95);
}

.dark .performance-chip .metric-label {
  color: #cbd5f5;
}

.dark .performance-chip .metric-value {
  color: #f8fafc;
}

.dark .performance-chip .metric-delta {
  color: #22d3ee;
  background: rgba(6, 182, 212, 0.22);
}

.dark .performance-chip .metric-delta.positive {
  background: rgba(16, 185, 129, 0.24);
  color: #6ee7b7;
}

.dark .performance-chip .metric-delta.negative {
  background: rgba(248, 113, 113, 0.2);
  color: #fecaca;
}

.dark .performance-chip .metric-delta.steady {
  background: rgba(148, 163, 184, 0.22);
  color: #cbd5f5;
}

.dark .performance-chip svg path {
  stroke: rgba(94, 234, 212, 0.7);
}

@keyframes glowPulse {
  0%,
  100% {
    box-shadow: 0 12px 28px -22px rgba(6, 182, 212, 0.6);
  }
  50% {
    box-shadow: 0 14px 34px -20px rgba(6, 182, 212, 0.75);
  }
}

@keyframes drawSpark {
  from {
    stroke-dashoffset: var(--spark-length, 160);
  }
  to {
    stroke-dashoffset: 0;
  }
}

@keyframes sparkPulse {
  0%,
  100% {
    opacity: 0.65;
  }
  50% {
    opacity: 1;
  }
}

@media (min-width: 768px) {
  .performance-panel {
    padding-right: 0;
  }

  .performance-track {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    overflow: visible;
    margin-right: 0;
    padding-right: 0;
    gap: 1.25rem;
  }

  .performance-chip {
    flex: initial;
    min-width: 0;
    max-width: none;
  }
}

.gradient-icon {
  background: linear-gradient(135deg, rgba(6, 182, 212, 0.18), rgba(250, 204, 21, 0.22));
  border-radius: 1rem;
}

.metric-card {
  border-radius: 1.15rem;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 24px 45px -30px rgba(15, 23, 42, 0.45);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.metric-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 28px 65px -35px rgba(6, 182, 212, 0.45);
}

.dark .metric-card {
  background: rgba(15, 23, 42, 0.85);
}

.layout-shell {
  height: 100vh;
  max-height: 100vh;
  width: 100%;
  overflow: hidden;
}

.layout-main {
  display: flex;
  flex-direction: column;
  height: 100vh;
  max-height: 100vh;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.layout-main > header,
.layout-main > main {
  flex-shrink: 0;
}

.layout-main > main {
  flex: 1 1 auto;
}

.sidebar {
  background: rgba(15, 23, 42, 0.9);
  backdrop-filter: blur(14px);
  border-right: 1px solid rgba(148, 163, 184, 0.18);
  display: flex;
  flex-direction: column;
  align-self: flex-start;
  height: 100vh;
  max-height: 100vh;
  overflow-y: auto;
  flex: 0 0 auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(148, 163, 184, 0.35) transparent;
}

.sidebar::-webkit-scrollbar {
  width: 8px;
}

.sidebar::-webkit-scrollbar-track {
  background: transparent;
}

.sidebar::-webkit-scrollbar-thumb {
  background: rgba(148, 163, 184, 0.35);
  border-radius: 999px;
}

.sidebar__nav {
  flex: 1 1 auto;
}

.sidebar__link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  border-radius: 0.85rem;
  color: rgba(226, 232, 240, 0.9);
  font-weight: 500;
  transition: background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.sidebar__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 0.9rem;
  background: rgba(255, 255, 255, 0.08);
  color: inherit;
  flex-shrink: 0;
  transition: background 0.2s ease, color 0.2s ease;
}

.sidebar__icon-svg {
  width: 1.25rem;
  height: 1.25rem;
}

.sidebar__label {
  flex: 1 1 auto;
  line-height: 1.3;
}

.sidebar__link:hover,
.sidebar__link.active {
  background: rgba(6, 182, 212, 0.18);
  color: #0f172a;
  box-shadow: 0 16px 36px -28px rgba(6, 182, 212, 0.65);
}

.sidebar__link:hover .sidebar__icon,
.sidebar__link.active .sidebar__icon {
  background: rgba(255, 255, 255, 0.92);
  color: #0f172a;
}

.dark .sidebar {
  background: rgba(2, 6, 23, 0.9);
}

.dark .sidebar__link {
  color: rgba(226, 232, 240, 0.85);
}

.dark .sidebar__link:hover,
.dark .sidebar__link.active {
  background: rgba(6, 182, 212, 0.2);
  color: #f8fafc;
  box-shadow: 0 18px 38px -28px rgba(6, 182, 212, 0.55);
}

.dark .sidebar__link:hover .sidebar__icon,
.dark .sidebar__link.active .sidebar__icon {
  background: rgba(6, 182, 212, 0.25);
  color: #0f172a;
}

.sidebar-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(2, 6, 23, 0.55);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
  z-index: 30;
}

.sidebar-backdrop.visible {
  opacity: 1;
  pointer-events: auto;
}

.mobile-nav {
  position: fixed;
  top: 0;
  right: -100%;
  width: 280px;
  height: 100vh;
  background: rgba(15, 23, 42, 0.96);
  backdrop-filter: blur(14px);
  padding: 1.75rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  transition: right 0.25s ease;
  z-index: 50;
  color: #e2e8f0;
}

.mobile-nav.open {
  right: 0;
}

.mobile-nav a {
  display: block;
  padding: 0.65rem 0;
  font-size: 0.95rem;
}

.mobile-nav-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.55);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
  z-index: 40;
}

.mobile-nav-backdrop.visible {
  opacity: 1;
  pointer-events: auto;
}

.mobile-nav .btn-primary,
.mobile-nav .btn-outline {
  width: 100%;
}

@media (max-width: 1024px) {
  .sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    width: 80%;
    max-width: 320px;
    transform: translateX(-105%);
    transition: transform 0.25s ease;
    z-index: 60;
    height: 100vh;
  }

  .sidebar.open {
    transform: translateX(0);
  }
}

@media (min-width: 1024px) {
  .sidebar {
    position: sticky;
    top: 0;
    width: 18rem;
    transform: none !important;
  }

  .sidebar-backdrop {
    display: none;
  }
}

@media (min-width: 768px) {
  .mobile-nav,
  .mobile-nav-backdrop {
    display: none;
  }
}

.dark [class*="bg-white"] {
  background-color: rgba(15, 23, 42, 0.82) !important;
  color: #e2e8f0;
}

.dark [class*="bg-slate-50"],
.dark [class*="bg-slate-100"],
.dark [class*="bg-slate-200"] {
  background-color: rgba(15, 23, 42, 0.75) !important;
  color: #e2e8f0;
}

.dark [class*="text-slate-900"],
.dark [class*="text-slate-800"] {
  color: #f8fafc !important;
}

.dark [class*="text-slate-600"],
.dark [class*="text-slate-500"],
.dark [class*="text-slate-400"] {
  color: #cbd5f5 !important;
}

.dark [class*="border-slate-200"],
.dark [class*="border-slate-300"] {
  border-color: rgba(148, 163, 184, 0.35) !important;
}

.dark .btn-outline {
  border-color: rgba(148, 163, 184, 0.35);
  color: #e2e8f0;
  background-color: rgba(15, 23, 42, 0.55);
}

.dark .btn-outline:hover {
  border-color: rgba(6, 182, 212, 0.65);
}

.dark .card-glass p,
.dark .card-glass span,
.dark .card-glass h3,
.dark .card-glass h2,
.dark .card-glass h1 {
  color: inherit;
}

.flow-card {
  border-radius: 1.25rem;
  border: 1px dashed rgba(15, 23, 42, 0.15);
  background: rgba(255, 255, 255, 0.85);
}

.dark .flow-card {
  background: rgba(15, 23, 42, 0.8);
  border-color: rgba(148, 163, 184, 0.2);
}

.pricing-card {
  border-radius: 1.2rem;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 24px 45px -30px rgba(30, 58, 138, 0.45);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.pricing-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 36px 65px -35px rgba(6, 182, 212, 0.55);
}

.dark .pricing-card {
  background: rgba(15, 23, 42, 0.88);
}

.footer-links a {
  opacity: 0.85;
  transition: opacity 0.2s ease;
}

.footer-links a:hover {
  opacity: 1;
}

.table-billing th {
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.table-billing td,
.table-billing th {
  padding: 0.75rem 1rem;
}

.chart-placeholder {
  border-radius: 1.25rem;
  background: radial-gradient(circle at top, rgba(6, 182, 212, 0.18), rgba(30, 58, 138, 0.45));
  min-height: 260px;
  position: relative;
  overflow: hidden;
}
canvas {
  max-width: 100%;
}

.chart-placeholder::before {
  content: '';
  position: absolute;
  width: 65%;
  height: 65%;
  border-radius: 50%;
  top: -20%;
  right: -10%;
  background: rgba(250, 204, 21, 0.18);
}

.theme-switcher {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.35rem 0.85rem 0.35rem 0.55rem;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.25);
  background: rgba(255, 255, 255, 0.78);
  color: var(--chyber-dark);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease;
  position: relative;
  overflow: hidden;
  cursor: pointer;
}

.theme-switcher:hover {
  border-color: rgba(6, 182, 212, 0.35);
  box-shadow: 0 12px 28px -20px rgba(6, 182, 212, 0.45);
}

.theme-switcher__track {
  position: relative;
  width: 56px;
  height: 28px;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(148, 163, 184, 0.35), rgba(148, 163, 184, 0.18));
  border: 1px solid rgba(148, 163, 184, 0.3);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 8px;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.theme-switcher__thumb {
  position: absolute;
  width: 22px;
  height: 22px;
  border-radius: 999px;
  background: #ffffff;
  top: 3px;
  left: 3px;
  box-shadow: 0 10px 22px -12px rgba(15, 23, 42, 0.6);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.theme-switcher__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 14px;
  height: 14px;
  opacity: 0.7;
  transition: opacity 0.22s ease, transform 0.22s ease;
}

.theme-switcher__icon svg {
  width: 100%;
  height: 100%;
}

.theme-switcher__icon--sun {
  color: #f59e0b;
}

.theme-switcher__icon--moon {
  color: #6366f1;
}

.theme-switcher__label {
  pointer-events: none;
}

.theme-switcher.active .theme-switcher__thumb {
  transform: translateX(24px);
  box-shadow: 0 12px 26px -12px rgba(6, 182, 212, 0.6);
}

.theme-switcher.active .theme-switcher__icon--moon {
  opacity: 1;
  transform: scale(1.08);
}

.theme-switcher:not(.active) .theme-switcher__icon--sun {
  opacity: 1;
  transform: scale(1.05);
}

.theme-switcher.active {
  background: rgba(15, 23, 42, 0.86);
  color: #e2e8f0;
  border-color: rgba(6, 182, 212, 0.45);
  box-shadow: 0 16px 34px -26px rgba(6, 182, 212, 0.55);
}

.theme-switcher.active .theme-switcher__track {
  background: linear-gradient(135deg, rgba(6, 182, 212, 0.6), rgba(30, 58, 138, 0.65));
  border-color: rgba(6, 182, 212, 0.55);
}

.dark .theme-switcher {
  background: rgba(15, 23, 42, 0.76);
  border-color: rgba(148, 163, 184, 0.28);
  color: #e2e8f0;
}

.dark .theme-switcher:hover {
  border-color: rgba(6, 182, 212, 0.5);
}

.dark .theme-switcher__track {
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.85), rgba(15, 23, 42, 0.65));
  border-color: rgba(148, 163, 184, 0.28);
}

.dark .theme-switcher.active {
  background: rgba(6, 182, 212, 0.16);
  border-color: rgba(6, 182, 212, 0.5);
  color: #f8fafc;
  box-shadow: 0 18px 40px -28px rgba(6, 182, 212, 0.55);
}

.dark .theme-switcher.active .theme-switcher__track {
  background: linear-gradient(135deg, rgba(6, 182, 212, 0.65), rgba(30, 64, 175, 0.6));
  border-color: rgba(6, 182, 212, 0.45);
}

.gradient-divider {
  height: 1px;
  background: linear-gradient(90deg, rgba(15, 23, 42, 0), rgba(6, 182, 212, 0.45), rgba(15, 23, 42, 0));
  margin: 1.5rem 0;
}

.modal {
  display: none;
}

@media (max-width: 768px) {
  .card-glass {
    padding: 1.5rem !important;
  }

  .nav-glass .max-w-7xl,
  .nav-glass .max-w-6xl,
  .nav-glass .max-w-5xl {
    gap: 1rem;
  }

  .metric-card {
    padding: 1.5rem;
  }

  .flow-card {
    padding: 1.5rem;
  }
}

@media (max-width: 640px) {
  .btn-primary,
  .btn-outline {
    min-height: 44px;
  }

  .badge-premium {
    font-size: 0.7rem;
  }
}

.modal.is-open {
  display: block;
}

.modal__overlay {
  background: rgba(15, 23, 42, 0.55);
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  z-index: 50;
  opacity: 0;
  backdrop-filter: blur(12px);
}

.modal__container {
  background: #ffffff;
  border-radius: 1.25rem;
  padding: 1.5rem;
  max-height: 90vh;
  overflow-y: auto;
  color: #0f172a;
  opacity: 0;
  transform: translate3d(0, 24px, 0) scale(0.96);
  transform-origin: top center;
  will-change: transform, opacity;
}

.micromodal-slide[aria-hidden="false"] .modal__overlay {
  animation: chyberModalFadeIn 0.24s ease forwards;
}

.micromodal-slide[aria-hidden="false"] .modal__container {
  animation: chyberModalReveal 0.32s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.micromodal-slide[aria-hidden="true"] .modal__overlay {
  animation: chyberModalFadeOut 0.26s ease forwards;
}

.micromodal-slide[aria-hidden="true"] .modal__container {
  animation: chyberModalDismiss 0.28s cubic-bezier(0.55, 0.06, 0.68, 0.19) forwards;
}

.modal__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.modal__title {
  margin: 0;
}

.modal__close {
  background: none;
  border: none;
  font-size: 1.25rem;
  line-height: 1;
  color: #64748b;
  cursor: pointer;
}

.dark .modal__container {
  background: rgba(15, 23, 42, 0.95);
  color: #e2e8f0;
}

@keyframes chyberModalFadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes chyberModalFadeOut {
  from {
    opacity: 1;
  }
  to {
    opacity: 0;
  }
}

@keyframes chyberModalReveal {
  0% {
    opacity: 0;
    transform: translate3d(0, 36px, 0) scale(0.9) rotateX(8deg);
  }
  55% {
    opacity: 1;
    transform: translate3d(0, -10px, 0) scale(1.02) rotateX(0deg);
  }
  100% {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1);
  }
}

@keyframes chyberModalDismiss {
  0% {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1);
  }
  50% {
    opacity: 0.8;
    transform: translate3d(0, -16px, 0) scale(0.97);
  }
  100% {
    opacity: 0;
    transform: translate3d(0, 42px, 0) scale(0.88);
  }
}

