/* ===================================================================
   ایران اسکواد هاب — Custom Tactical Styles v2
   Dark Military / Tactical Shooter Theme — Enhanced Animations
   =================================================================== */

* { -webkit-tap-highlight-color: transparent; }
html { scroll-behavior: smooth; scroll-padding-top: 100px; }
body { overflow-x: hidden; }

/* ===== Custom Scrollbar ===== */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: #121212; }
::-webkit-scrollbar-thumb { background: #2a2a2a; border-radius: 5px; border: 2px solid #121212; }
::-webkit-scrollbar-thumb:hover { background: #4a5d23; }

/* ===== Background Patterns ===== */
.bg-grid-pattern {
    background-image:
        linear-gradient(rgba(245, 158, 11, 0.08) 1px, transparent 1px),
        linear-gradient(90deg, rgba(245, 158, 11, 0.08) 1px, transparent 1px);
    background-size: 50px 50px;
}
.bg-radial-glow {
    background: radial-gradient(ellipse at 50% 0%, rgba(74, 93, 35, 0.12) 0%, transparent 60%);
}

/* Floating orbs (heavier ambient animation) */
.floating-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.4;
    animation: float-orb 20s ease-in-out infinite;
}
.orb-1 { width: 400px; height: 400px; background: #4a5d23; top: 10%; right: 5%; }
.orb-2 { width: 350px; height: 350px; background: #f59e0b; bottom: 20%; left: 5%; opacity: 0.15; animation-delay: -7s; }
.orb-3 { width: 300px; height: 300px; background: #f97316; top: 50%; left: 50%; opacity: 0.1; animation-delay: -14s; }
@keyframes float-orb {
    0%, 100% { transform: translate(0, 0) scale(1); }
    25% { transform: translate(40px, -30px) scale(1.1); }
    50% { transform: translate(-30px, 40px) scale(0.95); }
    75% { transform: translate(20px, 20px) scale(1.05); }
}

/* ===== Muzzle Flash Effects (Hero) ===== */
.muzzle-flash {
    position: absolute;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #f59e0b;
    box-shadow: 0 0 20px 8px rgba(245, 158, 11, 0.6), 0 0 40px 16px rgba(245, 158, 11, 0.3);
    opacity: 0;
    animation: muzzle 6s ease-out infinite;
}
.mf-1 { top: 25%; left: 15%; animation-delay: 0s; }
.mf-2 { top: 60%; left: 80%; animation-delay: 2.5s; }
.mf-3 { top: 40%; left: 50%; animation-delay: 4.5s; }
@keyframes muzzle {
    0%, 90%, 100% { opacity: 0; transform: scale(0); }
    92% { opacity: 1; transform: scale(1.5); }
    94% { opacity: 0.6; transform: scale(2); }
    96% { opacity: 0; transform: scale(0.5); }
}

/* ===== Hero Background ===== */
.hero-bg {
    background:
        radial-gradient(circle at 70% 40%, rgba(245, 158, 11, 0.08), transparent 50%),
        radial-gradient(circle at 30% 60%, rgba(74, 93, 35, 0.1), transparent 50%),
        linear-gradient(135deg, #0a0a0a 0%, #121212 50%, #0a0a0a 100%);
}
.hero-bg::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(245, 158, 11, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(245, 158, 11, 0.04) 1px, transparent 1px);
    background-size: 40px 40px;
    mask-image: radial-gradient(ellipse at center, black 30%, transparent 80%);
    -webkit-mask-image: radial-gradient(ellipse at center, black 30%, transparent 80%);
}

/* Hero Soldier Image — heavy glow + float animation */
.hero-soldier-img {
    filter: drop-shadow(0 0 30px rgba(245, 158, 11, 0.3)) drop-shadow(0 20px 40px rgba(0,0,0,0.8));
    animation: soldier-float 6s ease-in-out infinite;
}
@keyframes soldier-float {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-15px) rotate(-0.5deg); }
}

/* HUD Corner decorations on hero image */
.hud-corner {
    width: 60px;
    height: 60px;
    border: 2px solid rgba(245, 158, 11, 0.5);
    animation: hud-pulse 3s ease-in-out infinite;
}
.hud-tr { border-bottom: none; border-left: none; border-top-right-radius: 8px; }
.hud-bl { border-top: none; border-right: none; border-bottom-left-radius: 8px; }
@keyframes hud-pulse {
    0%, 100% { opacity: 0.4; transform: scale(1); }
    50% { opacity: 0.8; transform: scale(1.05); }
}

/* ===== Navigation ===== */
.nav-container.scrolled {
    background: rgba(10, 10, 10, 0.92);
    border-color: rgba(245, 158, 11, 0.25);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
}
.nav-link {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: #a3a3a3;
    border-radius: 0.75rem;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}
.nav-link:hover { color: #f59e0b; background: rgba(245, 158, 11, 0.06); transform: translateY(-1px); }
.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0.25rem;
    right: 50%;
    transform: translateX(50%);
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, #f59e0b, transparent);
    transition: width 0.3s ease;
    border-radius: 1px;
}
.nav-link:hover::after { width: 70%; }
.mobile-nav-link {
    display: block;
    padding: 0.75rem 1rem;
    font-size: 0.9rem;
    font-weight: 600;
    color: #d4d4d4;
    border-radius: 0.75rem;
    transition: all 0.2s ease;
}
.mobile-nav-link:hover { color: #f59e0b; background: rgba(245, 158, 11, 0.08); }

/* ===== Buttons ===== */
.btn-tac-primary {
    display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
    padding: 0.875rem 1.75rem;
    font-weight: 700; font-size: 0.95rem;
    color: #0a0a0a;
    background: linear-gradient(135deg, #f59e0b, #f97316);
    border: 1px solid rgba(245, 158, 11, 0.5);
    border-radius: 0.875rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 20px rgba(245, 158, 11, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.25);
    position: relative; overflow: hidden;
}
.btn-tac-primary::before {
    content: '';
    position: absolute; inset: 0;
    background: linear-gradient(135deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transform: translateX(-100%);
    transition: transform 0.6s ease;
}
.btn-tac-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 35px rgba(245, 158, 11, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.35);
}
.btn-tac-primary:hover::before { transform: translateX(100%); }
.btn-tac-primary:active { transform: translateY(-1px); }

.btn-tac-secondary {
    display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
    padding: 0.875rem 1.75rem;
    font-weight: 700; font-size: 0.95rem;
    color: #e5e5e5;
    background: rgba(30, 30, 30, 0.6);
    border: 1px solid #3a3a3a;
    border-radius: 0.875rem;
    cursor: pointer;
    transition: all 0.25s ease;
    backdrop-filter: blur(10px);
}
.btn-tac-secondary:hover {
    background: rgba(245, 158, 11, 0.1);
    border-color: #f59e0b; color: #f59e0b;
    transform: translateY(-2px);
}

.btn-tac-ghost {
    display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
    padding: 0.625rem 1.25rem;
    font-weight: 600; font-size: 0.875rem;
    color: #d4d4d4;
    background: transparent;
    border: 1px solid #2a2a2a;
    border-radius: 0.75rem;
    cursor: pointer;
    transition: all 0.25s ease;
}
.btn-tac-ghost:hover { border-color: #f59e0b; color: #f59e0b; background: rgba(245, 158, 11, 0.05); }
.refresh-icon { transition: transform 0.6s ease; }
.btn-tac-ghost:hover .refresh-icon { transform: rotate(180deg); }
.btn-tac-ghost.spinning .refresh-icon { animation: spin 0.8s linear infinite; }
@keyframes spin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }

.btn-tac-danger {
    display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
    padding: 0.875rem 1.75rem;
    font-weight: 700; font-size: 0.95rem;
    color: #fff;
    background: linear-gradient(135deg, #dc2626, #b91c1c);
    border: 1px solid rgba(239, 68, 68, 0.4);
    border-radius: 0.875rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(220, 38, 38, 0.25);
}
.btn-tac-danger:hover { transform: translateY(-2px); box-shadow: 0 8px 30px rgba(220, 38, 38, 0.4); }

.tactical-icon-btn {
    display: inline-flex; align-items: center; justify-content: center;
    width: 40px; height: 40px;
    color: #d4d4d4;
    background: transparent;
    border: 1px solid #2a2a2a;
    border-radius: 0.75rem;
    cursor: pointer;
    transition: all 0.2s ease;
}
.tactical-icon-btn:hover { color: #f59e0b; border-color: #f59e0b; background: rgba(245, 158, 11, 0.05); }

.social-link {
    display: inline-flex; align-items: center; gap: 0.5rem;
    padding: 0.5rem 1rem;
    font-size: 0.875rem; font-weight: 600;
    color: #a3a3a3;
    background: rgba(30, 30, 30, 0.6);
    border: 1px solid #2a2a2a;
    border-radius: 0.75rem;
    transition: all 0.25s ease;
    backdrop-filter: blur(10px);
}
.social-link:hover { color: #f59e0b; border-color: #f59e0b; background: rgba(245, 158, 11, 0.08); transform: translateY(-2px); }

/* ===== Section Headers ===== */
.section-tag {
    display: inline-block;
    font-size: 0.7rem; font-weight: 700;
    color: #f59e0b;
    letter-spacing: 0.3em;
    margin-bottom: 0.5rem;
    font-family: 'JetBrains Mono', monospace;
}
.section-title {
    font-size: 2rem; font-weight: 900;
    color: #fff; line-height: 1.2; margin-bottom: 0.5rem;
    text-shadow: 0 2px 20px rgba(0,0,0,0.5);
}
@media (min-width: 768px) { .section-title { font-size: 2.5rem; } }
.section-subtitle { font-size: 0.95rem; color: #737373; max-width: 600px; }

/* ===== Tactical Card (Glassmorphism) ===== */
.tactical-card {
    background: rgba(30, 30, 30, 0.6);
    border: 1px solid #2a2a2a;
    border-radius: 1rem;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    position: relative;
    transition: border-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}
.tactical-card:hover { border-color: #3a3a3a; }

.scan-line {
    position: absolute; inset: 0; overflow: hidden;
    border-radius: inherit; pointer-events: none; opacity: 0.5;
}
.scan-line::after {
    content: '';
    position: absolute; inset-inline: 0; height: 2px;
    background: linear-gradient(90deg, transparent, rgba(245, 158, 11, 0.5), transparent);
    animation: scan 4s linear infinite;
}

/* ===== Status Dot ===== */
.status-dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; position: relative; }
.status-dot.online { background: #22c55e; box-shadow: 0 0 12px rgba(34, 197, 94, 0.7); }
.status-dot.online::after {
    content: ''; position: absolute; inset: -3px;
    border-radius: 50%; border: 2px solid #22c55e;
    animation: ping 1.5s cubic-bezier(0, 0, 0.2, 1) infinite; opacity: 0.6;
}
@keyframes ping { 75%, 100% { transform: scale(2.2); opacity: 0; } }

/* ===== Mini Stats ===== */
.stat-mini {
    background: rgba(10, 10, 10, 0.4);
    border: 1px solid #2a2a2a;
    border-radius: 0.75rem;
    padding: 0.875rem;
    text-align: center;
    transition: all 0.3s ease;
}
.stat-mini:hover { border-color: rgba(245, 158, 11, 0.4); transform: translateY(-2px); }
.stat-mini-value { font-size: 1.25rem; font-weight: 800; color: #f59e0b; margin-bottom: 0.125rem; font-family: 'JetBrains Mono', monospace; }
.stat-mini-label { font-size: 0.7rem; color: #737373; font-weight: 600; }

/* ===== Map Preview ===== */
.map-preview {
    position: relative;
    aspect-ratio: 16 / 10;
    border-radius: 0.75rem;
    overflow: hidden;
    border: 1px solid #2a2a2a;
}
.map-preview img {
    width: 100%; height: 100%; object-fit: cover;
}
.map-placeholder-inner {
    position: absolute; inset: 0;
    background:
        radial-gradient(circle at 30% 30%, rgba(74, 93, 35, 0.2), transparent 50%),
        radial-gradient(circle at 70% 70%, rgba(139, 90, 43, 0.15), transparent 50%),
        linear-gradient(135deg, #1a1a1a, #0a0a0a);
}
.map-grid {
    position: absolute; inset: 0;
    background-image:
        linear-gradient(rgba(245, 158, 11, 0.1) 1px, transparent 1px),
        linear-gradient(90deg, rgba(245, 158, 11, 0.1) 1px, transparent 1px);
    background-size: 25px 25px;
}
.map-marker {
    position: absolute; width: 24px; height: 24px;
    border-radius: 50%;
    background: rgba(239, 68, 68, 0.7);
    border: 2px solid #ef4444;
    display: flex; align-items: center; justify-content: center;
    font-size: 0.65rem; font-weight: 800; color: #fff;
    box-shadow: 0 0 12px rgba(239, 68, 68, 0.5);
    animation: pulse-marker 2s ease-in-out infinite;
}
.map-marker.allied { background: rgba(59, 130, 246, 0.7); border-color: #3b82f6; box-shadow: 0 0 12px rgba(59, 130, 246, 0.5); }
@keyframes pulse-marker { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.2); } }
.map-label {
    position: absolute; bottom: 0.5rem; left: 0.5rem;
    font-size: 0.65rem; font-weight: 700; color: #f59e0b;
    background: rgba(10, 10, 10, 0.7);
    padding: 0.15rem 0.5rem; border-radius: 0.25rem;
    letter-spacing: 0.05em;
}

/* ===== Inputs ===== */
.tactical-input, .tactical-select {
    width: 100%;
    padding: 0.75rem 1rem;
    font-size: 0.9rem; font-family: inherit;
    color: #e5e5e5;
    background: rgba(10, 10, 10, 0.6);
    border: 1px solid #2a2a2a;
    border-radius: 0.75rem;
    transition: all 0.25s ease;
    outline: none;
}
.tactical-input::placeholder { color: #525252; }
.tactical-input:focus, .tactical-select:focus {
    border-color: #f59e0b;
    background: rgba(10, 10, 10, 0.8);
    box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.12);
}
.tactical-select {
    cursor: pointer;
    appearance: none; -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%23f59e0b'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: left 0.75rem center;
    background-size: 1.25rem;
    padding-left: 2.5rem;
}
.tactical-select option { background: #121212; color: #e5e5e5; }
.form-label { display: block; font-size: 0.85rem; font-weight: 600; color: #d4d4d4; margin-bottom: 0.4rem; }
.form-error {
    font-size: 0.75rem; color: #f87171; margin-top: 0.35rem;
    display: flex; align-items: center; gap: 0.25rem;
    animation: shake 0.4s ease;
}
.tactical-input.error, .tactical-select.error { border-color: #ef4444; background: rgba(239, 68, 68, 0.05); }
@keyframes shake { 0%, 100% { transform: translateX(0); } 25% { transform: translateX(-5px); } 75% { transform: translateX(5px); } }

/* ===== Leaderboard Table ===== */
.leaderboard-table { width: 100%; border-collapse: separate; border-spacing: 0; }
.th-cell {
    padding: 1rem 1.25rem; text-align: right;
    font-size: 0.75rem; font-weight: 700;
    color: #f59e0b; text-transform: uppercase; letter-spacing: 0.1em;
    background: rgba(10, 10, 10, 0.6);
    border-bottom: 1px solid #2a2a2a; white-space: nowrap;
}
.lb-row { transition: background 0.2s ease; border-bottom: 1px solid #1a1a1a; animation: row-in 0.4s ease backwards; }
.lb-row:hover { background: rgba(245, 158, 11, 0.04); }
.lb-row:last-child { border-bottom: none; }
@keyframes row-in { from { opacity: 0; transform: translateX(20px); } to { opacity: 1; transform: translateX(0); } }
.td-cell { padding: 0.875rem 1.25rem; font-size: 0.875rem; color: #d4d4d4; white-space: nowrap; }
.rank-badge {
    display: inline-flex; align-items: center; justify-content: center;
    width: 36px; height: 36px; border-radius: 0.5rem;
    font-weight: 800; font-size: 0.9rem; font-family: 'JetBrains Mono', monospace;
}
.rank-1 { background: linear-gradient(135deg, #fbbf24, #f59e0b); color: #0a0a0a; box-shadow: 0 0 16px rgba(245, 158, 11, 0.5); }
.rank-2 { background: linear-gradient(135deg, #e5e5e5, #a3a3a3); color: #0a0a0a; }
.rank-3 { background: linear-gradient(135deg, #d97706, #92400e); color: #fff; }
.rank-default { background: rgba(42, 42, 42, 0.6); color: #a3a3a3; border: 1px solid #2a2a2a; }
.kd-badge {
    display: inline-flex; align-items: center; justify-content: center;
    padding: 0.2rem 0.6rem; border-radius: 0.4rem;
    font-weight: 700; font-family: 'JetBrains Mono', monospace; font-size: 0.8rem;
}
.kd-high { background: rgba(34, 197, 94, 0.15); color: #4ade80; border: 1px solid rgba(34, 197, 94, 0.3); }
.kd-mid { background: rgba(245, 158, 11, 0.15); color: #fbbf24; border: 1px solid rgba(245, 158, 11, 0.3); }
.kd-low { background: rgba(239, 68, 68, 0.15); color: #f87171; border: 1px solid rgba(239, 68, 68, 0.3); }
.player-avatar {
    display: inline-flex; align-items: center; justify-content: center;
    width: 34px; height: 34px; border-radius: 0.5rem;
    font-weight: 700; font-size: 0.85rem; color: #fff; flex-shrink: 0;
}

/* ===== Wiki ===== */
.wiki-tab {
    padding: 0.625rem 1.25rem;
    font-size: 0.85rem; font-weight: 600;
    color: #a3a3a3;
    background: transparent;
    border: 1px solid transparent;
    border-radius: 0.625rem;
    cursor: pointer;
    transition: all 0.25s ease;
    white-space: nowrap;
}
.wiki-tab:hover { color: #d4d4d4; background: rgba(245, 158, 11, 0.05); }
.wiki-tab.active { color: #f59e0b; background: rgba(245, 158, 11, 0.1); border-color: rgba(245, 158, 11, 0.3); }
.wiki-card {
    background: rgba(30, 30, 30, 0.6);
    border: 1px solid #2a2a2a;
    border-radius: 1rem;
    overflow: hidden;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(12px);
    display: flex; flex-direction: column;
    cursor: pointer;
    animation: card-in 0.5s ease backwards;
}
@keyframes card-in { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
.wiki-card:hover {
    border-color: rgba(245, 158, 11, 0.5);
    transform: translateY(-6px) scale(1.01);
    box-shadow: 0 16px 50px rgba(0, 0, 0, 0.5), 0 0 30px rgba(245, 158, 11, 0.1);
}
.wiki-card-icon {
    width: 48px; height: 48px; border-radius: 0.75rem;
    background: rgba(245, 158, 11, 0.1);
    border: 1px solid rgba(245, 158, 11, 0.2);
    display: flex; align-items: center; justify-content: center;
    color: #f59e0b; flex-shrink: 0;
    transition: all 0.35s ease;
}
.wiki-card:hover .wiki-card-icon { background: rgba(245, 158, 11, 0.2); transform: scale(1.1) rotate(-5deg); }
.wiki-card-tag {
    display: inline-block; font-size: 0.65rem; font-weight: 700;
    padding: 0.15rem 0.5rem; border-radius: 0.25rem;
    letter-spacing: 0.05em; text-transform: uppercase;
}
.tag-basic { background: rgba(74, 93, 35, 0.2); color: #b5ca80; border: 1px solid rgba(74, 93, 35, 0.3); }
.tag-advanced { background: rgba(245, 158, 11, 0.15); color: #fbbf24; border: 1px solid rgba(245, 158, 11, 0.3); }
.tag-asset { background: rgba(139, 90, 43, 0.2); color: #d4a574; border: 1px solid rgba(139, 90, 43, 0.3); }

/* ===== Events / Op Night ===== */
.event-card {
    background: rgba(30, 30, 30, 0.6);
    border: 1px solid #2a2a2a;
    border-radius: 1rem;
    overflow: hidden;
    transition: all 0.35s ease;
    backdrop-filter: blur(12px);
    animation: card-in 0.5s ease backwards;
    position: relative;
}
.event-card::before {
    content: '';
    position: absolute; top: 0; right: 0; left: 0; height: 3px;
    background: linear-gradient(90deg, #f59e0b, #f97316);
    transform: scaleX(0); transform-origin: right;
    transition: transform 0.4s ease;
}
.event-card:hover { border-color: rgba(245, 158, 11, 0.4); transform: translateY(-4px); box-shadow: 0 12px 40px rgba(0,0,0,0.4); }
.event-card:hover::before { transform: scaleX(1); }
.event-date-badge {
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    width: 64px; height: 64px; border-radius: 0.75rem;
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.15), rgba(249, 115, 22, 0.1));
    border: 1px solid rgba(245, 158, 11, 0.3);
    flex-shrink: 0;
}
.event-day { font-size: 1.5rem; font-weight: 900; color: #f59e0b; line-height: 1; font-family: 'JetBrains Mono', monospace; }
.event-month { font-size: 0.7rem; font-weight: 700; color: #fbbf24; margin-top: 2px; }
.event-countdown { display: inline-flex; align-items: center; gap: 0.35rem; font-size: 0.75rem; font-weight: 600; color: #4ade80; }

/* ===== Mods ===== */
.mod-card {
    background: rgba(30, 30, 30, 0.6);
    border: 1px solid #2a2a2a;
    border-radius: 1rem;
    overflow: hidden;
    transition: all 0.35s ease;
    backdrop-filter: blur(12px);
    animation: card-in 0.5s ease backwards;
    display: flex; flex-direction: column;
}
.mod-card:hover { border-color: rgba(74, 93, 35, 0.5); transform: translateY(-5px); box-shadow: 0 14px 40px rgba(0,0,0,0.4); }
.mod-thumb {
    aspect-ratio: 16/10;
    background: linear-gradient(135deg, rgba(74,93,35,0.15), rgba(10,10,10,0.6));
    display: flex; align-items: center; justify-content: center;
    position: relative; overflow: hidden;
}
.mod-thumb::after {
    content: ''; position: absolute; inset: 0;
    background: radial-gradient(circle at center, rgba(245,158,11,0.08), transparent 70%);
}
.mod-cat-badge {
    position: absolute; top: 0.5rem; right: 0.5rem;
    font-size: 0.65rem; font-weight: 700;
    padding: 0.2rem 0.6rem; border-radius: 0.3rem;
    background: rgba(10,10,10,0.85); color: #f59e0b;
    border: 1px solid rgba(245,158,11,0.3);
}

/* ===== Accordion ===== */
.accordion-item {
    border-radius: 0.75rem; overflow: hidden;
    margin-bottom: 0.5rem;
    border: 1px solid #2a2a2a;
    background: rgba(10, 10, 10, 0.4);
    transition: border-color 0.25s ease;
}
.accordion-item:hover { border-color: #3a3a3a; }
.accordion-item.open { border-color: rgba(245, 158, 11, 0.4); }
.accordion-header {
    width: 100%; display: flex; align-items: center; gap: 1rem;
    padding: 1rem 1.25rem; text-align: right;
    background: transparent; border: none; cursor: pointer;
    transition: background 0.2s ease;
}
.accordion-header:hover { background: rgba(245, 158, 11, 0.04); }
.accordion-icon-wrap {
    width: 40px; height: 40px; border-radius: 0.625rem;
    background: rgba(245, 158, 11, 0.1);
    border: 1px solid rgba(245, 158, 11, 0.2);
    display: flex; align-items: center; justify-content: center;
    color: #f59e0b; flex-shrink: 0;
}
.accordion-title { flex: 1; font-size: 0.95rem; font-weight: 700; color: #e5e5e5; }
.accordion-chevron { color: #737373; transition: transform 0.35s ease; flex-shrink: 0; }
.accordion-item.open .accordion-chevron { transform: rotate(180deg); color: #f59e0b; }
.accordion-content { max-height: 0; overflow: hidden; transition: max-height 0.4s ease; }
.accordion-content-inner { padding: 0 1.25rem 1.25rem 1.25rem; font-size: 0.875rem; color: #a3a3a3; line-height: 1.8; }
.accordion-content-inner ul { list-style: none; padding: 0; margin: 0.5rem 0; }
.accordion-content-inner li { position: relative; padding-right: 1.5rem; margin-bottom: 0.5rem; }
.accordion-content-inner li::before {
    content: ''; position: absolute; right: 0; top: 0.6rem;
    width: 6px; height: 6px; border-radius: 50%; background: #f59e0b;
}
.accordion-rule-badge {
    display: inline-block; font-size: 0.7rem; font-weight: 700;
    padding: 0.2rem 0.6rem; border-radius: 0.4rem;
    background: rgba(239, 68, 68, 0.15); color: #f87171;
    border: 1px solid rgba(239, 68, 68, 0.3); margin-right: 0.5rem;
}

/* ===== Footer ===== */
.footer-link { color: #737373; transition: color 0.2s ease; }
.footer-link:hover { color: #f59e0b; }

/* ===== Toast ===== */
.toast {
    display: flex; align-items: flex-start; gap: 0.75rem;
    padding: 1rem 1.25rem; border-radius: 0.875rem;
    backdrop-filter: blur(16px);
    border: 1px solid;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
    animation: toast-in 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}
.toast.removing { animation: toast-out 0.3s ease forwards; }
@keyframes toast-in { from { opacity: 0; transform: translateY(-25px) scale(0.93); } to { opacity: 1; transform: translateY(0) scale(1); } }
@keyframes toast-out { to { opacity: 0; transform: translateY(-25px) scale(0.93); } }
.toast-success { background: rgba(20, 83, 45, 0.92); border-color: rgba(34, 197, 94, 0.4); color: #d1fae5; }
.toast-error { background: rgba(127, 29, 29, 0.92); border-color: rgba(239, 68, 68, 0.4); color: #fee2e2; }
.toast-info { background: rgba(30, 30, 30, 0.95); border-color: rgba(245, 158, 11, 0.4); color: #fef3c7; }

/* ===== Guide Modal ===== */
#guide-modal-overlay.active { display: flex; animation: overlay-in 0.25s ease; }
@keyframes overlay-in { from { opacity: 0; } to { opacity: 1; } }
#guide-modal { animation: modal-in 0.4s cubic-bezier(0.34, 1.56, 0.64, 1); }
@keyframes modal-in { from { opacity: 0; transform: scale(0.9) translateY(20px); } to { opacity: 1; transform: scale(1) translateY(0); } }

/* ===== Markdown Body (GitHub-style) ===== */
.markdown-body { color: #d4d4d4; font-size: 0.92rem; line-height: 1.85; }
.markdown-body h2 {
    font-size: 1.35rem; font-weight: 800; color: #fff;
    margin: 1.5rem 0 0.75rem; padding-bottom: 0.5rem;
    border-bottom: 1px solid #2a2a2a;
    position: relative;
}
.markdown-body h2::before {
    content: ''; position: absolute; right: 0; bottom: -1px;
    width: 60px; height: 2px;
    background: linear-gradient(90deg, #f59e0b, transparent);
}
.markdown-body h3 { font-size: 1.1rem; font-weight: 700; color: #fbbf24; margin: 1.25rem 0 0.5rem; }
.markdown-body p { margin: 0.6rem 0; }
.markdown-body ul { list-style: none; padding: 0; margin: 0.75rem 0; }
.markdown-body ul li {
    position: relative; padding-right: 1.5rem; margin-bottom: 0.4rem;
}
.markdown-body ul li::before {
    content: ''; position: absolute; right: 0.25rem; top: 0.7rem;
    width: 6px; height: 6px;
    background: #f59e0b; border-radius: 1px;
    transform: rotate(45deg);
}
.markdown-body a { color: #fbbf24; text-decoration: underline; text-underline-offset: 3px; transition: color 0.2s; }
.markdown-body a:hover { color: #f59e0b; }
.markdown-body strong { color: #fff; font-weight: 700; }
.markdown-body blockquote {
    border-right: 3px solid #f59e0b;
    background: rgba(245, 158, 11, 0.05);
    padding: 0.75rem 1rem;
    border-radius: 0.5rem;
    margin: 1rem 0;
    color: #e5e5e5;
}

/* GitHub-style code blocks */
.markdown-body pre {
    background: #0d1117;
    border: 1px solid #30363d;
    border-radius: 0.625rem;
    padding: 1rem 1.25rem;
    margin: 1rem 0;
    overflow-x: auto;
    position: relative;
    direction: ltr;
    text-align: left;
}
.markdown-body pre::before {
    content: '';
    position: absolute; top: 0; left: 0; right: 0; height: 28px;
    background: linear-gradient(180deg, rgba(245,158,11,0.04), transparent);
    border-bottom: 1px solid #21262d;
}
.markdown-body pre::after {
    content: '● ● ●';
    position: absolute; top: 6px; left: 14px;
    font-size: 8px; letter-spacing: 4px; color: #484f58;
}
.markdown-body pre code {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.82rem;
    color: #c9d1d9;
    line-height: 1.6;
    display: block;
    margin-top: 18px;
    white-space: pre;
}
.markdown-body :not(pre) > code {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.85em;
    background: rgba(245, 158, 11, 0.12);
    color: #fbbf24;
    padding: 0.15rem 0.4rem;
    border-radius: 0.3rem;
    border: 1px solid rgba(245, 158, 11, 0.2);
    direction: ltr; display: inline-block;
}

/* Copy button on code blocks */
.code-copy-btn {
    position: absolute; top: 8px; left: 14px;
    background: rgba(48, 54, 61, 0.8);
    border: 1px solid #30363d;
    color: #8b949e;
    padding: 0.25rem 0.6rem;
    border-radius: 0.375rem;
    font-size: 0.7rem; font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    z-index: 2;
    display: inline-flex; align-items: center; gap: 0.25rem;
}
.code-copy-btn:hover { background: #30363d; color: #c9d1d9; }
.code-copy-btn.copied { color: #3fb950; border-color: #3fb950; }

/* ===== Reveal Animations ===== */
.reveal { opacity: 0; transform: translateY(40px); transition: opacity 0.8s ease, transform 0.8s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }
.animate-fade-in-up { animation: fadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards; opacity: 0; }
@keyframes fadeInUp { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: translateY(0); } }

@media (max-width: 640px) {
    .section-title { font-size: 1.75rem; }
    .btn-tac-primary, .btn-tac-secondary { width: 100%; }
}

/* ===== Announcement Banner ===== */
#announcement-banner.ann-show { display: block; animation: ann-slide 0.4s ease; }
@keyframes ann-slide { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: translateY(0); } }
.ann-info { background: rgba(30, 58, 95, 0.85); border-color: rgba(59, 130, 246, 0.4); color: #bfdbfe; }
.ann-warning { background: rgba(120, 53, 15, 0.85); border-color: rgba(245, 158, 11, 0.4); color: #fef3c7; }
.ann-success { background: rgba(20, 83, 45, 0.85); border-color: rgba(34, 197, 94, 0.4); color: #d1fae5; }
.ann-event { background: rgba(74, 93, 35, 0.85); border-color: rgba(151, 179, 86, 0.4); color: #ecfccb; }

/* ===== Recent Matches ===== */
.match-row {
    background: rgba(30, 30, 30, 0.6);
    border: 1px solid #2a2a2a;
    border-radius: 0.875rem;
    padding: 1rem 1.25rem;
    transition: all 0.25s ease;
    backdrop-filter: blur(12px);
    display: flex; align-items: center; gap: 1rem;
    animation: row-in 0.4s ease backwards;
    position: relative; overflow: hidden;
}
.match-row::before {
    content: ''; position: absolute; right: 0; top: 0; bottom: 0; width: 4px;
}
.match-row.win::before { background: linear-gradient(180deg, #22c55e, #16a34a); }
.match-row.loss::before { background: linear-gradient(180deg, #ef4444, #dc2626); }
.match-row:hover { border-color: #3a3a3a; transform: translateX(-4px); }
.match-result-badge {
    width: 44px; height: 44px; border-radius: 0.625rem;
    display: flex; align-items: center; justify-content: center;
    font-weight: 900; font-size: 0.7rem; flex-shrink: 0;
}
.match-result-badge.win { background: rgba(34,197,94,0.15); color: #4ade80; border: 1px solid rgba(34,197,94,0.3); }
.match-result-badge.loss { background: rgba(239,68,68,0.15); color: #f87171; border: 1px solid rgba(239,68,68,0.3); }
.team-badge { display: inline-flex; padding: 0.15rem 0.5rem; border-radius: 0.3rem; font-size: 0.7rem; font-weight: 700; }
.team-usa { background: rgba(59,130,246,0.15); color: #60a5fa; border: 1px solid rgba(59,130,246,0.3); }
.team-rus { background: rgba(239,68,68,0.15); color: #f87171; border: 1px solid rgba(239,68,68,0.3); }

/* ===== Squad Kits ===== */
.kit-card {
    background: rgba(30, 30, 30, 0.6);
    border: 1px solid #2a2a2a;
    border-radius: 1rem;
    padding: 1.25rem 1rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(12px);
    animation: card-in 0.5s ease backwards;
    position: relative; overflow: hidden;
}
.kit-card::before {
    content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
    background: var(--kit-color, #f59e0b);
    transform: scaleX(0); transform-origin: center;
    transition: transform 0.35s ease;
}
.kit-card:hover { transform: translateY(-6px); border-color: var(--kit-color, #f59e0b); box-shadow: 0 12px 40px rgba(0,0,0,0.4); }
.kit-card:hover::before { transform: scaleX(1); }
.kit-icon-wrap {
    width: 56px; height: 56px; border-radius: 0.875rem;
    margin: 0 auto 0.75rem;
    display: flex; align-items: center; justify-content: center;
    background: color-mix(in srgb, var(--kit-color, #f59e0b) 12%, transparent);
    border: 1px solid color-mix(in srgb, var(--kit-color, #f59e0b) 30%, transparent);
    color: var(--kit-color, #f59e0b);
    transition: transform 0.35s ease;
}
.kit-card:hover .kit-icon-wrap { transform: scale(1.1) rotate(-5deg); }
.kit-role-tag {
    display: inline-block; font-size: 0.65rem; font-weight: 700;
    padding: 0.15rem 0.5rem; border-radius: 0.3rem;
    background: color-mix(in srgb, var(--kit-color, #f59e0b) 15%, transparent);
    color: var(--kit-color, #f59e0b);
    margin-bottom: 0.4rem;
}

/* ===== Player Profile Modal ===== */
.player-modal-header {
    padding: 1.5rem; position: relative;
    background: linear-gradient(135deg, rgba(245,158,11,0.08), transparent);
    border-bottom: 1px solid #2a2a2a;
}
.player-modal-avatar {
    width: 72px; height: 72px; border-radius: 1rem;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.5rem; font-weight: 900; color: #fff;
    flex-shrink: 0;
    box-shadow: 0 0 24px rgba(245,158,11,0.3);
}
.player-stat-block {
    background: rgba(10,10,10,0.4);
    border: 1px solid #2a2a2a;
    border-radius: 0.75rem;
    padding: 1rem;
    text-align: center;
    transition: all 0.25s ease;
}
.player-stat-block:hover { border-color: rgba(245,158,11,0.3); transform: translateY(-2px); }
.player-stat-value { font-size: 1.5rem; font-weight: 900; color: #f59e0b; font-family: 'JetBrains Mono', monospace; }
.player-stat-label { font-size: 0.7rem; color: #737373; font-weight: 600; margin-top: 0.2rem; }

/* ===== Animated Counter ===== */
.counter { display: inline-block; }

/* ===== Card Tilt (subtle 3D hover) ===== */
.tilt-card { transition: transform 0.2s ease; transform-style: preserve-3d; }

/* ===== Scroll Progress Bar ===== */
#scroll-progress-bar { will-change: width; }

/* ===== Charts ===== */
.chart-wrap { position: relative; width: 100%; }
.chart-wrap canvas { width: 100% !important; display: block; }

/* ===== Map Popularity Bars ===== */
.map-pop-row { display: flex; align-items: center; gap: 0.75rem; }
.map-pop-name { width: 120px; font-size: 0.85rem; font-weight: 600; color: #d4d4d4; flex-shrink: 0; }
.map-pop-bar-wrap { flex: 1; height: 28px; background: rgba(10,10,10,0.5); border-radius: 0.5rem; overflow: hidden; border: 1px solid #2a2a2a; position: relative; }
.map-pop-bar { height: 100%; background: linear-gradient(90deg, #4a5d23, #97b356); border-radius: 0.5rem; transition: width 1s cubic-bezier(0.4,0,0.2,1); position: relative; overflow: hidden; }
.map-pop-bar::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, transparent, rgba(255,255,255,0.15), transparent); background-size: 200% 100%; animation: shimmer 2.5s linear infinite; }
.map-pop-count { width: 50px; text-align: left; font-size: 0.8rem; font-weight: 700; color: #f59e0b; font-family: 'JetBrains Mono', monospace; flex-shrink: 0; }

/* ===== Polls ===== */
.poll-card {
    background: rgba(30, 30, 30, 0.6);
    border: 1px solid #2a2a2a;
    border-radius: 1rem;
    padding: 1.5rem;
    backdrop-filter: blur(12px);
    transition: all 0.3s ease;
    animation: card-in 0.5s ease backwards;
}
.poll-card:hover { border-color: rgba(245,158,11,0.3); }
.poll-question { font-size: 1.05rem; font-weight: 700; color: #fff; margin-bottom: 1rem; line-height: 1.5; }
.poll-option {
    display: flex; align-items: center; gap: 0.75rem;
    padding: 0.75rem 1rem;
    background: rgba(10,10,10,0.4);
    border: 1px solid #2a2a2a;
    border-radius: 0.625rem;
    cursor: pointer;
    transition: all 0.25s ease;
    position: relative; overflow: hidden;
    margin-bottom: 0.5rem;
}
.poll-option:hover { border-color: #f59e0b; background: rgba(245,158,11,0.05); }
.poll-option.voted { border-color: #f59e0b; background: rgba(245,158,11,0.1); cursor: default; }
.poll-option-fill { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(245,158,11,0.15), rgba(249,115,22,0.08)); border-radius: inherit; transform-origin: right; transition: transform 0.8s cubic-bezier(0.4,0,0.2,1); z-index: 0; }
.poll-option-content { position: relative; z-index: 1; display: flex; align-items: center; gap: 0.75rem; width: 100%; }
.poll-option-radio { width: 18px; height: 18px; border-radius: 50%; border: 2px solid #525252; flex-shrink: 0; display: flex; align-items: center; justify-content: center; transition: all 0.2s; }
.poll-option:hover .poll-option-radio { border-color: #f59e0b; }
.poll-option.voted .poll-option-radio { border-color: #f59e0b; background: #f59e0b; }
.poll-option.voted .poll-option-radio::after { content: ''; width: 6px; height: 6px; border-radius: 50%; background: #0a0a0a; }
.poll-option-text { flex: 1; font-size: 0.9rem; color: #e5e5e5; font-weight: 500; }
.poll-option-pct { font-size: 0.85rem; font-weight: 700; color: #f59e0b; font-family: 'JetBrains Mono', monospace; flex-shrink: 0; }
.poll-total { font-size: 0.75rem; color: #737373; margin-top: 0.75rem; text-align: left; }
.poll-voted-badge { display: inline-flex; align-items: center; gap: 0.25rem; font-size: 0.7rem; font-weight: 700; color: #4ade80; padding: 0.15rem 0.5rem; border-radius: 0.3rem; background: rgba(34,197,94,0.15); border: 1px solid rgba(34,197,94,0.3); margin-bottom: 0.75rem; }

/* ===== Back to Top Button ===== */
#back-to-top.visible { opacity: 1; pointer-events: auto; }
#back-to-top:hover { box-shadow: 0 0 24px rgba(245,158,11,0.5); }

/* ===== Command Palette ===== */
#palette-overlay.active { display: flex; animation: overlay-in 0.2s ease; }
#palette-modal { animation: palette-in 0.3s cubic-bezier(0.34, 1.56, 0.64, 1); }
@keyframes palette-in { from { opacity: 0; transform: translateY(-20px) scale(0.96); } to { opacity: 1; transform: translateY(0) scale(1); } }
.palette-item { display: flex; align-items: center; gap: 0.75rem; padding: 0.7rem 1rem; border-radius: 0.625rem; cursor: pointer; transition: all 0.15s ease; }
.palette-item:hover, .palette-item.active { background: rgba(245,158,11,0.1); }
.palette-item.active { border-right: 3px solid #f59e0b; }
.palette-item-icon { width: 32px; height: 32px; border-radius: 0.5rem; background: rgba(245,158,11,0.1); border: 1px solid rgba(245,158,11,0.2); display: flex; align-items: center; justify-content: center; color: #f59e0b; flex-shrink: 0; }
.palette-item-text { flex: 1; min-width: 0; }
.palette-item-title { font-size: 0.88rem; font-weight: 600; color: #e5e5e5; }
.palette-item-sub { font-size: 0.7rem; color: #737373; }
.palette-group-label { font-size: 0.65rem; font-weight: 700; color: #f59e0b; text-transform: uppercase; letter-spacing: 0.15em; padding: 0.5rem 1rem 0.25rem; }

/* ===== Live RCON Badge Animation ===== */
@keyframes pulse-dot {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(1.3); }
}
.live-badge-pulse {
    animation: pulse-dot 1.5s infinite;
}
