
/* =========================================================
   DASHBOARD
========================================================= */

.dashboard-page {
    min-height: calc(100vh - var(--navbar-h));
    padding: 24px 0 40px;
    overflow-x: hidden;
}

.dashboard-container {
    width: min(1400px, calc(100% - 40px));
    margin: 0 auto;
    display: grid;
    grid-template-columns: 230px minmax(0, 1fr);
    gap: 30px;
}


/* =========================================================
   SIDEBAR
========================================================= */

.dashboard-sidebar {
    position: sticky;
    top: 100px;

    height: calc(100vh - 140px);

    display: flex;
    flex-direction: column;

    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 18px;

    padding: 20px;

    box-sizing: border-box;
}


/* =========================================================
   SIDEBAR BRAND
========================================================= */

.sidebar-brand {
    display: flex;
    align-items: center;
    gap: 12px;

    padding: 4px 5px 25px;

    border-bottom: 1px solid var(--border);
}

.sidebar-brand-icon {
    width: 38px;
    height: 38px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 10px;

    background: var(--bg);
    border: 1px solid var(--border-muted);

    color: var(--text);

    flex-shrink: 0;
}

.sidebar-brand strong {
    display: block;

    font-family: 'Aclonica', sans-serif;
    font-size: .9rem;
}

.sidebar-brand small {
    display: block;

    margin-top: 3px;

    color: var(--text-light);
    font-size: .65rem;
}


/* =========================================================
   NAVIGATION
========================================================= */

.dashboard-nav {
    display: flex;
    flex-direction: column;
    gap: 5px;

    margin-top: 25px;
}

.dashboard-nav-item {
    width: 100%;

    display: flex;
    align-items: center;
    gap: 12px;

    padding: 11px 12px;

    background: transparent;
    border: 1px solid transparent;
    border-radius: 9px;

    color: var(--text);

    text-decoration: none;
    text-align: left;

    font-family: 'Poppins', sans-serif;
    font-size: .78rem;

    cursor: pointer;

    box-sizing: border-box;

    transition: .2s ease;
}

.dashboard-nav-item i:first-child {
    width: 18px;
    min-width: 18px;

    text-align: center;
}

.dashboard-nav-item:hover {
    background: rgba(255, 255, 255, .03);
    color: white;
}

.dashboard-nav-item.active {
    background: transparent;
    border-color: var(--neon);

    color: var(--text);
}

.dashboard-nav-item.active i:first-child {
    color: var(--text);
}

.nav-arrow {
    margin-left: auto;
    font-size: .65rem;
}


/* =========================================================
   CREATE / ACTION BUTTON
========================================================= */

.dashboard-action-btn {
    width: 100%;

    display: flex;
    align-items: center;
    gap: 10px;

    padding: 11px 12px;

    background: transparent;

    border: 1px solid var(--border);
    border-radius: 9px;

    color: white;

    text-decoration: none;

    box-sizing: border-box;

    transition: .2s ease;
}

.dashboard-action-btn:hover {
    border-color: var(--neon);
    background: var(--bg);
    box-shadow: var(--neon-glow);
}

.dashboard-action-btn .action-icon {
    color: var(--text);
    font-size: 1rem;
}

.dashboard-action-btn strong {
    display: block;
    font-size: .72rem;
}

.dashboard-action-btn small {
    display: block;

    margin-top: 2px;

    color: var(--text);
    font-size: .58rem;
}


/* =========================================================
   ADD GAME MATE
========================================================= */

.add-gamemate-btn {
    width: 100%;

    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;

    margin-top: 15px;
    padding: 10px;

    background: transparent;

    border: 1px solid #f80800;
    border-radius: 9px;

    color: white;

    font-size: .72rem;
    font-weight: 600;

    cursor: pointer;

    box-sizing: border-box;

    transition: .25s ease;
}

.add-gamemate-btn:hover {
    background: rgba(255, 0, 0, .08);

    box-shadow:
        0 0 12px rgba(255, 0, 0, .25);
}


/* =========================================================
   SIDEBAR BOTTOM
========================================================= */

.sidebar-bottom {
    margin-top: auto;
    padding-top: 20px;

    border-top: 1px solid var(--border);
}

.logout-link:hover {
    color: #ff3b30;
}


/* =========================================================
   MAIN
========================================================= */

.dashboard-main {
    display: block;

    width: 100%;
    min-width: 0;

    padding: 0 22px;

    margin: 0;

    min-height: 0;

    align-self: start;

    box-sizing: border-box;
}


/* =========================================================
   DASHBOARD VIEWS
========================================================= */

.dashboard-view {
    display: none;

    width: 100%;
    max-width: 100%;

    margin: 0;
    padding: 0;

    box-sizing: border-box;
}

.dashboard-view.active-view {
    display: block;
}


/* =========================================================
   WELCOME
========================================================= */

.dashboard-welcome {
    min-height: auto;

    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 30px;

    padding: 24px 28px;

    background: #000000;

    border: 1px solid var(--border);
    border-radius: 18px;

    box-sizing: border-box;
}

.dashboard-eyebrow {
    display: flex;
    align-items: center;
    gap: 8px;

    margin-bottom: 14px;

    color: #a8a9b2;

    font-size: .65rem;
    font-weight: 600;
    letter-spacing: 1.8px;
}

.status-dot {
    width: 6px;
    height: 6px;

    border-radius: 50%;

    background: #ff1a1a;

    box-shadow: 0 0 8px rgba(255, 0, 0, .7);

    flex-shrink: 0;
}

.dashboard-welcome h1 {
    margin: 0;

    font-size: clamp(1.7rem, 3vw, 2.5rem);
    line-height: 1.2;
}

.dashboard-welcome h1 span {
    color: #ff2929;
}

.dashboard-welcome p {
    margin: 10px 0 0;

    color: var(--text-light);
    font-size: .85rem;
}


/* =========================================================
   PRIMARY BUTTON
========================================================= */

.dashboard-primary-btn {
    position: relative;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    gap: 8px;

    padding: 11px 18px;

    background: rgba(255, 0, 0, 0);

    border: 1px solid red;
    border-radius: 9px;

    color: white;

    font-size: .75rem;
    font-weight: 600;

    text-decoration: none;

    white-space: nowrap;

    overflow: hidden;

    z-index: 1;

    box-sizing: border-box;

    transition:
        transform .25s ease,
        box-shadow .25s ease;
}

.dashboard-primary-btn::before {
    content: "";

    position: absolute;

    inset: -2px;

    background: conic-gradient(
        from 0deg,
        transparent 0deg,
        transparent 60deg,
        #ff0800 120deg,
        #ff0800 180deg,
        transparent 240deg,
        transparent 360deg
    );

    border-radius: 11px;

    opacity: 0;

    z-index: -2;
}

.dashboard-primary-btn::after {
    content: "";

    position: absolute;

    inset: 1px;

    background: #101116;

    border-radius: 8px;

    z-index: -1;
}

.dashboard-primary-btn:hover {
    color: #faf8f8;

    transform: translateY(-2px);

    border: none;
}

.dashboard-primary-btn:hover::before {
    opacity: 1;

    animation:
        dashboardBorderLoop 2s linear infinite;
}

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

    to {
        transform: rotate(360deg);
    }
}


/* =========================================================
   STATISTICS
========================================================= */

.dashboard-stats {
    display: grid;

    grid-template-columns:
        repeat(4, minmax(0, 1fr));

    gap: 14px;

    margin-top: 18px;

    width: 100%;
}

.stat-card {
    display: flex;
    align-items: center;

    gap: 13px;

    padding: 18px;

    background: #09090b;

    border: 1px solid var(--border);
    border-radius: 14px;

    box-sizing: border-box;

    transition: .2s ease;
}

.stat-card:hover {
    border-color: rgba(255, 0, 0, .18);
}

.stat-icon {
    width: 38px;
    height: 38px;

    display: flex;
    align-items: center;
    justify-content: center;

    flex-shrink: 0;

    border-radius: 9px;

    background: rgba(255, 0, 0, .07);

    color: #ff2929;

    font-size: .8rem;
}

.stat-card strong {
    display: block;

    font-family: 'Aclonica', sans-serif;

    font-size: 1.15rem;
}

.stat-card span {
    display: block;

    margin-top: 3px;

    color: #858792;

    font-size: .65rem;
}


/* =========================================================
   SECTIONS
========================================================= */

.dashboard-section {
    margin-top: 40px;
}

.section-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;

    gap: 15px;

    margin-bottom: 18px;
}

.section-label {
    display: block;

    margin-bottom: 5px;

    color: #ff2929;

    font-size: .58rem;
    font-weight: 700;

    letter-spacing: 2px;
}

.section-heading h2 {
    margin: 0;

    font-size: 1.25rem;
}

.section-link {
    display: flex;
    align-items: center;

    gap: 7px;

    color: #92949e;

    font-size: .7rem;

    text-decoration: none;

    transition: .2s;
}

.section-link:hover {
    color: #ff2929;
}


/* =========================================================
   TOURNAMENTS
========================================================= */

.tournament-grid {
    display: grid;

    grid-template-columns:
        repeat(3, minmax(0, 1fr));

    gap: 14px;

    width: 100%;
}

.tournament-card {
    position: relative;

    padding: 22px;

    background: #09090b;

    border: 1px solid var(--border);
    border-radius: 14px;

    transition:
        transform .25s ease,
        box-shadow .25s ease;

    overflow: hidden;

    z-index: 1;

    box-sizing: border-box;
}

.tournament-card::before {
    content: "";

    position: absolute;

    width: 220%;
    height: 220%;

    top: -60%;
    left: -60%;

    background: conic-gradient(
        transparent 0deg,
        transparent 270deg,
        rgba(255, 8, 0, .2) 300deg,
        #ff0800 330deg,
        #ff0800 360deg
    );

    opacity: 0;

    z-index: -2;

    transition: opacity .25s ease;
}

.tournament-card::after {
    content: "";

    position: absolute;

    inset: 1px;

    background: #09090b;

    border-radius: 13px;

    z-index: -1;
}

.tournament-card:hover {
    border-color: transparent;

    transform: translateY(-3px);

    box-shadow:
        0 12px 30px rgba(0, 0, 0, .25);
}

.tournament-card:hover::before {
    opacity: 1;

    animation:
        tournamentBorderLoop 2s linear infinite;
}

@keyframes tournamentBorderLoop {
    100% {
        transform: rotate(360deg);
    }
}

.tournament-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 10px;

    margin-bottom: 20px;
}

.tournament-icon {
    width: 38px;
    height: 38px;

    display: flex;
    align-items: center;
    justify-content: center;

    background: rgba(255, 0, 0, .07);

    border: 1px solid rgba(255, 0, 0, .15);

    border-radius: 9px;

    color: #ff2929;
}

.live-badge {
    padding: 4px 8px;

    border-radius: 5px;

    background: rgba(255, 0, 0, .08);

    color: #ff3b30;

    font-size: .55rem;
    font-weight: 700;

    letter-spacing: 1px;
}

.tournament-card h3 {
    margin-bottom: 10px;

    font-size: .95rem;
}

.tournament-meta {
    color: #858792;

    font-size: .68rem;
}

.tournament-meta i {
    margin-right: 5px;
}

.card-action {
    display: flex;
    align-items: center;
    justify-content: space-between;

    margin-top: 22px;
    padding-top: 14px;

    border-top: 1px solid var(--border);

    color: #c7c8ce;

    font-size: .7rem;
    font-weight: 600;

    text-decoration: none;

    transition: .2s;
}

.card-action:hover {
    color: #ff2929;
}

.tournament-actions {
    display: flex;

    gap: 8px;

    width: 100%;

    margin-top: 12px;
}

.tournament-actions .card-action {
    flex: 1;

    min-width: 0;

    margin: 0;

    display: flex;

    align-items: center;
    justify-content: center;

    gap: 6px;

    text-align: center;
}


/* =========================================================
   MATCHES
========================================================= */

.matches-card {
    background: #09090b;

    border: 1px solid var(--border);

    border-radius: 14px;

    overflow: hidden;

    width: 100%;
}

.match-row {
    display: grid;

    grid-template-columns:
        minmax(0, 1fr) 150px 90px;

    align-items: center;

    gap: 10px;

    padding: 17px 20px;

    border-bottom: 1px solid var(--border);

    box-sizing: border-box;
}

.match-row:last-child {
    border-bottom: none;
}

.match-opponent {
    display: flex;
    align-items: center;

    gap: 12px;

    min-width: 0;
}

.match-avatar {
    width: 38px;
    height: 38px;

    display: flex;
    align-items: center;
    justify-content: center;

    flex-shrink: 0;

    border-radius: 9px;

    background: rgba(255, 255, 255, .04);

    color: #bfc0c7;

    font-size: .7rem;
    font-weight: 700;
}

.match-opponent strong,
.match-time strong {
    display: block;

    font-size: .75rem;
}

.match-opponent span,
.match-time span {
    display: block;

    margin-top: 3px;

    color: #777983;

    font-size: .62rem;
}

.match-time {
    text-align: center;
}

.match-status {
    justify-self: end;

    padding: 5px 9px;

    border-radius: 6px;

    font-size: .6rem;
    font-weight: 600;
}

.match-status.active {
    background: rgba(255, 0, 0, .08);

    color: #ff3939;
}

.match-status.upcoming {
    background: rgba(255, 255, 255, .05);

    color: #999ba4;
}


/* =========================================================
   TEAMS
========================================================= */

.team-section {
    margin-top: 30px;
}

.subsection {
    margin-top: 30px;
}

.subsection-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 12px;

    margin-bottom: 14px;
}

.subsection-heading h3 {
    margin: 0;

    font-size: .95rem;
}

.small-action-btn {
    display: inline-flex;

    align-items: center;
    justify-content: center;

    gap: 6px;

    padding: 7px 11px;

    background: transparent;

    border: 1px solid var(--border);

    border-radius: 7px;

    color: #aaa;

    font-size: .65rem;

    text-decoration: none;

    cursor: pointer;

    transition: .2s;
}

.small-action-btn:hover {
    color: #ff2929;

    border-color: rgba(255, 0, 0, .3);
}


/* =========================================================
   GAME MATES
========================================================= */

.gamemate-grid {
    display: grid;

    grid-template-columns:
        repeat(3, minmax(0, 1fr));

    gap: 12px;

    width: 100%;
}

.gamemate-card {
    display: flex;
    align-items: center;

    gap: 12px;

    padding: 14px;

    background: #09090b;

    border: 1px solid var(--border);

    border-radius: 12px;

    min-width: 0;

    box-sizing: border-box;
}

.gamemate-avatar {
    width: 38px;
    height: 38px;

    display: flex;
    align-items: center;
    justify-content: center;

    flex-shrink: 0;

    border-radius: 50%;

    background: rgba(255, 0, 0, .08);

    border: 1px solid rgba(255, 0, 0, .2);

    color: #ff2929;

    font-size: .75rem;
    font-weight: 700;
}

.gamemate-info {
    min-width: 0;

    flex: 1;
}

.gamemate-info strong {
    display: block;

    overflow: hidden;

    color: #eee;

    font-size: .75rem;

    text-overflow: ellipsis;

    white-space: nowrap;
}

.gamemate-info span {
    display: block;

    color: #777983;

    font-size: .6rem;
}

.chat-link {
    display: inline-block;

    margin-top: 5px;

    color: #ff2929;

    font-size: .62rem;

    text-decoration: none;
}


/* =========================================================
   GROUPS
========================================================= */

.group-list {
    display: flex;

    flex-direction: column;

    background: #09090b;

    border: 1px solid var(--border);

    border-radius: 12px;

    overflow: hidden;
}

.group-item {
    display: flex;

    align-items: center;

    gap: 12px;

    padding: 14px 16px;

    color: white;

    text-decoration: none;

    border-bottom: 1px solid var(--border);

    transition: .2s;
}

.group-item:last-child {
    border-bottom: none;
}

.group-item:hover {
    background: rgba(255, 0, 0, .04);
}

.group-icon {
    width: 35px;
    height: 35px;

    display: flex;
    align-items: center;
    justify-content: center;

    flex-shrink: 0;

    border-radius: 8px;

    background: rgba(255, 0, 0, .07);

    color: #ff2929;
}

.group-item div:nth-child(2) {
    flex: 1;

    min-width: 0;
}

.group-item strong,
.group-item span {
    display: block;

    overflow: hidden;

    text-overflow: ellipsis;

    white-space: nowrap;
}

.group-item strong {
    font-size: .75rem;
}

.group-item span {
    margin-top: 2px;

    color: #777983;

    font-size: .6rem;
}

.group-item > i {
    color: #555760;

    font-size: .65rem;
}


/* =========================================================
   TEAM CARDS
========================================================= */

.team-grid {
    display: grid;

    grid-template-columns:
        repeat(2, minmax(0, 1fr));

    gap: 14px;

    width: 100%;
}

.team-card {
    padding: 20px;

    background: #101116;

    border: 1px solid var(--border);

    border-radius: 14px;

    box-sizing: border-box;
}

.team-card-header {
    display: flex;

    align-items: center;

    gap: 12px;
}

.team-avatar {
    width: 42px;
    height: 42px;

    display: flex;
    align-items: center;
    justify-content: center;

    flex-shrink: 0;

    border-radius: 10px;

    background: rgba(255, 0, 0, .08);

    border: 1px solid rgba(255, 0, 0, .18);

    color: #ff2929;

    font-family: 'Aclonica', sans-serif;
}

.team-card h3 {
    margin: 0;

    font-size: .85rem;
}

.team-role {
    display: inline-block;

    margin-top: 4px;

    color: #ff2929;

    font-size: .6rem;
}

.team-role.member {
    color: #888a94;
}

.team-card > p {
    min-height: 40px;

    margin: 18px 0;

    color: #858792;

    font-size: .7rem;

    line-height: 1.6;
}

.team-card-footer {
    display: flex;

    align-items: center;
    justify-content: space-between;

    gap: 10px;

    padding-top: 14px;

    border-top: 1px solid var(--border);

    color: #777983;

    font-size: .65rem;
}

.team-card-footer a {
    color: #ff2929;

    text-decoration: none;

    font-weight: 600;

    white-space: nowrap;
}


/* =========================================================
   EMPTY STATES
========================================================= */

.empty-card {
    grid-column: 1 / -1;

    padding: 45px 20px;

    text-align: center;

    background: #09090b;

    border: 1px dashed rgba(255, 255, 255, .1);

    border-radius: 14px;

    box-sizing: border-box;
}

.empty-card > i {
    margin-bottom: 15px;

    color: #ff2929;

    font-size: 1.4rem;
}

.empty-card h3 {
    margin-bottom: 7px;

    font-size: .9rem;
}

.empty-card p {
    margin-bottom: 18px;

    color: #777983;

    font-size: .7rem;
}

.empty-inline {
    padding: 25px;

    color: #777983;

    text-align: center;

    font-size: .7rem;
}


/* =========================================================
   ALERTS
========================================================= */

.dashboard-messages {
    width: min(1400px, calc(100% - 40px));

    margin: 20px auto 0;
}

.dashboard-alert {
    padding: 11px 15px;

    border: 1px solid var(--border);

    border-radius: 9px;

    background: #101116;

    font-size: .75rem;

    box-sizing: border-box;
}


/* =========================================================
   TAB CONTENT
========================================================= */

.dashboard-tab-content {
    display: none;
}

.dashboard-tab-content.show {
    display: block;
}


/* =========================================================
   MOBILE SIDEBAR
========================================================= */

.mobile-sidebar-toggle,
.mobile-sidebar-overlay {
    display: none;
}


/* =========================================================
   TABLET
========================================================= */

@media (max-width: 1200px) {

    .dashboard-container {
        grid-template-columns:
            200px minmax(0, 1fr);

        gap: 22px;
    }

    .dashboard-main {
        padding: 0 12px;
    }

    .tournament-grid {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }

    .gamemate-grid {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }
}


/* =========================================================
   TABLET / MOBILE SIDEBAR
========================================================= */

@media (max-width: 991px) {

    .dashboard-page {
        width: 100%;

        min-height: calc(100vh - var(--navbar-h));

        padding: 16px 0 30px;
    }


    .dashboard-container {
        display: block;

        width: 100%;
        max-width: none;

        margin: 0;
        padding: 0;
    }


    /* =====================================================
       MAIN CONTENT
    ===================================================== */

    .dashboard-main {
        display: block !important;

        width: 100% !important;
        max-width: 100% !important;

        min-width: 0 !important;

        margin: 0 !important;

        padding: 0 20px 30px !important;

        box-sizing: border-box;

        overflow: visible;
    }


    .dashboard-main .dashboard-view {
        display: none !important;

        width: 100% !important;
        max-width: 100% !important;

        margin: 0 !important;
        padding: 0 !important;

        box-sizing: border-box;
    }


    .dashboard-main .dashboard-view.active-view {
        display: block !important;

        width: 100% !important;
        max-width: 100% !important;

        margin: 0 !important;
        padding: 0 !important;
    }


    /* =====================================================
       MOBILE SIDEBAR TOGGLE
    ===================================================== */

    .mobile-sidebar-toggle {
        display: flex;

        position: fixed;

        left: 14px;
        top: 100px;

        z-index: 10002;

        width: 42px;
        height: 42px;

        align-items: center;
        justify-content: center;

        padding: 0;

        background: var(--bg);

        border: 1px solid var(--neon);

        border-radius: 50%;

        color: white;

        cursor: pointer;

        box-shadow:
            0 5px 18px rgba(0, 0, 0, .35);

        transition:
            left .3s ease,
            background .2s ease,
            box-shadow .2s ease;
    }


    .mobile-sidebar-toggle:hover {
        background: var(--bg);
        box-shadow: var(--neon-glow);
    }


    .mobile-sidebar-toggle i {
        font-size: 14px;

        transition:
            transform .3s ease;
    }


    .mobile-sidebar-toggle.menu-open {
        left: 274px;
    }


    .mobile-sidebar-toggle.menu-open i {
        transform: rotate(180deg);
    }


    /* =====================================================
       MOBILE SIDEBAR
    ===================================================== */

    .dashboard-sidebar {
        position: fixed !important;

        top: 0 !important;
        left: 0 !important;

        width: 260px !important;
        max-width: 85vw;

        height: 100vh !important;

        margin: 0 !important;

        padding: 20px !important;

        box-sizing: border-box;

        z-index: 10001;

        background: var(--bg);

        border-radius: 0 18px 18px 0;

        transform: translateX(-110%);

        transition:
            transform .3s ease;

        overflow-y: auto;
        overflow-x: hidden;

        overscroll-behavior: contain;

        -webkit-overflow-scrolling: touch;
    }


    .dashboard-sidebar.mobile-open {
        transform: translateX(0);
    }


    .dashboard-nav {
        display: flex;

        flex-direction: column;

        gap: 5px;

        margin-top: 25px;
    }


    /* =====================================================
       SIDEBAR OVERLAY
    ===================================================== */

    .mobile-sidebar-overlay {
        display: block;

        position: fixed;

        inset: 0;

        z-index: 10000;

        background: rgba(0, 0, 0, .65);

        opacity: 0;

        visibility: hidden;

        pointer-events: none;

        transition:
            opacity .3s ease,
            visibility .3s ease;
    }


    .mobile-sidebar-overlay.mobile-visible {
        opacity: 1;

        visibility: visible;

        pointer-events: auto;
    }


    /* =====================================================
       TOUCH
    ===================================================== */

    .dashboard-sidebar,
    .dashboard-main {
        -webkit-overflow-scrolling: touch;
    }


    /* =====================================================
       EVENT SETTINGS
    ===================================================== */

    .event-settings-page {
        width: 100%;

        box-sizing: border-box;

        padding: 20px 0;
    }


    .event-settings-layout {
        width: 100%;

        flex-direction: column;

        gap: 18px;
    }


    .event-settings-sidebar {
        width: 100%;
        min-width: 0;

        position: sticky;

        top: 10px;

        z-index: 20;
    }


    .event-sidebar-nav {
        display: flex;

        gap: 6px;

        overflow-x: auto;

        padding-bottom: 4px;

        -webkit-overflow-scrolling: touch;

        scrollbar-width: none;
    }


    .event-sidebar-nav::-webkit-scrollbar {
        display: none;
    }


    .event-nav-item {
        width: auto;

        min-width: max-content;

        margin: 0;

        flex-shrink: 0;
    }


    .event-nav-item.active {
        box-shadow:
            inset 0 -3px 0 var(--primary);
    }
}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 650px) {

    .dashboard-page {
        padding: 12px 0 25px;
    }


    .dashboard-main {
        width: 100% !important;

        padding:
            0 12px 25px !important;
    }


    .dashboard-main .dashboard-view,
    .dashboard-main .dashboard-view.active-view {
        width: 100% !important;

        margin: 0 !important;

        padding: 0 !important;
    }


    /* =====================================================
       SIDEBAR BUTTON
    ===================================================== */

    .mobile-sidebar-toggle {
        top: 85px;

        left: 10px;

        width: 40px;
        height: 40px;
    }


    .mobile-sidebar-toggle.menu-open {
        left: 248px;
    }


    /* =====================================================
       WELCOME
    ===================================================== */

    .dashboard-welcome {
        width: 100%;

        min-height: auto;

        flex-direction: column;

        align-items: flex-start;

        gap: 22px;

        padding: 24px 20px;
    }


    .dashboard-welcome h1 {
        font-size: 1.55rem;
    }


    .dashboard-welcome p {
        font-size: .75rem;
    }


    .dashboard-primary-btn {
        width: 100%;

        box-sizing: border-box;
    }


    /* =====================================================
       STATS
    ===================================================== */

    .dashboard-stats {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));

        gap: 10px;

        margin-top: 12px;
    }


    .stat-card {
        padding: 14px;

        gap: 10px;
    }


    .stat-icon {
        width: 34px;
        height: 34px;
    }


    /* =====================================================
       SECTION HEADINGS
    ===================================================== */

    .section-heading {
        width: 100%;

        align-items: flex-start;

        gap: 12px;

        margin-bottom: 14px;
    }


    .section-heading h2 {
        font-size: 1.05rem;
    }


    /* =====================================================
       MATCHES
    ===================================================== */

    .match-row {
        grid-template-columns: 1fr;

        gap: 12px;

        padding: 15px;
    }


    .match-time {
        text-align: left;
    }


    .match-status {
        justify-self: start;
    }


    /* =====================================================
       GRIDS
    ===================================================== */

    .tournament-grid,
    .gamemate-grid,
    .team-grid {
        grid-template-columns: 1fr;
    }


    /* =====================================================
       TEAM FOOTER
    ===================================================== */

    .team-card-footer {
        flex-wrap: wrap;
    }


    /* =====================================================
       TOURNAMENT ACTIONS
    ===================================================== */

    .tournament-actions {
        flex-direction: column;
    }


    .tournament-actions .card-action {
        width: 100%;
    }


    /* =====================================================
       EVENT SETTINGS
    ===================================================== */

    .event-settings-page {
        padding: 15px 0;
    }


    .event-settings-header h1 {
        font-size: 24px;
    }


    .event-stat-grid {
        grid-template-columns: 1fr;
    }


    .event-info-grid {
        grid-template-columns: 1fr;
    }


    /* =====================================================
       EVENT ADMIN
    ===================================================== */

    .event-admin-heading {
        flex-direction: column;

        align-items: flex-start;
    }


    .admin-add-main-btn {
        width: 100%;
    }


    .event-admin-user {
        flex-wrap: wrap;
    }


    .admin-remove-btn {
        margin-left: auto;
    }


    .admin-popup-box {
        width: calc(100% - 20px);
    }
}


/* =========================================================
   SMALL PHONES
========================================================= */

@media (max-width: 450px) {

    .dashboard-main {
        padding:
            0 10px 20px !important;
    }


    .dashboard-stats {
        grid-template-columns: 1fr;
    }


    .dashboard-welcome {
        padding: 20px 16px;
    }


    .dashboard-welcome h1 {
        font-size: 1.4rem;
    }


    .stat-card {
        padding: 13px;
    }


    .event-admin-card {
        padding: 18px;
    }


    .event-admin-user {
        gap: 10px;
    }


    .event-admin-avatar {
        width: 38px;
        height: 38px;

        min-width: 38px;
    }
}


/* =========================================================
   VERY SMALL PHONES
========================================================= */

@media (max-width: 350px) {

    .dashboard-main {
        padding:
            0 8px 20px !important;
    }


    .mobile-sidebar-toggle.menu-open {
        left: 235px;
    }


    .dashboard-welcome h1 {
        font-size: 1.3rem;
    }
}


/* =========================================================
   TOURNAMENT DASHBOARD
========================================================= */

.event-settings-page {
    width: 100%;

    min-height: calc(100vh - 100px);

    padding: 25px 20px;

    box-sizing: border-box;
}


.event-settings-layout {
    width: 100%;

    max-width: 1450px;

    margin: 0 auto;

    display: flex;

    align-items: stretch;

    gap: 25px;

    min-height: calc(100vh - 150px);
}


/* =========================================================
   EVENT SIDEBAR
========================================================= */

.event-settings-sidebar {
    width: 245px;

    min-width: 245px;

    position: sticky;

    top: 25px;

    background: var(--surface-1);

    border: 1px solid var(--border);

    border-radius: 18px;

    overflow: hidden;
}


.event-sidebar-header {
    padding: 24px 20px;

    border-bottom: 1px solid var(--border);
}


.event-sidebar-header h3 {
    margin: 0;

    color: white;

    font-size: 17px;

    font-weight: 700;

    word-break: break-word;
}


.event-sidebar-header span {
    display: block;

    margin-top: 6px;

    color: var(--text-light);

    font-size: 11px;
}


.event-sidebar-nav {
    padding: 12px;
}


.event-nav-item {
    width: 100%;

    display: flex;

    align-items: center;

    gap: 12px;

    padding: 12px 14px;

    margin-bottom: 20px;

    border: 1px solid transparent;

    border-radius: 10px;

    background: transparent;

    color: var(--text-light);

    text-decoration: none;

    font-family: inherit;

    font-size: 13px;

    text-align: left;

    cursor: pointer;

    transition: .25s ease;

    box-sizing: border-box;
}


.event-nav-item span {
    width: 20px;

    text-align: center;

    font-size: 15px;
}


.event-nav-item:hover {
    background: rgba(255, 0, 0, .06);

    color: white;

    border-color: rgba(255, 0, 0, .15);
}


.event-nav-item.active {
    background: rgba(255, 0, 0, .10);

    color: var(--primary);

    border-color: rgba(255, 0, 0, .25);

    box-shadow:
        inset 3px 0 0 var(--primary);
}


/* =========================================================
   EVENT MAIN
========================================================= */

.event-settings-main {
    flex: 1;

    min-width: 0;
}


.event-settings-header {
    margin-bottom: 30px;
}


.event-settings-header h1 {
    margin: 0;

    color: white;

    font-size: 30px;

    font-weight: 700;

    letter-spacing: 1px;
}


.event-settings-header p {
    margin: 8px 0 0;

    color: var(--text-light);

    font-size: 14px;
}


/* =========================================================
   EVENT SECTIONS
========================================================= */

.event-section {
    display: none;

    animation:
        eventSectionIn .25s ease;
}

.event-section.active {
    display: block;
}


@keyframes eventSectionIn {

    from {
        opacity: 0;

        transform:
            translateY(8px);
    }

    to {
        opacity: 1;

        transform:
            translateY(0);
    }
}


/* =========================================================
   EVENT SECTION HEADING
========================================================= */

.event-section-heading {
    margin-bottom: 22px;
}


.event-section-heading h2 {
    margin: 0;

    color: white;

    font-size: 22px;

    font-weight: 700;
}


.event-section-heading p {
    margin: 6px 0 0;

    color: var(--text-light);

    font-size: 13px;
}


/* =========================================================
   EVENT STAT GRID
========================================================= */

.event-stat-grid {
    display: grid;

    grid-template-columns:
        repeat(3, minmax(0, 1fr));

    gap: 18px;

    margin-bottom: 25px;
}


.event-stat-card {
    padding: 23px;

    background: var(--surface-1);

    border: 1px solid var(--border);

    border-radius: 16px;

    transition: .25s ease;

    box-sizing: border-box;
}


.event-stat-card:hover {
    border-color: rgba(255, 0, 0, .35);

    transform:
        translateY(-2px);
}


.event-stat-label {
    display: block;

    margin-bottom: 10px;

    color: var(--text-light);

    font-size: 12px;

    text-transform: uppercase;

    letter-spacing: 1px;
}


.event-stat-card strong {
    display: block;

    color: white;

    font-size: 25px;

    font-weight: 700;
}


/* =========================================================
   EVENT INFORMATION
========================================================= */

.event-info-card {
    padding: 25px;

    background: var(--surface-1);

    border: 1px solid var(--border);

    border-radius: 18px;

    box-sizing: border-box;
}


.event-info-card h3 {
    margin: 0 0 22px;

    color: white;

    font-size: 17px;
}


.event-info-grid {
    display: grid;

    grid-template-columns:
        repeat(2, minmax(0, 1fr));

    gap: 20px;
}


.event-info-grid div {
    padding: 15px;

    background: #09090b;

    border: 1px solid var(--border);

    border-radius: 12px;

    min-width: 0;
}


.event-info-grid span {
    display: block;

    margin-bottom: 6px;

    color: var(--text-light);

    font-size: 11px;

    text-transform: uppercase;

    letter-spacing: 1px;
}


.event-info-grid strong {
    color: white;

    font-size: 14px;

    word-break: break-word;
}


/* =========================================================
   EVENT TEAM
========================================================= */

.event-team-name {
    color: white;

    font-weight: 600;
}


.event-team-badge {
    display: inline-block;

    margin: 2px 5px 2px 0;

    padding: 6px 10px;

    background: rgba(255, 0, 0, .08);

    border: 1px solid rgba(255, 0, 0, .20);

    border-radius: 7px;

    color: var(--primary);

    font-size: 11px;
}


/* =========================================================
   EVENT ENTER BUTTON
========================================================= */

.event-enter-btn {
    display: inline-block;

    padding: 7px 14px;

    background: #09090b;

    border: 1px solid var(--primary);

    border-radius: 8px;

    color: white;

    text-decoration: none;

    font-size: 11px;

    transition: .25s ease;
}


.event-enter-btn:hover {
    background: rgba(255, 0, 0, .10);

    color: var(--primary);

    box-shadow:
        0 0 12px rgba(255, 0, 0, .15);
}


/* =========================================================
   EVENT EMPTY STATE
========================================================= */

.event-empty-state {
    padding: 60px 20px;

    text-align: center;
}


.event-empty-state h5 {
    margin: 0;

    color: white;

    font-size: 15px;
}


.event-empty-state p {
    margin-top: 8px;

    color: var(--text-light);

    font-size: 12px;
}


.event-muted {
    color: var(--text-light);

    font-size: 12px;
}


/* =========================================================
   EVENT TABLE
========================================================= */

.event-settings-main .table-responsive {
    overflow-x: auto;

    width: 100%;

    -webkit-overflow-scrolling: touch;
}


/* =========================================================
   SCHEDULE MATCH
========================================================= */

.schedule-match {
    display: block;

    width: fit-content;

    margin-left: auto;

    margin-bottom: 3vh;
}


/* =========================================================
   EVENT ADMIN CARD
========================================================= */

.event-admin-card {
    margin-top: 24px;

    padding: 24px;

    border-radius: 14px;

    background: rgb(9 9 11);

    border: 1px solid rgba(255, 255, 255, 0.08);

    box-sizing: border-box;
}


.event-admin-heading {
    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 20px;

    margin-bottom: 22px;
}


.event-admin-heading h2 {
    margin: 4px 0 5px;

    font-size: 22px;

    font-weight: 700;
}


.event-admin-heading p {
    margin: 0;

    color: rgba(255, 255, 255, 0.5);

    font-size: 13px;
}


.event-admin-label {
    font-size: 10px;

    font-weight: 700;

    letter-spacing: 1.5px;

    color: #888;
}


/* =========================================================
   ADD ADMIN BUTTON
========================================================= */

.admin-add-main-btn {
    border: 1px solid var(--primary);

    cursor: pointer;

    padding: 10px 16px;

    border-radius: 8px;

    background: rgb(9 9 11);

    color: white;

    font-size: 12px;

    font-weight: 600;

    transition: all .2s ease;
}


.admin-add-main-btn:hover {
    background: rgba(255, 0, 0, .10);

    transform:
        translateY(-1px);
}


/* =========================================================
   ADMIN LIST
========================================================= */

.event-admin-list {
    display: flex;

    flex-direction: column;

    gap: 10px;
}


.event-admin-user {
    display: flex;

    align-items: center;

    gap: 13px;

    padding: 13px 15px;

    border-radius: 10px;

    background: rgb(9 9 11);

    border: 1px solid rgba(255, 255, 255, 0.055);

    transition: .2s ease;

    box-sizing: border-box;
}


.event-admin-user:hover {
    background: rgba(255, 255, 255, .045);
}


/* =========================================================
   ADMIN AVATAR
========================================================= */

.event-admin-avatar {
    width: 42px;
    height: 42px;

    min-width: 42px;

    border-radius: 50%;

    display: flex;

    align-items: center;

    justify-content: center;

    background: rgba(255, 255, 255, .08);

    color: white;

    font-size: 16px;

    font-weight: 700;
}


/* =========================================================
   ADMIN USER INFO
========================================================= */

.event-admin-user-info {
    display: flex;

    flex-direction: column;

    gap: 3px;

    flex: 1;

    min-width: 0;
}


.event-admin-user-info strong {
    color: white;

    font-size: 14px;

    overflow: hidden;

    text-overflow: ellipsis;

    white-space: nowrap;
}


.event-admin-user-info span {
    color: rgba(255, 255, 255, .42);

    font-size: 11px;
}


/* =========================================================
   ADMIN BADGES
========================================================= */

.event-owner-badge,
.event-admin-badge {
    padding: 5px 9px;

    border-radius: 6px;

    background: rgba(255, 0, 0, .10);

    font-size: 9px;

    font-weight: 800;

    letter-spacing: 1px;

    white-space: nowrap;
}


.event-owner-badge {
    color: rgba(192, 178, 178, .7);
}


.event-admin-badge {
    color: #bcc5c0;
}


/* =========================================================
   REMOVE ADMIN
========================================================= */

.admin-remove-form {
    margin: 0;
}


.admin-remove-btn {
    border: 1px solid var(--primary);

    cursor: pointer;

    padding: 7px 11px;

    border-radius: 7px;

    background: rgb(9 9 11);

    color: #978e8e;

    font-size: 10px;

    font-weight: 600;

    transition: .2s ease;
}


.admin-remove-btn:hover {
    background: rgba(180, 51, 51, .16);

    color: #ccc0c0;
}


/* =========================================================
   EMPTY ADMIN
========================================================= */

.event-admin-empty {
    padding: 25px;

    text-align: center;

    border-radius: 9px;

    border: 1px dashed rgba(255, 255, 255, .08);

    color: rgba(255, 255, 255, .4);

    font-size: 13px;
}


/* =========================================================
   ADMIN POPUP
========================================================= */

.admin-popup {
    position: fixed;

    inset: 0;

    z-index: 99999;

    display: none;

    align-items: center;

    justify-content: center;
}


.admin-popup.active {
    display: flex;
}


.admin-popup-backdrop {
    position: absolute;

    inset: 0;

    background: rgba(0, 0, 0, .78);

    backdrop-filter: blur(6px);
}


.admin-popup-box {
    position: relative;

    z-index: 2;

    width: min(500px, calc(100% - 30px));

    max-height: 80vh;

    overflow: hidden;

    border-radius: 16px;

    background: #151515;

    border: 1px solid rgba(255, 255, 255, .1);

    box-shadow:
        0 25px 80px rgba(0, 0, 0, .65);

    animation:
        adminPopupShow .2s ease;
}


@keyframes adminPopupShow {

    from {
        opacity: 0;

        transform:
            translateY(12px)
            scale(.97);
    }

    to {
        opacity: 1;

        transform:
            translateY(0)
            scale(1);
    }
}


/* =========================================================
   POPUP HEADER
========================================================= */

.admin-popup-header {
    display: flex;

    align-items: flex-start;

    justify-content: space-between;

    gap: 15px;

    padding: 22px;

    border-bottom: 1px solid rgba(255, 255, 255, .07);
}


.admin-popup-header h3 {
    margin: 4px 0 5px;

    color: white;

    font-size: 19px;

    font-weight: 700;
}


.admin-popup-header p {
    margin: 0;

    color: rgba(255, 255, 255, .48);

    font-size: 12px;
}


/* =========================================================
   POPUP CLOSE
========================================================= */

.admin-popup-close {
    width: 34px;
    height: 34px;

    flex-shrink: 0;

    border: none;

    border-radius: 8px;

    background: rgba(255, 255, 255, .05);

    color: rgba(255, 255, 255, .65);

    cursor: pointer;

    font-size: 20px;

    line-height: 1;

    transition: .2s ease;
}


.admin-popup-close:hover {
    background: rgba(255, 255, 255, .1);

    color: white;
}


/* =========================================================
   POPUP LIST
========================================================= */

.admin-popup-list {
    padding: 10px;

    max-height: 55vh;

    overflow-y: auto;

    -webkit-overflow-scrolling: touch;
}


.admin-popup-list::-webkit-scrollbar {
    width: 5px;
}


.admin-popup-list::-webkit-scrollbar-track {
    background: transparent;
}


.admin-popup-list::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, .15);

    border-radius: 10px;
}


/* =========================================================
   GAME MATE ROW
========================================================= */

.admin-mate-row {
    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 15px;

    padding: 12px;

    border-radius: 10px;

    transition: .2s ease;
}


.admin-mate-row:hover {
    background: rgba(255, 255, 255, .04);
}


/* =========================================================
   GAME MATE INFO
========================================================= */

.admin-mate-info {
    display: flex;

    align-items: center;

    gap: 12px;

    min-width: 0;

    flex: 1;
}


.admin-mate-info > div:last-child {
    display: flex;

    flex-direction: column;

    gap: 3px;

    min-width: 0;
}


.admin-mate-info strong {
    color: white;

    font-size: 14px;

    overflow: hidden;

    text-overflow: ellipsis;

    white-space: nowrap;
}


.admin-mate-info span {
    color: rgba(255, 255, 255, .42);

    font-size: 11px;
}


/* =========================================================
   GAME MATE AVATAR
========================================================= */

.admin-mate-avatar {
    width: 40px;
    height: 40px;

    min-width: 40px;

    border-radius: 50%;

    display: flex;

    align-items: center;

    justify-content: center;

    background: rgba(255, 255, 255, .08);

    color: white;

    font-size: 15px;

    font-weight: 700;
}


/* =========================================================
   POPUP ADD BUTTON
========================================================= */

.admin-add-btn {
    border: none;

    cursor: pointer;

    padding: 8px 12px;

    border-radius: 7px;

    background: rgba(255, 255, 255, .08);

    color: white;

    font-size: 11px;

    font-weight: 600;

    transition: .2s ease;
}


.admin-add-btn:hover {
    background: rgba(255, 255, 255, .15);
}


/* =========================================================
   ALREADY ADDED
========================================================= */

.admin-added {
    display: flex;

    align-items: center;

    gap: 5px;

    padding: 7px 10px;

    border-radius: 7px;

    background: rgba(80, 200, 120, .1);

    color: #70d89a;

    font-size: 10px;

    font-weight: 700;
}


/* =========================================================
   EMPTY GAME MATES
========================================================= */

.admin-popup-empty {
    padding: 45px 20px;

    text-align: center;
}


.admin-popup-empty-icon {
    font-size: 30px;

    margin-bottom: 12px;

    opacity: .5;
}


.admin-popup-empty h4 {
    margin: 0 0 6px;

    color: white;

    font-size: 15px;
}


.admin-popup-empty p {
    margin: 0;

    color: rgba(255, 255, 255, .4);

    font-size: 12px;
}


/* =========================================================
   PREVENT BACKGROUND SCROLL
========================================================= */

body.popup-open {
    overflow: hidden;
}


/* =========================================================
   EVENT MOBILE OVERRIDES
========================================================= */

@media (max-width: 900px) {

    .event-settings-layout {
        flex-direction: column;
    }


    .event-settings-sidebar {
        width: 100%;

        min-width: 0;

        position: sticky;

        top: 10px;

        z-index: 20;
    }


    .event-sidebar-nav {
        display: flex;

        gap: 6px;

        overflow-x: auto;

        padding-bottom: 4px;

        -webkit-overflow-scrolling: touch;

        scrollbar-width: none;
    }


    .event-sidebar-nav::-webkit-scrollbar {
        display: none;
    }


    .event-nav-item {
        width: auto;

        min-width: max-content;

        margin: 0;

        flex-shrink: 0;
    }


    .event-nav-item.active {
        box-shadow:
            inset 0 -3px 0 var(--primary);
    }
}


/* =========================================================
   EVENT MOBILE
========================================================= */

@media (max-width: 650px) {

    .event-settings-page {
        padding: 15px 0;
    }


    .event-stat-grid {
        grid-template-columns: 1fr;
    }


    .event-info-grid {
        grid-template-columns: 1fr;
    }


    .event-settings-header h1 {
        font-size: 25px;
    }


    .event-info-card {
        padding: 18px;
    }


    .event-stat-card {
        padding: 18px;
    }


    .event-admin-heading {
        align-items: flex-start;

        flex-direction: column;
    }


    .admin-add-main-btn {
        width: 100%;
    }


    .event-admin-user {
        flex-wrap: wrap;
    }


    .admin-remove-btn {
        margin-left: auto;
    }


    .admin-popup-box {
        width: calc(100% - 20px);
    }


    .admin-mate-row {
        align-items: flex-start;
    }


    .admin-mate-info {
        min-width: 0;
    }


    .admin-add-btn,
    .admin-added {
        flex-shrink: 0;
    }
}


/* =========================================================
   TOUCH DEVICES
========================================================= */

@media (hover: none) and (pointer: coarse) {

    .dashboard-nav-item,
    .small-action-btn,
    .dashboard-primary-btn,
    .add-gamemate-btn,
    .admin-add-main-btn,
    .admin-remove-btn,
    .admin-add-btn {
        min-height: 42px;
    }


    .mobile-sidebar-toggle {
        touch-action: manipulation;
    }


    .dashboard-sidebar {
        touch-action: pan-y;
    }


    .dashboard-main {
        touch-action: pan-y;
    }
}

/* =========================================================
   DASHBOARD CHARTS, GAMIFIED STATS & RESPONSIVE HUB
========================================================= */

.dashboard-quick-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin-top: 20px;
}

.dashboard-chip-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: #000000;
    border: 1px solid var(--border);
    border-radius: 30px;
    color: #ffffff !important;
    font-size: 0.74rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.25s ease;
    box-shadow: 0 0 6px rgba(255, 26, 26, 0.15);
}

.dashboard-chip-btn:hover {
    background: rgba(255, 26, 26, 0.12);
    border-color: #ff4d4d;
    color: #ffffff !important;
    box-shadow: 0 0 14px rgba(255, 26, 26, 0.45);
    transform: translateY(-2px);
}

.dashboard-chip-btn i {
    color: var(--neon);
    font-size: 0.82rem;
}

.stat-card-enhanced {
    position: relative;
    overflow: hidden;
}

.stat-card-enhanced .stat-trend {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 0.62rem;
    font-weight: 600;
    color: #22c55e;
    margin-top: 4px;
}

.stat-card-enhanced .stat-trend.accent-neon {
    color: #ff4d4d;
}

.stat-card-enhanced .stat-sublink {
    display: inline-block;
    margin-top: 5px;
    font-size: 0.62rem;
    color: #ff4d4d;
    text-decoration: underline;
    transition: color 0.2s;
}

.stat-card-enhanced .stat-sublink:hover {
    color: #ffffff;
}

.dashboard-charts-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    margin-top: 24px;
    width: 100%;
}

.dashboard-charts-grid.charts-3-col {
    grid-template-columns: 1fr 1.35fr;
}

.dashboard-chart-card {
    background: #000000;
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 22px;
    position: relative;
    box-sizing: border-box;
    transition: border-color 0.25s ease, box-shadow 0.25s ease;
    display: flex;
    flex-direction: column;
}

.dashboard-chart-card:hover {
    border-color: #ff4d4d;
    box-shadow: 0 0 18px rgba(255, 26, 26, 0.22);
}

.dashboard-chart-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
    gap: 12px;
}

.dashboard-chart-title {
    display: flex;
    align-items: center;
    gap: 10px;
}

.dashboard-chart-title i {
    color: var(--neon);
    font-size: 1rem;
}

.dashboard-chart-title h3 {
    margin: 0;
    font-size: 0.95rem;
    font-weight: 700;
    font-family: 'Aclonica', sans-serif;
    letter-spacing: 0.5px;
    color: #ffffff;
}

.dashboard-chart-badge {
    font-size: 0.62rem;
    font-weight: 700;
    padding: 3px 9px;
    border-radius: 20px;
    background: rgba(255, 26, 26, 0.15);
    color: #ff4d4d;
    border: 1px solid rgba(255, 26, 26, 0.4);
    letter-spacing: 1px;
    text-transform: uppercase;
}

.dashboard-chart-wrapper {
    position: relative;
    width: 100%;
    height: 250px;
    min-height: 220px;
    flex: 1;
}

.dashboard-chart-footer {
    display: flex;
    align-items: center;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 16px;
    padding-top: 14px;
    border-top: 1px solid rgba(255, 26, 26, 0.2);
}

.chart-legend-pill {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.72rem;
    color: #c0c2cc;
}

.chart-legend-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    display: inline-block;
}

.dashboard-dual-grid {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 20px;
    margin-top: 32px;
    width: 100%;
}

@media (max-width: 1024px) {
    .dashboard-charts-grid,
    .dashboard-charts-grid.charts-3-col,
    .dashboard-dual-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 650px) {
    .dashboard-chart-wrapper {
        height: 200px;
    }
    .dashboard-chart-card {
        padding: 16px;
    }
    .dashboard-dual-grid {
        gap: 16px;
    }
    .dashboard-quick-actions {
        gap: 8px;
    }
    .dashboard-chip-btn {
        width: 100%;
        justify-content: center;
    }
}


