/* =========================================================
   FourLeafEnglish – Sınav kitapçığı esintili şık tasarım
   ========================================================= */
:root {
  --navy: #14213d;
  --navy-2: #1f3060;
  --ink: #1b1f2a;
  --muted: #5d6475;
  --paper: #fbf8f1;
  --paper-2: #f3eee2;
  --line: #e2dccd;
  --gold: #c9a227;
  --clover: #2f9e6e;
  --clover-dark: #1f7a52;
  --ok: #2f9e6e;
  --ok-bg: #e7f5ee;
  --bad: #c2413b;
  --bad-bg: #fbeaea;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(20, 33, 61, .06), 0 8px 24px rgba(20, 33, 61, .08);
  --serif: "Source Serif 4", Georgia, "Times New Roman", serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  font-family: var(--sans);
  color: var(--ink);
  background:
    radial-gradient(1200px 600px at 100% -10%, rgba(201,162,39,.08), transparent 60%),
    var(--paper);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--navy-2); }
button { font: inherit; cursor: pointer; }
main { flex: 1; width: 100%; max-width: 1180px; margin: 0 auto; padding: 28px 20px 60px; outline: none; }

/* ---------- Topbar ---------- */
.topbar {
  position: sticky; top: 0; z-index: 30;
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 24px;
  padding-top: calc(12px + env(safe-area-inset-top));
  background: var(--navy);
  color: #fff;
  border-bottom: 3px solid var(--gold);
}
.brand { display: flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; }
.brand-mark {
  width: 38px; height: 38px; border-radius: 10px;
  display: grid; place-items: center;
  background: #ffffff; color: var(--navy);
  font-family: var(--serif); font-weight: 700; font-size: 22px;
  overflow: hidden;
  padding: 2px;
  box-shadow: 0 2px 6px rgba(0,0,0,.22);
}
.brand-mark img {
  width: 100%; height: 100%; object-fit: contain; display: block; border-radius: 8px;
}
.brand-text { font-family: var(--serif); font-size: 20px; font-weight: 700; letter-spacing: .3px; }
.brand-text em { font-weight: 400; color: #e9d690; }
.topnav { display: flex; gap: 4px; }
.topnav a {
  color: #d7dcea; text-decoration: none; font-size: 14px; font-weight: 500;
  padding: 8px 14px; border-radius: 999px; transition: .2s;
}
.topnav a:hover { color: #fff; background: rgba(255,255,255,.08); }
.topnav a.active { color: var(--navy); background: var(--paper); }

/* ---------- Generic ---------- */
.eyebrow { text-transform: uppercase; letter-spacing: .14em; font-size: 12px; font-weight: 600; color: var(--gold); }
h1, h2, h3 { font-family: var(--serif); color: var(--navy); margin: 0; }
.btn {
  display: inline-flex; align-items: center; gap: 8px; justify-content: center;
  padding: 12px 22px; border-radius: 999px; border: 1px solid transparent;
  font-weight: 600; font-size: 15px; text-decoration: none; transition: .2s;
}
.btn-primary { background: var(--navy); color: #fff; }
.btn-primary:hover { background: var(--navy-2); transform: translateY(-1px); }
.btn-gold { background: var(--gold); color: var(--navy); }
.btn-gold:hover { filter: brightness(1.06); transform: translateY(-1px); }
.btn-ghost { background: transparent; color: var(--navy); border-color: var(--line); }
.btn-ghost:hover { background: #fff; }
.btn:disabled { opacity: .45; cursor: not-allowed; transform: none; }
.icon-btn {
  width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--line);
  background: #fff; color: var(--navy); display: grid; place-items: center;
}
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow);
}

/* ---------- Home ---------- */
.hero {
  display: grid; grid-template-columns: 1.3fr 1fr; gap: 32px; align-items: center;
  padding: 36px; border-radius: 22px;
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-2) 100%);
  color: #fff; position: relative; overflow: hidden;
}
.hero::after {
  content: ""; position: absolute; right: -80px; bottom: -80px; width: 320px; height: 320px;
  background: url("../assets/icon.svg") center/contain no-repeat; opacity: .07;
}
.hero h1 { color: #fff; font-size: clamp(30px, 4vw, 46px); line-height: 1.1; margin: 10px 0 14px; }
.hero h1 em { color: #e9d690; font-weight: 400; }
.hero p { color: #cfd6e8; font-size: 16px; line-height: 1.6; max-width: 560px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 22px; }
.hero .btn-ghost { color: #fff; border-color: rgba(255,255,255,.3); }
.hero .btn-ghost:hover { background: rgba(255,255,255,.08); }
.hero-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; position: relative; z-index: 1; }
.stat {
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12);
  border-radius: 14px; padding: 16px;
}
.stat b { display: block; font-family: var(--serif); font-size: 30px; color: #fff; }
.stat span { font-size: 13px; color: #b9c2da; }

.section-head { display: flex; align-items: end; justify-content: space-between; margin: 40px 0 16px; gap: 12px; }
.section-head h2 { font-size: 26px; }
.section-head p { margin: 4px 0 0; color: var(--muted); }

.cat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 14px; }
.cat-card {
  text-align: left; padding: 18px; display: flex; gap: 14px; align-items: flex-start;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  transition: .2s; color: inherit; text-decoration: none; position: relative;
}
.cat-card:hover { transform: translateY(-2px); box-shadow: var(--shadow); border-color: #cfc6b0; }
.cat-icon {
  flex: none; width: 44px; height: 44px; border-radius: 12px;
  display: grid; place-items: center; background: var(--paper-2);
  font-family: var(--serif); font-weight: 700; color: var(--navy); font-size: 18px;
}
.cat-card h3 { font-size: 17px; margin-bottom: 2px; }
.cat-card p { margin: 0; font-size: 13px; color: var(--muted); }
.cat-meta { display: flex; gap: 8px; margin-top: 10px; font-size: 12px; color: var(--muted); align-items: center; }
.bar { height: 5px; background: var(--paper-2); border-radius: 99px; overflow: hidden; flex: 1; min-width: 60px; }
.bar > i { display: block; height: 100%; background: var(--clover); border-radius: 99px; }
.cat-order {
  position: absolute; top: 12px; right: 14px; font-size: 11px; color: #b0a88f; font-weight: 600;
}

.mode-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.mode-card { padding: 22px; display: flex; flex-direction: column; gap: 10px; }
.mode-card h3 { font-size: 20px; }
.mode-card p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.55; flex: 1; }
.mode-card .btn { align-self: flex-start; }

.how { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.how .card { padding: 20px; }
.how h3 { font-size: 17px; margin: 10px 0 6px; }
.how p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.55; }
.how .num { font-family: var(--serif); font-size: 28px; color: var(--gold); font-weight: 700; }

/* ---------- Quiz layout ---------- */
.quiz-layout { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 22px; align-items: start; }
.quiz-top {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  margin-bottom: 16px;
}
.quiz-title { display: flex; flex-direction: column; gap: 2px; }
.quiz-title h1 { font-size: 22px; }
.quiz-title span { font-size: 13px; color: var(--muted); }
.timer {
  font-variant-numeric: tabular-nums; font-weight: 600; color: var(--navy);
  background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 8px 16px;
  display: inline-flex; gap: 8px; align-items: center;
}
.timer.warn { color: var(--bad); border-color: #efc1be; }
.progress { height: 6px; border-radius: 99px; background: var(--paper-2); overflow: hidden; margin-bottom: 18px; }
.progress > i { display: block; height: 100%; background: linear-gradient(90deg, var(--navy), var(--gold)); transition: width .3s; }

.q-card { position: relative; padding: 28px 30px 22px; }
.q-head { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; padding-right: 64px; flex-wrap: wrap; }
.q-num {
  font-family: var(--serif); font-weight: 700; font-size: 22px; color: var(--navy);
  min-width: 42px; height: 42px; border-radius: 10px; display: grid; place-items: center;
  border: 2px solid var(--navy);
}
.q-tag {
  font-size: 12px; font-weight: 600; color: var(--navy); background: var(--paper-2);
  padding: 5px 10px; border-radius: 999px;
}
.q-tag.alt { background: #fff7dc; color: #8a6d0b; }
.q-instr { font-size: 13px; color: var(--muted); margin: -6px 0 14px; font-style: italic; }

.passage {
  font-family: var(--serif); font-size: 17px; line-height: 1.75; color: var(--ink);
  background: var(--paper); border: 1px solid var(--line); border-left: 4px solid var(--gold);
  border-radius: 10px; padding: 16px 20px; margin-bottom: 18px; text-align: justify; hyphens: auto;
}
.passage .blank {
  display: inline-block; min-width: 54px; text-align: center;
  border-bottom: 2px solid #b6ad95; color: var(--muted); font-family: var(--sans); font-size: 13px; font-weight: 600;
  padding: 0 6px; margin: 0 2px;
}
.passage .blank.current { border-color: var(--navy); color: var(--navy); background: #fff7dc; border-radius: 4px 4px 0 0; }
.stem { font-family: var(--serif); font-size: 19px; line-height: 1.65; color: var(--ink); margin: 0 0 20px; }
.stem .gap { letter-spacing: 2px; font-weight: 700; color: var(--navy); }

.dialogue { margin: 0 0 20px; display: grid; gap: 8px; font-family: var(--serif); font-size: 17px; line-height: 1.6; }
.dialogue div { display: grid; grid-template-columns: 96px 1fr; gap: 10px; }
.dialogue b { font-family: var(--sans); font-size: 13px; color: var(--navy); padding-top: 3px; }
.dialogue .gap { color: var(--navy); font-weight: 700; letter-spacing: 2px; }

.sentences { font-family: var(--serif); font-size: 17px; line-height: 1.75; margin: 0 0 20px; text-align: justify; }
.sentences sup { font-family: var(--sans); font-weight: 700; color: var(--navy); font-size: 12px; margin: 0 3px 0 4px; }

.options { display: grid; gap: 10px; }
.opt {
  display: flex; gap: 14px; align-items: flex-start; text-align: left; width: 100%;
  padding: 13px 16px; border: 1.5px solid var(--line); border-radius: 12px; background: #fff;
  font-family: var(--serif); font-size: 17px; line-height: 1.5; color: var(--ink); transition: .15s;
}
.opt:hover:not(:disabled) { border-color: var(--navy); background: #fdfcf8; }
.opt .letter {
  flex: none; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center;
  border: 1.5px solid #bdb59f; font-family: var(--sans); font-weight: 700; font-size: 13px; color: var(--navy);
}
.opt.selected { border-color: var(--navy); background: #f4f6fb; }
.opt.selected .letter { background: var(--navy); border-color: var(--navy); color: #fff; }
.opt.correct { border-color: var(--ok); background: var(--ok-bg); }
.opt.correct .letter { background: var(--ok); border-color: var(--ok); color: #fff; }
.opt.wrong { border-color: var(--bad); background: var(--bad-bg); }
.opt.wrong .letter { background: var(--bad); border-color: var(--bad); color: #fff; }
.opt:disabled { cursor: default; }

.feedback {
  margin-top: 16px; padding: 12px 16px; border-radius: 12px; font-size: 14px; font-weight: 500;
  display: flex; gap: 10px; align-items: center; flex-wrap: wrap;
}
.feedback.ok { background: var(--ok-bg); color: var(--clover-dark); }
.feedback.bad { background: var(--bad-bg); color: #8f2a25; }
.feedback .link-btn { background: none; border: 0; padding: 0; color: inherit; text-decoration: underline; font-weight: 700; }

.source {
  margin-top: 22px; padding-top: 14px; border-top: 1px dashed var(--line);
  display: flex; gap: 10px; align-items: flex-start; font-size: 13px; color: var(--muted);
}
.source .badge {
  flex: none; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em;
  padding: 3px 8px; border-radius: 6px; background: #eef1f8; color: var(--navy-2);
}
.source .badge.haber { background: #fff2e0; color: #9a5a00; }
.source a { color: var(--navy-2); font-weight: 500; text-decoration: none; }
.source a:hover { text-decoration: underline; }
.source small { display: block; color: #8c8f99; margin-top: 2px; }

.q-nav { display: flex; justify-content: space-between; gap: 10px; margin-top: 18px; flex-wrap: wrap; }

/* ---------- Clover (4 yapraklı yonca) ---------- */
.clover-btn {
  position: absolute; top: 18px; right: 18px; width: 52px; height: 52px; border-radius: 50%;
  border: 1.5px solid var(--line); background: #fff; display: grid; place-items: center;
  transition: transform .25s, box-shadow .25s, border-color .25s, opacity .25s;
}
.clover-btn svg { width: 32px; height: 32px; transition: transform .5s; }
.clover-btn svg .leaf { fill: #c9c3b2; transition: fill .3s; }
.clover-btn svg .stem-l { stroke: #c9c3b2; transition: stroke .3s; }
.clover-btn.locked { cursor: not-allowed; opacity: .7; }
.clover-btn.ready svg .leaf { fill: var(--clover); }
.clover-btn.ready svg .stem-l { stroke: var(--clover-dark); }
.clover-btn.ready { border-color: #bfe3d1; }
.clover-btn.ready:hover { transform: scale(1.06); }
.clover-btn.ready:hover svg { transform: rotate(45deg); }
.clover-btn.pulse { animation: cloverPulse 1.6s ease-in-out infinite; border-color: var(--clover); }
@keyframes cloverPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(47,158,110,.45); }
  50% { box-shadow: 0 0 0 12px rgba(47,158,110,0); }
}
.clover-tip {
  position: absolute; top: 76px; right: 10px; z-index: 5; width: 210px;
  background: var(--navy); color: #fff; font-size: 12.5px; line-height: 1.45;
  padding: 9px 12px; border-radius: 10px; box-shadow: var(--shadow);
  animation: fadeIn .3s ease;
}
.clover-tip::before {
  content: ""; position: absolute; top: -6px; right: 28px; width: 12px; height: 12px;
  background: var(--navy); transform: rotate(45deg);
}
@keyframes fadeIn { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }

/* ---------- Side panel (optik form) ---------- */
.side { position: sticky; top: 90px; padding: 18px; }
.side h3 { font-size: 16px; margin-bottom: 4px; }
.side p { margin: 0 0 14px; font-size: 12.5px; color: var(--muted); }
.grid-nav { display: grid; grid-template-columns: repeat(6, 1fr); gap: 6px; }
.grid-nav button {
  aspect-ratio: 1; border-radius: 8px; border: 1px solid var(--line); background: #fff;
  font-size: 12px; font-weight: 600; color: var(--navy);
}
.grid-nav button.answered { background: var(--navy); color: #fff; border-color: var(--navy); }
.grid-nav button.correct { background: var(--ok); color: #fff; border-color: var(--ok); }
.grid-nav button.wrong { background: var(--bad); color: #fff; border-color: var(--bad); }
.grid-nav button.current { outline: 2px solid var(--gold); outline-offset: 2px; }
.legend { display: flex; flex-wrap: wrap; gap: 10px; margin: 14px 0; font-size: 12px; color: var(--muted); }
.legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 5px; vertical-align: -1px; }
.side .btn { width: 100%; margin-top: 6px; }

/* ---------- Drawer ---------- */
.drawer-backdrop { position: fixed; inset: 0; background: rgba(20,33,61,.45); z-index: 40; animation: fadeIn .2s; }
.drawer {
  position: fixed; top: 0; right: 0; bottom: 0; width: min(520px, 100%); z-index: 50;
  background: var(--paper); box-shadow: -10px 0 40px rgba(20,33,61,.25);
  transform: translateX(105%); transition: transform .35s cubic-bezier(.2,.8,.2,1);
  display: flex; flex-direction: column;
}
.drawer.open { transform: none; }
.drawer-head {
  display: flex; justify-content: space-between; align-items: center;
  padding: 18px 22px; padding-top: calc(18px + env(safe-area-inset-top));
  background: var(--clover-dark); color: #fff;
}
.drawer-head h2 { color: #fff; font-size: 20px; }
.drawer-title-wrap { display: flex; gap: 10px; align-items: center; }
.drawer-clover { width: 28px; height: 28px; background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='-50 -50 100 100'><g fill='%23ffffff'><circle cx='-14' cy='-14' r='16'/><circle cx='14' cy='-14' r='16'/><circle cx='-14' cy='14' r='16'/><circle cx='14' cy='14' r='16'/></g></svg>") center/contain no-repeat; }
.drawer-body { padding: 22px; overflow-y: auto; flex: 1; padding-bottom: calc(22px + env(safe-area-inset-bottom)); }
.ans-box {
  display: flex; gap: 14px; align-items: center; padding: 14px 16px; border-radius: 12px;
  background: var(--ok-bg); border: 1px solid #bfe3d1; margin-bottom: 16px;
}
.ans-box .letter {
  width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center;
  background: var(--ok); color: #fff; font-weight: 700; flex: none;
}
.ans-box div { font-family: var(--serif); font-size: 16px; line-height: 1.45; }
.ans-box small { display: block; font-family: var(--sans); font-size: 12px; color: var(--clover-dark); font-weight: 600; text-transform: uppercase; letter-spacing: .06em; }
.why { font-size: 15px; line-height: 1.65; margin: 0 0 20px; }
.drawer h4 { font-family: var(--sans); font-size: 12px; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); margin: 0 0 10px; }
.opt-explain { display: grid; gap: 8px; }
.opt-explain div {
  display: grid; grid-template-columns: 28px 1fr; gap: 10px; padding: 10px 12px; border-radius: 10px;
  background: #fff; border: 1px solid var(--line); font-size: 14px; line-height: 1.5;
}
.opt-explain div b {
  width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font-size: 12px;
  background: var(--paper-2); color: var(--navy);
}
.opt-explain div.is-correct { border-color: #bfe3d1; background: var(--ok-bg); }
.opt-explain div.is-correct b { background: var(--ok); color: #fff; }
.opt-explain div.is-yours { border-color: #efc1be; background: var(--bad-bg); }
.opt-explain div.is-yours b { background: var(--bad); color: #fff; }
.opt-explain em { font-style: normal; font-size: 11px; font-weight: 700; color: var(--bad); text-transform: uppercase; letter-spacing: .05em; margin-left: 6px; }
.drawer .source { margin-top: 20px; }

/* ---------- Result ---------- */
.result-hero { padding: 30px; display: grid; grid-template-columns: auto 1fr; gap: 30px; align-items: center; }
.score-ring {
  width: 170px; height: 170px; border-radius: 50%; display: grid; place-items: center;
  background: conic-gradient(var(--clover) calc(var(--p) * 1%), var(--paper-2) 0);
  position: relative;
}
.score-ring::before { content: ""; position: absolute; inset: 14px; background: #fff; border-radius: 50%; }
.score-ring div { position: relative; text-align: center; }
.score-ring b { font-family: var(--serif); font-size: 42px; color: var(--navy); display: block; line-height: 1; }
.score-ring span { font-size: 12px; color: var(--muted); }
.result-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 16px 0; }
.result-stats div { background: var(--paper); border: 1px solid var(--line); border-radius: 12px; padding: 12px; text-align: center; }
.result-stats b { font-family: var(--serif); font-size: 26px; display: block; }
.result-stats .ok b { color: var(--ok); } .result-stats .bad b { color: var(--bad); } .result-stats .empty b { color: var(--muted); }
.breakdown { padding: 22px; margin-top: 18px; }
.breakdown table { width: 100%; border-collapse: collapse; font-size: 14px; }
.breakdown th, .breakdown td { text-align: left; padding: 10px 8px; border-bottom: 1px solid var(--line); }
.breakdown th { font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 600; }

/* ---------- Sources page ---------- */
.src-list { display: grid; gap: 10px; }
.src-item { padding: 16px 18px; display: flex; gap: 14px; align-items: flex-start; }
.src-item h3 { font-size: 16px; font-family: var(--sans); font-weight: 600; }
.src-item p { margin: 4px 0 0; font-size: 13px; color: var(--muted); }

.empty-state { text-align: center; padding: 50px 20px; }
.empty-state p { color: var(--muted); }

/* ---------- Footer ---------- */
.site-footer { text-align: center; font-size: 12.5px; color: var(--muted); padding: 22px 20px calc(22px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); }
.site-footer p { margin: 0 auto; max-width: 760px; }
.copyright-line { margin-top: 6px !important; font-size: 12px; color: var(--navy); }
.footer-links { margin-top: 8px; display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; font-size: 12.5px; }
.footer-links a { color: var(--navy-2); font-weight: 600; text-decoration: none; }
.footer-links a:hover { text-decoration: underline; }

/* ---------- Legal / Privacy Policy ---------- */
.legal-doc { padding: 28px 32px; line-height: 1.7; font-size: 15px; }
.legal-highlight {
  background: var(--ok-bg); border: 1px solid #bfe3d1; border-left: 4px solid var(--clover);
  padding: 16px 20px; border-radius: 12px; margin-bottom: 24px;
}
.legal-highlight strong { display: block; color: var(--clover-dark); font-size: 15px; margin-bottom: 4px; }
.legal-highlight p { margin: 0; color: var(--ink); font-size: 14.5px; }
.legal-sec { padding-bottom: 18px; margin-bottom: 18px; border-bottom: 1px solid var(--line); }
.legal-sec h3 { font-size: 19px; margin-bottom: 8px; }
.legal-sec p { margin: 0; color: var(--ink); }
.legal-sec ul { margin: 8px 0 0; padding-left: 20px; display: grid; gap: 8px; }

.site-announcement {
  background: linear-gradient(90deg, #fff7dc, #f4ebca);
  border: 1px solid #e3cf88;
  color: var(--navy);
  padding: 11px 18px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 14px;
  margin-bottom: 16px;
}

/* ---------- Admin Panel & Gemini Studio ---------- */
.admin-nav-link { border: 1px solid rgba(255,255,255,.18); }
.admin-login-wrap { max-width: 480px; margin: 32px auto; }
.admin-login-card { padding: 32px 28px; text-align: center; }
.admin-lock-badge {
  width: 56px; height: 56px; border-radius: 16px; margin: 0 auto 12px;
  display: grid; place-items: center; font-size: 26px; background: var(--paper-2);
}
.admin-login-card h1 { font-size: 26px; margin: 6px 0 8px; }
.admin-login-card h1 em { color: var(--gold); font-weight: 400; }
.admin-login-card p { color: var(--muted); font-size: 14px; line-height: 1.55; margin: 0 0 20px; }
.admin-form { display: grid; gap: 12px; text-align: left; }
.admin-form label span, .admin-field label {
  display: block; font-size: 12.5px; font-weight: 600; color: var(--navy); margin-bottom: 5px;
}
.admin-form input, .admin-field input, .admin-field select, .admin-field textarea,
#qFilterCat, #qSearchInput {
  width: 100%; padding: 10px 12px; border-radius: 10px; border: 1.5px solid var(--line);
  background: #fff; font: inherit; font-size: 14px; color: var(--ink);
}
.admin-form input:focus, .admin-field input:focus, .admin-field select:focus, .admin-field textarea:focus {
  outline: none; border-color: var(--navy);
}
.admin-err { background: var(--bad-bg); color: var(--bad); padding: 10px 12px; border-radius: 10px; font-size: 13px; font-weight: 600; }
.admin-login-hint { margin-top: 18px; padding-top: 14px; border-top: 1px dashed var(--line); color: var(--muted); font-size: 12.5px; line-height: 1.5; }

.admin-head {
  padding: 22px 26px; display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap;
  margin-bottom: 16px;
}
.admin-head h1 { font-size: 26px; margin: 4px 0; }
.admin-head p { margin: 0; font-size: 14px; color: var(--muted); }
.admin-head-actions { display: flex; gap: 8px; flex-wrap: wrap; }

.admin-tabs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 18px; }
.admin-tab {
  padding: 10px 18px; border-radius: 999px; border: 1px solid var(--line);
  background: #fff; color: var(--navy); font-weight: 600; font-size: 14px; transition: .15s;
}
.admin-tab:hover { border-color: var(--navy); }
.admin-tab.active { background: var(--navy); color: #fff; border-color: var(--navy); }

.admin-grid-2 { display: grid; grid-template-columns: 1.15fr .85fr; gap: 18px; align-items: start; }
.admin-panel { padding: 24px; }
.admin-panel h2 { font-size: 21px; margin-bottom: 4px; }
.admin-sub { margin: 0 0 16px; font-size: 13.5px; color: var(--muted); }
.admin-field { margin-bottom: 14px; }
.admin-field small { display: block; margin-top: 4px; font-size: 12px; color: var(--muted); }
.input-row { display: flex; gap: 8px; align-items: center; }
.input-row input { flex: 1; }
.admin-row-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.admin-row-5 { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 10px; margin-bottom: 10px; }

.preset-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip-btn {
  padding: 6px 11px; border-radius: 999px; border: 1px solid var(--line);
  background: var(--paper); color: var(--navy); font-size: 12px; font-weight: 500;
}
.chip-btn:hover { background: #fff; border-color: var(--navy); }

.discovered-box {
  background: var(--paper); border: 1px solid var(--line); border-radius: 10px;
  padding: 12px; margin-bottom: 14px;
}
.discovered-box label { display: block; font-size: 12px; font-weight: 700; color: var(--navy); margin-bottom: 8px; }
.discovered-list { display: grid; gap: 6px; max-height: 180px; overflow-y: auto; }
.disc-item {
  text-align: left; padding: 7px 10px; border-radius: 8px; border: 1px solid var(--line);
  background: #fff; font-size: 12.5px; color: var(--navy-2);
}
.disc-item:hover { border-color: var(--navy); background: #f4f6fb; }

.admin-status {
  margin-top: 12px; padding: 12px 14px; border-radius: 10px;
  background: #fff7dc; color: #7a5f05; font-size: 13.5px; font-weight: 500;
}
.draft-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.draft-list { display: grid; gap: 14px; margin-top: 16px; }
.draft-card {
  padding: 18px; border-radius: 12px; border: 1px solid var(--line); background: var(--paper);
}
.draft-card-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; gap: 10px; flex-wrap: wrap; }
.btn-sm { padding: 6px 12px; font-size: 12.5px; }

.admin-q-list { display: grid; gap: 10px; }
.admin-src-scroll { display: grid; gap: 10px; max-height: 460px; overflow-y: auto; }
.admin-q-row {
  display: flex; justify-content: space-between; align-items: center; gap: 14px;
  padding: 14px 16px; border: 1px solid var(--line); border-radius: 12px; background: var(--paper);
}
.admin-q-main { min-width: 0; flex: 1; }
.admin-q-main p { margin: 6px 0 4px; font-family: var(--serif); font-size: 15.5px; color: var(--ink); }
.admin-q-main small { color: var(--muted); font-size: 12px; }
.admin-q-actions { display: flex; gap: 6px; flex-shrink: 0; flex-wrap: wrap; }

.admin-toast {
  position: fixed; bottom: 24px; right: 24px; z-index: 90;
  padding: 13px 18px; border-radius: 12px; font-size: 14px; font-weight: 600;
  box-shadow: 0 10px 30px rgba(20,33,61,.25); animation: fadeIn .25s ease;
}
.admin-toast.ok { background: var(--clover-dark); color: #fff; }
.admin-toast.bad { background: var(--bad); color: #fff; }

/* ---------- Cambridge Dictionary Module ---------- */
.dict-search-bar {
  padding: 14px 16px; display: flex; gap: 10px; align-items: center;
}
.dict-search-bar input {
  flex: 1; padding: 12px 16px; border-radius: 999px; border: 1.5px solid var(--line);
  font: inherit; font-size: 16px; color: var(--ink);
}
.dict-search-bar input:focus { outline: none; border-color: var(--navy); }
.dict-empty-card, .dict-result-card { padding: 28px; }
.dict-badge-cambridge {
  display: inline-block; padding: 4px 10px; border-radius: 999px;
  background: var(--navy); color: #e9d690; font-size: 11.5px; font-weight: 700;
  text-transform: uppercase; letter-spacing: .08em; margin-bottom: 10px;
}
.dict-word-top {
  display: flex; justify-content: space-between; align-items: flex-start; gap: 14px; flex-wrap: wrap;
  padding-bottom: 16px; border-bottom: 1px solid var(--line); margin-bottom: 18px;
}
.dict-word-title-row { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.dict-word-title-row h2 { font-size: 32px; color: var(--navy); }
.dict-pos {
  font-style: italic; font-weight: 600; font-size: 14px; color: var(--clover-dark);
  background: var(--ok-bg); padding: 3px 10px; border-radius: 999px;
}
.dict-ipa { font-family: var(--sans); font-size: 15px; color: var(--muted); }
.dict-audio-row { display: flex; gap: 8px; margin-top: 10px; }

.dict-tr-box {
  background: linear-gradient(135deg, #e7f5ee 0%, #f4fbf7 100%);
  border: 1px solid #bfe3d1; border-left: 4px solid var(--clover);
  padding: 14px 18px; border-radius: 12px; margin-bottom: 20px;
}
.dict-tr-box small {
  display: block; font-size: 11px; font-weight: 700; color: var(--clover-dark);
  letter-spacing: .08em; margin-bottom: 8px;
}
.dict-tr-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.dict-tr-pill {
  background: #fff; border: 1px solid #bfe3d1; color: var(--navy);
  font-weight: 600; font-size: 15px; padding: 5px 12px; border-radius: 999px;
}

.dict-sec { margin-bottom: 18px; }
.dict-sec h4 {
  font-size: 12.5px; text-transform: uppercase; letter-spacing: .08em;
  color: var(--muted); margin: 0 0 10px;
}
.dict-senses-wrap { display: grid; gap: 12px; }
.dict-sense {
  padding: 14px 16px; border-radius: 12px; border: 1px solid var(--line); background: var(--paper);
}
.dict-sense-head { display: flex; gap: 12px; align-items: flex-start; }
.dict-sense-num {
  width: 26px; height: 26px; border-radius: 50%; background: var(--navy); color: #fff;
  display: grid; place-items: center; font-size: 12px; font-weight: 700; flex: none; margin-top: 2px;
}
.dict-en-def { font-family: var(--serif); font-size: 17px; font-weight: 600; color: var(--navy); line-height: 1.45; }
.dict-tr-inline { margin-top: 4px; font-size: 14px; font-weight: 600; color: var(--clover-dark); }
.dict-ex-list {
  margin: 10px 0 0 38px; padding-left: 16px; border-left: 2px solid var(--gold);
  font-family: var(--serif); font-style: italic; font-size: 15.5px; color: var(--ink);
  display: grid; gap: 6px;
}
.dict-footer-links {
  margin-top: 18px; padding-top: 14px; border-top: 1px dashed var(--line);
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px;
  font-size: 13px; color: var(--muted);
}
.dict-footer-links a { font-weight: 600; text-decoration: none; }
.dict-footer-links a:hover { text-decoration: underline; }

.side-dict-box {
  margin-top: 16px; padding-top: 14px; border-top: 1px dashed var(--line);
}
.side-dict-box h4 { font-size: 13.5px; color: var(--navy); margin: 0 0 4px; }
.side-dict-box p { font-size: 12px; color: var(--muted); margin: 0 0 8px; }
.side-dict-box input {
  padding: 7px 10px; border-radius: 8px; border: 1px solid var(--line); font-size: 13px; min-width: 0;
}

.dict-floating-btn {
  position: absolute; z-index: 80;
  background: var(--navy); color: #fff; border: 1.5px solid var(--gold);
  padding: 7px 13px; border-radius: 999px; font-size: 13px;
  box-shadow: 0 6px 20px rgba(20,33,61,.28); animation: fadeIn .15s ease;
}
.dict-floating-btn b { color: #e9d690; }

/* ---------- Deneme Sınavı Aday Girişi & Sıralama Tablosu ---------- */
.exam-entry-wrap { max-width: 820px; margin: 0 auto; }
.exam-entry-card { padding: 32px; }
.exam-entry-head h1 { font-size: clamp(24px, 3vw, 34px); margin: 6px 0 10px; }
.exam-entry-head p { color: var(--muted); font-size: 15.5px; line-height: 1.6; margin: 0; }
.exam-entry-specs {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin: 22px 0;
}
.spec-box {
  background: #f6f8fc; border: 1px solid var(--line); border-radius: 12px; padding: 14px 12px; text-align: center;
}
.spec-box b { display: block; font-family: var(--serif); font-size: 24px; color: var(--navy); }
.spec-box span { font-size: 12.5px; color: var(--muted); font-weight: 500; }
.exam-entry-form {
  background: #fbf8f1; border: 1px solid #eadfc2; border-radius: 14px; padding: 20px;
}
.exam-entry-form label {
  display: block; font-weight: 700; font-size: 14px; color: var(--navy); margin-bottom: 8px;
}
.exam-entry-input-row {
  display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 8px;
}
.exam-entry-input-row input {
  flex: 1; min-width: 220px; padding: 12px 16px; border-radius: 999px;
  border: 1.5px solid #cbd3e3; font-size: 15.5px; font-weight: 500; background: #fff;
}
.exam-entry-input-row input:focus {
  outline: none; border-color: var(--navy); box-shadow: 0 0 0 3px rgba(20,33,61,.12);
}

.candidate-badge {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 5px 12px; border-radius: 999px;
  background: #eef2fa; color: var(--navy); border: 1px solid #d4deef;
  font-size: 13px; font-weight: 600;
}
.rank-pill {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 5px 12px; border-radius: 999px;
  background: #fff7df; color: #7a5800; border: 1px solid #ecd48b;
  font-size: 13px; font-weight: 600;
}
.grade-pill {
  display: inline-flex; align-items: center;
  padding: 4px 10px; border-radius: 999px;
  font-size: 12.5px; font-weight: 700;
}
.grade-a { background: #e3f7ec; color: #136f42; border: 1px solid #a9e5c5; }
.grade-b { background: #e8f2ff; color: #195296; border: 1px solid #b8d6fc; }
.grade-c { background: #f3efff; color: #54339c; border: 1px solid #d5c8fa; }
.grade-d { background: #fff4df; color: #8c5800; border: 1px solid #f0d499; }
.grade-e { background: #fff0e6; color: #9c3f0e; border: 1px solid #f5c6ab; }
.grade-f { background: #fdecec; color: #a12323; border: 1px solid #f3b8b8; }

.lb-table-wrap { overflow-x: auto; }
.lb-table { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.lb-table th {
  text-align: left; font-size: 12px; text-transform: uppercase; letter-spacing: .06em;
  color: var(--muted); padding: 10px 12px; border-bottom: 2px solid var(--line);
}
.lb-table td { padding: 12px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.lb-rank { font-weight: 700; color: var(--navy); white-space: nowrap; }
.lb-name { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.lb-me-badge {
  background: var(--clover); color: #fff; font-size: 11px; font-weight: 700;
  padding: 2px 8px; border-radius: 999px;
}
.lb-row-me {
  background: #effaf4 !important;
  box-shadow: inset 4px 0 0 var(--clover);
}
.lb-score b { font-family: var(--serif); font-size: 18px; color: var(--navy); }
.lb-score small { color: var(--muted); font-size: 12px; }

/* ---------- ☰ Sağdan açılan menü ---------- */
.menu-toggle {
  width: 44px; height: 44px; border-radius: 12px;
  border: 1px solid rgba(255,255,255,.22); background: rgba(255,255,255,.06);
  display: inline-flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px;
  cursor: pointer; transition: .2s; padding: 0;
}
.menu-toggle:hover { background: rgba(255,255,255,.14); }
.menu-toggle span {
  display: block; width: 20px; height: 2px; border-radius: 2px; background: #fff; transition: .25s;
}
.menu-toggle.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle.is-open span:nth-child(2) { opacity: 0; }
.menu-toggle.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.side-menu-backdrop {
  position: fixed; inset: 0; z-index: 90; background: rgba(10,18,36,.45); backdrop-filter: blur(2px);
}
.side-menu {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 95;
  width: min(320px, 86vw);
  background: var(--navy); color: #fff;
  border-left: 3px solid var(--gold);
  box-shadow: -18px 0 40px rgba(0,0,0,.25);
  transform: translateX(105%); transition: transform .28s ease;
  display: flex; flex-direction: column;
  padding-top: env(safe-area-inset-top);
}
.side-menu.open { transform: translateX(0); }
.side-menu-head {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 18px 18px 14px; border-bottom: 1px solid rgba(255,255,255,.1);
}
.side-menu-brand { display: flex; align-items: center; gap: 10px; }
.side-menu-brand img { width: 40px; height: 40px; border-radius: 10px; background: #fff; padding: 2px; }
.side-menu-brand b { font-family: var(--serif); font-size: 18px; }
.side-menu-brand em { font-family: var(--serif); color: #e9d690; font-size: 18px; }
.side-menu-brand small { display: block; font-size: 11px; color: #aeb8d3; letter-spacing: .06em; }
.side-menu-close {
  width: 36px; height: 36px; border-radius: 50%; border: 1px solid rgba(255,255,255,.2);
  background: transparent; color: #fff; font-size: 15px; cursor: pointer;
}
.side-menu-body { flex: 1; overflow-y: auto; padding: 12px; }
.topnav.side-menu-nav { display: flex; flex-direction: column; gap: 4px; }
.topnav.side-menu-nav a {
  display: block; padding: 12px 16px; border-radius: 12px; font-size: 15px; color: #dfe4f1;
}
.topnav.side-menu-nav a.active { background: var(--paper); color: var(--navy); font-weight: 600; }
.topnav.side-menu-nav a.admin-nav-link { margin-top: 8px; border: 1px dashed rgba(255,255,255,.22); }
.side-menu-foot { padding: 14px 16px 20px; border-top: 1px solid rgba(255,255,255,.1); display: grid; gap: 10px; }
.side-menu-foot small { color: #93a0c0; font-size: 11px; text-align: center; }
body.menu-open { overflow: hidden; }

/* ---------- 🍀 Günün Bilgisi (sol panel) ---------- */
.fact-panel {
  position: fixed; left: 0; top: 50%; transform: translateY(-50%); z-index: 40;
  display: flex; align-items: center;
}
.fact-tab {
  writing-mode: vertical-rl; transform: rotate(180deg);
  display: flex; align-items: center; gap: 8px;
  background: var(--navy); color: #fff; border: 0; border-right: 3px solid var(--gold);
  padding: 14px 9px; border-radius: 0 12px 12px 0; cursor: pointer;
  font-size: 13px; font-weight: 600; letter-spacing: .04em;
  box-shadow: 4px 6px 18px rgba(20,33,61,.22);
  order: 2;
}
.fact-tab-icon { transform: rotate(180deg); font-size: 16px; }
.fact-card {
  width: 0; overflow: hidden; opacity: 0;
  background: #fff; border: 1px solid var(--line); border-left: 0;
  border-radius: 0 16px 16px 0; box-shadow: var(--shadow);
  transition: width .28s ease, opacity .2s ease;
  order: 1;
}
.fact-panel.open .fact-card { width: 270px; opacity: 1; }
.fact-panel.open .fact-tab { display: none; }
.fact-card > * { min-width: 270px; box-sizing: border-box; }
.fact-card-head { display: flex; align-items: center; justify-content: space-between; padding: 14px 16px 4px; }
.fact-close { border: 0; background: transparent; color: var(--muted); font-size: 14px; cursor: pointer; }
.fact-content { padding: 4px 16px 6px; }
.fact-tr { margin: 6px 0; font-size: 14px; line-height: 1.55; color: var(--ink); }
.fact-en { margin: 6px 0; font-family: var(--serif); font-style: italic; font-size: 14px; color: var(--navy); }
.fact-word { margin: 6px 0; font-size: 12.5px; background: #f3f8f4; border-radius: 8px; padding: 6px 9px; color: #22543d; }
.fact-ref { font-size: 12px; color: var(--muted); border-top: 1px dashed var(--line); padding-top: 8px; margin-top: 8px; line-height: 1.45; display: grid; gap: 2px; }
.fact-ref a { color: var(--navy); font-weight: 600; text-decoration: none; }
.fact-ref a:hover { text-decoration: underline; }
.fact-ref small { display: block; margin-top: 2px; }
.fact-nav { display: flex; align-items: center; justify-content: space-between; padding: 6px 16px 14px; }
.fact-nav button {
  padding: 5px 11px; border-radius: 999px; border: 1px solid var(--line); background: #fff; color: var(--navy); font-size: 12px; font-weight: 600; cursor: pointer; transition: .15s;
}
.fact-nav button:hover { background: var(--navy); color: #fff; }
.fact-count { font-size: 12px; color: var(--muted); font-weight: 600; }

/* ---------- 1. Günlük Seri (Streak) & Üst Bar Kontrolleri ---------- */
.topbar-right-controls {
  display: flex; align-items: center; gap: 10px;
}
.topbar-streak-badge {
  display: inline-flex; align-items: center; gap: 6px;
  background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.22);
  color: #fff; padding: 7px 13px; border-radius: 999px;
  font-size: 13.5px; font-weight: 600; text-decoration: none;
  transition: .2s;
}
.topbar-streak-badge:hover { background: rgba(255,255,255,.18); transform: translateY(-1px); }
.topbar-streak-badge.done {
  background: linear-gradient(135deg, #ff7a00, #e04800);
  border-color: #ffa64d;
  box-shadow: 0 4px 12px rgba(255,122,0,.35);
}

/* ---------- 2. Ana Sayfa Retention & Gamification Kartları ---------- */
.retention-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px;
  align-items: stretch;
}
.retention-card {
  display: flex; flex-direction: column;
  padding: 24px 22px 22px;
  border-radius: 18px;
  border: 1px solid var(--line);
  border-top: 4px solid var(--navy);
  box-shadow: 0 4px 20px rgba(20, 33, 61, .06);
  transition: transform .2s ease, box-shadow .2s ease;
}
.retention-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 30px rgba(20, 33, 61, .11);
}
.daily5-card { border-top-color: #f97316; background: linear-gradient(180deg, #fffaf5 0%, #ffffff 42%); }
.leitner-card { border-top-color: var(--clover); background: linear-gradient(180deg, #f3fbf7 0%, #ffffff 42%); }
.vocab-home-card { border-top-color: var(--gold); background: linear-gradient(180deg, #fdfaf0 0%, #ffffff 42%); }

.ret-card-top {
  display: flex; align-items: center; gap: 12px; margin-bottom: 14px;
}
.ret-icon-wrap {
  width: 44px; height: 44px; border-radius: 12px; flex-shrink: 0;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 21px; box-shadow: inset 0 0 0 1px rgba(0,0,0,.06);
}
.ret-icon-wrap.fire { background: #fff0e5; }
.ret-icon-wrap.clover { background: #e6f7ee; }
.ret-icon-wrap.gold { background: #fef5d8; }

.ret-top-meta {
  flex: 1; min-width: 0;
  display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap;
}
.ret-top-meta .eyebrow { margin: 0; font-size: 11px; letter-spacing: .07em; }
.ret-pill {
  font-size: 11.5px; font-weight: 700; padding: 4px 10px; border-radius: 999px; white-space: nowrap;
}
.ret-pill.fire { background: #fff0e5; color: #c2410c; border: 1px solid #fed7aa; }
.ret-pill.clover { background: #e6f7ee; color: #15803d; border: 1px solid #bbf7d0; }
.ret-pill.gold { background: #fef5d8; color: #92400e; border: 1px solid #fde68a; }

.retention-card h3 {
  font-family: var(--serif); font-size: 21px; line-height: 1.25;
  margin: 0 0 8px; color: var(--navy);
}
.retention-card p {
  font-size: 14px; color: var(--muted); line-height: 1.6;
  margin: 0 0 16px;
}

/* Günün 5 Sorusu Adım Kutuları */
.daily5-steps-box {
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px;
  margin-top: auto; margin-bottom: 16px;
}
.d5-step {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 9px 4px; border-radius: 11px;
  background: #fff8f1; border: 1px dashed #fdba74;
  text-align: center;
}
.d5-step.done {
  background: #ecfdf5; border: 1px solid #86efac;
}
.d5-step b {
  font-family: var(--serif); font-size: 16px; color: #c2410c; line-height: 1.1;
}
.d5-step.done b { color: #15803d; }
.d5-step span { font-size: 10px; color: var(--muted); margin-top: 2px; font-weight: 600; }

/* Leitner Kutuları */
.leitner-boxes-row {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px;
  margin-top: auto; margin-bottom: 16px;
}
.l-box {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 10px 6px; border-radius: 12px; border: 1px solid var(--line);
  background: #f8fafc; text-decoration: none; color: var(--ink);
  transition: .16s; text-align: center;
}
.l-box:hover { border-color: var(--clover); background: #effaf4; transform: translateY(-1px); }
.l-box.has-due { background: #effaf4; border-color: #86efac; }
.l-box b { font-family: var(--serif); font-size: 20px; color: var(--navy); line-height: 1.1; margin-bottom: 2px; }
.l-box-title { font-size: 11.5px; font-weight: 700; color: var(--navy); }
.l-box-sub { font-size: 10.5px; color: var(--muted); }

/* Kelime Defteri Özellik Şeridi */
.vocab-feature-strip {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px;
  margin-top: auto; margin-bottom: 16px;
}
.vocab-feature-strip > div {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 10px 6px; border-radius: 12px;
  background: #fdfaf2; border: 1px solid #f3e3b3; text-align: center;
}
.vocab-feature-strip b { font-size: 12.5px; color: var(--navy); margin-bottom: 2px; }
.vocab-feature-strip span { font-size: 10.5px; color: var(--muted); }

.ret-card-actions {
  display: flex; gap: 8px; align-items: center;
}
.ret-card-actions .btn-block {
  width: 100%; justify-content: center; text-align: center;
}
.ret-card-actions.split {
  display: grid; grid-template-columns: 1fr auto; gap: 8px;
}
.ret-card-actions.split .btn {
  justify-content: center; text-align: center;
}

/* ---------- 3. Soru İçinde "Kelimeye Dokun-Öğren" (Inline Tap-to-Translate) ---------- */
.stem, .passage, .dialogue, .sentences {
  cursor: pointer;
}
.tap-word-bubble {
  position: absolute; z-index: 120;
  width: min(330px, 92vw);
  background: var(--navy); color: #fff;
  border: 2px solid var(--gold); border-radius: 14px;
  padding: 12px 14px;
  box-shadow: 0 16px 38px rgba(10,18,36,.35);
  animation: popBubble .16s ease-out;
}
@keyframes popBubble {
  from { opacity: 0; transform: translateY(4px) scale(.97); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
.tap-bubble-head {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  border-bottom: 1px solid rgba(255,255,255,.14); padding-bottom: 7px; margin-bottom: 8px;
}
.tap-bubble-word { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.tap-bubble-word b { font-family: var(--serif); font-size: 19px; color: #fff; }
.tap-pos {
  font-size: 11px; background: rgba(255,255,255,.14); color: #e9d690;
  padding: 2px 7px; border-radius: 999px;
}
.tap-audio-btn, .tap-bubble-close {
  border: 0; background: rgba(255,255,255,.12); color: #fff;
  width: 26px; height: 26px; border-radius: 50%; cursor: pointer; font-size: 12px;
  display: inline-flex; align-items: center; justify-content: center;
}
.tap-audio-btn:hover, .tap-bubble-close:hover { background: rgba(255,255,255,.24); }
.tap-bubble-tr {
  font-size: 14.5px; line-height: 1.45; margin-bottom: 5px; color: #a7f3d0;
}
.tap-bubble-tr span { color: #fff; font-weight: 600; }
.tap-bubble-en {
  font-size: 12.5px; line-height: 1.45; color: #dbe2f2; margin-bottom: 10px;
}
.tap-bubble-actions {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
}
.tap-save-btn {
  flex: 1; padding: 6px 10px; border-radius: 8px; border: 1px solid var(--gold);
  background: rgba(200,157,40,.18); color: #ffe58f; font-size: 12.5px; font-weight: 700;
  cursor: pointer; transition: .15s;
}
.tap-save-btn.saved {
  background: var(--clover); border-color: #5cd692; color: #fff;
}
.tap-more-btn {
  padding: 6px 10px; border-radius: 8px; border: 1px solid rgba(255,255,255,.24);
  background: transparent; color: #fff; font-size: 12px; cursor: pointer;
}
.tap-more-btn:hover { background: rgba(255,255,255,.12); }

/* ---------- 4. Kendi Kelime Defterim (#/kelimelerim) ---------- */
.vocab-save-btn.is-saved {
  background: #effaf4 !important; border-color: var(--clover) !important; color: var(--clover) !important; font-weight: 700;
}
.vocab-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 14px;
}
.vocab-item-card {
  display: flex; flex-direction: column; justify-content: space-between; gap: 8px;
  padding: 16px 18px; border-left: 4px solid var(--clover);
}
.vocab-item-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.vocab-item-tr { margin: 2px 0; font-size: 15px; color: var(--ink); }
.vocab-item-en { margin: 0; font-size: 13px; color: var(--muted); line-height: 1.45; }
.vocab-item-ex { margin: 4px 0 0; font-size: 12.5px; font-style: italic; color: var(--navy); background: #f5f7fb; padding: 6px 10px; border-radius: 8px; }
.vocab-item-foot {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  padding-top: 8px; border-top: 1px dashed var(--line); margin-top: 4px; font-size: 12px; color: var(--muted);
}
.fact-word-row {
  display: flex; align-items: center; justify-content: space-between; gap: 6px; margin: 6px 0;
}
.fact-save-word-btn {
  border: 1px solid #9cdbbd; background: #effaf4; color: #166534;
  font-size: 11.5px; font-weight: 700; padding: 4px 8px; border-radius: 8px; cursor: pointer; white-space: nowrap;
}
.fact-save-word-btn.saved { background: var(--clover); color: #fff; border-color: var(--clover); }

/* ---------- 5. Kitapçık / Kalem, Fosforlu, Silgi & Şık Eleme ---------- */
.opt-row {
  display: grid; grid-template-columns: 1fr auto; gap: 8px; align-items: stretch;
}
.opt.eliminated {
  opacity: .42;
  background: #f4f3ef;
  border-style: dashed;
}
.opt.eliminated .opt-text {
  text-decoration: line-through;
  color: var(--muted);
}
.opt-strike-btn {
  width: 44px; border-radius: 12px; border: 1px solid var(--line);
  background: #fff; color: var(--muted); font-size: 14px; font-weight: 700;
  cursor: pointer; transition: .15s;
  display: inline-flex; align-items: center; justify-content: center;
}
.opt-strike-btn:hover { border-color: var(--bad); color: var(--bad); background: #fff5f5; }
.opt-strike-btn.active {
  background: #fdecec; border-color: #f3b8b8; color: var(--bad);
}

/* Kitapçık Çizim Araç Çubuğu */
.booklet-toolbar {
  display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap;
  background: #f6f8fc; border: 1px solid var(--line); border-radius: 12px;
  padding: 8px 12px; margin: 10px 0 14px;
}
.tool-group {
  display: flex; align-items: center; gap: 6px; flex-wrap: wrap;
}
.tool-btn {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 6px 11px; border-radius: 9px;
  border: 1px solid var(--line); background: #fff; color: var(--navy);
  font-size: 12.5px; font-weight: 600; cursor: pointer;
  transition: .15s;
}
.tool-btn:hover:not(:disabled) {
  border-color: var(--navy); background: #eef3fb;
}
.tool-btn.active {
  background: var(--navy); color: #fff; border-color: var(--navy);
  box-shadow: 0 3px 10px rgba(20, 33, 61, .2);
}
.tool-btn[data-draw-tool="highlighter"].active {
  background: #fef08a; color: #713f12; border-color: #eab308;
}
.tool-btn[data-draw-tool="eraser"].active {
  background: #fee2e2; color: #991b1b; border-color: #f87171;
}
.tool-btn.clear-btn {
  color: var(--bad); border-color: #f3c4c4; background: #fffafa;
}
.tool-btn.clear-btn:hover:not(:disabled) {
  background: #fdecec; border-color: var(--bad);
}
.tool-btn:disabled {
  opacity: .4; cursor: not-allowed;
}

.pen-color-group {
  display: none; align-items: center; gap: 5px;
  padding: 3px 7px; background: #fff; border: 1px solid var(--line); border-radius: 999px;
}
.pen-color-group.visible {
  display: inline-flex;
}
.pen-color-dot {
  width: 18px; height: 18px; border-radius: 50%;
  background: var(--dot-color, #14213d);
  border: 2px solid #fff;
  box-shadow: 0 0 0 1px rgba(0,0,0,.2);
  cursor: pointer; padding: 0; transition: transform .15s;
}
.pen-color-dot:hover { transform: scale(1.14); }
.pen-color-dot.active {
  box-shadow: 0 0 0 2px var(--navy);
  transform: scale(1.16);
}

.tap-hint {
  font-size: 12px; color: var(--muted); font-weight: 500;
}

/* Soru Çizim Alanı & Canvas Katmanı */
.q-drawable-wrap {
  position: relative;
  border-radius: 10px;
}
.q-draw-canvas {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  z-index: 6;
  pointer-events: none;
  border-radius: 10px;
}
.q-draw-canvas.active-canvas {
  pointer-events: auto;
  touch-action: none;
  cursor: crosshair;
}
.q-card.draw-mode-eraser .q-draw-canvas.active-canvas {
  cursor: cell;
}
.eraser-cursor-ring {
  position: absolute;
  width: 26px; height: 26px;
  border-radius: 50%;
  border: 2px solid #dc2626;
  background: rgba(254, 226, 226, .45);
  transform: translate(-50%, -50%);
  pointer-events: none;
  z-index: 7;
}
mark.booklet-mark {
  background: linear-gradient(180deg, transparent 35%, #ffeb7a 35%);
  color: inherit; padding: 0 2px; border-radius: 3px;
  border-bottom: 2px solid #d49b00; cursor: pointer;
}

/* ---------- 6. Detaylı Zayıf Nokta Raporu (Kişisel Teşhis) ---------- */
.diag-report-card {
  margin-bottom: 20px;
  border-left: 5px solid var(--clover);
  background: linear-gradient(135deg, #f4fbf7 0%, #ffffff 60%);
}
.diag-report-head {
  display: flex; align-items: center; gap: 12px; margin-bottom: 10px;
}
.diag-icon {
  width: 46px; height: 46px; border-radius: 12px;
  background: var(--navy); color: #fff; font-size: 24px;
  display: inline-flex; align-items: center; justify-content: center;
}
.diag-report-head h2 { font-size: 20px; margin: 2px 0 0; color: var(--navy); }
.diag-quote {
  margin: 10px 0 12px; padding: 14px 18px;
  background: #fff; border: 1px solid #cbead8; border-radius: 12px;
  font-size: 15.5px; line-height: 1.6; color: var(--ink);
}
.diag-pill-row { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 12px; }
.diag-pill {
  font-size: 12.5px; font-weight: 600; padding: 5px 12px; border-radius: 999px;
  background: #e3f7ec; color: #136f42;
}
.diag-actions { display: flex; gap: 10px; flex-wrap: wrap; }

/* ---------- 7. Push / Yerel Hatırlatıcı Bildirim Kartı & Banner ---------- */
.side-notif-card {
  margin-top: 14px; padding: 12px 14px; border-radius: 12px;
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.14);
  display: grid; gap: 8px;
}
.side-notif-head {
  display: flex; align-items: center; justify-content: space-between; font-size: 13.5px; font-weight: 700; color: #ffe58f;
}
.side-notif-card p { margin: 0; font-size: 12px; color: #c7d0e6; line-height: 1.45; }
.side-notif-row {
  display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 12.5px; color: #e2e8f6;
}
.side-notif-row input[type="time"] {
  background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.25);
  color: #fff; padding: 4px 8px; border-radius: 8px; font-size: 12.5px;
}
.side-notif-test-btn {
  width: 100%; padding: 7px 10px; border-radius: 8px;
  border: 1px solid rgba(255,255,255,.24); background: rgba(255,255,255,.1);
  color: #fff; font-size: 12px; font-weight: 600; cursor: pointer; transition: .15s;
}
.side-notif-test-btn:hover { background: rgba(255,255,255,.2); }

.inapp-notif-banner {
  position: fixed; top: 18px; right: 18px; z-index: 200;
  width: min(360px, 92vw);
  background: var(--navy); color: #fff;
  border-left: 4px solid var(--clover); border-radius: 14px;
  padding: 14px 16px;
  box-shadow: 0 18px 42px rgba(10,18,36,.35);
  display: flex; align-items: flex-start; gap: 12px;
  transform: translateY(-20px); opacity: 0; transition: .28s ease;
}
.inapp-notif-banner.show { transform: translateY(0); opacity: 1; }
.inapp-notif-icon { font-size: 24px; line-height: 1; }
.inapp-notif-body { flex: 1; font-size: 13px; line-height: 1.45; }
.inapp-notif-body b { display: block; font-size: 14px; margin-bottom: 3px; color: #ffe58f; }
.inapp-notif-body p { margin: 0 0 6px; color: #dfe6f6; }
.inapp-notif-body a { color: #6ee7b7; font-weight: 700; text-decoration: none; }
.inapp-notif-close {
  border: 0; background: transparent; color: #9aa6c4; cursor: pointer; font-size: 14px;
}

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .quiz-layout, .admin-grid-2, .admin-row-3, .retention-grid { grid-template-columns: 1fr; }
  .side { position: static; }
  .grid-nav { grid-template-columns: repeat(10, 1fr); }
  .mode-grid, .how { grid-template-columns: 1fr; }
  .hero { grid-template-columns: 1fr; padding: 26px; }
  .admin-q-row { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 640px) {
  main { padding: 16px 12px 40px; }
  .topbar { padding: 10px 14px; }
  .topnav a { padding: 7px 10px; font-size: 13px; }
  .topbar-streak-badge { padding: 5px 10px; font-size: 12px; }
  .fact-panel { top: auto; bottom: 14px; transform: none; align-items: flex-end; }
  .fact-tab { writing-mode: horizontal-tb; transform: none; border-radius: 0 999px 999px 0; padding: 10px 14px 10px 10px; }
  .fact-tab-icon { transform: none; }
  .fact-panel.open .fact-card { width: min(300px, 88vw); }
  .fact-card > * { min-width: min(300px, 88vw); }
  .brand-text { font-size: 17px; }
  .q-card { padding: 20px 16px 16px; }
  .stem { font-size: 17px; }
  .passage, .sentences, .dialogue { font-size: 16px; }
  .opt { font-size: 16px; padding: 11px 12px; }
  .dialogue div { grid-template-columns: 1fr; gap: 0; }
  .clover-btn { top: 14px; right: 12px; width: 46px; height: 46px; }
  .grid-nav { grid-template-columns: repeat(8, 1fr); }
  .result-hero { grid-template-columns: 1fr; justify-items: center; text-align: center; }
  .hero-stats, .exam-entry-specs { grid-template-columns: 1fr 1fr; }
  .exam-entry-card { padding: 20px 16px; }
}
