/* BUSOLA — stiluri de aplicatie. Componente construite pe tokens.css */

* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
  -webkit-text-size-adjust: 100%;
  overscroll-behavior-y: contain;              /* fara bounce nedorit la marginile ecranului */
}
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }

/* ---------- senzatie de app nativ ---------- */
/* elementele de interfata nu se selecteaza (textul de continut ramane selectabil) */
button, .tabbar, .lm-top, .lm-dots, .lm-steplabel, .as-head, .as-chip, .kicker, .eyebrow { -webkit-user-select: none; user-select: none; }
/* feedback tactil imediat la apasare */
button:active:not(:disabled) { transform: scale(.98); }
button { transition: transform .12s ease, background .15s, border-color .15s, color .15s; }
/* input-uri minim 16px ca iOS sa NU faca zoom la focus */
input, textarea, select, .as-ta, #composer-input, .composer textarea { font-size: 16px; }
/* zone de atins confortabile pentru butoanele rotunde mici */
.lm-x, .lm-ask, .as-x { width: 40px; height: 40px; }
/* safe-area: notch sus pe ecranele fullscreen, home-bar jos pe tabbar */
.tabbar { padding-bottom: env(safe-area-inset-bottom); }

a { color: var(--brass); text-underline-offset: 2px; }
:focus-visible { outline: 2px solid var(--brass); outline-offset: 2px; border-radius: 4px; }

/* ---------- shell ---------- */
#app { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--s3) calc(var(--tabbar-h) + var(--s5) + env(safe-area-inset-bottom)); min-height: 100%; }
.screen { padding-top: var(--s4); animation: rise .28s ease both; }
@media (prefers-reduced-motion: reduce) { .screen { animation: none; } }
@keyframes rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* ---------- typography ---------- */
h1,h2,h3 { font-family: var(--serif); font-weight: 600; letter-spacing: -.01em; text-wrap: balance; margin: 0; }
h1 { font-size: 1.7rem; line-height: 1.12; }
h2 { font-size: 1.28rem; }
h3 { font-size: 1.08rem; }
p { margin: 0; }
.eyebrow { font-family: var(--mono); font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--brass); margin: 0; }
.muted { color: var(--ink-faint); }
.soft { color: var(--ink-soft); }
.serif { font-family: var(--serif); }
.center { text-align: center; }
.stack { display: flex; flex-direction: column; }
.stack > * + * { margin-top: var(--gap, var(--s3)); }
.row { display: flex; align-items: center; gap: var(--s2); }
.spread { display: flex; align-items: center; justify-content: space-between; gap: var(--s2); }
.wrap { flex-wrap: wrap; }

/* ---------- top bar ---------- */
.topbar { display: flex; align-items: center; justify-content: space-between; padding: calc(var(--s3) + env(safe-area-inset-top)) 0 var(--s2); }
.brand { display: flex; align-items: center; gap: var(--s2); font-family: var(--mono); font-size: 12px; letter-spacing: .18em; text-transform: uppercase; color: var(--brass); }
.brand .dot { width: 20px; height: 20px; border-radius: 50%; border: 2px solid var(--brass); position: relative; }
.brand .dot::after { content:""; position:absolute; inset: 3px; border-radius: 50%; background: conic-gradient(var(--brass) 0 25%, transparent 0 100%); }
.streak { font-family: var(--mono); font-size: 12px; color: var(--ink-faint); display: flex; align-items: center; gap: 5px; }
.streak b { color: var(--brass); font-size: 14px; }

/* ---------- cards ---------- */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg); padding: var(--s4); box-shadow: var(--shadow); }
.card.pad-sm { padding: var(--s3); }
.card.flush { padding: 0; overflow: hidden; }
.tile { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: var(--s3); box-shadow: var(--shadow); }

/* label chips */
.kicker { font-family: var(--mono); font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--brass); }
.chip { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; border: 1px solid var(--line); border-radius: 999px; padding: 4px 11px; color: var(--ink-soft); background: var(--card); }
.chip.on { border-color: var(--brass); color: var(--brass); background: var(--brass-tint); }
.chip .flag { font-size: 14px; }

/* ---------- big CTA (today) ---------- */
.hero-cta { position: relative; display: block; width: 100%; text-align: left; border: none; cursor: pointer;
  background: var(--ink); color: var(--paper); border-radius: var(--r-xl); padding: var(--s4); box-shadow: var(--shadow-lg); }
.hero-cta .k { font-family: var(--mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--brass-soft); }
.hero-cta h2 { color: var(--paper); margin: 8px 0 4px; }
.hero-cta .meta { color: var(--paper); opacity: .72; font-size: .9rem; }
.hero-cta .go { position: absolute; right: var(--s4); bottom: var(--s4); width: 44px; height: 44px; border-radius: 50%; background: var(--brass); color: var(--on-accent); display: grid; place-items: center; font-size: 20px; }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font: inherit; font-weight: 600;
  border-radius: var(--r); padding: 13px 18px; border: 1px solid var(--line); background: var(--card); color: var(--ink); cursor: pointer; transition: transform .08s ease, background .15s; }
.btn:active { transform: translateY(1px); }
.btn.primary { background: var(--brass); border-color: var(--brass); color: var(--on-accent); }
.btn.ghost { background: transparent; }
.btn.block { width: 100%; }
.btn.lg { padding: 16px 20px; font-size: 1.02rem; }
.btn[disabled] { opacity: .45; cursor: not-allowed; }

/* ---------- progress ---------- */
.bar { height: 8px; background: var(--paper-2); border-radius: 999px; overflow: hidden; }
.bar > span { display: block; height: 100%; background: var(--brass); border-radius: 999px; transition: width .4s ease; }
.ring { --p: 0; width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; font-family: var(--mono); font-size: 12px; font-weight: 600;
  background: conic-gradient(var(--brass) calc(var(--p)*1%), var(--paper-2) 0); }
.ring > i { width: 36px; height: 36px; border-radius: 50%; background: var(--card); display: grid; place-items: center; font-style: normal; color: var(--ink-soft); }

/* ---------- onboarding ---------- */
.ob-progress { display: flex; gap: 6px; margin: 0; flex: 1; }
.ob-progress i { flex: 1; height: 4px; border-radius: 2px; background: var(--paper-2); }
.ob-progress i.on { background: var(--brass); }

/* ---------- onboarding: ecran de WELCOME (limba = prima actiune) ---------- */
.ob-welcome { min-height: 100dvh; display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; gap: 14px; padding: 32px 22px calc(32px + env(safe-area-inset-bottom)); }
.ob-w-mark { color: var(--brass); }
.ob-w-brand { font-family: var(--mono); font-weight: 700; letter-spacing: .22em; font-size: 15px; color: var(--ink-soft); }
.ob-w-tag { font-size: clamp(1.5rem, 6vw, 2rem); line-height: 1.12; max-width: 15ch; margin: 2px 0 18px; }
.ob-w-cta { max-width: 420px; }
/* limba = pill compact, secundar (actiunea principala e Incepe) */
.ob-langpill { font: inherit; font-size: .9rem; font-weight: 600; cursor: pointer; margin-top: 4px;
  display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--card); color: var(--ink-soft); transition: border-color .12s; }
.ob-langpill:hover { border-color: var(--brass); }
.ob-w-note { font-size: .84rem; margin-top: 2px; }
/* bottom sheet de limba */
.ob-lsheet-bd { position: fixed; inset: 0; z-index: 210; display: flex; align-items: flex-end; justify-content: center;
  background: color-mix(in srgb, var(--ink) 42%, transparent); opacity: 0; transition: opacity .22s; }
.ob-lsheet-bd.in { opacity: 1; }
.ob-lsheet { width: 100%; max-width: 480px; background: var(--paper); border-radius: 20px 20px 0 0; padding: 10px 12px calc(16px + env(safe-area-inset-bottom));
  max-height: 70vh; overflow-y: auto; transform: translateY(100%); transition: transform .26s cubic-bezier(.2,.8,.2,1); box-shadow: var(--shadow-lg); }
.ob-lsheet-bd.in .ob-lsheet { transform: translateY(0); }
.ob-lsheet-h { font-family: var(--mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--brass-text); text-align: center; padding: 10px 0 8px; }
.ob-lsheet-item { display: flex; align-items: center; justify-content: space-between; width: 100%; font: inherit; font-size: 1rem; cursor: pointer;
  padding: 14px 14px; border: 0; background: transparent; color: var(--ink); border-radius: 12px; }
.ob-lsheet-item:hover { background: var(--card); }
.ob-lsheet-item.on { color: var(--brass-text); font-weight: 700; }
.ob-lsheet-item .ck { color: var(--brass); }

/* ---------- selector de limba scalabil (100+ limbi) ---------- */
.lp-bd { position: fixed; inset: 0; z-index: 220; display: flex; align-items: flex-end; justify-content: center;
  background: color-mix(in srgb, var(--ink) 44%, transparent); opacity: 0; transition: opacity .22s; }
.lp-bd.in { opacity: 1; }
.lp-sheet { width: 100%; max-width: 520px; background: var(--paper); border-radius: 22px 22px 0 0; box-shadow: var(--shadow-lg);
  display: flex; flex-direction: column; max-height: 86vh; overflow: hidden;
  transform: translateY(100%); transition: transform .28s cubic-bezier(.2,.8,.2,1); padding-bottom: env(safe-area-inset-bottom); }
.lp-bd.in .lp-sheet { transform: translateY(0); }
.lp-grip { width: 40px; height: 4px; border-radius: 3px; background: var(--paper-2); margin: 9px auto 6px; flex: none; }
.lp-searchwrap { display: flex; align-items: center; gap: 8px; padding: 8px 16px 12px; border-bottom: 1px solid var(--line); background: var(--paper); flex: none; }
.lp-searchic { opacity: .5; font-size: 15px; }
.lp-search { flex: 1; font: inherit; font-size: 16px; border: 1px solid var(--line); background: var(--card); border-radius: 12px; padding: 11px 14px; color: var(--ink); }
.lp-search:focus { outline: none; border-color: var(--brass); }
.lp-list { overflow-y: auto; -webkit-overflow-scrolling: touch; padding: 6px 8px 14px; }
.lp-sec { font-family: var(--mono); font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-faint); padding: 12px 10px 6px; }
.lp-item { display: flex; align-items: center; gap: 10px; width: 100%; text-align: left; font: inherit; cursor: pointer;
  border: 0; background: transparent; padding: 11px 12px; border-radius: 11px; color: var(--ink); }
.lp-item:hover { background: var(--card); }
.lp-item.on { background: var(--brass-tint); }
.lp-grow { flex: 1; min-width: 0; }
.lp-native { font-size: 15.5px; font-weight: 600; }
.lp-en { font-size: 12.5px; color: var(--ink-faint); margin-top: 1px; }
.lp-item.on .lp-native { color: var(--brass-text); }
.lp-ck { color: var(--brass); font-weight: 700; flex: none; }
.lp-empty { text-align: center; color: var(--ink-faint); padding: 28px 12px; font-size: 14px; }

/* ---------- ritual de bun venit (post-onboarding) ---------- */
.rit { min-height: 100dvh; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 10px; padding: 32px 24px calc(32px + env(safe-area-inset-bottom)); }
.rit-mark { color: var(--brass); }
.rit-title { font-family: var(--serif); font-size: 1.7rem; margin-top: 6px; text-wrap: balance; }
.rit-sub { color: var(--ink-soft); max-width: 30ch; }
.rit-checks { display: flex; flex-direction: column; gap: 13px; margin-top: 26px; align-items: flex-start; min-height: 160px; }
.rit-item { display: flex; align-items: center; gap: 11px; font-size: 1.02rem; opacity: 0; transform: translateY(6px); transition: opacity .4s ease, transform .4s cubic-bezier(.2,.8,.2,1); }
.rit-item.in { opacity: 1; transform: none; }
.rit-ck { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--good); color: #fff; font-size: 13px; font-weight: 700; flex: none; }
@media (prefers-reduced-motion: reduce) { .rit-item { transition: opacity .2s; transform: none; } }

/* ---------- onboarding: bara de sus (marca + limba) ---------- */
.ob-topbar { display: flex; align-items: center; justify-content: space-between; padding-top: calc(10px + env(safe-area-inset-top)); }
.ob-topbrand { font-family: var(--serif); font-weight: 600; letter-spacing: .01em; font-size: 1.05rem; color: var(--ink-soft); }
.ob-globe { font-size: 19px; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line); background: var(--card); cursor: pointer; display: grid; place-items: center; transition: border-color .12s; }
.ob-globe:hover { border-color: var(--brass); }

/* dialog "Nu ai ales nimic": modal centrat, calm, cu tokens */
.ob-dialog-bd { position: fixed; inset: 0; z-index: 250; display: grid; place-items: center; padding: 24px; background: rgba(10,14,20,.5); opacity: 0; transition: opacity .18s ease; }
.ob-dialog-bd.in { opacity: 1; }
.ob-dialog { width: 100%; max-width: 400px; background: var(--card); border: 1px solid var(--line); border-radius: var(--r-xl); box-shadow: var(--shadow-lg); padding: 24px 22px; text-align: center; transform: translateY(8px) scale(.98); transition: transform .2s cubic-bezier(.2,1,.4,1); }
.ob-dialog-bd.in .ob-dialog { transform: none; }
.ob-dialog-ic { width: 52px; height: 52px; margin: 0 auto 12px; border-radius: 50%; display: grid; place-items: center; background: var(--brass-tint); color: var(--brass-text); }
.ob-dialog-t { font-family: var(--serif); font-size: 1.3rem; margin-bottom: 8px; }
.ob-dialog-b { color: var(--ink-soft); font-size: .95rem; line-height: 1.55; margin-bottom: 20px; }
.ob-dialog-actions { display: flex; flex-direction: column; gap: 8px; }
@media (prefers-reduced-motion: reduce) { .ob-dialog-bd, .ob-dialog { transition: none; } }

/* ---------- onboarding: pasii cu ierarhie clara ---------- */
/* Layout matur, apropiat de HIG: bara sus, continut care creste, actiuni ancorate JOS (Safe Area).
   Pe ecrane inalte, spatiul in plus cade intre continut si actiuni, NU intre campurile formularului. */
#app:has(.ob-screen) { padding-bottom: 0; }              /* onboarding e fullscreen: fara padding-ul de tabbar */
.ob-screen { min-height: 100dvh; display: flex; flex-direction: column; }
.ob-scroll { flex: 1; display: flex; flex-direction: column; overflow-y: auto; -webkit-overflow-scrolling: touch; }
.ob-actions { flex: none; display: flex; align-items: center; gap: var(--s2);
  padding: var(--s3) 0 calc(var(--s3) + env(safe-area-inset-bottom)); }
.ob-actions .btn.primary { flex: 1; }                    /* Continue = principal, cea mai mare parte a latimii */

.ob-head { display: flex; align-items: center; gap: 12px; margin: var(--s3) 0 var(--s5); }
.ob-stepchip { flex: none; font-family: var(--mono); font-size: 11px; font-weight: 700; letter-spacing: .04em;
  color: var(--on-accent); background: var(--brass); padding: 5px 10px; border-radius: 999px; white-space: nowrap; }
.ob-body h1 { font-size: clamp(1.4rem, 5.2vw, 1.7rem); line-height: 1.15; }
.ob-hint { font-size: .82rem; color: var(--ink-faint); margin: 8px 2px 2px; }

/* structura unui pas: titlu+descriere, apoi un GRUP de controale = o singura decizie (gap mic intre ele) */
.ob-form { display: flex; flex-direction: column; gap: var(--s4); }
.ob-heading { display: flex; flex-direction: column; gap: 6px; }
.ob-heading .muted { line-height: 1.45; }
.ob-group { display: flex; flex-direction: column; gap: var(--s2); }
.ob-toolbar { margin-bottom: calc(var(--s2) * -1 + 2px); }   /* contor+"selecteaza tot" stau lipite de lista */
.opt { display: flex; align-items: center; gap: var(--s3); width: 100%; text-align: left; cursor: pointer;
  border: 1px solid var(--line); background: var(--card); border-radius: var(--r); padding: 14px var(--s3); font: inherit; color: var(--ink); transition: border-color .12s, background .12s; }
.opt:hover { border-color: var(--brass-soft); }
.opt.sel { border-color: var(--brass); background: var(--brass-tint); }
.opt .big { font-size: 22px; line-height: 1; }
.opt .t { font-weight: 600; }
.opt .d { font-size: .85rem; color: var(--ink-faint); }
.opt .check { margin-left: auto; color: var(--brass); opacity: 0; }
.opt.sel .check { opacity: 1; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-family: var(--mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-faint); }
.select, .input { font: inherit; color: var(--ink); background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 12px var(--s3); width: 100%; }

/* ---------- lesson ---------- */
.lesson-nav { display: flex; align-items: center; gap: var(--s2); margin-bottom: var(--s3); }
.lesson-nav .bar { flex: 1; }
.step { font-size: 1.05rem; }
.step .lens-row { display: flex; flex-wrap: wrap; gap: 6px; margin-top: var(--s3); }
.analogy { border-left: 3px solid var(--brass); padding: 4px 0 4px var(--s3); font-style: italic; color: var(--ink-soft); }
.example { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: var(--s3); }
.example .src { font-family: var(--mono); font-size: 11px; color: var(--ink-faint); margin-top: 8px; }
.core-list { list-style: none; padding: 0; margin: var(--s3) 0 0; }
.core-list li { display: flex; gap: var(--s2); padding: 10px 0; border-bottom: 1px solid var(--line); }
.core-list li:last-child { border-bottom: none; }
.core-list .n { font-family: var(--mono); color: var(--brass); font-size: 12px; padding-top: 3px; }

/* quiz */
.quiz-opt { display: block; width: 100%; text-align: left; border: 1px solid var(--line); background: var(--card); color: var(--ink);
  border-radius: var(--r); padding: 14px var(--s3); font: inherit; cursor: pointer; margin-top: var(--s2); transition: border-color .12s; }
.quiz-opt:hover { border-color: var(--brass-soft); }
.quiz-opt.correct { border-color: var(--good); background: color-mix(in srgb, var(--good) 12%, var(--card)); }
.quiz-opt.wrong { border-color: var(--crit); background: color-mix(in srgb, var(--crit) 12%, var(--card)); }
.explain { border-left: 3px solid var(--brass); padding-left: var(--s3); margin-top: var(--s3); color: var(--ink-soft); font-size: .92rem; }

/* ---------- comparison (signature module) ---------- */
.cmp-head { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s2); margin-top: var(--s3); }
.cmp-col-label { font-family: var(--mono); font-size: 11px; letter-spacing: .06em; text-transform: uppercase; padding: 8px 10px; border-radius: var(--r-sm); text-align: center; font-weight: 600; }
.cmp-col-label.origin { background: color-mix(in srgb, var(--origin) 16%, var(--card)); color: var(--origin); }
.cmp-col-label.residence { background: color-mix(in srgb, var(--residence) 16%, var(--card)); color: var(--residence); }
.cmp-row { border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; margin-top: var(--s3); background: var(--card); box-shadow: var(--shadow); }
.cmp-row .topic { padding: 12px var(--s3); font-weight: 600; border-bottom: 1px solid var(--line); background: var(--paper-2); }
.cmp-grid { display: grid; grid-template-columns: 1fr 1fr; }
.cmp-cell { padding: 12px var(--s3); font-size: .9rem; }
.cmp-cell + .cmp-cell { border-left: 1px solid var(--line); }
.cmp-cell .side { font-family: var(--mono); font-size: 10px; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 5px; }
.cmp-cell.origin .side { color: var(--origin); }
.cmp-cell.residence .side { color: var(--residence); }
.cmp-takeaway { padding: 11px var(--s3); font-size: .88rem; color: var(--ink-soft); border-top: 1px dashed var(--line); }
.cmp-takeaway b { color: var(--brass); }

/* ---------- mentor chat ---------- */
.chat { display: flex; flex-direction: column; gap: var(--s3); padding-bottom: var(--s4); }
.msg { max-width: 88%; padding: 12px var(--s3); border-radius: var(--r-lg); font-size: .95rem; }
.msg.ai { align-self: flex-start; background: var(--card); border: 1px solid var(--line); border-bottom-left-radius: 4px; }
.msg.me { align-self: flex-end; background: var(--brass); color: var(--on-accent); border-bottom-right-radius: 4px; }
.suggest { display: flex; flex-wrap: wrap; gap: 7px; }
.suggest button { font: inherit; font-size: 12.5px; border: 1px solid var(--line); background: var(--card); color: var(--ink-soft); border-radius: 999px; padding: 6px 12px; cursor: pointer; }
.composer { position: sticky; bottom: calc(var(--tabbar-h) + 8px); display: flex; gap: var(--s2); background: var(--paper); padding-top: var(--s2); }
.composer textarea { flex: 1; resize: none; font: inherit; border: 1px solid var(--line); border-radius: var(--r); padding: 12px var(--s3); background: var(--card); color: var(--ink); max-height: 120px; }
.typing { display: inline-flex; gap: 4px; vertical-align: middle; }
.typing i { width: 6px; height: 6px; border-radius: 50%; background: var(--ink-faint); animation: blink 1.2s infinite; }
.typing i:nth-child(2){animation-delay:.2s} .typing i:nth-child(3){animation-delay:.4s}
@keyframes blink { 0%,60%,100%{opacity:.3} 30%{opacity:1} }

/* ---------- path map ---------- */
.tier { margin-top: var(--s4); }
.tier-head { display: flex; align-items: center; gap: var(--s2); margin-bottom: var(--s2); }
.tier-head .n { width: 26px; height: 26px; border-radius: 50%; background: var(--indigo); color: var(--on-accent); display: grid; place-items: center; font-family: var(--mono); font-size: 12px; font-weight: 700; }
.node .d.inprogress { color: var(--warn); }
.node { display: flex; align-items: center; gap: var(--s3); padding: 12px var(--s3); border: 1px solid var(--line); border-radius: var(--r); background: var(--card); margin-top: var(--s2); cursor: pointer; }
.node.done { opacity: .7; }
.node.locked { opacity: .5; cursor: not-allowed; }
.node .ic { width: 34px; height: 34px; border-radius: 9px; display: grid; place-items: center; background: var(--paper-2); font-size: 16px; flex: none; }
.node .t { font-weight: 600; font-size: .96rem; }
.node .d { font-size: .8rem; color: var(--ink-faint); }
.node .state { margin-left: auto; font-size: 18px; }

/* ---------- tab bar ---------- */
/* inaltime = zona iconitelor (tabbar-h) PLUS safe-area, ca grupul sa fie centrat in zona plina,
   nu strans peste ce ramane dupa safe-area (fix pt notch/home-bar) */
.tabbar { position: fixed; left: 0; right: 0; bottom: 0; height: calc(var(--tabbar-h) + env(safe-area-inset-bottom)); background: color-mix(in srgb, var(--card) 88%, transparent);
  backdrop-filter: blur(12px); border-top: 1px solid var(--line); display: flex; z-index: 50; padding-bottom: env(safe-area-inset-bottom); }
.tabbar a { flex: 1; display: flex; align-items: center; justify-content: center; text-decoration: none; color: var(--ink-faint); }
/* icon + label = UN SINGUR GRUP. Starea activa = pastila subtila pe grup (fara schimbare de grosime) */
.tab-grp { display: flex; flex-direction: column; align-items: center; gap: 4px; line-height: 1;
  padding: 6px 16px; border-radius: 13px; transition: background .2s ease, transform .22s cubic-bezier(.2,.8,.2,1); }
.tab-lbl { font-size: 10px; font-family: var(--mono); letter-spacing: .04em; }
.tabbar a.on { color: var(--brass); }
.tabbar a.on .tab-grp { background: var(--brass-tint); animation: tabpop .28s ease; }
.tabbar .bic { display: inline-flex; }
/* --- iconografie BUSOLA inline (familia de SVG) --- */
.bic { display: inline-flex; align-items: center; justify-content: center; }
/* kickere / etichete: iconita + text aliniate pe acelasi rand */
.kicker, .lm-fact .fk, .cmp-key .k, .cmp-aha .co-k, .cmp-callout .co-k, .hl-tag, .lm-steplabel { display: inline-flex; align-items: center; gap: 5px; }
/* tile-uri de iconita pe fundal tint -> icon in culoarea marcii */
.cap-card .cic, .p-skill .sk-ic, .mod-ic, .opt .big { color: var(--brass); }
/* butoane si randuri cu iconita + text aliniate */
.btn-ic, .adv-btn, .m-tool, .p-adv > summary.btn-ic { display: inline-flex; align-items: center; gap: 8px; }
.p-seg .btn-ic { gap: 6px; justify-content: center; }
.st-diff, .cel-skill { display: inline-flex; align-items: center; gap: 6px; }
.cel-stat .em, .p-stat .ic, .p-goal .ck, .ss-lead, .cmp-topic-ic, .p-about .sq { display: inline-flex; align-items: center; justify-content: center; }
/* containere de iconita care erau setate pt emoji -> acum SVG in culoarea marcii */
.p-stat .ic, .cmp-topic-ic, .p-about .sq, .st-diff, .cel-skill, .cel-stat .em { color: var(--brass); }
.p-cam, .lm-ask { color: var(--brass); }
.tabbar a svg { width: 22px; height: 22px; }
@keyframes tabpop { 0% { transform: scale(.88); } 60% { transform: scale(1.05); } 100% { transform: scale(1); } }
@media (prefers-reduced-motion: reduce) { .tabbar a.on .tab-grp { animation: none; } }

/* utility */
.hidden { display: none !important; }
.grow { flex: 1; }
.mt2 { margin-top: var(--s2); } .mt3 { margin-top: var(--s3); } .mt4 { margin-top: var(--s4); }
.pill-list { display: flex; flex-wrap: wrap; gap: 7px; }
.empty { text-align: center; color: var(--ink-faint); padding: var(--s5) var(--s3); }
.badge-count { background: var(--brass); color: var(--on-accent); border-radius: 999px; font-family: var(--mono); font-size: 11px; font-weight: 700; padding: 1px 7px; }
.divider { height: 1px; background: var(--line); border: none; margin: var(--s4) 0; }

/* ================= PROFILE (premium) ================= */
.profile { display: flex; flex-direction: column; gap: var(--s5); padding-bottom: var(--s6); }
.p-section { display: flex; flex-direction: column; gap: var(--s3); }
.p-section > .p-head { display: flex; align-items: baseline; justify-content: space-between; gap: var(--s2); }
.p-section .p-title { font-family: var(--serif); font-size: 1.15rem; font-weight: 600; }
/* buton de editare accesibil: 44x44, contrast clar (nu un creion minuscul) */
.p-edit { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 12px;
  background: var(--brass-tint); color: var(--brass); border: 1px solid color-mix(in srgb, var(--brass) 24%, transparent);
  cursor: pointer; flex: none; padding: 0; transition: transform .12s ease, background .15s ease; }
.p-edit:hover { background: color-mix(in srgb, var(--brass) 20%, var(--card)); }
.p-edit:active { transform: scale(.93); }
/* rand de selectie (deschide un SelectionSheet) */
.p-selrow { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 48px; padding: 12px 14px;
  background: var(--paper-2); border: 1px solid var(--line); border-radius: 12px; cursor: pointer; color: var(--ink);
  font: inherit; font-weight: 500; text-align: left; }
.p-selrow:hover { border-color: var(--brass-soft); }
.p-selrow-ch { color: var(--ink-faint); font-size: 1.4rem; line-height: 1; }
/* creionul de langa nume: contrast si dimensiune vizibile */
.pen { color: var(--brass); font-size: 15px; opacity: .9; }

/* --- hero --- */
.p-hero { position: relative; border-radius: var(--r-xl); padding: var(--s5) var(--s4) var(--s4);
  background: linear-gradient(150deg, color-mix(in srgb, var(--brass) 12%, var(--card)), var(--card) 60%);
  border: 1px solid var(--line); box-shadow: var(--shadow-lg); overflow: hidden; }
.p-hero::after { content: ""; position: absolute; top: -60px; right: -60px; width: 180px; height: 180px; border-radius: 50%;
  background: radial-gradient(circle, color-mix(in srgb, var(--indigo) 22%, transparent), transparent 70%); pointer-events: none; }
.p-hero-top { display: flex; align-items: center; gap: var(--s3); position: relative; z-index: 1; }
.p-avatar { width: 76px; height: 76px; border-radius: 50%; flex: none; display: grid; place-items: center;
  font-family: var(--serif); font-size: 1.9rem; font-weight: 600; color: var(--on-accent);
  background: linear-gradient(140deg, var(--brass), var(--indigo)); box-shadow: 0 0 0 4px var(--card), 0 6px 18px rgba(0,0,0,.14); cursor: pointer; }
.p-name-row { display: flex; align-items: center; gap: 8px; cursor: pointer; }
.p-name-row .pen { color: var(--brass); font-size: 15px; opacity: .8; }
.p-name-row:hover .pen { opacity: 1; }
.p-name { font-family: var(--serif); font-size: 1.5rem; font-weight: 600; line-height: 1.1; }
.p-bio.click { cursor: pointer; }
.p-bio.click:hover { color: var(--ink); }
.p-username { font-family: var(--mono); font-size: 12px; color: var(--ink-faint); margin-top: 2px; }
.p-bio { color: var(--ink-soft); margin-top: 8px; font-size: .96rem; position: relative; z-index: 1; max-width: 42ch; }
.p-hero .p-edit { position: absolute; top: var(--s3); right: var(--s3); z-index: 2; }

/* level bar in hero */
.p-level { position: relative; z-index: 1; margin-top: var(--s3); }
.p-level .lvl-row { display: flex; justify-content: space-between; font-family: var(--mono); font-size: 11px; color: var(--ink-faint); margin-bottom: 5px; }
.p-level .lvl-row b { color: var(--brass); }

/* stat row */
.p-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line);
  border-radius: var(--r); overflow: hidden; margin-top: var(--s4); position: relative; z-index: 1; border: 1px solid var(--line); }
.p-stat { background: var(--card); padding: 12px 6px; text-align: center; }
.p-stat .v { font-family: var(--serif); font-size: 1.35rem; font-weight: 600; line-height: 1; }
.p-stat .l { font-family: var(--mono); font-size: 9.5px; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-faint); margin-top: 5px; }
.p-stat .ic { font-size: 15px; }

/* --- about cards --- */
.p-about { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 460px) { .p-about { grid-template-columns: 1fr; } }
.p-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 14px; box-shadow: var(--shadow); display: flex; gap: 12px; align-items: flex-start; }
.p-card .sq { width: 38px; height: 38px; border-radius: 10px; flex: none; display: grid; place-items: center; font-size: 18px;
  background: color-mix(in srgb, var(--brass) 12%, var(--card)); }
.p-card .l { font-family: var(--mono); font-size: 10px; letter-spacing: .07em; text-transform: uppercase; color: var(--ink-faint); }
.p-card .v { font-weight: 600; margin-top: 3px; font-size: .95rem; }

/* --- goal chips / interest chips (bigger, premium) --- */
.p-chips { display: flex; flex-wrap: wrap; gap: 9px; }
.p-chip { display: inline-flex; align-items: center; gap: 7px; font-size: 13.5px; font-weight: 550; padding: 8px 13px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--card); color: var(--ink-soft); }
.p-chip.on { border-color: var(--brass); color: var(--brass); background: var(--brass-tint); }
.p-chip .em { font-size: 15px; }
.p-goal { display: inline-flex; align-items: center; gap: 8px; font-size: 13.5px; font-weight: 550; padding: 8px 13px; border-radius: 999px;
  border: 1px solid color-mix(in srgb, var(--good) 40%, var(--line)); background: color-mix(in srgb, var(--good) 8%, var(--card)); color: var(--ink); }
.p-goal .ck { color: var(--good); font-weight: 800; }

/* --- achievements --- */
.p-badges { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 10px; }
.p-badge { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 14px 8px; text-align: center; box-shadow: var(--shadow); }
.p-badge .em { font-size: 26px; line-height: 1; display: block; }
.p-badge .t { font-size: 11px; color: var(--ink-soft); margin-top: 8px; line-height: 1.25; }
.p-badge.locked { box-shadow: none; }
.p-badge.locked .em { filter: grayscale(1); opacity: .35; }
.p-badge.locked .t { color: var(--ink-faint); }

/* --- activity --- */
.p-activity { display: flex; flex-direction: column; gap: 8px; }
.p-continue { display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; cursor: pointer;
  background: var(--ink); color: var(--paper); border: none; border-radius: var(--r); padding: 14px var(--s3); box-shadow: var(--shadow); }
.p-continue .go { margin-left: auto; width: 34px; height: 34px; border-radius: 50%; background: var(--brass); color: var(--on-accent); display: grid; place-items: center; flex: none; }
.p-continue .k { font-family: var(--mono); font-size: 10px; letter-spacing: .1em; text-transform: uppercase; color: var(--brass-soft); }
.p-continue .tt { font-weight: 600; margin-top: 2px; }
.p-actitem { display: flex; align-items: center; gap: 12px; background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 11px var(--s3); }
.p-actitem .ic { width: 32px; height: 32px; border-radius: 9px; background: var(--paper-2); display: grid; place-items: center; flex: none; }
.p-actitem .tt { font-weight: 550; font-size: .92rem; }
.p-actitem .dt { font-family: var(--mono); font-size: 10px; color: var(--ink-faint); margin-left: auto; }

/* --- language selector --- */
.p-langs { display: flex; flex-direction: column; gap: 8px; }
.p-langopt { display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; cursor: pointer;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 13px var(--s3); font: inherit; color: var(--ink); }
.p-langopt:hover { border-color: var(--brass-soft); }
.p-langopt.on { border-color: var(--brass); background: var(--brass-tint); }
.p-langopt .fl { font-size: 20px; }
.p-langopt .nm { font-weight: 600; }
.p-langopt .rd { margin-left: auto; width: 20px; height: 20px; border-radius: 50%; border: 2px solid var(--line); }
.p-langopt.on .rd { border-color: var(--brass); background: radial-gradient(circle, var(--brass) 45%, transparent 48%); }

/* --- segmented (theme) --- */
.p-seg { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; background: var(--paper-2); border-radius: var(--r); padding: 4px; }
.p-seg button { font: inherit; font-weight: 600; font-size: .9rem; border: none; background: transparent; color: var(--ink-soft); padding: 10px; border-radius: 9px; cursor: pointer; }
.p-seg button.on { background: var(--card); color: var(--ink); box-shadow: var(--shadow); }

/* --- advanced (discreet) --- */
.p-adv { border: 1px solid var(--line); border-radius: var(--r); background: var(--card); overflow: hidden; }
.p-adv summary { cursor: pointer; padding: 14px var(--s3); font-weight: 600; color: var(--ink-soft); list-style: none; display: flex; align-items: center; gap: 8px; }
.p-adv summary::-webkit-details-marker { display: none; }
.p-adv summary .ar { margin-left: auto; color: var(--ink-faint); transition: transform .2s; }
.p-adv[open] summary .ar { transform: rotate(90deg); }
.p-adv .adv-body { padding: 4px var(--s3) var(--s3); display: flex; flex-direction: column; gap: 8px; border-top: 1px solid var(--line); }
.p-adv .adv-btn { text-align: left; background: var(--paper-2); border: 1px solid transparent; border-radius: 9px; padding: 12px var(--s3); font: inherit; color: var(--ink); cursor: pointer; display: flex; align-items: center; gap: 10px; }
.p-adv .adv-btn:hover { border-color: var(--line); }
.p-adv .adv-btn.danger { color: var(--crit); }
/* pagina de Confidentialitate: randuri cu iconita + text */
.p-priv-row { display: flex; gap: 13px; align-items: flex-start; padding: 4px 0; }
.p-priv-ic { color: var(--brass); flex: none; margin-top: 2px; display: inline-flex; }
.p-priv-t { font-weight: 600; font-size: .98rem; }
.p-priv-b { color: var(--ink-soft); font-size: .88rem; line-height: 1.5; margin-top: 2px; }
.btn.danger { color: var(--crit); }
.btn.primary.danger { background: var(--crit); border-color: var(--crit); color: #fff; }

/* ---------- Profil: sectiunea PROGRES (repeta / reia modul / reset) ---------- */
.p-prog-list { display: flex; flex-direction: column; gap: 2px; }
.p-prog-row { display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; background: none; border: none; padding: 11px 6px; border-radius: 12px; cursor: pointer; color: var(--ink); font: inherit; }
.p-prog-row:hover { background: var(--paper-2); }
.p-prog-ic { flex: none; width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; background: var(--brass-tint); color: var(--brass-text); }
.p-prog-row.warn .p-prog-ic { background: color-mix(in srgb, var(--warn) 15%, var(--card)); color: var(--warn); }
.p-prog-t { font-weight: 600; font-size: .96rem; }
.p-prog-d { font-size: .82rem; color: var(--ink-faint); margin-top: 1px; line-height: 1.35; }
.p-prog-ch { flex: none; color: var(--ink-faint); font-size: 20px; }

/* lista de reluat lectii finalizate */
.p-replay-grp + .p-replay-grp { margin-top: 12px; }
.p-replay-h { font-family: var(--mono); font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--brass-text); padding: 4px 2px 6px; }
.p-replay-row { display: flex; align-items: center; gap: 10px; width: 100%; text-align: left; background: var(--paper-2); border: 1px solid transparent; border-radius: 10px; padding: 11px 12px; margin-bottom: 6px; font: inherit; font-size: .92rem; color: var(--ink); cursor: pointer; }
.p-replay-row:hover { border-color: var(--brass-soft); }
.p-replay-go { flex: none; color: var(--brass); display: inline-flex; }
.p-empty { text-align: center; color: var(--ink-faint); padding: 26px 12px; }
.p-empty-ic { display: grid; place-items: center; margin-bottom: 8px; color: var(--ink-faint); }

/* dialog de reset: doua blocuri (se sterge / ramane) + lista neutra pt modul */
.p-info-list { list-style: none; display: flex; flex-direction: column; gap: 4px; }
.p-info-list li { position: relative; padding-left: 16px; font-size: .9rem; color: var(--ink-soft); }
.p-info-list li::before { content: "\2013"; position: absolute; left: 0; color: var(--ink-faint); }
.p-reset-block { border-radius: 12px; padding: 12px 14px; }
.p-reset-block.del { background: color-mix(in srgb, var(--crit) 7%, var(--card)); border: 1px solid color-mix(in srgb, var(--crit) 20%, var(--line)); }
.p-reset-block.keep { background: color-mix(in srgb, var(--good) 7%, var(--card)); border: 1px solid color-mix(in srgb, var(--good) 20%, var(--line)); }
.p-reset-k { font-family: var(--mono); font-size: 10px; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 7px; }
.p-reset-block.del .p-reset-k { color: var(--crit); }
.p-reset-block.keep .p-reset-k { color: var(--good); }
.p-reset-list { list-style: none; display: flex; flex-direction: column; gap: 5px; }
.p-reset-list li { position: relative; padding-left: 20px; font-size: .9rem; }
.p-reset-list li::before { content: "\2715"; position: absolute; left: 0; color: var(--crit); font-size: .78rem; top: 1px; }
.p-reset-list.keep li::before { content: "\2713"; color: var(--good); }
.p-reset-actions { display: flex; gap: 10px; margin-top: 4px; }

/* avatar with camera badge */
.p-avatar-wrap { position: relative; width: 76px; height: 76px; flex: none; }
.p-cam { position: absolute; right: -3px; bottom: -3px; width: 27px; height: 27px; border-radius: 50%; background: var(--brass); color: var(--on-accent);
  display: grid; place-items: center; font-size: 12px; box-shadow: 0 0 0 3px var(--card); cursor: pointer; border: none; }

/* CTA row */
.p-cta { display: flex; gap: 10px; }
.p-cta .btn { flex: 1; }

/* live status */
.p-live { display: flex; flex-direction: column; gap: 10px; background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 14px var(--s3); box-shadow: var(--shadow); }
.p-live .ln { display: flex; align-items: center; gap: 10px; font-size: .92rem; }
.p-live .ln .em { font-size: 17px; flex: none; }
.p-live .ln .muted { color: var(--ink-faint); }

/* group headers (Profil / Setari) */
.p-group { font-family: var(--mono); font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--brass); padding: 2px 2px; }

/* clickable about card */
.p-card.click { cursor: pointer; transition: border-color .12s, transform .08s; }
.p-card.click:hover { border-color: var(--brass-soft); }
.p-card.click:active { transform: scale(.99); }
.p-card .chev { margin-left: auto; align-self: center; color: var(--ink-faint); font-size: 20px; }

/* bottom sheet */
.sheet-backdrop { position: fixed; inset: 0; background: rgba(10,14,20,.5); z-index: 200; display: flex; align-items: flex-end; justify-content: center; animation: fadein .2s ease; }
.sheet { width: 100%; max-width: var(--maxw); background: var(--card); border-radius: var(--r-xl) var(--r-xl) 0 0; box-shadow: var(--shadow-lg);
  padding: var(--s2) var(--s4) calc(var(--s5) + env(safe-area-inset-bottom)); max-height: 84vh; overflow-y: auto; animation: sheetup .3s cubic-bezier(.2,.85,.25,1); }
.sheet-handle { width: 40px; height: 4px; border-radius: 2px; background: var(--line); margin: 6px auto var(--s3); }
.sheet-title { font-family: var(--serif); font-size: 1.25rem; font-weight: 600; margin-bottom: var(--s3); }
.sheet-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: var(--s3); }
.sheet-head .sheet-title { margin-bottom: 0; flex: 1; text-align: center; font-size: 1.1rem; }
.sheet-x { border: none; background: var(--paper-2); width: 34px; height: 34px; border-radius: 50%; font-size: 14px; color: var(--ink-soft); cursor: pointer; flex: none; }
.sheet-x:hover { color: var(--ink); }
.sheet .stack { --gap: 10px; }
@keyframes fadein { from { opacity: 0; } to { opacity: 1; } }
@keyframes sheetup { from { transform: translateY(100%); } to { transform: translateY(0); } }

/* ===== SelectionSheet: componenta STANDARD de selectie (search + single/multi + drag-dismiss) ===== */
.ss-backdrop { position: fixed; inset: 0; z-index: 240; background: rgba(10,14,20,.5); display: flex;
  align-items: flex-end; justify-content: center; opacity: 0; transition: opacity .3s ease; }
.ss-backdrop.in { opacity: 1; }
.ss-sheet { width: 100%; max-width: var(--maxw); background: var(--card); border-radius: 22px 22px 0 0;
  box-shadow: var(--shadow-lg); display: flex; flex-direction: column; overflow: hidden;
  /* NU urca niciodata sub status bar / Dynamic Island: plafonul lasa mereu safe-area-inset-top + o marja
     libera la varf, ca headerul (cu Done) sa fie 100% in Safe Area si apasabil pe orice iPhone. */
  max-height: 92vh;                                             /* fallback browsere fara dvh */
  max-height: calc(100dvh - env(safe-area-inset-top) - 14px);
  transform: translateY(100%); transition: transform .32s cubic-bezier(.2,.85,.25,1);
  padding-bottom: env(safe-area-inset-bottom); touch-action: none; }
.ss-backdrop.in .ss-sheet { transform: translateY(0); }
.ss-handle { width: 40px; height: 5px; border-radius: 3px; background: var(--line); margin: 9px auto 3px;
  flex: none; cursor: grab; }
.ss-handle::before { content: ""; position: absolute; }             /* zona de prindere e tot headerul */
.ss-head { display: flex; align-items: center; gap: 10px; padding: 8px 10px 8px 18px; flex: none; cursor: grab; }
.ss-title { flex: 1; font-family: var(--serif); font-size: 1.18rem; font-weight: 600; margin: 0; }
/* butoanele de header: hit-area >=44x44, deasupra zonei de drag (position/z-index) si cu touch-action
   propriu, ca tap-ul sa nu fie inghitit de touch-action:none al sheet-ului sau de gesture handler */
.ss-x { border: none; background: var(--paper-2); width: 44px; height: 44px; border-radius: 50%; color: var(--ink-soft);
  cursor: pointer; flex: none; display: grid; place-items: center; position: relative; z-index: 2; touch-action: manipulation; }
.ss-x:hover { color: var(--ink); }
.ss-done { border: none; background: var(--brass); color: #fff; font: 600 .95rem var(--sans, inherit);
  padding: 10px 18px; border-radius: 12px; min-height: 44px; min-width: 44px; cursor: pointer; flex: none;
  position: relative; z-index: 2; touch-action: manipulation; }
.ss-searchwrap { display: flex; align-items: center; gap: 8px; margin: 2px 16px 8px; padding: 0 12px; flex: none;
  background: var(--paper-2); border: 1px solid var(--line); border-radius: 13px; }
.ss-searchic { color: var(--ink-faint); display: inline-flex; }
.ss-search { flex: 1; border: none; background: transparent; padding: 13px 0; font-size: 1rem; color: var(--ink);
  outline: none; -webkit-appearance: none; }
.ss-search::placeholder { color: var(--ink-faint); }
.ss-list { flex: 1; overflow-y: auto; -webkit-overflow-scrolling: touch; overscroll-behavior: contain;
  padding: 0 10px calc(12px + env(safe-area-inset-bottom)); touch-action: pan-y; }
.ss-group { font-family: var(--mono); font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase;
  color: var(--ink-faint); padding: 14px 12px 6px; }
.ss-row { width: 100%; display: flex; align-items: center; gap: 12px; min-height: 52px; padding: 8px 12px;
  border: none; background: transparent; border-radius: 12px; cursor: pointer; text-align: left; color: var(--ink);
  font: inherit; }
.ss-row:hover { background: var(--paper-2); }
.ss-row:active { background: color-mix(in srgb, var(--brass) 10%, var(--paper-2)); }
.ss-row.on { background: var(--brass-tint); }
.ss-row[disabled] { opacity: .4; pointer-events: none; }
.ss-lead { font-size: 1.35rem; line-height: 1; flex: none; width: 28px; text-align: center; color: var(--brass); }
.ss-lead .bic { display: inline-flex; }
.ss-txt { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.ss-lbl { font-size: 1rem; font-weight: 500; }
.ss-sub { font-size: .82rem; color: var(--ink-faint); }
.ss-check { flex: none; width: 22px; color: var(--brass); display: inline-flex; justify-content: center; }
.ss-empty { text-align: center; color: var(--ink-faint); padding: 40px 20px; }
@media (prefers-reduced-motion: reduce) { .ss-sheet { transition: none; } .ss-backdrop { transition: none; } }
/* buton "alege" care deschide un SelectionSheet (onboarding tara/cetatenie) */
.opt-pick { justify-content: space-between; cursor: pointer; min-height: 52px; }
.opt-pick-ch { color: var(--ink-faint); font-size: 1.5rem; line-height: 1; flex: none; }
@media (prefers-reduced-motion: reduce) { .sheet, .sheet-backdrop { animation: none; } }

/* inline edit form */
.p-editform { display: flex; flex-direction: column; gap: 10px; position: relative; z-index: 1; }
.p-editform input, .p-editform textarea { font: inherit; color: var(--ink); background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 11px 13px; width: 100%; }
.p-editform textarea { resize: none; min-height: 60px; }

/* ================= MENTOR (Atlas) ================= */
.mentor { display: flex; flex-direction: column; gap: var(--s4); }
.atlas-head { display: flex; flex-direction: column; gap: var(--s3); }
.atlas-top { display: flex; gap: var(--s3); align-items: center; }
.atlas-av { width: 66px; height: 66px; border-radius: 50%; flex: none; display: grid; place-items: center; font-size: 33px; overflow: hidden;
  background: linear-gradient(140deg, var(--brass), var(--indigo)); box-shadow: 0 0 0 4px var(--card), 0 8px 26px color-mix(in srgb, var(--indigo) 32%, transparent); }
.atlas-av img { width: 100%; height: 100%; object-fit: cover; }
.mini-av img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
.mini-av { overflow: hidden; }
.p-avatar img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
.p-avatar { overflow: hidden; }
.atlas-id .nm { font-family: var(--serif); font-size: 1.4rem; font-weight: 600; line-height: 1.05; }
.atlas-id .role { color: var(--ink-faint); font-size: .92rem; }
.atlas-status { display: inline-flex; align-items: center; gap: 6px; font-family: var(--mono); font-size: 11px; letter-spacing: .05em; color: var(--good); margin-top: 5px; }
.atlas-status .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--good); box-shadow: 0 0 0 3px color-mix(in srgb, var(--good) 22%, transparent); }
.atlas-sub { color: var(--ink-soft); font-style: italic; font-size: .96rem; max-width: 44ch; }

/* mini progress strip */
.m-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.m-stat { background: var(--card); padding: 12px 8px; text-align: center; }
.m-stat .v { font-family: var(--serif); font-size: 1.3rem; font-weight: 600; line-height: 1; }
.m-stat .l { font-family: var(--mono); font-size: 9.5px; letter-spacing: .05em; text-transform: uppercase; color: var(--ink-faint); margin-top: 5px; }

/* capability cards */
.cap-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 480px) { .cap-grid { grid-template-columns: 1fr; } }
.cap-card { text-align: left; background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 15px; box-shadow: var(--shadow); cursor: pointer; display: flex; flex-direction: column; gap: 9px; transition: border-color .12s, transform .08s; }
.cap-card:hover { border-color: var(--brass-soft); }
.cap-card:active { transform: translateY(1px); }
.cap-card .cic { width: 40px; height: 40px; border-radius: 11px; display: grid; place-items: center; font-size: 19px; background: color-mix(in srgb, var(--brass) 13%, var(--card)); }
.cap-card .ct { font-family: var(--serif); font-weight: 600; font-size: 1rem; }
.cap-card .cd { color: var(--ink-faint); font-size: .82rem; line-height: 1.35; }
.cap-card .car { color: var(--brass); font-size: 1.1rem; align-self: flex-end; margin-top: -4px; }

/* chat with Atlas avatar */
.ai-row { display: flex; gap: 8px; align-items: flex-end; align-self: flex-start; max-width: 94%; }
.ai-row .mini-av { width: 28px; height: 28px; border-radius: 50%; flex: none; display: grid; place-items: center; font-size: 15px;
  background: linear-gradient(140deg, var(--brass), var(--indigo)); box-shadow: 0 2px 6px rgba(0,0,0,.12); }

/* toolbar + composer buttons */
.m-toolbar { display: flex; gap: 8px; flex-wrap: wrap; }
.m-tool { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--ink-faint); background: var(--card); border: 1px solid var(--line); border-radius: 999px; padding: 6px 12px; cursor: pointer; }
.m-tool:hover { color: var(--ink); }
.composer .cbtn { width: 46px; flex: none; border: 1px solid var(--line); background: var(--card); border-radius: var(--r); cursor: pointer; font-size: 17px; color: var(--ink-soft); }
.composer .cbtn:hover { color: var(--brass); border-color: var(--brass-soft); }

/* ================= LESSON MODE ================= */
.lm { max-width: var(--maxw); margin: 0 auto; min-height: 100vh; display: flex; flex-direction: column; }
.lm-top { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--paper) 90%, transparent); backdrop-filter: blur(10px); display: flex; align-items: center; gap: 12px; padding: calc(12px + env(safe-area-inset-top)) 16px 12px; border-bottom: 1px solid var(--line); }
.lm-x { border: 1px solid var(--line); background: var(--card); width: 36px; height: 36px; border-radius: 50%; font-size: 14px; cursor: pointer; color: var(--ink-soft); flex: none; }
.lm-ask { border: 1px solid var(--line); background: var(--card); width: 36px; height: 36px; border-radius: 50%; font-size: 16px; cursor: pointer; flex: none; transition: transform .15s, border-color .15s; }
.lm-ask:hover { transform: scale(1.08); border-color: var(--brass); }
.lm-prog { flex: 1; }
.lm-dots { display: flex; gap: 5px; }
.lm-dots i { flex: 1; height: 5px; border-radius: 3px; background: var(--paper-2); transition: background .3s; }
.lm-dots i.done, .lm-dots i.now { background: var(--brass); }
.lm-dots i.now { box-shadow: 0 0 0 2px var(--brass-tint); }
.lm-steplabel { font-family: var(--mono); font-size: 11px; letter-spacing: .04em; color: var(--ink-faint); margin-top: 6px; }
.lm-flow { flex: 1; padding: 18px 16px 42vh; display: flex; flex-direction: column; gap: 18px; }
.lm-beat { opacity: 0; transform: translateY(12px); transition: opacity .35s ease, transform .35s cubic-bezier(.2,.8,.2,1); display: flex; flex-direction: column; gap: 14px; }
.lm-beat.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .lm-beat { transition: none; } }
/* micro-introducere (titlu + hook de curiozitate + linia de atmosfera Atlas) */
.lm-intro-title { font-family: var(--serif); font-size: 1.7rem; font-weight: 600; line-height: 1.14; margin-top: 5vh; text-wrap: balance; }
.lm-intro-hook { font-family: var(--serif); font-size: 1.16rem; color: var(--ink-soft); line-height: 1.4; text-wrap: balance; max-width: 34ch; }
.lm-atlas { display: flex; gap: 10px; align-items: flex-start; }
.lm-av { width: 40px; height: 40px; border-radius: 50%; flex: none; overflow: hidden; background: linear-gradient(140deg, var(--brass), var(--indigo)); box-shadow: 0 2px 8px rgba(0,0,0,.12); display: grid; place-items: center; }
.lm-av img { width: 100%; height: 100%; object-fit: cover; }
.lm-bubble { background: var(--card); border: 1px solid var(--line); border-radius: 16px; border-top-left-radius: 4px; padding: 14px 16px; box-shadow: var(--shadow); font-size: 1.02rem; line-height: 1.6; }
.lm-bubble p + p { margin-top: 8px; }
/* imaginea nu se decupeaza niciodata: se afiseaza integral (contain), containerul se adapteaza.
   putin mai mica decat textul, ca sustine lectia fara sa o domine. */
.lm-ill { border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--line); background: var(--paper-2); box-shadow: var(--shadow); max-width: 86%; margin: 0 auto; display: grid; place-items: center; min-height: 120px; }
.lm-illimg { width: 100%; height: auto; object-fit: contain; display: block; }
.lm-ill-ph { color: var(--ink-faint); }
.fade-in { animation: fadein .5s ease; }
.lm-card { font-size: 1.02rem; line-height: 1.65; }
.lm-para { margin-top: 10px; }
.lm-cmp2 { display: grid; grid-template-columns: 1fr auto 1fr; align-items: stretch; gap: 8px; margin-top: 10px; }
.lm-cmp2-col { border: 1px solid var(--line); border-radius: 12px; padding: 12px; font-size: .92rem; }
.lm-cmp2-col.origin { background: color-mix(in srgb, var(--origin) 8%, var(--card)); border-color: color-mix(in srgb, var(--origin) 22%, var(--line)); }
.lm-cmp2-col.residence { background: color-mix(in srgb, var(--residence) 8%, var(--card)); border-color: color-mix(in srgb, var(--residence) 22%, var(--line)); }
.lm-cmp2-col .side { font-family: var(--mono); font-size: 10px; letter-spacing: .06em; text-transform: uppercase; margin-bottom: 6px; }
.lm-cmp2-col.origin .side { color: var(--origin); }
.lm-cmp2-col.residence .side { color: var(--residence); }
.lm-cmp-vs { align-self: center; justify-self: center; font-family: var(--mono); font-size: 9.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-faint); background: var(--paper-2); border-radius: 999px; padding: 4px 5px; }
/* diagrama comparativa: pe ecrane inguste, coloanele se stivuiesc; "vs" devine un divizor pe mijloc */
@media (max-width: 420px) { .lm-cmp2 { grid-template-columns: 1fr; } .lm-cmp-vs { padding: 3px 10px; } }

/* Exemplu real: carduri VERTICALE la latime plina (textul respira, nu 1 cuvant/rand) */
.lm-country-ex { display: flex; flex-direction: column; gap: 10px; margin-top: 12px; }
.lm-cex { border: 1px solid var(--line); border-radius: 12px; padding: 13px 16px; }
.lm-cex.origin { background: color-mix(in srgb, var(--origin) 8%, var(--card)); border-color: color-mix(in srgb, var(--origin) 22%, var(--line)); }
.lm-cex.residence { background: color-mix(in srgb, var(--residence) 8%, var(--card)); border-color: color-mix(in srgb, var(--residence) 22%, var(--line)); }
.lm-cex .cex-h { font-family: var(--mono); font-size: 11px; letter-spacing: .06em; text-transform: uppercase; margin-bottom: 5px; }
.lm-cex.origin .cex-h { color: var(--origin); }
.lm-cex.residence .cex-h { color: var(--residence); }
.lm-cex .cex-t { margin: 0; font-size: .97rem; line-height: 1.62; }

/* densitate text: mai mult spatiu alb intre paragrafe + termeni-cheie evidentiati */
.lm-card { --gap: 13px; }
.lm-para { margin: 0; line-height: 1.72; }
.lm-para b, .lm-card b { color: var(--ink); font-weight: 650; }

/* feedback contextual Atlas la "explica in cuvintele tale" */
/* rezumat final construit din rezultate REALE */
.cel-outcome { color: var(--ink-soft); text-align: center; max-width: 34ch; }
.cel-review { width: 100%; max-width: 340px; background: var(--paper-2); border: 1px solid var(--line); border-radius: 14px; padding: 13px 15px; display: flex; flex-direction: column; gap: 9px; }
.cel-review-item { font-size: .9rem; text-align: left; }
.cel-review-item .q { color: var(--ink-soft); }
.cel-review-item .a { margin-top: 2px; }
.cel-review-item .was { color: var(--bad); text-decoration: line-through; opacity: .8; }
.cel-review-item .arrow { color: var(--ink-faint); }
.cel-review-item b { color: var(--good); }
.lm-cmp-pt { padding: 3px 0; }
.lm-fact { border-radius: 14px; padding: 14px 16px; }
.lm-fact .fk { font-family: var(--mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 6px; }
.lm-fact p { line-height: 1.55; }
.lm-fact.know { background: color-mix(in srgb, var(--brass) 10%, var(--card)); border: 1px solid color-mix(in srgb, var(--brass) 30%, var(--line)); }
.lm-fact.know .fk { color: var(--brass); }
.lm-fact.miss { background: color-mix(in srgb, var(--warn) 10%, var(--card)); border: 1px solid color-mix(in srgb, var(--warn) 30%, var(--line)); }
.lm-fact.miss .fk { color: var(--warn); }
.lm-summary { margin: 8px 0 0; padding-left: 1.1em; }
.lm-summary li { margin: 7px 0; }
.lm-summary li::marker { color: var(--brass); }
.lm-diagram { margin-top: 12px; }
.lm-dtitle { font-family: var(--mono); font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-faint); margin-bottom: 10px; }

/* ax vertical (flow / timeline / cycle): linie trasata prin noduri */
.lm-rail { position: relative; display: flex; flex-direction: column; gap: 14px; }
.lm-rail-row { position: relative; display: flex; gap: 12px; align-items: flex-start; }
.lm-rail-row:not(:last-child)::before { content: ""; position: absolute; left: 12px; top: 24px; bottom: -16px; width: 2px; background: var(--brass); opacity: .3; }
.lm-rail-node { flex: none; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font-family: var(--mono); font-size: 12px; font-weight: 700; background: var(--brass); color: var(--on-accent); position: relative; z-index: 1; }
.lm-rail-body { padding-top: 2px; }
.lm-rail-at { font-family: var(--mono); font-size: 11px; letter-spacing: .03em; font-weight: 700; color: var(--brass-text); margin-bottom: 1px; }
.lm-rail-txt { font-size: .94rem; line-height: 1.45; }
/* timeline: noduri inelare (hollow) cu punct interior */
.lm-dg-timeline .lm-rail-node { background: var(--card); border: 2px solid var(--brass); }
.lm-dg-timeline .lm-rail-node::after { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--brass); }
/* cycle: linia devine punctata + eticheta "se reia" la final */
.lm-dg-cycle .lm-rail-row:not(:last-child)::before { background: none; width: 0; border-left: 2px dashed var(--brass); opacity: .4; }
.lm-rail-loop { display: inline-flex; align-items: center; gap: 6px; margin-left: 38px; font-family: var(--mono); font-size: 10.5px; letter-spacing: .06em; text-transform: uppercase; color: var(--brass-text); }
.lm-rail-loop::before { content: "\21BB"; font-size: 14px; line-height: 1; }

/* spectru (scale): doi poli + marcaj pe axa */
.lm-scale { padding: 2px 4px; }
.lm-scale-track { position: relative; height: 6px; border-radius: 999px; margin: 40px 10px 10px; background: linear-gradient(90deg, var(--origin), var(--residence)); }
.lm-scale-mark { position: absolute; top: 50%; transform: translate(-50%, -50%); display: grid; place-items: center; }
.lm-scale-dot { width: 18px; height: 18px; border-radius: 50%; background: var(--card); border: 3px solid var(--brass); box-shadow: var(--shadow); }
.lm-scale-lab { position: absolute; bottom: 18px; white-space: nowrap; font-family: var(--mono); font-size: 11px; font-weight: 700; color: var(--brass-text); background: var(--brass-tint); padding: 2px 8px; border-radius: 999px; }
.lm-scale-poles { display: flex; justify-content: space-between; gap: 12px; }
.lm-scale-pole { font-size: .84rem; color: var(--ink-faint); max-width: 45%; line-height: 1.3; }
.lm-scale-pole.l { text-align: left; } .lm-scale-pole.r { text-align: right; }

/* niveluri/tiere (levels): benzi cu accent lateral */
.lm-levels { display: flex; flex-direction: column; gap: 8px; }
.lm-level { background: var(--paper-2); border-left: 3px solid var(--brass); border-radius: 0 10px 10px 0; padding: 10px 12px; }
.lm-level-name { font-weight: 600; font-size: .95rem; line-height: 1.35; }
.lm-level-note { font-size: .85rem; color: var(--ink-faint); margin-top: 2px; line-height: 1.4; }
.lm-cont { margin-top: 18px; }

/* celebration */
.lm-cel { max-width: var(--maxw); margin: 0 auto; min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 24px; gap: 14px; }
.cel-burst { font-size: 64px; animation: pop .5s cubic-bezier(.2,1.4,.4,1); }
.lm-cel h1 { font-size: 1.7rem; }
.cel-xp { font-family: var(--serif); font-size: 2.6rem; font-weight: 700; color: var(--brass); font-variant-numeric: tabular-nums; }
.cel-stats { display: flex; flex-direction: column; gap: 8px; width: 100%; max-width: 320px; }
.cel-stat { display: flex; align-items: center; gap: 10px; justify-content: center; background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 11px 16px; box-shadow: var(--shadow); }
.cel-stat .em { font-size: 17px; }
.cel-rec { display: flex; gap: 10px; align-items: center; text-align: left; background: var(--ink); color: var(--paper); border-radius: 14px; padding: 14px 16px; width: 100%; max-width: 360px; }
.cel-rec .lm-av { width: 40px; height: 40px; }
@keyframes pop { from { transform: scale(.4); opacity: 0; } to { transform: scale(1); opacity: 1; } }

/* ================= BRAND: BUSOLA (acul) ================= */
.cmp { display: inline-grid; place-items: center; color: var(--ink); line-height: 0; }
.cmp svg { display: block; }
.cmp-needle { transform-origin: 24px 24px; }
.cmp-search .cmp-needle { animation: cmpSearch 2.6s ease-in-out infinite; }
.cmp-north .cmp-needle { animation: cmpNorth .9s cubic-bezier(.2,1.5,.3,1) both; }
@keyframes cmpSearch { 0%{transform:rotate(-42deg)} 25%{transform:rotate(55deg)} 50%{transform:rotate(-18deg)} 75%{transform:rotate(28deg)} 100%{transform:rotate(-42deg)} }
@keyframes cmpNorth { 0%{transform:rotate(200deg);opacity:.6} 100%{transform:rotate(0);opacity:1} }
@media (prefers-reduced-motion: reduce) { .cmp-search .cmp-needle, .cmp-north .cmp-needle { animation: none; } }
.atlas-mark { display: inline-grid; place-items: center; border-radius: 50%; background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow); flex: none; color: var(--ink); }

/* skills / domenii (busola mai precisa) */
.p-skills { display: flex; flex-direction: column; gap: 12px; }
.p-skill { display: flex; align-items: center; gap: 12px; }
.p-skill .sk-ic { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; font-size: 17px; background: color-mix(in srgb, var(--brass) 12%, var(--card)); flex: none; }
.p-skill .sk-lvl { font-family: var(--mono); font-size: 11px; color: var(--brass); }

/* celebration: skill/reper chips */
.cel-skills { display: flex; flex-direction: column; gap: 8px; width: 100%; max-width: 360px; }
.cel-skill { display: flex; align-items: center; gap: 10px; justify-content: center; background: color-mix(in srgb, var(--brass) 12%, var(--card)); border: 1px solid color-mix(in srgb, var(--brass) 32%, var(--line)); color: var(--ink); border-radius: 12px; padding: 11px 16px; font-size: .92rem; }
.cel-compass { animation: pop .5s cubic-bezier(.2,1.4,.4,1); color: var(--ink); }

/* lesson header title + skeleton bar */
.lm-title { font-family: var(--serif); font-weight: 600; font-size: 1rem; color: var(--ink); margin-bottom: 6px; text-wrap: balance; line-height: 1.2; }
.lm-skelbar { height: 5px; border-radius: 3px; background: var(--paper-2); overflow: hidden; }
.lm-skelbar span { display: block; height: 100%; width: 38%; background: var(--brass); border-radius: 3px; animation: skelSlide 1.2s ease-in-out infinite; }
@keyframes skelSlide { 0% { transform: translateX(-110%); } 100% { transform: translateX(330%); } }
@media (prefers-reduced-motion: reduce) { .lm-skelbar span { animation: none; } }

/* ================= FLASHCARDURI (flip 3D + swipe, memorare activa) ================= */
.fc { display: flex; flex-direction: column; min-height: 100dvh; }
#app:has(.fc) { padding-bottom: 0; }                    /* fullscreen: fara padding-ul de tabbar */
.fc-top { display: flex; align-items: center; gap: 12px; padding: calc(8px + env(safe-area-inset-top)) 2px 8px; }
.fc-progress { flex: 1; height: 6px; border-radius: 999px; background: var(--paper-2); overflow: hidden; }
.fc-progress-fill { display: block; height: 100%; width: 0; background: var(--brass); border-radius: 999px; transition: width .3s ease; }
.fc-left { flex: none; min-width: 24px; text-align: center; font-family: var(--mono); font-size: 13px; font-weight: 700; color: var(--ink-faint); font-variant-numeric: tabular-nums; }

.fc-stage { flex: 1; display: grid; place-items: center; padding: 10px 2px calc(16px + env(safe-area-inset-bottom)); perspective: 1500px; }

/* stratul de SWIPE (translateX + rotatie) separat de stratul de FLIP (rotateY), ca sa nu se bata cap in cap */
.fc-swipe { position: relative; width: 100%; max-width: 380px; touch-action: none; cursor: grab; user-select: none;
  opacity: 0; transform: translateY(10px); transition: opacity .28s ease, transform .28s cubic-bezier(.2,.8,.2,1); }
.fc-swipe.in { opacity: 1; transform: none; }
.fc-swipe:active { cursor: grabbing; }
.fc-swipe.gone-left { transition: transform .24s ease, opacity .24s ease; transform: translateX(-130%) rotate(-13deg) !important; opacity: 0; }
.fc-swipe.gone-right { transition: transform .24s ease, opacity .24s ease; transform: translateX(130%) rotate(13deg) !important; opacity: 0; }

.fc-card { position: relative; width: 100%; height: 60dvh; max-height: 540px; min-height: 340px;
  transform-style: preserve-3d; transition: transform .5s cubic-bezier(.2,.7,.2,1); }
.fc-card.flipped { transform: rotateY(180deg); }
.fc-face { position: absolute; inset: 0; backface-visibility: hidden; -webkit-backface-visibility: hidden;
  display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 16px;
  padding: 34px 26px; border-radius: var(--r-xl); background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow-lg); }
.fc-back { transform: rotateY(180deg); }
.fc-q { font-family: var(--serif); font-size: clamp(1.4rem, 6vw, 1.7rem); line-height: 1.3; color: var(--ink); }
.fc-a { font-size: clamp(1.05rem, 4.6vw, 1.25rem); line-height: 1.5; color: var(--ink); }
.fc-hint { position: absolute; bottom: 20px; left: 0; right: 0; display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  font-family: var(--mono); font-size: 10.5px; letter-spacing: .05em; text-transform: uppercase; color: var(--ink-faint); }

/* insigne de directie: apar cat timp tragi cardul (pe spate) */
.fc-badge { position: absolute; top: 20px; display: inline-flex; align-items: center; gap: 6px; z-index: 3;
  font-family: var(--mono); font-weight: 700; font-size: 12.5px; letter-spacing: .04em; text-transform: uppercase;
  padding: 7px 12px; border-radius: 999px; opacity: 0; pointer-events: none; }
.fc-badge.knew { right: 16px; color: var(--good); background: color-mix(in srgb, var(--good) 15%, var(--card)); border: 1.5px solid var(--good); }
.fc-badge.didnt { left: 16px; color: var(--warn); background: color-mix(in srgb, var(--warn) 15%, var(--card)); border: 1.5px solid var(--warn); }
.fc-swipe.to-knew .fc-face { border-color: var(--good); }
.fc-swipe.to-didnt .fc-face { border-color: var(--warn); }
.fc-empty-ic { display: grid; place-items: center; color: var(--brass); }
@media (prefers-reduced-motion: reduce) { .fc-card, .fc-swipe { transition: opacity .2s ease; } }

/* ================= TRASEU (expeditie) ================= */
.path { --gap: var(--s4); }
.path-top { display: flex; align-items: center; justify-content: space-between; padding-top: calc(var(--s2) + env(safe-area-inset-top)); }
.streak-card { display: flex; align-items: center; gap: 9px; background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 7px 13px; box-shadow: var(--shadow); }
.streak-card .fire { font-size: 20px; }
.streak-card .n { font-family: var(--serif); font-size: 1.35rem; font-weight: 700; color: var(--brass); line-height: 1; }
.streak-card .lbl { font-family: var(--mono); font-size: 9px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-faint); }

.overview { display: flex; align-items: center; gap: 14px; background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 16px; box-shadow: var(--shadow); }
.overview .ov-meta { font-family: var(--mono); font-size: 11px; color: var(--ink-faint); margin-top: 8px; }

.mod-head { display: flex; gap: 14px; align-items: flex-start; }
.mod-ic { width: 50px; height: 50px; border-radius: 14px; display: grid; place-items: center; font-size: 24px; background: color-mix(in srgb, var(--brass) 12%, var(--card)); border: 1px solid var(--line); flex: none; }
.mod-title { font-family: var(--serif); font-size: 1.22rem; font-weight: 600; }
.mod-desc { color: var(--ink-soft); font-size: .9rem; margin-top: 2px; }
.mod-meta { font-family: var(--mono); font-size: 11px; color: var(--ink-faint); margin-top: 9px; display: flex; gap: 12px; flex-wrap: wrap; }
.mod-meta b { color: var(--brass); }

.route { position: relative; display: flex; flex-direction: column; gap: 4px; margin: 12px 0 0; }
.route::before { content: ""; position: absolute; left: 13px; top: 24px; bottom: 24px; width: 2px; background: var(--line); }
.stop { display: grid; grid-template-columns: 28px 1fr; gap: 12px; width: 100%; text-align: left; background: none; border: none; padding: 0; cursor: pointer; font: inherit; color: inherit; }
.stop .rail { display: flex; justify-content: center; }
.stop .dot { width: 16px; height: 16px; border-radius: 50%; background: var(--paper-2); border: 2px solid var(--line); margin-top: 16px; z-index: 1; display: grid; place-items: center; font-size: 9px; color: var(--on-accent); position: relative; }
.stop.done .dot { background: var(--brass); border-color: var(--brass); }
.stop.done .st-check { animation: pop .4s cubic-bezier(.2,1.4,.4,1); }
.stop.current .dot { background: var(--brass); border-color: var(--brass); box-shadow: 0 0 0 5px var(--brass-tint); }
.stop-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 13px 14px; box-shadow: var(--shadow); transition: transform .08s; }
.stop:active .stop-card { transform: scale(.99); }
.stop.done .stop-card { opacity: .6; box-shadow: none; }
.stop.current .stop-card { border-color: var(--brass); border-width: 2px; padding: 16px; box-shadow: var(--shadow-lg); }
.stop-card .st-t { font-weight: 600; }
.stop-card .st-d { color: var(--ink-faint); font-size: .84rem; margin-top: 4px; line-height: 1.4; }
.stop-card .st-meta { font-family: var(--mono); font-size: 10.5px; color: var(--ink-faint); margin-top: 9px; display: flex; gap: 12px; }
.stop-card .st-min { opacity: .78; }  /* durata: informatie, nu accent */
.stop.current .st-cta { color: var(--brass); font-weight: 600; margin-top: 11px; display: inline-flex; align-items: center; gap: 4px; }

/* ---- Harta care se desfasoara: ceata, card sigilat, orizont ---- */
/* cararea se pierde intr-o ceata, fara capat vizibil */
.route-mist { position: relative; height: 74px; margin-top: 2px;
  -webkit-mask-image: linear-gradient(#000 0%, #000 26%, transparent 92%); mask-image: linear-gradient(#000 0%, #000 26%, transparent 92%); }
.route-mist::before { content: ""; position: absolute; left: 13px; top: -4px; height: 60px; width: 2px; background: var(--line); }
.route-mist .ghost { position: absolute; left: 7px; width: 14px; height: 14px; border-radius: 50%; background: var(--paper-2); border: 2px solid var(--line); }
.route-mist .g1 { top: 12px; } .route-mist .g2 { top: 38px; }
/* modulul urmator, SIGILAT: nume + teaser, fara lectii/progres/CTA, ne-interactiv */
.mod-sealed { position: relative; border: 1px dashed var(--line); border-radius: var(--r-lg); padding: 17px 19px; background: var(--paper-2); margin-top: 4px; }
.mod-sealed .seal-lock { position: absolute; top: 15px; right: 17px; color: var(--ink-faint); display: inline-flex; }
.mod-sealed .seal-eyebrow { font-family: var(--mono); font-size: 10px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-faint); }
.mod-sealed .seal-name { font-family: var(--serif); font-size: 1.18rem; font-weight: 600; color: var(--ink-soft); margin-top: 2px; }
.mod-sealed .seal-teaser { color: var(--ink-faint); font-size: .88rem; margin-top: 4px; filter: blur(.5px); opacity: .92; }
.mod-sealed .seal-when { font-family: var(--mono); font-size: 9.5px; letter-spacing: .05em; text-transform: uppercase; color: var(--ink-faint); margin-top: 11px; opacity: .8; }
/* orizont cand nu mai e definit un modul urmator (BUSOLA creste) */
.path-horizon { position: relative; padding: 10px 0 30px; text-align: center; }
.path-horizon .ph-txt { font-family: var(--serif); font-style: italic; color: var(--ink-faint); font-size: .9rem; max-width: 34ch; margin: 0 auto; }
/* revelare: opririle apar cu un fade-up bland, ca o harta care se desfasoara */
.route .stop { animation: stopReveal .5s cubic-bezier(.2,.8,.2,1) both; animation-delay: calc(var(--o, 0) * .06s); }
@keyframes stopReveal { from { opacity: 0; transform: translateY(10px); } }
@media (prefers-reduced-motion: reduce) { .route .stop { animation: none; } }

/* ================= COMPARATII (explorare) ================= */
.cmp-switch { display: flex; align-items: stretch; gap: 8px; }
.cmp-flag { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 2px; background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 12px 8px; box-shadow: var(--shadow); position: relative; }
.cmp-flag .fl { font-size: 26px; }
.cmp-flag .nm { font-weight: 600; font-size: .9rem; text-align: center; }
.cmp-flag.origin { border-top: 3px solid var(--origin); }
.cmp-flag.residence { border-top: 3px solid var(--residence); }
.cmp-flag.pick { cursor: pointer; }
.cmp-flag .chg { position: absolute; top: 6px; right: 8px; color: var(--brass); font-size: 12px; }
.cmp-swap { border: 1px solid var(--line); background: var(--card); border-radius: var(--r); width: 44px; font-size: 18px; color: var(--ink-soft); cursor: pointer; flex: none; }
.cmp-topic { display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 14px var(--s3); box-shadow: var(--shadow); cursor: pointer; font: inherit; color: inherit; }
.cmp-topic:hover { border-color: var(--brass-soft); }
.cmp-topic-ic { width: 40px; height: 40px; border-radius: 11px; display: grid; place-items: center; font-size: 19px; background: var(--paper-2); flex: none; }
.cmp-topic .ct { font-weight: 600; }
.cmp-topic .cmp-arrow { margin-left: auto; color: var(--brass); }

/* verdict */
.cmp-verdict { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 4px; }
.cmp-vcol { border: 1px solid var(--line); border-radius: 12px; padding: 12px; }
.cmp-vcol.origin { background: color-mix(in srgb, var(--origin) 8%, var(--card)); }
.cmp-vcol.residence { background: color-mix(in srgb, var(--residence) 8%, var(--card)); }
.cmp-vcol .side { font-weight: 600; font-size: .9rem; margin-bottom: 8px; }
.cmp-vcol ul { list-style: none; padding: 0; margin: 0; }
.cmp-vcol li { padding: 3px 0 3px 18px; position: relative; font-size: .88rem; }
.cmp-vcol li::before { content: "✓"; position: absolute; left: 0; color: var(--good); font-weight: 700; }
.cmp-vcol.origin li::before { color: var(--origin); }
.cmp-vcol.residence li::before { color: var(--residence); }
.cmp-key { margin-top: 12px; padding: 13px 15px; border-radius: 12px; background: var(--ink); color: var(--paper); }
.cmp-key .k { font-family: var(--mono); font-size: 10px; letter-spacing: .1em; text-transform: uppercase; color: var(--brass-soft); margin-bottom: 5px; }

/* callouts */
.cmp-callout { border-radius: 14px; padding: 14px 16px; }
.cmp-callout .co-k { font-family: var(--mono); font-size: 11px; letter-spacing: .06em; text-transform: uppercase; margin-bottom: 6px; }
.cmp-callout p, .cmp-callout li { line-height: 1.55; }
.cmp-callout ul { margin: 0; padding-left: 1.1em; }
.cmp-foryou { background: color-mix(in srgb, var(--brass) 10%, var(--card)); border: 1px solid color-mix(in srgb, var(--brass) 28%, var(--line)); }
.cmp-foryou .co-k { color: var(--brass); }
.cmp-exc { background: color-mix(in srgb, var(--warn) 10%, var(--card)); border: 1px solid color-mix(in srgb, var(--warn) 28%, var(--line)); }
.cmp-exc .co-k { color: var(--warn); }

/* ================= MOMENTE MEMORABILE (overlay) ================= */
.moment { position: fixed; inset: 0; z-index: 400; display: grid; place-items: center; text-align: center; padding: 28px;
  background: color-mix(in srgb, var(--paper) 93%, transparent); backdrop-filter: blur(8px); opacity: 0; transition: opacity .35s; }
.moment.in { opacity: 1; }
.moment-inner { display: flex; flex-direction: column; align-items: center; gap: 10px; max-width: 380px; animation: momentUp .55s cubic-bezier(.2,1.15,.3,1) both; }
.moment-compass { color: var(--ink); }
.moment h1 { font-size: 1.9rem; text-wrap: balance; }
.moment-sub { color: var(--ink-soft); max-width: 32ch; line-height: 1.5; }
@keyframes momentUp { from { transform: translateY(22px); opacity: 0; } to { transform: none; opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .moment-inner { animation: none; } }

/* compare: impact badge, key card, myth, if-changes, aha */
.cmp-impact { border-radius: 14px; padding: 12px 14px; border: 1px solid var(--line); }
.cmp-impact .ci-row { display: flex; align-items: center; gap: 8px; font-size: .95rem; }
.cmp-impact .ci-row .em { font-size: 17px; }
.cmp-impact .ci-why { color: var(--ink-soft); font-size: .88rem; margin-top: 6px; line-height: 1.5; }
.cmp-impact.high { background: color-mix(in srgb, var(--good) 12%, var(--card)); border-color: color-mix(in srgb, var(--good) 34%, var(--line)); }
.cmp-impact.high .ci-row b { color: var(--good); }
.cmp-impact.medium { background: color-mix(in srgb, var(--warn) 12%, var(--card)); border-color: color-mix(in srgb, var(--warn) 32%, var(--line)); }
.cmp-impact.medium .ci-row b { color: var(--warn); }
.cmp-impact.low { background: var(--paper-2); }
.cmp-key { padding: 14px 16px; border-radius: 12px; background: var(--ink); color: var(--paper); }
.cmp-key .k { font-family: var(--mono); font-size: 10px; letter-spacing: .1em; text-transform: uppercase; color: var(--brass-soft); margin-bottom: 6px; }
.cmp-key p { font-family: var(--serif); font-size: 1.12rem; line-height: 1.4; }
.cmp-myth { background: color-mix(in srgb, var(--indigo) 9%, var(--card)); border: 1px solid color-mix(in srgb, var(--indigo) 26%, var(--line)); }
.cmp-myth .co-k { color: var(--indigo); }
.cmp-if { background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow); }
.cmp-if .co-k { color: var(--residence); }
.cmp-if-list { display: flex; flex-direction: column; gap: 8px; margin-top: 4px; }
.cmp-if-item { padding: 10px 12px; border-radius: 10px; background: var(--paper-2); }
.cmp-if-item .sc { font-weight: 600; font-size: .9rem; }
.cmp-if-item .ef { color: var(--ink-soft); font-size: .86rem; margin-top: 3px; }
.cmp-aha { border-radius: 16px; padding: 16px 18px; background: linear-gradient(140deg, color-mix(in srgb, var(--brass) 16%, var(--card)), var(--card)); border: 1px solid color-mix(in srgb, var(--brass) 34%, var(--line)); box-shadow: var(--shadow-lg); }
.cmp-aha .co-k { color: var(--brass); font-family: var(--mono); font-size: 11px; letter-spacing: .06em; text-transform: uppercase; margin-bottom: 7px; }
.cmp-aha p { font-family: var(--serif); font-size: 1.08rem; line-height: 1.45; }

/* ================= HOME (motivational) ================= */
.home { --gap: var(--s3); }
.home-hero h1 { font-size: 1.8rem; }
.home-motiv { color: var(--ink-soft); font-size: 1.05rem; margin-top: 4px; text-wrap: balance; }
/* HOOK-ul de curiozitate: elementul-vedeta din Home, nu durata */
.home-hook { font-family: var(--serif); font-size: 1.22rem; line-height: 1.38; color: var(--ink); margin-top: 8px; text-wrap: balance; max-width: 30ch; }
.home-atlas { margin-top: 2px; }

/* SKELETON: linii care pulseaza in locul textului AI, cat se hidrateaza (caz rar: cache complet gol).
   Restul Home e deja complet si interactiv; doar aceste linii asteapta. */
.sk-lines { display: flex; flex-direction: column; gap: 8px; margin-top: 8px; }
.home-hook.sk-lines { max-width: 30ch; }
.sk-line { height: 13px; width: 100%; border-radius: 7px; background:
  linear-gradient(90deg, var(--paper-2) 25%, color-mix(in srgb, var(--paper-2) 55%, var(--card)) 37%, var(--paper-2) 63%);
  background-size: 400% 100%; animation: sk-shimmer 1.4s ease infinite; }
.sk-line.short { width: 60%; }
.sk-line.sk-title { height: 22px; width: 78%; border-radius: 8px; }
@keyframes sk-shimmer { 0% { background-position: 100% 0; } 100% { background-position: 0 0; } }

/* singurul "loading" ramas: un mesaj care EXPLICA ce se pregateste. Pasii apar treptat. */
.home-hint { margin-top: 14px; }
.hh-title { font-family: var(--mono); font-size: 12px; letter-spacing: .04em; color: var(--muted); }
.hh-steps { list-style: none; margin: 8px 0 0; padding: 0; display: flex; flex-direction: column; gap: 5px; }
.hh-steps li { display: flex; align-items: center; gap: 7px; font-size: 13px; color: var(--muted); opacity: 0; transform: translateY(2px); animation: hh-in .45s ease forwards; }
.hh-check { color: var(--brass); font-weight: 700; }
@keyframes hh-in { to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .sk-line { animation: none; opacity: .6; } .hh-steps li { animation: none; opacity: 1; transform: none; } }
.home-atlas .lm-bubble { font-size: .94rem; }
/* durata: discreta, sub CTA */
.hl-tag { color: var(--brass-text); }
.hl-min { opacity: .8; }

.home-lesson { position: relative; border-radius: var(--r-xl); padding: var(--s4); box-shadow: var(--shadow-lg);
  background: linear-gradient(155deg, color-mix(in srgb, var(--brass) 14%, var(--card)), var(--card) 62%); border: 1px solid var(--line); overflow: hidden; }
.home-lesson::after { content: ""; position: absolute; top: -50px; right: -50px; width: 170px; height: 170px; border-radius: 50%; background: radial-gradient(circle, color-mix(in srgb, var(--indigo) 20%, transparent), transparent 70%); pointer-events: none; }
.hl-eyebrow { font-family: var(--mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--brass); position: relative; z-index: 1; display: inline-flex; align-items: center; gap: 5px; }
.hl-eyebrow .bic { display: inline-flex; }
.home-lesson h2 { font-size: 1.5rem; margin-top: 8px; position: relative; z-index: 1; }
.hl-why { color: var(--ink-soft); margin-top: 8px; position: relative; z-index: 1; max-width: 40ch; }
.hl-meta { display: flex; gap: 14px; font-family: var(--mono); font-size: 12px; color: var(--ink-faint); margin-top: 14px; position: relative; z-index: 1; }
.hl-cta { margin-top: 16px; position: relative; z-index: 1; }

.home-tile { display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 14px var(--s3); box-shadow: var(--shadow); cursor: pointer; font: inherit; color: inherit; }
.home-tile:hover { border-color: var(--brass-soft); }
.home-tile .ht-ic { width: 40px; height: 40px; border-radius: 11px; display: grid; place-items: center; font-size: 19px; background: var(--paper-2); flex: none; color: var(--brass); }
.home-tile .ht-ic .bic { display: inline-flex; }
.home-tile .ht-t { font-weight: 600; }
.home-tile .ht-d { color: var(--ink-faint); font-size: .84rem; margin-top: 2px; }
.home-tile .ht-arrow { color: var(--brass); margin-left: auto; }

.home-progress { display: flex; align-items: center; gap: 14px; background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 16px; box-shadow: var(--shadow); }
.home-progress .hp-of { font-weight: 600; }
.home-progress .hp-eyebrow { font-size: .82rem; font-weight: 500; color: var(--brass); }
.home-progress .hp-mod { font-family: var(--serif); font-size: 1.16rem; font-weight: 600; margin-top: 1px; }
.home-progress .hp-sub { font-size: .82rem; color: var(--muted); margin-top: 3px; line-height: 1.45; }
.home-progress .ring > i { color: var(--brass); }

.home-yest { background: var(--paper-2); border-radius: var(--r); padding: 11px 14px; font-size: .88rem; color: var(--ink-soft); }
.home-footer { text-align: center; color: var(--brass); font-weight: 600; font-size: .92rem; padding: 6px 0 2px; }

/* ================= POLISH: microanimatii ================= */
/* carduri Home care apar esalonat (fade + slide) */
.home > * { animation: rise .5s cubic-bezier(.2,.8,.2,1) both; }
.home > *:nth-child(1) { animation-delay: 0s; }
.home > *:nth-child(2) { animation-delay: .05s; }
.home > *:nth-child(3) { animation-delay: .1s; }
.home > *:nth-child(4) { animation-delay: .16s; }
.home > *:nth-child(5) { animation-delay: .22s; }
.home > *:nth-child(6) { animation-delay: .28s; }
.home > *:nth-child(7) { animation-delay: .34s; }
.home > *:nth-child(8) { animation-delay: .4s; }
.home > *:nth-child(9) { animation-delay: .46s; }
/* flacara de streak pulseaza discret */
.streak-card .fire { animation: firePulse 2.6s ease-in-out infinite; transform-origin: center bottom; }
@keyframes firePulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.13); } }
/* bara de progres se umple animat */
.home-progress .bar > span, .home-lesson .bar > span { transition: width .8s cubic-bezier(.2,.8,.2,1); }
@media (prefers-reduced-motion: reduce) { .home > *, .streak-card .fire { animation: none; } }

/* ---------- Atlas ca overlay (bottom-sheet peste orice ecran) ---------- */
.atlas-sheet-bd { position: fixed; inset: 0; z-index: 200; display: flex; align-items: flex-end; justify-content: center;
  background: color-mix(in srgb, var(--ink) 42%, transparent); opacity: 0; transition: opacity .24s ease; }
.atlas-sheet-bd.in { opacity: 1; }
.atlas-sheet { width: 100%; max-width: 620px; height: min(82vh, 760px); background: var(--paper); border-radius: 22px 22px 0 0;
  box-shadow: var(--shadow-lg); display: flex; flex-direction: column; overflow: hidden;
  transform: translateY(100%); transition: transform .28s cubic-bezier(.2,.8,.2,1); }
.atlas-sheet-bd.in .atlas-sheet { transform: translateY(0); }
.as-head { position: relative; display: flex; align-items: center; gap: 10px; padding: 16px 16px 12px; border-bottom: 1px solid var(--line); }
.as-grip { position: absolute; top: 7px; left: 50%; transform: translateX(-50%); width: 40px; height: 4px; border-radius: 3px; background: var(--paper-2); }
.as-id { display: flex; align-items: center; gap: 10px; flex: 1; }
.as-nm { font-weight: 700; font-size: 1rem; }
.as-role { font-size: .8rem; color: var(--ink-faint); }
.as-x { border: 1px solid var(--line); background: var(--card); width: 34px; height: 34px; border-radius: 50%; font-size: 14px; cursor: pointer; color: var(--ink-soft); flex: none; }
.as-body { flex: 1; overflow-y: auto; -webkit-overflow-scrolling: touch; display: flex; flex-direction: column; gap: 12px; padding: 16px; }
.me-row { display: flex; justify-content: flex-end; }
.as-chips { display: flex; flex-wrap: wrap; gap: 8px; padding: 4px 16px 10px; }
.as-chip { border: 1px solid var(--line); background: var(--card); color: var(--ink-soft); font-size: .84rem; padding: 8px 12px; border-radius: 999px; cursor: pointer; transition: border-color .15s, color .15s; }
.as-chip:hover { border-color: var(--brass); color: var(--ink); }
.as-composer { display: flex; align-items: flex-end; gap: 8px; padding: 10px 12px calc(10px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); background: var(--paper); }
.as-ta { flex: 1; resize: none; border: 1px solid var(--line); background: var(--card); border-radius: 18px; padding: 11px 14px; font: inherit; font-size: 16px; color: var(--ink); max-height: 120px; }
.as-ta:focus { outline: none; border-color: var(--brass); }
.as-send { width: 42px; height: 42px; border-radius: 50%; font-size: 18px; flex: none; padding: 0; }

/* ---------- card de instalare PWA (in Home, intre sectiuni, NU peste bottom nav) ---------- */
.install-card { display: flex; align-items: center; gap: 12px; background: var(--card); border: 1px solid var(--line);
  border-radius: 16px; padding: 13px 14px; position: relative; }
.ic-icon { width: 44px; height: 44px; border-radius: 11px; flex: none; }
.ic-txt { flex: 1; display: flex; flex-direction: column; line-height: 1.34; min-width: 0; }
.ic-txt b { font-size: .96rem; }
.ic-txt span { font-size: .82rem; color: var(--ink-faint); }
.ic-cta { flex: none; padding: 9px 15px; font-size: .88rem; }
.ic-x { position: absolute; top: 6px; right: 8px; font: inherit; font-size: 12px; cursor: pointer; color: var(--ink-faint); background: transparent; border: 0; width: 26px; height: 26px; border-radius: 7px; }
.ic-x:hover { background: var(--paper-2); }

/* ---------- bottom sheet pasi iOS ---------- */
.ios-sheet-bd { position: fixed; inset: 0; z-index: 220; display: flex; align-items: flex-end; justify-content: center;
  background: color-mix(in srgb, var(--ink) 44%, transparent); opacity: 0; transition: opacity .22s; }
.ios-sheet-bd.in { opacity: 1; }
.ios-sheet { width: 100%; max-width: 460px; background: var(--paper); border-radius: 22px 22px 0 0; box-shadow: var(--shadow-lg);
  padding: 10px 20px calc(20px + env(safe-area-inset-bottom)); text-align: center;
  transform: translateY(100%); transition: transform .28s cubic-bezier(.2,.8,.2,1); display: flex; flex-direction: column; align-items: center; gap: 10px; }
.ios-sheet-bd.in .ios-sheet { transform: translateY(0); }
.ios-grip { width: 40px; height: 4px; border-radius: 3px; background: var(--paper-2); }
.ios-mark { width: 48px; height: 48px; border-radius: 12px; margin-top: 4px; }
.ios-title { font-family: var(--serif); font-size: 1.15rem; font-weight: 700; text-wrap: balance; }
.ios-steps { list-style: none; margin: 6px 0 8px; padding: 0; width: 100%; display: flex; flex-direction: column; gap: 12px; text-align: left; }
.ios-steps li { display: flex; align-items: center; gap: 12px; font-size: .96rem; }
.ios-n { flex: none; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: var(--brass-tint); color: var(--brass-text); font-family: var(--mono); font-weight: 700; font-size: 13px; }

/* ---------- notificare de actualizare (elegant, tap = actualizeaza) ---------- */
.sw-toast { position: fixed; left: 50%; bottom: calc(var(--tabbar-h, 0px) + 16px + env(safe-area-inset-bottom));
  transform: translate(-50%, 140%); z-index: 190; display: inline-flex; align-items: center; gap: 10px; cursor: pointer;
  background: var(--ink); color: var(--paper); padding: 12px 16px; border-radius: 999px; box-shadow: var(--shadow-lg);
  font-size: .9rem; max-width: calc(100vw - 32px); opacity: 0; transition: transform .3s cubic-bezier(.2,.8,.2,1), opacity .3s; }
.sw-toast.in { transform: translate(-50%, 0); opacity: 1; }
.sw-toast-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--brass); flex: none; box-shadow: 0 0 0 0 var(--brass); animation: swpulse 1.8s infinite; }
.sw-toast-txt { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sw-toast-cta { font-weight: 700; color: var(--brass); flex: none; }
@keyframes swpulse { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--brass) 60%, transparent); } 70% { box-shadow: 0 0 0 7px transparent; } 100% { box-shadow: 0 0 0 0 transparent; } }
@media (prefers-reduced-motion: reduce) { .sw-toast-dot { animation: none; } }

/* ---------- contrast AA: textul mic teal foloseste varianta inchisa (--brass-text) ---------- */
a,
.eyebrow, .kicker, .brand, .p-group, .p-edit, .p-skill .sk-lvl, .hl-eyebrow,
.home-footer, .cmp-aha .co-k, .cmp-foryou .co-k, .core-list .n, .p-name-row .pen,
.lm-fact.know .fk, .st-cta, .cap-card .car, .mod-meta b, .cmp-takeaway b, .cmp-flag .chg {
  color: var(--brass-text);
}
