/* ==========================================================================
   Famous Rally Monesse — sistemul de design (Christmas Edition 2026)
   Un singur fișier pentru tot site-ul. Temă întunecată de iarnă: roșu închis,
   verde brad și accent auriu. Tipografie Saira: lată pentru text, îngustă și
   cursivă pentru titluri.
   ========================================================================== */

:root {
    color-scheme: dark;

    --bg:        #0B0D0C;
    --bg-2:      #0F1311;
    --surface:   #141917;
    --surface-2: #1A201D;
    --surface-3: #232A26;
    --line:      #27302B;
    --line-2:    #36413B;

    --text:   #F4F3EF;
    --text-2: #BDBCB6;
    --muted:  #8A8990;

    --accent:      #D4AF37;
    --accent-2:    #E8C766;
    --accent-ink:  #120E04;
    --accent-soft: rgba(212, 175, 55, .12);
    --accent-line: rgba(212, 175, 55, .38);
    --red:         #9E1B24;
    --green:       #145A3A;

    --ok:   #2FBF71;
    --warn: #FFB020;
    --bad:  #FF5252;
    --info: #5AB0FF;
    --eu:   #1F4FBF;

    --font: "Saira", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

    --r:    4px;
    --r-lg: 8px;
    --cut:  10px;          /* tăietura oblică a butoanelor */
    --wrap: 1280px;
    --gut:  clamp(16px, 4vw, 40px);
    --hdr:  68px;

    --ease: cubic-bezier(.2, .7, .1, 1);
}

/* ── Bază ─────────────────────────────────────────────────────────────── */

*, *::before, *::after { box-sizing: border-box; }

html {
    -webkit-text-size-adjust: 100%;
    scroll-padding-top: calc(var(--hdr) + 16px);
    background: var(--bg);
}
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }

/* în română textele se aplică din JS; ascundem pagina o clipă, ca să nu clipească engleza */
html.i18n-wait body { opacity: 0; }

body {
    margin: 0;
    min-height: 100vh;
    background: var(--bg);
    color: var(--text);
    font-family: var(--font);
    font-size: 16px;
    line-height: 1.6;
    font-stretch: 100%;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    overflow-x: hidden;
}
body.is-locked { overflow: hidden; }

img, video, svg, canvas { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
h1, h2, h3, h4, p, ol, ul, dl, dd, figure { margin: 0; }
ol, ul { padding: 0; list-style: none; }
[hidden] { display: none !important; }
::selection { background: var(--accent); color: var(--accent-ink); }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.sr-only {
    position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip {
    position: fixed; top: 8px; left: 8px; z-index: 200;
    padding: 10px 16px; background: var(--accent); color: var(--accent-ink);
    font-weight: 700; transform: translateY(-200%);
}
.skip:focus { transform: none; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gut); }

/* ── Tipografie ───────────────────────────────────────────────────────── */

.display {
    font-stretch: 62%;
    font-style: italic;
    font-weight: 800;
    text-transform: uppercase;
    line-height: .9;
    letter-spacing: -.005em;
}
.h1 { font-size: clamp(44px, 7vw, 96px); }
.h2 { font-size: clamp(36px, 5vw, 64px); }
.h3 { font-size: clamp(26px, 3vw, 34px); }
.h4 { font-size: 22px; }
.accent { color: var(--accent); }

.kicker {
    display: inline-flex; align-items: center; gap: 10px;
    font-size: 12px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase;
    color: var(--accent);
}
.kicker::before {
    content: ""; width: 18px; height: 3px; background: currentColor;
    transform: skewX(-20deg);
}
.kicker--plain::before { display: none; }

.lead { font-size: clamp(17px, 1.6vw, 19px); color: var(--text-2); max-width: 60ch; }
.muted { color: var(--muted); }
.small { font-size: 14px; }
.tiny { font-size: 12.5px; }
.num { font-variant-numeric: tabular-nums; }
.mono { font-variant-numeric: tabular-nums; letter-spacing: .04em; }
.prose { white-space: pre-wrap; color: var(--text-2); }

/* ── Butoane ──────────────────────────────────────────────────────────── */

.btn {
    --h: 48px;
    position: relative;
    display: inline-flex; align-items: center; justify-content: center; gap: .55em;
    height: var(--h);
    padding: 0 calc(22px + var(--cut) / 2);
    font-size: 14px; font-weight: 700; font-style: italic;
    letter-spacing: .07em; text-transform: uppercase; white-space: nowrap;
    background: var(--surface-3); color: var(--text);
    clip-path: polygon(var(--cut) 0, 100% 0, calc(100% - var(--cut)) 100%, 0 100%);
    transition: background .2s, color .2s, transform .2s var(--ease);
    user-select: none;
}
.btn:hover { background: #303035; }
.btn:active { transform: translateY(1px); }
.btn:focus-visible { outline: 0; box-shadow: inset 0 0 0 2px var(--text); }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .45; pointer-events: none; }

.btn--primary { background: var(--accent); color: var(--accent-ink); }
.btn--primary:hover { background: #fff; }
.btn--primary:focus-visible { box-shadow: inset 0 0 0 2px var(--accent-ink); }

.btn--ghost { background: rgba(255, 255, 255, .07); }
.btn--ghost:hover { background: rgba(255, 255, 255, .13); }

.btn--danger { background: rgba(255, 82, 82, .14); color: #FF8A8A; }
.btn--danger:hover { background: var(--bad); color: #fff; }

.btn--ok { background: rgba(61, 220, 132, .14); color: #7BEAAE; }
.btn--ok:hover { background: var(--ok); color: #06210F; }

.btn--sm { --h: 38px; font-size: 12.5px; padding: 0 calc(15px + var(--cut) / 2); }
.btn--xs { --h: 30px; font-size: 11.5px; padding: 0 calc(11px + var(--cut) / 2); --cut: 7px; }
.btn--lg { --h: 58px; font-size: 16px; padding: 0 calc(30px + var(--cut) / 2); }
.btn--block { width: 100%; }
.btn .arr { font-style: normal; transition: transform .25s var(--ease); }
.btn:hover .arr { transform: translateX(4px); }

.btn.is-busy { pointer-events: none; }
.btn.is-busy::after {
    content: ""; width: 14px; height: 14px; border-radius: 50%;
    border: 2px solid currentColor; border-right-color: transparent;
    animation: spin .7s linear infinite;
}

.link {
    display: inline-flex; align-items: center; gap: 6px;
    font-weight: 700; font-size: 13px; letter-spacing: .08em; text-transform: uppercase;
    color: var(--accent);
}
.link:hover { color: #fff; }
.link-plain { text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--line-2); }
.link-plain:hover { text-decoration-color: var(--accent); }

.icon-btn {
    display: inline-grid; place-items: center;
    width: 40px; height: 40px; border-radius: var(--r);
    color: var(--text-2); transition: background .2s, color .2s;
}
.icon-btn:hover { background: var(--surface-3); color: var(--text); }

/* ── Ștampile, etichete, plăcuțe ──────────────────────────────────────── */

.pill {
    display: inline-flex; align-items: center; gap: 7px;
    height: 26px; padding: 0 10px;
    font-size: 11.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
    border-radius: 2px; white-space: nowrap;
    background: var(--surface-3); color: var(--text-2);
}
.pill::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.pill--plain::before { display: none; }
.pill[data-kind="pending"]    { background: rgba(255, 176, 32, .14); color: var(--warn); }
.pill[data-kind="needs_info"] { background: rgba(90, 176, 255, .14); color: var(--info); }
.pill[data-kind="accepted"],
.pill[data-kind="open"],
.pill[data-kind="present"]    { background: rgba(61, 220, 132, .13); color: var(--ok); }
.pill[data-kind="rejected"],
.pill[data-kind="absent"]     { background: rgba(255, 82, 82, .13); color: var(--bad); }
.pill[data-kind="left"],
.pill[data-kind="closed"],
.pill[data-kind="past"]       { background: var(--surface-3); color: var(--muted); }
.pill[data-kind="live"]       { background: var(--accent); color: var(--accent-ink); }
.pill[data-kind="live"]::before { animation: blink 1.2s infinite; }
.pill[data-kind="soon"],
.pill[data-kind="tba"]        { background: var(--accent-soft); color: var(--accent); }

.tag {
    display: inline-flex; align-items: center; height: 24px; padding: 0 9px;
    font-size: 11px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase;
    font-style: italic;
    background: var(--accent); color: var(--accent-ink);
    clip-path: polygon(6px 0, 100% 0, calc(100% - 6px) 100%, 0 100%);
    padding: 0 12px;
}
.tag--dark { background: rgba(10, 10, 11, .78); color: var(--text); backdrop-filter: blur(6px); }

.chip {
    display: inline-flex; align-items: center; gap: 6px;
    height: 28px; padding: 0 11px; border-radius: 2px;
    font-size: 12.5px; font-weight: 600; color: var(--text-2);
    background: var(--surface-2); border: 1px solid var(--line);
}

/* plăcuța de înmatriculare, cu banda albastră UE */
.plate {
    display: inline-flex; align-items: stretch;
    height: 26px; border-radius: 3px; overflow: hidden;
    background: #F4F3EF; color: #111;
    font-weight: 700; font-size: 13.5px; letter-spacing: .1em; font-stretch: 88%;
    line-height: 26px; white-space: nowrap;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, .4);
}
.plate::before {
    content: "RO"; display: grid; place-items: end center;
    width: 17px; padding-bottom: 2px;
    background: var(--eu); color: #fff;
    font-size: 8px; letter-spacing: 0; line-height: 1; font-stretch: 100%;
}
.plate span { padding: 0 8px 0 7px; }
.plate--lg { height: 38px; line-height: 38px; font-size: 20px; }
.plate--lg::before { width: 22px; font-size: 10px; padding-bottom: 4px; }

/* ── Motive: tablă de șah, linii de viteză ────────────────────────────── */

.checker {
    height: 12px;
    background:
        conic-gradient(var(--text) 25%, transparent 0 50%, var(--text) 0 75%, transparent 0)
        0 0 / 12px 12px;
    opacity: .9;
}
.checker--sm { height: 8px; background-size: 8px 8px; }

.stripes {
    background: repeating-linear-gradient(115deg, transparent 0 14px, rgba(212, 175, 55, .9) 14px 22px);
}

/* ── Antet ────────────────────────────────────────────────────────────── */

.hdr {
    position: fixed; inset: 0 0 auto; z-index: 50;
    height: var(--hdr);
    transition: background .3s, border-color .3s, backdrop-filter .3s;
    border-bottom: 1px solid transparent;
}
.hdr.is-solid,
body:not([data-hero]) .hdr {
    background: rgba(10, 10, 11, .9);
    backdrop-filter: saturate(140%) blur(14px);
    -webkit-backdrop-filter: saturate(140%) blur(14px);
    border-bottom-color: var(--line);
}
.hdr__in {
    height: 100%; display: flex; align-items: center; gap: 24px;
    max-width: 1440px; margin: 0 auto; padding: 0 var(--gut);
}

.logo { display: inline-flex; align-items: center; gap: 10px; flex: none; }
.logo__star { width: 30px; height: 30px; color: var(--accent); }
.logo__word {
    display: flex; flex-direction: column; line-height: .86;
    font-style: italic; font-weight: 800; font-stretch: 70%; text-transform: uppercase;
    font-size: 19px; letter-spacing: .01em;
}
.logo__word b { color: var(--accent); font-weight: 800; }
.logo__word small {
    font-size: 8.5px; font-weight: 700; letter-spacing: .22em; font-stretch: 100%;
    color: var(--muted); margin-top: 3px; font-style: normal;
}

.nav { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.nav__link {
    position: relative; padding: 8px 12px;
    font-size: 13px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
    color: var(--text-2); transition: color .2s;
}
.nav__link::after {
    content: ""; position: absolute; left: 12px; right: 12px; bottom: 2px; height: 3px;
    background: var(--accent); transform: skewX(-20deg) scaleX(0); transform-origin: left;
    transition: transform .3s var(--ease);
}
.nav__link:hover { color: var(--text); }
.nav__link:hover::after, .nav__link[aria-current="page"]::after { transform: skewX(-20deg) scaleX(1); }
.nav__link[aria-current="page"] { color: var(--text); }

.hdr__tools { display: flex; align-items: center; gap: 10px; }

.lang {
    display: inline-flex; height: 32px; border: 1px solid var(--line-2); border-radius: 2px; overflow: hidden;
}
.lang button {
    width: 36px; font-size: 11.5px; font-weight: 800; letter-spacing: .08em; color: var(--muted);
    transition: background .2s, color .2s;
}
.lang button:hover { color: var(--text); }
.lang button[aria-pressed="true"] { background: var(--text); color: var(--bg); }

.burger { display: none; width: 44px; height: 44px; position: relative; }
.burger span {
    position: absolute; left: 11px; right: 11px; height: 2px; background: var(--text);
    transition: transform .3s var(--ease), opacity .2s;
}
.burger span:nth-child(1) { top: 15px; }
.burger span:nth-child(2) { top: 21px; right: 17px; }
.burger span:nth-child(3) { top: 27px; }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 960px) {
    .burger { display: block; }
    .hdr__in { gap: 12px; }
    .nav {
        position: fixed; inset: var(--hdr) 0 0; z-index: 49;
        flex-direction: column; align-items: stretch; gap: 0;
        padding: 24px var(--gut) 40px;
        background: var(--bg);
        transform: translateY(-8px); opacity: 0; visibility: hidden;
        transition: opacity .25s, transform .3s var(--ease), visibility 0s .3s;
        overflow-y: auto;
    }
    .nav.is-open { opacity: 1; visibility: visible; transform: none; transition: opacity .25s, transform .3s var(--ease); }
    .nav__link {
        padding: 14px 0; border-bottom: 1px solid var(--line);
        font-size: 34px; font-style: italic; font-weight: 800; font-stretch: 62%; letter-spacing: 0;
        color: var(--text);
    }
    .nav__link::after { display: none; }
    .nav__link[aria-current="page"] { color: var(--accent); }
    .hdr__tools { margin-left: auto; }
    .hdr__tools .btn { --h: 36px; font-size: 12px; padding: 0 16px; }
}
@media (max-width: 420px) {
    .logo__word small { display: none; }
    .hdr__tools .lang { display: none; }
    .nav .lang { display: inline-flex; }
}
.nav .lang { display: none; margin-top: 28px; align-self: flex-start; height: 40px; }
.nav .lang button { width: 52px; font-size: 13px; }

/* ── Subsol ───────────────────────────────────────────────────────────── */

.ftr { margin-top: 120px; background: var(--bg-2); }
.ftr__in {
    display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px;
    padding-top: 56px; padding-bottom: 40px;
}
.ftr__brand p { color: var(--muted); max-width: 34ch; margin-top: 16px; font-size: 14.5px; }
.ftr h4 { font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); margin-bottom: 14px; }
.ftr__links { display: grid; gap: 8px; }
.ftr__links a, .ftr__links button { font-weight: 600; color: var(--text-2); text-align: left; }
.ftr__links a:hover, .ftr__links button:hover { color: var(--accent); }
.socials { display: flex; gap: 8px; margin-top: 18px; }
.socials a {
    display: grid; place-items: center; width: 42px; height: 42px;
    background: var(--surface-2); border-radius: 2px; color: var(--text-2);
    transition: background .2s, color .2s;
}
.socials a:hover { background: var(--accent); color: var(--accent-ink); }
.ftr__base {
    display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px;
    padding-top: 22px; padding-bottom: 28px; border-top: 1px solid var(--line);
    font-size: 13px; color: var(--muted);
}
@media (max-width: 760px) { .ftr__in { grid-template-columns: 1fr 1fr; } .ftr__brand { grid-column: 1 / -1; } }

/* ── Secțiuni ─────────────────────────────────────────────────────────── */

.sec { padding: clamp(72px, 10vw, 120px) 0 0; }
.sec-head {
    display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 20px 32px;
    margin-bottom: 36px;
}
.sec-head__l { display: grid; gap: 14px; }
.sec-head__l .lead { margin-top: 4px; }
.sec-no {
    font-style: italic; font-weight: 800; font-stretch: 62%; line-height: .8;
    font-size: 22px; color: var(--accent); letter-spacing: .02em;
    display: inline-flex; align-items: center; gap: 12px;
}
.sec-no::after { content: ""; width: 56px; height: 2px; background: var(--line-2); }

/* ── Hero (prima pagină) ──────────────────────────────────────────────── */

.hero {
    position: relative; min-height: 100svh; min-height: 100vh;
    display: flex; align-items: flex-end;
    overflow: hidden; isolation: isolate;
    padding: calc(var(--hdr) + 40px) 0 0;
}
@supports (min-height: 100svh) { .hero { min-height: 100svh; } }
.hero__media { position: absolute; inset: 0; z-index: -2; }
.hero__media video, .hero__media img {
    width: 100%; height: 100%; object-fit: cover; max-width: none;
    transform: scale(1.04);
}
.hero::before {
    content: ""; position: absolute; inset: 0; z-index: -1;
    background:
        linear-gradient(0deg, var(--bg) 0%, rgba(10, 10, 11, .55) 38%, rgba(10, 10, 11, .25) 70%, rgba(10, 10, 11, .65) 100%),
        linear-gradient(90deg, rgba(10, 10, 11, .85) 0%, rgba(10, 10, 11, .1) 70%);
}
.hero__in {
    width: 100%; max-width: 1440px; margin: 0 auto; padding: 0 var(--gut) clamp(40px, 6vw, 72px);
    display: grid; grid-template-columns: minmax(0, 1fr) minmax(300px, 400px); gap: 40px; align-items: end;
}
.hero__title {
    font-size: clamp(64px, 11.5vw, 184px);
    margin: 22px 0 24px;
    text-shadow: 0 6px 40px rgba(0, 0, 0, .4);
}
.hero__title span { display: block; }
.hero__title span + span { color: var(--accent); }
.hero__desc { font-size: clamp(17px, 1.5vw, 20px); color: var(--text-2); max-width: 52ch; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.hero__live {
    position: absolute; top: calc(var(--hdr) + 22px); right: var(--gut); z-index: 1;
    display: inline-flex; align-items: center; gap: 8px;
    font-size: 11.5px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--text-2);
}
.hero__live i { width: 8px; height: 8px; border-radius: 50%; background: var(--bad); animation: blink 1.4s infinite; }
@media (max-width: 960px) {
    .hero__in { grid-template-columns: 1fr; }
    .hero__live { display: none; }
}

/* tabela de cronometraj — ediția următoare */
.board {
    background: rgba(12, 12, 14, .82);
    backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--line-2);
    border-top: 4px solid var(--accent);
}
.board__head {
    display: flex; align-items: center; justify-content: space-between; gap: 12px;
    padding: 14px 18px; border-bottom: 1px solid var(--line);
    font-size: 11.5px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--muted);
}
.board__body { padding: 18px; display: grid; gap: 16px; }
.board__title { font-size: 30px; }
.board__facts { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--line); border: 1px solid var(--line); }
.board__facts div { background: var(--bg-2); padding: 10px 12px; }
.board__facts dt { font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); font-weight: 700; }
.board__facts dd { font-weight: 600; font-size: 14.5px; line-height: 1.35; margin-top: 2px; }
.board__actions { display: grid; gap: 8px; }

.cd { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.cd div {
    background: var(--bg); border: 1px solid var(--line); padding: 8px 4px 6px; text-align: center;
}
.cd b {
    display: block; font-size: 36px; line-height: 1; font-weight: 700; font-stretch: 75%;
    font-variant-numeric: tabular-nums; color: var(--accent);
}
.cd span { font-size: 10px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); font-weight: 700; }
.cd--lg b { font-size: clamp(40px, 6vw, 64px); }

/* ── Bandă care rulează ───────────────────────────────────────────────── */

.ticker {
    position: relative; overflow: hidden;
    background: var(--accent); color: var(--accent-ink);
    transform: skewY(-1.4deg); margin: 0 0 -10px;
    border-block: 2px solid var(--bg);
}
.ticker__track {
    display: flex; width: max-content;
    animation: ticker 48s linear infinite;
}
.ticker span {
    display: inline-flex; align-items: center; gap: 22px; padding: 12px 22px 12px 0;
    font-size: 19px; font-weight: 800; font-style: italic; font-stretch: 70%;
    text-transform: uppercase; letter-spacing: .03em; white-space: nowrap;
}
.ticker span::after { content: "★"; font-style: normal; font-size: 14px; }
@keyframes ticker { to { transform: translateX(-50%); } }

/* ── Cardul unei mașini ───────────────────────────────────────────────── */

.cars { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 290px), 1fr)); gap: 18px; }

.car {
    position: relative; display: flex; flex-direction: column;
    background: var(--surface); border: 1px solid var(--line);
    transition: border-color .25s, transform .3s var(--ease);
}
.car:hover { border-color: var(--line-2); transform: translateY(-3px); }
.car__media { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: var(--surface-2); }
button.car__media { display: block; width: 100%; padding: 0; cursor: zoom-in; }
.car__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.car:hover .car__media img { transform: scale(1.05); }
.car__media::after {
    content: ""; position: absolute; inset: 50% 0 0;
    background: linear-gradient(0deg, rgba(10, 10, 11, .75), transparent);
}
.car__no {
    position: absolute; top: 12px; left: 0; z-index: 1;
    padding: 4px 16px 4px 12px; min-width: 56px;
    background: var(--accent); color: var(--accent-ink);
    font-size: 24px; font-weight: 800; font-style: italic; font-stretch: 62%; line-height: 1;
    clip-path: polygon(0 0, 100% 0, calc(100% - 9px) 100%, 0 100%);
    font-variant-numeric: tabular-nums;
}
.car__tags { position: absolute; top: 12px; right: 12px; z-index: 1; display: flex; gap: 6px; }
.car__count {
    position: absolute; right: 12px; bottom: 10px; z-index: 1;
    font-size: 12px; font-weight: 700; color: var(--text-2);
}
.car__body { padding: 16px 16px 18px; display: grid; gap: 10px; flex: 1; align-content: start; }
.car__title { font-size: 26px; }
.car__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; font-size: 13.5px; color: var(--muted); }
.car__link::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.car__foot {
    position: relative; z-index: 2;
    display: flex; align-items: center; gap: 8px;
    padding: 12px 16px; border-top: 1px solid var(--line);
}
.car__votes { margin-right: auto; display: flex; align-items: baseline; gap: 6px; }
.car__votes b { font-size: 24px; font-weight: 800; font-stretch: 70%; font-variant-numeric: tabular-nums; line-height: 1; }
.car__votes span { font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); font-weight: 700; }
.car.is-mine { border-color: var(--accent-line); }

/* ── Lista edițiilor ──────────────────────────────────────────────────── */

.eds { border-top: 1px solid var(--line); }
.ed {
    position: relative;
    display: grid; grid-template-columns: 96px minmax(0, 1fr) auto 40px; align-items: center; gap: 24px;
    padding: 22px 8px; border-bottom: 1px solid var(--line);
    transition: background .25s;
}
.ed:hover { background: var(--surface); }
.ed__date { text-align: center; line-height: 1; }
.ed__date b { display: block; font-size: 52px; font-weight: 800; font-style: italic; font-stretch: 62%; font-variant-numeric: tabular-nums; }
.ed__date small { font-size: 11px; font-weight: 700; letter-spacing: .14em; color: var(--muted); text-transform: uppercase; }
.ed__title { font-size: clamp(24px, 3vw, 36px); }
.ed__place { color: var(--muted); font-size: 14.5px; margin-top: 4px; display: block; }
.ed__go {
    width: 40px; height: 40px; display: grid; place-items: center;
    background: var(--surface-3); transition: background .25s, color .25s, transform .3s var(--ease);
    clip-path: polygon(6px 0, 100% 0, calc(100% - 6px) 100%, 0 100%);
}
.ed:hover .ed__go { background: var(--accent); color: var(--accent-ink); transform: translateX(4px); }
.ed__img {
    position: absolute; right: 90px; top: 50%; width: 220px; aspect-ratio: 16 / 10;
    background: var(--surface-2) center / cover; pointer-events: none;
    opacity: 0; transform: translateY(-50%) rotate(-3deg) scale(.92);
    transition: opacity .3s, transform .4s var(--ease); z-index: 2;
    box-shadow: 0 20px 60px rgba(0, 0, 0, .6);
}
@media (hover: hover) { .ed:hover .ed__img[style] { opacity: 1; transform: translateY(-50%) rotate(-3deg) scale(1); } }
.ed.is-archive .ed__date b, .ed.is-archive .ed__title { color: var(--text-2); }
@media (max-width: 680px) {
    .ed { grid-template-columns: 64px minmax(0, 1fr); gap: 4px 16px; padding: 18px 0; }
    .ed__date b { font-size: 40px; }
    .ed__state { grid-column: 2; justify-self: start; margin-top: 6px; }
    .ed__go, .ed__img { display: none; }
}

/* ── Benzi și blocuri pe prima pagină ─────────────────────────────────── */

.band {
    position: relative; overflow: hidden;
    background: var(--accent); color: var(--accent-ink);
    padding: clamp(40px, 6vw, 64px) 0;
}
.band::after {
    content: ""; position: absolute; inset: 0 0 0 auto; width: 40%;
    background: repeating-linear-gradient(115deg, transparent 0 18px, rgba(0, 0, 0, .07) 18px 30px);
    pointer-events: none;
}
.band__in { position: relative; z-index: 1; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; }
.band .kicker { color: var(--accent-ink); }
.band .btn { background: var(--accent-ink); color: var(--accent); }
.band .btn:hover { background: #fff; color: var(--accent-ink); }
.band p { font-weight: 600; max-width: 52ch; margin-top: 10px; }

.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.stat { background: var(--bg); padding: 28px 24px; }
.stat b {
    display: block; font-size: clamp(64px, 8vw, 104px); line-height: .9; font-weight: 800; font-style: italic;
    font-stretch: 62%; color: var(--accent); font-variant-numeric: tabular-nums;
}
.stat span { font-weight: 600; color: var(--text-2); }

.mosaic {
    display: grid; gap: 10px;
    grid-template-columns: repeat(4, 1fr); grid-auto-rows: clamp(130px, 16vw, 220px);
}
.mosaic a { position: relative; overflow: hidden; background: var(--surface); }
.mosaic a:first-child { grid-column: span 2; grid-row: span 2; }
.mosaic img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.mosaic a:hover img { transform: scale(1.06); }
.mosaic span {
    position: absolute; left: 0; right: 0; bottom: 0; padding: 30px 14px 10px;
    background: linear-gradient(0deg, rgba(10, 10, 11, .85), transparent);
    font-weight: 700; font-size: 14px;
    opacity: 0; transition: opacity .3s;
}
.mosaic a:hover span, .mosaic a:focus-visible span { opacity: 1; }
@media (max-width: 680px) { .mosaic { grid-template-columns: 1fr 1fr; } }

.about {
    display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: center;
}
.about__media { position: relative; aspect-ratio: 4 / 5; overflow: hidden; background: var(--surface); }
.about__media img { width: 100%; height: 100%; object-fit: cover; }
.about__media::before {
    content: ""; position: absolute; inset: auto 0 0; height: 12px; z-index: 1;
    background: conic-gradient(var(--text) 25%, transparent 0 50%, var(--text) 0 75%, transparent 0) 0 0 / 12px 12px;
}
.about__badge {
    position: absolute; left: 20px; bottom: 32px; z-index: 1;
    display: flex; align-items: center; gap: 12px;
    background: rgba(10, 10, 11, .82); backdrop-filter: blur(8px); padding: 12px 18px 12px 12px;
}
.about__badge i {
    width: 40px; height: 40px; display: grid; place-items: center;
    background: var(--accent); color: var(--accent-ink); border-radius: 50%;
}
.about__badge b { display: block; font-size: 14px; }
.about__badge span { font-size: 12.5px; color: var(--muted); }
.about h2 em { color: var(--accent); font-style: inherit; }
.about__links { display: grid; margin-top: 28px; border-top: 1px solid var(--line); }
.about__links a {
    display: flex; justify-content: space-between; align-items: center;
    padding: 16px 0; border-bottom: 1px solid var(--line);
    font-weight: 700; letter-spacing: .04em; text-transform: uppercase; font-size: 14px;
    transition: color .2s, padding .3s var(--ease);
}
.about__links a:hover { color: var(--accent); padding-left: 8px; }
@media (max-width: 860px) { .about { grid-template-columns: 1fr; } .about__media { aspect-ratio: 16 / 11; } }

.crew-strip { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 12px; }
.crew-chip { display: grid; gap: 8px; }
.crew-chip__img { aspect-ratio: 1; background: var(--surface-2); overflow: hidden; }
.crew-chip__img img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(.4); transition: filter .3s, transform .5s var(--ease); }
.crew-chip:hover img { filter: none; transform: scale(1.05); }
.crew-chip b { font-style: italic; font-weight: 800; font-stretch: 70%; text-transform: uppercase; font-size: 18px; line-height: 1.05; }
.crew-chip small { color: var(--muted); font-size: 13px; }

.sponsors { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 12px; }
.sponsor {
    display: grid; justify-items: center; align-content: center; gap: 12px;
    padding: 26px 16px; background: var(--surface); border: 1px solid var(--line); text-align: center; min-height: 160px;
    transition: background .2s;
}
a.sponsor:hover { border-color: var(--accent-line); }
.sponsor__logo {
    width: 72px; height: 72px; border-radius: 50%; overflow: hidden; display: grid; place-items: center;
    background: var(--surface-2); font-weight: 800; font-style: italic; font-size: 22px; color: var(--accent);
}
.sponsor__logo img { width: 100%; height: 100%; object-fit: cover; }
.sponsor__name { font-weight: 700; font-size: 14.5px; }

.partner {
    margin-top: 28px; padding: 28px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px;
    background: var(--surface); border: 1px solid var(--line); border-left: 4px solid var(--accent);
}
.partner p { color: var(--muted); margin-top: 6px; }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.step { background: var(--bg); padding: 28px 24px 30px; display: grid; gap: 10px; align-content: start; }
.step b {
    font-size: 64px; line-height: .8; font-weight: 800; font-style: italic; font-stretch: 62%;
    color: transparent; -webkit-text-stroke: 1.5px var(--accent);
}
.step h3 { font-size: 22px; }
.step p { color: var(--text-2); }
@media (max-width: 760px) { .steps { grid-template-columns: 1fr; } }

.cta-final {
    position: relative; overflow: hidden; isolation: isolate;
    padding: clamp(56px, 8vw, 96px) clamp(24px, 5vw, 64px);
    background: var(--surface); border: 1px solid var(--line);
}
.cta-final::before {
    content: ""; position: absolute; inset: 0; z-index: -1;
    background: radial-gradient(60% 90% at 100% 0%, rgba(212, 175, 55, .16), transparent 70%);
}
.cta-final__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
@media (max-width: 860px) { .cta-final__grid { grid-template-columns: 1fr; } }

/* ── Pagini interioare ────────────────────────────────────────────────── */

.phero {
    position: relative; isolation: isolate; overflow: hidden;
    padding: calc(var(--hdr) + clamp(48px, 7vw, 88px)) 0 clamp(36px, 5vw, 56px);
    border-bottom: 1px solid var(--line);
}
.phero__bg { position: absolute; inset: 0; z-index: -2; background: var(--bg-2) center / cover no-repeat; }
.phero--img .phero__bg::after {
    content: ""; position: absolute; inset: 0;
    background: linear-gradient(0deg, var(--bg) 0%, rgba(10, 10, 11, .6) 45%, rgba(10, 10, 11, .45) 100%),
                linear-gradient(90deg, rgba(10, 10, 11, .8), transparent 70%);
}
.phero:not(.phero--img)::after {
    content: ""; position: absolute; z-index: -1; right: -10%; top: 0; bottom: 0; width: 55%;
    background: repeating-linear-gradient(115deg, transparent 0 22px, rgba(212, 175, 55, .045) 22px 36px);
}
.phero__in { display: grid; gap: 16px; }
.phero h1 { font-size: clamp(52px, 8vw, 112px); }
.phero__meta { display: flex; flex-wrap: wrap; gap: 10px 22px; align-items: center; color: var(--text-2); font-weight: 600; }
.phero__meta span { display: inline-flex; align-items: center; gap: 8px; }
.phero__meta svg { width: 18px; height: 18px; color: var(--accent); }
.phero__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(280px, 380px); gap: 40px; align-items: end; }
@media (max-width: 900px) { .phero__grid { grid-template-columns: 1fr; } }

.page { padding-top: clamp(32px, 5vw, 56px); }
.page--top { padding-top: calc(var(--hdr) + clamp(32px, 5vw, 56px)); }

.split { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 32px; align-items: start; }
.split--l { grid-template-columns: 340px minmax(0, 1fr); }
.sticky { position: sticky; top: calc(var(--hdr) + 20px); }
@media (max-width: 960px) {
    .split, .split--l { grid-template-columns: 1fr; }
    .sticky { position: static; }
}

/* ── Panouri, liste, cifre ────────────────────────────────────────────── */

.panel { background: var(--surface); border: 1px solid var(--line); }
.panel + .panel { margin-top: 18px; }
.panel__head {
    display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px;
    padding: 16px 20px; border-bottom: 1px solid var(--line);
}
.panel__title { font-size: 13px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.panel__body { padding: 20px; }
.panel--accent { border-top: 3px solid var(--accent); }

.facts { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); }
.facts > div { display: grid; grid-template-columns: 140px 1fr; gap: 16px; padding: 12px 14px; background: var(--bg-2); }
.facts dt { font-size: 11.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); padding-top: 2px; }
.facts dd { font-weight: 600; min-width: 0; overflow-wrap: anywhere; }
@media (max-width: 520px) { .facts > div { grid-template-columns: 1fr; gap: 2px; } }

.rows { border: 1px solid var(--line); }
.row {
    display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 16px;
    padding: 14px 16px; background: var(--surface); border-bottom: 1px solid var(--line);
}
.row:last-child { border-bottom: 0; }
.row__rank {
    min-width: 44px; font-size: 26px; font-weight: 800; font-style: italic; font-stretch: 62%;
    color: var(--muted); font-variant-numeric: tabular-nums;
}
.row.is-top .row__rank { color: var(--accent); }
.row__main { min-width: 0; display: grid; gap: 4px; }
.row__title { font-weight: 700; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.row__sub { font-size: 13.5px; color: var(--muted); overflow-wrap: anywhere; }
.row__score b { font-size: 28px; font-weight: 800; font-stretch: 70%; font-variant-numeric: tabular-nums; }
.row__score small { color: var(--muted); margin-left: 4px; font-weight: 600; }
.row__thumb { width: 72px; height: 54px; object-fit: cover; background: var(--surface-2); }

.steps-v { display: grid; gap: 16px; counter-reset: s; }
.steps-v li { display: grid; grid-template-columns: 36px 1fr; gap: 12px; }
.steps-v li::before {
    counter-increment: s; content: counter(s, decimal-leading-zero);
    font-size: 22px; font-weight: 800; font-style: italic; font-stretch: 62%; color: var(--accent); line-height: 1.2;
}
.steps-v strong { display: block; }
.steps-v span { color: var(--muted); font-size: 14px; }

/* ── Bara de instrumente, file ────────────────────────────────────────── */

.toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: 20px; }
.toolbar .grow { flex: 1 1 220px; }
.toolbar .input, .toolbar .select { height: 42px; }
.toolbar__count { font-size: 12.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }

.tabs {
    display: flex; gap: 2px; overflow-x: auto; scrollbar-width: none;
    border-bottom: 1px solid var(--line); margin-bottom: 24px;
}
.tabs::-webkit-scrollbar { display: none; }
.tab {
    position: relative; flex: none; padding: 14px 18px;
    font-size: 13px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--muted);
    transition: color .2s;
}
.tab::after {
    content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 3px;
    background: var(--accent); transform: scaleX(0); transition: transform .3s var(--ease);
}
.tab:hover { color: var(--text); }
.tab[aria-selected="true"] { color: var(--text); }
.tab[aria-selected="true"]::after { transform: scaleX(1); }
.tab .count {
    margin-left: 6px; display: inline-grid; place-items: center; min-width: 22px; height: 20px; padding: 0 6px;
    background: var(--surface-3); color: var(--text-2); font-size: 11px; border-radius: 10px; letter-spacing: 0;
}
.tab[aria-selected="true"] .count { background: var(--accent); color: var(--accent-ink); }

.seg { display: inline-flex; flex-wrap: wrap; gap: 6px; }
.seg button {
    height: 36px; padding: 0 14px; border: 1px solid var(--line-2); border-radius: 2px;
    font-size: 13px; font-weight: 700; color: var(--text-2); transition: all .2s;
}
.seg button:hover { color: var(--text); border-color: var(--muted); }
.seg button[aria-pressed="true"] { background: var(--text); color: var(--bg); border-color: var(--text); }

/* ── Formulare ────────────────────────────────────────────────────────── */

.form { display: grid; gap: 18px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 620px) { .form-row { grid-template-columns: 1fr; } }

.field { display: grid; gap: 7px; min-width: 0; }
.field > label, .label {
    font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--text-2);
}
.label small { text-transform: none; letter-spacing: 0; font-weight: 500; color: var(--muted); }
.hint { font-size: 13px; color: var(--muted); }
.err { font-size: 13.5px; color: var(--bad); font-weight: 600; }
.err:empty { display: none; }

.input, .select, .textarea {
    width: 100%; height: 48px; padding: 0 14px;
    background: var(--bg-2); color: var(--text);
    border: 1px solid var(--line-2); border-radius: var(--r);
    font-size: 15.5px; transition: border-color .2s, box-shadow .2s, background .2s;
}
.textarea { height: auto; min-height: 120px; padding: 12px 14px; resize: vertical; line-height: 1.55; }
.input::placeholder, .textarea::placeholder { color: #5D5C62; }
.input:hover, .select:hover, .textarea:hover { border-color: #4A4A50; }
.input:focus, .select:focus, .textarea:focus {
    outline: 0; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); background: var(--bg);
}
.input[aria-invalid="true"], .textarea[aria-invalid="true"] { border-color: var(--bad); }
.input--plate { text-transform: uppercase; letter-spacing: .14em; font-weight: 700; }
.select {
    appearance: none; -webkit-appearance: none; padding-right: 40px; cursor: pointer;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none' stroke='%23BDBCB6' stroke-width='2'%3E%3Cpath d='M1 1.5l5 5 5-5'/%3E%3C/svg%3E");
    background-repeat: no-repeat; background-position: right 15px center;
}
.select option { background: var(--surface); color: var(--text); }
.input[type="file"] { padding: 10px 12px; height: auto; font-size: 14px; }
.input[type="file"]::file-selector-button {
    margin-right: 12px; padding: 6px 12px; border: 0; border-radius: 2px;
    background: var(--surface-3); color: var(--text); font-weight: 700; cursor: pointer;
}
.input[type="date"] { color-scheme: dark; }

.check { display: grid; grid-template-columns: 22px 1fr; gap: 12px; align-items: start; cursor: pointer; color: var(--text-2); }
.check input {
    appearance: none; -webkit-appearance: none; margin: 1px 0 0;
    width: 22px; height: 22px; border: 1.5px solid var(--line-2); border-radius: 3px; background: var(--bg-2);
    display: grid; place-items: center; cursor: pointer; transition: all .15s;
}
.check input::after {
    content: ""; width: 11px; height: 6px; border: 2.5px solid var(--accent-ink); border-top: 0; border-right: 0;
    transform: rotate(-45deg) translate(1px, -1px) scale(0); transition: transform .15s;
}
.check input:checked { background: var(--accent); border-color: var(--accent); }
.check input:checked::after { transform: rotate(-45deg) translate(1px, -1px) scale(1); }
.check:hover input { border-color: var(--muted); }

.checks { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 10px; }
.checks .check { padding: 10px 12px; border: 1px solid var(--line); background: var(--bg-2); border-radius: var(--r); align-items: center; }
.checks .check input { margin: 0; }

.progress { height: 4px; background: var(--surface-3); overflow: hidden; }
.progress i { display: block; height: 100%; width: 0; background: var(--accent); transition: width .3s var(--ease); }

/* sloturi pentru poze */
.photos { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.photos .slot:first-child { grid-column: span 2; grid-row: span 2; }
@media (max-width: 560px) { .photos { grid-template-columns: repeat(3, 1fr); } }
.slot {
    position: relative; aspect-ratio: 1; overflow: hidden;
    display: grid; place-items: center; align-content: center; gap: 4px;
    background: var(--bg-2); border: 1.5px dashed var(--line-2); border-radius: var(--r);
    color: var(--muted); font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
    transition: border-color .2s, color .2s;
}
.slot:hover, .slot:focus-within { border-color: var(--accent); color: var(--accent); }
.slot input { position: absolute; inset: 0; opacity: 0; cursor: pointer; z-index: 1; }
.slot__plus { font-size: 26px; font-weight: 400; line-height: 1; }
.slot img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.slot.has-img { border-style: solid; border-color: var(--line); }
.slot__rm {
    position: absolute; top: 6px; right: 6px; z-index: 2; display: none;
    width: 28px; height: 28px; border-radius: 50%; place-items: center;
    background: rgba(10, 10, 11, .85); color: #fff; font-size: 16px; line-height: 1;
}
.slot.has-img .slot__rm { display: grid; }
.slot__cover {
    position: absolute; left: 0; bottom: 8px; z-index: 2;
    padding: 3px 10px 3px 8px; background: var(--accent); color: var(--accent-ink);
    font-size: 10.5px; clip-path: polygon(0 0, 100% 0, calc(100% - 6px) 100%, 0 100%);
}

/* pași de formular */
.wizard { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; margin-bottom: 22px; }
.wizard li {
    display: flex; align-items: center; gap: 10px; padding: 12px 14px;
    background: var(--surface); border-bottom: 3px solid var(--line-2);
    font-size: 13px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--muted);
}
.wizard li b { font-size: 22px; font-style: italic; font-stretch: 62%; }
.wizard li[aria-current="step"] { color: var(--text); border-color: var(--accent); }
.wizard li.is-done { color: var(--text-2); border-color: var(--ok); }
@media (max-width: 520px) { .wizard li span { display: none; } .wizard li { justify-content: center; } }

.formbar {
    position: sticky; bottom: 0; z-index: 5;
    display: flex; align-items: center; gap: 12px; justify-content: space-between;
    margin-top: 18px; padding: 14px 0;
    background: linear-gradient(0deg, var(--bg) 70%, transparent);
}

/* ── Stări: gol, încărcare, eroare ────────────────────────────────────── */

.empty {
    display: grid; justify-items: center; gap: 10px; text-align: center;
    padding: 56px 24px; border: 1px dashed var(--line-2); color: var(--muted);
}
.empty svg { width: 40px; height: 40px; color: var(--line-2); margin-bottom: 6px; }
.empty h3 { color: var(--text); font-size: 22px; }
.empty p { max-width: 46ch; }
.empty .btn { margin-top: 10px; }

.sk { background: linear-gradient(90deg, var(--surface) 0%, var(--surface-2) 50%, var(--surface) 100%) 0 0 / 200% 100%; animation: sk 1.4s linear infinite; }
.sk-card { aspect-ratio: 4 / 4.6; }
.sk-line { height: 14px; border-radius: 2px; }
@keyframes sk { to { background-position: -200% 0; } }

.spinner {
    width: 28px; height: 28px; border-radius: 50%;
    border: 3px solid var(--surface-3); border-top-color: var(--accent);
    animation: spin .8s linear infinite;
}
.loading { display: grid; place-items: center; gap: 14px; padding: 64px 0; color: var(--muted); font-size: 14px; }

.note {
    display: grid; grid-template-columns: 22px 1fr; gap: 12px;
    padding: 14px 16px; border-left: 3px solid var(--info); background: rgba(90, 176, 255, .07);
    font-size: 14.5px; color: var(--text-2);
}
.note svg { width: 20px; height: 20px; color: var(--info); margin-top: 2px; }
.note strong { color: var(--text); }
.note--warn { border-color: var(--warn); background: rgba(255, 176, 32, .07); }
.note--warn svg { color: var(--warn); }
.note--accent { border-color: var(--accent); background: var(--accent-soft); }
.note--accent svg { color: var(--accent); }
.note--ok { border-color: var(--ok); background: rgba(61, 220, 132, .07); }
.note--ok svg { color: var(--ok); }

/* ── Dialoguri, notificări ────────────────────────────────────────────── */

.dlg {
    width: min(560px, calc(100vw - 24px)); max-height: min(88vh, 900px);
    padding: 0; border: 1px solid var(--line-2); border-top: 3px solid var(--accent);
    background: var(--surface); color: var(--text);
    box-shadow: 0 30px 90px rgba(0, 0, 0, .7);
}
.dlg--wide { width: min(920px, calc(100vw - 24px)); }
.dlg--full { width: min(1200px, calc(100vw - 24px)); }
.dlg::backdrop { background: rgba(5, 5, 6, .78); backdrop-filter: blur(4px); }
.dlg[open] { animation: dlg-in .3s var(--ease); }
@keyframes dlg-in { from { opacity: 0; transform: translateY(14px) scale(.98); } }
.dlg__in { display: flex; flex-direction: column; max-height: inherit; }
.dlg__head {
    display: flex; align-items: center; justify-content: space-between; gap: 16px;
    padding: 18px 20px 14px; border-bottom: 1px solid var(--line);
}
.dlg__title { font-size: 28px; }
.dlg__body { padding: 20px; overflow-y: auto; display: grid; gap: 16px; align-content: start; }
.dlg__body > p { color: var(--text-2); }
.dlg__foot {
    display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 10px;
    padding: 14px 20px; border-top: 1px solid var(--line); background: var(--bg-2);
}
@media (max-width: 560px) {
    .dlg { margin: auto 0 0; width: 100vw; max-width: 100vw; max-height: 92vh; }
    .dlg__foot .btn { flex: 1; }
}

.toasts {
    position: fixed; z-index: 300; top: calc(var(--hdr) + 12px); right: 16px;
    display: grid; gap: 10px; width: min(380px, calc(100vw - 32px));
    pointer-events: none;
}
.toast {
    pointer-events: auto;
    display: grid; grid-template-columns: 4px 1fr auto; align-items: stretch;
    background: var(--surface-2); border: 1px solid var(--line-2);
    box-shadow: 0 18px 50px rgba(0, 0, 0, .5);
    animation: toast-in .35s var(--ease);
}
.toast::before { content: ""; background: var(--ok); }
.toast[data-type="error"]::before { background: var(--bad); }
.toast[data-type="info"]::before { background: var(--accent); }
.toast p { padding: 12px 14px; font-weight: 600; font-size: 14.5px; }
.toast button { padding: 0 14px; color: var(--muted); font-size: 18px; }
.toast.is-out { animation: toast-out .25s forwards; }
@keyframes toast-in { from { opacity: 0; transform: translateX(20px); } }
@keyframes toast-out { to { opacity: 0; transform: translateX(20px); } }
@media (max-width: 560px) { .toasts { top: auto; bottom: 16px; right: 16px; } }

.banner {
    position: fixed; z-index: 120; left: 16px; right: 16px; bottom: 16px;
    margin: 0 auto; max-width: 760px;
    display: flex; flex-wrap: wrap; align-items: center; gap: 14px 18px;
    padding: 16px 18px; background: var(--surface-2); border: 1px solid var(--line-2); border-left: 4px solid var(--accent);
    box-shadow: 0 20px 60px rgba(0, 0, 0, .6);
}
.banner p { flex: 1 1 280px; font-size: 14.5px; color: var(--text-2); }
.banner p b { color: var(--text); display: block; }
.banner__actions { display: flex; gap: 8px; }


/* ── Lightbox ─────────────────────────────────────────────────────────── */

.lb {
    position: fixed; inset: 0; z-index: 250;
    display: grid; grid-template-rows: auto 1fr auto;
    background: rgba(5, 5, 6, .96);
}
.lb__top { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 16px; }
.lb__count { font-weight: 700; letter-spacing: .1em; font-variant-numeric: tabular-nums; color: var(--text-2); }
.lb__stage { position: relative; display: grid; place-items: center; min-height: 0; padding: 0 64px; }
.lb__stage img { max-width: 100%; max-height: 100%; object-fit: contain; user-select: none; }
.lb__nav {
    position: absolute; top: 50%; transform: translateY(-50%);
    width: 48px; height: 64px; display: grid; place-items: center;
    background: rgba(255, 255, 255, .08); color: #fff; font-size: 28px;
}
.lb__nav:hover { background: var(--accent); color: var(--accent-ink); }
.lb__nav--prev { left: 8px; }
.lb__nav--next { right: 8px; }
.lb__cap { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 12px 18px; padding: 14px 16px 22px; text-align: center; }
.lb__cap b { font-style: italic; font-weight: 800; font-stretch: 70%; text-transform: uppercase; font-size: 22px; }
@media (max-width: 600px) { .lb__stage { padding: 0 8px; } .lb__nav { width: 40px; height: 52px; } }

/* ── Galerie ──────────────────────────────────────────────────────────── */

.wall { columns: 4 260px; column-gap: 12px; }
.wall button {
    position: relative; display: block; width: 100%; margin-bottom: 12px; break-inside: avoid;
    overflow: hidden; background: var(--surface);
}
.wall img { width: 100%; transition: transform .6s var(--ease), opacity .3s; }
.wall button:hover img { transform: scale(1.04); }
.wall figcaption {
    position: absolute; left: 0; right: 0; bottom: 0; padding: 36px 12px 10px; text-align: left;
    background: linear-gradient(0deg, rgba(10, 10, 11, .9), transparent);
    display: flex; align-items: center; justify-content: space-between; gap: 10px;
    opacity: 0; transform: translateY(6px); transition: opacity .3s, transform .3s var(--ease);
}
.wall button:hover figcaption, .wall button:focus-visible figcaption { opacity: 1; transform: none; }
.wall figcaption b { font-style: italic; font-weight: 800; font-stretch: 70%; text-transform: uppercase; font-size: 17px; line-height: 1.1; }
@media (hover: none) { .wall figcaption { opacity: 1; transform: none; } }

/* ── Pagina mașinii ───────────────────────────────────────────────────── */

.gal { display: grid; gap: 10px; }
.gal__main { position: relative; display: block; width: 100%; aspect-ratio: 16 / 10; overflow: hidden; background: var(--surface); }
.gal__main img { width: 100%; height: 100%; object-fit: cover; }
.gal__main::after {
    content: "⤢"; position: absolute; right: 14px; bottom: 14px; width: 40px; height: 40px;
    display: grid; place-items: center; background: rgba(10, 10, 11, .75); font-size: 18px;
    opacity: 0; transition: opacity .2s;
}
.gal__main:hover::after { opacity: 1; }
.gal__thumbs { display: grid; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: 8px; }
.gal__thumbs button { aspect-ratio: 4 / 3; overflow: hidden; opacity: .5; transition: opacity .2s; outline-offset: -2px; }
.gal__thumbs button[aria-current="true"] { opacity: 1; box-shadow: inset 0 -3px 0 var(--accent); }
.gal__thumbs button:hover { opacity: 1; }
.gal__thumbs img { width: 100%; height: 100%; object-fit: cover; }

.votebox {
    display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 16px;
    padding: 18px; background: var(--surface); border: 1px solid var(--line); border-left: 4px solid var(--accent);
}
.votebox b { font-size: 64px; font-weight: 800; font-style: italic; font-stretch: 62%; line-height: .85; font-variant-numeric: tabular-nums; color: var(--accent); }
.votebox span { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; font-weight: 700; color: var(--muted); display: block; }

/* ── Aplicație (garaj, panou de control) ──────────────────────────────── */

.app { display: grid; grid-template-columns: 252px minmax(0, 1fr); min-height: 100vh; padding-top: var(--hdr); }
.side {
    position: sticky; top: var(--hdr); align-self: start; height: calc(100vh - var(--hdr));
    overflow-y: auto; border-right: 1px solid var(--line); background: var(--bg-2);
    display: flex; flex-direction: column; gap: 22px; padding: 24px 14px;
}
.side__who { padding: 0 8px; display: grid; gap: 4px; }
.side__who b { font-size: 15px; overflow-wrap: anywhere; }
.side__who span { font-size: 12.5px; color: var(--muted); overflow-wrap: anywhere; }
.side__nav { display: grid; gap: 2px; }
.side__label { padding: 12px 10px 6px; font-size: 10.5px; font-weight: 800; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); }
.side__item {
    display: flex; align-items: center; gap: 12px; width: 100%; padding: 10px 12px; border-radius: 3px;
    font-weight: 600; font-size: 14.5px; color: var(--text-2); text-align: left;
    transition: background .15s, color .15s;
}
.side__item svg { width: 18px; height: 18px; flex: none; opacity: .8; }
.side__item:hover { background: var(--surface-2); color: var(--text); }
.side__item[aria-current="true"] { background: var(--surface-3); color: var(--text); box-shadow: inset 3px 0 0 var(--accent); }
.side__item .count { margin-left: auto; min-width: 22px; height: 20px; padding: 0 6px; border-radius: 10px; display: grid; place-items: center; font-size: 11px; font-weight: 800; background: var(--accent); color: var(--accent-ink); }
.side__foot { margin-top: auto; padding: 0 8px; display: grid; gap: 8px; }

.main { min-width: 0; padding: clamp(24px, 4vw, 40px) clamp(16px, 4vw, 48px) 80px; }
.main__head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px 24px; margin-bottom: 28px; }
.main__head h1 { font-size: clamp(40px, 5vw, 64px); }
.main__head p { color: var(--muted); margin-top: 6px; }
.ev-pick { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.ev-pick .select { min-width: 260px; height: 44px; }

@media (max-width: 960px) {
    .app { grid-template-columns: 1fr; }
    .side {
        position: sticky; top: var(--hdr); z-index: 20; height: auto; padding: 0;
        flex-direction: row; overflow: visible; border-right: 0; border-bottom: 1px solid var(--line);
    }
    .side__who, .side__foot, .side__label { display: none; }
    .side__nav { display: flex; gap: 0; overflow-x: auto; scrollbar-width: none; padding: 0 8px; width: 100%; }
    .side__nav::-webkit-scrollbar { display: none; }
    .side__item { flex: none; width: auto; padding: 14px 12px; border-radius: 0; font-size: 13.5px; }
    .side__item[aria-current="true"] { background: none; box-shadow: inset 0 -3px 0 var(--accent); }
    .side__item svg { display: none; }
}

.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); margin-bottom: 24px; }
.kpi { background: var(--surface); padding: 16px 18px; text-align: left; transition: background .2s; }
button.kpi:hover { background: var(--surface-2); }
.kpi[aria-pressed="true"] { box-shadow: inset 0 -3px 0 var(--accent); background: var(--surface-2); }
.kpi b { display: block; font-size: 40px; font-weight: 800; font-style: italic; font-stretch: 62%; line-height: 1; font-variant-numeric: tabular-nums; }
.kpi span { font-size: 11.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }

/* intrările — card orizontal */
.entry {
    display: grid; grid-template-columns: 200px minmax(0, 1fr); background: var(--surface); border: 1px solid var(--line);
}
.entry + .entry { margin-top: 14px; }
.entry__img { position: relative; background: var(--surface-2); min-height: 150px; }
.entry__img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.entry__img button { position: absolute; inset: 0; }
.entry__body { padding: 16px 18px; display: grid; gap: 10px; align-content: start; min-width: 0; }
.entry__top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 12px; }
.entry__title { font-size: 26px; }
.entry__meta { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 13.5px; color: var(--text-2); }
.entry__meta span { display: inline-flex; align-items: center; gap: 6px; }
.entry__meta svg { width: 14px; height: 14px; color: var(--muted); }
.entry__desc { font-size: 14px; color: var(--muted); white-space: pre-wrap; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.entry__actions { display: flex; flex-wrap: wrap; gap: 8px; padding-top: 4px; }
@media (max-width: 640px) { .entry { grid-template-columns: 1fr; } .entry__img { aspect-ratio: 16 / 9; min-height: 0; } }

/* garajul — cardul înscrierii */
.garage { display: grid; gap: 18px; }
.gcard { display: grid; grid-template-columns: minmax(240px, 340px) minmax(0, 1fr); background: var(--surface); border: 1px solid var(--line); }
.gcard__img { position: relative; background: var(--surface-2); min-height: 220px; }
.gcard__img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.gcard__img .pill { position: absolute; top: 12px; left: 12px; }
.gcard__body { padding: 20px 22px 22px; display: grid; gap: 16px; align-content: start; min-width: 0; }
.gcard__title { font-size: 34px; }
.gcard__ev { font-size: 14px; color: var(--muted); }
.gcard__ev svg, .row__sub svg { display: inline-block; vertical-align: -2px; }
.gcard__ev a:hover { color: var(--accent); }
.gcard__actions { display: flex; flex-wrap: wrap; gap: 8px; }
@media (max-width: 760px) { .gcard { grid-template-columns: 1fr; } .gcard__img { aspect-ratio: 16 / 9; min-height: 0; } }

.flow { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; }
.flow li {
    position: relative; padding: 9px 10px 8px; background: var(--bg-2);
    font-size: 11.5px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--muted);
    border-top: 3px solid var(--line-2);
}
.flow li.is-done { color: var(--text-2); border-color: var(--ok); }
.flow li.is-now { color: var(--text); border-color: var(--accent); }
.flow li.is-bad { color: var(--bad); border-color: var(--bad); }

.probes { display: flex; flex-wrap: wrap; gap: 8px; }
.probe {
    display: inline-flex; align-items: center; gap: 8px; height: 36px; padding: 0 12px;
    border: 1px solid var(--line-2); border-radius: 2px; font-weight: 700; font-size: 13.5px; color: var(--text-2);
    transition: all .2s;
}
.probe small { color: var(--muted); font-weight: 600; }
button.probe:hover { border-color: var(--accent); color: var(--text); }
.probe.is-on { background: var(--accent-soft); border-color: var(--accent-line); color: var(--accent); }

.crewcard { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 16px; align-items: start; }
.crewcard__img { aspect-ratio: 1; background: var(--surface-2) center / cover; }
.crewcard h3 { font-size: 26px; margin: 6px 0 2px; }

/* echipa (crew) — grilă publică */
.crew-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); gap: 16px; }
.crew-card { background: var(--surface); border: 1px solid var(--line); overflow: hidden; }
.crew-card__img { aspect-ratio: 4 / 3; background: var(--surface-2); overflow: hidden; }
.crew-card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.crew-card:hover img { transform: scale(1.05); }
.crew-card__body { padding: 14px 16px 16px; display: grid; gap: 4px; }
.crew-card__body h3 { font-size: 24px; }
.crew-card__body p { font-size: 14px; color: var(--muted); }

/* scanner */
.scanner { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 18px; align-items: start; }
@media (max-width: 900px) { .scanner { grid-template-columns: 1fr; } }
#qr-reader { width: 100%; min-height: 240px; background: #000; }
#qr-reader video { width: 100% !important; }
#qr-reader img[alt="Info icon"], #qr-reader__dashboard_section_swaplink { display: none !important; }
#qr-reader button { margin: 6px; padding: 8px 14px; background: var(--surface-3); color: var(--text); border-radius: 2px; font-weight: 700; }
#qr-reader__dashboard_section { color: var(--text-2); padding: 10px !important; }
.result {
    padding: 18px; text-align: center; background: var(--bg-2); border: 1px solid var(--line);
    font-size: 20px; font-weight: 800; font-style: italic; font-stretch: 75%; text-transform: uppercase; letter-spacing: .02em;
    color: var(--muted);
}
.result[data-kind="ok"]   { color: var(--ok);   border-color: rgba(61, 220, 132, .4); background: rgba(61, 220, 132, .07); }
.result[data-kind="warn"] { color: var(--warn); border-color: rgba(255, 176, 32, .4); background: rgba(255, 176, 32, .07); }
.result[data-kind="bad"]  { color: var(--bad);  border-color: rgba(255, 82, 82, .4);  background: rgba(255, 82, 82, .07); }
.log { max-height: 280px; overflow-y: auto; font-size: 13.5px; }
.log li { display: flex; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.log time { color: var(--muted); font-variant-numeric: tabular-nums; flex: none; }
.log li[data-kind="ok"] span { color: var(--ok); }
.log li[data-kind="warn"] span { color: var(--warn); }
.log li[data-kind="bad"] span { color: var(--bad); }

.score { display: flex; align-items: center; gap: 6px; }
.score .input { width: 96px; height: 40px; text-align: center; font-weight: 700; font-variant-numeric: tabular-nums; padding: 0 6px; }
.score .icon-btn { width: 36px; height: 40px; background: var(--surface-3); font-size: 18px; }

.ev-card { display: grid; grid-template-columns: 220px minmax(0, 1fr); background: var(--surface); border: 1px solid var(--line); }
.ev-card + .ev-card { margin-top: 14px; }
.ev-card__img { background: var(--surface-2) center / cover; min-height: 160px; position: relative; }
.ev-card__img .pill { position: absolute; top: 12px; left: 12px; }
.ev-card__body { padding: 18px 20px; display: grid; gap: 12px; align-content: start; min-width: 0; }
.ev-card__title { font-size: 30px; }
.ev-card__nums { display: flex; flex-wrap: wrap; gap: 6px 20px; font-size: 14px; color: var(--text-2); }
.ev-card__nums b { color: var(--text); font-variant-numeric: tabular-nums; }
@media (max-width: 680px) { .ev-card { grid-template-columns: 1fr; } .ev-card__img { aspect-ratio: 16 / 8; min-height: 0; } }

.cover-prev { aspect-ratio: 16 / 7; background: var(--surface-2) center / cover; border: 1px solid var(--line); position: relative; }
.cover-prev .icon-btn { position: absolute; top: 8px; right: 8px; background: rgba(10, 10, 11, .8); }

.tokens { display: flex; flex-wrap: wrap; gap: 8px; }
.token {
    display: inline-flex; align-items: center; gap: 8px; height: 32px; padding: 0 6px 0 12px;
    background: var(--accent-soft); border: 1px solid var(--accent-line); color: var(--accent);
    font-weight: 700; font-size: 13.5px; border-radius: 2px;
}
.token button { width: 22px; height: 22px; display: grid; place-items: center; border-radius: 2px; }
.token button:hover { background: var(--accent); color: var(--accent-ink); }

.settings-group { border: 1px solid var(--line); background: var(--surface); }
.settings-group + .settings-group { margin-top: 18px; }
.settings-group h3 { padding: 14px 18px; border-bottom: 1px solid var(--line); font-size: 13px; letter-spacing: .14em; text-transform: uppercase; }
.settings-group .form { padding: 18px; }
.bi { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.bi .input, .bi .textarea { padding-left: 46px; }
.bi > div { position: relative; }
.bi > div::before {
    content: attr(data-lang); position: absolute; left: 1px; top: 1px; z-index: 1;
    width: 36px; height: 46px; display: grid; place-items: center;
    font-size: 11px; font-weight: 800; letter-spacing: .08em; color: var(--muted);
    border-right: 1px solid var(--line-2);
}
@media (max-width: 700px) { .bi { grid-template-columns: 1fr; } }

/* ── Autentificare ────────────────────────────────────────────────────── */

.auth { display: grid; grid-template-columns: 1.1fr 1fr; min-height: 100vh; }
.auth__visual { position: relative; overflow: hidden; isolation: isolate; display: flex; align-items: flex-end; padding: calc(var(--hdr) + 40px) clamp(24px, 5vw, 64px) 56px; }
.auth__visual img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; max-width: none; }
.auth__visual::before {
    content: ""; position: absolute; inset: 0; z-index: -1;
    background: linear-gradient(0deg, var(--bg) 0%, rgba(10, 10, 11, .55) 50%, rgba(10, 10, 11, .4) 100%);
}
.auth__visual h1 { font-size: clamp(56px, 8vw, 120px); }
.auth__visual h1 span { display: block; }
.auth__visual h1 span + span { color: var(--accent); }
.auth__visual p { max-width: 44ch; color: var(--text-2); margin-top: 18px; font-size: 17px; }
.auth__panel { display: grid; place-items: center; padding: calc(var(--hdr) + 32px) var(--gut) 48px; background: var(--bg); }
.auth__box { width: min(420px, 100%); display: grid; gap: 22px; }
.auth__box h2 { font-size: clamp(40px, 5vw, 56px); }
.gbtn {
    display: flex; align-items: center; justify-content: center; gap: 12px;
    height: 56px; width: 100%; border-radius: var(--r);
    background: #fff; color: #1F1F1F; font-weight: 700; font-size: 16px;
    transition: transform .2s var(--ease), box-shadow .2s;
}
.gbtn:hover { box-shadow: 0 0 0 4px var(--accent-soft); }
.gbtn:active { transform: translateY(1px); }
.gbtn[disabled] { opacity: .6; pointer-events: none; }
.or { display: flex; align-items: center; gap: 14px; color: var(--muted); font-size: 12px; letter-spacing: .16em; text-transform: uppercase; font-weight: 700; }
.or::before, .or::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.perks { display: grid; gap: 12px; border-top: 1px solid var(--line); padding-top: 22px; }
.perks li { display: grid; grid-template-columns: 22px 1fr; gap: 12px; color: var(--text-2); font-size: 14.5px; }
.perks svg { width: 20px; height: 20px; color: var(--accent); margin-top: 2px; }
@media (max-width: 860px) {
    .auth { grid-template-columns: 1fr; }
    .auth__visual { min-height: 42vh; padding-bottom: 32px; }
    .auth__panel { padding-top: 32px; }
}

/* ── 404 ──────────────────────────────────────────────────────────────── */

.nf { min-height: 100vh; display: grid; place-items: center; padding: calc(var(--hdr) + 40px) var(--gut) 40px; text-align: center; }
.nf__code {
    font-size: clamp(140px, 28vw, 340px); line-height: .8; font-weight: 800; font-style: italic; font-stretch: 62%;
    color: transparent; -webkit-text-stroke: 2px var(--accent);
}
.nf h1 { font-size: clamp(36px, 5vw, 60px); margin: 20px 0 14px; }
.nf p { color: var(--text-2); max-width: 46ch; margin: 0 auto; }
.nf .actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 28px; }

/* ── Utilitare ────────────────────────────────────────────────────────── */

.actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.stack { display: grid; gap: 16px; }
.stack-sm { display: grid; gap: 8px; }
.mt-0 { margin-top: 0; }
.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.mt-4 { margin-top: 40px; }
.center { text-align: center; }
.between { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.divider { height: 1px; background: var(--line); }

/* ── Mișcare ──────────────────────────────────────────────────────────── */

@keyframes spin { to { transform: rotate(360deg); } }
@keyframes blink { 50% { opacity: .25; } }

.js-motion [data-reveal] {
    opacity: 0; transform: translateY(28px);
    transition: opacity .8s var(--ease), transform .9s var(--ease);
    transition-delay: var(--d, 0s);
}
.js-motion [data-reveal].is-in { opacity: 1; transform: none; }

.js-motion .hero [data-rise] { opacity: 0; transform: translateY(40px); animation: rise 1s var(--ease) forwards; animation-delay: var(--d, .1s); }
@keyframes rise { to { opacity: 1; transform: none; } }

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
    .js-motion [data-reveal] { opacity: 1; transform: none; }
    .ticker__track { animation: none; }
}

@media print {
    .hdr, .ftr, .banner, .toasts { display: none !important; }
    body { background: #fff; color: #000; }
}

/* ==========================================================================
   CHRISTMAS EDITION 2026 — roșu închis, verde brad, auriu
   Strat peste sistemul de bază: atmosferă de iarnă, luminițe, ninsoare
   discretă, carduri cu glow, podium și premii.
   ========================================================================== */

body {
    background:
        radial-gradient(1200px 700px at 8% -10%, rgba(158, 27, 36, .16), transparent 60%),
        radial-gradient(1000px 800px at 105% 30%, rgba(20, 90, 58, .14), transparent 60%),
        radial-gradient(900px 600px at 40% 110%, rgba(212, 175, 55, .06), transparent 60%),
        var(--bg);
    background-attachment: fixed;
}

/* ninsoarea: un canvas peste pagină, fără să prindă clicuri */
.snow { position: fixed; inset: 0; z-index: 45; pointer-events: none; width: 100%; height: 100%; }

/* luminițe de Crăciun: un șir de becuri care pâlpâie lent */
.lights {
    position: relative; height: 18px; overflow: hidden; pointer-events: none;
    --b1: #E23A3A; --b2: #E8C766; --b3: #2FBF71;
}
.lights::before {
    content: ""; position: absolute; left: 0; right: 0; top: 2px; height: 2px;
    background: repeating-linear-gradient(90deg, rgba(212, 175, 55, .35) 0 46px, transparent 46px 48px);
    border-radius: 2px;
}
.lights i {
    position: absolute; top: 4px; width: 7px; height: 11px; border-radius: 50% 50% 45% 45%;
    background: var(--c); box-shadow: 0 0 10px 2px var(--c);
    animation: bulb 3.2s ease-in-out infinite; animation-delay: var(--dl);
}
@keyframes bulb { 0%, 100% { opacity: 1; } 50% { opacity: .35; box-shadow: 0 0 3px 0 var(--c); } }
.hdr .lights { position: absolute; left: 0; right: 0; bottom: -18px; }
.hdr:not(.is-solid) .lights { opacity: .85; }

/* banda de sus a hero-ului: auriu, nu galben */
.ticker { background: linear-gradient(90deg, #B8912A, var(--accent) 30%, #F1D88A 50%, var(--accent) 70%, #B8912A); }
.ticker span::after { content: "❄"; }

/* hero: fotografii reale, care se schimbă lent */
.hero__slides img {
    position: absolute; inset: 0; opacity: 0; transition: opacity 1.6s ease;
    animation: kenburns 18s ease-in-out infinite alternate;
}
.hero__slides img.is-on { opacity: 1; }
@keyframes kenburns { from { transform: scale(1.04); } to { transform: scale(1.12) translateX(-1.5%); } }
.hero::before {
    background:
        linear-gradient(0deg, var(--bg) 0%, rgba(11, 13, 12, .5) 40%, rgba(11, 13, 12, .2) 70%, rgba(11, 13, 12, .7) 100%),
        linear-gradient(90deg, rgba(60, 8, 12, .7) 0%, rgba(11, 13, 12, .2) 65%, rgba(8, 40, 26, .45) 100%);
}
.hero__title { font-size: clamp(54px, 9vw, 150px); }
.hero__title span + span {
    background: linear-gradient(100deg, #B8912A 0%, #F1D88A 45%, var(--accent) 60%, #B8912A 100%);
    -webkit-background-clip: text; background-clip: text; color: transparent;
    font-size: .62em; margin-top: .12em;
}
.hero__desc { font-style: italic; color: #E9E4D6; }
.hero .kicker { color: var(--accent-2); }

/* carduri cu glow subtil auriu */
.car, .panel, .ev-card, .entry, .gcard, .crew-card, .board, .sponsor {
    transition: border-color .3s, box-shadow .4s var(--ease), transform .3s var(--ease);
}
.car:hover, .ev-card:hover, .crew-card:hover {
    border-color: rgba(212, 175, 55, .45);
    box-shadow: 0 0 0 1px rgba(212, 175, 55, .18), 0 24px 60px -24px rgba(212, 175, 55, .35), 0 0 40px -10px rgba(158, 27, 36, .35);
}
.board { border-top-color: var(--accent); box-shadow: 0 30px 80px -30px rgba(0, 0, 0, .8), 0 0 60px -30px rgba(212, 175, 55, .4); }
.panel--accent { border-top-color: var(--accent); }
.band { background: linear-gradient(110deg, #6E1218 0%, var(--red) 45%, #5E0F14 100%); color: #FFF5E8; }
.band .kicker { color: var(--accent-2); }
.band .btn { background: var(--accent); color: var(--accent-ink); }
.band .btn:hover { background: #fff; }
.band::after { background: repeating-linear-gradient(115deg, transparent 0 18px, rgba(255, 255, 255, .05) 18px 30px); }
.cta-final::before { background: radial-gradient(60% 90% at 100% 0%, rgba(158, 27, 36, .3), transparent 70%), radial-gradient(50% 80% at 0% 100%, rgba(20, 90, 58, .25), transparent 70%); }
.btn--primary { background: linear-gradient(180deg, #F1D88A, var(--accent) 55%, #B8912A); }
.btn--primary:hover { background: #fff; }
.btn--ok { background: rgba(47, 191, 113, .14); }
.checker { opacity: .5; }
.sec-no { color: var(--accent); }
.step b { -webkit-text-stroke-color: var(--accent); }

/* ── Cardul unei mașini din concurs ───────────────────────────────────── */

.car--contest .car__media { aspect-ratio: 4 / 5; }
.car__owner { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; font-size: 13px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--text-2); }
.car__desc { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.car.is-top1 { border-color: rgba(232, 199, 102, .7); box-shadow: 0 0 0 1px rgba(232, 199, 102, .35), 0 20px 60px -20px rgba(232, 199, 102, .45); }
.car.is-top2 { border-color: rgba(205, 210, 218, .55); }
.car.is-top3 { border-color: rgba(205, 127, 50, .6); }
.car.is-top1 .car__no { background: linear-gradient(180deg, #F6E3A1, #D4AF37); }
.car.is-top2 .car__no { background: linear-gradient(180deg, #F4F6F8, #AEB6C1); }
.car.is-top3 .car__no { background: linear-gradient(180deg, #F0B98A, #B87333); }

/* ── Premii (badge-uri) ───────────────────────────────────────────────── */

.badges { display: flex; flex-wrap: wrap; gap: 6px; }
.badges--stack { flex-direction: column; align-items: flex-start; gap: 10px; }
.badge {
    --m1: #F6E3A1; --m2: #D4AF37; --m3: #8A6A12;
    display: inline-flex; align-items: center; gap: 8px; max-width: 100%;
    padding: 4px 12px 4px 4px; border-radius: 30px;
    background: linear-gradient(135deg, rgba(255, 255, 255, .06), rgba(255, 255, 255, .02));
    border: 1px solid color-mix(in srgb, var(--m2) 60%, transparent);
    box-shadow: 0 0 18px -6px var(--m2), inset 0 1px 0 rgba(255, 255, 255, .08);
    font-size: 12px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--m1);
    white-space: nowrap;
}
.badge span { overflow: hidden; text-overflow: ellipsis; }
.badge i {
    flex: none; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center;
    font-style: normal; font-size: 12px; font-weight: 800; color: #1B1405;
    background: radial-gradient(circle at 35% 30%, var(--m1), var(--m2) 55%, var(--m3));
    box-shadow: 0 0 0 2px rgba(0, 0, 0, .35), 0 0 12px var(--m2);
}
.badge--silver { --m1: #F4F6F8; --m2: #B9C1CC; --m3: #6E7682; }
.badge--bronze { --m1: #F2C39A; --m2: #CD7F32; --m3: #7A4318; }
.badge--sm { padding: 2px 9px 2px 2px; font-size: 10px; gap: 6px; }
.badge--sm i { width: 18px; height: 18px; font-size: 10px; }

/* ── Podium ───────────────────────────────────────────────────────────── */

.podium { display: grid; grid-template-columns: 1fr 1.15fr 1fr; gap: 18px; align-items: end; }
.podium__item { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); overflow: hidden; }
.podium__img { position: relative; aspect-ratio: 4 / 4.4; background: var(--surface-2); overflow: hidden; }
.podium__img img { width: 100%; height: 100%; object-fit: cover; }
.podium__medal {
    position: absolute; top: 12px; left: 12px; width: 52px; height: 52px; border-radius: 50%;
    display: grid; place-items: center; font-size: 24px; font-weight: 800; font-style: italic; color: #1B1405;
    background: radial-gradient(circle at 35% 30%, var(--m1), var(--m2) 55%, var(--m3));
    box-shadow: 0 0 0 3px rgba(0, 0, 0, .4), 0 0 26px var(--m2);
}
.podium__body { padding: 16px 18px 18px; display: grid; gap: 6px; }
.podium__body h3 { font-size: 30px; }
.podium__label { font-size: 12px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--m1); }
.podium__votes b { font-size: 34px; font-weight: 800; font-style: italic; font-stretch: 62%; color: var(--m1); }
.podium__step {
    height: var(--h); display: grid; place-items: center;
    background: linear-gradient(180deg, color-mix(in srgb, var(--m2) 35%, var(--surface-2)), var(--surface));
    border-top: 3px solid var(--m2);
    font-size: 54px; font-weight: 800; font-style: italic; font-stretch: 62%; color: color-mix(in srgb, var(--m1) 50%, transparent);
}
.podium__item--1 { --m1: #F6E3A1; --m2: #D4AF37; --m3: #8A6A12; --h: 120px; border-color: rgba(212, 175, 55, .55); box-shadow: 0 30px 80px -30px rgba(212, 175, 55, .5); }
.podium__item--2 { --m1: #F4F6F8; --m2: #B9C1CC; --m3: #6E7682; --h: 80px; }
.podium__item--3 { --m1: #F2C39A; --m2: #CD7F32; --m3: #7A4318; --h: 56px; }
@media (max-width: 760px) {
    .podium { grid-template-columns: 1fr; }
    .podium__item--1 { order: -1; }
    .podium__step { display: none; }
}

/* statistici mari în panou */
.kpis--big .kpi b { font-size: 46px; }
.kpis--big .kpi small { display: block; margin-top: 2px; font-size: 12px; }
.chip[aria-pressed="true"] { border-color: rgba(47, 191, 113, .5); color: #8BE7B4; background: rgba(47, 191, 113, .1); }
.chip[aria-pressed="false"] { color: var(--muted); }
button.chip { cursor: pointer; }
button.chip:disabled { opacity: .5; cursor: default; }

@media (prefers-reduced-motion: reduce) {
    .hero__slides img { animation: none; }
    .lights i { animation: none; }
}

/* iconițe în rânduri de text */
p > svg, .small > svg, .hint > svg { display: inline-block; vertical-align: -2px; }
.ev-card__img { background-position: left center; }
