/* =====================================================================
   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: #665ED3;
    --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; } }
.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; }
