/* --- 1. RESET & VARIABLES --- */
:root {
    --primary: rgba(255, 117, 117, 0.768);
    --primary-dim: rgba(255, 0, 0, 0.1);
    --accent: #ffadc8;
    --gold: #ff0000;
    --bg-dark: #050505;
    --bg-card: #0e0e0e;
    --text-main: #fffffff3;
    --text-muted: #888888;
    --font-main: 'Montserrat', sans-serif;
    --font-tech: 'Rajdhani', sans-serif;
    --transition: all 0.63s cubic-bezier(0.22, 1, 0.36, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: var(--font-main);
    overflow: hidden;
    height: 100vh;
    width: 100vw;
}

/* --- 2. BACKGROUND EFFECTS --- */
.scanlines { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: linear-gradient(to bottom, rgba(255, 255, 255, 0), rgba(255, 255, 255, 0) 50%, rgba(0, 0, 0, 0.1) 50%, rgba(0, 0, 0, 0.1)); background-size: 100% 4px; pointer-events: none; z-index: 10; }
.vignette { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: radial-gradient(circle, transparent 40%, #000 100%); pointer-events: none; z-index: 9; }
.grid-bg { position: fixed; top: 0; left: 0; width: 200%; height: 200%; background-image: linear-gradient(var(--primary-dim) 1px, transparent 1px), linear-gradient(90deg, var(--primary-dim) 1px, transparent 1px); background-size: 50px 50px; background-position: center; transform: perspective(500px) rotateX(60deg) translateY(-100px) translateZ(-200px); opacity: 0.2; pointer-events: none; z-index: 1; animation: gridMove 20s linear infinite; }

/* --- 3. LOADER --- */
#loader { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: #000; z-index: 99999; display: flex; flex-direction: column; justify-content: center; align-items: center; transition: opacity 0.5s ease; }
.loader-content { text-align: center; }
.loading-bar-wrap { width: 300px; height: 2px; background: #222; position: relative; overflow: hidden; }
.loading-bar { position: absolute; left: 0; top: 0; height: 100%; width: 0%; background: var(--primary); box-shadow: 0 0 10px var(--primary); transition: width 0.1s; }

/* --- 4. MAIN CONTAINER & SLIDES --- */
#main-container {
    display: flex;
    width: 500vw; /* Modificat pentru 5 slide-uri */
    height: 100vh;
    transform: translateX(0);
    transition: transform 0.6s cubic-bezier(0.19, 1, 0.22, 1);
    will-change: transform;
}
.slide { width: 100vw; height: 100vh; flex-shrink: 0; display: flex; flex-direction: column; justify-content: center; align-items: center; position: relative; padding: 20px; border-right: 1px solid rgba(255, 255, 255, 0.03); overflow-y: auto; }

/* --- 5. NAVIGATION DOTS & LOGIN --- */
.nav-dots { position: fixed; bottom: 30px; left: 50%; transform: translateX(-50%); display: flex; gap: 15px; z-index: 100; }
.dot { width: 12px; height: 12px; background: #333; border-radius: 50%; cursor: pointer; transition: all 0.3s ease; border: 1px solid transparent; }
.dot.active { background: var(--primary); box-shadow: 0 0 10px var(--primary); transform: scale(1.2); }
.dot:hover { border-color: var(--primary); }

.global-login-btn { position: fixed; top: 20px; right: 20px; z-index: 100; background: var(--bg-card); border: 1px solid var(--primary); color: #fff; padding: 10px 20px; text-decoration: none; font-family: var(--font-tech); font-weight: 700; transition: 0.3s; }
.global-login-btn:hover { background: var(--primary); color: #000; box-shadow: 0 0 15px var(--primary); }

/* --- 6. PANEL CONTENT STYLING --- */
.hero-title { font-size: clamp(3rem, 6vw, 6rem); font-weight: 900; line-height: 0.85; text-transform: uppercase; text-align: center; margin-bottom: 20px; }
.hero-title .glow { color: var(--primary); text-shadow: 0 0 30px rgba(255, 29, 29, 0.4); }

.panel-card { background: rgba(14, 14, 14, 0.8); border: 1px solid #333; padding: 20px; margin: 10px; width: 100%; max-width: 800px; backdrop-filter: blur(5px); }
.panel-card h3 { font-family: var(--font-tech); color: var(--primary); margin-bottom: 15px; border-bottom: 1px solid #333; padding-bottom: 5px; }

/* Tables */
.data-table { width: 100%; border-collapse: collapse; margin-top: 10px; text-align: left; }
.data-table th, .data-table td { padding: 12px; border-bottom: 1px solid #222; }
.data-table th { color: var(--primary); font-family: var(--font-tech); text-transform: uppercase; }

/* Forms */
.form-group { margin-bottom: 15px; }
.form-control { width: 100%; background: #111; border: 1px solid #333; color: #fff; padding: 10px; font-family: var(--font-main); }
.form-control:focus { border-color: var(--primary); outline: none; }
.btn-submit { background: transparent; border: 1px solid var(--accent); color: var(--accent); padding: 10px 20px; cursor: pointer; transition: 0.3s; font-family: var(--font-tech); text-transform: uppercase; font-weight: bold; }
.btn-submit:hover { background: var(--accent); color: #fff; box-shadow: 0 0 15px var(--accent); }

/* Animations */
@keyframes gridMove { 0% { background-position: 0 0; } 100% { background-position: 0 50px; } }

/* --- BACKGROUND ANIMAT MINIMALIST --- */
.body-bg {
    position: fixed;
    top: 0; 
    left: 0; 
    width: 100vw; 
    height: 100vh;
    background-color: var(--bg-dark);
    z-index: 0;
    overflow: hidden;
}

.bg-blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(120px); /* Face lumina foarte difuză și fină */
    opacity: 0.35; /* Subtil, ca să nu deranjeze textul */
}

.blob-1 {
    width: 60vw; 
    height: 60vw;
    background: var(--primary); /* Neon Cyan/Red */
    top: -20%; 
    left: -10%;
    animation: float1 25s infinite ease-in-out;
}

.blob-2 {
    width: 50vw; 
    height: 50vw;
    background: var(--accent); /* Neon Red */
    bottom: -20%; 
    right: -10%;
    animation: float2 30s infinite ease-in-out;
}

/* Animații lente pentru globurile de lumină */
@keyframes float1 {
    0% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(8vw, 10vh) scale(1.1); }
    66% { transform: translate(-5vw, 15vh) scale(0.9); }
    100% { transform: translate(0, 0) scale(1); }
}

@keyframes float2 {
    0% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(-10vw, -8vh) scale(1.2); }
    66% { transform: translate(8vw, -12vh) scale(0.85); }
    100% { transform: translate(0, 0) scale(1); }
}

/* Grid-uri extinse pentru PC */
.dashboard-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 30px; max-width: 1400px; width: 95%; margin-top: 20px; }
.shop-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; max-width: 1200px; width: 95%; }
.skins-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 20px; }
.sanctions-table-wrap { width: 100%; overflow-x: auto; }

/* Panel-uri mai accentuate peste background */
.panel-card { 
    background: rgba(10, 10, 10, 0.85); 
    backdrop-filter: blur(10px); 
    width: 100%; 
    box-shadow: 0 10px 30px rgba(0,0,0,0.6); 
    border-radius: 8px;
}

/* Adaptare perfecta pentru Telefon/Tableta */
@media (max-width: 1000px) {
    .dashboard-grid, .shop-grid { grid-template-columns: 1fr; }
    .hero-title { font-size: clamp(2.5rem, 8vw, 4rem); margin-top: 40px; }
    .slide { justify-content: flex-start; padding: 100px 15px 50px 15px; } /* Permite scroll natural intern */
    .data-table th, .data-table td { padding: 8px 5px; font-size: 0.85rem; }
    #map-image { height: 150px !important; }
}

@media screen and (max-width: 768px) {

    .dashboard-grid,
    .server-status-grid,
    .stats-grid,
    .skins-grid,
    .shop-grid {
        display: flex !important;
        flex-direction: column !important;
        gap: 20px !important;
    }

    .hero-title {
        font-size: 2.2rem !important;
        word-wrap: break-word !important;
    }

    #map-image {
        height: auto !important;
        aspect-ratio: 16/9 !important;
    }

    .sanctions-table-wrap,
    .panel-card table {
        display: block !important;
        width: 100% !important;
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch;
    }

    .data-table th,
    .data-table td {
        padding: 8px !important;
        font-size: 0.85rem !important;
    }

    #slide-3 .panel-card>div:first-child {
        flex-direction: column !important;
        align-items: flex-start !important;
    }

    #slide-3 .panel-card>div:first-child>div {
        width: 100% !important;
        justify-content: space-between !important;
    }
    .panel-card {
        padding: 15px !important;
    }
}

/* Ascundem mesajul de eroare pe PC (pentru ca acolo vrem site-ul normal) */
#mobile-fallback {
    display: none;
}

/* CE SE ÎNTÂMPLĂ PE TELEFON (sub 768px) */
@media screen and (max-width: 768px) {
    /* 1. Ascundem site-ul mare, loader-ul, butoanele de scroll si login-ul */
    #main-container, 
    .nav-dots, 
    .global-login-btn, 
    #loader,
    .mobile-nav-btn {
        display: none !important;
    }

    /* 2. Oprim orice script care încearcă să miște ecranul */
    body {
        overflow: hidden !important;
    }

    /* 3. Afișăm pagina simplă pe tot ecranul telefonului */
    #mobile-fallback {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        height: 100vh;
        height: 100dvh; /* Pt Safari iOS */
        text-align: center;
        padding: 30px;
        z-index: 99999;
        position: relative;
    }
}

@media (max-width: 1024px) {
    /* Ascundem elementele PHP de tip header/footer și containerul principal */
    header, footer, #main-container, .header-wrapper, .footer-wrapper { 
        display: none !important; 
    }

    /* Afișăm doar fallback-ul */
    #mobile-fallback {
        display: flex !important;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        min-height: 100vh;
        background: #050505;
        z-index: 9999;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
    }
}