:root {
    --bg-dark: #020617;
    --bg-gradient: radial-gradient(circle at 50% 0%, #1e293b 0%, #020617 100%);
    
    /* Modern Palette */
    --primary: #3b82f6;
    --primary-glow: rgba(59, 130, 246, 0.5);
    --secondary: #8b5cf6;
    
    --surface: rgba(30, 41, 59, 0.4);
    --surface-highlight: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.08);
    
    --text-main: #f1f5f9;
    --text-muted: #94a3b8;
    
    --success: #10b981;
    --danger: #ef4444;
    --warning: #f59e0b;
    
    --radius-xl: 24px;
    --radius-lg: 16px;
    --radius-md: 12px;
    --sidebar-width: 260px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    -webkit-font-smoothing: antialiased;
}

body {
    background: var(--bg-dark);
    background-image: var(--bg-gradient);
    background-attachment: fixed;
    color: var(--text-main);
    min-height: 100vh;
    padding-bottom: 100px; /* Mehr Platz für die schwebende Navbar */
}

/* Utility: Glass Effect */
.glass-panel {
    background: var(--surface);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
}

/* Login Container */
.login-screen {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: radial-gradient(circle at center, #1e293b 0%, #020617 70%);
}

.card {
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-xl);
    padding: 2.5rem 2rem;
    width: 100%;
    max-width: 400px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    position: relative;
    overflow: hidden;
}

/* Subtle glow behind cards */
.card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(59,130,246,0.1) 0%, transparent 60%);
    pointer-events: none;
    z-index: 0;
}

.card > * {
    position: relative;
    z-index: 1;
}

.brand {
    text-align: center;
    margin-bottom: 2.5rem;
}

.icon-box {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    box-shadow: 0 10px 25px -5px var(--primary-glow);
}

/* Inputs */
.input-group {
    margin-bottom: 1.25rem;
}

input, select {
    width: 100%;
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    padding: 1rem;
    color: white;
    outline: none;
    transition: all 0.3s ease;
    font-size: 14px;
}

input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.15);
    background: rgba(15, 23, 42, 0.9);
}

/* Buttons */
.btn-primary {
    width: 100%;
    background: linear-gradient(135deg, var(--primary), #2563eb);
    color: white;
    border: none;
    padding: 1rem;
    border-radius: var(--radius-md);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.3);
}

.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.4);
}

.btn-primary:active {
    transform: scale(0.98);
}

/* Dashboard UI */
header {
    background: rgba(2, 6, 23, 0.8);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    padding: 1rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    border-bottom: 1px solid var(--glass-border);
    z-index: 100;
}

/* Mobile Dashboard Layout */
.dashboard-top-row {
    display: flex;
    flex-direction: column;
}

.news-section {
    order: -1;
    width: 100%;
}

.balance-card {
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    position: relative;
    padding: 2rem;
    border-radius: var(--radius-xl);
    margin: 1.5rem 0;
    border: 1px solid var(--glass-border);
    overflow: hidden;
}

/* Decorative gradient blob for balance card */
.balance-card::after {
    content: '';
    position: absolute;
    top: -50px;
    right: -50px;
    width: 150px;
    height: 150px;
    background: var(--primary);
    filter: blur(80px);
    opacity: 0.2;
    pointer-events: none;
}

.balance-amount {
    font-size: 2.5rem;
    font-weight: 800;
    margin-top: 0.5rem;
    background: linear-gradient(to right, #fff, #94a3b8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Navbar unten */
.nav-bottom {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(15, 23, 42, 0.75);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 0.75rem 2rem;
    border-radius: 100px;
    display: flex;
    gap: 2rem;
    box-shadow: 0 20px 40px -10px rgba(0,0,0,0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
    z-index: 900;
}

.nav-item {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.65rem;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 0.5px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    transition: all 0.3s;
    position: relative;
}

.nav-item.active {
    color: var(--primary);
}

.nav-item.active::after {
    content: '';
    position: absolute;
    bottom: -12px;
    width: 4px;
    height: 4px;
    background: var(--primary);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--primary);
}

/* Scrollbar Styling (Modern) */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--bg-dark); }
::-webkit-scrollbar-thumb { background: var(--surface); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--primary); }


/* Druck-Layout */
@media print {
  .no-print { display: none !important; }
  body { background: white; color: black; }
  .card { border: none; box-shadow: none; width: 100%; }
}

/* Container für das Icon, damit der Badge sich darauf bezieht */
.nav-item {
    position: relative; /* Wichtig! */
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
}

/* Der Badge selbst */
.badge {
    position: absolute;
    /* Positionierung oben rechts vom Icon */
    top: -2px; 
    right: calc(50% - 18px); /* Zentriert sich relativ zum Icon in der Mitte */
    
    background: var(--danger);
    color: white;
    font-size: 9px;
    font-weight: 800;
    min-width: 16px;
    height: 16px;
    padding: 0 4px;
    border-radius: 50%; /* Kreisrund */
    
    display: flex;
    align-items: center;
    justify-content: center;
    
    /* Weißer oder dunkler Rand, damit es sich vom Icon abhebt */
    border: 2px solid var(--bg-dark); 
    
    /* Leuchteffekt für Aufmerksamkeit */
    box-shadow: 0 0 8px rgba(239, 68, 68, 0.6);
    z-index: 10;
    pointer-events: none; /* Klicks gehen durch den Badge aufs Icon */
}

/* Schwebender Freigabe-Button (unten links) */
.floating-alert {
    position: fixed;
    bottom: 100px;
    left: 20px;
    background: var(--danger);
    color: white;
    padding: 12px 20px;
    border-radius: 50px;
    box-shadow: 0 10px 25px rgba(239, 68, 68, 0.4);
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 12px;
    font-weight: bold;
    z-index: 90;
    text-decoration: none;
    border: 1px solid rgba(255,255,255,0.2);
    transition: transform 0.2s;
    animation: popIn 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.floating-alert:active { transform: scale(0.95); }
@keyframes popIn { from { transform: scale(0); } to { transform: scale(1); } }

/* Statistik Grid */
.stats-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; margin-bottom: 20px; }
.stat-card { 
    background: var(--surface); 
    padding: 15px; 
    border-radius: var(--radius-lg); 
    border: 1px solid var(--glass-border); 
    display: flex; 
    flex-direction: column; 
    justify-content: center; 
}
.stat-value { font-size: 16px; font-weight: 900; color: white; margin-top: 5px; word-break: break-all; }
.stat-label { font-size: 9px; color: var(--text-muted); text-transform: uppercase; font-weight: bold; letter-spacing: 0.5px; }
.stat-icon { margin-bottom: 8px; color: var(--primary); }

/* Interaktive Karten & Menü */
.clickable-card { cursor: pointer; transition: transform 0.2s, background 0.2s; }
.clickable-card:active { transform: scale(0.98); background: rgba(255,255,255,0.05); }

.menu-btn {
    width: 100%;
    background: var(--surface);
    border: 1px solid var(--glass-border);
    padding: 15px;
    border-radius: var(--radius-md);
    color: white;
    font-weight: bold;
    display: flex; align-items: center; gap: 15px;
    margin-bottom: 10px;
    cursor: pointer;
    text-align: left;
    font-size: 13px;
    transition: all 0.2s;
}
.menu-btn:hover { background: rgba(255,255,255,0.05); border-color: var(--primary); }
.menu-btn i { color: var(--text-muted); }
.menu-btn.danger { border-color: rgba(239, 68, 68, 0.3); color: var(--danger); }
.menu-btn.danger i { color: var(--danger); }

/* Helper Classes from stats.php cleanup */
.header-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.header-title {
  font-size: 14px;
  text-transform: uppercase;
}

.main-content {
  max-width: 500px;
  margin: 0 auto;
  padding: 20px 20px 100px 20px;
}

.section-heading {
  font-size: 10px;
  color: var(--text-muted);
  text-transform: uppercase;
  margin-bottom: 15px;
  letter-spacing: 1px;
  font-weight: 700;
}

.text-white { color: white; }
.text-green { color: var(--success); }
.text-red { color: var(--danger); }
.text-blue { color: var(--primary); }
.text-orange { color: var(--warning); }

/* New Dashboard Components */
.account-card {
    background: var(--surface);
    padding: 18px;
    border-radius: var(--radius-lg);
    margin-bottom: 12px;
    border: 1px solid var(--glass-border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: transform 0.2s;
}

.account-card:active {
    transform: scale(0.98);
}

.transaction-item {
    background: rgba(255,255,255,0.02);
    padding: 12px;
    border-radius: var(--radius-md);
    margin-bottom: 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border: 1px solid transparent;
    transition: background 0.2s;
}

.transaction-item:hover {
    background: rgba(255,255,255,0.04);
    border-color: var(--glass-border);
}

.pill-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: rgba(255,255,255,0.1);
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    text-decoration: none;
    font-size: 10px;
    margin-top: 10px;
    transition: background 0.2s;
}

.pill-btn:hover {
    background: rgba(255,255,255,0.2);
}

/* Modal / Overlay System */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal.show {
    display: flex;
    opacity: 1;
}

.modal-content {
    background: #0f172a;
    padding: 25px;
    width: 90%;
    max-width: 400px;
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    transform: scale(0.95);
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.modal.show .modal-content {
    transform: scale(1);
}

.tab-group {
    display: flex;
    background: rgba(255, 255, 255, 0.05);
    padding: 4px;
    border-radius: 12px;
    margin-bottom: 20px;
}

.tab-btn { flex: 1; padding: 10px; text-align: center; cursor: pointer; border-radius: 10px; font-size: 12px; font-weight: bold; color: var(--text-muted); transition: all 0.2s; }
.tab-btn.active { background: rgba(255, 255, 255, 0.1); color: white; }

/* =========================================
   DESKTOP / TABLET ADAPTION (Responsive)
   ========================================= */
@media (min-width: 1024px) {
    body {
        padding-left: var(--sidebar-width); /* Platz für Sidebar */
        padding-bottom: 0;
    }

    /* Header Anpassung */
    header {
        left: auto;
        width: 100%;
        padding: 1.5rem 3rem;
    }

    /* Navigation wird zur Sidebar */
    .nav-bottom {
        top: 0;
        left: 0;
        bottom: 0;
        width: var(--sidebar-width);
        height: 100vh;
        transform: none;
        border-radius: 0;
        flex-direction: column;
        justify-content: flex-start;
        align-items: flex-start;
        padding: 100px 20px 20px 20px; /* Platz oben für Logo/Brand */
        background: rgba(15, 23, 42, 0.95); /* Weniger transparent für Lesbarkeit */
        border-right: 1px solid var(--glass-border);
        border-top: none;
        border-left: none;
        border-bottom: none;
        gap: 10px;
    }

    /* Brand Logo in die Sidebar integrieren (Visueller Trick) */
    .nav-bottom::before {
        content: 'OFFSHORE BANK';
        position: absolute;
        top: 30px;
        left: 30px;
        font-weight: 900;
        font-size: 18px;
        color: white;
        letter-spacing: 2px;
        text-transform: uppercase;
        background: linear-gradient(to right, #fff, var(--primary));
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
    }

    .nav-item {
        flex-direction: row;
        width: 100%;
        padding: 15px 20px;
        border-radius: 12px;
        gap: 15px;
    }

    .nav-item span {
        font-size: 14px;
        text-transform: none; /* Normal case looks better on desktop sidebar */
        font-weight: 600;
    }

    .nav-item i {
        width: 20px;
        height: 20px;
    }

    .nav-item:hover {
        background: rgba(255,255,255,0.05);
        color: white;
    }

    .nav-item.active {
        background: rgba(59, 130, 246, 0.15);
        color: var(--primary);
    }
    
    .nav-item.active::after {
        display: none; /* Punkt unten entfernen */
    }
    
    /* Badge Positionierung in Sidebar */
    .badge {
        right: 15px;
        top: 50%;
        transform: translateY(-50%);
    }

    /* Content Layouts */
    .main-content, main {
        max-width: none !important; /* Unbegrenzt */
        padding: 30px 40px !important;
        margin: 0 auto;
    }

    /* Dashboard Grid Layout */
    .dashboard-top-row {
        display: flex;
        flex-direction: row;
        flex-wrap: wrap;
        gap: 30px;
        align-items: start;
        margin-bottom: 30px;
    }

    .balance-card {
        order: 1;
        margin: 0; /* Reset margin für Desktop */
        width: 320px;
        flex-shrink: 0;
    }

    .accounts-section {
        order: 2;
        flex: 1;
        min-width: 320px;
    }

    .news-section {
        order: 3;
        width: 300px;
        flex-shrink: 0;
        margin-bottom: 0 !important;
    }

    /* Accounts Grid innerhalb des Dashboards */
    .accounts-grid {
        display: grid;
        grid-template-columns: 1fr; /* Einzelne Konten untereinander */
        gap: 15px;
    }

    /* Admin Grid Layouts */
    .stats-grid {
        grid-template-columns: repeat(4, 1fr); /* 4 Spalten für Stats */
    }
    
    .hero-stat {
        grid-column: span 2;
    }

    /* Login Screen Desktop */
    .login-screen {
        background: radial-gradient(circle at 30% 50%, #1e293b 0%, #020617 60%);
    }
    
    .login-screen .card {
        max-width: 450px;
        padding: 3rem;
    }

    /* Utility: 2 Spalten Grid (z.B. für Transfer) */
    .grid-2-col {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 30px;
        align-items: start;
    }

    /* Utility: User Cards Grid (Admin Users) */
    .users-grid {
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
        gap: 20px;
    }
    
    /* Verstecke "ODER" Trenner auf Desktop, da nebeneinander */
    .desktop-hide { display: none !important; }

    /* Freigabe-Button auf Desktop verschieben (da Sidebar links ist) */
    .floating-alert {
        left: 290px;
        bottom: 30px;
        z-index: 1000;
    }
}

/* Casino Floating Button (Overlay) */
.casino-fab {
    position: fixed;
    right: 20px;
    bottom: 100px; /* Über der Navbar auf Mobile */
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, #f59e0b, #d97706);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 25px rgba(245, 158, 11, 0.5);
    color: white;
    z-index: 900;
    transition: transform 0.2s, box-shadow 0.2s;
    border: 2px solid rgba(255,255,255,0.2);
    text-decoration: none;
}
.casino-fab:hover {
    transform: scale(1.1) rotate(10deg);
    box-shadow: 0 15px 35px rgba(245, 158, 11, 0.6);
}

/* Toggle Switch für Demo/Echtgeld */
.toggle-container {
    display: flex;
    background: rgba(0,0,0,0.3);
    border-radius: 20px;
    padding: 4px;
    border: 1px solid var(--glass-border);
    width: fit-content;
}
.toggle-btn { padding: 4px 12px; border-radius: 16px; font-size: 10px; font-weight: bold; cursor: pointer; color: var(--text-muted); transition: all 0.3s; text-transform: uppercase; text-decoration: none; display: flex; align-items: center; gap: 6px; }
.toggle-btn.active { color: white; box-shadow: 0 2px 10px rgba(0,0,0,0.2); }
.toggle-btn.active.real { background: linear-gradient(135deg, #22c55e, #15803d); }

/* Casino UI Components */
.category-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-bottom: 25px; }
.category-card { 
    background: var(--surface); border: 1px solid var(--glass-border); 
    padding: 15px; border-radius: 16px; text-align: center; 
    transition: transform 0.2s; cursor: pointer;
    display: flex; flex-direction: column; align-items: center; gap: 8px;
}
.category-card:active { transform: scale(0.98); background: rgba(255,255,255,0.05); }
.category-icon { width: 36px; height: 36px; background: rgba(255,255,255,0.05); border-radius: 12px; display: flex; align-items: center; justify-content: center; color: var(--primary); margin-bottom: 5px; }

.game-scroll { display: flex; gap: 12px; overflow-x: auto; padding-bottom: 10px; margin-bottom: 25px; scrollbar-width: none; }
.game-scroll::-webkit-scrollbar { display: none; }
.game-card { 
    min-width: 100px; width: 100px; height: 130px; 
    background: #1e293b; border-radius: 12px; border: 1px solid var(--glass-border); 
    position: relative; overflow: hidden; flex-shrink: 0; cursor: pointer;
}
.game-card-img { width: 100%; height: 100%; background: linear-gradient(45deg, #0f172a, #334155); display: flex; align-items: center; justify-content: center; color: rgba(255,255,255,0.2); }
.game-card-title { position: absolute; bottom: 0; left: 0; width: 100%; padding: 8px 4px; font-size: 9px; font-weight: bold; background: linear-gradient(to top, rgba(0,0,0,0.9), transparent); text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.win-list { background: var(--surface); border-radius: 16px; border: 1px solid var(--glass-border); overflow: hidden; }
.win-item { display: flex; justify-content: space-between; align-items: center; padding: 10px 15px; border-bottom: 1px solid rgba(255,255,255,0.05); font-size: 11px; }
.win-item:last-child { border-bottom: none; }
.win-amount { font-weight: bold; color: #22c55e; }
.win-multi { font-weight: bold; color: #f59e0b; }

/* Games Grid in Modal */
.games-modal-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(90px, 1fr));
    gap: 10px;
}

/* --- MOBILE CASINO OPTIMIZATIONS --- */
.header-action-btn {
    width: auto !important; /* Override btn-primary full width */
    padding: 8px 16px;
    font-size: 11px;
    height: auto;
    display: flex;
    align-items: center;
    gap: 6px;
}

@media (max-width: 768px) {
    header {
        padding: 12px 15px; /* Kompakterer Header */
    }

    .category-grid {
        gap: 12px; /* Etwas mehr Abstand */
    }

    .category-card {
        padding: 20px 10px; /* Größere Touch-Fläche */
    }

    .game-card {
        width: 120px; /* Größere Karten auf Mobile */
        height: 160px;
    }
}

@media (max-width: 380px) {
    /* Auf sehr kleinen Handys Text im Header-Button ausblenden */
    .header-action-btn span { display: none; }
    .header-action-btn { padding: 8px; }
}

/* Hero Card (Mines Banner) */
.hero-card {
    background: linear-gradient(135deg, #1e293b, #0f172a);
    border: 1px solid var(--primary);
    position: relative;
    overflow: hidden;
    padding: 0;
    height: 180px;
    border-radius: var(--radius-xl);
    box-shadow: 0 10px 30px -5px rgba(0, 0, 0, 0.5);
    transition: transform 0.2s, box-shadow 0.2s;
    text-decoration: none;
    display: block;
}
.hero-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 35px -5px rgba(0, 0, 0, 0.6);
}

/* Dice Variant */
.hero-card.dice {
    border-color: var(--warning);
    background: linear-gradient(135deg, #1e293b, #2a1b02);
}
.hero-card.dice .hero-bg-icon {
    color: var(--warning);
}

/* Blackjack Variant */
.hero-card.blackjack {
    border-color: var(--success);
    background: linear-gradient(135deg, #064e3b, #022c22);
}
.hero-card.blackjack .hero-bg-icon {
    color: var(--success);
}

/* Sports Variant */
.hero-card.sports {
    border-color: #3b82f6;
    background: linear-gradient(135deg, #172554, #1e3a8a);
}
.hero-card.sports .hero-bg-icon {
    color: #3b82f6;
}

/* Hero Grid */
.hero-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    margin-bottom: 30px;
}
@media (min-width: 768px) {
    .hero-grid {
        grid-template-columns: 1fr 1fr;
    }
}
.hero-bg-icon {
    position: absolute; right: -20px; top: -20px; opacity: 0.1; transform: rotate(15deg); pointer-events: none;
}
.hero-content {
    padding: 25px; position: relative; z-index: 1; height: 100%; 
    display: flex; flex-direction: column; justify-content: center;
}

/* --- MOBILE CASINO TWEAKS --- */
@media (max-width: 768px) {
    /* 1. Toggle Switch Full Width */
    .toggle-container {
        width: 100%;
        justify-content: space-between;
        padding: 5px;
        background: rgba(0, 0, 0, 0.3); /* Glass Background */
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
        border-radius: 20px;
        margin-bottom: 20px;
        box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    }
    .toggle-btn {
        flex: 1;
        justify-content: center;
        padding: 10px 0;
        font-size: 12px;
    }

    /* Hero Card Mobile */
    .hero-card {
        height: auto;
        min-height: 160px;
    }
    .hero-content {
        padding: 20px;
    }

    /* 2. Coming Soon Boxes */
    .game-scroll {
        margin-left: -20px; /* Break out of container padding */
        margin-right: -20px;
        padding: 0 20px 10px 20px;
        scroll-padding-left: 20px;
    }
    .game-card {
        min-width: 110px;
        background: #1e293b; /* Solid Background */
        box-shadow: 0 4px 8px rgba(0,0,0,0.3);
    }

    /* 3. Last Wins Design (Cards instead of List) */
    .win-list {
        background: transparent;
        border: none;
        border-radius: 0;
        box-shadow: none;
    }
    .win-item {
        background: #1e293b; /* Solid Background für Sichtbarkeit */
        border: 1px solid rgba(255, 255, 255, 0.1);
        border-radius: 12px;
        margin-bottom: 8px;
        padding: 12px 15px;
        box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    }

    /* 4. Mobile Bottom Sheet Modals */
    .modal { align-items: flex-end; padding: 0; }
    .modal-content {
        width: 100%; max-width: 100%;
        border-radius: 24px 24px 0 0; margin: 0;
        padding: 30px 25px 50px 25px; /* Mehr Platz unten für Safe Area */
        animation: slideUp 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
    }
    @keyframes slideUp { from { transform: translateY(100%); } to { transform: translateY(0); } }
}
