/* styles.css - Absolute High-Fidelity Tactical HUD DayZ Leaderboards */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Oswald:wght@400;500;600;700&family=Share+Tech+Mono&family=Teko:wght@500;600;700&display=swap');

:root {
    --bg-base: #030304;
    --bg-surface: #0a0a0c;
    --bg-surface-glass: rgba(10, 10, 12, 0.85);
    --bg-card: rgba(16, 16, 20, 0.6);
    --bg-card-hover: rgba(26, 26, 32, 0.8);
    
    /* Last Call Brand Red - Deep Tactical crimson */
    --brand-red: #c21f1f;
    --brand-red-rgb: 194, 31, 31;
    --brand-red-glow: rgba(194, 31, 31, 0.4);
    --brand-red-hover: #e02828;
    
    /* Secondary neon red-orange for diagnostics */
    --tech-accent: #ff4d4d;
    --tech-grid: rgba(194, 31, 31, 0.12); /* Increased grid opacity to mix in more red */
    
    /* Text colors */
    --text-primary: #e5e7eb;
    --text-secondary: #9ca3af;
    --text-muted: #4b5563;
    --text-highlight: #ffffff;
    
    /* Fonts */
    --font-sans: 'Inter', sans-serif;
    --font-heading: 'Oswald', sans-serif;
    --font-tech: 'Teko', sans-serif;
    --font-mono: 'Share Tech Mono', monospace;
    
    /* Border Radius & Layout */
    --border-radius-sm: 2px;
    --border-radius-md: 4px;
    --border-radius-lg: 8px;
    --max-width: 1440px;
    
    --transition-speed: 0.2s;
    --hud-glow: 0 0 15px var(--brand-red-glow);
}

/* Base resets & scrollbar */
html {
    scroll-behavior: smooth;
    scroll-padding-top: 75px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg-base);
    color: var(--text-primary);
    font-family: var(--font-sans);
    overflow-x: hidden;
    position: relative;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}
::-webkit-scrollbar-track {
    background: #040405;
}
::-webkit-scrollbar-thumb {
    background: #1c1c22;
    border-radius: var(--border-radius-sm);
}
::-webkit-scrollbar-thumb:hover {
    background: var(--brand-red);
}

/* Global Tactical Grid & Scanline Background Overlay */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Enhanced tactical hex/grid pattern mix */
    background-image: 
        linear-gradient(var(--tech-grid) 1px, transparent 1px),
        linear-gradient(90deg, var(--tech-grid) 1px, transparent 1px),
        radial-gradient(var(--tech-grid) 1px, transparent 1px);
    background-size: 40px 40px, 40px 40px, 20px 20px;
    background-position: 0 0, 0 0, 20px 20px;
    z-index: -1;
    pointer-events: none;
}

body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 50% 10%, rgba(var(--brand-red-rgb), 0.15) 0%, transparent 60%),
        radial-gradient(circle at 10% 80%, rgba(var(--brand-red-rgb), 0.12) 0%, transparent 50%),
        radial-gradient(circle at 90% 50%, rgba(var(--brand-red-rgb), 0.08) 0%, transparent 40%),
        linear-gradient(rgba(18, 16, 16, 0) 50%, rgba(0, 0, 0, 0.15) 50%), 
        linear-gradient(90deg, rgba(255, 0, 0, 0.05), rgba(0, 255, 0, 0.02), rgba(0, 0, 255, 0.05));
    background-size: 100% 100%, 100% 100%, 100% 100%, 100% 4px, 6px 100%;
    z-index: -2;
    pointer-events: none;
}

/* HUD Tactical Corner Decors */
.hud-corner {
    position: absolute;
    width: 10px;
    height: 10px;
    border-color: var(--brand-red);
    border-style: solid;
    pointer-events: none;
    z-index: 5;
    opacity: 0.6;
    transition: opacity var(--transition-speed);
}
.hud-corner.tl { top: 0; left: 0; border-width: 2px 0 0 2px; }
.hud-corner.tr { top: 0; right: 0; border-width: 2px 2px 0 0; }
.hud-corner.bl { bottom: 0; left: 0; border-width: 0 0 2px 2px; }
.hud-corner.br { bottom: 0; right: 0; border-width: 0 2px 2px 0; }

.hud-panel:hover .hud-corner {
    opacity: 1;
}

/* BREATHTAKING SUNNYVALE-STYLE HEADER (RESPONSIVE TACTICAL REDESIGN) */
header {
    background-color: #060608;
    position: sticky;
    top: 0;
    z-index: 100;
    height: 75px;
    border-bottom: 2px solid var(--brand-red);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.7);
}

.header-container {
    width: 100%;
    max-width: 100%;
    height: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    padding: 0 40px 0 0; /* padding-left is 0 so the unified logo wing sits flush on the far left */
}

/* Responsive Unified Logo Slant Wing (Worked-in Redesign) */
.logo-block {
    height: 100%;
    position: relative;
    width: 28%; /* Widescreen asymmetric red left-wing block */
    min-width: 280px;
    display: flex;
    align-items: center;
    justify-content: flex-start; /* Sits completely inside the red wing block! */
    padding-left: 35px; /* Symmetrical breathing room from left screen edge */
    gap: 15px; /* Elegant gap between skull crest and brand text */
    text-decoration: none;
    z-index: 10;
    transition: filter var(--transition-speed);
}

/* Background slant wing using pseudo-element so we don't clip the overflowing logo image */
.logo-block::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--brand-red) 0%, #850f0f 100%);
    /* Perfectly slanted from top-right to bottom-left / matching the true Sunnyvale slash slant! */
    clip-path: polygon(0 0, 100% 0, calc(100% - 35px) 100%, 0 100%);
    z-index: -1;
    border-right: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 5px 0 15px rgba(0, 0, 0, 0.4);
}

.logo-block:hover {
    filter: brightness(1.15);
}

.logo-block img {
    height: 48px; /* Perfectly sized to fit cleanly inside the 75px header! */
    width: auto;
    filter: drop-shadow(0 4px 10px rgba(0,0,0,0.8));
    z-index: 100;
    transition: transform var(--transition-speed);
}

.logo-block:hover img {
    transform: scale(1.05) rotate(-2deg);
}

.logo-block .logo-text {
    white-space: nowrap;
    font-family: var(--font-heading);
    font-size: 1.7rem;
    font-weight: 800;
    color: var(--text-highlight);
    letter-spacing: 2.5px;
    line-height: 1;
    z-index: 2;
    text-shadow: 0 2px 10px rgba(0,0,0,0.8);
}

.logo-block .logo-text span {
    color: #ffffff;
    opacity: 0.9;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
}

/* Centered Navigation Menu across the top of the header */
nav {
    margin: 0 auto; /* Perfectly centers navigation in the remaining carbon-black space! */
    height: 100%;
    z-index: 3;
    display: flex;
    justify-content: center;
    align-items: center;
}

nav ul {
    display: flex;
    list-style: none;
    height: 100%;
    align-items: center;
    gap: 0;
}

nav ul li {
    height: 100%;
    display: flex;
    align-items: center;
    border-right: 1px solid rgba(255, 255, 255, 0.03);
}

nav ul li:first-child {
    border-left: 1px solid rgba(255, 255, 255, 0.03);
}

nav ul li a {
    color: var(--text-secondary);
    text-decoration: none;
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 500;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    height: 100%;
    display: flex;
    align-items: center;
    padding: 0 24px;
    transition: color var(--transition-speed), background-color var(--transition-speed);
}

nav ul li a:hover {
    color: #ffffff;
    background: linear-gradient(to bottom, rgba(194, 31, 31, 0.35) 0%, rgba(194, 31, 31, 0.12) 60%, rgba(194, 31, 31, 0) 100%);
    border-top: 3px solid var(--brand-red);
}

/* Sunnyvale-Style Vertical Gradient Highlight with Top Border Line */
nav ul li.active a {
    background: linear-gradient(to bottom, rgba(194, 31, 31, 0.4) 0%, rgba(194, 31, 31, 0.15) 60%, rgba(194, 31, 31, 0) 100%);
    color: var(--text-highlight);
    font-weight: 700;
    border-top: 3px solid #ff3b3b;
    text-shadow: 0 0 10px rgba(194, 31, 31, 0.6);
    box-shadow: none;
    /* Slants down-left / matching the true Sunnyvale slash slant! */
    clip-path: polygon(12px 0, 100% 0, calc(100% - 12px) 100%, 0 100%);
    padding: 0 32px; /* Extra padding so the slanted edges never clip the text! */
}

/* Header Play Now CTA Button on right side of nav */
.header-cta-wrapper {
    margin-left: 20px;
    z-index: 3;
}

.header-cta {
    font-family: var(--font-heading);
    background-color: transparent;
    color: var(--brand-red);
    border: 1px solid var(--brand-red);
    padding: 8px 20px;
    border-radius: var(--border-radius-sm);
    font-weight: 600;
    font-size: 0.9rem;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    cursor: pointer;
    transition: all var(--transition-speed);
}

.header-cta:hover {
    background-color: var(--brand-red);
    color: var(--text-highlight);
    box-shadow: 0 0 12px var(--brand-red-glow);
}

/* Split Angled Bottom Alert Bar (Sunnyvale Double-Slant Overlap Redesign) */
.event-alert-bar {
    background-color: transparent; /* Completely transparent background so there is no trash full-width bar behind it! */
    height: 38px;
    display: flex;
    padding: 0;
    z-index: 90;
    position: absolute; /* Float absolutely over the hero section to prevent pushing it down! */
    top: 75px; /* Sits perfectly right below the 75px tall sticky header */
    left: 0;
    width: 100%;
    overflow: visible;
    border-bottom: none; /* No ugly full-width bottom border lines */
    pointer-events: none; /* Empty spaces allow click events to pass straight through */
}

.event-bar-container {
    display: flex;
    height: 100%;
    margin-left: auto; /* Push perfectly to the right side of the screen! */
    margin-right: 40px; /* Align flush with header container right-side padding! */
    width: 45%; /* Small and elegant on the right side of the screen */
    max-width: 650px;
    background-color: var(--brand-red);
    position: relative;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
    border-top: 3px solid #ff3b3b; /* Accent highlight line across the top of the bar */
    border-bottom: 2px solid #850f0f;
    /* Slanted at BOTH left and right ends leaning to the right: /  / */
    clip-path: polygon(15px 0, 100% 0, calc(100% - 15px) 100%, 0 100%);
    pointer-events: auto; /* Let mouse clicks and actions respond inside the actual widget */
}

.event-label {
    background: #0c0c0e;
    color: #ffffff; /* High-contrast white bold text like the screenshot */
    padding: 0 35px 0 30px; /* Symmetrical clean spacing since it is standalone under nav */
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 800;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 8px;
    position: absolute;
    left: 0;
    top: -3px; /* Extend over the top accent highlight line */
    height: calc(100% + 3px);
    z-index: 10;
    /* Slanted parallelogram right edge to align with container slant */
    clip-path: polygon(15px 0, 100% 0, calc(100% - 15px) 100%, 0 100%);
    border-right: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 6px 0 15px rgba(0,0,0,0.5);
}

.event-ticker {
    flex-grow: 1;
    height: 100%;
    display: flex;
    align-items: center;
    padding-left: 165px; /* Shift static text past the standalone badge */
    padding-right: 25px; /* Breathing space at the right slanted boundary */
    z-index: 1;
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 800;
    color: #ffffff; /* White text for high contrast against the red bar */
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.event-ticker-content {
    display: flex;
    align-items: center;
    justify-content: center; /* Center the static text */
    width: 100%;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis; /* Fallback for very small screens */
}

/* Tactical Hero Block */
.hero {
    min-height: 700px;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    background: 
        linear-gradient(135deg, rgba(194,31,31,0.08) 0%, rgba(7,7,9,0.9) 100%), 
        url('images/hero_bg.png') center/cover;
    background-size: cover;
    padding: 6rem 4rem;
    border-bottom: 3px solid var(--brand-red);
}

/* Giant worked-in right-side logo watermark */
.hero-huge-logo-watermark {
    width: 650px;
    height: 650px;
    max-width: 100%;
    object-fit: contain;
    opacity: 0.24;
    filter: drop-shadow(0 0 35px rgba(194, 31, 31, 0.25));
    pointer-events: none;
    animation: float-logo 8s ease-in-out infinite;
}

@keyframes float-logo {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-12px) rotate(2deg); }
}

/* Asymmetrical HUD text badge overlay */
.hero::before {
    content: '[ SEC // ENGAGEMENT_ZONE ]';
    position: absolute;
    top: 24px;
    left: 4rem;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--text-muted);
    letter-spacing: 2px;
}

.hero-container-split {
    display: grid;
    grid-template-columns: 1.25fr 0.75fr;
    gap: 60px;
    width: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
    position: relative;
    z-index: 2;
    align-items: center;
}

.hero-left-content {
    text-align: left;
}

.hero-left-content h1 {
    font-family: var(--font-heading);
    font-size: 5rem; /* Huge, high-impact like Sunnyvale Servers */
    font-weight: 900;
    text-transform: uppercase;
    line-height: 1.1;
    color: #fff;
    margin-bottom: 1.2rem;
    letter-spacing: 0.5px;
    text-shadow: 0 4px 20px rgba(0,0,0,0.85);
}

.hero-left-content h1 span {
    color: var(--brand-red); /* Solid brand red highlight */
    -webkit-text-stroke: none; /* Strip out outline to make it ultra-clean like Sunnyvale! */
    text-shadow: none;
}

.hero-left-content p {
    font-size: 1.55rem; /* Massive, clean lead text directly mimicking the Sunnyvale reference! */
    font-weight: 600;
    color: #ffffff; /* Symmetrical high-contrast solid white */
    line-height: 1.45;
    margin-bottom: 2.8rem;
    max-width: 800px;
    text-shadow: 0 4px 15px rgba(0,0,0,0.9);
    letter-spacing: -0.3px;
}

.hero-cta-buttons {
    display: flex;
    gap: 20px;
}

.hero-btn-slant {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    padding: 14px 34px;
    cursor: pointer;
    transition: all var(--transition-speed);
    clip-path: polygon(10px 0, 100% 0, calc(100% - 10px) 100%, 0 100%);
    text-decoration: none;
    display: inline-block;
}

.hero-btn-slant.main {
    background-color: var(--brand-red);
    color: #fff;
    border: none;
    box-shadow: 0 5px 15px rgba(var(--brand-red-rgb), 0.3);
}

.hero-btn-slant.main:hover {
    background-color: var(--brand-red-hover);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px var(--brand-red-glow);
}

.hero-right-widget {
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Server Status grid */
.server-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    max-width: 1100px;
    margin: 0 auto;
}

.server-pill {
    background-color: rgba(10, 10, 12, 0.65);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.04);
    border-left: 3px solid var(--brand-red);
    padding: 14px 24px;
    border-radius: var(--border-radius-sm);
    display: flex;
    align-items: center;
    gap: 18px;
    transition: transform var(--transition-speed), border-color var(--transition-speed), background-color var(--transition-speed);
    position: relative;
    box-shadow: 0 10px 20px rgba(0,0,0,0.4);
}

.server-pill:hover {
    transform: translateY(-3px);
    border-color: rgba(var(--brand-red-rgb), 0.5);
    background-color: rgba(16, 16, 20, 0.85);
}

.server-status-dot {
    width: 6px;
    height: 6px;
    background-color: #10b981;
    border-radius: 50%;
    box-shadow: 0 0 10px #10b981;
    position: relative;
}

.server-status-dot::after {
    content: '';
    position: absolute;
    top: -5px;
    left: -5px;
    width: 16px;
    height: 16px;
    border: 1px solid rgba(16, 185, 129, 0.4);
    border-radius: 50%;
    animation: pulse 2.5s infinite;
}

@keyframes pulse {
    0% { transform: scale(0.5); opacity: 1; }
    100% { transform: scale(1.8); opacity: 0; }
}

.server-info {
    text-align: left;
}

.server-name {
    font-family: var(--font-heading);
    font-size: 1.05rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-highlight);
}

.server-players {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--brand-red);
    letter-spacing: 1px;
}

/* Leaderboards Section Container */
.leaderboards-section {
    max-width: 100%;
    padding: 7rem 0;
    background: #030304;
    position: relative;
    overflow: hidden;
}

.leaderboards-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(var(--brand-red-rgb), 0.3) 50%, transparent);
}

/* Sunnyvale-style angled stripe across the background */
.leaderboards-section::after {
    content: '';
    position: absolute;
    top: -30%;
    left: -10%;
    width: 120%;
    height: 400px;
    background: rgba(var(--brand-red-rgb), 0.02);
    transform: rotate(-10deg);
    pointer-events: none;
    z-index: 0;
    border-top: 1px solid rgba(var(--brand-red-rgb), 0.05);
    border-bottom: 1px solid rgba(var(--brand-red-rgb), 0.05);
}

.leaderboards-section > * {
    max-width: var(--max-width);
    margin-left: auto;
    margin-right: auto;
    width: calc(100% - 5rem);
    position: relative;
    z-index: 2;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-header h2 {
    font-family: var(--font-heading);
    font-size: 3.4rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 0.8rem;
}

.section-header p {
    color: var(--text-secondary);
    font-size: 1.15rem;
    max-width: 600px;
    margin: 0 auto;
}

/* Interactive selector panel (Control center) */
.selector-panel {
    background-color: var(--bg-surface-glass);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.03);
    border-top: 2px solid var(--brand-red);
    border-radius: var(--border-radius-sm);
    padding: 24px 32px;
    margin-bottom: 3rem;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.6);
    position: relative;
}

/* Small tech HUD deco inside panel */
.selector-panel::after {
    content: '// SELECTOR_MODULE //';
    position: absolute;
    top: -12px;
    right: 32px;
    background-color: var(--bg-base);
    padding: 0 8px;
    font-family: var(--font-mono);
    font-size: 0.65rem;
    color: var(--brand-red);
    letter-spacing: 1px;
}

.selector-group {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 20px;
    flex-grow: 1;
}

.selector-dropdown {
    position: relative;
    min-width: 320px;
}

.selector-dropdown.large {
    min-width: 360px;
}

.dropdown-btn {
    width: 100%;
    background-color: rgba(6, 6, 6, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.05);
    color: var(--text-highlight);
    padding: 16px 24px;
    border-radius: var(--border-radius-sm);
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-align: left;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: border-color var(--transition-speed), background-color var(--transition-speed);
}

.dropdown-btn:hover {
    border-color: rgba(var(--brand-red-rgb), 0.5);
    background-color: rgba(255,255,255,0.02);
}

.dropdown-btn::after {
    content: '';
    width: 6px;
    height: 6px;
    border-right: 2px solid var(--text-secondary);
    border-bottom: 2px solid var(--text-secondary);
    transform: rotate(45deg);
    transition: transform var(--transition-speed);
}

.selector-dropdown.open .dropdown-btn::after {
    transform: rotate(-135deg);
}

.dropdown-menu {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    width: 100%;
    max-height: 380px;
    background-color: #08080a;
    border: 1px solid rgba(var(--brand-red-rgb), 0.4);
    box-shadow: 0 15px 45px rgba(0,0,0,0.95);
    border-radius: var(--border-radius-sm);
    overflow-y: auto;
    z-index: 10;
    display: none;
    animation: dropIn 0.15s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes dropIn {
    from { opacity: 0; transform: translateY(-5px); }
    to { opacity: 1; transform: translateY(0); }
}

.selector-dropdown.open .dropdown-menu {
    display: block;
}

.dropdown-item {
    padding: 14px 24px;
    color: var(--text-secondary);
    font-family: var(--font-heading);
    font-size: 1.05rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: color var(--transition-speed), background-color var(--transition-speed);
    border-bottom: 1px solid rgba(255, 255, 255, 0.01);
}

.dropdown-item:hover {
    color: var(--text-highlight);
    background-color: rgba(var(--brand-red-rgb), 0.15);
}

.dropdown-item.selected {
    color: var(--text-highlight);
    background-color: var(--brand-red);
    font-weight: 600;
}

/* Search Box Container */
.search-container {
    position: relative;
    min-width: 280px;
}

.search-input {
    width: 100%;
    background-color: rgba(6, 6, 6, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.05);
    color: var(--text-highlight);
    padding: 16px 20px 16px 48px;
    border-radius: var(--border-radius-sm);
    font-size: 0.95rem;
    transition: border-color var(--transition-speed), box-shadow var(--transition-speed);
}

.search-input:focus {
    outline: none;
    border-color: var(--brand-red);
    box-shadow: 0 0 12px var(--brand-red-glow);
}

.search-icon {
    position: absolute;
    left: 18px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-secondary);
    pointer-events: none;
}

/* Diagnostic Holographic Metric Cards Grid */
.highlights-container {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
    margin-bottom: 3.5rem;
}

.highlight-card {
    background-color: var(--bg-surface-glass);
    border: 1px solid rgba(255, 255, 255, 0.03);
    border-radius: var(--border-radius-sm);
    padding: 26px 20px;
    text-align: center;
    position: relative;
    overflow: hidden;
    transition: transform var(--transition-speed), border-color var(--transition-speed), box-shadow var(--transition-speed);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
}

.highlight-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, var(--brand-red), transparent);
}

.highlight-card:hover {
    transform: translateY(-4px);
    border-color: rgba(var(--brand-red-rgb), 0.5);
    box-shadow: 0 12px 35px var(--brand-red-glow);
    background-color: rgba(22, 22, 28, 0.8);
}

.highlight-title {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--brand-red);
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 12px;
}

.highlight-icon {
    font-size: 2.2rem;
    margin-bottom: 14px;
    color: var(--text-secondary);
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color var(--transition-speed);
}

.highlight-card:hover .highlight-icon {
    color: var(--text-highlight);
}

.highlight-icon svg {
    width: 36px;
    height: 36px;
    fill: currentColor;
    stroke: none;
    filter: drop-shadow(0 0 4px rgba(255,255,255,0.05));
}

.stat-icon-img {
    width: 48px;
    height: 48px;
    object-fit: contain;
    opacity: 0.85;
    transition: opacity 0.2s, filter 0.2s;
}

.highlight-card:hover .stat-icon-img {
    opacity: 1;
    filter: drop-shadow(0 0 8px rgba(194, 31, 31, 0.9));
}

.highlight-card:hover .highlight-icon svg {
    filter: drop-shadow(0 0 10px var(--brand-red-glow));
}

.highlight-name {
    font-family: var(--font-heading);
    font-size: 1.35rem;
    font-weight: 600;
    color: var(--text-highlight);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 6px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.highlight-value {
    font-family: var(--font-mono);
    font-size: 1.7rem;
    font-weight: 700;
    color: var(--text-highlight);
    letter-spacing: 1px;
}

.card-decor {
    position: absolute;
    bottom: -15px;
    right: -15px;
    opacity: 0.02;
    pointer-events: none;
}

.highlight-card:hover .card-decor {
    opacity: 0.05;
}

.card-decor svg {
    width: 80px;
    height: 80px;
    fill: var(--text-highlight);
}

/* Spaced out HUD Lobby Table Design */
.table-container {
    background-color: transparent;
    overflow: visible;
    margin-bottom: 3rem;
}

table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0 10px; /* Gives table rows a floating lobby look! */
}

thead {
    background-color: transparent;
}

th {
    padding: 10px 24px;
    font-family: var(--font-mono);
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--brand-red);
    border-bottom: 1px solid rgba(var(--brand-red-rgb), 0.2);
}

tbody tr {
    background-color: rgba(14, 14, 18, 0.7);
    border-radius: var(--border-radius-sm);
    transition: transform var(--transition-speed), background-color var(--transition-speed), box-shadow var(--transition-speed);
}

tbody tr:hover {
    transform: translateX(4px);
    background-color: rgba(22, 22, 28, 0.95);
    box-shadow: -4px 0 0 var(--brand-red), 0 10px 25px rgba(0,0,0,0.5);
}

td {
    padding: 18px 24px;
    font-size: 0.95rem;
    color: var(--text-secondary);
    border-top: 1px solid rgba(255,255,255,0.02);
    border-bottom: 1px solid rgba(255,255,255,0.02);
    transition: color var(--transition-speed);
}

/* Round outer cell corners for spaced rows */
td:first-child {
    border-left: 1px solid rgba(255,255,255,0.02);
    border-top-left-radius: var(--border-radius-sm);
    border-bottom-left-radius: var(--border-radius-sm);
}

td:last-child {
    border-right: 1px solid rgba(255,255,255,0.02);
    border-top-right-radius: var(--border-radius-sm);
    border-bottom-right-radius: var(--border-radius-sm);
}

tbody tr:hover td {
    color: var(--text-highlight);
    border-color: rgba(var(--brand-red-rgb), 0.2);
}

/* HUD Leaderboard Rank Badges */
.rank-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: var(--border-radius-sm);
    font-family: var(--font-mono);
    font-weight: 700;
    font-size: 0.95rem;
    background-color: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255,255,255,0.08);
    color: var(--text-secondary);
}

tr:nth-child(1) .rank-badge {
    background-color: rgba(255, 215, 0, 0.15);
    color: #ffd700;
    border-color: #ffd700;
    box-shadow: 0 0 12px rgba(255, 215, 0, 0.25);
    font-size: 1.1rem;
}

tr:nth-child(2) .rank-badge {
    background-color: rgba(192, 192, 192, 0.15);
    color: #c0c0c0;
    border-color: #c0c0c0;
    box-shadow: 0 0 10px rgba(192, 192, 192, 0.15);
}

tr:nth-child(3) .rank-badge {
    background-color: rgba(205, 127, 50, 0.15);
    color: #cd7f32;
    border-color: #cd7f32;
    box-shadow: 0 0 10px rgba(205, 127, 50, 0.15);
}

.player-name-cell {
    font-weight: 600;
    color: var(--text-highlight);
    display: flex;
    align-items: center;
    gap: 12px;
}

.clan-tag {
    color: var(--brand-red);
    font-family: var(--font-heading);
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 0.5px;
}

/* Pagination panel block */
.pagination-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 22px 32px;
    background-color: var(--bg-surface);
    border: 1px solid rgba(255, 255, 255, 0.03);
    border-radius: var(--border-radius-sm);
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.pagination-info {
    font-family: var(--font-mono);
    color: var(--text-secondary);
    font-size: 0.85rem;
}

.pagination-buttons {
    display: flex;
    gap: 10px;
}

.page-btn {
    background-color: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    color: var(--text-secondary);
    padding: 10px 20px;
    border-radius: var(--border-radius-sm);
    font-family: var(--font-heading);
    font-size: 0.95rem;
    cursor: pointer;
    letter-spacing: 1px;
    text-transform: uppercase;
    transition: background-color var(--transition-speed), color var(--transition-speed), border-color var(--transition-speed), box-shadow var(--transition-speed);
}

.page-btn:hover:not(:disabled) {
    background-color: var(--brand-red);
    color: var(--text-highlight);
    border-color: var(--brand-red);
    box-shadow: 0 0 10px var(--brand-red-glow);
}

.page-btn:disabled {
    opacity: 0.2;
    cursor: not-allowed;
}

/* Discord CTA Panel Banner */
.discord-banner-section {
    background: linear-gradient(180deg, #060608 0%, #030304 100%);
    border-top: 1px solid rgba(255,255,255,0.02);
    padding: 7rem 2.5rem;
    text-align: center;
    position: relative;
}

/* HUD frame container */
.hud-panel {
    position: relative;
    padding: 40px;
}

.discord-banner-content {
    max-width: 850px;
    margin: 0 auto;
    background-color: var(--bg-surface-glass);
    border: 1px solid rgba(255, 255, 255, 0.03);
    border-radius: var(--border-radius-sm);
    padding: 50px 30px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.7);
    position: relative;
}

.discord-banner-logo {
    width: 56px;
    height: 56px;
    margin: 0 auto 1.5rem auto;
    filter: drop-shadow(0 0 12px rgba(88, 101, 242, 0.4));
}

.discord-banner-logo img {
    width: 100%;
    height: auto;
}

.discord-banner-section h3 {
    font-family: var(--font-heading);
    font-size: 2.8rem;
    font-weight: 800;
    text-transform: uppercase;
    margin-bottom: 1rem;
    letter-spacing: 1.5px;
    color: var(--text-highlight);
}

.discord-banner-section p {
    color: var(--text-secondary);
    font-size: 1.15rem;
    margin-bottom: 2.5rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.discord-btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background-color: #5865F2;
    color: var(--text-highlight);
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 1.15rem;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    padding: 16px 36px;
    border-radius: var(--border-radius-sm);
    text-decoration: none;
    box-shadow: 0 5px 20px rgba(88, 101, 242, 0.3);
    transition: transform var(--transition-speed), background-color var(--transition-speed), box-shadow var(--transition-speed);
}

.discord-btn:hover {
    background-color: #4752c4;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(88, 101, 242, 0.5);
}

/* Footer Section */
footer {
    background-color: #030304;
    padding: 5rem 2.5rem 3rem 2.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.02);
}

.footer-content {
    max-width: var(--max-width);
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: flex-start;
    gap: 50px;
    padding-bottom: 4rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}

.footer-brand {
    max-width: 360px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 20px;
}

.footer-logo img {
    height: 42px;
    width: auto;
}

.footer-logo-text {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--text-highlight);
}

.footer-brand p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.7;
}

.footer-links {
    display: flex;
    gap: 60px;
}

.footer-col h4 {
    font-family: var(--font-mono);
    color: var(--brand-red);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.85rem;
    margin-bottom: 20px;
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 12px;
}

.footer-col ul li a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.95rem;
    transition: color var(--transition-speed);
}

.footer-col ul li a:hover {
    color: var(--text-highlight);
}

.footer-bottom {
    max-width: var(--max-width);
    margin: 0 auto;
    padding-top: 2.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 24px;
}

.footer-copyright {
    color: var(--text-muted);
    font-size: 0.85rem;
    font-family: var(--font-mono);
}

.footer-bottom-links {
    display: flex;
    gap: 24px;
}

.footer-bottom-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.85rem;
    transition: color var(--transition-speed);
}

.footer-bottom-links a:hover {
    color: var(--text-secondary);
}

/* loading shimmer effect */
.shimmer-active {
    position: relative;
    overflow: hidden;
}

.shimmer-active::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    transform: translateX(-100%);
    background: linear-gradient(
        90deg,
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 0.04) 20%,
        rgba(255, 255, 255, 0.08) 60%,
        rgba(255, 255, 255, 0) 100%
    );
    animation: shimmer 1.2s infinite;
}

@keyframes shimmer {
    100% { transform: translateX(100%); }
}

/* Dynamic Live HUD Alert Toast */
.toast-msg {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: #060608;
    border: 1px solid rgba(var(--brand-red-rgb), 0.5);
    border-left: 4px solid var(--brand-red);
    padding: 18px 28px;
    border-radius: var(--border-radius-sm);
    color: var(--text-highlight);
    box-shadow: 0 15px 40px rgba(0,0,0,0.8);
    z-index: 1000;
    font-family: var(--font-mono);
    font-size: 0.9rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 14px;
    animation: slideIn 0.3s cubic-bezier(0.16, 1, 0.3, 1), fadeOut 0.3s cubic-bezier(0.16, 1, 0.3, 1) 3s forwards;
}

@keyframes slideIn {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

@keyframes fadeOut {
    from { transform: translateY(0); opacity: 1; }
    to { transform: translateY(15px); opacity: 0; }
}

/* Responsive Grid breaks */
@media (max-width: 1300px) {
    .highlights-container {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 992px) {
    .logo-block.hanging-badge {
        position: relative;
        left: auto;
        top: auto;
        height: auto;
        background-color: transparent;
        border: none;
        clip-path: none;
        box-shadow: none;
        padding: 0;
        margin-right: auto;
    }
    .logo-block.hanging-badge img {
        height: 38px;
    }
    .header-left-wing {
        display: none;
    }
    .nav-container, .header-container {
        flex-direction: row;
        height: 100%;
        padding: 0 1.5rem;
        gap: 0;
        justify-content: space-between;
    }
    nav {
        margin-left: 0;
    }
    nav ul li a {
        padding: 0 12px;
        font-size: 0.85rem;
    }
    .header-cta-wrapper {
        margin-left: 10px;
    }
    .highlights-container {
        grid-template-columns: repeat(2, 1fr);
    }
    .selector-panel {
        flex-direction: column;
        align-items: stretch;
        padding: 24px;
    }
    .hero h1 {
        font-size: 3.5rem;
    }
}

@media (max-width: 640px) {
    .hero h1 {
        font-size: 2.6rem;
    }
    nav {
        display: none; /* Hide standard nav list on mobile */
    }
    .highlights-container {
        grid-template-columns: 1fr;
    }
    .selector-dropdown {
        min-width: 100%;
    }
    .search-container {
        min-width: 100%;
    }
    .footer-links {
        flex-direction: column;
        gap: 30px;
    }
}

/* ==========================================================================
   ACTIVE OPERATIONS / SERVERS PORTAL SECTION
   ========================================================================== */
.servers-section {
    max-width: 100%;
    padding: 7rem 0;
    background: 
        radial-gradient(circle at 20% 50%, rgba(var(--brand-red-rgb), 0.05) 0%, transparent 50%),
        linear-gradient(180deg, #020202 0%, #060608 100%);
    border-top: 1px solid rgba(255,255,255,0.02);
    position: relative;
}

.servers-section > * {
    max-width: var(--max-width);
    margin-left: auto;
    margin-right: auto;
    width: calc(100% - 5rem);
}

.server-portal-card {
    background-color: var(--bg-surface-glass);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.03);
    border-top: 2px solid var(--brand-red);
    border-radius: var(--border-radius-sm);
    padding: 40px;
    margin-top: 2.5rem;
    position: relative;
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.65);
}

.portal-main-grid {
    display: grid;
    grid-template-columns: 1.3fr 0.7fr;
    gap: 45px;
}

.portal-badge {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--brand-red);
    letter-spacing: 2.5px;
    text-transform: uppercase;
    margin-bottom: 8px;
    font-weight: 700;
}

.portal-title {
    font-family: var(--font-heading);
    font-size: 2.4rem;
    font-weight: 900;
    color: var(--text-highlight);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 25px;
}

.portal-stats-bar {
    display: flex;
    gap: 40px;
    margin-bottom: 35px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    padding-bottom: 30px;
}

.portal-stat {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.stat-label {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 8px;
}

.stat-value {
    font-family: var(--font-heading);
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-highlight);
    letter-spacing: 0.5px;
}

.stat-progress-bg {
    background: #030304;
    height: 6px;
    border-radius: 3px;
    margin-top: 12px;
    overflow: hidden;
}

.stat-progress-fill {
    background: linear-gradient(90deg, var(--brand-red), var(--tech-accent));
    height: 100%;
    border-radius: 3px;
    box-shadow: 0 0 10px var(--brand-red-glow);
}

.ip-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    background: rgba(3, 3, 4, 0.8);
    padding: 8px 16px;
    border: 1px solid rgba(255, 255, 255, 0.04);
    border-radius: var(--border-radius-sm);
    margin-top: 6px;
}

.ip-value {
    font-family: var(--font-mono);
    font-size: 0.95rem;
    color: var(--tech-accent);
    letter-spacing: 0.5px;
}

.copy-ip-btn {
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    display: flex;
    align-items: center;
    transition: color var(--transition-speed);
}

.copy-ip-btn:hover {
    color: var(--text-highlight);
}

.copy-ip-btn svg {
    width: 16px;
    height: 16px;
    fill: currentColor;
}

.portal-features-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.feature-item {
    display: flex;
    gap: 18px;
}

.feature-icon {
    font-size: 1.8rem;
    line-height: 1;
    filter: drop-shadow(0 0 5px rgba(var(--brand-red-rgb), 0.3));
}

.feature-text h4 {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    text-transform: uppercase;
    color: var(--text-highlight);
    letter-spacing: 0.5px;
    margin-bottom: 6px;
}

.feature-text p {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

.portal-action-panel {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.map-widget {
    flex-grow: 1;
    background: 
        radial-gradient(circle at center, rgba(var(--brand-red-rgb), 0.05) 0%, rgba(3, 3, 4, 0.9) 100%), 
        url('images/New images/15.png') no-repeat center center;
    background-size: cover;
    border: 1px solid rgba(255, 255, 255, 0.04);
    border-radius: var(--border-radius-sm);
    min-height: 250px;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: inset 0 0 30px rgba(0, 0, 0, 0.9);
}

.map-grid-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(var(--tech-grid) 1px, transparent 1px),
        linear-gradient(90deg, var(--tech-grid) 1px, transparent 1px);
    background-size: 25px 25px;
    opacity: 0.6;
}

.map-ping {
    width: 14px;
    height: 14px;
    background: var(--brand-red);
    border-radius: 50%;
    box-shadow: 0 0 20px var(--brand-red);
    position: relative;
    z-index: 2;
    animation: pingPulse 2s cubic-bezier(0.25, 0, 0, 1) infinite;
}

@keyframes pingPulse {
    0% { transform: scale(0.8); opacity: 1; }
    100% { transform: scale(4); opacity: 0; }
}

.map-label {
    position: absolute;
    bottom: 12px;
    left: 15px;
    font-family: var(--font-mono);
    font-size: 0.7rem;
    color: var(--text-muted);
    letter-spacing: 2px;
}

.action-buttons-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.portal-btn {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    padding: 16px;
    border-radius: var(--border-radius-sm);
    cursor: pointer;
    transition: all var(--transition-speed);
}

.portal-btn.main-action {
    background-color: var(--brand-red);
    border: none;
    color: var(--text-highlight);
    box-shadow: 0 5px 15px rgba(var(--brand-red-rgb), 0.3);
}

.portal-btn.main-action:hover {
    background-color: var(--brand-red-hover);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px var(--brand-red-glow);
}

.portal-btn.secondary-action {
    background-color: rgba(6, 6, 8, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: var(--text-secondary);
}

.portal-btn.secondary-action:hover {
    border-color: var(--text-highlight);
    color: var(--text-highlight);
    background-color: rgba(255, 255, 255, 0.02);
}

/* ==========================================================================
   COMBAT DIRECTIVES / EVENTS SECTION
   ========================================================================== */
.events-section {
    max-width: 100%;
    padding: 7rem 0;
    background: url('images/hero_bg.png') no-repeat center center;
    background-size: cover;
    background-attachment: fixed;
    position: relative;
    border-top: 3px solid var(--brand-red);
    border-bottom: 3px solid var(--brand-red);
}

.events-section::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(135deg, rgba(6, 6, 8, 0.98) 0%, rgba(16, 16, 20, 0.85) 100%);
    z-index: 1;
}

.events-section > * {
    max-width: var(--max-width);
    margin-left: auto;
    margin-right: auto;
    width: calc(100% - 5rem);
    position: relative;
    z-index: 2;
}

.events-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
    margin-top: 2.5rem;
}

.event-card {
    background-color: var(--bg-surface-glass);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.03);
    border-radius: var(--border-radius-sm);
    padding: 35px;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform var(--transition-speed), border-color var(--transition-speed), box-shadow var(--transition-speed);
    min-height: 260px;
}

.event-card:hover {
    transform: translateY(-4px);
    border-color: rgba(var(--brand-red-rgb), 0.4);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5);
}

.event-card.active-event {
    border-left: 3px solid var(--brand-red);
}

.event-status {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    color: var(--brand-red);
    letter-spacing: 2px;
    font-weight: 700;
    margin-bottom: 18px;
}

.event-name {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-highlight);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 12px;
}

.event-desc {
    font-size: 0.88rem;
    color: var(--text-secondary);
    line-height: 1.5;
    margin-bottom: 25px;
    flex-grow: 1;
}

.event-time {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--tech-accent);
    letter-spacing: 1px;
    padding: 8px 14px;
    background: rgba(3, 3, 4, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.03);
    border-radius: var(--border-radius-sm);
    margin-bottom: 25px;
    width: max-content;
}

.event-btn {
    font-family: var(--font-heading);
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 10px 20px;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: var(--text-secondary);
    cursor: pointer;
    border-radius: var(--border-radius-sm);
    transition: all var(--transition-speed);
    width: 100%;
    text-align: center;
}

.event-btn:hover {
    border-color: var(--brand-red);
    color: var(--text-highlight);
    background-color: rgba(var(--brand-red-rgb), 0.1);
}

/* ==========================================================================
   INTERACTIVE RULES / PROTOCOLS SECTION
   ========================================================================== */
.rules-section {
    max-width: 100%;
    padding: 7rem 0;
    background: linear-gradient(180deg, #060608 0%, #030304 100%);
    border-top: 1px solid rgba(255,255,255,0.02);
    position: relative;
}

.rules-section > * {
    max-width: var(--max-width);
    margin-left: auto;
    margin-right: auto;
    width: calc(100% - 5rem);
}

.rules-tabbed-container {
    background-color: var(--bg-surface-glass);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.03);
    border-top: 2px solid var(--brand-red);
    border-radius: var(--border-radius-sm);
    padding: 40px;
    margin-top: 2.5rem;
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.6);
}

.rules-tabs {
    display: flex;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    margin-bottom: 35px;
    gap: 15px;
}

.rules-tab-btn {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 14px 28px;
    background: none;
    border: none;
    border-bottom: 3px solid transparent;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all var(--transition-speed);
}

.rules-tab-btn:hover {
    color: var(--text-highlight);
}

.rules-tab-btn.active {
    color: var(--brand-red);
    border-bottom-color: var(--brand-red);
    text-shadow: 0 0 8px var(--brand-red-glow);
}

.rules-content-body {
    display: flex;
    flex-direction: column;
    gap: 20px;
    animation: tabFadeIn 0.35s ease;
}

@keyframes tabFadeIn {
    from { opacity: 0; transform: translateY(6px); }
    to { opacity: 1; transform: translateY(0); }
}

.rules-item {
    display: flex;
    gap: 24px;
    align-items: flex-start;
    padding: 18px 24px;
    background: rgba(3, 3, 4, 0.4);
    border-left: 2px solid rgba(255, 255, 255, 0.02);
    border-radius: var(--border-radius-sm);
    transition: border-color var(--transition-speed), background-color var(--transition-speed);
}

.rules-item:hover {
    border-left-color: var(--brand-red);
    background-color: rgba(var(--brand-red-rgb), 0.03);
}

.rule-num {
    font-family: var(--font-mono);
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--brand-red);
    width: 45px;
    margin-top: 3px;
}

.rule-details h4 {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    text-transform: uppercase;
    color: var(--text-highlight);
    letter-spacing: 0.5px;
    margin-bottom: 6px;
}

.rule-details p {
    font-size: 0.88rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

/* ==========================================================================
   SUPPORT SHOP / DONATIONS SECTION
   ========================================================================== */
.donate-section {
    max-width: 100%;
    padding: 7rem 0;
    background: 
        radial-gradient(circle at 50% 0%, rgba(var(--brand-red-rgb), 0.08) 0%, transparent 60%),
        #040405;
    border-top: 2px solid rgba(var(--brand-red-rgb), 0.2);
    position: relative;
}

.donate-section > * {
    max-width: var(--max-width);
    margin-left: auto;
    margin-right: auto;
    width: calc(100% - 5rem);
}

.shop-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 25px;
    margin-top: 2.5rem;
}

.shop-card {
    flex: 1 1 calc(33.333% - 25px);
    min-width: 320px;
    max-width: 380px;
    background-color: #070709;
    border: 1px solid rgba(255, 255, 255, 0.03);
    border-radius: var(--border-radius-sm);
    display: flex;
    flex-direction: column;
    padding: 0;
    transition: transform var(--transition-speed), border-color var(--transition-speed), box-shadow var(--transition-speed);
}

.shop-card:hover {
    transform: translateY(-4px);
    border-color: rgba(var(--brand-red-rgb), 0.35);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.65);
}

.shop-card-header {
    background: #030304;
    padding: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
    text-align: center;
}

.shop-card-header h3 {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    font-weight: 800;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin: 0;
}

.shop-card-image-wrapper {
    width: 100%;
    height: 350px;
    overflow: hidden;
    background-color: #030304;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
    display: flex;
    align-items: center;
    justify-content: center;
}

.shop-card-image {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    transition: transform var(--transition-speed);
}

.shop-card:hover .shop-card-image {
    transform: scale(1.04);
}

.shop-card-body {
    padding: 30px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.contains-label {
    font-family: var(--font-heading);
    font-size: 0.9rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 20px;
    text-align: center;
}

.shop-separator {
    position: relative;
    height: 1px;
    background: rgba(255, 255, 255, 0.08);
    margin: 25px 0;
    width: 100%;
}

.shop-separator::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #070709;
    border: 2px solid var(--brand-red);
    box-shadow: 0 0 8px var(--brand-red-glow);
}

.shop-price {
    font-family: var(--font-heading);
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--text-highlight);
    text-align: center;
    margin-bottom: 25px;
}

.shop-price span {
    font-size: 1.1rem;
    color: var(--text-secondary);
    font-weight: 400;
    margin-left: 5px;
}

.shop-perks {
    list-style: none;
    text-align: center;
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 14px;
    flex-grow: 1;
}

.shop-perks li {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.45;
}

.shop-perks:not(.two-col) li::before {
    content: "\25a0  ";
    color: var(--brand-red);
    margin-right: 8px;
    font-weight: bold;
}

.shop-perks.two-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px 20px;
    text-align: left;
    margin-bottom: 20px;
    flex-grow: 1;
    width: 100%;
}

.shop-perks.two-col li {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.45;
    position: relative;
    padding-left: 15px;
}

.shop-perks.two-col li::before {
    content: "\25a0  ";
    color: var(--brand-red);
    position: absolute;
    left: 0;
    font-weight: bold;
}

.shop-btn {
    background: linear-gradient(180deg, #1f0505 0%, #0d0000 100%);
    border: 2px solid var(--brand-red);
    color: var(--brand-red);
    padding: 12px 35px;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 50px;
    cursor: pointer;
    box-shadow: 0 0 10px rgba(194, 31, 31, 0.2);
    transition: all var(--transition-speed);
    width: max-content;
    margin: 0 auto;
}

.shop-btn:hover {
    background: var(--brand-red);
    color: #fff;
    box-shadow: 0 0 20px var(--brand-red-glow);
    transform: translateY(-2px);
}

/* ==========================================================================
   GRAPHIC PROMO CARDS (HTML/CSS Based Image Substitutes)
   ========================================================================== */
.shop-promo-card {
    width: 100%;
    max-width: 850px;
    background: 
        linear-gradient(rgba(10, 10, 12, 0.88), rgba(10, 10, 12, 0.96)),
        url('images/hero_bg.png') center/cover;
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 4px;
    position: relative;
    overflow: hidden;
    display: grid;
    grid-template-columns: 1fr 280px;
    grid-template-rows: auto 1fr auto;
    padding: 35px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.8), inset 0 0 40px rgba(0,0,0,0.9);
    margin: 0 auto;
}

.shop-promo-card::before {
    content: '';
    position: absolute;
    top: 6px; left: 6px; right: 6px; bottom: 6px;
    border: 1px solid rgba(255, 255, 255, 0.04);
    pointer-events: none;
}

.promo-header {
    grid-column: 1 / -1;
    text-align: center;
    margin-bottom: 25px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding-bottom: 20px;
}

.promo-header h2 {
    font-family: var(--font-heading);
    font-size: 4rem;
    font-weight: 900;
    color: var(--brand-red);
    text-shadow: 0 0 15px rgba(194,31,31,0.5);
    line-height: 1;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.promo-header h3 {
    font-family: var(--font-heading);
    font-size: 2.2rem;
    font-weight: 800;
    color: #b0b0b5;
    text-transform: uppercase;
    letter-spacing: 3px;
    margin: 5px 0 0 0;
    text-shadow: 2px 2px 5px rgba(0,0,0,0.8);
}

.promo-perks-col {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 18px;
    padding-right: 30px;
}

.promo-perk-item {
    display: flex;
    align-items: center;
    gap: 15px;
}

.promo-perk-icon {
    width: 44px; height: 44px;
    border: 1px solid var(--brand-red);
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
    display: flex; justify-content: center; align-items: center;
    background: rgba(194,31,31,0.1);
    flex-shrink: 0;
    box-shadow: 0 0 10px rgba(194,31,31,0.2) inset;
}

.promo-perk-icon svg { width: 22px; fill: var(--brand-red); }

.promo-perk-text { display: flex; flex-direction: column; }

.promo-perk-text h4 {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    color: #fff;
    margin: 0 0 4px 0;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.promo-perk-text p {
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.promo-price-col {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    border-left: 1px solid rgba(255, 255, 255, 0.05);
    padding-left: 30px;
}

.promo-price-box {
    border: 2px solid rgba(194,31,31,0.5);
    border-radius: 6px;
    padding: 25px 20px;
    text-align: center;
    background: rgba(0,0,0,0.6);
    margin-bottom: 25px;
    width: 100%;
    clip-path: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px);
}

.promo-price-box.highlight {
    border-color: var(--brand-red);
    box-shadow: 0 0 25px rgba(194,31,31,0.2) inset;
}

.promo-price-title {
    font-family: var(--font-mono);
    color: var(--text-secondary);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 12px;
}

.promo-price-amount {
    font-family: var(--font-heading);
    font-size: 4rem;
    font-weight: 900;
    color: var(--brand-red);
    line-height: 1;
    text-shadow: 0 0 15px rgba(194,31,31,0.6);
}

.promo-price-amount span {
    font-size: 1.5rem; color: #fff; text-shadow: none;
}

.promo-buy-btn {
    width: 100%;
    padding: 16px;
    background: var(--brand-red);
    color: #fff;
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 800;
    text-transform: uppercase;
    border: none;
    cursor: pointer;
    transition: all 0.2s;
    letter-spacing: 2px;
    clip-path: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px);
}

.promo-buy-btn:hover { 
    background: #e02626; 
    box-shadow: 0 0 20px rgba(194,31,31,0.6); 
    transform: scale(1.02);
}

.promo-footer {
    grid-column: 1 / -1;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    margin-top: 30px;
    padding-top: 20px;
}

.promo-badge {
    display: flex;
    align-items: center;
    gap: 12px;
}

.promo-badge svg { width: 28px; fill: var(--brand-red); opacity: 0.8; }

.promo-badge-text h5 { margin: 0 0 2px 0; font-family: var(--font-heading); color: #fff; font-size: 0.95rem; text-transform: uppercase; letter-spacing: 1px;}
.promo-badge-text p { margin: 0; font-size: 0.7rem; color: var(--brand-red); text-transform: uppercase; letter-spacing: 0.5px;}

/* We will stack the shop grid elements differently now if they are promos */
.shop-grid.promo-grid {
    flex-direction: column;
    gap: 40px;
}

/* ==========================================================================
   SIMULATED CHECKOUT MODAL OVERLAY
   ========================================================================== */
.checkout-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(3, 3, 4, 0.9);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
}

.checkout-modal.open {
    opacity: 1;
    pointer-events: auto;
}

.checkout-content {
    background-color: var(--bg-surface);
    border: 1px solid rgba(var(--brand-red-rgb), 0.4);
    border-radius: var(--border-radius-sm);
    padding: 40px;
    width: 100%;
    max-width: 500px;
    position: relative;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.95);
    transform: scale(0.95);
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.checkout-modal.open .checkout-content {
    transform: scale(1);
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 2rem;
    color: var(--text-secondary);
    cursor: pointer;
    transition: color var(--transition-speed);
    line-height: 1;
}

.modal-close:hover {
    color: var(--text-highlight);
}

.modal-title {
    font-family: var(--font-heading);
    font-size: 1.65rem;
    font-weight: 800;
    color: var(--text-highlight);
    text-transform: uppercase;
    margin-bottom: 5px;
    letter-spacing: 1px;
}

.pay-opt {
    transition: all var(--transition-speed);
}

.pay-opt:hover {
    border-color: var(--brand-red) !important;
    color: var(--text-highlight) !important;
}

.pay-opt.active {
    border-color: var(--brand-red) !important;
    color: var(--text-highlight) !important;
    background-color: rgba(var(--brand-red-rgb), 0.15) !important;
    box-shadow: 0 0 10px var(--brand-red-glow);
}

.plan-opt {
    transition: all var(--transition-speed);
}

.plan-opt:hover {
    border-color: var(--brand-red) !important;
    color: var(--text-highlight) !important;
}

.plan-opt.active {
    border-color: var(--brand-red) !important;
    color: var(--text-highlight) !important;
    background-color: rgba(var(--brand-red-rgb), 0.15) !important;
    box-shadow: 0 0 10px var(--brand-red-glow);
}

.modal-submit-btn:hover {
    background-color: var(--brand-red-hover) !important;
    box-shadow: 0 5px 15px var(--brand-red-glow);
}

/* ==========================================================================
   RESPONSIVE OVERRIDES FOR NEW SECTIONS
   ========================================================================== */
@media (max-width: 1100px) {
    .portal-main-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    .events-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .events-grid {
        grid-template-columns: 1fr;
    }
    .portal-features-grid {
        grid-template-columns: 1fr;
    }
    .rules-tabs {
        flex-direction: column;
        gap: 5px;
    }
}

/* ==========================================================================
   RESPONSIVE LAYOUT FOR THE DOUBLE-SLANT HEADER AND ALERT BAR
   ========================================================================== */
@media (max-width: 1200px) {
    .logo-block {
        width: 32%;
        min-width: 250px;
    }
    .logo-block .logo-text {
        left: calc(100% + 40px);
        font-size: 1.4rem;
    }
    .event-bar-container {
        margin-left: 20%;
        width: 70%;
    }
}

@media (max-width: 992px) {
    header {
        height: auto;
        padding: 15px 20px;
    }
    .header-container {
        flex-direction: column;
        gap: 15px;
        padding: 0;
    }
    .logo-block {
        width: 100%;
        min-width: auto;
        justify-content: center;
        padding: 10px 0;
        height: 60px;
    }
    .logo-block::before {
        clip-path: none;
    }
    .logo-block img {
        position: static;
        height: 50px;
        margin-right: 15px;
        top: 0;
    }
    .logo-block .logo-text {
        position: static;
        transform: none;
        font-size: 1.5rem;
    }
    nav {
        margin: 0 auto;
        width: 100%;
    }
    nav ul {
        flex-wrap: wrap;
        justify-content: center;
        gap: 5px;
    }
    nav ul li {
        border: none;
    }
    nav ul li a {
        padding: 8px 16px;
        height: auto;
    }
    nav ul li.active a {
        border-top: none;
        background: var(--brand-red);
        border-radius: var(--border-radius-sm);
    }
    .header-cta-wrapper {
        margin: 10px 0 0 0;
        width: 100%;
        display: flex;
        justify-content: center;
    }
    .event-alert-bar {
        height: auto;
    }
    .event-bar-container {
        margin-left: 0;
        width: 100%;
        clip-path: none;
        flex-direction: column;
        border-top: none;
        height: auto;
        padding: 10px 0;
    }
    .event-label {
        position: static;
        width: 100%;
        height: 34px;
        clip-path: none;
        justify-content: center;
        padding: 0;
        border-right: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }
    .event-ticker {
        padding-left: 0;
        justify-content: center;
        text-align: center;
        height: 30px;
    }
}

/* Shop Layout Centered Grid for Desktop */
@media (min-width: 1040px) {
    .shop-grid {
        display: grid !important;
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 25px !important;
    }
    .shop-card {
        max-width: none !important;
        width: 100% !important;
    }
}

/* ==========================================================================
   HIGH-FIDELITY PARALLAX BACKGROUND INTEGRATION
   ========================================================================== */
.servers-section,
.events-section,
.rules-section,
.donate-section {
    position: relative;
    padding: 7rem 0;
    overflow: hidden;
}

/* Ensure content stays within constraints */
.servers-section > *,
.events-section > *,
.rules-section > *,
.donate-section > * {
    max-width: var(--max-width);
    margin-left: auto;
    margin-right: auto;
    width: calc(100% - 5rem);
    position: relative;
    z-index: 2;
}

.servers-section {
    background: 
        linear-gradient(to bottom, rgba(3, 3, 4, 1) 0%, rgba(10, 10, 12, 0.6) 20%, rgba(10, 10, 12, 0.6) 80%, rgba(3, 3, 4, 1) 100%),
        url("images/New images/2026-06-23_002025.png") center/cover fixed;
}

.events-section {
    background: 
        linear-gradient(to bottom, rgba(3, 3, 4, 1) 0%, rgba(10, 10, 12, 0.7) 20%, rgba(10, 10, 12, 0.7) 80%, rgba(3, 3, 4, 1) 100%),
        url("images/New images/2026-06-23_002207.png") center/cover fixed;
}

.rules-section {
    background: 
        linear-gradient(to bottom, rgba(3, 3, 4, 1) 0%, rgba(10, 10, 12, 0.75) 20%, rgba(10, 10, 12, 0.75) 80%, rgba(3, 3, 4, 1) 100%),
        url("images/New images/2026-06-23_004823.png") center/cover fixed;
}

.donate-section {
    background: 
        linear-gradient(to bottom, rgba(3, 3, 4, 1) 0%, rgba(10, 10, 12, 0.75) 20%, rgba(10, 10, 12, 0.75) 80%, rgba(3, 3, 4, 1) 100%),
        url("images/New images/2026-06-23_004959.png") center/cover fixed;
}
/* ── Live Feed Marquee Overrides ── */
.event-ticker {
    overflow: hidden !important;
    padding-right: 0 !important;
    position: relative !important;
}

.event-ticker-content {
    display: inline-block !important;
    white-space: nowrap !important;
    padding-left: 100% !important;
    animation: live-ticker-marquee 12s linear infinite !important;
    width: auto !important;
    flex-shrink: 0 !important;
}

@keyframes live-ticker-marquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-100%); }
}
