/* ==========================================================================
   نظام التصميم الاحترافي — CyberWarrior Academy
   ========================================================================== */

:root {
  --bg:          #07060f;
  --bg-card:     #0d0b1e;
  --bg-elevated: #140f2a;
  --bg-hover:    #1e1742;
  --border:      rgba(139,92,246,0.09);
  --border-act:  rgba(139,92,246,0.42);

  --accent:      #8b5cf6;   /* violet-purple */
  --accent-dim:  rgba(139,92,246,0.11);
  --accent-glow: rgba(139,92,246,0.22);
  --accent2:     #a78bfa;   /* light violet */
  --green:       #10b981;
  --green-dim:   rgba(16,185,129,0.11);
  --red:         #f43f5e;
  --red-dim:     rgba(244,63,94,0.11);
  --yellow:      #f59e0b;

  --text-primary:   #f2eeff;
  --text-secondary: #a896cc;
  --text-muted:     #5c5278;

  --font:  'Cairo', 'Inter', system-ui, sans-serif;
  --mono:  'JetBrains Mono', 'Courier New', monospace;

  --r-sm: 5px;
  --r-md: 10px;
  --r-lg: 16px;
  --r-xl: 22px;

  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --fast: 150ms;
  --norm: 260ms;
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text-primary);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse 90% 50% at 50% -5%, rgba(139,92,246,0.13) 0%, transparent 65%),
    radial-gradient(ellipse 40% 30% at 90% 80%, rgba(109,40,217,0.06) 0%, transparent 60%);
  pointer-events: none;
  z-index: 0;
}

#page-main, .site-header, .site-footer {
  position: relative;
  z-index: 1;
}
a { color: inherit; text-decoration: none; }
button { font-family: var(--font); cursor: pointer; border: none; background: none; }
ul, ol { list-style: none; }
img { display: block; max-width: 100%; }

/* ── Scrollbar ── */
::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 99px; }
::-webkit-scrollbar-thumb:hover { background: var(--accent); }

/* ── Utilities ── */
.hidden { display: none !important; }
.w-full { width: 100%; }

/* ==========================================================================
   Announcement Bar
   ========================================================================== */
.announce-bar {
  position: relative;
  z-index: 101;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 8px 44px;
  background: rgba(16,185,129,0.06);
  border-bottom: 1px solid rgba(16,185,129,0.15);
  font-size: 12.5px;
  font-weight: 500;
  color: var(--text-secondary);
}
.announce-text { display: inline-flex; align-items: center; gap: 8px; }
.announce-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 3px var(--green-dim);
  animation: pulse-dot 2.5s ease-in-out infinite;
  flex-shrink: 0;
}
.announce-cta {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--green);
  font-weight: 600;
  border: 1px solid rgba(16,185,129,0.3);
  border-radius: var(--r-sm);
  padding: 2px 10px;
  transition: background var(--fast) var(--ease);
}
.announce-cta:hover { background: var(--green-dim); }
.announce-close {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  font-size: 14px;
  padding: 2px 6px;
  transition: color var(--fast) var(--ease);
}
.announce-close:hover { color: var(--text-primary); }
@media (max-width: 640px) {
  .announce-cta { display: none; }
  .announce-bar { font-size: 11.5px; padding: 7px 40px; }
}

/* ==========================================================================
   Header
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10,14,26,0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  height: 60px;
  display: flex;
  align-items: center;
  gap: 32px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.brand-icon {
  width: 34px;
  height: 34px;
  background: var(--accent-dim);
  border: 1px solid var(--border-act);
  border-radius: var(--r-md);
  display: grid;
  place-items: center;
  color: var(--accent);
  font-size: 15px;
}
.brand-text { display: flex; flex-direction: column; gap: 0; }
.brand-name {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.3px;
  line-height: 1.2;
  font-family: 'Inter', sans-serif;
}
.brand-accent { color: var(--accent); }
.brand-sub {
  font-size: 10px;
  color: var(--text-muted);
  font-weight: 400;
  font-family: 'Inter', sans-serif;
  letter-spacing: 0.4px;
  text-transform: uppercase;
}
.main-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  flex: 1;
}
.nav-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--text-secondary);
  padding: 6px 12px;
  border-radius: var(--r-sm);
  transition: color var(--fast) var(--ease), background var(--fast) var(--ease);
}
.nav-item:hover,
.nav-item.active { color: var(--text-primary); background: var(--bg-hover); }
.nav-ico { font-size: 11px; opacity: 0.7; transition: opacity var(--fast) var(--ease); }
.nav-item:hover .nav-ico,
.nav-item.active .nav-ico { opacity: 1; color: var(--accent); }
.header-actions { display: flex; align-items: center; gap: 10px; margin-right: auto; }

.cart-btn {
  position: relative;
  width: 36px;
  height: 36px;
  border-radius: var(--r-md);
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  display: grid;
  place-items: center;
  color: var(--text-secondary);
  font-size: 14px;
  transition: var(--fast) var(--ease);
}
.cart-btn:hover { color: var(--text-primary); border-color: var(--border-act); }
.cart-count {
  position: absolute;
  top: -5px;
  left: -5px;
  min-width: 18px;
  height: 18px;
  padding: 0 4px;
  background: var(--accent);
  color: white;
  font-size: 10px;
  font-weight: 700;
  border-radius: 99px;
  display: grid;
  place-items: center;
  font-family: 'Inter', sans-serif;
}
.header-auth-btn {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 7px 14px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  transition: var(--fast) var(--ease);
}
.header-auth-btn:hover { color: var(--text-primary); border-color: var(--border-act); }

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero-section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 80px 24px 60px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 60px;
}
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 500;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin-bottom: 20px;
  font-family: 'Inter', sans-serif;
}
.eyebrow-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-dim), 0 0 8px rgba(139,92,246,0.5);
  animation: pulse-dot 2.5s ease-in-out infinite;
}
@keyframes pulse-dot {
  0%, 100% { opacity: 1; }
  50%        { opacity: 0.55; }
}
.hero-title {
  font-size: clamp(30px, 4vw, 48px);
  font-weight: 800;
  line-height: 1.2;
  color: var(--text-primary);
  margin-bottom: 20px;
  letter-spacing: -1px;
}
.hero-title-highlight {
  background: linear-gradient(135deg, #c084fc 0%, #8b5cf6 50%, #6d28d9 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-desc {
  font-size: 15.5px;
  color: var(--text-secondary);
  line-height: 1.75;
  margin-bottom: 32px;
  max-width: 480px;
}
.hero-stats {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 32px;
}
.stat-item {
  display: flex;
  flex-direction: column;
}
.stat-item strong {
  font-size: 22px;
  font-weight: 800;
  color: var(--text-primary);
  font-family: 'Inter', sans-serif;
  line-height: 1;
}
.stat-item span {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 3px;
}
.stat-divider {
  width: 1px;
  height: 36px;
  background: var(--border);
}
.hero-actions { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }

/* ── Buttons ── */
.btn-primary,
.btn-primary-hero {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  background: var(--accent);
  color: white;
  font-size: 14px;
  font-weight: 600;
  border-radius: var(--r-md);
  border: 1px solid transparent;
  transition: background var(--fast) var(--ease), transform var(--fast) var(--ease), box-shadow var(--fast) var(--ease);
  white-space: nowrap;
}
.btn-primary:hover,
.btn-primary-hero:hover {
  background: #4f46e5;
  box-shadow: 0 4px 20px var(--accent-glow);
  transform: translateY(-1px);
}
.btn-primary:disabled { opacity: 0.45; cursor: not-allowed; transform: none; }
.btn-primary-hero { padding: 12px 24px; font-size: 15px; }

.btn-ghost,
.btn-ghost-hero {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  background: transparent;
  color: var(--text-secondary);
  font-size: 14px;
  font-weight: 500;
  border-radius: var(--r-md);
  border: 1px solid var(--border);
  transition: var(--fast) var(--ease);
  white-space: nowrap;
}
.btn-ghost:hover,
.btn-ghost-hero:hover { color: var(--text-primary); border-color: rgba(255,255,255,0.2); }
.btn-ghost:disabled { opacity: 0.45; cursor: not-allowed; }
.btn-ghost-hero { padding: 12px 24px; font-size: 15px; }

/* ── Code Window ── */
.hero-visual { position: relative; }
.code-window {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(0,0,0,0.4);
}
.code-win-header {
  padding: 12px 16px;
  background: var(--bg-elevated);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 8px;
}
.dot { width: 12px; height: 12px; border-radius: 50%; }
.dot-red    { background: #ff5f57; }
.dot-yellow { background: #febc2e; }
.dot-green  { background: #28c840; }
.win-title {
  margin-right: 8px;
  font-size: 12px;
  color: var(--text-muted);
  font-family: 'Inter', sans-serif;
}
.code-win-body {
  padding: 24px;
  font-family: var(--mono);
  font-size: 13px;
  line-height: 1.75;
  color: #94a3b8;
  white-space: pre;
  overflow-x: auto;
}
.cm { color: #475569; font-style: italic; }
.ck { color: #818cf8; }
.co { color: #6b7280; }
.cs { color: #34d399; }
.cf { color: #60a5fa; }

/* ==========================================================================
   Cert Bar
   ========================================================================== */
.cert-bar-section {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--bg-card);
}
.cert-bar-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.cert-bar-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.6px;
  white-space: nowrap;
  font-family: 'Inter', sans-serif;
}
.cert-list { display: flex; gap: 8px; flex-wrap: wrap; }
.cert-pill {
  padding: 3px 10px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 99px;
  font-size: 11.5px;
  font-weight: 600;
  color: var(--text-secondary);
  font-family: 'Inter', sans-serif;
  letter-spacing: 0.3px;
}

/* ==========================================================================
   Curriculum Section
   ========================================================================== */
.curriculum-section,
.bundles-section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 72px 24px;
}
.section-header {
  margin-bottom: 40px;
}
.section-title {
  font-size: clamp(22px, 3vw, 30px);
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -0.5px;
  margin-bottom: 8px;
}
.section-desc {
  font-size: 14.5px;
  color: var(--text-secondary);
}

/* ── Stage Cards ── */
.stages-grid {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.stage-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
  transition: border-color var(--norm) var(--ease), box-shadow var(--norm) var(--ease);
}
.stage-card:hover {
  border-color: rgba(139,92,246,0.25);
  box-shadow: 0 0 0 1px rgba(139,92,246,0.07), 0 8px 32px rgba(0,0,0,0.35);
}
.stage-card.coming-soon { opacity: 0.6; }
.stage-card.unlocked { border-color: rgba(34,197,94,0.25); }

.stage-header {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px 24px;
  cursor: pointer;
  user-select: none;
}
.stage-card.coming-soon .stage-header { cursor: default; }

.stage-num {
  flex-shrink: 0;
  width: 38px;
  height: 38px;
  border-radius: var(--r-md);
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  display: grid;
  place-items: center;
  font-size: 17px;
  color: var(--accent);
}
.stage-card.coming-soon .stage-num { color: var(--text-muted); }

.stage-meta { flex: 1; min-width: 0; }
.stage-meta h3 {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 4px;
  line-height: 1.3;
}
.stage-meta p {
  font-size: 12.5px;
  color: var(--text-muted);
  line-height: 1.5;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.stage-right {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}
.stage-price {
  font-family: 'Inter', sans-serif;
  font-size: 17px;
  font-weight: 700;
  color: var(--text-primary);
}
.badge-coming {
  padding: 3px 10px;
  background: rgba(245,158,11,0.1);
  border: 1px solid rgba(245,158,11,0.2);
  border-radius: 99px;
  font-size: 11px;
  font-weight: 600;
  color: var(--yellow);
  font-family: 'Inter', sans-serif;
}
.badge-unlocked {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  background: var(--green-dim);
  border: 1px solid rgba(34,197,94,0.3);
  border-radius: 99px;
  font-size: 11.5px;
  font-weight: 600;
  color: var(--green);
}
.chevron-icon {
  color: var(--text-muted);
  font-size: 12px;
  transition: transform var(--norm) var(--ease);
}
.stage-card.expanded .chevron-icon { transform: rotate(180deg); }

.stage-purchase-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  background: var(--accent-dim);
  border: 1px solid var(--border-act);
  color: var(--accent);
  font-size: 13px;
  font-weight: 600;
  border-radius: var(--r-md);
  transition: var(--fast) var(--ease);
  font-family: var(--font);
}
.stage-purchase-btn:hover {
  background: var(--accent);
  color: white;
  border-color: var(--accent);
}

/* ── Lessons Dropdown ── */
.stage-lessons {
  border-top: 1px solid var(--border);
  display: none;
}
.stage-card.expanded .stage-lessons { display: block; }

.lessons-count-bar {
  padding: 10px 24px;
  background: var(--bg-elevated);
  font-size: 11.5px;
  color: var(--text-muted);
  font-family: 'Inter', sans-serif;
  letter-spacing: 0.3px;
}
.lessons-count-bar strong { color: var(--text-secondary); }

.lessons-list {
  padding: 8px 0;
}
.lesson-row {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 10px 24px;
  border-bottom: 1px solid var(--border);
  transition: background var(--fast) var(--ease);
}
.lesson-row:last-child { border-bottom: none; }
.lesson-row:hover { background: var(--bg-hover); }

.lesson-num-badge {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border-radius: var(--r-sm);
  background: var(--bg-elevated);
  display: grid;
  place-items: center;
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 500;
  color: var(--text-muted);
  border: 1px solid var(--border);
  margin-top: 2px;
}
.lesson-info { flex: 1; }
.lesson-info h4 {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 3px;
  line-height: 1.4;
}
.lesson-info p {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.5;
}
.lesson-preview-pill {
  display: inline-block;
  padding: 1px 7px;
  background: var(--accent-dim);
  border: 1px solid var(--border-act);
  border-radius: 99px;
  font-size: 10px;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 4px;
  font-family: 'Inter', sans-serif;
}

/* ==========================================================================
   Bundles Section
   ========================================================================== */
.bundles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 16px;
}
.bundle-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  position: relative;
  overflow: hidden;
}
.bundle-card.featured {
  border-color: var(--border-act);
  background: linear-gradient(145deg, rgba(139,92,246,0.07) 0%, var(--bg-card) 60%);
  box-shadow: 0 0 40px rgba(139,92,246,0.08);
}
.bundle-badge {
  display: inline-flex;
  align-self: flex-start;
  padding: 3px 10px;
  background: var(--accent-dim);
  border: 1px solid var(--border-act);
  border-radius: 99px;
  font-size: 11px;
  font-weight: 600;
  color: var(--accent);
  font-family: 'Inter', sans-serif;
}
.bundle-header h3 {
  font-size: 20px;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 6px;
}
.bundle-header p {
  font-size: 13px;
  color: var(--text-muted);
}
.bundle-includes { display: flex; flex-direction: column; gap: 12px; }
.bundle-include-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
}
.bundle-include-item > i {
  font-size: 16px;
  color: var(--accent);
  margin-top: 2px;
  flex-shrink: 0;
}
.bundle-include-item.muted > i { color: var(--text-muted); }
.bundle-include-item strong {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 3px;
}
.bundle-include-item.muted strong { color: var(--text-secondary); }
.bundle-include-item span {
  font-size: 11.5px;
  color: var(--text-muted);
}
.bundle-pricing {
  display: flex;
  align-items: center;
  gap: 10px;
}
.bundle-original {
  font-size: 14px;
  color: var(--text-muted);
  text-decoration: line-through;
  font-family: 'Inter', sans-serif;
}
.bundle-final {
  font-size: 28px;
  font-weight: 800;
  color: var(--text-primary);
  font-family: 'Inter', sans-serif;
}
.bundle-final.muted { font-size: 16px; color: var(--text-muted); }
.bundle-save {
  padding: 3px 8px;
  background: var(--green-dim);
  border: 1px solid rgba(34,197,94,0.25);
  border-radius: 99px;
  font-size: 11px;
  font-weight: 700;
  color: var(--green);
  font-family: 'Inter', sans-serif;
}
.bundle-locked {
  opacity: 0.55;
}
.bundle-locked-overlay {
  position: absolute;
  top: 18px;
  left: 18px;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 99px;
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
  font-family: 'Inter', sans-serif;
}

/* ==========================================================================
   Dashboard / LMS
   ========================================================================== */
.dashboard-section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 24px;
  min-height: calc(100vh - 60px);
}
.lms-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 16px;
  height: calc(100vh - 140px);
  min-height: 600px;
}
.lms-sidebar {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.sidebar-top {
  padding: 16px 18px;
  border-bottom: 1px solid var(--border);
}
.sidebar-top h3 {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-family: 'Inter', sans-serif;
}
.sidebar-content {
  flex: 1;
  overflow-y: auto;
  padding: 8px 0;
}
.sidebar-stage-group { margin-bottom: 4px; }
.sidebar-stage-title {
  padding: 8px 18px 4px;
  font-size: 11px;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-family: 'Inter', sans-serif;
}
.sidebar-lesson-btn {
  display: block;
  width: 100%;
  text-align: right;
  padding: 8px 18px;
  font-size: 13px;
  color: var(--text-secondary);
  border-radius: 0;
  transition: color var(--fast) var(--ease), background var(--fast) var(--ease);
  line-height: 1.4;
  font-family: var(--font);
  border-left: 2px solid transparent;
}
.sidebar-lesson-btn:hover { background: var(--bg-hover); color: var(--text-primary); }
.sidebar-lesson-btn.active {
  background: var(--accent-dim);
  color: var(--accent);
  border-right: 2px solid var(--accent);
}
.sidebar-empty {
  padding: 24px 18px;
  font-size: 13px;
  color: var(--text-muted);
  text-align: center;
  line-height: 1.6;
}

/* ── Reader ── */
.lms-reader {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.reader-topbar {
  padding: 12px 24px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-shrink: 0;
}
.reader-breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  color: var(--text-muted);
  min-width: 0;
}
.reader-breadcrumb i { font-size: 10px; }
#reader-lesson-label { color: var(--text-secondary); font-weight: 500; }
.reader-controls { display: flex; gap: 6px; }
.reader-ctrl-btn {
  width: 32px;
  height: 32px;
  border-radius: var(--r-sm);
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 12px;
  display: grid;
  place-items: center;
  transition: var(--fast) var(--ease);
}
.reader-ctrl-btn:hover { color: var(--text-primary); border-color: rgba(255,255,255,0.15); }

.reader-body {
  flex: 1;
  overflow-y: auto;
  padding: 32px 40px;
}
.reader-welcome {
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  color: var(--text-muted);
  text-align: center;
}
.welcome-icon {
  width: 60px;
  height: 60px;
  border-radius: var(--r-lg);
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  display: grid;
  place-items: center;
  font-size: 24px;
  color: var(--text-muted);
}
.reader-welcome h3 { font-size: 16px; font-weight: 600; color: var(--text-secondary); }
.reader-welcome p { font-size: 13px; max-width: 280px; }

/* ── Article Content ── */
.reader-article {
  line-height: 1.75;
}
.reader-article h1 {
  font-size: 26px;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 20px;
  letter-spacing: -0.5px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}
.reader-article h2 {
  font-size: 19px;
  font-weight: 700;
  color: var(--text-primary);
  margin: 28px 0 12px;
}
.reader-article h3 {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-secondary);
  margin: 20px 0 10px;
}
.reader-article p { font-size: 14.5px; color: var(--text-secondary); margin-bottom: 14px; }
.reader-article ul, .reader-article ol {
  list-style: none;
  margin: 10px 0 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.reader-article li {
  font-size: 14px;
  color: var(--text-secondary);
  padding-right: 18px;
  position: relative;
}
.reader-article ul li::before {
  content: '▸';
  color: var(--accent);
  position: absolute;
  right: 0;
}
.reader-article blockquote {
  margin: 16px 0;
  padding: 12px 18px;
  background: var(--bg-elevated);
  border-right: 3px solid var(--accent);
  border-radius: 0 var(--r-sm) var(--r-sm) 0;
  font-size: 13.5px;
  color: var(--text-secondary);
  font-style: italic;
}
.reader-article code {
  font-family: var(--mono);
  font-size: 12.5px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  padding: 1px 6px;
  border-radius: 4px;
  color: #a78bfa;
}
.reader-article pre {
  font-family: var(--mono);
  font-size: 12.5px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  padding: 18px;
  border-radius: var(--r-md);
  overflow-x: auto;
  margin: 14px 0;
  color: #94a3b8;
  line-height: 1.7;
}
.reader-article hr {
  border: none;
  border-top: 1px solid var(--border);
  margin: 24px 0;
}

/* ==========================================================================
   Cart Drawer
   ========================================================================== */
.cart-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 200;
  backdrop-filter: blur(3px);
}
.cart-drawer {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: 360px;
  background: var(--bg-card);
  border-right: 1px solid var(--border);
  z-index: 201;
  display: flex;
  flex-direction: column;
  transform: translateX(-100%);
  transition: transform var(--norm) var(--ease);
}
.cart-drawer.open { transform: translateX(0); }
.cart-drawer-top {
  padding: 18px 20px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.cart-drawer-top h3 {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 8px;
}
.cart-drawer-top h3 i { color: var(--accent); }
.cart-items { flex: 1; overflow-y: auto; padding: 10px 0; }
.cart-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 48px 20px;
  color: var(--text-muted);
  font-size: 14px;
}
.cart-empty i { font-size: 32px; opacity: 0.4; }
.cart-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 20px;
  border-bottom: 1px solid var(--border);
}
.cart-item-info { flex: 1; min-width: 0; }
.cart-item-info h4 {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 3px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.cart-item-info span {
  font-size: 12px;
  color: var(--text-muted);
  font-family: 'Inter', sans-serif;
}
.remove-item-btn {
  width: 28px;
  height: 28px;
  border-radius: var(--r-sm);
  border: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 11px;
  display: grid;
  place-items: center;
  transition: var(--fast) var(--ease);
  flex-shrink: 0;
}
.remove-item-btn:hover { background: var(--red-dim); border-color: rgba(239,68,68,0.3); color: var(--red); }
.cart-footer {
  padding: 16px 20px;
  border-top: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.cart-summary-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  color: var(--text-secondary);
}
.cart-summary-row.total-row {
  font-size: 15px;
  color: var(--text-primary);
  padding-top: 8px;
  border-top: 1px solid var(--border);
}
.cart-summary-row.total-row strong { font-family: 'Inter', sans-serif; }
.discount-val { color: var(--green); font-weight: 600; }

/* ==========================================================================
   Modals
   ========================================================================== */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.65);
  backdrop-filter: blur(6px);
  z-index: 300;
  display: grid;
  place-items: center;
  padding: 24px;
}
.modal-box {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  width: 100%;
  max-width: 480px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 32px 80px rgba(0,0,0,0.5);
}
.modal-header {
  padding: 18px 24px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.modal-header h3 {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 8px;
}
.modal-header h3 i { color: var(--accent); }
.modal-body { padding: 24px; display: flex; flex-direction: column; gap: 20px; }

.invoice-box {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 16px;
}
.invoice-label {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 12px;
  font-family: 'Inter', sans-serif;
}
.invoice-item-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  color: var(--text-secondary);
  padding: 5px 0;
  border-bottom: 1px solid var(--border);
}
.invoice-item-row:last-of-type { border-bottom: none; }
.invoice-item-row.discount-line { color: var(--green); }
.invoice-total-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 14px;
  color: var(--text-primary);
  font-weight: 600;
  padding-top: 10px;
  border-top: 1px solid var(--border);
  margin-top: 8px;
}
.invoice-total-row strong { font-family: 'Inter', sans-serif; font-size: 18px; }

/* ── Form ── */
.form-field { display: flex; flex-direction: column; gap: 6px; }
.form-field label { font-size: 12.5px; font-weight: 600; color: var(--text-secondary); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.field-input {
  width: 100%;
  padding: 10px 12px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  color: var(--text-primary);
  font-size: 14px;
  font-family: var(--font);
  outline: none;
  transition: border-color var(--fast) var(--ease), box-shadow var(--fast) var(--ease);
  direction: ltr;
  text-align: left;
}
.field-input.mono { font-family: var(--mono); letter-spacing: 0.1em; }
.field-input::placeholder { color: var(--text-muted); }
.field-input:focus {
  border-color: var(--border-act);
  box-shadow: 0 0 0 3px var(--accent-glow);
}
.field-error {
  font-size: 11.5px;
  color: var(--red);
  min-height: 16px;
  display: block;
}
.card-input-wrapper { position: relative; }
.card-input-wrapper .field-input { padding-left: 44px; }
.card-icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 20px;
  color: var(--accent);
  pointer-events: none;
}
.submit-btn { margin-top: 4px; }
.payment-note {
  font-size: 11.5px;
  color: var(--text-muted);
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}
.payment-note i { color: var(--green); }

/* ── Success Modal ── */
.success-modal-box {
  text-align: center;
  padding: 40px;
}
.success-icon {
  font-size: 48px;
  color: var(--green);
  margin-bottom: 16px;
}
.success-modal-box h3 {
  font-size: 20px;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 8px;
}
.success-modal-box p {
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 20px;
}
.license-box {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 14px;
  margin-bottom: 20px;
}
.license-box span {
  display: block;
  font-size: 11px;
  color: var(--text-muted);
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-family: 'Inter', sans-serif;
}
.license-box code {
  font-family: var(--mono);
  font-size: 14px;
  color: var(--accent);
  letter-spacing: 0.1em;
}

/* ── Icon Button ── */
.icon-btn {
  width: 32px;
  height: 32px;
  border-radius: var(--r-sm);
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 13px;
  display: grid;
  place-items: center;
  transition: var(--fast) var(--ease);
}
.icon-btn:hover { color: var(--text-primary); border-color: rgba(255,255,255,0.15); }

/* ==========================================================================
   Toast
   ========================================================================== */
.toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 500;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 12px 18px;
  font-size: 13.5px;
  color: var(--text-primary);
  box-shadow: 0 8px 32px rgba(0,0,0,0.4);
  max-width: 320px;
  display: flex;
  align-items: center;
  gap: 10px;
  animation: slideUp var(--norm) var(--ease);
}
.toast.success { border-color: rgba(34,197,94,0.3); }
.toast.error   { border-color: rgba(239,68,68,0.3); }
@keyframes slideUp {
  from { transform: translateY(20px); opacity: 0; }
  to   { transform: translateY(0);    opacity: 1; }
}

/* ==========================================================================
   Section Eyebrow
   ========================================================================== */
.section-eyebrow {
  font-size: 10.5px;
  font-weight: 700;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 1.2px;
  font-family: 'Inter', sans-serif;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.section-eyebrow::before {
  content: '';
  display: block;
  width: 16px;
  height: 2px;
  background: var(--accent);
  border-radius: 99px;
}

/* ==========================================================================
   Free Badge
   ========================================================================== */
.badge-free {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  background: linear-gradient(135deg, rgba(139,92,246,0.2), rgba(109,40,217,0.1));
  border: 1px solid rgba(139,92,246,0.4);
  border-radius: 99px;
  font-size: 11px;
  font-weight: 700;
  color: var(--accent2);
  font-family: 'Inter', sans-serif;
  letter-spacing: 0.3px;
}

/* ==========================================================================
   Extras Section
   ========================================================================== */
.extras-section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 72px 24px;
}
.extras-grid {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-top: 40px;
  max-width: 860px;
  margin-left: auto;
  margin-right: auto;
}
.extra-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  padding: 28px 32px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  position: relative;
  overflow: hidden;
  transition: border-color var(--norm) var(--ease),
              transform var(--norm) var(--ease),
              box-shadow var(--norm) var(--ease);
}
.extra-card::before {
  content: '';
  position: absolute;
  top: -60px; right: -60px;
  width: 220px; height: 220px;
  background: radial-gradient(circle, rgba(139,92,246,0.1) 0%, transparent 65%);
  pointer-events: none;
}
.extra-card:hover {
  border-color: var(--border-act);
  transform: translateY(-3px);
  box-shadow: 0 16px 48px rgba(0,0,0,0.4), 0 0 0 1px rgba(139,92,246,0.15);
}
/* Premium card — منهج العقل الهجومي */
.extra-card-premium {
  border-color: rgba(124,58,237,0.45);
  background: linear-gradient(145deg, rgba(124,58,237,0.07) 0%, var(--bg-card) 60%);
  order: -1; /* يظهر أولاً */
}
.extra-card-premium::before {
  background: radial-gradient(circle, rgba(124,58,237,0.18) 0%, transparent 65%);
  width: 350px; height: 350px;
  top: -80px; right: -80px;
}
.extra-card-premium:hover {
  border-color: rgba(124,58,237,0.7);
  box-shadow: 0 20px 60px rgba(0,0,0,0.5), 0 0 0 1px rgba(124,58,237,0.3);
}
.extra-card-badge {
  position: absolute;
  top: 16px; left: 16px;
  background: linear-gradient(135deg, #7c3aed, #4f46e5);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  padding: 4px 12px;
  border-radius: 100px;
}
/* في premium: layout أفقي للمحتوى الداخلي */
.extra-card-premium .extra-card-top {
  gap: 20px;
}
.extra-card-premium .extra-topics {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.extra-card-top {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}
.extra-icon {
  flex-shrink: 0;
  width: 48px; height: 48px;
  border-radius: var(--r-lg);
  background: var(--accent-dim);
  border: 1px solid var(--border-act);
  display: grid;
  place-items: center;
  font-size: 20px;
  color: var(--accent);
}
.extra-meta { flex: 1; }
.extra-meta h3 {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 5px;
  line-height: 1.35;
}
.extra-meta p {
  font-size: 12.5px;
  color: var(--text-muted);
  line-height: 1.55;
}
.extra-stats {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 10px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 99px;
  font-size: 11px;
  font-weight: 600;
  color: var(--text-secondary);
  font-family: 'Inter', sans-serif;
  margin-top: 8px;
}
.extra-topics {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.extra-topic {
  padding: 2px 8px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 4px;
  font-size: 10.5px;
  color: var(--text-secondary);
  font-family: 'Inter', sans-serif;
  font-weight: 500;
}
.extra-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 16px;
  border-top: 1px solid var(--border);
  gap: 12px;
}
.extra-price {
  display: flex;
  align-items: baseline;
  gap: 2px;
  font-family: 'Inter', sans-serif;
}
.extra-price-sym {
  font-size: 14px;
  font-weight: 700;
  color: var(--accent);
}
.extra-price-num {
  font-size: 28px;
  font-weight: 800;
  color: var(--accent);
  line-height: 1;
}
.extra-price-note {
  font-size: 10px;
  color: var(--text-muted);
  font-family: 'Inter', sans-serif;
  margin-right: 4px;
  font-weight: 400;
  align-self: flex-end;
  margin-bottom: 2px;
}
.stage-purchase-btn.in-cart {
  background: var(--green-dim);
  border-color: rgba(16,185,129,0.3);
  color: var(--green);
}

/* ==========================================================================
   Bundles Overhaul
   ========================================================================== */
.bundles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 16px;
}

/* ── Responsive Extras ── */
@media (max-width: 640px) {
  .extras-grid { grid-template-columns: 1fr; }
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  border-top: 1px solid var(--border);
  margin-top: 60px;
}
.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 24px;
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 700;
  color: var(--text-secondary);
  font-family: 'Inter', sans-serif;
}
.footer-brand i { color: var(--accent); }
.footer-copy {
  flex: 1;
  font-size: 12px;
  color: var(--text-muted);
  text-align: center;
}
.footer-badges {
  display: flex;
  gap: 14px;
  font-size: 12px;
  color: var(--text-muted);
}
.footer-badges span { display: flex; align-items: center; gap: 5px; }
.footer-badges i { color: var(--green); }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 900px) {
  .hero-section { grid-template-columns: 1fr; }
  .hero-visual { display: none; }
  .lms-layout { grid-template-columns: 1fr; grid-template-rows: 220px 1fr; }
  .lms-sidebar { height: 220px; }
}
@media (max-width: 640px) {
  .header-inner { gap: 16px; }
  .main-nav { display: none; }
  .hero-section { padding: 48px 16px 40px; }
  .curriculum-section, .bundles-section { padding: 48px 16px; }
  .bundles-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .reader-body { padding: 20px 18px; }
  .cart-drawer { width: 100%; }
}

/* ==========================================================================
   Hero Wrapper & 3D Grid
   ========================================================================== */
.hero-wrapper {
  position: relative;
  overflow: hidden;
}

/* Scrolling 3D perspective grid floor */
.grid-3d {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 340px;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}
.grid-3d::before {
  content: '';
  position: absolute;
  bottom: -40px;
  left: -60%;
  width: 220%;
  height: 480px;
  background-image:
    linear-gradient(rgba(139,92,246,0.22) 1px, transparent 1px),
    linear-gradient(90deg, rgba(139,92,246,0.22) 1px, transparent 1px);
  background-size: 64px 64px;
  transform: perspective(380px) rotateX(72deg);
  transform-origin: 50% 100%;
  animation: grid-scroll 4s linear infinite;
  mask-image: linear-gradient(to top, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0.3) 50%, transparent 100%);
  -webkit-mask-image: linear-gradient(to top, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0.3) 50%, transparent 100%);
}
.grid-3d::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 80px;
  background: linear-gradient(transparent, var(--bg));
  pointer-events: none;
}

@keyframes grid-scroll {
  from { background-position: 0 0; }
  to   { background-position: 0 64px; }
}

/* Hero section sits above the grid */
.hero-section { position: relative; z-index: 1; }

/* ==========================================================================
   Floating Hacker Symbols
   ========================================================================== */
.hero-symbols {
  position: fixed;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}
.hero-symbols .sym {
  position: absolute;
  font-family: var(--mono);
  color: rgba(139,92,246,0.18);
  font-size: 13px;
  font-weight: 500;
  animation: float-sym linear infinite;
  white-space: nowrap;
  user-select: none;
}
@keyframes float-sym {
  0%   { transform: translateY(105vh) rotate(0deg); opacity: 0; }
  5%   { opacity: 1; }
  90%  { opacity: 0.8; }
  100% { transform: translateY(-60px) rotate(10deg); opacity: 0; }
}

/* ==========================================================================
   Glitch Effect on Hero Title
   ========================================================================== */
@keyframes glitch-clip {
  0%,  87%, 100% { clip-path: none; transform: none; text-shadow: none; }
  88% {
    clip-path: polygon(0 8%, 100% 8%, 100% 22%, 0 22%);
    transform: translate(-5px, 0);
    text-shadow: 5px 0 #f43f5e;
  }
  90% {
    clip-path: polygon(0 55%, 100% 55%, 100% 75%, 0 75%);
    transform: translate(4px, 1px);
    text-shadow: -4px 0 #818cf8;
  }
  92% {
    clip-path: polygon(0 30%, 100% 30%, 100% 48%, 0 48%);
    transform: translate(-2px, -1px);
    text-shadow: 3px 0 #f43f5e;
  }
  94% { clip-path: none; transform: none; text-shadow: none; }
}

.hero-title.glitch {
  animation: glitch-clip 9s steps(1) infinite;
}

/* ==========================================================================
   Hero Feature Pills & Skill Badges
   ========================================================================== */
.hero-features {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 20px;
}
.feature-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 99px;
  font-size: 12px;
  font-weight: 500;
  color: var(--text-secondary);
  font-family: 'Inter', sans-serif;
}
.feature-pill i { color: var(--accent); font-size: 11px; }

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
  justify-content: center;
}
.skill-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  background: var(--bg-elevated);
  border: 1px solid var(--border-act);
  border-radius: var(--r-md);
  font-size: 12.5px;
  font-weight: 600;
  color: var(--accent2);
  font-family: 'Inter', sans-serif;
  transition: background var(--fast) var(--ease), transform var(--fast) var(--ease);
}
.skill-badge:hover {
  background: var(--accent-dim);
  transform: translateY(-2px);
}

/* ==========================================================================
   Starter Section — نقطة الانطلاق
   ========================================================================== */
.starter-section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 72px 24px;
  border-top: 1px solid var(--border);
}

.starter-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(310px, 1fr));
  gap: 16px;
  margin-bottom: 32px;
}

.starter-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  position: relative;
  overflow: hidden;
  transition: border-color var(--norm) var(--ease), transform var(--norm) var(--ease),
              box-shadow var(--norm) var(--ease);
  cursor: default;
}
.clickable-starter {
  cursor: pointer;
}
.clickable-starter:hover {
  border-color: rgba(139,92,246,0.45);
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(139,92,246,0.18);
}
.starter-card::before {
  content: '';
  position: absolute;
  top: -40px;
  right: -40px;
  width: 150px;
  height: 150px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--card-glow, rgba(139,92,246,0.12)) 0%, transparent 70%);
  pointer-events: none;
}
.starter-card:hover {
  border-color: rgba(139,92,246,0.28);
  transform: translateY(-3px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.35);
}

.starter-card-top {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}
.starter-icon {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: var(--r-lg);
  display: grid;
  place-items: center;
  font-size: 18px;
  border: 1px solid;
}
.starter-card-top h3 {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 5px;
  line-height: 1.35;
}
.starter-card-top p {
  font-size: 12.5px;
  color: var(--text-muted);
  line-height: 1.55;
}
.starter-topics {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.starter-topic {
  padding: 3px 9px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 4px;
  font-size: 11px;
  color: var(--text-secondary);
  font-family: 'Inter', sans-serif;
  font-weight: 500;
}
.starter-free-badge {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 10px;
  background: rgba(16,185,129,0.1);
  border: 1px solid rgba(16,185,129,0.25);
  border-radius: 99px;
  font-size: 10.5px;
  font-weight: 700;
  color: var(--green);
  font-family: 'Inter', sans-serif;
}

/* VS Code Card */
.vscode-card {
  background: var(--bg-card);
  border: 1px solid var(--border-act);
  border-radius: var(--r-xl);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  position: relative;
  overflow: hidden;
}
.vscode-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(139,92,246,0.06) 0%, transparent 60%);
  pointer-events: none;
}
.vscode-card-top {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}
.vscode-icon-wrap {
  flex-shrink: 0;
  width: 52px;
  height: 52px;
  border-radius: var(--r-lg);
  background: var(--accent-dim);
  border: 1px solid var(--border-act);
  display: grid;
  place-items: center;
  font-size: 22px;
  color: var(--accent);
}
.vscode-card-top h3 {
  font-size: 17px;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 6px;
}
.vscode-card-top p {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.6;
}
.vscode-steps {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 12px;
}
.vs-step {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  transition: border-color 0.18s, box-shadow 0.18s, transform 0.18s;
}
.clickable-step {
  cursor: pointer;
}
.clickable-step:hover {
  border-color: rgba(139,92,246,0.4);
  box-shadow: 0 4px 20px rgba(139,92,246,0.12);
  transform: translateY(-2px);
}
.vs-step-arrow {
  margin-right: auto;
  margin-top: 4px;
  color: var(--text-muted);
  font-size: 0.75rem;
  opacity: 0;
  transition: opacity 0.18s, color 0.18s;
}
.clickable-step:hover .vs-step-arrow {
  opacity: 1;
  color: var(--accent);
}
.vs-num {
  flex-shrink: 0;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--accent-dim);
  border: 1px solid var(--border-act);
  display: grid;
  place-items: center;
  font-size: 12px;
  font-weight: 700;
  color: var(--accent);
  font-family: 'Inter', sans-serif;
}
.vs-step strong {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 3px;
}
.vs-step span {
  font-size: 11.5px;
  color: var(--text-muted);
  line-height: 1.5;
}
.vscode-note {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  background: rgba(139,92,246,0.07);
  border: 1px solid rgba(139,92,246,0.2);
  border-radius: var(--r-md);
  font-size: 13px;
  color: var(--text-secondary);
}
.vscode-note i { color: var(--accent); flex-shrink: 0; }

/* ==========================================================================
   Language Picker — المرحلة 4
   ========================================================================== */
.lang-picker-section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px 72px;
}

.lang-picker-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 12px;
  margin-bottom: 20px;
}

.lang-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 20px 18px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  transition: border-color var(--norm) var(--ease), transform var(--norm) var(--ease),
              box-shadow var(--norm) var(--ease);
  position: relative;
  overflow: hidden;
}
.lang-card::before {
  content: '';
  position: absolute;
  bottom: -20px;
  left: -20px;
  width: 90px;
  height: 90px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--lang-color, rgba(139,92,246,0.15)) 0%, transparent 70%);
  pointer-events: none;
}
.lang-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 32px rgba(0,0,0,0.3);
  border-color: rgba(139,92,246,0.3);
}
.lang-card.in-cart { border-color: rgba(16,185,129,0.35); }

.lang-card-icon {
  font-size: 22px;
}
.lang-card-info { flex: 1; }
.lang-card-info strong {
  display: block;
  font-size: 14px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 3px;
}
.lang-card-info span {
  font-size: 11.5px;
  color: var(--text-muted);
  font-family: 'Inter', sans-serif;
}
.lang-card-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  margin-top: 4px;
}
.lang-price {
  font-size: 17px;
  font-weight: 800;
  color: var(--text-primary);
  font-family: 'Inter', sans-serif;
}
.lang-add-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 12px;
  background: var(--accent-dim);
  border: 1px solid var(--border-act);
  color: var(--accent);
  font-size: 12px;
  font-weight: 600;
  border-radius: var(--r-sm);
  transition: var(--fast) var(--ease);
  font-family: var(--font);
}
.lang-add-btn:hover { background: var(--accent); color: white; border-color: var(--accent); }
.lang-add-btn.in-cart {
  background: var(--green-dim);
  border-color: rgba(16,185,129,0.3);
  color: var(--green);
}

/* Language bundle row */
.lang-bundle-row { margin-top: 8px; }
.lang-bundle-card {
  background: var(--bg-card);
  border: 2px solid var(--border-act);
  border-radius: var(--r-xl);
  padding: 22px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  background: linear-gradient(135deg, rgba(139,92,246,0.08) 0%, var(--bg-card) 60%);
}
.lang-bundle-info {
  display: flex;
  align-items: center;
  gap: 14px;
}
.lang-bundle-info > i {
  font-size: 24px;
  color: var(--accent);
  flex-shrink: 0;
}
.lang-bundle-info strong {
  display: block;
  font-size: 15px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 4px;
}
.lang-bundle-info span {
  font-size: 12.5px;
  color: var(--text-muted);
}
.lang-bundle-price {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-shrink: 0;
}
.lang-bundle-original {
  font-size: 14px;
  color: var(--text-muted);
  text-decoration: line-through;
  font-family: 'Inter', sans-serif;
}
.lang-bundle-final {
  font-size: 26px;
  font-weight: 800;
  color: var(--accent);
  font-family: 'Inter', sans-serif;
}

/* ==========================================================================
   Stage Free Download Badge
   ========================================================================== */
.stage-download-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 13px;
  background: rgba(16,185,129,0.1);
  border: 1px solid rgba(16,185,129,0.3);
  color: var(--green);
  font-size: 12.5px;
  font-weight: 600;
  border-radius: var(--r-md);
  transition: var(--fast) var(--ease);
  font-family: var(--font);
}
.stage-download-btn:hover {
  background: rgba(16,185,129,0.2);
  border-color: rgba(16,185,129,0.5);
}

/* Reader download ctrl */
.reader-ctrl-btn.download-active { color: var(--green); }

/* ── Extras: Benefit + Free Preview ────────────────────────── */
.extra-recommend {
  background: rgba(139,92,246,0.06);
  border: 1px solid rgba(139,92,246,0.18);
  border-right: 3px solid var(--accent);
  border-radius: 8px;
  padding: 9px 14px;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.72);
  margin: 10px 0 0;
  line-height: 1.55;
  direction: rtl;
}
.extra-recommend i { margin-left: 7px; color: #fbbf24; font-size: 0.75rem; }

.extra-benefit {
  background: rgba(16,185,129,0.07);
  border: 1px solid rgba(16,185,129,0.2);
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 0.82rem;
  color: #6ee7b7;
  margin: 10px 0 0;
  line-height: 1.55;
}
.extra-benefit i { margin-left: 6px; color: #10b981; }

.extra-free-preview {
  margin: 18px 0 0;
  border-top: 1px solid rgba(139,92,246,0.15);
  padding-top: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.extra-preview-label {
  font-size: 0.75rem;
  color: #a78bfa;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 7px;
}
.extra-preview-item {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 0;
  background: rgba(139,92,246,0.04);
  border: 1px solid rgba(139,92,246,0.12);
  border-radius: 10px;
  padding: 14px 16px;
}
.extra-preview-num {
  font-family: var(--mono);
  font-size: 0.7rem;
  color: rgba(139,92,246,0.7);
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  white-space: nowrap;
}
.extra-preview-body strong {
  display: block;
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 6px;
  line-height: 1.4;
}
.extra-preview-body p {
  font-size: 0.82rem;
  color: var(--text-secondary);
  margin: 0 0 10px;
  line-height: 1.65;
}
.extra-preview-body p:empty { display: none; }
/* ── Code block — terminal style ── */
.extra-preview-cmd {
  background: #060610;
  border: 1px solid rgba(139,92,246,0.2);
  border-radius: 8px;
  padding: 0;
  margin: 0;
  overflow: hidden;
  position: relative;
}
.extra-preview-cmd::before {
  content: '● ● ●';
  display: block;
  padding: 7px 12px;
  background: rgba(139,92,246,0.08);
  border-bottom: 1px solid rgba(139,92,246,0.15);
  font-size: 0.6rem;
  color: rgba(139,92,246,0.5);
  letter-spacing: 3px;
}
.extra-preview-cmd code {
  display: block;
  font-family: var(--mono);
  font-size: 0.76rem;
  color: #a3e635;
  white-space: pre;
  overflow-x: auto;
  padding: 14px 16px;
  line-height: 1.7;
}
/* Comment lines in green code */
.extra-preview-cmd code .cm { color: #4a5568; font-style: italic; }
.extra-preview-fade {
  text-align: center;
  padding: 8px 0 4px;
  font-size: 0.78rem;
  color: var(--muted);
  opacity: 0.7;
  border-top: 1px dashed rgba(139,92,246,0.15);
  margin-top: 4px;
}
.extra-card .extra-buy-btn.in-cart {
  background: rgba(16,185,129,0.1);
  border-color: rgba(16,185,129,0.3);
  color: #6ee7b7;
  cursor: default;
}
.extra-dl-btn {
  background: linear-gradient(135deg, #059669, #10b981) !important;
  border: none !important;
}
.extra-dl-btn:hover { opacity: 0.9; }

@media (max-width: 900px) {
  .starter-grid { grid-template-columns: 1fr 1fr; }
  .lang-picker-grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); }
  .lang-bundle-card { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 640px) {
  .starter-section { padding: 48px 16px; }
  .lang-picker-section { padding: 0 16px 48px; }
  .starter-grid { grid-template-columns: 1fr; }
  .vscode-steps { grid-template-columns: 1fr; }
  .hero-features { display: none; }
}

/* ══════════════════════════════════════════════════════════
   Lesson Reader Modal
══════════════════════════════════════════════════════════ */
.lr-overlay {
  position: fixed; inset: 0; z-index: 2000;
  background: rgba(0,0,0,0.85);
  display: flex; align-items: stretch; justify-content: center;
  backdrop-filter: blur(6px);
}
.lr-overlay.hidden { display: none; }

.lr-container {
  display: flex;
  width: 100%; max-width: 1320px;
  height: 100vh;
  background: #0f0f18;
  border: 1px solid rgba(139,92,246,0.2);
}

/* Sidebar */
.lr-sidebar {
  width: 300px; min-width: 220px;
  background: #0a0a12;
  border-left: 1px solid rgba(139,92,246,0.15);
  display: flex; flex-direction: column;
  overflow: hidden;
}
.lr-sidebar-header {
  padding: 16px;
  border-bottom: 1px solid rgba(139,92,246,0.15);
  display: flex; align-items: center; justify-content: space-between;
}
.lr-sidebar-logo {
  display: flex; align-items: center; gap: 8px;
  color: #a78bfa; font-weight: 700; font-size: 0.88rem;
}
.lr-sidebar-logo i { color: #8b5cf6; }
.lr-close-btn {
  background: none; border: none; color: var(--muted);
  font-size: 1.1rem; cursor: pointer; padding: 4px 8px;
  border-radius: 4px; transition: color 0.2s, background 0.2s;
}
.lr-close-btn:hover { color: #ef4444; background: rgba(239,68,68,0.1); }

.lr-lesson-list { flex: 1; overflow-y: auto; padding: 8px 0; }
.lr-lesson-list::-webkit-scrollbar { width: 4px; }
.lr-lesson-list::-webkit-scrollbar-thumb { background: rgba(139,92,246,0.3); border-radius: 2px; }

.lr-list-item {
  width: 100%; text-align: right; background: none; border: none;
  padding: 10px 16px; cursor: pointer; display: flex;
  align-items: flex-start; gap: 10px;
  border-bottom: 1px solid rgba(139,92,246,0.06);
  transition: background 0.15s;
}
.lr-list-item:hover { background: rgba(139,92,246,0.07); }
.lr-list-item.active {
  background: rgba(139,92,246,0.14);
  border-right: 3px solid #8b5cf6;
}
.lr-list-num {
  font-family: var(--mono); font-size: 0.72rem;
  color: #8b5cf6; min-width: 30px; padding-top: 2px;
}
.lr-list-title {
  font-size: 0.81rem; color: var(--text); line-height: 1.45; text-align: right;
}
.lr-list-item.active .lr-list-title { color: #c4b5fd; }

/* Main */
.lr-main { flex: 1; display: flex; flex-direction: column; overflow: hidden; }

/* Topbar */
.lr-topbar {
  padding: 12px 24px;
  border-bottom: 1px solid rgba(139,92,246,0.15);
  display: flex; align-items: center; justify-content: space-between;
  background: rgba(139,92,246,0.04); flex-shrink: 0;
}
.lr-topbar-nav { display: flex; align-items: center; gap: 12px; }
.lr-nav-btn {
  background: rgba(139,92,246,0.12); border: 1px solid rgba(139,92,246,0.25);
  color: #a78bfa; padding: 6px 14px; border-radius: 6px;
  cursor: pointer; font-size: 0.83rem; font-family: var(--sans);
  transition: all 0.2s;
}
.lr-nav-btn:hover:not(:disabled) { background: rgba(139,92,246,0.22); }
.lr-nav-btn:disabled { opacity: 0.3; cursor: not-allowed; }
.lr-lesson-badge {
  background: rgba(139,92,246,0.15); border: 1px solid rgba(139,92,246,0.3);
  color: #c4b5fd; font-family: var(--mono);
  padding: 4px 12px; border-radius: 20px; font-size: 0.82rem;
}
.lr-topbar-actions { display: flex; align-items: center; gap: 8px; }
.lr-action-btn {
  background: rgba(139,92,246,0.08); border: 1px solid rgba(139,92,246,0.2);
  color: var(--muted); padding: 6px 12px; border-radius: 6px;
  cursor: pointer; font-size: 0.82rem; font-family: var(--sans);
  transition: all 0.2s; display: flex; align-items: center; gap: 6px;
}
.lr-action-btn:hover { background: rgba(139,92,246,0.16); color: #a78bfa; }
.lr-dl  { color: #6ee7b7; border-color: rgba(16,185,129,0.3); }
.lr-dl:hover  { background: rgba(16,185,129,0.12) !important; color: #6ee7b7 !important; }
.lr-pdf { color: #f87171; border-color: rgba(239,68,68,0.3); }
.lr-pdf:hover { background: rgba(239,68,68,0.12) !important; color: #f87171 !important; }

/* Content area */
.lr-content { flex: 1; overflow-y: auto; padding: 32px 48px; color: var(--text); }
.lr-content::-webkit-scrollbar { width: 6px; }
.lr-content::-webkit-scrollbar-thumb { background: rgba(139,92,246,0.25); border-radius: 3px; }

.lr-loading, .lr-welcome, .lr-locked {
  display: flex; flex-direction: column; align-items: center;
  justify-content: center; gap: 16px; height: 100%;
  color: var(--muted); text-align: center;
}
.lr-loading i, .lr-welcome i { font-size: 2.5rem; color: #8b5cf6; }
.lr-locked i { font-size: 3rem; color: #f59e0b; }
.lr-locked h3 { color: var(--text); font-size: 1.3rem; }

/* Article content */
.lr-article { max-width: 820px; margin: 0 auto; }
.lr-article h1 { font-size: 1.8rem; color: #c4b5fd; border-bottom: 2px solid rgba(139,92,246,0.3); padding-bottom: 12px; margin-bottom: 24px; }
.lr-article h2 { font-size: 1.35rem; color: #a78bfa; margin: 32px 0 14px; }
.lr-article h3 { font-size: 1.1rem; color: #8b5cf6; margin: 22px 0 10px; }
.lr-article h4 { font-size: 0.95rem; color: #7c3aed; margin: 16px 0 8px; text-transform: uppercase; letter-spacing: 0.05em; }
.lr-article p  { line-height: 1.8; color: #d1d5db; margin-bottom: 14px; }
.lr-article ul { padding-right: 20px; margin-bottom: 14px; }
.lr-article li { line-height: 1.7; color: #d1d5db; margin-bottom: 6px; }
.lr-article li::marker { color: #8b5cf6; }
.lr-article hr { border: none; border-top: 1px solid rgba(139,92,246,0.2); margin: 28px 0; }
.lr-article blockquote {
  border-right: 3px solid #8b5cf6;
  background: rgba(139,92,246,0.07);
  padding: 12px 16px; border-radius: 0 6px 6px 0;
  color: #c4b5fd; margin: 16px 0; font-style: italic;
}
.lr-article strong { color: #e2e8f0; font-weight: 700; }
.lr-article em { color: #a78bfa; }

.lr-article .inline-code, .lr-article code:not(.hljs) {
  background: rgba(139,92,246,0.12); border: 1px solid rgba(139,92,246,0.2);
  border-radius: 4px; padding: 1px 6px;
  font-family: var(--mono); font-size: 0.87em; color: #a3e635;
}

/* Fenced code blocks */
.md-code-block {
  position: relative; margin: 18px 0;
  border-radius: 10px; overflow: hidden;
  border: 1px solid rgba(139,92,246,0.2);
  box-shadow: 0 4px 20px rgba(0,0,0,0.4);
}
.md-code-lang {
  background: rgba(139,92,246,0.15); color: #a78bfa;
  font-family: var(--mono); font-size: 0.72rem; padding: 5px 14px;
  border-bottom: 1px solid rgba(139,92,246,0.15);
  letter-spacing: 0.08em; text-transform: uppercase;
}
.md-copy-btn {
  position: absolute; top: 6px; left: 10px;
  background: rgba(139,92,246,0.2); border: 1px solid rgba(139,92,246,0.3);
  color: #a78bfa; padding: 3px 10px; border-radius: 4px;
  font-size: 0.72rem; cursor: pointer; font-family: var(--sans);
  transition: all 0.2s; z-index: 2;
}
.md-copy-btn:hover { background: rgba(139,92,246,0.4); }
.md-code-block pre {
  margin: 0; padding: 16px 18px; background: #0d1117 !important;
  overflow-x: auto; font-size: 0.85rem; line-height: 1.6;
}
.md-code-block pre code {
  font-family: var(--mono) !important; background: none !important;
  border: none !important; padding: 0 !important;
}

/* Clickable lesson rows */
.lesson-row.clickable-lesson { cursor: pointer; transition: background 0.15s, border-color 0.15s; }
.lesson-row.clickable-lesson:hover { background: rgba(139,92,246,0.08); border-color: rgba(139,92,246,0.25); }
.lesson-read-icon {
  color: #8b5cf6; font-size: 0.85rem; opacity: 0;
  transition: opacity 0.2s; margin-right: auto;
}
.lesson-row.clickable-lesson:hover .lesson-read-icon { opacity: 1; }
.lesson-free-pill {
  display: inline-flex; align-items: center; gap: 4px;
  background: rgba(16,185,129,0.1); border: 1px solid rgba(16,185,129,0.25);
  color: #6ee7b7; font-size: 0.72rem; padding: 2px 8px;
  border-radius: 12px; margin-bottom: 4px;
}
.hljs { background: #0d1117 !important; padding: 0 !important; }
mark.term {
  background: rgba(139,92,246,0.18); color: #a78bfa;
  padding: 1px 4px; border-radius: 3px;
  font-family: var(--mono); font-size: 0.92em;
}

@media (max-width: 768px) {
  .lr-sidebar { width: 240px; min-width: 180px; }
  .lr-content { padding: 20px 16px; }
  .lr-topbar { padding: 10px 14px; }
}
@media (max-width: 560px) {
  .lr-sidebar { display: none; }
  .lr-content { padding: 16px 12px; }
}

/* ═══════════════════════════════════════════════════════════════════════════
   ATLAS APPS SECTION
══════════════════════════════════════════════════════════════════════════ */

.atlas-section {
  padding: 100px 0 80px;
  background: linear-gradient(180deg, #06070d 0%, #090b12 50%, #06070d 100%);
  position: relative;
  overflow: hidden;
}
.atlas-section::before {
  content: '';
  position: absolute;
  top: 0; left: 50%; transform: translateX(-50%);
  width: 800px; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(139,92,246,.5), transparent);
}

.text-gradient-atlas {
  background: linear-gradient(135deg, #8b5cf6, #06b6d4, #ec4899);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Req bar */
.atlas-req-bar {
  display: flex; flex-wrap: wrap; gap: 12px;
  justify-content: center; margin-top: 18px;
}
.atlas-req-bar span {
  display: flex; align-items: center; gap: 7px;
  font-size: .78rem; color: var(--muted);
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.07);
  border-radius: 20px; padding: 5px 14px;
}

/* Filter Tabs */
.atlas-filters {
  display: flex; flex-wrap: wrap; gap: 8px;
  justify-content: center; margin: 40px 0 32px;
}
.atlas-filter-btn {
  padding: 7px 18px; border-radius: 20px; border: 1px solid rgba(255,255,255,.1);
  background: rgba(255,255,255,.04); color: var(--muted);
  font-size: .82rem; cursor: pointer; transition: all .2s;
  font-family: var(--sans);
}
.atlas-filter-btn:hover { border-color: rgba(139,92,246,.4); color: var(--text); }
.atlas-filter-btn.active {
  background: rgba(139,92,246,.15); border-color: rgba(139,92,246,.5);
  color: #c4b5fd; font-weight: 600;
}

/* Cards Grid */
.atlas-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 20px;
}

/* Card */
.atlas-card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  display: flex; flex-direction: column;
  transition: transform .25s, box-shadow .25s, border-color .25s;
}
.atlas-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 50px rgba(0,0,0,.5);
  border-color: rgba(139,92,246,.35);
}
.atlas-bundle-card {
  border-color: rgba(139,92,246,.4);
  box-shadow: 0 0 30px rgba(139,92,246,.12);
  grid-column: 1 / -1;
}

/* Card Header (gradient bar) */
.atlas-card-header {
  position: relative;
  padding: 22px 20px 18px;
  display: flex; align-items: flex-start; gap: 14px;
  min-height: 90px;
}
.atlas-card-icon {
  font-size: 2rem; line-height: 1; flex-shrink: 0;
  filter: drop-shadow(0 2px 8px rgba(0,0,0,.4));
}
.atlas-card-title-block { flex: 1; }
.atlas-card-name {
  font-size: 1.05rem; font-weight: 700;
  color: #fff; margin: 0 0 3px; text-shadow: 0 1px 4px rgba(0,0,0,.4);
}
.atlas-card-tagline {
  font-size: .75rem; color: rgba(255,255,255,.75); margin: 0;
  font-family: var(--mono);
}
.atlas-cat-tag {
  position: absolute; top: 12px; left: 12px;
  font-size: .68rem; font-weight: 600;
  background: rgba(0,0,0,.35); color: rgba(255,255,255,.85);
  border-radius: 10px; padding: 3px 10px;
  backdrop-filter: blur(4px);
}
.atlas-card-badge {
  position: absolute; top: 12px; right: 12px;
  font-size: .68rem; font-weight: 700;
  background: rgba(245,158,11,.9); color: #000;
  border-radius: 10px; padding: 3px 10px;
}

/* Card Body */
.atlas-card-body {
  padding: 18px 20px 20px;
  display: flex; flex-direction: column; flex: 1; gap: 14px;
}
.atlas-card-desc {
  font-size: .82rem; color: var(--muted); line-height: 1.6; margin: 0;
}
.atlas-features-list {
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-direction: column; gap: 6px;
}
.atlas-features-list li {
  display: flex; align-items: flex-start; gap: 8px;
  font-size: .78rem; color: var(--text-dim, #94a3b8);
}
.atlas-features-list li .fa-check {
  color: #22c55e; font-size: .7rem; margin-top: 3px; flex-shrink: 0;
}

/* Card Footer */
.atlas-card-footer {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; margin-top: auto; padding-top: 4px;
  border-top: 1px solid rgba(255,255,255,.06);
}
.atlas-price {
  font-size: 1.25rem; font-weight: 800; color: #c4b5fd;
  font-family: var(--mono);
}
.atlas-price.free { color: #22c55e; }
.atlas-bundle-price {
  display: flex; align-items: center; gap: 8px;
}
.atlas-original-price {
  font-size: .85rem; color: var(--muted);
  text-decoration: line-through; font-family: var(--mono);
}

/* Buttons */
.atlas-cart-btn {
  padding: 9px 18px; border-radius: 9px; border: none;
  background: linear-gradient(135deg, #8b5cf6, #6d28d9);
  color: #fff; font-size: .8rem; font-weight: 600;
  cursor: pointer; transition: all .2s; white-space: nowrap;
  font-family: var(--sans);
}
.atlas-cart-btn:hover { background: linear-gradient(135deg, #7c3aed, #5b21b6); transform: scale(1.03); }
.atlas-cart-btn.in-cart {
  background: rgba(34,197,94,.15); color: #22c55e;
  border: 1px solid rgba(34,197,94,.3); cursor: default;
}
.atlas-dl-btn {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 9px 18px; border-radius: 9px;
  background: linear-gradient(135deg, #22c55e, #16a34a);
  color: #fff; font-size: .8rem; font-weight: 600;
  text-decoration: none; transition: all .2s; white-space: nowrap;
}
.atlas-dl-btn:hover { background: linear-gradient(135deg, #16a34a, #15803d); transform: scale(1.03); }
.atlas-owned-badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 16px; border-radius: 9px;
  background: rgba(34,197,94,.12); color: #22c55e;
  border: 1px solid rgba(34,197,94,.3);
  font-size: .8rem; font-weight: 600;
}

/* Req line */
.atlas-req-line {
  font-size: .72rem; color: var(--muted); margin: 0;
  display: flex; align-items: center; gap: 6px;
}
.atlas-req-line .fa-circle-info { color: rgba(139,92,246,.5); }

/* Runtime notice */
.atlas-runtime-notice {
  margin: 36px auto 0;
  max-width: 620px; text-align: center;
  padding: 14px 22px; border-radius: 10px;
  background: rgba(6,182,212,.06);
  border: 1px solid rgba(6,182,212,.2);
  font-size: .82rem; color: var(--muted);
  display: flex; align-items: center; justify-content: center;
  flex-wrap: wrap; gap: 8px;
}
.atlas-runtime-notice .fa-circle-info { color: #06b6d4; }
.atlas-runtime-link {
  color: #06b6d4; text-decoration: none; font-weight: 600;
}
.atlas-runtime-link:hover { text-decoration: underline; }

/* Bundle card layout */
.atlas-bundle-card .atlas-card-header { min-height: 80px; }
.atlas-bundle-card .atlas-card-body { gap: 12px; }

@media (max-width: 900px) {
  .atlas-grid { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
  .atlas-bundle-card { grid-column: auto; }
}
@media (max-width: 540px) {
  .atlas-grid { grid-template-columns: 1fr; }
  .atlas-card-footer { flex-direction: column; align-items: flex-start; }
}

/* ── Atlas Flagship Card ── */
.atlas-flagship-card {
  grid-column: 1 / -1;
  margin-bottom: 8px;
}
.atlas-flagship-inner {
  display: flex; gap: 36px; align-items: center;
  border-radius: 18px; padding: 32px 36px;
  color: #fff; position: relative; overflow: hidden;
}
.atlas-flagship-inner::before {
  content: ''; position: absolute; inset: 0;
  background: rgba(0,0,0,0.35); border-radius: inherit;
}
.atlas-flagship-left, .atlas-flagship-right { position: relative; z-index: 1; }
.atlas-flagship-left {
  display: flex; flex-direction: column; align-items: center;
  gap: 10px; min-width: 140px;
}
.atlas-flagship-badge {
  background: rgba(255,255,255,0.18); color: #fff;
  font-size: 11px; font-weight: 700; letter-spacing: 0.5px;
  padding: 4px 10px; border-radius: 20px;
}
.atlas-flagship-icon { font-size: 56px; line-height: 1; }
.atlas-flagship-name { font-size: 18px; font-weight: 800; text-align: center; margin: 0; }
.atlas-flagship-tagline { font-size: 12px; opacity: 0.85; text-align: center; margin: 0; }
.atlas-flagship-right { flex: 1; }
.atlas-flagship-desc {
  font-size: 13px; opacity: 0.9; margin: 0 0 14px;
  line-height: 1.6;
}
.atlas-flagship-features {
  list-style: none; margin: 0 0 20px; padding: 0;
  display: flex; flex-wrap: wrap; gap: 6px 18px;
}
.atlas-flagship-features li {
  font-size: 12px; display: flex; align-items: center; gap: 6px; opacity: 0.9;
}
.atlas-flagship-features li .fa-check { color: #34D399; font-size: 10px; }
.atlas-flagship-footer {
  display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
}
.atlas-flagship-dl-btn {
  display: inline-flex; align-items: center; gap: 8px;
  background: #fff; color: #1B1B1A; font-weight: 700; font-size: 14px;
  padding: 10px 22px; border-radius: 10px; text-decoration: none;
  transition: opacity 0.2s;
}
.atlas-flagship-dl-btn:hover { opacity: 0.88; }
.atlas-flagship-note {
  font-size: 12px; opacity: 0.8; display: flex; align-items: center; gap: 6px;
}
.atlas-flagship-note .fa-key { color: #fbbf24; }
@media (max-width: 700px) {
  .atlas-flagship-inner { flex-direction: column; padding: 24px 20px; }
  .atlas-flagship-left { min-width: unset; width: 100%; }
}

/* ==========================================================================
   INTERACTIVE TERMINAL DEMO
   ========================================================================== */
.terminal-demo-section {
  padding: 80px 0;
  background: linear-gradient(180deg, var(--bg) 0%, rgba(13,11,30,0.6) 100%);
}
.terminal-demo-inner {
  max-width: 1200px; margin: 0 auto; padding: 0 24px;
  display: grid; grid-template-columns: 1fr 1.3fr; gap: 60px; align-items: center;
}
.terminal-demo-title {
  font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 800;
  color: var(--text-primary); margin-bottom: 14px; line-height: 1.3;
}
.terminal-demo-desc {
  color: var(--text-secondary); font-size: .95rem; margin-bottom: 32px;
}
.terminal-stats-row {
  display: flex; gap: 28px; flex-wrap: wrap;
}
.t-stat { display: flex; flex-direction: column; gap: 3px; }
.t-stat-num {
  font-size: 1.8rem; font-weight: 800;
  background: linear-gradient(135deg, var(--accent2), var(--accent));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}
.t-stat-label { font-size: .72rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: .05em; }

/* Interactive Terminal */
.interactive-terminal {
  background: #0a0a14; border: 1px solid rgba(139,92,246,0.25);
  border-radius: 12px; overflow: hidden;
  box-shadow: 0 20px 60px rgba(0,0,0,0.5), 0 0 0 1px rgba(139,92,246,0.1);
}
.iterm-header {
  background: #111128; padding: 10px 16px;
  display: flex; align-items: center; gap: 8px;
  border-bottom: 1px solid rgba(139,92,246,0.12);
}
.iterm-title {
  font-family: var(--mono); font-size: .75rem;
  color: var(--text-muted); flex: 1;
}
.iterm-tabs {
  display: flex; gap: 6px;
}
.iterm-tab {
  font-family: var(--mono); font-size: .68rem;
  padding: 4px 10px; border-radius: 5px; border: none; cursor: pointer;
  background: rgba(139,92,246,0.06); color: var(--text-muted);
  transition: all .2s;
}
.iterm-tab:hover { background: rgba(139,92,246,0.15); color: var(--text-primary); }
.iterm-tab.active {
  background: rgba(139,92,246,0.22); color: var(--accent2);
  border: 1px solid rgba(139,92,246,0.35);
}
.iterm-body {
  padding: 16px; min-height: 220px; max-height: 300px; overflow-y: auto;
  font-family: var(--mono); font-size: .78rem; line-height: 1.8;
}
.iterm-output { color: #a8f0a8; }
.iterm-output .line-cmd { color: #8b5cf6; }
.iterm-output .line-out { color: #c8c8e8; }
.iterm-output .line-success { color: #10b981; }
.iterm-output .line-warn { color: #f59e0b; }
.iterm-output .line-error { color: #f43f5e; }
.iterm-input-line {
  display: flex; gap: 8px; align-items: center;
  margin-top: 8px; color: #8b5cf6;
}
.iterm-prompt { color: #10b981; }
.iterm-cursor { color: var(--text-primary); }
.iterm-blink {
  color: var(--accent2); animation: blink 1s step-end infinite;
}
@keyframes blink { 0%,100%{opacity:1} 50%{opacity:0} }

@media (max-width: 900px) {
  .terminal-demo-inner { grid-template-columns: 1fr; }
}

/* ==========================================================================
   COMPARISON TABLE
   ========================================================================== */
.comparison-section {
  padding: 80px 0 60px;
  background: var(--bg);
}
.comparison-table-wrap {
  max-width: 900px; margin: 0 auto; padding: 0 24px; overflow-x: auto;
}
.comparison-table {
  width: 100%; border-collapse: collapse;
  border: 1px solid var(--border);
  border-radius: 12px; overflow: hidden;
}
.comparison-table thead tr {
  background: var(--bg-elevated);
}
.comparison-table th, .comparison-table td {
  padding: 14px 20px; text-align: center;
  border-bottom: 1px solid var(--border);
  font-size: .88rem;
}
.comparison-table .comp-feature {
  text-align: right; color: var(--text-secondary);
  font-weight: 500; white-space: nowrap;
}
.comparison-table th.comp-feature { color: var(--text-muted); font-weight: 600; }
.comp-logo {
  display: flex; align-items: center; justify-content: center;
  gap: 6px; font-weight: 700; font-size: .95rem;
}
.atlas-logo {
  color: var(--accent2);
}
.comparison-table .comp-atlas {
  background: rgba(139,92,246,0.04);
  font-weight: 600; color: var(--text-primary);
}
.comparison-table .comp-atlas.comp-good {
  background: rgba(139,92,246,0.07);
}
.comparison-table .comp-bad { color: var(--text-muted); }
.comp-check { color: #10b981; font-size: 1rem; }
.comp-x { color: var(--text-muted); }
.comp-check-partial { color: var(--yellow); font-size: .8rem; }
.comparison-table tbody tr:hover { background: rgba(139,92,246,0.03); }
.comparison-note {
  text-align: center; color: var(--text-muted);
  font-size: .75rem; margin-top: 16px;
  max-width: 900px; margin-left: auto; margin-right: auto; padding: 0 24px;
}
/* Differentiation pills row */
.diff-pills-row {
  display: flex; flex-wrap: wrap; gap: 12px;
  justify-content: center;
  max-width: 960px; margin: 0 auto 36px; padding: 0 24px;
}
.diff-pill {
  display: flex; align-items: center; gap: 12px;
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: 12px; padding: 14px 20px;
  flex: 1; min-width: 200px; max-width: 230px;
}
.diff-pill-ico {
  font-size: 1.4rem; color: var(--accent); flex-shrink: 0;
}
.diff-pill span { font-size: .82rem; line-height: 1.5; color: var(--text-primary); }
.diff-pill span strong { color: var(--accent); font-size: .9rem; }
.diff-pill span small { color: var(--text-muted); display: block; font-size: .75rem; }
/* comparison extras */
.comp-tag-arabic {
  font-size: .62rem; background: rgba(6,182,212,.15); color: var(--accent2);
  border-radius: 4px; padding: 1px 5px; margin-right: 5px; font-weight: 600;
}
.comp-green { color: #39d353; }
.comparison-table-wrap { overflow-x: auto; }
@media (max-width: 640px) {
  .diff-pill { min-width: 140px; max-width: 100%; }
}

/* ==========================================================================
   Showcase Sections (CTF + Lab) — unified design tokens
   ========================================================================== */
.showcase-section {
  padding: 72px 24px;
  border-top: 1px solid var(--border);
}
.showcase-section .section-header { margin-bottom: 36px; }
.showcase-section .section-title i { font-size: 0.75em; margin-left: 10px; color: var(--accent); }

/* Stat cards row */
.stat-cards {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 36px;
}
.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 20px 32px;
  text-align: center;
  min-width: 120px;
  transition: border-color var(--fast) var(--ease);
}
.stat-card:hover { border-color: var(--border-act); }
.stat-card-num { font-size: 28px; font-weight: 800; color: var(--accent); font-family: 'Inter', sans-serif; }
.stat-card-num.is-green { color: var(--green); }
.stat-card-num.is-cyan  { color: #06b6d4; }
.stat-card-label { font-size: 11px; color: var(--text-muted); margin-top: 4px; }

/* Embedded iframe frame */
.embed-frame {
  position: relative;
  border-radius: var(--r-lg);
  overflow: hidden;
  border: 1px solid var(--border-act);
  box-shadow: 0 0 60px var(--accent-glow);
  max-width: 1200px;
  margin: 0 auto;
}
.embed-frame-inner { height: 680px; }
.embed-frame iframe { width: 100%; height: 100%; border: none; display: block; }
.embed-launch {
  position: absolute;
  top: 12px;
  left: 12px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(139,92,246,0.92);
  color: #fff;
  border-radius: var(--r-md);
  padding: 7px 16px;
  font-size: 12px;
  font-weight: 700;
  backdrop-filter: blur(8px);
  transition: background var(--fast) var(--ease);
}
.embed-launch:hover { background: var(--accent); }

/* Section subtle background tints */
.showcase-section.tint-violet { background: linear-gradient(180deg, rgba(139,92,246,0.03) 0%, var(--bg) 100%); }
.showcase-section.tint-green  { background: linear-gradient(180deg, rgba(16,185,129,0.03) 0%, var(--bg) 100%); }
.showcase-section.tint-green .section-title i { color: var(--green); }

@media (max-width: 640px) {
  .showcase-section { padding: 52px 16px; }
  .embed-frame-inner { height: 560px; }
  .stat-card { padding: 16px 22px; min-width: 100px; }
  .stat-card-num { font-size: 23px; }
}

/* ═══════════════════════════════════════════════════════════════════════
   VISUAL FX — Scroll bar, Reveal, Background, Glows
   ════════════════════════════════════════════════════════════════════ */

/* ── Scroll Progress Bar ──────────────────────────────────────────── */
.scroll-progress {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, #8b5cf6 0%, #a78bfa 50%, #c084fc 100%);
  transform-origin: left center;
  transform: scaleX(0);
  z-index: 9999;
  transition: transform 80ms linear;
  pointer-events: none;
}

/* ── Subtle dot-grid texture (cheap to render) ────────────────────── */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 1;
  background-image: radial-gradient(rgba(139,92,246,0.04) 1px, transparent 1px);
  background-size: 32px 32px;
}

/* ── Richer Background Gradient (overrides earlier rule) ─────────── */
body::before {
  background:
    radial-gradient(ellipse 90% 60% at 50% -8%, rgba(139,92,246,0.22) 0%, transparent 58%),
    radial-gradient(ellipse 55% 40% at 94% 85%, rgba(109,40,217,0.11) 0%, transparent 52%),
    radial-gradient(ellipse 55% 45% at 6% 68%,  rgba(109,40,217,0.08) 0%, transparent 52%),
    radial-gradient(ellipse 40% 30% at 50% 100%, rgba(139,92,246,0.05) 0%, transparent 60%);
}

/* ── Stronger 3D Grid ─────────────────────────────────────────────── */
.grid-3d::before {
  background-image:
    linear-gradient(rgba(139,92,246,0.32) 1px, transparent 1px),
    linear-gradient(90deg, rgba(139,92,246,0.32) 1px, transparent 1px);
}

/* ── Scroll Reveal Animation ──────────────────────────────────────── */
.will-reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.55s cubic-bezier(0.4,0,0.2,1),
              transform 0.55s cubic-bezier(0.4,0,0.2,1);
}
.will-reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* ── Section Title Gradient Line ─────────────────────────────────── */
.section-header .section-title::after {
  content: '';
  display: block;
  width: 56px;
  height: 3px;
  background: linear-gradient(270deg, var(--accent) 0%, var(--accent2) 45%, transparent 100%);
  margin-top: 10px;
  border-radius: 99px;
}

/* ── Section Glow Divider utility ────────────────────────────────── */
.glow-divider {
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg,
    transparent 0%,
    rgba(139,92,246,0.35) 30%,
    rgba(139,92,246,0.35) 70%,
    transparent 100%);
  position: relative;
  margin: 0;
}
.glow-divider::after {
  content: '';
  position: absolute;
  top: -4px;
  left: 50%;
  transform: translateX(-50%);
  width: 260px;
  height: 9px;
  background: rgba(139,92,246,0.14);
  filter: blur(7px);
  border-radius: 50%;
}

/* ── Enhanced Card Hover Glows ───────────────────────────────────── */
.stage-card:hover {
  box-shadow: 0 0 0 1px rgba(139,92,246,0.14),
              0 8px 40px rgba(139,92,246,0.14),
              0 0 70px rgba(139,92,246,0.05);
}
.extra-card:hover {
  box-shadow: 0 16px 60px rgba(0,0,0,0.5),
              0 0 0 1px rgba(139,92,246,0.22),
              0 0 50px rgba(139,92,246,0.07);
}
.bundle-card:hover {
  box-shadow: 0 12px 50px rgba(0,0,0,0.45),
              0 0 0 1px rgba(139,92,246,0.2);
  border-color: rgba(139,92,246,0.35) !important;
}
.starter-card:hover {
  box-shadow: 0 12px 44px rgba(0,0,0,0.45),
              0 0 0 1px rgba(139,92,246,0.18),
              0 0 40px rgba(139,92,246,0.06);
}
.atlas-card:hover {
  box-shadow: 0 20px 55px rgba(0,0,0,0.55),
              0 0 0 1px rgba(139,92,246,0.3),
              0 0 60px rgba(139,92,246,0.08);
}
.lang-card:hover {
  box-shadow: 0 12px 36px rgba(0,0,0,0.4),
              0 0 0 1px rgba(139,92,246,0.22);
  border-color: rgba(139,92,246,0.32);
}

/* ── Code Window Glow ────────────────────────────────────────────── */
.code-window {
  box-shadow: 0 28px 70px rgba(0,0,0,0.55),
              0 0 0 1px rgba(139,92,246,0.12),
              0 0 70px rgba(139,92,246,0.07);
}

/* ── Primary Button Glow ─────────────────────────────────────────── */
.btn-primary-hero {
  box-shadow: 0 4px 20px rgba(139,92,246,0.28),
              inset 0 1px 0 rgba(255,255,255,0.1);
}
.btn-primary-hero:hover {
  box-shadow: 0 8px 36px rgba(139,92,246,0.44),
              inset 0 1px 0 rgba(255,255,255,0.12);
}

/* ── Feature-pill hover ──────────────────────────────────────────── */
.feature-pill {
  transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease;
}
.feature-pill:hover {
  border-color: rgba(139,92,246,0.38);
  color: var(--text-primary);
  background: rgba(139,92,246,0.08);
}

/* ── Cert pill hover ─────────────────────────────────────────────── */
.cert-pill {
  transition: all 0.2s ease;
}
.cert-pill:hover {
  background: var(--accent-dim);
  border-color: var(--border-act);
  color: var(--accent2);
  transform: translateY(-1px);
}

/* ── Diff-pill hover ─────────────────────────────────────────────── */
.diff-pill {
  transition: border-color 0.2s ease, background 0.2s ease,
              transform 0.2s ease, box-shadow 0.2s ease;
}
.diff-pill:hover {
  border-color: rgba(139,92,246,0.32);
  background: rgba(139,92,246,0.07);
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(0,0,0,0.32);
}

/* ── Scrollbar (richer) ──────────────────────────────────────────── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: #05040d; }
::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, rgba(139,92,246,0.45), rgba(109,40,217,0.35));
  border-radius: 99px;
}
::-webkit-scrollbar-thumb:hover { background: var(--accent); }

/* ── Atlas section top/bottom glow lines ─────────────────────────── */
.atlas-section::after {
  content: '';
  position: absolute;
  bottom: 0; left: 50%; transform: translateX(-50%);
  width: 700px; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(139,92,246,0.32), transparent);
}

/* ── Stat card accent glow on hover ─────────────────────────────── */
.stat-card:hover {
  border-color: rgba(139,92,246,0.3);
  box-shadow: 0 0 20px rgba(139,92,246,0.08);
}

/* ── Comparison table atlas column highlight ─────────────────────── */
.comparison-table .comp-atlas.comp-good {
  background: rgba(139,92,246,0.09);
  font-weight: 700;
}

/* ── Hero eyebrow dot stronger glow ─────────────────────────────── */
.eyebrow-dot {
  box-shadow: 0 0 0 3px var(--accent-dim), 0 0 12px rgba(139,92,246,0.55);
}

/* ── Skill badge enhanced ────────────────────────────────────────── */
.skill-badge {
  transition: background 0.2s ease, transform 0.2s ease,
              border-color 0.2s ease, box-shadow 0.2s ease;
}
.skill-badge:hover {
  background: var(--accent-dim);
  border-color: var(--border-act);
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(139,92,246,0.2);
}

/* ── Interactive terminal glow ───────────────────────────────────── */
.interactive-terminal {
  box-shadow: 0 20px 60px rgba(0,0,0,0.5),
              0 0 0 1px rgba(139,92,246,0.15),
              0 0 80px rgba(139,92,246,0.06);
}

/* ── Embed frame glow pulse ──────────────────────────────────────── */
.embed-frame {
  box-shadow: 0 0 0 1px var(--border-act),
              0 0 60px rgba(139,92,246,0.1),
              0 20px 60px rgba(0,0,0,0.5);
}

/* ── Background ambient orbs — no blur (GPU-safe) ───────────────── */
.bg-orb {
  position: fixed;
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
}
.bg-orb-1 {
  width: 700px; height: 700px;
  top: -250px; right: -200px;
  background: radial-gradient(circle, rgba(139,92,246,0.1) 0%, rgba(109,40,217,0.04) 45%, transparent 70%);
}
.bg-orb-2 {
  width: 600px; height: 600px;
  top: 40vh; left: -250px;
  background: radial-gradient(circle, rgba(109,40,217,0.07) 0%, rgba(139,92,246,0.02) 45%, transparent 70%);
}
.bg-orb-3 {
  width: 750px; height: 750px;
  top: 85vh; right: -300px;
  background: radial-gradient(circle, rgba(139,92,246,0.07) 0%, rgba(109,40,217,0.02) 45%, transparent 70%);
}

/* ── Section top highlight line ──────────────────────────────────── */
.comparison-section,
.terminal-demo-section,
.atlas-section {
  position: relative;
}
.comparison-section::before,
.terminal-demo-section::before {
  content: '';
  position: absolute;
  top: 0; left: 50%; transform: translateX(-50%);
  width: 700px; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(139,92,246,0.28), transparent);
  pointer-events: none;
}

/* ── vs-step hover enhancement ───────────────────────────────────── */
.clickable-step:hover {
  border-color: rgba(139,92,246,0.42);
  box-shadow: 0 6px 24px rgba(139,92,246,0.15);
}

/* ── Nav active item ─────────────────────────────────────────────── */
.nav-item.active {
  color: var(--accent2);
  background: rgba(139,92,246,0.08);
}

/* ==========================================================================
   SOCIAL MEDIA HACKING LAB — Professional Target Cards
   ========================================================================== */

.slc-header {
  text-align: center;
  margin-bottom: 28px;
}
.slc-title-bar {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(10,10,20,0.6);
  border: 1px solid rgba(139,92,246,0.2);
  border-radius: 8px;
  padding: 8px 18px;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: rgba(255,255,255,0.55);
  text-transform: uppercase;
  margin-bottom: 6px;
}
.slc-title-bar i { color: var(--accent); font-size: 10px; }
.slc-targets-live {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--mono);
  font-size: 11px;
  color: #22c55e;
  margin-right: 8px;
}
.slc-pulse-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 0 0 rgba(34,197,94,0.5);
  animation: slcPulse 1.8s infinite;
}
@keyframes slcPulse {
  0%   { box-shadow: 0 0 0 0 rgba(34,197,94,0.5); }
  70%  { box-shadow: 0 0 0 7px rgba(34,197,94,0); }
  100% { box-shadow: 0 0 0 0 rgba(34,197,94,0); }
}

/* Grid */
.slc-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  max-width: 1060px;
  margin: 0 auto 28px;
}

/* Card */
.slc-card {
  background: rgba(11,9,22,0.95);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 14px;
  padding: 18px 20px 16px;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: border-color .2s, box-shadow .2s, transform .2s;
  position: relative;
  overflow: hidden;
}
.slc-card::before {
  content: '';
  position: absolute;
  top: 0; right: 0;
  width: 120px; height: 120px;
  background: radial-gradient(circle, var(--slc-accent, rgba(139,92,246,0.08)) 0%, transparent 70%);
  opacity: 0.35;
  pointer-events: none;
}
.slc-card:hover {
  border-color: var(--slc-accent, rgba(139,92,246,0.4));
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--slc-accent, #8b5cf6) 25%, transparent),
              0 8px 32px rgba(0,0,0,0.5);
  transform: translateY(-3px);
}

/* Card header row */
.slc-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.slc-live-badge {
  display: flex;
  align-items: center;
  gap: 5px;
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 700;
  color: #22c55e;
  letter-spacing: 0.08em;
}
.slc-live-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: #22c55e;
  animation: slcPulse 1.8s infinite;
}
.slc-diff {
  font-family: var(--mono);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.1em;
  padding: 3px 8px;
  border-radius: 4px;
  text-transform: uppercase;
}
.slc-diff.hard   { background: rgba(239,68,68,0.12); color: #f87171; border: 1px solid rgba(239,68,68,0.25); }
.slc-diff.medium { background: rgba(249,115,22,0.12); color: #fb923c; border: 1px solid rgba(249,115,22,0.25); }
.slc-diff.easy   { background: rgba(34,197,94,0.10); color: #4ade80; border: 1px solid rgba(34,197,94,0.2); }

/* Platform identity row */
.slc-platform {
  display: flex;
  align-items: center;
  gap: 12px;
}
.slc-icon-wrap {
  width: 40px; height: 40px;
  border-radius: 10px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
}
.slc-platform-info { flex: 1; min-width: 0; }
.slc-pname {
  font-size: 15px;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 2px;
}
.slc-pdomain {
  font-family: var(--mono);
  font-size: 10px;
  color: rgba(255,255,255,0.3);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.slc-xp-badge {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 700;
  color: #a78bfa;
  background: rgba(139,92,246,0.1);
  border: 1px solid rgba(139,92,246,0.2);
  border-radius: 6px;
  padding: 4px 8px;
  white-space: nowrap;
  flex-shrink: 0;
}

/* Scope row */
.slc-scope {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  align-items: center;
}
.slc-scope-label {
  font-family: var(--mono);
  font-size: 9px;
  font-weight: 700;
  color: rgba(255,255,255,0.25);
  letter-spacing: 0.1em;
  margin-left: 2px;
}
.slc-scope-tag {
  font-family: var(--mono);
  font-size: 9.5px;
  color: rgba(255,255,255,0.45);
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 4px;
  padding: 2px 7px;
}

/* Vulnerability list */
.slc-vulns {
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
}
.slc-vuln {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11.5px;
  color: rgba(255,255,255,0.65);
  line-height: 1.3;
}
.slc-sev {
  font-family: var(--mono);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.08em;
  padding: 2px 6px;
  border-radius: 4px;
  flex-shrink: 0;
}
.slc-sev.crit { background: rgba(239,68,68,0.15); color: #f87171; border: 1px solid rgba(239,68,68,0.3); }
.slc-sev.high { background: rgba(249,115,22,0.12); color: #fb923c; border: 1px solid rgba(249,115,22,0.25); }
.slc-sev.med  { background: rgba(250,204,21,0.10); color: #fde047; border: 1px solid rgba(250,204,21,0.2); }

/* Footer */
.slc-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 10px;
  border-top: 1px solid rgba(255,255,255,0.06);
  margin-top: auto;
}
.slc-bounty {
  font-family: var(--mono);
  font-size: 11px;
  color: rgba(255,255,255,0.3);
}
.slc-bounty strong {
  color: #22c55e;
  font-weight: 700;
}
.slc-launch {
  font-size: 12px;
  font-weight: 700;
  color: var(--accent2);
  display: flex;
  align-items: center;
  gap: 5px;
  opacity: 0.7;
  transition: opacity .15s;
}
.slc-card:hover .slc-launch { opacity: 1; }

/* Action buttons */
.slc-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 10px;
}
.slc-btn-kali {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  background: linear-gradient(135deg,rgba(34,197,94,.13),rgba(34,197,94,.05));
  color: #39d353;
  border: 1px solid rgba(34,197,94,.3);
  border-radius: 12px;
  padding: 11px 26px;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  transition: background .2s;
}
.slc-btn-kali:hover { background: linear-gradient(135deg,rgba(34,197,94,.22),rgba(34,197,94,.08)); }
.slc-btn-lab {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  background: linear-gradient(135deg,#7c3aed,#4f46e5);
  color: #fff;
  border-radius: 12px;
  padding: 11px 26px;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  transition: opacity .15s;
}
.slc-btn-lab:hover { opacity: .85; }
.slc-disclaimer {
  text-align: center;
  font-size: 11.5px;
  color: rgba(255,255,255,0.22);
}
.slc-disclaimer i { margin-left: 5px; }
