/* ═══════════════════════════════════════════════════════
   🧙‍♂️ ETHIC ACADEMY — Design System
   Thème Arcane : Sombre, Or, Violet, Glassmorphism
   ═══════════════════════════════════════════════════════ */

/* ─── CSS Variables ─── */
:root {
  /* Palette */
  --bg-deep: #0a0a12;
  --bg-primary: #0e0e1a;
  --bg-card: rgba(18, 18, 35, 0.85);
  --bg-glass: rgba(255, 255, 255, 0.03);
  --bg-glass-hover: rgba(255, 255, 255, 0.06);

  --gold: #d4a853;
  --gold-light: #f0d68a;
  --gold-dark: #a07830;

  --violet: #8b5cf6;
  --violet-light: #a78bfa;
  --violet-dark: #6d28d9;

  --cyan: #06b6d4;
  --emerald: #10b981;
  --rose: #f43f5e;
  --amber: #f59e0b;

  --text-primary: #e8e6f0;
  --text-secondary: #9896a8;
  --text-muted: #5a586a;

  --border-subtle: rgba(255, 255, 255, 0.06);
  --border-glow: rgba(212, 168, 83, 0.25);

  /* Gradients */
  --gradient-gold: linear-gradient(135deg, #d4a853, #f0d68a, #d4a853);
  --gradient-violet: linear-gradient(135deg, #6d28d9, #8b5cf6, #a78bfa);
  --gradient-hero: linear-gradient(135deg, #d4a853 0%, #8b5cf6 50%, #06b6d4 100%);
  --gradient-card: linear-gradient(135deg, rgba(139, 92, 246, 0.08), rgba(212, 168, 83, 0.08));

  /* Shadows */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 4px 24px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 8px 48px rgba(0, 0, 0, 0.5);
  --shadow-glow-gold: 0 0 30px rgba(212, 168, 83, 0.15);
  --shadow-glow-violet: 0 0 30px rgba(139, 92, 246, 0.15);

  /* Typography */
  --font-display: 'Outfit', sans-serif;
  --font-body: 'Inter', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  /* Spacing */
  --nav-height: 72px;
  --section-pad: 100px;
  --container-max: 1260px;

  /* Animation */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* ─── Reset & Base ─── */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scrollbar-width: thin;
  scrollbar-color: var(--violet-dark) var(--bg-deep);
}

body {
  font-family: var(--font-body);
  background: var(--bg-deep);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  cursor: pointer;
  border: none;
  background: none;
  font-family: inherit;
}

input {
  font-family: inherit;
}

/* ─── Particles Canvas ─── */
#particles-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

/* ─── Scrollbar ─── */
::-webkit-scrollbar {
  width: 6px;
}

::-webkit-scrollbar-track {
  background: var(--bg-deep);
}

::-webkit-scrollbar-thumb {
  background: var(--violet-dark);
  border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--violet);
}

/* ═══ NAVBAR ═══ */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 32px;
  background: rgba(10, 10, 18, 0.8);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-subtle);
  z-index: 1000;
  transition: all 0.4s var(--ease-out);
}

.navbar.scrolled {
  background: rgba(10, 10, 18, 0.95);
  box-shadow: var(--shadow-md);
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-icon {
  font-size: 28px;
  filter: drop-shadow(0 0 8px rgba(212, 168, 83, 0.5));
}

.nav-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 20px;
  background: var(--gradient-gold);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.nav-links {
  display: flex;
  gap: 4px;
}

.nav-link {
  padding: 8px 18px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
  transition: all 0.3s var(--ease-out);
  position: relative;
}

.nav-link:hover {
  color: var(--text-primary);
  background: var(--bg-glass-hover);
}

.nav-link.active {
  color: var(--gold);
  background: rgba(212, 168, 83, 0.08);
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 16px;
}

.lang-switcher {
  display: flex;
  align-items: center;
  gap: 2px;
  padding: 4px 6px;
  border-radius: 10px;
  background: var(--bg-glass);
  border: 1px solid var(--border-subtle);
}

.lang-btn {
  padding: 5px 10px;
  border-radius: 7px;
  font-size: 12px;
  font-weight: 700;
  font-family: var(--font-mono);
  letter-spacing: 0.05em;
  color: var(--text-muted);
  transition: all 0.3s var(--ease-out);
}

.lang-btn:hover {
  color: var(--text-primary);
  background: var(--bg-glass-hover);
}

.lang-btn.active {
  color: var(--gold);
  background: rgba(212, 168, 83, 0.12);
  box-shadow: 0 0 8px rgba(212, 168, 83, 0.1);
}

.lang-sep {
  font-size: 11px;
  color: var(--text-muted);
  opacity: 0.4;
  user-select: none;
}

.nav-status {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text-secondary);
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--emerald);
  box-shadow: 0 0 8px rgba(16, 185, 129, 0.5);
  animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {

  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }

  50% {
    opacity: 0.6;
    transform: scale(0.8);
  }
}

/* ═══ SECTIONS ═══ */
.section {
  position: relative;
  z-index: 1;
  padding: var(--section-pad) 32px;
  max-width: var(--container-max);
  margin: 0 auto;
}

.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-tag {
  display: inline-block;
  padding: 6px 16px;
  border-radius: 20px;
  background: rgba(139, 92, 246, 0.1);
  border: 1px solid rgba(139, 92, 246, 0.2);
  color: var(--violet-light);
  font-size: 13px;
  font-weight: 500;
  margin-bottom: 16px;
}

.section-title {
  font-family: var(--font-display);
  font-size: 42px;
  font-weight: 800;
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}

.section-desc {
  font-size: 16px;
  color: var(--text-secondary);
  max-width: 640px;
  margin: 0 auto;
  line-height: 1.7;
}

/* ═══ MANIFESTO ═══ */
.manifesto-section {
  padding-top: 60px;
  padding-bottom: 40px;
}

.manifesto-card {
  position: relative;
  max-width: 820px;
  margin: 0 auto;
  padding: 48px 56px;
  background: var(--bg-card);
  border: 1px solid rgba(212, 168, 83, 0.2);
  border-radius: 28px;
  backdrop-filter: blur(16px);
  overflow: hidden;
}

.manifesto-glow {
  position: absolute;
  top: -60px;
  right: -60px;
  width: 240px;
  height: 240px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(212, 168, 83, 0.08) 0%, transparent 70%);
  pointer-events: none;
}

.manifesto-header {
  text-align: center;
  margin-bottom: 36px;
  position: relative;
}

.manifesto-icon {
  font-size: 48px;
  display: block;
  margin-bottom: 16px;
  filter: drop-shadow(0 0 12px rgba(212, 168, 83, 0.4));
}

.manifesto-title {
  font-family: var(--font-display);
  font-size: 36px;
  font-weight: 800;
  background: var(--gradient-gold);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 8px;
}

.manifesto-subtitle {
  display: block;
  font-size: 15px;
  color: var(--text-muted);
  font-style: italic;
  letter-spacing: 0.02em;
}

.manifesto-body {
  position: relative;
  font-size: 15px;
  line-height: 2;
  color: var(--text-secondary);
  white-space: pre-line;
}

.manifesto-body strong {
  color: var(--gold);
  font-weight: 600;
}

.manifesto-loading {
  text-align: center;
  color: var(--text-muted);
  font-style: italic;
}

.manifesto-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 32px;
  padding-top: 20px;
  border-top: 1px solid var(--border-subtle);
}

.manifesto-author {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 600;
  color: var(--gold);
}

.manifesto-date {
  font-size: 12px;
  color: var(--text-muted);
  font-family: var(--font-mono);
}

/* ═══ HERO ═══ */
.hero-section {
  min-height: 100vh;
  display: flex;
  align-items: center;
  gap: 60px;
  padding-top: calc(var(--nav-height) + var(--section-pad));
}

.hero-content {
  flex: 1;
  animation: fadeInUp 1s var(--ease-out);
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  border-radius: 24px;
  background: rgba(212, 168, 83, 0.08);
  border: 1px solid rgba(212, 168, 83, 0.2);
  color: var(--gold-light);
  font-size: 13px;
  font-weight: 500;
  margin-bottom: 28px;
}

.badge-icon {
  font-size: 16px;
}

.hero-title {
  font-family: var(--font-display);
  font-size: 60px;
  font-weight: 900;
  line-height: 1.1;
  margin-bottom: 24px;
  letter-spacing: -0.03em;
}

.title-line {
  display: block;
}

.gradient-text {
  background: var(--gradient-hero);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  background-size: 200% auto;
  animation: shimmer 4s linear infinite;
}

@keyframes shimmer {
  0% {
    background-position: 0% center;
  }

  100% {
    background-position: 200% center;
  }
}

.hero-subtitle {
  font-size: 17px;
  color: var(--text-secondary);
  line-height: 1.8;
  max-width: 520px;
  margin-bottom: 40px;
}

.hero-subtitle strong {
  color: var(--gold);
}

.hero-stats {
  display: flex;
  gap: 32px;
  margin-bottom: 40px;
}

.stat-item {
  text-align: center;
}

.stat-value {
  display: block;
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 800;
  color: var(--gold);
}

.stat-label {
  font-size: 12px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.hero-actions {
  display: flex;
  gap: 16px;
}

/* ─── Hero Visual (Merlin Orb) ─── */
.hero-visual {
  flex: 0 0 420px;
  display: flex;
  justify-content: center;
  align-items: center;
  animation: fadeIn 1.2s var(--ease-out) 0.3s both;
}

.merlin-orb {
  position: relative;
  width: 360px;
  height: 360px;
}

.orb-ring {
  position: absolute;
  border-radius: 50%;
  border: 1px solid;
  animation: orbit linear infinite;
}

.ring-1 {
  inset: 0;
  border-color: rgba(212, 168, 83, 0.15);
  animation-duration: 20s;
}

.ring-2 {
  inset: 40px;
  border-color: rgba(139, 92, 246, 0.2);
  animation-duration: 15s;
  animation-direction: reverse;
}

.ring-3 {
  inset: 80px;
  border-color: rgba(6, 182, 212, 0.15);
  animation-duration: 10s;
}

@keyframes orbit {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

.orb-core {
  position: absolute;
  inset: 110px;
  border-radius: 50%;
  background: radial-gradient(circle at 40% 40%, rgba(212, 168, 83, 0.15), rgba(139, 92, 246, 0.1), transparent);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow:
    var(--shadow-glow-gold),
    var(--shadow-glow-violet),
    inset 0 0 40px rgba(212, 168, 83, 0.05);
  animation: pulse-core 4s ease-in-out infinite;
}

.orb-emoji {
  font-size: 64px;
  filter: drop-shadow(0 0 20px rgba(212, 168, 83, 0.4));
}

@keyframes pulse-core {

  0%,
  100% {
    transform: scale(1);
    box-shadow: var(--shadow-glow-gold), var(--shadow-glow-violet);
  }

  50% {
    transform: scale(1.05);
    box-shadow: 0 0 50px rgba(212, 168, 83, 0.25), 0 0 50px rgba(139, 92, 246, 0.25);
  }
}

.trinity-labels {
  position: absolute;
  inset: 0;
}

.trinity-label {
  position: absolute;
  font-size: 12px;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 8px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  white-space: nowrap;
}

.label-logic {
  top: -8px;
  left: 50%;
  transform: translateX(-50%);
  color: var(--cyan);
}

.label-social {
  bottom: 30px;
  left: -20px;
  color: var(--emerald);
}

.label-const {
  bottom: 30px;
  right: -20px;
  color: var(--gold);
}

/* ═══ BUTTONS ═══ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 14px;
  font-size: 15px;
  font-weight: 600;
  transition: all 0.35s var(--ease-out);
  position: relative;
  overflow: hidden;
}

.btn::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  opacity: 0;
  transition: opacity 0.35s;
}

.btn-primary {
  background: var(--gradient-gold);
  color: #0a0a12;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-glow-gold), var(--shadow-md);
}

.btn-primary:active {
  transform: translateY(0);
}

.btn-secondary {
  background: var(--bg-glass);
  color: var(--text-primary);
  border: 1px solid var(--border-subtle);
  backdrop-filter: blur(10px);
}

.btn-secondary:hover {
  background: var(--bg-glass-hover);
  border-color: rgba(255, 255, 255, 0.1);
  transform: translateY(-2px);
}

.btn-arrow {
  transition: transform 0.3s var(--ease-out);
}

.btn:hover .btn-arrow {
  transform: translateX(4px);
}

/* ═══ FILTER BAR ═══ */
.filter-bar {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-bottom: 40px;
}

.filter-btn {
  padding: 10px 22px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
  background: var(--bg-glass);
  border: 1px solid var(--border-subtle);
  transition: all 0.3s var(--ease-out);
}

.filter-btn:hover {
  color: var(--text-primary);
  background: var(--bg-glass-hover);
}

.filter-btn.active {
  color: var(--gold);
  background: rgba(212, 168, 83, 0.1);
  border-color: rgba(212, 168, 83, 0.3);
}

/* ═══ COURSES GRID ═══ */
.courses-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 24px;
}

.course-card {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 20px;
  padding: 28px;
  transition: all 0.4s var(--ease-out);
  overflow: hidden;
  cursor: pointer;
  backdrop-filter: blur(10px);
}

.course-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 20px;
  background: var(--gradient-card);
  opacity: 0;
  transition: opacity 0.4s;
}

.course-card:hover {
  transform: translateY(-6px);
  border-color: rgba(212, 168, 83, 0.2);
  box-shadow: var(--shadow-glow-gold), var(--shadow-lg);
}

.course-card:hover::before {
  opacity: 1;
}

.course-card>* {
  position: relative;
  z-index: 1;
}

.card-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 16px;
}

.card-icon {
  font-size: 36px;
  filter: drop-shadow(0 0 10px rgba(212, 168, 83, 0.3));
}

.card-dimension {
  padding: 4px 12px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 700;
  font-family: var(--font-mono);
  letter-spacing: 0.05em;
}

.dim-3D {
  background: rgba(6, 182, 212, 0.12);
  color: var(--cyan);
  border: 1px solid rgba(6, 182, 212, 0.2);
}

.dim-4D {
  background: rgba(139, 92, 246, 0.12);
  color: var(--violet-light);
  border: 1px solid rgba(139, 92, 246, 0.2);
}

.dim-5D {
  background: rgba(212, 168, 83, 0.12);
  color: var(--gold-light);
  border: 1px solid rgba(212, 168, 83, 0.2);
}

.card-title {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 10px;
  line-height: 1.3;
}

.card-desc {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 20px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-meta {
  display: flex;
  gap: 16px;
  margin-bottom: 20px;
  font-size: 13px;
  color: var(--text-muted);
}

.meta-item {
  display: flex;
  align-items: center;
  gap: 4px;
}

.card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 16px;
  border-top: 1px solid var(--border-subtle);
}

.card-price {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 20px;
  color: var(--gold);
}

.card-price .currency {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-muted);
  margin-left: 4px;
}

.card-enroll {
  padding: 10px 20px;
  border-radius: 10px;
  background: var(--gradient-gold);
  color: #0a0a12;
  font-size: 13px;
  font-weight: 600;
  transition: all 0.3s var(--ease-out);
}

.card-enroll:hover {
  transform: scale(1.05);
  box-shadow: var(--shadow-glow-gold);
}

/* ═══ MODAL ═══ */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s var(--ease-out);
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: all;
}

.modal-content {
  background: var(--bg-primary);
  border: 1px solid var(--border-subtle);
  border-radius: 24px;
  width: 90%;
  max-width: 580px;
  max-height: 85vh;
  overflow-y: auto;
  padding: 32px;
  transform: translateY(20px) scale(0.97);
  transition: transform 0.4s var(--ease-spring);
  position: relative;
}

.modal-overlay.active .modal-content {
  transform: translateY(0) scale(1);
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 24px;
  transition: all 0.2s;
}

.modal-close:hover {
  background: var(--bg-glass-hover);
  color: var(--text-primary);
}

.modal-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 24px;
}

.modal-icon {
  font-size: 36px;
}

.modal-title {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  flex: 1;
}

.modal-dimension {
  padding: 4px 12px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 700;
  font-family: var(--font-mono);
  background: rgba(139, 92, 246, 0.1);
  color: var(--violet-light);
  border: 1px solid rgba(139, 92, 246, 0.2);
}

.modal-info {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 24px;
}

.info-row {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 12px;
  border-radius: 12px;
  background: var(--bg-glass);
  border: 1px solid var(--border-subtle);
}

.info-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
}

.info-value {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-primary);
}

.modal-modules {
  margin-bottom: 24px;
}

.module-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px;
  border-radius: 10px;
  border: 1px solid var(--border-subtle);
  margin-bottom: 8px;
  transition: all 0.2s;
}

.module-item:hover {
  background: var(--bg-glass);
}

.module-num {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: rgba(139, 92, 246, 0.1);
  color: var(--violet-light);
  font-size: 12px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.module-info h5 {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 2px;
}

.module-info p {
  font-size: 12px;
  color: var(--text-muted);
}

/* ─── Enroll Form ─── */
.enroll-form h4 {
  font-family: var(--font-display);
  font-size: 16px;
  margin-bottom: 16px;
  color: var(--gold);
}

.form-group {
  margin-bottom: 14px;
}

.form-group label {
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: 6px;
}

.form-group input {
  width: 100%;
  padding: 12px 16px;
  border-radius: 12px;
  border: 1px solid var(--border-subtle);
  background: var(--bg-glass);
  color: var(--text-primary);
  font-size: 14px;
  outline: none;
  transition: all 0.3s;
}

.form-group input:focus {
  border-color: var(--violet);
  box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.15);
}

.form-group input::placeholder {
  color: var(--text-muted);
}

.payment-section {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px;
  border-radius: 14px;
  background: rgba(212, 168, 83, 0.05);
  border: 1px solid rgba(212, 168, 83, 0.15);
  margin-top: 20px;
}

.pay-label {
  font-size: 12px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.pay-value {
  display: block;
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 800;
  color: var(--gold);
}

.btn-pay {
  padding: 14px 24px;
}

.pay-icon {
  font-size: 18px;
}

/* ═══ DASHBOARD ═══ */
.dashboard-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 40px;
}

.dash-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 18px;
  padding: 24px;
  text-align: center;
  transition: all 0.35s var(--ease-out);
  backdrop-filter: blur(10px);
}

.dash-card:hover {
  transform: translateY(-4px);
  border-color: rgba(139, 92, 246, 0.2);
  box-shadow: var(--shadow-glow-violet);
}

.dash-card-icon {
  font-size: 32px;
  margin-bottom: 10px;
}

.dash-card-value {
  font-family: var(--font-display);
  font-size: 36px;
  font-weight: 800;
  color: var(--gold);
  margin-bottom: 4px;
}

.dash-card-label {
  font-size: 13px;
  color: var(--text-muted);
}

.dashboard-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-bottom: 40px;
}

.dash-panel {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 20px;
  padding: 28px;
  backdrop-filter: blur(10px);
}

.panel-wide {
  grid-column: 1 / -1;
}

.panel-title {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 20px;
}

/* ─── STC Gauge ─── */
.stc-gauge-container {
  display: flex;
  align-items: center;
  gap: 32px;
}

.stc-gauge {
  position: relative;
  width: 180px;
  height: 180px;
  flex-shrink: 0;
}

.gauge-svg {
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}

.gauge-bg {
  fill: none;
  stroke: var(--border-subtle);
  stroke-width: 8;
}

.gauge-fill {
  fill: none;
  stroke: url(#gauge-gradient);
  stroke-width: 8;
  stroke-linecap: round;
  stroke-dasharray: 534;
  stroke-dashoffset: 534;
  transition: stroke-dashoffset 1.5s var(--ease-out);
}

.gauge-center {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.gauge-value {
  font-family: var(--font-mono);
  font-size: 28px;
  font-weight: 700;
  color: var(--gold);
}

.gauge-label {
  font-size: 12px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.stc-axes {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.axis-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: var(--text-secondary);
}

.axis-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.axis-logic {
  background: var(--cyan);
  box-shadow: 0 0 6px rgba(6, 182, 212, 0.5);
}

.axis-social {
  background: var(--emerald);
  box-shadow: 0 0 6px rgba(16, 185, 129, 0.5);
}

.axis-const {
  background: var(--gold);
  box-shadow: 0 0 6px rgba(212, 168, 83, 0.5);
}

/* ─── Performers & Activity ─── */
.empty-state {
  text-align: center;
  padding: 32px;
  color: var(--text-muted);
}

.empty-icon {
  font-size: 40px;
  display: block;
  margin-bottom: 12px;
}

.performer-item,
.activity-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  border-radius: 12px;
  border: 1px solid var(--border-subtle);
  margin-bottom: 8px;
  transition: all 0.2s;
}

.performer-item:hover,
.activity-item:hover {
  background: var(--bg-glass);
}

.performer-name,
.activity-agent {
  font-weight: 600;
  font-size: 14px;
}

.performer-score {
  font-family: var(--font-mono);
  font-weight: 700;
  color: var(--gold);
}

.performer-course,
.activity-course {
  font-size: 12px;
  color: var(--text-muted);
}

.activity-progress {
  display: flex;
  align-items: center;
  gap: 8px;
}

.progress-bar {
  width: 80px;
  height: 6px;
  border-radius: 3px;
  background: var(--border-subtle);
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  border-radius: 3px;
  background: var(--gradient-violet);
  transition: width 0.5s var(--ease-out);
}

.progress-text {
  font-size: 12px;
  font-family: var(--font-mono);
  color: var(--text-muted);
}

/* ─── Student Lookup ─── */
.student-lookup {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 20px;
  padding: 28px;
  backdrop-filter: blur(10px);
}

.student-lookup h3 {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 16px;
}

.lookup-form {
  display: flex;
  gap: 12px;
  margin-bottom: 20px;
}

.lookup-input,
.verify-input {
  flex: 1;
  padding: 12px 18px;
  border-radius: 12px;
  border: 1px solid var(--border-subtle);
  background: var(--bg-glass);
  color: var(--text-primary);
  font-size: 14px;
  outline: none;
  transition: all 0.3s;
}

.lookup-input:focus,
.verify-input:focus {
  border-color: var(--violet);
  box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.15);
}

.lookup-result {
  min-height: 20px;
}

/* ═══ CERTIFICATES ═══ */
.cert-verify-box {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 20px;
  padding: 28px;
  margin-bottom: 40px;
  backdrop-filter: blur(10px);
}

.cert-verify-box h3 {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 16px;
}

.verify-form {
  display: flex;
  gap: 12px;
  margin-bottom: 16px;
}

.verify-result {
  min-height: 20px;
}

/* ─── Certificate Card ─── */
.cert-preview {
  margin-top: 40px;
}

.cert-preview h3 {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 24px;
  text-align: center;
}

.cert-card {
  max-width: 560px;
  margin: 0 auto;
  background: linear-gradient(135deg, rgba(18, 18, 35, 0.95), rgba(25, 20, 40, 0.95));
  border: 2px solid rgba(212, 168, 83, 0.3);
  border-radius: 24px;
  overflow: hidden;
  box-shadow: var(--shadow-glow-gold), var(--shadow-lg);
}

.cert-header {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 24px 28px;
  background: rgba(212, 168, 83, 0.06);
  border-bottom: 1px solid rgba(212, 168, 83, 0.15);
}

.cert-seal {
  font-size: 40px;
  filter: drop-shadow(0 0 10px rgba(212, 168, 83, 0.3));
}

.cert-title-block h4 {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 800;
  color: var(--gold);
  letter-spacing: 0.15em;
}

.cert-title-block p {
  font-size: 12px;
  color: var(--text-muted);
}

.cert-id {
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-muted);
  padding: 4px 10px;
  border-radius: 6px;
  background: var(--bg-glass);
  border: 1px solid var(--border-subtle);
}

.cert-body {
  padding: 24px 28px;
}

.cert-field {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
}

.cert-label {
  font-size: 13px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.cert-value {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-primary);
}

.cert-highlight {
  color: var(--violet-light);
  font-weight: 600;
}

.cert-divider {
  height: 1px;
  background: var(--border-subtle);
  margin: 12px 0;
}

.cert-scores {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 20px;
}

.cert-score {
  text-align: center;
  padding: 14px;
  border-radius: 14px;
  background: var(--bg-glass);
  border: 1px solid var(--border-subtle);
}

.score-label {
  display: block;
  font-size: 11px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 6px;
}

.score-value {
  font-family: var(--font-mono);
  font-size: 18px;
  font-weight: 700;
  color: var(--gold);
}

.cert-compliant {
  color: var(--emerald) !important;
}

.cert-footer {
  padding: 18px 28px;
  background: rgba(0, 0, 0, 0.2);
  border-top: 1px solid var(--border-subtle);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.hash-label {
  font-size: 11px;
  color: var(--text-muted);
  display: block;
  margin-bottom: 2px;
}

.hash-value {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--violet-light);
  background: rgba(139, 92, 246, 0.08);
  padding: 2px 8px;
  border-radius: 4px;
}

.cert-signature {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--gold-dark);
  font-style: italic;
}

/* ═══ FOOTER ═══ */
.footer {
  position: relative;
  z-index: 1;
  border-top: 1px solid var(--border-subtle);
  padding: 40px 32px;
  text-align: center;
}

.footer-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 600;
  color: var(--gold);
  margin-bottom: 12px;
}

.footer-links {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.footer-sep {
  margin: 0 8px;
}

.footer-quote {
  font-size: 13px;
  color: var(--text-muted);
  font-style: italic;
  max-width: 500px;
  margin: 0 auto;
}

/* ═══ TOAST ═══ */
.toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 3000;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.toast {
  padding: 14px 22px;
  border-radius: 14px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-primary);
  background: var(--bg-primary);
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-lg);
  backdrop-filter: blur(20px);
  animation: toastIn 0.4s var(--ease-spring);
  max-width: 380px;
}

.toast.success {
  border-color: rgba(16, 185, 129, 0.3);
}

.toast.error {
  border-color: rgba(244, 63, 94, 0.3);
}

.toast.info {
  border-color: rgba(139, 92, 246, 0.3);
}

.toast-exit {
  animation: toastOut 0.3s var(--ease-out) forwards;
}

@keyframes toastIn {
  from {
    opacity: 0;
    transform: translateX(40px) scale(0.95);
  }

  to {
    opacity: 1;
    transform: translateX(0) scale(1);
  }
}

@keyframes toastOut {
  from {
    opacity: 1;
    transform: translateX(0);
  }

  to {
    opacity: 0;
    transform: translateX(40px);
  }
}

/* ═══ ANIMATIONS ═══ */
@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ═══ RESPONSIVE ═══ */
@media (max-width: 1024px) {
  .hero-section {
    flex-direction: column;
    text-align: center;
    gap: 40px;
  }

  .hero-visual {
    flex: initial;
  }

  .hero-subtitle {
    margin: 0 auto 40px;
  }

  .hero-stats {
    justify-content: center;
  }

  .hero-actions {
    justify-content: center;
  }

  .dashboard-stats {
    grid-template-columns: repeat(2, 1fr);
  }

  .dashboard-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  :root {
    --section-pad: 60px;
  }

  .navbar {
    padding: 0 16px;
  }

  .nav-links {
    display: none;
  }

  .nav-status {
    display: none;
  }

  .hero-title {
    font-size: 38px;
  }

  .section-title {
    font-size: 30px;
  }

  .hero-stats {
    flex-wrap: wrap;
    gap: 16px;
  }

  .courses-grid {
    grid-template-columns: 1fr;
  }

  .modal-content {
    padding: 20px;
    width: 95%;
  }

  .modal-info {
    grid-template-columns: 1fr;
  }

  .cert-scores {
    grid-template-columns: 1fr;
  }

  .stc-gauge-container {
    flex-direction: column;
  }

  .filter-bar {
    flex-wrap: wrap;
  }

  .merlin-orb {
    width: 260px;
    height: 260px;
  }

  .orb-core {
    inset: 80px;
  }

  .orb-emoji {
    font-size: 48px;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 30px;
  }

  .dashboard-stats {
    grid-template-columns: 1fr;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }
}