/* ==========================================================================
   LOW LIFE CITY — Marketing Website Styles
   Same noir palette as the game client (vice_theme.css) but in a
   scrollable page layout for the public-facing marketing site.
   ========================================================================== */

/* CSS Variables — mirrors vice_theme.css so both feel like one product */
:root {
    --bg-deep:      #0a0a0d;
    --bg-panel:     #0f0f14;
    --bg-elevated:  #14141a;
    --bg-card:      #111118;

    --border-subtle: #1a1a22;
    --border-medium: #2a2a35;
    --border-accent: #3a3a48;

    --text-primary:   #e0e0e8;
    --text-secondary: #8888a0;
    --text-muted:     #555568;

    --neon-red:       #ff3344;
    --neon-red-dim:   rgba(255, 51, 68, 0.15);
    --neon-amber:     #ffaa33;
    --neon-amber-dim: rgba(255, 170, 51, 0.15);
    --neon-green:     #33ff66;
    --neon-green-dim: rgba(51, 255, 102, 0.15);
    --neon-blue:      #3388ff;
    --neon-blue-dim:  rgba(51, 136, 255, 0.15);

    --font-mono: 'Courier New', 'Consolas', monospace;
    --font-sans: 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;

    --radius-sm: 3px;
    --radius-md: 6px;
    --radius-lg: 12px;

    --max-width: 1100px;
    --section-pad: 80px 24px;
}

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

html { scroll-behavior: smooth; }

body {
    background: var(--bg-deep);
    color: var(--text-primary);
    font-family: var(--font-sans);
    font-size: 16px;
    line-height: 1.6;
    min-height: 100vh;
}

/* Subtle scanline texture on the whole page */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    background: repeating-linear-gradient(
        0deg,
        transparent,
        transparent 2px,
        rgba(0, 0, 0, 0.04) 2px,
        rgba(0, 0, 0, 0.04) 4px
    );
}

/* Everything sits above the scanline */
body > * { position: relative; z-index: 1; }

a { color: var(--neon-amber); text-decoration: none; transition: color 150ms; }
a:hover { color: var(--neon-red); }

h1, h2, h3, h4 {
    font-family: var(--font-mono);
    letter-spacing: 0.04em;
    line-height: 1.2;
}

code, .mono {
    font-family: var(--font-mono);
    font-size: 0.9em;
    color: var(--neon-amber);
    background: var(--bg-elevated);
    padding: 2px 6px;
    border-radius: var(--radius-sm);
}

/* ── Layout Helpers ───────────────────────────────────────────────────────── */
.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
}

.section { padding: var(--section-pad); }
.section-dark { background: var(--bg-panel); }
.section-alt  { background: var(--bg-elevated); }

/* ── Navigation ───────────────────────────────────────────────────────────── */
.site-nav {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(10, 10, 13, 0.95);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--border-subtle);
    padding: 0 24px;
}

.site-nav .nav-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 56px;
}

.nav-logo {
    font-family: var(--font-mono);
    font-size: 1.1rem;
    font-weight: bold;
    color: var(--neon-red);
    text-shadow: 0 0 12px rgba(255, 51, 68, 0.5);
    letter-spacing: 0.08em;
    text-decoration: none;
}
.nav-logo:hover { color: var(--neon-amber); text-shadow: 0 0 12px rgba(255, 170, 51, 0.5); }

.nav-links {
    display: flex;
    align-items: center;
    gap: 28px;
    list-style: none;
}

.nav-links a {
    color: var(--text-secondary);
    font-size: 0.9rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    transition: color 150ms;
}
.nav-links a:hover { color: var(--text-primary); }
.nav-links a.active { color: var(--neon-amber); }

.nav-cta {
    background: var(--neon-red);
    color: #000 !important;
    padding: 8px 18px;
    border-radius: var(--radius-sm);
    font-weight: bold;
    font-family: var(--font-mono);
    font-size: 0.85rem !important;
    letter-spacing: 0.06em;
    transition: background 150ms, box-shadow 150ms !important;
}
.nav-cta:hover {
    background: var(--neon-amber) !important;
    box-shadow: 0 0 16px rgba(255, 170, 51, 0.4);
    color: #000 !important;
}

/* ── Hero Section ─────────────────────────────────────────────────────────── */
.hero {
    min-height: 92vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 80px 24px;
    position: relative;
    overflow: hidden;
}

/* Radial glow behind hero text */
.hero::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 600px;
    height: 400px;
    background: radial-gradient(ellipse, rgba(255, 51, 68, 0.06) 0%, transparent 70%);
    pointer-events: none;
}

.hero-inner { position: relative; z-index: 1; max-width: 760px; }

.hero-eyebrow {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--neon-red);
    margin-bottom: 20px;
    opacity: 0.9;
}

.hero-title {
    font-size: clamp(2.8rem, 7vw, 5.5rem);
    font-family: var(--font-mono);
    font-weight: bold;
    color: var(--text-primary);
    text-shadow:
        0 0 30px rgba(255, 51, 68, 0.3),
        0 0 60px rgba(255, 51, 68, 0.1);
    margin-bottom: 8px;
    line-height: 1.05;
}

.hero-title .accent { color: var(--neon-red); }

.hero-subtitle {
    font-family: var(--font-mono);
    font-size: clamp(0.85rem, 2vw, 1.1rem);
    color: var(--neon-amber);
    letter-spacing: 0.12em;
    margin-bottom: 28px;
    opacity: 0.85;
}

.hero-desc {
    font-size: 1.1rem;
    color: var(--text-secondary);
    max-width: 560px;
    margin: 0 auto 44px;
    line-height: 1.7;
}

.hero-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ── Buttons ──────────────────────────────────────────────────────────────── */
.btn {
    display: inline-block;
    padding: 14px 32px;
    border-radius: var(--radius-sm);
    font-family: var(--font-mono);
    font-size: 0.95rem;
    font-weight: bold;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 200ms;
    text-decoration: none;
    border: none;
}

.btn-primary {
    background: var(--neon-red);
    color: #000;
    box-shadow: 0 0 20px rgba(255, 51, 68, 0.3);
}
.btn-primary:hover {
    background: #ff1122;
    box-shadow: 0 0 30px rgba(255, 51, 68, 0.5);
    color: #000;
    transform: translateY(-1px);
}

.btn-secondary {
    background: transparent;
    color: var(--neon-amber);
    border: 1px solid var(--neon-amber);
}
.btn-secondary:hover {
    background: var(--neon-amber-dim);
    color: var(--neon-amber);
    box-shadow: 0 0 16px rgba(255, 170, 51, 0.2);
    transform: translateY(-1px);
}

.btn-outline {
    background: transparent;
    color: var(--text-secondary);
    border: 1px solid var(--border-medium);
}
.btn-outline:hover {
    border-color: var(--border-accent);
    color: var(--text-primary);
}

/* ── City Status Strip ────────────────────────────────────────────────────── */
.city-status {
    background: var(--bg-panel);
    border-top: 1px solid var(--border-subtle);
    border-bottom: 1px solid var(--border-subtle);
    padding: 16px 24px;
}

.city-status .container {
    display: flex;
    align-items: center;
    gap: 32px;
    flex-wrap: wrap;
}

.status-label {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-right: 8px;
}

.status-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-mono);
    font-size: 0.85rem;
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--neon-green);
    box-shadow: 0 0 6px var(--neon-green);
    animation: pulse-dot 2s ease-in-out infinite;
}

.status-dot.offline { background: var(--text-muted); box-shadow: none; animation: none; }

@keyframes pulse-dot {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}

.status-value { color: var(--neon-green); font-weight: bold; }
.status-value.amber { color: var(--neon-amber); }

/* ── Section Headers ──────────────────────────────────────────────────────── */
.section-header {
    text-align: center;
    margin-bottom: 56px;
}

.section-tag {
    display: inline-block;
    font-family: var(--font-mono);
    font-size: 0.72rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--neon-red);
    border: 1px solid rgba(255, 51, 68, 0.3);
    padding: 4px 12px;
    border-radius: var(--radius-sm);
    margin-bottom: 16px;
}

.section-title {
    font-size: clamp(1.6rem, 4vw, 2.4rem);
    color: var(--text-primary);
    margin-bottom: 12px;
}

.section-desc {
    font-size: 1rem;
    color: var(--text-secondary);
    max-width: 560px;
    margin: 0 auto;
}

/* ── Feature Cards ────────────────────────────────────────────────────────── */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.feature-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    padding: 28px;
    transition: border-color 200ms, transform 200ms;
}

.feature-card:hover {
    border-color: var(--border-accent);
    transform: translateY(-2px);
}

.feature-icon {
    font-size: 1.8rem;
    margin-bottom: 16px;
    display: block;
}

.feature-title {
    font-family: var(--font-mono);
    font-size: 1rem;
    color: var(--neon-amber);
    margin-bottom: 10px;
    letter-spacing: 0.04em;
}

.feature-desc {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.65;
}

/* ── How It Works ─────────────────────────────────────────────────────────── */
.steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 32px;
    position: relative;
}

.step {
    text-align: center;
    padding: 32px 24px;
}

.step-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    border: 2px solid var(--neon-red);
    font-family: var(--font-mono);
    font-size: 1.2rem;
    font-weight: bold;
    color: var(--neon-red);
    margin-bottom: 20px;
    box-shadow: 0 0 16px rgba(255, 51, 68, 0.2);
}

.step-title {
    font-family: var(--font-mono);
    font-size: 1rem;
    color: var(--text-primary);
    margin-bottom: 10px;
}

.step-desc {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* ── Heat Meter Preview ───────────────────────────────────────────────────── */
.heat-preview {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    padding: 32px;
    max-width: 600px;
    margin: 0 auto;
}

.heat-bar-wrap {
    margin: 20px 0;
}

.heat-bar-label {
    display: flex;
    justify-content: space-between;
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 8px;
}

.heat-bar {
    height: 12px;
    border-radius: 6px;
    background: linear-gradient(to right,
        #33ff66 0%,
        #33ff66 25%,
        #ffaa33 25%,
        #ffaa33 50%,
        #ff6633 50%,
        #ff6633 75%,
        #ff3344 75%,
        #ff3344 100%
    );
    position: relative;
    overflow: hidden;
}

.heat-levels {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    margin-top: 16px;
}

.heat-level {
    padding: 10px;
    border-radius: var(--radius-sm);
    text-align: center;
    font-family: var(--font-mono);
    font-size: 0.75rem;
}

.heat-level.low    { background: rgba(51, 255, 102, 0.08); border: 1px solid rgba(51, 255, 102, 0.2); color: #33ff66; }
.heat-level.mid    { background: rgba(255, 170, 51, 0.08); border: 1px solid rgba(255, 170, 51, 0.2); color: #ffaa33; }
.heat-level.high   { background: rgba(255, 102, 51, 0.08); border: 1px solid rgba(255, 102, 51, 0.2); color: #ff6633; }
.heat-level.danger { background: rgba(255, 51, 68, 0.08);  border: 1px solid rgba(255, 51, 68, 0.2);  color: #ff3344; }

.heat-level .range { font-size: 0.9em; opacity: 0.7; display: block; margin-bottom: 4px; }

/* ── Command Table ────────────────────────────────────────────────────────── */
.cmd-section { margin-bottom: 48px; }

.cmd-section-title {
    font-family: var(--font-mono);
    font-size: 1rem;
    color: var(--neon-amber);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 16px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--border-subtle);
}

.cmd-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}

.cmd-table th {
    text-align: left;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-muted);
    padding: 8px 12px;
    border-bottom: 1px solid var(--border-subtle);
}

.cmd-table td {
    padding: 10px 12px;
    border-bottom: 1px solid var(--border-subtle);
    color: var(--text-secondary);
    vertical-align: top;
}

.cmd-table tr:last-child td { border-bottom: none; }

.cmd-table tr:hover td { background: var(--bg-elevated); }

.cmd-table td:first-child {
    font-family: var(--font-mono);
    color: var(--neon-amber);
    white-space: nowrap;
    width: 1%;
    padding-right: 24px;
}

/* ── District Cards ───────────────────────────────────────────────────────── */
.district-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 20px;
}

.district-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    padding: 24px;
    transition: border-color 200ms;
}

.district-card:hover { border-color: var(--border-accent); }

.district-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 12px;
    gap: 12px;
}

.district-name {
    font-family: var(--font-mono);
    font-size: 1.05rem;
    color: var(--neon-amber);
    letter-spacing: 0.04em;
}

.district-badges {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    flex-shrink: 0;
}

.badge {
    font-family: var(--font-mono);
    font-size: 0.68rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 3px 8px;
    border-radius: var(--radius-sm);
}

.badge-police-low    { background: rgba(51, 255, 102, 0.1); color: #33ff66; border: 1px solid rgba(51, 255, 102, 0.25); }
.badge-police-mid    { background: rgba(255, 170, 51, 0.1); color: #ffaa33; border: 1px solid rgba(255, 170, 51, 0.25); }
.badge-police-high   { background: rgba(255, 51, 68, 0.1);  color: #ff3344; border: 1px solid rgba(255, 51, 68, 0.25); }
.badge-faction-blue  { background: rgba(51, 136, 255, 0.1); color: #3388ff; border: 1px solid rgba(51, 136, 255, 0.25); }
.badge-faction-green { background: rgba(51, 255, 102, 0.1); color: #33ff66; border: 1px solid rgba(51, 255, 102, 0.25); }
.badge-faction-red   { background: rgba(255, 51, 68, 0.1);  color: #ff3344; border: 1px solid rgba(255, 51, 68, 0.25); }
.badge-neutral       { background: rgba(136, 136, 160, 0.1); color: #8888a0; border: 1px solid rgba(136, 136, 160, 0.25); }

.district-desc {
    font-size: 0.88rem;
    color: var(--text-secondary);
    line-height: 1.65;
}

/* ── Faction Cards ────────────────────────────────────────────────────────── */
.faction-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
}

.faction-card {
    background: var(--bg-card);
    border-radius: var(--radius-md);
    padding: 28px;
    transition: transform 200ms;
}

.faction-card:hover { transform: translateY(-2px); }

.faction-card.sindaco { border: 1px solid rgba(51, 136, 255, 0.3); }
.faction-card.harbor  { border: 1px solid rgba(51, 255, 102, 0.3); }
.faction-card.quarter { border: 1px solid rgba(255, 51, 68, 0.3); }

.faction-name {
    font-family: var(--font-mono);
    font-size: 1.1rem;
    margin-bottom: 6px;
    letter-spacing: 0.04em;
}

.faction-card.sindaco .faction-name { color: var(--neon-blue); }
.faction-card.harbor  .faction-name { color: var(--neon-green); }
.faction-card.quarter .faction-name { color: var(--neon-red); }

.faction-territory {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--text-muted);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 14px;
}

.faction-desc {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.65;
    margin-bottom: 16px;
}

.faction-rivals {
    font-family: var(--font-mono);
    font-size: 0.78rem;
    color: var(--text-muted);
}

.faction-rivals span { color: var(--neon-red); }

/* ── Tip Boxes ────────────────────────────────────────────────────────────── */
.tip-box {
    background: var(--bg-card);
    border-left: 3px solid var(--neon-amber);
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
    padding: 16px 20px;
    margin: 24px 0;
}

.tip-box .tip-label {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--neon-amber);
    margin-bottom: 6px;
}

.tip-box p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin: 0;
}

.tip-box.danger { border-left-color: var(--neon-red); }
.tip-box.danger .tip-label { color: var(--neon-red); }

/* ── Page Hero (inner pages) ──────────────────────────────────────────────── */
.page-hero {
    padding: 64px 24px 48px;
    text-align: center;
    border-bottom: 1px solid var(--border-subtle);
    background: var(--bg-panel);
}

.page-hero-title {
    font-size: clamp(1.8rem, 5vw, 3rem);
    color: var(--text-primary);
    margin-bottom: 12px;
}

.page-hero-desc {
    font-size: 1rem;
    color: var(--text-secondary);
    max-width: 520px;
    margin: 0 auto;
}

/* ── Breadcrumb ───────────────────────────────────────────────────────────── */
.breadcrumb {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--text-muted);
    padding: 12px 0;
    margin-bottom: 0;
}

.breadcrumb a { color: var(--text-muted); }
.breadcrumb a:hover { color: var(--neon-amber); }
.breadcrumb .sep { margin: 0 8px; }

/* ── CTA Banner ───────────────────────────────────────────────────────────── */
.cta-banner {
    text-align: center;
    padding: 80px 24px;
    background: var(--bg-panel);
    border-top: 1px solid var(--border-subtle);
}

.cta-banner h2 {
    font-size: clamp(1.6rem, 4vw, 2.4rem);
    color: var(--text-primary);
    margin-bottom: 12px;
}

.cta-banner p {
    color: var(--text-secondary);
    margin-bottom: 36px;
    font-size: 1rem;
}

/* ── Footer ───────────────────────────────────────────────────────────────── */
.site-footer {
    background: var(--bg-deep);
    border-top: 1px solid var(--border-subtle);
    padding: 40px 24px;
}

.footer-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-logo {
    font-family: var(--font-mono);
    font-size: 0.95rem;
    color: var(--neon-red);
    letter-spacing: 0.08em;
    opacity: 0.7;
}

.footer-links {
    display: flex;
    gap: 24px;
    list-style: none;
}

.footer-links a {
    font-size: 0.85rem;
    color: var(--text-muted);
    transition: color 150ms;
}
.footer-links a:hover { color: var(--text-secondary); }

.footer-tagline {
    font-family: var(--font-mono);
    font-size: 0.78rem;
    color: var(--text-muted);
    font-style: italic;
    opacity: 0.6;
}

/* ── Auth Pages (login / register / password reset) ───────────────────────── */
/* These style Evennia's Django auth forms, which we re-skin by overriding the
   templates in web/templates/website/registration/. Form fields are rendered
   by Django, so we style bare input/select elements rather than relying on
   Bootstrap classes. */

.auth-wrap {
    max-width: 460px;
    margin: 0 auto;
    padding: 56px 24px 80px;
}

.auth-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-top: 2px solid var(--neon-red);
    border-radius: var(--radius-md);
    padding: 32px 28px;
}

.auth-title {
    font-family: var(--font-mono);
    font-size: 1.4rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-primary);
    margin-bottom: 6px;
}

.auth-sub {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 24px;
    line-height: 1.6;
}

.auth-card .form-field { margin-bottom: 18px; }

.auth-card label {
    display: block;
    font-family: var(--font-mono);
    font-size: 0.72rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 6px;
}

.auth-card input[type="text"],
.auth-card input[type="password"],
.auth-card input[type="email"],
.auth-card select,
.auth-card textarea {
    width: 100%;
    background: var(--bg-deep);
    border: 1px solid var(--border-medium);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-family: var(--font-mono);
    font-size: 0.95rem;
    padding: 10px 12px;
    transition: border-color 150ms, box-shadow 150ms;
}

.auth-card input:focus,
.auth-card select:focus,
.auth-card textarea:focus {
    outline: none;
    border-color: var(--neon-amber);
    box-shadow: 0 0 0 2px var(--neon-amber-dim);
}

.auth-card .helptext,
.auth-card small {
    display: block;
    margin-top: 6px;
    font-size: 0.75rem;
    color: var(--text-muted);
    line-height: 1.5;
}

.auth-card ul { list-style: none; }

.auth-submit {
    width: 100%;
    background: var(--neon-red);
    color: #000;
    border: none;
    border-radius: var(--radius-sm);
    font-family: var(--font-mono);
    font-size: 0.9rem;
    font-weight: bold;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 12px 16px;
    cursor: pointer;
    transition: background 150ms, box-shadow 150ms;
}

.auth-submit:hover {
    background: var(--neon-amber);
    box-shadow: 0 0 16px rgba(255, 170, 51, 0.35);
}

.auth-divider {
    border: none;
    border-top: 1px solid var(--border-subtle);
    margin: 22px 0;
}

.auth-links {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    font-size: 0.8rem;
}

.auth-links a { color: var(--text-secondary); }
.auth-links a:hover { color: var(--neon-amber); }

.auth-guest {
    margin-top: 18px;
    text-align: center;
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* ── Alerts / Django messages ─────────────────────────────────────────────── */
.vice-messages {
    max-width: var(--max-width);
    margin: 20px auto 0;
    padding: 0 24px;
}

.alert {
    border: 1px solid var(--border-medium);
    border-left: 3px solid var(--neon-amber);
    background: var(--bg-elevated);
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    font-size: 0.88rem;
    padding: 12px 14px;
    margin-bottom: 12px;
}

.alert-error,
.alert-danger { border-left-color: var(--neon-red); color: #ffb3ba; }
.alert-success { border-left-color: var(--neon-green); color: #b3ffc9; }
.alert-info    { border-left-color: var(--neon-blue); }

/* ── Nav logout button (styled to match nav links) ────────────────────────── */
.nav-logout-form { display: inline; }

.nav-logout {
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    color: var(--text-secondary);
    font-family: inherit;
    font-size: 0.9rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    transition: color 150ms;
}

.nav-logout:hover { color: var(--neon-red); }

/* ── Error pages (404 / 500) ──────────────────────────────────────────────── */
.error-wrap {
    max-width: 620px;
    margin: 0 auto;
    padding: 96px 24px 120px;
    text-align: center;
}

.error-code {
    font-family: var(--font-mono);
    font-size: clamp(3.5rem, 12vw, 6rem);
    font-weight: bold;
    line-height: 1;
    color: var(--neon-red);
    text-shadow: 0 0 24px rgba(255, 51, 68, 0.4);
}

.error-title {
    font-family: var(--font-mono);
    font-size: 1.1rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--text-primary);
    margin: 18px 0 12px;
}

.error-desc {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 32px;
}

/* ── Responsive ───────────────────────────────────────────────────────────── */
@media (max-width: 768px) {

    :root { --section-pad: 56px 20px; }

    .nav-links { gap: 16px; }
    .nav-links li:not(:last-child) { display: none; }

    .hero-actions { flex-direction: column; align-items: center; }
    .btn { width: 100%; max-width: 280px; text-align: center; }

    .city-status .container { gap: 16px; }

    .heat-levels { grid-template-columns: repeat(2, 1fr); }

    .footer-inner { flex-direction: column; text-align: center; }
    .footer-links { justify-content: center; }
}

@media (max-width: 480px) {
    .feature-grid { grid-template-columns: 1fr; }
    .district-grid { grid-template-columns: 1fr; }
    .faction-grid  { grid-template-columns: 1fr; }
    .steps-grid    { grid-template-columns: 1fr; }
}
