:root {
    --primary-blue: #0a7aff;
    --electric-orange: #ff6b35;
    --neon-orange: #ff8c42;
    --deep-navy: #0a0e27;
    --midnight: #131829;
    --accent-purple: #6366f1;
    --neon-glow: rgba(255, 107, 53, 0.4);
    --electric-cyan: #00d9ff;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Exo 2', sans-serif;
    background: var(--deep-navy);
    color: #ffffff;
    overflow: hidden;
    position: relative;
    line-height: 1.6;
}

/* --- TOTAL SCROLLBAR HIDING --- */
::-webkit-scrollbar {
    width: 0px;
    height: 0px;
    background: transparent;
    /* Optional: just in case */
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: transparent;
}

/* For Firefox and other browsers supporting standard props */
html,
body,
.main-scroll-area,
* {
    scrollbar-width: none !important;
    -ms-overflow-style: none !important;
}

/* Global focus and overflow fixes */
* {
    box-sizing: border-box;
}

/* --- GLOBAL APP LAYOUT --- */
.app-layout {
    display: flex;
    height: 100vh;
    width: 100%;
    /* Better than 100vw for scrollbar handling */
    overflow: hidden;
}

.sidebar-wrapper {
    width: 280px;
    background: rgba(13, 18, 41, 0.98);
    border-right: 1px solid rgba(10, 122, 255, 0.15);
    display: flex;
    flex-direction: column;
    z-index: 100;
    backdrop-filter: blur(20px);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.main-scroll-area {
    flex-grow: 1;
    overflow-y: auto;
    overflow-x: hidden !important;
    /* Force hide horizontal */
    position: relative;
    scroll-behavior: smooth;
}

/* Sidebar Elements (Global) */
.sidebar-logo-area {
    padding: 2.5rem 1.5rem;
    text-align: center;
}

.sidebar-nav {
    flex-grow: 1;
    padding: 0 1rem;
    overflow-y: auto;
}

.nav-group-label {
    padding: 1.5rem 1rem 0.5rem;
    text-transform: uppercase;
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.3);
    letter-spacing: 1.5px;
    font-weight: 700;
}

.sidebar-link {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.8rem 1.2rem;
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    border-radius: 12px;
    margin-bottom: 0.4rem;
    transition: all 0.3s;
    font-weight: 600;
}

.sidebar-link i {
    width: 20px;
    text-align: center;
    font-size: 1.1rem;
    transition: all 0.3s;
}

.sidebar-link:hover {
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
}

.sidebar-link.active {
    background: rgba(10, 122, 255, 0.1);
    color: var(--primary-blue);
    border-left: 3px solid var(--primary-blue);
}

.sidebar-link.active i {
    color: var(--primary-blue);
}

.sidebar-footer {
    padding: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.user-snippet {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.user-avatar {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--primary-blue), var(--electric-orange));
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    font-size: 1.2rem;
}

.user-info {
    display: flex;
    flex-direction: column;
}

.user-name {
    font-size: 0.95rem;
    font-weight: 700;
}

.user-rank-badge {
    font-size: 0.7rem;
    background: rgba(10, 122, 255, 0.15);
    color: var(--primary-blue);
    padding: 0.1rem 0.5rem;
    border-radius: 4px;
    width: fit-content;
    margin-top: 0.2rem;
}

.logout-btn-global {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.8rem;
    background: rgba(255, 68, 68, 0.1);
    color: #ff4444;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.9rem;
    transition: all 0.3s;
}

.logout-btn-global:hover {
    background: rgba(255, 68, 68, 0.2);
}

/* Animated Background */
.bg-animation {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

.grid-layer {
    position: absolute;
    width: 200%;
    height: 200%;
    background-image:
        linear-gradient(rgba(10, 122, 255, 0.1) 1px, transparent 1px),
        linear-gradient(90deg, rgba(10, 122, 255, 0.1) 1px, transparent 1px);
    background-size: 50px 50px;
    animation: gridMove 20s linear infinite;
    transform: perspective(500px) rotateX(60deg);
}

@keyframes gridMove {
    0% {
        transform: perspective(500px) rotateX(60deg) translateY(0);
    }

    100% {
        transform: perspective(500px) rotateX(60deg) translateY(50px);
    }
}

.gradient-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.3;
    animation: float 15s ease-in-out infinite;
}

.orb-1 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, var(--primary-blue), transparent);
    top: -100px;
    left: -100px;
}

.orb-2 {
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, var(--electric-orange), transparent);
    bottom: -50px;
    right: -50px;
    animation-delay: 5s;
}

.orb-3 {
    width: 350px;
    height: 350px;
    background: radial-gradient(circle, var(--accent-purple), transparent);
    top: 50%;
    right: 20%;
    animation-delay: 10s;
}

@keyframes float {

    0%,
    100% {
        transform: translate(0, 0) scale(1);
    }

    33% {
        transform: translate(50px, -50px) scale(1.1);
    }

    66% {
        transform: translate(-30px, 30px) scale(0.9);
    }
}

.app-header {
    padding: 0.8rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 90;
    backdrop-filter: blur(20px);
    background: rgba(13, 18, 41, 0.4);
    border-bottom: 1px solid rgba(10, 122, 255, 0.1);
}

.header-logo {
    font-size: 1.4rem !important;
    display: none;
    /* Only on mobile/tablet */
}

@media (max-width: 992px) {
    .header-logo {
        display: block;
    }

    .top-nav {
        display: none;
        /* Use sidebar instead on mobile */
    }
}

.logo {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.8rem;
    font-weight: 900;
    background: linear-gradient(135deg, var(--electric-orange), var(--primary-blue));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    /* Force transparency for background-clip */
    filter: drop-shadow(0 0 10px var(--neon-glow));
    letter-spacing: 2px;
    position: relative;
}

.logo::after {
    content: attr(data-text);
    position: absolute;
    left: 0;
    top: 0;
    z-index: -1;
    background: linear-gradient(135deg, var(--electric-orange), var(--primary-blue));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: blur(12px);
    opacity: 0.5;
}

.top-nav {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.top-nav a {
    color: #ffffff;
    text-decoration: none;
    font-weight: 600;
    position: relative;
    transition: all 0.3s;
    letter-spacing: 1px;
    font-size: 0.95rem;
}

.top-nav a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--electric-orange), var(--primary-blue));
    transition: width 0.3s;
}

.top-nav a:hover,
.top-nav a.active {
    color: var(--electric-orange);
}

.top-nav a:hover::after,
.top-nav a.active::after {
    width: 100%;
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
}

/* CTAs & Buttons */
.cta-button {
    padding: 1.1rem 2.8rem;
    font-size: 1.1rem;
    font-weight: 700;
    color: #ffffff;
    background: linear-gradient(135deg, var(--primary-blue), var(--electric-orange));
    border: none;
    border-radius: 50px;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: all 0.3s;
    text-decoration: none;
    display: inline-block;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.cta-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: 0.5s;
}

.cta-button:hover::before {
    left: 100%;
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px var(--neon-glow);
}

/* Footer */
footer {
    background: linear-gradient(180deg, rgba(13, 18, 41, 0.95), rgba(10, 14, 39, 1));
    backdrop-filter: blur(20px);
    border-top: 1px solid rgba(10, 122, 255, 0.2);
    margin-top: 4rem;
    padding: 4rem 5% 0;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    max-width: 1200px;
    margin: 0 auto 3rem;
}

.footer-section h3 {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.3rem;
    margin-bottom: 1.5rem;
    color: var(--primary-blue);
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.8rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: var(--electric-orange);
}

@media (max-width: 992px) {
    .sidebar-wrapper {
        position: fixed;
        left: -280px;
        height: 100vh;
        box-shadow: 20px 0 50px rgba(0, 0, 0, 0.5);
    }

    .sidebar-wrapper.active {
        left: 0;
    }

    .app-layout {
        flex-direction: column;
    }

    .mobile-menu-toggle {
        display: block !important;
        position: fixed;
        top: 1rem;
        left: 1rem;
        z-index: 1001;
        background: rgba(10, 122, 255, 0.2);
        padding: 0.5rem 0.8rem;
        border-radius: 8px;
        backdrop-filter: blur(10px);
        border: 1px solid rgba(10, 122, 255, 0.3);
    }
}

@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: block;
    }

    nav {
        display: none;
    }

    nav.active {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--midnight);
        padding: 2rem;
        border-bottom: 1px solid var(--primary-blue);
    }
}

/* --- PLAYER HERO (Unified Hub) --- */
.player-hero {
    text-align: center;
    max-width: 1000px;
    width: 100%;
    margin-bottom: 2rem;
}

.welcome-label {
    text-transform: uppercase;
    letter-spacing: 2px;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.9rem;
    font-weight: 600;
}

.player-name {
    font-family: 'Orbitron', sans-serif;
    font-size: 3.5rem;
    margin: 0.5rem 0 3rem;
    background: linear-gradient(135deg, #fff, rgba(255, 255, 255, 0.7));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.player-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.stat-hub-card {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 1.5rem 2rem;
    border-radius: 20px;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    text-align: left;
    transition: all 0.3s;
}

.stat-hub-card:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(10, 122, 255, 0.3);
    transform: translateY(-5px);
}

.stat-hub-card i {
    font-size: 2rem;
    color: var(--primary-blue);
    background: rgba(10, 122, 255, 0.1);
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
}

.stat-info {
    display: flex;
    flex-direction: column;
}

.stat-hub-card .stat-label {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.4);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.stat-hub-card .stat-value {
    font-size: 1.4rem;
    font-weight: 800;
    color: #fff;
    margin-top: 0.2rem;
}

.player-actions {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
}

.hub-cta-btn {
    background: var(--primary-blue);
    color: white;
    padding: 1rem 2rem;
    border-radius: 12px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    box-shadow: 0 10px 20px rgba(10, 122, 255, 0.3);
    transition: all 0.3s;
}

.hub-cta-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(10, 122, 255, 0.4);
}

.hub-secondary-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: white;
    padding: 1rem 2rem;
    border-radius: 12px;
    font-weight: 700;
    transition: all 0.3s;
}

.hub-secondary-btn:hover {
    background: rgba(255, 255, 255, 0.1);
}

.hero {
    min-height: 90vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 2rem 5%;
    position: relative;
}

.hero h1 {
    font-family: 'Orbitron', sans-serif;
    font-size: 5rem;
    font-weight: 900;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, #ffffff, var(--electric-orange), var(--primary-blue));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: slideInDown 1s ease-out;
    text-transform: uppercase;
    letter-spacing: 4px;
}

@keyframes slideInDown {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero p {
    font-size: 1.4rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 3rem;
    animation: slideInUp 1s ease-out 0.3s both;
    max-width: 700px;
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* --- SERVER STATUS BAR (Next-Gen) --- */
.status-bar-container {
    display: inline-flex;
    align-items: center;
    background: rgba(13, 18, 41, 0.7);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 50px;
    padding: 0.6rem 1.5rem;
    gap: 1.5rem;
    margin-top: 3rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    animation: slideInUp 0.8s ease-out 0.6s both;
}

.status-badge {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0.4rem 1rem;
    border-radius: 30px;
    background: rgba(255, 255, 255, 0.03);
    font-family: 'Orbitron', sans-serif;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s;
}

.status-badge.online {
    color: #00ff88;
    border: 1px solid rgba(0, 255, 136, 0.2);
}

.status-badge.offline {
    color: #ff4444;
    border: 1px solid rgba(255, 68, 68, 0.2);
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    position: relative;
}

.online .status-dot {
    background: #00ff88;
    box-shadow: 0 0 10px #00ff88;
    animation: pulseGreen 2s infinite;
}

.offline .status-dot {
    background: #ff4444;
    box-shadow: 0 0 10px #ff4444;
}

.status-players {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 600;
}

.status-players i {
    color: var(--primary-blue);
    font-size: 0.9rem;
}

.player-sep {
    color: rgba(255, 255, 255, 0.2);
    margin: 0 0.1rem;
}

.player-label {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.4);
    text-transform: uppercase;
    margin-left: 0.2rem;
}

@keyframes pulseGreen {
    0% {
        transform: scale(1);
        opacity: 1;
    }

    50% {
        transform: scale(1.4);
        opacity: 0.5;
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}

/* --- PLAYER HUB HEADER --- */
.user-nav-dropdown {
    position: relative;
    display: inline-block;
}

.user-hub-btn {
    background: rgba(10, 122, 255, 0.15) !important;
    border: 1px solid rgba(10, 122, 255, 0.3) !important;
    color: var(--primary-blue) !important;
    padding: 0.5rem 1.2rem;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 700;
}

.user-dropdown-content {
    display: none;
    position: absolute;
    right: 0;
    top: 100%;
    background: rgba(13, 18, 41, 0.95);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    min-width: 180px;
    border-radius: 12px;
    padding: 0.5rem 0;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    z-index: 1000;
    margin-top: 0.5rem;
}

.user-nav-dropdown:hover .user-dropdown-content {
    display: block;
}

.user-dropdown-content a {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0.8rem 1.2rem;
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: all 0.3s;
    font-size: 0.9rem;
    border: none !important;
    border-radius: 0 !important;
}

.user-dropdown-content a:hover {
    background: rgba(255, 255, 255, 0.05);
    color: var(--primary-blue);
}

.login-nav-btn {
    background: var(--electric-orange);
    color: white !important;
    padding: 0.5rem 1.5rem;
    border-radius: 8px;
    font-weight: 700;
}

/* --- FEATURES (Premium Flat) --- */
.features {
    padding: 8rem 5%;
    background: radial-gradient(circle at top, rgba(10, 122, 255, 0.05), transparent);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 4rem auto 0;
}

.feature-card {
    background: rgba(13, 18, 41, 0.6);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    padding: 3rem 2.5rem;
    position: relative;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    border-top: 4px solid transparent;
}

.feature-card:hover {
    transform: translateY(-10px);
    background: rgba(13, 18, 41, 0.8);
    border-color: rgba(255, 255, 255, 0.1);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

/* Feature Accents */
.feature-card.accent-orange {
    border-top-color: var(--electric-orange);
}

.feature-card.accent-blue {
    border-top-color: var(--primary-blue);
}

.feature-card.accent-purple {
    border-top-color: var(--accent-purple);
}

.feature-icon-wrapper {
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 2rem;
    font-size: 1.8rem;
    transition: all 0.3s;
}

.accent-orange .feature-icon-wrapper {
    color: var(--electric-orange);
}

.accent-blue .feature-icon-wrapper {
    color: var(--primary-blue);
}

.accent-purple .feature-icon-wrapper {
    color: var(--accent-purple);
}

.feature-card:hover .feature-icon-wrapper {
    transform: scale(1.1);
    background: rgba(255, 255, 255, 0.1);
}

.feature-card h3 {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.4rem;
    margin-bottom: 1.2rem;
    letter-spacing: 1px;
}

.feature-card p {
    color: rgba(255, 255, 255, 0.5);
    line-height: 1.7;
    font-size: 0.95rem;
}


/* --- CONTENT CONTAINERS & SECTIONS --- */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 4rem 5%;
}

.page-header {
    text-align: center;
    margin-bottom: 4rem;
}

.page-title {
    font-family: 'Orbitron', sans-serif;
    font-size: 3.5rem;
    font-weight: 900;
    background: linear-gradient(135deg, var(--electric-cyan), #ffffff);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-bottom: 1rem;
}

.page-subtitle {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.6);
}

/* --- RULES --- */
.rule-section {
    background: rgba(13, 18, 41, 0.6);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(10, 122, 255, 0.3);
    border-radius: 20px;
    padding: 2.5rem;
    margin-bottom: 2rem;
    position: relative;
    overflow: hidden;
    transition: all 0.3s;
}

.rule-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(180deg, var(--electric-cyan), var(--primary-blue));
}

.rule-section:hover {
    border-color: var(--electric-cyan);
    transform: translateX(10px);
}

.rule-section h2 {
    font-family: 'Orbitron', sans-serif;
    font-size: 2rem;
    color: var(--electric-cyan);
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.rule-list {
    list-style: none;
}

.rule-list li {
    padding: 1rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    padding-left: 2.5rem;
}

.rule-list li::before {
    content: '▶';
    position: absolute;
    left: 0.5rem;
    color: var(--electric-cyan);
    font-size: 0.8rem;
}

.rule-number {
    display: inline-block;
    background: linear-gradient(135deg, var(--primary-blue), var(--electric-cyan));
    color: white;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    text-align: center;
    line-height: 30px;
    font-weight: 700;
    margin-right: 1rem;
}

.important-note {
    background: rgba(255, 68, 68, 0.1);
    border-left: 4px solid #ff4444;
    padding: 1.5rem;
    border-radius: 10px;
    margin: 2rem 0;
}

.important-note h3 {
    color: #ff6b6b;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* --- FRAKTIONEN --- */
.fraktionen-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.fraktion-card {
    background: linear-gradient(135deg, rgba(13, 18, 41, 0.9), rgba(19, 24, 41, 0.8));
    backdrop-filter: blur(20px);
    border: 1px solid rgba(10, 122, 255, 0.3);
    border-radius: 24px;
    padding: 2.5rem;
    position: relative;
    transition: all 0.4s;
}

.fraktion-card:hover {
    transform: translateY(-15px);
    box-shadow: 0 25px 70px var(--neon-glow);
    border-color: var(--electric-cyan);
}

.fraktion-icon {
    font-size: 4rem;
    margin-bottom: 1.5rem;
    display: block;
    text-align: center;
    filter: drop-shadow(0 0 20px var(--electric-cyan));
}

.fraktion-card h3 {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.8rem;
    color: var(--electric-cyan);
    margin-bottom: 1rem;
    text-align: center;
}

.fraktion-type {
    text-align: center;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.5);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.fraktion-features {
    list-style: none;
}

.fraktion-features li {
    padding: 0.5rem 0;
    color: rgba(255, 255, 255, 0.6);
    position: relative;
    padding-left: 1.5rem;
}

.fraktion-features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--electric-cyan);
    font-weight: 700;
}

.fraktion-status {
    margin-top: 1.5rem;
    padding: 0.8rem;
    border-radius: 5px;
    font-size: 0.9rem;
    border-left: 3px solid;
}

.fraktion-status.recruiting {
    background: rgba(0, 217, 255, 0.1);
    border-color: var(--electric-cyan);
    color: var(--electric-cyan);
}

.fraktion-status.closed {
    background: rgba(255, 68, 68, 0.1);
    border-color: #ff4444;
    color: #ff6b6b;
}

.fraktion-status.open {
    background: rgba(0, 255, 136, 0.1);
    border-color: #00ff88;
    color: #00ff88;
}

/* --- LOGIN LINK Pulsing --- */
nav a[href="panel.php"] {
    color: var(--electric-orange) !important;
    border: 1px solid rgba(255, 107, 53, 0.3);
    padding: 0.5rem 1.2rem;
    border-radius: 8px;
    animation: pulseLogin 2s infinite;
}

@keyframes pulseLogin {
    0% {
        box-shadow: 0 0 0 0 rgba(255, 107, 53, 0.4);
    }

    70% {
        box-shadow: 0 0 0 10px rgba(255, 107, 53, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(255, 107, 53, 0);
    }
}

/* --- LEGAL & CONTENT --- */
.content-section {
    background: rgba(13, 18, 41, 0.6);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(10, 122, 255, 0.3);
    border-radius: 20px;
    padding: 2.5rem;
    margin-bottom: 2rem;
}

.content-section h2 {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.8rem;
    color: var(--electric-cyan);
    margin-bottom: 1.5rem;
}

.content-section h3 {
    font-size: 1.3rem;
    color: rgba(255, 255, 255, 0.9);
    margin: 1.5rem 0 1rem;
}

.content-section p {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 1rem;
}

.content-section ul {
    list-style: none;
    padding-left: 1.5rem;
}

.content-section ul li {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 0.5rem;
    position: relative;
}

.content-section ul li::before {
    content: '▸';
    position: absolute;
    left: -1.5rem;
    color: var(--electric-cyan);
}

.info-box {
    background: rgba(10, 122, 255, 0.1);
    border: 1px solid rgba(10, 122, 255, 0.3);
    border-radius: 15px;
    padding: 2rem;
    margin: 2rem 0;
}

.info-box p {
    margin-bottom: 1rem;
}

.highlight-box {
    background: rgba(255, 68, 68, 0.1);
    border-left: 4px solid #ff4444;
    padding: 1.5rem;
    border-radius: 10px;
    margin: 1.5rem 0;
}

/* --- DASHBOARD COMPONENTS (Restored) --- */
.section {
    display: none;
    animation: fadeIn 0.4s ease-out;
}

.section.active {
    display: block;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.stat-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(10, 122, 255, 0.2);
    padding: 2rem;
    border-radius: 16px;
    text-align: center;
    backdrop-filter: blur(10px);
}

.stat-value {
    font-size: 2.2rem;
    font-weight: 800;
    font-family: 'Orbitron', sans-serif;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.5);
    text-transform: uppercase;
    letter-spacing: 1.5px;
}

.table-container {
    background: rgba(13, 18, 41, 0.6);
    border: 1px solid rgba(10, 122, 255, 0.15);
    border-radius: 20px;
    overflow: hidden;
    margin-bottom: 2rem;
}

table {
    width: 100%;
    border-collapse: collapse;
}

th,
td {
    padding: 1.2rem;
    text-align: left;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

th {
    background: rgba(10, 122, 255, 0.05);
    color: var(--primary-blue);
    font-family: 'Orbitron', sans-serif;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

tr:hover td {
    background: rgba(255, 255, 255, 0.02);
}

.badge {
    padding: 0.3rem 0.8rem;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 700;
}

.action-btn {
    padding: 0.6rem 1.2rem;
    border-radius: 8px;
    border: none;
    font-weight: 700;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.3s;
    margin-left: 0.5rem;
}

.action-btn-icon {
    padding: 0.6rem;
    width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-info {
    background: rgba(10, 122, 255, 0.15);
    color: var(--primary-blue);
}

.btn-info:hover {
    background: var(--primary-blue);
    color: #fff;
}

.btn-warning {
    background: rgba(255, 165, 2, 0.15);
    color: #ffa502;
}

.btn-warning:hover {
    background: #ffa502;
    color: #000;
}

.btn-danger {
    background: rgba(255, 71, 87, 0.15);
    color: #ff4444;
}

.btn-danger:hover {
    background: #ff4444;
    color: #fff;
}

.btn-success {
    background: rgba(46, 213, 115, 0.15);
    color: #2ed573;
}

.btn-success:hover {
    background: #2ed573;
    color: #000;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* --- SECTION TYPOGRAPHY --- */
.section-title {
    font-family: 'Orbitron', sans-serif;
    font-size: 3rem;
    font-weight: 900;
    text-align: center;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, #ffffff, var(--primary-blue));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.section-subtitle {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.5);
    text-align: center;
    margin-bottom: 4rem;
}

/* --- WHITELIST PROMO --- */
.whitelist-section {
    padding: 8rem 5%;
    background: rgba(13, 18, 41, 0.4);
    border-top: 1px solid rgba(10, 122, 255, 0.2);
    position: relative;
}

.whitelist-promo-container {
    max-width: 900px;
    margin: 0 auto;
    background: linear-gradient(135deg, rgba(13, 18, 41, 0.8), rgba(10, 122, 255, 0.05));
    backdrop-filter: blur(20px);
    border: 1px solid rgba(10, 122, 255, 0.3);
    border-radius: 30px;
    padding: 4rem;
    text-align: center;
    position: relative;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}

.whitelist-promo-container p.main-desc {
    font-size: 1.1rem;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 2rem;
}

.whitelist-steps {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin: 3rem 0;
    flex-wrap: wrap;
}

.whitelist-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.2rem;
    width: 150px;
}

.step-num {
    width: 45px;
    height: 45px;
    background: var(--primary-blue);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    font-family: 'Orbitron', sans-serif;
    box-shadow: 0 0 20px rgba(10, 122, 255, 0.4);
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.step-text {
    font-size: 0.85rem;
    font-weight: 700;
    color: rgba(10, 122, 255, 0.8);
    text-transform: uppercase;
    letter-spacing: 1px;
}

@media (max-width: 768px) {
    .section-title {
        font-size: 2.2rem;
    }

    .whitelist-promo-container {
        padding: 2.5rem;
    }

    .whitelist-steps {
        gap: 1.5rem;
    }
}

/* --- EVENT TICKER --- */
.ticker-wrapper {
    background: rgba(13, 18, 41, 0.95);
    border-bottom: 1px solid rgba(10, 122, 255, 0.3);
    height: 40px;
    display: flex;
    align-items: center;
    overflow: hidden;
    position: relative;
    z-index: 110;
    backdrop-filter: blur(10px);
}

.ticker-label {
    background: var(--electric-orange);
    color: #fff;
    padding: 0 1.5rem;
    height: 100%;
    display: flex;
    align-items: center;
    font-family: 'Orbitron', sans-serif;
    font-size: 0.75rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    position: relative;
    z-index: 10;
    box-shadow: 10px 0 30px rgba(0, 0, 0, 0.8);
    flex-shrink: 0;
}

.ticker-content {
    display: flex;
    white-space: nowrap;
    animation: tickerMove 40s linear infinite;
    padding-left: 2rem;
    align-items: center;
}

.ticker-item {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.85rem;
    font-weight: 600;
    margin-right: 4rem;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    flex-shrink: 0;
}

.ticker-item i {
    color: var(--primary-blue);
    font-size: 0.8rem;
    filter: drop-shadow(0 0 5px var(--primary-blue));
}

.ticker-item span.highlight {
    color: var(--electric-cyan);
    font-weight: 700;
}

@keyframes tickerMove {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

/* --- FRAKTIONS SHOWCASE --- */
.fraktion-showcase {
    padding: 8rem 5%;
    position: relative;
}

.fraktion-showcase-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2.5rem;
    max-width: 1200px;
    margin: 0 auto;
}

.fraktion-promo-card {
    background: rgba(13, 18, 41, 0.6);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    padding: 0;
    overflow: hidden;
    transition: all 0.4s;
    display: flex;
    flex-direction: column;
}

.fraktion-card-banner {
    height: 150px;
    background: linear-gradient(135deg, rgba(10, 122, 255, 0.2), rgba(255, 107, 53, 0.1));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    position: relative;
}

.fraktion-promo-content {
    padding: 2.5rem;
    text-align: center;
}

.fraktion-promo-card h3 {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.6rem;
    margin-bottom: 0.5rem;
    color: #fff;
}

.recruiting-status {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 2px;
    padding: 0.3rem 0.8rem;
    border-radius: 4px;
    margin-bottom: 1.5rem;
}

.recruiting-status.open {
    background: rgba(0, 255, 136, 0.1);
    color: #00ff88;
    border: 1px solid rgba(0, 255, 136, 0.3);
}

.recruiting-status.closed {
    background: rgba(255, 68, 68, 0.1);
    color: #ff4444;
    border: 1px solid rgba(255, 68, 68, 0.3);
}

.fraktion-promo-card:hover {
    transform: translateY(-10px);
    border-color: rgba(10, 122, 255, 0.4);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.6);
}

/* --- ADMIN POWER TOOLS --- */
#log-content {
    scrollbar-width: thin;
    scrollbar-color: #333 transparent;
}

#log-content::-webkit-scrollbar {
    width: 4px;
}

#log-content::-webkit-scrollbar-thumb {
    background: #444;
    border-radius: 10px;
}

.heat-point {
    border-radius: 50%;
    position: absolute;
    filter: blur(12px);
    animation: pulseHeat 2.5s infinite;
}

@keyframes pulseHeat {
    0% {
        transform: scale(1);
        opacity: 0.6;
    }

    50% {
        transform: scale(1.5);
        opacity: 0.3;
    }

    100% {
        transform: scale(1);
        opacity: 0.6;
    }
}