/* =====================================================================
   Meseria Mea – platforma de cursuri (front).
   Culorile vin din brandbook-ul AED 2026 (vezi sectiunea "Brand AED" de
   la final): Albastru Regal, Galben Auriu, Rosu Intens + fundaluri pastel,
   Montserrat Bold pe titluri, Inter pe text, panglica tricolora.
   Mobile-first, fara build (CSS simplu servit din public/).
   ===================================================================== */

:root {
    /* Brandbook AED 2026 - culorile principale (drapelul R. Moldova) */
    --brand-blue: #1C4CB7;     /* Albastru Regal */
    --brand-yellow: #FFC200;   /* Galben Auriu */
    --brand-red: #E51F1F;      /* Rosu Intens */
    --brand-gray: #515151;
    --brand-black: #000000;
    /* fundaluri pentru materiale */
    --bg-sky: #0D8AD6;
    --bg-violet: #00A6B8;
    --bg-cyan: #B6F8FF;
    --bg-lilac: #F4DCFF;
    --bg-pink: #FFDCE0;
    --bg-cream: #FFFCC0;

    /* numele vechi ale variabilelor raman, dar arata acum spre brand */
    --violet: var(--brand-blue);
    --violet-700: #163D93;
    --violet-500: var(--bg-sky);
    --violet-50: #EEF2FB;
    --violet-100: #DCE5F7;
    --fuchsia: var(--bg-violet);
    --ink: #111111;
    --ink-2: var(--brand-gray);
    --muted: #5C5C5C;
    --muted-2: #8C8C8C;
    --line: #E9ECF2;
    --surface: #FFFFFF;
    --page: #FFFFFF;
    --slate-900: #0F172A;
    --amber: var(--brand-yellow);
    --green: #16A34A;
    --green-50: #ECFDF3;
    --red: var(--brand-red);
    --red-50: #FEF2F2;

    --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    --font-title: "Montserrat", "Inter", system-ui, sans-serif;
    --r: 6px;
    --r-lg: 10px;
    --shadow: 0 0 3px rgba(60, 72, 88, .15);
    --shadow-md: 0 5px 13px rgba(60, 72, 88, .2);
    --container: 1140px;
    --header-h: 72px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; overflow-x: clip; }
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
body { margin: 0; font-family: var(--font); font-size: 16px; line-height: 1.6; color: var(--ink); background: var(--page); -webkit-font-smoothing: antialiased; }
img, video, iframe { max-width: 100%; }
img { height: auto; display: block; }
a { color: var(--violet); text-decoration: none; transition: color .2s; }
a:hover { color: var(--violet-700); }
button { font: inherit; }
:focus-visible { outline: 2px solid var(--violet); outline-offset: 2px; border-radius: 4px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: 12px; top: -60px; background: var(--violet); color: #fff; padding: 10px 14px; border-radius: var(--r); z-index: 100; }
.skip-link:focus { top: 12px; color: #fff; }

h1, h2, h3, h4 { color: var(--ink); line-height: 1.25; margin: 0 0 .5em; font-weight: 600; }
h1 { font-size: clamp(2rem, 5.2vw, 3rem); line-height: 1.3; }
h2 { font-size: clamp(1.5rem, 3.2vw, 1.875rem); }
h3 { font-size: 1.125rem; }
p { margin: 0 0 1em; }
.lead { font-size: 1.0625rem; color: var(--muted); max-width: 60ch; }
.muted { color: var(--muted); }
.small { font-size: .875rem; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 16px; }
@media (min-width: 768px) { .container { padding: 0 24px; } }

.section { padding: 64px 0; }
@media (min-width: 900px) { .section { padding: 96px 0; } }
.section--white { background: var(--surface); }
.section--tint { background: var(--violet-50); }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 28px; flex-wrap: wrap; }
.section-head h2 { margin: 0; }
.section-head p { margin: 6px 0 0; color: var(--muted); max-width: 60ch; }
.section-title { text-align: center; max-width: 620px; margin: 0 auto 36px; }
.section-title h2 { margin-bottom: 12px; }
.section-title p { color: var(--muted); margin: 0; }

/* ---------- Butoane ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 42px; padding: 8px 20px;
    border-radius: var(--r); border: 1px solid transparent; font-weight: 600; font-size: .9375rem; letter-spacing: .01em;
    cursor: pointer; transition: all .3s; white-space: nowrap; text-decoration: none; }
.btn .mi { font-size: 19px; }
.btn-primary, .btn-yellow { background: var(--violet); border-color: var(--violet); color: #fff; }
.btn-primary:hover, .btn-yellow:hover { background: var(--violet-700); border-color: var(--violet-700); color: #fff; }
.btn-soft { background: var(--violet-50); border-color: var(--violet-100); color: var(--violet); }
.btn-soft:hover { background: var(--violet); color: #fff; }
.btn-ghost { background: #fff; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--violet); color: var(--violet); }
.btn-dark { background: var(--ink); color: #fff; border-color: var(--ink); }
.btn-dark:hover { background: #000; color: #fff; }
.btn-amber { background: var(--amber); border-color: var(--amber); color: #111; }
.btn-amber:hover { background: #F0B400; color: #111; }
.btn-success { background: var(--green); color: #fff; }
.btn-sm { min-height: 34px; padding: 5px 14px; font-size: .8125rem; }
.btn-block { width: 100%; }
.btn[disabled], .btn.is-disabled { opacity: .5; pointer-events: none; }
.link-arrow { font-weight: 600; font-size: .9375rem; display: inline-flex; align-items: center; gap: 4px; }

.mi { font-family: "Material Symbols Rounded"; font-weight: normal; font-style: normal; font-size: 22px; line-height: 1; letter-spacing: normal;
    text-transform: none; display: inline-block; white-space: nowrap; direction: ltr; -webkit-font-feature-settings: "liga"; font-feature-settings: "liga";
    font-variation-settings: "FILL" 0, "wght" 400;
    /* pana se incarca fontul, numele iconitei (ex. "chevron_right") nu are voie sa impinga pagina in lateral */
    width: 1em; overflow: hidden; flex-shrink: 0; vertical-align: middle; }
.mi.fill { font-variation-settings: "FILL" 1, "wght" 400; }

/* ---------- Header ---------- */
.site-header { position: -webkit-sticky; position: sticky; top: 0; z-index: 40; background: #fff; box-shadow: 0 0 3px rgba(60, 72, 88, .15); }
.site-header .container { height: var(--header-h); display: flex; align-items: center; gap: 16px; }
.brand { display: inline-flex; align-items: center; gap: 8px; color: var(--ink); flex-shrink: 0; }
.brand:hover { color: var(--ink); }
.brand img { height: 30px; width: auto; }
.brand-name { font-weight: 700; font-size: 1.375rem; letter-spacing: -.02em; }
.brand-name span { color: var(--violet); }
.main-nav { display: none; gap: 2px; margin-left: 24px; }
.main-nav a { white-space: nowrap; padding: 8px 12px; color: var(--ink); font-weight: 500; font-size: .9375rem; letter-spacing: .01em; }
.main-nav a:hover, .main-nav a.is-active { color: var(--violet); }
.header-actions { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.header-search { display: none; }
.icon-btn { width: 38px; height: 38px; border-radius: 50%; border: 0; background: transparent; display: inline-grid; place-items: center; color: var(--ink); cursor: pointer; }
.icon-btn:hover { color: var(--violet); background: var(--violet-50); }
.points-chip { display: inline-flex; align-items: center; gap: 4px; height: 36px; padding: 0 12px 0 8px; border-radius: 999px; background: var(--violet); color: #fff; font-weight: 600; font-size: .875rem; }
.points-chip:hover { color: #fff; background: var(--violet-700); }
.points-chip .mi { font-size: 18px; }
.avatar { width: 36px; height: 36px; border-radius: 50%; background: var(--violet-100); color: var(--violet); display: inline-grid; place-items: center; font-weight: 700; font-size: .8rem; overflow: hidden; flex-shrink: 0; border: 2px solid #fff; box-shadow: var(--shadow); }
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.avatar-lg { width: 72px; height: 72px; font-size: 1.4rem; }
.header-login { display: none; }
@media (min-width: 992px) {
    .main-nav { display: flex; }
    .header-login { display: inline-flex; }
    .header-search { display: block; position: relative; }
    .header-search input { width: 200px; height: 38px; border-radius: 999px; border: 1px solid var(--line); background: #fff; padding: 0 14px 0 38px; font: inherit; font-size: .875rem; color: var(--ink); }
    .header-search input:focus { outline: none; border-color: var(--violet); }
    .header-search .mi { position: absolute; left: 12px; top: 9px; color: var(--muted-2); font-size: 20px; }
    .menu-toggle { display: none !important; }
}

.drawer { position: fixed; inset: 0; z-index: 60; display: none; }
.drawer.is-open { display: block; }
.drawer-backdrop { position: absolute; inset: 0; background: rgba(15, 23, 42, .5); }
.drawer-panel { position: absolute; right: 0; top: 0; bottom: 0; width: min(340px, 88vw); background: #fff; padding: 16px; display: flex; flex-direction: column; gap: 4px; overflow-y: auto; animation: drawerIn .2s ease-out; }
@keyframes drawerIn { from { transform: translateX(24px); opacity: 0; } to { transform: none; opacity: 1; } }
.drawer-panel a.nav-item { display: flex; align-items: center; gap: 12px; padding: 11px 12px; border-radius: var(--r); color: var(--ink); font-weight: 500; }
.drawer-panel a.nav-item:hover, .drawer-panel a.nav-item.is-active { background: var(--violet-50); color: var(--violet); }
.drawer-panel form { margin: 4px 0 10px; }
.drawer-panel input[type=search] { width: 100%; height: 44px; border-radius: var(--r); border: 1px solid var(--line); padding: 0 14px; font: inherit; }

.drawer-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 6px; }
.drawer-user { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: var(--r); background: var(--violet-50); color: var(--ink); margin-bottom: 6px; }
.drawer-user:hover { color: var(--ink); background: var(--violet-100); }
.drawer-user > span:nth-child(2) { flex: 1; min-width: 0; line-height: 1.25; }
.drawer-user b { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.drawer-user small { color: var(--muted); font-size: .8125rem; }
.drawer-user .mi { color: var(--violet); }
.drawer-group { display: grid; gap: 2px; padding: 6px 0; border-top: 1px solid var(--line); }
.drawer-main { border-top: 0; }
.drawer-label { font-size: .75rem; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; color: var(--muted-2); padding: 8px 12px 4px; }
.drawer-panel .nav-item .mi { color: var(--muted); font-size: 22px; }
.drawer-panel .nav-item.is-active .mi, .drawer-panel .nav-item:hover .mi { color: var(--violet); }
.drawer-actions { display: grid; gap: 8px; padding: 12px 0; border-top: 1px solid var(--line); }
.drawer-foot { margin-top: auto; padding-top: 14px; border-top: 1px solid var(--line); display: grid; gap: 8px; font-size: .8125rem; color: var(--muted); }
.drawer-foot a { display: inline-flex; align-items: center; gap: 8px; color: var(--ink-2); word-break: break-all; }
.drawer-foot a .mi { font-size: 18px; color: var(--violet); }
.drawer-foot p { margin: 4px 0 0; }
.drawer-foot p a { display: inline; color: var(--violet); font-weight: 600; white-space: nowrap; word-break: normal; }
/* pe telefon linkurile principale sunt in bara de jos; in meniu raman cele secundare */

/* ---------- Progres (bara violet) ---------- */
.tape { position: relative; height: 8px; border-radius: 999px; background: var(--violet-100); overflow: hidden; }
.tape-fill { height: 100%; background: var(--violet); border-radius: 999px; transition: width .6s ease; }
.tape.is-done .tape-fill { background: var(--green); }
.tape-lg { height: 10px; }
.tape-meta { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; font-size: .8125rem; color: var(--muted); margin-top: 6px; }
.tape-meta strong { color: var(--ink); font-weight: 600; }

/* ---------- Hero (home) ---------- */
.hero { background: var(--violet-50); overflow: hidden; position: relative; }
.hero .container { display: grid; grid-template-columns: minmax(0, 1fr); gap: 40px; padding-top: 48px; padding-bottom: 56px; align-items: center; }
@media (min-width: 992px) { .hero .container { grid-template-columns: 1fr 1fr; padding-top: 72px; padding-bottom: 96px; min-height: calc(100vh - var(--header-h)); max-height: 860px; } }
.hero h1 { margin-bottom: 18px; font-weight: 700; }
.hl { position: relative; display: inline-block; color: #fff; padding: 0 8px; margin: 0 2px; z-index: 0; }
.hl::before { content: ""; position: absolute; inset: -4px 0; z-index: -1; background: linear-gradient(to right, var(--violet), var(--fuchsia)); transform: rotate(-3deg) skewX(-6deg); border-radius: 2px; }
.hero .lead { margin-bottom: 26px; color: var(--muted); }
.hero-search { display: flex; gap: 6px; background: #fff; border-radius: var(--r); padding: 6px; max-width: 520px; box-shadow: var(--shadow); }
.hero-search .mi { align-self: center; margin-left: 8px; color: var(--muted-2); }
.hero-search input { flex: 1; min-width: 0; border: 0; background: transparent; font: inherit; font-size: .9375rem; color: var(--ink); padding: 0 6px; }
.hero-search input:focus { outline: none; }
.hero-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border-radius: 999px; background: #fff; border: 1px solid var(--line); color: var(--ink-2); font-weight: 500; font-size: .8125rem; }
.chip:hover { border-color: var(--violet); color: var(--violet); }
.chip.is-active { background: var(--violet); border-color: var(--violet); color: #fff; }
.chip .muted { opacity: .7; }

.hero-visual { position: relative; display: grid; place-items: center; min-height: 340px; }
.hero-blob { position: relative; width: min(440px, 86vw); aspect-ratio: 1; border-radius: 50%; background: linear-gradient(135deg, var(--violet), var(--fuchsia)); padding: 14px; box-shadow: 0 20px 60px rgba(28, 76, 183, .25); }
.hero-blob::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background:
    radial-gradient(circle at 20% 30%, rgba(255, 255, 255, .18) 0 2px, transparent 3px) 0 0 / 28px 28px; pointer-events: none; }
.hero-blob img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; border: 6px solid rgba(255, 255, 255, .25); }
.hero-shape { position: absolute; width: 46px; height: 46px; border-radius: 10px; background: var(--violet-100); transform: rotate(45deg); left: 6%; top: 4%; }
.float-card { position: absolute; background: #fff; border-radius: var(--r); box-shadow: var(--shadow-md); padding: 12px 16px; display: flex; align-items: center; gap: 12px; }
.float-card .ic { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; background: var(--violet-50); color: var(--violet); }
.float-card small { display: block; color: var(--muted); font-size: .8125rem; }
.float-card b { font-size: 1.25rem; font-weight: 700; }
.float-card.fc-1 { right: 0; top: 18%; }
.float-card.fc-2 { left: 0; bottom: 10%; }
@media (max-width: 560px) { .float-card { padding: 8px 12px; } .float-card .ic { width: 36px; height: 36px; } .float-card b { font-size: 1rem; } }
.hero-card { display: none; }

.facts { display: flex; flex-wrap: wrap; gap: 28px; margin-top: 30px; }
.fact b { display: block; font-size: 1.5rem; font-weight: 700; line-height: 1.1; }
.fact span { font-size: .8125rem; color: var(--muted); }

/* ---------- Bloc despre (imagine + text) ---------- */
.about-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 40px; align-items: center; }
@media (min-width: 992px) { .about-grid { grid-template-columns: 1fr 1fr; gap: 56px; } }
.about-media { position: relative; padding: 0 0 40px 0; }
.about-media .m1 { border-radius: var(--r-lg); box-shadow: var(--shadow-md); width: 82%; aspect-ratio: 4 / 3; object-fit: cover; }
.about-media .m2 { position: absolute; right: 0; bottom: 0; width: 48%; aspect-ratio: 1; object-fit: cover; border-radius: var(--r-lg); border: 6px solid #fff; box-shadow: var(--shadow-md); }
.about-media .play { position: absolute; left: 70%; top: 34%; width: 64px; height: 64px; border-radius: 50%; background: var(--violet); color: #fff; display: grid; place-items: center; box-shadow: 0 0 0 10px rgba(28, 76, 183, .18); }
.checks { list-style: none; padding: 0; margin: 18px 0 24px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 20px; }
.checks li { display: flex; align-items: center; gap: 8px; color: var(--ink-2); font-size: .9375rem; }
.checks li::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--violet); flex-shrink: 0; }

/* ---------- Carduri / grile ---------- */
.grid { display: grid; gap: 24px; }
.grid-2, .grid-3, .grid-4 { grid-template-columns: minmax(0, 1fr); }
@media (min-width: 640px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 992px) { .grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } .grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

.card { background: var(--surface); border-radius: var(--r); box-shadow: var(--shadow); }
.card-pad { padding: 24px; }

.feature { background: #fff; border-radius: var(--r); box-shadow: var(--shadow); padding: 28px 24px; transition: box-shadow .3s, transform .3s; }
.feature:hover { box-shadow: var(--shadow-md); transform: translateY(-4px); }
.feature .ic { width: 56px; height: 56px; border-radius: var(--r); background: var(--violet-50); color: var(--violet); display: grid; place-items: center; margin-bottom: 20px; }
.feature .ic .mi { font-size: 28px; }
.feature h3 { margin-bottom: 10px; }
.feature p { color: var(--muted); font-size: .9375rem; margin-bottom: 14px; }

.course-card { display: flex; flex-direction: column; background: #fff; border-radius: var(--r); box-shadow: var(--shadow); color: var(--ink); transition: box-shadow .3s; padding: 8px; }
.course-card:hover { box-shadow: var(--shadow-md); color: var(--ink); }
.course-card .cover { position: relative; aspect-ratio: 16 / 10; background: var(--violet-50); border-radius: var(--r); }
.course-card .cover img { width: 100%; height: 100%; object-fit: cover; border-radius: var(--r); }
.course-card .cover .tags { position: absolute; left: 8px; top: 8px; display: flex; gap: 4px; flex-wrap: wrap; }
.course-card .cover .bubble { position: absolute; right: 12px; bottom: -18px; width: 44px; height: 44px; border-radius: 50%; background: var(--violet); color: #fff; display: grid; place-items: center; font-size: .8125rem; font-weight: 700; border: 3px solid #fff; box-shadow: var(--shadow); line-height: 1; text-align: center; }
.course-card .body { padding: 22px 12px 12px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.course-card h3 { font-size: 1.0625rem; margin: 0; transition: color .2s; }
.course-card:hover h3 { color: var(--violet); }
.course-card .meta { display: flex; flex-wrap: wrap; gap: 4px 16px; font-size: .8125rem; color: var(--muted); }
.course-card .meta span { display: inline-flex; align-items: center; gap: 4px; }
.course-card .meta .mi { font-size: 17px; }
.course-card .desc { color: var(--muted); font-size: .875rem; margin: 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.course-card .foot { margin-top: auto; padding-top: 10px; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.course-card .foot .by { display: flex; align-items: center; gap: 8px; font-size: .8125rem; font-weight: 600; color: var(--ink); min-width: 0; }
.course-card .foot .by span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.course-card .explore { font-size: .8125rem; font-weight: 600; padding: 4px 10px; border-radius: var(--r); background: var(--violet-50); color: var(--violet); white-space: nowrap; transition: all .2s; }
.course-card:hover .explore { background: var(--violet); color: #fff; }
.course-card .progress-row { margin-top: auto; padding-top: 8px; }

.tag { display: inline-flex; align-items: center; gap: 4px; padding: 2px 9px; border-radius: 4px; background: var(--violet); color: #fff; font-size: .75rem; font-weight: 600; line-height: 1.6; }
.tag-blue { background: var(--violet-50); color: var(--violet); }
.tag-yellow { background: #FEF3C7; color: #92400E; }
.tag-green { background: var(--green-50); color: #166534; }
.tag-red { background: var(--red-50); color: #991B1B; }
.tag-ink { background: var(--ink); color: #fff; }

.cat-tile { text-align: center; color: var(--ink); display: block; }
.cat-tile .ph { width: 140px; height: 140px; margin: 0 auto 14px; border-radius: 50%; overflow: hidden; background: var(--violet-50); box-shadow: var(--shadow-md); border: 4px solid #fff; transition: transform .3s; }
.cat-tile img { width: 100%; height: 100%; object-fit: cover; }
.cat-tile .ph .mi { overflow: visible; display: grid; place-items: center; width: 100%; height: 100%; font-size: 48px; color: var(--violet); }
.cat-tile:hover .ph { transform: translateY(-4px); }
.cat-tile h3 { font-size: 1rem; margin: 0 0 2px; }
.cat-tile span { font-size: .8125rem; color: var(--muted); }
.cat-tile:hover h3 { color: var(--violet); }
.cats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 16px; }
@media (min-width: 768px) { .cats { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .cats { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

.steps { display: grid; gap: 24px; counter-reset: step; }
@media (min-width: 900px) { .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.step { position: relative; padding: 28px 24px 24px; background: #fff; border-radius: var(--r); box-shadow: var(--shadow); }
.step::before { counter-increment: step; content: counter(step); display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; background: var(--violet-50); color: var(--violet); font-weight: 700; font-size: 1.1rem; margin-bottom: 16px; }
.step h3 { margin-bottom: 6px; }
.step p { margin: 0; color: var(--muted); font-size: .9375rem; }

.levels { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
@media (min-width: 760px) { .levels { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.level { border-radius: var(--r); padding: 18px; background: #fff; box-shadow: var(--shadow); position: relative; }
.level b { display: block; font-size: 1.05rem; font-weight: 600; }
.level span { font-size: .8125rem; color: var(--muted); }
.level .bar { height: 6px; border-radius: 3px; margin-top: 12px; background: var(--violet); }
.level.is-current { outline: 2px solid var(--violet); }
.level.is-current::after { content: "Nivelul tău"; position: absolute; right: 10px; top: 10px; font-size: .6875rem; font-weight: 600; background: var(--violet); color: #fff; padding: 1px 8px; border-radius: 4px; }

.badges { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 16px; }
.badge { text-align: center; padding: 18px 10px; border-radius: var(--r); background: #fff; box-shadow: var(--shadow); }
.badge .medal { width: 56px; height: 56px; margin: 0 auto 10px; border-radius: 50%; display: grid; place-items: center; color: #fff; }
.badge .medal .mi { font-size: 28px; }
.badge b { display: block; font-size: .875rem; line-height: 1.3; font-weight: 600; }
.badge small { display: block; color: var(--muted); font-size: .75rem; line-height: 1.35; margin-top: 4px; }
.badge.is-locked { opacity: .55; }
.badge.is-locked .medal { background: #CBD5E1 !important; }

.board { list-style: none; margin: 0; padding: 0; background: #fff; border-radius: var(--r); box-shadow: var(--shadow); overflow: hidden; }
.board li { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-bottom: 1px solid var(--line); }
.board li:last-child { border-bottom: 0; }
.board .pos { width: 30px; text-align: center; font-weight: 700; color: var(--muted); }
.board .who { flex: 1; min-width: 0; color: var(--ink); }
.board .who b { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-weight: 600; }
.board .who small { color: var(--muted); }
.board .pts { font-weight: 700; color: var(--violet); }
.board li.is-me { background: var(--violet-50); }

/* ---------- Banda de pagina (titlu) ---------- */
.page-band { background: var(--violet-50); padding: 48px 0 44px; text-align: center; }
.page-band h1 { font-size: clamp(1.75rem, 4.4vw, 2.5rem); margin: 10px 0 10px; }
.page-band .lead { margin: 0 auto; }
.page-band .crumbs { justify-content: center; }
.crumbs { display: flex; flex-wrap: wrap; gap: 4px; align-items: center; font-size: .875rem; font-weight: 500; color: var(--muted); }
.crumbs a { color: var(--ink-2); }
.crumbs a:hover { color: var(--violet); }
.crumbs .mi { font-size: 16px; color: var(--muted-2); }

.filters { display: flex; gap: 8px; overflow-x: auto; padding: 4px 2px 12px; scrollbar-width: none; }
.filters::-webkit-scrollbar { display: none; }
.filters .chip { flex-shrink: 0; }
.searchbar { display: flex; gap: 8px; margin-bottom: 16px; }
.searchbar input { flex: 1; min-width: 0; height: 46px; border-radius: var(--r); border: 1px solid var(--line); background: #fff; padding: 0 16px; font: inherit; color: var(--ink); box-shadow: var(--shadow); }
.searchbar input:focus { outline: none; border-color: var(--violet); }

/* ---------- Pagina cursului ---------- */
.course-hero { background: var(--violet-50); color: var(--ink); }
.course-hero .container { display: grid; grid-template-columns: minmax(0, 1fr); gap: 28px; padding-top: 40px; padding-bottom: 44px; }
@media (min-width: 992px) { .course-hero .container { grid-template-columns: 1fr 360px; align-items: center; padding-top: 56px; padding-bottom: 56px; } }
.course-hero h1 { font-size: clamp(1.75rem, 4.4vw, 2.5rem); margin: 10px 0 12px; }
.course-hero .lead { color: var(--muted); }
.course-hero .meta { display: flex; flex-wrap: wrap; gap: 8px 20px; color: var(--muted); font-size: .875rem; }
.course-hero .meta span { display: inline-flex; gap: 6px; align-items: center; }
.course-hero .meta .mi { color: var(--violet); font-size: 19px; }
.progress-panel { background: #fff; border-radius: var(--r); padding: 22px; box-shadow: var(--shadow-md); }
.progress-panel .row { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 10px; }

.layout-2 { display: grid; grid-template-columns: minmax(0, 1fr); gap: 28px; }
@media (min-width: 992px) { .layout-2 { grid-template-columns: minmax(0, 1fr) 320px; align-items: start; } }
.sticky { position: sticky; top: calc(var(--header-h) + 20px); }

.curriculum { display: flex; flex-direction: column; gap: 12px; }
.mod { background: #fff; border-radius: var(--r); box-shadow: var(--shadow); overflow: hidden; }
.mod > summary { list-style: none; cursor: pointer; display: flex; gap: 14px; align-items: center; padding: 14px 16px; }
.mod > summary::-webkit-details-marker { display: none; }
.mod .num { flex-shrink: 0; width: 38px; height: 38px; border-radius: var(--r); background: var(--violet-50); display: grid; place-items: center; font-weight: 700; color: var(--violet); }
.mod.is-done .num { background: var(--green); color: #fff; }
.mod .title { flex: 1; min-width: 0; }
.mod .title b { display: block; line-height: 1.35; font-weight: 600; }
.mod .title small { color: var(--muted); }
.mod .chev { transition: transform .2s; color: var(--muted-2); }
.mod[open] .chev { transform: rotate(180deg); }
.mod[open] > summary { background: var(--violet-50); }
.mod .mini-tape { width: 64px; height: 6px; border-radius: 3px; background: var(--violet-100); overflow: hidden; flex-shrink: 0; }
.mod .mini-tape i { display: block; height: 100%; background: var(--violet); }
.mod.is-done .mini-tape i { background: var(--green); }
.lessons { list-style: none; margin: 0; padding: 4px 0; }
.lessons li a { display: flex; align-items: center; gap: 12px; padding: 11px 16px; color: var(--ink); border-top: 1px solid var(--line); }
.lessons li:first-child a { border-top: 0; }
.lessons li a:hover { background: var(--violet-50); color: var(--violet); }
.lessons li a.is-current { background: var(--violet-50); }
.lessons .st { width: 24px; height: 24px; flex-shrink: 0; border-radius: 50%; border: 2px solid #CBD5E1; display: grid; place-items: center; color: transparent; }
.lessons .st .mi { font-size: 15px; }
.lessons .is-done .st { background: var(--green); border-color: var(--green); color: #fff; }
.lessons .lt { flex: 1; min-width: 0; line-height: 1.4; font-size: .9375rem; }
.lessons .lt small { display: block; color: var(--muted); font-size: .75rem; }
.lessons .quiz-row a { color: var(--violet); font-weight: 600; }
.lessons .quiz-row .st { border-color: var(--violet); color: var(--violet); }
.lessons .quiz-row.is-done .st { background: var(--green); border-color: var(--green); color: #fff; }

/* ---------- Lectia ---------- */
.lesson-shell { display: grid; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 1100px) { .lesson-shell { grid-template-columns: 330px minmax(0, 1fr); } }
.lesson-side { display: none; background: #fff; border-right: 1px solid var(--line); }
@media (min-width: 1100px) { .lesson-side { display: block; position: sticky; top: var(--header-h); height: calc(100vh - var(--header-h)); overflow-y: auto; } }
.lesson-side .head { padding: 16px; border-bottom: 1px solid var(--line); }
.lesson-side .head a { color: var(--ink); font-weight: 600; }
.lesson-side .mod { box-shadow: none; border-radius: 0; border-bottom: 1px solid var(--line); }
.lesson-main { min-width: 0; background: #F7F9FD; }
.lesson-top { background: var(--violet-50); }
.lesson-top .in { max-width: 860px; margin: 0 auto; padding: 22px 16px 22px; }
.lesson-top h1 { font-size: clamp(1.5rem, 4vw, 2.1rem); margin: 8px 0 12px; }
.lesson-body { max-width: 860px; margin: 0 auto; padding: 24px 16px 48px; }
.curr-toggle { display: inline-flex; }
@media (min-width: 1100px) { .curr-toggle { display: none; } }

.block { margin-bottom: 22px; background: #fff; border-radius: var(--r); box-shadow: var(--shadow); overflow: hidden; scroll-margin-top: calc(var(--header-h) + 16px); }
.block-head { display: flex; align-items: center; gap: 10px; padding: 14px 18px; border-bottom: 1px solid var(--line); font-weight: 600; }
.block-head .ico { width: 34px; height: 34px; border-radius: var(--r); display: grid; place-items: center; background: var(--violet-50); color: var(--violet); flex-shrink: 0; }
.block-head .ico .mi { font-size: 20px; }
.block-content { padding: 20px; }
.block-media { background: #000; }
.ratio { position: relative; aspect-ratio: 16 / 9; }
.ratio iframe, .ratio video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.doc-frame { width: 100%; height: min(78vh, 900px); border: 0; display: block; background: var(--violet-50); }
.block-actions { display: flex; flex-wrap: wrap; gap: 8px; padding: 12px 18px; border-top: 1px solid var(--line); }
.resource { display: flex; gap: 14px; align-items: center; padding: 16px 18px; color: var(--ink); }
.resource:hover { background: var(--violet-50); color: var(--ink); }
.resource .mi { font-size: 30px; color: var(--violet); }
.resource b { display: block; font-weight: 600; }
.resource small { color: var(--muted); }

.prose { font-size: 1rem; line-height: 1.75; color: #374151; overflow-wrap: anywhere; }
.prose > *:last-child { margin-bottom: 0; }
.prose h1, .prose h2, .prose h3, .prose h4 { margin: 1.4em 0 .5em; }
.prose h1 { font-size: 1.5rem; } .prose h2 { font-size: 1.3rem; } .prose h3 { font-size: 1.15rem; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li { margin: .25em 0; }
.prose a { text-decoration: underline; text-underline-offset: 3px; }
.prose img { border-radius: var(--r); margin: 12px 0; }
.prose table { width: 100%; border-collapse: collapse; margin: 1em 0; font-size: .9375rem; display: block; overflow-x: auto; }
.prose th, .prose td { border: 1px solid var(--line); padding: 8px 10px; text-align: left; vertical-align: top; }
.prose blockquote { margin: 1em 0; padding: 10px 16px; border-left: 4px solid var(--violet); background: var(--violet-50); border-radius: 0 var(--r) var(--r) 0; }
.prose .lx-embed { position: relative; aspect-ratio: 16 / 9; margin: 1em 0; border-radius: var(--r); overflow: hidden; background: #000; }
.prose .lx-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

.lesson-finish { margin-top: 28px; padding: 22px; border-radius: var(--r); background: var(--violet); color: #fff; display: grid; gap: 14px; position: relative; overflow: hidden; }
@media (min-width: 640px) { .lesson-finish { grid-template-columns: 1fr auto; align-items: center; } }
.lesson-finish h3 { color: #fff; margin: 0 0 4px; }
.lesson-finish p { margin: 0; color: #DCE5F7; }
.lesson-finish .btn-primary, .lesson-finish .btn-yellow { background: #fff; color: var(--violet); border-color: #fff; }
.lesson-finish .btn-primary:hover, .lesson-finish .btn-yellow:hover { background: var(--violet-50); color: var(--violet-700); }
.lesson-finish.is-done { background: var(--green); }
.lesson-finish.is-done p { color: #DCFCE7; }
.pager { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 20px; }
.pager a { display: flex; flex-direction: column; gap: 2px; padding: 12px 14px; border-radius: var(--r); background: #fff; box-shadow: var(--shadow); color: var(--ink); min-width: 0; }
.pager a small { color: var(--muted); font-weight: 600; font-size: .75rem; display: inline-flex; align-items: center; gap: 2px; }
.pager a span { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pager .next { text-align: right; align-items: flex-end; grid-column: 2; }
.pager a:hover { box-shadow: var(--shadow-md); color: var(--violet); }

/* ---------- Quiz ---------- */
.quiz-wrap { max-width: 780px; margin: 0 auto; padding: 28px 16px 56px; }
.quiz-top { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.quiz-top .count { font-weight: 700; white-space: nowrap; }
.quiz-top .tape { flex: 1; }
.timer { display: inline-flex; align-items: center; gap: 4px; font-weight: 700; padding: 4px 10px; border-radius: 999px; background: var(--violet-50); color: var(--violet); font-variant-numeric: tabular-nums; }
.timer.is-low { background: var(--red-50); color: var(--red); }
.qcard { background: #fff; border-radius: var(--r); box-shadow: var(--shadow); padding: 22px; }
@media (min-width: 640px) { .qcard { padding: 30px; } }
.qtype { font-size: .8125rem; font-weight: 500; color: var(--muted); margin-bottom: 10px; display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.qprompt { font-size: clamp(1.1rem, 3vw, 1.35rem); font-weight: 600; line-height: 1.4; margin-bottom: 16px; }
.qprompt p { margin: 0 0 .4em; }
.qimage { margin: 0 0 16px; border-radius: var(--r); overflow: hidden; border: 1px solid var(--line); background: var(--violet-50); }
.qimage img { margin: 0 auto; max-height: 420px; width: auto; }
.qbody { margin-bottom: 14px; font-size: .9375rem; }
.options { display: grid; gap: 10px; }
.opt { position: relative; display: flex; gap: 12px; align-items: flex-start; padding: 13px 16px; border: 1px solid var(--line); border-radius: var(--r); background: #fff; cursor: pointer; transition: border-color .15s, background-color .15s; }
.opt:hover { border-color: var(--violet); }
.opt input { position: absolute; opacity: 0; pointer-events: none; }
.opt .mark { flex-shrink: 0; width: 26px; height: 26px; border-radius: 50%; border: 2px solid #CBD5E1; display: grid; place-items: center; font-weight: 700; font-size: .75rem; color: var(--muted); margin-top: 1px; text-transform: uppercase; }
.opt.is-multi .mark { border-radius: 6px; }
.opt .txt { flex: 1; font-weight: 500; }
.opt input:checked + .mark { background: var(--violet); border-color: var(--violet); color: #fff; }
.opt:has(input:checked) { border-color: var(--violet); background: var(--violet-50); }
.opt input:focus-visible + .mark { outline: 2px solid var(--violet); outline-offset: 2px; }
.opt.is-correct, .opt.is-correct:has(input:checked) { border-color: var(--green); background: var(--green-50); }
.opt.is-wrong, .opt.is-wrong:has(input:checked) { border-color: var(--red); background: var(--red-50); }
.opt.is-correct .mark, .opt.is-correct input + .mark, .opt.is-correct input:checked + .mark { background: var(--green); border-color: var(--green); color: #fff; }
.opt.is-wrong .mark, .opt.is-wrong input + .mark, .opt.is-wrong input:checked + .mark { background: var(--red); border-color: var(--red); color: #fff; }
.options.is-locked .opt { cursor: default; }
.tf { grid-template-columns: 1fr 1fr; }
.short-input { width: 100%; height: 50px; border: 1px solid var(--line); border-radius: var(--r); padding: 0 16px; font: inherit; font-size: 1rem; }
.short-input:focus { outline: none; border-color: var(--violet); }
.feedback { margin-top: 16px; border-radius: var(--r); padding: 14px 16px; display: none; }
.feedback.is-shown { display: block; animation: fbIn .25s ease-out; }
@keyframes fbIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.feedback.ok { background: var(--green-50); border: 1px solid #BBF7D0; }
.feedback.bad { background: var(--red-50); border: 1px solid #FECACA; }
.feedback.info { background: var(--violet-50); border: 1px solid var(--violet-100); }
.feedback .h { font-weight: 600; display: flex; align-items: center; gap: 6px; margin-bottom: 4px; }
.feedback .prose { font-size: .9375rem; line-height: 1.6; }
.quiz-nav { display: flex; gap: 10px; justify-content: space-between; margin-top: 18px; flex-wrap: wrap; }
.quiz-nav .right { display: flex; gap: 10px; margin-left: auto; }
.qdots { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 18px; }
.qdots button { width: 34px; height: 34px; border-radius: var(--r); border: 1px solid var(--line); background: #fff; font-weight: 600; font-size: .8rem; cursor: pointer; color: var(--ink-2); }
.qdots button.is-answered { background: var(--violet); color: #fff; border-color: var(--violet); }
.qdots button.is-ok { background: var(--green); border-color: var(--green); color: #fff; }
.qdots button.is-bad { background: var(--red); border-color: var(--red); color: #fff; }
.qdots button.is-current { outline: 2px solid var(--violet); outline-offset: 2px; }

.score-ring { --p: 0; width: 160px; height: 160px; border-radius: 50%; margin: 0 auto 16px; display: grid; place-items: center; background: conic-gradient(var(--c, var(--green)) calc(var(--p) * 1%), var(--violet-100) 0); }
.score-ring > div { width: 126px; height: 126px; border-radius: 50%; background: #fff; display: grid; place-items: center; text-align: center; }
.score-ring b { font-size: 2.3rem; line-height: 1; font-weight: 700; }
.score-ring small { display: block; color: var(--muted); font-size: .75rem; }
.result-head { text-align: center; padding: 30px 20px; }
.result-head h1 { font-size: clamp(1.5rem, 4.6vw, 2.2rem); margin-bottom: 6px; }
.rewards { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 14px; }
.review-item { border-top: 1px solid var(--line); padding: 18px 0; }
.review-item:first-child { border-top: 0; }

/* Diploma */
.diploma-box { margin-top: 22px; padding: 24px; border-radius: var(--r); background: var(--violet-50); border: 1px dashed var(--violet-500); text-align: left; }
.diploma-box h3 { display: flex; align-items: center; gap: 8px; }
.diploma-box form { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }
.diploma-box input { flex: 1 1 220px; min-height: 44px; border: 1px solid var(--line); border-radius: var(--r); padding: 0 14px; font: inherit; }
.diploma-box input:focus { outline: none; border-color: var(--violet); }
.cert-preview { position: relative; background: #fff; border-radius: var(--r); box-shadow: var(--shadow-md); padding: 34px 28px 30px 56px; overflow: hidden; aspect-ratio: 1.414; display: flex; flex-direction: column; justify-content: center; }
.cert-preview::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 22px; background: linear-gradient(var(--violet), var(--fuchsia)); }
.cert-preview .k { color: var(--violet); font-size: .7rem; font-weight: 700; letter-spacing: .2em; }
.cert-preview .t { font-size: clamp(1.6rem, 5vw, 2.6rem); font-weight: 800; letter-spacing: .02em; margin: 4px 0 10px; }
.cert-preview .n { font-size: clamp(1.2rem, 3.6vw, 1.8rem); font-weight: 700; color: var(--violet); border-bottom: 1px solid var(--violet-100); padding-bottom: 8px; margin-bottom: 10px; }
.cert-preview .f { color: var(--ink-2); font-size: .9375rem; max-width: 52ch; }
.cert-preview .seal { position: absolute; right: 22px; top: 22px; width: 76px; height: 76px; border-radius: 50%; background: var(--violet); color: #fff; display: grid; place-items: center; text-align: center; line-height: 1.1; font-weight: 700; }
.cert-preview .seal small { display: block; font-size: .55rem; font-weight: 600; letter-spacing: .05em; }
@media (max-width: 560px) { .cert-preview { aspect-ratio: auto; padding: 26px 18px 22px 36px; } .cert-preview .seal { width: 58px; height: 58px; right: 12px; top: 12px; font-size: .85rem; } .cert-preview::before { width: 12px; } }

/* ---------- Cont ---------- */
.dash-head { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; justify-content: center; text-align: left; }
.dash-head .who { flex: 1; min-width: 200px; }
.dash-head h1 { font-size: clamp(1.5rem, 4vw, 2rem); margin: 0 0 4px; }
.stat-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
@media (min-width: 760px) { .stat-row { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.stat { background: #fff; border-radius: var(--r); box-shadow: var(--shadow); padding: 16px 18px; }
.stat b { display: block; font-size: 1.6rem; line-height: 1.15; font-weight: 700; }
.stat span { color: var(--muted); font-size: .8125rem; }
.continue-card { display: grid; gap: 14px; background: #fff; border-radius: var(--r); box-shadow: var(--shadow); padding: 14px; color: var(--ink); }
.continue-card:hover { box-shadow: var(--shadow-md); color: var(--ink); }
@media (min-width: 640px) { .continue-card { grid-template-columns: 150px 1fr auto; align-items: center; } }
.continue-card .cv { aspect-ratio: 16 / 10; border-radius: var(--r); overflow: hidden; background: var(--violet-50); }
.continue-card .cv img { width: 100%; height: 100%; object-fit: cover; }
.table-simple { width: 100%; border-collapse: collapse; font-size: .9rem; }
.table-simple th, .table-simple td { padding: 11px 14px; border-bottom: 1px solid var(--line); text-align: left; }
.table-simple th { font-size: .75rem; color: var(--muted); font-weight: 600; background: var(--violet-50); }
.table-wrap { overflow-x: auto; background: #fff; border-radius: var(--r); box-shadow: var(--shadow); }

/* ---------- Formulare ---------- */
.auth-wrap { min-height: calc(100vh - var(--header-h)); display: grid; place-items: center; padding: 40px 16px; background: var(--violet-50); }
.auth-card { width: 100%; max-width: 440px; background: #fff; border-radius: var(--r); box-shadow: var(--shadow-md); padding: 28px; }
@media (min-width: 640px) { .auth-card { padding: 36px; } }
@media (max-width: 639px) { .auth-wrap { min-height: 0; place-items: start center; padding: 20px 12px 104px; } .auth-card { padding: 22px 18px; box-shadow: var(--shadow); } .auth-card h1 { font-size: 1.4rem; } .auth-card .check { align-items: flex-start; } }
.auth-card h1 { font-size: 1.6rem; margin-bottom: 6px; }
.field { margin-bottom: 14px; }
.field label { display: block; font-weight: 600; font-size: .875rem; margin-bottom: 6px; }
.input, .field input, .field select, .field textarea { width: 100%; min-height: 44px; border: 1px solid var(--line); border-radius: var(--r); padding: 9px 13px; font: inherit; font-size: .9375rem; color: var(--ink); background: #fff; }
.field textarea { min-height: 130px; resize: vertical; }
.input:focus, .field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--violet); box-shadow: 0 0 0 3px var(--violet-100); }
.field .err { color: var(--red); font-size: .8125rem; font-weight: 500; margin-top: 4px; }
.check { display: flex; gap: 8px; align-items: center; font-size: .9rem; }
.check input { accent-color: var(--violet); }
.alert { padding: 12px 16px; border-radius: var(--r); margin-bottom: 14px; font-weight: 500; font-size: .9375rem; }
.alert-ok { background: var(--green-50); color: #166534; }
.alert-err { background: var(--red-50); color: #991B1B; }
.alert-info { background: var(--violet-50); color: var(--violet-700); }

.toasts { position: fixed; z-index: 80; right: 12px; left: 12px; bottom: 18px; display: flex; flex-direction: column; gap: 8px; align-items: center; pointer-events: none; }
@media (min-width: 992px) { .toasts { left: auto; align-items: flex-end; } }
.toast { pointer-events: auto; display: flex; gap: 10px; align-items: center; background: var(--ink); color: #fff; padding: 9px 16px 9px 9px; border-radius: 999px; box-shadow: var(--shadow-md); font-weight: 600; font-size: .9rem; animation: toastIn .35s ease-out; max-width: 100%; }
.toast .ic { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: var(--violet); color: #fff; flex-shrink: 0; }
.toast.is-out { opacity: 0; transform: translateY(8px); transition: all .3s; }
@keyframes toastIn { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }

.bank-item { display: flex; gap: 12px; align-items: flex-start; padding: 14px 18px; border-bottom: 1px solid var(--line); cursor: pointer; }
.bank-item:hover { background: var(--violet-50); }
.bank-item:last-child { border-bottom: 0; }
.bank-item input { margin-top: 5px; width: 18px; height: 18px; flex-shrink: 0; accent-color: var(--violet); }
.bank-item .q { flex: 1; min-width: 0; }
.sticky-bar { position: sticky; bottom: 0; z-index: 30; background: rgba(255, 255, 255, .97); box-shadow: 0 -2px 8px rgba(60, 72, 88, .1); padding: 12px 0; }
.sticky-bar .container { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }

.empty { text-align: center; padding: 44px 20px; background: #fff; border-radius: var(--r); box-shadow: var(--shadow); }
.empty .mi { font-size: 40px; color: var(--violet); }
.empty h3 { margin: 8px 0 4px; }
.empty p { color: var(--muted); }

.pagination { display: flex; gap: 6px; justify-content: center; flex-wrap: wrap; margin-top: 28px; }
.pagination a, .pagination span { min-width: 40px; height: 40px; padding: 0 10px; border-radius: 50%; background: #fff; box-shadow: var(--shadow); display: inline-grid; place-items: center; color: var(--ink); font-weight: 600; }
.pagination a:hover { color: var(--violet); }
.pagination .is-active { background: var(--violet); color: #fff; }
.pagination .is-disabled { opacity: .4; }

/* Banda violet (ca "Subscribe to Newsletter") */
.cta-band { position: relative; overflow: hidden; background: var(--violet); color: #fff; border-radius: 0; padding: 56px 0; }
.cta-band::before { content: ""; position: absolute; inset: 0; opacity: .14; background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='98' viewBox='0 0 56 98'%3E%3Cpath d='M28 66L0 50V16L28 0l28 16v34L28 66zm0-2l26-15V17L28 2 2 17v32l26 15zm0 34l-28-16v-16l28 16 28-16v16L28 98z' fill='%23fff' fill-opacity='1'/%3E%3C/svg%3E");
    background-size: 56px 98px; }
.cta-band .in { position: relative; display: grid; gap: 22px; align-items: center; }
@media (min-width: 900px) { .cta-band .in { grid-template-columns: 1fr auto; } }
.cta-band h2 { color: #fff; margin: 0 0 8px; }
.cta-band p { color: #DCE5F7; margin: 0; max-width: 56ch; }
.cta-band .btn-yellow, .cta-band .btn-amber { background: var(--amber); border-color: var(--amber); color: #111; }
.cta-band .tape { display: none; }
.cta-inline { border-radius: var(--r); padding: 32px 28px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--slate-900); color: #CBD5E1; padding: 56px 0 0; }
.site-footer a { color: #CBD5E1; }
.site-footer a:hover { color: #fff; }
.footer-grid { display: grid; gap: 32px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 900px) { .footer-grid { grid-template-columns: 1.5fr 1fr 1fr 1fr; } }
.footer-grid .about { grid-column: 1 / -1; }
@media (min-width: 900px) { .footer-grid .about { grid-column: auto; } }
.footer-grid .about p { color: #94A3B8; font-size: .9375rem; }
.footer-grid h4 { color: #fff; font-size: 1rem; margin-bottom: 16px; font-weight: 600; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; font-size: .9375rem; }
.footer-grid ul a::before { content: "›"; margin-right: 8px; color: #64748B; }
.footer-contact { display: flex; gap: 10px; align-items: center; color: #CBD5E1; font-size: .9375rem; margin-top: 10px; }
.footer-contact .mi { color: var(--violet-500); }
.footer-brand { display: inline-flex; align-items: center; gap: 8px; color: #fff; margin-bottom: 14px; }
.footer-brand .brand-name { color: #fff; }
.footer-bottom { border-top: 1px solid #1E293B; margin-top: 44px; padding: 20px 0; font-size: .875rem; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; color: #94A3B8; }
.footer-bottom a { color: #CBD5E1; }
.footer-bottom .links { display: flex; gap: 16px; }
.footer-bottom .powered a { color: #fff; font-weight: 600; }

/* Utilitare */
.flex { display: flex; } .items-center { align-items: center; } .gap-8 { gap: 8px; } .gap-12 { gap: 12px; } .wrap { flex-wrap: wrap; }
.mt-0 { margin-top: 0; } .mt-8 { margin-top: 8px; } .mt-16 { margin-top: 16px; } .mt-24 { margin-top: 24px; } .mt-32 { margin-top: 32px; }
.mb-0 { margin-bottom: 0; } .mb-8 { margin-bottom: 8px; } .mb-16 { margin-bottom: 16px; } .mb-24 { margin-bottom: 24px; }
.text-center { text-align: center; }
[hidden] { display: none !important; }
@media (max-width: 759px) { .hide-mobile { display: none !important; } }
@media (min-width: 760px) { .hide-desktop { display: none !important; } }

/* ---------- Bara de jos (stil aplicatie) - pe telefon si tableta (si tableta tinuta orizontal) ---------- */
.appbar { display: none; }
.tabbar { display: none !important; }
@media (max-width: 991px), (hover: none) and (pointer: coarse) {
    .appbar { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); position: fixed; z-index: 50; left: 0; right: 0; bottom: 0;
        background: rgba(255, 255, 255, .98); backdrop-filter: saturate(1.4) blur(8px); -webkit-backdrop-filter: saturate(1.4) blur(8px);
        box-shadow: 0 -1px 0 var(--line), 0 -6px 20px rgba(60, 72, 88, .08); padding: 6px 4px calc(6px + env(safe-area-inset-bottom)); }
    .appbar a { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; min-height: 52px;
        color: var(--muted); font-size: .6875rem; font-weight: 600; letter-spacing: .01em; border-radius: 12px; -webkit-tap-highlight-color: transparent; }
    .appbar a .mi { font-size: 24px; width: 56px; height: 30px; display: grid; place-items: center; border-radius: 999px; transition: background .15s, color .15s; }
    .appbar a:hover { color: var(--violet); }
    .appbar a.is-active { color: var(--violet); }
    .appbar a.is-active .mi { background: var(--violet-100); font-variation-settings: "FILL" 1, "wght" 500; }
    .appbar a span:last-child { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
    body.has-appbar { padding-bottom: calc(66px + env(safe-area-inset-bottom)); }
    .has-appbar .toasts { bottom: calc(80px + env(safe-area-inset-bottom)); }
    .has-appbar .sticky-bar { bottom: calc(64px + env(safe-area-inset-bottom)); }

    /* footerul site-ului nu apare pe telefon / tableta: tot meniul e in burger + bara de jos */
    .site-footer { display: none; }

    /* antetul in "modul aplicatie": burger in dreapta sus, fara meniul de desktop */
    .main-nav, .header-login { display: none !important; }
    .menu-toggle { display: inline-grid !important; }
}


@media print {
    .site-header, .site-footer, .tabbar, .sticky-bar, .no-print { display: none !important; }
    body { background: #fff; }
}

/* ---------- Captcha (formularul de contact) ---------- */
.captcha-row { display: flex; align-items: center; gap: 10px; }
.captcha-eq { font-weight: 700; font-size: 1.125rem; color: var(--ink); white-space: nowrap; background: var(--violet-50); border: 1px solid var(--violet-100); border-radius: var(--r); padding: 9px 14px; letter-spacing: .02em; }
.captcha-field input { width: 96px !important; text-align: center; font-weight: 700; font-size: 1.125rem; }
.captcha-ok { color: var(--green); font-size: 26px; opacity: 0; transition: opacity .15s; }
.captcha-field.is-ok .captcha-ok { opacity: 1; }
.captcha-field.is-ok input { border-color: var(--green); }
.captcha-field.is-bad input { border-color: var(--red); }
.captcha-field.is-ok .captcha-help { color: var(--green); }
.captcha-field.is-bad .captcha-help { color: var(--red); }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .45; cursor: not-allowed; filter: grayscale(.3); box-shadow: none; }

/* Alegerea pozei de profil: buton compact, se incadreaza pe telefon */
.file-input { width: 100%; max-width: 100%; font: inherit; font-size: .8125rem; color: var(--muted); padding: 6px !important; height: auto !important; }
.file-input::file-selector-button { font: inherit; font-weight: 600; font-size: .8125rem; color: var(--violet); background: var(--violet-50); border: 1px solid var(--violet-100); border-radius: var(--r); padding: 7px 12px; margin-right: 10px; cursor: pointer; }

/* ---------- Cautare instantanee ---------- */
.search-overlay { position: fixed; inset: 0; z-index: 90; display: flex; justify-content: center; align-items: flex-start; padding: 10vh 16px 16px; }
.search-overlay[hidden] { display: none; }
.search-backdrop { position: absolute; inset: 0; background: rgba(15, 23, 42, .55); backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px); }
.search-panel { position: relative; width: min(680px, 100%); max-height: 80vh; display: flex; flex-direction: column; background: #fff; border-radius: 14px; box-shadow: 0 24px 60px rgba(15, 23, 42, .3); overflow: hidden; animation: srIn .16s ease-out; }
@keyframes srIn { from { transform: translateY(-8px); opacity: 0; } to { transform: none; opacity: 1; } }
.search-field { display: flex; align-items: center; gap: 10px; padding: 10px 10px 10px 18px; border-bottom: 1px solid var(--line); margin: 0; }
.search-field > .mi { color: var(--violet); font-size: 24px; }
.search-field input { flex: 1; min-width: 0; border: 0; outline: 0; font: inherit; font-size: 1.0625rem; height: 46px; background: transparent; color: var(--ink); }
.search-field input::-webkit-search-cancel-button { -webkit-appearance: none; }
.search-spin { width: 18px; height: 18px; border-radius: 50%; border: 2px solid var(--violet-100); border-top-color: var(--violet); opacity: 0; animation: srSpin .7s linear infinite; }
.is-loading .search-spin { opacity: 1; }
@keyframes srSpin { to { transform: rotate(360deg); } }
.search-results { overflow-y: auto; padding: 6px 8px 10px; overscroll-behavior: contain; }
.search-hint { color: var(--muted); font-size: .9375rem; padding: 18px 12px; margin: 0; text-align: center; }
.sr-group { font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .07em; color: var(--muted-2); padding: 12px 10px 4px; }
.sr-item { display: flex; align-items: center; gap: 12px; padding: 8px 10px; border-radius: 10px; color: var(--ink); }
.sr-item:hover, .sr-item.is-active { background: var(--violet-50); color: var(--ink); }
.sr-item.is-active { box-shadow: inset 0 0 0 1.5px var(--violet-100); }
.sr-thumb { width: 52px; height: 38px; border-radius: 6px; overflow: hidden; background: var(--violet-50); flex-shrink: 0; display: grid; place-items: center; color: var(--violet); }
.sr-thumb img { width: 100%; height: 100%; object-fit: cover; }
.sr-ic { width: 38px !important; height: 38px; border-radius: 50%; background: var(--violet-50); color: var(--violet); display: inline-grid !important; place-items: center; font-size: 20px; flex-shrink: 0; overflow: visible; }
.sr-txt { min-width: 0; display: flex; flex-direction: column; line-height: 1.3; }
.sr-txt b { font-weight: 600; font-size: .9375rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sr-txt small { color: var(--muted); font-size: .8125rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sr-txt mark { background: #FEF3C7; color: inherit; border-radius: 3px; padding: 0 1px; }
.sr-all { display: flex; align-items: center; justify-content: center; gap: 6px; margin: 8px 2px 0; padding: 11px; border-radius: 10px; background: var(--violet); color: #fff; font-weight: 600; font-size: .9375rem; }
.sr-all:hover { color: #fff; background: var(--violet-700); }
.search-empty { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 26px 12px; text-align: center; color: var(--muted); font-size: .9rem; }
.search-empty .mi { font-size: 34px; color: var(--muted-2); }
.search-empty b { color: var(--ink); }
body.search-open { overflow: hidden; }
@media (max-width: 640px) {
    .search-overlay { padding: 0; }
    .search-panel { width: 100%; max-height: none; height: 100%; border-radius: 0; }
}
/* Paginile Caută / Cursuri: rezultatele vin pe loc, butonul nu mai e necesar */
.searchbar.is-live button[type=submit] { display: none; }
.searchbar.is-live { position: relative; }
.searchbar.is-live::after { content: ""; position: absolute; right: 16px; top: 50%; width: 18px; height: 18px; margin-top: -9px; border-radius: 50%; border: 2px solid var(--violet-100); border-top-color: var(--violet); opacity: 0; animation: srSpin .7s linear infinite; pointer-events: none; }
.searchbar.is-live.is-loading::after { opacity: 1; }
.hero-search { position: relative; display: flex; align-items: center; max-width: 520px; margin: 0 0 22px; background: #fff; border-radius: 12px; box-shadow: 0 8px 28px rgba(28, 76, 183, .14); border: 1px solid var(--violet-100); cursor: text; }
.hero-search > .mi { position: absolute; left: 16px; color: var(--violet); font-size: 24px; pointer-events: none; }
.hero-search input { flex: 1; min-width: 0; height: 56px; border: 0; outline: 0; background: transparent; padding: 0 52px 0 52px; font: inherit; font-size: 1rem; color: var(--ink); cursor: text; border-radius: 12px; }
.hero-search kbd { position: absolute; right: 14px; font: 600 .75rem var(--font); color: var(--muted); border: 1px solid var(--line); border-bottom-width: 2px; border-radius: 6px; padding: 2px 8px; background: var(--violet-50); }


/* =====================================================================
   Brand AED 2026: titluri Montserrat, fundaluri din paleta, panglica
   tricolora (albastru -> galben -> rosu, mereu in aceasta ordine).
   ===================================================================== */
h1, h2, h3, .page-band h1, .hero h1, .brand-name, .cta-band h2 { font-family: var(--font-title); letter-spacing: -.01em; }
h1, h2 { font-weight: 700; }
h3, h4 { font-weight: 700; }

/* Marcaj galben in titlu (ca un text subliniat cu marker) */
.hl { color: var(--ink); }
.hl::before { background: var(--brand-yellow); }

/* Hero: fundal crem + panglica jos, ca pe coperta brandbook-ului */
.hero { background: var(--bg-cream); }
.hero::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: clamp(70px, 11vw, 150px);
    background: url("img/ribbon.svg") right bottom / auto 100% no-repeat; pointer-events: none; opacity: .95; }
.hero .container { position: relative; z-index: 1; padding-bottom: clamp(90px, 13vw, 170px); }
.hero-blob { background: var(--brand-blue); box-shadow: 0 20px 60px rgba(28, 76, 183, .28); }
.hero-shape { background: var(--brand-yellow); }
.float-card .ic { background: var(--bg-cream); color: var(--brand-blue); }
.float-card.fc-2 .ic { background: var(--bg-pink); color: var(--brand-red); }
.hero-search { border-color: #F2E9A0; }

/* Benzile de sus ale paginilor: crem, cu panglica verticala in dreapta */
.page-band { background: var(--bg-cream); position: relative; overflow: hidden; }
.page-band > .container { position: relative; z-index: 1; }
@media (min-width: 900px) {
    .page-band::after { content: ""; position: absolute; right: 0; top: 0; bottom: 0; width: 150px;
        background: url("img/ribbon-v.svg") right center / auto 120% no-repeat; pointer-events: none; }
}

/* Banda tricolora subtire (separator, sus pe footer) */
.tricolor { height: 6px; background: linear-gradient(90deg, var(--brand-blue) 0 33.33%, var(--brand-yellow) 33.33% 66.66%, var(--brand-red) 66.66%); }

/* Banda de apel la actiune: violet din paleta + panglica */
.cta-band { background: var(--bg-violet); }
.cta-band::before { opacity: 1; background: url("img/ribbon.svg") right 240px bottom / auto 100% no-repeat; }
@media (max-width: 899px) { .cta-band::before { opacity: .3; background-position: right bottom; } }
.cta-band p { color: #EDEBFF; }

/* Footer: negru, cu banda tricolora deasupra */
.site-footer { background: #0E0E10; position: relative; }
.site-footer::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 6px;
    background: linear-gradient(90deg, var(--brand-blue) 0 33.33%, var(--brand-yellow) 33.33% 66.66%, var(--brand-red) 66.66%); }
.footer-contact .mi { color: var(--brand-yellow); }
.footer-bottom { border-top-color: #222; }

/* Domenii: cercuri pe fundalurile pastel din brandbook, pe rand */
.cats .cat-tile:nth-child(4n+1) .ph { background: var(--bg-cyan); }
.cats .cat-tile:nth-child(4n+2) .ph { background: var(--bg-lilac); }
.cats .cat-tile:nth-child(4n+3) .ph { background: var(--bg-pink); }
.cats .cat-tile:nth-child(4n+4) .ph { background: var(--bg-cream); }

/* Cartonase "de ce noi": iconite in culorile brandului */
.feature .ic { background: var(--violet-50); color: var(--brand-blue); }
.feature:nth-child(2) .ic { background: var(--bg-cream); color: #9A7400; }
.feature:nth-child(3) .ic { background: var(--bg-pink); color: var(--brand-red); }
.feature:nth-child(4) .ic { background: var(--bg-cyan); color: var(--bg-sky); }

/* Carduri de curs: "Gratuit" galben, domeniul albastru, numarul de lectii rosu */
.course-card .cover .tags .tag:first-child { background: var(--brand-yellow); color: #111; }
.course-card .cover .bubble { background: var(--brand-red); }
.checks li::before { background: var(--brand-red); }
.about-media .play { background: var(--brand-red); box-shadow: 0 0 0 10px rgba(229, 31, 31, .16); }
.tag-yellow { background: var(--bg-cream); color: #6B5200; }

/* Bara de progres: tricolora */
.tape-fill { background: linear-gradient(90deg, var(--brand-blue), var(--bg-sky)); }

/* Puncte / avatar / bara de jos */
.points-chip { background: var(--brand-blue); }
.points-chip .mi { color: var(--brand-yellow); }
.appbar a.is-active .mi { background: var(--bg-cream); color: var(--brand-blue); }

/* Focus vizibil */
:focus-visible { outline-color: var(--brand-yellow); }

/* Diploma (previzualizare) */
.cert-preview::before { background: linear-gradient(var(--brand-blue) 0 33.33%, var(--brand-yellow) 33.33% 66.66%, var(--brand-red) 66.66%); }
.cert-preview .seal { background: var(--brand-blue); }
.course-hero { background: var(--bg-cream); position: relative; overflow: hidden; }
.course-hero > .container { position: relative; z-index: 1; }
@media (min-width: 992px) {
    .course-hero::after { content: ""; position: absolute; right: 0; top: 0; bottom: 0; width: 110px;
        background: url("img/ribbon-v.svg") right center / auto 120% no-repeat; pointer-events: none; }
    .course-hero .container { padding-right: 90px; }
}
.mod .num { background: var(--bg-cream); color: #111; }
.step::before { background: var(--brand-yellow); color: #111; }

/* ---------- Feedback instant la teste: unde e greseala ---------- */
.opt .verdict { margin-left: auto; align-self: center; display: inline-flex; align-items: center; gap: 3px; font-size: .75rem; font-weight: 700; padding: 3px 8px 3px 6px; border-radius: 999px; white-space: nowrap; }
.opt .verdict .mi { font-size: 15px; }
.opt .v-ok { background: var(--green); color: #fff; }
.opt .v-bad { background: var(--brand-red); color: #fff; }
.opt .v-miss { background: #fff; color: var(--green); border: 1.5px dashed var(--green); }
.opt.is-missed { border-style: dashed; }
.opt.is-wrong .txt { text-decoration: line-through; text-decoration-color: rgba(229, 31, 31, .55); }
@media (max-width: 480px) { .opt { flex-wrap: wrap; } .opt .verdict { margin-left: 38px; } }
.fb-line { display: flex; align-items: flex-start; gap: 6px; margin: 0 0 6px; }
.fb-line .mi { font-size: 18px; margin-top: 2px; }
.fb-bad .mi { color: var(--brand-red); }
.fb-ok .mi { color: var(--green); }
.fb-miss .mi { color: #B58700; }
.opt:not(.is-locked) { transition: transform .08s; }
.options:not(.is-locked) .opt:active { transform: scale(.995); }

/* Video atasat la curs / modul / lectie / test */
.video-box { background: #000; border-radius: var(--r); overflow: hidden; }
.video-box-h { display: flex; align-items: center; gap: 8px; padding: 9px 14px; background: var(--brand-blue); color: #fff; font-weight: 600; font-size: .875rem; }
.video-box-h .mi { color: var(--brand-yellow); font-size: 20px; }
.video-link { position: absolute; inset: 0; display: grid; place-items: center; align-content: center; gap: 6px; color: #fff; font-weight: 600; background: linear-gradient(135deg, var(--brand-blue), var(--bg-violet)); }
.video-link .mi { font-size: 54px; width: auto; overflow: visible; color: var(--brand-yellow); }

/* ---------- Slider donatori / parteneri ---------- */
.donors { background: #fff; border-top: 1px solid var(--line); }
.donors .section-head { margin-bottom: 26px; }
.donor-track { position: relative; overflow: hidden; padding: 6px 0;
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.donor-row { display: flex; gap: 22px; width: max-content; padding: 0 11px; }
.donor-track.is-static .donor-row { width: auto; flex-wrap: wrap; justify-content: center; margin: 0 auto; max-width: var(--container); }
.donor-track.is-moving .donor-row { animation: donorScroll calc(var(--n) * 4s) linear infinite; }
.donor-track.is-moving:hover .donor-row, .donor-track.is-moving:focus-within .donor-row { animation-play-state: paused; }
@keyframes donorScroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .donor-track.is-moving .donor-row { animation: none; flex-wrap: wrap; width: auto; justify-content: center; } }
.donor { flex: 0 0 auto; width: 190px; height: 96px; display: grid; place-items: center; padding: 14px 18px; background: #fff; border: 1px solid var(--line); border-radius: 12px; transition: border-color .2s, box-shadow .2s, transform .2s; }
.donor img { max-width: 100%; max-height: 100%; object-fit: contain; filter: grayscale(1); opacity: .75; transition: filter .25s, opacity .25s; }
.donor:hover { border-color: var(--brand-blue); box-shadow: var(--shadow-md); transform: translateY(-2px); }
.donor:hover img, .donor:focus img { filter: none; opacity: 1; }
@media (max-width: 640px) { .donor { width: 150px; height: 80px; padding: 10px 14px; } .donor-row { gap: 14px; } }
.donors .section-head { flex-direction: column; align-items: center; text-align: center; } .donors .section-head p { margin: 6px 0 0; }

.site-footer .footer-brand .brand-name span { color: var(--brand-yellow); }

/* Antet pe ecrane foarte inguste (320-360 px): totul incape pe un rand */
@media (max-width: 380px) {
    .site-header .container { gap: 8px; }
    .brand-name { font-size: 1.15rem; }
    .brand img { height: 26px; }
    .header-actions { gap: 4px; }
    .header-actions .icon-btn { width: 34px; height: 34px; }
    .points-chip { height: 32px; padding: 0 9px 0 6px; font-size: .8125rem; }
}

/* ---------- Meniul burger (dreapta sus): grila cu toate paginile ---------- */
.dm-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin: 6px 0 4px; }
.dm-grid a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; min-height: 78px; padding: 10px 4px; text-align: center;
    border-radius: 12px; background: #F6F8FC; border: 1px solid var(--line); color: var(--ink); font-size: .75rem; font-weight: 600; line-height: 1.2; }
.dm-grid a .mi { font-size: 24px; color: var(--brand-blue); }
.dm-grid a:hover { border-color: var(--brand-blue); color: var(--brand-blue); }
.dm-grid a.is-active { background: var(--brand-blue); border-color: var(--brand-blue); color: #fff; }
.dm-grid a.is-active .mi { color: var(--brand-yellow); }
@media (max-width: 340px) { .dm-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.drawer-panel { width: min(380px, 92vw); }
.drawer-foot { border-top: 1px solid var(--line); }
@media (max-width: 640px) {
    .hero-search input { padding-right: 16px; font-size: .9375rem; }
    .hero-search kbd { display: none; }
}

/* Lectia anterioara / urmatoarea: titlul ramane in caseta lui (max. 2 randuri) */
.pager a { overflow: hidden; }
.pager a > span { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; white-space: normal; max-width: 100%; overflow: hidden; overflow-wrap: anywhere; line-height: 1.3; font-size: .9375rem; }
.pager a.next > span { text-align: right; }
@media (max-width: 380px) { .pager { gap: 8px; } .pager a { padding: 10px 11px; } .pager a > span { font-size: .875rem; } }
.cat-tile .ph { width: min(140px, 100%); height: auto; aspect-ratio: 1; }

/* iPhone/iPad: campurile sub 16px fac zoom automat la atingere si pagina ramane marita.
   Pe telefon si tableta toate campurile au minim 16px. */
@media (max-width: 991px), (hover: none) and (pointer: coarse) {
    input, select, textarea, .short-input, .hero-search input, .search-field input, .searchbar input { font-size: 16px !important; }
}
/* imaginile si video-urile nu depasesc niciodata latimea ecranului */
img, video, iframe, svg { max-width: 100%; }
.prose table { display: block; max-width: 100%; overflow-x: auto; }
.prose pre { max-width: 100%; overflow-x: auto; }
.prose, .qprompt, .qbody { overflow-wrap: anywhere; }

/* =====================================================================
   Structura v2: Meserii / Discipline, resurse, capitole, recuperare,
   grupe si panoul profesorului
   ===================================================================== */
.paths { display: grid; gap: 14px; }
@media (min-width: 768px) { .paths { grid-template-columns: 1fr 1fr; } }
.path-card { display: grid; grid-template-columns: auto 1fr auto; gap: 16px; align-items: center; padding: 20px; border-radius: var(--r); color: var(--ink); background: var(--violet-50); border: 2px solid transparent; transition: border-color .15s, transform .15s; }
.path-card:hover { border-color: var(--brand-blue); transform: translateY(-2px); color: var(--ink); }
.path-card .ic { width: 56px; height: 56px; border-radius: 14px; display: grid; place-items: center; background: var(--brand-blue); color: #fff; }
.path-card .ic .mi { font-size: 30px; }
.path-card small { display: block; color: var(--muted); font-weight: 600; font-size: .75rem; text-transform: uppercase; letter-spacing: .06em; }
.path-card b { display: block; font-family: Montserrat, var(--font, sans-serif); font-size: 1.4rem; line-height: 1.2; }
.path-card em { display: block; font-style: normal; color: var(--ink-2); font-size: .9rem; margin-top: 4px; }
.path-card .go { color: var(--brand-blue); }
.path-disc { background: #FFF8E1; }
.path-disc .ic { background: var(--brand-yellow); color: #111; }

.disc-tile .ph { background: color-mix(in srgb, var(--dc) 14%, #fff); }
.disc-tile .ph .mi { color: var(--dc); }
.disc-row { background: #fff; border-radius: var(--r); box-shadow: var(--shadow); margin-bottom: 14px; overflow: hidden; border-left: 5px solid var(--dc); }
.disc-head { display: grid; grid-template-columns: auto 1fr auto; gap: 14px; align-items: center; padding: 16px 18px; color: var(--ink); }
.disc-head:hover { background: var(--violet-50); color: var(--ink); }
.disc-head b { display: block; font-size: 1.15rem; }
.disc-head small { display: block; color: var(--muted); }
.disc-ic { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; background: color-mix(in srgb, var(--dc) 14%, #fff); color: var(--dc); }
.disc-head .go { color: var(--muted-2); }
.branch-chips { display: flex; flex-wrap: wrap; gap: 8px; padding: 0 18px 16px; }
.branch { display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border-radius: 999px; background: var(--violet-50); color: var(--brand-blue); font-weight: 600; font-size: .875rem; }
.branch .mi { font-size: 18px; }
.branch.is-rec { background: #E0F9FB; color: #00737F; }
.rec-hero { display: grid; grid-template-columns: auto 1fr; gap: 16px; align-items: center; padding: 20px; border-radius: var(--r); background: #F3F1FF; border: 2px dashed #A59EF0; color: var(--ink); margin-bottom: 14px; }
.rec-hero:hover { color: var(--ink); border-style: solid; }
.rec-hero .ic { width: 54px; height: 54px; border-radius: 14px; background: #00A6B8; color: #fff; display: grid; place-items: center; }
.rec-hero small { display: block; font-weight: 700; color: #00737F; font-size: .78rem; text-transform: uppercase; letter-spacing: .05em; }
.rec-hero b { display: block; font-size: 1.25rem; }
.rec-hero em { display: block; font-style: normal; color: var(--ink-2); font-size: .92rem; }
.rec-hero .btn { grid-column: 1 / -1; justify-self: start; }
@media (min-width: 700px) { .rec-hero { grid-template-columns: auto 1fr auto; } .rec-hero .btn { grid-column: auto; } }
.tag-rec { background: #00A6B8 !important; color: #fff !important; }
.tag-rem { background: #E0F9FB; color: #00737F; }

/* Resurse educationale: primul bloc din modul */
.res-block { margin: 10px 12px; border: 2px solid #FCD34D; background: #FFFBEB; border-radius: 12px; padding: 12px; }
.res-h { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-weight: 700; color: #92400E; margin-bottom: 10px; }
.res-h small { font-weight: 500; color: #B45309; }
.res-grid { display: grid; gap: 8px; }
@media (min-width: 640px) { .res-grid { grid-template-columns: 1fr 1fr; } }
.res-item { display: grid; grid-template-columns: auto 1fr auto; gap: 10px; align-items: center; padding: 10px 12px; border-radius: 10px; background: #fff; color: var(--ink); min-width: 0; }
.res-item:hover { color: var(--brand-blue); box-shadow: 0 0 0 2px #FCD34D inset; }
.res-item b { display: block; font-size: .92rem; line-height: 1.3; overflow-wrap: anywhere; }
.res-item small { display: block; color: var(--muted); font-size: .75rem; }
.res-ic { width: 34px; height: 34px; border-radius: 9px; display: grid; place-items: center; background: #FEF3C7; color: #B45309; }
.res-pdf { background: #FEE2E2; color: #B91C1C; }
.res-game { background: #E0E7FF; color: #4338CA; }
.res-video b { display: block; font-size: .92rem; }

/* Capitole */
.chap { margin: 10px 12px; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.chap-h { display: grid; grid-template-columns: auto 1fr auto; gap: 10px; align-items: center; padding: 10px 14px; background: #F8FAFF; }
.chap-h > .mi { color: var(--brand-blue); }
.chap-h b { display: block; font-size: .95rem; }
.chap-h small { display: block; color: var(--muted); font-size: .78rem; }
.chap.is-done .chap-h > .mi { color: var(--green); }
.chap .lessons { padding: 0; }
.mod-flat { padding: 4px 0; }
.lessons .chap-row { display: flex; align-items: center; gap: 8px; padding: 9px 16px 5px; font-weight: 700; font-size: .8rem; color: var(--brand-blue); text-transform: uppercase; letter-spacing: .03em; border-top: 1px solid var(--line); }
.lessons .chap-row .mi { font-size: 16px; }
.lessons li.is-locked a { color: var(--muted-2); }
.lessons li.is-locked .st { color: var(--muted-2); border-color: #E2E8F0; }

/* Diagnosticare + plan de recuperare */
.diag-card { display: grid; grid-template-columns: auto 1fr; gap: 14px; align-items: center; padding: 16px 18px; border-radius: var(--r); background: #F3F1FF; border: 2px solid #C7C2F5; margin-bottom: 16px; }
.diag-card > .mi { font-size: 34px; color: #00A6B8; }
.diag-card b { display: block; font-size: 1.05rem; }
.diag-card p { margin: 2px 0 0; color: var(--ink-2); font-size: .9rem; }
.diag-card .btn { grid-column: 1 / -1; justify-self: start; }
@media (min-width: 640px) { .diag-card { grid-template-columns: auto 1fr auto; } .diag-card .btn { grid-column: auto; } }
.diag-card.is-done { background: var(--green-50); border-color: #86EFAC; }
.diag-card.is-done > .mi { color: var(--green); }
.plan-card { background: #fff; border-radius: var(--r); box-shadow: var(--shadow); padding: 16px 18px; margin-bottom: 18px; border-top: 4px solid #00A6B8; }
.plan-h { display: flex; gap: 12px; align-items: center; margin-bottom: 8px; }
.plan-h > .mi { font-size: 30px; color: #00A6B8; }
.plan-h b { display: block; font-size: 1.05rem; }
.plan-h small { color: var(--muted); }
.plan-list { margin: 0; padding-left: 1.3em; }
.plan-list > li { padding: 8px 0; border-top: 1px solid var(--line); }
.plan-list > li:first-child { border-top: 0; }
.plan-ch { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; justify-content: space-between; }
.plan-list ul { list-style: none; margin: 6px 0 0; padding: 0; }
.plan-list ul a { display: inline-flex; align-items: center; gap: 6px; padding: 4px 0; font-weight: 600; }
.plan-list ul .mi { font-size: 18px; }

/* Grupe si panoul profesorului */
.stat-tiles { display: grid; gap: 10px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 768px) { .stat-tiles { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.stat-tile { background: #fff; border-radius: var(--r); box-shadow: var(--shadow); padding: 14px; display: grid; gap: 2px; min-width: 0; }
.stat-tile .mi { color: var(--brand-blue); }
.stat-tile b { font-size: 1.6rem; font-family: Montserrat, sans-serif; line-height: 1.1; }
.stat-tile small { color: var(--muted); font-size: .8rem; }
.group-row { display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: center; padding: 14px 16px; margin-bottom: 10px; color: var(--ink); }
a.group-row:hover { color: var(--ink); box-shadow: 0 0 0 2px var(--brand-blue) inset; }
.group-row .ic { width: 42px; height: 42px; border-radius: 12px; background: var(--violet-50); color: var(--brand-blue); display: grid; place-items: center; }
.group-row .grow { min-width: 0; }
.group-row b { display: block; }
.group-row small { display: block; color: var(--muted); overflow-wrap: anywhere; }
.group-row.is-off { opacity: .6; }
.code-join { display: flex; gap: 8px; flex-wrap: wrap; }
.code-join input { flex: 1 1 160px; min-width: 0; height: 46px; padding: 0 14px; border: 1px solid var(--line); border-radius: 10px; font: inherit; font-size: 16px; font-weight: 700; letter-spacing: .12em; }
.my-qr img { width: min(240px, 100%); height: auto; image-rendering: pixelated; border: 8px solid #fff; border-radius: 10px; box-shadow: var(--shadow); }
.group-code { font-family: Montserrat, sans-serif; font-weight: 800; font-size: 1.8rem; letter-spacing: .2em; color: var(--brand-blue); margin: 10px 0 6px; }
.copy-input { width: 100%; font: inherit; font-size: 14px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 8px; color: var(--muted); background: #F8FAFC; }
.table-wrap { overflow-x: auto; background: #fff; border-radius: var(--r); box-shadow: var(--shadow); -webkit-overflow-scrolling: touch; }
.table-wrap .table-simple td .tape { min-width: 80px; }
.table-simple .num { text-align: right; white-space: nowrap; }
.acc-links { padding: 6px 0 !important; }
.acc-links a { display: grid; grid-template-columns: auto 1fr auto; gap: 10px; align-items: center; padding: 10px 16px; color: var(--ink); }
.acc-links a + a { border-top: 1px solid var(--line); }
.acc-links a > .mi:first-child { color: var(--brand-blue); }
.acc-links b { display: block; font-size: .92rem; }
.acc-links small { display: block; color: var(--muted); font-size: .78rem; }
.teacher-check { background: var(--violet-50); padding: 10px 12px; border-radius: 10px; }
.res-video { display: block; padding: 0; }
.res-video > summary { list-style: none; cursor: pointer; display: grid; grid-template-columns: auto 1fr auto; gap: 10px; align-items: center; padding: 10px 12px; }
.res-video > summary::-webkit-details-marker { display: none; }
.res-video[open] { grid-column: 1 / -1; }
.res-video-body { padding: 0 12px 12px; }
.res-video-ic { background: #DBEAFE; color: #1D4ED8; }
.table-simple td:first-child { min-width: 170px; }
.table-simple td:first-child b { white-space: nowrap; }
.mention-card { display: grid; grid-template-columns: auto 1fr; gap: 14px; align-items: start; padding: 16px 18px; border-radius: var(--r); background: #fff; box-shadow: var(--shadow); margin-bottom: 18px; border-left: 4px solid #C7C2F5; }
.mention-card > .mi { font-size: 30px; color: #A59EF0; }
.mention-card.is-ready { border-left-color: var(--green); }
.mention-card.is-ready > .mi { color: var(--green); }
.mention-card b { display: block; }
.mention-card p { margin: 2px 0 0; color: var(--ink-2); font-size: .9rem; }
.mention-card > .btn { grid-column: 1 / -1; justify-self: start; }
@media (min-width: 640px) { .mention-card { grid-template-columns: auto 1fr auto; } .mention-card > .btn { grid-column: auto; } }
.mention-form { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 8px; }
.mention-form input { flex: 1 1 200px; min-width: 0; height: 40px; padding: 0 12px; border: 1px solid var(--line); border-radius: 8px; font: inherit; font-size: 16px; }
.progress-panel .btn { white-space: normal; text-align: center; line-height: 1.25; }

/* Blocul „Resurse educaționale” al calificării (la finalul paginii) */
.res-course { margin-top: 18px; border: 2px solid #FCD34D; background: #FFFBEB; border-radius: 14px; padding: 14px; }
.res-course-h { display: flex; gap: 12px; align-items: center; margin-bottom: 10px; }
.res-course-h > .mi { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: #FDE68A; color: #92400E; font-size: 24px; flex: none; }
.res-course-h b { display: block; font-size: 1.1rem; }
.res-course-h small { color: var(--muted, #64748b); }
.res-course-sub { font-weight: 700; margin: 10px 4px 4px; color: #92400E; }
.res-course .mod-flat { background: #fff; border-radius: 12px; }

/* Remediere: evaluarea nesusținută apare cu roșu */
.diag-card.is-todo { background: #FEF2F2; border-color: #F87171; }
.diag-card.is-todo > .mi { color: #DC2626; }
.diag-card.is-todo b { color: #991B1B; }
.diag-card.is-todo .btn-primary { background: #DC2626; border-color: #DC2626; }
.diag-card.is-done { background: #F0FDF4; border-color: #86EFAC; }
.diag-card.is-done > .mi { color: #16A34A; }

/* Teste generale ale disciplinei */
.gen-tests { margin: 18px 0; border: 2px solid #BFDBFE; background: #EFF6FF; border-radius: 14px; padding: 14px; }
.gen-tests-h { display: flex; gap: 12px; align-items: center; margin-bottom: 12px; }
.gen-tests-h > .mi { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: #DBEAFE; color: #1C4CB7; font-size: 24px; flex: none; }
.gen-tests-h b { display: block; font-size: 1.05rem; }
.gen-tests-h small { color: var(--muted, #64748b); }
.gen-tests-grid { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); }
.gen-test { display: flex; flex-direction: column; gap: 4px; background: #fff; border: 1px solid #DBEAFE; border-radius: 12px; padding: 12px; color: inherit; text-decoration: none; }
.gen-test:hover { border-color: #1C4CB7; }
.gen-test small { color: var(--muted, #64748b); }
.gen-test .tag { align-self: flex-start; margin-top: 4px; }
.gen-test.is-pass { border-color: #86EFAC; }
.plan-sub { font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--muted, #64748b); margin: 10px 0 4px; }
.plan-items { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.plan-items li { display: grid; grid-template-columns: auto 1fr auto; gap: 8px; align-items: center; background: #fff; border: 1px solid #FECACA; border-radius: 10px; padding: 8px 10px; }
.plan-items .q { font-size: .9rem; }
@media (max-width: 639px) { .plan-items li { grid-template-columns: auto 1fr; } .plan-items li .btn { grid-column: 1 / -1; justify-self: start; } }

/* Teste de remediere structurate pe capitole (culori, casete) */
.quiz-banner { background: linear-gradient(135deg, #EEF2FB, #F3F1FF); border: 1px solid #DCE3F7; border-radius: 16px; padding: 14px 16px; margin-bottom: 14px; }
.quiz-banner small { display: block; color: var(--muted, #64748b); font-weight: 600; }
.quiz-banner b { display: block; font-size: 1.1rem; margin-top: 2px; }
.quiz-legend { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.quiz-legend span { display: inline-flex; align-items: center; gap: 6px; font-size: .78rem; background: #fff; border: 1px solid #E5E7EB; border-left: 4px solid var(--sc); border-radius: 8px; padding: 3px 8px 3px 6px; }
.quiz-legend i { font-style: normal; font-weight: 800; color: var(--sc); }
.qsection { display: flex; align-items: center; gap: 10px; background: color-mix(in srgb, var(--sc) 10%, #fff); border: 1px solid color-mix(in srgb, var(--sc) 35%, #fff); border-radius: 14px 14px 0 0; padding: 10px 14px; margin-bottom: -6px; }
.qsection i { font-style: normal; width: 30px; height: 30px; display: grid; place-items: center; border-radius: 9px; background: var(--sc); color: #fff; font-weight: 800; flex: none; }
.qsection small { display: block; font-size: .7rem; text-transform: uppercase; letter-spacing: .05em; color: var(--sc); font-weight: 800; }
.qsection span { font-weight: 700; font-size: .92rem; line-height: 1.25; }
.qcard.has-section { border-top: 4px solid var(--sc); border-radius: 0 0 var(--r) var(--r); }
.qcard .qbody { background: #F8FAFC; border: 1px dashed #CBD5E1; border-radius: 12px; padding: 12px 14px; margin: 10px 0 14px; }
.qcard .qbody table { border-collapse: collapse; margin: 6px 0; }
.qcard .qbody td, .qcard .qbody th { border: 1px solid #CBD5E1; padding: 4px 8px; }

/* Pagina Discipline: Remediere și Discipline pe domenii, separate vizual */
.disc-jump { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 16px; }
.disc-jump a { display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: 999px; font-weight: 700; text-decoration: none; }
.disc-jump a.is-rem { background: #E0F9FB; color: #00737F; }
.disc-jump a.is-dom { background: #E0F2FE; color: #075985; }
.disc-block { border-radius: 18px; padding: 18px; margin-bottom: 26px; scroll-margin-top: 90px; }
.disc-block.is-rem { background: #F7F5FF; border: 2px solid #D9D4FB; }
.disc-block.is-dom { background: #F0F9FF; border: 2px solid #BAE6FD; }
.disc-block-h { display: flex; gap: 14px; align-items: flex-start; margin-bottom: 16px; }
.disc-block-h > .mi { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; font-size: 26px; flex: none; }
.disc-block.is-rem .disc-block-h > .mi { background: #00A6B8; color: #fff; }
.disc-block.is-dom .disc-block-h > .mi { background: #0284C7; color: #fff; }
.disc-block-h h2 { margin: 0 0 2px; font-size: 1.35rem; }
.disc-block-h p { margin: 0; color: var(--ink-2); }
.rem-card { display: flex; flex-direction: column; gap: 6px; background: #fff; border: 1px solid #BDEFF4; border-radius: 16px; padding: 16px; text-decoration: none; color: inherit; transition: transform .15s, box-shadow .15s; }
.rem-card:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.rem-card .disc-ic { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; background: color-mix(in srgb, var(--dc) 15%, #fff); color: var(--dc); }
.rem-card b { font-size: 1.15rem; }
.rem-card small { color: var(--muted, #64748b); }
.rem-card .tag { align-self: flex-start; }
.dom-title { display: flex; align-items: center; gap: 8px; font-size: 1.05rem; margin: 6px 0 12px; color: #075985; }
.act-frame { background: #F8FAFC; }
.act-frame iframe { display: block; width: 100%; height: 680px; border: 0; background: #fff; }
@media (max-width: 639px) { .act-frame iframe { height: 560px; } }
.order-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; counter-reset: ord; }
.order-list li { display: grid; grid-template-columns: auto 1fr auto; gap: 10px; align-items: center; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 8px 10px; cursor: grab; counter-increment: ord; }
.order-list li .txt { font-size: .9rem; }
.order-list li .txt small { display: block; color: var(--muted, #64748b); }
.order-list li .drag { color: #94A3B8; }
.order-list li.is-drag { opacity: .5; }
.order-list .arrows { display: flex; gap: 2px; }
.copy-row { display: flex; gap: 6px; margin-top: 8px; }
.note { display: flex; gap: 8px; align-items: flex-start; background: #EFF6FF; border: 1px solid #BFDBFE; border-radius: 12px; padding: 10px 12px; }
.teacher-box { background: var(--violet-50); border: 1px solid var(--violet-100); border-radius: 14px; padding: 14px 14px 2px; margin: -4px 0 16px; }
.teacher-box select { max-width: 100%; }
.subject-picks { display: flex; flex-wrap: wrap; gap: 8px; }
.subject-pick { display: inline-flex; align-items: center; gap: 6px; background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 7px 12px; font-size: .9rem; cursor: pointer; }
.subject-pick:has(input:checked) { border-color: var(--violet); background: var(--violet-100); font-weight: 600; }
.subject-pick input { margin: 0; accent-color: var(--violet); }
.mt-4 { margin-top: 4px; }
.status-steps { display: grid; gap: 10px; text-align: left; margin: 18px 0; }
.status-steps li { list-style: none; display: flex; gap: 10px; align-items: flex-start; }
.status-steps .mi { color: #94A3B8; }
.status-steps .ok .mi { color: #0E9F6E; }
.status-steps .wait .mi { color: #D97706; }
@media (max-width: 639px) { .auth-card select, .auth-card input { font-size: 16px; } .teacher-box { padding: 12px 10px 2px; } }
.field .subject-pick input { width: 18px; height: 18px; min-height: 0; padding: 0; flex: none; }
.status-steps { padding: 0; max-width: 520px; margin-left: auto; margin-right: auto; }
.field label.subject-pick { display: inline-flex; margin: 0; font-weight: 500; }

/* =====================================================================
   Identitatea vizuală CONSEPT 6 (brandbook 2026):
   Albastru meditativ #0B1FAF, Azuriu transformativ #00C8D7, Oranj energic #FF8A00,
   Alb echilibrat; gradient azuriu → oranj; titluri Outfit Bold, text DM Sans.
   Suprascrie paleta AED de mai sus (variabilele vechi arată acum spre culorile noi).
   ===================================================================== */
:root {
    --brand-blue: #0B1FAF;
    --brand-cyan: #00C8D7;
    --brand-orange: #FF8A00;
    --brand-yellow: var(--brand-orange);
    --brand-red: var(--brand-orange);
    --brand-grad: linear-gradient(90deg, #00C8D7, #FF8A00);
    --bg-sky: #00A6B8;
    --bg-violet: #0B1FAF;
    --bg-cyan: #E0F9FB;
    --bg-lilac: #E8EBFD;
    --bg-pink: #FFF0DD;
    --bg-cream: #FFF5E8;
    --violet-700: #08167F;
    --violet-50: #EEF0FD;
    --violet-100: #DCE0FA;
    --amber: var(--brand-orange);
    --red: #DC2626;
    --font: "DM Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    --font-title: "Outfit", "DM Sans", system-ui, sans-serif;
}
h1, h2 { font-weight: 700; letter-spacing: -.015em; }

/* Antet albastru cu logoul alb (versiunea pentru fundal albastru) */
.site-header { background: var(--brand-blue); box-shadow: 0 2px 12px rgba(11, 31, 175, .25); }
.brand-logo { height: 54px; width: auto; display: block; }
.site-header .brand { padding: 4px 0; }
.main-nav a { color: rgba(255, 255, 255, .86); font-weight: 600; border-radius: 999px; }
.main-nav a:hover { color: #fff; background: rgba(255, 255, 255, .1); }
.main-nav a.is-active { color: #fff; background: rgba(255, 255, 255, .14); box-shadow: inset 0 -3px 0 var(--brand-orange); border-radius: 10px 10px 4px 4px; }
.site-header .icon-btn { color: #fff; }
.site-header .icon-btn:hover { color: #fff; background: rgba(255, 255, 255, .14); }
.site-header .btn-primary { background: var(--brand-orange); border-color: var(--brand-orange); color: #fff; }
.site-header .btn-primary:hover { background: #E67C00; border-color: #E67C00; color: #fff; }
.site-header .points-chip { background: rgba(255, 255, 255, .14); }
.site-header .avatar { border-color: rgba(255, 255, 255, .6); }
@media (max-width: 380px) { .brand-logo { height: 36px; } }
.drawer-head { background: var(--brand-blue); margin: -16px -16px 10px; padding: 12px 12px 12px 16px; }
.drawer-head .brand-logo { height: 40px; }
.drawer-head .icon-btn { color: #fff; }
.drawer-head .icon-btn:hover { background: rgba(255, 255, 255, .14); color: #fff; }

/* Fundaluri: nuanțe deschise de azuriu și oranj, cu gradientul brandului ca accent */
.hero { background: linear-gradient(135deg, #E6FAFC 0%, #F4F6FF 55%, #FFF4E6 100%); }
.hero::after, .page-band::after, .course-hero::after { content: none !important; display: none !important; }
.hero .container { padding-bottom: clamp(48px, 7vw, 90px); }
.hero-blob { background: var(--brand-blue); box-shadow: 0 20px 60px rgba(11, 31, 175, .28); }
.hero-shape { background: var(--brand-orange); }
.hero-search { border-color: #CDEFF3; }
.page-band, .course-hero { background: linear-gradient(135deg, #E9FBFD 0%, #F5F6FF 60%, #FFF6EA 100%); }
.page-band::before, .course-hero::before { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: var(--brand-grad); }
.section--tint { background: #F4F6FF; }
.tricolor { background: var(--brand-grad); }
.hl::before { background: rgba(0, 200, 215, .35); }
.cta-band { background: var(--brand-blue); }
.cta-band::before { opacity: 1; background: radial-gradient(circle at 92% 110%, rgba(0, 200, 215, .55) 0 22%, transparent 23%), radial-gradient(circle at 80% -20%, rgba(255, 138, 0, .55) 0 18%, transparent 19%); }
.cta-band p { color: #DCE0FA; }

/* Subsol: albastru închis, gradientul brandului deasupra, logoul alb */
.site-footer { background: #07137A; }
.site-footer::before { background: var(--brand-grad); }
.footer-brand .brand-logo { height: 52px; }
.footer-contact .mi { color: var(--brand-cyan); }
.footer-bottom { border-top-color: rgba(255, 255, 255, .12); }

/* Accente */
.btn-amber, .cta-band .btn-yellow, .cta-band .btn-amber { background: var(--brand-orange); border-color: var(--brand-orange); color: #fff; }
.btn-amber:hover { background: #E67C00; border-color: #E67C00; color: #fff; }
.course-card .cover .tags .tag:first-child { background: var(--brand-orange); color: #fff; }
.course-card .cover .bubble { background: var(--brand-orange); }
.checks li::before { background: var(--brand-cyan); }
.about-media .play { background: var(--brand-orange); box-shadow: 0 0 0 10px rgba(255, 138, 0, .18); }
.tape-fill { background: var(--brand-grad); }
.points-chip .mi, .video-box-h .mi, .video-link .mi, .dm-grid a.is-active .mi { color: var(--brand-orange); }
.video-link { background: linear-gradient(135deg, var(--brand-blue), #00A6B8); }
.appbar a.is-active .mi { background: var(--bg-cyan); color: var(--brand-blue); }
.cats .cat-tile:nth-child(4n+1) .ph { background: #E0F9FB; }
.cats .cat-tile:nth-child(4n+2) .ph { background: #EEF0FD; }
.cats .cat-tile:nth-child(4n+3) .ph { background: #FFF0DD; }
.cats .cat-tile:nth-child(4n+4) .ph { background: #E0F9FB; }
.feature .ic { background: var(--violet-50); color: var(--brand-blue); }
.feature:nth-child(2) .ic { background: var(--bg-cyan); color: #00808D; }
.feature:nth-child(3) .ic { background: var(--bg-pink); color: #C76A00; }
.feature:nth-child(4) .ic { background: var(--violet-50); color: var(--brand-blue); }
.tag-yellow { background: #FFF0DD; color: #8A4B00; }
.step::before { background: var(--brand-orange); color: #fff; }
.mod .num { background: var(--bg-cyan); color: var(--brand-blue); }
.cert-preview::before { background: linear-gradient(var(--brand-cyan), var(--brand-orange)); }
.site-footer .footer-brand .brand-name span { color: var(--brand-cyan); }
/* Greșelile din teste rămân roșii (nu oranj) */
.opt .v-bad { background: #DC2626; }
.fb-bad .mi { color: #DC2626; }
.opt.is-wrong .txt { text-decoration-color: rgba(220, 38, 38, .55); }

/* Iconițele disciplinelor (PNG albe pe fundal în culoarea disciplinei, forma „picătură” din logo) */
.disc-badge { display: inline-grid; place-items: center; flex-shrink: 0; width: 46px; height: 46px; border-radius: 50% 50% 50% 8px; background: var(--dc, var(--brand-blue)); color: #fff; overflow: hidden; }
.disc-badge img { width: 84%; height: 84%; object-fit: contain; }
.disc-badge.is-mi .mi { color: #fff; font-size: 26px; width: auto; overflow: visible; }
.disc-badge.is-md { width: 52px; height: 52px; }
.disc-badge.is-lg { width: 64px; height: 64px; border-radius: 50% 50% 50% 10px; }
.disc-badge.is-lg.is-mi .mi { font-size: 34px; }
.disc-badge.is-xl { width: 100%; height: 100%; border-radius: 50%; }
.disc-badge.is-xl img { width: 70%; height: 70%; }
.disc-badge.is-xl.is-mi .mi { font-size: 56px; }
.disc-tile .ph.ph-disc { background: var(--dc); border-color: #fff; }
.rem-card .disc-badge { margin-bottom: 2px; }
.disc-title { display: flex; align-items: center; gap: 14px; }
.disc-title h1 { margin: 0; }
.page-band .disc-title { justify-content: center; }

/* ===== Ajustări AED 17.11.2026 ===== */
.brand img.brand-logo, .site-header .brand-logo { height: 50px; width: auto; }
.site-header .brand { padding: 2px 0; }
@media (max-width: 991px) { .brand img.brand-logo, .site-header .brand-logo { height: 42px; } }
@media (max-width: 380px) { .brand img.brand-logo, .site-header .brand-logo { height: 38px; } }
.footer-brand img.brand-logo { height: 64px; width: auto; }
.drawer-head img.brand-logo { height: 42px; width: auto; }
/* Slider: cardul plutitor stă sub cerc, nu peste fața persoanei; poza e centrată pe partea de sus */
.float-card.fc-1.fc-below { top: auto; right: auto; left: -8px; bottom: 6%; }
.hero-blob img { object-position: center 22%; }
.hero-shape { top: 4%; right: 6%; left: auto; }
/* Butonul play centrat pe imaginea mică */
.about-media .m2-wrap { position: absolute; right: 0; bottom: 0; width: 48%; aspect-ratio: 1; }
.about-media .m2-wrap .m2 { position: static; width: 100%; height: 100%; }
.about-media .m2-wrap .play { left: 50%; top: 50%; transform: translate(-50%, -50%); }
/* Donatori: logourile în culorile lor */
.donor img { filter: none; opacity: 1; }
/* Mai multe carduri pe rând, ca să umplem lățimea paginii */
@media (min-width: 992px) { .grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; } }
@media (min-width: 640px) and (max-width: 991px) { .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.popular-grid .course-card .cover, .grid-4 .course-card .cover { aspect-ratio: 1 / 1; }
.grid-4 .course-card h3 { font-size: 1.02rem; }
.cats-center { display: flex; flex-wrap: wrap; justify-content: center; gap: 28px 40px; }
.cats-center .cat-tile { width: 200px; }
.section-head.no-title { justify-content: flex-end; }
@media (min-width: 1200px) { .cats { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.plan-cta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; padding-top: 14px; border-top: 1px dashed var(--line); }
.course-hero-img { justify-self: end; width: 100%; max-width: 360px; }
.course-hero-img img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; border-radius: 24px; border: 6px solid #fff; box-shadow: var(--shadow-md); }
@media (max-width: 991px) { .course-hero-img { display: none; } }
@media (min-width: 992px) { .layout-2.is-wide { grid-template-columns: minmax(0, 1fr); } }
/* Cele mai căutate calificări: poze în cerc, ca pe site-ul vechi */
.popular-circles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 20px; }
@media (min-width: 640px) { .popular-circles { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 992px) { .popular-circles { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.pop-tile .ph { width: 190px; height: 190px; max-width: 100%; aspect-ratio: 1; background: #fff; }
@media (max-width: 639px) { .pop-tile .ph { width: 140px; height: 140px; } }
.pop-tile h3 { font-size: 1.05rem; }
/* Resursele migrate de pe site-ul vechi: carduri cu poză, ca pe meseriamea.com */
.res-grid { grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 12px; }
.res-item.has-img { grid-template-columns: 1fr auto; grid-template-rows: auto auto; padding: 0 0 10px; overflow: hidden; align-items: start; }
.res-item.has-img .res-thumb { grid-column: 1 / -1; display: block; aspect-ratio: 16 / 10; background: #F1F5F9; margin-bottom: 4px; }
.res-item.has-img .res-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.res-item.has-img > span:nth-child(2) { padding: 0 0 0 12px; }
.res-item.has-img > .mi:last-child { padding-right: 10px; color: var(--muted); }
.res-item.has-img:hover .res-thumb img { transform: scale(1.03); transition: transform .3s; }
/* Lățimea utilă: conținutul ocupă mai mult din ecran, cu margini proporționale (cerința AED 18.11) */
:root { --container: 1400px; }
.container { padding-left: clamp(16px, 3.2vw, 48px); padding-right: clamp(16px, 3.2vw, 48px); }
@media (min-width: 768px) { .container { padding-left: clamp(16px, 3.2vw, 48px); padding-right: clamp(16px, 3.2vw, 48px); } }
.container-narrow, .container.narrow { max-width: 1100px; }
/* Hero: prezentarea platformei, cu avantajele (fostul bloc „Acces la învățare”) */
.hero-checks { list-style: none; padding: 0; margin: 0 0 22px; display: flex; flex-wrap: wrap; gap: 8px; }
.hero-checks li { display: inline-flex; align-items: center; gap: 6px; background: rgba(255, 255, 255, .8); border: 1px solid #D9EEF3; border-radius: 999px; padding: 6px 12px; font-size: .86rem; font-weight: 500; }
.hero-checks .mi { font-size: 18px; color: var(--brand-blue); }
.float-card.fc-1 b { font-size: .95rem; }
/* „Ai rămas aici” cu acces rapid la secțiuni */
.resume-box { display: grid; gap: 10px; }
.quick-links { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 0 4px; }
.quick-links a { display: inline-flex; align-items: center; gap: 6px; padding: 7px 14px; border-radius: 999px; background: var(--violet-50); color: var(--brand-blue); font-weight: 600; font-size: .88rem; }
.quick-links a:hover { background: var(--violet-100); }
.quick-links .mi { font-size: 18px; }
@media (max-width: 639px) { .hero-checks { gap: 6px; } .hero-checks li { font-size: .8rem; padding: 4px 10px; } .hero-checks .mi { font-size: 16px; } }
/* Acces rapid: spațiu dedesubt (cerința AED 18.11) */
.resume-box { padding-bottom: 5%; }
/* Subsol: legături fără puncte / săgeți în față (cerința AED 19.11) */
.footer-grid ul a::before { content: none; display: none; }
.footer-grid ul li::marker { content: ""; }
/* Domeniile de pe pagina Calificări: pe mai multe rânduri, fără derulare și fără text tăiat (cerința AED 19.11) */
.filters { flex-wrap: wrap; overflow: visible; gap: 8px 8px; }
.filters .chip { flex-shrink: 1; max-width: 100%; white-space: normal; line-height: 1.3; padding: 7px 14px; font-size: .875rem; }
@media (max-width: 639px) { .filters .chip { font-size: .8125rem; padding: 6px 12px; } }
.quick-links a.is-main { background: var(--brand-blue); color: #fff; }
.quick-links a.is-main:hover { background: #08167F; }
