/* ==========================================================================
   Flight Tracker — Aviation Dark Design System (Flighty-inspired)
   ========================================================================== */

:root {
    --bg-canvas: #050811;
    --bg-surface: #0b1120;
    --bg-elevated: #11192e;
    --bg-glass: rgba(11, 17, 32, 0.74);
    --bg-glass-strong: rgba(9, 14, 27, 0.88);
    --bg-glass-hover: rgba(25, 37, 64, 0.82);

    --border-subtle: rgba(148, 163, 184, 0.14);
    --border-strong: rgba(148, 163, 184, 0.26);
    --border-accent: rgba(56, 189, 248, 0.42);

    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;

    --accent-sky: #38bdf8;
    --accent-sky-deep: #0284c7;
    --accent-indigo: #818cf8;
    --accent-amber: #f59e0b;
    --accent-emerald: #34d399;
    --accent-rose: #fb7185;

    --radius-sm: 10px;
    --radius-md: 16px;
    --radius-lg: 22px;
    --radius-pill: 9999px;

    --shadow-glass: 0 12px 40px rgba(0, 0, 0, 0.48), inset 0 1px 0 rgba(255, 255, 255, 0.06);
    --shadow-card: 0 8px 30px rgba(0, 0, 0, 0.32), inset 0 1px 0 rgba(255, 255, 255, 0.04);

    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Segoe UI', Roboto, sans-serif;
    --font-mono: 'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, monospace;

    --nav-height: 68px;
}

/* Reset & Base */
*, *::before, *::after {
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

html {
    background-color: var(--bg-canvas);
    color: var(--text-primary);
    color-scheme: dark;
}

body {
    margin: 0;
    padding: 0;
    min-height: 100vh;
    min-height: 100dvh;
    font-family: var(--font-sans);
    background-color: var(--bg-canvas);
    color: var(--text-primary);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

body.page-immersive {
    overflow: hidden;
}

body.page-scroll {
    background:
        radial-gradient(900px 520px at 15% -10%, rgba(56, 189, 248, 0.12), transparent 60%),
        radial-gradient(700px 440px at 88% 8%, rgba(129, 140, 248, 0.10), transparent 55%),
        var(--bg-canvas);
}

.tabular {
    font-variant-numeric: tabular-nums;
}

.mono {
    font-family: var(--font-mono);
    font-variant-numeric: tabular-nums;
}

/* Subtle custom scrollbars */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}
::-webkit-scrollbar-track {
    background: transparent;
}
::-webkit-scrollbar-thumb {
    background: rgba(148, 163, 184, 0.25);
    border-radius: 999px;
}
::-webkit-scrollbar-thumb:hover {
    background: rgba(148, 163, 184, 0.42);
}

/* ==========================================================================
   Floating / Sticky Glassmorphic Navigation
   ========================================================================== */

.top-hud {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1100;
    padding: 12px 20px;
    pointer-events: none;
}

body.page-scroll .top-hud {
    position: sticky;
    background: linear-gradient(180deg, rgba(5, 8, 17, 0.92) 0%, rgba(5, 8, 17, 0.65) 75%, transparent 100%);
    pointer-events: auto;
}

.hud-bar {
    max-width: 1280px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 12px;
}

.hud-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--text-primary);
    pointer-events: auto;
    justify-self: start;
    padding: 6px 12px 6px 8px;
    border-radius: var(--radius-pill);
    background: var(--bg-glass);
    backdrop-filter: blur(20px) saturate(160%);
    -webkit-backdrop-filter: blur(20px) saturate(160%);
    border: 1px solid var(--border-subtle);
    box-shadow: var(--shadow-glass);
    transition: border-color 0.2s ease, transform 0.2s ease;
}

.hud-brand:hover {
    border-color: var(--border-strong);
}

.brand-icon {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, rgba(56, 189, 248, 0.24), rgba(129, 140, 248, 0.24));
    border: 1px solid rgba(56, 189, 248, 0.35);
    color: var(--accent-sky);
}

.brand-meta {
    display: flex;
    flex-direction: column;
    line-height: 1.15;
}

.brand-title {
    font-size: 13px;
    font-weight: 700;
    letter-spacing: -0.01em;
}

.brand-sub {
    font-size: 11px;
    color: var(--text-secondary);
    font-variant-numeric: tabular-nums;
}

.brand-sub strong {
    color: var(--accent-sky);
    font-weight: 600;
}

/* Segmented Navigation Pill */
.nav-pill {
    pointer-events: auto;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px;
    border-radius: var(--radius-pill);
    background: var(--bg-glass);
    backdrop-filter: blur(22px) saturate(160%);
    -webkit-backdrop-filter: blur(22px) saturate(160%);
    border: 1px solid var(--border-subtle);
    box-shadow: var(--shadow-glass);
}

.nav-pill a {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 8px 16px;
    border-radius: var(--radius-pill);
    text-decoration: none;
    color: var(--text-secondary);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: -0.01em;
    transition: color 0.18s ease, background-color 0.18s ease, box-shadow 0.18s ease;
}

.nav-pill a svg {
    width: 15px;
    height: 15px;
    opacity: 0.85;
}

.nav-pill a:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.05);
}

.nav-pill a.active {
    color: #04101d;
    background: linear-gradient(135deg, #38bdf8, #60a5fa);
    box-shadow: 0 2px 14px rgba(56, 189, 248, 0.38);
}

.nav-pill a.active svg {
    opacity: 1;
}

/* Right Controls (Period selector) */
.hud-right {
    justify-self: end;
    pointer-events: auto;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.period-wrap {
    position: relative;
    display: inline-flex;
    align-items: center;
    background: var(--bg-glass);
    backdrop-filter: blur(20px) saturate(160%);
    -webkit-backdrop-filter: blur(20px) saturate(160%);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-pill);
    box-shadow: var(--shadow-glass);
    transition: border-color 0.2s ease;
}

.period-wrap:hover, .period-wrap:focus-within {
    border-color: var(--border-accent);
}

.period-icon {
    position: absolute;
    left: 12px;
    width: 14px;
    height: 14px;
    color: var(--accent-sky);
    pointer-events: none;
}

.period-select {
    appearance: none;
    -webkit-appearance: none;
    background: transparent;
    border: none;
    color: var(--text-primary);
    font-family: var(--font-sans);
    font-size: 13px;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
    padding: 9px 32px 9px 32px;
    border-radius: var(--radius-pill);
    cursor: pointer;
    outline: none;
}

.period-select option {
    background: #0f172a;
    color: #f8fafc;
}

.period-chevron {
    position: absolute;
    right: 11px;
    width: 13px;
    height: 13px;
    color: var(--text-secondary);
    pointer-events: none;
}

/* Mobile Floating Bottom Dock */
.mobile-dock {
    display: none;
}

/* ==========================================================================
   Toast Flash Messages
   ========================================================================== */

.toast-stack {
    position: fixed;
    top: 76px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1300;
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: min(92vw, 440px);
    pointer-events: none;
}

.toast {
    pointer-events: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 16px;
    border-radius: var(--radius-md);
    background: var(--bg-glass-strong);
    backdrop-filter: blur(22px);
    -webkit-backdrop-filter: blur(22px);
    border: 1px solid var(--border-strong);
    box-shadow: 0 14px 40px rgba(0, 0, 0, 0.55);
    font-size: 13.5px;
    font-weight: 500;
    color: var(--text-primary);
    animation: toastSlideIn 0.28s cubic-bezier(0.16, 1, 0.3, 1);
}

.toast.toast-success {
    border-color: rgba(52, 211, 153, 0.45);
}
.toast.toast-success .toast-dot {
    background: var(--accent-emerald);
    box-shadow: 0 0 10px var(--accent-emerald);
}

.toast.toast-error {
    border-color: rgba(251, 113, 133, 0.5);
}
.toast.toast-error .toast-dot {
    background: var(--accent-rose);
    box-shadow: 0 0 10px var(--accent-rose);
}

.toast-left {
    display: flex;
    align-items: center;
    gap: 10px;
}

.toast-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--accent-sky);
    box-shadow: 0 0 10px var(--accent-sky);
    flex-shrink: 0;
}

.toast-close {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 4px;
    border-radius: 6px;
    display: grid;
    place-items: center;
    transition: color 0.15s ease, background 0.15s ease;
}

.toast-close:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.08);
}

@keyframes toastSlideIn {
    from { opacity: 0; transform: translateY(-10px) scale(0.97); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

/* ==========================================================================
   Immersive Full-Bleed Canvas (Globe & Map) + Floating HUD Panels
   ========================================================================== */

.immersive-stage {
    position: relative;
    width: 100vw;
    height: 100vh;
    height: 100dvh;
    overflow: hidden;
    background: var(--bg-canvas);
}

.canvas-layer {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

/* Bottom-left floating live stats HUD */
.floating-stats-hud {
    position: fixed;
    left: 20px;
    bottom: 20px;
    z-index: 950;
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 12px 18px;
    border-radius: var(--radius-lg);
    background: var(--bg-glass);
    backdrop-filter: blur(22px) saturate(160%);
    -webkit-backdrop-filter: blur(22px) saturate(160%);
    border: 1px solid var(--border-subtle);
    box-shadow: var(--shadow-glass);
}

.hud-stat {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.hud-stat-val {
    font-size: 17px;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--text-primary);
    font-variant-numeric: tabular-nums;
}

.hud-stat-val.accent {
    color: var(--accent-sky);
}

.hud-stat-lbl {
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-muted);
}

.hud-divider {
    width: 1px;
    height: 26px;
    background: var(--border-subtle);
}

/* Bottom-right control cluster */
.floating-controls {
    position: fixed;
    right: 20px;
    bottom: 20px;
    z-index: 950;
    display: flex;
    align-items: center;
    gap: 8px;
}

.hud-btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 10px 14px;
    border-radius: var(--radius-pill);
    background: var(--bg-glass);
    backdrop-filter: blur(20px) saturate(160%);
    -webkit-backdrop-filter: blur(20px) saturate(160%);
    border: 1px solid var(--border-subtle);
    color: var(--text-primary);
    font-family: var(--font-sans);
    font-size: 12.5px;
    font-weight: 600;
    cursor: pointer;
    box-shadow: var(--shadow-glass);
    transition: all 0.18s ease;
}

.hud-btn:hover {
    background: var(--bg-glass-hover);
    border-color: var(--border-strong);
    transform: translateY(-1px);
}

.hud-btn.active {
    background: rgba(56, 189, 248, 0.18);
    border-color: var(--border-accent);
    color: var(--accent-sky);
}

.hud-btn.icon-only {
    padding: 10px;
    width: 40px;
    height: 40px;
    justify-content: center;
}

.hud-btn svg {
    width: 15px;
    height: 15px;
    flex-shrink: 0;
}

.segmented-mini {
    display: inline-flex;
    padding: 3px;
    gap: 2px;
    border-radius: var(--radius-pill);
    background: var(--bg-glass);
    backdrop-filter: blur(20px) saturate(160%);
    -webkit-backdrop-filter: blur(20px) saturate(160%);
    border: 1px solid var(--border-subtle);
    box-shadow: var(--shadow-glass);
}

.segmented-mini button {
    border: none;
    background: transparent;
    color: var(--text-secondary);
    font-family: var(--font-sans);
    font-size: 12px;
    font-weight: 600;
    padding: 7px 12px;
    border-radius: var(--radius-pill);
    cursor: pointer;
    transition: all 0.16s ease;
}

.segmented-mini button:hover {
    color: var(--text-primary);
}

.segmented-mini button.active {
    background: rgba(56, 189, 248, 0.22);
    color: var(--accent-sky);
    box-shadow: inset 0 0 0 1px rgba(56, 189, 248, 0.35);
}

/* ==========================================================================
   Slide-over Flight Log Drawer (for Globe & Map fly-to)
   ========================================================================== */

.flight-drawer {
    position: fixed;
    top: 78px;
    right: 20px;
    bottom: 76px;
    width: 340px;
    max-width: calc(100vw - 32px);
    z-index: 1020;
    display: flex;
    flex-direction: column;
    border-radius: var(--radius-lg);
    background: var(--bg-glass-strong);
    backdrop-filter: blur(26px) saturate(170%);
    -webkit-backdrop-filter: blur(26px) saturate(170%);
    border: 1px solid var(--border-subtle);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.06);
    transform: translateX(calc(100% + 40px));
    opacity: 0;
    pointer-events: none;
    transition: transform 0.32s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.24s ease;
}

.flight-drawer.open {
    transform: translateX(0);
    opacity: 1;
    pointer-events: auto;
}

.drawer-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 18px 12px;
    border-bottom: 1px solid var(--border-subtle);
}

.drawer-title {
    margin: 0;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: -0.01em;
}

.drawer-count {
    font-size: 11px;
    color: var(--accent-sky);
    background: rgba(56, 189, 248, 0.14);
    border: 1px solid rgba(56, 189, 248, 0.25);
    padding: 2px 8px;
    border-radius: var(--radius-pill);
    font-weight: 600;
    margin-left: 8px;
}

.drawer-search {
    padding: 10px 14px;
    border-bottom: 1px solid var(--border-subtle);
}

.drawer-search input {
    width: 100%;
    padding: 9px 12px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-subtle);
    background: rgba(255, 255, 255, 0.04);
    color: var(--text-primary);
    font-family: var(--font-sans);
    font-size: 13px;
    outline: none;
    transition: border-color 0.18s ease, background 0.18s ease;
}

.drawer-search input:focus {
    border-color: var(--border-accent);
    background: rgba(255, 255, 255, 0.06);
}

.drawer-search input::placeholder {
    color: var(--text-muted);
}

.drawer-list {
    flex: 1;
    overflow-y: auto;
    padding: 10px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.drawer-flight-item {
    width: 100%;
    text-align: left;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-subtle);
    border-radius: 14px;
    padding: 12px 14px;
    color: var(--text-primary);
    cursor: pointer;
    transition: all 0.18s ease;
    font-family: var(--font-sans);
}

.drawer-flight-item:hover,
.drawer-flight-item.selected {
    background: rgba(56, 189, 248, 0.10);
    border-color: var(--border-accent);
    transform: translateY(-1px);
}

.dfi-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 6px;
}

.dfi-route {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-mono);
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.dfi-arrow {
    color: var(--accent-sky);
    font-size: 13px;
}

.dfi-date {
    font-size: 11.5px;
    color: var(--text-secondary);
    font-variant-numeric: tabular-nums;
}

.dfi-sub {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    font-size: 11.5px;
    color: var(--text-muted);
}

.dfi-cities {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.dfi-dist {
    flex-shrink: 0;
    color: var(--accent-amber);
    font-weight: 600;
    font-variant-numeric: tabular-nums;
}

/* Floating Route Focus Card (shown when a route is selected on Globe/Map) */
.route-inspector {
    position: fixed;
    left: 20px;
    top: 84px;
    z-index: 960;
    width: 290px;
    max-width: calc(100vw - 40px);
    padding: 14px 16px;
    border-radius: var(--radius-md);
    background: var(--bg-glass-strong);
    backdrop-filter: blur(24px) saturate(170%);
    -webkit-backdrop-filter: blur(24px) saturate(170%);
    border: 1px solid var(--border-accent);
    box-shadow: var(--shadow-glass);
    display: none;
    animation: toastSlideIn 0.22s ease;
}

.route-inspector.visible {
    display: block;
}

/* ==========================================================================
   Shared Page Shell, Cards, Buttons & Forms (Stats, Add Flight, Admin)
   ========================================================================== */

.page-container {
    max-width: 1120px;
    margin: 0 auto;
    padding: 20px 20px 64px;
}

.page-container.narrow {
    max-width: 680px;
}

.glass-card {
    background: linear-gradient(180deg, rgba(17, 25, 46, 0.78) 0%, rgba(11, 17, 32, 0.86) 100%);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-card);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    min-width: 0;
}

.section-label {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-muted);
    margin: 0 0 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 11px 18px;
    border-radius: var(--radius-sm);
    font-family: var(--font-sans);
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    border: 1px solid transparent;
    transition: all 0.18s ease;
}

.btn-primary {
    background: linear-gradient(135deg, #38bdf8 0%, #3b82f6 100%);
    color: #031120;
    box-shadow: 0 6px 20px rgba(56, 189, 248, 0.30);
}

.btn-primary:hover {
    filter: brightness(1.08);
    transform: translateY(-1px);
    box-shadow: 0 8px 26px rgba(56, 189, 248, 0.42);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--border-subtle);
    color: var(--text-primary);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.10);
    border-color: var(--border-strong);
}

.btn-danger {
    background: rgba(251, 113, 133, 0.12);
    border-color: rgba(251, 113, 133, 0.30);
    color: var(--accent-rose);
}

.btn-danger:hover {
    background: rgba(251, 113, 133, 0.22);
    border-color: rgba(251, 113, 133, 0.55);
}

/* Boarding-Pass Perforation */
.ticket-divider {
    position: relative;
    height: 1px;
    margin: 16px -20px;
    border-top: 1px dashed rgba(148, 163, 184, 0.22);
}
.ticket-divider::before,
.ticket-divider::after {
    content: '';
    position: absolute;
    top: -9px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--bg-canvas);
    border: 1px solid var(--border-subtle);
}
.ticket-divider::before { left: -9px; }
.ticket-divider::after { right: -9px; }

/* Dark Leaflet Customizations */
.leaflet-container {
    background: #060a14 !important;
    font-family: var(--font-sans) !important;
}

.leaflet-popup-content-wrapper {
    background: rgba(11, 17, 32, 0.94) !important;
    color: var(--text-primary) !important;
    border: 1px solid rgba(56, 189, 248, 0.35) !important;
    border-radius: 14px !important;
    box-shadow: 0 14px 36px rgba(0, 0, 0, 0.65) !important;
    backdrop-filter: blur(18px);
}

.leaflet-popup-tip {
    background: rgba(11, 17, 32, 0.94) !important;
}

.leaflet-popup-close-button {
    color: var(--text-secondary) !important;
}

.leaflet-control-attribution {
    background: rgba(5, 8, 17, 0.6) !important;
    color: var(--text-muted) !important;
    font-size: 10px !important;
    border-top-left-radius: 8px;
}
.leaflet-control-attribution a {
    color: var(--text-secondary) !important;
}

.leaflet-control-zoom {
    border: 1px solid var(--border-subtle) !important;
    border-radius: 12px !important;
    overflow: hidden;
    box-shadow: var(--shadow-glass) !important;
}

.leaflet-control-zoom a {
    background: var(--bg-glass-strong) !important;
    color: var(--text-primary) !important;
    border-bottom: 1px solid var(--border-subtle) !important;
}
.leaflet-control-zoom a:hover {
    background: var(--bg-glass-hover) !important;
    color: var(--accent-sky) !important;
}

/* Custom Globe tooltip */
.globe-tooltip {
    background: rgba(9, 14, 27, 0.92);
    border: 1px solid rgba(56, 189, 248, 0.38);
    border-radius: 12px;
    padding: 10px 13px;
    color: #f8fafc;
    font-family: var(--font-sans);
    font-size: 12.5px;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.65);
    backdrop-filter: blur(16px);
    min-width: 170px;
}

/* ==========================================================================
   Responsive / Mobile Optimization
   ========================================================================== */

@media (max-width: 768px) {
    .top-hud {
        padding: 10px 12px;
    }

    .hud-bar {
        grid-template-columns: 1fr auto;
    }

    .nav-pill.desktop-nav {
        display: none;
    }

    .brand-sub {
        font-size: 10.5px;
    }

    /* Mobile bottom floating dock */
    .mobile-dock {
        position: fixed;
        left: 50%;
        bottom: max(14px, env(safe-area-inset-bottom));
        transform: translateX(-50%);
        z-index: 1150;
        display: inline-flex;
        align-items: center;
        gap: 4px;
        padding: 5px;
        border-radius: var(--radius-pill);
        background: var(--bg-glass-strong);
        backdrop-filter: blur(24px) saturate(180%);
        -webkit-backdrop-filter: blur(24px) saturate(180%);
        border: 1px solid var(--border-strong);
        box-shadow: 0 16px 42px rgba(0, 0, 0, 0.65), inset 0 1px 0 rgba(255, 255, 255, 0.08);
    }

    .mobile-dock a {
        display: inline-flex;
        align-items: center;
        gap: 6px;
        padding: 9px 15px;
        border-radius: var(--radius-pill);
        text-decoration: none;
        color: var(--text-secondary);
        font-size: 13px;
        font-weight: 600;
        white-space: nowrap;
    }

    .mobile-dock a svg {
        width: 16px;
        height: 16px;
    }

    .mobile-dock a.active {
        color: #031120;
        background: linear-gradient(135deg, #38bdf8, #60a5fa);
        box-shadow: 0 2px 12px rgba(56, 189, 248, 0.35);
    }

    .floating-stats-hud {
        display: none;
    }

    .floating-controls {
        left: 50%;
        right: auto;
        transform: translateX(-50%);
        bottom: calc(74px + env(safe-area-inset-bottom));
        max-width: calc(100vw - 24px);
    }

    .floating-controls .btn-text {
        display: none;
    }

    .flight-drawer {
        top: 66px;
        right: 12px;
        left: 12px;
        width: auto;
        bottom: calc(80px + env(safe-area-inset-bottom));
    }

    .page-container {
        padding: 14px 14px calc(92px + env(safe-area-inset-bottom));
    }
}
