/* --- MNDSET AI: CORE STYLES --- */
:root {
    --primary-cyan: #4ade80; 
	--accent-blue: #22d3ee;
    --primary-purple: #ab9ff2; 
    --bg-deep: #020617; 
    --border: rgba(74, 222, 128, 0.15);
    --text-bright: #ffffff;
    --text-dim: #94a3b8;
    --glass: rgba(5, 11, 26, 0.85);
}

/* --- RESET & BASE --- */
* { box-sizing: border-box; }

html, body {
    height: 100%;
    margin: 0;
    padding: 0;
    overflow: hidden; 
    background: var(--bg-deep);
    color: var(--text-bright);
    font-family: 'Inter', sans-serif;
}

/* --- LOGIN OVERLAY --- */
#login-overlay {
    position: fixed;
    inset: 0;
    background: radial-gradient(circle at 50% -20%, #1a2a4a 0%, #020617 100%);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
}

.login-card {
    background: var(--glass);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border);
    padding: 35px;
    border-radius: 16px;
    text-align: center;
    width: 90%;
    max-width: 400px;
    box-shadow: 0 0 50px rgba(0, 0, 0, 0.5);
    animation: slideUp 0.6s cubic-bezier(0.23, 1, 0.32, 1) forwards;
}

.login-card h2 {
    font-size: 24px;
    letter-spacing: 4px;
    color: var(--primary-cyan);
    text-shadow: 0 0 10px rgba(74, 222, 128, 0.5);
    margin: 0 0 10px 0;
}

/* --- WALLET BUTTONS (ANIMATED & ALIVE) --- */
.wallet-options { display: flex; flex-direction: column; gap: 12px; }

.wallet-btn {
    width: 100%;
    padding: 14px 20px;
    cursor: pointer;
    font-weight: 700;
    border-radius: 12px;
    transition: all 0.3s cubic-bezier(0.23, 1, 0.32, 1);
    display: flex;
    align-items: center;
    gap: 15px;
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.05);
    text-transform: uppercase;
    font-size: 14px;
    position: relative;
    overflow: hidden;
}

.wallet-btn::after {
    content: "";
    position: absolute;
    top: -50%;
    left: -60%;
    width: 20%;
    height: 200%;
    background: rgba(255, 255, 255, 0.1);
    transform: rotate(30deg);
    transition: all 0.6s ease;
    opacity: 0;
}

.wallet-btn:hover::after {
    left: 120%;
    opacity: 1;
}

.wallet-btn:hover {
    transform: translateY(-2px) scale(1.02);
    border-color: rgba(255, 255, 255, 0.3);
}

.wallet-btn.phantom:hover { 
    background: #AB9FF2; 
    color: #020617; 
    box-shadow: 0 0 20px rgba(171, 159, 242, 0.5);
}

.wallet-btn.solflare:hover { 
    background: #FC814A; 
    color: white; 
    box-shadow: 0 0 20px rgba(252, 129, 74, 0.5);
}

.wallet-btn.backpack:hover { 
    background: #E33E3F; 
    color: white; 
    box-shadow: 0 0 20px rgba(227, 62, 63, 0.5);
}

.wallet-btn img { 
    width: 28px; 
    height: 28px; 
    border-radius: 6px; 
    transition: transform 0.3s ease;
}

.wallet-btn:hover img {
    transform: rotate(-10deg) scale(1.1);
}

.wallet-btn:active {
    transform: translateY(0) scale(0.98);
}

/* --- TERMINAL INTERFACE --- */
#terminal-interface {
    display: none;
    flex-direction: column;
    width: 100%;
    height: 100%;
    position: fixed;
    top: 0;
    left: 0;
}

.neural-broadcast, .terminal-header, #bank-interface, .input-wrapper {
    flex-shrink: 0;
}

/* --- BROADCAST BAR --- */
.neural-broadcast {
    background: rgba(74, 222, 128, 0.08);
    border-bottom: 1px solid var(--primary-cyan);
    color: var(--primary-cyan);
    padding: 8px 0;
    font-size: 11px;
    font-family: 'Courier New', monospace;
    text-align: center;
}

/* --- TERMINAL HEADER (BOX STYLE) --- */
/* --- TERMINAL HEADER (AANGEPASTE MARGIN & NEURAL OVERLAY) --- */
header.terminal-header {
    width: 100%;
    max-width: 800px;
    margin: 10px auto 5px auto;
    padding: 15px 25px;
    
    /* DE MAGISCHE ACHTERGROND: Gradient + Afbeelding */
    background-image: 
        linear-gradient(to bottom, rgba(5, 10, 20, 0.80), rgba(0, 0, 0, 0.98)), 
        url('/images/banner2.jpg');
    background-size: cover;
    background-position: center top;
    background-repeat: no-repeat;
    
    backdrop-filter: blur(15px);
    border: 1px solid var(--border);
    border-radius: 12px;
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.4);
    overflow: hidden; /* Houdt de afbeelding strak binnen de ronde hoeken */
}

/* De rest van je bestaande header styling blijft intact */
.header-row { 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    width: 100%; 
    margin: 0 auto 15px auto; 
    position: relative; /* Zorgt dat de tekst BÓVEN de achtergrond blijft */
    z-index: 2;
}

.header-main-grid {
    width: 100%;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.brand-name { font-weight: 900; letter-spacing: 1px; color: var(--primary-cyan); }
#mnd-balance { font-family: 'Courier New', monospace; font-size: 24px; font-weight: 900; color: var(--accent-blue); }

/* --- AANGEPASTE BALANCE WRAPPER (Om te blenden met de afbeelding) --- */
.central-balance-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 10px 0 15px 0;
    border-bottom: 1px solid rgba(20, 241, 149, 0.15);
    /* Iets transparantere radial gradient (0.08 i.p.v. 0.05) zodat hij versmelt met de banner */
    background: radial-gradient(circle at center, rgba(20, 241, 149, 0.08) 0%, transparent 65%);
    position: relative;
    z-index: 2;
}

/* De rij binnen de header aanpassen voor de nieuwe box-padding */
.header-row { 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    width: 100%; 
    margin: 0 auto 15px auto; 
}

/* De grid binnen de header ook centreren */
.header-main-grid {
    width: 100%;
    margin: 0 auto;
}

.brand-name { font-weight: 900; letter-spacing: 1px; color: var(--primary-cyan); }
#mnd-balance { font-family: 'Courier New', monospace; font-size: 24px; font-weight: 900; color: var(--accent-blue); }


.capacity-area {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.progress-bg { 
    width: 100%; 
    height: 8px; 
    background: rgba(255, 255, 255, 0.05); 
    border: 1px solid rgba(74, 222, 128, 0.1);
    border-radius: 4px; 
    overflow: hidden; 
}

.progress-fill { 
    height: 100%; 
    background: var(--primary-cyan); 
    box-shadow: 0 0 10px var(--primary-cyan); 
    transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1); 
}

.reward-status-text { 
    font-family: 'Courier New', monospace;
    font-size: 10px; 
    font-weight: 900;
    color: var(--primary-cyan); 
    text-transform: uppercase; 
    letter-spacing: 1.5px;
    text-shadow: 0 0 8px rgba(74, 222, 128, 0.4);
    margin-top: 2px;
}

/* --- HUD FOOTER --- */
.header-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 800px;
    margin: 12px auto 0;
    padding-top: 10px;
    border-top: 1px solid rgba(74, 222, 128, 0.1);
}

.header-footer span {
    font-family: 'Courier New', monospace;
    font-size: 10px;
    font-weight: 900;
    color: var(--text-dim);
    letter-spacing: 1px;
}

#wallet-address-display { color: var(--primary-cyan) !important; }

.status-active { color: var(--primary-cyan) !important; display: flex; align-items: center; }

.status-indicator {
    display: inline-block;
    width: 7px; height: 7px;
    background: var(--primary-cyan);
    border-radius: 50%;
    margin-right: 8px;
    box-shadow: 0 0 8px var(--primary-cyan);
    animation: blink 2s infinite;
}

/* --- NEURAL BANK (AANGEPASTE MARGIN) --- */
#bank-interface {
    width: 100%; 
    max-width: 800px;
    margin: 0 auto 5px auto; /* Geen ruimte boven, 5px ruimte onder */
    padding: 12px 25px;
    background: rgba(5, 11, 26, 0.7);
    backdrop-filter: blur(15px);
    border: 1px solid var(--border);
    border-radius: 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* De bank-info iets verfijnen voor de box-padding */
.bank-info {
    display: flex;
    flex-direction: column;
    border-left: 2px solid var(--primary-cyan);
    padding-left: 15px;
}

.bank-tag {
    font-family: 'Courier New', monospace;
    font-size: 11px;
    color: var(--primary-cyan);
    font-weight: 900;
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

.bank-subtext {
    font-family: 'Courier New', monospace;
    font-size: 9px;
    color: var(--text-dim);
    letter-spacing: 1px;
    margin-top: 4px;
}

#withdraw-btn {
    padding: 10px 18px;
    font-family: 'Inter', sans-serif;
    font-size: 11px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 8px;
    transition: all 0.3s ease;
    border: 1px solid rgba(74, 222, 128, 0.3);
    background: transparent;
    color: var(--primary-cyan);
    cursor: pointer;
}

#withdraw-btn:disabled {
    cursor: not-allowed;
    background: rgba(255, 255, 255, 0.05);
    color: rgba(74, 222, 128, 0.45);
    border-color: rgba(255, 255, 255, 0.1);
    opacity: 0.8;
}

#withdraw-btn.ready {
    background: var(--primary-cyan);
    color: #020617;
    border: none;
    box-shadow: 0 0 15px var(--primary-cyan);
    opacity: 1;
}

/* --- CHAT CONTAINER (AANGEPASTE MARGIN) --- */
#chat-container {
    display: flex;
    flex-direction: column;
    /* justify-content: flex-start zorgt dat berichten bovenaan beginnen */
    justify-content: flex-start; 
    
    flex: 1;
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    
    /* Zorg dat de container nooit groter wordt dan het scherm */
    min-height: 0; 
    overflow-y: auto;
    
    padding: 15px;
    background: rgba(5, 11, 26, 0.5);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border);
    border-bottom: none;
    border-radius: 12px 12px 0 0;

    /* Verberg de scrollbar */
    scrollbar-width: none;
    -ms-overflow-style: none;
}

#chat-container::-webkit-scrollbar {
    display: none;
}



.message { max-width: 85%; padding: 12px 18px; font-size: 14px; border-radius: 8px; line-height: 1.5; }
.message.ai { align-self: flex-start; background: rgba(171, 159, 242, 0.08); border-left: 3px solid var(--primary-purple); }
.message.user { align-self: flex-end; background: rgba(255, 255, 255, 0.05); border: 1px solid rgba(255, 255, 255, 0.1); }

/* --- INPUT BOX MODULE --- */
.input-wrapper { 
    width: 100%; 
    max-width: 800px; 
    margin: 0 auto 30px auto;
    padding: 15px;
    background: rgba(5, 11, 26, 0.8);
    border: 1px solid var(--border);
    border-top: 1px solid rgba(74, 222, 128, 0.1);
    border-radius: 0 0 12px 12px;
}

.input-container {
    display: flex; gap: 10px;
    background: rgba(15, 23, 42, 0.8);
    border: 1px solid var(--border);
    padding: 6px; border-radius: 8px;
}

input[type="text"] {
    flex: 1; background: transparent; border: none;
    padding: 12px; color: white; outline: none; font-size: 16px;
}

button#sendBtn {
    background: var(--primary-cyan);
    color: #020617; border: none;
    padding: 0 20px; border-radius: 8px;
    font-weight: 900; cursor: pointer;
}

/* --- ANIMATIONS & INDICATORS --- */
@keyframes slideUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0.3; } }


.typing-indicator {
    display: none;
    align-items: center;
    gap: 12px;
    padding: 10px 0;
    font-family: 'Courier New', monospace;
    font-size: 11px;
    color: var(--primary-cyan);
    letter-spacing: 2px;
}

.neural-pulse {
    width: 8px; height: 8px;
    background: var(--primary-cyan);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--primary-cyan);
    animation: pulse-glow 1.5s infinite ease-in-out;
}

@keyframes pulse-glow { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: 0.4; transform: scale(1.2); } }

/* --- RESPONSIVE --- */
@media screen and (max-width: 480px) {
    .terminal-header { padding: 10px 15px; }
    .header-row { margin-bottom: 10px; }
    #chat-container, .input-wrapper { width: 100%; }
}

/* --- NEURAL EXIT COMMAND --- */
.exit-btn {
    padding: 8px 16px;
    background: rgba(255, 77, 77, 0.05); /* Heel licht rode gloed */
    border: 1px solid rgba(255, 77, 77, 0.3);
    color: rgba(255, 77, 77, 0.8);
    font-family: 'Courier New', monospace;
    font-size: 10px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 2px;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.23, 1, 0.32, 1);
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* De 'Glitched' lijn bij hover */
.exit-btn::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg, 
        transparent, 
        rgba(255, 77, 77, 0.2), 
        transparent
    );
    transition: 0.5s;
}

.exit-btn:hover {
    color: #ff4d4d;
    border-color: #ff4d4d;
    background: rgba(255, 77, 77, 0.15);
    box-shadow: 0 0 15px rgba(255, 77, 77, 0.4);
    transform: scale(1.05);
}

.exit-btn:hover::before {
    left: 100%;
}

/* Klein icoontje voor de tekst (optioneel via CSS content) */
.exit-btn::after {
    content: "⏻"; /* Power symbool */
    font-size: 12px;
}

/* --- NEURAL PROTOCOL RULES (LOGIN FIX) --- */
.protocol-rules {
    margin-top: 25px;
    padding: 20px;
    background: rgba(74, 222, 128, 0.03); /* Subtiele groene waas */
    border: 1px solid rgba(74, 222, 128, 0.15);
    border-radius: 12px;
    text-align: left;
    box-shadow: inset 0 0 15px rgba(0, 0, 0, 0.2);
}

.protocol-rules strong {
    display: block;
    font-size: 10px;
    color: var(--primary-cyan);
    letter-spacing: 2px;
    margin-bottom: 15px;
    text-transform: uppercase;
    border-bottom: 1px solid rgba(74, 222, 128, 0.2);
    padding-bottom: 8px;
    font-family: 'Courier New', monospace;
}

.protocol-rules ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.protocol-rules li {
    font-family: 'Courier New', monospace;
    font-size: 11px;
    color: var(--text-dim);
    margin-bottom: 10px;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    line-height: 1.4;
}

/* De groene pijltjes voor de tekst */
.protocol-rules li::before {
    content: ">>";
    color: var(--primary-cyan);
    font-weight: bold;
    font-size: 10px;
    flex-shrink: 0;
    text-shadow: 0 0 5px var(--primary-cyan);
}

/* Laatste regel geen marge onder */
.protocol-rules li:last-child {
    margin-bottom: 0;
}

/* --- NEURAL SIDEBAR --- */
#sidebar {
    position: fixed;
    top: 0;
    left: -280px;
    width: 280px;
    height: 100vh;
    z-index: 25000;
    transition: left 0.3s cubic-bezier(0.23, 1, 0.32, 1);
    
    /* Transparante achtergrond met blur effect */
    background: rgba(5, 11, 26, 0.6); 
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px); /* Safari support */
    
    border-right: 1px solid rgba(74, 222, 128, 0.2);
    padding: 20px; /* Zorg dat er wat ruimte binnenin is */
}

/* De overlay (de donkere laag over de pagina) */
.sidebar-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.4); /* Iets lichter zodat je de pagina erdoorheen ziet */
    z-index: 24000;
    display: none;
    backdrop-filter: blur(2px);
}
/* 2. De trigger-class die de JS toevoegt */
#sidebar.active {
    left: 0 !important; /* Forceer hem naar voren */
}

.sidebar.open {
    left: 0;
    box-shadow: 20px 0 50px rgba(0, 0, 0, 0.8);
}

.sidebar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
}

.sidebar-logo {
    font-weight: 900;
    letter-spacing: 2px;
    color: var(--primary-cyan);
    font-size: 14px;
}

.close-sidebar {
    background: transparent;
    border: none;
    color: var(--text-dim);
    font-size: 24px;
    cursor: pointer;
}

/* Navigatie items */
.sidebar-section {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 30px;
}

.section-tag {
    font-family: 'Courier New', monospace;
    font-size: 9px;
    color: var(--text-dim);
    letter-spacing: 2px;
    margin-bottom: 5px;
}

.nav-item {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid transparent;
    padding: 12px 15px;
    border-radius: 8px;
    color: var(--text-dim);
    font-family: 'Courier New', monospace;
    font-size: 11px;
    text-align: left;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: 0.3s;
}

.nav-item:hover:not(.disabled) {
    background: rgba(74, 222, 128, 0.1);
    color: var(--primary-cyan);
    border-color: var(--primary-cyan);
}

.nav-item.active {
    background: rgba(74, 222, 128, 0.15);
    color: var(--primary-cyan);
    border-color: var(--primary-cyan);
}

.nav-item.disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

/* Menu Toggle Knop (Header) */
.menu-toggle {
    background: transparent;
    border: 1px solid var(--border);
    color: var(--primary-cyan);
    padding: 8px 12px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    transition: 0.3s;
}

.menu-toggle:hover {
    background: rgba(74, 222, 128, 0.1);
    box-shadow: 0 0 10px var(--primary-cyan);
}

/* --- MENU TOGGLE (INHOUD MAXIMAAL LINKS) --- */
.menu-toggle {
    display: flex;
    align-items: center;
    justify-content: flex-start; /* Inhoud naar links */
    gap: 12px;
    
    width: 100%;
    max-width: 800px;
    margin: 15px auto 5px auto;
    
    /* Pas deze padding aan naar 15px of minder voor maximale linkse uitlijning */
    padding: 12px 15px; 
    
    background: rgba(5, 11, 26, 0.8);
    backdrop-filter: blur(15px);
    border: 1px solid var(--border);
    border-radius: 12px;
    
    color: var(--primary-cyan);
    font-family: 'Courier New', monospace;
    font-size: 13px;
    font-weight: 900;
    letter-spacing: 2px;
    cursor: pointer;
    transition: all 0.3s ease;
}

/* De tekst zelf ook nog even checken */
.menu-text {
    text-align: left;
    flex: 1; /* Dit drukt de tekst naar links als er ruimte over is */
}
.menu-toggle:hover {
    background: rgba(74, 222, 128, 0.1);
    border-color: var(--primary-cyan);
    box-shadow: 0 0 15px rgba(74, 222, 128, 0.2);
}

/* --- NEURAL HAMBURGER ICON --- */
.hamburger-neural {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 20px;
    height: 12px;
    margin-right: 15px; /* Ruimte tussen icoon en tekst */
}

.hamburger-neural span {
    display: block;
    width: 100%;
    height: 2px;
    background-color: var(--primary-cyan);
    border-radius: 2px;
    box-shadow: 0 0 8px rgba(74, 222, 128, 0.4);
    transition: all 0.3s ease;
}

/* Hover effect: de lijntjes gaan 'ademen' */
.menu-toggle:hover .hamburger-neural span:nth-child(1) { transform: translateY(-1px); }
.menu-toggle:hover .hamburger-neural span:nth-child(3) { transform: translateY(1px); }

/* De tekst naast de hamburger */
.menu-text {
    font-family: 'Courier New', monospace;
    font-size: 11px;
    font-weight: 900;
    color: var(--primary-cyan);
    letter-spacing: 2px;
    text-transform: uppercase;
    text-shadow: 0 0 5px rgba(74, 222, 128, 0.3);
}

/* De knop zelf (zorg dat deze eigenschappen in je .menu-toggle staan) */
.menu-toggle {
    display: flex;
    align-items: center;
    justify-content: center; /* Alles in het midden van de 800px balk */
    
    width: 100%;
    max-width: 800px;
    margin: 15px auto 5px auto;
    padding: 12px;
    
    background: rgba(5, 11, 26, 0.8);
    backdrop-filter: blur(15px);
    border: 1px solid var(--border);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
}

/* --- NEURAL ICON SYSTEM (PURE CSS) --- */
.nav-icon {
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

/* Algemene stijl voor alle iconen */
.ico-chat, .ico-referral, .ico-stake, .ico-leaderboard {
    transition: all 0.3s ease;
    color: inherit; /* Neemt kleur over van de nav-item (dim of cyan) */
}

/* ICON 1: CHAT_CORE (Geometrische tekstballon) */
.ico-chat {
    width: 14px;
    height: 11px;
    border: 1.5px solid currentColor;
    border-radius: 2px;
    position: relative;
}
.ico-chat::after {
    content: "";
    position: absolute;
    bottom: -4px;
    left: 3px;
    width: 0; height: 0;
    border-left: 3px solid transparent;
    border-right: 3px solid transparent;
    border-top: 4px solid currentColor;
}

/* ICON 2: NEURAL_LINK (Geometrisch DNA/Koppeling) */
.ico-referral {
    width: 14px;
    height: 14px;
    position: relative;
}
.ico-referral::before, .ico-referral::after {
    content: "";
    position: absolute;
    width: 7px;
    height: 7px;
    border: 1.5px solid currentColor;
    transform: rotate(45deg);
}
.ico-referral::before { top: 0; left: 0; }
.ico-referral::after { bottom: 0; right: 0; }

/* ICON 3: STAKE_MND (Schild/Slot vorm) */
.ico-stake {
    width: 12px;
    height: 14px;
    border: 1.5px solid currentColor;
    border-top: none;
    border-radius: 0 0 4px 4px;
    position: relative;
}
.ico-stake::before {
    content: "";
    position: absolute;
    top: -4px; left: 0;
    width: 12px; height: 5px;
    border: 1.5px solid currentColor;
    border-bottom: none;
    border-radius: 4px 4px 0 0;
}

/* ICON 4: LEADERBOARD (Data balkjes) */
.ico-leaderboard {
    width: 14px;
    height: 14px;
    display: flex;
    align-items: flex-end;
    gap: 2px;
}
.ico-leaderboard::before {
    content: "";
    width: 3px; height: 60%;
    background: currentColor;
    box-shadow: 2px 0 0 currentColor, -2px 0 0 currentColor; /* Geeft 3 balkjes met 1 element */
    margin: 0 auto;
}

/* Hover/Active Effect: Geef de iconen een gloed */
.nav-item:hover .nav-icon,
.nav-item.active .nav-icon {
    filter: drop-shadow(0 0 5px var(--primary-cyan));
}

/* --- REFERRAL MODULE STYLES --- */
.module-container {
    padding: 25px;
    background: rgba(5, 11, 26, 0.4);
    border: 1px solid var(--border);
    border-radius: 12px;
    
    /* Zorg dat de breedte overeenkomt met de rest van je interface (bijv. 800px) */
    width: 100%;
    max-width: 800px; 
    
    /* Centreer het scherm horizontaal */
    margin: 20px auto; 
    
    /* Voorkom dat hij tegen de schermranden plakt op mobiel */
    box-sizing: border-box;
    
    display: none; /* Wordt getoond via JS switchMode */
    animation: slideUp 0.4s ease-out;
}
.module-title {
    display: block;
    color: var(--primary-cyan);
    font-weight: 900;
    letter-spacing: 3px;
    font-size: 16px;
    margin-bottom: 5px;
}

.module-subtitle {
    font-size: 10px;
    color: var(--text-dim);
    letter-spacing: 1px;
}

/* Voor een extra strakke look op het dashboard */
.referral-grid {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Zorg dat de stats-row de boxen netjes verdeelt */
.stats-row {
    display: flex;
    gap: 15px;
}

@media (max-width: 600px) {
    .stats-row {
        flex-direction: column; /* Stapel de boxen op mobiel */
    }
}

.data-box {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border);
    padding: 15px;
    border-radius: 8px;
}

.data-box.small { flex: 1; text-align: center; }

.label {
    display: block;
    font-family: 'Courier New', monospace;
    font-size: 10px;
    color: var(--primary-cyan);
    margin-bottom: 10px;
    opacity: 0.8;
}

.copy-wrapper {
    display: flex;
    gap: 10px;
}

#referral-link {
    flex: 1;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(74, 222, 128, 0.2);
    padding: 8px 12px;
    color: var(--text-bright);
    font-family: 'Courier New', monospace;
    font-size: 12px;
    border-radius: 4px;
    outline: none;
}

.copy-btn {
    background: var(--primary-cyan);
    color: #020617;
    border: none;
    padding: 0 15px;
    border-radius: 4px;
    font-weight: 900;
    font-size: 11px;
    cursor: pointer;
}

.stats-row { display: flex; gap: 15px; }
.value { font-size: 20px; font-weight: 900; color: var(--text-bright); font-family: 'Courier New', monospace; }

.log-table {
    margin-top: 10px;
    font-family: 'Courier New', monospace;
    font-size: 11px;
    color: var(--text-dim);
    border-top: 1px solid var(--border);
    padding-top: 10px;
}

/* style.css */
.module-container {
    padding: 20px;
    background: rgba(5, 11, 26, 0.4);
    border: 1px solid var(--border);
    border-radius: 12px;
    margin-top: 20px;
    display: none; /* Standaard uit */
}

.module-title {
    color: var(--primary-cyan);
    font-weight: 900;
    font-size: 1.2rem;
    display: block;
}

.referral-grid {
    margin-top: 20px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.data-box {
    background: rgba(255, 255, 255, 0.05);
    padding: 15px;
    border: 1px solid var(--border);
    border-radius: 8px;
}

.copy-wrapper {
    display: flex;
    gap: 10px;
    margin-top: 10px;
}

#referral-link {
    flex: 1;
    background: #000;
    border: 1px solid var(--border);
    color: #fff;
    padding: 8px;
    font-family: monospace;
}

/* Zorg dat de main area de volle hoogte benut */
.main-content-area {
    display: flex;
    flex-direction: column;
    /* 100% van het beschikbare scherm minus header en input */
    height: calc(100vh - 160px); 
    overflow: hidden; /* DIT IS CRUCIAAL: de pagina zelf mag niet scrollen */
/* Aangepast 27-05-2026*/
    position: relative !important;
}

/* Telegram specifieke fix voor mobiele browser-balken */
.tg-app .main-content-area {
    height: calc(var(--tg-viewport-height, 100vh) - 160px);
}

/* Verstop elementen volledig als ze niet actief zijn */
#chat-container[style*="display: none"],
#referral-module[style*="display: none"] {
    display: none !important;
    height: 0;
    overflow: hidden;
}

/* Zorg dat beide containers dezelfde basisregels volgen */
#chat-container, #referral-module {
    width: 100%;
    max-width: 800px; /* Dwingt de breedte in lijn met de header */
    margin: 0 auto;   /* Centreert de module */
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

/* Specifieke correctie voor de referral module styling */
#referral-module {
    padding: 25px;
    background: rgba(5, 11, 26, 0.5);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border);
    border-bottom: none; /* Zelfde als chatbox zodat hij aansluit op de input-wrapper */
    border-radius: 12px 12px 0 0;
}

/* Verberg scrollbalk voor Chrome, Safari en Opera */
.main-content-area::-webkit-scrollbar {
    display: none;
}

/* Verberg scrollbalk voor IE, Edge en Firefox */
.main-content-area {
    -ms-overflow-style: none;  /* IE and Edge */
    scrollbar-width: none;  /* Firefox */
}

.module-container {
    max-width: 800px;
    margin: 0 auto;
    width: 100%;
    box-sizing: border-box;
    /* Zorg dat de module niet groter is dan nodig */
    padding-bottom: 100px; 
}

.glitch-text {
    position: relative;
    display: inline-block;
    animation: glitch 1s infinite linear alternate-reverse;
}

@keyframes glitch {
    0% { transform: translate(0); text-shadow: -2px 0 #ff4d4d; }
    20% { transform: translate(-1px, 1px); text-shadow: 2px 0 #ff4d4d; }
    40% { transform: translate(-1px, -1px); text-shadow: -1px 0 #4ade80; } /* Groene flits tussendoor */
    60% { transform: translate(1px, 1px); text-shadow: 1px 0 #ff4d4d; }
    80% { transform: translate(1px, -1px); text-shadow: -1px 0 #ff4d4d; }
    100% { transform: translate(0); text-shadow: 2px 0 #ff4d4d; }
}

/* MNDSET Mining Bolt Icoon */
.mining-bolt {
    width: 18px;
    height: 18px;
    background-color: var(--primary-cyan);
    /* De magische vorm van de bliksemschicht */
    clip-path: polygon(
        45% 0%, 
        100% 0%, 
        30% 55%, 
        75% 55%, 
        0% 100%, 
        45% 45%, 
        15% 45%
    );
    display: inline-block;
    position: relative;
    transition: all 0.3s ease;
    filter: drop-shadow(0 0 5px rgba(74, 222, 128, 0.5));
}

/* Animatie wanneer het item actief is of gehoverd wordt */
.nav-item:hover .mining-bolt,
.nav-item.active .mining-bolt {
    background-color: #ffffff; /* Kleurverandering naar wit bij actieve status */
    filter: drop-shadow(0 0 8px var(--primary-cyan));
    transform: scale(1.1);
}

/* De balk waarin de knoppen staan */
.os-nav-system {
    display: flex !important;
    align-items: center;
    justify-content: flex-start; /* Zorgt dat alles links begint */
    gap: 12px;
    width: 100%;
    max-width: 800px;
    margin: 15px auto 5px auto;
}

/* De Home Knop (CORE_HUB) */
.nav-btn-home {
    /* Basis styling */
    background: rgba(74, 222, 128, 0.05);
    border: 1px solid var(--primary-cyan);
    color: var(--primary-cyan);
    padding: 5px 12px;
    border-radius: 8px;
    font-family: 'Courier New', monospace;
    cursor: pointer;
    
    /* CRUCIAAL: Voorkom volledige breedte */
    display: none; /* Wordt 'inline-flex' via JS */
    flex: 0 1 auto !important; 
    width: auto !important;
    max-width: fit-content;
    white-space: nowrap; /* Houdt tekst op één regel */
    
    transition: all 0.3s ease;
}

.nav-btn-home:hover {
    background: var(--primary-cyan) !important;
    color: #020617 !important;
    box-shadow: 0 0 15px var(--primary-cyan);
}

/* Zorg dat de progressiebalk de rest van de ruimte opeet */
.progress-container {
    flex-grow: 1; 
    margin-left: 10px;
}

/* --- NEURAL KNOWLEDGE BASE (FAQ) --- */

/* FAQ Nav Icon (Pure CSS) */
.ico-faq {
    display: inline-block;
    width: 14px;
    height: 14px;
    border: 1.5px solid currentColor;
    border-radius: 2px;
    position: relative;
}
.ico-faq::after {
    content: '?';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 10px;
    font-weight: bold;
}

/* FAQ Module Styling */
.faq-container { 
    margin-top: 2rem; 
    display: flex; 
    flex-direction: column; 
    gap: 12px; 
}

.faq-item {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(74, 222, 128, 0.1);
    border-radius: 4px;
    transition: all 0.3s ease;
}

.faq-question {
    padding: 1rem 1.5rem;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--primary-cyan);
    font-family: 'Courier New', monospace;
    font-size: 0.85rem;
    letter-spacing: 1px;
}

.faq-question:hover { 
    background: rgba(74, 222, 128, 0.05); 
}

.faq-answer {
    padding: 0 1.5rem;
    max-height: 0;
    overflow: hidden;
    transition: all 0.4s ease-in-out;
    color: #a0aec0;
    font-size: 0.8rem;
    line-height: 1.6;
}

/* FAQ State: Open */
.faq-item.open .faq-answer { 
    padding-bottom: 1.2rem; 
    max-height: 500px; /* Ruim genoeg voor dynamische tekst */
    border-top: 1px solid rgba(74, 222, 128, 0.05); 
}

.faq-item.open .faq-icon { 
    transform: rotate(45deg); 
    color: #ff4d4d; 
}

.loading-text {
    font-family: 'Courier New', monospace;
    color: var(--primary-cyan);
    text-align: center;
    padding: 40px;
    letter-spacing: 2px;
}

/* Styling voor links in de FAQ van de app */
#faq-module a {
    color: var(--primary-cyan) !important; /* Gebruik je felgroene kleur */
    text-decoration: underline;
    font-weight: bold;
    cursor: pointer;
}

#faq-module a:hover {
    filter: brightness(1.3);
    text-shadow: 0 0 8px var(--primary-cyan);
}

/* Custom CSS Icoon voor Neural Overclock */
.icon-burn {
    width: 14px;
    height: 14px;
    display: inline-block;
    background: var(--danger);
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 23c-5.52 0-10-4.48-10-10 0-4.75 5-9.5 5-9.5s.5 5 2.5 7 4-3 5-7c0 0 5 4.75 5 9.5 0 5.52-4.48 10-10 10z'/%3E%3C/svg%3E") no-repeat center;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 23c-5.52 0-10-4.48-10-10 0-4.75 5-9.5 5-9.5s.5 5 2.5 7 4-3 5-7c0 0 5 4.75 5 9.5 0 5.52-4.48 10-10 10z'/%3E%3C/svg%3E") no-repeat center;
    margin-right: 8px;
    vertical-align: middle;
}

.nav-btn:hover .icon-burn {
    background: var(--primary-cyan);
    filter: drop-shadow(0 0 5px var(--primary-cyan));
}

/* Unieke Frontend Styling voor de Surge/Burn Module */
.ico-surge {
    width: 14px;
    height: 14px;
    display: inline-block;
    background: var(--text-dim);
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 23c-5.52 0-10-4.48-10-10 0-4.75 5-9.5 5-9.5s.5 5 2.5 7 4-3 5-7c0 0 5 4.75 5 9.5 0 5.52-4.48 10-10 10z'/%3E%3C/svg%3E") no-repeat center;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 23c-5.52 0-10-4.48-10-10 0-4.75 5-9.5 5-9.5s.5 5 2.5 7 4-3 5-7c0 0 5 4.75 5 9.5 0 5.52-4.48 10-10 10z'/%3E%3C/svg%3E") no-repeat center;
    margin-right: 8px;
    vertical-align: middle;
    transition: all 0.3s ease;
}

/* Wanneer de knop actief is of gehoverd wordt in de sidebar */
.nav-item.active .ico-surge, 
.nav-item:hover .ico-surge {
    background: #ff4d4d;
    filter: drop-shadow(0 0 5px rgba(255, 77, 77, 0.8));
}

/* --- NEURAL OVERCLOCK MODULE STYLES --- */

/* De hoofdcontainer voor de status */
.neural-surge-box {
    background: rgba(255, 77, 77, 0.05);
    border: 1px solid rgba(255, 77, 77, 0.2);
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 25px;
    position: relative;
    overflow: hidden;
}

.neural-surge-box::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 2px;
    height: 100%;
    background: #ff4d4d;
    box-shadow: 0 0 10px #ff4d4d;
}

.surge-label {
    font-size: 10px;
    letter-spacing: 2px;
    color: #ff4d4d;
    font-weight: 700;
    display: block;
    margin-bottom: 10px;
}

.surge-status-inactive {
    font-family: 'Inter', monospace;
    font-size: 16px;
    font-weight: 900;
    color: var(--text-dim);
    opacity: 0.5;
}

.surge-status-active {
    font-family: 'Inter', monospace;
    font-size: 16px;
    font-weight: 900;
    color: #ff4d4d;
    text-shadow: 0 0 10px rgba(255, 77, 77, 0.5);
    animation: pulse-red 2s infinite;
}

.surge-countdown-wrap {
    margin-top: 10px;
    font-size: 12px;
    font-family: monospace;
    color: #fff;
}

#surge-time-left {
    color: #ff4d4d;
    font-weight: bold;
}

/* Card Styling */
.enhancement-item-card {
    background: rgba(0, 20, 20, 0.4);
    border: 1px solid rgba(255, 77, 77, 0.2);
    padding: 20px;
    border-radius: 12px;
    transition: all 0.3s ease;
}

.enhancement-item-card:hover {
    border-color: #ff4d4d;
    box-shadow: 0 0 20px rgba(255, 77, 77, 0.1);
}

.enhancement-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 20px;
}

.enhancement-card-tag {
    font-size: 12px;
    font-weight: 900;
    color: #fff;
    display: block;
}

.enhancement-card-desc {
    font-size: 10px;
    color: var(--text-dim);
    margin-top: 5px;
    line-height: 1.4;
}

.enhancement-card-multiplier {
    font-size: 18px;
    font-weight: 900;
    color: #ff4d4d;
    font-family: monospace;
}

.enhancement-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 15px;
}

.enhancement-cost {
    font-family: monospace;
    font-weight: bold;
    color: #ff4d4d;
}

/* De knop */
.ignite-surge-btn {
    background: #ff4d4d;
    color: #000;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    font-weight: 900;
    font-size: 11px;
    cursor: pointer;
    transition: all 0.2s ease;
    text-transform: uppercase;
}

.ignite-surge-btn:hover:not(:disabled) {
    background: #ff6666;
    box-shadow: 0 0 15px rgba(255, 77, 77, 0.5);
    transform: translateY(-1px);
}

.ignite-surge-btn:disabled {
    background: #333;
    color: #666;
    cursor: not-allowed;
}

/* Log stream */
.burn-status-stream {
    margin-top: 15px;
    font-family: monospace;
    font-size: 9px;
    color: #ff4d4d;
    background: rgba(0, 0, 0, 0.2);
    padding: 8px;
    border-radius: 4px;
}

/* Animaties */
@keyframes pulse-red {
    0% { opacity: 1; }
    50% { opacity: 0.7; }
    100% { opacity: 1; }
}

/* Neural Overclock Protocol Info Box */
.protocol-info-box {
    background: rgba(0, 20, 20, 0.6);
    border: 1px solid rgba(74, 222, 128, 0.2);
    border-left: 3px solid var(--primary-cyan);
    padding: 15px;
    margin-bottom: 20px;
    font-family: 'Courier New', monospace;
}

.protocol-info-header {
    font-weight: bold;
    color: #fff;
    font-size: 13px;
    margin-bottom: 10px;
    letter-spacing: 1px;
}

.protocol-info-content p {
    font-size: 11px;
    color: var(--text-dim);
    line-height: 1.5;
    margin-bottom: 15px;
}

.protocol-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 10px;
}

.protocol-stat {
    display: flex;
    flex-direction: column;
    border-top: 1px solid rgba(74, 222, 128, 0.1);
    padding-top: 5px;
}

.stat-label {
    font-size: 9px;
    color: var(--primary-cyan);
    text-transform: uppercase;
}

.stat-value {
    font-size: 11px;
    color: #fff;
    font-weight: bold;
}

.cyan-text {
    color: var(--primary-cyan);
}

/* --- Header Stat Group --- */
.stat-group {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 4px;
}

.rank-badge {
    font-size: 9px;
    font-family: monospace;
    color: var(--primary-cyan);
    background: rgba(74, 222, 128, 0.1);
    padding: 2px 6px;
    border-radius: 4px;
    border: 1px solid rgba(74, 222, 128, 0.2);
    align-self: flex-start;
    letter-spacing: 0.5px;
}

.rank-label {
    opacity: 0.6;
    margin-right: 4px;
}

/* --- Sidebar Icons (CSS-only) --- */
.nav-icon {
    width: 18px;
    height: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
}

/* Fallback icons met emojis of CSS shapes */
.ico-chat::before { content: "💬"; }
.ico-mining::before { content: "⚡"; }
.ico-overclock::before { content: "🔥"; }
.ico-referral::before { content: "🔗"; }
.ico-faq::before { content: "📚"; }

/* Styling voor actieve nav-items */
.nav-item.active .nav-icon {
    filter: drop-shadow(0 0 5px var(--primary-cyan));
}

/* Responsiviteit fix voor rank */
@media (max-width: 600px) {
    .header-main-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    .rank-badge {
        font-size: 8px;
    }
}

/* --- Leaderboard Pure CSS Icon --- */
.ico-leaderboard {
    width: 14px;
    height: 14px;
    display: inline-block;
    position: relative;
    border-bottom: 2px solid currentColor;
    border-left: 2px solid currentColor;
}

.ico-leaderboard::before {
    content: '';
    position: absolute;
    bottom: 2px;
    left: 2px;
    width: 3px;
    height: 4px;
    background: currentColor;
    box-shadow: 4px -2px 0 0 currentColor, 8px -5px 0 0 currentColor;
}

/* --- Nav Item Styling --- */
.nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 15px;
    background: transparent;
    border: none;
    color: var(--text-dim);
    font-family: 'Inter', sans-serif;
    font-size: 11px;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.2s ease;
    width: 100%;
    text-align: left;
}

.nav-item:hover, .nav-item.active {
    color: var(--primary-cyan);
    background: rgba(74, 222, 128, 0.05);
}

.nav-item.active .nav-icon {
    filter: drop-shadow(0 0 5px var(--primary-cyan));
}

/* --- Compact Rank Badge v2 --- */
.rank-badge-v2 {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 4px;
    padding: 2px 8px;
    background: rgba(74, 222, 128, 0.03); /* Extreem subtiele groene gloed */
    border: 1px solid rgba(74, 222, 128, 0.15);
    border-radius: 2px; /* Scherpe hoeken voor tech-look */
    font-family: 'Courier New', monospace;
    font-size: 9px; /* Kleiner voor een subtielere look */
    color: var(--primary-cyan);
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.rank-tag-icon {
    width: 6px;
    height: 6px;
    background: var(--primary-cyan);
    clip-path: polygon(0% 0%, 100% 50%, 0% 100%); /* Kleine arrow/cursor icon */
    opacity: 0.8;
}

/* Glow effect voor hogere rangen (wordt getriggerd via JS) */
.rank-master {
    background: rgba(74, 222, 128, 0.1);
    border-color: var(--primary-cyan);
    box-shadow: 0 0 8px rgba(74, 222, 128, 0.2);
    font-weight: bold;
}

/* Fix voor mobiele schermen */
@media (max-width: 480px) {
    .rank-badge-v2 {
        font-size: 8px;
        padding: 1px 6px;
    }
}

.terminal-table {
    width: 100%;
    border-collapse: collapse;
    font-family: 'Courier New', monospace;
    font-size: 11px;
}

.terminal-table th {
    background: rgba(74, 222, 128, 0.1);
    color: var(--primary-cyan);
    text-align: left;
    padding: 12px;
    border-bottom: 1px solid rgba(74, 222, 128, 0.2);
}

.terminal-table td {
    padding: 10px 12px;
    border-bottom: 1px solid rgba(74, 222, 128, 0.05);
    color: var(--text-dim);
}

.terminal-table tr:hover {
    background: rgba(74, 222, 128, 0.02);
}

.ico-quests::before { content: "🎯"; }

.quest-card {
    background: rgba(10, 20, 40, 0.6);
    border: 1px solid rgba(74, 222, 128, 0.15);
    padding: 20px;
    margin-bottom: 15px;
    position: relative;
    transition: 0.3s;
}

.quest-card.completed {
    border-color: var(--primary-cyan);
    box-shadow: inset 0 0 15px rgba(74, 222, 128, 0.05);
}

.quest-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
}

.quest-progress-container {
    height: 4px;
    background: rgba(255, 255, 255, 0.05);
    margin: 15px 0 5px;
    border-radius: 2px;
}

.quest-progress-bar {
    height: 100%;
    background: var(--primary-cyan);
    box-shadow: 0 0 10px var(--primary-cyan);
    transition: width 0.5s ease;
}

.quest-counter {
    font-size: 10px;
    font-family: monospace;
    opacity: 0.6;
}

.quest-completion-alert {
    position: fixed;
    top: 20%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10000;
    background: rgba(2, 6, 23, 0.95);
    border: 1px solid var(--primary-cyan);
    padding: 20px 40px;
    text-align: center;
    box-shadow: 0 0 30px rgba(74, 222, 128, 0.4);
    animation: alertSlideIn 0.5s cubic-bezier(0.18, 0.89, 0.32, 1.28);
}

.alert-content {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.alert-tag {
    color: var(--primary-cyan);
    font-family: monospace;
    font-size: 10px;
    letter-spacing: 2px;
}

.alert-msg {
    color: #fff;
    font-weight: 900;
    font-size: 18px;
    letter-spacing: 1px;
}

.alert-bonus {
    color: var(--primary-cyan);
    font-family: monospace;
    font-size: 12px;
    margin-top: 10px;
    text-shadow: 0 0 10px var(--primary-cyan);
}

@keyframes alertSlideIn {
    0% { transform: translate(-50%, -100%); opacity: 0; }
    100% { transform: translate(-50%, -50%); opacity: 1; }
}

.quest-completion-alert.fade-out {
    opacity: 0;
    transition: opacity 0.5s ease;
}

.overclock-fix {
    display: none; /* Standaard verborgen */
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    padding: 0 15px 80px 15px; /* Padding aan de zijkanten voor mobiel */
    box-sizing: border-box;
    overflow-x: hidden; /* Fix voor het wiebelen */
    position: relative;
}

/* Zorg dat de container waarin de modules zitten ook geen overflow toestaat */
#terminal-interface {
    max-width: 100vw;
    overflow-x: hidden;
}

/* Neural Support Icon */
.ico-support {
    width: 14px;
    height: 14px;
    border: 2px solid currentColor;
    border-radius: 50%;
    display: inline-block;
    position: relative;
}
.ico-support::after {
    content: '?';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 10px;
    font-weight: 900;
}

/* Unified Gateway Styles */
.terminal-separator {
    display: flex;
    align-items: center;
    text-align: center;
    margin: 20px 0;
    color: rgba(34, 211, 238, 0.4);
    font-size: 10px;
    letter-spacing: 2px;
}

.terminal-separator::before,
.terminal-separator::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid rgba(34, 211, 238, 0.2);
}

.terminal-separator:not(:empty)::before { margin-right: 10px; }
.terminal-separator:not(:empty)::after { margin-left: 10px; }

.bridge-input {
    width: 100%;
    background: #000;
    border: 1px solid var(--primary-cyan);
    color: var(--primary-cyan);
    padding: 12px;
    font-family: monospace;


    margin-bottom: 10px;
    text-align: center;
    box-sizing: border-box;
}

.bridge-btn {
    width: 100%;
    background: var(--primary-cyan);
    color: #000;
    border: none;
    padding: 12px;
    font-weight: bold;
    cursor: pointer;
    font-family: 'Inter', sans-serif;
    transition: opacity 0.2s;
}

.bridge-btn:hover { opacity: 0.8; }

.bridge-back {
    background: none;
    border: none;
    color: #666;
    text-decoration: underline;
    font-size: 10px;
    cursor: pointer;
    width: 100%;
    margin-top: 10px;
}

/* Google Sign-In Wrapper */
.google-auth-container {
    margin-bottom: 15px;
    min-height: 40px;
    display: flex;
    justify-content: center;
}

/* Nieuwe UI elementen voor de Unified Bridge */
.system-status-line {
    font-size: 9px;
    color: var(--primary-cyan);
    opacity: 0.6;
    margin-bottom: 20px;
    letter-spacing: 1px;
}

.wallet-options.unified {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin-top: 10px;
}

.wallet-btn.mini {
    padding: 8px 4px;
    background: rgba(0, 20, 20, 0.6);
    border: 1px solid rgba(34, 211, 238, 0.2);
    flex-direction: column;
    gap: 5px;
}

.wallet-btn.mini img {
    width: 18px;
    height: 18px;
}

.wallet-btn.mini span {
    font-size: 8px;
    letter-spacing: 1px;
}

.code-input {
    font-size: 22px !important;
    letter-spacing: 6px !important;
    font-weight: 900;
}

.rule-header {
    color: var(--primary-cyan);
    font-size: 10px;
    margin-bottom: 5px;
    border-bottom: 1px solid rgba(34, 211, 238, 0.2);
    padding-bottom: 3px;
    display: inline-block;
}


/* --- WALLET LINK MODULE --- */
.wallet-link-module {
    margin-top: 20px;
    padding: 20px;
    background: rgba(74, 222, 128, 0.05); /* Subtiele groene waas */
    border: 1px dashed var(--primary-cyan);
    border-radius: 12px;
    text-align: center;
}

.wallet-link-status {
    display: block;
    font-family: 'Courier New', monospace;
    font-size: 11px;
    color: var(--text-dim);
    margin-bottom: 15px;
    letter-spacing: 1px;
}

.wallet-link-btn {
    width: 100%;
    background: transparent;
    border: 1px solid var(--primary-cyan);
    color: var(--primary-cyan);
    padding: 12px;
    font-family: 'Inter', sans-serif;
    font-weight: 900;
    font-size: 12px;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 8px;
}

.wallet-link-btn:hover {
    background: var(--primary-cyan);
    color: #020617;
    box-shadow: 0 0 15px var(--primary-cyan);
}

.linked-addr-text {
    color: var(--primary-cyan);
    text-shadow: 0 0 5px var(--primary-cyan);
    font-weight: bold;
}

/* Specifieke fix voor de Wallet Module inhoud */
#wallet-link-module {
    /* Gebruik geen width: 100% in de HTML, maar dit in je CSS: */
    display: block;
    inline-size: 100%; 
    max-width: 800px;
    touch-action: pan-y; /* FIX: Blokkeert horizontaal swipen, staat alleen verticaal scrollen toe */
}

/* Zorg dat de data-boxen nooit breder kunnen worden dan het scherm */
#wallet-link-module .data-box {
    max-width: calc(100vw - 40px); /* 100% van scherm minus de standaard paddings */
    margin-left: auto;
    margin-right: auto;
    box-sizing: border-box;
}

/* Voorkom dat lange teksten de boel opzij duwen */
#wallet-link-module span, 
#wallet-link-module p, 
#wallet-link-module div {
    max-width: 100%;
    overflow-wrap: break-word;
    word-break: break-word;
}

/* Forceer de manual input onder elkaar (deze veroorzaakt vaak het wiebelen) */
.manual-input-container {
    display: flex;
    flex-direction: column !important; /* Altijd onder elkaar op mobiel */
    width: 100%;
    gap: 10px;
}

/* ICON: WALLET_LINK (Chip/Kaart vorm) */
.ico-wallet-link {
    width: 14px;
    height: 10px;
    border: 1.5px solid currentColor;
    border-radius: 2px;
    position: relative;
}
.ico-wallet-link::after {
    content: "";
    position: absolute;
    right: 2px;
    top: 3px;
    width: 3px;
    height: 2px;
    background: currentColor;
    border-radius: 1px;
}

/* ICON: WALLET_LINK (Schakel/Link icoon) */
.ico-link {
    width: 14px;
    height: 8px;
    border: 1.5px solid currentColor;
    border-radius: 10px;
    position: relative;
    display: inline-block;
}

.ico-link::after {
    content: "";
    position: absolute;
    right: -6px;
    top: -1.5px;
    width: 14px;
    height: 8px;
    border: 1.5px solid currentColor;
    border-radius: 10px;
}

/* Logo Container geoptimaliseerd voor WebM Video of GIF */
.brand-logo {
    width: 40px;  /* Iets groter voor video-impact */
    height: 40px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden; /* Houdt de video binnen de cirkel/box */
}

.brand-logo video, 
.brand-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain; /* Zorgt dat de video niet vervormt */
    pointer-events: none; /* Voorkomt dat je per ongeluk de video 'vastpakt' */
}

/* --- CHANGELOG STYLES --- */
.changelog-container {
    display: flex;
    flex-direction: column;
    gap: 25px;
    margin-top: 20px;
}

.changelog-entry {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border);
    border-left: 3px solid var(--primary-cyan);
    padding: 20px;
    border-radius: 4px;
    position: relative;
}

.changelog-entry.initial {
    border-left-color: var(--primary-purple);
}

.changelog-date {
    font-family: 'Courier New', monospace;
    font-size: 10px;
    color: var(--text-dim);
    letter-spacing: 2px;
    margin-bottom: 5px;
}

.changelog-tag {
    font-family: 'Courier New', monospace;
    font-size: 11px;
    font-weight: 900;
    color: var(--primary-cyan);
    text-transform: uppercase;
    margin-bottom: 15px;
    display: inline-block;
    background: rgba(74, 222, 128, 0.1);
    padding: 2px 8px;
    border-radius: 4px;
}

.changelog-entry ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.changelog-entry li {
    font-family: 'Courier New', monospace;
    font-size: 12px;
    color: var(--text-bright);
    margin-bottom: 8px;
    line-height: 1.4;
    display: flex;
    gap: 10px;
}

.changelog-entry li::before {
    content: ">";
    color: var(--primary-cyan);
    font-weight: bold;
}

.cyan-text {
    color: var(--primary-cyan);
    font-weight: bold;
}



/* ICON: CHANGELOG (Document/Lijst vorm) */
.ico-changelog {
    width: 14px;
    height: 16px;
    border: 1.5px solid currentColor;
    border-radius: 2px;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-evenly;
    padding: 2px;
}

/* De 'regels' tekst in het icoon */
.ico-changelog::before {
    content: "";
    width: 100%;
    height: 1.5px;
    background: currentColor;
    box-shadow: 0 4px 0 0 currentColor, 0 8px 0 0 currentColor;
    opacity: 0.6;
}

/* Optioneel: een klein 'vinkje' of puntje aan de zijkant */
.ico-changelog::after {
    content: "";
    position: absolute;
    top: -2px;
    right: -2px;
    width: 4px;
    height: 4px;
    background: var(--primary-cyan);
    border-radius: 50%;
    box-shadow: 0 0 5px var(--primary-cyan);
}

/* --- CHANGELOG VERSION STYLING --- */
.changelog-entry.release {
    border-left: 4px solid var(--primary-cyan);
    background: rgba(74, 222, 128, 0.05); /* Iets meer gloed voor de stabiele release */
    box-shadow: inset 0 0 20px rgba(74, 222, 128, 0.05);
}

.changelog-version {
    font-family: 'Courier New', monospace;
    font-size: 14px;
    font-weight: 900;
    color: var(--primary-cyan);
    margin-bottom: 2px;
    letter-spacing: 1px;
}

.changelog-date {
    font-size: 10px;
    color: var(--text-dim);
    margin-bottom: 10px;
    font-style: italic;
}

.changelog-tag {
    background: rgba(255, 255, 255, 0.05);
    padding: 3px 8px;
    font-size: 9px;
    border-radius: 3px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.changelog-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.changelog-list li {
    display: grid;
    grid-template-columns: 220px 20px 1fr; /* Titel | Dubbele Punt | Beschrijving */
    align-items: start;
    font-family: 'Courier New', monospace;
    font-size: 12px;
    margin-bottom: 12px;
    line-height: 1.4;
}

.changelog-list li::before {
    content: ">";
    color: var(--primary-cyan);
    margin-right: 10px;
    grid-column: 1; /* Staat voor de titel */
    position: absolute;
    left: -15px;
}

.cl-title {
    color: var(--text-bright);
    font-weight: bold;
}

.cl-sep {
    color: var(--primary-cyan);
    text-align: center;
}

.cl-desc {
    color: var(--text-dim);
}

/* --- CHANGELOG REFINEMENT --- */

/* Verwijder witruimte bovenin de container */
#changelog-module {
    align-content: flex-start; /* Zorgt dat de inhoud bovenaan begint */
}

/* De grid-fix voor de items */
.cl-item {
    display: grid;
    grid-template-columns: 180px 20px 1fr;
    align-items: start;
    gap: 0;
    margin-bottom: 8px;
    width: 100%;
}

/* MOBIELE SPECIFIEKE FIX */
@media (max-width: 600px) {
    /* Haal de grid weg op mobiel om het lege gat aan de linkerkant te dichten */
    .cl-item {
        display: block; /* Geen kolommen meer */
        margin-bottom: 15px;
        padding-left: 15px; /* Ruimte voor het ">" teken */
    }

    .cl-title {
        display: block; /* Titel op eigen regel */
        font-size: 11px;
        color: var(--primary-cyan); /* Maak de titel op mobiel groen voor duidelijkheid */
    }

    .cl-sep {
        display: none; /* De dubbele punt is niet nodig in lijst-vorm */
    }

    .cl-desc {
        display: block;
        font-size: 11px;
        margin-top: 2px;
        opacity: 0.8;
    }

    /* Zorg dat de module-header goed aansluit op de bovenkant */
    .module-header {
        margin-top: 0 !important;
        padding-top: 5px !important;
    }
}

/* Telegram CSS Icon */
.ico-telegram {
    width: 18px;
    height: 18px;
    display: inline-block;
    background: var(--primary-cyan);
    /* Een scherpere clip-path voor de bekende paper plane vorm */
    clip-path: polygon(100% 0%, 0% 45%, 35% 60%, 35% 100%, 55% 70%, 85% 90%);
}

/* Sync Module Styling */
.sync-card {
    background: rgba(34, 211, 238, 0.03);
    border: 1px dashed rgba(34, 211, 238, 0.3);
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    max-width: 500px;
    margin: 40px auto;
}

.sync-status-badge {
    display: inline-block;
    padding: 4px 12px;
    background: rgba(34, 211, 238, 0.1);
    border: 1px solid var(--primary-cyan);
    border-radius: 4px;
    font-size: 10px;
    color: var(--primary-cyan);
    margin-bottom: 20px;
}

.neural-overlay {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(10px);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(10, 10, 10, 0.9) !important; /* App-stijl donkergrijs */
    backdrop-filter: blur(15px);
}

#tg-onboarding-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.9); /* Donkere achtergrond */
    backdrop-filter: blur(15px);   /* Neural blur effect */
    z-index: 999999;               /* Absoluut de hoogste laag */
    display: flex;
    align-items: center;
    justify-content: center;
}

/* --- TELEGRAM ONBOARDING STYLING --- */

/* Maak de titel kleiner zodat deze binnen de kaart past */
#tg-onboarding-title {
    font-size: 1.1rem !important;
    letter-spacing: 1px;
    word-break: break-word;
    text-align: center;
    width: 100%;
}

/* Container voor de actie-knop: zorgt voor centrering */
#tg-onboarding-actions {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    margin-top: 20px;
}

/* De gestylede 'Proceed' knop */
.proceed-btn-styled {
    width: 85%;
    padding: 14px;
    background: rgba(34, 211, 238, 0.05);
    border: 1px solid var(--primary-cyan);
    color: var(--primary-cyan);
    font-family: monospace;
    font-weight: bold;
    letter-spacing: 2px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
}

.proceed-btn-styled:hover {
    background: var(--primary-cyan);
    color: #000;
    box-shadow: 0 0 15px var(--primary-cyan);
}

/* De waarschuwingsbox voor bestaande gebruikers */
.sync-warning-box {
    border: 1px solid rgba(255, 77, 77, 0.4);
    padding: 12px;
    font-size: 11px;
    background: rgba(255, 77, 77, 0.08);
    color: #ff4d4d;
    text-align: left;
    margin: 15px 0;
    line-height: 1.4;
}


/* Container voor de knoppen onder elkaar */
#tg-onboarding-actions {
    display: flex;
    flex-direction: column; /* Knoppen onder elkaar */
    align-items: center;
    width: 100%;
    gap: 15px; /* Ruimte tussen de knoppen */
    margin-top: 25px;
}

/* De secundaire Exit knop */
.exit-onboarding-btn {
    background: none;
    border: none;
    color: rgba(255, 77, 77, 0.8); /* Gedimd rood */
    font-family: monospace;
    font-size: 11px;
    text-decoration: underline;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: color 0.3s ease;
}

.exit-onboarding-btn:hover {
    color: #ff4d4d; /* Fel rood bij hover */
}

/* --- NEURAL SURGE ANIMATION --- */
.mining-visual-surge {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(5, 11, 26, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    z-index: 1000;
    backdrop-filter: blur(10px);
    border: 2px solid var(--primary-cyan);
    animation: neuralPulse 1.5s infinite;
}

.surge-lines {
    width: 80%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--primary-cyan), transparent);
    box-shadow: 0 0 15px var(--primary-cyan);
    margin: 20px 0;
}

.surge-text {
    font-family: monospace;
    font-size: 14px;
    color: var(--primary-cyan);
    letter-spacing: 4px;
    text-shadow: 0 0 10px var(--primary-cyan);
    font-weight: bold;
}

@keyframes neuralPulse {
    0% { background: rgba(5, 11, 26, 0.8); border-color: rgba(34, 211, 238, 0.5); }
    50% { background: rgba(34, 211, 238, 0.1); border-color: rgba(34, 211, 238, 1); }
    100% { background: rgba(5, 11, 26, 0.8); border-color: rgba(34, 211, 238, 0.5); }
}

/* --- PREMIUM CARD STYLING --- */
.upgrade-card.premium-border {
    border: 1px solid #ffd700 !important; /* Goud-kleur voor Premium */
    background: linear-gradient(145deg, rgba(255, 215, 0, 0.05), rgba(0, 0, 0, 0.4));
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.15);
}

/* DE GEPERFECTIONEERDE MAX_WHALE TAG */
.premium-tag {
    position: absolute !important;
    top: -12px !important; /* Ietsje hoger voor betere zwevende look */
    right: 15px !important;
    background: #ffd700 !important;
    color: #020617 !important;
    font-size: 9px !important;
    font-weight: 900 !important;
    padding: 3px 10px !important;
    border-radius: 2px !important;
    letter-spacing: 1px !important;
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.6) !important; /* Dikke gouden neon gloed */
    z-index: 999 !important; /* Dwing hem keihard naar de voorgrond */
    text-transform: uppercase !important;
}

/* --- HOVER EFFECTS --- */
.upgrade-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.upgrade-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(34, 211, 238, 0.2);
    border-color: var(--primary-cyan) !important;
}

.upgrade-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px !important; /* Ruimer opgezet */
    width: 100%;
    padding: 10px 0;
}

/* --- ENHANCED HARDWARE MATRIX ANIMATIONS & STYLES --- */

/* Intro animatie voor de kaarten als de sectie laadt */
/* Base Card Assignment Layout - GEBRUIK GEEN OVERFLOW HIDDEN MEER */
#mining-module .upgrade-card {
    opacity: 0;
    transform: translateY(25px);
    animation: cyberFadeIn 0.5s cubic-bezier(0.25, 1, 0.5, 1) forwards;
    position: relative;
    /* overflow: hidden !important; <-- VERWIJDERD om te zorgen dat de tag naar buiten mag steken */
    background: rgba(5, 11, 26, 0.75) !important;
    border: 1px solid rgba(74, 222, 128, 0.15) !important;
    transition: all 0.3s cubic-bezier(0.23, 1, 0.32, 1) !important;
}

/* staggered delay voor de kaarten zodat ze na elkaar inklappen */
#mining-module .upgrade-card:nth-child(1) { animation-delay: 0.1s; }
#mining-module .upgrade-card:nth-child(2) { animation-delay: 0.15s; }
#mining-module .upgrade-card:nth-child(3) { animation-delay: 0.2s; }
#mining-module .upgrade-card:nth-child(4) { animation-delay: 0.25s; }
#mining-module .upgrade-card:nth-child(5) { animation-delay: 0.3s; }
#mining-module .upgrade-card:nth-child(6) { animation-delay: 0.35s; }
#mining-module .upgrade-card:nth-child(7) { animation-delay: 0.4s; }
#mining-module .upgrade-card:nth-child(8) { animation-delay: 0.45s; }

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

/* --- UNIVERSAL HIGH-END HARDWARE ACTIONS --- */

/* De Grote, Dominante Knoppen volgens Screenshot Specificaties */
.cyber-action-btn {
    width: 100% !important;
    padding: 14px 20px !important;
    font-family: 'Inter', sans-serif !important;
    font-size: 11px !important;
    font-weight: 900 !important;
    letter-spacing: 2px !important;
    text-transform: uppercase !important;
    cursor: pointer !important;
    border-radius: 4px !important; /* Strakke, subtiele afronding in plaats van lelijke clip-paths */
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 12px !important;
    background: rgba(2, 6, 23, 0.6) !important;
    transition: all 0.25s cubic-bezier(0.23, 1, 0.32, 1) !important;
}

/* SOL: De Glimmende Cyan-Tech Variant */
.cyber-action-btn.sol-btn {
    border: 1px solid #22d3ee !important;
    color: #22d3ee !important;
    box-shadow: inset 0 0 8px rgba(34, 211, 238, 0.1) !important;
}

.cyber-action-btn.sol-btn:hover:not(:disabled) {
    background: rgba(34, 211, 238, 0.1) !important;
    box-shadow: 0 0 20px rgba(34, 211, 238, 0.4), inset 0 0 12px rgba(34, 211, 238, 0.2) !important;
    transform: translateY(-2px) !important;
}

/* USDT: De Felle, Dieprood Gloeiende Knoppenlay-out (1-op-1 uit je screenshot) */
.cyber-action-btn.usdt-btn {
    border: 1px solid #ff4d4d !important;
    color: #ff4d4d !important;
    box-shadow: inset 0 0 8px rgba(255, 77, 77, 0.1) !important;
}

.cyber-action-btn.usdt-btn:hover:not(:disabled) {
    background: rgba(255, 77, 77, 0.1) !important;
    box-shadow: 0 0 20px rgba(255, 77, 77, 0.5), inset 0 0 12px rgba(255, 77, 77, 0.2) !important;
    transform: translateY(-2px) !important;
}

/* De subtiele animatie-puls zodra de muis over een kaart beweegt */
#mining-module .upgrade-card {
    transition: all 0.3s cubic-bezier(0.23, 1, 0.32, 1) !important;
}
#mining-module .upgrade-card:hover {
    transform: translateY(-3px) !important;
    border-color: rgba(74, 222, 128, 0.35) !important;
    box-shadow: 0 6px 25px rgba(74, 222, 128, 0.1) !important;
}

/* State tijdens actieve verwerking */
.cyber-action-btn:disabled {
    opacity: 0.3 !important;
    cursor: not-allowed !important;
    background: rgba(255, 255, 255, 0.02) !important;
    border-color: #222 !important;
    color: #444 !important;
    box-shadow: none !important;
    transform: none !important;
}

/* Subtiele pulserende gloed op de premium kaarten */
.upgrade-card.premium-border {
    animation: premiumGlow 3s infinite ease-in-out;
}

@keyframes premiumGlow {
    0%, 100% { box-shadow: 0 0 15px rgba(255, 215, 0, 0.1); }
    50% { box-shadow: 0 0 25px rgba(255, 215, 0, 0.25); border-color: #ffd700 !important; }
}


        /* CSS-Injectie voor de pulserende luidsprekergolven */
        @keyframes wavePulse {
            0%, 100% { opacity: 0.3; transform: scale(0.95); }
            50% { opacity: 1; transform: scale(1.05); color: #4ade80; }
        }
        .music-playing #audio-wave-1 {
            display: block !important;
            animation: wavePulse 1.5s infinite ease-in-out;
            transform-origin: center;
        }

        /* Pure CSS High-Tech Vault Icoon voor Sidebar */
        .ico-vault {
            display: inline-block;
            width: 12px;
            height: 12px;
            border: 1px solid var(--primary-cyan);
            transform: rotate(45deg);
            position: relative;
            box-shadow: 0 0 6px rgba(34, 211, 238, 0.4);
            transition: all 0.3s ease;
        }
        .nav-item:hover .ico-vault, .nav-item.active .ico-vault {
            border-color: #ffd700;
            box-shadow: 0 0 8px #ffd700;
            transform: rotate(45deg) scale(1.1);
        }

        /* Gecorrigeerde UI elementen voor de vernieuwde Vault */
        .vault-stack-container {
            display: flex;
            flex-direction: column;
            gap: 20px;
            width: 100%;
        }
        .vault-action-row {
            display: flex;
            gap: 12px;
            width: 100%;
        }
        @media (max-width: 576px) {
            .vault-action-row {
                flex-direction: column;
            }
 

  @keyframes floatUpAndFade {
    0% { opacity: 0; transform: translateY(20px) scale(0.8); }
    20% { opacity: 1; transform: translateY(0px) scale(1.1); }
    80% { opacity: 1; transform: translateY(-30px) scale(1); }
    100% { opacity: 0; transform: translateY(-50px) scale(0.9); }
}

.floating-reward {
    position: absolute;
    color: #14F195; /* Solana Green */
    font-weight: 900;
    font-family: monospace;
    text-shadow: 0 0 10px rgba(20, 241, 149, 0.5);
    animation: floatUpAndFade 2.5s ease-out forwards;
    pointer-events: none;
    z-index: 1000;
}

.balance-glow {
    animation: pulseGlow 1s ease-out;
}

@keyframes pulseGlow {
    0% { text-shadow: 0 0 5px var(--primary-cyan); }
    50% { text-shadow: 0 0 20px #14F195; color: #14F195; }
    100% { text-shadow: 0 0 5px var(--primary-cyan); }
} 

/* De container: verbergt de scrollbar voor een cleane look */
#quick-prompts-bar {
    display: flex;
    gap: 12px;
    margin-bottom: 15px;
    overflow-x: auto;
    padding-bottom: 5px;
    width: 100%;
    scrollbar-width: none; /* Firefox */
}
#quick-prompts-bar::-webkit-scrollbar {
    display: none; /* Chrome/Safari */
}

/* De Pure CSS Terminal Chip */
.cyber-chip {
    position: relative;
    background: linear-gradient(90deg, rgba(34, 211, 238, 0.08) 0%, rgba(34, 211, 238, 0.01) 100%);
    border: none;
    border-left: 2px solid var(--primary-cyan);
    color: var(--primary-cyan);
    padding: 8px 16px 8px 24px;
    font-family: 'Courier New', Courier, monospace;
    font-size: 10px;
    font-weight: bold;
    letter-spacing: 1px;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.3s ease;
    text-transform: uppercase;
}

/* Het "Status Lampje" (Gemaakt met pure CSS) */
.cyber-chip::before {
    content: '';
    position: absolute;
    left: 8px;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 4px;
    background-color: var(--primary-cyan);
    box-shadow: 0 0 5px var(--primary-cyan);
    opacity: 0.5;
    transition: all 0.3s ease;
}

/* De Hover Animatie */
.cyber-chip:hover {
    background: linear-gradient(90deg, rgba(34, 211, 238, 0.15) 0%, rgba(34, 211, 238, 0.02) 100%);
    border-left: 4px solid #14F195; /* Solana Green glow on hover */
    color: #14F195;
    padding-left: 26px; /* Kleine 'shift' naar rechts voor een fysiek knop-gevoel */
}

.cyber-chip:hover::before {
    background-color: #14F195;
    box-shadow: 0 0 8px #14F195;
    opacity: 1;
}

/* De nieuwe compacte wrapper die ruimte bespaart voor de chat */
.central-balance-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 10px 0 15px 0;
    border-bottom: 1px solid rgba(20, 241, 149, 0.15); /* Subtiele groene lijn */
    background: radial-gradient(circle at center, rgba(20, 241, 149, 0.05) 0%, transparent 60%);
}

/* De gigantische, spinnende live balans */
.solana-live-balance {
    font-size: 34px;
    font-weight: 900;
    color: #14F195; /* Officiële Solana Groen */
    font-family: 'Courier New', Courier, monospace;
    margin: 8px 0;
    letter-spacing: 2px;
    animation: solanaPulse 2s infinite ease-in-out;
}

/* De ademende neon-glow animatie */
@keyframes solanaPulse {
    0% { text-shadow: 0 0 10px rgba(20, 241, 149, 0.3); }
    50% { text-shadow: 0 0 25px rgba(20, 241, 149, 0.8), 0 0 5px #14F195; }
    100% { text-shadow: 0 0 10px rgba(20, 241, 149, 0.3); }
}

/* Compacte info balkjes eromheen */
.balance-top-info, .balance-bottom-info {
    display: flex;
    align-items: center;
    gap: 15px;
    font-family: monospace;
    font-size: 10px;
    color: var(--text-dim);
}

.capacity-compact {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Zorg dat de chat-container de 'ouder' is */
#chat-container {
    position: relative !important;
    overflow-y: auto;
}

/* Zorg dat deze keyframes in je style.css staan */
@keyframes aiPulse {
    0%, 100% { box-shadow: 0 0 10px rgba(74, 222, 128, 0.1); border-color: rgba(74, 222, 128, 0.2); }
    50% { box-shadow: 0 0 20px rgba(74, 222, 128, 0.4); border-color: #4ade80; }
}

/* 1. De Kloppende Blauwe Microfoon */
.mic-active {
    background-color: #1a73e8 !important; /* Het heldere Gemini/Google blauw */
    color: white !important;
    border-color: #1a73e8 !important;
    transform: scale(1.15); /* Maak hem iets groter */
    animation: pulse-blue 1.5s infinite; /* Start het kloppen */
    transition: all 0.2s ease-in-out;
}

@keyframes pulse-blue {
    0% { box-shadow: 0 0 0 0 rgba(26, 115, 232, 0.7); }
    70% { box-shadow: 0 0 0 15px rgba(26, 115, 232, 0); }
    100% { box-shadow: 0 0 0 0 rgba(26, 115, 232, 0); }
}

/* 2. De Live Stem Visualizer in het tekstvak */
.neural-visualizer {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    margin-left: 10px;
    height: 18px;
    vertical-align: middle;
}

.neural-visualizer .bar {
    width: 4px;
    height: 4px; /* Standaard hoogte als je stil bent */
    background-color: #1a73e8;
    border-radius: 2px;
    transition: height 0.05s ease; /* Zorgt voor de vloeiende beweging */
}

/* --- NEURAL EXPANSION MODULE STYLES --- */

.neural-header-box {
    text-align: center;
    margin-bottom: 25px;
}

.neon-title {
    color: var(--primary-cyan, #22d3ee);
    font-size: 1.5rem;
    letter-spacing: 2px;
    text-shadow: 0 0 10px rgba(34, 211, 238, 0.4);
    margin-bottom: 5px;
}

.subtitle {
    color: #8892b0;
    font-size: 0.85rem;
    font-family: monospace;
}

/* BOUNTY CARDS */
.bounty-cards-wrapper {
    display: flex;
    gap: 15px;
    margin-bottom: 25px;
}

.bounty-card {
    flex: 1;
    background: rgba(10, 20, 40, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 15px;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: all 0.3s ease;
}

.bounty-card.premium {
    background: linear-gradient(145deg, rgba(20, 241, 149, 0.05), rgba(20, 241, 149, 0.15));
    border: 1px solid rgba(20, 241, 149, 0.4);
    box-shadow: 0 0 20px rgba(20, 241, 149, 0.1);
}

.bounty-icon {
    font-size: 1.8rem;
    background: rgba(0,0,0,0.3);
    padding: 10px;
    border-radius: 8px;
}

.bounty-info {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.bounty-label {
    font-size: 0.75rem;
    color: #8892b0;
    font-family: monospace;
    letter-spacing: 1px;
}

.bounty-desc {
    font-size: 0.65rem;
    color: #64748b;
}

.bounty-value {
    font-size: 1.2rem;
    font-weight: bold;
    color: #fff;
    font-family: monospace;
}

.bounty-value.highlight {
    color: #14F195; /* Solana Green */
    text-shadow: 0 0 10px rgba(20, 241, 149, 0.5);
}

/* LINK TERMINAL */
.link-terminal-box {
    background: rgba(5, 11, 26, 0.8);
    border: 1px solid rgba(34, 211, 238, 0.2);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 25px;
}

.link-group label {
    display: block;
    font-size: 0.7rem;
    color: #22d3ee;
    margin-bottom: 8px;
    font-family: monospace;
    letter-spacing: 1px;
}

.input-row {
    display: flex;
    gap: 10px;
}

.input-row input {
    flex-grow: 1;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #a8b2d1;
    padding: 12px 15px;
    border-radius: 6px;
    font-family: monospace;
    font-size: 0.85rem;
    outline: none;
}

.input-row input:focus {
    border-color: rgba(34, 211, 238, 0.5);
    box-shadow: 0 0 10px rgba(34, 211, 238, 0.1);
}

.cyber-btn-small {
    background: rgba(34, 211, 238, 0.1);
    border: 1px solid rgba(34, 211, 238, 0.4);
    color: #22d3ee;
    padding: 0 20px;
    border-radius: 6px;
    cursor: pointer;
    font-family: monospace;
    font-weight: bold;
    transition: all 0.2s;
}

.cyber-btn-small:hover {
    background: rgba(34, 211, 238, 0.2);
    box-shadow: 0 0 15px rgba(34, 211, 238, 0.3);
}

.cyber-btn-large {
    width: 100%;
    margin-top: 20px;
    padding: 15px;
    border-radius: 8px;
    font-family: monospace;
    font-weight: bold;
    font-size: 0.9rem;
    letter-spacing: 1px;
    cursor: pointer;
    border: none;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    transition: all 0.3s;
}

.telegram-share-btn {
    background: linear-gradient(90deg, #14F195, #0ea5e9);
    color: #050b1a;
}

.telegram-share-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(20, 241, 149, 0.4);
}

/* STATS GRID */
.stats-grid {
    display: flex;
    gap: 15px;
}

.stat-box {
    flex: 1;
    background: rgba(5, 11, 26, 0.8);
    border: 1px dashed rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 15px;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.stat-box.glow-box {
    border: 1px solid rgba(20, 241, 149, 0.3);
    background: rgba(20, 241, 149, 0.02);
}

.stat-title {
    font-size: 0.65rem;
    color: #8892b0;
    letter-spacing: 1px;
}

.stat-number {
    font-size: 1.5rem;
    font-family: monospace;
    font-weight: bold;
    color: #fff;
}

.stat-number.neon-green {
    color: #14F195;
}

/* Sidebar Header container */
.sidebar-header {
    height: auto;
    padding: 20px 15px;
    border-bottom: 1px solid var(--border);
    position: relative;
    background: rgba(5, 11, 26, 0.4);
}

/* De container voor avatar + tekst */
.profile-gate {
    display: flex;
    align-items: center;
    gap: 12px; /* De afstand tussen avatar en tekst */
    cursor: pointer;
    transition: transform 0.2s ease;
}

.profile-gate:hover {
    transform: translateX(5px);
}

/* De avatar zelf */
.avatar-circle {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 2px solid var(--primary-cyan);
    background-color: #050b1a;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    box-shadow: 0 0 15px rgba(74, 222, 128, 0.2);
    flex-shrink: 0;
}

/* Tekst styling */
.profile-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
    line-height: 1.1; /* Dichter op elkaar */
}

.nickname {
    color: #fff;
    font-weight: 900;
    font-size: 14px;
    font-family: 'Inter', sans-serif;
    letter-spacing: 0.5px;
}

.profile-link {
    color: var(--accent-blue);
    font-size: 10px;
    font-family: monospace;
    font-weight: bold;
    text-transform: uppercase;
    margin-top: 2px;
    opacity: 0.8;
}

.profile-link:hover {
    text-decoration: underline;
    opacity: 1;
}

/* Close knop */
.close-sidebar {
    position: absolute;
    top: 10px;
    right: 10px;
    background: none;
    border: none;
    color: #8492a6;
    font-size: 22px;
    cursor: pointer;
}

