@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&display=swap');

:root {
    --primary: #ff4d00;
    --primary-hover: #e64500;
    --primary-glow: rgba(255, 77, 0, 0.35);
    --secondary: #00d2ff;
    --bg-dark: #0a0b10;
    --bg-card: #14161f;
    --bg-light: #1e212d;
    --text-white: #ffffff;
    --text-gray: #a0aec0;
    --success: #00f2fe;
    --danger: #ff4b2b;
    --warning: #ffc107;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --glass: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
    --nav-height: 70px;
    --mobile-bottom-nav: 65px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Plus Jakarta Sans', sans-serif;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-white);
    line-height: 1.6;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
.font-heading {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
}

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

::-webkit-scrollbar-track {
    background: var(--bg-dark);
}

::-webkit-scrollbar-thumb {
    background: var(--bg-light);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary);
}

/* ===== LAYOUT ===== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section-padding {
    padding: 80px 0;
}

/* ===== BUTTONS ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    border: none;
    gap: 8px;
    white-space: nowrap;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), #ff7b00);
    color: white;
    box-shadow: 0 4px 15px var(--primary-glow);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px var(--primary-glow);
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--glass-border);
    color: var(--text-white);
}

.btn-outline:hover {
    background: var(--glass);
    border-color: rgba(255, 255, 255, 0.3);
}

.btn-success {
    background: linear-gradient(135deg, #00b09b, #00f2fe);
    color: white;
}

.btn-sm {
    padding: 8px 16px;
    font-size: 12px;
    border-radius: 8px;
}

/* ===== GLASS CARD ===== */
.glass-card {
    background: var(--glass);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 24px;
    transition: var(--transition);
}

.glass-card:hover {
    border-color: rgba(255, 255, 255, 0.18);
}

/* ===== ANIMATIONS ===== */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes glow {

    0%,
    100% {
        box-shadow: 0 0 5px var(--primary-glow);
    }

    50% {
        box-shadow: 0 0 20px var(--primary-glow);
    }
}

.animate-fade {
    animation: fadeIn 0.6s ease forwards;
}

/* ===== NAVBAR ===== */
#mainNav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 20px 0;
    transition: var(--transition);
}

#mainNav.scrolled {
    background: rgba(10, 11, 16, 0.92);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    padding: 15px 0;
    border-bottom: 1px solid var(--glass-border);
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 22px;
    font-weight: 800;
    color: var(--text-white);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: 'Outfit', sans-serif;
}

.logo span {
    color: var(--primary);
}

.nav-links {
    display: flex;
    gap: 30px;
    list-style: none;
}

.nav-links a {
    color: var(--text-gray);
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
    transition: var(--transition);
}

.nav-links a:hover {
    color: var(--primary);
}

.nav-btns {
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Hamburger */
.hamburger {
    display: none;
    cursor: pointer;
    background: none;
    border: 1px solid var(--glass-border);
    color: white;
    padding: 8px 12px;
    border-radius: 10px;
    font-size: 18px;
    transition: var(--transition);
    align-items: center;
}

.hamburger:hover {
    border-color: var(--primary);
    color: var(--primary);
}

/* Mobile Dropdown Nav */
.mobile-nav-menu {
    display: none;
    position: fixed;
    top: var(--nav-height);
    left: 0;
    right: 0;
    background: rgba(10, 11, 16, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--glass-border);
    padding: 15px;
    z-index: 999;
    flex-direction: column;
    gap: 8px;
}

.mobile-nav-menu.active {
    display: flex;
}

.mobile-nav-menu a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    color: var(--text-gray);
    text-decoration: none;
    border-radius: 12px;
    font-weight: 500;
    transition: var(--transition);
    border: 1px solid transparent;
    font-size: 15px;
}

.mobile-nav-menu a:hover {
    background: var(--glass);
    color: var(--text-white);
    border-color: var(--glass-border);
}

.mobile-nav-menu a i {
    width: 20px;
    text-align: center;
}

/* ===== HERO ===== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    padding-top: 80px;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -10%;
    right: -10%;
    width: 50%;
    height: 60%;
    background: radial-gradient(circle, var(--primary-glow) 0%, transparent 70%);
    z-index: -1;
}

.hero-content {
    max-width: 700px;
}

.badge {
    display: inline-block;
    padding: 6px 16px;
    background: var(--glass);
    border: 1px solid var(--glass-border);
    border-radius: 100px;
    font-size: 14px;
    color: var(--primary);
    margin-bottom: 20px;
}

.hero-title {
    font-size: clamp(40px, 8vw, 72px);
    line-height: 1.1;
    margin-bottom: 24px;
}

.hero-title span {
    background: linear-gradient(to right, var(--primary), #ffa300);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-desc {
    font-size: 18px;
    color: var(--text-gray);
    margin-bottom: 40px;
    max-width: 550px;
}

/* ===== TOURNAMENT CARDS ===== */
.tournament-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}

.card {
    background: var(--bg-card);
    border-radius: 24px;
    overflow: hidden;
    transition: var(--transition);
    border: 1px solid var(--glass-border);
    position: relative;
}

.card:hover {
    transform: translateY(-10px);
    border-color: var(--primary);
}

.card-img {
    height: 200px;
    width: 100%;
    object-fit: cover;
    background: #222;
}

.card-body {
    padding: 24px;
}

.card-tag {
    position: absolute;
    top: 20px;
    left: 20px;
    padding: 4px 12px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(5px);
}

.tag-pubg {
    border-left: 3px solid #f39c12;
    color: #f39c12;
}

.tag-ff {
    border-left: 3px solid #e74c3c;
    color: #e74c3c;
}

.card-title {
    font-size: 20px;
    margin-bottom: 12px;
}

.card-stats {
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--glass-border);
}

.stat-item {
    display: flex;
    flex-direction: column;
}

.stat-label {
    font-size: 12px;
    color: var(--text-gray);
}

.stat-value {
    font-weight: 700;
    color: var(--primary);
}

/* ===== WALLET ===== */
.wallet-box {
    background: linear-gradient(135deg, #1e212d, #14161f);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 30px;
    text-align: center;
}

.balance-amount {
    font-size: 36px;
    font-weight: 800;
    color: var(--primary);
    margin: 10px 0;
}

/* ===== FORMS ===== */
.form-group {
    margin-bottom: 24px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: var(--text-gray);
    font-size: 14px;
    font-weight: 500;
}

.form-control {
    width: 100%;
    background: var(--bg-light);
    border: 1px solid var(--glass-border);
    padding: 14px 18px;
    border-radius: 12px;
    color: white;
    outline: none;
    transition: var(--transition);
}

.form-control:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px var(--primary-glow);
}

select.form-control option {
    background: var(--bg-card);
}

/* ===== STATS GRID ===== */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
    margin-bottom: 25px;
}

.stat-card {
    background: var(--glass);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    transition: var(--transition);
}

.stat-card:hover {
    border-color: var(--primary);
}

.stat-card .stat-num {
    font-size: 28px;
    font-weight: 800;
    font-family: 'Outfit', sans-serif;
}

.stat-card .stat-lbl {
    font-size: 12px;
    color: var(--text-gray);
    font-weight: 500;
}

/* ===== ALERTS ===== */
.alert {
    padding: 12px 16px;
    border-radius: 12px;
    font-size: 14px;
    margin-bottom: 20px;
}

.alert-success {
    background: rgba(0, 242, 254, 0.08);
    border: 1px solid var(--success);
    color: var(--success);
}

.alert-danger {
    background: rgba(255, 75, 43, 0.08);
    border: 1px solid var(--danger);
    color: var(--danger);
}

.alert-warning {
    background: rgba(255, 193, 7, 0.08);
    border: 1px solid var(--warning);
    color: var(--warning);
}

/* ===== MOBILE BOTTOM NAV ===== */
.mobile-bottom-nav {
    display: none;
    position: fixed;
    top: auto;
    bottom: 0;
    left: 0;
    right: 0;
    height: var(--mobile-bottom-nav);
    background: rgba(12, 14, 20, 0.97);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-top: 1px solid var(--glass-border);
    z-index: 998;
    padding: 0 5px;
    align-items: center;
    justify-content: space-around;
}

.mobile-bottom-nav a {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    color: var(--text-gray);
    text-decoration: none;
    font-size: 9px;
    font-weight: 500;
    padding: 8px 10px;
    border-radius: 12px;
    transition: var(--transition);
    min-width: 50px;
    text-align: center;
}

.mobile-bottom-nav a i {
    font-size: 19px;
}

.mobile-bottom-nav a.active {
    color: var(--primary);
}

.mobile-bottom-nav a.active i {
    filter: drop-shadow(0 0 5px var(--primary));
}

/* ===== GAMING UI ENHANCEMENTS ===== */
.hero-gaming-bg {
    position: relative;
    background: linear-gradient(to bottom, rgba(10, 11, 16, 0.7) 0%, rgba(10, 11, 16, 1) 100%),
        url('https://images.unsplash.com/photo-1542751371-adc38448a05e?auto=format&fit=crop&w=1920&q=80') center/cover no-repeat fixed;
    border-bottom: 2px solid var(--primary-glow);
    padding: 120px 20px 80px 20px;
    /* added generous padding for mobile avoid header */
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    /* magic to force full width even inside containers */
}

.hero-gaming-bg::before {
    display: none;
    /* override original ::before */
}

/* ensure text inside hero breaks properly */
.hero-title {
    font-size: clamp(35px, 6vw, 75px) !important;
    /* Slightly reduced clamp for safety */
    line-height: 1.1;
    margin-bottom: 24px;
    word-break: break-word;
}

.hero-desc {
    font-size: clamp(16px, 3vw, 20px) !important;
    color: #ddd;
    margin-bottom: 40px;
    word-break: break-word;
}

.neon-text-primary {
    text-shadow: 0 0 10px var(--primary-glow), 0 0 20px var(--primary), 0 0 30px var(--primary);
}

.neon-text-secondary {
    text-shadow: 0 0 10px var(--secondary), 0 0 20px rgba(0, 210, 255, 0.5), 0 0 30px var(--secondary);
    color: var(--secondary);
}

.glow-btn {
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.glow-btn::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.3) 0%, transparent 40%);
    opacity: 0;
    transform: scale(0.5);
    transition: all 0.5s ease-out;
    z-index: -1;
}

.glow-btn:hover::before {
    opacity: 1;
    transform: scale(1);
    animation: rotate 2s linear infinite;
}

@keyframes rotate {
    0% {
        transform: scale(1) rotate(0deg);
    }

    100% {
        transform: scale(1) rotate(360deg);
    }
}

.cyber-card {
    background: rgba(20, 22, 31, 0.85);
    border: 1px solid rgba(255, 77, 0, 0.2);
    box-shadow: 0 0 15px rgba(255, 77, 0, 0.05);
    position: relative;
}

.cyber-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 2px solid transparent;
    border-image: linear-gradient(135deg, var(--primary), transparent 50%, var(--secondary)) 1;
    opacity: 0;
    transition: var(--transition);
    z-index: -1;
}

.cyber-card:hover::after {
    opacity: 1;
}

.cyber-card:hover {
    box-shadow: 0 0 25px var(--primary-glow);
    transform: translateY(-5px);
}

.badge-glow {
    box-shadow: 0 0 15px var(--primary-glow);
    border-color: var(--primary);
    background: rgba(255, 77, 0, 0.1);
}

.stat-showcase {
    background: linear-gradient(45deg, var(--bg-card), var(--bg-dark));
    border-top: 1px solid var(--glass-border);
    border-bottom: 1px solid var(--glass-border);
    padding: 40px 0;
    box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.5);
}

.stat-item-glow h3 {
    font-size: 3rem;
    background: linear-gradient(to right, #00d2ff, #3a7bd5);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 800;
    margin-bottom: 5px;
    filter: drop-shadow(0px 0px 8px rgba(0, 210, 255, 0.4));
}

.stat-item-glow p {
    color: var(--text-gray);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 14px;
    font-weight: 600;
}

/* ===== ADDITIONAL GAMING SECTIONS ===== */
.marquee-wrap {
    width: 100vw;
    /* Force full width */
    margin-left: calc(-50vw + 50%);
    /* Magic offset */
    overflow: hidden;
    background: var(--bg-card);
    border-top: 1px solid var(--primary-glow);
    border-bottom: 1px solid var(--primary-glow);
    padding: 12px 0;
    position: relative;
    white-space: nowrap;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.marquee-content {
    display: inline-flex;
    animation: marquee-scroll 25s linear infinite;
}

.marquee-wrap:hover .marquee-content {
    animation-play-state: paused;
}

@keyframes marquee-scroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

.winner-item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-right: 50px;
    font-size: 15px;
    font-weight: 600;
    color: var(--text-gray);
}

.winner-item span {
    color: var(--primary);
}

.game-showcase-card {
    position: relative;
    height: 400px;
    border-radius: 20px;
    overflow: hidden;
    cursor: pointer;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.5);
    border: 1px solid var(--glass-border);
    transition: all 0.4s ease;
}

.game-showcase-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.5s ease;
    filter: brightness(0.6);
}

.game-showcase-card:hover img {
    transform: scale(1.08);
    filter: brightness(0.9);
}

.game-showcase-card:hover {
    border-color: var(--primary);
    box-shadow: 0 0 30px var(--primary-glow);
}

.game-showcase-content {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 30px;
    background: linear-gradient(to top, rgba(10, 11, 16, 1) 0%, transparent 100%);
    transform: translateY(20px);
    transition: all 0.4s ease;
    text-align: left;
}

.game-showcase-card:hover .game-showcase-content {
    transform: translateY(0);
}

.game-showcase-content h3 {
    font-size: 28px;
    text-transform: uppercase;
    margin-bottom: 5px;
    color: #fff;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
}

.step-wrapper {
    position: relative;
    padding: 40px 20px;
    /* Reduced side padding slightly for fitting */
    background: var(--glass);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    text-align: center;
    transition: var(--transition);
    height: 100%;
    /* Ensure equal heights */
    display: flex;
    flex-direction: column;
    align-items: center;
}

.step-wrapper:hover {
    background: rgba(255, 77, 0, 0.05);
    border-color: rgba(255, 77, 0, 0.3);
    transform: translateY(-5px);
}

.step-wrapper::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--primary), transparent);
    opacity: 0;
    transition: var(--transition);
}

.step-wrapper:hover::before {
    opacity: 1;
}

.step-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 25px;
    font-size: 32px;
    color: var(--primary);
    background: rgba(255, 77, 0, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px dashed var(--primary);
    box-shadow: inset 0 0 15px var(--primary-glow);
    transition: var(--transition);
}

.step-wrapper:hover .step-icon {
    background: var(--primary);
    color: #fff;
    border-style: solid;
    box-shadow: 0 0 20px var(--primary-glow);
}

/* ===== ADVANCED CYBERPUNK/GAMING FX ===== */
/* Floating Elements Animation */
@keyframes float {
    0% {
        transform: translateY(0px) rotate(0deg);
    }

    50% {
        transform: translateY(-15px) rotate(5deg);
    }

    100% {
        transform: translateY(0px) rotate(0deg);
    }
}

.floating-element {
    animation: float 6s ease-in-out infinite;
}

/* Cyber Button with Glitch effect */
.cyber-btn {
    position: relative;
    border: 2px solid var(--primary);
    background: transparent;
    color: #fff;
    padding: 14px 30px;
    font-size: 16px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 2px;
    cursor: pointer;
    overflow: hidden;
    z-index: 1;
    transition: var(--transition);
    box-shadow: 0 0 10px rgba(255, 77, 0, 0.3);
}

.cyber-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--primary);
    z-index: -1;
    transition: transform 0.4s cubic-bezier(0.75, 0, 0.125, 1);
    transform: scaleX(0);
    transform-origin: left;
}

.cyber-btn:hover::before {
    transform: scaleX(1);
}

.cyber-btn:hover {
    box-shadow: 0 0 25px var(--primary-glow), inset 0 0 10px var(--primary-glow);
    text-shadow: 0 0 8px #fff;
    border-color: #ff7b00;
}

/* Glassmorphism Refinement */
.glass-premium {
    background: rgba(15, 17, 26, 0.4);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.5);
}

.glass-premium:hover {
    border: 1px solid rgba(0, 210, 255, 0.3);
    box-shadow: 0 8px 32px 0 rgba(0, 210, 255, 0.15);
}

/* Particle Background for Hero */
.particles-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    overflow: hidden;
    pointer-events: none;
}

.particles-bg::before,
.particles-bg::after {
    content: '';
    position: absolute;
    width: 2px;
    height: 2px;
    background: white;
    box-shadow:
        10vw 20vh white, 30vw 50vh var(--primary), 80vw 80vh var(--secondary),
        60vw 10vh white, 90vw 40vh var(--primary), 20vw 90vh var(--secondary),
        50vw 60vh white, 15vw 30vh var(--primary), 70vw 70vh var(--secondary);
    border-radius: 50%;
    animation: particlesMove 30s linear infinite;
    opacity: 0.5;
}

.particles-bg::after {
    animation-direction: reverse;
    animation-duration: 40s;
    box-shadow:
        20vw 10vh white, 40vw 80vh var(--primary), 90vw 20vh var(--secondary),
        70vw 30vh white, 10vw 50vh var(--primary), 30vw 70vh var(--secondary),
        80vw 90vh white, 5vw 40vh var(--primary), 60vw 60vh var(--secondary);
}

@keyframes particlesMove {
    0% {
        transform: translateY(0);
    }

    100% {
        transform: translateY(-100vh);
    }
}

/* Countdown Badge */
.countdown-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(0, 0, 0, 0.7);
    border: 1px solid var(--warning);
    border-radius: 8px;
    padding: 6px 12px;
    font-size: 13px;
    font-weight: 700;
    color: var(--warning);
    box-shadow: 0 0 10px rgba(255, 193, 7, 0.3);
    animation: pulse-warning 2s infinite;
    z-index: 10;
    backdrop-filter: blur(5px);
}

@keyframes pulse-warning {
    0% {
        box-shadow: 0 0 0 0 rgba(255, 193, 7, 0.5);
    }

    70% {
        box-shadow: 0 0 0 10px rgba(255, 193, 7, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(255, 193, 7, 0);
    }
}

/* Progress bar cyber style */
.cyber-progress-bg {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    height: 8px;
    width: 100%;
    overflow: hidden;
    position: relative;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.5);
}

.cyber-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--secondary), #00ff88);
    border-radius: 10px;
    box-shadow: 0 0 10px var(--secondary);
    transition: width 1s ease-in-out;
}

.cyber-progress-fill.full {
    background: linear-gradient(90deg, #ff4b2b, #ff416c);
    box-shadow: 0 0 10px #ff4b2b;
}

/* Glowing text colors */
.text-glow-cyan {
    text-shadow: 0 0 10px var(--secondary);
    color: var(--secondary);
}

.text-glow-orange {
    text-shadow: 0 0 10px var(--primary);
    color: var(--primary);
}

/* Scroll to top button */
.scroll-top-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: rgba(10, 11, 16, 0.8);
    border: 1px solid var(--secondary);
    color: var(--secondary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    cursor: pointer;
    box-shadow: 0 0 15px rgba(0, 210, 255, 0.3);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
}

.scroll-top-btn.visible {
    opacity: 1;
    visibility: visible;
}

.scroll-top-btn:hover {
    background: var(--secondary);
    color: #000;
    box-shadow: 0 0 25px rgba(0, 210, 255, 0.8);
    transform: translateY(-5px);
}

/* ======================================================= */
/* =================== RESPONSIVE ======================== */
/*   IMPORTANT: Only overrides what's needed per breakpoint */
/*   Desktop layout (inline styles) is NOT touched above   */
/* ======================================================= */

/* ---- Tablet 992px ---- */
@media (max-width: 992px) {

    /* Show hamburger, hide desktop nav links */
    .nav-links {
        display: none;
    }

    .hamburger {
        display: flex;
    }

    /* Hide sidebar (on all pages that use the 280px grid).
       On mobile the bottom nav replaces it. */
    aside {
        display: none !important;
    }

    /* Collapse any inline-style grid on dashboard/admin pages */
    .container>div[style*="grid-template-columns"],
    .container[style*="grid-template-columns"] {
        display: block !important;
    }

    /* Main area gets full width */
    .container>div[style*="grid-template-columns"]>main,
    .container[style*="grid-template-columns"]>main {
        width: 100% !important;
    }

    /* Show mobile bottom nav */
    .mobile-bottom-nav {
        display: flex;
    }

    body {
        padding-bottom: var(--mobile-bottom-nav);
    }
}

/* ---- Mobile 768px ---- */
@media (max-width: 768px) {
    .container {
        padding: 0 12px;
    }

    /* Hero */
    .hero-title {
        font-size: 36px !important;
    }

    .hero-desc {
        font-size: 15px;
        margin-bottom: 25px;
    }

    .hero {
        padding-top: 90px;
    }

    .stat-item-glow h3 {
        font-size: 2.5rem;
    }

    .stat-item-glow p {
        font-size: 11px;
    }

    .stat-showcase .container>div {
        flex-direction: column !important;
        gap: 20px !important;
    }

    .section-padding {
        padding: 50px 0;
    }

    div[style*="grid-template-columns: repeat(auto-fit, minmax(300px, 1fr))"],
    .tournament-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    div[style*="grid-template-columns: repeat(auto-fit, minmax(220px, 1fr))"],
    div[style*="grid-template-columns: 1.5fr 1fr"] {
        grid-template-columns: 1fr !important;
        gap: 20px !important;
    }

    /* Glass card padding reduce */
    .glass-card {
        padding: 24px 16px !important;
        border-radius: 16px;
        transform: none !important;
        /* Stop vertical bumping on mobile */
    }

    /* Button sizing */
    .btn,
    .cyber-btn {
        padding: 12px 20px !important;
        font-size: 14px !important;
        width: 100%;
        /* full width on mobile */
        margin-bottom: 10px;
    }

    /* Center Hero content on mobile properly */
    .hero-content {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
    }

    .hero-content div[style*="display: flex"] {
        flex-direction: column;
        gap: 15px !important;
        width: 100%;
        margin-top: 10px;
    }

    .hero-content .cyber-btn,
    .hero-content .glow-btn {
        width: 100%;
    }

    /* Collapse multi-column inline grids on dashboard pages */
    div[style*="grid-template-columns: repeat(4, 1fr)"],
    div[style*="grid-template-columns: repeat(3, 1fr)"],
    div[style*="grid-template-columns: 2fr 1fr"],
    div[style*="grid-template-columns: 1.5fr 1fr"],
    div[style*="grid-template-columns: 1fr 1fr"] {
        grid-template-columns: 1fr !important;
        gap: 15px !important;
    }

    /* Tables - horizontal scroll */
    div[style*="overflow-x: auto"] {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    div[style*="overflow-x: auto"] table {
        min-width: 650px;
    }

    /* Balance amounts */
    div[style*="font-size: 48px"] {
        font-size: 30px !important;
    }

    div[style*="font-size: 36px"].balance {
        font-size: 26px !important;
    }

    /* Footer */
    footer {
        padding-bottom: calc(var(--mobile-bottom-nav) + 15px) !important;
    }

    footer>div>div[style*="grid-template-columns"] {
        grid-template-columns: 1fr !important;
        gap: 25px !important;
    }

    /* Flex header rows that are too tight */
    div[style*="justify-content: space-between"][style*="align-items: center"][style*="margin-bottom: 30px"],
    div[style*="justify-content: space-between"][style*="align-items: center"][style*="margin-bottom: 25px"] {
        flex-wrap: wrap;
        gap: 12px;
    }

    /* Modal sizing */
    div[style*="max-width: 500px"],
    div[style*="max-width: 400px"],
    div[style*="max-width: 600px"] {
        width: 92% !important;
        margin: 0 auto;
        padding: 20px !important;
    }

    /* Wallet action row */
    div[style*="display: flex"][style*="gap: 15px"][style*="margin-top"] {
        flex-wrap: wrap;
        gap: 10px;
    }
}

/* ---- Small phones 480px ---- */
@media (max-width: 480px) {
    .logo {
        font-size: 18px;
    }

    .hero-title {
        font-size: 26px !important;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }

    .stat-card {
        padding: 12px;
    }

    .stat-card .stat-num {
        font-size: 20px;
    }

    .balance-amount {
        font-size: 26px !important;
    }

    h2[style*="font-size: 24px"] {
        font-size: 18px !important;
    }

    h3[style*="font-size: 20px"] {
        font-size: 16px !important;
    }

    /* Admin action buttons in table rows */
    div[style*="display: flex; gap: 8px"] {
        flex-wrap: wrap;
        gap: 5px !important;
    }

    /* Newsletter input in footer */
    footer div[style*="display: flex; gap: 10px"] {
        flex-direction: column;
    }
}