/* ============================================================
   PLAYTOWINMU - DARK FANTASY MMORPG OFFICIAL DESIGN SYSTEM (2026)
   ============================================================ */

:root {
    --bg-main: #0B0D12;
    --panel-bg: #14161D;
    --panel-secondary: #1C2029;
    --primary-gold: #E5AD27;
    --gold-bright: #FFC943;
    --border-gold: #493719;
    --border-glow: rgba(229, 173, 39, 0.35);
    --text-main: #F4F1E9;
    --text-muted: #A5A5AA;
    --color-online: #19C878;
    --color-offline: #E34D4D;
    --accent-red: #E34D4D;
    --accent-blue: #3B82F6;
    --accent-discord: #5865F2;
    --accent-facebook: #1877F2;
    --shadow-panel: 0 10px 30px rgba(0, 0, 0, 0.85);
    --shadow-gold: 0 0 20px rgba(229, 173, 39, 0.3);
    
    --font-heading: 'Cinzel', serif;
    --font-ui: 'Montserrat', sans-serif;
    --font-data: 'Roboto', sans-serif;
}

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

body {
    background-color: var(--bg-main);
    background-image: radial-gradient(circle at 50% 280px, rgba(229, 173, 39, 0.06) 0%, transparent 65%),
                      linear-gradient(180deg, #0B0D12 0%, #060709 100%);
    background-position: center top;
    background-repeat: no-repeat;
    background-attachment: fixed;
    font-family: var(--font-ui);
    font-size: 13px;
    color: var(--text-main);
    line-height: 1.5;
    overflow-x: hidden;
    min-height: 100vh;
}

h1, h2, h3, h4, .font-heading {
    font-family: var(--font-heading);
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

a, a:link, a:visited {
    color: var(--primary-gold);
    text-decoration: none;
    transition: all 0.2s ease;
}

a:hover {
    color: var(--gold-bright);
    text-shadow: 0 0 8px rgba(255, 201, 67, 0.5);
}

.font-bold { font-weight: 700; }
.font-gold { color: var(--gold-bright) !important; }
.alignCenter { text-align: center; }
.alignRight { text-align: right; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }

/* ============================================================
   1. TOP NAVIGATION BAR (STICKY HEADER)
   ============================================================ */
.top-navbar-container {
    width: 100%;
    background: rgba(11, 13, 18, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-gold);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 25px rgba(0, 0, 0, 0.85);
}

.top-navbar {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 20px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
}

.brand-logo-link {
    display: flex;
    align-items: center;
    gap: 12px;
}

.brand-logo-link img.nav-logo {
    height: 42px;
    width: auto;
    object-fit: contain;
    filter: drop-shadow(0 0 10px rgba(229, 173, 39, 0.4));
}

.brand-text-wrap {
    display: flex;
    flex-direction: column;
}

.brand-text-wrap .main-name {
    font-family: var(--font-heading);
    font-weight: 900;
    font-size: 20px;
    letter-spacing: 2.5px;
    background: linear-gradient(180deg, #FFFFFF 15%, #E5AD27 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 15px rgba(229, 173, 39, 0.4);
}

.brand-text-wrap .sub-slogan {
    font-family: var(--font-ui);
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 2px;
    color: var(--primary-gold);
    text-transform: uppercase;
}

.top-nav-links {
    display: flex;
    align-items: center;
    gap: 6px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.top-nav-links li a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    font-family: var(--font-ui);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: var(--text-main);
    border-radius: 6px;
    border: 1px solid transparent;
}

.top-nav-links li a:hover,
.top-nav-links li a.active {
    background: rgba(229, 173, 39, 0.1);
    color: var(--gold-bright);
    border-color: var(--border-gold);
    box-shadow: inset 0 0 10px rgba(229, 173, 39, 0.15);
}

.btn-header-register {
    background: linear-gradient(180deg, #FFC943 0%, #E5AD27 100%);
    color: #0B0D12 !important;
    font-family: var(--font-ui);
    font-weight: 800;
    font-size: 12px;
    letter-spacing: 1px;
    text-transform: uppercase;
    padding: 9px 18px;
    border-radius: 6px;
    box-shadow: 0 0 15px rgba(229, 173, 39, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.4);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-header-register:hover {
    transform: translateY(-1px);
    box-shadow: 0 0 25px rgba(255, 201, 67, 0.7);
    color: #000 !important;
}

.btn-mobile-toggle {
    display: none;
    background: var(--panel-secondary);
    border: 1px solid var(--border-gold);
    color: var(--primary-gold);
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 20px;
    cursor: pointer;
}

.mobile-menu-drawer {
    display: none;
}

/* ============================================================
   2. HERO BANNER PRINCIPAL (DARK FANTASY MEDIEVAL)
   ============================================================ */
.hero-epic-section {
    width: 100%;
    position: relative;
    min-height: 380px;
    padding: 35px 15px 35px;
    background: #0B0D12;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    border-bottom: 1px solid var(--border-gold);
}

.hero-epic-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url(../images/hero_epic_bg.jpg) center top no-repeat;
    background-size: cover;
    opacity: 0.88;
    pointer-events: none;
    z-index: 0;
}

.hero-epic-section::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 90px;
    background: linear-gradient(180deg, transparent 0%, #0B0D12 100%);
    pointer-events: none;
    z-index: 1;
}

.hero-content-wrap {
    position: relative;
    z-index: 2;
    max-width: 900px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hero-logo-box {
    margin: 5px 0 20px;
    display: flex;
    justify-content: center;
}

.hero-logo-img {
    max-width: 500px;
    width: 95%;
    height: auto;
    object-fit: contain;
    filter: drop-shadow(0 12px 30px rgba(0, 0, 0, 0.95)) drop-shadow(0 0 25px rgba(229, 173, 39, 0.4));
    border: none !important;
    background: transparent !important;
    box-shadow: none !important;
}

.hero-emblem-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(229, 173, 39, 0.1);
    border: 1px solid var(--border-gold);
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    color: var(--gold-bright);
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 14px;
    box-shadow: 0 0 15px rgba(229, 173, 39, 0.15);
}

.hero-main-title {
    font-family: var(--font-heading);
    font-size: clamp(34px, 5.5vw, 56px);
    font-weight: 900;
    letter-spacing: 3px;
    color: #fff;
    margin: 0 0 6px;
    text-shadow: 0 0 25px rgba(229, 173, 39, 0.5), 0 4px 10px #000;
    line-height: 1.1;
}

.hero-sub-title {
    font-family: var(--font-heading);
    font-size: clamp(13px, 2vw, 17px);
    color: var(--primary-gold);
    letter-spacing: 4px;
    margin: 0 0 22px;
    text-transform: uppercase;
    font-weight: 600;
}

.hero-cta-btn {
    background: linear-gradient(180deg, #FFC943 0%, #E5AD27 100%);
    color: #0B0D12 !important;
    font-family: var(--font-heading);
    font-weight: 900;
    font-size: 15px;
    letter-spacing: 2px;
    text-transform: uppercase;
    padding: 14px 38px;
    border-radius: 8px;
    box-shadow: 0 0 30px rgba(229, 173, 39, 0.5), 0 4px 15px rgba(0, 0, 0, 0.8), inset 0 1px 0 rgba(255, 255, 255, 0.5);
    display: inline-flex;
    align-items: center;
    gap: 10px;
    border: 1px solid #FFE082;
    transition: all 0.25s ease;
}

.hero-cta-btn:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 0 40px rgba(255, 201, 67, 0.8), 0 8px 20px rgba(0, 0, 0, 0.9);
    color: #000 !important;
}

/* ============================================================
   3. ESTRUCTURA PRINCIPAL DE 3 COLUMNAS
   ============================================================ */
#main {
    width: 100%;
    max-width: 1240px;
    margin: 0 auto;
    position: relative;
    z-index: 10;
    padding: 0 15px;
}

#main-container {
    width: 100%;
    margin-top: 15px;
}

#main-sub-container {
    width: 100%;
}

.columnsContainer {
    display: flex;
    gap: 20px;
    align-items: flex-start;
    justify-content: center;
    width: 100%;
}

.column.left {
    order: 1;
    width: 275px;
    flex-shrink: 0;
}

.column-center {
    order: 2;
    flex: 1;
    min-width: 0;
    max-width: 650px;
}

.column.right {
    order: 3;
    width: 275px;
    flex-shrink: 0;
}

/* ============================================================
   4. PANELES DARK FANTASY Y ENCABEZADOS
   ============================================================ */
.panel {
    background: var(--panel-bg);
    border: 1px solid var(--border-gold);
    border-radius: 8px;
    box-shadow: var(--shadow-panel), inset 0 1px 0 rgba(229, 173, 39, 0.08);
    margin-bottom: 20px;
    overflow: hidden;
    position: relative;
}

.panel-header-text {
    padding: 12px 16px;
    background: linear-gradient(90deg, rgba(229, 173, 39, 0.12) 0%, rgba(20, 22, 29, 0.5) 100%);
    border-bottom: 1px solid var(--border-gold);
    color: var(--gold-bright);
    font-family: var(--font-heading);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    display: flex;
    align-items: center;
    text-shadow: 0 0 10px rgba(229, 173, 39, 0.3);
}

.panel-header-text::before {
    content: '❚';
    color: var(--primary-gold);
    margin-right: 9px;
    font-size: 11px;
    filter: drop-shadow(0 0 5px var(--primary-gold));
}

.panel-content {
    padding: 16px;
}

/* ============================================================
   5. FORMULARIO DE ACCESO (LOGIN)
   ============================================================ */
.modern_login_form .login-field-group {
    margin-bottom: 12px;
}

.input-icon-wrap {
    position: relative;
    display: flex;
    align-items: center;
}

.input-icon-wrap .field-icon {
    position: absolute;
    left: 12px;
    color: var(--primary-gold);
    font-size: 14px;
    pointer-events: none;
}

.input-icon-wrap input {
    width: 100%;
    background: var(--panel-secondary);
    border: 1px solid var(--border-gold);
    border-radius: 6px;
    color: var(--text-main);
    font-family: var(--font-ui);
    font-size: 13px;
    padding: 10px 12px 10px 38px;
    outline: none;
    transition: all 0.2s ease;
}

.input-icon-wrap input:focus {
    border-color: var(--primary-gold);
    box-shadow: 0 0 12px rgba(229, 173, 39, 0.3);
    background: #11141c;
}

.input-icon-wrap.password-wrap input {
    padding-right: 38px;
}

.btn-toggle-pass {
    position: absolute;
    right: 8px;
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 14px;
    padding: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-toggle-pass:hover,
.btn-toggle-pass.active {
    color: var(--primary-gold);
}

.login-actions {
    margin-top: 15px;
    margin-bottom: 12px;
}

.btn-gold,
.btn-premium,
.btn-primary,
.btn_login {
    background: linear-gradient(180deg, #FFC943 0%, #E5AD27 100%);
    color: #0B0D12;
    font-family: var(--font-ui);
    font-weight: 800;
    font-size: 13px;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    padding: 11px 16px;
    border-radius: 6px;
    border: none;
    cursor: pointer;
    box-shadow: 0 0 15px rgba(229, 173, 39, 0.35);
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-decoration: none;
}

.btn-gold:hover,
.btn-premium:hover,
.btn-primary:hover,
.btn_login:hover {
    transform: translateY(-1px);
    box-shadow: 0 0 25px rgba(255, 201, 67, 0.6);
    color: #000;
}

.btn-secondary-link {
    display: inline-block;
    padding: 9px 20px;
    background: rgba(229, 173, 39, 0.06);
    border: 1px solid var(--border-gold);
    border-radius: 6px;
    color: var(--gold-bright);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-decoration: none;
    transition: all 0.2s ease;
}

.btn-secondary-link:hover {
    background: rgba(229, 173, 39, 0.15);
    border-color: var(--gold-bright);
    box-shadow: 0 0 15px rgba(229, 173, 39, 0.3);
    color: #fff;
    transform: translateY(-1px);
}

.standard-form .form-group {
    margin-bottom: 16px;
    text-align: left;
}

.standard-form .form-group label,
.standard-form .form-label {
    display: block;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--gold-bright);
    margin-bottom: 6px;
}

.btn-block {
    width: 100%;
}

.btn-lg {
    padding: 14px 20px;
    font-size: 14px;
}

.login-footer-links {
    text-align: center;
    font-size: 12px;
    margin-top: 10px;
    line-height: 1.6;
}

.login-footer-links .link-muted {
    color: var(--text-muted);
    font-size: 11px;
    display: block;
    margin-bottom: 6px;
}

.login-footer-links .register-prompt {
    color: var(--text-main);
}

.link-gold {
    color: var(--gold-bright);
    font-weight: 700;
}

.social-quick-buttons {
    display: flex;
    gap: 8px;
    margin-top: 15px;
    padding-top: 12px;
    border-top: 1px solid rgba(73, 55, 25, 0.4);
}

.btn-social {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 8px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 700;
    color: #fff !important;
    text-transform: uppercase;
}

.btn-discord { background: var(--accent-discord); }
.btn-facebook { background: var(--accent-facebook); }
.btn-social:hover { opacity: 0.9; transform: translateY(-1px); }

/* ============================================================
   6. MENÚ PRINCIPAL LATERAL
   ============================================================ */
.main-menu {
    list-style: none;
    margin: 0;
    padding: 0;
}

.main-menu li {
    border-bottom: 1px solid rgba(73, 55, 25, 0.4);
}

.main-menu li:last-child {
    border-bottom: none;
}

.menu-item-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 11px 16px;
    font-family: var(--font-ui);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: var(--text-main);
    transition: all 0.2s ease;
    background: transparent;
    border-left: 3px solid transparent;
}

.menu-label-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
}

.menu-icon {
    font-size: 14px;
    color: var(--primary-gold);
}

.menu-arrow {
    font-size: 12px;
    color: var(--text-muted);
    transition: transform 0.2s;
}

.menu-item-link:hover,
.menu-item-link.active {
    background: linear-gradient(90deg, rgba(229, 173, 39, 0.15) 0%, rgba(20, 22, 29, 0.3) 100%);
    color: var(--gold-bright);
    border-left-color: var(--primary-gold);
    padding-left: 20px;
}

.menu-item-link:hover .menu-arrow {
    transform: translateX(3px);
    color: var(--gold-bright);
}

/* ============================================================
   7. INFORMACIÓN DEL SERVIDOR (SIDEBAR)
   ============================================================ */
.server-info-grid {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.info-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px 0;
    font-size: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.info-row:last-child { border-bottom: none; }
.info-label { color: var(--text-muted); font-weight: 600; }
.info-val { color: var(--text-main); font-weight: 700; }
.info-val.highlight { color: var(--gold-bright); }
.info-val.alert-red { color: var(--accent-red); font-weight: 900; }

/* ============================================================
   8. CASTLE SIEGE Y ESTADO DEL SERVIDOR (DERECHA)
   ============================================================ */
.cs-badge-wrap {
    display: flex;
    align-items: center;
    gap: 12px;
}

.cs-guild-emblem {
    width: 32px;
    height: 32px;
    border-radius: 4px;
    border: 1px solid var(--primary-gold);
    object-fit: contain;
    background: #000;
}

.cs-text-wrap {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.cs-role-title {
    font-size: 9px;
    color: var(--text-muted);
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

.cs-guild-name {
    font-family: var(--font-heading);
    font-size: 14px;
    font-weight: 900;
    color: var(--gold-bright);
    margin-top: 2px;
    letter-spacing: 1px;
}

.status-grid {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.status-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
}

.status-name {
    color: var(--text-muted);
    font-weight: 600;
}

.badge-status {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 10px;
    font-weight: 800;
    padding: 2px 8px;
    border-radius: 4px;
    letter-spacing: 0.8px;
}

.badge-status.online {
    background: rgba(25, 200, 120, 0.12);
    border: 1px solid var(--color-online);
    color: var(--color-online);
}

.badge-status.offline {
    background: rgba(227, 77, 77, 0.12);
    border: 1px solid var(--color-offline);
    color: var(--color-offline);
}

.status-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--color-online);
    box-shadow: 0 0 8px var(--color-online);
}

.status-highlight {
    color: var(--color-online);
    font-weight: 800;
}

/* ============================================================
   9. TABLAS DE RANKING LIMPIAS (SIN SCROLLBAR HORIZONTAL)
   ============================================================ */
.table-ranking-clean {
    width: 100%;
    border-collapse: collapse;
    table-layout: auto;
}

.table-ranking-clean th {
    font-family: var(--font-heading);
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
    padding: 8px 10px;
    background: rgba(0, 0, 0, 0.35);
    border-bottom: 1px solid var(--border-gold);
    text-align: left;
}

.table-ranking-clean td {
    padding: 8px 10px;
    font-size: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
    vertical-align: middle;
}

.table-ranking-clean tr:hover td {
    background: rgba(229, 173, 39, 0.04);
}

.col-rank { width: 30px; text-align: center; }
.col-avatar { width: 34px; text-align: center; }
.col-name { color: var(--text-main); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.col-val { font-family: var(--font-data); font-weight: 700; white-space: nowrap; }

.rank-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    font-size: 11px;
    font-weight: 900;
    font-family: var(--font-heading);
}

.rank-badge.rank-1 { background: linear-gradient(135deg, #FFD700, #B8860B); color: #000; box-shadow: 0 0 10px rgba(255,215,0,0.6); }
.rank-badge.rank-2 { background: linear-gradient(135deg, #E0E0E0, #9E9E9E); color: #000; }
.rank-badge.rank-3 { background: linear-gradient(135deg, #CD7F32, #8C481A); color: #fff; }

.char-rank-icon {
    width: 24px;
    height: 24px;
    border-radius: 4px;
    vertical-align: middle;
}

.guild-rank-icon {
    width: 22px;
    height: 22px;
    border-radius: 3px;
    vertical-align: middle;
    object-fit: contain;
}

/* ============================================================
   10. CARRUSEL DE TEMPORADA (CENTRO)
   ============================================================ */
.season-carousel-panel {
    border-color: var(--border-gold);
    overflow: hidden;
}

.carousel-container {
    position: relative;
    width: 100%;
    min-height: 240px;
    overflow: hidden;
}

.carousel-slides-wrapper {
    position: relative;
    width: 100%;
    min-height: 240px;
}

.carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    min-height: 240px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.6s ease, visibility 0.6s ease;
    background-size: cover;
    background-position: right center;
    display: flex;
    align-items: center;
    padding: 25px 30px;
    box-sizing: border-box;
}

.carousel-slide.active {
    opacity: 1;
    visibility: visible;
    position: relative;
}

.slide-content {
    max-width: 400px;
    z-index: 2;
}

.slide-badge {
    display: inline-block;
    background: rgba(229, 173, 39, 0.15);
    border: 1px solid var(--border-gold);
    color: var(--gold-bright);
    font-size: 10px;
    font-weight: 800;
    padding: 3px 10px;
    border-radius: 4px;
    letter-spacing: 1.5px;
    margin-bottom: 8px;
}

.slide-title {
    font-family: var(--font-heading);
    font-size: clamp(20px, 3vw, 28px);
    font-weight: 900;
    color: #fff;
    margin: 0 0 8px;
    text-shadow: 0 0 15px rgba(229, 173, 39, 0.5);
}

.slide-description {
    color: var(--text-muted);
    font-size: 12px;
    line-height: 1.5;
    margin-bottom: 16px;
}

.btn-gold-cta {
    background: linear-gradient(180deg, #FFC943 0%, #E5AD27 100%);
    color: #0B0D12 !important;
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 12px;
    letter-spacing: 1px;
    text-transform: uppercase;
    padding: 10px 22px;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 0 20px rgba(229, 173, 39, 0.4);
    transition: all 0.2s ease;
}

.btn-gold-cta:hover {
    transform: translateY(-1px);
    box-shadow: 0 0 30px rgba(255, 201, 67, 0.7);
    color: #000 !important;
}

.carousel-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(11, 13, 18, 0.6);
    border: 1px solid var(--border-gold);
    color: var(--primary-gold);
    font-size: 22px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 5;
    transition: all 0.2s ease;
}

.carousel-arrow:hover {
    background: var(--primary-gold);
    color: #000;
}

.carousel-arrow.prev { left: 10px; }
.carousel-arrow.next { right: 10px; }

.carousel-indicators {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 5;
}

.carousel-indicators .indicator {
    width: 24px;
    height: 5px;
    border-radius: 3px;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    cursor: pointer;
    transition: all 0.25s ease;
}

.carousel-indicators .indicator.active {
    background: var(--gold-bright);
    box-shadow: 0 0 8px var(--gold-bright);
    width: 34px;
}

/* ============================================================
   11. FORMULARIO DE REGISTRO RÁPIDO EN PORTADA
   ============================================================ */
.quick-register-panel {
    border-color: var(--border-gold);
}

.form-grid-two {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-bottom: 12px;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-label {
    font-size: 11px;
    font-weight: 700;
    color: var(--primary-gold);
    text-transform: uppercase;
    letter-spacing: 0.8px;
    margin-bottom: 6px;
}

.form-label .required {
    color: var(--accent-red);
}

.input-wrap {
    position: relative;
    width: 100%;
}

.input-wrap input {
    width: 100%;
    background: var(--panel-secondary);
    border: 1px solid var(--border-gold);
    border-radius: 6px;
    color: var(--text-main);
    font-family: var(--font-ui);
    font-size: 13px;
    padding: 10px 12px;
    outline: none;
    transition: all 0.2s ease;
}

.input-wrap input:focus {
    border-color: var(--primary-gold);
    box-shadow: 0 0 12px rgba(229, 173, 39, 0.3);
    background: #11141c;
}

.input-wrap.password-wrap input {
    padding-right: 36px;
}

.field-help {
    font-size: 10px;
    color: var(--text-muted);
    margin-top: 4px;
}

.form-terms-wrap {
    margin: 15px 0 18px;
    padding: 10px 14px;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(73, 55, 25, 0.4);
    border-radius: 6px;
}

.terms-checkbox-label {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 12px;
    color: var(--text-muted);
    cursor: pointer;
}

.terms-checkbox-label input[type="checkbox"] {
    width: auto;
    margin: 0;
    accent-color: var(--primary-gold);
    cursor: pointer;
}

.form-submit-wrap {
    margin-top: 10px;
}

.field-validation-error,
label.error {
    color: var(--accent-red);
    font-size: 10px;
    font-weight: 700;
    margin-top: 4px;
    display: block;
}

input.error {
    border-color: var(--accent-red) !important;
    background: rgba(227, 77, 77, 0.08) !important;
}

/* ============================================================
   12. SECCIÓN DE NOTICIAS
   ============================================================ */
.news-list-grid {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.news-item-card {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(73, 55, 25, 0.4);
    border-radius: 6px;
    padding: 14px 16px;
    transition: all 0.2s ease;
}

.news-item-card:hover {
    border-color: var(--primary-gold);
    background: rgba(229, 173, 39, 0.03);
}

.news-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 6px;
}

.news-badge {
    font-size: 9px;
    font-weight: 800;
    padding: 2px 8px;
    border-radius: 4px;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.news-badge.update { background: rgba(25, 200, 120, 0.15); color: var(--color-online); border: 1px solid var(--color-online); }
.news-badge.event { background: rgba(229, 173, 39, 0.15); color: var(--gold-bright); border: 1px solid var(--primary-gold); }

.news-date {
    font-size: 11px;
    color: var(--text-muted);
}

.news-title {
    font-family: var(--font-heading);
    font-size: 14px;
    font-weight: 700;
    color: #fff;
    margin: 0 0 6px;
}

.news-excerpt {
    color: var(--text-muted);
    font-size: 12px;
    line-height: 1.5;
    margin: 0;
}

/* ============================================================
   13. BARRA DE ESTADÍSTICAS GLOBALES
   ============================================================ */
.global-stats-bar-container {
    width: 100%;
    margin: 25px 0 10px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
}

.stats-card {
    background: var(--panel-bg);
    border: 1px solid var(--border-gold);
    border-radius: 8px;
    box-shadow: var(--shadow-panel);
    padding: 16px 20px;
    display: flex;
    align-items: center;
    gap: 16px;
}

.stats-icon-wrap {
    font-size: 28px;
    filter: drop-shadow(0 0 10px rgba(229, 173, 39, 0.4));
}

.stats-info {
    display: flex;
    flex-direction: column;
}

.stats-number {
    font-family: var(--font-heading);
    font-size: 22px;
    font-weight: 900;
    color: var(--gold-bright);
    line-height: 1.1;
    text-shadow: 0 0 10px rgba(229, 173, 39, 0.35);
}

.stats-title {
    font-size: 11px;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.8px;
    margin-top: 2px;
}

/* ============================================================
   14. FOOTER
   ============================================================ */
.site-footer {
    width: 100%;
    text-align: center;
    padding: 30px 15px 40px;
    color: var(--text-muted);
    font-size: 12px;
}

.footer-divider-gold {
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, var(--border-gold) 50%, transparent 100%);
    margin-bottom: 20px;
}

.footer-copy {
    margin-bottom: 6px;
    color: var(--text-main);
}

.footer-disclaimer {
    font-size: 11px;
    color: #666;
    max-width: 650px;
    margin: 0 auto;
}

/* ============================================================
   15. PANEL DE USUARIO LOGUEADO & PERFIL
   ============================================================ */
.user-profile-card {
    padding: 5px;
}

.user-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 14px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(73, 55, 25, 0.4);
}

.user-avatar img {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 2px solid var(--primary-gold);
    padding: 2px;
    background: #000;
}

.user-meta .user-name {
    font-family: var(--font-heading);
    font-size: 15px;
    font-weight: 900;
    color: var(--gold-bright);
    letter-spacing: 1px;
}

.user-meta .user-rank {
    font-size: 10px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.user-stats-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.stat-item {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    padding: 4px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}

.stat-item:last-child { border-bottom: none; }
.stat-item .stat-label { color: var(--text-muted); }
.stat-item .stat-value { color: var(--text-main); font-weight: 700; }

.status-tag.online { color: var(--color-online); font-weight: 800; }
.status-tag.offline { color: var(--color-offline); font-weight: 800; }

.btn-logout-premium {
    display: block;
    margin-top: 16px;
    text-align: center;
    padding: 9px;
    background: rgba(227, 77, 77, 0.1);
    color: var(--accent-red) !important;
    border: 1px solid rgba(227, 77, 77, 0.3);
    border-radius: 6px;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    transition: all 0.2s ease;
}

.btn-logout-premium:hover {
    background: var(--accent-red);
    color: #fff !important;
}

/* ============================================================
   16. TOAST NOTIFICATIONS (ANARQUIA TOAST)
   ============================================================ */
#toast-container {
    position: fixed;
    top: 25px;
    right: 25px;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    gap: 10px;
    pointer-events: none;
    max-width: 360px;
    width: 90%;
}

.toast {
    pointer-events: auto;
    background: rgba(20, 22, 29, 0.96);
    border: 1px solid var(--border-gold);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-radius: 8px;
    padding: 12px 16px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.8);
    color: var(--text-main);
    font-size: 12px;
    display: flex;
    align-items: center;
    gap: 10px;
    animation: toastSlideIn 0.3s ease forwards;
}

.toast.toast-success { border-left: 4px solid var(--color-online); }
.toast.toast-error { border-left: 4px solid var(--accent-red); }
.toast.toast-info { border-left: 4px solid var(--primary-gold); }

@keyframes toastSlideIn {
    from { opacity: 0; transform: translateX(40px); }
    to { opacity: 1; transform: translateX(0); }
}

/* ============================================================
   17. PANEL DE CARGA AJAX (TRANSICIÓN SIN SALTOS)
   ============================================================ */
#ajaxCharger {
    display: none;
    margin-bottom: 20px;
    width: 100%;
}

.ajax-loading-panel {
    min-height: 380px;
}

.loading-panel-body {
    padding: 65px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 16px;
    min-height: 280px;
}

.spinner-epic {
    width: 48px;
    height: 48px;
    border: 3px solid rgba(229, 173, 39, 0.15);
    border-top: 3px solid var(--gold-bright);
    border-right: 3px solid rgba(255, 201, 67, 0.6);
    border-radius: 50%;
    animation: epicSpin 0.8s cubic-bezier(0.5, 0.1, 0.5, 0.9) infinite;
    box-shadow: 0 0 25px rgba(229, 173, 39, 0.25);
}

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

.loading-title {
    font-family: var(--font-heading);
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--gold-bright);
    text-shadow: 0 0 12px rgba(229, 173, 39, 0.4);
}

.loading-sub {
    font-size: 11px;
    color: var(--text-muted);
    letter-spacing: 1px;
    text-transform: uppercase;
}

.spinner {
    display: inline-block;
    width: 30px;
    height: 30px;
    border: 3px solid rgba(229, 173, 39, 0.2);
    border-top-color: var(--gold-bright);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

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

/* ============================================================
   18. ADAPTACIÓN RESPONSIVE MOBILE FIRST COMPLETA
   ============================================================ */

/* TABLETS: 768px a 1199px (2 Columnas) */
@media (max-width: 1199px) {
    .columnsContainer {
        flex-wrap: wrap;
        gap: 15px;
    }
    .column.left {
        width: calc(50% - 10px);
        order: 2;
    }
    .column.right {
        width: calc(50% - 10px);
        order: 3;
    }
    .column-center {
        width: 100%;
        max-width: 100%;
        order: 1;
    }
    .top-nav-links {
        display: none;
    }
    .btn-mobile-toggle {
        display: block;
    }
    .global-stats-bar-container {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* CELULARES: Hasta 767px (1 Columna Total) */
@media (max-width: 767px) {
    .columnsContainer {
        flex-direction: column;
        gap: 15px;
    }
    .column.left,
    .column.right,
    .column-center {
        width: 100% !important;
        max-width: 100% !important;
        flex: none;
    }
    .column-center { order: 1; }
    .column.left { order: 2; }
    .column.right { order: 3; }

    .hero-epic-section {
        padding: 25px 12px 20px;
    }
    .hero-main-title {
        font-size: 28px;
    }
    .hero-sub-title {
        font-size: 11px;
        letter-spacing: 2px;
    }
    .hero-cta-btn {
        padding: 11px 24px;
        font-size: 12px;
    }

    .form-grid-two {
        grid-template-columns: 1fr;
    }

    .global-stats-bar-container {
        grid-template-columns: 1fr;
    }

    .carousel-slide {
        padding: 20px;
        min-height: 220px;
    }
    .slide-title {
        font-size: 20px;
    }

    /* Mobile Drawer */
    .mobile-menu-drawer {
        position: fixed;
        top: 70px;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(11, 13, 18, 0.98);
        backdrop-filter: blur(15px);
        -webkit-backdrop-filter: blur(15px);
        z-index: 999;
        overflow-y: auto;
        padding: 15px;
        border-top: 1px solid var(--border-gold);
    }
    .mobile-menu-active .mobile-menu-drawer {
        display: block;
    }

    .top-navbar {
        height: 60px;
        padding: 0 12px;
    }
    .brand-logo-link img.nav-logo {
        height: 34px;
    }
    .brand-text-wrap .main-name {
        font-size: 17px;
    }
    .btn-header-register {
        padding: 7px 12px;
        font-size: 11px;
    }
}

/* ============================================================
   19. TABLA DE RANKINGS DE PERSONAJES COMPLETA
   ============================================================ */
.ranking-table-page {
    width: 100%;
    border-collapse: collapse;
}

.ranking-table-page thead th {
    background: linear-gradient(180deg, rgba(28, 32, 41, 0.95) 0%, rgba(20, 22, 29, 0.98) 100%);
    border-bottom: 2px solid var(--border-gold);
    color: var(--primary-gold);
    font-family: var(--font-heading);
    font-size: 11px;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    padding: 14px 12px;
}

.ranking-table-page tbody td {
    padding: 12px 14px;
    font-size: 13px;
    border-bottom: 1px solid rgba(73, 55, 25, 0.35);
    vertical-align: middle;
}

.ranking-table-page tbody tr:hover td {
    background: rgba(229, 173, 39, 0.05);
}

.ranking-table-page .col-pos { width: 50px; }
.ranking-table-page .col-avatar { width: 65px; }
.ranking-table-page .col-name { text-align: left; }
.ranking-table-page .col-lvl { width: 75px; font-weight: 700; color: #fff; }
.ranking-table-page .col-mlvl { width: 80px; color: var(--text-muted); }
.ranking-table-page .col-resets { width: 90px; font-size: 14px; }
.ranking-table-page .col-status { width: 100px; }

.char-avatar-frame {
    width: 44px;
    height: 44px;
    margin: 0 auto;
    border-radius: 6px;
    border: 1px solid var(--border-gold);
    background: rgba(0, 0, 0, 0.6);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.9);
}

.char-avatar-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
}

.char-player-name {
    display: block;
    font-size: 14px;
    color: #fff;
    font-weight: 700;
}

.char-class-sub {
    display: block;
    font-size: 11px;
    color: var(--text-muted);
    font-weight: normal;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 2px;
}

.rank-badge-number {
    font-family: var(--font-heading);
    font-size: 13px;
    font-weight: 800;
    color: var(--text-muted);
}
