/* ============================================================
   Okur — Hızlı Okuma Çalışma Uygulaması
   Estetik: sıcak "çalışma masası" kâğıdı, mürekkep, terracotta
   ============================================================ */

:root {
  --paper:      #f4ede0;
  --paper-2:    #efe6d6;
  --card:       #fbf7ef;
  --ink:        #28231c;
  --ink-soft:   #6b6052;
  --ink-faint:  #a99c89;
  --line:       #e2d6c2;
  --accent:     #c0512c;   /* terracotta */
  --accent-2:   #2c6b62;   /* deep teal  */
  --gold:       #c79a3a;
  --good:       #2c7a5b;
  --bad:        #b13b3b;
  --pivot:      #c0512c;

  --shadow-sm: 0 1px 2px rgba(40,35,28,.06), 0 2px 6px rgba(40,35,28,.05);
  --shadow-md: 0 4px 12px rgba(40,35,28,.08), 0 10px 30px rgba(40,35,28,.07);
  --shadow-lg: 0 12px 40px rgba(40,35,28,.14);

  --r-sm: 10px;
  --r-md: 16px;
  --r-lg: 24px;

  --font-display: "Fraunces", Georgia, serif;
  --font-ui: "Hanken Grotesk", system-ui, sans-serif;
  --font-read: "Newsreader", Georgia, serif;

  --maxw: 760px;
  --safe-b: env(safe-area-inset-bottom, 0px);
}

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

html { -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font-ui);
  color: var(--ink);
  background-color: var(--paper);
  background-image:
    radial-gradient(circle at 18% 12%, rgba(192,81,44,.06), transparent 42%),
    radial-gradient(circle at 85% 8%, rgba(44,107,98,.07), transparent 38%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.035'/%3E%3C/svg%3E");
  min-height: 100dvh;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.hidden { display: none !important; }

button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
input { font-family: inherit; }

/* ---------- Brand ---------- */
.brand { display: flex; align-items: center; gap: 12px; }
.brand-mark {
  display: grid; place-items: center;
  width: 44px; height: 44px;
  background: var(--accent); color: var(--paper);
  font-family: var(--font-display); font-weight: 800; font-size: 24px;
  border-radius: 13px;
  box-shadow: var(--shadow-sm), inset 0 1px 0 rgba(255,255,255,.25);
  transform: rotate(-4deg);
}
.brand-name { font-family: var(--font-display); font-weight: 700; font-size: 26px; letter-spacing: -.02em; line-height: 1; }
.brand-tag { font-size: 13px; color: var(--ink-soft); margin-top: 3px; }

/* ============ PROFİL EKRANI ============ */
.profile-screen {
  min-height: 100dvh;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 32px 22px calc(32px + var(--safe-b));
  gap: 8px;
}
.profile-wrap { width: 100%; max-width: 420px; }
.profile-screen .brand { margin-bottom: 38px; }
.profile-screen .brand-mark { width: 56px; height: 56px; font-size: 30px; border-radius: 16px; }
.profile-screen .brand-name { font-size: 34px; }
.profile-intro {
  font-family: var(--font-display); font-size: 21px; font-weight: 500;
  font-style: italic; color: var(--ink-soft); margin-bottom: 16px;
}
.profile-list { display: flex; flex-direction: column; gap: 12px; margin-bottom: 22px; }
.profile-card {
  display: flex; align-items: center; gap: 14px;
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--r-md); padding: 14px 16px;
  box-shadow: var(--shadow-sm);
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s;
  text-align: left; width: 100%;
}
.profile-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); border-color: var(--accent); }
.profile-card .avatar { flex: 0 0 auto; }
.profile-card .pc-meta { flex: 1; min-width: 0; }
.profile-card .pc-name { font-weight: 600; font-size: 17px; }
.profile-card .pc-sub { font-size: 13px; color: var(--ink-soft); }
.profile-card .pc-del {
  color: var(--ink-faint); font-size: 20px; padding: 4px 8px; border-radius: 8px;
  line-height: 1;
}
.profile-card .pc-del:hover { color: var(--bad); background: rgba(177,59,59,.08); }

.avatar {
  display: grid; place-items: center;
  width: 46px; height: 46px; border-radius: 50%;
  font-family: var(--font-display); font-weight: 700; font-size: 20px;
  color: #fff; box-shadow: inset 0 1px 0 rgba(255,255,255,.3);
}

.add-profile { display: flex; gap: 10px; }
.add-profile input {
  flex: 1; padding: 13px 16px; font-size: 15px;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--r-sm);
  color: var(--ink); outline: none; transition: border-color .15s;
}
.add-profile input:focus { border-color: var(--accent); }
.profile-foot { font-size: 12.5px; color: var(--ink-faint); margin-top: 26px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 20px; border-radius: var(--r-sm);
  font-weight: 600; font-size: 15px; letter-spacing: -.01em;
  transition: transform .12s ease, box-shadow .15s, background .15s, opacity .15s;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px) scale(.99); }
.btn-accent { background: var(--accent); color: #fff; box-shadow: var(--shadow-sm); }
.btn-accent:hover { box-shadow: var(--shadow-md); }
.btn-teal { background: var(--accent-2); color: #fff; box-shadow: var(--shadow-sm); }
.btn-ghost { background: var(--card); border: 1px solid var(--line); color: var(--ink); }
.btn-ghost:hover { border-color: var(--accent); }
.btn-block { width: 100%; }
.btn-lg { padding: 15px 26px; font-size: 16px; }
.btn:disabled { opacity: .45; pointer-events: none; }

/* ============ APP SHELL ============ */
.app { min-height: 100dvh; display: flex; flex-direction: column; }

.topbar {
  position: sticky; top: 0; z-index: 30;
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 18px;
  background: rgba(244,237,224,.82);
  backdrop-filter: blur(12px) saturate(1.2);
  -webkit-backdrop-filter: blur(12px) saturate(1.2);
  border-bottom: 1px solid var(--line);
}
.brand-sm .brand-mark { width: 34px; height: 34px; font-size: 19px; border-radius: 10px; }
.brand-sm .brand-name { font-size: 21px; }

.profile-chip {
  display: flex; align-items: center; gap: 9px;
  padding: 6px 14px 6px 6px; border-radius: 30px;
  background: var(--card); border: 1px solid var(--line);
  font-weight: 600; font-size: 14px; box-shadow: var(--shadow-sm);
  transition: border-color .15s;
}
.profile-chip:hover { border-color: var(--accent); }
.chip-avatar { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; color: #fff; font-family: var(--font-display); font-weight: 700; font-size: 14px; }

.view {
  flex: 1;
  width: 100%; max-width: var(--maxw); margin: 0 auto;
  padding: 22px 18px calc(108px + var(--safe-b));
  animation: viewIn .4s cubic-bezier(.2,.7,.2,1);
}
@keyframes viewIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

/* ---------- Tabbar ---------- */
.tabbar {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 30;
  display: flex; justify-content: space-around;
  padding: 8px 6px calc(8px + var(--safe-b));
  background: rgba(251,247,239,.9);
  backdrop-filter: blur(14px) saturate(1.2);
  -webkit-backdrop-filter: blur(14px) saturate(1.2);
  border-top: 1px solid var(--line);
}
.tab {
  display: flex; flex-direction: column; align-items: center; gap: 3px;
  padding: 6px 10px; border-radius: 12px; flex: 1; max-width: 90px;
  color: var(--ink-faint); font-size: 11px; font-weight: 600;
  transition: color .15s, background .15s;
}
.tab svg { width: 23px; height: 23px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.tab.active { color: var(--accent); }
.tab.active svg { stroke-width: 2.2; }

/* ---------- Headings / sections ---------- */
.page-title {
  font-family: var(--font-display); font-weight: 600;
  font-size: clamp(26px, 7vw, 34px); letter-spacing: -.02em; line-height: 1.08;
  margin-bottom: 4px;
}
.page-sub { color: var(--ink-soft); font-size: 15px; margin-bottom: 22px; }
.eyebrow {
  font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 8px;
}
.section-h { font-family: var(--font-display); font-weight: 600; font-size: 20px; margin: 26px 0 12px; letter-spacing: -.01em; }

/* ---------- Cards ---------- */
.card {
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--r-md); padding: 20px;
  box-shadow: var(--shadow-sm);
}
.card-lg { padding: 24px; border-radius: var(--r-lg); }

/* Today hero */
.hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(120% 130% at 100% 0%, rgba(192,81,44,.12), transparent 55%),
    var(--card);
  border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: 24px; box-shadow: var(--shadow-md); margin-bottom: 18px;
}
.hero::after {
  content: ""; position: absolute; right: -40px; bottom: -50px;
  width: 170px; height: 170px; border-radius: 50%;
  background: radial-gradient(circle, rgba(44,107,98,.10), transparent 70%);
}
.hero .hero-week { font-family: var(--font-display); font-style: italic; color: var(--accent-2); font-size: 15px; margin-bottom: 6px; }
.hero .hero-focus { font-family: var(--font-display); font-size: 27px; font-weight: 600; letter-spacing: -.02em; line-height: 1.12; margin-bottom: 14px; }
.hero .hero-tip {
  position: relative; font-family: var(--font-read); font-size: 16px; line-height: 1.55;
  color: var(--ink-soft); padding-left: 16px; border-left: 3px solid var(--gold);
  margin-bottom: 20px;
}

/* task list */
.task { display: flex; align-items: center; gap: 13px; padding: 13px 0; border-top: 1px solid var(--line); }
.task:first-child { border-top: none; }
.task-check {
  flex: 0 0 auto; width: 26px; height: 26px; border-radius: 50%;
  border: 2px solid var(--ink-faint); display: grid; place-items: center;
  transition: all .15s;
}
.task-check svg { width: 14px; height: 14px; stroke: #fff; stroke-width: 3; fill: none; stroke-linecap: round; stroke-linejoin: round; opacity: 0; }
.task.done .task-check { background: var(--good); border-color: var(--good); }
.task.done .task-check svg { opacity: 1; }
.task-body { flex: 1; min-width: 0; }
.task-label { font-weight: 600; font-size: 15px; line-height: 1.3; }
.task.done .task-label { color: var(--ink-faint); text-decoration: line-through; }
.task-kind { font-size: 12px; color: var(--accent-2); font-weight: 600; letter-spacing: .02em; }
.task-go {
  flex: 0 0 auto; font-size: 13px; font-weight: 700; color: var(--accent);
  padding: 7px 13px; border-radius: 20px; background: rgba(192,81,44,.09);
  transition: background .15s;
}
.task-go:hover { background: rgba(192,81,44,.16); }

/* progress bar */
.pbar { height: 9px; background: var(--paper-2); border-radius: 20px; overflow: hidden; box-shadow: inset 0 1px 2px rgba(40,35,28,.08); }
.pbar > i { display: block; height: 100%; background: linear-gradient(90deg, var(--accent), var(--gold)); border-radius: 20px; transition: width .5s cubic-bezier(.2,.7,.2,1); }

/* stat tiles */
.stat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.stat {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--r-md);
  padding: 16px 14px; text-align: center; box-shadow: var(--shadow-sm);
}
.stat-num { font-family: var(--font-display); font-weight: 700; font-size: 28px; line-height: 1; letter-spacing: -.02em; }
.stat-num span { font-size: 14px; color: var(--ink-faint); font-weight: 600; }
.stat-lab { font-size: 11.5px; color: var(--ink-soft); margin-top: 6px; text-transform: uppercase; letter-spacing: .06em; font-weight: 600; }

/* ---------- Program (weeks/days) ---------- */
.week { margin-bottom: 16px; }
.week-head { display: flex; align-items: baseline; gap: 10px; margin-bottom: 12px; }
.week-num {
  font-family: var(--font-display); font-weight: 800; font-size: 15px;
  color: var(--paper); background: var(--accent-2); border-radius: 8px;
  padding: 3px 9px; letter-spacing: .02em; transform: rotate(-2deg);
}
.week-title { font-family: var(--font-display); font-weight: 600; font-size: 19px; letter-spacing: -.01em; }
.week-goal { font-size: 13.5px; color: var(--ink-soft); margin-bottom: 12px; line-height: 1.45; }
.day-row {
  display: flex; align-items: center; gap: 13px; width: 100%;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--r-md);
  padding: 13px 15px; margin-bottom: 9px; box-shadow: var(--shadow-sm);
  transition: transform .14s, box-shadow .14s, border-color .14s; text-align: left;
}
.day-row:hover { transform: translateX(3px); box-shadow: var(--shadow-md); border-color: var(--accent); }
.day-row.current { border-color: var(--accent); box-shadow: 0 0 0 2px rgba(192,81,44,.18), var(--shadow-md); }
.day-row.done { opacity: .62; }
.day-badge {
  flex: 0 0 auto; width: 42px; height: 42px; border-radius: 12px;
  display: grid; place-items: center; background: var(--paper-2);
  font-family: var(--font-display); line-height: 1; text-align: center;
}
.day-badge b { font-size: 17px; font-weight: 700; }
.day-badge small { display: block; font-size: 9px; color: var(--ink-soft); font-family: var(--font-ui); font-weight: 700; letter-spacing: .04em; }
.day-row.done .day-badge { background: var(--good); color: #fff; }
.day-info { flex: 1; min-width: 0; }
.day-focus { font-weight: 600; font-size: 15px; }
.day-meta { font-size: 12.5px; color: var(--ink-soft); }
.day-chev { color: var(--ink-faint); font-size: 20px; }

/* ---------- RSVP reader ---------- */
.rsvp-stage {
  position: relative;
  background: var(--ink); color: var(--paper);
  border-radius: var(--r-lg); padding: 0;
  box-shadow: var(--shadow-lg);
  height: 240px; display: grid; place-items: center; overflow: hidden;
  margin-bottom: 18px;
}
.rsvp-stage::before, .rsvp-stage::after {
  content: ""; position: absolute; left: 50%; transform: translateX(-50%);
  width: 2px; height: 18px; background: var(--accent);
}
.rsvp-stage::before { top: 64px; }
.rsvp-stage::after { bottom: 64px; }
.rsvp-word {
  font-family: var(--font-read); font-size: clamp(34px, 11vw, 56px); font-weight: 500;
  letter-spacing: -.01em; white-space: nowrap; position: relative;
}
.rsvp-word .pv { color: var(--accent); }
.rsvp-guide { position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%); width: 1px; height: 26px; background: rgba(244,237,224,.18); }
.rsvp-idle { font-family: var(--font-display); font-style: italic; font-size: 20px; color: rgba(244,237,224,.5); }

.rsvp-progress { height: 6px; background: var(--paper-2); border-radius: 20px; overflow: hidden; margin-bottom: 18px; }
.rsvp-progress > i { display: block; height: 100%; width: 0; background: var(--accent); transition: width .1s linear; }

.rsvp-controls { display: flex; align-items: center; justify-content: center; gap: 14px; margin-bottom: 22px; }
.rc-btn {
  width: 52px; height: 52px; border-radius: 50%;
  background: var(--card); border: 1px solid var(--line);
  display: grid; place-items: center; box-shadow: var(--shadow-sm);
  transition: transform .12s, box-shadow .15s;
}
.rc-btn:hover { box-shadow: var(--shadow-md); }
.rc-btn:active { transform: scale(.94); }
.rc-btn svg { width: 22px; height: 22px; fill: var(--ink); }
.rc-btn.main { width: 68px; height: 68px; background: var(--accent); border-color: var(--accent); }
.rc-btn.main svg { width: 28px; height: 28px; fill: #fff; }

.control-row { margin-bottom: 18px; }
.control-row label { display: flex; justify-content: space-between; font-size: 13px; font-weight: 600; color: var(--ink-soft); margin-bottom: 8px; }
.control-row label b { color: var(--accent); font-family: var(--font-display); font-size: 15px; }

input[type="range"] {
  -webkit-appearance: none; appearance: none; width: 100%; height: 6px;
  background: var(--paper-2); border-radius: 20px; outline: none;
}
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none; width: 22px; height: 22px; border-radius: 50%;
  background: var(--accent); box-shadow: var(--shadow-sm); cursor: pointer; border: 3px solid var(--card);
}
input[type="range"]::-moz-range-thumb { width: 22px; height: 22px; border-radius: 50%; background: var(--accent); cursor: pointer; border: 3px solid var(--card); }

.chip-row { display: flex; gap: 8px; flex-wrap: wrap; }
.chip-toggle {
  padding: 8px 15px; border-radius: 20px; font-size: 13.5px; font-weight: 600;
  background: var(--card); border: 1px solid var(--line); color: var(--ink-soft);
  transition: all .14s;
}
.chip-toggle.on { background: var(--accent); color: #fff; border-color: var(--accent); }

.text-picker { display: flex; flex-direction: column; gap: 10px; }
.text-opt {
  display: flex; align-items: center; gap: 12px; text-align: left;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--r-md);
  padding: 14px 16px; box-shadow: var(--shadow-sm); transition: all .14s;
}
.text-opt:hover { border-color: var(--accent); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.text-opt .to-name { font-family: var(--font-display); font-weight: 600; font-size: 17px; flex: 1; }
.lvl-tag { font-size: 11px; font-weight: 700; padding: 3px 9px; border-radius: 20px; letter-spacing: .03em; }
.lvl-Kolay { background: rgba(44,122,91,.14); color: var(--good); }
.lvl-Orta  { background: rgba(199,154,58,.18); color: #9a7517; }
.lvl-Zor   { background: rgba(177,59,59,.13); color: var(--bad); }

/* ---------- Test / paragraf ---------- */
.read-card {
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--r-lg); padding: 26px 24px; box-shadow: var(--shadow-md);
  margin-bottom: 18px;
}
.read-title { font-family: var(--font-display); font-weight: 600; font-size: 20px; margin-bottom: 14px; color: var(--accent); }
.read-body { font-family: var(--font-read); font-size: 18.5px; line-height: 1.72; color: var(--ink); }

.timer-pill {
  position: sticky; top: 60px; z-index: 20; float: right;
  display: inline-flex; align-items: center; gap: 7px;
  background: var(--ink); color: var(--paper); font-family: var(--font-display);
  font-weight: 600; font-size: 16px; padding: 7px 15px; border-radius: 20px;
  box-shadow: var(--shadow-md); margin-bottom: 8px;
}
.timer-pill::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); animation: pulse 1.4s infinite; }
@keyframes pulse { 0%,100%{opacity:1} 50%{opacity:.3} }

.q-block { margin-bottom: 18px; }
.q-text { font-weight: 600; font-size: 16.5px; line-height: 1.45; margin-bottom: 14px; }
.q-text .q-n { color: var(--accent); font-family: var(--font-display); margin-right: 4px; }
.opt {
  display: flex; align-items: flex-start; gap: 12px; width: 100%; text-align: left;
  background: var(--card); border: 1.5px solid var(--line); border-radius: var(--r-sm);
  padding: 13px 15px; margin-bottom: 9px; font-size: 15.5px; line-height: 1.4;
  transition: all .14s;
}
.opt:hover { border-color: var(--accent); }
.opt .opt-key {
  flex: 0 0 auto; width: 26px; height: 26px; border-radius: 7px;
  background: var(--paper-2); display: grid; place-items: center;
  font-weight: 700; font-size: 13px; color: var(--ink-soft);
}
.opt.selected { border-color: var(--accent); background: rgba(192,81,44,.06); }
.opt.selected .opt-key { background: var(--accent); color: #fff; }
.opt.correct { border-color: var(--good); background: rgba(44,122,91,.08); }
.opt.correct .opt-key { background: var(--good); color: #fff; }
.opt.wrong { border-color: var(--bad); background: rgba(177,59,59,.07); }
.opt.wrong .opt-key { background: var(--bad); color: #fff; }
.opt.locked { pointer-events: none; }

.explain {
  font-family: var(--font-read); font-size: 15px; line-height: 1.6; color: var(--ink-soft);
  background: var(--paper-2); border-radius: var(--r-sm); padding: 13px 15px;
  margin-top: 4px; border-left: 3px solid var(--gold);
  animation: viewIn .3s ease;
}

/* results */
.result-hero {
  text-align: center; background: var(--card); border: 1px solid var(--line);
  border-radius: var(--r-lg); padding: 30px 24px; box-shadow: var(--shadow-md); margin-bottom: 18px;
}
.result-score { font-family: var(--font-display); font-size: 60px; font-weight: 800; line-height: 1; letter-spacing: -.03em; }
.result-msg { font-family: var(--font-display); font-style: italic; font-size: 19px; color: var(--ink-soft); margin-top: 8px; }
.result-stats { display: grid; grid-template-columns: repeat(3,1fr); gap: 10px; margin-top: 22px; }
.result-stats .stat-num { font-size: 23px; }

/* empty / misc */
.empty { text-align: center; color: var(--ink-soft); padding: 40px 20px; }
.empty .em-ic { font-size: 40px; margin-bottom: 10px; }
.divider { height: 1px; background: var(--line); margin: 22px 0; }

.toast {
  position: fixed; left: 50%; bottom: calc(96px + var(--safe-b)); transform: translateX(-50%) translateY(20px);
  background: var(--ink); color: var(--paper); padding: 12px 22px; border-radius: 30px;
  font-size: 14px; font-weight: 600; box-shadow: var(--shadow-lg); z-index: 60;
  opacity: 0; pointer-events: none; transition: all .3s cubic-bezier(.2,.7,.2,1);
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* mini bar chart */
.chart { display: flex; align-items: flex-end; gap: 7px; height: 130px; padding-top: 10px; }
.chart-col { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 6px; height: 100%; justify-content: flex-end; min-width: 0; }
.chart-bar { width: 100%; max-width: 30px; background: linear-gradient(180deg, var(--accent), var(--gold)); border-radius: 6px 6px 0 0; transition: height .6s cubic-bezier(.2,.7,.2,1); min-height: 4px; }
.chart-bar.teal { background: linear-gradient(180deg, var(--accent-2), #5aa39a); }
.chart-lab { font-size: 10px; color: var(--ink-faint); font-weight: 600; }
.chart-val { font-size: 11px; font-weight: 700; color: var(--ink-soft); }

.back-link { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; font-size: 14px; color: var(--ink-soft); margin-bottom: 16px; }
.back-link:hover { color: var(--accent); }
.back-link svg { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }

.row-between { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.mt-sm { margin-top: 12px; } .mt-md { margin-top: 20px; } .mt-lg { margin-top: 30px; }
.muted { color: var(--ink-soft); }
.center { text-align: center; }
code { font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: .88em; background: var(--paper-2); padding: 1px 6px; border-radius: 5px; color: var(--accent); }

/* ---------- Spinner ---------- */
.spinner {
  width: 32px; height: 32px; border-radius: 50%;
  border: 3px solid var(--line); border-top-color: var(--accent);
  animation: spin .7s linear infinite; margin: 0 auto 12px;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Admin / İçerik ---------- */
.subtabs { display: flex; gap: 8px; margin-bottom: 22px; overflow-x: auto; padding-bottom: 4px; -webkit-overflow-scrolling: touch; }
.subtab {
  flex: 0 0 auto; padding: 9px 16px; border-radius: 22px; font-size: 14px; font-weight: 600;
  background: var(--card); border: 1px solid var(--line); color: var(--ink-soft); transition: all .14s; white-space: nowrap;
}
.subtab.on { background: var(--ink); color: var(--paper); border-color: var(--ink); }

.form-grid { display: flex; flex-direction: column; gap: 14px; }
.fld { display: flex; flex-direction: column; gap: 6px; }
.fld > span { font-size: 13px; font-weight: 600; color: var(--ink-soft); }
.fld-inline { display: flex; align-items: center; gap: 10px; }
.fld-inline > span { font-size: 13px; font-weight: 600; color: var(--ink-soft); }

.form-grid input, .form-grid textarea, .form-grid select,
.import-ta {
  width: 100%; padding: 11px 13px; font-size: 15px; font-family: inherit;
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-sm);
  color: var(--ink); outline: none; transition: border-color .15s; resize: vertical;
}
.form-grid textarea { font-family: var(--font-read); line-height: 1.5; }
.form-grid input:focus, .form-grid textarea:focus, .form-grid select:focus, .import-ta:focus { border-color: var(--accent); }

.q-builder { display: flex; flex-direction: column; gap: 14px; }
.q-fields { background: var(--paper-2); border: 1px solid var(--line); border-radius: var(--r-md); padding: 14px; display: flex; flex-direction: column; gap: 10px; }
.qf-head { font-family: var(--font-display); font-weight: 600; font-size: 15px; color: var(--accent); }
.opts-wrap { display: flex; flex-direction: column; gap: 8px; }
.opt-line { display: flex; align-items: center; gap: 9px; }
.opt-tag { flex: 0 0 auto; width: 26px; height: 26px; border-radius: 7px; background: var(--card); display: grid; place-items: center; font-weight: 700; font-size: 13px; color: var(--ink-soft); }
.ans-select { max-width: 90px; }

.btn-sm { padding: 9px 15px; font-size: 14px; align-self: flex-start; }

.admin-list { display: flex; flex-direction: column; gap: 9px; }
.admin-row {
  display: flex; align-items: center; gap: 12px;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--r-md);
  padding: 13px 15px; box-shadow: var(--shadow-sm);
}
.ar-body { flex: 1; min-width: 0; }
.ar-title { font-weight: 600; font-size: 15px; }
.ar-sub { font-size: 12.5px; color: var(--ink-soft); }
.ar-del { flex: 0 0 auto; font-size: 13px; font-weight: 600; color: var(--bad); padding: 7px 13px; border-radius: 20px; background: rgba(177,59,59,.08); transition: background .15s; }
.ar-del:hover { background: rgba(177,59,59,.18); }

.import-ta { font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: 13px; line-height: 1.5; white-space: pre; }

/* ---------- Gün dersi (theory / steps / mistakes / goal) ---------- */
.duration-badge {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 12.5px; font-weight: 700; color: var(--accent-2);
  background: rgba(44,107,98,.10); padding: 5px 12px; border-radius: 20px;
  margin-bottom: 18px;
}
.lesson-card {
  background:
    radial-gradient(120% 130% at 0% 0%, rgba(199,154,58,.10), transparent 55%),
    var(--card);
  border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: 22px; box-shadow: var(--shadow-sm); margin-bottom: 8px;
}
.lesson-eyebrow {
  font-size: 11px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 10px;
}
.lesson-body { font-family: var(--font-read); font-size: 17px; line-height: 1.72; color: var(--ink); }

.step-list { list-style: none; counter-reset: step; display: flex; flex-direction: column; gap: 13px; }
.step-list li {
  position: relative; padding-left: 40px; font-size: 15.5px; line-height: 1.5;
  counter-increment: step;
}
.step-list li::before {
  content: counter(step); position: absolute; left: 0; top: -2px;
  width: 27px; height: 27px; border-radius: 8px;
  background: var(--accent); color: #fff;
  font-family: var(--font-display); font-weight: 700; font-size: 14px;
  display: grid; place-items: center;
}

.card.mistakes { background: rgba(177,59,59,.045); border-color: rgba(177,59,59,.22); }
.mistake-list { list-style: none; display: flex; flex-direction: column; gap: 11px; }
.mistake-list li { position: relative; padding-left: 28px; font-size: 15px; line-height: 1.5; color: var(--ink); }
.mistake-list li::before { content: "✕"; position: absolute; left: 0; top: 0; color: var(--bad); font-weight: 800; }

.goal-box {
  display: flex; align-items: center; gap: 14px;
  background: var(--ink); color: var(--paper);
  border-radius: var(--r-md); padding: 16px 18px; margin-top: 20px;
  box-shadow: var(--shadow-md);
}
.goal-box .goal-ic { font-size: 26px; flex: 0 0 auto; }
.goal-box .goal-lab { font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); margin-bottom: 3px; }
.goal-box .goal-text { font-family: var(--font-read); font-size: 16px; line-height: 1.45; }

/* tighter tabs for 6 items */
.tab { padding: 6px 4px; }
.tab svg { width: 21px; height: 21px; }

/* responsive */
@media (min-width: 620px) {
  .rsvp-stage { height: 280px; }
  .hero .hero-focus { font-size: 30px; }
}
@media (max-width: 360px) {
  .tab span { font-size: 10px; }
  .stat-num { font-size: 24px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .05ms !important; }
}
