.dash-tabs { overflow-x: auto; max-width: 100%; }
.dash-tabs [data-dash-tab] { white-space: nowrap; flex-shrink: 0; }
.prediction-panel { overflow-y: auto; min-height: 0; padding: 2px 4px 16px; }
.prediction-panel[hidden] { display: none; }
.prediction-intro { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin: 16px 0 22px; }
.prediction-eyebrow { color: #34766b; font-size: 11px; letter-spacing: .12em; font-weight: 700; margin: 0 0 8px; }
.prediction-intro h2 { font-size: 24px; margin: 0 0 8px; }
.prediction-intro p:not(.prediction-eyebrow) { font-size: 13px; line-height: 1.65; color: #626967; max-width: 560px; margin: 0; }
.prediction-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 18px; }
.prediction-card { min-width: 0; border: 1px solid #e1e8e5; border-radius: 18px; overflow: hidden; background: #fff; }
.prediction-cover { position: relative; min-height: 170px; overflow: hidden; display: flex; flex-direction: column; align-items: flex-start; justify-content: space-between; padding: 18px; color: #daf6eb; background: #163f39; }
.prediction-cover:after { content: ''; position: absolute; width: 170px; height: 170px; border: 28px solid #ffffff0c; border-radius: 50%; right: -80px; bottom: -90px; pointer-events: none; }
.prediction-cover.tone-1 { background: #273b54; color: #e0ebfc; }
.prediction-cover.tone-2 { background: #40394f; color: #e9e2fa; }
.prediction-access { display: inline-flex; align-items: center; gap: 5px; padding: 5px 10px; border: 1px solid #ffffff40; border-radius: 20px; font-size: 10px; font-weight: 600; }
.prediction-access svg { width: 12px; height: 12px; }
.prediction-calendar { display: flex; align-items: baseline; gap: 10px; font-size: 56px; line-height: 1; font-weight: 800; letter-spacing: -.04em; margin: 16px 0 12px; }
.prediction-calendar small { font-size: 16px; font-weight: 500; letter-spacing: .08em; opacity: .7; }
.prediction-cover-label { font-size: 9px; letter-spacing: .14em; }
.prediction-card-body { padding: 18px; }
.prediction-card-body h3 { font-size: 15px; margin: 0 0 8px; line-height: 1.5; }
.prediction-card-body p { color: #636965; font-size: 12px; line-height: 1.6; margin: 8px 0 16px; }
.prediction-card-body .prediction-status { display: inline-block; background: #f0f3f1; border-radius: 6px; padding: 3px 8px; font-size: 10px; margin: 0; }
.prediction-button { display: inline-flex; gap: 12px; justify-content: center; align-items: center; min-height: 42px; padding: 10px 16px; border: 1px solid #d5dfda; border-radius: 10px; background: #f7faf8; color: #21483f; font-family: inherit; font-size: 12px; font-weight: 600; line-height: 1.5; text-decoration: none; cursor: pointer; }
.prediction-card .prediction-button { display: flex; justify-content: space-between; }
.prediction-button:hover { background: #e8f3ec; border-color: #96b5a7; }
.prediction-button:focus-visible, .prediction-manage:focus-visible { outline: 3px solid #177968; outline-offset: 3px; }
.prediction-button:disabled { opacity: .5; cursor: wait; }
.prediction-manage { flex-shrink: 0; color: #236654; font-size: 12px; padding: 8px; }
.prediction-note { margin: 20px 0 0; color: #777e79; font-size: 11px; line-height: 1.7; }
.prediction-page { background: #f3f6f4; color: #1d2e27; font-family: 'Be Vietnam Pro',system-ui,sans-serif; }
.prediction-main { width: min(960px,calc(100% - 48px)); margin: 50px auto; }
.prediction-main h1 { font-family: inherit; font-size: clamp(26px,4vw,42px); line-height: 1.25; letter-spacing: -.03em; margin: 18px 0 30px; }
.prediction-back { display: inline-block; color: #366354; text-decoration: none; font-size: 13px; padding: 12px 0; }
.prediction-empty { padding: 56px 24px; background: white; border: 1px solid #e0e7e2; border-radius: 24px; text-align: center; }
.prediction-empty h2 { font-family: inherit; font-size: 24px; font-weight: 700; line-height: 1.4; }
.prediction-empty p { max-width: 510px; margin: 14px auto 24px; color: #68736c; line-height: 1.8; font-size: 14px; }
.prediction-lock { display: block; color: #448373; font-size: 44px; }
.prediction-files { list-style: none; margin: 0; padding: 0; }
.prediction-files li { display: flex; align-items: center; justify-content: space-between; gap: 20px; border: 1px solid #dfe6e2; border-radius: 14px; background: white; padding: 20px; margin: 12px 0; }
.prediction-files strong { display: block; font-size: 15px; margin-top: 6px; overflow-wrap: anywhere; }
.prediction-files small { color: #657368; font-size: 11px; }
.prediction-admin-form { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; background: white; padding: 24px; border: 1px solid #dfe6e2; border-radius: 18px; }
.prediction-admin-form label { display: grid; gap: 8px; font-size: 13px; font-weight: 600; }
.prediction-admin-form input, .prediction-admin-form select { min-width: 0; width: 100%; border: 1px solid #c9d4cd; border-radius: 8px; background: white; padding: 12px; font: inherit; }
.prediction-admin-form .wide { grid-column: 1 / -1; }
.prediction-admin-form p { font-size: 12px; line-height: 1.7; color: #626c65; margin: 0; }
.prediction-admin-form button { justify-self: start; }
.prediction-feedback { min-height: 24px; font-size: 14px; color: #246345; }
.prediction-feedback[data-error="true"] { color: #b02b2b; }
/* The IELTS base theme resets every radius with !important. Keep these cards consistent with course cards. */
.prediction-card { border-radius: 18px !important; }
.prediction-cover:after { border-radius: 50% !important; }
.prediction-access { border-radius: 20px !important; }
.prediction-button { border-radius: 10px !important; }
.prediction-status { border-radius: 6px !important; }
@media(min-width:1500px) { .prediction-grid { grid-template-columns: repeat(3,minmax(0,1fr)); } }
@media(max-width:600px) { .prediction-grid { grid-template-columns: 1fr; } .prediction-intro { flex-direction: column; } .prediction-main { width: calc(100% - 32px); margin: 24px auto; } .prediction-files li { align-items: flex-start; flex-direction: column; } .prediction-admin-form { grid-template-columns: 1fr; padding: 18px; } }

/* ── Forecast banner at the top of the IELTS home (14 Nov 2026): the packs are selling point no. 1 ── */
.forecast-banner { position: relative; isolation: isolate; overflow: hidden; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 20px; align-items: center;
  margin: 0 0 22px; padding: 22px 24px; color: #eaf7ff; text-decoration: none; background: #140f2e;
  clip-path: polygon(16px 0, 100% 0, 100% calc(100% - 16px), calc(100% - 16px) 100%, 0 100%, 0 16px); transition: transform .3s cubic-bezier(.2, .8, .2, 1); }
.forecast-banner:hover { transform: translateY(-3px); }
.forecast-glow { position: absolute; inset: -60%; z-index: -1; filter: blur(50px); opacity: .55;
  background: conic-gradient(from 20deg, transparent 0 12%, #ffc83d 24%, transparent 36%, #8a72f6 54%, transparent 68%, #56dadc 82%, transparent 94%); animation: forecast-spin 22s linear infinite; }
.forecast-kicker { display: inline-flex; align-items: center; gap: 8px; font: 700 12px/1 'Be Vietnam Pro', sans-serif; letter-spacing: .12em; color: #56dadc; }
.forecast-kicker i { font-style: normal; padding: 3px 7px; background: #ff5c7a; color: #fff; letter-spacing: .06em; animation: forecast-pulse 1.6s ease-in-out infinite; }
.forecast-banner h2 { margin: 8px 0 6px; font: 800 clamp(22px, 2.6vw, 30px)/1.2 'Baloo 2', 'Be Vietnam Pro', sans-serif; text-transform: none; letter-spacing: normal;
  background: linear-gradient(180deg, #fff 35%, #ffc83d); -webkit-background-clip: text; background-clip: text; color: transparent; }
.forecast-banner p { margin: 0 0 14px; color: #b8c4e6; font-size: 14px; line-height: 1.55; }
.forecast-go { display: inline-flex; gap: 8px; align-items: center; min-height: 44px; padding: 0 18px; background: #ffc83d; color: #140f2e; font: 800 15px/1 'Baloo 2', sans-serif;
  clip-path: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px); }
.forecast-months { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.forecast-months li { display: grid; gap: 2px; padding: 10px 12px; background: rgba(255, 255, 255, .06); border: 1px solid rgba(185, 168, 255, .22);
  clip-path: polygon(8px 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%, 0 8px); }
.forecast-months b { font: 800 18px/1.1 'Baloo 2', sans-serif; color: #fff; font-variant-numeric: tabular-nums; }
.forecast-months span { font-size: 12px; color: #8c96c4; }
.forecast-months li.has { background: rgba(86, 218, 220, .16); border-color: #56dadc; } .forecast-months li.has span { color: #56dadc; font-weight: 700; }
@media (max-width: 760px) { .forecast-banner { grid-template-columns: 1fr; padding: 18px; } }
@keyframes forecast-spin { to { transform: rotate(360deg); } }
@keyframes forecast-pulse { 50% { opacity: .65; } }
@media (prefers-reduced-motion: reduce) { .forecast-glow, .forecast-kicker i { animation: none; } .forecast-banner { transition: none; } }

/* A pack seen without the pass: the titles, locked */
.prediction-files.is-locked li { opacity: .82; }
.prediction-lockchip { display: inline-flex; align-items: center; color: #8c96c4; }
.prediction-page .prediction-panel { overflow: visible; }

/* "Liên hệ admin" on months without materials */
.forecast-ask { display: flex; width: 100%; justify-content: center; background: #ffc83d !important; border-color: #ffc83d !important; color: #140f2e !important; font-weight: 700; }
.forecast-ask.is-sent { background: #d9f6ee !important; border-color: #56dadc !important; color: #0a6f74 !important; cursor: default; }
.forecast-ask-row { display: grid; gap: 10px; justify-items: center; margin: 18px auto 0; max-width: 420px; text-align: center; color: #636965; font-size: 14px; }
.forecast-months li.soon span { color: #ffc83d; font-weight: 700; }

/* Paid-members ribbon (14 Nov 2026): gold, a crown, a light sweeping across it */
.forecast-ribbon { position: relative; overflow: hidden; display: inline-flex; align-items: center; gap: 8px; margin: 0 0 12px; padding: 8px 14px 8px 12px;
  background: linear-gradient(100deg, #ffb703, #ffd76a 45%, #ffc83d); color: #2b1a00; font: 800 14px/1.2 'Be Vietnam Pro', sans-serif; letter-spacing: .01em;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .35) inset, 0 6px 22px -6px rgba(255, 200, 61, .85);
  clip-path: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px); animation: forecast-ribbon-in .7s cubic-bezier(.2, .8, .2, 1) both; }
.forecast-ribbon svg { flex: none; color: #8a5300; filter: drop-shadow(0 1px 0 rgba(255, 255, 255, .6)); animation: forecast-crown 2.4s ease-in-out infinite; }
.forecast-ribbon::after { content: ""; position: absolute; top: -50%; left: -40%; width: 30%; height: 200%; background: rgba(255, 255, 255, .7); transform: rotate(25deg);
  animation: forecast-shine 2.6s ease-in-out infinite; }
.forecast-banner .forecast-ribbon { display: flex; width: fit-content; }
.forecast-ribbon-row { margin: 18px 0 0; }
.forecast-ribbon-row .forecast-ribbon { font-size: 16px; padding: 10px 18px 10px 14px; }
@keyframes forecast-shine { 0%, 50% { left: -40%; } 100% { left: 140%; } }
@keyframes forecast-crown { 50% { transform: translateY(-2px) rotate(-6deg); } }
@keyframes forecast-ribbon-in { from { opacity: 0; transform: translateY(-8px) scale(.96); } }
@media (prefers-reduced-motion: reduce) { .forecast-ribbon, .forecast-ribbon svg, .forecast-ribbon::after { animation: none; } }

/* Forecast offer popup (14 Nov 2026) */
.forecast-pop { position: fixed; inset: 0; z-index: 2147482000; display: grid; place-items: center; padding: 16px; background: rgba(13, 10, 34, .62);
  backdrop-filter: blur(4px); opacity: 0; transition: opacity .25s; }
.forecast-pop.is-open { opacity: 1; }
.forecast-pop[hidden] { display: none; }
.forecast-pop-card { position: relative; isolation: isolate; overflow: hidden; width: min(480px, 100%); padding: 26px 24px 22px; color: #eaf7ff; background: #140f2e;
  clip-path: polygon(18px 0, 100% 0, 100% calc(100% - 18px), calc(100% - 18px) 100%, 0 100%, 0 18px);
  transform: translateY(18px) scale(.96); transition: transform .45s cubic-bezier(.2, .8, .2, 1); }
.forecast-pop.is-open .forecast-pop-card { transform: none; }
.forecast-pop-card .forecast-ribbon { display: flex; width: fit-content; }
.forecast-pop-card h2 { margin: 8px 0 6px; font: 800 clamp(24px, 6vw, 30px)/1.2 'Baloo 2', 'Be Vietnam Pro', sans-serif; text-transform: none; letter-spacing: normal;
  background: linear-gradient(180deg, #fff 35%, #ffc83d); -webkit-background-clip: text; background-clip: text; color: transparent; }
.forecast-pop-card .forecast-kicker { margin: 4px 0 0; }
.forecast-pop-lead { margin: 0 0 12px; color: #b8c4e6; font-size: 14.5px; line-height: 1.55; }
.forecast-pop-list { list-style: none; margin: 0 0 18px; padding: 0; display: grid; gap: 8px; }
.forecast-pop-list li { position: relative; padding: 9px 12px 9px 36px; background: rgba(255, 255, 255, .06); border: 1px solid rgba(185, 168, 255, .22); font-size: 14px; color: #fff; }
.forecast-pop-list li::before { content: "\2713"; position: absolute; left: 12px; top: 8px; color: #56dadc; font-weight: 800; }
.forecast-pop-go { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.forecast-pop-go .forecast-go { text-decoration: none; }
.forecast-pop-later, .forecast-pop-x { border: 0; background: none; color: #b8c4e6; cursor: pointer; font: 600 14px 'Be Vietnam Pro', sans-serif; }
.forecast-pop-later { text-decoration: underline; text-underline-offset: 3px; }
.forecast-pop-x { position: absolute; top: 8px; right: 10px; font-size: 26px; line-height: 1; padding: 4px 8px; z-index: 1; }
.forecast-pop :focus-visible { outline: 3px solid #56dadc; outline-offset: 3px; }
@media (prefers-reduced-motion: reduce) { .forecast-pop, .forecast-pop-card { transition: none; } }

/* "Pro or 3 stars in every Arena game" notice under "Liên hệ admin" (14 Nov 2026) */
.forecast-need { display: grid; gap: 8px; margin-top: 10px; padding: 12px 14px; background: #fff7dc; border: 1px solid #ffd76a; border-left: 4px solid #ffb703; color: #3a2a00; text-align: left;
  animation: forecast-ribbon-in .45s cubic-bezier(.2, .8, .2, 1) both; }
.forecast-need-text { margin: 0; font-weight: 700; font-size: 14px; line-height: 1.5; }
.forecast-need-progress { margin: 0; font-size: 13px; color: #6b5200; }
.forecast-need-bar { display: block; height: 8px; background: #ffe9a8; overflow: hidden; }
.forecast-need-bar i { display: block; height: 100%; background: linear-gradient(90deg, #56dadc, #8a72f6); }
.forecast-need-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.forecast-need-actions a { display: inline-flex; align-items: center; min-height: 38px; padding: 0 14px; font-weight: 800; font-size: 14px; text-decoration: none;
  clip-path: polygon(8px 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%, 0 8px); }
.forecast-need-pro { background: #140f2e; color: #ffc83d !important; }
.forecast-need-arena { background: #56dadc; color: #140f2e !important; }
.prediction-card-body .forecast-need p, .forecast-need p { margin: 0; color: #3a2a00; }
.prediction-card-body .forecast-need .forecast-need-text { font-size: 14px; font-weight: 700; color: #2b1a00; }
.prediction-card-body .forecast-need .forecast-need-progress { font-size: 13px; color: #6b5200; }
