/* ===== DESIGN TOKENS ===== */
:root {
  --bg: #060608;
  --surface: #0e0f13;
  --surface-2: #16181f;
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.14);
  --text: #f0f2f7;
  --text-muted: #d4d7e0;
  --text-dim: #b0b1b4;
  --accent: #38bdf8;
  --accent-dim: rgba(56, 189, 248, 0.12);
  --accent-glow: rgba(56, 189, 248, 0.25);
  --green: #4ade80;
  --font-display: 'Syne', sans-serif;
  --font-body: 'DM Sans', sans-serif;
  --radius: 16px;
  --radius-sm: 10px;
  --radius-pill: 999px;
  --shadow: 0 24px 48px rgba(0, 0, 0, 0.5);
  --shadow-sm: 0 8px 24px rgba(0, 0, 0, 0.3);
}

/* ===== 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-body);
  font-size: 16px;
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* ===== BACKGROUND EFFECTS ===== */
.bg-grid {
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(56, 189, 248, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(56, 189, 248, 0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
  z-index: 0;
}

.orb {
  position: fixed;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
  z-index: 0;
}

.orb-1 {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(56, 189, 248, 0.08) 0%, transparent 70%);
  top: -100px;
  right: -100px;
}

.orb-2 {
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.06) 0%, transparent 70%);
  bottom: 200px;
  left: -100px;
}

/* ===== HEADER / NAV ===== */
#header {
  position: sticky;
  top: 0;
  z-index: 100;
}

.menu {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 clamp(20px, 6vw, 80px);
  height: 64px;
  background: rgba(6, 6, 8, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}

.logo-mark {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.5px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.logo-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 10px var(--accent-glow);
  animation: pulse-dot 2.5s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.6; transform: scale(0.8); }
}

.logo-accent {
  color: var(--accent);
}

.menu-links {
  display: flex;
  align-items: center;
  gap: 4px;
}

.menu-item {
  text-decoration: none;
  color: var(--text-muted);
  font-size: 0.875rem;
  font-weight: 500;
  padding: 6px 14px;
  border-radius: var(--radius-sm);
  transition: color 0.2s, background 0.2s;
}

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

.menu-item.cta-link {
  color: var(--accent);
  background: var(--accent-dim);
  border: 1px solid rgba(56, 189, 248, 0.2);
  margin-left: 8px;
}

.menu-item.cta-link:hover {
  background: rgba(56, 189, 248, 0.18);
  color: var(--accent);
}

/* ===== HERO ===== */
.main {
  position: relative;
  z-index: 1;
}

.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 80px clamp(20px, 6vw, 80px) 120px;
  overflow: hidden;
}

.hero-image-wrap {
  position: absolute;
  inset: 0;
  z-index: -1;
}

.hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: 0.18;
}

.hero-img-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(6, 6, 8, 0.4) 0%,
    rgba(6, 6, 8, 0.1) 40%,
    rgba(6, 6, 8, 0.6) 80%,
    var(--bg) 100%
  );
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  background: var(--accent-dim);
  border: 1px solid rgba(56, 189, 248, 0.2);
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--accent);
  letter-spacing: 0.02em;
  margin-bottom: 32px;
  animation: fadeInDown 0.6s ease both;
}

.badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 8px var(--accent);
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 6vw, 4.5rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: var(--text);
  margin-bottom: 24px;
  animation: fadeInUp 0.7s 0.1s ease both;
}

.title-gradient {
  background: linear-gradient(135deg, var(--accent) 0%, #818cf8 60%, #c084fc 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-sub {
  max-width: 560px;
  color: var(--text-muted);
  font-size: 1.05rem;
  line-height: 1.7;
  margin-bottom: 40px;
  animation: fadeInUp 0.7s 0.2s ease both;
}

.hero-sub strong {
  color: var(--text);
  font-weight: 500;
}

.hero-stats {
  display: flex;
  align-items: center;
  gap: 0;
  margin-bottom: 48px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  padding: 16px 32px;
  animation: fadeInUp 0.7s 0.3s ease both;
}

.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0 28px;
}

.stat-num {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1;
}

.stat-label {
  font-size: 0.75rem;
  color: var(--text-dim);
  margin-top: 4px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.stat-divider {
  width: 1px;
  height: 36px;
  background: var(--border);
}

.hero-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: var(--radius-pill);
  background: transparent;
  border: 1px solid var(--border-strong);
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  transition: all 0.2s ease;
  animation: fadeInUp 0.7s 0.4s ease both;
}

.hero-cta-btn:hover {
  background: rgba(255,255,255,0.05);
  color: var(--text);
  border-color: rgba(255,255,255,0.2);
  transform: translateY(2px);
}

/* ===== SAYFA / TEST AREA ===== */
.sayfa {
  min-height: 100vh;
  padding: 0 clamp(20px, 6vw, 80px) 120px;
  position: relative;
}

/* ===== INTRO SECTION ===== */
#intro-section {
  max-width: 640px;
  margin: 120px auto 60px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 40px 36px;
  text-align: center;
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}

#intro-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
}

.intro-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--accent-dim);
  border: 1px solid rgba(56,189,248,0.2);
  margin-bottom: 20px;
}

#intro-section h2 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 12px;
}

#intro-section p {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.7;
  margin-bottom: 24px;
}

#intro-section p strong {
  color: var(--text);
}

.intro-methodology {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 28px;
}

.method-tag {
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  font-size: 0.75rem;
  color: var(--text-dim);
  letter-spacing: 0.02em;
}

/* ===== QUIZ SECTION ===== */
#quiz-section {
  max-width: 680px;
  margin: 40px auto 80px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 32px 28px;
  box-shadow: var(--shadow);
}

.quiz-header {
  margin-bottom: 24px;
}

.quiz-header-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}

.quiz-header-row .progress {
  margin-bottom: 0;
  flex: 1;
  min-width: min(100%, 200px);
}

.quiz-timer {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
  flex-shrink: 0;
}

.quiz-timer-label {
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.quiz-timer-display {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--accent);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.02em;
  transition: color 0.25s ease;
}

.quiz-timer-display.is-urgent {
  color: #fbbf24;
  text-shadow: 0 0 20px rgba(251, 191, 36, 0.25);
}

.timer-warning-banner {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 14px;
  margin-bottom: 20px;
  border-radius: var(--radius-sm);
  background: rgba(251, 191, 36, 0.08);
  border: 1px solid rgba(251, 191, 36, 0.35);
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.45;
}

.timer-warning-banner.hidden {
  display: none;
}

.timer-warning-icon {
  font-size: 1.1rem;
  line-height: 1.4;
  flex-shrink: 0;
}

.progress {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.progress-label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.progress-percent {
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--accent);
}

.progress-bar {
  width: 100%;
  height: 3px;
  border-radius: var(--radius-pill);
  background: var(--surface-2);
  overflow: hidden;
}

.progress-bar-inner {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--accent), #818cf8);
  border-radius: var(--radius-pill);
  transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 0 8px var(--accent-glow);
}

/* ===== QUESTION CARD ===== */
.question-card {
  margin-bottom: 4px;
}

.question-text {
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--text);
  line-height: 1.65;
  white-space: pre-wrap;
  padding: 20px;
  border-radius: var(--radius-sm);
  background: var(--surface-2);
  border: 1px solid var(--border);
  margin-bottom: 4px;
}

/* ===== OPTIONS ===== */
#options {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 16px 0 8px;
}

.option-label {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  border: 1px solid var(--border);
  background: transparent;
  transition: border-color 0.15s, background 0.15s, transform 0.1s;
}

.option-label:hover {
  border-color: var(--border-strong);
  background: rgba(255,255,255,0.03);
}

.option-letter {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  min-width: 26px;
  border-radius: 6px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  color: var(--text-dim);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.75rem;
  transition: all 0.15s;
  margin-top: 1px;
}

.option-label span {
  font-size: 1.0rem;
  color: var(--text-muted);
  line-height: 1.55;
  transition: color 0.15s;
}

.option-label input[type="radio"] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
  pointer-events: none;
}

/* Selected state */
.option-label.is-selected {
  border-color: var(--accent);
  background: var(--accent-dim);
  transform: none;
}

.option-label.is-selected .option-letter {
  background: var(--accent);
  border-color: var(--accent);
  color: #060608;
}

.option-label.is-selected span {
  color: var(--text);
}

.option-label.is-selected:hover {
  border-color: var(--accent);
  background: var(--accent-dim);
}

/* ===== ACTIONS ===== */
.actions {
  margin-top: 20px;
  display: flex;
  justify-content: flex-end;
}

.error {
  margin-top: 12px;
  font-size: 0.82rem;
  color: #f87171;
  display: flex;
  align-items: center;
  gap: 6px;
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: var(--radius-pill);
  border: none;
  cursor: pointer;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.9rem;
  transition: all 0.15s ease;
}

.btn-primary {
  background: var(--text);
  color: var(--bg);
}

.btn-primary:hover {
  background: #fff;
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.4);
}

.btn-primary:active {
  transform: translateY(0);
}

.btn[disabled] {
  opacity: 0.4;
  cursor: default;
  transform: none !important;
  box-shadow: none !important;
}

/* ===== AFTER QUIZ ===== */
.after-quiz-wrap {
  max-width: 500px;
  margin: 60px auto;
  text-align: center;
}

.after-quiz-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 48px 40px;
  position: relative;
  overflow: hidden;
}

.after-quiz-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--green), transparent);
}

.after-quiz-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(74, 222, 128, 0.1);
  border: 1px solid rgba(74, 222, 128, 0.25);
  font-size: 1.4rem;
  color: var(--green);
  margin-bottom: 20px;
}

.after-quiz-card h3 {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 10px;
}

.after-quiz-card p {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 28px;
}

/* ===== RESULT SECTION ===== */
.hidden-result {
  display: none;
  flex-direction: column;
  align-items: center;
  padding: 80px clamp(20px, 6vw, 80px);
  opacity: 0;
  transition: opacity 0.4s ease;
}

.hidden-result.is-visible {
  display: flex;
  opacity: 1;
}

.result-header {
  text-align: center;
  margin-bottom: 40px;
}

.result-eyebrow {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 12px;
}

.result-header h1 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 800;
  color: var(--text);
}

.result-box {
  width: 100%;
  max-width: 680px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 40px;
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}

.result-box::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), #818cf8, #c084fc);
}

.result-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 24px;
}

.result-highlight {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--accent);
  line-height: 1.3;
  max-width: 480px;
}

.result-divider {
  width: 100%;
  height: 1px;
  background: var(--border);
  margin-bottom: 24px;
}

.result-summary {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.7;
  margin-bottom: 24px;
}

.result-summary br {
  display: block;
  content: '';
  margin-top: 6px;
}

.result-note {
  font-size: 0.8rem;
  color: var(--text-dim);
  border-top: 1px solid var(--border);
  padding-top: 32px;
  margin-top: 16px;
  margin-bottom: 0px;
  line-height: 1.6;
}

/* ===== TAG ===== */
.tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  font-size: 0.75rem;
  font-weight: 600;
  background: var(--accent-dim);
  color: var(--accent);
  border: 1px solid rgba(56,189,248,0.2);
  white-space: nowrap;
}

/* ===== CORNER LOGO ===== */
.corner-logo {
  position: fixed;
  z-index: 100;
}

.corner-logo img {
  display: block;
  width: 100%;
  height: auto;
  opacity: 0.85;
  filter: brightness(0.8);
}

.corner-logo-left {
  width: 130px;
  bottom: 20px;
  left: 20px;
}

/* ===== UTILITY ===== */
.hidden {
  display: none !important;
}

/* ===== ANIMATIONS ===== */
@keyframes fadeInDown {
  from { opacity: 0; transform: translateY(-12px); }
  to { opacity: 1; transform: translateY(0); }
}

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

/* ===== INFO SECTIONS (About / Categories / References) ===== */

.info-section {
  padding: 100px clamp(20px, 6vw, 80px);
  position: relative;
}

.info-section + .info-section {
  border-top: 1px solid var(--border);
}

.section-inner {
  max-width: 1040px;
  margin: 0 auto;
}

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 20px;
}

.section-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3.5vw, 2.4rem);
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin-bottom: 16px;
}

.section-sub {
  max-width: 800px;
  color: var(--text-muted);
  font-size: 0.975rem;
  line-height: 1.7;
  margin-bottom: 56px;
}

/* ===== ABOUT ===== */

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}

.about-text p {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.75;
  margin-bottom: 16px;
}

.about-text p:last-child { margin-bottom: 0; }

.about-text strong {
  color: var(--text);
  font-weight: 500;
}

.about-cards {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.about-card {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  transition: border-color 0.2s;
}

.about-card:hover {
  border-color: var(--border-strong);
}

.about-card-icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--accent-dim);
  border: 1px solid rgba(56,189,248,0.15);
  display: flex;
  align-items: center;
  justify-content: center;
}

.about-card-title {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 4px;
}

.about-card-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ===== CATEGORIES ===== */

.categories-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.category-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: border-color 0.2s, transform 0.2s;
  position: relative;
  overflow: hidden;
}

.category-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  opacity: 0;
  transition: opacity 0.2s;
}

.category-card:hover {
  border-color: var(--border-strong);
  transform: translateY(-2px);
}

.category-card:hover::before {
  opacity: 1;
}

.category-card[data-code="SD"]::before  { background: linear-gradient(90deg, #38bdf8, #818cf8); }
.category-card[data-code="DM"]::before  { background: linear-gradient(90deg, #34d399, #38bdf8); }
.category-card[data-code="IM"]::before  { background: linear-gradient(90deg, #f59e0b, #f97316); }
.category-card[data-code="CS"]::before  { background: linear-gradient(90deg, #f87171, #e879f9); }
.category-card[data-code="PM"]::before  { background: linear-gradient(90deg, #a78bfa, #818cf8); }

.cat-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.cat-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.cat-icon--sd { background: rgba(56,189,248,0.1);  color: #38bdf8; }
.cat-icon--dm { background: rgba(52,211,153,0.1);  color: #34d399; }
.cat-icon--im { background: rgba(245,158,11,0.1);  color: #f59e0b; }
.cat-icon--cs { background: rgba(248,113,113,0.1); color: #f87171; }
.cat-icon--pm { background: rgba(167,139,250,0.1); color: #a78bfa; }

.cat-code {
  font-family: var(--font-display);
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--text-dim);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: var(--radius-pill);
  background: var(--surface-2);
  border: 1px solid var(--border);
}

.cat-title {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1.3;
}

.cat-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.65;
  flex: 1;
}

.cat-footer {
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid var(--border);
}


/* ===== REFERENCES ===== */

.references-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.ref-item {
  display: flex;
  gap: 32px;
  padding: 36px 36px;
  border-bottom: 1px solid var(--border);
  background: var(--surface);
  transition: background 0.2s;
}

.ref-item:last-child {
  border-bottom: none;
}

.ref-item:hover {
  background: var(--surface-2);
}

.ref-num {
  font-family: var(--font-display);
  font-size: 0.7rem;
  font-weight: 800;
  color: var(--text-dim);
  letter-spacing: 0.1em;
  padding-top: 4px;
  flex-shrink: 0;
  width: 28px;
}

.ref-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.ref-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.ref-title {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1.3;
}

.ref-link {
  font-size: 0.8rem;
  color: var(--accent);
  text-decoration: none;
  white-space: nowrap;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(56,189,248,0.2);
  background: var(--accent-dim);
  transition: background 0.2s;
  flex-shrink: 0;
}

.ref-link:hover {
  background: rgba(56,189,248,0.2);
}

.ref-desc {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.75;
}

.ref-desc strong {
  color: var(--text);
  font-weight: 500;
}

.ref-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 4px;
}

.ref-tag {
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  font-size: 0.72rem;
  font-weight: 500;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  color: var(--text-dim);
}

/* ===== KAYIT MODALI ===== */

.reg-overlay {
  position: fixed;
  inset: 0;
  z-index: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(16px, 4vw, 40px);
  background: rgba(6, 6, 8, 0.82);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  opacity: 0;
  transition: opacity 0.22s ease;
  overflow-y: auto;
}

.reg-overlay.is-visible {
  opacity: 1;
}

.reg-overlay.hidden {
  display: none !important;
}

.reg-card {
  width: 100%;
  max-width: 520px;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  padding: clamp(24px, 5vw, 44px);
  box-shadow: var(--shadow);
  position: relative;
  transform: translateY(16px);
  transition: transform 0.25s cubic-bezier(0.34, 1.36, 0.64, 1);
}

.reg-overlay.is-visible .reg-card {
  transform: translateY(0);
}

/* Header */
.reg-header {
  margin-bottom: 28px;
}

.reg-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--accent);
  background: var(--accent-dim);
  border: 1px solid rgba(56, 189, 248, 0.22);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 14px;
}

.reg-title {
  font-family: var(--font-display);
  font-size: 1.55rem;
  font-weight: 800;
  color: var(--text);
  line-height: 1.25;
  margin-bottom: 8px;
}

.reg-subtitle {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* Form Fields */
.reg-field {
  margin-bottom: 20px;
}

.reg-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 8px;
}

.reg-label-hint {
  font-size: 0.75rem;
  font-weight: 400;
  color: var(--text-dim);
  text-transform: none;
  letter-spacing: 0;
}

/* Input base */
.reg-input-wrap {
  position: relative;
}

.reg-input,
.reg-select {
  width: 100%;
  background: var(--surface-2);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 0.95rem;
  padding: 11px 14px;
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
  appearance: none;
  -webkit-appearance: none;
}

.reg-input:focus,
.reg-select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-glow);
}

.reg-input.is-error,
.reg-select.is-error {
  border-color: #f87171;
  box-shadow: 0 0 0 3px rgba(248, 113, 113, 0.15);
}

.reg-input.is-valid {
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(74, 222, 128, 0.12);
}

/* Nickname status icon */
.reg-input-status {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 0.9rem;
  pointer-events: none;
}

/* Field validation message */
.reg-field-msg {
  font-size: 0.78rem;
  margin-top: 6px;
  min-height: 1rem;
  transition: color 0.15s;
  color: transparent;
}

.reg-field-msg.is-error  { color: #f87171; }
.reg-field-msg.is-ok     { color: var(--green); }
.reg-field-msg.is-checking { color: var(--text-dim); }

/* Select wrapper for custom arrow */
.reg-select-wrap {
  position: relative;
}

.reg-select-wrap::after {
  content: "";
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 0;
  height: 0;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-top: 5px solid var(--text-dim);
  pointer-events: none;
}

/* ---- Searchable Dropdown ---- */
.reg-searchable {
  position: relative;
}

.reg-searchable-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 11px 14px;
  background: var(--surface-2);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  cursor: pointer;
  user-select: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.reg-searchable-trigger:focus,
.reg-searchable-trigger.is-open {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-glow);
  outline: none;
}

.reg-searchable-trigger.is-error {
  border-color: #f87171;
  box-shadow: 0 0 0 3px rgba(248, 113, 113, 0.15);
}

.reg-searchable-display {
  font-size: 0.95rem;
  color: var(--text-dim);
  flex: 1;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.reg-searchable-display.has-value {
  color: var(--text);
}

.reg-searchable-arrow {
  color: var(--text-dim);
  flex-shrink: 0;
  transition: transform 0.18s ease;
}

.reg-searchable-trigger.is-open .reg-searchable-arrow {
  transform: rotate(180deg);
}

.reg-searchable-dropdown {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  background: var(--surface-2);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-sm);
  z-index: 10;
  overflow: hidden;
}

.reg-searchable-dropdown.hidden {
  display: none !important;
}

.reg-searchable-search {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border-bottom: 1px solid var(--border);
}

.reg-search-icon {
  color: var(--text-dim);
  flex-shrink: 0;
}

.reg-searchable-input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 0.88rem;
}

.reg-searchable-input::placeholder {
  color: var(--text-dim);
}

.reg-searchable-list {
  list-style: none;
  max-height: 200px;
  overflow-y: auto;
  padding: 6px 0;
}

.reg-searchable-list li {
  padding: 9px 14px;
  font-size: 0.9rem;
  color: var(--text-muted);
  cursor: pointer;
  transition: background 0.1s, color 0.1s;
}

.reg-searchable-list li:hover,
.reg-searchable-list li.is-focused {
  background: var(--accent-dim);
  color: var(--text);
}

.reg-searchable-list li.is-selected {
  color: var(--accent);
}

.reg-searchable-list li[data-empty] {
  color: var(--text-dim);
  font-style: italic;
  cursor: default;
  pointer-events: none;
}

/* Aydınlatma metni */
.reg-notice {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  background: rgba(56, 189, 248, 0.05);
  border: 1px solid rgba(56, 189, 248, 0.14);
  margin-bottom: 24px;
  margin-top: 4px;
}

.reg-notice-icon {
  color: var(--accent);
  flex-shrink: 0;
  margin-top: 2px;
}

.reg-notice p {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.55;
}

.reg-notice p strong {
  color: var(--text);
}

/* Submit button */
.reg-submit {
  width: 100%;
  justify-content: center;
  font-size: 0.95rem;
}

/* Result profil satırı */
.result-profile-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}

.result-profile-row.hidden {
  display: none !important;
}

.profile-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: var(--radius-pill);
  font-size: 0.8rem;
  font-weight: 600;
  background: var(--surface-2);
  border: 1px solid var(--border-strong);
  color: var(--text-muted);
}

.profile-chip-label {
  color: var(--text-dim);
  font-weight: 400;
}

/* Responsive modal */
@media (max-width: 560px) {
  .reg-card {
    padding: 24px 20px;
  }
  .reg-title {
    font-size: 1.25rem;
  }
}

/* ===== RESPONSIVE — new sections ===== */

@media (max-width: 768px) {
  .menu-links .menu-item:not(.cta-link) {
    display: none;
  }

  .hero-stats {
    padding: 14px 20px;
  }

  .stat-item {
    padding: 0 16px;
  }

  .stat-num {
    font-size: 1.4rem;
  }

  #quiz-section,
  #intro-section,
  .result-box {
    padding: 24px 20px;
  }

  .corner-logo-left {
    width: 100px;
    bottom: 12px;
    left: 12px;
  }

  .about-grid { grid-template-columns: 1fr; gap: 36px; }
  .categories-grid { grid-template-columns: 1fr 1fr; }
  .ref-item { padding: 24px 20px; gap: 16px; }
  .info-section { padding: 64px clamp(20px, 5vw, 40px); }
}

@media (max-width: 480px) {
  .hero-stats {
    flex-direction: column;
    gap: 16px;
    border-radius: var(--radius);
    padding: 20px;
  }

  .stat-divider {
    width: 36px;
    height: 1px;
  }

  .corner-logo-left {
    width: 80px;
  }

  .result-top {
    flex-direction: column;
  }

  .categories-grid { grid-template-columns: 1fr; }
  .ref-num { display: none; }
}

@media (min-width: 769px) and (max-width: 1024px) {
  .corner-logo-left {
    width: 150px;
  }
}
