﻿:root {
    color-scheme: light;
    --brand-navy: #001f36;
    --brand-blue-deep: #075a81;
    --brand-blue: #009fe3;
    --brand-soft: #d6e6f6;
    --brand-cream: #f7e9cf;
    --brand-primary: #b21818;
    --brand-primary-hover: #e12826;
    --brand-primary-pressed: #8f1414;
    --bg: #eef3fa;
    --surface: #ffffff;
    --surface-alt: #f3f7ff;
    --text: #001f36;
    --text-muted: rgba(0, 31, 54, .78);
    --border-subtle: rgba(2, 6, 23, .10);
    --border-strong: rgba(2, 6, 23, .18);
    --shadow-sm: 0 10px 30px rgba(2, 6, 23, .08);
    --shadow-md: 0 18px 60px rgba(2, 6, 23, .12);
    --radius-sm: 14px;
    --radius-md: 18px;
    --radius-lg: 26px;
    /* compat pentru componentele “standard” */
    --text-primary: var(--text);
    --text-secondary: color-mix(in oklab, var(--text) 78%, #ffffff 22%);
    --eg-brand-expert-color: var(--text-primary);
    --eg-brand-go-color: var(--brand-primary);
}

html[data-theme="dark"] {
    color-scheme: dark;
    --bg: #071622;
    --surface: #0c1d2b;
    --surface-alt: #0a1824;
    --text: rgba(255, 255, 255, .92);
    --text-muted: rgba(255, 255, 255, .70);
    --border-subtle: rgba(255, 255, 255, .12);
    --border-strong: rgba(255, 255, 255, .18);
    --shadow-sm: 0 16px 50px rgba(0, 0, 0, .32);
    --shadow-md: 0 22px 70px rgba(0, 0, 0, .42);
    --text-primary: var(--text);
    --text-secondary: color-mix(in oklab, var(--text) 82%, #000000 18%);
    /* pe dark, “Expert” devine crem */
    --eg-brand-expert-color: var(--brand-cream);
}

/* ===== Base ===== */
html,
body {
    height: 100%;
}

    body.eg-public {
        background: radial-gradient(900px 450px at 10% -10%, rgba(0, 159, 227, .22), transparent 60%), radial-gradient(700px 380px at 90% 0%, rgba(7, 90, 129, .18), transparent 55%), var(--bg);
        color: var(--text);
    }

/* ===== Skip link ===== */
.eg-skip-link {
    position: absolute;
    left: -999px;
    top: 10px;
    z-index: 2000;
    padding: 10px 14px;
    border-radius: 12px;
    background: var(--surface);
    color: var(--text);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-subtle);
}

    .eg-skip-link:focus {
        left: 10px;
    }

/* ===== Sticky header wrapper ===== */
.eg-public-header {
    position: sticky;
    top: 0;
    z-index: 1030;
}

.eg-public-main {
    padding: 0 0 0 0;
}

/* ===== BRAND (standard, robust) ===== */
.eg-brand {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    text-decoration: none;
    color: inherit;
    font-weight: 800;
}

    .eg-brand:hover,
    .eg-brand:focus {
        color: inherit;
        text-decoration: none !important;
    }

    .eg-brand picture {
        display: block;
        line-height: 0;
    }

.eg-brand-mark {
    display: block;
    flex: 0 0 auto;
    border-radius: 12px;
}

/* wordmark */
.eg-brand-wordmark-wrap {
    display: block;
    line-height: 0;
    margin-left: -12px;
}

.eg-brand-wordmark {
    display: block;
    height: 18px;
    width: auto;
}

.navbar-brand.eg-brand--top .eg-brand-wordmark {
    height: 18px;
}

.navbar-brand.eg-brand--top .eg-brand-wordmark-wrap {
    margin-left: -12px;
}

.eg-brand--footer .eg-brand-wordmark {
    height: 26px;
}

.eg-brand--footer .eg-brand-mark {
    border-radius: 14px;
}

/* dacă folosești varianta header */
.eg-brand--header .eg-brand-wordmark {
    height: 15px;
}

.eg-brand--header .eg-brand-wordmark-wrap {
    margin-left: -9px;
}

@media (max-width: 420px) {
    .eg-brand--header .eg-brand-wordmark {
        height: 14px;
    }
}

/* ===== TOP NAV ===== */
.eg-top.eg-public-nav {
    background: linear-gradient(180deg, rgba(0, 31, 54, 1) 0%, rgba(0, 31, 54, .96) 100%);
    border-bottom: 1px solid rgba(255, 255, 255, .08);
    box-shadow: 0 1px 0 rgba(255, 255, 255, .06);
    transition: box-shadow .2s ease, backdrop-filter .2s ease, background .2s ease;
}

    .eg-top.eg-public-nav.is-scrolled {
        box-shadow: 0 16px 40px rgba(0, 0, 0, .25);
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
    }

@media (hover: none) and (pointer: coarse) {
    .eg-top.eg-public-nav.is-scrolled {
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
    }
}

    .eg-top.eg-public-nav .nav-link {
        color: rgba(255, 255, 255, .88) !important;
        font-weight: 650;
    }

        .eg-top.eg-public-nav .nav-link:hover {
            color: #fff !important;
        }

/* ===== Navbar public constant dark ===== */
.eg-top {
    background: var(--brand-navy);
    box-shadow: 0 1px 0 rgba(255, 255, 255, .06);
}

    .eg-top .navbar-toggler {
        border-color: rgba(255, 255, 255, .20);
    }

    .eg-top .navbar-toggler-icon {
        background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(255,255,255,.85)' stroke-linecap='round' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
        width: 1.35em;
    }

    .eg-top .nav-link {
        color: rgba(255, 255, 255, .88) !important;
        font-weight: 600;
    }

        .eg-top .nav-link:hover {
            color: #fff !important;
        }

        .eg-top .nav-link.active {
            color: #fff !important;
            position: relative;
        }

            .eg-top .nav-link.active::after {
                content: "";
                position: absolute;
                left: 0;
                right: 0;
                bottom: -11px;
                height: 3px;
                background: var(--brand-primary);
                border-radius: 2px;
            }

/* Collapse panel mobile */
@media (max-width: 991.98px) {
    .eg-top .navbar-collapse {
        background: color-mix(in oklab, var(--brand-navy) 92%, #000 8%);
        border-top: 1px solid rgba(255, 255, 255, .08);
        margin: .5rem -1rem 0;
        padding: .5rem 1rem .75rem;
        border-bottom-left-radius: 16px;
        border-bottom-right-radius: 16px;
    }

    .eg-top .nav-link {
        padding: .75rem .6rem;
        border-radius: 12px;
    }

        .eg-top .nav-link.active {
            background: rgba(178, 24, 24, .16);
        }

            .eg-top .nav-link.active::after {
                display: none;
            }
}

/* ===== Header actions ===== */
.eg-public-nav-actions {
    gap: .5rem;
}

    .eg-public-nav-actions .icon-btn {
        width: 40px;
        height: 40px;
        display: inline-grid;
        place-items: center;
        border-radius: 12px;
        border: 1px solid rgba(255,255,255,.16);
        background: rgba(255,255,255,.06);
        color: rgba(255,255,255,.92);
    }

        .eg-public-nav-actions .icon-btn:hover {
            background: rgba(255,255,255,.10);
            color: #fff;
        }

/* CTA base */
.eg-nav-cta {
    border-radius: 12px !important;
    font-weight: 650 !important;
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    min-height: 40px;
    padding: .42rem .65rem;
}

/* Search CTA */
.eg-nav-cta-search {
    background: rgba(255,255,255,.06) !important;
    border: 1px solid rgba(255,255,255,.16) !important;
    color: rgba(255,255,255,.92) !important;
}

    .eg-nav-cta-search:hover {
        background: rgba(255,255,255,.10) !important;
        color: #fff !important;
    }

/* Login: alb */
.eg-nav-login {
    background: rgba(255,255,255,.92) !important;
    border: 1px solid rgba(255,255,255,.72) !important;
    color: var(--brand-navy) !important;
}

    .eg-nav-login:hover {
        background: #fff !important;
        border-color: #fff !important;
        color: #001f36 !important;
    }

/* Register: roșu */
.eg-nav-register {
    color: #fff !important;
    background: var(--brand-primary) !important;
    border: 1px solid var(--brand-primary) !important;
}

    .eg-nav-register:hover {
        background: var(--brand-primary-hover) !important;
        border-color: var(--brand-primary-hover) !important;
    }

/* App (autentificat): translucid */
.eg-nav-app {
    background: rgba(255,255,255,.06) !important;
    border: 1px solid rgba(255,255,255,.22) !important;
    color: rgba(255,255,255,.92) !important;
}

    .eg-nav-app:hover {
        background: rgba(255,255,255,.10) !important;
        color: #fff !important;
    }

/* Mobile: search icon-only */
@media (max-width: 575.98px) {
    .eg-nav-cta-search {
        width: 40px;
        height: 40px;
        padding: 0 !important;
        justify-content: center;
    }
}

/* ===== FOOTER ===== */
.eg-footer {
    background: linear-gradient(180deg, rgba(0, 31, 54, 1) 0%, rgba(0, 23, 41, 1) 100%) !important;
    border-top: 1px solid rgba(255, 255, 255, .1) !important;
}

.eg-footer-title {
    font-size: .82rem;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: rgba(255, 255, 255, .62);
    font-weight: 750;
    margin-bottom: .5rem;
}

.eg-footer-links a,
.eg-footer-cookie.btn-link {
    color: rgba(255, 255, 255, .82);
    text-decoration: none;
    font-weight: 650;
}

    .eg-footer-links a:hover,
    .eg-footer-cookie.btn-link:hover {
        color: #fff;
        text-decoration: underline;
    }

.eg-footer-contact .eg-footer-contact-item {
    display: flex;
    align-items: center;
    gap: 10px;
}

.eg-footer-contact .eg-footer-contact-text {
    color: rgba(255, 255, 255, .78);
}

.eg-footer-contact-link {
    color: rgba(255, 255, 255, .85);
    text-decoration: none;
    font-weight: 650;
}

    .eg-footer-contact-link:hover {
        color: #fff;
        text-decoration: underline;
    }

.eg-social-btn {
    width: 40px;
    height: 40px;
    border-radius: 14px;
    display: inline-grid;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, .14);
    background: rgba(255, 255, 255, .08);
    color: rgba(255, 255, 255, .92);
    text-decoration: none;
}

    .eg-social-btn:hover {
        background: rgba(255, 255, 255, .12);
        color: #fff;
    }

.eg-footer-cta-primary,
.eg-footer-cta-secondary {
    border-radius: 14px !important;
    font-weight: 750 !important;
}

.eg-footer-cta-primary {
    background: var(--brand-primary) !important;
    border: 1px solid rgba(255, 255, 255, .08) !important;
    color: #fff !important;
}

    .eg-footer-cta-primary:hover {
        background: var(--brand-primary-hover) !important;
    }

.eg-footer-cta-secondary {
    background: rgba(255, 255, 255, .10) !important;
    border: 1px solid rgba(255, 255, 255, .18) !important;
    color: rgba(255, 255, 255, .92) !important;
}

    .eg-footer-cta-secondary:hover {
        background: rgba(255, 255, 255, .14) !important;
        color: #fff !important;
    }

.eg-footer-disputes {
    margin-top: 18px;
}

.eg-legal-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
}

.eg-legal-badges--images {
    justify-content: center;
}

.eg-legal-badge--img {
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, .12);
    background: rgba(255, 255, 255, .06);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 6px 8px;
}

.eg-legal-badge-img {
    display: block;
    height: 60px;
    width: auto;
    border-radius: 10px;
}

.eg-footer-sep {
    border-color: rgba(255, 255, 255, .12) !important;
}

.eg-footer-theme-toggle {
    width: 40px;
    height: 40px;
    border-radius: 14px;
    display: inline-grid;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, .14);
    background: rgba(255, 255, 255, .08);
    color: rgba(255, 255, 255, .92);
}

    .eg-footer-theme-toggle:hover {
        background: rgba(255, 255, 255, .12);
        color: #fff;
    }

/* ===== COOKIE CONSENT ===== */
.eg-cookie-banner {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 14px;
    z-index: 2000;
    padding: 0 12px;
}

.eg-cookie-card {
    max-width: 980px;
    margin: 0 auto;
    border-radius: 18px;
    border: 1px solid color-mix(in oklab, var(--border-strong) 60%, #000 40%);
    background: color-mix(in oklab, var(--surface) 92%, var(--brand-soft) 8%);
    box-shadow: 0 22px 70px rgba(16, 24, 40, .18);
    padding: 14px 14px;
}

html[data-theme="dark"] .eg-cookie-card {
    background: color-mix(in oklab, var(--surface) 86%, #000 14%);
    border-color: var(--border-subtle);
    box-shadow: 0 28px 90px rgba(0, 0, 0, .45);
}

.eg-cookie-icon {
    width: 42px;
    height: 42px;
    border-radius: 14px;
    display: grid;
    place-items: center;
    background: rgba(0, 159, 227, .14);
    color: var(--brand-navy);
    border: 1px solid var(--border-subtle);
}

html[data-theme="dark"] .eg-cookie-icon {
    color: rgba(255, 255, 255, .92);
    border-color: rgba(255, 255, 255, .12);
    background: rgba(0, 159, 227, .14);
}

.eg-cookie-text {
    color: var(--text-muted);
}

.eg-cookie-link {
    color: color-mix(in oklab, var(--text) 80%, var(--brand-blue) 20%);
    text-decoration: none;
    font-weight: 700;
}

    .eg-cookie-link:hover {
        text-decoration: underline;
    }

.eg-cookie-modal {
    border-radius: 18px;
    border: 1px solid var(--border-subtle);
    background: var(--surface);
    color: var(--text);
}

html[data-theme="dark"] .modal-backdrop.show {
    opacity: .65;
}

/* ===== Public common building blocks (shared across pages) ===== */

html[data-theme="light"] body.eg-public {
    color: var(--brand-navy) !important;
}

html[data-theme="dark"] body.eg-public {
    color: var(--text) !important;
}


.eg-public-link {
    color: color-mix(in oklab, var(--brand-blue) 70%, var(--text) 30%);
    text-decoration: none;
    font-weight: 750;
}

    .eg-public-link:hover {
        text-decoration: underline;
    }

.eg-public-section {
    padding: clamp(30px, 3.2vw, 54px) 0;
}

.eg-public-section-soft {
    background: linear-gradient( 180deg, rgba(214, 230, 246, .58) 0%, rgba(214, 230, 246, .22) 52%, rgba(214, 230, 246, 0) 100% ), var(--bg);
}

html[data-theme="dark"] .eg-public-section-soft {
    background: linear-gradient( 180deg, rgba(214, 230, 246, .06) 0%, rgba(214, 230, 246, .03) 55%, rgba(0, 0, 0, 0) 100% ), var(--bg);
}


.eg-public-h2 {
    font-weight: 950;
    letter-spacing: -0.03em;
    color: var(--brand-navy);
    margin-bottom: 18px;
    text-wrap: balance;
}

html[data-theme="dark"] .eg-public-h2 {
    color: var(--text);
}

.eg-public-surface {
    position: relative;
    background: color-mix(in oklab, var(--surface) 92%, var(--brand-soft) 8%);
    border: 1px solid var(--border-subtle);
    border-radius: 18px;
    box-shadow: var(--shadow-sm);
    padding: clamp(18px, 2.2vw, 26px);
}

html[data-theme="dark"] .eg-public-surface {
    background: var(--surface);
}

.eg-public-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
}

.eg-public-btn-primary {
    background: linear-gradient(180deg, rgba(255,255,255,.10) 0%, rgba(255,255,255,0) 100%), #075a81;
    border: 1px solid rgba(255, 255, 255, .14);
    color: #fff;
    box-shadow: 0 18px 55px rgba(0, 0, 0, .18);
}

    .eg-public-btn-primary:hover {
        filter: brightness(1.06);
        color: #fff;
        box-shadow: 0 22px 70px rgba(0,0,0,.22);
    }

.eg-public-btn-secondary {
    background: rgba(255,255,255,.96);
    border: 1px solid rgba(0, 31, 54, .14);
    color: #001f36;
    box-shadow: 0 14px 45px rgba(0,0,0,.14);
}

    .eg-public-btn-secondary:hover {
        filter: brightness(.99);
        color: #001f36;
        box-shadow: 0 18px 60px rgba(0,0,0,.18);
    }

html[data-theme="dark"] .eg-public-btn-secondary {
    background: color-mix(in oklab, var(--surface) 92%, #000 8%);
    border-color: var(--border-subtle);
    color: var(--text);
}

    html[data-theme="dark"] .eg-public-btn-secondary:hover {
        filter: brightness(1.02);
        color: var(--text);
    }

.eg-public-btn-primary:focus-visible,
.eg-public-btn-secondary:focus-visible {
    outline: 3px solid rgba(0, 159, 227, .45);
    outline-offset: 3px;
}

/* ===== Shared HERO (Home, About, Help) ===== */
.eg-public-hero {
    position: relative;
    overflow: hidden;
    isolation: isolate;
    color: #fff;
    background: radial-gradient(980px 600px at 16% 0%, rgba(0, 0, 0, .52), transparent 64%), radial-gradient(920px 560px at 12% 16%, rgba(0, 159, 227, .18), transparent 62%), radial-gradient(860px 520px at 88% 26%, rgba(7, 90, 129, .22), transparent 66%), linear-gradient(var(--eg-hero-angle, 135deg), #000b18 0%, #001225 20%, #001f36 50%, #064e74 78%, #00a7ee 140%);
}

@media (max-width: 575.98px) {
    .eg-public-hero {
        background: radial-gradient(980px 600px at 16% 0%, rgba(0, 0, 0, .56), transparent 64%), radial-gradient(920px 560px at 12% 16%, rgba(0, 159, 227, .18), transparent 62%), radial-gradient(860px 520px at 88% 26%, rgba(7, 90, 129, .22), transparent 66%), linear-gradient(180deg, #000812 0%, #000b18 14%, #001225 30%, #001f36 52%, #043e60 72%, #064e74 86%, #053a58 100%);
    }
}

.eg-public-hero::before {
    content: "";
    position: absolute;
    inset: -20%;
    background: radial-gradient(circle at 20% 10%, rgba(255,255,255,.14), transparent 56%), radial-gradient(circle at 82% 28%, rgba(255,255,255,.10), transparent 58%), radial-gradient(circle at 40% 90%, rgba(255,255,255,.08), transparent 58%);
    filter: blur(2px);
    opacity: .92;
    z-index: -1;
}

.eg-public-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='220' height='220' filter='url(%23n)' opacity='.14'/%3E%3C/svg%3E");
    mix-blend-mode: overlay;
    opacity: .20;
    pointer-events: none;
    z-index: -1;
}

/* ===== Shared FAQ (Home, Help) ===== */
.eg-faq-accordion .accordion-item,
.eg-faq-accordion-inner .accordion-item {
    border: 1px solid var(--border-subtle);
    background: color-mix(in oklab, var(--surface) 94%, var(--brand-soft) 6%);
    box-shadow: var(--shadow-sm);
    border-radius: 18px;
    overflow: hidden;
    margin-bottom: 12px;
}

html[data-theme="dark"] .eg-faq-accordion .accordion-item,
html[data-theme="dark"] .eg-faq-accordion-inner .accordion-item {
    background: var(--surface);
}

.eg-faq-btn.accordion-button {
    background: transparent;
    color: var(--brand-navy);
    font-weight: 900;
    letter-spacing: -0.01em;
}

html[data-theme="dark"] .eg-faq-btn.accordion-button {
    color: var(--text);
}

.eg-faq-btn.accordion-button:focus-visible {
    outline: 3px solid rgba(0, 159, 227, .32);
    outline-offset: 2px;
}

.eg-faq-body.accordion-body {
    color: var(--brand-navy);
    line-height: 1.65;
}

html[data-theme="dark"] .eg-faq-body.accordion-body {
    color: var(--text);
}

/* ===== Shared reveal ===== */
[data-eg-reveal] {
    opacity: 0;
    transform: translateY(6px);
    transition: opacity .35s ease, transform .35s ease;
}

    [data-eg-reveal].is-visible {
        opacity: 1;
        transform: translateY(0);
    }

@media (prefers-reduced-motion: reduce) {
    [data-eg-reveal] {
        transition: none;
        transform: none;
        opacity: 1;
    }
}

