/* Tooltips Customization (Mu Online Style) */
.tooltip-inner {
    background: #000 !important;
    color: var(--gold-bright) !important;
    border: 1px solid var(--gold-primary) !important;
    font-family: 'Montserrat', sans-serif;
    font-size: 12px;
    padding: 8px 12px;
    border-radius: 0;
    box-shadow: 0 0 10px rgba(197, 160, 89, 0.4);
}

.tooltip.fade {
    opacity: 0;
    transition: opacity .15s linear;
}

.tooltip.in { opacity: 1; }

.tooltip-arrow { border-top-color: var(--gold-primary) !important; }

/* Custom Forms & Registration Styling */
.form-horizontal {
    background: rgba(0,0,0,0.5);
    padding: 30px;
    border: 1px solid var(--gold-dark);
}

.form-horizontal .help-block {
    color: #888;
    font-size: 11px;
}

/* Downloads Section Refinement */
.panel-downloads .panel-title {
    margin-bottom: 20px;
    font-family: 'Cinzel', serif;
    color: var(--gold-primary);
    font-size: 20px;
    text-transform: uppercase;
    text-align: center;
}

.download-description {
    font-size: 12px;
    color: #777;
}

/* Social Icons in Footer */
.social-links {
    margin-bottom: 20px;
    display: flex;
    justify-content: center;
    gap: 20px;
}

.social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    border: 2px solid var(--gold-dark);
    border-radius: 50%;
    color: var(--gold-primary);
    font-size: 20px;
    text-decoration: none;
    transition: 0.3s;
    background: rgba(0,0,0,0.5);
}

.social-icon:hover {
    color: var(--gold-bright);
    border-color: var(--gold-bright);
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(197, 160, 89, 0.4);
}

.icon-whatsapp:hover { background: #25d366; color: #fff; border-color: #25d366; }
.icon-facebook:hover { background: #3b5998; color: #fff; border-color: #3b5998; }
.icon-discord:hover { background: #7289da; color: #fff; border-color: #7289da; }

/* Global Adjustments */
a { transition: 0.3s; color: var(--gold-primary); }
a:hover { color: var(--gold-bright); text-decoration: none; }

/* Final Touch for Layout Consistency */
.main-content, .main-content-full { min-height: 600px; }

:root {
    --bg-dark: #070707;
    --bg-charcoal: #121212;
    --bg-panel: rgba(18, 18, 18, 0.9);
    --gold-primary: #c5a059;
    --gold-bright: #e7c582;
    --gold-dark: #8c6d31;
    --text-main: #d1d1d1;
    --text-muted: #888;
    --border-medieval: 2px solid var(--gold-dark);
}

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

body {
    background: var(--bg-dark);
    color: var(--text-main);
    font-family: 'Montserrat', sans-serif;
    overflow-x: hidden;
    line-height: 1.6;
}

/* Cloud Animation */
#clouds {
    position: fixed;
    top: 0; left: 0;
    width: 200%; height: 100vh;
    background: radial-gradient(circle at 50% 50%, rgba(30,30,30,0.4) 0%, transparent 70%);
    background-size: 200% 100%;
    opacity: 0.5;
    z-index: -1;
    animation: moveClouds 120s linear infinite;
    pointer-events: none;
}

@keyframes moveClouds {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.container {
    max-width: 1500px;
    margin: 0 auto;
    padding: 0 40px; /* Más espacio lateral */
}

.container-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Header & Top Nav */
.top-decoration {
    height: 6px;
    background: linear-gradient(90deg, transparent, #8c6d31 20%, #c5a059 50%, #8c6d31 80%, transparent);
    width: 100%;
    box-shadow: 0 0 10px rgba(197, 160, 89, 0.5);
    border-bottom: 2px solid #5c451b;
}

#logo-container {
    text-align: center;
    padding: 30px 0;
    position: relative;
}

.logo-glow {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 300px; height: 100px;
    background: radial-gradient(circle, rgba(197,160,89,0.2) 0%, transparent 70%);
    filter: blur(20px);
    z-index: -1;
}

.main-logo {
    max-width: 480px;
    filter: drop-shadow(0 0 20px rgba(197, 160, 89, 0.3));
    transition: 0.5s;
}

.main-logo:hover { filter: drop-shadow(0 0 30px rgba(197, 160, 89, 0.5)); transform: scale(1.02); }

/* UserCP Stylized Menu */
.usercp-menu {
    list-style: none;
}

.usercp-menu li {
    margin-bottom: 8px;
}

.usercp-menu li a {
    display: flex;
    align-items: center;
    padding: 12px 15px;
    text-decoration: none;
    color: #bbb;
    background: rgba(255,255,255,0.02);
    border-left: 3px solid transparent;
    transition: 0.3s;
}

.usercp-menu li a i {
    width: 25px;
    color: var(--gold-primary);
    font-size: 16px;
    margin-right: 12px;
    text-align: center;
}

.usercp-menu li a span {
    font-size: 14px;
    text-transform: uppercase;
    font-family: 'Montserrat', sans-serif;
    font-weight: 400;
}

.usercp-menu li a:hover {
    background: rgba(197,160,89,0.08);
    border-color: var(--gold-primary);
    color: var(--gold-bright);
    padding-left: 20px;
}

/* Medieval Navigation */
#main-nav {
    background: linear-gradient(to bottom, #1a1a1a 0%, #0a0a0a 100%);
    border-top: 2px solid var(--gold-primary);
    border-bottom: 2px solid var(--gold-primary);
    position: sticky;
    top: 0;
    z-index: 100;
}

.premium-nav ul {
    list-style: none;
    display: flex;
    justify-content: center;
}

.premium-nav ul li a {
    display: block;
    padding: 15px 25px;
    color: var(--gold-primary);
    text-decoration: none;
    font-family: 'Cinzel', serif;
    font-weight: 700;
    text-transform: uppercase;
    transition: 0.3s;
    letter-spacing: 1px;
}

.premium-nav ul li a:hover {
    background: rgba(197, 160, 89, 0.1);
    color: var(--gold-bright);
    text-shadow: 0 0 10px var(--gold-primary);
}

/* Hero Actions (Important Buttons) */
#hero-actions {
    padding: 40px 0;
}

.action-btn {
    flex: 1;
    margin: 0 10px;
    height: 100px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-decoration: none;
    background: var(--bg-charcoal);
    border: 2px solid var(--gold-dark);
    border-radius: 4px;
    position: relative;
    overflow: hidden;
    transition: 0.3s;
}

.action-btn .icon { font-size: 28px; color: var(--gold-bright); margin-bottom: 5px; }
.action-btn .text { font-family: 'Cinzel', serif; font-weight: 700; color: #fff; letter-spacing: 2px; }

.action-btn:hover {
    transform: translateY(-5px);
    border-color: var(--gold-bright);
    box-shadow: 0 5px 20px rgba(197, 160, 89, 0.3);
}

.action-register { background: linear-gradient(45deg, #1a1a1a, #2a2110); }
.action-download { background: linear-gradient(45deg, #1a1a1a, #102a2a); }
.action-ranking { background: linear-gradient(45deg, #1a1a1a, #2a1010); }

/* Main Content Area */
.content-row {
    display: flex;
    gap: 30px;
    margin-bottom: 50px;
}

.main-content, .main-content-full { 
    min-height: 600px; 
    background: rgba(15, 15, 15, 0.8);
    border: 1px solid rgba(197, 160, 89, 0.2);
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.8), inset 0 0 20px rgba(197, 160, 89, 0.05);
    margin-top: 20px;
    margin-bottom: 60px;
}
.main-content { flex: 2; min-width: 0; }
.main-content-full { width: 100%; flex: 1; }
.sidebar { flex: 1; }

/* CUSTOM SCROLLBAR (Premium Golden/Carbon) */
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--bg-dark); border-left: 1px solid var(--gold-dark); }
::-webkit-scrollbar-thumb {
    background: #444;
    border: 2px solid var(--bg-dark);
    box-shadow: inset 0 0 5px var(--gold-primary);
}
::-webkit-scrollbar-thumb:hover { background: var(--gold-primary); }

/* Table Styles for Ranking/Stats & Glow */
.table {
    width: 100%;
    border-collapse: collapse;
}

.table td, .table th {
    padding: 10px;
    border-bottom: 1px solid rgba(197, 160, 89, 0.1);
}

.table th {
    text-align: left;
    color: var(--gold-primary);
    font-family: 'Cinzel', serif;
    font-size: 14px;
}

.table tr:hover td {
    background: rgba(197, 160, 89, 0.05);
    color: #fff;
    text-shadow: 0 0 8px rgba(197, 160, 89, 0.4);
    transition: 0.2s;
}

/* Advanced News Styling */
.panel-news {
    background: linear-gradient(to bottom, #151515 0%, #0d0d0d 100%);
    border-image: linear-gradient(to bottom, var(--gold-primary), var(--gold-dark)) 1;
}

.panel-news .panel-heading {
    background: rgba(197, 160, 89, 0.1);
    border-bottom: 2px solid var(--gold-dark);
}

.panel-news .panel-title a {
    text-decoration: none;
    color: var(--gold-bright);
    font-size: 20px;
    letter-spacing: 1px;
}

.news-readmore {
    display: inline-block;
    padding: 8px 15px;
    margin-top: 15px;
    color: var(--gold-primary);
    text-decoration: none;
    font-weight: 700;
    border: 1px solid var(--gold-dark);
    transition: 0.3s;
}

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

/* Page Titles / Breadcrumbs */
.module-header {
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--gold-primary);
    position: relative;
}

.module-header::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 0;
    width: 60px;
    height: 10px;
    background: var(--gold-primary);
    clip-path: polygon(0% 0%, 100% 0%, 50% 100%);
}

.module-header h1, .module-header h2 {
    font-family: 'Cinzel', serif;
    color: var(--gold-bright);
    text-transform: uppercase;
    font-size: 28px;
    text-shadow: 0 0 10px rgba(197, 160, 89, 0.3);
}

/* Hero Actions Header Logic (Internal compatibility) */
.page-title {
    margin-bottom: 30px;
    padding: 15px;
    background: rgba(197, 160, 89, 0.05);
    border-left: 4px solid var(--gold-primary);
    font-family: 'Cinzel', serif;
    color: var(--gold-bright);
    font-size: 24px;
    text-transform: uppercase;
}

/* Panels and Medieval Style */
.panel {
    background: var(--bg-panel);
    border: 2px solid var(--gold-dark);
    margin-bottom: 20px;
    box-shadow: inset 0 0 15px rgba(0,0,0,0.5);
    position: relative;
}

/* Medieval Corners Effect */
.panel::before, .panel::after {
    content: '';
    position: absolute;
    width: 10px; height: 10px;
    border: 2px solid var(--gold-primary);
    z-index: 5;
}
.panel::before { top: -2px; left: -2px; border-right: 0; border-bottom: 0; }
.panel::after { bottom: -2px; right: -2px; border-left: 0; border-top: 0; }

.panel-heading {
    padding: 15px;
    border-bottom: 1px solid var(--gold-dark);
    background: rgba(197, 160, 89, 0.05);
}

.panel-title {
    font-family: 'Cinzel', serif;
    color: var(--gold-bright);
    font-size: 18px;
    text-transform: uppercase;
}

.panel-body { padding: 20px; }

/* Forms Refined */
.form-control {
    width: 100%;
    background: #0d0d0d;
    border: 1px solid var(--gold-dark);
    color: #fff;
    padding: 10px;
    margin-bottom: 15px;
}

.form-group label {
    color: var(--gold-primary);
    font-family: 'Cinzel', serif;
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 5px;
    display: block;
}

.btn-primary {
    background: var(--gold-primary);
    color: #000;
    border: none;
    padding: 10px 20px;
    font-family: 'Cinzel', serif;
    font-weight: 700;
    cursor: pointer;
    transition: 0.3s;
    width: 100%;
}

.btn-primary:hover { background: var(--gold-bright); }

/* Online Bar */
.webengine-online-bar {
    height: 6px;
    background: #000;
    border-radius: 3px;
    margin: 5px 0;
    overflow: hidden;
}

.webengine-online-bar-progress {
    height: 100%;
    background: linear-gradient(to right, #c5a059, #fff);
    box-shadow: 0 0 10px var(--gold-primary);
}

/* Success/Error Notifications */
.alert {
    padding: 15px;
    margin-bottom: 20px;
    border: 1px solid transparent;
    border-radius: 0;
    font-size: 14px;
}
.alert-success { background: #0c2d0c; border: 1px solid #1e5a1e; color: #7cfc00; }
.alert-warning { background: #3d2d0c; border: 1px solid #7a5a1e; color: #ffcc00; }
.alert-danger { background: #3d0c0c; border: 1px solid #7a1e1e; color: #ff3333; }

/* UserCP Specific Dashboard Improvements */
.myaccount-table td {
    padding: 15px;
    background: rgba(255, 255, 255, 0.01);
    vertical-align: middle;
}

.myaccount-table tr td:first-child {
    font-family: 'Cinzel', serif;
    color: var(--gold-primary);
    font-weight: 700;
    width: 200px;
}

/* Character List - "Hero Cards" */
.myaccount-character-name {
    padding: 10px;
    background: rgba(0,0,0,0.8);
    border: 1px solid var(--gold-dark);
    margin-bottom: -1px;
    font-family: 'Cinzel', serif;
    font-size: 13px;
    color: var(--gold-bright);
    position: relative;
    z-index: 2;
}

.myaccount-character-block {
    border: 2px solid var(--gold-dark);
    background: #000;
    overflow: hidden;
    position: relative;
    transition: 0.3s;
}

.myaccount-character-block img {
    width: 100%;
    height: auto;
    display: block;
    transition: 0.5s;
    opacity: 0.8;
}

.myaccount-character-block:hover { border-color: var(--gold-primary); }
.myaccount-character-block:hover img { transform: scale(1.1); opacity: 1; }

.myaccount-character-block-location {
    padding: 10px;
    background: #0d0d0d;
    border: 1px solid var(--gold-dark);
    border-top: none;
    font-size: 11px;
    color: #888;
}

.myaccount-character-block-level {
    position: absolute;
    bottom: 50px;
    right: 15px;
    background: var(--gold-primary);
    color: #000;
    font-family: 'Cinzel', serif;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 2px;
    font-size: 14px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.5);
    z-index: 10;
}

/* Online Indicator & Glow */
.online-status-indicator {
    width: 10px; height: 10px;
    vertical-align: middle;
    margin-left: 5px;
}

/* Hero Cards Container Styling - Grid adjustment */
[class*="col-xs-3"] {
    margin-bottom: 30px;
}

/* Online Glow Effect */
.myaccount-character-block.online-glow {
    box-shadow: 0 0 25px rgba(197, 160, 89, 0.6);
    border-color: var(--gold-bright);
}

.online-glow img {
    filter: brightness(1.2) contrast(1.1);
    opacity: 1;
}

/* Credit Styling - Featured Cards Style */
.myaccount-table tr.credit-row {
    display: inline-block;
    width: 31%;
    margin: 1%;
    padding: 15px;
    background: linear-gradient(135deg, #1a1a1a, #0a0a0a);
    border: 1px solid var(--gold-dark);
    text-align: center;
    border-radius: 4px;
}

.credit-row td {
    display: block !important;
    width: 100% !important;
    padding: 5px !important;
    background: transparent !important;
    border: none !important;
    text-align: center !important;
}

.credit-row td:first-child {
    font-size: 12px;
    color: #888 !important;
    margin-bottom: 5px;
}

.credit-row td:last-child {
    font-size: 18px;
    color: var(--gold-bright) !important;
    font-family: 'Cinzel', serif;
}

/* Labels Refinement */
.label {
    border-radius: 0;
    padding: 4px 10px;
    font-family: 'Cinzel', serif;
    font-size: 11px;
}
.label-success { background: #008800; }
.label-danger { background: #aa0000; }
.label-default { background: #444; border: 1px solid #666; }

/* Tooltips Customization (Mu Online Style) */
.tooltip-inner {
    background: #000 !important;
    color: var(--gold-bright) !important;
    border: 1px solid var(--gold-primary) !important;
    font-family: 'Montserrat', sans-serif;
    font-size: 12px;
    padding: 8px 12px;
    border-radius: 0;
    box-shadow: 0 0 10px rgba(197, 160, 89, 0.4);
}

.tooltip.fade {
    opacity: 0;
    transition: opacity .35s ease-in-out;
}

.tooltip.in { opacity: 1; }

.tooltip-arrow { border-top-color: var(--gold-primary) !important; }

/* Custom Forms & Registration Styling */
.form-horizontal {
    background: rgba(0,0,0,0.5);
    padding: 40px;
    border: 2px solid var(--gold-dark);
    position: relative;
    box-shadow: inset 0 0 20px rgba(0,0,0,0.8);
}

.form-horizontal::before, .form-horizontal::after {
    content: '';
    position: absolute;
    width: 15px; height: 15px;
    border: 2px solid var(--gold-primary);
}
.form-horizontal::before { top: -2px; left: -2px; border-right: 0; border-bottom: 0; }
.form-horizontal::after { bottom: -2px; right: -2px; border-left: 0; border-top: 0; }

.form-horizontal .help-block {
    color: #666;
    font-size: 11px;
    margin-top: 5px;
}

/* Downloads Section Refinement */
.panel-downloads {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
}

.panel-downloads .panel-title {
    margin-bottom: 25px;
    font-family: 'Cinzel', serif;
    color: var(--gold-primary);
    font-size: 22px;
    text-transform: uppercase;
    text-align: center;
    border-bottom: 1px solid var(--gold-dark);
    padding-bottom: 10px;
}

.download-description {
    font-size: 11px;
    color: #666;
    display: block;
    margin-top: 2px;
}

/* Social Icons in Footer */
.social-links {
    margin-bottom: 25px;
    display: flex;
    justify-content: center;
    gap: 25px;
}

.social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    border: 2px solid var(--gold-dark);
    border-radius: 50%;
    color: var(--gold-primary);
    font-size: 22px;
    text-decoration: none !important;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    background: rgba(18, 18, 18, 0.9);
    box-shadow: 0 4px 15px rgba(0,0,0,0.5);
}

.social-icon:hover {
    color: #fff;
    border-color: var(--gold-bright);
    transform: translateY(-8px) scale(1.1);
    box-shadow: 0 10px 20px rgba(197, 160, 89, 0.4);
}

.icon-facebook:hover { background: #3b5998; border-color: #3b5998; }
.icon-whatsapp:hover { background: #25d366; border-color: #25d366; }
.icon-discord:hover { background: #5865F2; border-color: #5865F2; }

/* Global Adjustments */
a { transition: 0.3s; color: var(--gold-primary); }
a:hover { color: var(--gold-bright); text-decoration: none; }

/* Final Touch for Layout Consistency */
.main-content, .main-content-full { min-height: 600px; padding-top: 20px; }

.footer-links a {
    color: #888;
    text-transform: uppercase;
    font-family: 'Cinzel', serif;
    font-size: 12px;
    margin: 0 15px;
    letter-spacing: 1px;
}

.footer-links a:hover {
    color: var(--gold-primary);
}

/* Footer Section */
.main-footer {
    background: #000;
    border-top: 1px solid var(--gold-dark);
    padding: 40px 0;
    text-align: center;
    color: var(--text-muted);
}

/* Responsive */
@media (max-width: 992px) {
    .content-row { flex-direction: column; }
    .container-flex { flex-wrap: wrap; }
    .action-btn { margin-bottom: 15px; width: 100%; }
}

/* --- Fase 6: Rankings Estilo ArgMu (Súper Organizado) --- */

/* Rankings Navigation Menu (Tabs) */
.rankings_menu {
    border-bottom: 2px solid var(--gold-dark);
    margin-bottom: 30px;
    display: flex;
    justify-content: center;
    gap: 5px;
    background: rgba(0,0,0,0.5);
    padding: 10px 10px 0;
}

.rankings_menu a {
    padding: 10px 20px;
    background: #111;
    border: 1px solid var(--gold-dark);
    border-bottom: none;
    color: #666;
    font-family: 'Cinzel', serif;
    font-size: 13px;
    text-transform: uppercase;
    transition: 0.3s;
    border-radius: 4px 4px 0 0;
}

.rankings_menu a.active, .rankings_menu a:hover {
    background: var(--gold-primary);
    color: #000;
    border-color: var(--gold-primary);
    text-shadow: none;
}

/* Immortal Legend: Glassmorphism Table */
.panel-body { 
    background: transparent !important; 
    padding: 0 !important;
}
.rankings-table {
    width: 100%;
    border-collapse: collapse; /* Filas pegadas */
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: none; /* Sin borde de cristal */
    table-layout: fixed;
    box-shadow: 0 10px 30px rgba(0,0,0,0.8);
    border-radius: 8px;
    overflow: hidden;
    margin-top: 20px;
}

/* Header Minimal */
.rankings-table thead tr td {
    background: rgba(197, 160, 89, 0.05) !important;
    border-bottom: 2px solid var(--gold-primary) !important;
    padding: 15px 20px !important;
    font-size: 13px !important;
    text-transform: uppercase;
    font-weight: 700;
    color: var(--gold-bright) !important;
}

.rankings-table tr td {
    background: rgba(0, 0, 0, 0.2);
    padding: 15px 20px !important;
    vertical-align: middle;
    font-size: 14px;
    color: #efefef;
    border-bottom: 1px solid rgba(197, 160, 89, 0.05); /* Separador sutil */
    transition: all 0.3s ease;
}

/* Sequential Fade-in Animation */
@keyframes rankRowEntry {
    from { opacity: 0; transform: translateX(-20px); filter: blur(10px); }
    to { opacity: 1; transform: translateX(0); filter: blur(0); }
}

.rank-row {
    animation: rankRowEntry 0.6s both;
}

/* Delay for the first 20 rows */
.rank-row:nth-child(1) { animation-delay: 0.1s; }
.rank-row:nth-child(2) { animation-delay: 0.15s; }
.rank-row:nth-child(3) { animation-delay: 0.2s; }
.rank-row:nth-child(4) { animation-delay: 0.25s; }
.rank-row:nth-child(5) { animation-delay: 0.3s; }
.rank-row:nth-child(6) { animation-delay: 0.35s; }
.rank-row:nth-child(7) { animation-delay: 0.4s; }
.rank-row:nth-child(8) { animation-delay: 0.45s; }
.rank-row:nth-child(9) { animation-delay: 0.5s; }
.rank-row:nth-child(10) { animation-delay: 0.55s; }
/* More delays can be added or handled via JS, but this covers the visible fold */

.rank-row:hover td {
    background: rgba(197, 160, 89, 0.12) !important;
    color: #fff;
    box-shadow: inset 0 0 15px rgba(197, 160, 89, 0.2);
}

/* Neon Online Aura */
.status-online .rankings-class-image {
    border: 2px solid #00ff88 !important;
    box-shadow: 0 0 15px rgba(0, 255, 136, 0.6) !important;
    animation: pulseOnline 2s infinite;
}

.status-offline .rankings-class-image {
    border: 1px solid #555 !important;
    filter: grayscale(0.5);
}

@keyframes pulseOnline {
    0% { box-shadow: 0 0 5px rgba(0, 255, 136, 0.4); }
    50% { box-shadow: 0 0 15px rgba(0, 255, 136, 0.8); }
    100% { box-shadow: 0 0 5px rgba(0, 255, 136, 0.4); }
}

/* Column Control with Classes */
.rank-col-rank { width: 100px; text-align: center; }
.rank-col-avatar { width: 80px; text-align: center; }
.rank-col-char { font-weight: 700; color: #fff; width: 250px; font-size: 15px; letter-spacing: 0.5px; }
.rank-col-country { width: 70px; text-align: center; }
.rank-col-guild { width: 220px; }
.rank-col-stat { width: 140px; text-align: center; color: var(--gold-bright) !important; font-family: 'Montserrat', sans-serif; font-weight: 600; font-size: 16px; }
.rank-col-location { width: auto; text-align: right; padding-right: 30px !important; }

/* Location Badge Style */
.rankings-table .rank-col-location {
    font-family: 'Montserrat', sans-serif;
    font-size: 11px;
    text-transform: uppercase;
    color: #aaa;
    letter-spacing: 1px;
}

/* Winner Highlighting Refined (Minimalist - No Vertical Lines) */
.rankings-table .top-1-highlight td { background: rgba(191, 149, 63, 0.05) !important; }
.rankings-table .top-2-highlight td { background: rgba(182, 182, 182, 0.03) !important; }
.rankings-table .top-3-highlight td { background: rgba(205, 127, 50, 0.02) !important; }

.rankings-table tr.top-1-highlight .rank-col-char { color: #fff; text-shadow: none; }

.rankings-table td.rankings-col-stat { 
    text-align: center; 
    font-family: 'Montserrat', sans-serif; 
    font-weight: 600; 
}

/* Professional Medal Design (Hero Medals) */
.medal-hero {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    font-family: 'Cinzel', serif;
    font-weight: 900;
    font-size: 16px;
    margin: 0 auto;
    border: 2px solid rgba(255,255,255,0.1);
    box-shadow: 0 4px 10px rgba(0,0,0,0.5), inset 0 0 10px rgba(0,0,0,0.5);
    background: #1a1a1a;
    color: #888;
}

.medal-hero .medal-drawing {
    position: absolute;
    top: -5px;
    left: -5px;
    font-size: 14px;
    filter: drop-shadow(0 2px 2px rgba(0,0,0,0.5));
}

.medal-hero .medal-number {
    position: relative;
    z-index: 2;
}

/* Gold Medal */
.medal-gold {
    background: linear-gradient(135deg, #bf953f, #fcf6ba, #b38728, #fbf5b7, #aa771c);
    border-color: #ffd700;
    color: #4a3308 !important;
    text-shadow: 0 1px 0 rgba(255,255,255,0.4);
    box-shadow: 0 0 15px rgba(212, 175, 55, 0.4), inset 0 0 10px rgba(255,255,255,0.5);
}
.medal-gold .medal-drawing i { color: #ffeb3b; }

/* Silver Medal */
.medal-silver {
    background: linear-gradient(135deg, #70706F, #EFEFEF, #B6B6B6, #D9D9D9, #999999);
    border-color: #e0e0e0;
    color: #2c2c2c !important;
    text-shadow: 0 1px 0 rgba(255,255,255,0.4);
    box-shadow: 0 0 15px rgba(192, 192, 192, 0.3), inset 0 0 10px rgba(255,255,255,0.5);
}
.medal-silver .medal-drawing i { color: #fff; }

/* Bronze Medal */
.medal-bronze {
    background: linear-gradient(135deg, #804a00, #ed8f03, #a15c00, #ca7400, #734200);
    border-color: #cd7f32;
    color: #3e2400 !important;
    text-shadow: 0 1px 0 rgba(255,255,255,0.4);
    box-shadow: 0 0 15px rgba(205, 127, 50, 0.3), inset 0 0 10px rgba(255,255,255,0.5);
}
.medal-bronze .medal-drawing i { color: #ffab40; }

/* Non-top medals */
.medal-rank {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(197, 160, 89, 0.2);
    color: #aaa;
}
.medal-rank .medal-drawing { display: none; }

/* Clean Header Styling */
.rankings-table tr:first-child td {
    background: rgba(0, 0, 0, 0.5);
    border-top: none;
    border-bottom: 2px solid var(--gold-primary);
    color: var(--gold-primary);
    font-family: 'Cinzel', serif;
    text-transform: uppercase;
    font-size: 13px;
    letter-spacing: 1px;
    padding: 20px !important;
}

/* Hero Class Avatar inside Ranking */
.rankings-class-image {
    width: 45px;
    height: 45px;
    border-radius: 4px;
    border: 1px solid rgba(197, 160, 89, 0.4);
    box-shadow: 0 0 10px rgba(0,0,0,0.5);
    transition: 0.3s;
    object-fit: cover;
}

/* Guild Icons in Ranking */
.rankings-guild-logo {
    display: inline-block;
    background: #000;
    border: 1px solid var(--gold-dark);
    padding: 1px;
    margin-right: 10px;
    vertical-align: middle;
    transition: 0.3s;
}

.rankings-guild-name {
    vertical-align: middle;
    font-size: 14px;
    color: #aaa;
    transition: 0.3s;
}

.rankings-guild-name:hover {
    color: var(--gold-primary);
    text-decoration: none;
}

/* Hero-Style Medals (Inspirado en botones de inicio) */
.medal-hero {
    display: flex;
    align-items: center;
    width: 65px; /* Ancho ajustado para medalla + número */
    height: 30px;
    background: var(--bg-charcoal);
    border: 2px solid var(--gold-dark);
    border-radius: 4px;
    overflow: hidden;
    margin: 0 auto;
    transition: 0.3s;
    position: relative;
    box-shadow: 0 4px 10px rgba(0,0,0,0.4);
}

.medal-drawing {
    display: flex;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0,0,0,0.3);
    border-radius: 3px;
    margin-right: 5px;
    font-size: 13px;
}

.medal-number {
    flex: 1;
    text-align: center;
    font-family: 'Cinzel', serif;
    font-weight: 800;
    font-size: 15px;
    color: #fff;
    text-shadow: 1px 1px 2px #000;
}

/* Metallic Gradients for Top 3 */
.medal-gold { 
    background: linear-gradient(135deg, #bf953f, #fcf6ba, #b38728, #fbf5b7, #aa771c); 
    border-color: #ffd700;
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.2);
}
.medal-gold .medal-drawing { color: #5c441a; background: rgba(255,255,255,0.2); }
.medal-gold .medal-number { color: #4e3612; text-shadow: none; }

.medal-silver { 
    background: linear-gradient(135deg, #7b7b7b, #e6e6e6, #595959, #d9d9d9, #4d4d4d); 
    border-color: #c0c0c0;
}
.medal-silver .medal-drawing { color: #333; background: rgba(255,255,255,0.2); }
.medal-silver .medal-number { color: #222; text-shadow: none; }

.medal-bronze { 
    background: linear-gradient(135deg, #804a19, #d9a066, #6b3e1a, #c6854b, #562f12); 
    border-color: #cd7f32;
}
.medal-bronze .medal-drawing { color: #3d220d; background: rgba(255,255,255,0.2); }
.medal-bronze .medal-number { color: #2a1809; text-shadow: none; }

.medal-rank { 
    background: linear-gradient(135deg, #222 0%, #111 100%); 
    border-color: #333;
    opacity: 0.9;
}

/* Shimmer Effect for Gold */
.medal-gold::after {
    content: '';
    position: absolute;
    top: -50%; left: -50%;
    width: 200%; height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255,255,255,0.3), transparent);
    transform: rotate(45deg);
    animation: medal-shimmer 3s infinite;
}

@keyframes medal-shimmer {
    0% { transform: translateX(-100%) rotate(45deg); }
    20%, 100% { transform: translateX(100%) rotate(45deg); }
}

.rankings-table tr:hover .medal-hero {
    transform: scale(1.05);
    z-index: 2;
    box-shadow: 0 5px 15px rgba(0,0,0,0.5);
}

/* Row Highlighting Fixed via Classes above */

/* Class Selector Bar - Compact & Centered */
.rankings-class-selector {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin: 0 auto 30px auto;
    flex-wrap: wrap;
    background: rgba(0, 0, 0, 0.4);
    padding: 10px 20px;
    border: 1px solid rgba(197, 160, 89, 0.15);
    border-radius: 50px;
    max-width: fit-content;
}

.class-filter-icon {
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0.4;
    filter: grayscale(100%);
    width: 45px;
}

.class-filter-icon img {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 4px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.5);
}

.class-filter-icon span {
    font-size: 9px;
    font-family: 'Montserrat', sans-serif;
    color: #666;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.class-filter-icon:hover, .class-filter-icon.active {
    opacity: 1;
    filter: grayscale(0);
    transform: translateY(-3px);
}

.class-filter-icon.active img {
    border-color: var(--gold-primary);
    box-shadow: 0 0 10px rgba(197, 160, 89, 0.3);
}

.class-filter-icon.active span {
    color: var(--gold-primary);
}

.class-filter-icon.icon-all {
    justify-content: center;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 4px;
}

.class-filter-icon.icon-all span {
    font-size: 12px;
    margin: 0;
}

/* Player Profile Link - Mudavion Gold & Glow */
.rankings-table a[href*="profile/player"] {
    color: #ffd700;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-shadow: 0 0 8px rgba(255, 215, 0, 0.3);
    transition: all 0.3s ease;
}

.rankings-table a[href*="profile/player"]:hover {
    color: #fff;
    text-decoration: none;
    text-shadow: 0 0 15px rgba(255, 215, 0, 0.8), 0 0 25px rgba(255, 215, 0, 0.4);
}

/* Highlight for Winner Row handled via top-x-highlight classes */

/* Table Header Icons */
.rankings-table td[style*="font-weight:bold"] i {
    margin-right: 8px;
    color: var(--gold-dark);
    font-size: 13px;
}

/* Class Filter List Styling (ArgMu Compact Logic) */
.rankings-class-filter {
    list-style: none;
    padding: 0;
    margin: 20px 0;
}

.rankings-class-filter li {
    display: inline-block;
}

.rankings-class-filter-selection {
    display: block;
    padding: 10px;
    text-align: center;
    color: #777;
    font-size: 10px;
    text-transform: uppercase;
    cursor: pointer;
    border-bottom: 2px solid transparent;
}

.rankings-class-filter-selection img {
    margin-bottom: 5px;
    filter: grayscale(1);
    opacity: 0.5;
    transition: 0.3s;
}

.rankings-class-filter-selection:hover img, .rankings-class-filter-selection:not(.rankings-class-filter-grayscale) img {
    filter: grayscale(0);
    opacity: 1;
    transform: scale(1.1);
}

.rankings-class-filter-selection:not(.rankings-class-filter-grayscale) {
    color: var(--gold-primary);
    border-bottom-color: var(--gold-primary);
}

/* Ranking Search Bar (Fase 7) */
.ranking-search-container {
    margin-bottom: 30px;
    display: flex;
    justify-content: center;
}

.rankings_menu a[href*="duels"] {
	display: none !important;
}

.rankings_menu {
	margin-bottom: 20px;
	background: rgba(0, 0, 0, 0.4);
	border: 1px solid var(--gold-dark);
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	border-radius: 4px;
	overflow: hidden;
}

.ranking-search-container .search-box {
    position: relative;
    width: 100%;
    max-width: 600px;
    background: rgba(0,0,0,0.6);
    border: 1px solid var(--gold-dark);
    padding: 2px;
    border-radius: 4px;
    box-shadow: inset 0 0 15px rgba(0,0,0,0.8);
    display: flex;
}

.ranking-search-container .search-box input {
    background: transparent;
    border: none;
    padding: 12px 15px;
    color: #fff;
    width: 100%;
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    outline: none !important;
}

.ranking-search-container .search-box button {
    background: transparent;
    border: none;
    color: var(--gold-primary);
    padding: 0 15px;
    font-size: 18px;
    cursor: pointer;
    transition: 0.3s;
}

.ranking-search-container .search-box button:hover {
    color: var(--gold-bright);
    transform: scale(1.1);
}

.ranking-search-container .search-box::before, .ranking-search-container .search-box::after {
    content: '';
    position: absolute;
    width: 6px; height: 6px;
    border: 1px solid var(--gold-primary);
}
.ranking-search-container .search-box::before { top: -1px; left: -1px; border-right: 0; border-bottom: 0; }
.ranking-search-container .search-box::after { bottom: -1px; right: -1px; border-left: 0; border-top: 0; }

/* --- PHASE 16: HOME PAGE PREMIUM DESIGN --- */

/* Hero Slider */
.hero-slider {
    position: relative;
    width: 100%;
    height: 550px;
    overflow: hidden;
    border-bottom: 2px solid var(--gold-dark);
    box-shadow: 0 10px 30px rgba(0,0,0,0.8);
    background: #000;
}

.hero-slide {
    width: 100%;
    height: 100%;
    background-size: cover !important;
    background-position: top center !important;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    position: relative;
    transition: transform 0.8s ease;
}

.hero-slide:hover {
    transform: scale(1.05);
}

.hero-slider:hover .hero-slide {
    filter: brightness(1.1);
}

.hero-slide::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0;
    width: 100%; height: 50%;
    background: linear-gradient(to top, rgba(7,7,7,1) 0%, transparent 100%);
}

.hero-content {
    z-index: 2;
    padding: 30px 40px;
    background: rgba(0,0,0,0.6);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(197, 160, 89, 0.3);
    border-radius: 8px;
    animation: fadeInDown 1.2s ease;
    box-shadow: 0 0 30px rgba(0,0,0,0.5);
}

.hero-content h1 {
    font-family: 'Cinzel', serif;
    font-size: 48px;
    color: var(--gold-bright);
    text-shadow: 0 0 20px var(--gold-primary), 0 0 40px rgba(0,0,0,0.8);
    margin-bottom: 15px;
    letter-spacing: 5px;
    font-weight: 900;
}

.hero-content p {
    font-size: 18px;
    color: #fff;
    font-weight: 300;
    max-width: 700px;
    font-family: 'Montserrat', sans-serif;
}





/* Premium News Cards */
.news-card-premium {
    background: rgba(15, 15, 15, 0.95);
    border: 1px solid rgba(197, 160, 89, 0.15);
    margin-bottom: 35px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    border-radius: 4px;
    overflow: hidden;
}

.news-card-premium:hover {
    transform: translateY(-8px);
    border-color: var(--gold-primary);
    box-shadow: 0 15px 40px rgba(0,0,0,0.7);
}

.news-thumbnail-container {
    height: 200px;
    width: 100%;
    background-size: cover;
    background-position: center;
    border-bottom: 1px solid rgba(197, 160, 89, 0.2);
    transition: 0.5s;
}

.news-card-premium:hover .news-thumbnail-container {
    filter: brightness(1.2);
    transform: scale(1.02);
}

.news-header-premium {
    padding: 20px 30px;
    background: linear-gradient(90deg, rgba(197, 160, 89, 0.08) 0%, transparent 100%);
}

.news-title-link {
    font-family: 'Cinzel', serif;
    font-size: 24px;
    color: var(--gold-bright) !important;
    text-decoration: none !important;
    transition: 0.3s;
    font-weight: 700;
}

.news-title-link:hover {
    color: #fff !important;
    text-shadow: 0 0 15px var(--gold-primary);
}

.news-content-box {
    padding: 30px;
    color: #ccc;
    font-size: 14.5px;
    line-height: 1.8;
}

.news-footer-premium {
    padding: 15px 30px;
    background: rgba(0,0,0,0.4);
    border-top: 1px solid rgba(255,255,255,0.05);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    color: #888;
}

.date-badge {
    color: var(--gold-primary);
    font-weight: 700;
    text-transform: uppercase;
}

.news-readmore {
    color: var(--gold-bright);
    font-weight: 700;
    text-decoration: none;
    text-transform: uppercase;
    font-size: 11px;
    letter-spacing: 1.5px;
    border: 1px solid rgba(197, 160, 89, 0.4);
    padding: 8px 20px;
    border-radius: 2px;
    transition: 0.3s;
}

.news-readmore:hover {
    background: var(--gold-primary);
    color: #000;
    box-shadow: 0 0 20px var(--gold-primary);
}

/* Sidebar Enhanced Login */
.sidebar-login-input {
    background: rgba(0,0,0,0.5) !important;
    border: 1px solid rgba(197, 160, 89, 0.3) !important;
    color: #fff !important;
    margin-bottom: 20px !important;
    height: 50px !important;
    padding-left: 20px !important;
    border-radius: 4px !important;
    transition: 0.3s;
}

.sidebar-login-input:focus {
    border-color: var(--gold-primary) !important;
    box-shadow: 0 0 10px rgba(197, 160, 89, 0.2) !important;
}

/* Sidebar Mini Ranking with Medals & Icons */
.sidebar-table-mini thead th {
    border: none;
    color: #666;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.mini-ranking-row {
    display: flex;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.mini-place {
    width: 35px;
    text-align: center;
}

.mini-avatar-container {
    width: 30px;
    height: 30px;
    margin: 0 12px;
    position: relative;
}

.mini-avatar {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 2px solid rgba(197, 160, 89, 0.3);
    object-fit: cover;
}

.mini-name {
    flex: 1;
    font-size: 14px;
    font-weight: 600;
}

.mini-val {
    color: var(--gold-primary);
    font-weight: 800;
    font-size: 14px;
}



/* Online Progress Pulse */
.webengine-online-bar-progress {
    position: relative;
    overflow: hidden;
}

.webengine-online-bar-progress::after {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    animation: shine 2s infinite;
}

@keyframes shine {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-30px); }
    to { opacity: 1; transform: translateY(0); }
}
