/* English 3000 · IELTS çalışma sistemi (study) — learn.css token'larını genişletir.
   Mobil öncelikli; koyu tema. learn.css ile birlikte yüklenir, içe aktarma yok. */
:root {
  --el-bg: #0f172a; --el-card: #1e293b; --el-accent: #38bdf8; --el-ok: #22c55e; --el-no: #ef4444;
  --st-bg2: #0b1220; --st-card2: #243044; --st-line: #334155; --st-muted: #94a3b8; --st-text: #e2e8f0;
  --st-warn: #fbbf24; --st-violet: #a78bfa; --st-pink: #f472b6; --st-orange: #fb923c; --st-green: #34d399;
  --st-radius: 18px; --st-radius-sm: 12px; --st-shadow: 0 16px 48px rgba(0,0,0,.35);
  --st-nav-h: 64px; --st-tap: 44px;
}
html { -webkit-text-size-adjust: 100%; }
body.el-dark { background: var(--el-bg); color: var(--st-text); }
body.el-dark a { color: var(--el-accent); }
body.el-dark .text-secondary { color: var(--st-muted) !important; }
.st-wrap { max-width: 960px; margin: 0 auto; }
.st-card { background: var(--el-card); border-radius: var(--st-radius); padding: 20px; box-shadow: var(--st-shadow); position: relative; }
.st-card + .st-card { margin-top: 16px; }
.st-card h2, .st-card h3 { letter-spacing: -.01em; }
.st-sub { color: var(--st-muted); font-size: .9rem; }
.st-kicker { font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; color: var(--st-muted); font-weight: 600; }

/* ---------- Hero ---------- */
.st-hero { background: radial-gradient(1200px 400px at 10% -10%, rgba(56,189,248,.18), transparent 60%), radial-gradient(800px 300px at 100% 0%, rgba(167,139,250,.14), transparent 60%), var(--el-card);
  border-radius: 24px; padding: 24px 20px; box-shadow: var(--st-shadow); overflow: hidden; }
.st-hero h1 { font-size: clamp(1.6rem, 5vw, 2.4rem); font-weight: 800; letter-spacing: -.02em; }
.st-hero-stats { display: flex; flex-wrap: wrap; gap: 10px; }
.st-hero-stats .stat { flex: 1 1 120px; min-width: 0; }

/* ---------- Progress ring ---------- */
.st-ring { --p: 0; --size: 96px; --ring: var(--el-accent); width: var(--size); height: var(--size); border-radius: 50%; display: grid; place-items: center; position: relative; flex: 0 0 auto;
  background: conic-gradient(var(--ring) calc(var(--p) * 1%), var(--st-line) 0); transition: background .5s; }
.st-ring::before { content: ""; position: absolute; inset: 8px; border-radius: 50%; background: var(--el-card); }
.st-ring > div { position: relative; text-align: center; line-height: 1.1; }
.st-ring .v { font-size: 1.35rem; font-weight: 800; font-variant-numeric: tabular-nums; }
.st-ring .k { font-size: .65rem; color: var(--st-muted); text-transform: uppercase; letter-spacing: .06em; }
.st-ring.lg { --size: 128px; } .st-ring.lg::before { inset: 10px; } .st-ring.lg .v { font-size: 1.8rem; }
.st-ring.sm { --size: 56px; } .st-ring.sm::before { inset: 5px; } .st-ring.sm .v { font-size: .9rem; }

/* ---------- Progress bar ---------- */
.st-bar { height: 8px; background: var(--st-line); border-radius: 99px; overflow: hidden; }
.st-bar > span { display: block; height: 100%; width: 0; background: var(--bar, var(--el-accent)); border-radius: 99px; transition: width .6s cubic-bezier(.2,.8,.2,1); }
.st-bar.thin { height: 5px; }

/* ---------- Band selector ---------- */
.st-band { display: flex; gap: 8px; flex-wrap: wrap; }
.st-band button { min-height: var(--st-tap); min-width: 64px; padding: 8px 14px; border-radius: 12px; border: 1px solid var(--st-line); background: transparent; color: var(--st-text); font-weight: 700; transition: all .15s; }
.st-band button:hover { border-color: var(--el-accent); }
.st-band button.active { background: var(--el-accent); color: #04202e; border-color: var(--el-accent); box-shadow: 0 6px 18px rgba(56,189,248,.35); }

/* ---------- Module accordion ---------- */
.st-module { --mc: var(--el-accent); background: var(--el-card); border-radius: var(--st-radius); box-shadow: var(--st-shadow); overflow: hidden; margin-top: 14px; border: 1px solid transparent; }
.st-module.open { border-color: color-mix(in srgb, var(--mc) 35%, transparent); }
.st-module-head { display: flex; align-items: center; gap: 14px; width: 100%; padding: 16px 18px; background: transparent; border: 0; color: inherit; text-align: left; cursor: pointer; min-height: 72px; }
.st-module-head:focus-visible { outline: 2px solid var(--mc); outline-offset: -2px; }
.st-module-icon { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; font-size: 1.15rem; flex: 0 0 auto; color: var(--mc); background: color-mix(in srgb, var(--mc) 16%, transparent); }
.st-module-title { font-weight: 800; font-size: 1.05rem; line-height: 1.2; }
.st-module-meta { font-size: .8rem; color: var(--st-muted); }
.st-module-pct { font-weight: 800; font-variant-numeric: tabular-nums; color: var(--mc); margin-left: auto; white-space: nowrap; }
.st-module-chev { color: var(--st-muted); transition: transform .25s; margin-left: 4px; }
.st-module.open .st-module-chev { transform: rotate(180deg); }
.st-module-body { display: none; border-top: 1px solid rgba(51,65,85,.6); }
.st-module.open .st-module-body { display: block; animation: st-fade .25s ease-out; }
.st-module .st-bar { margin: 0 18px 12px; }
.st-module-extra { display: flex; align-items: center; gap: 12px; padding: 12px 18px; margin: 10px 14px 14px; border-radius: var(--st-radius-sm); background: color-mix(in srgb, var(--mc) 10%, transparent); color: var(--st-text); text-decoration: none; min-height: var(--st-tap); }
.st-module-extra:hover { background: color-mix(in srgb, var(--mc) 18%, transparent); color: #fff; }
.st-module-extra i { color: var(--mc); }

/* ---------- Lesson checklist ---------- */
.st-list { list-style: none; margin: 0; padding: 4px 0; }
.st-row { display: flex; align-items: center; gap: 12px; padding: 12px 18px; color: var(--st-text); text-decoration: none; min-height: 56px; transition: background .15s; border-left: 3px solid transparent; }
.st-row:hover { background: rgba(255,255,255,.04); color: #fff; }
.st-row.done { border-left-color: var(--el-ok); }
.st-row.optional { opacity: .55; }
.st-row.optional .st-row-title::after { content: "ileri"; font-size: .65rem; margin-left: 6px; padding: 1px 6px; border-radius: 6px; background: var(--st-line); color: var(--st-muted); vertical-align: middle; }
.st-row-main { flex: 1 1 auto; min-width: 0; }
.st-row-title { font-weight: 600; line-height: 1.25; }
.st-row-sub { font-size: .8rem; color: var(--st-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.st-row-badges { display: flex; gap: 4px; flex-wrap: wrap; margin-top: 4px; }
.st-row-go { color: var(--st-muted); flex: 0 0 auto; }
.st-row-num { font-size: .75rem; color: var(--st-muted); font-variant-numeric: tabular-nums; width: 20px; text-align: right; flex: 0 0 auto; }

/* ---------- Animated checkmark ---------- */
.st-check { width: 28px; height: 28px; border-radius: 50%; border: 2px solid var(--st-line); display: grid; place-items: center; flex: 0 0 auto; position: relative; transition: border-color .25s, background .25s; }
.st-check svg { width: 16px; height: 16px; }
.st-check svg path { fill: none; stroke: #052e16; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 24; stroke-dashoffset: 24; }
.st-check.on { background: var(--el-ok); border-color: var(--el-ok); }
.st-check.on svg path { animation: st-draw .35s .05s ease-out forwards; }
.st-check.lg { width: 44px; height: 44px; } .st-check.lg svg { width: 24px; height: 24px; }
@keyframes st-draw { to { stroke-dashoffset: 0; } }
@keyframes st-fade { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
@keyframes st-pop { 0% { transform: scale(.6); opacity: 0; } 60% { transform: scale(1.08); opacity: 1; } 100% { transform: scale(1); } }

/* ---------- Badges (level / band / minutes) ---------- */
.badge.level-A1 { background: #16a34a; } .badge.level-A2 { background: #0ea5e9; } .badge.level-B1 { background: #f59e0b; color: #1c1917; } .badge.level-B2 { background: #dc2626; } .badge.level-C1 { background: #7c3aed; } .badge.level-C2 { background: #be185d; }
.badge.st-band-b { background: rgba(56,189,248,.18); color: #bae6fd; border: 1px solid rgba(56,189,248,.35); }
.badge.st-min { background: rgba(148,163,184,.15); color: #cbd5e1; }

/* ---------- Game pill (navbar) ---------- */
.st-pill { display: inline-flex; align-items: center; gap: 8px; padding: 4px 12px; border-radius: 99px; background: rgba(56,189,248,.12); border: 1px solid rgba(56,189,248,.3); color: #e0f2fe; font-size: .8rem; font-weight: 700; white-space: nowrap; text-decoration: none; font-variant-numeric: tabular-nums; }
.st-pill:hover { background: rgba(56,189,248,.22); color: #fff; }
.st-pill .sep { opacity: .4; }
.st-pill .xp { color: var(--st-warn); } .st-pill .lv { color: var(--el-accent); } .st-pill .fire { color: var(--st-orange); }
.st-pill.bump { animation: st-pop .4s ease-out; }

/* ---------- Toast ---------- */
.st-toasts { position: fixed; left: 50%; bottom: calc(16px + env(safe-area-inset-bottom, 0px)); transform: translateX(-50%); z-index: 1080; display: flex; flex-direction: column; gap: 8px; align-items: center; pointer-events: none; width: min(92vw, 420px); }
.st-toast { background: #0b1220; color: var(--st-text); border: 1px solid rgba(56,189,248,.35); border-radius: 14px; padding: 10px 16px; box-shadow: 0 12px 40px rgba(0,0,0,.5); display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: .92rem; max-width: 100%; animation: st-toast-in .3s cubic-bezier(.2,.8,.2,1); }
.st-toast.out { animation: st-toast-out .3s ease-in forwards; }
.st-toast .ic { font-size: 1.25rem; flex: 0 0 auto; }
.st-toast.xp .ic { color: var(--st-warn); } .st-toast.badge-unlock { border-color: rgba(251,191,36,.5); } .st-toast.badge-unlock .ic { color: var(--st-warn); }
.st-toast.level { border-color: rgba(52,211,153,.5); } .st-toast.level .ic { color: var(--st-green); }
.st-toast small { color: var(--st-muted); font-weight: 500; display: block; }
@keyframes st-toast-in { from { opacity: 0; transform: translateY(16px) scale(.96); } to { opacity: 1; transform: none; } }
@keyframes st-toast-out { to { opacity: 0; transform: translateY(10px); } }
@media (max-width: 767.98px) { .st-toasts { bottom: calc(var(--st-nav-h) + 12px + env(safe-area-inset-bottom, 0px)); } }

/* ---------- Bottom navigation (mobile) ---------- */
.st-bottomnav { display: none; }
@media (max-width: 767.98px) {
  body { padding-bottom: calc(var(--st-nav-h) + env(safe-area-inset-bottom, 0px)); }
  .st-bottomnav { display: grid; grid-template-columns: repeat(6, 1fr); position: fixed; left: 0; right: 0; bottom: 0; z-index: 1040;
    height: calc(var(--st-nav-h) + env(safe-area-inset-bottom, 0px)); padding-bottom: env(safe-area-inset-bottom, 0px);
    background: rgba(2,6,23,.92); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-top: 1px solid rgba(51,65,85,.7); }
  .st-bottomnav a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; min-height: var(--st-tap); color: var(--st-muted); text-decoration: none; font-size: .66rem; font-weight: 600; letter-spacing: .01em; -webkit-tap-highlight-color: transparent; }
  .st-bottomnav a i { font-size: 1.2rem; line-height: 1; transition: transform .15s; }
  .st-bottomnav a:active i { transform: scale(.9); }
  .st-bottomnav a.active { color: var(--el-accent); }
  .st-bottomnav a.active i { filter: drop-shadow(0 0 8px rgba(56,189,248,.6)); }
}

/* ---------- Daily goals ---------- */
.st-goal { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid rgba(51,65,85,.5); }
.st-goal:last-child { border-bottom: 0; }
.st-goal .t { font-weight: 600; } .st-goal .s { font-size: .8rem; color: var(--st-muted); }
.st-goal .st-bar { width: 100%; margin-top: 6px; }
.st-goal.done .t { color: #86efac; }
.st-flame { font-size: 2.2rem; line-height: 1; filter: drop-shadow(0 0 12px rgba(251,146,60,.5)); }
.st-flame.off { filter: grayscale(1) opacity(.4); }

/* ---------- Heatmap ---------- */
.st-heat { display: grid; grid-auto-flow: column; grid-template-rows: repeat(7, 1fr); gap: 3px; width: 100%; }
.st-heat i { display: block; aspect-ratio: 1; border-radius: 3px; background: var(--st-line); min-width: 8px; }
.st-heat i.l1 { background: #0c4a6e; } .st-heat i.l2 { background: #0369a1; } .st-heat i.l3 { background: #0ea5e9; } .st-heat i.l4 { background: #7dd3fc; }
.st-heat i.today { outline: 1px solid var(--st-warn); outline-offset: 1px; }
.st-heat-legend { display: flex; align-items: center; gap: 4px; font-size: .7rem; color: var(--st-muted); }
.st-heat-legend i { width: 10px; height: 10px; border-radius: 2px; display: inline-block; background: var(--st-line); }
.st-heat-legend i.l1 { background: #0c4a6e; } .st-heat-legend i.l2 { background: #0369a1; } .st-heat-legend i.l3 { background: #0ea5e9; } .st-heat-legend i.l4 { background: #7dd3fc; }

/* ---------- Achievements grid ---------- */
.st-badges { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; }
.st-badge { background: var(--st-card2); border-radius: var(--st-radius-sm); padding: 14px 10px; text-align: center; border: 1px solid transparent; position: relative; min-height: 120px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; }
.st-badge .ic { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; font-size: 1.2rem; background: linear-gradient(135deg, var(--st-warn), var(--st-orange)); color: #1c1917; box-shadow: 0 6px 18px rgba(251,191,36,.35); }
.st-badge .t { font-weight: 700; font-size: .85rem; line-height: 1.2; }
.st-badge .d { font-size: .7rem; color: var(--st-muted); line-height: 1.25; }
.st-badge.locked { opacity: .5; } .st-badge.locked .ic { background: var(--st-line); color: var(--st-muted); box-shadow: none; }
.st-badge.locked::after { content: "\f023"; font-family: "Font Awesome 6 Free"; font-weight: 900; position: absolute; top: 8px; right: 10px; font-size: .7rem; color: var(--st-muted); }
.st-badge.unlocked { border-color: rgba(251,191,36,.35); }
.st-badge.new { animation: st-pop .5s ease-out; }

/* ---------- Module progress list (dashboard) ---------- */
.st-mprog { display: flex; align-items: center; gap: 12px; padding: 10px 0; }
.st-mprog .st-module-icon { width: 36px; height: 36px; font-size: 1rem; border-radius: 10px; }
.st-mprog .st-bar { flex: 1 1 auto; } .st-mprog .n { font-variant-numeric: tabular-nums; font-size: .85rem; color: var(--st-muted); width: 54px; text-align: right; }

/* ---------- Lesson page ---------- */
.st-crumb { font-size: .85rem; color: var(--st-muted); display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.st-crumb a { color: var(--st-muted); text-decoration: none; } .st-crumb a:hover { color: var(--el-accent); }
.st-lesson-title { font-size: clamp(1.5rem, 5vw, 2.2rem); font-weight: 800; letter-spacing: -.02em; line-height: 1.1; }
.st-section h3 { font-size: 1.1rem; font-weight: 700; color: var(--el-accent); margin-top: 1.2rem; }
.st-section table { width: 100%; font-size: .95rem; border-collapse: collapse; margin: 8px 0; }
.st-section th, .st-section td { padding: 8px 10px; border: 1px solid var(--st-line); vertical-align: top; }
.st-section th { background: rgba(255,255,255,.04); }
.st-section code { background: #0b1220; color: #fde68a; padding: 1px 6px; border-radius: 4px; }
.st-section ul, .st-section ol { padding-left: 1.2rem; }
.st-examples { list-style: none; padding: 0; margin: 0; }
.st-examples li { padding: 10px 0; border-bottom: 1px solid rgba(51,65,85,.5); }
.st-examples li:last-child { border-bottom: 0; }
.st-examples .en { font-size: 1.05rem; color: #f1f5f9; }
.st-examples .tr { color: var(--st-muted); font-size: .9rem; margin-top: 2px; display: none; }
.st-examples.show-tr .tr { display: block; }
.st-speak { background: none; border: 0; color: var(--el-accent); padding: 4px 8px; min-width: 36px; }
.st-exercise .q { font-size: 1.15rem; font-weight: 600; line-height: 1.4; }
.st-exercise .q .gapmark { display: inline-block; min-width: 70px; border-bottom: 2px solid var(--el-accent); margin: 0 2px; }
.st-opt { display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; padding: 12px 14px; min-height: var(--st-tap); border-radius: 12px; border: 1px solid var(--st-line); background: var(--st-card2); color: var(--st-text); font-size: 1rem; transition: all .15s; }
.st-opt:hover:not(:disabled) { border-color: var(--el-accent); background: #2a3850; }
.st-opt kbd { background: #0b1220; color: var(--st-muted); border-radius: 6px; padding: 2px 8px; font-size: .8rem; flex: 0 0 auto; }
.st-opt.correct { border-color: var(--el-ok); background: rgba(34,197,94,.14); color: #dcfce7; }
.st-opt.wrong { border-color: var(--el-no); background: rgba(239,68,68,.14); color: #fee2e2; }
.st-opt:disabled { cursor: default; opacity: .9; }
.st-input { background: #0b1220; color: var(--st-text); border: 1px solid var(--st-line); border-radius: 12px; padding: 12px 14px; font-size: 1.05rem; width: 100%; min-height: var(--st-tap); }
.st-input:focus { outline: 0; border-color: var(--el-accent); box-shadow: 0 0 0 3px rgba(56,189,248,.2); }
.st-input.ok { border-color: var(--el-ok); } .st-input.bad { border-color: var(--el-no); }
.st-feedback { border-radius: 12px; padding: 12px 14px; margin-top: 14px; display: flex; gap: 10px; align-items: flex-start; animation: st-fade .25s; }
.st-feedback.ok { background: rgba(34,197,94,.12); border: 1px solid rgba(34,197,94,.4); }
.st-feedback.bad { background: rgba(239,68,68,.12); border: 1px solid rgba(239,68,68,.4); }
.st-feedback .ic { font-size: 1.2rem; } .st-feedback.ok .ic { color: var(--el-ok); } .st-feedback.bad .ic { color: var(--el-no); }
.st-feedback .ex { color: #cbd5e1; font-size: .92rem; margin-top: 4px; }
.st-diff { font-size: 1.05rem; line-height: 1.8; }
.st-diff .w { padding: 0 3px; border-radius: 4px; }
.st-diff .w.wrong { background: rgba(239,68,68,.25); color: #fecaca; text-decoration: line-through; }
.st-diff .w.missing { background: rgba(34,197,94,.22); color: #bbf7d0; }
.st-dict-ctl { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.st-dict-ctl .btn { min-height: var(--st-tap); }
.st-score { text-align: center; padding: 10px 0; }
.st-score .big { font-size: 3rem; font-weight: 800; letter-spacing: -.03em; line-height: 1; }
.st-score .big.good { color: var(--el-ok); } .st-score .big.meh { color: var(--st-warn); } .st-score .big.poor { color: var(--el-no); }
.st-ex-nav { display: flex; gap: 8px; justify-content: space-between; align-items: center; flex-wrap: wrap; }
.st-done-banner { display: flex; align-items: center; gap: 10px; background: rgba(34,197,94,.12); border: 1px solid rgba(34,197,94,.35); border-radius: 12px; padding: 10px 14px; color: #bbf7d0; }
.st-next { display: flex; gap: 10px; flex-wrap: wrap; }
.st-next .btn { flex: 1 1 160px; min-height: 48px; }

/* ---------- Home strip ---------- */
.st-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.st-step { background: var(--el-card); border-radius: var(--st-radius-sm); padding: 14px; text-align: center; position: relative; }
.st-step .n { width: 30px; height: 30px; border-radius: 50%; background: var(--el-accent); color: #04202e; font-weight: 800; display: grid; place-items: center; margin: 0 auto 8px; }
.st-step .t { font-weight: 700; } .st-step .d { font-size: .8rem; color: var(--st-muted); }
.st-step + .st-step::before { content: "\f061"; font-family: "Font Awesome 6 Free"; font-weight: 900; position: absolute; left: -11px; top: 50%; transform: translateY(-50%); color: var(--st-line); font-size: .8rem; }

/* ---------- Utilities ---------- */
.st-btn-tap { min-height: var(--st-tap); }
.st-dim { color: var(--st-muted); }
.st-mono { font-variant-numeric: tabular-nums; }
.st-empty { text-align: center; padding: 30px 16px; color: var(--st-muted); }
.st-empty i { font-size: 2rem; display: block; margin-bottom: 8px; color: var(--st-line); }
@media (max-width: 575.98px) {
  .st-card { padding: 16px 14px; border-radius: 16px; }
  .st-hero { padding: 20px 16px; }
  .st-row { padding: 12px 14px; }
  .st-row-badges .badge { font-size: .62rem; }
  .st-module-head { padding: 14px; }
  .st-module .st-bar { margin: 0 14px 12px; }
  .st-steps { gap: 6px; } .st-step { padding: 12px 6px; } .st-step .d { display: none; }
  .st-ring.lg { --size: 108px; }
}
@media (min-width: 768px) {
  .st-two { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; align-items: start; }
  .st-two .st-card + .st-card { margin-top: 0; }
}
@media (prefers-reduced-motion: reduce) { .st-check.on svg path { animation: none; stroke-dashoffset: 0; } .st-toast, .st-badge.new, .st-pill.bump { animation: none; } }
