/* ===== MYSTIC GATEWAY LOGIN ===== */
@import url('https://fonts.googleapis.com/css2?family=Sora:wght@300;400;600;700;800&family=Inter:wght@300;400;500;600&display=swap');

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
    --bg-deep:    #07071a;
    --bg-card:    rgba(12, 12, 35, 0.82);
    --bg-input:   rgba(255,255,255,0.06);
    --border:     rgba(255,255,255,0.09);
    --accent1:    #7c5cfc;
    --accent2:    #00d4ff;
    --accent-red: #e63946;
    --text:       #e8eaf6;
    --text-muted: rgba(255,255,255,0.45);
    --radius:     16px;
    --radius-sm:  10px;
    --radius-pill:999px;
}

html, body {
    height: 100% !important;
    font-family: 'Inter', sans-serif;
    color: var(--text);
    background: var(--bg-deep);
}

/* ── Achtergrond kristalthema ────────────────────── */
#login_wrap {
    min-height: 100vh !important;
    background: #07071a !important;
    position: relative;
    overflow: hidden;
}

/* Geanimeerd sterrenveld canvas */
#mlg_starfield {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

/* Paarse kristalscherven */
#mlg_shards {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
}
.mlg-shard {
    position: absolute;
    opacity: 0;
    animation: shard_glow 6s ease-in-out infinite;
}
.mlg-shard:nth-child(1) { top: -5%; left: -3%; width: 220px; animation-delay: 0s; }
.mlg-shard:nth-child(2) { top: 5%; right: -4%; width: 180px; animation-delay: 1.5s; }
.mlg-shard:nth-child(3) { bottom: -6%; left: 20%; width: 160px; animation-delay: 3s; }
.mlg-shard:nth-child(4) { top: 40%; right: -2%; width: 140px; animation-delay: 2s; }
.mlg-shard:nth-child(5) { bottom: 10%; right: 15%; width: 120px; animation-delay: 4s; }

@keyframes shard_glow {
    0%   { opacity: 0.10; filter: drop-shadow(0 0 8px rgba(124,92,252,0.4)); }
    50%  { opacity: 0.22; filter: drop-shadow(0 0 20px rgba(124,92,252,0.7)) drop-shadow(0 0 40px rgba(0,212,255,0.3)); }
    100% { opacity: 0.10; filter: drop-shadow(0 0 8px rgba(124,92,252,0.4)); }
}

/* Diepte overlay */
#login_wrap::before {
    content: '';
    position: fixed;
    inset: 0;
    background: radial-gradient(ellipse at 30% 40%, rgba(124,92,252,0.08) 0%, transparent 60%),
                radial-gradient(ellipse at 80% 70%, rgba(0,212,255,0.06) 0%, transparent 55%),
                linear-gradient(180deg, rgba(7,7,26,0.3) 0%, rgba(7,7,26,0.6) 100%);
    pointer-events: none;
    z-index: 0;
}

#intro_top {
    min-height: 100vh !important;
    width: 100% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 30px 20px;
    position: relative;
    z-index: 1;
}

/* ── Hoofd layout ────────────────────────────────── */
.mlg-outer {
    width: 100%;
    max-width: 1100px;
    display: grid;
    grid-template-columns: 1fr 420px;
    gap: 40px;
    align-items: center;
}

/* ── Links: welkomsttekst ────────────────────────── */
.mlg-left {
    padding: 20px 0;
}

.mlg-badge {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 6px 14px;
    border-radius: var(--radius-pill);
    background: rgba(124,92,252,0.18);
    border: 1px solid rgba(124,92,252,0.35);
    font-size: 12px;
    font-weight: 600;
    color: #a78bfa;
    margin-bottom: 28px;
    letter-spacing: .04em;
}
.mlg-badge i { font-size: 10px; }

.mlg-title {
    font-family: 'Sora', sans-serif;
    font-size: clamp(36px, 5vw, 58px);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 18px;
}
.mlg-title span {
    background: linear-gradient(135deg, var(--accent1), var(--accent2));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.mlg-subtitle {
    font-size: 15px;
    color: var(--text-muted);
    line-height: 1.7;
    max-width: 440px;
    margin-bottom: 40px;
}

/* Statistieken */
.mlg-stats {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}
.mlg-stat {
    flex: 1;
    min-width: 120px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 16px 18px;
    backdrop-filter: blur(12px);
    display: flex;
    align-items: center;
    gap: 12px;
}
.mlg-stat-icon {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    flex-shrink: 0;
}
.mlg-stat-icon.purple { background: rgba(124,92,252,0.2); color: #a78bfa; }
.mlg-stat-icon.gold   { background: rgba(255,196,0,0.15);  color: #ffc400; }
.mlg-stat-icon.blue   { background: rgba(0,212,255,0.15);  color: #00d4ff; }
.mlg-stat-num  { font-family: 'Sora', sans-serif; font-size: 22px; font-weight: 800; line-height: 1; }
.mlg-stat-lbl  { font-size: 10px; color: var(--text-muted); text-transform: uppercase; letter-spacing: .08em; margin-top: 2px; }

/* ── Rechts: loginkaart ──────────────────────────── */
.mlg-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 24px;
    padding: 36px 32px;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 30px 80px rgba(0,0,0,0.6), inset 0 1px 0 rgba(255,255,255,0.07);
    position: relative;
}
.mlg-card::before {
    content: '';
    position: absolute;
    top: 0; left: 15%; right: 15%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(124,92,252,0.5), rgba(0,212,255,0.4), transparent);
    border-radius: 24px 24px 0 0;
}

.mlg-card-title {
    font-family: 'Sora', sans-serif;
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 4px;
}
.mlg-card-sub {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 24px;
}

/* Tab knoppen (Login / Gast / Registreer) */
.mlg-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 24px;
}
.mlg-tab {
    flex: 1;
    padding: 9px 12px;
    border-radius: var(--radius-sm);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    border: 1px solid var(--border);
    background: transparent;
    color: var(--text-muted);
    transition: all .2s;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}
.mlg-tab:hover { border-color: rgba(124,92,252,0.4); color: var(--text); }
.mlg-tab.active {
    background: linear-gradient(135deg, var(--accent1), #5b3fd4);
    border-color: transparent;
    color: #fff;
    box-shadow: 0 4px 20px rgba(124,92,252,0.35);
}
.mlg-tab.guest-tab.active {
    background: linear-gradient(135deg, #1a1a3e, #2a2060);
    border-color: rgba(124,92,252,0.4);
}

/* Input velden */
.mlg-field {
    position: relative;
    margin-bottom: 14px;
}
.mlg-field i {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 13px;
    pointer-events: none;
}
.mlg-input {
    width: 100%;
    background: var(--bg-input) !important;
    border: 1px solid var(--border) !important;
    border-radius: var(--radius-sm) !important;
    color: var(--text) !important;
    font-size: 14px !important;
    padding: 12px 14px 12px 38px !important;
    outline: none !important;
    transition: border-color .2s !important;
    font-family: 'Inter', sans-serif !important;
}
.mlg-input:focus {
    border-color: rgba(124,92,252,0.5) !important;
    background: rgba(124,92,252,0.06) !important;
}
.mlg-input::placeholder { color: var(--text-muted) !important; }
.mlg-input option { background: #0f0f2e; color: #fff; }

/* Geslacht + geboortedatum rij */
.mlg-row {
    display: flex;
    gap: 10px;
    margin-bottom: 14px;
}
.mlg-row .mlg-field { flex: 1; margin-bottom: 0; }
.mlg-select {
    width: 100%;
    background: var(--bg-input) !important;
    border: 1px solid var(--border) !important;
    border-radius: var(--radius-sm) !important;
    color: var(--text) !important;
    font-size: 13px !important;
    padding: 11px 14px 11px 36px !important;
    outline: none !important;
    appearance: none !important;
    -webkit-appearance: none !important;
    cursor: pointer !important;
    font-family: 'Inter', sans-serif !important;
    color-scheme: dark !important;
}
.mlg-select:focus { border-color: rgba(124,92,252,0.5) !important; }
.mlg-select option {
    background: #0f0f2e !important;
    color: #e8eaf6 !important;
}

/* Login knop */
.mlg-btn-primary {
    width: 100%;
    padding: 14px;
    border-radius: var(--radius-pill);
    background: linear-gradient(135deg, var(--accent1) 0%, var(--accent2) 100%);
    color: #fff;
    font-size: 15px;
    font-weight: 700;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: 0 8px 30px rgba(124,92,252,0.4);
    transition: transform .15s, filter .2s;
    font-family: 'Sora', sans-serif;
    margin-top: 6px;
}
.mlg-btn-primary:hover { transform: translateY(-2px); filter: brightness(1.1); }
.mlg-btn-primary:active { transform: translateY(0); }

.mlg-register {
    text-align: center;
    margin-top: 18px;
    font-size: 12px;
    color: var(--text-muted);
}
.mlg-register span {
    color: #a78bfa;
    font-weight: 600;
    cursor: pointer;
}
.mlg-register span:hover { text-decoration: underline; }

/* Taalvlag */
#intro_lang {
    position: absolute !important;
    top: 14px !important;
    right: 14px !important;
    width: 34px !important;
    height: 34px !important;
    border-radius: 50% !important;
    overflow: hidden !important;
    cursor: pointer !important;
    border: 1px solid var(--border) !important;
    z-index: 10;
}
#intro_lang img { width: 100%; height: 100%; object-fit: cover; }

/* ── Recente gebruikers ──────────────────────────── */
#login_active_users {
    margin-top: 32px;
    padding: 20px 0 16px;
    border-radius: 20px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    backdrop-filter: blur(12px);
    overflow: hidden;
    grid-column: 1 / -1;
}
.lau_title {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--text-muted);
    text-align: center;
    margin-bottom: 16px;
    padding: 0 20px;
}
.lau_marquee_wrap {
    overflow: hidden;
    position: relative;
}
.lau_marquee_wrap::before,
.lau_marquee_wrap::after {
    content: '';
    position: absolute;
    top: 0; bottom: 0;
    width: 60px;
    z-index: 2;
    pointer-events: none;
}
.lau_marquee_wrap::before { left: 0; background: linear-gradient(90deg, rgba(12,12,35,0.95), transparent); }
.lau_marquee_wrap::after  { right: 0; background: linear-gradient(270deg, rgba(12,12,35,0.95), transparent); }

.lau_list {
    display: flex;
    align-items: center;
    gap: 20px;
    width: max-content;
    padding: 8px 24px;
    animation: lau_scroll 30s linear infinite;
}
.lau_list:hover { animation-play-state: paused; }

@keyframes lau_scroll {
    0%   { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.lau_user {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}
.lau_avatar_wrap {
    position: relative;
    width: 56px;
    height: 56px;
}
.lau_avatar_wrap img {
    width: 56px !important;
    height: 56px !important;
    border-radius: 50% !important;
    object-fit: cover !important;
    border: 2px solid rgba(124,92,252,0.4) !important;
}
.lau_avatar_wrap::after {
    content: '';
    position: absolute;
    inset: -3px;
    border-radius: 50%;
    border: 1px solid rgba(124,92,252,0.25);
    box-shadow: 0 0 10px rgba(124,92,252,0.2);
    pointer-events: none;
}
.lau_dot {
    position: absolute;
    bottom: 2px; right: 2px;
    width: 12px; height: 12px;
    border-radius: 50%;
    background: #00e676;
    border: 2px solid #0c0c23;
    box-shadow: 0 0 6px #00e676;
}
.lau_name {
    font-size: 11px;
    font-weight: 500;
    color: var(--text-muted);
    max-width: 60px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-align: center;
}

/* Recente gebruikers & radio sectie */
.mlg-bottom {
    margin-top: 32px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    grid-column: 1 / -1;
}
.mlg-box {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 20px 24px;
    backdrop-filter: blur(12px);
}
.mlg-box-title {
    font-size: 13px;
    font-weight: 700;
    color: var(--text-muted);
    letter-spacing: .05em;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.mlg-box-title span { font-size: 11px; color: rgba(124,92,252,0.7); cursor: pointer; }

/* ── Responsive ──────────────────────────────────── */
@media (max-width: 860px) {
    .mlg-outer {
        grid-template-columns: 1fr;
        max-width: 460px;
    }
    .mlg-left { display: none; }
    .mlg-bottom { grid-template-columns: 1fr; }
}
@media (max-width: 500px) {
    .mlg-card { padding: 28px 20px; }
    .mlg-row  { flex-direction: column; }
}

/* ── Recent users grid + Radio ──────────────────── */
.mlg-bottom {
    margin-top: 32px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    grid-column: 1 / -1;
}
.mlg-box {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 20px 24px;
    backdrop-filter: blur(12px);
}
.mlg-box-title {
    font-size: 13px;
    font-weight: 700;
    color: var(--text-muted);
    letter-spacing: .05em;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.mlg-recent-grid { display: flex; flex-wrap: wrap; gap: 16px; }
.mlg-ru { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.mlg-ru-wrap { position: relative; width: 67px; height: 64px; }
.mlg-ru-wrap img {
    width: 64px !important; height: 64px !important;
    border-radius: 50% !important; object-fit: cover !important;
    border: 2px solid rgba(124,92,252,0.35) !important;
}
.mlg-ru-dot {
    position: absolute; bottom: 2px; right: 2px;
    width: 13px; height: 13px; border-radius: 50%;
    border: 2px solid #0c0c23;
}
.mlg-ru-dot--on  { background: #00e676; box-shadow: 0 0 5px #00e676; }
.mlg-ru-dot--off { background: rgba(255,255,255,0.18); }
.mlg-ru-vip {
    position: absolute; top: -2px; right: -2px;
    width: 18px; height: 18px; border-radius: 50%;
    background: rgba(255,196,0,0.9);
    display: flex; align-items: center; justify-content: center;
    font-size: 8px; color: #1a1a00;
}
.mlg-ru-name {
    font-size: 11px; color: var(--text-muted);
    max-width: 64px; white-space: nowrap;
    overflow: hidden; text-overflow: ellipsis; text-align: center;
}
.mlg-radio-inner { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.mlg-radio-cover {
    width: 46px; height: 46px; border-radius: 12px; flex-shrink: 0;
    background: linear-gradient(135deg, var(--accent1), var(--accent2));
    display: flex; align-items: center; justify-content: center;
    font-size: 18px; color: #fff;
}
.mlg-radio-title { font-size: 13px; font-weight: 600; margin-bottom: 2px; }
.mlg-radio-sub   { font-size: 11px; color: var(--text-muted); }
.mlg-radio-bar {
    display: flex; align-items: center; gap: 8px;
    background: rgba(255,255,255,0.04);
    border-radius: var(--radius-sm); padding: 9px 12px;
}
.mlg-radio-track { flex: 1; font-size: 10px; color: var(--text-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mlg-radio-controls { display: flex; gap: 5px; flex-shrink: 0; }
.mlg-radio-btn {
    width: 28px; height: 28px; border-radius: 50%; border: none;
    background: rgba(255,255,255,0.08); color: var(--text);
    font-size: 10px; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    transition: background .2s;
}
.mlg-radio-btn:hover { background: rgba(255,255,255,0.15); }
.mlg-radio-play {
    background: linear-gradient(135deg, var(--accent1), var(--accent2));
    width: 32px; height: 32px;
    box-shadow: 0 4px 12px rgba(124,92,252,0.4);
}
/* Custom dropdown (vervangt native select voor datum) */
.mlg-custom-select {
    position: relative;
    width: 100%;
    cursor: pointer;
}
.mlg-cs-display {
    width: 100%;
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text);
    font-size: 13px;
    padding: 11px 14px 11px 36px;
    font-family: 'Inter', sans-serif;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.mlg-custom-select.open .mlg-cs-display {
    border-color: rgba(124,92,252,0.5);
    background: rgba(124,92,252,0.06);
}
.mlg-cs-options {
    position: absolute;
    top: calc(100% + 4px);
    left: 0; right: 0;
    background: #0f0f2e;
    border: 1px solid rgba(124,92,252,0.4);
    border-radius: var(--radius-sm);
    z-index: 9999;
    max-height: 180px;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: rgba(124,92,252,0.4) transparent;
}
.mlg-cs-opt {
    padding: 9px 14px;
    font-size: 13px;
    color: #e8eaf6;
    cursor: pointer;
    transition: background .15s;
}
.mlg-cs-opt:hover { background: rgba(124,92,252,0.25); color: #fff; }
.mlg-cs-opt.selected { background: rgba(124,92,252,0.35); color: #fff; }

@media (max-width: 860px) { .mlg-bottom { grid-template-columns: 1fr; } }
