:root {
    --primary: #00f2ff;
    --primary-dim: rgba(0, 242, 255, 0.1);
    --primary-glow: rgba(0, 242, 255, 0.4);
    --bg-dark: #030508;
    --bg-panel: rgba(13, 17, 23, 0.6);
    --text-main: #e2e8f0;
    --text-muted: #94a3b8;
    --border: rgba(255, 255, 255, 0.06);
    --glass: rgba(20, 25, 35, 0.7);
    --glass-border: rgba(255, 255, 255, 0.08);
    --radius: 32px;
}

*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scrollbar-width: thin;
    scrollbar-color: var(--primary) transparent;
}

body {
    font-family: 'Quicksand', sans-serif;
    background: radial-gradient(circle at top left, #111827 0%, #030508 100%);
    color: var(--text-main);
    display: flex;
    height: 100vh;
    overflow: hidden;
}

/* Sidebar */

.sidebar {
    width: 280px;
    background: rgba(5, 7, 10, 0.95);
    border-right: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    padding: 0;
}

.nav-menu {
    flex-grow: 1;
    overflow-y: auto;
    min-height: 0;
    padding: 0 25px;
    scrollbar-width: none;
}
.nav-menu::-webkit-scrollbar { display: none; }

.tier-badge {
    font-size: 0.6rem;
    font-weight: 900;
    padding: 6px 12px;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 12px;
    display: inline-block;
    background: linear-gradient(90deg, var(--primary), #00a2ff);
    color: #000;
}

.nav-group { margin-bottom: 25px; }

.nav-label {
    font-size: 0.65rem;
    color: var(--text-muted);
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 12px;
    display: block;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-radius: 18px;
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 700;
    font-size: 0.9rem;
    transition: 0.3s;
    cursor: pointer;
    border: none;
    background: transparent;
    width: 100%;
    text-align: left;
    margin-bottom: 4px;
}
.nav-item:hover,
.nav-item.active {
    background: var(--primary-dim);
    color: var(--primary);
    border-right: 3px solid var(--primary);
}
.nav-item.active { box-shadow: 0 0 20px var(--primary-dim); }

/* Main content */

.main-content {
    flex: 1;
    overflow-y: auto;
    padding: 40px;
}

.content-section {
    display: none;
    animation: fadeIn 0.4s ease;
    content-visibility: auto;
    contain-intrinsic-size: 1px 1000px;
}
.content-section.active { display: block; }

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px) scale(0.98); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}

/* Cards */

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    background: var(--bg-panel);
    border: 1px solid var(--border);
    padding: 30px;
    border-radius: var(--radius);
    position: relative;
    overflow: hidden;
    transition: 0.3s;
    backdrop-filter: blur(10px);
}
.stat-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
    box-shadow: 0 10px 30px -10px rgba(0,0,0,0.5);
}
.stat-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 4px;
    background: linear-gradient(90deg, var(--primary), transparent);
    opacity: 0.5;
}

.stat-label {
    font-size: 0.75rem;
    color: var(--text-muted);
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.stat-value {
    font-size: 1.8rem;
    font-weight: 900;
    display: block;
    margin-top: 5px;
}

.glass-card {
    background: var(--glass);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius);
    padding: 30px;
    margin-bottom: 25px;
    backdrop-filter: blur(20px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.2);
}
.glass-card h3 {
    font-size: 1.1rem;
    font-weight: 800;
    margin-bottom: 20px;
    color: #fff;
    letter-spacing: -0.5px;
}

/* Table */

table { width: 100%; border-collapse: collapse; margin-top: 15px; }
th {
    text-align: left;
    font-size: 0.7rem;
    color: var(--text-muted);
    padding: 10px;
    border-bottom: 1px solid var(--border);
    text-transform: uppercase;
}
td { padding: 15px 10px; font-size: 0.85rem; border-bottom: 1px solid var(--border); }

/* Inputs & buttons */

input, select, textarea {
    width: 100%;
    background: rgba(0,0,0,0.3);
    border: 1px solid var(--border);
    padding: 15px;
    border-radius: 18px;
    color: white;
    margin-top: 8px;
    margin-bottom: 20px;
    font-family: inherit;
    transition: 0.3s;
}
input:focus, select:focus, textarea:focus {
    border-color: var(--primary);
    box-shadow: 0 0 15px var(--primary-dim);
    outline: none;
}

.btn-action {
    background: var(--primary);
    color: #000;
    font-weight: 900;
    border: none;
    padding: 18px;
    border-radius: 20px;
    cursor: pointer;
    transition: 0.3s;
    width: 100%;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.split-layout { display: grid; grid-template-columns: 2fr 1fr; gap: 30px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }

/* Animations */

@keyframes scan {
    0%, 100% { top: 0%; opacity: 0.2; }
    50%       { top: 100%; opacity: 1; }
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to   { transform: rotate(360deg); }
}

/* Scanner widget */

.scanner-container .scan-line {
    position: absolute;
    top: 0; left: -10px;
    width: 140px; height: 4px;
    background: var(--primary);
    box-shadow: 0 0 20px var(--primary);
    z-index: 3;
    animation: scan 3s infinite ease-in-out;
}

.orbit-ring {
    position: absolute;
    top: -20px; left: -20px;
    width: 160px; height: 160px;
    border: 2px dashed rgba(0, 242, 255, 0.2);
    border-radius: 50%;
    animation: rotate 10s linear infinite;
}

/* Map */

.map-placeholder {
    width: 100%; height: 350px;
    background: #0f131a;
    border-radius: 24px;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

/* Leaderboard podium */

.podium {
    display: flex;
    align-items: flex-end;
    justify-content: center;
    gap: 15px;
    margin-bottom: 40px;
    height: 200px;
}
.podium-step {
    width: 100px;
    background: linear-gradient(to top, rgba(255,255,255,0.05), transparent);
    border: 1px solid var(--border);
    border-bottom: none;
    border-radius: 24px 24px 0 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    padding-bottom: 20px;
    position: relative;
}
.podium-rank {
    font-size: 3rem;
    font-weight: 900;
    opacity: 0.1;
    position: absolute;
    bottom: 10px;
}
.podium-avatar {
    width: 50px; height: 50px;
    border-radius: 50%;
    border: 2px solid var(--primary);
    margin-bottom: 10px;
    object-fit: cover;
    content-visibility: auto;
}

/* Admin panel */

.admin-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 30px;
    border-bottom: 1px solid var(--border);
    padding-bottom: 15px;
    overflow-x: auto;
}
.admin-tab-btn {
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-weight: 800;
    font-size: 0.85rem;
    padding: 10px 20px;
    cursor: pointer;
    border-radius: 8px;
    transition: 0.3s;
    white-space: nowrap;
}
.admin-tab-btn:hover { color: #fff; background: rgba(255,255,255,0.05); }
.admin-tab-btn.active { background: var(--primary); color: #000; box-shadow: 0 0 15px var(--primary-dim); }

.admin-tab-content { display: none; animation: fadeIn 0.3s ease; }
.admin-tab-content.active { display: block; }

.role-badge {
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 0.7rem;
    font-weight: 800;
    text-transform: uppercase;
}
.member-row {
    display: grid;
    grid-template-columns: 50px 2fr 1.5fr 1fr 1fr;
    align-items: center;
    padding: 15px;
    border-bottom: 1px solid var(--border);
    transition: 0.2s;
    border-radius: 12px;
}
.member-row:hover { background: rgba(255,255,255,0.02); }

.color-preview {
    width: 100%; height: 100px;
    border-radius: 20px;
    margin-top: 10px;
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    color: #000;
    text-shadow: 0 1px 0 rgba(255,255,255,0.4);
}

/* Toggle switch */

.toggle-switch { position: relative; display: inline-block; width: 40px; height: 20px; }
.toggle-switch input { opacity: 0; width: 0; height: 0; }
.slider {
    position: absolute;
    cursor: pointer;
    inset: 0;
    background: #333;
    transition: 0.4s;
    border-radius: 20px;
}
.slider::before {
    content: '';
    position: absolute;
    height: 14px; width: 14px;
    left: 3px; bottom: 3px;
    background: white;
    transition: 0.4s;
    border-radius: 50%;
}
input:checked + .slider { background: var(--primary); }
input:checked + .slider::before { transform: translateX(20px); }

/* Fleet cards */

.truck-card {
    background: rgba(255,255,255,0.03);
    border: 1px solid var(--border);
    border-radius: 24px;
    padding: 20px;
    transition: 0.3s;
    position: relative;
    overflow: hidden;
}
.truck-card:hover {
    border-color: var(--primary);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}
.truck-img {
    width: 100%; height: 120px;
    object-fit: cover;
    border-radius: 16px;
    margin-bottom: 15px;
    content-visibility: auto;
}
.truck-stat {
    display: flex;
    justify-content: space-between;
    font-size: 0.75rem;
    margin-bottom: 5px;
    color: var(--text-muted);
}
.truck-stat strong { color: #fff; }
.status-dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; margin-right: 5px; }

/* Finance */

.finance-row {
    display: flex;
    justify-content: space-between;
    padding: 15px 0;
    border-bottom: 1px solid var(--border);
    align-items: center;
}
.finance-amount { font-weight: 800; font-size: 0.9rem; }
.finance-amount.pos { color: #10b981; }
.finance-amount.neg { color: #ef4444; }

/* Achievements */

.achievement-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 20px; }
.achievement-card {
    background: rgba(255,255,255,0.03);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    transition: 0.3s;
    position: relative;
    overflow: hidden;
}
.achievement-card.locked { opacity: 0.5; filter: grayscale(1); }
.achievement-card.unlocked {
    border-color: var(--primary);
    background: linear-gradient(145deg, rgba(255,255,255,0.03), rgba(0, 242, 255, 0.05));
}
.achievement-icon { font-size: 2rem; color: var(--primary); }
.achievement-info h4 { margin: 0; font-size: 0.9rem; color: #fff; }
.achievement-info p { margin: 5px 0 0; font-size: 0.75rem; color: var(--text-muted); }

.mini-badge-container {
    background: #1a1d24;
    border-radius: 6px;
    padding: 4px;
    display: flex;
    gap: 4px;
    border: 1px solid var(--border);
    margin-left: auto;
}
.mini-badge {
    width: 16px; height: 16px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    color: #000;
    font-weight: 900;
}

/* Settings */

.settings-section { margin-bottom: 25px; border-bottom: 1px solid var(--border); padding-bottom: 20px; }
.settings-section:last-child { border-bottom: none; }

/* Locked nav items */

.nav-item.locked {
    opacity: 0.5;
    cursor: not-allowed;
    filter: grayscale(1);
    position: relative;
}
.nav-item.locked:hover { background: transparent; color: var(--text-muted); border-right: none; }
.nav-item.locked::after { content: '🔒'; position: absolute; right: 15px; font-size: 0.8rem; }

.plan-badge {
    font-size: 0.6rem;
    padding: 4px 10px;
    border-radius: 6px;
    text-transform: uppercase;
    font-weight: 900;
    letter-spacing: 1px;
}

/* Toast notifications */

#toast-container {
    position: fixed;
    top: 20px; right: 20px;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    gap: 10px;
    pointer-events: none;
}
.toast {
    background: rgba(15, 23, 42, 0.95);
    border: 1px solid var(--border);
    border-left: 4px solid var(--primary);
    padding: 15px 20px;
    border-radius: 12px;
    color: #fff;
    font-size: 0.85rem;
    font-weight: 700;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    gap: 12px;
    animation: slideInRight 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    min-width: 300px;
    pointer-events: auto;
}
.toast.success { border-left-color: #10b981; }
.toast.error { border-left-color: #ef4444; }

@keyframes slideInRight {
    from { transform: translateX(100%); opacity: 0; }
    to   { transform: translateX(0); opacity: 1; }
}
@keyframes fadeOut {
    to { opacity: 0; transform: translateY(-10px); }
}

/* Overlays & wizards */

.fullscreen-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: radial-gradient(circle at center, #0a0c10, #000);
    z-index: 10000;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(25px);
    overflow-y: auto;
    padding: 40px 0;
}
.wizard-card {
    max-width: 800px;
    width: 90%;
    border: 1px solid var(--primary);
    padding: 45px;
    position: relative;
    background: rgba(10, 12, 16, 0.95);
    box-shadow: 0 0 100px rgba(0,0,0,1);
}
.wizard-logo {
    width: 80px; height: 80px;
    background: var(--primary);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #000;
    font-weight: 900;
    font-size: 2.5rem;
    margin: 0 auto 20px;
    box-shadow: 0 0 30px var(--primary-glow);
}
.wizard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 45px;
}
.wizard-item {
    background: rgba(255,255,255,0.02);
    padding: 20px;
    border-radius: 15px;
    border: 1px solid var(--border);
    transition: 0.3s;
}
.header-flex {
    margin-bottom: 40px;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
}

/* Admin utils */

.admin-list-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px;
    background: rgba(0,0,0,0.3);
    border-radius: 12px;
    border: 1px solid var(--border);
    margin-bottom: 10px;
}
.admin-user-info { display: flex; gap: 12px; align-items: center; }
.admin-avatar {
    width: 38px; height: 38px;
    border-radius: 50%;
    border: 1px solid var(--primary);
    object-fit: cover;
}

.btn-accept {
    background: #10b981;
    border: none;
    padding: 8px 12px;
    border-radius: 6px;
    color: #000;
    font-weight: 800;
    cursor: pointer;
    font-size: 0.7rem;
    transition: 0.2s;
}
.btn-deny {
    background: #ef4444;
    border: none;
    padding: 8px 12px;
    border-radius: 6px;
    color: #fff;
    cursor: pointer;
    font-size: 0.7rem;
    transition: 0.2s;
}
.btn-accept:hover, .btn-deny:hover { transform: scale(1.05); }

.truck-badge {
    position: absolute;
    top: 15px; right: 15px;
    color: #000;
    font-size: 0.6rem;
    font-weight: 900;
    padding: 4px 10px;
    border-radius: 20px;
}
.truck-details { font-size: 0.8rem; color: var(--text-muted); margin-bottom: 15px; }

.scrollable-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-height: 300px;
    overflow-y: auto;
}

/* Skeleton loading */

.skeleton {
    background: linear-gradient(
        90deg,
        rgba(255,255,255,0.02) 25%,
        rgba(255,255,255,0.08) 50%,
        rgba(255,255,255,0.02) 75%
    );
    background-size: 200% 100%;
    animation: skeleton-pulse 1.5s infinite;
    border-radius: 6px;
    color: transparent !important;
    pointer-events: none;
}
@keyframes skeleton-pulse {
    0%   { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* Icons */

.nav-icon, .feature-icon {
    font-size: 1.3rem;
    color: var(--text-muted);
    transition: all 0.3s ease;
    vertical-align: middle;
    display: inline-block;
    line-height: 1;
}
.nav-item:hover .nav-icon,
.nav-item.active .nav-icon,
.admin-tab-btn:hover .nav-icon,
.admin-tab-btn.active .nav-icon {
    color: var(--primary);
    filter: drop-shadow(0 0 8px var(--primary-glow));
}
.glass-card:hover .feature-icon,
.wizard-item:hover .feature-icon {
    color: var(--primary);
    transform: scale(1.1);
}

/* Beta banner */

.beta-banner {
    background: rgba(245, 158, 11, 0.15);
    border: 1px solid rgba(245, 158, 11, 0.3);
    color: #f59e0b;
    padding: 12px 20px;
    text-align: center;
    font-size: 0.9rem;
    font-weight: 700;
    margin-bottom: 30px;
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px rgba(245, 158, 11, 0.1);
}

/* Gallery */

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}
.gallery-item {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    aspect-ratio: 16/9;
    cursor: pointer;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid var(--border);
    background: #000;
}
.gallery-item:hover {
    transform: scale(1.03);
    border-color: var(--primary);
    z-index: 2;
    box-shadow: 0 15px 40px -10px var(--primary-glow);
}
.gallery-img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
    opacity: 0.8;
}
.gallery-item:hover .gallery-img { transform: scale(1.1); opacity: 1; }
.gallery-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.9), transparent);
    opacity: 0;
    transition: 0.3s;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 20px;
}
.gallery-item:hover .gallery-overlay { opacity: 1; }

/* Partners */

.partners-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 25px;
}
.partner-card {
    background: linear-gradient(145deg, rgba(255,255,255,0.03) 0%, rgba(255,255,255,0.01) 100%);
    border: 1px solid var(--border);
    border-radius: 24px;
    padding: 35px 25px;
    text-align: center;
    transition: 0.4s;
    position: relative;
    overflow: hidden;
}
.partner-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at top right, var(--primary-dim), transparent 60%);
    opacity: 0;
    transition: 0.4s;
}
.partner-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary);
    box-shadow: 0 20px 50px -10px rgba(0,0,0,0.5);
}
.partner-card:hover::before { opacity: 1; }
.partner-logo {
    width: 90px; height: 90px;
    border-radius: 50%;
    margin: 0 auto 20px;
    background: #0a0c10;
    border: 2px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: var(--text-muted);
    position: relative;
    z-index: 1;
    transition: 0.3s;
}
.partner-card:hover .partner-logo {
    border-color: var(--primary);
    color: var(--primary);
    box-shadow: 0 0 30px var(--primary-dim);
    transform: scale(1.1) rotate(5deg);
}
.partner-badge {
    position: absolute;
    top: 15px; right: 15px;
    font-size: 0.6rem;
    font-weight: 900;
    padding: 4px 10px;
    border-radius: 20px;
    background: rgba(255,255,255,0.1);
    color: var(--text-muted);
}

/* Events */

.event-hero-card {
    background: #0f131a;
    border: 1px solid var(--border);
    border-radius: 32px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 20px 50px rgba(0,0,0,0.4);
    transition: transform 0.3s ease;
}
.event-hero-card:hover { transform: translateY(-5px); border-color: var(--primary); }

.event-banner-wrapper { position: relative; height: 280px; }
.event-banner-img {
    width: 100%; height: 100%;
    background-size: cover;
    background-position: center;
    transition: transform 10s ease;
}
.event-hero-card:hover .event-banner-img { transform: scale(1.05); }
.event-banner-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, transparent 0%, #0f131a 90%);
}

.event-countdown-badge {
    position: absolute;
    top: 20px; right: 20px;
    background: rgba(0,0,0,0.6);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.1);
    padding: 10px 20px;
    border-radius: 16px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}
.event-countdown-badge .label {
    display: block;
    font-size: 0.6rem;
    color: var(--primary);
    font-weight: 800;
    letter-spacing: 1px;
    margin-bottom: 2px;
}
.event-countdown-badge .time {
    font-size: 1.5rem;
    font-weight: 900;
    color: #fff;
    font-variant-numeric: tabular-nums;
    letter-spacing: -1px;
}

.event-content {
    padding: 30px;
    position: relative;
    margin-top: -60px;
    z-index: 2;
}
.event-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 30px;
    flex-wrap: wrap;
    gap: 15px;
}
.server-badge {
    background: rgba(255,255,255,0.1);
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 0.7rem;
    font-weight: 800;
    color: var(--primary);
    display: inline-block;
    margin-bottom: 5px;
    border: 1px solid rgba(255,255,255,0.1);
}
#event-title {
    font-size: 2.5rem;
    line-height: 1;
    margin: 0;
    text-shadow: 0 10px 30px rgba(0,0,0,0.5);
}
.tmp-btn {
    background: rgba(255,255,255,0.1);
    color: #fff;
    text-decoration: none;
    padding: 8px 16px;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 700;
    transition: 0.3s;
    border: 1px solid transparent;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}
.tmp-btn:hover { background: var(--primary); color: #000; border-color: var(--primary); }

.route-visual {
    display: flex;
    align-items: center;
    background: rgba(255,255,255,0.03);
    border: 1px solid var(--border);
    padding: 25px;
    border-radius: 24px;
    margin-bottom: 25px;
    position: relative;
    overflow: hidden;
}
.route-visual::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 4px; height: 100%;
    background: var(--primary);
    box-shadow: 0 0 15px var(--primary);
}
.route-point { flex: 1; z-index: 1; }
.route-point.right { text-align: right; }
.route-point .label {
    display: block;
    font-size: 0.7rem;
    color: var(--text-muted);
    font-weight: 800;
    letter-spacing: 1px;
    margin-bottom: 5px;
}
.route-point strong { font-size: 1.4rem; color: #fff; display: block; line-height: 1; }
.route-line {
    flex: 2;
    height: 2px;
    background: rgba(255,255,255,0.1);
    position: relative;
    margin: 0 20px;
}
.route-line i {
    position: absolute;
    top: -10px; left: 50%;
    transform: translateX(-50%);
    font-size: 1.2rem;
    color: var(--primary);
    filter: drop-shadow(0 0 10px var(--primary));
}

.event-details-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin-bottom: 25px;
}
.detail-box {
    background: rgba(255,255,255,0.03);
    padding: 15px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    gap: 15px;
    border: 1px solid var(--border);
    transition: 0.3s;
}
.detail-box:hover { background: rgba(255,255,255,0.05); border-color: rgba(255,255,255,0.2); }
.detail-box i { font-size: 1.5rem; color: var(--text-muted); }
.detail-box .label { display: block; font-size: 0.65rem; color: var(--text-muted); font-weight: 800; margin-bottom: 2px; }
.detail-box strong { font-size: 0.9rem; color: #fff; }

.event-briefing {
    background: rgba(255,255,255,0.02);
    padding: 20px;
    border-radius: 16px;
    margin-bottom: 25px;
    border: 1px dashed var(--border);
}
.event-briefing h4 { margin: 0 0 10px; font-size: 0.9rem; color: #fff; display: flex; align-items: center; gap: 8px; }
.event-briefing p { margin: 0; font-size: 0.9rem; color: var(--text-muted); line-height: 1.6; }

.attendance-actions { display: flex; gap: 15px; }
.btn-attend {
    flex: 2;
    background: #10b981;
    color: #000;
    border: none;
    padding: 15px;
    border-radius: 16px;
    font-weight: 800;
    cursor: pointer;
    transition: 0.3s;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    box-shadow: 0 10px 20px rgba(16, 185, 129, 0.2);
}
.btn-attend:hover { transform: translateY(-2px); box-shadow: 0 15px 30px rgba(16, 185, 129, 0.4); }
.btn-decline {
    flex: 1;
    background: rgba(255,255,255,0.05);
    color: var(--text-muted);
    border: 1px solid var(--border);
    padding: 15px;
    border-radius: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}
.btn-decline:hover { background: rgba(239, 68, 68, 0.1); color: #ef4444; border-color: #ef4444; }

/* Overview */

.overview-hero {
    display: grid;
    grid-template-columns: 2.5fr 1fr;
    gap: 25px;
    margin-bottom: 30px;
}
.hero-card {
    background: linear-gradient(145deg, rgba(255,255,255,0.03) 0%, rgba(255,255,255,0.01) 100%);
    border: 1px solid var(--border);
    border-radius: 32px;
    padding: 30px;
    position: relative;
    overflow: hidden;
    transition: 0.3s;
}
.hero-card:hover { border-color: var(--primary); box-shadow: 0 10px 40px -10px rgba(0,0,0,0.3); }
.hero-card::after {
    content: '';
    position: absolute;
    top: -50%; right: -50%;
    width: 100%; height: 200%;
    background: radial-gradient(circle, var(--primary-dim), transparent 70%);
    opacity: 0.3;
    pointer-events: none;
}

.live-feed-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px 0;
    border-bottom: 1px solid var(--border);
    animation: fadeIn 0.5s ease;
}
.live-feed-item:last-child { border-bottom: none; }

.feed-icon {
    width: 40px; height: 40px;
    border-radius: 12px;
    background: rgba(255,255,255,0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    font-size: 1.2rem;
}

.online-avatars { display: flex; margin-top: 5px; }
.online-avatars img {
    width: 35px; height: 35px;
    border-radius: 50%;
    border: 2px solid #0a0c10;
    margin-left: -12px;
    transition: 0.3s;
    object-fit: cover;
    background: #000;
}
.online-avatars img:first-child { margin-left: 0; }
.online-avatars img:hover { transform: translateY(-5px) scale(1.1); z-index: 2; border-color: var(--primary); }

.rank-circle {
    width: 70px; height: 70px;
    border-radius: 50%;
    background: conic-gradient(var(--primary) 0%, var(--primary) var(--percent), rgba(255,255,255,0.1) var(--percent), rgba(255,255,255,0.1) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    box-shadow: 0 0 20px var(--primary-dim);
}
.rank-circle::before {
    content: '';
    position: absolute;
    inset: 6px;
    background: #0f1115;
    border-radius: 50%;
}
.rank-circle span {
    position: relative;
    font-weight: 900;
    font-size: 0.8rem;
    color: #fff;
    z-index: 2;
}

/* Admin input */

.admin-input {
    background: rgba(0,0,0,0.4) !important;
    border: 1px solid var(--border) !important;
    width: 100%;
    padding: 15px;
    border-radius: 8px;
    color: #fff;
    font-size: 0.85rem;
    transition: all 0.3s ease;
}
.admin-input:focus {
    border-color: var(--primary) !important;
    box-shadow: 0 0 15px var(--primary-glow);
    outline: none;
}

/* Sidebar overlay (mobile) */

.sidebar-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.6);
    z-index: 4999;
    backdrop-filter: blur(4px);
}

/* Mobile */

#mobile-menu-btn { display: none; }

@media (max-width: 1100px) {
    .overview-hero { grid-template-columns: 1fr; }
}

@media (max-width: 900px) {
    .sidebar {
        position: fixed;
        inset: 0 auto 0 0;
        z-index: 5000;
        transform: translateX(-100%);
        transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        width: 280px;
        box-shadow: 20px 0 50px rgba(0,0,0,0.5);
    }
    .sidebar.open { transform: translateX(0); }

    #mobile-menu-btn {
        display: flex;
        position: fixed;
        top: 20px; left: 20px;
        z-index: 4000;
        background: var(--primary);
        border: 1px solid var(--border);
        color: #000;
        width: 45px; height: 45px;
        border-radius: 12px;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        backdrop-filter: blur(10px);
        font-size: 1.2rem;
    }

    .main-content { padding: 80px 20px 20px; }
    .stats-grid { grid-template-columns: 1fr 1fr; }
    .split-layout { grid-template-columns: 1fr; }
    .form-grid { grid-template-columns: 1fr; }

    .podium { flex-direction: column; height: auto; align-items: center; gap: 20px; }
    .podium-step { width: 100%; height: auto !important; flex-direction: row; justify-content: flex-start; padding: 15px; border-bottom: 1px solid var(--border); }
    .podium-rank { position: relative; bottom: auto; margin-right: 15px; font-size: 1.5rem; }

    .glass-card { overflow-x: auto; }
}

@media (max-width: 768px) {
    .event-details-grid { grid-template-columns: 1fr; }
    .event-header { flex-direction: column; align-items: flex-start; }
    .attendance-actions { flex-direction: column; }
}

@media (max-width: 600px) {
    .stats-grid { grid-template-columns: 1fr; }
}
/* Driving Test - Premium System */

.exam-card-premium {
    background: rgba(10, 12, 16, 0.4);
    border: 1px solid rgba(0, 242, 255, 0.15);
    border-radius: 24px;
    padding: 35px;
    backdrop-filter: blur(20px);
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.exam-card-premium::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--primary), transparent);
    opacity: 0.5;
}

.exam-question-anim {
    animation: slideUpFade 0.5s forwards;
}

@keyframes slideUpFade {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.exam-option {
    display: flex;
    align-items: center;
    gap: 15px;
    width: 100%;
    padding: 18px 25px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border);
    border-radius: 16px;
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
    text-align: left;
    margin-bottom: 12px;
}

.exam-option:hover {
    background: rgba(0, 242, 255, 0.05);
    border-color: var(--primary);
    color: #fff;
    transform: translateX(10px);
    box-shadow: -10px 0 20px rgba(0, 242, 255, 0.1);
}

.exam-option.selected {
    background: var(--primary-dim);
    border-color: var(--primary);
    color: #fff;
}

.exam-option-key {
    width: 32px;
    height: 32px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: 800;
    color: var(--primary);
}

.progress-track-premium {
    width: 100%;
    height: 6px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    overflow: hidden;
    margin: 25px 0;
}

.progress-fill-premium {
    height: 100%;
    background: linear-gradient(90deg, var(--primary), #00a2ff);
    box-shadow: 0 0 15px var(--primary-glow);
    transition: width 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.exam-feedback {
    display: none;
    margin-top: 20px;
    padding: 15px;
    border-radius: 12px;
    font-weight: 700;
    text-align: center;
    animation: popIn 0.3s forwards;
}

@keyframes popIn {
    0% { transform: scale(0.8); opacity: 0; }
    100% { transform: scale(1); opacity: 1; }
}

.feedback-success { background: rgba(16, 185, 129, 0.1); color: #10b981; border: 1px solid #10b981; }
.feedback-error { background: rgba(239, 68, 68, 0.1); color: #ef4444; border: 1px solid #ef4444; }
