:root {
    /* Movetain Alpine Tactical Brand Palette */
    --bg-obsidian: #0B1326;
    --bg-surface: #10192D;
    --bg-card: #171F33;
    --glass-bg: rgba(11, 19, 38, 0.75);
    
    --primary-lavender: #C9D1FF;
    --primary-container: #354484;
    --button-bg: rgba(201, 209, 255, 0.15);
    --button-border: rgba(201, 209, 255, 0.35);
    
    --text-primary: #DAE2FD;
    --text-secondary: #C6C5D2;
    --text-muted: #626D82;
    
    --signal-green: #4AE176;
    --action-orange: #FF5F00;
    --accent-blue: #4488FF;
    --accent-yellow: #FFD600;
    --alert-red: #FF4444;

    --glass-border: rgba(255, 255, 255, 0.08);
    --border-highlight: rgba(201, 209, 255, 0.25);

    --font-ui: 'Roboto', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-mono: 'JetBrains Mono', monospace;
}

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

body, html {
    width: 100%;
    height: 100%;
    overflow: hidden;
    background-color: var(--bg-obsidian);
    color: var(--text-primary);
    font-family: var(--font-ui);
    -webkit-font-smoothing: antialiased;
}

#app-container {
    display: flex;
    flex-direction: column;
    width: 100vw;
    height: 100vh;
}

/* ─────────────────────────────────────────────────────────────
   TOP HEADER (Tactical Command Bar)
   ───────────────────────────────────────────────────────────── */
#top-bar {
    height: 56px;
    background-color: var(--bg-surface);
    border-bottom: 1px solid var(--glass-border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 18px;
    z-index: 1000;
}

.brand-group {
    display: flex;
    align-items: center;
    gap: 12px;
    user-select: none;
}

.brand-logo-img {
    height: 28px;
    width: auto;
    object-fit: contain;
    filter: drop-shadow(0 0 10px rgba(201, 209, 255, 0.35));
}

.brand-text-logo {
    height: 18px;
    width: auto;
    object-fit: contain;
    filter: drop-shadow(0 0 8px rgba(201, 209, 255, 0.2));
}

.room-status-group {
    display: flex;
    align-items: center;
    gap: 10px;
}

.badge {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 5px 12px;
    border-radius: 6px;
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 600;
    border: 1px solid var(--glass-border);
    background-color: rgba(255, 255, 255, 0.03);
}

.room-badge .label {
    color: var(--text-muted);
}
.room-badge .val {
    color: var(--primary-lavender);
    font-weight: 700;
}

.role-badge.coordinator {
    border-color: rgba(74, 225, 118, 0.35);
    background-color: rgba(74, 225, 118, 0.1);
    color: var(--signal-green);
}

.role-badge.spectator {
    border-color: rgba(201, 209, 255, 0.35);
    background-color: rgba(201, 209, 255, 0.1);
    color: var(--primary-lavender);
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: var(--text-muted);
}

.status-dot.online {
    background-color: var(--signal-green);
    box-shadow: 0 0 8px var(--signal-green);
    animation: pulse 1.5s infinite;
}

.status-dot.offline {
    background-color: var(--action-orange);
}

@keyframes pulse {
    0% { transform: scale(0.95); opacity: 0.8; }
    50% { transform: scale(1.3); opacity: 1; }
    100% { transform: scale(0.95); opacity: 0.8; }
}

/* ─────────────────────────────────────────────────────────────
   MAIN WORKSPACE
   ───────────────────────────────────────────────────────────── */
#main-content {
    display: flex;
    flex: 1;
    overflow: hidden;
    position: relative;
}

/* ─────────────────────────────────────────────────────────────
   SIDEBAR
   ───────────────────────────────────────────────────────────── */
#sidebar {
    width: 390px;
    min-width: 350px;
    background-color: var(--bg-surface);
    border-right: 1px solid var(--glass-border);
    display: flex;
    flex-direction: column;
    z-index: 500;
}

.sidebar-tabs {
    display: flex;
    border-bottom: 1px solid var(--glass-border);
    background-color: rgba(0, 0, 0, 0.25);
}

.tab-btn {
    flex: 1;
    height: 44px;
    background: transparent;
    border: none;
    border-bottom: 2px solid transparent;
    color: var(--text-secondary);
    font-family: var(--font-mono);
    font-size: 11.5px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: all 0.2s;
    letter-spacing: 0.5px;
}

.tab-btn:hover {
    color: var(--text-primary);
    background-color: rgba(255, 255, 255, 0.02);
}

.tab-btn.active {
    color: var(--primary-lavender);
    border-bottom-color: var(--primary-lavender);
    background-color: rgba(201, 209, 255, 0.06);
}

.tab-counter {
    font-size: 10px;
    padding: 2px 6px;
    border-radius: 10px;
    background-color: rgba(255, 255, 255, 0.08);
    color: var(--text-secondary);
}

.tab-btn.active .tab-counter {
    background-color: rgba(201, 209, 255, 0.25);
    color: var(--text-primary);
}

.tab-pane {
    display: none;
    flex: 1;
    flex-direction: column;
    overflow-y: auto;
}

.tab-pane.active {
    display: flex;
}

.nodes-subnav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 14px;
    border-bottom: 1px solid var(--glass-border);
    background: rgba(0, 0, 0, 0.15);
    gap: 8px;
}

.subnav-segmented {
    display: flex;
    background: rgba(0, 0, 0, 0.35);
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    padding: 3px;
    gap: 3px;
}

.subnav-btn {
    background: transparent;
    border: none;
    border-radius: 6px;
    padding: 5px 11px;
    font-family: var(--font-mono);
    font-size: 10px;
    font-weight: 700;
    color: var(--text-secondary);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: all 0.2s;
    letter-spacing: 0.6px;
}

.subnav-btn:hover {
    color: var(--text-primary);
}

.subnav-btn.active {
    background: rgba(201, 209, 255, 0.2);
    color: var(--primary-lavender);
    box-shadow: 0 0 8px rgba(201, 209, 255, 0.15);
}

.sub-counter {
    font-size: 9px;
    padding: 1px 5px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.08);
    color: inherit;
}

.subnav-btn.active .sub-counter {
    background: rgba(201, 209, 255, 0.3);
}

/* ─────────────────────────────────────────────────────────────
   BENTO PARTICIPANT CARDS
   ───────────────────────────────────────────────────────────── */
.participant-list {
    padding: 14px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.bento-card {
    background-color: var(--bg-card);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    padding: 12px 14px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

.bento-card:hover {
    border-color: var(--border-highlight);
    transform: translateY(-1px);
    background-color: #1a233a;
}

.bento-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.bento-identity {
    display: flex;
    align-items: center;
    gap: 9px;
    flex: 1;
    min-width: 0;
}

.bento-avatar {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    flex-shrink: 0;
    border: 1.5px solid rgba(255, 255, 255, 0.25);
    color: #000;
}

.bento-title-col {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.bento-callsign {
    font-weight: 700;
    font-size: 13.5px;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.bento-badge-tag {
    font-family: var(--font-mono);
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.8px;
    text-transform: uppercase;
}

.bento-badge-tag.movetain {
    color: var(--primary-lavender);
}

.bento-badge-tag.hardware {
    color: var(--signal-green);
}

.bento-metrics-header {
    display: flex;
    align-items: center;
    gap: 6px;
}

.bento-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 6px;
}

.bento-tile {
    background: rgba(11, 19, 38, 0.55);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 7px;
    padding: 6px 9px;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.bento-tile.full-width {
    grid-column: span 2;
}

.bento-tile-label {
    font-size: 8.5px;
    font-weight: 700;
    color: var(--text-muted);
    letter-spacing: 0.6px;
    font-family: var(--font-mono);
    display: flex;
    align-items: center;
    gap: 4px;
    text-transform: uppercase;
}

.bento-tile-value {
    font-size: 11px;
    font-weight: 700;
    color: var(--text-primary);
    font-family: var(--font-mono);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.user-identity {
    display: flex;
    align-items: center;
    gap: 10px;
}

.user-avatar {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 13px;
    color: #000;
}

.user-meta {
    display: flex;
    flex-direction: column;
}

.user-callsign {
    font-weight: 700;
    font-size: 13.5px;
    color: var(--text-primary);
}

.user-subinfo {
    font-family: var(--font-mono);
    font-size: 10.5px;
    color: var(--text-muted);
}

.chips-row {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.chip {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 8px;
    border-radius: 5px;
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 600;
    background-color: rgba(255, 255, 255, 0.05);
    color: var(--text-secondary);
}

.chip.bpm {
    background-color: rgba(255, 68, 68, 0.12);
    color: #FF8585;
    border: 1px solid rgba(255, 68, 68, 0.25);
}

.chip.bpm svg {
    animation: heartBeat 1.2s infinite ease-in-out;
}

@keyframes heartBeat {
    0% { transform: scale(1); }
    15% { transform: scale(1.25); }
    30% { transform: scale(1); }
    45% { transform: scale(1.15); }
    60% { transform: scale(1); }
}

.chip.bat {
    background-color: rgba(74, 225, 118, 0.1);
    color: var(--signal-green);
}

.chip.bat.low {
    background-color: rgba(255, 95, 0, 0.15);
    color: var(--action-orange);
}

.chip.signal {
    background-color: rgba(68, 136, 255, 0.1);
    color: #9EC0FF;
}

/* ─────────────────────────────────────────────────────────────
   CHAT PANEL
   ───────────────────────────────────────────────────────────── */
.chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 14px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.chat-bubble {
    background-color: var(--bg-card);
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    padding: 10px 14px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.chat-bubble.from-web {
    border-left: 3px solid var(--signal-green);
    background-color: rgba(74, 225, 118, 0.04);
}

.chat-bubble.sos {
    border: 1px solid var(--alert-red);
    background-color: rgba(255, 68, 68, 0.12);
}

.bubble-header {
    display: flex;
    justify-content: space-between;
    font-size: 11px;
    font-family: var(--font-mono);
}

.bubble-sender {
    font-weight: 700;
    color: var(--primary-lavender);
}

.bubble-time {
    color: var(--text-muted);
}

.bubble-text {
    font-size: 13.5px;
    line-height: 1.45;
    word-break: break-word;
    color: var(--text-primary);
}

.chat-input-box {
    border-top: 1px solid var(--glass-border);
    padding: 12px 14px;
    background-color: var(--bg-surface);
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.quick-presets {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.btn-chip {
    background-color: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--glass-border);
    color: var(--text-secondary);
    border-radius: 5px;
    padding: 4px 9px;
    font-size: 11px;
    font-family: var(--font-ui);
    cursor: pointer;
    transition: all 0.2s;
}

.btn-chip:hover {
    background-color: var(--button-bg);
    border-color: var(--button-border);
    color: var(--text-primary);
}

.input-row {
    display: flex;
    gap: 8px;
}

.input-row input {
    flex: 1;
    background-color: var(--bg-card);
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    padding: 9px 14px;
    color: var(--text-primary);
    font-size: 13px;
    outline: none;
    font-family: var(--font-ui);
}

.input-row input:focus {
    border-color: var(--primary-lavender);
}

.spectator-warning-hint {
    font-size: 11px;
    color: var(--action-orange);
    text-align: center;
    font-family: var(--font-mono);
}

/* ─────────────────────────────────────────────────────────────
   MAP CONTAINER
   ───────────────────────────────────────────────────────────── */
#map-container {
    flex: 1;
    position: relative;
    background-color: #0c101c;
}

#map {
    width: 100%;
    height: 100%;
}

/* ─────────────────────────────────────────────────────────────
   BUTTONS & MODALS
   ───────────────────────────────────────────────────────────── */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 7px 14px;
    border-radius: 7px;
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 700;
    cursor: pointer;
    border: 1px solid transparent;
    transition: all 0.2s;
    letter-spacing: 0.5px;
}

.btn-primary {
    background-color: var(--signal-green);
    color: #000;
}
.btn-primary:hover {
    background-color: #3fce6a;
}

.btn-secondary {
    background-color: var(--button-bg);
    border-color: var(--button-border);
    color: var(--text-primary);
}
.btn-secondary:hover {
    background-color: rgba(201, 209, 255, 0.25);
    border-color: var(--primary-lavender);
}

.btn-icon {
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 6px;
    border-radius: 6px;
}
.btn-icon:hover {
    color: var(--text-primary);
    background-color: rgba(255, 255, 255, 0.06);
}

.modal-overlay {
    display: none;
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background-color: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
    z-index: 4000; /* Higher than landing-overlay (3000) */
    align-items: center;
    justify-content: center;
}

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

.modal-card {
    width: 90%;
    max-width: 540px;
    background-color: var(--bg-card);
    border: 1px solid var(--border-highlight);
    border-radius: 14px;
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 18px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.modal-header h3 {
    font-size: 15px;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: 0.5px;
}

.btn-close {
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 22px;
    cursor: pointer;
}

.share-field {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 12px;
}

.share-field label {
    font-size: 12.5px;
    font-weight: 600;
    color: var(--text-secondary);
}

.copy-input-group {
    display: flex;
    gap: 8px;
}

.copy-input-group input {
    flex: 1;
    background-color: var(--bg-surface);
    border: 1px solid var(--glass-border);
    border-radius: 7px;
    padding: 9px 12px;
    font-family: var(--font-mono);
    font-size: 11.5px;
    color: var(--primary-lavender);
}

/* Pulsing radar empty state */
.empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    color: var(--text-muted);
    font-size: 12px;
    text-align: center;
    gap: 14px;
    font-family: var(--font-mono);
}

.pulsing-radar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 2px solid var(--signal-green);
    position: relative;
    animation: radarPulse 2s infinite ease-out;
}

@keyframes radarPulse {
    0% { transform: scale(0.5); opacity: 1; }
    100% { transform: scale(1.6); opacity: 0; }
}

/* Custom Leaflet Popups */
.leaflet-popup-content-wrapper {
    background-color: var(--bg-card) !important;
    border: 1px solid var(--border-highlight) !important;
    color: var(--text-primary) !important;
    border-radius: 10px !important;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5) !important;
}
.leaflet-popup-tip {
    background-color: var(--bg-card) !important;
}

/* Responsive for Mobile */
@media (max-width: 768px) {
    #main-content {
        flex-direction: column-reverse;
    }
    #sidebar {
        width: 100%;
        min-width: 100%;
        height: 46vh;
    }
    #map-container {
        height: 54vh;
    }
}

/* ─────────────────────────────────────────────────────────────
   LANDING & AUTHENTICATION OVERLAY
   ───────────────────────────────────────────────────────────── */
.landing-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--bg-obsidian); /* #0B1326 completely solid brand background */
    z-index: 3000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    overflow-y: auto;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.landing-overlay.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.landing-card {
    width: 100%;
    max-width: 580px;
    background: linear-gradient(180deg, #131C32 0%, #0D1527 100%);
    border: 1px solid rgba(201, 209, 255, 0.2);
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.75), 0 0 40px rgba(201, 209, 255, 0.08);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.landing-brand-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    padding: 22px 24px 18px;
    background: rgba(16, 25, 45, 0.95);
    user-select: none;
}

.landing-brand-mark {
    height: 38px;
    width: auto;
    object-fit: contain;
    filter: drop-shadow(0 0 14px rgba(201, 209, 255, 0.45));
}

.landing-brand-text {
    height: 24px;
    width: auto;
    object-fit: contain;
    filter: drop-shadow(0 0 12px rgba(201, 209, 255, 0.35));
}

/* Hero Banner */
.landing-banner-wrap {
    width: 100%;
    margin: 0;
    padding: 0;
    overflow: hidden;
    line-height: 0;
}

.landing-banner-img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    margin: 0;
    padding: 0;
}

/* Auth Body */
.landing-auth-body {
    padding: 22px 26px 26px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.landing-description {
    font-size: 13px;
    line-height: 1.5;
    color: var(--text-secondary);
    text-align: center;
}

/* User Profile Widget */
.user-profile-widget {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    background: rgba(74, 225, 118, 0.08);
    border: 1px solid rgba(74, 225, 118, 0.3);
    border-radius: 10px;
}

.user-avatar-round {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 2px solid var(--signal-green);
}

.user-info-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.user-name-text {
    font-size: 13px;
    font-weight: 700;
    color: var(--text-primary);
}

.user-email-text {
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--text-secondary);
}

/* Google Sign-in Button */
.btn-google-action {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: 100%;
    padding: 12px 18px;
    background-color: #FFFFFF;
    color: #1F1F1F;
    border: none;
    border-radius: 8px;
    font-family: var(--font-mono);
    font-size: 12.5px;
    font-weight: 700;
    letter-spacing: 0.8px;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
    transition: all 0.2s ease;
}

.btn-google-action:hover {
    background-color: #F2F2F2;
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.45);
}

.btn-google-action:active {
    transform: translateY(0);
}

.google-icon {
    flex-shrink: 0;
}

/* Quick Room Enter */
.landing-room-box {
    margin-top: 4px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.room-input-row {
    display: flex;
    gap: 8px;
}

#landing-room-input {
    flex: 1;
    background: rgba(0, 0, 0, 0.35);
    border: 1px solid var(--border-highlight);
    border-radius: 8px;
    color: var(--primary-lavender);
    font-family: var(--font-mono);
    font-size: 12px;
    font-weight: 600;
    padding: 10px 14px;
    text-transform: uppercase;
}

#landing-room-input:focus {
    outline: none;
    border-color: var(--primary-lavender);
    box-shadow: 0 0 10px rgba(201, 209, 255, 0.25);
}

#btn-enter-workspace {
    flex-shrink: 0;
    padding: 0 18px;
    border-radius: 8px;
}

.landing-subtext {
    text-align: center;
    font-family: var(--font-mono);
    font-size: 10px;
    color: var(--text-muted);
    letter-spacing: 0.5px;
    margin-top: 4px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.landing-legal-links {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 11px;
}

.landing-legal-links a {
    color: var(--primary-lavender);
    text-decoration: none;
    transition: opacity 0.2s;
}

.landing-legal-links a:hover {
    text-decoration: underline;
    opacity: 0.8;
}

.copyright-sub {
    font-size: 9.5px;
    color: var(--text-muted);
}

/* Header Top User Pill */
.top-user-pill {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 4px 8px 4px 4px;
    background: rgba(201, 209, 255, 0.1);
    border: 1px solid rgba(201, 209, 255, 0.25);
    border-radius: 20px;
}

.top-user-img {
    width: 24px;
    height: 24px;
    border-radius: 50%;
}

.top-user-name {
    font-size: 11.5px;
    font-weight: 600;
    color: var(--primary-lavender);
    max-width: 110px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.btn-logout-mini {
    background: none;
    border: none;
    color: var(--alert-red);
    font-family: var(--font-mono);
    font-size: 9.5px;
    font-weight: 700;
    cursor: pointer;
    padding: 2px 4px;
    border-radius: 4px;
    letter-spacing: 0.5px;
}

.btn-logout-mini:hover {
    background: rgba(255, 68, 68, 0.15);
}

.btn-sm {
    padding: 5px 10px;
    font-size: 10.5px;
}

/* ─────────────────────────────────────────────────────────────
   LOBBY VIEW STYLING
   ───────────────────────────────────────────────────────────── */
.lobby-card {
    max-width: 640px !important;
}

.lobby-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 22px;
    background: rgba(0, 0, 0, 0.35);
    border-bottom: 1px solid var(--glass-border);
}

.lobby-user-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.lobby-avatar-img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid var(--primary-lavender);
    object-fit: cover;
}

.lobby-user-meta {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.lobby-user-title {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-primary);
}

.lobby-user-sub {
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--text-muted);
}

.lobby-rooms-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 22px;
    background: rgba(255, 255, 255, 0.02);
    border-bottom: 1px solid var(--glass-border);
}

.lobby-rooms-heading {
    display: flex;
    align-items: center;
    gap: 10px;
}

.lobby-rooms-heading h3 {
    font-family: var(--font-mono);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1px;
    color: var(--text-primary);
}

.lobby-limit-tag {
    font-family: var(--font-mono);
    font-size: 9.5px;
    font-weight: 700;
    color: var(--action-orange);
    background: rgba(255, 95, 0, 0.12);
    border: 1px solid rgba(255, 95, 0, 0.3);
    padding: 2px 6px;
    border-radius: 4px;
}

.lobby-empty-rooms {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    text-align: center;
    gap: 10px;
}

.lobby-empty-rooms h4 {
    font-family: var(--font-mono);
    font-size: 13px;
    color: var(--text-secondary);
    letter-spacing: 1px;
}

.lobby-empty-rooms p {
    font-size: 12px;
    color: var(--text-muted);
    max-width: 380px;
    line-height: 1.5;
}

.lobby-rooms-container {
    padding: 18px 22px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

/* ─────────────────────────────────────────────────────────────
   BENTO ROOM CARD
   ───────────────────────────────────────────────────────────── */
.bento-room-card {
    background: rgba(16, 25, 45, 0.7);
    border: 1px solid var(--border-highlight);
    border-radius: 12px;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
    transition: all 0.2s ease;
}

.bento-room-card:hover {
    border-color: var(--primary-lavender);
    box-shadow: 0 8px 30px rgba(201, 209, 255, 0.1);
}

.bento-room-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.bento-room-identity {
    display: flex;
    align-items: center;
    gap: 10px;
}

.bento-room-status-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: var(--signal-green);
    box-shadow: 0 0 10px var(--signal-green);
    animation: pulse 1.8s infinite;
}

.bento-room-title {
    font-size: 15px;
    font-weight: 800;
    letter-spacing: 0.5px;
    color: #FFFFFF;
}

.bento-room-loc {
    font-size: 11px;
    color: var(--primary-lavender);
    font-family: var(--font-mono);
}

.bento-room-desc {
    font-size: 12.5px;
    color: var(--text-secondary);
    line-height: 1.4;
}

/* Secret Key with Eye Toggle */
.secret-key-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 4px;
}

.btn-text-copy {
    background: none;
    border: none;
    color: var(--primary-lavender);
    font-family: var(--font-mono);
    font-size: 9.5px;
    font-weight: 700;
    cursor: pointer;
    letter-spacing: 0.5px;
}

.btn-text-copy:hover {
    text-decoration: underline;
}

.secret-key-input-wrap {
    display: flex;
    align-items: center;
    background: rgba(0, 0, 0, 0.45);
    border: 1px solid var(--border-highlight);
    border-radius: 6px;
    padding: 0 8px;
    gap: 6px;
}

.secret-key-input-wrap input {
    flex: 1;
    background: transparent;
    border: none;
    color: var(--signal-green);
    font-family: var(--font-mono);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1px;
    padding: 6px 0;
    outline: none;
}

.btn-eye-toggle {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    display: flex;
    align-items: center;
    padding: 4px;
    transition: color 0.2s;
}

.btn-eye-toggle:hover {
    color: var(--primary-lavender);
}

.bento-room-footer {
    margin-top: 4px;
}

/* ─────────────────────────────────────────────────────────────
   CREATE ROOM MODAL STYLING
   ───────────────────────────────────────────────────────────── */
.modal-input {
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid var(--border-highlight);
    border-radius: 7px;
    color: var(--primary-lavender);
    font-family: var(--font-mono);
    font-size: 12px;
    padding: 8px 12px;
    width: 100%;
    outline: none;
    text-transform: uppercase;
}

.modal-input:focus, .modal-textarea:focus {
    border-color: var(--primary-lavender);
    box-shadow: 0 0 10px rgba(201, 209, 255, 0.2);
}

.modal-textarea {
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid var(--border-highlight);
    border-radius: 7px;
    color: var(--text-primary);
    font-family: var(--font-ui);
    font-size: 12px;
    padding: 8px 12px;
    width: 100%;
    outline: none;
    resize: none;
}

.picker-map-box {
    width: 100%;
    height: 180px;
    border-radius: 8px;
    border: 1px solid var(--border-highlight);
    overflow: hidden;
    position: relative;
}

.picker-coords-label {
    font-family: var(--font-mono);
    font-size: 10.5px;
    color: var(--primary-lavender);
    margin-top: 4px;
}


