/* ═══════════════════════════════════════
   VTC SYSTEMS HUB — dashboard.css (slim)
   ═══════════════════════════════════════ */

/* ── Variables ── */
:root {
    --primary: #00f2ff;
    --primary-dim: rgba(0, 242, 255, .1);
    --primary-glow: rgba(0, 242, 255, .4);
    --bg-dark: #030508;
    --bg-panel: rgba(13, 17, 23, .6);
    --text-main: #e2e8f0;
    --text-muted: #94a3b8;
    --border: rgba(255, 255, 255, .06);
    --glass: rgba(20, 25, 35, .7);
    --glass-border: rgba(255, 255, 255, .08);
    --radius: 32px;
}

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

/* ── Base ── */
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;
}

/* ══ UTILITIES ══ */
.flex {
    display: flex
}

.flex-col {
    display: flex;
    flex-direction: column
}

.flex-center {
    display: flex;
    align-items: center;
    justify-content: center
}

.items-center {
    align-items: center
}

.justify-between {
    justify-content: space-between
}

.w-full {
    width: 100%
}

.text-center {
    text-align: center
}

.text-muted {
    color: var(--text-muted)
}

.relative {
    position: relative
}

.overflow-hidden {
    overflow: hidden
}

.gap-8 {
    gap: 8px
}

.gap-10 {
    gap: 10px
}

.gap-15 {
    gap: 15px
}

.gap-20 {
    gap: 20px
}

.gap-25 {
    gap: 25px
}

.mt-10 {
    margin-top: 10px
}

.mt-15 {
    margin-top: 15px
}

.mt-20 {
    margin-top: 20px
}

.mt-25 {
    margin-top: 25px
}

.mb-10 {
    margin-bottom: 10px
}

.mb-15 {
    margin-bottom: 15px
}

.mb-20 {
    margin-bottom: 20px
}

.mb-25 {
    margin-bottom: 25px
}

.mb-30 {
    margin-bottom: 30px
}

.p-20 {
    padding: 20px
}

.p-25 {
    padding: 25px
}

/* ══ SIDEBAR ══ */
.sidebar {
    width: 280px;
    background: rgba(5, 7, 10, .95);
    border-right: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    height: 100vh;
}

.brand-section {
    position: relative;
    padding: 40px 25px 30px;
    border-bottom: 1px solid var(--border);
    overflow: hidden;
    background: rgba(255, 255, 255, .02);
    margin-bottom: 35px;
    flex-shrink: 0;
    min-height: 150px;
}

.brand-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    z-index: 0;
    display: none;
    transform: scale(1.02);
    filter: saturate(1.05);
}

.brand-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(15, 19, 26, .3), rgba(15, 19, 26, .9));
    z-index: 1
}

.brand-content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    min-height: 100%
}

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

.brand-row {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-top: 15px
}

.brand-logo {
    min-width: 50px;
    width: 50px;
    height: 50px;
    background: var(--primary);
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #000;
    font-weight: 900;
    font-size: 1.6rem;
    box-shadow: 0 0 30px var(--primary-glow);
}

.brand-name {
    font-size: 1.1rem;
    letter-spacing: -.5px;
    line-height: 1.2;
    font-weight: 800;
    margin: 0;
    word-break: break-word;
    text-shadow: 0 2px 10px rgba(0, 0, 0, .8);
}

.brand-tag {
    font-size: .65rem;
    color: var(--text-muted);
    letter-spacing: 1px;
    font-weight: 700;
    display: block;
    text-shadow: 0 2px 10px rgba(0, 0, 0, .8);
}

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

.nav-menu::-webkit-scrollbar {
    display: none
}

.nav-group {
    margin-bottom: 25px;
    display: flex;
    flex-direction: column
}

.nav-group-label,
.nav-label {
    font-size: .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);
    font-weight: 700;
    font-size: .9rem;
    transition: .3s;
    cursor: pointer;
    border: none;
    background: transparent;
    width: 100%;
    text-align: left;
    margin-bottom: 4px;
    text-decoration: none;
}

.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)
}

.nav-item.tier-locked {
    opacity: .5;
    filter: grayscale(.8);
    cursor: pointer !important;
    position: relative;
    transition: all .3s;
}

.nav-item.tier-locked:hover {
    background: rgba(255, 255, 255, .03) !important;
    opacity: .7;
    filter: grayscale(.4);
}

.nav-item.tier-locked::after {
    content: '\ee85';
    font-family: 'remixicon' !important;
    position: absolute;
    right: 18px;
    top: 50%;
    transform: translateY(-50%);
    font-size: .8rem;
    color: var(--primary);
    background: rgba(0, 0, 0, .5);
    width: 22px;
    height: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, .1);
    box-shadow: 0 4px 10px rgba(0, 0, 0, .3);
}

/* Sidebar footer */
.sidebar-footer {
    margin-top: auto;
    padding: 20px 25px 25px;
    border-top: 1px solid var(--border)
}

.sidebar-user-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 15px;
    cursor: pointer;
    padding: 5px;
    border-radius: 12px;
    transition: .2s;
}

.sidebar-user-row:hover {
    background: rgba(255, 255, 255, .05)
}

.sidebar-avatar-wrap {
    position: relative
}

.sidebar-avatar {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    border: 2px solid var(--primary);
    background: #000;
    object-fit: cover
}

.sidebar-lvl-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: var(--primary);
    color: #000;
    font-size: .6rem;
    font-weight: 900;
    padding: 2px 6px;
    border-radius: 10px;
    border: 2px solid #111;
    box-shadow: 0 4px 10px rgba(0, 0, 0, .5);
}

.sidebar-user-info {
    overflow: hidden;
    flex: 1
}

.sidebar-name-row,
.sidebar-role-row {
    display: flex;
    align-items: center;
    justify-content: space-between
}

.sidebar-role-row {
    margin-top: 2px
}

.sidebar-driver-name {
    font-weight: 700;
    font-size: .9rem;
    margin: 0;
    white-space: nowrap;
    text-overflow: ellipsis;
    color: #fff
}

.sidebar-driver-role {
    font-size: .65rem;
    color: var(--primary);
    text-transform: uppercase;
    font-weight: 800;
    letter-spacing: .5px;
    margin: 0
}

.logout-btn {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #0a0a0a;
    border: 1px solid #222;
    color: #ef4444;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: .3s;
}

.logout-btn:hover {
    background: #ef4444;
    color: #fff
}

.xp-bar-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 6px
}

.xp-label {
    font-size: .55rem;
    color: var(--text-muted);
    font-weight: 800;
    text-transform: uppercase
}

.xp-values {
    font-size: .6rem;
    color: #fff;
    font-weight: 800
}

.xp-track {
    width: 100%;
    background: rgba(255, 255, 255, .05);
    height: 8px;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, .1);
}

/* ══ MAIN CONTENT ══ */
.main-content {
    flex: 1;
    overflow-y: auto;
    padding: 40px
}

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

.content-section.active {
    display: block
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px) scale(.98)
    }

    to {
        opacity: 1;
        transform: none
    }
}

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

.stats-grid-overview,
.admin-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
    margin-bottom: 25px
}

.admin-stats-grid {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    margin-bottom: 30px
}

.admin-content-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 400px), 1fr));
    gap: 25px
}

.system-config-layout {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 25px;
    align-items: start
}

.driver-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 15px
}

.tracker-feature-grid,
.perm-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-bottom: 30px
}

.perm-grid {
    gap: 10px;
    background: rgba(255, 255, 255, .03);
    padding: 15px;
    border-radius: 12px;
    margin-bottom: 0
}

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

.wizard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-bottom: 25px
}

.split-layout,
.overview-hero {
    display: grid;
    gap: 30px
}

.split-layout {
    grid-template-columns: 2fr 1fr
}

.overview-hero {
    grid-template-columns: 2fr 1fr;
    gap: 25px;
    margin-bottom: 30px
}

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

.overview-split {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 25px
}

/* Overview */
.overview-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 30px
}

.overview-header-left h1 {
    font-size: 2.5rem;
    font-weight: 900;
    letter-spacing: -1px;
    margin: 0
}

.overview-header-left p,
.overview-header-right {
    color: var(--text-muted);
    font-weight: 500;
    margin-top: 5px
}

.overview-header-right {
    text-align: right
}

.overview-left {
    display: flex;
    flex-direction: column;
    gap: 25px
}

.overview-right {
    margin: 0;
    padding: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    max-height: 725px
}

.overview-right-header {
    padding: 20px;
    border-bottom: 1px solid var(--border);
    background: rgba(255, 255, 255, .02)
}

.overview-right-header h3 {
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1rem
}

.live-feed-scroll {
    flex: 1;
    overflow-y: auto
}

/* ══ CARDS ══ */
.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, .2);
}

.glass-card h3 {
    font-size: 1.1rem;
    font-weight: 800;
    margin-bottom: 20px;
    color: #fff;
    letter-spacing: -.5px
}

.hero-card {
    background: rgba(20, 25, 35, .6);
    border: 1px solid rgba(255, 255, 255, .08);
    border-radius: 24px;
    padding: 30px;
    backdrop-filter: blur(20px);
    transition: all .3s;
    position: relative;
    overflow: hidden;
    box-shadow: 0 20px 40px -10px rgba(0, 0, 0, .3);
}

.hero-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
    box-shadow: 0 30px 60px -15px rgba(0, 0, 0, .5)
}

.hero-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at top right, rgba(255, 255, 255, .05), transparent 70%);
    pointer-events: none;
}

.stat-card,
.admin-stat-card {
    margin: 0;
    padding: 25px;
    position: relative;
    overflow: hidden;
    background: rgba(255, 255, 255, .02);
    border: 1px solid var(--border);
    border-radius: 20px;
    transition: all .3s;
}

.stat-card:hover,
.admin-stat-card:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, .04);
    border-color: var(--primary);
    box-shadow: 0 10px 30px -10px rgba(0, 0, 0, .3);
}

.stats-grid .stat-card {
    background: var(--bg-panel);
    border-radius: var(--radius);
    padding: 30px;
    backdrop-filter: blur(10px);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.stats-grid .stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), transparent);
    opacity: .5;
}

.stat-label {
    font-size: .75rem;
    color: var(--text-muted);
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .5px
}

.stat-value {
    font-size: 1.8rem;
    font-weight: 900;
    display: block;
    margin-top: 5px
}

.stat-card-icon-bg {
    position: absolute;
    top: -10px;
    right: -10px;
    font-size: 5rem;
    opacity: .05;
    color: #fff
}

.stat-card-label-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px
}

.stat-card-icon,
.admin-stat-icon {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: rgba(255, 255, 255, .05);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all .2s;
    border: 1px solid transparent;
}

.admin-stat-icon {
    width: 50px;
    height: 50px;
    font-size: 1.5rem;
    color: var(--card-color, #fff)
}

.stat-card-label {
    font-size: .75rem;
    font-weight: 800;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px
}

.stat-card-value {
    font-size: 2rem;
    font-weight: 900;
    margin: 0;
    line-height: 1
}

.stat-card-sub {
    font-size: .75rem;
    margin-top: 5px;
    font-weight: 700
}

.admin-stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--card-color, var(--primary));
}

.admin-stat-info h3 {
    font-size: 2rem;
    margin: 0;
    font-weight: 900;
    color: #fff;
    line-height: 1
}

.admin-stat-info p {
    font-size: .75rem;
    color: var(--text-muted);
    margin: 5px 0 0;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px
}

.icon-btn {
    background: rgba(255, 255, 255, .05);
    border: 1px solid var(--border);
    color: var(--text-muted);
    width: 30px;
    height: 30px;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all .2s;
}

.icon-btn:hover {
    background: rgba(255, 255, 255, .1);
    border-color: rgba(255, 255, 255, .2);
    transform: scale(1.1);
}

.icon-btn[style*="#ef4444"]:hover {
    background: rgba(239, 68, 68, .15) !important;
    border-color: rgba(239, 68, 68, .3) !important;
}

/* Rank */
.rank-circle {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    background: conic-gradient(var(--primary) var(--percent), rgba(255, 255, 255, .05) 0);
    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: 8px;
    background: #141923;
    border-radius: 50%
}

.rank-circle span {
    position: relative;
    z-index: 2;
    font-weight: 800;
    font-size: 1rem;
    color: #fff
}

.rank-stat-card {
    margin: 0;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 20px;
    background: linear-gradient(135deg, rgba(255, 255, 255, .05) 0%, transparent);
    border: 1px solid var(--primary-dim);
    border-radius: 20px;
}

.rank-stat-card .rank-circle {
    width: 70px;
    height: 70px
}

.rank-stat-card .rank-circle span {
    font-size: .9rem
}

.rank-stat-label {
    font-size: .7rem;
    font-weight: 800;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 1px
}

.rank-stat-km {
    font-size: 1.4rem;
    font-weight: 900;
    margin: 2px 0
}

.rank-stat-next {
    font-size: .65rem;
    color: var(--text-muted)
}

/* Driver card */
.driver-card-item {
    background: rgba(255, 255, 255, .02);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    transition: all .3s cubic-bezier(.4, 0, .2, 1);
    position: relative;
    overflow: hidden;
}

.driver-card-item:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, .05);
    border-color: var(--primary);
    box-shadow: 0 10px 30px -10px rgba(0, 0, 0, .5);
}

.driver-card-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 3px;
    height: 100%;
    background: var(--status-color, var(--primary));
    opacity: .7;
}

/* Chart card */
.chart-card {
    margin: 0;
    padding: 25px;
    height: 350px;
    display: flex;
    flex-direction: column
}

.chart-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px
}

.chart-card-header h3 {
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px
}

.chart-wrap {
    flex: 1;
    width: 100%;
    position: relative
}

/* Live map */
.live-map-card {
    display: none;
    padding: 0;
    overflow: hidden;
    position: relative;
    height: 400px;
    margin: 0
}

.live-map-badge {
    position: absolute;
    top: 20px;
    left: 20px;
    z-index: 400;
    background: rgba(0, 0, 0, .8);
    backdrop-filter: blur(10px);
    padding: 10px 20px;
    border-radius: 12px;
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    gap: 10px;
}

.live-map-badge span {
    font-weight: 800;
    font-size: .8rem;
    color: #fff
}

/* ══ LIVE FEED ══ */
.live-feed-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, .05);
    transition: .2s;
    animation: fadeIn .5s;
}

.live-feed-item:last-child {
    border-bottom: none
}

.live-feed-item:hover {
    background: rgba(255, 255, 255, .02);
    padding-left: 20px
}

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

/* ══ GALLERY ══ */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 16px;
    margin-top: 20px;
}

.gallery-item {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    aspect-ratio: 4/3;
    cursor: pointer;
    transition: all .25s;
    background: rgba(255, 255, 255, .02);
    border: 1px solid var(--border);
}

.gallery-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 30px -10px rgba(0, 0, 0, .5);
    border-color: var(--primary);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .4s
}

.gallery-item:hover img {
    transform: scale(1.08)
}

.gallery-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, .85), rgba(0, 0, 0, .3) 50%, transparent);
    opacity: 0;
    transition: all .25s;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 15px;
}

.gallery-item:hover .gallery-overlay {
    opacity: 1
}

.gallery-overlay strong {
    color: #fff;
    font-size: .9rem;
    font-weight: 700;
    margin-bottom: 2px;
    transform: translateY(15px);
    transition: transform .25s .03s
}

.gallery-item:hover .gallery-overlay strong {
    transform: none
}

.gallery-overlay span {
    color: var(--text-muted);
    font-size: .7rem;
    transform: translateY(15px);
    transition: transform .25s .08s
}

.gallery-item:hover .gallery-overlay span {
    transform: none
}

.gallery-actions {
    position: absolute;
    top: 8px;
    right: 8px;
    display: flex;
    gap: 6px;
    opacity: 0;
    transform: translateY(-8px);
    transition: all .2s
}

.gallery-item:hover .gallery-actions {
    opacity: 1;
    transform: none
}

.gallery-action-btn {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: rgba(0, 0, 0, .7);
    border: 1px solid rgba(255, 255, 255, .1);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all .15s;
    font-size: .9rem;
}

.gallery-action-btn:hover {
    background: rgba(255, 255, 255, .15)
}

.gallery-action-btn.delete:hover {
    background: rgba(239, 68, 68, .3);
    color: #ef4444
}

.gallery-lightbox {
    position: fixed !important;
    inset: 0 !important;
    background:
        radial-gradient(circle at top, rgba(0, 242, 255, .14), transparent 32%),
        radial-gradient(circle at bottom right, rgba(255, 255, 255, .08), transparent 28%),
        rgba(3, 6, 14, .92);
    z-index: 2147483647 !important;
    display: none;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(18px) saturate(120%);
    animation: galleryFadeIn .22s ease-out;
    padding: 24px;
    pointer-events: auto;
}

.gallery-lightbox.is-open {
    display: flex !important;
}

.gallery-lightbox-shell {
    width: min(900px, 92vw);
    max-height: 86vh;
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 16px;
    border-radius: 28px;
    background: linear-gradient(180deg, rgba(255, 255, 255, .06), rgba(255, 255, 255, .03));
    border: 1px solid rgba(255, 255, 255, .1);
    box-shadow: 0 30px 100px rgba(0, 0, 0, .68);
    backdrop-filter: blur(18px);
    animation: galleryPop .22s ease-out;
}

.gallery-lightbox-meta {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
    padding: 4px 6px 0;
}

.gallery-lightbox-kicker {
    display: block;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: .68rem;
    font-weight: 900;
    margin-bottom: 4px;
}

.gallery-lightbox-meta h3 {
    margin: 0;
    color: #fff;
    font-size: 1rem;
    font-weight: 800;
}

.gallery-lightbox-hint {
    color: var(--text-muted);
    font-size: .75rem;
    white-space: nowrap;
}

.gallery-lightbox img {
    width: 100%;
    max-width: 100%;
    max-height: calc(86vh - 88px);
    object-fit: contain;
    border-radius: 20px;
    box-shadow: 0 16px 60px rgba(0, 0, 0, .5);
    border: 1px solid rgba(255, 255, 255, .08);
    background: rgba(0, 0, 0, .18);
    animation: galleryPop .22s ease-out;
}

.gallery-grid {
    align-items: start;
}

.gallery-item {
    min-height: 0;
}

.gallery-item img {
    display: block;
    height: 220px;
    width: 100%;
}

.gallery-lightbox-close {
    position: fixed;
    top: 18px;
    right: 18px;
    width: 42px;
    height: 42px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, .12);
    background: rgba(255, 255, 255, .08);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 100000;
    backdrop-filter: blur(10px);
    transition: transform .18s ease, background .18s ease, border-color .18s ease;
}

.gallery-lightbox-close:hover {
    transform: scale(1.05);
    background: rgba(255, 255, 255, .14);
    border-color: rgba(255, 255, 255, .24);
}

@keyframes galleryPop {
    from {
        transform: translateY(10px) scale(.97);
        opacity: 0
    }

    to {
        transform: translateY(0) scale(1);
        opacity: 1
    }
}

@keyframes galleryFadeIn {
    from { opacity: 0 }
    to { opacity: 1 }
}

.gallery-delete-btn {
    margin-top: 10px;
    width: fit-content;
    border: 1px solid rgba(239, 68, 68, .45);
    background: rgba(239, 68, 68, .15);
    color: #fecaca;
    border-radius: 10px;
    padding: 6px 10px;
    font-size: .72rem;
    font-weight: 800;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: .2s;
}

.gallery-delete-btn:hover {
    background: rgba(239, 68, 68, .28);
    border-color: rgba(239, 68, 68, .8);
    color: #fff
}

/* ══ SECTION HEADERS ══ */
.section-title {
    font-size: 2.5rem;
    font-weight: 900;
    margin-bottom: 10px
}

.section-sub {
    color: var(--text-muted);
    margin-bottom: 40px
}

.header-pair {
    margin-bottom: 30px
}

.header-pair h1,
.admin-header h1 {
    font-size: 2.5rem;
    font-weight: 900;
    letter-spacing: -1px;
    margin: 0
}

.header-pair p,
.admin-header p {
    color: var(--text-muted);
    font-weight: 500;
    margin-top: 5px
}

.admin-header h1 {
    font-size: 2.8rem;
    letter-spacing: -1.5px
}

.header-flex {
    margin-bottom: 40px;
    display: flex;
    justify-content: space-between;
    align-items: flex-end
}

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

/* ══ CLOCK ══ */
.live-clock-val {
    font-size: 1.5rem;
    font-weight: 900;
    font-variant-numeric: tabular-nums;
    letter-spacing: -1px
}

.live-clock-label {
    font-size: .7rem;
    color: var(--primary);
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 2px
}

/* ══ TABLE ══ */
table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 15px
}

th {
    text-align: left;
    font-size: .7rem;
    color: var(--text-muted);
    padding: 10px;
    border-bottom: 1px solid var(--border);
    text-transform: uppercase
}

td {
    padding: 15px 10px;
    font-size: .85rem;
    border-bottom: 1px solid var(--border)
}

/* ══ INPUTS & BUTTONS ══ */
input,
select,
textarea {
    width: 100%;
    background: rgba(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: .3s;
}

input:focus,
select:focus,
textarea:focus {
    border-color: var(--primary);
    box-shadow: 0 0 15px var(--primary-dim);
    outline: none;
}

.admin-input {
    width: 100%;
    background: rgba(0, 0, 0, .2) !important;
    border: 1px solid var(--border) !important;
    padding: 14px 18px;
    border-radius: 14px;
    color: #fff;
    font-family: inherit;
    outline: none;
    transition: .3s;
    margin-bottom: 20px;
    font-size: .9rem;
    font-weight: 600;
}

.admin-input:focus {
    border-color: var(--primary) !important;
    box-shadow: 0 0 20px var(--primary-dim) !important;
    background: rgba(0, 0, 0, .4) !important
}

.admin-input:disabled {
    opacity: .5;
    cursor: not-allowed
}

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

.btn-modal-trigger {
    width: auto;
    padding: 12px 20px;
    font-size: .85rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border-radius: 10px;
    transition: all .2s;
}

.btn-modal-trigger:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px -8px rgba(0, 0, 0, .4)
}

.btn-modal-trigger.btn-success {
    background: linear-gradient(135deg, #10b981, #059669);
    border-color: #10b981
}

/* Attendance */
.btn-attend,
.btn-maybe,
.btn-decline {
    flex: 1;
    border: none;
    padding: 14px 18px;
    border-radius: 12px;
    font-weight: 800;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: .2s;
    font-family: 'Quicksand', sans-serif;
    font-size: .85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-attend {
    background: linear-gradient(135deg, #10b981, #059669);
    color: #000;
    box-shadow: 0 4px 20px rgba(16, 185, 129, .35);
    border: 1px solid rgba(16, 255, 144, .3)
}

.btn-attend:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(16, 185, 129, .5)
}

.btn-maybe {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: #000;
    box-shadow: 0 4px 20px rgba(245, 158, 11, .35);
    border: 1px solid rgba(255, 200, 0, .3)
}

.btn-maybe:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(245, 158, 11, .5)
}

.btn-decline {
    background: rgba(239, 68, 68, .08);
    color: #ef4444;
    border: 1px solid rgba(239, 68, 68, .4)
}

.btn-decline:hover {
    background: rgba(239, 68, 68, .18);
    border-color: #ef4444;
    transform: translateY(-3px)
}

.attendance-actions {
    display: flex;
    gap: 12px;
    margin-bottom: 18px
}

.attendance-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-height: 320px;
    overflow-y: auto;
    padding: 15px;
    background: rgba(0, 0, 0, .25);
    border-radius: 14px;
}

.attendee-count-badge {
    background: linear-gradient(135deg, var(--primary), var(--primary-dim));
    color: #000;
    padding: 6px 14px;
    border-radius: 10px;
    font-size: .75rem;
    font-weight: 800;
}

.btn-accept,
.btn-deny {
    border: none;
    padding: 8px 12px;
    border-radius: 6px;
    font-weight: 800;
    cursor: pointer;
    font-size: .7rem;
    transition: .2s;
}

.btn-accept {
    background: #10b981;
    color: #000
}

.btn-deny {
    background: #ef4444;
    color: #fff
}

.btn-accept:hover,
.btn-deny:hover {
    transform: scale(1.05)
}

/* ══ ADMIN ══ */
.admin-tabs {
    display: flex;
    gap: 6px;
    padding: 6px;
    background: rgba(0, 0, 0, .3);
    border: 1px solid var(--border);
    border-radius: 18px;
    margin-bottom: 30px;
    overflow-x: auto;
    scrollbar-width: none;
    backdrop-filter: blur(10px);
}

.admin-tab-btn {
    background: transparent;
    border: 1px solid transparent;
    color: var(--text-muted);
    padding: 12px 24px;
    border-radius: 12px;
    cursor: pointer;
    font-weight: 800;
    font-size: .85rem;
    transition: all .3s cubic-bezier(.4, 0, .2, 1);
    display: flex;
    align-items: center;
    gap: 10px;
    white-space: nowrap;
    flex: 1;
    justify-content: center;
}

.admin-tab-btn:hover {
    color: #fff;
    background: rgba(255, 255, 255, .05);
    border-color: rgba(255, 255, 255, .1)
}

.admin-tab-btn.active {
    background: var(--primary);
    color: #000;
    box-shadow: 0 5px 20px var(--primary-dim);
    transform: translateY(-1px);
    border-color: var(--primary)
}

.admin-tab-content {
    display: none;
    animation: fadeIn .3s
}

.admin-tab-content.active {
    display: block
}

.admin-list-item {
    background: rgba(255, 255, 255, .02);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 12px;
    transition: all .3s;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    overflow: hidden;
}

.admin-list-item:hover {
    background: rgba(255, 255, 255, .04);
    border-color: var(--primary);
    transform: translateX(5px);
    box-shadow: 0 10px 30px -10px rgba(0, 0, 0, .3);
}

.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
}

.role-badge {
    padding: 4px 10px;
    border-radius: 6px;
    font-size: .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: .2s;
    border-radius: 12px;
}

.member-row:hover {
    background: rgba(255, 255, 255, .02)
}

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

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

.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, .4);
}

.icon-picker-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(45px, 1fr));
    gap: 10px;
    background: rgba(0, 0, 0, .3);
    padding: 15px;
    border-radius: 12px;
    max-height: 200px;
    overflow-y: auto;
    border: 1px solid var(--border);
    margin-bottom: 20px;
}

.icon-picker-btn {
    width: 45px;
    height: 45px;
    background: rgba(255, 255, 255, .05);
    border: 1px solid var(--border);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    color: var(--text-muted);
    cursor: pointer;
    transition: .3s;
}

.icon-picker-btn:hover {
    background: rgba(255, 255, 255, .1);
    border-color: var(--primary);
    color: #fff
}

.icon-picker-btn.active {
    background: var(--primary);
    color: #000;
    border-color: var(--primary);
    box-shadow: 0 0 15px var(--primary-glow)
}

.color-row {
    display: flex;
    gap: 10px;
    align-items: center
}

.icon-color-picker {
    width: 50px;
    height: 40px;
    border: none;
    background: transparent;
    cursor: pointer
}

.telemetry-cell {
    background: rgba(255, 255, 255, .03);
    padding: 15px;
    border-radius: 12px
}

/* ══ TIER LOCKS ══ */
body .admin-section-locked,
body .admin-card.admin-section-locked,
body [data-admin-section].admin-section-locked {
    position: relative !important;
    opacity: .55 !important;
    filter: grayscale(.7) !important;
    pointer-events: none !important;
    transition: all .3s !important;
}

body .admin-stat-card.admin-section-locked {
    opacity: .45 !important;
    filter: grayscale(.9) !important;
}

.admin-section-locked::after {
    content: '';
    position: absolute;
    inset: 0;
    background: transparent;
    z-index: 100;
    cursor: not-allowed;
    pointer-events: all;
}

.admin-section-locked:hover {
    opacity: .7;
    filter: grayscale(.4)
}

.tier-lock-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: white;
    padding: 6px 10px;
    border-radius: 8px;
    font-size: .7rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: .5px;
    display: flex;
    align-items: center;
    gap: 6px;
    z-index: 150;
    box-shadow: 0 4px 15px rgba(239, 68, 68, .3);
    border: 1px solid rgba(255, 255, 255, .1);
}

.admin-tab-btn.tier-locked {
    opacity: .5;
    filter: grayscale(.8);
    position: relative;
    pointer-events: none;
}

.admin-tab-btn.tier-locked::after {
    content: '\ee85';
    font-family: 'remixicon';
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    color: #ef4444;
    font-size: .8rem;
}

.tier-locked-btn {
    opacity: .5 !important;
    cursor: not-allowed !important;
    filter: grayscale(.8)
}

[data-tier-overlay] {
    position: relative;
    overflow: hidden
}

[data-tier-overlay].locked::after {
    content: '';
    position: absolute;
    inset: -1px;
    background: linear-gradient(to top, rgba(10, 12, 16, .95) 10%, rgba(10, 12, 16, .5));
    z-index: 10;
    backdrop-filter: blur(5px);
    border-radius: inherit;
    transition: all .3s;
}

[data-tier-overlay].locked * {
    pointer-events: none !important;
    user-select: none !important;
}

.tier-overlay-badge {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 11;
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(0, 0, 0, .6);
    border: 1px solid var(--primary);
    padding: 12px 28px;
    border-radius: 30px;
    color: #fff;
    font-size: .9rem;
    font-weight: 900;
    letter-spacing: 2px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, .8), inset 0 0 15px rgba(0, 242, 255, .1);
    text-transform: uppercase;
}

.tier-overlay-badge i {
    font-size: 1.4rem;
    color: var(--primary)
}

.tier-overlay-badge span {
    background: linear-gradient(to right, #fff, rgba(255, 255, 255, .7));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* ══ TOGGLE ══ */
.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: .4s;
    border-radius: 20px
}

.slider::before {
    content: '';
    position: absolute;
    height: 14px;
    width: 14px;
    left: 3px;
    bottom: 3px;
    background: white;
    transition: .4s;
    border-radius: 50%;
}

input:checked+.slider {
    background: var(--primary)
}

input:checked+.slider::before {
    transform: translateX(20px)
}

/* ══ OVERLAYS & MODALS ══ */
.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;
}

.modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, .8);
    z-index: 9999;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(5px);
}

#imageViewerModal.modal {
    display: none;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, .92);
    backdrop-filter: blur(14px) saturate(120%);
    z-index: 2147483647;
}

#imageViewerModal .modal-content {
    width: min(92vw, 1120px) !important;
    height: min(86vh, 860px) !important;
    max-width: none !important;
    max-height: none !important;
    margin: auto !important;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

#imageViewerModal .viewer-nav-btn,
#imageViewerModal .viewer-close-btn {
    position: absolute;
    width: 46px;
    height: 46px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, .12);
    background: rgba(255, 255, 255, .08);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    backdrop-filter: blur(12px);
    z-index: 2;
    transition: transform .18s ease, background .18s ease, border-color .18s ease;
}

#imageViewerModal .viewer-nav-btn:hover,
#imageViewerModal .viewer-close-btn:hover {
    transform: scale(1.06);
    background: rgba(255, 255, 255, .14);
    border-color: rgba(255, 255, 255, .24);
}

#imageViewerModal .viewer-nav-prev {
    left: 12px;
}

#imageViewerModal .viewer-nav-next {
    right: 12px;
}

#imageViewerModal .viewer-close-btn {
    top: 12px;
    right: 12px;
}

#imageViewerModal img#viewer-img {
    width: 100%;
    height: 100%;
    max-width: none;
    max-height: none;
    object-fit: contain;
}

#imageViewerModal #viewer-caption {
    left: 50% !important;
    bottom: 18px !important;
    transform: translateX(-50%) !important;
    position: absolute !important;
}

#imageViewerModal[style*="display: flex"] {
    display: flex !important;
}

.modal-card {
    width: 90%;
    max-width: 450px;
    background: #0a0c10;
    border: 1px solid var(--primary);
    padding: 30px;
    position: relative
}

.close-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 1.5rem;
    cursor: pointer;
    transition: .3s
}

.modal-header-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px
}

.modal-header-row h3 {
    margin: 0;
    color: #fff
}

/* Wizard */
.wizard-card {
    max-width: 800px;
    width: 90%;
    border: 1px solid var(--primary);
    padding: 45px;
    position: relative;
    background: rgba(10, 12, 16, .95);
    box-shadow: 0 0 100px rgba(0, 0, 0, 1);
    border-radius: var(--radius);
}

.wizard-logo,
.lock-body .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);
}

.welcome-wizard .wizard-logo,
#welcome-wizard .wizard-logo {
    width: 60px;
    height: 60px;
    font-size: 2rem;
    margin-bottom: 15px
}

.wizard-header {
    text-align: center;
    margin-bottom: 25px
}

.wizard-header h1 {
    font-size: 1.8rem;
    font-weight: 800;
    margin-bottom: 5px;
    text-transform: uppercase;
    letter-spacing: -1px
}

.wizard-header p {
    color: var(--text-muted);
    font-size: .9rem
}

.wizard-divider {
    width: 50px;
    height: 2px;
    background: var(--primary);
    margin: 15px auto 0;
    box-shadow: 0 0 10px var(--primary)
}

.wizard-item {
    background: rgba(255, 255, 255, .02);
    padding: 20px;
    border-radius: 15px;
    border: 1px solid var(--border);
    transition: .3s
}

.wizard-item-icon {
    font-size: 2rem;
    margin-bottom: 15px
}

.wizard-item h3 {
    font-size: 1rem;
    color: #fff;
    font-weight: 800;
    margin-bottom: 10px
}

.wizard-item p {
    font-size: .8rem;
    color: var(--text-muted);
    line-height: 1.6
}

.wizard-tip {
    background: rgba(255, 255, 255, .05);
    border-radius: 12px;
    padding: 15px;
    margin-bottom: 20px;
    border: 1px dashed var(--border);
    display: flex;
    align-items: center;
    gap: 15px
}

.wizard-tip-icon {
    font-size: 1.5rem;
    color: var(--primary)
}

.wizard-tip strong {
    color: #fff;
    font-size: .9rem;
    display: block;
    margin-bottom: 5px
}

.wizard-tip p {
    font-size: .8rem;
    color: var(--text-muted);
    margin: 0
}

/* Security lock */
.scanner-container {
    position: relative;
    margin-bottom: 40px
}

.lock-logo {
    width: 120px;
    height: 120px;
    background: var(--primary);
    border-radius: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #000;
    font-weight: 900;
    font-size: 4rem;
    box-shadow: 0 0 50px var(--primary-glow);
    position: relative;
    z-index: 2;
}

.lock-body {
    text-align: center;
    max-width: 500px;
    padding: 0 20px
}

.lock-body h1 {
    font-size: 2.3rem;
    font-weight: 800;
    letter-spacing: -1px;
    margin-bottom: 10px
}

.lock-body p {
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 30px
}

.lock-status {
    background: rgba(255, 255, 255, .03);
    border: 1px solid var(--border);
    padding: 20px;
    border-radius: 16px;
    margin-bottom: 30px
}

.lock-status-inner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    color: #f59e0b
}

.lock-status-text {
    font-size: .8rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px
}

.security-modal-icon {
    width: 80px;
    height: 80px;
    background: rgba(245, 158, 11, .1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    border: 1px solid #f59e0b;
    box-shadow: 0 0 30px rgba(245, 158, 11, .2);
}

.security-code-input {
    text-align: center;
    font-size: 1.2rem;
    letter-spacing: 3px;
    border-color: #f59e0b !important;
    background: rgba(0, 0, 0, .5) !important
}

.confirm-icon {
    font-size: 3rem;
    margin-bottom: 15px;
    color: var(--primary)
}

/* Scanner */
@keyframes scan {

    0%,
    100% {
        top: 0%;
        opacity: .2
    }

    50% {
        top: 100%;
        opacity: 1
    }
}

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

    to {
        transform: rotate(360deg)
    }
}

.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;
}

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

/* ══ TOAST ══ */
#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, .95);
    border: 1px solid var(--border);
    border-left: 4px solid var(--primary);
    padding: 15px 20px;
    border-radius: 12px;
    color: #fff;
    font-size: .85rem;
    font-weight: 700;
    box-shadow: 0 10px 30px rgba(0, 0, 0, .5);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    gap: 12px;
    animation: slideInRight .4s cubic-bezier(.16, 1, .3, 1);
    min-width: 300px;
    pointer-events: auto;
}

.toast.success {
    border-left-color: #10b981
}

.toast.error {
    border-left-color: #ef4444
}

/* ══ CUSTOM TOOLTIPS ══ */
[data-tooltip] {
    position: relative;
}

[data-tooltip]::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%) translateY(4px);
    background: rgba(0, 0, 0, 0.9);
    color: #fff;
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 0.7rem;
    font-weight: 600;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s ease;
    z-index: 9999;
    pointer-events: none;
    border: 1px solid var(--primary);
    box-shadow: 0 4px 15px rgba(0, 242, 255, 0.2);
}

[data-tooltip]:hover::after {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

/* Tooltip with arrow */
[data-tooltip].tooltip-arrow::after {
    content: '';
    position: absolute;
    bottom: calc(100% + 4px);
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-top: 6px solid var(--primary);
    background: transparent;
    border-radius: 0;
    padding: 0;
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0
    }

    to {
        transform: none;
        opacity: 1
    }
}

@keyframes fadeOut {
    to {
        opacity: 0;
        transform: translateY(-10px)
    }
}

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

/* ══ LEADERBOARD ══ */
.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, .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: .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
}

/* ══ FLEET ══ */
.truck-card {
    background: rgba(255, 255, 255, .03);
    border: 1px solid var(--border);
    border-radius: 24px;
    padding: 20px;
    transition: .3s;
    position: relative;
    overflow: hidden
}

.truck-card:hover {
    border-color: var(--primary);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(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: .75rem;
    margin-bottom: 5px;
    color: var(--text-muted)
}

.truck-stat strong {
    color: #fff
}

.truck-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    color: #000;
    font-size: .6rem;
    font-weight: 900;
    padding: 4px 10px;
    border-radius: 20px
}

.truck-details {
    font-size: .8rem;
    color: var(--text-muted);
    margin-bottom: 15px
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    display: inline-block;
    margin-right: 5px
}

.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: .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)
}

/* ══ CALENDAR ══ */
.calendar-nav {
    display: flex;
    align-items: center;
    gap: 15px
}

.cal-nav-btn {
    background: linear-gradient(135deg, rgba(255, 255, 255, .05), rgba(255, 255, 255, .02));
    border: 1px solid var(--border);
    color: var(--text-muted);
    width: 32px;
    height: 32px;
    border-radius: 10px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all .2s;
}

.cal-nav-btn:hover {
    background: linear-gradient(135deg, var(--primary-dim), transparent);
    border-color: var(--primary);
    color: var(--primary);
    transform: scale(1.05);
}

.cal-month-label {
    font-weight: 800;
    min-width: 120px;
    text-align: center;
    font-size: 1rem;
    color: #fff
}

.calendar-header-row {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    text-align: center;
    margin-bottom: 12px;
    color: var(--text-muted);
    font-size: .7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    padding: 10px 0;
    border-bottom: 1px solid rgba(255, 255, 255, .05);
}

.calendar-container {
    background: linear-gradient(180deg, rgba(15, 19, 26, .8), rgba(10, 12, 16, .95));
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, .3), inset 0 1px 0 rgba(255, 255, 255, .03);
}

#calendar-days-grid {
    gap: 6px;
    padding: 5px
}

.calendar-header-title {
    font-size: 1.5rem;
    font-weight: 800;
    color: #fff;
    margin-bottom: 5px;
    display: flex;
    align-items: center;
    gap: 10px
}

.calendar-header-title i {
    color: var(--primary);
    font-size: 1.3rem
}

.calendar-subtitle {
    color: var(--text-muted);
    font-size: .85rem;
    margin-bottom: 20px
}

.calendar-day {
    aspect-ratio: 1;
    border-radius: 14px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding: 8px;
    cursor: pointer;
    transition: all .25s cubic-bezier(.4, 0, .2, 1);
    position: relative;
    background: rgba(255, 255, 255, .02);
    border: 1px solid var(--border);
}

.calendar-day:hover {
    transform: translateY(-3px) scale(1.03);
    border-color: rgba(255, 255, 255, .15);
    box-shadow: 0 8px 25px rgba(0, 0, 0, .3);
}

.calendar-day.has-event {
    background: linear-gradient(145deg, rgba(16, 185, 129, .08), rgba(10, 12, 16, .6));
    border: 1px solid rgba(16, 185, 129, .35);
    box-shadow: 0 2px 12px rgba(16, 185, 129, .1), inset 0 1px 0 rgba(16, 185, 129, .1);
}

.calendar-day.has-event:hover {
    background: linear-gradient(145deg, rgba(16, 185, 129, .18), rgba(10, 12, 16, .8));
    border: 1px solid rgba(16, 185, 129, .6);
    box-shadow: 0 8px 30px rgba(16, 185, 129, .25), 0 0 20px rgba(16, 185, 129, .15);
}

.calendar-day.today {
    border: 2px solid var(--primary);
    background: linear-gradient(145deg, rgba(0, 242, 255, .08), rgba(10, 12, 16, .5));
    box-shadow: 0 0 20px rgba(0, 242, 255, .2), inset 0 1px 0 rgba(0, 242, 255, .1);
}

.calendar-day.today .day-num {
    color: var(--primary);
    text-shadow: 0 0 10px var(--primary)
}

.calendar-day.other-month {
    opacity: .3
}

.calendar-evt-pill {
    background: linear-gradient(90deg, rgba(16, 185, 129, .25), rgba(16, 185, 129, .12));
    border-left: 3px solid #10b981;
    padding: 4px 6px;
    border-radius: 6px;
    margin-top: 3px;
    font-size: .5rem;
    color: #6ee7b7;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 100%;
    display: flex;
    align-items: center;
    gap: 4px;
    transition: all .2s;
    box-shadow: 0 2px 8px rgba(16, 185, 129, .15);
}

.day-num {
    font-size: .9rem;
    font-weight: 700;
    color: #cbd5e1;
    transition: all .2s
}

.evt-list {
    width: 100%;
    margin-top: 4px;
    display: flex;
    flex-direction: column;
    gap: 3px;
    animation: fadeIn .3s
}

.more-count {
    font-size: .45rem;
    color: #34d399;
    text-align: center;
    margin-top: 3px;
    font-weight: 600;
    letter-spacing: .5px
}

.calendar-event-popup {
    position: absolute;
    z-index: 100;
    top: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%);
    min-width: 180px;
    background: linear-gradient(180deg, #1a1f26, #0f131a);
    border: 1px solid rgba(16, 185, 129, .4);
    border-radius: 12px;
    padding: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, .5), 0 0 30px rgba(16, 185, 129, .1);
    display: none;
}

.calendar-day:hover .calendar-event-popup {
    display: block
}

.popup-event-title {
    font-size: .75rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 6px;
    padding-bottom: 6px;
    border-bottom: 1px solid rgba(255, 255, 255, .1)
}

.popup-event-time {
    font-size: .65rem;
    color: #6ee7b7;
    display: flex;
    align-items: center;
    gap: 5px
}

/* ══ EVENT MODAL ══ */
.event-modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 10005;
    background: rgba(0, 0, 0, .8);
    backdrop-filter: blur(8px);
    display: none;
    align-items: center;
    justify-content: center;
    animation: fadeIn .2s;
}

.event-modal-overlay.poly-modal-overlay {
    display: flex
}

.event-modal-card {
    position: relative;
    width: 90%;
    max-width: 680px;
    max-height: 92vh;
    background: linear-gradient(180deg, #161a22, #0d1117);
    border: 1px solid rgba(255, 255, 255, .08);
    border-radius: 24px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 25px 80px rgba(0, 0, 0, .6), 0 0 60px rgba(0, 242, 255, .05);
    animation: slideUp .3s cubic-bezier(.4, 0, .2, 1);
}

.modal-close-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    z-index: 10;
    background: rgba(0, 0, 0, .5);
    border: none;
    color: #fff;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all .2s;
}

.modal-close-btn:hover {
    background: rgba(239, 68, 68, .8);
    transform: scale(1.1)
}

.modal-delete-btn {
    position: absolute;
    top: 15px;
    right: 70px;
    z-index: 10;
    background: rgba(0, 0, 0, .5);
    border: 1px solid rgba(255, 255, 255, .1);
    color: #ef4444;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all .2s;
}

.modal-delete-btn:hover {
    background: rgba(239, 68, 68, .2);
    border-color: #ef4444
}

.event-modal-banner {
    height: 220px;
    background-size: cover;
    background-position: center;
    position: relative;
    flex-shrink: 0
}

.event-modal-banner-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(13, 17, 23, 1), rgba(13, 17, 23, .7) 50%, transparent);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 25px;
}

.event-modal-title {
    color: #fff;
    margin: 0;
    font-size: 1.8rem;
    font-weight: 800;
    line-height: 1.2;
    text-shadow: 0 2px 20px rgba(0, 0, 0, .5)
}

.event-modal-organizer {
    margin-top: 10px;
    font-size: .8rem;
    color: rgba(255, 255, 255, .6);
    display: flex;
    align-items: center;
    gap: 8px
}

.event-modal-countdown {
    display: flex;
    justify-content: center;
    gap: 25px;
    padding: 20px;
    background: rgba(0, 0, 0, .3);
    border-bottom: 1px solid rgba(255, 255, 255, .05)
}

.event-modal-info {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
    padding: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, .05)
}

.event-info-item {
    display: flex;
    align-items: center;
    gap: 12px
}

.event-info-item i {
    font-size: 1.5rem;
    color: var(--primary);
    filter: drop-shadow(0 0 8px var(--primary-glow))
}

.event-info-item small {
    display: block;
    font-size: .6rem;
    color: var(--text-muted);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px
}

.event-info-item strong {
    display: block;
    font-size: .85rem;
    color: #fff
}

.event-modal-attendance {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
    display: grid;
    grid-template-columns: 1fr 180px;
    gap: 20px
}

.attendance-section {
    background: rgba(255, 255, 255, .03);
    border-radius: 16px;
    padding: 20px
}

.attendance-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px
}

.attendance-header h3 {
    margin: 0;
    font-size: 1rem;
    color: #fff
}

.tmp-section {
    background: linear-gradient(180deg, rgba(0, 242, 255, .08), rgba(0, 0, 0, .2));
    border-radius: 16px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    border: 1px solid rgba(0, 242, 255, .25);
    box-shadow: 0 4px 20px rgba(0, 242, 255, .1);
}

.tmp-section h3 {
    margin: 0 0 12px;
    font-size: .85rem;
    color: var(--primary);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px
}

.tmp-section:empty {
    display: none
}

.tmp-link-btn {
    background: linear-gradient(135deg, var(--primary), var(--primary-dim));
    color: #000;
    padding: 14px 24px;
    border-radius: 12px;
    font-weight: 800;
    font-size: .8rem;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all .2s;
    width: 100%;
    justify-content: center;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.tmp-link-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px var(--primary-dim)
}

.tmp-btn {
    background: rgba(255, 255, 255, .1);
    color: #fff;
    text-decoration: none;
    padding: 8px 16px;
    border-radius: 50px;
    font-size: .8rem;
    font-weight: 700;
    transition: .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)
}

/* Admin Events */
.admin-events-grid {
    display: flex;
    flex-direction: column;
    gap: 10px
}

.admin-event-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 12px;
    background: rgba(255, 255, 255, .03);
    border-radius: 12px;
    border: 1px solid var(--border);
    transition: .2s;
}

.admin-event-item:hover {
    background: rgba(255, 255, 255, .05);
    border-color: rgba(255, 255, 255, .15)
}

.admin-event-item.past {
    opacity: .5
}

.evt-date-box {
    width: 50px;
    text-align: center;
    background: var(--primary);
    color: #000;
    border-radius: 10px;
    padding: 8px 0;
    flex-shrink: 0
}

.evt-actions {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 8px
}

.btn-icon {
    background: transparent;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 6px;
    border-radius: 6px;
    transition: .2s
}

.btn-icon:hover {
    background: rgba(239, 68, 68, .2);
    color: #ef4444
}

/* Poly modal */
.poly-modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 10010;
    background: rgba(0, 0, 0, .8);
    backdrop-filter: blur(8px);
    display: none;
    align-items: center;
    justify-content: center;
    animation: fadeIn .2s;
}

.poly-modal-container {
    position: relative;
    width: 90%;
    max-width: 520px;
    max-height: 90vh;
    background: linear-gradient(180deg, #161a22, #0d1117);
    border: 1px solid rgba(255, 255, 255, .08);
    border-radius: 20px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 25px 80px rgba(0, 0, 0, .6), 0 0 40px rgba(0, 242, 255, .05);
    animation: slideUp .3s cubic-bezier(.4, 0, .2, 1);
}

.poly-modal-header {
    padding: 24px 28px 18px;
    border-bottom: 1px solid rgba(255, 255, 255, .06);
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: linear-gradient(180deg, rgba(255, 255, 255, .03), transparent);
}

.poly-modal-header-left {
    display: flex;
    align-items: center;
    gap: 12px
}

.poly-modal-icon {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--primary-dim), rgba(0, 0, 0, .2));
    border: 1px solid var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: var(--primary);
    box-shadow: 0 0 15px var(--primary-dim);
}

.poly-modal-header h3 {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 900;
    color: #fff;
    letter-spacing: -.5px
}

.poly-modal-header h3 span {
    font-size: .65rem;
    color: var(--text-muted);
    display: block;
    font-weight: 600;
    margin-top: 2px;
    letter-spacing: 0
}

.poly-modal-close {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    background: rgba(255, 255, 255, .04);
    border: 1px solid rgba(255, 255, 255, .08);
    color: var(--text-muted);
    font-size: 1.1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: .2s;
}

.poly-modal-close:hover {
    background: rgba(239, 68, 68, .15);
    color: #ef4444;
    border-color: rgba(239, 68, 68, .3)
}

.poly-modal-body {
    padding: 24px 28px;
    overflow-y: auto;
    flex: 1;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, .1) transparent
}

.poly-modal-footer {
    padding: 18px 28px 22px;
    border-top: 1px solid rgba(255, 255, 255, .06);
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    background: linear-gradient(0deg, rgba(0, 0, 0, .3), transparent);
}

.reminder-preview {
    background: linear-gradient(180deg, #1a1f26, #0f131a);
    border: 1px solid rgba(16, 185, 129, .3);
    border-radius: 12px;
    padding: 15px;
    margin-top: 10px
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px)
    }

    to {
        opacity: 1;
        transform: none
    }
}

/* Countdown */
.countdown-item {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center
}

.countdown-item strong {
    font-size: 2rem;
    font-weight: 800;
    color: #fff;
    line-height: 1;
    text-shadow: 0 0 20px rgba(0, 242, 255, .3)
}

.countdown-item small {
    font-size: .6rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 4px
}

.countdown-live {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px
}

.countdown-live span {
    color: #10b981;
    font-weight: 800;
    font-size: 1.2rem;
    animation: pulse 2s infinite;
    text-transform: uppercase
}

.countdown-finished {
    display: flex;
    align-items: center;
    justify-content: center
}

.countdown-finished span {
    color: #666;
    font-weight: 800;
    font-size: 1rem;
    text-transform: uppercase
}

/* ══ MY STATS ══ */
.mystats-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px
}

.mystats-id-pill {
    padding: 8px 15px;
    background: rgba(255, 255, 255, .05);
    border: 1px solid var(--border);
    border-radius: 10px;
    font-size: .7rem;
    font-weight: 800
}

.profile-details-row {
    display: flex;
    justify-content: space-between;
    border-bottom: 1px solid rgba(255, 255, 255, .05);
    padding-bottom: 10px
}

.profile-details-label {
    color: var(--text-muted);
    font-size: .9rem
}

.good-standing-card {
    background: linear-gradient(135deg, rgba(16, 185, 129, .1), transparent);
    border: 1px solid rgba(16, 185, 129, .3)
}

.good-standing-inner {
    display: flex;
    align-items: center;
    gap: 15px
}

.good-standing-icon {
    font-size: 2rem;
    color: #10b981
}

.good-standing-inner h4 {
    margin: 0;
    color: #fff
}

.good-standing-inner p {
    margin: 0;
    font-size: .8rem;
    color: #10b981
}

/* ══ SIGNATURE BANNER ══ */
.sig-banner {
    width: 100%;
    min-height: 320px;
    background: #0f131a;
    border-radius: 24px;
    position: relative;
    overflow: hidden;
    border: 1px solid var(--border);
    box-shadow: 0 20px 50px rgba(0, 0, 0, .5);
    user-select: none;
}

.sig-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    z-index: 0
}

.sig-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, rgba(5, 7, 10, .95) 20%, rgba(5, 7, 10, .6));
    z-index: 1
}

.sig-content {
    position: relative;
    z-index: 2;
    padding: 35px;
    min-height: 320px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 24px
}

.sig-vtc-row {
    display: flex;
    align-items: center;
    gap: 15px;
    min-width: 0
}

.sig-vtc-logo {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    object-fit: cover;
    background: rgba(255, 255, 255, .05);
    border: 1px solid rgba(255, 255, 255, .1)
}

.sig-vtc-name {
    margin: 0;
    font-size: clamp(1rem, 1.8vw, 1.4rem);
    color: #fff;
    text-transform: uppercase;
    font-weight: 900;
    line-height: 1;
    letter-spacing: -.5px;
    max-width: 240px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap
}

.sig-vtc-subtitle {
    font-size: .65rem;
    color: var(--primary);
    letter-spacing: 3px;
    font-weight: 800;
    text-transform: uppercase
}

.sig-driver-row {
    display: flex;
    align-items: center;
    gap: 25px;
    min-width: 0
}

.sig-avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    border: 3px solid var(--primary);
    object-fit: cover;
    box-shadow: 0 0 30px var(--primary-dim);
    background: #000
}

.sig-driver-name {
    margin: 0;
    font-size: clamp(1.7rem, 4.4vw, 2.6rem);
    font-weight: 900;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: -1px;
    line-height: .95;
    max-width: 100%;
    overflow-wrap: anywhere;
    word-break: break-word
}

.sig-role-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 8px
}

.sig-flag {
    height: 16px;
    display: none;
    border-radius: 2px
}

.sig-role-badge {
    background: var(--primary);
    color: #000;
    padding: 4px 12px;
    border-radius: 6px;
    font-weight: 800;
    font-size: .75rem;
    text-transform: uppercase;
    display: inline-block
}

.sig-stats-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px 28px;
    max-width: 560px;
    border-top: 1px solid rgba(255, 255, 255, .1);
    padding-top: 20px
}

.sig-stat small {
    color: var(--text-muted);
    font-size: .65rem;
    text-transform: uppercase;
    display: block;
    font-weight: 700;
    letter-spacing: 1px
}

.sig-stat strong {
    color: #fff;
    font-size: 1.4rem;
    font-weight: 800
}

.sig-badges {
    margin-left: auto;
    display: flex;
    gap: 8px;
    align-items: center;
    flex-wrap: wrap;
    justify-content: flex-end;
    max-width: 100%
}

@media (max-width: 1100px) {
    .sig-content {
        min-height: 0;
    }
}

@media (max-width: 760px) {
    .sig-banner {
        min-height: 0;
    }

    .sig-content {
        padding: 24px;
        display: flex;
        flex-direction: column;
        gap: 20px;
    }

    .sig-driver-row {
        gap: 16px;
    }

    .sig-avatar {
        width: 84px;
        height: 84px;
    }

    .sig-stats-row {
        grid-template-columns: 1fr;
        max-width: none;
    }

    .sig-badges {
        justify-content: flex-start;
        margin-left: 0;
    }
}

.sig-watermark {
    display: none;
}

.sig-watermark-dot {
    width: 6px;
    height: 6px;
    background: var(--primary);
    border-radius: 50%
}

.sig-footnote {
    margin-top: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px 18px;
    background: rgba(255, 255, 255, .03);
    border-radius: 999px;
    border: 1px dashed var(--border);
    max-width: 420px;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}

.sig-footnote p {
    margin: 0;
    font-size: .8rem;
    color: var(--text-muted);
    line-height: 1.5
}

/* ══ ACHIEVEMENTS ══ */
.achievement-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px
}

.achievement-card {
    background: rgba(255, 255, 255, .02);
    border: 1px solid rgba(255, 255, 255, .05);
    border-radius: 20px;
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    transition: all .4s cubic-bezier(.165, .84, .44, 1);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
}

.achievement-card:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, .04)
}

.achievement-header {
    display: flex;
    align-items: center;
    gap: 16px
}

.achievement-icon {
    width: 50px;
    height: 50px;
    min-width: 50px;
    background: rgba(255, 255, 255, .05);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: var(--text-muted);
    transition: color .3s;
}

.achievement-card.unlocked .achievement-icon {
    color: var(--primary);
    background: var(--primary-dim);
    box-shadow: 0 0 20px var(--primary-dim)
}

.achievement-card.locked {
    filter: grayscale(.8)
}

.achievement-card.locked .achievement-icon {
    background: rgba(255, 255, 255, .02);
    color: rgba(255, 255, 255, .1)
}

.achievement-info h4 {
    margin: 0;
    font-size: 1.05rem;
    font-weight: 800;
    color: #fff;
    letter-spacing: -.3px
}

.achievement-info p {
    margin: 4px 0 0;
    font-size: .8rem;
    color: var(--text-muted);
    line-height: 1.5
}

.achievement-progress-container {
    margin-top: auto
}

.achievement-progress-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px
}

.achievement-target-label {
    font-size: .7rem;
    font-weight: 800;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: .5px
}

.achievement-progress-track {
    width: 100%;
    height: 6px;
    background: rgba(255, 255, 255, .05);
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, .03)
}

.achievement-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary), #fff);
    border-radius: 10px;
    transition: width 1s cubic-bezier(.4, 0, .2, 1);
    box-shadow: 0 0 10px var(--primary-glow)
}

.achievement-status-tag {
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: .6rem;
    font-weight: 900;
    padding: 4px 10px;
    border-radius: 6px;
    text-transform: uppercase;
    letter-spacing: 1px
}

.achievement-card.unlocked .achievement-status-tag {
    background: rgba(16, 185, 129, .1);
    color: #10b981;
    border: 1px solid rgba(16, 185, 129, .2)
}

.achievement-card.locked .achievement-status-tag {
    background: rgba(255, 255, 255, .05);
    color: var(--text-muted);
    border: 1px solid rgba(255, 255, 255, .1)
}

.achievement-card.unlocked {
    border-color: rgba(0, 242, 255, .2);
    background: linear-gradient(145deg, rgba(255, 255, 255, .03), rgba(0, 242, 255, .04));
    box-shadow: 0 10px 40px -15px rgba(0, 0, 0, .5)
}

.achievement-card.unlocked::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at center, var(--primary-dim), transparent 70%);
    opacity: .1;
    pointer-events: none
}

.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
}

/* ══ SKELETON ══ */
.skeleton {
    background: linear-gradient(90deg, rgba(255, 255, 255, .02) 25%, rgba(255, 255, 255, .08) 50%, rgba(255, 255, 255, .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 .3s;
    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, .15);
    border: 1px solid rgba(245, 158, 11, .3);
    color: #f59e0b;
    padding: 12px 20px;
    text-align: center;
    font-size: .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, .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, .03), rgba(255, 255, 255, .01));
    border: 1px solid var(--border);
    border-radius: 24px;
    padding: 35px 25px;
    text-align: center;
    transition: .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: .4s;
    pointer-events: none
}

.partner-card>* {
    position: relative;
    z-index: 1
}

.partner-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary);
    box-shadow: 0 20px 50px -10px rgba(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: .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: .6rem;
    font-weight: 900;
    padding: 4px 10px;
    border-radius: 20px;
    background: rgba(255, 255, 255, .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, .4);
    transition: transform .3s
}

.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
}

.event-hero-card:hover .event-banner-img {
    transform: scale(1.05)
}

.event-banner-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, transparent, #0f131a 90%)
}

.event-countdown-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(0, 0, 0, .6);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, .1);
    padding: 10px 20px;
    border-radius: 16px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, .5);
}

.event-countdown-badge .label {
    display: block;
    font-size: .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, .1);
    padding: 4px 10px;
    border-radius: 6px;
    font-size: .7rem;
    font-weight: 800;
    color: var(--primary);
    display: inline-block;
    margin-bottom: 5px;
    border: 1px solid rgba(255, 255, 255, .1)
}

#event-title {
    font-size: 2.5rem;
    line-height: 1;
    margin: 0;
    text-shadow: 0 10px 30px rgba(0, 0, 0, .5)
}

.route-visual {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, .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: .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, .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, .03);
    padding: 15px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    gap: 15px;
    border: 1px solid var(--border);
    transition: .3s
}

.detail-box:hover {
    background: rgba(255, 255, 255, .05);
    border-color: rgba(255, 255, 255, .2)
}

.detail-box i {
    font-size: 1.5rem;
    color: var(--text-muted)
}

.detail-box .label {
    display: block;
    font-size: .65rem;
    color: var(--text-muted);
    font-weight: 800;
    margin-bottom: 2px
}

.detail-box strong {
    font-size: .9rem;
    color: #fff
}

.event-briefing {
    background: rgba(255, 255, 255, .02);
    padding: 20px;
    border-radius: 16px;
    margin-bottom: 25px;
    border: 1px dashed var(--border)
}

.event-briefing h4 {
    margin: 0 0 10px;
    font-size: .9rem;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 8px
}

.event-briefing p {
    margin: 0;
    font-size: .9rem;
    color: var(--text-muted);
    line-height: 1.6
}

/* ══ TRACKER ══ */
.tracker-feature {
    background: rgba(255, 255, 255, .03);
    padding: 15px;
    border-radius: 12px;
    border: 1px solid var(--border)
}

.tracker-feature-title {
    color: var(--primary);
    margin-bottom: 5px
}

.tracker-feature p {
    font-size: .75rem;
    color: var(--text-muted)
}

.tracker-steps {
    background: rgba(0, 0, 0, .3);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 30px;
    border: 1px solid var(--border)
}

.tracker-steps h4 {
    color: #fff;
    margin-bottom: 15px;
    font-size: .85rem;
    text-transform: uppercase
}

.tracker-step {
    display: flex;
    gap: 15px;
    align-items: flex-start;
    margin-bottom: 15px
}

.tracker-step-num {
    background: var(--primary);
    color: #000;
    min-width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: .7rem;
    margin-top: 2px
}

.tracker-step strong {
    color: #fff;
    font-size: .9rem
}

.tracker-step p {
    font-size: .8rem;
    color: var(--text-muted);
    margin: 2px 0 0
}

/* ══ CERTIFICATE ══ */
.certificate-template {
    position: fixed;
    top: -9999px;
    left: -9999px;
    width: 1100px;
    height: 750px;
    background: #080a0e;
    text-align: center;
    color: #fff;
    font-family: 'Quicksand', sans-serif;
    display: flex;
    flex-direction: column;
    justify-content: center;
    box-sizing: border-box;
}

.cert-border-outer,
.cert-border-inner {
    position: absolute;
    pointer-events: none;
    z-index: 1
}

.cert-border-outer {
    inset: 20px;
    border: 4px double var(--primary)
}

.cert-border-inner {
    inset: 30px;
    border: 1px solid rgba(255, 255, 255, .1)
}

.cert-bg {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at center, rgba(255, 255, 255, .03), #080a0e 70%);
    z-index: 0
}

.cert-content {
    position: relative;
    z-index: 2;
    padding: 60px;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center
}

.cert-header {
    margin-top: 20px
}

.cert-icon {
    font-size: 5rem;
    color: var(--primary);
    margin-bottom: 10px;
    filter: drop-shadow(0 0 20px var(--primary-glow))
}

.cert-title {
    font-size: 4rem;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 15px;
    line-height: 1;
    font-weight: 900
}

.cert-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    width: 100%
}

.cert-footer {
    display: flex;
    justify-content: space-between;
    width: 100%;
    padding: 0 40px;
    align-items: flex-end;
    margin-bottom: 20px
}

.cert-seal {
    width: 110px;
    height: 110px;
    border: 4px solid var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 10px;
    color: var(--primary);
    font-weight: 900;
    font-size: .9rem;
    transform: rotate(-15deg);
    box-shadow: 0 0 30px var(--primary-dim);
    background: rgba(0, 0, 0, .5);
    backdrop-filter: blur(5px);
}

/* ══ FINANCES ══ */
.finances-hero {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 28px;
    flex-wrap: wrap
}

.finances-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: .65rem;
    font-weight: 900;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--primary);
    background: var(--primary-dim);
    border: 1px solid rgba(0, 242, 255, .2);
    padding: 6px 14px;
    border-radius: 999px;
}

.finances-hero-pill {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 18px;
    border-radius: 16px;
    background: rgba(255, 255, 255, .04);
    border: 1px solid var(--border);
    font-size: .8rem;
    font-weight: 800;
    color: var(--text-muted)
}

.finances-pill-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--text-muted);
    box-shadow: 0 0 12px currentColor
}

.finances-hero-pill.profit {
    border-color: rgba(16, 185, 129, .35);
    color: #10b981
}

.finances-hero-pill.profit .finances-pill-dot {
    background: #10b981;
    color: #10b981
}

.finances-hero-pill.loss {
    border-color: rgba(239, 68, 68, .35);
    color: #ef4444
}

.finances-hero-pill.loss .finances-pill-dot {
    background: #ef4444;
    color: #ef4444
}

.finances-kpi-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
    margin-bottom: 28px
}

.finance-kpi-card {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 22px;
    border-radius: 24px;
    border: 1px solid var(--border);
    background: linear-gradient(145deg, rgba(255, 255, 255, .04), rgba(0, 0, 0, .15));
    position: relative;
    overflow: hidden;
    transition: transform .25s, border-color .25s, box-shadow .25s;
}

.finance-kpi-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    opacity: .85;
    border-radius: 24px 24px 0 0
}

.finance-kpi-net::after {
    background: linear-gradient(90deg, var(--primary), #00a2ff)
}

.finance-kpi-income::after {
    background: linear-gradient(90deg, #10b981, #059669)
}

.finance-kpi-expense::after {
    background: linear-gradient(90deg, #ef4444, #dc2626)
}

.finance-kpi-card:hover {
    transform: translateY(-4px);
    border-color: rgba(255, 255, 255, .12);
    box-shadow: 0 20px 40px -20px rgba(0, 0, 0, .6)
}

.finance-kpi-icon {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
    flex-shrink: 0
}

.finance-kpi-net .finance-kpi-icon {
    background: rgba(0, 242, 255, .12);
    color: var(--primary);
    border: 1px solid rgba(0, 242, 255, .25)
}

.finance-kpi-income .finance-kpi-icon {
    background: rgba(16, 185, 129, .12);
    color: #10b981;
    border: 1px solid rgba(16, 185, 129, .25)
}

.finance-kpi-expense .finance-kpi-icon {
    background: rgba(239, 68, 68, .1);
    color: #f87171;
    border: 1px solid rgba(239, 68, 68, .25)
}

.finance-kpi-body {
    min-width: 0
}

.finance-kpi-label {
    display: block;
    font-size: .65rem;
    font-weight: 800;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 6px
}

.finance-kpi-value {
    display: block;
    font-size: 1.55rem;
    font-weight: 900;
    letter-spacing: -.5px;
    color: #fff;
    line-height: 1.1
}

.finance-kpi-hint {
    display: block;
    margin-top: 6px;
    font-size: .72rem;
    color: var(--text-muted);
    line-height: 1.35
}

.finances-charts-grid {
    display: grid;
    grid-template-columns: 1.6fr 1fr;
    gap: 22px;
    align-items: stretch;
    margin-bottom: 22px
}

.finance-chart-card {
    padding: 26px 26px 22px;
    border: 1px solid rgba(255, 255, 255, .06);
    background: linear-gradient(165deg, rgba(20, 25, 35, .85), rgba(10, 12, 16, .6))
}

.finance-card-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 18px
}

.finance-card-title {
    margin: 0;
    font-size: 1rem;
    font-weight: 800;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 10px
}

.finance-card-title i {
    color: var(--primary);
    font-size: 1.1rem
}

.finance-card-desc {
    margin: 6px 0 0;
    font-size: .78rem;
    color: var(--text-muted);
    line-height: 1.4
}

.finance-chip {
    font-size: .65rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 6px 12px;
    border-radius: 999px;
    background: rgba(0, 242, 255, .08);
    color: var(--primary);
    border: 1px solid rgba(0, 242, 255, .2);
    white-space: nowrap
}

.finance-chart-canvas-wrap {
    height: 280px;
    position: relative
}

.finance-donut-card .finance-donut-inner {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 280px
}

.finance-donut-canvas {
    max-width: 260px;
    margin: 0 auto
}

.finance-ledger-card {
    padding: 0;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, .06)
}

.finance-ledger-head {
    padding: 22px 24px 0;
    margin-bottom: 0
}

.finance-transactions-scroll {
    max-height: 420px;
    overflow-y: auto;
    padding: 8px 8px 16px
}

.finance-transactions-scroll::-webkit-scrollbar {
    width: 6px
}

.finance-transactions-scroll::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, .12);
    border-radius: 6px
}

.finance-ledger-empty {
    text-align: center;
    color: var(--text-muted);
    padding: 40px 20px;
    font-size: .85rem
}

.finance-tx-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 14px 16px;
    margin-bottom: 8px;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, .05);
    background: rgba(0, 0, 0, .2);
    transition: background .2s, border-color .2s;
}

.finance-tx-item:hover {
    background: rgba(255, 255, 255, .04);
    border-color: rgba(0, 242, 255, .12)
}

.finance-tx-left {
    display: flex;
    align-items: center;
    gap: 14px;
    min-width: 0
}

.finance-tx-ico {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    flex-shrink: 0
}

.finance-tx-ico.in {
    background: rgba(16, 185, 129, .12);
    color: #10b981;
    border: 1px solid rgba(16, 185, 129, .25)
}

.finance-tx-ico.out {
    background: rgba(239, 68, 68, .1);
    color: #f87171;
    border: 1px solid rgba(239, 68, 68, .22)
}

.finance-tx-meta strong {
    display: block;
    font-size: .88rem;
    color: #fff;
    font-weight: 700
}

.finance-tx-meta small {
    display: block;
    margin-top: 3px;
    font-size: .72rem;
    color: var(--text-muted);
    line-height: 1.35
}

.finance-tx-date {
    font-size: .65rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .5px;
    color: var(--text-muted);
    white-space: nowrap
}

.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: .9rem
}

.finance-amount.pos {
    color: #10b981
}

.finance-amount.neg {
    color: #ef4444
}

/* ══ DRIVING TEST ══ */
.exam-card-premium {
    background: rgba(10, 12, 16, .4);
    border: 1px solid rgba(0, 242, 255, .15);
    border-radius: 24px;
    padding: 35px;
    backdrop-filter: blur(20px);
    position: relative;
    overflow: hidden;
    transition: all .4s cubic-bezier(.165, .84, .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: .5
}

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

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

    to {
        opacity: 1;
        transform: none
    }
}

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

.exam-option:hover {
    background: rgba(0, 242, 255, .05);
    border-color: var(--primary);
    color: #fff;
    transform: translateX(10px);
    box-shadow: -10px 0 20px rgba(0, 242, 255, .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, .1);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: .8rem;
    font-weight: 800;
    color: var(--primary)
}

.progress-track-premium {
    width: 100%;
    height: 6px;
    background: rgba(255, 255, 255, .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 .6s cubic-bezier(.34, 1.56, .64, 1)
}

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

@keyframes popIn {
    0% {
        transform: scale(.8);
        opacity: 0
    }

    100% {
        transform: scale(1);
        opacity: 1
    }
}

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

.feedback-error {
    background: rgba(239, 68, 68, .1);
    color: #ef4444;
    border: 1px solid #ef4444
}

/* ══ TOUR ══ */
.tour-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, .45);
    backdrop-filter: blur(5px);
    z-index: 10000;
    opacity: 0;
    transition: opacity .4s;
    pointer-events: none
}

.tour-overlay.active {
    opacity: 1;
    pointer-events: all
}

.tour-highlight {
    position: relative !important;
    z-index: 10001 !important;
    outline: 4px solid var(--primary);
    outline-offset: 4px;
    box-shadow: 0 0 50px rgba(0, 242, 255, .5);
    border-radius: 8px;
    transition: all .3s
}

.tour-step-card {
    position: absolute;
    z-index: 10002;
    background: rgba(15, 19, 26, .9);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(0, 242, 255, .3);
    border-radius: 24px;
    padding: 30px;
    width: 360px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, .6);
    opacity: 0;
    transform: translateY(20px) scale(.95);
    transition: all .4s cubic-bezier(.18, .89, .32, 1.28);
    pointer-events: none;
}

.tour-step-card.active {
    opacity: 1;
    transform: none;
    pointer-events: all
}

.tour-icon {
    width: 50px;
    height: 50px;
    background: rgba(0, 242, 255, .1);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--primary);
    margin-bottom: 20px;
    border: 1px solid rgba(0, 242, 255, .2)
}

.tour-step-card h4 {
    color: #fff;
    margin: 0 0 12px;
    font-size: 1.25rem;
    font-weight: 800;
    letter-spacing: -.5px
}

.tour-step-card p {
    color: var(--text-muted);
    font-size: .95rem;
    line-height: 1.6;
    margin: 0 0 25px
}

.tour-navigation {
    display: flex;
    flex-direction: column;
    gap: 20px;
    border-top: 1px solid var(--border);
    padding-top: 20px
}

.tour-footer-row {
    display: flex;
    justify-content: space-between;
    align-items: center
}

.tour-dots {
    display: flex;
    gap: 8px
}

.tour-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--border);
    transition: .3s
}

.tour-dot.active {
    background: var(--primary);
    width: 18px;
    border-radius: 10px
}

.tour-btn-group {
    display: flex;
    gap: 12px;
    align-items: center
}

.tour-navigation button {
    background: rgba(255, 255, 255, .05);
    border: 1px solid var(--border);
    color: #fff;
    padding: 10px 20px;
    border-radius: 12px;
    cursor: pointer;
    font-weight: 700;
    font-size: .85rem;
    transition: all .2s
}

.tour-navigation button:hover {
    background: rgba(255, 255, 255, .1);
    border-color: rgba(255, 255, 255, .3);
    transform: translateY(-1px)
}

.tour-next-btn {
    background: var(--primary) !important;
    color: #000 !important;
    border-color: var(--primary) !important
}

.tour-next-btn:hover {
    box-shadow: 0 10px 25px rgba(0, 242, 255, .3) !important;
    filter: brightness(1.1)
}

.tour-skip-btn {
    background: transparent !important;
    border: none !important;
    color: var(--text-muted) !important;
    font-size: .75rem !important;
    font-weight: 700 !important;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    padding: 5px 10px !important;
    opacity: .7
}

.tour-skip-btn:hover {
    opacity: 1 !important;
    color: #fff !important;
    background: rgba(255, 255, 255, .05) !important;
    border-radius: 6px
}

/* ══ ROLE MODAL ══ */
.role-modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, .85);
    z-index: 10010;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(12px);
    animation: roleModalFadeIn .3s;
}

@keyframes roleModalFadeIn {
    from {
        opacity: 0
    }

    to {
        opacity: 1
    }
}

.role-modal-container {
    width: 680px;
    max-width: 95vw;
    max-height: 90vh;
    background: linear-gradient(145deg, rgba(13, 17, 23, .98), rgba(5, 7, 12, .99));
    border: 1px solid rgba(255, 255, 255, .08);
    border-radius: 28px;
    overflow: hidden;
    box-shadow: 0 0 80px rgba(0, 0, 0, .8), 0 0 40px rgba(0, 242, 255, .05), inset 0 1px 0 rgba(255, 255, 255, .05);
    animation: roleModalSlideUp .4s cubic-bezier(.16, 1, .3, 1);
    display: flex;
    flex-direction: column;
}

@keyframes roleModalSlideUp {
    from {
        opacity: 0;
        transform: translateY(30px) scale(.96)
    }

    to {
        opacity: 1;
        transform: none
    }
}

.role-modal-header {
    padding: 28px 32px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, .06);
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: linear-gradient(180deg, rgba(255, 255, 255, .03), transparent)
}

.role-modal-header-left {
    display: flex;
    align-items: center;
    gap: 14px
}

.role-modal-header-icon {
    width: 44px;
    height: 44px;
    border-radius: 14px;
    background: var(--primary-dim);
    border: 1px solid var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    color: var(--primary);
    box-shadow: 0 0 20px var(--primary-dim)
}

.role-modal-header h3 {
    margin: 0;
    font-size: 1.2rem;
    font-weight: 900;
    color: #fff;
    letter-spacing: -.5px
}

.role-modal-header h3 span {
    font-size: .7rem;
    color: var(--text-muted);
    display: block;
    font-weight: 600;
    margin-top: 2px;
    letter-spacing: 0
}

.role-modal-close {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: rgba(255, 255, 255, .04);
    border: 1px solid rgba(255, 255, 255, .08);
    color: var(--text-muted);
    font-size: 1.2rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: .2s
}

.role-modal-close:hover {
    background: rgba(239, 68, 68, .1);
    color: #ef4444;
    border-color: rgba(239, 68, 68, .3)
}

.role-modal-body {
    padding: 24px 32px 0;
    overflow-y: auto;
    flex: 1;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, .1) transparent
}

.role-modal-body::-webkit-scrollbar {
    width: 4px
}

.role-modal-body::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, .1);
    border-radius: 4px
}

.role-identity-section {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 24px;
    margin-bottom: 28px;
    align-items: start
}

.role-name-group {
    display: flex;
    flex-direction: column;
    gap: 6px
}

.role-field-label {
    font-size: .65rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--text-muted)
}

.role-name-group input {
    margin: 0;
    padding: 14px 16px;
    border-radius: 14px;
    background: rgba(0, 0, 0, .4);
    border: 1px solid rgba(255, 255, 255, .08);
    font-size: 1rem;
    font-weight: 700;
    color: #fff;
    transition: .3s
}

.role-name-group input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 20px var(--primary-dim)
}

.role-color-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    min-width: 140px
}

.role-color-preview-ring {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    padding: 4px;
    background: conic-gradient(#f00, #f80, #ff0, #0f0, #0ff, #08f, #80f, #f08, #f00);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: .3s;
    position: relative;
    animation: ringRotate 8s linear infinite;
}

@keyframes ringRotate {
    from {
        filter: hue-rotate(0deg)
    }

    to {
        filter: hue-rotate(360deg)
    }
}

.role-color-preview-ring:hover {
    transform: scale(1.08);
    box-shadow: 0 0 30px rgba(255, 255, 255, .15)
}

.role-color-preview-inner {
    width: 58px;
    height: 58px;
    border-radius: 50%;
    background: #00f2ff;
    transition: background .3s, box-shadow .3s;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative
}

.role-color-preview-inner i {
    font-size: 1.2rem;
    color: rgba(0, 0, 0, .6);
    transition: .3s
}

.role-color-preview-ring:hover .role-color-preview-inner i {
    color: rgba(0, 0, 0, .9);
    transform: scale(1.1)
}

.role-color-input-row {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%
}

.role-hex-input {
    width: 100% !important;
    margin: 0 !important;
    padding: 8px 10px !important;
    border-radius: 10px !important;
    background: rgba(0, 0, 0, .4) !important;
    border: 1px solid rgba(255, 255, 255, .08) !important;
    font-size: .8rem !important;
    font-weight: 800 !important;
    color: var(--primary) !important;
    text-align: center;
    font-family: 'JetBrains Mono', 'Fira Code', monospace;
    text-transform: uppercase;
    letter-spacing: 1px
}

.role-hex-input:focus {
    border-color: var(--primary) !important;
    box-shadow: 0 0 15px var(--primary-dim) !important
}

.role-native-picker {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none
}

.role-preview-strip {
    margin-bottom: 28px;
    padding: 16px 20px;
    background: rgba(0, 0, 0, .3);
    border: 1px solid rgba(255, 255, 255, .06);
    border-radius: 14px;
    display: flex;
    align-items: center;
    gap: 14px
}

.role-preview-strip .preview-label {
    font-size: .6rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--text-muted);
    white-space: nowrap
}

.role-preview-badge {
    padding: 6px 16px;
    border-radius: 8px;
    font-size: .75rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .5px;
    transition: .3s
}

.role-preview-member {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-left: auto
}

.role-preview-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: .7rem;
    color: var(--text-muted)
}

.role-preview-name {
    font-size: .8rem;
    font-weight: 700;
    color: #fff
}

.role-perms-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px
}

.perm-count-badge {
    background: var(--primary-dim);
    color: var(--primary);
    padding: 2px 10px;
    border-radius: 20px;
    font-size: .6rem;
    font-weight: 900;
    border: 1px solid rgba(0, 242, 255, .2)
}

.role-perms-actions {
    display: flex;
    gap: 8px
}

.role-perm-toggle-btn {
    background: rgba(255, 255, 255, .04);
    border: 1px solid rgba(255, 255, 255, .08);
    color: var(--text-muted);
    padding: 4px 12px;
    border-radius: 8px;
    font-size: .6rem;
    font-weight: 800;
    cursor: pointer;
    transition: .2s;
    text-transform: uppercase;
    letter-spacing: .5px
}

.role-perm-toggle-btn:hover {
    background: var(--primary-dim);
    color: var(--primary);
    border-color: var(--primary)
}

.perm-categories-grid {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 24px
}

.perm-category {
    background: rgba(0, 0, 0, .25);
    border: 1px solid rgba(255, 255, 255, .05);
    border-radius: 16px;
    overflow: hidden;
    transition: .3s
}

.perm-category:hover {
    border-color: rgba(255, 255, 255, .1)
}

.perm-category-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 18px;
    cursor: pointer;
    transition: .2s;
    user-select: none
}

.perm-category-header:hover {
    background: rgba(255, 255, 255, .02)
}

.perm-category-icon {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    flex-shrink: 0
}

.perm-category-info {
    flex: 1;
    min-width: 0
}

.perm-category-info h4 {
    margin: 0;
    font-size: .8rem;
    font-weight: 800;
    color: #fff
}

.perm-category-info span {
    font-size: .65rem;
    color: var(--text-muted)
}

.perm-category-count {
    font-size: .6rem;
    font-weight: 900;
    padding: 2px 8px;
    border-radius: 6px;
    background: rgba(255, 255, 255, .05);
    color: var(--text-muted);
    transition: .3s;
    white-space: nowrap
}

.perm-category-count.has-active {
    background: var(--primary-dim);
    color: var(--primary);
    border: 1px solid rgba(0, 242, 255, .2)
}

.perm-category-chevron {
    color: var(--text-muted);
    font-size: .9rem;
    transition: transform .3s
}

.perm-category.open .perm-category-chevron {
    transform: rotate(180deg)
}

.perm-category-body {
    max-height: 0;
    overflow: hidden;
    transition: max-height .35s cubic-bezier(.4, 0, .2, 1)
}

.perm-category.open .perm-category-body {
    max-height: 1000px
}

.perm-items-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px;
    padding: 4px 18px 14px
}

.perm-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 10px;
    cursor: pointer;
    transition: .2s;
    border: 1px solid transparent
}

.perm-item:hover {
    background: rgba(255, 255, 255, .03);
    border-color: rgba(255, 255, 255, .06)
}

.perm-item.active {
    background: var(--primary-dim);
    border-color: rgba(0, 242, 255, .15)
}

.perm-item-checkbox {
    width: 18px;
    height: 18px;
    border-radius: 6px;
    border: 2px solid rgba(255, 255, 255, .15);
    background: rgba(0, 0, 0, .3);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: .2s;
    flex-shrink: 0
}

.perm-item.active .perm-item-checkbox {
    background: var(--primary);
    border-color: var(--primary)
}

.perm-item.active .perm-item-checkbox::after {
    content: '✓';
    color: #000;
    font-size: .65rem;
    font-weight: 900
}

.perm-item-info {
    display: flex;
    flex-direction: column;
    min-width: 0
}

.perm-name {
    font-size: .75rem;
    font-weight: 700;
    color: #fff;
    transition: .2s
}

.perm-item.active .perm-name {
    color: var(--primary)
}

.perm-desc {
    font-size: .6rem;
    color: var(--text-muted);
    line-height: 1.3
}

.perm-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: .8rem;
    color: var(--text-muted);
    cursor: pointer
}

.perm-category.perm-danger {
    border-color: rgba(239, 68, 68, .15)
}

.perm-category.perm-danger .perm-category-header:hover {
    background: rgba(239, 68, 68, .03)
}

.perm-category.perm-danger .perm-category-icon {
    background: rgba(239, 68, 68, .1);
    color: #ef4444
}

.role-modal-footer {
    padding: 20px 32px 24px;
    border-top: 1px solid rgba(255, 255, 255, .06);
    display: flex;
    gap: 10px;
    background: linear-gradient(0deg, rgba(0, 0, 0, .3), transparent)
}

.btn-role-save {
    flex: 1;
    padding: 14px 24px;
    border-radius: 14px;
    border: none;
    background: var(--primary);
    color: #000;
    font-weight: 900;
    font-size: .8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: .3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px
}

.btn-role-save:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px var(--primary-dim)
}

.btn-role-cancel {
    padding: 14px 24px;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, .1);
    background: transparent;
    color: var(--text-muted);
    font-weight: 800;
    font-size: .8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: .2s
}

.btn-role-cancel:hover {
    background: rgba(255, 255, 255, .05);
    color: #fff
}

/* ══ DRIVER STATUS BADGES ══ */
.driver-status-badge {
    position: absolute;
    bottom: -4px;
    right: -4px;
    min-width: 24px;
    height: 24px;
    padding: 0 6px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: .75rem;
    font-weight: 900;
    z-index: 5;
    border: 2px solid #0a0c10;
    box-shadow: 0 4px 15px rgba(0, 0, 0, .6);
    pointer-events: none;
}

.driver-status-badge i {
    font-size: 1rem
}

.driver-status-badge-owner {
    background: linear-gradient(135deg, #ffd700, #ffaa00);
    color: #000;
    box-shadow: 0 0 25px rgba(255, 215, 0, .7), 0 4px 10px rgba(0, 0, 0, .5);
    border-color: #ffd700;
}

.driver-status-badge-loa {
    background: #f59e0b;
    color: #000
}

.driver-status-badge-awol {
    background: #ef4444;
    color: #fff
}

/* ══ SIDEBAR OVERLAY ══ */
.sidebar-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, .6);
    z-index: 4999;
    backdrop-filter: blur(4px)
}

/* ══ MEDIA QUERIES ══ */
@media (max-width:1100px) {

    .overview-split,
    .system-config-layout {
        grid-template-columns: 1fr !important
    }

    .overview-hero,
    .finances-kpi-grid,
    .finances-charts-grid {
        grid-template-columns: 1fr
    }
}

@media (max-width:900px) {
    .sidebar {
        position: fixed;
        inset: 0 auto 0 0;
        z-index: 5000;
        transform: translateX(-100%);
        transition: transform .3s cubic-bezier(.4, 0, .2, 1);
        box-shadow: 20px 0 50px rgba(0, 0, 0, .5)
    }

    .sidebar.open {
        transform: translateX(0)
    }

    #mobile-menu-btn {
        display: flex !important;
        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,
    .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,
    .event-modal-info {
        grid-template-columns: 1fr
    }

    .event-header,
    .attendance-actions {
        flex-direction: column;
        align-items: flex-start
    }

    .event-modal-attendance {
        grid-template-columns: 1fr
    }
}

@media (max-width:700px) {

    .role-modal-header,
    .role-modal-body,
    .role-modal-footer {
        padding-left: 20px;
        padding-right: 20px
    }

    .role-identity-section {
        grid-template-columns: 1fr
    }

    .role-color-section {
        flex-direction: row;
        min-width: unset
    }

    .perm-items-grid {
        grid-template-columns: 1fr
    }
}

@media (max-width:600px) {
    .stats-grid {
        grid-template-columns: 1fr
    }
}

#mobile-menu-btn {
    display: none
}

/* ── Modal Improvements ── */
.field-hint {
    display: block;
    font-size: 0.65rem;
    color: var(--text-muted);
    margin-top: 6px;
    line-height: 1.4;
}

.checkbox-tag {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.03);
    padding: 8px 12px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    cursor: pointer;
    font-size: 0.75rem;
    transition: all 0.2s;
    user-select: none;
}

.checkbox-tag:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.1);
}

.checkbox-tag input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: var(--primary);
    margin: 0;
}

/* ── Discord Preview ── */
.discord-preview-box {
    background: #2b2d31;
    border-radius: 8px;
    padding: 16px;
    margin-top: 10px;
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

.discord-embed {
    display: flex;
    margin-top: 8px;
    border-left: 4px solid #10b981;
    background: #232428;
    border-radius: 4px;
}

.discord-embed-inner {
    padding: 8px 16px 16px;
    flex: 1;
}

.discord-author {
    font-size: 0.75rem;
    font-weight: 600;
    color: #fff;
    margin-bottom: 4px;
}

.discord-title {
    font-size: 1rem;
    font-weight: 700;
    color: #00a8fc;
    margin-bottom: 8px;
    cursor: pointer;
}

.discord-title:hover {
    text-decoration: underline;
}

.discord-desc {
    font-size: 0.875rem;
    color: #dbdee1;
    margin-bottom: 12px;
}

.discord-fields {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.discord-field strong {
    display: block;
    font-size: 0.75rem;
    color: #fff;
    margin-bottom: 2px;
}

.discord-field span {
    font-size: 0.875rem;
    color: #dbdee1;
}

.discord-footer-link {
    margin-top: 12px;
    font-size: 0.875rem;
    color: #00a8fc;
    cursor: pointer;
}

.discord-footer-link:hover {
    text-decoration: underline;
}

.audit-panel-header {
    margin-bottom: 30px;
    background: rgba(255, 255, 255, 0.01);
    padding: 20px 25px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
}

.audit-panel-title {
    display: flex;
    align-items: center;
    gap: 15px;
}

.audit-panel-icon {
    width: 44px;
    height: 44px;
    background: rgba(0, 242, 255, 0.1);
    color: var(--primary);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    border: 1px solid rgba(0, 242, 255, 0.2);
}

.audit-panel-heading {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 800;
}

.audit-panel-subtitle {
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-top: 2px;
}

.audit-filter-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr 1.5fr;
    gap: 15px;
    margin-bottom: 25px;
    padding: 15px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 16px;
}

.audit-filter-field {
    position: relative;
}

.audit-filter-icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--primary);
    font-size: 0.9rem;
}

.audit-export-btn {
    width: auto;
    padding: 12px 25px;
    font-weight: 800;
    font-size: 0.75rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border);
    color: #fff;
}

.audit-filter-input {
    margin: 0;
}

.audit-filter-input.has-icon {
    padding-left: 35px;
}

.admin-shell-header {
    margin-bottom: 30px;
    background: rgba(255, 255, 255, 0.01);
    padding: 20px 25px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.admin-shell-title {
    display: flex;
    align-items: center;
    gap: 15px;
}

.admin-shell-icon {
    width: 44px;
    height: 44px;
    background: rgba(0, 242, 255, 0.1);
    color: var(--primary);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    border: 1px solid rgba(0, 242, 255, 0.2);
}

.admin-shell-heading {
    margin: 0;
    font-size: 1.5rem;
    letter-spacing: -0.5px;
    font-weight: 800;
}

.admin-shell-subtitle {
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-top: 2px;
    opacity: 0.8;
}

.admin-section-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border);
}

.admin-section-icon {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    border: 1px solid transparent;
}

.admin-section-title {
    margin: 0;
    font-size: 1.4rem;
    font-weight: 800;
}

.admin-section-subtitle {
    margin: 0;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.admin-action-btn {
    width: auto;
    padding: 10px 20px;
    font-size: 0.75rem;
    font-weight: 900;
}

.admin-action-btn-wide {
    width: auto;
    padding: 10px 25px;
    font-size: 0.8rem;
    font-weight: 800;
}

.admin-action-row-end {
    margin-top: 20px;
    display: flex;
    justify-content: flex-end;
}

.info-notice {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
    padding: 15px;
    border-radius: 12px;
}

.info-notice-primary {
    background: rgba(59, 130, 246, 0.05);
    border: 1px solid rgba(59, 130, 246, 0.15);
}

.info-notice-icon {
    color: var(--primary);
    font-size: 1.3rem;
}

.info-notice-text {
    margin: 0;
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.5;
}

.content-card-header {
    padding: 25px;
    background: rgba(255, 255, 255, 0.02);
    border-bottom: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.content-card-title {
    display: flex;
    align-items: center;
    gap: 10px;
}

.content-card-title-icon {
    color: var(--primary);
    font-size: 1.2rem;
}

.content-card-heading {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 800;
}

.content-tip-card {
    padding: 20px;
    border: 1px dashed rgba(255, 255, 255, 0.1);
    background: transparent;
}

.content-tip-row {
    display: flex;
    gap: 12px;
}

.content-tip-icon {
    color: var(--primary);
    font-size: 1.2rem;
}

.content-tip-text {
    margin: 0;
    font-size: 0.75rem;
    color: var(--text-muted);
    line-height: 1.5;
}

.handbook-card {
    padding: 25px;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.02), rgba(0, 242, 255, 0.01));
    border-left: 4px solid var(--primary);
}

.handbook-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}

.handbook-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: rgba(0, 242, 255, 0.1);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
}

.handbook-title {
    margin: 0;
    font-size: 1.1rem;
}

.handbook-description {
    color: var(--text-muted);
    font-size: 0.8rem;
    margin-bottom: 20px;
    line-height: 1.5;
}

.handbook-label {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #fff;
    font-size: 0.7rem;
    letter-spacing: 1px;
    margin-bottom: 8px;
}

.handbook-label-icon {
    color: var(--primary);
}

.handbook-textarea {
    height: 180px;
    resize: none;
    background: rgba(0, 0, 0, 0.2);
    border-color: rgba(255, 255, 255, 0.1);
    font-size: 0.85rem;
    padding: 15px;
}

.content-hero-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border);
}

.content-hero-title {
    display: flex;
    align-items: center;
    gap: 15px;
}

.content-hero-icon {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--primary), #00a2ff);
    color: #000;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    box-shadow: 0 0 20px rgba(0, 242, 255, 0.3);
}

.content-hero-heading {
    margin: 0;
    font-size: 1.6rem;
    font-weight: 900;
    letter-spacing: -0.5px;
}

.content-hero-subtitle {
    margin: 2px 0 0;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.content-status-badge {
    font-size: 0.6rem;
    background: rgba(0, 242, 255, 0.1);
    color: var(--primary);
    padding: 5px 12px;
    border-radius: 20px;
    font-weight: 900;
    border: 1px solid rgba(0, 242, 255, 0.2);
    letter-spacing: 1px;
    text-transform: uppercase;
}

.coming-soon-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(to bottom, transparent, rgba(5, 7, 10, 0.85));
    z-index: 5;
}

.coming-soon-pill {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 12px 30px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.6);
}

.coming-soon-dot {
    width: 8px;
    height: 8px;
    background: var(--primary);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--primary);
    animation: pulse 2s infinite;
}

.coming-soon-text {
    color: #fff;
    font-weight: 900;
    letter-spacing: 2px;
    font-size: 0.75rem;
    text-transform: uppercase;
}

.academy-block-header {
    display: flex;
    align-items: center;
    gap: 10px;
}

.academy-block-header.spaced {
    margin-bottom: 10px;
}

.academy-block-icon {
    width: 32px;
    height: 32px;
    background: var(--primary-dim);
    color: var(--primary);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.academy-toggle-card {
    background: rgba(255, 255, 255, 0.02);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}
