:root {
    --primary: #7c4dff;
    --secondary: #1c1c1c;
    --danger: #ff4d4d;
    --bg-black: #0f0f0f;
    --bg-dark: #121212;
    --bg-card: #1e1e1e;
    --text-white: #ffffff;
    --text-muted: #a0a0a0;
    --radius-md: 20px;
    --radius-full: 50px;

    /* New Trust & Fame Colors */
    --jupiter-gold: #F4D03F;
    /* Jupiter Gold - Trust/Wealth */
    --mercury-green: #2ECC71;
    /* Mercury Green - Commerce/Safe */
    --sun-energy: #FF9F00;
    /* Sun Energy - Fame/Pop */

    /* Jyotish Color Guide */
    --j-dashboard: #FFD700;
    /* Golden Yellow - Jupiter */
    --j-profile: #E0E0E0;
    /* Silver/White - Moon */
    --j-wallet: #2ECC71;
    /* Emerald Green - Mercury */
    --j-matches: #FF0000;
    /* Blood Red - Mars */
    --j-stats: #007BFF;
    /* Electric Blue - Saturn */
    --j-shop: #FF007F;
    /* Rose Pink/Magenta - Venus */
    --j-referral: #00FFFF;
    /* Teal/Cyan - Mercury */
    --j-leaderboard: #FF9933;
    /* Saffron/Orange - Sun */
    --j-support: #87CEEB;
    /* Sky Blue - Jupiter/Moon */
}

/* Jyotish Utilities */
.text-j-dashboard {
    color: var(--j-dashboard) !important;
}

.text-j-profile {
    color: var(--j-profile) !important;
}

.text-j-wallet {
    color: var(--j-wallet) !important;
}

.text-j-matches {
    color: var(--j-matches) !important;
}

.text-j-stats {
    color: var(--j-stats) !important;
}

.text-j-shop {
    color: var(--j-shop) !important;
}

.text-j-referral {
    color: var(--j-referral) !important;
}

.text-j-leaderboard {
    color: var(--j-leaderboard) !important;
}

.text-j-support {
    color: var(--j-support) !important;
}

/* Trust & Fame Utilities */
.text-jupiter {
    color: var(--jupiter-gold) !important;
}

.text-mercury {
    color: var(--mercury-green) !important;
}

.text-sun {
    color: var(--sun-energy) !important;
}

.bg-jupiter-soft {
    background: rgba(244, 208, 63, 0.1) !important;
}

/* Custom Coin Icon */
.custom-coin-icon {
    width: 22px;
    height: 22px;
    object-fit: contain;
    vertical-align: middle;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

.custom-coin-icon.large {
    width: 35px;
    height: 35px;
}

.bg-mercury-soft {
    background: rgba(46, 204, 113, 0.1) !important;
}

.bg-sun-soft {
    background: rgba(255, 159, 0, 0.1) !important;
}

.border-jupiter {
    border-color: var(--jupiter-gold) !important;
}

.border-mercury {
    border-color: var(--mercury-green) !important;
}

.border-sun {
    border-color: var(--sun-energy) !important;
}

.glow-sun {
    box-shadow: 0 0 15px rgba(255, 159, 0, 0.3) !important;
}


html,
body {
    height: 100vh;
    width: 100%;
    margin: 0;
    padding: 0;
    overflow: hidden !important;
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-black);
    color: var(--text-white);
    /* STRICT FIT */
}

* {
    box-sizing: border-box;
}

/* ============================================
   GLOBAL UTILITIES & COMPONENTS
   ============================================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 20px;
    border: none;
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    gap: 10px;
    width: 100%;
}

.btn:active {
    transform: scale(0.98);
}

.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.btn-primary:hover {
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.6);
}

.btn-google {
    background: white;
    color: #333;
    border: 1px solid #ddd;
    margin-top: 15px;
}

.btn-google:hover {
    background: #f8f9fa;
}

.btn-google img {
    width: 20px;
    height: 20px;
}

.btn-coral {
    background: #ff6b6b;
    color: white;
    margin-top: 15px;
}

.btn-coral:hover {
    background: #fa5252;
}

.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #333;
    font-size: 0.9rem;
}

.form-input-underline {
    width: 100%;
    padding: 10px 0;
    border: none;
    border-bottom: 2px solid #eee;
    background: transparent;
    font-size: 1rem;
    color: #333;
    transition: border-color 0.3s;
    outline: none;
}

.form-input-underline:focus {
    border-bottom-color: #667eea;
}

.input-group {
    position: relative;
}

.password-toggle {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    color: #999;
}

.required {
    color: #ff4d4d;
}

/* ============================================
   PREMIUM NAVBAR
   ============================================ */
.enhanced-navbar {
    height: 55px;
    background: linear-gradient(to bottom, #1a1a1a, #0a0a0a);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 15px;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 2000;
    /* Transformation for layer promotion only - removed will-change/box-shadow which can shift pixels */
    transform: translateZ(0);
    -webkit-transform: translateZ(0);
    backface-visibility: hidden;
    line-height: 1;
    /* Reset line-height */
}

.nav-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    height: 100%;
    /* Match navbar height exactly */
    transform: translateZ(0);
}

.nav-left,
.nav-right,
.nav-user-info {
    display: flex;
    align-items: center;
    height: 100%;
    /* Force full height */
    gap: 12px;
}

.nav-left {
    gap: 15px;
}

.nav-right {
    gap: 15px;
}

.nav-logo img {
    height: 35px;
}

.nav-balance {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 215, 0, 0.3);
    padding: 6px 14px;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
    color: #ffd700;
    font-size: 0.9rem;
}

.nav-divider {
    height: 30px;
    width: 2px;
    background-color: rgba(255, 255, 255, 0.2);
    margin: 0 10px;
    border-radius: 2px;
}



.nav-notification {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 5px;
}

.notification-btn {
    background: transparent;
    border: none;
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
    position: relative;
    padding: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s ease;
}

.notification-btn:hover {
    transform: scale(1.1);
}

.notification-badge {
    position: absolute;
    top: 0px;
    right: 0px;
    background-color: var(--danger);
    color: white;
    font-size: 0.6rem;
    font-weight: 800;
    min-width: 15px;
    height: 15px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #000;
}

/* Premium Scrollbar for Notifications */
.notif-list::-webkit-scrollbar {
    width: 6px;
}

.notif-list::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.02);
}

.notif-list::-webkit-scrollbar-thumb {
    background: rgba(124, 77, 255, 0.3);
    border-radius: 10px;
}

.notif-list::-webkit-scrollbar-thumb:hover {
    background: rgba(124, 77, 255, 0.5);
}

.nav-logout-btn {
    width: 38px;
    height: 38px;
    background: rgba(255, 77, 77, 0.1);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ff4d4d;
    text-decoration: none;
    font-size: 1.1rem;
}

.menu-trigger {
    background: transparent;
    border: none;
    color: white;
    font-size: 1.4rem;
    cursor: pointer;
    padding: 8px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s ease;
}

.menu-trigger:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* ============================================
   SIDEBAR
   ============================================ */
.app-layout {
    display: flex;
    padding-top: 56px;
    /* Match navbar height (55px) + 1px gap */
    min-height: 100vh;
}

.sidebar {
    width: 255px;
    background: linear-gradient(180deg, #121212 0%, #0a0a0a 100%);
    backdrop-filter: blur(10px);
    padding: 12px;
    border-right: 1px solid rgba(255, 255, 255, 0.05);
    position: fixed;
    top: 55px;
    /* Match navbar height */
    left: 0;
    bottom: 0;
    z-index: 1000;
    overflow-y: auto;
    /* Hide Scrollbar */
    scrollbar-width: none;
    /* Firefox */
    -ms-overflow-style: none;
    /* IE/Edge */
}

.sidebar::-webkit-scrollbar {
    display: none;
    /* Chrome/Safari */
}

.user-profile-box {
    text-align: center;
    padding: 15px 10px;
    margin-bottom: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.avatar-box {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    margin: 0 auto 8px;
    font-size: 1.3rem;
    background: linear-gradient(135deg, #a78bfa, #7c3aed);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.avatar-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}


.user-name {
    font-size: 1rem;
    font-weight: 700;
}

.user-balance-small {
    margin-top: 5px;
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.user-balance-small i {
    color: #ffd700;
    /* Gold color for coin */
    margin-right: 5px;
}

.nav-menu {
    list-style: none;
    padding: 0;
    margin: 0;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 15px;
    color: var(--text-muted);
    text-decoration: none;
    border-radius: 10px;
    font-weight: 600;
    margin-bottom: -4px;
    transition: all 0.3s ease;
}

.nav-link:hover {
    color: white;
    background: rgba(124, 77, 255, 0.1);
    box-shadow: 0 8px 15px rgba(124, 77, 255, 0.1);
}

.nav-link.active {
    color: white;
    background: var(--primary);
    box-shadow: 0 8px 15px rgba(124, 77, 255, 0.3);
}

/* ============================================
   MAIN CONTENT
   ============================================ */
.main-wrapper {
    flex: 1;
    padding: 15px 25px;
    margin-left: 255px;
    height: calc(100vh - 58px);
    width: calc(100% - 255px);
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
    overflow-y: auto;
    padding-bottom: 30px;
}

.dashboard-content-grid {
    display: flex;
    gap: 20px;
}

.content-left {
    flex: 2.2;
    display: flex;
    flex-direction: column;
}

.content-right {
    flex: 0.8;
    display: flex;
    flex-direction: column;
}

/* Stats Cards */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-bottom: 12px;
    flex-shrink: 0;
}

.games-grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 10px;
}

.stat-card {
    height: 100px;
    /* USER REQUEST: 100px (Balanced) */
    border-radius: var(--radius-md);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.stat-card.purple {
    background-color: var(--primary);
}

.stat-card.grey {
    background-color: #262626;
}

.stat-card.red {
    background-color: var(--danger);
}

.stat-card.green {
    background-color: var(--mercury-green);
}

.stat-card.blue {
    background-color: var(--j-stats);
}


.stat-value {
    font-size: 1.8rem;
    /* Increased size +5px */
    font-weight: 800;
}

.stat-label {
    font-size: 0.85rem;
    /* Increased size */
    text-transform: uppercase;
    font-weight: 700;
    opacity: 0.7;
}

/* Wallet Banner */
.wallet-banner-original {
    background: linear-gradient(135deg, #059669 0%, #34d399 100%);
    /* Mercury Green Gradient */
    /* Deep Purple to Primary */
    border-radius: 12px;
    padding: 15px;
    margin-bottom: 15px;
    flex-shrink: 0;
    position: relative;
    overflow: hidden;
    min-height: 110px;
    /* USER REQUEST: 110px */
}

.wallet-banner-original h2 {
    margin: 0 0 5px 0;
    font-size: 1.3rem;
    /* Increased size */
}

.wallet-banner-original p {
    margin: 0 0 8px 0;
    opacity: 0.9;
    font-size: 0.9rem;
    /* Increased size */
}

.progress-dots {
    display: flex;
    gap: 5px;
}

.dot {
    width: 25px;
    height: 4px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 2px;
}

.dot.active {
    background: white;
}

/* Category Tabs */
.category-tabs {
    background-color: #1a1a1a;
    border-radius: 50px;
    padding: 4px;
    display: flex;
    margin-bottom: 10px;
    width: 100%;
    height: 40px;
    flex-shrink: 0;
}

.tab-btn {
    flex: 1;
    background: none;
    border: none;
    color: var(--text-muted);
    padding: 0;
    height: 100%;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.tab-btn.active {
    background-color: var(--primary);
    color: white;
}

.tab-btn:hover:not(.active) {
    color: white;
    background: rgba(255, 255, 255, 0.05);
}

/* Games Grid Inner Scroll */
#gamesGrid {
    overflow-y: auto;
    padding-right: 5px;
    padding-bottom: 10px;
}

/* Game Cards */
/* Old .game-card-fit block removed (Merged or superseded by later definition) */



/* Wallet Slider */
.wallet-slider-container {
    margin-bottom: 20px;
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.wallet-slider {
    position: relative;
    width: 100%;
    height: 135px;
    /* Fixed compact height to ensure Games/Stats are visible */
    background: transparent;
    overflow: hidden;
}

.slider-item {
    display: none;
    /* Hide inactive slides */
    width: 100%;
    height: 100%;
    /* Fill container */
    transition: opacity 0.5s ease-in-out;
}

.slider-item.active {
    display: block;
    /* Show active slide */
    animation: fadeIn 0.5s;
}

.slider-item img {
    width: 100%;
    height: 100%;
    object-fit: fill;
    /* Stretch to fit exact dimensions - shows full image, controls size */
    display: block;
    border-radius: 15px;
    /* specific to design */
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.slider-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    padding: 20px;
    color: white;
    border-bottom-left-radius: 15px;
    border-bottom-right-radius: 15px;
}

.slider-dots {
    position: absolute;
    bottom: 15px;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    gap: 8px;
    z-index: 2;
}

.slider-dots .dot {
    width: 8px;
    height: 8px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
}

.slider-dots .dot.active {
    background: white;
    width: 20px;
    border-radius: 4px;
}

.list-section-title {
    font-size: 1.0rem;
    /* Slightly larger */
    font-weight: 700;
    margin-bottom: 1px;
    color: white;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
    margin-top: -10px;
}

/* Fix for Top Players title visibility */
.content-right .list-section-title {
    margin-top: 5px;
    /* Reset/Add margin to prevent hiding under stats */
}

/* Hide Scrollbar Utility */
.scrollbar-hide {
    -ms-overflow-style: none;
    /* IE and Edge */
    scrollbar-width: none;
    /* Firefox */
}

.scrollbar-hide::-webkit-scrollbar {
    display: none;
    /* Chrome, Safari and Opera */
}

/* Scrollbar Style */
::-webkit-scrollbar {
    width: 4px;
}

::-webkit-scrollbar-thumb {
    background: #333;
    border-radius: 2px;
}

/* Old Sidebar/Mobile Logic Removed (Merged into line 3180+) */

/* Game Card Fit */
.game-card-fit {
    position: relative;
    width: 100%;
    aspect-ratio: 1/1 !important;
    /* Square for Mobile - Taller */
    border-radius: 15px;
    overflow: hidden;
    background: #2a2a2a;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

.game-card-fit:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.5);
}

.game-card-fit img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.game-card-fit:hover img {
    transform: scale(1.05);
}

/* ============================================
   AGENT PAGE STYLES (Moved from agent.php)
   ============================================ */
.agent-redesign-container {
    --brand-primary: #7c3aed;
    --brand-secondary: #db2777;
    --glass-bg: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.08);
    --text-main: #f8fafc;
    --text-dim: #94a3b8;
}

.agent-redesign-container {
    font-family: 'Plus Jakarta Sans', sans-serif;
    min-height: 100vh;
    /* Ensure full height for the background */
}

.agent-redesign-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 1rem 30px;
}

/* Hero Section - Split Layout */
.hero-split {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    padding: 2rem 1.5rem;
    background: radial-gradient(circle at top left, rgba(124, 58, 237, 0.15), transparent 40%),
        radial-gradient(circle at bottom right, rgba(219, 39, 119, 0.1), transparent 40%);
    border-radius: 32px;
    margin-bottom: 2rem;
    position: relative;
    overflow: hidden;
    border: 1px solid var(--glass-border);
}

.hero-text {
    flex: 1;
    z-index: 2;
}

.hero-visual {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    z-index: 2;
}

.hero-tag {
    background: linear-gradient(90deg, var(--brand-primary), var(--brand-secondary));
    color: white;
    padding: 6px 16px;
    border-radius: 100px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: inline-block;
    margin-bottom: 1.5rem;
}

.hero-redesign-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, #fff 30%, rgba(255, 255, 255, 0.5));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-redesign-subtitle {
    font-size: 1.125rem;
    color: var(--text-dim);
    max-width: 500px;
    line-height: 1.6;
    margin-bottom: 2.5rem;
}

/* Floating Card Visual */
.glass-card-visual {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    padding: 2rem;
    width: 100%;
    max-width: 380px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    animation: float 6s ease-in-out infinite;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0) rotate(0);
    }

    50% {
        transform: translateY(-20px) rotate(1deg);
    }
}

.mini-stat {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.mini-stat:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.mini-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: rgba(124, 58, 237, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #a78bfa;
    font-size: 1.25rem;
}

.mini-details h4 {
    font-size: 0.875rem;
    color: var(--text-dim);
    margin: 0;
}

.mini-details p {
    font-size: 1.25rem;
    font-weight: 700;
    color: #fff;
    margin: 0;
}

/* Benefits Section */
.section-label {
    text-align: center;
    margin-bottom: 2rem;
}

.label-text {
    color: var(--brand-primary);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.875rem;
    display: block;
    margin-bottom: 0.5rem;
}

.section-redesign-title {
    font-size: 2.5rem;
    font-weight: 800;
    color: #fff;
}

.benefits-grid-redesign {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.benefit-glass-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 3rem 2rem;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    text-align: left;
    position: relative;
    overflow: hidden;
}

.benefit-glass-card:hover {
    transform: translateY(-10px);
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(124, 58, 237, 0.3);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.benefit-glass-card i {
    font-size: 2.5rem;
    background: linear-gradient(135deg, #a78bfa, #f472b6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 1.5rem;
    display: block;
}

.benefit-glass-card h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: #fff;
}

.benefit-glass-card p {
    color: var(--text-dim);
    line-height: 1.6;
}

/* Process - Vertical Steps */
.steps-container {
    max-width: 800px;
    margin: 0 auto 3rem;
    position: relative;
}

.steps-container::before {
    content: '';
    position: absolute;
    left: 20px;
    top: 20px;
    bottom: 20px;
    width: 2px;
    background: linear-gradient(to bottom, var(--brand-primary), var(--brand-secondary), transparent);
    opacity: 0.3;
}

.step-row {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 2rem;
    position: relative;
}

.step-circle {
    width: 42px;
    height: 42px;
    background: #050505;
    border: 2px solid var(--brand-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    color: var(--brand-primary);
    z-index: 2;
    flex-shrink: 0;
    box-shadow: 0 0 20px rgba(124, 58, 237, 0.3);
}

.step-content {
    padding-top: 5px;
}

.step-content h4 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: #fff;
}

.step-content p {
    color: var(--text-dim);
    line-height: 1.7;
}

/* Redefined FAQ */
.faq-redesign-wrap {
    max-width: 850px;
    margin: 0 auto 3rem;
}

.faq-glass-item {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    margin-bottom: 1rem;
    transition: all 0.3s ease;
}

.faq-glass-item.active {
    background: rgba(124, 58, 237, 0.05);
    border-color: rgba(124, 58, 237, 0.3);
}

.faq-trigger {
    padding: 1.5rem;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
    color: #eee;
}

.faq-trigger i {
    transition: transform 0.3s ease;
    color: var(--brand-primary);
}

.faq-glass-item.active .faq-trigger i {
    transform: rotate(180deg);
}

.faq-body {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
    padding: 0 1.5rem;
    color: var(--text-dim);
    line-height: 1.7;
}

.faq-glass-item.active .faq-body {
    max-height: 200px;
    padding-bottom: 1.5rem;
}

/* Modern CTA */
.cta-glass-banner {
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.9), rgba(219, 39, 119, 0.9));
    padding: 3rem 1.5rem;
    border-radius: 40px;
    text-align: center;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.cta-glass-banner::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('https://www.transparenttextures.com/patterns/carbon-fibre.png');
    opacity: 0.05;
    pointer-events: none;
}

.cta-glass-banner h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    color: #fff;
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 1;
}

.cta-glass-banner p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.125rem;
    margin-bottom: 3rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    position: relative;
    z-index: 1;
}

.btn-modern {
    background: #fff;
    color: #000;
    padding: 1.25rem 3.5rem;
    border-radius: 100px;
    font-weight: 800;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
    font-size: 1rem;
    position: relative;
    z-index: 1;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.btn-modern:hover {
    transform: scale(1.05) translateY(-2px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
    background: var(--brand-primary);
    color: #fff;
}

/* Responsive Fixes */
@media (max-width: 992px) {}

@media (max-width: 768px) {}

/* ============================================
   AGENT APPLICATION MODAL STYLES
   ============================================ */
/* Fix SweetAlert z-index to appear above modals */
.swal2-container {
    z-index: 10000 !important;
}

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(8px);
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    transition: opacity 0.3s ease;
}

.modal-overlay.active {
    display: flex !important;
    opacity: 1;
    visibility: visible;
}

.modal-glass-content {
    background: rgba(20, 20, 20, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    border-radius: 20px;
    padding: 1.5rem 2rem;
    width: 90%;
    max-width: 500px;
    position: relative;
    transform: translateY(20px);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    max-height: 90vh;
    overflow-y: auto;
}

.modal-overlay.active .modal-glass-content {
    transform: translateY(0);
}

.modal-close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: #fff;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.modal-close:hover {
    background: rgba(255, 77, 77, 0.2);
    color: #ff4d4d;
    transform: rotate(90deg);
}

.modal-header {
    text-align: center;
    margin-bottom: 1.25rem;
}

.modal-header h3 {
    font-size: 1.75rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    background: linear-gradient(135deg, #fff 30%, rgba(255, 255, 255, 0.7));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.modal-header p {
    color: var(--text-dim);
    font-size: 0.95rem;
}

.agent-form .form-group {
    margin-bottom: 1rem;
}

.agent-form label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #e0e0e0;
    font-size: 0.9rem;
}

.glass-input {
    width: 100%;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    color: #fff;
    font-size: 1rem;
    font-family: inherit;
    transition: all 0.3s ease;
}

.glass-input:focus {
    outline: none;
    border-color: var(--brand-primary);
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.2);
}

.file-upload-wrapper {
    position: relative;
    width: 100%;
}

.hidden-file-input {
    position: absolute;
    width: 0.1px;
    height: 0.1px;
    opacity: 0;
    overflow: hidden;
    z-index: -1;
}

/* Orphaned properties removed */

.file-upload-label:hover {
    border-color: var(--brand-primary);
    color: #fff;
    background: rgba(124, 58, 237, 0.05);
}

.file-upload-label i {
    font-size: 1.25rem;
    /* Orphan removed */
}


/* Contextual Sizing */
.coin-xs {
    width: 12px !important;
    height: 12px !important;
    vertical-align: middle;
}

.coin-sm {
    width: 16px !important;
    height: 16px !important;
    vertical-align: middle;
}

.coin-md {
    width: 22px !important;
    height: 22px !important;
    vertical-align: middle;
}

.coin-lg {
    width: 30px !important;
    height: 30px !important;
    vertical-align: middle;
}

.coin-xl {
    width: 50px !important;
    height: 50px !important;
    vertical-align: middle;
}

/* Enhanced Card Icons */
.stat-card .card-icon {
    position: absolute;
    top: 31%;
    right: 35px;
    font-size: 2.5rem;
    width: 60px;
    height: 60px;
    opacity: 0.15;
    pointer-events: none;
    object-fit: contain;
}

/* ============================================
   CONSOLIDATED STYLES (Refactored from Views)
   ============================================ */

/* --- Common Components (Modal, Alerts, Badges) --- */

/* Modal Standard (Consolidated) */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.85);
    z-index: 9999;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(8px);
}

.modal-overlay.active {
    display: flex !important;
}

.modal-content {
    background: var(--bg-card);
    border-radius: 20px;
    padding: 30px;
    width: 90%;
    max-width: 500px;
    /* Default max-width, can vary per page */
    max-height: 90vh;
    overflow-y: auto;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
    position: relative;
}

.modal-content .close-modal {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 1.5rem;
    cursor: pointer;
    position: absolute;
    top: 20px;
    right: 20px;
}

/* Forms (Standardizing) */
.form-control {
    width: 100%;
    background-color: #1a1a1a;
    border: 1px solid #333;
    border-radius: 12px;
    padding: 14px 18px;
    color: white;
    font-weight: 500;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary);
    background-color: #222;
}

textarea.form-control {
    min-height: 100px;
    resize: vertical;
}

/* Status Badges */
/* Old Status Badges Removed (Merged into line 3046+) */

/* Same as pending */

/* Alerts */
.alert {
    padding: 15px;
    border-radius: 12px;
    margin-bottom: 20px;
    font-weight: 600;
    font-size: 0.9rem;
}

.alert-error {
    background: rgba(255, 77, 77, 0.1);
    color: #ff4d4d;
    border: 1px solid rgba(255, 77, 77, 0.2);
}

.alert-success {
    background: rgba(0, 255, 136, 0.1);
    color: #00ff88;
    border: 1px solid rgba(0, 255, 136, 0.2);
}

/* Original Card (Generic Content Card) */
.original-card {
    background: var(--bg-card);
    border-radius: 15px;
    /* Use px if var not defined, assuming 15px based on previous usages */
    padding: 20px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    margin-bottom: 20px;
    /* Default margin */
    /* overflow: hidden; Removed global overflow hidden to match specific usage if needed, but safe to keep off usually */
}

/* --- Auth Pages (Login, Register, Forgot Password) --- */
.login-container,
.register-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px;
    background: var(--bg-black);
}

.login-card,
.register-card {
    background: var(--bg-card);
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    width: 100%;
    max-width: 420px;
    /* Default for login */
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.register-card {
    max-width: 680px;
    /* Wider for register */
}

.register-card .card-body {
    padding: 15px 25px;
}

.card-header {
    background: linear-gradient(135deg, var(--primary) 0%, #5b21b6 100%);
    padding: 25px 20px;
    text-align: center;
    color: white;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.register-card .card-header {
    padding: 10px 20px;
    /* Tighter header for register */
}

.card-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 5px;
}

.register-card .card-title {
    font-size: 1.15rem;
}

.card-subtitle {
    opacity: 0.8;
    font-size: 0.9rem;
    margin: 0;
}

.brand-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 15px;
}

.card-body {
    padding: 30px;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px 15px;
}



.form-footer {
    font-size: 0.85rem;
    margin-top: 10px;
    text-align: center;
}

.form-footer a,
.back-link {
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s;
}

.form-footer a:hover,
.back-link:hover {
    color: var(--primary);
}


.form-input-underline:focus {
    border-bottom-color: var(--primary);
}

select.form-input-underline option {
    background: var(--bg-card);
    color: white;
}

/* --- Profile Page --- */
.profile-header {
    display: flex;
    align-items: center;
    gap: 25px;
    margin-bottom: 30px;
    padding: 25px;
    background: linear-gradient(135deg, rgba(124, 77, 255, 0.1) 0%, rgba(95, 53, 255, 0.05) 100%);
    border-radius: 20px;
    border: 1px solid rgba(124, 77, 255, 0.2);
}

.profile-avatar {
    width: 100px;
    height: 100px;
    border-radius: 20px;
    background: linear-gradient(135deg, var(--primary), #5f35ff);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    font-weight: 800;
    color: white;
    box-shadow: 0 10px 30px rgba(124, 77, 255, 0.3);
    overflow: hidden;
    position: relative;
    cursor: pointer;
}

.profile-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.profile-avatar-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s;
    border-radius: 20px;
}

.profile-avatar:hover .profile-avatar-overlay {
    opacity: 1;
}

.profile-info h2 {
    margin: 0 0 5px 0;
    font-size: 1.5rem;
}

.profile-info p {
    margin: 0;
    color: var(--text-muted);
}

.profile-stats {
    display: flex;
    gap: 30px;
    margin-top: 15px;
}

.profile-stat {
    text-align: center;
}

.profile-stat-value {
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--primary);
}

.profile-stat-label {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
}

.file-upload-label {
    display: block;
    padding: 15px;
    border: 2px dashed #333;
    border-radius: 12px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.file-upload-label:hover {
    border-color: var(--primary);
    background: rgba(124, 77, 255, 0.05);
}

/* --- Shop / Products --- */
/* Product Grid Redesign */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 15px;
    padding-bottom: 20px;
}

.product-card {
    background: #111;
    /* Very dark background */
    border-radius: 16px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #222;
    display: flex;
    flex-direction: column;
    position: relative;
    padding: 0;
    /* Ensure no padding */
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.5);
    border-color: #333;
}

.product-image {
    width: 100%;
    height: 160px;
    /* Taller image */
    object-fit: cover;
    display: block;
}

.product-info {
    padding: 15px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.product-name-wrapper {
    display: flex;
    align-items: center;
    margin-bottom: 8px;
}

.product-name {
    font-weight: 800;
    font-size: 1.1rem;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 0;
}


.grid-category-icon {
    height: 28px;
    width: 28px;
    background: #ff4757;
    border-radius: 50%;
    padding: 5px;
    object-fit: contain;
    box-shadow: 0 0 10px rgba(255, 71, 87, 0.4);
    flex-shrink: 0;
    margin-left: 8px;
}

.product-price {
    color: #ffd700;
    font-size: 1.5rem;
    /* Large price */
    font-weight: 800;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
}

.custom-coin-icon.coin-md {
    width: 24px;
    height: 24px;
    margin-right: 8px;
}

.product-desc {
    color: #888;
    font-size: 0.85rem;
    margin-bottom: 15px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: block;
}

/* Updated Button Style */
.buy-btn {
    width: 100%;
    background: #6c5ce7;
    /* Purple to match reference 1 */
    color: white;
    border: none;
    padding: 10px;
    border-radius: 8px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 0.9rem;
    margin-top: auto;
}

.buy-btn:hover {
    background: #5f27cd;
    transform: scale(1.02);
}

.category-filter {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.category-btn {
    background: #1a1a1a;
    border: none;
    color: var(--text-muted);
    padding: 10px 20px;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.category-btn:hover,
.category-btn.active {
    background: var(--primary);
    color: white;
}

/* Product Details (Unified) */
.product-unified-wrapper {
    background: rgba(26, 27, 32, 0.7);
    backdrop-filter: blur(20px);
    border-radius: 24px;
    padding: 20px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    display: grid;
    grid-template-columns: 1fr;
    gap: 25px;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.4);
}

@media(min-width: 992px) {
    .product-unified-wrapper {
        grid-template-columns: 400px 1fr;
    }
}

.gallery-container .main-image {
    width: 100%;
    height: 100%;
    max-height: 500px;
    object-fit: cover;
    border-radius: 16px;
    background: #111;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.product-content-side {
    display: flex;
    flex-direction: column;
    gap: 5px;
    text-align: left;
    align-items: flex-start;
}

.price-tag {
    background: rgba(255, 255, 255, 0.05);
    padding: 10px 18px;
    border-radius: 16px;
    display: flex;
    align-items: baseline;
    gap: 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
}

.price-current {
    font-size: 1.4rem;
    font-weight: 800;
    color: #ffd700;
}

.btn-buy-now {
    width: 100%;
    background: linear-gradient(135deg, var(--primary), #651fff);
    color: white;
    padding: 12px;
    border: none;
    border-radius: 12px;
    font-weight: 800;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    text-transform: uppercase;
}

.btn-buy-now:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 35px rgba(124, 77, 255, 0.5);
}

.specs-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    margin-bottom: 15px;
    width: 100%;
}

@media(min-width: 768px) {
    .specs-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.spec-item {
    background: rgba(255, 255, 255, 0.03);
    border-radius: 10px;
    padding: 8px 12px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.spec.match-prize .entry-fee,
.match-prize .per-kill-row {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-top: 4px;
}

.match-prize .fee-label,
.match-prize .per-kill-label {
    font-size: 0.65rem;
    color: var(--text-muted);
    font-weight: 600;
    text-transform: uppercase;
}

.match-prize .fee-amount,
.match-prize .per-kill-amount {
    font-size: 0.85rem;
    font-weight: 700;
    color: #fff;
}

.match-prize .per-kill-amount {
    color: #00ff88;
}

.spec-label {
    font-size: 0.65rem;
    color: var(--text-muted);
    text-transform: uppercase;
    font-weight: 700;
}

.spec-value {
    font-size: 0.85rem;
    font-weight: 700;
    color: white;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Old Order Styles Removed (Merged into line 2960+) */

/* ============================================
   ORDERS PAGE
   ============================================ */
.order-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
    margin-bottom: 25px;
}

.stat-card {
    background: rgba(26, 27, 32, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    transition: all 0.3s ease;
}

.stat-card:hover {
    background: rgba(26, 27, 32, 0.7);
    border-color: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

.stat-value {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.stat-label {
    font-size: 0.85rem;
    color: var(--text-muted);
    text-transform: uppercase;
    font-weight: 600;
}

.order-card {
    background: var(--bg-card);
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    margin-bottom: 20px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.order-card:hover {
    border-color: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(124, 77, 255, 0.15);
}

.order-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    background: rgba(255, 255, 255, 0.02);
}

.order-number {
    font-weight: 800;
    font-size: 1.1rem;
    margin-bottom: 3px;
}

.order-date {
    font-size: 0.75rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 5px;
}

.status-badge {
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.status-pending {
    background: rgba(255, 193, 7, 0.1);
    color: #ffc107;
    border: 1px solid rgba(255, 193, 7, 0.3);
}

.status-processing {
    background: rgba(33, 150, 243, 0.1);
    color: #2196f3;
    border: 1px solid rgba(33, 150, 243, 0.3);
}

.status-shipped {
    background: rgba(156, 39, 176, 0.1);
    color: #9c27b0;
    border: 1px solid rgba(156, 39, 176, 0.3);
}

.status-delivered {
    background: rgba(0, 255, 136, 0.1);
    color: #00ff88;
    border: 1px solid rgba(0, 255, 136, 0.3);
}

.status-cancelled {
    background: rgba(255, 77, 77, 0.1);
    color: #ff4d4d;
    border: 1px solid rgba(255, 77, 77, 0.3);
}

.order-body {
    padding: 20px;
    display: flex;
    gap: 20px;
    align-items: center;
}

.order-body .product-image {
    width: 80px;
    height: 80px;
    border-radius: 12px;
    object-fit: cover;
    flex-shrink: 0;
    background: #111;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.product-details {
    flex: 1;
    min-width: 0;
}

.product-name {
    font-weight: 800;
    font-size: 1.1rem;
    margin-bottom: 10px;
    color: #fff;
}

.product-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.meta-item i {
    color: var(--primary);
}

.order-price-section {
    text-align: right;
    flex-shrink: 0;
}

.order-amount {
    font-size: 1.5rem;
    font-weight: 800;
    color: #ffd700;
    display: flex;
    align-items: center;
    gap: 8px;
}

.order-footer {
    padding: 15px 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    background: rgba(255, 255, 255, 0.02);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.tracking-info {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.view-details-btn {
    background: rgba(124, 77, 255, 0.1);
    color: var(--primary);
    border: 1px solid rgba(124, 77, 255, 0.2);
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.view-details-btn:hover {
    background: rgba(124, 77, 255, 0.2);
    transform: translateY(-1px);
}

/* Responsive adjustments for orders */
@media (max-width: 768px) {
    .order-stats {
        grid-template-columns: repeat(2, 1fr);
    }

    .order-body {
        flex-direction: column;
        align-items: flex-start;
    }

    .order-body .product-image {
        width: 100%;
        height: 200px;
    }

    .order-price-section {
        text-align: left;
        width: 100%;
    }

    .product-meta {
        flex-direction: column;
        gap: 8px;
    }
}


/* Success Page */
.success-card {
    background: var(--bg-card);
    border-radius: 20px;
    padding: 40px;
    text-align: center;
    max-width: 500px;
    margin: 40px auto;
    border: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
}

.success-icon {
    width: 100px;
    height: 100px;
    background: rgba(0, 200, 150, 0.1);
    color: #00c896;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
    margin: 0 auto 25px;
}

/* Wallet specific */
.balance-card {
    background: linear-gradient(135deg, var(--primary) 0%, #5f35ff 100%);
    border-radius: 20px;
    padding: 30px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.balance-card::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
}

.amount-presets {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    margin-top: 10px;
}

.amount-btn {
    background: #1a1a1a;
    border: 1px solid #333;
    color: white;
    padding: 10px;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.amount-btn:hover,
.amount-btn.active {
    background: var(--primary);
    border-color: var(--primary);
}

/* Support specific */
.ticket-card {
    background: var(--bg-card);
    border-radius: 15px;
    padding: 20px;
    margin-bottom: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.ticket-card:hover {
    border-color: var(--primary);
    transform: translateY(-2px);
}

.message-bubble {
    max-width: 80%;
    padding: 15px 20px;
    border-radius: 15px;
    margin-bottom: 15px;
}

.message-user {
    background: var(--primary);
    margin-left: auto;
    border-bottom-right-radius: 5px;
}

.message-support {
    background: #2a2a2a;
    margin-right: auto;
    border-bottom-left-radius: 5px;
}

/* ============================================
   MATCHES PAGE
   ============================================ */
/* ============================================
   TOURNAMENT TABS - Compact Pill Style
   ============================================ */
.match-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 25px;
    background: #161616;
    border-radius: 14px;
    padding: 6px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    width: fit-content;
}

.match-tab {
    background: transparent;
    border: none;
    color: #a1a1aa;
    padding: 10px 24px;
    font-weight: bold;
    font-size: 0.9rem;
    cursor: pointer;
    border-radius: 10px;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.match-tab i {
    font-size: 0.85rem;
    color: #a1a1aa;
    transition: color 0.2s ease;
}

.match-tab:hover {
    color: #e4e4e7;
    background: rgba(255, 255, 255, 0.05);
}

.match-tab:hover i {
    color: #e4e4e7;
}

.match-tab.active {
    color: #ffffff;
    background: #8b5cf6; /* Matches the softer purple in the screenshot */
    box-shadow: none;
}

.match-tab.active i {
    color: #ffffff;
}

/* ============================================
   TOURNAMENT GRID
   ============================================ */
.match-grid {
    display: flex;
    flex-direction: column;
    gap: 16px;
    max-height: calc(100vh - 280px);
    overflow-y: auto;
    padding-right: 6px;
    scrollbar-width: thin;
    scrollbar-color: rgba(124, 77, 255, 0.3) transparent;
}

.match-grid::-webkit-scrollbar {
    width: 5px;
}

.match-grid::-webkit-scrollbar-track {
    background: transparent;
}

.match-grid::-webkit-scrollbar-thumb {
    background: rgba(124, 77, 255, 0.3);
    border-radius: 10px;
}

/* ============================================
   TOURNAMENT CARD - Redesigned Layout
   ============================================ */
.match-card {
    background: #1c1c1c;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    gap: 0;
    position: relative;
    overflow: hidden;
    flex-shrink: 0;
}

.match-card:hover {
    border-color: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

/* Top Section - Icon, Info, and Prize */
.match-card-top {
    display: grid;
    grid-template-columns: 60px 1fr auto;
    gap: 14px;
    padding: 16px 16px 12px;
    align-items: start;
}

/* Match Icon / Game Image */
.match-icon {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--primary), #5f35ff);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    flex-shrink: 0;
}

.match-icon i {
    color: rgba(255, 255, 255, 0.9);
}

/* Match Details Area */
.match-details {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-width: 0;
}

.match-title {
    font-weight: 700;
    font-size: calc(1rem - 2px);
    color: #fff;
    margin-bottom: 8px;
    line-height: 1.3;
}

/* Match Info Items - Compact Row */
.match-info {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 12px;
}

.match-info-item {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 0.78rem;
    color: #999;
}

.match-info-item i {
    font-size: 0.72rem;
}

.match-info-item .fa-crosshairs {
    color: #00ff88;
}

/* Prize Section */
.match-prize {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: center;
    padding-left: 16px;
    border-left: 1px solid rgba(255, 255, 255, 0.06);
    min-width: 90px;
}

.prize-label {
    font-size: 0.65rem;
    font-weight: 600;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 2px;
}

.prize-amount {
    font-size: 1.3rem;
    font-weight: 800;
    color: #ffc107;
    display: flex;
    align-items: center;
    gap: 5px;
    line-height: 1;
}

.prize-amount .custom-coin-icon {
    width: 20px;
    height: 20px;
}

.match-prize .entry-fee,
.match-prize .per-kill-row {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-top: 4px;
}

.match-prize .fee-label,
.match-prize .per-kill-label {
    font-size: 0.65rem;
    color: var(--text-muted);
    font-weight: 600;
    text-transform: uppercase;
}

.match-prize .fee-amount,
.match-prize .per-kill-amount {
    font-size: 0.85rem;
    font-weight: 700;
    color: #fff;
}

.match-prize .per-kill-amount {
    color: #00ff88;
}

/* Progress Section - Joined row + progress bar */
.match-card-progress {
    padding: 0 16px 12px;
}

.match-progress-info {
    display: flex;
    justify-content: space-between;
    font-size: 0.72rem;
    color: #888;
    margin-bottom: 6px;
}

.match-progress-info .joined-count {
    display: flex;
    align-items: center;
    gap: 4px;
}

.match-progress-info .joined-percent {
    font-weight: 600;
    color: #00ff88;
}

.progress-bar-bg {
    background: #2a2a2a;
    height: 5px;
    border-radius: 3px;
    overflow: hidden;
}

.progress-bar-fill {
    background: linear-gradient(90deg, #00ff88, #00cc6a);
    border-radius: 3px;
    height: 100%;
    transition: width 0.5s ease;
}

/* ============================================
   DETAIL HEADER BANNER
   ============================================ */
.detail-header-banner {
    position: relative;
    overflow: hidden;
    border-radius: 14px;
    margin-bottom: 20px;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.detail-header-banner .banner-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 0;
}

.detail-header-banner .banner-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.detail-header-banner .banner-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(15, 15, 19, 0.95) 0%, rgba(15, 15, 19, 0.6) 50%, rgba(15, 15, 19, 0.8) 100%);
    z-index: 1;
}

.detail-header-banner .banner-content {
    position: relative;
    z-index: 2;
    padding: 24px;
}

.detail-header-banner .banner-title {
    font-size: 1.8rem;
    font-weight: 800;
    margin-bottom: 8px;
    color: #fff;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.detail-header-banner .banner-subtitle {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.95rem;
    margin: 0;
}

.detail-header-banner .banner-meta {
    display: flex;
    gap: 20px;
    margin-top: 12px;
    flex-wrap: wrap;
}

.detail-header-banner .banner-meta-item {
    display: flex;
    align-items: center;
    gap: 6px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.85rem;
}

.detail-header-banner .banner-meta-item i {
    color: var(--primary);
}

/* Action Buttons Row - Full Width */
.match-actions {
    padding: 0 16px 16px;
}

/* Match Card - Enhanced Clickable Effects */
.match-card {
    cursor: pointer;
}

.match-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 14px;
    border: 2px solid transparent;
    transition: all 0.3s ease;
    pointer-events: none;
    z-index: 1;
}

.match-card:hover::before {
    border-color: rgba(124, 77, 255, 0.4);
    box-shadow: 0 0 20px rgba(124, 77, 255, 0.2);
}

/* Match Icon with Image Support */
.match-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 12px;
}

/* Progress bar for Play Now cards without players count */
.match-card-progress.simple {
    padding: 0 16px 8px;
}

.match-card-progress.simple .progress-bar-bg {
    height: 6px;
}

/* Room Details on Match Cards */
.match-room-details {
    padding: 10px 16px;
    background: rgba(0, 255, 136, 0.08);
    border-top: 1px solid rgba(0, 255, 136, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
}

.match-room-details.pending {
    background: rgba(255, 193, 7, 0.08);
    border-top: 1px solid rgba(255, 193, 7, 0.15);
    color: #ffc107;
    font-size: 0.78rem;
    gap: 6px;
}

.match-room-details.pending i {
    color: #ffc107;
}

.match-room-details .room-detail-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    font-weight: 600;
}

.match-room-details .room-code {
    color: #00ff88;
    font-family: monospace;
    font-size: 1rem;
    font-weight: 700;
}

.match-room-details .room-divider {
    color: rgba(255, 255, 255, 0.3);
}

.match-room-details .room-password {
    color: #fff;
    font-family: monospace;
    font-size: 0.9rem;
}

/* Match Card Banner Background */
.match-card-banner {
    position: relative;
}

.match-card-banner .match-card-banner-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-size: cover;
    background-position: center;
    opacity: 0.2;
    z-index: 0;
    transition: opacity 0.3s ease;
}

.match-card-banner:hover .match-card-banner-bg {
    opacity: 0.35;
}

.match-card-banner .match-card-banner-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, rgba(28, 28, 28, 0.85), rgba(28, 28, 28, 0.95));
    z-index: 0;
}

.match-card-banner .match-card-top,
.match-card-banner .match-card-progress,
.match-card-banner .match-actions,
.match-card-banner .match-room-details {
    position: relative;
    z-index: 1;
}

/* Full Banner Card - Enhanced Background */
.match-card-full-banner {
    min-height: 160px;
}

.match-card-full-banner .match-card-banner-bg {
    opacity: 0.35;
}

.match-card-full-banner:hover .match-card-banner-bg {
    opacity: 0.5;
}

.match-card-full-banner .match-card-banner-overlay {
    background: linear-gradient(135deg, rgba(20, 20, 20, 0.9) 0%, rgba(28, 28, 28, 0.85) 50%, rgba(20, 20, 20, 0.9) 100%);
}

.match-card-full-banner .match-icon {
    width: 70px;
    height: 70px;
    border-radius: 14px;
}

/* Join Buttons */
.join-btn {
    width: 100%;
    background: #00ff88;
    color: #000;
    border: none;
    padding: 11px 16px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
}

.join-btn:hover {
    background: #00e67a;
    transform: translateY(-1px);
}

.join-btn:disabled {
    cursor: default;
    background: #00ff88 !important;
    color: #000 !important;
    opacity: 1;
}

.view-btn {
    width: 100%;
    background: var(--primary);
    color: #fff;
    border: none;
    padding: 11px 16px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.view-btn:hover {
    background: #6a3de8;
    transform: translateY(-1px);
}

/* Status badge for Live */
.status-badge.status-live {
    font-size: 0.75rem;
    padding: 0;
    background: transparent;
    color: #fff;
    font-weight: bold;
    text-transform: uppercase;
}

/* Joined status button override */
.join-btn[disabled][style*="background: #00ff88"],
.join-btn[disabled][style*="background:#00ff88"] {
    box-shadow: 0 4px 14px rgba(0, 255, 136, 0.15) !important;
}

/* Status badge for Live */
.status-badge.status-live {
    font-size: 0.72rem;
    padding: 3px 10px;
    border-radius: 20px;
    background: rgba(255, 68, 68, 0.15);
    color: #ff4d4d;
    font-weight: 700;
    letter-spacing: 0.5px;
    animation: pulse-live 2s infinite;
}

@keyframes pulse-live {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

/* ============================================
   LEADERBOARD PAGE
   ============================================ */
.rank-badge {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 0.9rem;
}

.rank-1 {
    background: linear-gradient(135deg, #ffd700, #ffaa00);
    color: #000;
}

.rank-2 {
    background: linear-gradient(135deg, #c0c0c0, #a0a0a0);
    color: #000;
}

.rank-3 {
    background: linear-gradient(135deg, #cd7f32, #a0522d);
    color: #fff;
}

.rank-other {
    background: #2a2a2a;
    color: var(--text-muted);
}

.current-user-row {
    background: rgba(124, 77, 255, 0.15) !important;
    border-left: 3px solid var(--primary);
}

.filter-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.filter-btn {
    background: #1a1a1a;
    border: none;
    color: var(--text-muted);
    padding: 10px 20px;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none !important;
    transition: all 0.3s ease;
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--primary);
    color: white;
}

/* ============================================
   HOME PAGE (Games)
   ============================================ */
.top-header {
    background: linear-gradient(135deg, #2196F3 0%, #1976D2 100%);
    color: white;
    padding: 16px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-title {
    font-size: 1.5rem;
    font-weight: 700;
}

.header-balance {
    background: white;
    color: #333;
    padding: 8px 16px;
    border-radius: 25px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

.header-balance .coin-icon {
    width: 24px;
    height: 24px;
    background: #FFB300;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
}

.main-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    padding-bottom: 80px;
}

.banner-section {
    background: linear-gradient(135deg, #5C6BC0 0%, #7E57C2 100%);
    border-radius: 16px;
    padding: 30px;
    margin-bottom: 24px;
    color: white;
    position: relative;
    overflow: hidden;
    min-height: 180px;
}

.banner-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.banner-subtitle {
    opacity: 0.9;
}

.banner-image {
    position: absolute;
    right: 20px;
    bottom: 0;
    max-height: 160px;
}

.banner-dots {
    display: flex;
    gap: 8px;
    margin-top: 20px;
}

.tabs-container {
    display: flex;
    gap: 0;
    margin-bottom: 24px;
    background: white;
    border-radius: 30px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.tabs-container .tab-btn {
    flex: 1;
    padding: 14px 24px;
    border: none;
    background: transparent;
    cursor: pointer;
    font-weight: 600;
    font-size: 1.3rem;
    color: #666;
    transition: all 0.3s;
}

.tabs-container .tab-btn.active {
    background: linear-gradient(135deg, #2196F3 0%, #1976D2 100%);
    color: white;
}

.games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 16px;
}

.game-card-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.game-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s;
    cursor: pointer;
    text-decoration: none;
    color: inherit;
}

.game-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
}

.game-image {
    width: 100%;
    height: 140px;
    object-fit: cover;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.game-name {
    padding: 12px;
    font-weight: 600;
    text-align: center;
    font-size: 0.9rem;
}

.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, #2196F3 0%, #1976D2 100%);
    display: flex;
    justify-content: space-around;
    padding: 12px 0;
    z-index: 100;
}

.nav-item.active,
.nav-item:hover {
    color: white;
}

.nav-item i {
    font-size: 1.25rem;
    margin-bottom: 4px;
}

.nav-icon-earn {
    width: 28px;
    height: 28px;
    background: #FFB300;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 4px;
}

/* ============================================
   CHECKOUT PAGE
   ============================================ */
.checkout-container {
    width: 100%;
    height: 100%;
}

.checkout-card {
    background: var(--bg-card);
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.05);
    height: 75%;
}

.checkout-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 30px;
}

.product-summary {
    display: flex;
    align-items: center;
    gap: 15px;
    background: rgba(255, 255, 255, 0.03);
    padding: 12px;
    border-radius: 15px;
    margin-bottom: 20px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.product-img-thumb {
    width: 70px;
    height: 70px;
    border-radius: 12px;
    object-fit: cover;
    background: #2a2a2a;
}

.product-info h4 {
    margin: 0 0 4px 0;
    font-size: 1.05rem;
    font-weight: 700;
}

.price-badge {
    background: rgba(255, 215, 0, 0.1);
    color: #ffd700;
    padding: 3px 10px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.85rem;
    display: inline-block;
}

.balance-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding: 12px;
    background: rgba(124, 77, 255, 0.1);
    border-radius: 12px;
    border: 1px solid rgba(124, 77, 255, 0.2);
}

.balance-label {
    color: var(--text-muted);
    font-size: 0.85rem;
}

.balance-amt {
    font-weight: 700;
    font-size: 1rem;
    color: white;
}

.form-section-title {
    color: var(--text-muted);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 12px;
    font-weight: 700;
}

.custom-checkbox {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    user-select: none;
    color: var(--text-muted);
    font-size: 0.85rem;
}

.custom-checkbox input {
    width: 16px;
    height: 16px;
    accent-color: var(--primary);
    cursor: pointer;
}



/* ============================================
   LIVE FEED WIDGET
   ============================================ */
#liveFeedScroll {
    animation: liveFeedTicker 25s linear infinite;
}

@keyframes liveFeedTicker {
    0% {
        transform: translateX(100%);
    }

    100% {
        transform: translateX(-100%);
    }
}

@keyframes pulse-icon {
    0% {
        transform: scale(1);
        opacity: 1;
    }

    50% {
        transform: scale(1.2);
        opacity: 0.7;
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}

/* ============================================
   ORDER PAGE STYLES (MATCHING REFERENCE)
   ============================================ */

/* Order Stats Grid */
.order-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
    margin-bottom: 25px;
}

.order-stats .stat-card {
    background: #1e1e1e;
    border-radius: 12px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 120px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.order-stats .stat-value {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 5px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.order-stats .stat-label {
    color: #a0a0a0;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Order Card */
.order-card {
    background: #1e1e1e;
    border-radius: 15px;
    padding: 20px;
    margin-bottom: 15px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.order-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.order-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.order-number {
    font-size: 1.1rem;
    font-weight: 800;
    color: white;
    margin-bottom: 4px;
}

.order-date {
    font-size: 0.85rem;
    color: #a0a0a0;
}

.order-date i {
    margin-right: 5px;
    color: #666;
}

/* Status Badges */
.status-badge {
    padding: 6px 12px;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 5px;
}

.status-pending {
    background: rgba(255, 193, 7, 0.15);
    color: #ffc107;
    border: 1px solid rgba(255, 193, 7, 0.3);
}

.status-processing {
    background: rgba(100, 181, 246, 0.15);
    color: #64b5f6;
    border: 1px solid rgba(100, 181, 246, 0.3);
}

.status-shipped {
    background: rgba(174, 213, 129, 0.15);
    color: #aed581;
    border: 1px solid rgba(174, 213, 129, 0.3);
}

.status-delivered {
    background: rgba(46, 204, 113, 0.15);
    color: #2ecc71;
    border: 1px solid rgba(46, 204, 113, 0.3);
}

.status-cancelled {
    background: rgba(255, 77, 77, 0.15);
    color: #ff4d4d;
    border: 1px solid rgba(255, 77, 77, 0.3);
}

/* Order Body */
.order-body {
    display: flex;
    align-items: center;
    gap: 20px;
}


.product-details {
    flex: 1;
}

.product-name {
    /* Inherits global .product-name styles */
}

.product-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.meta-item {
    font-size: 0.85rem;
    color: #a0a0a0;
    display: flex;
    align-items: center;
    gap: 6px;
    background: #252525;
    padding: 4px 10px;
    border-radius: 6px;
}

.meta-item i {
    color: #666;
    font-size: 0.8rem;
}

/* Price Section */
.order-price-section {
    text-align: right;
    min-width: 100px;
}

.order-amount {
    font-size: 1.3rem;
    font-weight: 800;
    color: #ffd700;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 5px;
}

/* Footer & Actions */
.order-footer {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.tracking-info {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #a0a0a0;
    font-size: 0.9rem;
}

.view-details-btn {
    background: rgba(124, 77, 255, 0.1);
    color: #7c4dff;
    border: 1px solid rgba(124, 77, 255, 0.2);
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.view-details-btn:hover {
    background: rgba(124, 77, 255, 0.2);
    transform: translateY(-1px);
}

/* Responsive */




/* ============================================
   SIDEBAR COLLAPSE & MOBILE LOGIC
   ============================================ */

/* Desktop Collapse (Applied when .collapsed-sidebar is on app-layout) */
.app-layout.collapsed-sidebar .sidebar {
    width: 80px;
}

.app-layout.collapsed-sidebar .sidebar .user-profile-box {
    display: block;
    /* Show the box */
    padding: 10px 5px;
}

.app-layout.collapsed-sidebar .sidebar .user-profile-box .user-name,
.app-layout.collapsed-sidebar .sidebar .user-profile-box .user-balance-small {
    display: none;
    /* Hide text details */
}

.app-layout.collapsed-sidebar .sidebar .user-profile-box .avatar-box {
    margin: 0 auto;
    width: 40px;
    height: 40px;
    font-size: 1rem;
}

.app-layout.collapsed-sidebar .nav-link span,
.app-layout.collapsed-sidebar .nav-divider-text {
    display: none;
}

.app-layout.collapsed-sidebar .nav-link {
    justify-content: center;
    padding: 12px 0;
}

.app-layout.collapsed-sidebar .nav-link i {
    margin-right: 0;
    font-size: 1.2rem;
}

.app-layout.collapsed-sidebar .main-wrapper {
    margin-left: 80px;
    width: calc(100% - 80px);
}

/* Mobile Responsive Sidebar */


/* ============================================
   NOTIFICATION STYLES
   ============================================ */
.nav-notification {
    position: relative;
}

.notification-dropdown {
    position: absolute;
    top: 50px;
    right: -10px;
    width: 300px;
    background: #1a1a1a;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1000;
}

.nav-notification.active .notification-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.notif-header {
    padding: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.notif-header span {
    font-weight: 700;
    font-size: 0.95rem;
}

.notif-header small {
    color: var(--primary);
    cursor: pointer;
    font-size: 0.75rem;
}

.notif-list {
    max-height: 350px;
    overflow-y: auto;
}

.notif-item {
    padding: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    gap: 15px;
    transition: background 0.2s;
}

.notif-item:hover {
    background: rgba(255, 255, 255, 0.03);
}

.notif-item.unread {
    background: rgba(124, 77, 255, 0.05);
    border-left: 3px solid var(--primary);
}

.notif-icon {
    width: 35px;
    height: 35px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
}

.notif-item.unread .notif-icon {
    background: var(--primary);
    color: white;
}

.notif-content p {
    margin: 0 0 5px 0;
    font-size: 0.85rem;
    line-height: 1.4;
}

.notif-content span {
    font-size: 0.7rem;
    color: var(--text-muted);
}

.notif-empty {
    padding: 40px;
    text-align: center;
    color: var(--text-muted);
}

.notif-empty i {
    font-size: 2rem;
    margin-bottom: 10px;
    opacity: 0.3;
}

/* ============================================
   BEAUTIFUL ALERT COMPONENT
   ============================================ */
.beautiful-alert {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    padding: 20px 25px;
    border-radius: 16px;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
    animation: slideInDown 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

@keyframes slideInDown {
    from {
        opacity: 0;
        transform: translateY(-30px) scale(0.9);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.beautiful-alert::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.05) 100%);
    z-index: 0;
    pointer-events: none;
}

.beautiful-alert>* {
    position: relative;
    z-index: 1;
}

/* Success Alert - Green Theme */
.beautiful-alert.success-alert {
    background: linear-gradient(135deg, rgba(46, 204, 113, 0.15) 0%, rgba(39, 174, 96, 0.1) 100%);
    border-color: rgba(46, 204, 113, 0.3);
}

.beautiful-alert.success-alert::after {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(46, 204, 113, 0.1) 0%, transparent 70%);
    animation: pulse 3s ease-in-out infinite;
    pointer-events: none;
}

/* Error Alert - Fun Orange/Red Theme */
.beautiful-alert.error-alert {
    background: linear-gradient(135deg, rgba(255, 159, 0, 0.15) 0%, rgba(230, 126, 34, 0.1) 100%);
    border-color: rgba(255, 159, 0, 0.3);
}

.beautiful-alert.error-alert::after {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 159, 0, 0.15) 0%, transparent 70%);
    animation: pulse 3s ease-in-out infinite;
    pointer-events: none;
}

@keyframes pulse {

    0%,
    100% {
        opacity: 0.3;
        transform: scale(1);
    }

    50% {
        opacity: 0.6;
        transform: scale(1.1);
    }
}

/* Alert Icon */
.beautiful-alert .alert-icon {
    font-size: 2.5rem;
    line-height: 1;
    flex-shrink: 0;
    animation: bounceIn 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55) 0.2s backwards;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.2));
}

@keyframes bounceIn {
    0% {
        opacity: 0;
        transform: scale(0) rotate(-180deg);
    }

    50% {
        transform: scale(1.2) rotate(10deg);
    }

    100% {
        opacity: 1;
        transform: scale(1) rotate(0deg);
    }
}

/* Alert Content */
.beautiful-alert .alert-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.beautiful-alert .alert-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #ffffff;
    letter-spacing: 0.3px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.beautiful-alert.success-alert .alert-title {
    color: #2ecc71;
}

.beautiful-alert.error-alert .alert-title {
    color: #ff9f00;
}

.beautiful-alert .alert-message {
    font-size: 0.95rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
}

/* Responsive Design */
@media (max-width: 768px) {
    .beautiful-alert {
        padding: 18px 20px;
        gap: 12px;
    }

    .beautiful-alert .alert-icon {
        font-size: 2rem;
    }

    .beautiful-alert .alert-title {
        font-size: 1rem;
    }

    .beautiful-alert .alert-message {
        font-size: 0.9rem;
    }
}

/* Standardized Navbar Icon */
.nav-icon-uniform {
    font-size: 20px !important;
    width: 24px;
    height: 24px;
    text-align: center;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* ============================================
   PREMIUM COLORFUL CARDS (Gradients & Glows)
   ============================================ */
.premium-gradient-card {
    border-radius: var(--radius-md);
    padding: 25px;
    text-decoration: none;
    color: white !important;
    display: block;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.premium-gradient-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.4);
}

.premium-gradient-card .card-icon-wrapper {
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(5px);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
    font-size: 1.5rem;
    color: white;
}

/* Specific Gradients */
.bg-gradient-purple { background: linear-gradient(135deg, #7c4dff 0%, #3f51b5 100%) !important; }
.bg-gradient-green { background: linear-gradient(135deg, #2ecc71 0%, #15803d 100%) !important; }
.bg-gradient-orange { background: linear-gradient(135deg, #f39c12 0%, #e67e22 100%) !important; }
.bg-gradient-indigo { background: linear-gradient(135deg, #6366f1 0%, #4338ca 100%) !important; }
.bg-gradient-red { background: linear-gradient(135deg, #ef4444 0%, #b91c1c 100%) !important; }
.bg-gradient-teal { background: linear-gradient(135deg, #14b8a6 0%, #0f766e 100%) !important; }
.bg-gradient-gold { background: linear-gradient(135deg, #f59e0b 0%, #b45309 100%) !important; }

/* Glow Effects */
.glow-purple-lg { box-shadow: 0 0 20px rgba(124, 77, 255, 0.4); }
.glow-green-lg { box-shadow: 0 0 20px rgba(46, 204, 113, 0.4); }
.glow-orange-lg { box-shadow: 0 0 20px rgba(243, 156, 18, 0.4); }
.glow-indigo-lg { box-shadow: 0 0 20px rgba(99, 102, 241, 0.4); }
.glow-red-lg { box-shadow: 0 0 20px rgba(239, 68, 68, 0.4); }
.glow-teal-lg { box-shadow: 0 0 20px rgba(20, 184, 166, 0.4); }
.glow-gold-lg { box-shadow: 0 0 20px rgba(245, 158, 11, 0.4); }

/* Glassmorphism ticket card */
.ticket-card-premium {
    background: #1e1e1e;
    border-radius: var(--radius-md);
    padding: 15px 20px;
    margin-bottom: 12px;
    border-left: 4px solid var(--text-muted);
    transition: all 0.3s ease;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.ticket-card-premium:hover {
    background: #262626;
    transform: translateX(5px);
}

.ticket-card-premium.status-open { border-left-color: #ffc107 !important; }
.ticket-card-premium.status-closed { border-left-color: #00ff88 !important; }
.ticket-card-premium.status-resolved { border-left-color: #00ff88 !important; }
.ticket-card-premium.status-pending { border-left-color: #ff9800 !important; }

/* ============================================
   NOTIFICATION DROPDOWN (Premium Dark Mode)
   ============================================ */
.nav-notification.active .notification-dropdown {
    display: block;
    animation: slideDown 0.3s ease;
}

.notification-dropdown {
    position: absolute;
    top: 50px;
    right: -10px;
    width: 320px;
    background: #1a1a1a;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5);
    display: none;
    z-index: 3000;
    overflow: hidden;
}

.notif-header {
    padding: 12px 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(124, 77, 255, 0.05);
}

.notif-header span {
    font-weight: 800;
    font-size: 0.9rem;
    color: white;
}

.notif-header small {
    color: var(--primary);
    font-weight: 700;
    font-size: 0.75rem;
    transition: opacity 0.2s;
}

.notif-header small:hover {
    opacity: 0.8;
}

.notif-list {
    max-height: 350px;
    overflow-y: auto;
}

.notif-item {
    display: flex;
    gap: 12px;
    padding: 12px 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
    transition: all 0.3s ease;
    text-decoration: none;
    cursor: pointer;
}

.notif-item:hover {
    background: rgba(255, 255, 255, 0.03);
}

.notif-item.unread {
    background: rgba(124, 77, 255, 0.08);
}

.notif-icon {
    width: 32px;
    height: 32px;
    background: rgba(124, 77, 255, 0.15);
    color: var(--primary);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    flex-shrink: 0;
}

.notif-content {
    flex: 1;
}

.notif-content p {
    margin: 0 0 4px 0;
    font-size: 0.85rem;
    font-weight: 500;
    line-height: 1.4;
    color: #e0e0e0;
}

.notif-content span {
    font-size: 0.7rem;
    color: var(--text-muted);
}

.notif-empty {
    padding: 40px 20px;
    text-align: center;
    color: var(--text-muted);
}

.notif-empty i {
    font-size: 2.5rem;
    margin-bottom: 15px;
    opacity: 0.2;
}

.notif-empty p {
    font-size: 0.9rem;
    font-weight: 600;
}

@keyframes slideDown {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}
/* ---- WALLET PAGE REDESIGN CLASSES ---- */
.wallet-layout-grid {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 30px;
    padding-right: 10px;
}
.wallet-layout-grid > div {
    min-width: 0;
}

.wallet-actions-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-top: 20px;
}

.btn-wallet-action {
    border-radius: 12px;
    font-weight: 800;
    font-size: 0.95rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.3s ease;
    border: none;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    white-space: nowrap;
    padding: 15px;
}

.btn-wallet-add {
    background: white;
    color: var(--primary);
}

.btn-wallet-add:hover {
    background: #f0f0f5;
    transform: translateY(-2px);
}

.btn-wallet-withdraw {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
}

.btn-wallet-withdraw:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
}

.wallet-promo-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-top: 20px;
    padding-right: 10px;
}

/* ---- PROFILE PAGE REDESIGN CLASSES ---- */
.profile-scroll-container {
    max-height: calc(100vh - 180px);
    overflow-y: auto;
    padding-right: 10px;
}

.profile-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.profile-split-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-top: 20px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.referral-steps-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 25px;
}

.stats-grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.stats-layout-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
    margin-top: 25px;
    align-items: start;
}

.stats-history-card {
    height: calc(100vh - 350px);
}

/* ============================================================
   RESPONSIVE DESIGN — TABLET, iOS & ANDROID
   Breakpoints:
     ≤ 1024px  → Tablet (iPad, Android tablet)
     ≤ 768px   → Large mobile / landscape phone
     ≤ 480px   → Mobile portrait (iPhone, Android phone)
   ============================================================ */

/* ----- Viewport meta safety: keep scroll on mobile ----- */
@media (max-width: 1024px) {
    html, body {
        overflow: auto !important;
        overflow-x: hidden !important;
        height: auto;
    }

    /* ---- NAVBAR ---- */
    .enhanced-navbar {
        padding: 0 12px;
        height: 52px;
    }

    .nav-logo img {
        height: 30px;
    }

    .nav-balance {
        padding: 5px 10px;
        font-size: 0.82rem;
        gap: 6px;
    }

    .balance-value {
        font-size: 0.85rem !important;
    }

    .balance-label {
        font-size: 0.55rem !important;
    }

    .nav-divider {
        display: none;
    }

    /* ---- SIDEBAR: slide-over on tablet ---- */
    .sidebar {
        width: 240px;
        transform: translateX(-100%);
        transition: transform 0.3s ease;
        z-index: 1500;
        top: 52px;
        bottom: 0;
        box-shadow: 4px 0 20px rgba(0,0,0,0.5);
    }

    .sidebar.open {
        transform: translateX(0);
    }

    /* Overlay behind open sidebar */
    .sidebar-overlay {
        display: none;
        position: fixed;
        inset: 0;
        background: rgba(0,0,0,0.55);
        z-index: 1400;
        backdrop-filter: blur(2px);
    }

    .sidebar-overlay.active {
        display: block;
    }

    /* ---- MAIN WRAPPER: no left margin — full width ---- */
    .main-wrapper {
        margin-left: 0 !important;
        width: 100% !important;
        padding: 12px 16px;
        padding-top: 10px;
        min-height: calc(100vh - 52px);
        overflow-y: auto;
        padding-bottom: 85px !important;
    }

    .app-layout {
        padding-top: 52px;
    }

    /* ---- DASHBOARD CONTENT GRID ---- */
    .dashboard-content-grid {
        flex-direction: column;
        gap: 14px;
    }

    .content-left,
    .content-right {
        flex: 1 1 100%;
        width: 100%;
    }

    /* ---- STATS GRID ---- */
    .stats-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 8px;
    }

    .stat-card {
        height: 88px;
    }

    .stat-value {
        font-size: 1.5rem;
    }

    .stat-label {
        font-size: 0.75rem;
    }

    /* ---- GAMES GRID ---- */
    #gamesGrid,
    .games-grid-container {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 10px;
        overflow: visible;
    }

    /* ---- CHECKOUT GRID ---- */
    .checkout-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .checkout-card {
        height: auto;
        padding: 20px;
    }

    /* ---- AGENT HERO ---- */
    .hero-split {
        flex-direction: column;
        padding: 1.5rem 1rem;
    }

    .hero-visual {
        display: none;
    }

    .benefits-grid-redesign {
        grid-template-columns: 1fr;
        gap: 1.2rem;
    }

    /* ---- NOTIFICATION DROPDOWN ---- */
    .notification-dropdown {
        width: 280px;
        right: -10px;
    }

    /* ---- WALLET PAGE REDESIGN ---- */
    .wallet-layout-grid {
        grid-template-columns: 1fr !important;
        gap: 20px !important;
        padding-right: 0 !important;
    }

    .wallet-history-card {
        height: auto !important;
        max-height: 550px !important;
        margin-top: 20px !important;
    }

    /* ---- PROFILE PAGE REDESIGN ---- */
    .profile-scroll-container {
        max-height: none !important;
        overflow-y: visible !important;
        padding-right: 0 !important;
    }

    /* ---- STATISTICS PAGE REDESIGN ---- */
    .stats-layout-grid {
        grid-template-columns: 1fr !important;
        gap: 20px !important;
    }

    .stats-history-card {
        height: auto !important;
        max-height: 550px !important;
        margin-top: 20px !important;
    }

    .stats-grid-4 {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 15px !important;
    }
}

/* ======================================
   MOBILE — ≤ 768px (Large phones, landscape)
   ====================================== */
@media (max-width: 768px) {
    html, body {
        overflow: auto !important;
        overflow-x: hidden !important;
        height: auto;
    }

    /* NAVBAR */
    .enhanced-navbar {
        height: 50px;
        padding: 0 10px;
    }

    .nav-logo img {
        height: 26px;
    }

    /* Hide balance label text on small screens, keep pill */
    .balance-label {
        display: none !important;
    }

    .balance-value {
        font-size: 0.88rem !important;
    }

    .premium-balance-pill {
        padding: 4px 10px 4px 5px !important;
        gap: 6px !important;
    }

    .balance-icon-wrapper {
        width: 26px !important;
        height: 26px !important;
    }

    .pulse-coin {
        width: 18px !important;
        height: 18px !important;
    }

    .nav-logout-btn {
        width: 32px;
        height: 32px;
        font-size: 0.95rem;
    }

    .menu-trigger {
        font-size: 1.2rem;
        padding: 6px;
    }

    /* SIDEBAR */
    .sidebar {
        width: 220px;
        top: 50px;
    }

    /* MAIN WRAPPER */
    .main-wrapper {
        padding: 10px 12px;
        padding-top: 8px;
        padding-bottom: 85px !important; /* space for bottom nav */
    }

    .app-layout {
        padding-top: 50px;
    }

    /* BOTTOM NAV — show on mobile */
    .mobile-bottom-nav {
        display: flex !important;
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        height: 58px;
        background: linear-gradient(to top, #121212, #1a1a1a);
        border-top: 1px solid rgba(255,255,255,0.07);
        z-index: 1900;
        justify-content: space-around;
        align-items: center;
        padding: 0 4px;
        box-shadow: 0 -4px 20px rgba(0,0,0,0.4);
    }

    .mobile-bottom-nav a {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 2px;
        text-decoration: none;
        color: var(--text-muted);
        font-size: 0.6rem;
        font-weight: 700;
        flex: 1;
        padding: 6px 0;
        border-radius: 10px;
        transition: all 0.2s ease;
    }

    .mobile-bottom-nav a.active,
    .mobile-bottom-nav a:hover {
        color: white;
        background: rgba(124,77,255,0.15);
    }

    .mobile-bottom-nav a i {
        font-size: 1.15rem;
    }

    /* STATS GRID */
    .stats-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 8px;
    }

    .stat-card {
        height: 80px;
        border-radius: 14px;
    }

    .stat-value {
        font-size: 1.4rem;
    }

    .stat-label {
        font-size: 0.65rem;
    }

    /* DASHBOARD GRID */
    .dashboard-content-grid {
        flex-direction: column;
        gap: 12px;
    }

    /* GAMES GRID */
    #gamesGrid,
    .games-grid-container {
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 8px !important;
    }

    .game-card-fit {
        border-radius: 12px;
    }

    /* WALLET SLIDER */
    .wallet-slider {
        height: 120px;
    }

    /* SECTION TITLE */
    .list-section-title {
        font-size: 0.9rem;
        margin-top: 0;
    }

    /* LEADERBOARD TABLE */
    .leaderboard-table th,
    .leaderboard-table td {
        padding: 8px 6px;
        font-size: 0.78rem;
    }

    /* PROFILE PAGE */
    .profile-stats-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }

    /* WALLET PAGE */
    .wallet-methods-grid {
        grid-template-columns: 1fr !important;
    }

    /* NOTIFICATION DROPDOWN */
    .notification-dropdown {
        position: fixed;
        top: 60px;
        left: 10px;
        right: 10px;
        width: auto;
    }

    /* AGENT PAGE */
    .hero-split {
        flex-direction: column;
    }

    .hero-visual {
        display: none;
    }

    .glass-card-visual {
        display: none;
    }

    /* SECTION REDESIGN TITLE */
    .section-redesign-title {
        font-size: 1.6rem;
    }

    /* CHECKOUT */
    .checkout-grid {
        grid-template-columns: 1fr;
    }

    /* LIVE FEED */
    #liveFeedScroll {
        font-size: 0.78rem;
    }

    /* ---- WALLET PAGE REDESIGN ---- */
    .wallet-promo-grid {
        grid-template-columns: 1fr !important;
        gap: 15px !important;
        padding-right: 0 !important;
        margin-top: 15px !important;
    }

    /* ---- PROFILE PAGE REDESIGN ---- */
    .profile-form-grid {
        grid-template-columns: 1fr !important;
        gap: 15px !important;
    }

    .profile-split-grid {
        grid-template-columns: 1fr !important;
        gap: 20px !important;
    }

    /* ---- REFERRALS PAGE REDESIGN ---- */
    .referral-steps-grid {
        grid-template-columns: 1fr !important;
        gap: 15px !important;
    }
}

/* ======================================
   SMALL MOBILE — ≤ 480px (Portrait phones)
   ====================================== */
@media (max-width: 480px) {
    /* NAVBAR */
    .enhanced-navbar {
        height: 48px;
        padding: 0 8px;
    }

    .nav-logo img {
        height: 24px;
    }

    .nav-right {
        gap: 6px !important;
    }

    /* Hide globe icon on tiny screens */
    .nav-right > a:first-child {
        display: none;
    }

    .premium-balance-pill {
        padding: 4px 8px 4px 4px !important;
        gap: 6px !important;
    }

    .premium-balance-pill .balance-label {
        display: none !important;
    }

    .premium-balance-pill .balance-value {
        font-size: 0.82rem !important;
    }

    .premium-balance-pill .pulse-coin {
        width: 18px !important;
        height: 18px !important;
    }

    .balance-icon-wrapper {
        width: 24px !important;
        height: 24px !important;
    }

    .nav-logout-btn {
        width: 32px !important;
        height: 32px !important;
        font-size: 0.9rem !important;
    }

    .nav-user-info {
        gap: 6px !important;
    }

    /* SIDEBAR */
    .sidebar {
        width: 200px;
        top: 48px;
    }

    /* MAIN WRAPPER */
    .main-wrapper {
        padding: 8px 10px;
        padding-top: 6px;
        padding-bottom: 85px !important;
    }

    .app-layout {
        padding-top: 48px;
    }

    /* STATS */
    .stats-grid {
        grid-template-columns: 1fr !important;
        gap: 8px !important;
    }

    .stat-card {
        height: 60px !important;
        border-radius: 12px !important;
        display: flex !important;
        flex-direction: row !important;
        align-items: center !important;
        justify-content: flex-start !important;
        padding: 0 16px !important;
        text-align: left !important;
    }

    .stat-info-block {
        display: flex !important;
        flex-direction: column !important;
        justify-content: center !important;
        align-items: flex-start !important;
    }

    .stat-value {
        font-size: 1.3rem !important;
        line-height: 1.2 !important;
        margin: 0 !important;
    }

    .stat-label {
        font-size: 0.72rem !important;
        font-weight: 700 !important;
        text-transform: uppercase !important;
        opacity: 0.7 !important;
        margin: 0 !important;
    }

    .stat-card .card-icon {
        position: absolute !important;
        top: 50% !important;
        transform: translateY(-50%) !important;
        right: 16px !important;
        font-size: 2rem !important;
        width: 38px !important;
        height: 38px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        margin: 0 !important;
        opacity: 0.15 !important;
    }

    /* GAMES GRID */
    #gamesGrid,
    .games-grid-container {
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 6px !important;
    }

    /* WALLET SLIDER */
    .wallet-slider {
        height: 105px;
    }

    .slider-item img {
        border-radius: 10px;
    }

    /* CATEGORY TABS */
    .category-tabs {
        height: 36px;
        font-size: 0.8rem;
    }

    .tab-btn {
        font-size: 0.8rem;
    }

    /* BOTTOM NAV */
    .mobile-bottom-nav {
        height: 52px;
    }

    .mobile-bottom-nav a {
        font-size: 0.55rem;
    }

    .mobile-bottom-nav a i {
        font-size: 1rem;
    }

    /* NOTIFICATION DROPDOWN */
    .notification-dropdown {
        position: fixed;
        top: 60px;
        left: 8px;
        right: 8px;
        width: auto;
    }

    /* AGENT PAGE */
    .hero-redesign-title {
        font-size: clamp(1.8rem, 8vw, 2.5rem);
    }

    /* STEPS */
    .step-row {
        gap: 1rem;
    }

    /* PROFILE */
    .profile-stats-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }

    /* REFERRAL */
    .referral-card {
        padding: 16px !important;
    }

    /* ---- STATISTICS PAGE REDESIGN ---- */
    .stats-grid-4 {
        grid-template-columns: 1fr !important;
        gap: 10px !important;
    }
}

/* ======================================
   SIDEBAR TOGGLE LOGIC (JS-driven)
   Applied via JavaScript on sidebarToggle click
   ====================================== */

/* Sidebar overlay element (injected by JS if not present) */
#sidebarOverlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.55);
    z-index: 1400;
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
}

#sidebarOverlay.active {
    display: block;
}

/* Ensure sidebar is always visible on desktop (≥1025px) */
@media (min-width: 1025px) {
    .sidebar {
        transform: translateX(0) !important;
        box-shadow: none;
    }

    #sidebarOverlay {
        display: none !important;
    }

    .mobile-bottom-nav {
        display: none !important;
    }

    .main-wrapper {
        margin-left: 255px;
        width: calc(100% - 255px);
        padding-top: 15px;
    }
}

/* ==========================================================================
   EBM Responsive Design Breakpoints (Shop & Support)
   ========================================================================== */

/* Support portal overrides */
.support-modal-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

/* Product details grid definition */
.product-details-grid {
    display: grid;
    grid-template-columns: minmax(300px, 4.5fr) minmax(350px, 5.5fr);
    gap: 30px;
    align-items: start;
    margin-top: 10px;
}

.specs-grid-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
}

/* Breakpoints */
@media (max-width: 1024px) {
    .checkout-grid {
        grid-template-columns: 1fr !important;
        gap: 20px !important;
    }
    .checkout-card {
        height: auto !important;
        padding: 20px !important;
    }
    .product-details-grid {
        grid-template-columns: 1fr !important;
        gap: 20px !important;
    }
    .gallery-container {
        position: static !important;
    }
}

@media (max-width: 768px) {
    .product-info {
        grid-template-columns: 1fr !important;
        justify-items: center;
        text-align: center;
    }
    .product-img {
        width: 150px;
        height: 150px;
    }
}

@media (max-width: 576px) {
    .order-body {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 15px !important;
    }
    .order-price-section {
        width: 100% !important;
        flex-direction: row !important;
        justify-content: space-between !important;
        align-items: center !important;
        border-top: 1px solid rgba(255, 255, 255, 0.05) !important;
        padding-top: 10px !important;
    }
    .specs-grid-container {
        grid-template-columns: 1fr !important;
    }
    .shipping-panel {
        grid-template-columns: 1fr !important;
    }
}

@media (max-width: 480px) {
    .action-buttons {
        grid-template-columns: 1fr !important;
    }
    .premium-success-card {
        padding: 25px 20px !important;
    }
    .support-modal-grid {
        grid-template-columns: 1fr !important;
    }
    .step-circle {
        width: 28px !important;
        height: 28px !important;
        font-size: 0.7rem !important;
        border-width: 3px !important;
    }
    .step-label {
        font-size: 0.6rem !important;
        letter-spacing: 0px !important;
    }
    .stepper::before, .step-progress {
        top: 12px !important;
    }
}

/* Leaderboard Page Podium Styles */
.leaderboard-podium {
    display: grid;
    grid-template-columns: 1fr 1.2fr 1fr;
    gap: 15px;
    margin-bottom: 25px;
    align-items: end;
}

@media (max-width: 576px) {
    .leaderboard-podium {
        grid-template-columns: 1fr !important;
        gap: 15px !important;
        align-items: stretch !important;
    }
}

/* Wallet Page Mobile Responsiveness Overrides */
@media (max-width: 480px) {
    .wallet-actions-grid {
        gap: 10px !important;
        margin-top: 15px !important;
    }
    .btn-wallet-action {
        padding: 12px 6px !important;
        font-size: 0.82rem !important;
        gap: 5px !important;
        border-radius: 10px !important;
    }
    .wallet-history-table th,
    .wallet-history-table td {
        padding: 10px 8px !important;
        font-size: 0.78rem !important;
    }
}

/* Tournament Page Responsiveness & Typography Overrides */
.match-info-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 10px;
}

.my-perf-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
}

.match-header-grid {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 30px;
    align-items: center;
}

.match-header-actions {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 12px;
}

.match-title {
    font-size: 2.2rem;
    font-weight: 900;
    margin: 0;
    color: white;
    letter-spacing: -0.5px;
    text-shadow: 0 4px 15px rgba(0,0,0,0.5);
}

.offline-qr-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-bottom: 20px;
}

@media (max-width: 768px) {
    .match-info-grid {
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 12px !important;
    }
    .match-header-grid {
        grid-template-columns: 1fr !important;
        gap: 20px !important;
        text-align: center;
        justify-items: center;
    }
    .match-header-actions {
        align-items: center !important;
    }
}

@media (max-width: 576px) {
    .offline-qr-grid {
        grid-template-columns: 1fr !important;
        gap: 15px !important;
    }
    .my-perf-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 10px !important;
    }
}

@media (max-width: 480px) {
    .match-info-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 10px !important;
    }
    .match-title {
        font-size: 1.5rem !important;
    }
}

/* ==========================================================================
   Mobile-Only (Phones) Responsive Tournament Match Cards Redesign
   Targets only viewports up to 576px (Android/iPhone mobile viewports).
   Does not affect desktop and tablet layouts.
   ========================================================================== */
@media (max-width: 576px) {
    /* Stretch active/upcoming/completed tab containers to fit full screen edge-to-edge beautifully */
    .match-tabs {
        display: flex !important;
        width: 100% !important;
        justify-content: space-between !important;
        margin-bottom: 18px !important;
        gap: 6px !important;
        padding: 5px !important;
    }
    
    .match-tab {
        flex: 1 !important;
        justify-content: center !important;
        padding: 8px 10px !important;
        font-size: 0.8rem !important;
        white-space: nowrap !important;
    }

    /* Transform Card Top Section layout from rigid 3-columns to 2-columns (Icon | Title + Info) */
    .match-card-top {
        display: grid !important;
        grid-template-columns: 50px 1fr !important;
        gap: 8px 12px !important;
        padding: 12px 12px 10px !important;
        align-items: center !important;
    }

    /* Game Icon adjustments */
    .match-icon {
        width: 50px !important;
        height: 50px !important;
        border-radius: 10px !important;
        font-size: 1.15rem !important;
        align-self: start !important;
        margin-top: 2px !important;
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.45) !important;
    }

    /* Title size reduction for mobile and tight line-height */
    .match-card .match-title {
        font-size: calc(0.9rem - 2px) !important;
        font-weight: 800 !important;
        margin-bottom: 6px !important;
        line-height: 1.25 !important;
        color: #ffffff !important;
        white-space: normal !important;
        word-break: break-word !important;
    }

    /* Flexible wrapping list for match details (Map, Type, Time, etc.) */
    .match-info {
        display: flex !important;
        flex-wrap: wrap !important;
        gap: 4px 8px !important;
        width: 100% !important;
    }

    /* Turn info items into modern dark-glassy compact status tags */
    .match-info-item {
        font-size: 0.7rem !important;
        color: #c8c8c8 !important;
        background: rgba(255, 255, 255, 0.04) !important;
        padding: 3px 6px !important;
        border-radius: 5px !important;
        border: 1px solid rgba(255, 255, 255, 0.06) !important;
        display: flex !important;
        align-items: center !important;
        gap: 4px !important;
    }

    /* Force the prize section to span across both grid columns as a dedicated bottom row */
    .match-prize {
        grid-column: 1 / -1 !important;
        display: flex !important;
        flex-direction: row !important;
        justify-content: space-between !important;
        align-items: center !important;
        padding: 10px 0 0 !important;
        margin-top: 6px !important;
        border-left: none !important;
        border-top: 1px solid rgba(255, 255, 255, 0.08) !important;
        width: 100% !important;
        min-width: 100% !important;
        box-sizing: border-box !important;
    }

    /* Hide standard desktop text labels */
    .match-prize .prize-label {
        display: none !important;
    }

    /* Style the Prize Pool as a premium glowing golden pill badge */
    .match-prize .prize-amount {
        font-size: 0.95rem !important;
        font-weight: 900 !important;
        color: #ffb300 !important;
        background: rgba(255, 179, 0, 0.1) !important;
        border: 1px solid rgba(255, 179, 0, 0.22) !important;
        padding: 4px 10px !important;
        border-radius: 20px !important;
        display: flex !important;
        align-items: center !important;
        gap: 4px !important;
    }

    .match-prize .prize-amount::before {
        content: 'PRIZE: ' !important;
        font-size: 0.62rem !important;
        font-weight: 800 !important;
        color: rgba(255, 179, 0, 0.85) !important;
        letter-spacing: 0.5px !important;
    }

    /* Style the Entry Fee or Per-Kill as a sleek gaming pill badge */
    .match-prize .entry-fee {
        margin-top: 0 !important;
        background: rgba(139, 92, 246, 0.12) !important;
        border: 1px solid rgba(139, 92, 246, 0.25) !important;
        padding: 4px 10px !important;
        border-radius: 20px !important;
        display: flex !important;
        align-items: center !important;
        gap: 3px !important;
    }

    .match-prize .fee-label {
        font-size: 0.62rem !important;
        color: #a78bfa !important;
        font-weight: 800 !important;
        text-transform: uppercase !important;
    }

    .match-prize .fee-amount {
        font-size: 0.78rem !important;
        font-weight: 800 !important;
        color: #ffffff !important;
    }

    .match-prize .per-kill-row {
        margin-top: 0 !important;
        background: rgba(0, 255, 136, 0.08) !important;
        border: 1px solid rgba(0, 255, 136, 0.18) !important;
        padding: 4px 10px !important;
        border-radius: 20px !important;
        display: flex !important;
        align-items: center !important;
        gap: 3px !important;
    }

    .match-prize .per-kill-label {
        font-size: 0.62rem !important;
        color: #00ff88 !important;
        font-weight: 800 !important;
        text-transform: uppercase !important;
    }

    .match-prize .per-kill-amount {
        font-size: 0.78rem !important;
        font-weight: 800 !important;
        color: #ffffff !important;
    }

    /* Completed Match Specific styles in mobile view */
    .match-prize .rank-badge {
        margin-top: 0 !important;
        background: rgba(255, 255, 255, 0.05) !important;
        border: 1px solid rgba(255, 255, 255, 0.12) !important;
        padding: 4px 10px !important;
        border-radius: 20px !important;
        font-size: 0.72rem !important;
        color: #d1d5db !important;
        font-weight: 700 !important;
    }

    .match-prize .prize-amount[style*="color: #00ff88"] {
        color: #00ff88 !important;
        background: rgba(0, 255, 136, 0.08) !important;
        border: 1px solid rgba(0, 255, 136, 0.18) !important;
    }
    
    .match-prize .fee-amount[style*="color: #ef4444"] {
        color: #ef4444 !important;
        background: rgba(239, 68, 68, 0.08) !important;
        border: 1px solid rgba(239, 68, 68, 0.18) !important;
        padding: 4px 10px !important;
        border-radius: 20px !important;
        display: flex !important;
        align-items: center !important;
        gap: 4px !important;
    }

    /* Compact progress area */
    .match-card-progress {
        padding: 0 12px 10px !important;
    }

    .match-progress-info {
        font-size: 0.68rem !important;
        margin-bottom: 4px !important;
    }

    .progress-bar-bg {
        height: 4px !important;
    }

    /* Adjust Action section buttons at bottom of cards */
    .match-actions {
        padding: 0 12px 12px !important;
    }

    .join-btn, .view-btn {
        padding: 8px 12px !important;
        font-size: 0.78rem !important;
        border-radius: 8px !important;
        font-weight: 700 !important;
    }

    /* ==========================================================================
       Detailed Match Page Redesign Overrides
       ========================================================================== */
    /* Back to Tournaments button wrapper */
    .main-wrapper > div:first-child a {
        padding: 8px 16px !important;
        font-size: 0.8rem !important;
        border-radius: 6px !important;
    }

    /* Main Match Header original-card */
    .original-card {
        border-radius: 16px !important;
        margin-bottom: 18px !important;
    }

    .match-header-grid {
        grid-template-columns: 1fr !important;
        gap: 16px !important;
        padding: 20px !important;
        text-align: left !important;
        justify-items: start !important;
    }

    .match-header-grid > div:first-child {
        width: 100% !important;
    }

    .match-header-grid .match-title {
        font-size: 1.35rem !important;
        font-weight: 900 !important;
        letter-spacing: -0.3px !important;
        line-height: 1.25 !important;
        text-shadow: 0 2px 8px rgba(0,0,0,0.8) !important;
    }

    /* Left colored line next to title */
    .match-header-grid div[style*="width: 4px"] {
        height: 24px !important;
        width: 4px !important;
        border-radius: 2px !important;
    }

    /* Tags under title (Game name, Type, Calendar) */
    .match-header-grid span[style*="font-size: 1rem"],
    .match-header-grid span[style*="font-size: 1rem"] {
        font-size: 0.78rem !important;
        font-weight: 700 !important;
        color: #d1d5db !important;
        gap: 6px !important;
    }

    .match-header-grid i {
        font-size: 0.8rem !important;
    }

    /* Status Action buttons and labels alignment */
    .match-header-actions {
        align-items: flex-start !important;
        width: 100% !important;
        gap: 10px !important;
    }

    /* Status capsules wrapper */
    .match-header-actions > div[style*="display: flex"] {
        flex-wrap: wrap !important;
        gap: 6px !important;
        margin-bottom: 0 !important;
    }

    /* Status capsule adjustments (LIVE, COMPLETED, JOINED, etc.) */
    .match-header-actions div[style*="padding: 6px 22px"] {
        padding: 4px 12px !important;
        font-size: 0.68rem !important;
        border-radius: 15px !important;
        letter-spacing: 0.5px !important;
    }

    /* Action Buttons (Watch Live, Play Now) */
    .match-header-actions a[href*="tournament_url"],
    .match-header-actions a[style*="background: #ff4d4d"],
    .match-header-actions a[style*="background: linear-gradient"] {
        width: 100% !important;
        padding: 10px 16px !important;
        font-size: 0.8rem !important;
        border-radius: 8px !important;
        justify-content: center !important;
        box-sizing: border-box !important;
    }

    /* Room code share box */
    .match-header-actions div[style*="background: rgba(0,0,0,0.5)"] {
        width: 100% !important;
        box-sizing: border-box !important;
        padding: 8px 12px !important;
        border-radius: 10px !important;
        justify-content: space-between !important;
    }

    #roomCodeText {
        font-size: 1.1rem !important;
    }

    /* "Room code will be shared soon" capsule */
    .match-header-actions div[style*="background: rgba(255,165,0,0.05)"] {
        width: 100% !important;
        box-sizing: border-box !important;
        padding: 6px 12px !important;
        border-radius: 8px !important;
        justify-content: center !important;
    }

    .match-header-actions div[style*="background: rgba(255,165,0,0.05)"] span {
        font-size: 0.72rem !important;
    }

    /* "My Performance" Section card */
    .original-card[style*="rgba(124, 77, 255, 0.1)"] {
        border-width: 1px !important;
        border-color: var(--primary) !important;
        padding: 14px !important;
        border-radius: 16px !important;
        background: linear-gradient(135deg, rgba(124, 77, 255, 0.08), rgba(0, 255, 136, 0.04)) !important;
    }

    .original-card[style*="rgba(124, 77, 255, 0.1)"] h2 {
        font-size: 0.85rem !important;
        margin-bottom: 10px !important;
        text-transform: uppercase !important;
        letter-spacing: 0.5px !important;
    }

    /* Performance card grid cells */
    .my-perf-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 8px !important;
    }

    .my-perf-grid > div {
        text-align: left !important;
        padding: 10px 12px !important;
        background: rgba(0, 0, 0, 0.35) !important;
        border: 1px solid rgba(255, 255, 255, 0.04) !important;
        border-radius: 10px !important;
        display: flex !important;
        flex-direction: column !important;
        justify-content: space-between !important;
    }

    .my-perf-grid > div > div[style*="font-size: 0.75rem"] {
        font-size: 0.65rem !important;
        text-transform: uppercase !important;
        letter-spacing: 0.5px !important;
        color: #888 !important;
        margin-bottom: 2px !important;
    }

    .my-perf-grid > div > div[style*="font-size: 1.3rem"],
    .my-perf-grid > div > div[style*="font-size: 1.2rem"] {
        font-size: 1.1rem !important;
        font-weight: 900 !important;
        margin-top: 2px !important;
    }

    /* "Match Information" Card */
    .original-card[style*="padding: 14px 18px"] {
        padding: 14px !important;
        border-radius: 16px !important;
        background: #141414 !important;
        border: 1px solid rgba(255, 255, 255, 0.05) !important;
    }

    .original-card[style*="padding: 14px 18px"] h2 {
        font-size: 0.85rem !important;
        margin-bottom: 10px !important;
        text-transform: uppercase !important;
        letter-spacing: 0.5px !important;
    }

    /* Match Information grid cells */
    .match-info-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 8px !important;
    }

    .match-info-grid > div {
        background: rgba(255, 255, 255, 0.02) !important;
        border: 1px solid rgba(255, 255, 255, 0.04) !important;
        border-radius: 10px !important;
        padding: 10px 12px !important;
        text-align: left !important;
    }

    .match-info-grid > div > div[style*="color: var(--text-muted)"],
    .match-info-grid > div > div[style*="color: #888"] {
        font-size: 0.65rem !important;
        text-transform: uppercase !important;
        letter-spacing: 0.5px !important;
        color: #888 !important;
        margin-bottom: 2px !important;
    }

    .match-info-grid > div > div[style*="font-size: 1.1rem"] {
        font-size: 0.95rem !important;
        font-weight: 900 !important;
        margin-top: 2px !important;
    }

    /* Match Concluded Banner */
    .original-card[style*="rgba(255, 215, 0, 0.15)"] {
        padding: 16px 18px !important;
        border-radius: 14px !important;
        background: linear-gradient(135deg, rgba(255, 215, 0, 0.08), rgba(0, 0, 0, 0.4)) !important;
    }

    .original-card[style*="rgba(255, 215, 0, 0.15)"] h2 {
        font-size: 1.1rem !important;
        margin-bottom: 6px !important;
    }

    .original-card[style*="rgba(255, 215, 0, 0.15)"] p {
        font-size: 0.8rem !important;
        line-height: 1.4 !important;
    }

    /* ==========================================================================
       Android/Mobile Viewport Alignment and Overflow Fixes
       ========================================================================== */
    /* Prevent any parent wrapper from expanding horizontally */
    html, body, .app-layout, .main-wrapper {
        max-width: 100vw !important;
        overflow-x: hidden !important;
    }

    /* Force all card containers to respect viewport boundaries */
    .original-card {
        max-width: 100% !important;
        box-sizing: border-box !important;
    }

    /* Fix Grid constraints to avoid parent horizontal stretch */
    .match-detail-grid {
        grid-template-columns: minmax(0, 1fr) !important;
        width: 100% !important;
        overflow: hidden !important;
        box-sizing: border-box !important;
        padding: 0 !important;
        margin: 0 !important;
    }

    .match-detail-left,
    .match-detail-right {
        min-width: 0 !important;
        width: 100% !important;
        overflow: hidden !important;
        box-sizing: border-box !important;
    }

    /* Fix Match Sponsor text overflow (e.g. yadavdilip1120@gmail.com) */
    .original-card h2[style*="align-items: center"] {
        flex-wrap: wrap !important;
        word-break: break-all !important;
        line-height: 1.4 !important;
        font-size: 0.9rem !important;
    }

    .original-card h2[style*="align-items: center"] span {
        word-break: break-all !important;
        display: inline-block !important;
    }

    /* Fix About Tournament & Description texts overflow */
    .original-card div[style*="line-height: 1.5"] {
        word-break: break-word !important;
        overflow-wrap: break-word !important;
        font-size: 0.8rem !important;
        line-height: 1.4 !important;
    }

    /* Clean horizontal scrolling wrapper for the table without card distortion */
    .match-detail-right div[style*="overflow-x: auto"] {
        width: 100% !important;
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch !important;
    }

    /* ==========================================================================
       PlayNow Detail Page - Mobile Responsive Overrides
       ========================================================================== */

    /* --- PlayNow Banner --- */
    .playnow-banner {
        min-height: 140px !important;
        padding: 16px !important;
        border-radius: 14px !important;
        margin-bottom: 16px !important;
    }

    /* Banner top tags row */
    .playnow-banner > div:first-of-type[style*="z-index: 2"] {
        flex-wrap: wrap !important;
        gap: 6px !important;
    }

    .playnow-banner > div:first-of-type[style*="z-index: 2"] > div:first-child {
        gap: 5px !important;
    }

    .playnow-banner > div:first-of-type[style*="z-index: 2"] span {
        font-size: 0.6rem !important;
        padding: 3px 8px !important;
        letter-spacing: 0.5px !important;
    }

    /* Banner bottom row: stack title and player showcase vertically */
    .playnow-banner-bottom {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 14px !important;
        margin-top: 16px !important;
    }

    .playnow-banner-bottom > div:first-child {
        min-width: unset !important;
        width: 100% !important;
    }

    .playnow-banner-bottom h1 {
        font-size: 1.3rem !important;
        margin-bottom: 6px !important;
    }

    /* Entry/Prize badges inside banner */
    .playnow-banner-bottom > div:first-child > div:nth-child(2) {
        gap: 6px !important;
        flex-wrap: wrap !important;
    }

    .playnow-banner-bottom > div:first-child > div:nth-child(2) > div {
        flex-wrap: wrap !important;
        gap: 6px !important;
    }

    .playnow-banner-bottom > div:first-child > div:nth-child(2) > div > div {
        font-size: 0.65rem !important;
        padding: 3px 8px !important;
    }

    /* Player Showcase (VS pill) */
    .playnow-player-showcase {
        border-radius: 40px !important;
        padding: 8px 16px 8px 8px !important;
        gap: 10px !important;
        width: 100% !important;
        justify-content: center !important;
        box-sizing: border-box !important;
    }

    .playnow-player-showcase > div > div:first-child {
        width: 36px !important;
        height: 36px !important;
    }

    .playnow-player-showcase > div > div:last-child > div:last-child {
        font-size: 0.8rem !important;
        max-width: 70px !important;
    }

    /* --- Stats Grid (Room Type, Team Size, Rounds, Players) --- */
    .playnow-stats-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 8px !important;
        margin-bottom: 16px !important;
    }

    .playnow-stats-grid > div {
        padding: 10px !important;
        border-radius: 10px !important;
        gap: 8px !important;
    }

    .playnow-stats-grid > div > div:first-child {
        width: 30px !important;
        height: 30px !important;
        border-radius: 7px !important;
    }

    .playnow-stats-grid > div > div:first-child i {
        font-size: 0.85rem !important;
    }

    .playnow-stats-grid > div > div:last-child > div:first-child {
        font-size: 0.55rem !important;
    }

    .playnow-stats-grid > div > div:last-child > div:last-child {
        font-size: 0.85rem !important;
    }

    /* --- Action Buttons (Update Code, Submit Result, Chat, Cancel) --- */
    .playnow-action-buttons {
        gap: 8px !important;
        margin-bottom: 16px !important;
    }

    .playnow-action-buttons > button {
        min-width: unset !important;
        flex: 1 1 calc(50% - 4px) !important;
        padding: 11px 8px !important;
        border-radius: 12px !important;
        font-size: 0.75rem !important;
        gap: 6px !important;
    }

    .playnow-action-buttons > button i {
        font-size: 0.85rem !important;
    }

    /* --- Settings & Rules Grid: Stack Vertically --- */
    .playnow-settings-rules-grid {
        grid-template-columns: 1fr !important;
        gap: 16px !important;
        margin-bottom: 20px !important;
    }

    .playnow-settings-rules-grid > div {
        padding: 16px !important;
        border-radius: 12px !important;
    }

    .playnow-settings-rules-grid > div h2 {
        font-size: 0.95rem !important;
        margin-bottom: 14px !important;
    }

    .playnow-settings-rules-grid > div h2 i {
        font-size: 1rem !important;
        margin-right: 8px !important;
    }

    /* Game Setting capsules */
    .playnow-settings-rules-grid > div:first-child > div {
        gap: 8px !important;
    }

    .playnow-settings-rules-grid > div:first-child > div > div {
        padding: 10px 12px !important;
        border-radius: 8px !important;
        min-width: 100px !important;
    }

    .playnow-settings-rules-grid > div:first-child > div > div span:first-child {
        font-size: 0.65rem !important;
    }

    .playnow-settings-rules-grid > div:first-child > div > div span:last-child {
        font-size: 0.85rem !important;
    }

    /* Game Rules items */
    .playnow-settings-rules-grid > div:last-child > div > div {
        padding: 8px !important;
        border-radius: 6px !important;
    }

    .playnow-settings-rules-grid > div:last-child > div > div > div {
        font-size: 0.78rem !important;
        line-height: 1.35 !important;
    }

    /* --- Winner Section --- */
    .playnow-winner-section {
        padding: 24px 16px !important;
        border-radius: 14px !important;
        margin-bottom: 16px !important;
    }

    .playnow-winner-section > div:nth-child(2) {
        font-size: 3rem !important;
        margin-bottom: 12px !important;
    }

    .playnow-winner-section h2 {
        font-size: 1.1rem !important;
        letter-spacing: 2px !important;
    }

    .playnow-winner-section h1 {
        font-size: 2rem !important;
        margin-bottom: 14px !important;
    }

    .playnow-winner-section > div:last-child {
        padding: 10px 20px !important;
    }

    .playnow-winner-section > div:last-child span:last-child {
        font-size: 1.4rem !important;
    }

    /* --- Accept Match Button (non-participant) --- */
    .playnow-banner + div + div > button.accept-match-btn,
    div[style*="margin-bottom: 24px; width: 100%"] > button.accept-match-btn {
        padding: 14px 20px !important;
        border-radius: 14px !important;
        font-size: 0.95rem !important;
    }

    /* --- Back Button --- */
    .main-wrapper > div:first-child > button[onclick*="playnow"] {
        padding: 8px 14px !important;
        font-size: 0.8rem !important;
        border-radius: 6px !important;
    }

    /* ==========================================================================
       PlayNow Listing Page - Mobile Card Overflow Fixes
       ========================================================================== */

    /* PlayNow listing cards - ensure content fits viewport */
    .match-card {
        padding: 14px !important;
        border-radius: 14px !important;
        margin-bottom: 12px !important;
    }

    /* Card top row */
    .playnow-card-header {
        gap: 8px !important;
    }

    .playnow-card-game-info {
        gap: 10px !important;
        flex: 1; /* Allow it to take up available space */
    }

    .playnow-card-image {
        width: 54px !important;
        height: 54px !important;
        min-width: 54px !important;
        border-radius: 14px !important;
    }

    /* Game title and creator badge */
    .playnow-card-title-row {
        flex-wrap: wrap !important;
        gap: 6px !important;
    }

    .playnow-card-title-row h3 {
        font-size: 0.95rem !important;
        word-break: break-word !important;
        line-height: 1.2 !important;
    }

    .playnow-card-creator {
        font-size: 0.55rem !important;
        padding: 2px 6px !important;
    }

    /* Meta info row (date, team, mode, players) */
    .playnow-card-meta-row {
        gap: 8px !important;
        margin-top: 6px !important;
    }

    .playnow-card-meta-row > div,
    .playnow-card-meta-row > span {
        font-size: 0.65rem !important;
    }
    
    .playnow-card-meta-row i {
        font-size: 0.65rem !important;
    }

    /* Game config badges (Char, Gun, Ammo, Head) */
    .playnow-card-config-badges {
        gap: 8px !important;
        margin-top: 8px !important;
        padding: 6px 8px !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }
    
    .playnow-card-config-badges > div {
        flex: 1;
        justify-content: center;
        border-left: none !important;
        padding-left: 0 !important;
    }
    
    .playnow-card-config-badges > div:not(:first-child) {
        border-left: 1px solid rgba(255,255,255,0.1) !important;
    }

    /* Prize section on right side */
    .playnow-card-prize {
        min-width: 70px !important;
    }

    .playnow-card-prize > div:nth-child(2) {
        font-size: 1.2rem !important;
    }

    /* Action buttons in listing cards */
    .match-card > div[style*="z-index: 1"] > div > div[style*="display: flex; gap: 10px; margin-top: 16px"] {
        margin-top: 12px !important;
    }

    .match-card > div[style*="z-index: 1"] > div > div[style*="display: flex; gap: 10px; margin-top: 16px"] button {
        padding: 12px !important;
        border-radius: 12px !important;
        font-size: 0.85rem !important;
    }

    /* PlayNow page header adjustments */
    .playnow-page-header {
        gap: 8px !important;
    }

    .playnow-page-header h1 {
        font-size: 1.2rem !important;
    }

    .playnow-header-actions {
        width: 100% !important;
        justify-content: flex-end !important;
    }

    .playnow-header-actions button {
        padding: 6px 14px !important;
        font-size: 0.8rem !important;
        border-radius: 8px !important;
    }
}


