/* ============================================================
   ENF Quiz — tasarım sistemi (mobil öncelikli, koyu, premium)
   ============================================================ */

:root {
  --bg: #0a1120;
  --bg-2: #0d1526;
  --panel: #121b30;
  --panel-2: #17223b;
  --border: #22304d;
  --border-soft: #1b2740;

  --text: #e9eefb;
  --muted: #93a3bd;
  --muted-2: #6d7f9d;

  --accent: #38e1c2;
  --accent-2: #17b7a4;
  --accent-ink: #06141d;
  --accent-soft: rgba(56, 225, 194, 0.13);

  --correct: #34d399;
  --correct-soft: rgba(52, 211, 153, 0.14);
  --wrong: #f87171;
  --wrong-soft: rgba(248, 113, 113, 0.14);
  --amber: #fbbf24;
  --amber-soft: rgba(251, 191, 36, 0.13);
  --blue: #60a5fa;
  --blue-soft: rgba(96, 165, 250, 0.13);

  --r-sm: 10px;
  --r: 14px;
  --r-lg: 20px;

  --sp-1: 4px;
  --sp-2: 8px;
  --sp-3: 12px;
  --sp-4: 16px;
  --sp-5: 24px;
  --sp-6: 32px;

  --shadow: 0 12px 32px rgba(0, 0, 0, 0.4);
  --shadow-soft: 0 6px 18px rgba(0, 0, 0, 0.28);

  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue",
    Arial, sans-serif;

  --sat: env(safe-area-inset-top, 0px);
  --sab: env(safe-area-inset-bottom, 0px);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

/* [hidden] her koşulda kazansın — sınıf tabanlı display kuralları gizlemeyi ezmesin */
[hidden] { display: none !important; }

html, body { height: 100%; }

body {
  font-family: var(--font);
  background:
    radial-gradient(900px 420px at 85% -8%, rgba(56, 225, 194, 0.09), transparent 60%),
    radial-gradient(760px 420px at -10% 8%, rgba(96, 165, 250, 0.08), transparent 55%),
    var(--bg);
  color: var(--text);
  font-size: 15px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overscroll-behavior-y: none;
}

button, input { font: inherit; color: inherit; }
button { background: none; border: 0; cursor: pointer; -webkit-tap-highlight-color: transparent; }
input { -webkit-appearance: none; appearance: none; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 6px;
}

::selection { background: var(--accent-soft); }

::-webkit-scrollbar { width: 9px; height: 9px; }
::-webkit-scrollbar-thumb { background: #2a3a5c; border-radius: 8px; }
::-webkit-scrollbar-track { background: transparent; }

/* ---------------- uygulama kabuğu ---------------- */

#app { height: 100dvh; height: 100vh; }

.screen {
  position: absolute;
  inset: 0;
  display: none;
  flex-direction: column;
  opacity: 0;
}
.screen.is-active {
  display: flex;
  animation: screen-in 0.28s ease forwards;
}
@keyframes screen-in {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: none; }
}

.screen--center { align-items: center; justify-content: center; padding: var(--sp-4); }

.scroll {
  flex: 1;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding-bottom: calc(var(--sp-6) + var(--sab));
}
.scroll--quiz { padding-bottom: calc(180px + var(--sab)); }

.wrap { width: 100%; max-width: 860px; margin: 0 auto; padding: var(--sp-4); }
.wrap--narrow { max-width: 640px; }

/* Masaüstünde ana ekranın sağındaki liderlik özeti (mobilde gizli) */
.home-aside { display: none; }
.aside-lb { display: flex; flex-direction: column; gap: var(--sp-2); }
.aside-lb__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding: 0 var(--sp-1);
  margin-bottom: 2px;
}
.aside-lb__title { font-size: 0.95rem; font-weight: 800; }
.aside-lb__all { font-size: 12.5px; color: var(--accent); font-weight: 700; text-decoration: none; }
.aside-lb__all:hover { text-decoration: underline; }
.aside-lb .lb-row { padding: 10px 12px; }
.aside-lb .lb-row__sub { font-size: 11px; }
.aside-lb__rank {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 6px;
  padding: 10px 14px;
  background: var(--accent-soft);
  border: 1px solid rgba(56, 225, 194, 0.25);
  border-radius: var(--r-sm);
  font-size: 12.5px;
  color: var(--muted);
}
.aside-lb__rank strong { color: var(--accent); font-size: 14px; }
@media (min-width: 1120px) {
  .wrap--home {
    max-width: 1200px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: var(--sp-5);
    align-items: start;
  }
  .home-aside {
    display: block;
    position: sticky;
    top: var(--sp-4);
  }
}

.mark {
  width: 52px; height: 52px;
  border-radius: 16px;
  display: grid; place-items: center;
  font-weight: 800; font-size: 1.5rem;
  color: var(--accent-ink);
  background: linear-gradient(135deg, var(--accent), #0d9488);
  box-shadow: 0 10px 26px rgba(56, 225, 194, 0.3);
}
.mark--sm { width: 32px; height: 32px; font-size: 1rem; border-radius: 10px; box-shadow: none; }

/* ---------------- üst bar ---------------- */

.appbar {
  position: sticky; top: 0; z-index: 5;
  display: flex; align-items: center; gap: var(--sp-3);
  padding: calc(var(--sp-3) + var(--sat)) var(--sp-4) var(--sp-3);
  background: rgba(10, 17, 32, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border-soft);
}
.appbar--sub { gap: var(--sp-2); }
.appbar__brand { display: flex; align-items: center; gap: var(--sp-2); }
.appbar__title { font-weight: 700; font-size: 1.02rem; letter-spacing: 0.1px; }
.appbar__spacer { flex: 1; }
.appbar__nav { display: flex; gap: var(--sp-1); margin-left: auto; }

.navbtn {
  padding: 7px 13px;
  border-radius: 999px;
  font-size: 0.85rem; font-weight: 600;
  color: var(--muted);
  transition: background 0.18s ease, color 0.18s ease;
}
.navbtn:hover { color: var(--text); background: var(--panel); }
.navbtn.is-active { color: var(--accent-ink); background: var(--accent); }

.iconbtn {
  width: 44px; height: 44px;
  display: grid; place-items: center;
  border-radius: 12px;
  color: var(--muted);
  transition: background 0.18s ease, color 0.18s ease;
}
.iconbtn:hover { background: var(--panel); color: var(--text); }
.iconbtn svg { width: 20px; height: 20px; }

/* ---------------- giriş ---------------- */

.screen--gate {
  align-items: center;
  justify-content: center;
  padding: var(--sp-4);
  background:
    radial-gradient(900px 520px at 12% -12%, rgba(56, 225, 194, 0.08), transparent 60%),
    radial-gradient(720px 460px at 108% 112%, rgba(96, 165, 250, 0.06), transparent 55%),
    var(--bg);
}
.gate {
  width: 100%;
  max-width: 980px;
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-6);
  align-items: center;
  animation: gate-in 0.4s cubic-bezier(0.2, 0.8, 0.3, 1) both;
}
@keyframes gate-in {
  from { opacity: 0; transform: translateY(16px) scale(0.98); }
  to   { opacity: 1; transform: none; }
}

/* Sol tanıtım paneli — yalnızca geniş ekranda */
.gate__aside { display: none; }
.gate__aside-brand { display: flex; align-items: center; gap: var(--sp-3); }
.gate__aside-name { display: block; font-size: 1.1rem; font-weight: 800; letter-spacing: -0.01em; }
.gate__aside-sub { display: block; font-size: 0.8rem; color: var(--muted); }
.gate__headline {
  font-size: clamp(1.9rem, 3.4vw, 2.55rem);
  line-height: 1.18;
  font-weight: 800;
  letter-spacing: -0.025em;
  text-wrap: balance;
}
.gate__headline em {
  font-style: normal;
  color: var(--accent);
  box-shadow: inset 0 -0.26em 0 var(--accent-soft);
}
.gate__points {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--sp-4);
}
.gate__points li {
  position: relative;
  padding-left: 20px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.gate__points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 7px;
  width: 8px;
  height: 8px;
  border-radius: 3px;
  background: var(--accent);
}
.gate__points strong { font-size: 0.95rem; font-weight: 700; }
.gate__points span { font-size: 0.84rem; color: var(--muted); line-height: 1.5; }
.gate__aside-foot { font-size: 0.78rem; color: var(--muted-2); margin-top: var(--sp-2); }

/* Sağ panel: marka + hesap kartı */
.gate__panel { width: 100%; max-width: 400px; margin: 0 auto; }
.gate__brand { display: flex; align-items: center; gap: var(--sp-3); margin-bottom: var(--sp-4); }
.gate__title { font-size: 1.35rem; font-weight: 800; letter-spacing: -0.01em; }
.gate__sub { color: var(--muted); font-size: 0.82rem; }
.gate__card {
  background: linear-gradient(180deg, var(--panel-2), var(--panel));
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: var(--sp-5);
  box-shadow: var(--shadow);
}
.gate__card-title { font-size: 1.05rem; font-weight: 800; color: var(--text); }
.gate__card-sub { font-size: 0.85rem; color: var(--muted); line-height: 1.55; margin: 6px 0 var(--sp-4); }
.gate__note { font-size: 0.75rem; color: var(--muted-2); line-height: 1.6; margin-top: var(--sp-4); }
.gate__link { color: var(--muted); text-decoration: underline; text-underline-offset: 2px; }
.gate__link:hover { color: var(--text); }
.gate__foot { margin-top: var(--sp-4); text-align: center; color: var(--muted-2); font-size: 0.78rem; }

@media (min-width: 960px) {
  .gate { grid-template-columns: minmax(0, 1.05fr) 400px; gap: 72px; }
  .gate__aside { display: flex; flex-direction: column; gap: var(--sp-5); }
  .gate__brand { display: none; }
  .gate__panel { margin: 0; }
  .gate__foot { text-align: left; }
}

@keyframes shake {
  10%, 90% { transform: translateX(-2px); }
  20%, 80% { transform: translateX(4px); }
  30%, 50%, 70% { transform: translateX(-6px); }
  40%, 60% { transform: translateX(6px); }
}

/* ---------------- butonlar ---------------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 46px;
  padding: 11px 20px;
  border-radius: 13px;
  font-weight: 700; font-size: 0.95rem;
  transition: transform 0.12s ease, background 0.18s ease, box-shadow 0.18s ease, opacity 0.18s;
}
.btn:active { transform: scale(0.975); }
.btn--block { width: 100%; }
.btn--primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: var(--accent-ink);
  box-shadow: 0 8px 22px rgba(56, 225, 194, 0.25);
}
.btn--primary:hover { box-shadow: 0 10px 26px rgba(56, 225, 194, 0.35); }
.btn--ghost {
  background: var(--panel-2);
  border: 1px solid var(--border);
  color: var(--text);
}
.btn--ghost:hover { border-color: var(--accent); color: var(--accent); }
.btn--danger { background: var(--wrong-soft); color: var(--wrong); border: 1px solid rgba(248, 113, 113, 0.3); }
.btn[disabled] { opacity: 0.5; pointer-events: none; }
.btnrow { display: flex; gap: var(--sp-2); flex-wrap: wrap; }
.btnrow .btn { flex: 1; min-width: 130px; }
.actionstack { display: flex; flex-direction: column; gap: var(--sp-3); margin-top: var(--sp-5); }

/* ---------------- istatistik kartları ---------------- */

.statgrid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--sp-2);
}
.statcard {
  background: linear-gradient(180deg, var(--panel-2), var(--panel));
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: var(--sp-3);
  display: flex; flex-direction: column; gap: 2px;
  min-width: 0;
}
.statcard__label { font-size: 0.7rem; font-weight: 600; color: var(--muted); letter-spacing: 0.05em; text-transform: uppercase; }
.statcard__value {
  font-size: clamp(1.05rem, 4.4vw, 1.5rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.statcard--points { border-color: rgba(251, 191, 36, 0.3); background: linear-gradient(180deg, var(--amber-soft), var(--panel)); }
.statcard--points .statcard__value { color: var(--amber); }
.statgrid--result { margin-top: var(--sp-4); }

/* ---------------- kaldığın yer ---------------- */

.resume {
  display: flex; align-items: center; gap: var(--sp-3);
  margin-top: var(--sp-3);
  padding: var(--sp-4);
  border-radius: var(--r);
  background: linear-gradient(120deg, rgba(56, 225, 194, 0.14), rgba(96, 165, 250, 0.08));
  border: 1px solid rgba(56, 225, 194, 0.32);
}
.resume__text { display: flex; flex-direction: column; gap: 2px; flex: 1; min-width: 0; }
.resume__label { font-size: 0.7rem; font-weight: 700; color: var(--accent); text-transform: uppercase; letter-spacing: 0.06em; }
.resume__title {
  font-size: 0.98rem; font-weight: 700;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden;
}
.resume__detail { font-size: 0.8rem; color: var(--muted); }
.resume .btn { flex-shrink: 0; }

/* ---------------- arama & filtre ---------------- */

.toolbar { margin-top: var(--sp-5); display: flex; flex-direction: column; gap: var(--sp-3); }

.search { position: relative; display: flex; align-items: center; }
.search__icon {
  position: absolute; left: 14px;
  width: 18px; height: 18px;
  color: var(--muted-2);
  pointer-events: none;
}
.search input {
  width: 100%;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 13px;
  padding: 13px 14px 13px 42px;
  font-size: 0.95rem;
}
.search input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.search input::placeholder { color: var(--muted-2); }

.chips { display: flex; gap: var(--sp-2); flex-wrap: wrap; }
.chip {
  padding: 7px 14px;
  border-radius: 999px;
  background: var(--panel);
  border: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.8rem; font-weight: 600;
  white-space: nowrap;
  transition: all 0.16s ease;
}
.chip:hover { color: var(--text); border-color: var(--muted-2); }
.chip.is-active {
  background: var(--accent-soft);
  border-color: var(--accent);
  color: var(--accent);
}
.chips--meta { margin-bottom: var(--sp-3); }
.chips--meta .chip { cursor: default; }
.chip--warn { background: var(--amber-soft); border-color: rgba(251, 191, 36, 0.4); color: var(--amber); }
.chip--info { background: var(--blue-soft); border-color: rgba(96, 165, 250, 0.35); color: var(--blue); }

/* ---------------- bölüm listesi ---------------- */

.chapterlist { display: flex; flex-direction: column; gap: var(--sp-2); margin-top: var(--sp-4); }

.chapter-row {
  width: 100%;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: var(--sp-3);
  padding: var(--sp-3) var(--sp-4);
  background: var(--panel);
  border: 1px solid var(--border-soft);
  border-radius: var(--r);
  text-align: left;
  transition: border-color 0.16s ease, transform 0.12s ease, background 0.16s ease;
}
.chapter-row:hover { border-color: var(--accent); background: var(--panel-2); }
.chapter-row:active { transform: scale(0.99); }
.chapter-row__idx {
  width: 34px; height: 34px;
  display: grid; place-items: center;
  border-radius: 10px;
  background: var(--bg-2);
  border: 1px solid var(--border);
  font-size: 0.78rem; font-weight: 700;
  color: var(--muted);
}
.chapter-row__body { min-width: 0; display: flex; flex-direction: column; gap: 5px; }
.chapter-row__title {
  font-size: 0.92rem; font-weight: 650;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden;
}
.chapter-row__meta { display: flex; align-items: center; gap: var(--sp-2); font-size: 0.74rem; color: var(--muted); }
.chapter-row__track {
  height: 6px; border-radius: 99px;
  background: #1e2c48;
  overflow: hidden;
}
.chapter-row__fill { display: block; height: 100%; border-radius: 99px; background: linear-gradient(90deg, var(--accent), var(--accent-2)); transition: width 0.5s ease; }
.chapter-row__fill--done { background: linear-gradient(90deg, var(--correct), #059669); }
.chapter-row__side { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
.chapter-row__badge {
  font-size: 0.68rem; font-weight: 700;
  padding: 3px 8px; border-radius: 99px;
  background: var(--accent-soft); color: var(--accent);
}
.chapter-row__badge--done { background: var(--correct-soft); color: var(--correct); }
.chapter-row__badge--warn { background: var(--wrong-soft); color: var(--wrong); }
.chapter-row__count { font-size: 0.74rem; color: var(--muted-2); }

.skeleton-row {
  height: 76px; border-radius: var(--r);
  background: linear-gradient(100deg, var(--panel) 30%, var(--panel-2) 50%, var(--panel) 70%);
  background-size: 200% 100%;
  animation: shimmer 1.3s infinite linear;
}
@keyframes shimmer { to { background-position: -200% 0; } }

.emptybox {
  padding: var(--sp-6) var(--sp-4);
  text-align: center;
  color: var(--muted);
  background: var(--panel);
  border: 1px dashed var(--border);
  border-radius: var(--r);
}

/* ---------------- bölüm detayı ---------------- */

.chapterhead {
  padding-top: var(--sp-4);
  display: flex; flex-direction: column; gap: var(--sp-2);
}
.chapterhead__sub { font-size: 0.76rem; font-weight: 700; color: var(--accent); text-transform: uppercase; letter-spacing: 0.07em; }
.chapterhead__title { font-size: clamp(1.25rem, 5.5vw, 1.7rem); font-weight: 800; letter-spacing: -0.02em; line-height: 1.25; }
.chapterhead__progress { color: var(--muted); font-size: 0.85rem; }

.progress {
  height: 9px;
  background: var(--bg-2);
  border: 1px solid var(--border-soft);
  border-radius: 99px;
  overflow: hidden;
  margin-top: var(--sp-2);
}
.progress__fill {
  display: block; height: 100%;
  width: 0%;
  border-radius: 99px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  transition: width 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.pillrow { display: flex; gap: var(--sp-2); flex-wrap: wrap; margin-top: var(--sp-2); }
.pill {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--panel);
  border: 1px solid var(--border);
  font-size: 0.78rem; font-weight: 600;
  color: var(--muted);
}
.pill b { color: var(--text); }
.pill--correct b { color: var(--correct); }
.pill--wrong b { color: var(--wrong); }
.pill--points b { color: var(--amber); }

.card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: var(--sp-4);
  margin-top: var(--sp-3);
  display: flex; flex-direction: column; gap: var(--sp-3);
}
.card__row { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-3); }
.card__title { font-size: 0.95rem; font-weight: 700; }
.card__text { font-size: 0.83rem; color: var(--muted); }
.badge {
  font-size: 0.75rem; font-weight: 700;
  padding: 5px 11px; border-radius: 99px;
  background: var(--blue-soft); color: var(--blue);
  white-space: nowrap;
}
.badge--ok { background: var(--correct-soft); color: var(--correct); }
.badge--warn { background: var(--amber-soft); color: var(--amber); }
.badge--err { background: var(--wrong-soft); color: var(--wrong); }

/* ---------------- quiz ---------------- */

.screen--quiz { background: var(--bg); }

.quizbar {
  display: flex; align-items: center; gap: var(--sp-2);
  padding: calc(var(--sp-3) + var(--sat)) var(--sp-3) var(--sp-3);
  background: rgba(10, 17, 32, 0.9);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border-soft);
}
.quizbar__meta { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.quizbar__chapter {
  font-size: 0.78rem; color: var(--muted);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.quizbar__count { font-size: 0.9rem; font-weight: 700; }
.quizbar__spacer { width: 40px; flex-shrink: 0; }

.quizprogress {
  height: 4px;
  background: var(--bg-2);
  overflow: hidden;
}
.quizprogress__fill {
  display: block; height: 100%; width: 0%;
  background: linear-gradient(90deg, var(--accent), var(--blue));
  transition: width 0.45s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.stem {
  font-size: clamp(1.05rem, 4.6vw, 1.3rem);
  font-weight: 650;
  line-height: 1.5;
  letter-spacing: -0.01em;
  margin-bottom: var(--sp-5);
}
.stem:focus { outline: none; }

.options { display: flex; flex-direction: column; gap: var(--sp-3); }

.option {
  width: 100%;
  display: flex; align-items: flex-start; gap: var(--sp-3);
  padding: 15px var(--sp-4);
  background: var(--panel);
  border: 1.5px solid var(--border);
  border-radius: var(--r);
  text-align: left;
  font-size: 0.97rem;
  line-height: 1.5;
  transition: border-color 0.16s ease, background 0.16s ease, transform 0.1s ease;
}
.option:hover:not(:disabled) { border-color: var(--accent); background: var(--panel-2); }
.option:active:not(:disabled) { transform: scale(0.99); }
.option__key {
  flex-shrink: 0;
  width: 28px; height: 28px;
  display: grid; place-items: center;
  border-radius: 9px;
  background: var(--bg-2);
  border: 1px solid var(--border);
  font-size: 0.8rem; font-weight: 800;
  color: var(--muted);
  transition: all 0.16s ease;
}
.option__text { flex: 1; min-width: 0; }

.option.is-correct {
  border-color: var(--correct);
  background: var(--correct-soft);
}
.option.is-correct .option__key { background: var(--correct); border-color: var(--correct); color: #052e22; }
.option.is-wrong {
  border-color: var(--wrong);
  background: var(--wrong-soft);
  animation: shake 0.4s ease;
}
.option.is-wrong .option__key { background: var(--wrong); border-color: var(--wrong); color: #3d0b0b; }
.option.is-dim { opacity: 0.58; }
.option:disabled { cursor: default; }

/* flashcard */
.flashcard { display: flex; flex-direction: column; gap: var(--sp-4); }
.answerbox { display: flex; flex-direction: column; gap: var(--sp-4); animation: screen-in 0.3s ease both; }
.answer-card {
  background: linear-gradient(140deg, rgba(56, 225, 194, 0.1), rgba(96, 165, 250, 0.06));
  border: 1px solid rgba(56, 225, 194, 0.35);
  border-radius: var(--r);
  padding: var(--sp-4);
}
.answer-card__text { font-size: 1rem; line-height: 1.6; font-weight: 550; }
.selfrow { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-3); }
.self-btn {
  min-height: 52px;
  border-radius: var(--r);
  font-weight: 700; font-size: 0.95rem;
  border: 1.5px solid transparent;
  transition: transform 0.12s ease, filter 0.16s ease;
}
.self-btn:active { transform: scale(0.97); }
.self-btn--know { background: var(--correct-soft); border-color: var(--correct); color: var(--correct); }
.self-btn--forget { background: var(--wrong-soft); border-color: var(--wrong); color: var(--wrong); }

/* geri bildirim paneli */
.feedback {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  background: linear-gradient(180deg, var(--panel-2), var(--panel));
  border-top: 1px solid var(--border);
  box-shadow: 0 -16px 40px rgba(0, 0, 0, 0.5);
  padding-bottom: calc(var(--sp-4) + var(--sab));
  animation: sheet-up 0.32s cubic-bezier(0.2, 0.8, 0.25, 1) both;
  max-height: 72%;
  max-width: 640px;
  margin: 0 auto;
  border-radius: var(--r-lg) var(--r-lg) 0 0;
  overflow-y: auto;
  z-index: 6;
}
@keyframes sheet-up {
  from { transform: translateY(100%); }
  to   { transform: none; }
}
.feedback__inner { display: flex; flex-direction: column; gap: var(--sp-3); padding-top: var(--sp-4); }
.feedback__head { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-3); }
.feedback__title { font-size: 1.12rem; font-weight: 800; display: inline-flex; align-items: center; gap: 9px; }
.feedback__title::before {
  content: ""; flex-shrink: 0;
  width: 26px; height: 26px;
  border-radius: 50%;
  display: grid; place-items: center;
  font-size: 0.85rem; font-weight: 900;
}
.feedback__title.is-correct::before { content: "✓"; background: var(--correct-soft); }
.feedback__title.is-wrong::before { content: "✕"; background: var(--wrong-soft); }
.feedback__title.is-correct { color: var(--correct); }
.feedback__title.is-wrong { color: var(--wrong); }
.feedback__points { font-weight: 800; color: var(--amber); font-size: 0.95rem; }
.feedback__text {
  font-size: 0.92rem; color: #cdd8ec; line-height: 1.62;
  max-height: 38vh; overflow-y: auto;
  padding-right: 4px;
  scrollbar-width: thin;
  -webkit-mask-image: linear-gradient(#000 92%, rgba(0, 0, 0, 0.35));
  mask-image: linear-gradient(#000 92%, rgba(0, 0, 0, 0.35));
}

.feedback__sources {
  margin-top: 0.65rem;
  font-size: 0.82rem;
  line-height: 1.5;
  color: var(--muted, #64748b);
}

.feedback__sources a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.feedback__text::-webkit-scrollbar { width: 6px; }
.feedback__pearl {
  font-size: 0.86rem; line-height: 1.6;
  color: var(--amber);
  background: var(--amber-soft);
  border: 1px solid rgba(251, 191, 36, 0.3);
  border-radius: var(--r-sm);
  padding: 11px 13px;
}

/* şık bazlı geri bildirim */
.feedback__options { display: flex; flex-direction: column; gap: var(--sp-2); }
.feedback__opt {
  font-size: 0.84rem; line-height: 1.55; color: #cdd8ec;
  background: var(--bg-2);
  border: 1px solid var(--border-soft);
  border-radius: var(--r-sm);
  padding: 9px 12px;
}
.feedback__opt b { color: var(--muted); font-weight: 700; }
.feedback__opt--wrong { border-left: 3px solid var(--wrong); }
.feedback__opt--correct { border-left: 3px solid var(--correct); }

#quiz-teacher::before { content: "✦ "; color: var(--accent); }

/* klavye ipucu: yalnız klavyeli (masaüstü) cihazlarda görünür */
.kbd-hint {
  display: none;
  margin-top: var(--sp-4);
  text-align: center;
  color: var(--muted-2);
  font-size: 0.74rem;
}
.kbd-hint kbd {
  padding: 1px 6px;
  border: 1px solid var(--border);
  border-bottom-width: 2px;
  border-radius: 5px;
  background: var(--bg-2);
  font: inherit;
  font-size: 0.72rem;
}
@media (hover: hover) and (pointer: fine) {
  .kbd-hint { display: block; }
}

.teacher-copy {
  width: min(600px, calc(100vw - 32px));
  max-height: 85dvh;
  box-sizing: border-box;
  padding: 20px;
  overflow-y: auto;
  background: var(--panel);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
}
.teacher-copy::backdrop { background: rgba(0, 0, 0, 0.65); }
.teacher-preference {
  width: 100%;
  margin-top: 12px;
  padding: 12px;
  font: inherit;
  background: var(--panel-2);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
}
.teacher-hint { font-size: 0.82rem; }
.teacher-copy p { margin: 12px 0; }
.teacher-copy__text {
  display: block;
  width: 100%;
  height: 40dvh;
  box-sizing: border-box;
  margin-bottom: 16px;
  padding: 12px;
  resize: vertical;
  font: inherit;
  font-size: 16px;
  background: var(--panel-2);
  color: inherit;
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
}

/* ---------------- sonuç ---------------- */

.result { text-align: center; padding-top: var(--sp-5); }
.result__badge {
  width: 76px; height: 76px;
  margin: 0 auto var(--sp-4);
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--amber-soft);
  border: 1px solid rgba(251, 191, 36, 0.4);
  color: var(--amber);
  animation: pop 0.5s cubic-bezier(0.2, 1.4, 0.4, 1) both;
}
.result__badge svg { width: 38px; height: 38px; }
@keyframes pop { from { transform: scale(0.4); opacity: 0; } to { transform: none; opacity: 1; } }
.result__title { font-size: 1.3rem; font-weight: 800; }
.result__score { font-size: clamp(2rem, 9vw, 2.8rem); font-weight: 800; color: var(--amber); letter-spacing: -0.03em; margin-top: var(--sp-1); }
.result .actionstack { text-align: left; }

.wrongbox { margin-top: var(--sp-5); text-align: left; }
.wrongbox__title { font-size: 0.82rem; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: var(--sp-2); }
.wrongbox__list { display: flex; flex-direction: column; gap: var(--sp-2); }
.wrongitem {
  background: var(--panel);
  border: 1px solid var(--border-soft);
  border-left: 3px solid var(--wrong);
  border-radius: var(--r-sm);
  padding: var(--sp-3);
  font-size: 0.86rem;
}
.wrongitem span { color: var(--muted); font-size: 0.76rem; display: block; margin-bottom: 3px; }

/* ---------------- boş durum ---------------- */

.emptystate {
  text-align: center;
  padding: var(--sp-6) var(--sp-4);
  display: flex; flex-direction: column; align-items: center; gap: var(--sp-3);
}
.emptystate__icon {
  width: 68px; height: 68px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--correct-soft);
  color: var(--correct);
  font-size: 1.8rem; font-weight: 800;
}
.emptystate__title { font-size: 1.1rem; font-weight: 800; }
.emptystate__text { color: var(--muted); font-size: 0.88rem; max-width: 380px; }

/* ---------------- profil ---------------- */

.statspanel {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--sp-2);
  margin-top: var(--sp-4);
}
.statspanel .statcard__value { font-size: 1.25rem; }

/* ---------------- toast ---------------- */

.toast {
  position: fixed;
  left: 50%; bottom: calc(24px + var(--sab));
  transform: translateX(-50%);
  background: var(--panel-2);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 11px 18px;
  border-radius: 999px;
  font-size: 0.86rem; font-weight: 600;
  box-shadow: var(--shadow-soft);
  z-index: 50;
  animation: screen-in 0.25s ease both;
  max-width: calc(100% - 32px);
  text-align: center;
}

/* ---------------- Social Auth ---------------- */
.social-auth {
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
  margin-bottom: var(--sp-4);
}
.btn--social {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-3);
  padding: 11px 16px;
  font-size: 14px;
  font-weight: 600;
  border-radius: var(--r-sm);
  transition: all 0.18s ease;
  position: relative;
  width: 100%;
}
.btn--google {
  background: #ffffff;
  color: #1f2937;
  border: 1px solid #e5e7eb;
}
.btn--google:hover {
  background: #f9fafb;
  box-shadow: 0 4px 14px rgba(255, 255, 255, 0.15);
  transform: translateY(-1px);
}
.btn--apple {
  background: #111827;
  color: #f3f4f6;
  border: 1px solid var(--border);
  opacity: 0.9;
}
.btn--apple:hover {
  background: #1f2937;
}
.social-icon {
  flex-shrink: 0;
}
.badge--soon {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  padding: 2px 6px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.15);
  color: #d1d5db;
  margin-left: auto;
  letter-spacing: 0.5px;
}
.btn--sm {
  padding: 8px 12px;
  font-size: 13px;
}
.btn--lg {
  padding: 14px 20px;
  font-size: 16px;
  font-weight: 700;
}
.btn--pro-pill {
  background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
  color: #1e1b10;
  font-weight: 800;
  font-size: 12px;
  padding: 5px 12px;
  border-radius: 999px;
  letter-spacing: 0.5px;
  box-shadow: 0 2px 10px rgba(251, 191, 36, 0.35);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  margin-left: var(--sp-2);
}
.btn--pro-pill:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 16px rgba(251, 191, 36, 0.5);
}
.btn--pro-badge {
  background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
  color: #1e1b10;
  font-weight: 800;
  font-size: 12px;
  padding: 6px 14px;
  border-radius: 999px;
  box-shadow: 0 2px 12px rgba(251, 191, 36, 0.3);
  margin-left: var(--sp-2);
}
.chapter-row.is-locked {
  opacity: 0.88;
}
.chapter-row__badge--locked {
  background: rgba(251, 191, 36, 0.15);
  color: var(--amber);
  border: 1px solid rgba(251, 191, 36, 0.3);
  font-weight: 700;
}

/* ---------------- Leaderboard ---------------- */
.pagehead {
  margin-bottom: var(--sp-4);
}
.pagehead__title {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text);
}
.pagehead__sub {
  font-size: 13.5px;
  color: var(--muted);
  margin-top: 2px;
}
.lb-tabs-container {
  margin-bottom: var(--sp-4);
}
.lb-banner {
  background: linear-gradient(135deg, var(--panel-2) 0%, rgba(56, 225, 194, 0.08) 100%);
  border: 1px solid var(--accent);
  border-radius: var(--r);
  padding: var(--sp-4);
  margin-bottom: var(--sp-5);
  box-shadow: 0 4px 20px rgba(56, 225, 194, 0.1);
}
.lb-banner__content {
  display: flex;
  align-items: center;
  gap: var(--sp-4);
  flex-wrap: wrap;
}
.lb-banner__rank-circle {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--accent-ink);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  flex-shrink: 0;
}
.lb-banner__rank-prefix { font-size: 14px; opacity: 0.8; }
.lb-banner__rank-num { font-size: 22px; }
.lb-banner__info { flex: 1; min-width: 160px; }
.lb-banner__head { display: flex; align-items: center; gap: var(--sp-2); }
.lb-banner__name { font-size: 16px; color: var(--text); }
.lb-banner__sub { font-size: 12.5px; color: var(--muted); margin-top: 2px; }
.lb-banner__stats { display: flex; gap: var(--sp-4); }
.lb-stat { display: flex; flex-direction: column; align-items: flex-end; }
.lb-stat__label { font-size: 11px; text-transform: uppercase; color: var(--muted-2); letter-spacing: 0.5px; }
.lb-stat__val { font-size: 16px; font-weight: 700; color: var(--text); }
.lb-stat__val--accent { color: var(--accent); }

/* Podyum */
.podium-grid {
  display: grid;
  grid-template-columns: 1fr 1.15fr 1fr;
  gap: var(--sp-3);
  align-items: end;
  margin-bottom: var(--sp-5);
}
.podium-card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: var(--sp-4) var(--sp-2);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
  transition: transform 0.2s ease;
}
.podium-card:hover { transform: translateY(-2px); }
.podium--gold {
  border-color: rgba(251, 191, 36, 0.5);
  background: linear-gradient(180deg, rgba(251, 191, 36, 0.12) 0%, var(--panel) 100%);
  box-shadow: 0 8px 24px rgba(251, 191, 36, 0.15);
  padding-top: var(--sp-5);
}
.podium--silver {
  border-color: rgba(203, 213, 225, 0.4);
  background: linear-gradient(180deg, rgba(203, 213, 225, 0.08) 0%, var(--panel) 100%);
}
.podium--bronze {
  border-color: rgba(217, 119, 6, 0.4);
  background: linear-gradient(180deg, rgba(217, 119, 6, 0.08) 0%, var(--panel) 100%);
}
.podium-badge {
  position: absolute;
  top: -12px;
  background: var(--panel-2);
  border: 1px solid var(--border);
  padding: 2px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 4px;
}
.podium--gold .podium-badge { border-color: var(--amber); color: var(--amber); }
.podium-crown { font-size: 14px; }
.podium-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--panel-2);
  border: 2px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 14px;
  color: var(--text);
  margin: var(--sp-2) 0;
}
.podium--gold .podium-avatar { border-color: var(--amber); width: 50px; height: 50px; font-size: 16px; }
.podium-name { font-size: 13.5px; font-weight: 700; margin-bottom: 2px; }
.podium-title { font-size: 11px; color: var(--muted); margin-bottom: var(--sp-2); }
.podium-points { font-size: 14px; color: var(--accent); font-weight: 700; }
.podium-points span { font-size: 11px; color: var(--muted); font-weight: 400; }

/* Sıralama Listesi */
.lb-list {
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
  margin-bottom: var(--sp-5);
}
.lb-row {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  background: var(--panel);
  border: 1px solid var(--border-soft);
  border-radius: var(--r-sm);
  padding: var(--sp-3) var(--sp-4);
  transition: background 0.15s ease;
}
.lb-row:hover { background: var(--panel-2); }
.lb-row.is-me {
  background: rgba(56, 225, 194, 0.08);
  border-color: var(--accent);
}
.lb-row__rank {
  width: 32px;
  font-size: 13px;
  font-weight: 700;
  color: var(--muted-2);
  text-align: center;
}
.lb-row__avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--panel-2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  color: var(--text);
  flex-shrink: 0;
}
.lb-row__body { flex: 1; min-width: 0; }
.lb-row__head { display: flex; align-items: center; gap: var(--sp-2); }
.lb-row__name { font-size: 14px; color: var(--text); }
.lb-row__me-badge {
  background: var(--accent);
  color: var(--accent-ink);
  font-size: 10px;
  font-weight: 800;
  padding: 1px 6px;
  border-radius: 4px;
}
.lb-row__sub { font-size: 12px; color: var(--muted); display: block; }
.lb-row__metrics { text-align: right; flex-shrink: 0; }
.lb-row__acc { font-size: 11px; color: var(--muted-2); display: block; }
.lb-row__points { font-size: 14px; font-weight: 700; color: var(--accent); }

.pro-cta-card {
  background: linear-gradient(135deg, var(--panel) 0%, #15243b 100%);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: var(--sp-4);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-4);
  flex-wrap: wrap;
}
.pro-cta-card__body { flex: 1; min-width: 220px; }
.pro-cta-card__title { font-size: 16px; color: var(--text); display: block; margin: 4px 0 2px; }
.pro-cta-card__desc { font-size: 13px; color: var(--muted); }

/* ---------------- Pricing & Plans ---------------- */
.pricing-hero {
  text-align: center;
  padding: var(--sp-5) 0 var(--sp-4);
}
.pricing-hero__title {
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: var(--sp-2) 0 var(--sp-2);
  color: var(--text);
}
.pricing-hero__sub {
  font-size: 14px;
  color: var(--muted);
  max-width: 520px;
  margin: 0 auto;
}
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--sp-4);
  margin-bottom: var(--sp-5);
}
.pricing-card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: var(--sp-5);
  display: flex;
  flex-direction: column;
  position: relative;
}
.pricing-card--featured {
  border-color: var(--accent);
  background: linear-gradient(180deg, rgba(56, 225, 194, 0.08) 0%, var(--panel) 100%);
  box-shadow: 0 12px 36px rgba(56, 225, 194, 0.12);
}
.pricing-card__ribbon {
  position: absolute;
  top: -12px;
  right: 20px;
  background: var(--accent);
  color: var(--accent-ink);
  font-size: 11px;
  font-weight: 800;
  padding: 3px 12px;
  border-radius: 999px;
  letter-spacing: 0.5px;
}
.pricing-card__head {
  margin-bottom: var(--sp-4);
  padding-bottom: var(--sp-4);
  border-bottom: 1px solid var(--border-soft);
}
.pricing-card__tier { font-size: 18px; font-weight: 700; color: var(--text); display: block; }
.pricing-card__cost { display: flex; align-items: baseline; gap: 4px; margin: var(--sp-2) 0 4px; }
.pricing-card__price { font-size: 32px; font-weight: 800; color: var(--text); }
.pricing-card__price--soon { font-size: 22px; letter-spacing: 0.04em; }
.pricing-card__period { font-size: 14px; color: var(--muted); }
.pricing-card__subdesc { font-size: 12.5px; color: var(--accent); font-weight: 600; margin-bottom: 6px; }
.pricing-card__desc { font-size: 13px; color: var(--muted); }
.pricing-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: var(--sp-5);
  flex: 1;
}
.pricing-features li {
  font-size: 13.5px;
  display: flex;
  align-items: flex-start;
  gap: 8px;
  color: var(--text);
}
.pricing-features li.is-dim { color: var(--muted-2); }
.pricing-features .check { color: var(--accent); font-weight: 700; }
.current-plan-card {
  background: var(--panel-2);
  border: 1px solid var(--accent);
  border-radius: var(--r);
  padding: var(--sp-4);
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  margin-bottom: var(--sp-4);
}
.current-plan-badge {
  background: var(--accent);
  color: var(--accent-ink);
  font-size: 11px;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 6px;
}
.current-plan-info { flex: 1; }
.current-plan-title { font-size: 15px; color: var(--text); display: block; }
.current-plan-desc { font-size: 12.5px; color: var(--muted); }

/* Karşılaştırma tablosu */
.comparison-card { margin-bottom: var(--sp-5); }
.cmp-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13.5px;
  text-align: left;
  margin-top: var(--sp-3);
}
.cmp-table th, .cmp-table td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--border-soft);
}
.cmp-table th { color: var(--muted); font-size: 12px; text-transform: uppercase; }

/* SSS Accordion */
.faq-section { margin-bottom: var(--sp-6); }
.faq-section__title { font-size: 18px; font-weight: 700; margin-bottom: var(--sp-3); color: var(--text); }
.faq-item {
  background: var(--panel);
  border: 1px solid var(--border-soft);
  border-radius: var(--r-sm);
  margin-bottom: var(--sp-2);
  padding: var(--sp-3) var(--sp-4);
}
.faq-item__q {
  font-weight: 600;
  cursor: pointer;
  color: var(--text);
  font-size: 14px;
}
.faq-item__a {
  margin-top: var(--sp-2);
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

/* Modallar */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(6, 12, 24, 0.78);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--sp-4);
  z-index: 1000;
  animation: screen-in 0.2s ease both;
}
.modal-card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  width: 100%;
  max-width: 480px;
  padding: var(--sp-5);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.6);
  position: relative;
  max-height: 90vh;
  overflow-y: auto;
}
.modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--sp-4);
}
.modal-title { font-size: 18px; font-weight: 700; color: var(--text); }
.modal-desc { font-size: 13.5px; color: var(--muted); margin-bottom: var(--sp-4); }

/* Checkout Detayları */
.checkout-summary {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: var(--sp-3) var(--sp-4);
  margin-bottom: var(--sp-4);
}
.checkout-summary__row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13.5px;
  margin-bottom: 6px;
}
.checkout-summary__plan { display: block; color: var(--text); font-size: 14px; }
.checkout-summary__cycle { display: block; color: var(--muted); font-size: 12px; }
.checkout-summary__price { font-weight: 700; color: var(--text); white-space: nowrap; }

/* Mobil satın alma yönlendirmesi (yasal mevzuat) */
.mobile-purchase-note {
  display: flex;
  gap: var(--sp-3);
  align-items: flex-start;
  background: var(--accent-soft);
  border: 1px solid rgba(56, 225, 194, 0.28);
  border-radius: var(--r);
  padding: var(--sp-3) var(--sp-4);
  margin-bottom: var(--sp-4);
}
.mobile-purchase-note__icon { font-size: 20px; line-height: 1.3; }
.mobile-purchase-note p { font-size: 13px; color: var(--text); line-height: 1.6; }

.store-btns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-3);
  margin-bottom: var(--sp-4);
}
.store-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-width: 0;
  background: #000;
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  padding: 10px 12px;
  text-decoration: none;
  transition: transform 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}
.store-btn:hover,
.store-btn:focus-visible {
  transform: translateY(-2px);
  border-color: var(--accent-2);
  box-shadow: var(--shadow-soft);
}
.store-btn > svg { width: 24px; height: 24px; flex-shrink: 0; }
.store-btn__text { min-width: 0; }
.store-btn__cap {
  display: block;
  font-size: 9.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
}
.store-btn__name {
  display: block;
  font-size: 14.5px;
  font-weight: 700;
  color: #fff;
  white-space: nowrap;
}
.store-hint {
  font-size: 12px;
  color: var(--muted-2);
  text-align: center;
  line-height: 1.6;
}
@media (max-width: 380px) {
  .store-btns { grid-template-columns: 1fr; }
}

/* Paywall Modal */
.modal-card--paywall { text-align: center; max-width: 420px; }
.paywall-icon { font-size: 44px; margin-bottom: var(--sp-2); }
.paywall-note {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: var(--sp-3);
  margin-bottom: var(--sp-4);
  text-align: left;
}
.paywall-note p { font-size: 12.5px; color: var(--muted); line-height: 1.6; }
.paywall-note strong { color: var(--text); }
.paywall-actions { display: flex; flex-direction: column; gap: var(--sp-2); margin-top: var(--sp-2); }

/* Google OAuth Modalı */
.modal-card--google {
  max-width: 440px;
  padding: var(--sp-5);
}
.google-brand-header {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
}
.google-brand-header .modal-title {
  font-size: 17px;
  line-height: 1.2;
}
.google-brand-header .modal-sub {
  font-size: 12.5px;
  color: var(--muted);
  margin-top: 2px;
}
.google-accounts-list {
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
  margin: var(--sp-4) 0;
}
.google-account-item {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  padding: 10px 14px;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--r);
  cursor: pointer;
  text-align: left;
  transition: all 0.15s ease;
  width: 100%;
}
.google-account-item:hover {
  background: var(--panel-2);
  border-color: var(--accent);
  transform: translateY(-1px);
}
.google-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #3b82f6;
  color: #ffffff;
  font-weight: 700;
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.google-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.google-name {
  font-size: 13.5px;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.google-email {
  font-size: 12px;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.google-badge {
  font-size: 10.5px;
  font-weight: 600;
  color: var(--correct);
  background: rgba(16, 185, 129, 0.12);
  padding: 2px 7px;
  border-radius: 4px;
  white-space: nowrap;
}
.google-badge--admin {
  color: var(--accent-ink);
  background: var(--accent);
  font-weight: 700;
}

/* Google girişi: gerçek GSI butonu kutusu + demo modu notu */
.google-gsi-note,
.google-mode-note {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: var(--sp-3);
}
.google-mode-note {
  font-size: 12px;
  color: var(--amber);
  background: var(--amber-soft);
  border: 1px solid rgba(251, 191, 36, 0.3);
  border-radius: var(--r-sm);
  padding: var(--sp-2) var(--sp-3);
  line-height: 1.5;
}
#google-gsi-btn { display: flex; justify-content: center; min-height: 44px; }
.google-custom-box {
  background: var(--bg-2);
  border: 1px dashed var(--border);
  border-radius: var(--r);
  padding: var(--sp-3);
  margin-bottom: var(--sp-4);
}
.google-custom-label {
  font-size: 12px;
  color: var(--muted);
  margin-bottom: var(--sp-2);
}
.google-custom-form {
  display: flex;
  gap: var(--sp-2);
}
.google-custom-form input {
  flex: 1;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  padding: 8px 12px;
  font-size: 13px;
  color: var(--text);
}
.google-custom-form input:focus {
  border-color: var(--accent);
}
.google-privacy-note {
  font-size: 11px;
  color: var(--muted-2);
  line-height: 1.45;
  text-align: center;
}

/* Kullanıcı Profil Kartı (Stats) */
.card--user-profile {
  background: linear-gradient(135deg, var(--panel-2) 0%, var(--panel) 100%);
  border: 1px solid var(--border);
  margin-bottom: var(--sp-4);
}
.user-profile-header {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  margin-bottom: var(--sp-3);
}
.user-profile-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--accent-ink);
  font-weight: 800;
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.user-profile-info { flex: 1; }
.user-profile-row { display: flex; align-items: center; gap: var(--sp-2); }
.user-profile-name { font-size: 17px; color: var(--text); }
.user-profile-sub { font-size: 12.5px; color: var(--muted); margin-top: 2px; }
.user-sub-card {
  background: var(--bg-2);
  border: 1px solid var(--border-soft);
  border-radius: var(--r-sm);
  padding: var(--sp-3);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-2);
}
.user-sub-text { display: flex; flex-direction: column; }
.user-sub-label { font-size: 11px; text-transform: uppercase; color: var(--muted-2); letter-spacing: 0.5px; }
.user-sub-val { font-size: 14px; color: var(--text); }
.user-sub-exp { font-size: 12px; color: var(--muted); font-weight: 400; }
.badge--pro {
  background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
  color: #1e1b10;
  font-size: 10.5px;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 4px;
  letter-spacing: 0.5px;
}
.badge--trial {
  background: rgba(96, 165, 250, 0.2);
  color: var(--blue);
  font-size: 10.5px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 4px;
}
.badge--accent {
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 11px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 4px;
}

/* ---------------- responsive ---------------- */

@media (max-width: 480px) {
  .appbar { padding: var(--sp-2) var(--sp-3); gap: 4px; }
  .appbar__title { display: none; }
  .appbar__nav { gap: 2px; }
  .navbtn { padding: 6px 9px; font-size: 0.78rem; }
  .btn--pro-pill { padding: 4px 8px; font-size: 11px; margin-left: 4px; }
  .podium-grid { gap: var(--sp-1); }
  .podium-card { padding: var(--sp-3) var(--sp-1); }
  .podium-name { font-size: 11.5px; }
  .podium-title { font-size: 9.5px; }
  .podium-points { font-size: 12px; }
}

@media (max-width: 400px) {
  .statgrid { grid-template-columns: repeat(2, 1fr); }
  .chapter-row { padding: var(--sp-3); }
  .navbtn { padding: 5px 7px; font-size: 0.74rem; }
}

@media (min-width: 720px) {
  body { font-size: 15.5px; }
  .wrap { padding: var(--sp-5) var(--sp-4); }
  .statgrid { gap: var(--sp-3); }
  .statcard { padding: var(--sp-4); }
  .chapter-row:hover { transform: translateY(-1px); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
