:root {
    --bg-dark: #0a0a0c;
    --bg-card: #121217;
    --accent-orange: #ff4d00;
    --accent-orange-hover: #ff6a28;
    --text-main: #ffffff;
    --text-muted: #888891;
    --border: rgba(255, 255, 255, 0.08);
}

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: 'Inter', sans-serif;
    margin: 0;
}

header {
    background: rgba(10, 10, 12, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 100;
    
}

.nav-container {
    max-width: 1300px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between; /* Trennt Links (Logo/Nav) von Rechts (Login) */
    align-items: center;            /* Zentriert alles vertikal auf eine Ebene */
    padding: 0.8rem 2rem;
}

.nav-left {
    display: flex;
    align-items: center;            /* Bringt Logo und <ul> auf eine Höhe */
    gap: 40px;                      /* Abstand zwischen Logo und dem ersten Menüpunkt */
}
/* Logo mit Rust-Font Vibe */
.logo {
    font-family: 'Rajdhani', sans-serif;
    font-size: 1.6rem;
    font-weight: 700;
    text-transform: uppercase;
    text-decoration: none;
    color: white;
    line-height: 1;                 /* WICHTIG: Damit das Logo nicht höher als die Buttons ist */
    display: flex;
    align-items: center;
}
.logo span { color: var(--accent-orange); }

.nav-links {
    list-style: none;
    display: flex;
    align-items: center;            /* Stellt sicher, dass auch die Links im Inneren mittig sind */
    gap: 25px;
    margin: 0;
    padding: 0;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-muted);
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    transition: 0.2s;
    display: block;                 /* Macht den Klickbereich sauberer */
    line-height: 1;                 /* Verhindert Höhen-Versatz durch Zeilenabstand */
}
.nav-links a:hover, .nav-links a.active { color: white; }
.nav-links a.store-link { color: var(--accent-orange); }

.steam-login-btn {
    display: flex;
    align-items: center;
    gap: 12px;                  /* Abstand zwischen Icon und Text */
    background: #171a21;        /* Klassisches Steam-Dunkel */
    color: #ffffff;
    text-decoration: none;
    padding: 8px 18px;
    border-radius: 4px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.2s ease-in-out;
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.steam-icon {
    width: 20px;               /* Größe des Icons */
    height: 20px;
    color: #a0a0a0;            /* Standardfarbe des Icons */
    transition: color 0.2s;
}

.steam-login-btn:hover {
    background: rgba(255, 77, 0, 0.1);
    color: white;
    border-color: var(--accent-orange);
}

.steam-login-btn:hover .steam-icon {
    color: #ffffff;            /* Icon wird beim Hover weiß */
}

/* Um sicherzugehen, dass "Login" vertikal mittig zum Icon ist */
.steam-login-btn span {
    line-height: 1;
}

.menu-toggle {
    display: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
}

/* Erstmal den Toggle standardmäßig verstecken */
.menu-toggle {
    display: none;
}

@media (max-width: 992px) {
    /* 1. Hamburger sichtbar machen */
    .menu-toggle {
        display: block !important;
        font-size: 1.5rem;
        cursor: pointer;
        color: white;
    }

    /* 2. Die Navigation MUSS jetzt verschwinden */
    #nav-menu {
        display: none !important; /* Das erzwingt das Verschwinden */
        position: absolute;
        top: 70px; /* Höhe deines Headers */
        left: 0;
        width: 100%;
        background: #0d0d0d;
        z-index: 9999;
        flex-direction: column;
    }

    /* 3. Wenn aktiv, dann anzeigen */
    #nav-menu.active {
        display: flex !important;
    }

    /* 4. Die Links untereinander */
    .nav-links {
        flex-direction: column !important;
        width: 100%;
        gap: 0 !important;
    }

    .nav-links li {
        width: 100%;
        border-bottom: 1px solid #222;
    }

    .nav-links a {
        padding: 20px;
        text-align: center;
        width: 100%;
    }

    /* 5. Platz schaffen: Name im Login-Bereich weg */
    .user-name, .steam-login-btn span {
        display: none !important;
    }
}

/* Hero Content Tuning */
.hero {
    padding: 100px 20px;
    background: radial-gradient(circle at top, rgba(255, 77, 0, 0.05) 0%, transparent 50%);
    text-align: center;
}

.hero h1 {
    font-family: 'Rajdhani', sans-serif;
    font-size: 4rem;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
}
main { flex: 1; margin: 0 auto; width: 100%; }

footer {
    background: #08080a;
    border-top: 1px solid var(--border);
    padding: 60px 20px 20px 20px;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr; /* Die Brand-Spalte ist breiter */
    gap: 60px;
}

.footer-col h4 {
    color: white;
    font-family: 'Rajdhani', sans-serif;
    text-transform: uppercase;
    font-size: 1.1rem;
    margin-bottom: 20px;
    letter-spacing: 1px;
    position: relative;
}

/* Kleiner oranger Akzent-Strich unter der Überschrift */
.footer-col h4::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 20px;
    height: 2px;
    background: var(--accent-orange);
}

.footer-col p {
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.6;
    margin: 15px 0;
}

.footer-col ul {
    list-style: none;
    padding: 0;
}

.footer-col ul li {
    margin-bottom: 10px;
}

.footer-col ul li a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.9rem;
    transition: 0.3s;
}

.footer-col ul li a:hover {
    color: var(--accent-orange);
    padding-left: 5px; /* Kleiner Animationseffekt beim Hover */
}

/* Social Buttons */
.footer-socials {
    display: flex;
    gap: 10px; /* Etwas engerer Abstand zwischen den Buttons */
    margin-top: 20px;
}

.social-icon {
    display: flex;
    align-items: center;
    gap: 6px; /* Kleinerer Abstand zwischen Icon und Text */
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    color: #a1a1aa;
    padding: 6px 12px; /* Etwas kompakteres Padding */
    border-radius: 4px;
    text-decoration: none;
    font-size: 0.7rem; /* Schrift auch einen Ticken kleiner */
    font-weight: 600;
    transition: all 0.3s ease;
}

@media (max-width: 768px) {
    .footer-container {
        /* Von 3 Spalten auf 1 Spalte wechseln */
        grid-template-columns: 1fr; 
        gap: 40px;
        text-align: center;
    }

    .footer-col h4::after {
        /* Zentriert den orangen Strich unter den Überschriften */
        left: 50%;
        transform: translateX(-50%);
    }

    .footer-socials {
        /* Zentriert die Social Buttons */
        justify-content: center;
        flex-wrap: wrap; /* Falls zu viele Buttons da sind, brechen sie um */
    }
}

/* Animation Definition */
@keyframes heroFadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-content {
    animation: heroFadeInUp 1s ease-out forwards;
    opacity: 0; /* Startzustand vor Animation */
}

.status-alert {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 9999; /* Damit es über allem anderen liegt */
    min-width: 300px;
    max-width: 450px;
    
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-radius: 12px;
    
    font-size: 0.9rem;
    font-weight: 500;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-left: 4px solid transparent;
    
    /* Neue Animation: Kommt von rechts reingeflogen */
    animation: slideInRight 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

/* Erfolg & Fehler Farben (bleiben gleich) */
.alert-success {
    background: rgba(46, 204, 113, 0.15);
    border-left-color: #2ecc71;
    color: #2ecc71;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), 0 0 20px rgba(46, 204, 113, 0.1);
}

.alert-error {
    background: rgba(231, 76, 60, 0.15);
    border-left-color: #e74c3c;
    color: #e74c3c;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), 0 0 20px rgba(231, 76, 60, 0.1);
}

/* Animation für den Einflug von rechts */
@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(100px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Animation für das Ausfaden (wird vom JS getriggert) */
.alert-fade-out {
    opacity: 0;
    transform: translateX(50px);
    transition: all 0.5s ease;
}

.alert-content {
    display: flex;
    align-items: center;
    gap: 12px;
}

.alert-close {
    background: none;
    border: none;
    color: currentColor;
    font-size: 1.5rem;
    cursor: pointer;
    opacity: 0.5;
    transition: 0.2s;
}

.alert-close:hover {
    opacity: 1;
}

.alert-icon {
    width: 20px;
    height: 20px;
}

/* Optional: Verzögerung für die Stats, damit erst der Text kommt */
.hero-stats {
    animation: heroFadeInUp 1s ease-out 0.4s forwards;
    opacity: 0;
}

/* Suffix-Styling falls nötig */
.stat-suffix {
    font-size: 1.2rem;
    color: #ffffff;
    margin-left: 2px;
}

/* Die entscheidende Änderung für die Größe */
.footer-svg {
    width: 20px;  /* Vorher 14px */
    height: 20px; /* Vorher 14px */
    stroke: currentColor;
    opacity: 0.6;
    transition: 0.3s;
}

.social-icon:hover {
    background: rgba(255, 77, 0, 0.1);
    color: white;
    border-color: #ff4d00;
    transform: translateY(-1px); /* Nur noch ein minimaler Hop */
}
.social-icon:hover .footer-svg {
    opacity: 1; /* Icon wird beim Hover voll sichtbar */
}
/* Bottom Bar */
.footer-bottom {
    border-top: 1px solid var(--border);
    margin-top: 60px;
    padding-top: 20px;
    text-align: center;
}

.footer-bottom-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 0.8rem;
    color: white;
}

.hero-stats {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 40px;
    margin-top: 50px;
    padding: 20px;
    background: rgba(0, 0, 0, 0.2); /* Sehr dezenter dunkler Hintergrund */
    backdrop-filter: blur(5px);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    display: inline-flex; /* Damit der Hintergrund nicht über die volle Breite geht */
}

.stat-box {
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* User Badge Container */
.user-badge {
    background: rgba(255, 255, 255, 0.05);
    padding: 6px 12px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    position: relative; /* Wichtig für das Dropdown */
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: 0.2s;
}

.user-badge:hover {
    background: rgba(255, 255, 255, 0.1);
}

.user-avatar {
    width: 23px;
    height: 23px;
    border-radius: 6px;
    object-fit: cover;
}

.user-name {
    font-size: 0.75rem;
    color: white;
}

.dropdown-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
}

.dropdown-header img {
    width: 40px;
    height: 40px;
    border-radius: 6px;
}

.dropdown-arrow {
    color: var(--text-muted);
    transition: 0.2s;
}

/* Dropdown Menu (Versteckt bis Hover) */
.user-dropdown {
    position: absolute;
    top: calc(100% + 1px);
    right: 0;
    width: 240px;
    background: #121217; /* Dunklerer Hintergrund für Kontrast */
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.5);
    display: none;
    z-index: 1000;
    overflow: hidden;
    padding: 5px;
}


/* Spezieller Logout Link */
.logout-link:hover {
    background: rgba(255, 77, 77, 0.05) !important;
    color: #ff4d4d !important;
}

/* Container & Background */
.account-link-page {
    background-color: #08080a;
    min-height: 70vh;
    padding: 80px 20px;
    color: #ffffff;
    font-family: 'Inter', sans-serif;
}
.linking-wrapper {
    max-width: 800px;
    margin: 0 auto;
}
/* Header */
.header-content { text-align: center; margin-bottom: 50px; position:relative; z-index: 1;}
.top-badge { 
    background: rgba(255, 77, 0, 0.1); 
    color: #ff4d00; 
    padding: 5px 12px; 
    border-radius: 4px; 
    font-size: 10px; 
    font-weight: 800; 
    text-transform: uppercase;
    margin-left: 15px;
}
.header-content h1 { font-size: 3rem; margin: 15px 0; font-weight: 900; }
.text-orange { color: #ff4d00; }
.header-content p { color: #a1a1aa; max-width: 500px; margin: 0 auto; line-height: 1.6; }

.link-item, .mini-card {
    background: #111114;
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 24px;
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 16px;
}

.link-item.is-connected { border-left: 3px solid #2ecc71; }

/* Grundstyling für alle Icon-Container */
.platform-icon-container, .mini-icon {
    width: 54px;
    height: 54px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    
    /* Nutzt jetzt den direkten Hex-Code für den Hintergrund */
    background-color: var(--platform-hex) !important; 
    
    /* Icon-Farbe auf Weiß */
    color: #ffffff !important; 
    
    border: none;
}

.svg-icon {
    width: 28px;
    height: 28px;
    stroke: #ffffff !important; 
}

/* Hier definierst du jetzt die normalen HTML Colorcodes */
.steam-glow   { --platform-hex: #2ecc71; } /* Steam Grün */
.discord-glow { --platform-hex: #5865f2; } /* Discord Blau */
.yt-glow      { --platform-hex: #e74c3c; } /* YouTube Rot */
.tt-glow      { --platform-hex: #1f1f1f; } /* TikTok Dunkel */

/* Helle Icons durch Farbe & Glow */
.mini-card:has(.yt-glow) {
    border-left: 3px solid rgba(255, 255, 255, 0.05)
}

/* TikTok: Blauer Rand links */
.mini-card:has(.tt-glow) {
    border-left: 3px solid rgba(255, 255, 255, 0.05)
}
/* Details */
.platform-details, .mini-info {
    flex-grow: 1; /* This takes up all available space */
}
.label { font-size: 10px; text-transform: uppercase; color: #ffffff; font-weight: 800; letter-spacing: 1px; }
.platform-details h3 { margin: 2px 0; font-size: 1.25rem; }
.platform-details p { margin: 0; color: #71717a; font-size: 13px; }

.status-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 150px; /* Fixed width for all buttons */
    height: 42px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    transition: 0.2s;
    border: none;
    cursor: pointer;
}
/* Mini-spezifische Anpassungen, falls nötig */
.link-item.mini {
    padding: 16px 24px; /* Etwas flacher für die optionalen Links */
}

/* Buttons in den optionalen Karten */
.action-dark {
    background: #1c1c21;
    color: #a1a1aa;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.action-dark:hover {
    background: #27272a;
    color: #fff;
}

/* Icon-Größe im Button vereinheitlichen */
.btn-icon { width: 16px; height: 16px; }

/* Buttons & Pills */
.status-pill.connected {
    background: rgba(46, 204, 113, 0.1);
    color: #2ecc71;
    padding: 8px 16px;
    border-radius: 6px;
    font-weight: 700;
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Gemeinsame Button-Basis für exakt gleiche Größe */
.status-btn {
display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-width: 100px;
    height: 30px;
    padding: 0 8px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.2s ease;
    border: 1px solid transparent;
}

/* Kleines Icon im Button (analog zum Haken) */
.btn-icon {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

.status-btn.connected { background: rgba(46, 204, 113, 0.1); color: #2ecc71; cursor: default;           /* Standard-Mauszeiger statt Zeigefinger */
    pointer-events: none;      /* Verhindert alle Klick-Events und Hover-Effekte */
    user-select: none;         /* Verhindert, dass der Text markiert wird */}
.status-btn.action-orange { background: #ff4d00; color: #fff; box-shadow: 0 4px 15px rgba(255, 77, 0, 0.3); }
.status-btn.action-dark { background: #1c1c21; color: #a1a1aa; border: 1px solid rgba(255, 255, 255, 0.05); }


/* --- Text Styling --- */
h3, h4 { margin: 2px 0; }
p { margin: 0; color: #71717a; font-size: 13px; }

/* --- Divider --- */
.optional-divider { text-align: center; margin: 40px 0; position: relative; }
.optional-divider::before { content: ""; position: absolute; top: 50%; left: 0; width: 100%; height: 1px; background: rgba(255,255,255,0.05); }
.optional-divider span { background: #08080a; padding: 0 15px; position: relative; color: #3f3f46; font-size: 11px; font-weight: 800; text-transform: uppercase; }
.status-btn.action-orange:hover {
    transform: translateY(-2px);
    filter: brightness(1.1);
    box-shadow: 0 6px 20px rgba(255, 77, 0, 0.4);
}

.status-btn.action-dark:hover {
    transform: translateY(-2px);
    filter: brightness(1.1);
   
}

.link-item:hover{
     transform: translateY(-2px);
}

.mini-card:hover{
     transform: translateY(-2px); 
}

/* Responsivität: Auf sehr kleinen Bildschirmen Breite anpassen */
@media (max-width: 480px) {
    .link-item { flex-direction: column; text-align: center; }
    .status-btn { width: 100%; }
}

.btn-action-orange {
    background: #ff4d00;
    color: #fff;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 700;
    text-decoration: none;
    box-shadow: 0 4px 15px rgba(255, 77, 0, 0.3);
    transition: 0.2s;
}

.btn-action-orange:hover { transform: translateY(-2px); filter: brightness(1.1); }

/* Optional Section */
.optional-divider {
    text-align: center; margin: 40px 0; position: relative;
}
.optional-divider::before {
    content: ""; position: absolute; top: 50%; left: 0; width: 100%; height: 1px; background: rgba(255,255,255,0.05);
}
.optional-divider span {
    background: #08080a; padding: 0 15px; position: relative; color: #3f3f46; text-transform: uppercase; font-size: 11px; font-weight: 800;
}

.mini-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

.mini-info h4 { font-size: 10px; text-transform: uppercase; color: #ffffff; font-weight: 800; letter-spacing: 1px; }
.mini-info p { margin: 0; color: #71717a; font-size: 13px; }
.btn-small {
    margin-left: auto; background: #1c1c21; color: #a1a1aa; padding: 6px 12px; border-radius: 6px; font-size: 11px; font-weight: 700; text-decoration: none;
}

.logout-link:hover svg {
    color: #ff4d4d !important;
}

.user-dropdown a {
    display: block;
    padding: 10px 15px;
    color: #ff4d4d; /* Logout in Rot */
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 600;
}

.user-dropdown a:hover {
    background: rgba(255, 77, 77, 0.1);
}

/* Zeige Dropdown bei Hover */
.user-badge:hover .user-dropdown {
    display: block;
}

.user-badge:hover .dropdown-arrow {
    transform: rotate(180deg);
}

/* Links Style */
.dropdown-links a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    color: #ccc;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    border-radius: 6px;
    transition: 0.2s ease;
}

.dropdown-links a svg {
    opacity: 0.6;
}

.dropdown-links a:hover {
    background: rgba(255, 255, 255, 0.03);
    color: white;
}

.dropdown-links a:hover svg {
    opacity: 1;
    color: var(--accent-orange);
}

.stat-value {
    font-family: 'Rajdhani', sans-serif;
    font-size: 1.8rem;
    font-weight: 700;
    color: white;
    line-height: 1;
}

.stat-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    color: var(--text-muted);
    letter-spacing: 1.5px;
    margin-top: 5px;
    font-weight: 600;
}

.stat-divider {
    width: 1px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
}

/* Trennlinie */
.dropdown-divider {
    height: 1px;
    background: rgba(255, 255, 255, 0.05);
    margin: 5px 10px;
}

.stat-icon {
    width: 24px;
    height: 24px;
    margin-bottom: 8px;
    color: var(--accent-orange);
    opacity: 0.9;
    /* Optionaler Glow-Effekt für die Icons */
    filter: drop-shadow(0 0 5px rgba(255, 77, 0, 0.4));
}

.stat-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 120px; /* Einheitliche Breite für bessere Symmetrie */
}

/* Falls du die Icons lieber NEBEN dem Text hättest, 
   ändere .stat-box zu: */
/*
.stat-box {
    display: grid;
    grid-template-areas: "icon value" "icon label";
    align-items: center;
    column-gap: 15px;
}
.stat-icon { grid-area: icon; margin-bottom: 0; }
.stat-value { grid-area: value; text-align: left; }
.stat-label { grid-area: label; text-align: left; }
*/

/* Responsive Fix für Handys */
@media (max-width: 768px) {
    .hero-stats {
        gap: 20px;
        flex-wrap: wrap;
    }
    .stat-divider { display: none; }
}

.header-info {
    display: flex;
    flex-direction: column;
}

.header-info .username {
    color: white;
    font-weight: 700;
    font-size: 0.95rem;
}

.header-info .steamid {
    color: var(--text-muted);
    font-size: 0.7rem;
    font-family: monospace;
}

/* HERO VIDEO SEKTION */
.hero-video-container {
    position: relative;
    width: 100%;
    height: 70vh; /* Höhe des Video-Bereichs (70% des Bildschirms) */
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
    filter: brightness(0.9);
    opacity: 0.5;
}

/* Dunkles Overlay, damit Text lesbar ist */
.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(10, 10, 12, 0.7) 0%, rgba(10, 10, 12, 0.3) 50%, rgba(10, 10, 12, 1) 100%);
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-content {
    position: relative;
    z-index: 3;
    text-align: center;
    max-width: 900px;
    padding: 0 20px;
}

.hero-subtitle {
    color: var(--accent-orange);
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 3px;
    font-size: 0.9rem;
    display: block;
    margin-bottom: 10px;
}

.hero-content h1 {
    font-family: 'Rajdhani', sans-serif;
    font-size: 4.5rem;
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 20px;
    text-shadow: 0 4px 20px rgba(0,0,0,0.5);
}

.hero-content p {
    color: #ccc;
    font-size: 1.2rem;
    margin-bottom: 35px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Buttons im Hero */
.hero-action-btns {
    display: flex;
    gap: 20px;
    justify-content: center;
}

.btn-main {
    background: var(--accent-orange);
    color: white;
    padding: 15px 35px;
    text-decoration: none;
    font-weight: 700;
    text-transform: uppercase;
    border-radius: 4px;
    transition: 0.3s;
}

.btn-main:hover {
    background: #e64500;
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(255, 77, 0, 0.3);
}

.btn-sub {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    padding: 15px 35px;
    text-decoration: none;
    font-weight: 700;
    text-transform: uppercase;
    border-radius: 4px;
    border: 1px solid rgba(255,255,255,0.1);
    transition: 0.3s;
    backdrop-filter: blur(5px);
}

.btn-sub:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* --- Nexus Rust Profile Master CSS --- */
:root {
    --accent-orange: #ff4d00;
    --text-muted: rgba(255, 255, 255, 0.3);
    --card-bg: rgba(255, 255, 255, 0.02);
    --card-hover: rgba(255, 255, 255, 0.04);
    --border-thin: 1px solid rgba(255, 255, 255, 0.05);
}

.profile-wrapper {
    max-width: 1100px;
    margin: 40px auto;
    padding: 0 20px;
    font-family: 'Lexend', sans-serif;
    color: #fff;
}

/* Header & Economy */

.meta-info-row {
    display: flex;
    gap: 20px;
    margin-top: 12px;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.meta-item b { color: rgba(255,255,255,0.6); font-weight: 500; }
.profile-header {
    background: var(--card-bg);
    border: var(--border-thin);
    border-radius: 16px;
    padding: 30px;
    display: flex;
    align-items: center;
    gap: 30px;
    margin-bottom: 25px;
    backdrop-filter: blur(10px);
    z-index: 5;
    justify-content: space-between;
}

.profile-avatar-hero {
    width: 110px;
    height: 110px;
    border-radius: 12px;
    border: 2px solid var(--accent-orange);
    box-shadow: 0 0 20px rgba(255, 77, 0, 0.15);
    object-fit: cover;
}

.steam-id-sub {
    display: block;
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-top: 5px;
}

.header-economy {
display: flex;
    gap: 12px;
    margin-top: 15px;
}

.weapon-progress-fill {
    width: 0%; /* Startwert */
    height: 100%;
    background: linear-gradient(90deg, var(--accent-orange), #ff8800);
    box-shadow: 0 0 15px rgba(255, 77, 0, 0.4);
    border-radius: 10px;
    /* Geschmeidige Bewegung */
    transition: width 1.5s ease-out; 
}

.eco-pill {
background: rgba(255, 255, 255, 0.03);
    padding: 6px 14px;
    border-radius: 6px;
    font-size: 0.75rem;
    border: var(--border-thin);
    display: flex;
    align-items: center;
    gap: 10px; /* Mehr Abstand zwischen Icon und Text */
}

.eco-pill b { color: #fff; margin-left: 6px; font-weight: 700; }

.eco-pill i { 
    color: grey; 
    font-size: 0.9rem;
    width: 16px;
    text-align: center;
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
    margin-bottom: 30px;
}

.stat-card {
    background: var(--card-bg);
    border: var(--border-thin);
    border-radius: 12px;
    padding: 25px 15px;
    text-align: center;
    transition: all 0.3s ease;
}

.stat-card:hover {
    background: var(--card-hover);
    transform: translateY(-3px);
    border-color: rgba(255, 77, 0, 0.2);
}

.stat-card span {
    display: block;
    font-size: 0.7rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 10px;
}

.stat-card h2 { font-size: 1.8rem; margin: 0; font-weight: 800; }
.text-orange { color: var(--accent-orange); }

/* Weapon Expertise Section */
.expertise-section {
    background: var(--card-bg);
    border: var(--border-thin);
    border-radius: 16px;
    padding: 30px;
}

.expertise-section h3 {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--text-muted);
    margin-bottom: 25px;
}

.weapon-row {
    display: flex;
    align-items: center;
    gap: 25px;
    margin-bottom: 20px;
}

.weapon-name { width: 120px; font-size: 0.95rem; font-weight: 600; color: #eee; }

.weapon-progress-bg {
    flex-grow: 1;
    height: 8px;
    background: rgba(255,255,255,0.03);
    border-radius: 10px;
    overflow: hidden;
}

.weapon-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--accent-orange), #ff8800);
    box-shadow: 0 0 15px rgba(255, 77, 0, 0.4);
    border-radius: 10px;
}

.weapon-stats { 
    width: 90px; 
    text-align: right; 
    font-size: 0.85rem; 
    color: var(--text-muted);
    font-weight: 500;
}

.server-selector {
    display: flex;
    gap: 8px;
    margin: 15px 0;
}

.server-tab {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.4);
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 0.7rem;
    cursor: pointer;
    text-transform: uppercase;
    font-weight: 700;
    transition: all 0.2s ease;
}

.server-tab.active {
    background: var(--accent-orange);
    color: #fff;
    border-color: var(--accent-orange);
    box-shadow: 0 0 10px rgba(255, 77, 0, 0.2);
}

.server-tab:hover:not(.active) {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}

.online-status {
    background: rgba(46, 204, 113, 0.1) !important;
    color: #2ecc71 !important;
}

/* Media Query für Tablets und Smartphones */
@media (max-width: 768px) {
    .profile-wrapper {
        margin: 20px auto;
        padding: 0 15px;
    }

    /* 1. Header: Avatar oben, Infos darunter zentriert */
    .profile-header {
        flex-direction: column;
        text-align: center;
        padding: 20px;
        gap: 15px;
    }

    .profile-avatar-hero {
        width: 90px;
        height: 90px;
    }

    .profile-info h1 {
        justify-content: center;
        font-size: 1.4rem !important;
    }

    /* 2. Economy & Tabs: Zentrieren und Umbrechen */
    .header-economy, 
    .server-selector, 
    .meta-info-row {
        justify-content: center;
        flex-wrap: wrap;
        gap: 10px;
    }

    .meta-info-row {
        flex-direction: column;
        align-items: center;
        gap: 5px;
    }

    /* 3. Stats Grid: Von 4 Spalten auf 2 Spalten wechseln */
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .stat-card {
        padding: 15px 10px;
    }

    .stat-card h2 {
        font-size: 1.4rem;
    }

    /* 4. Weapon Expertise: Namen über den Balken schieben */
    .weapon-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
        margin-bottom: 25px;
        position: relative;
    }

    .weapon-name {
        width: 100%;
        font-size: 0.85rem;
    }

    .weapon-progress-bg {
        width: 100%;
        height: 10px;
    }

    .weapon-stats {
        width: 100%;
        text-align: right;
        font-size: 0.8rem;
        margin-top: -5px;
    }
}

/* Extra klein (kleine Smartphones) */
@media (max-width: 480px) {
    .stats-grid {
        /* Optional: Bei ganz kleinen Handys alles untereinander */
        grid-template-columns: 1fr;
    }
    
    .eco-pill {
        width: 100%;
        justify-content: space-between;
    }
}

/* Leaderboard Spezifisch */
.leaderboard-container {
    background: var(--card-bg);
    border: var(--border-thin);
    border-radius: 16px;
    padding: 20px;
    backdrop-filter: blur(10px);
}

.nexus-table {
    width: 100%;
    border-collapse: collapse;
}

.nexus-table th {
    text-align: left;
    padding: 15px;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--text-muted);
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.nexus-table td {
    padding: 12px 15px;
    border-bottom: 1px solid rgba(255,255,255,0.02);
    font-size: 0.9rem;
    vertical-align: middle;
}

/* Rank Styling */
.rank-badge {
    background: rgba(255,255,255,0.05);
    padding: 4px 8px;
    border-radius: 4px;
    font-weight: 700;
    text-align: center;
    font-size: 0.8rem;
}

.top-rank-1 .rank-badge { background: var(--accent-orange); color: white; box-shadow: 0 0 10px rgba(255, 77, 0, 0.3); }

/* Player Info */
.player-cell { display: flex; align-items: center; gap: 12px; }
.mini-avatar { width: 32px; height: 32px; border-radius: 6px; border: 1px solid rgba(255,255,255,0.1); }

/* Mini Bars analog zum Profil */
.mini-progress-container {
    width: 120px;
    height: 4px;
    background: rgba(255,255,255,0.03);
    border-radius: 10px;
    overflow: hidden;
}

.mini-progress-fill {
    height: 100%;
    background: var(--accent-orange);
    box-shadow: 0 0 8px rgba(255, 77, 0, 0.4);
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 25px;
}

.page-btn {
    background: rgba(255,255,255,0.03);
    border: var(--border-thin);
    color: white;
    width: 35px;
    height: 35px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s;
}

.page-btn.active, .page-btn:hover {
    background: var(--accent-orange);
    border-color: var(--accent-orange);
}

.view-btn {
    color: var(--text-muted);
    transition: color 0.2s;
}

.view-btn:hover { color: var(--accent-orange); }

@media (max-width: 768px) {
    .hide-mobile { display: none; }
}

/* Controls & Inputs */
.leaderboard-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding: 0 5px;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.nexus-select, .nexus-input {
    background: rgba(255, 255, 255, 0.05);
    border: var(--border-thin);
    color: #fff;
    border-radius: 4px;
    padding: 4px 8px;
    margin: 0 8px;
    outline: none;
}

.nexus-input { width: 50px; text-align: center; }

/* Sortable Headers */
.sortable { cursor: pointer; transition: color 0.2s; }
.sortable:hover { color: #fff; }
.sortable i { font-size: 0.7rem; margin-left: 5px; opacity: 0.3; }
.sortable.active { color: var(--accent-orange); }
.sortable.active i { opacity: 1; }

/* Leaderboard Footer */
.leaderboard-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.05);
}

.showing-info { font-size: 0.8rem; color: var(--text-muted); }

.page-numbers { display: flex; gap: 5px; }
.page-nav-btn {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 0 10px;
    transition: color 0.2s;
}
.page-nav-btn:hover { color: #fff; }

/* Mini Avatar Fix */
.mini-avatar {
    width: 32px;
    height: 32px;
    border-radius: 4px;
    border: 1px solid rgba(255, 77, 0, 0.3);
    object-fit: cover;
}

.stat-highlight { font-weight: 700; color: #fff; }

/* --- Leaderboard UI Fixes --- */

/* Entfernt die hässlichen Standard-Pfeile bei Nummer-Inputs */
input[type=number]::-webkit-inner-spin-button, 
input[type=number]::-webkit-outer-spin-button { 
    -webkit-appearance: none; 
    margin: 0; 
}
input[type=number] { -moz-appearance: textfield; }

/* Nexus Custom Select & Input */
.nexus-select, .nexus-input {
    background: #0f0f0f;
    border: 1px solid rgba(255, 77, 0, 0.2);
    color: #fff;
    padding: 6px 12px;
    border-radius: 6px;
    outline: none;
    font-family: inherit;
    font-size: 0.85rem;
    transition: all 0.3s ease;
}

.nexus-select {
    cursor: pointer;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='white' viewBox='0 0 24 24'%3E%3Cpath d='M7 10l5 5 5-5z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 8px center;
    background-size: 16px;
    padding-right: 30px;
    appearance: none; /* Wichtig für Custom Pfeil */
}

.nexus-input:focus, .nexus-select:hover {
    border-color: var(--accent-orange);
    box-shadow: 0 0 10px rgba(255, 77, 0, 0.1);
}

/* Avatar Border passend zum Profilbild im Header */
.mini-avatar {
    width: 35px;
    height: 35px;
    border-radius: 6px;
    border: 1.5px solid rgba(255, 77, 0, 0.3);
    object-fit: cover;
}

.rank-badge {
    background: rgba(255, 255, 255, 0.05);
    color: #999;
    padding: 5px 12px;
    border-radius: 6px;
    font-weight: 800;
    font-size: 0.75rem;
    display: inline-block;
}

.top-rank-1 .rank-badge {
    background: var(--accent-orange);
    color: #fff;
    box-shadow: 0 0 15px rgba(255, 77, 0, 0.3);
}

.pagination a {
    text-decoration: none;
    color: inherit;
    display: flex;
    align-items: center;
    justify-content: center;
}

.page-btn.active {
    background-color: var(--orange); /* Oder deine Akzentfarbe */
    color: white;
    pointer-events: none; /* Aktive Seite nicht anklickbar */
}

.nexus-input-group {
    position: relative;
    display: flex;
    align-items: center;
}
.search-icon {
    position: absolute;
    left: 15px;
    color: var(--text-muted);
}
.search-input {
    padding-left: 40px !important;
    min-width: 250px;
}

/* Spezifische Anpassungen für die Map-Header-Region */
.mapvote-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

/* Falls noch nicht global definiert: Das Button-Styling */
.server-selector {
    display: flex;
    gap: 10px;
    background: rgba(0, 0, 0, 0.2);
    padding: 5px;
    border-radius: 8px;
    border: 1px solid #333;
}

.server-tab {
    background: transparent;
    border: none;
    color: #888;
    padding: 8px 18px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.server-tab i {
    font-size: 0.9rem;
}

.server-tab:hover {
    color: #fff;
    background: rgba(255, 102, 0, 0.1);
}

.server-tab.active {
    background: var(--orange, #ff6600);
    color: #000;
}

@media (max-width: 768px) {
    .mapvote-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .server-selector {
        width: 100%;
        justify-content: space-between;
    }
}

