/* ==========================================================================
   EDUHUB — Enterprise Learning Studio Stylesheet (Hardened & Polished)
   ========================================================================== */

:root {
  /* Color Palette - Dark Theme Default */
  --bg-base: #060a12;
  --bg-surface: #0c1322;
  --bg-card: rgba(16, 24, 44, 0.78);
  --bg-card-hover: rgba(24, 37, 68, 0.88);
  --bg-elevated: #131f37;
  --border-subtle: rgba(255, 255, 255, 0.09);
  --border-focus: rgba(34, 211, 238, 0.65);
  --border-card: rgba(56, 189, 248, 0.16);

  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --text-subtle: #64748b;
  --text-inverse: #0f172a;

  --accent-cyan: #22d3ee;
  --accent-cyan-dark: #0891b2;
  --accent-purple: #8b5cf6;
  --accent-indigo: #6366f1;
  --accent-emerald: #10b981;
  --accent-amber: #f59e0b;
  --accent-rose: #f43f5e;

  --gradient-brand: linear-gradient(135deg, #22d3ee 0%, #818cf8 50%, #c084fc 100%);
  --gradient-glow: radial-gradient(circle at 50% -10%, rgba(34, 211, 238, 0.18) 0%, transparent 65%);
  --gradient-card: linear-gradient(180deg, rgba(30, 41, 74, 0.5) 0%, rgba(15, 23, 42, 0.8) 100%);
  --gradient-gold: linear-gradient(135deg, #f59e0b 0%, #d97706 50%, #b45309 100%);

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-xl: 24px;
  --radius-full: 9999px;

  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.25);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.35);
  --shadow-lg: 0 16px 40px rgba(0, 0, 0, 0.5);
  --shadow-glow: 0 0 35px rgba(34, 211, 238, 0.2);

  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', 'Consolas', 'Courier New', monospace;

  --transition-fast: 0.15s ease;
  --transition-normal: 0.25s ease;
  --transition-slow: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

[data-theme="light"] {
  --bg-base: #f8fafc;
  --bg-surface: #ffffff;
  --bg-card: rgba(255, 255, 255, 0.88);
  --bg-card-hover: rgba(241, 245, 249, 0.98);
  --bg-elevated: #f1f5f9;
  --border-subtle: rgba(0, 0, 0, 0.08);
  --border-focus: rgba(8, 145, 178, 0.7);
  --border-card: rgba(14, 165, 233, 0.2);

  --text-main: #0f172a;
  --text-muted: #475569;
  --text-subtle: #64748b;
  --text-inverse: #f8fafc;

  --accent-cyan: #0891b2;
  --accent-cyan-dark: #0e7490;
  --accent-purple: #7c3aed;
  --accent-indigo: #4f46e5;
  --accent-emerald: #059669;

  --gradient-brand: linear-gradient(135deg, #0284c7 0%, #6366f1 50%, #9333ea 100%);
  --gradient-glow: radial-gradient(circle at 50% -10%, rgba(14, 165, 233, 0.12) 0%, transparent 60%);
  --gradient-card: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);

  --shadow-sm: 0 2px 6px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 8px 20px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 16px 36px rgba(0, 0, 0, 0.12);
  --shadow-glow: 0 0 30px rgba(14, 165, 233, 0.15);
}

/* ==========================================================================
   Base & Reset
   ========================================================================== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-family: var(--font-sans);
  background-color: var(--bg-base);
  color: var(--text-main);
  line-height: 1.6;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--gradient-glow), var(--bg-base);
  background-attachment: fixed;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition-fast);
}

button, input, select, textarea {
  font-family: inherit;
  font-size: 100%;
}

button {
  cursor: pointer;
  border: none;
  background: none;
}

code, pre {
  font-family: var(--font-mono);
}

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

/* ==========================================================================
   Top Alert Bar - InterServer Live Telemetry
   ========================================================================== */
.interserver-top-bar {
  background: linear-gradient(90deg, #070d1a 0%, #17153a 50%, #070d1a 100%);
  border-bottom: 1px solid rgba(139, 92, 246, 0.3);
  padding: 0.45rem 1rem;
  font-size: 0.82rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  z-index: 1001;
}

.interserver-status {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: #cbd5e1;
}

.status-dot-pulse {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-emerald);
  box-shadow: 0 0 10px var(--accent-emerald);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
  70% { transform: scale(1.1); box-shadow: 0 0 0 6px rgba(16, 185, 129, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

.interserver-actions {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.admin-link-badge {
  color: var(--accent-cyan);
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.35rem;
  transition: color var(--transition-fast);
}

.admin-link-badge:hover {
  color: #a5f3fc;
  text-decoration: underline;
}

/* ==========================================================================
   Header & Navbar
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  background: rgba(11, 18, 33, 0.9);
  border-bottom: 1px solid var(--border-subtle);
  transition: all var(--transition-normal);
}

[data-theme="light"] .site-header {
  background: rgba(255, 255, 255, 0.92);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.brand-link {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  font-weight: 800;
  font-size: 1.35rem;
  letter-spacing: -0.02em;
}

.brand-logo-img {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  filter: drop-shadow(0 2px 8px rgba(34, 211, 238, 0.35));
}

.brand-title {
  background: var(--gradient-brand);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

.brand-badge {
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  padding: 0.15rem 0.5rem;
  border-radius: var(--radius-full);
  background: rgba(34, 211, 238, 0.12);
  color: var(--accent-cyan);
  border: 1px solid rgba(34, 211, 238, 0.3);
  letter-spacing: 0.05em;
  margin-left: 0.25rem;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  list-style: none;
}

.nav-link {
  padding: 0.5rem 0.8rem;
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  font-weight: 500;
  font-size: 0.92rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  transition: all var(--transition-fast);
}

.nav-link:hover, .nav-link.active {
  color: var(--accent-cyan);
  background: rgba(34, 211, 238, 0.08);
}

.nav-link.nav-download-highlight {
  color: var(--accent-cyan);
  font-weight: 600;
  border: 1px solid rgba(34, 211, 238, 0.3);
  background: rgba(34, 211, 238, 0.08);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  position: relative;
}

.btn-icon {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  transition: all var(--transition-fast);
}

.btn-icon:hover {
  color: var(--accent-cyan);
  border-color: var(--border-focus);
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.55rem 1.15rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.92rem;
  color: #070b14;
  background: var(--accent-cyan);
  box-shadow: 0 4px 14px rgba(34, 211, 238, 0.35);
  transition: all var(--transition-fast);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(34, 211, 238, 0.5);
  filter: brightness(1.08);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.55rem 1.15rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--text-main);
  background: var(--bg-surface);
  border: 1px solid var(--border-card);
  transition: all var(--transition-fast);
}

.btn-secondary:hover {
  background: var(--bg-card-hover);
  border-color: var(--accent-cyan);
  color: var(--accent-cyan);
}

/* User Account Dropdown in Nav */
.user-account-pill {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-full);
  background: rgba(34, 211, 238, 0.1);
  border: 1px solid rgba(34, 211, 238, 0.25);
  color: var(--accent-cyan);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
}

.user-account-pill:hover {
  background: rgba(34, 211, 238, 0.18);
}

/* User Dropdown Menu */
.user-dropdown-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  background: var(--bg-surface);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  width: 240px;
  display: none;
  flex-direction: column;
  overflow: hidden;
  z-index: 1500;
}

.user-dropdown-menu.active {
  display: flex;
}

.dropdown-header {
  padding: 0.85rem 1rem;
  border-bottom: 1px solid var(--border-subtle);
  background: var(--bg-elevated);
}

.dropdown-header-name {
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--text-main);
}

.dropdown-header-email {
  font-size: 0.78rem;
  color: var(--text-subtle);
}

.dropdown-item {
  padding: 0.75rem 1rem;
  font-size: 0.88rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: all var(--transition-fast);
  cursor: pointer;
}

.dropdown-item:hover {
  background: var(--bg-card-hover);
  color: var(--accent-cyan);
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero-section {
  padding: 4.5rem 0 3.5rem;
  position: relative;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 3.5rem;
  align-items: center;
}

.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-full);
  background: rgba(34, 211, 238, 0.1);
  border: 1px solid rgba(34, 211, 238, 0.25);
  color: var(--accent-cyan);
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
}

.hero-title {
  font-size: clamp(2.4rem, 5vw, 3.8rem);
  font-weight: 900;
  line-height: 1.12;
  letter-spacing: -0.03em;
  margin-bottom: 1.5rem;
}

.hero-title-highlight {
  background: var(--gradient-brand);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  font-size: clamp(1.05rem, 2vw, 1.22rem);
  color: var(--text-muted);
  line-height: 1.65;
  margin-bottom: 2rem;
  max-width: 620px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-bottom: 2.25rem;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
  padding-top: 1.75rem;
  border-top: 1px solid var(--border-subtle);
}

.stat-item h3 {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--accent-cyan);
  line-height: 1;
  margin-bottom: 0.35rem;
}

.stat-item p {
  font-size: 0.82rem;
  color: var(--text-subtle);
  font-weight: 500;
}

/* Hero Code Runner Sandbox Window */
.code-window-card {
  background: var(--bg-surface);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-card);
  box-shadow: var(--shadow-lg), var(--shadow-glow);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.code-window-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1.25rem;
  background: rgba(10, 16, 31, 0.9);
  border-bottom: 1px solid var(--border-subtle);
}

.window-dots {
  display: flex;
  gap: 0.45rem;
}

.dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
}
.dot-red { background: #ef4444; }
.dot-yellow { background: #eab308; }
.dot-green { background: #22c55e; }

.window-tabs {
  display: flex;
  gap: 0.35rem;
}

.window-tab {
  padding: 0.25rem 0.65rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-subtle);
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
}

.window-tab.active, .window-tab:hover {
  color: var(--accent-cyan);
  background: rgba(34, 211, 238, 0.1);
}

.code-editor-hero {
  padding: 1.25rem;
  font-family: var(--font-mono);
  font-size: 0.88rem;
  line-height: 1.6;
  background: #080d1a;
  color: #e2e8f0;
  height: 230px;
  overflow-y: auto;
  white-space: pre;
}

.terminal-pane {
  background: #040811;
  padding: 1rem 1.25rem;
  border-top: 1px solid var(--border-subtle);
  font-family: var(--font-mono);
  font-size: 0.85rem;
}

.terminal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.5rem;
}

.terminal-label {
  color: var(--text-subtle);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.terminal-label::before {
  content: '';
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent-emerald);
}

.btn-run-code {
  padding: 0.35rem 0.85rem;
  font-size: 0.8rem;
  font-weight: 600;
  background: rgba(34, 211, 238, 0.15);
  color: var(--accent-cyan);
  border: 1px solid rgba(34, 211, 238, 0.3);
  border-radius: var(--radius-sm);
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  transition: all var(--transition-fast);
}

.btn-run-code:hover {
  background: var(--accent-cyan);
  color: #070b14;
}

.terminal-output {
  color: #38bdf8;
  line-height: 1.5;
  min-height: 48px;
  white-space: pre-wrap;
  word-break: break-all;
}

/* ==========================================================================
   Section Headers & Common
   ========================================================================== */
.section-wrapper {
  padding: 4.5rem 0;
  border-top: 1px solid var(--border-subtle);
}

.section-head {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 3rem;
}

.section-tag {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent-cyan);
  margin-bottom: 0.65rem;
}

.section-title {
  font-size: clamp(2rem, 3.5vw, 2.6rem);
  font-weight: 800;
  letter-spacing: -0.025em;
  margin-bottom: 0.85rem;
}

.section-desc {
  font-size: 1.05rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ==========================================================================
   Courses & Tracks Explorer
   ========================================================================== */
.filter-controls {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  margin-bottom: 2.5rem;
}

.search-bar-wrap {
  display: flex;
  gap: 1rem;
  align-items: center;
}

.search-input-box {
  flex: 1;
  position: relative;
}

.search-icon {
  position: absolute;
  left: 1.25rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-subtle);
  pointer-events: none;
}

.search-input {
  width: 100%;
  padding: 0.85rem 1rem 0.85rem 3rem;
  background: var(--bg-surface);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-md);
  color: var(--text-main);
  font-size: 1rem;
  outline: none;
  transition: all var(--transition-fast);
}

.search-input:focus {
  border-color: var(--border-focus);
  box-shadow: 0 0 15px rgba(34, 211, 238, 0.2);
}

.category-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.cat-pill {
  padding: 0.45rem 1rem;
  border-radius: var(--radius-full);
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-muted);
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  transition: all var(--transition-fast);
}

.cat-pill:hover {
  color: var(--text-main);
  border-color: var(--border-card);
}

.cat-pill.active {
  background: rgba(34, 211, 238, 0.12);
  color: var(--accent-cyan);
  border-color: var(--accent-cyan);
  font-weight: 600;
}

.tracks-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
  gap: 1.5rem;
}

.track-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  transition: all var(--transition-normal);
  position: relative;
  overflow: hidden;
}

.track-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-card);
  box-shadow: var(--shadow-md), 0 0 20px rgba(34, 211, 238, 0.1);
  background: var(--bg-card-hover);
}

.track-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 1.25rem;
}

.track-lang-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  background: rgba(34, 211, 238, 0.1);
  border: 1px solid rgba(34, 211, 238, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--accent-cyan);
}

.track-badges {
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
}

.badge-difficulty {
  font-size: 0.72rem;
  font-weight: 600;
  padding: 0.2rem 0.55rem;
  border-radius: var(--radius-sm);
}

.diff-beginner { background: rgba(16, 185, 129, 0.15); color: #34d399; }
.diff-intermediate { background: rgba(56, 189, 248, 0.15); color: #38bdf8; }
.diff-advanced { background: rgba(244, 63, 94, 0.15); color: #fb7185; }

.app-required-tag {
  font-size: 0.68rem;
  font-weight: 700;
  background: rgba(245, 158, 11, 0.15);
  border: 1px solid rgba(245, 158, 11, 0.3);
  color: var(--accent-amber);
  padding: 0.18rem 0.5rem;
  border-radius: var(--radius-sm);
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}

.track-hours {
  font-size: 0.75rem;
  color: var(--text-subtle);
  font-weight: 500;
}

.track-title {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 0.4rem;
  line-height: 1.35;
}

.track-desc {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.55;
  margin-bottom: 1.25rem;
  flex-grow: 1;
}

.track-paradigm-pill {
  font-size: 0.75rem;
  color: var(--text-subtle);
  background: rgba(255, 255, 255, 0.04);
  padding: 0.35rem 0.65rem;
  border-radius: var(--radius-sm);
  margin-bottom: 1.25rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.track-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 1rem;
  border-top: 1px solid var(--border-subtle);
  gap: 0.5rem;
}

.track-progress-info {
  font-size: 0.8rem;
  color: var(--text-subtle);
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.track-action-btn {
  padding: 0.45rem 0.95rem;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  font-weight: 600;
  background: rgba(34, 211, 238, 0.12);
  color: var(--accent-cyan);
  border: 1px solid rgba(34, 211, 238, 0.25);
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  transition: all var(--transition-fast);
}

.track-action-btn:hover {
  background: var(--accent-cyan);
  color: #070b14;
}

/* ==========================================================================
   Registration & Authentication Modal
   ========================================================================== */
.auth-modal {
  position: fixed;
  inset: 0;
  z-index: 2500;
  background: rgba(3, 7, 18, 0.85);
  backdrop-filter: blur(12px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.auth-modal.active {
  display: flex;
}

.auth-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 480px;
  overflow: hidden;
  box-shadow: var(--shadow-lg), 0 0 40px rgba(34, 211, 238, 0.15);
}

.auth-header {
  padding: 1.5rem 1.75rem 1rem;
  background: var(--bg-elevated);
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.auth-tabs {
  display: flex;
  gap: 0.5rem;
}

.auth-tab-btn {
  padding: 0.45rem 1rem;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-muted);
  transition: all var(--transition-fast);
}

.auth-tab-btn.active {
  background: rgba(34, 211, 238, 0.12);
  color: var(--accent-cyan);
}

.auth-body {
  padding: 1.75rem;
}

.auth-alert-box {
  padding: 0.85rem;
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  margin-bottom: 1.25rem;
  display: none;
}

.auth-alert-error {
  background: rgba(244, 63, 94, 0.15);
  border: 1px solid var(--accent-rose);
  color: #fb7185;
}

.auth-alert-success {
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid var(--accent-emerald);
  color: #34d399;
}

/* Password Strength Meter */
.password-meter-wrap {
  margin-top: 0.5rem;
}

.password-meter-bar {
  height: 4px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-full);
  overflow: hidden;
}

.password-meter-fill {
  height: 100%;
  width: 0%;
  transition: all var(--transition-normal);
}

.meter-weak { width: 33%; background: var(--accent-rose); }
.meter-medium { width: 66%; background: var(--accent-amber); }
.meter-strong { width: 100%; background: var(--accent-emerald); }

.password-meter-text {
  font-size: 0.75rem;
  color: var(--text-subtle);
  margin-top: 0.35rem;
  display: flex;
  justify-content: space-between;
}

/* Password Input with Visibility Eye Toggle */
.password-input-container {
  position: relative;
  display: flex;
  align-items: center;
}

.password-toggle-eye {
  position: absolute;
  right: 0.85rem;
  color: var(--text-subtle);
  cursor: pointer;
  padding: 0.25rem;
}

.password-toggle-eye:hover {
  color: var(--accent-cyan);
}

/* ==========================================================================
   Toast Notification Center
   ========================================================================== */
.toast-container {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 3000;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  pointer-events: none;
}

.toast-message {
  pointer-events: auto;
  background: rgba(15, 23, 42, 0.95);
  backdrop-filter: blur(8px);
  border: 1px solid var(--border-card);
  color: var(--text-main);
  padding: 0.85rem 1.25rem;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg), 0 4px 20px rgba(0, 0, 0, 0.4);
  font-size: 0.92rem;
  display: flex;
  align-items: center;
  gap: 0.65rem;
  animation: slideInRight 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.toast-message.toast-success { border-color: var(--accent-emerald); color: #a7f3d0; }
.toast-message.toast-warning { border-color: var(--accent-amber); color: #fde68a; }
.toast-message.toast-error { border-color: var(--accent-rose); color: #fecdd3; }

@keyframes slideInRight {
  from { transform: translateX(100%); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

/* ==========================================================================
   Certificate Locking Notice & Watermark for Advanced Courses
   ========================================================================== */
.cert-lock-banner {
  background: linear-gradient(90deg, rgba(245, 158, 11, 0.15) 0%, rgba(244, 63, 94, 0.15) 100%);
  border: 1px solid var(--accent-amber);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.cert-lock-icon {
  font-size: 1.8rem;
  line-height: 1;
}

.cert-lock-title {
  color: var(--accent-amber);
  font-weight: 800;
  font-size: 1rem;
  margin-bottom: 0.35rem;
}

.cert-lock-desc {
  font-size: 0.88rem;
  color: var(--text-main);
  line-height: 1.55;
}

.diploma-locked-overlay {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.88);
  backdrop-filter: blur(4px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  padding: 2rem;
  text-align: center;
  z-index: 10;
}

.diploma-locked-title {
  font-size: 1.5rem;
  font-weight: 800;
  color: #fbbf24;
  margin-bottom: 0.75rem;
}

.diploma-locked-text {
  font-size: 0.95rem;
  color: #f1f5f9;
  max-width: 440px;
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

/* ==========================================================================
   Interactive Lesson Reader Modal / Studio
   ========================================================================== */
.studio-modal {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(3, 7, 18, 0.88);
  backdrop-filter: blur(12px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.studio-modal.active {
  display: flex;
}

.studio-container {
  background: var(--bg-surface);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 1200px;
  height: 90vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.studio-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.5rem;
  background: var(--bg-elevated);
  border-bottom: 1px solid var(--border-subtle);
}

.studio-title-box h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.studio-title-box p {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.studio-body {
  display: grid;
  grid-template-columns: 320px 1fr;
  flex: 1;
  overflow: hidden;
}

.studio-sidebar {
  border-right: 1px solid var(--border-subtle);
  background: rgba(8, 14, 28, 0.5);
  overflow-y: auto;
  padding: 1rem;
}

.studio-module-title {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--accent-cyan);
  letter-spacing: 0.05em;
  margin: 1rem 0 0.5rem 0.5rem;
}

.studio-lesson-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.studio-lesson-item {
  padding: 0.65rem 0.85rem;
  border-radius: var(--radius-sm);
  font-size: 0.86rem;
  color: var(--text-muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  transition: all var(--transition-fast);
}

.studio-lesson-item:hover {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-main);
}

.studio-lesson-item.active {
  background: rgba(34, 211, 238, 0.12);
  color: var(--accent-cyan);
  font-weight: 600;
  border-left: 3px solid var(--accent-cyan);
}

.lesson-check-icon {
  font-size: 0.85rem;
  color: var(--accent-emerald);
}

.studio-content-pane {
  overflow-y: auto;
  padding: 2.25rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.lesson-heading {
  font-size: 1.7rem;
  font-weight: 800;
  color: var(--text-main);
}

.lesson-objectives-box {
  background: rgba(34, 211, 238, 0.06);
  border-left: 3px solid var(--accent-cyan);
  padding: 1rem 1.25rem;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

.lesson-objectives-box h4 {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--accent-cyan);
  margin-bottom: 0.35rem;
}

.lesson-objectives-box p {
  font-size: 0.95rem;
  color: var(--text-main);
}

.lesson-content-text {
  font-size: 1.02rem;
  line-height: 1.75;
  color: var(--text-muted);
  white-space: pre-line;
}

.lesson-code-card {
  background: #080d1a;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.lesson-code-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.65rem 1rem;
  background: rgba(15, 23, 42, 0.7);
  border-bottom: 1px solid var(--border-subtle);
  font-size: 0.8rem;
  color: var(--text-subtle);
}

.lesson-code-view {
  padding: 1.25rem;
  font-family: var(--font-mono);
  font-size: 0.9rem;
  color: #38bdf8;
  overflow-x: auto;
  white-space: pre;
}

.lesson-output-card {
  background: #040811;
  border: 1px solid rgba(16, 185, 129, 0.2);
  border-radius: var(--radius-md);
  padding: 1rem 1.25rem;
}

.lesson-output-card h5 {
  font-size: 0.75rem;
  text-transform: uppercase;
  color: var(--accent-emerald);
  letter-spacing: 0.05em;
  margin-bottom: 0.5rem;
}

.lesson-output-view {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: #a7f3d0;
  white-space: pre-wrap;
}

.studio-footer-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 1rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-subtle);
}

/* ==========================================================================
   Code Playground & Rubric Challenge Section
   ========================================================================== */
.playground-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow-lg);
}

.playground-editor-box, .playground-output-box {
  display: flex;
  flex-direction: column;
}

.playground-top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.85rem;
  gap: 0.75rem;
}

.playground-lang-select {
  padding: 0.5rem 0.85rem;
  border-radius: var(--radius-sm);
  background: var(--bg-surface);
  border: 1px solid var(--border-card);
  color: var(--text-main);
  font-size: 0.9rem;
  font-weight: 600;
  outline: none;
}

.playground-textarea {
  width: 100%;
  height: 380px;
  background: #080d1a;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  color: #e2e8f0;
  font-family: var(--font-mono);
  font-size: 0.9rem;
  line-height: 1.6;
  padding: 1.25rem;
  resize: vertical;
  outline: none;
  transition: border-color var(--transition-fast);
}

.playground-textarea:focus {
  border-color: var(--border-focus);
}

.challenge-rubric-card {
  background: rgba(245, 158, 11, 0.08);
  border: 1px solid rgba(245, 158, 11, 0.25);
  border-radius: var(--radius-md);
  padding: 1rem;
  margin-bottom: 1rem;
}

.challenge-rubric-card h4 {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--accent-amber);
  margin-bottom: 0.4rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.challenge-rubric-card p {
  font-size: 0.86rem;
  color: var(--text-main);
}

.terminal-box-large {
  background: #040811;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  height: 380px;
  padding: 1.25rem;
  font-family: var(--font-mono);
  font-size: 0.88rem;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}

.terminal-prompt-line {
  color: var(--text-subtle);
  margin-bottom: 0.5rem;
}

.terminal-exec-output {
  color: #38bdf8;
  white-space: pre-wrap;
  flex: 1;
}

.rubric-eval-result {
  margin-top: 1rem;
  padding: 0.85rem;
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  font-weight: 600;
}

.rubric-pass {
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.3);
  color: #34d399;
}

.rubric-hint {
  background: rgba(245, 158, 11, 0.15);
  border: 1px solid rgba(245, 158, 11, 0.3);
  color: #fbbf24;
}

/* ==========================================================================
   Daily Study Plan Generator
   ========================================================================== */
.study-planner-card {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  box-shadow: var(--shadow-lg);
}

.planner-form-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.form-group label {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}

.form-select, .form-input {
  width: 100%;
  padding: 0.75rem 1rem;
  background: var(--bg-surface);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-sm);
  color: var(--text-main);
  outline: none;
  font-size: 0.95rem;
}

.generated-plan-results {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 2rem;
  margin-top: 1.5rem;
  display: none;
}

.generated-plan-results.active {
  display: block;
}

.plan-milestone-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.25rem;
  margin-top: 1.5rem;
}

.plan-milestone-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 1.25rem;
}

.plan-milestone-card h4 {
  font-size: 1.05rem;
  color: var(--accent-cyan);
  margin-bottom: 0.5rem;
}

/* ==========================================================================
   Quiz Center
   ========================================================================== */
.quiz-card {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  max-width: 800px;
  margin: 0 auto;
  box-shadow: var(--shadow-lg);
}

.quiz-question-title {
  font-size: 1.35rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  color: var(--text-main);
}

.quiz-options-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.quiz-option-btn {
  padding: 1rem 1.25rem;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  text-align: left;
  font-size: 1rem;
  color: var(--text-main);
  transition: all var(--transition-fast);
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.quiz-option-btn:hover {
  background: var(--bg-card-hover);
  border-color: var(--accent-cyan);
}

.quiz-option-btn.selected-correct {
  background: rgba(16, 185, 129, 0.15);
  border-color: #10b981;
  color: #34d399;
}

.quiz-option-btn.selected-wrong {
  background: rgba(244, 63, 94, 0.15);
  border-color: #f43f5e;
  color: #fb7185;
}

.quiz-explanation-box {
  background: rgba(34, 211, 238, 0.08);
  border-left: 3px solid var(--accent-cyan);
  padding: 1rem;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-size: 0.95rem;
  color: var(--text-main);
  display: none;
  margin-bottom: 1.5rem;
}

/* ==========================================================================
   Certificate Generator & Verifier (Enhanced High Security)
   ========================================================================== */
.cert-section-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: start;
}

.cert-controls-card {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-md);
}

/* ==========================================================================
   OFFICIAL EDUHUB APP CERTIFICATE OF COMPLETION (NON-EDITABLE DESIGN)
   Exact match to Java Desktop & Android Native Credentialing Engine
   ========================================================================== */

/* Non-Editable Verified Student Identity Card */
.verified-student-card {
  background: rgba(15, 23, 42, 0.75);
  border: 1px solid rgba(56, 189, 248, 0.3);
  border-left: 4px solid var(--accent-cyan);
  border-radius: var(--radius-sm);
  padding: 1.25rem;
  margin-bottom: 1.5rem;
}

.verified-student-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: var(--accent-cyan);
}

.verified-lock-tag {
  margin-left: auto;
  font-size: 0.68rem;
  padding: 0.15rem 0.5rem;
  background: rgba(245, 158, 11, 0.15);
  border: 1px solid rgba(245, 158, 11, 0.4);
  color: var(--accent-amber);
  border-radius: 99px;
  font-weight: 700;
}

.verified-student-name {
  font-size: 1.35rem;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 0.2rem;
}

.verified-student-meta {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.verified-student-note {
  font-size: 0.76rem;
  color: var(--text-subtle);
  margin-top: 0.6rem;
  line-height: 1.4;
  border-top: 1px dashed rgba(255, 255, 255, 0.08);
  padding-top: 0.5rem;
}

/* Official Imperial Obsidian & Gold App Diploma Frame */
.diploma-preview-wrap {
  position: relative;
  width: 100%;
  overflow-x: auto;
}

.diploma-frame {
  width: 100%;
  max-width: 960px;
  margin: 0 auto;
  background: radial-gradient(circle at 50% 45%, #0D172E 0%, #080E1E 70%, #050813 100%);
  border: 4px solid #E5C07B;
  outline: 1.5px solid #C5A059;
  outline-offset: -10px;
  border-radius: 4px;
  padding: 36px 42px;
  box-sizing: border-box;
  position: relative;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.8), 0 0 50px rgba(212, 175, 55, 0.15);
  text-align: center;
  font-family: 'Georgia', 'Palatino Linotype', 'Times New Roman', serif;
  color: #F8FAFC;
  user-select: none;
  min-height: 520px;
}

/* Corner Rosettes */
.corner-rosette {
  position: absolute;
  width: 28px;
  height: 28px;
  border: 2px solid #E5C07B;
  pointer-events: none;
}
.corner-rosette.tl { top: 16px; left: 16px; border-right: none; border-bottom: none; }
.corner-rosette.tr { top: 16px; right: 16px; border-left: none; border-bottom: none; }
.corner-rosette.bl { bottom: 16px; left: 16px; border-right: none; border-top: none; }
.corner-rosette.br { bottom: 16px; right: 16px; border-left: none; border-top: none; }

.cert-brand-badge {
  display: inline-block;
  color: #FCD34D;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 3.5px;
  text-transform: uppercase;
  margin-bottom: 2px;
}

.cert-brand-sub {
  color: #94A3B8;
  font-size: 9px;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.cert-main-title {
  font-size: 34px;
  font-weight: 700;
  margin: 0 0 4px 0;
  background: linear-gradient(180deg, #FFFFFF 0%, #FDE68A 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  letter-spacing: 2px;
}

.cert-subtitle {
  color: #CBD5E1;
  font-size: 13px;
  font-style: italic;
  margin-bottom: 18px;
}

.cert-presented-to {
  color: #D4AF37;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 3px;
  margin-bottom: 4px;
}

.cert-student-name {
  font-size: 36px;
  font-weight: 700;
  color: #FFFDF8;
  margin: 2px 0 10px 0;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.7);
  border-bottom: 2px solid rgba(212, 175, 55, 0.6);
  display: inline-block;
  padding-bottom: 4px;
  min-width: 320px;
}

.cert-body-stmt {
  color: #E2E8F0;
  font-size: 13px;
  margin: 8px 0 4px 0;
}

.cert-course-title {
  font-size: 24px;
  font-weight: 700;
  color: #38BDF8;
  margin: 4px 0 10px 0;
}

.cert-meta-pill {
  display: inline-block;
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid rgba(212, 175, 55, 0.5);
  color: #FCD34D;
  font-size: 10px;
  font-weight: bold;
  letter-spacing: 1px;
  padding: 4px 14px;
  border-radius: 99px;
  margin-bottom: 14px;
}

.cert-commendation {
  font-size: 12px;
  line-height: 1.5;
  color: #F1F5F9;
  max-width: 780px;
  margin: 0 auto 14px auto;
  background: rgba(15, 23, 42, 0.8);
  padding: 10px 16px;
  border-radius: 6px;
  border: 1px solid rgba(212, 175, 55, 0.35);
  border-left: 4px solid #D4AF37;
  text-align: left;
}

.cert-skills-wrapper {
  margin-bottom: 18px;
}

.cert-skill-pill {
  display: inline-block;
  background: rgba(15, 23, 42, 0.8);
  border: 1px solid rgba(56, 189, 248, 0.4);
  color: #BAE6FD;
  font-size: 10px;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 5px;
  margin: 2px 3px;
}

.cert-signatures-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-top: 14px;
  padding: 0 20px;
}

.cert-sig-block {
  text-align: left;
  width: 220px;
}

.cert-sig-block.right {
  text-align: right;
}

.cert-sig-script {
  font-family: 'Brush Script MT', cursive, serif;
  font-size: 24px;
  color: #93C5FD;
  line-height: 1;
  margin-bottom: 3px;
}

.cert-sig-line {
  height: 1px;
  background: #D4AF37;
  margin-bottom: 5px;
}

.cert-sig-name {
  font-weight: bold;
  font-size: 12px;
  color: #FFFDF8;
}

.cert-sig-title {
  font-size: 10px;
  color: #CBD5E1;
}

.cert-seal-block {
  text-align: center;
}

.cert-seal {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  background: radial-gradient(circle, #FDE68A 0%, #D4AF37 50%, #92400E 100%);
  display: flex;
  justify-content: center;
  align-items: center;
  color: #080E1E;
  font-weight: 900;
  font-size: 26px;
  margin: 0 auto;
  box-shadow: 0 0 20px rgba(212, 175, 55, 0.5);
  border: 2px dashed #FEF3C7;
}

.cert-footer-bar {
  display: flex;
  justify-content: space-between;
  margin-top: 20px;
  padding-top: 12px;
  border-top: 1px solid rgba(212, 175, 55, 0.3);
  font-size: 10px;
  color: #94A3B8;
  font-family: var(--font-mono, monospace);
}

@media print {
  body {
    background: #FFFFFF !important;
    color: #000000 !important;
    padding: 0 !important;
  }
  .diploma-frame {
    box-shadow: none !important;
    border-color: #B45309 !important;
    outline-color: #D4AF37 !important;
    background: #FFFFFF !important;
    color: #000000 !important;
  }
  .cert-main-title {
    -webkit-text-fill-color: #000000 !important;
    color: #000000 !important;
  }
  .cert-student-name {
    color: #000000 !important;
    border-color: #000000 !important;
  }
  .cert-course-title {
    color: #0284C7 !important;
  }
}

/* ==========================================================================
   Download Center
   ========================================================================== */
.downloads-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem;
}

.download-card {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  padding: 2.25rem;
  display: flex;
  flex-direction: column;
  transition: all var(--transition-normal);
}

.download-card:hover {
  transform: translateY(-4px);
  border-color: var(--accent-cyan);
  box-shadow: var(--shadow-lg), var(--shadow-glow);
}

.download-icon-box {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-md);
  background: rgba(34, 211, 238, 0.1);
  border: 1px solid rgba(34, 211, 238, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  color: var(--accent-cyan);
  margin-bottom: 1.5rem;
}

.download-title {
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.download-desc {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 1.5rem;
  flex-grow: 1;
}

.download-specs-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 1.75rem;
  font-size: 0.85rem;
  color: var(--text-subtle);
}

.download-specs-list li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* ==========================================================================
   FAQ & Footer
   ========================================================================== */
.faq-grid {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.faq-question {
  width: 100%;
  padding: 1.25rem 1.5rem;
  text-align: left;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text-main);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.faq-question:hover {
  color: var(--accent-cyan);
}

.faq-answer {
  padding: 0 1.5rem 1.25rem;
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.6;
  display: none;
}

.faq-item.active .faq-answer {
  display: block;
}

.site-footer {
  border-top: 1px solid var(--border-subtle);
  background: var(--bg-surface);
  padding: 4rem 0 2rem;
  margin-top: 5rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-brand p {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-top: 1rem;
  max-width: 320px;
}

.footer-col h4 {
  font-size: 0.9rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-main);
  margin-bottom: 1.25rem;
}

.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  font-size: 0.92rem;
  color: var(--text-muted);
}

.footer-col a:hover {
  color: var(--accent-cyan);
}

.footer-bottom {
  border-top: 1px solid var(--border-subtle);
  padding-top: 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.85rem;
  color: var(--text-subtle);
}

/* ==========================================================================
   Print Styles for Certificate Export
   ========================================================================== */
@media print {
  body * {
    visibility: hidden;
  }
  .diploma-frame, .diploma-frame * {
    visibility: visible;
  }
  .diploma-locked-overlay {
    display: none !important;
  }
  .diploma-frame {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    margin: 0;
    border: 10px double #000;
    box-shadow: none;
    padding: 3rem;
  }
}

/* ==========================================================================
   Responsive Breakpoints
   ========================================================================== */
@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  .cert-section-grid {
    grid-template-columns: 1fr;
  }
  .downloads-grid {
    grid-template-columns: 1fr;
  }
  .planner-form-grid {
    grid-template-columns: 1fr;
  }
  .playground-container {
    grid-template-columns: 1fr;
  }
  .studio-body {
    grid-template-columns: 1fr;
  }
  .studio-sidebar {
    display: none;
  }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
  }
  .hero-stats {
    grid-template-columns: repeat(2, 1fr);
  }
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .interserver-top-bar {
    flex-direction: column;
    gap: 0.35rem;
    text-align: center;
  }
  .toast-container {
    left: 1rem;
    right: 1rem;
    bottom: 1rem;
  }
}
