:root {
    /* Color Palette & Global Variables (Premium Design) */
    --accent: #818e5e;
    /* Soft Selective Olive */
    --accent-light: #a3b38c;
    --bg-dark: #080808;
    --text-main: #ffffff;
    --text-muted: #9ca3af;
    --border-color: rgba(255, 255, 255, 0.1);
    --glass-bg: rgba(18, 18, 18, 0.7);
    --glass-sidebar: rgba(12, 12, 12, 0.9);
    --font-sans: 'Inter', sans-serif;
    --font-mono: 'JetBrains Mono', monospace;
    --radius: 8px;
    --transition-main: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --shadow-premium: 0 15px 35px rgba(0, 0, 0, 0.4);
    --text-bright: #ffffff;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Basic Reset & Body Configuration */
body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: var(--font-sans);
    line-height: 1.5;
    overflow-x: hidden;
    min-height: 100vh;
}

/* --- Dynamic Background (Image Carousel) --- */
.app-background,
.app-background-next {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    z-index: -3;
    transition: opacity 0.6s ease-in-out;
    opacity: 0;
}

.app-background.active {
    opacity: 1;
}

.app-background::after,
.app-background-next::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.85));
}

.noise-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.05;
    z-index: -2;
    pointer-events: none;
}

.scanlines {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(18, 16, 16, 0) 50%, rgba(0, 0, 0, 0.05) 50%);
    background-size: 100% 4px;
    z-index: -1;
    pointer-events: none;
}

/* --- Main Layout Structure --- */
.app-container {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.sidebar {
    width: 100%;
    height: 72px;
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(24px);
    border-right: none;
    border-bottom: 1px solid rgba(129, 142, 94, 0.2);
    position: sticky;
    top: 0;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    /* Parent container uses space-between */
    padding: 0 4%;
    z-index: 1000;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
}

.brand {
    padding: 0;
    border-bottom: none;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex: 1;
    /* Column 1 */
    cursor: pointer;
}

.brand h1 {
    font-family: '28 Days Later', sans-serif;
    font-size: 1.5rem;
    font-weight: normal;
    letter-spacing: 2px;
    text-transform: uppercase;
    background: linear-gradient(135deg, #fff 40%, var(--accent-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.brand .logo {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    width: 36px;
    height: 36px;
    background: rgba(129, 142, 94, 0.12);
    border: 1px solid rgba(129, 142, 94, 0.3);
    border-radius: 8px;
    animation: logo-pulse 3s ease-in-out infinite;
    flex-shrink: 0;
}

@keyframes logo-pulse {

    0%,
    100% {
        box-shadow: 0 0 0px rgba(129, 142, 94, 0);
    }

    50% {
        box-shadow: 0 0 12px rgba(129, 142, 94, 0.5);
    }
}

.nav-wrapper {
    flex: 2;
    /* Column 2 - Main Center */
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 3rem;
    height: 100%;
}

.nav-dropdown {
    position: relative;
}

.dropdown-trigger {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-muted);
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-main);
    padding: 1.5rem 0;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.dropdown-trigger i {
    width: 14px;
    transition: transform 0.3s ease;
}

@media (hover: hover) {
    .nav-dropdown:hover .dropdown-trigger {
        color: #fff;
    }

    .nav-dropdown:hover .dropdown-trigger i {
        transform: rotate(180deg);
        color: var(--accent-light);
    }
}

.dropdown-content {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    background: rgba(15, 15, 15, 0.95);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(129, 142, 94, 0.2);
    border-radius: var(--radius);
    padding: 0.75rem;
    min-width: 220px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.6);
}

.nav-dropdown.open .dropdown-content {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

@media (hover: hover) {
    .nav-dropdown:hover .dropdown-content {
        opacity: 1;
        visibility: visible;
        transform: translateX(-50%) translateY(0);
    }
}

.nav-links {
    display: flex;
    flex-direction: column;
    list-style: none;
    gap: 0.2rem;
}

.nav-links li {
    padding: 0.75rem 1rem;
    cursor: pointer;
    border-radius: var(--radius);
    transition: all 0.2s ease;
    color: var(--text-muted);
    font-weight: 500;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    white-space: nowrap;
}

.nav-links li:hover {
    color: #fff;
    background: rgba(129, 142, 94, 0.1);
    transform: translateX(5px);
}

.nav-links li.active {
    background: rgba(129, 142, 94, 0.15);
    color: #fff;
    border-left: 2px solid var(--accent-light);
}

.nav-links li.active .icon {
    filter: drop-shadow(0 0 4px rgba(163, 179, 140, 0.8));
}

.promo-content p {
    font-size: 0.72rem;
    color: var(--text-muted);
    line-height: 1.3;
    margin-bottom: 0.6rem;
}

.nav-actions {
    flex: 1;
    /* Column 3 */
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

.suggestions-btn {
    background: transparent !important;
    border: 1px solid rgba(129, 142, 94, 0.4) !important;
    color: var(--accent-light) !important;
    padding: 0.6rem 1.2rem !important;
    font-size: 0.7rem !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 1px !important;
    border-radius: 4px !important;
    display: flex !important;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease !important;
    margin-bottom: 0 !important;
}

.suggestions-btn:hover {
    background: rgba(129, 142, 94, 0.1) !important;
    border-color: var(--accent-light) !important;
    color: #fff !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(129, 142, 94, 0.1);
}

/* --- Page Footer (Premium Grid) --- */
.app-footer {
    background: rgba(8, 8, 8, 0.95);
    border-top: 1px solid rgba(129, 142, 94, 0.2);
    padding: 4rem 0 2rem 0;
    margin-top: 5rem;
    position: relative;
    z-index: 10;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 4rem;
    margin-bottom: 3rem;
}

.footer-col {
    display: flex;
    flex-direction: column;
}

/* Footer Identity */
.footer-brand {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.footer-logo {
    width: 32px;
    height: 32px;
    object-fit: contain;
    filter: drop-shadow(0 0 8px rgba(129, 142, 94, 0.5));
}

.footer-brand h2 {
    font-family: '28 Days Later', sans-serif;
    font-size: 1.5rem;
    font-weight: normal;
    letter-spacing: 2px;
    text-transform: uppercase;
    background: linear-gradient(135deg, #fff 40%, var(--accent-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin: 0;
}

.footer-purpose {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    max-width: 500px;
}

.footer-update-note {
    background: rgba(255, 255, 255, 0.03);
    border-left: 3px solid var(--accent);
    padding: 0.8rem 1rem;
    font-size: 0.8rem;
    color: #888;
    line-height: 1.5;
    border-radius: 0 var(--radius) var(--radius) 0;
}

.footer-update-note a {
    color: var(--accent-light);
    text-decoration: none;
    font-weight: 600;
}

/* Footer Links */
.footer-links-col h3 {
    color: #fff;
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    font-weight: 600;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.footer-links li a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: var(--transition-main);
}

.footer-links li a i {
    width: 16px;
    height: 16px;
    opacity: 0.7;
    transition: var(--transition-main);
}

.footer-links li a:hover {
    color: var(--accent-light);
    transform: translateX(5px);
}

.footer-links li a:hover i {
    opacity: 1;
}

/* Footer Bottom (Legal) */
.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    text-align: center;
}

.footer-disclaimer {
    color: #666;
    font-size: 0.75rem;
    max-width: 800px;
    line-height: 1.5;
}

.footer-copyright {
    color: #888;
    font-size: 0.85rem;
    font-weight: 600;
}

/* Modal Content Adjustments */
.legal-modal-body::-webkit-scrollbar {
    width: 6px;
}
.legal-modal-body::-webkit-scrollbar-track {
    background: transparent;
}
.legal-modal-body::-webkit-scrollbar-thumb {
    background: rgba(129, 142, 94, 0.3);
    border-radius: 10px;
}
.legal-modal-body::-webkit-scrollbar-thumb:hover {
    background: var(--accent);
}

@media (max-width: 768px) {
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    .footer-purpose {
        max-width: 100%;
    }
}

.footer-container p {
    margin-bottom: 0.5rem;
}

/* --- Content & Sections --- */
.content {
    flex-grow: 1;
    padding: 4rem 6%;
    max-width: 1600px;
    margin: 0 auto;
    width: 100%;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
    animation: smoothFade 0.6s ease;
}

@keyframes smoothFade {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* --- Lobby V4 --- */
.lobby-hero {
    text-align: center;
    margin: 8vh auto;
    max-width: 900px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 50vh;
}

.lobby-hero h1 {
    font-family: '28 Days Later', sans-serif;
    font-size: clamp(4rem, 10vw, 7rem);
    font-weight: normal;
    letter-spacing: 2px;
    margin-bottom: 1.5rem;
    line-height: 1.1;
    text-shadow: 0 0 20px rgba(0, 0, 0, 0.8);
}

.lobby-description {
    text-align: center;
    margin-left: auto;
    font-size: 1.35rem;
    color: var(--text-muted);
    line-height: 1.8;
    margin-bottom: 4rem;
    max-width: 750px;
    margin-top: 1.5rem;
    margin-right: auto;
    font-weight: 400;
}

/* --- Promo Banner --- */
.promo-banner {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    padding: 2rem;
    margin-top: 1rem;
    margin-bottom: 3.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
    backdrop-filter: blur(10px);
    text-align: left;
}

.promo-content h3 {
    color: #fff;
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.promo-content p {
    color: var(--text-muted);
    font-size: 0.95rem;
    max-width: 700px;
}

/* --- Buttons --- */
.btn {
    display: inline-block;
    padding: 0.8rem 1.5rem;
    border-radius: var(--radius);
    font-weight: 700;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    cursor: pointer;
    border: none;
    font-family: inherit;
    transition: var(--transition-main);
    text-align: center;
    text-decoration: none;
}

.btn-primary {
    background: #ffffff;
    color: #000000;
}

.btn-primary:hover {
    background: var(--accent-light);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 255, 255, 0.2);
}

.btn-accent {
    background: var(--accent);
    color: #000;
}

.btn-accent:hover {
    background: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(129, 142, 94, 0.3);
}

.promo-btn {
    border-radius: 50px;
}

.promo-banner-btn {
    padding: 0.8rem 2.5rem;
}

.btn-join {
    background: #ffcc00;
    color: #000;
    padding: 0.7rem 1.4rem;
    font-size: 0.75rem;
}

.btn-join:hover {
    background: #fff;
    transform: translateY(-1px);
}

.lobby-promo-section {
    margin-top: 3rem;
    width: 100%;
}

.lobby-promo-banner {
    background: linear-gradient(135deg, rgba(129, 142, 94, 0.15), rgba(0, 0, 0, 0.6));
    border: 1px solid rgba(129, 142, 94, 0.3);
    border-radius: var(--radius);
    padding: 2.5rem 2rem;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1.2rem;
}

.promo-badge {
    background: var(--accent-light);
    color: #000;
    font-size: 0.65rem;
    font-weight: 800;
    padding: 0.35rem 0.75rem;
    border-radius: 4px;
    width: fit-content;
    letter-spacing: 1.2px;
}

.promo-banner-content h3 {
    font-size: 1.6rem;
    color: #fff;
    margin-bottom: 0.5rem;
}

.promo-banner-content p {
    color: var(--text-muted);
    font-size: 0.95rem;
    max-width: 550px;
    line-height: 1.6;
    margin: 0 auto 1.5rem auto;
}

.promo-banner-btn {
    display: inline-block;
    background: var(--accent-light);
    color: #000;
    text-decoration: none;
    padding: 0.8rem 2.5rem;
    border-radius: var(--radius);
    font-weight: 700;
    font-size: 0.9rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.promo-banner-btn:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 10px 25px rgba(129, 142, 94, 0.3);
    background: #fff;
}

/* --- Server Launcher --- */
.server-list-header {
    display: flex;
    padding: 0.75rem 1.5rem;
    background: rgba(0, 0, 0, 0.4);
    border-bottom: 1px solid var(--border-color);
    font-size: 0.65rem;
    font-weight: 800;
    color: var(--text-muted);
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-top: 2rem;
}

.server-row {
    display: flex;
    align-items: center;
    padding: 1.2rem 1.5rem;
    background: rgba(18, 18, 18, 0.4);
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
    transition: all 0.22s cubic-bezier(0.4, 0, 0.2, 1);
}

.server-row:hover {
    background: rgba(255, 255, 255, 0.03);
}

.server-row .col {
    display: flex;
    align-items: center;
}

/* Column Ratios */
.col-info {
    flex: 5;
    gap: 1rem;
}

.col-map {
    flex: 2;
    font-size: 0.85rem;
    color: var(--text-muted);
    text-transform: capitalize;
}

.col-map {
    flex: 2;
    font-size: 0.85rem;
    color: var(--text-muted);
    text-transform: capitalize;
}

.col-actions {
    flex: 2.5;
    justify-content: flex-end;
    border-left: 1px solid rgba(255, 255, 255, 0.05);
    padding-left: 2rem;
    margin-left: 1rem;
}

/* Components */
.search-box {
    margin: 2rem 0;
    max-width: 650px;
}

.search-input-wrapper {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    padding: 0 1.2rem;
    transition: all 0.3s;
}

.search-input-wrapper:focus-within {
    border-color: var(--accent);
    background: rgba(0, 0, 0, 0.3);
    box-shadow: 0 0 25px rgba(129, 142, 94, 0.15);
}

.search-icon {
    margin-right: 1rem;
    font-size: 1rem;
    opacity: 0.6;
}

.search-input-wrapper input {
    background: transparent;
    border: none;
    color: #fff;
    padding: 1rem 0;
    width: 100%;
    outline: none;
    font-size: 0.9rem;
}

.search-input-wrapper input {
    background: transparent;
    border: none;
    color: #fff;
    padding: 1rem 0;
    width: 100%;
    outline: none;
    font-size: 0.9rem;
}

.server-icon {
    width: 36px;
    height: 36px;
    background: rgba(255, 204, 0, 0.1);
    border: 1px solid rgba(255, 204, 0, 0.2);
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffcc00;
}

.server-details h3 {
    font-size: 0.9rem;
    margin-bottom: 0.1rem;
}

.server-ip {
    font-size: 0.75rem;
    color: var(--text-muted);
    font-family: var(--font-mono);
}



/* --- Grid & Cards Correction --- */
.results-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2rem;
    align-items: stretch;
    /* Cards in same row will have same height */
}

/* --- Search Box Consistency --- */
.section-header {
    margin-bottom: 4rem;
}

.section-header .search-box {
    margin: 1.5rem 0 0 0;
}

.card,
.map-card,
.clothing-card,
.route-selection-card {
    background: var(--glass-bg);
    border-radius: var(--radius);
    border: 1px solid var(--border-color);
    backdrop-filter: blur(15px);
    transition: var(--transition-main);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.card:hover,
.map-card:hover,
.clothing-card:hover,
.route-selection-card:hover {
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-5px);
    box-shadow: var(--shadow-premium);
}

.card-header {
    padding: 1.5rem;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    gap: 1rem;
}

.card-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    color: var(--accent-light);
    transition: var(--transition-main);
}

.card:hover .card-icon {
    transform: scale(1.1) rotate(5deg);
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--accent-light);
}

.card-icon i {
    width: 22px;
    height: 22px;
}

/* Specific disease icon colors for professional look */
.card-icon [data-lucide="droplet"] {
    color: #3b82f6;
}

/* Cólera */
.card-icon [data-lucide="frown"] {
    color: #10b981;
}

/* Salmonella */
.card-icon [data-lucide="thermometer"] {
    color: #f59e0b;
}

/* Resfriado */
.card-icon [data-lucide="droplets"] {
    color: #ef4444;
}

/* Infección */
.card-icon [data-lucide="biohazard"] {
    color: #fbbf24;
}

/* POX */
.card-icon [data-lucide="snowflake"] {
    color: #06b6d4;
}

/* Hipotermia */
.card-icon [data-lucide="ghost"] {
    color: #a855f7;
}

/* Kuru */
.card-icon [data-lucide="bone"] {
    color: #94a3b8;
}

/* Fractura */
.card-icon [data-lucide="flask-conical"] {
    color: #22c55e;
}

/* Química */
.card-icon [data-lucide="ban"] {
    color: #b91c1c;
}

/* Reacción Hemolítica */


.card-title {
    font-size: 1.25rem;
    font-weight: 600;
}

.card-body {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.card-footer {
    margin-top: auto;
    border-top: 1px solid var(--border-color);
    padding-top: 1.5rem;
    min-height: 60px;
    /* Ensura symmetry of the boxes */
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

/* --- Image Containers --- */
.crafting-item img,
.card-body img {
    max-width: 100%;
    height: 80px;
    object-fit: contain;
    margin: 0 auto 1rem auto;
    display: block;
    filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.5));
}

.recipe-flow {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 2rem;
}

.crafting-item {
    background: rgba(255, 255, 255, 0.03);
    padding: 1rem 0.5rem;
    border-radius: var(--radius);
    width: 100%;
    text-align: center;
    min-height: 120px;
    /* Ensura ingredient symmetry */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.crafting-item img {
    margin-bottom: 0.5rem;
}

.crafting-item span {
    font-size: 0.75rem;
    line-height: 1.2;
    display: block;
}

.card h4 {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
    margin-bottom: 1rem;
}

.card ul {
    list-style: none;
    margin-bottom: 1.5rem;
}

.card li {
    font-size: 0.95rem;
    margin-bottom: 0.4rem;
    position: relative;
    padding-left: 1.2rem;
}

.card li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--accent);
}

/* --- Chips --- */
/* --- Typewriter Effect --- */
.typewriter-cursor {
    display: inline-block;
    color: var(--accent-light);
    animation: blink-cursor 0.75s step-end infinite;
    font-weight: 300;
    margin-left: 2px;
}

@keyframes blink-cursor {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0;
    }
}

/* --- Map Cards --- */
.map-card {
    position: relative;
    height: 300px;
    background-size: cover;
    background-position: center;
    padding: 2rem;
    justify-content: flex-end;
}

.map-card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0.2) 60%, rgba(0, 0, 0, 0) 100%);
    z-index: 1;
}

.map-card-badge {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    z-index: 2;
    padding: 0.4rem 1rem;
    border-radius: 4px;
    font-size: 0.65rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    backdrop-filter: blur(8px);
}

.badge-official {
    background: rgba(129, 142, 94, 0.9);
    color: #fff;
    border: 1px solid var(--accent-light);
}

.badge-community {
    background: rgba(30, 41, 59, 0.9);
    color: #cbd5e1;
    border: 1px solid #475569;
}

.map-card-content {
    position: relative;
    z-index: 2;
}

.map-title {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 1rem;
    color: #fff;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.btn-map {
    font-size: 0.8rem;
    padding: 0.75rem 1.5rem;
}

/* --- Weapon Cards --- */
.weapon-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
    margin: 1.2rem 0 0 0;
    margin-top: auto;
    /* Alineación perfecta al fondo */
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    /* Separador elegante */
}

.stat-badge {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 0.5rem;
    border-radius: 4px;
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.stat-label {
    font-size: 0.6rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.stat-value {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--accent-light);
    font-family: var(--font-mono);
}

.weapon-category-tag {
    display: inline-block;
    background: rgba(129, 142, 94, 0.1);
    color: var(--accent);
    padding: 0.2rem 0.6rem;
    border-radius: 4px;
    font-size: 0.65rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: 1px solid rgba(129, 142, 94, 0.3);
    pointer-events: none;
    z-index: 2;
}


/* --- Lobby Footer --- */
.lobby-footer {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-top: 1rem;
    letter-spacing: 0.5px;
}

/* Mobile */
/* Mobile Optimized Navigation */
@media (max-width: 768px) {
    .sidebar {
        width: 100%;
        height: auto;
        position: fixed;
        top: 0;
        bottom: auto;
        display: grid;
        grid-template-columns: 1fr auto;
        grid-template-rows: auto auto;
        padding: 8px 15px;
        border-right: none;
        border-bottom: 1px solid rgba(129, 142, 94, 0.3);
        background: rgba(10, 10, 10, 0.98);
        backdrop-filter: blur(24px);
        box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
        z-index: 1000;
        gap: 5px;
    }

    .sidebar-promo,
    .sidebar-footer {
        display: none !important;
    }

    .lobby-description {
        text-align: center;
        margin-left: auto;
        display: block !important;
        font-size: 1rem;
        line-height: 1.6;
        margin-bottom: 2.5rem;
        padding: 0 10px;
    }

    .lobby-footer {
        display: block !important;
        font-size: 0.8rem;
        margin-top: auto;
        opacity: 0.7;
    }

    .brand {
        grid-column: 1;
        grid-row: 1;
        display: flex !important;
        width: auto;
        justify-content: flex-start;
        padding: 5px 0;
        border-bottom: none;
    }

    .brand h1 {
        font-size: 1rem;
        display: block !important;
    }

    .nav-actions {
        grid-column: 2;
        grid-row: 1;
        display: flex !important;
        align-items: center;
        justify-content: flex-end;
    }

    .suggestions-btn {
        padding: 6px 10px !important;
        font-size: 0.6rem !important;
        white-space: nowrap;
    }

    .nav-wrapper {
        grid-column: 1 / span 2;
        grid-row: 2;
        width: 100%;
        justify-content: space-around;
        gap: 0.5rem;
        padding: 8px 0 2px 0;
        border-top: 1px solid rgba(255, 255, 255, 0.05);
    }

    .nav-dropdown {
        position: static;
        flex: 1;
    }

    .dropdown-trigger {
        justify-content: center;
        padding: 8px 5px;
        font-size: 0.7rem;
        letter-spacing: 0.5px;
    }

    .dropdown-content {
        top: 100%;
        bottom: auto;
        left: 0;
        width: 100%;
        transform: translateY(-10px);
        border-radius: 0 0 16px 16px;
        border: 1px solid rgba(129, 142, 94, 0.2);
        border-top: none;
        padding: 1rem;
        background: rgba(15, 15, 15, 0.98);
    }

    .nav-dropdown.open .dropdown-content {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }

    .nav-links {
        display: flex;
        flex-direction: column;
        gap: 0.5rem;
        margin: 0;
    }

    .nav-links li {
        flex-direction: row;
        width: 100%;
        padding: 1rem 1.5rem;
        font-size: 0.95rem;
        justify-content: flex-start;
        align-items: center;
        border-left: none;
        border-radius: var(--radius);
        text-align: left;
        margin: 0;
    }

    .nav-links li .icon {
        font-size: 1.2rem;
    }

    .nav-links li.active {
        background: rgba(129, 142, 94, 0.15);
        border-left: 3px solid var(--accent-light);
        color: #fff;
    }

    .nav-links li::before {
        display: none;
    }

    .content {
        padding: 8rem 1rem 2rem 1rem;
    }

    .lobby-hero h1 {
        font-size: 2.8rem;
        letter-spacing: -1px;
    }

    .lobby-features {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .feature-item {
        padding: 1.5rem;
    }

    .section-header {
        margin-bottom: 2.5rem;
        text-align: center;
    }

    .results-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .promo-banner {
        flex-direction: column;
        text-align: center;
        padding: 1.5rem;
    }

    .server-list-header {
        display: none;
        /* Hide complex headers on mobile */
    }

    .server-row {
        flex-direction: column;
        align-items: flex-start;
        padding: 1.5rem;
        gap: 1rem;
    }

    .server-row .col {
        width: 100%;
    }

    .server-row .col-actions {
        border-left: none;
        padding-left: 0;
        margin-left: 0;
        justify-content: flex-start;
    }

    .btn-join {
        width: 100%;
        padding: 1rem;
    }
}

/* --- Map Viewer Modal V1 --- */
.map-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.map-modal.active {
    display: flex;
    opacity: 1;
}

.map-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(12px);
    cursor: pointer;
}

.map-modal-container {
    position: relative;
    width: 100%;
    max-width: 1400px;
    height: 90vh;
    background: #0d0d0d;
    border: 1px solid rgba(129, 142, 94, 0.3);
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.6);
    transform: scale(0.95);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.map-modal.active .map-modal-container {
    transform: scale(1);
}

.map-modal-header {
    background: rgba(18, 18, 18, 0.8);
    backdrop-filter: blur(10px);
    padding: 1rem 1.5rem;
    border-bottom: 1px solid rgba(129, 142, 94, 0.2);
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 10;
}

.map-modal-title-group {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.map-modal-icon {
    font-size: 1.2rem;
}

#map-modal-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #fff;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.map-modal-actions {
    display: flex;
    gap: 0.75rem;
}

.map-action-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
    width: 36px;
    height: 36px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.25s ease;
    text-decoration: none;
    font-size: 0.9rem;
}

.map-action-btn:hover {
    background: rgba(129, 142, 94, 0.15);
    border-color: var(--accent-light);
    color: var(--accent-light);
    transform: translateY(-2px);
}

.map-modal-body {
    flex-grow: 1;
    position: relative;
    background: #000;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

/* Scrollbar Premium para Modales */
.map-modal-body::-webkit-scrollbar {
    width: 6px;
}

.map-modal-body::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.2);
}

.map-modal-body::-webkit-scrollbar-thumb {
    background: rgba(129, 142, 94, 0.3);
    border-radius: 10px;
}

.map-modal-body::-webkit-scrollbar-thumb:hover {
    background: var(--accent);
}

/* Firefox */
.map-modal-body {
    scrollbar-width: thin;
    scrollbar-color: rgba(129, 142, 94, 0.3) transparent;
}

#map-iframe {
    width: 100%;
    height: 100%;
    border: none;
    opacity: 0;
    transition: opacity 0.5s ease;
}

#map-iframe.loaded {
    opacity: 1;
}

/* Loading State */
.map-loader {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    z-index: 5;
    background: #0a0a0a;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 3px solid rgba(129, 142, 94, 0.1);
    border-top: 3px solid var(--accent-light);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    box-shadow: 0 0 15px rgba(129, 142, 94, 0.2);
}

.map-loader p {
    color: var(--text-muted);
    font-size: 0.9rem;
    letter-spacing: 1px;
    font-weight: 500;
}

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

    100% {
        transform: rotate(360deg);
    }
}

/* Responsive Maps */
@media (max-width: 768px) {
    .map-modal {
        padding: 0;
    }

    .map-modal-container {
        height: 100vh;
        border-radius: 0;
        border: none;
    }

    .map-modal-header {
        padding: 0.8rem 1rem;
    }

    #map-modal-title {
        font-size: 0.9rem;
    }
}

/* --- Route Generator UI --- */

.route-generator-box {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    padding: 2rem;
    margin-top: 2rem;
    backdrop-filter: blur(10px);
}

.route-select-group {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    align-items: flex-end;
}

.route-select-wrapper {
    flex: 1;
    min-width: 250px;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.route-select-wrapper label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--accent-light);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.route-select-wrapper select {
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
    padding: 1rem 1.2rem;
    border-radius: 6px;
    font-size: 0.95rem;
    font-family: inherit;
    outline: none;
    transition: all 0.3s;
    appearance: none;
    background-image: url("data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22292.4%22%20height%3D%22292.4%22%3E%3Cpath%20fill%3D%22%23FFFFFF%22%20d%3D%22M287%2069.4a17.6%2017.6%200%200%200-13-5.4H18.4c-5%200-9.3%201.8-12.9%205.4A17.6%2017.6%200%200%200%200%2082.2c0%205%201.8%209.3%205.4%2012.9l128%20127.9c3.6%203.6%207.8%205.4%2012.8%205.4s9.2-1.8%2012.8-5.4L287%2095c3.5-3.5%205.4-7.8%205.4-12.8%200-5-1.9-9.2-5.5-12.8z%22%2F%3E%3C%2Fsvg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem top 50%;
    background-size: 0.65rem auto;
}

.route-select-wrapper select:focus {
    border-color: var(--accent);
    box-shadow: 0 0 15px rgba(129, 142, 94, 0.15);
}

.route-select-wrapper select option {
    background: #111;
    color: #fff;
}

.btn-generate {
    width: auto;
    height: 52px;
}


.btn-suggest-route,
.btn-suggest-lore {
    background: rgba(129, 142, 94, 0.1);
    border: 1px solid var(--accent);
    color: var(--accent-light);
    padding: 0.8rem 1.5rem;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.btn-suggest-route:hover,
.btn-suggest-lore:hover {
    background: var(--accent);
    color: #000;
    transform: scale(1.05);
    box-shadow: 0 0 20px rgba(129, 142, 94, 0.4);
}

.btn-suggest-route span,
.btn-suggest-lore span {
    font-size: 1.1rem;
}

/* Route Results Timeline */
.route-results {
    margin-top: 3rem;
    min-height: 200px;
}

/* Route Legend */
.route-legend {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin: 1.5rem 0 2rem 0;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
}

.legend-item {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    align-items: flex-start;
}

.legend-item p {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin: 0;
    line-height: 1.4;
}

/* Route Selection Grid */
.route-selection-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
    animation: fadeIn 0.5s ease;
}

.route-selection-card {
    padding: 1.5rem;
    gap: 1rem;
    position: relative;
}

.route-selection-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--accent);
    transform: scaleY(0);
    transition: transform 0.3s ease;
}

.route-selection-card:hover::before {
    transform: scaleY(1);
}

.route-card-header-mini {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.route-time-mini {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.route-selection-card h4 {
    color: #fff;
    font-size: 1.1rem;
    margin: 0;
}

.route-selection-card p {
    color: var(--text-muted);
    font-size: 0.85rem;
    line-height: 1.4;
    margin: 0;
    flex-grow: 1;
}

.btn-view-route {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
    padding: 0.6rem;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.3s;
}

.route-selection-card:hover .btn-view-route {
    background: var(--accent);
    color: #000;
    border-color: var(--accent);
}

/* Detailed Route Card */
.route-card {
    background: linear-gradient(180deg, rgba(20, 20, 20, 0.8), rgba(10, 10, 10, 0.9));
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    overflow: hidden;
    animation: smoothFade 0.6s ease;
}

.route-card-header {
    padding: 2rem;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    background: rgba(255, 255, 255, 0.02);
}

.route-info h3 {
    font-size: 1.8rem;
    color: #fff;
    margin-bottom: 0.3rem;
}

.route-objective {
    font-size: 0.95rem;
    color: var(--text-muted);
}

.route-objective span {
    color: #fff;
    font-weight: 600;
}

.difficulty-badge {
    padding: 0.25rem 0.6rem;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.badge-baja {
    background: rgba(34, 197, 94, 0.2);
    color: #4ade80;
    border: 1px solid rgba(34, 197, 94, 0.3);
}

.badge-media {
    background: rgba(234, 179, 8, 0.2);
    color: #fde047;
    border: 1px solid rgba(234, 179, 8, 0.3);
}

.badge-alta {
    background: rgba(249, 115, 22, 0.2);
    color: #fb923c;
    border: 1px solid rgba(249, 115, 22, 0.3);
}

.badge-extrema {
    background: rgba(239, 68, 68, 0.2);
    color: #fca5a5;
    border: 1px solid rgba(239, 68, 68, 0.3);
}

.badge-pvp {
    background: rgba(239, 68, 68, 0.3);
    color: #fff;
    border: 1px solid #ef4444;
    animation: pulseRed 2s infinite;
}

@keyframes pulseRed {
    0% {
        box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.4);
    }

    70% {
        box-shadow: 0 0 0 10px rgba(239, 68, 68, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(239, 68, 68, 0);
    }
}

.route-meta span {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.route-timeline-container {
    padding: 3rem 2rem;
}

.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.timeline::before {
    content: '';
    position: absolute;
    top: 0;
    left: 20px;
    height: 100%;
    width: 2px;
    background: rgba(129, 142, 94, 0.3);
    transform-origin: top;
    animation: timelineLineGrow 1.5s ease forwards;
}

@keyframes timelineLineGrow {
    from {
        transform: scaleY(0);
    }

    to {
        transform: scaleY(1);
    }
}

.timeline-step {
    position: relative;
    padding-left: 60px;
    margin-bottom: 2.5rem;
    opacity: 0;
    transform: translateX(-20px);
}

.timeline-step.animate {
    animation: stepReveal 0.6s ease forwards;
}

@keyframes stepReveal {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.step-marker {
    position: absolute;
    left: 11px;
    top: 0;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #111;
    border: 2px solid var(--accent);
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.timeline-step.animate .step-marker {
    transform: scale(1.2);
}

.timeline-step:last-child {
    margin-bottom: 0;
}

.step-marker::after {
    content: '';
    width: 8px;
    height: 8px;
    background: var(--accent);
    border-radius: 50%;
}

.timeline-step.step-danger .step-marker {
    border-color: #ff4d4d;
}

.timeline-step.step-danger .step-marker::after {
    background: #ff4d4d;
}

.timeline-step.step-start .step-marker {
    border-color: #3b82f6;
}

.timeline-step.step-start .step-marker::after {
    background: #3b82f6;
}

.timeline-step.step-end .step-marker {
    border-color: #ffcc00;
}

.timeline-step.step-end .step-marker::after {
    background: #ffcc00;
}

.step-content {
    background: rgba(255, 255, 255, 0.03);
    padding: 1.5rem;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.3s;
}

.step-content:hover {
    border-color: rgba(129, 142, 94, 0.3);
    background: rgba(255, 255, 255, 0.05);
}

.step-content h4 {
    color: #fff;
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.step-content p {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.5;
}

.step-tag {
    font-size: 0.7rem;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 700;
}

.tag-water {
    background: rgba(59, 130, 246, 0.2);
    color: #93c5fd;
}

.tag-military {
    background: rgba(129, 142, 94, 0.2);
    color: var(--accent-light);
}

.tag-medical {
    background: rgba(239, 68, 68, 0.2);
    color: #fca5a5;
}

.tag-danger {
    background: rgba(255, 77, 77, 0.15);
    color: #ff4d4d;
    border: 1px solid rgba(255, 77, 77, 0.3);
}

/* Responsive Router */
@media (max-width: 768px) {
    .route-select-wrapper {
        min-width: 100%;
    }

    .btn-generate {
        width: 100%;
    }

    .route-card-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
}

/* Clothing Wiki Styles */
.clothing-grid {
    display: flex;
    flex-direction: column;
    gap: 3rem;
    margin-top: 2rem;
}

.category-title {
    font-size: 1.4rem;
    color: var(--accent);
    margin-bottom: 1.5rem;
    border-left: 4px solid var(--accent);
    padding-left: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.clothing-items-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
}

.clothing-card {
    padding: 1.5rem;
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
}

.clothing-icon-placeholder {
    width: 80px;
    /* Un poco más grande para mejor presencia */
    height: 80px;
    flex-shrink: 0;
    /* Evita que el icono se encoja */
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 8px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.clothing-icon-placeholder img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.5));
}

.clothing-info {
    flex: 1;
}

.clothing-info h4 {
    margin: 0 0 1rem 0;
    font-size: 1.15rem;
    color: var(--text-bright);
    line-height: 1.3;
    min-height: 3rem;
    /* Altura fija para 1 o 2 líneas de texto */
    display: flex;
    align-items: center;
    /* Centra el texto verticalmente dentro de su espacio fijo */
}

.clothing-stats-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    /* Proporción fija para alineación vertical */
    gap: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 1rem;
}

.stat-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-height: 45px;
    /* Asegura que cada fila de stats mida lo mismo */
}

.stat-label {
    font-size: 0.6rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 700;
}

.stat-value {
    font-size: 0.9rem;
    color: var(--text-bright);
    font-weight: 600;
}

.insulation-badge {
    padding: 3px 10px;
    border-radius: 5px;
    font-size: 0.7rem;
    font-weight: 800;
    text-transform: uppercase;
    display: inline-block;
    width: fit-content;
    letter-spacing: 0.5px;
}

.badge-insulation-máximo {
    background: #00f2ff;
    color: #000;
    box-shadow: 0 0 15px rgba(0, 242, 255, 0.4);
    border: 1px solid rgba(0, 242, 255, 0.5);
}

.badge-insulation-alto {
    background: #3498db;
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.badge-insulation-medio {
    background: #f1c40f;
    color: #000;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.badge-insulation-bajo {
    background: #95a5a6;
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* --- Skeleton Loading --- */
.skeleton {
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.03) 25%, rgba(255, 255, 255, 0.08) 50%, rgba(255, 255, 255, 0.03) 75%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s infinite;
    border-radius: var(--radius);
}

@keyframes skeleton-loading {
    0% {
        background-position: 200% 0;
    }

    100% {
        background-position: -200% 0;
    }
}

.skeleton-card {
    height: 380px;
    background: rgba(18, 18, 18, 0.4);
    border: 1px solid var(--border-color);
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
    border-radius: var(--radius);
}

.skeleton-title {
    width: 50%;
    height: 20px;
}

.skeleton-text {
    width: 90%;
    height: 12px;
}

.skeleton-image {
    width: 100%;
    height: 100px;
    margin: 0.5rem 0;
    opacity: 0.5;
}

.skeleton-stats {
    display: flex;
    gap: 0.5rem;
}

.skeleton-stat {
    flex: 1;
    height: 40px;
}

.skeleton-row {
    height: 70px;
    width: 100%;
    margin-bottom: 0.5rem;
    background: rgba(255, 255, 255, 0.03);
}

.reveal-item {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s cubic-bezier(0.23, 1, 0.32, 1), transform 0.6s cubic-bezier(0.23, 1, 0.32, 1);
}

.reveal-item.reveal-active {
    opacity: 1;
    transform: translateY(0);
}

/* --- Premium Blood Calculator --- */
.blood-calculator-container {
    max-width: 1000px;
    margin: 2rem auto;
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
}

.blood-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

.blood-type-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(129, 142, 94, 0.15);
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
    font-size: 1.5rem;
    font-weight: 800;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    color: var(--text-muted);
}

.blood-type-card:hover {
    background: rgba(129, 142, 94, 0.1);
    border-color: var(--accent);
    color: #fff;
    transform: translateY(-3px);
}

.blood-type-card.active {
    background: var(--accent) !important;
    color: #000 !important;
    border-color: #fff;
    box-shadow: 0 0 30px rgba(129, 142, 94, 0.4);
}

.blood-results-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.blood-result-box {
    background: rgba(15, 15, 15, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    padding: 1.5rem;
    min-height: 120px;
    display: flex;
    flex-direction: column;
}

.result-header {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    margin-bottom: 1.2rem;
    color: var(--text-muted);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
}

.result-header i {
    color: var(--accent);
    width: 20px;
    height: 20px;
}

.compatibility-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
}

.blood-badge {
    background: rgba(129, 142, 94, 0.15);
    border: 1px solid var(--accent);
    color: #fff;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-weight: 700;
    font-size: 1rem;
    animation: fadeIn 0.3s ease-out;
}

.empty-msg {
    color: var(--text-muted);
    font-style: italic;
    font-size: 0.9rem;
    opacity: 0.5;
}

.blood-info-card {
    background: rgba(239, 68, 68, 0.05);
    border: 1px solid rgba(239, 68, 68, 0.2);
    border-radius: 16px;
    padding: 2rem;
}

.info-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    color: #ff6b6b;
    font-weight: 800;
    text-transform: uppercase;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.blood-tips {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.tip-item {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.4;
}

@media (max-width: 768px) {
    .blood-grid { grid-template-columns: repeat(2, 1fr); }
    .blood-results-section { grid-template-columns: 1fr; }
}

/* Food Stats */
.food-stats {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.stat-row {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.stat-info {
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-muted);
}

.stat-info i {
    vertical-align: middle;
    margin-right: 4px;
}

.stat-bar-bg {
    width: 100%;
    height: 6px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    overflow: hidden;
}

.stat-bar-fill {
    height: 100%;
    border-radius: 10px;
    transition: width 1s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Variant Selector */
.variant-selector {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    justify-content: center;
}

.variant-chip {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-muted);
    padding: 0.3rem 0.6rem;
    border-radius: 6px;
    font-size: 0.7rem;
    cursor: pointer;
    transition: all 0.2s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.variant-chip:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
    color: #fff;
}

.variant-chip.active {
    background: var(--accent);
    border-color: var(--accent);
    color: #000;
    font-weight: 700;
    box-shadow: 0 0 10px rgba(129, 142, 94, 0.3);
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* --- Modals (Maps & Videos) --- */
.map-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.map-modal.active {
    display: flex;
}

.map-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
}

.map-modal-container {
    position: relative;
    width: 100%;
    max-width: 1200px;
    height: 85vh;
    background: #111;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
    animation: modalReveal 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.vertical-modal {
    max-width: 550px;
    height: 92vh;
}

@keyframes modalReveal {
    from {
        opacity: 0;
        transform: scale(0.95) translateY(20px);
    }

    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.map-modal-header {
    padding: 1rem 1.5rem;
    background: rgba(255, 255, 255, 0.03);
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.video-modal .map-modal-header {
    border-top: none;
}

.map-modal-title-group {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.map-modal-title-group h2 {
    font-size: 1.1rem;
    font-weight: 700;
    color: #fff;
}

.map-modal-actions {
    display: flex;
    gap: 0.5rem;
}

.map-action-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
    width: 36px;
    height: 36px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
}

.map-action-btn:hover {
    background: var(--accent);
    color: #000;
    border-color: var(--accent);
}

.map-modal-body {
    flex-grow: 1;
    position: relative;
    background: #111;
}

.map-loader {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: #000;
    z-index: 5;
    color: var(--text-muted);
}

.spinner {
    width: 40px;
    height: 40px;
    border: 3px solid rgba(129, 142, 94, 0.1);
    border-top: 3px solid var(--accent);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 1rem;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

#map-iframe,
#video-iframe {
    width: 100%;
    height: 100%;
    opacity: 0;
    border: none;
    transition: opacity 0.5s ease;
}

#map-iframe.loaded,
#video-iframe.loaded {
    opacity: 1;
}

/* Video specific aspect ratio */
.video-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
}

.vertical-video {
    height: 100%;
    width: 100%;
    display: flex;
    justify-content: center;
    background: #111;
}

.vertical-video iframe {
    height: 100%;
    width: auto;
    aspect-ratio: 9 / 16;
    max-width: 100%;
}

.horizontal-video {
    height: 100%;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    background: #111;
}

.horizontal-video iframe {
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    max-height: 100%;
}

/* --- Lore Specific Card --- */
.lore-card {
    cursor: pointer;
}

.lore-card .card-body {
    padding-top: 0;
}

.lore-card-subtitle {
    font-size: 0.75rem;
    color: var(--accent-light);
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
}

.lore-card-description {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.6;
}

/* --- Route Map Hero Styles --- */
.route-hero-container {
    width: 100%;
    margin-bottom: 2rem;
    background: transparent;
    display: flex;
    justify-content: center;
    align-items: center;
}

.route-hero-map {
    max-width: 90%;
    max-height: 60vh;
    width: auto;
    height: auto;
    display: block;
    border-radius: 12px;
    border: 2px solid rgba(255,255,255,0.15);
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.route-hero-info {
    padding: 1.5rem 0;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    margin-bottom: 2rem;
}

.route-hero-info h2 {
    font-size: 2rem;
    margin-bottom: 0.8rem;
    color: #fff;
}

.route-hero-info p {
    font-size: 1rem;
    color: var(--text-muted);
    line-height: 1.6;
}

@media (max-width: 768px) {
    .route-hero-container {
        max-height: none;
    }
    .route-hero-map {
        max-height: 300px;
    }
    .route-hero-info h2 {
        font-size: 1.5rem;
    }
}

/* --- Weapon Comparator --- */
.stat-winner .stat-value {
    color: var(--accent) !important;
    font-weight: 800;
    text-shadow: 0 0 10px rgba(192, 255, 0, 0.4);
}
.stat-winner::after {
    content: '★';
    position: absolute;
    top: -5px;
    right: -5px;
    color: var(--accent);
    font-size: 0.8rem;
    filter: drop-shadow(0 0 4px rgba(192, 255, 0, 0.6));
}
.stat-compare {
    position: relative;
}

/* --- Custom Select Dropdown --- */
.custom-select-wrapper {
    position: relative;
}

.custom-select-input {
    width: 100%;
    padding: 0.8rem 1.2rem;
    background: rgba(15, 15, 15, 0.6) !important;
    border: 1px solid rgba(129, 142, 94, 0.4) !important;
    color: #fff !important;
    border-radius: 8px;
    outline: none;
    font-size: 0.9rem;
    font-family: inherit;
    transition: all 0.2s ease;
}

.custom-select-input:focus {
    border-color: var(--accent) !important;
    background: rgba(15, 15, 15, 0.8) !important;
}

.dropdown-arrow {
    position: absolute;
    right: 1.2rem;
    top: 50%;
    transform: translateY(-50%);
    width: 16px;
    height: 16px;
    color: var(--text-muted);
    transition: transform 0.2s;
    pointer-events: none;
    display: flex;
    align-items: center;
}

.custom-select-wrapper.open .dropdown-arrow {
    transform: rotate(180deg);
}

.custom-select-wrapper.open .search-input-wrapper {
    border-color: var(--accent);
}

.custom-select-list {
    position: absolute;
    top: calc(100% + 5px);
    left: 0;
    width: 100%;
    max-height: 250px;
    overflow-y: auto;
    background: rgba(15, 15, 15, 0.95);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(129, 142, 94, 0.3);
    border-radius: 8px;
    padding: 0.5rem 0;
    margin: 0;
    list-style: none;
    z-index: 1000;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.6);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.2s ease;
}

.custom-select-wrapper.open .custom-select-list {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.custom-select-list li {
    padding: 0.75rem 1.2rem;
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.2s;
    font-size: 0.9rem;
}

.custom-select-list li:hover {
    background: rgba(129, 142, 94, 0.15);
    color: #fff;
    padding-left: 1.5rem;
}

/* Custom Scrollbar for list */
.custom-select-list::-webkit-scrollbar {
    width: 6px;
}
.custom-select-list::-webkit-scrollbar-track {
    background: transparent;
}
.custom-select-list::-webkit-scrollbar-thumb {
    background: rgba(129, 142, 94, 0.3);
    border-radius: 10px;
}
.custom-select-list::-webkit-scrollbar-thumb:hover {
    background: var(--accent);
}

/* --- Symmetrical Comparator Structure --- */
.comparator-section {
    display: flex;
    flex-direction: column;
    gap: 3rem;
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 1rem;
}

.comparator-header-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    width: 100%;
}

.comparator-header-row .custom-select-wrapper {
    flex: 1;
    max-width: 400px;
}

.comparator-vs-label {
    font-family: '28 Days Later', sans-serif;
    font-size: 2.5rem;
    color: var(--accent);
    text-shadow: 0 0 15px rgba(129, 142, 94, 0.4);
    flex-shrink: 0;
}

.comparator-results-row {
    display: flex;
    align-items: stretch;
    justify-content: center;
    gap: 2rem;
    width: 100%;
}

/* Premium Weapon Card for Comparator */
.comparator-card-body {
    flex: 1;
    max-width: 420px; /* Reduced width */
    background: rgba(18, 18, 18, 0.8);
    border: 1px solid rgba(129, 142, 94, 0.3);
    border-radius: 16px;
    padding: 1.5rem; /* Reduced padding */
    display: flex;
    flex-direction: column;
    min-height: 480px; /* Reduced height */
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    position: relative;
    overflow: hidden;
}

.comparator-card-body::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, transparent, var(--accent), transparent);
    opacity: 0.5;
}

.waiting-text {
    margin: auto;
    text-align: center;
    color: var(--text-muted);
    font-style: italic;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.waiting-text i {
    width: 64px;
    height: 64px;
    opacity: 0.2;
}

/* Mobile responsive */
@media (max-width: 900px) {
    .comparator-header-row {
        flex-direction: column;
        gap: 1rem;
    }
    .comparator-results-row {
        flex-direction: column;
        align-items: center;
    }
    .comparator-card-body {
        width: 100%;
        max-width: 100%;
        min-height: auto;
    }
    .comparator-vs-label {
        font-size: 1.5rem;
    }
}


/* --- Weapon Sound Player --- */
.weapon-sound-trigger {
    width: 32px;
    height: 32px;
    background: rgba(129, 142, 94, 0.15);
    border: 1px solid rgba(129, 142, 94, 0.3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition-main);
    z-index: 10;
    flex-shrink: 0;
}

.weapon-sound-trigger:hover {
    background: var(--accent-light);
    color: #000;
    transform: scale(1.1);
}

.weapon-sound-player {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s cubic-bezier(0.4, 0, 0.2, 1), padding 0.3s ease;
    background: rgba(0, 0, 0, 0.2);
    border-top: 0px solid var(--border-color);
}

.weapon-sound-player.expanded {
    max-height: 200px; /* Large enough for buttons */
    padding: 1rem;
    border-top-width: 1px;
}

.sound-controls {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
}

.sound-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 0.4rem 0.8rem;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--text-muted);
    cursor: pointer;
    transition: var(--transition-main);
    text-transform: uppercase;
}

.sound-btn:hover {
    background: rgba(129, 142, 94, 0.2);
    border-color: var(--accent-light);
    color: #fff;
}

.sound-btn.playing {
    background: var(--accent-light);
    color: #000;
    border-color: #fff;
    animation: sound-pulse 1s infinite;
}

@keyframes sound-pulse {
    0% { box-shadow: 0 0 0 0 rgba(163, 179, 140, 0.4); }
    70% { box-shadow: 0 0 0 10px rgba(163, 179, 140, 0); }
    100% { box-shadow: 0 0 0 0 rgba(163, 179, 140, 0); }
}

.sound-label {
    display: block;
    font-size: 0.6rem;
    color: var(--accent-light);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.5rem;
    text-align: center;
}

/* --- Navigation Fixes for Static Site --- */
.nav-links li {
    padding: 0 !important;
}

.nav-links li a {
    display: flex !important;
    align-items: center;
    gap: 0.8rem;
    width: 100%;
    height: 100%;
    padding: 0.75rem 1rem;
    color: inherit;
    text-decoration: none;
    border-radius: var(--radius);
    transition: all 0.2s ease;
}

.nav-links li:hover {
    transform: none !important; /* Prevent double transform */
}

.nav-links li a:hover {
    color: #fff;
    background: rgba(129, 142, 94, 0.1);
    transform: translateX(5px);
}

.nav-links li.active a {
    background: rgba(129, 142, 94, 0.15);
    color: #fff;
    border-left: 2px solid var(--accent-light);
}
/* --- Weapon Detail Modal (Premium) --- */
.weapon-detail-modal .map-modal-container {
    max-width: 800px;
    background: #0a0a0a;
}

.weapon-detail-container {
    padding: 1rem;
    padding-bottom: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.weapon-detail-hero {
    text-align: center;
    padding: 1rem 0;
    background: radial-gradient(circle at center, rgba(129, 142, 94, 0.1) 0%, transparent 70%);
    border-radius: 16px;
}

.weapon-detail-title {
    font-size: 1.8rem;
    font-weight: 800;
    margin-bottom: 1rem;
    letter-spacing: 1px;
    color: #fff;
    text-transform: uppercase;
}

.weapon-detail-image-wrapper {
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.weapon-detail-image-wrapper img {
    max-height: 100%;
    max-width: 90%;
    object-fit: contain;
    filter: drop-shadow(0 20px 40px rgba(0,0,0,0.8));
}

.weapon-detail-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.75rem;
}

.stat-detail-item {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 0.8rem;
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
}

.stat-detail-item .label {
    font-size: 0.65rem;
    font-weight: 700;
    color: var(--text-muted);
    letter-spacing: 1px;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.stat-detail-item .label i {
    width: 12px;
    height: 12px;
    color: var(--accent);
}

.stat-detail-item .value {
    font-size: 1.1rem;
    font-weight: 800;
    color: #fff;
}

.weapon-detail-sounds {
    margin-top: 1rem;
}

.sounds-title {
    font-size: 0.9rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--text-muted);
}

.sounds-title i {
    color: var(--accent);
}

.sounds-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 1rem;
}

.sound-detail-btn {
    background: rgba(129, 142, 94, 0.1);
    border: 1px solid rgba(129, 142, 94, 0.3);
    color: #fff;
    padding: 1rem;
    border-radius: 10px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.2s ease;
}

.sound-detail-btn:hover {
    background: var(--accent);
    color: #000;
    border-color: #fff;
    transform: translateY(-2px);
}

.sound-detail-btn span {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 1px;
}

.sound-detail-btn i {
    width: 14px;
    height: 14px;
}

@media (max-width: 600px) {
    .weapon-detail-stats {
        grid-template-columns: repeat(2, 1fr);
    }
    .weapon-detail-title {
        font-size: 1.8rem;
    }
}

.weapon-card-trigger {
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.23, 1, 0.32, 1);
}

.weapon-card-trigger:hover {
    transform: translateY(-5px) scale(1.02);
    border-color: var(--accent);
    box-shadow: 0 10px 30px rgba(0,0,0,0.4), 0 0 15px rgba(129, 142, 94, 0.2);
}

.weapon-card-hint {
    margin-left: auto;
    color: var(--text-muted);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.03);
}

.weapon-card-trigger:hover .weapon-card-hint {
    color: var(--accent);
    background: rgba(129, 142, 94, 0.1);
    transform: rotate(90deg);
}

/* --- Medical Detail Modal (Compact & Tactical) --- */
.medical-detail-modal .map-modal-container {
    max-width: 600px;
    background: #080a08;
    border: 1px solid rgba(129, 142, 94, 0.4);
}

.medical-detail-container {
    padding: 1.2rem;
    padding-bottom: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.medical-detail-hero {
    text-align: center;
    padding: 1.5rem;
    background: linear-gradient(to bottom, rgba(129, 142, 94, 0.1), transparent);
    border-radius: 12px;
    border: 1px solid rgba(129, 142, 94, 0.1);
}

.medical-detail-icon {
    width: 48px;
    height: 48px;
    background: rgba(129, 142, 94, 0.15);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
    margin: 0 auto 1rem;
    box-shadow: 0 0 20px rgba(129, 142, 94, 0.2);
}

.medical-detail-icon i {
    width: 24px;
    height: 24px;
}

.medical-detail-title {
    font-size: 1.6rem;
    font-weight: 800;
    letter-spacing: 2px;
    color: #fff;
    text-transform: uppercase;
    margin: 0;
}

.medical-detail-grid {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.medical-info-block {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 1.2rem;
    border-radius: 12px;
}

.block-title {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--accent);
    opacity: 0.8;
}

.symptoms-list {
    list-style: none;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 0.75rem;
}

.symptoms-list li {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    color: #eee;
    font-size: 0.85rem;
    background: rgba(255, 255, 255, 0.03);
    padding: 0.5rem 0.8rem;
    border-radius: 6px;
}

.symptoms-list li i {
    width: 14px;
    height: 14px;
    color: var(--accent);
    flex-shrink: 0;
}

.treatment-card {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    background: rgba(129, 142, 94, 0.05);
    padding: 1rem;
    border-radius: 10px;
    border: 1px solid rgba(129, 142, 94, 0.2);
}

.treatment-image {
    width: 70px;
    height: 70px;
    background: #000;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem;
    flex-shrink: 0;
}

.treatment-image img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.treatment-info {
    text-align: left;
    flex-grow: 1;
}

.treatment-name {
    display: block;
    font-size: 1rem;
    font-weight: 700;
    color: var(--accent);
    margin-bottom: 0.4rem;
}

.prevention-hint {
    font-size: 0.75rem;
    color: var(--text-muted);
    line-height: 1.4;
    margin: 0;
}

