:root {
    --bg-navy: #050d1a;
    --bg-midnight: #0a192f;
    --bg-teal: #092532;
    --neon-green: #00ff88;
    --lime-green: #76ff03;
    --gold-yellow: #ffd700;
    --cyan-accent: #00e5ff;
    --card-white: #ffffff;
    --text-white: #f4f9fc;
    --text-muted: #94a8be;
    --text-dark: #0f172a;
    --glass-bg: rgba(10, 29, 51, 0.78);
    --glass-border: rgba(0, 255, 136, 0.25);
    --radius-lg: 18px;
    --radius-md: 12px;
    --shadow-soft: 0 10px 30px rgba(0, 0, 0, 0.45);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: radial-gradient(circle at top right, var(--bg-teal), var(--bg-midnight) 55%, var(--bg-navy) 100%);
    color: var(--text-white);
    min-height: 100vh;
    padding-bottom: 82px;
    overflow-x: hidden;
}

/* Subtle Animated Tech Network Grid Overlay */
body::before {
    content: "";
    position: fixed;
    inset: 0;
    background-image:
        radial-gradient(rgba(0, 255, 136, 0.08) 1px, transparent 1px),
        radial-gradient(rgba(0, 229, 255, 0.05) 1px, transparent 1px);
    background-size: 36px 36px;
    background-position: 0 0, 18px 18px;
    pointer-events: none;
    z-index: 0;
}

.app-wrapper {
    position: relative;
    z-index: 1;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 14px;
}

/* Top App Header */
.app-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(5, 13, 26, 0.88);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--glass-border);
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.brand-area {
    display: flex;
    align-items: center;
    gap: 12px;
}

.brand-logo {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    border: 1.5px solid var(--neon-green);
    object-fit: cover;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 14px;
}

.icon-btn {
    position: relative;
    width: 40px;
    height: 40px;
    border-radius: 11px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(0, 255, 136, 0.22);
    color: var(--text-white);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.2s ease;
}

.icon-btn:hover {
    background: rgba(0, 255, 136, 0.16);
    color: var(--neon-green);
}

.notif-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    background: linear-gradient(135deg, #ff3b30, #ff9500);
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 999px;
}

/* Glass Cards & White Dashboard Cards */
.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    padding: 18px;
    box-shadow: var(--shadow-soft);
    margin-bottom: 16px;
}

.white-stat-card {
    background: var(--card-white);
    color: var(--text-dark);
    border-radius: var(--radius-md);
    padding: 16px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.22);
    border-left: 5px solid var(--neon-green);
    transition: transform 0.2s ease;
}

.white-stat-card:hover {
    transform: translateY(-2px);
}

/* Neon Green Gradient Buttons */
.btn-neon {
    background: linear-gradient(135deg, var(--neon-green) 0%, var(--lime-green) 100%);
    color: #04121f;
    font-weight: 700;
    border: none;
    padding: 11px 20px;
    border-radius: 12px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-decoration: none;
    box-shadow: 0 4px 15px rgba(0, 255, 136, 0.35);
    transition: all 0.2s ease;
}

.btn-neon:hover {
    filter: brightness(1.08);
    transform: translateY(-1px);
}

.badge-gold {
    background: rgba(255, 215, 0, 0.16);
    color: var(--gold-yellow);
    border: 1px solid rgba(255, 215, 0, 0.45);
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
}

.badge-active {
    background: rgba(0, 255, 136, 0.16);
    color: var(--neon-green);
    border: 1px solid rgba(0, 255, 136, 0.45);
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
}

/* Grid Helpers */
.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
}

@media (max-width: 768px) {
    .grid-3 {
        grid-template-columns: 1fr;
    }
    .grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Sidebar Drawer */
.sidebar-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.65);
    z-index: 998;
    display: none;
}

.sidebar-backdrop.open {
    display: block;
}

.app-sidebar {
    position: fixed;
    top: 0;
    left: -300px;
    width: 285px;
    height: 100vh;
    background: #061325;
    border-right: 1px solid var(--glass-border);
    z-index: 999;
    overflow-y: auto;
    transition: left 0.28s ease;
    padding: 18px 12px 40px;
}

.app-sidebar.open {
    left: 0;
}

.sidebar-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 11px 14px;
    color: var(--text-white);
    text-decoration: none;
    border-radius: 10px;
    font-size: 14px;
    margin-bottom: 4px;
}

.sidebar-link:hover,
.sidebar-link.active {
    background: rgba(0, 255, 136, 0.14);
    color: var(--neon-green);
}

/* Mobile Bottom Navigation */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 66px;
    background: rgba(5, 13, 26, 0.95);
    backdrop-filter: blur(14px);
    border-top: 1px solid var(--glass-border);
    display: flex;
    justify-content: space-around;
    align-items: center;
    z-index: 100;
}

.bottom-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    color: var(--text-muted);
    text-decoration: none;
    font-size: 11px;
    gap: 4px;
}

.bottom-nav-item.active,
.bottom-nav-item:hover {
    color: var(--neon-green);
}