/* ============================================================
   ielts.css — IELTS Academic practice module
   Uses global design tokens (--accent, --surface, --text, …)
   ============================================================ */

#ielts-content { max-width: 960px; margin: 0 auto; }
.ielts-home, .ielts-exam, .ielts-writing, .ielts-speaking, .ielts-result { animation: ielts-fade .25s ease; }
@keyframes ielts-fade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* ── HOME (mirrors the TOEIC track layout) ────────────── */
.ielts-home { max-width: 860px; margin: 0 auto; padding: 0 0 40px; }
.ielts-home-badge {
  display: inline-block; background: var(--accent); color: #fff;
  font-weight: 900; font-size: 1rem; letter-spacing: 3px;
  padding: 4px 18px; border-radius: 6px; margin-bottom: 12px;
}
.ielts-home-title { font-size: 2.2rem; font-weight: 900; margin: 0 0 6px; }
.ielts-home-sub { color: var(--text2); font-family: 'Sarabun', sans-serif; margin: 0 0 22px; line-height: 1.6; }

/* plan status banner */
.ielts-plan-banner {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  border-radius: 12px; padding: 12px 16px; margin-bottom: 16px;
}
.ielts-plan-banner.is-free { background: linear-gradient(135deg, rgba(34,197,94,.12), rgba(37,99,235,.08)); border: 1px solid rgba(34,197,94,.35); }
.ielts-plan-banner.is-plus { background: linear-gradient(135deg, rgba(124,58,237,.12), rgba(79,70,229,.08)); border: 1px solid rgba(124,58,237,.35); }
.ipb-emoji  { font-size: 1.4rem; }
.ipb-text   { flex: 1; }
.ipb-dash   { color: var(--text2); font-size: .87rem; margin: 0 4px 0 8px; }
.ipb-detail { color: var(--text2); font-size: .87rem; font-family: 'Sarabun', sans-serif; }

/* audio-enabled note */
.ielts-home-audio-note {
  margin: 0 0 16px; padding: 12px 16px;
  background: linear-gradient(135deg, rgba(37,99,235,.10), rgba(34,197,94,.06));
  border: 1px solid rgba(37,99,235,.30); border-radius: 12px;
}

/* top "Full Mock Test" cards (mirror .toeic-test-card) */
.ielts-home-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; margin-bottom: 24px; }
.ielts-test-card {
  position: relative; background: var(--surface2); border: 1.5px solid var(--border);
  border-radius: var(--radius); padding: 28px 24px; text-align: center;
  display: flex; flex-direction: column; gap: 8px; transition: border-color .2s, box-shadow .2s;
}
.ielts-test-card:hover { border-color: var(--accent); box-shadow: 0 4px 20px rgba(37,99,235,.15); }
.ielts-test-card.is-locked { opacity: .7; }
.itc-flag { position: absolute; top: 10px; right: 10px; font-size: .75rem; font-weight: 700; padding: 3px 8px; border-radius: 20px; }
.itc-flag-free { background: rgba(34,197,94,.15); color: #16a34a; border: 1px solid rgba(34,197,94,.4); }
.itc-flag-lock { background: rgba(0,0,0,.1); color: var(--text3); border: 1px solid var(--border); }
.itc-icon  { font-size: 2.4rem; }
.itc-title { font-size: 1.3rem; font-weight: 800; color: var(--text); }
.itc-setbadge { font-size: .7rem; font-weight: 700; vertical-align: middle; margin-left: 4px; padding: 2px 8px; border-radius: 10px; background: rgba(124,58,237,.15); color: #7c3aed; border: 1px solid rgba(124,58,237,.3); }
.itc-sub    { font-size: .9rem; color: var(--accent); font-family: 'Sarabun', sans-serif; }
.itc-detail { font-size: .8rem; color: var(--text2); }
.itc-btn    { margin-top: 14px; font-size: .95rem; }

/* practice-by-skill section (mirror .toeic-practice-section) */
.ielts-practice-section {
  padding: 22px 22px 18px; margin: 8px 0 24px;
  border: 1.5px solid var(--border); border-radius: var(--radius);
  background: linear-gradient(135deg, rgba(37,99,235,.04), rgba(124,58,237,.04));
}
.ielts-practice-header { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; flex-wrap: wrap; }
.ielts-practice-title { margin: 0 0 4px; font-size: 1.1rem; font-weight: 800; color: var(--text); }
.ielts-practice-sub   { margin: 0; font-family: 'Sarabun', sans-serif; font-size: .85rem; color: var(--text2); }
.ielts-practice-badge { background: var(--accent); color: #fff; font-size: .72rem; font-weight: 800; letter-spacing: 1px; padding: 4px 10px; border-radius: 12px; flex-shrink: 0; }
.ielts-practice-grid  { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); }
.ielts-practice-note  { font-family: 'Sarabun', sans-serif; font-size: .8rem; color: var(--text2); margin: 14px 0 0; line-height: 1.6; }

/* skill cards (mirror .toeic-part-card) */
.ielts-skill-card {
  position: relative; display: flex; flex-direction: column; align-items: flex-start;
  gap: 4px; padding: 14px 14px 12px; border-radius: var(--radius);
  border: 1.5px solid var(--border); background: var(--surface);
  cursor: pointer; text-align: left; font-family: inherit; color: var(--text);
  transition: transform .15s, border-color .15s, box-shadow .15s, background .15s;
}
.ielts-skill-card:hover { transform: translateY(-2px); border-color: var(--accent); box-shadow: 0 4px 16px rgba(37,99,235,.15); }
.ielts-skill-card.is-listen { border-left: 4px solid #2563eb; }
.ielts-skill-card.is-read   { border-left: 4px solid #16a34a; }
.ielts-skill-card.is-write  { border-left: 4px solid #7c3aed; }
.ielts-skill-card.is-speak  { border-left: 4px solid #f59e0b; }
.ielts-skill-card.is-locked { opacity: .65; }
.ielts-skill-card.is-locked:hover { transform: none; }
.isc-icon  { font-size: 1.6rem; line-height: 1; margin-bottom: 2px; }
.isc-title { font-size: .95rem; font-weight: 800; color: var(--text); }
.isc-sub   { font-size: .78rem; color: var(--accent); font-weight: 600; }
.isc-meta  { font-family: 'Sarabun', sans-serif; font-size: .75rem; color: var(--text2); margin-top: 2px; }
.isc-lock {
  position: absolute; top: 8px; right: 8px;
  background: rgba(0,0,0,.08); color: var(--text3);
  font-size: .65rem; font-weight: 700; padding: 2px 7px; border-radius: 10px; border: 1px solid var(--border);
}

/* exam-structure / band-score table (mirror .toeic-home-info) */
.ielts-home-info { padding: 20px; margin-top: 8px; }
.ielts-home-info h3 { margin: 0 0 12px; font-size: 1rem; }
.ielts-info-table { width: 100%; border-collapse: collapse; font-size: .88rem; }
.ielts-info-table th, .ielts-info-table td { padding: 8px 12px; border: 1px solid var(--border); text-align: left; }
.ielts-info-table thead tr { background: var(--surface2); color: var(--text2); font-weight: 600; }
.ielts-home-note { font-family: 'Sarabun', sans-serif; font-size: .83rem; color: var(--text2); margin: 8px 0 0; line-height: 1.6; }

/* ── RESUME ───────────────────────────────────────────── */
.ielts-resume { max-width: 480px; margin: 50px auto; text-align: center; padding: 20px; }
.ielts-resume-icon { font-size: 3rem; margin-bottom: 8px; }
.ielts-resume h2 { margin: 0 0 8px; }
.ielts-resume p { color: var(--text2); font-family: 'Sarabun', sans-serif; margin-bottom: 22px; }
.ielts-resume-actions { display: flex; gap: 12px; justify-content: center; }

/* ── TOP BAR ──────────────────────────────────────────── */
.ielts-topbar {
  position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 12px;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 10px 14px; margin-bottom: 16px;
}
.ielts-home-btn { background: none; border: none; color: var(--text2); cursor: pointer; font-size: .9rem; font-family: 'Sarabun', sans-serif; }
.ielts-home-btn:hover { color: var(--accent); }
.ielts-topbar-title { font-weight: 800; flex: 1; }
.ielts-topbar-right { display: flex; align-items: center; gap: 10px; }
.ielts-timer { font-variant-numeric: tabular-nums; font-weight: 800; color: var(--accent); background: rgba(37,99,235,.1); padding: 5px 12px; border-radius: 20px; }
.ielts-timer.urgent { color: var(--danger); background: rgba(239,68,68,.12); animation: ielts-pulse 1s infinite; }
@keyframes ielts-pulse { 50% { opacity: .55; } }

/* ── SECTION TABS ─────────────────────────────────────── */
.ielts-sec-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.ielts-sec-tab {
  background: var(--surface2); border: 1px solid var(--border); color: var(--text2);
  padding: 7px 14px; border-radius: 20px; cursor: pointer; font-weight: 700; font-size: .85rem;
}
.ielts-sec-tab.active { background: var(--accent); border-color: var(--accent); color: #fff; }

/* ── AUDIO ────────────────────────────────────────────── */
.ielts-audio-bar {
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
  background: var(--surface2); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 12px 16px; margin-bottom: 14px;
}
.ielts-play-btn {
  background: var(--accent); color: #fff; border: none; padding: 10px 18px; border-radius: var(--radius-sm);
  cursor: pointer; font-weight: 800; font-size: .92rem; white-space: nowrap;
}
.ielts-play-btn.playing { background: var(--danger); }
.ielts-audio-hint { color: var(--text3); font-size: .8rem; font-family: 'Sarabun', sans-serif; }
.ielts-sec-context { color: var(--text2); font-family: 'Sarabun', sans-serif; font-size: .9rem; margin-bottom: 14px; padding-left: 4px; border-left: 3px solid var(--accent); padding: 4px 0 4px 12px; }

/* ── MAP / CHART SVG ──────────────────────────────────── */
.ielts-map, .ielts-chart {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 14px; margin-bottom: 16px; color: var(--text);
}
.ielts-map-svg, .ielts-chart-svg { width: 100%; height: auto; max-height: 380px; color: var(--text); }
.ielts-chart-data { text-align: center; color: var(--text3); font-size: .8rem; margin-top: -6px; margin-bottom: 14px; }

/* ── GROUPS / QUESTIONS ───────────────────────────────── */
.ielts-group { margin-bottom: 22px; }
.ielts-instr {
  font-size: .88rem; line-height: 1.6; background: rgba(37,99,235,.06);
  border-left: 3px solid var(--accent); padding: 8px 12px; border-radius: 6px; margin: 0 0 14px;
}
.ielts-form-heading { font-weight: 800; text-transform: uppercase; letter-spacing: .04em; font-size: .85rem; background: var(--surface2); border: 1px solid var(--border); border-bottom: none; padding: 10px 14px; border-radius: var(--radius) var(--radius) 0 0; }
.ielts-form { border: 1px solid var(--border); border-radius: 0 0 var(--radius) var(--radius); overflow: hidden; }
.ielts-form-heading + .ielts-form { border-top: none; }
.ielts-form-subhead { background: var(--surface2); padding: 7px 14px; font-weight: 700; font-size: .82rem; color: var(--accent); }
.ielts-form-row { display: flex; align-items: center; gap: 10px; padding: 9px 14px; border-top: 1px solid var(--border); flex-wrap: wrap; }
.ielts-form-row:first-child { border-top: none; }
.ielts-form-label { font-weight: 700; min-width: 150px; color: var(--text2); font-size: .9rem; }
.ielts-form-value { flex: 1; line-height: 2; }

.ielts-blank {
  display: inline-block; width: 140px; max-width: 60vw; padding: 4px 8px; margin: 0 2px;
  background: var(--surface2); border: none; border-bottom: 2px solid var(--accent);
  color: var(--text); border-radius: 4px 4px 0 0; font-size: .92rem;
}
.ielts-blank:focus { outline: none; background: rgba(37,99,235,.1); }
.ielts-blank-num { display: inline-block; min-width: 18px; height: 18px; line-height: 18px; text-align: center; font-size: .68rem; font-weight: 800; color: #fff; background: var(--accent); border-radius: 50%; margin-left: 3px; vertical-align: super; }

.ielts-q { margin-bottom: 14px; padding-bottom: 14px; border-bottom: 1px dashed var(--border); }
.ielts-q:last-child { border-bottom: none; }
.ielts-q-head { display: flex; gap: 10px; margin-bottom: 10px; }
.ielts-qnum {
  flex-shrink: 0; width: 26px; height: 26px; line-height: 26px; text-align: center;
  background: var(--accent); color: #fff; border-radius: 50%; font-weight: 800; font-size: .82rem;
}
.ielts-q-text { line-height: 1.5; font-weight: 600; }
.ielts-choices { display: flex; flex-direction: column; gap: 8px; padding-left: 36px; }
.ielts-choices.tfng { flex-direction: row; flex-wrap: wrap; }
.ielts-choice {
  display: flex; align-items: center; gap: 10px; text-align: left;
  background: var(--surface); border: 1.5px solid var(--border); border-radius: var(--radius-sm);
  padding: 9px 14px; cursor: pointer; color: var(--text); font-size: .9rem; transition: all .12s;
}
.ielts-choices.tfng .ielts-choice { font-weight: 700; }
.ielts-choice:hover { border-color: var(--accent); }
.ielts-choice.selected { border-color: var(--accent); background: rgba(37,99,235,.12); font-weight: 700; }
.ielts-choice-letter { flex-shrink: 0; width: 24px; height: 24px; line-height: 24px; text-align: center; border: 1.5px solid currentColor; border-radius: 50%; font-weight: 800; font-size: .78rem; opacity: .7; }
.ielts-choice.selected .ielts-choice-letter { background: var(--accent); color: #fff; border-color: var(--accent); opacity: 1; }

/* matching / headings */
.ielts-bank { background: var(--surface2); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 12px 16px; margin-bottom: 12px; }
.ielts-bank ul { margin: 0; padding-left: 4px; list-style: none; columns: 2; font-size: .87rem; line-height: 1.7; }
.ielts-bank-note { font-style: italic; color: var(--text3); font-size: .8rem; margin-bottom: 6px; }
.ielts-example { font-size: .82rem; color: var(--text3); margin-bottom: 8px; }
.ielts-match-row { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-bottom: 1px dashed var(--border); }
.ielts-match-prompt { flex: 1; font-size: .9rem; line-height: 1.4; }
.ielts-select {
  background: var(--surface2); border: 1.5px solid var(--accent); color: var(--text);
  border-radius: var(--radius-sm); padding: 6px 10px; font-size: .9rem; min-width: 90px; cursor: pointer;
}

/* exam nav */
.ielts-exam-nav { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 22px; padding-top: 16px; border-top: 1px solid var(--border); flex-wrap: wrap; }
.ielts-answered { color: var(--text3); font-size: .82rem; font-weight: 700; }

/* ── READING SPLIT ────────────────────────────────────── */
.ielts-read-split { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; align-items: start; }
.ielts-passage {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 18px 20px; max-height: 70vh; overflow-y: auto; position: sticky; top: 76px;
}
.ielts-passage-intro { font-size: .8rem; color: var(--text3); font-style: italic; margin-bottom: 10px; }
.ielts-passage-title { font-size: 1.3rem; margin: 0 0 2px; }
.ielts-passage-sub { color: var(--text3); font-family: 'Sarabun', sans-serif; font-size: .82rem; margin-bottom: 14px; }
.ielts-passage-text { line-height: 1.75; font-size: .92rem; }
.ielts-passage-text p { margin: 0 0 12px; }
.ielts-questions { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px 20px; }

/* ── RESULTS ──────────────────────────────────────────── */
.ielts-result { padding: 8px 0 40px; }
.ielts-band-hero, .ielts-overall-hero { display: flex; align-items: center; gap: 22px; justify-content: center; margin-bottom: 26px; flex-wrap: wrap; }
.ielts-overall-hero { flex-direction: column; }
.ielts-band-circle {
  flex-shrink: 0; width: 120px; height: 120px; border-radius: 50%;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--accent), var(--accent-h)); color: #fff;
  box-shadow: 0 10px 30px rgba(37,99,235,.3);
}
.ielts-band-circle.big { width: 160px; height: 160px; }
.ielts-band-num { font-size: 2.4rem; font-weight: 900; line-height: 1; }
.ielts-band-circle.big .ielts-band-num { font-size: 3.2rem; }
.ielts-band-label { font-size: .72rem; text-transform: uppercase; letter-spacing: .06em; opacity: .9; margin-top: 4px; }
.ielts-band-info h2 { margin: 0 0 4px; }
.ielts-band-info p { margin: 0 0 8px; color: var(--text2); }
.ielts-band-bar { height: 8px; background: var(--bg3); border-radius: 4px; overflow: hidden; max-width: 280px; }
.ielts-band-bar > div { height: 100%; background: var(--success); }

.ielts-overall-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 18px; }
.ielts-overall-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 14px; text-align: center; display: flex; flex-direction: column; gap: 4px;
}
.ielts-overall-card.na { opacity: .55; }
.ioc-icon { font-size: 1.5rem; }
.ioc-skill { font-size: .82rem; color: var(--text2); font-weight: 700; }
.ioc-band { font-size: 1.6rem; font-weight: 900; color: var(--accent); }

.ielts-note { color: var(--text3); font-size: .82rem; font-family: 'Sarabun', sans-serif; line-height: 1.6; text-align: center; margin: 6px auto 18px; max-width: 620px; }
.ielts-transcript-toggle { text-align: center; margin-bottom: 14px; }
.ielts-transcript { background: var(--surface2); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px; font-size: .88rem; line-height: 1.8; max-height: 360px; overflow-y: auto; }
.ielts-tr-block { margin-bottom: 16px; }

.ielts-rev-title { margin: 26px 0 12px; }
.ielts-rev-table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius); }
.ielts-rev-table { width: 100%; border-collapse: collapse; font-size: .85rem; }
.ielts-rev-table th, .ielts-rev-table td { padding: 9px 11px; border-bottom: 1px solid var(--border); text-align: left; vertical-align: top; }
.ielts-rev-table th { background: var(--surface2); color: var(--text3); font-weight: 700; position: sticky; top: 0; }
.ielts-rev-table tr.ok { background: rgba(34,197,94,.06); }
.ielts-rev-table tr.no { background: rgba(239,68,68,.06); }
.ielts-rev-q { color: var(--text2); max-width: 320px; }
.ielts-result-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 26px; }

/* ── WRITING ──────────────────────────────────────────── */
.ielts-task-head { display: flex; align-items: baseline; gap: 12px; margin-bottom: 8px; flex-wrap: wrap; }
.ielts-task-head h2 { margin: 0; }
.ielts-task-meta { color: var(--accent); font-weight: 700; font-size: .82rem; background: rgba(37,99,235,.1); padding: 3px 10px; border-radius: 12px; }
.ielts-prompt { background: var(--surface2); border-left: 4px solid var(--accent); border-radius: var(--radius-sm); padding: 14px 16px; line-height: 1.65; font-weight: 600; margin-bottom: 14px; }
.ielts-task-instr { color: var(--text2); font-size: .85rem; font-style: italic; margin: 6px 0 12px; }
.ielts-essay {
  width: 100%; min-height: 280px; resize: vertical; background: var(--surface);
  border: 1.5px solid var(--border); border-radius: var(--radius); padding: 14px 16px;
  color: var(--text); font-size: .95rem; line-height: 1.7; font-family: inherit;
}
.ielts-essay:focus { outline: none; border-color: var(--accent); }
.ielts-essay-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 10px 0; flex-wrap: wrap; }
.ielts-wordcount { font-weight: 800; color: var(--danger); font-size: .9rem; }
.ielts-wordcount.ok { color: var(--success); }
.ielts-reveal, .ielts-reveal-static { background: var(--surface2); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px 18px; margin: 12px 0; }
.ielts-reveal h4, .ielts-reveal-static h4 { margin: 12px 0 8px; }
.ielts-reveal h4:first-child, .ielts-reveal-static h4:first-child { margin-top: 0; }
.ielts-reveal ul, .ielts-reveal-static ul { margin: 0 0 6px; padding-left: 20px; line-height: 1.7; font-size: .88rem; }
.ielts-model-text { line-height: 1.8; font-size: .92rem; }
.ielts-model-text p { margin: 0 0 12px; }
.ielts-selfband { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; background: rgba(124,58,237,.08); border: 1px dashed var(--accent-h); border-radius: var(--radius); padding: 12px 16px; margin: 14px 0; font-size: .9rem; }
.ielts-band-select { background: var(--surface); border: 1.5px solid var(--accent-h); color: var(--text); border-radius: var(--radius-sm); padding: 7px 12px; font-weight: 700; cursor: pointer; }

/* ── SPEAKING ─────────────────────────────────────────── */
.ielts-speaking h2 { margin: 0 0 4px; }
.ielts-spk-topic { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 14px 16px; margin-bottom: 12px; }
.ielts-spk-topic h4 { margin: 0 0 8px; color: var(--accent); }
.ielts-spk-qs { margin: 0; padding-left: 4px; list-style: none; line-height: 2; font-size: .92rem; }
.ielts-spk-guide { color: var(--text3); font-size: .84rem; font-style: italic; margin: 6px 0 0; }
.ielts-speak-q { background: rgba(37,99,235,.12); border: none; border-radius: 6px; cursor: pointer; padding: 2px 7px; font-size: .85rem; }
.ielts-speak-q:hover { background: var(--accent); }
.ielts-cue-card {
  background: linear-gradient(135deg, rgba(37,99,235,.08), rgba(124,58,237,.06));
  border: 2px solid var(--accent); border-radius: var(--radius); padding: 18px 20px; margin-bottom: 16px;
}
.ielts-cue-topic { font-size: 1.15rem; font-weight: 800; margin-bottom: 8px; }
.ielts-cue-card ul { margin: 6px 0; padding-left: 22px; line-height: 1.8; }
.ielts-spk-timer-box { text-align: center; background: var(--surface2); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px; margin-bottom: 16px; }
.ielts-spk-timer { font-size: 1.4rem; font-weight: 900; font-variant-numeric: tabular-nums; margin-bottom: 12px; color: var(--accent); }
.ielts-spk-timer-box .btn { margin: 0 4px; }

/* ── STRATEGY GUIDE — เทคนิคการทำข้อสอบ IELTS (Subscribers) ── */
.ielts-strategy-banner {
  position: relative; overflow: hidden;
  width: 100%; display: flex; align-items: center; gap: 16px;
  text-align: left; cursor: pointer; font-family: inherit; color: var(--text);
  padding: 18px 20px; margin: 0 0 28px;
  border: 1.5px solid rgba(124,58,237,.4); border-radius: var(--radius);
  background: linear-gradient(135deg, rgba(37,99,235,.12), rgba(124,58,237,.1));
  transition: transform .15s, box-shadow .15s, border-color .15s;
}
.ielts-strategy-banner:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 22px rgba(124,58,237,.2);
  border-color: rgba(124,58,237,.7);
}
.ielts-strategy-banner .isb-glow {
  position: absolute; top: -40%; right: -8%; width: 180px; height: 180px;
  background: radial-gradient(circle, rgba(245,158,11,.22), transparent 70%);
  pointer-events: none;
}
.isb-icon { font-size: 2.2rem; line-height: 1; flex-shrink: 0; filter: drop-shadow(0 3px 6px rgba(0,0,0,.15)); }
.isb-body { flex: 1; min-width: 0; }
.isb-title {
  display: flex; align-items: center; flex-wrap: wrap; gap: 8px;
  font-size: 1.15rem; font-weight: 800; color: var(--text);
}
.isb-sub {
  display: block; margin-top: 4px;
  font-family: 'Sarabun', sans-serif; font-size: .85rem; color: var(--text2); line-height: 1.5;
}
.isb-badge { font-size: .68rem; font-weight: 800; padding: 3px 9px; border-radius: 20px; letter-spacing: .02em; }
.isb-badge-lock   { background: rgba(0,0,0,.08); color: var(--text3); border: 1px solid var(--border); }
.isb-badge-member { background: rgba(124,58,237,.16); color: var(--accent-h); border: 1px solid rgba(124,58,237,.4); }
.isb-cta { flex-shrink: 0; font-weight: 800; font-size: .9rem; color: var(--accent-h); white-space: nowrap; }
.ielts-strategy-banner.is-locked { background: linear-gradient(135deg, rgba(124,58,237,.07), rgba(0,0,0,.02)); }
.ielts-strategy-banner.is-locked .isb-cta { color: var(--text2); }

/* Strategy page */
.ielts-strategy-page { max-width: 860px; margin: 0 auto; padding: 0 0 48px; text-align: left; animation: ielts-fade .25s ease; }
.ielts-strategy-head { margin-bottom: 22px; }
.ielts-strategy-head #ielts-strategy-back { margin-bottom: 16px; }
.ielts-strategy-kicker {
  display: inline-block; font-size: .72rem; font-weight: 800; letter-spacing: .18em;
  color: var(--accent-h); background: rgba(124,58,237,.1); padding: 4px 12px; border-radius: 6px; margin-bottom: 10px;
}
.ielts-strategy-headline h1 { font-size: 1.9rem; font-weight: 900; margin: 0 0 6px; }
.ielts-strategy-headline p { font-family: 'Sarabun', sans-serif; color: var(--text2); margin: 0; line-height: 1.6; }

.ielts-strat-general {
  border: 1.5px solid var(--border); border-radius: var(--radius);
  background: linear-gradient(135deg, rgba(37,99,235,.05), rgba(124,58,237,.04));
  padding: 20px 22px; margin-bottom: 20px;
}
.isg-head { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.isg-head .isg-icon { font-size: 1.8rem; flex-shrink: 0; }
.isg-head h2 { margin: 0; font-size: 1.15rem; font-weight: 800; }
.isg-head p { margin: 2px 0 0; font-family: 'Sarabun', sans-serif; font-size: .82rem; color: var(--text2); }
.isg-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.isg-list li {
  display: flex; gap: 12px; align-items: flex-start;
  font-family: 'Sarabun', sans-serif; font-size: .9rem; color: var(--text); line-height: 1.55;
}
.isg-list .isg-emoji { font-size: 1.2rem; flex-shrink: 0; line-height: 1.4; }
.isg-list strong { color: var(--text); font-weight: 700; }

.ielts-strat-toc { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.ist-chip {
  font-family: inherit; cursor: pointer; font-size: .8rem; font-weight: 700;
  padding: 6px 12px; border-radius: 20px; border: 1.5px solid var(--border);
  background: var(--surface); color: var(--text2); transition: border-color .15s, color .15s, transform .15s;
}
.ist-chip:hover { border-color: var(--accent); color: var(--accent); transform: translateY(-1px); }
.ist-chip.listen { border-left: 3px solid #2563eb; }
.ist-chip.read   { border-left: 3px solid #16a34a; }
.ist-chip.write  { border-left: 3px solid #7c3aed; }
.ist-chip.speak  { border-left: 3px solid #f59e0b; }

.ielts-strat-parts { display: flex; flex-direction: column; gap: 12px; }
.ielts-strat-card {
  border: 1.5px solid var(--border); border-radius: var(--radius);
  background: var(--surface); overflow: hidden; transition: border-color .15s, box-shadow .15s;
}
.ielts-strat-card.is-listen { border-left: 4px solid #2563eb; }
.ielts-strat-card.is-read   { border-left: 4px solid #16a34a; }
.ielts-strat-card.is-write  { border-left: 4px solid #7c3aed; }
.ielts-strat-card.is-speak  { border-left: 4px solid #f59e0b; }
.ielts-strat-card.open { box-shadow: 0 4px 18px rgba(0,0,0,.06); }
.ielts-strat-card-head {
  width: 100%; display: flex; align-items: center; gap: 14px;
  padding: 16px 18px; cursor: pointer; background: none; border: none;
  font-family: inherit; color: var(--text); text-align: left;
}
.ielts-strat-card-head:hover { background: var(--surface2); }
.iss-icon { font-size: 1.5rem; flex-shrink: 0; }
.iss-heads { flex: 1; min-width: 0; }
.iss-title { display: block; font-size: 1.02rem; font-weight: 800; }
.iss-sub { display: block; font-family: 'Sarabun', sans-serif; font-size: .78rem; color: var(--text2); margin-top: 2px; }
.iss-chev { font-size: 1rem; color: var(--text3); transition: transform .2s; flex-shrink: 0; }
.ielts-strat-card.open .iss-chev { transform: rotate(180deg); }
.ielts-strat-card-body { display: none; padding: 0 18px 18px; }
.ielts-strat-card.open .ielts-strat-card-body { display: block; animation: ielts-fade .2s ease; }
.iss-block { margin-top: 14px; }
.iss-block-label { font-weight: 800; font-size: .85rem; margin-bottom: 8px; }
.iss-tips  .iss-block-label { color: #16a34a; }
.iss-traps .iss-block-label { color: #f59e0b; }
.iss-block ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.iss-block li {
  position: relative; padding-left: 22px;
  font-family: 'Sarabun', sans-serif; font-size: .88rem; line-height: 1.55; color: var(--text);
}
.iss-tips  li::before { content: '▸'; position: absolute; left: 4px; top: 0; color: #16a34a; font-weight: 700; }
.iss-traps li::before { content: '✕'; position: absolute; left: 5px; top: 2px; color: #f59e0b; font-weight: 700; font-size: .8rem; }
.iss-block li strong { font-weight: 700; }

.ielts-strat-cta {
  margin-top: 24px; padding: 20px 22px; border-radius: var(--radius);
  border: 1.5px dashed var(--accent);
  background: linear-gradient(135deg, rgba(37,99,235,.06), rgba(124,58,237,.05));
  display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
}
.ielts-strat-cta-text { font-family: 'Sarabun', sans-serif; font-size: .92rem; color: var(--text); flex: 1; min-width: 200px; }

/* ── RESPONSIVE ───────────────────────────────────────── */
@media (max-width: 760px) {
  .ielts-read-split { grid-template-columns: 1fr; }
  .ielts-passage { position: static; max-height: none; }
  .ielts-overall-grid { grid-template-columns: repeat(2, 1fr); }
  .ielts-bank ul { columns: 1; }
  .ielts-home-title { font-size: 1.6rem; }
  .ielts-form-label { min-width: 110px; }
}
@media (max-width: 560px) {
  .ielts-strategy-banner { flex-wrap: wrap; }
  .isb-cta { width: 100%; }
  .ielts-strategy-headline h1 { font-size: 1.55rem; }
}

/* ── FREEMIUM BLUR OVERLAY ────────────────────────────── */
.freemium-blur {
  filter: blur(5px);
  opacity: 0.6;
  pointer-events: none;
  user-select: none;
}
.freemium-overlay {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  background: rgba(15, 23, 42, 0.4); /* Slight dark tint */
  border-radius: var(--radius);
}
.freemium-overlay-content {
  background: var(--surface);
  border: 1.5px solid #ec4899;
  border-radius: var(--radius);
  padding: 16px 20px;
  text-align: center;
  box-shadow: 0 8px 32px rgba(236, 72, 153, 0.2);
  animation: ielts-fade 0.3s ease;
}
