:root {
    /* Code Ninjas Official Brand Colors */
    --cn-green: #04B88F;
    /* Caribbean Green - Primary */
    --cn-midnight: #002340;
    /* Midnight - Dark backgrounds */
    --cn-white: #FFFFFF;
    /* White */

    /* Application Colors */
    --bg-dark: #001a2e;
    /* Darker midnight variant */
    --bg-sidebar: #001525;
    /* Even darker for sidebar */
    --card-bg: #002952;
    /* Card backgrounds */
    --text-main: #ffffff;
    --text-muted: #8bb8d4;

    /* Accent Colors - Using CN Green as primary */
    --color-home: #04B88F;
    /* Caribbean Green */
    --color-games: #04B88F;
    /* Caribbean Green */
    --color-jams: #f1c40f;
    /* Gold for events */
    --color-catalog: #04B88F;
    /* Caribbean Green */
    --color-queue: #e67e22;
    /* Orange for queue */
    --color-impact: #04B88F;
    /* Caribbean Green */
    --color-academies: #e74c3c;
    --color-leaderboard: #04B88F;
    /* Caribbean Green */
    --color-admin: #002340;
    /* Midnight for admin */
    --color-admin-button: #04B88F;
    /* Caribbean Green */

    /* Coin Colors */
    --coin-silver: #bdc3c7;
    --coin-gold: #f1c40f;
    --coin-obsidian: #04B88F;
    /* Use CN green for obsidian glow */

    /* Belt Colors */
    --belt-white: #ffffff;
    --belt-yellow: #f1c40f;
    --belt-orange: #e67e22;
    --belt-green: #04B88F;
    /* CN Green instead of regular green */
    --belt-blue: #3498db;
    --belt-purple: #9b59b6;
    --belt-brown: #795548;
    --belt-red: #e74c3c;
    --belt-black: #333333;

    /* --- M3 Design System Tokens --- */
    --m3-surface: #001a2e;
    --m3-surface-low: #001525;
    --m3-surface-container: #002952;
    --m3-surface-high: #003666;
    --m3-surface-highest: #1a2744;

    --m3-shape-small: 8px;
    --m3-shape-medium: 12px;
    --m3-shape-large: 16px;
    --m3-shape-xl: 28px;
    --m3-shape-pill: 100px;

    --m3-elevation-1: 0 1px 2px 0 rgba(0, 0, 0, 0.3), 0 1px 3px 1px rgba(0, 0, 0, 0.15);
    --m3-elevation-2: 0 1px 2px 0 rgba(0, 0, 0, 0.3), 0 2px 6px 2px rgba(0, 0, 0, 0.15);
    --m3-elevation-3: 0 1px 3px 0 rgba(0, 0, 0, 0.3), 0 4px 8px 3px rgba(0, 0, 0, 0.15);
    --m3-elevation-4: 0 2px 3px 0 rgba(0, 0, 0, 0.3), 0 6px 10px 4px rgba(0, 0, 0, 0.15);

    --m3-transition: 0.2s cubic-bezier(0.2, 0, 0, 1);
}

* {
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-main);
    margin: 0;
    padding: 0;
    display: flex;
    height: 100vh;
    overflow: hidden;
}

/* LOADING OVERLAY */
#loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 26, 46, 0.95);
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.loading-content {
    text-align: center;
}

.loading-spinner {
    width: 60px;
    height: 60px;
    border: 4px solid rgba(4, 184, 143, 0.2);
    border-top-color: var(--cn-green);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

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

.loading-text {
    color: var(--cn-green);
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0;
    letter-spacing: 1px;
}

/* SCROLLBARS */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--color-home);
}

/* SIDEBAR */
.sidebar {
    width: 90px;
    background-color: var(--bg-sidebar);
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: 10px;
    border-right: 1px solid #1f2235;
    z-index: 10;
    flex-shrink: 0;
}

.logo-container {
    width: 60px;
    height: 60px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: default;
    border-radius: 50%;
    transition: 0.3s;
    user-select: none;
}

.cn-logo {
    font-size: 2rem;
    color: #fff;
}

.nav-item {
    width: calc(100% - 10px);
    margin: 5px;
    padding: 12px 5px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    cursor: pointer;
    transition: var(--m3-transition);
    border-radius: var(--m3-shape-pill);
    text-decoration: none;
    text-align: center;
}

.nav-item i {
    font-size: 1.3rem;
    margin-bottom: 6px;
}

.nav-item span {
    font-size: 0.6rem;
    font-weight: 600;
    text-transform: uppercase;
    line-height: 1.1;
}

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

.nav-item.home-theme.active {
    color: var(--cn-midnight);
    background: var(--color-home);
}

.nav-item.games-theme.active {
    color: var(--cn-midnight);
    background: var(--color-games);
}

.nav-item.jams-theme.active {
    color: var(--cn-midnight);
    background: var(--color-jams);
}

.nav-item.catalog-theme.active {
    color: var(--cn-midnight);
    background: var(--color-catalog);
}

.nav-item.queue-theme.active {
    color: var(--cn-midnight);
    background: var(--color-queue);
}

.nav-item.lb-theme.active {
    color: var(--cn-midnight);
    background: var(--color-leaderboard);
}

.nav-spacer {
    flex-grow: 1;
}

.nav-link-ext {
    width: 100%;
    padding: 15px 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    opacity: 0.7;
    transition: 0.3s;
    margin-bottom: 5px;
}

.nav-link-ext:hover {
    opacity: 1;
    transform: scale(1.05);
}

.impact-link {
    color: var(--color-impact);
}

.academies-link {
    color: var(--color-academies);
}

/* MAIN CONTENT */
.main-wrapper {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background: radial-gradient(circle at top right, #003d5c 0%, var(--cn-midnight) 60%);
    position: relative;
}

header {
    padding: 20px 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.welcome-section h1 {
    margin: 0;
    font-size: 1.8rem;
    font-weight: 600;
}

.welcome-section p {
    margin: 5px 0 0;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.location-badge {
    margin-top: 10px;
    display: inline-flex;
    align-items: center;
    color: var(--text-main);
    font-weight: 600;
}

.location-badge i {
    margin-right: 8px;
    color: var(--color-home);
}

.content-area {
    flex: 1;
    padding: 0 40px 40px 40px;
    overflow-y: hidden;
    display: flex;
    flex-direction: column;
}

.section-title {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-shrink: 0;
}

.tab-content {
    display: none;
    animation: fadeIn 0.3s ease-in-out;
    height: 100%;
    overflow-y: auto;
    padding-right: 10px;
}

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

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

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

.home-grid {
    display: grid;
    grid-template-columns: 3fr 1fr;
    gap: 25px;
    align-items: start;
    height: 100%;
}

.news-column {
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: hidden;
}

.scroll-container {
    overflow-y: auto;
    padding-right: 5px;
}

#news-feed {
    max-height: 35vh;
    margin-bottom: 20px;
}

#rules-feed {
    max-height: 35vh;
}

.rules-group-header {
    width: 100%;
    margin: 20px 0 10px 0;
    color: var(--color-home);
    border-bottom: 1px solid #333;
    padding-bottom: 5px;
}

.rules-group-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.list-card {
    background-color: var(--card-bg);
    border-radius: var(--m3-shape-large);
    padding: 20px;
    margin-bottom: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-left: 4px solid transparent;
    box-shadow: var(--m3-elevation-1);
    transition: var(--m3-transition);
}

.list-card:hover {
    transform: translateX(5px);
    background-color: var(--m3-surface-high);
    box-shadow: var(--m3-elevation-2);
}

.card-info h3 {
    margin: 0 0 5px 0;
    font-size: 1rem;
    color: white;
}

.card-info p {
    margin: 0;
    font-size: 0.8rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.status-badge {
    font-size: 0.7rem;
    font-weight: 600;
    padding: 4px 8px;
    border-radius: 4px;
    text-transform: uppercase;
    white-space: nowrap;
}

.coins-column {
    height: 100%;
}

.coin-panel {
    background-color: var(--card-bg);
    border-radius: var(--m3-shape-large);
    padding: 20px;
    border-top: 4px solid var(--color-jams);
    box-shadow: var(--m3-elevation-2);
    height: 100%;
    overflow-y: auto;
}

.coin-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.coin-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    font-size: 0.9rem;
    color: #ccc;
}

/* === UPDATED COIN BADGES === */
.coin-val {
    font-weight: bold;
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 0.8rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 30px;
    gap: 5px;
}

.coin-val i {
    font-size: 0.7rem;
}

.coin-val.silver {
    color: var(--coin-silver);
    border: 1px solid var(--coin-silver);
    background: rgba(189, 195, 199, 0.1);
}

.coin-val.gold {
    color: var(--coin-gold);
    border: 1px solid var(--coin-gold);
    background: rgba(241, 196, 15, 0.1);
}

.coin-val.obsidian {
    color: white;
    border: 1px solid var(--coin-obsidian);
    background: linear-gradient(135deg, #1a0b2e 0%, #4a1c60 100%);
    box-shadow: 0 0 8px var(--coin-obsidian);
    text-shadow: 0 0 3px var(--coin-obsidian);
}

/* --- CHALLENGES STYLES --- */
.challenges-scroll-list {
    display: flex;
    gap: 15px;
    overflow-x: auto;
    padding-bottom: 15px;
    padding-left: 2px;
    scrollbar-width: thin;
    scrollbar-color: var(--color-games) #161932;
}

.challenges-scroll-list::-webkit-scrollbar {
    height: 6px;
}

.challenges-scroll-list::-webkit-scrollbar-track {
    background: #161932;
    border-radius: 3px;
}

.challenges-scroll-list::-webkit-scrollbar-thumb {
    background: var(--color-games);
    border-radius: 3px;
}

.challenge-card {
    background: var(--card-bg);
    min-width: 380px;
    border-radius: var(--m3-shape-large);
    padding: 20px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: var(--m3-elevation-1);
    display: flex;
    flex-direction: row;
    align-items: center;
    text-align: left;
    transition: var(--m3-transition);
    position: relative;
    border-left: 5px solid var(--color-games);
    gap: 15px;
}

.challenge-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--m3-elevation-3);
    background-color: var(--m3-surface-high);
}

.chal-icon {
    font-size: 1.5rem;
    color: white;
    background: rgba(255, 255, 255, 0.05);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0;
    border: 1px solid var(--color-games);
    flex-shrink: 0;
}

.chal-info {
    flex-grow: 1;
}

.chal-info h4 {
    margin: 0 0 2px 0;
    color: white;
    font-size: 1rem;
    text-transform: uppercase;
}

.chal-info p {
    margin: 0 0 4px 0;
    color: #aaa;
    font-size: 0.8rem;
    line-height: 1.2;
}

.chal-time {
    font-size: 0.7rem;
    color: var(--color-games);
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 5px;
    opacity: 0.8;
}

.chal-reward {
    margin-top: 0;
    background: #f39c12;
    color: black;
    font-weight: 800;
    padding: 5px 10px;
    border-radius: 6px;
    font-size: 0.8rem;
    white-space: nowrap;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

/* --- GAMES TAB LAYOUT --- */
.games-layout {
    display: grid;
    grid-template-columns: 3fr 1fr;
    gap: 25px;
    height: 100%;
    overflow: hidden;
}

.games-main-col {
    overflow-y: auto;
    padding-right: 10px;
}

.games-side-col {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 12px;
    padding: 15px;
    border: 1px solid #333;
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: hidden;
}

.games-history-list {
    overflow-y: auto;
    flex-grow: 1;
}

.game-hero {
    width: 100%;
    height: 250px;
    border-radius: 12px;
    background-size: cover;
    background-position: center;
    position: relative;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    overflow: hidden;
    margin-bottom: 20px;
    border: 1px solid #444;
}

.game-hero-content {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0.6) 60%, transparent 100%);
    padding: 20px;
}

.game-hero-content h1 {
    margin: 0;
    font-size: 2rem;
    color: white;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
}

.game-hero-content p {
    margin: 5px 0 0 0;
    color: #ccc;
    font-size: 0.9rem;
}

.game-lb-table {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.game-lb-row {
    display: flex;
    align-items: center;
    background: var(--card-bg);
    padding: 12px 20px;
    border-radius: var(--m3-shape-large);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-left: 4px solid #444;
    transition: var(--m3-transition);
    box-shadow: var(--m3-elevation-1);
}

.game-lb-row:hover {
    transform: translateX(5px);
    background: var(--m3-surface-high);
    box-shadow: var(--m3-elevation-2);
}

.game-lb-row:nth-child(1) {
    border-color: gold;
    background: linear-gradient(90deg, rgba(255, 215, 0, 0.1), transparent);
}

.game-lb-row:nth-child(2) {
    border-color: silver;
    background: linear-gradient(90deg, rgba(192, 192, 192, 0.05), transparent);
}

.game-lb-row:nth-child(3) {
    border-color: #cd7f32;
    background: linear-gradient(90deg, rgba(205, 127, 50, 0.05), transparent);
}

.g-rank {
    font-weight: bold;
    width: 40px;
    color: #888;
    font-size: 1.1rem;
}

.game-lb-row:nth-child(1) .g-rank {
    color: gold;
}

.game-lb-row:nth-child(2) .g-rank {
    color: silver;
}

.game-lb-row:nth-child(3) .g-rank {
    color: #cd7f32;
}

.g-name {
    flex-grow: 1;
    font-weight: 600;
    color: white;
}

.g-score {
    font-weight: bold;
    color: var(--color-games);
    margin-right: 20px;
    font-size: 1.1rem;
}

.g-prize {
    display: flex;
    align-items: center;
    min-width: 60px;
    justify-content: flex-end;
}

/* --- GAME JAM CAROUSEL --- */
.jam-carousel-container {
    position: relative;
    max-width: 1000px;
    margin: 0 auto 60px auto;
    aspect-ratio: 8.5 / 3.91;
    background: transparent;
    border-radius: 0;
    overflow: visible;
}

.jam-carousel-track {
    position: relative;
    width: 100%;
    height: 100%;
}

.jam-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: none;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.jam-slide.active {
    display: block;
    opacity: 1;
    z-index: 2;
}

.jam-hero-image {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    position: relative;
}

.jam-top-title {
    position: absolute;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    color: white;
    font-size: 2rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 3px;
    z-index: 15;
    text-align: center;
    width: 90%;
    text-shadow: 0 4px 10px rgba(0, 0, 0, 0.9);
    pointer-events: none;
}

.jam-content-box {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translate(-50%, 50%);
    width: 80%;
    background: #1a1d3a;
    border: 1px solid #34495e;
    border-radius: 12px;
    padding: 25px;
    text-align: center;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.8);
    z-index: 20;
}

.jam-type-badge {
    background: var(--color-jams);
    color: black;
    font-weight: bold;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 0.8rem;
    text-transform: uppercase;
    display: inline-block;
    margin-bottom: 10px;
}

.jam-header {
    font-size: 1.8rem;
    margin: 10px 0;
    color: white;
    font-weight: 800;
    text-transform: uppercase;
    line-height: 1;
}

.jam-desc {
    font-size: 1rem;
    color: #ccc;
    margin: 0 0 8px 0;
}

.jam-details {
    font-size: 0.9rem;
    font-weight: bold;
    letter-spacing: 0.5px;
}

.highlight-text {
    text-shadow: 0 0 15px currentColor;
}

.carousel-btn {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 50px;
    background: rgba(0, 0, 0, 0.2);
    color: white;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 20;
    transition: 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-btn:hover {
    background: rgba(241, 196, 15, 0.9);
    color: black;
}

.carousel-btn.prev {
    left: -60px;
    border-radius: 8px 0 0 8px;
}

.carousel-btn.next {
    right: -60px;
    border-radius: 0 8px 8px 0;
}

.winner-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 12px;
    background: rgba(0, 0, 0, 0.85);
    z-index: 5;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(8px);
    animation: fadeIn 0.5s;
}

.winner-title {
    font-size: 2.5rem;
    margin-bottom: 30px;
    text-transform: uppercase;
    letter-spacing: 4px;
}

.winner-avatars {
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
    justify-content: center;
}

.winner-card {
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid gold;
    padding: 20px 30px;
    border-radius: 15px;
    text-align: center;
    min-width: 160px;
    transition: 0.3s;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

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

.winner-card i {
    font-size: 2.5rem;
    margin-bottom: 15px;
    display: block;
}

.winner-card span {
    font-weight: bold;
    color: white;
    font-size: 1.2rem;
}

.past-jams-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    padding-bottom: 40px;
    margin-top: 80px;
}

.past-jam-card {
    background: var(--card-bg);
    border-radius: 10px;
    overflow: hidden;
    cursor: pointer;
    transition: 0.3s;
    border: 1px solid #333;
}

.past-jam-card:hover {
    transform: translateY(-5px);
    border-color: var(--color-jams);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.pj-img {
    height: 140px;
    background-size: cover;
    background-position: center;
    position: relative;
}

.pj-info {
    padding: 15px;
}

.pj-info h4 {
    margin: 0 0 5px 0;
    color: white;
    font-size: 1rem;
}

.pj-info p {
    margin: 0;
    color: #888;
    font-size: 0.8rem;
}

/* --- CATALOG & MODALS --- */
.tier-tabs {
    display: flex;
    margin-bottom: 20px;
    gap: 10px;
    flex-wrap: wrap;
    flex-shrink: 0;
}

.tier-btn {
    background: var(--card-bg);
    border: none;
    color: var(--text-muted);
    padding: 10px 20px;
    border-radius: 20px;
    cursor: pointer;
    font-weight: 600;
    transition: 0.3s;
}

.tier-btn:hover {
    background: #2a2e45;
    color: white;
}

.tier-btn.active {
    background: var(--color-catalog);
    color: white;
    box-shadow: 0 0 10px rgba(155, 89, 182, 0.4);
}

.store-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    padding-bottom: 20px;
}

.store-card {
    background-color: var(--card-bg);
    border-radius: var(--m3-shape-large);
    padding: 20px;
    display: flex;
    align-items: center;
    transition: var(--m3-transition);
    border: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: var(--m3-elevation-1);
}

.store-card:hover {
    transform: translateY(-5px);
    border-color: var(--color-catalog);
    box-shadow: var(--m3-elevation-3);
    background-color: var(--m3-surface-high);
}

.store-icon-circle {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: #0e1025;
    border: 2px solid var(--color-catalog);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    flex-shrink: 0;
    overflow: hidden;
}

.store-icon-circle i {
    font-size: 1.5rem;
    color: white;
}

.store-icon-circle img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.store-info {
    flex-grow: 1;
}

.store-info h4 {
    margin: 0 0 5px 0;
    font-size: 1rem;
    color: white;
    font-weight: 600;
}

.store-info p {
    margin: 0;
    font-size: 0.8rem;
    color: var(--color-games);
    display: flex;
    align-items: center;
}

.store-action {
    margin-left: 10px;
}

.btn-req {
    background: var(--color-catalog);
    color: white;
    border: none;
    padding: 8px 12px;
    border-radius: var(--m3-shape-pill);
    cursor: pointer;
    font-size: 0.7rem;
    font-weight: bold;
    text-transform: uppercase;
    transition: var(--m3-transition);
}

.btn-req:hover {
    background: #8e44ad;
}

/* Limited Time Glow */
@keyframes glow-pulse {
    0% {
        box-shadow: 0 0 5px #e74c3c, 0 0 10px #e74c3c;
        border-color: #e74c3c;
    }

    50% {
        box-shadow: 0 0 20px #ff6b6b, 0 0 30px #ff6b6b;
        border-color: #ff6b6b;
    }

    100% {
        box-shadow: 0 0 5px #e74c3c, 0 0 10px #e74c3c;
        border-color: #e74c3c;
    }
}

.limited-card {
    animation: glow-pulse 2s infinite;
    background: linear-gradient(135deg, var(--card-bg) 0%, rgba(231, 76, 60, 0.1) 100%);
    border: 1px solid #e74c3c;
}

.badge-limited {
    font-size: 0.6rem;
    color: white;
    background: #e74c3c;
    padding: 2px 6px;
    border-radius: 3px;
    margin-left: 5px;
    font-weight: bold;
    box-shadow: 0 0 5px #e74c3c;
    animation: fadeIn 0.5s ease-in-out;
}

/* Queue Styles */
.queue-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.queue-card {
    background-color: var(--card-bg);
    border-radius: var(--m3-shape-large);
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-left: 4px solid #444;
    transition: var(--m3-transition);
    box-shadow: var(--m3-elevation-1);
}

.queue-card:hover {
    background-color: var(--m3-surface-high);
    box-shadow: var(--m3-elevation-2);
}

.queue-card.ready-pickup {
    background-color: rgba(46, 204, 113, 0.15);
    border-left-color: var(--belt-green);
    border: 1px solid var(--belt-green);
}

.queue-card.ready-pickup .q-status {
    color: var(--belt-green);
    font-weight: 800;
    font-size: 1rem;
}

.q-left {
    display: flex;
    align-items: center;
    gap: 20px;
}

.q-number {
    width: 40px;
    height: 40px;
    background: #0e1025;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    color: #aaa;
    border: 2px solid #333;
}

.q-info h3 {
    margin: 0;
    font-size: 1.1rem;
    color: white;
}

.q-info p {
    margin: 4px 0 0 0;
    font-size: 0.85rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.q-status {
    font-weight: bold;
    font-size: 0.8rem;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 10px;
}

.status-waiting-payment {
    color: #e74c3c;
}

.status-waiting-print {
    color: #3498db;
}

.status-printing {
    color: #9b59b6;
}

.status-ready {
    color: #2ecc71;
}

.printing-anim {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        opacity: 0.6;
    }

    50% {
        opacity: 1;
    }

    100% {
        opacity: 0.6;
    }
}

/* Leaderboard Styles */
.lb-container {
    padding-top: 20px;
}

.lb-top-3 {
    display: flex;
    justify-content: center;
    align-items: flex-end;
    gap: 20px;
    margin-bottom: 40px;
}

.lb-card {
    background: var(--card-bg);
    width: 200px;
    padding: 20px;
    border-radius: 15px;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    border: 1px solid #444;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    transition: 0.3s;
}

.lb-card:hover {
    transform: translateY(-10px);
}

.lb-card.rank-1 {
    min-height: 260px;
    border-color: gold;
    background: linear-gradient(180deg, #161932 0%, rgba(255, 215, 0, 0.1) 100%);
    z-index: 2;
}

.lb-card.rank-1 .lb-badge {
    background: gold;
    color: black;
}

.lb-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: 3px solid #444;
    margin-bottom: 15px;
    background: #0e1025;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    position: relative;
    flex-shrink: 0;
}

.lb-card.rank-2 {
    min-height: 230px;
    border-color: silver;
}

.lb-card.rank-2 .lb-badge {
    background: silver;
    color: black;
}

.lb-card.rank-2 .lb-icon {
    width: 70px;
    height: 70px;
    font-size: 2.2rem;
}

.lb-card.rank-3 {
    min-height: 210px;
    border-color: #cd7f32;
}

.lb-card.rank-3 .lb-badge {
    background: #cd7f32;
    color: black;
}

.lb-card.rank-3 .lb-icon {
    width: 60px;
    height: 60px;
    font-size: 1.8rem;
}

.lb-badge {
    position: absolute;
    top: -15px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.2rem;
}

.lb-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: 3px solid #444;
    margin-bottom: 15px;
    background: #0e1025;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    position: relative;
    flex-shrink: 0;
    /* Prevents oval/squishing */
}

.lb-icon i {
    z-index: 2;
    text-shadow: 0 0 10px rgba(0, 0, 0, 0.8);
}

.lb-name {
    font-weight: bold;
    font-size: 1.1rem;
    text-align: center;
    margin-bottom: 5px;
    color: white;
}

.lb-points {
    font-size: 0.9rem;
    color: var(--color-games);
    font-weight: bold;
    text-transform: uppercase;
}

.lb-list {
    max-width: 800px;
    margin: 0 auto;
}

.lb-row {
    display: flex;
    align-items: center;
    padding: 10px 25px;
    background: var(--card-bg);
    margin-bottom: 10px;
    border-radius: 8px;
    border-left: 4px solid transparent;
    transition: 0.2s;
}

.lb-row:hover {
    background: #1e2240;
    transform: translateX(5px);
}

.lb-row-rank {
    font-weight: bold;
    color: #666;
    width: 40px;
    font-size: 1.1rem;
}

.lb-row-belt {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    background: #111;
    margin-right: 15px;
    border: 2px solid #444;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lb-row-belt i {
    font-size: 1.2rem;
}

.lb-row-name {
    flex-grow: 1;
    font-weight: 600;
    color: white;
}

.lb-row-points {
    font-weight: bold;
    color: var(--color-games);
}

/* Modal Overlay */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    z-index: 200000;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(5px);
}

.modal-content {
    background: var(--bg-dark);
    width: 90%;
    max-width: 600px;
    border-radius: var(--m3-shape-xl);
    border: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: var(--m3-elevation-4);
}

.modal-header {
    padding: 24px 30px;
    background: var(--m3-surface-container);
    border-bottom: 2px solid var(--color-catalog);
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.modal-body {
    padding: 30px;
    overflow-y: auto;
    flex-grow: 1;
}

/* Form Elements */
.req-img-container {
    width: 100%;
    height: 200px;
    background: #111;
    border-radius: 8px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border: 1px solid #333;
    position: relative;
}

.req-img-container img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.req-img-container i {
    font-size: 4rem;
    color: #333;
}

.req-gallery {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    overflow-x: auto;
    padding-bottom: 5px;
    justify-content: center;
}

.req-thumb {
    width: 60px;
    height: 60px;
    border: 2px solid #444;
    border-radius: 6px;
    cursor: pointer;
    overflow: hidden;
    flex-shrink: 0;
    transition: 0.2s;
    opacity: 0.6;
}

.req-thumb:hover {
    border-color: var(--color-catalog);
    opacity: 0.8;
}

.req-thumb.active {
    border-color: var(--color-catalog);
    opacity: 1;
    transform: scale(1.05);
    box-shadow: 0 0 10px rgba(155, 89, 182, 0.4);
}

.req-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.req-label {
    color: white;
    font-size: 0.9rem;
    margin-bottom: 5px;
    display: block;
    font-weight: 600;
}

.req-input {
    width: 100%;
    padding: 16px 16px 12px 16px;
    background: var(--m3-surface-highest);
    border: none;
    border-bottom: 1px solid var(--text-muted);
    color: var(--text-main);
    border-radius: 4px 4px 0 0;
    margin-bottom: 20px;
    font-family: inherit;
    font-size: 1rem;
    transition: var(--m3-transition);
}

.req-input:focus {
    outline: none;
    border-bottom: 2px solid var(--cn-green);
    background: var(--m3-surface-high);
}

.variant-row {
    display: flex;
    gap: 5px;
    margin-bottom: 5px;
    align-items: center;
}

/* ADMIN Layout */
#admin-view {
    display: none;
    background: radial-gradient(circle at top right, #1c1f3f 0%, #0e1025 60%);
    height: 100vh;
    width: 100vw;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 100000;
    flex-direction: column;
}

#admin-view.active {
    display: flex;
}

.admin-top-bar {
    width: 100%;
    height: 50px;
    background-color: var(--color-admin);
    color: white;
    text-align: center;
    line-height: 50px;
    font-weight: 700;
    letter-spacing: 1px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
    flex-shrink: 0;
}

.admin-layout {
    display: flex;
    flex: 1;
    height: calc(100vh - 50px);
    overflow: hidden;
}

.admin-nav {
    width: 250px;
    background: #0a0c18;
    border-right: 1px solid #34495e;
    padding-top: 20px;
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
    overflow-y: auto;
}

.admin-nav-btn {
    padding: 12px 20px;
    margin: 4px 10px;
    color: #aaa;
    cursor: pointer;
    border-radius: var(--m3-shape-pill);
    transition: var(--m3-transition);
    font-weight: 600;
    display: flex;
    align-items: center;
}

.admin-nav-btn:hover {
    background: rgba(255, 255, 255, 0.05);
    color: white;
}

.admin-nav-btn.active {
    background: var(--cn-green);
    color: var(--cn-midnight);
}

.admin-nav-btn i {
    width: 25px;
    text-align: center;
    margin-right: 10px;
}

.admin-content {
    flex: 1;
    padding: 30px;
    overflow-y: auto;
    background: var(--bg-dark);
}

.admin-section {
    display: none;
    animation: fadeIn 0.3s;
}

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

.admin-card {
    background: var(--card-bg);
    padding: 25px;
    border-radius: var(--m3-shape-large);
    border: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: var(--m3-elevation-1);
    margin-bottom: 25px;
    transition: var(--m3-transition);
}

.admin-card:hover {
    box-shadow: var(--m3-elevation-2);
}

.admin-card h3 {
    margin-top: 0;
    color: white;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 15px;
    margin-bottom: 20px;
    font-size: 1.2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.admin-input {
    width: 100%;
    padding: 10px;
    margin-bottom: 10px;
    background: #0e1025;
    border: 1px solid #34495e;
    color: white;
    border-radius: 6px;
    font-family: inherit;
}

.admin-btn {
    width: 100%;
    padding: 12px;
    cursor: pointer;
    font-weight: 600;
    border: none;
    border-radius: var(--m3-shape-pill);
    margin-top: 5px;
    transition: var(--m3-transition);
}

.admin-btn:hover {
    filter: brightness(1.1);
    box-shadow: var(--m3-elevation-1);
    transform: translateY(-1px);
}

.btn-add {
    background: var(--cn-green);
    color: var(--cn-midnight);
    border: none;
    padding: 8px 16px;
    border-radius: var(--m3-shape-pill);
    cursor: pointer;
    font-weight: 600;
    transition: var(--m3-transition);
    font-size: 0.85rem;
}

.btn-add:hover {
    background: #05d6a7;
    transform: translateY(-1px);
    box-shadow: var(--m3-elevation-1);
}

.btn-blue {
    background: var(--color-home);
    color: var(--cn-midnight);
    border: none;
    padding: 10px 20px;
    border-radius: var(--m3-shape-pill);
    cursor: pointer;
    font-weight: 600;
    width: 100%;
    margin-top: 5px;
    transition: var(--m3-transition);
}

.btn-blue:hover {
    filter: brightness(1.1);
    box-shadow: var(--m3-elevation-1);
    transform: translateY(-1px);
}

.btn-edit {
    background: var(--m3-surface-high);
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: var(--m3-shape-pill);
    cursor: pointer;
    font-weight: 600;
    transition: var(--m3-transition);
    font-size: 0.85rem;
    margin-right: 5px;
}

.btn-edit:hover {
    background: #444;
    transform: translateY(-1px);
    box-shadow: var(--m3-elevation-1);
}

.btn-sync {
    background: #2980b9;
    color: white;
    text-decoration: none;
    display: block;
    text-align: center;
    margin-bottom: 12px;
    border-radius: var(--m3-shape-pill);
    padding: 12px;
    font-weight: 600;
    transition: var(--m3-transition);
}

.btn-sync:hover {
    background: #3498db;
    transform: translateY(-1px);
    box-shadow: var(--m3-elevation-1);
}

.admin-list-wrapper {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.admin-list-wrapper .list-card {
    flex-grow: 1;
    margin-bottom: 0;
    cursor: default;
}

.btn-mini {
    padding: 8px 12px;
    border-radius: var(--m3-shape-pill);
    border: none;
    color: white;
    cursor: pointer;
    font-size: 0.8rem;
    font-weight: 600;
    transition: var(--m3-transition);
}

.btn-mini:hover {
    transform: translateY(-2px);
    box-shadow: var(--m3-elevation-1);
}

.btn-arrow {
    background: none;
    border: none;
    color: #aaa;
    font-size: 1.2rem;
    cursor: pointer;
    padding: 2px;
}

.btn-arrow:hover {
    color: white;
    transform: scale(1.2);
}

.btn-arrow-placeholder {
    width: 20px;
    height: 20px;
    display: block;
}

.admin-tier-header {
    display: flex;
    align-items: center;
    color: var(--color-catalog);
    font-size: 1.2rem;
    font-weight: bold;
    margin: 20px 0 10px 0;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.admin-tier-header::after {
    content: "";
    flex-grow: 1;
    height: 2px;
    background: var(--color-catalog);
    margin-left: 15px;
    opacity: 0.3;
}

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

.admin-store-card {
    background: var(--card-bg);
    border-radius: 8px;
    padding: 15px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    border: 1px solid #34495e;
    position: relative;
}

.admin-store-card.hidden {
    opacity: 0.5;
    border-style: dashed;
}

.admin-store-card.hidden::after {
    content: "HIDDEN";
    position: absolute;
    top: 5px;
    right: 5px;
    background: #e74c3c;
    color: white;
    font-size: 0.6rem;
    padding: 2px 4px;
    border-radius: 4px;
}

.admin-store-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: #0e1025;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 10px;
    overflow: hidden;
}

.admin-store-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.admin-store-icon i {
    font-size: 1.2rem;
    color: white;
}

.admin-store-actions {
    width: 100%;
    display: flex;
    gap: 5px;
    margin-top: 10px;
}

.admin-store-actions button {
    flex: 1;
}

/* Admin Interest */
#admin-interest-list {
    display: flex;
    gap: 15px;
    overflow-x: auto;
    padding: 10px 5px 20px 5px;
    width: 100%;
    scrollbar-width: thin;
    scrollbar-color: var(--color-home) #161932;
}

#admin-interest-list::-webkit-scrollbar {
    height: 6px;
}

#admin-interest-list::-webkit-scrollbar-track {
    background: #161932;
    border-radius: 3px;
}

#admin-interest-list::-webkit-scrollbar-thumb {
    background: var(--color-home);
    border-radius: 3px;
}

.interest-card-square {
    background-color: var(--card-bg);
    border-radius: 12px;
    padding: 15px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    border: 1px solid #34495e;
    position: relative;
    min-width: 120px;
    width: 120px;
    height: 140px;
    flex-shrink: 0;
    justify-content: space-between;
    transition: transform 0.2s;
}

.interest-card-square:hover {
    transform: translateY(-5px);
    border-color: var(--color-home);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.interest-visual {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    background: #161932;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border: 2px solid var(--color-home);
    flex-shrink: 0;
    margin-bottom: 10px;
}

.interest-visual img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.interest-visual i {
    font-size: 1.2rem;
    color: white;
}

.interest-count-badge {
    color: #aaa;
    font-size: 0.8rem;
    margin-bottom: 15px;
}

.interest-reset-btn {
    background: #e74c3c;
    color: white;
    border: none;
    border-radius: var(--m3-shape-pill);
    padding: 10px 0;
    width: 100%;
    font-size: 0.9rem;
    font-weight: 700;
    cursor: pointer;
    box-shadow: var(--m3-elevation-1);
    transition: var(--m3-transition);
}

.interest-reset-btn:hover {
    background: #c0392b;
    transform: translateY(-1px);
    box-shadow: var(--m3-elevation-2);
}

.admin-lb-preview-row {
    display: flex;
    align-items: center;
    padding: 8px 15px;
    background: #1a1d3a;
    border-bottom: 1px solid #2a2e45;
    font-size: 0.9rem;
}

.admin-lb-preview-row:last-child {
    border-bottom: none;
}

.admin-lb-rank {
    color: #888;
    width: 30px;
    font-weight: bold;
}

.admin-lb-name {
    flex-grow: 1;
    color: white;
}

.admin-lb-points {
    color: var(--color-games);
    font-weight: bold;
}

/* LOGIN VIEW */
#login-view {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100vh;
    width: 100vw;
    background: linear-gradient(135deg, var(--cn-midnight) 0%, #003d5c 50%, var(--cn-green) 100%);
    position: fixed;
    top: 0;
    left: 0;
    z-index: 300000;
}

.bg-circle {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    pointer-events: none;
}

.circle-1 {
    width: 600px;
    height: 600px;
    top: -100px;
    left: -100px;
}

.circle-2 {
    width: 400px;
    height: 400px;
    bottom: -50px;
    right: -50px;
}

.circle-3 {
    width: 200px;
    height: 200px;
    bottom: 20%;
    left: 20%;
}

.login-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 40px;
    border-radius: 12px;
    width: 400px;
    text-align: center;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.2);
    position: relative;
    z-index: 2;
}

.login-version-badge {
    display: none;
    background: var(--cn-green);
    color: var(--cn-midnight);
    font-weight: bold;
    padding: 8px;
    border-radius: 6px;
    margin-bottom: 15px;
    font-size: 0.9rem;
    animation: fadeIn 0.5s ease;
}

.login-logo {
    font-size: 3rem;
    color: white;
    margin-bottom: 10px;
}

.login-title {
    color: white;
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 30px;
    letter-spacing: 1px;
}

.login-input {
    width: 100%;
    padding: 12px;
    border-radius: 4px;
    border: none;
    margin-bottom: 15px;
    font-size: 1rem;
    text-align: center;
}

.btn-login {
    width: 100%;
    padding: 12px;
    background-color: var(--cn-green);
    color: var(--cn-midnight);
    border: none;
    border-radius: 4px;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s;
}

.btn-login:hover {
    background-color: #03a07d;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(4, 184, 143, 0.4);
}

.login-toggle {
    margin-top: 20px;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.85rem;
    cursor: pointer;
    text-decoration: underline;
}

.login-toggle:hover {
    color: white;
}

.login-error {
    color: #ff6b6b;
    font-size: 0.9rem;
    margin-bottom: 15px;
    display: none;
}

.mobile-admin-trigger {
    display: none;
    font-size: 1.5rem;
    color: #444;
    cursor: pointer;
    margin-right: 10px;
}

.floating-admin-btn {
    display: none;
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background-color: var(--color-admin);
    color: white;
    border-radius: 50%;
    box-shadow: 0 4px 15px rgba(192, 57, 43, 0.5);
    z-index: 300001;
    cursor: pointer;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    transition: transform 0.3s;
}

.floating-admin-btn:hover {
    transform: scale(1.1) rotate(90deg);
}

@media (max-width: 768px) {
    body {
        flex-direction: column;
    }

    .sidebar {
        position: fixed;
        bottom: 0;
        left: 0;
        width: 100%;
        height: 70px;
        flex-direction: row;
        justify-content: space-around;
        background-color: #090a18;
        border-right: none;
        border-top: 1px solid #1f2235;
        padding-top: 0;
        z-index: 1000;
    }

    .nav-item {
        padding: 0;
        height: 100%;
        border-left: none;
        border-top: 4px solid transparent;
    }

    .nav-item.active {
        border-left: none;
        border-top-width: 4px;
        background: transparent;
    }

    .nav-item i {
        font-size: 1.4rem;
        margin-bottom: 3px;
    }

    .nav-item span {
        font-size: 0.6rem;
    }

    .desktop-only {
        display: none !important;
    }

    .mobile-admin-trigger {
        display: block;
    }

    .main-wrapper {
        height: calc(100vh - 70px);
    }

    .content-area {
        padding: 20px;
    }

    header {
        padding: 15px 20px;
    }

    .home-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        height: auto;
    }

    #news-feed,
    #rules-feed {
        max-height: none;
    }

    .news-column {
        height: auto;
        overflow: visible;
    }

    .scroll-container {
        overflow-y: visible;
    }

    .queue-list {
        height: auto !important;
        padding-bottom: 20px;
    }

    .lb-container {
        height: auto !important;
        padding-bottom: 20px;
    }

    .modal-content {
        width: 95%;
        max-height: 90vh;
    }

    .lb-card {
        width: 140px;
        padding: 10px;
    }

    .lb-icon {
        width: 60px;
        height: 60px;
        font-size: 1.8rem;
    }

    .lb-top-3 {
        gap: 10px;
    }

    .admin-layout {
        flex-direction: column;
    }

    .admin-nav {
        width: 100%;
        height: auto;
        max-height: 150px;
        flex-direction: row;
        overflow-x: auto;
        overflow-y: hidden;
        border-right: none;
        border-bottom: 1px solid #34495e;
        padding-top: 0;
    }

    .admin-nav-btn {
        padding: 10px;
        white-space: nowrap;
        border-left: none;
        border-bottom: 4px solid transparent;
        display: flex;
        align-items: center;
        font-size: 0.8rem;
    }

    .admin-nav-btn.active {
        border-left: none;
        border-bottom-color: var(--color-admin);
        background: transparent;
    }

    .admin-nav-btn i {
        margin-right: 5px;
    }

    .admin-content {
        padding: 15px;
    }

    /* Stack Games Tab Columns */
    .games-layout {
        grid-template-columns: 1fr;
        overflow-y: auto;
        height: auto;
    }

    .games-side-col {
        height: auto;
        max-height: 300px;
        margin-bottom: 20px;
    }
}

/* --- PODIUM LAYOUT FIX --- */
.podium-points-container {
    display: flex;
    flex-direction: column;
    /* Stacks children vertically */
    align-items: center;
    justify-content: center;
    width: 100%;
    margin-top: 5px;
}

.podium-badges-row {
    display: flex;
    flex-direction: row;
    /* Badges sit side-by-side */
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 5px;
    margin-bottom: 5px;
    /* Spacing between badges and text */
}

.podium-text-row {
    display: block;
    width: 100%;
    text-align: center;
    font-size: 0.9rem;
    color: #ccc;
    font-weight: bold;
}

/* === NINJA NOTES === */
.ninja-notes-banner {
    padding: 0 40px 10px 40px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex-shrink: 0;
}

.ninja-note-card {
    display: flex;
    align-items: flex-start;
    background: linear-gradient(135deg, rgba(243, 156, 18, 0.12) 0%, rgba(243, 156, 18, 0.04) 100%);
    border: 1px solid rgba(243, 156, 18, 0.25);
    border-left: 4px solid #f39c12;
    border-radius: 8px;
    padding: 12px 16px;
    color: white;
    animation: fadeIn 0.3s ease-in-out;
}

.admin-note-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    background: rgba(243, 156, 18, 0.08);
    border: 1px solid rgba(243, 156, 18, 0.2);
    border-left: 3px solid #f39c12;
    border-radius: 6px;
    padding: 8px 10px;
    margin-bottom: 6px;
}

@media (max-width: 768px) {
    .ninja-notes-banner {
        padding: 0 15px 10px 15px;
    }
}

/* === SKELETON LOADER === */
.skeleton-card {
    background: var(--card-bg);
    border-radius: var(--m3-shape-large);
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    animation: skeleton-pulse 1.5s ease-in-out infinite;
}

.skeleton-circle {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.06);
    flex-shrink: 0;
}

.skeleton-lines {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.skeleton-line {
    height: 12px;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.06);
}

.skeleton-line:first-child {
    width: 60%;
}

.skeleton-line:nth-child(2) {
    width: 40%;
}

.skeleton-line:nth-child(3) {
    width: 80%;
}

@keyframes skeleton-pulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.5;
    }
}

/* === TOAST NOTIFICATION === */
.toast-container {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 999998;
    display: flex;
    flex-direction: column-reverse;
    gap: 10px;
    pointer-events: none;
}

.toast {
    background: var(--m3-surface-high);
    color: white;
    padding: 14px 22px;
    border-radius: var(--m3-shape-medium);
    box-shadow: var(--m3-elevation-4);
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 10px;
    pointer-events: auto;
    animation: toast-in 0.35s cubic-bezier(0.2, 0, 0, 1);
    border-left: 4px solid var(--cn-green);
    max-width: 380px;
}

.toast.toast-warning {
    border-left-color: #e67e22;
}

.toast.toast-error {
    border-left-color: #e74c3c;
}

.toast.toast-out {
    animation: toast-out 0.3s cubic-bezier(0.2, 0, 0, 1) forwards;
}

@keyframes toast-in {
    from {
        opacity: 0;
        transform: translateY(20px) scale(0.95);
    }

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

@keyframes toast-out {
    from {
        opacity: 1;
        transform: translateY(0) scale(1);
    }

    to {
        opacity: 0;
        transform: translateY(20px) scale(0.95);
    }
}

/* Card-enter and tab-entering animations removed — original fadeIn handles transitions */

/* === INLINE LOADING SPINNER (for tab transitions) === */
.tab-loading-spinner {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px 0;
    flex-direction: column;
    gap: 12px;
}

.tab-loading-spinner::before {
    content: '';
    width: 36px;
    height: 36px;
    border: 3px solid rgba(4, 184, 143, 0.2);
    border-top-color: var(--cn-green);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

.tab-loading-spinner::after {
    content: 'Loading...';
    color: var(--text-muted);
    font-size: 0.85rem;
}