@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600&display=swap');

/* ================= VARIABLES ================= */
:root {
    --primary-color: #d30000;
    --primary-glow: rgba(211, 0, 0, 0.4);
    --bg-color: #050505;
    --card-bg: rgba(255, 255, 255, 0.05);
    --card-border: rgba(255, 255, 255, 0.1);
    --text-color: #e0e0e0;
    --text-muted: #aaaaaa;
    --transition-speed: 0.3s;
    --danger-color: #ff4444;
    --success-color: #4CAF50;
    --white: #ffffff;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--bg-color);
    background-image:
        radial-gradient(circle at 10% 20%, rgba(211, 0, 0, 0.05) 0%, transparent 20%),
        radial-gradient(circle at 90% 80%, rgba(211, 0, 0, 0.05) 0%, transparent 20%);
    color: var(--text-color);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
    /* Prevent horizontal scroll */
}

/* ================= NAVIGATION ================= */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 30px;
    background: rgba(0, 0, 0, 0.9);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    backdrop-filter: blur(15px);
    border-bottom: 2px solid var(--primary-color);
    height: 70px;
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.menu-btn {
    display: none;
    font-size: 1.8rem;
    color: white;
    cursor: pointer;
    transition: 0.3s;
    padding: 10px;
    margin-left: 5px;
    position: relative;
    z-index: 1100;
    /* Above nav links */
    display: flex;
    align-items: center;
    justify-content: center;
}

.menu-btn:hover {
    color: var(--primary-color);
    transform: scale(1.1);
}

.navbar .logo-link {
    display: flex;
    align-items: center;
}

.navbar .logo-img {
    height: 50px;
    /* Adjust based on navbar height */
    width: auto;
    transition: transform 0.3s;
}

.navbar .logo-img:hover {
    transform: scale(1.05);
    filter: drop-shadow(0 0 5px var(--primary-glow));
}

.nav-links {
    list-style: none;
    display: flex;
    gap: min(2vw, 25px);
    /* Responsive gap */
}

.nav-links a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.3s;
    white-space: nowrap;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--primary-color);
}

.btn-play {
    background: var(--primary-color);
    color: black;
    padding: 10px 25px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: bold;
    transition: transform 0.3s, box-shadow 0.3s;
}

.btn-play:hover {
    transform: scale(1.05);
    box-shadow: 0 0 15px var(--primary-glow);
}

/* ================= HOMEPAGE HERO ================= */
.homepage {
    /* Optional bg image */
    background-size: cover;
    background-position: center;
}

.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 0 20px;
    margin-top: 60px;
    /* Offset fixed nav */
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 20px;
    text-shadow: 0 0 30px rgba(0, 0, 0, 0.8);
}

.highlight-text {
    color: var(--primary-color);
    text-shadow: 0 0 20px var(--primary-glow);
}

.hero p {
    font-size: 1.2rem;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto 40px;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-bottom: 50px;
}

.btn {
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: transform 0.2s;
    border: none;
    cursor: pointer;
}

.btn:hover {
    transform: translateY(-3px);
}

.btn-primary {
    background: #5865F2;
    color: white;
}

.btn-secondary {
    background: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
}

/* STATS */
.server-stats {
    display: flex;
    gap: 40px;
    justify-content: center;
}

.stat-box {
    background: rgba(0, 0, 0, 0.6);
    padding: 20px;
    border-radius: 10px;
    min-width: 150px;
    border: 1px solid var(--card-border);
}

.stat-number {
    display: block;
    font-size: 2rem;
    font-weight: bold;
    color: white;
}

.stat-label {
    font-size: 0.8rem;
    color: var(--text-muted);
    letter-spacing: 1px;
}

/* ================= INFO SECTIONS ================= */
.info-section {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
    padding: 60px 20px;
    max-width: 1200px;
    margin: 0 auto;
}

/* ================= MUSIQUE SECTION ================= */
.music-section {
    padding: 40px 20px;
    background: rgba(0, 0, 0, 0.3);
    text-align: center;
}

.section-title {
    font-size: 2rem;
    margin-bottom: 30px;
    color: var(--primary-color);
    text-transform: uppercase;
    letter-spacing: 2px;
}

.music-container {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
    max-width: 1000px;
    margin: 0 auto;
}

.music-card {
    flex: 1;
    min-width: 300px;
    background: var(--card-bg);
    padding: 15px;
    border-radius: 10px;
    border: 1px solid var(--card-border);
    transition: transform 0.3s;
}

.music-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary-color);
}

.music-card h3 {
    margin-top: 15px;
    font-size: 1.1rem;
    color: white;
}

.music-card iframe {
    border-radius: 5px;
}

.info-card {
    background: var(--card-bg);
    padding: 40px;
    border-radius: 15px;
    text-align: center;
    flex: 1 1 45%;
    /* 2 per row */
    min-width: 300px;
    border: 1px solid var(--card-border);
    transition: transform 0.3s, border-color 0.3s;
}

.info-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary-color);
    background: rgba(255, 255, 255, 0.08);
}

.icon-large {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 25px;
}

.info-card h2 {
    font-size: 1.5rem;
    margin-bottom: 20px;
    color: white;
}

.info-card p {
    color: var(--text-muted);
    line-height: 1.6;
}

.highlight-card {
    flex-basis: 100%;
    /* Full width */
    background: linear-gradient(45deg, rgba(211, 0, 0, 0.1), rgba(0, 0, 0, 0.8));
    border: 1px solid var(--primary-color);
}

.badge-free {
    background: var(--primary-color);
    color: black;
    padding: 5px 15px;
    border-radius: 20px;
    font-weight: bold;
    font-size: 0.9rem;
    display: inline-block;
    margin-bottom: 15px;
    box-shadow: 0 0 10px var(--primary-glow);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(211, 0, 0, 0.7);
    }

    70% {
        box-shadow: 0 0 0 10px rgba(211, 0, 0, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(211, 0, 0, 0);
    }
}

/* ================= FORMS (LOGIN / APPLY) ================= */
.admin-login-body,
.apply-page {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 20px;
}

.login-container,
.apply-container {
    background: rgba(0, 0, 0, 0.6);
    padding: 40px;
    border-radius: 15px;
    width: 100%;
    max-width: 600px;
    /* Wider for Application */
    border: 1px solid var(--card-border);
    backdrop-filter: blur(10px);
}

.apply-container {
    max-width: 800px;
    margin-top: 80px;
}

.form-group {
    margin-bottom: 20px;
}

.form-row {
    display: flex;
    gap: 20px;
}

.form-group.half {
    flex: 1;
}

label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--primary-color);
}

input,
textarea,
select {
    width: 100%;
    padding: 12px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--card-border);
    border-radius: 8px;
    color: white;
    font-family: inherit;
}

input:focus,
textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

.submit-btn {
    width: 100%;
    padding: 15px;
    background: var(--primary-color);
    color: black;
    font-weight: bold;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    margin-top: 20px;
    font-size: 1rem;
    transition: background 0.3s;
}

.submit-btn:hover {
    background: #ffea00;
}

.alert {
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    text-align: center;
}

.alert.success {
    background: rgba(76, 175, 80, 0.2);
    border: 1px solid #4CAF50;
    color: #4CAF50;
}

.alert.error {
    background: rgba(244, 67, 54, 0.2);
    border: 1px solid #F44336;
    color: #F44336;
}

/* ================= ADMIN PANEL ================= */
.admin-dashboard {
    background: #0a0a0a;
}

.admin-header {
    background: #111;
    padding: 20px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #333;
}

.logout-btn {
    color: #ff4444;
    text-decoration: none;
    border: 1px solid #ff4444;
    padding: 8px 15px;
    border-radius: 5px;
}

.admin-container {
    padding: 40px;
    max-width: 1200px;
    margin: 0 auto;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    background: #111;
    border-radius: 10px;
    overflow: hidden;
    margin-top: 20px;
}

.admin-table th,
.admin-table td {
    padding: 15px;
    text-align: left;
    border-bottom: 1px solid #222;
}

.admin-table th {
    background: #1a1a1a;
    color: var(--primary-color);
}

.action-btn {
    padding: 5px 10px;
    border-radius: 5px;
    color: white;
    margin-right: 5px;
}

.action-btn.accept {
    background: #4CAF50;
}

.action-btn.reject {
    background: #F44336;
}

/* ================= REGLEMENT RULES STYLE (Keep for index.html) ================= */
.container {
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    /* Center it */
}

/* Update header for reglement page specifcally */
header {
    text-align: center;
    margin-bottom: 50px;
    margin-top: 40px;
}

.logo {
    width: 120px;
    height: auto;
    margin-bottom: 20px;
    border-radius: 15px;
    box-shadow: 0 0 30px var(--primary-glow);
}

h1 {
    font-size: 2.5rem;
    font-weight: 600;
    color: var(--primary-color);
    margin: 0;
    text-shadow: 0 0 20px var(--primary-glow);
}

/* ================= SEARCH BAR ================= */
.search-container {
    position: relative;
    width: 100%;
    max-width: 600px;
    margin: 0 auto 40px auto;
}

.search-icon {
    position: absolute;
    top: 50%;
    left: 20px;
    transform: translateY(-50%);
    color: var(--primary-color);
    font-size: 1.2rem;
    pointer-events: none;
}

#searchInput {
    width: 100%;
    padding: 15px 20px 15px 55px;
    /* Space for icon */
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--card-border);
    border-radius: 50px;
    color: white;
    font-size: 1rem;
    transition: all 0.3s;
}

#searchInput:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 15px var(--primary-glow);
    background: rgba(0, 0, 0, 0.5);
    outline: none;
}

/* Accordion Specifics (Re-adding critical styles) */
.accordion {
    width: 100%;
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    padding: 20px 25px;
    border-radius: 12px;
    color: white;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all var(--transition-speed);
    text-align: left;
    backdrop-filter: blur(5px);
    margin-bottom: 10px;
}

.accordion:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateY(-2px);
}

.accordion.active {
    background: rgba(211, 0, 0, 0.1);
    border-color: var(--primary-color);
}

.panel {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.4s ease;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 0 0 12px 12px;
    padding: 0 25px;
    opacity: 0;
}

.panel.open {
    opacity: 1;
    padding: 20px;
    margin-bottom: 20px;
    border: 1px solid var(--card-border);
    border-top: none;
}

/* Subtitles inside rules */
.subtitle {
    display: block;
    color: var(--primary-color);
    font-weight: 600;
    text-transform: uppercase;
    margin-top: 20px;
    border-bottom: 1px solid rgba(211, 0, 0, 0.2);
}

/* Table container styling from before */
.table-container {
    overflow-x: auto;
    margin: 20px 0;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

table {
    width: 100%;
    border-collapse: collapse;
    background: rgba(0, 0, 0, 0.4);
    min-width: 600px;
}

th,
td {
    padding: 15px;
    text-align: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

th {
    background: rgba(211, 0, 0, 0.1);
    color: var(--primary-color);
}

.sticky-col {
    position: sticky;
    left: 0;
    background: #0a0a0a;
    z-index: 1;
    border-right: 1px solid rgba(255, 255, 255, 0.1);
}

/* Utility */
.status-red {
    color: #ff4444;
    font-weight: bold;
}

.status-green {
    color: #4CAF50;
    font-weight: bold;
}

.status-en_attente {
    color: #d30000;
    font-weight: bold;
}

.status-acceptee {
    color: #4CAF50;
    font-weight: bold;
}

.status-refusee {
    color: #F44336;
    font-weight: bold;
}

.highlight {
    background-color: #d30000;
    color: white;
    font-weight: bold;
    padding: 0 4px;
    border-radius: 2px;
}

.update-date {
    color: var(--primary-color);
    font-weight: 600;
    font-size: 0.9em;
    margin: 5px 0;
}

/* Footer */
footer {
    text-align: center;
    padding: 40px;
    margin-top: auto;
    /* Push to bottom */
    color: var(--text-muted);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

/* Floating Buttons */
.floating-container {
    position: fixed;
    bottom: 30px;
    right: 30px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    z-index: 1000;
}

.float-btn {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    background: #222;
    font-size: 24px;
    cursor: pointer;
    border: 2px solid rgba(255, 255, 255, 0.1);
    transition: 0.3s;
}

.float-btn.discord {
    background: #5865F2;
}

.float-btn.top {
    background: var(--primary-color);
    color: black;
    opacity: 0;
    pointer-events: none;
    transform: translateY(20px);
}

.float-btn.top.show {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

.float-btn:hover {
    transform: scale(1.1);
}

/* Responsive */
/* ================= LSPD PAGE REVAMP ================= */
.lspd-page {
    background: #0f172a;
    /* Navy Dark Blue Background */
    color: #e2e8f0;
}

.lspd-header {
    position: relative;
    height: 450px;
    background: linear-gradient(rgba(15, 23, 42, 0.8), rgba(15, 23, 42, 0.95)),
        url('https://w.wallhaven.cc/full/qz/wallhaven-qzd7pl.jpg') no-repeat center center/cover;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    margin-bottom: 60px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.lspd-badge-img {
    width: 140px;
    margin-bottom: 25px;
    filter: drop-shadow(0 0 15px rgba(255, 215, 0, 0.4));
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-10px);
    }

    100% {
        transform: translateY(0px);
    }
}

.lspd-header h1 {
    font-family: 'Oswald', sans-serif;
    /* Stronger font if available, else classic */
    font-size: 3.5rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    background: linear-gradient(to right, #ffffff, #94a3b8);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 10px;
}

.lspd-header p {
    font-size: 1.4rem;
    font-weight: 300;
    color: #38bdf8;
    /* Light Blue */
    text-transform: uppercase;
    letter-spacing: 4px;
}

.lspd-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px 80px 20px;
}

.lspd-section {
    margin-bottom: 100px;
}

.lspd-section h2 {
    color: white;
    font-size: 2.2rem;
    padding-left: 20px;
    border-left: 5px solid #38bdf8;
    /* Blue accent */
    margin-bottom: 40px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* RANKS GRID - PRO STYLE */
.ranks-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 25px;
}

.rank-card {
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.6), rgba(15, 23, 42, 0.8));
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 30px 20px;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.rank-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.5);
    border-color: #38bdf8;
}

.rank-card.command .rank-icon {
    color: #fbbf24;
}

/* Gold */
.rank-card.high-command .rank-icon {
    color: #f87171;
}

/* Red */
.rank-card.supervisors .rank-icon {
    color: #a78bfa;
}

/* Purple */
.rank-card.officers .rank-icon {
    color: #38bdf8;
}

/* Blue */
.rank-card.cadets .rank-icon {
    color: #94a3b8;
}

/* Grey */

.rank-icon {
    font-size: 2.5rem;
    margin-bottom: 20px;
    background: rgba(255, 255, 255, 0.05);
    width: 70px;
    height: 70px;
    line-height: 70px;
    border-radius: 50%;
    margin: 0 auto 20px auto;
}

.rank-card h3 {
    margin-bottom: 20px;
    font-size: 1.1rem;
    color: white;
    font-weight: 700;
    letter-spacing: 1px;
}

.rank-card ul li {
    padding: 5px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    font-size: 0.9rem;
    color: #cbd5e1;
}

.rank-card ul li:last-child {
    border-bottom: none;
}

/* DIVISIONS - MODERN */
.division-card {
    background: rgba(30, 41, 59, 0.5);
    border: 1px solid rgba(56, 189, 248, 0.1);
    border-radius: 8px;
    padding: 25px;
    height: 100%;
    transition: 0.3s;
    position: relative;
    overflow: hidden;
}

.division-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: #38bdf8;
}

.division-card:hover {
    background: rgba(56, 189, 248, 0.1);
}

.division-card h3 {
    color: #e0f2fe;
    margin-bottom: 10px;
    font-family: 'Oswald', sans-serif;
    letter-spacing: 1px;
}

/* VEHICLE TABLE - CLEAN */
.vehicle-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    background: rgba(30, 41, 59, 0.4);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.2);
}

.vehicle-table th {
    background: #1e293b;
    color: #38bdf8;
    padding: 20px;
    text-align: left;
    font-weight: 600;
    letter-spacing: 1px;
    border-bottom: 2px solid #334155;
}

.vehicle-table td {
    padding: 15px 20px;
    border-bottom: 1px solid #334155;
    color: #cbd5e1;
}

.vehicle-table tr:hover td {
    background: rgba(56, 189, 248, 0.05);
}

/* BADGES */
.badge-rank {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
}

.badge-rank.cadet {
    background: #475569;
    color: white;
}

.badge-rank.officer {
    background: rgba(56, 189, 248, 0.2);
    color: #38bdf8;
    border: 1px solid rgba(56, 189, 248, 0.4);
}

.badge-rank.sergeant {
    background: rgba(251, 191, 36, 0.2);
    color: #fbbf24;
    border: 1px solid rgba(251, 191, 36, 0.4);
}

.badge-rank.high-command {
    background: rgba(248, 113, 113, 0.2);
    color: #f87171;
    border: 1px solid rgba(248, 113, 113, 0.4);
}

.badge-rank.swat {
    background: #0f172a;
    color: #94a3b8;
    border: 1px solid #94a3b8;
}

.badge-rank.traffic {
    background: rgba(251, 146, 60, 0.2);
    color: #fb923c;
    border: 1px solid rgba(251, 146, 60, 0.4);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .lspd-header h1 {
        font-size: 2rem;
    }

    .lspd-badge-img {
        width: 100px;
    }

    .vehicle-table {
        display: block;
        overflow-x: auto;
    }
}

/* ================= GALERIE PHOTOS ================= */
.gallery-header {
    text-align: center;
    margin-top: 100px;
    margin-bottom: 40px;
}

.gallery-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    /* Smaller, more tile-like */
    gap: 15px;
    padding: 0 40px 60px 40px;
    max-width: 1400px;
    margin: 0 auto;
}

.gallery-item {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    cursor: pointer;
    border: 1px solid var(--card-border);
    aspect-ratio: 1 / 1;
    /* Force Square */
    transition: transform 0.3s, border-color 0.3s;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-item:hover {
    transform: scale(1.02);
    border-color: var(--primary-color);
    z-index: 10;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-item .overlay {
    position: absolute;
    inset: 0;
    /* Full cover */
    background: rgba(0, 0, 0, 0.4);
    /* Slight dim always */
    opacity: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: bold;
    font-size: 1.2rem;
    color: white;
    transition: opacity 0.3s;
}

.gallery-item:hover .overlay {
    opacity: 1;
    background: rgba(0, 0, 0, 0.6);
}

.gallery-item .overlay i {
    margin-right: 8px;
    color: #5865F2;
}

/* LIGHTBOX (Zoom) */
.lightbox {
    display: none;
    position: fixed;
    z-index: 9999;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.95);
    justify-content: center;
    align-items: center;
    flex-direction: column;
    opacity: 0;
    transition: opacity 0.3s;
}

.lightbox.active {
    display: flex;
    opacity: 1;
}

.lightbox-img {
    max-width: 90%;
    max-height: 80vh;
    border-radius: 5px;
    box-shadow: 0 0 50px rgba(255, 215, 0, 0.2);
    border: 2px solid var(--primary-color);
    transform: scale(0.9);
    transition: transform 0.3s;
}

.lightbox.active .lightbox-img {
    transform: scale(1);
}

.lightbox-caption {
    color: white;
    margin-top: 15px;
    font-size: 1.5rem;
    font-weight: 600;
    letter-spacing: 1px;
}

.close-lightbox {
    position: absolute;
    top: 30px;
    right: 40px;
    color: white;
    font-size: 3rem;
    cursor: pointer;
    transition: 0.2s;
}

.close-lightbox:hover {
    color: var(--primary-color);
    transform: rotate(90deg);
}


/* JOIN SECTION */
.join-card {
    background: linear-gradient(90deg, #1e3a8a 0%, #0f172a 100%);
    border: 1px solid #38bdf8;
    border-radius: 15px;
    padding: 50px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 0 30px rgba(56, 189, 248, 0.15);
    flex-wrap: wrap;
    gap: 30px;
}

.join-content {
    flex: 1;
    min-width: 300px;
}

.join-card h2 {
    border-left: none !important;
    padding-left: 0 !important;
    font-size: 2rem !important;
    margin-bottom: 15px !important;
}

.join-card p {
    font-size: 1.1rem;
    color: #cbd5e1;
    line-height: 1.6;
}

.btn-discord-lspd {
    background: #5865F2;
    /* Discord Color */
    color: white;
    padding: 15px 30px;
    font-size: 1.2rem;
    font-weight: bold;
    border-radius: 8px;
    text-decoration: none;
    transition: 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 4px 15px rgba(88, 101, 242, 0.4);
}

.btn-discord-lspd:hover {
    background: #4752c4;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(88, 101, 242, 0.6);
}

/* STAFF FORM STYLES */
.staff-form {
    max-width: 800px;
    margin: 0 auto;
}

.form-section {
    background: #1e1e2d;
    padding: 30px;
    border-radius: 10px;
    margin-bottom: 30px;
    border: 1px solid #333;
}

.form-section h2 {
    color: var(--primary-color);
    margin-bottom: 20px;
    font-size: 1.5rem;
    border-bottom: 1px solid #444;
    padding-bottom: 10px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #ccc;
    font-weight: 500;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px;
    background: #0f0f15;
    border: 1px solid #444;
    border-radius: 5px;
    color: white;
    font-size: 1rem;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--primary-color);
    outline: none;
}

.dispo-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 15px;
    background: #15151e;
}

.dispo-table th,
.dispo-table td {
    padding: 12px;
    border: 1px solid #333;
    text-align: center;
    color: #ccc;
}

.dispo-table th {
    background: #252530;
    font-weight: bold;
    color: var(--primary-color);
}

.dispo-table tr:hover td {
    background: #2a2a35;
}

.msg-success {
    background: rgba(46, 204, 113, 0.2);
    border: 1px solid #2ecc71;
    color: #2ecc71;
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 30px;
    text-align: center;
    font-size: 1.2rem;
}

.msg-error {
    background: rgba(231, 76, 60, 0.2);
    border: 1px solid #e74c3c;
    color: #e74c3c;
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 30px;
    text-align: center;
    font-size: 1.2rem;
}

.quiz-section {
    border: 1px solid var(--primary-color);
    background: rgba(211, 0, 0, 0.05);
}

.quiz-item {
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 1px dashed #444;
}

.quiz-item p {
    font-weight: bold;
    color: #fff;
    margin-bottom: 10px;
}

.quiz-item select {
    width: 100%;
    padding: 10px;
    background: #111;
    color: white;
    border: 1px solid #555;
    border-radius: 5px;
}

.btn-submit {
    display: block;
    width: 100%;
    padding: 15px;
    background: var(--primary-color);
    color: white;
    font-size: 1.2rem;
    font-weight: bold;
    text-align: center;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: 0.3s;
    margin-top: 20px;
}

.btn-submit:hover {
    background: #a30000;
    transform: translateY(-3px);
}

@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.2rem;
    }

    .apply-container {
        margin-top: 20px;
        padding: 20px;
    }

    .form-row {
        flex-direction: column;
        gap: 0;
    }

    .navbar {
        flex-direction: column;
        gap: 15px;
    }

    .nav-links {
        flex-direction: column;
        gap: 10px;
    }
}

/* --- SECTION MOST WANTED (LSPD) --- */
.wanted-section {
    padding: 20px;
    background: #111;
    margin-bottom: 50px;
}

.wanted-grid {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
    margin-top: 30px;
}

.wanted-card {
    background: #1e1e2d;
    border: 2px solid #e74c3c;
    /* Rouge alerte */
    width: 250px;
    text-align: center;
    position: relative;
    box-shadow: 0 0 20px rgba(231, 76, 60, 0.2);
    transition: 0.3s;
}

.wanted-card:hover {
    transform: scale(1.05);
}

.wanted-img-container {
    width: 100%;
    height: 250px;
    background: #000;
    overflow: hidden;
    position: relative;
    border-bottom: 2px solid #e74c3c;
}

.wanted-img-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.8;
}

.wanted-stamp {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(-15deg);
    color: #e74c3c;
    border: 5px solid #e74c3c;
    padding: 10px 20px;
    font-size: 2rem;
    font-weight: 900;
    text-transform: uppercase;
    background: rgba(0, 0, 0, 0.5);
    letter-spacing: 5px;
}

.wanted-info {
    padding: 15px;
}

.wanted-name {
    color: #fff;
    font-size: 1.2rem;
    font-weight: bold;
    margin-bottom: 5px;
    text-transform: uppercase;
}

.wanted-crime {
    color: #aaa;
    font-size: 0.9rem;
    margin-bottom: 10px;
}

.wanted-reward {
    color: #ffd700;
    font-size: 1.3rem;
    font-weight: 900;
}

/* --- SECTION PROTOCOLES V2 (PREMIUM) --- */
.protocol-section {
    background: linear-gradient(135deg, #0b1021 0%, #151d38 100%);
    padding: 50px;
    margin-top: 50px;
    border-top: 4px solid #3498db;
    position: relative;
    overflow: hidden;
}

.protocol-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, #3498db, #ffd700, #3498db);
}

/* TABLEAU DES CODES */
.codes-dashboard {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    margin-top: 30px;
}

.code-panel {
    flex: 1;
    min-width: 300px;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(52, 152, 219, 0.3);
    border-radius: 10px;
    padding: 20px;
    backdrop-filter: blur(5px);
}

.code-panel h3 {
    color: #3498db;
    border-bottom: 2px solid #3498db;
    padding-bottom: 10px;
    margin-bottom: 15px;
    font-size: 1.2rem;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.code-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: 0.2s;
}

.code-row:hover {
    background: rgba(52, 152, 219, 0.1);
    padding-left: 15px;
}

.code-badge {
    background: #3498db;
    color: #fff;
    padding: 3px 8px;
    border-radius: 4px;
    font-weight: bold;
    font-family: monospace;
    font-size: 1rem;
    box-shadow: 0 0 10px rgba(52, 152, 219, 0.4);
}

.code-desc {
    color: #ccc;
    font-weight: 500;
    text-align: right;
}

/* INDICATIFS (ADAM / LINCOLN...) */
.units-grid {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.unit-card {
    background: #1e263d;
    border: 1px solid #444;
    border-radius: 8px;
    width: 140px;
    padding: 15px;
    text-align: center;
    transition: 0.3s;
    position: relative;
    overflow: hidden;
}

.unit-card:hover {
    transform: translateY(-5px);
    border-color: #ffd700;
    box-shadow: 0 5px 15px rgba(255, 215, 0, 0.2);
}

.unit-icon {
    font-size: 2.5rem;
    color: #aaa;
    margin-bottom: 10px;
    transition: 0.3s;
}

.unit-card:hover .unit-icon {
    color: #ffd700;
}

.unit-letter {
    font-size: 1.5rem;
    font-weight: 900;
    color: #fff;
    display: block;
    margin-bottom: 5px;
}

.unit-name {
    font-size: 0.8rem;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* MIRANDA STYLE */
.miranda-container {
    background: rgba(255, 215, 0, 0.05);
    border: 1px solid rgba(255, 215, 0, 0.3);
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    margin-bottom: 40px;
}

.miranda-text {
    font-family: 'Courier New', monospace;
    font-size: 1.1rem;
    color: #ffd700;
    line-height: 1.6;
}

/* ================= REFONTE CODES 10 & PROTOCOLES ================= */
.section-subtitle {
    color: #fff;
    font-size: 1.5rem;
    margin-bottom: 20px;
    border-bottom: 2px solid #3498db;
    padding-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* GRILLE CODES 10 */
/* TABLEAUX CODES 10 (Nouvelle Version) */
.codes-tables-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    justify-content: center;
    margin-bottom: 50px;
}

.codes-table {
    flex: 1;
    min-width: 320px;
    border-collapse: separate;
    border-spacing: 0;
    width: 100%;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: 0.95rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    border: 1px solid #444;
    border-radius: 8px;
    overflow: hidden;
}

.codes-table td {
    padding: 10px 15px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.2);
}

.codes-table tr:last-child td {
    border-bottom: none;
}

.codes-table .code {
    width: 70px;
    font-weight: 800;
    border-right: 1px solid rgba(0, 0, 0, 0.2);
    text-align: center;
    background: rgba(0, 0, 0, 0.15);
    font-family: 'Oswald', sans-serif;
    /* Si dispo, sinon fallback */
    letter-spacing: 1px;
}

.codes-table .desc {
    font-weight: 600;
}

/* Background Colors for TRs */
tr.bg-dark-blue {
    background-color: #004b87;
    color: white;
}

tr.bg-green {
    background-color: #27ae60;
    color: white;
}

tr.bg-red {
    background-color: #c0392b;
    color: white;
}

tr.bg-orange {
    background-color: #d30000;
    color: #fff;
}

tr.bg-light-blue {
    background-color: #3498db;
    color: #000;
}

.codes-table tr:hover {
    filter: brightness(1.1);
}

/* TABLEAUX INDICATIFS */
.ref-table-container {
    overflow-x: auto;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.ref-table {
    width: 100%;
    border-collapse: collapse;
    background: #002b5e;
    color: white;
    font-family: 'Segoe UI', sans-serif;
    border: 1px solid #000;
}

.ref-table th {
    background: #001f44;
    color: #fff;
    font-weight: bold;
    padding: 12px;
    text-align: center;
    border: 1px solid #446688;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.ref-table td {
    padding: 10px;
    text-align: center;
    border: 1px solid #446688;
    font-weight: 500;
}

.ref-table tr:nth-child(even) {
    background: rgba(255, 255, 255, 0.05);
    /* Légère alternance */
}

.ref-table tr:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* ================= MOBILE OPTIMIZATION ================= */
@media (max-width: 1200px) {
    .menu-btn {
        display: flex !important;
        pointer-events: auto !important;
        visibility: visible !important;
    }

    .nav-links {
        position: fixed;
        top: 70px;
        right: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background: rgba(5, 5, 5, 0.98);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 25px;
        transition: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        visibility: hidden;
        /* Hide when closed */
        backdrop-filter: blur(15px);
        box-shadow: -10px 0 30px rgba(0, 0, 0, 0.5);
        pointer-events: none;
        /* Disable interaction when closed */
    }

    .nav-links.active {
        right: 0;
        visibility: visible;
        pointer-events: auto;
    }

    .nav-links li {
        width: 100%;
        text-align: center;
    }

    .nav-links a {
        font-size: 1.4rem;
        display: block;
        padding: 15px;
        color: white;
    }

    .nav-right {
        gap: 10px;
        flex-shrink: 0;
        display: flex;
        align-items: center;
    }

    .btn-play {
        padding: 8px 12px;
        font-size: 0.8rem;
        white-space: nowrap;
    }
}

@media (max-width: 600px) {
    .navbar {
        padding: 10px 15px;
    }

    .logo-text {
        font-size: 1.2rem !important;
    }

    .logo-img {
        height: 40px !important;
    }

    .container {
        padding: 0 15px;
    }

    .panel {
        padding: 15px !important;
    }

    h1 {
        font-size: 1.8rem !important;
    }

    .table-container {
        margin: 10px 0;
        border-radius: 8px;
        overflow-x: auto;
    }

    th,
    td {
        padding: 8px 4px !important;
        font-size: 0.8rem;
    }
}