/* White Room Pro: Personal Assistant, GCE Papers, plans and payment, points boards, Step-up Bonus, Resource Deposit,
   Subscriptions. Cards follow style.css (white card, --ink text); the shell stays dark. */
.pro-badge { display: inline-flex; align-items: center; gap: 4px; margin-left: auto; padding: 1px 7px; border-radius: 999px; font-size: 10px; font-weight: 800; letter-spacing: .06em;
  color: #2a1a00; background: linear-gradient(135deg, #ffd56b, var(--gold)); }
.tabs a .pro-badge { margin-left: 8px; }
.pro-banner { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin: 0 0 16px; padding: 12px 16px; border-radius: 12px;
  background: #141b46; border: 1px solid rgba(245, 179, 53, .6); color: #f4f6ff; box-shadow: 0 6px 18px rgba(10, 18, 56, .18); }
.main > .pro-banner { margin: 16px clamp(16px, 3vw, 36px) 0; max-width: calc(1280px - 2 * clamp(16px, 3vw, 36px)); }
.pro-banner b { color: #ffd56b; }
.pro-banner .btn { margin-left: auto; }

.subtabs { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 16px; }
.subtabs button { border: 1px solid var(--line); background: rgba(255, 255, 255, .04); color: var(--on-dark-mute); padding: 8px 14px; border-radius: 999px; font: inherit; font-weight: 600; cursor: pointer; }
.subtabs button[aria-selected="true"] { background: var(--blue); border-color: var(--blue); color: #fff; }
.subtabs button:focus-visible { outline: 2px solid var(--cyan); outline-offset: 2px; }

.pa-grid { display: grid; gap: 16px; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); align-items: start; }
@media (max-width: 900px) { .pa-grid { grid-template-columns: minmax(0, 1fr); } }
.pa-slot { border: 1px solid var(--edge); border-radius: 12px; padding: 12px 14px; margin-top: 10px; }
.pa-slot-head { display: flex; flex-wrap: wrap; gap: 6px 12px; align-items: baseline; color: var(--mute); font-size: 13px; }
.pa-slot-head b { color: var(--ink); font-size: 15px; }
.pa-task { display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px 12px; align-items: center; padding: 10px 0; border-top: 1px dashed var(--edge); }
.pa-task:first-of-type { border-top: 0; }
.pa-task h4 { margin: 0; font-size: 14px; color: var(--ink); }
.pa-task p { margin: 2px 0 0; font-size: 13px; color: var(--mute); }
.pa-task.done h4 { text-decoration: line-through; text-decoration-color: rgba(15, 26, 61, .35); }
.pa-task-ctl { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.pa-task-ctl .input { width: auto; min-width: 0; padding: 6px 8px; font-size: 13px; }
.pa-kind { display: inline-block; margin-right: 6px; padding: 1px 7px; border-radius: 999px; font-size: 11px; font-weight: 700; vertical-align: 1px; }
.pa-kind.learn { background: #e6efff; color: var(--blue-d); }
.pa-kind.practice { background: #e3f8ef; color: #0d7a55; }
.pa-kind.past-paper { background: #f1ecff; color: #5b3fd6; }
.pa-pts { font-size: 12px; color: var(--mute); white-space: nowrap; }

.pa-progress { height: 10px; border-radius: 999px; background: var(--soft); overflow: hidden; margin: 8px 0 4px; }
.pa-progress i { display: block; height: 100%; background: linear-gradient(90deg, var(--blue), var(--cyan)); border-radius: inherit; transition: width .3s; }

.tt-row { display: grid; grid-template-columns: 1.2fr 1fr 1fr 1.5fr auto; gap: 8px; align-items: end; margin-bottom: 8px; }
.tt-row .field { margin: 0; }
@media (max-width: 640px) { .tt-row { grid-template-columns: 1fr 1fr; } .tt-row .field:nth-child(4) { grid-column: 1 / -1; } }
.tt-week { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; margin-top: 12px; }
.tt-day { min-height: 70px; border-radius: 10px; background: var(--soft); padding: 6px; font-size: 12px; color: var(--mute); }
.tt-day > b { display: block; color: var(--ink); margin-bottom: 4px; }
.tt-chip { display: block; margin-top: 4px; padding: 3px 6px; border-radius: 6px; background: #fff; border: 1px solid var(--edge); color: var(--ink); overflow-wrap: anywhere; }
@media (max-width: 640px) { .tt-week { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.chip-pick { display: flex; flex-wrap: wrap; gap: 6px; margin: 6px 0 12px; }
.chip-pick button { border: 1px solid var(--edge); background: #fff; color: var(--ink); border-radius: 999px; padding: 5px 11px; font: inherit; font-size: 13px; cursor: pointer; }
.chip-pick button[aria-pressed="true"] { background: var(--blue); border-color: var(--blue); color: #fff; }

.gap-cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.gap-cols h5 { margin: 0 0 4px; font-size: 12px; text-transform: uppercase; letter-spacing: .05em; color: var(--mute); }
.gap-cols ul { margin: 0; padding-left: 18px; font-size: 13px; color: var(--ink); }
@media (max-width: 640px) { .gap-cols { grid-template-columns: minmax(0, 1fr); } }

.ev-q { padding: 14px 0; border-top: 1px solid var(--edge); color: var(--ink); }
.ev-q:first-child { border-top: 0; }
.ev-q .stem { margin: 0 0 8px; white-space: pre-wrap; }
.ev-opt { display: flex; gap: 8px; align-items: flex-start; padding: 6px 8px; border-radius: 8px; cursor: pointer; }
.ev-opt > span { flex: 1 1 auto; min-width: 0; }   /* a long option wraps or scrolls inside its row */
.ev-opt:hover { background: var(--soft); }
.ev-mark { font-size: 13px; font-weight: 700; }
.ev-mark.good { color: #0d7a55; } .ev-mark.bad { color: #c22a50; }

.gce-filters { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)) auto; gap: 8px; align-items: end; }
.gce-filters .field { margin: 0; }
@media (max-width: 760px) { .gce-filters { grid-template-columns: 1fr 1fr; } }
.gce-row { display: block; width: 100%; text-align: left; border: 1px solid var(--edge); background: #fff; border-radius: 12px; padding: 12px 14px; margin-top: 8px; font: inherit; color: var(--ink); cursor: pointer; }
.gce-row:hover, .gce-row:focus-visible { border-color: var(--blue); outline: none; box-shadow: 0 0 0 3px rgba(47, 107, 255, .15); }
.gce-meta { display: flex; flex-wrap: wrap; gap: 4px 10px; font-size: 12px; color: var(--mute); margin-bottom: 4px; }
.gce-meta b { color: var(--blue-d); }
.gce-stars { color: var(--gold); letter-spacing: 1px; }
.gce-text { white-space: pre-wrap; color: var(--ink); line-height: 1.6; }
.gce-opts { list-style: none; padding: 0; margin: 10px 0; }
.gce-opts li { padding: 6px 10px; border-radius: 8px; border: 1px solid var(--edge); margin-top: 6px; }
.gce-opts li.right { border-color: var(--green); background: #e3f8ef; }
.gce-nofig { margin: 6px 0; padding: 6px 10px; border-radius: 8px; background: #fff4e0; color: #7a4d00; font-size: 13px; font-style: italic; }
.gce-plain { white-space: pre-wrap; font-family: ui-monospace, Consolas, monospace; font-size: 13px; }
.gce-text table, .gce-part table { border-collapse: collapse; margin: 8px 0; }
.gce-text td, .gce-text th, .gce-part td, .gce-part th { border: 1px solid var(--edge); padding: 4px 8px; }
.gce-text p, .gce-part p { margin: 0 0 6px; }
.gce-part { display: flex; gap: 6px; margin-top: 8px; color: var(--ink); line-height: 1.6; }
.gce-part > div { min-width: 0; overflow-x: auto; }
.gce-row .dr-math, .gce-opts .dr-math { font-size: 1em; }
.gce-answer { margin-top: 12px; padding: 12px 14px; border-radius: 10px; background: var(--soft); color: var(--ink); }
.gce-answer > b { display: block; margin-bottom: 4px; }
.gce-text { overflow-x: auto; }
.pay-shot { display: block; max-width: 220px; max-height: 260px; margin-top: 8px; border-radius: 8px; border: 1px solid var(--edge); }
.gate { text-align: center; max-width: 480px; }
.gate h2 { margin: 6px 0 10px; font-size: 21px; }
.gate .actions { justify-content: center; flex-wrap: wrap; }
.gate-icon { width: 54px; height: 54px; margin: 4px auto 0; border-radius: 50%; display: grid; place-items: center; font-size: 26px; font-weight: 900; }
.gate-icon.wait { background: #e6efff; color: var(--blue-d); }
.gate-icon.bad { background: #ffe6ec; color: #c22a50; }
.gce-more { margin-top: 12px; padding: 12px 14px; border-radius: 12px; border: 1px dashed var(--gold); background: #fff8e6; color: #6b4a00; }

.price-big { font-size: 34px; font-weight: 800; color: var(--ink); line-height: 1.1; }
.price-big small { font-size: 15px; font-weight: 600; color: var(--mute); }
.pro-list { margin: 12px 0 0; padding: 0; list-style: none; color: var(--ink); }
.pro-list li { display: flex; gap: 8px; padding: 5px 0; }
.pro-list li::before { content: "✓"; color: var(--green); font-weight: 800; }
.pay-steps { margin: 0; padding-left: 20px; color: var(--ink); }
.pay-steps li { margin: 6px 0; }
.pay-num { font-weight: 800; font-size: 17px; letter-spacing: .03em; color: var(--blue-d); }
.plan-state { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; color: var(--ink); }
.plan-state .tier { font-size: 20px; font-weight: 800; }
.plan-state .tier.pro { color: #b87a00; }

.pts-board .rank-row { grid-template-columns: 56px minmax(0, 1fr) auto; }
.pts-board .subtabs button { border-color: var(--edge); background: var(--soft); color: var(--ink); }
.pts-board .subtabs button[aria-selected="true"] { background: var(--blue); border-color: var(--blue); color: #fff; }

.su-card { display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: center; }
.su-card .su-x { font-size: 28px; font-weight: 900; color: var(--gold); line-height: 1; }
.su-card ul { margin: 4px 0 0; padding-left: 18px; font-size: 13px; color: var(--mute); }
.su-card .btn { margin-left: auto; }

.modal-back { position: fixed; inset: 0; z-index: 60; background: rgba(2, 6, 25, .72); display: grid; place-items: center; padding: 16px; }
.modal { width: min(720px, 100%); max-height: calc(100dvh - 32px); overflow: auto; background: #fff; color: var(--ink); border-radius: 16px; padding: 20px; box-shadow: var(--shadow); }
.modal-head { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 10px; }
.modal-head h2 { margin: 0; font-size: 19px; }
.modal-head .btn { margin-left: auto; }
.note-body { white-space: pre-wrap; line-height: 1.65; }
.note-body h4 { margin: 14px 0 4px; }

.rd-types { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-bottom: 12px; }
.rd-types div { padding: 10px 12px; border-radius: 10px; background: var(--soft); color: var(--ink); font-size: 13px; }
.rd-types b { display: block; font-size: 20px; }
@media (max-width: 560px) { .rd-types { grid-template-columns: minmax(0, 1fr); } }
.rd-res { border: 1px solid var(--edge); border-radius: 12px; padding: 12px 14px; margin-top: 8px; color: var(--ink); font-size: 14px; }
.rd-res.bad { border-color: var(--red); }
.rd-res ul { margin: 6px 0 0; padding-left: 18px; font-size: 13px; }
.rd-res .err { color: #c22a50; } .rd-res .warn { color: #8a5a00; }

.sub-table td, .sub-table th { vertical-align: top; }
.sub-table .actions { margin: 0; gap: 6px; }
.shot-full { display: block; max-width: 100%; max-height: 70vh; margin: 8px auto 0; border-radius: 8px; border: 1px solid var(--edge); }
/* a locked account (registered without a key): only Go Pro and Log out in the menu */
body.acct-locked #studentNavGroup a:not(#navUpgrade) { display: none; }
body.acct-locked #proBanner { display: none !important; }
.pay-welcome { border: 2px solid var(--blue); margin-bottom: 16px; }
.new-acct { display: inline-block; margin-top: 4px; padding: 1px 8px; border-radius: 999px; background: #e6efff; color: var(--blue-d); font-size: 11px; font-weight: 700; }
.gce-choice-block { display: inline-block; vertical-align: top; max-width: 100%; overflow-x: auto; }
.gce-choice-block table { margin: 0; border-collapse: collapse; }
.gce-choice-block td, .gce-choice-block th { border: 1px solid var(--edge); padding: 2px 10px; text-align: center; }
.ev-q .stem p { margin: 0 0 6px; }
/* placement test */
.place-list { margin-top: 12px; }
.place-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; padding: 12px 0; border-top: 1px solid var(--edge); color: var(--ink); }
.place-row:first-of-type { border-top: 0; }
.place-row > div:first-child { display: flex; flex-direction: column; min-width: 140px; }
.place-row .btn { margin-left: auto; }
.place-chips { display: flex; flex-wrap: wrap; gap: 6px; flex-basis: 100%; }
.place-chip { padding: 2px 9px; border-radius: 999px; font-size: 12px; font-weight: 600; }
.place-chip.strong { background: #e3f8ef; color: #0d7a55; }
.place-chip.okay { background: #fff4e0; color: #7a4d00; }
.place-chip.weak { background: #ffe6ec; color: #c22a50; }
.place-q .gce-meta { margin-bottom: 6px; }
.place-group { margin: 12px 0; padding: 10px 14px; border-radius: 10px; color: var(--ink); }
.place-group h4 { margin: 0 0 4px; }
.place-group ul { margin: 0; padding-left: 18px; }
.place-group.weak { background: #fff1f4; }
.place-group.okay { background: #fff8ec; }
.place-group.strong { background: #eefaf4; }
.place-review { margin-top: 14px; color: var(--ink); }
.place-review summary { cursor: pointer; font-weight: 700; }
.gce-opts li.wrong { border-color: var(--red); background: #ffe6ec; }
/* where the marks are */
.tg.earn { color: #0d7a55; background: #e3f8ef; border-radius: 6px; padding: 1px 6px; margin-left: 6px; text-transform: none; letter-spacing: 0; }
.mark-setting { margin-bottom: 16px; }
.switch-row { display: flex; gap: 12px; align-items: flex-start; cursor: pointer; color: var(--ink); }
.switch-row input { width: 20px; height: 20px; margin-top: 2px; flex: none; accent-color: var(--blue); }
.switch-row span { display: flex; flex-direction: column; gap: 2px; }
.pp-your-answer { margin-top: 12px; padding: 12px 14px; border-radius: 10px; background: var(--soft); color: var(--ink); white-space: pre-wrap; line-height: 1.7; }
.pp-your-answer h4 { margin: 0 0 6px; }
.pp-earn { background: #c9f2dd; border-radius: 4px; padding: 0 2px; box-decoration-break: clone; -webkit-box-decoration-break: clone; }
.pp-lost { background: #ffdbe3; border-radius: 4px; padding: 0 2px; }
.pp-badge { display: inline-block; margin: 0 3px; padding: 0 6px; border-radius: 999px; font-size: 11px; font-weight: 800; vertical-align: 1px; white-space: nowrap; }
.pp-badge.earn { background: #0d7a55; color: #fff; }
.pp-badge.lost { background: #c22a50; color: #fff; }
.mark-map { margin-top: 12px; color: var(--ink); }
.mark-map li { margin: 4px 0; }

/* NPC rivals on the rankings: always badged, with a short bio on tap */
.npc-badge { display: inline-block; font-family: var(--display); font-size: .66rem; font-weight: 700; letter-spacing: .04em; padding: 2px 7px; border-radius: 999px; background: #ede7ff; color: #5b34c7; border: 1px solid #d4c7ff; vertical-align: middle; }
.npc-name { display: inline-flex; align-items: center; gap: 8px; background: none; border: 0; padding: 0; font: inherit; color: inherit; cursor: pointer; text-align: left; min-height: 32px; }
.npc-name:focus-visible { outline: 3px solid var(--gold, #ffb547); outline-offset: 2px; border-radius: 6px; }
.npc-av { width: 28px; height: 28px; border-radius: 50%; display: inline-grid; place-items: center; flex: none; overflow: hidden; background: linear-gradient(135deg, #5b34c7, #2f6bff); color: #fff; font-family: var(--display); font-size: .72rem; font-weight: 700; }
.npc-av img { width: 100%; height: 100%; object-fit: cover; }
.rank-row.npc { background: #faf8ff; }
.npc-bio { flex-basis: 100%; display: grid; gap: 2px; margin: 6px 0 2px 40px; padding: 8px 12px; border-left: 3px solid #5b34c7; background: #f5f1ff; border-radius: 0 8px 8px 0; font-size: .86rem; }
.rank-row:has(.npc-bio) { flex-wrap: wrap; }
.rank-row .npc-bio { grid-column: 1 / -1; margin-left: 0; }
.npc-note { display: flex; align-items: center; gap: 8px; margin: 0 0 8px; font-size: .86rem; color: var(--mute, #5a6788); }
.npc-rival { margin: 10px 0 0; font-size: .9rem; }

/* ---------- the three plans (Free, Student, Pro), as on the White Room poster ---------- */
.plan-state .tier.student { color: #1d4ed8; }
.plan-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); gap: 12px; margin-top: 8px; }
.plan-card { position: relative; display: flex; flex-direction: column; gap: 6px; min-width: 0; padding: 14px 14px 16px; border-radius: 14px; border: 2px solid #d5def4; background: #fff; color: var(--ink); }
.plan-card h3 { margin: 0; font-size: 17px; letter-spacing: .01em; }
.plan-price { font-size: 30px; font-weight: 800; line-height: 1.1; }
.plan-price small { display: block; font-size: 13px; font-weight: 600; color: var(--mute); }
.plan-card .pro-list { flex: 1; margin-top: 4px; font-size: 14px; }
.plan-card .pro-list li.no::before { content: "–"; color: var(--mute); }
.plan-card .pro-list li.no { color: var(--mute); }
.plan-tag { margin: 4px 0 6px; font-weight: 700; font-size: 13px; }
.plan-card .btn { align-self: stretch; text-align: center; }
.plan-now { position: absolute; top: 10px; right: 10px; font-size: 11px; font-weight: 800; padding: 2px 8px; border-radius: 999px; background: #eef3ff; color: #1d4ed8; }
.plan-free { border-color: #9ad7a9; } .plan-free h3, .plan-free .plan-tag { color: #18864f; }
.plan-student { border-color: #93b4ff; } .plan-student h3, .plan-student .plan-tag { color: #1d4ed8; }
.plan-pro { border-color: #f2c14e; background: linear-gradient(180deg, #fffaf0, #fff); } .plan-pro h3, .plan-pro .plan-tag { color: #9a6700; }
.plan-card.chosen { box-shadow: 0 0 0 3px rgba(47, 107, 255, .25); }
.plan-pro.chosen { box-shadow: 0 0 0 3px rgba(242, 193, 78, .45); }

/* the mobile money wallets, each in its network's colour (dark text on both, for contrast) */
.wallets { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 10px; margin: 10px 0 4px; }
.wallet { display: grid; grid-template-columns: 1fr auto; grid-template-areas: "net copy" "num copy" "name copy"; align-items: center; gap: 2px 10px; padding: 12px 14px; border-radius: 14px; color: #1a1300; min-width: 0; }
.wallet-mtn { background: #ffcb05; }
.wallet-orange { background: #ff7900; color: #1a0b00; }
.wallet-net { grid-area: net; font-size: 12px; font-weight: 800; letter-spacing: .02em; }
.wallet-num { grid-area: num; font-size: 22px; font-weight: 800; letter-spacing: .04em; overflow-wrap: anywhere; }
.wallet-name { grid-area: name; font-size: 13px; font-weight: 600; }
.wallet-copy { grid-area: copy; border: 0; border-radius: 10px; padding: 8px 12px; font: inherit; font-weight: 800; font-size: 13px; cursor: pointer; background: rgba(0, 0, 0, .82); color: #fff; }
.wallet-copy:focus-visible { outline: 3px solid #1d4ed8; outline-offset: 2px; }
