/* --- FRX MASTER STYLES - 2026 ELITE EDITION --- */

/* Custom Scrollbar for Chrome/Safari/Edge */
/* --- FRX MASTER STYLES - 2026 ELITE EDITION --- */

:root {
    --main-blue: #3b82f6;
    --neon-blue: #00f2ff;
    --dark-bg: #050505;
    --card-bg: rgba(255, 255, 255, 0.04);
    --border: rgba(255, 255, 255, 0.1);
    --glass: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.1);
    --active-glow: #00ff88;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.2); 
}

::-webkit-scrollbar-thumb {
    background: var(--neon-blue);
    border-radius: 10px;
    box-shadow: 0 0 10px var(--neon-blue);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--active-glow);
    box-shadow: 0 0 15px var(--active-glow);
}

/* Firefox support */
* {
    scrollbar-width: thin;
    scrollbar-color: var(--neon-blue) transparent;
    margin: 0; padding: 0; box-sizing: border-box;
}

body {
    background-color: var(--dark-bg);
    color: white;
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
}

/* Background Particle Canvas */
#particleCanvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1; /* Behind content */
    pointer-events: none;
}

h1, h2, h3, .brand { font-family: 'Orbitron', sans-serif; text-transform: uppercase; letter-spacing: 2px; }
nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap; /* This allows the menu to wrap to a new line if needed */
    padding: 20px 5%;
}



/* --- PRE-LOADER --- */
#loader {
    position: fixed;
    width: 100%;
    height: 100vh;
    background: #050505;
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.5s ease;
}

.loader-content { text-align: center; }
.dragon-symbol {
    font-size: 5rem;
    color: var(--main-blue);
    font-family: 'Orbitron';
    text-shadow: 0 0 30px var(--main-blue);
    animation: breathe 2s infinite ease-in-out;
}

.loader-bar {
    width: 200px;
    height: 2px;
    background: rgba(255, 255, 255, 0.1);
    margin: 20px auto;
    position: relative;
    overflow: hidden;
}

.loader-bar::after {
    content: '';
    position: absolute;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--main-blue);
    box-shadow: 0 0 10px var(--main-blue);
    animation: loading 1.5s infinite;
}

@keyframes breathe {
    0%, 100% { transform: scale(1); opacity: 0.8; }
    50% { transform: scale(1.1); opacity: 1; }
}

@keyframes loading {
    0% { left: -100%; }
    100% { left: 100%; }
}

.loader-hidden { opacity: 0; pointer-events: none; }

.btn-main {
    background: var(--main-blue);
    color: white;
    padding: 12px 30px;
    border-radius: 5px;
    text-decoration: none;
    font-family: 'Orbitron';
    font-size: 0.9rem;
    transition: 0.3s;
    display: inline-block;
}

.btn-outline {
    border: 1px solid var(--border);
    color: white;
    padding: 12px 30px;
    border-radius: 5px;
    text-decoration: none;
    font-family: 'Orbitron';
    font-size: 0.9rem;
    transition: 0.3s;
    display: inline-block;
    margin-left: 10px;
}

.btn-main:hover { background: #2563eb; transform: translateY(-3px); }
.btn-outline:hover { background: rgba(255,255,255,0.1); transform: translateY(-3px); }

.local-time {
    color: #fff;
    text-shadow: 0 0 5px rgba(0, 242, 255, 0.5);
    font-weight: bold;
}

/* --- UPDATED MODAL OVERLAY --- */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;       /* Use 100% to ensure it covers the width */
    height: 100vh;      /* Full viewport height */
    background: rgba(0, 0, 0, 0.95);
    z-index: 10000;
    
    /* THE MAGIC CENTER TOOLS */
    display: flex;
    justify-content: center; /* Horizontal Center */
    align-items: center;     /* Vertical Center */
    
    /* Hidden state */
    opacity: 0;
    visibility: hidden;
    transition: 0.4s ease;
    backdrop-filter: blur(10px);
}

/* 1. THE OVERLAY (The Background) */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.95);
    z-index: 100000; /* Extremely high to stay on top */
    
    /* Center using Flexbox - the most reliable way */
    display: flex;
    justify-content: center;
    align-items: center;
    
    /* Hidden state */
    opacity: 0;
    visibility: hidden;
    transition: 0.4s ease;
    backdrop-filter: blur(10px);
}

/* 2. THE BOX (The Popup) */
.modal-box {
    background: #0a0c10;
    border: 1px solid #ff9900;
    width: 90%;
    max-width: 400px;
    padding: 35px;
    text-align: center;
    position: relative;
    box-shadow: 0 0 50px rgba(255, 153, 0, 0.3);
    
    /* THE DROP ANIMATION */
    /* Start 50px higher than the center */
    transform: translateY(-50px); 
    transition: 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* 3. THE ACTIVE STATE (When JS adds .active) */
.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-overlay.active .modal-box {
    /* Moves to dead center */
    transform: translateY(0); 
}

/* 4. THE CLOSE BUTTON */
.modal-close {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 1.8rem;
    color: #555;
    cursor: pointer;
}

/* Specific centering for the Pending Modal */
#pending-modal {
    display: none; /* Default hidden */
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    background: rgba(0, 0, 0, 0.95) !important;
    z-index: 99999 !important;
    justify-content: center !important;
    align-items: center !important;
    opacity: 0;
    visibility: hidden;
    transition: 0.4s ease;
}

#pending-modal.active {
    display: flex !important; /* Forces it to show and center */
    opacity: 1 !important;
    visibility: visible !important;
}

#pending-modal .modal-box {
    position: relative !important;
    top: auto !important;
    left: auto !important;
    transform: translateY(-30px) !important; /* Drop effect start */
    margin: 0 !important;
}

#pending-modal.active .modal-box {
    transform: translateY(0) !important; /* Drop effect end */
}

/* ABOUT SECTION STYLES */
.protocol-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(0, 242, 255, 0.1);
    padding: 30px;
    border-radius: 4px;
    position: relative;
}

.protocol-card h3 {
    font-family: 'Orbitron';
    font-size: 1.1rem;
    color: #fff;
    margin-bottom: 5px;
}

.card-subtitle {
    font-size: 0.6rem;
    color: var(--neon-blue);
    letter-spacing: 2px;
    margin-bottom: 20px;
}

.leader-list {
    list-style: none;
    padding: 0;
}

.leader-list li {
    padding: 10px 0;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    font-size: 0.9rem;
}

.leader-list .rank {
    color: var(--neon-blue);
    font-weight: bold;
    margin-right: 10px;
}

.leader-list .vacant {
    opacity: 0.5;
    color: #ff4d4d;
}

.schedule-grid .sched-item {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.values-flex {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-top: 20px;
}

.value-box {
    text-align: center;
    padding: 15px;
    background: rgba(0, 242, 255, 0.05);
    border-radius: 5px;
}

.value-box strong {
    display: block;
    color: var(--neon-blue);
    font-size: 0.7rem;
    margin-bottom: 5px;
}

.value-box p {
    font-size: 0.7rem;
    margin: 0;
    opacity: 0.7;
}

.alliance-bar {
    margin-top: 50px;
    text-align: center;
    padding: 20px;
    border-top: 1px solid rgba(255,255,255,0.1);
    font-family: 'Orbitron';
    font-size: 0.85rem;
}

/* RESPONSIVE */
@media (max-width: 768px) {
    .system-grid { grid-template-columns: 1fr; }
    .values-flex { grid-template-columns: 1fr 1fr; }
}

/* --- NAVIGATION --- */

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 5%;
    background: rgba(0,0,0,0.95);
    backdrop-filter: blur(10px);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid var(--border);
}

.brand { font-weight: 900; color: #fff; font-size: 1.2rem; }
.brand span { color: var(--main-blue); }

.nav-links { display: flex; list-style: none; }
.nav-links a { 
    color: #888; 
    text-decoration: none; 
    margin-left: 20px; 
    font-size: 13px; 
    font-weight: bold; 
    transition: 0.3s; 
}

.nav-links a:hover, .nav-links a.active { color: var(--main-blue); }

.hamburger { display: none; cursor: pointer; flex-direction: column; gap: 5px; }
.hamburger span { width: 25px; height: 3px; background: white; border-radius: 5px; }

.game-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
}

.gallery-card {
    position: relative;
    height: 220px;
    background: #0a0a0a;
    border: 1px solid rgba(255, 255, 255, 0.1);
    clip-path: polygon(0 0, 95% 0, 100% 15%, 100% 100%, 5% 100%, 0 85%); /* Tactical notched corners */
    cursor: pointer;
    transition: 0.3s;
    overflow: hidden;
}

.gallery-card img, .gallery-card video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(1) brightness(0.5); /* Desaturated look */
    transition: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.gallery-card:hover {
    border-color: var(--neon-blue);
    transform: translateY(-5px);
    box-shadow: 0 0 20px rgba(0, 242, 255, 0.1);
}

.gallery-card:hover img, .gallery-card:hover video {
    filter: grayscale(0) brightness(1); /* "Decrypts" on hover */
    transform: scale(1.05);
}

/* The "Scanning Line" Effect */
.gallery-card::after {
    content: '';
    position: absolute;
    top: -100%;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(transparent, rgba(0, 242, 255, 0.1), transparent);
    animation: scan 4s infinite linear;
    pointer-events: none;
}

@keyframes scan {
    0% { top: -100%; }
    100% { top: 100%; }
}

.card-tag {
    position: absolute;
    top: 15px;
    left: 15px;
    background: rgba(0,0,0,0.8);
    color: var(--neon-blue);
    font-size: 0.5rem;
    font-weight: 800;
    padding: 3px 8px;
    border: 1px solid var(--neon-blue);
    text-transform: uppercase;
    font-family: 'Orbitron';
}

/* Responsive Masonry */
@media (max-width: 900px) { .gallery-container { column-count: 2; } }
@media (max-width: 600px) { .gallery-container { column-count: 1; } }



/* Push section content down so it doesn't hide behind ticker */
body { padding-top: 35px; }


/* Status Dots */
.status-dot {
    display: inline-block;
    width: 8px; height: 8px;
    border-radius: 50%;
    margin-right: 5px;
}
.status-dot.online { background: #25d366; box-shadow: 0 0 10px #25d366; }
.status-dot.in-game { background: #f1c40f; box-shadow: 0 0 10px #f1c40f; }
.status-dot.offline { background: #555; }

/* --- RECRUITMENT BADGE --- */
.recruit-container {
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
}

.recruit-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    border-radius: 50px;
    font-size: 0.6rem;
    font-weight: 800;
    letter-spacing: 1px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(0, 0, 0, 0.3);
}
.recruit-badge.open { color: #25d366; border-color: rgba(37, 211, 102, 0.3); }

.badge-dot { width: 5px; height: 5px; border-radius: 50%; background: currentColor; }
.pulse { animation: badge-pulse 1.5s infinite; }

@keyframes badge-pulse {
    0% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.3); opacity: 0.5; }
    100% { transform: scale(1); opacity: 1; }
}

.badge-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: currentColor;
}

.badge-dot.pulse {
    animation: badge-pulse 1.5s infinite;
}

/* --- SHARED BADGE STYLES --- */
.recruit-badge, .reg-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 8px 16px;
    border-radius: 50px;
    font-size: 0.65rem;
    font-weight: 800;
    letter-spacing: 2px;
    text-transform: uppercase;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.02);
    margin: 5px;
}

.open { color: #25d366; border-color: rgba(37, 211, 102, 0.3); }

.badge-dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.pulse { animation: badge-pulse 1.5s infinite; }

@keyframes badge-pulse {
    0% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.3); opacity: 0.5; }
    100% { transform: scale(1); opacity: 1; }
}

@keyframes badge-pulse {
    0% { transform: scale(1); opacity: 1; box-shadow: 0 0 0 0px rgba(37, 211, 102, 0.4); }
    70% { transform: scale(1.2); opacity: 0.5; box-shadow: 0 0 0 10px rgba(37, 211, 102, 0); }
    100% { transform: scale(1); opacity: 1; }
}

/* --- MINI NAV-SIDE NOTIFICATION --- */
.modal-overlay {
    position: fixed; 
    top: 100px; /* Positioned just below the nav bar */
    right: -400px; /* Hidden off-screen */
    width: 320px;
    z-index: 3000;
    transition: 0.7s cubic-bezier(0.19, 1, 0.22, 1);
}

.modal-overlay.active { 
    right: 20px; /* Slides in from the right */
}

.modal-box {
    background: rgba(10, 12, 16, 0.85); /* Transparent dark */
    border: 1px solid rgba(0, 242, 255, 0.3);
    border-radius: 15px; /* Added radius as requested */
    padding: 20px;
    backdrop-filter: blur(15px); /* Frosty glass effect */
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    display: flex;
    flex-direction: column;
}

.modal-close {
    position: absolute; top: 12px; right: 15px; 
    color: #666; font-size: 1rem; cursor: pointer;
}

.modal-header { 
    display: flex; 
    align-items: center; 
    gap: 8px; 
    margin-bottom: 10px; 
    border-bottom: 1px solid rgba(255,255,255,0.05);
    padding-bottom: 8px;
}

.modal-header h3 { 
    font-size: 0.6rem; 
    letter-spacing: 2px; 
    color: var(--neon-blue); 
    font-weight: 800; 
}

.modal-body h2 { 
    font-family: 'Orbitron', sans-serif; 
    font-size: 0.9rem; 
    margin-bottom: 5px; 
    color: #fff; 
}

.modal-body p { 
    color: #bbb; 
    line-height: 1.4; 
    font-size: 0.75rem; 
    margin-bottom: 12px; 
}

.modal-footer .btn {
    padding: 8px 15px;
    font-size: 0.55rem;
    border-radius: 8px; /* Matching the box radius */
}

/* Mobile Tweak */
@media (max-width: 480px) {
    .modal-overlay { width: 280px; top: 80px; }
}
/* --- HERO SECTION --- */
.hero { 
    min-height: 100vh; 
    display: flex; 
    flex-direction: column; 
    justify-content: center; 
    align-items: center; 
    text-align: center; 
}

.hero h1 { font-size: 3.5rem; line-height: 1.1; margin-bottom: 20px; font-style: italic; }
.hero p { color: #888; max-width: 600px; margin-bottom: 40px; font-size: 1.1rem; }

/* --- SECTION TITLES --- */
.section-title { 
    font-size: 1.5rem; 
    margin-bottom: 40px; 
    border-left: 5px solid var(--neon-blue); 
    padding-left: 20px; 
    padding-top: 10px;
    color: var(--neon-blue);
}

/* --- LEADERSHIP SECTION --- */


/* --- SEARCH & LIST --- */
.search-container { max-width: 500px; margin: 0 auto 30px; position: relative; }

.rank-search {
    width: 100%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border);
    padding: 12px 20px;
    border-radius: 30px;
    color: white;
    font-family: 'Inter', sans-serif;
    outline: none;
    transition: 0.3s;
    text-align: center;
}

.rank-search:focus {
    border-color: var(--main-blue);
    box-shadow: 0 0 15px rgba(0, 242, 255, 0.2);
    background: rgba(255, 255, 255, 0.08);
}

.rank-grid { display: flex; flex-direction: column; gap: 10px; }

.list-row {
    display: grid;
    grid-template-columns: 40px 50px 1fr 100px;
    align-items: center;
    background: var(--glass);
    border: 1px solid var(--glass-border);
    padding: 10px 15px;
    border-radius: 8px;
    transition: 0.3s;
}

.list-row:hover { border-color: var(--main-blue); transform: translateX(5px); }

.list-rank { font-family: 'Orbitron'; font-weight: bold; color: var(--main-blue); font-size: 0.8rem; }
.list-img { width: 35px; height: 35px; border-radius: 5px; object-fit: cover; }
.list-name { font-family: 'Inter'; font-weight: 700; font-size: 0.9rem; }
.list-stats { text-align: right; }
.list-points { display: block; font-family: 'Orbitron'; font-size: 0.8rem; color: #fff; }
.list-tier { display: block; font-size: 9px; color: #666; text-transform: uppercase; }


/* --- CLAN TOGGLE --- */
.clan-toggle { display: flex; justify-content: center; gap: 10px; margin-bottom: 30px; }
.toggle-btn {
    background: transparent;
    border: 1px solid var(--border);
    color: #666;
    padding: 8px 20px;
    cursor: pointer;
    font-family: 'Orbitron';
    font-size: 10px;
    transition: 0.3s;
}
.toggle-btn.active { background: var(--main-blue); color: white; border-color: var(--main-blue); }

/* --- JOIN PAGE STYLES --- */
.leadership-promo {
    background: linear-gradient(rgba(0,0,0,0.85), rgba(0,0,0,0.85)), url('images/leadership-bg.jpg');
    background-size: cover;
    padding: 50px;
    border-radius: 15px;
    border: 1px solid var(--main-blue);
    text-align: center;
    margin-bottom: 40px;
}

.tryout-briefing {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 40px;
}

.tryout-content-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 40px;
    margin-top: 25px;
}

.briefing-list {
    list-style: none;
    padding: 0;
}

.briefing-list li {
    padding: 12px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    font-size: 14px;
    color: #ccc;
}

.stat-tag {
    background: rgba(0, 242, 255, 0.1);
    color: var(--main-blue);
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: bold;
    border: 1px solid rgba(0, 242, 255, 0.3);
    margin-left: 5px;
}

.warning-text {
    color: #ff4444;
    font-size: 11px;
    margin-top: 15px;
    font-style: italic;
}

.banned-tags span {
    display: inline-block;
    background: rgba(255, 0, 80, 0.1);
    color: #ff0050;
    padding: 5px 12px;
    border-radius: 5px;
    font-size: 10px;
    font-weight: bold;
    margin-right: 8px;
    border: 1px solid rgba(255, 0, 80, 0.2);
}

.inactivity-bar {
    background: rgba(255, 0, 80, 0.05);
    border: 1px solid rgba(255, 0, 80, 0.2);
    padding: 15px;
    border-radius: 10px;
    margin-top: 30px;
    text-align: center;
    color: #ff0050;
    font-size: 12px;
    font-family: 'Orbitron';
}

/* --- MOBILE TWEAKS --- */
@media screen and (max-width: 768px) {
    .join-page-content { padding: 100px 5% 40px; }
    .tryout-box { padding: 30px 15px; }
    .tryout-content-grid, .requirements-grid { grid-template-columns: 1fr; }
    .bottom-grid { grid-template-columns: 1fr !important; }
}

.b-tag {
    display: inline-block;
    background: rgba(255, 0, 80, 0.1);
    color: #ff0050;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: bold;
    margin-right: 5px;
    border: 1px solid rgba(255, 0, 80, 0.2);
}

.leadership-promo {
    background: rgba(255, 255, 255, 0.02);
    padding: 40px;
    border-radius: 15px;
    border: 1px solid var(--main-blue);
    text-align: center;
}

/* --- ROUNDED BUTTONS --- */
.toggle-btn.rounded {
    border-radius: 50px;
    padding: 10px 30px;
    border: 1px solid var(--main-blue);
}
.toggle-btn.rounded.active { background: var(--main-blue); color: white; border-color: var(--main-blue); }

/* --- CLICKABLE LIST ROWS --- */
.clickable { cursor: pointer; transition: 0.2s; }
.clickable:hover { background: rgba(59, 130, 246, 0.1); transform: scale(1.02); }

/* --- TACTICAL POPUP OVERHAUL --- */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(10px);
    justify-content: center;
    align-items: center;
    animation: fadeIn 0.3s ease;
}

.modal-content {
    background: linear-gradient(180deg, #0a0a0a 0%, #050505 100%);
    width: 90%;
    max-width: 600px;
    max-height: 85vh;
    border: 1px solid rgba(0, 242, 255, 0.2);
    border-radius: 15px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 0 40px rgba(0, 0, 0, 0.8), 0 0 20px rgba(0, 242, 255, 0.1);
}

/* Header for the popup */
.modal-header-bar {
    background: rgba(255, 255, 255, 0.03);
    padding: 20px;
    border-bottom: 1px solid rgba(0, 242, 255, 0.2);
    text-align: center;
}

/* Image container with custom scrollbar */
.modal-body-scroll {
    padding: 5px;
    overflow-y: auto;
    max-height: 60vh;
}

.modal-body-scroll::-webkit-scrollbar {
    width: 5px;
}
.modal-body-scroll::-webkit-scrollbar-thumb {
    background: var(--neon-blue);
    border-radius: 10px;
}

.proof-img {
    width: 100%;
    border-radius: 8px;
    margin-bottom: 15px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: transform 0.3s ease;
}

.proof-img:hover {
    transform: scale(1.02);
    border-color: var(--neon-blue);
}

/* Close Button */
.modal-footer {
    padding: 15px;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

@keyframes fadeIn {
    from { opacity: 0; transform: scale(0.95); }
    to { opacity: 1; transform: scale(1); }
}

/* --- LANDSCAPE MODAL BOX --- */
.modal-content-landscape {
    background-color: #0a0a0a;
    background-size: cover;
    background-position: center;
    border: 1px solid var(--main-blue);
    padding: 40px;
    border-radius: 15px;
    width: 90%;
    max-width: 600px;
    min-height: 250px;
    position: relative;
    box-shadow: 0 0 50px rgba(0,0,0,0.8);
    display: flex;
    align-items: center;
}

.landscape-profile-content { width: 100%; z-index: 2; }
.profile-main-info { display: flex; align-items: center; gap: 20px; margin-bottom: 25px; }
.profile-avatar-square { width: 80px; height: 80px; border-radius: 10px; border: 2px solid var(--main-blue); object-fit: cover; }
.profile-stats-landscape { display: flex; gap: 30px; margin-bottom: 30px; }
.stat-box p { font-size: 10px; font-family: 'Orbitron'; color: #888; margin-bottom: 5px; }
.stat-box span { font-size: 1.2rem; font-weight: bold; color: #fff; }

.btn-main-small {
    background: var(--main-blue);
    color: white;
    border: none;
    padding: 8px 20px;
    font-family: 'Orbitron';
    font-size: 10px;
    cursor: pointer;
    border-radius: 5px;
    transition: 0.3s;
}
.btn-main-small:hover { background: white; color: var(--main-blue); }

/* --- CONTACT SECTION --- */
.contact-card {
    background: var(--glass);
    padding: 40px;
    border-radius: 15px;
    border: 1px solid var(--glass-border);
    text-align: center;
    transition: 0.3s;
}
.contact-card:hover { transform: translateY(-10px); border-color: var(--main-blue); }
.contact-icon { font-size: 3rem; margin-bottom: 20px; }
.contact-card h3 { margin-bottom: 10px; font-size: 1.2rem; }
.contact-card p { color: #888; font-size: 14px; margin-bottom: 25px; min-height: 40px; }

.contact-btn {
    display: block;
    padding: 12px;
    border-radius: 5px;
    text-decoration: none;
    color: white;
    font-family: 'Orbitron';
    font-size: 11px;
    transition: 0.3s;
}
.discord-bg { background: #5865F2; }
.whatsapp-bg { background: #25d366; }
.tiktok-bg { background: #ff0050; }
.contact-btn:hover { filter: brightness(1.2); box-shadow: 0 5px 15px rgba(0,0,0,0.3); }

/* --- FOOTER & WHATSAPP --- */
footer {
    padding: 40px 5% 20px;
    text-align: center;
    margin-top: 50px;
}



:root {
    /* Neon Colors from your rank system */
    --neon-blue: #00f2ff;
    --ui-panel: rgba(10, 12, 15, 0.95);
    --ui-border: rgba(255, 255, 255, 0.08);
}

/* Scrollable Container */
#leader-grid {
    display: grid;
    gap: 15px;
    padding: 15px;
    width: 100%;
    max-width: 1300px;
    margin: 0 auto;
    /* Boxed Scrolling */
    max-height: 85vh; 
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: var(--neon-blue) transparent;
}

/* Custom Scrollbar Styling */
#leader-grid::-webkit-scrollbar { width: 4px; }
#leader-grid::-webkit-scrollbar-thumb { background: var(--neon-blue); border-radius: 10px; }

/* The Base Card */
.dossier-card {
    background: var(--ui-panel);
    border: 1px solid var(--ui-border);
    border-left: 4px solid var(--accent);
    padding: 15px;
    cursor: pointer;
    transition: 0.3s cubic-bezier(0.2, 1, 0.2, 1);
    position: relative;
    clip-path: polygon(0 0, 100% 0, 100% 88%, 92% 100%, 0 100%);
}

.dossier-card:hover, .dossier-card.active {
    background: rgba(20, 25, 30, 1);
    border-color: var(--accent);
    box-shadow: 0 10px 30px rgba(0,0,0,0.6), 0 0 15px var(--accent);
    transform: translateY(-3px);
}

/* Portrait & Rank Badge */
.pfp-wrap {
    position: relative;
    flex-shrink: 0;
}

.pfp-wrap img {
    border-radius: 50%; /* CIRCLE PROFILE */
    border: 2px solid var(--accent);
    object-fit: cover;
    display: block;
}

.rank-tag {
    position: absolute;
    bottom: 0; right: 0;
    background: var(--accent);
    color: #000;
    font-family: 'Orbitron', sans-serif;
    font-weight: 900;
    font-size: 0.5rem;
    padding: 2px 6px;
    border-radius: 2px;
}

/* Identity Text */
.user-name {
    font-family: 'Orbitron', sans-serif;
    color: #fff;
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.user-role {
    color: var(--accent);
    font-weight: 800;
    text-transform: uppercase;
    font-size: 0.55rem;
    letter-spacing: 1px;
}

/* ----------------------------------
   MOBILE: 2-GRID LANDSCAPE
---------------------------------- */
@media (max-width: 768px) {
    #leader-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
    .card-layout {
        display: flex;
        align-items: center;
        gap: 12px;
    }
    .pfp-wrap { width: 60px; height: 60px; }
    .user-name { font-size: 0.8rem; }
    .user-role { font-size: 0.45rem; }
}

/* ----------------------------------
   PC: 4-GRID FULL VIEW
---------------------------------- */
@media (min-width: 769px) {
    #leader-grid {
        grid-template-columns: repeat(4, 1fr) !important;
        max-height: none; /* Full view on desktop */
        overflow: visible;
    }
    .card-layout {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    .pfp-wrap {
        width: 110px;
        height: 110px;
        margin-bottom: 15px;
    }
    .user-name { font-size: 1.1rem; }
    .user-role { font-size: 0.65rem; }
}

/* Interactive Expansion */
.data-reveal {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: 0.4s ease;
}

.dossier-card.active .data-reveal {
    max-height: 250px;
    opacity: 1;
    margin-top: 15px;
}

.ui-divider {
    height: 1px;
    background: linear-gradient(90deg, var(--accent), transparent);
    margin-bottom: 12px;
}

.user-bio { font-size: 0.65rem; color: #999; line-height: 1.5; }

.footer-stats {
    display: flex;
    justify-content: space-between;
    font-family: 'Orbitron';
    font-size: 0.5rem;
    margin-top: 12px;
    color: #444;
}

/* Title Styles */
.cmd-header { text-align: center; margin-bottom: 30px; }
.cmd-title { font-family: 'Orbitron'; color: #fff; letter-spacing: 5px; font-size: 2rem; }
.cmd-subtitle { font-family: 'Orbitron'; color: var(--neon-blue); font-size: 0.6rem; letter-spacing: 3px; }

/* --- RESPONSIVE QUERIES --- */
@media screen and (max-width: 768px) {
    .nav-links {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 60px; right: 0;
        background: rgba(0,0,0,0.95);
        width: 100%; text-align: center;
        padding: 20px 0; border-bottom: 1px solid var(--border);
    }
    .nav-links.active { display: flex; }
    .nav-links a { margin: 15px 0; font-size: 18px; }
    .hamburger { display: flex; }
    .hero h1 { font-size: 2.5rem; }
    .leader-card { padding: 20px 10px; }
}

@media (max-width: 480px) {
    .floating-whatsapp { width: 50px; height: 50px; font-size: 25px; bottom: 15px; right: 15px; }
    .hero h1 { font-size: 2rem; }
    .list-row { grid-template-columns: 30px 40px 1fr 80px; padding: 10px 5px; }
}
/* --- RESPONSIVE SYSTEM BOOT --- */

/* For Tablets and Phones (Screens smaller than 992px) */
@media (max-width: 992px) {
    #about .system-grid {
        grid-template-columns: 1fr; /* Stack leadership and schedule */
    }
}

/* For Phones (Screens smaller than 768px) */
@media (max-width: 768px) {
    /* Adjust Main Title */
    h1 {
        font-size: 1.8rem !important;
        letter-spacing: 3px !important;
    }

    blockquote {
        font-size: 0.9rem !important;
    }

    /* Fix the Intel Grid */
    .game-grid {
        grid-template-columns: 1fr; /* Single column for clips */
        gap: 15px;
    }

    .gallery-card {
        height: 200px; /* Slimmer height for mobile screens */
    }

    /* Fix the Core Values Boxes */
    .values-flex {
        grid-template-columns: 1fr 1fr; /* 2x2 grid instead of 4 in a row */
        gap: 10px;
    }

    /* Move the Discord Toggle higher so it doesn't block buttons */
    .chat-trigger {
        width: 50px;
        height: 50px;
        bottom: 20px;
        right: 20px;
    }

    .comms-panel {
        width: 90%; /* Take up most of the screen on mobile */
        right: -100%; 
        bottom: 80px;
    }
    
    .comms-panel.active {
        right: 5%;
    }
}

/* --- MASTER RESPONSIVE PROTOCOL --- */
@media (max-width: 1024px) {
    .system-grid { grid-template-columns: 1fr !important; } /* Stacks High Table & Schedule */
    .protocol-card { grid-column: span 1 !important; }
}


    /* Navigation Fix */
@media (max-width: 768px) {
    .hamburger { display: flex; }

    .nav-links {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: flex-start;
        position: fixed;
        top: 0;
        right: 0; /* Stay on the right */
        width: 50%; /* Only half screen */
        height: 100vh;
        background: rgba(5, 7, 10, 0.98);
        border-left: 1px solid var(--neon-blue);
        padding-left: 30px;
        gap: 25px;
        z-index: 1001;
        
        /* --- THE FIX --- */
        opacity: 0; 
        pointer-events: none; /* Makes it unclickable when closed */
        transform: translateX(100%); /* Moves it fully off-screen */
        transition: all 0.4s cubic-bezier(0.77, 0, 0.175, 1);
    }

    /* When Folder is Tapped */
    .nav-links.active {
        opacity: 1;
        pointer-events: auto; /* Becomes clickable */
        transform: translateX(0); /* Slides in */
    }

    .nav-links a {
        opacity: 0;
        transform: translateY(20px); /* Slide UP effect for more style */
        text-decoration: none;
        color: #fff;
        font-family: 'Orbitron';
        font-size: 0.85rem;
        text-transform: uppercase;
        letter-spacing: 2px;
        transition: all 0.4s ease;
    }

    /* Trigger the staggered animation */
    .nav-links.active a {
        opacity: 1;
        transform: translateY(0);
    }

    /* Staggered Delays */
    .nav-links.active a:nth-child(1) { transition-delay: 0.15s; }
    .nav-links.active a:nth-child(2) { transition-delay: 0.25s; }
    .nav-links.active a:nth-child(3) { transition-delay: 0.35s; }
    .nav-links.active a:nth-child(4) { transition-delay: 0.45s; }
    .nav-links.active a:nth-child(5) { transition-delay: 0.55s; }
    .nav-links.active a:nth-child(6) { transition-delay: 0.65s; }

        /* Hero Text Scaling */
    .hero h1 { font-size: 2.8rem !important; }
    .hero p { font-size: 0.9rem; padding: 0 10px; }
    .btn-group { flex-direction: column; width: 100%; align-items: center; }
    .btn { width: 90%; text-align: center; }

    /* Grids & Cards */
    .news-grid, .stat-grid, .game-grid { 
        grid-template-columns: 1fr !important; 
        padding: 0 10px;
    }
    
    /* Core Values Fix: 2x2 grid on mobile instead of stacking long icons */
    .values-flex { 
        display: grid !important;
        grid-template-columns: 1fr 1fr !important; 
        gap: 10px; 
    }
    
    /* Table Fix: Adds horizontal scroll so it doesn't break the screen */
    .table-container {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        margin: 0 -5%; /* Pulls table to edges for better view */
    }
    table { min-width: 600px; } /* Ensures table content stays readable */

    /* Modal Fix */
    .modal-box { width: 95%; padding: 25px; }
    
    /* Gallery Fix */
    .gallery-card { height: 220px; }
}



@media (max-width: 480px) {
    .hero h1 { font-size: 2.2rem !important; }
    .values-flex { grid-template-columns: 1fr !important; } /* Stacks values on very small phones */
    .stat-card h3 { font-size: 1.8rem; }
}

/* For Very Small Phones (smaller than 480px) */
@media (max-width: 480px) {
    .values-flex {
        grid-template-columns: 1fr; /* Stack everything */
    }
    
    .about-header {
        margin-bottom: 40px;
    }
}

#loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: #0a0c10;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    transition: opacity 0.5s, visibility 0.5s;
}

.loader-hidden {
    opacity: 0;
    visibility: hidden;
}

/* Security Alert Shake */
.shake-error {
    animation: shake 0.4s cubic-bezier(.36,.07,.19,.97) both;
    border-color: #ff0050 !important; /* Turns the border red during shake */
    box-shadow: 0 0 20px rgba(255, 0, 80, 0.2);
}

@keyframes shake {
    10%, 90% { transform: translate3d(-1px, 0, 0); }
    20%, 80% { transform: translate3d(2px, 0, 0); }
    30%, 50%, 70% { transform: translate3d(-4px, 0, 0); }
    40%, 60% { transform: translate3d(4px, 0, 0); }
}
