:root {
    --green: #18a957;
    --green-d: #128043;
    --ink: #1c2024;
    --muted: #6b7280;
    --bg: #ffffff;
    --bg-soft: #f5f8f6;
    --line: #e6e9e7;
    --radius: 14px;
    --shadow: 0 6px 24px rgba(20, 30, 25, .08);
    --max: 1140px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    color: var(--ink);
    background: var(--bg);
    line-height: 1.5;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
main { min-height: 60vh; }
h1, h2, h3 { line-height: 1.15; }

/* Nav */
.nav {
    display: flex; align-items: center; justify-content: space-between;
    gap: 1rem; padding: .85rem 1.5rem; max-width: var(--max); margin: 0 auto;
}
.brand { font-weight: 800; font-size: 1.25rem; display: flex; align-items: center; height: 50px; }
.brand span { color: var(--green); }
.logo-header { height: 100%; object-fit: contain; width: auto; max-width: 180px; }
.nav nav { display: flex; align-items: center; gap: 1.1rem; }
.nav nav a { color: var(--muted); font-weight: 600; }
.nav nav a:hover { color: var(--ink); }
.nav-user { color: var(--ink); font-weight: 600; }
.inline { display: inline; margin: 0; }

/* Buttons */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: .4rem;
    border: 1px solid transparent; border-radius: 999px; padding: .6rem 1.1rem;
    font-weight: 700; font-size: .95rem; cursor: pointer; transition: .15s; white-space: nowrap;
}
.btn-primary { background: var(--green); color: #fff; }
.btn-primary:hover { background: var(--green-d); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-outline { background: #fff; border-color: var(--green); color: var(--green-d); }
.btn-outline:hover { background: var(--bg-soft); }
.btn-ghost { background: transparent; border-color: var(--line); color: var(--ink); }
.btn-ghost:hover { background: var(--bg-soft); }
.btn-lg { padding: .8rem 1.5rem; font-size: 1.02rem; }
.btn-block { width: 100%; }

/* Flash */
.flashes { max-width: var(--max); margin: .5rem auto; padding: 0 1.5rem; }
.flash { padding: .7rem 1rem; border-radius: 10px; margin-bottom: .5rem; font-weight: 600; }
.flash-success { background: #e6f7ee; color: var(--green-d); }
.flash-error { background: #fdecec; color: #b4231f; }
.flash-info { background: #eef3fb; color: #2456a6; }

/* Hero */
.hero { background: linear-gradient(180deg, var(--bg-soft), #fff); padding: 2.5rem 1.5rem 1.5rem; }
.hero-inner {
    max-width: var(--max); margin: 0 auto; display: grid;
    grid-template-columns: 1.5fr 1fr; gap: 2rem; align-items: center;
}
.badge {
    display: inline-block; background: #fff; border: 1px solid var(--line);
    color: var(--green-d); border-radius: 999px; padding: .3rem .8rem;
    font-weight: 700; font-size: .82rem; margin-bottom: 1rem;
}
.badge-green { background: var(--green); color: #fff; border-color: var(--green); }
.hero h1 { font-size: 3rem; margin: 0 0 .8rem; letter-spacing: -1px; }
.lead { font-size: 1.15rem; color: var(--muted); max-width: 34rem; }
.hero-cta { display: flex; gap: .8rem; flex-wrap: wrap; margin: 1.3rem 0; }
.email-capture { display: flex; gap: .5rem; max-width: 30rem; }
.email-capture input {
    flex: 1; padding: .7rem 1rem; border: 1px solid var(--line); border-radius: 999px; font-size: .95rem;
}
.hero-quick {
    background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
    padding: 1.4rem; box-shadow: var(--shadow);
}
.hero-quick h3 { margin: 0 0 .3rem; }
.hero-quick p { color: var(--muted); margin: 0 0 1rem; font-size: .92rem; }
.level-pills { display: flex; flex-direction: column; gap: .5rem; }
.pill { border: 1px solid var(--line); border-radius: 999px; padding: .6rem 1rem; text-align: center; font-weight: 600; }
.pill:hover { border-color: var(--green); color: var(--green-d); }

/* Carousel */
.carousel { overflow: hidden; padding: 1.5rem 0; background: #fff; }
.carousel-track { display: flex; gap: 1rem; width: max-content; animation: scroll 60s linear infinite; }
.carousel:hover .carousel-track { animation-play-state: paused; }
.carousel-item { margin: 0; flex: 0 0 auto; }
.carousel-item img {
    width: 320px; height: 210px; object-fit: cover; border-radius: var(--radius); box-shadow: var(--shadow);
}
@keyframes scroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) {
    .carousel-track { animation: none; overflow-x: auto; }
}

/* Sections */
.section-title { font-size: 1.8rem; text-align: center; margin: 0 0 1.5rem; }
.section-head {
    display: flex; align-items: center; justify-content: space-between;
    max-width: var(--max); margin: 0 auto 1.2rem; gap: 1rem; flex-wrap: wrap;
}
.link { color: var(--green-d); font-weight: 700; }

/* Sample lesson */
.sample { max-width: var(--max); margin: 2.5rem auto; padding: 0 1.5rem; }
.sample-card {
    display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; align-items: center;
    background: var(--bg-soft); border-radius: 20px; padding: 2rem;
}
.sample-text h2 { font-size: 1.9rem; margin: .3rem 0 .6rem; }
.sample-text p { color: var(--muted); }
.sample-actions { display: flex; gap: .7rem; flex-wrap: wrap; margin-top: 1rem; }
.video-frame { position: relative; padding-top: 56.25%; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.video-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* Steps */
.steps { max-width: var(--max); margin: 3rem auto; padding: 0 1.5rem; }
.steps-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; }
.step { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem; }
.step-n {
    display: inline-grid; place-items: center; width: 2.2rem; height: 2.2rem; border-radius: 50%;
    background: var(--green); color: #fff; font-weight: 800; margin-bottom: .6rem;
}
.step h3 { margin: 0 0 .3rem; }
.step p { color: var(--muted); margin: 0; }

/* =============================================
   TUTORS — listing page + cards + profile
   ============================================= */
.tutors-strip, .tutors-page { max-width: var(--max); margin: 3rem auto; padding: 0 1.5rem; }
.tutor-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 1.2rem; margin-top: 1.5rem; }

/* Card */
.tutor-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: box-shadow .15s, transform .15s; }
.tutor-card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.tutor-card-link { display: block; color: inherit; text-decoration: none; }

/* Photo area */
.tutor-photo { position: relative; height: 180px; background: var(--bg-soft); overflow: hidden; }
.tutor-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.tutor-avatar-fallback {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  font-size: 3rem; font-weight: 800; color: #fff;
  background: linear-gradient(135deg, var(--green) 0%, var(--green-d) 100%);
}

/* Platform badge — sits bottom-left of photo */
.platform-badge {
  position: absolute; bottom: .5rem; left: .5rem;
  background: var(--badge-color, #18a957);
  color: #fff;
  font-size: .68rem; font-weight: 700; letter-spacing: .03em;
  padding: .2rem .55rem;
  border-radius: 999px;
  box-shadow: 0 1px 4px rgba(0,0,0,.25);
  pointer-events: none;
}

/* Card body */
.tutor-body { padding: 1rem; }
.tutor-top { display: flex; justify-content: space-between; align-items: baseline; gap: .5rem; }
.tutor-name { margin: 0; font-size: 1rem; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rate { font-weight: 800; color: var(--green-d); white-space: nowrap; }
.rate small, .rate-lg small { font-weight: 600; color: var(--muted); }
.tutor-headline { color: var(--ink); font-size: .88rem; margin: .35rem 0 .25rem; line-height: 1.4;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.tutor-meta { display: flex; flex-wrap: wrap; gap: .4rem; align-items: center; font-size: .85rem; margin: .25rem 0; }
.stars { color: #e8a800; font-weight: 700; }
.muted { color: var(--muted); }
.tutor-location { font-size: .8rem; color: var(--muted); margin: .2rem 0 0; }
.tutor-referral-hint { display: inline-block; margin-top: .4rem; font-size: .8rem; font-weight: 700;
  color: var(--green-d); }

/* Filter + sort bar */
.tutor-filters { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; margin-top: 1.2rem; }
.filter-pills { display: flex; gap: .5rem; flex-wrap: wrap; flex: 1; }
.filter-pill {
  display: inline-flex; align-items: center; gap: .35rem;
  padding: .35rem .85rem; border-radius: 999px;
  border: 1.5px solid var(--line);
  font-size: .82rem; font-weight: 600; color: var(--ink);
  text-decoration: none; transition: all .15s;
  background: #fff;
}
.filter-pill:hover { border-color: var(--pill-color, var(--green)); color: var(--pill-color, var(--green)); }
.filter-pill.active {
  background: var(--pill-color, var(--green));
  border-color: var(--pill-color, var(--green));
  color: #fff;
}
.pill-count { font-weight: 400; opacity: .8; font-size: .76rem; }
.tutor-sort { display: flex; align-items: center; gap: .5rem; flex-shrink: 0; }
.sort-select { padding: .35rem .7rem; border: 1.5px solid var(--line); border-radius: 8px;
  font-size: .85rem; font-family: inherit; background: #fff; cursor: pointer; }
.sort-select:focus { outline: 2px solid var(--green); border-color: transparent; }

/* Disclaimer */
.tutor-disclaimer { font-size: .78rem; margin-top: 2rem; text-align: center; }
.empty-state { padding: 3rem; text-align: center; color: var(--muted); }

/* langs kept for backward compat */
.tutor-langs { color: var(--muted); font-size: .88rem; margin: .2rem 0; }

/* =============================================
   TUTOR PROFILE PAGE
   ============================================= */
.tutor-profile { max-width: var(--max); margin: 2rem auto; padding: 0 1.5rem; }
.back { display: inline-block; margin-bottom: 1rem; }

/* Referral banner at top of profile */
.referral-banner {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  background: color-mix(in srgb, var(--banner-color, var(--green)) 10%, #fff);
  border: 1.5px solid var(--banner-color, var(--green));
  border-radius: var(--radius); padding: .8rem 1.2rem; margin-bottom: 1.5rem;
  flex-wrap: wrap;
}
.referral-banner strong { color: var(--banner-color, var(--green)); }

.profile-grid { display: grid; grid-template-columns: 300px 1fr; gap: 2rem; }
.profile-aside { background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.2rem; height: fit-content; box-shadow: var(--shadow); }
.profile-photo { width: 100%; height: 260px; object-fit: cover; border-radius: var(--radius); margin-bottom: .75rem; }
.profile-photo--fallback {
  width: 100%; height: 260px; border-radius: var(--radius); margin-bottom: .75rem;
  display: flex; align-items: center; justify-content: center;
  font-size: 5rem; font-weight: 800; color: #fff;
  background: linear-gradient(135deg, var(--green) 0%, var(--green-d) 100%);
}
.profile-source-badge {
  display: inline-block; color: #fff; font-size: .72rem; font-weight: 700;
  padding: .2rem .75rem; border-radius: 999px; margin-bottom: .75rem;
}
.profile-stats { display: flex; flex-direction: column; gap: .3rem; margin-bottom: 1rem; font-size: .9rem; }
.rate-lg { font-size: 1.6rem; font-weight: 800; color: var(--green-d); line-height: 1; }
.profile-aside .btn { margin-bottom: .5rem; }
.profile-headline { font-size: 1.05rem; color: var(--muted); margin-bottom: 1rem; }
.profile-bio { line-height: 1.7; white-space: pre-line; }

/* Referral CTA box at bottom of profile */
.referral-cta-box {
  margin-top: 2rem; padding: 1.5rem;
  border: 2px solid var(--box-color, var(--green));
  border-radius: var(--radius);
  background: color-mix(in srgb, var(--box-color, var(--green)) 6%, #fff);
  text-align: center;
}
.referral-cta-box p { margin: 0 0 1rem; color: var(--muted); }

/* Testimonial */
.testimonial { max-width: 48rem; margin: 3rem auto; padding: 2rem 1.5rem; text-align: center; }
.testimonial blockquote { font-size: 1.4rem; font-weight: 600; margin: 0 0 .6rem; }
.testimonial cite { color: var(--muted); }

/* Auth */
.auth { display: grid; place-items: center; padding: 2.5rem 1.5rem; }
.auth-card { width: 100%; max-width: 26rem; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 2rem; box-shadow: var(--shadow); }
.auth-card h1 { margin: 0 0 .3rem; }
.auth form { display: flex; flex-direction: column; gap: .9rem; margin-top: 1.2rem; }
.auth label { display: flex; flex-direction: column; gap: .35rem; font-weight: 600; font-size: .92rem; }
.auth input { padding: .7rem .9rem; border: 1px solid var(--line); border-radius: 10px; font-size: 1rem; }
.field-error { color: #b4231f; font-weight: 600; font-size: .82rem; }
.radio-row .radios { display: flex; gap: 1rem; margin-top: .3rem; }
.radio { flex-direction: row !important; align-items: center; gap: .4rem; font-weight: 600; }
.auth-alt { text-align: center; margin-top: 1rem; color: var(--muted); }
.auth-alt a { color: var(--green-d); font-weight: 700; }

/* Assessment */
.assess { max-width: 46rem; margin: 2.5rem auto; padding: 0 1.5rem; }
.assess-form { display: flex; flex-direction: column; gap: 1rem; margin-top: 1.5rem; }
.assess-form label { display: flex; flex-direction: column; gap: .4rem; font-weight: 600; }
.assess-form input, .assess-form textarea { padding: .8rem; border: 1px solid var(--line); border-radius: 10px; font: inherit; }
.result-card { display: flex; gap: 1.5rem; background: var(--bg-soft); border-radius: var(--radius); padding: 1.5rem; margin: 1.5rem 0; }
.cefr-badge { flex: 0 0 auto; width: 84px; height: 84px; border-radius: 50%; display: grid; place-items: center; font-size: 1.8rem; font-weight: 800; color: #fff; background: var(--green); }
.cefr-a1, .cefr-a2 { background: #e8a800; }
.cefr-b1, .cefr-b2 { background: var(--green); }
.cefr-c1, .cefr-c2 { background: #2456a6; }
.result-body h2 { margin: 0 0 .4rem; }

/* Profile */
.tutor-profile { max-width: var(--max); margin: 2rem auto; padding: 0 1.5rem; }
.back { display: inline-block; margin-bottom: 1rem; }
.profile-grid { display: grid; grid-template-columns: 300px 1fr; gap: 2rem; }
.profile-aside { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.2rem; height: fit-content; box-shadow: var(--shadow); }
.profile-photo { width: 100%; height: 260px; object-fit: cover; border-radius: var(--radius); margin-bottom: 1rem; }
.profile-stats { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1rem; }
.rate-lg { font-size: 1.6rem; font-weight: 800; color: var(--green-d); }
.profile-aside .btn { margin-bottom: .5rem; }
.profile-headline { font-size: 1.15rem; color: var(--muted); }

/* Error */
.error-page { text-align: center; padding: 4rem 1.5rem; }
.error-page h1 { font-size: 4rem; margin: 0; color: var(--green); }

/* Footer */
.footer { max-width: var(--max); margin: 3rem auto 1.5rem; padding: 2rem 1.5rem 0; border-top: 1px solid var(--line); display: grid; grid-template-columns: 2fr 1fr; gap: 1rem; }
.footer p { color: var(--muted); margin: .3rem 0; }
.footer-links { display: flex; flex-direction: column; gap: .4rem; }
.footer-links a { color: var(--muted); font-weight: 600; }
.footer small { grid-column: 1 / -1; color: var(--muted); padding: 1rem 0; }

/* ===== Quiz ===== */
.quiz-intro { max-width: 44rem; margin: 2.5rem auto; padding: 0 1.5rem; }
.quiz-intro h1 { font-size: 2.4rem; margin: .6rem 0; }
.quiz-features { list-style: none; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: .6rem; margin: 1.5rem 0; }
.quiz-features li { background: var(--bg-soft); border-radius: 10px; padding: .7rem 1rem; font-weight: 600; }

.quiz-q { max-width: 40rem; margin: 2rem auto; padding: 0 1.5rem; }
.quiz-progress { height: 8px; background: var(--line); border-radius: 999px; overflow: hidden; margin-bottom: 1rem; }
.quiz-progress-bar { height: 100%; background: var(--green); transition: width .3s; }
.quiz-meta { display: flex; gap: .6rem; align-items: center; margin-bottom: 1.2rem; }
.q-count { font-weight: 700; color: var(--muted); }
.tier-badge { font-weight: 800; font-size: .78rem; padding: .2rem .6rem; border-radius: 999px; color: #fff; }
.tier-a1, .tier-a2 { background: #e8a800; }
.tier-b1, .tier-b2 { background: var(--green); }
.tier-c1, .tier-c2 { background: #2456a6; }
.type-badge { font-weight: 600; font-size: .8rem; color: var(--muted); border: 1px solid var(--line); padding: .2rem .6rem; border-radius: 999px; }
.q-passage { background: var(--bg-soft); border-left: 4px solid var(--green); padding: 1rem; border-radius: 8px; margin: 0 0 1rem; font-style: italic; }
.q-text { font-size: 1.4rem; margin: 0 0 1.2rem; }
.q-options { display: flex; flex-direction: column; gap: .7rem; margin-bottom: 1.5rem; }
.q-option { display: flex; align-items: center; gap: .8rem; border: 2px solid var(--line); border-radius: 12px; padding: .9rem 1rem; cursor: pointer; transition: .15s; }
.q-option:hover { border-color: var(--green); background: var(--bg-soft); }
.q-option:has(input:checked) { border-color: var(--green); background: #e6f7ee; }
.q-option input { accent-color: var(--green); width: 18px; height: 18px; }
.q-letter { font-weight: 800; color: var(--green-d); width: 1.5rem; }

/* Quiz results + paywall */
.quiz-results { max-width: 46rem; margin: 2rem auto; padding: 0 1.5rem; }
.result-teaser { background: var(--bg-soft); border-radius: 12px; padding: 1rem 1.2rem; margin: 1rem 0; }
.result-wrap { position: relative; }
.result-content.locked { filter: blur(7px); user-select: none; pointer-events: none; }
.score-hero { display: flex; gap: 1.5rem; align-items: center; background: var(--bg-soft); border-radius: 16px; padding: 1.5rem; margin-bottom: 1.5rem; }
.score-big { font-size: 3.5rem; font-weight: 800; color: var(--green-d); line-height: 1; }
.score-big small { font-size: 1.4rem; color: var(--muted); }
.score-side { display: flex; flex-direction: column; gap: .4rem; }
.score-pct { font-weight: 700; }
.cefr-name { color: var(--muted); }
.tier-bars { display: flex; flex-direction: column; gap: .6rem; }
.tier-bar-row { display: flex; align-items: center; gap: .8rem; }
.tier-bar { flex: 1; height: 12px; background: var(--line); border-radius: 999px; overflow: hidden; }
.tier-bar-fill { height: 100%; background: var(--green); }
.tier-score { font-weight: 700; color: var(--muted); min-width: 3rem; text-align: right; }
.study-plan { margin-top: 2rem; }
.paywall-overlay { position: absolute; inset: 0; display: grid; place-items: center; }
.paywall-card { background: #fff; border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow); padding: 2rem; text-align: center; max-width: 24rem; }
.lock-icon { font-size: 2.5rem; }
.paywall-card h2 { margin: .5rem 0; }
.paywall-card p { color: var(--muted); }
.results-cta { display: flex; gap: .8rem; flex-wrap: wrap; margin-top: 1.5rem; }

/* ── Wrong-answer review (quiz results, after unlock) ─────────────────── */
.wrong-answers { margin: 2rem 0; }
.wrong-answers h2 { font-size: 1.15rem; font-weight: 700; margin-bottom: 1.25rem; display: flex; align-items: center; gap: .6rem; }
.wa-count { background: #dc3545; color: #fff; font-size: .75rem; font-weight: 700; padding: .15rem .55rem; border-radius: 999px; }
.wa-card { background: var(--bg-soft); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.25rem; margin-bottom: 1rem; }
.wa-header { display: flex; align-items: center; gap: .6rem; margin-bottom: .75rem; }
.wa-num { font-size: .78rem; color: var(--muted); font-weight: 600; }
.wa-passage { background: #fff; border-left: 3px solid var(--green); border-radius: 6px; padding: .7rem 1rem; font-size: .9rem; margin-bottom: .75rem; line-height: 1.5; }
.wa-question { font-weight: 600; margin-bottom: .75rem; line-height: 1.5; }
.wa-options { list-style: none; padding: 0; margin: 0 0 .75rem; display: flex; flex-direction: column; gap: .4rem; }
.wa-option { display: flex; align-items: center; gap: .6rem; padding: .5rem .8rem; border-radius: 8px; border: 1.5px solid var(--line); font-size: .9rem; background: var(--bg); }
.wa-option.wa-correct { border-color: #18a957; background: #e6f7ee; }
.wa-option.wa-chosen  { border-color: #dc3545; background: #fce8ea; }
.wa-letter { font-weight: 700; min-width: 1.2rem; flex-shrink: 0; }
.wa-text { flex: 1; }
.wa-tag { margin-left: auto; font-size: .7rem; font-weight: 700; padding: .15rem .45rem; border-radius: 999px; display: flex; align-items: center; gap: .25rem; white-space: nowrap; flex-shrink: 0; }
.wa-tag-correct { background: #18a957; color: #fff; }
.wa-tag-wrong   { background: #dc3545; color: #fff; }
.wa-explanation { font-size: .85rem; color: var(--muted); border-top: 1px solid var(--line); padding-top: .6rem; margin: 0; line-height: 1.5; }
.wa-report { margin-top: .75rem; background: none; border: 1px solid var(--line); color: var(--muted); font-size: .72rem; font-weight: 600; padding: .3rem .6rem; border-radius: 999px; cursor: pointer; transition: all .15s; }
.wa-report:hover:not(:disabled) { border-color: #dc3545; color: #dc3545; }
.wa-report:disabled { cursor: default; opacity: .8; }
.wa-report.reported { border-color: #18a957; color: #18a957; }

.center { text-align: center; }

/* ========================================
   PLACEMENT TEST STYLING
   ======================================== */

/* Intro Page */
.assessment-intro {
    max-width: 44rem;
    margin: 2.5rem auto;
    padding: 0 1.5rem;
    text-align: center;
}

.assessment-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.info-card {
    background: var(--bg-soft);
    border-radius: var(--radius);
    padding: 1.5rem;
    border: 1px solid var(--line);
}

.info-card h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.info-card p {
    font-size: 0.9rem;
    color: var(--muted);
}

/* Question Page */
.quiz-play {
    max-width: 40rem;
    margin: 2rem auto;
    padding: 0 1.5rem;
}

.quiz-header {
    margin-bottom: 2rem;
}

.quiz-progress {
    height: 8px;
    background: var(--line);
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 1.5rem;
}

.progress-fill {
    height: 100%;
    background: var(--green);
    transition: width 0.3s ease;
}

.quiz-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.q-count {
    font-size: 0.9rem;
    color: var(--muted);
    font-weight: 500;
}

.quiz-content {
    margin: 2rem 0;
}

.question-text {
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--ink);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.question-passage {
    background: var(--bg-soft);
    border-left: 4px solid var(--green);
    border-radius: 8px;
    padding: 1.2rem;
    margin-bottom: 1.5rem;
    line-height: 1.6;
    font-size: 0.95rem;
}

.question-options {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 2rem;
}

.option-label {
    display: flex;
    align-items: flex-start;
    gap: 0.8rem;
    padding: 0.9rem 1rem;
    border: 2px solid var(--line);
    border-radius: 12px;
    background: var(--bg);
    cursor: pointer;
    transition: all 0.2s ease;
}

.option-label:hover {
    border-color: var(--green);
    background: rgba(24, 169, 87, 0.05);
}

.option-label:has(input:checked) {
    border-color: var(--green);
    background: #e6f7ee;
    font-weight: 500;
}

.option-letter {
    min-width: 24px;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    background: var(--bg-soft);
    font-weight: 600;
    font-size: 0.85rem;
    flex-shrink: 0;
}

.option-label:has(input:checked) .option-letter {
    background: var(--green);
    color: white;
}

.option-text {
    flex: 1;
    font-size: 0.95rem;
}

/* Results Page */
.assessment-results {
    max-width: 46rem;
    margin: 2rem auto;
    padding: 0 1.5rem;
}

.cefr-estimate {
    text-align: center;
    margin: 2rem 0;
}

.result-score {
    font-size: 1.3rem;
    color: var(--muted);
}

.tier-breakdown {
    margin: 2rem 0;
    padding: 1.5rem;
    background: var(--bg-soft);
    border-radius: var(--radius);
}

.tier-breakdown h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.tier-bars {
    display: grid;
    gap: 1rem;
}

.tier-bar-item {
    display: grid;
    grid-template-columns: 50px 1fr 60px;
    align-items: center;
    gap: 1rem;
}

.tier-bar-item label {
    font-weight: 600;
    font-size: 0.9rem;
}

.tier-bar-bg {
    height: 24px;
    background: var(--line);
    border-radius: 4px;
    overflow: hidden;
}

.tier-bar-fill {
    height: 100%;
    transition: width 0.3s ease;
}

.tier-bar-label {
    font-size: 0.9rem;
    color: var(--muted);
    text-align: right;
}

.assessment-ctas {
    text-align: center;
    margin: 2rem 0;
}

.assessment-ctas a {
    margin: 0.5rem;
}

/* Responsive */
@media (max-width: 860px) {
    .hero-inner, .sample-card, .profile-grid { grid-template-columns: 1fr; }
    .steps-grid { grid-template-columns: 1fr; }
    .hero h1 { font-size: 2.2rem; }
    .nav nav a:not(.btn) { display: none; }
    .quiz-features { grid-template-columns: 1fr; }
    .score-hero { flex-direction: column; text-align: center; }
}
