@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Montserrat:wght@400;600;700;800&display=swap');

:root {
    --bg-main: #0b0b0f;
    --bg-card: #15151a;
    --text-primary: #e0e0e0;
    --text-secondary: #a0a0a0;
    --accent-orange: #ffbe2c;
    --accent-blue: #ffbe2c;
    /* Mantener compatibilidad temporal */
    --accent-gold: #ffbe2c;
    --accent-gold-gradient: linear-gradient(135deg, #f9d976 0%, #e9b646 100%);
    --accent-gold-hover: linear-gradient(135deg, #fff0a8 0%, #f9d976 100%);
    --accent-pink: #f06595;
    --accent-purple: #cc5de8;
    --accent-yellow: #fcc419;
    --accent-green: #69db7c;
    --border-color: rgba(255, 190, 44, 0.12);
    --shadow-soft: 0 10px 40px rgba(0, 0, 0, 0.5);
    --shadow-inset: inset 0 2px 4px rgba(0, 0, 0, 0.2);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 0.8;
    }

    50% {
        transform: scale(1.05);
        opacity: 1;
    }

    100% {
        transform: scale(1);
        opacity: 0.8;
    }
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-main);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

/* VIDEO BACKGROUND (HEADER) */
header {
    position: relative;
    overflow: hidden;
    width: 100% !important;
    max-width: 100% !important;
}

.header-bg-video {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 101vw;
    /* Un poco más de 100 para evitar fugas de borde */
    height: 100%;
    object-fit: cover;
    z-index: 0;
    transform: translate(-50%, -50%);
}

.header-video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(11, 11, 15, 0.55);
    z-index: 1;
}

.header-content {
    position: relative;
    z-index: 2;
}

h1,
h2,
h3,
h4,
.logo {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
}

/* FLOATING NAVBAR */
nav {
    background: rgba(11, 11, 15, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 0.6rem 2.5rem;
    display: flex;
    justify-content: center;
    gap: 3.5rem;
    align-items: center;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
    position: fixed;
    top: 25px;
    left: 50%;
    transform: translateX(-50%);
    width: auto;
    max-width: fit-content;
    z-index: 1000;
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 50px;
    animation: slideInNav 1s ease;
}

.logo {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    width: 150px;
    /* Ancho ajustado para dar espacio al menú */
    height: 40px;
    /* Altura original de la barra */
    z-index: 1005;
}

.logo img {
    position: absolute;
    top: 60%;
    /* Valores mayores bajan el elemento. Antes era 50% */
    transform: translate(-55%, -50%);
    /* Valores negativos en X lo mueven a la izquierda. Antes era -50% */
    left: 45%;
    /* Menos del 50% lo tira a la izquierda. Antes era 50% */
    width: 150px;
    /* Tamaño del logo mucho mayor que el contenedor */
    height: auto;
    filter: drop-shadow(0px 10px 15px rgba(0, 0, 0, 0.7));
    /* Sombra para efecto flotante */
    transition: transform 0.3s ease, filter 0.3s ease;
    pointer-events: none;
    /* Previene bugs de hover raros en los bordes transparentes */
}

.logo:hover img {
    transform: translate(-55%, -55%) scale(1.05);
    filter: drop-shadow(0px 15px 25px rgba(0, 0, 0, 0.9));
}

.menu-toggle {
    display: none;
    cursor: pointer;
    font-size: 1.5rem;
    color: var(--text-primary);
    transition: var(--transition);
}

.menu-toggle:hover {
    color: var(--accent-orange);
}

@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }

    .logo {
        width: 100px;
        margin-right: 15px;
        /* Más espacio al lado del botón menú */
    }

    .logo img {
        width: 150px;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        /* Centrado neutral en movil */
    }

    .logo:hover img {
        transform: translate(-50%, -55%) scale(1.05);
    }
}

nav>ul {
    list-style: none;
    display: flex;
    gap: 1.5rem;
}

nav>ul>li>a {
    text-decoration: none;
    color: var(--text-secondary);
    font-weight: 600;
    font-size: 0.85rem;
    transition: var(--transition);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
    /* Better control than margin-right on icon */
}

nav>ul>li>a i {
    font-size: 0.8rem;
    opacity: 0.8;
}

nav>ul>li>a:hover {
    color: var(--text-primary);
    background: rgba(255, 190, 44, 0.1) !important;
    transform: translateY(-2px);
}

nav>ul>li>a.active {
    background: rgba(255, 190, 44, 0.15) !important;
    color: #ffbe2c !important;
    border: 1px solid rgba(255, 190, 44, 0.3) !important;
    box-shadow: 0 0 15px rgba(255, 190, 44, 0.2) !important;
}

/* LANGUAGE SELECTOR IN NAV */
.language-selector {
    display: inline-block;
    position: relative;
}

.language-selector .dropdown-toggle {
    text-decoration: none;
    color: var(--text-secondary);
    font-weight: 600;
    font-size: 0.85rem;
    transition: var(--transition);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.language-selector .dropdown-toggle:hover {
    color: var(--text-primary);
    background: rgba(253, 126, 20, 0.2);
}

.language-dropdown {
    display: none;
    /* Bootstrap dropdown JS handles visibility */
    position: absolute;
    list-style: none;
    background: rgba(11, 11, 15, 0.95) !important;
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    border-radius: var(--radius-md) !important;
    box-shadow: var(--shadow-soft) !important;
    min-width: 120px !important;
    padding: 8px 0 !important;
    margin-top: 10px !important;
    z-index: 2000;
    flex-direction: column !important;
    /* Desactivar flex horizontal si lo hereda */
}

/* Mostrar dropdown cuando tiene la clase open o show de Bootstrap */
.language-selector.open .language-dropdown,
.language-selector.show .language-dropdown {
    display: block !important;
}

.language-dropdown li a {
    color: var(--text-secondary) !important;
    font-size: 0.8rem !important;
    font-weight: 600 !important;
    padding: 8px 20px !important;
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    transition: var(--transition) !important;
}

.language-dropdown li a:hover {
    background: rgba(255, 255, 255, 0.05) !important;
    color: var(--accent-orange) !important;
}

.language-dropdown li.active a {
    color: var(--accent-orange) !important;
    background: transparent !important;
}

.lang-flag-icon {
    width: 18px;
    height: auto;
    border-radius: 2px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
    margin-right: 4px;
    /* Ajuste fino para la bandera en el botón */
}

.language-dropdown .lang-flag-icon {
    margin-right: 12px;
    /* Más espacio dentro del dropdown */
}

.lang-item {
    display: flex;
    align-items: center;
}

/* HEADER & ONLINE INTERFACE */
header {
    min-height: 624px;
    /* Incrementado un 20% adicional (520px -> 624px) para majestuosidad visual */
    background: linear-gradient(to bottom, rgba(11, 11, 15, 0.0) 0%, rgba(11, 11, 15, 0.0) 100%),
        url('../img/romabg.png') no-repeat center top;
    background-size: cover;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 12.5rem 10% 0.5rem;
    /* Reducido el padding inferior a 0.5rem para acercar las estadísticas al contenedor de contenido */
    position: relative;
    overflow: hidden;
}

.hero-stats-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    padding-top: 2rem;
    flex-wrap: wrap;
}

header::before {
    display: none;
}

.header-content {
    text-align: center;
    position: relative;
    z-index: 3;
    animation: fadeInUp 1s ease 0.3s forwards;
    opacity: 0;
}

.header-title {
    font-size: 3rem;
    margin-bottom: 1rem;
    background: linear-gradient(to right, #333, #666);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: fadeInDown 0.8s ease-out;
}

.header-content p {
    animation: fadeInDown 0.8s ease-out 0.2s both;
}

/* HEADER TOP RANKS */
.header-top-ranks {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 2rem;
    flex-wrap: wrap;
    animation: fadeInUp 0.8s ease-out 0.4s both;
}

.header-top-ranks .simple-rank-card {
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    min-width: 250px;
}

/* ONLINE INFO INTERFACE */
.online-interface {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1.5rem;
    width: fit-content;
    max-width: 900px;
    margin: 3rem auto 0;
    padding: 1.5rem;
    background: rgba(21, 21, 26, 0.75);
    backdrop-filter: blur(20px);
    border-radius: var(--radius-lg);
    border: 1px solid rgba(255, 190, 44, 0.15);
    box-shadow: var(--shadow-soft);
    animation: fadeInUp 0.8s ease-out 0.4s both;
    display: flex;
    justify-content: center;
}

.info-card {
    padding: 1rem;
    text-align: center;
    border-radius: var(--radius-md);
    transition: var(--transition);
}

.info-card:hover {
    transform: translateY(-5px);
}

.info-card.blue {
    background: var(--accent-orange);
}

.info-card.pink {
    background: var(--accent-pink);
}

.info-card.purple {
    background: var(--accent-purple);
}

.info-card.yellow {
    background: var(--accent-yellow);
}

.info-card h4 {
    font-size: 0.8rem;
    text-transform: uppercase;
    color: var(--text-secondary);
    margin-bottom: 0.2rem;
}

.info-card .value {
    font-size: 1.8rem;
    color: #fff;
    font-weight: 800;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.info-card.yellow .value,
.info-card.yellow h4 {
    color: var(--accent-orange);
}

.status-dot {
    display: inline-block;
    width: 12px;
    height: 12px;
    background: #00e676;
    border-radius: 50%;
    margin-right: 8px;
    animation: pulse 2s infinite;
    box-shadow: 0 0 15px rgba(0, 230, 118, 0.6);
}

/* CONTAINER & SIDEBAR */
.container {
    display: grid;
    grid-template-columns: 280px 650px 280px;
    justify-content: center;
    gap: 2rem;
    padding: 0.5rem 2rem 3rem;
    /* Reducido el padding-top de 3rem a 0.5rem para alinear la cuadrícula de contenido con el header */
    max-width: 1700px;
    margin: 0 auto;
}

.container.no-sidebar-right {
    grid-template-columns: 280px 1fr;
    max-width: 1400px;
    /* Optional: limit width for better readability */
}

aside {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.sidebar-module {
    background: rgba(21, 21, 26, 0.7);
    backdrop-filter: blur(20px);
    border-radius: var(--radius-lg);
    padding: 1.8rem;
    box-shadow: var(--shadow-soft);
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

.sidebar-module:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.5);
    border-color: rgba(255, 190, 44, 0.25);
}

.sidebar-module h3 {
    font-size: 1rem;
    margin-bottom: 1.8rem;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
    overflow: visible;
}

.sidebar-module h3::before {
    content: '';
    width: 4px;
    height: 18px;
    background: var(--accent-orange);
    border-radius: 2px;
}

/* Side ranking items */
.ranking-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.8rem 0;
    border-bottom: 1px dashed var(--border-color);
}

.ranking-item:last-child {
    border: none;
}

/* LOGIN FORM STYLING */
.login-form {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.input-group {
    position: relative;
    display: flex;
    align-items: center;
}

.input-group i {
    position: absolute;
    left: 15px;
    color: var(--accent-orange);
    font-size: 0.9rem;
}

.input-group input {
    width: 100%;
    padding: 0.8rem 0.8rem 0.8rem 2.5rem;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    background: rgba(0, 0, 0, 0.2);
    color: var(--text-primary);
    font-family: inherit;
    font-size: 0.9rem;
    transition: var(--transition);
}

.input-group input:focus {
    outline: none;
    background: rgba(0, 0, 0, 0.4);
    border-color: var(--accent-orange);
    box-shadow: 0 0 0 4px rgba(253, 126, 20, 0.1);
}

.form-links {
    display: flex;
    justify-content: space-between;
    font-size: 0.75rem;
}

.form-links a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: var(--transition);
}

.form-links a:hover {
    color: var(--accent-orange);
}

.rank-index {
    position: absolute;
    top: -8px;
    left: -8px;
    width: 20px;
    height: 20px;
    background: var(--accent-orange);
    color: white;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    font-weight: 800;
    z-index: 2;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.4);
    border: 2px solid rgba(255, 255, 255, 0.15);
}

.rank-name {
    font-weight: 600;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
}

.rank-name a {
    color: var(--text-primary);
    text-decoration: none;
    transition: var(--transition);
}

.rank-name a:hover {
    color: var(--accent-orange);
    text-shadow: 0 0 8px rgba(253, 126, 20, 0.4);
}

/* RANKING TABLE LINKS */
.rankings-table a {
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
}

.rankings-table a:hover {
    color: var(--accent-orange);
    text-shadow: 0 0 5px rgba(253, 126, 20, 0.4);
}

.character-avatar-wrapper {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    position: relative;
    border: 2px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.rank-avatar {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 10px;
    display: block;
}

.rank-value {
    font-size: 0.8rem;
    color: var(--text-secondary);
    font-weight: 500;
    background: rgba(255, 255, 255, 0.05);
    padding: 2px 8px;
    border-radius: 10px;
}

.view-all-link {
    display: block;
    margin-top: 1.5rem;
    text-align: center;
    color: var(--accent-orange);
    font-size: 0.75rem;
    text-decoration: none;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: var(--transition);
}

.view-all-link:hover {
    color: var(--accent-pink);
    transform: translateY(-2px);
}

/* SERVER INFO LIST */
.server-info-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.server-info-list li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
    color: var(--text-secondary);
    padding: 0.6rem 0.8rem;
    background: rgba(255, 255, 255, 0.03);
}

/* SIDEBAR WIDGETS */
.simple-rank-card {
    background: rgba(21, 21, 26, 0.7);
    backdrop-filter: blur(10px);
    border-radius: var(--radius-lg);
    padding: 0.8rem 1rem;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    /* Push content to edges */
    gap: 15px;
    border: 1px solid rgba(255, 190, 44, 0.08);
    transition: var(--transition);
    text-align: left;
}

.simple-rank-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    border-color: rgba(255, 190, 44, 0.2);
}

.card-left {
    display: flex;
    align-items: center;
    gap: 15px;
}

.card-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.card-label {
    font-size: 0.65rem;
    font-weight: 800;
    color: var(--accent-orange);
    letter-spacing: 1px;
    margin-bottom: 2px;
}

.card-image {
    width: 50px;
    height: 50px;
    position: relative;
    margin-bottom: 0;
    flex-shrink: 0;
}

.card-image img {
    width: 100%;
    height: 100%;
    border-radius: 12px;
    object-fit: cover;
    border: 2px solid rgba(255, 255, 255, 0.1);
}

.card-image .rank-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    width: 18px;
    height: 18px;
    background: var(--accent-orange);
    color: #fff;
    font-size: 0.6rem;
    font-weight: 800;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #1a1a20;
}

.player-name {
    font-weight: 700;
    color: var(--text-primary);
    font-size: 0.95rem;
    line-height: 1.2;
}

.player-name a {
    color: var(--text-primary);
    text-decoration: none;
    transition: var(--transition);
}

.player-name a:hover {
    color: var(--accent-orange);
    text-shadow: 0 0 10px rgba(253, 126, 20, 0.5);
}

.card-stat {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--text-secondary);
    text-align: right;
    white-space: nowrap;
}

/* CASTLE SIEGE WIDGET */
.cs-module {
    border: 1px solid rgba(255, 215, 0, 0.2);
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.05);
}

.cs-winner-card {
    display: flex;
    align-items: center;
    gap: 15px;
    padding-top: 10px;
}

.cs-logo-container {
    width: 70px;
    height: 70px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: var(--radius-md);
    padding: 5px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
}

.cs-guild-logo {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.cs-details {
    display: flex;
    flex-direction: column;
}

.cs-label {
    font-size: 0.65rem;
    color: #ffd700;
    letter-spacing: 2px;
    font-weight: 800;
    margin-bottom: 2px;
}

.cs-guild-name {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--text-primary);
    line-height: 1;
    margin-bottom: 5px;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.1);
}

.cs-master {
    font-size: 0.85rem;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 5px;
}

.cs-master i {
    color: var(--accent-orange);
    font-size: 0.8rem;
}

/* SOCIAL MEDIA WIDGETS */
.social-widgets-module {
    padding: 1.5rem;
}

.social-widgets-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.social-widget {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 1rem 0.5rem;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-md);
    text-decoration: none;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.social-widget::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.05));
    opacity: 0;
    transition: var(--transition);
}

.social-widget:hover {
    transform: translateY(-5px);
    border-color: rgba(255, 255, 255, 0.2);
}

.social-widget:hover::before {
    opacity: 1;
}

.social-widget i {
    font-size: 1.8rem;
    margin-bottom: 8px;
    transition: var(--transition);
}

.social-widget span {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--text-primary);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Specific Social Colors & Effects */
.social-widget.discord {
    background: rgba(88, 101, 242, 0.1);
    border-color: rgba(88, 101, 242, 0.3);
}

.social-widget.discord i {
    color: #5865F2;
}

.social-widget.discord:hover {
    background: #5865F2;
    box-shadow: 0 10px 20px rgba(88, 101, 242, 0.4);
}

.social-widget.discord:hover i,
.social-widget.discord:hover span {
    color: #fff;
}

.social-widget.facebook {
    background: rgba(24, 119, 242, 0.1);
    border-color: rgba(24, 119, 242, 0.3);
}

.social-widget.facebook i {
    color: #1877F2;
}

.social-widget.facebook:hover {
    background: #1877F2;
    box-shadow: 0 10px 20px rgba(24, 119, 242, 0.4);
}

.social-widget.facebook:hover i,
.social-widget.facebook:hover span {
    color: #fff;
}

.social-widget.whatsapp {
    background: rgba(37, 211, 102, 0.1);
    border-color: rgba(37, 211, 102, 0.3);
}

.social-widget.whatsapp i {
    color: #25D366;
}

.social-widget.whatsapp:hover {
    background: #25D366;
    box-shadow: 0 10px 20px rgba(37, 211, 102, 0.4);
}

.social-widget.whatsapp:hover i,
.social-widget.whatsapp:hover span {
    color: #fff;
}

.social-widget.youtube {
    background: rgba(255, 0, 0, 0.1);
    border-color: rgba(255, 0, 0, 0.3);
}

.social-widget.youtube i {
    color: #FF0000;
}

.social-widget.youtube:hover {
    background: #FF0000;
    box-shadow: 0 10px 20px rgba(255, 0, 0, 0.4);
}

.social-widget.youtube:hover i,
.social-widget.youtube:hover span {
    color: #fff;
}

.social-widget.tiktok {
    background: rgba(255, 255, 255, 0.03) !important;
    border-color: rgba(255, 255, 255, 0.08) !important;
}

.social-widget.tiktok i {
    color: #fff !important;
    filter: drop-shadow(1.5px 0px 0px #fe2c55) drop-shadow(-1.5px 0px 0px #25f4ee) !important;
}

.social-widget.tiktok:hover {
    background: #010101 !important;
    border-color: rgba(255, 255, 255, 0.25) !important;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.6), 0 0 15px rgba(254, 44, 85, 0.2) !important;
}

.social-widget.tiktok:hover i,
.social-widget.tiktok:hover span {
    color: #fff !important;
}

/* HERO HEADER STATS */
.hero-stats-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    padding-top: 2rem;
}

.stat-capsule {
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(5px);
    padding: 1rem 2.5rem;
    border-radius: 4px;
    /* Slight radius */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 160px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    transition: var(--transition);
}

.stat-capsule:hover {
    border-color: var(--accent-orange);
    background: rgba(0, 0, 0, 0.8);
    box-shadow: 0 0 15px rgba(253, 126, 20, 0.2);
}

.stat-capsule.left {
    transform: skewX(20deg);
    margin-right: -20px;
    border-right: none;
    /* Connect to diamond visually */
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
}

.stat-capsule.right {
    transform: skewX(-20deg);
    margin-left: -20px;
    border-left: none;
    /* Connect to diamond visually */
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
}

.stat-capsule .stat-value,
.stat-capsule .stat-label {
    display: block;
    transform: skewX(-20deg);
    /* Counter skew for Left */
}

.stat-capsule.right .stat-value,
.stat-capsule.right .stat-label {
    transform: skewX(20deg);
    /* Counter skew for Right */
}

.stat-capsule .stat-value {
    font-size: 1.8rem;
    font-weight: 800;
    font-family: 'Montserrat', sans-serif;
    color: #fff;
    line-height: 1;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
}

.stat-capsule .stat-label {
    font-size: 0.65rem;
    color: #aaa;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-top: 4px;
    font-weight: 600;
}

.stat-diamond {
    width: 140px;
    height: 140px;
    background: rgba(0, 0, 0, 0.8);
    border: 2px solid #37ff00;
    box-shadow: 0 0 25px rgba(55, 255, 0, 0.4), inset 0 0 20px rgba(55, 255, 0, 0.2);
    transform: rotate(45deg);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 20px 40px;
    z-index: 2;
    position: relative;
    transition: var(--transition);
}

.stat-diamond:hover {
    box-shadow: 0 0 40px rgba(55, 255, 0, 0.6), inset 0 0 30px rgba(55, 255, 0, 0.3);
    transform: rotate(45deg) scale(1.05);
}

.stat-diamond::before {
    content: '';
    position: absolute;
    inset: 6px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    z-index: -1;
}

.stat-diamond-content {
    transform: rotate(-45deg);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    width: 150%;
    /* Ensure text doesn't wrap weirdly */
}

.live-count {
    font-size: 3.5rem;
    font-weight: 800;
    color: #fff;
    line-height: 1;
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.5);
    font-family: 'Montserrat', sans-serif;
}

.live-label {
    color: #37ff00;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-top: 5px;
}

/* LOADER */
#page-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #0b0b0f;
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.5s ease;
}

#page-loader.fade-out {
    opacity: 0;
}

.loader-content {
    position: relative;
    width: 180px;
    height: 180px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.loader-logo {
    width: 90px;
    height: auto;
    position: relative;
    z-index: 2;
    animation: pulse 2s infinite;
}

.loader-circle {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 3px solid transparent;
    border-top-color: var(--accent-orange);
    border-right-color: var(--accent-purple);
    animation: spin 1.5s linear infinite;
    box-shadow: 0 0 15px rgba(253, 126, 20, 0.2);
}

.loader-circle::before {
    content: '';
    position: absolute;
    top: 5px;
    left: 5px;
    right: 5px;
    bottom: 5px;
    border-radius: 50%;
    border: 3px solid transparent;
    border-top-color: var(--accent-purple);
    border-left-color: var(--accent-orange);
    animation: spin 2s linear infinite reverse;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* HERO ACTIONS */
.hero-actions {
    display: flex;
    gap: 20px;
    justify-content: center;
    width: 100%;
}

.btn-hero {
    padding: 1rem 3rem;
    border-radius: 50px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 800;
    text-transform: uppercase;
    text-decoration: none;
    font-size: 1.1rem;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    min-width: 220px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-white {
    background: #ffffff;
    color: #000;
    box-shadow: 0 5px 20px rgba(255, 255, 255, 0.2);
}

.btn-white:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(255, 255, 255, 0.4);
    background: #f0f0f0;
}

.btn-orange {
    background: var(--accent-gold-gradient);
    color: #000;
    box-shadow: 0 5px 20px rgba(233, 182, 70, 0.3);
    font-weight: 700;
}

.btn-orange:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(233, 182, 70, 0.5);
    background: var(--accent-gold-hover);
}

/* Responsive adjustments for Hero - Enforced globally as horizontal */

.server-info-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.server-info-list li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.server-info-list li:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.server-info-list li span i {
    color: var(--accent-orange);
    margin-right: 8px;
    font-size: 0.8rem;
    width: 20px;
    text-align: center;
}

.server-info-list li strong {
    color: var(--text-primary);
    font-weight: 700;
}

/* MAIN CONTENT */
main {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

article {
    background: rgba(21, 21, 26, 0.7);
    backdrop-filter: blur(20px);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 190, 44, 0.08);
    transition: var(--transition);
}

article:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    border-color: rgba(255, 190, 44, 0.2);
}

.article-thumb {
    width: 100%;
    height: 50px;
    background: linear-gradient(90deg, rgba(183, 65, 14, 0.8) 0%, rgba(21, 21, 26, 0.9) 100%);
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding-left: 1.5rem;
    color: var(--accent-orange);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    overflow: hidden;
}

.article-thumb i {
    margin-right: 10px;
    font-size: 1.2rem;
}

.article-thumb::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.1);
    pointer-events: none;
}

.article-body {
    padding: 1.8rem;
}

.article-body h2 {
    margin-bottom: 0.8rem;
    font-size: 1.2rem;
    color: var(--text-primary);
    line-height: 1.3;
}

.article-body p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

.btn-more {
    display: inline-block;
    padding: 0.8rem 2rem;
    background: linear-gradient(135deg, rgba(183, 65, 14, 0.8) 0%, rgba(253, 126, 20, 0.8) 100%);
    color: #fff;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: var(--transition);
    border: 1px solid rgba(253, 126, 20, 0.3);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.btn-more:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 8px 25px rgba(253, 126, 20, 0.25);
    background: linear-gradient(135deg, rgba(183, 65, 14, 1) 0%, rgba(253, 126, 20, 1) 100%);
    border-color: var(--accent-orange);
    filter: brightness(1.2);
}

.btn-more:active {
    transform: translateY(-1px);
}

/* FOOTER */
footer {
    padding: 4rem 10%;
    background: var(--bg-card);
    border-top: 1px solid var(--border-color);
    text-align: center;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-links a {
    text-decoration: none;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.copy {
    color: #aaa;
    font-size: 0.85rem;
}

/* AUTH PAGES */
.auth-wrapper {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 120px 20px 60px;
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.8)),
        url('../img/background.jpg') no-repeat center center;
    background-size: cover;
    background-attachment: fixed;
}

.auth-card {
    background: rgba(21, 21, 26, 0.85);
    /* Dark background */
    backdrop-filter: blur(25px);
    width: 100%;
    max-width: 450px;
    padding: 3rem;
    border-radius: var(--radius-lg);
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.1);
    animation: scaleIn 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.auth-card a[href="index.html"] {
    transition: var(--transition);
}

.auth-card a[href="index.html"]:hover {
    color: var(--accent-orange) !important;
    transform: translateX(-5px);
}

.auth-header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.auth-header i {
    font-size: 2.5rem;
    color: var(--accent-orange);
    margin-bottom: 1rem;
}

.auth-header h2 {
    font-size: 1.8rem;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.auth-header p {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.auth-footer {
    margin-top: 2rem;
    text-align: center;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.auth-footer a {
    color: var(--accent-orange);
    text-decoration: none;
    font-weight: 700;
}

.auth-footer a:hover {
    text-decoration: underline;
}

/* RESPONSIVE - Enforced globally as horizontal (except right sidebar hiding) */
@media (max-width: 1050px) {
    .container {
        grid-template-columns: 280px 1fr;
    }

    .sidebar-right {
        display: none;
        /* Hide right sidebar on smaller tablets and mobile */
    }

    .mobile-social-only {
        display: block !important;
        /* Show left sidebar social links when right sidebar is hidden */
    }
}

/* CUSTOM NAV ANIMATION TO KEEP CENTERED */
@keyframes slideInNav {
    from {
        opacity: 0;
        top: -50px;
        transform: translateX(-50%);
    }

    to {
        opacity: 1;
        top: 25px;
        transform: translateX(-50%);
    }
}

/* RANKINGS PAGE STYLES */

.rankings-menu,
.rankings_menu {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 2rem;
    justify-content: center;
}

.rankings-menu a,
.rankings_menu a {
    padding: 0.6rem 1.2rem;
    border-radius: 30px;
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

.rankings-menu a:hover,
.rankings_menu a:hover,
.rankings-menu a.active,
.rankings_menu a.active {
    background: var(--accent-gold-gradient) !important;
    color: #000 !important;
    border-color: #ffbe2c !important;
    box-shadow: 0 4px 15px rgba(255, 190, 44, 0.35) !important;
    font-weight: 600 !important;
}

.table-responsive {
    overflow-x: auto;
    border-radius: var(--radius-lg);
}

/* ESTILIZACIÓN DE TABLAS DEL CMS GENÉRICAS */
.table {
    width: 100% !important;
    border-collapse: separate !important;
    border-spacing: 0 8px !important;
    margin-top: 1rem !important;
    background: transparent !important;
    border: none !important;
}

.table thead th,
.table th {
    text-transform: uppercase;
    font-size: 0.8rem !important;
    letter-spacing: 1px !important;
    color: var(--text-secondary) !important;
    padding: 1rem !important;
    text-align: left !important;
    border: none !important;
    border-bottom: 2px solid rgba(255, 255, 255, 0.1) !important;
    font-weight: 700 !important;
    background: transparent !important;
}

.table tr {
    transition: var(--transition) !important;
    background: transparent !important;
}

.table tr:hover {
    background: rgba(255, 255, 255, 0.02) !important;
}

.table td {
    padding: 0.8rem 1rem !important;
    vertical-align: middle !important;
    background: rgba(21, 21, 26, 0.6) !important;
    border: none !important;
    border-top: 1px solid rgba(255, 255, 255, 0.03) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03) !important;
    color: var(--text-primary) !important;
    font-size: 0.9rem !important;
}

.table tr td:first-child {
    border-left: 1px solid rgba(255, 255, 255, 0.03) !important;
    border-top-left-radius: var(--radius-md) !important;
    border-bottom-left-radius: var(--radius-md) !important;
}

.table tr td:last-child {
    border-right: 1px solid rgba(255, 255, 255, 0.03) !important;
    border-top-right-radius: var(--radius-md) !important;
    border-bottom-right-radius: var(--radius-md) !important;
}

.rankings-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0 8px;
    /* Spacing between rows */
    margin-top: 1rem;
}

.rankings-table thead th,
.rankings-table tr:first-child td {
    /* WebEngine often puts headers in first tr */
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 1px;
    color: var(--text-secondary);
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    font-weight: 700;
}

.rankings-table tr {
    transition: var(--transition);
}

/* Skip hover for header row if it's a tr */
.rankings-table tr:not(:first-child):hover {
    transform: translateY(-3px);
    background: rgba(255, 255, 255, 0.03);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.rankings-table td {
    padding: 0.6rem;
    vertical-align: middle;
    background: rgba(21, 21, 26, 0.6);
    border-top: 1px solid rgba(255, 255, 255, 0.03);
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
    color: var(--text-primary);
    font-size: 0.95rem;
}

.rankings-table a {
    color: var(--text-primary);
    text-decoration: none;
    transition: var(--transition);
    font-weight: 500;
}

.rankings-table a:hover {
    color: var(--accent-orange);
    text-shadow: 0 0 10px rgba(253, 126, 20, 0.4);
}

.rankings-table tr td:first-child {
    border-top-left-radius: 12px;
    border-bottom-left-radius: 12px;
    border-left: 1px solid rgba(255, 255, 255, 0.03);
}

.rankings-table tr td:last-child {
    border-top-right-radius: 12px;
    border-bottom-right-radius: 12px;
    border-right: 1px solid rgba(255, 255, 255, 0.03);
}

/* --- Badges del Podio (Puestos 1, 2 y 3) en Rankings --- */
.rankings-table-place {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    width: 26px !important;
    height: 26px !important;
    border-radius: 50% !important;
    padding: 0 !important;
    margin: 8px auto !important;
    font-weight: 800 !important;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.8rem !important;
    text-align: center;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.4);
    transition: var(--transition);
    color: var(--text-secondary);
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

/* Puesto 1 (Oro Premium) */
.rankings-table tr:nth-child(2) .rankings-table-place,
.table tbody tr:nth-child(1) .rankings-table-place,
.rankings-table tbody tr:nth-child(1) .rankings-table-place {
    background: var(--accent-gold-gradient) !important;
    color: #000 !important;
    border-color: #ffbe2c !important;
    box-shadow: 0 0 12px rgba(255, 190, 44, 0.45) !important;
}

/* Puesto 2 (Plata Premium) */
.rankings-table tr:nth-child(3) .rankings-table-place,
.table tbody tr:nth-child(2) .rankings-table-place,
.rankings-table tbody tr:nth-child(2) .rankings-table-place {
    background: linear-gradient(135deg, #cbd5e1 0%, #94a3b8 100%) !important;
    color: #000 !important;
    border-color: #cbd5e1 !important;
    box-shadow: 0 0 10px rgba(203, 213, 225, 0.35) !important;
}

/* Puesto 3 (Bronce Premium) */
.rankings-table tr:nth-child(4) .rankings-table-place,
.table tbody tr:nth-child(3) .rankings-table-place,
.rankings-table tbody tr:nth-child(3) .rankings-table-place {
    background: linear-gradient(135deg, #d97706 0%, #b45309 100%) !important;
    color: #fff !important;
    border-color: #d97706 !important;
    box-shadow: 0 0 8px rgba(217, 119, 6, 0.35) !important;
}

/* Estilos para los nombres de los personajes/gremios en el podio */
.rankings-table tr:nth-child(2) td a,
.table tbody tr:nth-child(1) td a,
.rankings-table tbody tr:nth-child(1) td a {
    color: #ffd479 !important;
    /* Tono oro brillante para enlaces */
    text-shadow: 0 0 8px rgba(255, 212, 121, 0.25) !important;
    font-weight: 700 !important;
}

.rankings-table tr:nth-child(2) td a:hover,
.table tbody tr:nth-child(1) td a:hover,
.rankings-table tbody tr:nth-child(1) td a:hover {
    text-shadow: 0 0 12px rgba(255, 212, 121, 0.5) !important;
}

.rankings-table tr:nth-child(3) td a,
.table tbody tr:nth-child(2) td a,
.rankings-table tbody tr:nth-child(2) td a {
    color: #e2e8f0 !important;
    /* Tono plata brillante para enlaces */
    text-shadow: 0 0 8px rgba(226, 232, 240, 0.2) !important;
    font-weight: 600 !important;
}

.rankings-table tr:nth-child(4) td a,
.table tbody tr:nth-child(3) td a,
.rankings-table tbody tr:nth-child(3) td a {
    color: #f59e0b !important;
    /* Tono bronce brillante para enlaces */
    font-weight: 600 !important;
}

.rankings-table .character-avatar-wrapper {
    position: relative;
    /* Keep the relative positioning for the absolute rank index */
    width: 45px;
    height: 45px;
    border-radius: 12px;
    /* ensure wrapper itself is rounded if it has bg */
}

/* Override rank index for inside table */
.rankings-table .rank-index {
    width: 20px;
    height: 20px;
    font-size: 0.7rem;
    top: -5px;
    left: -5px;
}

.rankings-table .rank-avatar {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
    border: 2px solid rgba(255, 255, 255, 0.1);
}

.rankings-update-time {
    text-align: right;
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-top: 1rem;
    font-style: italic;
}

.country-flag {
    border-radius: 4px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
}

.online-status-indicator {
    width: 8px;
    height: 8px;
    margin-left: 8px;
    vertical-align: middle;
}

/* Avatar de Personaje en las Tablas de Rankings */
.rankings-class-image {
    width: 32px !important;
    height: 32px !important;
    object-fit: cover !important;
    border-radius: var(--radius-sm) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    background: rgba(0, 0, 0, 0.4) !important;
    transition: var(--transition) !important;
    vertical-align: middle !important;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.4) !important;
}

.rankings-table tr:hover .rankings-class-image,
.table tr:hover .rankings-class-image {
    border-color: #ffbe2c !important;
    transform: scale(1.1) !important;
    box-shadow: 0 0 10px rgba(255, 190, 44, 0.3) !important;
}

/* RANKINGS CLASS FILTER */
.rankings-class-filter {
    list-style: none;
    padding: 0;
    margin: 0 0 2rem 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
}

.rankings-class-filter li {
    display: inline-block;
}

.rankings-class-filter-selection {
    display: block;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 1rem;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    min-width: 100px;
    color: var(--text-secondary);
    text-decoration: none;
}

.rankings-class-filter-selection:hover {
    background: rgba(255, 190, 44, 0.08) !important;
    border-color: #ffbe2c !important;
    transform: translateY(-3px);
    color: #fff !important;
    box-shadow: 0 4px 15px rgba(255, 190, 44, 0.15) !important;
}

.rankings-class-filter-selection.active {
    background: var(--accent-gold-gradient) !important;
    color: #000 !important;
    border-color: #ffbe2c !important;
    box-shadow: 0 4px 15px rgba(255, 190, 44, 0.3) !important;
    font-weight: 600 !important;
}

.rankings-class-filter-selection:hover img.rankings-class-filter-image,
.rankings-class-filter-selection.active img.rankings-class-filter-image {
    border-color: #ffbe2c !important;
    transform: scale(1.05);
}

.rankings-class-filter-image {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    margin-bottom: 0.5rem;
    border: 2px solid rgba(255, 255, 255, 0.1);
    transition: var(--transition);
}

/* DOWNLOADS MODULE */
.download-category-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--accent-orange);
    margin: 2rem 0 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    gap: 10px;
}

.download-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.download-card {
    background: rgba(21, 21, 26, 0.6);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-md);
    padding: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: var(--transition);
}

.download-card:hover {
    background: rgba(21, 21, 26, 0.9);
    border-color: var(--accent-orange);
    transform: translateX(5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.download-info {
    display: flex;
    flex-direction: column;
    gap: 5px;
    flex: 1;
}

.download-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: #fff;
}

.download-desc {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.download-meta {
    display: flex;
    align-items: center;
    gap: 20px;
}

.download-size {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--accent-pink);
    background: rgba(255, 0, 128, 0.1);
    padding: 4px 10px;
    border-radius: 4px;
    border: 1px solid rgba(255, 0, 128, 0.2);
}

.btn-download {
    background: var(--gradient-primary);
    color: #fff;
    padding: 10px 25px;
    border-radius: 4px;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.85rem;
    text-decoration: none;
    transition: var(--transition);
    border: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-download:hover {
    box-shadow: 0 0 15px rgba(253, 126, 20, 0.4);
    transform: translateY(-2px);
    color: #fff;
}

.rankings-class-filter-selection:hover .rankings-class-filter-image {
    border-color: var(--accent-orange);
    box-shadow: 0 0 15px rgba(253, 126, 20, 0.3);
}

.rankings-class-filter-grayscale {
    filter: grayscale(100%);
    opacity: 0.7;
}

.rankings-class-filter-selection:hover .rankings-class-filter-grayscale {
    filter: grayscale(0%);
    opacity: 1;
}

/* PAGE TITLE STYLE */
.page-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-primary);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
    position: relative;
    display: flex;
    align-items: center;
}

.page-title span {
    background: linear-gradient(to right, var(--accent-orange), #fff);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

.page-title::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 60px;
    height: 3px;
    background: var(--accent-orange);
    box-shadow: 0 0 10px rgba(253, 126, 20, 0.5);
}

/* MAIN CONTENT STYLE */
main {
    background: rgba(21, 21, 26, 0.6);
    padding: 2rem;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-soft);
    position: relative;
    overflow: hidden;
}

/* Ensure inner content respects radius */
main>* {
    position: relative;
    z-index: 1;
}

/* DATATABLES CUSTOMIZATION */
.dataTables_wrapper .dataTables_paginate .paginate_button {
    color: var(--text-secondary) !important;
    border: 1px solid var(--border-color) !important;
    border-radius: var(--radius-sm) !important;
    background: rgba(255, 255, 255, 0.05) !important;
    margin: 0 2px;
    padding: 0.3em 0.8em;
    font-size: 0.9rem;
}

.dataTables_wrapper .dataTables_paginate .paginate_button:hover {
    color: #fff !important;
    border: 1px solid var(--accent-orange) !important;
    background: rgba(253, 126, 20, 0.2) !important;
}

.dataTables_wrapper .dataTables_paginate .paginate_button.current,
.dataTables_wrapper .dataTables_paginate .paginate_button.current:hover {
    color: #fff !important;
    border: 1px solid var(--accent-orange) !important;
    background: var(--accent-orange) !important;
    box-shadow: 0 0 10px rgba(253, 126, 20, 0.3);
}

.dataTables_wrapper .dataTables_paginate .paginate_button.disabled,
.dataTables_wrapper .dataTables_paginate .paginate_button.disabled:hover,
.dataTables_wrapper .dataTables_paginate .paginate_button.disabled:active {
    cursor: default;
    color: #666 !important;
    border: 1px solid transparent !important;
    background: transparent !important;
    box-shadow: none;
}

.dataTables_wrapper .dataTables_length,
.dataTables_wrapper .dataTables_filter,
.dataTables_wrapper .dataTables_info,
.dataTables_wrapper .dataTables_processing {
    color: var(--text-secondary) !important;
    margin-top: 1rem;
}

.dataTables_wrapper .dataTables_paginate {
    float: right !important;
    text-align: right !important;
    padding-top: 0.25em;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

.dataTables_wrapper .dataTables_info {
    float: left;
    padding-top: 0.755em;
}

/* Clear floats */
.dataTables_wrapper::after {
    content: "";
    clear: both;
    display: table;
}

.dataTables_wrapper .dataTables_length select {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    padding: 5px;
    border-radius: var(--radius-sm);
}

.dataTables_wrapper .dataTables_filter input {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    padding: 5px 10px;
    border-radius: var(--radius-sm);
    margin-left: 5px;
}

/* NEWS MODULE STYLES */
.news-item {
    background: rgba(21, 21, 26, 0.6);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    margin-bottom: 2rem;
    overflow: hidden;
    transition: var(--transition);
    position: relative;
}

.news-item:hover {
    border-color: var(--accent-orange);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    transform: translateY(-2px);
}

.news-item-header {
    padding: 1.5rem;
    border-bottom: 1px solid var(--border-color);
    background: rgba(255, 255, 255, 0.02);
    position: relative;
}

.news-item-title {
    margin: 0 0 0.8rem 0;
    font-size: 1.4rem;
    font-weight: 600;
    line-height: 1.3;
}

.news-item-title a {
    color: var(--text-primary);
    text-decoration: none;
    transition: var(--transition);
}

.news-item-title a:hover {
    color: var(--accent-orange);
    text-shadow: 0 0 10px rgba(253, 126, 20, 0.3);
}

.news-item-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    font-size: 0.85rem;
    color: var(--text-secondary);
    font-family: 'Roboto Mono', monospace;
    /* Tech feel */
}

.news-item-meta span {
    display: flex;
    align-items: center;
    gap: 6px;
}

.news-item-meta i {
    color: var(--accent-orange);
}

.news-item-content {
    padding: 1.5rem;
    color: var(--text-secondary);
    line-height: 1.7;
    font-size: 0.95rem;
}

.news-item-content p {
    margin-bottom: 1rem;
}

.news-item-content img {
    max-width: 100%;
    height: auto;
    border-radius: var(--radius-md);
    margin: 1rem 0;
    border: 1px solid var(--border-color);
}

.news-readmore {
    display: inline-block;
    padding: 0.6rem 1.2rem;
    background: rgba(253, 126, 20, 0.1);
    border: 1px solid var(--accent-orange);
    color: var(--accent-orange);
    border-radius: var(--radius-sm);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    margin-top: 1rem;
    transition: var(--transition);
}

.news-readmore:hover {
    background: var(--accent-orange);
    color: white;
    box-shadow: 0 0 15px rgba(253, 126, 20, 0.4);
}

/* USERCP MODULE STYLES */


/* USERCP MODULE STYLES */

.usercp-table {
    width: 100%;
    margin-bottom: 1rem;
    border-collapse: separate;
    border-spacing: 0 5px;
    font-size: 0.9rem;
    /* Slightly smaller base font */
}

.usercp-table td,
.usercp-table th {
    padding: 0.75rem 0.5rem;
    /* Reduced horizontal padding */
    background: rgba(255, 255, 255, 0.03);
    border: none;
    vertical-align: middle;
    /* Ensure vertical alignment */
}

.usercp-table tr:first-child td {
    background: rgba(253, 126, 20, 0.1);
    color: var(--accent-orange);
    font-weight: 600;
    border-radius: var(--radius-sm);
    padding: 0.75rem 0.5rem;
    /* Consistent padding */
}

/* ... existing code ... */

.btn-action {
    display: inline-block;
    padding: 4px 15px;
    /* Reduced padding */
    font-size: 0.75rem;
    /* Smaller font */
    font-weight: 700;
    text-transform: uppercase;
    color: #fff;
    background: var(--gradient-primary);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    text-decoration: none;
    cursor: pointer;
    transition: var(--transition);
    white-space: nowrap;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    min-width: 80px;
    /* Ensure minimum width */
    text-align: center;
}

.usercp-table tr td:first-child {
    border-radius: var(--radius-sm) 0 0 var(--radius-sm);
    color: var(--text-secondary);
}

.usercp-table tr td:last-child {
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    text-align: right;
    color: var(--text-primary);
}

.usercp-table img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(255, 255, 255, 0.1);
}


.btn-action {
    display: inline-block;
    padding: 6px 20px;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    color: #fff;
    background: var(--gradient-primary);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    text-decoration: none;
    cursor: pointer;
    transition: var(--transition);
    white-space: nowrap;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.btn-action:hover {
    background: #fff;
    color: var(--accent-orange);
    border-color: var(--accent-orange);
    box-shadow: 0 0 15px rgba(253, 126, 20, 0.4);
    transform: translateY(-2px);
}

.usercp-character-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 1.5rem;
    text-align: center;
    transition: var(--transition);
    margin-bottom: 20px;
    height: 100%;
}

.usercp-character-card:hover {
    border-color: var(--accent-orange);
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.usercp-character-name {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 1rem;
    display: block;
}

.usercp-character-img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.1);
    margin: 0 auto 1rem;
    display: block;
    transition: var(--transition);
}

.usercp-character-card:hover .usercp-character-img {
    border-color: var(--accent-orange);
    box-shadow: 0 0 10px rgba(253, 126, 20, 0.3);
}

.usercp-character-info {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

.usercp-character-level {
    display: inline-block;
    background: var(--accent-orange);
    color: white;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 0.8rem;
    margin-top: 5px;
}

/* UserCP Forms */
.usercp-input {
    background: rgba(0, 0, 0, 0.2) !important;
    border: 1px solid var(--border-color) !important;
    color: var(--text-primary) !important;
    border-radius: var(--radius-sm) !important;
    padding: 10px 15px !important;
    height: auto !important;
    transition: var(--transition) !important;
}

.usercp-input:focus {
    border-color: var(--accent-orange) !important;
    box-shadow: 0 0 0 2px rgba(253, 126, 20, 0.1) !important;
}

.usercp-box {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.module-requirements p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 5px;
    background: rgba(255, 68, 68, 0.1);
    border: 1px solid rgba(255, 68, 68, 0.2);
    padding: 0.5rem;
    border-radius: var(--radius-sm);
    display: inline-block;
    margin-right: 5px;
}

/* UserCP Sidebar Links */
.user-panel-links {
    list-style: none;
    padding: 0;
    margin: 15px 0 0 0;
}

.user-panel-links li {
    margin-bottom: 8px;
    padding: 0;
}

.user-panel-links li a {
    color: var(--text-secondary);
    text-decoration: none;
    display: flex;
    align-items: center;
    transition: var(--transition);
    font-size: 0.95rem;
}

.user-panel-links li a:hover {
    color: var(--accent-orange);
    padding-left: 5px;
}

.user-panel-links li img {
    margin-right: 10px;
    vertical-align: middle;
    opacity: 0.8;
    transition: var(--transition);
    max-width: 16px;
    height: auto;
}

.user-panel-links li a:hover img {
    opacity: 1;
}

/* INFO MODULE */
.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 2rem;
}

.info-card {
    background: rgba(21, 21, 26, 0.6);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-md);
    padding: 1.5rem;
    text-align: center;
    transition: var(--transition);
}

.info-card:hover {
    background: rgba(21, 21, 26, 0.9);
    border-color: var(--accent-orange);
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.info-card i {
    font-size: 2rem;
    color: var(--accent-orange);
    margin-bottom: 10px;
}

.info-label {
    display: block;
    font-size: 0.85rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 5px;
}

.info-value {
    display: block;
    font-size: 1.2rem;
    font-weight: 700;
    color: #fff;
    font-family: 'Montserrat', sans-serif;
}

/* CUSTOM TABLES */
.custom-table {
    width: 100%;
    margin-bottom: 2rem;
    background: rgba(21, 21, 26, 0.6);
    backdrop-filter: blur(10px);
    border-radius: var(--radius-md);
    border: 1px solid rgba(255, 255, 255, 0.05);
    overflow: hidden;
}

.custom-table table {
    width: 100%;
    border-collapse: collapse;
}

.custom-table th,
.custom-table td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.custom-table th {
    background: rgba(0, 0, 0, 0.3);
    color: var(--accent-orange);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 1px;
}

.custom-table tr:last-child td {
    border-bottom: none;
}

.custom-table tr:hover td {
    color: #fff;
    background: rgba(255, 255, 255, 0.02);
}

/* RESPONSIVE VIDEO */
.video-responsive {
    position: relative;
    padding-bottom: 56.25%;
    /* 16:9 Aspect Ratio */
    height: 0;
    overflow: hidden;
    border-radius: var(--radius-md);
    border: 1px solid rgba(255, 255, 255, 0.05);
    margin-top: 1rem;
}

/* ADDSTATS MODULE */
.addstats-container {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.addstats-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--border-color);
}

.addstats-avatar img {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    border: 3px solid var(--accent-orange);
    padding: 3px;
    background: rgba(0, 0, 0, 0.3);
    box-shadow: 0 0 20px rgba(253, 126, 20, 0.3);
}

.addstats-charname {
    font-size: 1.8rem;
    margin: 0;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.addstats-points {
    font-size: 1.1rem;
    color: var(--accent-pink);
    font-weight: 600;
    background: rgba(255, 0, 128, 0.1);
    padding: 5px 15px;
    border-radius: 20px;
    border: 1px solid rgba(255, 0, 128, 0.2);
}

.addstats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 2rem;
}

.addstats-item {
    background: rgba(0, 0, 0, 0.2);
    padding: 1rem;
    border-radius: var(--radius-sm);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.addstats-item label {
    display: block;
    margin-bottom: 8px;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.addstats-item .stats-current {
    color: var(--accent-orange);
    font-weight: 600;
}

.addstats-item input {
    width: 100%;
}

.addstats-submit {
    text-align: center;
    margin-top: 1rem;
}

/* USERCP CHARACTER CARD (MyAccount) */
.usercp-character-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 2rem;
}

.usercp-character-card {
    background: rgba(21, 21, 26, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-md);
    padding: 1.5rem;
    height: 100%;
    /* Ensure full height in grid */
    transition: var(--transition);
}

.usercp-character-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
    border-color: rgba(255, 255, 255, 0.15);
}

.usercp-card-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.usercp-card-avatar img {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    object-fit: cover;
    border: 2px solid rgba(255, 255, 255, 0.1);
}

.usercp-card-title {
    display: flex;
    flex-direction: column;
}

.usercp-card-name {
    font-size: 1.1rem;
    font-weight: 700;
    margin: 0 0 2px 0;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 8px;
}

.usercp-card-name a {
    color: #fff;
    text-decoration: none;
    transition: var(--transition);
}

.usercp-card-name a:hover {
    color: var(--accent-orange);
}

.usercp-card-classname {
    font-size: 0.85rem;
    color: var(--accent-orange);
    font-weight: 600;
}

.usercp-card-level {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.usercp-card-stats {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 1.5rem;
}

.stat-row {
    display: flex;
    justify-content: space-between;
    font-size: 0.9rem;
    color: var(--text-secondary);
    padding: 4px 0;
    border-bottom: 1px dashed rgba(255, 255, 255, 0.05);
}

.stat-row.has-progress {
    flex-direction: column;
    gap: 4px;
}

.stat-info {
    display: flex;
    justify-content: space-between;
    width: 100%;
}

.stat-progress {
    width: 100%;
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
    overflow: hidden;
}

.stat-bar {
    height: 100%;
    border-radius: 2px;
    transition: width 0.5s ease-in-out;
}

.stat-row:last-child {
    border-bottom: none;
}

.stat-row b {
    color: #fff;
    font-weight: 600;
}

.usercp-card-actions .btn-action {
    display: block;
    text-align: center;
    width: 100%;
}

/* RESPONSIVE NAV MENU - Enforced globally as horizontal */

/* RESPONSIVE LAYOUT (BODY & SIDEBARS) - Enforced globally */

/* RESPONSIVE TABLES */
.table-responsive {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin-bottom: 1rem;
    background: transparent;
}

.table-responsive table {
    min-width: 600px;
}

/* MOBILE RANKINGS CARD VIEW - Enforced globally as standard table */

/* SOCIAL MEDIA WIDGETS - LIST VERSION (FULL WIDTH) */
.social-widgets-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.social-widget-long {
    display: flex;
    align-items: center;
    padding: 1rem;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-md);
    text-decoration: none;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.social-widget-long::before {
    border-color: rgba(255, 255, 255, 0.1);
}

.sw-icon {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.05);
    margin-right: 15px;
    margin-left: 5px;
    /* Adjust for the left border */
    font-size: 1.2rem;
    transition: var(--transition);
}

.sw-text {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.sw-title {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 2px;
    transition: var(--transition);
}

.sw-sub {
    font-size: 0.7rem;
    color: var(--text-secondary);
}

.sw-arrow {
    font-size: 0.9rem;
    color: var(--text-secondary);
    opacity: 0.5;
    transition: var(--transition);
    transform: translateX(-5px);
}

.social-widget-long:hover .sw-arrow {
    opacity: 1;
    transform: translateX(0);
}

/* Specific Social Colors & Effects - Long Version */
.social-widget-long.discord::before {
    background: #5865F2;
}

.social-widget-long.discord .sw-icon {
    color: #5865F2;
}

.social-widget-long.discord:hover .sw-icon {
    background: #5865F2;
    color: #fff;
    box-shadow: 0 5px 15px rgba(88, 101, 242, 0.3);
}

.social-widget-long.discord:hover .sw-title,
.social-widget-long.discord:hover .sw-arrow {
    color: #5865F2;
}

.social-widget-long.facebook::before {
    background: #1877F2;
}

.social-widget-long.facebook .sw-icon {
    color: #1877F2;
}

.social-widget-long.facebook:hover .sw-icon {
    background: #1877F2;
    color: #fff;
    box-shadow: 0 5px 15px rgba(24, 119, 242, 0.3);
}

.social-widget-long.facebook:hover .sw-title,
.social-widget-long.facebook:hover .sw-arrow {
    color: #1877F2;
}

.social-widget-long.whatsapp::before {
    background: #25D366;
}

.social-widget-long.whatsapp .sw-icon {
    color: #25D366;
}

.social-widget-long.whatsapp:hover .sw-icon {
    background: #25D366;
    color: #fff;
    box-shadow: 0 5px 15px rgba(37, 211, 102, 0.3);
}

.social-widget-long.whatsapp:hover .sw-title,
.social-widget-long.whatsapp:hover .sw-arrow {
    color: #25D366;
}

.social-widget-long.youtube::before {
    background: #FF0000;
}

.social-widget-long.youtube .sw-icon {
    color: #FF0000;
}

.social-widget-long.youtube:hover .sw-icon {
    background: #FF0000;
    color: #fff;
    box-shadow: 0 5px 15px rgba(255, 0, 0, 0.3);
}

.social-widget-long.youtube:hover .sw-title,
.social-widget-long.youtube:hover .sw-arrow {
    color: #FF0000;
}

.social-widget-long.tiktok::before {
    background: #fe2c55 !important;
}

.social-widget-long.tiktok .sw-icon {
    color: #fff !important;
    filter: drop-shadow(1px 0px 0px #fe2c55) drop-shadow(-1px 0px 0px #25f4ee) !important;
}

.social-widget-long.tiktok:hover .sw-icon {
    background: #010101 !important;
    color: #fff !important;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5) !important;
}

.social-widget-long.tiktok:hover .sw-title,
.social-widget-long.tiktok:hover .sw-arrow {
    color: #fe2c55 !important;
}

/* MOBILE-ONLY SOCIAL LINKS (Left Sidebar) */
.mobile-social-only {
    display: none;
}

/* LIVE KILLS CARDS */
.live-records-grid {
    display: grid;
    grid-template-columns: 1fr;
    /* Full width stacked */
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.rank-card--livekills {
    background: rgba(21, 21, 26, 0.7);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-soft);
    transition: var(--transition);
    overflow: hidden;
    height: 320px;
    display: flex;
    flex-direction: column;
}

.rank-card--livekills:hover {
    transform: translateY(-5px);
    border-color: rgba(255, 255, 255, 0.15);
}

.rank-card__header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 1.2rem;
}

.rank-card__badge {
    width: 40px;
    height: 40px;
    background: var(--accent-orange);
    color: white;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    font-weight: 800;
    z-index: 2;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.4);
    border: 2px solid rgba(255, 255, 255, 0.15);
}

.rank-card__titles {
    display: flex;
    flex-direction: column;
}

.rank-card__title {
    font-family: 'Montserrat', sans-serif;
    font-weight: 800;
    font-size: 1rem;
    color: var(--text-primary);
    letter-spacing: 1px;
}

.rank-card__subtitle {
    font-size: 0.75rem;
    color: var(--text-secondary);
    margin-top: -2px;
}

.rank-card__divider {
    height: 1px;
    background: linear-gradient(to right, var(--accent-orange), transparent);
    margin-bottom: 1rem;
    opacity: 0.3;
}

.livekills-marquee {
    flex: 1;
    overflow: hidden;
    position: relative;
    mask-image: linear-gradient(to bottom, transparent, black 10%, black 90%, transparent);
    -webkit-mask-image: linear-gradient(to bottom, transparent, black 10%, black 90%, transparent);
}

.livekills-marquee .marquee-inner {
    display: flex;
    flex-direction: column;
    gap: 10px;
    animation: verticalMarquee 20s linear infinite !important;
    will-change: transform;
}

.livekills-marquee:hover .marquee-inner {
    animation-play-state: paused;
}

.kill-line {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 15px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: var(--radius-md);
    font-size: 0.8rem;
    white-space: nowrap;
    transition: var(--transition);
    border: 1px solid transparent;
}

.kill-line:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.1);
}

.ki-icon {
    color: var(--accent-orange);
    font-size: 0.7rem;
}

.ki-killer {
    color: var(--accent-orange);
    font-weight: 700;
}

.ki-victim {
    color: var(--accent-pink);
    font-weight: 700;
}

.ki-killer a,
.ki-victim a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition);
}

.ki-killer a:hover {
    color: #fff;
    text-shadow: 0 0 10px rgba(253, 126, 20, 0.5);
}

.ki-victim a:hover {
    color: #fff;
    text-shadow: 0 0 10px rgba(255, 75, 145, 0.5);
}

.ki-text,
.ki-text2 {
    color: var(--text-secondary);
    font-size: 0.75rem;
}

.ki-map {
    color: var(--accent-yellow);
    font-size: 0.75rem;
    display: flex;
    align-items: center;
    gap: 4px;
}

.ki-time {
    margin-left: auto;
    font-size: 0.7rem;
    color: var(--text-secondary);
    opacity: 0.6;
}

.kill-sep {
    border: 0;
    border-top: 1px dashed rgba(255, 255, 255, 0.1);
    margin: 5px 0;
    display: none;
}

@keyframes verticalMarquee {
    0% {
        transform: translateY(0);
    }

    100% {
        transform: translateY(-50%);
    }
}

/* CASTLE SIEGE WIDGET PREMIUM STYLES */
.castle-owner-widget {
    overflow: hidden;
    position: relative;
    border: 1px solid rgba(255, 215, 0, 0.1) !important;
    /* Soft gold border */
}

.castle-owner-widget h3 i {
    color: #ffd700;
    filter: drop-shadow(0 0 5px rgba(255, 215, 0, 0.3));
}

.cs-widget-content {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.cs-owner-header {
    display: flex;
    align-items: center;
    gap: 1.2rem;
    background: rgba(255, 255, 255, 0.03);
    padding: 1rem;
    border-radius: var(--radius-md);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.cs-guild-logo {
    flex-shrink: 0;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.4);
}

.cs-guild-logo img {
    max-width: 100%;
    height: auto;
}

.cs-owner-info {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.cs-info-item {
    display: flex;
    flex-direction: column;
}

.cs-label {
    font-size: 0.65rem;
    text-transform: uppercase;
    color: var(--text-secondary);
    font-weight: 700;
    letter-spacing: 0.5px;
    margin-bottom: 2px;
}

.cs-value {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--text-primary);
}

.cs-guild-name {
    color: var(--accent-yellow);
    text-shadow: 0 0 10px rgba(252, 196, 25, 0.3);
}

.cs-master-name {
    color: var(--text-primary);
    font-size: 0.85rem;
}

.cs-status-divider {
    height: 1px;
    background: linear-gradient(to right, transparent, rgba(255, 215, 0, 0.2), transparent);
}

.cs-battle-info {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
    text-align: center;
}

.highlight {
    color: var(--accent-orange);
    font-size: 1rem;
    text-shadow: 0 0 10px rgba(253, 126, 20, 0.3);
}

.cs-countdown {
    background: rgba(0, 0, 0, 0.2);
    padding: 0.8rem;
    border-radius: var(--radius-md);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.cs-timer {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.1rem;
    font-weight: 800;
    color: #fff;
    margin-top: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.cs-timer i {
    color: var(--accent-pink);
    font-size: 0.9rem;
}

.cs-details-btn {
    background: linear-gradient(135deg, var(--accent-orange) 0%, #e67e22 100%);
    color: white;
    text-decoration: none;
    padding: 0.8rem;
    border-radius: var(--radius-md);
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: 0 4px 15px rgba(253, 126, 20, 0.3);
}

.cs-details-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(253, 126, 20, 0.5);
    filter: brightness(1.1);
    color: #fff;
}

/* RANKINGS MENU TABS */
.rankings-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 25px;
    justify-content: center;
}

.tab-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    background-color: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.tab-btn img.ranking-tab-icon {
    width: 18px;
    height: 18px;
    object-fit: contain;
    filter: brightness(0.8);
    transition: var(--transition);
}

.tab-btn i {
    font-size: 1.1rem;
    color: var(--text-secondary);
    transition: var(--transition);
}

.tab-btn:hover {
    background-color: rgba(253, 126, 20, 0.1);
    border-color: rgba(253, 126, 20, 0.3);
    color: #fff;
    transform: translateY(-2px);
    text-decoration: none;
}

.tab-btn:hover img.ranking-tab-icon {
    filter: brightness(1);
    transform: scale(1.1);
}

.tab-btn:hover i {
    color: var(--accent-orange);
    transform: scale(1.1);
}

.tab-btn.active {
    background: linear-gradient(135deg, rgba(253, 126, 20, 0.2) 0%, rgba(200, 80, 0, 0.1) 100%);
    border-color: var(--accent-orange);
    color: #fff;
    box-shadow: 0 4px 15px rgba(253, 126, 20, 0.2);
}

.tab-btn.active img.ranking-tab-icon {
    filter: drop-shadow(0 0 5px rgba(253, 126, 20, 0.5)) brightness(1);
}

.tab-btn.active i {
    color: var(--accent-orange);
    filter: drop-shadow(0 0 5px rgba(253, 126, 20, 0.3));
}

/* EVENTS WIDGET STYLES */
.events-table {
    width: 100%;
    border-collapse: collapse;
}

.events-table tr {
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: var(--transition);
}

.events-table tr:hover {
    background: rgba(255, 255, 255, 0.02);
}

.events-table td {
    padding: 10px 5px;
    font-size: 0.85rem;
}

.ename {
    color: var(--text-primary);
    font-weight: 600;
    display: inline-block;
    margin-bottom: 2px;
}

.other {
    color: var(--text-secondary);
    font-size: 0.75rem;
    opacity: 0.7;
}

.timepro {
    float: right;
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    font-size: 0.9rem;
    padding: 2px 8px;
    border-radius: 4px;
}

.ontime {
    color: #ffc107;
    text-shadow: 0 0 10px rgba(255, 193, 7, 0.3);
}

.outtime {
    color: var(--accent-orange);
}

.events-widget-content {
    max-height: 400px;
    overflow-y: auto;
    padding-right: 5px;
}

/* Scrollbar para el widget de eventos */
.events-widget-content::-webkit-scrollbar {
    width: 4px;
}

.events-widget-content::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.1);
}

.events-widget-content::-webkit-scrollbar-thumb {
    background: rgba(253, 126, 20, 0.3);
    border-radius: 10px;
}

/* OPENING COUNTDOWN STYLES */
.opening-countdown-container {
    padding: 20px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: var(--radius-lg);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    display: block;
    margin: 0 auto 30px auto;
    width: fit-content;
    min-width: 320px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    animation: fadeInDown 0.8s ease-out;
}

.countdown-timer {
    display: flex;
    justify-content: center;
    gap: 15px;
}

.countdown-item {
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(253, 126, 20, 0.3);
    border-radius: var(--radius-md);
    padding: 10px;
    min-width: 70px;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: var(--transition);
}

.countdown-item:hover {
    border-color: var(--accent-orange);
    box-shadow: 0 0 15px rgba(253, 126, 20, 0.2);
    transform: translateY(-2px);
}

.countdown-item span {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--text-primary);
    font-family: 'Inter', sans-serif;
    line-height: 1;
    text-shadow: 0 0 10px rgba(253, 126, 20, 0.5);
}

.countdown-item label {
    font-size: 0.65rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 5px;
    font-weight: 600;
    margin-bottom: 0;
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ==========================================================================
   Efectos de Texto Dorado y Plateado 3D Animados (Shine Gold/Silver)
   ========================================================================== */
.golden,
.silver {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    position: relative;
    text-transform: uppercase;
    margin: 0;
}

[data-gold] {
    color: #ac733c;
    font-size: inherit;
    margin-bottom: 0px;
    display: inline-block;
    letter-spacing: 1px;
}

@supports(background-clip:text) or (-webkit-background-clip:text) {
    [data-gold] {
        color: transparent;
        background-image: -webkit-linear-gradient(left, transparent 0%, transparent 45%, white 50%, transparent 55%, transparent 100%), -webkit-linear-gradient(left, #c78c48, #cf9147 9.4%, #cf9348 9.4%, #b2763e 33.6%, #ad743c 35.7%, #ac723d 46.9%, #b0773d 51.7%, #b0793e 52.1%, #c4914c 64.6%, #c99750 68.5%, #ce9e54 73.2%, #f4d188);
        background-image: linear-gradient(to right, transparent 0%, transparent 45%, white 50%, transparent 55%, transparent 100%), linear-gradient(90deg, #c78c48, #cf9147 9.4%, #cf9348 9.4%, #b2763e 33.6%, #ad743c 35.7%, #ac723d 46.9%, #b0773d 51.7%, #b0793e 52.1%, #c4914c 64.6%, #c99750 68.5%, #ce9e54 73.2%, #f4d188);
        background-position: 110% 0%, 0 0;
        background-size: 200% auto, auto;
        -webkit-background-clip: text;
        background-clip: text;
        -webkit-animation: shine 2.5s ease-in-out infinite;
        animation: shine 2.5s ease-in-out infinite;
    }
}

[data-gold]:before {
    content: attr(data-gold);
    color: #f0d8a9;
    position: absolute;
    z-index: -1;
    top: 0;
    width: 100%;
    left: 50%;
    transform: translateX(-50%);
    text-shadow: #000 0 2px 10px;
}

@supports(background-clip:text) or (-webkit-background-clip:text) {
    [data-gold]:after {
        content: attr(data-gold);
        position: absolute;
        top: 0;
        width: 100%;
        left: 50%;
        transform: translateX(-50%);
        background-image: -webkit-linear-gradient(top, transparent 0%, transparent 48%, rgba(98, 16, 0, 0.5) 50%, transparent 75%);
        background-image: linear-gradient(to bottom, transparent 0%, transparent 48%, rgba(98, 16, 0, 0.5) 50%, transparent 75%);
        -webkit-background-clip: text;
        background-clip: text
    }
}

[data-silver] {
    color: #797979;
    font-size: inherit;
    margin-bottom: 0px;
    display: inline-block;
    letter-spacing: 1px;
}

@supports(background-clip:text) or (-webkit-background-clip:text) {
    [data-silver] {
        color: transparent;
        background-image: -webkit-linear-gradient(left, transparent 0%, transparent 45%, white 50%, transparent 55%, transparent 100%), -webkit-linear-gradient(right, #8c8c8c 1.3%, #999 15%, #868686 29.6%, #828282 29.6%, #7d7d7d 31.8%, #797979 31.8%, #6a6a6a 38.9%, #d3d3d3);
        background-image: linear-gradient(to right, transparent 0%, transparent 45%, white 50%, transparent 55%, transparent 100%), linear-gradient(270deg, #8c8c8c 1.3%, #999 15%, #868686 29.6%, #828282 29.6%, #7d7d7d 31.8%, #797979 31.8%, #6a6a6a 38.9%, #d3d3d3);
        background-position: 110% 0%, 0 0;
        background-size: 200% auto, auto;
        -webkit-background-clip: text;
        background-clip: text;
        -webkit-animation: shine 2.5s infinite;
        animation: shine 2.5s infinite;
    }
}

[data-silver]:before {
    content: attr(data-silver);
    color: #fff;
    position: absolute;
    width: 100%;
    z-index: -1;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    text-shadow: #000 0 2px 10px;
}

@supports(background-clip:text) or (-webkit-background-clip:text) {
    [data-silver]:after {
        content: attr(data-silver);
        position: absolute;
        width: 100%;
        top: 0;
        left: 50%;
        transform: translateX(-50%);
        background-image: -webkit-linear-gradient(top, transparent 0%, transparent 48%, rgba(17, 17, 17, 0.5) 50%, transparent 75%);
        background-image: linear-gradient(to bottom, transparent 0%, transparent 48%, rgba(17, 17, 17, 0.5) 50%, transparent 75%);
        -webkit-background-clip: text;
        background-clip: text
    }
}

@-webkit-keyframes shine {
    0% {
        background-position: 110% 0%, 0 0
    }

    100% {
        background-position: -10% 0%, 0 0
    }
}

@keyframes shine {
    0% {
        background-position: 110% 0%, 0 0
    }

    100% {
        background-position: -10% 0%, 0 0
    }
}

/* ==========================================================================
   MODULE: PREMIUM NEWS SYSTEM
   ========================================================================== */
.news-article {
    background: rgba(21, 21, 26, 0.6);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 1.5rem;
    margin-bottom: 1.8rem;
    box-shadow: var(--shadow-soft);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.news-article::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 3px;
    height: 100%;
    background: var(--accent-gold-gradient);
    opacity: 0.7;
    transition: var(--transition);
}

.news-article:hover {
    transform: translateY(-4px);
    border-color: rgba(255, 190, 44, 0.35);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.6), 0 0 15px rgba(255, 190, 44, 0.05);
}

.news-article:hover::before {
    opacity: 1;
    height: 100%;
    box-shadow: 0 0 10px var(--accent-gold);
}

.news-header {
    margin-bottom: 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    padding-bottom: 1rem;
}

.news-title {
    font-size: 1.6rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    line-height: 1.3;
}

.news-title a {
    color: #ffffff;
    text-decoration: none;
    background: linear-gradient(120deg, #ffffff 0%, #ffffff 100%);
    -webkit-background-clip: text;
    transition: var(--transition);
    display: inline-block;
}

.news-article:hover .news-title a {
    color: var(--accent-orange);
    text-shadow: 0 0 10px rgba(255, 190, 44, 0.2);
    transform: translateX(4px);
}

.news-meta {
    display: flex;
    gap: 1.5rem;
    font-size: 0.85rem;
    color: var(--text-secondary);
    align-items: center;
}

.news-meta-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.news-meta-item i {
    color: var(--accent-orange);
    opacity: 0.8;
}

.news-content {
    color: var(--text-primary);
    font-size: 0.95rem;
    line-height: 1.7;
    margin-top: 1rem;
}

.news-content p {
    margin-bottom: 1rem;
}

.news-content img {
    max-width: 100% !important;
    max-height: auto !important;
    width: auto !important;
    height: auto !important;
    object-fit: cover !important;
    border-radius: var(--radius-sm) !important;
    border: 1px solid rgba(255, 190, 44, 0.15) !important;
    margin: 0.3rem 1.2rem 0.5rem 0 !important;
    float: left !important;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.4) !important;
}

.news-content::after {
    content: "";
    display: table;
    clear: both;
}

.news-readmore {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--accent-gold-gradient);
    color: #0b0b0f !important;
    font-weight: 600;
    font-size: 0.85rem;
    padding: 0.6rem 1.4rem;
    border-radius: 30px;
    text-decoration: none !important;
    margin-top: 1.2rem;
    transition: var(--transition);
    box-shadow: 0 4px 15px rgba(255, 190, 44, 0.2);
    border: none;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.news-readmore:hover {
    background: var(--accent-gold-hover);
    transform: translateY(-2px) scale(1.03);
    box-shadow: 0 6px 20px rgba(255, 190, 44, 0.4);
}

.news-readmore:active {
    transform: translateY(0);
}