/* ===== EKPOM Live Track — Shared Design System ===== */

:root {
    --bg-void: #050611;
    --bg-panel: #0b0e1f;
    --bg-panel-raised: #11152b;
    --neon-blue: #3fc8ff;
    --neon-blue-dim: #1d6f99;
    --neon-purple: #a855ff;
    --neon-pink: #ff4fd8;
    --text-bright: #eaf0ff;
    --text-muted: #7c87ab;
    --line: #1c2240;
    --whatsapp: #25d366;
    --font-display: 'Chakra Petch', sans-serif;
    --font-body: 'Inter', sans-serif;
}

* { box-sizing: border-box; }

html, body {
    margin: 0;
    padding: 0;
    background: var(--bg-void);
    color: var(--text-bright);
    font-family: var(--font-body);
    overflow-x: hidden;
}

/* Faint circuit-line backdrop, echoes the logo's circuit motif */
.circuit-bg {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background-image:
        linear-gradient(var(--line) 1px, transparent 1px),
        linear-gradient(90deg, var(--line) 1px, transparent 1px);
    background-size: 48px 48px;
    opacity: 0.18;
}

.circuit-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 50% 30%, rgba(168,85,255,0.08), transparent 60%),
                radial-gradient(circle at 80% 80%, rgba(63,200,255,0.06), transparent 55%);
}

/* ===== Splash Screen ===== */
.splash-screen {
    position: fixed;
    inset: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-void);
    transition: opacity 0.6s ease;
}

.splash-screen.fade-out { opacity: 0; pointer-events: none; }

.splash-logo {
    width: min(260px, 60vw);
    filter: drop-shadow(0 0 25px rgba(63,200,255,0.45)) drop-shadow(0 0 45px rgba(168,85,255,0.3));
    animation: pulse-glow 2.4s ease-in-out infinite;
}

@keyframes pulse-glow {
    0%, 100% { filter: drop-shadow(0 0 20px rgba(63,200,255,0.4)) drop-shadow(0 0 35px rgba(168,85,255,0.25)); }
    50% { filter: drop-shadow(0 0 32px rgba(63,200,255,0.6)) drop-shadow(0 0 55px rgba(168,85,255,0.45)); }
}

@media (prefers-reduced-motion: reduce) {
    .splash-logo { animation: none; }
}

/* ===== WhatsApp Join Panel ===== */
.join-screen {
    position: fixed;
    inset: 0;
    z-index: 90;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 18px;
    background: var(--bg-void);
    text-align: center;
    padding: 24px;
}

.join-screen.hidden { display: none; }

.join-logo-small {
    width: 84px;
    margin-bottom: 6px;
    filter: drop-shadow(0 0 18px rgba(63,200,255,0.4));
}

.join-title {
    font-family: var(--font-display);
    font-size: 1.4rem;
    letter-spacing: 0.04em;
    color: var(--text-bright);
    margin: 0 0 4px;
}

.join-subtitle {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin: 0 0 18px;
    max-width: 320px;
}

.join-col {
    display: flex;
    flex-direction: column;
    gap: 14px;
    width: min(320px, 100%);
}

.join-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 20px;
    border-radius: 10px;
    border: 1px solid var(--whatsapp);
    background: linear-gradient(180deg, rgba(37,211,102,0.14), rgba(37,211,102,0.04));
    color: var(--text-bright);
    font-family: var(--font-display);
    font-size: 0.95rem;
    letter-spacing: 0.03em;
    text-decoration: none;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.join-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 22px rgba(37,211,102,0.35);
}

.join-btn svg { width: 20px; height: 20px; flex-shrink: 0; }

.join-skip {
    margin-top: 10px;
    background: none;
    border: none;
    color: var(--text-muted);
    font-family: var(--font-body);
    font-size: 0.82rem;
    text-decoration: underline;
    cursor: pointer;
}

/* ===== Top Bar ===== */
.topbar {
    position: relative;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 20px;
    border-bottom: 1px solid var(--line);
    background: rgba(11,14,31,0.7);
    backdrop-filter: blur(8px);
}

.hamburger-btn {
    width: 40px;
    height: 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    background: var(--bg-panel-raised);
    border: 1px solid var(--line);
    border-radius: 8px;
    cursor: pointer;
}

.hamburger-btn span {
    width: 18px;
    height: 2px;
    background: var(--neon-blue);
    border-radius: 2px;
    box-shadow: 0 0 6px rgba(63,200,255,0.6);
}

.topbar-logo {
    height: 36px;
    filter: drop-shadow(0 0 10px rgba(168,85,255,0.4));
}

.topbar-title {
    font-family: var(--font-display);
    font-size: 1rem;
    letter-spacing: 0.05em;
    color: var(--text-bright);
}

/* ===== Side Menu (hamburger) ===== */
.side-menu-overlay {
    position: fixed;
    inset: 0;
    z-index: 80;
    background: rgba(2,3,8,0.6);
    display: none;
}

.side-menu-overlay.open { display: block; }

.side-menu {
    position: fixed;
    top: 0;
    left: 0;
    height: 100%;
    width: min(280px, 80vw);
    background: var(--bg-panel);
    border-right: 1px solid var(--line);
    z-index: 81;
    transform: translateX(-100%);
    transition: transform 0.25s ease;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.side-menu.open { transform: translateX(0); }

.side-menu-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 10px;
    border-radius: 8px;
    color: var(--text-bright);
    background: none;
    border: none;
    text-align: left;
    font-family: var(--font-body);
    font-size: 0.92rem;
    cursor: pointer;
}

.side-menu-item:hover { background: var(--bg-panel-raised); }

/* ===== Modal (How to Use / Contact Us) ===== */
.modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 95;
    background: rgba(2,3,8,0.75);
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal-overlay.open { display: flex; }

.modal-box {
    background: var(--bg-panel);
    border: 1px solid var(--line);
    border-radius: 14px;
    max-width: 420px;
    width: 100%;
    padding: 24px;
    box-shadow: 0 0 40px rgba(63,200,255,0.12);
    position: relative;
    max-height: 80vh;
    overflow-y: auto;
}

.modal-close {
    position: absolute;
    top: 14px;
    right: 14px;
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 1.2rem;
    cursor: pointer;
}

.modal-title {
    font-family: var(--font-display);
    font-size: 1.1rem;
    color: var(--neon-blue);
    margin: 0 0 12px;
}

.modal-box p, .modal-box li {
    color: var(--text-muted);
    font-size: 0.88rem;
    line-height: 1.5;
}

/* ===== Generic UI bits used across pages ===== */
.btn {
    font-family: var(--font-display);
    border-radius: 8px;
    border: 1px solid var(--neon-blue-dim);
    background: var(--bg-panel-raised);
    color: var(--text-bright);
    padding: 11px 18px;
    font-size: 0.88rem;
    letter-spacing: 0.03em;
    cursor: pointer;
    transition: box-shadow 0.15s ease, border-color 0.15s ease;
}

.btn:hover { border-color: var(--neon-blue); box-shadow: 0 0 16px rgba(63,200,255,0.25); }

.btn-primary {
    border-color: var(--neon-purple);
    background: linear-gradient(135deg, rgba(168,85,255,0.18), rgba(63,200,255,0.1));
}

.btn-primary:hover { box-shadow: 0 0 20px rgba(168,85,255,0.4); }

input, select, textarea {
    font-family: var(--font-body);
    background: var(--bg-panel-raised);
    border: 1px solid var(--line);
    border-radius: 8px;
    color: var(--text-bright);
    padding: 10px 12px;
    font-size: 0.9rem;
    width: 100%;
}

input:focus, select:focus, textarea:focus {
    outline: none;
    border-color: var(--neon-blue);
    box-shadow: 0 0 0 3px rgba(63,200,255,0.15);
}

label {
    font-size: 0.78rem;
    color: var(--text-muted);
    letter-spacing: 0.03em;
    text-transform: uppercase;
}
