﻿/* =====================================================================
   GE Library self registration (Views/SelfRegister)

   Look: professional and bold. The GEI red carries the big moments
   (hero band, order panel, unlock bar, page headers); white cards with
   soft depth hold the content.

   Colours
   - The brand red and its pink tint are NOT written here. They come from
     the theme classes of _BaseBundle (the school theme colour):
       m--font-brand      brand text
       m--bg-fill-brand   brand background + white text
       m--bg-metal        light brand tint background
       btn-outline-brand  brand outline button
     Darker red areas = the brand background with a dark overlay (.gsr-deep),
     so the theme colour still decides the red.
   - Neutrals, white text levels and shadows are the .gsr variables below.

   Everything is scoped under .gsr so the Metronic theme is not affected.
   ===================================================================== */

.gsr {
    --gsr-page: #f4f5f7;
    --gsr-surface: #ffffff;
    --gsr-soft: #f9fafb;
    --gsr-ink: #1c1d22;
    --gsr-muted: #60636b;
    --gsr-line: #e5e6ea;
    --gsr-chip: #f0f1f4;
    --gsr-ok: #1d7a45;
    --gsr-ok-soft: #e5f3ea;
    --gsr-error: #b42318;
    --gsr-error-soft: #fdecea;
    --gsr-on-red: #ffffff;
    --gsr-on-red-2: rgba(255, 255, 255, .82);
    --gsr-on-red-3: rgba(255, 255, 255, .18);
    --gsr-shadow-1: 0 1px 2px rgba(16, 24, 40, .05), 0 2px 8px rgba(16, 24, 40, .05);
    --gsr-shadow-2: 0 2px 4px rgba(16, 24, 40, .06), 0 14px 32px rgba(16, 24, 40, .10);
    --gsr-shadow-3: 0 8px 16px rgba(16, 24, 40, .10), 0 28px 60px rgba(16, 24, 40, .18);
    --gsr-r-sm: 10px;
    --gsr-r: 16px;
    --gsr-r-lg: 22px;
    --gsr-f-display: "Montserrat", "Segoe UI", system-ui, sans-serif;
    --gsr-f-body: "IBM Plex Sans", "IBM Plex Sans Arabic", "Segoe UI", system-ui, sans-serif;
    --gsr-f-ar: "IBM Plex Sans Arabic", "IBM Plex Sans", Tahoma, sans-serif;
    min-height: 100vh;
    background: var(--gsr-page);
    color: var(--gsr-ink);
    font-family: var(--gsr-f-body);
    font-size: 15px;
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
}

body.gsr-body { margin: 0; background: #f4f5f7; }

.gsr *, .gsr *::before, .gsr *::after { box-sizing: border-box; }
.gsr h1, .gsr h2, .gsr h3, .gsr p, .gsr ol, .gsr ul { margin: 0; }
.gsr ol, .gsr ul { list-style: none; padding: 0; }
.gsr a { text-decoration: none; }
.gsr a:hover { text-decoration: none; }
.gsr button { font: inherit; }
.gsr a:focus-visible, .gsr button:focus-visible, .gsr input:focus-visible {
    outline: 2px solid var(--gsr-ink);
    outline-offset: 2px;
}
.gsr-red a:focus-visible, .gsr-red button:focus-visible, .gsr-red input:focus-visible { outline-color: #fff; }
.gsr [hidden] { display: none !important; }

.gsr-wrap { max-width: 1140px; margin: 0 auto; padding-left: 24px; padding-right: 24px; }
.gsr-page { padding-top: 40px; padding-bottom: 80px; display: flex; flex-direction: column; gap: 32px; }
.gsr-page--center { align-items: center; }
@media (max-width: 640px) { .gsr-wrap { padding-left: 16px; padding-right: 16px; } }

/* ---------- top bar ---------- */
.gsr-top { background: var(--gsr-surface); border-bottom: 1px solid var(--gsr-line); position: relative; z-index: 2; }
.gsr-top__inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-top: 14px; padding-bottom: 14px; }
.gsr-top__logo { display: block; line-height: 0; }
.gsr-top__logo img { height: 42px; width: auto; display: block; }
.gsr-top__right { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-size: 14px; }
.gsr-top__name { font-weight: 600; }
.gsr-top__link { font-weight: 600; color: var(--gsr-ink); padding: 10px 14px; border-radius: 999px; }
.gsr-top__link:hover { color: var(--gsr-ink); background: var(--gsr-chip); }
.gsr-top__badge { font-weight: 600; font-size: 13px; border-radius: 999px; padding: 6px 12px; }
.gsr-inline { display: inline; margin: 0; }
.gsr-link-btn { background: none; border: 0; padding: 10px 12px; color: var(--gsr-muted); font-weight: 500; cursor: pointer; border-radius: 999px; }
.gsr-link-btn:hover { background: var(--gsr-chip); color: var(--gsr-ink); }

/* ---------- type ---------- */
.gsr-h1 { font-family: var(--gsr-f-display); font-weight: 500; font-size: clamp(32px, 4.6vw, 54px); line-height: 1.08; letter-spacing: -.025em; text-wrap: balance; }
.gsr-h1--card { font-size: 28px; line-height: 1.2; letter-spacing: -.015em; }
.gsr-h2 { font-family: var(--gsr-f-display); font-weight: 600; font-size: clamp(24px, 2.6vw, 30px); letter-spacing: -.02em; line-height: 1.2; }
.gsr-h3 { font-family: var(--gsr-f-display); font-weight: 600; font-size: 20px; letter-spacing: -.01em; }
.gsr-lede { font-size: 17px; line-height: 1.6; max-width: 54ch; }
.gsr-muted { color: var(--gsr-muted); }
.gsr-small { font-size: 13px; }

/* number + word pairs ("183 lessons"), separated by thin lines */
.gsr-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 0; font-size: 14px; color: var(--gsr-muted); }
.gsr-meta > span { padding: 0 12px; border-left: 1px solid var(--gsr-line); white-space: nowrap; }
.gsr-meta > span:first-child { padding-left: 0; border-left: 0; }
.gsr-meta b { color: var(--gsr-ink); font-weight: 600; font-variant-numeric: tabular-nums; }
@media (max-width: 640px) {
    .gsr-meta { gap: 2px 14px; }
    .gsr-meta > span { padding: 0; border-left: 0; }
}

/* ---------- red surfaces ---------- */
/* .gsr-red goes with m--bg-fill-brand (brand background, white text). */
.gsr-red { position: relative; overflow: hidden; color: var(--gsr-on-red); isolation: isolate; }
.gsr-red .gsr-meta, .gsr-red .gsr-muted { color: var(--gsr-on-red-2); }
.gsr-red .gsr-meta b { color: var(--gsr-on-red); }
.gsr-red .gsr-meta > span { border-left-color: var(--gsr-on-red-3); }
/* darker corner, made from the brand colour itself */
.gsr-deep { background-image: linear-gradient(125deg, rgba(0, 0, 0, 0) 20%, rgba(0, 0, 0, .28) 100%); }
/* the three rings echo the GE swirl */
.gsr-rings { position: absolute; z-index: -1; pointer-events: none; color: rgba(255, 255, 255, .10); }
.gsr-rings ellipse:nth-child(2) { color: rgba(255, 255, 255, .18); }
.gsr-rings ellipse { stroke: currentColor; }

/* ---------- hero (visitor and student) ---------- */
.gsr-hero { padding-top: 64px; padding-bottom: 96px; }
.gsr-hero .gsr-rings { width: 760px; right: -180px; top: -120px; }
.gsr-hero__grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 48px; align-items: center; }
.gsr-hero__text { display: flex; flex-direction: column; gap: 20px; }
.gsr-hero__text .gsr-lede { color: var(--gsr-on-red-2); }
.gsr-hero__hello { font-size: 16px; color: var(--gsr-on-red-2); }
.gsr-hero__actions { display: flex; flex-wrap: wrap; gap: 12px; padding-top: 4px; }
.gsr-ticks { display: flex; flex-wrap: wrap; gap: 8px 22px; font-size: 14px; color: var(--gsr-on-red-2); }
.gsr-ticks li { display: inline-flex; align-items: center; gap: 8px; }
.gsr-ticks svg { width: 16px; height: 16px; color: var(--gsr-on-red); }
.gsr-hero--student { padding-bottom: 88px; }
.gsr-hero--student .gsr-hero__text { max-width: 720px; }
@media (max-width: 900px) {
    .gsr-hero { padding-top: 40px; padding-bottom: 80px; }
    .gsr-hero__grid { grid-template-columns: minmax(0, 1fr); }
    .gsr-hero .gsr-rings { width: 520px; right: -220px; top: -60px; }
}

/* white card floating on the red hero: what a grade contains */
.gsr-inside { background: var(--gsr-surface); color: var(--gsr-ink); border-radius: var(--gsr-r-lg); box-shadow: var(--gsr-shadow-3); padding: 24px; display: flex; flex-direction: column; gap: 16px; }
.gsr-inside__head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.gsr-inside__head b { font-family: var(--gsr-f-display); font-weight: 600; font-size: 18px; letter-spacing: -.01em; }
.gsr-inside__price { font-weight: 600; font-size: 14px; border-radius: 999px; padding: 4px 12px; white-space: nowrap; }
.gsr-inside ul { display: flex; flex-direction: column; }
.gsr-inside li { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-top: 1px solid var(--gsr-line); font-weight: 500; }
.gsr-inside li:first-child { border-top: 0; padding-top: 0; }
.gsr-inside li span:last-child { margin-left: auto; color: var(--gsr-muted); font-size: 13px; font-weight: 400; font-variant-numeric: tabular-nums; }
.gsr-inside__foot { font-size: 13px; color: var(--gsr-muted); border-top: 1px solid var(--gsr-line); padding-top: 14px; }
@media (max-width: 640px) { .gsr-inside { display: none; } }

/* stats strip overlapping the bottom of the hero */
.gsr-overlap { margin-top: -52px; position: relative; z-index: 1; }
.gsr-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); background: var(--gsr-surface); border-radius: var(--gsr-r); box-shadow: var(--gsr-shadow-2); }
.gsr-stat { padding: 20px 24px; display: flex; flex-direction: column; gap: 2px; border-left: 1px solid var(--gsr-line); }
.gsr-stat:first-child { border-left: 0; }
.gsr-stat b { font-family: var(--gsr-f-display); font-weight: 600; font-size: 26px; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.gsr-stat span { font-size: 14px; color: var(--gsr-muted); }
@media (max-width: 760px) {
    .gsr-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .gsr-stat:nth-child(3) { border-left: 0; }
    .gsr-stat:nth-child(n+3) { border-top: 1px solid var(--gsr-line); }
}

/* ---------- icons (subjects) ---------- */
.gsr-ico { display: inline-block; width: 20px; height: 20px; flex: 0 0 auto; background-color: currentColor; -webkit-mask: var(--gsr-ico) center / contain no-repeat; mask: var(--gsr-ico) center / contain no-repeat; }
.gsr-ico-tile { display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto; width: 38px; height: 38px; border-radius: 11px; }
.gsr-ico-tile--sm { width: 32px; height: 32px; border-radius: 9px; }
.gsr-ico-tile--sm .gsr-ico { width: 17px; height: 17px; }
.gsr-ico-more { display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; border-radius: 9px; background: var(--gsr-chip); color: var(--gsr-muted); font-size: 12px; font-weight: 600; }

/* subject icons: line drawings used as masks, so they take the text colour */
.gsr-ico--book { --gsr-ico: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22 fill=%22none%22 stroke=%22black%22 stroke-width=%221.8%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22%3E%3Cpath d=%22M5 4.5A1.5 1.5 0 0 1 6.5 3H19v15H6.5A1.5 1.5 0 0 0 5 19.5z%22/%3E%3Cpath d=%22M5 19.5A1.5 1.5 0 0 0 6.5 21H19v-3%22/%3E%3Cpath d=%22M9 7h6%22/%3E%3C/svg%3E"); }
.gsr-ico--language { --gsr-ico: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22 fill=%22none%22 stroke=%22black%22 stroke-width=%221.8%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22%3E%3Cpath d=%22M4 5h16v11H10l-5 4v-4H4z%22/%3E%3Cpath d=%22M8 9h8M8 12h5%22/%3E%3C/svg%3E"); }
.gsr-ico--math { --gsr-ico: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22 fill=%22none%22 stroke=%22black%22 stroke-width=%221.8%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22%3E%3Crect x=%224%22 y=%224%22 width=%2216%22 height=%2216%22 rx=%223%22/%3E%3Cpath d=%22M8 9h3M9.5 7.5v3M13.5 9h3M8.2 13.8l2.6 2.6M10.8 13.8l-2.6 2.6M13.5 14h3M13.5 16.4h3%22/%3E%3C/svg%3E"); }
.gsr-ico--science { --gsr-ico: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22 fill=%22none%22 stroke=%22black%22 stroke-width=%221.8%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22%3E%3Cpath d=%22M9.5 3h5M10.5 3v6.2L5.3 18a2 2 0 0 0 1.7 3h10a2 2 0 0 0 1.7-3l-5.2-8.8V3%22/%3E%3Cpath d=%22M7.6 15h8.8%22/%3E%3C/svg%3E"); }
.gsr-ico--social { --gsr-ico: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22 fill=%22none%22 stroke=%22black%22 stroke-width=%221.8%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22%3E%3Ccircle cx=%2212%22 cy=%2212%22 r=%228.5%22/%3E%3Cpath d=%22M3.5 12h17M12 3.5c2.4 2.4 3.6 5.2 3.6 8.5s-1.2 6.1-3.6 8.5M12 3.5c-2.4 2.4-3.6 5.2-3.6 8.5s1.2 6.1 3.6 8.5%22/%3E%3C/svg%3E"); }
.gsr-ico--tech { --gsr-ico: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22 fill=%22none%22 stroke=%22black%22 stroke-width=%221.8%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22%3E%3Crect x=%227%22 y=%227%22 width=%2210%22 height=%2210%22 rx=%222%22/%3E%3Cpath d=%22M10 3.5V7M14 3.5V7M10 17v3.5M14 17v3.5M3.5 10H7M3.5 14H7M17 10h3.5M17 14h3.5%22/%3E%3C/svg%3E"); }
.gsr-ico--art { --gsr-ico: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22 fill=%22none%22 stroke=%22black%22 stroke-width=%221.8%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22%3E%3Cpath d=%22M12 3.5a8.5 8.5 0 1 0 0 17c1 0 1.5-.7 1.5-1.4 0-1.1-.9-1.4-.9-2.3s.7-1.4 1.6-1.4h2.3a4 4 0 0 0 4-4c0-4.4-3.8-7.9-8.5-7.9z%22/%3E%3Ccircle cx=%227.8%22 cy=%2211%22 r=%221%22/%3E%3Ccircle cx=%2210.3%22 cy=%227.6%22 r=%221%22/%3E%3Ccircle cx=%2214.6%22 cy=%227.6%22 r=%221%22/%3E%3C/svg%3E"); }

/* ---------- section heads ---------- */
.gsr-section { display: flex; flex-direction: column; gap: 20px; }
.gsr-section__head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px 24px; flex-wrap: wrap; }
.gsr-section__title { display: flex; flex-direction: column; gap: 6px; max-width: 60ch; }

/* ---------- search ---------- */
.gsr-search { flex: 0 1 380px; min-width: 240px; position: relative; display: block; margin: 0; }
.gsr-search svg { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); width: 18px; height: 18px; color: var(--gsr-muted); }
.gsr-search input { width: 100%; font: inherit; font-size: 15px; padding: 13px 16px 13px 46px; border: 1px solid var(--gsr-line); border-radius: 999px; background: var(--gsr-surface); color: var(--gsr-ink); box-shadow: var(--gsr-shadow-1); }
.gsr-search input::placeholder { color: var(--gsr-muted); }
.gsr-search--wide { flex: 1 1 100%; max-width: 560px; }
.gsr-red .gsr-search input { border-color: transparent; box-shadow: none; }
@media (max-width: 640px) { .gsr-search { flex: 1 1 100%; } }

/* ---------- grade cards ---------- */
.gsr-gcards { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 20px; }
.gsr-gcard { background: var(--gsr-surface); border: 1px solid var(--gsr-line); border-radius: var(--gsr-r); box-shadow: var(--gsr-shadow-1); padding: 24px; display: flex; flex-direction: column; gap: 18px; position: relative; transition: box-shadow .2s, transform .2s, border-color .2s; }
.gsr-gcard:hover { box-shadow: var(--gsr-shadow-2); transform: translateY(-2px); }
/* selected card: brand ring drawn with currentColor (the card's ring holder has m--font-brand) */
.gsr-gcard__ring { position: absolute; inset: -1px; border-radius: inherit; border: 2px solid currentColor; pointer-events: none; opacity: 0; transition: opacity .2s; }
.gsr-gcard.is-selected .gsr-gcard__ring { opacity: 1; }
.gsr-gcard__head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.gsr-gcard__name { font-family: var(--gsr-f-display); font-weight: 600; font-size: 24px; letter-spacing: -.02em; line-height: 1.15; }
.gsr-gcard__tag { font-size: 12px; font-weight: 600; border-radius: 999px; padding: 4px 10px; white-space: nowrap; }
.gsr-gcard__icons { display: flex; flex-wrap: wrap; gap: 8px; }
.gsr-gcard__price { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding-top: 16px; border-top: 1px solid var(--gsr-line); }
.gsr-gcard__price b { font-family: var(--gsr-f-display); font-weight: 600; font-size: 26px; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.gsr-gcard__price span { font-size: 13px; color: var(--gsr-muted); }
.gsr-gcard__actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.gsr-gcard--locked { box-shadow: none; background: var(--gsr-soft); gap: 10px; }
.gsr-gcard--locked:hover { box-shadow: none; transform: none; }
.gsr-gcard--locked .gsr-gcard__name { font-size: 20px; color: var(--gsr-muted); }
.gsr-lockline { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--gsr-muted); }
.gsr-lockline svg { width: 14px; height: 14px; }

/* ---------- lesson explorer (one grade at a time) ---------- */
.gsr-explorer { background: var(--gsr-surface); border: 1px solid var(--gsr-line); border-radius: var(--gsr-r-lg); box-shadow: var(--gsr-shadow-2); overflow: hidden; scroll-margin-top: 16px; }
.gsr-explorer__head { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; padding: 24px 28px; border-bottom: 1px solid var(--gsr-line); }
.gsr-explorer__title { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.gsr-explorer__body { padding: 24px 28px 28px; display: flex; flex-direction: column; gap: 20px; animation: gsr-fade .25s ease-out; }
@media (max-width: 640px) {
    .gsr-explorer__head { padding: 18px; }
    .gsr-explorer__body { padding: 18px; }
}
@keyframes gsr-fade { from { opacity: 0; } to { opacity: 1; } }
.gsr-pill-ok { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; color: var(--gsr-ok); background: var(--gsr-ok-soft); border-radius: 999px; padding: 6px 12px; white-space: nowrap; }
.gsr-pill-ok svg { width: 14px; height: 14px; }

/* subject tabs */
.gsr-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.gsr-chip { cursor: pointer; display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px 7px 8px; border-radius: 999px; border: 1px solid var(--gsr-line); background: var(--gsr-surface); color: var(--gsr-ink); font-size: 14px; font-weight: 500; transition: border-color .15s; }
.gsr-chip:hover { border-color: #b9bbc2; }
.gsr-chip .gsr-ico-tile { width: 28px; height: 28px; border-radius: 999px; }
.gsr-chip .gsr-ico { width: 15px; height: 15px; }
.gsr-chip__n { font-size: 12px; font-weight: 600; color: var(--gsr-muted); font-variant-numeric: tabular-nums; }
.gsr-chip.m--bg-fill-brand { border-color: transparent; }
.gsr-chip.m--bg-fill-brand .gsr-ico-tile { background: rgba(255, 255, 255, .2) !important; color: #fff !important; }
.gsr-chip.m--bg-fill-brand .gsr-chip__n { color: rgba(255, 255, 255, .85); }
.gsr-chip--static { cursor: default; font-size: 13px; padding: 5px 12px; }
.gsr-chip--static:hover { border-color: var(--gsr-line); }
/* phones: subjects scroll sideways instead of stacking many rows */
@media (max-width: 640px) {
    .gsr-explorer .gsr-chips { flex-wrap: nowrap; overflow-x: auto; margin: 0 -18px; padding: 0 18px 4px; scrollbar-width: none; }
    .gsr-explorer .gsr-chip { flex: 0 0 auto; }
}

/* lessons list */
.gsr-panel { border: 1px solid var(--gsr-line); border-radius: var(--gsr-r); overflow: hidden; background: var(--gsr-surface); }
.gsr-panel__head { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; align-items: center; padding: 16px 20px; background: var(--gsr-soft); border-bottom: 1px solid var(--gsr-line); }
.gsr-panel__title { display: flex; align-items: center; gap: 12px; min-width: 0; }
.gsr-panel__title h3 { font-family: var(--gsr-f-display); font-weight: 600; font-size: 17px; letter-spacing: -.01em; }
.gsr-panel__title span { font-size: 13px; color: var(--gsr-muted); }
.gsr-panel__foot { display: flex; align-items: center; gap: 8px; padding: 14px 20px; font-size: 13px; color: var(--gsr-muted); background: var(--gsr-soft); border-top: 1px solid var(--gsr-line); }
.gsr-panel__foot svg { width: 14px; height: 14px; flex: 0 0 auto; }

.gsr-langs { display: inline-flex; gap: 4px; padding: 4px; background: var(--gsr-chip); border-radius: 999px; }
.gsr-lang { cursor: pointer; font-size: 13px; font-weight: 600; padding: 6px 14px; border: 0; border-radius: 999px; background: transparent; color: var(--gsr-muted); }

.gsr-lesson { display: grid; grid-template-columns: 34px minmax(0, 1fr) auto; gap: 6px 16px; padding: 14px 20px; border-bottom: 1px solid var(--gsr-line); align-items: center; transition: background .15s; }
.gsr-lesson:last-child { border-bottom: 0; }
.gsr-lesson:hover { background: var(--gsr-soft); }
.gsr-lesson__num { display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px; border-radius: 999px; font-size: 13px; font-weight: 600; font-variant-numeric: tabular-nums; }
.gsr-lesson__text { min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.gsr-lesson__title { font-weight: 600; font-size: 15px; overflow-wrap: anywhere; }
.gsr-lesson__desc { color: var(--gsr-muted); font-size: 14px; max-width: 75ch; overflow-wrap: anywhere; }
.gsr-lesson__ctx { font-size: 12px; font-weight: 600; color: var(--gsr-muted); }
.gsr-rtl { direction: rtl; text-align: right; font-family: var(--gsr-f-ar); }

.gsr-go { display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; font-size: 13px; font-weight: 600; border-radius: 999px; padding: 9px 16px; min-height: 40px; }
.gsr-go svg { width: 12px; height: 12px; }
.gsr-locked { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; font-size: 13px; font-weight: 600; color: var(--gsr-muted); border: 1px solid var(--gsr-line); border-radius: 999px; padding: 9px 14px; background: var(--gsr-surface); }
.gsr-locked:hover { color: var(--gsr-ink); border-color: #b9bbc2; }
.gsr-locked svg { width: 12px; height: 12px; }
.gsr-unavailable { font-size: 13px; color: var(--gsr-muted); white-space: nowrap; }
@media (max-width: 640px) {
    .gsr-lesson { grid-template-columns: 30px minmax(0, 1fr); padding: 14px 16px; }
    .gsr-lesson .gsr-go, .gsr-lesson .gsr-locked, .gsr-lesson .gsr-unavailable { grid-column: 2; justify-self: start; }
}

.gsr-hint { padding: 18px 20px; background: var(--gsr-soft); border: 1px dashed var(--gsr-line); border-radius: var(--gsr-r); font-size: 14px; color: var(--gsr-muted); }

/* red unlock bar at the bottom of the explorer */
.gsr-unlock { display: flex; flex-wrap: wrap; gap: 16px 24px; align-items: center; justify-content: space-between; padding: 24px 28px; border-radius: var(--gsr-r); }
.gsr-unlock .gsr-rings { width: 420px; right: -60px; top: -150px; }
.gsr-unlock__text { display: flex; flex-direction: column; gap: 4px; }
.gsr-unlock__text b { font-family: var(--gsr-f-display); font-weight: 600; font-size: 20px; letter-spacing: -.015em; }
.gsr-unlock__text span { font-size: 14px; color: var(--gsr-on-red-2); }

/* ---------- buttons ---------- */
.gsr-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font-size: 15px; font-weight: 600; padding: 12px 22px; border-radius: 999px; min-height: 46px; border: 1px solid transparent; cursor: pointer; text-align: center; transition: filter .15s, background .15s; }
.gsr-btn:hover { filter: brightness(.93); }
.gsr-btn svg { width: 14px; height: 14px; }
.gsr-btn--sm { font-size: 14px; padding: 9px 16px; min-height: 40px; }
.gsr-btn--big { font-size: 16px; padding: 15px 28px; min-height: 54px; }
.gsr-btn--block { width: 100%; }
.gsr-btn--secondary { background: var(--gsr-surface); color: var(--gsr-ink); border-color: var(--gsr-line); }
.gsr-btn--secondary:hover { filter: none; background: var(--gsr-chip); color: var(--gsr-ink); }
/* on red: white button (text gets the brand colour from m--font-brand) and white outline button */
.gsr-btn--white { background: #fff; box-shadow: 0 6px 18px rgba(0, 0, 0, .15); }
.gsr-btn--white:hover { filter: none; background: #f6f6f8; }
.gsr-btn--outline-white { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .55); }
.gsr-btn--outline-white:hover { filter: none; background: rgba(255, 255, 255, .12); color: #fff; }
.gsr-btn[disabled] { opacity: .55; cursor: not-allowed; filter: none; }

/* ---------- banners ---------- */
.gsr-banner { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; justify-content: space-between; padding: 18px 22px; border-radius: var(--gsr-r); }
.gsr-banner b { color: var(--gsr-ink); }
.gsr-alert { padding: 12px 16px; border-radius: var(--gsr-r-sm); background: var(--gsr-error-soft); color: var(--gsr-error); font-size: 14px; }

/* ---------- step bar ---------- */
.gsr-stepbar { display: flex; flex-wrap: wrap; gap: 10px 14px; align-items: center; }
.gsr-stepbar__item { display: flex; align-items: center; gap: 10px; color: var(--gsr-muted); font-size: 14px; font-weight: 500; }
.gsr-stepbar__item--current { color: var(--gsr-ink); font-weight: 600; }
.gsr-stepbar__line { width: 40px; height: 2px; border-radius: 2px; background: var(--gsr-line); }
.gsr-dot { display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px; border-radius: 999px; font-size: 13px; font-weight: 600; border: 1px solid var(--gsr-line); background: var(--gsr-surface); color: var(--gsr-muted); }
.gsr-dot svg { width: 14px; height: 14px; }
.gsr-dot--done { border-color: transparent; background: var(--gsr-ok-soft); color: var(--gsr-ok); }
.gsr-dot.m--bg-fill-brand { border-color: transparent; box-shadow: 0 4px 10px rgba(0, 0, 0, .12); }

/* ---------- checkout card (sign-up) ---------- */
.gsr-checkout { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); background: var(--gsr-surface); border-radius: var(--gsr-r-lg); box-shadow: var(--gsr-shadow-2); overflow: hidden; }
.gsr-checkout__form { padding: 40px; display: flex; flex-direction: column; gap: 20px; min-width: 0; }
.gsr-checkout__order { padding: 30px 30px 28px; display: flex; flex-direction: column; gap: 16px; }
.gsr-checkout__order .gsr-rings { width: 560px; right: -260px; bottom: -200px; }
@media (max-width: 900px) {
    .gsr-checkout { grid-template-columns: minmax(0, 1fr); }
    .gsr-checkout__order { order: -1; padding: 22px 22px 20px; gap: 14px; }
    .gsr-checkout__form { padding: 28px 24px; }
}
.gsr-order__top { display: flex; justify-content: space-between; align-items: center; gap: 12px; font-size: 14px; color: var(--gsr-on-red-2); }
.gsr-order__top a { color: #fff; font-weight: 600; border-bottom: 1px solid rgba(255, 255, 255, .5); }
.gsr-order__name { font-family: var(--gsr-f-display); font-weight: 600; font-size: 30px; letter-spacing: -.025em; line-height: 1.1; margin-bottom: 2px; }
/* subjects sit in two columns when there is room, one when the panel is narrow */
.gsr-order__subjects { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 2px 20px; }
.gsr-order__subjects li { display: flex; align-items: center; gap: 10px; padding: 4px 0; font-size: 14px; min-width: 0; }
.gsr-order__subjects li span:last-child { margin-left: auto; color: var(--gsr-on-red-2); font-variant-numeric: tabular-nums; }
.gsr-order__subjects .gsr-ico-tile { width: 26px; height: 26px; border-radius: 8px; background: rgba(255, 255, 255, .16); color: #fff; }
.gsr-order__subjects .gsr-ico { width: 15px; height: 15px; }
.gsr-order__total { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding-top: 14px; border-top: 1px solid var(--gsr-on-red-3); }
.gsr-order__total b { font-family: var(--gsr-f-display); font-weight: 600; font-size: 30px; letter-spacing: -.025em; font-variant-numeric: tabular-nums; }
.gsr-order .gsr-ticks { flex-direction: column; gap: 5px; font-size: 13px; }

/* ---------- forms ---------- */
.gsr-fields-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
@media (max-width: 720px) { .gsr-fields-3 { grid-template-columns: minmax(0, 1fr); } }
.gsr-field { display: flex; flex-direction: column; gap: 7px; min-width: 0; }
.gsr-field label { font-size: 14px; font-weight: 600; margin: 0; }
.gsr-field label span { font-weight: 400; color: var(--gsr-muted); }
.gsr-input { font: inherit; font-size: 15px; padding: 12px 14px; border: 1px solid var(--gsr-line); border-radius: var(--gsr-r-sm); background: var(--gsr-soft); color: var(--gsr-ink); min-width: 0; width: 100%; min-height: 50px; transition: border-color .15s, background .15s; }
.gsr-input:hover { border-color: #b9bbc2; }
.gsr-input:focus { background: var(--gsr-surface); border-color: var(--gsr-ink); outline: none; box-shadow: 0 0 0 3px rgba(28, 29, 34, .08); }
.gsr-input.input-validation-error { border-color: var(--gsr-error); }
.gsr-help { font-size: 13px; color: var(--gsr-muted); }
.gsr .field-validation-error { font-size: 13px; color: var(--gsr-error); }
.gsr .validation-summary-errors ul { padding: 12px 16px; border-radius: var(--gsr-r-sm); background: var(--gsr-error-soft); color: var(--gsr-error); font-size: 14px; }
.gsr-pw { display: flex; gap: 8px; }
.gsr-pw .gsr-input { flex: 1 1 auto; }
.gsr-pw button { padding: 0 18px; min-height: 50px; border: 1px solid var(--gsr-line); background: var(--gsr-surface); color: var(--gsr-ink); border-radius: var(--gsr-r-sm); cursor: pointer; font-size: 13px; font-weight: 600; }
.gsr-pw button:hover { background: var(--gsr-chip); }
.gsr-rules { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 13px; margin-top: 2px; }
.gsr-rule { display: inline-flex; align-items: center; gap: 6px; color: var(--gsr-muted); }
.gsr-rule svg { width: 14px; height: 14px; }
.gsr-rule .gsr-rule__on { display: none; }
.gsr-rule.is-met { color: var(--gsr-ok); }
.gsr-rule.is-met .gsr-rule__on { display: inline; }
.gsr-rule.is-met .gsr-rule__off { display: none; }
.gsr-check { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; cursor: pointer; margin: 0; font-weight: 400; }
.gsr-check input { width: 18px; height: 18px; margin: 2px 0 0; flex: 0 0 auto; }
.gsr-secure { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--gsr-muted); justify-content: center; }
.gsr-secure svg { width: 14px; height: 14px; }

/* ---------- small pages (finish, setup) ---------- */
.gsr-card { width: 100%; max-width: 660px; background: var(--gsr-surface); border-radius: var(--gsr-r-lg); box-shadow: var(--gsr-shadow-2); overflow: hidden; }
.gsr-card__head { padding: 32px 36px; display: flex; flex-direction: column; gap: 10px; }
.gsr-card__head .gsr-rings { width: 460px; right: -170px; top: -170px; }
.gsr-card__head p { color: var(--gsr-on-red-2); max-width: 52ch; }
.gsr-card__body { padding: 28px 36px 32px; display: flex; flex-direction: column; gap: 22px; }
@media (max-width: 640px) {
    .gsr-card__head { padding: 24px 22px; }
    .gsr-card__body { padding: 22px; }
}
.gsr-orderline { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding: 18px 20px; border: 1px solid var(--gsr-line); border-radius: var(--gsr-r); background: var(--gsr-soft); }
.gsr-orderline__name { display: flex; flex-direction: column; gap: 2px; }
.gsr-orderline__name > b { font-family: var(--gsr-f-display); font-weight: 600; font-size: 20px; letter-spacing: -.01em; }
.gsr-orderline > b { font-family: var(--gsr-f-display); font-weight: 600; font-size: 26px; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.gsr-actions { display: flex; flex-wrap: wrap; gap: 10px; }
/* student library: the lesson explorer rides up over the red hero */
.gsr-page--lift { margin-top: -56px; position: relative; }
.gsr-actions > * { flex: 1 1 220px; }

/* ---------- setup progress ---------- */
.gsr-done-icon { width: 52px; height: 52px; flex: 0 0 52px; border-radius: 999px; background: #fff; display: flex; align-items: center; justify-content: center; box-shadow: 0 6px 18px rgba(0, 0, 0, .15); }
.gsr-done-icon svg { width: 26px; height: 26px; }
.gsr-head-row { display: flex; gap: 18px; align-items: center; }
.gsr-head-row .gsr-h1--card { color: #fff; }
.gsr-progress { height: 10px; border-radius: 999px; background: var(--gsr-chip); overflow: hidden; }
.gsr-progress__bar { height: 100%; width: 0; border-radius: 999px; transition: width .5s; }
.gsr-progress-row { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; font-size: 14px; margin-bottom: 10px; }
.gsr-progress-row span { font-weight: 600; color: var(--gsr-muted); font-variant-numeric: tabular-nums; }
.gsr-progress-row .gsr-pct { font-family: var(--gsr-f-display); font-size: 24px; font-weight: 600; line-height: 1; letter-spacing: -.02em; color: var(--gsr-ink); }
.gsr-progress-foot { display: flex; justify-content: space-between; gap: 12px; margin-top: 8px; font-size: 13px; color: var(--gsr-muted); font-variant-numeric: tabular-nums; }

/* Setup page: "While you wait" slides under the card */
.gsr-promo { width: 100%; max-width: 660px; background: var(--gsr-surface); border-radius: var(--gsr-r); box-shadow: var(--gsr-shadow-1); padding: 18px 24px 22px; display: flex; flex-direction: column; gap: 14px; }
.gsr-promo__top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.gsr-promo__label { font-size: 13px; font-weight: 600; color: var(--gsr-muted); }
.gsr-promo__dots { display: flex; gap: 2px; }
.gsr-promo__dot { width: 24px; height: 24px; padding: 0; border: 0; background: none; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; }
.gsr-promo__dot::before { content: ""; width: 8px; height: 8px; border-radius: 999px; background: var(--gsr-line); transition: width .25s, background .25s; }
.gsr-promo__dot[aria-current="true"]::before { width: 20px; background: var(--gsr-ink); }
.gsr-promo__slide { display: flex; gap: 16px; align-items: flex-start; min-height: 64px; animation: gsr-fade .45s ease; }
.gsr-promo__slide[hidden] { display: none; }
.gsr-promo__slide b { display: block; font-family: var(--gsr-f-display); font-weight: 600; font-size: 16px; letter-spacing: -.01em; margin-bottom: 4px; }
.gsr-promo__slide p { font-size: 14px; color: var(--gsr-muted); max-width: 54ch; }
@media (max-width: 640px) { .gsr-promo { padding: 16px 18px 18px; } }
.gsr-items { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 16px; }
@media (max-width: 560px) { .gsr-items { grid-template-columns: minmax(0, 1fr); } }
.gsr-item { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 14px; border: 1px solid var(--gsr-line); border-radius: var(--gsr-r-sm); font-size: 14px; }
.gsr-state { font-size: 12px; font-weight: 600; border-radius: 999px; padding: 3px 10px; white-space: nowrap; }
.gsr-state--Ready { color: var(--gsr-ok); background: var(--gsr-ok-soft); }
.gsr-state--Waiting { color: var(--gsr-muted); background: var(--gsr-chip); }
.gsr-state--Failed { color: var(--gsr-error); background: var(--gsr-error-soft); }
.gsr-spinner { display: inline-block; width: 26px; height: 26px; flex: 0 0 26px; border-radius: 999px; border: 3px solid rgba(255, 255, 255, .35); border-top-color: #fff; animation: gsr-spin .8s linear infinite; }
@keyframes gsr-spin { to { transform: rotate(360deg); } }

@media (prefers-reduced-motion: reduce) {
    .gsr *, .gsr *::before, .gsr *::after { animation: none !important; transition: none !important; }
}

/* Student library: switch between the grades they own */
.gsr-gradeswitch { display: flex; flex-wrap: wrap; gap: 8px; }
.gsr-gradeswitch__item { padding: 7px 16px; border-radius: 999px; font-size: 14px; font-weight: 600; color: var(--gsr-on-red); background: var(--gsr-on-red-3); text-decoration: none; transition: background .15s; }
.gsr-gradeswitch__item:not(.is-current):hover { color: var(--gsr-on-red); background: rgba(255, 255, 255, .28); }
.gsr-gradeswitch__item.is-current { background: var(--gsr-on-red); }
