:root {
  color-scheme: dark;
  --color-background: #0b0b10;
  --color-surface: rgba(18, 17, 27, 0.6);
  --color-surface-strong: rgba(18, 17, 27, 0.85);
  --color-primary: #8b5cf6;
  --color-secondary: #00e5ff;
  --color-accent: #f472b6;
  --color-text: #ffffff;
  --color-text-muted: #b3b3b3;
  --color-border: rgba(139, 92, 246, 0.4);
  --glass-border: rgba(255, 255, 255, 0.08);
  --gradient-text-image: linear-gradient(120deg, var(--color-primary), var(--color-secondary));
  --shadow-strong: 0 24px 60px rgba(11, 11, 16, 0.8);
  --shadow-soft: 0 12px 40px rgba(0, 229, 255, 0.1);
  --radius-large: 36px;
  --radius-medium: 20px;
  --radius-small: 16px;
  --header-height: 80px;
  --transition-base: 0.4s ease-in-out;
}

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

html,
body {
  margin: 0;
  padding: 0;
  font-family: "Sora", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  background: var(--color-background);
  color: var(--color-text);
  min-height: 100%;
  scroll-behavior: smooth;
  overscroll-behavior: none;
}

body {
  position: relative;
  overflow-x: hidden;
  touch-action: pan-y;
}

main section {
  scroll-margin-top: calc(var(--header-height) + 32px);
  display: block;
  visibility: visible;
  min-height: 60vh;
  padding: 80px 0;
}

.section-header {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  text-align: center;
}

.section-header h2 {
  font-size: 2.5rem;
  font-weight: 600;
  margin-bottom: 16px;
  background: var(--gradient-text-image);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-body {
  font-size: 1.125rem;
  color: var(--color-text-muted);
  max-width: 600px;
  margin: 0 auto;
}

.page-background {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -2;
  background: radial-gradient(circle at 20% 20%, rgba(139, 92, 246, 0.12), transparent 45%),
    radial-gradient(circle at 80% 0%, rgba(0, 229, 255, 0.16), transparent 50%),
    radial-gradient(circle at 50% 80%, rgba(244, 114, 182, 0.12), transparent 55%);
}

.particle-canvas {
  width: 100%;
  height: 100%;
  display: block;
}

.radial-glow {
  position: absolute;
  width: 560px;
  height: 560px;
  filter: blur(180px);
  opacity: 0.4;
  z-index: -1;
}

.radial-glow--violet {
  background: rgba(139, 92, 246, 0.9);
  top: 20%;
  left: -160px;
}

.radial-glow--cyan {
  background: rgba(0, 229, 255, 0.8);
  bottom: 10%;
  right: -220px;
}

.main-header {
  position: sticky;
  top: 0;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  z-index: 20;
  padding: 12px 0;
}

.header-blur {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(11, 11, 16, 0.85), rgba(11, 11, 16, 0.35));
  border-bottom: 1px solid rgba(139, 92, 246, 0.2);
  box-shadow: 0 24px 48px rgba(11, 11, 16, 0.65);
  z-index: -1;
}

.header-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 14px;
}

.brand>div {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.brand-name {
  white-space: normal;
  word-break: break-word;
  line-height: 1.3;
  max-width: 100%;
}

.brand-logo {
  display: inline-block;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
  position: relative;
  box-shadow: 0 0 24px rgba(139, 92, 246, 0.4);
}

.admin-theme .brand-logo {
  background: linear-gradient(135deg, #ff6b35, #f7931e);
  box-shadow: 0 0 24px rgba(255, 107, 53, 0.4);
}

.brand-logo::before {
  content: "";
  position: absolute;
  inset: 6px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.25);
  box-shadow: inset 0 0 12px rgba(0, 229, 255, 0.2);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  font-family: "Space Grotesk", sans-serif;
}

.nav-links a {
  color: var(--color-text-muted);
  text-decoration: none;
  font-size: 14px;
  letter-spacing: 0.04em;
  transition: color var(--transition-base);
}

.nav-links a:hover {
  color: var(--color-text);
}

.cta-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 24px;
  background: radial-gradient(circle at 30% 30%, rgba(0, 229, 255, 0.9), rgba(139, 92, 246, 0.9));
  border-radius: 999px;
  box-shadow: 0 12px 40px rgba(0, 229, 255, 0.35);
  color: #020203;
  font-weight: 600;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.cta-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 50px rgba(0, 229, 255, 0.6);
}

.menu-toggle {
  display: none;
  background: transparent;
  border: none;
  width: 44px;
  height: 44px;
  padding: 10px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  position: relative;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
  z-index: 100;
}

.menu-toggle span {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--color-text);
  border-radius: 999px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.menu-toggle span:not(:last-child) {
  margin-bottom: 6px;
}

.menu-toggle.is-active span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.menu-toggle.is-active span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.is-active span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

.mobile-nav {
  display: none;
  flex-direction: column;
  padding: 16px 32px 24px;
  gap: 18px;
  background: rgba(11, 11, 16, 0.95);
  border-bottom: 1px solid rgba(139, 92, 246, 0.3);
}

.mobile-nav a {
  color: var(--color-text);
  text-decoration: none;
  font-family: "Space Grotesk", sans-serif;
  letter-spacing: 0.06em;
}

main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 72px 32px 76px;
  display: flex;
  flex-direction: column;
  gap: 112px;
  scroll-margin-top: calc(var(--header-height) + 32px);
}

.hero {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(56px, 9vw, 140px);
  align-items: flex-start;
  position: relative;
  padding-top: 16px;
}

.hero-content {
  display: flex;
  flex-direction: column;
  gap: 28px;
  position: relative;
  z-index: 2;
}

.hero-tag {
  color: var(--color-secondary);
  font-family: "Space Grotesk", sans-serif;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-size: 13px;
}

.hero-title {
  font-size: clamp(44px, 6vw, 68px);
  line-height: 1.05;
  margin: 0;
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.hero-title--stacked .hero-title__line {
  display: block;
  line-height: 1;
}

.hero-title__line+.hero-title__line {
  margin-top: 4px;
}

.hero-title__line:last-child {
  margin-top: -6px;
}

.hero-title--stacked .hero-dynamic {
  margin-top: 0;
}

.hero-dynamic {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding-block: 0;
  perspective: 1200px;
}

.hero-dynamic__words {
  min-width: 150px;
  min-height: 1.2em;
  display: inline-flex;
  align-items: center;
  position: relative;
  overflow: visible;
}

.hero-dynamic__cursor {
  width: 2px;
  height: 1.1em;
  background: currentColor;
  animation: heroCursorBlink 1s steps(2, start) infinite;
}

.hero-dynamic[data-effect="vertical"] {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding-block: 0;
  perspective: 1400px;
}

.hero-dynamic[data-effect="vertical"] .hero-dynamic__cursor {
  display: none;
}

.hero-dynamic[data-effect="vertical"] .hero-dynamic__words {
  position: relative;
  display: grid;
  align-items: center;
  justify-items: start;
  min-width: var(--hero-dynamic-width, 150px);
  min-height: var(--hero-dynamic-height, 95px);
  line-height: 1.2em;
  padding: 5px 0;
  overflow: visible;
  isolation: isolate;
}

.hero-dynamic[data-effect="vertical"] .hero-dynamic__word {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  grid-area: 1 / 1;
  opacity: 0;
  color: inherit;
  backface-visibility: hidden;
  font-size: inherit;
  font-weight: inherit;
  letter-spacing: inherit;
  text-transform: inherit;
  line-height: 1.2em;
  transform-origin: center;
}

.hero-dynamic[data-effect="vertical"] .hero-dynamic__word.is-current {
  opacity: 1;
}

.hero-dynamic[data-effect="vertical"] .hero-dynamic__word.is-leaving {
  z-index: 1;
}

@supports ((-webkit-background-clip: text) or (background-clip: text)) {
  .hero-dynamic[data-effect="vertical"] .hero-dynamic__word {
    background-image: var(--gradient-text-image);
    background-size: 200% 200%;
    background-position: 50% 50%;
    background-repeat: no-repeat;
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent;
  }
}

.hero-dynamic[data-effect="typewriter"] .hero-dynamic__words {
  overflow: hidden;
  white-space: nowrap;
}

@keyframes heroCursorBlink {

  0%,
  49% {
    opacity: 1;
  }

  50%,
  100% {
    opacity: 0;
  }
}


.gradient-text {
  color: var(--color-text);
}

@supports ((-webkit-background-clip: text) or (background-clip: text)) {
  .gradient-text {
    background-image: var(--gradient-text-image);
    background-size: 200% 200%;
    background-position: 50% 50%;
    background-repeat: no-repeat;
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent;
  }
}

.hero-subtitle {
  font-size: 18px;
  line-height: 1.6;
  color: var(--color-text-muted);
  max-width: 520px;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 18px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 999px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-decoration: none;
  border: none;
  cursor: pointer;
  text-transform: uppercase;
  font-size: 14px;
  transition: transform var(--transition-base), box-shadow var(--transition-base),
    background-size 0.4s ease;
}

.button--primary {
  background-image: linear-gradient(120deg, var(--color-primary), var(--color-secondary));
  background-size: 150% 150%;
  color: #020203;
  box-shadow: 0 16px 40px rgba(139, 92, 246, 0.35);
}

.button--primary:hover {
  transform: translateY(-3px);
  background-position: 100% 0;
  box-shadow: 0 20px 50px rgba(139, 92, 246, 0.55);
}

.button.is-loading {
  cursor: wait;
  opacity: 0.7;
  box-shadow: none;
}

.button.is-success {
  background-image: linear-gradient(120deg, #22d3ee, #34d399);
  color: #020203;
  box-shadow: 0 16px 40px rgba(34, 211, 238, 0.38);
}

.button.is-error {
  background-image: linear-gradient(120deg, #f472b6, #fb7185);
  color: #2f0a17;
  box-shadow: 0 16px 40px rgba(244, 114, 182, 0.35);
}

.button--ghost {
  border: 1px solid rgba(0, 229, 255, 0.6);
  color: var(--color-secondary);
  background-color: rgba(11, 11, 16, 0.3);
  box-shadow: inset 0 0 18px rgba(0, 229, 255, 0.15);
  position: relative;
}

.button--ghost::after {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  border: 1px solid rgba(0, 229, 255, 0.3);
}

.button--ghost:hover {
  transform: translateY(-3px);
  box-shadow: inset 0 0 20px rgba(0, 229, 255, 0.3);
}

.hero-stats {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 24px 32px;
  background: rgba(15, 16, 26, 0.7);
  border-radius: var(--radius-medium);
  border: 1px solid rgba(139, 92, 246, 0.3);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.stat-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.stat-value {
  font-size: 28px;
  font-weight: 600;
  letter-spacing: 0.08em;
}

.stat-label {
  font-size: 14px;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.divider {
  width: 1px;
  height: 42px;
  background: linear-gradient(to bottom, transparent, rgba(255, 255, 255, 0.3), transparent);
}

.hero-visual {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: clamp(18px, 3vw, 28px);
  justify-self: flex-end;
  margin-left: clamp(80px, 10vw, 160px);
}

.autonomous-panel {
  position: relative;
  width: clamp(440px, 48vw, 760px);
  min-height: clamp(340px, 42vw, 480px);
  display: flex;
  align-items: center;
  justify-content: center;
  transform: translate3d(0, 0, 0);
  animation: panelFloat 8s ease-in-out infinite;
}

.panel-glow {
  position: absolute;
  inset: -18% -12% -22% 22%;
  background: radial-gradient(circle at 72% 44%, rgba(96, 165, 250, 0.18), transparent 70%),
    radial-gradient(circle at 82% 68%, rgba(139, 92, 246, 0.25), transparent 74%),
    radial-gradient(circle at 58% 52%, rgba(0, 167, 225, 0.12), transparent 64%);
  filter: blur(50px);
  opacity: 0.6;
  animation: glowPulse 7.5s ease-in-out infinite;
  pointer-events: none;
  z-index: 0;
}

.panel-surface {
  position: relative;
  width: 100%;
  height: 100%;
  padding: clamp(22px, 3vw, 32px) clamp(26px, 3.6vw, 38px);
  border-radius: clamp(32px, 6.4vw, 46px);
  background: linear-gradient(180deg, rgba(11, 15, 25, 0.82), rgba(9, 12, 20, 0.62));
  backdrop-filter: blur(18px);
  border: 1px solid rgba(96, 165, 250, 0.14);
  box-shadow:
    inset 0 0 60px rgba(0, 167, 225, 0.12),
    inset -12px -24px 60px rgba(139, 92, 246, 0.16),
    0 24px 60px rgba(2, 8, 20, 0.66);
  overflow: hidden;
  z-index: 1;
  transform: translate3d(var(--panel-shift-x, 0px), var(--panel-shift-y, 0px), 0);
  transition: transform 0.6s ease;
}

.panel-surface::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 2px;
  background: linear-gradient(120deg, rgba(0, 167, 225, 0.2), rgba(96, 165, 250, 0.16), rgba(139, 92, 246, 0.35));
  opacity: 0.9;
  -webkit-mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  mask-composite: exclude;
  animation: borderSweep 7s linear infinite;
  pointer-events: none;
}

.panel-surface::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(100deg, rgba(11, 15, 25, 0.9) 0%, rgba(11, 15, 25, 0.7) 14%, rgba(11, 15, 25, 0.25) 34%, transparent 52%);
  pointer-events: none;
  z-index: 1;
}

.panel-backdrop {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  overflow: hidden;
  background: radial-gradient(circle at 52% 48%, rgba(0, 167, 225, 0.12), transparent 68%);
  -webkit-mask-image: linear-gradient(100deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.08) 8%, rgba(0, 0, 0, 0.4) 20%, rgba(0, 0, 0, 0.85) 34%, rgba(0, 0, 0, 1) 50%);
  mask-image: linear-gradient(100deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.08) 8%, rgba(0, 0, 0, 0.4) 20%, rgba(0, 0, 0, 0.85) 34%, rgba(0, 0, 0, 1) 50%);
  transform: translate3d(calc(var(--panel-shift-x, 0px) * -0.35), calc(var(--panel-shift-y, 0px) * -0.35), 0);
  transition: transform 0.8s ease;
}

.panel-inner {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: clamp(18px, 3vw, 26px);
  padding: clamp(26px, 3.8vw, 40px) clamp(28px, 4vw, 36px) clamp(28px, 4vw, 40px) clamp(82px, 9vw, 128px);
}

.panel-grid {
  position: absolute;
  inset: 0;
  opacity: 0.22;
  mix-blend-mode: screen;
  animation: gridDrift 12s linear infinite;
}

.panel-grid--h {
  background-image: repeating-linear-gradient(to bottom,
      rgba(96, 165, 250, 0.12) 0,
      rgba(96, 165, 250, 0.12) 1px,
      transparent 1px,
      transparent 42px);
}

.panel-grid--v {
  background-image: repeating-linear-gradient(to right,
      rgba(0, 167, 225, 0.1) 0,
      rgba(0, 167, 225, 0.1) 1px,
      transparent 1px,
      transparent 52px);
  animation-direction: reverse;
}

.panel-halo {
  position: absolute;
  inset: -20%;
  background: radial-gradient(circle at 50% 50%, rgba(139, 92, 246, 0.22), transparent 65%);
  filter: blur(24px);
  opacity: 0.4;
  animation: haloPulse 8s ease-in-out infinite;
}

.panel-particles {
  position: absolute;
  inset: 12%;
}

.panel-particles span {
  position: absolute;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(0, 167, 225, 0.6);
  box-shadow: 0 0 12px rgba(0, 167, 225, 0.8);
  animation: particleDrift 9s ease-in-out infinite;
}

.panel-particles span:nth-child(1) {
  top: 12%;
  left: 24%;
  animation-delay: -2s;
}

.panel-particles span:nth-child(2) {
  top: 42%;
  left: 68%;
  background: rgba(139, 92, 246, 0.65);
  box-shadow: 0 0 14px rgba(139, 92, 246, 0.85);
  animation-delay: -4s;
}

.panel-particles span:nth-child(3) {
  top: 70%;
  left: 40%;
  animation-delay: -1s;
}

.panel-particles span:nth-child(4) {
  top: 28%;
  left: 78%;
  animation-delay: -3s;
}

.panel-particles span:nth-child(5) {
  top: 58%;
  left: 16%;
  animation-delay: -5s;
}

.panel-header {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(16px, 3vw, 28px);
  margin-bottom: 0;
}

.panel-title {
  font-size: clamp(12px, 1.2vw, 14px);
  letter-spacing: 0.48em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.78);
}

.panel-badge {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  border-radius: 999px;
  font-size: 11px;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.85);
  background: linear-gradient(120deg, rgba(0, 167, 225, 0.18), rgba(139, 92, 246, 0.28));
  border: 1px solid rgba(96, 165, 250, 0.25);
  box-shadow: 0 0 18px rgba(0, 167, 225, 0.18);
  animation: badgeGlow 6.5s ease-in-out infinite;
}

.badge-pulse {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(0, 167, 225, 1), rgba(139, 92, 246, 0.9));
  box-shadow: 0 0 16px rgba(0, 167, 225, 0.9);
  animation: badgePulse 1.8s ease-in-out infinite;
}

.panel-body {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(180px, 220px);
  gap: clamp(28px, 5vw, 48px);
  align-items: stretch;
}

.panel-graph {
  position: relative;
  border-radius: clamp(18px, 3vw, 28px);
  padding: clamp(18px, 3vw, 26px);
  background: linear-gradient(160deg, rgba(7, 12, 26, 0.52), rgba(12, 20, 38, 0.26));
  border: 1px solid rgba(96, 165, 250, 0.18);
  box-shadow: inset 0 0 26px rgba(0, 167, 225, 0.12);
  overflow: hidden;
}

.panel-graph::before {
  content: "";
  position: absolute;
  inset: 14%;
  border-radius: inherit;
  background: radial-gradient(circle at 35% 40%, rgba(0, 167, 225, 0.12), transparent 65%);
  opacity: 0.6;
}

.panel-graph svg {
  width: 100%;
  height: auto;
  display: block;
  overflow: visible;
  filter: drop-shadow(0 0 20px rgba(0, 167, 225, 0.18));
}

.graph-status {
  margin-top: clamp(16px, 2.8vw, 26px);
  display: flex;
  flex-direction: column;
  gap: clamp(10px, 2.2vw, 16px);
  align-items: stretch;
}

.status-chip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 18px;
  border-radius: clamp(18px, 4vw, 24px);
  font-size: 10.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(96, 165, 250, 0.28);
  background: linear-gradient(120deg, rgba(10, 20, 36, 0.65), rgba(12, 28, 48, 0.35));
  box-shadow: inset 0 0 16px rgba(0, 167, 225, 0.18);
}

.chip-main {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  flex: 1;
}

.status-chip--primary {
  border-color: rgba(0, 167, 225, 0.35);
}

.status-chip--secondary {
  border-color: rgba(139, 92, 246, 0.32);
}

.chip-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 30%, rgba(0, 167, 225, 0.8), rgba(139, 92, 246, 0.6));
  box-shadow: 0 0 12px rgba(0, 167, 225, 0.6);
}

.chip-label {
  white-space: normal;
  color: rgba(255, 255, 255, 0.7);
  flex: 1;
  overflow: hidden;
}

.chip-value {
  font-weight: 600;
  letter-spacing: 0.2em;
  color: rgba(255, 255, 255, 0.9);
  white-space: nowrap;
}

.graph-timeline {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 10px;
}

.timeline-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 13px 16px;
  border-radius: 14px;
  border: 1px solid rgba(96, 165, 250, 0.2);
  background: linear-gradient(160deg, rgba(10, 18, 36, 0.55), rgba(10, 18, 36, 0.25));
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.62);
}

.timeline-time {
  color: rgba(0, 167, 225, 0.7);
  font-weight: 600;
}

.timeline-text {
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.68);
}

.graph-line {
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 4;
  stroke-dasharray: 940;
  stroke-dashoffset: 940;
  animation: lineFlow 7s ease-in-out infinite;
}

.graph-line--primary {
  stroke: url(#panel-line-main);
  stroke-width: 5;
  filter: drop-shadow(0 0 18px rgba(0, 167, 225, 0.6));
}

.graph-line--secondary {
  stroke: url(#panel-line-secondary);
  opacity: 0.55;
  animation-delay: -2.2s;
}

.graph-line--tertiary {
  stroke: rgba(139, 92, 246, 0.28);
  stroke-width: 3;
  animation-delay: -3.6s;
}

.graph-points circle {
  fill: rgba(255, 255, 255, 0.85);
  stroke: rgba(0, 167, 225, 0.6);
  stroke-width: 2;
  filter: drop-shadow(0 0 12px rgba(0, 167, 225, 0.6));
  animation: pointPulse 2.6s ease-in-out infinite;
}

.graph-points circle:nth-child(odd) {
  animation-delay: -1.4s;
}

.panel-sidebar {
  display: flex;
  flex-direction: column;
  gap: clamp(14px, 2.4vw, 18px);
}

.panel-metric {
  position: relative;
  padding: 16px 18px;
  border-radius: clamp(16px, 2.4vw, 20px);
  background: linear-gradient(150deg, rgba(7, 12, 24, 0.72), rgba(10, 16, 28, 0.42));
  border: 1px solid rgba(96, 165, 250, 0.25);
  box-shadow: inset 0 0 16px rgba(0, 167, 225, 0.12);
  overflow: hidden;
}

.panel-metric::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.35;
  background: radial-gradient(circle at 18% 40%, rgba(0, 167, 225, 0.25), transparent 60%);
  animation: metricGlow 6.4s ease-in-out infinite;
}

.metric-label {
  display: block;
  font-size: 11px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.62);
}

.metric-value {
  display: flex;
  align-items: baseline;
  gap: 4px;
  font-size: 24px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.92);
  margin-top: 12px;
}

.metric-number {
  font-variant-numeric: tabular-nums;
  min-width: 2ch;
}

.panel-progress {
  position: relative;
  z-index: 2;
  margin-top: clamp(12px, 2.4vw, 24px);
  padding: clamp(16px, 2.8vw, 22px);
  border-radius: clamp(18px, 3vw, 24px);
  background: linear-gradient(160deg, rgba(8, 13, 26, 0.78), rgba(10, 16, 30, 0.5));
  border: 1px solid rgba(96, 165, 250, 0.2);
  box-shadow: inset 0 0 22px rgba(0, 167, 225, 0.1);
}

.progress-label {
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 13px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.68);
  margin-bottom: 12px;
}

.progress-message {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  max-width: 100%;
  transition: opacity 0.4s ease;
  white-space: normal;
}

.progress-message.is-fading {
  opacity: 0;
}

.message-text {
  letter-spacing: 0.1em;
}

.progress-secondary {
  font-size: 11px;
  letter-spacing: 0.14em;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.56);
  text-transform: none;
  transition: opacity 0.5s ease;
}

.progress-secondary.is-fading {
  opacity: 0;
}

.progress-track {
  position: relative;
  display: block;
  height: 6px;
  border-radius: 999px;
  overflow: hidden;
  background: linear-gradient(120deg, rgba(0, 167, 225, 0.18), rgba(139, 92, 246, 0.22));
}

.progress-indicator {
  position: absolute;
  inset: 0;
  width: var(--progress-width, 40%);
  border-radius: inherit;
  background: linear-gradient(120deg, rgba(0, 167, 225, 0.6), rgba(139, 92, 246, 0.8));
  box-shadow: 0 0 18px rgba(0, 167, 225, 0.45);
  background-size: 220% 100%;
  overflow: hidden;
  animation: var(--progress-animation, progressSweepA) 6s ease-in-out infinite;
}

.progress-indicator::before,
.progress-indicator::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
}

.progress-indicator::before {
  background: linear-gradient(120deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0));
  background-size: 240% 100%;
  mix-blend-mode: screen;
  animation: progressShimmer 6s linear infinite;
}

.progress-indicator::after {
  top: -40%;
  bottom: -40%;
  width: 90px;
  left: 10%;
  border-radius: 999px;
  background: radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.35), rgba(255, 255, 255, 0));
  animation: progressPulse 6s ease-in-out infinite;
}

.panel-footer {
  margin-top: clamp(18px, 2.4vw, 24px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  font-size: 12px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.58);
}

.footer-title {
  color: rgba(255, 255, 255, 0.7);
}

.footer-badge {
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid rgba(139, 92, 246, 0.35);
  background: linear-gradient(120deg, rgba(139, 92, 246, 0.18), rgba(0, 167, 225, 0.22));
  color: rgba(255, 255, 255, 0.78);
  animation: badgeGlow 7s ease-in-out infinite;
}

@media (max-width: 1200px) {
  .autonomous-panel {
    transform: perspective(1200px) rotateX(4deg) rotateY(-5deg);
    width: clamp(460px, 62vw, 760px);
  }

  .hero-visual {
    margin-left: clamp(28px, 6vw, 90px);
  }

  .panel-body {
    grid-template-columns: minmax(0, 1fr) minmax(160px, 200px);
  }

  .panel-inner {
    padding-left: clamp(58px, 7vw, 84px);
  }
}

@media (max-width: 900px) {
  .autonomous-panel {
    transform: none;
    animation: none;
    width: min(540px, 100%);
  }

  .hero-visual {
    margin-left: 0;
  }

  .panel-inner {
    padding: clamp(24px, 6vw, 32px);
  }

  .panel-body {
    grid-template-columns: 1fr;
  }

  .graph-status {
    gap: 10px;
  }

  .panel-sidebar {
    flex-direction: row;
    justify-content: space-between;
  }

  .panel-metric {
    flex: 1;
  }
}

@media (max-width: 768px) {
  .autonomous-panel {
    width: min(460px, 100%);
    min-height: 280px;
    animation: none;
  }

  .hero-visual {
    margin-left: 0;
  }

  .panel-inner {
    padding: clamp(20px, 6vw, 28px);
  }

  .graph-status {
    margin-top: clamp(12px, 4vw, 20px);
    gap: 10px;
  }

  .panel-body {
    grid-template-columns: 1fr;
  }

  .panel-sidebar,
  .panel-footer {
    display: none;
  }

  .panel-header {
    margin-bottom: clamp(18px, 4vw, 22px);
  }

  .panel-progress {
    margin-top: clamp(16px, 4vw, 22px);
  }

  .progress-label {
    gap: 6px;
  }

  .progress-secondary {
    font-size: 10px;
    letter-spacing: 0.12em;
  }
}

@media (max-width: 560px) {
  .panel-title {
    letter-spacing: 0.32em;
  }

  .panel-badge {
    letter-spacing: 0.18em;
    font-size: 10px;
  }
}

.section-header {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 640px;
}

.section-eyebrow {
  font-family: "Space Grotesk", sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 12px;
  color: var(--color-accent);
}

.section-header h2 {
  margin: 0;
  font-size: clamp(32px, 4vw, 48px);
  letter-spacing: 0.04em;
}

.section-body {
  margin: 0;
  color: var(--color-text-muted);
  font-size: 18px;
  line-height: 1.7;
}

.benefit-grid {
  margin-top: 48px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 28px;
}

.benefit-card {
  padding: 32px;
  border-radius: var(--radius-medium);
  background: rgba(17, 18, 29, 0.72);
  border: 1px solid var(--color-border);
  display: flex;
  flex-direction: column;
  gap: 18px;
  box-shadow: 0 24px 48px rgba(11, 11, 16, 0.65);
  position: relative;
  overflow: hidden;
  transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.benefit-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.2), transparent 60%);
  opacity: 0;
  transition: opacity var(--transition-base);
}

.benefit-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 30px 60px rgba(139, 92, 246, 0.25);
}

.benefit-card:hover::before {
  opacity: 1;
}

.benefit-icon {
  width: 64px;
  height: 64px;
  border-radius: 20px;
  display: grid;
  place-items: center;
  background: rgba(139, 92, 246, 0.2);
  border: 1px solid rgba(139, 92, 246, 0.4);
  box-shadow: inset 0 0 20px rgba(139, 92, 246, 0.3);
}

.icon {
  display: inline-block;
  width: 36px;
  height: 36px;
  border-radius: 12px;
  background: linear-gradient(120deg, var(--color-primary), var(--color-secondary));
  box-shadow: 0 12px 30px rgba(139, 92, 246, 0.4);
}

.icon--bot {
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='white' viewBox='0 0 24 24'%3E%3Cpath d='M12 1a1 1 0 110 2h-.5v1.051A7.002 7.002 0 0119 11v5a4 4 0 01-4 4h-1v1.5a1.5 1.5 0 11-3 0V20h-1a4 4 0 01-4-4v-5a7.002 7.002 0 017.5-6.949V3H12a1 1 0 110-2zm3 9a1 1 0 100 2 1 1 0 000-2zm-6 0a1 1 0 100 2 1 1 0 000-2zm-1 5v1a2 2 0 002 2h6a2 2 0 002-2v-1H8z'/%3E%3C/svg%3E") center / contain no-repeat;
}

.icon--lightning {
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='white' viewBox='0 0 24 24'%3E%3Cpath d='M13 2a1 1 0 01.9.563l6 12A1 1 0 0119 15h-5.382l1.276 5.105a1 1 0 01-1.777.83l-8-11a1 1 0 01.824-1.566H11.2L12.1 2.437A1 1 0 0113 2z'/%3E%3C/svg%3E") center / contain no-repeat;
}

.icon--code {
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='white' viewBox='0 0 24 24'%3E%3Cpath d='M9.707 7.293a1 1 0 010 1.414L6.414 12l3.293 3.293a1 1 0 11-1.414 1.414l-4-4a1 1 0 010-1.414l4-4a1 1 0 011.414 0zm4.586 0a1 1 0 011.414 0l4 4a1 1 0 010 1.414l-4 4a1 1 0 01-1.414-1.414L17.586 12l-3.293-3.293a1 1 0 010-1.414z'/%3E%3C/svg%3E") center / contain no-repeat;
}

.icon--gear {
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='white' viewBox='0 0 24 24'%3E%3Cpath d='M11.447 2.105a1 1 0 011.106 0l1.93 1.287 2.267-.189a1 1 0 01.97.563l1.052 2.215 2.073 1.437a1 1 0 01.359 1.144l-.774 2.356.774 2.356a1 1 0 01-.359 1.144l-2.073 1.437-1.052 2.215a1 1 0 01-.97.563l-2.267-.189-1.93 1.287a1 1 0 01-1.106 0l-1.93-1.287-2.267.189a1 1 0 01-.97-.563L6.228 16.85l-2.073-1.437a1 1 0 01-.358-1.144l.773-2.356-.773-2.356a1 1 0 01.358-1.144l2.073-1.437 1.052-2.215a1 1 0 01.97-.563l2.267.189 1.93-1.287zM12 9a3 3 0 100 6 3 3 0 000-6z'/%3E%3C/svg%3E") center / contain no-repeat;
}

.benefit-card h3 {
  margin: 0;
  font-size: 20px;
  font-weight: 600;
}

.benefit-card p {
  margin: 0;
  color: var(--color-text-muted);
  line-height: 1.6;
  font-size: 15px;
}

.benefit-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-secondary);
  font-size: 13px;
  position: relative;
}

.benefit-link::after {
  content: "";
  width: 14px;
  height: 14px;
  border-radius: 999px;
  border: 1px solid currentColor;
  margin-left: 6px;
  transition: transform var(--transition-base);
}

.benefit-link:hover::after {
  transform: translateX(4px);
}

.plans {
  padding: 56px 64px;
  border-radius: var(--radius-large);
  background: linear-gradient(150deg, rgba(13, 14, 24, 0.9), rgba(27, 19, 46, 0.75));
  border: 1px solid rgba(139, 92, 246, 0.3);
  box-shadow: 0 30px 70px rgba(11, 11, 16, 0.65);
  position: relative;
  overflow: hidden;
  scroll-margin-top: calc(var(--header-height) + 24px);
}

.plans::after {
  content: "";
  position: absolute;
  inset: 10%;
  background: radial-gradient(circle, rgba(0, 229, 255, 0.15), transparent 65%);
  filter: blur(36px);
  z-index: -1;
}

.plan-grid {
  margin-top: 40px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 28px;
}

.plan-card {
  padding: 32px;
  border-radius: var(--radius-medium);
  background: rgba(14, 15, 26, 0.78);
  border: 1px solid rgba(139, 92, 246, 0.25);
  display: flex;
  flex-direction: column;
  gap: 22px;
  box-shadow: 0 24px 48px rgba(11, 11, 16, 0.6);
  position: relative;
  overflow: hidden;
  transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.plan-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(140deg, rgba(139, 92, 246, 0.18), transparent 60%);
  opacity: 0;
  transition: opacity var(--transition-base);
}

.plan-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 32px 60px rgba(139, 92, 246, 0.28);
}

.plan-card:hover::before {
  opacity: 1;
}

.plan-card--highlight {
  background: linear-gradient(145deg, rgba(26, 15, 44, 0.85), rgba(8, 26, 36, 0.9));
  border-color: rgba(0, 229, 255, 0.4);
  box-shadow: 0 34px 80px rgba(0, 229, 255, 0.22);
  transform: translateY(-6px);
}

.plan-card--highlight::after {
  content: "";
  position: absolute;
  left: 18px;
  right: 18px;
  top: 18px;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(0, 229, 255, 0.6), rgba(139, 92, 246, 0.75));
  opacity: 0.9;
}

.plan-card--highlight::before {
  background: linear-gradient(145deg, rgba(0, 229, 255, 0.25), transparent 55%);
}

.plan-card--highlight:hover {
  box-shadow: 0 44px 110px rgba(0, 229, 255, 0.36);
}

.plan-header {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.plan-tier {
  font-family: "Space Grotesk", sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.6);
}

.plan-price {
  display: inline-flex;
  align-items: flex-end;
  gap: 6px;
  font-weight: 600;
}

.plan-price__currency {
  font-size: 18px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.6);
}

.plan-price__value {
  font-size: clamp(40px, 5vw, 48px);
  letter-spacing: 0.02em;
  color: var(--color-text);
}

.plan-price__decimals {
  font-size: 18px;
  letter-spacing: 0.12em;
  color: rgba(255, 255, 255, 0.6);
  transform: translateY(-4px);
}

.plan-price--featured .plan-price__currency,
.plan-price--featured .plan-price__decimals {
  color: rgba(0, 229, 255, 0.75);
}

.plan-price--featured .plan-price__value {
  color: var(--color-secondary);
  text-shadow: 0 0 18px rgba(0, 229, 255, 0.35);
}

.plan-card--highlight .plan-tier {
  color: rgba(255, 255, 255, 0.82);
}

.plan-card--highlight .plan-cycle {
  color: rgba(0, 229, 255, 0.72);
}

.plan-cycle {
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.45);
  margin-left: 4px;
}

.plan-tag {
  align-self: flex-start;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(0, 229, 255, 0.18);
  color: var(--color-secondary);
  font-size: 12px;
  letter-spacing: 0.12em;
}

.plan-description {
  margin: 0;
  color: var(--color-text-muted);
  line-height: 1.7;
}

.plan-features {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 12px;
  color: var(--color-text);
  font-size: 15px;
}

.plan-features li {
  position: relative;
  padding-left: 22px;
}

.plan-features li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: linear-gradient(120deg, var(--color-primary), var(--color-secondary));
  box-shadow: 0 0 12px rgba(0, 229, 255, 0.6);
}

.plan-card .button--plan {
  margin-top: auto;
}

.button--plan {
  width: 100%;
  border-radius: 18px;
  padding: 16px 28px;
  letter-spacing: 0.16em;
  font-size: 12px;
  white-space: nowrap;
}

.button--plan-outline {
  border: 1px solid rgba(0, 229, 255, 0.4);
  color: var(--color-secondary);
  background: rgba(11, 13, 24, 0.55);
  box-shadow: inset 0 0 20px rgba(0, 229, 255, 0.18);
}

.button--plan-outline:hover {
  transform: translateY(-4px);
  box-shadow:
    inset 0 0 26px rgba(0, 229, 255, 0.25),
    0 18px 34px rgba(0, 229, 255, 0.22);
}

.button--plan-primary {
  background: linear-gradient(120deg, rgba(0, 229, 255, 0.95), rgba(139, 92, 246, 0.95));
  color: #020203;
  box-shadow: 0 28px 60px rgba(0, 229, 255, 0.28);
  border: none;
}

.button--plan-primary:hover {
  transform: translateY(-4px);
  box-shadow: 0 32px 68px rgba(0, 229, 255, 0.38);
}

.button--plan-ghost {
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: var(--color-text);
  background: rgba(18, 18, 28, 0.6);
  box-shadow: inset 0 0 16px rgba(255, 255, 255, 0.08);
}

.button--plan-ghost:hover {
  transform: translateY(-4px);
  box-shadow:
    inset 0 0 22px rgba(255, 255, 255, 0.14),
    0 16px 34px rgba(4, 8, 18, 0.45);
}

.ai-mentor {
  padding: 80px;
  border-radius: var(--radius-large);
  background: linear-gradient(160deg, rgba(9, 10, 18, 0.95), rgba(14, 15, 25, 0.65));
  border: 1px solid rgba(0, 229, 255, 0.2);
  box-shadow: 0 36px 80px rgba(0, 229, 255, 0.12);
  position: relative;
  overflow: hidden;
}

.ai-mentor::after {
  content: "";
  position: absolute;
  inset: 12%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 229, 255, 0.18), transparent 60%);
  filter: blur(40px);
  z-index: -1;
}

.mentor-cards {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 42px;
}

.mentor-card {
  flex: 1;
  min-width: 240px;
  padding: 28px;
  border-radius: var(--radius-medium);
  background: rgba(16, 18, 28, 0.78);
  border: 1px solid rgba(0, 229, 255, 0.3);
  box-shadow: 0 24px 48px rgba(0, 229, 255, 0.18);
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.mentor-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 30px 60px rgba(0, 229, 255, 0.28);
}

.mentor-emoji {
  font-size: 24px;
}

.mentor-card h3 {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
}

.mentor-card p {
  margin: 0;
  color: var(--color-text-muted);
  line-height: 1.6;
}

.mentor-cta {
  margin-top: 48px;
  align-self: flex-start;
  box-shadow: 0 18px 40px rgba(0, 229, 255, 0.32);
}

.community {
  padding: 80px;
  border-radius: var(--radius-large);
  background: linear-gradient(145deg, rgba(16, 16, 28, 0.95), rgba(20, 25, 44, 0.75));
  border: 1px solid rgba(0, 229, 255, 0.25);
  box-shadow: 0 36px 90px rgba(11, 11, 16, 0.68);
  position: relative;
  overflow: hidden;
}

.community::before {
  content: "";
  position: absolute;
  inset: 12%;
  background: radial-gradient(circle at 20% 20%, rgba(139, 92, 246, 0.22), transparent 70%);
  filter: blur(40px);
  z-index: -1;
}

.community-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
  gap: 56px;
  align-items: flex-start;
}

.community-info {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.community-pill {
  display: inline-flex;
  align-items: center;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(0, 229, 255, 0.16);
  color: var(--color-secondary);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 11px;
}

.community-body {
  margin: 0;
  color: var(--color-text-muted);
  line-height: 1.75;
  max-width: 460px;
}

.community-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 18px 32px;
}

.community-stat {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.community-stat-value {
  font-size: 28px;
  font-weight: 600;
  letter-spacing: 0.08em;
}

.community-stat-label {
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.6);
}

.community-panel {
  position: relative;
  padding: 32px;
  border-radius: var(--radius-large);
  background: rgba(9, 10, 20, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 24px 60px rgba(8, 10, 20, 0.55);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.community-grid {
  display: grid;
  gap: 24px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.community-card {
  padding: 28px;
  border-radius: var(--radius-medium);
  background: rgba(14, 15, 26, 0.85);
  border: 1px solid rgba(0, 229, 255, 0.2);
  box-shadow: 0 24px 50px rgba(0, 0, 0, 0.45);
  display: flex;
  flex-direction: column;
  gap: 18px;
  transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.community-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 28px 60px rgba(0, 229, 255, 0.25);
}

.community-card-header {
  display: flex;
  align-items: center;
  gap: 16px;
}

.community-avatar {
  width: 48px;
  height: 48px;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.85), rgba(0, 229, 255, 0.65));
  box-shadow: 0 12px 28px rgba(0, 229, 255, 0.28);
}

.community-avatar--2 {
  background: linear-gradient(135deg, rgba(0, 229, 255, 0.85), rgba(244, 114, 182, 0.65));
}

.community-avatar--3 {
  background: linear-gradient(135deg, rgba(244, 114, 182, 0.8), rgba(139, 92, 246, 0.7));
}

.community-name {
  margin: 0;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 13px;
}

.community-role {
  margin: 0;
  color: rgba(255, 255, 255, 0.6);
  font-size: 12px;
  letter-spacing: 0.04em;
}

.community-quote {
  margin: 0;
  color: var(--color-text);
  font-size: 16px;
  line-height: 1.7;
}

.community-highlights {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.community-highlight {
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(139, 92, 246, 0.16);
  border: 1px solid rgba(139, 92, 246, 0.38);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.75);
}

.about {
  padding: clamp(48px, 6vw, 64px);
  border-radius: var(--radius-large);
  background: linear-gradient(150deg, rgba(13, 14, 24, 0.88), rgba(27, 20, 48, 0.75));
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 32px 80px rgba(11, 11, 16, 0.66);
  position: relative;
  overflow: hidden;
}

#sobre {
  scroll-margin-top: calc(var(--header-height) + 56px);
}

#newsletter {
  scroll-margin-top: calc(var(--header-height) + 56px);
}

.about::after {
  content: "";
  position: absolute;
  inset: 12%;
  background: radial-gradient(circle at 0% 0%, rgba(139, 92, 246, 0.18), transparent 65%);
  filter: blur(40px);
  z-index: -1;
}

.about-grid {
  margin-top: 40px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 28px;
}

.about-story {
  padding: 28px;
  border-radius: var(--radius-medium);
  background: rgba(16, 16, 26, 0.8);
  border: 1px solid rgba(139, 92, 246, 0.28);
  box-shadow: 0 24px 50px rgba(11, 11, 16, 0.6);
  display: grid;
  gap: 18px;
}

.about-story h3 {
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 14px;
  color: var(--color-accent);
}

.about-story p {
  margin: 0;
  color: var(--color-text-muted);
  line-height: 1.7;
}

.founder-card {
  position: relative;
  padding: 32px;
  border-radius: var(--radius-medium);
  background: rgba(10, 12, 22, 0.82);
  border: 1px solid rgba(0, 229, 255, 0.28);
  box-shadow: 0 28px 60px rgba(0, 229, 255, 0.18);
  display: grid;
  grid-template-columns: auto 1fr;
  column-gap: 24px;
  row-gap: 16px;
  overflow: hidden;
}

.founder-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(140deg, rgba(0, 229, 255, 0.16), transparent 60%);
  opacity: 0.8;
  pointer-events: none;
}

.founder-avatar {
  width: 136px;
  height: 136px;
  border-radius: 50%;
  padding: 4px;
  background:
    radial-gradient(circle at 30% 20%, rgba(255, 255, 255, 0.18), transparent 65%),
    linear-gradient(145deg, rgba(139, 92, 246, 0.85), rgba(0, 229, 255, 0.94));
  box-shadow:
    0 24px 54px rgba(0, 229, 255, 0.26),
    inset 0 0 20px rgba(255, 255, 255, 0.1);
  overflow: hidden;
  transform: translateZ(0);
  position: relative;
  grid-row: 1 / span 2;
  align-self: start;
  background-color: #071420;
  pointer-events: none;
}

.founder-avatar::before {
  content: "";
  position: absolute;
  inset: 4px 4px 0 4px;
  border-radius: 50%;
  background: url("../images/bruno-perfil.jpeg") center / cover no-repeat;
  filter: saturate(1.05) contrast(1.08) brightness(0.96);
  pointer-events: none;
  user-select: none;
  -webkit-user-drag: none;
}

.founder-avatar::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 25%, rgba(0, 229, 255, 0.2), transparent 72%);
  mix-blend-mode: screen;
  pointer-events: none;
}

.founder-meta {
  position: relative;
  display: grid;
  gap: 12px;
  align-self: start;
}

.founder-label {
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.45);
}

.founder-meta h3 {
  margin: 0;
  font-size: 22px;
  letter-spacing: 0.04em;
}

.founder-meta p {
  margin: 0;
  color: var(--color-text-muted);
  line-height: 1.8;
}

.founder-signature {
  font-family: "Space Grotesk", sans-serif;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-secondary);
  position: relative;
  grid-column: 2;
  margin-top: 12px;
}

.founder-signature::after {
  content: "";
  display: block;
  width: 68px;
  height: 2px;
  margin-top: 10px;
  background: linear-gradient(90deg, rgba(0, 229, 255, 0.6), rgba(139, 92, 246, 0.65));
  border-radius: 999px;
}

.footer {
  margin-top: 160px;
  background: #050509;
  border-top: 1px solid rgba(139, 92, 246, 0.35);
  scroll-margin-top: calc(var(--header-height) + 32px);
}

.footer [id] {
  scroll-margin-top: calc(var(--header-height) + 32px);
}

.footer-main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 80px 32px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 48px;
}

.footer-column h3 {
  margin: 0 0 16px;
  font-size: 16px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.footer-column ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 10px;
}

.footer-column a {
  color: var(--color-text-muted);
  text-decoration: none;
  font-size: 14px;
  letter-spacing: 0.04em;
  transition: color var(--transition-base);
}

.footer-column a:hover {
  color: var(--color-text);
}

.footer-brand p {
  margin-top: 16px;
  color: var(--color-text-muted);
  line-height: 1.7;
}

.footer-newsletter {
  position: relative;
  text-align: left;
}

@media (min-width: 900px) {
  .footer-newsletter {
    grid-column: span 2;
  }
}

.newsletter-section {
  margin-top: clamp(48px, 6vw, 80px);
}

.newsletter-section__inner {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 clamp(20px, 4vw, 32px);
}

.newsletter-card {
  position: relative;
  padding: 32px;
  border-radius: var(--radius-medium);
  background: linear-gradient(135deg, rgba(8, 10, 20, 0.95), rgba(17, 19, 34, 0.85));
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 30px 70px rgba(4, 6, 16, 0.55);
  overflow: hidden;
}

.newsletter-card::before,
.newsletter-card::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  filter: blur(0.5px);
}

.newsletter-card::before {
  width: 260px;
  height: 260px;
  top: -120px;
  right: -60px;
  background: radial-gradient(circle, rgba(139, 92, 246, 0.35), transparent 65%);
}

.newsletter-card::after {
  width: 200px;
  height: 200px;
  bottom: -80px;
  left: -40px;
  background: radial-gradient(circle, rgba(0, 229, 255, 0.25), transparent 60%);
}

.newsletter-card>* {
  position: relative;
  z-index: 1;
}

.newsletter-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  border-radius: 999px;
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-secondary);
  background: rgba(0, 229, 255, 0.1);
  border: 1px solid rgba(0, 229, 255, 0.3);
}

.newsletter-title {
  margin: 16px 0 8px;
  font-size: 24px;
  text-transform: none;
  letter-spacing: -0.02em;
}

.newsletter-description {
  margin: 0 0 24px;
  color: var(--color-text-muted);
  max-width: 520px;
  line-height: 1.7;
}

.access-card {
  position: relative;
  padding: 32px;
  border-radius: var(--radius-medium);
  background: linear-gradient(145deg, rgba(8, 10, 20, 0.95), rgba(12, 12, 18, 0.85));
  border: 1px solid rgba(139, 92, 246, 0.35);
  box-shadow: 0 20px 60px rgba(5, 6, 12, 0.65);
  overflow: hidden;
}

.access-card::after {
  content: "";
  position: absolute;
  inset: 1px;
  border-radius: calc(var(--radius-medium) - 2px);
  border: 1px solid rgba(255, 255, 255, 0.04);
  pointer-events: none;
}

.access-card__content {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.access-card__content h3 {
  margin: 0;
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.01em;
  text-transform: none;
}

.access-card__eyebrow {
  width: fit-content;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 11px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--color-secondary);
  background: rgba(0, 229, 255, 0.08);
  border: 1px solid rgba(0, 229, 255, 0.2);
}

.access-card__description {
  margin: 0;
  color: var(--color-text-muted);
  line-height: 1.7;
}

.newsletter-form {
  margin-top: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.newsletter-form--compact {
  padding: 0;
  border: none;
  background: transparent;
  box-shadow: none;
}

.newsletter-controls {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 12px;
  padding: 16px;
  border-radius: var(--radius-small);
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(6, 8, 18, 0.95);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.02), 0 24px 60px rgba(2, 5, 14, 0.55);
  width: 100%;
  margin: 0;
}

.newsletter-form input {
  flex: 1 1 auto;
  min-width: 0;
  width: 100%;
  padding: 12px 0;
  border: none;
  background: transparent;
  color: var(--color-text);
  font-size: 15px;
  font-family: "Space Grotesk", sans-serif;
  outline: none;
}

.newsletter-form input::placeholder {
  color: rgba(255, 255, 255, 0.45);
}

.newsletter-form .button {
  flex-shrink: 0;
  min-height: 52px;
  padding-inline: 26px;
  width: 100%;
}

.newsletter-form--compact .button {
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.newsletter-footnote {
  margin: 0;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.45);
}

.footer-newsletter-bar {
  border-bottom: 1px solid rgba(139, 92, 246, 0.25);
  background: rgba(5, 6, 12, 0.8);
  margin-bottom: 40px;
}

.footer-newsletter-bar__content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 32px clamp(20px, 4vw, 32px);
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  align-items: center;
  justify-content: space-between;
}

.footer-newsletter-copy {
  max-width: 520px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.footer-newsletter-label {
  margin: 0;
  font-size: 13px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.65);
}

.newsletter-form--minimal {
  margin: 0;
}

.newsletter-minimal__description {
  margin: 0;
  color: var(--color-text-muted);
  line-height: 1.6;
}

.newsletter-minimal__footnote {
  margin: 0;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.5);
  letter-spacing: 0.04em;
}

.footer-newsletter-fields {
  display: flex;
  gap: 12px;
  align-items: center;
}

.footer-newsletter-fields input {
  width: min(240px, 100%);
  padding: 10px 0;
  border: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.35);
  background: transparent;
  color: var(--color-text);
  font-size: 14px;
  font-family: "Space Grotesk", sans-serif;
  min-width: 0;
  transition: border-color 0.3s ease;
  height: auto;
  min-height: auto;
}

.footer-newsletter-fields input:focus {
  outline: none;
  border-bottom-color: rgba(139, 92, 246, 0.7);
}

.footer-newsletter-fields input::placeholder {
  color: rgba(255, 255, 255, 0.45);
}

.footer-newsletter-fields .button {
  flex-shrink: 0;
  min-height: 42px;
  padding-inline: 18px;
  height: auto;
}

@media (max-width: 640px) {
  .footer-newsletter-bar {
    margin-bottom: 20px;
    padding-bottom: 0;
  }

  .footer-newsletter-bar__content {
    flex-direction: column;
    align-items: flex-start;
    gap: 24px;
    padding: 28px 20px;
  }

  .footer-newsletter-copy {
    max-width: 100%;
  }

  .footer-newsletter-label {
    font-size: 12px;
    letter-spacing: 0.28em;
    margin: 0;
  }

  .newsletter-minimal__description {
    font-size: 14px;
    line-height: 1.6;
    margin: 0;
    color: var(--color-text-muted);
  }

  .newsletter-minimal__footnote {
    font-size: 11px;
    margin: 0;
    color: rgba(255, 255, 255, 0.5);
  }

  .footer-newsletter-fields {
    width: 100%;
    flex-direction: column;
    gap: 12px;
    display: flex;
  }

  .footer-newsletter-fields input {
    width: 100% !important;
    height: 52px !important;
    min-height: 52px !important;
    max-height: 52px !important;
    padding: 0 16px !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    border-radius: 10px !important;
    background: rgba(255, 255, 255, 0.05) !important;
    font-size: 15px !important;
    font-family: "Space Grotesk", sans-serif !important;
    color: var(--color-text) !important;
    box-sizing: border-box !important;
    line-height: normal !important;
  }

  .footer-newsletter-fields input::placeholder {
    color: rgba(255, 255, 255, 0.45) !important;
  }

  .footer-newsletter-fields .button {
    width: 100% !important;
    height: 52px !important;
    min-height: 52px !important;
    max-height: 52px !important;
    font-size: 15px !important;
    font-weight: 600 !important;
    border-radius: 10px !important;
    padding: 0 28px !important;
    letter-spacing: 0.08em !important;
    text-transform: uppercase !important;
    box-sizing: border-box !important;
    line-height: normal !important;
  }
}

@media (min-width: 900px) {
  .newsletter-card {
    padding: 40px;
  }

  .newsletter-controls {
    flex-direction: row;
    align-items: center;
    gap: 18px;
    padding: 14px 22px;
    border-radius: 999px;
  }

  .newsletter-form .button {
    width: auto;
    min-width: 180px;
  }
}

@media (max-width: 640px) {
  .newsletter-card {
    padding: 24px;
  }
}

.toast {
  position: fixed;
  bottom: 32px;
  right: 32px;
  padding: 18px 24px;
  border-radius: 18px;
  background: rgba(15, 16, 26, 0.92);
  border: 1px solid rgba(0, 229, 255, 0.4);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
  font-family: "Space Grotesk", sans-serif;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: 12px;
  color: var(--color-secondary);
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.3s ease, transform 0.3s ease;
  z-index: 320;
}

.toast.toast--success {
  border-color: rgba(0, 229, 255, 0.4);
  color: var(--color-secondary);
}

.toast.toast--error {
  border-color: rgba(244, 114, 182, 0.6);
  color: #ffb4c8;
}

.toast.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.footer-bottom {
  border-top: 1px solid rgba(139, 92, 246, 0.2);
  padding: 24px 32px 32px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  align-items: center;
  text-align: center;
  color: rgba(255, 255, 255, 0.5);
  letter-spacing: 0.08em;
  font-size: 12px;
}

.footer-bottom-links {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: center;
  gap: 18px;
}

.footer-bottom-links a {
  color: rgba(255, 255, 255, 0.65);
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 11px;
  transition: color var(--transition-base);
}

.footer-bottom-links a:hover {
  color: var(--color-secondary);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.reveal {
  opacity: 1;
  transform: translateY(0);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1),
    transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
  will-change: auto;
}












@media (max-width: 1024px) {
  .nav-links {
    display: none;
  }

  .menu-toggle {
    display: inline-flex;
  }

  .mobile-nav {
    display: none;
  }

  .mobile-nav.is-open {
    display: flex;
  }

  .hero {
    grid-template-columns: 1fr;
    align-items: center;
    gap: 64px;
  }

  .hero-visual {
    order: -1;
  }

  .hero-stats {
    flex-wrap: wrap;
    justify-content: center;
  }

  main {
    padding: 68px 24px 60px;
    gap: 96px;
  }

  .plans {
    padding: 60px 44px;
    scroll-margin-top: calc(var(--header-height) + 24px);
  }

  .ai-mentor {
    padding: 64px 48px;
  }

  .community {
    padding: 64px 48px;
  }

  .community-shell {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .community-panel {
    padding: 28px;
  }

  .about {
    padding: 60px 44px;
  }
}

@media (max-width: 768px) {
  .header-content {
    padding: 0 24px;
  }

  main {
    padding: 60px 20px 48px;
  }

  .hero-title {
    font-size: clamp(36px, 8vw, 56px);
  }

  .hero-actions {
    flex-direction: column;
    align-items: flex-start;
  }

  .hero-stats {
    width: 100%;
    justify-content: space-between;
  }

  .stat-item {
    align-items: center;
    flex: 1;
  }

  .divider {
    display: none;
  }

  .benefit-grid {
    grid-template-columns: 1fr;
  }

  .plan-grid {
    grid-template-columns: 1fr;
  }

  .plans {
    padding: 52px 32px;
    scroll-margin-top: calc(var(--header-height) + 20px);
  }

  .mentor-cards {
    flex-direction: column;
  }

  .community {
    padding: 52px 32px;
  }

  .community-stats {
    gap: 16px;
  }

  .community-grid {
    grid-template-columns: 1fr;
  }

  .about {
    padding: 52px 32px;
  }

  .about-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .brand-name {
    display: none;
  }

  .hero-stats {
    padding: 20px;
  }

  .ai-mentor {
    padding: 48px 28px;
  }

  .community {
    padding: 44px 20px;
  }

  .community-panel {
    padding: 24px;
  }

  .community-card {
    padding: 24px;
  }

  .community-stats {
    flex-direction: column;
    gap: 12px;
  }

  .plans {
    padding: 44px 20px;
    scroll-margin-top: calc(var(--header-height) + 20px);
  }

  .plan-card {
    padding: 28px;
  }

  .about {
    padding: 44px 20px;
  }

  .founder-card {
    padding: 28px;
  }

  .footer-main {
    padding: 64px 24px;
  }

  .footer-bottom {
    padding: 20px;
  }
}

@keyframes panelFloat {

  0%,
  100% {
    transform: translate3d(0, 0, 0);
  }

  50% {
    transform: translate3d(0, -10px, 0);
  }
}

@keyframes glowPulse {

  0%,
  100% {
    opacity: 0.6;
  }

  50% {
    opacity: 0.85;
  }
}

@keyframes borderSweep {
  0% {
    filter: hue-rotate(0deg);
  }

  100% {
    filter: hue-rotate(180deg);
  }
}

@keyframes gridDrift {
  0% {
    transform: translate3d(0, 0, 0);
  }

  100% {
    transform: translate3d(-60px, -40px, 0);
  }
}

@keyframes haloPulse {

  0%,
  100% {
    opacity: 0.45;
    transform: scale(1);
  }

  50% {
    opacity: 0.75;
    transform: scale(1.05);
  }
}

@keyframes particleDrift {

  0%,
  100% {
    transform: translate3d(0, 0, 0);
    opacity: 0.9;
  }

  50% {
    transform: translate3d(14px, -16px, 0);
    opacity: 0.5;
  }
}

@keyframes badgePulse {

  0%,
  100% {
    box-shadow: 0 0 10px rgba(0, 167, 225, 0.45);
    transform: scale(1);
  }

  50% {
    box-shadow: 0 0 20px rgba(0, 167, 225, 0.85);
    transform: scale(1.1);
  }
}

@keyframes badgeGlow {

  0%,
  100% {
    box-shadow: 0 0 14px rgba(0, 167, 225, 0.15);
  }

  50% {
    box-shadow: 0 0 26px rgba(139, 92, 246, 0.35);
  }
}

@keyframes lineFlow {
  0% {
    stroke-dashoffset: 940;
    opacity: 0.25;
  }

  40% {
    opacity: 1;
  }

  100% {
    stroke-dashoffset: 0;
    opacity: 0.7;
  }
}

@keyframes pointPulse {

  0%,
  100% {
    transform: scale(0.9);
    opacity: 0.7;
  }

  50% {
    transform: scale(1.25);
    opacity: 1;
  }
}

@keyframes metricGlow {

  0%,
  100% {
    transform: translate3d(0, 0, 0);
    opacity: 0.28;
  }

  50% {
    transform: translate3d(12px, -8px, 0);
    opacity: 0.6;
  }
}

@keyframes progressSweepA {
  0% {
    transform: translateX(-110%) scaleX(0.65);
    opacity: 0.65;
  }

  25% {
    transform: translateX(-20%) scaleX(0.9);
    opacity: 0.9;
  }

  50% {
    transform: translateX(35%) scaleX(1);
    opacity: 1;
  }

  75% {
    transform: translateX(80%) scaleX(0.85);
    opacity: 0.85;
  }

  100% {
    transform: translateX(120%) scaleX(0.7);
    opacity: 0.6;
  }
}

@keyframes progressSweepB {
  0% {
    transform: translateX(-105%) scaleX(0.5);
    opacity: 0.6;
  }

  20% {
    transform: translateX(-40%) scaleX(0.7);
    opacity: 0.85;
  }

  45% {
    transform: translateX(20%) scaleX(1.05);
    opacity: 1;
  }

  60% {
    transform: translateX(55%) scaleX(0.9);
    opacity: 0.95;
  }

  80% {
    transform: translateX(95%) scaleX(0.75);
    opacity: 0.8;
  }

  100% {
    transform: translateX(130%) scaleX(0.6);
    opacity: 0.55;
  }
}

@keyframes progressSweepC {
  0% {
    transform: translateX(-120%) scaleX(0.55);
    opacity: 0.55;
  }

  18% {
    transform: translateX(-60%) scaleX(0.75);
    opacity: 0.82;
  }

  36% {
    transform: translateX(-10%) scaleX(0.95);
    opacity: 0.95;
  }

  52% {
    transform: translateX(30%) scaleX(1.1);
    opacity: 1;
  }

  74% {
    transform: translateX(75%) scaleX(0.85);
    opacity: 0.8;
  }

  100% {
    transform: translateX(115%) scaleX(0.65);
    opacity: 0.6;
  }
}

@keyframes progressShimmer {
  0% {
    background-position: 0% 50%;
  }

  50% {
    background-position: 100% 50%;
  }

  100% {
    background-position: 0% 50%;
  }
}

@keyframes progressPulse {

  0%,
  100% {
    transform: translateX(0) scale(0.7);
    opacity: 0;
  }

  40% {
    transform: translateX(120%) scale(1);
    opacity: 0.35;
  }

  60% {
    transform: translateX(160%) scale(1.1);
    opacity: 0;
  }
}

.auth-section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 32px 140px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: center;
  gap: 48px;
  position: relative;
  scroll-margin-top: calc(var(--header-height) + 24px);
}

.auth-content {
  display: flex;
  flex-direction: column;
  gap: 24px;
  max-width: 520px;
}

.auth-highlights {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 14px;
  color: var(--color-text-muted);
  font-size: 15px;
}

.auth-highlights li {
  position: relative;
  padding-left: 28px;
  line-height: 1.6;
}

.auth-highlights li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 10px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, rgba(0, 229, 255, 0.8), rgba(139, 92, 246, 0.9));
  box-shadow: 0 0 18px rgba(0, 229, 255, 0.45);
}

.auth-card {
  padding: 42px;
  border-radius: var(--radius-medium);
  background: rgba(10, 11, 18, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: 0 24px 70px rgba(6, 8, 16, 0.65);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  display: flex;
  flex-direction: column;
  gap: 28px;
  position: relative;
  width: 100%;
  justify-self: stretch;
}

.auth-card__header {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.auth-card__header h2 {
  margin: 0;
  font-size: 28px;
}

.auth-card__header p {
  margin: 0;
  color: rgba(255, 255, 255, 0.78);
  line-height: 1.6;
}

.auth-card__cta {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: stretch;
}

.auth-card__link {
  background: none;
  border: none;
  font: inherit;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.78);
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  padding: 8px 0;
  cursor: pointer;
  transition: color 0.25s ease, text-shadow 0.25s ease;
  align-self: center;
}

.auth-card__link:hover,
.auth-card__link:focus-visible {
  color: var(--color-secondary);
  text-shadow: 0 0 12px rgba(0, 229, 255, 0.35);
}

.auth-card__link:focus-visible {
  outline: none;
}

.auth-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid rgba(0, 229, 255, 0.45);
  background: rgba(11, 11, 16, 0.6);
  font-size: 11px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--color-secondary);
}

.auth-panel {
  padding: 36px;
  border-radius: var(--radius-small);
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(9, 10, 18, 0.95);
  display: flex;
  flex-direction: column;
  gap: 28px;
  box-shadow: 0 24px 60px rgba(5, 7, 16, 0.55);
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 26px;
  position: relative;
}

.auth-form__legend {
  margin: 0 0 8px;
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
}

.auth-form__intro {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 18px 20px;
  border-radius: var(--radius-small);
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.02);
}

.auth-form__tag {
  align-self: flex-start;
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid rgba(0, 229, 255, 0.4);
  background: rgba(0, 229, 255, 0.12);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--color-secondary);
  font-weight: 600;
}

.auth-form__intro p {
  margin: 0;
  color: rgba(255, 255, 255, 0.72);
  line-height: 1.6;
  font-size: 15px;
}

.auth-form__fields {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px 20px;
}

.auth-form__actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.auth-form__actions .button {
  width: 100%;
  min-height: 56px;
}

.auth-form__support {
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-secondary);
  text-decoration: none;
  font-weight: 600;
  text-align: center;
  display: inline-flex;
  justify-content: center;
}

.auth-form__support:hover {
  text-decoration: underline;
}

.auth-form.is-invalid .form-field input {
  border-color: rgba(244, 114, 182, 0.8);
  box-shadow: 0 0 0 3px rgba(244, 114, 182, 0.2);
}

.form-field {
  display: grid;
  gap: 10px;
}

.form-field label {
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.78);
}

.form-field input,
.form-field select,
.form-field textarea {
  padding: 18px 20px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(12, 12, 18, 0.82);
  color: var(--color-text);
  font-size: 15px;
  font-family: "Space Grotesk", sans-serif;
  transition: border-color var(--transition-base), box-shadow var(--transition-base);
}

.form-field input::placeholder,
.form-field textarea::placeholder {
  color: rgba(255, 255, 255, 0.35);
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: none;
  border-color: rgba(0, 229, 255, 0.65);
  box-shadow: 0 0 0 4px rgba(0, 229, 255, 0.18);
}

.form-field select {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 52px;
  background-image: url("data:image/svg+xml,%3Csvg width='14' height='10' viewBox='0 0 14 10' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M2 2l5 6 5-6' stroke='%23E0F9FF' stroke-width='1.6' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 20px center;
  background-size: 14px 10px;
  cursor: pointer;
}

.form-field select option[disabled] {
  color: rgba(255, 255, 255, 0.35);
}

.form-field textarea {
  min-height: 120px;
  resize: vertical;
  line-height: 1.5;
}

.button--full {
  width: 100%;
  justify-content: center;
}

.auth-quickstart {
  border-radius: var(--radius-small);
  padding: 24px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px dashed rgba(255, 255, 255, 0.15);
  display: grid;
  gap: 16px;
}

.auth-quickstart p {
  margin: 0;
  color: rgba(255, 255, 255, 0.78);
  line-height: 1.7;
}

.auth-quickstart strong {
  color: var(--color-text);
}

.auth-quickstart__actions {
  display: grid;
  gap: 12px;
}

.portal-body {
  background: var(--color-background);
  color: var(--color-text);
}

.portal-body {
  height: 100vh;
  overflow: hidden;
}

.portal-shell {
  display: grid;
  grid-template-columns: 280px 1fr;
  height: 100vh;
  overflow: hidden;
  position: relative;
}

.portal-sidebar {
  grid-column: 1;
  grid-row: 1;
  background: rgba(9, 9, 14, 0.92);
  border-right: 1px solid rgba(139, 92, 246, 0.25);
  display: flex;
  flex-direction: column;
  padding: 28px 24px;
  gap: 32px;
  position: relative;
  backdrop-filter: blur(16px);
  height: 100vh;
  overflow: hidden;
  z-index: 1;
}

.portal-sidebar__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.portal-compact-toggle {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 4px;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(8, 8, 15, 0.6);
  color: var(--color-text);
  cursor: pointer;
}

.portal-compact-toggle span {
  display: block;
  width: 50%;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
}

.portal-sidebar__content {
  display: flex;
  flex-direction: column;
  gap: 32px;
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
}

.portal-upgrade {
  justify-content: center;
}

.portal-menu {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.portal-menu__title {
  margin: 0 0 12px 0;
  text-transform: uppercase;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: rgba(255, 255, 255, 0.5);
}

.portal-menu__item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-radius: 10px;
  background: transparent;
  border: 1px solid transparent;
  color: rgba(255, 255, 255, 0.7);
  font-family: "Space Grotesk", sans-serif;
  font-size: 14px;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.2s ease;
  text-align: left;
}

.portal-menu__item:hover {
  background: rgba(139, 92, 246, 0.1);
  border-color: rgba(139, 92, 246, 0.3);
  color: rgba(255, 255, 255, 0.9);
}

.portal-menu__item.is-active {
  background: rgba(139, 92, 246, 0.15);
  border-color: rgba(139, 92, 246, 0.4);
  color: #fff;
}

.portal-menu__indicator {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(139, 92, 246, 0.5);
  flex-shrink: 0;
}

.portal-menu__item.is-active .portal-menu__indicator {
  background: #8b5cf6;
  box-shadow: 0 0 8px rgba(139, 92, 246, 0.6);
}

.portal-menu__main {
  font-weight: 500;
  letter-spacing: 0.01em;
  font-size: 14px;
}

.portal-menu__copy {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
}

.portal-menu__meta {
  font-size: 11px;
  letter-spacing: 0.02em;
  color: rgba(255, 255, 255, 0.4);
  white-space: normal;
  word-break: break-word;
  line-height: 1.4;
}

.portal-menu__status {
  justify-self: end;
}

.portal-menu__item:focus-visible {
  outline: 2px solid rgba(0, 229, 255, 0.5);
  outline-offset: 2px;
}

.portal-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.7);
}

.portal-badge::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: currentColor;
  opacity: 0.6;
}

.portal-badge--active {
  background: linear-gradient(120deg, rgba(0, 229, 255, 0.18), rgba(139, 92, 246, 0.2));
  border-color: rgba(0, 229, 255, 0.35);
  color: rgba(189, 242, 255, 0.92);
}

.portal-badge--done {
  background: rgba(20, 128, 90, 0.22);
  border-color: rgba(16, 185, 129, 0.35);
  color: rgba(162, 255, 217, 0.9);
}

.portal-badge--neutral {
  background: rgba(148, 163, 184, 0.15);
  border-color: rgba(148, 163, 184, 0.25);
  color: rgba(226, 232, 240, 0.78);
}

.portal-links {
  display: grid;
  gap: 10px;
  font-size: 14px;
}

.portal-links a {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--color-text-muted);
  text-decoration: none;
  letter-spacing: 0.04em;
  padding: 10px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.portal-links__icon {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(0, 229, 255, 0.9), rgba(139, 92, 246, 0.9));
  box-shadow: 0 0 12px rgba(0, 229, 255, 0.45);
}

.portal-links a:hover {
  color: var(--color-text);
}

.portal-user {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03), 0 18px 32px rgba(3, 4, 10, 0.55);
}

.portal-user__identity {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
  flex: 1;
  overflow: hidden;
}

.portal-user__name {
  margin: 0;
  font-weight: 600;
  font-size: 13px;
  color: #fff;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.portal-user__meta {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.6);
  letter-spacing: 0.02em;
  white-space: normal;
  word-break: break-word;
  line-height: 1.4;
}

.portal-user__logout {
  flex-shrink: 0;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.02);
  position: relative;
  display: grid;
  place-items: center;
  transition: border var(--transition-base), background var(--transition-base), transform var(--transition-base);
}

.portal-user__logout::before {
  content: '';
  width: 16px;
  height: 2px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.85);
}

.portal-user__logout::after {
  content: '';
  position: absolute;
  width: 8px;
  height: 8px;
  border-top: 2px solid rgba(255, 255, 255, 0.85);
  border-right: 2px solid rgba(255, 255, 255, 0.85);
  top: 50%;
  left: 50%;
  transform: translate(4px, -50%) rotate(45deg);
}

.portal-user__logout:hover {
  border-color: rgba(0, 229, 255, 0.4);
  background: rgba(0, 229, 255, 0.15);
  transform: translateY(-1px);
}

.portal-main {
  grid-column: 2;
  grid-row: 1;
  padding: 40px 48px 64px;
  display: none;
  flex-direction: column;
  gap: 40px;
  height: 100vh;
  overflow-y: auto;
  overflow-x: hidden;
  position: relative;
  z-index: 0;
}

.portal-main:not([hidden]) {
  display: flex;
}

.portal-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.portal-breadcrumb {
  display: flex;
  align-items: center;
  gap: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.55);
}

.portal-breadcrumb a {
  color: currentColor;
  text-decoration: none;
}

.portal-topbar__actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.portal-searchfield {
  display: flex;
  align-items: center;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(8, 10, 18, 0.76);
  padding: 0 14px;
  min-width: 240px;
  height: 42px;
}

.portal-searchfield input {
  width: 100%;
  border: none;
  background: transparent;
  color: var(--color-text);
  font-size: 14px;
  letter-spacing: 0.02em;
}

.portal-searchfield input:focus {
  outline: none;
}

.portal-searchfield:focus-within {
  border-color: rgba(0, 229, 255, 0.4);
  box-shadow: 0 0 0 4px rgba(0, 229, 255, 0.08);
}

.portal-searchfield input::placeholder {
  color: rgba(255, 255, 255, 0.4);
}

.portal-icon-button {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(8, 10, 18, 0.76);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
  cursor: pointer;
  transition: border-color var(--transition-base), transform var(--transition-base);
}

.portal-icon-button:hover {
  border-color: rgba(0, 229, 255, 0.4);
  transform: translateY(-2px);
}

.portal-icon-button__dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: linear-gradient(120deg, rgba(0, 229, 255, 0.9), rgba(139, 92, 246, 0.9));
  box-shadow: 0 0 16px rgba(0, 229, 255, 0.5);
}

.portal-hero-card {
  padding: 36px 40px;
  border-radius: var(--radius-medium);
  background: linear-gradient(135deg, rgba(13, 20, 36, 0.92), rgba(19, 12, 29, 0.85));
  border: 1px solid rgba(139, 92, 246, 0.45);
  box-shadow: var(--shadow-strong);
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.portal-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  background: rgba(0, 229, 255, 0.1);
  color: rgba(191, 243, 255, 0.92);
  border: 1px solid rgba(0, 229, 255, 0.28);
}

.portal-hero-card__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: clamp(22px, 3vw, 48px);
}

.portal-hero-card__intro {
  display: grid;
  gap: 12px;
}

.portal-hero-card__header h1 {
  margin: 0;
  font-size: clamp(32px, 4vw, 44px);
  letter-spacing: 0.02em;
}

.portal-hero-card__subtitle {
  font-size: 14px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
}

.portal-hero-card__description {
  margin: 12px 0 0;
  font-size: 15px;
  line-height: 1.6;
  color: var(--color-text-muted);
  max-width: 620px;
}

.portal-hero-card__stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.portal-stat {
  padding: 16px 18px;
  border-radius: var(--radius-small);
  background: rgba(12, 14, 24, 0.88);
  border: 1px solid rgba(148, 163, 184, 0.2);
  display: grid;
  gap: 6px;
}

.portal-stat__label {
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.48);
}

.portal-stat__value {
  font-size: 18px;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.portal-stat__meta {
  font-size: 12px;
  color: var(--color-text-muted);
}

.portal-hero-card p {
  margin: 0;
  color: var(--color-text-muted);
  line-height: 1.7;
  max-width: 640px;
}

.portal-hero-card__progress {
  display: grid;
  gap: 18px;
  max-width: 560px;
}

.portal-progress-bar {
  position: relative;
  height: 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.portal-progress-bar__fill {
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, rgba(0, 229, 255, 0.85), rgba(139, 92, 246, 0.95));
  transform-origin: left center;
  transform: scaleX(var(--progress, 0));
}

.portal-progress-info {
  display: flex;
  justify-content: flex-start;
  flex-wrap: wrap;
  gap: 16px 28px;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.6);
}

.portal-hero-card__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.portal-resume {
  justify-self: start;
}

.portal-secondary-action {
  border-color: rgba(255, 255, 255, 0.2);
}

.portal-overview {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}

.portal-overview-card {
  padding: 26px;
  border-radius: var(--radius-medium);
  background: rgba(12, 14, 24, 0.88);
  border: 1px solid rgba(148, 163, 184, 0.18);
  display: grid;
  gap: 16px;
  box-shadow: 0 16px 40px rgba(4, 10, 24, 0.35);
}

.portal-overview-card--focus {
  background: linear-gradient(135deg, rgba(13, 20, 36, 0.96), rgba(19, 12, 29, 0.9));
  border-color: rgba(139, 92, 246, 0.45);
}

.portal-overview-card--focus .portal-overview-card__icon {
  background: rgba(139, 92, 246, 0.18);
  border-color: rgba(139, 92, 246, 0.45);
}

.portal-overview-card--focus .portal-progress-info {
  justify-content: space-between;
}

.portal-overview-card__header {
  display: flex;
  align-items: center;
  gap: 16px;
}

.portal-overview-card__icon {
  width: 36px;
  height: 36px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: rgba(0, 229, 255, 0.12);
  border: 1px solid rgba(0, 229, 255, 0.25);
}

.portal-overview-card__icon::after {
  content: "";
  width: 14px;
  height: 14px;
  border-radius: 999px;
  background: currentColor;
  opacity: 0.8;
}

.portal-overview-card__icon--pulse {
  color: rgba(0, 229, 255, 0.9);
}

.portal-overview-card__icon--radar {
  color: rgba(139, 92, 246, 0.9);
}

.portal-overview-card__icon--support {
  color: rgba(96, 165, 250, 0.9);
}

.portal-overview-card__eyebrow {
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.45);
}

.portal-overview-card h3 {
  margin: 0;
  font-size: 20px;
}

.portal-overview-card p {
  margin: 0;
  color: var(--color-text-muted);
  line-height: 1.6;
}

.portal-overview-card__meta {
  display: grid;
  gap: 6px;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.75);
}

.portal-overview-card__meta strong {
  color: var(--color-secondary);
  font-weight: 600;
}

.portal-overview-card__list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 10px;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.78);
}

.portal-overview-card__list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 10px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.portal-overview-card__list li:last-child {
  border-bottom: none;
}

.portal-inline-link {
  color: var(--color-secondary);
  text-decoration: none;
  font-size: 14px;
  letter-spacing: 0.04em;
}

.portal-inline-link:hover {
  text-decoration: underline;
}

.portal-section {
  display: grid;
  gap: 24px;
}

.portal-section__header h2 {
  margin: 0 0 8px;
  font-size: clamp(24px, 3vw, 30px);
}

.portal-section__header p {
  margin: 0;
  color: var(--color-text-muted);
  max-width: 560px;
  line-height: 1.7;
}

.portal-card {
  padding: 28px;
  border-radius: var(--radius-medium);
  background: rgba(12, 14, 24, 0.88);
  border: 1px solid rgba(139, 92, 246, 0.35);
  display: grid;
  gap: 20px;
  box-shadow: 0 20px 48px rgba(4, 10, 24, 0.45);
}

.portal-card--compact {
  padding: 0;
  border: none;
  background: transparent;
  box-shadow: none;
}

.portal-lesson-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
}

.portal-lesson {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  padding: 20px 24px;
  background: rgba(12, 13, 22, 0.72);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  gap: 18px;
}

.portal-lesson:first-child {
  border-top-left-radius: var(--radius-medium);
  border-top-right-radius: var(--radius-medium);
}

.portal-lesson:last-child {
  border-bottom: none;
  border-bottom-left-radius: var(--radius-medium);
  border-bottom-right-radius: var(--radius-medium);
}

.portal-lesson__info {
  display: flex;
  align-items: center;
  gap: 18px;
}

.portal-lesson__index {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  border: 1px solid rgba(0, 229, 255, 0.32);
  background: rgba(8, 8, 15, 0.6);
  color: rgba(191, 243, 255, 0.92);
  display: grid;
  place-items: center;
  font-weight: 600;
  letter-spacing: 0.06em;
}

.portal-lesson__info h3 {
  margin: 0 0 6px;
  font-size: 16px;
}

.portal-lesson__meta {
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.45);
}

.portal-lesson__description {
  margin: 4px 0 0;
  color: var(--color-text-muted);
  font-size: 14px;
  line-height: 1.6;
}

.portal-track-intro {
  display: grid;
  gap: 12px;
  color: var(--color-text-muted);
  line-height: 1.7;
}

.portal-track-intro strong {
  color: var(--color-text);
}

.track-highlight-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
}

.track-highlight {
  padding: 22px;
  border-radius: var(--radius-medium);
  background: rgba(12, 14, 24, 0.88);
  border: 1px solid rgba(139, 92, 246, 0.25);
  display: grid;
  gap: 10px;
}

.track-highlight__eyebrow {
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
}

.track-highlight h3 {
  margin: 0;
  font-size: 18px;
}

.track-highlight p {
  margin: 0;
  color: var(--color-text-muted);
  line-height: 1.6;
}

.module-cta {
  margin-top: 20px;
  padding: 22px 26px;
  border-radius: var(--radius-medium);
  border: 1px dashed rgba(0, 229, 255, 0.35);
  background: rgba(10, 16, 28, 0.85);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
}

.module-cta p {
  margin: 0;
  flex: 1;
  color: var(--color-text-muted);
}

.portal-lesson .portal-badge {
  justify-self: flex-end;
}

/* Admin shell */
.admin-theme {
  background: linear-gradient(160deg, #0d1016 0%, #05060b 100%);
}

.admin-banner {
  background: linear-gradient(90deg, rgba(88, 101, 242, 0.12), rgba(45, 212, 191, 0.12));
  color: #e0e7ff;
  font-size: 0.85rem;
  padding: 0.65rem 1.25rem;
  text-align: center;
}

.admin-theme .portal-sidebar {
  border-right: 1px solid rgba(120, 130, 255, 0.16);
}

.admin-theme .brand-mark {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.admin-theme .brand-mark__dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: linear-gradient(135deg, #ff6b35, #f7931e);
}

.admin-theme .brand-mark__ring {
  position: absolute;
  inset: 10px;
  border-radius: 12px;
  border: 1px solid rgba(247, 147, 30, 0.5);
  opacity: 0.8;
}

.admin-theme .brand-copy {
  display: flex;
  flex-direction: column;
  gap: 4px;
  color: rgba(255, 255, 255, 0.85);
}

.admin-sidebar-subtitle {
  color: rgba(255, 255, 255, 0.4);
  font-size: 0.75rem;
  margin-top: 0.35rem;
  white-space: normal;
  word-break: break-word;
  line-height: 1.4;
  max-width: 100%;
  font-weight: 400;
}

.admin-tag {
  background: rgba(59, 130, 246, 0.18);
  color: #bfdbfe;
  border-radius: 999px;
  padding: 0.1rem 0.6rem;
  font-size: 0.75rem;
}

.admin-main {
  gap: 1.75rem;
}

.admin-metrics {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.admin-metric-card {
  background: rgba(24, 31, 56, 0.7);
  border: 1px solid rgba(99, 102, 241, 0.25);
  border-radius: 18px;
  padding: 1.2rem 1.4rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.admin-metric-card h3 {
  font-size: 0.95rem;
  color: #c7d2fe;
}

.admin-metric-card strong {
  font-size: 2rem;
  color: #fff;
  line-height: 1.1;
}

.admin-metric-card span {
  color: #9ca3af;
  font-size: 0.85rem;
}

.admin-section {
  background: rgba(9, 12, 22, 0.6);
  border: 1px solid rgba(59, 130, 246, 0.18);
  border-radius: 20px;
  padding: 1.6rem 1.8rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.admin-section__header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.admin-section__header h2 {
  font-size: 1.2rem;
  color: #e2e8f0;
}

.admin-section__header p {
  color: #94a3b8;
  margin-top: 0.25rem;
}

.admin-filters select {
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid rgba(59, 130, 246, 0.25);
  border-radius: 12px;
  color: #cbd5f5;
  padding: 0.55rem 0.85rem;
  font-size: 0.9rem;
}

.admin-course-list {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  align-items: stretch;
}

.admin-course-card {
  background: rgba(11, 15, 28, 0.85);
  border: 1px solid rgba(59, 130, 246, 0.22);
  border-radius: 18px;
  padding: 1.5rem 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  height: 100%;
}

.admin-course-card__header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
}

.admin-course-card__title {
  font-weight: 600;
  color: #f8fafc;
  font-size: 1.125rem;
  line-height: 1.5;
  flex: 1;
  margin: 0;
}

.admin-course-card__description {
  color: #94a3b8;
  font-size: 0.9375rem;
  line-height: 1.6;
  margin: 0;
  flex: 1;
  min-height: 2.4rem;
}

.admin-status-badge {
  border-radius: 999px;
  font-size: 0.6875rem;
  padding: 0.3rem 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 600;
  white-space: nowrap;
  flex-shrink: 0;
}

.admin-status-badge[data-status="published"] {
  background: rgba(16, 185, 129, 0.15);
  color: #6ee7b7;
  border: 1px solid rgba(16, 185, 129, 0.35);
}

.admin-status-badge[data-status="draft"] {
  background: rgba(239, 68, 68, 0.12);
  color: #fca5a5;
  border: 1px solid rgba(248, 113, 113, 0.28);
}



.admin-course-meta {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 0.5rem;
  font-size: 0.8125rem;
  color: #94a3b8;
  line-height: 1.5;
  padding: 0.75rem 0;
  border-top: 1px solid rgba(59, 130, 246, 0.15);
  border-bottom: 1px solid rgba(59, 130, 246, 0.15);
}

.admin-course-meta span {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.admin-course-meta strong {
  color: #cbd5e1;
  font-weight: 500;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.admin-course-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: auto;
}

.admin-course-updated {
  font-size: 0.75rem;
  color: #71717a;
  font-style: italic;
}

.admin-course-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.admin-course-actions button {
  background: rgba(59, 130, 246, 0.16);
  border: 1px solid rgba(96, 165, 250, 0.28);
  color: #cbd5f5;
  border-radius: 999px;
  padding: 0.5rem 1rem;
  font-size: 0.8125rem;
  font-weight: 500;
  transition: all 0.2s ease;
}

.admin-course-actions button[data-action="publish"] {
  background: rgba(21, 128, 61, 0.2);
  border-color: rgba(34, 197, 94, 0.28);
  color: #bbf7d0;
}

.admin-activity {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  list-style: none;
  padding: 0;
  margin: 0;
}

.admin-activity li {
  background: rgba(12, 17, 31, 0.7);
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 14px;
  padding: 0.85rem 1.1rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.admin-activity strong {
  color: #e2e8f0;
  font-size: 0.95rem;
}

.admin-activity span {
  color: #a1a1aa;
  font-size: 0.82rem;
}

.admin-settings-callout {
  background: rgba(14, 23, 42, 0.8);
  border: 1px dashed rgba(94, 234, 212, 0.4);
  border-radius: 16px;
  padding: 1.1rem 1.4rem;
  color: #ccfbf1;
  line-height: 1.5;
}

.admin-settings-callout h3 {
  font-size: 1rem;
  color: #5eead4;
  margin-bottom: 0.4rem;
}

.admin-form {
  position: fixed;
  top: 0;
  right: 0;
  width: min(540px, 100%);
  height: 100vh;
  background: linear-gradient(135deg, rgba(11, 15, 28, 0.98) 0%, rgba(15, 20, 35, 0.98) 100%);
  backdrop-filter: blur(12px);
  border-left: 1px solid rgba(139, 92, 246, 0.3);
  box-shadow: -24px 0 60px rgba(0, 0, 0, 0.5);
  display: flex;
  flex-direction: column;
  z-index: 12;
  overflow-y: auto;
  overflow-x: hidden;
}

.admin-form[hidden] {
  display: none;
}

.admin-form__header {
  position: sticky;
  top: 0;
  background: rgba(11, 15, 28, 0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(139, 92, 246, 0.2);
  padding: 1.75rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 10;
}

.admin-form__header h2 {
  font-size: 1.35rem;
  font-weight: 600;
  color: #f8fafc;
  margin: 0;
}

.admin-form__close {
  background: rgba(139, 92, 246, 0.1);
  border: 1px solid rgba(139, 92, 246, 0.3);
  border-radius: 8px;
  color: #c4b5fd;
  font-size: 1.25rem;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.admin-form__close:hover {
  background: rgba(139, 92, 246, 0.2);
  border-color: rgba(139, 92, 246, 0.5);
  color: #e9d5ff;
}

.admin-form form {
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 2rem;
  flex: 1;
}

.admin-form__section {
  border: 1px solid rgba(139, 92, 246, 0.15);
  background: rgba(139, 92, 246, 0.03);
  border-radius: 12px;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.admin-form__section legend {
  font-size: 0.95rem;
  font-weight: 600;
  color: #c4b5fd;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 0 0.5rem;
  margin-bottom: 0.5rem;
}

.admin-form__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.admin-form label {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: #e2e8f0;
}

.admin-form label span {
  font-weight: 500;
}

.admin-form label small {
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.75rem;
  margin-top: -0.25rem;
}

.admin-form input[type="text"],
.admin-form input[type="email"],
.admin-form input[type="url"],
.admin-form input[type="number"],
.admin-form textarea,
.admin-form select {
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(139, 92, 246, 0.3);
  border-radius: 8px;
  padding: 0.75rem 1rem;
  color: #f8fafc;
  font-size: 0.95rem;
  transition: all 0.2s ease;
}

.admin-form input:focus,
.admin-form textarea:focus,
.admin-form select:focus {
  outline: none;
  border-color: #8b5cf6;
  background: rgba(0, 0, 0, 0.4);
  box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.1);
}

.admin-form input::placeholder,
.admin-form textarea::placeholder {
  color: rgba(255, 255, 255, 0.4);
}

.admin-form textarea {
  resize: vertical;
  min-height: 100px;
  font-family: inherit;
}

.admin-form input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin-right: 0.5rem;
  cursor: pointer;
  accent-color: #8b5cf6;
}

.admin-form label:has(input[type="checkbox"]) {
  flex-direction: row;
  align-items: center;
  cursor: pointer;
}

.admin-form label:has(input[type="checkbox"]) span {
  order: 2;
}

.admin-form label:has(input[type="checkbox"]) input {
  order: 1;
}

.admin-form__actions {
  position: sticky;
  bottom: 0;
  background: rgba(11, 15, 28, 0.95);
  backdrop-filter: blur(12px);
  border-top: 1px solid rgba(139, 92, 246, 0.2);
  padding: 1.5rem 2rem;
  display: flex;
  justify-content: flex-end;
  gap: 1rem;
  margin-top: auto;
}

.admin-form__actions .button {
  min-width: 120px;
}

@media (max-width: 960px) {
  .admin-form {
    width: 100%;
    border-left: none;
  }

  .admin-form__row {
    grid-template-columns: 1fr;
  }
}

.modules-panel {
  position: fixed;
  top: 0;
  right: 0;
  width: min(600px, 100%);
  height: 100vh;
  background: linear-gradient(135deg, rgba(11, 15, 28, 0.98) 0%, rgba(15, 20, 35, 0.98) 100%);
  backdrop-filter: blur(12px);
  border-left: 1px solid rgba(139, 92, 246, 0.3);
  box-shadow: -24px 0 60px rgba(0, 0, 0, 0.5);
  display: flex;
  flex-direction: column;
  z-index: 15;
  overflow: hidden;
}

.modules-panel[hidden] {
  display: none;
}

.modules-panel__header {
  background: rgba(11, 15, 28, 0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(139, 92, 246, 0.2);
  padding: 1.75rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.modules-panel__header h2 {
  font-size: 1.35rem;
  font-weight: 600;
  color: #f8fafc;
  margin: 0 0 0.25rem;
}

.modules-panel__subtitle {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.6);
  margin: 0;
}

.modules-panel__close {
  background: rgba(139, 92, 246, 0.1);
  border: 1px solid rgba(139, 92, 246, 0.3);
  border-radius: 8px;
  color: #c4b5fd;
  font-size: 1.25rem;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.modules-panel__close:hover {
  background: rgba(139, 92, 246, 0.2);
  border-color: rgba(139, 92, 246, 0.5);
  color: #e9d5ff;
}

.modules-panel__content {
  flex: 1;
  overflow-y: auto;
  padding: 2rem;
}

.modules-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.modules-empty {
  text-align: center;
  color: rgba(255, 255, 255, 0.5);
  padding: 3rem 1rem;
  font-size: 0.95rem;
}

.module-item {
  background: rgba(139, 92, 246, 0.05);
  border: 1px solid rgba(139, 92, 246, 0.2);
  border-radius: 12px;
  padding: 1.25rem;
  transition: all 0.2s ease;
}

.module-item:hover {
  background: rgba(139, 92, 246, 0.08);
  border-color: rgba(139, 92, 246, 0.3);
}

.module-item__drag {
  color: rgba(255, 255, 255, 0.3);
  font-size: 1.1rem;
  cursor: grab;
  user-select: none;
  align-self: flex-start;
  padding-top: 0.25rem;
  margin-right: 1rem;
}

.module-item__drag:active {
  cursor: grabbing;
}

.module-item__content {
  flex: 1;
  min-width: 0;
}

.module-item__header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
  flex-wrap: wrap;
}

.module-item__order {
  background: rgba(139, 92, 246, 0.2);
  color: #c4b5fd;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.35rem 0.65rem;
  border-radius: 6px;
  flex-shrink: 0;
}

.module-item__title {
  font-size: 1rem;
  font-weight: 600;
  color: #f8fafc;
  margin: 0;
  flex: 1;
  min-width: 0;
  word-break: break-word;
}

.module-item__status {
  font-size: 0.7rem;
  padding: 0.3rem 0.6rem;
  border-radius: 4px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  flex-shrink: 0;
}

.module-item__status--published {
  background: rgba(34, 197, 94, 0.15);
  color: #86efac;
  border: 1px solid rgba(34, 197, 94, 0.3);
}

.module-item__status--draft {
  background: rgba(251, 191, 36, 0.15);
  color: #fde047;
  border: 1px solid rgba(251, 191, 36, 0.3);
}

.module-item__description {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.875rem;
  margin: 0 0 0.75rem;
  line-height: 1.6;
  word-break: break-word;
}

.module-item__meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: 1rem;
}

.module-item__actions {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  padding-top: 0.75rem;
  border-top: 1px solid rgba(139, 92, 246, 0.1);
}

.module-item__actions button {
  background: rgba(139, 92, 246, 0.1);
  border: 1px solid rgba(139, 92, 246, 0.3);
  border-radius: 6px;
  color: #c4b5fd;
  padding: 0.4rem 0.75rem;
  font-size: 0.8rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.module-item__actions button:hover {
  background: rgba(139, 92, 246, 0.2);
  border-color: rgba(139, 92, 246, 0.5);
}

.module-item__actions button[data-action="delete"] {
  background: rgba(239, 68, 68, 0.1);
  border-color: rgba(239, 68, 68, 0.3);
  color: #fca5a5;
}

.module-item__actions button[data-action="delete"]:hover {
  background: rgba(239, 68, 68, 0.2);
  border-color: rgba(239, 68, 68, 0.5);
}

.module-form {
  background: rgba(11, 15, 28, 0.95);
  backdrop-filter: blur(12px);
  border-top: 1px solid rgba(139, 92, 246, 0.2);
  padding: 2rem;
  margin-top: auto;
}

.module-form[hidden] {
  display: none;
}

.module-form h3 {
  font-size: 1.1rem;
  font-weight: 600;
  color: #f8fafc;
  margin: 0 0 1.5rem;
}

.module-form label {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 1rem;
  font-size: 0.875rem;
  color: #e2e8f0;
}

.module-form label span {
  font-weight: 500;
}

.module-form input[type="text"],
.module-form input[type="number"],
.module-form textarea {
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(139, 92, 246, 0.3);
  border-radius: 8px;
  padding: 0.75rem 1rem;
  color: #f8fafc;
  font-size: 0.95rem;
  transition: all 0.2s ease;
}

.module-form input:focus,
.module-form textarea:focus {
  outline: none;
  border-color: #8b5cf6;
  background: rgba(0, 0, 0, 0.4);
  box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.1);
}

.module-form input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin-right: 0.5rem;
  cursor: pointer;
  accent-color: #8b5cf6;
}

.module-form label:has(input[type="checkbox"]) {
  flex-direction: row;
  align-items: center;
  cursor: pointer;
}

.module-form__actions {
  display: flex;
  justify-content: flex-end;
  gap: 1rem;
  margin-top: 1.5rem;
}

.module-form__actions .button {
  min-width: 100px;
}

@media (max-width: 960px) {
  .modules-panel {
    width: 100%;
    border-left: none;
  }
}

.lessons-panel {
  position: fixed;
  top: 0;
  right: 0;
  width: min(650px, 100%);
  height: 100vh;
  background: linear-gradient(135deg, rgba(11, 15, 28, 0.98) 0%, rgba(15, 20, 35, 0.98) 100%);
  backdrop-filter: blur(12px);
  border-left: 1px solid rgba(139, 92, 246, 0.3);
  box-shadow: -24px 0 60px rgba(0, 0, 0, 0.5);
  display: flex;
  flex-direction: column;
  z-index: 20;
  overflow: hidden;
}

.lessons-panel[hidden] {
  display: none;
}

.lessons-panel__header {
  background: rgba(11, 15, 28, 0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(139, 92, 246, 0.2);
  padding: 1.75rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.lessons-panel__header>div {
  flex: 1;
}

.lessons-panel__back {
  background: rgba(139, 92, 246, 0.1);
  border: 1px solid rgba(139, 92, 246, 0.3);
  border-radius: 6px;
  color: #c4b5fd;
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  cursor: pointer;
  transition: all 0.2s ease;
  margin-bottom: 0.75rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.lessons-panel__back:hover {
  background: rgba(139, 92, 246, 0.2);
  border-color: rgba(139, 92, 246, 0.5);
}

.lessons-panel__header h2 {
  font-size: 1.35rem;
  font-weight: 600;
  color: #f8fafc;
  margin: 0 0 0.25rem;
}

.lessons-panel__subtitle {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.6);
  margin: 0;
}

.lessons-panel__close {
  background: rgba(139, 92, 246, 0.1);
  border: 1px solid rgba(139, 92, 246, 0.3);
  border-radius: 8px;
  color: #c4b5fd;
  font-size: 1.25rem;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.lessons-panel__close:hover {
  background: rgba(139, 92, 246, 0.2);
  border-color: rgba(139, 92, 246, 0.5);
  color: #e9d5ff;
}

.lessons-panel__content {
  flex: 1;
  overflow-y: auto;
  padding: 2rem;
}

.lessons-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.lessons-empty {
  text-align: center;
  color: rgba(255, 255, 255, 0.5);
  padding: 3rem 1rem;
  font-size: 0.95rem;
}

.lesson-item {
  background: rgba(139, 92, 246, 0.05);
  border: 1px solid rgba(139, 92, 246, 0.2);
  border-radius: 12px;
  padding: 1.25rem;
  transition: all 0.2s ease;
}

.lesson-item:hover {
  background: rgba(139, 92, 246, 0.08);
  border-color: rgba(139, 92, 246, 0.3);
}

.lesson-item__content {
  flex: 1;
  min-width: 0;
}

.lesson-item__header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
  flex-wrap: wrap;
}

.lesson-item__order {
  background: rgba(139, 92, 246, 0.2);
  color: #c4b5fd;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.35rem 0.65rem;
  border-radius: 6px;
  flex-shrink: 0;
}

.lesson-item__title {
  font-size: 1rem;
  font-weight: 600;
  color: #f8fafc;
  margin: 0;
  flex: 1;
  min-width: 0;
  word-break: break-word;
}

.lesson-item__type {
  font-size: 0.8rem;
  padding: 0.25rem 0.6rem;
  border-radius: 4px;
  font-weight: 500;
  background: rgba(99, 102, 241, 0.15);
  color: #a5b4fc;
  border: 1px solid rgba(99, 102, 241, 0.3);
  flex-shrink: 0;
}

.lesson-item__badges {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 0.75rem;
}

.lesson-item__badge {
  font-size: 0.7rem;
  padding: 0.3rem 0.6rem;
  border-radius: 4px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  flex-shrink: 0;
}

.lesson-item__badge--published {
  background: rgba(34, 197, 94, 0.15);
  color: #86efac;
  border: 1px solid rgba(34, 197, 94, 0.3);
}

.lesson-item__badge--draft {
  background: rgba(251, 191, 36, 0.15);
  color: #fde047;
  border: 1px solid rgba(251, 191, 36, 0.3);
}

.lesson-item__badge--free {
  background: rgba(34, 211, 238, 0.15);
  color: #67e8f9;
  border: 1px solid rgba(34, 211, 238, 0.3);
}

.lesson-item__meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: 1rem;
}

.lesson-item__actions {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  padding-top: 0.75rem;
  border-top: 1px solid rgba(139, 92, 246, 0.1);
}

.lesson-item__actions button {
  background: rgba(139, 92, 246, 0.1);
  border: 1px solid rgba(139, 92, 246, 0.3);
  border-radius: 6px;
  color: #c4b5fd;
  padding: 0.4rem 0.75rem;
  font-size: 0.8rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.lesson-item__actions button:hover {
  background: rgba(139, 92, 246, 0.2);
  border-color: rgba(139, 92, 246, 0.5);
}

.lesson-item__actions button[data-action="delete"] {
  background: rgba(239, 68, 68, 0.1);
  border-color: rgba(239, 68, 68, 0.3);
  color: #fca5a5;
}

.lesson-item__actions button[data-action="delete"]:hover {
  background: rgba(239, 68, 68, 0.2);
  border-color: rgba(239, 68, 68, 0.5);
}

.lesson-form {
  background: rgba(11, 15, 28, 0.95);
  backdrop-filter: blur(12px);
  border-top: 1px solid rgba(139, 92, 246, 0.2);
  padding: 2rem;
  margin-top: auto;
}

.lesson-form[hidden] {
  display: none;
}

.lesson-form h3 {
  font-size: 1.1rem;
  font-weight: 600;
  color: #f8fafc;
  margin: 0 0 1.5rem;
}

.lesson-form label {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 1rem;
  font-size: 0.875rem;
  color: #e2e8f0;
}

.lesson-form label span {
  font-weight: 500;
}

.lesson-form input[type="text"],
.lesson-form input[type="url"],
.lesson-form input[type="number"],
.lesson-form select,
.lesson-form textarea {
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(139, 92, 246, 0.3);
  border-radius: 8px;
  padding: 0.75rem 1rem;
  color: #f8fafc;
  font-size: 0.95rem;
  transition: all 0.2s ease;
}

.lesson-form input:focus,
.lesson-form select:focus,
.lesson-form textarea:focus {
  outline: none;
  border-color: #8b5cf6;
  background: rgba(0, 0, 0, 0.4);
  box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.1);
}

.lesson-form input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin-right: 0.5rem;
  cursor: pointer;
  accent-color: #8b5cf6;
}

.lesson-form label:has(input[type="checkbox"]) {
  flex-direction: row;
  align-items: center;
  cursor: pointer;
}

.lesson-form__actions {
  display: flex;
  justify-content: flex-end;
  gap: 1rem;
  margin-top: 1.5rem;
}

.lesson-form__actions .button {
  min-width: 100px;
}

@media (max-width: 960px) {
  .lessons-panel {
    width: 100%;
    border-left: none;
  }
}

.portal-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: 28px;
}

.portal-card--module header,
.portal-card--announcements header {
  display: grid;
  gap: 10px;
}

.portal-card--module h3,
.portal-card--announcements h3 {
  margin: 0;
  font-size: 20px;
}

.portal-card--module p,
.portal-card--announcements p {
  margin: 0;
  color: var(--color-text-muted);
  line-height: 1.6;
}

.portal-module-meta {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.42);
}

.portal-card__cta {
  justify-self: start;
}

.portal-card--announcements {
  gap: 20px;
}

.portal-activity {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 18px;
}

.portal-activity li {
  display: grid;
  gap: 8px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.portal-activity li:last-child {
  border-bottom: none;
}

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

.portal-activity__source {
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.45);
}

.portal-activity p {
  margin: 0;
  color: var(--color-text-muted);
  line-height: 1.6;
}

.portal-activity time {
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.4);
}

.has-modal-open {
  overflow: hidden !important;
}

.modal {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  z-index: 200;
  overflow: hidden;
}

.modal[hidden] {
  display: none !important;
}

.modal__overlay {
  position: fixed;
  inset: 0;
  background: rgba(6, 7, 12, 0.72);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 1;
}

.modal__dialog {
  position: relative;
  width: min(560px, 100%);
  max-height: 90vh;
  overflow-y: auto;
  background: rgba(18, 19, 29, 0.95);
  border: 1px solid rgba(139, 92, 246, 0.35);
  border-radius: var(--radius-medium);
  box-shadow: 0 32px 80px rgba(5, 6, 12, 0.75);
  padding: 40px 42px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  opacity: 0;
  transform: translateY(12px) scale(0.98);
  transition: opacity 0.32s ease, transform 0.32s ease;
  z-index: 2;
  -webkit-overflow-scrolling: touch;
}

.modal.is-open .modal__overlay {
  opacity: 1;
}

.modal.is-open .modal__dialog {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.modal__header {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.modal__badge {
  align-self: flex-start;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(0, 229, 255, 0.12);
  border: 1px solid rgba(0, 229, 255, 0.35);
  color: var(--color-secondary);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.modal__header h2 {
  margin: 0;
  font-size: 28px;
  letter-spacing: 0.02em;
}

.modal__header p {
  margin: 0;
  color: var(--color-text-muted);
  font-size: 15px;
  line-height: 1.6;
}

.modal__form {
  display: grid;
  gap: 22px;
}

.modal__consent {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 14px;
  color: var(--color-text-muted);
  line-height: 1.5;
}

.modal__consent input[type="checkbox"] {
  margin-top: 3px;
  accent-color: var(--color-secondary);
}

.modal__consent label {
  cursor: pointer;
}

.modal__consent strong {
  display: block;
  color: var(--color-text);
  margin-bottom: 4px;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.modal__actions {
  display: grid;
  gap: 12px;
}

.password-hint {
  grid-column: 1 / -1;
  margin: -4px 0 0;
  font-size: 13px;
  line-height: 1.4;
  color: rgba(255, 255, 255, 0.65);
}

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

.modal__grid .form-field {
  grid-column: span 2;
}

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

  .modal__grid .form-field {
    grid-column: auto;
  }
}

@media (max-width: 600px) {
  .modal {
    padding: 32px 18px;
  }

  .modal__dialog {
    padding: 30px 26px;
    gap: 20px;
    max-height: calc(100vh - 64px);
  }

  .modal__header h2 {
    font-size: 24px;
  }
}

@media (max-width: 480px) {
  .modal {
    padding: 16px;
  }

  .modal__dialog {
    width: 100%;
    max-width: 100%;
    max-height: 90vh;
    padding: 24px 20px;
    border-radius: 16px;
    box-shadow: 0 20px 40px rgba(5, 6, 12, 0.55);
  }

  .modal__header {
    gap: 8px;
  }

  .modal__badge {
    font-size: 11px;
    padding: 6px 12px;
  }

  .modal__header h2 {
    font-size: 20px;
    line-height: 1.2;
  }

  .modal__header p {
    font-size: 14px;
    line-height: 1.5;
  }

  .modal__grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .modal__form {
    gap: 16px;
  }

  .form-field {
    gap: 6px;
  }

  .form-field label {
    font-size: 13px;
    font-weight: 500;
  }

  .form-field input,
  .form-field select,
  .form-field textarea {
    font-size: 15px;
    padding: 12px 14px;
    min-height: 48px;
    border-radius: 10px;
  }

  .form-field textarea {
    min-height: 80px;
  }

  .modal__consent {
    gap: 8px;
    padding: 12px;
  }

  .modal__consent label {
    font-size: 12px;
    line-height: 1.4;
  }

  .modal__actions {
    gap: 10px;
    margin-top: 12px;
  }

  .modal__actions .button {
    min-height: 48px;
    font-size: 14px;
    padding: 0 20px;
    width: 100%;
  }

  .password-hint {
    font-size: 11px;
    line-height: 1.3;
  }
}

@media (max-width: 1080px) {
  .portal-shell {
    grid-template-columns: 240px 1fr;
  }

  .portal-main {
    padding: 36px;
  }

  .portal-hero-card__stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .portal-overview {
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  }

  .portal-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 900px) {
  .portal-shell {
    grid-template-columns: 1fr;
  }

  .portal-sidebar {
    position: sticky;
    top: 0;
    z-index: 10;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 16px 22px;
  }

  .portal-sidebar__content,
  .portal-sidebar__footer,
  .portal-compact-toggle {
    display: none;
  }

  .portal-main {
    padding: 32px 22px 48px;
  }

  .portal-topbar__actions {
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 12px;
  }

  .portal-searchfield {
    min-width: 100%;
    order: 3;
  }

  .portal-hero-card__stats {
    grid-template-columns: 1fr;
  }

  .portal-overview {
    grid-template-columns: 1fr;
  }

  .auth-form__fields {
    grid-template-columns: 1fr;
  }

  .auth-form__actions {
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
  }

  .auth-form__actions .button {
    width: 100%;
  }

  .auth-form__support {
    text-align: center;
    letter-spacing: 0.12em;
  }
}

@media (min-width: 640px) {
  .auth-quickstart__actions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .auth-form__actions {
    flex-direction: row;
    align-items: center;
  }

  .auth-form__actions .button {
    width: auto;
    flex: 1;
  }
}

@media (max-width: 600px) {
  .portal-hero-card {
    padding: 28px;
  }

  .portal-hero-card__header {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .portal-hero-card__stats {
    grid-template-columns: 1fr;
    width: 100%;
  }

  .portal-overview-card {
    padding: 24px;
  }

  .portal-progress-info {
    flex-direction: column;
    gap: 8px;
  }

  .portal-lesson {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .portal-lesson .portal-badge {
    justify-self: flex-start;
  }
}

@media (max-width: 1080px) {
  .auth-section {
    grid-template-columns: minmax(0, 1fr);
    gap: 56px;
  }

  .auth-card {
    width: 100%;
    justify-self: stretch;
  }
}

@media (max-width: 680px) {
  .auth-section {
    padding: 36px 22px 120px;
  }

  .auth-card {
    padding: 32px;
  }

  .auth-panel {
    padding: 26px;
  }

  .founder-card {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
  }

  .founder-meta {
    align-items: center;
  }

  .founder-signature {
    grid-column: 1;
  }

  .founder-signature::after {
    margin-inline: auto;
  }
}

@media (max-width: 520px) {
  .auth-section {
    padding: 32px 18px 110px;
  }

  .auth-card {
    padding: 28px;
  }

  .form-field input {
    padding: 16px 18px;
  }

  .auth-panel {
    padding: 24px;
  }
}

/* ============================================ */
/* MATERIALS PANEL */
/* ============================================ */

.lesson-materials-btn {
  position: absolute;
  bottom: 20px;
  left: 20px;
  right: 20px;
  padding: 12px 16px;
  background: rgba(139, 92, 246, 0.1);
  border: 1px solid rgba(139, 92, 246, 0.3);
  border-radius: 8px;
  color: #a78bfa;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}

.lesson-materials-btn:hover {
  background: rgba(139, 92, 246, 0.15);
  border-color: rgba(139, 92, 246, 0.5);
}

.materials-panel {
  position: fixed;
  top: 0;
  right: 0;
  width: min(650px, 100%);
  height: 100vh;
  background: linear-gradient(135deg, rgba(11, 15, 28, 0.98) 0%, rgba(15, 20, 35, 0.98) 100%);
  backdrop-filter: blur(12px);
  border-left: 1px solid rgba(139, 92, 246, 0.3);
  box-shadow: -24px 0 60px rgba(0, 0, 0, 0.5);
  display: flex;
  flex-direction: column;
  z-index: 25;
  overflow: hidden;
}

.materials-panel[hidden] {
  display: none;
}

.materials-panel__header {
  background: rgba(11, 15, 28, 0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(139, 92, 246, 0.2);
  padding: 1.75rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.materials-panel__header>div {
  flex: 1;
}

.materials-panel__header button[data-materials-back] {
  background: rgba(139, 92, 246, 0.1);
  border: 1px solid rgba(139, 92, 246, 0.3);
  border-radius: 6px;
  color: #c4b5fd;
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  cursor: pointer;
  transition: all 0.2s ease;
  margin-bottom: 0.75rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.materials-panel__header button[data-materials-back]:hover {
  background: rgba(139, 92, 246, 0.2);
  border-color: rgba(139, 92, 246, 0.5);
}

.materials-panel__header h2 {
  font-size: 1.35rem;
  font-weight: 600;
  color: #f8fafc;
  margin: 0 0 0.25rem;
}

.materials-panel__header p {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.6);
  margin: 0;
}

.materials-panel__header button[data-materials-close] {
  background: rgba(139, 92, 246, 0.1);
  border: 1px solid rgba(139, 92, 246, 0.3);
  border-radius: 8px;
  color: #c4b5fd;
  font-size: 1.25rem;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.materials-panel__header button[data-materials-close]:hover {
  background: rgba(139, 92, 246, 0.2);
  border-color: rgba(139, 92, 246, 0.5);
  color: #e9d5ff;
}

.materials-panel__content {
  flex: 1;
  overflow-y: auto;
  padding: 2rem;
}

.materials-panel__actions {
  margin-bottom: 1.5rem;
}

.materials-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.materials-empty {
  text-align: center;
  color: rgba(255, 255, 255, 0.5);
  padding: 3rem 1rem;
  font-size: 0.95rem;
}

.material-item {
  background: rgba(139, 92, 246, 0.05);
  border: 1px solid rgba(139, 92, 246, 0.2);
  border-radius: 12px;
  padding: 1.25rem;
  transition: all 0.2s ease;
}

.material-item:hover {
  background: rgba(139, 92, 246, 0.08);
  border-color: rgba(139, 92, 246, 0.3);
}

.material-item__header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
  flex-wrap: wrap;
}

.material-item__type {
  background: rgba(139, 92, 246, 0.2);
  color: #c4b5fd;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.35rem 0.65rem;
  border-radius: 6px;
  flex-shrink: 0;
}

.material-item__title {
  font-size: 1rem;
  font-weight: 600;
  color: #f8fafc;
  margin: 0 0 0.5rem;
}

.material-item__url {
  font-size: 0.875rem;
  color: #06b6d4;
  text-decoration: none;
  word-break: break-all;
  display: block;
  margin-bottom: 0.5rem;
}

.material-item__url:hover {
  text-decoration: underline;
  color: #22d3ee;
}

.material-item__description {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.7);
  margin: 0.5rem 0 0;
  line-height: 1.5;
}

.material-item__meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: 0.75rem;
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.5);
  flex-wrap: wrap;
}

.material-item__actions {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-top: 0.75rem;
}

.material-item__actions button {
  padding: 0.4rem 0.875rem;
  font-size: 0.8125rem;
  border-radius: 6px;
  transition: all 0.2s ease;
}

.material-form {
  background: rgba(11, 15, 28, 0.95);
  backdrop-filter: blur(12px);
  border-top: 1px solid rgba(139, 92, 246, 0.2);
  padding: 2rem;
  margin-top: auto;
  overflow-y: auto;
  z-index: 26;
}

.material-form[hidden] {
  display: none;
}

.material-form h3 {
  font-size: 1.1rem;
  font-weight: 600;
  color: #f8fafc;
  margin: 0 0 1.5rem;
}

.material-form label {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 1rem;
  font-size: 0.875rem;
  color: #e2e8f0;
}

.material-form label span {
  font-weight: 500;
}

.material-form input[type="text"],
.material-form input[type="url"],
.material-form input[type="number"],
.material-form select,
.material-form textarea {
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(139, 92, 246, 0.3);
  border-radius: 8px;
  padding: 0.75rem 1rem;
  color: #f8fafc;
  font-size: 0.95rem;
  font-family: inherit;
  transition: all 0.2s ease;
}

.material-form input:focus,
.material-form select:focus,
.material-form textarea:focus {
  outline: none;
  border-color: #8b5cf6;
  background: rgba(0, 0, 0, 0.4);
  box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.1);
}

.material-form small {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.5);
  margin-top: -0.25rem;
}

.material-form input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin-right: 0.5rem;
  cursor: pointer;
  accent-color: #8b5cf6;
}

.material-form label:has(input[type="checkbox"]) {
  flex-direction: row;
  align-items: center;
  cursor: pointer;
}

.material-form__actions {
  display: flex;
  justify-content: flex-end;
  gap: 1rem;
  margin-top: 1.5rem;
}

.material-form__actions .button {
  min-width: 100px;
}

.materials-empty {
  text-align: center;
  padding: 48px 24px;
  color: rgba(244, 244, 255, 0.5);
}

.materials-empty p {
  margin: 12px 0 0;
  font-size: 14px;
}

/* Admin panels visibility */
.portal-main[hidden] {
  display: none !important;
  visibility: hidden !important;
}

/* Insights cards overview */
.insights-cards--overview {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 32px;
}

.insight-card--premium {
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.1) 0%, rgba(124, 58, 237, 0.15) 100%);
  border-color: rgba(139, 92, 246, 0.3);
}

.insight-card--premium .insight-card__icon {
  background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
}

@media (max-width: 1200px) {
  .insights-cards--overview {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .insights-cards--overview {
    grid-template-columns: 1fr;
  }
}

/* Financial Metrics Section */
.financial-metrics {
  background: linear-gradient(135deg, rgba(15, 20, 35, 0.8) 0%, rgba(11, 15, 28, 0.9) 100%);
  border: 1px solid rgba(139, 92, 246, 0.25);
  border-radius: 16px;
  padding: 28px;
  margin-bottom: 40px;
  backdrop-filter: blur(12px);
}

.financial-metrics__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(139, 92, 246, 0.15);
}

.financial-metrics__title {
  font-size: 18px;
  font-weight: 600;
  color: #f8fafc;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.financial-metrics__badge {
  background: rgba(139, 92, 246, 0.15);
  color: #a78bfa;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 500;
  border: 1px solid rgba(139, 92, 246, 0.3);
}

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

.financial-card {
  background: rgba(9, 9, 14, 0.6);
  border: 1px solid rgba(139, 92, 246, 0.2);
  border-radius: 12px;
  padding: 20px;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.financial-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #8b5cf6 0%, #7c3aed 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.financial-card:hover {
  border-color: rgba(139, 92, 246, 0.4);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(139, 92, 246, 0.15);
}

.financial-card:hover::before {
  opacity: 1;
}

.financial-card__header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}

.financial-card__icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
}

.financial-card__icon--revenue {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
}

.financial-card__icon--ticket {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
}

.financial-card__icon--conversion {
  background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
}

.financial-card__icon--enrollments {
  background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
}

.financial-card__label {
  font-size: 13px;
  color: rgba(244, 244, 255, 0.6);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 500;
}

.financial-card__value {
  font-size: 28px;
  font-weight: 700;
  color: #f8fafc;
  margin-bottom: 12px;
  line-height: 1;
  letter-spacing: -0.5px;
}

.financial-card__footer {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
}

.financial-card__trend {
  padding: 4px 8px;
  border-radius: 6px;
  font-weight: 600;
}

.financial-card__trend--up {
  background: rgba(16, 185, 129, 0.15);
  color: #10b981;
}

.financial-card__trend--down {
  background: rgba(239, 68, 68, 0.15);
  color: #ef4444;
}

.financial-card__meta {
  color: rgba(244, 244, 255, 0.5);
}

.financial-card__progress {
  width: 100%;
  height: 4px;
  background: rgba(139, 92, 246, 0.2);
  border-radius: 2px;
  overflow: hidden;
}

.financial-card__progress-bar {
  height: 100%;
  background: linear-gradient(90deg, #8b5cf6 0%, #a78bfa 100%);
  border-radius: 2px;
  transition: width 0.6s ease;
}

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

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

  .financial-metrics {
    padding: 20px;
  }

  .financial-metrics__header {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
}

/* ============================================
   STUDENTS MANAGEMENT STYLES
   ============================================ */

/* Admin Header */
.admin-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 32px;
  padding-bottom: 24px;
  border-bottom: 1px solid rgba(139, 92, 246, 0.2);
}

.admin-header__title {
  font-size: 28px;
  font-weight: 700;
  color: #f4f4ff;
  margin: 0;
}

/* Students Filters */
.students-filters {
  margin-bottom: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.students-filters__search {
  width: 100%;
}

.students-filters__search .form-input {
  width: 100%;
  padding: 12px 16px;
  background: rgba(15, 20, 35, 0.6);
  border: 1px solid rgba(139, 92, 246, 0.3);
  border-radius: 8px;
  color: #f4f4ff;
  font-size: 14px;
  transition: all 0.2s ease;
}

.students-filters__search .form-input:focus {
  outline: none;
  border-color: rgba(139, 92, 246, 0.6);
  background: rgba(15, 20, 35, 0.8);
  box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.1);
}

.students-filters__selects {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 12px;
}

.form-select {
  padding: 10px 14px;
  background: rgba(15, 20, 35, 0.6);
  border: 1px solid rgba(139, 92, 246, 0.3);
  border-radius: 8px;
  color: #f4f4ff;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.form-select:focus {
  outline: none;
  border-color: rgba(139, 92, 246, 0.6);
  background: rgba(15, 20, 35, 0.8);
}

/* Stats Cards */
.students-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  margin-bottom: 32px;
}

.stat-card {
  background: linear-gradient(135deg, rgba(15, 20, 35, 0.8) 0%, rgba(11, 15, 28, 0.9) 100%);
  border: 1px solid rgba(139, 92, 246, 0.25);
  border-radius: 12px;
  padding: 20px;
  text-align: center;
}

.stat-card__value {
  font-size: 32px;
  font-weight: 800;
  color: #8b5cf6;
  margin-bottom: 8px;
}

.stat-card__label {
  font-size: 13px;
  color: rgba(244, 244, 255, 0.6);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Students Table */
.students-table-container {
  background: linear-gradient(135deg, rgba(15, 20, 35, 0.8) 0%, rgba(11, 15, 28, 0.9) 100%);
  border: 1px solid rgba(139, 92, 246, 0.25);
  border-radius: 12px;
  padding: 24px;
  overflow-x: auto;
}

.students-table {
  width: 100%;
  border-collapse: collapse;
}

.students-table thead {
  border-bottom: 2px solid rgba(139, 92, 246, 0.3);
}

.students-table th {
  padding: 12px 16px;
  text-align: left;
  font-size: 12px;
  font-weight: 600;
  color: rgba(244, 244, 255, 0.7);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.students-table td {
  padding: 16px;
  border-bottom: 1px solid rgba(139, 92, 246, 0.1);
  color: #f4f4ff;
  font-size: 14px;
}

.students-table tbody tr {
  transition: background 0.2s ease;
}

.students-table tbody tr:hover {
  background: rgba(139, 92, 246, 0.05);
}

.text-center {
  text-align: center;
}

.table-actions {
  display: flex;
  gap: 8px;
  justify-content: center;
}

/* Badges */
.badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 600;
  text-transform: capitalize;
}

.badge--aprendizagem {
  background: rgba(59, 130, 246, 0.2);
  color: #60a5fa;
  border: 1px solid rgba(59, 130, 246, 0.3);
}

.badge--certificacao {
  background: rgba(139, 92, 246, 0.2);
  color: #a78bfa;
  border: 1px solid rgba(139, 92, 246, 0.3);
}

.badge--networking {
  background: rgba(236, 72, 153, 0.2);
  color: #f472b6;
  border: 1px solid rgba(236, 72, 153, 0.3);
}

.badge--iniciante {
  background: rgba(34, 197, 94, 0.2);
  color: #4ade80;
  border: 1px solid rgba(34, 197, 94, 0.3);
}

.badge--intermediario {
  background: rgba(251, 191, 36, 0.2);
  color: #fbbf24;
  border: 1px solid rgba(251, 191, 36, 0.3);
}

.badge--avancado {
  background: rgba(239, 68, 68, 0.2);
  color: #f87171;
  border: 1px solid rgba(239, 68, 68, 0.3);
}

.badge--free {
  background: rgba(34, 197, 94, 0.2);
  color: #4ade80;
  border: 1px solid rgba(34, 197, 94, 0.3);
}

.badge--paid {
  background: rgba(251, 191, 36, 0.2);
  color: #fbbf24;
  border: 1px solid rgba(251, 191, 36, 0.3);
}

/* Buttons */
.btn {
  padding: 10px 20px;
  border: none;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.btn--primary {
  background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
  color: #fff;
}

.btn--primary:hover {
  background: linear-gradient(135deg, #7c3aed 0%, #6d28d9 100%);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(139, 92, 246, 0.4);
}

.btn--secondary {
  background: rgba(139, 92, 246, 0.1);
  color: #a78bfa;
  border: 1px solid rgba(139, 92, 246, 0.3);
}

.btn--secondary:hover {
  background: rgba(139, 92, 246, 0.2);
}

.btn--icon {
  padding: 8px;
  background: rgba(139, 92, 246, 0.1);
  border: 1px solid rgba(139, 92, 246, 0.2);
  font-size: 16px;
}

.btn--icon:hover {
  background: rgba(139, 92, 246, 0.2);
  transform: scale(1.1);
}

.btn--sm {
  padding: 6px;
  font-size: 14px;
}

.btn--danger {
  background: rgba(239, 68, 68, 0.1);
  border-color: rgba(239, 68, 68, 0.3);
}

.btn--danger:hover {
  background: rgba(239, 68, 68, 0.2);
}

/* Loading & Empty States */
.loading-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 64px 24px;
  color: rgba(244, 244, 255, 0.6);
}

.spinner {
  width: 40px;
  height: 40px;
  border: 3px solid rgba(139, 92, 246, 0.2);
  border-top-color: #8b5cf6;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin-bottom: 16px;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.empty-state {
  text-align: center;
  padding: 64px 24px;
  color: rgba(244, 244, 255, 0.5);
}

.empty-state p {
  font-size: 16px;
  margin: 0;
}

/* Modal */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal__overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(4px);
}

.modal__content {
  position: relative;
  background: linear-gradient(135deg, rgba(15, 20, 35, 0.95) 0%, rgba(11, 15, 28, 0.98) 100%);
  border: 1px solid rgba(139, 92, 246, 0.3);
  border-radius: 16px;
  padding: 32px;
  max-width: 600px;
  width: 90%;
  max-height: 80vh;
  overflow-y: auto;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.modal__content--large {
  max-width: 900px;
}

.modal__close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: #f87171;
  font-size: 24px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.modal__close:hover {
  background: rgba(239, 68, 68, 0.2);
  transform: scale(1.1);
}

.modal-title {
  font-size: 24px;
  font-weight: 700;
  color: #f4f4ff;
  margin: 0 0 24px 0;
}

/* Student Detail */
.student-detail {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.student-detail__section h3 {
  font-size: 16px;
  font-weight: 600;
  color: #a78bfa;
  margin: 0 0 16px 0;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.student-detail__section dl {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 12px;
  margin: 0;
}

.student-detail__section dt {
  font-weight: 600;
  color: rgba(244, 244, 255, 0.7);
  font-size: 14px;
}

.student-detail__section dd {
  color: #f4f4ff;
  margin: 0;
  font-size: 14px;
}

/* Courses List in Detail */
.courses-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.course-item {
  background: rgba(139, 92, 246, 0.05);
  border: 1px solid rgba(139, 92, 246, 0.2);
  border-radius: 8px;
  padding: 16px;
}

.course-item__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.course-item__header strong {
  color: #f4f4ff;
  font-size: 15px;
}

.course-item__progress {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
}

.progress-bar {
  flex: 1;
  height: 8px;
  background: rgba(139, 92, 246, 0.2);
  border-radius: 4px;
  overflow: hidden;
}

.progress-bar__fill {
  height: 100%;
  background: linear-gradient(90deg, #8b5cf6 0%, #a78bfa 100%);
  transition: width 0.3s ease;
}

.progress-text {
  font-size: 13px;
  font-weight: 600;
  color: #a78bfa;
  min-width: 45px;
  text-align: right;
}

.course-item__meta {
  display: flex;
  gap: 16px;
  font-size: 12px;
  color: rgba(244, 244, 255, 0.5);
}

.empty-message {
  color: rgba(244, 244, 255, 0.5);
  font-size: 14px;
  font-style: italic;
}

/* Form */
.form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-label {
  font-size: 13px;
  font-weight: 600;
  color: rgba(244, 244, 255, 0.8);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.form-input {
  padding: 12px 16px;
  background: rgba(15, 20, 35, 0.6);
  border: 1px solid rgba(139, 92, 246, 0.3);
  border-radius: 8px;
  color: #f4f4ff;
  font-size: 14px;
  transition: all 0.2s ease;
}

.form-input:focus {
  outline: none;
  border-color: rgba(139, 92, 246, 0.6);
  background: rgba(15, 20, 35, 0.8);
  box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.1);
}

.form-actions {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
  margin-top: 8px;
}

.error-message {
  color: #f87171;
  font-size: 14px;
  text-align: center;
  padding: 20px;
}

/* ============================================
   PROFESSIONAL STUDENTS MANAGEMENT UI
   ============================================ */

.students-dashboard {
  padding: 0;
  max-width: 1400px;
  margin: 0 auto;
}

/* Header */
.students-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 32px;
  padding-bottom: 24px;
  border-bottom: 1px solid rgba(139, 92, 246, 0.15);
}

.students-header__left {
  flex: 1;
}

.students-header__title {
  font-size: 32px;
  font-weight: 700;
  color: #f4f4ff;
  margin: 0 0 8px 0;
  letter-spacing: -0.5px;
}

.students-header__subtitle {
  font-size: 15px;
  color: rgba(244, 244, 255, 0.6);
  margin: 0;
  font-weight: 400;
}

.students-header__actions {
  display: flex;
  gap: 12px;
}

.button__icon {
  font-size: 16px;
}

/* Stats Grid */
.students-stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 32px;
}

.stat-card {
  background: linear-gradient(135deg, rgba(15, 20, 35, 0.9) 0%, rgba(11, 15, 28, 0.95) 100%);
  border: 1px solid rgba(139, 92, 246, 0.2);
  border-radius: 16px;
  padding: 24px;
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
}

.stat-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, #8b5cf6, #a78bfa);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.stat-card:hover {
  transform: translateY(-2px);
  border-color: rgba(139, 92, 246, 0.4);
  box-shadow: 0 8px 32px rgba(139, 92, 246, 0.15);
}

.stat-card:hover::before {
  opacity: 1;
}

.stat-card--primary::before {
  background: linear-gradient(90deg, #8b5cf6, #a78bfa);
}

.stat-card--success::before {
  background: linear-gradient(90deg, #10b981, #34d399);
}

.stat-card--info::before {
  background: linear-gradient(90deg, #3b82f6, #60a5fa);
}

.stat-card__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.stat-card__icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  background: rgba(139, 92, 246, 0.1);
  border: 1px solid rgba(139, 92, 246, 0.2);
}

.stat-card--success .stat-card__icon {
  background: rgba(16, 185, 129, 0.1);
  border-color: rgba(16, 185, 129, 0.2);
}

.stat-card--info .stat-card__icon {
  background: rgba(59, 130, 246, 0.1);
  border-color: rgba(59, 130, 246, 0.2);
}

.stat-card__trend {
  display: flex;
  align-items: center;
}

.trend-badge {
  padding: 4px 10px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 600;
  background: rgba(139, 92, 246, 0.1);
  color: #a78bfa;
  border: 1px solid rgba(139, 92, 246, 0.2);
}

.trend-badge--up {
  background: rgba(16, 185, 129, 0.1);
  color: #34d399;
  border-color: rgba(16, 185, 129, 0.2);
}

.stat-card__body {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.stat-card__value {
  font-size: 36px;
  font-weight: 800;
  color: #f4f4ff;
  line-height: 1;
  letter-spacing: -1px;
}

.stat-card__label {
  font-size: 13px;
  color: rgba(244, 244, 255, 0.5);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Filters Card */
.students-filters-card {
  background: linear-gradient(135deg, rgba(15, 20, 35, 0.9) 0%, rgba(11, 15, 28, 0.95) 100%);
  border: 1px solid rgba(139, 92, 246, 0.2);
  border-radius: 16px;
  padding: 24px;
  margin-bottom: 24px;
}

.filters-row {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 16px;
}

.filter-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.filter-group--search {
  grid-column: span 1;
}

.filter-label {
  font-size: 12px;
  font-weight: 600;
  color: rgba(244, 244, 255, 0.7);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.filter-input,
.filter-select {
  padding: 12px 16px;
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(139, 92, 246, 0.2);
  border-radius: 10px;
  color: #f4f4ff;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.2s ease;
  outline: none;
}

.filter-input:focus,
.filter-select:focus {
  border-color: rgba(139, 92, 246, 0.5);
  background: rgba(0, 0, 0, 0.3);
  box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.1);
}

.filter-input::placeholder {
  color: rgba(244, 244, 255, 0.3);
}

.filter-select {
  cursor: pointer;
}

/* Table Card */
.students-table-card {
  background: linear-gradient(135deg, rgba(15, 20, 35, 0.9) 0%, rgba(11, 15, 28, 0.95) 100%);
  border: 1px solid rgba(139, 92, 246, 0.2);
  border-radius: 16px;
  overflow: hidden;
}

.table-container {
  overflow: visible;
  width: 100%;
}

.students-table-card {
  overflow: visible;
}

.data-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  table-layout: auto;
  min-width: 100%;
}

.data-table thead {
  background: rgba(139, 92, 246, 0.05);
}

.data-table th {
  padding: 16px 12px;
  text-align: left;
  font-size: 11px;
  font-weight: 700;
  color: rgba(244, 244, 255, 0.6);
  text-transform: uppercase;
  letter-spacing: 1px;
  border-bottom: 1px solid rgba(139, 92, 246, 0.15);
  white-space: nowrap;
}

.th-center {
  text-align: center;
}

.th-name {
  width: auto;
  min-width: 200px;
}

.th-actions {
  width: auto;
  min-width: 140px;
}

.table-row {
  transition: all 0.2s ease;
  border-bottom: 1px solid rgba(139, 92, 246, 0.08);
}

.table-row:hover {
  background: rgba(139, 92, 246, 0.03);
}

.table-row td {
  padding: 16px 12px;
  color: #f4f4ff;
  font-size: 14px;
  vertical-align: middle;
}

.td-center {
  text-align: center;
}

/* Student Info */
.student-info {
  display: flex;
  align-items: center;
  gap: 12px;
}

.student-avatar {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: linear-gradient(135deg, #8b5cf6, #a78bfa);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: 700;
  color: #fff;
  flex-shrink: 0;
}

.student-details {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.student-name {
  font-weight: 600;
  color: #f4f4ff;
  font-size: 14px;
}

.student-meta {
  font-size: 12px;
  color: rgba(244, 244, 255, 0.4);
}

.td-company {
  color: rgba(244, 244, 255, 0.7);
}

.text-muted {
  color: rgba(244, 244, 255, 0.3);
}

/* Badges */
.badge {
  display: inline-flex;
  padding: 5px 12px;
  border-radius: 8px;
  font-size: 11px;
  font-weight: 600;
  text-transform: capitalize;
  white-space: nowrap;
}

.badge--aprendizagem {
  background: rgba(59, 130, 246, 0.15);
  color: #60a5fa;
  border: 1px solid rgba(59, 130, 246, 0.25);
}

.badge--certificacao {
  background: rgba(139, 92, 246, 0.15);
  color: #a78bfa;
  border: 1px solid rgba(139, 92, 246, 0.25);
}

.badge--networking {
  background: rgba(236, 72, 153, 0.15);
  color: #f472b6;
  border: 1px solid rgba(236, 72, 153, 0.25);
}

.badge--iniciante {
  background: rgba(34, 197, 94, 0.15);
  color: #4ade80;
  border: 1px solid rgba(34, 197, 94, 0.25);
}

.badge--intermediario {
  background: rgba(251, 191, 36, 0.15);
  color: #fbbf24;
  border: 1px solid rgba(251, 191, 36, 0.25);
}

.badge--avancado {
  background: rgba(239, 68, 68, 0.15);
  color: #f87171;
  border: 1px solid rgba(239, 68, 68, 0.25);
}

.count-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 32px;
  height: 32px;
  padding: 0 10px;
  border-radius: 8px;
  background: rgba(139, 92, 246, 0.1);
  color: #a78bfa;
  font-weight: 700;
  font-size: 13px;
  border: 1px solid rgba(139, 92, 246, 0.2);
}

/* Progress Cell */
.progress-cell {
  display: flex;
  align-items: center;
  gap: 10px;
  justify-content: center;
}

.mini-progress {
  width: 60px;
  height: 6px;
  background: rgba(139, 92, 246, 0.1);
  border-radius: 3px;
  overflow: hidden;
}

.mini-progress__bar {
  height: 100%;
  border-radius: 3px;
  transition: width 0.3s ease;
}

.mini-progress__bar--high {
  background: linear-gradient(90deg, #10b981, #34d399);
}

.mini-progress__bar--medium {
  background: linear-gradient(90deg, #f59e0b, #fbbf24);
}

.mini-progress__bar--low {
  background: linear-gradient(90deg, #ef4444, #f87171);
}

.progress-value {
  font-size: 13px;
  font-weight: 700;
  color: rgba(244, 244, 255, 0.7);
  min-width: 42px;
  text-align: right;
}

.td-date {
  color: rgba(244, 244, 255, 0.5);
  font-size: 13px;
}

/* Action Buttons */
.action-buttons {
  display: flex;
  gap: 6px;
  justify-content: center;
}

.action-btn {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  border: 1px solid;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.action-btn svg {
  transition: all 0.2s ease;
}

.action-btn--view {
  border-color: rgba(59, 130, 246, 0.3);
  color: #60a5fa;
}

.action-btn--view:hover {
  background: rgba(59, 130, 246, 0.15);
  border-color: rgba(59, 130, 246, 0.5);
  transform: scale(1.05);
}

.action-btn--edit {
  border-color: rgba(139, 92, 246, 0.3);
  color: #a78bfa;
}

.action-btn--edit:hover {
  background: rgba(139, 92, 246, 0.15);
  border-color: rgba(139, 92, 246, 0.5);
  transform: scale(1.05);
}

.action-btn--delete {
  border-color: rgba(239, 68, 68, 0.3);
  color: #f87171;
}

.action-btn--delete:hover {
  background: rgba(239, 68, 68, 0.15);
  border-color: rgba(239, 68, 68, 0.5);
  transform: scale(1.05);
}

/* Loading State */
.loading-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 80px 24px;
}

.loading-spinner {
  width: 48px;
  height: 48px;
  border: 4px solid rgba(139, 92, 246, 0.1);
  border-top-color: #8b5cf6;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin-bottom: 20px;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.loading-text {
  color: rgba(244, 244, 255, 0.5);
  font-size: 14px;
  font-weight: 500;
}

/* Empty State */
.empty-state-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 80px 24px;
  text-align: center;
}

.empty-state-icon {
  font-size: 64px;
  margin-bottom: 20px;
  opacity: 0.3;
}

.empty-state-title {
  font-size: 18px;
  font-weight: 600;
  color: #f4f4ff;
  margin: 0 0 8px 0;
}

.empty-state-text {
  font-size: 14px;
  color: rgba(244, 244, 255, 0.5);
  margin: 0;
}

/* Responsive */
@media (max-width: 1024px) {
  .filters-row {
    grid-template-columns: 1fr;
  }

  .filter-group--search {
    grid-column: span 1;
  }
}

@media (max-width: 768px) {
  .students-header {
    flex-direction: column;
    gap: 16px;
  }

  .students-stats-grid {
    grid-template-columns: 1fr;
  }

  .data-table {
    font-size: 12px;
  }

  .data-table th,
  .table-row td {
    padding: 12px 10px;
  }

  .student-avatar {
    width: 32px;
    height: 32px;
    font-size: 14px;
  }
}

/* Fix for Insights Overview Cards Icons */
.insights-cards--overview .insight-card__icon {
  width: 56px;
  height: 56px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  background: rgba(139, 92, 246, 0.15);
  border: 1px solid rgba(139, 92, 246, 0.25);
  flex-shrink: 0;
}

.insights-cards--overview .insight-card__icon svg {
  width: 28px;
  height: 28px;
}

.insights-cards--overview .insight-card__content {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
}

.insights-cards--overview .insight-card__value {
  font-size: 32px;
  font-weight: 800;
  color: #f4f4ff;
  line-height: 1;
}

.insights-cards--overview .insight-card__label {
  font-size: 13px;
  color: rgba(244, 244, 255, 0.6);
  font-weight: 500;
}

.insights-cards--overview .insight-card__badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  padding: 4px 10px;
  border-radius: 12px;
  background: rgba(139, 92, 246, 0.15);
  color: #a78bfa;
  font-weight: 600;
  border: 1px solid rgba(139, 92, 246, 0.25);
  width: fit-content;
  margin-top: 4px;
  transition: opacity 0.3s ease;
}

.insights-cards--overview .insight-card {
  display: flex;
  gap: 16px;
  align-items: center;
  padding: 20px;
  background: linear-gradient(135deg, rgba(15, 20, 35, 0.8) 0%, rgba(11, 15, 28, 0.9) 100%);
  border: 1px solid rgba(139, 92, 246, 0.2);
  border-radius: 12px;
  transition: all 0.2s ease;
}

.insights-cards--overview .insight-card:hover {
  border-color: rgba(139, 92, 246, 0.4);
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(139, 92, 246, 0.15);
}

.enrollment-breakdown {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid rgba(139, 92, 246, 0.15);
}

.breakdown-item {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.breakdown-badge {
  font-size: 11px;
  padding: 4px 10px;
  border-radius: 12px;
  font-weight: 600;
  border: 1px solid;
}

.breakdown-badge--paid {
  background: rgba(251, 191, 36, 0.15);
  color: #fbbf24;
  border-color: rgba(251, 191, 36, 0.3);
}

.breakdown-badge--free {
  background: rgba(16, 185, 129, 0.15);
  color: #10b981;
  border-color: rgba(16, 185, 129, 0.3);
}

/* Modal Styles */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal[hidden] {
  display: none !important;
}

.modal__overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(4px);
  animation: fadeIn 0.2s ease;
}

.modal__content {
  position: relative;
  background: linear-gradient(135deg, rgba(15, 20, 35, 0.98) 0%, rgba(11, 15, 28, 0.98) 100%);
  border: 1px solid rgba(139, 92, 246, 0.3);
  border-radius: 16px;
  padding: 32px;
  max-width: 600px;
  width: 90%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.5);
  animation: slideUp 0.3s ease;
}

.modal__content--large {
  max-width: 900px;
}

.modal__content--small {
  max-width: 480px;
}

.modal__close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 36px;
  height: 36px;
  border: none;
  background: rgba(139, 92, 246, 0.1);
  color: #a78bfa;
  font-size: 24px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
}

.modal__close:hover {
  background: rgba(139, 92, 246, 0.2);
  transform: rotate(90deg);
}

.modal-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 28px;
  padding-bottom: 20px;
  border-bottom: 1px solid rgba(139, 92, 246, 0.15);
}

.modal-header__icon {
  width: 56px;
  height: 56px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  background: rgba(139, 92, 246, 0.15);
  border: 1px solid rgba(139, 92, 246, 0.25);
  flex-shrink: 0;
}

.modal-title {
  font-size: 24px;
  font-weight: 700;
  color: #f4f4ff;
  margin: 0;
}

.modal-subtitle {
  font-size: 14px;
  color: rgba(244, 244, 255, 0.6);
  margin: 4px 0 0;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.email-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  background: rgba(139, 92, 246, 0.15);
  border: 1px solid rgba(139, 92, 246, 0.3);
  border-radius: 6px;
  font-size: 13px;
  color: #a78bfa;
  font-weight: 500;
}

.modal-loading {
  text-align: center;
  padding: 48px 24px;
}

.modal-loading .spinner {
  width: 48px;
  height: 48px;
  margin: 0 auto 16px;
}

.modal-error {
  text-align: center;
  padding: 48px 24px;
}

.error-icon {
  font-size: 64px;
  margin-bottom: 16px;
}

/* Detail Cards */
.detail-card {
  background: rgba(9, 9, 14, 0.6);
  border: 1px solid rgba(139, 92, 246, 0.15);
  border-radius: 12px;
  padding: 24px;
  margin-bottom: 20px;
}

.detail-card:last-child {
  margin-bottom: 0;
}

.detail-card__title {
  font-size: 16px;
  font-weight: 600;
  color: #f4f4ff;
  margin: 0 0 20px;
  display: flex;
  align-items: center;
  gap: 8px;
}

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

.detail-item {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.detail-label {
  font-size: 12px;
  color: rgba(244, 244, 255, 0.5);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 600;
}

.detail-value {
  font-size: 14px;
  color: #f4f4ff;
  font-weight: 500;
}

/* Courses Detail List */
.courses-detail-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.course-detail-item {
  background: rgba(15, 20, 35, 0.6);
  border: 1px solid rgba(139, 92, 246, 0.1);
  border-radius: 10px;
  padding: 16px;
  transition: all 0.2s ease;
}

.course-detail-item:hover {
  border-color: rgba(139, 92, 246, 0.3);
  background: rgba(15, 20, 35, 0.8);
}

.course-detail-header {
  margin-bottom: 12px;
}

.course-detail-title {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.course-detail-title strong {
  font-size: 15px;
  color: #f4f4ff;
}

.badge--small {
  font-size: 10px;
  padding: 3px 8px;
}

.course-detail-progress {
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.progress-bar-detailed {
  flex: 1;
  height: 8px;
  background: rgba(139, 92, 246, 0.1);
  border-radius: 4px;
  overflow: hidden;
}

.progress-bar-detailed__fill {
  height: 100%;
  border-radius: 4px;
  transition: width 0.5s ease;
}

.progress-bar-detailed__fill--low {
  background: linear-gradient(90deg, #ef4444, #f87171);
}

.progress-bar-detailed__fill--medium {
  background: linear-gradient(90deg, #f59e0b, #fbbf24);
}

.progress-bar-detailed__fill--high {
  background: linear-gradient(90deg, #10b981, #34d399);
}

.progress-percentage {
  font-size: 13px;
  font-weight: 600;
  color: #a78bfa;
  min-width: 80px;
  text-align: right;
}

.course-detail-meta {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.meta-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: rgba(244, 244, 255, 0.5);
}

.meta-item svg {
  opacity: 0.6;
}

.meta-item--accent {
  color: #a78bfa;
}

.meta-item--muted {
  color: rgba(244, 244, 255, 0.3);
}

.empty-state-small {
  text-align: center;
  padding: 32px 16px;
}

.empty-icon {
  font-size: 48px;
  display: block;
  margin-bottom: 12px;
  opacity: 0.5;
}

/* Form Modals */
.form-modal {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-row {
  display: flex;
  gap: 16px;
}

.form-row--two-cols {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-group--full {
  flex: 1;
}

.form-label {
  font-size: 13px;
  font-weight: 600;
  color: rgba(244, 244, 255, 0.8);
  display: flex;
  align-items: center;
  gap: 6px;
}

.form-label svg {
  opacity: 0.6;
}

.form-input,
.form-select {
  width: 100%;
  padding: 12px 16px;
  background: rgba(9, 9, 14, 0.8);
  border: 1px solid rgba(139, 92, 246, 0.2);
  border-radius: 8px;
  color: #f4f4ff;
  font-size: 14px;
  transition: all 0.2s ease;
}

.form-input:focus,
.form-select:focus {
  outline: none;
  border-color: rgba(139, 92, 246, 0.5);
  background: rgba(9, 9, 14, 1);
  box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.1);
}

.form-input::placeholder {
  color: rgba(244, 244, 255, 0.3);
}

.form-actions {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
  margin-top: 8px;
  padding-top: 20px;
  border-top: 1px solid rgba(139, 92, 246, 0.1);
}

.btn {
  padding: 12px 24px;
  border: none;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  gap: 8px;
}

.btn--primary {
  background: linear-gradient(135deg, #8b5cf6, #7c3aed);
  color: #fff;
}

.btn--primary:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(139, 92, 246, 0.4);
}

.btn--secondary {
  background: rgba(139, 92, 246, 0.1);
  color: #a78bfa;
  border: 1px solid rgba(139, 92, 246, 0.3);
}

.btn--secondary:hover:not(:disabled) {
  background: rgba(139, 92, 246, 0.2);
}

.btn--danger {
  background: linear-gradient(135deg, #ef4444, #dc2626);
  color: #fff;
}

.btn--danger:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(239, 68, 68, 0.4);
}

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.spinner-small {
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

.form-error {
  padding: 12px 16px;
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.3);
  border-radius: 8px;
  color: #fca5a5;
  font-size: 13px;
}

/* Confirm Dialog */
.confirm-dialog {
  text-align: center;
}

.confirm-dialog__icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.confirm-dialog__icon--danger {
  background: rgba(239, 68, 68, 0.1);
  color: #ef4444;
}

.confirm-dialog__title {
  font-size: 22px;
  font-weight: 700;
  color: #f4f4ff;
  margin: 0 0 12px;
}

.confirm-dialog__message {
  font-size: 15px;
  color: rgba(244, 244, 255, 0.7);
  margin: 0 0 24px;
}

.confirm-dialog__message strong {
  color: #f4f4ff;
}

.confirm-dialog__warning {
  background: rgba(251, 191, 36, 0.05);
  border: 1px solid rgba(251, 191, 36, 0.2);
  border-radius: 10px;
  padding: 16px;
  margin-bottom: 24px;
  display: flex;
  gap: 12px;
  text-align: left;
}

.confirm-dialog__warning svg {
  color: #fbbf24;
  flex-shrink: 0;
  margin-top: 2px;
}

.confirm-dialog__warning strong {
  color: #fbbf24;
  font-size: 13px;
}

.confirm-dialog__warning ul {
  margin: 8px 0;
  padding-left: 20px;
  font-size: 13px;
  color: rgba(244, 244, 255, 0.7);
}

.confirm-dialog__warning li {
  margin: 4px 0;
}

.warning-note {
  font-size: 12px;
  color: rgba(244, 244, 255, 0.5);
  font-style: italic;
  margin: 8px 0 0;
}

.confirm-dialog__actions {
  display: flex;
  gap: 12px;
  justify-content: center;
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* Admin Button Overrides - Smaller, clean buttons for admin panel */
.admin-main .button,
.courses-dashboard .button,
.students-dashboard .button,
.insights-dashboard .button {
  padding: 10px 20px;
  font-size: 13px;
  border-radius: 8px;
  text-transform: none;
  letter-spacing: normal;
  box-shadow: none;
  font-weight: 600;
}

.admin-main .button--primary,
.courses-dashboard .button--primary,
.students-dashboard .button--primary,
.insights-dashboard .button--primary {
  background: linear-gradient(135deg, #8b5cf6, #7c3aed);
  color: #fff;
  box-shadow: 0 2px 8px rgba(139, 92, 246, 0.3);
}

.admin-main .button--primary:hover,
.courses-dashboard .button--primary:hover,
.students-dashboard .button--primary:hover,
.insights-dashboard .button--primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(139, 92, 246, 0.4);
  background-position: initial;
}

.admin-main .button--secondary,
.courses-dashboard .button--secondary,
.students-dashboard .button--secondary,
.insights-dashboard .button--secondary {
  background: rgba(139, 92, 246, 0.1);
  color: #a78bfa;
  border: 1px solid rgba(139, 92, 246, 0.3);
}

.admin-main .button--secondary:hover,
.courses-dashboard .button--secondary:hover,
.students-dashboard .button--secondary:hover,
.insights-dashboard .button--secondary:hover {
  background: rgba(139, 92, 246, 0.2);
  transform: translateY(-1px);
}

.admin-main .button__icon,
.courses-dashboard .button__icon,
.students-dashboard .button__icon,
.insights-dashboard .button__icon {
  font-size: 14px;
}

/* Top Courses - Thumbnail Fix */
.top-course-item__thumb {
  width: 64px;
  height: 64px;
  border-radius: 8px;
  object-fit: cover;
  flex-shrink: 0;
  border: 1px solid rgba(139, 92, 246, 0.2);
}

.top-course-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  background: rgba(139, 92, 246, 0.05);
  border: 1px solid rgba(139, 92, 246, 0.1);
  border-radius: 10px;
  transition: all 0.2s ease;
}

.top-course-item:hover {
  background: rgba(139, 92, 246, 0.08);
  border-color: rgba(139, 92, 246, 0.2);
}

.top-course-item__rank {
  font-size: 18px;
  font-weight: 800;
  color: #8b5cf6;
  min-width: 32px;
  text-align: center;
}

.top-course-item__info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.top-course-item__title {
  font-size: 14px;
  font-weight: 600;
  color: #f4f4ff;
  line-height: 1.3;
}

.top-course-item__stats {
  font-size: 12px;
  color: rgba(244, 244, 255, 0.5);
}

.top-courses {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* Insights Dashboard Layout Fix */
.insights-section {
  background: linear-gradient(135deg, rgba(15, 20, 35, 0.8) 0%, rgba(11, 15, 28, 0.9) 100%);
  border: 1px solid rgba(139, 92, 246, 0.25);
  border-radius: 16px;
  padding: 24px;
  margin-bottom: 24px;
}

.insights-section__title {
  font-size: 18px;
  font-weight: 700;
  color: #f4f4ff;
  margin: 0 0 20px 0;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(139, 92, 246, 0.15);
}

.insights-section__empty {
  text-align: center;
  padding: 40px 20px;
  color: rgba(244, 244, 255, 0.5);
  font-size: 14px;
  font-style: italic;
}

.insights-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-top: 32px;
}

.insights-grid__left,
.insights-grid__right {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

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

/* Engagement Stats */
.engagement-stats {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 20px;
}

.engagement-stat {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.engagement-stat__label {
  font-size: 13px;
  color: rgba(244, 244, 255, 0.7);
  font-weight: 600;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.engagement-stat__value {
  font-size: 16px;
  font-weight: 700;
  color: #8b5cf6;
}

.engagement-stat__bar {
  height: 8px;
  background: rgba(139, 92, 246, 0.1);
  border-radius: 4px;
  overflow: hidden;
}

.engagement-stat__bar-fill {
  height: 100%;
  background: linear-gradient(90deg, #8b5cf6, #a78bfa);
  border-radius: 4px;
  transition: width 0.3s ease;
}

.engagement-badges {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 16px;
}

.engagement-badge {
  background: rgba(139, 92, 246, 0.1);
  border: 1px solid rgba(139, 92, 246, 0.2);
  border-radius: 10px;
  padding: 12px;
  text-align: center;
}

.engagement-badge__value {
  font-size: 24px;
  font-weight: 800;
  color: #a78bfa;
  display: block;
  margin-bottom: 4px;
}

.engagement-badge__label {
  font-size: 11px;
  color: rgba(244, 244, 255, 0.6);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Activities */
.activity-item {
  display: flex;
  gap: 12px;
  padding: 12px;
  background: rgba(139, 92, 246, 0.05);
  border-radius: 8px;
  transition: all 0.2s ease;
}

.activity-item:hover {
  background: rgba(139, 92, 246, 0.08);
}

.activity-item__icon {
  font-size: 24px;
  flex-shrink: 0;
}

.activity-item__content {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.activity-item__text {
  font-size: 14px;
  color: #f4f4ff;
  line-height: 1.4;
}

.activity-item__text strong {
  font-weight: 600;
  color: #a78bfa;
}

.activity-item__date {
  font-size: 12px;
  color: rgba(244, 244, 255, 0.5);
}

/* Trends */
.insights-trends {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.trend-chart {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.trend-chart__title {
  font-size: 14px;
  font-weight: 600;
  color: rgba(244, 244, 255, 0.8);
}

.trend-chart__bars {
  display: flex;
  align-items: flex-end;
  gap: 12px;
  height: 200px;
  padding: 40px 16px 16px;
  background: rgba(139, 92, 246, 0.05);
  border-radius: 8px;
  position: relative;
}

.trend-bar {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  min-width: 0;
  height: 100%;
  position: relative;
}

.trend-bar__value {
  position: absolute;
  top: -32px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 13px;
  font-weight: 700;
  color: #a78bfa;
  text-align: center;
  white-space: nowrap;
  z-index: 2;
}

.trend-bar__fill {
  width: 40px;
  background: linear-gradient(180deg, #8b5cf6, #a78bfa);
  border-radius: 4px 4px 0 0;
  transition: height 0.8s cubic-bezier(0.34, 1.56, 0.64, 1);
  min-height: 4px;
  position: relative;
  box-shadow: 0 2px 12px rgba(139, 92, 246, 0.4);
}

.trend-bar__fill--revenue {
  background: linear-gradient(180deg, #fbbf24, #fcd34d);
  box-shadow: 0 2px 12px rgba(251, 191, 36, 0.4);
}

.trend-bar__label {
  font-size: 11px;
  color: rgba(244, 244, 255, 0.6);
  text-transform: capitalize;
  font-weight: 600;
  margin-top: 8px;
  text-align: center;
}

/* Force hide states - MUST be at end to override everything */
.loading-state[hidden],
.table-container[hidden],
.empty-state-card[hidden] {
  display: none !important;
  visibility: hidden !important;
}

.loading-state:not([hidden]) {
  display: flex !important;
}

.table-container:not([hidden]) {
  display: block !important;
}

.empty-state-card:not([hidden]) {
  display: flex !important;
}

/* Skeleton Loading & Animations */
@keyframes shimmer {
  0% {
    background-position: -200% 0;
  }

  100% {
    background-position: 200% 0;
  }
}

.skeleton-shimmer {
  background: linear-gradient(90deg,
      rgba(139, 92, 246, 0.05) 0%,
      rgba(139, 92, 246, 0.15) 50%,
      rgba(139, 92, 246, 0.05) 100%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  color: transparent !important;
  user-select: none;
  pointer-events: none;
}

.skeleton-loader {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 24px;
}

.skeleton-loader .skeleton-shimmer {
  height: 40px;
  border-radius: 8px;
}

.skeleton-row {
  background: none !important;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in {
  animation: fadeIn 0.3s ease-out forwards;
  opacity: 0;
}

/* Stat cards animation */
.stat-card__value {
  transition: all 0.3s ease;
}

.stat-card__value:not(.skeleton-shimmer) {
  animation: fadeIn 0.5s ease-out;
}

/* Admin Metrics Cards Skeleton */
.admin-metric-card strong.skeleton-shimmer {
  display: inline-block;
  min-width: 40px;
}

/* Admin Course Cards Animation */
.admin-course-card.fade-in {
  animation: fadeIn 0.3s ease-out forwards;
  opacity: 0;
}

/* Empty state for courses */
.admin-course-list .empty-state-card {
  margin: 40px auto;
  max-width: 400px;
}

/* ============================================ */
/* ADMIN COURSE FILTERS & PAGINATION           */
/* ============================================ */

.admin-filters-bar {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.admin-search-box {
  width: 100%;
}

.admin-search-box input {
  width: 100%;
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid rgba(59, 130, 246, 0.25);
  border-radius: 12px;
  color: #cbd5f5;
  padding: 0.75rem 1rem;
  font-size: 0.95rem;
  transition: all 0.2s ease;
}

.admin-search-box input:focus {
  outline: none;
  border-color: rgba(139, 92, 246, 0.6);
  background: rgba(15, 23, 42, 0.95);
  box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.1);
}

.admin-search-box input::placeholder {
  color: #64748b;
}

.admin-filters-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.admin-filters-row select {
  flex: 1;
  min-width: 150px;
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid rgba(59, 130, 246, 0.25);
  border-radius: 12px;
  color: #cbd5f5;
  padding: 0.65rem 0.9rem;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.admin-filters-row select:hover {
  border-color: rgba(139, 92, 246, 0.4);
  background: rgba(15, 23, 42, 0.95);
}

.admin-filters-row select:focus {
  outline: none;
  border-color: rgba(139, 92, 246, 0.6);
  box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.1);
}

.admin-courses-count {
  color: #94a3b8;
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

.admin-courses-count strong {
  color: #8b5cf6;
  font-weight: 600;
}

.admin-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(59, 130, 246, 0.18);
}

.pagination-btn {
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid rgba(59, 130, 246, 0.25);
  border-radius: 8px;
  color: #cbd5f5;
  padding: 0.6rem 1rem;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.pagination-btn:hover:not(:disabled) {
  background: rgba(139, 92, 246, 0.2);
  border-color: rgba(139, 92, 246, 0.5);
  transform: translateY(-1px);
}

.pagination-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.pagination-pages {
  display: flex;
  gap: 0.25rem;
  align-items: center;
}

.pagination-page {
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid rgba(59, 130, 246, 0.25);
  border-radius: 8px;
  color: #cbd5f5;
  padding: 0.5rem 0.75rem;
  min-width: 40px;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.pagination-page:hover {
  background: rgba(139, 92, 246, 0.2);
  border-color: rgba(139, 92, 246, 0.5);
}

.pagination-page.is-active {
  background: linear-gradient(135deg, #8b5cf6, #7c3aed);
  border-color: #8b5cf6;
  color: #fff;
  font-weight: 600;
}

.pagination-dots {
  color: #64748b;
  padding: 0 0.5rem;
  font-size: 1.2rem;
}

@media (max-width: 768px) {
  .admin-filters-row {
    flex-direction: column;
  }

  .admin-filters-row select {
    width: 100%;
    min-width: auto;
  }

  .pagination-pages {
    flex-wrap: wrap;
  }
}