/* =======================================================================
   LEGION ARENA - HIGH-TECH CYBER & GLASSMORPHISM DESIGN SYSTEM
   Esports Cockpit & Modern Gaming Marketplace (2026 Edition)
   Pure CSS • Zero Bloat • Hardware Accelerated
   ======================================================================= */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800;900&family=Inter:wght@300;400;500;600;700;800&family=JetBrains+Mono:wght@400;500;700&display=swap');

:root {
    /* Base Surfaces */
    --bg-base: #07080b;
    --bg-surface: #0b0d14;
    --bg-card: rgba(15, 18, 26, 0.75);
    --bg-card-hover: rgba(22, 27, 40, 0.85);
    --bg-glass: rgba(14, 17, 25, 0.65);
    --bg-sidebar: rgba(10, 12, 18, 0.96);
    --bg-topbar: rgba(9, 11, 16, 0.92);

    /* Cyber Accent Palette */
    --cyber-crimson: #ef4444;
    --cyber-crimson-glow: rgba(239, 68, 68, 0.35);
    --cyber-orange: #f97316;
    --cyber-cyan: #00f0ff;
    --cyber-cyan-glow: rgba(0, 240, 255, 0.3);
    --cyber-gold: #f59e0b;
    --cyber-gold-glow: rgba(245, 158, 11, 0.3);
    --cyber-emerald: #10b981;
    --cyber-emerald-glow: rgba(16, 185, 129, 0.3);
    --cyber-purple: #a855f7;

    /* Gradients */
    --gradient-crimson: linear-gradient(135deg, #ef4444 0%, #dc2626 50%, #b91c1c 100%);
    --gradient-fire: linear-gradient(135deg, #ef4444 0%, #f97316 50%, #eab308 100%);
    --gradient-cyber: linear-gradient(135deg, #00f0ff 0%, #3b82f6 100%);
    --gradient-gold: linear-gradient(135deg, #fbbf24 0%, #d97706 100%);
    --gradient-glass: linear-gradient(135deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.01) 100%);

    /* High-Tech Borders */
    --border-subtle: rgba(255, 255, 255, 0.07);
    --border-glass: rgba(255, 255, 255, 0.12);
    --border-accent: rgba(239, 68, 68, 0.4);
    --border-cyan: rgba(0, 240, 255, 0.4);

    /* Typography */
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-mono: 'JetBrains Mono', monospace;

    /* Text Colors */
    --text-primary: #ffffff;
    --text-secondary: #d4d4d8;
    --text-muted: #9496a1;
    --text-dim: #60626e;

    /* Dimensions & Radii */
    --sidebar-width: 280px;
    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 20px;
    --radius-xl: 26px;
    --radius-pill: 9999px;

    /* Shadows & Glows */
    --glow-card: 0 8px 32px 0 rgba(0, 0, 0, 0.55);
    --glow-crimson: 0 0 25px rgba(239, 68, 68, 0.25);
    --glow-cyan: 0 0 25px rgba(0, 240, 255, 0.22);
}

/* -----------------------------------------------------------------------
   RESET & CORE BASE
   ----------------------------------------------------------------------- */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
    color-scheme: dark;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-base);
    background-image: 
        radial-gradient(circle at 10% 10%, rgba(239, 68, 68, 0.06) 0%, transparent 40%),
        radial-gradient(circle at 90% 20%, rgba(0, 240, 255, 0.04) 0%, transparent 45%),
        radial-gradient(circle at 50% 80%, rgba(245, 158, 11, 0.03) 0%, transparent 50%);
    background-attachment: fixed;
    color: var(--text-primary);
    line-height: 1.55;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6, .brand-font {
    font-family: var(--font-heading);
    letter-spacing: -0.02em;
    font-weight: 800;
    line-height: 1.2;
}

a {
    color: inherit;
    text-decoration: none;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Custom Cyber Scrollbar */
::-webkit-scrollbar {
    width: 7px;
    height: 7px;
}
::-webkit-scrollbar-track {
    background: #06070a;
}
::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.15);
    border-radius: 999px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--cyber-crimson);
}

/* -----------------------------------------------------------------------
   HIGH-TECH GLASS & CYBER COMPONENTS
   ----------------------------------------------------------------------- */
.glass-panel {
    background: var(--bg-card);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    box-shadow: var(--glow-card);
    position: relative;
    overflow: hidden;
    transition: border-color 0.25s, box-shadow 0.25s, transform 0.25s;
}

.glass-panel::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: var(--gradient-glass);
    pointer-events: none;
    opacity: 0.8;
}

.glass-panel:hover {
    border-color: rgba(255, 255, 255, 0.16);
}

.glass-panel-glow:hover {
    border-color: var(--border-accent);
    box-shadow: var(--glow-card), var(--glow-crimson);
}

/* Cyber Badges & Pills */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    border-radius: var(--radius-pill);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-family: var(--font-heading);
    backdrop-filter: blur(8px);
}

.badge-owner {
    background: rgba(239, 68, 68, 0.12);
    border: 1px solid rgba(239, 68, 68, 0.6);
    color: #ff6b7b;
    box-shadow: 0 0 12px rgba(239, 68, 68, 0.2);
}

.badge-admin {
    background: rgba(249, 115, 22, 0.12);
    border: 1px solid rgba(249, 115, 22, 0.6);
    color: #ffa15c;
}

.badge-moderator {
    background: rgba(234, 179, 8, 0.12);
    border: 1px solid rgba(234, 179, 8, 0.6);
    color: #fde047;
}

.badge-user {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #d4d4d8;
}

.badge-success {
    background: rgba(16, 185, 129, 0.12);
    border: 1px solid rgba(16, 185, 129, 0.6);
    color: #34d399;
}

.badge-warning {
    background: rgba(245, 158, 11, 0.12);
    border: 1px solid rgba(245, 158, 11, 0.6);
    color: #fbbf24;
}

.badge-cyan {
    background: rgba(0, 240, 255, 0.1);
    border: 1px solid rgba(0, 240, 255, 0.5);
    color: #38bdf8;
    box-shadow: 0 0 12px rgba(0, 240, 255, 0.15);
}

/* Pulsing Status Beacon */
.status-beacon {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    display: inline-block;
    position: relative;
}
.status-beacon.green {
    background: #10b981;
    box-shadow: 0 0 10px #10b981;
}
.status-beacon.green::after {
    content: "";
    position: absolute;
    inset: -3px;
    border-radius: 50%;
    border: 1px solid #10b981;
    animation: beacon-pulse 2s cubic-bezier(0.24, 0, 0.38, 1) infinite;
}
@keyframes beacon-pulse {
    0% { transform: scale(0.9); opacity: 1; }
    100% { transform: scale(2.2); opacity: 0; }
}

/* -----------------------------------------------------------------------
   HIGH-TECH BUTTONS
   ----------------------------------------------------------------------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: var(--radius-md);
    font-family: var(--font-heading);
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    border: 1px solid transparent;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    white-space: nowrap;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: var(--gradient-crimson);
    color: #fff;
    border-color: rgba(255, 255, 255, 0.15);
    box-shadow: 0 4px 18px rgba(239, 68, 68, 0.35);
}
.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(239, 68, 68, 0.6);
    filter: brightness(1.1);
}

.btn-cyan {
    background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%);
    color: #fff;
    border: 1px solid rgba(0, 240, 255, 0.4);
    box-shadow: 0 4px 18px rgba(2, 132, 199, 0.35);
}
.btn-cyan:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 240, 255, 0.5);
    filter: brightness(1.12);
}

.btn-gold {
    background: var(--gradient-gold);
    color: #000;
    font-weight: 800;
    box-shadow: 0 4px 16px rgba(245, 158, 11, 0.3);
}
.btn-gold:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(245, 158, 11, 0.55);
}

.btn-outline {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(8px);
    border: 1px solid var(--border-glass);
    color: #e4e4e7;
}
.btn-outline:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.3);
    color: #fff;
    transform: translateY(-2px);
}

.btn-danger {
    background: rgba(239, 68, 68, 0.15);
    border: 1px solid rgba(239, 68, 68, 0.4);
    color: #fca5a5;
}
.btn-danger:hover {
    background: #ef4444;
    color: #fff;
    box-shadow: 0 0 18px rgba(239, 68, 68, 0.4);
}

.btn-sm {
    padding: 7px 14px;
    font-size: 11px;
    border-radius: var(--radius-sm);
}
.btn-lg {
    padding: 16px 32px;
    font-size: 15px;
    border-radius: var(--radius-lg);
    letter-spacing: 0.5px;
}

/* -----------------------------------------------------------------------
   ESPORTS ADMIN COCKPIT (FIXED SIDEBAR & LAYOUT)
   ----------------------------------------------------------------------- */
.admin-body {
    background-color: var(--bg-base);
    display: flex;
    min-height: 100vh;
}

.admin-sidebar {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: var(--sidebar-width);
    background: var(--bg-sidebar);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border-right: 1px solid var(--border-subtle);
    display: flex;
    flex-direction: column;
    z-index: 1000;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    overflow-y: auto;
}

/* Cockpit Brand Header */
.admin-sidebar-brand {
    padding: 24px 20px 20px;
    display: flex;
    align-items: center;
    gap: 14px;
    border-bottom: 1px solid var(--border-subtle);
    background: linear-gradient(180deg, rgba(239, 68, 68, 0.05) 0%, transparent 100%);
}
.admin-sidebar-brand img {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    border: 2px solid var(--cyber-crimson);
    box-shadow: 0 0 15px var(--cyber-crimson-glow);
}
.admin-sidebar-brand h2 {
    font-size: 16px;
    font-weight: 900;
    color: #fff;
    letter-spacing: 0.5px;
}
.admin-sidebar-brand .cockpit-badge {
    font-size: 10px;
    color: var(--cyber-cyan);
    font-family: var(--font-mono);
    letter-spacing: 1.5px;
    display: flex;
    align-items: center;
    gap: 6px;
}

/* Commander Status Profile Card */
.admin-commander-card {
    margin: 16px 14px 10px;
    padding: 14px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    gap: 12px;
}
.admin-commander-card img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--cyber-crimson);
    position: relative;
}
.admin-commander-info {
    flex: 1;
    min-width: 0;
}
.admin-commander-name {
    font-size: 13px;
    font-weight: 800;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.admin-commander-role {
    font-size: 10px;
    color: #ff6b7b;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Nav Groups */
.admin-nav-group {
    padding: 18px 18px 8px;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--text-dim);
    font-family: var(--font-mono);
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
}
.admin-nav-group::after {
    content: "";
    flex: 1;
    height: 1px;
    background: rgba(255, 255, 255, 0.05);
}

.admin-nav-list {
    list-style: none;
    padding: 0 12px;
    display: flex;
    flex-direction: column;
    gap: 3px;
}
.admin-nav-item a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 11px 16px;
    border-radius: var(--radius-md);
    color: var(--text-muted);
    font-size: 13px;
    font-weight: 600;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
}
.admin-nav-item a i {
    width: 18px;
    text-align: center;
    font-size: 14px;
    color: var(--text-dim);
    transition: all 0.2s;
}
.admin-nav-item a:hover {
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
}
.admin-nav-item a:hover i {
    color: var(--cyber-crimson);
    transform: scale(1.15);
}
.admin-nav-item.active a {
    background: linear-gradient(90deg, rgba(239, 68, 68, 0.16) 0%, rgba(239, 68, 68, 0.04) 100%);
    color: #fff;
    font-weight: 800;
    border-left: 3px solid var(--cyber-crimson);
}
.admin-nav-item.active a i {
    color: var(--cyber-crimson);
}

.admin-nav-badge {
    margin-left: auto;
    background: rgba(239, 68, 68, 0.25);
    border: 1px solid var(--cyber-crimson);
    color: #fff;
    font-size: 10px;
    padding: 2px 7px;
    border-radius: var(--radius-pill);
    font-weight: 800;
    font-family: var(--font-mono);
}

/* Sidebar Footer Cockpit Info */
.admin-sidebar-footer {
    margin-top: auto;
    padding: 16px;
    border-top: 1px solid var(--border-subtle);
    background: rgba(5, 6, 9, 0.6);
}
.cockpit-sys-stat {
    font-size: 11px;
    color: var(--text-dim);
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 6px;
}
.cockpit-sys-stat b {
    color: var(--cyber-cyan);
    font-family: var(--font-mono);
}

/* -----------------------------------------------------------------------
   ADMIN WRAPPER & COCKPIT TOPBAR
   ----------------------------------------------------------------------- */
.admin-wrapper {
    flex: 1;
    margin-left: var(--sidebar-width);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.admin-topbar {
    position: sticky;
    top: 0;
    z-index: 900;
    background: var(--bg-topbar);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-subtle);
    padding: 14px 32px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.admin-topbar-left {
    display: flex;
    align-items: center;
    gap: 16px;
}
.admin-sidebar-toggle {
    display: none;
    background: none;
    border: none;
    color: #fff;
    font-size: 20px;
    cursor: pointer;
}
.admin-topbar-title {
    font-size: 18px;
    font-weight: 900;
    color: #fff;
    letter-spacing: -0.01em;
}

.admin-topbar-right {
    display: flex;
    align-items: center;
    gap: 14px;
}

.admin-main-content {
    flex: 1;
    padding: 32px;
    max-width: 1680px;
    width: 100%;
}

/* -----------------------------------------------------------------------
   COCKPIT HUD STATS WIDGETS
   ----------------------------------------------------------------------- */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    background: var(--bg-card);
    backdrop-filter: blur(16px);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: var(--glow-card);
    position: relative;
    overflow: hidden;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}
.stat-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: var(--gradient-glass);
    pointer-events: none;
}
.stat-card:hover {
    transform: translateY(-4px);
    border-color: rgba(255, 255, 255, 0.18);
    box-shadow: var(--glow-card), 0 0 20px rgba(0, 0, 0, 0.4);
}

.stat-label {
    font-size: 12px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-family: var(--font-mono);
    font-weight: 600;
}
.stat-value {
    font-size: 32px;
    font-weight: 900;
    color: #fff;
    margin-top: 4px;
    font-family: var(--font-heading);
    letter-spacing: -0.02em;
}

.stat-icon {
    width: 54px;
    height: 54px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    border: 1px solid transparent;
}
.stat-icon.red { background: rgba(239, 68, 68, 0.12); color: #ef4444; border-color: rgba(239, 68, 68, 0.3); }
.stat-icon.orange { background: rgba(249, 115, 22, 0.12); color: #f97316; border-color: rgba(249, 115, 22, 0.3); }
.stat-icon.green { background: rgba(16, 185, 129, 0.12); color: #10b981; border-color: rgba(16, 185, 129, 0.3); }
.stat-icon.gold { background: rgba(245, 158, 11, 0.12); color: #f59e0b; border-color: rgba(245, 158, 11, 0.3); }
.stat-icon.cyan { background: rgba(0, 240, 255, 0.12); color: #00f0ff; border-color: rgba(0, 240, 255, 0.3); }

/* Quick Cockpit Action Bar */
.cockpit-actions-bar {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 28px;
    background: rgba(15, 18, 26, 0.5);
    backdrop-filter: blur(12px);
    padding: 12px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-subtle);
}

/* -----------------------------------------------------------------------
   DATA TABLES (GLASS ROW STYLE)
   ----------------------------------------------------------------------- */
.table-card {
    background: var(--bg-card);
    backdrop-filter: blur(16px);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    overflow: hidden;
    margin-bottom: 30px;
    box-shadow: var(--glow-card);
}
.table-header {
    padding: 20px 26px;
    border-bottom: 1px solid var(--border-subtle);
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 14px;
}
.table-header h3 {
    font-size: 16px;
    font-weight: 800;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 10px;
}

.table-responsive {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
}
.data-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
}
.data-table th {
    background: rgba(8, 10, 16, 0.8);
    padding: 14px 22px;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
    font-family: var(--font-mono);
    border-bottom: 1px solid var(--border-subtle);
}
.data-table td {
    padding: 16px 22px;
    font-size: 13px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    vertical-align: middle;
    color: var(--text-secondary);
}
.data-table tr:hover td {
    background: rgba(255, 255, 255, 0.03);
    color: #fff;
}

/* -----------------------------------------------------------------------
   MARKETPLACE CATALOG & CARDS (GLASS CYBER STYLE)
   ----------------------------------------------------------------------- */
.market-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
    gap: 24px;
}

.resource-card {
    background: var(--bg-card);
    backdrop-filter: blur(16px);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-xl);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.3s, box-shadow 0.3s;
    position: relative;
    box-shadow: var(--glow-card);
}
.resource-card:hover {
    transform: translateY(-8px);
    border-color: rgba(239, 68, 68, 0.5);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.7), 0 0 25px rgba(239, 68, 68, 0.2);
}

.resource-thumb-box {
    position: relative;
    height: 190px;
    overflow: hidden;
    background: #000;
}
.resource-thumb {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}
.resource-card:hover .resource-thumb {
    transform: scale(1.08);
}

.resource-price-badge {
    position: absolute;
    top: 14px;
    right: 14px;
    padding: 5px 12px;
    border-radius: var(--radius-pill);
    font-size: 12px;
    font-weight: 800;
    font-family: var(--font-heading);
    letter-spacing: 0.5px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.6);
}
.price-free {
    background: rgba(16, 185, 129, 0.9);
    color: #000;
    font-weight: 900;
}
.price-paid {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: #000;
    font-weight: 900;
}

.resource-storage-tag {
    position: absolute;
    bottom: 12px;
    left: 12px;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(0, 240, 255, 0.3);
    color: #38bdf8;
    font-size: 10px;
    font-family: var(--font-mono);
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 6px;
}

.resource-body {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex: 1;
}
.resource-category {
    font-size: 11px;
    color: var(--cyber-orange);
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 1px;
    margin-bottom: 6px;
    font-family: var(--font-mono);
}
.resource-title {
    font-size: 17px;
    font-weight: 800;
    color: #fff;
    margin-bottom: 8px;
    line-height: 1.35;
}
.resource-title a:hover {
    color: var(--cyber-cyan);
}
.resource-desc {
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.55;
    margin-bottom: 16px;
    flex: 1;
}
.resource-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    color: var(--text-dim);
    padding-top: 14px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

/* -----------------------------------------------------------------------
   FORMS & INPUTS (CYBER THEME)
   ----------------------------------------------------------------------- */
.form-group {
    margin-bottom: 20px;
}
.form-label {
    display: block;
    margin-bottom: 8px;
    font-size: 12px;
    font-weight: 700;
    color: #d4d4d8;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-family: var(--font-mono);
}
.form-control {
    width: 100%;
    background: rgba(10, 12, 18, 0.85);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-md);
    padding: 12px 16px;
    color: #fff;
    font-size: 14px;
    font-family: var(--font-body);
    transition: all 0.2s;
    outline: none;
}
.form-control:focus {
    border-color: var(--cyber-crimson);
    box-shadow: 0 0 15px rgba(239, 68, 68, 0.25);
    background: rgba(14, 17, 26, 0.95);
}
.form-control::placeholder {
    color: var(--text-dim);
}

/* -----------------------------------------------------------------------
   PUBLIC SITE NAVIGATION & GLASS HEADER
   ----------------------------------------------------------------------- */
.site-header {
    position: sticky;
    top: 0;
    z-index: 950;
    background: rgba(7, 8, 11, 0.88);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-subtle);
    width: 100%;
}
.nav-container {
    max-width: 1440px;
    margin: 0 auto;
    padding: 12px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    width: 100%;
    position: relative;
}
.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    flex-shrink: 0;
}
.brand-logo {
    width: 44px !important;
    height: 44px !important;
    max-width: 44px !important;
    max-height: 44px !important;
    border-radius: 12px;
    border: 2px solid var(--cyber-crimson);
    box-shadow: 0 0 15px var(--cyber-crimson-glow);
    object-fit: cover;
    flex-shrink: 0;
}
.brand-name {
    font-family: var(--font-heading);
    font-size: 17px;
    font-weight: 900;
    color: #fff;
    letter-spacing: 0.5px;
    line-height: 1.1;
}
.brand-sub {
    font-family: var(--font-mono);
    font-size: 10px;
    font-weight: 700;
    color: var(--cyber-orange);
    letter-spacing: 1.8px;
}
.nav-links {
    display: flex;
    align-items: center;
    gap: 6px;
    list-style: none;
    margin: 0;
    padding: 0;
}
.nav-link {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 8px 14px;
    border-radius: var(--radius-sm);
    font-size: 13px;
    font-weight: 700;
    color: var(--text-secondary);
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    white-space: nowrap;
}
.nav-link:hover, .nav-link.active {
    color: #fff;
    background: rgba(255, 255, 255, 0.06);
    text-shadow: 0 0 12px rgba(255, 255, 255, 0.4);
}
.mobile-nav-toggle {
    display: none;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-sm);
    color: #fff;
    font-size: 18px;
    width: 42px;
    height: 42px;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
    user-select: none;
}
.mobile-nav-toggle:hover {
    background: rgba(239, 68, 68, 0.15);
    border-color: var(--cyber-crimson);
    color: var(--cyber-crimson);
}
.nav-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}
.server-quick-ip {
    background: rgba(0, 240, 255, 0.08);
    border: 1px solid rgba(0, 240, 255, 0.3);
    border-radius: var(--radius-sm);
    padding: 7px 14px;
    font-family: var(--font-mono);
    font-size: 12px;
    font-weight: 700;
    color: var(--cyber-cyan);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s;
    user-select: none;
}
.server-quick-ip:hover {
    background: rgba(0, 240, 255, 0.18);
    border-color: var(--cyber-cyan);
    box-shadow: 0 0 15px rgba(0, 240, 255, 0.35);
}
.user-menu {
    position: relative;
}
.user-avatar-btn {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-pill);
    padding: 4px 12px 4px 4px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #fff;
    cursor: pointer;
    transition: all 0.2s;
}
.user-avatar-btn:hover {
    border-color: rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.08);
}
.user-avatar-btn img {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    object-fit: cover;
    border: 1.5px solid var(--cyber-crimson);
}
.user-dropdown {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    background: rgba(13, 16, 24, 0.98);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-md);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.8), 0 0 20px rgba(0, 240, 255, 0.1);
    width: 230px;
    z-index: 1000;
    padding: 8px;
    display: none;
    opacity: 0;
    transform: translateY(-8px);
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}
.user-dropdown.show {
    display: block;
    opacity: 1;
    transform: translateY(0);
}
.user-dropdown a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    border-radius: var(--radius-sm);
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary);
    transition: all 0.15s;
}
.user-dropdown a:hover {
    background: rgba(255, 255, 255, 0.06);
    color: #fff;
}
.user-dropdown hr {
    border: none;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    margin: 6px 0;
}

/* -----------------------------------------------------------------------
   RESPONSIVE FORM GRIDS & UTILITIES
   ----------------------------------------------------------------------- */
.form-grid-2 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 16px;
}
.form-grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
}
.product-detail-layout {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 32px;
    align-items: flex-start;
}

/* -----------------------------------------------------------------------
   COMPREHENSIVE RESPONSIVE SYSTEM (MOBILE, TABLET, DESKTOP)
   ----------------------------------------------------------------------- */
@media (max-width: 1024px) {
    /* Public Navigation Drawer */
    .mobile-nav-toggle {
        display: flex;
    }
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: rgba(9, 11, 16, 0.98);
        backdrop-filter: blur(25px);
        -webkit-backdrop-filter: blur(25px);
        border-bottom: 2px solid var(--border-accent);
        box-shadow: 0 20px 45px rgba(0, 0, 0, 0.95);
        flex-direction: column;
        align-items: stretch;
        padding: 16px 20px;
        gap: 6px;
        z-index: 999;
    }
    .nav-links.show {
        display: flex;
        animation: legionNavSlide 0.25s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    }
    @keyframes legionNavSlide {
        from { opacity: 0; transform: translateY(-10px); }
        to { opacity: 1; transform: translateY(0); }
    }
    .nav-links .nav-link {
        padding: 12px 18px;
        font-size: 15px;
        width: 100%;
        border-radius: var(--radius-sm);
        border: 1px solid transparent;
    }
    .nav-links .nav-link:hover, .nav-links .nav-link.active {
        background: rgba(255, 255, 255, 0.06);
        border-color: var(--border-glass);
    }

    /* Admin Sidebar Off-Canvas */
    .admin-sidebar {
        position: fixed;
        top: 0;
        left: 0;
        bottom: 0;
        width: 280px;
        z-index: 1100;
        transform: translateX(-100%);
        transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
        box-shadow: 15px 0 40px rgba(0, 0, 0, 0.85);
    }
    .admin-sidebar.open {
        transform: translateX(0);
    }
    .admin-wrapper {
        margin-left: 0 !important;
        width: 100%;
        max-width: 100vw;
        overflow-x: hidden;
    }
    .admin-sidebar-toggle {
        display: flex !important;
        align-items: center;
        justify-content: center;
    }
    .admin-main-content {
        padding: 20px 16px;
        width: 100%;
        max-width: 100vw;
    }

    /* Product detail page stacks */
    .product-detail-layout {
        grid-template-columns: 1fr;
        gap: 24px;
    }
}

@media (max-width: 768px) {
    .nav-container {
        padding: 10px 16px;
    }
    .brand-name {
        font-size: 15px;
    }
    .brand-sub {
        font-size: 9px;
    }
    .brand-logo {
        width: 36px;
        height: 36px;
    }
    .server-quick-ip {
        font-size: 11px;
        padding: 6px 10px;
    }

    /* Stats Grid */
    .stats-grid {
        grid-template-columns: 1fr !important;
        gap: 14px;
    }
    .stat-card {
        padding: 16px 20px;
    }
    .stat-value {
        font-size: 26px;
    }

    /* Cockpit Actions Bar */
    .cockpit-actions-bar {
        flex-direction: column;
        align-items: stretch;
    }
    .cockpit-actions-bar .btn {
        width: 100%;
        justify-content: center;
    }

    /* Tables */
    .table-header {
        padding: 14px 16px;
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
    .data-table th, .data-table td {
        padding: 12px 14px;
    }

    /* Forms */
    .form-grid-2, .form-grid-3 {
        grid-template-columns: 1fr !important;
        gap: 14px;
    }
    .form-control {
        font-size: 16px !important; /* Prevents auto-zoom on iOS */
        padding: 11px 14px;
    }

    /* Buttons */
    .btn-lg {
        padding: 14px 22px;
        font-size: 14px;
    }

    /* Admin topbar */
    .admin-topbar {
        padding: 10px 16px;
        flex-wrap: wrap;
        gap: 10px;
    }
    .admin-topbar-title {
        font-size: 14px;
    }
    .admin-topbar-right {
        gap: 8px;
    }
    .admin-topbar-right .btn-sm {
        padding: 5px 10px;
        font-size: 10px;
    }

    /* Market Grid */
    .market-grid {
        grid-template-columns: 1fr !important;
        gap: 18px;
    }

    /* Cookie Banner */
    .cookie-banner {
        flex-direction: column;
        align-items: stretch;
        gap: 14px;
    }
    .cookie-banner .btn {
        width: 100%;
    }

    /* Modals Responsive */
    #termsModal > div, #disputeModal > div {
        padding: 20px 16px !important;
        margin: 10px !important;
        max-width: calc(100vw - 20px) !important;
        border-radius: var(--radius-lg) !important;
    }
}

@media (max-width: 480px) {
    .nav-container {
        padding: 8px 12px;
        gap: 8px;
    }
    .server-quick-ip {
        display: none !important;
    }
    .brand-name {
        font-size: 14px;
    }
    .brand-sub {
        display: none;
    }
    .user-avatar-btn span {
        display: none;
    }
    .user-avatar-btn {
        padding: 3px;
    }
    .btn {
        font-size: 12px;
        padding: 8px 14px;
    }
    .rank-card {
        padding: 10px 14px;
    }
    .rank-nick {
        font-size: 13px;
    }
    .rank-score {
        font-size: 12px;
        padding: 3px 6px;
    }
    .admin-main-content {
        padding: 12px 10px;
    }
}

/* -----------------------------------------------------------------------
   HIGH-TECH CYBER HUD & TELEMETRY WIDGETS
   ----------------------------------------------------------------------- */
.hud-ip-box {
    background: rgba(14, 18, 26, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(0, 240, 255, 0.3);
    border-radius: var(--radius-lg);
    padding: 10px 20px;
    display: inline-flex;
    align-items: center;
    gap: 14px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5), inset 0 0 15px rgba(0, 240, 255, 0.05);
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    cursor: pointer;
    user-select: none;
}
.hud-ip-box:hover {
    border-color: var(--cyber-cyan);
    box-shadow: 0 0 25px rgba(0, 240, 255, 0.35), inset 0 0 20px rgba(0, 240, 255, 0.1);
    transform: translateY(-2px);
}
.hud-ip-address {
    font-family: var(--font-mono);
    font-size: 18px;
    font-weight: 800;
    letter-spacing: 0.5px;
    color: #fff;
    text-shadow: 0 0 10px rgba(0, 240, 255, 0.4);
}
.hud-ip-meta {
    display: flex;
    flex-direction: column;
    text-align: left;
}
.hud-ip-label {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1px;
    color: var(--cyber-cyan);
    text-transform: uppercase;
    font-family: var(--font-mono);
}
.hud-ip-copy-btn {
    background: rgba(0, 240, 255, 0.12);
    border: 1px solid rgba(0, 240, 255, 0.4);
    color: #00f0ff;
    padding: 6px 10px;
    border-radius: var(--radius-sm);
    font-size: 11px;
    font-weight: 700;
    transition: all 0.2s;
}
.hud-ip-box:hover .hud-ip-copy-btn {
    background: var(--cyber-cyan);
    color: #000;
}

/* High-Tech Rank Card */
.rank-card {
    background: var(--bg-card);
    backdrop-filter: blur(14px);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    padding: 14px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}
.rank-card:hover {
    border-color: rgba(255, 255, 255, 0.18);
    background: var(--bg-card-hover);
    transform: translateX(4px);
}
.rank-pos {
    font-family: var(--font-mono);
    font-size: 20px;
    font-weight: 900;
    width: 38px;
    color: var(--text-muted);
}
.rank-pos-1 { color: #f59e0b; text-shadow: 0 0 12px rgba(245, 158, 11, 0.5); font-size: 24px; }
.rank-pos-2 { color: #cbd5e1; text-shadow: 0 0 10px rgba(203, 213, 225, 0.4); font-size: 22px; }
.rank-pos-3 { color: #b45309; text-shadow: 0 0 10px rgba(180, 83, 9, 0.4); font-size: 22px; }
.rank-nick {
    font-weight: 800;
    font-size: 15px;
    color: #fff;
    flex: 1;
    margin-left: 10px;
}
.rank-score {
    font-family: var(--font-mono);
    font-size: 15px;
    font-weight: 700;
    color: var(--cyber-cyan);
    background: rgba(0, 240, 255, 0.08);
    border: 1px solid rgba(0, 240, 255, 0.2);
    padding: 4px 10px;
    border-radius: var(--radius-sm);
}

/* Summernote Dark Cyber Skin */
.note-editor.note-frame {
    border: 1px solid var(--border-subtle) !important;
    background: #090b10 !important;
    border-radius: var(--radius-md) !important;
    overflow: hidden !important;
    box-shadow: inset 0 2px 10px rgba(0,0,0,0.5);
}
.note-toolbar {
    background: #0e1118 !important;
    border-bottom: 1px solid var(--border-subtle) !important;
    padding: 10px !important;
}
.note-btn {
    background: #141824 !important;
    color: #d4d4d8 !important;
    border: 1px solid rgba(255,255,255,0.08) !important;
    border-radius: 6px !important;
    padding: 6px 12px !important;
    font-size: 12px !important;
    transition: all 0.2s;
}
.note-btn:hover {
    background: rgba(239, 68, 68, 0.2) !important;
    border-color: var(--cyber-crimson) !important;
    color: #fff !important;
}
.note-editable {
    background: #090b10 !important;
    color: #e4e4e7 !important;
    min-height: 280px !important;
    padding: 20px !important;
    font-family: var(--font-body);
    font-size: 14px;
    line-height: 1.7;
}
.note-editable h1, .note-editable h2, .note-editable h3 {
    color: var(--cyber-crimson);
    font-family: var(--font-heading);
    margin-bottom: 10px;
}
.note-statusbar {
    background: #0e1118 !important;
    border-top: 1px solid var(--border-subtle) !important;
}

/* REACTION BUTTONS */
.reaction-btn {
    transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease, color 0.15s ease !important;
}
.reaction-btn:hover {
    transform: translateY(-2px) scale(1.04);
    background: rgba(255, 255, 255, 0.08) !important;
    border-color: rgba(249, 115, 22, 0.6) !important;
    color: #fff !important;
}
.reaction-btn.active {
    transform: scale(1.02);
    box-shadow: 0 0 12px rgba(249, 115, 22, 0.35);
}

