:root {
    --vg-accent: #f5a300;

    /* Paletă grafice (validată CVD, ordine fixă de serii) */
    --surface-1: #ffffff;
    --text-secondary: #52514e;
    --grid: rgba(0, 0, 0, .07);
    --series-1: #2a78d6;
    --series-2: #eb6834;
    --series-3: #1baf7a;
    --series-4: #eda100;
    --series-5: #e87ba4;
    --series-6: #008300;
}

.sortable th[data-dir="asc"]::after { content: " ▲"; font-size: .7em; }
.sortable th[data-dir="desc"]::after { content: " ▼"; font-size: .7em; }

@media (min-width: 992px) {
    .vh-lg-100 { min-height: calc(100vh - 56px); }
}

.sidebar .nav-link {
    color: var(--bs-body-color);
    border-left: 3px solid transparent;
    padding: .6rem 1rem;
}
.sidebar .nav-link:hover { background: var(--bs-tertiary-bg); }
.sidebar .nav-link.active {
    border-left-color: var(--vg-accent);
    background: var(--bs-tertiary-bg);
    font-weight: 600;
}

/* Grupele meniului: titlu pe care se apasă ca să deschizi / restrângi grupa */
.sidebar .nav-group-toggle {
    display: flex;
    width: 100%;
    align-items: center;
    justify-content: space-between;
    padding: .55rem 1rem;
    border: 0;
    border-top: 1px solid var(--bs-border-color-translucent);
    background: none;
    color: var(--bs-secondary-color);
    font-size: .75rem;
    font-weight: 600;
    letter-spacing: .04em;
    text-transform: uppercase;
    text-align: left;
}
.sidebar .nav-group-toggle:hover { color: var(--bs-body-color); background: var(--bs-tertiary-bg); }
.sidebar .nav-group-toggle:focus-visible { outline: 2px solid var(--vg-primary); outline-offset: -2px; }
.sidebar .nav-group-toggle { cursor: pointer; user-select: none; -webkit-tap-highlight-color: transparent; transition: color .15s ease, background-color .15s ease; }
.sidebar .nav-group-toggle.has-active { color: var(--bs-body-color); }

/* Deschidere / închidere: rânduri de grilă 0fr → 1fr (înălțimea reală, fără măsurători în JS), întreruptibilă la clic repetat */
.sidebar { --nav-speed: .24s; --nav-ease: cubic-bezier(.2, .8, .2, 1); }
.sidebar .nav-group-body {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows var(--nav-speed) var(--nav-ease);
}
.sidebar .nav-group-body.open { grid-template-rows: 1fr; }
.sidebar .nav-group-inner {
    min-height: 0;
    overflow: hidden;
    opacity: 0;
    visibility: hidden; /* linkurile din grupele închise nu primesc focus cu Tab */
    transition: opacity calc(var(--nav-speed) * .7) ease, visibility 0s linear var(--nav-speed);
}
.sidebar .nav-group-body.open > .nav-group-inner {
    opacity: 1;
    visibility: visible;
    transition: opacity var(--nav-speed) ease calc(var(--nav-speed) * .15), visibility 0s;
}
.sidebar .nav-group-chevron { transition: transform var(--nav-speed) var(--nav-ease); transform: rotate(-90deg); }
.sidebar .nav-group-toggle[aria-expanded="true"] .nav-group-chevron { transform: rotate(0deg); }
.sidebar .nav-group-inner .nav-link { padding-top: .45rem; padding-bottom: .45rem; }
.sidebar .nav-link { transition: background-color .15s ease, border-color .15s ease; }
.sidebar-nav.no-anim .nav-group-body, .sidebar-nav.no-anim .nav-group-inner, .sidebar-nav.no-anim .nav-group-chevron { transition: none !important; }
@media (prefers-reduced-motion: reduce) { .sidebar { --nav-speed: 0s; } }

/* Desktop: meniul stă fix sub bara de sus și se derulează separat, fără să miște pagina */
@media (min-width: 992px) {
    .sidebar {
        position: sticky;
        top: var(--vg-topbar, 56px);
        height: calc(100vh - var(--vg-topbar, 56px));
        overflow-y: auto;
        overscroll-behavior: contain;
        scrollbar-width: thin;
        scrollbar-gutter: stable;
    }
}

.stat-card .display-6 { font-weight: 600; }
.card { border: 0; box-shadow: 0 1px 2px rgba(0, 0, 0, .06), 0 1px 3px rgba(0, 0, 0, .08); }

.hero {
    background: linear-gradient(135deg, var(--vg-hero-from, #0f2027) 0%, var(--vg-hero-to, #2c5364) 100%);
    color: #fff;
}
.hero .hero-icon { color: var(--vg-accent); }

/* ------------------------------------------------------------------ peisajul din fundalul hero-ului (public/_hero_scene.php) */
.hero-has-scene { position: relative; overflow: hidden; padding-bottom: 7.5rem !important; }
.hero-has-scene > .container { position: relative; z-index: 1; text-shadow: 0 1px 10px rgba(0, 0, 0, .35); }
.hero-scene {
    position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none;
    -webkit-mask-image: linear-gradient(90deg, transparent 0%, rgba(0, 0, 0, .25) 28%, #000 58%);
    mask-image: linear-gradient(90deg, transparent 0%, rgba(0, 0, 0, .25) 28%, #000 58%);
}
.hero-scene .hs-stars circle { fill: #fff; opacity: .5; animation: hs-twinkle 4.5s ease-in-out infinite; }
.hero-scene .hs-glow { animation: hs-pulse 6s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
.hero-scene .hs-rays { stroke: #ffe08a; stroke-width: 3; stroke-linecap: round; opacity: .55; animation: hs-spin 60s linear infinite; transform-box: fill-box; transform-origin: center; }
.hero-scene .hs-cloud { fill: #fff; opacity: .07; animation: hs-drift 80s ease-in-out infinite alternate; }
.hero-scene .hs-tower { fill: rgba(255, 255, 255, .42); }
.hero-scene .hs-blade { fill: rgba(255, 255, 255, .62); }
.hero-scene .hs-hub { fill: #fff; opacity: .8; }
.hero-scene .hs-rot { animation: hs-spin 10s linear infinite; transform-box: fill-box; transform-origin: center; }
.hero-scene .hs-mid { fill: rgba(0, 0, 0, .16); }
.hero-scene .hs-near { fill: rgba(0, 0, 0, .24); }
.hero-scene .hs-pylon path { fill: none; stroke: rgba(255, 255, 255, .42); stroke-width: 2; stroke-linejoin: round; }
.hero-scene .hs-pylon .hs-ins { stroke: var(--vg-accent); stroke-width: 3; }
.hero-scene .hs-wires path { fill: none; stroke: rgba(255, 255, 255, .22); stroke-width: 1; }
.hero-scene .hs-flow path { fill: none; stroke: #ffe08a; stroke-width: 2.2; stroke-linecap: round; stroke-dasharray: 10 190; filter: drop-shadow(0 0 3px var(--vg-accent)); animation: hs-flow 3.2s linear infinite; }
.hero-scene .hs-modules path { stroke: rgba(255, 255, 255, .5); stroke-width: .7; }
.hero-scene .hs-shine { animation: hs-shine 6s ease-in-out infinite; }
.hero-scene .hs-shine-roof { animation: hs-shine-roof 7s ease-in-out infinite 1.5s; }
/* prim-planul: casa, invertorul, bateria, wallbox-ul, mașina */
.hero-scene .hs-house, .hero-scene .hs-battery, .hero-scene .hs-ev { filter: drop-shadow(0 6px 10px rgba(0, 0, 0, .35)); }
.hero-scene .hs-wall { opacity: .93; }
.hero-scene .hs-eave { fill: rgba(0, 0, 0, .18); }
.hero-scene .hs-roof { stroke: #120c09; stroke-width: 1.2; stroke-linejoin: round; }
.hero-scene .hs-roofedge { stroke: #c9b8a6; stroke-width: 3; stroke-linecap: round; }
.hero-scene .hs-roofpv path { stroke: #d6dde8; stroke-width: 1.1; stroke-linejoin: round; }
.hero-scene .hs-cells { fill: none; stroke: rgba(214, 228, 245, .45); stroke-width: .6; }
.hero-scene .hs-window { fill: #ffd27a; filter: drop-shadow(0 0 7px #ffb84d); animation: hs-window 7s ease-in-out infinite; }
.hero-scene .hs-winframe { fill: none; stroke: #8a6f58; stroke-width: 2.5; }
.hero-scene .hs-frame { fill: none; stroke: #8a6f58; stroke-width: 2; }
.hero-scene .hs-door { fill: #6b4a33; stroke: #4a3222; stroke-width: 1.5; }
.hero-scene .hs-knob { fill: #f0c46a; }
.hero-scene .hs-dev { stroke: #7c8796; stroke-width: 1; }
.hero-scene .hs-devline { fill: none; stroke: #9aa5b4; stroke-width: 1; }
.hero-scene .hs-screen { fill: #0d2235; stroke: #50657d; stroke-width: .6; }
.hero-scene .hs-curve { fill: none; stroke: #ffd35a; stroke-width: 1.4; stroke-linecap: round; filter: drop-shadow(0 0 2px #ffb81c); }
.hero-scene .hs-led { fill: #3fe68a; filter: drop-shadow(0 0 3px #3fe68a); animation: hs-blink 2s steps(2) infinite; }
.hero-scene .hs-ring { fill: none; stroke: #3fe68a; stroke-width: 2; filter: drop-shadow(0 0 3px #3fe68a); animation: hs-ring 2.4s ease-in-out infinite; }
.hero-scene .hs-cable { fill: none; stroke: #2a2d33; stroke-width: 2; stroke-linecap: round; }
.hero-scene .hs-flow2 { fill: none; stroke: #ffe08a; stroke-width: 1.6; stroke-linecap: round; stroke-dasharray: 4 14; filter: drop-shadow(0 0 2px var(--vg-accent)); animation: hs-flow2 1.4s linear infinite; }
.hero-scene .hs-cell { fill: #3fe68a; opacity: .15; animation: hs-charge 3s ease-in-out infinite; }
.hero-scene .hs-bolt { fill: var(--vg-accent); }
.hero-scene .hs-bush circle { fill: #1f3b22; opacity: .85; }
.hero-scene .hs-pole { fill: none; stroke: #2c2622; stroke-width: 3; stroke-linecap: round; }
.hero-scene .hs-lamphead { fill: #ffe4a3; filter: drop-shadow(0 0 5px #ffb84d); }
.hero-scene .hs-lampglow { animation: hs-window 9s ease-in-out infinite; }
.hero-scene .hs-carbody { stroke: #5d6878; stroke-width: 1; stroke-linejoin: round; }
.hero-scene .hs-glass { stroke: #3c4a5e; stroke-width: .8; }
.hero-scene .hs-carline { stroke: rgba(93, 104, 120, .55); stroke-width: 1; }
.hero-scene .hs-headlight { fill: #fff8e0; filter: drop-shadow(0 0 4px #fff2b8); }
.hero-scene .hs-beam { animation: hs-beam 5s ease-in-out infinite; }
.hero-scene .hs-taillight { fill: #ff4d4d; filter: drop-shadow(0 0 3px #ff4d4d); }
.hero-scene .hs-port { fill: #3fe68a; filter: drop-shadow(0 0 3px #3fe68a); }
.hero-scene .hs-tyre { fill: #16181c; stroke: #3a3f47; stroke-width: 1.5; }
.hero-scene .hs-rim { fill: #b8c2cf; stroke: #6e7887; stroke-width: 1; }
.hero-scene .hs-hubcap { fill: #4b5563; }
.hero-scene .hs-plug { fill: none; stroke: #1d2026; stroke-width: 2.4; stroke-linecap: round; }
.hero-scene .hs-badge { animation: hs-bob 3s ease-in-out infinite alternate; }
.hero-scene .hs-pill { fill: rgba(10, 20, 30, .55); stroke: rgba(255, 255, 255, .35); stroke-width: .8; }
.hero-scene .hs-bat, .hero-scene .hs-batcap { fill: none; stroke: #fff; stroke-width: 1.2; }
.hero-scene .hs-batcap { fill: #fff; stroke: none; }
.hero-scene .hs-batfill { fill: #3fe68a; transform-box: fill-box; transform-origin: left center; animation: hs-fill 4s ease-in-out infinite; }
.hero-scene .hs-motes circle { fill: #ffe08a; opacity: 0; filter: drop-shadow(0 0 4px var(--vg-accent)); animation: hs-mote 10s linear infinite; }
@keyframes hs-spin { to { transform: rotate(360deg); } }
@keyframes hs-twinkle { 0%, 100% { opacity: .15; } 50% { opacity: .85; } }
@keyframes hs-pulse { 0%, 100% { transform: scale(1); opacity: .85; } 50% { transform: scale(1.08); opacity: 1; } }
@keyframes hs-drift { from { transform: translateX(-60px); } to { transform: translateX(80px); } }
@keyframes hs-flow { from { stroke-dashoffset: 200; } to { stroke-dashoffset: 0; } }
@keyframes hs-window { 0%, 100% { opacity: .75; } 45% { opacity: .55; } 50% { opacity: .85; } }
@keyframes hs-blink { 50% { opacity: .25; } }
@keyframes hs-charge { 0%, 10% { opacity: .15; } 30%, 80% { opacity: .95; } 100% { opacity: .15; } }
@keyframes hs-shine { 0% { transform: translateX(0); } 60%, 100% { transform: translateX(300px); } }
@keyframes hs-shine-roof { 0% { transform: translateX(0); } 55%, 100% { transform: translateX(340px); } }
@keyframes hs-flow2 { from { stroke-dashoffset: 36; } to { stroke-dashoffset: 0; } }
@keyframes hs-ring { 0%, 100% { opacity: .45; } 50% { opacity: 1; } }
@keyframes hs-beam { 0%, 100% { opacity: .75; } 50% { opacity: 1; } }
@keyframes hs-bob { from { transform: translateY(0); } to { transform: translateY(-4px); } }
@keyframes hs-fill { 0% { transform: scaleX(.15); } 85%, 100% { transform: scaleX(1); } }
@keyframes hs-mote { 0% { transform: translateY(0); opacity: 0; } 15% { opacity: .9; } 100% { transform: translateY(-170px) translateX(18px); opacity: 0; } }
@media (max-width: 991.98px) {
    .hero-has-scene { padding-bottom: 5rem !important; }
    .hero-scene { opacity: .45; -webkit-mask-image: none; mask-image: none; }
}
@media (prefers-reduced-motion: reduce) {
    .hero-scene * { animation: none !important; }
    .hero-scene .hs-motes circle { opacity: .5; }
}

/* ------------------------------------------------------------------ tema (variabilele vin din theme_style()) */
.btn-primary {
    --bs-btn-bg: var(--vg-primary); --bs-btn-border-color: var(--vg-primary);
    --bs-btn-hover-bg: var(--vg-primary-hover); --bs-btn-hover-border-color: var(--vg-primary-hover);
    --bs-btn-active-bg: var(--vg-primary-hover); --bs-btn-active-border-color: var(--vg-primary-hover);
    --bs-btn-disabled-bg: var(--vg-primary); --bs-btn-disabled-border-color: var(--vg-primary);
    --bs-btn-focus-shadow-rgb: var(--vg-primary-rgb);
}
.btn-outline-primary {
    --bs-btn-color: var(--vg-primary); --bs-btn-border-color: var(--vg-primary);
    --bs-btn-hover-bg: var(--vg-primary); --bs-btn-hover-border-color: var(--vg-primary);
    --bs-btn-active-bg: var(--vg-primary); --bs-btn-active-border-color: var(--vg-primary);
    --bs-btn-disabled-color: var(--vg-primary); --bs-btn-disabled-border-color: var(--vg-primary);
    --bs-btn-focus-shadow-rgb: var(--vg-primary-rgb);
}
.btn-accent {
    --bs-btn-color: var(--vg-accent-text); --bs-btn-bg: var(--vg-accent); --bs-btn-border-color: var(--vg-accent);
    --bs-btn-hover-color: var(--vg-accent-text); --bs-btn-hover-bg: var(--vg-accent); --bs-btn-hover-border-color: var(--vg-accent);
    --bs-btn-active-color: var(--vg-accent-text); --bs-btn-active-bg: var(--vg-accent); --bs-btn-active-border-color: var(--vg-accent);
    --bs-btn-focus-shadow-rgb: var(--vg-accent-rgb);
}
.btn-accent:hover { filter: brightness(.94); }
.form-check-input:checked { background-color: var(--vg-primary); border-color: var(--vg-primary); }
.form-control:focus, .form-select:focus, .form-check-input:focus {
    border-color: rgba(var(--vg-primary-rgb), .55);
    box-shadow: 0 0 0 .25rem rgba(var(--vg-primary-rgb), .2);
}
.progress, .progress-stacked { --bs-progress-bar-bg: var(--vg-primary); }
.nav-pills { --bs-nav-pills-link-active-bg: var(--vg-primary); }
.dropdown-menu { --bs-dropdown-link-active-bg: var(--vg-primary); }
.list-group { --bs-list-group-active-bg: var(--vg-primary); --bs-list-group-active-border-color: var(--vg-primary); }
.vg-navbar { background-color: var(--vg-nav-bg, #212529) !important; }
/* Pe telefon, iconițele de sus stau într-un panou din dreapta, cu același fundal ca bara */
@media (max-width: 991.98px) {
    /* Logo-ul stă la mijlocul barei, între butonul de meniu din stânga și cel din dreapta */
    .vg-admin-top > .navbar-brand { position: absolute; left: 50%; transform: translateX(-50%); white-space: nowrap; }
    .vg-topicons-drawer {background-color: var(--vg-nav-bg, #212529); width: min(85vw, 320px); }
    /* Panou pe o coloană: fiecare rând = iconiță · etichetă · balon (balonul merge la dreapta) */
    .vg-topicons-drawer .offcanvas-body { overflow-x: hidden; overflow-y: auto; display: flex !important; flex-direction: column; justify-content: flex-start !important; align-items: stretch !important; row-gap: 0 !important; padding: .25rem 1rem 1.5rem; }
    .vg-topicons-drawer .offcanvas-body > :is(a, button, div) { display: flex; align-items: center; gap: .75rem; width: 100%; min-height: 3rem; padding: .5rem 0; border: 0; border-bottom: 1px solid rgba(255, 255, 255, .1); border-radius: 0; color: inherit; text-decoration: none; text-align: left; }
    .vg-topicons-drawer .offcanvas-body > :is(a, button, div):last-child { border-bottom: 0; }
    .vg-topicons-drawer .vg-color-mode > .btn { width: 100%; display: flex; align-items: center; gap: .75rem; border: 0; border-radius: 0; padding: .5rem 0; text-align: left; }
    .vg-topicons-drawer .dropdown > button { width: 100%; display: flex; align-items: center; gap: .75rem; padding: .5rem 0; text-align: left; }
    .vg-topicons-drawer .offcanvas-body .bi { order: 0; flex: 0 0 1.5rem; width: 1.5rem; text-align: center; }
    .vg-topicons-drawer .offcanvas-body [aria-label]:not(.btn-close)::before { content: attr(aria-label); order: 1; flex: 1 1 auto; font-size: .95rem; }
    .vg-topicons-drawer .dropdown-toggle::after { order: 3; }
    .vg-topicons-drawer .position-absolute { position: static !important; transform: none !important; }
    .vg-topicons-drawer .badge { order: 2; margin-left: auto !important; }
    /* Lupa din panou: aceeași linie ca celelalte acțiuni (iconiță, etichetă, pe toată lățimea) */
    .vg-topicons-drawer #adm-search { width: 100%; }
    .vg-topicons-drawer #adm-search-btn { width: 100%; display: flex; align-items: center; gap: .75rem; padding: .5rem 0; text-align: left; border: 0; border-radius: 0; }
    .vg-topicons-drawer #adm-search-btn .bi { order: 0; flex: 0 0 1.5rem; width: 1.5rem; text-align: center; }
    .vg-topicons-drawer #adm-search-panel { position: static !important; width: 100% !important; margin-top: .5rem !important; }
}
.vg-topline { border-top: 3px solid var(--vg-accent); }

/* Logo: semnul preia accentul temei, textul culoarea barei (alb pe bara închisă) */
.vg-logo { display: inline-flex; align-items: center; gap: .45rem; line-height: 1; }
.vg-logo-mark { width: 1.6em; height: 1.6em; color: var(--vg-accent); flex: none; }
.vg-logo-text { font-weight: 600; letter-spacing: -.01em; }
.vg-logo-strong { font-weight: 800; letter-spacing: .03em; color: var(--vg-accent); }
.navbar:not(.vg-navbar) .vg-logo-mark, .vg-on-light .vg-logo-mark { color: var(--vg-accent-dark, var(--vg-accent)); }
.navbar:not(.vg-navbar) .vg-logo-strong, .vg-on-light .vg-logo-strong { color: var(--vg-primary); }
.vg-logo-lg { font-size: clamp(1.9rem, 8vw, 2.6rem); }

/* Câmpul-capcană pentru roboți: în afara ecranului, nu display:none (unii roboți îl ocolesc pe acela) */
.vg-hp { position: absolute !important; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }

/* Notificarea despre cookie-uri: jos în stânga (chatul e în dreapta), nu blochează pagina */
.vg-cookie-notice { position: fixed; left: 16px; bottom: 16px; z-index: 1070; max-width: min(440px, calc(100vw - 32px)); }
@media (max-width: 480px) { .vg-cookie-notice { right: 16px; bottom: 84px; } }

/* ------------------------------------------------------------------ mod întunecat */
[data-bs-theme=dark] {
    --surface-1: #212529;
    --text-secondary: #adb5bd;
    --grid: rgba(255, 255, 255, .1);
    /* Aceleași nuanțe, trepte pentru fundal închis (validate pe #212529: CVD, contrast ≥ 3:1) */
    --series-1: #3987e5;
    --series-2: #d95926;
    --series-3: #199e70;
    --series-4: #c98500;
    --series-5: #d55181;
    --series-6: #008300;
}
/* „bg-white” e folosit pentru antete de card și bare: pe întunecat devine suprafața paginii (logo-ul de probă rămâne alb). */
[data-bs-theme=dark] .bg-white:not(.vg-on-light) { background-color: var(--bs-body-bg) !important; }
[data-bs-theme=dark] .bg-light { background-color: var(--bs-tertiary-bg) !important; }
[data-bs-theme=dark] .table-light {
    --bs-table-bg: var(--bs-tertiary-bg); --bs-table-color: var(--bs-body-color);
    --bs-table-border-color: var(--bs-border-color); --bs-table-striped-bg: var(--bs-secondary-bg);
}
[data-bs-theme=dark] .card { box-shadow: 0 0 0 1px var(--bs-border-color-translucent); }
[data-bs-theme=dark] .btn-outline-primary {
    --bs-btn-color: var(--vg-primary-light); --bs-btn-border-color: var(--vg-primary-light);
    --bs-btn-disabled-color: var(--vg-primary-light); --bs-btn-disabled-border-color: var(--vg-primary-light);
}
[data-bs-theme=dark] .text-primary { color: var(--vg-primary-light) !important; }
[data-bs-theme=dark] .navbar:not(.vg-navbar) .vg-logo-mark { color: var(--vg-accent); }
[data-bs-theme=dark] .navbar:not(.vg-navbar) .vg-logo-strong { color: var(--vg-primary-light); }
[data-bs-theme=dark] .vg-on-light { color: #1d1d1d; }
.vg-color-mode .dropdown-item.active { color: var(--bs-dropdown-link-active-color); }

/* Paginarea implicită (fără clase Bootstrap) */
.pagination { gap: .25rem; flex-wrap: wrap; }
.pagination li a {
    display: block; padding: .35rem .7rem; border: 1px solid var(--bs-border-color);
    border-radius: .375rem; text-decoration: none; background: var(--bs-body-bg);
}
.pagination li.active a { background: var(--bs-primary); border-color: var(--bs-primary); color: #fff; }

/* Selector de stele (radio în ordine inversă: 5 → 1, ca hover-ul să coloreze spre stânga) */
.star-input { display: inline-flex; flex-direction: row-reverse; gap: .15rem; }
.star-input input { position: absolute; opacity: 0; pointer-events: none; }
.star-input label { color: var(--bs-secondary-bg); cursor: pointer; transition: color .1s; -webkit-text-stroke: 1px #c9a227; }
.star-input input:checked ~ label,
.star-input label:hover, .star-input label:hover ~ label { color: var(--vg-accent); }
.star-input input:focus-visible + label { outline: 2px solid var(--bs-primary); border-radius: 4px; }

/* Conținutul ghidurilor (HTML generat din Markdown) */
.kb-body { line-height: 1.65; font-size: 1.02rem; overflow-wrap: anywhere; }
.kb-body h2 { font-size: 1.35rem; margin: 1.6rem 0 .6rem; }
.kb-body h3 { font-size: 1.15rem; margin: 1.3rem 0 .5rem; }
.kb-body img { max-width: 100%; height: auto; border-radius: .5rem; }
.kb-body blockquote { border-left: 4px solid var(--vg-accent); background: var(--bs-tertiary-bg); padding: .6rem 1rem; border-radius: 0 .5rem .5rem 0; }
.kb-body table { width: 100%; margin: 1rem 0; border-collapse: collapse; font-size: .95rem; }
.kb-body th, .kb-body td { border: 1px solid var(--bs-border-color); padding: .4rem .6rem; }
.kb-body th { background: var(--bs-tertiary-bg); }
@media (max-width: 576px) { .kb-body table { display: block; overflow-x: auto; } }
.kb-body code { background: var(--bs-tertiary-bg); padding: .1rem .3rem; border-radius: .25rem; }
.kb-body pre { background: #1d1d1d; color: #f0f0f0; padding: 1rem; border-radius: .5rem; overflow-x: auto; }
.kb-body pre code { background: none; padding: 0; }

.table td, .table th { vertical-align: middle; }
.secret { font-family: var(--bs-font-monospace); }

/* ------------------------------------------------------------------ carduri de servicii (pagina publică) */
@property --svc-angle { syntax: '<angle>'; inherits: false; initial-value: 0deg; }
.card.svc-card {
    position: relative; border: 2px solid transparent; border-radius: 1rem; padding: 1.25rem;
    background:
        linear-gradient(var(--bs-body-bg), var(--bs-body-bg)) padding-box,
        conic-gradient(from var(--svc-angle), rgba(var(--vg-accent-rgb, 245, 163, 0), .38) 0deg, rgba(var(--vg-accent-rgb, 245, 163, 0), .38) 250deg,
            var(--vg-accent) 300deg, #fff4c8 320deg, var(--vg-accent) 335deg, rgba(var(--vg-accent-rgb, 245, 163, 0), .38) 360deg) border-box;
    box-shadow: 0 6px 18px rgba(16, 24, 40, .10), 0 1px 3px rgba(16, 24, 40, .08);
    transition: transform .25s ease, box-shadow .25s ease;
    animation: svc-spin 7s linear infinite;
    animation-delay: var(--svc-delay, 0s);
}
.card.svc-card:hover, .card.svc-card:focus-within {
    transform: translateY(-4px);
    box-shadow: 0 14px 32px rgba(16, 24, 40, .14), 0 0 0 4px rgba(var(--vg-accent-rgb, 245, 163, 0), .08);
    animation-duration: 2.2s;
}
@keyframes svc-spin { to { --svc-angle: 360deg; } }
.svc-icon {
    width: 3rem; height: 3rem; border-radius: .85rem; display: grid; place-items: center; flex: none; font-size: 1.45rem;
    color: color-mix(in srgb, var(--vg-accent-dark, #b86500) 70%, #000); background: rgba(var(--vg-accent-rgb, 245, 163, 0), .24);
    box-shadow: inset 0 0 0 1px rgba(var(--vg-accent-rgb, 245, 163, 0), .35);
    transition: background-color .25s ease, color .25s ease, transform .25s ease;
}
.svc-card:hover .svc-icon { background: var(--vg-accent); color: var(--vg-accent-text, #1d1d1d); transform: rotate(-6deg) scale(1.06); }
[data-bs-theme=dark] .card.svc-card { box-shadow: 0 6px 18px rgba(0, 0, 0, .35); }
[data-bs-theme=dark] .svc-icon { color: var(--vg-accent); }
/* Contrast mai bun în secțiunea de servicii: fundal ușor nuanțat (cardurile albe ies în evidență), titluri și texte mai închise. */
.svc-section { background: color-mix(in srgb, var(--vg-accent, #f5a300) 6%, var(--bs-tertiary-bg)); border-top: 1px solid var(--bs-border-color-translucent); border-bottom: 1px solid var(--bs-border-color-translucent); }
.svc-card h3 { font-weight: 700; color: var(--bs-emphasis-color); }
.svc-card .svc-desc, .svc-section .svc-note { color: color-mix(in srgb, var(--bs-body-color) 88%, transparent); }
.svc-section .svc-note a { font-weight: 600; }
/* Cele 4 carduri principale: mai mari, urcă peste hero, iconiță plină cu gradient, cifră și iconiță-filigran. */
.feat-wrap { position: relative; z-index: 2; margin-top: -3rem; }
.card.feat-card {
    padding: 1.9rem 1.6rem 1.75rem; border-radius: 1.25rem; overflow: hidden; min-height: 15.5rem;
    background:
        linear-gradient(165deg, rgba(var(--vg-accent-rgb, 245, 163, 0), .10) 0%, var(--bs-body-bg) 48%) padding-box,
        linear-gradient(var(--bs-body-bg), var(--bs-body-bg)) padding-box,
        conic-gradient(from var(--svc-angle), rgba(var(--vg-accent-rgb, 245, 163, 0), .18) 0deg, rgba(var(--vg-accent-rgb, 245, 163, 0), .18) 240deg,
            var(--vg-accent) 290deg, #fff4c8 315deg, var(--vg-accent) 335deg, rgba(var(--vg-accent-rgb, 245, 163, 0), .18) 360deg) border-box;
    box-shadow: 0 18px 40px rgba(16, 24, 40, .14), 0 4px 10px rgba(16, 24, 40, .06);
}
.card.feat-card::after {
    content: ''; position: absolute; left: 1.6rem; right: 1.6rem; bottom: 0; height: 4px; border-radius: 4px 4px 0 0;
    background: linear-gradient(90deg, var(--vg-accent), rgba(var(--vg-accent-rgb, 245, 163, 0), 0));
    transform: scaleX(.25); transform-origin: left; transition: transform .35s ease;
}
.card.feat-card:hover { transform: translateY(-8px); box-shadow: 0 26px 50px rgba(16, 24, 40, .2), 0 0 0 5px rgba(var(--vg-accent-rgb, 245, 163, 0), .1); }
.card.feat-card:hover::after { transform: scaleX(1); }
.feat-icon {
    width: 4.25rem; height: 4.25rem; border-radius: 1.1rem; display: grid; place-items: center; font-size: 2rem;
    color: var(--vg-accent-text, #1d1d1d);
    background: linear-gradient(135deg, var(--vg-accent) 0%, var(--vg-accent-dark, #b86500) 100%);
    box-shadow: 0 10px 22px rgba(var(--vg-accent-rgb, 245, 163, 0), .45), inset 0 1px 0 rgba(255, 255, 255, .35);
    transition: transform .3s ease;
}
.feat-card:hover .feat-icon { transform: rotate(-8deg) scale(1.08); }
.feat-num { font-size: 2.25rem; font-weight: 800; line-height: 1; color: rgba(var(--vg-accent-rgb, 245, 163, 0), .28); letter-spacing: -.02em; }
.feat-bg {
    position: absolute; right: -1.25rem; bottom: -1.75rem; font-size: 8.5rem; line-height: 1; pointer-events: none;
    color: rgba(var(--vg-accent-rgb, 245, 163, 0), .07); transform: rotate(-12deg); transition: transform .5s ease, color .5s ease;
}
.feat-card:hover .feat-bg { transform: rotate(0deg) scale(1.08); color: rgba(var(--vg-accent-rgb, 245, 163, 0), .12); }
.feat-card > :not(.feat-bg) { position: relative; }
[data-bs-theme=dark] .card.feat-card { box-shadow: 0 18px 40px rgba(0, 0, 0, .5); }
/* pe telefon cardurile nu mai urcă peste banda de sus: încep sub ea, cu spațiu */
@media (max-width: 575.98px) { .feat-wrap { margin-top: 1.5rem; } .card.feat-card { min-height: 0; } }
@media (prefers-reduced-motion: reduce) {
    .card.feat-card:hover, .feat-card:hover .feat-icon, .feat-card:hover .feat-bg { transform: none; }
    .card.svc-card { animation: none; transition: none; }
    .card.svc-card:hover { transform: none; }
}

/* ------------------------------------------------------------------ mărcile (pagina publică): plăci de aceeași mărime */
.brand-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 1rem; max-width: 1100px; margin: 0 auto; }
.brand-tile {
    height: 96px; padding: 1rem 1.25rem; border-radius: 1rem; display: flex; align-items: center; justify-content: center;
    background: #fff; border: 1px solid rgba(16, 24, 40, .08); box-shadow: 0 4px 12px rgba(16, 24, 40, .06);
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.brand-tile img { max-width: 100%; max-height: 56px; width: auto; height: auto; object-fit: contain; filter: grayscale(1); opacity: .75; transition: filter .25s ease, opacity .25s ease; }
.brand-tile:hover { transform: translateY(-3px); border-color: rgba(var(--vg-accent-rgb, 245, 163, 0), .5); box-shadow: 0 10px 22px rgba(16, 24, 40, .12); }
.brand-tile:hover img { filter: none; opacity: 1; }
.brand-word { font-weight: 800; font-size: 1.1rem; letter-spacing: .04em; text-transform: uppercase; color: #3c4655; text-align: center; line-height: 1.15; word-break: break-word; }
.brand-tile:hover .brand-word { color: #8a4c00; color: color-mix(in srgb, var(--vg-accent-dark, #b86500) 70%, #000); }
.brand-tile-sm { width: 140px; height: 64px; padding: .5rem .75rem; }
.brand-tile-sm img { max-height: 40px; filter: none; opacity: 1; }
/* logourile sunt făcute pentru fundal deschis: placa rămâne albă și în modul întunecat */
[data-bs-theme=dark] .brand-tile { border-color: rgba(255, 255, 255, .12); box-shadow: 0 4px 14px rgba(0, 0, 0, .4); }
@media (max-width: 575.98px) { .brand-grid { grid-template-columns: repeat(2, 1fr); } .brand-tile { height: 80px; } .brand-tile img { max-height: 44px; } }
@media (prefers-reduced-motion: reduce) { .brand-tile, .brand-tile:hover { transition: none; transform: none; } }

/* ------------------------------------------------------------------ pagina mărcii (public/brands) */
a.brand-tile-link { text-decoration: none; position: relative; }
.brand-count { position: absolute; left: 0; right: 0; bottom: .35rem; text-align: center; font-size: .72rem; color: #4b5563; opacity: 0; transition: opacity .2s ease; }
.brand-tile-link:hover .brand-count, .brand-tile-link:focus .brand-count { opacity: 1; }
.brand-hero { background: linear-gradient(135deg, var(--vg-hero-from, #0f2027) 0%, var(--vg-hero-to, #2c5364) 100%); color: #fff; }
.brand-hero a { color: #fff; }
.brand-tile-lg { width: 220px; height: 120px; padding: 1.25rem; }
.brand-tile-lg img { max-height: 76px; filter: none; opacity: 1; }
.brand-chip { display: inline-flex; align-items: center; gap: .35rem; padding: .3rem .75rem; border-radius: 2rem; font-size: .85rem; background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .2); color: #fff; text-decoration: none; }
a.brand-chip:hover { background: rgba(255, 255, 255, .22); }
/* Sub logo: chip-urile pe o singură linie (se derulează orizontal dacă nu încap) */
.brand-hero-left { width: max-content; max-width: 100%; }
.brand-chips { overflow-x: auto; scrollbar-width: none; }
.brand-chips::-webkit-scrollbar { display: none; }
.brand-chips .brand-chip { flex-shrink: 0; white-space: nowrap; }
@media (max-width: 575.98px) { .brand-hero-left { width: 100%; } }
.brand-spec { display: inline-flex; align-items: center; gap: .25rem; padding: .15rem .55rem; border-radius: .5rem; font-size: .78rem; background: rgba(var(--vg-accent-rgb, 245, 163, 0), .12); color: #8a4c00; color: color-mix(in srgb, var(--vg-accent-dark, #b86500) 70%, #000); }
[data-bs-theme=dark] .brand-spec { color: var(--vg-accent); }
/* Tenta mărcii: --brand / --brand-rgb puse în style= din culoarea logo-ului; fără ele, culoarea site-ului. */
.brand-page, .brand-hero { --bt: var(--brand, var(--vg-accent, #f5a300)); --bt-rgb: var(--brand-rgb, var(--vg-accent-rgb, 245, 163, 0)); }
.brand-hero[style*="--brand"] { background: linear-gradient(135deg, #0f2027 0%, rgba(var(--bt-rgb), .85) 140%); }
.brand-product { border-radius: 1rem; overflow: hidden; border: 1px solid rgba(var(--bt-rgb), .28); border-top: 4px solid var(--bt);
    background: linear-gradient(180deg, rgba(var(--bt-rgb), .07) 0%, var(--bs-body-bg) 55%); box-shadow: 0 4px 14px rgba(var(--bt-rgb), .12);
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease; }
.brand-product:hover { transform: translateY(-3px); border-color: rgba(var(--bt-rgb), .6); box-shadow: 0 14px 30px rgba(var(--bt-rgb), .25); }
.brand-page .brand-spec { background: rgba(var(--bt-rgb), .12); color: var(--bt); }
.brand-product-img { display: flex; align-items: center; justify-content: center; aspect-ratio: 4 / 3; background: #fff; border-bottom: 1px solid rgba(var(--bt-rgb), .18); }
.brand-product-img img { width: 100%; height: 100%; object-fit: contain; padding: .75rem; }
.brand-product-img > .bi { font-size: 3rem; color: rgba(var(--bt-rgb), .45); }
.brand-product-img-sm { aspect-ratio: 1; }
.brand-product-img-sm > .bi { font-size: 2rem; }
.brand-product-foot { border-top: 1px dashed rgba(var(--bt-rgb), .3); }
.brand-has { display: inline-flex; align-items: center; gap: .25rem; padding: .1rem .5rem; border-radius: 2rem; font-size: .72rem; background: var(--bs-tertiary-bg); color: var(--bs-secondary-color); }
.brand-has-installed { background: rgba(25, 135, 84, .12); color: #146c43; font-weight: 600; }
[data-bs-theme=dark] .brand-has-installed { color: #75b798; }
.brand-more { color: var(--bt); font-weight: 600; }
.brand-product:hover .brand-more .bi { transform: translateX(3px); }
.brand-more .bi { display: inline-block; transition: transform .2s ease; }
[data-bs-theme=dark] .brand-product { background: linear-gradient(180deg, rgba(var(--bt-rgb), .14) 0%, var(--bs-body-bg) 60%); }
[data-bs-theme=dark] .brand-page .brand-spec, [data-bs-theme=dark] .brand-more { filter: brightness(1.35); }
/* pagina produsului */
.product-head { background: linear-gradient(180deg, rgba(var(--bt-rgb), .1) 0%, transparent 100%); }
.product-main { display: flex; align-items: center; justify-content: center; aspect-ratio: 4 / 3; background: #fff; border-radius: 1rem; border: 1px solid rgba(var(--bt-rgb), .3); box-shadow: 0 8px 24px rgba(var(--bt-rgb), .15); overflow: hidden; }
.product-main img { width: 100%; height: 100%; object-fit: contain; padding: 1.25rem; }
.product-main > .bi { font-size: 6rem; color: rgba(var(--bt-rgb), .4); }
.product-thumbs { display: grid; grid-template-columns: repeat(5, 1fr); gap: .5rem; margin-top: .6rem; }
.product-thumb { aspect-ratio: 1; padding: 0; background: #fff; border: 2px solid var(--bs-border-color); border-radius: .6rem; overflow: hidden; cursor: pointer; }
.product-thumb img { width: 100%; height: 100%; object-fit: contain; padding: .25rem; }
.product-thumb.is-active, .product-thumb:hover { border-color: var(--bt); }
.product-brand-logo { max-height: 34px; max-width: 120px; object-fit: contain; }
.product-cat { background: rgba(var(--bt-rgb), .14); color: var(--bt); font-weight: 600; }
.product-installed { display: flex; align-items: center; gap: .75rem; padding: .7rem 1rem; border-radius: .8rem; background: rgba(25, 135, 84, .1); border: 1px solid rgba(25, 135, 84, .25); }
.product-installed > .bi { font-size: 1.8rem; color: #198754; }
.product-related { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: .75rem; }
.product-related-item { display: flex; flex-direction: column; }
.brand-doc { display: flex; align-items: center; gap: .6rem; padding: .45rem .65rem; border-radius: .6rem; text-decoration: none; color: inherit; background: var(--bs-tertiary-bg); border: 1px solid transparent; transition: border-color .2s ease, background-color .2s ease; }
.brand-doc > .bi:first-child { font-size: 1.15rem; color: var(--vg-accent-dark, #b86500); }
.brand-doc span { display: flex; flex-direction: column; min-width: 0; line-height: 1.25; }
.brand-doc strong { font-size: .85rem; font-weight: 600; overflow: hidden; text-overflow: ellipsis; }
.brand-doc em { font-style: normal; font-weight: 400; color: var(--bs-secondary-color); }
.brand-doc small { font-size: .72rem; color: var(--bs-secondary-color); }
.brand-doc:hover { border-color: rgba(var(--vg-accent-rgb, 245, 163, 0), .5); background: rgba(var(--vg-accent-rgb, 245, 163, 0), .08); }
.brand-doc.is-locked { opacity: .75; }
.brand-doc.is-locked > .bi:first-child { color: var(--bs-secondary-color); }
.brand-doc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: .5rem; }
.brand-cat { scroll-margin-top: 5rem; }
/* filtrele mărcii (tip, branșament, compatibilitate): liste derulante; cea cu un filtru ales ia culoarea mărcii */
.brand-filters { border-color: rgba(var(--bt-rgb), .25); }
.brand-filter-select { min-height: 44px; }
.brand-filter-select:focus { border-color: var(--bt); box-shadow: 0 0 0 .2rem rgba(var(--bt-rgb), .25); }
.brand-filter-select.is-set { border-color: var(--bt); background-color: rgba(var(--bt-rgb), .07); font-weight: 600; }
@media (max-width: 575.98px) { .brand-tile-lg { width: 100%; } }
@media (prefers-reduced-motion: reduce) { .brand-product, .brand-product:hover, .brand-more .bi { transition: none; transform: none; } }

/* ------------------------------------------------------------------ pagina 404: ștecherul scos din priză (errors/not_found.php) */
.e404 {
    /* până la subsol, fără banda albă a marginii de deasupra lui (mt-5 din layout) */
    position: relative; overflow: hidden; color: #fff; min-height: calc(100vh - 13rem); display: flex; align-items: center;
    margin-bottom: -3rem; padding-bottom: 3rem;
    background:
        radial-gradient(ellipse at 22% 18%, rgba(var(--vg-accent-rgb, 245, 163, 0), .14), transparent 55%),
        linear-gradient(135deg, var(--vg-hero-from, #0f2027) 0%, var(--vg-hero-to, #2c5364) 100%);
}
.e404 > .container { width: 100%; }
.e404 a:not(.btn) { color: #fff; opacity: .8; text-decoration: none; }
.e404 a:not(.btn):hover { opacity: 1; text-decoration: underline; }
.e404-code {
    font-size: clamp(5rem, 14vw, 9.5rem); font-weight: 900; line-height: .95; letter-spacing: -.04em;
    color: rgba(255, 255, 255, .16); -webkit-text-stroke: 2px rgba(var(--vg-accent-rgb, 245, 163, 0), .55);
    animation: e4-flicker 5s linear infinite;
}
.e404-scene { width: 100%; height: auto; display: block; overflow: visible; }
.e404-scene .e4-cable { fill: none; stroke: #16181c; stroke-width: 9; stroke-linecap: round; }
.e404-scene .e4-sockled { fill: #ff5a4f; filter: drop-shadow(0 0 3px #ff5a4f); animation: e4-blink 1.6s steps(2) infinite; }
.e404-scene .e4-glass { fill: rgba(255, 255, 255, .07); stroke: rgba(255, 255, 255, .35); stroke-width: 1.5; }
.e404-scene .e4-fil { stroke: rgba(255, 255, 255, .4); }
.e404-scene .e4-shine { stroke: rgba(255, 255, 255, .22); }
.e404-scene .e4-bulbglow { opacity: 0; transition: opacity .6s ease; }
.e404-scene .e4-bulb { transform-box: view-box; transform-origin: 300px 0; animation: e4-sway 4.5s ease-in-out infinite alternate; }
.e404-scene .e4-sparks path { opacity: 0; animation: e4-spark 2.8s linear infinite; }
.e404-scene .e4-sparks .sp2 { animation-delay: .9s; }
.e404-scene .e4-sparks .sp3 { animation-delay: 1.7s; }
.e404.is-connecting .e4-sparks { display: none; }
/* conectat: becul se aprinde, 404 se luminează, ledul prizei devine verde */
.e404.is-on .e4-bulbglow { opacity: 1; }
.e404.is-on .e4-glass { fill: #ffe9a8; stroke: #fff3c4; filter: drop-shadow(0 0 14px #ffc94d); }
.e404.is-on .e4-fil { stroke: #b86500; }
.e404.is-on .e4-sockled { fill: #3fe68a; filter: drop-shadow(0 0 4px #3fe68a); animation: none; }
.e404.is-on .e404-code { animation: none; color: var(--vg-accent); -webkit-text-stroke-color: transparent; text-shadow: 0 0 24px rgba(var(--vg-accent-rgb, 245, 163, 0), .8), 0 0 60px rgba(var(--vg-accent-rgb, 245, 163, 0), .5); transition: color .3s, text-shadow .3s; }
@keyframes e4-flicker { 0%, 18%, 22%, 52%, 56%, 100% { opacity: 1; } 20% { opacity: .35; } 54% { opacity: .5; } 76% { opacity: .85; } 78% { opacity: .3; } 80% { opacity: .9; } }
@keyframes e4-blink { 50% { opacity: .2; } }
@keyframes e4-sway { from { transform: rotate(-3deg); } to { transform: rotate(3deg); } }
@keyframes e4-spark { 0%, 70%, 100% { opacity: 0; } 72% { opacity: 1; } 76% { opacity: 0; } 79% { opacity: .9; } 83% { opacity: 0; } }
@media (prefers-reduced-motion: reduce) {
    .e404-code, .e404-scene * { animation: none !important; }
}

/* ------------------------------------------------------------------ pagina de cont nou (auth/register + auth/_register_art) */
.reg-card { border: 0; box-shadow: 0 18px 50px rgba(0, 0, 0, .12); }
.reg-art { background: linear-gradient(160deg, var(--vg-hero-from, #0f2027), var(--vg-hero-to, #2c5364)); color: #fff; }
.reg-kicker { font: 700 .72rem/1.2 ui-monospace, Consolas, monospace; letter-spacing: .18em; text-transform: uppercase; color: var(--vg-accent); margin-bottom: .4rem; }
.reg-scene { width: 100%; max-height: 460px; display: block; margin: 0 auto; }
.reg-perks li { display: flex; gap: .55rem; align-items: center; padding: .28rem 0; opacity: .9; }
.reg-perks i { color: var(--vg-accent); }
@media (max-width: 991.98px) { .reg-scene { max-height: 240px; } .reg-perks { display: none; } }

.reg-scene text { font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; }
.reg-scene #reg-say { font-size: 10.5px; font-weight: 600; fill: #2a2e35; }
.reg-scene .reg-label { font-size: 7.5px; fill: #8a94a3; }
.reg-scene .reg-ink { stroke: var(--vg-primary); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1 1.2; stroke-dashoffset: 1; transition: stroke-dashoffset .45s ease; }
.reg-scene .reg-check { stroke: var(--vg-primary); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1 1.2; stroke-dashoffset: 1; transition: stroke-dashoffset .35s ease; }
.reg-scene.is-checked .reg-check { stroke-dashoffset: 0; }
.reg-scene .reg-stamp { opacity: 0; transform-box: fill-box; transform-origin: center; transition: opacity .3s ease; }
.reg-scene .reg-stamp text { font-size: 10px; font-weight: 800; fill: var(--vg-primary); }
.reg-scene.is-done .reg-stamp { opacity: .9; animation: reg-stamp .45s cubic-bezier(.2, 1.6, .4, 1) both; }
@keyframes reg-stamp { from { scale: 1.8; opacity: 0; } to { scale: 1; opacity: .9; } }
.reg-scene .reg-bubble { animation: reg-float 4s ease-in-out infinite; }
@keyframes reg-float { 50% { transform: translateY(-3px); } }
.reg-scene .reg-rays { transform-origin: 58px 52px; animation: reg-spin 30s linear infinite; }
@keyframes reg-spin { to { transform: rotate(360deg); } }
.reg-scene .reg-sparks circle { animation: reg-twinkle 3s ease-in-out infinite; }
.reg-scene .reg-sparks circle:nth-child(2) { animation-delay: .8s; }
.reg-scene .reg-sparks circle:nth-child(3) { animation-delay: 1.6s; }
.reg-scene .reg-sparks circle:nth-child(4) { animation-delay: 2.2s; }
@keyframes reg-twinkle { 50% { opacity: .2; } }
/* Volty clipește, iar reactorul din piept pulsează; când e gata, ochii și reactorul se aprind */
.reg-eyes { transform-box: fill-box; transform-origin: center; animation: reg-blink 5s infinite; }
@keyframes reg-blink { 0%, 94%, 100% { transform: scaleY(1); } 97% { transform: scaleY(.15); } }
.reg-core { animation: reg-core 2.4s ease-in-out infinite; }
@keyframes reg-core { 50% { opacity: .55; } }
.reg-eyes path, .reg-core { transition: fill .4s ease; }
.reg-scene.is-done .reg-eyes path { fill: #e6fdff; }
.reg-scene.is-done .reg-core { fill: #fff; }
/* „Ai uitat parola?”: fasciculul lanternei se plimbă; când e-mailul e completat se oprește pe cheie, care strălucește. */
.reg-scene .reg-beam { transform-box: view-box; transform-origin: 104px 0; animation: reg-sweep 3.2s ease-in-out infinite; }
@keyframes reg-sweep { 0%, 100% { transform: rotate(-12deg); } 50% { transform: rotate(12deg); } }
.reg-scene.is-done .reg-beam { animation: none; transform: rotate(-3deg); }
.reg-scene .reg-glint { opacity: 0; transform-box: fill-box; transform-origin: center; }
.reg-scene.is-done .reg-glint { animation: reg-glint 1.4s ease-in-out infinite; }
@keyframes reg-glint { 0%, 100% { opacity: 0; transform: scale(.4); } 50% { opacity: 1; transform: scale(1.2) rotate(45deg); } }
/* Confirmarea prin SMS: plicul de pe ecranul telefonului pulsează; textul de pe ecran. */
.reg-scene .reg-sms { animation: reg-core 1.6s ease-in-out infinite; }
.reg-scene .reg-phone { font-size: 4.6px; fill: #9cc2f5; font-weight: 600; }
.reg-scene .reg-phone-code { font: 700 6.4px ui-monospace, Consolas, monospace; fill: #fff; letter-spacing: .4px; }
.reg-scene.is-done .reg-phone-code { fill: #8dffb0; }
/* Pagina 404: Volty se scarpină în cască; când revine curentul, se luminează. */
.e404-volty .reg-scratch { animation: reg-scratch .7s ease-in-out infinite alternate; }
@keyframes reg-scratch { from { transform: rotate(-4deg); } to { transform: rotate(5deg); } }
.e404.is-on .e404-volty .reg-scratch { animation: none; }
.e404.is-on .e404-volty .reg-eyes path { fill: #fff; }
.e404.is-on .e404-volty .reg-core { fill: #fff; }
@media (prefers-reduced-motion: reduce) { .reg-scene *, .e404-volty * { animation: none !important; transition: none !important; } }

/* ------------------------------------------------------------------ bara publică pe telefon: cont + meniu pliabil, ținte mari la atingere */
.vg-tap { min-height: 44px; display: inline-flex; align-items: center; gap: .35rem; }
.vg-pubnav .navbar-toggler, .navbar-toggler.vg-tap { border: 1px solid var(--bs-border-color); padding: .25rem .6rem; }
@media (max-width: 767.98px) {
    .vg-topline .navbar-brand { font-size: 1.15rem; margin-right: 0; }
    .vg-pubnav .navbar-nav { padding: .5rem 0 .75rem; }
    .vg-pubnav .nav-link { display: flex; align-items: center; gap: .6rem; min-height: 48px; font-size: 1.05rem; border-bottom: 1px solid var(--bs-border-color-translucent); }
    .vg-pubnav .nav-link .bi { width: 1.4rem; text-align: center; color: var(--vg-accent-dark, var(--vg-accent)); }
/* Căutarea din meniul de pe telefon: același rând ca linkurile, cu panoul sub el */
@media (max-width: 767.98px) {
    .vg-pubsearch { width: 100%; }
    .vg-pubsearch #pub-search-btn { width: 100%; display: flex; align-items: center; gap: .6rem; min-height: 48px; padding: .5rem 0 !important; font-size: 1.05rem; border: 0; border-bottom: 1px solid var(--bs-border-color-translucent); border-radius: 0; color: inherit; }
    .vg-pubmode-label { display: flex; align-items: center; gap: .6rem; font-size: 1.05rem; }
    .vg-pubmode-label .bi { width: 1.4rem; text-align: center; color: var(--vg-accent-dark, var(--vg-accent)); }
    .vg-pubnav-mode { padding: .5rem 0; justify-content: space-between; }
    .vg-pubnav-mode > .vg-color-mode { margin-left: auto; position: static; }
    .vg-pubnav-mode { position: relative; flex-wrap: wrap; }
    .vg-pubnav-mode .dropdown-menu { position: absolute !important; inset: auto 0 auto 0 !important; left: 0 !important; right: 0 !important; width: 100% !important; transform: none !important; margin-top: .25rem; }
    .vg-pubsearch #pub-search-btn .bi { width: 1.4rem; text-align: center; color: var(--vg-accent-dark, var(--vg-accent)); }
    .vg-pubsearch #pub-search-panel { position: static !important; width: 100% !important; margin: .5rem 0 !important; }
}
    .vg-pubnav-mode { justify-content: space-between; min-height: 52px; border-bottom: 1px solid var(--bs-border-color-translucent); }
    .vg-pubnav-account { padding-top: .75rem; }
    .vg-pubnav-account .btn { min-height: 48px; display: flex; align-items: center; justify-content: center; gap: .4rem; }

    .hero-has-scene { padding-bottom: 5.5rem !important; }
    .hero-has-scene > .container { padding-top: .5rem !important; }
    .hero-title-sm { line-height: 1.2; }
    .hero-cta .btn { flex: 1 1 100%; }
}
@media (max-width: 767.98px) { .vg-pubnav-account .btn-sm { font-size: 1rem; } }

/* Portal pe telefon / aplicația clienților: bara de navigare de jos */
.vg-bottom-nav { position: fixed; left: 0; right: 0; bottom: 0; z-index: 1030; display: flex; background: var(--bs-body-bg); border-top: 1px solid var(--bs-border-color); padding-bottom: env(safe-area-inset-bottom); box-shadow: 0 -2px 10px rgba(0, 0, 0, .06); }
.vg-bottom-nav .vg-tab { flex: 1 1 0; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 6px 2px 7px; font-size: .7rem; line-height: 1.1; color: var(--bs-secondary-color); text-decoration: none; background: none; border: 0; min-height: 56px; justify-content: center; }
.vg-bottom-nav .vg-tab .bi { font-size: 1.3rem; }
.vg-bottom-nav .vg-tab.active { color: var(--bs-primary); font-weight: 600; }
.vg-bottom-nav .vg-tab-badge { position: absolute; top: -4px; right: -10px; min-width: 17px; height: 17px; padding: 0 4px; border-radius: 9px; background: var(--bs-danger); color: #fff; font-size: .65rem; line-height: 17px; text-align: center; font-weight: 600; }
@media (max-width: 1199.98px) { body.vg-portal { padding-bottom: calc(64px + env(safe-area-inset-bottom)); } }
@media print { .vg-bottom-nav { display: none !important; } }
.vg-system-card { transition: border-color .15s, box-shadow .15s; }
.vg-system-card:hover, .vg-system-card:focus { box-shadow: 0 .25rem .75rem rgba(0, 0, 0, .08); border-color: var(--bs-primary); }
@media (max-width: 1199.98px) {
    body.vg-portal .vgc-btn { bottom: calc(76px + env(safe-area-inset-bottom)); }
    body.vg-portal .vgc-panel { bottom: calc(146px + env(safe-area-inset-bottom)); height: min(560px, calc(100vh - 170px)); }
    body.vg-portal .vg-cookie-notice { bottom: calc(76px + env(safe-area-inset-bottom)); }
}

/* Modul aplicație (APK / ecranul principal; clasa vg-app pe <html>, din shared/head): interfață simplificată */
html:not(.vg-app) .vg-app-only { display: none !important; }
.vg-app .vg-app-hide { display: none !important; }
/* Secțiunile deschise din butoane (#echipamente, #compatibilitate): ascunse până la atingere */
.vg-app .vg-app-section:not(:target) { display: none !important; }
.vg-app .vg-app-section:target { scroll-margin-top: 70px; }
.vg-app .vg-app-tiles .card { display: flex; flex-direction: column; align-items: center; justify-content: center; border-radius: 14px; transition: transform .1s; }
.vg-app .vg-app-tiles .card:active { transform: scale(.96); }
.vg-app main.container { padding-top: 1rem !important; }
.vg-app body.vg-public .vgc-btn { display: none !important; }
.vg-app .navbar-brand img, .vg-app .navbar-brand svg { max-height: 30px; }
/* Prima pagină: cardul „Toate mărcile” (al 6-lea, la fel ca mărcile) */
.brand-tile-more .brand-word { font-size: .95rem; color: #8a4c00; color: color-mix(in srgb, var(--vg-accent-dark, #b86500) 70%, #000); }
.brand-tile-more .small { color: #4b5563 !important; }

/* Bara de sus din panou pe telefon: iconițele trec pe rândul următor în loc să lărgească pagina. */
html { overflow-x: clip; }
@media (max-width: 575.98px) {
    .vg-navbar .vg-topicons { flex-basis: 100%; justify-content: space-between !important; column-gap: .9rem !important; margin-top: .35rem; }
    .vg-navbar .vg-topicons .fs-5 { font-size: 1.15rem !important; }
}

/* ------------------------------------------------------------------ biblioteca de documente (public/kb/library) */
.vg-lib-hero { padding: 1.5rem; border-radius: 1rem; background: var(--bs-body-bg); border: 1px solid var(--bs-border-color); box-shadow: 0 4px 14px rgba(0, 0, 0, .04); }
.vg-lib-search .form-control:focus { box-shadow: 0 0 0 .25rem rgba(var(--vg-accent-rgb, 245, 163, 0), .25); }
.vg-lib-chip { display: inline-flex; align-items: center; gap: .35rem; min-height: 44px; padding: .4rem .9rem; border-radius: 2rem; border: 1px solid var(--bs-border-color); background: var(--bs-body-bg); color: var(--bs-body-color); font-size: .9rem; }
.vg-lib-chip:hover { border-color: var(--vg-accent, #f5a300); }
.vg-lib-chip[aria-pressed="true"] { background: rgba(var(--vg-accent-rgb, 245, 163, 0), .15); border-color: var(--vg-accent, #f5a300); font-weight: 600; }
.vg-lib-chip:focus-visible, .vg-lib-brand:focus-visible, .vg-lib-summary:focus-visible { outline: 3px solid var(--vg-accent, #f5a300); outline-offset: 2px; }
.vg-lib-brands { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: .6rem; }
.vg-lib-brand { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .35rem; min-height: 88px; padding: .6rem; border-radius: .75rem; border: 1px solid var(--bs-border-color); background: var(--bs-body-bg); color: var(--bs-body-color); text-decoration: none; text-align: center; font-size: .85rem; }
.vg-lib-brand:hover { border-color: var(--vg-accent, #f5a300); box-shadow: 0 4px 12px rgba(0, 0, 0, .06); }
.vg-lib-brand img { max-height: 30px; max-width: 110px; object-fit: contain; }
.vg-lib-brand .bi { font-size: 1.4rem; color: var(--bs-secondary-color); }
.vg-lib-group { overflow: hidden; }
.vg-lib-summary { display: flex; align-items: center; gap: 1rem; padding: 1rem 1.25rem; cursor: pointer; list-style: none; }
.vg-lib-summary::-webkit-details-marker { display: none; }
.vg-lib-summary:hover { background: var(--bs-tertiary-bg); }
.vg-lib-logo { display: flex; align-items: center; justify-content: center; width: 72px; height: 44px; flex-shrink: 0; border-radius: .5rem; background: #fff; border: 1px solid var(--bs-border-color); }
.vg-lib-logo img { max-width: 62px; max-height: 32px; object-fit: contain; }
.vg-lib-logo .bi { font-size: 1.3rem; color: #6b7280; }
.vg-lib-chev { transition: transform .2s ease; color: var(--bs-secondary-color); }
.vg-lib-group[open] .vg-lib-chev { transform: rotate(180deg); }
.vg-lib-group[open] > .vg-lib-summary { border-bottom: 1px solid var(--bs-border-color); }
.vg-lib-doc { display: flex; align-items: center; gap: .9rem; padding: .85rem 1.25rem; }
.vg-lib-icon { display: flex; align-items: center; justify-content: center; width: 42px; height: 42px; flex-shrink: 0; border-radius: .6rem; font-size: 1.2rem; background: var(--bs-tertiary-bg); color: var(--bs-secondary-color); }
.vg-lib-t-manual { background: rgba(13, 110, 253, .1); color: #0a58ca; }
.vg-lib-t-datasheet { background: rgba(var(--vg-accent-rgb, 245, 163, 0), .14); color: #8a4c00; color: color-mix(in srgb, var(--vg-accent-dark, #b86500) 70%, #000); }
.vg-lib-t-certificate { background: rgba(25, 135, 84, .12); color: #146c43; }
.vg-lib-t-warranty { background: rgba(111, 66, 193, .12); color: #59359a; }
[data-bs-theme=dark] .vg-lib-t-manual { color: #6ea8fe; }
[data-bs-theme=dark] .vg-lib-t-datasheet { color: var(--vg-accent); }
[data-bs-theme=dark] .vg-lib-t-certificate { color: #75b798; }
[data-bs-theme=dark] .vg-lib-t-warranty { color: #a98eda; }
.vg-lib-model { display: inline-block; margin: 0 .25rem .2rem 0; padding: .05rem .45rem; border-radius: .4rem; background: var(--bs-tertiary-bg); font-size: .78rem; }
.vg-lib-actions { display: flex; gap: .4rem; flex-shrink: 0; }
.vg-lib-actions .btn { min-height: 44px; display: inline-flex; align-items: center; gap: .3rem; }
.min-w-0 { min-width: 0; }
@media (max-width: 575.98px) {
    .vg-lib-hero { padding: 1rem; }
    .vg-lib-doc { flex-wrap: wrap; padding: .85rem 1rem; }
    .vg-lib-actions { width: 100%; }
    .vg-lib-actions .btn-primary { flex-grow: 1; justify-content: center; }
    .vg-lib-brands { grid-template-columns: repeat(2, 1fr); }
    .vg-lib-summary { padding: .85rem 1rem; gap: .75rem; }
    .vg-lib-logo { width: 56px; }
}
@media (prefers-reduced-motion: reduce) { .vg-lib-chev { transition: none; } }

/* Locul iconițelor e rezervat cât timp se încarcă fișierul lor (pagina nu „sare”). */
.bi { display: inline-block; min-width: 1em; }
