:root {
    --brand-bg: #050810;
    --brand-surface: #0f172a;
    --brand-accent: #3b82f6;
    --brand-accent-2: #06b6d4;
    --brand-glow: rgba(59, 130, 246, 0.45);
    --brand-text: #f8fafc;
    --brand-muted: #94a3b8;
    --header-h: 4rem;
    --header-h-xl: 4.5rem;
    --dock-h: 4.25rem;
    --radius-lg: 1rem;
    --radius-xl: 1.25rem;
    --safe-bottom: env(safe-area-inset-bottom, 0px);
    --content-max: 1600px;
}

@media (min-width: 1280px) {
    :root { --header-h: var(--header-h-xl); }
}

/* —— Preloader —— */
.app-preloader {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    background: radial-gradient(ellipse at 50% 30%, #0f2744 0%, var(--brand-bg) 55%);
    transition: opacity 0.45s ease, visibility 0.45s ease;
}
.app-preloader--hide {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}
.preloader-inner {
    position: relative;
    width: 140px;
    height: 140px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.preloader-ring {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 2px solid transparent;
}
.preloader-ring--outer {
    border-top-color: var(--brand-accent);
    border-right-color: var(--brand-accent-2);
    animation: preloader-spin 1.2s linear infinite;
}
.preloader-ring--inner {
    inset: 12px;
    border-bottom-color: rgba(6, 182, 212, 0.6);
    animation: preloader-spin 1.8s linear infinite reverse;
}
.preloader-core {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
}
.preloader-logo {
    width: 88px;
    height: auto;
    max-height: 88px;
    object-fit: contain;
    animation: preloader-pulse 2s ease-in-out infinite;
    filter: drop-shadow(0 0 18px var(--brand-glow));
}
.preloader-logo-fallback {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--brand-accent), var(--brand-accent-2));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    color: #fff;
    box-shadow: 0 0 40px var(--brand-glow);
    animation: preloader-pulse 2s ease-in-out infinite;
}
.preloader-bar {
    position: absolute;
    bottom: -28px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 3px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 99px;
    overflow: hidden;
}
.preloader-bar span {
    display: block;
    height: 100%;
    width: 40%;
    background: linear-gradient(90deg, var(--brand-accent), var(--brand-accent-2));
    border-radius: 99px;
    animation: preloader-bar 1.4s ease-in-out infinite;
}
@keyframes preloader-spin { to { transform: rotate(360deg); } }
@keyframes preloader-pulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.06); opacity: 0.88; }
}
@keyframes preloader-bar {
    0% { transform: translateX(-120%); }
    100% { transform: translateX(280%); }
}

/* —— Layout public —— */
.site-shell {
    font-family: 'Poppins', system-ui, sans-serif;
    background: linear-gradient(180deg, #e8eef5 0%, #f1f5f9 12%, #f8fafc 35%, #fff 100%);
    color: #0f172a;
    overflow-x: hidden;
}

/* Spațiu sub dock-ul mobil ca footerul și ultimul conținut să nu fie acoperite */
@media (max-width: 1279px) {
    body.site-shell {
        padding-bottom: calc(var(--dock-h) + var(--safe-bottom) + 0.5rem);
    }
}

.site-header {
    background: rgba(5, 8, 16, 0.88);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.35);
    will-change: transform;
}

#main-header.site-header {
    transition: transform 0.32s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.25s ease;
}

#main-header.site-header.site-header-is-hidden {
    transform: translateY(-100%);
    box-shadow: none;
}

#main-header.site-header.site-header--scrolled .site-header__inner {
    box-shadow: inset 0 -1px 0 rgba(255, 255, 255, 0.06);
}

.site-footer__grain {
    background-image: radial-gradient(circle at 1px 1px, rgba(255, 255, 255, 0.06) 1px, transparent 0);
    background-size: 22px 22px;
}

.site-dock {
    background: rgba(5, 8, 16, 0.94);
    backdrop-filter: blur(20px);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-bottom: var(--safe-bottom);
    box-shadow: 0 -12px 40px rgba(0, 0, 0, 0.45);
}

.dock-label {
    font-size: 0.5rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.dock-indicator {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 2.5rem;
    height: 3px;
    border-radius: 0 0 6px 6px;
}
.dock-indicator--blue { background: #3b82f6; box-shadow: 0 0 12px rgba(59, 130, 246, 0.8); }
.dock-indicator--emerald { background: #10b981; box-shadow: 0 0 12px rgba(16, 185, 129, 0.8); }
.dock-indicator--purple { background: #a855f7; box-shadow: 0 0 12px rgba(168, 85, 247, 0.8); }
.dock-indicator--teal { background: #14b8a6; box-shadow: 0 0 12px rgba(20, 184, 166, 0.8); }

.public-main {
    flex: 1 1 auto;
    width: 100%;
    max-width: var(--content-max);
    margin-left: auto;
    margin-right: auto;
    padding-top: calc(var(--header-h) + 1.25rem);
    padding-left: 1rem;
    padding-right: 1rem;
    padding-bottom: calc(var(--dock-h) + 1.5rem);
}

@media (min-width: 1280px) {
    .public-main {
        padding-top: calc(var(--header-h-xl) + 1.5rem);
        padding-bottom: 2.5rem;
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }
}

.public-main--flush {
    max-width: none;
    padding-left: 0;
    padding-right: 0;
}

/* Hero full-bleed: lăsă loc clar sub header fix (mobil + desktop) */
.public-main--hero {
    padding-top: calc(var(--header-h) + 0.75rem);
    scroll-margin-top: var(--header-h);
}

@media (min-width: 1280px) {
    .public-main--hero {
        padding-top: calc(var(--header-h-xl) + 1rem);
        scroll-margin-top: var(--header-h-xl);
    }
}

/* —— Comunitate: bară sub header global + conținut —— */
.social-toolbar {
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    z-index: 45;
    background: rgba(248, 250, 252, 0.94);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.notif-scroll::-webkit-scrollbar {
    display: none;
}

.social-main-grid {
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 1rem;
    padding-right: 1rem;
    padding-top: calc(var(--header-h) + 3.5rem + 0.75rem);
    padding-bottom: calc(var(--dock-h) + 1.25rem);
    width: 100%;
}

@media (min-width: 1280px) {
    .social-main-grid {
        padding-top: calc(var(--header-h-xl) + 3.75rem + 1rem);
        padding-bottom: 2.5rem;
    }
}

/* —— Componente UI —— */
.hero-future {
    background: linear-gradient(135deg, #0f172a 0%, #1e3a5f 45%, #0c4a6e 100%);
    position: relative;
    overflow: hidden;
}

/* Pagini cu căutare în hero (index, casting) — dropdown vizibil peste conținut */
.hero-future--searchable {
    overflow: visible;
    z-index: 20;
}

#hero-search-wrap {
    position: relative;
    z-index: 30;
}

.hero-search-suggestions {
    position: fixed;
    z-index: 250;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55);
}

.hero-search-suggestions:not(.hidden) {
    display: flex !important;
}
.hero-future::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 20% 50%, rgba(59, 130, 246, 0.25), transparent 50%),
                radial-gradient(circle at 80% 20%, rgba(6, 182, 212, 0.2), transparent 45%);
    pointer-events: none;
}

.card-future {
    border-radius: var(--radius-xl);
    border: 1px solid rgba(226, 232, 240, 0.95);
    background: #fff;
    box-shadow: 0 4px 24px -8px rgba(15, 23, 42, 0.1);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.card-future:hover {
    transform: translateY(-4px);
    box-shadow: 0 24px 48px -20px rgba(37, 99, 235, 0.22);
    border-color: rgba(59, 130, 246, 0.35);
}

.glass-panel {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(226, 232, 240, 0.9);
    border-radius: var(--radius-xl);
    box-shadow: 0 8px 32px -12px rgba(15, 23, 42, 0.12);
}

.btn-future {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.25rem;
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    border-radius: 0.75rem;
    transition: transform 0.2s, box-shadow 0.2s, filter 0.2s;
}
.btn-future--primary {
    background: linear-gradient(135deg, #2563eb, #0891b2);
    color: #fff;
    box-shadow: 0 8px 24px -6px rgba(37, 99, 235, 0.5);
}
.btn-future--primary:hover {
    filter: brightness(1.08);
    transform: translateY(-2px);
    box-shadow: 0 12px 28px -6px rgba(37, 99, 235, 0.55);
}

/* —— Footer —— */
.site-footer {
    background: var(--brand-bg);
    color: var(--brand-muted);
    border-top: 1px solid #1e293b;
    flex-shrink: 0;
}
.footer-heading {
    color: #fff;
    font-size: 0.8125rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    margin-bottom: 1.25rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #1e293b;
    display: inline-block;
}
.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
    font-size: 0.875rem;
}
.footer-links li { margin-bottom: 0.65rem; }
.footer-links a {
    color: #94a3b8;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: color 0.2s;
}
.footer-links a:hover { color: #60a5fa; }
.footer-links i { font-size: 0.65rem; opacity: 0.5; }
.footer-social {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 999px;
    background: rgba(30, 41, 59, 0.6);
    border: 1px solid #334155;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #94a3b8;
    transition: all 0.2s;
}
.footer-social:hover {
    background: #2563eb;
    color: #fff;
    border-color: transparent;
}
.footer-social--pink:hover { background: #db2777; }
.footer-social--light:hover { background: #fff; color: #000; }
.footer-contact-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    background: rgba(30, 41, 59, 0.35);
    border: 1px solid rgba(51, 65, 85, 0.6);
    border-radius: 0.75rem;
    transition: border-color 0.2s;
}
.footer-contact-item:hover { border-color: rgba(59, 130, 246, 0.4); }
.footer-contact-item a { color: #cbd5e1; }
.footer-contact-item a:hover { color: #fff; }

.no-scrollbar::-webkit-scrollbar { display: none; }
.no-scrollbar { -ms-overflow-style: none; scrollbar-width: none; }

/* —— Admin —— */
.admin-brand-text {
    font-size: 1.15rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    background: linear-gradient(90deg, #fff, #94a3b8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* —— Selector limbă (dropdown steaguri SVG) —— */
.site-header,
.site-header__inner {
    overflow: visible;
}

.lang-dropdown {
    position: relative;
    display: inline-flex;
    vertical-align: middle;
    flex-shrink: 0;
}
.lang-dropdown__toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.15rem;
    width: 1.65rem;
    height: 1.65rem;
    min-width: 1.65rem;
    padding: 0.1rem;
    border-radius: 0.4rem;
    border: 1px solid rgba(148, 163, 184, 0.25);
    background: rgba(15, 23, 42, 0.55);
    backdrop-filter: blur(8px);
    cursor: pointer;
    transition: background 0.15s, border-color 0.15s, box-shadow 0.15s;
}
.lang-dropdown--public .lang-dropdown__toggle,
.lang-dropdown--public-compact .lang-dropdown__toggle {
    color: #e2e8f0;
}
.lang-dropdown--public .lang-dropdown__toggle:hover,
.lang-dropdown--public-compact .lang-dropdown__toggle:hover,
.lang-dropdown.is-open .lang-dropdown__toggle {
    background: rgba(30, 41, 59, 0.85);
    border-color: rgba(96, 165, 250, 0.45);
    box-shadow: 0 0 12px rgba(37, 99, 235, 0.25);
}
.lang-dropdown--admin .lang-dropdown__toggle {
    background: #f8fafc;
    border-color: #e2e8f0;
    color: #334155;
}
.lang-dropdown--admin .lang-dropdown__toggle:hover,
.lang-dropdown--admin.is-open .lang-dropdown__toggle {
    background: #fff;
    border-color: #93c5fd;
}
.lang-dropdown__flag-img {
    width: 0.85rem;
    height: 0.85rem;
    max-width: 0.85rem;
    max-height: 0.85rem;
    object-fit: cover;
    border-radius: 2px;
    display: block;
    flex-shrink: 0;
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.12);
}
.lang-dropdown--admin .lang-dropdown__flag-img {
    width: 0.75rem;
    height: 0.75rem;
    max-width: 0.75rem;
    max-height: 0.75rem;
}
.lang-dropdown__caret {
    font-size: 0.35rem;
    opacity: 0.75;
    transition: transform 0.2s;
}
.lang-dropdown.is-open .lang-dropdown__caret {
    transform: rotate(180deg);
}
.lang-dropdown__menu[hidden] {
    display: none !important;
}
.lang-dropdown__menu {
    position: absolute;
    top: calc(100% + 0.2rem);
    right: 0;
    left: auto;
    z-index: 120;
    margin: 0;
    padding: 0.2rem;
    list-style: none;
    min-width: 1.65rem;
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
    border-radius: 0.45rem;
    background: rgba(15, 23, 42, 0.96);
    border: 1px solid rgba(148, 163, 184, 0.25);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.35);
    backdrop-filter: blur(10px);
}
.lang-dropdown--admin .lang-dropdown__menu {
    background: #fff;
    border-color: #e2e8f0;
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.12);
}
.lang-dropdown__menu li {
    margin: 0;
}
.lang-dropdown__item {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 1.5rem;
    height: 1.5rem;
    margin: 0 auto;
    border-radius: 0.35rem;
    transition: background 0.15s, transform 0.15s;
}
.lang-dropdown--public .lang-dropdown__item:hover,
.lang-dropdown--public-compact .lang-dropdown__item:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: scale(1.08);
}
.lang-dropdown--admin .lang-dropdown__item:hover {
    background: #f1f5f9;
}
.lang-dropdown__item.is-active {
    background: linear-gradient(135deg, #2563eb, #0891b2);
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.35);
}
.lang-dropdown--public-compact .lang-dropdown__toggle {
    width: 1.55rem;
    height: 1.55rem;
    min-width: 1.55rem;
}

/* —— Footer panou administrare —— */
.admin-footer {
    flex-shrink: 0;
    margin-top: auto;
    padding: 0.85rem 1.25rem;
    border-top: 1px solid #e2e8f0;
    background: #f8fafc;
    font-size: 0.7rem;
    color: #64748b;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
}
.admin-footer a {
    color: #2563eb;
    font-weight: 600;
    text-decoration: none;
}
.admin-footer a:hover {
    text-decoration: underline;
}
/* admin-workspace / admin-main — definit în admin-panel.css */
.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;
}
