﻿/* ============================================================
   LEONY NET â€” CORE STYLESHEET v4
   Global styles: variabel, reset, ambient, container, sheet,
   zen mode, tombol, footer, loading.
   ============================================================ */

/* ---- RESET ---- */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

/* ---- THEME VARIABLES ---- */
:root {
    /* Starlink-style: pure black, white text, cyan glow */
    --bg: #000000;
    --bg-soft: #0a0a0a;
    --surface: #111111;
    --surface-2: #1a1a1a;
    --border: rgba(255, 255, 255, 0.08);
    --border-focus: rgba(0, 212, 255, 0.6);
    --text: #ffffff;
    --text-soft: #b3b3b3;
    --text-muted: #6b6b6b;
    --accent: #00d4ff;
    --accent-2: #0099cc;
    --accent-glow: rgba(0, 212, 255, 0.3);
    --success: #00ff88;
    --error: #ff4d4d;
    --radius-sm: 10px;
    --radius-md: 14px;
    --radius-lg: 20px;
    --radius-xl: 28px;
    --shadow-sm: 0 1px 2px rgba(0,0,0,0.2);
    --shadow-md: 0 4px 16px rgba(0,0,0,0.25);
    --shadow-lg: 0 12px 40px rgba(0,0,0,0.4);
    --ease: cubic-bezier(0.4, 0, 0.2, 1);
    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

[data-theme="emerald"] {
    --bg: #052e2b; --bg-soft: #064e3b; --surface: #0f3d33; --surface-2: #14554a;
    --accent: #34d399; --accent-2: #10b981;
    --accent-glow: rgba(52, 211, 153, 0.25);
    --border-focus: rgba(52, 211, 153, 0.5);
}
[data-theme="rose"] {
    --bg: #1c0a12; --bg-soft: #2d0f1e; --surface: #3d1428; --surface-2: #4d1a33;
    --accent: #fb7185; --accent-2: #f43f5e;
    --accent-glow: rgba(251, 113, 133, 0.25);
    --border-focus: rgba(251, 113, 133, 0.5);
}
[data-theme="amber"] {
    --bg: #1c1405; --bg-soft: #2d1f08; --surface: #3d2a0c; --surface-2: #4d3512;
    --accent: #fbbf24; --accent-2: #f59e0b;
    --accent-glow: rgba(251, 191, 36, 0.25);
    --border-focus: rgba(251, 191, 36, 0.5);
}
[data-theme="violet"] {
    --bg: #140a1c; --bg-soft: #1f0f2d; --surface: #2a143d; --surface-2: #351a4d;
    --accent: #a78bfa; --accent-2: #8b5cf6;
    --accent-glow: rgba(167, 139, 250, 0.25);
    --border-focus: rgba(167, 139, 250, 0.5);
}
[data-theme="slate"] {
    --bg: #0f172a; --bg-soft: #1e293b; --surface: #334155; --surface-2: #475569;
    --accent: #94a3b8; --accent-2: #64748b;
    --accent-glow: rgba(148, 163, 184, 0.2);
    --border-focus: rgba(148, 163, 184, 0.5);
}
[data-theme="starlink"] {
    --bg: #000000; --bg-soft: #0a0a0a; --surface: #111111; --surface-2: #1a1a1a;
    --border: rgba(255, 255, 255, 0.08); --border-focus: rgba(0, 212, 255, 0.6);
    --text: #ffffff; --text-soft: #b3b3b3; --text-muted: #6b6b6b;
    --accent: #00d4ff; --accent-2: #0099cc;
    --accent-glow: rgba(0, 212, 255, 0.3);
    --success: #00ff88; --error: #ff4d4d;
}
[data-theme="classic"] {
    --bg: #0b1120; --bg-soft: #111827; --surface: #1e293b; --surface-2: #263244;
    --border: rgba(148, 163, 184, 0.12); --border-focus: rgba(255, 255, 255, 0.4);
    --text: #f1f5f9; --text-soft: #94a3b8; --text-muted: #64748b;
    --accent: #ffffff; --accent-2: #e2e8f0;
    --accent-glow: rgba(255, 255, 255, 0.25);
    --success: #34d399; --error: #f87171;
}

/* ---- BASE ---- */
html, body {
    height: 100%;
    font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
    background: var(--bg);
    color: var(--text);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
    transition: background 0.4s var(--ease);
}

body {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    min-height: 100dvh;
    padding: 20px;
    position: relative;
}

/* ---- AMBIENT BACKGROUND ---- */
.ambient-bg { position: fixed; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; }
.ambient-blob { position: absolute; border-radius: 50%; filter: blur(80px); opacity: 0.4; transition: background 0.6s var(--ease); }
.blob-1 { width: 400px; height: 400px; background: var(--accent); top: -120px; right: -120px; animation: float1 14s ease-in-out infinite alternate; }
.blob-2 { width: 350px; height: 350px; background: var(--accent-2); bottom: -100px; left: -100px; animation: float2 16s ease-in-out infinite alternate; }
.blob-3 { width: 250px; height: 250px; background: var(--accent); top: 40%; left: 50%; transform: translate(-50%, -50%); opacity: 0.15; animation: float3 20s ease-in-out infinite alternate; }
@keyframes float1 { 0%{transform:translate(0,0) scale(1);} 100%{transform:translate(-40px,30px) scale(1.1);} }
@keyframes float2 { 0%{transform:translate(0,0) scale(1);} 100%{transform:translate(40px,-30px) scale(1.15);} }
@keyframes float3 { 0%{transform:translate(-50%,-50%) scale(1);} 100%{transform:translate(-50%,-50%) scale(1.3);} }

/* ---- CONTAINER ---- */
.login-container {
    width: 100%;
    max-width: 440px;
    background: var(--bg-soft);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 20px 22px 20px;
    box-shadow: var(--shadow-lg);
    position: relative;
    z-index: 1;
    animation: slideUp 0.5s var(--ease-out) both;
    transition: background 0.4s var(--ease), border-color 0.4s var(--ease);
}

@keyframes slideUp {
    from { opacity: 0; transform: translateY(24px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---- LIVE CLOCK (minimal) ---- */
.live-clock {
    text-align: center;
    margin: 18px auto 6px;
    font-size: 0.75rem;
    color: #ffffff;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    opacity: 1;
}
.live-clock span { white-space: nowrap; }
.live-clock-sep { opacity: 0.4; }

/* ---- TOP ACTIONS ---- */
.top-actions {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    margin-bottom: 18px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--border);
}
.top-actions .top-btn {
    background: var(--surface);
    border: 1px solid var(--border);
    color: var(--text-soft);
    padding: 8px 14px;
    font-size: 0.75rem;
    font-weight: 600;
    font-family: inherit;
    border-radius: 10px;
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.2s var(--ease);
}
.top-actions .top-btn:hover {
    color: var(--accent);
    border-color: var(--accent);
    background: var(--surface-2);
}
.top-actions .top-btn i { font-size: 0.8rem; }

/* ---- BRAND HEADER ---- */
.brand-header { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; text-align: left; }
.menu-btn {
    width: 44px; height: 44px; border-radius: 12px;
    background: var(--surface); border: 1px solid var(--border);
    color: var(--text); font-size: 1.1rem; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    transition: all 0.2s var(--ease); flex-shrink: 0;
}
.menu-btn:hover { background: var(--surface-2); border-color: var(--accent); color: var(--accent); }
/* 3 garis menu (hamburger) di belakang logo sebagai hint */
.brand-logo .menu-hint-bars {
    position: absolute;
    inset: 0;
    display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 4px;
    opacity: 0.22;
    pointer-events: none;
    z-index: 0;
}
.brand-logo .menu-hint-bars span {
    display: block; width: 20px; height: 2px;
    background: var(--text-muted); border-radius: 2px;
    transition: background 0.2s var(--ease), opacity 0.2s var(--ease);
}
.brand-logo:hover .menu-hint-bars span { background: var(--accent); opacity: 0.6; }
.zen-btn {
    background: var(--surface);
    border: 1px solid var(--border);
    color: var(--text-soft);
    padding: 8px 14px;
    font-size: 0.75rem;
    font-weight: 600;
    font-family: inherit;
    border-radius: 10px;
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.2s var(--ease);
    flex-shrink: 0;
    margin-left: auto;
}
.zen-btn:hover {
    color: var(--accent);
    border-color: var(--accent);
    background: var(--surface-2);
}
.zen-btn i { font-size: 0.8rem; }
.refresh-btn {
    background: var(--surface);
    border: 1px solid var(--border);
    color: var(--text-soft);
    width: 36px; height: 36px;
    font-size: 0.85rem;
    border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer;
    transition: all 0.2s var(--ease);
    flex-shrink: 0;
}
.refresh-btn:hover {
    color: var(--accent);
    border-color: var(--accent);
    background: var(--surface-2);
    transform: rotate(90deg);
}
.refresh-btn:active { transform: rotate(180deg); }
.brand-logo {
    width: 44px; height: 44px; margin: 0;
    border-radius: 12px; background: transparent;
    display: flex; align-items: center; justify-content: center;
    border: 1px solid var(--border); overflow: hidden;
    transition: all 0.2s var(--ease); flex-shrink: 0;
    cursor: pointer;
    position: relative;
}
.brand-logo img { position: relative; z-index: 1; }
.brand-logo:hover {
    border-color: var(--accent);
    transform: scale(1.05);
    box-shadow: 0 0 12px rgba(255, 255, 255, 0.2);
}
.brand-text { display: flex; flex-direction: column; }
.brand-name { margin-bottom: 0; }
.brand-logo img { width: 100%; height: 100%; object-fit: contain; padding: 8px; }
.brand-name {
    font-size: 1.35rem; font-weight: 700; letter-spacing: -0.3px;
    background: linear-gradient(135deg, var(--text), var(--accent));
    -webkit-background-clip: text; background-clip: text;
    -webkit-text-fill-color: transparent; margin-bottom: 4px;
    position: relative; display: inline-block;
}
.brand-name::before,
.brand-name::after {
    content: 'LEONY NET';
    position: absolute; top: 0; left: 0;
    width: 100%; height: 100%;
    background: transparent;
    -webkit-text-fill-color: initial; color: inherit;
    pointer-events: none;
}
.brand-name::before {
    color: #00ffff;
    mix-blend-mode: screen;
    animation: glitch1 5s infinite;
    opacity: 0;
}
.brand-name::after {
    color: #ff00ff;
    mix-blend-mode: screen;
    animation: glitch2 5s infinite;
    opacity: 0;
}
@keyframes glitch1 {
    0%, 82%, 100% { transform: translate(0); clip-path: inset(0 0 0 0); opacity: 0; }
    84% { transform: translate(-4px, 2px); clip-path: inset(10% 0 70% 0); opacity: 0.9; }
    86% { transform: translate(4px, -2px); clip-path: inset(60% 0 15% 0); opacity: 0.9; }
    88% { transform: translate(-3px, 3px); clip-path: inset(30% 0 50% 0); opacity: 0.9; }
    90% { transform: translate(3px, -3px); clip-path: inset(80% 0 5% 0); opacity: 0.9; }
    92% { transform: translate(-2px, 2px); clip-path: inset(0% 0 85% 0); opacity: 0.9; }
}
@keyframes glitch2 {
    0%, 82%, 100% { transform: translate(0); clip-path: inset(0 0 0 0); opacity: 0; }
    85% { transform: translate(4px, -2px); clip-path: inset(50% 0 30% 0); opacity: 0.8; }
    87% { transform: translate(-4px, 2px); clip-path: inset(8% 0 75% 0); opacity: 0.8; }
    89% { transform: translate(2px, 3px); clip-path: inset(75% 0 10% 0); opacity: 0.8; }
    91% { transform: translate(-3px, -3px); clip-path: inset(20% 0 60% 0); opacity: 0.8; }
    93% { transform: translate(3px, 2px); clip-path: inset(0% 0 85% 0); opacity: 0.8; }
}
.brand-tagline {
    font-size: 0.7rem; color: var(--text-muted);
    letter-spacing: 1.5px; text-transform: uppercase; font-weight: 500;
}
.greeting { text-align: center; font-size: 0.82rem; color: var(--text-soft); margin-bottom: 18px; font-weight: 500; }

/* ---- ALERT ---- */
.alert {
    display: flex; align-items: center; gap: 10px;
    padding: 12px 14px; border-radius: var(--radius-md);
    font-size: 0.8rem; margin-bottom: 16px;
    animation: slideUp 0.3s var(--ease-out) both;
}
.alert-error { background: rgba(248,113,113,0.08); border: 1px solid rgba(248,113,113,0.2); color: var(--error); }

/* ---- BUTTONS (shared) ---- */
.btn-primary {
    width: 100%; padding: 15px 20px;
    background: var(--accent); color: var(--bg); border: none;
    border-radius: var(--radius-md); font-size: 0.95rem;
    font-weight: 700; font-family: inherit; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    gap: 10px; transition: all 0.2s var(--ease);
    min-height: 52px; position: relative; overflow: hidden;
}
.btn-primary:hover:not(:disabled) { background: var(--accent-2); transform: translateY(-1px); box-shadow: 0 8px 24px var(--accent-glow); }
.btn-primary:active:not(:disabled) { transform: translateY(0); }
.btn-primary:disabled { opacity: 0.7; cursor: wait; }
.btn-primary.success { background: var(--success); }
.btn-primary .btn-icon { transition: transform 0.2s var(--ease); }
.btn-primary:hover:not(:disabled) .btn-icon { transform: translateX(3px); }

.btn-secondary {
    width: 100%; padding: 14px 20px;
    background: var(--surface); color: var(--text);
    border: 1px solid var(--border); border-radius: var(--radius-md);
    font-size: 0.88rem; font-weight: 600; font-family: inherit;
    cursor: pointer; display: flex; align-items: center; justify-content: center;
    gap: 10px; transition: all 0.2s var(--ease); min-height: 50px;
}
.btn-secondary:hover { background: var(--surface-2); border-color: var(--accent); color: var(--accent); }
.btn-secondary i { color: var(--success); }
.btn-secondary:hover i { color: var(--accent); }

.btn-ghost {
    width: 100%; padding: 13px 20px;
    background: var(--surface); color: var(--text-soft);
    border: 1px solid var(--border); border-radius: var(--radius-md);
    font-size: 0.82rem; font-weight: 600; font-family: inherit;
    cursor: pointer; display: flex; align-items: center; justify-content: center;
    gap: 8px; transition: all 0.2s var(--ease); min-height: 46px;
}
.btn-ghost:hover { background: var(--surface-2); border-color: var(--accent); color: var(--accent); transform: translateY(-1px); }
.btn-ghost i { color: var(--accent); font-size: 0.85rem; transition: transform 0.2s var(--ease); }
.btn-ghost:hover i { transform: scale(1.1); }

.btn-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 12px; }
.btn-row .btn-secondary, .btn-row .btn-ghost { margin-top: 0; width: 100%; }

/* ---- PROGRESS ---- */
.progress-wrap { display: none; margin-top: 14px; animation: slideUp 0.3s var(--ease-out) both; }
.progress-wrap.show { display: block; }
.progress-track { width: 100%; height: 4px; background: var(--surface); border-radius: 4px; overflow: hidden; }
.progress-fill { height: 100%; width: 0%; background: linear-gradient(90deg, var(--accent), var(--accent-2)); border-radius: 4px; transition: width 0.3s var(--ease); }
.progress-label { display: block; text-align: center; font-size: 0.7rem; color: var(--text-muted); margin-top: 8px; font-weight: 500; }

/* ---- FOOTER ---- */
.footer { display: flex; align-items: center; justify-content: center; gap: 4px; margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--border); flex-wrap: wrap; }
.footer-link { background: none; border: none; color: var(--text-muted); font-size: 0.7rem; font-family: inherit; cursor: pointer; display: flex; align-items: center; gap: 4px; padding: 6px 8px; border-radius: 6px; transition: all 0.2s var(--ease); }
.footer-link:hover { color: var(--accent); background: var(--surface); }
.footer .divider { color: var(--border); font-size: 0.7rem; }

/* ---- BOTTOM SHEET ---- */
.sheet-backdrop { position: fixed; inset: 0; background: rgba(0,0,0,0.5); backdrop-filter: blur(4px); z-index: 998; opacity: 0; visibility: hidden; transition: all 0.3s var(--ease); }
.sheet-backdrop.show { opacity: 1; visibility: visible; }
.bottom-sheet {
    position: fixed; top: 0; left: 0; bottom: 0;
    width: 300px; max-width: 85vw;
    background: var(--bg-soft); border-right: 1px solid var(--border); border-top: none; border-bottom: none; border-left: none;
    border-top-left-radius: 0; border-top-right-radius: var(--radius-xl); border-bottom-right-radius: var(--radius-xl); border-bottom-left-radius: 0;
    z-index: 999; transform: translateX(-100%); transition: transform 0.35s var(--ease-out);
    max-height: 100vh; display: flex; flex-direction: column;
    box-shadow: 12px 0 40px rgba(0,0,0,0.3);
}
.bottom-sheet.open { transform: translateX(0); }
.sheet-handle { display: none; }
.sidebar-header { display: flex; align-items: center; justify-content: space-between; padding: 16px 18px; border-bottom: 1px solid var(--border); flex-shrink: 0; }
.sidebar-title { font-size: 1.05rem; font-weight: 700; color: var(--text); }
.sidebar-close { background: var(--surface); border: 1px solid var(--border); border-radius: 50%; width: 34px; height: 34px; color: var(--text-soft); cursor: pointer; display: flex; align-items: center; justify-content: center; font-size: 0.85rem; transition: all 0.2s var(--ease); }
.sidebar-close:hover { background: var(--surface-2); color: var(--error); transform: rotate(90deg); }
.sheet-tabs { display: flex; gap: 4px; padding: 4px 18px 12px; border-bottom: 1px solid var(--border); flex-shrink: 0; }
.sheet-tab { flex: 1; padding: 10px 12px; background: transparent; border: none; border-radius: var(--radius-sm); color: var(--text-muted); font-size: 0.8rem; font-weight: 600; font-family: inherit; cursor: pointer; transition: all 0.2s var(--ease); }
.sheet-tab:hover { color: var(--text-soft); background: var(--surface); }
.sheet-tab.active { color: var(--accent); background: var(--surface); }
.sheet-content { padding: 18px; overflow-y: auto; flex: 1; }
.sheet-panel { display: none; animation: fadeIn 0.25s var(--ease-out) both; }
.sheet-panel.active { display: block; }
.sheet-item { width: 100%; display: flex; align-items: center; gap: 14px; padding: 14px 16px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-md); color: var(--text); font-size: 0.88rem; font-family: inherit; font-weight: 500; cursor: pointer; transition: all 0.2s var(--ease); margin-bottom: 8px; text-align: left; min-height: 52px; }
.sheet-item:hover { background: var(--surface-2); border-color: var(--accent); transform: translateX(4px); }
.sheet-item i { width: 20px; text-align: center; color: var(--accent); font-size: 1rem; }

/* ---- THEME GRID ---- */
.theme-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.theme-option { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 14px 8px; background: var(--surface); border: 2px solid transparent; border-radius: var(--radius-md); color: var(--text-soft); font-size: 0.7rem; font-family: inherit; font-weight: 600; cursor: pointer; transition: all 0.2s var(--ease); }
.theme-option:hover { background: var(--surface-2); transform: scale(1.02); }
.theme-option.active { border-color: var(--accent); background: var(--surface-2); color: var(--accent); }
.theme-option .swatch { width: 32px; height: 32px; border-radius: 50%; box-shadow: 0 4px 12px rgba(0,0,0,0.2); }

/* ---- INFO BLOCK ---- */
.info-logo, .about-logo { display: flex; justify-content: center; margin-bottom: 14px; }
.info-logo img, .about-logo img { width: 64px; height: 64px; object-fit: contain; border-radius: 14px; background: transparent; }
.info-block { display: flex; align-items: center; gap: 14px; padding: 16px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-md); margin-bottom: 10px; }
.info-block i { font-size: 1.3rem; color: var(--accent); width: 24px; text-align: center; }
.info-block strong { display: block; font-size: 0.9rem; margin-bottom: 2px; }
.info-block p { font-size: 0.75rem; color: var(--text-muted); }

/* ---- SUB SHEET ---- */
.sub-sheet { max-height: 85vh; }
/* Sub-sheet (Layanan/Bantuan/Tentang/Beli Voucher) sebagai modal tengah */
.bottom-sheet.sub-sheet {
    position: fixed; top: 50%; left: 50%;
    transform: translate(-50%, -50%) scale(0.95);
    width: 92%; max-width: 480px; max-height: 90vh;
    border-radius: var(--radius-xl);
    border: 1px solid var(--border);
    z-index: 1001; opacity: 0; visibility: hidden;
    transition: all 0.25s var(--ease);
    display: flex; flex-direction: column;
    box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}
#subBackdrop { z-index: 1000; }
.bottom-sheet.sub-sheet.open { opacity: 1; visibility: visible; transform: translate(-50%, -50%) scale(1); }
.sheet-close { position: absolute; top: 14px; right: 16px; background: var(--surface); border: 1px solid var(--border); border-radius: 50%; width: 34px; height: 34px; color: var(--text-soft); cursor: pointer; display: flex; align-items: center; justify-content: center; font-size: 0.85rem; transition: all 0.2s var(--ease); z-index: 2; }
.sheet-close:hover { background: var(--surface-2); color: var(--error); transform: rotate(90deg); }
.sheet-footer { padding: 12px 16px; border-top: 1px solid var(--border); flex-shrink: 0; display: flex; justify-content: flex-start; }
.sheet-refresh-btn { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; background: var(--surface); border: 1px solid var(--border); color: var(--text-soft); border-radius: 10px; font-size: 0.8rem; font-weight: 600; font-family: inherit; cursor: pointer; transition: all 0.2s var(--ease); }
.sheet-refresh-btn:hover { color: var(--accent); border-color: var(--accent); background: var(--surface-2); box-shadow: 0 0 12px var(--accent-glow); transform: scale(1.05); }
.sheet-refresh-btn:active { transform: scale(0.95); }
.sheet-refresh-btn i { font-size: 0.85rem; }
.sub-content { padding: 24px 20px 28px; overflow-y: auto; }
.sub-form { display: flex; flex-direction: column; gap: 10px; }
.sub-form label { font-size: 0.78rem; font-weight: 600; color: var(--text-soft); margin-top: 4px; }
.sub-form input { padding: 11px 14px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-md); color: var(--text); font-size: 0.9rem; font-family: inherit; outline: none; transition: border-color 0.2s var(--ease); }
.sub-form input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-glow); }
.sub-btn { margin-top: 6px; padding: 12px; background: var(--accent); color: var(--bg); border: none; border-radius: var(--radius-md); font-size: 0.9rem; font-weight: 700; font-family: inherit; cursor: pointer; transition: all 0.2s var(--ease); }
.sub-btn:hover { filter: brightness(1.1); transform: translateY(-1px); }
.sub-btn:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }
.sub-loading { text-align: center; padding: 14px; color: var(--text-muted); font-size: 0.85rem; }
.sub-result { margin-top: 14px; }
.sub-result-ok, .sub-result-err { padding: 14px 16px; border-radius: var(--radius-md); font-size: 0.85rem; line-height: 1.6; }
.sub-result-ok { background: rgba(34,197,94,0.08); border: 1px solid rgba(34,197,94,0.3); color: var(--text); }
.sub-result-err { background: rgba(239,68,68,0.08); border: 1px solid rgba(239,68,68,0.3); color: #fca5a5; }
.sub-result-title { font-weight: 700; font-size: 0.95rem; margin-bottom: 6px; }
.sub-result-msg { font-size: 0.82rem; color: var(--text-soft); }
.sub-result-detail { margin-top: 8px; font-size: 0.82rem; color: var(--text-soft); }
.sub-content h3 { font-size: 1.1rem; font-weight: 700; margin-bottom: 18px; display: flex; align-items: center; gap: 10px; }
.sub-content h3 i { color: var(--accent); }
.sub-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.sub-item { padding: 16px 12px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-md); text-align: center; font-size: 0.75rem; color: var(--text-soft); transition: all 0.2s var(--ease); }
.sub-item i { display: block; font-size: 1.3rem; color: var(--accent); margin-bottom: 8px; }
.sub-item:hover { background: var(--surface-2); border-color: var(--accent); }
.sub-item.wide { grid-column: span 2; }
.qr-wrap { display: flex; justify-content: center; margin-bottom: 14px; }
.qr-img { width: 180px; height: 180px; background: #fff; padding: 10px; border-radius: var(--radius-md); object-fit: contain; }
.sub-link { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 20px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-md); color: var(--accent); font-weight: 600; font-size: 0.85rem; text-decoration: none; margin-bottom: 14px; transition: all 0.2s var(--ease); }
.sub-link:hover { background: var(--surface-2); border-color: var(--accent); }
.sub-notice { display: flex; align-items: flex-start; gap: 10px; padding: 12px 14px; background: rgba(251,191,36,0.06); border: 1px solid rgba(251,191,36,0.15); border-radius: var(--radius-md); font-size: 0.75rem; color: var(--text-soft); margin-bottom: 14px; line-height: 1.5; }
.sub-notice i { color: #fbbf24; flex-shrink: 0; margin-top: 2px; }
.sub-steps { display: flex; flex-direction: column; gap: 8px; }
.sub-step { display: flex; align-items: center; gap: 12px; padding: 10px 14px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-md); font-size: 0.78rem; color: var(--text-soft); }
.sub-step span { width: 24px; height: 24px; border-radius: 50%; background: var(--accent); color: var(--bg); display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 0.75rem; flex-shrink: 0; }
.help-card { text-align: center; padding: 24px 20px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); }
.help-card img { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; margin-bottom: 12px; border: 2px solid var(--accent); }
.help-card strong { display: block; font-size: 1.05rem; margin-bottom: 4px; }
.help-card p { font-size: 0.8rem; color: var(--text-muted); margin-bottom: 16px; }
.wa-btn { display: inline-flex; align-items: center; gap: 8px; padding: 12px 24px; background: #25d366; color: #fff; border-radius: var(--radius-md); text-decoration: none; font-weight: 600; font-size: 0.88rem; transition: all 0.2s var(--ease); }
.wa-btn:hover { background: #1ebe57; transform: translateY(-2px); box-shadow: 0 8px 20px rgba(37,211,102,0.3); }
.about-text { font-size: 0.9rem; color: var(--text-soft); line-height: 1.6; text-align: center; margin-bottom: 16px; }
.about-badge { display: inline-flex; align-items: center; gap: 8px; padding: 10px 18px; background: var(--surface); border: 1px solid var(--border); border-radius: 40px; font-size: 0.8rem; color: var(--accent); font-weight: 600; }
.help-links { display: flex; flex-direction: column; gap: 8px; margin-top: 4px; }
.fb-btn { display: inline-flex; align-items: center; gap: 8px; padding: 12px 24px; background: #1877f2; color: #fff; border-radius: var(--radius-md); text-decoration: none; font-weight: 600; font-size: 0.88rem; transition: all 0.2s var(--ease); }
.fb-btn:hover { background: #145dbf; transform: translateY(-2px); box-shadow: 0 8px 20px rgba(24,119,242,0.3); }
.about-features { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; margin: 14px 0; }
.about-feat { display: flex; align-items: center; gap: 8px; padding: 10px 12px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-md); font-size: 0.78rem; color: var(--text-soft); font-weight: 500; }
.about-feat i { color: var(--accent); font-size: 0.95rem; width: 18px; text-align: center; }
.about-version { font-size: 0.7rem; color: var(--text-muted); margin-top: 12px; text-align: center; opacity: 0.7; }

/* ---- LOADING OVERLAY ---- */
.loading-overlay { position: fixed; inset: 0; background: rgba(11,17,32,0.8); backdrop-filter: blur(6px); display: none; align-items: center; justify-content: center; z-index: 9999; }
.loading-overlay.show { display: flex; }
.spinner { width: 36px; height: 36px; border: 3px solid var(--border); border-top-color: var(--accent); border-radius: 50%; animation: spin 0.7s linear infinite; }

/* ---- SCROLLBAR ---- */
::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 5px; }
::-webkit-scrollbar-thumb:hover { background: var(--accent); }

/* ============================================================
   ZEN MODE
   ============================================================ */
/* ============================================================
   HACKER GLITCH MODE (dulu Zen Mode)
   ============================================================ */
body.zen-mode {
    background: #020604 !important;
    color: #00ff41;
    --text: #00ff41;
    --text-soft: #00cc33;
    --accent: #00ff41;
    --accent-2: #00cc33;
    --border: rgba(0,255,65,0.25);
    --bg-soft: rgba(0,20,8,0.85);
    --surface: rgba(0,255,65,0.06);
    --surface-2: rgba(0,255,65,0.12);
    --shadow-lg: 0 0 40px rgba(0,255,65,0.15);
}
/* sembunyikan elemen sekunder */
body.zen-mode .brand-tagline,
body.zen-mode .greeting,
body.zen-mode .btn-secondary,
body.zen-mode .btn-ghost,
body.zen-mode .btn-row,
body.zen-mode .footer,
body.zen-mode .field-row .checkbox,
body.zen-mode .alert {
    opacity: 0; max-height: 0; overflow: hidden;
    margin: 0; padding: 0; pointer-events: none;
    transition: opacity 0.3s var(--ease), max-height 0.4s var(--ease), margin 0.3s var(--ease), padding 0.3s var(--ease);
}
body.zen-mode .brand-header { margin-bottom: 14px; transition: margin 0.3s var(--ease); }
body.zen-mode .brand-logo { width: 48px; height: 48px; transition: all 0.3s var(--ease); filter: hue-rotate(90deg) brightness(1.2); }
body.zen-mode .logo-glow-wrap,
body.zen-mode .logo-text { opacity: 0; max-height: 0; overflow: hidden; margin: 0; padding: 0; pointer-events: none; transition: opacity 0.3s var(--ease), max-height 0.4s var(--ease), margin 0.3s var(--ease); }
body.zen-mode .brand-name {
    font-size: 1.1rem; transition: all 0.3s var(--ease);
    background: linear-gradient(135deg, #00ff41, #00cc33);
    -webkit-background-clip: text; background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 8px rgba(0,255,65,0.6);
    animation: hackerText 1.8s infinite;
}
body.zen-mode .login-container {
    padding: 18px 20px 20px; transition: all 0.4s var(--ease);
    border: 1px solid #00ff41;
    box-shadow: 0 0 24px rgba(0,255,65,0.25), inset 0 0 20px rgba(0,255,65,0.05);
    animation: hackerShake 3s infinite;
    background: rgba(0,12,4,0.9);
}
body.zen-mode .field { margin-bottom: 12px; }
body.zen-mode .field label { font-size: 0.65rem; color: #00ff41; }
body.zen-mode .input { min-height: 56px; font-size: 1.05rem; text-align: center; padding: 14px 16px; letter-spacing: 2px; font-weight: 600; background: rgba(0,255,65,0.05); border: 1px solid #00ff41; color: #00ff41; caret-color: #00ff41; }
body.zen-mode .input-icon { opacity: 0; visibility: hidden; transition: opacity 0.3s var(--ease), visibility 0.3s var(--ease); }
body.zen-mode .btn-primary { min-height: 56px; font-size: 1rem; background: #00ff41; color: #000; border: none; box-shadow: 0 0 18px rgba(0,255,65,0.4); }
body.zen-mode .btn-primary:hover { background: #00cc33; box-shadow: 0 0 28px rgba(0,255,65,0.6); }
body.zen-mode #zenBtn { background: #00ff41; color: #000; border-color: #00ff41; }
body.zen-mode #zenBtn i { color: #000; }
body.zen-mode #zenBtn:hover { background: #00cc33; color: #000; }

/* scanlines overlay */
body.zen-mode::before {
    content: '';
    position: fixed; inset: 0;
    background: repeating-linear-gradient(0deg, rgba(0,255,65,0.04) 0px, rgba(0,255,65,0.04) 1px, transparent 1px, transparent 3px);
    pointer-events: none; z-index: 9998;
    animation: scanlines 0.15s linear infinite;
}
/* static noise + glitch bars */
body.zen-mode::after {
    content: '';
    position: fixed; inset: 0;
    background:
        repeating-linear-gradient(90deg, transparent 0px, transparent 40px, rgba(0,255,65,0.03) 40px, rgba(0,255,65,0.03) 41px),
        linear-gradient(180deg, transparent 0%, rgba(0,255,65,0.02) 50%, transparent 100%);
    pointer-events: none; z-index: 9997;
    animation: hackerNoise 2.5s infinite;
    mix-blend-mode: screen;
}
@keyframes scanlines {
    0% { transform: translateY(0); }
    100% { transform: translateY(3px); }
}
@keyframes hackerNoise {
    0%, 100% { opacity: 0.4; transform: translate(0,0); }
    10% { opacity: 0.7; transform: translate(-1px,1px); }
    20% { opacity: 0.3; transform: translate(1px,-1px); }
    30% { opacity: 0.6; transform: translate(-2px,0); }
    40% { opacity: 0.4; transform: translate(0,2px); }
    50% { opacity: 0.8; transform: translate(2px,-2px); }
    60% { opacity: 0.3; transform: translate(-1px,1px); }
    70% { opacity: 0.6; transform: translate(1px,-1px); }
    80% { opacity: 0.4; transform: translate(0,0); }
    90% { opacity: 0.7; transform: translate(-2px,2px); }
}
@keyframes hackerShake {
    0%, 100% { transform: translate(0,0); }
    10% { transform: translate(-1px,0); }
    20% { transform: translate(1px,0); }
    30% { transform: translate(0,1px); }
    40% { transform: translate(0,-1px); }
    50% { transform: translate(1px,1px); }
    60% { transform: translate(-1px,-1px); }
    70% { transform: translate(0,0); }
}
@keyframes hackerText {
    0%, 100% { text-shadow: 0 0 8px rgba(0,255,65,0.6); letter-spacing: -0.3px; }
    25% { text-shadow: 2px 0 8px rgba(0,255,65,0.9), -2px 0 8px rgba(255,0,65,0.4); letter-spacing: 0px; }
    50% { text-shadow: -2px 0 8px rgba(0,255,65,0.9), 2px 0 8px rgba(0,0,255,0.4); letter-spacing: -0.5px; }
    75% { text-shadow: 1px 0 8px rgba(0,255,65,0.9), -1px 0 8px rgba(255,255,0,0.4); letter-spacing: -0.2px; }
}

.zen-badge {
    position: fixed; top: 16px; right: 16px;
    padding: 6px 14px; background: rgba(0,20,8,0.9);
    border: 1px solid #00ff41; border-radius: 20px;
    font-size: 0.7rem; font-weight: 700; color: #00ff41;
    display: none; align-items: center; gap: 6px;
    z-index: 100; box-shadow: 0 0 12px rgba(0,255,65,0.3);
    animation: zenFadeIn 0.4s var(--ease-out);
}
.zen-badge.show { display: flex; }
.zen-badge i { animation: zenPulse 1.5s infinite; }
@keyframes zenPulse { 0%,100%{opacity:1;transform:scale(1);} 50%{opacity:0.4;transform:scale(0.8);} }
@keyframes zenFadeIn { from{opacity:0;transform:translateY(-10px);} to{opacity:1;transform:translateY(0);} }

.zen-hint { text-align: center; font-size: 0.68rem; color: #00cc33; margin-top: 10px; display: none; animation: fadeIn 0.4s var(--ease-out); }
body.zen-mode .zen-hint { display: block; }
.zen-hint i { color: #00ff41; margin-right: 4px; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 520px) {
    body { padding: 14px; align-items: flex-start; padding-top: 4vh; }
    .login-container { max-width: 100%; padding: 18px 18px 18px; border-radius: 22px; }
    /* Sub-sheet modal fullscreen di HP */
    .bottom-sheet.sub-sheet {
        top: 0; left: 0; right: 0; bottom: 0;
        width: 100%; max-width: 100%; max-height: 100vh;
        border-radius: 0;
        transform: none;
    }
    .bottom-sheet.sub-sheet.open { transform: none; }
    .top-actions { margin-bottom: 14px; padding-bottom: 12px; }
    .top-actions .top-btn { padding: 7px 10px; font-size: 0.7rem; }
    .brand-logo { width: 52px; height: 52px; margin-bottom: 8px; }
    .brand-name { font-size: 1.2rem; }
    .brand-tagline { font-size: 0.65rem; }
    .greeting { font-size: 0.78rem; margin-bottom: 14px; }
    .footer { margin-top: 14px; padding-top: 12px; }
    .footer-link { font-size: 0.65rem; }
}
@media (max-width: 380px) {
    body { padding: 10px; padding-top: 3vh; }
    .login-container { padding: 16px 14px 16px; }
    .top-actions { margin-bottom: 12px; padding-bottom: 10px; }
    .top-actions .top-btn { padding: 6px 9px; font-size: 0.65rem; gap: 4px; }
    .brand-logo { width: 46px; height: 46px; }
    .brand-name { font-size: 1.1rem; }
    .greeting { font-size: 0.72rem; margin-bottom: 12px; }
    .footer-link { font-size: 0.6rem; padding: 4px 6px; }
}

/* ============================================================
   LOGO LEONY NET — float lembut + glow rainbow saat diklik
   ============================================================ */
.logo-glow-wrap {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 6px;
    margin: 26px auto 10px;
    position: relative;
    width: 128px;
    height: auto;
    cursor: pointer;
}
.logo-glow-wrap::before {
    content: '';
    position: absolute;
    top: 50%; left: 50%;
    width: 26px; height: 26px;
    margin: -13px 0 0 -13px;
    border-radius: 4px;
    pointer-events: none;
    z-index: 3;
    mix-blend-mode: screen;
    animation: logo-electric 5s infinite;
    filter: blur(0.5px);
}
@keyframes logo-electric {
    0%, 86%, 100% { background: transparent; opacity: 0; transform: translate(0,0) scale(1); box-shadow: none; }
    87% { background: rgba(0,255,255,0.85); opacity: 1; transform: translate(18px,-22px) scale(1.1); box-shadow: 0 0 8px 2px #00ffff; }
    88% { background: rgba(255,0,255,0.8); opacity: 1; transform: translate(-20px,14px) scale(0.9); box-shadow: 0 0 8px 2px #ff00ff; }
    89% { background: rgba(255,255,0,0.75); opacity: 1; transform: translate(10px,22px) scale(1.05); box-shadow: 0 0 8px 2px #ffff00; }
    90% { background: transparent; opacity: 0; transform: translate(0,0) scale(1); box-shadow: none; }
    92% { background: rgba(0,255,128,0.8); opacity: 1; transform: translate(-16px,-18px) scale(0.95); box-shadow: 0 0 8px 2px #00ff80; }
    93% { background: rgba(255,128,0,0.75); opacity: 1; transform: translate(22px,8px) scale(1.0); box-shadow: 0 0 8px 2px #ff8000; }
    94% { background: transparent; opacity: 0; transform: translate(0,0) scale(1); box-shadow: none; }
}
.logo-text {
    color: #ffffff;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    text-shadow: 0 1px 4px rgba(0,0,0,0.6);
    opacity: 0.95;
    position: relative; display: inline-block;
}
.logo-text::before,
.logo-text::after {
    content: 'LEONY NET';
    position: absolute; top: 0; left: 0;
    width: 100%; height: 100%;
    background: transparent;
    -webkit-text-fill-color: initial;
    pointer-events: none;
}
.logo-subtext {
    color: #00d4ff;
    font-size: 0.48rem;
    font-weight: 700;
    letter-spacing: 1px;
    opacity: 0.95;
    white-space: nowrap;
    overflow: hidden;
    border-right: 1.5px solid #00d4ff;
    width: 0;
    margin-top: 2px;
    text-shadow: 0 0 6px rgba(0,212,255,0.7);
    animation: typing 6s steps(15, end) infinite, blink 0.7s step-end infinite;
}
@keyframes typing {
    0% { width: 0; }
    40% { width: 16ch; }
    70% { width: 16ch; }
    100% { width: 0; }
}
@keyframes blink {
    from, to { border-color: transparent; }
    50% { border-color: #ffffff; }
}
.logo-text::before {
    color: #00ffff;
    mix-blend-mode: screen;
    animation: logoGlitch1 5s infinite;
    opacity: 0;
}
.logo-text::after {
    color: #ff00ff;
    mix-blend-mode: screen;
    animation: logoGlitch2 5s infinite;
    opacity: 0;
}
@keyframes logoGlitch1 {
    0%, 90%, 100% { transform: translate(0); clip-path: inset(0 0 0 0); opacity: 0; }
    92% { transform: translate(-3px, 1px); clip-path: inset(20% 0 60% 0); opacity: 0.8; }
    94% { transform: translate(3px, -1px); clip-path: inset(60% 0 20% 0); opacity: 0.8; }
    96% { transform: translate(-2px, 2px); clip-path: inset(40% 0 40% 0); opacity: 0.8; }
    98% { transform: translate(2px, -2px); clip-path: inset(75% 0 10% 0); opacity: 0.8; }
}
@keyframes logoGlitch2 {
    0%, 90%, 100% { transform: translate(0); clip-path: inset(0 0 0 0); opacity: 0; }
    91% { transform: translate(3px, -1px); clip-path: inset(50% 0 30% 0); opacity: 0.7; }
    93% { transform: translate(-3px, 1px); clip-path: inset(10% 0 70% 0); opacity: 0.7; }
    95% { transform: translate(2px, 2px); clip-path: inset(70% 0 15% 0); opacity: 0.7; }
    97% { transform: translate(-2px, -2px); clip-path: inset(25% 0 55% 0); opacity: 0.7; }
}
.logo-glow-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 50%;
    position: relative;
    z-index: 2;
    animation: logo-float 3.2s ease-in-out infinite;
    box-shadow: none;
    filter: none;
    border: none;
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.logo-glow-img:hover {
    transform: scale(1.08) translateY(-4px);
}
@keyframes logo-float {
    0%, 100% { transform: translateY(0); }
    50%      { transform: translateY(-6px); }
}
@keyframes rainbow-hue {
    0%   { filter: hue-rotate(0deg); }
    100% { filter: hue-rotate(360deg); }
}




/* ============================================================
   MUSIC PLAYER (mini) — tema mengikuti halaman
   ============================================================ */
.music-btn {
    background: var(--surface);
    border: 1px solid var(--border);
    color: var(--text-soft);
    width: 36px; height: 36px;
    font-size: 0.85rem;
    border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer;
    transition: all 0.2s var(--ease);
    flex-shrink: 0;
}
.music-btn:hover {
    color: var(--accent);
    border-color: var(--accent);
    background: var(--surface-2);
}
.music-btn.playing { color: var(--accent); border-color: var(--accent); background: var(--surface-2); }

.music-player {
    position: fixed;
    top: 70px; left: 16px;
    width: 260px; max-width: calc(100vw - 32px);
    background: var(--bg-soft);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    backdrop-filter: blur(20px) saturate(160%);
    -webkit-backdrop-filter: blur(20px) saturate(160%);
    z-index: 999;
    display: none;
    flex-direction: column;
    overflow: hidden;
    animation: fadeIn 0.25s var(--ease-out);
}
.music-player.open { display: flex; }
.music-header {
    display: flex; align-items: center; gap: 8px;
    padding: 10px 12px;
    border-bottom: 1px solid var(--border);
    background: var(--surface);
}
.music-header i { color: var(--accent); font-size: 0.85rem; }
.music-title {
    flex: 1; font-size: 0.78rem; font-weight: 600; color: var(--text);
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.music-close {
    background: transparent; border: none; color: var(--text-muted);
    cursor: pointer; font-size: 0.8rem; padding: 4px; border-radius: 6px;
    transition: all 0.2s var(--ease);
}
.music-close:hover { color: var(--error); background: var(--surface-2); }
.music-controls {
    display: flex; align-items: center; gap: 6px;
    padding: 10px 12px;
}
.music-ctrl {
    width: 34px; height: 34px;
    background: var(--surface); border: 1px solid var(--border);
    border-radius: 50%; color: var(--text-soft);
    display: flex; align-items: center; justify-content: center;
    cursor: pointer; font-size: 0.75rem;
    transition: all 0.2s var(--ease);
}
.music-ctrl:hover { color: var(--accent); border-color: var(--accent); background: var(--surface-2); }
.music-play { background: var(--accent); color: var(--bg); border-color: var(--accent); }
.music-play:hover { filter: brightness(1.1); color: var(--bg); }
.music-vol {
    flex: 1; height: 4px; accent-color: var(--accent);
    cursor: pointer;
}
.music-progress-wrap {
    height: 4px; background: var(--surface-2); margin: 0 12px 8px;
    border-radius: 2px; overflow: hidden;
}
.music-progress {
    height: 100%; width: 0%;
    background: linear-gradient(90deg, var(--accent), var(--accent-2));
    border-radius: 2px; transition: width 0.1s linear;
}
.music-playlist {
    max-height: 160px; overflow-y: auto;
    border-top: 1px solid var(--border);
}
.music-track {
    display: flex; align-items: center; gap: 8px;
    padding: 8px 12px; font-size: 0.75rem; color: var(--text-soft);
    cursor: pointer; transition: all 0.15s var(--ease);
    border-bottom: 1px solid var(--border);
}
.music-track:last-child { border-bottom: none; }
.music-track:hover { background: var(--surface); color: var(--text); }
.music-track.active { background: var(--surface-2); color: var(--accent); font-weight: 600; }
.music-track i { font-size: 0.7rem; width: 14px; text-align: center; }
.music-empty { padding: 14px; text-align: center; font-size: 0.75rem; color: var(--text-muted); }

/* Music playing: rainbow neon glow di pinggiran container */
@property --led-angle {
    syntax: '<angle>';
    inherits: false;
    initial-value: 0deg;
}
.login-container::after {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: calc(var(--radius-lg) + 2px);
    padding: 2px;
    /* LED strip satu warna (cyan tema Starlink), tersambung, hanya tampil sebagai cincin tipis */
    background: conic-gradient(from var(--led-angle),
        #00d4ff, rgba(0,212,255,0.25) 25%, #00d4ff 50%, rgba(0,212,255,0.25) 75%, #00d4ff);
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
    mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
    opacity: 0;
    pointer-events: none;
    z-index: -2;
    transition: opacity 0.4s;
}
body.music-playing .login-container::after {
    opacity: 0.9;
    animation: led-spin 4s linear infinite;
}
@keyframes led-spin {
    to { --led-angle: 360deg; }
}

/* ============================================================
   ALERT ERROR -> TOAST MELAYANG (auto hilang)
   ============================================================ */
.alert-toast {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.92);
    z-index: 2000;
    width: min(86vw, 340px);
    padding: 14px 16px;
    margin: 0;
    border-radius: 14px;
    background: rgba(20, 20, 20, 0.94);
    border: 1px solid #ff3b5c;
    color: #ffb3c0;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.6), 0 0 20px rgba(255, 59, 92, 0.25);
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.85rem;
    line-height: 1.4;
    cursor: pointer;
    opacity: 0;
    transition: opacity 0.3s ease, transform 0.3s ease;
    animation: toast-float 3s ease-in-out infinite;
}
.alert-toast.show {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}
.alert-toast.hide {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.95);
}
.alert-toast i { font-size: 1.1rem; color: #ff3b5c; }
body.zen-mode .alert-toast.show { opacity: 1; max-height: 200px; padding: 14px 16px; margin: 0; }
@keyframes toast-float {
    0%, 100% { margin-top: 0; }
    50% { margin-top: -8px; }
}

/* Error sebagai balon bicara dari maskot (dekat kepala) */
.alert-toast.bubble {
    width: auto;
    max-width: 240px;
    background: #ffffff;
    color: #b91c1c;
    border: 2px solid #ff3b5c;
    font-weight: 600;
    font-size: 0.8rem;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.35);
    animation: none;
}
.alert-toast.bubble i { color: #ff3b5c; }
.alert-toast.bubble::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    border: 9px solid transparent;
    border-bottom: 0;
    border-top-color: #ff3b5c;
}
.err-ring {
    position: fixed;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #ff3b5c;
    box-shadow: 0 0 10px #ff3b5c, 0 0 18px #ff3b5c;
    z-index: 2101;
    pointer-events: none;
    animation: err-blink 0.5s step-end 8;
}
@keyframes err-blink {
    50% { opacity: 0; }
}

/* Sembunyikan maskot & chat widget saat menu/modal terbuka */
body.ui-modal-open #walkMascot,
body.ui-modal-open #chatMascotWrap,
body.ui-modal-open #chatWidgetBtn,
body.ui-modal-open #chatPanel { display: none !important; }

/* Zen / Hacker mode: sembunyikan maskot & chat widget */
body.zen-mode #walkMascot,
body.zen-mode #chatMascotWrap,
body.zen-mode #chatWidgetBtn,
body.zen-mode #chatPanel { display: none !important; }
