/* ==========================================================================
   1. VARIABILE PREMIUM CYBERPUNK & RESET GLOBAL
   ========================================================================== */
:root {
    --bg-main: #050911;
    --bg-card: rgba(17, 24, 35, 0.65);
    --bg-input: #0f1724;
    --bg-input-focus: #152238;
    --text-main: #f8fafc;
    --text-muted: #64748b;
    --border-color: rgba(30, 41, 59, 0.8);
    
    /* Neon Red / Carbon Tuning */
    --accent-public: #ff2a2a;
    --accent-public-glow: rgba(255, 42, 42, 0.6);
    --gradient-public: linear-gradient(135deg, #ff2a2a 0%, #bc0000 100%);
    
    /* Cyber Matrix Green */
    --accent-staff: #00ff75;
    --accent-staff-glow: rgba(0, 255, 117, 0.5);
    --gradient-staff: linear-gradient(135deg, #00ff75 0%, #00a34a 100%);
    
    --radius-lg: 24px;
    --radius-md: 14px;
    --radius-sm: 8px;
    
    --font-cyber: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

/* Resetare completă și fluidizare */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-cyber);
    background-color: var(--bg-main);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

/* Efect de rețea digitală pe fundalul întregului site */
body::before {
    content: '';
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(rgba(255,255,255,0.005) 1px, transparent 1px),
                linear-gradient(90deg, rgba(255,255,255,0.005) 1px, transparent 1px);
    background-size: 50px 50px;
    z-index: -2;
    pointer-events: none;
}

/* Scrollbar Futuristic strălucitor */
::-webkit-scrollbar {
    width: 10px;
}
::-webkit-scrollbar-track {
    background: var(--bg-main);
}
::-webkit-scrollbar-thumb {
    background: #1e293b;
    border: 2px solid var(--bg-main);
    border-radius: 10px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--accent-public);
    box-shadow: 0 0 10px var(--accent-public-glow);
}

/* ==========================================================================
   2. HEADER ȘI NAVIGARE (EFECT DE STICLĂ ȘI RESPONSIVITATE MOBIL)
   ========================================================================== */
header {
    background: rgba(5, 9, 17, 0.75);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 20px 0;
    transition: all 0.3s ease;
}

.header-container {
    width: 92%;
    max-width: 1300px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Logo animat cu glitch discret la hover */
.logo {
    font-size: 26px;
    font-weight: 900;
    color: var(--text-main);
    text-decoration: none;
    letter-spacing: -1px;
    text-transform: uppercase;
    position: relative;
}

.logo span {
    color: var(--accent-public);
    text-shadow: 0 0 15px var(--accent-public-glow);
    animation: pulseGlow 2s infinite alternate;
}

nav {
    display: flex;
    align-items: center;
    gap: 16px;
}

/* Comutator Limbă Premium */
#lang-switch {
    background: var(--bg-input);
    border: 1px solid var(--border-color);
    color: var(--text-main);
    padding: 10px 14px;
    border-radius: var(--radius-sm);
    font-weight: 800;
    cursor: pointer;
    transition: all 0.3s ease;
}
#lang-switch:hover {
    background: #fff;
    color: #000;
    transform: scale(1.05);
}

/* ==========================================================================
   3. BUTOANE ULTRA-DINAMICE CU EFECT DE REFLEXIE (GLOW & HOVER 3D)
   ========================================================================== */
.btn-main, .btn-nav {
    padding: 14px 28px;
    border-radius: var(--radius-md);
    font-size: 13px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

/* Buton Principal Neon Roșu */
.btn-main {
    background: var(--gradient-public);
    color: #fff;
    border: none;
    box-shadow: 0 0 20px rgba(255, 42, 42, 0.2);
}

/* Efectul de dungă laser lucioasă care trece peste buton */
.btn-main::before {
    content: '';
    position: absolute;
    top: 0; left: -100%; width: 50%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
    transform: skewX(-25deg);
    transition: none;
}

.btn-main:hover::before {
    left: 150%;
    transition: all 0.6s ease-in-out;
}

.btn-main:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 0 30px var(--accent-public-glow);
}

/* Buton Secundar Transparent */
.btn-nav {
    background: rgba(255, 255, 255, 0.03);
    color: var(--text-main);
    border: 1px solid var(--border-color);
    backdrop-filter: blur(5px);
}

.btn-nav:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: #fff;
    color: #fff;
    transform: translateY(-3px);
}

/* ==========================================================================
   4. SECTIUNEA HERO - INDEX PAGE
   ========================================================================== */
.hero-page {
    min-height: 85vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 60px 20px;
    overflow: hidden;
}

.hero-page::after {
    content: '';
    position: absolute;
    width: 600px; height: 600px;
    background: radial-gradient(circle, rgba(255, 42, 42, 0.08) 0%, transparent 70%);
    top: -10%; right: -10%;
    z-index: -1;
    animation: floatAnimation 10s infinite ease-in-out;
}

.hero-content {
    max-width: 900px;
    text-align: center;
    z-index: 5;
    animation: superFadeInUp 1s cubic-bezier(0.16, 1, 0.3, 1);
}

.hero-content h1 {
    font-size: 64px;
    font-weight: 900;
    line-height: 1.05;
    letter-spacing: -2px;
    margin-bottom: 24px;
    text-transform: uppercase;
    background: linear-gradient(180deg, #ffffff 30%, #a5b4fc 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.hero-content p {
    font-size: 20px;
    color: #94a3b8;
    margin-bottom: 45px;
    max-width: 650px;
    margin-left: auto;
    margin-right: auto;
    letter-spacing: 0.5px;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
}

/* ==========================================================================
   5. SECTIUNEA HĂRȚII INTERACTIVE (RADAR SCAN)
   ========================================================================== */
.map-section {
    padding: 100px 0;
    background: linear-gradient(180deg, #050911 0%, #09111f 100%);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    position: relative;
}

.map-container {
    width: 92%;
    max-width: 1300px;
    margin: 0 auto;
}

.map-section h2 {
    font-size: 36px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: -1px;
    text-align: center;
    background: linear-gradient(90deg, #fff, var(--text-muted), #fff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.map-layout {
    display: flex;
    flex-direction: column;
    gap: 40px;
    margin-top: 50px;
}

.map-wrapper {
    position: relative;
    width: 100%;
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 2px solid rgba(255, 255, 255, 0.05);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.8);
    background: #000;
    transform: perspective(1000px) rotateX(2deg);
    transition: transform 0.5s ease;
}
.map-wrapper:hover {
    transform: perspective(1000px) rotateX(0deg);
}

.map-wrapper::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(rgba(0, 255, 117, 0.05) 1px, transparent 1px),
                linear-gradient(90deg, rgba(0, 255, 117, 0.05) 1px, transparent 1px);
    background-size: 25px 25px;
    z-index: 2;
    pointer-events: none;
}

.map-wrapper::after {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 6px;
    background: linear-gradient(90deg, transparent, var(--accent-staff), #fff, var(--accent-staff), transparent);
    box-shadow: 0 0 20px var(--accent-staff);
    z-index: 3;
    pointer-events: none;
    animation: radarScanVertical 5s linear infinite;
}

.satellite-bg {
    width: 100%;
    display: block;
    height: auto;
    object-fit: cover;
    filter: brightness(0.35) contrast(1.3) saturate(0.5);
}

.map-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    z-index: 5;
}

.map-zone {
    cursor: pointer;
    transition: all 0.3s ease;
    stroke-width: 3;
    stroke-dasharray: 8 5;
}

.zone-expo { fill: url(#hasura-rosie); stroke: var(--accent-public); }
.zone-expo:hover { fill: rgba(255, 42, 42, 0.35); stroke-dasharray: none; }

.zone-staff { fill: url(#hasura-verde); stroke: var(--accent-staff); }
.zone-staff:hover { fill: rgba(0, 255, 117, 0.35); stroke-dasharray: none; }

.zone-public { fill: url(#hasura-albastra); stroke: #1f6feb; }
.zone-public:hover { fill: rgba(31, 111, 235, 0.35); stroke-dasharray: none; }

.zone-drift { fill: url(#hasura-galben); stroke: #c6f300; }
.zone-drift:hover { fill: rgba(111, 121, 18, 0.35); stroke-dasharray: none; }

.map-legend {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.legend-card {
    background: rgba(15, 23, 42, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.04);
    backdrop-filter: blur(10px);
    border-radius: var(--radius-md);
    padding: 26px;
    transition: all 0.4s ease;
    position: relative;
}

.legend-card h3 { font-size: 18px; font-weight: 800; margin-bottom: 8px; color: #fff; text-transform: uppercase;}
.legend-card p { font-size: 14px; color: #94a3b8; }

.legend-badge { position: absolute; top: 28px; right: 28px; width: 12px; height: 12px; border-radius: 50%; }
.badge-expo { background: var(--accent-public); box-shadow: 0 0 15px var(--accent-public); }
.badge-staff-zone { background: var(--accent-staff); box-shadow: 0 0 15px var(--accent-staff); }
.badge-public { background: #1f6feb; box-shadow: 0 0 15px #1f6feb; }
.badge-drift { background: #ddd90a; box-shadow: 0 0 15px #648a06; }

.legend-card.active { background: rgba(255, 255, 255, 0.02); border-color: rgba(255, 255, 255, 0.15); transform: translateX(8px); }
.legend-card#info-expo.active { border-left: 4px solid var(--accent-public); }
.legend-card#info-staff.active { border-left: 4px solid var(--accent-staff); }
.legend-card#info-public.active { border-left: 4px solid #1f6feb; }
.legend-card#info-drift.active { border-left: 4px solid #d9f007; }

/* ==========================================================================
   6. SECTIUNE CONȚINUT ȘI FORMULAR INSCRIERE MULTI-STEP
   ========================================================================== */
.content-page {
    min-height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    position: relative;
}

/* Container principal formular - Glassmorphic Tuning */
.unique-form-box {
    width: 100%;
    max-width: 650px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-radius: var(--radius-lg);
    padding: 45px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255,255,255,0.05);
    animation: superFadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.unique-form-box h2 {
    font-size: 32px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: -1px;
    text-align: center;
    margin-bottom: 30px;
    background: linear-gradient(135deg, #fff 0%, #94a3b8 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Containere Pași Formular (Dots) */
.steps-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 25px;
    margin-bottom: 40px;
    position: relative;
}

.steps-container::before {
    content: '';
    position: absolute;
    width: 150px; height: 2px;
    background: var(--border-color);
    z-index: 1;
}

.step {
    width: 36px; height: 36px;
    border-radius: 50%;
    background: var(--bg-input);
    border: 2px solid var(--border-color);
    color: var(--text-muted);
    font-weight: 800;
    display: flex; align-items: center; justify-content: center;
    font-size: 14px;
    position: relative;
    z-index: 5;
    transition: all 0.4s ease;
}

.step.active {
    background: var(--bg-main);
    border-color: var(--accent-public);
    color: #fff;
    box-shadow: 0 0 15px var(--accent-public-glow);
    transform: scale(1.15);
}

.form-step {
    display: none;
    animation: stepFade 0.5s ease forwards;
}

.form-step.active {
    display: block;
}

/* Input-uri Ciber-Tuning */
.input-group {
    margin-bottom: 24px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.input-group label {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #cbd5e1;
}

.input-group input[type="text"],
.input-group input[type="password"],
.input-group input[type="email"],
.input-group input[type="tel"],
.input-group input[type="number"],
.input-group textarea {
    width: 100%;
    background: var(--bg-input);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 14px 18px;
    color: #fff;
    font-size: 15px;
    font-family: var(--font-cyber);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.input-group input:focus,
.input-group textarea:focus {
    outline: none;
    background: var(--bg-input-focus);
    border-color: var(--accent-public);
    box-shadow: 0 0 12px rgba(255, 42, 42, 0.2);
}

.file-upload-wrapper {
    position: relative;
    border: 2px dashed var(--border-color);
    padding: 30px;
    border-radius: var(--radius-md);
    text-align: center;
    background: rgba(0,0,0,0.2);
    cursor: pointer;
    transition: all 0.3s ease;
}
.file-upload-wrapper:hover {
    border-color: var(--accent-public);
    background: rgba(255, 42, 42, 0.02);
}

.file-upload-wrapper input[type="file"] {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    opacity: 0;
    cursor: pointer;
}

.btn-group {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
    margin-top: 35px;
}

.checkbox-group {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}

.checkbox-group input[type="checkbox"] {
    appearance: none;
    -webkit-appearance: none;
    width: 20px; height: 20px;
    border: 2px solid var(--border-color);
    border-radius: 4px;
    background: var(--bg-input);
    cursor: pointer;
    position: relative;
    transition: all 0.2s ease;
}
.checkbox-group input[type="checkbox"]:checked {
    background: var(--accent-public);
    border-color: var(--accent-public);
}
.checkbox-group input[type="checkbox"]:checked::after {
    content: '✓';
    position: absolute;
    color: #fff; font-size: 14px; font-weight: 900;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
}

.alert {
    padding: 16px 20px;
    border-radius: var(--radius-md);
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 30px;
    animation: superFadeInUp 0.4s ease;
}

.alert.success {
    background: rgba(0, 255, 117, 0.1);
    border: 1px solid var(--accent-staff);
    color: var(--accent-staff);
    box-shadow: 0 0 15px rgba(0, 255, 117, 0.1);
}

.alert.danger {
    background: rgba(255, 42, 42, 0.1);
    border: 1px solid var(--accent-public);
    color: var(--accent-public);
    box-shadow: 0 0 15px rgba(255, 42, 42, 0.1);
}

/* ==========================================================================
   7. STILURI EXCLUSIVE LOGIN STAFF (CYBER MATRIX GREEN TUNING)
   ========================================================================== */
.logo-staff {
    font-size: 22px;
    font-weight: 900;
    color: var(--text-main);
    text-decoration: none;
    letter-spacing: -0.5px;
    text-transform: uppercase;
    text-align: center;
}

.logo-staff span {
    color: var(--accent-staff);
    text-shadow: 0 0 15px var(--accent-staff-glow);
    font-weight: 700;
}

/* Modificări de comportament pentru input și butoane când ne aflăm pe o pagină STAFF */
.unique-form-box:has(.logo-staff) {
    border-color: rgba(0, 255, 117, 0.25);
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.6), 0 0 30px rgba(0, 255, 117, 0.03);
}

.unique-form-box:has(.logo-staff) h2 {
    background: linear-gradient(135deg, #ffffff 0%, var(--accent-staff) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.unique-form-box:has(.logo-staff) .input-group input:focus {
    border-color: var(--accent-staff);
    box-shadow: 0 0 12px rgba(0, 255, 117, 0.25);
}

.unique-form-box:has(.logo-staff) .btn-main {
    background: var(--gradient-staff);
    box-shadow: 0 0 20px rgba(0, 255, 117, 0.15);
}

.unique-form-box:has(.logo-staff) .btn-main:hover {
    box-shadow: 0 0 30px var(--accent-staff-glow);
}

/* ==========================================================================
   8. COMPLET RESPONSIVE PENTRU MOBIL (ADAPTARE PE TELEFOANE)
   ========================================================================== */
@media (max-width: 768px) {
    header { padding: 15px 0; }
    .header-container { flex-direction: column; gap: 16px; }
    .logo { font-size: 22px; }
    nav { width: 100%; justify-content: center; flex-wrap: wrap; gap: 10px; }
    .btn-main, .btn-nav { width: 100%; padding: 12px 20px; font-size: 12px; }
    #lang-switch { width: 100%; text-align: center; }

    .hero-page { padding: 80px 16px; min-height: auto; }
    .hero-content h1 { font-size: 36px; letter-spacing: -1px; line-height: 1.1; }
    .hero-content p { font-size: 16px; margin-bottom: 30px; }
    .cta-buttons { flex-direction: column; width: 100%; gap: 12px; }

    .map-section { padding: 60px 0; }
    .map-section h2 { font-size: 26px; padding: 0 10px; }
    .map-wrapper { transform: none !important; border-radius: var(--radius-md); }
    .legend-card { padding: 20px; }
    .legend-card:hover, .legend-card.active { transform: none; }
    .legend-badge { top: 22px; right: 20px; }

    /* Modificări Formular Mobil */
    .unique-form-box { padding: 24px 20px; border-radius: var(--radius-md); }
    .unique-form-box h2 { font-size: 24px; }
    .btn-group { flex-direction: column-reverse; }
    .btn-group button { width: 100%; }
}

@media (min-width: 769px) {
    .map-layout { flex-direction: row; }
    .map-wrapper { flex: 1.6; }
    .map-legend { flex: 1; }
}

/* ==========================================================================
   9. ANIMAȚII MOTOR DE RENDARIZARE
   ========================================================================== */
@keyframes superFadeInUp {
    from { opacity: 0; transform: translateY(40px); filter: blur(10px); }
    to { opacity: 1; transform: translateY(0); filter: blur(0); }
}

@keyframes stepFade {
    from { opacity: 0; transform: scale(0.98); }
    to { opacity: 1; transform: scale(1); }
}

@keyframes pulseGlow {
    0% { text-shadow: 0 0 10px var(--accent-public-glow); }
    100% { text-shadow: 0 0 25px var(--accent-public), 0 0 10px var(--accent-public-glow); }
}

@keyframes radarScanVertical {
    0% { top: 0%; opacity: 0; }
    10% { opacity: 1; }
    90% { opacity: 1; }
    100% { top: 100%; opacity: 0; }
}

@keyframes floatAnimation {
    0%, 100% { transform: translateY(0) scale(1); }
    50% { transform: translateY(-20px) scale(1.05); }
}