/* ==========================================================================
   FREE FIRE TOURNAMENT ARENA - Ultimate Gaming Theme
   Palette: Deep Navy + Fiery Orange + Neon Cyan + Gold
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;600;800;900&family=Rajdhani:wght@400;500;600;700&family=Poppins:wght@300;400;500;600;700&display=swap');

/* ── CSS Variables ─────────────────────────────────────────────────────────── */
:root {
    --bg-void:        #050810;
    --bg-dark:        #080c18;
    --bg-mid:         #0d1224;
    --bg-card:        rgba(8, 14, 30, 0.75);
    --fire-red:       #ff2a00;
    --fire-orange:    #ff6b00;
    --fire-yellow:    #ffc200;
    --neon-cyan:      #00e5ff;
    --neon-cyan-glow: rgba(0, 229, 255, 0.4);
    --gold:           #ffd700;
    --glass-border:   rgba(0, 229, 255, 0.18);
    --text-muted:     #94a3b8;
    --font-heading:   'Orbitron', sans-serif;
    --font-sub:       'Rajdhani', sans-serif;
    --font-body:      'Poppins', sans-serif;
    --transition:     0.3s ease;
}

/* ── Scrollbar ─────────────────────────────────────────────────────────────── */
::-webkit-scrollbar { width: 7px; }
::-webkit-scrollbar-track { background: var(--bg-void); }
::-webkit-scrollbar-thumb { background: var(--fire-orange); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--neon-cyan); }

/* ── Body & Base ───────────────────────────────────────────────────────────── */
body {
    background: var(--bg-void);
    color: #f0f4ff;
    font-family: var(--font-body);
    margin: 0; padding: 0;
    overflow-x: hidden;
    position: relative;
}

/* Animated ember/star particle background */
body::before {
    content: '';
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    pointer-events: none;
    z-index: 0;
    background:
        radial-gradient(ellipse at 20% 50%, rgba(255,107,0,0.07) 0%, transparent 60%),
        radial-gradient(ellipse at 80% 10%, rgba(0,229,255,0.06) 0%, transparent 55%),
        radial-gradient(ellipse at 50% 90%, rgba(255,42,0,0.05) 0%, transparent 50%);
    animation: bgPulse 8s ease-in-out infinite alternate;
}

@keyframes bgPulse {
    from { opacity: 0.6; }
    to   { opacity: 1; }
}

/* Ensure content stays on top of pseudo-element */
nav, main, footer, .toast-container, #spinner-container, #back-to-top {
    position: relative;
    z-index: 1;
}

/* ── Typography ────────────────────────────────────────────────────────────── */
h1,h2,h3,h4,h5,h6,.font-heading {
    font-family: var(--font-heading);
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

.font-sub { font-family: var(--font-sub); }

.text-neon-cyan {
    color: var(--neon-cyan) !important;
    text-shadow: 0 0 12px var(--neon-cyan-glow);
}
.text-neon-orange {
    color: var(--fire-orange) !important;
    text-shadow: 0 0 10px rgba(255,107,0,0.5);
}
.text-fire-red { color: var(--fire-red) !important; }
.text-gold     { color: var(--gold) !important; text-shadow: 0 0 8px rgba(255,215,0,0.4); }

/* ── Glowing Border Utilities ──────────────────────────────────────────────── */
.border-neon-cyan {
    border: 1px solid var(--neon-cyan) !important;
    box-shadow: 0 0 10px var(--neon-cyan-glow), inset 0 0 6px rgba(0,229,255,0.05);
}
.border-neon-orange {
    border: 1px solid var(--fire-orange) !important;
    box-shadow: 0 0 10px rgba(255,107,0,0.35);
}
.border-gold {
    border: 1px solid var(--gold) !important;
    box-shadow: 0 0 10px rgba(255,215,0,0.3);
}

/* ── Navbar ────────────────────────────────────────────────────────────────── */
.navbar {
    background: linear-gradient(90deg, rgba(5,8,16,0.97) 0%, rgba(10,15,30,0.97) 100%) !important;
    backdrop-filter: blur(16px);
    border-bottom: 2px solid var(--fire-orange);
    box-shadow: 0 4px 30px rgba(255,107,0,0.2), 0 0 60px rgba(0,229,255,0.05);
    padding: 12px 0;
}

.navbar-brand {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    font-weight: 900;
    letter-spacing: 2px;
    color: var(--fire-orange) !important;
    text-shadow: 0 0 16px rgba(255,107,0,0.6);
    display: flex;
    align-items: center;
    gap: 8px;
}

.navbar-brand img.brand-logo {
    width: 36px; height: 36px;
    object-fit: contain;
    filter: drop-shadow(0 0 6px var(--fire-orange));
}

.nav-link {
    font-family: var(--font-sub);
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 1px;
    color: #cbd5e1 !important;
    transition: var(--transition);
    padding: 6px 14px !important;
    border-bottom: 2px solid transparent;
    text-transform: uppercase;
}
.nav-link:hover, .nav-link.active {
    color: var(--neon-cyan) !important;
    border-bottom: 2px solid var(--neon-cyan);
    text-shadow: 0 0 8px var(--neon-cyan-glow);
}

/* ── Hero Section ──────────────────────────────────────────────────────────── */
.hero-section {
    position: relative;
    min-height: 520px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 80px 20px;
    overflow: hidden;
    border-radius: 16px;
    margin-bottom: 48px;
    border-bottom: 3px solid var(--fire-orange);
    background:
        linear-gradient(160deg, rgba(5,8,16,0.82) 0%, rgba(255,42,0,0.08) 50%, rgba(5,8,16,0.9) 100%),
        url('https://i.imgur.com/Q8Yc7cO.jpg') center/cover no-repeat;
}

/* Animated scanlines overlay */
.hero-section::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: repeating-linear-gradient(
        0deg,
        transparent,
        transparent 2px,
        rgba(0,0,0,0.08) 2px,
        rgba(0,0,0,0.08) 4px
    );
    pointer-events: none;
    z-index: 1;
}

/* Glowing top/bottom lines */
.hero-section::after {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--neon-cyan), transparent);
    box-shadow: 0 0 20px var(--neon-cyan);
    z-index: 2;
}

.hero-section > * { position: relative; z-index: 3; }

.hero-section h1 {
    font-size: clamp(2rem, 6vw, 4.5rem);
    font-weight: 900;
    color: #fff;
    letter-spacing: 4px;
    text-shadow:
        0 0 30px var(--neon-cyan-glow),
        0 0 60px rgba(255,107,0,0.3),
        2px 2px 0 rgba(0,0,0,0.5);
    line-height: 1.1;
}

.hero-section .lead {
    font-family: var(--font-sub);
    font-size: 1.25rem;
    font-weight: 500;
    color: #d1d9f0;
    max-width: 600px;
    margin: 0 auto;
}

/* Fire badge decoration */
.hero-fire-badge {
    display: inline-block;
    background: linear-gradient(135deg, var(--fire-red), var(--fire-orange));
    color: #fff;
    font-family: var(--font-sub);
    font-weight: 700;
    font-size: 0.8rem;
    letter-spacing: 2px;
    padding: 4px 16px;
    border-radius: 20px;
    margin-bottom: 16px;
    box-shadow: 0 0 20px rgba(255,107,0,0.5);
    text-transform: uppercase;
}

/* ── Countdown Timer ───────────────────────────────────────────────────────── */
.countdown-box {
    display: inline-flex;
    gap: 0;
    background: rgba(0,0,0,0.55);
    border: 1px solid var(--fire-orange);
    border-radius: 10px;
    padding: 14px 24px;
    box-shadow: 0 0 20px rgba(255,107,0,0.25), 0 0 8px var(--neon-cyan-glow);
    backdrop-filter: blur(8px);
}

.countdown-box h2 {
    font-size: 2.4rem;
    font-weight: 900;
    color: var(--neon-cyan);
    text-shadow: 0 0 15px var(--neon-cyan-glow);
    margin: 0;
    min-width: 56px;
}

/* ── Glass Cards ───────────────────────────────────────────────────────────── */
.glass-card {
    background: var(--bg-card);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid var(--glass-border);
    border-radius: 14px;
    transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
    overflow: hidden;
}

.glass-card:hover {
    transform: translateY(-6px) scale(1.015);
    border-color: var(--fire-orange);
    box-shadow: 0 0 24px rgba(255,107,0,0.22), 0 8px 32px rgba(0,0,0,0.4);
}

/* Tournament card thumbnail strip */
.tournament-card-thumb {
    height: 130px;
    background: linear-gradient(135deg, var(--bg-mid), var(--bg-void));
    overflow: hidden;
    position: relative;
}

.tournament-card-thumb img {
    width: 100%; height: 100%;
    object-fit: cover;
    opacity: 0.6;
    transition: opacity 0.4s ease;
}

.glass-card:hover .tournament-card-thumb img { opacity: 0.85; }

.tournament-card-thumb .mode-badge {
    position: absolute;
    top: 10px; right: 10px;
    font-family: var(--font-sub);
    font-weight: 700;
    font-size: 0.75rem;
    letter-spacing: 1px;
    padding: 3px 12px;
    border-radius: 4px;
    background: rgba(0,0,0,0.7);
    border: 1px solid var(--fire-orange);
    color: var(--fire-orange);
    text-transform: uppercase;
}

/* ── Buttons ───────────────────────────────────────────────────────────────── */
.btn-cyber-orange {
    background: linear-gradient(135deg, var(--fire-red), var(--fire-orange));
    border: none;
    color: #fff;
    font-family: var(--font-sub);
    font-weight: 700;
    font-size: 0.9rem;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    padding: 10px 26px;
    border-radius: 6px;
    box-shadow: 0 0 18px rgba(255,107,0,0.35);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}
.btn-cyber-orange::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(255,255,255,0);
    transition: background 0.3s;
}
.btn-cyber-orange:hover {
    box-shadow: 0 0 32px rgba(255,107,0,0.6), 0 0 8px var(--fire-red);
    transform: translateY(-2px) scale(1.04);
    color: #fff;
}
.btn-cyber-orange:hover::after { background: rgba(255,255,255,0.08); }

.btn-cyber-cyan {
    background: transparent;
    border: 2px solid var(--neon-cyan);
    color: var(--neon-cyan);
    font-family: var(--font-sub);
    font-weight: 700;
    font-size: 0.9rem;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    padding: 10px 26px;
    border-radius: 6px;
    box-shadow: 0 0 12px var(--neon-cyan-glow);
    transition: var(--transition);
}
.btn-cyber-cyan:hover {
    background: var(--neon-cyan);
    color: var(--bg-void);
    box-shadow: 0 0 28px var(--neon-cyan), 0 4px 16px rgba(0,0,0,0.3);
    transform: translateY(-2px) scale(1.04);
}

.btn-outline-neon-cyan {
    color: var(--neon-cyan);
    border: 2px solid var(--neon-cyan);
    background: transparent;
    font-family: var(--font-sub);
    font-weight: 700;
    letter-spacing: 1px;
    transition: var(--transition);
}
.btn-outline-neon-cyan:hover {
    background: rgba(0,229,255,0.12);
    color: var(--neon-cyan);
    box-shadow: 0 0 16px var(--neon-cyan-glow);
}
.btn-check:checked + .btn-outline-neon-cyan {
    background: var(--neon-cyan);
    color: var(--bg-void);
    box-shadow: 0 0 20px var(--neon-cyan);
}

/* ── Forms ─────────────────────────────────────────────────────────────────── */
.form-control, .form-select {
    background: rgba(8,14,30,0.9) !important;
    color: #f0f4ff !important;
    border: 1px solid rgba(0,229,255,0.2) !important;
    border-radius: 6px;
    transition: var(--transition);
    font-family: var(--font-sub);
    font-size: 1rem;
}
.form-control:focus, .form-select:focus {
    border-color: var(--neon-cyan) !important;
    box-shadow: 0 0 14px var(--neon-cyan-glow) !important;
    outline: none;
}
.form-label {
    font-family: var(--font-sub);
    font-weight: 600;
    letter-spacing: 0.5px;
    color: #d1d9f0;
}

/* ── Section Title Divider ─────────────────────────────────────────────────── */
.section-title {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 28px;
}
.section-title h2 {
    font-size: 1.5rem;
    font-weight: 900;
    color: var(--fire-orange);
    text-shadow: 0 0 10px rgba(255,107,0,0.4);
    margin: 0;
    white-space: nowrap;
}
.section-title::before, .section-title::after {
    content: '';
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--fire-orange), transparent);
}

/* ── Stats / Feature Strip ─────────────────────────────────────────────────── */
.stat-strip {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 20px;
    margin: 40px 0;
}
.stat-item {
    background: var(--bg-card);
    border: 1px solid rgba(255,107,0,0.2);
    border-radius: 12px;
    padding: 24px 16px;
    text-align: center;
    transition: var(--transition);
    backdrop-filter: blur(8px);
}
.stat-item:hover {
    border-color: var(--fire-orange);
    box-shadow: 0 0 20px rgba(255,107,0,0.18);
    transform: translateY(-4px);
}
.stat-item .stat-number {
    font-family: var(--font-heading);
    font-size: 2.2rem;
    font-weight: 900;
    color: var(--neon-cyan);
    text-shadow: 0 0 12px var(--neon-cyan-glow);
    display: block;
}
.stat-item .stat-label {
    font-family: var(--font-sub);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--text-muted);
    display: block;
    margin-top: 4px;
}

/* ── Prize Pool Cards ──────────────────────────────────────────────────────── */
.prize-card {
    position: relative;
    padding: 32px 20px;
    text-align: center;
    border-radius: 14px;
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(10px);
    overflow: hidden;
    transition: var(--transition);
}
.prize-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
}
.prize-card.first::before  { background: linear-gradient(90deg, transparent, var(--gold), transparent); }
.prize-card.second::before { background: linear-gradient(90deg, transparent, #c0c0c0, transparent); }
.prize-card.third::before  { background: linear-gradient(90deg, transparent, #cd7f32, transparent); }
.prize-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(0,0,0,0.5);
}
.prize-card .rank-label {
    font-family: var(--font-heading);
    font-size: 0.7rem;
    letter-spacing: 3px;
    opacity: 0.8;
    margin-top: 8px;
}
.prize-card .prize-amount {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 900;
    margin: 8px 0;
}

/* ── Tables ────────────────────────────────────────────────────────────────── */
.table-cyber {
    background: rgba(8,14,30,0.8);
    border: 1px solid var(--glass-border);
    color: #f0f4ff;
    border-radius: 10px;
    overflow: hidden;
}
.table-cyber thead th {
    background: rgba(255,107,0,0.1) !important;
    color: var(--fire-orange) !important;
    font-family: var(--font-sub);
    font-weight: 700;
    letter-spacing: 1px;
    border-bottom: 2px solid var(--fire-orange) !important;
    text-transform: uppercase;
    font-size: 0.85rem;
}
.table-cyber td {
    background: transparent !important;
    border-color: rgba(255,255,255,0.04) !important;
    font-family: var(--font-sub);
    font-size: 0.95rem;
    vertical-align: middle;
}
.table-cyber tbody tr:hover td {
    background: rgba(255,107,0,0.05) !important;
}

/* ── Leaderboard Rank Colors ───────────────────────────────────────────────── */
.rank-1 {
    background: rgba(255,215,0,0.1) !important;
    border-left: 3px solid var(--gold) !important;
    color: var(--gold) !important;
    font-weight: 700;
}
.rank-2 {
    background: rgba(192,192,192,0.08) !important;
    border-left: 3px solid #c0c0c0 !important;
    color: #c0c0c0 !important;
    font-weight: 700;
}
.rank-3 {
    background: rgba(205,127,50,0.08) !important;
    border-left: 3px solid #cd7f32 !important;
    color: #cd7f32 !important;
    font-weight: 700;
}

/* ── Loading Spinner ───────────────────────────────────────────────────────── */
#spinner-container {
    position: fixed;
    top: 0; left: 0;
    width: 100vw; height: 100vh;
    background: var(--bg-void);
    z-index: 9999;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: opacity 0.6s ease, visibility 0.6s ease;
}

.ff-spinner-wrapper {
    position: relative;
    width: 80px; height: 80px;
}

.cyber-spinner {
    width: 80px; height: 80px;
    border: 4px solid transparent;
    border-top: 4px solid var(--neon-cyan);
    border-right: 4px solid var(--fire-orange);
    border-radius: 50%;
    animation: spin 0.9s linear infinite;
    box-shadow: 0 0 20px var(--neon-cyan-glow), 0 0 30px rgba(255,107,0,0.3);
}

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

/* ── Toasts ────────────────────────────────────────────────────────────────── */
.toast-container {
    position: fixed;
    top: 80px; right: 20px;
    z-index: 1055;
}

.toast {
    background: rgba(8,14,30,0.95) !important;
    border-left: 4px solid var(--fire-orange) !important;
    border-top: 1px solid rgba(255,107,0,0.3) !important;
    border-right: 1px solid rgba(255,107,0,0.15) !important;
    border-bottom: 1px solid rgba(255,107,0,0.15) !important;
    backdrop-filter: blur(12px);
    color: #f0f4ff;
    box-shadow: 0 4px 24px rgba(0,0,0,0.6), 0 0 12px rgba(255,107,0,0.2);
    border-radius: 8px;
}
.toast-header {
    background: rgba(255,107,0,0.08) !important;
    border-bottom: 1px solid rgba(255,107,0,0.2) !important;
}

/* ── Back to Top ───────────────────────────────────────────────────────────── */
#back-to-top {
    position: fixed;
    bottom: 30px; right: 30px;
    display: none;
    z-index: 99;
    border-radius: 50%;
    width: 48px; height: 48px;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--fire-red), var(--fire-orange));
    border: none;
    box-shadow: 0 0 20px rgba(255,107,0,0.4);
    transition: var(--transition);
}
#back-to-top:hover {
    box-shadow: 0 0 30px rgba(255,107,0,0.7);
    transform: translateY(-3px) scale(1.1);
}

/* ── Accordion ─────────────────────────────────────────────────────────────── */
.accordion-item {
    background: var(--bg-card) !important;
    border: 1px solid var(--glass-border) !important;
    color: #f0f4ff !important;
    margin-bottom: 10px;
    border-radius: 8px !important;
    overflow: hidden;
}
.accordion-button {
    background: rgba(8,14,30,0.85) !important;
    color: var(--neon-cyan) !important;
    font-family: var(--font-sub);
    font-weight: 700;
    letter-spacing: 0.5px;
}
.accordion-button:not(.collapsed) {
    color: var(--fire-orange) !important;
    box-shadow: none !important;
}
.accordion-body { background: rgba(5,8,16,0.6) !important; }

/* ── Footer ────────────────────────────────────────────────────────────────── */
footer {
    background: linear-gradient(180deg, rgba(5,8,16,0.97) 0%, #020408 100%) !important;
    border-top: 1px solid rgba(255,107,0,0.25);
    padding: 40px 0 30px;
}
footer .brand-footer {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 900;
    color: var(--fire-orange);
    text-shadow: 0 0 12px rgba(255,107,0,0.4);
    letter-spacing: 2px;
}
footer a { color: var(--text-muted); transition: var(--transition); }
footer a:hover { color: var(--neon-cyan); }
footer .social-links a {
    display: inline-flex;
    width: 38px; height: 38px;
    border-radius: 50%;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255,255,255,0.1);
    transition: var(--transition);
}
footer .social-links a:hover {
    border-color: var(--fire-orange);
    color: var(--fire-orange);
    box-shadow: 0 0 12px rgba(255,107,0,0.3);
    transform: translateY(-3px);
}

/* ── My Tournaments Scroll ─────────────────────────────────────────────────── */
.my-tournaments-section {
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 28px 24px;
    backdrop-filter: blur(12px);
}
.tournament-scroll-row {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    padding-bottom: 10px;
    scroll-snap-type: x mandatory;
}
.tournament-scroll-row::-webkit-scrollbar { height: 5px; }
.tournament-scroll-row::-webkit-scrollbar-track { background: transparent; }
.tournament-scroll-row::-webkit-scrollbar-thumb { background: var(--fire-orange); border-radius: 3px; }

.tournament-mini-card {
    min-width: 270px; max-width: 300px;
    flex: 0 0 auto;
    padding: 0;
    border-radius: 12px;
    scroll-snap-align: start;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    overflow: hidden;
    border: 1px solid var(--glass-border);
    background: var(--bg-card);
}
.tournament-mini-card:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 0 22px rgba(255,107,0,0.2);
    border-color: var(--fire-orange);
}
.tournament-mini-card .card-inner { padding: 18px; }

/* ── Live Dot ──────────────────────────────────────────────────────────────── */
.live-dot {
    height: 9px; width: 9px;
    background: #22c55e;
    border-radius: 50%;
    display: inline-block;
    box-shadow: 0 0 8px #22c55e;
    animation: blink 1.2s infinite;
}
@keyframes blink {
    0%,100% { opacity: 0.2; }
    50%      { opacity: 1; }
}

/* ── Utility ───────────────────────────────────────────────────────────────── */
.bg-dark-blue { background: var(--bg-mid) !important; }
.bg-void { background: var(--bg-void) !important; }

/* FF character feature banner */
.ff-character-banner {
    position: relative;
    width: 100%;
    min-height: 200px;
    border-radius: 14px;
    overflow: hidden;
    background: linear-gradient(135deg, rgba(255,42,0,0.15), rgba(0,229,255,0.08));
    border: 1px solid rgba(255,107,0,0.25);
}
.ff-character-banner img {
    width: 100%; height: 200px;
    object-fit: cover;
    opacity: 0.7;
}
.ff-character-banner .banner-label {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    padding: 12px 16px;
    background: linear-gradient(0deg, rgba(5,8,16,0.9), transparent);
    font-family: var(--font-sub);
    font-weight: 700;
    color: var(--neon-cyan);
    font-size: 0.85rem;
    letter-spacing: 1px;
    text-transform: uppercase;
}

/* ── Glow Pulse for Diamond Badge ──────────────────────────────────────────── */
@keyframes gemPulse {
    0%,100% { filter: drop-shadow(0 0 4px #00e5ff); }
    50%      { filter: drop-shadow(0 0 12px #00e5ff); }
}
#user-diamond-badge .fa-gem { animation: gemPulse 2s ease infinite; }

/* ── Section Feature Boxes ─────────────────────────────────────────────────── */
.feature-box {
    background: var(--bg-card);
    border: 1px solid rgba(255,107,0,0.15);
    border-radius: 12px;
    padding: 28px 20px;
    text-align: center;
    transition: var(--transition);
    backdrop-filter: blur(8px);
    height: 100%;
}
.feature-box:hover {
    border-color: var(--fire-orange);
    box-shadow: 0 0 24px rgba(255,107,0,0.18);
    transform: translateY(-5px);
}
.feature-box .feature-icon {
    font-size: 2.5rem;
    margin-bottom: 16px;
    display: block;
    filter: drop-shadow(0 0 8px var(--fire-orange));
}

/* ── Modals ────────────────────────────────────────────────────────────────── */
.modal {
    z-index: 1060 !important;
}
.modal-backdrop {
    z-index: 1050 !important;
}
.modal-dialog {
    z-index: 1065 !important;
    position: relative;
    pointer-events: auto !important;
}
.modal-content {
    background: linear-gradient(160deg, rgba(8,14,30,0.98), rgba(13,18,36,0.98)) !important;
    border: 1px solid rgba(255,107,0,0.3) !important;
    border-radius: 14px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.8), 0 0 30px rgba(255,107,0,0.2);
    position: relative;
    z-index: 1070 !important;
    pointer-events: auto !important;
}
.modal-header {
    border-bottom: 1px solid rgba(255,107,0,0.2) !important;
}
.modal-footer {
    border-top: 1px solid rgba(255,107,0,0.15) !important;
}
.modal input, .modal select, .modal button, .modal textarea {
    pointer-events: auto !important;
}


/* ── Neon Horizontal Rule ──────────────────────────────────────────────────── */
.hr-neon {
    border: none;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--fire-orange), transparent);
    margin: 24px 0;
}

/* ── Responsive ────────────────────────────────────────────────────────────── */
@media (max-width: 768px) {
    .hero-section { min-height: 380px; padding: 60px 16px; }
    .hero-section h1 { font-size: 2rem; letter-spacing: 2px; }
    .countdown-box h2 { font-size: 1.8rem; }
    .stat-strip { grid-template-columns: repeat(2, 1fr); }
}

/* ── Print ─────────────────────────────────────────────────────────────────── */
@media print {
    body { background: #fff !important; color: #000 !important; }
    .navbar, footer, #back-to-top, .btn, .nav-tabs, .toast-container { display: none !important; }
    .glass-card { border: 1px solid #ccc !important; box-shadow: none !important; background: none !important; color: #000 !important; }
}

/* ═══════════════════════════════════════════════════════════════════ */
/* ── COOL ANIMATED FIRE LOGO COMPONENT ────────────────────────────── */
/* ═══════════════════════════════════════════════════════════════════ */
.cool-fire-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none !important;
    position: relative;
    cursor: pointer;
}

/* Flame Emblem Container */
.flame-emblem {
    position: relative;
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: radial-gradient(circle at center, rgba(255, 60, 0, 0.25) 0%, rgba(10, 15, 30, 0.9) 70%);
    border: 1px solid rgba(255, 107, 0, 0.45);
    box-shadow: 0 0 16px rgba(255, 94, 0, 0.4), inset 0 0 12px rgba(255, 42, 0, 0.3);
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.3s ease;
}

.flame-emblem:hover {
    transform: scale(1.1) rotate(-3deg);
    box-shadow: 0 0 26px rgba(255, 107, 0, 0.8), 0 0 40px rgba(255, 42, 0, 0.5);
    border-color: #ffaa00;
}

/* Outer Aura Glow */
.flame-glow-ring {
    position: absolute;
    inset: -3px;
    border-radius: 14px;
    background: conic-gradient(from 180deg, #ff2a00, #ff8c00, #ffd700, #ff2a00);
    opacity: 0.35;
    filter: blur(4px);
    z-index: 0;
    animation: flamePulse 2.8s ease-in-out infinite alternate;
}

/* Animated SVG Flame Icon */
.flame-svg {
    position: relative;
    z-index: 1;
    width: 26px;
    height: 26px;
    filter: drop-shadow(0 0 6px #ff5100) drop-shadow(0 0 12px #ff2200);
    animation: flameFlicker 1.8s ease-in-out infinite alternate;
    transform-origin: 50% 90%;
}

/* Fire Brand Typography */
.fire-brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1;
}

.fire-brand-title {
    font-family: var(--font-heading);
    font-weight: 900;
    font-size: 1.35rem;
    letter-spacing: 2px;
    background: linear-gradient(180deg, #ffffff 0%, #ffdf79 35%, #ff7700 70%, #e62000 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 0 10px rgba(255, 85, 0, 0.55));
    display: inline-block;
}

.fire-brand-subtitle {
    font-family: var(--font-sub);
    font-size: 0.65rem;
    font-weight: 800;
    letter-spacing: 3px;
    color: var(--neon-cyan);
    text-transform: uppercase;
    margin-top: 2px;
    text-shadow: 0 0 8px var(--neon-cyan-glow);
}

/* Flame Animations */
@keyframes flameFlicker {
    0% {
        transform: scale(1) skewX(0deg);
        filter: drop-shadow(0 0 6px #ff5100) drop-shadow(0 0 12px #ff2200);
    }
    25% {
        transform: scale(1.04, 0.98) skewX(-1.5deg);
        filter: drop-shadow(0 0 8px #ff7700) drop-shadow(0 0 15px #ff4400);
    }
    50% {
        transform: scale(0.97, 1.03) skewX(1.5deg);
        filter: drop-shadow(0 0 5px #ff3700) drop-shadow(0 0 10px #ff1100);
    }
    75% {
        transform: scale(1.03, 1.01) skewX(-1deg);
        filter: drop-shadow(0 0 9px #ff8800) drop-shadow(0 0 18px #ff4400);
    }
    100% {
        transform: scale(1) skewX(0deg);
        filter: drop-shadow(0 0 7px #ff5500) drop-shadow(0 0 14px #ff2200);
    }
}

@keyframes flamePulse {
    0% {
        opacity: 0.3;
        transform: scale(0.98);
    }
    100% {
        opacity: 0.65;
        transform: scale(1.04);
    }
}

/* Large Fire Logo for Login & Headers */
.cool-fire-hero-logo {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin-bottom: 12px;
}

.cool-fire-hero-emblem {
    width: 72px;
    height: 72px;
    border-radius: 22px;
    background: radial-gradient(circle at center, rgba(255, 70, 0, 0.3) 0%, rgba(8, 14, 30, 0.95) 75%);
    border: 2px solid rgba(255, 120, 0, 0.6);
    box-shadow: 0 0 30px rgba(255, 80, 0, 0.5), inset 0 0 20px rgba(255, 40, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.cool-fire-hero-emblem .flame-svg {
    width: 44px;
    height: 44px;
}

/* ── Modal & Backdrop Stacking Fixes ───────────────────────────────────────── */
.modal-backdrop {
    z-index: 1050 !important;
}
.modal {
    z-index: 1060 !important;
}
.modal-dialog {
    z-index: 1065 !important;
    pointer-events: auto !important;
}
.modal-content {
    z-index: 1070 !important;
    pointer-events: auto !important;
}
.modal input,
.modal select,
.modal textarea,
.modal button,
.modal label {
    pointer-events: auto !important;
}

