/* ==========================================================================
   GBM Studies — Prototype 01 "Emerald Charter" — learner account
   login.html (log in / create account / reset) and dashboard.html (My learning).
   Builds on tokens.css + site.css + course.css (boot gating, .rv reveals,
   buttons, certificate paper, toast). Animates transform/opacity only.
   ========================================================================== */

.acct-page .c-toast { bottom: 24px; }
.nav__login[aria-current="page"] { opacity: 1; color: var(--gold-400); }
.nav.is-light .nav__login[aria-current="page"] { color: var(--gold-700); }
.nav__me { display: inline-flex; align-items: center; gap: .55rem; font-size: .88rem; }
.nav__me b { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: var(--grad-gold); color: var(--emerald-950); font-size: .74rem; font-weight: 600; letter-spacing: .02em; }
.a-sr { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.acct-page :focus-visible { outline: 2px solid var(--gold-500); outline-offset: 3px; }

/* Hairline rings used as quiet ornament on dark panels */
.a-rings { position: absolute; z-index: -1; width: 560px; aspect-ratio: 1; border-radius: 50%; border: 1px solid rgba(230,211,166,.08); pointer-events: none; }
.a-rings::before, .a-rings::after { content: ""; position: absolute; border-radius: 50%; border: 1px solid rgba(230,211,166,.06); }
.a-rings::before { inset: 70px; }
.a-rings::after { inset: 140px; border-style: dashed; border-color: rgba(230,211,166,.09); }

/* ==========================================================================
   LOG IN / CREATE ACCOUNT
   ========================================================================== */
.auth { display: grid; grid-template-columns: 46fr 54fr; min-height: 100vh; min-height: 100svh; }

/* ---- brand panel (dark) ---- */
.auth__brand { position: relative; overflow: hidden; isolation: isolate; display: flex; flex-direction: column; padding: 8.5rem clamp(2rem, 4.5vw, 5rem) 3.5rem; background: var(--emerald-950); color: var(--ivory-50); }
.auth__brand::before { content: ""; position: absolute; z-index: -2; width: 1000px; height: 1000px; left: -420px; top: -360px; border-radius: 50%; background: radial-gradient(closest-side, rgba(27,90,64,.55), transparent 70%); }
.auth__brand .a-rings { right: -230px; bottom: -200px; }
.auth__title { margin-top: 1.1rem; max-width: 13ch; font-family: var(--font-display); font-weight: 400; font-size: clamp(2.5rem, 1.5rem + 2.6vw, 4rem); line-height: 1.02; letter-spacing: -.015em; }
.auth__title em { font-style: italic; color: var(--gold-300); }
.auth__promise { margin-top: 1.1rem; max-width: 40ch; color: rgba(246,238,219,.72); }
.auth__cert { margin-top: 2.8rem; width: min(430px, 100%); transform: perspective(1400px) rotateX(7deg) rotate(-2.5deg); transform-origin: 50% 100%; }
.auth__cert .c-cert__paper { box-shadow: 0 50px 90px -40px rgba(0,0,0,.85), 0 0 0 1px rgba(230,211,166,.18); animation: aFloat 7s var(--ease-in-out) infinite alternate; }
@keyframes aFloat { from { transform: translate3d(0, 0, 0); } to { transform: translate3d(0, -8px, 0); } }
.auth__cert-cap { display: flex; align-items: center; gap: .5rem; margin-top: 1.1rem; font-family: var(--font-mono); font-size: .68rem; letter-spacing: .12em; text-transform: uppercase; color: rgba(246,238,219,.5); }
.auth__cert-cap i { color: var(--gold-400); }
.auth__quote { margin-top: auto; padding-top: 3rem; max-width: 44ch; }
.auth__quote blockquote { margin: 0; font-family: var(--font-display); font-size: 1.4rem; line-height: 1.3; color: var(--ivory-50); }
.auth__quote blockquote::before { content: "\201C"; display: block; height: .55em; font-size: 2.6em; line-height: 1; color: var(--gold-400); }
.auth__quote figcaption { display: flex; align-items: center; gap: .75rem; margin-top: 1rem; font-size: .86rem; color: rgba(246,238,219,.62); }
.auth__quote figcaption b { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; font-weight: 500; font-size: .8rem; color: var(--emerald-950); background: var(--grad-gold); }
.auth__quote figcaption span b, .auth__quote figcaption strong { color: var(--ivory-50); font-weight: 500; }
.auth__trust { display: flex; flex-wrap: wrap; gap: .5rem 1.4rem; margin-top: 1.6rem; padding-top: 1.4rem; border-top: 1px solid var(--line-dark); font-size: .8rem; color: rgba(246,238,219,.62); }
.auth__trust i { margin-right: .4rem; color: var(--gold-400); }

/* ---- form panel (light) ---- */
.auth__panel { display: flex; align-items: center; justify-content: center; padding: 8.5rem clamp(1.25rem, 4vw, 4rem) 4.5rem; background: var(--ivory-50); }
.auth__box { width: min(440px, 100%); }
.auth__signed { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1.6rem; padding: .7rem .8rem .7rem 1rem; border-radius: var(--radius-md); background: #fff; box-shadow: inset 0 0 0 1px var(--line-light); font-size: .86rem; color: var(--ink-700); }
.auth__signed[hidden] { display: none; }
.auth__signed a { flex: none; font-weight: 500; color: var(--emerald-700); }
.auth__signed a i { margin-left: .3rem; font-size: .8em; }
.auth__head h1 { font-family: var(--font-display); font-weight: 400; font-size: clamp(2.3rem, 1.8rem + 1.5vw, 3.1rem); line-height: 1.04; letter-spacing: -.01em; }
.auth__head h1 em { font-style: italic; color: var(--emerald-600); }
.auth__head p { margin-top: .6rem; color: var(--ink-500); }

.auth__tabs { position: relative; display: grid; grid-template-columns: 1fr 1fr; margin: 1.8rem 0 1.4rem; padding: 4px; border-radius: var(--radius-pill); background: var(--ivory-100); box-shadow: inset 0 0 0 1px var(--line-light); }
.auth__tabs button { position: relative; z-index: 1; height: 44px; border-radius: var(--radius-pill); font-size: .9rem; font-weight: 500; color: var(--ink-500); transition: color .4s var(--ease-out); }
.auth__tabs button[aria-selected="true"] { color: var(--ivory-50); }
.auth__thumb { position: absolute; z-index: 0; top: 4px; left: 4px; width: calc(50% - 4px); height: calc(100% - 8px); border-radius: var(--radius-pill); background: var(--emerald-900); box-shadow: var(--shadow-sm); transition: transform .55s var(--ease-out); }
.auth__tabs[data-on="signup"] .auth__thumb { transform: translate3d(100%, 0, 0); }

.auth__google { width: 100%; height: 52px; display: flex; align-items: center; justify-content: center; gap: .7rem; border-radius: var(--radius-sm); background: #fff; box-shadow: inset 0 0 0 1px var(--line-light); font-weight: 500; font-size: .95rem; transition: box-shadow .3s; }
.auth__google:hover { box-shadow: inset 0 0 0 1px var(--emerald-500), var(--shadow-sm); }
.auth__google i { font-size: 1.05rem; color: var(--emerald-800); }
.auth__hint { margin-top: .6rem; font-size: .8rem; color: var(--gold-700); }
.auth__hint:empty { display: none; }
.auth__or { display: flex; align-items: center; gap: .9rem; margin: 1.4rem 0; font-family: var(--font-mono); font-size: .68rem; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-300); }
.auth__or::before, .auth__or::after { content: ""; flex: 1; height: 1px; background: var(--line-light); }

.auth__view[hidden] { display: none; }

/* ---- fields ---- */
.a-field { display: grid; gap: .45rem; margin-bottom: 1.1rem; min-width: 0; }
.a-field label { font-size: .88rem; font-weight: 500; color: var(--ink-900); }
.a-field label small { margin-left: .3rem; font-weight: 400; color: var(--ink-500); }
.a-input { position: relative; }
.a-input input { width: 100%; height: 52px; padding: 0 1rem; border: 0; border-radius: var(--radius-sm); background: #fff; color: var(--ink-900); font: inherit; font-size: 1rem; outline: none; box-shadow: inset 0 0 0 1px var(--line-light); transition: box-shadow .25s; }
.a-input input::placeholder { color: var(--ink-300); }
.a-input input:focus { box-shadow: inset 0 0 0 1.5px var(--emerald-600), 0 0 0 4px rgba(35,112,79,.12); }
.a-input input[aria-invalid="true"] { box-shadow: inset 0 0 0 1.5px #c0543f; }
.a-input--pw input { padding-right: 3.3rem; }
.a-eye { position: absolute; top: 6px; right: 6px; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; color: var(--ink-500); transition: background-color .25s, color .25s; }
.a-eye:hover { background: var(--ivory-100); color: var(--emerald-800); }
.a-err { font-size: .8rem; color: #b04a36; }
.a-err:empty { display: none; }
.a-strength { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; margin-top: .15rem; }
.a-strength span { position: relative; height: 3px; overflow: hidden; border-radius: 2px; background: var(--line-light); }
.a-strength span::after { content: ""; position: absolute; inset: 0; background: var(--emerald-600); transform: scaleX(0); transform-origin: left; transition: transform .45s var(--ease-out); }
.a-strength span.is-on::after { transform: scaleX(1); }
.a-strength[data-level="1"] span::after { background: #c0543f; }
.a-strength[data-level="2"] span::after { background: var(--gold-600); }
.a-strength-label { font-size: .78rem; color: var(--ink-500); }
.a-row { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: .6rem 1rem; margin: .2rem 0 1.5rem; font-size: .88rem; }
.a-row .a-err { flex-basis: 100%; }
.auth__reset-form { margin-top: 1.6rem; }
.a-check { display: inline-flex; align-items: flex-start; gap: .6rem; cursor: pointer; color: var(--ink-700); line-height: 1.45; }
.a-check input { flex: none; width: 18px; height: 18px; margin: .1rem 0 0; accent-color: var(--emerald-700); cursor: pointer; }
.a-link { color: var(--emerald-700); font-weight: 500; background-image: linear-gradient(currentColor, currentColor); background-size: 100% 1px; background-position: 0 100%; background-repeat: no-repeat; }
.a-link:hover { color: var(--emerald-900); }
.acct-page .btn.is-busy { pointer-events: none; }
.acct-page .btn.is-busy i { animation: aSpin .8s linear infinite; }
@keyframes aSpin { to { transform: rotate(360deg); } }
.auth__switch { margin-top: 1.4rem; text-align: center; font-size: .9rem; color: var(--ink-500); }
.auth__switch button { color: var(--emerald-700); font-weight: 500; }
.auth__proto { display: flex; gap: .6rem; margin-top: 1.8rem; padding: .85rem 1rem; border-radius: var(--radius-sm); background: rgba(197,161,90,.12); font-size: .8rem; line-height: 1.5; color: var(--gold-700); }
.auth__proto i { margin-top: .2rem; }

/* ---- reset + sent ---- */
.auth__back { display: inline-flex; align-items: center; gap: .5rem; margin-bottom: 1.4rem; font-size: .88rem; color: var(--ink-500); transition: color .25s; }
.auth__back:hover { color: var(--emerald-800); }
.auth__sent { text-align: center; }
.auth__sent-icon { position: relative; width: 76px; height: 76px; margin: 0 auto 1.4rem; border-radius: 50%; display: grid; place-items: center; font-size: 1.6rem; color: var(--gold-300); background: var(--grad-emerald); box-shadow: var(--shadow-md); }
.auth__sent-icon::after { content: ""; position: absolute; inset: -8px; border-radius: 50%; border: 1px solid rgba(197,161,90,.4); }
.auth__sent h1 { font-family: var(--font-display); font-weight: 400; font-size: clamp(2rem, 1.7rem + 1vw, 2.6rem); line-height: 1.08; }
.auth__sent p { margin: .8rem auto 0; max-width: 34ch; color: var(--ink-500); }
.auth__sent p b { color: var(--ink-900); font-weight: 500; word-break: break-all; }
.auth__sent .btn { margin-top: 1.8rem; }
.auth__resend { display: block; margin: 1rem auto 0; font-size: .86rem; color: var(--emerald-700); font-weight: 500; }
.auth__resend:disabled { color: var(--ink-300); cursor: default; }

/* ==========================================================================
   DASHBOARD — My learning
   ========================================================================== */
.dash-hero { position: relative; overflow: hidden; isolation: isolate; padding: 8.5rem 0 4.5rem; background: var(--emerald-950); color: var(--ivory-50); }
.dash-hero::before { content: ""; position: absolute; z-index: -2; width: 1100px; height: 900px; right: -300px; top: -420px; border-radius: 50%; background: radial-gradient(closest-side, rgba(27,90,64,.6), transparent 70%); }
.dash-hero .a-rings { left: -260px; top: 60px; }
.dash-hero__top { display: flex; justify-content: space-between; align-items: flex-end; flex-wrap: wrap; gap: 2rem 3rem; }
.dash-hello { margin-top: 1rem; font-family: var(--font-display); font-weight: 400; font-size: clamp(2.6rem, 1.6rem + 3.2vw, 4.6rem); line-height: 1.02; letter-spacing: -.015em; }
.dash-hello em { font-style: italic; color: var(--gold-300); }
.dash-sub { margin-top: 1rem; max-width: 50ch; font-size: var(--fs-lead); color: rgba(246,238,219,.72); }
.dash-sub b { font-weight: 500; color: var(--ivory-50); }
.dash-kpis { display: grid; grid-template-columns: repeat(3, auto); gap: 1px; border-radius: var(--radius-md); overflow: hidden; background: var(--line-dark); box-shadow: inset 0 0 0 1px var(--line-dark); }
.dash-kpis li { padding: 1rem 1.5rem; background: rgba(6,28,20,.88); }
.dash-kpis b { display: block; font-family: var(--font-display); font-weight: 400; font-size: 2.1rem; line-height: 1; color: var(--gold-300); }
.dash-kpis span { font-size: .8rem; color: rgba(246,238,219,.62); }
.dash-tabs { display: flex; gap: 2rem; margin-top: 2.8rem; border-bottom: 1px solid var(--line-dark); overflow-x: auto; scrollbar-width: none; }
.dash-tabs::-webkit-scrollbar { display: none; }
.dash-tabs a { position: relative; flex: none; padding: .95rem 0; font-size: .9rem; color: rgba(246,238,219,.62); transition: color .3s; }
.dash-tabs a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--gold-400); transform: scaleX(0); transform-origin: left; transition: transform .45s var(--ease-out); }
.dash-tabs a:hover, .dash-tabs a.is-on { color: var(--ivory-50); }
.dash-tabs a.is-on::after { transform: scaleX(1); }

/* continue-learning card: straddles the dark hero and the light section */
.dash-resume { position: relative; z-index: 2; display: grid; grid-template-columns: 300px 1fr auto; align-items: center; gap: 2.2rem; margin: 2.6rem 0 0; padding: 1.1rem 2.4rem 1.1rem 1.1rem; border-radius: var(--radius-xl); background: linear-gradient(135deg, #0e3324 0%, #061c14 70%); color: var(--ivory-50); box-shadow: 0 50px 90px -40px rgba(3,17,11,.75), inset 0 0 0 1px var(--line-dark); }
.dash-resume__media { position: relative; aspect-ratio: 16 / 11; border-radius: var(--radius-lg); overflow: hidden; }
.dash-resume__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease-out); }
.dash-resume:hover .dash-resume__media img { transform: scale(1.05); }
.dash-resume__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(3,17,11,.55), transparent 60%); }
.dash-resume__media span { position: absolute; left: .9rem; bottom: .8rem; z-index: 1; display: inline-flex; align-items: center; gap: .45rem; font-size: .78rem; color: var(--ivory-50); }
.dash-resume__media span i { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font-size: .62rem; background: var(--grad-gold); color: var(--emerald-950); }
.dash-label { font-family: var(--font-mono); font-size: var(--fs-label); letter-spacing: var(--tracking-label); text-transform: uppercase; color: var(--gold-400); }
.dash-resume h2 { margin-top: .6rem; font-family: var(--font-display); font-weight: 400; font-size: clamp(1.7rem, 1.3rem + 1.1vw, 2.4rem); line-height: 1.08; }
.dash-resume__lesson { margin-top: .7rem; color: rgba(246,238,219,.78); }
.dash-resume__lesson i { margin-right: .45rem; color: var(--gold-400); }
.dash-resume__meta { display: flex; flex-wrap: wrap; gap: .4rem 1.2rem; margin-top: .5rem; font-size: .84rem; color: rgba(246,238,219,.56); }
.dash-resume__ctas { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem 1.4rem; margin-top: 1.5rem; }
.dash-resume__ctas .a-link { color: var(--gold-300); }
.dash-ring { position: relative; width: 132px; aspect-ratio: 1; }
.dash-ring svg { width: 100%; height: 100%; transform: rotate(-90deg); overflow: visible; }
.dash-ring circle { fill: none; stroke-width: 5; }
.dash-ring .t { stroke: rgba(230,211,166,.12); }
.dash-ring .v { stroke: url(#ringGold); stroke-linecap: round; stroke-dasharray: 100; }
.dash-ring div { position: absolute; inset: 0; display: grid; place-items: center; align-content: center; text-align: center; }
.dash-ring b { font-family: var(--font-display); font-weight: 400; font-size: 2.2rem; line-height: 1; color: var(--ivory-50); }
.dash-ring small { margin-top: .2rem; font-family: var(--font-mono); font-size: .6rem; letter-spacing: .14em; text-transform: uppercase; color: rgba(246,238,219,.55); }

/* ---- light working area ---- */
.dash-main { padding: var(--section-y) 0; background: var(--ivory-50); }
.dash-grid { display: grid; grid-template-columns: minmax(0, 1fr) 350px; gap: 2.6rem; align-items: start; }
.dash-h2 { font-family: var(--font-display); font-weight: 400; font-size: clamp(2rem, 1.4rem + 1.8vw, 3rem); line-height: 1.05; letter-spacing: -.01em; }
.dash-h2 em { font-style: italic; color: var(--emerald-600); }
[data-theme="dark"] .dash-h2 em { color: var(--gold-300); }
.dash-head { display: flex; justify-content: space-between; align-items: flex-end; flex-wrap: wrap; gap: 1.2rem; margin-bottom: 1.8rem; }
.dash-head .eyebrow { margin-bottom: .8rem; }
.dash-filter { display: flex; gap: 4px; padding: 4px; border-radius: var(--radius-pill); background: var(--ivory-100); box-shadow: inset 0 0 0 1px var(--line-light); }
.dash-filter button { height: 38px; padding: 0 1rem; border-radius: var(--radius-pill); font-size: .84rem; font-weight: 500; color: var(--ink-500); transition: background-color .3s, color .3s; }
.dash-filter button small { margin-left: .3rem; font-family: var(--font-mono); font-size: .72rem; opacity: .7; }
.dash-filter button[aria-pressed="true"] { background: var(--emerald-900); color: var(--ivory-50); }

.dash-courses { display: grid; gap: 1rem; }
.dash-course { display: grid; grid-template-columns: 210px minmax(0, 1fr); gap: 1.5rem; padding: 1rem 1.6rem 1rem 1rem; border-radius: var(--radius-lg); background: #fff; box-shadow: var(--shadow-sm), inset 0 0 0 1px var(--line-light); transition: transform .5s var(--ease-out), box-shadow .5s var(--ease-out); }
.dash-course:hover { transform: translate3d(0, -3px, 0); box-shadow: var(--shadow-md), inset 0 0 0 1px var(--line-light); }
.dash-course[hidden] { display: none; }
.dash-course__media { position: relative; aspect-ratio: 16 / 11; border-radius: var(--radius-md); overflow: hidden; }
.dash-course__media img { width: 100%; height: 100%; object-fit: cover; }
.dash-course__done { position: absolute; top: .6rem; left: .6rem; display: inline-flex; align-items: center; gap: .35rem; padding: .25rem .6rem; border-radius: var(--radius-pill); font-size: .7rem; font-weight: 600; background: var(--grad-gold); color: var(--emerald-950); }
.dash-course__body { display: flex; flex-direction: column; min-width: 0; padding-top: .3rem; }
.dash-course__cats { font-family: var(--font-mono); font-size: .66rem; letter-spacing: .12em; text-transform: uppercase; color: var(--gold-700); }
.dash-course h3 { margin-top: .45rem; font-family: var(--font-display); font-weight: 400; font-size: 1.45rem; line-height: 1.15; }
.dash-course h3 a:hover { color: var(--emerald-700); }
.dash-course__next { margin-top: .45rem; font-size: .88rem; color: var(--ink-500); }
.dash-course__next i { margin-right: .4rem; color: var(--gold-600); }
.dash-bar { position: relative; height: 6px; margin-top: 1.1rem; border-radius: 3px; overflow: hidden; background: var(--sand-200); }
.dash-bar span { position: absolute; inset: 0; border-radius: inherit; background: linear-gradient(90deg, var(--emerald-600), var(--gold-500)); transform: scaleX(var(--v, 0)); transform-origin: left; }
.dash-course__foot { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: .8rem 1rem; margin-top: auto; padding-top: 1rem; font-size: .84rem; color: var(--ink-500); }
.dash-course__foot b { font-weight: 600; color: var(--ink-900); }
.dash-course__acts { display: flex; align-items: center; gap: 1rem; }
.dash-empty { padding: 2rem; border-radius: var(--radius-lg); text-align: center; color: var(--ink-500); box-shadow: inset 0 0 0 1px var(--line-light); }

/* ---- aside cards ---- */
.dash-aside { position: sticky; top: 96px; display: grid; gap: 1rem; }
.dash-card { padding: 1.6rem; border-radius: var(--radius-lg); background: #fff; box-shadow: var(--shadow-sm), inset 0 0 0 1px var(--line-light); }
.dash-card--dark { background: var(--grad-emerald); color: var(--ivory-50); box-shadow: var(--shadow-md); }
.dash-card h3 { font-family: var(--font-display); font-weight: 400; font-size: 1.5rem; line-height: 1.1; }
.dash-card__top { display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.dash-card__icon { flex: none; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: rgba(230,211,166,.12); color: var(--gold-300); }
.dash-card:not(.dash-card--dark) .dash-card__icon { background: var(--emerald-900); color: var(--gold-300); }
.dash-streak { display: flex; align-items: baseline; gap: .5rem; margin-top: 1.2rem; }
.dash-streak b { font-family: var(--font-display); font-weight: 400; font-size: 3.2rem; line-height: .9; color: var(--gold-300); }
.dash-streak span { color: rgba(246,238,219,.7); font-size: .9rem; }
.dash-week { display: grid; grid-template-columns: repeat(7, 1fr); gap: .35rem; margin-top: 1.3rem; }
.dash-week li { display: grid; justify-items: center; gap: .4rem; font-family: var(--font-mono); font-size: .62rem; letter-spacing: .08em; color: rgba(246,238,219,.5); }
.dash-week i { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font-size: .66rem; box-shadow: inset 0 0 0 1px rgba(230,211,166,.2); color: transparent; }
.dash-week li.is-done i { background: var(--gold-400); box-shadow: none; color: var(--emerald-950); }
.dash-week li.is-today i { box-shadow: inset 0 0 0 1.5px var(--gold-300); color: transparent; background: radial-gradient(circle, var(--gold-300) 0 3px, transparent 3.5px); }
.dash-week li.is-today { color: var(--gold-300); }
.dash-goal { margin-top: 1.4rem; padding-top: 1.2rem; border-top: 1px solid var(--line-dark); }
.dash-goal__row { display: flex; justify-content: space-between; align-items: center; gap: .8rem; font-size: .88rem; color: rgba(246,238,219,.78); }
.dash-goal__row b { color: var(--ivory-50); font-weight: 500; }
.dash-goal select { height: 34px; padding: 0 .7rem; border: 0; border-radius: var(--radius-pill); background: rgba(230,211,166,.1); color: var(--ivory-50); font: inherit; font-size: .8rem; box-shadow: inset 0 0 0 1px var(--line-dark); cursor: pointer; }
.dash-goal select option { color: var(--ink-900); }
.dash-goal .dash-bar { background: rgba(230,211,166,.12); margin-top: .8rem; }
.dash-goal .dash-bar span { background: var(--grad-gold); transition: transform .6s var(--ease-out); }
.dash-assess { display: grid; gap: .5rem; margin-top: 1rem; font-size: .88rem; color: var(--ink-500); }
.dash-assess li { display: flex; gap: .6rem; }
.dash-label--ink { color: var(--gold-700); }
.dash-card__title { margin-top: .9rem; }
.dash-assess b { font-weight: 500; color: var(--ink-900); }
.dash-assess i { width: 16px; margin-top: .3rem; color: var(--gold-600); font-size: .8rem; }
.dash-card__acts { display: flex; flex-wrap: wrap; align-items: center; gap: .8rem 1.2rem; margin-top: 1.3rem; font-size: .88rem; }
.dash-card__acts button { font-weight: 500; color: var(--ink-700); }
.dash-card__acts button i { margin-right: .35rem; color: var(--gold-600); }
.dash-help { display: flex; gap: .9rem; align-items: center; font-size: .86rem; color: var(--ink-500); }
.dash-help a { color: var(--emerald-700); font-weight: 500; }

/* ---- certificates (dark) ---- */
.dash-certs { position: relative; overflow: hidden; isolation: isolate; padding: var(--section-y) 0; background: var(--emerald-900); color: var(--ivory-50); scroll-margin-top: 20px; }
.dash-certs .a-rings { right: -200px; top: -140px; }
.dash-certs .dash-head p { max-width: 42ch; color: rgba(246,238,219,.7); }
.dash-cert { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 3rem; align-items: center; padding: 1.6rem 2.6rem 1.6rem 1.6rem; border-radius: var(--radius-xl); background: rgba(3,17,11,.45); box-shadow: inset 0 0 0 1px var(--line-dark); }
.dash-cert .c-cert__paper { box-shadow: 0 40px 80px -36px rgba(0,0,0,.8); }
.dash-cert__info h3 { margin-top: .8rem; font-family: var(--font-display); font-weight: 400; font-size: clamp(1.7rem, 1.3rem + 1vw, 2.3rem); line-height: 1.1; }
.dash-cert__facts { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; margin-top: 1.6rem; border-radius: var(--radius-md); overflow: hidden; background: var(--line-dark); }
.dash-cert__facts div { padding: .85rem 1rem; background: rgba(6,28,20,.9); }
.dash-cert__facts dt { font-family: var(--font-mono); font-size: .62rem; letter-spacing: .12em; text-transform: uppercase; color: rgba(246,238,219,.5); }
.dash-cert__facts dd { margin: .25rem 0 0; font-size: .92rem; color: var(--ivory-50); }
.dash-cert__facts dd.mono { font-family: var(--font-mono); font-size: .86rem; }
.dash-cert__acts { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1.6rem; }
.dash-chip { display: inline-flex; align-items: center; gap: .5rem; height: 42px; padding: 0 1rem; border-radius: var(--radius-pill); font-size: .85rem; font-weight: 500; color: var(--ivory-50); box-shadow: inset 0 0 0 1px var(--line-dark); transition: box-shadow .3s, background-color .3s; }
.dash-chip:hover { box-shadow: inset 0 0 0 1px var(--gold-400); background: rgba(230,211,166,.06); }
.dash-chip i { color: var(--gold-400); }
.dash-locked { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-top: 1rem; }
.dash-lock { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 1.3rem; align-items: center; padding: 1.2rem; border-radius: var(--radius-lg); box-shadow: inset 0 0 0 1px var(--line-dark); }
.dash-lock__paper { position: relative; aspect-ratio: 1.414 / 1; border-radius: 6px; background: linear-gradient(135deg, #fffdf7, #f4ecd8); opacity: .22; }
.dash-lock__paper::before { content: ""; position: absolute; inset: 6px; border: 1px solid var(--gold-500); }
.dash-lock__wrap { position: relative; }
.dash-lock__wrap i { position: absolute; inset: 0; display: grid; place-items: center; color: var(--gold-300); font-size: 1.1rem; }
.dash-lock h4 { font-family: var(--font-display); font-weight: 400; font-size: 1.25rem; line-height: 1.15; }
.dash-lock p { margin-top: .35rem; font-size: .84rem; color: rgba(246,238,219,.62); }
.dash-lock .dash-bar { margin-top: .8rem; height: 4px; background: rgba(230,211,166,.12); }
.dash-lock .dash-bar span { background: var(--grad-gold); }

/* ---- recommended (warm) ---- */
.dash-reco { padding: var(--section-y) 0; background: var(--sand-200); scroll-margin-top: 20px; }
.dash-reco .dash-head p { max-width: 40ch; color: var(--ink-500); }
.dash-reco__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.4rem; }
.dash-pick { position: relative; display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1fr); border-radius: var(--radius-xl); overflow: hidden; background: var(--ivory-50); box-shadow: var(--shadow-sm); transition: transform .6s var(--ease-out), box-shadow .6s var(--ease-out); }
.dash-pick:hover { transform: translate3d(0, -4px, 0); box-shadow: var(--shadow-lg); }
.dash-pick__media { position: relative; min-height: 100%; aspect-ratio: 4 / 5; overflow: hidden; }
.dash-pick__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease-out); }
.dash-pick:hover .dash-pick__media img { transform: scale(1.05); }
.dash-pick__body { display: flex; flex-direction: column; padding: 1.8rem; }
.dash-pick__why { align-self: flex-start; display: inline-flex; align-items: center; gap: .4rem; padding: .3rem .7rem; border-radius: var(--radius-pill); font-size: .72rem; font-weight: 500; color: var(--emerald-800); background: rgba(35,112,79,.1); }
.dash-pick h3 { margin-top: 1rem; font-family: var(--font-display); font-weight: 400; font-size: 1.6rem; line-height: 1.12; }
.dash-pick p { margin-top: .6rem; font-size: .9rem; color: var(--ink-500); }
.dash-pick__foot { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin-top: auto; padding-top: 1.4rem; }
.dash-pick__price b { font-family: var(--font-display); font-weight: 400; font-size: 1.7rem; }
.dash-pick__price s { margin-left: .4rem; font-size: .85rem; color: var(--ink-300); }
.dash-pick__go { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; background: var(--emerald-900); color: var(--gold-300); transition: transform .5s var(--ease-out); }
.dash-pick:hover .dash-pick__go { transform: translate3d(4px, 0, 0); }
.dash-pick > a.dash-pick__cover { position: absolute; inset: 0; z-index: 1; }
.dash-reco__all { margin-top: 2rem; text-align: center; }

/* ---- account + receipts (light) ---- */
.dash-account { padding: var(--section-y) 0; background: var(--ivory-50); scroll-margin-top: 20px; }
.dash-account__grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 1.4rem; align-items: start; }
.dash-profile { display: flex; align-items: center; gap: 1.1rem; }
.dash-avatar { flex: none; width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; font-family: var(--font-display); font-size: 1.6rem; color: var(--emerald-950); background: var(--grad-gold); box-shadow: var(--shadow-gold); }
.dash-profile b { display: block; font-size: 1.05rem; font-weight: 600; }
.dash-profile div span { font-size: .88rem; color: var(--ink-500); word-break: break-all; }
.dash-prefs { display: grid; gap: .2rem; margin-top: 1.5rem; padding-top: 1rem; border-top: 1px solid var(--line-light); }
.dash-pref { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: .55rem 0; font-size: .9rem; }
.dash-pref small { display: block; font-size: .78rem; color: var(--ink-500); }
.a-switch { position: relative; flex: none; width: 46px; height: 26px; border-radius: var(--radius-pill); background: var(--sand-300); transition: background-color .35s; }
.a-switch::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: var(--shadow-sm); transition: transform .4s var(--ease-out); }
.a-switch[aria-checked="true"] { background: var(--emerald-700); }
.a-switch[aria-checked="true"]::after { transform: translate3d(20px, 0, 0); }
.dash-account__acts { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1.5rem; }
.dash-receipts { margin-top: 1.2rem; }
.dash-receipt { display: grid; grid-template-columns: minmax(0, 1.6fr) .9fr .8fr .6fr auto; align-items: center; gap: 1rem; padding: .95rem 0; border-top: 1px solid var(--line-light); font-size: .88rem; }
.dash-receipt--head { padding: 0 0 .7rem; border-top: 0; font-family: var(--font-mono); font-size: .64rem; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-300); }
.dash-receipt b { display: block; font-weight: 500; color: var(--ink-900); }
.dash-receipt small { font-family: var(--font-mono); font-size: .74rem; color: var(--ink-500); }
.dash-receipt__amt { font-weight: 600; }
.dash-receipt :is(button, a[href]) { display: inline-flex; align-items: center; gap: .4rem; height: 36px; padding: 0 .9rem; border-radius: var(--radius-pill); font-size: .8rem; font-weight: 500; color: var(--emerald-800); box-shadow: inset 0 0 0 1px var(--line-light); transition: box-shadow .3s; }
.dash-receipt :is(button, a[href]):hover { box-shadow: inset 0 0 0 1px var(--emerald-500); }
.dash-receipts__note { margin-top: 1rem; font-size: .78rem; color: var(--ink-500); }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1180px) {
  .dash-grid { grid-template-columns: minmax(0, 1fr) 310px; gap: 1.8rem; }
  .dash-course { grid-template-columns: 170px minmax(0, 1fr); }
  .dash-pick { grid-template-columns: 1fr; }
  .dash-pick__media { aspect-ratio: 16 / 9; }
  .dash-account__grid { grid-template-columns: 1fr; }
}
@media (max-width: 980px) {
  .dash-resume { grid-template-columns: 220px 1fr; padding-right: 1.6rem; }
  .dash-ring { display: none; }
  .dash-grid { grid-template-columns: 1fr; }
  .dash-aside { position: static; grid-template-columns: 1fr 1fr; }
  .dash-aside .dash-card:last-child { grid-column: 1 / -1; }
  .dash-cert { grid-template-columns: 1fr; padding: 1.4rem; gap: 2rem; }
  .dash-account__grid { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
  .nav .nav__me { display: inline-flex; }
  .nav__me span { display: none; }
  .auth { grid-template-columns: 1fr; min-height: 0; }
  .auth__panel { order: 1; padding: 7.5rem var(--gutter) 4rem; }
  .auth__brand { order: 2; padding: 4.5rem var(--gutter) 3.5rem; }
  .auth__cert { width: min(380px, 100%); }
  .auth__quote { margin-top: 0; }
  .dash-hero { padding-top: 7.5rem; }
}
@media (max-width: 760px) {
  .dash-kpis { width: 100%; grid-template-columns: repeat(3, 1fr); }
  .dash-kpis li { padding: .85rem 1rem; }
  .dash-kpis b { font-size: 1.7rem; }
  .dash-resume { grid-template-columns: 1fr; gap: 1.2rem; padding: .8rem .8rem 1.4rem; border-radius: var(--radius-lg); }
  .dash-resume__body { padding: 0 .5rem; }
  .dash-main { padding-top: 4.5rem; }
  .dash-course { grid-template-columns: 96px minmax(0, 1fr); gap: 1rem; padding: .8rem; }
  .dash-course__media { grid-row: 1 / span 3; align-self: start; aspect-ratio: 1; border-radius: var(--radius-sm); }
  .dash-course__done { top: .35rem; left: .35rem; padding: .2rem .4rem; font-size: 0; gap: 0; }
  .dash-course__done i { font-size: .7rem; }
  .dash-course h3 { font-size: 1.2rem; }
  .dash-course__foot { grid-column: 1 / -1; padding-top: .6rem; }
  .dash-course__body { display: contents; }
  .dash-course__body > :not(.dash-course__foot) { grid-column: 2; }
  .dash-course__cats { padding-top: .2rem; }
  .dash-course .dash-bar { grid-column: 1 / -1 !important; margin-top: .4rem; }
  .dash-aside { grid-template-columns: 1fr; }
  .dash-locked { grid-template-columns: 1fr; }
  .dash-lock { grid-template-columns: 96px minmax(0, 1fr); }
  .dash-cert__facts { grid-template-columns: 1fr; }
  .dash-reco__grid { grid-template-columns: 1fr; }
  .dash-receipt--head { display: none; }
  .dash-receipt { grid-template-columns: minmax(0, 1fr) auto; gap: .3rem 1rem; }
  .dash-receipt > :first-child { grid-column: 1; grid-row: 1; }
  .dash-receipt > :nth-child(2), .dash-receipt > :nth-child(3) { grid-column: 1; font-size: .8rem; color: var(--ink-500); }
  .dash-receipt > :nth-child(2) { grid-row: 2; }
  .dash-receipt > :nth-child(3) { grid-row: 3; }
  .dash-receipt__amt { grid-column: 2; grid-row: 1; text-align: right; }
  .dash-receipt > :last-child { grid-column: 2; grid-row: 2 / span 2; align-self: center; }
}
@media (max-width: 420px) {
  .auth__head h1 { font-size: 2.1rem; }
  .dash-filter button { padding: 0 .75rem; }
  .dash-cert__acts .dash-chip { flex: 1 1 auto; justify-content: center; }
}
@media (prefers-reduced-motion: reduce) {
  .auth__cert .c-cert__paper { animation: none; }
  .auth__thumb, .a-switch::after, .dash-tabs a::after { transition: none; }
}

/* ---------- Log in: no site header/footer, just a way home ---------- */
.auth__home { position: fixed; top: 22px; left: clamp(1rem, 3vw, 2.2rem); z-index: 20; display: inline-flex; align-items: center; gap: .55rem; padding: .6rem 1rem .6rem .85rem; border-radius: var(--radius-pill); font-size: .86rem; color: var(--ivory-50); background: rgba(6,28,20,.45); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); box-shadow: inset 0 0 0 1px rgba(230,211,166,.2); transition: background-color .3s, box-shadow .3s; }
.auth__home:hover { background: rgba(6,28,20,.7); box-shadow: inset 0 0 0 1px rgba(230,211,166,.45); }
.auth__home i { font-size: .75rem; color: var(--gold-300); transition: transform .3s var(--ease-out); }
.auth__home:hover i { transform: translateX(-3px); }
.auth .auth__brand, .auth .auth__panel { padding-top: 6rem; }
