.table>tbody>tr>td, .table>tbody>tr>th, .table>tfoot>tr>td, .table>tfoot>tr>th, .table>thead>tr>td, .table>thead>tr>th {
    border-top: none !important;
}

/* http://stackoverflow.com/questions/19562903/remove-padding-from-columns-in-bootstrap-3 */
.nopadding {
   padding: 0 !important;
   margin: 0 !important;
}

/* http://stackoverflow.com/questions/20547819/vertical-align-with-bootstrap-3 */
.vcenter {
    display: inline-block;
    vertical-align: middle;
    float: none;
}

.navbar-brand {
	padding: 4px 35px;
}

.contentpadding {
	padding: 10px 0px 50px 0px;
}

.navbar-top-links li a {
    padding: 15px;
    min-height: 50px;
}

.navbar-top-links li {
    display: inline-block;
}

.navbar-top-links li:last-child {
    margin-right: 15px;
}

.navbar-top-links li a {
    padding: 15px;
    min-height: 50px;    
    color: #ef4444;
}

.navbar-top-links .dropdown-menu li a div {
    white-space: normal;
}

.navbar-top-links .dropdown-messages,
.navbar-top-links .dropdown-tasks,
.navbar-top-links .dropdown-alerts {
    width: 310px;
    min-width: 0;
}

.navbar-top-links .dropdown-messages {
    margin-left: 5px;
}

.navbar-top-links .dropdown-tasks {
    margin-left: -59px;
}

.navbar-top-links .dropdown-alerts {
    margin-left: -123px;
}

.navbar-top-links .dropdown-user {
    right: 0;
    left: auto;
}

@media (min-width: 768px){
.navbar-right {
    float: right!important;
    margin: 0;
}
}

/* --- ESTILOS ÉPICOS DE MU ONLINE (AZUL CIAN, PÚRPURA Y DORADO) --- */

/* 1. FONDO GLOBAL Y LATERALES */
body {
    background: #000000 !important;
    background-image: none !important;
    color: #e2e8f0 !important;
    font-family: 'Source Sans Pro', sans-serif;
}

/* 2. CONTENEDOR CENTRAL Y BLOQUES INTERNOS */
#container {
    background: #000000 !important;
    border: 1px solid rgba(0, 229, 255, 0.3) !important;
    box-shadow: 0 0 30px rgba(0, 229, 255, 0.25), 0 0 15px rgba(123, 44, 191, 0.2) !important;
}

/* PANELES Y CAJAS SEMITRANSPARENTES CON BORDER Y GLOW CIAN/DORADO */
.panel, 
.panel-sidebar, 
.panel-general, 
.panel-news, 
.thumbnail,
.myaccount-table,
.general-table-ui,
.box-module {
    background-color: rgba(0, 0, 0, 0.8) !important;
    background-image: none !important;
    border: 1px solid #00E5FF !important;
    color: #e2e8f0 !important;
    box-shadow: 0 0 12px rgba(0, 229, 255, 0.4), inset 0 0 15px rgba(0, 229, 255, 0.1) !important;
}

.panel-body {
    background: rgba(0, 0, 0, 0.8) !important;
    color: #e2e8f0 !important;
    border: none !important;
}

.panel-usercp {
    background-image: none !important;
    background-color: rgba(0, 0, 0, 0.8) !important;
}

/* 3. CABECERAS DE LOS BLOQUES Y MÓDULOS (.box-header, .panel-title) */
.panel-heading,
.panel-sidebar > .panel-heading,
.panel-news .panel-heading,
.page-title,
.box-header {
    background: linear-gradient(180deg, rgba(0, 229, 255, 0.22) 0%, rgba(10, 20, 35, 0.95) 100%) !important;
    border-bottom: 1px solid #00E5FF !important;
    border-top: none !important;
    border-left: none !important;
    border-right: none !important;
    box-shadow: inset 0 1px 3px rgba(255, 255, 255, 0.2), 0 2px 8px rgba(0, 229, 255, 0.3) !important;
}

.panel-title,
.panel-heading .panel-title,
.panel-news .panel-title,
.page-title,
.box-header {
    font-family: 'Cinzel', serif !important;
    color: #00E5FF !important;
    text-shadow: 0 0 10px rgba(0, 229, 255, 0.7), 0 2px 4px #000000 !important;
    font-weight: 700 !important;
    letter-spacing: 1px !important;
}

.panel-news .panel-footer {
    border-top: 1px solid rgba(0, 229, 255, 0.3) !important;
    background: rgba(5, 10, 18, 0.9) !important;
    color: #cbd5e1 !important;
}

/* 4. TABLAS Y TEXTOS INTERNOS */
.table,
.rankings-table,
.myaccount-table,
.general-table-ui {
    border: 1px solid rgba(0, 229, 255, 0.3) !important;
    color: #e2e8f0 !important;
}

.table>tbody>tr>td, 
.table>tbody>tr>th, 
.table>tfoot>tr>td, 
.table>tfoot>tr>th, 
.table>thead>tr>td, 
.table>thead>tr>th,
.rankings-table tr td,
.myaccount-table tr td,
.general-table-ui tr td {
    background-color: rgba(0, 0, 0, 0.7) !important;
    border-bottom: 1px solid rgba(0, 229, 255, 0.15) !important;
    color: #e2e8f0 !important;
    border-top: none !important;
}

/* Separar sutilmente las filas pares */
.table>tbody>tr:nth-child(2n) td,
.rankings-table tr:nth-child(2n) td,
.myaccount-table tr:nth-child(2n) td,
.general-table-ui tr:nth-child(2n+2) td {
    background-color: rgba(10, 20, 30, 0.6) !important;
}

/* Fila de cabecera de tablas */
.rankings-table tr:first-child td,
.general-table-ui tr:first-child td {
    background: linear-gradient(180deg, rgba(212, 175, 55, 0.35) 0%, rgba(10, 15, 25, 0.95) 100%) !important;
    color: #FFD700 !important;
    font-family: 'Cinzel', serif !important;
    border-bottom: 2px solid #D4AF37 !important;
    text-shadow: 0 0 8px rgba(212, 175, 55, 0.5) !important;
}

/* Primer puesto en Rankings */
.rankings-table tr:nth-child(2) {
    background: linear-gradient(180deg, rgba(0, 229, 255, 0.25) 0%, rgba(8, 12, 20, 0.95) 100%) !important;
    color: #00E5FF !important;
}

.rankings-table tr:nth-child(2) td {
    background: transparent !important;
    color: #00E5FF !important;
    text-shadow: 0 0 8px rgba(0, 229, 255, 0.6) !important;
}

/* Hover en filas de rankings */
.rankings-table tr:nth-child(1n+2):hover,
.rankings-table tr:nth-child(1n+2):hover td {
    background: rgba(0, 229, 255, 0.15) !important;
    color: #ffffff !important;
}

/* Enlaces y nombres de jugadores */
a,
.rankings-table a,
.panel-usercp ul li a,
.myaccount-table a {
    color: #00E5FF !important;
    text-decoration: none !important;
    transition: all 0.2s ease-in-out;
}

a:hover,
.rankings-table a:hover,
.panel-usercp ul li a:hover,
.myaccount-table a:hover {
    color: #D4AF37 !important;
    text-shadow: 0 0 8px rgba(212, 175, 55, 0.8) !important;
    text-decoration: none !important;
}

/* 5. BOTONES Y FORMULARIOS */
input[type=text], 
input[type=password], 
input[type=number], 
.form-control {
    background-color: rgba(10, 15, 25, 0.85) !important;
    border: 1px solid rgba(0, 229, 255, 0.4) !important;
    color: #ffffff !important;
    border-radius: 3px !important;
}

input[type=text]:focus, 
input[type=password]:focus, 
input[type=number]:focus, 
.form-control:focus {
    border-color: #00E5FF !important;
    box-shadow: 0 0 10px rgba(0, 229, 255, 0.8) !important;
    background-color: rgba(15, 25, 40, 0.95) !important;
}

/* BOTÓN PRINCIPAL DE LOGIN / REGISTRO (DEGRADADO DORADO A BRONCE, HOVER CIAN RESPLANDECIENTE) */
.btn-primary {
    color: #111111 !important;
    background: linear-gradient(180deg, #FFE082 0%, #D4AF37 50%, #8C6610 100%) !important;
    border: 1px solid #FFDF73 !important;
    border-radius: 4px !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 1px !important;
    text-shadow: 0 1px 0 rgba(255, 255, 255, 0.4) !important;
    transition: all 0.25s ease-in-out !important;
}

.btn-primary:active, 
.btn-primary:focus, 
.btn-primary:hover {
    color: #ffffff !important;
    background: linear-gradient(180deg, #00E5FF 0%, #0088CC 100%) !important;
    border-color: #00E5FF !important;
    box-shadow: 0 0 18px #00E5FF, 0 0 8px #00E5FF !important;
    text-shadow: 0 0 8px rgba(255, 255, 255, 0.9) !important;
}

.btn-danger {
    color: #ffffff !important;
    background: rgba(30, 40, 55, 0.9) !important;
    border: 1px solid rgba(0, 229, 255, 0.4) !important;
    border-radius: 4px !important;
    transition: all 0.2s ease-in-out !important;
}

.btn-danger:active, 
.btn-danger:focus, 
.btn-danger:hover {
    color: #ffffff !important;
    background: rgba(0, 229, 255, 0.2) !important;
    border-color: #00E5FF !important;
    box-shadow: 0 0 10px rgba(0, 229, 255, 0.6) !important;
}

/* MARQUEE Y NAVBAR */
#marqueee {
    color: #D4AF37 !important;
    text-shadow: 0 0 10px rgba(212, 175, 55, 0.7), 1px 1px 3px #000000 !important;
    font-family: 'Cinzel', serif !important;
}

/* NAVEGACIÓN SUPERIOR CON TIPOGRAFÍA SERIF ÉPICA CINZEL Y HOVER DORADO */
#navbar ul li a {
    font-family: 'Cinzel', 'Trajan Pro', Georgia, serif !important;
    font-weight: 700 !important;
    font-size: 17px !important;
    color: #ffffff !important;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.9), 0 0 8px rgba(0, 229, 255, 0.3) !important;
    letter-spacing: 1px !important;
    transition: all 0.2s ease-in-out !important;
}

#navbar ul li a:hover,
#navbar ul li a:focus,
#navbar ul li a:active {
    color: #D4AF37 !important;
    text-shadow: 0 0 12px rgba(212, 175, 55, 0.9), 0 0 25px rgba(212, 175, 55, 0.6) !important;
}

/* FOOTER */
.footer {
    background: #000000 !important;
    border-top: 2px solid #00E5FF !important;
    box-shadow: 0 -5px 20px rgba(0, 229, 255, 0.25) !important;
}

.footer-time {
    color: #00E5FF !important;
    text-shadow: 0 0 14px rgba(0, 229, 255, 0.8) !important;
}

/* ALERTAS Y OTROS ELEMENTOS */
.alert {
    background-color: rgba(10, 15, 25, 0.9) !important;
    border: 1px solid rgba(0, 229, 255, 0.4) !important;
    color: #ffffff !important;
}

.alert-success {
    border-color: #00E5FF !important;
    color: #00E5FF !important;
}

.alert-danger {
    border-color: #D4AF37 !important;
    color: #FFD700 !important;
}

/* ============================================================
   ANIMATED HEADER — Fuego y Oscuridad (Muradeon)
   ============================================================ */

/* Keyframe: slow zoom-pan on the background image */
@keyframes headerZoomPan {
    0%   { transform: scale(1.00) translateX(0px);    }
    25%  { transform: scale(1.04) translateX(-8px);   }
    50%  { transform: scale(1.07) translateX(0px);    }
    75%  { transform: scale(1.04) translateX(8px);    }
    100% { transform: scale(1.00) translateX(0px);    }
}

/* Keyframe: wing glow breathing */
@keyframes wingGlowPulse {
    0%   { opacity: 0.18; transform: scale(0.92);  }
    50%  { opacity: 0.42; transform: scale(1.08);  }
    100% { opacity: 0.18; transform: scale(0.92);  }
}

/* Keyframe: mist rising from bottom */
@keyframes mistRise {
    0%   { opacity: 0;    transform: translateY(0px)   scaleX(1.0);  }
    40%  { opacity: 0.55; transform: translateY(-18px) scaleX(1.08); }
    100% { opacity: 0;    transform: translateY(-55px) scaleX(1.15); }
}

/* Keyframe: spark shimmer overlay */
@keyframes sparkShimmer {
    0%   { opacity: 0.0; background-position: 0% 100%;   }
    30%  { opacity: 0.12; }
    60%  { opacity: 0.06; }
    100% { opacity: 0.0; background-position: 100% 0%;   }
}

/* Keyframe: orange fire flicker on side edges */
@keyframes fireEdgeFlicker {
    0%   { opacity: 0.30; }
    20%  { opacity: 0.50; }
    45%  { opacity: 0.22; }
    70%  { opacity: 0.48; }
    100% { opacity: 0.30; }
}

/* ---- Wrapper del Header con resplandor Cian/Púrpura ---- */
#header.header-animated {
    position: relative;
    width: 100%;
    height: 300px;
    min-width: 1000px;
    margin: 0 auto;
    overflow: hidden;
    border: 1px solid rgba(0, 229, 255, 0.5) !important;
    box-shadow:
        0 0 30px rgba(0, 229, 255, 0.4),
        0 0 15px rgba(123, 44, 191, 0.3),
        inset 0 0 20px rgba(0, 0, 0, 0.6) !important;
}

/* ---- Imagen de Banner con cover y centrado perfecto ---- */
.header-bg-img {
    position: absolute;
    top: -12px;
    left: -12px;
    right: -12px;
    bottom: -12px;
    width: calc(100% + 24px);
    height: calc(100% + 24px);
    z-index: 1;
    background-size: cover !important;       /* 'cover' para llenar completamente la sección */
    background-position: center top !important; /* Muestra el banner alineado arriba al centro */
    background-repeat: no-repeat !important;
    animation: headerZoomPan 22s ease-in-out infinite;
    will-change: transform;
}

/* ---- Fundido de degradado lineal en la parte inferior a negro puro (#000000) ---- */
#header.header-animated::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 140px;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.5) 50%, rgba(0, 0, 0, 0.9) 85%, #000000 100%) !important;
    pointer-events: none;
    z-index: 5;
}

/* ---- Canvas: fills the header exactly ---- */
#header-fx-canvas {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%  !important;
    height: 100% !important;
    pointer-events: none;
    z-index: 2;
}

/* ---- Wing glow: elipse radial en azul cian y púrpura central ---- */
.header-wing-glow {
    position: absolute;
    left: 50%;
    top: 38%;
    transform: translate(-50%, -50%);
    width: 380px;
    height: 250px;
    border-radius: 50%;
    background: radial-gradient(
        ellipse at center,
        rgba(0, 229, 255, 0.45) 0%,
        rgba(123, 44, 191, 0.30) 40%,
        rgba(10,  20,  50, 0.12) 70%,
        transparent 100%
    ) !important;
    animation: wingGlowPulse 3.2s ease-in-out infinite;
    pointer-events: none;
    z-index: 3;
    mix-blend-mode: screen;
}

/* ---- Wing overlay: brillo cian superior sutil ---- */
.header-wing-overlay {
    position: absolute;
    left: 25%;
    right: 25%;
    top: 10%;
    bottom: 30%;
    background: radial-gradient(
        ellipse at 50% 60%,
        rgba(0, 229, 255, 0.18) 0%,
        rgba(157, 78, 221, 0.10) 50%,
        transparent 75%
    ) !important;
    animation: wingGlowPulse 4.0s ease-in-out infinite reverse;
    pointer-events: none;
    z-index: 4;
    mix-blend-mode: screen;
}

/* ---- Mist layer: niebla en tono azul cian y púrpura subiendo desde la parte inferior ---- */
.header-mist-layer {
    position: absolute;
    bottom: -20px;
    left: -5%;
    width: 110%;
    height: 130px;
    background: radial-gradient(
        ellipse at 50% 100%,
        rgba(0, 229, 255, 0.25) 0%,
        rgba(123, 44, 191, 0.15) 45%,
        transparent 75%
    ) !important;
    animation: mistRise 6.5s ease-in-out infinite;
    pointer-events: none;
    z-index: 3;
}

/* ---- Spark overlay: destellos de resplandor cian y dorado ---- */
.header-spark-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(circle at 15% 80%, rgba(0, 229, 255, 0.18) 0%, transparent 30%),
        radial-gradient(circle at 85% 75%, rgba(212, 175, 55, 0.15) 0%, transparent 28%) !important;
    animation: fireEdgeFlicker 2.1s ease-in-out infinite;
    pointer-events: none;
    z-index: 3;
}

/* ---- Título del Servidor ---- */
.header-title-layer {
    position: absolute;
    bottom: 15px;
    left: 0;
    right: 0;
    text-align: center;
    pointer-events: none;
    z-index: 6;
}

.header-server-name {
    font-family: 'Cinzel', 'Square', serif !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    letter-spacing: 5px !important;
    text-transform: uppercase !important;
    color: #D4AF37 !important;
    text-shadow:
        0 0 10px rgba(212, 175, 55, 0.9),
        0 0 20px rgba(0, 229, 255, 0.7),
        1px 1px 3px rgba(0,0,0,0.9) !important;
}

/* ---- Vignette edges (left & right darkening) ---- */
#header.header-animated::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        linear-gradient(to right,  rgba(0,0,0,0.50) 0%, transparent 20%, transparent 80%, rgba(0,0,0,0.50) 100%),
        linear-gradient(to bottom, rgba(0,0,0,0.30) 0%, transparent 30%, transparent 70%, rgba(0,0,0,0.25) 100%);
    pointer-events: none;
    z-index: 6;
}

/* Position overrides for navbar and marquee (relocated below the header in the flow) */
#navbar {
    position: relative !important;
    top: auto !important;
    margin-top: 15px !important;
    margin-bottom: 5px !important;
    height: auto !important;
    z-index: 3 !important;
}

#marqueee {
    position: relative !important;
    top: auto !important;
    left: auto !important;
    margin: 5px auto 20px auto !important;
    width: 800px;
    height: auto !important;
    z-index: 3;
}

/* Ensure the AdminCP button is always on top of all overlays and clickable */
.admincp-button {
    position: fixed !important;
    top: 15px !important;
    right: 15px !important;
    z-index: 99999 !important;
}

/* ============================================================
   EVENT SCHEDULE — Sidebar Widget
   ============================================================ */
#events {
    list-style-type: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

#events li {
    display: block;
    width: 100%;
    padding: 8px 12px;
    border-bottom: 1px solid #3a0000;
    background: #0a0a0a;
    overflow: hidden;
    transition: background 0.2s ease;
}

#events li:last-child {
    border-bottom: none;
}

#events li:hover {
    background: #1a0000;
}

#events li .event-name {
    font-family: 'Square', 'Cinzel', serif;
    font-size: 13px;
    font-weight: bold;
    color: #ef4444;
    float: left;
}

#events li .event-next-time {
    font-family: 'Square', 'Cinzel', serif;
    font-size: 13px;
    font-weight: bold;
    color: #ffffff;
    float: right;
}

#events li .event-next-day {
    font-size: 11px;
    color: #aaaaaa;
    float: right;
    margin-right: 5px;
}

#events li .event-countdown-row {
    display: block;
    clear: both;
    padding-top: 2px;
}

#events li .event-countdown-label {
    font-size: 11px;
    color: #888888;
    font-style: italic;
}

#events li .event-countdown-value {
    float: right;
    font-size: 12px;
    color: #cccccc;
    font-family: monospace;
}

#events li .event-countdown-value.event-open {
    color: #00ff00;
    font-weight: bold;
    font-style: normal;
}

#events li .event-countdown-value.event-progress {
    color: #ffaa00;
    font-weight: bold;
    font-style: italic;
}

/* ============================================================
   RESPONSIVE LAYOUTS — Adaptabilidad Móvil (iPhone/Tablet/Desktop)
   ============================================================ */

/* Estilos Base para Escritorio / PC (Pantallas grandes > 991px) */
@media (min-width: 992px) {
    .navbar-toggle-btn {
        display: none !important;
    }

    #navbar-menu-container {
        display: block !important;
        position: static !important;
        width: 100% !important;
        background: transparent !important;
        border: none !important;
        box-shadow: none !important;
        backdrop-filter: none !important;
        padding: 0 !important;
    }

    #navbar ul {
        text-align: center !important;
        margin: 0 !important;
        padding: 0 !important;
        list-style: none !important;
    }

    #navbar ul li {
        display: inline-block !important;
        margin: 0 15px !important;
        border: none !important;
    }

    #navbar ul li a {
        display: inline-block !important;
        font-family: 'Cinzel', 'Trajan Pro', Georgia, serif !important;
        font-weight: 700 !important;
        font-size: 17px !important;
        color: #ffffff !important;
        text-shadow: 0 2px 4px rgba(0, 0, 0, 0.9), 0 0 8px rgba(0, 229, 255, 0.3) !important;
        letter-spacing: 1px !important;
        padding: 15px 15px !important;
        transition: all 0.2s ease-in-out !important;
        border: none !important;
        background: transparent !important;
    }

    #navbar ul li a:hover,
    #navbar ul li a:focus,
    #navbar ul li a:active {
        color: #D4AF37 !important;
        text-shadow: 0 0 12px rgba(212, 175, 55, 0.9), 0 0 25px rgba(212, 175, 55, 0.6) !important;
        background: transparent !important;
        padding-left: 15px !important;
        border: none !important;
    }
}

/* Adaptabilidad Móvil (iPhone / Tablets <= 991px) */
@media (max-width: 991px) {
    #navbar {
        position: absolute !important;
        top: 12px !important;
        left: 15px !important;
        width: auto !important;
        margin: 0 !important;
        padding: 0 !important;
        box-sizing: border-box !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: flex-start !important;
        z-index: 999999 !important;
    }

    /* Botón de 3 líneas en la parte superior izquierda (Círculo amarillo del Header) */
    .navbar-toggle-btn {
        display: inline-flex !important;
        align-items: center !important;
        justify-content: flex-start !important;
        gap: 10px !important;
        background: rgba(4, 18, 32, 0.88) !important;
        backdrop-filter: blur(10px) !important;
        -webkit-backdrop-filter: blur(10px) !important;
        border: 1px solid rgba(0, 229, 255, 0.6) !important;
        color: #00E5FF !important;
        padding: 9px 16px !important;
        font-family: 'Cinzel', 'Square', serif !important;
        font-size: 14px !important;
        font-weight: 700 !important;
        letter-spacing: 2px !important;
        text-transform: uppercase !important;
        cursor: pointer !important;
        border-radius: 6px !important;
        outline: none !important;
        box-shadow: 0 0 15px rgba(0, 229, 255, 0.4), inset 0 0 10px rgba(0, 0, 0, 0.8) !important;
        transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1) !important;
        box-sizing: border-box !important;
    }

    .navbar-toggle-btn:hover,
    .navbar-toggle-btn:focus,
    #navbar.menu-open .navbar-toggle-btn {
        background: linear-gradient(135deg, rgba(0, 229, 255, 0.25) 0%, rgba(123, 44, 191, 0.35) 100%) !important;
        border-color: #00E5FF !important;
        color: #ffffff !important;
        box-shadow: 0 0 22px rgba(0, 229, 255, 0.75), inset 0 0 12px rgba(0, 229, 255, 0.4) !important;
        transform: translateY(-1px) !important;
    }

    .navbar-toggle-btn .hamburger-box {
        display: flex !important;
        flex-direction: column !important;
        justify-content: space-between !important;
        width: 19px !important;
        height: 13px !important;
    }

    .navbar-toggle-btn .icon-bar {
        display: block !important;
        width: 100% !important;
        height: 2px !important;
        background-color: #00E5FF !important;
        border-radius: 2px !important;
        transition: all 0.3s ease !important;
        box-shadow: 0 0 6px rgba(0, 229, 255, 0.9) !important;
    }

    .navbar-toggle-btn:hover .icon-bar,
    #navbar.menu-open .icon-bar {
        background-color: #ffffff !important;
        box-shadow: 0 0 8px rgba(255, 255, 255, 0.9) !important;
    }

    .navbar-toggle-btn .menu-text {
        margin-left: 0 !important;
        letter-spacing: 2px !important;
        vertical-align: middle !important;
        color: #00E5FF !important;
        text-shadow: 0 0 8px rgba(0, 229, 255, 0.8) !important;
    }

    /* Menú Desplegable Flotante en Móvil */
    #navbar-menu-container {
        display: none;
        position: absolute !important;
        top: calc(100% + 8px) !important;
        left: 0 !important;
        width: 260px !important;
        max-width: 85vw !important;
        margin-top: 0 !important;
        background: rgba(5, 15, 28, 0.96) !important;
        border: 1px solid rgba(0, 229, 255, 0.6) !important;
        border-radius: 8px !important;
        box-shadow: 0 15px 35px rgba(0, 0, 0, 0.95), 0 0 25px rgba(0, 229, 255, 0.4) !important;
        backdrop-filter: blur(12px) !important;
        -webkit-backdrop-filter: blur(12px) !important;
        z-index: 999999 !important;
        overflow: hidden !important;
        padding: 6px 0 !important;
        box-sizing: border-box !important;
    }

    #navbar ul {
        text-align: left !important;
        margin: 0 !important;
        padding: 0 !important;
        list-style: none !important;
    }

    #navbar ul li {
        display: block !important;
        margin: 0 !important;
        border-bottom: 1px solid rgba(0, 229, 255, 0.08) !important;
    }

    #navbar ul li:last-child {
        border-bottom: none !important;
    }

    #navbar ul li a {
        display: flex !important;
        align-items: center !important;
        padding: 13px 22px !important;
        width: 100% !important;
        box-sizing: border-box !important;
        color: #E0E0E0 !important;
        font-family: 'Cinzel', 'Square', serif !important;
        font-size: 14px !important;
        font-weight: 600 !important;
        letter-spacing: 1.5px !important;
        text-transform: uppercase !important;
        text-decoration: none !important;
        text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8) !important;
        transition: all 0.25s cubic-bezier(0.25, 0.8, 0.25, 1) !important;
    }

    #navbar ul li a:hover,
    #navbar ul li a:focus,
    #navbar ul li a:active {
        background: linear-gradient(90deg, rgba(0, 229, 255, 0.25) 0%, rgba(123, 44, 191, 0.2) 100%) !important;
        color: #00E5FF !important;
        padding-left: 28px !important;
        text-shadow: 0 0 10px rgba(0, 229, 255, 0.9) !important;
        border-left: 3px solid #00E5FF !important;
    }
}

@media (max-width: 991px) {
    /* 1. Global Reset */
    html, body {
        min-width: auto !important;
        width: 100% !important;
        overflow-x: hidden !important;
    }
    
    #container {
        width: 95% !important;
        max-width: 1000px !important;
        margin: 15px auto !important;
        padding-left: 15px !important;
        padding-right: 15px !important;
        box-sizing: border-box !important;
        float: none !important;
    }
    
    .footer {
        width: 95% !important;
        max-width: 1000px !important;
        margin: 0 auto !important;
        box-sizing: border-box !important;
        padding: 20px 15px !important;
    }
    
    .footer > .footer-container {
        width: 100% !important;
    }
    
    #marqueee {
        width: 100% !important;
        max-width: 800px !important;
        margin: 5px auto 15px auto !important;
        position: relative !important;
        left: auto !important;
        height: auto !important;
    }

    /* 2. Responsive Header */
    #header.header-animated {
        min-width: auto !important;
        height: 31.3vw !important;
        min-height: 140px !important;
        max-height: 300px !important;
    }
    
    .header-wing-glow {
        width: 36vw !important;
        height: 24vw !important;
        max-width: 360px;
        max-height: 240px;
    }
    
    .header-server-name {
        font-size: 1.8vw !important;
    }

    /* 4. Flex Column Reordering: Main Content First, Sidebars Next */
    #content {
        display: flex !important;
        flex-direction: column !important;
    }
    
    .col-main-content, 
    .col-sidebar-left, 
    .col-sidebar-right {
        float: none !important;
        width: 100% !important;
        margin-bottom: 25px !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
    }
    
    .col-main-content {
        order: 1 !important;
    }
    
    .col-sidebar-left {
        order: 2 !important;
    }
    
    .col-sidebar-right {
        order: 3 !important;
    }
}

@media (max-width: 767px) {
    /* 5. Mobile Fluid Container */
    #navbar {
        width: 100% !important;
        margin: 10px 0 !important;
        padding: 0 10px !important;
        box-sizing: border-box !important;
    }
    
    #container {
        width: 100% !important;
        margin: 0 auto !important;
        border-left: none !important;
        border-right: none !important;
        padding-left: 10px !important;
        padding-right: 10px !important;
    }
    
    .footer {
        width: 100% !important;
        border-left: none !important;
        border-right: none !important;
        padding: 20px 10px !important;
    }
    
    /* 6. Responsive Castle Siege Banner */
    .castle-siege-banner {
        width: 100% !important;
        padding: 15px !important;
        text-align: center !important;
        background-size: cover !important;
    }
    
    .col-xs-4-cs, 
    .col-xs-8-cs, 
    .col-xs-6-cs {
        width: 100% !important;
        float: none !important;
        display: block !important;
        margin-bottom: 12px !important;
        padding: 0 !important;
    }
    
    .cs-guild-title {
        font-size: 28px !important;
    }
    
    .cs-guild-guildowner {
        top: 0 !important;
    }
    
    .cs-timeleft {
        font-size: 32px !important;
        display: block !important;
    }

    /* 7. Horizontally Scrollable Tables */
    .table, 
    .rankings-table, 
    .myaccount-table, 
    .general-table-ui {
        display: block !important;
        width: 100% !important;
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch !important;
    }
    
    .table th, 
    .table td, 
    .rankings-table th, 
    .rankings-table td, 
    .general-table-ui th, 
    .general-table-ui td {
        white-space: nowrap !important;
    }

    /* 8. Characters Banner Fluidity */
    .characters-gif {
        max-width: 100% !important;
        height: auto !important;
    }

    /* 9. Header Fine-tuning */
    #header.header-animated {
        height: 35vw !important;
    }
    .header-server-name {
        font-size: 11px !important;
    }
}

/* ============================================================
   SOCIAL NETWORK ICONS — Sidebar Widget
   ============================================================ */
.sidebar-social-container {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    gap: 14px !important;
    padding: 15px 10px !important;
    background: #000000 !important;
}

.sidebar-social-link {
    display: inline-block !important;
    transition: transform 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
    text-decoration: none !important;
}

.sidebar-social-link img {
    width: 44px !important;
    height: 44px !important;
    object-fit: contain !important;
    filter: grayscale(15%) brightness(90%) !important;
    border-radius: 8px !important;
    transition: all 0.25s ease !important;
}

.sidebar-social-link:hover {
    transform: scale(1.18) translateY(-3px) !important;
}

.sidebar-social-link:hover img {
    filter: grayscale(0%) brightness(115%) !important;
    box-shadow: 0 5px 15px rgba(0, 229, 255, 0.8) !important;
}

/* ============================================================
   PRELOADER ANIMADO (LOGO, ANILLOS GIRATORIOS Y CONTADOR 0-100%)
   ============================================================ */
#preloader {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    background: #000000 !important;
    z-index: 999999 !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    opacity: 1;
    visibility: visible;
    transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.8s cubic-bezier(0.4, 0, 0.2, 1) !important;
    pointer-events: all;
}

#preloader.preloader-hidden {
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
}

.preloader-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

/* Contenedor central de los anillos y el logo */
.preloader-logo-ring {
    position: relative;
    width: 220px;
    height: 220px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 25px;
}

/* Imagen del logo en el centro */
.preloader-logo {
    width: 110px;
    height: 110px;
    object-fit: contain;
    border-radius: 50%;
    z-index: 10;
    box-shadow: 0 0 25px rgba(0, 229, 255, 0.6), 0 0 10px rgba(212, 175, 55, 0.5);
    animation: logoPulse 2s ease-in-out infinite;
}

/* ANILLOS ORBITALES GIRATORIOS CONCÉNTRICOS */
.spinner-ring {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
}

/* Anillo Exterior (Cian y Púrpura) */
.ring-outer {
    width: 210px;
    height: 210px;
    border: 3px solid transparent;
    border-top-color: #00E5FF;
    border-bottom-color: #7b2cbf;
    box-shadow: 0 0 20px rgba(0, 229, 255, 0.6), inset 0 0 15px rgba(123, 44, 191, 0.4);
    animation: spinRing 2.2s linear infinite;
}

/* Anillo Medio (Dorado y Cian) */
.ring-middle {
    width: 175px;
    height: 175px;
    border: 3px solid transparent;
    border-left-color: #D4AF37;
    border-right-color: #00E5FF;
    box-shadow: 0 0 18px rgba(212, 175, 55, 0.6);
    animation: spinRingReverse 1.6s linear infinite;
}

/* Anillo Interior (Punteado Cian) */
.ring-inner {
    width: 140px;
    height: 140px;
    border: 2px dashed rgba(0, 229, 255, 0.7);
    box-shadow: 0 0 10px rgba(0, 229, 255, 0.4);
    animation: spinRing 3.5s linear infinite;
}

/* KEYFRAMES DE GIRO Y PULSACIÓN */
@keyframes spinRing {
    0%   { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes spinRingReverse {
    0%   { transform: rotate(0deg); }
    100% { transform: rotate(-360deg); }
}

@keyframes logoPulse {
    0%   { transform: scale(0.96); filter: drop-shadow(0 0 8px rgba(0,229,255,0.5)); }
    50%  { transform: scale(1.05); filter: drop-shadow(0 0 22px rgba(212,175,55,0.8)); }
    100% { transform: scale(0.96); filter: drop-shadow(0 0 8px rgba(0,229,255,0.5)); }
}

/* CONTADOR NUMÉRICO Y BARRA DE PROGRESO */
.preloader-progress {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

#preloader-percent {
    font-family: 'Cinzel', serif !important;
    font-size: 28px !important;
    font-weight: 800 !important;
    color: #D4AF37 !important;
    letter-spacing: 2px !important;
    text-shadow: 0 0 12px rgba(212, 175, 55, 0.9), 0 0 25px rgba(0, 229, 255, 0.6) !important;
}

.preloader-bar-bg {
    width: 200px;
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    overflow: hidden;
    box-shadow: inset 0 0 5px rgba(0, 0, 0, 0.8);
    border: 1px solid rgba(0, 229, 255, 0.3);
}

#preloader-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #00E5FF 0%, #7b2cbf 50%, #D4AF37 100%);
    box-shadow: 0 0 10px #00E5FF, 0 0 5px #D4AF37;
    border-radius: 4px;
    transition: width 0.1s linear;
}