/* AMA IELTS Speaking Mastery - premium layer. © 2026 Soukaina (Teacher Souka). */

.view--ielts {
 --ie-ink: #0b1a3a;
 --ie-gold-grad: linear-gradient(135deg, #f7d77a 0%, #c9952a 55%, #a87411 100%);
 --ie-navy-grad: linear-gradient(135deg, #001a4d 0%, #002366 45%, #1f3f9f 100%);
 --ie-glass: rgba(255, 255, 255, 0.72);
 --ie-shadow: 0 10px 34px rgba(0, 35, 102, 0.1);
 --ie-shadow-lg: 0 18px 48px rgba(0, 35, 102, 0.16);
 background:
 radial-gradient(1200px 400px at 90% -10%, rgba(201, 149, 42, 0.08), transparent 60%),
 linear-gradient(180deg, #f3f6fc 0%, #f8f9fd 100%);
}

.ielts-placement-cta {
 display: flex;
 flex-wrap: wrap;
 align-items: center;
 justify-content: space-between;
 gap: 16px;
 margin: 0 0 22px;
 padding: 20px 22px;
 border-radius: 22px;
 background: linear-gradient(135deg, #001a4d 0%, #1f3f9f 70%, #002366 100%);
 color: #fff;
 box-shadow: var(--ie-shadow-lg);
 border: 1px solid rgba(247, 215, 122, 0.35);
}
.ielts-placement-cta__eyebrow {
 margin: 0 0 6px;
 font: 700 0.78rem var(--ui);
 letter-spacing: 0.12em;
 text-transform: uppercase;
 color: #f7d77a;
}
.ielts-placement-cta h3 { margin: 0 0 8px; font-size: 1.45rem; }
.ielts-placement-cta p { margin: 0; max-width: 520px; line-height: 1.5; color: rgba(255, 255, 255, 0.88); }
.ielts-placement-cta__go { flex-shrink: 0; }

/* ---------- hero ---------- */
.ielts-hero {
 position: relative;
 overflow: hidden;
 background:
 radial-gradient(circle at 88% 12%, rgba(247, 215, 122, 0.35), transparent 40%),
 radial-gradient(circle at 10% 110%, rgba(49, 89, 190, 0.6), transparent 50%),
 var(--ie-navy-grad);
 padding: 48px 20px 40px;
 border-bottom: 3px solid transparent;
 border-image: var(--ie-gold-grad) 1;
}
.ielts-hero::after {
 content: "";
 position: absolute;
 inset: 0;
 background-image: repeating-linear-gradient(115deg, rgba(255, 255, 255, 0.035) 0 2px, transparent 2px 22px);
 pointer-events: none;
}
.ielts-hero__inner { position: relative; z-index: 1; }
.ielts-hero h2 { letter-spacing: -0.01em; text-shadow: 0 2px 18px rgba(0, 0, 0, 0.25); }
.ielts-premium-badge {
 display: inline-flex;
 align-items: center;
 gap: 6px;
 background: var(--ie-gold-grad);
 color: #2a1d00;
 border-radius: 999px;
 padding: 4px 12px;
 margin-right: 8px;
 font-size: 0.72rem;
 letter-spacing: 0.1em;
 box-shadow: 0 4px 14px rgba(201, 149, 42, 0.45);
}
.ielts-stat {
 backdrop-filter: blur(6px);
 border-color: rgba(247, 215, 122, 0.3);
}
.ielts-hero__target { background: var(--ie-gold-grad); box-shadow: 0 6px 18px rgba(201, 149, 42, 0.4); }

/* ---------- grouped tabs ---------- */
.ielts-tabs {
 align-items: stretch;
 gap: 10px;
 padding: 12px 4px;
 background: rgba(243, 246, 252, 0.92);
 backdrop-filter: blur(10px);
 border-bottom: 1px solid rgba(0, 35, 102, 0.06);
}
.ielts-tabgroup {
 flex: 0 0 auto;
 display: flex;
 align-items: center;
 gap: 6px;
 padding: 4px 6px 4px 4px;
 background: #fff;
 border: 1px solid rgba(0, 35, 102, 0.08);
 border-radius: 999px;
 box-shadow: 0 2px 10px rgba(0, 35, 102, 0.05);
}
.ielts-tabgroup__label {
 padding: 0 8px 0 12px;
 font: 700 0.66rem var(--ui, sans-serif);
 letter-spacing: 0.14em;
 text-transform: uppercase;
 color: #a87411;
 white-space: nowrap;
}
.ielts-tabgroup .ielts-tab { border-color: transparent; background: transparent; padding: 8px 13px; min-height: 40px; }
.ielts-tabgroup .ielts-tab:hover { background: var(--ie-blue-light); box-shadow: none; }
.ielts-tab.is-active,
.ielts-tabgroup .ielts-tab.is-active { background: var(--ie-navy-grad); color: #fff; box-shadow: 0 6px 16px rgba(0, 35, 102, 0.28); }
.ielts-tab--home { background: var(--ie-gold-grad); color: #2a1d00; border-color: transparent; font-weight: 700; }
.ielts-tab--home.is-active { background: var(--ie-navy-grad); color: #f7d77a; }

/* ---------- sections & shared ---------- */
.ielts-section {
 border-radius: 22px;
 border: 1px solid rgba(0, 35, 102, 0.07);
 box-shadow: var(--ie-shadow);
}
.ielts-head h3 i { color: #c9952a; }
.ielts-btn--primary { background: linear-gradient(135deg, #e31b23, #b3121a); box-shadow: 0 4px 14px rgba(227, 27, 35, 0.22); }
.ielts-back { margin-bottom: 14px; }
.ielts-muted { line-height: 1.55; }
.ielts-strike { text-decoration: line-through; text-decoration-color: var(--ie-red); color: var(--ie-dim); }

.ielts-ring {
 --p: 0;
 position: relative;
 flex: 0 0 auto;
 display: inline-grid;
 place-items: center;
 width: 58px;
 height: 58px;
 border-radius: 50%;
 background: conic-gradient(#c9952a calc(var(--p) * 1%), #e8edf7 0);
}
.ielts-ring::before { content: ""; position: absolute; inset: 6px; border-radius: 50%; background: #fff; }
.ielts-ring > span { position: relative; font: 700 0.78rem var(--ui, sans-serif); color: var(--ie-navy); }

.ielts-seg {
 display: inline-flex;
 flex-wrap: wrap;
 gap: 4px;
 padding: 4px;
 margin: 4px 0 16px;
 background: #eef2fa;
 border-radius: 14px;
}
.ielts-seg__btn {
 border: 0;
 background: transparent;
 color: var(--ie-navy);
 font: 600 0.9rem var(--ui, sans-serif);
 padding: 9px 14px;
 min-height: 40px;
 border-radius: 10px;
 cursor: pointer;
 display: inline-flex;
 align-items: center;
 gap: 6px;
}
.ielts-seg__btn:hover { background: rgba(255, 255, 255, 0.7); }
.ielts-seg__btn.is-active { background: #fff; box-shadow: 0 3px 10px rgba(0, 35, 102, 0.12); color: var(--ie-ink); }

.ielts-say {
 display: inline-flex;
 align-items: center;
 gap: 6px;
 border: 1px solid #d9e2f2;
 background: #fff;
 color: var(--ie-blue);
 border-radius: 999px;
 min-width: 36px;
 min-height: 36px;
 padding: 0 10px;
 font: 600 0.82rem var(--ui, sans-serif);
 cursor: pointer;
 vertical-align: middle;
 transition: background 0.15s, transform 0.1s;
}
.ielts-say:hover { background: var(--ie-blue-light); }
.ielts-say:active { transform: scale(0.95); }
.ielts-say--sm { min-width: 30px; min-height: 30px; padding: 0 8px; font-size: 0.75rem; }
.ielts-say--cand { color: #a87411; border-color: #f0dca8; }
.ielts-say.is-playing { background: var(--ie-navy); color: #fff; border-color: var(--ie-navy); animation: ielts-pulse 1.2s infinite; }
@keyframes ielts-pulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(31, 63, 159, 0.4); } 50% { box-shadow: 0 0 0 7px rgba(31, 63, 159, 0); } }

.ielts-done-card {
 text-align: center;
 padding: 28px 18px;
 border-radius: 20px;
 background: radial-gradient(circle at 50% 0, rgba(247, 215, 122, 0.25), transparent 60%), #fff;
 border: 1px solid #f0dca8;
}
.ielts-done-card > i { font-size: 2.6rem; background: var(--ie-gold-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.ielts-done-card h4 { font-size: 1.6rem; margin: 10px 0 6px; }
.ielts-done-card p { color: var(--ie-dim); max-width: 520px; margin: 0 auto 14px; line-height: 1.55; }

.ielts-panel {
 background: #fff;
 border: 1px solid rgba(0, 35, 102, 0.07);
 border-radius: 20px;
 padding: 18px;
 box-shadow: var(--ie-shadow);
}
.ielts-panel h4 { margin: 0 0 12px; }
.ielts-panel h4 i { color: #c9952a; }

/* ---------- course home ---------- */
.ielts-home__top { display: grid; grid-template-columns: 1.2fr 1fr; gap: 18px; margin-bottom: 8px; }
.ielts-home__welcome {
 position: relative;
 overflow: hidden;
 color: #fff;
 border-radius: 24px;
 padding: 24px;
 background: radial-gradient(circle at 100% 0, rgba(247, 215, 122, 0.3), transparent 45%), var(--ie-navy-grad);
 box-shadow: var(--ie-shadow-lg);
}
.ielts-home__welcome h3 { color: #fff; margin: 4px 0 8px; font-size: 1.5rem; }
.ielts-home__welcome p { margin: 0 0 16px; opacity: 0.92; line-height: 1.55; }
.ielts-home__greet { color: #f7d77a !important; font-weight: 700; margin: 0 !important; }
.ielts-home__kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.ielts-kpi {
 display: flex;
 flex-direction: column;
 align-items: center;
 gap: 6px;
 padding: 12px 8px;
 border-radius: 16px;
 background: rgba(255, 255, 255, 0.1);
 border: 1px solid rgba(255, 255, 255, 0.18);
 text-align: center;
}
.ielts-kpi > span:last-child { font-size: 0.75rem; opacity: 0.88; }
.ielts-kpi .ielts-ring { background: conic-gradient(#f7d77a calc(var(--p) * 1%), rgba(255, 255, 255, 0.18) 0); }
.ielts-kpi .ielts-ring::before { background: #0f2c74; }
.ielts-kpi .ielts-ring > span { color: #fff; }
.ielts-kpi__band { font: 700 2rem var(--serif, Georgia, serif); line-height: 58px; }
.ielts-kpi__band--gold { background: var(--ie-gold-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

.ielts-today {
 background: #fff;
 border-radius: 24px;
 padding: 18px;
 border: 1px solid #f0dca8;
 box-shadow: var(--ie-shadow);
}
.ielts-today__head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.ielts-today__head h4 { margin: 0; }
.ielts-today__head h4 i { color: #e8590c; }
.ielts-today__head span { font-weight: 700; color: #a87411; background: #fff6df; padding: 4px 10px; border-radius: 999px; font-size: 0.82rem; }
.ielts-today__task {
 display: flex;
 align-items: center;
 gap: 10px;
 padding: 10px;
 border-radius: 14px;
 transition: background 0.15s;
}
.ielts-today__task + .ielts-today__task { border-top: 1px dashed #e3e9f4; }
.ielts-today__task:hover { background: #f8faff; }
.ielts-today__task.is-done .ielts-today__text strong { text-decoration: line-through; color: var(--ie-dim); }
.ielts-today__check { border: 0; background: none; font-size: 1.35rem; color: #c5d4e8; cursor: pointer; min-width: 40px; min-height: 40px; }
.ielts-today__task.is-done .ielts-today__check { color: var(--ie-green); }
.ielts-today__text { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.ielts-today__text strong i { color: #c9952a; margin-right: 4px; }
.ielts-today__text small { color: var(--ie-dim); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.ielts-map__group {
 margin: 26px 0 10px;
 font: 700 0.78rem var(--ui, sans-serif) !important;
 letter-spacing: 0.16em;
 text-transform: uppercase;
 color: #a87411 !important;
 display: flex;
 align-items: center;
 gap: 10px;
}
.ielts-map__group::after { content: ""; flex: 1; height: 1px; background: linear-gradient(90deg, #f0dca8, transparent); }
.ielts-map { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
.ielts-mod {
 display: flex;
 align-items: center;
 gap: 12px;
 text-align: left;
 padding: 14px;
 background: #fff;
 border: 1px solid rgba(0, 35, 102, 0.08);
 border-radius: 18px;
 cursor: pointer;
 font: inherit;
 color: inherit;
 box-shadow: 0 4px 16px rgba(0, 35, 102, 0.05);
 transition: transform 0.15s, box-shadow 0.15s, border-color 0.15s;
}
.ielts-mod:hover { transform: translateY(-3px); box-shadow: var(--ie-shadow-lg); border-color: #f0dca8; }
.ielts-mod__icon,
.ielts-game__icon,
.ielts-struct__icon,
.ielts-conv-card__icon {
 flex: 0 0 auto;
 display: grid;
 place-items: center;
 width: 46px;
 height: 46px;
 border-radius: 14px;
 background: var(--ie-navy-grad);
 color: #f7d77a;
 font-size: 1.1rem;
 box-shadow: 0 6px 14px rgba(0, 35, 102, 0.22);
}
.ielts-mod__text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.ielts-mod__text strong { color: var(--ie-ink); }
.ielts-mod__text small { color: var(--ie-dim); line-height: 1.4; font-size: 0.82rem; }
.ielts-mod .ielts-ring { width: 46px; height: 46px; }
.ielts-mod .ielts-ring::before { inset: 5px; }
.ielts-mod .ielts-ring > span { font-size: 0.68rem; }
.ielts-mod__go { color: #c9952a; }

.ielts-home__bottom { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 24px; }
.ielts-trend { width: 100%; height: auto; }
.ielts-trend__line { fill: none; stroke: #1f3f9f; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.ielts-trend__dot { fill: #f7d77a; stroke: #002366; stroke-width: 2; }
.ielts-trend__target { stroke: #c9952a; stroke-dasharray: 5 5; stroke-width: 1.5; }
.ielts-trend__label { fill: #a87411; font: 600 10px var(--ui, sans-serif); }
.ielts-plan-days { list-style: none; margin: 0; padding: 0; }
.ielts-plan-days li { padding: 7px 0; border-bottom: 1px dashed #e3e9f4; line-height: 1.45; font-size: 0.92rem; }
.ielts-plan-days li span { display: inline-block; min-width: 50px; font-weight: 700; color: #a87411; font-size: 0.8rem; }

/* ---------- vocabulary ---------- */
.ielts-topic-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 12px; }
.ielts-topic {
 --c: #1f3f9f;
 position: relative;
 overflow: hidden;
 display: flex;
 flex-direction: column;
 align-items: flex-start;
 gap: 6px;
 text-align: left;
 padding: 16px;
 border-radius: 18px;
 border: 1px solid rgba(0, 35, 102, 0.08);
 background: #fff;
 cursor: pointer;
 font: inherit;
 color: inherit;
 transition: transform 0.15s, box-shadow 0.15s;
}
.ielts-topic::before { content: ""; position: absolute; inset: 0 0 auto; height: 4px; background: var(--c); }
.ielts-topic:hover { transform: translateY(-3px); box-shadow: var(--ie-shadow-lg); }
.ielts-topic__icon {
 display: grid;
 place-items: center;
 width: 44px;
 height: 44px;
 border-radius: 14px;
 color: #fff;
 background: var(--c);
 box-shadow: 0 6px 14px rgba(0, 0, 0, 0.15);
}
.ielts-topic strong { color: var(--ie-ink); font-size: 1.02rem; }
.ielts-topic small { color: var(--ie-dim); }
.ielts-topic__bar { width: 100%; height: 6px; background: #edf1f8; border-radius: 999px; overflow: hidden; margin-top: 4px; }
.ielts-topic__bar i { display: block; height: 100%; background: var(--c); border-radius: inherit; }
.ielts-topic__count { font-size: 0.75rem; color: var(--ie-dim); font-weight: 600; }

.ielts-vocab__head,
.ielts-gamebox__head,
.ielts-struct-detail__head,
.ielts-conv__head { display: flex; align-items: center; gap: 14px; margin-bottom: 12px; }
.ielts-vocab__head h3,
.ielts-gamebox__head h3,
.ielts-struct-detail__head h3,
.ielts-conv__head h3 { margin: 2px 0; }
.ielts-vocab__head p,
.ielts-gamebox__head p { margin: 0; }

.ielts-words { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 12px; }
.ielts-word {
 padding: 14px 16px;
 border-radius: 16px;
 border: 1px solid #e3e9f4;
 border-left: 4px solid var(--c, #1f3f9f);
 background: #fff;
 transition: box-shadow 0.15s;
}
.ielts-word:hover { box-shadow: var(--ie-shadow); }
.ielts-word.is-learned { background: linear-gradient(180deg, #fffbef, #fff); border-color: #f0dca8; }
.ielts-word__top { display: flex; justify-content: space-between; align-items: flex-start; gap: 8px; }
.ielts-word__w { font: 700 1.08rem var(--serif, Georgia, serif); color: var(--ie-ink); }
.ielts-word__ipa { color: var(--ie-dim); font-size: 0.85rem; }
.ielts-word__actions { display: flex; gap: 4px; }
.ielts-word__m { margin: 8px 0 4px; line-height: 1.45; }
.ielts-word__c { margin: 0 0 6px; font-size: 0.85rem; color: #1f3f9f; }
.ielts-word__c i { font-size: 0.75rem; }
.ielts-word__ex { margin: 0; font-style: italic; color: #3b4a63; font-size: 0.92rem; line-height: 1.5; }
.ielts-star { border: 0; background: none; color: #c9952a; font-size: 1.1rem; min-width: 36px; min-height: 36px; cursor: pointer; border-radius: 50%; }
.ielts-star:hover { background: #fff6df; }
.ielts-idioms { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
.ielts-idiom {
 padding: 14px 16px;
 border-radius: 16px;
 background: linear-gradient(135deg, #001a4d, #1f3f9f);
 color: #fff;
}
.ielts-idiom strong { color: #f7d77a; font-family: var(--serif, Georgia, serif); font-size: 1.02rem; }
.ielts-idiom p { margin: 6px 0 0; line-height: 1.45; opacity: 0.95; }
.ielts-idiom .ielts-word__ex { color: #dfe7ff; }

.ielts-flash-wrap { display: flex; flex-direction: column; align-items: center; gap: 14px; }
.ielts-flash__count { font-weight: 700; color: var(--ie-dim); font-size: 0.85rem; }
.ielts-flash { border: 0; padding: 0; background: none; width: min(460px, 100%); height: 250px; perspective: 1200px; cursor: pointer; }
.ielts-flash__inner { position: relative; display: block; width: 100%; height: 100%; transition: transform 0.6s cubic-bezier(0.2, 0.7, 0.2, 1); transform-style: preserve-3d; }
.ielts-flash.is-flipped .ielts-flash__inner { transform: rotateY(180deg); }
.ielts-flash__face {
 position: absolute;
 inset: 0;
 display: flex;
 flex-direction: column;
 align-items: center;
 justify-content: center;
 gap: 10px;
 padding: 22px;
 border-radius: 24px;
 backface-visibility: hidden;
 -webkit-backface-visibility: hidden;
 box-shadow: var(--ie-shadow-lg);
 text-align: center;
}
.ielts-flash__front { background: var(--ie-navy-grad); color: #fff; }
.ielts-flash__front strong { font: 700 1.9rem var(--serif, Georgia, serif); color: #f7d77a; }
.ielts-flash__back { background: #fff; color: var(--ie-ink); border: 2px solid #f0dca8; transform: rotateY(180deg); }
.ielts-flash__back strong { font-size: 1.1rem; line-height: 1.45; }
.ielts-flash__face em { opacity: 0.85; }
.ielts-flash__face small { opacity: 0.75; line-height: 1.45; }
.ielts-flash__btns { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }

/* ---------- quizzes ---------- */
.ielts-quiz { max-width: 720px; margin: 0 auto; }
.ielts-quiz__top { display: flex; justify-content: space-between; font-weight: 700; color: var(--ie-dim); font-size: 0.85rem; margin-bottom: 8px; }
.ielts-quiz__top i { color: #c9952a; }
.ielts-quiz__label { margin: 16px 0 4px; color: var(--ie-dim); }
.ielts-quiz__q { font-size: 1.25rem; line-height: 1.45; margin: 0 0 16px; }
.ielts-quiz__opts { display: grid; gap: 10px; }
.ielts-quiz__opts--row { grid-template-columns: repeat(4, 1fr); margin-top: 14px; }
.ielts-opt {
 text-align: left;
 padding: 14px 16px;
 min-height: 50px;
 border-radius: 14px;
 border: 2px solid #e3e9f4;
 background: #fff;
 font: 600 0.98rem var(--ui, sans-serif);
 color: var(--ie-ink);
 cursor: pointer;
 transition: border-color 0.15s, background 0.15s, transform 0.1s;
}
.ielts-quiz__opts--row .ielts-opt { text-align: center; }
.ielts-opt:hover:not(:disabled) { border-color: #1f3f9f; background: #f6f8ff; }
.ielts-opt:active:not(:disabled) { transform: scale(0.99); }
.ielts-opt:disabled { cursor: default; opacity: 0.75; }
.ielts-opt.is-right { border-color: var(--ie-green); background: #eaf6ef; opacity: 1; }
.ielts-opt.is-wrong { border-color: var(--ie-red); background: #fdecec; opacity: 1; animation: ielts-shake 0.35s; }
@keyframes ielts-shake { 25% { transform: translateX(-4px); } 75% { transform: translateX(4px); } }
.ielts-quiz__fb { margin-top: 14px; line-height: 1.55; }
.ielts-quiz__fb > div { margin-top: 10px; }
.ielts-quiz__fb .is-ok { color: var(--ie-green); }
.ielts-quiz__fb .is-err { color: var(--ie-red); }

/* ---------- structures ---------- */
.ielts-struct-grid,
.ielts-conv-grid,
.ielts-gym-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; }
.ielts-struct,
.ielts-conv-card,
.ielts-game {
 position: relative;
 display: flex;
 flex-direction: column;
 align-items: flex-start;
 gap: 8px;
 text-align: left;
 padding: 18px;
 border-radius: 20px;
 border: 1px solid rgba(0, 35, 102, 0.08);
 background: #fff;
 font: inherit;
 color: inherit;
 cursor: pointer;
 box-shadow: 0 4px 16px rgba(0, 35, 102, 0.05);
 transition: transform 0.15s, box-shadow 0.15s, border-color 0.15s;
}
.ielts-struct:hover,
.ielts-conv-card:hover,
.ielts-game:hover { transform: translateY(-3px); box-shadow: var(--ie-shadow-lg); border-color: #f0dca8; }
.ielts-struct strong,
.ielts-conv-card strong,
.ielts-game strong { color: var(--ie-ink); font-size: 1.04rem; }
.ielts-struct small,
.ielts-conv-card small,
.ielts-game small { color: var(--ie-dim); line-height: 1.45; }
.ielts-struct.is-done,
.ielts-conv-card.is-done { border-color: #a9d8bd; }
.ielts-struct__num { position: absolute; top: 14px; right: 16px; font: 700 1.4rem var(--serif, Georgia, serif); color: #eef2fa; }
.ielts-struct__done { color: var(--ie-green); font-weight: 700; font-size: 0.82rem; }
.ielts-band-chip {
 display: inline-block;
 padding: 3px 10px;
 border-radius: 999px;
 background: var(--ie-gold-grad);
 color: #2a1d00;
 font-weight: 700;
 font-size: 0.75rem;
}
.ielts-struct-detail__why { background: var(--ie-blue-light); border-radius: 14px; padding: 12px 14px; line-height: 1.55; }
.ielts-struct-detail__why i { color: #1f3f9f; }
.ielts-pattern {
 display: flex;
 flex-wrap: wrap;
 align-items: center;
 gap: 10px;
 margin: 14px 0;
 padding: 14px 16px;
 border-radius: 14px;
 background: var(--ie-navy-grad);
 color: #fff;
}
.ielts-pattern span { font: 700 0.7rem var(--ui, sans-serif); letter-spacing: 0.14em; text-transform: uppercase; color: #f7d77a; }
.ielts-pattern code { font: 600 1rem 'Cascadia Code', Consolas, monospace; color: #fff; background: none; white-space: normal; }
.ielts-examples { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.ielts-examples li { padding: 10px 14px; border-radius: 12px; background: #fafbfe; border-left: 3px solid #c9952a; line-height: 1.5; }
.ielts-drill { padding: 16px; border-radius: 18px; border: 1px solid #e3e9f4; margin: 12px 0; background: #fff; }
.ielts-drill__basic { font-size: 1.02rem; margin-bottom: 6px; }
.ielts-drill__basic span { display: inline-block; padding: 2px 8px; border-radius: 6px; background: #eef2fa; color: var(--ie-dim); font: 700 0.7rem var(--ui, sans-serif); letter-spacing: 0.08em; text-transform: uppercase; margin-right: 6px; }
.ielts-drill__task { color: #1f3f9f; font-weight: 600; margin-bottom: 10px; }
.ielts-drill__model { margin: 0; font-weight: 600; color: var(--ie-green); line-height: 1.5; }
.ielts-challenge {
 margin-top: 20px;
 padding: 18px;
 border-radius: 20px;
 background: radial-gradient(circle at 100% 0, rgba(247, 215, 122, 0.25), transparent 50%), #fffaf0;
 border: 1px solid #f0dca8;
}
.ielts-challenge h4 { margin: 0 0 6px; }
.ielts-challenge h4 i { color: #e8590c; }
.ielts-challenge__q { font: 600 1.08rem var(--serif, Georgia, serif); color: var(--ie-ink); }

/* ---------- conversations ---------- */
.ielts-conv__controls { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 8px 0 14px; }
.ielts-conv__controls .ielts-seg { margin: 0; }
.ielts-chat { display: flex; flex-direction: column; gap: 22px; }
.ielts-turn { display: flex; flex-direction: column; gap: 10px; padding-bottom: 18px; border-bottom: 1px dashed #e3e9f4; }
.ielts-bubble {
 position: relative;
 max-width: 86%;
 padding: 14px 16px 12px;
 border-radius: 20px;
 line-height: 1.6;
 transition: box-shadow 0.2s, transform 0.2s;
}
.ielts-bubble p { margin: 0 0 6px; }
.ielts-bubble__tag { display: block; font: 700 0.7rem var(--ui, sans-serif); letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 6px; opacity: 0.85; }
.ielts-bubble--exam { align-self: flex-start; background: var(--ie-navy-grad); color: #fff; border-bottom-left-radius: 6px; }
.ielts-bubble--exam .ielts-bubble__tag { color: #f7d77a; }
.ielts-bubble--cand { align-self: flex-end; background: #fff; border: 1px solid #e3e9f4; border-bottom-right-radius: 6px; box-shadow: 0 4px 14px rgba(0, 35, 102, 0.06); }
.ielts-bubble--b6 .ielts-bubble__tag { color: #6b7a90; }
.ielts-bubble--b8 { border-color: #f0dca8; background: linear-gradient(180deg, #fffbef, #fff); }
.ielts-bubble--b8 .ielts-bubble__tag { color: #a87411; }
.ielts-bubble.is-live { box-shadow: 0 0 0 3px #f7d77a, var(--ie-shadow-lg); transform: scale(1.01); }
.ielts-compare { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.ielts-compare .ielts-bubble { max-width: none; }
.ielts-why summary { color: #1f3f9f; }
.ielts-shadow__rec { margin-top: 10px; }

/* ---------- speaking gym ---------- */
.ielts-game__meta { display: flex; flex-wrap: wrap; gap: 10px; font-size: 0.78rem; color: var(--ie-dim); font-weight: 600; margin-top: auto; }
.ielts-game__meta i { color: #c9952a; }
.ielts-game__badge { position: absolute; top: 14px; right: 14px; background: #fff1e6; color: #e8590c; font-weight: 700; font-size: 0.78rem; padding: 3px 9px; border-radius: 999px; }
.ielts-gamebox__stage { display: flex; flex-direction: column; gap: 14px; }
.ielts-roulette { display: flex; flex-direction: column; align-items: center; gap: 16px; text-align: center; }
.ielts-roulette__wheel {
 width: 120px;
 height: 120px;
 border-radius: 50%;
 display: grid;
 place-items: center;
 font-size: 3.6rem;
 color: #f7d77a;
 background: var(--ie-navy-grad);
 box-shadow: 0 0 0 6px #fff, 0 0 0 9px #f0dca8, var(--ie-shadow-lg);
}
.ielts-roulette__wheel.is-spinning i { animation: ielts-spin 1.3s cubic-bezier(0.2, 0.7, 0.2, 1); }
@keyframes ielts-spin { to { transform: rotate(1080deg); } }
.ielts-roulette__q { min-height: 3.2em; max-width: 640px; font: 600 1.2rem var(--serif, Georgia, serif); color: var(--ie-ink); display: flex; flex-direction: column; align-items: center; gap: 6px; }
.ielts-roulette > div:last-child { width: 100%; text-align: left; }
.ielts-rapid { text-align: center; }
.ielts-rapid__count { font-weight: 700; color: #a87411; margin-bottom: 10px; }
.ielts-rapid .ielts-examiner { text-align: left; }
.ielts-rapid__clock { font-size: 2.6rem; margin: 6px 0; }
.ielts-sprint-words { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 8px; }
.ielts-sprint-word { padding: 10px 12px; border-radius: 12px; background: #fff8e6; border: 1px solid #f1d48a; }
.ielts-sprint-word strong { display: block; color: #6b4b00; }
.ielts-sprint-word small { color: #6b5a33; line-height: 1.35; }
.ielts-fluency-res { display: flex; justify-content: center; gap: 12px; margin: 14px 0; flex-wrap: wrap; }
.ielts-fluency-res > div { min-width: 100px; padding: 12px; border-radius: 14px; background: var(--ie-blue-light); display: flex; flex-direction: column; }
.ielts-fluency-res span { font-size: 0.8rem; color: var(--ie-dim); }
.ielts-fluency-res strong { font-size: 1.3rem; color: var(--ie-navy); }
.ielts-big-score { display: flex; align-items: center; gap: 14px; padding: 14px 18px; border-radius: 16px; background: #fffaf0; border: 1px solid #f0dca8; }
.ielts-big-score strong { font: 700 2.4rem var(--serif, Georgia, serif); color: #a87411; }
.ielts-steps-bar span.is-done { background: #eaf6ef; color: var(--ie-green); }

/* ---------- speak & score / band lab ---------- */
.ielts-score-q { margin-bottom: 12px; }
.ielts-score-q .ielts-lab__actions { margin: -6px 0 10px 64px; }
.ielts-ladder__q { background: var(--ie-blue-light); padding: 12px 14px; border-radius: 12px; }
.ielts-ladder { display: grid; gap: 12px; }
.ielts-rung { display: grid; grid-template-columns: 96px 1fr; border-radius: 18px; overflow: hidden; border: 1px solid #e3e9f4; background: #fff; }
.ielts-rung__band { display: grid; place-items: center; font: 700 1.05rem var(--serif, Georgia, serif); color: #fff; }
.ielts-rung--5 .ielts-rung__band { background: #8a97ad; }
.ielts-rung--6 .ielts-rung__band { background: #3159be; }
.ielts-rung--7 .ielts-rung__band { background: #002366; }
.ielts-rung--8 .ielts-rung__band { background: var(--ie-gold-grad); color: #2a1d00; }
.ielts-rung__body { padding: 14px 16px; }
.ielts-rung__body p { margin: 0 0 8px; line-height: 1.55; }
.ielts-rung__note { color: var(--ie-dim); font-size: 0.9rem; }
.ielts-rung__note i { color: #c9952a; }
.ielts-guess__text { margin: 10px 0; padding: 14px 16px; border-left: 4px solid #c9952a; background: #fafbfe; border-radius: 0 14px 14px 0; line-height: 1.6; }
.ielts-guess__text p { margin: 0 0 6px; }
.ielts-calc { display: grid; grid-template-columns: repeat(4, 1fr) 1.2fr; gap: 10px; align-items: end; }
.ielts-calc label { display: flex; flex-direction: column; gap: 4px; font-size: 0.82rem; font-weight: 600; color: var(--ie-dim); }
.ielts-calc select { min-height: 44px; border-radius: 10px; border: 1px solid var(--ie-border); padding: 0 10px; font: 600 1rem var(--ui, sans-serif); color: var(--ie-ink); background: #fff; }
.ielts-calc__out { display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 8px; min-height: 64px; border-radius: 14px; background: var(--ie-navy-grad); color: #fff; }
.ielts-calc__out span { font-size: 0.75rem; opacity: 0.85; }
.ielts-calc__out strong { font: 700 1.3rem var(--serif, Georgia, serif); color: #f7d77a; }

/* ---------- instant feedback report ---------- */
.ielts-rec__report:empty { display: none; }
.ielts-rec__report { margin-top: 12px; }
.ielts-an {
 border-radius: 20px;
 border: 1px solid #f0dca8;
 background: #fff;
 overflow: hidden;
 box-shadow: var(--ie-shadow);
}
.ielts-an__head { display: grid; grid-template-columns: 150px 1fr; gap: 16px; padding: 16px; background: linear-gradient(180deg, #fffbef, #fff); }
.ielts-an__band {
 display: flex;
 flex-direction: column;
 align-items: center;
 justify-content: center;
 border-radius: 18px;
 background: var(--ie-navy-grad);
 color: #fff;
 padding: 12px;
}
.ielts-an__band small { opacity: 0.85; font-size: 0.75rem; }
.ielts-an__band strong { font: 700 2.6rem var(--serif, Georgia, serif); color: #f7d77a; line-height: 1.1; }
.ielts-an__crits { display: grid; gap: 8px; align-content: center; }
.ielts-an__crit { display: grid; grid-template-columns: 170px 1fr 40px; align-items: center; gap: 10px; font-size: 0.86rem; }
.ielts-an__crit strong { text-align: right; color: var(--ie-navy); }
.ielts-an__bar { height: 8px; border-radius: 999px; background: #edf1f8; overflow: hidden; }
.ielts-an__bar i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #3159be, #c9952a); transition: width 0.8s ease; }
.ielts-an__stats { display: flex; flex-wrap: wrap; gap: 8px; padding: 0 16px 12px; }
.ielts-an__stats span { padding: 6px 12px; border-radius: 999px; background: #f3f6fc; font-size: 0.84rem; color: var(--ie-dim); }
.ielts-an__stats strong { color: var(--ie-navy); }
.ielts-an__checks { padding: 0 16px 10px; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.ielts-an__checks h5,
.ielts-an__tips h5 { width: 100%; margin: 6px 0 4px; font-size: 0.88rem; color: var(--ie-navy); }
.ielts-an__tick { padding: 4px 10px; border-radius: 999px; background: #f3f6fc; color: var(--ie-dim); font-size: 0.82rem; }
.ielts-an__tick.is-used { background: #eaf6ef; color: var(--ie-green); font-weight: 600; }
.ielts-an__tips { padding: 0 16px 8px; }
.ielts-an__tips ul { margin: 0; padding-left: 20px; line-height: 1.6; }
.ielts-an__tips h5 i { color: #c9952a; }
.ielts-an__transcript { margin: 0 16px 10px; border-radius: 12px; background: #fafbfe; padding: 10px 12px; }
.ielts-an__transcript summary { cursor: pointer; font-weight: 600; color: var(--ie-navy); display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.ielts-an__transcript p { line-height: 1.7; }
.ielts-an__legend { display: inline-flex; gap: 4px; font-weight: 400; font-size: 0.75rem; }
.ielts-an__note { margin: 0; padding: 10px 16px 14px; font-size: 0.82rem; color: var(--ie-dim); line-height: 1.5; }
.ielts-hl { padding: 1px 4px; border-radius: 4px; }
.ielts-hl--link { background: #e1f3e8; color: #145c39; }
.ielts-hl--adv { background: #fff1c9; color: #6b4b00; }
.ielts-hl--fill { background: #fde0e0; color: #9b1c1c; text-decoration: line-through; }

/* ---------- responsive ---------- */
@media (max-width: 860px) {
 .ielts-home__top,
 .ielts-home__bottom { grid-template-columns: 1fr; }
 .ielts-calc { grid-template-columns: 1fr 1fr; }
 .ielts-calc__out { grid-column: 1 / -1; }
 .ielts-compare { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
 .ielts-hero { padding: 32px 16px 28px; }
 .ielts-section { padding: 16px; border-radius: 18px; }
 .ielts-tabgroup__label { display: none; }
 .ielts-home__welcome { padding: 18px; }
 .ielts-home__kpis { gap: 6px; }
 .ielts-kpi__band { font-size: 1.6rem; }
 .ielts-bubble { max-width: 100%; }
 .ielts-an__head { grid-template-columns: 1fr; }
 .ielts-an__crit { grid-template-columns: 1fr 1fr 34px; }
 .ielts-quiz__opts--row { grid-template-columns: 1fr 1fr; }
 .ielts-rung { grid-template-columns: 1fr; }
 .ielts-rung__band { padding: 6px; }
 .ielts-score-q .ielts-lab__actions { margin-left: 0; }
 .ielts-flash { height: 220px; }
 .ielts-today__task { flex-wrap: wrap; }
}
@media (prefers-reduced-motion: reduce) {
 .view--ielts * { animation: none !important; transition: none !important; }
}
