/* Gebruik dit voor je Profiel Container */
.profile-dashboard { 
    display: flex; 
    flex-direction: column; 
    gap: 15px; 
    
    /* Responsive breedte: 95% op mobiel, max 650px op desktop */
    width: 95%;
    max-width: 800px; 
    margin: 0px auto; 
    
    /* Visuele look */
    background: rgba(5, 11, 26, 0.75); 
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(34, 211, 238, 0.2);
    border-radius: 10px; 
    padding: 25px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
    position: relative;
    box-sizing: border-box;
}

/* Zorg dat de inputs binnen de container niet breken */
.profile-dashboard input, 
.profile-dashboard textarea {
    width: 100%;
    box-sizing: border-box;
}

/* Responsive aanpassing */
@media (max-width: 480px) {
    .profile-dashboard {
        padding: 15px;
        margin: 10px auto;
    }
}
    

/* HEADER: Strakke donkere balk met zachte gradient */
.profile-header { 
    display: flex; 
    align-items: center; 
    gap: 24px; 
    padding: 24px;
    background: linear-gradient(135deg, rgba(34, 211, 238, 0.05) 0%, rgba(5, 11, 26, 0.8) 100%);
    border: 1px solid rgba(34, 211, 238, 0.2);
    border-radius: 16px;
    box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.5);
}

/* AVATAR: Perfect rond, zachte glow, hover effect */
.avatar-large { 
    width: 120px; 
    height: 120px; 
    border-radius: 50%; 
    border: 2px solid var(--primary-cyan); 
    background-color: rgba(5, 11, 26, 0.9);
    background-size: cover; 
    background-position: center; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    font-size: 36px; 
    box-shadow: 0 0 15px rgba(34, 211, 238, 0.4), inset 0 0 10px rgba(34, 211, 238, 0.2);
    flex-shrink: 0;
    cursor: pointer;
    transition: all 0.3s ease;
}

.avatar-large:hover {
    box-shadow: 0 0 25px rgba(34, 211, 238, 0.6), inset 0 0 15px rgba(34, 211, 238, 0.4);
    transform: scale(1.05);
}

/* Avatar Edit Potloodje */
.avatar-container { position: relative; cursor: pointer; }

.avatar-edit-icon {
    position: absolute;
    bottom: 0;
    right: 0;
    background: var(--primary-cyan);
    color: #000;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    border: 2px solid #050b1a;
    transition: transform 0.2s;
}

.avatar-edit-icon:hover { transform: scale(1.1); }

/* Status Bio Styling */
.status-bio {
    margin-top: 10px;
    font-family: 'Courier New', monospace;
    font-size: 11px;
    color: var(--text-dim);
    font-style: italic;
    border-left: 2px solid var(--primary-cyan);
    padding-left: 10px;
    background: rgba(0,0,0,0.2);
    padding: 8px;
    border-radius: 0 4px 4px 0;
}


/* NICKNAME INPUT: Flexibele groep voor input + knop */
.profile-identity { 
    display: flex; 
    flex-direction: column; 
    gap: 10px; 
    flex: 1;
}

.profile-identity label {
    font-family: monospace;
    font-size: 11px;
    color: var(--primary-cyan);
    letter-spacing: 1px;
}

.nick-edit-group {
    display: flex;
    gap: 12px;
    width: 100%;
}
/* --- DYNAMISCHE & COMPACTE INPUT VELDEN --- */
.input-with-icon {
    display: flex;
    align-items: center;
    position: relative;
    width: 100%;
}

.input-with-icon i {
    position: absolute;
    left: 10px;
    font-size: 10px;
    color: var(--primary-cyan);
    opacity: 0.6;
}

.nick-edit {
    flex: 1;
    background: transparent; /* Doorzichtig totdat je klikt */
    border: 1px solid rgba(34, 211, 238, 0.15); 
    color: #fff; 
    padding: 6px 10px 6px 28px; /* Kleiner, met ruimte voor het icoon links */
    border-radius: 4px;
    font-size: 11px;
    font-family: 'Inter', sans-serif;
    transition: all 0.3s ease;
    width: 100%;
    box-sizing: border-box;
}

.nick-edit:focus {
    outline: none;
    background: rgba(0, 0, 0, 0.4);
    border-color: var(--primary-cyan);
    box-shadow: 0 0 10px rgba(34, 211, 238, 0.1);
}

.nick-edit::placeholder {
    color: rgba(255, 255, 255, 0.3);
}

/* --- ULTIEME FIX VOOR BROWSER AUTOFILL (Voorkomt onzichtbare tekst) --- */
.nick-edit:-webkit-autofill,
.nick-edit:-webkit-autofill:hover, 
.nick-edit:-webkit-autofill:focus, 
.nick-edit:-webkit-autofill:active {
    /* Forceert een donkere achtergrond van binnenuit, passend bij je app-stijl */
    -webkit-box-shadow: 0 0 0px 1000px #050b1a inset !important;
    
    /* Forceert de letters om altijd strak wit te blijven */
    -webkit-text-fill-color: #fff !important;
    
    /* Extra back-up voor oudere browsers */
    transition: background-color 5000s ease-in-out 0s;
    font-family: 'Inter', sans-serif;
}

/* STATS GRID: Donkere glazen panelen met groene/cyan text */
.stats-grid { 
    display: grid; 
    grid-template-columns: repeat(3, 1fr); 
    gap: 16px; 
}

.stat-card { 
    background: linear-gradient(180deg, rgba(5, 11, 26, 0.8) 0%, rgba(10, 20, 35, 0.9) 100%);
    padding: 16px; 
    border: 1px solid rgba(74, 222, 128, 0.2); 
    border-radius: 12px;
    text-align: center; 
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(74, 222, 128, 0.15);
    border-color: rgba(74, 222, 128, 0.5);
}

.stat-card span { 
    display: block; 
    font-size: 10px; 
    color: rgba(255, 255, 255, 0.6); 
    margin-bottom: 8px;
    letter-spacing: 1px;
    font-family: monospace;
    text-transform: uppercase;
}

.stat-card div {
    font-size: 18px;
    font-weight: 900;
    color: #4ade80; 
    font-family: 'Inter', sans-serif;
    text-shadow: 0 0 10px rgba(74, 222, 128, 0.3);
}

/* BIO SECTIE: Netjes opgemaakt paneel */
.bio-section { 
    background: rgba(5, 11, 26, 0.5);
    padding: 20px; 
    border-radius: 12px;
    border: 1px dashed rgba(34, 211, 238, 0.3);
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.bio-section label {
    font-family: monospace;
    font-size: 12px;
    color: var(--primary-cyan);
    letter-spacing: 1px;
}

.bio-section textarea { 
    width: 100%; 
    height: 90px; 
    background: rgba(0, 0, 0, 0.4); 
    border: 1px solid rgba(255, 255, 255, 0.1); 
    color: #fff; 
    padding: 12px; 
    border-radius: 8px;
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    line-height: 1.5;
    resize: none;
    transition: all 0.3s ease;
}

.bio-section textarea:focus {
    outline: none;
    border-color: var(--primary-cyan);
    background: rgba(0, 0, 0, 0.6);
    box-shadow: inset 0 0 10px rgba(34, 211, 238, 0.1);
}

/* REFERRAL BOX: Hero-paneel met prominente acties */
.referral-box { 
    background: linear-gradient(135deg, rgba(34, 211, 238, 0.05) 0%, rgba(5, 11, 26, 0.9) 100%);
    border: 1px solid var(--primary-cyan); 
    padding: 24px; 
    border-radius: 16px;
    box-shadow: 0 0 20px rgba(34, 211, 238, 0.1);
    position: relative;
    overflow: hidden;
}

.referral-box h3 {
    color: #fff;
    font-family: monospace;
    margin: 0 0 10px 0;
    font-size: 15px;
    letter-spacing: 2px;
}

.referral-box p {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 20px;
    line-height: 1.4;
}

.referral-box p strong {
    color: #4ade80;
}

.ref-link-area { 
    display: flex; 
    gap: 12px; 
    margin-bottom: 20px; 
}

#ref-link-output { 
    flex: 1; 
    background: rgba(0, 0, 0, 0.7); 
    border: 1px solid rgba(34, 211, 238, 0.4); 
    color: var(--primary-cyan); 
    padding: 12px 16px; 
    border-radius: 8px;
    font-family: monospace;
    font-size: 13px;
    letter-spacing: 0.5px;
}

.share-actions { 
    display: flex; 
    gap: 12px; 
}

/* UNIVERSELE KNOPPEN (Ronde hoeken, hover glow) */
/* --- COMPACTE PREMIUM KNOPPEN --- */
.cyber-btn-small {
    background: rgba(34, 211, 238, 0.1);
    border: 1px solid var(--primary-cyan);
    color: var(--primary-cyan);
    padding: 6px 14px; /* COMPACTER */
    border-radius: 6px;
    font-family: monospace;
    font-weight: 900;
    font-size: 10px; /* COMPACTER */
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.3s ease;
}

.cyber-btn-small:hover {
    background: var(--primary-cyan);
    color: #000;
    box-shadow: 0 0 10px var(--primary-cyan);
}

/* Status Bio in de header */
.status-bio {
    margin-top: 8px;
    font-family: 'Courier New', monospace;
    font-size: 10px;
    color: var(--text-dim);
    border-left: 2px solid var(--primary-purple);
    padding-left: 10px;
    font-style: italic;
}

/* Accent kleuren voor knoppen */
.btn-save { border-color: #ffd700 !important; color: #ffd700 !important; }
.btn-save:hover { background: #ffd700 !important; color: #000 !important; }

.btn-sync { border-color: #ab9ff2 !important; color: #ab9ff2 !important; }
.btn-sync:hover { background: #ab9ff2 !important; color: #000 !important; }
.btn-social {
    flex: 1; /* Laat knoppen de ruimte vullen */
}

.btn-tg {
    border-color: #4ade80;
    color: #4ade80;
    background: rgba(74, 222, 128, 0.1);
}

.btn-tg:hover {
    background: #4ade80;
    color: #050b1a;
    box-shadow: 0 0 15px rgba(74, 222, 128, 0.4);
}

/* Animaties */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}


/* ========================================================= */
/* --- SIDEBAR HEADER & PROFILE GATE (PREMIUM STYLE) --- */
/* ========================================================= */

.sidebar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    background: linear-gradient(180deg, rgba(5, 11, 26, 0.9) 0%, rgba(5, 11, 26, 0.4) 100%);
    border-bottom: 1px solid rgba(34, 211, 238, 0.15);
    position: relative;
}

/* De klikbare profiel container */
.profile-gate {
    display: flex;
    align-items: center;
    gap: 15px;
    cursor: pointer;
    padding: 10px 15px 10px 10px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid transparent;
    transition: all 0.3s cubic-bezier(0.23, 1, 0.32, 1);
    flex: 1;
    margin-right: 15px; /* Ruimte voor de X knop */
}

/* Hover effect voor de hele kaart */
.profile-gate:hover {
    background: rgba(34, 211, 238, 0.05);
    border-color: rgba(34, 211, 238, 0.3);
    box-shadow: 0 4px 15px rgba(34, 211, 238, 0.1);
    transform: translateX(5px);
}

/* De Avatar Cirkel */
.avatar-circle {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    border: 2px solid var(--primary-cyan);
    background-color: rgba(0, 0, 0, 0.5);
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    box-shadow: 0 0 10px rgba(74, 222, 128, 0.2);
    flex-shrink: 0;
    transition: all 0.3s ease;
}

/* Avatar glow bij hover */
.profile-gate:hover .avatar-circle {
    box-shadow: 0 0 15px var(--primary-cyan);
    transform: scale(1.05);
}

/* Tekst container */
.profile-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 4px;
}

/* Nickname Styling */
.nickname {
    color: #fff;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    font-weight: 900;
    letter-spacing: 0.5px;
    margin: 0;
    transition: color 0.3s ease;
}

.profile-gate:hover .nickname {
    color: var(--primary-cyan);
    text-shadow: 0 0 8px rgba(74, 222, 128, 0.4);
}

/* De "NEURAL_PROFILE" tag */
.profile-link {
    color: var(--accent-blue, #22d3ee);
    font-family: 'Courier New', monospace;
    font-size: 9px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    transition: all 0.3s ease;
}

.profile-gate:hover .profile-link {
    letter-spacing: 2px;
}

/* De sluit-knop in de hoek */
.close-sidebar {
    background: transparent;
    border: none;
    color: var(--text-dim);
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 8px;
}

.close-sidebar:hover {
    color: #ff4d4d;
    background: rgba(255, 77, 77, 0.1);
    text-shadow: 0 0 10px #ff4d4d;
    transform: rotate(90deg); /* Coole draai-animatie */
}

/* --- REFERRAL PROTOCOL TEKST --- */
.protocol-details {
    font-size: 11px;
    color: var(--text-dim);
    line-height: 1.4;
    margin-bottom: 15px;
}

.protocol-details p { margin: 0 0 8px 0; }

.protocol-list {
    margin: 0;
    padding-left: 20px;
    color: var(--text-dim);
}

.protocol-list li { margin-bottom: 4px; }
.protocol-list strong { color: #4ade80; font-weight: 900; }

/* --- SOCIAL SHARE KNOPPEN --- */
.btn-social {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    flex: 1; /* Zorgt dat de knoppen de breedte netjes verdelen */
}

/* X (Twitter) Styling - Zwart/Wit */
.btn-x { 
    border-color: rgba(255, 255, 255, 0.4); 
    color: #fff; 
}
.btn-x:hover { 
    background: #fff; 
    color: #000; 
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.5); 
}

/* Telegram Styling - Officieel Blauw */
.btn-tg { 
    border-color: #0088cc; 
    color: #0088cc; 
}
.btn-tg:hover { 
    background: #0088cc; 
    color: #fff; 
    box-shadow: 0 0 10px rgba(0, 136, 204, 0.5); 
}

/* E-mail Share Styling */
.btn-email { 
    border-color: var(--primary-purple); 
    color: var(--primary-purple); 
}
.btn-email:hover { 
    background: var(--primary-purple); 
    color: #000; 
    box-shadow: 0 0 10px var(--primary-purple); 
}

/* --- BIO WOLK STYLING --- */
#bio-popup {
    position: absolute;
    background: rgba(5, 11, 26, 0.95);
    border: 1px solid var(--primary-cyan);
    color: #fff;
    padding: 10px;
    border-radius: 8px;
    font-size: 11px;
    max-width: 200px;
    z-index: 9999;
    box-shadow: 0 4px 15px rgba(0,0,0,0.5);
    display: none; /* Standaard onzichtbaar */
    pointer-events: none; /* Zorgt dat het de muis niet blokkeert */
}