html {
    background-color: #111; /* Gebruik hier de achtergrondkleur van je app */
}

/* --- 1. BASIS --- */
* { box-sizing: border-box; }
body { margin: 0; font-family: 'Segoe UI', Arial, sans-serif; background: #000; color: #fff; line-height: 1.6; overflow-x: hidden; animation: fadeInPage 0.3s ease-in-out forwards;
}

@keyframes fadeInPage {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* --- 2. NAVIGATIE --- */
header { background: #111; padding: 15px 0; border-bottom: 1px solid #333; position: sticky; top: 0; z-index: 1000; }
.nav-bar { width: 95%; max-width: 1200px; margin: 0 auto; display: flex; justify-content: space-between; align-items: center; }
.logo-text { font-weight: 900; font-size: 1.6rem; color: #ffcc00; text-decoration: none; letter-spacing: 2px; }
.nav-links a { color: #fff; text-decoration: none; margin-left: 15px; font-size: 0.85rem; font-weight: bold; }
.nav-links a:hover { color: #ffcc00; }

/* --- 3. GRID LAYOUT (Ontdek/Matches/Likes) --- */
.user-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 10px; padding: 15px; }

.user-card {
    aspect-ratio: 2/3;
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    background: #111;
    border: 1px solid #222;
    display: block;
    text-decoration: none;
    color: inherit;
}

.user-card img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* --- 4. OVERLAY (Info bovenop foto) --- */
.user-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 35px 10px 10px;
    background: linear-gradient(transparent, rgba(0,0,0,0.95));
    z-index: 10;
}

/* --- 5. STIJLVOLLE PLACEHOLDER --- */
.no-photo {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #1f1f1f 0%, #0a0a0a 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.no-photo::after {
    content: '';
    width: 45%;
    height: 45%;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23ffcc00'%3E%3Cpath d='M12 12c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm0 2c-2.67 0-8 1.34-8 4v2h16v-2c0-2.66-5.33-4-8-4z'/%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    opacity: 0.5; 
    filter: drop-shadow(0 0 12px rgba(255, 204, 0, 0.6)); 
    transition: all 0.3s ease;
}

.user-card:hover .no-photo::after {
    opacity: 0.9;
    filter: drop-shadow(0 0 20px rgba(255, 204, 0, 0.9));
    transform: scale(1.08);
}

/* --- 6. STATUS DOTS --- */
.status-dot { width: 10px; height: 10px; border-radius: 50%; display: inline-block; margin-right: 6px; }
.online { background: #00ff00; box-shadow: 0 0 5px #00ff00; }
.offline { background: #555; }

/* --- 7. PROFIEL CONTAINERS --- */
.auth-container { width: 95%; max-width: 550px; margin: 20px auto; padding: 20px; background: #111; border-radius: 20px; border: 1px solid #222; }
.profile-img-container { width: 110px; height: 110px; border-radius: 50%; overflow: hidden; margin: 0 auto 15px; border: 2px solid #ffcc00; background: #222; display: flex; align-items: center; justify-content: center; }
.info-box { background: #1a1a1a; padding: 20px; border-radius: 15px; margin-bottom: 15px; border: 1px solid #222; }
.info-row { display: flex; justify-content: space-between; align-items: center; padding: 12px 0; border-bottom: 1px solid #222; }
.info-row:last-child { border-bottom: none; }
.info-row span { color: #888; font-size: 0.9rem; }

/* --- 8. SCHUIFBALKEN --- */
.switch { position: relative; display: inline-block; width: 45px; height: 24px; flex-shrink: 0; }
.switch input { opacity: 0; width: 0; height: 0; }
.slider { position: absolute; cursor: pointer; top: 0; left: 0; right: 0; bottom: 0; background-color: #333; transition: .4s; border-radius: 24px; }
.slider:before { position: absolute; content: ""; height: 18px; width: 18px; left: 3px; bottom: 3px; background-color: white; transition: .4s; border-radius: 50%; }
input:checked + .slider { background-color: #ffcc00; }
input:checked + .slider:before { transform: translateX(21px); }

/* --- 9. FORMULIEREN & KNOPPEN --- */
input[type="text"], input[type="number"], select, textarea { 
    background: #000; color: #fff; border: 1px solid #333; padding: 10px; border-radius: 8px; width: 100%; font-size: 0.9rem; 
}
label { display: block; color: #888; font-size: 0.7rem; font-weight: bold; margin-bottom: 5px; }

.btn-primary { display: block; width: 100%; padding: 15px; background: #ffcc00; color: #000; text-align: center; text-decoration: none; font-weight: bold; border-radius: 10px; border: none; cursor: pointer; }
.btn-primary:hover { background: #e6b800; }

/* --- 10. MODAL (Foto vergroten) --- */
.modal { display: none; position: fixed; z-index: 2000; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.95); cursor: pointer; }
.modal-content { margin: auto; display: block; max-width: 90%; max-height: 85vh; border-radius: 10px; }

/* --- 11. GLOBALE BEL POP-UP --- */
#global-incoming-call { display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.95); z-index: 99999; flex-direction: column; justify-content: center; align-items: center; font-family: 'Segoe UI', Arial, sans-serif; }
.global-call-btn { width: 70px; height: 70px; border-radius: 50%; border: none; font-size: 28px; display: flex; justify-content: center; align-items: center; cursor: pointer; color: #fff; box-shadow: 0 0 15px rgba(0,0,0,0.5); }
.global-btn-green { background: #00cc00; }
.global-btn-red { background: #cc0000; }
@keyframes globalPulse { 0% { transform: scale(1); } 50% { transform: scale(1.1); } 100% { transform: scale(1); } }
.global-pulse-text { animation: globalPulse 1.5s infinite; font-size: 24px; text-align: center; margin: 0 0 10px 0; }

/* --- 12. CHAT OPMAAK --- */
.chat-container { position: absolute; top: 0; bottom: 0; left: 0; right: 0; display: flex; flex-direction: column; background: #111; }
#initial-loader { position: absolute; top: 0; left: 0; right: 0; bottom: 0; background: #111; z-index: 99999; display: flex; flex-direction: column; align-items: center; justify-content: center; transition: opacity 0.3s ease; }
.spinner { width: 36px; height: 36px; border: 3px solid rgba(255,204,0,0.2); border-top: 3px solid #ffcc00; border-radius: 50%; animation: spin 1s linear infinite; }
@keyframes spin { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }
.chat-header { padding: 10px 15px; border-bottom: 1px solid #333; display: flex; align-items: center; gap: 10px; background: #1a1a1a; z-index: 10; flex-shrink: 0; }
.chat-messages { flex: 1; overflow-y: auto; padding: 20px; display: flex; flex-direction: column; gap: 15px; position: relative; }
#scroll-bottom-btn { display: none; position: absolute; bottom: 70px; right: 15px; width: 40px; height: 40px; background: #222; border: 1px solid #444; border-radius: 4px; color: #ffcc00; cursor: pointer; align-items: center; justify-content: center; z-index: 500; box-shadow: 0 4px 10px rgba(0,0,0,0.5); transition: 0.2s; padding: 0; }
#scroll-bottom-btn:hover { background: #333; border-color: #ffcc00; }
@keyframes bigPulse { 0% { transform: scale(1); } 50% { transform: scale(1.1); } 100% { transform: scale(1); } }
.pulse-text { animation: bigPulse 1.5s infinite; font-size: 24px; text-align: center; }
#incoming-call-overlay, #outgoing-call-overlay { display: none; position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.95); z-index: 25000; flex-direction: column; justify-content: center; align-items: center; }
.call-btn-circle { width: 70px; height: 70px; border-radius: 50%; border: none; font-size: 28px; display: flex; justify-content: center; align-items: center; cursor: pointer; color: #fff; box-shadow: 0 0 15px rgba(0,0,0,0.5); }
.btn-green { background: #00cc00; }
.btn-red { background: #cc0000; }
#video-overlay { display: none; position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: #000; z-index: 20000; flex-direction: column; overflow: hidden; }
#video-header { padding: 10px 15px; background: #1a1a1a; display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid #333; z-index: 20002; }
.close-video-btn { background: #ff4444; color: #fff; border: none; padding: 6px 15px; border-radius: 4px; font-weight: bold; cursor: pointer; transition: 0.2s; }
#video-container { flex: 1; position: relative; background: #000; overflow: hidden; min-height: 0; }
#remote-video { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: contain; background: #000; }
#local-video { width: 100px; height: 150px; position: absolute; bottom: 20px; right: 20px; border: 2px solid #ffcc00; border-radius: 4px; object-fit: cover; background: #222; box-shadow: 0 0 10px rgba(0,0,0,0.8); z-index: 20001; }
.msg-wrapper { display: flex; flex-direction: column; position: relative; }
.msg { max-width: 75%; padding: 10px 15px; border-radius: 15px; font-size: 13px; line-height: 1.4; position: relative; word-wrap: break-word; user-select: none; }
.msg.sent { align-self: flex-end; background: #ffcc00; color: #000; border-bottom-right-radius: 2px; }
.msg.received { align-self: flex-start; background: #222; color: #fff; border: 1px solid #333; border-bottom-left-radius: 2px; cursor: pointer; }
.reaction-badge { position: absolute; bottom: -8px; background: #222; border: 1px solid #444; border-radius: 50%; padding: 2px 4px; font-size: 12px; z-index: 10; box-shadow: 0 2px 5px rgba(0,0,0,0.5); pointer-events: none; }
.typing-indicator { display: none; padding: 5px 20px; font-size: 11px; color: #ffcc00; font-style: italic; background: #111; border-top: 1px solid #333; animation: pulse 1.5s infinite; }
.link-preview-box:not(:empty) { margin-top: 8px; border: 1px solid #444; border-radius: 4px; overflow: hidden; background: #1a1a1a; display: flex; flex-direction: column; }
.link-preview-box a { text-decoration: none; color: inherit; display: block; }
.link-preview-img { width: 100%; height: 120px; object-fit: cover; background: #111; border-bottom: 1px solid #333; }
.link-preview-info { padding: 8px; }
.link-preview-title { font-weight: bold; font-size: 12px; color: #ffcc00; margin-bottom: 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.link-preview-desc { font-size: 10px; color: #aaa; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.chat-input-area { position: relative; padding: 12px 10px; border-top: 1px solid #333; display: flex; flex-direction: column; gap: 10px; background: #1a1a1a; flex-shrink: 0; }
.chat-input-row { display: flex; gap: 8px; width: 100%; align-items: center; justify-content: space-between; }
.upload-btn { background: #222; border: 1px solid #444; color: #fff; width: 42px; height: 42px; display: flex; align-items: center; justify-content: center; border-radius: 4px; cursor: pointer; font-size: 18px; transition: 0.2s; line-height: 1; padding: 0; flex-shrink: 0; }
.upload-btn:hover { border-color: #ffcc00; }
.dynamic-send-btn { height: 42px; width: 42px; background: #ffcc00; border: none; border-radius: 4px; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: 0.2s; flex-shrink: 0; padding: 0; }
.dynamic-send-btn.is-rec { background: #ff4444; }
.input-wrapper { display: flex; flex: 1; background: #222; border: 1px solid #333; border-radius: 4px; align-items: center; transition: 0.2s; height: 42px; padding: 0 5px; }
.input-wrapper:focus-within { border-color: #ffcc00; }
.input-wrapper input[type="text"] { flex: 1; height: 100%; background: transparent; border: none; color: #fff; padding: 0 5px; outline: none; font-size: 14px; min-width: 0; }
.input-inside-btn { background: none; border: none; color: #aaa; cursor: pointer; padding: 0 8px; display: flex; align-items: center; justify-content: center; height: 100%; transition: 0.2s; }
.input-inside-btn:hover { color: #ffcc00; }
.view-once-inline { display: none; background: transparent; border: 1px dashed #888; color: #888; width: 24px; height: 24px; border-radius: 4px; font-weight: bold; cursor: pointer; transition: 0.2s; align-items: center; justify-content: center; font-size: 12px; flex-shrink: 0; margin-right: 5px; }
.view-once-inline.active { background: #ffcc00; border: 1px solid #ffcc00; color: #000; }
.photo-btn-wrapper { position: relative; display: inline-block; }
#lightbox { display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.95); z-index: 50000; justify-content: center; align-items: center; cursor: pointer; }
#lightbox img { max-width: 95%; max-height: 95%; object-fit: contain; }
#lightbox-timer { position: absolute; top: 20px; right: 20px; background: red; color: #fff; padding: 10px; border-radius: 50%; font-weight: bold; width: 30px; height: 30px; display: none; justify-content: center; align-items: center; z-index: 50001; }
.emoji-picker { display: none; position: absolute; bottom: 65px; left: 15px; background: #222; border: 1px solid #444; border-radius: 4px; padding: 10px; width: 280px; max-height: 200px; overflow-y: auto; grid-template-columns: repeat(7, 1fr); gap: 8px; font-size: 20px; z-index: 100; box-shadow: 0 5px 15px rgba(0,0,0,0.8); }
.emoji-picker span { cursor: pointer; text-align: center; transition: 0.2s; }
.emoji-picker span:hover { transform: scale(1.2); }
.action-menu { display: none; position: absolute; background: #222; border: 1px solid #444; border-radius: 4px; width: 150px; z-index: 100; flex-direction: column; overflow: hidden; box-shadow: 0 5px 15px rgba(0,0,0,0.5); }
.action-menu button, .action-menu label { background: none; border: none; color: #fff; padding: 12px 15px; text-align: left; cursor: pointer; font-size: 13px; transition: 0.2s; display: block; width: 100%; box-sizing: border-box; font-family: inherit; }
.action-menu button:hover, .action-menu label:hover { background: #333; color: #ffcc00; }
#header-action-menu { right: 15px; top: 55px; }
#header-action-menu button:first-child { border-bottom: 1px solid #333; }
#emoji-gif-menu { bottom: 65px; left: 15px; width: 130px; }
#emoji-gif-menu button:first-child { border-bottom: 1px solid #333; }
#attachment-menu { bottom: 65px; right: 80px; width: 160px; left: auto; }
#attachment-menu button, #attachment-menu label { border-bottom: 1px solid #333; }
#attachment-menu button:last-child, #attachment-menu label:last-child { border-bottom: none; }
#global-reaction-menu { display: none; position: absolute; background: #222; border: 1px solid #ffcc00; border-radius: 4px; padding: 8px 12px; gap: 12px; z-index: 10000; box-shadow: 0 5px 15px rgba(0,0,0,0.8); font-size: 22px; cursor: pointer; align-items: center; }
#global-reaction-menu span { transition: 0.2s; cursor: pointer; }
#global-reaction-menu span:hover { transform: scale(1.3); }
#reply-preview { display: none; background: #1a1a1a; padding: 10px 15px; flex-shrink: 0; }
#reply-content { background: rgba(255,204,0,0.1); border-left: 3px solid #ffcc00; padding: 8px 30px 8px 8px; border-radius: 4px; color: #ccc; font-size: 12px; position: relative; }
.close-reply { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); cursor: pointer; color: #ff4444; font-weight: bold; font-size: 16px; }
#mediaModal { display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.95); z-index: 30000; flex-direction: column; }
.media-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 2px; padding: 5px; overflow-y: auto; flex: 1; align-content: start; }
.media-grid img { width: 100%; aspect-ratio: 1/1; object-fit: cover; border-radius: 4px; cursor: pointer; transition: 0.2s; }
.media-grid img:hover { filter: brightness(1.1); }

/* --- 13. LOGIN & WACHTWOORD SCHERMEN --- */
.auth-card { max-width: 400px; margin: 40px auto; padding: 30px; border: 1px solid #ffcc00; background: #111; border-radius: 8px; box-shadow: 0 10px 30px rgba(0,0,0,0.5); }
.auth-toggle { display: flex; border-bottom: 1px solid #333; margin-bottom: 25px; }
.auth-tab { flex: 1; text-align: center; padding: 12px; color: #888; cursor: pointer; font-size: 11px; font-weight: bold; letter-spacing: 1px; transition: 0.3s; }
.auth-tab.active { color: #ffcc00; border-bottom: 2px solid #ffcc00; }
.auth-form { display: none; }
.auth-form.active { display: block; }

/* Afgeschermde form-groups specifiek voor het inlogscherm */
.auth-card .form-group { margin-bottom: 18px; text-align: left; position: relative; }
.auth-card .form-group label { color:#ffcc00; font-size: 10px; font-weight: bold; display: block; margin-bottom: 5px; text-transform: uppercase; letter-spacing: 1px; }
.auth-card .form-group input, .auth-card .form-group select { width:100%; background:#222; border:1px solid #333; color:#fff; padding:12px; box-sizing:border-box; outline:none; font-size: 13px; border-radius: 4px; transition: 0.2s; }
.auth-card .form-group input:focus, .auth-card .form-group select:focus { border-color: #ffcc00; }
        
.pwd-wrapper { position: relative; }
.pwd-toggle { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); cursor: pointer; color: #888; font-size: 14px; user-select: none; }
.user-status { position: absolute; right: 10px; top: 32px; font-size: 12px; font-weight: bold; }
.strength-bar { height: 4px; background: #333; border-radius: 2px; margin-top: 8px; width: 100%; overflow: hidden; }
.strength-fill { height: 100%; width: 0%; transition: 0.4s; }
.match-text { font-size: 10px; margin-top: 5px; font-weight: bold; }
.terms-hint { font-size: 10px; color: #ff4444; margin-bottom: 8px; font-weight: bold; display: flex; align-items: center; gap: 5px; }
        
.check-label { display: flex; align-items: flex-start; gap: 10px; font-size: 11px !important; color: #ccc !important; text-transform: none !important; cursor: pointer; transition: 0.3s; }
.check-label.disabled { cursor: not-allowed; opacity: 1; }
        
.msg-box { font-size: 11px; margin-bottom: 20px; display: none; text-align: center; padding: 10px; border-radius: 4px; }
.msg-error { color: #ff4444; border: 1px solid #ff4444; background: rgba(255,0,0,0.1); }
.msg-success { color: #00ff00; border: 1px solid #00ff00; background: rgba(0,255,0,0.1); }
.loading-spinner { display: none; margin-right: 8px; border: 2px solid rgba(0,0,0,0.3); border-top: 2px solid #000; border-radius: 50%; width: 12px; height: 12px; animation: spin 0.8s linear infinite; vertical-align: middle; }
@keyframes spin { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }


/* ==========================================================================
   14. ONTDEK PAGINA & GLOBALE ELEMENTEN
   ========================================================================== */
img { -webkit-touch-callout: none; -webkit-user-select: none; user-select: none; }

.status-dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; flex-shrink: 0; }
.dot-online { background: #00ff00; box-shadow: 0 0 5px #00ff00; animation: pulse 2s infinite; }
.dot-recent { background: #ffcc00; } .dot-offline { background: #555; }
@keyframes pulse { 0% { transform: scale(1); } 50% { transform: scale(1.2); } 100% { transform: scale(1); } }

.new-badge { position: absolute; top: 8px; left: 8px; background: #ffcc00; color: #000; font-size: 8px; font-weight: bold; padding: 3px 6px; border-radius: 4px; z-index: 5; box-shadow: 0 2px 4px rgba(0,0,0,0.5); }
.nav-badge { background: #ff4444; color: #fff; font-size: 9px; font-weight: bold; padding: 2px 6px; border-radius: 10px; margin-left: 4px; vertical-align: top; display: inline-block; line-height: 1; }

.filter-toggle-btn { background: #111; color: #ffcc00; border: 1px solid #333; padding: 8px 15px; border-radius: 4px; font-weight: bold; font-size: 11px; cursor: pointer; margin-bottom: 10px; display: inline-block; transition: 0.2s; }
.filter-toggle-btn:hover { border-color: #ffcc00; }

.filter-container { display: none; background: #111; padding: 15px; border: 1px solid #333; border-radius: 4px; margin-bottom: 20px; box-shadow: 0 4px 15px rgba(0,0,0,0.5); }
.filter-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 15px; }
.filter-group label { font-size: 9px; color: #888; font-weight: bold; text-transform: uppercase; display: block; margin-bottom: 5px; }
.filter-container select, .filter-container input { background: #222; border: 1px solid #444; color: #fff; padding: 8px; border-radius: 4px; font-size: 12px; width: 100%; outline: none; transition: 0.2s; }
.filter-container select:focus, .filter-container input:focus { border-color: #ffcc00; }

.btn-search { background: #ffcc00; color: #000; border: none; padding: 8px 20px; border-radius: 4px; font-weight: bold; cursor: pointer; font-size: 12px; transition: 0.2s; }
.btn-search:hover { filter: brightness(1.1); }

.spotlight-card { margin: 0; padding: 0; overflow: hidden; border: 1px solid #333; border-radius: 4px; position: relative; aspect-ratio: 3/4; transition: 0.2s; background: #111; }
.spotlight-card:hover { border-color: #ffcc00; transform: translateY(-3px); box-shadow: 0 5px 15px rgba(0,0,0,0.5); }
.spotlight-card img { width: 100%; height: 100%; object-fit: cover; display: block; transition: 0.3s; }
.spotlight-card:hover img { transform: scale(1.03); }

.spotlight-gradient { position: absolute; bottom: 0; left: 0; right: 0; height: 60%; background: linear-gradient(to top, rgba(0,0,0,0.95) 0%, rgba(0,0,0,0.6) 50%, transparent 100%); pointer-events: none; }
.spotlight-info { position: absolute; bottom: 10px; left: 10px; right: 10px; pointer-events: none; }
.spotlight-title { font-weight: bold; font-size: 13px; color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: flex; align-items: center; gap: 6px; margin-bottom: 2px; text-shadow: 0 1px 3px rgba(0,0,0,0.8); }
.spotlight-sub { font-size: 11px; color: #ccc; margin-left: 14px; text-shadow: 0 1px 3px rgba(0,0,0,0.8); }

.spotlight-like-btn { position: absolute; top: 8px; right: 8px; font-size: 14px; text-decoration: none; z-index: 10; background: rgba(0,0,0,0.5); width: 30px; height: 30px; display: flex; align-items: center; justify-content: center; border-radius: 50%; border: 1px solid #444; cursor: pointer; transition: 0.2s; user-select: none; }
.spotlight-like-btn:hover { background: rgba(0,0,0,0.8); border-color: #ffcc00; transform: scale(1.1); }

/* Hamburger Menu Layout GLOBALS */
.menu-toggle { display: none; font-size: 28px; color: #ffcc00; cursor: pointer; user-select: none; }
@media (max-width: 650px) {
    .nav-bar { display: flex !important; flex-direction: row !important; align-items: center !important; justify-content: space-between !important; height: auto !important; padding: 10px 15px !important; position: relative; }
    .nav-bar a { height: auto !important; }
    .nav-bar a img { max-height: 85px !important; }
    .menu-toggle { display: block !important; }
    .nav-links { display: none !important; flex-direction: column !important; width: 100% !important; position: absolute; top: 100%; left: 0; background: #111; border-bottom: 1px solid #333; padding: 5px 0 !important; gap: 0 !important; box-shadow: 0 8px 16px rgba(0,0,0,0.6); z-index: 999; }
    .nav-links.active { display: flex !important; }
    .nav-links a { font-size: 13px !important; padding: 14px 20px !important; width: 100%; box-sizing: border-box; border-bottom: 1px solid #1a1a1a; text-align: left; }
    .nav-links a:last-child { border-bottom: none; }
}

/* ==========================================================================
   15. BERICHTEN PAGINA & CHAT MODAL
   ========================================================================== */
.convo-list { max-width: 600px; margin: 20px auto; padding: 0 15px; }
.convo-item {
    display: flex;
    align-items: center;
    gap: 15px;
    background: #1c1c1c; /* Veranderd van #111 naar #1c1c1c (iets lichter dan de hoofdmap) */
    padding: 15px;
    border-radius: 12px;
    border: 1px solid #2a2a2a; /* Iets zachtere border */
    margin-bottom: 10px;
    cursor: pointer;
    color: #fff;
    transition: 0.2s;
    width: 100%;
    text-align: left;
}
.convo-item:hover { border-color: #ffcc00; transform: translateY(-2px); }
.convo-avatar { width: 60px; height: 60px; border-radius: 50%; overflow: hidden; border: 2px solid #222; flex-shrink: 0; background: #1a1a1a; display: flex; justify-content: center; align-items: center; position: relative; }
.convo-avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.convo-details { flex: 1; overflow: hidden; }
.convo-name { font-weight: bold; font-size: 1.1rem; color: #ffcc00; display: flex; justify-content: space-between; margin-bottom: 5px; }
.convo-time { font-size: 0.75rem; color: #888; font-weight: normal; }
.convo-last-msg { font-size: 0.9rem; color: #aaa; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.convo-unread { font-weight: bold; color: #fff; }
.badge-new { background: #ff4444; color: #fff; font-size: 10px; padding: 3px 8px; border-radius: 10px; font-weight: bold; }

/* CHAT MODAL (Pop-up venster) */
#chatModal { display: none; position: fixed; z-index: 5000; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.9); }
.chat-modal-container { position: relative; width: 95%; max-width: 700px; height: 90vh; margin: 2.5vh auto; background: #111; border: 1px solid #ffcc00; border-radius: 15px; overflow: hidden; display: flex; flex-direction: column; }
.chat-modal-header { padding: 10px 15px; background: #1a1a1a; border-bottom: 1px solid #333; display: flex; justify-content: space-between; align-items: center; }
.chat-modal-close { cursor: pointer; color: #ffcc00; font-weight: bold; font-size: 24px; padding: 5px; }
#chatIframe { flex: 1; border: none; width: 100%; height: 100%; background: #000; }

/* ==========================================================================
   16. FOTO ALBUM SWIPE PIJLTJES
   ========================================================================== */
.prev-arrow, .next-arrow {
    cursor: pointer;
    position: absolute;
    top: 50%;
    width: auto;
    padding: 16px;
    margin-top: -25px;
    color: white;
    font-weight: bold;
    font-size: 30px;
    transition: 0.3s;
    user-select: none;
    z-index: 10000;
    background-color: rgba(0,0,0,0.5);
    border-radius: 50%;
}

.prev-arrow { left: 15px; }
.next-arrow { right: 15px; }

.prev-arrow:hover, .next-arrow:hover {
    background-color: #ffcc00;
    color: #000;
}