/* ── CSS Custom Properties ── */
:root {
    --neon: #39ff14;
    --bg: #000;
    --surface: #111;
    --surface-2: #1a1a1a;
    --border: #222;
    --text: #fff;
    --text-muted: #888;
    --text-dim: #555;
    --danger: #ef4444;
    --radius: 16px;
    --radius-sm: 12px;
}

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

/* ── Base ── */
body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
    background: var(--bg);
    color: var(--text);
    -webkit-font-smoothing: antialiased;
    min-height: 100dvh;
}

a {
    color: var(--neon);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

/* ── App shell (shared layout wrapper) ── */
.app-shell {
    min-height: 100dvh;
    padding-bottom: calc(80px + env(safe-area-inset-bottom, 0px));
    padding-top: env(safe-area-inset-top, 0px);
}

/* ── Bottom navigation ── */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--surface);
    border-top: 1px solid var(--border);
    display: flex;
    justify-content: space-around;
    padding: 12px 0 calc(12px + env(safe-area-inset-bottom, 0px));
    z-index: 50;
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    color: var(--text-dim);
    font-size: 0.625rem;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.2s;
    padding: 8px 16px;
    min-width: 64px;
}

.nav-item:hover,
.nav-item.active {
    color: var(--neon);
    text-decoration: none;
}

.nav-item svg {
    width: 24px;
    height: 24px;
}