/**
 * MAFIA EMPIRE v2.0
 * Complete UI Overhaul
 */

/* ========== CSS VARIABLES ========== */
:root {
    /* Core Colors */
    --bg-dark: #0a0e14;
    --bg-panel: #0d1117;
    --bg-card: rgba(255,255,255,0.03);
    --bg-card-hover: rgba(255,255,255,0.06);
    --bg-input: rgba(0,0,0,0.4);
    
    /* Text Colors */
    --text: #e6eefc;
    --text-muted: #8b98a5;
    --text-dim: #536471;
    
    /* Accent Colors */
    --accent: #7dd3fc;
    --accent-dim: rgba(125,211,252,0.15);
    --success: #34d399;
    --success-dim: rgba(52,211,153,0.15);
    --danger: #fb7185;
    --danger-dim: rgba(251,113,133,0.15);
    --warning: #fbbf24;
    --warning-dim: rgba(251,191,36,0.15);
    --purple: #a78bfa;
    --purple-dim: rgba(167,139,250,0.15);
    --gold: #fcd34d;
    --gold-dim: rgba(252,211,77,0.15);
    --platinum: #e5e7eb;
    --platinum-dim: rgba(229,231,235,0.15);
    
    /* Quality Colors */
    --quality-grey: #9ca3af;
    --quality-green: #34d399;
    --quality-blue: #60a5fa;
    --quality-purple: #a78bfa;
    --quality-gold: #fcd34d;
    
    /* Borders & Shadows */
    --border: rgba(255,255,255,0.08);
    --border-light: rgba(255,255,255,0.12);
    --shadow: 0 4px 24px rgba(0,0,0,0.4);
    --glow-accent: 0 0 20px rgba(125,211,252,0.3);
    
    /* Sizing */
    --topbar-height: 56px;
    --bottombar-height: 60px;
    --chat-width: 280px;
    --panel-width: 400px;
    --radius: 12px;
    --radius-lg: 16px;
    --radius-sm: 8px;
}

/* ========== RESET ========== */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    -webkit-text-size-adjust: 100%;
    -webkit-tap-highlight-color: transparent;
}

body {
    font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
    font-size: 14px;
    line-height: 1.5;
    background: var(--bg-dark);
    color: var(--text);
    min-height: 100vh;
    overflow: hidden;
    -webkit-font-smoothing: antialiased;
}

a {
    color: var(--accent);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

/* ========== SCROLLBAR ========== */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: rgba(255,255,255,0.15);
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(255,255,255,0.25);
}

/* ========== MAIN LAYOUT ========== */
.game-layout {
    display: grid;
    grid-template-rows: var(--topbar-height) 1fr var(--bottombar-height);
    grid-template-columns: var(--chat-width) 1fr;
    grid-template-areas:
        "topbar topbar"
        "chat map"
        "bottombar bottombar";
    height: 100vh;
    width: 100vw;
    overflow: hidden;
}

/* ========== TOPBAR ========== */
.topbar {
    grid-area: topbar;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 16px;
    background: rgba(10, 14, 20, 0.95);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    z-index: 100;
}

.topbar-left {
    display: flex;
    align-items: center;
    gap: 16px;
}

.brand {
    font-weight: 800;
    font-size: 18px;
    letter-spacing: 0.5px;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 8px;
}

.brand-icon {
    font-size: 24px;
}

.topbar-center {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: center;
}

.topbar-right {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Resource Bars */
.resource-bars {
    display: flex;
    gap: 6px;
}

.resource-bar {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 4px 10px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    min-width: 70px;
}

.resource-bar .label {
    font-size: 9px;
    text-transform: uppercase;
    color: var(--text-muted);
    letter-spacing: 0.5px;
}

.resource-bar .value {
    font-size: 12px;
    font-weight: 600;
}

.resource-bar .bar {
    width: 100%;
    height: 3px;
    background: rgba(0,0,0,0.4);
    border-radius: 2px;
    margin-top: 3px;
    overflow: hidden;
}

.resource-bar .fill {
    height: 100%;
    border-radius: 2px;
    transition: width 0.3s ease;
}

.resource-bar.energy .fill { background: linear-gradient(90deg, #60a5fa, #3b82f6); }
.resource-bar.stamina .fill { background: linear-gradient(90deg, #fbbf24, #f59e0b); }
.resource-bar.nerve .fill { background: linear-gradient(90deg, #a78bfa, #8b5cf6); }
.resource-bar.vitality .fill { background: linear-gradient(90deg, #fb7185, #ef4444); }

/* Currency Pills */
.currency-pills {
    display: flex;
    gap: 6px;
}

.currency-pill {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 6px 10px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
    white-space: nowrap;
    cursor: pointer;
    transition: all 0.15s;
}

.currency-pill:hover {
    background: var(--bg-card-hover);
}

.currency-pill.cash { border-color: rgba(52,211,153,0.3); }
.currency-pill.gold { border-color: rgba(252,211,77,0.3); }
.currency-pill.platinum { border-color: rgba(229,231,235,0.3); }

.currency-pill .icon {
    font-size: 14px;
}

/* User Menu */
.user-menu {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.15s;
}

.user-menu:hover {
    background: var(--bg-card-hover);
}

.user-menu .avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent), var(--purple));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
}

.user-menu .name {
    font-weight: 600;
    font-size: 13px;
}

.user-menu .level {
    font-size: 11px;
    color: var(--accent);
}

/* ========== CHAT SIDEBAR ========== */
.chat-sidebar {
    grid-area: chat;
    display: flex;
    flex-direction: column;
    background: var(--bg-panel);
    border-right: 1px solid var(--border);
    overflow: hidden;
}

.chat-tabs {
    display: flex;
    border-bottom: 1px solid var(--border);
}

.chat-tab {
    flex: 1;
    padding: 12px;
    text-align: center;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.15s;
    border-bottom: 2px solid transparent;
}

.chat-tab:hover {
    color: var(--text);
    background: var(--bg-card);
}

.chat-tab.active {
    color: var(--accent);
    border-bottom-color: var(--accent);
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.chat-message {
    padding: 8px 10px;
    background: var(--bg-card);
    border-radius: var(--radius-sm);
    font-size: 13px;
}

.chat-message .username {
    font-weight: 600;
    color: var(--accent);
    cursor: pointer;
}

.chat-message .username:hover {
    text-decoration: underline;
}

.chat-message .time {
    font-size: 10px;
    color: var(--text-dim);
    margin-left: 6px;
}

.chat-message .text {
    margin-top: 4px;
    color: var(--text);
    word-break: break-word;
}

.chat-empty {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    text-align: center;
    padding: 20px;
}

.chat-empty .icon {
    font-size: 48px;
    margin-bottom: 12px;
    opacity: 0.5;
}

.chat-empty .title {
    font-weight: 600;
    margin-bottom: 4px;
}

.chat-empty .btn {
    margin-top: 12px;
}

.chat-input-wrapper {
    padding: 12px;
    border-top: 1px solid var(--border);
}

.chat-input {
    display: flex;
    gap: 8px;
}

.chat-input input {
    flex: 1;
    padding: 10px 14px;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    background: var(--bg-input);
    color: var(--text);
    font-size: 13px;
}

.chat-input input:focus {
    outline: none;
    border-color: var(--accent);
}

.chat-input button {
    padding: 10px 16px;
    border-radius: var(--radius);
    border: none;
    background: var(--accent);
    color: var(--bg-dark);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.15s;
}

.chat-input button:hover {
    opacity: 0.9;
}

/* ========== MAP AREA ========== */
.map-area {
    grid-area: map;
    position: relative;
    overflow: hidden;
    background: radial-gradient(ellipse at 50% 30%, #151c28 0%, var(--bg-dark) 100%);
}

#game-map {
    width: 100%;
    height: 100%;
    display: block;
    touch-action: none;
    cursor: grab;
}

#game-map:active {
    cursor: grabbing;
}

/* Layer Indicator */
.layer-indicator {
    position: absolute;
    top: 16px;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    z-index: 50;
    pointer-events: none;
}

.layer-name {
    display: block;
    font-weight: 700;
    font-size: 16px;
    margin-bottom: 8px;
    text-shadow: 0 2px 12px rgba(0,0,0,0.9);
    letter-spacing: 1px;
}

.layer-dots {
    display: flex;
    gap: 10px;
    justify-content: center;
    pointer-events: auto;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255,255,255,0.2);
    cursor: pointer;
    transition: all 0.2s ease;
    border: 2px solid rgba(255,255,255,0.1);
}

.dot:hover {
    background: rgba(255,255,255,0.4);
    transform: scale(1.1);
}

.dot.active {
    background: var(--accent);
    border-color: var(--accent);
    box-shadow: var(--glow-accent);
    transform: scale(1.3);
}

.map-hint {
    position: absolute;
    bottom: 16px;
    left: 16px;
    font-size: 11px;
    color: var(--text-muted);
    background: rgba(0,0,0,0.7);
    padding: 8px 12px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    pointer-events: none;
}

/* ========== SIDE PANEL ========== */
.panel {
    position: fixed;
    top: var(--topbar-height);
    right: 0;
    width: min(var(--panel-width), 94vw);
    height: calc(100vh - var(--topbar-height) - var(--bottombar-height));
    background: linear-gradient(180deg, var(--bg-panel) 0%, #080b10 100%);
    border-left: 1px solid var(--border);
    transform: translateX(105%);
    transition: transform 0.28s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 90;
    display: flex;
    flex-direction: column;
    box-shadow: -8px 0 40px rgba(0,0,0,0.5);
}

/* ========================================================
   CENTER MODAL PANEL (replaces side panel)
   ======================================================== */

body.modal-active {
    overflow: hidden;
}

.modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0);
    backdrop-filter: blur(0px);
    -webkit-backdrop-filter: blur(0px);
    pointer-events: none;
    opacity: 0;
    transition: background 0.3s ease, backdrop-filter 0.3s ease, opacity 0.3s ease;
}

.modal-overlay.open {
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    pointer-events: auto;
    opacity: 1;
}

.modal-panel {
    position: relative;
    width: 92%;
    max-width: 720px;
    max-height: 85vh;
    background: linear-gradient(180deg, #1a1e2e 0%, #141820 100%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    box-shadow:
        0 24px 80px rgba(0, 0, 0, 0.6),
        0 0 0 1px rgba(255, 255, 255, 0.04),
        0 0 60px rgba(96, 165, 250, 0.05);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transform: scale(0.92) translateY(20px);
    opacity: 0;
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease;
}

.modal-overlay.open .modal-panel {
    transform: scale(1) translateY(0);
    opacity: 1;
}

.modal-panel::before {
    content: '';
    position: absolute;
    top: 0;
    left: 10%;
    right: 10%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(96, 165, 250, 0.4), transparent);
    z-index: 1;
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    background: rgba(255, 255, 255, 0.03);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    flex-shrink: 0;
}

.modal-title {
    font-size: 1rem;
    font-weight: 600;
    color: #e5e7eb;
    margin: 0;
    letter-spacing: 0.3px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 80%;
}

.modal-close {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    color: #9ca3af;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.modal-close:hover {
    background: rgba(239, 68, 68, 0.15);
    border-color: rgba(239, 68, 68, 0.3);
    color: #ef4444;
    transform: rotate(90deg);
}

.modal-body {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 20px;
    scrollbar-width: thin;
    scrollbar-color: rgba(255,255,255,0.1) transparent;
}

.modal-body::-webkit-scrollbar {
    width: 6px;
}

.modal-body::-webkit-scrollbar-track {
    background: transparent;
}

.modal-body::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
}

.modal-body::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.2);
}
/* Hide mobile-only chat toggle on desktop */
#mobile-chat-toggle {
    display: none;
}
@media (max-width: 600px) {
    .modal-panel {
        width: 96%;
        max-height: 90vh;
        border-radius: 12px;
    }
    .modal-header {
        padding: 12px 16px;
    }
    .modal-body {
        padding: 16px;
    }
    .modal-title {
        font-size: 0.9rem;
    }
}

@media (min-width: 1200px) {
    .modal-panel {
        max-width: 800px;
    }
}

.modal-overlay.open .modal-body .panel-section {
    animation: modalContentFade 0.4s ease 0.1s both;
}

@keyframes modalContentFade {
    from { opacity: 0; transform: translateY(8px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ============================================================
   DASHBOARD — Single Layer Grid (v4)
   ============================================================ */

.dashboard {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    padding: 12px 16px 6px;
    box-sizing: border-box;
    overflow: hidden; /* NO scroll */
}

.dashboard .layer-indicator {
    position: relative;
    top: auto;
    left: auto;
    transform: none;
    margin-bottom: 10px;
    text-align: center;
}

.dashboard .layer-name {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: #6b7280;
    display: block;
}

/* Hide layer dots — single layer now */
.dashboard .layer-dots {
    display: none;
}

.dash-layer {
    display: none;
    width: 100%;
    max-width: 760px;
    animation: layerFadeIn 0.35s ease;
}

.dash-layer.active {
    display: block;
}

@keyframes layerFadeIn {
    from { opacity: 0; transform: translateY(8px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ---- 4-Column Compact Grid ---- */
.dash-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    width: 100%;
}

/* ---- Tile (compact — fits 16 tiles on screen) ---- */
.dash-tile {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 14px 6px 12px;
    background: linear-gradient(135deg, rgba(30, 35, 50, 0.9) 0%, rgba(20, 24, 35, 0.95) 100%);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.25s ease;
    position: relative;
    overflow: hidden;
    min-height: 0; /* let content decide */
}

.dash-tile::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 50% 0%, rgba(96, 165, 250, 0.06) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.dash-tile:hover {
    border-color: rgba(96, 165, 250, 0.3);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3), 0 0 0 1px rgba(96, 165, 250, 0.15);
}

.dash-tile:hover::before { opacity: 1; }
.dash-tile:active { transform: translateY(0) scale(0.97); }

/* ---- Icon Wrapper (supports img OR emoji fallback) ---- */
.tile-icon-wrap {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
}

.tile-img {
    width: 36px;
    height: 36px;
    object-fit: contain;
    image-rendering: auto;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.4));
}

.tile-icon-fallback {
    font-size: 1.6rem;
    line-height: 1;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.3));
}

/* Legacy emoji icon (for quickbar etc) */
.dash-tile .tile-icon {
    font-size: 1.6rem;
    line-height: 1;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.3));
    z-index: 1;
}

.dash-tile .tile-label {
    font-size: 0.75rem;
    font-weight: 600;
    color: #e5e7eb;
    letter-spacing: 0.3px;
    z-index: 1;
    text-align: center;
    line-height: 1.2;
}

.dash-tile .tile-sub {
    font-size: 0.55rem;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    z-index: 1;
}

/* ---- Tile Color Variants ---- */
.dash-tile.tile-danger:hover {
    border-color: rgba(239, 68, 68, 0.4);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3), 0 0 0 1px rgba(239, 68, 68, 0.2);
}
.dash-tile.tile-danger::before {
    background: radial-gradient(ellipse at 50% 0%, rgba(239, 68, 68, 0.08) 0%, transparent 70%);
}

.dash-tile.tile-warning:hover {
    border-color: rgba(251, 191, 36, 0.4);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3), 0 0 0 1px rgba(251, 191, 36, 0.2);
}
.dash-tile.tile-warning::before {
    background: radial-gradient(ellipse at 50% 0%, rgba(251, 191, 36, 0.08) 0%, transparent 70%);
}

.dash-tile.tile-gold:hover {
    border-color: rgba(234, 179, 8, 0.4);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3), 0 0 0 1px rgba(234, 179, 8, 0.2);
}
.dash-tile.tile-gold::before {
    background: radial-gradient(ellipse at 50% 0%, rgba(234, 179, 8, 0.08) 0%, transparent 70%);
}

.dash-tile.tile-platinum:hover {
    border-color: rgba(167, 139, 250, 0.4);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3), 0 0 0 1px rgba(167, 139, 250, 0.2);
}
.dash-tile.tile-platinum::before {
    background: radial-gradient(ellipse at 50% 0%, rgba(167, 139, 250, 0.08) 0%, transparent 70%);
}

/* ---- Quick Bar ---- */
.dash-quickbar {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 4px;
    width: 100%;
    max-width: 760px;
    margin-top: 10px;
    padding: 6px 4px;
    background: rgba(15, 18, 28, 0.6);
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.04);
}

.qbar-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    padding: 6px 10px;
    background: transparent;
    border: none;
    border-radius: 8px;
    color: #9ca3af;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
    flex: 1;
    min-width: 0;
}

.qbar-btn:hover {
    color: #e5e7eb;
    background: rgba(255, 255, 255, 0.06);
}

.qbar-btn span:first-child {
    font-size: 1.1rem;
}

.qbar-label {
    font-size: 0.5rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    white-space: nowrap;
}

.qbar-badge {
    position: absolute;
    top: 1px;
    right: 6px;
    background: #ef4444;
    color: #fff;
    font-size: 0.5rem;
    font-weight: 700;
    min-width: 14px;
    height: 14px;
    line-height: 14px;
    text-align: center;
    border-radius: 7px;
    padding: 0 3px;
    box-shadow: 0 0 6px rgba(239, 68, 68, 0.5);
    animation: badgePulse 2s infinite;
}

@keyframes badgePulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

/* ---- Responsive ---- */
@media (max-width: 600px) {
    .dash-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 6px;
    }
    .dash-tile {
        padding: 10px 4px 8px;
    }
    .tile-img { width: 28px; height: 28px; }
    .tile-icon-wrap { width: 28px; height: 28px; }
    .tile-icon-fallback { font-size: 1.3rem; }
    .dash-tile .tile-label { font-size: 0.65rem; }
    .dash-tile .tile-sub { font-size: 0.5rem; }
}

@media (max-width: 380px) {
    .dash-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}



/* ========== BOTTOM NAVIGATION ========== */
.bottombar {
    grid-area: bottombar;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 8px 16px;
    background: rgba(10, 14, 20, 0.98);
    backdrop-filter: blur(12px);
    border-top: 1px solid var(--border);
    z-index: 100;
}

.nav-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 8px 16px;
    border-radius: var(--radius);
    border: 1px solid transparent;
    background: transparent;
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.15s;
    min-width: 70px;
    position: relative;
}

.nav-btn:hover {
    background: var(--bg-card);
    color: var(--text);
    border-color: var(--border);
}

.nav-btn.active {
    background: var(--accent-dim);
    color: var(--accent);
    border-color: rgba(125,211,252,0.3);
}

.nav-btn .icon {
    font-size: 20px;
}

.nav-btn .label {
    font-size: 10px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.nav-btn .badge {
    position: absolute;
    top: 4px;
    right: 12px;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    border-radius: 9px;
    background: var(--danger);
    color: white;
    font-size: 10px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
}

.nav-btn.platinum-btn {
    background: linear-gradient(135deg, rgba(167,139,250,0.1), rgba(252,211,77,0.1));
    border-color: rgba(252,211,77,0.2);
}

.nav-btn.platinum-btn:hover {
    background: linear-gradient(135deg, rgba(167,139,250,0.2), rgba(252,211,77,0.2));
}

.nav-btn.platinum-btn .icon {
    background: linear-gradient(135deg, var(--purple), var(--gold));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ========== BUTTONS ========== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 11px 18px;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    background: var(--bg-card);
    color: var(--text);
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.15s ease;
    text-decoration: none;
    white-space: nowrap;
}

.btn:hover {
    background: var(--bg-card-hover);
    text-decoration: none;
}

.btn:active {
    transform: scale(0.98);
}

.btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    pointer-events: none;
}

.btn-primary {
    background: var(--accent-dim);
    border-color: rgba(125,211,252,0.3);
    color: var(--accent);
}

.btn-primary:hover {
    background: rgba(125,211,252,0.25);
}

.btn-success {
    background: var(--success-dim);
    border-color: rgba(52,211,153,0.3);
    color: var(--success);
}

.btn-danger {
    background: var(--danger-dim);
    border-color: rgba(251,113,133,0.3);
    color: var(--danger);
}

.btn-warning {
    background: var(--warning-dim);
    border-color: rgba(251,191,36,0.3);
    color: var(--warning);
}

.btn-gold {
    background: var(--gold-dim);
    border-color: rgba(252,211,77,0.3);
    color: var(--gold);
}

.btn-block { width: 100%; }
.btn-sm { padding: 7px 12px; font-size: 12px; }
.btn-icon {
    width: 36px;
    height: 36px;
    padding: 0;
    background: transparent;
    border: none;
    font-size: 20px;
    border-radius: 50%;
}

.btn-group {
    display: flex;
    gap: 10px;
}

/* ========== CARDS ========== */
.card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 16px;
    margin-bottom: 12px;
    transition: all 0.15s ease;
}

.card:hover {
    background: var(--bg-card-hover);
    border-color: var(--border-light);
}

.card.disabled {
    opacity: 0.5;
    pointer-events: none;
}

.card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
}

.card-title {
    font-weight: 600;
    font-size: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.card-meta {
    display: flex;
    gap: 12px;
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 8px;
}

/* Quality Borders */
.card.quality-grey { border-left: 3px solid var(--quality-grey); }
.card.quality-green { border-left: 3px solid var(--quality-green); }
.card.quality-blue { border-left: 3px solid var(--quality-blue); }
.card.quality-purple { border-left: 3px solid var(--quality-purple); }
.card.quality-gold { border-left: 3px solid var(--quality-gold); }

/* ========== FORMS ========== */
.form-group {
    margin-bottom: 16px;
}

.form-group label {
    display: block;
    margin-bottom: 6px;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-muted);
}

input[type="text"],
input[type="email"],
input[type="password"],
input[type="number"],
select,
textarea {
    width: 100%;
    padding: 12px 14px;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    background: var(--bg-input);
    color: var(--text);
    font-size: 14px;
    font-family: inherit;
    transition: all 0.15s ease;
}

input:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(125,211,252,0.1);
}

/* ========== PROGRESS BARS ========== */
.progress-bar {
    height: 8px;
    background: rgba(0,0,0,0.4);
    border-radius: 4px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    border-radius: 4px;
    transition: width 0.3s ease;
    background: var(--accent);
}

/* ========== STAT DISPLAYS ========== */
.stat-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.stat-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 14px;
    text-align: center;
}

.stat-card .icon {
    font-size: 24px;
    margin-bottom: 6px;
}

.stat-card .label {
    font-size: 11px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.stat-card .value {
    font-size: 24px;
    font-weight: 800;
    margin: 4px 0;
}

.stat-card .btn {
    margin-top: 8px;
    width: 100%;
}

/* ========== STATUS BANNERS ========== */
.status-banner {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px;
    border-radius: var(--radius);
    margin-bottom: 16px;
}

.status-banner .icon {
    font-size: 36px;
}

.status-banner .content {
    flex: 1;
}

.status-banner .title {
    font-weight: 700;
    font-size: 15px;
    margin-bottom: 2px;
}

.status-banner .subtitle {
    font-size: 13px;
    color: var(--text-muted);
}

.status-banner.jail {
    background: var(--danger-dim);
    border: 1px solid rgba(251,113,133,0.3);
}

.status-banner.hospital {
    background: var(--warning-dim);
    border: 1px solid rgba(251,191,36,0.3);
}

.status-banner.success {
    background: var(--success-dim);
    border: 1px solid rgba(52,211,153,0.3);
}

/* ========== TOAST ========== */
.toast {
    position: fixed;
    bottom: calc(var(--bottombar-height) + 20px);
    left: 50%;
    transform: translateX(-50%) translateY(120px);
    background: rgba(15, 20, 25, 0.95);
    border: 1px solid var(--border);
    padding: 14px 24px;
    border-radius: var(--radius);
    font-size: 14px;
    font-weight: 500;
    z-index: 300;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(12px);
    max-width: calc(100vw - 32px);
    text-align: center;
    box-shadow: var(--shadow);
}

.toast.show {
    transform: translateX(-50%) translateY(0);
}

.toast.success { border-color: rgba(52,211,153,0.4); color: var(--success); }
.toast.error { border-color: rgba(251,113,133,0.4); color: var(--danger); }
.toast.warning { border-color: rgba(251,191,36,0.4); color: var(--warning); }

/* ========== INVENTORY GRID ========== */
.inventory-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 8px;
}

.inventory-slot {
    aspect-ratio: 1;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.15s;
    position: relative;
}

.inventory-slot:hover {
    background: var(--bg-card-hover);
    border-color: var(--border-light);
}

.inventory-slot.empty {
    opacity: 0.4;
}

.inventory-slot .icon {
    font-size: 24px;
}

.inventory-slot .quantity {
    position: absolute;
    bottom: 4px;
    right: 4px;
    font-size: 10px;
    font-weight: 700;
    background: rgba(0,0,0,0.7);
    padding: 2px 5px;
    border-radius: 4px;
}

.inventory-slot.quality-grey { border-color: var(--quality-grey); }
.inventory-slot.quality-green { border-color: var(--quality-green); box-shadow: 0 0 8px rgba(52,211,153,0.3); }
.inventory-slot.quality-blue { border-color: var(--quality-blue); box-shadow: 0 0 8px rgba(96,165,250,0.3); }
.inventory-slot.quality-purple { border-color: var(--quality-purple); box-shadow: 0 0 8px rgba(167,139,250,0.3); }
.inventory-slot.quality-gold { border-color: var(--quality-gold); box-shadow: 0 0 12px rgba(252,211,77,0.4); }

/* ========== AUTH PAGES ========== */
.auth-body {
    overflow: auto;
    background: linear-gradient(135deg, #0a0e14, #151c28);
}

.auth-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.auth-card {
    width: 100%;
    max-width: 420px;
    background: var(--bg-panel);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 40px 36px;
    box-shadow: var(--shadow);
}

.auth-logo {
    font-size: 64px;
    text-align: center;
    margin-bottom: 8px;
}

.auth-title {
    text-align: center;
    font-size: 28px;
    font-weight: 800;
    margin-bottom: 32px;
}

.auth-footer {
    text-align: center;
    margin-top: 24px;
    font-size: 13px;
    color: var(--text-muted);
}

/* ========== ALERTS ========== */
.alert {
    padding: 14px 16px;
    border-radius: var(--radius);
    margin-bottom: 16px;
    font-size: 13px;
}

.alert-error {
    background: var(--danger-dim);
    border: 1px solid rgba(251,113,133,0.3);
    color: var(--danger);
}

.alert-success {
    background: var(--success-dim);
    border: 1px solid rgba(52,211,153,0.3);
    color: var(--success);
}

/* ========== RESPONSIVE ========== */
@media (max-width: 1024px) {
    .game-layout {
        grid-template-columns: 1fr;
        grid-template-areas:
            "topbar"
            "map"
            "bottombar";
    }
    
    .chat-sidebar {
        position: fixed;
        left: 0;
        top: var(--topbar-height);
        width: var(--chat-width);
        height: calc(100vh - var(--topbar-height) - var(--bottombar-height));
        transform: translateX(-105%);
        transition: transform 0.28s ease;
        z-index: 85;
    }
    
    .chat-sidebar.open {
        transform: translateX(0);
    }
    
    .chat-toggle {
        display: flex;
    }
}

@media (max-width: 768px) {
    :root {
        --topbar-height: 50px;
        --bottombar-height: 56px;
        --chat-width: 100vw;
    }
    
    .topbar {
        padding: 0 10px;
    }
    
    .brand {
        font-size: 14px;
    }
    
    .resource-bars {
        display: none;
    }
    
    .currency-pills {
        gap: 4px;
    }
    
    .currency-pill {
        padding: 4px 8px;
        font-size: 11px;
    }
    
    .nav-btn {
        padding: 6px 10px;
        min-width: 50px;
    }
    
    .nav-btn .label {
        font-size: 9px;
    }
    
    .inventory-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .stat-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .currency-pill .amount {
        display: none;
    }
    
    .nav-btn .label {
        display: none;
    }
    
    .nav-btn {
        min-width: 44px;
    }
    
    .panel {
        width: 100vw;
    }
}
/* ==================== GLOBAL AUTOCOMPLETE ==================== */
.autocomplete-wrapper {
    position: relative;
}

.autocomplete-dropdown {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 50;
    background: rgba(14, 15, 20, 0.98);
    border: 1px solid #333;
    border-top: none;
    border-radius: 0 0 6px 6px;
    max-height: 220px;
    overflow-y: auto;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.6);
    scrollbar-width: thin;
}

.autocomplete-dropdown::-webkit-scrollbar { width: 4px; }
.autocomplete-dropdown::-webkit-scrollbar-thumb { background: #333; border-radius: 2px; }

.ac-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 9px 12px;
    cursor: pointer;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
    transition: background 0.1s;
}

.ac-item:hover,
.ac-item.ac-active {
    background: rgba(96, 165, 250, 0.1);
}

.ac-item:last-child { border-bottom: none; }

.ac-item-left {
    display: flex;
    align-items: center;
    gap: 8px;
}

.ac-item-name {
    font-size: 0.8rem;
    font-weight: 600;
    color: #e5e7eb;
}

.ac-item-right {
    display: flex;
    align-items: center;
    gap: 10px;
}

.ac-item-level {
    font-size: 0.65rem;
    font-weight: 700;
}

.ac-item-respect {
    font-size: 0.6rem;
    color: #9ca3af;
}

.ac-empty {
    padding: 12px;
    color: #666;
    font-size: 0.75rem;
    text-align: center;
}
/* ========================================================
   FEATURE DASHBOARD - LAYERED TILE SYSTEM
   ======================================================== */

.dashboard {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    padding: 20px 16px 10px;
    box-sizing: border-box;
    overflow-y: auto;
}

/* --- Layer Indicator (reuse existing, minor tweaks) --- */
.dashboard .layer-indicator {
    position: relative;
    top: auto;
    left: auto;
    transform: none;
    margin-bottom: 16px;
    text-align: center;
}

.dashboard .layer-name {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #9ca3af;
    display: block;
    margin-bottom: 6px;
}

.dashboard .layer-dots {
    display: flex;
    gap: 8px;
    justify-content: center;
}

.dashboard .dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
}

.dashboard .dot.active {
    background: #60a5fa;
    box-shadow: 0 0 8px rgba(96, 165, 250, 0.5);
    transform: scale(1.2);
}

.dashboard .dot:hover:not(.active) {
    background: rgba(255, 255, 255, 0.35);
}

@keyframes layerFadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* --- 2x2 Tile Grid --- */
.dash-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    width: 100%;
}

/* --- Individual Tiles --- */
.dash-tile {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 24px 12px 20px;
    background: linear-gradient(135deg, rgba(30, 35, 50, 0.9) 0%, rgba(20, 24, 35, 0.95) 100%);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 14px;
    cursor: pointer;
    transition: all 0.25s ease;
    position: relative;
    overflow: hidden;
    min-height: 120px;
}

.dash-tile::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 50% 0%, rgba(96, 165, 250, 0.06) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.dash-tile:hover {
    border-color: rgba(96, 165, 250, 0.3);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3), 0 0 0 1px rgba(96, 165, 250, 0.15);
}

.dash-tile:hover::before {
    opacity: 1;
}

.dash-tile:active {
    transform: translateY(0) scale(0.98);
}

.dash-tile .tile-icon {
    font-size: 2rem;
    line-height: 1;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.3));
    z-index: 1;
}

.dash-tile .tile-label {
    font-size: 0.85rem;
    font-weight: 600;
    color: #e5e7eb;
    letter-spacing: 0.3px;
    z-index: 1;
}

.dash-tile .tile-sub {
    font-size: 0.65rem;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    z-index: 1;
}

/* --- Tile Accent Variants --- */
.dash-tile.tile-danger:hover {
    border-color: rgba(239, 68, 68, 0.4);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3), 0 0 0 1px rgba(239, 68, 68, 0.2);
}
.dash-tile.tile-danger::before {
    background: radial-gradient(ellipse at 50% 0%, rgba(239, 68, 68, 0.08) 0%, transparent 70%);
}

.dash-tile.tile-warning:hover {
    border-color: rgba(251, 191, 36, 0.4);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3), 0 0 0 1px rgba(251, 191, 36, 0.2);
}
.dash-tile.tile-warning::before {
    background: radial-gradient(ellipse at 50% 0%, rgba(251, 191, 36, 0.08) 0%, transparent 70%);
}

.dash-tile.tile-gold:hover {
    border-color: rgba(234, 179, 8, 0.4);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3), 0 0 0 1px rgba(234, 179, 8, 0.2);
}
.dash-tile.tile-gold::before {
    background: radial-gradient(ellipse at 50% 0%, rgba(234, 179, 8, 0.08) 0%, transparent 70%);
}

.dash-tile.tile-platinum:hover {
    border-color: rgba(167, 139, 250, 0.4);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3), 0 0 0 1px rgba(167, 139, 250, 0.2);
}
.dash-tile.tile-platinum::before {
    background: radial-gradient(ellipse at 50% 0%, rgba(167, 139, 250, 0.08) 0%, transparent 70%);
}

/* --- Persistent Quick Bar (Row 4 items) --- */
.dash-quickbar {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 6px;
    width: 100%;
    max-width: 600px;
    margin-top: 16px;
    padding: 8px 4px;
    background: rgba(15, 18, 28, 0.6);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.04);
}

.qbar-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    padding: 8px 12px;
    background: transparent;
    border: none;
    border-radius: 8px;
    color: #9ca3af;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
    flex: 1;
    min-width: 0;
}

.qbar-btn:hover {
    color: #e5e7eb;
    background: rgba(255, 255, 255, 0.06);
}

.qbar-btn span:first-child {
    font-size: 1.15rem;
}

.qbar-label {
    font-size: 0.55rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    white-space: nowrap;
}

.qbar-badge {
    position: absolute;
    top: 2px;
    right: 8px;
    background: #ef4444;
    color: #fff;
    font-size: 0.5rem;
    font-weight: 700;
    min-width: 14px;
    height: 14px;
    line-height: 14px;
    text-align: center;
    border-radius: 7px;
    padding: 0 3px;
    box-shadow: 0 0 6px rgba(239, 68, 68, 0.5);
    animation: badgePulse 2s infinite;
}

.qbar-explore {
    color: #60a5fa;
}

.qbar-explore:hover {
    color: #93c5fd;
    background: rgba(96, 165, 250, 0.1);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 480px) {
    .dash-grid {
        gap: 8px;
    }
    .dash-tile {
        padding: 18px 8px 14px;
        min-height: 100px;
        border-radius: 10px;
    }
    .dash-tile .tile-icon {
        font-size: 1.6rem;
    }
    .dash-tile .tile-label {
        font-size: 0.75rem;
    }
    .qbar-btn {
        padding: 6px 8px;
    }
}

@media (min-width: 768px) {
    .dash-tile {
        min-height: 140px;
        padding: 30px 16px 24px;
    }
    .dash-tile .tile-icon {
        font-size: 2.4rem;
    }
}
/* ========================================================
   INVENTORY SYSTEM - VISUAL GRID
   ======================================================== */

.inv-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    width: 100%;
}

.inv-slot:hover {
    border-color: rgba(255, 255, 255, 0.25) !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.inv-slot:active {
    transform: scale(0.97);
}

/* Rarity glow on hover */
.inv-slot[data-type="weapon"]:hover { box-shadow: 0 0 12px rgba(239, 68, 68, 0.15); }
.inv-slot[data-type="armor"]:hover { box-shadow: 0 0 12px rgba(96, 165, 250, 0.15); }
.inv-slot[data-type="consumable"]:hover { box-shadow: 0 0 12px rgba(52, 211, 153, 0.15); }

/* Filter hidden slots */
.inv-slot.inv-hidden {
    display: none !important;
}

@media (max-width: 480px) {
    .inv-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 6px;
    }
}

@media (min-width: 768px) {
    .inv-grid {
        grid-template-columns: repeat(5, 1fr);
    }
}
/* ========================================================
   PLAYER PROFILE
   ======================================================== */

.profile-panel {
    overflow: hidden;
}

.profile-avatar {
    transition: all 0.3s ease;
}

.profile-avatar:hover {
    transform: scale(1.05);
    box-shadow: 0 0 20px rgba(96, 165, 250, 0.2);
}

/* Profile background accents */
.profile-panel::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 120px;
    background: radial-gradient(ellipse at 50% -20%, rgba(96, 165, 250, 0.08) 0%, transparent 70%);
    pointer-events: none;
}
/* ========== CHAT AVATARS ========== */
.chat-msg-header {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 2px;
}

.chat-avatar {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.chat-avatar-default {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.65rem;
    background: rgba(255, 255, 255, 0.05);
    line-height: 1;
}
/* ============================================
   MAFIA EMPIRE — UI OVERHAUL v3.0
   APPEND TO END OF style.css
   DO NOT DELETE ANYTHING ABOVE THIS LINE
   ============================================ */

/* --- Force wider grid: 3 columns desktop, 2 mobile --- */
.dash-grid {
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 14px !important;
    max-width: 100% !important;
}

.dash-layer {
    max-width: 960px !important;
    width: 100% !important;
}

.dashboard {
    justify-content: flex-start !important;
    padding-top: 16px !important;
    align-items: center !important;
}

/* --- Layer indicator: bigger, labeled, glowing --- */
.layer-indicator {
    margin-bottom: 20px !important;
    padding: 0 !important;
}

.layer-indicator .layer-name {
    font-size: 13px !important;
    font-weight: 800 !important;
    letter-spacing: 3px !important;
    text-transform: uppercase !important;
    color: #94a3b8 !important;
    margin-bottom: 12px !important;
    display: block !important;
    text-align: center !important;
}

.layer-dots {
    display: flex !important;
    gap: 10px !important;
    justify-content: center !important;
}

.layer-dots .dot {
    width: 10px !important;
    height: 10px !important;
    border-radius: 50% !important;
    background: rgba(255,255,255,0.15) !important;
    border: 2px solid rgba(255,255,255,0.1) !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
}

.layer-dots .dot:hover {
    background: rgba(255,255,255,0.3) !important;
    transform: scale(1.2) !important;
}

.layer-dots .dot.active {
    background: #38bdf8 !important;
    border-color: rgba(56,189,248,0.5) !important;
    box-shadow: 0 0 12px rgba(56,189,248,0.6), 0 0 4px rgba(56,189,248,0.8) !important;
    transform: scale(1.15) !important;
}

/* --- TILE OVERHAUL: Premium glassmorphism cards --- */
.dash-tile {
    position: relative !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    padding: 28px 16px 24px !important;
    background: linear-gradient(145deg, rgba(20,28,45,0.8), rgba(12,18,30,0.95)) !important;
    border: 1px solid rgba(255,255,255,0.07) !important;
    border-top: 1px solid rgba(255,255,255,0.12) !important;
    border-radius: 16px !important;
    cursor: pointer !important;
    text-align: center !important;
    overflow: hidden !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    box-shadow: 0 4px 20px rgba(0,0,0,0.3), inset 0 1px 0 rgba(255,255,255,0.05) !important;
    min-height: 140px !important;
}

/* Subtle shimmer overlay on each tile */
.dash-tile::before {
    content: '' !important;
    position: absolute !important;
    top: 0 !important;
    left: -100% !important;
    width: 100% !important;
    height: 100% !important;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.03), transparent) !important;
    transition: left 0.6s ease !important;
    z-index: 0 !important;
}

.dash-tile:hover::before {
    left: 100% !important;
}

.dash-tile:hover {
    transform: translateY(-6px) scale(1.02) !important;
    border-color: rgba(255,255,255,0.2) !important;
    box-shadow: 0 12px 40px rgba(0,0,0,0.4), 0 0 30px rgba(56,189,248,0.08), inset 0 1px 0 rgba(255,255,255,0.1) !important;
}

.dash-tile:active {
    transform: translateY(-2px) scale(0.98) !important;
    transition-duration: 0.1s !important;
}

/* --- Tile icons: bigger, glowing --- */
.dash-tile .tile-icon {
    font-size: 38px !important;
    position: relative !important;
    z-index: 1 !important;
    filter: drop-shadow(0 4px 8px rgba(0,0,0,0.5)) !important;
    transition: all 0.3s ease !important;
    margin-bottom: 4px !important;
}

.dash-tile:hover .tile-icon {
    transform: scale(1.2) rotate(-5deg) !important;
    filter: drop-shadow(0 0 16px rgba(255,255,255,0.25)) !important;
}

/* --- Tile text: sharper --- */
.dash-tile .tile-label {
    font-size: 14px !important;
    font-weight: 700 !important;
    color: #fff !important;
    letter-spacing: 0.5px !important;
    position: relative !important;
    z-index: 1 !important;
    line-height: 1.2 !important;
}

.dash-tile .tile-sub {
    font-size: 10px !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 1.5px !important;
    color: #64748b !important;
    position: relative !important;
    z-index: 1 !important;
}

/* --- COLOR-CODED TILES: Each feature has unique personality --- */

/* Crime Alley — Red/Danger */
.dash-tile[data-panel="crimes"] {
    background: linear-gradient(145deg, rgba(40,15,15,0.8), rgba(20,8,8,0.95)) !important;
    border-color: rgba(220,38,38,0.15) !important;
}
.dash-tile[data-panel="crimes"]:hover {
    box-shadow: 0 12px 40px rgba(220,38,38,0.15), 0 0 30px rgba(220,38,38,0.1) !important;
    border-color: rgba(220,38,38,0.4) !important;
}
.dash-tile[data-panel="crimes"]:hover .tile-icon { filter: drop-shadow(0 0 16px rgba(239,68,68,0.7)) !important; }
.dash-tile[data-panel="crimes"] .tile-sub { color: #ef4444 !important; opacity: 0.7; }

/* Careers — Amber/Gold */
.dash-tile[data-panel="careers"] {
    background: linear-gradient(145deg, rgba(40,30,10,0.8), rgba(20,15,5,0.95)) !important;
    border-color: rgba(245,158,11,0.15) !important;
}
.dash-tile[data-panel="careers"]:hover {
    box-shadow: 0 12px 40px rgba(245,158,11,0.15), 0 0 30px rgba(245,158,11,0.1) !important;
    border-color: rgba(245,158,11,0.4) !important;
}
.dash-tile[data-panel="careers"]:hover .tile-icon { filter: drop-shadow(0 0 16px rgba(251,191,36,0.7)) !important; }
.dash-tile[data-panel="careers"] .tile-sub { color: #fbbf24 !important; opacity: 0.7; }

/* Gym — Orange */
.dash-tile[data-panel="gym"] {
    background: linear-gradient(145deg, rgba(40,22,8,0.8), rgba(20,12,4,0.95)) !important;
    border-color: rgba(249,115,22,0.15) !important;
}
.dash-tile[data-panel="gym"]:hover {
    box-shadow: 0 12px 40px rgba(249,115,22,0.15), 0 0 30px rgba(249,115,22,0.1) !important;
    border-color: rgba(249,115,22,0.4) !important;
}
.dash-tile[data-panel="gym"]:hover .tile-icon { filter: drop-shadow(0 0 16px rgba(249,115,22,0.7)) !important; }
.dash-tile[data-panel="gym"] .tile-sub { color: #fb923c !important; opacity: 0.7; }

/* Bank — Emerald */
.dash-tile[data-panel="bank"] {
    background: linear-gradient(145deg, rgba(8,35,25,0.8), rgba(4,18,12,0.95)) !important;
    border-color: rgba(16,185,129,0.15) !important;
}
.dash-tile[data-panel="bank"]:hover {
    box-shadow: 0 12px 40px rgba(16,185,129,0.15), 0 0 30px rgba(16,185,129,0.1) !important;
    border-color: rgba(16,185,129,0.4) !important;
}
.dash-tile[data-panel="bank"]:hover .tile-icon { filter: drop-shadow(0 0 16px rgba(16,185,129,0.7)) !important; }
.dash-tile[data-panel="bank"] .tile-sub { color: #10b981 !important; opacity: 0.7; }

/* Casino — Gold/Luxury */
.dash-tile[data-panel="casino"] {
    background: linear-gradient(145deg, rgba(45,35,8,0.8), rgba(22,18,4,0.95)) !important;
    border-color: rgba(250,204,21,0.2) !important;
}
.dash-tile[data-panel="casino"]:hover {
    box-shadow: 0 12px 40px rgba(250,204,21,0.2), 0 0 30px rgba(250,204,21,0.15) !important;
    border-color: rgba(250,204,21,0.5) !important;
}
.dash-tile[data-panel="casino"]:hover .tile-icon { filter: drop-shadow(0 0 20px rgba(250,204,21,0.8)) !important; }
.dash-tile[data-panel="casino"] .tile-sub { color: #facc15 !important; opacity: 0.7; }

/* Mansion — Purple/Royal */
.dash-tile[data-panel="mansion"] {
    background: linear-gradient(145deg, rgba(30,15,45,0.8), rgba(15,8,22,0.95)) !important;
    border-color: rgba(139,92,246,0.15) !important;
}
.dash-tile[data-panel="mansion"]:hover {
    box-shadow: 0 12px 40px rgba(139,92,246,0.15), 0 0 30px rgba(139,92,246,0.1) !important;
    border-color: rgba(139,92,246,0.4) !important;
}
.dash-tile[data-panel="mansion"]:hover .tile-icon { filter: drop-shadow(0 0 16px rgba(139,92,246,0.7)) !important; }
.dash-tile[data-panel="mansion"] .tile-sub { color: #a78bfa !important; opacity: 0.7; }

/* Fight Club — Blood Red */
.dash-tile[data-panel="attack_hub"] {
    background: linear-gradient(145deg, rgba(50,10,10,0.8), rgba(25,5,5,0.95)) !important;
    border-color: rgba(239,68,68,0.2) !important;
}
.dash-tile[data-panel="attack_hub"]:hover {
    box-shadow: 0 12px 40px rgba(239,68,68,0.2), 0 0 30px rgba(239,68,68,0.15) !important;
    border-color: rgba(239,68,68,0.5) !important;
}
.dash-tile[data-panel="attack_hub"]:hover .tile-icon { filter: drop-shadow(0 0 16px rgba(239,68,68,0.8)) !important; }
.dash-tile[data-panel="attack_hub"] .tile-sub { color: #f87171 !important; opacity: 0.7; }

/* Emergency — Warning Orange */
.dash-tile[data-panel="emergency"] {
    background: linear-gradient(145deg, rgba(45,25,5,0.8), rgba(22,12,2,0.95)) !important;
    border-color: rgba(245,158,11,0.2) !important;
}
.dash-tile[data-panel="emergency"]:hover {
    box-shadow: 0 12px 40px rgba(245,158,11,0.15), 0 0 30px rgba(245,158,11,0.1) !important;
    border-color: rgba(245,158,11,0.4) !important;
}
.dash-tile[data-panel="emergency"]:hover .tile-icon { filter: drop-shadow(0 0 16px rgba(245,158,11,0.7)) !important; }
.dash-tile[data-panel="emergency"] .tile-sub { color: #f59e0b !important; opacity: 0.7; }

/* Family — Indigo */
.dash-tile[data-panel="family"] {
    background: linear-gradient(145deg, rgba(20,15,45,0.8), rgba(10,8,22,0.95)) !important;
    border-color: rgba(99,102,241,0.15) !important;
}
.dash-tile[data-panel="family"]:hover {
    box-shadow: 0 12px 40px rgba(99,102,241,0.15), 0 0 30px rgba(99,102,241,0.1) !important;
    border-color: rgba(99,102,241,0.4) !important;
}
.dash-tile[data-panel="family"]:hover .tile-icon { filter: drop-shadow(0 0 16px rgba(99,102,241,0.7)) !important; }
.dash-tile[data-panel="family"] .tile-sub { color: #818cf8 !important; opacity: 0.7; }

/* Territory — Rose/War */
.dash-tile[data-panel="territory"] {
    background: linear-gradient(145deg, rgba(45,12,20,0.8), rgba(22,6,10,0.95)) !important;
    border-color: rgba(244,63,94,0.15) !important;
}
.dash-tile[data-panel="territory"]:hover {
    box-shadow: 0 12px 40px rgba(244,63,94,0.15), 0 0 30px rgba(244,63,94,0.1) !important;
    border-color: rgba(244,63,94,0.4) !important;
}
.dash-tile[data-panel="territory"]:hover .tile-icon { filter: drop-shadow(0 0 16px rgba(244,63,94,0.7)) !important; }
.dash-tile[data-panel="territory"] .tile-sub { color: #fb7185 !important; opacity: 0.7; }

/* Travel — Sky Blue */
.dash-tile[data-panel="travel"] {
    background: linear-gradient(145deg, rgba(8,25,45,0.8), rgba(4,12,22,0.95)) !important;
    border-color: rgba(14,165,233,0.15) !important;
}
.dash-tile[data-panel="travel"]:hover {
    box-shadow: 0 12px 40px rgba(14,165,233,0.15), 0 0 30px rgba(14,165,233,0.1) !important;
    border-color: rgba(14,165,233,0.4) !important;
}
.dash-tile[data-panel="travel"]:hover .tile-icon { filter: drop-shadow(0 0 16px rgba(14,165,233,0.7)) !important; }
.dash-tile[data-panel="travel"] .tile-sub { color: #38bdf8 !important; opacity: 0.7; }

/* Black Market — Deep Purple/Mysterious */
.dash-tile[data-panel="black_market"] {
    background: linear-gradient(145deg, rgba(25,10,40,0.8), rgba(12,5,20,0.95)) !important;
    border-color: rgba(147,51,234,0.2) !important;
}
.dash-tile[data-panel="black_market"]:hover {
    box-shadow: 0 12px 40px rgba(147,51,234,0.2), 0 0 30px rgba(147,51,234,0.15) !important;
    border-color: rgba(147,51,234,0.5) !important;
}
.dash-tile[data-panel="black_market"]:hover .tile-icon { filter: drop-shadow(0 0 16px rgba(147,51,234,0.8)) !important; }
.dash-tile[data-panel="black_market"] .tile-sub { color: #a855f7 !important; opacity: 0.7; }

/* Cosmetics — Platinum/Diamond */
.dash-tile[data-panel="cosmetics"] {
    background: linear-gradient(145deg, rgba(30,30,40,0.8), rgba(15,15,20,0.95)) !important;
    border-color: rgba(226,232,240,0.15) !important;
}
.dash-tile[data-panel="cosmetics"]:hover {
    box-shadow: 0 12px 40px rgba(226,232,240,0.15), 0 0 30px rgba(255,255,255,0.1) !important;
    border-color: rgba(226,232,240,0.5) !important;
}
.dash-tile[data-panel="cosmetics"]:hover .tile-icon { filter: drop-shadow(0 0 16px rgba(255,255,255,0.8)) !important; }
.dash-tile[data-panel="cosmetics"] .tile-sub { color: #e2e8f0 !important; opacity: 0.7; }

/* Inventory — Green */
.dash-tile[data-panel="inventory"] {
    background: linear-gradient(145deg, rgba(10,35,18,0.8), rgba(5,18,8,0.95)) !important;
    border-color: rgba(34,197,94,0.15) !important;
}
.dash-tile[data-panel="inventory"]:hover {
    box-shadow: 0 12px 40px rgba(34,197,94,0.15), 0 0 30px rgba(34,197,94,0.1) !important;
    border-color: rgba(34,197,94,0.4) !important;
}
.dash-tile[data-panel="inventory"]:hover .tile-icon { filter: drop-shadow(0 0 16px rgba(34,197,94,0.7)) !important; }
.dash-tile[data-panel="inventory"] .tile-sub { color: #22c55e !important; opacity: 0.7; }

/* Market — Teal */
.dash-tile[data-panel="market"] {
    background: linear-gradient(145deg, rgba(8,30,30,0.8), rgba(4,15,15,0.95)) !important;
    border-color: rgba(20,184,166,0.15) !important;
}
.dash-tile[data-panel="market"]:hover {
    box-shadow: 0 12px 40px rgba(20,184,166,0.15), 0 0 30px rgba(20,184,166,0.1) !important;
    border-color: rgba(20,184,166,0.4) !important;
}
.dash-tile[data-panel="market"]:hover .tile-icon { filter: drop-shadow(0 0 16px rgba(20,184,166,0.7)) !important; }
.dash-tile[data-panel="market"] .tile-sub { color: #2dd4bf !important; opacity: 0.7; }

/* Rankings — Gold Trophy */
.dash-tile[data-panel="rankings"] {
    background: linear-gradient(145deg, rgba(40,32,8,0.8), rgba(20,16,4,0.95)) !important;
    border-color: rgba(234,179,8,0.15) !important;
}
.dash-tile[data-panel="rankings"]:hover {
    box-shadow: 0 12px 40px rgba(234,179,8,0.15), 0 0 30px rgba(234,179,8,0.1) !important;
    border-color: rgba(234,179,8,0.4) !important;
}
.dash-tile[data-panel="rankings"]:hover .tile-icon { filter: drop-shadow(0 0 16px rgba(234,179,8,0.7)) !important; }

/* Support — Muted */
.dash-tile[data-panel="support"] {
    background: linear-gradient(145deg, rgba(20,20,28,0.8), rgba(10,10,14,0.95)) !important;
}

/* Search — Muted */
.dash-tile[data-panel="search"] {
    background: linear-gradient(145deg, rgba(20,20,28,0.8), rgba(10,10,14,0.95)) !important;
}

/* --- Bottom quickbar polish --- */
.dash-quickbar {
    background: linear-gradient(180deg, rgba(10,14,22,0.95), rgba(6,8,14,0.98)) !important;
    border-top: 1px solid rgba(255,255,255,0.06) !important;
    backdrop-filter: blur(20px) !important;
    -webkit-backdrop-filter: blur(20px) !important;
}

.qbar-btn {
    transition: all 0.2s ease !important;
}

.qbar-btn:hover {
    background: rgba(255,255,255,0.05) !important;
    transform: translateY(-2px) !important;
}

.qbar-btn.active {
    color: #38bdf8 !important;
    background: linear-gradient(180deg, rgba(56,189,248,0.1), transparent) !important;
}

/* --- RESPONSIVE: 2 columns on tablet, 2 on mobile --- */
@media (max-width: 900px) {
    .dash-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 10px !important;
    }
    .dash-tile {
        min-height: 120px !important;
        padding: 20px 12px 18px !important;
    }
    .dash-tile .tile-icon { font-size: 30px !important; }
    .dash-tile .tile-label { font-size: 12px !important; }
}

@media (max-width: 480px) {
    .dash-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 8px !important;
    }
    .dash-tile {
        min-height: 100px !important;
        padding: 16px 8px 14px !important;
        border-radius: 12px !important;
    }
    .dash-tile .tile-icon { font-size: 26px !important; }
    .dash-tile .tile-label { font-size: 11px !important; }
    .dash-tile .tile-sub { font-size: 8px !important; }
}
/* ============================================================
   MOBILE RESPONSIVE — IN-GAME
   ============================================================ */

@media (max-width: 768px) {

    /* ---- Global ---- */
    html, body {
        overflow-x: hidden;
        -webkit-overflow-scrolling: touch;
    }

    .elite-app {
        display: flex;
        flex-direction: column;
        min-height: 100vh;
        min-height: 100dvh; /* dynamic viewport for mobile browsers */
    }

    /* ---- HEADER: Stack vertically ---- */
    .elite-header {
        flex-direction: column;
        padding: 8px 12px;
        gap: 6px;
        position: sticky;
        top: 0;
        z-index: 100;
        display: flex;
    align-items: center;
    }

    .header-brand {
    display: flex;
    align-items: center;
    }

    .header-brand .brand-text {
        font-size: 0.85rem;
        letter-spacing: 1px;
    }

    /* Vitals: 2x2 grid instead of 4 columns */
    .vitals-box {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 4px 12px;
        width: 100%;
    }

    .vitals-box .v-divider {
        display: none;
    }

    .vital-col {
        min-width: 0;
    }

    .v-label {
        font-size: 0.6rem;
    }

    .v-val {
        font-size: 0.7rem;
    }

    /* XP bar full width */
    .xp-box {
        width: 100%;
    }

    /* Currency: horizontal row, compact */
    .currency-box {
        display: flex;
        justify-content: space-around;
        width: 100%;
        flex-wrap: nowrap;
    }

    .currency-item {
        font-size: 0.75rem;
    }

    .currency-box .v-divider {
        display: none;
    }

    /* Profile: tuck into brand row */
    .header-profile {
        position: absolute;
        top: 8px;
        right: 12px;
    }

    .profile-avatar {
        width: 28px;
        height: 28px;
    }

    .profile-text {
        display: none; /* Hide username text on mobile, avatar is enough */
    }

    /* ---- GOLD SEPARATOR ---- */
    .gold-separator {
        height: 1px;
    }

    /* ---- MAIN CONTENT ---- */
    .elite-main {
        flex-direction: column;
        flex: 1;
        overflow: hidden;
    }

    /* ---- SIDEBAR (Chat): Hidden by default, togglable ---- */
    .elite-sidebar {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        z-index: 200;
        background: rgba(10, 10, 14, 0.98);
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
    }

    .elite-sidebar.mobile-open {
        display: flex;
        flex-direction: column;
    }

    /* ---- CENTER CONTENT: Full width ---- */
    .elite-content {
        width: 100%;
        flex: 1;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        padding: 0;
        padding-bottom: 80px;
    }

    #featureDashboard {
        width: 100% !important;
        padding: 0 8px;
    }

    /* ---- STATS BAR: Scrollable horizontal ---- */
    .stats-bar {
        display: flex;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        gap: 8px;
        padding: 8px 4px;
        scrollbar-width: none;
    }

    .stats-bar::-webkit-scrollbar {
        display: none;
    }

    .stat-item {
        flex: 0 0 auto;
        min-width: 70px;
        font-size: 0.7rem;
    }

    /* ---- LAYER TABS ---- */
    .layer-tabs-bar {
        display: flex;
        width: 100%;
        gap: 0;
        padding: 0 4px;
    }

    .layer-tab-btn {
        flex: 1;
        font-size: 0.75rem;
        padding: 8px 4px;
        text-align: center;
    }

    /* ---- ACTION GRID: 2 columns on mobile ---- */
    .action-grid {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 10px;
        padding: 10px 4px;
    }

    .target-panel,
    .dash-tile {
        width: 100%;
        min-height: 80px;
    }

    .image-panel .panel-img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .target-title {
        font-size: 0.8rem;
    }

    .target-sub {
        font-size: 0.65rem;
    }

    /* ---- MODAL: Full screen on mobile ---- */
    .elite-modal {
        width: 100% !important;
        max-width: 100% !important;
        height: 100% !important;
        max-height: 100% !important;
        border-radius: 0 !important;
        margin: 0 !important;
    }

    .elite-modal-overlay {
        padding: 0;
        align-items: stretch;
    }

    .elite-modal-body {
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        max-height: calc(100vh - 50px);
        max-height: calc(100dvh - 50px);
    }

    /* ---- FOOTER: Fixed bottom nav ---- */
    .elite-footer {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        z-index: 150;
        flex-direction: column;
        padding: 0;
        padding-bottom: env(safe-area-inset-bottom, 0px); /* iPhone notch */
    }

    .footer-left {
        display: flex;
        width: 100%;
        padding: 6px 8px;
        gap: 6px;
    }

    .footer-left .chat-input {
        flex: 1;
        font-size: 14px;
        padding: 8px 10px;
    }

    .footer-left .send-btn {
        padding: 8px 12px;
        font-size: 0.8rem;
    }

    .footer-nav {
        display: flex;
        justify-content: space-around;
        width: 100%;
        padding: 4px 0;
    }

    .nav-item {
        flex: 1;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 2px;
        font-size: 0.6rem;
        padding: 4px 0;
    }

    .nav-item i {
        font-size: 1.2rem;
    }

    .nav-badge {
        position: absolute;
        top: -2px;
        right: calc(50% - 14px);
        font-size: 0.55rem;
    }

    /* ---- TOAST: Adjust for fixed footer ---- */
    .toast {
        bottom: 100px !important;
        left: 50% !important;
        transform: translateX(-50%) !important;
        max-width: 90vw !important;
    }

    /* ---- ANNOUNCEMENTS ---- */
    #global-announcements-wrapper {
        padding: 0 8px;
    }

    #global-announcements-wrapper > div {
        max-width: 100% !important;
        padding: 10px 12px !important;
        font-size: 12px !important;
    }

    /* Padding at bottom so content isn't hidden behind fixed footer */
    .elite-content {
        padding-bottom: 120px;
    }
}

/* Very small screens */
@media (max-width: 380px) {
    .vitals-box {
        gap: 2px 8px;
    }

    .currency-item {
        font-size: 0.65rem;
    }

    .action-grid {
        gap: 6px;
    }

    .layer-tab-btn {
        font-size: 0.65rem;
        padding: 6px 2px;
    }

    .stat-item {
        min-width: 60px;
        font-size: 0.6rem;
    }
}
/* ============================================================
   MOBILE RESPONSIVE — FULL GAME UI
   ============================================================ */

@media (max-width: 768px) {

    /* ---- Prevent horizontal overflow ---- */
    html, body {
        overflow-x: hidden;
        -webkit-overflow-scrolling: touch;
    }

    /* ---- APP LAYOUT: Stack vertically ---- */
    .elite-app {
        display: flex;
        flex-direction: column;
        min-height: 100vh;
        min-height: 100dvh;
    }

    /* ---- HEADER ---- */
    .elite-header {
        flex-direction: column;
        padding: 8px 12px;
        gap: 6px;
        position: sticky;
        top: 0;
        z-index: 100;
    }

    .header-brand {
        display: flex;
        align-items: center;
        justify-content: space-between;
        width: 100%;
    }

    .header-brand .brand-text {
        font-size: 0.85rem;
        letter-spacing: 1px;
    }

    /* Vitals: 2x2 grid */
    .vitals-box {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 4px 12px;
        width: 100%;
    }

    .vitals-box .v-divider {
        display: none;
    }

    .vital-col { min-width: 0; }
    .v-label { font-size: 0.6rem; }
    .v-val { font-size: 0.7rem; }

    /* XP bar full width */
    .xp-box { width: 100%; }

    /* Currency row */
    .currency-box {
        display: flex;
        justify-content: space-around;
        width: 100%;
        flex-wrap: nowrap;
    }

    .currency-item { font-size: 0.75rem; }
    .currency-box .v-divider { display: none; }

    /* Profile: tuck into brand row */
    .header-profile {
        position: absolute;
        top: 8px;
        right: 12px;
    }

    .profile-avatar { width: 28px; height: 28px; }
    .profile-text { display: none; }

    /* ---- MAIN CONTENT: Stack ---- */
    .elite-main {
        flex-direction: column;
        flex: 1;
        overflow: hidden;
    }

    /* ---- SIDEBAR (Chat): Hidden, fullscreen overlay ---- */
    .elite-sidebar {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        z-index: 200;
        background: rgba(10, 10, 14, 0.98);
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
    }

    .elite-sidebar.mobile-open {
        display: flex;
        flex-direction: column;
    }

    /* ---- CENTER CONTENT ---- */
    .elite-content {
        width: 100%;
        flex: 1;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        padding: 0;
        padding-bottom: 120px;
    }
    

    #featureDashboard {
        width: 100% !important;
        padding: 0 8px;
    }

    /* ---- STATS BAR: Horizontal scroll ---- */
    .stats-bar {
        display: flex;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        gap: 8px;
        padding: 8px 4px;
        scrollbar-width: none;
    }

    .stats-bar::-webkit-scrollbar { display: none; }

    .stat-item {
        flex: 0 0 auto;
        min-width: 70px;
        font-size: 0.7rem;
    }

    /* ---- LAYER TABS ---- */
    .layer-tabs-bar {
        display: flex;
        width: 100%;
        gap: 0;
        padding: 0 4px;
    }

    .layer-tab-btn {
        flex: 1;
        font-size: 0.75rem;
        padding: 8px 4px;
        text-align: center;
    }

    /* ---- ACTION GRID: 2 columns ---- */
    .action-grid {
        grid-template-columns: 1fr 1fr !important;
        gap: 10px !important;
        padding: 10px 4px !important;
    }

    .target-panel, .dash-tile {
        width: 100%;
        min-height: 80px;
    }

    .target-title { font-size: 0.8rem; }
    .target-sub { font-size: 0.65rem; }

    /* ---- MODAL: Fullscreen on mobile ---- */
    .elite-modal {
        width: 100% !important;
        max-width: 100% !important;
        height: 100% !important;
        max-height: 100% !important;
        border-radius: 0 !important;
        margin: 0 !important;
    }

    .elite-modal-overlay {
        padding: 0;
        align-items: stretch;
    }

    .elite-modal-body {
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        max-height: calc(100vh - 50px);
        max-height: calc(100dvh - 50px);
    }

    /* ---- FOOTER: Fixed bottom nav ---- */
    .elite-footer {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        z-index: 150;
        flex-direction: column;
        padding: 0;
        padding-bottom: env(safe-area-inset-bottom, 0px);
    }

    .footer-left {
        display: flex;
        width: 100%;
        padding: 6px 8px;
        gap: 6px;
    }

    .footer-left .chat-input {
        flex: 1;
        font-size: 14px;
        padding: 8px 10px;
    }

    .footer-nav {
        display: flex;
        justify-content: space-around;
        width: 100%;
        padding: 4px 0;
    }

    .nav-item {
        flex: 1;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 2px;
        font-size: 0.6rem;
        padding: 4px 0;
    }

    .nav-item i { font-size: 1.2rem; }

    /* ---- TOAST: Above footer ---- */
    .toast {
        bottom: 100px !important;
        left: 50% !important;
        transform: translateX(-50%) !important;
        max-width: 90vw !important;
    }

    /* ---- ANNOUNCEMENTS ---- */
    #global-announcements-wrapper { padding: 0 8px; }
    #global-announcements-wrapper > div {
        max-width: 100% !important;
        padding: 10px 12px !important;
        font-size: 12px !important;
    }
}

/* ---- Very small phones (iPhone SE etc.) ---- */
@media (max-width: 380px) {
    .vitals-box { gap: 2px 8px; }
    .currency-item { font-size: 0.65rem; }
    .action-grid { gap: 6px !important; }
    .layer-tab-btn { font-size: 0.65rem; padding: 6px 2px; }
    .stat-item { min-width: 60px; font-size: 0.6rem; }
}
/* ============================================================
   MOBILE CHAT TOGGLE — Hidden on desktop
   ============================================================ */

.mobile-chat-btn {
    display: none; /* Hidden on desktop */
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 4px;
    color: var(--gold-main);
    font-size: 1.2rem;
    padding: 6px 10px;
    cursor: pointer;
}

.mobile-chat-close-bar {
    display: none; /* Hidden on desktop */
}

.mobile-chat-close-btn {
    width: 100%;
    padding: 12px;
    background: rgba(239, 68, 68, 0.15);
    border: none;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    color: #ff9999;
    font-size: 0.9rem;
    font-family: 'Inter', sans-serif;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

/* ============================================================
   MOBILE RESPONSIVE — FULL GAME UI
   ============================================================ */

@media (max-width: 768px) {

    /* ---- Prevent horizontal overflow ---- */
    html, body {
        overflow-x: hidden !important;
        -webkit-overflow-scrolling: touch;
    }

    /* ---- Show mobile-only elements ---- */
    .mobile-chat-btn {
        display: flex !important;
    }

    .mobile-chat-close-bar {
        display: block !important;
    }

    /* ---- APP LAYOUT: Stack vertically ---- */
    .elite-app {
        display: flex !important;
        flex-direction: column !important;
        min-height: 100vh;
        min-height: 100dvh;
    }

    /* ---- HEADER ---- */
    .elite-header {
        flex-direction: column !important;
        padding: 8px 12px !important;
        gap: 6px !important;
        position: sticky !important;
        top: 0 !important;
        z-index: 100 !important;
    }

    .header-brand {
        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;
        width: 100% !important;
    }

    .header-brand .brand-text {
        font-size: 0.85rem !important;
        letter-spacing: 1px !important;
    }

    /* Vitals: 2x2 grid */
    .vitals-box {
        display: grid !important;
        grid-template-columns: 1fr 1fr !important;
        gap: 4px 12px !important;
        width: 100% !important;
    }

    .vitals-box .v-divider { display: none !important; }
    .vital-col { min-width: 0 !important; }
    .v-label { font-size: 0.6rem !important; }
    .v-val { font-size: 0.7rem !important; }

    /* XP bar full width */
    .xp-box { width: 100% !important; }

    /* Currency row */
    .currency-box {
        display: flex !important;
        justify-content: space-around !important;
        width: 100% !important;
        flex-wrap: nowrap !important;
    }
    .currency-item { font-size: 0.75rem !important; }
    .currency-box .v-divider { display: none !important; }

    /* Profile: tuck into brand row */
    .header-profile {
        position: absolute !important;
        top: 8px !important;
        right: 50px !important;
    }
    .profile-avatar { width: 28px !important; height: 28px !important; }
    .profile-text { display: none !important; }

    /* ---- MAIN CONTENT: Stack ---- */
    .elite-main {
    overflow: visible !important;
}


    /* ---- SIDEBAR (Chat): Hidden by default, fullscreen overlay ---- */
    .elite-sidebar {
        display: none !important;
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        width: 100% !important;
        height: 100% !important;
        z-index: 200 !important;
        background: rgba(10, 10, 14, 0.98) !important;
        backdrop-filter: blur(10px) !important;
        -webkit-backdrop-filter: blur(10px) !important;
    }

    .elite-sidebar.mobile-open {
        display: flex !important;
        flex-direction: column !important;
    }

    /* ---- CENTER CONTENT ---- */
    .elite-content {
        width: 100% !important;
        flex: 1 !important;
        overflow-y: auto !important;
        -webkit-overflow-scrolling: touch !important;
        padding: 0 !important;
        padding-bottom: 120px !important;
    }
    

    #featureDashboard {
        width: 100% !important;
        padding: 0 8px !important;
    }

    /* ---- STATS BAR: Horizontal scroll ---- */
    .stats-bar {
        display: flex !important;
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch !important;
        gap: 8px !important;
        padding: 8px 4px !important;
        scrollbar-width: none !important;
    }
    .stats-bar::-webkit-scrollbar { display: none !important; }

    .stat-item {
        flex: 0 0 auto !important;
        min-width: 70px !important;
        font-size: 0.7rem !important;
    }

    /* ---- LAYER TABS ---- */
    .layer-tabs-bar {
        display: flex !important;
        width: 100% !important;
        gap: 0 !important;
        padding: 0 4px !important;
    }

    .layer-tab-btn {
        flex: 1 !important;
        font-size: 0.75rem !important;
        padding: 8px 4px !important;
        text-align: center !important;
    }

    /* ---- ACTION GRID: 2 columns ---- */
    .action-grid {
        grid-template-columns: 1fr 1fr !important;
        gap: 10px !important;
        padding: 10px 4px !important;
    }

    .target-panel, .dash-tile {
        width: 100% !important;
        min-height: 80px !important;
    }

    .target-title { font-size: 0.8rem !important; }
    .target-sub { font-size: 0.65rem !important; }

    /* ---- MODAL: Fullscreen on mobile ---- */
    .elite-modal {
        width: 100% !important;
        max-width: 100% !important;
        height: 100% !important;
        max-height: 100% !important;
        border-radius: 0 !important;
        margin: 0 !important;
    }

    .elite-modal-overlay {
        padding: 0 !important;
        align-items: stretch !important;
    }

    .elite-modal-body {
        overflow-y: auto !important;
        -webkit-overflow-scrolling: touch !important;
        max-height: calc(100vh - 50px) !important;
        max-height: calc(100dvh - 50px) !important;
    }

    /* ---- FOOTER: Fixed bottom nav ---- */
    .elite-footer {
        position: fixed !important;
        bottom: 0 !important;
        left: 0 !important;
        right: 0 !important;
        z-index: 150 !important;
        flex-direction: column !important;
        padding: 0 !important;
        padding-bottom: env(safe-area-inset-bottom, 0px) !important;
    }

    .footer-left {
        display: flex !important;
        width: 100% !important;
        padding: 6px 8px !important;
        gap: 6px !important;
    }

    .footer-left .chat-input {
        flex: 1 !important;
        font-size: 14px !important;
        padding: 8px 10px !important;
    }

    .footer-nav {
        display: flex !important;
        justify-content: space-around !important;
        width: 100% !important;
        padding: 4px 0 !important;
    }

    .nav-item {
        flex: 1 !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        gap: 2px !important;
        font-size: 0.6rem !important;
        padding: 4px 0 !important;
    }

    .nav-item i { font-size: 1.2rem !important; }

    /* ---- TOAST: Above footer ---- */
    .toast {
        bottom: 100px !important;
        left: 50% !important;
        transform: translateX(-50%) !important;
        max-width: 90vw !important;
    }

    /* ---- ANNOUNCEMENTS ---- */
    #global-announcements-wrapper { padding: 0 8px !important; }
    #global-announcements-wrapper > div {
        max-width: 100% !important;
        padding: 10px 12px !important;
        font-size: 12px !important;
    }
}
.mobile-chat-close-bar {
    display: none;
}
/* ---- Very small phones (iPhone SE etc.) ---- */
@media (max-width: 380px) {
    .vitals-box { gap: 2px 8px !important; }
    .currency-item { font-size: 0.65rem !important; }
    .action-grid { gap: 6px !important; }
    .layer-tab-btn { font-size: 0.65rem !important; padding: 6px 2px !important; }
    .stat-item { min-width: 60px !important; font-size: 0.6rem !important; }
    .mobile-chat-close-bar {
    display: block !important;
}

}
/* ================================== */
/* VIP CHAT VISUALS & CONTEXT MENU    */
/* ================================== */

/* Role & Platinum Glows */
.chat-name.plat-user { color: #d4af37 !important; text-shadow: 0 0 8px rgba(212, 175, 55, 0.6); font-weight: 800; }
.chat-name.admin-user { color: #ef4444 !important; text-shadow: 0 0 8px rgba(239, 68, 68, 0.6); font-weight: 900; }
.chat-name.mod-user { color: #3b82f6 !important; text-shadow: 0 0 8px rgba(59, 130, 246, 0.6); font-weight: 800; }
.chat-badge { font-size: 0.6rem; padding: 1px 4px; border-radius: 4px; margin-right: 4px; vertical-align: middle; color: #fff; text-shadow:none; }
.b-admin { background: #b91c1c; border: 1px solid #f87171; }
.b-mod { background: #2563eb; border: 1px solid #60a5fa; }
.b-plat { background: #b45309; border: 1px solid #fbbf24; }

/* The Click-able Name */
.chat-name.actionable { cursor: pointer; transition: 0.2s; }
.chat-name.actionable:hover { text-decoration: underline; filter: brightness(1.2); }

/* The Floating Action Menu */
#chat-action-menu {
    position: fixed; background: #111; border: 1px solid #d4af37; border-radius: 8px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.9); z-index: 9999; width: 140px;
    display: none; flex-direction: column; overflow: hidden; font-family: "Inter", sans-serif;
}
#chat-action-menu.show { display: flex; animation: slideMenu 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275); }
.ctx-header { background: #000; padding: 6px 10px; font-size: 0.75rem; color: #888; font-weight: bold; border-bottom: 1px solid #333; text-align:center; }
.ctx-btn { background: transparent; color: #ccc; border: none; padding: 8px 10px; font-size: 0.8rem; text-align: left; cursor: pointer; transition: 0.2s; display:flex; gap:8px; align-items:center;}
.ctx-btn:hover { background: rgba(212,175,55,0.1); color: #d4af37; padding-left: 14px; }
.ctx-btn.ctx-red:hover { background: rgba(239,68,68,0.1); color: #ef4444; }

@keyframes slideMenu { 0% { opacity:0; transform: translateY(-10px) scale(0.9); } 100% { opacity:1; transform: translateY(0) scale(1); } }
/* Super Admin Colors (Neon Purple) */
.chat-name.super-admin-user { color: #c084fc !important; text-shadow: 0 0 10px rgba(192, 132, 252, 0.8); font-weight: 900; }
.b-super-admin { background: #7e22ce; border: 1px solid #d8b4fe; }
/* ================================== */
/* UNIFIED MOBILE CHAT MENU (FIXED)   */
/* ================================== */
@media (max-width: 800px) {
    /* Force the Sidebar to override the previous hidden display and slide correctly */
    aside#chat-sidebar {
        display: flex !important; /* Overrides the broken display:none */
        position: fixed !important;
        top: 0 !important;
        right: 0 !important;
        width: 100% !important; 
        height: 100dvh !important; 
        z-index: 9999999 !important; 
        background: #0d0d0d !important;
        flex-direction: column !important;
        pointer-events: auto !important;
        transition: transform 0.35s cubic-bezier(0.25, 0.8, 0.25, 1) !important;
        transform: translateX(105%) !important; /* Hides it off-screen naturally */
    }

    aside#chat-sidebar.mobile-open {
        transform: translateX(0) !important; /* Slides it in */
    }

    /* Fix the Red Close Button */
    .mobile-chat-close-bar {
        display: flex !important;
        flex-shrink: 0 !important;
        padding: 10px 15px !important;
        background: #000 !important;
        border-bottom: 2px solid #333 !important;
        pointer-events: auto !important;
    }
    
    .mobile-chat-close-btn {
        display: block !important;
        width: 100% !important;
        background: #ef4444 !important;
        color: #fff !important;
        padding: 12px !important;
        border: none !important;
        border-radius: 6px !important;
        font-size: 1rem !important;
        font-weight: 900 !important;
        text-transform: uppercase !important;
        cursor: pointer !important;
        pointer-events: auto !important;
    }

    /* Fix the Typing Box Overlap */
    .chat-input-wrapper {
        pointer-events: auto !important;
        margin-bottom: env(safe-area-inset-bottom, 15px) !important; /* Push above iPhone bar */
    }
}
/* ======================== MORE TRAY ======================== */
.more-tray {
    display: none;
    position: fixed;
    bottom: 68px; /* sits just above the footer nav */
    left: 0;
    right: 0;
    z-index: 9998;
    background: rgba(15, 15, 25, 0.97);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-top: 1px solid rgba(212, 175, 55, 0.15);
    border-radius: 16px 16px 0 0;
    padding: 12px 8px 8px;
    flex-wrap: wrap;
    justify-content: center;
    gap: 4px;
    animation: traySlideUp 0.25s ease-out;
}

.more-tray.open {
    display: flex;
}

@keyframes traySlideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.more-tray-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    width: calc(33.333% - 8px);
    padding: 14px 6px;
    border: none;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.04);
    color: #ccc;
    font-size: 0.7rem;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.2s ease;
}

.more-tray-item i {
    font-size: 1.4rem;
    color: #d4af37;
    transition: transform 0.2s ease;
}

.more-tray-item:hover,
.more-tray-item:active {
    background: rgba(212, 175, 55, 0.1);
    color: #fff;
}

.more-tray-item:hover i {
    transform: scale(1.15);
}

/* Logout gets a red accent */
#logoutBtn i {
    color: #ef4444;
}
#logoutBtn:hover {
    background: rgba(239, 68, 68, 0.12);
    color: #ef4444;
}

/* More button active state */
#moreBtn.active i {
    color: #d4af37;
    transform: rotate(90deg);
    transition: transform 0.25s ease;
}

/* Overlay to close tray when tapping outside */
.more-tray-overlay {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 9997;
    background: rgba(0, 0, 0, 0.4);
}

.more-tray-overlay.open {
    display: block;
}

/* Adjust footer-nav for 6 items */
.footer-nav {
    display: flex;
    justify-content: space-around;
}

.footer-nav .nav-item {
    flex: 1;
    min-width: 0;
}
/* ============ PLATINUM PREMIUM BUTTON ============ */

/* Raise it above the other nav items */
.nav-item.platinum-btn {
    position: relative;
    transform: translateY(-6px);
    background: linear-gradient(135deg, #d4af37, #b8860b, #d4af37);
    background-size: 200% 200%;
    animation: platinumShift 4s ease infinite;
    border-radius: 14px;
    padding: 8px 6px;
    box-shadow:
        0 0 12px rgba(212, 175, 55, 0.35),
        0 0 24px rgba(212, 175, 55, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(212, 175, 55, 0.4);
}

/* Gradient movement */
@keyframes platinumShift {
    0%   { background-position: 0% 50%; }
    50%  { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Icon styling */
.nav-item.platinum-btn i {
    color: #fff !important;
    filter: drop-shadow(0 0 4px rgba(255, 255, 255, 0.4));
    animation: diamondGlint 3s ease-in-out infinite;
}

/* Diamond shimmer/glint */
@keyframes diamondGlint {
    0%, 100% { filter: drop-shadow(0 0 4px rgba(255, 255, 255, 0.3)); }
    50%      { filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.8)); }
}

/* Label text */
.nav-item.platinum-btn span {
    color: #fff !important;
    font-weight: 600;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
}

/* Hover / Active state */
.nav-item.platinum-btn:hover,
.nav-item.platinum-btn:active {
    box-shadow:
        0 0 18px rgba(212, 175, 55, 0.5),
        0 0 36px rgba(212, 175, 55, 0.25),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
    transform: translateY(-8px) scale(1.05);
}

/* ============ PLATINUM FLOATER ============ */
.platinum-floater {
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    margin-bottom: 8px;
    white-space: nowrap;
    background: rgba(15, 15, 25, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    color: #ccc;
    font-size: 0.65rem;
    font-weight: 500;
    letter-spacing: 0.3px;
    padding: 6px 12px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    pointer-events: none;
    z-index: 99999;
    animation: floaterBob 3s ease-in-out infinite;
}
.platinum-floater::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 6px solid transparent;
    border-top-color: #ccc;
}
@keyframes floaterBob {
    0%, 100% { opacity: 1; transform: translateX(-50%) translateY(0); }
    50%      { opacity: 0.7; transform: translateX(-50%) translateY(-3px); }
}
/* ============ STAFF PANEL ============ */

/* Tab Container */
.staff-tabs {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(90px, 1fr));
    gap: 6px;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.staff-tab {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 10px 8px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    background: rgba(255, 255, 255, 0.025);
    color: #666;
    font-size: 0.68rem;
    font-weight: 500;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
    text-align: center;
}

.staff-tab:hover {
    background: rgba(255, 255, 255, 0.06);
    color: #ccc;
    border-color: rgba(255, 255, 255, 0.1);
}

.staff-tab.active {
    background: rgba(125, 211, 252, 0.1);
    color: #7dd3fc;
    border-color: rgba(125, 211, 252, 0.25);
    font-weight: 600;
}

/* Stats Grid */
.staff-stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-bottom: 20px;
}

.staff-stat-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 12px;
    padding: 18px 12px;
    text-align: center;
    backdrop-filter: blur(8px);
    transition: all 0.2s ease;
}

.staff-stat-card:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.1);
    transform: translateY(-1px);
}

.staff-stat-num {
    font-size: 1.6rem;
    font-weight: 900;
    color: #fff;
    margin-bottom: 6px;
    line-height: 1;
}

.staff-stat-label {
    font-size: 0.62rem;
    color: #555;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
}

/* Table Card */
.staff-table-card {
    background: rgba(255, 255, 255, 0.025);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 12px;
    padding: 18px;
    overflow: hidden;
}

.staff-table-card h3 {
    font-size: 0.85rem;
    margin-bottom: 14px;
    color: #ccc;
    font-weight: 600;
}

.staff-table {
    width: 100%;
    font-size: 0.78rem;
    border-collapse: separate;
    border-spacing: 0;
}

.staff-table thead th {
    text-align: left;
    color: #555;
    padding: 8px 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    text-transform: uppercase;
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.8px;
}

.staff-table tbody td {
    padding: 10px 12px;
    color: #ccc;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
    font-size: 0.78rem;
}

.staff-table tbody tr {
    transition: background 0.15s ease;
}

.staff-table tbody tr:hover {
    background: rgba(255, 255, 255, 0.03);
}

.staff-table tbody tr:last-child td {
    border-bottom: none;
}

/* Embedded admin content overrides */
.staff-content {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.staff-content .card,
.staff-content .admin-card,
.staff-content .container {
    background: rgba(255, 255, 255, 0.03) !important;
    border: 1px solid rgba(255, 255, 255, 0.06) !important;
    border-radius: 12px !important;
    color: #ccc !important;
    padding: 16px !important;
    margin-bottom: 12px !important;
}

.staff-content table {
    width: 100%;
    font-size: 0.75rem;
    border-collapse: separate;
    border-spacing: 0;
    color: #ccc;
}

.staff-content table th {
    color: #555;
    padding: 8px 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    text-align: left;
    font-size: 0.62rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 700;
}

.staff-content table td {
    padding: 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}

.staff-content table tr:hover td {
    background: rgba(255, 255, 255, 0.03);
}

.staff-content h1,
.staff-content h2,
.staff-content h3,
.staff-content h4 {
    color: #e5e7eb !important;
    margin-bottom: 12px;
}

.staff-content label {
    color: #aaa;
    font-size: 0.75rem;
    display: block;
    margin-bottom: 4px;
}

.staff-content .btn,
.staff-content button[type="submit"] {
    background: rgba(125, 211, 252, 0.1);
    color: #7dd3fc;
    border: 1px solid rgba(125, 211, 252, 0.25);
    border-radius: 8px;
    padding: 8px 16px;
    font-size: 0.75rem;
    cursor: pointer;
    font-family: inherit;
    font-weight: 600;
    transition: all 0.2s ease;
}

.staff-content .btn:hover,
.staff-content button[type="submit"]:hover {
    background: rgba(125, 211, 252, 0.18);
}

.staff-content .btn-danger,
.staff-content .btn-delete {
    background: rgba(239, 68, 68, 0.1) !important;
    color: #ef4444 !important;
    border-color: rgba(239, 68, 68, 0.25) !important;
}

.staff-content .btn-success {
    background: rgba(52, 211, 153, 0.1) !important;
    color: #34d399 !important;
    border-color: rgba(52, 211, 153, 0.25) !important;
}

.staff-content input[type="text"],
.staff-content input[type="number"],
.staff-content input[type="email"],
.staff-content input[type="password"],
.staff-content input[type="date"],
.staff-content input[type="datetime-local"],
.staff-content select,
.staff-content textarea {
    background: rgba(255, 255, 255, 0.04) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    border-radius: 8px !important;
    color: #ccc !important;
    padding: 9px 12px !important;
    font-size: 0.78rem !important;
    font-family: inherit !important;
    width: 100% !important;
    box-sizing: border-box !important;
    transition: border-color 0.2s ease;
}

.staff-content input:focus,
.staff-content select:focus,
.staff-content textarea:focus {
    outline: none !important;
    border-color: rgba(125, 211, 252, 0.4) !important;
}

.staff-content select option {
    background: #1a1a2e;
    color: #ccc;
}

/* Pagination */
.staff-content .pagination {
    display: flex;
    gap: 4px;
    justify-content: center;
    margin-top: 16px;
}

.staff-content .pagination a,
.staff-content .pagination span {
    padding: 6px 12px;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    color: #888;
    font-size: 0.72rem;
    text-decoration: none;
    transition: all 0.2s ease;
}

.staff-content .pagination a:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
}

.staff-content .pagination .active {
    background: rgba(125, 211, 252, 0.12);
    color: #7dd3fc;
    border-color: rgba(125, 211, 252, 0.25);
}

/* Alert / flash messages */
.staff-content .alert,
.staff-content .flash {
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 0.78rem;
    margin-bottom: 12px;
}

.staff-content .alert-success {
    background: rgba(52, 211, 153, 0.1);
    border: 1px solid rgba(52, 211, 153, 0.2);
    color: #34d399;
}

.staff-content .alert-danger,
.staff-content .alert-error {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.2);
    color: #ef4444;
}

/* ===== MOBILE RESPONSIVE ===== */
@media (max-width: 768px) {
    .staff-tabs {
        grid-template-columns: repeat(auto-fill, minmax(75px, 1fr));
        gap: 4px;
    }

    .staff-tab {
        padding: 8px 4px;
        font-size: 0.6rem;
    }

    .staff-stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }

    .staff-stat-card {
        padding: 14px 10px;
    }

    .staff-stat-num {
        font-size: 1.3rem;
    }

    .staff-stat-label {
        font-size: 0.58rem;
    }

    .staff-table-card {
        padding: 12px;
        border-radius: 10px;
    }

    .staff-table-card h3 {
        font-size: 0.78rem;
    }

    .staff-table thead th {
        padding: 6px 8px;
        font-size: 0.58rem;
    }

    .staff-table tbody td {
        padding: 8px;
        font-size: 0.72rem;
    }

    /* Horizontal scroll for wide admin tables */
    .staff-content {
        overflow-x: auto;
    }

    .staff-content table {
        min-width: 500px;
    }

    .staff-content .card,
    .staff-content .admin-card,
    .staff-content .container {
        padding: 12px !important;
    }

    .staff-content input[type="text"],
    .staff-content input[type="number"],
    .staff-content select,
    .staff-content textarea {
        padding: 8px 10px !important;
        font-size: 0.72rem !important;
    }
}

@media (max-width: 400px) {
    .staff-tabs {
        grid-template-columns: repeat(3, 1fr);
        gap: 3px;
    }

    .staff-tab {
        padding: 7px 3px;
        font-size: 0.55rem;
    }

    .staff-stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 6px;
    }

    .staff-stat-num {
        font-size: 1.1rem;
    }
}
/* ============ ITEM MARKET ============ */

/* Sell Form Card */
.market-sell-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 12px;
    padding: 14px;
    margin-bottom: 16px;
    backdrop-filter: blur(8px);
}

.market-sell-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
}

.market-sell-header h3 {
    font-size: 0.85rem;
    color: #ccc;
    margin: 0;
}

.market-sell-header span {
    font-size: 0.68rem;
    color: #555;
}

/* Filter Tabs */
.market-filters {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.market-filter-btn {
    padding: 7px 14px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    background: rgba(255, 255, 255, 0.03);
    color: #777;
    font-size: 0.7rem;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.2s ease;
}

.market-filter-btn:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
}

.market-filter-btn.active {
    background: rgba(125, 211, 252, 0.12);
    color: #7dd3fc;
    border-color: rgba(125, 211, 252, 0.25);
}

/* Listing Cards */
.market-listing {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 12px;
    padding: 14px 16px;
    margin-bottom: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    transition: all 0.2s ease;
    border-left: 3px solid;
}

.market-listing:hover {
    background: rgba(255, 255, 255, 0.05);
    transform: translateX(2px);
}

/* Quality border colors */
.market-listing.quality-grey   { border-left-color: #9ca3af; }
.market-listing.quality-green  { border-left-color: #34d399; }
.market-listing.quality-blue   { border-left-color: #60a5fa; }
.market-listing.quality-purple { border-left-color: #a78bfa; }
.market-listing.quality-gold   { border-left-color: #fbbf24; }

/* Item icon */
.market-item-icon {
    font-size: 1.8rem;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.04);
    border-radius: 10px;
    flex-shrink: 0;
}

/* Item info */
.market-item-info {
    flex: 1;
    min-width: 0;
}

.market-item-name {
    font-weight: 700;
    font-size: 0.85rem;
    color: #fff;
    margin-bottom: 2px;
}

.market-item-quality {
    font-size: 0.65rem;
    font-weight: 600;
}

.market-item-meta {
    font-size: 0.68rem;
    color: #555;
    margin-bottom: 4px;
}

.market-item-stats {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.market-stat-badge {
    font-size: 0.62rem;
    padding: 2px 6px;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.06);
    color: #aaa;
}

/* Price section */
.market-price-section {
    text-align: right;
    flex-shrink: 0;
}

.market-price {
    font-weight: 800;
    font-size: 1.1rem;
    color: #34d399;
    margin-bottom: 2px;
}

.market-expiry {
    font-size: 0.6rem;
    color: #555;
    margin-bottom: 8px;
}

/* Buy / Cancel buttons */
.market-btn-buy {
    padding: 6px 16px;
    border-radius: 8px;
    border: 1px solid rgba(52, 211, 153, 0.3);
    background: rgba(52, 211, 153, 0.1);
    color: #34d399;
    font-size: 0.72rem;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
    transition: all 0.2s ease;
}

.market-btn-buy:hover {
    background: rgba(52, 211, 153, 0.2);
    transform: scale(1.03);
}

.market-btn-cancel {
    padding: 6px 16px;
    border-radius: 8px;
    border: 1px solid rgba(239, 68, 68, 0.3);
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
    font-size: 0.72rem;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
    transition: all 0.2s ease;
}

.market-btn-cancel:hover {
    background: rgba(239, 68, 68, 0.2);
    transform: scale(1.03);
}

.market-btn-sell {
    padding: 9px 18px;
    border-radius: 8px;
    border: 1px solid rgba(52, 211, 153, 0.3);
    background: rgba(52, 211, 153, 0.1);
    color: #34d399;
    font-size: 0.78rem;
    font-weight: 700;
    cursor: pointer;
    font-family: inherit;
    transition: all 0.2s ease;
    width: 100%;
}

.market-btn-sell:hover {
    background: rgba(52, 211, 153, 0.2);
}

/* Sell form inputs */
.market-input {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: #ccc;
    padding: 9px 12px;
    font-size: 0.78rem;
    font-family: inherit;
    width: 100%;
    transition: border-color 0.2s ease;
}

.market-input:focus {
    outline: none;
    border-color: rgba(125, 211, 252, 0.4);
}

.market-input::placeholder {
    color: #555;
}

/* Empty state */
.market-empty {
    background: rgba(255, 255, 255, 0.02);
    border: 1px dashed rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 40px 20px;
    text-align: center;
    color: #555;
    font-size: 0.8rem;
}

/* Tax note */
.market-tax-note {
    font-size: 0.65rem;
    color: #555;
    margin: 4px 0 0 0;
}
/* ============ LEADERBOARDS - TROPHY ROOM ============ */

/* Tabs */
.lb-tabs {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    margin-bottom: 20px;
    padding-bottom: 14px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.lb-tab-btn {
    padding: 8px 14px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    background: rgba(255, 255, 255, 0.03);
    color: #666;
    font-size: 0.68rem;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.2s ease;
}

.lb-tab-btn:hover {
    background: rgba(255, 255, 255, 0.07);
    color: #ccc;
}

.lb-tab-btn.active {
    background: rgba(212, 175, 55, 0.12);
    color: #d4af37;
    border-color: rgba(212, 175, 55, 0.3);
    font-weight: 600;
}

/* ===== PODIUM ===== */
.lb-podium {
    display: flex;
    align-items: flex-end;
    justify-content: center;
    gap: 6px;
    margin-bottom: 20px;
    padding: 20px 10px 0;
}

.lb-podium-slot {
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    transition: transform 0.2s ease;
    position: relative;
}

.lb-podium-slot:hover {
    transform: translateY(-4px);
}

.lb-podium-crown {
    font-size: 1.8rem;
    animation: crownBob 2s ease-in-out infinite;
    filter: drop-shadow(0 0 8px rgba(212, 175, 55, 0.5));
    margin-bottom: -4px;
}

@keyframes crownBob {
    0%, 100% { transform: translateY(0) rotate(-3deg); }
    50% { transform: translateY(-5px) rotate(3deg); }
}

.lb-podium-medal {
    font-size: 1.4rem;
    margin-bottom: 6px;
}

.lb-podium-avatar {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.06);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    margin-bottom: 8px;
    border: 3px solid rgba(255, 255, 255, 0.1);
    overflow: hidden;
}

.lb-podium-avatar-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.lb-podium-avatar.gold-glow {
    border-color: #d4af37;
    box-shadow: 0 0 20px rgba(212, 175, 55, 0.4), 0 0 40px rgba(212, 175, 55, 0.15);
    animation: goldPulse 3s ease-in-out infinite;
}

@keyframes goldPulse {
    0%, 100% { box-shadow: 0 0 20px rgba(212, 175, 55, 0.4), 0 0 40px rgba(212, 175, 55, 0.15); }
    50% { box-shadow: 0 0 28px rgba(212, 175, 55, 0.6), 0 0 50px rgba(212, 175, 55, 0.25); }
}

.lb-podium-slot.silver .lb-podium-avatar {
    border-color: #c0c0c0;
    box-shadow: 0 0 12px rgba(192, 192, 192, 0.2);
    width: 48px;
    height: 48px;
    font-size: 1.3rem;
}

.lb-podium-slot.bronze .lb-podium-avatar {
    border-color: #cd7f32;
    box-shadow: 0 0 12px rgba(205, 127, 50, 0.2);
    width: 48px;
    height: 48px;
    font-size: 1.3rem;
}

.lb-podium-name {
    font-size: 0.75rem;
    font-weight: 700;
    color: #e5e7eb;
    margin-bottom: 2px;
    text-align: center;
    max-width: 120px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.lb-podium-slot.gold .lb-podium-name {
    color: #d4af37;
    font-size: 0.82rem;
}

.lb-podium-value {
    font-size: 0.72rem;
    font-weight: 800;
    color: #fff;
    margin-bottom: 10px;
}

.lb-podium-slot.gold .lb-podium-value {
    color: #d4af37;
    text-shadow: 0 0 10px rgba(212, 175, 55, 0.4);
    font-size: 0.85rem;
}

/* Podium Blocks */
.lb-podium-block {
    width: 90px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px 8px 0 0;
    font-weight: 900;
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.3);
}

.lb-podium-block.gold-block {
    height: 90px;
    background: linear-gradient(180deg, rgba(212, 175, 55, 0.2), rgba(212, 175, 55, 0.05));
    border: 1px solid rgba(212, 175, 55, 0.2);
    border-bottom: none;
    box-shadow: 0 -4px 20px rgba(212, 175, 55, 0.1);
}

.lb-podium-block.silver-block {
    height: 65px;
    background: linear-gradient(180deg, rgba(192, 192, 192, 0.15), rgba(192, 192, 192, 0.04));
    border: 1px solid rgba(192, 192, 192, 0.15);
    border-bottom: none;
}

.lb-podium-block.bronze-block {
    height: 50px;
    background: linear-gradient(180deg, rgba(205, 127, 50, 0.15), rgba(205, 127, 50, 0.04));
    border: 1px solid rgba(205, 127, 50, 0.15);
    border-bottom: none;
}

/* ===== YOUR RANK BANNER ===== */
.lb-my-rank {
    display: flex;
    align-items: center;
    gap: 14px;
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.08), rgba(15, 15, 25, 0.95));
    border: 1px solid rgba(212, 175, 55, 0.15);
    border-radius: 14px;
    padding: 16px 20px;
    margin-bottom: 16px;
    position: relative;
    overflow: hidden;
}

.lb-my-rank::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(212, 175, 55, 0.5), transparent);
}

.lb-my-rank-medal {
    font-size: 2rem;
    filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.3));
}

.lb-my-rank-pos {
    display: flex;
    align-items: baseline;
    gap: 2px;
}

.lb-my-rank-hash {
    font-size: 1rem;
    color: rgba(212, 175, 55, 0.6);
    font-weight: 600;
}

.lb-my-rank-num {
    font-size: 2.2rem;
    font-weight: 900;
    color: #d4af37;
    line-height: 1;
    text-shadow: 0 0 12px rgba(212, 175, 55, 0.3);
}

.lb-my-rank-info {
    flex: 1;
}

.lb-my-rank-tier {
    font-size: 0.72rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 2px;
}

.lb-my-rank-val {
    font-size: 1.1rem;
    font-weight: 700;
    color: #fff;
}

.lb-my-rank-icon {
    font-size: 1.8rem;
    opacity: 0.15;
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 3rem;
}

/* ===== PLAYER LIST (4-50) ===== */
.lb-list {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.lb-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.04);
    cursor: pointer;
    transition: all 0.2s ease;
}

.lb-row:hover {
    background: rgba(255, 255, 255, 0.05);
    transform: translateX(3px);
    border-color: rgba(255, 255, 255, 0.08);
}

.lb-row.lb-me {
    background: rgba(125, 211, 252, 0.06);
    border-color: rgba(125, 211, 252, 0.15);
}

/* Rank */
.lb-rank {
    width: 36px;
    text-align: center;
    flex-shrink: 0;
}

.lb-rank-num {
    font-size: 0.85rem;
    font-weight: 700;
    color: #555;
}

/* Avatar */
.lb-avatar {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    flex-shrink: 0;
    overflow: hidden;
    border: 2px solid rgba(255, 255, 255, 0.06);
}

.lb-avatar-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.lb-row.lb-me .lb-avatar {
    border-color: rgba(125, 211, 252, 0.4);
}

/* Info */
.lb-info {
    flex: 1;
    min-width: 0;
}

.lb-name {
    font-size: 0.8rem;
    font-weight: 600;
    color: #e5e7eb;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.lb-row.lb-me .lb-name {
    color: #7dd3fc;
}

.lb-family-tag {
    font-size: 0.65rem;
    color: #60a5fa;
    font-weight: 700;
}

.lb-secondary {
    font-size: 0.65rem;
    color: #555;
    margin-top: 2px;
}

/* Role badges */
.lb-role-badge {
    font-size: 0.48rem;
    font-weight: 800;
    padding: 2px 5px;
    border-radius: 4px;
    letter-spacing: 0.5px;
    vertical-align: middle;
    margin-left: 4px;
}

.lb-role-badge.owner { background: rgba(212, 175, 55, 0.2); color: #d4af37; border: 1px solid rgba(212, 175, 55, 0.3); }
.lb-role-badge.admin { background: rgba(239, 68, 68, 0.15); color: #ef4444; border: 1px solid rgba(239, 68, 68, 0.25); }
.lb-role-badge.secretary { background: rgba(168, 85, 247, 0.15); color: #a855f7; border: 1px solid rgba(168, 85, 247, 0.25); }
.lb-role-badge.mod { background: rgba(52, 211, 153, 0.15); color: #34d399; border: 1px solid rgba(52, 211, 153, 0.25); }

/* Value */
.lb-value-block {
    text-align: right;
    flex-shrink: 0;
}

.lb-value {
    font-size: 0.9rem;
    font-weight: 800;
    color: #fff;
    white-space: nowrap;
}

.lb-value-label {
    font-size: 0.58rem;
    color: #555;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.lb-row.lb-me .lb-value {
    color: #7dd3fc;
}

/* Empty */
.lb-empty {
    background: rgba(255, 255, 255, 0.02);
    border: 1px dashed rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 40px 20px;
    text-align: center;
    color: #555;
    font-size: 0.8rem;
}

/* ===== MOBILE ===== */
@media (max-width: 520px) {
    .lb-podium {
        gap: 4px;
        padding: 12px 4px 0;
    }

    .lb-podium-avatar {
        width: 42px;
        height: 42px;
        font-size: 1.2rem;
    }

    .lb-podium-slot.gold .lb-podium-avatar {
        width: 50px;
        height: 50px;
    }

    .lb-podium-slot.silver .lb-podium-avatar,
    .lb-podium-slot.bronze .lb-podium-avatar {
        width: 40px;
        height: 40px;
    }

    .lb-podium-block {
        width: 70px;
    }

    .lb-podium-block.gold-block { height: 70px; }
    .lb-podium-block.silver-block { height: 50px; }
    .lb-podium-block.bronze-block { height: 38px; }

    .lb-podium-crown {
        font-size: 1.3rem;
    }

    .lb-podium-medal {
        font-size: 1.1rem;
    }

    .lb-podium-name {
        font-size: 0.65rem;
        max-width: 80px;
    }

    .lb-podium-slot.gold .lb-podium-name {
        font-size: 0.7rem;
    }

    .lb-podium-value {
        font-size: 0.62rem;
    }

    .lb-podium-slot.gold .lb-podium-value {
        font-size: 0.72rem;
    }

    .lb-tabs {
        gap: 4px;
    }

    .lb-tab-btn {
        padding: 6px 10px;
        font-size: 0.6rem;
    }

    .lb-my-rank {
        padding: 14px 16px;
    }

    .lb-my-rank-medal {
        font-size: 1.5rem;
    }

    .lb-my-rank-num {
        font-size: 1.8rem;
    }

    .lb-my-rank-icon {
        font-size: 2rem;
    }

    .lb-row {
        padding: 10px;
        gap: 8px;
    }

    .lb-avatar {
        width: 32px;
        height: 32px;
    }

    .lb-rank {
        width: 28px;
    }
}
/* ============ STAFF DASHBOARD - COMMAND CENTER ============ */

/* Server Status */
.staff-server-status {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    background: rgba(52, 211, 153, 0.06);
    border: 1px solid rgba(52, 211, 153, 0.15);
    border-radius: 10px;
    margin-bottom: 16px;
    font-size: 0.72rem;
    color: #34d399;
    font-weight: 600;
}

.staff-server-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #34d399;
    box-shadow: 0 0 8px #34d399;
    animation: serverPulse 2s ease-in-out infinite;
}

@keyframes serverPulse {
    0%, 100% { opacity: 1; box-shadow: 0 0 8px #34d399; }
    50% { opacity: 0.5; box-shadow: 0 0 16px #34d399; }
}

.staff-server-uptime {
    margin-left: auto;
    color: #555;
    font-weight: 400;
}

/* Hero Stats */
.staff-hero-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin-bottom: 16px;
}

.staff-hero-card {
    background: rgba(255, 255, 255, 0.025);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 14px;
    padding: 16px;
    position: relative;
    overflow: hidden;
    transition: all 0.25s ease;
}

.staff-hero-card:hover {
    background: rgba(255, 255, 255, 0.04);
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.staff-hero-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    border-radius: 14px 14px 0 0;
}

.hero-players::before { background: linear-gradient(90deg, #60a5fa, #3b82f6); }
.hero-online::before  { background: linear-gradient(90deg, #34d399, #10b981); }
.hero-economy::before { background: linear-gradient(90deg, #d4af37, #fbbf24); }
.hero-combat::before  { background: linear-gradient(90deg, #ef4444, #dc2626); }

.staff-hero-icon {
    font-size: 1.6rem;
    margin-bottom: 8px;
}

.staff-hero-data {
    margin-bottom: 6px;
}

.staff-hero-num {
    font-size: 1.8rem;
    font-weight: 900;
    color: #fff;
    line-height: 1.1;
}

.staff-hero-label {
    font-size: 0.65rem;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
    margin-top: 4px;
}

.staff-hero-trend {
    font-size: 0.68rem;
    font-weight: 600;
    padding: 3px 8px;
    border-radius: 6px;
    display: inline-block;
}

.staff-hero-trend.up {
    background: rgba(52, 211, 153, 0.1);
    color: #34d399;
}

.staff-hero-sub {
    font-size: 0.62rem;
    color: #555;
    margin-top: 2px;
}

/* Activity Bar */
.staff-hero-bar {
    position: relative;
    height: 6px;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 3px;
    margin-top: 4px;
    overflow: visible;
}

.staff-hero-bar-fill {
    height: 100%;
    border-radius: 3px;
    background: linear-gradient(90deg, #34d399, #10b981);
    transition: width 0.8s ease;
    box-shadow: 0 0 8px rgba(52, 211, 153, 0.3);
}

.staff-hero-bar-text {
    position: absolute;
    right: 0;
    top: -16px;
    font-size: 0.58rem;
    color: #666;
}

/* Quick Stat Pills */
.staff-pills {
    display: flex;
    gap: 8px;
    margin-bottom: 16px;
}

.staff-pill {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 14px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.025);
    border: 1px solid rgba(255, 255, 255, 0.06);
    cursor: pointer;
    transition: all 0.2s ease;
}

.staff-pill:hover {
    background: rgba(255, 255, 255, 0.05);
    transform: translateY(-1px);
}

.staff-pill.pill-alert {
    border-color: rgba(239, 68, 68, 0.3);
    background: rgba(239, 68, 68, 0.05);
}

.staff-pill.pill-alert .staff-pill-num {
    color: #ef4444;
}

.staff-pill-icon {
    font-size: 1.2rem;
}

.staff-pill-num {
    font-size: 1.2rem;
    font-weight: 900;
    color: #fff;
}

.staff-pill-label {
    font-size: 0.62rem;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Two Column Layout */
.staff-two-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 16px;
}

/* Cards */
.staff-panel-card {
    background: rgba(255, 255, 255, 0.025);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 14px;
    padding: 18px;
    margin-bottom: 12px;
}

.staff-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 14px;
}

.staff-card-header h3 {
    font-size: 0.82rem;
    color: #ccc;
    margin: 0;
    font-weight: 600;
}

.staff-card-link {
    background: none;
    border: none;
    color: #7dd3fc;
    font-size: 0.68rem;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
    transition: color 0.2s ease;
}

.staff-card-link:hover {
    color: #60a5fa;
}

/* Player List */
.staff-player-list {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.staff-player-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 10px;
    border-radius: 8px;
    transition: background 0.15s ease;
}

.staff-player-row:hover {
    background: rgba(255, 255, 255, 0.03);
}

.staff-player-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    flex-shrink: 0;
    position: relative;
    border: 2px solid rgba(255, 255, 255, 0.06);
}

.staff-player-avatar.online::after {
    content: '';
    position: absolute;
    bottom: -1px;
    right: -1px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #34d399;
    border: 2px solid rgba(10, 10, 18, 1);
    box-shadow: 0 0 6px #34d399;
}

.staff-player-info {
    flex: 1;
    min-width: 0;
}

.staff-player-name {
    font-size: 0.78rem;
    font-weight: 600;
    color: #e5e7eb;
}

.staff-player-meta {
    font-size: 0.62rem;
    color: #555;
    display: flex;
    align-items: center;
    gap: 4px;
}

.staff-role-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    flex-shrink: 0;
}

.staff-player-time {
    font-size: 0.62rem;
    color: #555;
    flex-shrink: 0;
}

/* Activity List */
.staff-activity-list {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.staff-activity-row {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 8px 10px;
    border-radius: 8px;
    transition: background 0.15s ease;
}

.staff-activity-row:hover {
    background: rgba(255, 255, 255, 0.03);
}

.staff-activity-icon {
    font-size: 1rem;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.04);
    border-radius: 8px;
    flex-shrink: 0;
}

.staff-activity-info {
    flex: 1;
    min-width: 0;
}

.staff-activity-text {
    font-size: 0.72rem;
    color: #aaa;
    line-height: 1.4;
}

.staff-activity-text strong {
    color: #e5e7eb;
}

.staff-activity-time {
    font-size: 0.58rem;
    color: #555;
    margin-top: 2px;
}

.staff-activity-empty {
    padding: 20px;
    text-align: center;
    color: #555;
    font-size: 0.75rem;
}

/* Quick Actions */
.staff-quick-actions {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
}

.staff-quick-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 16px 10px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    background: rgba(255, 255, 255, 0.02);
    color: #999;
    font-size: 0.68rem;
    font-weight: 500;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.2s ease;
}

.staff-quick-btn span:first-child {
    font-size: 1.4rem;
}

.staff-quick-btn:hover {
    background: rgba(125, 211, 252, 0.08);
    color: #7dd3fc;
    border-color: rgba(125, 211, 252, 0.2);
    transform: translateY(-2px);
}

/* ===== MOBILE ===== */
@media (max-width: 768px) {
    .staff-hero-grid {
        grid-template-columns: 1fr 1fr;
        gap: 8px;
    }

    .staff-hero-num {
        font-size: 1.4rem;
    }

    .staff-hero-icon {
        font-size: 1.2rem;
    }

    .staff-pills {
        flex-direction: column;
        gap: 6px;
    }

    .staff-two-col {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .staff-quick-actions {
        grid-template-columns: repeat(3, 1fr);
        gap: 6px;
    }

    .staff-quick-btn {
        padding: 12px 6px;
        font-size: 0.62rem;
    }

    .staff-quick-btn span:first-child {
        font-size: 1.2rem;
    }
}

@media (max-width: 400px) {
    .staff-hero-grid {
        grid-template-columns: 1fr;
    }

    .staff-quick-actions {
        grid-template-columns: repeat(2, 1fr);
    }
}
/* ============ RACKETS ============ */

.racket-header-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-bottom: 16px;
}

.racket-header-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 12px;
    padding: 16px 12px;
    text-align: center;
}

.racket-header-card.accent {
    background: linear-gradient(135deg, rgba(52, 211, 153, 0.08), rgba(52, 211, 153, 0.02));
    border-color: rgba(52, 211, 153, 0.15);
}

.racket-header-num {
    font-size: 1.3rem;
    font-weight: 900;
    color: #fff;
    margin-bottom: 4px;
}

.racket-header-card.accent .racket-header-num {
    color: #34d399;
}

.racket-header-label {
    font-size: 0.6rem;
    color: #555;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
}

/* Collect All */
.racket-collect-all {
    width: 100%;
    padding: 14px;
    border-radius: 12px;
    border: 1px solid rgba(52, 211, 153, 0.3);
    background: linear-gradient(135deg, rgba(52, 211, 153, 0.15), rgba(52, 211, 153, 0.05));
    color: #34d399;
    font-size: 0.88rem;
    font-weight: 800;
    font-family: inherit;
    cursor: pointer;
    margin-bottom: 16px;
    transition: all 0.2s ease;
    animation: collectPulse 2s ease-in-out infinite;
}

.racket-collect-all:hover {
    background: linear-gradient(135deg, rgba(52, 211, 153, 0.25), rgba(52, 211, 153, 0.1));
    transform: translateY(-1px);
}

@keyframes collectPulse {
    0%, 100% { box-shadow: 0 0 0 rgba(52, 211, 153, 0); }
    50% { box-shadow: 0 0 16px rgba(52, 211, 153, 0.2); }
}

/* Tabs */
.racket-tabs {
    display: flex;
    gap: 6px;
    margin-bottom: 16px;
    padding-bottom: 14px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.racket-tab {
    flex: 1;
    padding: 10px 14px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    background: rgba(255, 255, 255, 0.03);
    color: #666;
    font-size: 0.72rem;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    text-align: center;
    transition: all 0.2s ease;
}

.racket-tab:hover { background: rgba(255, 255, 255, 0.06); color: #ccc; }
.racket-tab.active { background: rgba(212, 175, 55, 0.12); color: #d4af37; border-color: rgba(212, 175, 55, 0.3); }

/* Tier Headers */
.racket-tier-header {
    padding: 8px 14px;
    font-size: 0.72rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin: 16px 0 8px;
}

/* Cards */
.racket-card {
    background: rgba(255, 255, 255, 0.025);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 12px;
    padding: 14px 16px;
    margin-bottom: 10px;
    transition: all 0.2s ease;
}

.racket-card:hover {
    background: rgba(255, 255, 255, 0.04);
    transform: translateX(2px);
}

.racket-card.racket-owned { opacity: 0.5; }
.racket-card.racket-taken { opacity: 0.4; }
.racket-card.racket-locked { opacity: 0.35; }

.racket-card-top {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 8px;
}

.racket-card-icon {
    font-size: 1.8rem;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.04);
    border-radius: 10px;
    flex-shrink: 0;
}

.racket-card-info { flex: 1; min-width: 0; }
.racket-card-name { font-size: 0.85rem; font-weight: 700; color: #fff; margin-bottom: 2px; }
.racket-card-meta { font-size: 0.68rem; color: #555; }

.racket-card-desc {
    font-size: 0.72rem;
    color: #777;
    font-style: italic;
    padding: 6px 0;
    margin-bottom: 6px;
}

/* Requirements */
.racket-card-reqs {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    margin-top: 8px;
}

.racket-req {
    font-size: 0.62rem;
    padding: 3px 8px;
    border-radius: 6px;
    background: rgba(239, 68, 68, 0.08);
    border: 1px solid rgba(239, 68, 68, 0.15);
    color: #ef4444;
}

.racket-req.met {
    background: rgba(52, 211, 153, 0.08);
    border-color: rgba(52, 211, 153, 0.15);
    color: #34d399;
}

/* Stats Row */
.racket-card-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid rgba(255, 255, 255, 0.04);
}

.racket-stat { text-align: center; }
.racket-stat-label { display: block; font-size: 0.58rem; color: #555; text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 2px; }
.racket-stat-value { display: block; font-size: 0.78rem; font-weight: 700; color: #ccc; }

/* Card Footer */
.racket-card-footer {
    margin-top: 10px;
    padding-top: 8px;
    border-top: 1px solid rgba(255, 255, 255, 0.04);
    text-align: right;
}

/* Buttons */
.racket-btn-extort {
    padding: 8px 18px;
    border-radius: 8px;
    border: 1px solid rgba(212, 175, 55, 0.3);
    background: rgba(212, 175, 55, 0.12);
    color: #d4af37;
    font-size: 0.72rem;
    font-weight: 700;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.racket-btn-extort:hover { background: rgba(212, 175, 55, 0.22); transform: scale(1.03); }

.racket-btn-collect {
    padding: 8px 14px;
    border-radius: 8px;
    border: 1px solid rgba(52, 211, 153, 0.3);
    background: rgba(52, 211, 153, 0.15);
    color: #34d399;
    font-size: 0.72rem;
    font-weight: 800;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.2s ease;
    flex-shrink: 0;
    animation: collectPulse 2s ease-in-out infinite;
}

.racket-btn-collect:hover { background: rgba(52, 211, 153, 0.25); transform: scale(1.03); }

.racket-btn-abandon {
    padding: 5px 12px;
    border-radius: 6px;
    border: 1px solid rgba(239, 68, 68, 0.2);
    background: none;
    color: #555;
    font-size: 0.62rem;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.2s ease;
}

.racket-btn-abandon:hover { color: #ef4444; border-color: rgba(239, 68, 68, 0.4); }

.racket-timer {
    font-size: 0.72rem;
    color: #fbbf24;
    font-weight: 600;
    flex-shrink: 0;
}

/* Badges */
.racket-badge {
    font-size: 0.65rem;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 6px;
    flex-shrink: 0;
}

.racket-badge.owned { background: rgba(52, 211, 153, 0.1); color: #34d399; border: 1px solid rgba(52, 211, 153, 0.2); }
.racket-badge.taken { background: rgba(239, 68, 68, 0.08); color: #ef4444; border: 1px solid rgba(239, 68, 68, 0.15); }
.racket-badge.locked { background: rgba(255, 255, 255, 0.04); color: #555; border: 1px solid rgba(255, 255, 255, 0.06); }

/* Empty State */
.racket-empty {
    background: rgba(255, 255, 255, 0.02);
    border: 1px dashed rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    padding: 50px 20px;
    text-align: center;
}

/* Mobile */
@media (max-width: 520px) {
    .racket-header-grid { grid-template-columns: repeat(3, 1fr); gap: 6px; }
    .racket-header-card { padding: 12px 8px; }
    .racket-header-num { font-size: 1rem; }
    .racket-card-stats { grid-template-columns: repeat(3, 1fr); gap: 4px; }
    .racket-stat-value { font-size: 0.7rem; }
    .racket-card-icon { width: 40px; height: 40px; font-size: 1.4rem; }
}
/* ============ HEADER LOGO ============ */
.elite-header {
    display: flex;
}

.header-brand {
    display: flex;
    height: 100%;
}

.header-logo {
    height: 179px; 
    width: 320px;
    display: block; 
    object-fit: contain;
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.6));
    transform: translateY(2px); 
}

@media (max-width: 768px) {
    .header-logo {
        height: 28px;
        width: auto; /* <-- THIS FIXES THE GAP */
    }
}

@media (max-width: 400px) {
    .header-logo {
        height: 24px;
        width: auto; /* <-- THIS FIXES THE GAP */
    }
}
/* ============ LOGIN PAGE LOGO ============ */
.brand-container {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
}

.brand-container .brand-logo {
    max-height: 100px; /* Change this number to make it bigger or smaller */
    width: auto;
    max-width: 90vw; /* Stops it from stretching past the screen edge on mobile */
    object-fit: contain;
    filter: drop-shadow(0 4px 15px rgba(0, 0, 0, 0.8)); /* Deep shadow to separate it from the background */
    margin-top: 20px;
}

/* Mobile Scaling */
@media (max-width: 768px) {
    .brand-container .brand-logo {
        max-height: 70px;
        margin-top: 10px;
    }
}

@media (max-width: 480px) {
    .brand-container .brand-logo {
        max-height: 55px;
    }
}
/* ========================================================
   VIP BLACKJACK - THE FIFTH FAMILY EDITION
   Royal Blue Felt, Top-Mounted Tray, Flawless Alignment
   ======================================================== */

.bj-wrapper {
    width: 100%;
    min-height: 560px; /* Lets the table breathe naturally */
    height: auto; 
    margin: 10px auto 20px;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    
    /* Premium Navy Blue Casino Felt with micro-texture */
    background-color: #0b1d36;
    background-image: 
        radial-gradient(ellipse at bottom, transparent 20%, rgba(0,0,0,0.85) 100%), 
        radial-gradient(rgba(255,255,255,0.06) 1px, transparent 1px), 
        radial-gradient(rgba(0,0,0,0.3) 1px, transparent 1px);
    background-size: 100% 100%, 3px 3px, 4px 4px;
    background-position: 0 0, 0 0, 1.5px 1.5px;
    
    /* 3D Padded Leather Armrest Bumper */
    border: 16px solid #1a120c; 
    border-bottom: 26px solid #0d0805; 
    border-radius: 40px; 
    
    box-shadow: 
        inset 0 4px 8px rgba(255,255,255,0.1),  
        inset 0 -8px 15px rgba(0,0,0,0.9),      
        inset 0 0 0 1px rgba(212,175,55,0.5),   
        0 15px 35px rgba(0,0,0,0.8);            
    
    overflow: hidden; 
}


/* Watermark */
.bj-wrapper::before {
    content: 'THE FIFTH FAMILY';
    position: absolute; top: 45%; left: 50%; transform: translate(-50%, -50%);
    color: rgba(255, 255, 255, 0.04);
    font-family: 'Playfair Display', serif; font-size: 4rem; font-weight: 900;
    letter-spacing: 8px; white-space: nowrap; pointer-events: none; z-index: 0;
}

/* Branding (VIP LOUNGE text) */
.bj-branding { position: absolute; top: 12px; left: 18px; z-index: 10; pointer-events: none; }
.bj-branding h1 { font-size: 1.3rem; color: rgba(212, 175, 55, 0.9); margin: 0; font-family: 'Playfair Display', serif; letter-spacing: 2px; text-shadow: 0 2px 4px rgba(0,0,0,0.8); }
.bj-branding p { font-size: 0.6rem; color: rgba(255,255,255, 0.6); margin: 0; letter-spacing: 1px; }

/* Header (Buttons) */
.bj-header { position: absolute; top: 12px; right: 12px; display: flex; gap: 8px; z-index: 20; }
.bj-header button, .bj-balance {
    background: rgba(0,0,0,0.7) !important; border: 1px solid rgba(212, 175, 55, 0.5) !important;
    border-radius: 6px; padding: 6px 12px !important; font-weight: 700; font-size: 0.75rem !important; 
    color: #d4af37 !important; cursor: pointer; display: flex; align-items: center; gap: 6px; box-shadow: 0 4px 10px rgba(0,0,0,0.5);
}
.bj-header button:hover { background: rgba(212, 175, 55, 0.2) !important; }

/* Paytable Hide */
.bj-paytable-overlay { display: none; }
.bj-paytable-overlay.show { display: flex; position: absolute; inset: 0; background: rgba(0,0,0,0.85); backdrop-filter: blur(5px); z-index: 100; align-items: center; justify-content: center;}
.bj-paytable-content { background: linear-gradient(180deg, #111, #000); border: 2px solid #d4af37; border-radius: 12px; padding: 24px; display: flex; gap: 24px; box-shadow: 0 20px 50px rgba(0,0,0,0.9); position: relative; }
.paytable-col h4 { color: #d4af37; margin-bottom: 12px; border-bottom: 1px solid rgba(212,175,55,0.3); padding-bottom: 4px; }
.pt-row { display: flex; justify-content: space-between; gap: 20px; font-size: 0.8rem; color: #ccc; margin-bottom: 4px; }
.pt-row span { color: #d4af37; font-weight: bold; }
.close-paytable { position: absolute; bottom: -50px; left: 50%; transform: translateX(-50%); background: #d4af37 !important; color: #000 !important; border: none !important; padding: 8px 24px !important; border-radius: 6px; font-weight: bold; cursor: pointer; }

/* =========================================
   DEALER CHIP TRAY - FIXED ALIGNMENT 
   Placed absolute top-center so cards don't hit it!
   ========================================= */
.bj-chip-tray { 
    position: absolute;
    top: 15px;
    left: 50%;
    transform: translateX(-50%);
    width: 150px; 
    height: 16px; 
    background: linear-gradient(180deg, #fceda7, #d4af37 40%, #8c6b14); 
    border: 3px solid #111; 
    border-radius: 8px; 
    box-shadow: 0 5px 15px rgba(0,0,0,0.9), inset 0 2px 4px rgba(255,255,255,0.5); 
    z-index: 10;
}

/* Dealer Area */
#bj-dealer-area, .bj-dealer { margin-top: 75px; display: flex; flex-direction: column; align-items: center; z-index: 5; }

/* Seats Area */
#bj-seats-area, .bj-seats { display: flex; justify-content: center; align-items: flex-end; gap: 40px; width: 100%; z-index: 5; flex: 1; padding-bottom: 10px; }
.bj-seat { display: flex; flex-direction: column; align-items: center; position: relative; }

/* Betting Rings */
.bj-bet-zones { display: flex; align-items: center; justify-content: center; gap: 12px; margin-bottom: 8px; }
.bj-ring { border-radius: 50% !important; display: flex; align-items: center; justify-content: center; position: relative; transition: all 0.2s ease; }
.bj-ring.main { width: 75px; height: 75px; border: 2px solid rgba(212, 175, 55, 0.4); box-shadow: inset 0 0 10px rgba(0,0,0,0.4); } 
.bj-ring.side { width: 45px; height: 45px; border: 2px dashed rgba(212, 175, 55, 0.4); }
.bj-ring[onclick]:hover { background: rgba(212, 175, 55, 0.2); border: 2px solid #d4af37; box-shadow: 0 0 20px rgba(212, 175, 55, 0.5); cursor: pointer; transform: scale(1.05); }
.bj-ring-label { color: rgba(255, 255, 255, 0.8); font-size: 9px; letter-spacing: 1px; font-weight: 900; text-shadow: 0 1px 3px #000; }

/* 3D Casino Chips for Side Bets */
.bj-chip { border-radius: 50% !important; display: flex !important; align-items: center !important; justify-content: center !important; position: absolute !important; z-index: 20 !important; font-weight: 900 !important; box-shadow: 0 4px 6px rgba(0,0,0,0.7), inset 0 0 4px rgba(255,255,255,0.4) !important; }
.bj-chip.gold { width: 40px !important; height: 40px !important; background: radial-gradient(circle at 30% 30%, #fceda7 0%, #d4af37 60%, #8c6b14 100%) !important; color: #111 !important; border: 2px solid #4a350a !important; font-size: 11px !important; }
.bj-chip.red  { width: 30px !important; height: 30px !important; background: radial-gradient(circle at 30% 30%, #fca5a5 0%, #ef4444 60%, #7f1d1d 100%) !important; color: #fff !important; border: 2px solid #450a0a !important; font-size: 9px !important; }
.bj-chip.blue { width: 30px !important; height: 30px !important; background: radial-gradient(circle at 30% 30%, #93c5fd 0%, #3b82f6 60%, #1e3a8a 100%) !important; color: #fff !important; border: 2px solid #172554 !important; font-size: 9px !important; }

/* 3D Playing Cards */
.bj-cards-container { position: relative; height: 110px; width: 140px; display: flex; justify-content: center; margin-bottom: 30px; }
.bj-card {
    width: 65px; height: 95px; background: #fff; border-radius: 5px; box-shadow: -3px 4px 10px rgba(0,0,0,0.8);
    display: flex; flex-direction: column; justify-content: space-between; padding: 4px 6px; font-size: 1.2rem; font-weight: 900;
    position: absolute; bottom: 0; transform-origin: bottom center;
}

/* FANNING EFFECT (Wider so numbers are visible) */
.bj-card:nth-of-type(1) { margin-left: -40px; z-index: 1; }
.bj-card:nth-of-type(2) { margin-left: 5px; margin-bottom: 6px; z-index: 2; }
.bj-card:nth-of-type(3) { margin-left: 50px; margin-bottom: 12px; z-index: 3; }
.bj-card:nth-of-type(4) { margin-left: 95px; margin-bottom: 18px; z-index: 4; }
.bj-card:nth-of-type(5) { margin-left: 140px; margin-bottom: 24px; z-index: 5; }

.bj-card.red { color: #dc2626; }
.bj-card.black { color: #111827; }

/* CSS Casino Card Back Pattern - Matches new lighter blue */
.bj-card.hidden { background-color: #173b6b; background-image: repeating-linear-gradient(45deg, transparent, transparent 4px, #2a5f9e 4px, #2a5f9e 8px); border: 3px solid #fff; }
.bj-card .top-left { text-align: left; line-height: 0.9; }
.bj-card .bottom-right { text-align: right; transform: rotate(180deg); line-height: 0.9; }

/* Restoring the Javascript Animations */
@keyframes dealCard { 
    0% { opacity: 0; transform: translateY(-150px) scale(0.6); } 
    100% { opacity: 1; transform: translateY(0) scale(1); } 
}
@keyframes popBanner { 
    0% { opacity: 0; transform: translate(-50%, -10px) scale(0.8); } 
    100% { opacity: 1; transform: translate(-50%, 0) scale(1); } 
}
@keyframes flipCard {
    0% { transform: scaleX(0); }
    100% { transform: scaleX(1); }
}

/* Scores */
.bj-score {
    position: absolute; top: -20px; left: 50%; transform: translateX(-50%);
    background: rgba(0,0,0,0.9); border: 2px solid #d4af37; color: #fceda7;
    padding: 2px 10px; border-radius: 8px; font-weight: 900; font-size: 11px; z-index: 20; box-shadow: 0 4px 10px rgba(0,0,0,0.9);
}
.bj-score.bust { border-color: #ef4444; color: #fca5a5; }

/* Stop the Win/Loss popup from blocking the cards */
.bj-seat > div[style*="background:rgba(0,0,0,0.95)"] { top: -5px !important; z-index: 30; }

/* Player Badge */
.bj-player-badge {
    background: rgba(0,0,0,0.85); border: 1px solid rgba(255,255,255,0.1); padding: 4px 12px;
    border-radius: 8px; display: flex; align-items: center; gap: 8px; box-shadow: 0 4px 8px rgba(0,0,0,0.5);
}
.bj-player-badge.active { border-color: #d4af37; box-shadow: 0 0 15px rgba(212,175,55,0.5); }
.bj-avatar { width: 24px; height: 24px; border-radius: 4px; background: #333; display: flex; align-items:center; justify-content:center; overflow:hidden;}
.bj-name { font-weight: bold; font-size: 10px; color: #fff; display:block; }
.bj-bet-text { font-size: 9px; color: #d4af37; display:block; font-weight: 600;}

/* Controls - Sleek & Docked */
#bj-controls-content, .bj-controls {
    background: linear-gradient(0deg, #05080f 0%, #0a1120 100%);
    border-top: 2px solid #1a120c;
    padding: 10px; display: flex; justify-content: center; align-items: center; z-index: 20; min-height: 60px;
}
.bj-btn {
    padding: 10px 24px !important; font-size: 0.9rem !important; border-radius: 4px !important;
    font-family: 'Playfair Display', serif !important; font-weight: 900 !important; letter-spacing: 1px !important;
    box-shadow: inset 0 2px 2px rgba(255,255,255,0.4), 0 4px 10px rgba(0,0,0,0.8) !important;
    text-transform: uppercase !important; border: none !important; cursor: pointer !important; transition: all 0.2s !important; margin: 0 8px !important;
}
.bj-btn.btn-action { background: linear-gradient(180deg, #22c55e 0%, #15803d 100%) !important; color: #fff !important; text-shadow: 0 1px 2px #000 !important;}
.bj-btn.btn-stand { background: linear-gradient(180deg, #ef4444 0%, #b91c1c 100%) !important; color: #fff !important; text-shadow: 0 1px 2px #000 !important;}
.bj-btn:hover { transform: translateY(-2px) !important; filter: brightness(1.15) !important; }
.bj-btn:active { transform: translateY(2px) !important; box-shadow: inset 0 4px 6px rgba(0,0,0,0.6) !important; }
/* ========================================================
   MOBILE VIP BLACKJACK - ULTRA COMPACT OVERRIDE
   ======================================================== */
@media (max-width: 768px) {
    /* 1. Shrink Table and Prevent Scrolling */
    .bj-wrapper {
        min-height: 420px !important;
        max-height: calc(100vh - 160px) !important; /* Forces it to fit between your header and footer */
        height: auto !important;
        border: 8px solid #1a120c !important;
        border-bottom: 15px solid #0d0805 !important;
        border-radius: 16px !important;
        margin: 5px auto !important;
    }

    .bj-wrapper::before { font-size: 2rem !important; letter-spacing: 5px !important; }
    
    /* Hide the text branding to save vertical space */
    .bj-branding { display: none !important; }
    
    /* 2. Compact Header */
    .bj-header { top: 10px !important; right: 10px !important; gap: 4px !important; }
    .bj-header button, .bj-balance { padding: 4px 8px !important; font-size: 0.65rem !important; }
    
    /* 3. Deal & Tray */
    .bj-chip-tray { width: 80px !important; height: 10px !important; top: 10px !important; margin-bottom: 15px !important; }
    #bj-dealer-area, .bj-dealer { margin-top: 35px !important; min-height: 80px !important; }
    
    /* 4. Squeeze all 3 Seats side by side */
    #bj-seats-area, .bj-seats { 
        gap: 0px !important; 
        justify-content: space-evenly !important; 
        padding-bottom: 10px !important; 
    }
    
    /* 5. Micro Betting Rings */
    .bj-bet-zones { gap: 6px !important; margin-bottom: 4px !important; }
    .bj-ring.main { width: 55px !important; height: 55px !important; }
    .bj-ring.side { width: 35px !important; height: 35px !important; border-width: 1px !important; }
    .bj-ring-label { font-size: 7px !important; }
    
    /* 6. Micro Chips */
    .bj-chip.gold { width: 30px !important; height: 30px !important; font-size: 9px !important; box-shadow: 0 2px 4px rgba(0,0,0,0.8) !important; }
    .bj-chip.red, .bj-chip.blue { width: 22px !important; height: 22px !important; font-size: 8px !important; border-width: 1px !important; }
    
    /* 7. Tiny Cards & Tighter Fanning */
    .bj-cards-container { height: 85px !important; width: 60px !important; margin-bottom: 15px !important; }
    .bj-card { width: 45px !important; height: 70px !important; padding: 2px !important; font-size: 0.9rem !important; border-radius: 4px !important; border-width: 2px !important; }
    
    #bj-seats-area .bj-card:nth-child(1) { margin-left: -20px !important; }
    #bj-seats-area .bj-card:nth-child(2) { margin-left: -5px !important; margin-bottom: 5px !important; }
    #bj-seats-area .bj-card:nth-child(3) { margin-left: 10px !important; margin-bottom: 10px !important; }
    #bj-seats-area .bj-card:nth-child(4) { margin-left: 25px !important; margin-bottom: 15px !important; }
    #bj-seats-area .bj-card:nth-child(5) { margin-left: 40px !important; margin-bottom: 20px !important; }

    #bj-dealer-area .bj-card:nth-child(1) { margin-left: -20px !important; }
    #bj-dealer-area .bj-card:nth-child(2) { margin-left: 20px !important; }
    #bj-dealer-area .bj-card:nth-child(3) { margin-left: 40px !important; }

    /* 8. Popups & Badges */
    .bj-score { font-size: 9px !important; padding: 2px 6px !important; top: -15px !important; }
    .bj-player-badge { padding: 2px 8px !important; gap: 4px !important; margin-top: 4px !important;}
    .bj-avatar { width: 18px !important; height: 18px !important; font-size: 8px !important; border-radius: 2px !important;}
    .bj-name { font-size: 8px !important; }
    .bj-bet-text { font-size: 8px !important; }
    
    /* 9. Compact Controls */
    #bj-controls-content, .bj-controls { padding: 8px !important; min-height: 50px !important; border-width: 1px !important; }
    .bj-btn { padding: 8px 16px !important; font-size: 0.8rem !important; margin: 0 4px !important; letter-spacing: 1px !important; font-weight: 700 !important; }
    
    /* Small betting input field inside controls */
    #bj-bet-input { width: 70px !important; padding: 6px !important; font-size: 0.9rem !important; }
    .btn-sm[onclick*="value="] { padding: 2px 4px !important; font-size: 9px !important; }
}

/* Extra small screens (iPhone SE, etc) */
/* ========================================================
   MOBILE VIP BLACKJACK - ULTRA COMPACT OVERRIDE
   ======================================================== */
@media (max-width: 768px) {
    /* 1. Dynamic viewport height to fix mobile address bar cutoff */
    .bj-wrapper {
        min-height: 380px !important; /* Lowered so it can compress more */
        max-height: calc(100dvh - 190px) !important; /* 'dvh' accounts for mobile Safari/Chrome UI */
        height: auto !important;
        border: 6px solid #1a120c !important;
        border-bottom: 12px solid #0d0805 !important;
        border-radius: 12px !important;
        margin: 5px auto !important;
    }

    .bj-wrapper::before { font-size: 2rem !important; letter-spacing: 5px !important; }
    .bj-branding { display: none !important; }
    
    .bj-header { top: 6px !important; right: 6px !important; gap: 4px !important; }
    .bj-header button, .bj-balance { padding: 4px 8px !important; font-size: 0.65rem !important; }
    
    /* 2. Squeeze the Dealer Vertical Space */
    .bj-chip-tray { width: 80px !important; height: 10px !important; top: 10px !important; margin-bottom: 5px !important; }
    #bj-dealer-area, .bj-dealer { margin-top: 25px !important; min-height: 70px !important; }
    
    /* 3. Squeeze Seats side by side */
    #bj-seats-area, .bj-seats { 
        gap: 0px !important; 
        justify-content: space-evenly !important; 
        padding-bottom: 5px !important; 
    }
    
    .bj-bet-zones { gap: 6px !important; margin-bottom: 4px !important; }
    .bj-ring.main { width: 50px !important; height: 50px !important; }
    .bj-ring.side { width: 30px !important; height: 30px !important; border-width: 1px !important; }
    .bj-ring-label { font-size: 7px !important; }
    
    .bj-chip.gold { width: 28px !important; height: 28px !important; font-size: 9px !important; box-shadow: 0 2px 4px rgba(0,0,0,0.8) !important; }
    .bj-chip.red, .bj-chip.blue { width: 20px !important; height: 20px !important; font-size: 8px !important; border-width: 1px !important; }
    
    /* 4. Squeeze Cards */
    .bj-cards-container { height: 75px !important; width: 60px !important; margin-bottom: 6px !important; }
    .bj-card { width: 42px !important; height: 65px !important; padding: 2px !important; font-size: 0.8rem !important; border-radius: 3px !important; border-width: 2px !important; }
    
    #bj-seats-area .bj-card:nth-child(1) { margin-left: -20px !important; }
    #bj-seats-area .bj-card:nth-child(2) { margin-left: -5px !important; margin-bottom: 5px !important; }
    #bj-seats-area .bj-card:nth-child(3) { margin-left: 10px !important; margin-bottom: 10px !important; }
    #bj-seats-area .bj-card:nth-child(4) { margin-left: 25px !important; margin-bottom: 15px !important; }
    #bj-seats-area .bj-card:nth-child(5) { margin-left: 40px !important; margin-bottom: 20px !important; }

    #bj-dealer-area .bj-card:nth-child(1) { margin-left: -20px !important; }
    #bj-dealer-area .bj-card:nth-child(2) { margin-left: 20px !important; }
    #bj-dealer-area .bj-card:nth-child(3) { margin-left: 40px !important; }

    /* 5. Tighten popups & badges */
    .bj-score { font-size: 9px !important; padding: 2px 6px !important; top: -12px !important; }
    .bj-player-badge { padding: 2px 6px !important; gap: 4px !important; margin-top: 2px !important;}
    .bj-avatar { width: 16px !important; height: 16px !important; font-size: 8px !important; border-radius: 2px !important;}
    .bj-name { font-size: 8px !important; }
    .bj-bet-text { font-size: 8px !important; }
    
    /* 6. Razor Thin Controls */
    #bj-controls-content, .bj-controls { padding: 6px !important; min-height: 45px !important; border-width: 1px !important; }
    .bj-btn { padding: 6px 14px !important; font-size: 0.75rem !important; margin: 0 2px !important; letter-spacing: 1px !important; font-weight: 700 !important; }
    
    #bj-bet-input { width: 60px !important; padding: 4px !important; font-size: 0.8rem !important; }
    .btn-sm[onclick*="value="] { padding: 2px 4px !important; font-size: 9px !important; }
}

@media (max-width: 380px) {
    .bj-wrapper { min-height: 350px !important; }
    .bj-ring.main { width: 40px !important; height: 40px !important; }
    .bj-ring.side { width: 25px !important; height: 25px !important; }
    .bj-cards-container { height: 65px !important; width: 45px !important; }
    .bj-card { width: 35px !important; height: 55px !important; font-size: 0.7rem !important; }
}
/* ========================================================
   VIP ROULETTE - EMERALD GREEN FELT & GRID
   ======================================================== */
.rl-wrapper {
    background-color: #0b4020 !important; /* Rich casino green */
    justify-content: flex-start !important;
}

/* --- THE PHOTOREALISTIC WHEEL --- */
.rl-wheel-area {
    margin-top: 40px; margin-bottom: 20px;
    display: flex; justify-content: center; align-items: center;
    position: relative; z-index: 5;
}

/* Polished Mahogany Outer Rim */
.rl-wheel-box {
    width: 220px; height: 220px;
    border-radius: 50%;
    background: #111;
    border: 18px solid #3e1b0c; /* Deep polished wood color */
    box-shadow: 
        inset 0 15px 30px rgba(0,0,0,0.9), /* Internal deep bowl shadow */
        inset 0 0 0 3px rgba(212,175,55,0.8), /* Solid Gold inner rim */
        inset 0 0 0 4px #000, 
        0 15px 30px rgba(0,0,0,0.9),
        0 0 0 2px rgba(255,255,255,0.05); /* Specular highlight on wood edge */
    position: relative;
    display: flex; align-items: center; justify-content: center;
}

/* The spinning color grid with 3D Bowl Depth Overlay */
.rl-wheel {
    position: absolute; inset: 0;
    border-radius: 50%;
    /* Transition is controlled completely by JS */
}

/* Adds gradient shadowing to make the flat colors look like a curved physical bowl */
.rl-wheel::before {
    content: ''; position: absolute; inset: 0; border-radius: 50%;
    background: radial-gradient(ellipse at center, transparent 40%, rgba(0,0,0,0.8) 100%);
    pointer-events: none; z-index: 2;
}

/* Draws the physical metal Gold "Frets" strictly between the numbers */
.rl-wheel::after {
    content: ''; position: absolute; inset: 0; border-radius: 50%;
    background: repeating-conic-gradient(from -4.86deg, transparent 0deg, transparent 9.4deg, #d4af37 9.4deg, #d4af37 9.72deg);
    pointer-events: none; z-index: 1; opacity: 0.8;
}

/* Positioning the numbers */
.rl-wheel-slot {
    position: absolute; left: 50%; top: 0;
    width: 20px; height: 50%;
    margin-left: -10px; /* Perfect center */
    transform-origin: bottom center;
    text-align: center;
    padding-top: 5px;
}

.rl-num-text { display: block; font-size: 10px; font-weight: 900; color: #fff; text-shadow: 0 1px 2px #000; }

/* The Polished Brass Center Turret */
.rl-wheel-inner {
    position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
    width: 90px; height: 90px; border-radius: 50%;
    background: radial-gradient(circle at 35% 35%, #fff 0%, #fceda7 10%, #d4af37 40%, #7a5c10 80%, #1a1205 100%);
    box-shadow: 0 10px 25px rgba(0,0,0,0.9), inset 0 -3px 8px rgba(0,0,0,0.6);
    z-index: 10;
}

/* The physical ivory ball */
.rl-ball-track { 
    position: absolute; top: 50%; left: 50%;
    width: 184px; height: 184px; 
    margin-top: -92px; margin-left: -92px; 
    border-radius: 50%; z-index: 15; pointer-events: none;
}

.rl-ball { 
    width: 12px; height: 12px; 
    background: radial-gradient(circle at 35% 35%, #fff, #bbb);
    border-radius: 50%; position: absolute; top: -6px; left: 50%; margin-left: -6px;
    box-shadow: 0 3px 6px rgba(0,0,0,0.9);
}

/* Floating Digital Result */
.rl-result-display {
    position: absolute; z-index: 20;
    width: 70px; height: 70px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 2.2rem; font-weight: 900; color: #fff; text-shadow: 0 2px 4px #000;
    opacity: 0; transform: scale(0.5); transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 4px solid #d4af37; box-shadow: 0 10px 30px rgba(0,0,0,0.9);
}
.rl-result-display.show { opacity: 1; transform: scale(1); }
.rl-result-display.bg-red { background: linear-gradient(135deg, #ef4444, #7f1d1d); }
.rl-result-display.bg-black { background: linear-gradient(135deg, #374151, #000); }
.rl-result-display.bg-green { background: linear-gradient(135deg, #22c55e, #14532d); }

/* --- REALISTIC CASINO CHIPS --- */
/* Utilizing repeating conic gradients to create genuine clay edge spots */
.bj-chip { 
    border-radius: 50% !important; 
    display: flex !important; align-items: center !important; justify-content: center !important; 
    position: relative !important; z-index: 20 !important; font-weight: 900 !important; 
    box-shadow: 0 6px 10px rgba(0,0,0,0.8), inset 0 2px 4px rgba(255,255,255,0.4) !important; 
    border: 3px solid #111 !important; /* Thick dark outer rim */
}

/* $100 Blue Chip with White Striped Edges */
.bj-chip.blue { 
    width: 36px !important; height: 36px !important; 
    background: 
        radial-gradient(circle at 50% 50%, #0f172a 40%, transparent 45%), /* Dark inner circle */
        repeating-conic-gradient(from 0deg, #fff 0deg 20deg, #1d4ed8 20deg 60deg) !important; /* Striped rim */
    color: #fff !important; font-size: 10px !important; text-shadow: 0 1px 2px #000 !important;
}

/* $500 Red Chip with White Striped Edges */
.bj-chip.red { 
    width: 38px !important; height: 38px !important; 
    background: 
        radial-gradient(circle at 50% 50%, #450a0a 40%, transparent 45%),
        repeating-conic-gradient(from 0deg, #fff 0deg 20deg, #b91c1c 20deg 60deg) !important; 
    color: #fff !important; font-size: 10px !important; text-shadow: 0 1px 2px #000 !important;
}

/* $1000 Gold Chip with Black Striped Edges */
.bj-chip.gold { 
    width: 42px !important; height: 42px !important; 
    background: 
        radial-gradient(circle at 50% 50%, #4a350a 40%, transparent 45%),
        repeating-conic-gradient(from 0deg, #111 0deg 20deg, #d4af37 20deg 60deg) !important; 
    color: #fceda7 !important; font-size: 11px !important; text-shadow: 0 1px 2px #000 !important;
}

/* --- THE BETTING BOARD --- */
.rl-board-area { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 0 20px 20px; z-index: 5; }

.rl-chip-selector { display: flex; align-items: center; gap: 20px; margin-bottom: 15px; width: 100%; max-width: 600px; padding: 10px 0; }
.rl-chip-btn { cursor: pointer; transition: transform 0.2s; position: relative; padding:5px; display: flex; align-items: center; justify-content: center;}
.rl-chip-btn:hover { transform: scale(1.1); }
.rl-chip-btn.active::after { content: ''; position: absolute; bottom: -8px; left: 50%; transform: translateX(-50%); width: 25px; height: 4px; background: #d4af37; border-radius: 2px; box-shadow: 0 0 10px rgba(212,175,55,0.5);}

.rl-grid {
    display: grid;
    grid-template-columns: 50px auto 50px;
    gap: 4px; width: 100%; max-width: 600px;
}

.rl-numbers { display: flex; gap: 4px; }
.rl-col { display: flex; flex-direction: column; gap: 4px; flex: 1; }

.rl-zone {
    border: 1px solid rgba(255,255,255,0.4); border-radius: 4px;
    display: flex; align-items: center; justify-content: center;
    font-weight: 800; font-size: 0.9rem; color: #fff; cursor: pointer;
    box-shadow: inset 0 0 10px rgba(0,0,0,0.3); transition: all 0.1s; position: relative;
    user-select: none;
}
.rl-zone:active { transform: scale(0.95); background: rgba(255,255,255,0.3); }

/* Zone Layouts */
.rl-zero { grid-row: 1 / 4; grid-column: 1; background: rgba(22, 163, 74, 0.4); }
.rl-rows { display: flex; flex-direction: column; gap: 4px; grid-row: 1 / 4; grid-column: 3; }
.rl-2to1 { flex: 1; background: rgba(255,255,255,0.1); }
.rl-numbers { grid-row: 1 / 4; grid-column: 2; }

.rl-num { height: 40px; }
.rl-num.red { background: rgba(220, 38, 38, 0.6); }
.rl-num.black { background: rgba(17, 17, 17, 0.8); }

.rl-dozens { grid-column: 2; grid-row: 4; display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; height: 40px; }
.rl-dozens .rl-zone { background: rgba(255,255,255,0.1); }

.rl-outside { grid-column: 2; grid-row: 5; display: grid; grid-template-columns: repeat(6, 1fr); gap: 4px; height: 40px; }
.rl-outside .rl-zone { background: rgba(255,255,255,0.1); font-size: 0.75rem; text-shadow: 0 1px 2px #000; }

/* The Solid Painted Red & Black Outside Zones */
.bg-red-zone { background: rgba(220, 38, 38, 0.8) !important; color: #fff !important; }
.bg-black-zone { background: rgba(17, 17, 17, 0.9) !important; color: #fff !important; }

/* Ensure the absolute placed chips overlap nicely on the board */
.rl-placed-chip { border: 2px solid #111 !important; box-shadow: 0 4px 6px rgba(0,0,0,0.8) !important; z-index: 10 !important; }

/* Mobile Formatting */
@media (max-width: 768px) {
    .rl-chip-selector { margin-bottom: 10px; gap: 10px; }
    .rl-grid { grid-template-columns: 30px auto 30px; gap: 3px; }
    .rl-num, .rl-dozens, .rl-outside { height: 35px; }
    .rl-num { font-size: 0.7rem; }
    .rl-zone { font-size: 0.6rem; }
    .rl-wheel-area { height: 100px; margin-top: 50px;}
    .rl-wheel-box { width: 90px; height: 90px; }
    .rl-wheel-inner { width: 60px; height: 60px; }
    .rl-board-area { padding: 5px 10px 10px; }
    
    /* Make the chips smaller on mobile so you can still read the board */
    .rl-placed-chip { transform: translate(-50%, -50%) scale(0.4) !important; }
}
/* ========================================================
   MOBILE VIP ROULETTE - ULTRA COMPACT OVERRIDE
   ======================================================== */
@media (max-width: 768px) {
    /* 1. Maximum squeeze to fit 100dvh perfectly */
    .rl-wrapper {
        min-height: 380px !important;
        max-height: calc(100dvh - 180px) !important; /* Shaved another 20px off! */
        height: auto !important;
        border: 4px solid #2b1a10 !important;
        border-bottom: 10px solid #1a0f08 !important;
        border-radius: 12px !important;
        margin: 0 auto 5px auto !important;
        padding-top: 5px !important;
    }

    .rl-wrapper::before { font-size: 2rem !important; letter-spacing: 5px !important; top: 35% !important;}
    .bj-branding { display: none !important; }
    
    .bj-header { top: 0 !important; right: 4px !important; gap: 4px !important; }
    .bj-header button, .bj-balance { padding: 4px 6px !important; font-size: 0.6rem !important; }
    .bj-balance { background: transparent !important; border:none !important; box-shadow:none !important;}

    /* 2. FIX: Force physical dimensions so the conic-gradient doesn't collapse! */
    .rl-wheel-area { 
        height: 115px !important; 
        margin-top: 5px !important; 
        margin-bottom: 0 !important; 
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
    }
    
    .rl-wheel-box {
        width: 200px !important; 
        height: 200px !important;
        min-width: 200px !important;
        min-height: 200px !important;
        transform: scale(0.55) !important; /* Shrink visually, not physically */
        transform-origin: center center !important;
    }
    
    /* 3. The Betting Board */
    .rl-board-area { 
        padding: 0 8px 4px !important; 
        flex: 1 !important;
    }

    /* 4. Chip Selector */
    .rl-chip-selector { margin-bottom: 4px !important; gap: 8px !important; }
    .rl-chip-btn .bj-chip { width: 26px !important; height: 26px !important; font-size: 9px !important; }
    .rl-chip-btn .bj-chip.gold { width: 28px !important; height: 28px !important; font-size: 9px !important; }
    
    /* 5. The Grid (Maximum Compression) */
    .rl-grid { 
        grid-template-columns: 25px auto 25px !important; 
        gap: 2px !important; /* Reduced gaps */
        width: 100% !important; 
    }
    .rl-numbers { gap: 2px !important; }
    .rl-col { gap: 2px !important; }

    /* Shaved 6px off the height of every single row! */
    .rl-num { height: 26px !important; font-size: 0.65rem !important; }
    .rl-zero { font-size: 0.65rem !important; }
    .rl-dozens { height: 26px !important; gap: 2px !important; }
    .rl-outside { height: 26px !important; gap: 2px !important; }
    
    .rl-zone { font-size: 0.5rem !important; padding: 0 !important; }
    .rl-red-diamond, .rl-black-diamond { font-size: 0.9rem !important; }

    .rl-placed-chip {
        transform: translate(-50%, -50%) scale(0.4) !important;
    }

    /* 6. Compact Controls */
    #bj-controls-content, .bj-controls { padding: 4px !important; min-height: 40px !important; border-width: 1px !important; }
    .bj-btn { padding: 6px 12px !important; font-size: 0.7rem !important; margin: 0 2px !important; letter-spacing: 1px !important; font-weight: 700 !important; }
}

@media (max-width: 380px) {
    .rl-wrapper { min-height: 360px !important; border-width: 2px !important; border-bottom-width: 6px !important; }
    .rl-wheel-area { height: 95px !important; }
    .rl-wheel-box { transform: scale(0.45) !important; }
    .rl-num, .rl-dozens, .rl-outside { height: 24px !important; }
    .bj-btn { font-size: 0.65rem !important; }
}
/* ==================== SLOT MACHINE ==================== */
.slot-wrapper {
    position: relative;
    min-height: 650px;
    background: linear-gradient(180deg, #1a0a2e 0%, #0d0d0d 50%, #1a0a2e 100%);
    border-radius: 12px;
    overflow: hidden;
    padding-top: 60px;
}
.slot-wrapper::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: radial-gradient(ellipse at center top, rgba(212, 175, 55, 0.08) 0%, transparent 60%);
    pointer-events: none;
}

.slot-cabinet {
    max-width: 400px;
    margin: 0 auto;
    padding: 0 15px;
}

.slot-display {
    background: #000;
    border: 3px solid #d4af37;
    border-radius: 12px;
    padding: 20px 15px;
    box-shadow: 0 0 30px rgba(212, 175, 55, 0.15), inset 0 0 20px rgba(0,0,0,0.8);
    position: relative;
    overflow: hidden;
}
.slot-display::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 40%;
    background: linear-gradient(180deg, rgba(255,255,255,0.03) 0%, transparent 100%);
    pointer-events: none;
}

.slot-reels-container {
    display: flex;
    justify-content: center;
    gap: 8px;
    height: 240px;
    overflow: hidden;
    position: relative;
}

.slot-reel {
    width: 100px;
    height: 240px;
    overflow: hidden;
    position: relative;
    background: linear-gradient(180deg, #0a0a0a, #151515, #0a0a0a);
    border: 1px solid #333;
    border-radius: 6px;
    box-shadow: inset 0 0 10px rgba(0,0,0,0.8);
}

.slot-reel-strip {
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: transform 0.1s linear;
    will-change: transform;
}

.slot-symbol {
    width: 100px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.8rem;
    flex-shrink: 0;
}

/* Win line indicator */
.slot-winline {
    position: absolute;
    top: 50%;
    left: 0; right: 0;
    height: 2px;
    background: rgba(212, 175, 55, 0.3);
    transform: translateY(-50%);
    z-index: 5;
    pointer-events: none;
}
.slot-winline::before, .slot-winline::after {
    content: '';
    position: absolute;
    top: -4px;
    width: 10px;
    height: 10px;
    background: #d4af37;
    border-radius: 50%;
}
.slot-winline::before { left: -5px; }
.slot-winline::after { right: -5px; }

/* Payline flash on win */
.slot-reels-container.slot-win .slot-winline {
    background: #d4af37;
    box-shadow: 0 0 15px #d4af37;
    animation: slotWinFlash 0.5s ease infinite alternate;
}
@keyframes slotWinFlash {
    from { box-shadow: 0 0 10px #d4af37; }
    to { box-shadow: 0 0 25px #d4af37, 0 0 50px rgba(212,175,55,0.3); }
}

/* Reel blur during spin */
.slot-reel.spinning .slot-reel-strip {
    filter: blur(1px);
}

/* Result display */
.slot-result {
    text-align: center;
    padding: 15px 0;
    min-height: 80px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}
.slot-result-text {
    font-size: 1.1rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
}
.slot-result-amount {
    font-size: 1.4rem;
    font-weight: 900;
    margin-top: 5px;
}

/* Jackpot animation */
.slot-jackpot .slot-display {
    border-color: #ff0;
    animation: jackpotGlow 0.3s ease infinite alternate;
}
@keyframes jackpotGlow {
    from { box-shadow: 0 0 20px #d4af37; }
    to { box-shadow: 0 0 60px #ff0, 0 0 100px rgba(255,255,0,0.3); }
}

/* Bet controls */
.slot-controls {
    margin-top: 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.slot-bet-row {
    display: flex;
    gap: 8px;
    align-items: center;
    justify-content: center;
}
.slot-bet-btn {
    padding: 8px 16px;
    background: rgba(255,255,255,0.05);
    border: 1px solid #444;
    color: #fff;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 700;
    font-size: 0.8rem;
    transition: all 0.2s;
}
.slot-bet-btn:hover { background: rgba(212,175,55,0.15); border-color: #d4af37; }
.slot-bet-btn.active { background: rgba(212,175,55,0.2); border-color: #d4af37; color: #d4af37; }

.slot-spin-btn {
    width: 100%;
    padding: 14px;
    background: linear-gradient(180deg, #d4af37, #b8962e);
    border: none;
    border-radius: 8px;
    color: #000;
    font-size: 1.1rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 2px;
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: 0 4px 15px rgba(212,175,55,0.3);
}
.slot-spin-btn:hover { background: linear-gradient(180deg, #e5c040, #d4af37); box-shadow: 0 6px 20px rgba(212,175,55,0.5); transform: translateY(-1px); }
.slot-spin-btn:active { transform: translateY(1px); }
.slot-spin-btn:disabled { background: #333; color: #666; cursor: not-allowed; box-shadow: none; transform: none; }

/* Paytable */
.slot-paytable {
    margin-top: 20px;
    background: rgba(0,0,0,0.4);
    border: 1px solid #222;
    border-radius: 8px;
    padding: 12px;
}
.slot-paytable h4 { color: #d4af37; font-size: 0.75rem; text-transform: uppercase; letter-spacing: 1px; margin: 0 0 8px 0; text-align: center; }
.slot-pay-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 4px 0;
    border-bottom: 1px solid #1a1a1a;
    font-size: 0.75rem;
}
.slot-pay-row:last-child { border-bottom: none; }
.slot-pay-symbols { color: #ccc; }
.slot-pay-multi { color: #d4af37; font-weight: 700; }
/* ==================== SLOT MACHINE MOBILE ==================== */
@media (max-width: 480px) {
    .slot-wrapper {
        min-height: auto;
        padding-top: 10px;
        border-radius: 0;
    }

    .slot-cabinet {
        padding: 0 8px;
    }

    .slot-display {
        padding: 10px 8px;
        border-width: 2px;
        border-radius: 8px;
    }

    .slot-reels-container {
        height: 150px;
        gap: 4px;
    }

    .slot-reel {
        width: 70px;
        height: 150px;
        border-radius: 4px;
    }

    .slot-symbol {
        width: 70px;
        height: 50px;
        font-size: 1.8rem;
    }

    .slot-result {
        padding: 8px 0;
        min-height: 50px;
    }
    .slot-result-text {
        font-size: 0.85rem;
    }
    .slot-result-amount {
        font-size: 1.1rem;
    }

    .slot-controls {
        margin-top: 12px;
        gap: 8px;
    }

    .slot-bet-row {
        flex-wrap: wrap;
        gap: 5px;
    }
    .slot-bet-btn {
        padding: 6px 10px;
        font-size: 0.65rem;
        flex: 1 1 auto;
        min-width: 50px;
        text-align: center;
    }

    .slot-spin-btn {
        padding: 12px;
        font-size: 0.9rem;
    }

    .slot-paytable {
        margin-top: 12px;
        padding: 8px;
    }
    .slot-pay-row {
        font-size: 0.65rem;
    }
}

@media (max-width: 360px) {
    .slot-reels-container {
        height: 120px;
        gap: 3px;
    }

    .slot-reel {
        width: 60px;
        height: 120px;
    }

    .slot-symbol {
        width: 60px;
        height: 40px;
        font-size: 1.4rem;
    }

    .slot-bet-btn {
        padding: 5px 6px;
        font-size: 0.6rem;
    }
}
/* ==================== CRIME TENSION ANIMATIONS ==================== */
.crime-card { position: relative; overflow: hidden; }

.crime-tension-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.92);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 20;
    border-radius: 12px;
    animation: tensionFadeIn 0.3s ease;
}
@keyframes tensionFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.tension-text {
    color: #d4af37;
    font-size: 0.85rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 15px;
    animation: tensionPulse 0.8s ease infinite alternate;
}
@keyframes tensionPulse {
    from { opacity: 0.5; }
    to { opacity: 1; }
}

.tension-bar-track {
    width: 80%;
    height: 6px;
    background: #222;
    border-radius: 3px;
    overflow: hidden;
    border: 1px solid #333;
}
.tension-bar-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #d4af37, #f5d76e);
    border-radius: 3px;
    box-shadow: 0 0 10px rgba(212,175,55,0.5);
    animation: tensionFill 2s ease-in-out forwards;
}
@keyframes tensionFill {
    0% { width: 0%; }
    60% { width: 75%; }
    80% { width: 88%; }
    100% { width: 100%; }
}

/* Success flash */
.crime-result-flash {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 25;
    border-radius: 12px;
    animation: resultSlam 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
@keyframes resultSlam {
    0% { transform: scale(0.5); opacity: 0; }
    100% { transform: scale(1); opacity: 1; }
}

.crime-result-flash.success {
    background: rgba(5, 46, 22, 0.95);
    border: 1px solid #34d399;
    box-shadow: inset 0 0 30px rgba(52, 211, 153, 0.1);
}
.crime-result-flash.failure {
    background: rgba(50, 5, 5, 0.95);
    border: 1px solid #ef4444;
    box-shadow: inset 0 0 30px rgba(239, 68, 68, 0.1);
}

.result-icon {
    font-size: 2rem;
    margin-bottom: 8px;
}
.result-label {
    font-size: 1rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 3px;
}
.result-detail {
    font-size: 0.75rem;
    margin-top: 6px;
    color: #ccc;
}
.result-loot {
    font-size: 0.7rem;
    margin-top: 4px;
    color: #fbbf24;
    font-weight: 700;
}
/* ==================== ANIMATED PVP ARENA ==================== */
.arena-wrapper {
    background: linear-gradient(180deg, #0a0a0a 0%, #111 50%, #0a0a0a 100%);
    border-radius: 12px;
    overflow: hidden;
    position: relative;
}
.arena-wrapper::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: radial-gradient(ellipse at center, rgba(212,175,55,0.03) 0%, transparent 60%);
    pointer-events: none;
}

/* Fighter display area */
.arena-fighters {
    display: grid;
    grid-template-columns: 1fr 50px 1fr;
    align-items: center;
    padding: 20px 15px;
    border-bottom: 1px solid #222;
    position: relative;
}

.arena-fighter {
    text-align: center;
    position: relative;
}
.arena-fighter-name {
    font-size: 0.9rem;
    font-weight: 800;
    margin-bottom: 2px;
}
.arena-fighter-meta {
    font-size: 0.6rem;
    color: #888;
    margin-bottom: 4px;
}
.arena-fighter-weapon {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    margin-bottom: 8px;
}
.arena-fighter-weapon img {
    width: 24px;
    height: 24px;
    object-fit: contain;
}
.arena-fighter-weapon span {
    font-size: 0.65rem;
    color: #aaa;
}

/* HP Bars */
.arena-hp-label {
    font-size: 0.55rem;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 3px;
}
.arena-hp-track {
    width: 100%;
    height: 10px;
    background: #1a1a1a;
    border-radius: 5px;
    overflow: hidden;
    border: 1px solid #333;
    position: relative;
}
.arena-hp-fill {
    height: 100%;
    border-radius: 4px;
    transition: width 0.5s ease, background 0.5s ease;
    position: relative;
}
.arena-hp-fill.hp-high { background: linear-gradient(90deg, #059669, #34d399); box-shadow: 0 0 8px rgba(52,211,153,0.3); }
.arena-hp-fill.hp-mid { background: linear-gradient(90deg, #d97706, #fbbf24); box-shadow: 0 0 8px rgba(251,191,36,0.3); }
.arena-hp-fill.hp-low { background: linear-gradient(90deg, #dc2626, #ef4444); box-shadow: 0 0 8px rgba(239,68,68,0.3); }

.arena-hp-text {
    font-size: 0.6rem;
    color: #888;
    margin-top: 2px;
    text-align: center;
}

.arena-vs {
    font-size: 1.4rem;
    font-weight: 900;
    color: #d4af37;
    text-align: center;
    text-shadow: 0 0 10px rgba(212,175,55,0.3);
}

/* Combat feed (rounds appear here) */
.arena-feed {
    padding: 15px;
    min-height: 200px;
    max-height: 350px;
    overflow-y: auto;
    background: #080808;
    border-bottom: 1px solid #222;
    scroll-behavior: smooth;
}

.arena-round-header {
    font-size: 0.6rem;
    color: #555;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-align: center;
    padding: 8px 0 4px;
    border-top: 1px solid #1a1a1a;
}
.arena-round-header:first-child { border-top: none; }

.arena-event {
    padding: 6px 10px;
    margin: 3px 0;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 600;
    opacity: 0;
    transform: translateX(-15px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}
.arena-event.visible {
    opacity: 1;
    transform: translateX(0);
}
.arena-event.att-event { background: rgba(52,211,153,0.08); border-left: 3px solid #34d399; color: #a7f3d0; }
.arena-event.def-event { background: rgba(239,68,68,0.08); border-left: 3px solid #ef4444; color: #fca5a5; }
.arena-event.miss-event { background: rgba(100,100,100,0.05); border-left: 3px solid #444; color: #666; font-style: italic; }
.arena-event.crit-event { background: rgba(251,191,36,0.1); border-left: 3px solid #fbbf24; color: #fde68a; }
.arena-event.block-event { background: rgba(96,165,250,0.08); border-left: 3px solid #60a5fa; color: #bfdbfe; }

.arena-event .dmg-number {
    float: right;
    font-weight: 900;
    font-size: 0.85rem;
}
.arena-event .dmg-number.dmg-hit { color: #ef4444; }
.arena-event .dmg-number.dmg-crit { color: #fbbf24; }
.arena-event .dmg-number.dmg-block { color: #60a5fa; }
.arena-event .dmg-number.dmg-miss { color: #555; }

/* Result slam animation */
.arena-result {
    display: none;
    padding: 25px;
    text-align: center;
    border-bottom: 1px solid #222;
    animation: arenaResultSlam 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
@keyframes arenaResultSlam {
    0% { transform: scale(0.3); opacity: 0; }
    60% { transform: scale(1.1); }
    100% { transform: scale(1); opacity: 1; }
}
.arena-result.victory { background: linear-gradient(180deg, rgba(5,46,22,0.8), rgba(0,0,0,0.9)); }
.arena-result.defeat { background: linear-gradient(180deg, rgba(50,5,5,0.8), rgba(0,0,0,0.9)); }

.arena-result-icon { font-size: 2.5rem; margin-bottom: 8px; }
.arena-result-title {
    font-size: 1.6rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 4px;
}
.arena-result-sub {
    font-size: 0.8rem;
    color: #ccc;
    margin-top: 5px;
}

/* Rewards section */
.arena-rewards {
    display: none;
    padding: 15px;
    animation: fadeSlideUp 0.4s ease;
}
@keyframes fadeSlideUp {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}
.arena-reward-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 10px;
    margin-bottom: 4px;
    background: rgba(0,0,0,0.3);
    border-radius: 6px;
    font-size: 0.8rem;
}
.arena-reward-label { color: #aaa; }
.arena-reward-value { font-weight: 700; }
.arena-reward-value.positive { color: #34d399; }
.arena-reward-value.negative { color: #ef4444; }
.arena-reward-value.neutral { color: #888; }
.arena-reward-value.gold { color: #fbbf24; }

.arena-footer {
    display: none;
    padding: 15px;
    text-align: center;
}
.arena-back-btn {
    width: 100%;
    padding: 12px;
    background: rgba(255,255,255,0.05);
    color: #fff;
    border: 1px solid #444;
    border-radius: 8px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.2s;
}
.arena-back-btn:hover { background: rgba(255,255,255,0.1); }
