/* ============================================================
   NöroTerbiye — Dark Neural Design System
   Sinaps temalı, glassmorphism kartlar, gradient aksanlar
   ============================================================ */

:root {
  --nt-primary: #6366f1;
  --nt-primary-soft: rgba(99,102,241,0.12);
  --nt-primary-glow: rgba(99,102,241,0.35);
  --nt-green: #10b981;
  --nt-green-soft: rgba(16,185,129,0.12);
  --nt-amber: #f59e0b;
  --nt-amber-soft: rgba(245,158,11,0.12);
  --nt-red: #ef4444;
  --nt-red-soft: rgba(239,68,68,0.12);
  --nt-cyan: #06b6d4;
  --nt-cyan-soft: rgba(6,182,212,0.12);
  --nt-purple: #a855f7;
  --nt-purple-soft: rgba(168,85,247,0.12);
  --nt-rose: #f43f5e;
  --nt-rose-soft: rgba(244,63,94,0.12);
  --nt-orange: #f97316;
  --nt-orange-soft: rgba(249,115,22,0.12);
  --nt-max-w: 1100px;
  --nt-content-w: 760px;
  --nt-grad: linear-gradient(135deg, #6366f1, #06b6d4);
  --nt-grad-text: linear-gradient(135deg, #818cf8, #22d3ee);
  --nt-glass: rgba(255,255,255,0.04);
  --nt-glass-border: rgba(255,255,255,0.08);
  --nt-glass-hover: rgba(255,255,255,0.07);
}

html.light {
  --nt-primary-soft: rgba(99,102,241,0.08);
  --nt-primary-glow: rgba(99,102,241,0.18);
  --nt-green-soft: rgba(16,185,129,0.08);
  --nt-amber-soft: rgba(245,158,11,0.08);
  --nt-red-soft: rgba(239,68,68,0.08);
  --nt-cyan-soft: rgba(6,182,212,0.08);
  --nt-purple-soft: rgba(168,85,247,0.08);
  --nt-rose-soft: rgba(244,63,94,0.08);
  --nt-orange-soft: rgba(249,115,22,0.08);
  --nt-glass: rgba(0,0,0,0.03);
  --nt-glass-border: rgba(0,0,0,0.08);
  --nt-glass-hover: rgba(0,0,0,0.05);
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  line-height: 1.7;
  overflow-x: hidden;
}

/* Neural ambient background */
body::before {
  content: '';
  position: fixed; inset: 0;
  background:
    radial-gradient(ellipse 80% 50% at 20% -10%, rgba(99,102,241,0.15) 0%, transparent 60%),
    radial-gradient(ellipse 60% 40% at 80% 100%, rgba(6,182,212,0.1) 0%, transparent 50%),
    radial-gradient(ellipse 40% 30% at 50% 50%, rgba(168,85,247,0.05) 0%, transparent 50%);
  pointer-events: none; z-index: 0;
}

/* Subtle grain texture */
body::after {
  content: '';
  position: fixed; inset: 0;
  pointer-events: none; z-index: 999;
  opacity: 0.02;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-repeat: repeat; background-size: 200px;
}

/* ── Layout ── */
.nt-wrap {
  max-width: var(--nt-max-w);
  margin: 0 auto;
  padding: 0 20px;
  position: relative;
  z-index: 1;
}

.nt-narrow { max-width: var(--nt-content-w); margin: 0 auto; }

.nt-section { padding: 60px 0; }
.nt-section + .nt-section { padding-top: 20px; }

/* Section divider (gradient line) */
.nt-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--nt-glass-border), rgba(99,102,241,0.2), var(--nt-glass-border), transparent);
  margin: 20px 0;
  border: none;
}

/* ── Typography ── */
.nt-title {
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.03em;
  color: var(--text);
}

.nt-title-gradient {
  background: var(--nt-grad-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.nt-subtitle {
  font-size: clamp(1rem, 2.5vw, 1.2rem);
  color: var(--text-secondary);
  line-height: 1.6;
  max-width: 600px;
}

.nt-section-title {
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 24px;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 10px;
}

.nt-section-title .nt-icon { font-size: 1.2rem; }

.nt-label {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted2);
}

/* ── Hero ── */
.nt-hero {
  min-height: 90vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 120px 20px 60px;
  position: relative;
  overflow: hidden;
}

.nt-hero .nt-title { margin-bottom: 20px; }
.nt-hero .nt-subtitle { margin: 0 auto 40px; }

/* Animated neural orbs */
.nt-hero-glow {
  position: absolute;
  width: 600px; height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(99,102,241,0.2) 0%, transparent 70%);
  top: 5%; left: 50%;
  transform: translateX(-50%);
  pointer-events: none;
  animation: nt-pulse 6s ease-in-out infinite;
}

.nt-hero-orb-1 {
  position: absolute;
  width: 300px; height: 300px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(6,182,212,0.12) 0%, transparent 70%);
  bottom: 10%; left: 10%;
  pointer-events: none;
  animation: nt-float 8s ease-in-out infinite;
}

.nt-hero-orb-2 {
  position: absolute;
  width: 200px; height: 200px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(168,85,247,0.1) 0%, transparent 70%);
  top: 20%; right: 5%;
  pointer-events: none;
  animation: nt-float 10s ease-in-out infinite reverse;
}

@keyframes nt-pulse {
  0%, 100% { opacity: 0.5; transform: translateX(-50%) scale(1); }
  50% { opacity: 0.8; transform: translateX(-50%) scale(1.15); }
}

@keyframes nt-float {
  0%, 100% { transform: translate(0, 0); }
  33% { transform: translate(15px, -20px); }
  66% { transform: translate(-10px, 10px); }
}

/* Book cover glow */
.nt-book-cover {
  position: relative;
  display: inline-block;
}

.nt-book-cover img {
  border-radius: var(--radius-md);
  box-shadow: 0 16px 48px rgba(0,0,0,0.5), 0 0 80px rgba(99,102,241,0.15);
  border: 1px solid var(--nt-glass-border);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.nt-book-cover:hover img {
  transform: translateY(-6px) rotate(-1deg);
  box-shadow: 0 24px 56px rgba(0,0,0,0.5), 0 0 100px rgba(99,102,241,0.25);
}

/* ── Glassmorphism Cards ── */
.nt-card {
  background: var(--nt-glass);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--nt-glass-border);
  border-radius: var(--radius-lg);
  padding: 24px;
  transition: all 0.25s ease;
  cursor: default;
}

.nt-card:hover {
  background: var(--nt-glass-hover);
  border-color: rgba(99,102,241,0.15);
  box-shadow: 0 4px 24px rgba(0,0,0,0.2);
}

.nt-card-clickable {
  cursor: pointer;
}

.nt-card-clickable:hover {
  transform: translateY(-3px);
  border-color: rgba(99,102,241,0.25);
  box-shadow: 0 8px 32px rgba(0,0,0,0.3), 0 0 20px rgba(99,102,241,0.08);
}

/* ── Grid ── */
.nt-grid {
  display: grid;
  gap: 16px;
}

.nt-grid-2 { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
.nt-grid-3 { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.nt-grid-4 { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }

/* ── Buttons ── */
.nt-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: var(--radius-full);
  font-family: var(--font-sans);
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: all 0.25s ease;
  line-height: 1;
  white-space: nowrap;
}

.nt-btn-primary {
  background: var(--nt-grad);
  color: #fff;
  box-shadow: 0 2px 12px rgba(99,102,241,0.2);
}
.nt-btn-primary:hover {
  box-shadow: 0 4px 24px rgba(99,102,241,0.35);
  transform: translateY(-1px);
  filter: brightness(1.1);
}

.nt-btn-secondary {
  background: var(--nt-glass);
  color: var(--text);
  border: 1px solid var(--nt-glass-border);
  backdrop-filter: blur(8px);
}
.nt-btn-secondary:hover {
  border-color: rgba(99,102,241,0.3);
  background: var(--nt-glass-hover);
  box-shadow: 0 0 16px rgba(99,102,241,0.1);
}

.nt-btn-ghost {
  background: transparent;
  color: var(--text-secondary);
  padding: 8px 16px;
}
.nt-btn-ghost:hover { color: var(--text); background: var(--nt-glass); }

.nt-btn-sm { padding: 8px 18px; font-size: 0.8rem; }
.nt-btn-lg { padding: 16px 36px; font-size: 1rem; }

/* ── Tags / Badges ── */
.nt-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  font-size: 0.72rem;
  font-weight: 600;
  background: var(--nt-glass);
  color: var(--text-secondary);
  border: 1px solid var(--nt-glass-border);
}

.nt-tag-primary { background: var(--nt-primary-soft); color: #818cf8; border-color: rgba(99,102,241,0.2); }
.nt-tag-green { background: var(--nt-green-soft); color: #34d399; border-color: rgba(16,185,129,0.2); }
.nt-tag-amber { background: var(--nt-amber-soft); color: #fbbf24; border-color: rgba(245,158,11,0.2); }
.nt-tag-red { background: var(--nt-red-soft); color: #f87171; border-color: rgba(239,68,68,0.2); }
.nt-tag-cyan { background: var(--nt-cyan-soft); color: #22d3ee; border-color: rgba(6,182,212,0.2); }
.nt-tag-purple { background: var(--nt-purple-soft); color: #c084fc; border-color: rgba(168,85,247,0.2); }

/* ── Search ── */
.nt-search {
  position: relative;
  margin-bottom: 24px;
}
.nt-search input {
  width: 100%;
  padding: 14px 20px 14px 48px;
  background: var(--nt-glass);
  backdrop-filter: blur(8px);
  border: 1px solid var(--nt-glass-border);
  border-radius: var(--radius-lg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 0.95rem;
  outline: none;
  transition: all 0.25s ease;
}
.nt-search input:focus {
  border-color: rgba(99,102,241,0.4);
  box-shadow: 0 0 20px rgba(99,102,241,0.1);
}
.nt-search input::placeholder { color: var(--muted); }
.nt-search-icon {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--muted);
  pointer-events: none;
}

/* ── Filters ── */
.nt-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
}

.nt-filter-btn {
  padding: 6px 16px;
  border-radius: var(--radius-full);
  background: var(--nt-glass);
  border: 1px solid var(--nt-glass-border);
  color: var(--text-secondary);
  font-size: 0.8rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.25s ease;
  font-family: var(--font-sans);
}
.nt-filter-btn:hover {
  border-color: rgba(99,102,241,0.3);
  color: var(--text);
  background: var(--nt-glass-hover);
}
.nt-filter-btn.active {
  background: var(--nt-grad);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 2px 12px rgba(99,102,241,0.2);
}

/* ── Quiz / Test UI ── */
.nt-quiz-progress {
  height: 4px;
  background: var(--nt-glass);
  border-radius: 2px;
  margin-bottom: 32px;
  overflow: hidden;
}
.nt-quiz-progress-bar {
  height: 100%;
  background: var(--nt-grad);
  border-radius: 2px;
  transition: width 0.4s ease;
}

.nt-quiz-question {
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 24px;
  line-height: 1.5;
}

.nt-quiz-option {
  display: block;
  width: 100%;
  text-align: left;
  padding: 16px 20px;
  margin-bottom: 10px;
  background: var(--nt-glass);
  border: 1px solid var(--nt-glass-border);
  border-radius: var(--radius-md);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.25s ease;
}
.nt-quiz-option:hover {
  border-color: rgba(99,102,241,0.4);
  background: var(--nt-primary-soft);
  box-shadow: 0 0 16px rgba(99,102,241,0.08);
}
.nt-quiz-option.correct {
  border-color: var(--nt-green);
  background: var(--nt-green-soft);
  box-shadow: 0 0 16px rgba(16,185,129,0.1);
}
.nt-quiz-option.wrong {
  border-color: var(--nt-red);
  background: var(--nt-red-soft);
}
.nt-quiz-option.selected {
  border-color: var(--nt-primary);
  border-width: 2px;
}

.nt-quiz-explanation {
  padding: 16px 20px;
  background: var(--nt-glass);
  border-radius: var(--radius-md);
  font-size: 0.88rem;
  color: var(--text-secondary);
  margin-top: 16px;
  border-left: 3px solid var(--nt-primary);
}

/* ── Result Card ── */
.nt-result {
  text-align: center;
  padding: 48px 32px;
}

.nt-result-score {
  font-size: 4rem;
  font-weight: 800;
  background: var(--nt-grad-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
  margin-bottom: 8px;
}

.nt-result-label {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 16px;
}

.nt-result-text {
  color: var(--text-secondary);
  max-width: 480px;
  margin: 0 auto 32px;
  line-height: 1.6;
}

.nt-result-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ── Meter / Gauge ── */
.nt-meter {
  height: 8px;
  background: var(--nt-glass);
  border-radius: 4px;
  overflow: hidden;
  margin: 8px 0;
}
.nt-meter-fill {
  height: 100%;
  background: var(--nt-grad);
  border-radius: 4px;
  transition: width 0.6s ease;
}

/* ── Modal ── */
.nt-modal-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.7);
  backdrop-filter: blur(8px);
  z-index: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s;
}
.nt-modal-overlay.active { opacity: 1; pointer-events: auto; }

.nt-modal {
  background: var(--bg-elevated);
  border: 1px solid var(--nt-glass-border);
  border-radius: var(--radius-xl);
  max-width: 560px;
  width: 100%;
  max-height: 85vh;
  overflow-y: auto;
  padding: 32px;
  box-shadow: 0 24px 64px rgba(0,0,0,0.5), 0 0 40px rgba(99,102,241,0.08);
}

/* ── Stat boxes ── */
.nt-stats {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin: 32px 0;
}

.nt-stat {
  text-align: center;
  padding: 20px 28px;
  background: var(--nt-glass);
  backdrop-filter: blur(8px);
  border: 1px solid var(--nt-glass-border);
  border-radius: var(--radius-lg);
  min-width: 140px;
  transition: all 0.25s ease;
}

.nt-stat:hover {
  border-color: rgba(99,102,241,0.2);
  box-shadow: 0 0 20px rgba(99,102,241,0.08);
}

.nt-stat-num {
  font-size: 2rem;
  font-weight: 800;
  background: var(--nt-grad-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
}

.nt-stat-label {
  font-size: 0.75rem;
  color: var(--text-secondary);
  margin-top: 4px;
}

/* ── Entry Gates ── */
.nt-gates {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 16px;
}

.nt-gate {
  background: var(--nt-glass);
  backdrop-filter: blur(12px);
  border: 1px solid var(--nt-glass-border);
  border-radius: var(--radius-xl);
  padding: 32px 24px;
  text-align: center;
  text-decoration: none;
  color: var(--text);
  transition: all 0.3s ease;
  cursor: pointer;
  display: block;
  position: relative;
  overflow: hidden;
}

.nt-gate::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--nt-grad);
  opacity: 0;
  transition: opacity 0.3s ease;
  border-radius: inherit;
}

.nt-gate:hover {
  border-color: rgba(99,102,241,0.3);
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.3), 0 0 30px rgba(99,102,241,0.1);
}

.nt-gate:hover::before { opacity: 0.06; }

.nt-gate-icon { font-size: 2.5rem; margin-bottom: 12px; position: relative; }
.nt-gate-title { font-size: 1.1rem; font-weight: 700; margin-bottom: 6px; position: relative; }
.nt-gate-desc { font-size: 0.85rem; color: var(--text-secondary); line-height: 1.5; position: relative; }

/* ── Info Card ── */
.nt-info-card {
  background: var(--nt-glass);
  backdrop-filter: blur(8px);
  border: 1px solid var(--nt-glass-border);
  border-radius: var(--radius-lg);
  padding: 24px;
  position: relative;
  overflow: hidden;
  transition: all 0.25s ease;
}

.nt-info-card:hover {
  border-color: rgba(99,102,241,0.2);
  box-shadow: 0 4px 20px rgba(0,0,0,0.2);
}

.nt-info-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 3px; height: 100%;
  background: var(--nt-grad);
  border-radius: 0 2px 2px 0;
}

.nt-info-card-title {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.nt-info-card-text {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 12px;
}

.nt-info-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* ── Form elements ── */
.nt-form-group { margin-bottom: 20px; }

.nt-form-label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 6px;
}

.nt-input, .nt-textarea, .nt-select {
  width: 100%;
  padding: 12px 16px;
  background: var(--nt-glass);
  border: 1px solid var(--nt-glass-border);
  border-radius: var(--radius-md);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 0.9rem;
  outline: none;
  transition: all 0.25s ease;
}
.nt-input:focus, .nt-textarea:focus, .nt-select:focus {
  border-color: rgba(99,102,241,0.4);
  box-shadow: 0 0 16px rgba(99,102,241,0.1);
}
.nt-textarea { min-height: 100px; resize: vertical; }

/* ── Tabs ── */
.nt-tabs {
  display: flex;
  gap: 4px;
  border-bottom: 1px solid var(--nt-glass-border);
  margin-bottom: 24px;
}

.nt-tab {
  padding: 10px 20px;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-secondary);
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  cursor: pointer;
  font-family: var(--font-sans);
  transition: all 0.25s ease;
}
.nt-tab:hover { color: var(--text); }
.nt-tab.active {
  color: #818cf8;
  border-bottom-color: var(--nt-primary);
}

/* ── Nav (Hamburger Menu) ── */
.nt-nav {
  position: fixed;
  top: 12px;
  right: 12px;
  z-index: 300;
}

/* Toggle button */
.nt-nav-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: rgba(10,10,15,0.7);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--nt-glass-border);
  border-radius: var(--radius-full);
  color: var(--text-secondary);
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.25s ease;
  line-height: 1;
}

html.light .nt-nav-toggle {
  background: rgba(245,245,250,0.8);
}

.nt-nav-toggle:hover {
  color: var(--text);
  border-color: rgba(99,102,241,0.3);
  box-shadow: 0 0 16px rgba(99,102,241,0.1);
}

.nt-nav-hamburger {
  display: flex;
  flex-direction: column;
  gap: 3px;
  width: 16px;
}
.nt-nav-hamburger span {
  display: block;
  height: 1.5px;
  background: currentColor;
  border-radius: 1px;
  transition: all 0.2s ease;
}

/* Overlay */
.nt-nav-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(4px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  z-index: 310;
}
.nt-nav-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

/* Side panel */
.nt-nav-panel {
  position: fixed;
  top: 0;
  right: -320px;
  width: 300px;
  max-width: 85vw;
  height: 100vh;
  background: rgba(10,10,15,0.95);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-left: 1px solid var(--nt-glass-border);
  z-index: 320;
  transition: right 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
  overflow-y: auto;
}

html.light .nt-nav-panel {
  background: rgba(245,245,250,0.97);
}

.nt-nav-panel.open {
  right: 0;
}

.nt-nav-panel-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 24px;
  border-bottom: 1px solid var(--nt-glass-border);
}

.nt-nav-brand {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
}

.nt-nav-close {
  background: none;
  border: none;
  color: var(--text-secondary);
  font-size: 1.6rem;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: var(--radius-sm);
  transition: all 0.2s ease;
  line-height: 1;
}
.nt-nav-close:hover {
  color: var(--text);
  background: var(--nt-glass-hover);
}

/* Nav links inside panel */
.nt-nav-links {
  display: flex;
  flex-direction: column;
  padding: 16px 12px;
  gap: 2px;
}

.nt-nav-links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  padding: 12px 16px;
  border-radius: var(--radius-md);
  transition: all 0.2s ease;
  border: 1px solid transparent;
}

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

.nt-nav-links a.active {
  background: var(--nt-primary-soft);
  color: #818cf8;
  border-color: rgba(99,102,241,0.2);
  font-weight: 600;
}

.nt-nav-links a.nt-nav-highlight {
  background: var(--nt-green-soft);
  color: #34d399;
  border-color: rgba(16,185,129,0.2);
  font-weight: 700;
  margin-top: 8px;
}

/* ── Footer ── */
.nt-footer {
  text-align: center;
  padding: 48px 20px;
  color: var(--muted);
  font-size: 0.78rem;
  border-top: 1px solid var(--nt-glass-border);
  margin-top: 60px;
  position: relative;
}

.nt-footer::before {
  content: '';
  position: absolute;
  top: -1px; left: 50%;
  transform: translateX(-50%);
  width: 200px; height: 1px;
  background: var(--nt-grad);
  opacity: 0.5;
}

.nt-footer a { color: var(--text-secondary); text-decoration: none; }
.nt-footer a:hover { color: #818cf8; }

/* ── Responsive ── */
@media (max-width: 640px) {
  .nt-hero { min-height: 70vh; padding: 80px 16px 40px; }
  .nt-hero .nt-book-cover img { max-width: 150px; }
  .nt-title { font-size: clamp(1.4rem, 5vw, 2rem); }
  .nt-section { padding: 40px 0; }
  .nt-card { padding: 14px; font-size: 0.9rem; }
  .nt-gates { grid-template-columns: 1fr; }
  .nt-stats {
    flex-direction: row;
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    justify-content: flex-start;
    gap: 10px;
    padding-bottom: 8px;
  }
  .nt-stat { min-width: 110px; flex-shrink: 0; padding: 14px 16px; }
  .nt-stat-num { font-size: 1.5rem; }
  .nt-result-score { font-size: 3rem; }
  .nt-grid-3 { grid-template-columns: 1fr; }
  .nt-grid-4 { grid-template-columns: repeat(2, 1fr); }
  .nt-nav-toggle-label { display: none; }
  .nt-scroll-hint { display: none; }
}

@media (max-width: 380px) {
  .nt-hero { min-height: 60vh; padding: 64px 12px 32px; }
  .nt-hero .nt-book-cover img { max-width: 120px; }
  .nt-title { font-size: clamp(1.2rem, 5vw, 1.6rem); }
  .nt-section { padding: 28px 0; }
  .nt-wrap { padding: 0 12px; }
  .nt-card { padding: 10px; font-size: 0.85rem; }
  .nt-stat { min-width: 95px; padding: 10px 12px; }
  .nt-stat-num { font-size: 1.3rem; }
  .nt-btn { padding: 10px 20px; font-size: 0.82rem; }
  .nt-gate { padding: 20px 16px; }
  .nt-gate-icon { font-size: 2rem; }
  .nt-cinematic-inner { padding: 24px 14px; gap: 16px; }
}

/* ── Animations ── */
.nt-fade-in {
  opacity: 0;
  transform: translateY(20px);
  animation: ntFadeIn 0.6s ease forwards;
}

@keyframes ntFadeIn {
  to { opacity: 1; transform: translateY(0); }
}

/* Scroll reveal */
.nt-reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.nt-reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.nt-stagger > * {
  opacity: 0;
  transform: translateY(16px);
  animation: ntFadeIn 0.5s ease forwards;
}
.nt-stagger > *:nth-child(1) { animation-delay: 0.05s; }
.nt-stagger > *:nth-child(2) { animation-delay: 0.1s; }
.nt-stagger > *:nth-child(3) { animation-delay: 0.15s; }
.nt-stagger > *:nth-child(4) { animation-delay: 0.2s; }
.nt-stagger > *:nth-child(5) { animation-delay: 0.25s; }
.nt-stagger > *:nth-child(6) { animation-delay: 0.3s; }
.nt-stagger > *:nth-child(7) { animation-delay: 0.35s; }
.nt-stagger > *:nth-child(8) { animation-delay: 0.4s; }
.nt-stagger > *:nth-child(9) { animation-delay: 0.45s; }

/* ── Scrollbar ── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(99,102,241,0.2); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: rgba(99,102,241,0.35); }

/* ── Game-specific ── */
.nt-game-board {
  background: var(--nt-glass);
  backdrop-filter: blur(12px);
  border: 1px solid var(--nt-glass-border);
  border-radius: var(--radius-xl);
  padding: 32px;
  min-height: 400px;
}

.nt-drag-item {
  padding: 12px 18px;
  background: var(--nt-glass-hover);
  border: 1px solid var(--nt-glass-border);
  border-radius: var(--radius-md);
  cursor: grab;
  font-size: 0.9rem;
  transition: all 0.25s ease;
  user-select: none;
}
.nt-drag-item:active { cursor: grabbing; transform: scale(1.03); }

.nt-drop-zone {
  min-height: 100px;
  border: 2px dashed var(--nt-glass-border);
  border-radius: var(--radius-lg);
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 16px;
  transition: all 0.25s ease;
}
.nt-drop-zone.over {
  border-color: var(--nt-primary);
  background: var(--nt-primary-soft);
  box-shadow: 0 0 20px rgba(99,102,241,0.1);
}

/* ── Shareable result ── */
.nt-share-card {
  background: linear-gradient(135deg, var(--bg) 0%, var(--surface) 100%);
  border: 1px solid var(--nt-glass-border);
  border-radius: var(--radius-xl);
  padding: 40px 32px;
  text-align: center;
  max-width: 400px;
  margin: 0 auto;
}

.nt-share-card .nt-share-brand {
  font-size: 0.7rem;
  color: var(--muted);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-top: 20px;
}

/* ── Kitap Bandı (promo card) ── */
.nt-promo {
  background: var(--nt-glass);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(99,102,241,0.2);
  border-radius: var(--radius-xl);
  padding: 48px 32px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.nt-promo::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--nt-grad);
  opacity: 0.04;
  pointer-events: none;
}

/* ── Neural Canvas ── */
#neural-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: auto;
}

@media (max-width: 768px) {
  #neural-canvas { display: none; }
}

.nt-hero > *:not(#neural-canvas):not(.nt-hero-glow):not(.nt-hero-orb-1):not(.nt-hero-orb-2) {
  position: relative;
  z-index: 2;
}

/* ── Scroll Hint ── */
.nt-scroll-hint {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  color: var(--muted2);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  animation: nt-bounce 2s ease-in-out infinite;
  z-index: 2;
}

@keyframes nt-bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(8px); }
}

/* ── Timeline Stepper ── */
.nt-timeline {
  position: relative;
}

.nt-timeline-track {
  height: 3px;
  background: var(--nt-glass);
  border-radius: 2px;
  margin-bottom: 16px;
  overflow: hidden;
}

.nt-timeline-progress {
  height: 100%;
  background: var(--nt-grad);
  border-radius: 2px;
  transition: width 0.4s ease;
  width: 0%;
  box-shadow: 0 0 8px rgba(99,102,241,0.3);
}

.nt-timeline-steps {
  display: flex;
  justify-content: space-between;
  margin-bottom: 20px;
  margin-top: -10px;
}

.nt-timeline-step {
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  transition: all 0.25s ease;
}

.nt-timeline-dot {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--nt-glass);
  border: 2px solid var(--nt-glass-border);
  font-size: 0.9rem;
  transition: all 0.25s ease;
}

.nt-timeline-step.active .nt-timeline-dot {
  border-color: var(--nt-primary);
  background: var(--nt-primary-soft);
  box-shadow: 0 0 12px rgba(99,102,241,0.2);
  transform: scale(1.1);
}

.nt-timeline-step:hover .nt-timeline-dot {
  border-color: rgba(99,102,241,0.4);
  transform: scale(1.05);
}

/* ── Cinematic CTA (Kitap Bandı) ── */
.nt-cinematic-cta {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  border: 1px solid rgba(99,102,241,0.15);
}

.nt-cinematic-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 20% 50%, rgba(99,102,241,0.12) 0%, transparent 60%),
    radial-gradient(ellipse 60% 50% at 80% 50%, rgba(6,182,212,0.08) 0%, transparent 50%),
    var(--nt-glass);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.nt-cinematic-inner {
  position: relative;
  display: flex;
  align-items: center;
  gap: 48px;
  padding: 48px 40px;
}

.nt-cinematic-left {
  flex-shrink: 0;
}

.nt-cinematic-book {
  border-radius: var(--radius-md);
  box-shadow: 0 20px 50px rgba(0,0,0,0.5), 0 0 60px rgba(99,102,241,0.12);
  transition: transform 0.4s ease;
}

.nt-cinematic-cta:hover .nt-cinematic-book {
  transform: translateY(-4px) rotate(-1deg);
}

.nt-cinematic-features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 20px;
}

.nt-cinematic-feat {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  color: var(--text-secondary);
  padding: 8px 12px;
  background: var(--nt-glass);
  border-radius: var(--radius-sm);
  border: 1px solid var(--nt-glass-border);
}

.nt-cinematic-feat span { font-size: 1.1rem; }

@media (max-width: 640px) {
  .nt-cinematic-inner {
    flex-direction: column;
    text-align: center;
    padding: 32px 20px;
    gap: 24px;
  }
  .nt-cinematic-features {
    grid-template-columns: 1fr;
    max-width: 260px;
    margin: 0 auto 20px;
  }
  .nt-cinematic-right { display: flex; flex-direction: column; align-items: center; }
  .nt-cinematic-right p { text-align: center; }
  .nt-cinematic-cta:hover .nt-cinematic-book { transform: none; }
  .nt-timeline-dot { width: 24px; height: 24px; font-size: 0.65rem; }
}

/* ── Print Styles ── */
@media print {
  .nt-nav, .nt-footer, .nt-btn, button,
  .nt-quiz-progress, .nt-result-actions,
  .data-actions, .streak-banner { display: none !important; }

  body, html { background: #fff !important; color: #1a1a2e !important; }
  body::before, body::after { display: none !important; }
  * { color-adjust: exact; -webkit-print-color-adjust: exact; print-color-adjust: exact; }

  .nt-section { padding: 0 !important; }
  .nt-wrap { max-width: 100% !important; padding: 0 !important; }
  .nt-card, .nt-info-card, .nt-gate {
    background: #fff !important;
    border: 1px solid #d1d5db !important;
    backdrop-filter: none !important;
    break-inside: avoid;
  }

  .bar, .chart-bar, .score-fill, .nt-meter-fill { print-color-adjust: exact; -webkit-print-color-adjust: exact; }
  .nt-fade-in, .nt-stagger > *, .nt-reveal { opacity: 1 !important; transform: none !important; animation: none !important; }
}
