/* ==========================================================================
   VORTEX ARENA - MODERN COMPETITIVE WARFACE 5X5
   Signature Dark & Crimson Color Scheme (from Vortex Launcher)
   ========================================================================== */

:root {
    --bg-void: #070406;
    --bg-main: #0C080A;
    --bg-surface: #130B0E;
    --bg-card: #180D11;
    --bg-card-hover: #221117;
    --bg-card-active: #2B141C;

    --border-subtle: rgba(255, 255, 255, 0.07);
    --border-card: rgba(229, 29, 44, 0.22);
    --border-glow: rgba(229, 29, 44, 0.65);

    --crimson: #E51D2C;
    --crimson-bright: #FF2A3C;
    --crimson-dark: #8C141C;
    --crimson-deep: #4A0E13;
    --crimson-glow: rgba(229, 29, 44, 0.45);
    --crimson-ambient: rgba(229, 29, 44, 0.18);

    --text-white: #FFFFFF;
    --text-primary: #EDEDED;
    --text-secondary: #A89FA3;
    --text-muted: #6B6266;

    --font-main: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-mono: 'JetBrains Mono', 'SF Mono', Consolas, monospace;
    --font-display: 'Rajdhani', 'Inter', -apple-system, sans-serif;

    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
    --radius-full: 9999px;

    --transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Base & Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    width: 100%;
    min-height: 100vh;
    background-color: var(--bg-void);
    color: var(--text-primary);
    font-family: var(--font-main);
    font-size: 15px;
    line-height: 1.5;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Background Atmosphere & Grid */
.bg-ambient {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.bg-ambient::before {
    content: '';
    position: absolute;
    bottom: -150px;
    left: -120px;
    width: 650px;
    height: 650px;
    background: radial-gradient(circle, rgba(229, 29, 44, 0.35) 0%, rgba(229, 29, 44, 0.08) 50%, transparent 75%);
    filter: blur(60px);
    opacity: 0.85;
}

.bg-ambient::after {
    content: '';
    position: absolute;
    top: 10%;
    right: 5%;
    width: 700px;
    height: 700px;
    background: radial-gradient(circle, rgba(229, 29, 44, 0.15) 0%, rgba(140, 20, 28, 0.05) 55%, transparent 75%);
    filter: blur(80px);
    opacity: 0.7;
}

.bg-grid {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(to right, rgba(255, 255, 255, 0.02) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
    background-size: 48px 48px;
    pointer-events: none;
    z-index: 0;
}

/* Layout Container */
.page-wrapper {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    padding: 0 48px 24px;
    max-width: 1680px;
    margin: 0 auto;
}

@media (max-width: 1024px) {
    .page-wrapper {
        padding: 0 24px 20px;
    }
}

@media (max-width: 640px) {
    .page-wrapper {
        padding: 0 16px 16px;
    }
}

/* ==========================================================================
   Header & Navigation
   ========================================================================== */
.site-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 78px;
    border-bottom: 1px solid var(--border-subtle);
    position: sticky;
    top: 0;
    background: rgba(12, 8, 10, 0.85);
    backdrop-filter: blur(16px);
    z-index: 100;
    margin: 0 -48px 0;
    padding: 0 48px;
}

@media (max-width: 1024px) {
    .site-header {
        margin: 0 -24px;
        padding: 0 24px;
    }
}

@media (max-width: 640px) {
    .site-header {
        margin: 0 -16px;
        padding: 0 16px;
        height: 68px;
    }
}

.header-left {
    display: flex;
    align-items: center;
    gap: 48px;
}

/* Brand Logo */
.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: var(--text-white);
    user-select: none;
}

.brand-emblem {
    width: 36px;
    height: 36px;
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.brand-emblem img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 0 12px var(--crimson-glow));
    transition: var(--transition);
}

.brand:hover .brand-emblem img {
    filter: drop-shadow(0 0 18px var(--crimson-bright));
    transform: scale(1.05);
}

.brand-text {
    display: flex;
    flex-direction: column;
}

.brand-title {
    font-size: 19px;
    font-weight: 800;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 6px;
}

.brand-title .slash {
    color: var(--crimson-bright);
    font-weight: 900;
}

.brand-subtitle {
    font-size: 10px;
    letter-spacing: 3px;
    color: var(--text-muted);
    font-weight: 700;
    text-transform: uppercase;
    margin-top: -2px;
}

/* Navigation Links */
.main-nav {
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-link {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    padding: 8px 16px;
    position: relative;
    transition: color 0.2s ease, text-shadow 0.2s ease;
    cursor: pointer;
    background: transparent;
}

.nav-link:hover {
    color: var(--text-white);
    background: transparent;
    text-shadow: 0 0 8px rgba(255, 255, 255, 0.35);
}

.nav-link.active {
    color: var(--text-white);
    font-weight: 700;
    background: transparent;
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 16px;
    right: 16px;
    height: 2px;
    background: var(--crimson-bright);
    box-shadow: 0 0 12px var(--crimson-bright);
    border-radius: 2px;
}

/* Header Right */
.header-right {
    display: flex;
    align-items: center;
    gap: 16px;
}

.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 5px 12px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: var(--radius-full);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.5px;
    color: #9A9195;
    text-transform: uppercase;
}

.status-dot {
    width: 8px;
    height: 8px;
    background-color: #10B981;
    border-radius: 50%;
    box-shadow: 0 0 8px #10B981;
    animation: pulse-dot 2s infinite ease-in-out;
}

@keyframes pulse-dot {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(0.85); }
}

.btn-header-action {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 20px;
    background: linear-gradient(135deg, var(--crimson), var(--crimson-dark));
    color: var(--text-white);
    text-decoration: none;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.5px;
    border-radius: var(--radius-sm);
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 2px 14px var(--crimson-glow);
    transition: var(--transition);
    cursor: pointer;
}

/* ==========================================================================
   Modern Riot / Cyber Minimalist Header Components
   ========================================================================== */
.header-dropdown-wrap {
    position: relative;
    display: inline-block;
}

.btn-header-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 14px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    color: #e5e0e2;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: background 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.btn-header-pill:hover,
.btn-header-pill.active {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(229, 29, 44, 0.4);
    color: #fff;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
}

.pill-arrow {
    font-size: 10px;
    color: #8A8285;
    transition: transform 0.2s ease;
}

.btn-header-pill.active .pill-arrow {
    transform: rotate(180deg);
}

.pill-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #42D878;
    box-shadow: 0 0 8px #42D878;
}

.header-dropdown-menu {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    min-width: 250px;
    background: rgba(14, 9, 12, 0.96);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.8), 0 0 20px rgba(229, 29, 44, 0.15);
    border-radius: 12px;
    padding: 8px;
    z-index: 1000;
    display: none;
    animation: fadeInDropdown 0.18s ease-out forwards;
}

.header-dropdown-menu.show {
    display: block !important;
}

@keyframes fadeInDropdown {
    from { opacity: 0; transform: translateY(-6px); }
    to { opacity: 1; transform: translateY(0); }
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    border-radius: 8px;
    text-decoration: none;
    color: #e2dcd7;
    transition: background 0.15s ease, transform 0.15s ease;
    cursor: pointer;
}

.dropdown-item:hover {
    background: rgba(255, 255, 255, 0.06);
    color: #fff;
}

.dropdown-icon {
    font-size: 18px;
    width: 26px;
    text-align: center;
    flex-shrink: 0;
}

.dropdown-text {
    flex: 1;
}

.dropdown-title {
    font-size: 13px;
    font-weight: 800;
    line-height: 1.2;
}

.dropdown-desc {
    font-size: 11px;
    color: #8A8285;
    margin-top: 2px;
}

.dropdown-divider {
    height: 1px;
    background: rgba(255, 255, 255, 0.07);
    margin: 6px 0;
}

.dropdown-user-header {
    padding: 10px 12px 6px;
}

.dropdown-user-name {
    font-size: 15px;
    font-weight: 900;
    color: #fff;
}

.dropdown-user-sub {
    font-size: 11px;
    color: #E51D2C;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.dropdown-balances-block {
    padding: 8px 12px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.balance-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 12px;
    font-weight: 700;
}

.bal-label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #9A9195;
}

.bal-label img {
    width: 15px;
    height: 15px;
}

.bal-val {
    font-weight: 800;
}

/* User Wallet Compact Pill */
.user-wallet-compact {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    background: rgba(23, 13, 16, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.18s ease, border-color 0.18s ease;
}

.user-wallet-compact:hover {
    background: rgba(35, 18, 24, 0.95);
    border-color: rgba(229, 29, 44, 0.45);
}

.wallet-icon {
    width: 17px;
    height: 17px;
}

.wallet-amount {
    font-size: 13px;
    font-weight: 800;
    color: #fff;
    letter-spacing: 0.3px;
}

.wallet-currency {
    font-size: 11px;
    font-weight: 800;
    color: #FF5262;
}

.wallet-add-btn {
    width: 20px;
    height: 20px;
    background: rgba(229, 29, 44, 0.25);
    border: 1px solid rgba(229, 29, 44, 0.5);
    color: #FF5262;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 900;
    margin-left: 4px;
    cursor: pointer;
    transition: background 0.15s ease;
}

.user-wallet-compact:hover .wallet-add-btn {
    background: #E51D2C;
    color: #fff;
}

.user-avatar-badge {
    width: 22px;
    height: 22px;
    background: #E51D2C;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    color: #fff;
}

.btn-header-action:hover {
    background: linear-gradient(135deg, var(--crimson-bright), var(--crimson));
    box-shadow: 0 4px 20px rgba(229, 29, 44, 0.65);
    transform: translateY(-1px);
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero-section {
    display: grid;
    grid-template-columns: 1.15fr 1fr;
    align-items: center;
    gap: 40px;
    padding: 60px 0 50px;
    min-height: 480px;
}

@media (max-width: 1024px) {
    .hero-section {
        grid-template-columns: 1fr;
        padding: 40px 0 30px;
        gap: 30px;
    }
}

.hero-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    max-width: 680px;
}

.hero-tag {
    font-family: var(--font-mono);
    color: var(--crimson-bright);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 18px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-shadow: 0 0 12px var(--crimson-glow);
}

.hero-title {
    font-size: 54px;
    font-weight: 900;
    line-height: 1.1;
    letter-spacing: -0.5px;
    color: var(--text-white);
    margin-bottom: 22px;
    text-shadow: 0 4px 24px rgba(0, 0, 0, 0.7);
}

.hero-title .highlight {
    background: linear-gradient(135deg, #FFFFFF 30%, var(--crimson-bright) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 38px;
    }
}

.hero-desc {
    color: var(--text-secondary);
    font-size: 16px;
    line-height: 1.6;
    max-width: 540px;
    margin-bottom: 36px;
}

.hero-actions {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    background: var(--text-white);
    color: #0c080a;
    font-size: 14px;
    font-weight: 800;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    text-decoration: none;
    padding: 14px 34px;
    border-radius: var(--radius-full);
    transition: var(--transition);
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 22px rgba(255, 255, 255, 0.2);
}

.btn-primary:hover {
    background: var(--crimson-bright);
    color: #ffffff;
    box-shadow: 0 6px 28px rgba(229, 29, 44, 0.65);
    transform: translateY(-2px);
}

.btn-primary svg {
    transition: transform 0.2s ease;
}

.btn-primary:hover svg {
    transform: translateX(4px);
}

.hero-login-link {
    color: var(--text-muted);
    font-size: 13px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: var(--transition);
    cursor: pointer;
    padding-left: 6px;
}

.hero-login-link span {
    color: var(--text-secondary);
    font-weight: 600;
}

.hero-login-link:hover span {
    color: var(--crimson-bright);
    text-decoration: underline;
}

/* ==========================================================================
   Hero Visual - Holographic Cyber Arena Circle & Floating Crests
   ========================================================================== */
.hero-visual {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 420px;
    user-select: none;
}

@media (max-width: 1024px) {
    .hero-visual {
        height: 340px;
    }
}

.arena-circle-container {
    position: relative;
    width: 320px;
    height: 320px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Concentric Outer Rings */
.circle-glow {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(229, 29, 44, 0.3) 0%, rgba(229, 29, 44, 0.05) 55%, transparent 75%);
    filter: blur(24px);
    animation: pulse-glow 4s infinite ease-in-out;
}

@keyframes pulse-glow {
    0%, 100% { transform: scale(1); opacity: 0.7; }
    50% { transform: scale(1.1); opacity: 1; }
}

.circle-radar {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 1px solid rgba(229, 29, 44, 0.35);
    box-shadow: inset 0 0 30px rgba(229, 29, 44, 0.15), 0 0 20px rgba(229, 29, 44, 0.15);
}

.circle-radar-inner {
    position: absolute;
    width: 82%;
    height: 82%;
    border-radius: 50%;
    border: 1px dashed rgba(229, 29, 44, 0.3);
    animation: rotate-slow 40s linear infinite;
}

@keyframes rotate-slow {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.circle-radar-core {
    position: absolute;
    width: 65%;
    height: 65%;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(30, 14, 18, 0.9) 0%, rgba(14, 8, 10, 0.95) 100%);
    border: 1px solid rgba(229, 29, 44, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 35px rgba(229, 29, 44, 0.35);
}

/* Center Arena Bars // */
.arena-bars {
    display: flex;
    align-items: center;
    gap: 12px;
    transform: skewX(-14deg);
}

.arena-bar {
    width: 18px;
    height: 64px;
    border-radius: 6px;
    background: linear-gradient(180deg, #FFFFFF 0%, var(--crimson-bright) 45%, var(--crimson-dark) 100%);
    box-shadow: 0 0 20px var(--crimson-glow), 0 0 40px rgba(229, 29, 44, 0.4);
}

.arena-bar:nth-child(2) {
    background: linear-gradient(180deg, #FFFFFF 0%, #FF5262 50%, var(--crimson) 100%);
    height: 72px;
}

/* Floating Rank Badges around Arena */
.floating-badge {
    position: absolute;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    filter: drop-shadow(0 0 14px rgba(229, 29, 44, 0.4));
    cursor: pointer;
}

.floating-badge:hover {
    transform: scale(1.15) !important;
    filter: drop-shadow(0 0 24px var(--crimson-bright));
}

.floating-badge.badge-1 {
    top: 25px;
    left: -40px;
    animation: float-1 4.5s ease-in-out infinite;
}

.floating-badge.badge-2 {
    top: 15px;
    right: -25px;
    animation: float-2 5s ease-in-out infinite;
}

.floating-badge.badge-3 {
    bottom: 40px;
    right: -45px;
    animation: float-3 4.8s ease-in-out infinite;
}

.floating-badge.badge-4 {
    bottom: 20px;
    left: -20px;
    animation: float-4 5.2s ease-in-out infinite;
}

@keyframes float-1 {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(4px, -12px); }
}

@keyframes float-2 {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(-6px, -10px); }
}

@keyframes float-3 {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(-5px, 8px); }
}

@keyframes float-4 {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(6px, 10px); }
}

.badge-gem {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ==========================================================================
   Action Cards (3 Cards from screenshot)
   ========================================================================== */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 38px;
}

@media (max-width: 900px) {
    .cards-grid {
        grid-template-columns: 1fr;
    }
}

.action-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    padding: 24px 24px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 140px;
    transition: var(--transition);
    position: relative;
    cursor: pointer;
    overflow: hidden;
}

.action-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: transparent;
    transition: var(--transition);
}

.action-card:hover {
    background: var(--bg-card-hover);
    border-color: var(--border-card);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4), 0 0 20px rgba(229, 29, 44, 0.15);
    transform: translateY(-3px);
}

.action-card:hover::before {
    background: var(--crimson-bright);
    box-shadow: 0 0 12px var(--crimson-bright);
}

.card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}

.card-title-group {
    display: flex;
    align-items: center;
    gap: 10px;
}

.card-icon {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--crimson-bright);
}

.card-title {
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--text-white);
}

.card-arrow {
    color: var(--text-muted);
    font-size: 16px;
    transition: var(--transition);
}

.action-card:hover .card-arrow {
    color: var(--crimson-bright);
    transform: translateX(4px);
}

.card-text {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.5;
}

/* ==========================================================================
   Horizontal Feature Badges (3 info columns)
   ========================================================================== */
.features-strip {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    padding: 24px 0 36px;
    border-top: 1px solid var(--border-subtle);
    border-bottom: 1px solid var(--border-subtle);
    margin-bottom: 34px;
}

@media (max-width: 900px) {
    .features-strip {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

.feature-item {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.feature-title {
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--text-white);
    display: flex;
    align-items: center;
    gap: 6px;
}

.feature-title .bullet {
    color: var(--crimson-bright);
}

.feature-desc {
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.45;
}

/* ==========================================================================
   Leaderboard / Ticker Section
   ========================================================================== */
.leaderboard-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(22, 13, 17, 0.6);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    padding: 12px 24px;
    gap: 24px;
    position: relative;
    overflow: hidden;
}

@media (max-width: 1024px) {
    .leaderboard-bar {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }
}

.leaderboard-ambient {
    position: absolute;
    left: -40px;
    top: 50%;
    transform: translateY(-50%);
    width: 140px;
    height: 140px;
    background: radial-gradient(circle, rgba(229, 29, 44, 0.4) 0%, transparent 70%);
    filter: blur(20px);
    pointer-events: none;
}

.leaderboard-players {
    display: flex;
    align-items: center;
    gap: 24px;
    flex-wrap: wrap;
    position: relative;
    z-index: 1;
}

.player-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    transition: var(--transition);
    cursor: pointer;
}

.player-item:hover {
    transform: translateY(-1px);
}

.player-rank-dot {
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    font-weight: 800;
    border-radius: 50%;
    background: var(--bg-surface);
    border: 1px solid var(--border-card);
    color: var(--crimson-bright);
}

.player-rank-dot.rank-1 {
    background: linear-gradient(135deg, #FFD700, #B8860B);
    color: #1a1005;
    border: none;
    box-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
}

.player-rank-dot.rank-2 {
    background: linear-gradient(135deg, #E0E0E0, #9E9E9E);
    color: #1a1005;
    border: none;
    box-shadow: 0 0 10px rgba(224, 224, 224, 0.4);
}

.player-rank-dot.rank-3 {
    background: linear-gradient(135deg, #CD7F32, #8B4513);
    color: #FFFFFF;
    border: none;
    box-shadow: 0 0 10px rgba(205, 127, 50, 0.4);
}

.player-name {
    color: var(--text-white);
    font-weight: 600;
}

.player-elo {
    color: var(--crimson-bright);
    font-size: 12px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 2px;
}

.leaderboard-action {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--text-secondary);
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
    white-space: nowrap;
    cursor: pointer;
    position: relative;
    z-index: 1;
}

.leaderboard-action:hover {
    color: var(--crimson-bright);
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 30px;
    color: var(--text-muted);
    font-size: 12px;
}

@media (max-width: 640px) {
    .site-footer {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
}

.footer-links {
    display: flex;
    align-items: center;
    gap: 20px;
}

.footer-link {
    color: var(--text-muted);
    text-decoration: none;
    transition: var(--transition);
}

.footer-link:hover {
    color: var(--text-secondary);
}

/* ==========================================================================
   Interactive Modals (Aim Trainer, Download, Profile, Shop)
   ========================================================================== */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(7, 4, 6, 0.85);
    backdrop-filter: blur(12px);
    z-index: 1000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    transition: opacity 0.25s ease;
}

.modal-overlay.open {
    display: flex;
    opacity: 1;
}

.modal-container {
    background: var(--bg-card);
    border: 1px solid var(--border-card);
    box-shadow: 0 16px 50px rgba(0, 0, 0, 0.8), 0 0 35px var(--crimson-ambient);
    border-radius: var(--radius-lg);
    width: 100%;
    max-width: 640px;
    max-height: 90vh;
    overflow-y: auto;
    overflow-x: hidden;
    position: relative;
    padding: 32px;
    transform: scale(0.95);
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

#modal-auth .modal-container {
    max-width: 500px !important;
    overflow-x: hidden !important;
}

#modal-auth #auth-tab-login,
#modal-auth #auth-tab-register,
#modal-auth #auth-tab-reset {
    padding: 6px 8px !important;
    font-size: 12px !important;
    letter-spacing: 0.3px !important;
    white-space: nowrap;
}

.modal-overlay.open .modal-container {
    transform: scale(1);
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-subtle);
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 18px;
    transition: var(--transition);
}

.modal-close:hover {
    background: var(--crimson);
    color: #ffffff;
    border-color: var(--crimson-bright);
}

.modal-title {
    font-size: 22px;
    font-weight: 800;
    color: var(--text-white);
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.modal-subtitle {
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 24px;
}

/* Aim Trainer Canvas Area */
#aim-canvas {
    width: 100%;
    height: 320px;
    background: #080406;
    border: 1px solid var(--border-card);
    border-radius: var(--radius-md);
    cursor: crosshair;
    display: block;
    margin-bottom: 18px;
    position: relative;
}

.aim-stats-row {
    display: flex;
    align-items: center;
    justify-content: space-around;
    padding: 12px;
    background: rgba(255, 255, 255, 0.02);
    border-radius: var(--radius-sm);
    margin-bottom: 18px;
}

.aim-stat-col {
    text-align: center;
}

.aim-stat-val {
    font-size: 20px;
    font-weight: 800;
    color: var(--crimson-bright);
}

.aim-stat-lbl {
    font-size: 11px;
    text-transform: uppercase;
    color: var(--text-muted);
}

/* Download Modal UI */
.download-steps {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-bottom: 24px;
}

.download-step {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 14px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-sm);
}

.step-number {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--crimson);
    color: #fff;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.step-info h4 {
    font-size: 14px;
    color: #fff;
    margin-bottom: 2px;
}

.step-info p {
    font-size: 12px;
    color: var(--text-secondary);
}

/* Shop Modal Grid */
.shop-preview-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
    margin-bottom: 20px;
}

@media (max-width: 500px) {
    .shop-preview-grid {
        grid-template-columns: 1fr;
    }
}

.shop-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-sm);
    padding: 14px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    transition: var(--transition);
}

.shop-card:hover {
    border-color: var(--border-card);
    background: rgba(229, 29, 44, 0.06);
}

.shop-card-name {
    font-weight: 700;
    color: #ffffff;
    font-size: 13px;
}

.shop-card-type {
    font-size: 11px;
    color: var(--text-muted);
}

.shop-card-price {
    font-size: 13px;
    font-weight: 800;
    color: var(--crimson-bright);
    margin-top: 4px;
    display: flex;
    align-items: center;
    gap: 4px;
}

/* ==========================================================================
   Custom Action Confirmation Modal (Vortex Confirm)
   ========================================================================== */
.confirm-modal-box {
    background: linear-gradient(180deg, #180D11 0%, #0E0709 100%);
    border: 1px solid rgba(229, 29, 44, 0.45);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.95), 0 0 40px rgba(229, 29, 44, 0.25);
    border-radius: var(--radius-lg);
    width: 100%;
    max-width: 440px;
    padding: 28px;
    position: relative;
    transform: scale(0.95);
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-overlay.open .confirm-modal-box {
    transform: scale(1);
}

.confirm-preview-card {
    background: radial-gradient(circle, rgba(229, 29, 44, 0.16) 0%, rgba(14, 7, 9, 0.95) 80%);
    border: 1px solid rgba(229, 29, 44, 0.25);
    border-radius: var(--radius-md);
    padding: 16px;
    text-align: center;
    margin-bottom: 18px;
    position: relative;
    overflow: hidden;
}

.confirm-preview-img {
    max-height: 80px;
    max-width: 90%;
    object-fit: contain;
    filter: drop-shadow(0 6px 14px rgba(0, 0, 0, 0.9));
    margin-bottom: 8px;
}

.confirm-preview-title {
    font-size: 16px;
    font-weight: 900;
    color: #ffffff;
    letter-spacing: 0.3px;
}

.confirm-preview-price {
    font-size: 13px;
    font-weight: 800;
    color: var(--crimson-bright);
    margin-top: 5px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

@media (max-width: 1024px) {
    .header-left { gap: 16px; }
    .nav-link { padding: 6px 10px; font-size: 11px; }
    .user-pill .currency-tag:not(:first-child),
    .user-pill > div:last-child > span:not(:first-child) { display: none; }
}

.mobile-menu-btn {
    display: none;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-subtle);
    color: var(--text-white);
    font-size: 18px;
    cursor: pointer;
    flex-shrink: 0;
    transition: var(--transition);
}

.mobile-menu-btn:hover {
    border-color: var(--crimson-bright);
    background: rgba(229, 29, 44, 0.15);
}

.mobile-nav-drawer {
    display: none;
    position: fixed;
    top: 68px;
    left: 0;
    right: 0;
    background: rgba(12, 8, 10, 0.98);
    backdrop-filter: blur(18px);
    border-bottom: 1px solid var(--border-card);
    padding: 16px;
    z-index: 999;
    flex-direction: column;
    gap: 10px;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.85);
}

.mobile-nav-drawer.open {
    display: flex;
}

.mobile-nav-drawer .nav-link {
    display: block;
    padding: 12px 14px;
    font-size: 13px;
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-subtle);
}

.mobile-nav-drawer .nav-link.active {
    background: rgba(229, 29, 44, 0.18);
    border-color: var(--crimson-bright);
    color: #fff;
}

.mobile-balances-bar {
    display: none;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    padding-top: 8px;
    border-top: 1px solid var(--border-subtle);
    font-size: 12px;
    font-weight: 800;
}

@media (max-width: 860px) {
    .main-nav {
        display: none !important;
    }
    .mobile-menu-btn {
        display: inline-flex;
    }
    .status-badge {
        display: none !important;
    }
    .site-header {
        height: 68px;
        position: sticky;
        top: 0;
        z-index: 1000;
        background: rgba(7, 4, 6, 0.92);
        backdrop-filter: blur(14px);
    }
    .brand-subtitle {
        display: none;
    }
    .brand-title {
        font-size: 16px;
    }
}

@media (max-width: 768px) {
    .hero-section {
        padding: 24px 0 20px;
        min-height: auto;
        gap: 24px;
    }
    .hero-title {
        font-size: 32px;
        line-height: 1.15;
    }
    .hero-desc {
        font-size: 14px;
        margin-bottom: 24px;
    }
    .btn-download {
        width: 100%;
        justify-content: center;
        padding: 16px 20px;
        font-size: 14px;
    }
    .hero-visual {
        min-height: 260px;
    }
    .modal-overlay {
        padding: 12px;
        align-items: flex-end;
    }
    .modal-container,
    .confirm-modal-box {
        max-width: 100% !important;
        max-height: 90vh;
        overflow-y: auto;
        padding: 22px 16px !important;
        border-radius: var(--radius-md);
    }
    .leaderboard-bar {
        padding: 16px;
    }
    .top-players-list {
        width: 100%;
        display: flex;
        flex-direction: column;
        gap: 8px;
    }
    .top-player-pill {
        width: 100%;
        justify-content: space-between;
    }
}

@media (max-width: 520px) {
    .hero-title {
        font-size: 27px;
    }
    .brand-text {
        display: none;
    }
    .header-left {
        gap: 10px;
    }
    .header-right {
        gap: 6px;
    }
    .btn-header-action,
    .btn-login {
        padding: 7px 10px !important;
        font-size: 11px !important;
    }
    #header-user {
        gap: 6px !important;
    }
    #user-nick {
        max-width: 88px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
        display: inline-block;
        vertical-align: bottom;
    }
    #shop-items-container,
    #news-list-container,
    #ref-tiers-grid {
        grid-template-columns: 1fr !important;
    }
    #category-tabs {
        display: flex !important;
        overflow-x: auto;
        flex-wrap: nowrap !important;
        -webkit-overflow-scrolling: touch;
        padding-bottom: 6px;
        max-width: 100%;
    }
    #category-tabs .nav-link {
        flex-shrink: 0;
    }
}

.auth-tab-btn {
    transition: background 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.auth-tab-btn.active {
    background: rgba(229, 29, 44, 0.22) !important;
    border-color: var(--crimson-bright) !important;
    box-shadow: 0 0 12px rgba(229, 29, 44, 0.25);
    color: #ffffff !important;
}


/* ==========================================================================
   VORTEX DYNAMIC ANIMATIONS (Shimmer, 3D Tilt, Scroll Reveal, Breathing Glow)
   ========================================================================== */

/* 1. Бегущий световой блик на ключевых кнопках */
.btn-primary, .hero-cta, .btn-glow, .download-btn, .shop-buy-btn {
    position: relative;
    overflow: hidden;
}

.btn-primary::after, .hero-cta::after, .btn-glow::after, .download-btn::after, .shop-buy-btn::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -70%;
    width: 45%;
    height: 200%;
    background: linear-gradient(
        to right,
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 0.32) 50%,
        rgba(255, 255, 255, 0) 100%
    );
    transform: rotate(28deg);
    animation: vortex-shimmer-sweep 4.8s infinite ease-in-out;
    pointer-events: none;
}

@keyframes vortex-shimmer-sweep {
    0%, 72% { left: -70%; }
    100% { left: 160%; }
}

/* 2. Плавный подъем и неоновая подсветка карточек */
.shop-card, .news-card, .feature-card, .stat-card, .tier-card {
    transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.28s ease, border-color 0.28s ease !important;
    transform-style: preserve-3d;
    will-change: transform;
}

.shop-card:hover, .news-card:hover, .feature-card:hover {
    transform: translateY(-6px) scale(1.015);
    box-shadow: 0 16px 36px rgba(229, 29, 44, 0.22), 0 0 20px rgba(229, 29, 44, 0.16) !important;
    border-color: rgba(229, 29, 44, 0.55) !important;
}

/* 3. Плавное проявление контента при скролле */
.reveal-on-scroll {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.55s cubic-bezier(0.16, 1, 0.3, 1), transform 0.55s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: opacity, transform;
}

.reveal-on-scroll.is-revealed {
    opacity: 1;
    transform: translateY(0);
}

/* 4. Неоновое пульсирующее дыхание логотипа */
.brand-logo-glow, .hero-badge-glow {
    animation: vortex-breathing 3.2s infinite ease-in-out;
}

@keyframes vortex-breathing {
    0%, 100% { filter: drop-shadow(0 0 8px rgba(229, 29, 44, 0.35)); }
    50% { filter: drop-shadow(0 0 22px rgba(229, 29, 44, 0.75)); }
}
