/* ========================================================== */
/* 1. CONFIGURATIE & VARIABELEN (HET KLEURENPALET) */
/* ========================================================== */
:root {
    --primary-gold: #ffc107;
    /* De iconische goudkleur */
    --primary-gold-glow: rgba(255, 193, 7, 0.4);
    --danger-red: #ff4444;
    --success-green: #00c851;
    --accent-blue: #33b5e5;

    --bg-dark: #0a0a0a;
    /* Diepzwart voor de achtergrond */
    --panel-bg: rgba(20, 20, 20, 0.85);
    /* Matglas effect */
    --panel-border: 1px solid rgba(255, 255, 255, 0.46);

    --font-main: 'Poppins', sans-serif;
    --shadow-soft: 0 8px 32px 0 rgba(0, 0, 0, 0.5);
    --radius: 12px;
    /* Mooie afgeronde hoeken */
}

/* ========================================================== */
/* 2. BASIS (BODY & SCROLLBAR) */
/* ========================================================== */
* {
    box-sizing: border-box;
}

body {
    background-color: var(--bg-dark);
    color: #e0e0e0;
    font-family: var(--font-main);
    line-height: 1.6;
    margin: 0;
    padding: 0;
    overflow-x: hidden;

    /* Je achtergrond banners blijven behouden! */
    background-image:
        url('assets/images/flame_banner.png'),
        url('assets/images/flame_banner.png'),
        url('assets/images/kartel_koning_banner.png');
    background-repeat: repeat-y, repeat-y, repeat-y;
    background-position: left top, right top, center top;
    background-attachment: fixed, fixed, fixed;
    background-size: 400px auto, 400px auto, min(100vw - 160px, 930px) auto;
}

/* Een moderne scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #111;
}

::-webkit-scrollbar-thumb {
    background: #444;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-gold);
}

a {
    text-decoration: none;
    color: inherit;
    transition: 0.3s;
}

ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

/* ========================================================== */
/* 3. LAYOUT STRUCTUUR */
/* ========================================================== */
.game-container {
    min-height: 100vh;
    /* We gebruiken geen grid op de body, maar margin voor de sidebar */
}

.main-content {
    margin-left: 280px;
    /* Iets bredere sidebar voor modernere look */
    padding-bottom: 40px;
    transition: margin-left 0.3s ease;
}

.content-wrapper {
    padding: 30px 40px;
    max-width: 1400px;
    margin: 0 auto;
}

/* ========================================================== */
/* 4. DE "GLAS" SIDEBAR */
/* ========================================================== */
.sidebar {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: 280px;
    background: rgba(15, 15, 15, 0.95);
    /* Bijna ondoorzichtig voor leesbaarheid */
    border-right: 1px solid rgba(255, 215, 0, 0.3);
    display: flex;
    flex-direction: column;
    z-index: 1000;
    backdrop-filter: blur(10px);
    /* Het matglas effect */
    box-shadow: 5px 0 30px rgba(0, 0, 0, 0.5);

    /* Achtergrond afbeelding herstellen */
    background-image: url('assets/images/kartel_koning_banner.png');
    background-size: cover;
    background-blend-mode: overlay;
    /* Mengt de afbeelding met de donkere kleur */
}

.sidebar::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.95));
    z-index: -1;
}

.sidebar-header {
    padding: 30px 20px;
    text-align: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.sidebar-header h3 {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary-gold);
    text-transform: uppercase;
    letter-spacing: 3px;
    text-shadow: 0 0 15px var(--primary-gold-glow);
}

.sidebar nav {
    flex: 1;
    padding: 20px 15px;
    overflow-y: auto;
}

.sidebar nav a {
    display: flex;
    align-items: center;
    padding: 14px 18px;
    margin-bottom: 8px;
    color: #aaa;
    border-radius: var(--radius);
    font-weight: 500;
    border: 1px solid transparent;
    transition: all 0.3s ease;
}

.sidebar nav a:hover,
.sidebar nav a.active {
    background: linear-gradient(90deg, rgba(255, 193, 7, 0.15), transparent);
    color: #fff;
    border-left: 4px solid var(--primary-gold);
    padding-left: 25px;
    /* Schuif effect */
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.sidebar nav a i {
    width: 24px;
    margin-right: 12px;
    font-size: 1.1rem;
}

.sidebar nav a.active i {
    color: var(--primary-gold);
}

/* Submenu Styling */
.submenu {
    background: rgba(0, 0, 0, 0.3);
    border-radius: var(--radius);
    margin-top: 5px;
    overflow: hidden;
    max-height: 0;
    transition: max-height 0.4s ease;
}

.has-submenu:hover>.submenu {
    max-height: 600px;
}

.submenu a {
    padding-left: 50px;
    font-size: 0.9em;
    opacity: 0.8;
}

.submenu a:hover {
    background: rgba(255, 255, 255, 0.05);
    padding-left: 55px;
    border-left: none;
}

/* ========================================================== */
/* 5. DE "GLAS" TOPBAR */
/* ========================================================== */
.top-bar {
    position: sticky;
    top: 0;
    z-index: 100;
    padding: 15px 40px;
    background: var(--panel-bg);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 215, 0, 0.2);
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
}

.top-bar-right {
    display: flex;
    gap: 20px;
    align-items: center;
}

/* Deze overlay is nu nog belangrijker voor de leesbaarheid */
.top-bar::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    /* Donkere, semi-transparante overlay */
    z-index: -1;
}

.top-bar-button {
    display: inline-flex;
    align-items: center;
    padding: 8px 14px;
    background-color: rgba(61, 61, 61, 0.8);
    /* Semi-transparant donkergrijs */
    border: 1px solid rgba(85, 85, 85, 0.8);
    /* Semi-transparante rand */
    border-radius: 5px;
    color: #f0f0f0;
    text-decoration: none;
    font-size: 0.9rem;
    transition: background-color 0.2s ease, border-color 0.2s ease;
    backdrop-filter: blur(2px);
    /* Optioneel: subtiel blur-effect achter de knop */
}

.top-bar-button:hover {
    background-color: #4da6ff;
    text-decoration: none;
    border-color: #4da6ff;
}

.top-bar-button i {
    margin-right: 8px;
}

/* Stat Chips */
.player-stats .stat-link {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 8px 16px;
    border-radius: 50px;
    /* Pill shape */
    font-size: 0.85rem;
    font-weight: 600;
    color: #ddd;
}

.player-stats .stat-link:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--primary-gold);
    transform: translateY(-2px);
    color: #fff;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.player-stats i {
    color: var(--primary-gold);
    margin-right: 8px;
}

/* ========================================================== */
/* 6. CONTENT BLOKKEN & CARDS */
/* ========================================================== */
.block {
    background: var(--panel-bg);
    border: var(--panel-border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-soft);
    margin-bottom: 30px;
    overflow: hidden;
    transition: transform 0.3s ease;
}

.block:hover {
    border-color: rgba(255, 255, 255, 0.2);
}

.block-header {
    padding: 20px 25px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.03), transparent);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.block-title {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 700;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.block-content {
    padding: 25px;
}

.block-content.p-0 {
    padding: 0;
}

/* ========================================================== */
/* 7. TYPOGRAFIE & TITELS */
/* ========================================================== */
h1 {
    font-size: 2.5rem;
    font-weight: 800;
    color: #fff;
    text-align: center;
    margin-bottom: 40px;
    text-transform: uppercase;
    letter-spacing: 4px;
    /* Mooie text glow */
    text-shadow: 0 0 20px rgba(0, 0, 0, 0.8), 0 0 5px var(--primary-gold-glow);

    /* Verwijder de 3D-box voor een schonere look boven de content */
    background: none;
    border: none;
    box-shadow: none;
    backdrop-filter: none;
}

/* ========================================================== */
/* 8. KNOPPEN & FORMULIEREN (MODERN) */
/* ========================================================== */
.action-button {
    display: inline-block;
    width: 100%;
    padding: 14px 20px;
    background: linear-gradient(135deg, #333, #222);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
}

.action-button:hover {
    background: linear-gradient(135deg, var(--primary-gold), #d4a000);
    color: #000;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(255, 193, 7, 0.3);
    border-color: transparent;
}

input,
select,
textarea {
    width: 100%;
    padding: 12px 15px;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    color: #fff;
    font-family: var(--font-main);
    transition: 0.3s;
}

input:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: var(--primary-gold);
    background: rgba(0, 0, 0, 0.5);
    box-shadow: 0 0 0 3px rgba(255, 193, 7, 0.1);
}

/* ========================================================== */
/* 9. SPECIFIEKE ELEMENTEN (GRIDS & COMPONENTEN) */
/* ========================================================== */

/* Tabellen Moderniseren */
.table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
}

.table th {
    text-align: left;
    padding: 15px 20px;
    color: #888;
    font-size: 0.85rem;
    text-transform: uppercase;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.table td {
    padding: 15px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.02);
    font-size: 0.95rem;
}

.table tr:hover {
    background: rgba(255, 255, 255, 0.02);
}

/* --- NIEUWE DASHBOARD 3-KOLOMS LAYOUT --- */
.dashboard-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 20px;
    grid-template-areas:
        "missies status inventaris"
        "gebeurtenissen gebeurtenissen updates";
    /* NIEUW: Updates rechtsonder */
}

/* Wijs de blokken toe aan de gebieden */
.dashboard-grid>*:nth-child(1) {
    grid-area: missies;
    align-self: start;
}

.dashboard-grid>*:nth-child(2) {
    grid-area: status;
    align-self: start;
}

.dashboard-grid>*:nth-child(3) {
    grid-area: inventaris;
    align-self: start;
}

/* PAS DEZE AAN: Gebeurtenissen pakt nu 2 kolommen */
.dashboard-grid>*:nth-child(4) {
    grid-area: gebeurtenissen;
}

.profile-page-grid {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 30px;
}

/* VOEG DEZE TOE: Updates pakt de laatste kolom */
.dashboard-grid>*:nth-child(5) {
    grid-area: updates;

}

/* Stat Lijstjes */
.stat-list li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px dashed rgba(255, 255, 255, 0.1);
}

.stat-list li:last-child {
    border-bottom: none;
}

.stat-label {
    display: flex;
    align-items: center;
    color: #aaa;
    font-size: 0.9rem;
}

.stat-label i {
    width: 25px;
    color: var(--primary-gold);
}

.stat-list span {
    font-weight: 700;
    color: #fff;
}

/* Progress Bars */
.progress-bar-container {
    flex-grow: 1;
    height: 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    margin: 0 15px;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    border-radius: 4px;
    background: linear-gradient(90deg, var(--success-green), #00e676);
    box-shadow: 0 0 10px rgba(0, 200, 81, 0.5);
}

/* Shop Cards */
.shop-grid,
.products-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
}

.item-card,
.product-card {
    background: rgba(30, 30, 30, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: var(--radius);
    overflow: hidden;
    transition: 0.3s;
}

.item-card:hover,
.product-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary-gold);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.item-image-container,
.product-image {
    background: radial-gradient(circle at center, #333, #111);
    padding: 20px;
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.item-image-container img,
.product-image {
    max-height: 100%;
    max-width: 100%;
    object-fit: contain;
    filter: drop-shadow(0 10px 10px rgba(0, 0, 0, 0.5));
}

/* Feedback */
.feedback {
    padding: 15px 20px;
    border-radius: 8px;
    margin-bottom: 25px;
    font-weight: 600;
    border-left: 4px solid;
    display: flex;
    align-items: center;

    /* NIEUW: Zorgt voor betere leesbaarheid bovenop de vlammen/achtergrond */
    backdrop-filter: blur(5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.feedback-succes {
    /* Minder transparant: 0.3 (30%) in plaats van 0.1 */
    background: rgba(0, 200, 81, 0.3);
    border-color: var(--success-green);
    color: #fff;
    /* Witte tekst leest vaak prettiger op een donkerdere achtergrond */
    text-shadow: 0 0 2px rgba(0, 0, 0, 0.5);
}

.feedback-fout {
    /* Minder transparant: 0.3 (30%) in plaats van 0.1 */
    background: rgba(255, 68, 68, 0.3);
    border-color: var(--danger-red);
    color: #fff;
    /* Witte tekst */
    text-shadow: 0 0 2px rgba(0, 0, 0, 0.5);
}


/* Admin Styling */
label {
    display: block;
    margin-bottom: 5px;
    color: #aaa;
    font-size: 0.9em;
    font-weight: 600;
}

/* ========================================================== */
/* BANK PAGINA STYLING (HERSTELD) */
/* ========================================================== */

.bank-container {
    max-width: 600px;
    margin: 0 auto;
    /* Centreert het blok */
}

.bank-container h1 {
    text-align: center;
    /* Centreert de titel */
    /* Reset de 3D-box stijl voor deze specifieke titel als je dat wilt, 
       of laat het zo voor consistentie. */
}

.bank-quick-actions {
    display: flex;
    gap: 10px;
    justify-content: center;
}

/* Styling voor de kleine 'Sneltoets' knoppen */
.action-button.small-btn {
    padding: 8px 15px;
    font-size: 0.85rem;
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.2);
    color: #aaa;
    font-weight: normal;
}

.action-button.small-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    transform: none;
    /* Geen 'spring' effect */
}

/* ========================================================== */
/* DASHBOARD SCROLL STYLING */
/* ========================================================== */

/* Voor de bovenste 3 blokken (Missies, Status, Inventaris/Uitrusting) */
.scroll-content-small {
    max-height: 250px;
    /* Pas dit getal aan als je ze hoger/lager wilt */
    overflow-y: auto;
    /* Activeert de scrollbalk indien nodig */
    padding-right: 5px;
    /* Voorkomt dat tekst onder de scrollbalk verdwijnt */
}

/* Voor het brede logboek beneden */
.scroll-content-large {
    max-height: 400px;
    /* Een mooi groot venster voor de logs */
    overflow-y: auto;
}

/* Maakt de scrollbalk zelf wat mooier (optioneel, werkt in Chrome/Safari/Edge) */
.scroll-content-small::-webkit-scrollbar,
.scroll-content-large::-webkit-scrollbar {
    width: 6px;
}

.scroll-content-small::-webkit-scrollbar-thumb,
.scroll-content-large::-webkit-scrollbar-thumb {
    background-color: #444;
    border-radius: 3px;
}

/* ========================================================== */
/* MODERN PROFIEL DESIGN (Facebook-stijl) */
/* ========================================================== */

/* 1. De Cover Foto */
.profile-cover {
    height: 240px;
    width: 100%;
    background-size: cover;
    background-position: center;
    border-radius: 12px 12px 0 0;
    position: relative;
    z-index: 1;
}

/* 2. De Profiel Header Balk (Onder de cover) */
.profile-nav-bar {
    background-color: #1f1f1f;
    /* Fallback */
    border: 1px solid #333;
    border-top: none;
    border-radius: 0 0 12px 12px;
    padding: 0 30px 15px 30px;
    margin-bottom: 30px;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    /* Lijnt alles onderaan uit */
    position: relative;
    z-index: 2;
    min-height: 80px;
    /* Zorgt voor voldoende hoogte onder de cover */
}

/* 3. De "Zwevende" Avatar - NU MET !IMPORTANT */
.profile-avatar-container {
    position: relative;
    margin-top: -120px !important;
    /* TREK OMHOOG: Dit MOET werken */
    margin-right: 25px;
    margin-bottom: 10px;
    z-index: 10;
    /* Zeker weten bovenop alles */
    flex-shrink: 0;
    /* Voorkom dat de avatar kleiner wordt */
}

.profile-avatar-lg {
    width: 160px !important;
    height: 160px !important;
    border-radius: 50%;
    border: 6px solid #1f1f1f;
    /* Iets dikkere rand voor contrast */
    object-fit: cover;
    background-color: #101213;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.6);
    display: block;
}

/* 4. Naam en Status Info */
.profile-info-header {
    flex-grow: 1;
    padding-bottom: 5px;
    margin-bottom: 10px;
}

/* Reset de titelstijl voor de profielnaam */
h1.profile-name-title {
    background-color: transparent;
    border: none;
    box-shadow: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    display: flex;
    text-align: left;
    margin: 0 0 5px 0;
    padding: 0;
    letter-spacing: normal;
    font-size: 2.5rem;
    color: #ffffff;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.8);
    align-items: center;
}

.profile-dead-icon {
    color: #aaa;
    font-size: 0.5em;
    /* Iets kleiner relatief aan de titel */
    margin-left: 15px;
    vertical-align: middle;
}

.profile-tagline {
    color: #aaa;
    font-size: 1rem;
    display: flex;
    gap: 15px;
    font-weight: 500;
}

.profile-tagline span i {
    color: #ffd700;
    margin-right: 5px;
}

/* 5. Actieknoppen */
.profile-actions-header {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    /* Iets hoger dan de onderrand */
}

/* ========================================================== */
/* HERSTEL PROFIEL LAYOUT (FIX) */
/* ========================================================== */

/* We targeten beide mogelijke namen om zeker te zijn dat het werkt */
.profile-page-grid,
.social-profile-grid,
.profile-grid {
    display: grid !important;
    /* Linkerkolom 350px (stats), Rechterkolom de rest (bio/items) */
    grid-template-columns: 250px 1fr !important;
    gap: 30px;
    align-items: start;
}



/* --- VIP Shop Knop --- */
.vip-button {
    background: linear-gradient(45deg, #FFD700, #FFA500);
    color: #000 !important;
    /* Zwarte tekst op goud */
    font-weight: 800;
    border: 1px solid #fff;
    box-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
    animation: pulse-gold 2s infinite;
}

.vip-button i {
    color: #000;
    /* Zwart icoon */
}

.vip-button:hover {
    background: linear-gradient(45deg, #FFA500, #FFD700);
    transform: scale(1.05);
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.8);
}

@keyframes pulse-gold {
    0% {
        box-shadow: 0 0 0 0 rgba(255, 215, 0, 0.7);
    }

    70% {
        box-shadow: 0 0 0 10px rgba(255, 215, 0, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(255, 215, 0, 0);
    }
}

/* --- VIP Kroon Styling --- */
.vip-crown {
    color: #ffd700;
    /* Goud */
    margin-left: 8px;
    /* Ruimte tussen naam en kroon */
    font-size: 0.8em;
    /* Iets kleiner dan de tekst */
    vertical-align: middle;
    /* Netjes uitlijnen */
    text-shadow: 0 0 8px rgba(255, 215, 0, 0.6);
    /* Gouden gloed effect */
    animation: crown-glow 2s infinite alternate;
    /* Zacht pulseren */
}

@keyframes crown-glow {
    from {
        text-shadow: 0 0 5px rgba(255, 215, 0, 0.4);
    }

    to {
        text-shadow: 0 0 12px rgba(255, 215, 0, 0.9);
    }
}

/* ========================================================== */
/* WINKEL TABBLADEN (HERSTELD & GEUPGRADED) */
/* ========================================================== */

.shop-tabs {
    display: flex;
    gap: 15px;
    /* Ruimte tussen de tabs */
    margin-bottom: 30px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    /* Subtiele lijn onder de tabs */
    padding-bottom: 5px;
}

.tab-button {
    background: transparent;
    border: none;
    outline: none;
    padding: 10px 20px;
    font-family: var(--font-main);
    font-size: 1rem;
    font-weight: 600;
    color: #888;
    /* Standaard grijs */
    cursor: pointer;
    position: relative;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Hover Effect */
.tab-button:hover {
    color: #fff;
    text-shadow: 0 0 8px rgba(255, 255, 255, 0.3);
}

/* Actieve Staat (Geselecteerd) */
.tab-button.active {
    color: var(--primary-gold);
    /* Goudkleurige tekst */
    text-shadow: 0 0 15px var(--primary-gold-glow);
    /* Gouden gloed */
}

/* Het gouden lijntje onder de actieve tab */
.tab-button.active::after {
    content: '';
    position: absolute;
    bottom: -6px;
    /* Plaatst de lijn precies op de border van de container */
    left: 0;
    width: 100%;
    height: 3px;
    background-color: var(--primary-gold);
    box-shadow: 0 -2px 10px var(--primary-gold-glow);
    /* Gloed effect omhoog */
    border-radius: 3px 3px 0 0;
}

/* ========================================================== */
/* NIGHT CITY STYLING (city.php) */
/* ========================================================== */

/* 1. De Stad Container (De Achtergrond) */
.city-wrapper {
    background-image:
        linear-gradient(to bottom, rgba(10, 10, 10, 0.3), rgba(10, 10, 10, 0.9)),
        /* Fade naar zwart onderaan */
        url('assets/images/night_city_bg.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    border-radius: 12px;
    padding: 40px;
    min-height: 80vh;
    /* Vul het scherm */
    box-shadow: inset 0 0 50px #000;
    position: relative;
    overflow: hidden;
}

/* 2. De Grid */
.city-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    position: relative;
    z-index: 2;
}

/* 3. De Neon Locatie Kaarten */
.city-card {
    background: rgba(20, 20, 20, 0.7);
    /* Donker glas */
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 30px;
    text-align: center;
    text-decoration: none;
    color: #fff;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    /* Spring-effect */
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 250px;
}

/* Iconen en Tekst */
.city-card i {
    font-size: 4rem;
    margin-bottom: 20px;
    transition: 0.4s;
    text-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
}

.city-card h3 {
    font-size: 1.5rem;
    font-weight: 800;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #fff;
}

.city-card p {
    color: #aaa;
    font-size: 0.9rem;
    margin-top: 10px;
    opacity: 0;
    /* Verberg beschrijving standaard */
    transform: translateY(20px);
    transition: 0.4s;
}

/* 4. Hover Effecten (De Magie) */
.city-card:hover {
    transform: translateY(-10px) scale(1.02);
    background: rgba(30, 30, 30, 0.9);
    border-color: var(--neon-color);
    box-shadow: 0 0 30px var(--neon-glow);
}

.city-card:hover i {
    transform: scale(1.1);
    color: var(--neon-color);
    text-shadow: 0 0 20px var(--neon-glow);
}

.city-card:hover p {
    opacity: 1;
    transform: translateY(0);
}

/* 5. Kleurvariaties per Locatie */
.card-crime {
    --neon-color: #ff4444;
    --neon-glow: rgba(255, 68, 68, 0.4);
}

.card-hospital {
    --neon-color: #00C851;
    --neon-glow: rgba(0, 200, 81, 0.4);
}

.card-shop {
    --neon-color: #33b5e5;
    --neon-glow: rgba(51, 181, 229, 0.4);
}

.card-casino {
    --neon-color: #ffd700;
    --neon-glow: rgba(255, 215, 0, 0.4);
}

.card-bank {
    --neon-color: #AA66CC;
    --neon-glow: rgba(170, 102, 204, 0.4);
}

.card-drugs {
    --neon-color: #ffbb33;
    --neon-glow: rgba(255, 187, 51, 0.4);
}

.card-jail {
    --neon-color: #ff8800;
    --neon-glow: rgba(255, 136, 0, 0.4);
}

.card-murder {
    --neon-color: #D50000;
    --neon-glow: rgba(213, 0, 0, 0.6);
}

.card-realestate {
    --neon-color: #00E5FF;
    --neon-glow: rgba(0, 229, 255, 0.4);
}

/* Cyaan/Lichtblauw */
.card-rld {
    --neon-color: #F50057;
    --neon-glow: rgba(245, 0, 87, 0.4);
}

/* Fel Roze */

/* Bloedrood */

/* ========================================================== */
/* DRUGS PAGINA GRID (HERSTEL) */
/* ========================================================== */

.drugs-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 30px;
    align-items: stretch;
    /* Zorgt voor gelijke hoogte */
    margin-top: 30px;
}

/* Zorg dat de blokken flex-containers zijn, zodat 'margin-top: auto' werkt */
.drugs-grid .block {
    display: flex;
    flex-direction: column;
    height: 100%;
    /* Vul de volledige hoogte van de grid-cel */
}

.drugs-grid .block-content {
    flex-grow: 1;
    /* Laat de content groeien om de ruimte te vullen */
    display: flex;
    flex-direction: column;
}

/* Specifieke mobiele aanpassing (blijft hetzelfde, maar voor de zekerheid) */
@media (max-width: 1200px) {
    .drugs-grid {
        grid-template-columns: 1fr;
    }
}

/* --- drugs.php: Voorraad Afbeelding Styling (Compact) --- */
.inventory-image-container {
    width: 100%;
    height: 250px;
    /* Vaste, compacte hoogte */
    padding: 0;
    /* Geen padding meer, strak tegen de rand */
    background-color: #101213;
    border-bottom: 1px solid #333;
    position: relative;
    overflow: hidden;
}

.inventory-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* Snijdt de afbeelding netjes bij om te passen */
    border-radius: 0;
    /* Geen ronde hoeken nodig als het strak zit */
    display: block;
    opacity: 0.8;
    /* Subtiel effect */
    transition: opacity 0.3s;
}

.inventory-image:hover {
    opacity: 1;
}

/* De tekst over de afbeelding heen leggen voor ruimtebesparing (Optioneel, maar mooi) */
.inventory-image-container p {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    margin: 0;
    padding: 5px;
    background: rgba(0, 0, 0, 0.7);
    color: #ccc;
    font-size: 0.8em;
    text-align: center;
    font-style: italic;
}

/* ========================================================== */
/* TRAINING PAGINA STYLING */
/* ========================================================== */

.centered-container {
    max-width: 850px;
    /* Maakt het venster compacter en leesbaarder */
    margin: 0 auto;
    /* Centreert het blok in het midden van het scherm */
}

/* Zorgt voor wat extra ruimte in de tabelcellen voor een 'luchtige' look */
.centered .table td,
.centered-container .table th {
    padding: 15px;
    vertical-align: middle;
}

/* ========================================================== */
/* GEVANGENIS BANNER */
/* ========================================================== */
.prison-banner {
    width: 100%;
    height: 250px;
    /* Een mooie, brede banner */
    background-image: url('assets/images/prison_banner.png');
    background-size: cover;
    background-position: center;
    border-radius: 12px;
    margin-bottom: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);

    /* Een donkere overlay voor de sfeer */
    position: relative;
}

.prison-banner::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    border-radius: 12px;
}

/* ========================================================== */
/* ZIEKENHUIS PAGINA STYLING (ONAFHANKELIJK) */
/* ========================================================== */

.hospital-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.hospital-card {
    background: rgba(30, 30, 30, 0.6);
    /* Glassmorphism */
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    position: relative;
}

.hospital-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary-gold);
    /* Gouden rand bij hover */
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.hospital-image-container {
    height: 200px;
    background: radial-gradient(circle at center, #2c3e50, #000);
    /* Medisch blauw/zwart verloop */
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 2px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.hospital-image-container img {
    max-height: 100%;
    max-width: 100%;
    object-fit: contain;
    filter: drop-shadow(0 0 10px rgba(0, 0, 0, 0.5));
}

.hospital-details {
    padding: 20px;
    text-align: center;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.hospital-details h3 {
    color: #fff;
    margin: 0 0 10px 0;
    font-size: 1.3rem;
}

.hospital-details p {
    color: #aaa;
    font-size: 0.95rem;
    margin-bottom: 15px;
}

.hospital-price {
    font-size: 1.5rem;
    color: var(--success-green);
    /* Groen voor genezing */
    font-weight: 700;
    margin-bottom: 15px;
}

/* Speciale stijl voor het SPOEDGEVAL blok */
.emergency-block {
    border: 2px solid var(--danger-red);
    background: rgba(255, 68, 68, 0.05);
    box-shadow: 0 0 20px rgba(255, 68, 68, 0.2);
}

.emergency-block .block-header {
    background: var(--danger-red);
    color: white;
}

/* ========================================================== */
/* CASINO STYLING (LOBBY & GAMES) */
/* ========================================================== */

/* 1. De Lobby Wrapper */
.casino-wrapper {
    background-image:
        linear-gradient(to bottom, rgba(20, 20, 20, 0.6), #0a0a0a),
        url('assets/images/casino_bg.png');
    background-size: cover;
    background-position: center;
    border-radius: 12px;
    padding: 40px;
    min-height: 80vh;
    position: relative;
    box-shadow: inset 0 0 100px #000;
}

/* 2. De Game Grid (Selectie) */
.casino-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

/* 3. De Game Cards */
.casino-card {
    background: rgba(20, 20, 20, 0.8);
    border: 1px solid rgba(255, 215, 0, 0.1);
    border-radius: 15px;
    overflow: hidden;
    transition: 0.3s;
    text-align: center;
    position: relative;

}

.casino-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary-gold);
    box-shadow: 0 0 30px var(--primary-gold-glow);
}

.casino-card-img {
    height: 200px;
    width: 100%;
    object-fit: cover;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.casino-card-content {
    padding: 20px;
}

.casino-card h3 {
    color: var(--primary-gold);
    margin: 0 0 10px 0;
    font-size: 1.4rem;
}

.casino-card p {
    color: #aaa;
    font-size: 0.9rem;
}

/* 4. De Active Game Room (Het speelscherm) */
.game-room {
    max-width: 800px;
    margin: 0 auto;
    background: rgba(10, 10, 10, 0.9);
    border: 1px solid var(--primary-gold);
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 0 50px rgba(0, 0, 0, 0.8);
    position: relative;
}

.game-room-header {
    text-align: center;
    margin-bottom: 30px;
    border-bottom: 1px solid rgba(255, 215, 0, 0.2);
    padding-bottom: 20px;
}

.back-to-casino {
    display: inline-block;
    margin-bottom: 20px;
    color: #aaa;
    font-size: 0.9rem;
}

.back-to-casino:hover {
    color: #fff;
    text-decoration: underline;
}

/* ========================================================== */
/* NEXT-GEN FRUITAUTOMAAT STYLING */
/* ========================================================== */

/* 1. De Kast (Frame) */
.slot-machine-frame {
    background: linear-gradient(180deg, #222, #111);
    border: 4px solid #ffd700;
    border-radius: 20px;
    padding: 30px;
    box-shadow:
        0 0 20px rgba(255, 215, 0, 0.2),
        /* Buitenste gloed */
        inset 0 0 50px rgba(0, 0, 0, 0.8);
    /* Binnenste diepte */
    position: relative;
    max-width: 600px;
    margin: 0 auto;
}

/* Decoratieve lichten bovenop */
.slot-machine-frame::before {
    content: 'KARTEL SLOTS';
    display: block;
    text-align: center;
    font-size: 2rem;
    font-weight: 900;
    color: #ffd700;
    text-shadow: 0 0 10px #e65100, 0 0 20px #e65100;
    margin-bottom: 20px;
    letter-spacing: 5px;
    background: linear-gradient(to bottom, #ffd700, #e65100);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* 2. Het Venster van de Rollen */
.slot-window {
    background: #000;
    border: 2px solid #444;
    border-radius: 10px;
    padding: 10px;
    display: flex;
    gap: 10px;
    box-shadow: inset 0 0 20px #000;
    /* Diepte in het venster */
    position: relative;
    overflow: hidden;
    /* Verbergt de 'draaiende' symbolen */
}

/* De glans over het glas (Reflection) */
.slot-window::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 50%;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0.1), transparent);
    pointer-events: none;
    z-index: 10;
}

/* 3. De Rollen (Reels) */
.slot-reel {
    background: linear-gradient(to bottom, #e0e0e0 0%, #fff 40%, #fff 60%, #e0e0e0 100%);
    /* Metaal-look */
    flex: 1;
    height: 150px;
    /* Hoogte van 1 zichtbaar symbool */
    border-radius: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    /* Grootte van de emoji's */
    box-shadow:
        inset 0 10px 20px rgba(0, 0, 0, 0.3),
        /* Schaduw boven (kromming) */
        inset 0 -10px 20px rgba(0, 0, 0, 0.3);
    /* Schaduw onder (kromming) */
    position: relative;
    overflow: hidden;
}

/* De animatie class (wordt toegevoegd tijdens het draaien) */
.slot-reel.spinning span {
    animation: spin-blur 0.1s infinite linear;
    filter: blur(2px);
    /* Bewegingsonscherpte */
}

@keyframes spin-blur {
    0% {
        transform: translateY(-50%);
        opacity: 0.5;
    }

    100% {
        transform: translateY(50%);
        opacity: 0.5;
    }
}

/* 4. De Bediening */
.slot-controls {
    margin-top: 30px;
    display: flex;
    justify-content: center;
    gap: 20px;
    align-items: center;
}

/* De grote SPIN knop */
.spin-button-lg {
    background: radial-gradient(circle, #ff4444, #cc0000);
    border: 4px solid #880000;
    color: #fff;
    font-size: 1.5rem;
    font-weight: bold;
    width: 100px;
    height: 100px;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 5px 0 #550000, 0 10px 20px rgba(0, 0, 0, 0.5);
    transition: all 0.1s;
    text-transform: uppercase;
    text-shadow: 0 2px 2px rgba(0, 0, 0, 0.5);
}

.spin-button-lg:active {
    transform: translateY(5px);
    box-shadow: 0 0 0 #550000, inset 0 0 20px rgba(0, 0, 0, 0.5);
    border-color: #aa0000;
}

.bet-input-group {
    display: flex;
    flex-direction: column;
    text-align: left;
}

/* ========================================================== */
/* FRUITAUTOMAAT PRIJSLIJST (PAYTABLE) */
/* ========================================================== */

/* 1. De Container die alles naast elkaar zet */
.slots-layout {
    display: flex;
    flex-wrap: wrap;
    /* Zorgt dat het op mobiel onder elkaar komt */
    gap: 40px;
    justify-content: center;
    align-items: flex-start;
    /* Lijnt uit aan de bovenkant */
}

/* Pas de bestaande machine aan zodat hij flexibel is */
.slot-machine-frame {
    flex: 2;
    /* De machine krijgt iets meer ruimte */
    min-width: 320px;
    /* Niet te smal worden */
    margin: 0;
    /* Reset de auto-margin die we eerder hadden */
}

/* 2. Het Luxe Prijslijst Frame */
.paytable-frame {
    flex: 1;
    min-width: 300px;
    background: linear-gradient(160deg, rgba(30, 30, 30, 0.9), rgba(10, 10, 10, 0.95));
    border: 2px solid var(--primary-gold);
    border-radius: 20px;
    padding: 25px;
    /* Luxe gouden gloed */
    box-shadow:
        0 0 20px rgba(255, 193, 7, 0.15),
        inset 0 0 30px rgba(0, 0, 0, 0.8);
    position: relative;
    backdrop-filter: blur(10px);
}

/* Titel van de prijslijst */
.paytable-title {
    text-align: center;
    color: var(--primary-gold);
    font-size: 1.5rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 20px;
    border-bottom: 1px solid rgba(255, 193, 7, 0.3);
    padding-bottom: 15px;
    text-shadow: 0 0 10px rgba(255, 193, 7, 0.5);
}

/* 3. De Rijen met Prijzen */
.paytable-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 10px;
    border-bottom: 1px dashed rgba(255, 255, 255, 0.1);
    transition: background 0.3s;
}

.paytable-row:last-child {
    border-bottom: none;
}

.paytable-row:hover {
    background: rgba(255, 193, 7, 0.05);
}

/* De symbolen in de lijst */
.pay-symbols {
    font-size: 1.5rem;
    letter-spacing: 5px;
    filter: drop-shadow(0 0 5px rgba(255, 255, 255, 0.2));
}

/* De uitbetaling (Multiplier) */
.pay-value {
    font-weight: 700;
    font-size: 1.2rem;
    color: #fff;
}

.pay-jackpot {
    color: var(--primary-gold);
    text-shadow: 0 0 10px var(--primary-gold);
    font-size: 1.4rem;
}

/* ========================================================== */
/* BENDE PAGINA'S STYLING (gangs.php & gang_profile.php) */
/* ========================================================== */

/* 1. De Achtergrond Wrapper */
.gang-wrapper {
    background-image:
        linear-gradient(to bottom, rgba(10, 10, 10, 0.5), #0a0a0a),
        url('assets/images/gang_hq_bg.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    border-radius: 12px;
    padding: 40px;
    min-height: 80vh;
    position: relative;
    box-shadow: inset 0 0 100px #000;
}

/* 2. De Bende Grid (Lijst) */
.gang-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    margin-top: 30px;
}

/* --- Geavanceerde Bende Kaart --- */
.gang-card {
    background: rgba(20, 20, 20, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    overflow: hidden;
    position: relative;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.gang-card:hover {
    transform: translateY(-7px);
    box-shadow: 0 10px 30px rgba(255, 193, 7, 0.2);
    border-color: var(--primary-gold);
}

/* Header met verloop en avatar */
.gang-card-header {
    height: 80px;
    background: linear-gradient(135deg, #333, #111);
    position: relative;
    margin-bottom: 40px;
    /* Ruimte voor de avatar die uitsteekt */
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.gang-level-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(0, 0, 0, 0.6);
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.75rem;
    color: var(--primary-gold);
    border: 1px solid var(--primary-gold);
    font-weight: bold;
}

.gang-leader-img {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    border: 3px solid var(--primary-gold);
    position: absolute;
    bottom: -35px;
    /* Laat hem over de rand hangen */
    left: 50%;
    transform: translateX(-50%);
    background: #000;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
}

.gang-leader-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Body */
.gang-card-body {
    padding: 0 20px;
    text-align: center;
    flex-grow: 1;
}

.gang-card-body h3 {
    font-size: 1.4rem;
    color: #fff;
    margin: 0 0 5px 0;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.gang-leader-name {
    color: #888;
    font-size: 0.9rem;
    margin-bottom: 20px;
}

.gang-stats-grid {
    display: flex;
    justify-content: space-around;
    background: rgba(255, 255, 255, 0.03);
    padding: 10px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.gang-stat {
    display: flex;
    flex-direction: column;
    font-size: 0.85rem;
    color: #ccc;
}

.gang-stat i {
    color: var(--primary-gold);
    margin-bottom: 3px;
    font-size: 1rem;
}

/* Footer */
.gang-card-footer {
    padding: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

/* 4. Het Bende Profiel (HQ Layout) */
.gang-hq-grid {
    display: grid;
    grid-template-columns: 350px 1fr;
    /* Links info, rechts leden/acties */
    gap: 30px;
    align-items: start;
}

.gang-banner {
    height: 200px;
    background: linear-gradient(45deg, #111, #222);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 30px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    position: relative;
    overflow: hidden;
}

.gang-banner h1 {
    font-size: 3rem;
    margin: 0;
    z-index: 2;
    text-shadow: 0 0 20px rgba(0, 0, 0, 0.8);
}

.gang-member-list li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 15px;
    background: rgba(255, 255, 255, 0.03);
    margin-bottom: 8px;
    border-radius: 6px;
    transition: 0.2s;
}

.gang-member-list li:hover {
    background: rgba(255, 255, 255, 0.08);
}

.role-badge {
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: bold;
    text-transform: uppercase;
}

.role-boss {
    background: var(--primary-gold);
    color: #000;
}

.role-underboss {
    background: #33b5e5;
    color: #fff;
}

.role-member {
    background: #444;
    color: #ccc;
}


/* ========================================================== */
/* RANGLIJST PAGINA STYLING (ONAFHANKELIJK) */
/* ========================================================== */

.leaderboard-wrapper {
    background: rgba(20, 20, 20, 0.8);
    /* Donkere, semi-transparante achtergrond */
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.5);
}

/* De tabel styling */
.leaderboard-table {
    width: 100%;
    border-collapse: separate;
    /* Belangrijk voor border-radius op rijen */
    border-spacing: 0 10px;
    /* Ruimte tussen de rijen */
}

.leaderboard-table th {
    text-transform: uppercase;
    font-size: 0.85rem;
    color: #888888;
    padding: 10px 20px;
    text-align: left;
    border: none;
}

.leaderboard-table td {
    background: rgba(255, 255, 255, 0.03);
    padding: 15px 20px;
    vertical-align: middle;
    color: #fff;
    border: none;
}

/* Ronde hoeken voor de rijen */
.leaderboard-table tr td:first-child {
    border-radius: 8px 0 0 8px;
}

.leaderboard-table tr td:last-child {
    border-radius: 0 8px 8px 0;
}

/* Hover effect */
.leaderboard-table tr:hover td {
    background: rgba(255, 255, 255, 0.08);
    transform: scale(1.01);
    transition: 0.2s;
}

/* De Avatar (FIX) */
.leaderboard-avatar {
    width: 40px !important;
    /* Forceer klein formaat */
    height: 40px !important;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--primary-gold);
    margin-right: 15px;
    vertical-align: middle;
}

/* De Rang #1, #2, #3 styling */
.rank-badge {
    display: inline-block;
    width: 30px;
    height: 30px;
    line-height: 30px;
    border-radius: 50%;
    text-align: center;
    font-weight: bold;
    background: #333;
    color: #aaa;
}

.rank-1 {
    background: #ffd700;
    color: #000;
    box-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
}

.rank-2 {
    background: #c0c0c0;
    color: #000;
}

.rank-3 {
    background: #cd7f32;
    color: #000;
}

/* ========================================================== */
/* RANGEN OVERZICHT STYLING */
/* ========================================================== */

.ranks-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    /* Twee gelijke kolommen */
    gap: 30px;
}



/* Stijl voor de lijsten in de blokken */
.rank-list-item {
    display: flex;
    justify-content: space-between;
    padding: 10px 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.rank-list-item:last-child {
    border-bottom: none;
}

.rank-list-item span:first-child {
    font-weight: bold;
    color: #fff;
}

.rank-list-item span:last-child {
    color: #aaa;
}

/* Zorg dat links in de ranglijst (spelernamen) hun kleur en klikbaarheid behouden */
.leaderboard-table a {
    color: #4da6ff;
    /* Of gebruik #4da6ff als je geen variabele hebt */
    font-weight: bold;
    text-decoration: none;
    transition: color 0.2s;
}

.leaderboard-table a:hover {
    color: var(--primary-gold);
    /* Goud bij hover */
    text-decoration: underline;
}

/* ========================================================== */
/* LOGIN, REGISTER & LOGOUT (NEXT-GEN STYLING) */
/* ========================================================== */

/* 1. De Achtergrond & Sfeer */
body.auth-page {
    /* Een donkere overlay over de afbeelding voor leesbaarheid */
    background:
        linear-gradient(to bottom, rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.8)),
        url('assets/images/login_bg.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    margin: 0;
    font-family: var(--font-main);
    overflow: hidden;
    /* Geen scrollbalken op het inlogscherm */
}

/* 2. De Glazen Kaart (Container) */
.auth-card {
    background: rgba(20, 20, 20, 0.75);
    /* Donker glas */
    backdrop-filter: blur(15px);
    /* Het vervagings-effect */
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 215, 0, 0.15);
    /* Subtiele gouden rand */
    border-radius: 20px;
    padding: 50px 40px;
    width: 100%;
    max-width: 450px;
    box-shadow:
        0 20px 50px rgba(0, 0, 0, 0.8),
        0 0 0 1px rgba(255, 255, 255, 0.05) inset;
    /* Binnenste randje */
    position: relative;
    text-align: center;
    animation: slideUp 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
    /* Opkomst animatie */
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 3. De Titel (Logo Stijl) */
.auth-logo {
    font-size: 3rem;
    font-weight: 900;
    text-transform: uppercase;
    margin-bottom: 10px;
    color: transparent;
    background: linear-gradient(to bottom, #ffd700, #e65100);
    -webkit-background-clip: text;
    background-clip: text;
    filter: drop-shadow(0 5px 15px rgba(255, 193, 7, 0.4));
    letter-spacing: 2px;
    line-height: 1;
}

.auth-subtitle {
    color: #aaa;
    margin-bottom: 30px;
    font-size: 1rem;
    font-weight: 400;
}

/* 4. De Invoervelden (Modern) */
.auth-form-group {
    margin-bottom: 20px;
    text-align: left;
}

.auth-label {
    display: block;
    color: #ccc;
    margin-bottom: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-left: 5px;
}

.auth-input {
    width: 100%;
    padding: 15px 20px;
    background: rgba(0, 0, 0, 0.4);
    border: 2px solid rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    color: #fff;
    font-size: 1rem;
    font-family: var(--font-main);
    transition: all 0.3s ease;
}

.auth-input:focus {
    border-color: var(--primary-gold);
    background: rgba(0, 0, 0, 0.6);
    box-shadow: 0 0 15px rgba(255, 193, 7, 0.15);
    outline: none;
}

/* 5. De Knoppen & Links */
.auth-btn {
    width: 100%;
    padding: 15px;
    margin-top: 10px;
    background: linear-gradient(135deg, var(--primary-gold), #ffa000);
    color: #000;
    border: none;
    border-radius: 10px;
    font-size: 1.1rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    box-shadow: 0 5px 20px rgba(255, 160, 0, 0.3);
}

.auth-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(255, 160, 0, 0.5);
}

.auth-links {
    margin-top: 25px;
    display: flex;
    justify-content: center;
    gap: 15px;
    font-size: 0.9rem;
}

.auth-links a {
    color: #888;
    text-decoration: none;
    transition: color 0.2s;
}

.auth-links a:hover {
    color: var(--primary-gold);
    text-decoration: underline;
}

/* Feedback binnen de auth card */
.auth-card .feedback {
    margin-bottom: 20px;
    padding: 12px;
    font-size: 0.9rem;
    text-align: left;
}

/* ========================================================== */
/* MOBIELE APP STYLING */
/* ========================================================== */

/* 3. Het Fullscreen Overlay Menu (VERBETERD) */
.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 10, 10, 0.95);
    /* Iets minder transparant */
    z-index: 2000000000 !important;
    /* Extreem hoog, boven de navbar */
    display: none;
    padding: 20px;
    overflow-y: auto;
    backdrop-filter: blur(15px);
    /* Sterk blur effect */
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.mobile-menu-content {
    padding-bottom: 80px;
    /* Ruimte voor de navbar onderaan */
}

.mobile-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
    border-bottom: 2px solid var(--primary-gold);
    padding-bottom: 15px;
}

.mobile-menu-header h2 {
    color: var(--primary-gold);
    margin: 0 !important;
    font-size: 2rem !important;
    text-align: left !important;
}

.close-btn {
    background: none;
    border: none;
    color: #fff;
    font-size: 2.5rem;
    cursor: pointer;
    padding: 10px;
}

/* De links duwen alles eronder naar beneden, maar vullen niet alles */
.mobile-menu-links {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
    margin-bottom: 40px;
}

.mobile-menu-links a {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 25px 15px;
    background: linear-gradient(135deg, #2a2a2a, #1a1a1a);
    border-radius: 15px;
    color: #fff;
    font-size: 1rem;
    font-weight: 700;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow:
        0 5px 15px rgba(0, 0, 0, 0.5),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    transition: transform 0.2s, box-shadow 0.2s;
    text-align: center;
}

.mobile-menu-links a:active {
    transform: scale(0.95);
    box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.8);
}

.mobile-menu-links a:hover {
    border-color: var(--primary-gold);
    color: var(--primary-gold);
}

.mobile-menu-links i {
    width: auto;
    color: var(--primary-gold);
    margin-right: 0;
    margin-bottom: 10px;
    font-size: 2rem;
    text-shadow: 0 0 10px var(--primary-gold-glow);
}

/* Uitloggen knop over de volle breedte */
/* DIT IS DE TRUC: margin-top: auto duwt dit blok naar de bodem */
.mobile-logout-container {
    margin-top: auto;
    width: 100%;
}

/* Styling voor de specifieke uitlogknop */
.mobile-logout-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 35px;
    background: linear-gradient(135deg, #4a1a1a, #2a0a0a);
    border: 1px solid #e53935;
    border-radius: 12px;
    color: #fff;
    font-weight: 700;
    font-size: 1rem;
    text-decoration: none;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
}

.mobile-logout-btn i {
    margin-right: 10px;
    color: #e53935;
    font-size: 1.2rem;
}

/* ========================================================== */
/* PRO MOBILE OPTIMALISATIE (ULTRA COMPACT) */
/* ========================================================== */

@media (max-width: 768px) {

    /* 1. ALGEMENE SCHAALVERKLEINING */
    html {
        font-size: 13px;
        /* Verkleint de basis tekstgrootte */
    }

    .main-content {
        margin-left: 0 !important;
        width: 100% !important;
        padding-bottom: 70px;
        /* Ruimte voor bottom nav */
    }

    .sidebar {
        display: none !important;
    }

    /* Verberg desktop sidebar */

    .content-wrapper {
        padding: 10px !important;
        /* Minimale padding aan randen */
    }

    /* 2. COMPACTE TYPOGRAFIE */
    h1 {
        font-size: 1.4rem !important;
        /* Veel kleinere titels */
        margin-bottom: 15px !important;
        text-shadow: 0 2px 5px rgba(0, 0, 0, 0.8);
        /* Reset 3D stijlen voor strakheid op mobiel */
        background: none !important;
        border: none !important;
        box-shadow: none !important;
        text-align: center !important;
        display: block !important;
        width: 100% !important;
    }

    h3.block-title {
        font-size: 0.9rem !important;
        /* Kleinere bloktitels */
    }

    /* 3. COMPACTE BLOKKEN */
    .block {
        margin-bottom: 10px !important;
        border-radius: 8px !important;
    }

    .block-header {
        padding: 8px 12px !important;
        min-height: 35px !important;
    }

    .block-content {
        padding: 10px !important;
    }

    /* 4. PROFIEL PAGINA: "DESKTOP STYLE" OP MOBIEL (2 Kolommen) */
    .profile-page-grid,
    .social-profile-grid,
    .profile-grid {
        display: grid !important;
        /* Links smal (stats), Rechts breed (bio/items) */
        grid-template-columns: 110px 1fr !important;
        gap: 10px !important;
        align-items: start;
    }

    /* Aanpassingen voor de smalle linker kolom op profiel */
    .profile-sidebar-col .block {
        font-size: 0.8rem;
    }

    .profile-sidebar-col .stat-label {
        flex-direction: column;
        /* Icoon boven tekst */
        align-items: flex-start;
        font-size: 0.7rem;
        color: #888;
        margin-bottom: 2px;
    }

    .profile-sidebar-col .stat-list li {
        flex-direction: column;
        /* Waarde onder label */
        align-items: flex-start;
        padding: 5px 0 !important;
    }

    .profile-sidebar-col .stat-list span {
        font-size: 0.85rem;
    }

    .profile-sidebar-col .progress-bar-container {
        margin: 5px 0;
        width: 100%;
        height: 6px;
    }

    /* Profiel Header Compact */
    .profile-cover {
        height: 120px !important;
    }

    /* Minder hoog */
    .profile-nav-bar {
        padding: 0 10px 10px 10px !important;
        min-height: auto !important;
        flex-direction: row !important;
        /* Naast elkaar houden */
        align-items: flex-end !important;
        text-align: left !important;
    }

    .profile-avatar-container {
        margin-top: -40px !important;
        /* Minder omhoog */
        margin-right: 10px !important;
        width: 70px !important;
    }

    .profile-avatar-lg {
        width: 70px !important;
        height: 70px !important;
        border-width: 2px !important;
    }

    .profile-info-header {
        padding-bottom: 0 !important;
        margin-bottom: 5px !important;
    }

    .profile-name-title,
    .profile-name-large {
        font-size: 1.1rem !important;
        /* Naam kleiner */
        text-align: left !important;
        margin: 0 !important;
    }

    .profile-tagline {
        font-size: 0.75rem !important;
        gap: 8px !important;
    }

    /* 7. PROFIEL ACTIES (MOBIEL COMPACT) */
    .profile-actions-header {
        position: absolute;
        top: 15px;
        /* Iets meer ruimte van boven */
        right: 10px;
        /* Iets meer ruimte van rechts */
        margin: 0 !important;
        display: flex;
        gap: 8px;
        /* Ruimte tussen de knoppen */
    }

    /* Maak de knoppen vierkant en alleen-icoon */
    .profile-actions-header .action-button {
        padding: 0 !important;
        /* Geen padding rondom */
        width: 36px !important;
        /* Vaste breedte */
        height: 36px !important;
        /* Vaste hoogte */
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        font-size: 0 !important;
        /* VERBERG DE TEKST (Trucje!) */
        border-radius: 8px !important;
    }

    /* Zorg dat het icoon wel zichtbaar en groot genoeg is */
    .profile-actions-header .action-button i {
        font-size: 1rem !important;
        /* Icoon grootte herstellen */
        margin: 0 !important;
        /* Geen marges */
    }

    /* 5. DASHBOARD & STAD (COMPACTE LIJSTEN) */
    .dashboard-grid,
    .city-grid,
    .shop-grid,
    .hospital-grid,
    .casino-grid,
    .drugs-grid,
    .ranks-grid {
        display: flex !important;
        flex-direction: column !important;
        gap: 10px !important;
    }

    /* --- MOBIELE STAD: NEON TEGELS --- */
    .city-grid {
        display: grid !important;
        grid-template-columns: repeat(auto-fill, minmax(90px, 1fr)) !important; /* Kleine tegels */
        gap: 10px !important;
    }

    .city-card {
        height: auto !important; /* Hoogte vrijlaten */
        aspect-ratio: 1 / 1; /* Vierkant maken */
        flex-direction: column !important; /* Icoon boven tekst */
        justify-content: center !important;
        text-align: center !important;
        padding: 10px 5px !important;
        border-radius: 10px !important;
        background: rgba(20, 20, 20, 0.521) !important;
        border: 1px solid var(--neon-color) !important; /* Gebruik de neon kleur van de kaart */
    }

    .city-card i {
        font-size: 2.2rem !important;
        margin: 0 0 5px 0 !important;
        width: auto !important;
        color: var(--neon-color) !important;
    }

    .city-card h3 {
        font-size: 0.6rem !important; /* Kleine tekst */
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        width: 100%;
    }
    
    /* Verberg de beschrijving p volledig */
    .city-card p { display: none !important; }

    /* Geen omschrijving op mobiel */

    /* 6. NAVIGATIEBALK (BOTTOM BAR) - STRAK */
    .mobile-nav {
        height: 55px;
        /* Iets lager */
        background: rgba(10, 10, 10, 0.98);
        border-top: 1px solid #333;
        display: flex !important;
        /* Forceer zichtbaarheid */
        z-index: 2147483647 !important;
        padding-bottom: env(safe-area-inset-bottom);
    }

    .mobile-nav-item {
        padding: 0;
    }

    .mobile-nav-item i {
        font-size: 1.1rem;
        margin-bottom: 2px;
    }

    .mobile-nav-item span {
        font-size: 9px;
    }

    /* 7. TOPBAR (MOBIEL COMPACT) */

    /* Maak de balk weer zichtbaar en geef hem een vaste positie */
    .top-bar {
        display: flex !important;
        /* Forceer zichtbaarheid */
        justify-content: space-between !important;
        /* Centreer alles */
        align-items: center !important;
        padding: 5px 15px !important;
        height: 60px !important;
        background: rgba(15, 15, 15, 0.95) !important;
        /* Donker glas */
        backdrop-filter: blur(10px) !important;
        border-bottom: 1px solid rgba(255, 215, 0, 0.2) !important;
        position: sticky !important;
        top: 0 !important;
        z-index: 900 !important;
    }

    /* Verberg de welkomsttekst en profielknop op mobiel (neemt te veel ruimte in) */
    .player-info {
        display: none !important;
    }

    /* Alleen info verbergen, knoppen toestaan */
    /* De container voor de stats */
    .top-bar-right {
        display: flex !important;
        gap: 15px !important;
        /* Ruimte tussen de iconen */
        width: 100% !important;
        justify-content: space-around !important;
        /* Verdeel ze netjes */
    }

    /* De individuele stat-knoppen (Compact) */
    .player-stats .stat-link {
        padding: 4px 10px !important;
        font-size: 0.8rem !important;
        background: transparent !important;
        /* Geen achtergrondkleur voor strakheid */
        border: none !important;
        /* Geen rand */
        display: flex !important;
        align-items: center !important;
        color: #fff !important;
    }

    /* Iconen iets groter voor touch */
    .player-stats .stat-link i {
        font-size: 1rem !important;
        margin-right: 5px !important;
    }

    /* Zorg dat de tekst (het getal) zichtbaar blijft */
    .player-stats .stat-link span {
        display: inline-block !important;
    }

    /* Tabel fixes */
    .table th,
    .table td {
        padding: 8px 5px !important;
        font-size: 0.8rem !important;
    }

    .leaderboard-avatar {
        width: 25px !important;
        height: 25px !important;
        margin-right: 5px !important;
    }
}

/* ========================================================== */
/* FORCEER MOBIELE BALK (FIX) */
/* ========================================================== */

@media (max-width: 768px) {

    /* Zorg dat de balk 100% zeker zichtbaar is */
    .mobile-nav {
        display: flex !important;
        visibility: visible !important;
        opacity: 1 !important;

        position: fixed !important;
        bottom: 0 !important;
        left: 0 !important;
        width: 100% !important;
        height: 60px !important;

        /* Zorg voor de juiste look */
        background: rgba(15, 15, 15, 0.98) !important;
        border-top: 1px solid #333 !important;
        backdrop-filter: blur(10px) !important;

        /* Zorg dat hij BOVEN alles ligt */
        z-index: 2147483647 !important;

        padding-bottom: env(safe-area-inset-bottom) !important;
    }

    /* Zorg dat de items in de balk zichtbaar zijn */
    .mobile-nav-item {
        flex: 1;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
        color: #888 !important;
        height: 100% !important;
    }

    .mobile-nav-item.active {
        color: var(--primary-gold) !important;
    }

    /* Verberg de tekst 'VIP Shop' op mobiel */
    .desktop-only {
        display: none !important;
    }

    /* Maak de VIP knop vierkant op mobiel */
    .top-bar .vip-button {
        padding: 8px !important;
        /* Vierkant */
        width: 36px;
        height: 36px;
        display: flex !important;
        align-items: center;
        justify-content: center;
        margin-right: 10px;
        /* Ruimte rechts */
        border-radius: 4px;
    }

    .top-bar .vip-button i {
        margin: 0 !important;
        font-size: 1.2rem !important;
    }

}

/* ========================================================== */
/* DASHBOARD PRO (COMMAND CENTER LAYOUT) */
/* ========================================================== */

.dashboard-pro-grid {
    display: grid;
    grid-template-columns: 2fr 1.5fr;
    /* Links breed (Hero), Rechts actie */
    gap: 25px;
    align-items: start;
}

/* 1. HERO CARD (Je profiel in het groot) */
.dash-hero-card {
    background: linear-gradient(135deg, rgba(30, 30, 30, 0.9), rgba(10, 10, 10, 0.95));
    border: 1px solid var(--primary-gold);
    border-radius: 15px;
    padding: 30px;
    display: flex;
    align-items: center;
    gap: 30px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

/* Een subtiele gloed achter de avatar */
.dash-hero-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -10%;
    width: 50%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 193, 7, 0.1), transparent 70%);
    transform: rotate(30deg);
    pointer-events: none;
}

.dash-avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    border: 4px solid var(--primary-gold);
    object-fit: cover;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.6);
    z-index: 2;
}

.dash-hero-info {
    flex: 1;
    z-index: 2;
}

.dash-username {
    font-size: 2rem;
    font-weight: 800;
    color: #fff;
    margin: 0;
    line-height: 1.2;
    text-transform: uppercase;
}

.dash-rank-title {
    color: var(--primary-gold);
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 15px;
    display: block;
}

/* Grote Progressie Balken in Hero Card */
.dash-bar-group {
    margin-bottom: 12px;
}

.dash-bar-label {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    color: #ccc;
    margin-bottom: 5px;
}

.dash-progress-track {
    height: 12px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    overflow: hidden;
}

.dash-progress-fill {
    height: 100%;
    border-radius: 6px;
    box-shadow: 0 0 10px currentColor;
    transition: width 0.5s ease;
}

/* 2. TACTICAL GRID (Voor stats & items) */
.dash-tactical-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    /* 2 blokjes naast elkaar */
    gap: 15px;
    margin-top: 25px;
}

.dash-stat-tile {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 15px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: 0.3s;
}

.dash-stat-tile:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--primary-gold);
    transform: translateY(-3px);
}

.dash-stat-tile i {
    font-size: 1.5rem;
    margin-bottom: 8px;
    color: #aaa;
    transition: 0.3s;
}

.dash-stat-tile:hover i {
    color: var(--primary-gold);
    transform: scale(1.1);
}

.dash-stat-value {
    font-size: 1.2rem;
    font-weight: 700;
    color: #fff;
}

.dash-stat-name {
    font-size: 0.75rem;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* 3. MISSIE CARD (Compact) */
.dash-mission-card {
    background: rgba(20, 20, 20, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 20px;
}

/* ========================================================== */
/* NOTIFICATIE BADGE STYLING */
/* ========================================================== */

.notification-badge {
    background-color: #e53935;
    /* Helder rood */
    color: #fff;
    font-size: 0.75rem;
    font-weight: bold;
    padding: 2px 6px;
    border-radius: 10px;
    /* Maakt het een ovaal/rondje */
    min-width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
    border: 1px solid #fff;
    /* Wit randje voor contrast */

    /* Positie trucjes (standaard) */
    margin-left: auto;
    /* Duwt hem naar rechts in flex-containers */
}

/* Specifiek voor de Sidebar */
.sidebar nav a .notification-badge {
    margin-left: auto;
    /* Zorgt dat hij rechts van de tekst staat */
}

/* Animatie voor nieuwe meldingen */
@keyframes popIn {
    0% {
        transform: scale(0);
    }

    80% {
        transform: scale(1.2);
    }

    100% {
        transform: scale(1);
    }
}

.notification-badge.new {
    animation: popIn 0.3s ease-out;
}

/* Mobiel aanpassing voor deze specifieke layout */
@media (max-width: 992px) {
    .dashboard-pro-grid {
        grid-template-columns: 1fr;
    }

    .dash-hero-card {
        flex-direction: column;
        text-align: center;
    }

    .dash-hero-card::before {
        display: none;
    }

    /* --- MOBIELE WINKEL OPTIMALISATIE (List View) --- */

    /* Maak de tabs horizontaal scrollbaar (Swipe) */
    .shop-tabs {
        display: flex !important;
        flex-wrap: nowrap !important;
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch;
        /* Soepel scrollen op iOS */
        padding-bottom: 10px !important;
        margin-bottom: 15px !important;
        justify-content: flex-start !important;
        gap: 10px !important;
    }

    /* Zorg dat de knoppen niet krimpen */
    .tab-button {
        flex-shrink: 0 !important;
        font-size: 0.85rem !important;
        padding: 8px 15px !important;
        background: rgba(255, 255, 255, 0.05) !important;
        /* Lichte achtergrond voor duidelijkheid */
        border-radius: 20px !important;
    }

    .tab-button.active {
        background: var(--primary-gold) !important;
        color: #000 !important;
        text-shadow: none !important;
    }

    .tab-button.active::after {
        display: none !important;
    }

    /* Streepje weg op mobiel */

    /* --- MOBIELE WINKEL (3D TEGELS) --- */

    /* Grid: 2 kolommen voor een gevuld scherm */
    .shop-grid {
        display: grid !important;
        grid-template-columns: 1fr 1fr !important;
        /* Twee gelijke kolommen */
        gap: 15px !important;
        padding: 5px !important;
    }

    /* De kaart als 3D-tegel */
    .item-card {
        flex-direction: column !important;
        /* Alles onder elkaar */
        align-items: center !important;
        padding: 0 !important;
        /* Geen padding op de kaart zelf */
        min-height: auto !important;
        background: rgba(30, 30, 30, 0.85) !important;
        /* Donkerder glas */
        border: 1px solid rgba(255, 255, 255, 0.1) !important;
        border-radius: 12px !important;
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5) !important;
        /* 3D schaduw */
        overflow: hidden !important;
    }

    /* Afbeelding bovenaan, vullend */
    .item-image-container {
        width: 100% !important;
        height: 100px !important;
        /* Vaste hoogte */
        margin: 0 !important;
        padding: 10px !important;
        background: radial-gradient(circle, #333, #111) !important;
        border-radius: 0 !important;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
        border: none !important;
        /* Geen rand rondom */
        display: flex !important;
        justify-content: center !important;
        align-items: center !important;
    }

    .item-image-container img {
        max-height: 80px !important;
        /* Iets kleiner zodat het past */
        max-width: 100% !important;
        filter: drop-shadow(0 5px 5px rgba(0, 0, 0, 0.5)) !important;
    }

    /* Info eronder */
    .item-details {
        padding: 10px !important;
        width: 100% !important;
        text-align: center !important;
        display: flex !important;
        flex-direction: column !important;
        justify-content: space-between !important;
        flex-grow: 1 !important;
    }

    .item-details h3 {
        font-size: 0.9rem !important;
        margin-bottom: 5px !important;
        color: #fff !important;
        height: 35px;
        /* Vaste hoogte voor 2 regels tekst */
        overflow: hidden;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
    }

    .item-stats {
        font-size: 0.7rem !important;
        color: #aaa !important;
        margin-bottom: 5px !important;
        display: block !important;
        /* Zorg dat stats zichtbaar blijven */
    }

    .item-price {
        font-size: 0.95rem !important;
        margin-bottom: 8px !important;
        color: var(--primary-gold) !important;
        font-weight: bold !important;
    }

    /* Compactere knop, gecentreerd */
    .item-details .action-button {
        padding: 8px 0 !important;
        font-size: 0.8rem !important;
        width: 100% !important;
        /* Knop vult de breedte */
        align-self: center !important;
        border-radius: 6px !important;
    }

    /* Aanpassing voor het 'Consumable' formulier in een tegel */
    .consumable-form {
        flex-direction: column !important;
        /* Onder elkaar in de smalle tegel */
        gap: 5px !important;
        width: 100% !important;
    }

    .consumable-form select {
        width: 100% !important;
        margin-bottom: 5px !important;
        padding: 5px !important;
        font-size: 0.8rem !important;
    }

    /* Compactere formulier/knoppen */
    .item-details .action-button {
        padding: 6px 12px !important;
        font-size: 0.8rem !important;
        width: auto !important;
        align-self: flex-start !important;
        /* Knop links uitlijnen */
    }

    /* Aanpassing voor het 'Consumable' formulier (dropdown + knop) */
    .consumable-form {
        flex-wrap: wrap !important;
        gap: 5px !important;
    }

    .consumable-form select {
        padding: 5px !important;
        font-size: 0.8rem !important;
        width: auto !important;
    }


    /* --- MOBIELE RANGLIJST OPTIMALISATIE --- */

    .leaderboard-filter {
        display: flex !important;
        flex-wrap: nowrap !important;
        overflow-x: auto !important;
        padding-bottom: 10px !important;
        justify-content: flex-start !important;
        gap: 10px !important;
        text-align: left !important;
    }

    .leaderboard-filter .action-button {
        flex-shrink: 0 !important;
        /* Knoppen blijven heel */
        margin: 0 !important;
        font-size: 0.8rem !important;
    }

    .leaderboard-wrapper {
        padding: 10px 0 !important;
        /* Minder padding */
        overflow-x: auto !important;
        /* Tabel scrollbaar als hij te breed is */
    }

    .leaderboard-table th,
    .leaderboard-table td {
        padding: 8px 5px !important;
        font-size: 0.8rem !important;
    }

    /* Verberg minder belangrijke kolommen op hele kleine schermen indien nodig */
    /* .leaderboard-table th:nth-child(3), .leaderboard-table td:nth-child(3) { display: none; } */

    .leaderboard-avatar {
        width: 30px !important;
        height: 30px !important;
        margin-right: 8px !important;
    }

    .rank-badge {
        width: 24px !important;
        height: 24px !important;
        line-height: 24px !important;
        font-size: 0.75rem !important;
    }

    /* --- MOBIELE RANGLIJST OPTIMALISATIE (COMPACT) --- */

    .leaderboard-wrapper {
        padding: 5px !important;
        /* Minimale padding */
        background: transparent !important;
        /* Maakt het minder 'blokkerig' op mobiel */
        border: none !important;
        box-shadow: none !important;
    }

    .leaderboard-table {
        width: 100% !important;
    }

    /* Maak de cellen heel compact */
    .leaderboard-table th,
    .leaderboard-table td {
        padding: 8px 4px !important;
        /* Zeer weinig ruimte tussen kolommen */
        font-size: 0.75rem !important;
        /* Kleinere tekst */
        white-space: nowrap;
        /* Zorgt dat getallen niet op twee regels komen */
    }

    /* VERBERG KOLOM 3 (De Rang Naam, bijv. 'Soldaat') OP MOBIEL */
    /* Dit maakt ruimte voor Geld en Reputatie */
    .leaderboard-table th:nth-child(3),
    .leaderboard-table td:nth-child(3) {
        display: none !important;
    }

    /* Zorg dat de avatar klein blijft */
    .leaderboard-avatar {
        width: 25px !important;
        height: 25px !important;
        margin-right: 6px !important;
        border-width: 1px !important;
    }

    /* Zorg dat de # badge klein blijft */
    .rank-badge {
        width: 20px !important;
        height: 20px !important;
        line-height: 20px !important;
        font-size: 0.7rem !important;
    }

    /* --- Mobiele Badge Positionering --- */
    .mobile-badge-pos {
        position: absolute;
        top: -5px;
        /* Schuif omhoog */
        right: -8px;
        /* Schuif naar rechts */
        margin-left: 0;
        /* Reset de sidebar-marge */
        font-size: 0.65rem;
        /* Ietsje kleiner voor mobiel */
        min-width: 16px;
        height: 16px;
        border: 1px solid var(--bg-dark);
        /* Donker randje voor contrast met icoon */
    }
}

/* --- Update Labels --- */
.update-badge {
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: bold;
    text-transform: uppercase;
    margin-right: 5px;
}

.update-feature {
    background: rgba(255, 193, 7, 0.2);
    color: #ffd700;
    border: 1px solid #ffd700;
}

.update-improvement {
    background: rgba(51, 181, 229, 0.2);
    color: #33b5e5;
    border: 1px solid #33b5e5;
}

.update-fix {
    background: rgba(150, 150, 150, 0.2);
    color: #ccc;
    border: 1px solid #888;
}

.update-event {
    background: rgba(255, 68, 68, 0.2);
    color: #ff4444;
    border: 1px solid #ff4444;
}

.update-item {
    border-bottom: 1px dashed rgba(255, 255, 255, 0.1);
    padding-bottom: 10px;
    margin-bottom: 10px;
}

.update-item:last-child {
    border: none;
    margin: 0;
    padding: 0;
}

/* ========================================================== */
/* EVENT BANNER STYLING */
/* ========================================================== */

.event-banner {
    background: linear-gradient(90deg, #b71c1c, #d32f2f, #b71c1c);
    color: #fff;
    text-align: center;
    padding: 10px;
    font-weight: 800;
    text-transform: uppercase;
    border-bottom: 2px solid #ffd700;
    box-shadow: 0 5px 15px rgba(255, 0, 0, 0.3);
    position: relative;
    z-index: 800;
    /* Onder de sticky topbar */
    animation: pulse-red 2s infinite;
}

.event-banner.active {
    background: linear-gradient(90deg, #ff8f00, #ff6f00, #ff8f00);
    /* Oranje/Goud voor ACTIEF */
    border-bottom: 2px solid #fff;
    text-shadow: 0 0 5px rgba(0, 0, 0, 0.5);
    animation: pulse-gold-bg 2s infinite;
}

.event-timer {
    font-family: 'Courier New', monospace;
    font-size: 1.2em;
    background: rgba(0, 0, 0, 0.3);
    padding: 2px 8px;
    border-radius: 4px;
    margin-left: 10px;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

@keyframes pulse-red {
    0% {
        box-shadow: 0 0 0 rgba(255, 0, 0, 0.4);
    }

    50% {
        box-shadow: 0 0 20px rgba(255, 0, 0, 0.7);
    }

    100% {
        box-shadow: 0 0 0 rgba(255, 0, 0, 0.4);
    }
}

@keyframes pulse-gold-bg {
    0% {
        filter: brightness(1);
    }

    50% {
        filter: brightness(1.2);
    }

    100% {
        filter: brightness(1);
    }
}

/* Mobiele aanpassing */
@media (max-width: 768px) {
    .event-banner {
        font-size: 0.8rem;
        padding: 8px;
    }

    .event-timer {
        display: block;
        margin: 5px auto 0 auto;
        width: fit-content;
    }
}

/* ========================================================== */
/* ONLINE GEBRUIKERS BALK */
/* ========================================================== */

.online-users-bar {
    background: rgba(10, 10, 10, 0.95);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 20px 0;
    margin-top: 50px;
    backdrop-filter: blur(10px);
}

.online-users-bar h3 {
    font-size: 1.1rem;
    margin: 0 0 15px 0;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.online-list {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.online-user {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.05);
    padding: 5px 12px;
    border-radius: 20px;
    text-decoration: none;
    color: #ccc;
    font-size: 0.9rem;
    transition: 0.2s;
    border: 1px solid transparent;
}

.online-user:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    border-color: var(--primary-gold);
    transform: translateY(-2px);
}

.status-dot {
    width: 8px;
    height: 8px;
    background-color: #00c851;
    /* Groen */
    border-radius: 50%;
    margin-right: 8px;
    box-shadow: 0 0 5px #00c851;
    animation: pulse-green 2s infinite;
}

@keyframes pulse-green {
    0% {
        box-shadow: 0 0 0 0 rgba(0, 200, 81, 0.7);
    }

    70% {
        box-shadow: 0 0 0 4px rgba(0, 200, 81, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(0, 200, 81, 0);
    }
}

/* Mobiele aanpassing: Zorg dat de balk niet onder de navigatie verdwijnt */
@media (max-width: 768px) {
    .online-users-bar {
        padding-bottom: 80px;
        /* Extra ruimte voor de bottom nav */
    }

    /* --- BENDE MOBIEL (Compact) --- */
    .gang-hq-grid {
        display: flex !important;
        flex-direction: column !important;
        gap: 15px !important;
    }

    .gang-banner {
        height: 100px !important;
        /* Veel minder hoog */
    }

    .gang-banner h1 {
        font-size: 1.5rem !important;
    }

    .gang-member-list li {
        flex-direction: row !important;
        /* Naam en rol naast elkaar */
        align-items: center !important;
        padding: 10px !important;
    }

    /* Sollicitatie lijst mobiel */
    .application-item {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }

    .application-actions {
        width: 100%;
        display: flex;
        gap: 10px;
    }

    .application-actions .action-button {
        padding: 8px !important;
        font-size: 0.8rem !important;
    }
}

/* ========================================================== */
/* ROULETTE STYLING */
/* ========================================================== */

.roulette-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 40px;
}

/* HET WIEL */
.roulette-wheel-frame {
    width: 300px;
    height: 300px;
    position: relative;
    border-radius: 50%;
    box-shadow: 0 0 50px rgba(0, 0, 0, 0.8);
    border: 5px solid #222;
}

.roulette-wheel-img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    transition: transform 3s cubic-bezier(0.1, 0.7, 0.1, 1);
    /* Soepele stop */
}

/* De pijl die het nummer aanwijst */
.roulette-marker {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 15px solid transparent;
    border-right: 15px solid transparent;
    border-top: 25px solid var(--primary-gold);
    filter: drop-shadow(0 2px 5px rgba(0, 0, 0, 0.5));
    z-index: 10;
}

/* HET INZET BORD (Board) */
/* HET INZET BORD (Horizontaal & Compact) */
.roulette-board {
    display: grid;
    /* 0 links (40px breed), daarna 12 kolommen voor de nummers */
    grid-template-columns: 40px repeat(12, 1fr);
    gap: 4px;
    background: #053b05;
    padding: 10px;
    border-radius: 8px;
    border: 4px solid #2e1a04;
    box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.8);
    margin: 0 auto;
    max-width: 100%;
}

/* De NUL (Links, spant over 3 rijen) */
.num-0 {
    grid-column: 1;
    grid-row: 1 / span 3;
    /* Pakt 3 rijen hoog */
    background-color: #00C851;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.num-red {
    background-color: #e53935;
}

.num-black {
    background-color: #222;
}

/* De knoppen compact maken */
.board-btn {
    padding: 8px 2px;
    /* Minder padding */
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
    font-weight: bold;
    font-size: 0.9rem;
    cursor: pointer;
    text-align: center;
    border-radius: 2px;
    transition: 0.1s;
}

/* De Inzet-opties (Rood/Zwart etc) onder de nummers */
.bet-options {
    grid-column: 2 / span 12;
    /* Breedte van de nummers */
    display: flex;
    gap: 10px;
    margin-top: 8px;
}

/* Mobiele aanpassing: Als het scherm te klein is, mag je scrollen, 
   maar we proberen het passend te houden */
@media (max-width: 518px) {
    .roulette-board {
        overflow-x: auto;
        /* Horizontaal scrollen op mobiel toegestaan */
        min-width: 320px;
        /* Zorgt dat de tafel zijn vorm behoudt */
    }
}

.opt-btn {
    flex: 1;
    background: #444;
    padding: 10px;
}

/* Geselecteerde inzet */
.board-btn.selected,
.opt-btn.selected {
    border: 2px solid var(--primary-gold);
    box-shadow: 0 0 15px var(--primary-gold);
    position: relative;
}

/* Een fiche op de geselecteerde knop */
.board-btn.selected::after,
.opt-btn.selected::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    background: radial-gradient(circle, #ffd700, #ff8f00);
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border: 2px dashed #fff;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.5);
}

/* ========================================================== */
/* FAQ / KNOWLEDGE BASE STYLING */
/* ========================================================== */

.faq-grid {
    display: grid;
    grid-template-columns: 250px 1fr;
    /* Menu links, Content rechts */
    gap: 30px;
    align-items: start;
}

/* Het Navigatiemenu (Sticky) */
.faq-sidebar {
    background: rgba(20, 20, 20, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 20px;
    position: sticky;
    top: 80px;
    /* Onder de topbar */
}

.faq-nav-title {
    color: var(--primary-gold);
    font-weight: 800;
    text-transform: uppercase;
    margin-bottom: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 10px;
}

.faq-link {
    display: block;
    color: #aaa;
    padding: 10px;
    border-radius: 6px;
    transition: 0.2s;
    font-weight: 500;
}

.faq-link:hover,
.faq-link.active {
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
    padding-left: 15px;
    border-left: 3px solid var(--primary-gold);
}

.faq-link i {
    width: 25px;
    color: var(--primary-gold);
}

/* De Accordeon Vragen */
.faq-category-title {
    font-size: 1.8rem;
    color: #fff;
    margin-bottom: 20px;
    margin-top: 0;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--primary-gold);
    display: flex;
    align-items: center;
    gap: 15px;
}

.faq-item {
    background: rgba(30, 30, 30, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    transition: 0.3s;
}

.faq-question {
    padding: 15px 20px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
    color: #eee;
    transition: 0.2s;
}

.faq-question:hover {
    background: rgba(255, 255, 255, 0.05);
    color: var(--primary-gold);
}

.faq-question i.arrow {
    transition: transform 0.3s;
}

.faq-item.open .faq-question i.arrow {
    transform: rotate(180deg);
    color: var(--primary-gold);
}

.faq-item.open {
    border-color: var(--primary-gold);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
    background: rgba(0, 0, 0, 0.2);
    padding: 0 20px;
    color: #ccc;
    font-size: 0.95rem;
    line-height: 1.6;
}

.faq-item.open .faq-answer {
    padding: 15px 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

/* Tabellen in FAQ */
.faq-table {
    width: 100%;
    margin-top: 10px;
    border-collapse: collapse;
    font-size: 0.9rem;
}

.faq-table th {
    text-align: left;
    color: var(--primary-gold);
    border-bottom: 1px solid #444;
    padding: 5px;
}

.faq-table td {
    padding: 5px;
    border-bottom: 1px solid #333;
}

/* Mobiel */
@media (max-width: 992px) {
    .faq-grid {
        grid-template-columns: 1fr;
    }

    .faq-sidebar {
        display: none;
        /* Of maak hier een dropdown van */
    }
}

/* ========================================================== */
/* ADMIN DRAG & DROP STYLING */
/* ========================================================== */

/* De container voor de twee kolommen */
.admin-dashboard-wrapper {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

/* De kolommen waar je blokken in kunt droppen */
.admin-col {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 20px;
    min-height: 200px;
    /* Zorgt dat een lege kolom toch sleepbaar blijft */
}

/* De sleepbare blokken */
.admin-widget {
    cursor: grab;
    /* Handje icoon om aan te geven dat je kunt slepen */
    transition: transform 0.2s, box-shadow 0.2s;
}

.admin-widget:active {
    cursor: grabbing;
    transform: scale(1.02);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.5);
    z-index: 100;
}

/* De "Grijze zone" die laat zien waar het blok landt */
.sortable-ghost {
    opacity: 0.4;
    background: var(--primary-gold-glow);
    border: 2px dashed var(--primary-gold);
}

/* Mobiel: Kolommen onder elkaar */
@media (max-width: 992px) {
    .admin-dashboard-wrapper {
        flex-direction: column;
    }
}

/* ========================================================== */
/* CUSTOM RANGE SLIDER (ZIEKENHUIS) */
/* ========================================================== */

.slider-container {
    padding: 20px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 20px;
}

/* De Slider Balk (Track) */
input[type=range] {
    -webkit-appearance: none;
    width: 100%;
    height: 10px;
    border-radius: 5px;
    background: #333;
    outline: none;
    margin: 20px 0;
}

/* De Knop (Thumb) - Webkit (Chrome/Safari/Edge) */
input[type=range]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 25px;
    height: 25px;
    border-radius: 50%;
    background: var(--success-green);
    cursor: pointer;
    box-shadow: 0 0 10px rgba(0, 200, 81, 0.5);
    border: 2px solid #fff;
    transition: transform 0.1s;
}

input[type=range]::-webkit-slider-thumb:hover {
    transform: scale(1.2);
}

/* Info Display */
.slider-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1.1rem;
    margin-bottom: 10px;
}

.heal-amount {
    color: var(--success-green);
    font-weight: bold;
}

.heal-cost {
    color: var(--primary-gold);
    font-weight: bold;
    font-size: 1.3rem;
}

/* ========================================================== */
/* WORLD CHAT (SHOUTBOX) */
/* ========================================================== */

.chat-container {
    background: rgba(15, 15, 15, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 400px;
    /* Vaste hoogte */
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.chat-header {
    background: linear-gradient(90deg, #222, #111);
    padding: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.chat-header h3 {
    margin: 0;
    font-size: 1rem;
    color: #fff;
    text-transform: uppercase;
}

.chat-online-dot {
    width: 8px;
    height: 8px;
    background: #00C851;
    border-radius: 50%;
    box-shadow: 0 0 5px #00C851;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 15px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    scroll-behavior: smooth;
}

/* Scrollbar in chat */
.chat-messages::-webkit-scrollbar {
    width: 6px;
}

.chat-messages::-webkit-scrollbar-thumb {
    background: #444;
    border-radius: 3px;
}

/* Het Berichtje Zelf */
.chat-msg {
    display: flex;
    gap: 10px;
    animation: fadeIn 0.3s ease;
}

.chat-msg.mine {
    flex-direction: row-reverse;
}

/* Mijn berichten rechts */

.chat-avatar {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #333;
    flex-shrink: 0;
}

.chat-msg.admin .chat-avatar {
    border-color: var(--danger-red);
}

.chat-msg.vip .chat-avatar {
    border-color: var(--primary-gold);
}

.chat-bubble {
    background: rgba(255, 255, 255, 0.05);
    padding: 8px 12px;
    border-radius: 10px;
    border-top-left-radius: 0;
    /* "Spraakwolkje" effect */
    max-width: 80%;
    position: relative;
}

.chat-msg.mine .chat-bubble {
    background: rgba(255, 193, 7, 0.15);
    /* Goud/Geel tintje voor eigen berichten */
    border-top-left-radius: 10px;
    border-top-right-radius: 0;
    text-align: right;
}

.chat-meta {
    display: block;
    font-size: 0.7rem;
    color: #888;
    margin-bottom: 2px;
}

.chat-meta a {
    color: #aaa;
    font-weight: bold;
}

.chat-meta a:hover {
    color: #fff;
    text-decoration: underline;
}

.chat-text {
    font-size: 0.9rem;
    color: #ddd;
    word-break: break-word;
}

/* Admin & VIP Styling in chat */
.chat-badge {
    font-size: 0.65rem;
    padding: 1px 4px;
    border-radius: 3px;
    margin-right: 5px;
    vertical-align: middle;
}

.badge-admin {
    background: var(--danger-red);
    color: #fff;
}

.badge-vip {
    background: var(--primary-gold);
    color: #000;
}

/* Het Invoerveld */
.chat-input-area {
    padding: 15px;
    background: #1a1a1a;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    gap: 10px;
}

.chat-input {
    flex: 1;
    background: #000;
    border: 1px solid #444;
    border-radius: 20px;
    padding: 10px 15px;
    color: #fff;
}

.chat-send-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--primary-gold);
    color: #000;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.2s;
}

.chat-send-btn:hover {
    transform: scale(1.1);
}

/* Tijdstip in de chat */
.chat-time {
    float: right;
    /* Duwt de tijd naar rechts */
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.4);
    /* Subtiel grijs/transparant */
    margin-left: 10px;
    font-family: monospace;
    /* Ziet er cool uit voor tijden */
}

/* --- KARTEL X BANNER --- */
.kartelx-banner {
    background: #000000d6;
    border-bottom: 1px solid var(--primary-gold);
    text-align: center;
    padding: 10px 0;
    position: relative;
    z-index: 2000; /* Boven alles */
    background-image: linear-gradient(45deg, #000 25%, #111 25%, #111 50%, #000 50%, #000 75%, #111 75%, #111 100%);
    background-size: 20px 20px;
}

.kx-logo-text {
    font-family: 'Arial Black', sans-serif;
    font-size: 1.8rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 5px;
    color: var(--primary-gold);
    text-shadow: 2px 2px 0px #333;
    display: inline-block;
}

.kx-x {
    color: var(--danger-red);
    font-size: 3.2rem;
    text-shadow: 0 0 10px var(--danger-red);
}

/* Timer Widget */
.timer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 10px;
}
.timer-card {
    background: rgba(255,255,255,0.05);
    padding: 10px;
    border-radius: 6px;
    text-align: center;
    border: 1px solid rgba(255,255,255,0.1);
    transition: 0.2s;
    text-decoration: none;
    display: block;
}
.timer-card:hover { background: rgba(255,255,255,0.1); transform: translateY(-2px); }
.timer-card.ready { border-color: var(--success-green); box-shadow: 0 0 5px rgba(0,200,81,0.3); }
.timer-card.wait { border-color: var(--danger-red); opacity: 0.7; }

.timer-label { display: block; font-size: 0.8rem; color: #aaa; margin-bottom: 5px; }
.timer-status { font-weight: bold; font-size: 0.9rem; }
.status-ready { color: var(--success-green); }
.status-wait { color: var(--danger-red); }

/* --- Echtscheiding Knop (Neon) --- */
.btn-divorce {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1.2rem;
    color: #ff00ff; /* Neon Roze */
    text-shadow: 0 0 5px #ff00ff, 0 0 10px #ff00ff;
    transition: transform 0.2s ease;
    vertical-align: middle;
    margin-left: 5px;
}

.btn-divorce:hover {
    transform: scale(1.3);
    color: #ff4081;
    text-shadow: 0 0 15px #ff00ff, 0 0 25px #ff00ff;
}

/* --- Google Translate Styling --- */
#google_translate_element .goog-te-gadget-simple {
    background-color: rgba(255,255,255,0.1) !important;
    border: 1px solid rgba(255,255,255,0.2) !important;
    padding: 5px !important;
    border-radius: 5px !important;
}
#google_translate_element .goog-te-gadget-simple .goog-te-menu-value span {
    color: #fff !important;
    font-family: 'Poppins', sans-serif !important;
}
#google_translate_element .goog-te-gadget-icon {
    display: none !important; /* Verberg Google icoon */
}


