/* ==========================================================================
   CSS Portal C2-Game.net - Estilo Futurista Limpio y Profesional
   ========================================================================== */

@font-face {
    font-family: 'Gameplaya';
    src: url('../fonts/Gameplaya.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'Gamerspot';
    src: url('../fonts/gamerspot.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'Conthrax';
    src: url('../fonts/Conthrax-SemiBold.otf') format('opentype');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'Gabella';
    src: url('../fonts/Gabella.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'GabellaCollege';
    src: url('../fonts/GabellaCollege.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'GabellaShiny';
    src: url('../fonts/GabellaShiny.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'Galant';
    src: url('../fonts/galant.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'GameOnline';
    src: url('../fonts/GameOnlineDemoRegular.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'GaryFisher';
    src: url('../fonts/Gary Fisher Demo.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'GadreyShadow';
    src: url('../fonts/GadreyShadow.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'GAMEG';
    src: url('../fonts/GAMEG___.TTF') format('truetype');
    font-weight: normal;
    font-style: normal;
}


:root {
    color-scheme: dark;
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
    --font-cyber: 'Gameplaya', var(--font-heading);
    --font-terminal: 'Courier New', Courier, monospace;
    
    /* Paleta de Colores Dark Premium */
    --bg-main: #030306;
    --bg-card: rgba(8, 8, 14, 0.72);
    --bg-card-hover: rgba(14, 14, 24, 0.85);
    --border-color: rgba(255, 255, 255, 0.05);
    --border-hover: rgba(56, 189, 248, 0.3);
    
    /* Acentos */
    --accent-blue: #38bdf8;       /* C2jam / General */
    --accent-purple: #a78bfa;     /* MU */
    --accent-rose: #fb7185;       /* Ragnarok */
    --accent-green: #34d399;      /* Estado Online */
    
    /* Textos */
    --text-main: #ffffff;
    --text-body: #cbd5e1;
    --text-muted: #94a3b8;
    
    /* Sombras y Luces */
    --shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.15);
    --shadow-md: 0 12px 24px rgba(0, 0, 0, 0.25);
    --shadow-lg: 0 20px 48px rgba(0, 0, 0, 0.35);
    --glow-blue: 0 0 20px rgba(56, 189, 248, 0.15);
    --glow-purple: 0 0 20px rgba(167, 139, 250, 0.15);
    --glow-rose: 0 0 20px rgba(251, 113, 133, 0.15);
    
    /* Capa de fondo */
    --bg-overlay: rgba(3, 3, 6, 0.72);
}

html[data-theme="light"] {
    color-scheme: light;
    
    /* Paleta de Colores Light Premium ("Frosted Glass") */
    --bg-main: #f8fafc;
    --bg-card: rgba(255, 255, 255, 0.65);
    --bg-card-hover: rgba(255, 255, 255, 0.88);
    --border-color: rgba(15, 23, 42, 0.08);
    --border-hover: rgba(14, 165, 233, 0.4);
    
    /* Acentos contrastados para fondos claros */
    --accent-blue: #0284c7;       /* Sky blue oscuro */
    --accent-purple: #7c3aed;     /* Púrpura oscuro */
    --accent-rose: #e11d48;       /* Rosa intenso */
    --accent-green: #059669;      /* Verde esmeralda */
    
    /* Textos legibles */
    --text-main: #0f172a;         /* Slate 900 */
    --text-body: #334155;         /* Slate 700 */
    --text-muted: #64748b;        /* Slate 500 */
    
    /* Sombras y Luces */
    --shadow-sm: 0 4px 12px rgba(15, 23, 42, 0.04);
    --shadow-md: 0 12px 24px rgba(15, 23, 42, 0.06);
    --shadow-lg: 0 20px 48px rgba(15, 23, 42, 0.09);
    --glow-blue: 0 0 15px rgba(2, 132, 199, 0.12);
    --glow-purple: 0 0 15px rgba(124, 58, 237, 0.12);
    --glow-rose: 0 0 15px rgba(225, 29, 72, 0.12);
    
    /* Capa de fondo translúcida brillante */
    --bg-overlay: transparent;
}

/* ==========================================================================
   Configuración Base
   ========================================================================== */

* {
    box-sizing: border-box;
    transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

html, body {
    margin: 0;
    min-height: 100%;
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-main);
    background-image: 
        radial-gradient(circle at 50% 0%, rgba(56, 189, 248, 0.1) 0%, transparent 60%),
        radial-gradient(circle at 100% 100%, rgba(167, 139, 250, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 0% 100%, rgba(251, 113, 133, 0.04) 0%, transparent 50%);
    color: var(--text-body);
    font-family: var(--font-body);
    font-size: 1rem;
    line-height: 1.6;
}

/* Fondo especial para páginas con wallpaper */
body.home-page, body.mu-page, body.ro-page, body.c2jam-page {
    background-repeat: no-repeat;
    background-position: center top;
    background-size: cover;
    background-attachment: fixed;
}

body.home-page { background-image: url('../img/wallpaper portal.png'); }
body.mu-page { background-image: url('../img/wallpaper mu.jpg'); }
body.ro-page { background-image: url('../img/wallpaper ro.png'); }
body.c2jam-page { background-image: url('../img/wallpaper c2jam.jpeg'); }

/* Capa de oscurecimiento limpia */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    background: var(--bg-overlay);
    z-index: 0;
    pointer-events: none;
}

a {
    color: var(--accent-blue);
    text-decoration: none;
}

button {
    font-family: var(--font-body);
}

/* ==========================================================================
   Contenedor Principal y Estructura
   ========================================================================== */

.page-shell {
    max-width: 1200px;
    margin: 0 auto;
    padding: 32px 24px;
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    gap: 48px;
}

/* ==========================================================================
   Cabecera Premium
   ========================================================================== */

.site-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 28px;
    border-radius: 16px;
    background: rgba(8, 8, 14, 0.85);
    border: var(--border-color);
    box-shadow: var(--shadow-md), inset 0 1px 0 rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(16px);
    position: sticky;
    top: 16px;
    z-index: 100;
}

.brand {
    display: flex;
    align-items: center;
    gap: 16px;
    text-decoration: none;
}

.site-logo {
    width: 64px;
    height: 64px;
    object-fit: contain;
    border-radius: 12px;
    border: var(--border-color);
    background: rgba(255, 255, 255, 0.02);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.brand strong {
    display: block;
    font-family: var(--font-heading);
    font-size: 1.35rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    color: var(--text-main);
    text-transform: uppercase;
    background: linear-gradient(135deg, #ffffff 60%, var(--accent-blue) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.brand span {
    display: block;
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 500;
}

.site-nav {
    display: flex;
    align-items: center;
    gap: 12px;
}

.site-nav a {
    color: var(--text-body);
    font-size: 0.95rem;
    font-weight: 600;
    padding: 10px 20px;
    border-radius: 8px;
    background: transparent;
    border: 1px solid transparent;
}

.site-nav a:hover {
    color: var(--text-main);
    background: rgba(255, 255, 255, 0.03);
    border: var(--border-color);
    transform: translateY(-1px);
}

.site-nav a.active {
    color: var(--text-main);
    background: rgba(56, 189, 248, 0.08);
    border: 1px solid rgba(56, 189, 248, 0.2);
}

/* ==========================================================================
   Menú Desplegable
   ========================================================================== */

.nav-dropdown {
    position: relative;
}

.nav-dropdown-menu {
    display: none;
    position: absolute;
    right: 0;
    top: calc(100% + 12px);
    background: rgba(8, 8, 14, 0.96);
    border: var(--border-color);
    padding: 8px;
    border-radius: 12px;
    box-shadow: var(--shadow-lg);
    min-width: 160px;
    backdrop-filter: blur(12px);
    z-index: 120;
}

.nav-dropdown-menu::before {
    content: '';
    position: absolute;
    top: -16px;
    left: 0;
    right: 0;
    height: 16px;
    background: transparent;
}

.nav-dropdown-menu a {
    display: block;
    padding: 10px 14px;
    color: var(--text-body);
    font-size: 0.9rem;
    border-radius: 6px;
    margin-bottom: 4px;
}

.nav-dropdown-menu a:last-child {
    margin-bottom: 0;
}

.nav-dropdown-menu a:hover {
    background: rgba(255, 255, 255, 0.04);
    color: var(--text-main);
}

.nav-dropdown:hover .nav-dropdown-menu {
    display: block;
    animation: fadeIn 0.15s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(4px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ==========================================================================
   Sección Hero (Portal)
   ========================================================================== */

.hero-section {
    display: grid;
    grid-template-columns: 1.3fr 0.9fr;
    gap: 32px;
    align-items: stretch;
    margin-top: 16px;
}

.hero-copy {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 20px;
    padding: 48px;
    border-radius: 20px;
    background: var(--bg-card);
    border: var(--border-color);
    box-shadow: var(--shadow-lg), inset 0 1px 0 rgba(255, 255, 255, 0.02);
    backdrop-filter: blur(16px);
}

.eyebrow {
    font-family: var(--font-heading);
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.25em;
    color: var(--accent-blue);
}

.hero-copy h1 {
    font-family: var(--font-heading);
    font-size: clamp(1.8rem, 6vw, 3.8rem);
    font-weight: 800;
    line-height: 1.1;
    margin: 0;
    color: var(--text-main);
    letter-spacing: -0.01em;
}

.hero-text {
    font-size: 1.05rem;
    color: var(--text-body);
    line-height: 1.75;
    margin: 0;
}

/* Panel Lateral de Stats */
.hero-panel {
    display: grid;
    grid-template-rows: auto 1fr 1fr;
    gap: 24px;
}

.panel-card, .panel-stat {
    padding: 24px;
    border-radius: 16px;
    background: var(--bg-card);
    border: var(--border-color);
    box-shadow: var(--shadow-sm), inset 0 1px 0 rgba(255, 255, 255, 0.02);
    backdrop-filter: blur(12px);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.panel-highlight {
    background: linear-gradient(135deg, rgba(56, 189, 248, 0.08) 0%, rgba(8, 8, 14, 0.9) 100%);
    border-color: rgba(56, 189, 248, 0.18);
    box-shadow: var(--shadow-md), var(--glow-blue);
}

.panel-card span, .panel-stat span {
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-muted);
}

.panel-card strong, .panel-stat strong {
    font-family: var(--font-heading);
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--text-main);
    margin-top: 4px;
}

.panel-card p {
    margin: 8px 0 0 0;
    font-size: 0.95rem;
    color: var(--text-body);
}

.panel-highlight strong {
    color: var(--accent-green);
    display: flex;
    align-items: center;
    gap: 10px;
}

.panel-highlight strong::before {
    content: '';
    width: 12px;
    height: 12px;
    background: var(--accent-green);
    border-radius: 50%;
    display: inline-block;
    box-shadow: 0 0 10px var(--accent-green);
}

/* ==========================================================================
   Sección Servidores (Portal)
   ========================================================================== */

.servers-section {
    margin-top: 48px;
    padding: 48px;
    border-radius: 20px;
    background: var(--bg-card);
    border: var(--border-color);
    box-shadow: var(--shadow-lg);
    backdrop-filter: blur(16px);
}

.servers-section .section-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 48px;
    max-width: 100%;
    margin-bottom: 40px;
    border-bottom: none;
    padding-bottom: 0;
}

.servers-section .header-title-area {
    flex: 1;
}

.servers-section .header-desc {
    flex: 1.2;
    color: var(--text-body);
    font-size: 1.05rem;
    line-height: 1.7;
    margin: 0;
}

.servers-section h2 {
    font-family: var(--font-heading);
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--text-main);
    margin: 12px 0 16px;
}

.servers-section p {
    color: var(--text-body);
    font-size: 1.05rem;
    line-height: 1.7;
    margin: 0;
}

.server-toggle {
    display: flex;
    gap: 12px;
    margin-bottom: 32px;
    flex-wrap: wrap;
}

.toggle-btn {
    padding: 12px 28px;
    border-radius: 8px;
    font-family: var(--font-heading);
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-body);
    background: rgba(255, 255, 255, 0.02);
    border: var(--border-color);
    cursor: pointer;
}

.toggle-btn:hover {
    color: var(--text-main);
    border-color: rgba(255, 255, 255, 0.15);
    background: rgba(255, 255, 255, 0.05);
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

/* Rejilla de Servidores */
.servers-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.server-card {
    border-radius: 16px;
    padding: 32px;
    background: rgba(6, 6, 12, 0.65);
    border: var(--border-color);
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    gap: 20px;
    position: relative;
    overflow: hidden;
}

.server-card > * {
    position: relative;
    z-index: 2;
}

.server-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.02) 0%, transparent 100%);
    pointer-events: none;
    z-index: 2;
}

.server-card::after {
    content: '';
    position: absolute;
    inset: 0;
    opacity: 0.18;
    z-index: 1;
    transition: opacity 0.4s ease, transform 0.4s ease;
    background-size: cover;
    background-position: center;
    pointer-events: none;
    transform: scale(1.05);
}

.server-card:hover::after {
    opacity: 1;
    transform: scale(1);
}

.server-mu::after {
    background-image: linear-gradient(180deg, rgba(8, 8, 14, 0.4) 0%, rgba(3, 3, 6, 0.8) 100%), url('../img/card_mu.png');
}

.server-ro::after {
    background-image: linear-gradient(180deg, rgba(8, 8, 14, 0.4) 0%, rgba(3, 3, 6, 0.8) 100%), url('../img/card_ro.png');
}

.server-c2jam::after {
    background-image: linear-gradient(180deg, rgba(8, 8, 14, 0.4) 0%, rgba(3, 3, 6, 0.8) 100%), url('../img/card_c2jam.png');
}

.server-label {
    width: fit-content;
    padding: 6px 14px;
    border-radius: 6px;
    font-family: var(--font-heading);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    border: 1px solid transparent;
}

.server-card h3 {
    font-family: var(--font-heading);
    font-size: 1.45rem;
    font-weight: 700;
    margin: 0;
    color: var(--text-main);
}

.server-card p {
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--text-body);
    margin: 0;
}

.server-card ul {
    list-style: none;
    padding: 0;
    margin: auto 0 0 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.server-card li {
    font-size: 0.9rem;
    color: var(--text-muted);
    padding-left: 20px;
    position: relative;
}

.server-card li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 6px;
    height: 6px;
    border-radius: 50%;
}

/* Variantes de Servidores */
.server-mu .server-label {
    background: rgba(167, 139, 250, 0.06);
    color: var(--accent-purple);
    border-color: rgba(167, 139, 250, 0.18);
}
.server-mu li::before { background: var(--accent-purple); }
.server-mu:hover {
    border-color: rgba(167, 139, 250, 0.35);
    box-shadow: var(--shadow-md), var(--glow-purple);
    transform: translateY(-4px);
}

.server-ro .server-label {
    background: rgba(251, 113, 133, 0.06);
    color: var(--accent-rose);
    border-color: rgba(251, 113, 133, 0.18);
}
.server-ro li::before { background: var(--accent-rose); }
.server-ro:hover {
    border-color: rgba(251, 113, 133, 0.35);
    box-shadow: var(--shadow-md), var(--glow-rose);
    transform: translateY(-4px);
}

.server-c2jam .server-label {
    background: rgba(56, 189, 248, 0.06);
    color: var(--accent-blue);
    border-color: rgba(56, 189, 248, 0.18);
}
.server-c2jam li::before { background: var(--accent-blue); }
.server-c2jam:hover {
    border-color: rgba(56, 189, 248, 0.35);
    box-shadow: var(--shadow-md), var(--glow-blue);
    transform: translateY(-4px);
}

/* ==========================================================================
   Páginas Específicas de Servidores (Vistas de detalle)
   ========================================================================== */

.server-page {
    width: 100%;
}

.page-inner {
    display: flex;
    flex-direction: column;
    gap: 32px;
    padding: 40px;
    border-radius: 20px;
    background: var(--bg-card);
    border: var(--border-color);
    box-shadow: var(--shadow-lg);
    backdrop-filter: blur(16px);
}

/* Banner de Servidor */
.server-banner-wrap {
    overflow: hidden;
    border-radius: 12px;
    border: var(--border-color);
    box-shadow: var(--shadow-sm);
    aspect-ratio: 21 / 5;
    background: #000;
}

.server-banner {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.8;
}

/* Info de Cabecera en Servidor */
.server-header-info {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 28px;
    border-radius: 16px;
    background: rgba(4, 4, 8, 0.6);
    border: var(--border-color);
}

.server-header-info h1 {
    font-family: var(--font-heading);
    font-size: 2.2rem;
    font-weight: 800;
    margin: 0;
    color: var(--text-main);
}

.server-details {
    display: flex;
    gap: 16px;
}

.server-details .panel-card, .server-details .panel-stat {
    padding: 16px 24px;
    min-width: 140px;
}

/* Bloques de Contenido General en Servidor */
.c2jam-about, .c2jam-join, .c2jam-features, .c2jam-cta {
    padding: 32px;
    border-radius: 16px;
    background: rgba(6, 6, 12, 0.4);
    border: var(--border-color);
    display: flex;
    flex-direction: column;
    gap: 24px;
}

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

.section-icon {
    font-size: 1.5rem;
}

.section-header h2 {
    font-family: var(--font-heading);
    font-size: 1.55rem;
    font-weight: 700;
    margin: 0;
    color: var(--text-main);
}

.about-text-highlight {
    padding-left: 18px;
    border-left: 3px solid var(--accent-blue);
}

.about-text-highlight p {
    margin: 0;
    font-size: 1rem;
    color: var(--text-body);
    line-height: 1.7;
}

/* Como unirse */
.join-steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.join-card {
    padding: 24px;
    border-radius: 12px;
    background: rgba(12, 12, 22, 0.7);
    border: var(--border-color);
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 12px;
    text-decoration: none;
}

.join-card-link:hover {
    border-color: var(--border-hover);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.step-number {
    position: absolute;
    top: -12px;
    left: 20px;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--accent-blue);
    color: var(--bg-main);
    font-family: var(--font-heading);
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    box-shadow: 0 4px 8px rgba(56, 189, 248, 0.3);
}

.step-icon {
    font-size: 1.8rem;
}

.join-card h3 {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 700;
    margin: 0;
    color: var(--text-main);
}

.join-card p {
    margin: 0;
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.5;
}

/* Rejilla de Características */
.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.feature-card {
    padding: 24px;
    border-radius: 12px;
    background: rgba(12, 12, 22, 0.7);
    border: var(--border-color);
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.feature-icon {
    font-size: 1.5rem;
}

.feature-card h3 {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 700;
    margin: 0;
    color: var(--text-main);
}

.feature-card p {
    margin: 0;
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.6;
}

/* Slot de CTA */
.c2jam-cta {
    text-align: center;
    padding: 48px 32px;
}

.cta-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    max-width: 680px;
    margin: 0 auto;
}

.cta-icon {
    font-size: 2.2rem;
}

.c2jam-cta h2 {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 800;
    margin: 0;
    color: var(--text-main);
}

.c2jam-cta p {
    margin: 0;
    color: var(--text-body);
    font-size: 1rem;
    line-height: 1.7;
}

.cta-links {
    display: flex;
    gap: 16px;
    margin-top: 16px;
    flex-wrap: wrap;
    justify-content: center;
}

.cta-link-btn {
    padding: 12px 28px;
    border-radius: 8px;
    font-family: var(--font-heading);
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--bg-main);
    background: var(--accent-blue);
    border: 1px solid var(--accent-blue);
    box-shadow: 0 4px 12px rgba(56, 189, 248, 0.2);
}

.cta-link-btn:hover {
    background: transparent;
    color: var(--accent-blue);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.cta-links a:nth-child(2) {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--border-color);
    color: var(--text-main);
    box-shadow: none;
}

.cta-links a:nth-child(2):hover {
    background: rgba(255, 255, 255, 0.1);
}

/* ==========================================================================
   Pie de Página (Footer)
   ========================================================================== */

.site-footer {
    padding: 24px 32px;
    border-radius: 16px;
    background: rgba(8, 8, 14, 0.85);
    border: var(--border-color);
    box-shadow: var(--shadow-sm);
    display: flex;
    justify-content: center;
    text-align: center;
    align-items: center;
    color: var(--text-muted);
    font-size: 0.9rem;
    backdrop-filter: blur(16px);
    margin-top: 16px;
}

.site-footer p {
    margin: 0;
}

/* ==========================================================================
   Wallpapers de Expansión (Coming Soon)
   ========================================================================== */
.server-tibia::after {
    background-image: linear-gradient(180deg, rgba(8, 8, 14, 0.4) 0%, rgba(3, 3, 6, 0.8) 100%), url('../img/card_tibia.png');
}

.server-cs::after {
    background-image: linear-gradient(180deg, rgba(8, 8, 14, 0.4) 0%, rgba(3, 3, 6, 0.8) 100%), url('../img/card_cs.png');
}

.server-gunbound::after {
    background-image: linear-gradient(180deg, rgba(8, 8, 14, 0.4) 0%, rgba(3, 3, 6, 0.8) 100%), url('../img/card_gunbound.png');
}

/* Tibia Card Accent */
.server-tibia .server-label {
    background: rgba(74, 222, 128, 0.06);
    color: #4ade80;
    border-color: rgba(74, 222, 128, 0.18);
}
.server-tibia li::before { background: #4ade80; }
.server-tibia:hover {
    border-color: rgba(74, 222, 128, 0.35);
    box-shadow: var(--shadow-md), 0 0 20px rgba(74, 222, 128, 0.15);
    transform: translateY(-4px);
}

/* CS 1.6 Card Accent */
.server-cs .server-label {
    background: rgba(251, 146, 60, 0.06);
    color: #fb923c;
    border-color: rgba(251, 146, 60, 0.18);
}
.server-cs li::before { background: #fb923c; }
.server-cs:hover {
    border-color: rgba(251, 146, 60, 0.35);
    box-shadow: var(--shadow-md), 0 0 20px rgba(251, 146, 60, 0.15);
    transform: translateY(-4px);
}

/* Gunbound Card Accent */
.server-gunbound .server-label {
    background: rgba(6, 182, 212, 0.06);
    color: #06b6d4;
    border-color: rgba(6, 182, 212, 0.18);
}
.server-gunbound li::before { background: #06b6d4; }
.server-gunbound:hover {
    border-color: rgba(6, 182, 212, 0.35);
    box-shadow: var(--shadow-md), 0 0 20px rgba(6, 182, 212, 0.15);
    transform: translateY(-4px);
}

/* Badge de desarrollo para Coming Soon */
.coming-soon-card .status-badge {
    position: relative;
    z-index: 2;
    margin-top: auto;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding-top: 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.04);
}

/* ==========================================================================
   Sección Informativa de Discord (Operaciones Holográficas Cuánticas)
   ========================================================================== */
.discord-section-wrapper {
    margin-top: 56px;
    margin-bottom: 24px;
}

.discord-bridge-container {
    padding: 40px;
    border-radius: 20px;
    background: linear-gradient(135deg, rgba(88, 101, 242, 0.05) 0%, rgba(8, 8, 14, 0.9) 100%);
    border: 1px solid rgba(88, 101, 242, 0.15);
    box-shadow: var(--shadow-lg), 0 0 40px rgba(88, 101, 242, 0.04), inset 0 1px 0 rgba(255, 255, 255, 0.02);
    backdrop-filter: blur(20px);
    display: flex;
    flex-direction: column;
    gap: 32px;
    position: relative;
    overflow: hidden;
}

/* Decoraciones Técnicas de Bordes */
.discord-bridge-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 20px;
    height: 20px;
    border-top: 2px solid rgba(88, 101, 242, 0.4);
    border-left: 2px solid rgba(88, 101, 242, 0.4);
}

.discord-bridge-container::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 20px;
    height: 20px;
    border-bottom: 2px solid rgba(88, 101, 242, 0.4);
    border-right: 2px solid rgba(88, 101, 242, 0.4);
}

/* Cabecera del Puente */
.bridge-header {
    display: flex;
    align-items: center;
    gap: 20px;
    width: 100%;
}

.header-line {
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(88, 101, 242, 0.25), transparent);
}

.header-content {
    text-align: center;
}

.bridge-tag {
    display: block;
    font-family: var(--font-heading);
    font-size: 0.75rem;
    font-weight: 700;
    color: #5865F2;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    margin-bottom: 4px;
}

.bridge-title {
    font-family: var(--font-heading);
    font-size: 2.2rem;
    font-weight: normal;
    color: var(--text-main);
    margin: 0;
    letter-spacing: 0.05em;
    text-shadow: 0 0 12px rgba(88, 101, 242, 0.3);
}

.bridge-status-text {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin: 6px 0 0 0;
}

/* Grid Layout principal */
.bridge-layout {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 32px;
}

/* Columna Izquierda: Radar y Telemetría */
.console-left {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

/* Radar Scanner */
.radar-module {
    background: rgba(4, 4, 8, 0.6);
    border: 1px solid rgba(88, 101, 242, 0.1);
    border-radius: 12px;
    padding: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.radar-hud {
    position: relative;
    width: 180px;
    height: 180px;
    border-radius: 50%;
    border: 1px solid rgba(88, 101, 242, 0.15);
    background: radial-gradient(circle, rgba(88, 101, 242, 0.05) 0%, transparent 80%);
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Líneas de Radar */
.radar-hud::before {
    content: '';
    position: absolute;
    width: 66%;
    height: 66%;
    border-radius: 50%;
    border: 1px dashed rgba(88, 101, 242, 0.1);
}

.radar-hud::after {
    content: '';
    position: absolute;
    width: 33%;
    height: 33%;
    border-radius: 50%;
    border: 1px solid rgba(88, 101, 242, 0.1);
}

.radar-crosshair {
    position: absolute;
    inset: 0;
}
.radar-crosshair::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 1px;
    background: rgba(88, 101, 242, 0.1);
}
.radar-crosshair::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: rgba(88, 101, 242, 0.1);
}

/* Barrido del radar */
.radar-sweep {
    position: absolute;
    inset: 0;
    background: conic-gradient(from 0deg at 50% 50%, rgba(88, 101, 242, 0.25) 0deg, transparent 90deg, transparent 360deg);
    border-radius: 50%;
    animation: radar-sweep 4s linear infinite;
    transform-origin: center;
    z-index: 1;
}

/* Puntos de miembros escaneados en radar */
.radar-ping {
    position: absolute;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #5865F2;
    box-shadow: 0 0 8px #5865F2;
    opacity: 0;
}

.ping-1 { animation: radar-fade 4s ease-out infinite; }
.ping-2 { animation: radar-fade 4s ease-out infinite 1.3s; }
.ping-3 { animation: radar-fade 4s ease-out infinite 2.6s; }

@keyframes radar-sweep {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes radar-fade {
    0% { opacity: 0; transform: scale(0.8); }
    30% { opacity: 1; transform: scale(1.1); }
    100% { opacity: 0; transform: scale(0.8); }
}

.radar-label {
    position: absolute;
    bottom: 8px;
    font-family: var(--font-heading);
    font-size: 0.65rem;
    color: rgba(88, 101, 242, 0.5);
    letter-spacing: 0.15em;
    font-weight: 700;
}

/* Panel de Diagnósticos */
.diagnostics-panel {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.diag-item {
    background: rgba(8, 8, 14, 0.65);
    border: 1px solid rgba(255, 255, 255, 0.03);
    border-radius: 8px;
    padding: 12px 16px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.diag-val {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--text-main);
    margin-top: 4px;
}

.secure-glow {
    color: var(--accent-green);
    text-shadow: 0 0 10px rgba(52, 211, 153, 0.2);
    display: flex;
    align-items: center;
    gap: 6px;
}

.secure-glow::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--accent-green);
    display: inline-block;
    box-shadow: 0 0 6px var(--accent-green);
}

/* Tarjeta Access Key */
.access-key-card {
    background: rgba(4, 4, 8, 0.7);
    border: 1px dashed rgba(88, 101, 242, 0.25);
    border-radius: 12px;
    padding: 16px;
}

.key-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.key-title {
    font-family: var(--font-heading);
    font-size: 0.75rem;
    font-weight: 700;
    color: rgba(88, 101, 242, 0.75);
    letter-spacing: 0.05em;
}

.key-serial {
    font-family: var(--font-terminal);
    font-size: 0.7rem;
    color: var(--text-muted);
}

.key-input-container {
    display: flex;
    align-items: center;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 6px;
    padding: 4px 4px 4px 12px;
}

.key-icon {
    font-size: 0.9rem;
    margin-right: 8px;
    opacity: 0.6;
}

.key-input-container input {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    color: var(--text-main);
    font-family: var(--font-terminal);
    font-size: 0.9rem;
    width: 100%;
}

.key-input-container button {
    background: rgba(88, 101, 242, 0.15);
    border: 1px solid rgba(88, 101, 242, 0.3);
    color: #ffffff;
    padding: 6px 12px;
    border-radius: 4px;
    font-family: var(--font-heading);
    font-size: 0.75rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
}

.key-input-container button:hover {
    background: #5865F2;
    border-color: #5865F2;
    box-shadow: 0 0 10px rgba(88, 101, 242, 0.3);
}

.key-input-container button.copied {
    background: var(--accent-green);
    border-color: var(--accent-green);
}

/* Botón Cuántico de Link */
.core-link-btn {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    padding: 16px 24px;
    border-radius: 12px;
    background: rgba(8, 8, 14, 0.65);
    border: 1px solid rgba(56, 189, 248, 0.3);
    color: var(--accent-blue);
    font-family: var(--font-heading);
    font-size: 0.95rem;
    font-weight: 800;
    letter-spacing: 0.05em;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(56, 189, 248, 0.1);
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.core-link-btn:hover {
    background: rgba(56, 189, 248, 0.12);
    color: #ffffff;
    border-color: var(--accent-blue);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(56, 189, 248, 0.35), 0 0 15px rgba(56, 189, 248, 0.2);
}

.btn-arrow {
    font-size: 1rem;
    transition: transform 0.3s ease;
}

.core-link-btn:hover .btn-arrow {
    transform: translateX(4px) scale(1.1);
}

/* Columna Derecha: Operator HUD Matrix */
.console-right {
    display: flex;
    flex-direction: column;
    background: rgba(4, 4, 8, 0.45);
    border: 1px solid rgba(255, 255, 255, 0.03);
    border-radius: 12px;
    padding: 24px;
}

.manifest-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(88, 101, 242, 0.15);
    padding-bottom: 14px;
    margin-bottom: 16px;
}

.manifest-title-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
}

.pulse-indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--accent-green);
    box-shadow: 0 0 8px var(--accent-green);
    animation: diag-pulse 1.8s infinite;
}

@keyframes diag-pulse {
    0% { transform: scale(0.9); opacity: 0.6; }
    50% { transform: scale(1.1); opacity: 1; }
    100% { transform: scale(0.9); opacity: 0.6; }
}

.manifest-title {
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-main);
    letter-spacing: 0.1em;
}

.manifest-counter {
    font-family: var(--font-terminal);
    font-size: 0.8rem;
    color: #5865F2;
    font-weight: 600;
}

/* Grid de Operadores */
.operators-grid-hud {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    max-height: 310px;
    overflow-y: auto;
    padding-right: 6px;
}

/* Personalizar scrollbar de operadores */
.operators-grid-hud::-webkit-scrollbar {
    width: 4px;
}
.operators-grid-hud::-webkit-scrollbar-track {
    background: transparent;
}
.operators-grid-hud::-webkit-scrollbar-thumb {
    background: rgba(88, 101, 242, 0.2);
    border-radius: 2px;
}
.operators-grid-hud::-webkit-scrollbar-thumb:hover {
    background: rgba(88, 101, 242, 0.4);
}

.operator-placeholder-hud {
    grid-column: 1 / -1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 48px 0;
    color: var(--text-muted);
    font-family: var(--font-terminal);
    font-size: 0.85rem;
    gap: 12px;
}

.loading-scanner {
    width: 24px;
    height: 24px;
    border: 2px solid rgba(88, 101, 242, 0.1);
    border-top-color: #5865F2;
    border-radius: 50%;
    animation: radar-sweep 1s linear infinite;
}

/* HUD Tile para cada miembro */
.operator-hud-tile {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    background: rgba(14, 14, 26, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.02);
    border-radius: 8px;
    position: relative;
    overflow: hidden;
}

.operator-hud-tile::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(88, 101, 242, 0.05) 0%, transparent 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1;
    pointer-events: none;
}

.operator-hud-tile:hover::before {
    opacity: 1;
}

.operator-hud-tile:hover {
    border-color: rgba(88, 101, 242, 0.2);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    transform: translateY(-1px);
}

/* Efecto barrido de escáner en Hover */
.operator-hud-tile::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    top: -100%;
    height: 100%;
    background: linear-gradient(to bottom, transparent, rgba(88, 101, 242, 0.08) 50%, rgba(88, 101, 242, 0.15) 50%, transparent 51%, transparent);
    z-index: 2;
    pointer-events: none;
}

.operator-hud-tile:hover::after {
    animation: scanline-pass 1.2s cubic-bezier(0.19, 1, 0.22, 1) infinite;
}

@keyframes scanline-pass {
    0% { top: -100%; }
    100% { top: 100%; }
}

.operator-avatar-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    z-index: 2;
}

.operator-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.operator-status-dot {
    position: absolute;
    bottom: -2px;
    right: -2px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: 2px solid #08080e;
}

.status-dot-online { background-color: var(--accent-green); box-shadow: 0 0 6px var(--accent-green); }
.status-dot-idle { background-color: #f59e0b; box-shadow: 0 0 6px #f59e0b; }
.status-dot-dnd { background-color: #ef4444; box-shadow: 0 0 6px #ef4444; }
.status-dot-offline { background-color: #94a3b8; }

.operator-info {
    display: flex;
    flex-direction: column;
    min-width: 0;
    z-index: 2;
}

.operator-name {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-main);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.operator-game-process {
    font-size: 0.7rem;
    color: rgba(88, 101, 242, 0.85);
    font-family: var(--font-terminal);
    margin-top: 1px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 4px;
}

.operator-game-process::before {
    content: '';
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: #5865F2;
    display: inline-block;
    animation: diag-pulse 1s infinite;
}

.manifest-footer {
    border-top: 1px solid rgba(255, 255, 255, 0.03);
    padding-top: 14px;
    margin-top: 16px;
    text-align: center;
    font-family: var(--font-terminal);
    font-size: 0.75rem;
    color: var(--text-muted);
    letter-spacing: 0.05em;
}

/* Efecto de barrido de escaneo general para radar-refresh */
.operators-grid-hud.scanning .operator-hud-tile {
    animation: scan-flash 0.4s ease-out;
}

@keyframes scan-flash {
    0% { filter: brightness(1.5) contrast(1.1); border-color: rgba(88, 101, 242, 0.6); }
    100% { filter: brightness(1) contrast(1); border-color: rgba(255, 255, 255, 0.02); }
}

/* ==========================================================================
   Terminal Interactivo Monospace (Consola de Comandos)
   ========================================================================== */
.terminal-shell-wrapper {
    background: rgba(3, 3, 6, 0.85);
    border: 1px solid rgba(88, 101, 242, 0.15);
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: inset 0 0 15px rgba(0, 0, 0, 0.6);
}

.terminal-shell-header {
    background: rgba(8, 8, 14, 0.9);
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    padding: 10px 16px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.term-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}
.term-dot.red { background-color: #ef4444; }
.term-dot.yellow { background-color: #f59e0b; }
.term-dot.green { background-color: #10b981; }

.term-title {
    font-family: var(--font-terminal);
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-left: 10px;
}

.terminal-output {
    padding: 16px;
    font-family: var(--font-terminal);
    font-size: 0.8rem;
    line-height: 1.6;
    color: #a7f3d0; /* Tono verde terminal suave */
    background: #020204;
    height: 130px;
    overflow-y: auto;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}

.terminal-output::-webkit-scrollbar {
    width: 4px;
}
.terminal-output::-webkit-scrollbar-thumb {
    background: rgba(167, 243, 208, 0.2);
    border-radius: 2px;
}

.term-line {
    margin-bottom: 4px;
    white-space: pre-wrap;
    word-break: break-all;
}

.term-prompt {
    color: #38bdf8; /* Prompt azul */
    margin-right: 6px;
}

.term-line.text-success { color: var(--accent-green); }
.term-line.text-error { color: #f87171; }
.term-line.text-muted { color: var(--text-muted); }
.term-line.text-info { color: #38bdf8; }

.terminal-controls {
    background: rgba(8, 8, 14, 0.6);
    padding: 10px 16px;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.term-cmd-btn {
    background: rgba(56, 189, 248, 0.05);
    border: 1px solid rgba(56, 189, 248, 0.2);
    color: #38bdf8;
    padding: 6px 14px;
    border-radius: 4px;
    font-family: var(--font-terminal);
    font-size: 0.75rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.term-cmd-btn:hover {
    background: rgba(56, 189, 248, 0.15);
    border-color: #38bdf8;
    box-shadow: 0 0 8px rgba(56, 189, 248, 0.15);
}

/* ==========================================================================
   Collapse & Standby States (Operaciones Cuánticas)
   ========================================================================== */
.bridge-layout, .terminal-shell-wrapper {
    max-height: 2500px;
    opacity: 1;
    transition: max-height 0.5s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.4s ease, padding 0.4s ease, margin 0.4s ease;
}

.discord-bridge-container.collapsed .bridge-layout,
.discord-bridge-container.collapsed .terminal-shell-wrapper {
    max-height: 0 !important;
    opacity: 0 !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    overflow: hidden !important;
    pointer-events: none !important;
    border-color: transparent !important;
}

.bridge-controls {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 8px;
    justify-content: center;
}

.power-btn {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(88, 101, 242, 0.25);
    border-radius: 6px;
    color: var(--text-muted);
    font-family: var(--font-terminal);
    font-size: 0.75rem;
    font-weight: 700;
    padding: 6px 14px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s ease;
}

.power-btn:hover {
    border-color: #5865F2;
    color: var(--text-main);
    background: rgba(88, 101, 242, 0.1);
}

.power-led {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--accent-green);
    box-shadow: 0 0 6px var(--accent-green);
    transition: all 0.2s ease;
}

.discord-bridge-container.collapsed .power-led {
    background: #ef4444;
    box-shadow: 0 0 6px #ef4444;
}

.discord-bridge-container.collapsed .power-btn {
    border-color: rgba(239, 68, 68, 0.4);
}
.discord-bridge-container.collapsed .power-btn:hover {
    border-color: #ef4444;
    background: rgba(239, 68, 68, 0.1);
}

/* Standby Expandable Matrix */
/* Active game process monitor header */
.active-process-header {
    font-family: var(--font-terminal);
    font-size: 0.75rem;
    color: #5865F2;
    width: 100%;
    text-align: left;
    padding-top: 14px;
    margin-top: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.03);
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.standby-matrix-list {
    max-height: 250px;
    opacity: 1;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 10px;
    padding-right: 6px;
}

.standby-matrix-list::-webkit-scrollbar {
    width: 4px;
}
.standby-matrix-list::-webkit-scrollbar-track {
    background: transparent;
}
.standby-matrix-list::-webkit-scrollbar-thumb {
    background: rgba(88, 101, 242, 0.15);
    border-radius: 2px;
}

.standby-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 16px;
    background: rgba(8, 8, 14, 0.40);
    border: 1px solid rgba(255, 255, 255, 0.02);
    border-radius: 6px;
    font-family: var(--font-terminal);
    font-size: 0.75rem;
    transition: all 0.2s ease;
}

.standby-bar:hover {
    background: rgba(14, 14, 26, 0.60);
    border-color: rgba(88, 101, 242, 0.15);
}

.standby-left {
    display: flex;
    align-items: center;
    gap: 10px;
}

.standby-name {
    color: var(--text-main);
    font-weight: 500;
}

.standby-right {
    display: flex;
    align-items: center;
}

.standby-game-badge {
    background: rgba(88, 101, 242, 0.12);
    color: #5865F2;
    border: 1px solid rgba(88, 101, 242, 0.25);
    border-radius: 4px;
    padding: 2px 8px;
    font-size: 0.65rem;
    font-weight: 700;
}

.standby-idle-text {
    color: var(--text-muted);
    opacity: 0.6;
}

/* Adaptabilidad para el Puente Discord */
@media (max-width: 900px) {
    .bridge-layout {
        grid-template-columns: 1fr;
        gap: 24px;
    }
}

@media (max-width: 640px) {
    .discord-bridge-container {
        padding: 24px 16px;
    }
    .bridge-title {
        font-size: 1.8rem;
    }
    .operators-grid-hud {
        grid-template-columns: 1fr;
    }
    .bridge-header {
        flex-direction: column;
        gap: 10px;
    }
    .header-line {
        display: none;
    }
}

/* ==========================================================================
   Adaptabilidad Móvil (Responsive)
   ========================================================================== */

@media (max-width: 1024px) {
    .servers-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .join-steps, .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 900px) {
    .hero-section {
        grid-template-columns: 1fr;
    }
    
    .hero-panel {
        grid-template-columns: repeat(3, 1fr);
        grid-template-rows: auto;
    }
    
    .server-header-info {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .server-details {
        width: 100%;
    }

    .servers-section .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }
}

@media (max-width: 640px) {
    .page-shell {
        padding: 16px 12px;
    }
    
    .site-header {
        flex-direction: column;
        align-items: center;
        gap: 16px;
        text-align: center;
    }
    
    .site-nav {
        width: 100%;
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .site-nav a {
        padding: 8px 12px;
        font-size: 0.9rem;
    }
    
    .hero-copy {
        padding: 28px;
    }
    
    .hero-panel {
        grid-template-columns: 1fr;
    }
    
    .servers-section {
        padding: 28px;
    }
    
    .servers-grid, .join-steps, .features-grid {
        grid-template-columns: 1fr;
    }
    
    .site-footer {
        flex-direction: column;
        gap: 12px;
        text-align: center;
        padding: 24px;
    }
}

/* ==========================================================================
   Font Customizer Console [SYS_FONT]
   ========================================================================== */
.font-customizer-trigger {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 1000;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(8, 8, 14, 0.85);
    border: 1px solid rgba(56, 189, 248, 0.3);
    color: #38bdf8;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 0 16px rgba(56, 189, 248, 0.2);
    font-weight: bold;
    font-size: 0.95rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.font-customizer-trigger:hover {
    background: #38bdf8;
    color: #030306;
    border-color: #38bdf8;
    transform: rotate(90deg) scale(1.1);
    box-shadow: 0 0 24px rgba(56, 189, 248, 0.5);
}
.font-customizer-panel {
    position: fixed;
    bottom: 84px;
    right: 24px;
    z-index: 999;
    width: 320px;
    background: rgba(8, 8, 14, 0.95);
    border: 1px solid rgba(56, 189, 248, 0.2);
    border-radius: 12px;
    box-shadow: 0 20px 48px rgba(0, 0, 0, 0.5), 0 0 30px rgba(56, 189, 248, 0.05);
    backdrop-filter: blur(12px);
    padding: 16px;
    transform: translateY(20px) scale(0.95);
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.font-customizer-panel.active {
    transform: translateY(0) scale(1);
    opacity: 1;
    pointer-events: auto;
}
.font-customizer-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding-bottom: 10px;
    margin-bottom: 12px;
}
.font-customizer-title {
    font-family: var(--font-cyber);
    font-size: 0.85rem;
    color: #38bdf8;
    letter-spacing: 1px;
    display: flex;
    align-items: center;
    gap: 6px;
}
.font-customizer-close {
    background: transparent;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 1.1rem;
    padding: 0;
    line-height: 1;
}
.font-customizer-close:hover {
    color: #ef4444;
}
.font-options-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-height: 280px;
    overflow-y: auto;
    padding-right: 4px;
}
.font-options-list::-webkit-scrollbar {
    width: 4px;
}
.font-options-list::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.02);
}
.font-options-list::-webkit-scrollbar-thumb {
    background: rgba(56, 189, 248, 0.3);
    border-radius: 2px;
}
.font-option-btn {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 10px 12px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 6px;
    color: var(--text-body);
    font-size: 0.9rem;
    text-align: left;
    cursor: pointer;
    transition: all 0.2s ease;
}
.font-option-btn:hover {
    background: rgba(56, 189, 248, 0.08);
    border-color: rgba(56, 189, 248, 0.3);
    color: #ffffff;
    transform: translateX(4px);
}
.font-option-btn.active {
    background: rgba(56, 189, 248, 0.15);
    border-color: #38bdf8;
    color: #38bdf8;
    font-weight: 500;
}
.font-option-preview {
    font-size: 0.7rem;
    color: var(--text-muted);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 2px 6px;
    border-radius: 4px;
    font-family: var(--font-body);
}
.font-option-btn.active .font-option-preview {
    border-color: rgba(56, 189, 248, 0.3);
    color: #38bdf8;
}
.font-customizer-footer {
    margin-top: 12px;
    padding-top: 10px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 0.72rem;
    color: var(--text-muted);
    text-align: center;
    line-height: 1.4;
}

/* ==========================================================================
   Global Metrics & Geolocation Widget
   ========================================================================== */
.metrics-section {
    margin-top: 64px !important;
}
.metrics-grid {
    display: grid;
    grid-template-columns: 1fr 1.3fr;
    gap: 32px;
    margin-top: 32px;
}
.metrics-summary-panel {
    display: flex;
    flex-direction: column;
    gap: 20px;
}
.metric-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 28px;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
}
.glow-card-blue {
    border-color: rgba(56, 189, 248, 0.15);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2), inset 0 0 12px rgba(56, 189, 248, 0.05);
}
.metric-title {
    font-size: 0.75rem;
    font-family: var(--font-body);
    color: var(--text-muted);
    letter-spacing: 1.5px;
    text-transform: uppercase;
    font-weight: 600;
}
.metric-value {
    font-size: 3.2rem;
    font-family: var(--font-heading);
    color: #ffffff;
    line-height: 1.2;
    margin: 8px 0;
    text-shadow: 0 0 16px rgba(255, 255, 255, 0.15);
}
.metric-sub {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin: 0;
}
.metric-diagnostics-console {
    background: rgba(4, 4, 8, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.04);
    border-radius: 8px;
    padding: 16px;
    font-family: var(--font-terminal);
    font-size: 0.8rem;
}
.console-head {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.75rem;
    color: var(--text-muted);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    padding-bottom: 8px;
    margin-bottom: 12px;
    letter-spacing: 1px;
}
.console-dot-indicator {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--accent-green);
    box-shadow: 0 0 8px var(--accent-green);
    display: inline-block;
}
.console-row {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 16px;
    margin-bottom: 8px;
    font-size: 0.8rem;
    align-items: start;
}
.console-row span:first-child {
    color: var(--text-muted);
}
.console-row span:last-child {
    text-align: right;
}
.countries-rank-widget {
    background: var(--bg-card);
    border: 1px solid rgba(167, 139, 250, 0.15);
    border-radius: 12px;
    padding: 24px 28px;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.4), inset 0 0 16px rgba(167, 139, 250, 0.01);
}
.countries-rank-widget .widget-header {
    display: flex;
    align-items: center;
    gap: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding-bottom: 14px;
    margin-bottom: 16px;
}
.countries-rank-widget .widget-icon {
    font-size: 1.15rem;
}
.countries-rank-widget .widget-title {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    color: #ffffff;
    margin: 0;
    letter-spacing: 0.5px;
}
.countries-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.country-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 12px;
    background: rgba(255, 255, 255, 0.01);
    border: 1px solid rgba(255, 255, 255, 0.03);
    border-radius: 6px;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}
.country-row:hover {
    background: rgba(167, 139, 250, 0.05);
    border-color: rgba(167, 139, 250, 0.25);
    transform: translateX(4px);
}
.country-left {
    display: flex;
    align-items: center;
    gap: 12px;
}
.country-rank {
    font-family: var(--font-body);
    font-size: 0.8rem;
    color: var(--text-muted);
    width: 20px;
    text-align: center;
    font-weight: 600;
}
.country-flag {
    width: 24px;
    height: 15px;
    border-radius: 2px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
    display: block;
    object-fit: cover;
}
.country-flag-placeholder {
    font-size: 0.95rem;
    width: 24px;
    text-align: center;
}
.country-name {
    color: #ffffff;
    font-size: 0.9rem;
}
.country-right {
    display: flex;
    align-items: center;
}
.country-visits {
    font-family: var(--font-heading);
    font-size: 0.95rem;
    color: var(--accent-purple);
    text-shadow: 0 0 10px rgba(167, 139, 250, 0.5);
    font-weight: bold;
}
.country-row-empty {
    padding: 24px;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.9rem;
    font-style: italic;
}

@media (max-width: 900px) {
    .metrics-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
}

/* ==========================================================================
   Language Selector Dropdown [SYS_LANG]
   ========================================================================== */
.language-selector {
    position: relative;
}
.lang-trigger {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--text-body) !important;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}
.lang-trigger:hover {
    color: #ffffff !important;
}
.lang-flag {
    width: 18px;
    height: 12px;
    object-fit: cover;
    border-radius: 1px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
    display: inline-block;
}
.dropdown-right {
    left: auto !important;
    right: 0 !important;
}
.nav-dropdown-menu.dropdown-right a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px;
    white-space: nowrap;
}
/* ==========================================================================
   Carousel Hero Section [SYS_CAROUSEL]
   ========================================================================== */
.hero-carousel {
    position: relative;
    width: 100%;
    height: 480px;
    border-radius: 20px;
    overflow: hidden;
    margin-top: 16px;
    border: var(--border-color);
    box-shadow: var(--shadow-lg), 0 0 20px rgba(56, 189, 248, 0.1);
}

.carousel-slides {
    width: 100%;
    height: 100%;
    position: relative;
}

.carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.8s ease-in-out, visibility 0.8s;
    z-index: 1;
}

.carousel-slide.active {
    opacity: 1;
    visibility: visible;
    z-index: 2;
}

/* Semi-transparent dark overlay for background legibility */
.carousel-slide::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, rgba(8, 8, 14, 0.85) 0%, rgba(8, 8, 14, 0.3) 50%, rgba(8, 8, 14, 0.85) 100%);
    z-index: 2;
}

/* Slide Content Card */
.carousel-content-card {
    position: absolute;
    left: 48px;
    top: 50%;
    transform: translateY(-50%);
    width: 460px;
    padding: 36px;
    border-radius: 20px;
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(16px);
    z-index: 3;
    display: flex;
    flex-direction: column;
    gap: 16px;
    animation: slideUpFade 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes slideUpFade {
    from { opacity: 0; transform: translateY(-40%); }
    to { opacity: 1; transform: translateY(-50%); }
}

.carousel-content-card .eyebrow {
    font-size: 0.75rem;
    color: var(--accent-blue);
    text-shadow: 0 0 10px rgba(56, 189, 248, 0.3);
}

.carousel-content-card h2 {
    font-family: var(--font-heading);
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--text-main);
    margin: 0;
    line-height: 1.2;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.carousel-content-card p {
    font-size: 0.95rem;
    color: var(--text-body);
    line-height: 1.6;
    margin: 0;
}

.carousel-action-btn {
    display: inline-flex;
    align-self: flex-start;
    justify-content: center;
    align-items: center;
    gap: 12px;
    padding: 14px 24px;
    border-radius: 12px;
    background: rgba(8, 8, 14, 0.65);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #ffffff;
    font-family: var(--font-heading);
    font-size: 0.95rem;
    font-weight: 800;
    letter-spacing: 0.05em;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    text-decoration: none;
    transition: all 0.3s ease;
    backdrop-filter: blur(8px);
}

.carousel-action-btn.btn-mu {
    border-color: rgba(167, 139, 250, 0.3);
    color: var(--accent-purple) !important;
    box-shadow: 0 4px 15px rgba(167, 139, 250, 0.1);
}
.carousel-action-btn.btn-mu:hover {
    background: rgba(167, 139, 250, 0.12);
    border-color: var(--accent-purple);
    color: #ffffff !important;
    box-shadow: 0 8px 24px rgba(167, 139, 250, 0.35), 0 0 15px rgba(167, 139, 250, 0.2);
    transform: translateY(-2px);
}

.carousel-action-btn.btn-ro {
    border-color: rgba(251, 113, 133, 0.3);
    color: var(--accent-rose) !important;
    box-shadow: 0 4px 15px rgba(251, 113, 133, 0.1);
}
.carousel-action-btn.btn-ro:hover {
    background: rgba(251, 113, 133, 0.12);
    border-color: var(--accent-rose);
    color: #ffffff !important;
    box-shadow: 0 8px 24px rgba(251, 113, 133, 0.35), 0 0 15px rgba(251, 113, 133, 0.2);
    transform: translateY(-2px);
}

.carousel-action-btn.btn-c2jam {
    border-color: rgba(56, 189, 248, 0.3);
    color: var(--accent-blue) !important;
    box-shadow: 0 4px 15px rgba(56, 189, 248, 0.1);
}
.carousel-action-btn.btn-c2jam:hover {
    background: rgba(56, 189, 248, 0.12);
    border-color: var(--accent-blue);
    color: #ffffff !important;
    box-shadow: 0 8px 24px rgba(56, 189, 248, 0.35), 0 0 15px rgba(56, 189, 248, 0.2);
    transform: translateY(-2px);
}

.carousel-action-btn .btn-arrow {
    font-size: 1rem;
    transition: transform 0.3s ease;
}

.carousel-action-btn:hover .btn-arrow {
    transform: translateX(4px) scale(1.1);
}

/* Nav Buttons */
.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #ffffff;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 4;
    transition: all 0.25s ease;
    backdrop-filter: blur(8px);
}

.carousel-btn:hover {
    background: rgba(56, 189, 248, 0.2);
    border-color: var(--accent-blue);
    box-shadow: 0 0 12px rgba(56, 189, 248, 0.3);
    color: var(--accent-blue);
}

.carousel-btn.prev {
    left: 20px;
}

.carousel-btn.next {
    right: 20px;
}

/* Indicator Dots */
.carousel-dots {
    position: absolute;
    bottom: 24px;
    right: 48px;
    display: flex;
    gap: 8px;
    z-index: 4;
}

.carousel-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    cursor: pointer;
    transition: all 0.25s ease;
    border: none;
    padding: 0;
}

.carousel-dot:hover {
    background: rgba(255, 255, 255, 0.7);
}

.carousel-dot.active {
    background: var(--accent-blue);
    box-shadow: 0 0 8px var(--accent-blue);
    transform: scale(1.2);
}

/* Responsividad */
@media (max-width: 768px) {
    body.home-page, body.mu-page, body.ro-page, body.c2jam-page {
        background-attachment: scroll;
        background-position: center top;
        background-size: cover;
    }
    .hero-carousel {
        height: 400px;
    }
    .carousel-content-card {
        left: 20px;
        right: 20px;
        width: auto;
        padding: 24px;
    }
    .carousel-content-card h2 {
        font-size: 1.8rem;
    }
    .carousel-btn {
        display: none;
    }
    .carousel-dots {
        right: 50%;
        transform: translateX(50%);
        bottom: 16px;
    }
}

/* Enlaces envolventes para tarjetas de servidores */
.server-card-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

/* Estilos para el Selector de Idioma dentro del panel de control flotante */
.panel-section-title {
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--text-muted);
    letter-spacing: 0.1em;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 6px;
    text-transform: uppercase;
}

.lang-options-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    margin-bottom: 12px;
}

.lang-option-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 10px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 6px;
    color: var(--text-body) !important;
    font-size: 0.85rem;
    text-decoration: none;
    transition: all 0.2s ease;
}

.lang-option-btn:hover {
    background: rgba(56, 189, 248, 0.08);
    border-color: rgba(56, 189, 248, 0.3);
    color: #ffffff !important;
    transform: translateY(-1px);
}

.lang-option-btn.active {
    background: rgba(56, 189, 248, 0.15);
    border-color: #38bdf8;
    color: #38bdf8 !important;
    font-weight: 600;
}

/* ==========================================================================
   Player Card Modal [SYS_PLAYER_CARD]
   ========================================================================== */
.player-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(3, 3, 6, 0.82);
    backdrop-filter: blur(12px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1100;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease, visibility 0.25s ease;
}

.player-modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.player-card-container {
    width: 92%;
    max-width: 480px;
    background: linear-gradient(135deg, rgba(8, 8, 14, 0.95) 0%, rgba(14, 14, 26, 0.98) 100%);
    border: 1px solid rgba(88, 101, 242, 0.25);
    border-radius: 20px;
    box-shadow: var(--shadow-lg), 0 0 40px rgba(88, 101, 242, 0.15), inset 0 1px 0 rgba(255, 255, 255, 0.05);
    padding: 28px;
    position: relative;
    overflow: hidden;
    transform: scale(0.92);
    transition: transform 0.28s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.player-modal-overlay.active .player-card-container {
    transform: scale(1);
}

/* Technical scanner animation inside modal */
.player-card-container::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    top: -100%;
    height: 100%;
    background: linear-gradient(to bottom, transparent, rgba(88, 101, 242, 0.03) 50%, rgba(88, 101, 242, 0.08) 50%, transparent 51%, transparent);
    z-index: 1;
    pointer-events: none;
    animation: scanline-pass 3s linear infinite;
}

/* Modal layout components */
.player-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    padding-bottom: 16px;
    margin-bottom: 20px;
}

.player-title-wrap {
    display: flex;
    flex-direction: column;
}

.player-card-tag {
    font-family: var(--font-heading);
    font-size: 0.7rem;
    font-weight: 700;
    color: #5865f2;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    margin-bottom: 4px;
}

.player-username {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--text-main);
    line-height: 1.2;
}

.player-close-x {
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;
    padding: 0 4px;
    transition: color 0.2s ease, transform 0.2s ease;
}

.player-close-x:hover {
    color: #ef4444;
    transform: scale(1.1);
}

/* Content Area */
.player-card-body {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.player-profile-row {
    display: flex;
    gap: 24px;
    align-items: center;
}

.player-avatar-holder {
    position: relative;
    width: 96px;
    height: 96px;
    flex-shrink: 0;
}

.player-avatar-img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    background: rgba(255, 255, 255, 0.05);
    border: 3px solid rgba(88, 101, 242, 0.3);
    box-shadow: 0 0 15px rgba(88, 101, 242, 0.1);
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

/* Status ring color adjustments */
.player-avatar-holder.status-online .player-avatar-img { border-color: var(--accent-green); box-shadow: 0 0 20px rgba(52, 211, 153, 0.3); }
.player-avatar-holder.status-idle .player-avatar-img { border-color: #f59e0b; box-shadow: 0 0 20px rgba(245, 158, 11, 0.3); }
.player-avatar-holder.status-dnd .player-avatar-img { border-color: #ef4444; box-shadow: 0 0 20px rgba(239, 68, 68, 0.3); }

.player-status-badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 0.68rem;
    font-weight: 700;
    font-family: var(--font-heading);
    text-transform: uppercase;
    border: 1px solid transparent;
}
.player-status-badge.status-online { background: rgba(52, 211, 153, 0.12); color: var(--accent-green); border-color: rgba(52, 211, 153, 0.25); box-shadow: 0 0 10px rgba(52, 211, 153, 0.08); }
.player-status-badge.status-idle { background: rgba(245, 158, 11, 0.12); color: #f59e0b; border-color: rgba(245, 158, 11, 0.25); box-shadow: 0 0 10px rgba(245, 158, 11, 0.08); }
.player-status-badge.status-dnd { background: rgba(239, 68, 68, 0.12); color: #ef4444; border-color: rgba(239, 68, 68, 0.25); box-shadow: 0 0 10px rgba(239, 68, 68, 0.08); }

.player-details-col {
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1;
    min-width: 0;
}

.player-detail-item {
    display: flex;
    flex-direction: column;
}

.player-detail-label {
    font-size: 0.68rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 600;
}

.player-detail-value {
    font-size: 0.95rem;
    color: var(--text-main);
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 6px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.player-detail-value img.country-flag {
    margin: 0;
}

/* Badges de Roles */
.role-badge {
    display: inline-block;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    font-family: var(--font-heading);
}
.role-admin { background: rgba(167, 139, 250, 0.15); color: var(--accent-purple); border: 1px solid rgba(167, 139, 250, 0.3); }
.role-gm { background: rgba(52, 211, 153, 0.15); color: var(--accent-green); border: 1px solid rgba(52, 211, 153, 0.3); }
.role-mod { background: rgba(56, 189, 248, 0.15); color: var(--accent-blue); border: 1px solid rgba(56, 189, 248, 0.3); }
.role-elite { background: rgba(251, 146, 60, 0.15); color: #fb923c; border: 1px solid rgba(251, 146, 60, 0.3); }
.role-beta { background: rgba(148, 163, 184, 0.15); color: var(--text-muted); border: 1px solid rgba(148, 163, 184, 0.3); }
.role-gladiator { background: rgba(239, 68, 68, 0.15); color: #ef4444; border: 1px solid rgba(239, 68, 68, 0.3); }
.role-vip { background: rgba(251, 113, 133, 0.15); color: var(--accent-rose); border: 1px solid rgba(251, 113, 133, 0.3); }
.role-veteran { background: rgba(6, 182, 212, 0.15); color: #06b6d4; border: 1px solid rgba(6, 182, 212, 0.3); }
.role-contributor { background: rgba(234, 179, 8, 0.15); color: #eab308; border: 1px solid rgba(234, 179, 8, 0.3); }
.role-vanguard { background: rgba(168, 85, 247, 0.15); color: #a855f7; border: 1px solid rgba(168, 85, 247, 0.3); }

/* Grid de Estadísticas */
.player-stats-section {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.player-section-title {
    font-family: var(--font-heading);
    font-size: 0.75rem;
    font-weight: 700;
    color: rgba(88, 101, 242, 0.7);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    border-bottom: 1px dashed rgba(255, 255, 255, 0.05);
    padding-bottom: 6px;
}

.player-stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.player-stat-box {
    background: rgba(8, 8, 14, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.03);
    border-radius: 8px;
    padding: 10px 14px;
    display: flex;
    flex-direction: column;
}

.player-stat-label {
    font-size: 0.65rem;
    color: var(--text-muted);
    text-transform: uppercase;
}

.player-stat-val {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--text-main);
    margin-top: 2px;
}

/* Biografía / Estado */
.player-bio-box {
    background: rgba(88, 101, 242, 0.03);
    border-left: 3px solid rgba(88, 101, 242, 0.4);
    border-radius: 0 8px 8px 0;
    padding: 12px 16px;
}

.player-bio-text {
    font-size: 0.85rem;
    line-height: 1.5;
    color: var(--text-body);
    font-style: italic;
    margin: 0;
}

/* Botón de Cierre */
.player-action-btn {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    padding: 12px;
    border-radius: 10px;
    background: rgba(8, 8, 14, 0.6);
    border: 1px solid rgba(88, 101, 242, 0.3);
    color: #ffffff;
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-top: 8px;
}

.player-action-btn:hover {
    background: rgba(88, 101, 242, 0.15);
    border-color: #5865f2;
    box-shadow: 0 0 12px rgba(88, 101, 242, 0.25);
}

/* Cursor pointer para tiles clickeables de operarios */
.operator-hud-tile, .standby-bar {
    cursor: pointer;
}

/* ==========================================================================
   Sobreescrituras para Tema Claro (Light Theme)
   ========================================================================== */
html[data-theme="light"] .site-header {
    background: rgba(255, 255, 255, 0.65);
    border: 1px solid rgba(15, 23, 42, 0.08);
    box-shadow: var(--shadow-md), inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

html[data-theme="light"] .brand strong {
    background: linear-gradient(135deg, var(--text-main) 60%, var(--accent-blue) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

html[data-theme="light"] .site-nav a:hover {
    background: rgba(15, 23, 42, 0.04);
}

html[data-theme="light"] .site-nav a.active {
    background: rgba(2, 132, 199, 0.08);
    border: 1px solid rgba(2, 132, 199, 0.25);
    color: var(--accent-blue);
}

html[data-theme="light"] .nav-dropdown-menu {
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(15, 23, 42, 0.08);
}

html[data-theme="light"] .nav-dropdown-menu a:hover {
    background: rgba(15, 23, 42, 0.04);
}

/* Hero Carousel */
html[data-theme="light"] .carousel-content-card {
    background: rgba(255, 255, 255, 0.65);
    border: 1px solid rgba(15, 23, 42, 0.08);
    box-shadow: 0 20px 40px rgba(15, 23, 42, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

html[data-theme="light"] .carousel-content-card h2 {
    text-shadow: none;
}

html[data-theme="light"] .carousel-action-btn {
    background: rgba(255, 255, 255, 0.7);
    border: 1px solid rgba(15, 23, 42, 0.1);
    color: var(--text-main);
}

html[data-theme="light"] .carousel-action-btn:hover {
    background: var(--text-main);
    color: var(--bg-main);
}

/* Discord Interlink Widget */
html[data-theme="light"] .discord-bridge-container {
    background: linear-gradient(135deg, rgba(88, 101, 242, 0.08) 0%, rgba(255, 255, 255, 0.65) 100%);
    border: 1px solid rgba(88, 101, 242, 0.2);
    box-shadow: var(--shadow-lg), 0 0 40px rgba(88, 101, 242, 0.02);
}

html[data-theme="light"] .diag-item {
    background: rgba(255, 255, 255, 0.5);
    border: 1px solid rgba(15, 23, 42, 0.04);
}

html[data-theme="light"] .operator-hud-tile {
    background: rgba(255, 255, 255, 0.45);
    border: 1px solid rgba(15, 23, 42, 0.04);
}

html[data-theme="light"] .operator-hud-tile:hover {
    border-color: rgba(88, 101, 242, 0.3);
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.06);
}

html[data-theme="light"] .standby-bar {
    background: rgba(255, 255, 255, 0.45);
    border: 1px solid rgba(15, 23, 42, 0.04);
}

html[data-theme="light"] .standby-bar:hover {
    border-color: rgba(88, 101, 242, 0.3);
}

html[data-theme="light"] .active-process-header {
    border-top: 1px solid rgba(15, 23, 42, 0.08);
}

html[data-theme="light"] .access-key-card {
    background: rgba(255, 255, 255, 0.5);
    border: 1px solid rgba(15, 23, 42, 0.06);
}

html[data-theme="light"] .access-key-card input {
    background: rgba(255, 255, 255, 0.65);
    border: 1px solid rgba(15, 23, 42, 0.08);
    color: var(--text-main);
}

html[data-theme="light"] .access-key-card button {
    background: rgba(88, 101, 242, 0.08);
    color: #5865F2;
    border: 1px solid rgba(88, 101, 242, 0.2);
}

html[data-theme="light"] .access-key-card button:hover {
    background: #5865F2;
    color: #ffffff;
}

html[data-theme="light"] .core-link-btn {
    background: #5865F2;
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(88, 101, 242, 0.25);
}

html[data-theme="light"] .core-link-btn:hover {
    background: #4752c4;
    box-shadow: 0 4px 16px rgba(88, 101, 242, 0.4);
}

html[data-theme="light"] .power-btn {
    border: 1px solid rgba(15, 23, 42, 0.1);
    color: var(--text-body);
}

html[data-theme="light"] .power-btn:hover {
    background: rgba(15, 23, 42, 0.04);
}

/* Terminal */
html[data-theme="light"] .terminal-shell-wrapper {
    background: rgba(255, 255, 255, 0.6);
    border: 1px solid rgba(88, 101, 242, 0.2);
    box-shadow: inset 0 0 15px rgba(255, 255, 255, 0.4);
}

html[data-theme="light"] .terminal-shell-header {
    background: rgba(255, 255, 255, 0.75);
    border-bottom: 1px solid rgba(15, 23, 42, 0.06);
    color: var(--text-main);
}

html[data-theme="light"] .terminal-output {
    background: rgba(255, 255, 255, 0.75);
    color: #065f46;
    border-bottom: 1px solid rgba(15, 23, 42, 0.05);
}

html[data-theme="light"] .terminal-output::-webkit-scrollbar-thumb {
    background: rgba(6, 95, 70, 0.2);
}

html[data-theme="light"] .term-prompt {
    color: #0284c7;
}

html[data-theme="light"] .term-line.text-success { color: #059669; }
html[data-theme="light"] .term-line.text-error { color: #dc2626; }
html[data-theme="light"] .term-line.text-muted { color: #64748b; }
html[data-theme="light"] .term-line.text-info { color: #0284c7; }

html[data-theme="light"] .terminal-controls {
    background: rgba(255, 255, 255, 0.6);
}

html[data-theme="light"] .term-cmd-btn {
    background: rgba(2, 132, 199, 0.05);
    border: 1px solid rgba(2, 132, 199, 0.2);
    color: #0284c7;
}

html[data-theme="light"] .term-cmd-btn:hover {
    background: #0284c7;
    color: #ffffff;
}

/* Server Cards */
html[data-theme="light"] .server-card {
    background: rgba(255, 255, 255, 0.65);
}

html[data-theme="light"] .server-card::before {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.4) 0%, transparent 100%);
}

html[data-theme="light"] .server-card::after {
    opacity: 0.3 !important; /* Visible por defecto en modo claro */
}

html[data-theme="light"] .server-card:hover::after {
    opacity: 1 !important;
}

html[data-theme="light"] .server-mu::after {
    background-image: linear-gradient(180deg, rgba(248, 250, 252, 0.25) 0%, rgba(248, 250, 252, 0.7) 100%), url('../img/card_mu.png');
}

html[data-theme="light"] .server-ro::after {
    background-image: linear-gradient(180deg, rgba(248, 250, 252, 0.25) 0%, rgba(248, 250, 252, 0.7) 100%), url('../img/card_ro.png');
}

html[data-theme="light"] .server-c2jam::after {
    background-image: linear-gradient(180deg, rgba(248, 250, 252, 0.25) 0%, rgba(248, 250, 252, 0.7) 100%), url('../img/card_c2jam.png');
}

html[data-theme="light"] .server-tibia::after {
    background-image: linear-gradient(180deg, rgba(248, 250, 252, 0.25) 0%, rgba(248, 250, 252, 0.7) 100%), url('../img/card_tibia.png');
}

html[data-theme="light"] .server-cs::after {
    background-image: linear-gradient(180deg, rgba(248, 250, 252, 0.25) 0%, rgba(248, 250, 252, 0.7) 100%), url('../img/card_cs.png');
}

html[data-theme="light"] .server-gunbound::after {
    background-image: linear-gradient(180deg, rgba(248, 250, 252, 0.25) 0%, rgba(248, 250, 252, 0.7) 100%), url('../img/card_gunbound.png');
}

html[data-theme="light"] .coming-soon-card {
    background: rgba(255, 255, 255, 0.45);
}

/* Control Panel */
html[data-theme="light"] .font-customizer-panel {
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(15, 23, 42, 0.08);
    box-shadow: var(--shadow-lg);
}

html[data-theme="light"] .font-customizer-header {
    background: rgba(248, 250, 252, 0.8);
    border-bottom: 1px solid rgba(15, 23, 42, 0.06);
}

html[data-theme="light"] .font-option-btn, 
html[data-theme="light"] .lang-option-btn {
    background: rgba(255, 255, 255, 0.7);
    border: 1px solid rgba(15, 23, 42, 0.08);
    color: var(--text-body);
}

html[data-theme="light"] .font-option-btn:hover, 
html[data-theme="light"] .lang-option-btn:hover {
    background: rgba(15, 23, 42, 0.04);
}

html[data-theme="light"] .font-option-btn.active, 
html[data-theme="light"] .lang-option-btn.active {
    background: rgba(2, 132, 199, 0.08);
    border: 1px solid rgba(2, 132, 199, 0.25);
    color: #0284c7;
}

/* Metrics summary (Evitar textos blancos sobre fondos blancos) */
html[data-theme="light"] .metrics-summary-panel .metric-card {
    background: rgba(255, 255, 255, 0.65);
    border: 1px solid rgba(15, 23, 42, 0.08);
}

html[data-theme="light"] .metric-value {
    color: var(--text-main) !important;
    text-shadow: none !important;
}

html[data-theme="light"] .metric-diagnostics-console {
    background: rgba(255, 255, 255, 0.5);
    border: 1px solid rgba(15, 23, 42, 0.06);
}

html[data-theme="light"] .countries-rank-widget {
    background: rgba(255, 255, 255, 0.65);
    border: 1px solid rgba(15, 23, 42, 0.08);
}

html[data-theme="light"] .countries-rank-widget .widget-title {
    color: var(--text-main) !important;
}

html[data-theme="light"] .countries-rank-widget .widget-header {
    border-bottom-color: rgba(15, 23, 42, 0.08) !important;
}

html[data-theme="light"] .country-row {
    background: rgba(255, 255, 255, 0.45) !important;
    border-color: rgba(15, 23, 42, 0.06) !important;
    border-bottom-color: rgba(15, 23, 42, 0.06) !important;
}

html[data-theme="light"] .country-row:hover {
    background: rgba(255, 255, 255, 0.8) !important;
    border-color: rgba(167, 139, 250, 0.3) !important;
}

html[data-theme="light"] .country-name {
    color: var(--text-body) !important;
}

/* Player Card Modal */
html[data-theme="light"] .player-card-container {
    background: rgba(255, 255, 255, 0.85);
    border: 1px solid rgba(88, 101, 242, 0.3);
    box-shadow: var(--shadow-lg), 0 0 30px rgba(88, 101, 242, 0.05);
}

html[data-theme="light"] .player-card-header {
    border-bottom: 1px solid rgba(15, 23, 42, 0.06);
}

html[data-theme="light"] .player-detail-item {
    background: rgba(255, 255, 255, 0.5);
    border: 1px solid rgba(15, 23, 42, 0.04);
}

html[data-theme="light"] .player-bio-box {
    background: rgba(88, 101, 242, 0.05);
}

html[data-theme="light"] .player-action-btn {
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(88, 101, 242, 0.3);
    color: #5865F2;
}

html[data-theme="light"] .player-action-btn:hover {
    background: #5865F2;
    color: #ffffff;
}

/* ==========================================================================
   Sobreescrituras adicionales para subpáginas de servidores y footer en MODO CLARO
   ========================================================================== */
html[data-theme="light"] .panel-highlight {
    background: linear-gradient(135deg, rgba(2, 132, 199, 0.08) 0%, rgba(255, 255, 255, 0.75) 100%);
    border-color: rgba(2, 132, 199, 0.25);
    box-shadow: var(--shadow-md), var(--glow-blue);
}

html[data-theme="light"] .c2jam-about, 
html[data-theme="light"] .c2jam-join, 
html[data-theme="light"] .c2jam-features, 
html[data-theme="light"] .c2jam-cta {
    background: rgba(255, 255, 255, 0.55);
    border: 1px solid rgba(15, 23, 42, 0.08);
}

html[data-theme="light"] .feature-card {
    background: rgba(255, 255, 255, 0.65);
    border: 1px solid rgba(15, 23, 42, 0.06);
}

html[data-theme="light"] .join-card {
    background: rgba(255, 255, 255, 0.65);
    border: 1px solid rgba(15, 23, 42, 0.06);
    color: var(--text-body);
}

html[data-theme="light"] .cta-links a:nth-child(2) {
    background: rgba(15, 23, 42, 0.05);
    border-color: rgba(15, 23, 42, 0.15);
    color: var(--text-main);
}

html[data-theme="light"] .site-footer {
    background: rgba(255, 255, 255, 0.65);
    border: 1px solid rgba(15, 23, 42, 0.08);
    box-shadow: var(--shadow-sm);
}

/* Light Mode Overrides for Remaining Dark Elements */
html[data-theme="light"] body.home-page,
html[data-theme="light"] body.mu-page,
html[data-theme="light"] body.ro-page,
html[data-theme="light"] body.c2jam-page {
    background-color: #0c0d12 !important;
}

html[data-theme="light"] body::before {
    background: transparent !important;
    display: none !important;
}

html[data-theme="light"] .console-right {
    background: rgba(255, 255, 255, 0.45);
    border-color: rgba(15, 23, 42, 0.08);
}

html[data-theme="light"] .radar-module {
    background: rgba(255, 255, 255, 0.45);
    border-color: rgba(15, 23, 42, 0.08);
}

html[data-theme="light"] .operator-status-dot {
    border-color: #ffffff;
}

html[data-theme="light"] .server-header-info {
    background: rgba(255, 255, 255, 0.55);
    border-color: rgba(15, 23, 42, 0.08);
}

html[data-theme="light"] .toggle-btn {
    background: rgba(255, 255, 255, 0.75);
    border-color: rgba(15, 23, 42, 0.08);
    color: var(--text-body);
}

html[data-theme="light"] .toggle-btn:hover {
    background: rgba(15, 23, 42, 0.04);
    border-color: rgba(15, 23, 42, 0.15);
    color: var(--text-main);
}

html[data-theme="light"] .coming-soon-card .status-badge {
    border-top-color: rgba(15, 23, 42, 0.08);
}

html[data-theme="light"] .player-stat-box {
    background: rgba(255, 255, 255, 0.6);
    border-color: rgba(15, 23, 42, 0.06);
}

html[data-theme="light"] .player-section-title {
    border-bottom-color: rgba(15, 23, 42, 0.08);
}

/* Modificaciones de etiquetas de Servidores de Expansión en modo claro */
html[data-theme="light"] .server-tibia .server-label {
    background: rgba(22, 163, 74, 0.08) !important;
    color: #15803d !important;
    border-color: rgba(22, 163, 74, 0.25) !important;
}

html[data-theme="light"] .server-cs .server-label {
    background: rgba(234, 88, 12, 0.08) !important;
    color: #c2410c !important;
    border-color: rgba(234, 88, 12, 0.25) !important;
}

html[data-theme="light"] .server-gunbound .server-label {
    background: rgba(2, 132, 199, 0.08) !important;
    color: #0369a1 !important;
    border-color: rgba(2, 132, 199, 0.25) !important;
}

/* Enlaces y textos del panel Access Key Override */
html[data-theme="light"] .access-key-card {
    background: rgba(255, 255, 255, 0.45) !important;
    border-color: rgba(88, 101, 242, 0.25) !important;
}

html[data-theme="light"] .key-title {
    color: #5865F2 !important;
}

html[data-theme="light"] .key-serial {
    color: var(--text-muted) !important;
}

/* Botón interactivo de Puente de Discord en modo claro */
html[data-theme="light"] .core-link-btn {
    background: rgba(88, 101, 242, 0.08) !important;
    color: #5865F2 !important;
    border: 1px solid rgba(88, 101, 242, 0.3) !important;
    box-shadow: 0 4px 15px rgba(88, 101, 242, 0.08) !important;
}

html[data-theme="light"] .core-link-btn:hover {
    background: #5865F2 !important;
    color: #ffffff !important;
    border-color: #5865F2 !important;
    box-shadow: 0 8px 24px rgba(88, 101, 242, 0.3), 0 0 15px rgba(88, 101, 242, 0.15) !important;
}

/* Botón de Decrypt y Copy */
html[data-theme="light"] .access-key-card button {
    background: rgba(88, 101, 242, 0.08) !important;
    color: #5865F2 !important;
    border: 1px solid rgba(88, 101, 242, 0.25) !important;
}

html[data-theme="light"] .access-key-card button:hover {
    background: #5865F2 !important;
    color: #ffffff !important;
    border-color: #5865F2 !important;
}

/* Botones principales de Call To Action */
html[data-theme="light"] .cta-link-btn {
    background: rgba(2, 132, 199, 0.08) !important;
    color: #0284c7 !important;
    border: 1px solid rgba(2, 132, 199, 0.3) !important;
    box-shadow: 0 4px 12px rgba(2, 132, 199, 0.08) !important;
}

html[data-theme="light"] .cta-link-btn:hover {
    background: #0284c7 !important;
    color: #ffffff !important;
    border-color: #0284c7 !important;
    box-shadow: 0 8px 24px rgba(2, 132, 199, 0.25) !important;
}

/* Botones de Explore Server en el carrusel de inicio */
html[data-theme="light"] .carousel-action-btn {
    background: rgba(255, 255, 255, 0.8) !important;
    border: 1px solid rgba(15, 23, 42, 0.15) !important;
    color: var(--text-main) !important;
}

html[data-theme="light"] .carousel-action-btn.btn-mu {
    color: #7c3aed !important;
    border-color: rgba(124, 58, 237, 0.3) !important;
    box-shadow: 0 4px 15px rgba(124, 58, 237, 0.06) !important;
}

html[data-theme="light"] .carousel-action-btn.btn-mu:hover {
    background: #7c3aed !important;
    color: #ffffff !important;
    border-color: #7c3aed !important;
}

html[data-theme="light"] .carousel-action-btn.btn-ro {
    color: #e11d48 !important;
    border-color: rgba(225, 29, 72, 0.3) !important;
    box-shadow: 0 4px 15px rgba(225, 29, 72, 0.06) !important;
}

html[data-theme="light"] .carousel-action-btn.btn-ro:hover {
    background: #e11d48 !important;
    color: #ffffff !important;
    border-color: #e11d48 !important;
}

html[data-theme="light"] .carousel-action-btn.btn-c2jam {
    color: #0284c7 !important;
    border-color: rgba(2, 132, 199, 0.3) !important;
    box-shadow: 0 4px 15px rgba(2, 132, 199, 0.06) !important;
}

html[data-theme="light"] .carousel-action-btn.btn-c2jam:hover {
    background: #0284c7 !important;
    color: #ffffff !important;
    border-color: #0284c7 !important;
}

/* ==========================================================================
   Responsive Overrides & Mobile Layout Fixes (Consolidated)
   ========================================================================== */

/* Ajustes para tabletas y pantallas medianas */
@media (max-width: 900px) {
    .hero-panel {
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: wrap !important;
        gap: 16px !important;
    }
    
    .hero-panel > * {
        flex: 1 1 200px !important;
    }
}

@media (max-width: 768px) {
    /* Cabecera compacta */
    .brand span {
        display: none !important;
    }
    
    .site-header {
        flex-direction: column !important;
        align-items: center !important;
        gap: 12px !important;
        padding: 12px 20px !important;
    }
    
    .site-nav {
        width: 100% !important;
        justify-content: center !important;
        flex-wrap: wrap !important;
        gap: 8px !important;
    }
    
    /* Carrusel Héroe Adaptado */
    .hero-carousel {
        height: 380px !important;
    }
    
    .carousel-content-card {
        left: 20px !important;
        right: 20px !important;
        width: auto !important;
        padding: 24px !important;
        top: 50% !important;
        transform: translateY(-50%) !important;
    }
    
    .carousel-content-card h2 {
        font-size: 1.65rem !important;
    }
}

/* Ajustes para teléfonos grandes y medianos */
@media (max-width: 640px) {
    .page-inner {
        padding: 24px 16px !important;
    }
    
    .server-banner-wrap {
        aspect-ratio: 16 / 7 !important;
    }
    
    .server-details {
        flex-direction: column !important;
        width: 100% !important;
        gap: 12px !important;
    }
    
    .server-details .panel-card,
    .server-details .panel-stat {
        width: 100% !important;
        min-width: 0 !important;
    }
    
    .hero-panel {
        flex-direction: column !important;
    }
}

/* Ajustes específicos para móviles */
@media (max-width: 480px) {
    /* Margen global del contenedor de la página */
    .page-shell {
        padding: 16px 8px !important;
        gap: 24px !important;
    }
    
    /* Encabezados y títulos proporcionales */
    h1, .server-header-info h1 {
        font-size: 1.65rem !important;
    }
    
    h2, .servers-section h2, .bridge-title {
        font-size: 1.45rem !important;
    }
    
    /* Carrusel en móvil pequeño */
    .hero-carousel {
        height: 330px !important;
    }
    
    .carousel-content-card {
        left: 12px !important;
        right: 12px !important;
        padding: 16px 20px !important;
        gap: 10px !important;
    }
    
    .carousel-content-card h2 {
        font-size: 1.35rem !important;
    }
    
    .carousel-content-card p {
        font-size: 0.8rem !important;
        line-height: 1.4 !important;
    }
    
    .carousel-action-btn {
        padding: 10px 16px !important;
        font-size: 0.85rem !important;
    }
    
    /* Diagnósticos del terminal y Discord */
    .diagnostics-panel {
        grid-template-columns: 1fr !important;
        gap: 8px !important;
    }
    
    /* Access Key Input stackeado */
    .key-input-container {
        flex-direction: column !important;
        align-items: stretch !important;
        padding: 8px !important;
        gap: 8px !important;
    }
    
    .key-input-container input {
        text-align: center !important;
        padding: 6px 0 !important;
    }
    
    .key-input-container button {
        width: 100% !important;
        text-align: center !important;
        padding: 10px 12px !important;
    }
    
    /* Panel de Métricas */
    .metrics-section {
        margin-top: 32px !important;
    }
    
    .metric-card {
        padding: 20px !important;
    }
    
    .metric-value {
        font-size: 2.2rem !important; /* Evita desborde de números grandes */
    }
    
    .countries-rank-widget {
        padding: 16px 20px !important;
    }
    
    /* Secciones y tarjetas */
    .servers-section {
        padding: 20px 16px !important;
        margin-top: 24px !important;
    }
    
    .server-card {
        padding: 20px !important;
    }
    
    /* Panel de Configuración Centrado */
    .font-customizer-panel {
        left: 12px !important;
        right: 12px !important;
        width: auto !important;
        bottom: 85px !important;
    }
    
    /* Modal del Jugador Responsivo */
    .player-profile-row {
        flex-direction: column !important;
        align-items: center !important;
        text-align: center !important;
        gap: 16px !important;
    }
    
    .player-avatar-holder {
        width: 80px !important;
        height: 80px !important;
    }
    
    .player-details-col {
        width: 100% !important;
        align-items: center !important;
    }
    
    .player-detail-item {
        align-items: center !important;
    }
    
    .player-detail-value {
        justify-content: center !important;
    }
    
    .player-stats-grid {
        grid-template-columns: 1fr !important;
    }
    
    /* Ajustes del Terminal */
    .terminal-shell-wrapper {
        border-radius: 8px !important;
    }
    
    .terminal-output {
        height: 150px !important;
        font-size: 0.72rem !important;
        padding: 12px !important;
    }
    
    .terminal-controls {
        padding: 8px 12px !important;
        gap: 6px !important;
    }
    
    .term-cmd-btn {
        padding: 5px 10px !important;
        font-size: 0.7rem !important;
    }
}


