/* ==========================================================================
   CashLazer – Cyberpunk / Laser Theme
   Hard angles • Neon glows • Dark void backgrounds
   ========================================================================== */

:root {
    --void: #05050a;
    --void-2: #0a0a12;
    --void-3: #10101c;
    --panel: #12121e;
    --panel-2: #1a1a2e;
    --border: #2a2a45;
    --border-glow: #00f0ff33;

    --neon-cyan: #00f0ff;
    --neon-magenta: #ff00aa;
    --neon-purple: #b400ff;
    --neon-green: #39ff14;
    --neon-yellow: #fcee0a;
    --neon-red: #ff2a6d;

    --text: #e0e0f0;
    --text-dim: #8888a8;
    --text-bright: #ffffff;

    --font-display: 'Orbitron', sans-serif;
    --font-body: 'Rajdhani', sans-serif;

    --radius-hard: 2px;
    --radius-cut: 0 12px 0 12px;
    --shadow-neon: 0 0 8px var(--neon-cyan), 0 0 20px #00f0ff44;
    --shadow-magenta: 0 0 8px var(--neon-magenta), 0 0 20px #ff00aa44;
}

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

html { scroll-behavior: smooth; }

body.cyber-body {
    font-family: var(--font-body);
    font-size: 17px;
    font-weight: 500;
    background: var(--void);
    color: var(--text);
    min-height: 100vh;
    line-height: 1.5;
    overflow-x: hidden;
}

/* Scanlines + grid overlay */
.scanlines {
    pointer-events: none;
    position: fixed;
    inset: 0;
    z-index: 2;
    background: repeating-linear-gradient(
        0deg,
        transparent,
        transparent 2px,
        rgba(0,0,0,0.12) 2px,
        rgba(0,0,0,0.12) 4px
    );
    opacity: 0.35;
}

.grid-bg {
    pointer-events: none;
    position: fixed;
    inset: 0;
    z-index: 0;
    background-image:
        linear-gradient(rgba(0,240,255,0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0,240,255,0.03) 1px, transparent 1px);
    background-size: 60px 60px;
    mask-image: radial-gradient(ellipse at center, black 20%, transparent 70%);
}

/* Typography */
h1, h2, h3, h4, .logo-text, .btn, .nav-link, .balance-value {
    font-family: var(--font-display);
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

h1 { font-size: clamp(1.8rem, 4vw, 2.8rem); color: var(--text-bright); }
h2 { font-size: 1.5rem; color: var(--neon-cyan); margin-bottom: 1rem; }
h3 { font-size: 1.15rem; color: var(--neon-magenta); }

a { color: var(--neon-cyan); text-decoration: none; transition: color 0.2s, text-shadow 0.2s; }
a:hover { color: var(--text-bright); text-shadow: 0 0 8px var(--neon-cyan); }

/* Header */
.cyber-header {
    position: sticky;
    top: 0;
    z-index: 500;
    background: linear-gradient(180deg, #0a0a12ee 0%, #0a0a12cc 100%);
    border-bottom: 1px solid var(--border);
    backdrop-filter: blur(12px);
    overflow: visible;
}

.header-inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0.75rem 1.5rem;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    overflow: visible;
}

.logo-link {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    text-decoration: none;
}

.logo-img { filter: drop-shadow(0 0 6px var(--neon-cyan)); }

.logo-text {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--text-bright);
}
.logo-text .accent { color: var(--neon-cyan); text-shadow: 0 0 10px var(--neon-cyan); }

.main-nav {
    display: flex;
    gap: 0.25rem;
    flex: 1;
    justify-content: center;
}

.nav-link {
    padding: 0.45rem 0.85rem;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-dim);
    border: 1px solid transparent;
    clip-path: polygon(8% 0, 100% 0, 92% 100%, 0 100%);
    transition: all 0.2s;
}
.nav-link:hover, .nav-link.active {
    color: var(--neon-cyan);
    border-color: var(--neon-cyan);
    background: #00f0ff11;
    text-shadow: 0 0 6px var(--neon-cyan);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    overflow: visible;
}

.balance-menu { position: relative; z-index: 200; }
.balance-chip {
    background: var(--panel);
    border: 1px solid rgba(57, 255, 20, 0.55);
    padding: 0.4rem 0.95rem;
    clip-path: none;
    border-radius: 2px;
    display: flex;
    align-items: center;
    line-height: 1.1;
    text-decoration: none;
    cursor: pointer;
    transition: box-shadow 0.2s, border-color 0.2s;
    box-shadow: 0 0 8px rgba(57, 255, 20, 0.15);
}
.balance-chip:hover {
    box-shadow: 0 0 12px var(--neon-green), 0 0 24px #39ff1444;
    border-color: var(--neon-green);
}
.balance-value { font-size: 1rem; color: var(--neon-green); text-shadow: 0 0 8px var(--neon-green); font-family: var(--font-display); }

.user-menu { position: relative; z-index: 200; }
.user-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--panel);
    border: 1px solid var(--border);
    color: var(--text);
    padding: 0.35rem 0.7rem;
    cursor: pointer;
    font-family: var(--font-body);
    font-size: 0.9rem;
    clip-path: polygon(0 0, 92% 0, 100% 30%, 100% 100%, 8% 100%, 0 70%);
}
.user-avatar {
    width: 28px; height: 28px;
    background: linear-gradient(135deg, var(--neon-cyan), var(--neon-magenta));
    display: grid; place-items: center;
    font-weight: 700; font-size: 0.85rem; color: #000;
    border-radius: 2px;
}
.dropdown {
    display: none;
    position: absolute;
    right: 0; top: calc(100% + 6px);
    background: var(--panel-2);
    border: 1px solid var(--neon-cyan);
    min-width: 200px;
    z-index: 9990;
    box-shadow: var(--shadow-neon), 0 12px 40px rgba(0,0,0,0.6);
}
.dropdown.open { display: block; }
.dropdown a, .dropdown-btn {
    display: block;
    width: 100%;
    padding: 0.7rem 1rem;
    color: var(--text);
    background: none;
    border: none;
    text-align: left;
    font-family: var(--font-body);
    font-size: 0.95rem;
    cursor: pointer;
    text-decoration: none;
}
.dropdown a:hover, .dropdown-btn:hover {
    background: #00f0ff15;
    color: var(--neon-cyan);
}
.dropdown-stat {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.55rem 1rem;
    font-size: 0.9rem;
}
.dropdown-stat .dd-label { color: var(--text-dim); }
.dropdown-stat .dd-value { font-family: var(--font-display); font-size: 0.9rem; }
.dropdown-stat .dd-value.green { color: var(--neon-green); }
.dropdown-stat .dd-value.yellow { color: var(--neon-yellow); }
.dropdown-stat .dd-value.cyan { color: var(--neon-cyan); }
.dropdown-divider {
    height: 1px;
    background: var(--border);
    margin: 0.25rem 0;
}

.laser-beams {
    pointer-events: none;
    position: fixed;
    inset: 0;
    z-index: 1;
    background:
        linear-gradient(105deg, transparent 40%, rgba(0,240,255,0.04) 45%, transparent 50%),
        linear-gradient(75deg, transparent 55%, rgba(255,0,170,0.03) 60%, transparent 65%);
    opacity: 0.7;
}

.mobile-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}
.mobile-toggle span {
    width: 24px; height: 2px;
    background: var(--neon-cyan);
    box-shadow: 0 0 4px var(--neon-cyan);
}

/* Main content */
.cyber-main {
    position: relative;
    z-index: 1;
    max-width: 1280px;
    margin: 0 auto;
    padding: 2rem 1.5rem 4rem;
    min-height: calc(100vh - 180px);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    padding: 0.7rem 1.4rem;
    font-family: var(--font-display);
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    border: none;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
    clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 12px, 100% 100%, 12px 100%, 0 calc(100% - 12px));
}

.btn-neon {
    background: linear-gradient(135deg, #00c8d4, #00f0ff);
    color: #000;
    box-shadow: 0 0 12px #00f0ff66;
}
.btn-neon:hover {
    background: linear-gradient(135deg, #00f0ff, #7affff);
    box-shadow: 0 0 20px #00f0ffaa;
    color: #000;
}

.btn-magenta {
    background: linear-gradient(135deg, #c00080, #ff00aa);
    color: #fff;
    box-shadow: 0 0 12px #ff00aa66;
}
.btn-magenta:hover {
    box-shadow: 0 0 20px #ff00aaaa;
}

.btn-ghost {
    background: transparent;
    color: var(--neon-cyan);
    border: 1px solid var(--neon-cyan);
    clip-path: none;
    border-radius: var(--radius-hard);
}
.btn-ghost:hover {
    background: #00f0ff15;
    box-shadow: var(--shadow-neon);
}

.btn-block { width: 100%; }

/* Cards / Panels */
.panel {
    background: var(--panel);
    border: 1px solid var(--border);
    position: relative;
    overflow: hidden;
}
.panel::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--neon-cyan), var(--neon-magenta), var(--neon-purple));
}
.panel-cut {
    clip-path: polygon(0 0, calc(100% - 20px) 0, 100% 20px, 100% 100%, 20px 100%, 0 calc(100% - 20px));
}

.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.25rem;
}

.stat-card {
    background: var(--panel);
    border: 1px solid var(--border);
    padding: 1.25rem;
    clip-path: polygon(0 0, calc(100% - 16px) 0, 100% 16px, 100% 100%, 0 100%);
}
.stat-card .label {
    font-size: 0.7rem;
    color: var(--text-dim);
    letter-spacing: 0.12em;
    text-transform: uppercase;
    font-family: var(--font-display);
}
.stat-card .value {
    font-size: 1.6rem;
    font-family: var(--font-display);
    font-weight: 700;
    margin-top: 0.3rem;
}
.stat-card.cyan .value { color: var(--neon-cyan); text-shadow: 0 0 10px var(--neon-cyan); }
.stat-card.green .value { color: var(--neon-green); text-shadow: 0 0 10px var(--neon-green); }
.stat-card.magenta .value { color: var(--neon-magenta); text-shadow: 0 0 10px var(--neon-magenta); }
.stat-card.purple .value { color: var(--neon-purple); text-shadow: 0 0 10px var(--neon-purple); }

/* Forms */
.form-group { margin-bottom: 1.25rem; }
.form-group label {
    display: block;
    font-family: var(--font-display);
    font-size: 0.7rem;
    letter-spacing: 0.1em;
    color: var(--neon-cyan);
    margin-bottom: 0.4rem;
}
.form-control {
    width: 100%;
    padding: 0.75rem 1rem;
    background: var(--void-2);
    border: 1px solid var(--border);
    color: var(--text);
    font-family: var(--font-body);
    font-size: 1rem;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
    clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 10px 100%, 0 calc(100% - 10px));
}
.form-control:focus {
    border-color: var(--neon-cyan);
    box-shadow: 0 0 0 2px #00f0ff33;
}
.form-control::placeholder { color: var(--text-dim); }

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

/* Alerts */
.alert {
    padding: 0.9rem 1.2rem;
    margin-bottom: 1.5rem;
    font-weight: 600;
    border-left: 4px solid;
    clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 50%, calc(100% - 12px) 100%, 0 100%);
}
.alert-success {
    background: #39ff1415;
    border-color: var(--neon-green);
    color: var(--neon-green);
}
.alert-error {
    background: #ff2a6d15;
    border-color: var(--neon-red);
    color: var(--neon-red);
}

/* Hero */
.hero {
    text-align: center;
    padding: 4rem 1rem 3rem;
    position: relative;
}
.hero h1 {
    margin-bottom: 1rem;
    background: linear-gradient(90deg, var(--neon-cyan), var(--neon-magenta), var(--neon-purple));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 0 20px #00f0ff44);
}
.hero p {
    font-size: 1.25rem;
    color: var(--text-dim);
    max-width: 560px;
    margin: 0 auto 2rem;
}
.hero-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Feature grid */
.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.5rem;
    margin: 3rem 0;
}
.feature {
    background: var(--panel);
    border: 1px solid var(--border);
    padding: 1.75rem 1.5rem;
    text-align: center;
    transition: border-color 0.25s, box-shadow 0.25s;
    clip-path: polygon(0 12px, 12px 0, 100% 0, 100% calc(100% - 12px), calc(100% - 12px) 100%, 0 100%);
}
.feature:hover {
    border-color: var(--neon-cyan);
    box-shadow: var(--shadow-neon);
}
.feature-icon {
    font-size: 2.2rem;
    margin-bottom: 0.75rem;
    filter: drop-shadow(0 0 8px var(--neon-cyan));
}
.feature h3 { margin-bottom: 0.5rem; }
.feature p { color: var(--text-dim); font-size: 0.95rem; }

/* Offer cards */
.offer-card {
    background: var(--panel);
    border: 1px solid var(--border);
    overflow: hidden;
    transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s;
    clip-path: polygon(0 0, 100% 0, 100% calc(100% - 16px), calc(100% - 16px) 100%, 0 100%);
}
.offer-card:hover {
    transform: translateY(-4px);
    border-color: var(--neon-magenta);
    box-shadow: var(--shadow-magenta);
}
.offer-card .offer-img {
    height: 120px;
    background: linear-gradient(135deg, #1a1a2e, #2a1a3e);
    display: grid;
    place-items: center;
    font-size: 2.5rem;
}
.offer-card .offer-body { padding: 1.1rem; }
.offer-card .offer-title {
    font-family: var(--font-display);
    font-size: 0.9rem;
    margin-bottom: 0.4rem;
    color: var(--text-bright);
}
.offer-card .offer-desc {
    font-size: 0.85rem;
    color: var(--text-dim);
    margin-bottom: 0.8rem;
}
.offer-card .offer-payout {
    font-family: var(--font-display);
    font-size: 1.1rem;
    color: var(--neon-green);
    text-shadow: 0 0 8px var(--neon-green);
}

/* Tables */
.cyber-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.95rem;
}
.cyber-table th {
    font-family: var(--font-display);
    font-size: 0.7rem;
    letter-spacing: 0.1em;
    text-align: left;
    padding: 0.75rem 1rem;
    color: var(--neon-cyan);
    border-bottom: 1px solid var(--border);
    background: var(--void-3);
}
.cyber-table td {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid #1a1a2a;
}
.cyber-table tr:hover td { background: #00f0ff08; }

/* Badge / status */
.badge {
    display: inline-block;
    padding: 0.2rem 0.55rem;
    font-family: var(--font-display);
    font-size: 0.65rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}
.badge-pending { background: #fcee0a22; color: var(--neon-yellow); border: 1px solid var(--neon-yellow); }
.badge-completed, .badge-active { background: #39ff1422; color: var(--neon-green); border: 1px solid var(--neon-green); }
.badge-rejected, .badge-banned { background: #ff2a6d22; color: var(--neon-red); border: 1px solid var(--neon-red); }
.badge-processing { background: #00f0ff22; color: var(--neon-cyan); border: 1px solid var(--neon-cyan); }

/* Footer */
.cyber-footer {
    border-top: 1px solid var(--border);
    background: var(--void-2);
    padding: 2rem 1.5rem;
    position: relative;
    z-index: 1;
}
.footer-inner {
    max-width: 1280px;
    margin: 0 auto;
    text-align: center;
}
.footer-brand {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-family: var(--font-display);
    font-weight: 700;
    margin-bottom: 1rem;
}
.footer-links {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 1rem;
}
.footer-links a { color: var(--text-dim); font-size: 0.9rem; }
.footer-links a:hover { color: var(--neon-cyan); }
.footer-copy { color: var(--text-dim); font-size: 0.8rem; }

/* Auth pages */
.auth-wrap {
    max-width: 420px;
    margin: 2rem auto;
}
.auth-panel {
    background: var(--panel);
    border: 1px solid var(--border);
    padding: 2rem;
    clip-path: polygon(0 0, calc(100% - 24px) 0, 100% 24px, 100% 100%, 24px 100%, 0 calc(100% - 24px));
}
.auth-panel h1 {
    text-align: center;
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
}

/* Page sections */
.page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    gap: 1rem;
}
.page-header h1 { margin: 0; }

.section {
    margin-bottom: 2.5rem;
}

/* Responsive */
@media (max-width: 900px) {
    .main-nav { display: none; }
    .main-nav.open {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0; right: 0;
        background: var(--void-2);
        border-bottom: 1px solid var(--neon-cyan);
        padding: 1rem;
        gap: 0.25rem;
    }
    .mobile-toggle { display: flex; }
    .balance-chip { display: flex; }
    .form-row { grid-template-columns: 1fr; }
}

/* Utility */
.text-center { text-align: center; }
.text-dim { color: var(--text-dim); }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mb-2 { margin-bottom: 1rem; }
.flex { display: flex; }
.gap-1 { gap: 0.5rem; }
.gap-2 { gap: 1rem; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.inline-form { display: inline; }
.w-full { width: 100%; }

/* Glitch effect for special headings */
.glitch {
    position: relative;
}
.glitch::before, .glitch::after {
    content: attr(data-text);
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
}
.glitch::before {
    color: var(--neon-cyan);
    animation: glitch-1 2s infinite linear alternate-reverse;
    clip-path: polygon(0 0, 100% 0, 100% 35%, 0 35%);
    transform: translate(-2px);
}
.glitch::after {
    color: var(--neon-magenta);
    animation: glitch-2 3s infinite linear alternate-reverse;
    clip-path: polygon(0 65%, 100% 65%, 100% 100%, 0 100%);
    transform: translate(2px);
}
@keyframes glitch-1 {
    0%, 100% { transform: translate(0); }
    20% { transform: translate(-3px, 1px); }
    40% { transform: translate(3px, -1px); }
}
@keyframes glitch-2 {
    0%, 100% { transform: translate(0); }
    20% { transform: translate(2px, -1px); }
    40% { transform: translate(-2px, 1px); }
}


/* Dropdowns must escape any parent overflow */
.balance-menu, .user-menu {
    position: relative;
    z-index: 600;
    overflow: visible;
}
.dropdown {
    overflow: visible;
}

/* ---- CashLazer UI refinements ---- */
.user-avatar.avatar-img,
img.user-avatar {
    width: 28px;
    height: 28px;
    object-fit: contain;
    display: block;
    border: 1px solid var(--neon-cyan);
    background: transparent;
    padding: 0;
    vertical-align: middle;
}
.user-avatar-lg {
    width: 48px;
    height: 48px;
}
.logo-img {
    display: block;
    object-fit: contain;
    background: transparent;
    vertical-align: middle;
}

/* Kill decorative lines on clean page headers / balance area */
.page-header-clean {
    border: none !important;
    border-bottom: none !important;
    box-shadow: none !important;
    background: transparent !important;
    padding-bottom: 0.5rem;
}
.page-header-clean::before,
.page-header-clean::after {
    content: none !important;
    display: none !important;
}

/* Stat cards: no extra top/bottom hairlines beyond card itself */
.stat-card::before,
.stat-card::after {
    display: none !important;
}

/* Settings frames */
.settings-frame {
    border: 1px solid var(--border);
    background: var(--panel);
    margin-bottom: 1.5rem;
}
.settings-frame .frame-title {
    font-family: var(--font-display);
    font-size: 0.8rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--neon-cyan);
    padding: 0.7rem 1.25rem;
    border-bottom: 1px solid var(--border);
    background: linear-gradient(90deg, rgba(0,240,255,0.08), transparent);
}
.settings-frame .frame-body { padding: 1.25rem; }

/* Dropdown must never be clipped */
.cyber-header,
.header-inner,
.header-actions,
.balance-menu,
.user-menu {
    overflow: visible !important;
}
.dropdown {
    z-index: 10000 !important;
    max-height: none !important;
}

/* ==========================================================================
   Game HUD layer
   ========================================================================== */
body.hud-mode {
    --hud-line: rgba(0, 240, 255, 0.55);
    --hud-line-dim: rgba(0, 240, 255, 0.18);
    --hud-warn: rgba(57, 255, 20, 0.65);
}

.hud-corner {
    pointer-events: none;
    position: fixed;
    width: 48px;
    height: 48px;
    z-index: 40;
    border-color: var(--hud-line);
    border-style: solid;
    opacity: 0.7;
}
.hud-corner-tl { top: 10px; left: 10px; border-width: 2px 0 0 2px; }
.hud-corner-tr { top: 10px; right: 10px; border-width: 2px 2px 0 0; }
.hud-corner-bl { bottom: 10px; left: 10px; border-width: 0 0 2px 2px; }
.hud-corner-br { bottom: 10px; right: 10px; border-width: 0 2px 2px 0; }

.hud-topbar {
    border-bottom: 1px solid var(--hud-line-dim) !important;
    box-shadow: 0 0 24px rgba(0, 240, 255, 0.08);
}
.hud-topbar .header-inner {
    position: relative;
}
.hud-topbar .header-inner::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: -1px;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--neon-cyan), var(--neon-magenta), transparent);
    opacity: 0.55;
}

.hud-stage {
    position: relative;
    animation: hudStageIn 0.45s ease-out both;
}
@keyframes hudStageIn {
    from { opacity: 0; transform: translateY(10px) scale(0.985); filter: brightness(1.2); }
    to   { opacity: 1; transform: none; filter: none; }
}

.hud-panel {
    position: relative;
    clip-path: polygon(
        0 12px, 12px 0, calc(100% - 12px) 0, 100% 12px,
        100% calc(100% - 12px), calc(100% - 12px) 100%, 12px 100%, 0 calc(100% - 12px)
    );
    border: 1px solid var(--hud-line-dim);
    box-shadow: inset 0 0 0 1px rgba(0,240,255,0.04), 0 0 30px rgba(0,0,0,0.35);
}
.hud-panel::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--neon-cyan), var(--neon-green), var(--neon-magenta));
    opacity: 0.85;
}

.stat-card {
    position: relative;
    border: 1px solid var(--hud-line-dim) !important;
    background: linear-gradient(180deg, rgba(18,18,30,0.95), rgba(10,10,18,0.95));
}
.stat-card .label {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}
.stat-card .label::before {
    content: '';
    width: 6px;
    height: 6px;
    background: var(--neon-cyan);
    box-shadow: 0 0 8px var(--neon-cyan);
    flex-shrink: 0;
}

.btn {
    position: relative;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}
.btn-neon {
    box-shadow: 0 0 12px rgba(0,240,255,0.25), inset 0 0 12px rgba(0,240,255,0.08);
}
.btn-neon:hover {
    box-shadow: 0 0 20px rgba(0,240,255,0.45), inset 0 0 16px rgba(0,240,255,0.12);
}

.nav-link {
    position: relative;
}
.nav-link.active::after,
.nav-link:hover::after {
    content: '';
    position: absolute;
    left: 12%;
    right: 12%;
    bottom: 2px;
    height: 2px;
    background: var(--neon-cyan);
    box-shadow: 0 0 8px var(--neon-cyan);
}

.balance-chip {
    font-variant-numeric: tabular-nums;
}
.balance-chip::before {
    content: '●';
    color: var(--neon-green);
    font-size: 0.55rem;
    margin-right: 0.4rem;
    text-shadow: 0 0 6px var(--neon-green);
    animation: hudPulse 1.6s ease-in-out infinite;
}
@keyframes hudPulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.35; }
}

.hud-meta {
    font-family: var(--font-display);
    font-size: 0.7rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

/* Page transition overlay (game-style) */
.page-transition {
    pointer-events: none;
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    background: radial-gradient(ellipse at center, rgba(10,10,20,0.2) 0%, rgba(5,5,10,0.92) 70%);
    opacity: 0;
    transition: opacity 0.28s ease;
}
.page-transition.active {
    pointer-events: all;
    opacity: 1;
}
.page-transition-bar {
    width: min(280px, 60vw);
    height: 3px;
    background: rgba(0,240,255,0.12);
    overflow: hidden;
    position: relative;
    border: 1px solid rgba(0,240,255,0.35);
}
.page-transition-bar::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, var(--neon-cyan), var(--neon-magenta), var(--neon-green));
    transform: translateX(-100%);
}
.page-transition.active .page-transition-bar::after {
    animation: hudLoadBar 0.55s ease-in-out infinite;
}
@keyframes hudLoadBar {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}
.page-transition-label {
    font-family: var(--font-display);
    font-size: 0.75rem;
    letter-spacing: 0.28em;
    color: var(--neon-cyan);
    text-shadow: 0 0 12px var(--neon-cyan);
}

/* Soften scanlines slightly for readability */
body.hud-mode .scanlines { opacity: 0.22; }

@media (max-width: 720px) {
    .hud-corner { width: 28px; height: 28px; }
    .page-transition-label { letter-spacing: 0.16em; }
}


/* panel HUD baseline */
.panel {
    border: 1px solid rgba(0, 240, 255, 0.18);
    box-shadow: 0 0 24px rgba(0, 0, 0, 0.35);
}

/* ==========================================================================
   Gamified Start Menu (guest landing) & Command Hub (logged-in)
   Lightweight CSS animations – no canvas / no heavy JS loops
   ========================================================================== */

body.start-body-mode {
    overflow: hidden;
    height: 100vh;
    height: 100dvh;
}
body.start-body-mode .scanlines { opacity: 0.28; z-index: 5; }

.start-screen {
    position: relative;
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 0.25rem 1rem 0.75rem;
    z-index: 1;
}

/* Ambient – pure CSS, GPU-friendly */
.start-ambient {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}
.start-grid {
    position: absolute;
    inset: -20%;
    background-image:
        linear-gradient(rgba(0, 240, 255, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 240, 255, 0.04) 1px, transparent 1px);
    background-size: 48px 48px;
    transform: perspective(600px) rotateX(58deg) translateY(-8%);
    transform-origin: center top;
    animation: startGridDrift 40s linear infinite;
    opacity: 0.7;
}
@keyframes startGridDrift {
    0% { background-position: 0 0; }
    100% { background-position: 0 48px; }
}
.start-glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.35;
}
.start-glow-a {
    width: min(70vw, 520px);
    height: min(70vw, 520px);
    top: -10%;
    left: -10%;
    background: radial-gradient(circle, var(--neon-cyan) 0%, transparent 70%);
    animation: glowPulse 8s ease-in-out infinite alternate;
}
.start-glow-b {
    width: min(60vw, 420px);
    height: min(60vw, 420px);
    bottom: -15%;
    right: -5%;
    background: radial-gradient(circle, var(--neon-magenta) 0%, transparent 70%);
    animation: glowPulse 11s ease-in-out infinite alternate-reverse;
}
@keyframes glowPulse {
    0% { opacity: 0.22; transform: scale(1); }
    100% { opacity: 0.4; transform: scale(1.08); }
}
.start-scan {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        180deg,
        transparent 0%,
        rgba(0, 240, 255, 0.03) 50%,
        transparent 100%
    );
    background-size: 100% 200%;
    animation: scanSweep 6s linear infinite;
    opacity: 0.6;
}
@keyframes scanSweep {
    0% { background-position: 0 -100%; }
    100% { background-position: 0 100%; }
}

/* Tint ambient by active menu item */
.start-screen[data-active="start"] .start-glow-a { background: radial-gradient(circle, var(--neon-cyan) 0%, transparent 70%); }
.start-screen[data-active="load"] .start-glow-a { background: radial-gradient(circle, var(--neon-green) 0%, transparent 70%); }
.start-screen[data-active="settings"] .start-glow-a { background: radial-gradient(circle, var(--neon-purple) 0%, transparent 70%); }
.start-screen[data-active="help"] .start-glow-a { background: radial-gradient(circle, var(--neon-yellow) 0%, transparent 70%); }
.start-screen[data-active="quit"] .start-glow-a { background: radial-gradient(circle, var(--neon-red) 0%, transparent 70%); }

.start-frame {
    position: relative;
    z-index: 2;
    width: min(1100px, 100%);
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    margin-top: 0;
    padding-top: 0;
}

.start-brand {
    text-align: center;
    margin: 0 0 0.35rem;
    padding: 0.15rem 0 0.25rem;
    flex-shrink: 0;
}
.start-logo {
    display: block;
    margin: 0 auto 0.15rem;
    width: 44px;
    height: 44px;
    filter: drop-shadow(0 0 12px var(--neon-cyan));
    animation: logoFloat 4s ease-in-out infinite;
}
@keyframes logoFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}
.start-title {
    font-size: clamp(1.55rem, 5vw, 2.4rem);
    letter-spacing: 0.12em;
    margin: 0;
    color: var(--text-bright);
    text-shadow: 0 0 20px var(--neon-cyan), 0 0 40px #00f0ff44;
}
.start-tagline {
    margin-top: 0.15rem;
    margin-bottom: 0;
    font-family: var(--font-display);
    font-size: 0.65rem;
    letter-spacing: 0.18em;
    color: var(--text-dim);
}

.start-body {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    align-items: flex-start !important;
    gap: 1.25rem !important;
    width: 100% !important;
}
.start-stage {
    grid-column: 2;
    grid-row: 1;
    min-width: 0;
    width: 100%;
    display: block;
    position: relative;
}
.start-stage .start-detail,
.start-stage .start-briefing {
    flex: 1 1 auto;
    min-height: 280px;
}
.start-menu {
    margin-left: -0.5rem;
    align-self: start;
}

@media (max-width: 720px) {
    .start-body {
        grid-template-columns: 1fr;
    }
}

/* Menu list – game style */
.start-menu {
    display: flex;
    flex-direction: column;
    gap: 0.28rem;
    padding: 0.15rem 0;
    margin-left: -0.25rem;
}
.menu-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: transparent;
    border: 1px solid transparent;
    color: var(--text-dim);
    font-family: var(--font-display);
    font-size: 1.02rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    padding: 0.72rem 0.9rem;
    cursor: pointer;
    text-align: left;
    transition: color 0.15s, border-color 0.15s, background 0.15s, box-shadow 0.15s, transform 0.15s;
    clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 12px, 100% 100%, 12px 100%, 0 calc(100% - 12px));
}
.menu-item .menu-marker {
    opacity: 0;
    color: var(--neon-cyan);
    transition: opacity 0.15s, transform 0.15s;
    transform: translateX(-4px);
}
.menu-item:hover,
.menu-item:focus-visible,
.menu-item.is-active {
    color: var(--text-bright);
    background: rgba(0, 240, 255, 0.06);
    border-color: rgba(0, 240, 255, 0.35);
    box-shadow: inset 0 0 20px rgba(0, 240, 255, 0.08), 0 0 16px rgba(0, 240, 255, 0.12);
    outline: none;
}
.menu-item.is-active .menu-marker,
.menu-item:hover .menu-marker,
.menu-item:focus-visible .menu-marker {
    opacity: 1;
    transform: translateX(0);
}
.menu-item.is-active {
    transform: translateX(4px);
}

/* Detail panel – changes with highlight; primary content stage */
.start-detail {
    position: relative;
    min-height: 280px;
    border: 1px solid rgba(0, 240, 255, 0.22);
    background: linear-gradient(145deg, rgba(18, 18, 30, 0.94), rgba(10, 10, 18, 0.97));
    padding: 1.35rem 1.5rem 1.5rem;
    box-shadow: 0 0 40px rgba(0, 0, 0, 0.4), inset 0 0 30px rgba(0, 240, 255, 0.03);
    clip-path: polygon(0 0, 100% 0, 100% calc(100% - 16px), calc(100% - 16px) 100%, 0 100%);
}
.detail-panel {
    animation: detailIn 0.28s ease-out;
}
@keyframes detailIn {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}
.detail-icon {
    font-size: 1.6rem;
    margin-bottom: 0.5rem;
    filter: drop-shadow(0 0 8px var(--neon-cyan));
}
.detail-title {
    font-size: 1.15rem;
    color: var(--neon-cyan);
    margin-bottom: 0.5rem;
}
.detail-text {
    color: var(--text);
    font-size: 1rem;
    line-height: 1.55;
    margin-bottom: 0.85rem;
}
.detail-list {
    list-style: none;
    margin: 0 0 1rem;
    padding: 0;
}
.detail-list li {
    position: relative;
    padding-left: 1.1rem;
    margin-bottom: 0.35rem;
    color: var(--text-dim);
    font-size: 0.95rem;
}
.detail-list li::before {
    content: '▸';
    position: absolute;
    left: 0;
    color: var(--neon-magenta);
}
.detail-cta {
    display: inline-block;
    font-family: var(--font-display);
    font-size: 0.7rem;
    letter-spacing: 0.14em;
    color: var(--neon-green);
    text-transform: uppercase;
}

.start-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
    font-family: var(--font-display);
    font-size: 0.65rem;
    letter-spacing: 0.16em;
    color: var(--text-dim);
}
.start-version { color: var(--neon-cyan); opacity: 0.7; }

/* Settings / about slide-up — hidden by default; .is-visible shows it */
.start-info-panel {
    position: fixed;
    inset: 0;
    z-index: 40;
    background: rgba(5, 5, 10, 0.82);
    display: none;
    align-items: flex-end;
    justify-content: center;
    padding: 1rem;
    backdrop-filter: blur(6px);
}
.start-info-panel.is-visible,
.start-info-panel.open.is-visible {
    display: flex;
    animation: fadeIn 0.25s ease;
}
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}
.start-info-inner {
    width: min(720px, 100%);
    max-height: 85vh;
    overflow-y: auto;
    background: var(--panel);
    border: 1px solid rgba(0, 240, 255, 0.25);
    padding: 1.75rem 1.5rem 1.5rem;
    position: relative;
    box-shadow: 0 -8px 40px rgba(0, 0, 0, 0.5);
    animation: slideUp 0.3s ease;
}
@keyframes slideUp {
    from { transform: translateY(24px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}
.start-info-close {
    position: absolute;
    top: 0.75rem;
    right: 0.9rem;
    background: none;
    border: none;
    color: var(--text-dim);
    font-size: 1.6rem;
    cursor: pointer;
    line-height: 1;
    z-index: 2;
}
.start-info-close:hover { color: var(--neon-cyan); }
.start-info-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin-top: 1.5rem;
}

/* Quit overlay — MUST be display:none by default.
   Previous bug: display:flex always, so "Stay connected" appeared stuck. */
.quit-overlay {
    position: fixed;
    inset: 0;
    z-index: 50;
    background: rgba(5, 5, 10, 0.92);
    display: none;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(4px);
    pointer-events: none;
}
.quit-overlay.is-visible,
.quit-overlay.active.is-visible {
    display: flex;
    pointer-events: auto;
    animation: fadeIn 0.3s ease;
}
.quit-box {
    text-align: center;
    padding: 2rem;
    max-width: 90vw;
}
.quit-line {
    font-family: var(--font-display);
    font-size: 1.4rem;
    letter-spacing: 0.2em;
    color: var(--neon-red);
    text-shadow: 0 0 16px var(--neon-red);
    margin-bottom: 0.5rem;
}
.quit-sub {
    color: var(--text-dim);
    margin-bottom: 1.5rem;
}
.quit-box .btn {
    min-width: 160px;
    cursor: pointer;
    pointer-events: auto;
    position: relative;
    z-index: 2;
}

/* Prefer reduced motion */
@media (prefers-reduced-motion: reduce) {
    .start-grid,
    .start-glow,
    .start-scan,
    .start-logo,
    .detail-panel,
    .start-info-inner {
        animation: none !important;
    }
}

/* ==========================================================================
   Logged-in Command Hub / Level Select
   ========================================================================== */

.hub-screen {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0.5rem 0 2rem;
}
.hub-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1.5rem;
}
.hub-player {
    display: flex;
    align-items: center;
    gap: 0.85rem;
}
.hub-player-meta {
    display: flex;
    flex-direction: column;
}
.hub-username {
    font-family: var(--font-display);
    font-size: 1.1rem;
    letter-spacing: 0.06em;
    color: var(--text-bright);
}
.hub-level {
    font-size: 0.85rem;
    color: var(--text-dim);
}
.hub-balance {
    text-align: right;
}
.hub-balance-label {
    display: block;
    font-family: var(--font-display);
    font-size: 0.65rem;
    letter-spacing: 0.18em;
    color: var(--text-dim);
}
.hub-balance-value {
    font-family: var(--font-display);
    font-size: 1.35rem;
    color: var(--neon-green);
    text-shadow: 0 0 12px rgba(57, 255, 20, 0.4);
}

.hub-title-block {
    text-align: center;
    margin-bottom: 1.75rem;
}
.hub-kicker {
    font-family: var(--font-display);
    font-size: 0.7rem;
    letter-spacing: 0.24em;
    color: var(--neon-cyan);
    margin-bottom: 0.35rem;
}
.hub-title {
    font-size: clamp(1.5rem, 4vw, 2.2rem);
    margin-bottom: 0.75rem;
}
.hub-xp {
    max-width: 280px;
    margin: 0 auto;
}
.hub-xp-label {
    font-size: 0.8rem;
    margin-top: 0.35rem;
}

.hub-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1rem;
}
.hub-card {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    padding: 1.25rem 1.1rem 1.1rem;
    background: linear-gradient(160deg, var(--panel) 0%, var(--void-3) 100%);
    border: 1px solid var(--border);
    color: inherit;
    text-decoration: none;
    transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s, background 0.2s;
    clip-path: polygon(0 0, 100% 0, 100% calc(100% - 14px), calc(100% - 14px) 100%, 0 100%);
    min-height: 140px;
}
.hub-card:hover,
.hub-card:focus-visible {
    border-color: rgba(0, 240, 255, 0.55);
    box-shadow: 0 0 24px rgba(0, 240, 255, 0.15), inset 0 0 20px rgba(0, 240, 255, 0.04);
    transform: translateY(-3px);
    outline: none;
    color: inherit;
}
.hub-card-icon {
    font-size: 1.4rem;
    color: var(--neon-cyan);
    margin-bottom: 0.15rem;
}
.hub-card-title {
    font-family: var(--font-display);
    font-size: 1rem;
    letter-spacing: 0.08em;
    color: var(--text-bright);
}
.hub-card-desc {
    font-size: 0.88rem;
    color: var(--text-dim);
    line-height: 1.4;
    flex: 1;
}
.hub-card-tag {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    font-family: var(--font-display);
    font-size: 0.58rem;
    letter-spacing: 0.12em;
    color: var(--neon-magenta);
    border: 1px solid rgba(255, 0, 170, 0.35);
    padding: 0.15rem 0.4rem;
}
.hub-card-accent {
    border-color: rgba(57, 255, 20, 0.25);
}
.hub-card-accent:hover,
.hub-card-accent:focus-visible {
    border-color: rgba(57, 255, 20, 0.55);
    box-shadow: 0 0 24px rgba(57, 255, 20, 0.12);
}
.hub-card-accent .hub-card-icon { color: var(--neon-green); }
.hub-card-admin {
    border-color: rgba(180, 0, 255, 0.3);
}
.hub-card-admin:hover {
    border-color: rgba(180, 0, 255, 0.55);
}
.hub-hint {
    text-align: center;
    margin-top: 1.75rem;
    font-size: 0.8rem;
}

@media (max-width: 480px) {
    .hub-grid {
        grid-template-columns: 1fr 1fr;
        gap: 0.65rem;
    }
    .hub-card {
        min-height: 120px;
        padding: 1rem 0.85rem;
    }
    .hub-card-desc { font-size: 0.78rem; }
}

/* Auth screens – game framing */
.auth-wrap-game { max-width: 440px; }
.auth-panel-game {
    border-color: rgba(0, 240, 255, 0.28);
    box-shadow: 0 0 32px rgba(0, 240, 255, 0.06), inset 0 0 40px rgba(0, 0, 0, 0.25);
}
.auth-kicker {
    font-family: var(--font-display);
    font-size: 0.65rem;
    letter-spacing: 0.22em;
    color: var(--neon-cyan);
    text-align: center;
    margin-bottom: 0.35rem;
}
.auth-lead {
    text-align: center;
    font-size: 0.95rem;
    margin-bottom: 1.35rem;
    line-height: 1.45;
}
.auth-footer-links a { margin: 0 0.15rem; }

/* Empty sector (missions / surveys / games) */
.empty-sector {
    text-align: center;
    padding: 2.5rem 1.25rem;
    border: 1px dashed rgba(0, 240, 255, 0.25);
    background: rgba(18, 18, 30, 0.6);
    clip-path: polygon(0 0, 100% 0, 100% calc(100% - 16px), calc(100% - 16px) 100%, 0 100%);
}
.empty-sector-icon {
    font-size: 2rem;
    color: var(--neon-cyan);
    margin-bottom: 0.75rem;
    filter: drop-shadow(0 0 10px var(--neon-cyan));
}
.empty-sector h2 {
    color: var(--text-bright);
    margin-bottom: 0.5rem;
}
.empty-sector p {
    max-width: 420px;
    margin: 0 auto 1.25rem;
}

/* Start menu mobile polish */
@media (max-width: 720px) {
    .start-screen { padding: 1rem 0.85rem 1.5rem; }
    .menu-item {
        padding: 1rem 0.9rem;
        font-size: 1rem;
        min-height: 48px;
    }
    .start-detail {
        min-height: 0;
        padding: 1.15rem 1.1rem;
    }
    .start-footer .start-keys { display: none; }
}

/* Sector page headers */
.sector-kicker {
    font-family: var(--font-display);
    font-size: 0.65rem;
    letter-spacing: 0.2em;
    color: var(--neon-cyan);
    margin: 0 0 0.25rem;
}
.sector-page-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 0.75rem;
}
.hub-grid-compact {
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
}
.hub-grid-compact .hub-card { min-height: 120px; }

/* Fixed sector dock (logged-in) — level-select style bottom bar */
.sector-dock {
    position: fixed;
    left: 50%;
    bottom: 0.75rem;
    transform: translateX(-50%);
    z-index: 450;
    display: flex;
    gap: 0.25rem;
    padding: 0.4rem 0.5rem;
    background: rgba(10, 10, 18, 0.92);
    border: 1px solid rgba(0, 240, 255, 0.28);
    box-shadow: 0 0 28px rgba(0, 0, 0, 0.55), 0 0 16px rgba(0, 240, 255, 0.08);
    backdrop-filter: blur(12px);
    max-width: calc(100vw - 1rem);
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    clip-path: polygon(8px 0, 100% 0, calc(100% - 8px) 100%, 0 100%);
}
.sector-dock-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.15rem;
    min-width: 64px;
    padding: 0.45rem 0.55rem;
    color: var(--text-dim);
    text-decoration: none;
    font-family: var(--font-display);
    font-size: 0.58rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    border: 1px solid transparent;
    transition: color 0.15s, border-color 0.15s, background 0.15s, box-shadow 0.15s;
}
.sector-dock-item:hover,
.sector-dock-item:focus-visible {
    color: var(--text-bright);
    border-color: rgba(0, 240, 255, 0.35);
    background: rgba(0, 240, 255, 0.06);
    outline: none;
}
.sector-dock-item.is-active {
    color: var(--neon-cyan);
    border-color: rgba(0, 240, 255, 0.5);
    box-shadow: inset 0 0 12px rgba(0, 240, 255, 0.1);
}
.sector-dock-accent.is-active,
.sector-dock-accent:hover {
    color: var(--neon-green);
    border-color: rgba(57, 255, 20, 0.45);
}
.sdi-icon {
    font-size: 1rem;
    line-height: 1;
}
.sdi-label { white-space: nowrap; }

.cyber-main.has-sector-dock {
    padding-bottom: 5.5rem;
}
.cyber-footer.has-sector-dock {
    padding-bottom: 4.5rem;
}

.auth-panel-ops {
    border-color: rgba(255, 42, 109, 0.35);
}

@media (max-width: 720px) {
    .sector-dock {
        bottom: 0;
        left: 0;
        right: 0;
        transform: none;
        width: 100%;
        max-width: none;
        border-radius: 0;
        clip-path: none;
        border-left: none;
        border-right: none;
        border-bottom: none;
        justify-content: space-around;
        gap: 0;
        padding: 0.35rem 0.15rem calc(0.35rem + env(safe-area-inset-bottom, 0));
    }
    .sector-dock-item {
        min-width: 0;
        flex: 1;
        padding: 0.4rem 0.2rem;
        font-size: 0.52rem;
    }
    .hub-grid {
        grid-template-columns: 1fr 1fr;
    }
    .auth-wrap {
        margin: 1rem auto;
        padding: 0 0.5rem;
    }
    .cyber-main.has-sector-dock {
        padding-bottom: 4.75rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .sector-dock-item { transition: none; }
}

/* ==========================================================================
   v7 – Unified game UI (match start menu), top sector nav, highlight fix
   ========================================================================== */

/* Start menu: ONLY .is-active highlights (no :hover dual state) */
.menu-item:hover,
.menu-item:focus-visible {
    color: inherit;
    background: transparent;
    border-color: transparent;
    box-shadow: none;
    outline: none;
}
.menu-item:hover .menu-marker,
.menu-item:focus-visible .menu-marker {
    opacity: 0;
    transform: translateX(-4px);
}
.menu-item.is-active,
.menu-item.is-active:hover,
.menu-item.is-active:focus-visible {
    color: var(--text-bright);
    background: rgba(0, 240, 255, 0.08);
    border-color: transparent;
    box-shadow: none;
    outline: none;
    transform: none;
}
.menu-item.is-active .menu-marker {
    opacity: 1;
    transform: translateX(0);
}

/* Clean selection style: left bar + full border (no broken clip corners) */
.menu-item {
    clip-path: none !important;
    border-radius: 2px;
    border: 1px solid transparent;
    position: relative;
    padding-left: 1.15rem;
}
.menu-item.is-active {
    border: 1px solid rgba(0, 240, 255, 0.45);
    box-shadow: 0 0 18px rgba(0, 240, 255, 0.12), inset 0 0 20px rgba(0, 240, 255, 0.05);
}
.menu-item.is-active::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: var(--neon-cyan);
    box-shadow: 0 0 10px var(--neon-cyan);
}

.start-detail {
    clip-path: none !important;
    border-radius: 2px;
    border: 1px solid rgba(0, 240, 255, 0.28);
}

/* Hide legacy bottom dock completely */
.sector-dock { display: none !important; }
.cyber-main.has-sector-dock { padding-bottom: 0 !important; }
.cyber-footer.has-sector-dock { padding-bottom: 0 !important; }

/* Top game bar */
.game-topbar {
    position: sticky;
    top: 0;
    z-index: 500;
    background: linear-gradient(180deg, #0a0a12f2 0%, #0a0a12cc 100%);
    border-bottom: 1px solid rgba(0, 240, 255, 0.22);
    backdrop-filter: blur(14px);
}
.game-topbar-inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0.65rem 1rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}
.game-topbar-actions {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

/* Large sector tabs (top) */
.sector-top {
    display: flex;
    align-items: stretch;
    gap: 0.35rem;
    flex: 1;
    justify-content: center;
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}
.sector-top::-webkit-scrollbar { display: none; }
.sector-top-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.2rem;
    min-width: 76px;
    padding: 0.55rem 0.75rem;
    color: var(--text-dim);
    text-decoration: none;
    font-family: var(--font-display);
    font-size: 0.68rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    border: 1px solid transparent;
    border-radius: 2px;
    transition: color 0.15s, border-color 0.15s, background 0.15s, box-shadow 0.15s;
}
.sector-top-item:hover {
    color: var(--text-bright);
    border-color: rgba(0, 240, 255, 0.25);
    background: rgba(0, 240, 255, 0.05);
}
.sector-top-item.is-active {
    color: var(--neon-cyan);
    border-color: rgba(0, 240, 255, 0.5);
    background: rgba(0, 240, 255, 0.1);
    box-shadow: 0 0 16px rgba(0, 240, 255, 0.12);
}
.sector-top-vault.is-active,
.sector-top-vault:hover {
    color: var(--neon-green);
    border-color: rgba(57, 255, 20, 0.4);
}
.sti-icon { font-size: 1.15rem; line-height: 1; }
.sti-label { white-space: nowrap; }

.sector-top-mobile {
    display: none;
    flex-direction: column;
    padding: 0.5rem 1rem 0.85rem;
    border-top: 1px solid rgba(0, 240, 255, 0.12);
    gap: 0.25rem;
}
.sector-top-mobile.open { display: flex; }
.sector-top-mobile .sector-top-item {
    flex-direction: row;
    justify-content: flex-start;
    gap: 0.75rem;
    min-width: 0;
    padding: 0.85rem 1rem;
    font-size: 0.85rem;
}

.credits-chip {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.45rem 0.85rem;
    border: 1px solid rgba(57, 255, 20, 0.4);
    border-radius: 2px;
    text-decoration: none;
    background: rgba(57, 255, 20, 0.06);
}
.credits-label {
    font-family: var(--font-display);
    font-size: 0.6rem;
    letter-spacing: 0.12em;
    color: var(--neon-green);
}
.credits-value {
    font-family: var(--font-display);
    font-size: 0.95rem;
    color: var(--neon-green);
    text-shadow: 0 0 10px rgba(57, 255, 20, 0.35);
}

/* Stage + frame (all inner pages) */
.game-stage {
    max-width: 1100px;
    margin: 0 auto;
    padding: 1.25rem 1rem 2.5rem;
    min-height: 60vh;
    position: relative;
    z-index: 1;
}
.game-panel-frame > .page-header,
.game-panel-frame > .sector-page-header {
    margin-bottom: 1.25rem;
}

/* Unify cards / panels to start-menu language */
.mode-operator .panel,
.mode-operator .auth-panel,
.mode-operator .offer-card,
.mode-operator .stat-card,
.mode-guest .auth-panel {
    clip-path: none !important;
    border-radius: 2px;
    border: 1px solid rgba(0, 240, 255, 0.22);
    background: linear-gradient(145deg, rgba(18, 18, 30, 0.95), rgba(10, 10, 18, 0.98));
    box-shadow: 0 0 28px rgba(0, 0, 0, 0.35), inset 0 0 24px rgba(0, 240, 255, 0.03);
}
.mode-operator .hub-card {
    clip-path: none !important;
    border-radius: 2px;
}
.mode-operator .offer-card {
    display: flex;
    gap: 1rem;
    padding: 1.1rem 1.15rem;
    transition: border-color 0.15s, box-shadow 0.15s;
}
.mode-operator .offer-card:hover {
    border-color: rgba(0, 240, 255, 0.45);
    box-shadow: 0 0 20px rgba(0, 240, 255, 0.1);
}

.game-footer {
    border-top: 1px solid rgba(0, 240, 255, 0.12);
    padding: 1.25rem 1rem;
    margin-top: 1rem;
}
.game-footer .footer-inner {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem 1.5rem;
    align-items: center;
    justify-content: space-between;
    font-size: 0.85rem;
    color: var(--text-dim);
}
.game-footer a { color: var(--text-dim); }
.game-footer a:hover { color: var(--neon-cyan); }
.footer-brand {
    font-family: var(--font-display);
    letter-spacing: 0.12em;
    color: var(--text-bright);
}

/* Hide old cyber-header if any leftover */
body.hud-mode > .cyber-header { display: none; }

@media (max-width: 960px) {
    .sector-top { display: none; }
    .sector-top-mobile.open { display: flex; }
    .game-topbar-inner { flex-wrap: wrap; }
}

@media (max-width: 520px) {
    .user-name { display: none; }
    .logo-text { font-size: 0.85rem; }
    .sector-top-item { min-width: 64px; padding: 0.45rem 0.5rem; }
}

/* ==========================================================================
   v8 – Game menu UI: in-place briefing, level-select nav, status bar
   ========================================================================== */

/* —— Transition gate —— */
.page-transition {
    z-index: 9999;
    background: radial-gradient(ellipse at center, rgba(8, 12, 24, 0.92) 0%, #030308 70%);
}
.page-transition.active {
    opacity: 1;
    pointer-events: all;
}
.page-transition-label {
    font-family: var(--font-display);
    letter-spacing: 0.28em;
    font-size: 0.95rem;
    color: var(--neon-cyan);
    text-shadow: 0 0 18px rgba(0, 240, 255, 0.55);
}
.page-transition-bar {
    height: 3px;
    background: rgba(0, 240, 255, 0.12);
    overflow: hidden;
}
.page-transition-bar::after {
    content: '';
    display: block;
    height: 100%;
    width: 40%;
    background: linear-gradient(90deg, transparent, var(--neon-cyan), transparent);
    animation: cl-load-sweep 0.9s ease-in-out infinite;
}
@keyframes cl-load-sweep {
    0% { transform: translateX(-120%); }
    100% { transform: translateX(320%); }
}
body.is-transitioning .game-stage,
body.is-transitioning .start-screen {
    filter: brightness(0.55) saturate(0.8);
    transition: filter 0.25s ease;
}
body.stage-enter .game-stage,
body.stage-enter .start-screen {
    animation: stage-in 0.45s ease-out both;
}
@keyframes stage-in {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* —— Start briefing (Settings / Help) loads into content stage —— */
.start-briefing {
    position: relative;
    z-index: 2;
    width: 100%;
    margin: 0;
    padding: 1rem 1.15rem 1.25rem;
    border: 1px solid rgba(0, 240, 255, 0.22);
    background: linear-gradient(145deg, rgba(18, 18, 30, 0.94), rgba(10, 10, 18, 0.97));
    box-shadow: 0 0 40px rgba(0, 0, 0, 0.35), inset 0 0 30px rgba(0, 240, 255, 0.03);
    clip-path: polygon(0 0, 100% 0, 100% calc(100% - 16px), calc(100% - 16px) 100%, 0 100%);
    animation: detailIn 0.28s ease-out both;
    min-height: 280px;
}
.start-screen.is-briefing .start-frame {
    max-width: 1100px;
}
.start-frame.briefing-mode .start-brand {
    transform: scale(0.92);
    margin-bottom: 0.25rem;
    transition: transform 0.3s ease;
}
.start-body .start-briefing {
    /* was grid-column:2 — nested, must not re-place */
}
@media (max-width: 720px) {
    .start-body .start-briefing {
        grid-column: 1;
    }
}
.briefing-toolbar {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.25rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid rgba(0, 240, 255, 0.18);
}
.briefing-title {
    font-family: var(--font-display);
    font-size: 1.1rem;
    letter-spacing: 0.2em;
    color: var(--text-bright);
    margin: 0;
    flex: 1;
    text-align: center;
}
.briefing-back {
    font-family: var(--font-display);
    letter-spacing: 0.12em;
    font-size: 0.8rem;
    min-width: 5.5rem;
}
.briefing-spacer { min-width: 5.5rem; }
.briefing-lead {
    color: var(--text-dim);
    font-size: 1.05rem;
    line-height: 1.55;
    margin: 0 0 1.5rem;
    max-width: 40rem;
}
.briefing-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
}
.briefing-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
}
.briefing-link-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 0.85rem;
}
.briefing-link-card {
    text-align: left;
    cursor: pointer;
    background: rgba(8, 14, 28, 0.75);
    border: 1px solid rgba(0, 240, 255, 0.2);
    width: 100%;
    font: inherit;
    color: inherit;
}
.briefing-link-card:hover,
.briefing-link-card:focus-visible {
    border-color: rgba(0, 240, 255, 0.55);
    box-shadow: 0 0 24px rgba(0, 240, 255, 0.12);
    outline: none;
}

/* Hide old modal styles if residual */
.start-info-panel { display: none !important; }

/* —— Auth screens inside start shell —— */
.auth-start-screen {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.start-brand-compact {
    text-align: center;
    margin-bottom: 0.5rem;
}
.start-brand-compact .start-logo {
    width: 48px;
    height: 48px;
}
.start-logo-link {
    display: inline-block;
    transition: transform 0.2s ease, filter 0.2s ease;
}
.start-logo-link:hover {
    transform: scale(1.06);
    filter: drop-shadow(0 0 12px rgba(0, 240, 255, 0.5));
}
.auth-wrap-game {
    width: 100%;
    max-width: 440px;
    margin: 0 auto 2rem;
    padding: 0 1rem;
}
.auth-panel-game {
    background: rgba(6, 10, 20, 0.82);
    border: 1px solid rgba(0, 240, 255, 0.22);
    border-radius: 4px;
    padding: 1.5rem 1.35rem 1.35rem;
    box-shadow: 0 0 40px rgba(0, 240, 255, 0.06), inset 0 1px 0 rgba(255,255,255,0.04);
}
.auth-kicker {
    font-family: var(--font-display);
    font-size: 0.7rem;
    letter-spacing: 0.28em;
    color: var(--neon-cyan);
    margin-bottom: 0.4rem;
}
.auth-panel-game h1 {
    font-family: var(--font-display);
    font-size: 1.45rem;
    letter-spacing: 0.08em;
    margin: 0 0 0.4rem;
}
.auth-lead { margin: 0 0 1.15rem; font-size: 0.95rem; }

/* —— Level-select style sector nav —— */
.sector-top {
    display: flex;
    align-items: stretch;
    gap: 0.2rem;
    flex: 1;
    justify-content: center;
    padding: 0 0.5rem;
}
.sector-top-item {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.15rem;
    min-width: 72px;
    padding: 0.5rem 0.65rem 0.55rem;
    font-family: var(--font-display);
    font-size: 0.68rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--text-dim);
    text-decoration: none;
    border: 1px solid transparent;
    border-radius: 3px;
    transition: color 0.15s, border-color 0.15s, background 0.15s, box-shadow 0.15s, transform 0.15s;
}
.sector-top-item .sti-icon {
    font-size: 0.95rem;
    line-height: 1;
    opacity: 0.75;
}
.sector-top-item:hover,
.sector-top-item:focus-visible {
    color: var(--text-bright);
    border-color: rgba(0, 240, 255, 0.28);
    background: rgba(0, 240, 255, 0.06);
    outline: none;
}
.sector-top-item.is-active {
    color: var(--neon-cyan);
    border-color: rgba(0, 240, 255, 0.45);
    background: rgba(0, 240, 255, 0.1);
    box-shadow: 0 0 18px rgba(0, 240, 255, 0.12), inset 0 -2px 0 var(--neon-cyan);
}
.sector-top-item.is-active .sti-icon {
    opacity: 1;
    text-shadow: 0 0 10px rgba(0, 240, 255, 0.6);
}

/* Mobile sector strip as horizontal level select */
.sector-top-mobile {
    display: none;
    flex-wrap: nowrap;
    overflow-x: auto;
    gap: 0.35rem;
    padding: 0.45rem 0.75rem 0.65rem;
    border-top: 1px solid rgba(0, 240, 255, 0.1);
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
}
.sector-top-mobile.open {
    display: flex;
}
.sector-top-mobile .sector-top-item {
    flex: 0 0 auto;
    min-width: 4.5rem;
}

/* —— Status bar (replaces website footer) —— */
.game-status-bar {
    border-top: 1px solid rgba(0, 240, 255, 0.12);
    padding: 0.55rem 1rem;
    margin-top: auto;
    background: rgba(3, 5, 12, 0.9);
}
.status-bar-inner {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 0.85rem;
    align-items: center;
    font-size: 0.75rem;
    color: var(--text-dim);
    font-family: var(--font-display);
    letter-spacing: 0.08em;
}
.status-brand {
    color: var(--text-bright);
    letter-spacing: 0.16em;
}
.status-sep { opacity: 0.35; }
.status-links {
    display: flex;
    gap: 0.85rem;
    flex: 1;
}
.status-links a {
    color: var(--text-dim);
    text-decoration: none;
}
.status-links a:hover { color: var(--neon-cyan); }
.status-online {
    color: var(--neon-green);
    font-size: 0.7rem;
    letter-spacing: 0.14em;
}
.status-online::before {
    content: '';
    display: inline-block;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--neon-green);
    margin-right: 0.4rem;
    box-shadow: 0 0 8px var(--neon-green);
    vertical-align: middle;
}

/* —— Hub / logged-in stage polish —— */
.game-stage {
    min-height: calc(100vh - 120px);
    padding-bottom: 1.5rem;
}
.game-panel-frame {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 1rem;
}
.hub-screen {
    animation: stage-in 0.4s ease-out both;
}
.sector-header {
    display: flex;
    align-items: baseline;
    gap: 0.75rem;
    margin: 0.5rem 0 1.25rem;
    padding-bottom: 0.65rem;
    border-bottom: 1px solid rgba(0, 240, 255, 0.15);
}
.sector-header h1 {
    font-family: var(--font-display);
    font-size: 1.35rem;
    letter-spacing: 0.16em;
    margin: 0;
    color: var(--text-bright);
}
.sector-header .sector-sub {
    font-size: 0.85rem;
    color: var(--text-dim);
}

/* Credits chip as game currency */
.credits-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.35rem 0.7rem;
    border: 1px solid rgba(0, 255, 170, 0.35);
    border-radius: 3px;
    background: rgba(0, 40, 30, 0.45);
    color: var(--neon-green);
    font-family: var(--font-display);
    font-size: 0.8rem;
    letter-spacing: 0.06em;
    text-decoration: none;
    transition: box-shadow 0.15s, border-color 0.15s;
}
.credits-chip:hover {
    border-color: rgba(0, 255, 170, 0.65);
    box-shadow: 0 0 16px rgba(0, 255, 170, 0.18);
}
.credits-label {
    opacity: 0.7;
    font-size: 0.65rem;
}

/* Reduce “website” feel on logged-in body */
body.cyber-body:not(.start-body-mode) {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}
body.cyber-body:not(.start-body-mode) > .game-topbar,
body.cyber-body:not(.start-body-mode) > header {
    flex-shrink: 0;
}
body.cyber-body:not(.start-body-mode) > .game-stage {
    flex: 1;
}

@media (max-width: 960px) {
    .sector-top { display: none; }
    .briefing-spacer { display: none; }
    .briefing-title { text-align: left; }
}

/* ==========================================================================
   v9 – Soft nav, systems tabs, hub level-select focus
   ========================================================================== */

.game-panel-frame.soft-nav-out {
    opacity: 0;
    transform: translateY(8px) scale(0.99);
    transition: opacity 0.18s ease, transform 0.18s ease;
}
.game-panel-frame.soft-nav-in {
    animation: stage-in 0.32s ease-out both;
}

/* Hub level-select focus ring */
.hub-card {
    outline: none;
    transition: border-color 0.15s, box-shadow 0.15s, transform 0.15s, background 0.15s;
}
.hub-card.is-focused,
.hub-card:focus-visible {
    border-color: rgba(0, 240, 255, 0.65) !important;
    box-shadow: 0 0 28px rgba(0, 240, 255, 0.2), inset 0 0 0 1px rgba(0, 240, 255, 0.25);
    transform: translateY(-2px);
    z-index: 1;
}
.hub-hint {
    margin-top: 1rem;
    text-align: center;
    font-size: 0.8rem;
}

/* Systems tabs already inlined on settings; reinforce globally */
.systems-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 0;
    margin: 0 0 1.35rem;
    padding: 0;
    background: transparent;
    border: none;
    border-bottom: 2px solid rgba(0, 240, 255, 0.2);
    border-radius: 0;
}
.systems-tab {
    font-family: var(--font-display);
    font-size: 0.75rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    padding: 0.7rem 1.15rem 0.65rem;
    border: 1px solid transparent;
    border-bottom: none;
    background: transparent;
    color: var(--text-dim);
    cursor: pointer;
    border-radius: 4px 4px 0 0;
    margin-bottom: -2px;
    position: relative;
    transition: color 0.15s, background 0.15s, border-color 0.15s;
}
.systems-tab:hover {
    color: var(--text-bright);
    background: rgba(0, 240, 255, 0.05);
}
.systems-tab.is-active {
    color: var(--neon-cyan);
    border-color: rgba(0, 240, 255, 0.35);
    border-bottom-color: var(--void);
    background: linear-gradient(180deg, rgba(0, 240, 255, 0.12), rgba(0, 240, 255, 0.04));
    box-shadow: none;
}
.systems-tab.is-active::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: -2px;
    height: 2px;
    background: var(--void);
}
.systems-tab-danger.is-active {
    color: var(--neon-red);
    border-color: rgba(255, 42, 109, 0.4);
    background: linear-gradient(180deg, rgba(255, 42, 109, 0.12), rgba(255, 42, 109, 0.04));
}

/* Denser sector pages */
.sector-page-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.25rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid rgba(0, 240, 255, 0.12);
}
.sector-kicker {
    font-family: var(--font-display);
    font-size: 0.68rem;
    letter-spacing: 0.22em;
    color: var(--neon-cyan);
    margin: 0 0 0.25rem;
}
.sector-page-header h1 {
    font-family: var(--font-display);
    font-size: 1.4rem;
    letter-spacing: 0.1em;
    margin: 0;
}

/* Offer / mission cards slightly denser */
.offer-card {
    border: 1px solid rgba(0, 240, 255, 0.18);
    background: rgba(6, 10, 20, 0.75);
    transition: border-color 0.15s, box-shadow 0.15s;
}
.offer-card:hover {
    border-color: rgba(0, 240, 255, 0.45);
    box-shadow: 0 0 20px rgba(0, 240, 255, 0.1);
}

/* ==========================================================================
   Hub sector select – vertical game menu (logged-in)
   Selected item larger; prefers 2nd visual slot
   ========================================================================== */

.hub-select-mode .hub-title-compact {
    margin-bottom: 1rem;
}
.hub-select-mode .hub-title {
    font-size: clamp(1.35rem, 3.5vw, 1.85rem);
}
.hub-body {
    display: grid;
    grid-template-columns: minmax(200px, 280px) 1fr;
    gap: 1.25rem 1.75rem;
    align-items: start;
    max-width: 960px;
    margin: 0 auto;
}
@media (max-width: 720px) {
    .hub-body {
        grid-template-columns: 1fr;
    }
}

.hub-select-wrap {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0.35rem;
}
.hub-nav-btn {
    font-family: var(--font-display);
    font-size: 0.85rem;
    letter-spacing: 0.1em;
    color: var(--neon-cyan);
    background: rgba(0, 240, 255, 0.06);
    border: 1px solid rgba(0, 240, 255, 0.25);
    padding: 0.45rem 0.5rem;
    cursor: pointer;
    transition: background 0.15s, border-color 0.15s, color 0.15s;
    clip-path: polygon(0 0, calc(100% - 8px) 0, 100% 8px, 100% 100%, 8px 100%, 0 calc(100% - 8px));
}
.hub-nav-btn:hover,
.hub-nav-btn:focus-visible {
    background: rgba(0, 240, 255, 0.14);
    border-color: rgba(0, 240, 255, 0.5);
    outline: none;
}

.hub-select-menu {
    display: flex;
    flex-direction: column;
    gap: 0.28rem;
    min-height: 220px;
}
.hub-select-item {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    background: transparent;
    border: 1px solid transparent;
    color: var(--text-dim);
    font-family: var(--font-display);
    font-size: 0.95rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    padding: 0.65rem 0.85rem;
    cursor: pointer;
    text-align: left;
    transition: color 0.15s, border-color 0.15s, background 0.15s, transform 0.18s, font-size 0.18s, padding 0.18s;
    clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 10px 100%, 0 calc(100% - 10px));
}
.hub-select-item .hub-si-icon {
    opacity: 0.7;
    color: var(--neon-cyan);
    width: 1.2rem;
    text-align: center;
}
.hub-select-item .hub-si-tag {
    margin-left: auto;
    font-size: 0.55rem;
    letter-spacing: 0.1em;
    color: var(--neon-magenta);
    opacity: 0.75;
    border: 1px solid rgba(255, 0, 170, 0.3);
    padding: 0.1rem 0.3rem;
}
.hub-select-item:hover,
.hub-select-item:focus-visible {
    color: var(--text-bright);
    background: rgba(0, 240, 255, 0.06);
    border-color: rgba(0, 240, 255, 0.3);
    outline: none;
}
.hub-select-item.is-active {
    color: var(--text-bright);
    background: rgba(0, 240, 255, 0.1);
    border-color: rgba(0, 240, 255, 0.5);
    box-shadow: inset 0 0 18px rgba(0, 240, 255, 0.08), 0 0 14px rgba(0, 240, 255, 0.1);
    font-size: 1.12rem;
    padding: 0.9rem 1rem;
    transform: translateX(6px);
}
.hub-select-item.is-active .hub-si-icon {
    opacity: 1;
    filter: drop-shadow(0 0 6px var(--neon-cyan));
}
.hub-select-item.is-active .hub-si-tag {
    opacity: 1;
}
.hub-select-accent.is-active {
    border-color: rgba(57, 255, 20, 0.5);
    box-shadow: inset 0 0 18px rgba(57, 255, 20, 0.06), 0 0 14px rgba(57, 255, 20, 0.1);
}
.hub-select-accent.is-active .hub-si-icon { color: var(--neon-green); }
.hub-select-admin.is-active {
    border-color: rgba(180, 0, 255, 0.5);
}

.hub-detail {
    position: relative;
    min-height: 260px;
    border: 1px solid rgba(0, 240, 255, 0.22);
    background: linear-gradient(145deg, rgba(18, 18, 30, 0.94), rgba(10, 10, 18, 0.97));
    padding: 1.35rem 1.5rem 1.5rem;
    box-shadow: 0 0 40px rgba(0, 0, 0, 0.35), inset 0 0 30px rgba(0, 240, 255, 0.03);
    clip-path: polygon(0 0, 100% 0, 100% calc(100% - 16px), calc(100% - 16px) 100%, 0 100%);
}
.hub-detail-panel {
    animation: detailIn 0.28s ease-out;
}
.hub-detail-panel[hidden] {
    display: none !important;
}

.hub-select-mode .hub-hint {
    margin-top: 1.25rem;
}

/* ==========================================================================
   Operator shell – matches start menu (no topbar)
   ========================================================================== */

body.mode-operator.start-body-mode {
    overflow: hidden;
    height: 100vh;
    height: 100dvh;
}

.operator-screen {
    align-items: flex-start;
    padding: 0.75rem 1rem 1rem;
}

.operator-frame {
    width: min(1200px, 100%);
    gap: 0.65rem;
    height: calc(100vh - 1.5rem);
    height: calc(100dvh - 1.5rem);
    max-height: calc(100dvh - 1.5rem);
    display: flex;
    flex-direction: column;
}

.operator-brand .start-logo {
    width: 48px;
    height: 48px;
}

.operator-body {
    flex: 1 1 auto;
    min-height: 0;
    display: grid;
    grid-template-columns: minmax(160px, 210px) 1fr;
    gap: 0.85rem 1.25rem;
    align-items: stretch;
}

.operator-menu-wrap {
    align-self: start;
    max-height: 100%;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.operator-menu-wrap .hub-select-menu {
    overflow-y: auto;
    flex: 1 1 auto;
    min-height: 0;
    gap: 0.2rem;
}

.operator-menu-wrap .hub-select-item,
.operator-menu-wrap .menu-item {
    font-size: 0.88rem;
    padding: 0.55rem 0.7rem;
    letter-spacing: 0.1em;
}

.operator-menu-wrap .hub-select-item.is-active,
.operator-menu-wrap .menu-item.is-active {
    font-size: 0.98rem;
    padding: 0.7rem 0.85rem;
    transform: translateX(4px);
}

.operator-stage {
    min-height: 0;
    height: 100%;
    overflow: auto;
    border: 1px solid rgba(0, 240, 255, 0.22);
    background: linear-gradient(145deg, rgba(18, 18, 30, 0.94), rgba(10, 10, 18, 0.97));
    box-shadow: 0 0 40px rgba(0, 0, 0, 0.35), inset 0 0 30px rgba(0, 240, 255, 0.03);
    clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 12px, 100% 100%, 12px 100%, 0 calc(100% - 12px));
    padding: 1rem 1.15rem 1.25rem;
}

.operator-panel.game-panel-frame {
    min-height: 0;
    border: none;
    background: transparent;
    box-shadow: none;
    padding: 0;
    clip-path: none;
}

.operator-footer {
    flex-shrink: 0;
}

.op-logout {
    background: none;
    border: none;
    color: var(--neon-cyan);
    font-family: var(--font-display);
    font-size: inherit;
    letter-spacing: inherit;
    cursor: pointer;
    padding: 0;
    text-decoration: underline;
    text-underline-offset: 2px;
}
.op-logout:hover { color: var(--text-bright); }

.command-briefing {
    min-height: 200px;
}
.cmd-status-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 0.25rem;
}

.auth-briefing .auth-inline-form {
    max-width: none;
    width: 100%;
}
.auth-briefing .form-group {
    margin-bottom: 0.75rem;
}

/* Soft nav – no layout jump */
.game-panel-frame.soft-nav-out {
    opacity: 0.35;
    transition: opacity 0.16s ease;
}
.game-panel-frame.soft-nav-in {
    opacity: 1;
    transition: opacity 0.28s ease;
}
body.is-transitioning .operator-frame,
body.is-transitioning .start-frame {
    /* keep shell dimensions stable */
    pointer-events: none;
}

@media (max-width: 720px) {
    .operator-body {
        grid-template-columns: 1fr;
        grid-template-rows: auto 1fr;
    }
    .operator-menu-wrap {
        max-height: 180px;
    }
    .operator-menu-wrap .hub-select-menu {
        flex-direction: row;
        flex-wrap: wrap;
        overflow-x: auto;
    }
}

/* Unified corner cut – match start menu menu-item style */
.card,
.settings-frame,
.auth-panel,
.auth-panel-game,
.stat-card,
.offer-card,
.hub-card,
.empty-sector,
.table-wrap,
.alert {
    clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 12px, 100% 100%, 12px 100%, 0 calc(100% - 12px)) !important;
}

/* Hide legacy topbar if residual */
body.mode-operator .game-topbar,
body.mode-operator > .grid-bg {
    display: none !important;
}

/* Sector page headers inside operator stage – tighter */
.operator-stage .sector-page-header,
.operator-stage .page-header {
    margin-top: 0;
}
.operator-stage .sector-page-header .btn,
.operator-stage .page-header .btn {
    /* Command is always available in left menu */
}

/* ==========================================================================
   Custom scrollbars (vertical only) + no horizontal on command menu
   ========================================================================== */

.operator-menu-wrap,
.operator-menu-wrap .hub-select-menu,
.hub-select-menu {
    overflow-x: hidden !important;
    scrollbar-width: none; /* hide menu scrollbar entirely */
}
.operator-menu-wrap .hub-select-menu::-webkit-scrollbar {
    width: 0;
    height: 0;
}

/* Themed vertical scrollbar for content stages */
.operator-stage,
.start-briefing,
.game-panel-frame,
.systems-panels,
body.mode-operator .operator-stage {
    scrollbar-width: thin;
    scrollbar-color: rgba(0, 240, 255, 0.45) rgba(8, 12, 24, 0.9);
}
.operator-stage::-webkit-scrollbar,
.start-briefing::-webkit-scrollbar,
.game-panel-frame::-webkit-scrollbar,
.systems-panels::-webkit-scrollbar {
    width: 8px;
    height: 0; /* no horizontal */
}
.operator-stage::-webkit-scrollbar-track,
.start-briefing::-webkit-scrollbar-track,
.game-panel-frame::-webkit-scrollbar-track,
.systems-panels::-webkit-scrollbar-track {
    background: rgba(8, 12, 24, 0.95);
    border-left: 1px solid rgba(0, 240, 255, 0.12);
}
.operator-stage::-webkit-scrollbar-thumb,
.start-briefing::-webkit-scrollbar-thumb,
.game-panel-frame::-webkit-scrollbar-thumb,
.systems-panels::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, rgba(0, 240, 255, 0.55), rgba(255, 0, 170, 0.35));
    border-radius: 2px;
    border: 1px solid rgba(0, 240, 255, 0.25);
}
.operator-stage::-webkit-scrollbar-thumb:hover,
.start-briefing::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, rgba(0, 240, 255, 0.75), rgba(255, 0, 170, 0.5));
}

/* Fixed-size content stages (start menu + operator) — prevent jump */
.start-detail,
.start-briefing,
.operator-stage {
    min-height: min(420px, 58vh);
    max-height: min(640px, 68vh);
}
.operator-stage {
    max-height: none;
    min-height: 0;
    flex: 1 1 auto;
    height: 100%;
}

/* Top-right credits + account */
.operator-brand {
    position: relative;
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: start;
    gap: 0.75rem;
}
.operator-brand-center {
    text-align: center;
    justify-self: center;
    grid-column: 1 / -1;
}
.operator-top-right {
    position: absolute;
    top: 0;
    right: 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    z-index: 5;
}
.op-credits-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.4rem 0.7rem;
    border: 1px solid rgba(57, 255, 20, 0.4);
    background: rgba(8, 20, 12, 0.85);
    color: var(--neon-green);
    text-decoration: none;
    font-family: var(--font-display);
    font-size: 0.85rem;
    letter-spacing: 0.06em;
}
.op-credits-chip:hover {
    border-color: rgba(57, 255, 20, 0.7);
    box-shadow: 0 0 14px rgba(57, 255, 20, 0.2);
    color: var(--neon-green);
}
.op-credits-chip .credits-label {
    font-size: 0.6rem;
    opacity: 0.75;
    letter-spacing: 0.14em;
}
.op-account-menu { position: relative; }
.op-account-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.4rem 0.7rem;
    border: 1px solid rgba(0, 240, 255, 0.35);
    background: rgba(8, 14, 28, 0.9);
    color: var(--text-bright);
    font-family: var(--font-display);
    font-size: 0.78rem;
    letter-spacing: 0.08em;
    cursor: pointer;
}
.op-account-btn:hover,
.op-account-btn[aria-expanded="true"] {
    border-color: rgba(0, 240, 255, 0.65);
    box-shadow: 0 0 12px rgba(0, 240, 255, 0.15);
}
.op-account-dropdown {
    position: absolute;
    top: calc(100% + 4px);
    right: 0;
    min-width: 160px;
    background: rgba(10, 14, 28, 0.98);
    border: 1px solid rgba(0, 240, 255, 0.3);
    padding: 0.35rem 0;
    z-index: 30;
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.5);
}
.op-account-dropdown a,
.op-account-dropdown .op-account-logout {
    display: block;
    width: 100%;
    text-align: left;
    padding: 0.5rem 0.85rem;
    color: var(--text-dim);
    text-decoration: none;
    background: none;
    border: none;
    font-family: var(--font-display);
    font-size: 0.75rem;
    letter-spacing: 0.1em;
    cursor: pointer;
}
.op-account-dropdown a:hover,
.op-account-dropdown .op-account-logout:hover {
    color: var(--neon-cyan);
    background: rgba(0, 240, 255, 0.08);
}

.hub-logout-form { margin: 0.35rem 0 0; }
.hub-select-logout {
    color: var(--neon-red) !important;
    border-color: transparent;
}
.hub-select-logout:hover,
.hub-select-logout:focus-visible {
    border-color: rgba(255, 42, 109, 0.45) !important;
    background: rgba(255, 42, 109, 0.08) !important;
    color: var(--neon-red) !important;
}

/* Full borders — no clipped corners on content cards */
.card,
.settings-frame,
.auth-panel,
.auth-panel-game,
.stat-card,
.offer-card,
.hub-card,
.empty-sector,
.table-wrap,
.alert,
.operator-stage,
.start-detail,
.start-briefing {
    clip-path: none !important;
    border-radius: 2px;
}
.menu-item,
.hub-select-item,
.hub-nav-btn {
    /* keep angled menu language via border highlight, not clip that eats borders */
    clip-path: none !important;
    border-radius: 2px;
}
.menu-item.is-active,
.hub-select-item.is-active {
    border-left: 3px solid var(--neon-cyan);
}

/* Google auth buttons */
.auth-divider {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin: 1rem 0 0.85rem;
    color: var(--text-dim);
    font-family: var(--font-display);
    font-size: 0.65rem;
    letter-spacing: 0.16em;
}
.auth-divider::before,
.auth-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: rgba(0, 240, 255, 0.2);
}
.btn-google {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.28);
    color: var(--text-bright);
    font-family: var(--font-display);
    font-size: 0.78rem;
    letter-spacing: 0.08em;
    padding: 0.7rem 1rem;
    text-decoration: none;
}
.btn-google:hover {
    border-color: rgba(255, 255, 255, 0.5);
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-bright);
}
.google-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.25rem;
    height: 1.25rem;
    border-radius: 50%;
    background: #fff;
    color: #ea4335;
    font-weight: 700;
    font-size: 0.75rem;
    font-family: sans-serif;
}
.auth-google-hint {
    font-size: 0.75rem;
    margin-top: 0.5rem;
    text-align: center;
}

@media (max-width: 720px) {
    .operator-top-right {
        position: static;
        justify-content: center;
        grid-column: 1 / -1;
        margin-top: 0.35rem;
    }
    .operator-brand {
        display: flex;
        flex-direction: column;
        align-items: center;
    }
}

/* ---- hCaptcha aesthetic shell ---- */
.cl-captcha-wrap {
    display: flex;
    justify-content: flex-start;
    margin: 0.5rem 0 0.75rem;
    padding: 0.5rem;
    border: 1px solid rgba(0, 240, 255, 0.22);
    background: rgba(6, 10, 20, 0.85);
    max-width: 100%;
    overflow: hidden;
}
.cl-captcha-wrap .h-captcha,
.cl-captcha-wrap .g-recaptcha {
    transform-origin: left top;
}

/* Start menu: scrollable briefing so forms + Google fit */
.start-body .start-briefing {
    max-height: min(620px, 70vh);
    overflow-y: auto;
    overflow-x: hidden;
    min-height: min(360px, 50vh);
}
.auth-briefing .auth-inline-form {
    max-width: 100%;
}
.auth-briefing .form-group input.form-control {
    max-width: 100%;
}
.detail-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: 0.75rem 0 0.5rem;
}

/* Logout menu item — same width / icon stability as peers */
.hub-logout-form {
    display: block;
    width: 100%;
    margin: 0.35rem 0 0;
}
.hub-logout-form .hub-select-item,
.hub-select-logout {
    width: 100%;
    box-sizing: border-box;
}
.hub-select-logout .hub-si-icon,
.hub-select-logout .menu-marker {
    opacity: 1 !important;
    visibility: visible !important;
}
.hub-select-logout:hover,
.hub-select-logout:focus-visible {
    width: 100%;
    transform: translateX(4px);
}

/* DELETE tab red label even when inactive */
.systems-tab.systems-tab-danger {
    color: #ff6b9d;
}
.systems-tab.systems-tab-danger.is-active {
    color: #ff2a6d;
}

/* Security pitch list accent */
.detail-list li {
    line-height: 1.45;
}

/* ---- Compact auth forms (fit content stage) ---- */
.auth-compact {
    padding-top: 0.15rem;
}
.auth-compact .briefing-lead {
    display: none;
}
.auth-form-compact .form-group {
    margin-bottom: 0.55rem;
}
.auth-form-compact label {
    font-size: 0.72rem;
    letter-spacing: 0.06em;
    margin-bottom: 0.2rem;
    display: block;
    color: var(--text-dim);
}
.auth-form-compact .form-control {
    padding: 0.45rem 0.6rem;
    font-size: 0.92rem;
}
.auth-row-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.55rem 0.75rem;
}
@media (max-width: 520px) {
    .auth-row-2 { grid-template-columns: 1fr; }
}
.auth-legal {
    font-size: 0.72rem;
    margin: 0.25rem 0 0.55rem;
    line-height: 1.35;
}
.form-group-captcha {
    margin: 0.35rem 0 0.5rem;
}
.form-group-captcha .cl-captcha-wrap {
    margin: 0;
    padding: 0.25rem 0.35rem;
    max-width: 100%;
    overflow: visible;
}
.form-group-captcha .h-captcha {
    max-width: 100%;
}
.form-group-captcha iframe {
    max-width: 100% !important;
}
.auth-compact .auth-divider {
    margin: 0.65rem 0 0.55rem;
}
.auth-compact .btn-block {
    padding: 0.55rem 0.75rem;
    font-size: 0.82rem;
}
.start-body .start-briefing.auth-open,
.start-body .start-briefing {
    max-height: min(560px, 66vh);
    overflow-y: auto;
    overflow-x: hidden;
}
.start-briefing .briefing-toolbar {
    margin-bottom: 0.65rem;
    padding-bottom: 0.45rem;
}
.start-briefing .briefing-title {
    font-size: 0.95rem;
}


.op-account-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
}
.op-account-avatar {
    width: 28px;
    height: 28px;
    border-radius: 4px;
    object-fit: cover;
    border: 1px solid rgba(0, 240, 255, 0.35);
    flex-shrink: 0;
}
.op-account-avatar-letter {
    width: 28px;
    height: 28px;
    border-radius: 4px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 240, 255, 0.12);
    border: 1px solid rgba(0, 240, 255, 0.35);
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--neon-cyan);
    flex-shrink: 0;
}

/* Email verify lock overlay */
.verify-lock-overlay {
    position: absolute;
    inset: 0;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(6, 8, 16, 0.82);
    backdrop-filter: blur(3px);
    border: 1px solid rgba(255, 107, 157, 0.35);
    padding: 1.25rem;
    text-align: center;
}
.verify-lock-card {
    max-width: 360px;
}
.verify-lock-card h3 {
    margin: 0 0 0.5rem;
    color: #ff6b9d;
    letter-spacing: 0.08em;
}
.sector-locked {
    position: relative;
    min-height: 240px;
}


.sector-page-wrap {
    position: relative;
    min-height: 280px;
}
.sector-page-wrap.is-locked .card-grid,
.sector-page-wrap.is-locked .empty-sector {
    filter: blur(2px);
    opacity: 0.4;
    pointer-events: none;
    user-select: none;
}
.verify-lock-overlay {
    position: absolute;
    inset: 0;
    z-index: 30;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(6, 8, 16, 0.88);
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255, 107, 157, 0.35);
    padding: 1.25rem;
    text-align: center;
}
.verify-lock-card {
    max-width: 380px;
}
.verify-lock-card h3 {
    margin: 0 0 0.5rem;
    color: #ff6b9d;
    letter-spacing: 0.1em;
}



.start-flash {
    margin: 0 0 0.5rem;
    max-width: 100%;
}
.start-flash .alert {
    margin: 0.25rem 0;
    font-size: 0.9rem;
}


/* Explicit start menu layout — menu left, page area right */
.start-menu {
    grid-column: 1 !important;
    grid-row: 1 !important;
    width: 200px;
    max-width: 200px;
    align-self: start;
}
.start-stage {
    grid-column: 2 !important;
    grid-row: 1 !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: none !important;
}
.start-stage .start-detail,
.start-stage .start-briefing {
    width: 100%;
    max-width: none;
    min-height: 320px;
    box-sizing: border-box;
}
.start-body .start-briefing {
    grid-column: auto !important;
    max-height: min(70vh, 640px);
    overflow-y: auto;
}
.start-screen.is-briefing .start-body {
    align-items: start;
}
@media (max-width: 720px) {
    /* neutralized bad single-column */
    /* neutralized stacked columns */
}

/* ==========================================================================
   START MENU LAYOUT — canonical (desktop: menu left, page area right)
   This block intentionally comes last so it wins over earlier patches.
   ========================================================================== */

.start-screen {
    position: relative;
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 1.25rem 1.25rem 1.25rem; /* banner not flush to top */
    z-index: 1;
    box-sizing: border-box;
}

.start-frame {
    position: relative;
    z-index: 2;
    width: min(1100px, 100%);
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-top: 0.35rem;
    padding-top: 0.15rem;
}

.start-brand {
    text-align: center;
    margin: 0.15rem 0 0.5rem;
    padding: 0.25rem 0 0.35rem;
    flex-shrink: 0;
}

.start-logo {
    display: block;
    margin: 0 auto 0.25rem;
    width: 48px;
    height: 48px;
}

.start-title {
    font-size: clamp(1.55rem, 5vw, 2.35rem);
    letter-spacing: 0.12em;
    margin: 0;
}

.start-tagline {
    margin-top: 0.2rem;
    margin-bottom: 0;
}

/* Two-column command shell */
.start-body {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    align-items: flex-start !important;
    gap: 1.5rem !important;
    width: 100% !important;
}

.start-menu {
    grid-column: 1 !important;
    grid-row: 1 !important;
    width: 210px !important;
    max-width: 210px !important;
    display: flex !important;
    flex-direction: column !important;
    align-self: start !important;
    margin-left: 0 !important;
}

.start-stage {
    grid-column: 2 !important;
    grid-row: 1 !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: none !important;
    display: block !important;
    position: relative !important;
}

.start-stage .start-detail,
.start-stage .start-briefing {
    width: 100% !important;
    max-width: none !important;
    min-height: 320px;
    box-sizing: border-box;
    margin: 0 !important;
}

/* Briefing must NOT try to place itself as a third grid child of start-body */
.start-body > .start-briefing,
.start-body .start-briefing {
    grid-column: auto !important;
}

.start-screen.is-briefing .start-body {
    align-items: start !important;
}

@media (max-width: 720px) {
    .start-body {
        grid-template-columns: 1fr !important;
    }
    .start-menu {
        grid-column: 1 !important;
        width: 100% !important;
        max-width: none !important;
    }
    .start-stage {
        grid-column: 1 !important;
        width: 100% !important;
    }
}

/* ==========================================================================
   Laser XP bar (transparent, matches HUD)
   ========================================================================== */
.xp-laser {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    width: 100%;
    max-width: 640px;
    margin: 0.75rem 0 1rem;
    background: transparent;
    position: relative;
    isolation: isolate;
}
.xp-laser--compact {
    max-width: 320px;
    margin: 0.35rem 0;
    gap: 0.35rem;
}
.xp-laser-gun {
    flex: 0 0 auto;
    width: 52px;
    height: 36px;
    position: relative;
    filter: drop-shadow(0 0 6px rgba(0, 229, 255, 0.35));
}
.xp-laser--compact .xp-laser-gun { width: 36px; height: 26px; }
.xp-laser-gun-body {
    position: absolute;
    left: 0; top: 8px;
    width: 28px; height: 18px;
    border-radius: 4px 2px 2px 6px;
    background: linear-gradient(180deg, #2a4a6a 0%, #123048 55%, #0a1a28 100%);
    border: 1px solid rgba(0, 229, 255, 0.45);
    box-shadow: inset 0 0 8px rgba(0, 229, 255, 0.15);
}
.xp-laser--compact .xp-laser-gun-body { top: 5px; width: 20px; height: 14px; }
.xp-laser-gun-body::after {
    content: '';
    position: absolute;
    left: 4px; top: 4px;
    width: 10px; height: 4px;
    border-radius: 1px;
    background: rgba(0, 229, 255, 0.5);
    box-shadow: 12px 0 0 rgba(255, 140, 60, 0.55);
}
.xp-laser-gun-barrel {
    position: absolute;
    left: 26px; top: 12px;
    width: 16px; height: 8px;
    background: linear-gradient(90deg, #1a3048, #2a6088);
    border: 1px solid rgba(0, 229, 255, 0.4);
    border-radius: 0 2px 2px 0;
}
.xp-laser--compact .xp-laser-gun-barrel { left: 18px; top: 9px; width: 12px; height: 6px; }
.xp-laser-gun-muzzle {
    position: absolute;
    right: 0; top: 13px;
    width: 8px; height: 6px;
    border-radius: 50%;
    background: #7fffff;
    box-shadow: 0 0 10px #00e5ff, 0 0 18px rgba(0, 229, 255, 0.7);
}
.xp-laser--compact .xp-laser-gun-muzzle { top: 10px; width: 6px; height: 5px; }

.xp-laser-track {
    flex: 1 1 auto;
    min-width: 0;
    position: relative;
    height: 18px;
    border-radius: 2px;
    background: rgba(0, 20, 40, 0.35);
    border: 1px solid rgba(0, 229, 255, 0.22);
    box-shadow: inset 0 0 12px rgba(0, 0, 0, 0.35);
    overflow: visible;
}
.xp-laser--compact .xp-laser-track { height: 12px; }
.xp-laser-beam {
    position: absolute;
    left: 0; top: 0; bottom: 0;
    width: 0%;
    max-width: 100%;
    border-radius: 2px 0 0 2px;
    background: linear-gradient(90deg,
        rgba(0, 180, 255, 0.15) 0%,
        rgba(0, 220, 255, 0.55) 40%,
        rgba(180, 255, 255, 0.95) 100%);
    box-shadow:
        0 0 8px rgba(0, 229, 255, 0.55),
        0 0 16px rgba(0, 200, 255, 0.35),
        inset 0 1px 0 rgba(255, 255, 255, 0.45);
    transition: width 0.6s ease-out;
    overflow: hidden;
}
.xp-laser-core {
    position: absolute;
    right: 0; top: 50%;
    transform: translateY(-50%);
    width: 10px; height: 140%;
    background: #fff;
    opacity: 0.85;
    filter: blur(2px);
    box-shadow: 0 0 12px #fff, 0 0 24px #00e5ff;
}
.xp-laser-meta {
    position: absolute;
    left: 0; right: 0;
    top: calc(100% + 4px);
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem 0.75rem;
    font-family: var(--font-display, Orbitron, sans-serif);
    font-size: 0.65rem;
    letter-spacing: 0.12em;
    color: var(--text-dim, #8a96ad);
    pointer-events: none;
}
.xp-laser-label { color: var(--neon-cyan, #00e5ff); }
.xp-laser-hint { opacity: 0.7; }

.xp-laser-level {
    flex: 0 0 auto;
    width: 42px; height: 42px;
    display: grid;
    place-items: center;
    position: relative;
    margin-left: 0.15rem;
}
.xp-laser--compact .xp-laser-level { width: 30px; height: 30px; }
.xp-laser-level-num {
    font-family: var(--font-display, Orbitron, sans-serif);
    font-size: 1.35rem;
    font-weight: 800;
    color: rgba(180, 220, 255, 0.55);
    letter-spacing: 0.04em;
    transition: color 0.3s, text-shadow 0.3s, transform 0.3s;
}
.xp-laser--compact .xp-laser-level-num { font-size: 1rem; }
.xp-laser.is-full .xp-laser-level-num,
.xp-laser-level.is-charged .xp-laser-level-num {
    color: #e8ffff;
    text-shadow:
        0 0 8px #fff,
        0 0 16px #00e5ff,
        0 0 28px #00b8ff,
        0 0 40px rgba(0, 229, 255, 0.8);
    transform: scale(1.08);
    animation: xp-level-pulse 1.6s ease-in-out infinite;
}
@keyframes xp-level-pulse {
    0%, 100% { filter: brightness(1); }
    50% { filter: brightness(1.25); }
}
.xp-laser.is-full .xp-laser-beam {
    box-shadow:
        0 0 12px rgba(0, 229, 255, 0.8),
        0 0 24px rgba(0, 200, 255, 0.5),
        inset 0 1px 0 rgba(255, 255, 255, 0.55);
}
.menu-item.is-hover-preview {
    color: var(--text-bright);
    border-color: rgba(0, 240, 255, 0.25);
    background: rgba(0, 240, 255, 0.04);
}
.start-briefing.is-dimmed-preview {
    opacity: 0.25;
    pointer-events: none;
}

/* ---- XP laser (image assets) ---- */
.xp-laser {
    display: flex;
    align-items: center;
    gap: 0.15rem;
    width: 100%;
    max-width: 720px;
    margin: 0.85rem 0 1.35rem;
    background: transparent;
    position: relative;
}
.xp-laser-gun {
    flex: 0 0 auto;
    width: 88px;
    height: 56px;
    position: relative;
    z-index: 2;
    filter: drop-shadow(0 0 8px rgba(0, 229, 255, 0.4));
}
.xp-laser--compact .xp-laser-gun { width: 56px; height: 36px; }
.xp-laser-gun-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: right center;
    display: block;
    pointer-events: none;
    user-select: none;
}
/* hide old CSS gun parts if present */
.xp-laser-gun-body,
.xp-laser-gun-barrel,
.xp-laser-gun-muzzle { display: none !important; }

.xp-laser-track {
    flex: 1 1 auto;
    min-width: 0;
    position: relative;
    height: 20px;
    margin-left: -6px; /* tuck under muzzle */
    border-radius: 2px;
    background: rgba(4, 16, 32, 0.45);
    border: 1px solid rgba(0, 229, 255, 0.28);
    box-shadow:
        inset 0 0 14px rgba(0, 40, 80, 0.5),
        0 0 12px rgba(0, 180, 255, 0.12);
    overflow: visible;
}
.xp-laser--compact .xp-laser-track { height: 12px; margin-left: -4px; }

.xp-laser-beam {
    position: absolute;
    left: 0; top: 0; bottom: 0;
    width: 0%;
    max-width: 100%;
    overflow: hidden;
    border-radius: 2px 0 0 2px;
    transition: width 0.65s cubic-bezier(0.22, 1, 0.36, 1);
    box-shadow:
        0 0 10px rgba(0, 229, 255, 0.55),
        0 0 22px rgba(0, 200, 255, 0.35);
}
.xp-laser-beam-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: left center;
    pointer-events: none;
}
.xp-laser-core {
    position: absolute;
    right: -2px;
    top: 50%;
    transform: translateY(-50%);
    width: 14px;
    height: 160%;
    background: radial-gradient(circle, #fff 0%, #9ff 40%, transparent 70%);
    filter: blur(1px);
    opacity: 0.95;
    pointer-events: none;
}
.xp-laser-meta {
    position: absolute;
    left: 0.15rem;
    right: 0;
    top: calc(100% + 6px);
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem 0.85rem;
    font-family: var(--font-display, Orbitron, sans-serif);
    font-size: 0.62rem;
    letter-spacing: 0.14em;
    color: var(--text-dim, #8a96ad);
    pointer-events: none;
}
.xp-laser-label { color: var(--neon-cyan, #00e5ff); font-weight: 700; }
.xp-laser-hint { opacity: 0.65; }

.xp-laser-level {
    flex: 0 0 auto;
    width: 56px;
    height: 56px;
    position: relative;
    display: grid;
    place-items: center;
    margin-left: -4px;
    z-index: 2;
}
.xp-laser--compact .xp-laser-level { width: 36px; height: 36px; }
.xp-laser-level-frame {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    opacity: 0.35;
    pointer-events: none;
    transition: opacity 0.35s;
}
.xp-laser.is-full .xp-laser-level-frame,
.xp-laser-level.is-charged .xp-laser-level-frame {
    opacity: 1;
    filter: drop-shadow(0 0 12px #00e5ff);
}
.xp-laser-level-num {
    position: relative;
    z-index: 1;
    font-family: var(--font-display, Orbitron, sans-serif);
    font-size: 1.55rem;
    font-weight: 800;
    color: rgba(160, 200, 230, 0.5);
    letter-spacing: 0.04em;
    transition: color 0.3s, text-shadow 0.3s, transform 0.3s;
}
.xp-laser--compact .xp-laser-level-num { font-size: 1.05rem; }
.xp-laser.is-full .xp-laser-level-num,
.xp-laser-level.is-charged .xp-laser-level-num {
    color: #f0ffff;
    text-shadow:
        0 0 6px #fff,
        0 0 14px #00e5ff,
        0 0 28px #00b8ff,
        0 0 42px rgba(0, 229, 255, 0.85);
    transform: scale(1.1);
    animation: xp-level-pulse 1.5s ease-in-out infinite;
}

/* Mission / survey / game cards — slightly longer than square, not wide */
.hub-card {
    max-width: 168px;
    width: 100%;
    aspect-ratio: 5 / 6;
    min-height: 0 !important;
}
.hub-grid,
.hub-grid-compact,
.card-grid.hub-grid {
    grid-template-columns: repeat(auto-fill, minmax(140px, 168px)) !important;
    justify-content: start;
}
.offer-card {
    max-width: 200px;
}
.empty-sector .hub-card,
.sector-empty .hub-card {
    max-width: 168px;
}

/* XP cannon upgrade */
.xp-laser {
    display: flex;
    align-items: center;
    gap: 0;
    width: 100%;
    max-width: 820px;
    margin: 0.5rem 0 1.5rem;
    background: transparent;
    position: relative;
}
.xp-laser-gun {
    flex: 0 0 auto;
    width: 150px;
    height: 64px;
    position: relative;
    z-index: 3;
    filter: drop-shadow(0 0 10px rgba(0, 220, 255, 0.45));
}
.xp-laser--compact .xp-laser-gun { width: 96px; height: 42px; }
.xp-laser-gun-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: right center;
    display: block;
}
.xp-laser-flare {
    flex: 0 0 auto;
    width: 48px;
    height: 36px;
    margin-left: -12px;
    margin-right: -6px;
    z-index: 4;
    pointer-events: none;
    animation: xp-flare-pulse 1.2s ease-in-out infinite;
}
.xp-laser--compact .xp-laser-flare { width: 24px; height: 18px; margin-left: -8px; }
.xp-laser-flare-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}
@keyframes xp-flare-pulse {
    0%, 100% { opacity: 0.75; transform: scaleX(1); filter: brightness(1); }
    50% { opacity: 1; transform: scaleX(1.08); filter: brightness(1.35); }
}
.xp-laser-track {
    flex: 1 1 auto;
    min-width: 0;
    height: 22px;
    margin-left: -4px;
    border-radius: 3px;
    background: rgba(2, 12, 24, 0.55);
    border: 1px solid rgba(0, 229, 255, 0.32);
    box-shadow: inset 0 0 16px rgba(0, 60, 100, 0.45), 0 0 14px rgba(0, 180, 255, 0.15);
    position: relative;
    overflow: visible;
}
.xp-laser-beam {
    height: 100%;
    position: absolute;
    left: 0; top: 0; bottom: 0;
    overflow: hidden;
    border-radius: 3px 0 0 3px;
    transition: width 0.7s cubic-bezier(0.22, 1, 0.36, 1);
    box-shadow: 0 0 12px rgba(0, 229, 255, 0.65), 0 0 28px rgba(0, 200, 255, 0.35);
}
.xp-laser-levels {
    display: flex;
    align-items: center;
    gap: 0.15rem;
    margin-left: 0.15rem;
    z-index: 2;
}
.xp-laser-level {
    width: 52px;
    height: 52px;
    position: relative;
    display: grid;
    place-items: center;
}
.xp-laser--compact .xp-laser-level { width: 34px; height: 34px; }
.xp-laser-level--next {
    width: 40px;
    height: 40px;
    opacity: 0.55;
}
.xp-laser--compact .xp-laser-level--next { width: 28px; height: 28px; }
.xp-laser-level-frame {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    opacity: 0.4;
}
.xp-laser-level-frame.is-muted { opacity: 0.22; }
.xp-laser.is-full .xp-laser-level--current .xp-laser-level-frame {
    opacity: 1;
    filter: drop-shadow(0 0 14px #00e5ff);
}
.xp-laser-digit-img {
    position: relative;
    z-index: 1;
    width: 68%;
    height: 68%;
    object-fit: contain;
    filter: drop-shadow(0 0 4px rgba(0, 200, 255, 0.4));
}
.xp-laser-digit-img.is-muted {
    filter: grayscale(0.3) brightness(0.7);
    opacity: 0.75;
}
.xp-laser.is-full .xp-laser-level--current .xp-laser-digit-img {
    filter: drop-shadow(0 0 8px #fff) drop-shadow(0 0 16px #00e5ff);
    animation: xp-level-pulse 1.5s ease-in-out infinite;
}
.xp-laser-level-num {
    position: relative;
    z-index: 1;
    font-family: var(--font-display, Orbitron, sans-serif);
    font-size: 1.4rem;
    font-weight: 800;
    color: rgba(180, 220, 255, 0.55);
}
.xp-laser-level-num.is-muted { opacity: 0.5; font-size: 1.1rem; }
.xp-laser.is-full .xp-laser-level--current .xp-laser-level-num {
    color: #f0ffff;
    text-shadow: 0 0 8px #fff, 0 0 18px #00e5ff;
}
/* Start menu: hover covers selected briefing fully; inputs stay mounted */
.start-briefing.is-hover-covered {
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
    position: absolute !important;
    inset: 0;
    z-index: 0;
}
.start-detail.is-hover-overlay {
    position: relative;
    z-index: 2;
    display: block !important;
}


/* Layout lock: operator shell always full width */
body.mode-operator .operator-frame,
body.mode-operator .start-frame.operator-frame {
    width: min(1200px, 100%) !important;
    max-width: 1200px !important;
}
body.mode-operator .operator-body {
    display: grid !important;
    grid-template-columns: minmax(160px, 210px) minmax(0, 1fr) !important;
    width: 100% !important;
}
body.mode-operator .operator-stage {
    width: 100% !important;
    max-width: none !important;
    min-width: 0 !important;
    flex: 1 1 auto !important;
}
body.mode-operator .operator-panel.game-panel-frame,
body.mode-operator #hudStage {
    width: 100% !important;
    max-width: none !important;
}

/* Stage-local transition (not full screen) */
.operator-stage-transition {
    position: absolute;
    inset: 0;
    z-index: 20;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    background: rgba(4, 8, 16, 0.82);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
}
.operator-stage-transition.is-active {
    opacity: 1;
    pointer-events: all;
}
.operator-stage-transition .ost-label {
    font-family: var(--font-display);
    letter-spacing: 0.22em;
    font-size: 0.8rem;
    color: var(--neon-cyan);
    text-shadow: 0 0 12px rgba(0, 240, 255, 0.5);
}
.operator-stage { position: relative; }

/* Offer cards grid fill */
.offer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 1rem;
    width: 100%;
}
.offer-card {
    max-width: none;
    width: 100%;
    display: flex;
    flex-direction: column;
    padding: 0;
    overflow: hidden;
    aspect-ratio: 3 / 4;
    min-height: 0;
}
.offer-card .offer-img {
    flex: 0 0 80%;
    height: 80%;
    width: 100%;
    object-fit: cover;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(160deg, #152030, #0a121c);
    font-size: 2.5rem;
    border-bottom: 1px solid var(--border);
}
.offer-card .offer-body {
    flex: 1 1 20%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.35rem;
    padding: 0.45rem 0.6rem;
}
.offer-card .offer-payout {
    font-family: var(--font-display);
    font-size: 0.85rem;
    color: var(--neon-green);
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}
.offer-warn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.15rem;
    height: 1.15rem;
    border-radius: 50%;
    border: 1px solid var(--neon-yellow);
    color: var(--neon-yellow);
    font-size: 0.7rem;
    cursor: help;
    background: rgba(255, 200, 0, 0.12);
}
.offer-warn:hover { background: rgba(255, 200, 0, 0.25); }

/* Restrict narrow hub-card rule to overview quick links only if any remain */
.hub-grid .hub-card,
.hub-grid-compact .hub-card {
    max-width: 168px;
}
.xp-laser-level--current {
    order: 0;
    margin-right: 0.25rem;
}
.xp-laser-level--current .xp-laser-digit-img.is-lit,
.xp-laser-level--current .xp-laser-level-num.is-lit {
    filter: drop-shadow(0 0 8px #fff) drop-shadow(0 0 16px #00e5ff);
    color: #f0ffff;
}
.xp-laser-level--current .xp-laser-level-frame {
    opacity: 0.85;
    filter: drop-shadow(0 0 10px rgba(0, 229, 255, 0.55));
}
.xp-laser-levels { display: none !important; } /* old right-side cluster */
.xp-rankup-btn {
    margin-left: 0.5rem;
    white-space: nowrap;
    font-size: 0.75rem;
    letter-spacing: 0.12em;
}
.xp-rankup-form { flex: 0 0 auto; }
.start-briefing.is-hover-covered {
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
}
/* Do not leave focused inputs interactive under cover */
.start-briefing.is-hover-covered input,
.start-briefing.is-hover-covered button,
.start-briefing.is-hover-covered select,
.start-briefing.is-hover-covered textarea {
    pointer-events: none !important;
}

.legal-briefing .legal-scroll {
  max-height: min(55vh, 480px);
  overflow-y: auto;
  padding-right: 0.35rem;
  line-height: 1.55;
  font-size: 0.92rem;
}
.legal-briefing h1, .legal-briefing h2 {
  font-family: var(--font-display);
  letter-spacing: 0.08em;
  color: var(--neon-cyan);
  font-size: 0.95rem;
  margin: 1rem 0 0.4rem;
}
.xp-laser-main { width: 100%; max-width: 820px; }
.xp-laser-lvl-label {
    font-family: var(--font-display, Orbitron, sans-serif);
    font-size: clamp(1.35rem, 3vw, 1.85rem);
    font-weight: 800;
    letter-spacing: 0.18em;
    color: var(--neon-cyan, #00e5ff);
    text-shadow: 0 0 12px rgba(0, 229, 255, 0.55);
    margin: 0 0 -0.15rem 0.15rem;
    line-height: 1;
    position: relative;
    z-index: 2;
}
.xp-laser-row {
    display: flex;
    align-items: center;
    gap: 0;
    width: 100%;
}
.xp-laser-level--current { display: none !important; }
.xp-laser-level--next {
    flex: 0 0 auto;
    width: 48px;
    height: 48px;
    position: relative;
    display: grid;
    place-items: center;
    margin-left: 0.2rem;
    opacity: 0.85;
}
.xp-laser-meta {
    top: calc(100% + 4px);
}

/* Profile floating save — fixed inside stage area */
.operator-stage .profile-floating-save,
.game-panel-frame .profile-floating-save {
  position: sticky;
  float: right;
  clear: both;
  display: inline-block;
  margin: 1rem 0 0 auto;
  right: 0;
  bottom: 1rem;
  z-index: 50;
}
.profile-floating-save {
  position: fixed;
  right: max(1rem, calc((100vw - 1200px) / 2 + 1rem));
  bottom: 1.5rem;
  z-index: 8000;
  min-width: 140px;
  padding: 0.95rem 1.6rem !important;
  font-size: 1rem !important;
  letter-spacing: 0.16em;
  box-shadow: 0 0 28px rgba(0, 229, 255, 0.55);
}
.profile-floating-save[hidden] { display: none !important; }
.xp-laser-lvl-label {
  text-align: center !important;
  width: 100%;
  margin-left: 0 !important;
  margin-right: 0 !important;
}
.xp-laser-main { margin-left: auto; margin-right: auto; }
.profile-floating-save {
  position: fixed !important;
  right: 1.5rem !important;
  bottom: 1.5rem !important;
  z-index: 9000 !important;
  min-width: 150px !important;
  padding: 0.95rem 1.75rem !important;
  font-family: var(--font-display), Orbitron, sans-serif !important;
  font-size: 0.95rem !important;
  font-weight: 700 !important;
  letter-spacing: 0.16em !important;
  text-transform: uppercase !important;
  color: #041018 !important;
  background: linear-gradient(135deg, #00f0ff, #00a0cc) !important;
  border: 1px solid rgba(0, 240, 255, 0.8) !important;
  border-radius: 4px !important;
  box-shadow: 0 0 24px rgba(0, 229, 255, 0.55), inset 0 0 12px rgba(255,255,255,0.15) !important;
  cursor: pointer !important;
}
.profile-floating-save:hover {
  filter: brightness(1.12);
  box-shadow: 0 0 32px rgba(0, 229, 255, 0.75) !important;
}
.profile-floating-save[hidden] { display: none !important; }
.operator-top-right {
  display: flex;
  align-items: center;
  gap: 0.55rem;
}
