:root {
  --bg-deep: #070a14;
  --bg-panel: #0e1424;
  --bg-card: #121a2e;
  --bg-card-hover: #17223b;
  --bg-elevated: #1a2642;
  --paper: #070a14;
  --surface: #0e1424;
  --surface-alt: #141d33;
  --ink: #f8fafc;
  --muted: #94a3b8;
  --line: rgba(148, 163, 184, 0.16);
  --wire: #3b82f6;
  --wire-dark: #2563eb;
  --wire-soft: rgba(59, 130, 246, 0.15);
  --kolay: #10b981;
  --kolay-soft: rgba(16, 185, 129, 0.14);
  --orta: #f59e0b;
  --orta-soft: rgba(245, 158, 11, 0.15);
  --zor: #ec4899;
  --zor-soft: rgba(236, 72, 153, 0.15);
  --xp: #a855f7;
  --xp-soft: rgba(168, 85, 247, 0.16);
  --orange: #f97316;
  --orange-soft: rgba(249, 115, 22, 0.16);
  --gold: #fbbf24;
  --ok-bg: rgba(16, 185, 129, 0.14);
  --err-bg: rgba(239, 68, 68, 0.16);
  --info-bg: rgba(59, 130, 246, 0.15);
  --radius: 14px;
  --radius-lg: 20px;
  --radius-xl: 26px;
  --font-display: "Space Grotesk", "Avenir Next", "Plus Jakarta Sans", system-ui, -apple-system, sans-serif;
  --font: "Plus Jakarta Sans", "Avenir Next", "Segoe UI", system-ui, -apple-system, sans-serif;
  --mono: ui-monospace, "JetBrains Mono", "SF Mono", Menlo, Consolas, monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; color-scheme: dark; }

body {
  margin: 0;
  font: 16px/1.65 var(--font);
  color: var(--ink);
  background-color: var(--bg-deep);
  background-image:
    radial-gradient(circle at 18% 12%, rgba(59, 130, 246, 0.16), transparent 38%),
    radial-gradient(circle at 82% 16%, rgba(168, 85, 247, 0.16), transparent 40%),
    radial-gradient(circle at 50% 65%, rgba(16, 185, 129, 0.07), transparent 45%);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main {
  flex: 1;
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 32px 20px 80px;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  line-height: 1.15;
  letter-spacing: -0.025em;
  margin: 0 0 0.45em;
  color: #ffffff;
}
h1 { font-size: clamp(2.1rem, 4.6vw, 3.5rem); font-weight: 800; }
h2 { font-size: clamp(1.5rem, 2.8vw, 2.1rem); font-weight: 800; }
h3 { font-size: 1.2rem; font-weight: 700; }
h4 { font-size: 1rem; font-weight: 700; }
p { margin: 0 0 1em; max-width: 70ch; }
a { color: #60a5fa; text-decoration: none; transition: color 0.15s; }
a:hover { color: #93c5fd; }
:focus-visible { outline: 2px solid var(--wire); outline-offset: 2px; border-radius: 6px; }

.muted { color: var(--muted); }
.small { font-size: 0.86rem; }
.center { text-align: center; }
.center p { margin-left: auto; margin-right: auto; }
.text-gradient {
  background: linear-gradient(90deg, #38bdf8 0%, #818cf8 50%, #c084fc 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.skip {
  position: absolute;
  left: -999px;
  top: 8px;
  background: var(--wire);
  color: #fff;
  padding: 8px 14px;
  border-radius: 8px;
  z-index: 100;
}
.skip:focus { left: 8px; }

/* ---------------- Header (Deep Cyber Navbar) ---------------- */
.site-header {
  background: rgba(7, 10, 20, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 50;
}
.site-header .bar {
  max-width: 1280px;
  margin: 0 auto;
  padding: 14px 22px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.1rem;
  color: #ffffff;
  text-decoration: none;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}
.brand-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: linear-gradient(135deg, #3b82f6, #6366f1);
  box-shadow: 0 0 18px rgba(59, 130, 246, 0.55);
  display: grid;
  place-items: center;
}
.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 22px;
  align-items: center;
}
.nav a, .linklike {
  color: #cbd5e1;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.93rem;
  padding: 6px 10px;
  border-radius: 8px;
  background: none;
  border: 0;
  font: inherit;
  cursor: pointer;
  transition: color 0.15s, background-color 0.15s;
}
.nav a:hover, .linklike:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.06);
}
.nav-xp-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 99px;
  background: rgba(245, 158, 11, 0.12);
  border: 1px solid rgba(245, 158, 11, 0.4);
  color: var(--gold);
  font-weight: 700;
  font-size: 0.85rem;
}
.nav form { margin: 0; }

/* ---------------- Tactile 3D & Neon Buttons ---------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.95rem;
  padding: 11px 22px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: linear-gradient(180deg, #3b82f6 0%, #2563eb 100%);
  color: #ffffff;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 4px 0 #1d4ed8, 0 8px 20px rgba(37, 99, 235, 0.35);
  transition: transform 0.12s, box-shadow 0.12s, filter 0.15s;
}
.btn:hover {
  color: #ffffff;
  filter: brightness(1.1);
  transform: translateY(-1px);
}
.btn:active {
  transform: translateY(3px);
  box-shadow: 0 1px 0 #1d4ed8;
}
.btn.emerald, .btn.success {
  background: linear-gradient(180deg, #10b981 0%, #059669 100%);
  box-shadow: 0 4px 0 #047857, 0 8px 22px rgba(16, 185, 129, 0.35);
}
.btn.emerald:active, .btn.success:active {
  box-shadow: 0 1px 0 #047857;
}
.btn.secondary {
  background: rgba(18, 26, 46, 0.85);
  border: 1px solid rgba(148, 163, 184, 0.28);
  color: #e2e8f0;
  box-shadow: 0 3px 0 rgba(0, 0, 0, 0.45);
}
.btn.secondary:hover {
  background: var(--bg-card-hover);
  border-color: rgba(96, 165, 250, 0.5);
  color: #ffffff;
}
.btn.danger {
  background: linear-gradient(180deg, #ef4444 0%, #dc2626 100%);
  box-shadow: 0 4px 0 #991b1b;
}
.btn.small {
  padding: 7px 14px;
  font-size: 0.84rem;
  border-radius: 10px;
}

/* ---------------- Flash Alerts ---------------- */
.flashes {
  max-width: 1240px;
  margin: 16px auto 0;
  padding: 0 20px;
  width: 100%;
}
.flash {
  padding: 13px 18px;
  border-radius: var(--radius);
  border: 1px solid rgba(59, 130, 246, 0.4);
  border-left: 5px solid var(--wire);
  background: rgba(14, 20, 36, 0.95);
  color: #f8fafc;
  margin-bottom: 10px;
  font-weight: 600;
}
.flash.ok {
  border-color: rgba(16, 185, 129, 0.4);
  border-left-color: var(--kolay);
  background: rgba(6, 78, 59, 0.35);
}
.flash.error {
  border-color: rgba(239, 68, 68, 0.4);
  border-left-color: #ef4444;
  background: rgba(127, 29, 29, 0.35);
}

/* ---------------- Hero Section (UX Pilot Screen 1) ---------------- */
.hero {
  display: grid;
  gap: 40px;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  padding: 36px 0 64px;
  position: relative;
}
.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 99px;
  background: rgba(59, 130, 246, 0.12);
  border: 1px solid rgba(59, 130, 246, 0.35);
  color: #60a5fa;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 18px;
}
.hero p.lead {
  font-size: 1.1rem;
  color: #94a3b8;
  max-width: 54ch;
  margin-bottom: 26px;
}
.hero .actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 34px;
}
.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  align-items: center;
}
.hero-stat {
  display: flex;
  align-items: center;
  gap: 12px;
}
.hero-stat-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(16, 185, 129, 0.14);
  border: 1px solid rgba(16, 185, 129, 0.35);
  color: #10b981;
}
.hero-stat-icon.gold {
  background: rgba(245, 158, 11, 0.14);
  border-color: rgba(245, 158, 11, 0.35);
  color: var(--gold);
}
.hero-stat strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.25rem;
  line-height: 1.1;
  color: #ffffff;
}
.hero-stat span {
  font-size: 0.78rem;
  color: var(--muted);
}

/* Mascot Stage & Floating Cards */
.mascot-stage {
  position: relative;
  display: grid;
  place-items: center;
  padding: 20px;
}
.mascot-stage svg.mascot-svg {
  width: 100%;
  max-width: 420px;
  height: auto;
  filter: drop-shadow(0 20px 40px rgba(59, 130, 246, 0.28));
  animation: floatSlow 5s ease-in-out infinite;
}
.float-badge {
  position: absolute;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: 14px;
  background: rgba(14, 20, 36, 0.88);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.45);
  font-weight: 700;
  font-size: 0.86rem;
  z-index: 2;
}
.float-badge.xp-top {
  top: 12px;
  right: 12px;
  color: var(--gold);
  border-color: rgba(245, 158, 11, 0.4);
  animation: floatSlow 4s ease-in-out infinite;
}
.float-badge.badge-left {
  bottom: 42px;
  left: 0;
  color: #f8fafc;
  border-color: rgba(168, 85, 247, 0.45);
  animation: floatSlow 4.6s ease-in-out 1s infinite;
}
@keyframes floatSlow {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}
@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; }
}

/* ---------------- Section Blocks & Track Cards ---------------- */
section.block { margin-top: 76px; }
.section-head {
  text-align: center;
  margin-bottom: 36px;
}
.section-head p {
  color: var(--muted);
  margin: 6px auto 0;
}

.tracks-grid {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(4, 1fr);
}
@media (max-width: 980px) { .tracks-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .tracks-grid { grid-template-columns: 1fr; } }

.track-card {
  background: linear-gradient(180deg, rgba(18, 26, 46, 0.9) 0%, rgba(11, 16, 30, 0.95) 100%);
  border: 1.5px solid rgba(59, 130, 246, 0.35);
  border-radius: var(--radius-xl);
  padding: 28px 22px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--ink);
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}
.track-card:hover {
  transform: translateY(-6px);
  color: #ffffff;
}
.track-card.blue {
  border-color: rgba(59, 130, 246, 0.45);
  box-shadow: 0 0 28px rgba(59, 130, 246, 0.12);
}
.track-card.blue:hover { box-shadow: 0 12px 34px rgba(59, 130, 246, 0.28); }
.track-card.blue h3 { color: #38bdf8; }

.track-card.green {
  border-color: rgba(16, 185, 129, 0.45);
  box-shadow: 0 0 28px rgba(16, 185, 129, 0.12);
}
.track-card.green:hover { box-shadow: 0 12px 34px rgba(16, 185, 129, 0.28); }
.track-card.green h3 { color: #10b981; }

.track-card.purple {
  border-color: rgba(168, 85, 247, 0.45);
  box-shadow: 0 0 28px rgba(168, 85, 247, 0.12);
}
.track-card.purple:hover { box-shadow: 0 12px 34px rgba(168, 85, 247, 0.28); }
.track-card.purple h3 { color: #c084fc; }

.track-card.orange {
  border-color: rgba(249, 115, 22, 0.45);
  box-shadow: 0 0 28px rgba(249, 115, 22, 0.12);
}
.track-card.orange:hover { box-shadow: 0 12px 34px rgba(249, 115, 22, 0.28); }
.track-card.orange h3 { color: #fb923c; }

.track-orb {
  width: 84px;
  height: 84px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  margin-bottom: 6px;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.22), rgba(15, 23, 42, 0.8));
  border: 1px solid rgba(255, 255, 255, 0.12);
}
.track-card.green .track-orb { background: radial-gradient(circle, rgba(16, 185, 129, 0.22), rgba(15, 23, 42, 0.8)); }
.track-card.purple .track-orb { background: radial-gradient(circle, rgba(168, 85, 247, 0.22), rgba(15, 23, 42, 0.8)); }
.track-card.orange .track-orb { background: radial-gradient(circle, rgba(249, 115, 22, 0.22), rgba(15, 23, 42, 0.8)); }

.track-pills {
  display: flex;
  gap: 8px;
  margin-top: auto;
  padding-top: 8px;
}
.mini-pill {
  font-size: 0.7rem;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #cbd5e1;
  letter-spacing: 0.04em;
}

/* ---------------- 4-Step Timeline ("Eğitim Yolculuğun Nasıl Başlar?") ---------------- */
.journey-steps {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(4, 1fr);
  position: relative;
  margin-top: 36px;
}
@media (max-width: 820px) { .journey-steps { grid-template-columns: repeat(2, 1fr); } }
.journey-step {
  text-align: center;
  padding: 12px;
}
.step-cube {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: inline-grid;
  place-items: center;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.15rem;
  color: #ffffff;
  margin-bottom: 14px;
}
.step-cube.c1 { background: #3b82f6; box-shadow: 0 0 20px rgba(59, 130, 246, 0.5); }
.step-cube.c2 { background: #10b981; box-shadow: 0 0 20px rgba(16, 185, 129, 0.5); }
.step-cube.c3 { background: #8b5cf6; box-shadow: 0 0 20px rgba(139, 92, 246, 0.5); }
.step-cube.c4 { background: #f97316; box-shadow: 0 0 20px rgba(249, 115, 22, 0.5); }

/* ---------------- Difficulty Levels + Bento Grid ---------------- */
.levels-split {
  display: grid;
  gap: 36px;
  grid-template-columns: 1fr 1fr;
  align-items: center;
}
@media (max-width: 860px) { .levels-split { grid-template-columns: 1fr; } }

.level-row-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 20px;
  border-radius: 16px;
  background: rgba(14, 20, 36, 0.85);
  border: 1.5px solid var(--line);
  margin-bottom: 14px;
}
.level-row-card.lv-easy { border-color: rgba(16, 185, 129, 0.55); }
.level-row-card.lv-mid { border-color: rgba(245, 158, 11, 0.55); }
.level-row-card.lv-hard { border-color: rgba(236, 72, 153, 0.55); }

.level-row-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  flex: none;
  background: rgba(16, 185, 129, 0.15);
  color: #10b981;
}
.level-row-card.lv-mid .level-row-icon { background: rgba(245, 158, 11, 0.15); color: #f59e0b; }
.level-row-card.lv-hard .level-row-icon { background: rgba(236, 72, 153, 0.15); color: #ec4899; }

.bento-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(2, 1fr);
}
.bento-box {
  background: linear-gradient(180deg, #11192e 0%, #0b1020 100%);
  border: 1.5px solid rgba(148, 163, 184, 0.18);
  border-radius: 22px;
  padding: 34px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: #cbd5e1;
}
.bento-box.b-blue { border-color: rgba(59, 130, 246, 0.45); box-shadow: 0 0 24px rgba(59, 130, 246, 0.14); }
.bento-box.b-orange { border-color: rgba(249, 115, 22, 0.45); box-shadow: 0 0 24px rgba(249, 115, 22, 0.14); }

/* ---------------- Featured Course Cards ---------------- */
.course-card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s;
}
.course-card:hover {
  transform: translateY(-5px);
  border-color: rgba(59, 130, 246, 0.5);
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.45);
}
.course-thumb {
  position: relative;
  height: 155px;
  background: linear-gradient(135deg, #0f172a 0%, #1e1b4b 50%, #0f172a 100%);
  border-bottom: 1px solid var(--line);
  display: grid;
  place-items: center;
  overflow: hidden;
}
.course-thumb-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  background: #3b82f6;
  color: #ffffff;
}
.course-thumb-badge.green { background: #10b981; }
.course-thumb-badge.purple { background: #8b5cf6; }

.course-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 8px;
}
.course-meta-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--muted);
}
.course-footer {
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.xp-text {
  color: var(--gold);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.95rem;
}
.arrow-btn {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--line);
  color: #ffffff;
  display: grid;
  place-items: center;
  text-decoration: none;
}
.arrow-btn:hover {
  background: var(--wire);
  border-color: var(--wire);
  color: #ffffff;
}

/* ---------------- Interactive Lesson Studio (UX Pilot Screen 2) ---------------- */
.studio-topbar {
  background: var(--bg-panel);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 14px 20px;
  margin-bottom: 20px;
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
}
.studio-topbar-left {
  display: flex;
  align-items: center;
  gap: 14px;
}
.circle-back {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 1px solid var(--line);
  color: #e2e8f0;
  display: grid;
  place-items: center;
  text-decoration: none;
  font-weight: 700;
}
.circle-back:hover {
  border-color: var(--wire);
  color: #ffffff;
}
.studio-track-label {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #38bdf8;
  display: flex;
  align-items: center;
  gap: 8px;
}
.studio-title {
  font-size: 1.2rem;
  font-weight: 800;
  margin: 2px 0 0;
}
.studio-topbar-center {
  display: flex;
  align-items: center;
  gap: 20px;
  font-size: 0.9rem;
  font-weight: 700;
}
.studio-topbar-right {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.student-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 14px;
  border-radius: 12px;
  background: var(--bg-card);
  border: 1px solid var(--line);
}
.student-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: linear-gradient(135deg, #3b82f6, #10b981);
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 0.78rem;
  color: #fff;
}

.studio-layout {
  display: grid;
  gap: 24px;
  grid-template-columns: 280px minmax(0, 1fr);
  align-items: start;
}
@media (max-width: 960px) {
  .studio-layout { grid-template-columns: 1fr; }
}

.studio-sidebar {
  background: var(--bg-panel);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 18px;
  position: sticky;
  top: 80px;
}
.curriculum-list {
  list-style: none;
  padding: 0;
  margin: 16px 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.curriculum-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 14px;
  background: var(--bg-card);
  border: 1.5px solid var(--line);
  text-decoration: none;
  color: #cbd5e1;
  transition: border-color 0.15s, background-color 0.15s;
}
.curriculum-card:hover {
  border-color: rgba(59, 130, 246, 0.5);
  color: #ffffff;
}
.curriculum-card.is-done {
  background: rgba(6, 78, 59, 0.28);
  border-color: rgba(16, 185, 129, 0.45);
  color: #ecfdf5;
}
.curriculum-card.is-active {
  background: rgba(30, 58, 138, 0.35);
  border-color: #3b82f6;
  box-shadow: 0 0 20px rgba(59, 130, 246, 0.2);
  color: #ffffff;
}
.curriculum-card.is-locked {
  opacity: 0.55;
}
.step-badge {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 0.8rem;
  font-weight: 800;
  flex: none;
  background: rgba(255, 255, 255, 0.08);
  border: 1.5px solid var(--line);
}
.curriculum-card.is-done .step-badge {
  background: #10b981;
  border-color: #10b981;
  color: #052e16;
}
.curriculum-card.is-active .step-badge {
  background: rgba(59, 130, 246, 0.25);
  border-color: #60a5fa;
  color: #60a5fa;
}
.curriculum-label-top {
  display: block;
  font-size: 0.66rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
}
.curriculum-card.is-active .curriculum-label-top { color: #60a5fa; }
.curriculum-card.is-done .curriculum-label-top { color: #34d399; }

.sidebar-dashed-btn {
  display: block;
  width: 100%;
  text-align: center;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1.5px dashed var(--line);
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.sidebar-dashed-btn:hover {
  border-color: #60a5fa;
  color: #ffffff;
}

/* ---------------- Studio Tabs (Screen 2 Underline Tabs) ---------------- */
.studio-tabs {
  display: flex;
  flex-wrap: wrap;
  border-bottom: 1px solid var(--line);
  gap: 6px;
}
.studio-tab-radio {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.studio-tab-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 18px;
  border-bottom: 2.5px solid transparent;
  color: var(--muted);
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
  margin: 0;
  transition: color 0.15s, border-color 0.15s, background-color 0.15s;
}
.studio-tab-label:hover { color: #ffffff; }
.studio-tab-panel {
  width: 100%;
  order: 99;
  display: none;
  padding-top: 24px;
}
#tab-ders:checked ~ label[for="tab-ders"],
#tab-devre:checked ~ label[for="tab-devre"],
#tab-kod:checked ~ label[for="tab-kod"],
#tab-gorev:checked ~ label[for="tab-gorev"],
#tab-topluluk:checked ~ label[for="tab-topluluk"] {
  color: #60a5fa;
  border-bottom-color: #3b82f6;
  background: linear-gradient(180deg, transparent, rgba(59, 130, 246, 0.08));
}
#tab-ders:checked ~ #panel-ders,
#tab-devre:checked ~ #panel-devre,
#tab-kod:checked ~ #panel-kod,
#tab-gorev:checked ~ #panel-gorev,
#tab-topluluk:checked ~ #panel-topluluk {
  display: block;
}

/* ---------------- Video Frame & Lesson Split ---------------- */
.video {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #050811;
  border: 1.5px solid rgba(59, 130, 246, 0.35);
  border-radius: 22px;
  overflow: hidden;
  margin-bottom: 28px;
  box-shadow: 0 0 48px rgba(59, 130, 246, 0.22);
}
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.novideo {
  aspect-ratio: 16 / 7;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: radial-gradient(circle at center, rgba(59, 130, 246, 0.18), rgba(14, 20, 36, 0.95));
  border: 1.5px solid rgba(59, 130, 246, 0.35);
  border-radius: 22px;
  margin-bottom: 28px;
  padding: 28px;
  text-align: center;
  box-shadow: 0 0 40px rgba(59, 130, 246, 0.16);
}

.lesson-content-split {
  display: grid;
  gap: 24px;
  grid-template-columns: 1fr 270px;
  align-items: start;
}
@media (max-width: 820px) {
  .lesson-content-split { grid-template-columns: 1fr; }
}

.tip-box {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 16px 20px;
  border-radius: 16px;
  background: rgba(245, 158, 11, 0.08);
  border: 1.5px solid rgba(245, 158, 11, 0.55);
  color: #fde68a;
  margin: 20px 0 28px;
  font-size: 0.92rem;
}

.materials-mini-card {
  background: var(--bg-panel);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 18px;
}
.materials-mini-title {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 12px;
}
.material-pill-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 12px;
  background: var(--bg-card);
  border: 1px solid var(--line);
  margin-bottom: 8px;
  font-weight: 700;
  font-size: 0.86rem;
}

/* Task Checklist Cards (Screen 2 style) */
.task-cards-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  margin-top: 14px;
}
.task-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 18px;
  border-radius: 16px;
  background: var(--bg-panel);
  border: 1.5px solid var(--line);
}
.task-card.is-done {
  background: rgba(6, 78, 59, 0.22);
  border-color: rgba(16, 185, 129, 0.5);
}
.task-check-btn {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  border: 1.5px solid var(--line);
  background: var(--bg-card);
  color: var(--muted);
  display: grid;
  place-items: center;
  cursor: pointer;
  font-weight: 800;
  flex: none;
}
.task-card.is-done .task-check-btn {
  background: #10b981;
  border-color: #10b981;
  color: #052e16;
}
.task-xp-tag {
  display: block;
  font-size: 0.72rem;
  font-weight: 800;
  color: #10b981;
  text-transform: uppercase;
}

/* ---------------- Panels, Forms, Tables, Code, Quiz ---------------- */
.panel {
  background: var(--bg-panel);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 24px;
  margin-bottom: 24px;
}
.panel.flat { background: var(--bg-card); }
.panel > :last-child { margin-bottom: 0; }

.grid {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
}
.grid-2 {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
}
.stack > * + * { margin-top: 12px; }
.row { display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-end; }
.row-between { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; }
.row > .field { flex: 1 1 150px; margin-bottom: 0; }
.inline { display: inline; margin: 0; }

label { display: block; font-weight: 650; margin: 0 0 6px; color: #e2e8f0; }
input[type=text], input[type=email], input[type=password], input[type=date],
input[type=time], input[type=number], input[type=url], select, textarea {
  width: 100%;
  font: inherit;
  padding: 10px 14px;
  border: 1.5px solid var(--line);
  border-radius: 12px;
  background: var(--bg-card);
  color: var(--ink);
}
input:focus, select:focus, textarea:focus {
  border-color: var(--wire);
  outline: none;
}
textarea { min-height: 120px; font-family: var(--mono); font-size: 0.9rem; }
.field { margin-bottom: 16px; }
.hint { color: var(--muted); font-size: 0.85rem; margin-top: 4px; }
.check { display: flex; gap: 10px; align-items: flex-start; margin-bottom: 12px; cursor: pointer; }
.check input { margin-top: 4px; width: 18px; height: 18px; flex: none; }
.form-narrow { max-width: 480px; }
.errors {
  background: var(--err-bg);
  border: 1px solid #ef4444;
  border-left: 5px solid #ef4444;
  padding: 12px 16px;
  border-radius: var(--radius);
  margin-bottom: 20px;
}

/* Badges & Tags */
.resistor { display: inline-flex; align-items: center; }
.resistor .body {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 10px;
  border-radius: 6px;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  background: rgba(245, 158, 11, 0.16);
  border: 1px solid rgba(245, 158, 11, 0.45);
  color: #fbbf24;
}
.lv-kolay .body { background: rgba(16, 185, 129, 0.16); border-color: rgba(16, 185, 129, 0.45); color: #34d399; }
.lv-orta .body { background: rgba(245, 158, 11, 0.16); border-color: rgba(245, 158, 11, 0.45); color: #fbbf24; }
.lv-zor .body { background: rgba(236, 72, 153, 0.16); border-color: rgba(236, 72, 153, 0.45); color: #f472b6; }

.tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 99px;
  background: rgba(59, 130, 246, 0.14);
  border: 1px solid rgba(59, 130, 246, 0.35);
  color: #93c5fd;
}
.tag.xp { background: rgba(245, 158, 11, 0.14); border-color: rgba(245, 158, 11, 0.4); color: var(--gold); }
.tag.ok { background: rgba(16, 185, 129, 0.14); border-color: rgba(16, 185, 129, 0.4); color: #34d399; }
.tag.warn { background: rgba(245, 158, 11, 0.14); border-color: rgba(245, 158, 11, 0.4); color: #fbbf24; }
.tag.draft { background: var(--err-bg); border-color: #ef4444; color: #fca5a5; }

/* Progress Bar */
.progress-wrap { display: flex; flex-direction: column; gap: 6px; width: 100%; }
.progress-meta {
  display: flex;
  justify-content: space-between;
  font-size: 0.74rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted);
}
progress.ui-progress {
  appearance: none;
  -webkit-appearance: none;
  width: 100%;
  height: 8px;
  border: 0;
  border-radius: 99px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.08);
}
progress.ui-progress::-webkit-progress-bar { background: rgba(255, 255, 255, 0.08); }
progress.ui-progress::-webkit-progress-value {
  background: linear-gradient(90deg, #3b82f6, #10b981);
  border-radius: 99px;
}
progress.ui-progress::-moz-progress-bar {
  background: linear-gradient(90deg, #3b82f6, #10b981);
  border-radius: 99px;
}

/* Notes, Parts, Circuit, Code, Quiz */
.notes {
  color: #cbd5e1;
  font-size: 1.02rem;
}
.notes pre {
  background: #050811;
  border: 1px solid var(--line);
  color: #e2e8f0;
  padding: 14px;
  border-radius: 12px;
  overflow-x: auto;
}
.notes code {
  font-family: var(--mono);
  background: rgba(255, 255, 255, 0.08);
  padding: 2px 6px;
  border-radius: 5px;
  color: #93c5fd;
}

.parts-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  margin-bottom: 24px;
}
.part-card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 14px 16px;
  display: flex;
  gap: 12px;
  align-items: flex-start;
}
.part-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: rgba(59, 130, 246, 0.15);
  border: 1px solid rgba(59, 130, 246, 0.35);
  display: grid;
  place-items: center;
  flex: none;
  color: #60a5fa;
}
.part-qty {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 800;
  color: #10b981;
}

.circuit-box {
  background: #f8fafc;
  color: #0f172a;
  border: 2px solid rgba(59, 130, 246, 0.45);
  border-radius: var(--radius-lg);
  padding: 18px;
  margin-bottom: 24px;
}
.circuit-box svg { width: 100%; max-height: 280px; height: auto; display: block; }

.code-studio {
  background: #050811;
  color: #f8fafc;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 24px;
}
.code-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 16px;
  background: #0e1424;
  border-bottom: 1px solid var(--line);
}
.code-dots { display: flex; gap: 6px; align-items: center; }
.code-dot { width: 11px; height: 11px; border-radius: 50%; background: #475569; }
.code-dot.r { background: #ef4444; }
.code-dot.y { background: #f59e0b; }
.code-dot.g { background: #22c55e; }
.code-copy-btn {
  background: var(--bg-card);
  color: #f8fafc;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 5px 12px;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
}
.code-copy-btn.copied { background: #10b981; color: #052e16; border-color: #10b981; }
.code-pre { margin: 0; padding: 18px; overflow-x: auto; font-family: var(--mono); font-size: 0.9rem; }

.quiz-card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 20px;
  margin-bottom: 16px;
}
.quiz-options { display: flex; flex-direction: column; gap: 8px; margin: 14px 0; }
.quiz-option {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 14px;
  border: 1.5px solid var(--line);
  border-radius: 12px;
  background: var(--bg-panel);
  cursor: pointer;
}
.quiz-option:hover { border-color: var(--wire); }

/* Student Dashboard, Store, Tables, Pager */
.xp-banner {
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.18), rgba(168, 85, 247, 0.18));
  border: 1.5px solid rgba(59, 130, 246, 0.4);
  border-radius: var(--radius-lg);
  padding: 24px;
  margin-bottom: 24px;
  display: grid;
  gap: 20px;
  grid-template-columns: 1.3fr 0.7fr;
  align-items: center;
}
@media (max-width: 760px) { .xp-banner { grid-template-columns: 1fr; } }

.stat-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
}
.stat-box {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px;
}
.stat-value { font-family: var(--font-display); font-size: 1.6rem; font-weight: 800; color: #38bdf8; }

.badge-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
}
.badge-card {
  background: var(--bg-card);
  border: 1.5px solid rgba(16, 185, 129, 0.4);
  border-radius: var(--radius);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.badge-card.locked {
  opacity: 0.5;
  border-color: var(--line);
  border-style: dashed;
}

.pricing-grid {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  margin-bottom: 32px;
}
.pricing-card {
  background: var(--bg-panel);
  border: 1.5px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.pricing-card.popular {
  border-color: #3b82f6;
  box-shadow: 0 0 32px rgba(59, 130, 246, 0.22);
}
.price-tag { font-family: var(--font-display); font-size: 2rem; font-weight: 800; color: #ffffff; }
.feature-list { list-style: none; padding: 0; margin: 0 0 16px; display: flex; flex-direction: column; gap: 8px; font-size: 0.9rem; }
.feature-list li::before { content: "✓ "; color: #10b981; font-weight: 800; }

.certificate {
  background: var(--bg-panel);
  border: 3px double #3b82f6;
  border-radius: var(--radius-lg);
  padding: 40px 32px;
  text-align: center;
  max-width: 780px;
  margin: 0 auto 24px;
}

.lesson-list { list-style: none; padding: 0; margin: 0; }
.lesson-list li { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; padding: 14px 4px; border-bottom: 1px solid var(--line); }
.lesson-list li:last-child { border-bottom: 0; }
.dot { width: 14px; height: 14px; border-radius: 50%; border: 2px solid var(--muted); flex: none; }
.dot.done { background: #10b981; border-color: #10b981; }

.studio-bottom-bar {
  margin-top: 32px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
}

table { width: 100%; border-collapse: collapse; background: var(--bg-card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
th, td { text-align: left; padding: 11px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { background: var(--bg-panel); font-size: 0.84rem; color: var(--muted); }
.table-wrap { overflow-x: auto; margin-bottom: 24px; }

.slot {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px 16px;
  margin-bottom: 10px;
}
.slot form { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin: 0; }
.slot select, .slot input[type=text] { width: auto; min-width: 140px; padding: 6px 10px; }

.site-footer {
  border-top: 1px solid var(--line);
  background: #050811;
  padding: 32px 20px;
  font-size: 0.88rem;
  color: var(--muted);
}
.site-footer .bar {
  max-width: 1240px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  align-items: center;
  justify-content: space-between;
}
.site-footer a { color: #94a3b8; }
.site-footer a:hover { color: #ffffff; }
.code { font-family: var(--mono); font-size: 1rem; letter-spacing: 0.04em; color: #38bdf8; }
.draft-note { background: var(--err-bg); border-left: 5px solid #ef4444; padding: 12px 16px; border-radius: var(--radius); margin-bottom: 20px; }

/* ---------------- Smooth Micro-Animations & Ambient Motion ---------------- */
@keyframes fadeUpIn {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes tabSlideIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes ambientBreath {
  0%, 100% {
    box-shadow: 0 0 36px rgba(59, 130, 246, 0.18);
  }
  50% {
    box-shadow: 0 0 58px rgba(59, 130, 246, 0.34), 0 0 24px rgba(168, 85, 247, 0.18);
  }
}

@keyframes radarSpin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes waveHand {
  0%, 100% { transform: rotate(0deg); }
  50% { transform: rotate(8deg) translateY(-3px); }
}

@keyframes signalFlow {
  to { stroke-dashoffset: -28; }
}

@keyframes pulseHalo {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.06); }
}

.hero > div:first-child {
  animation: fadeUpIn 0.65s cubic-bezier(0.22, 1, 0.36, 1) both;
}
.mascot-stage {
  animation: fadeUpIn 0.8s cubic-bezier(0.22, 1, 0.36, 1) 0.1s both;
}
.radar-ring-spin {
  transform-origin: 205px 195px;
  animation: radarSpin 28s linear infinite;
}
.bot-wave-arm {
  transform-origin: 275px 215px;
  animation: waveHand 2.6s ease-in-out infinite;
}
.led-glow {
  animation: pulseHalo 2.2s ease-in-out infinite;
}

.tracks-grid > .track-card:nth-child(1) { animation: fadeUpIn 0.55s cubic-bezier(0.22, 1, 0.36, 1) 0.05s both; }
.tracks-grid > .track-card:nth-child(2) { animation: fadeUpIn 0.55s cubic-bezier(0.22, 1, 0.36, 1) 0.12s both; }
.tracks-grid > .track-card:nth-child(3) { animation: fadeUpIn 0.55s cubic-bezier(0.22, 1, 0.36, 1) 0.19s both; }
.tracks-grid > .track-card:nth-child(4) { animation: fadeUpIn 0.55s cubic-bezier(0.22, 1, 0.36, 1) 0.26s both; }

.track-orb {
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.3s;
}
.track-card:hover .track-orb {
  transform: scale(1.1) translateY(-3px);
  box-shadow: 0 0 24px rgba(59, 130, 246, 0.35);
}

.step-cube {
  transition: transform 0.25s cubic-bezier(0.22, 1, 0.36, 1);
}
.journey-step:hover .step-cube {
  transform: translateY(-5px) scale(1.08);
}

.level-row-card,
.bento-box,
.task-card,
.material-pill-item,
.part-card,
.quiz-card {
  transition: transform 0.22s cubic-bezier(0.22, 1, 0.36, 1), border-color 0.22s, box-shadow 0.22s;
}
.level-row-card:hover,
.task-card:hover,
.material-pill-item:hover,
.part-card:hover {
  transform: translateY(-3px);
  border-color: rgba(96, 165, 250, 0.55);
}
.bento-box:hover {
  transform: translateY(-6px) scale(1.02);
  border-color: rgba(96, 165, 250, 0.65);
  box-shadow: 0 12px 30px rgba(59, 130, 246, 0.22);
}

.video {
  animation: ambientBreath 5s ease-in-out infinite;
}
.studio-tab-panel {
  animation: tabSlideIn 0.32s cubic-bezier(0.22, 1, 0.36, 1) both;
}
.wire-flow {
  stroke-dasharray: 8 6;
  animation: signalFlow 1.2s linear infinite;
}

.reveal-on-scroll {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s cubic-bezier(0.22, 1, 0.36, 1), transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}
.reveal-on-scroll.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .reveal-on-scroll {
    opacity: 1;
    transform: none;
  }
}
