@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@400;500;600;700;800;900&family=Inter:wght@400;500;600;700&display=swap');

:root {
    /* Modern Gaming Portal Colors */
    --color-bg: #090c15;
    --color-panel-bg: rgba(17, 24, 39, 0.45);
    --color-panel-hover: rgba(17, 24, 39, 0.6);
    --color-border: rgba(255, 255, 255, 0.08);
    --color-border-hover: rgba(255, 255, 255, 0.15);
    
    --color-primary: #8b5cf6; /* Vibrant Violet */
    --color-primary-hover: #a78bfa;
    --color-primary-glow: rgba(139, 92, 246, 0.25);
    
    --color-accent: #f59e0b; /* Gold/Orange */
    --color-accent-hover: #fbbf24;
    --color-accent-glow: rgba(245, 158, 11, 0.2);
    
    --color-red: #ef4444; /* Action Red */
    
    --color-text-main: #f3f4f6;
    --color-text-muted: #9ca3af;
    --color-text-dark: #1e293b;
    
    /* Font Families */
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
}

/* Global Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--color-bg);
    color: var(--color-text-main);
    font-family: var(--font-body);
    font-size: 13px;
    line-height: 1.5;
    overflow-x: hidden;
    /* Deep dark space/void atmosphere with radial glow lights */
    background-image: 
        radial-gradient(circle at 10% 15%, rgba(139, 92, 246, 0.08) 0%, transparent 45%),
        radial-gradient(circle at 85% 70%, rgba(245, 158, 11, 0.04) 0%, transparent 45%),
        radial-gradient(circle at 50% -10%, rgba(59, 130, 246, 0.1) 0%, transparent 50%);
    background-size: 100% 100%;
    background-attachment: fixed;
}

/* Custom Scrollbar - Modern Slim Style */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}
::-webkit-scrollbar-track {
    background: rgba(11, 15, 23, 0.5);
}
::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.15);
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* Header Navbar - Sleek Glassmorphic Floating Nav */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(9, 12, 21, 0.65);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--color-border);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.4);
    transition: all 0.3s ease;
}

.nav-container {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 15px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 18px;
    color: #ffffff;
    text-decoration: none;
    letter-spacing: 1px;
    transition: transform 0.2s ease;
}
.logo:hover {
    transform: scale(1.02);
}

.logo i,
.logo svg {
    color: var(--color-primary);
    fill: var(--color-primary);
    filter: drop-shadow(0 0 8px var(--color-primary));
    width: 22px;
    height: 22px;
    display: inline-block;
    vertical-align: middle;
    transition: transform 0.2s ease, fill 0.2s ease;
}

.logo span {
    color: var(--color-accent);
}

.nav-links {
    display: flex;
    list-style: none;
    align-items: center;
    gap: 22px;
}

.nav-links a {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 12px;
    text-transform: uppercase;
    color: var(--color-text-muted);
    text-decoration: none;
    transition: color 0.2s ease, text-shadow 0.2s ease;
    letter-spacing: 0.5px;
}

.nav-links a:hover {
    color: #ffffff;
    text-shadow: 0 0 8px rgba(255,255,255,0.3);
}

.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
}

.menu-toggle span {
    width: 22px;
    height: 2px;
    background: #ffffff;
    transition: all 0.3s ease;
}

/* Centered Layout Main Container */
.main-container {
    max-width: 1100px;
    margin: 80px auto 40px; 
    padding: 15px;
    position: relative;
}

/* Integrated Hero Banner (Clean Graphic Overlay) */
.ro-header-banner {
    width: 100%;
    height: 280px;
    background-image: url('ro_loading_screen.png');
    background-size: cover;
    background-position: center 30%;
    border: 1px solid var(--color-border);
    box-shadow: 
        inset 0 0 100px rgba(0,0,0,0.9), 
        0 10px 30px rgba(0,0,0,0.6);
    border-radius: 12px;
    position: relative;
    margin-bottom: 25px;
    display: flex;
    align-items: flex-end;
    padding: 40px;
    overflow: hidden;
    transition: border-color 0.3s ease;
}
.ro-header-banner:hover {
    border-color: rgba(139, 92, 246, 0.3);
}

.ro-header-banner::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(0deg, rgba(9,12,21,0.9) 0%, rgba(9,12,21,0.2) 65%);
    z-index: 1;
}

.banner-title-box {
    position: relative;
    z-index: 2;
}

.banner-title-box h1 {
    font-family: var(--font-heading);
    font-size: 3.2rem;
    font-weight: 900;
    color: #ffffff;
    letter-spacing: 0.5px;
    margin: 0;
    line-height: 1.1;
    /* Soft text shadow for readability */
    text-shadow: 0 4px 15px rgba(0,0,0,0.6);
}

.banner-title-box p {
    font-family: var(--font-body);
    font-size: 13px;
    color: var(--color-text-muted);
    font-weight: 500;
    letter-spacing: 0.2px;
    margin-top: 10px;
}

.banner-title-box p span {
    color: var(--color-accent);
    font-weight: 700;
}

.banner-subtitle {
    font-family: var(--font-heading);
    font-size: 11px;
    font-weight: 700;
    color: var(--color-primary);
    letter-spacing: 5px;
    margin-bottom: 6px;
    text-transform: uppercase;
    text-shadow: 0 0 10px rgba(139, 92, 246, 0.4);
}

/* Modern Pill HUD Navigation Bar */
.ro-hud-nav {
    background: rgba(17, 24, 39, 0.5);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--color-border);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    border-radius: 12px;
    padding: 6px;
    margin-bottom: 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.ro-hud-links {
    display: flex;
    gap: 6px;
    list-style: none;
    width: 100%;
}

.ro-hud-item {
    flex: 1;
    text-align: center;
}

.ro-hud-item a {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 14px;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 11px;
    letter-spacing: 0.5px;
    color: var(--color-text-muted);
    background: transparent;
    border: 1px solid transparent;
    border-radius: 8px;
    text-decoration: none;
    text-transform: uppercase;
    transition: all 0.2s ease;
}

.ro-hud-item a:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.05);
}

.ro-hud-item a.active {
    color: #ffffff;
    background: rgba(139, 92, 246, 0.15);
    border-color: rgba(139, 92, 246, 0.3);
    box-shadow: 0 0 12px rgba(139, 92, 246, 0.1);
}

.ro-hud-item.nav-btn-highlight a {
    color: #ffffff;
    background: linear-gradient(135deg, var(--color-primary) 0%, #7c3aed 100%);
    box-shadow: 0 4px 12px var(--color-primary-glow);
}

.ro-hud-item.nav-btn-highlight a:hover {
    background: linear-gradient(135deg, #9b6bf7 0%, #8b5cf6 100%);
    box-shadow: 0 6px 18px rgba(139, 92, 246, 0.4);
    transform: translateY(-1px);
}

/* Two Column Layout Grid */
.columns-wrapper {
    display: grid;
    grid-template-columns: 290px 1fr;
    gap: 20px;
    align-items: start;
}

.sidebar-col {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.main-col {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Modern Panel Component (Replaces boxy client windows) */
.ro-window {
    background: var(--color-panel-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--color-border);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.35);
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transition: border-color 0.25s ease, box-shadow 0.25s ease, transform 0.2s ease;
}

.ro-window:hover {
    border-color: rgba(255, 255, 255, 0.15);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.45);
}

.ro-window-header {
    border-bottom: 1px solid var(--color-border);
    padding: 14px 18px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(255, 255, 255, 0.02);
}

.ro-window-title {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 13px;
    color: #ffffff;
    display: flex;
    align-items: center;
    gap: 8px;
    letter-spacing: 0.3px;
    text-shadow: none;
}

.ro-window-title i {
    color: var(--color-primary);
}

/* Modernized Panel controls - clean dot buttons */
.ro-window-controls {
    display: flex;
    gap: 6px;
}

.ro-win-btn {
    width: 10px;
    height: 10px;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    border-radius: 50%;
    color: transparent;
    cursor: pointer;
    transition: background 0.2s ease;
}
.ro-window-controls .ro-win-btn[aria-label="Cerrar"] {
    background: rgba(239, 68, 68, 0.4);
}
.ro-window-controls .ro-win-btn[aria-label="Cerrar"]:hover {
    background: rgba(239, 68, 68, 0.8);
}
.ro-window-controls .ro-win-btn:not([aria-label="Cerrar"]):hover {
    background: rgba(255, 255, 255, 0.4);
}

.ro-window-content {
    padding: 20px;
    color: var(--color-text-muted);
    font-size: 13px;
    text-shadow: none;
}

/* News Parchment overrides - stylized as high-end layout cards instead of flat paper */
.ro-window.parchment {
    background: var(--color-panel-bg);
    border: 1px solid var(--color-border);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.35);
}

.ro-window.parchment .ro-window-header {
    background: rgba(255, 255, 255, 0.02);
    border-bottom: 1px solid var(--color-border);
}

.ro-window.parchment .ro-window-title {
    font-family: var(--font-heading);
    color: #ffffff;
    text-shadow: none;
}

.ro-window.parchment .ro-window-title i {
    color: var(--color-accent);
}

.ro-window.parchment .ro-window-content {
    color: var(--color-text-muted);
    text-shadow: none;
}

/* Modern inputs */
.login-form-box {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.login-row {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.login-row label {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 11px;
    color: var(--color-text-main);
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.login-input {
    width: 100%;
    background: rgba(0, 0, 0, 0.25);
    border: 1px solid var(--color-border);
    padding: 8px 12px;
    font-size: 12px;
    color: #ffffff;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.login-input:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 10px rgba(139, 92, 246, 0.2);
}

.login-buttons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-top: 10px;
}

/* Modern Custom Buttons */
.ro-btn {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 12px;
    padding: 8px 16px;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid var(--color-border);
    color: #ffffff;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: center;
    text-decoration: none;
    text-shadow: none;
    box-shadow: none;
}

.ro-btn:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.25);
}

.ro-btn-primary {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 12px;
    padding: 8px 16px;
    border-radius: 6px;
    background: linear-gradient(135deg, var(--color-accent) 0%, #d97706 100%);
    border: 1px solid rgba(245, 158, 11, 0.3);
    color: #ffffff;
    cursor: pointer;
    text-shadow: none;
    box-shadow: 0 4px 12px var(--color-accent-glow);
    transition: all 0.2s ease;
    text-align: center;
}

.ro-btn-primary:hover {
    background: linear-gradient(135deg, var(--color-accent-hover) 0%, var(--color-accent) 100%);
    box-shadow: 0 6px 18px rgba(245, 158, 11, 0.4);
    transform: translateY(-1px);
}

/* Server Info Item Rows */
.info-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.info-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    font-size: 12px;
    color: var(--color-text-muted);
    text-shadow: none;
}

.info-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.info-label {
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
}

.info-val {
    color: #ffffff;
    font-weight: 700;
}

/* Server state green pulsers */
.status-indicator {
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: 700;
    color: #10b981;
}

.pulse-dot {
    width: 8px;
    height: 8px;
    background-color: #10b981;
    border-radius: 50%;
    box-shadow: 0 0 8px #10b981;
    animation: pulse 1.8s infinite;
}

/* Modern Download widget buttons */
.ro-patcher-start {
    width: 100%;
    padding: 12px 14px;
    background: linear-gradient(135deg, var(--color-red) 0%, #dc2626 100%);
    border: none;
    box-shadow: 0 4px 14px rgba(239, 68, 68, 0.35);
    color: #ffffff;
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 14px;
    text-align: center;
    text-shadow: none;
    cursor: pointer;
    border-radius: 8px;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.2s ease;
}

.ro-patcher-start:hover {
    background: linear-gradient(135deg, #f87171 0%, #ef4444 100%);
    box-shadow: 0 6px 20px rgba(239, 68, 68, 0.5);
    transform: translateY(-1px);
}

.dl-row-item {
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid var(--color-border);
    border-radius: 6px;
    padding: 10px 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: border-color 0.2s ease;
}
.dl-row-item:hover {
    border-color: rgba(255, 255, 255, 0.15);
}

.dl-row-info h4 {
    font-size: 12px;
    font-family: var(--font-heading);
    font-weight: 600;
    color: #ffffff;
}

.dl-row-info span {
    font-size: 10px;
    color: var(--color-text-muted);
}

/* Patch Logs / Accordion item layouts */
.changelog-wrapper {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.changelog-item {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--color-border);
    border-radius: 8px;
    overflow: hidden;
    transition: border-color 0.2s ease, background 0.2s ease;
}

.changelog-item:hover {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.15);
}

.changelog-header {
    padding: 14px 18px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    user-select: none;
    background: transparent;
}

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

.changelog-version {
    font-family: var(--font-heading);
    background: rgba(139, 92, 246, 0.15);
    color: var(--color-primary-hover);
    border: 1px solid rgba(139, 92, 246, 0.3);
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 10px;
    text-shadow: none;
}

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

.changelog-arrow {
    font-size: 10px;
    color: var(--color-text-muted);
    transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.changelog-item.active {
    border-color: rgba(139, 92, 246, 0.35);
    background: rgba(139, 92, 246, 0.02);
}

.changelog-item.active .changelog-header {
    border-bottom: 1px solid var(--color-border);
}

.changelog-item.active .changelog-arrow {
    transform: rotate(180deg);
    color: #ffffff;
}

.changelog-body {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0, 1, 0, 1);
}

.changelog-item.active .changelog-body {
    max-height: 800px;
    transition: max-height 0.4s cubic-bezier(1, 0, 1, 0);
}

.changelog-content {
    padding: 16px;
}

.changelog-group {
    margin-bottom: 12px;
}

.changelog-group:last-child {
    margin-bottom: 0;
}

.changelog-group-title {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 11px;
    text-transform: uppercase;
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    gap: 6px;
    letter-spacing: 0.5px;
}

.changelog-group-title.added { color: #10b981; }
.changelog-group-title.fixed { color: #f59e0b; }
.changelog-group-title.changed { color: #3b82f6; }

.changelog-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.changelog-list li {
    font-size: 12px;
    color: var(--color-text-muted);
    position: relative;
    padding-left: 12px;
}

.changelog-list li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: rgba(255, 255, 255, 0.2);
}

/* Database Search components */
.db-search-box {
    display: flex;
    gap: 10px;
    background: rgba(0, 0, 0, 0.25);
    padding: 10px;
    border-radius: 8px;
    border: 1px solid var(--color-border);
    margin-bottom: 20px;
}

.search-input-wrapper {
    flex-grow: 1;
    position: relative;
    display: flex;
    align-items: center;
}

.search-input-wrapper i {
    position: absolute;
    left: 12px;
    color: var(--color-text-muted);
}

.db-search-input {
    width: 100%;
    background: rgba(0, 0, 0, 0.15);
    border: 1px solid var(--color-border);
    border-radius: 6px;
    color: #ffffff;
    padding: 8px 12px 8px 32px;
    font-size: 12px;
    transition: all 0.2s ease;
}

.db-search-input:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 10px rgba(139, 92, 246, 0.15);
}

/* Database filter tabs (modern capsules) */
.db-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 16px;
}

.db-tab-btn {
    font-family: var(--font-heading);
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--color-border);
    color: var(--color-text-muted);
    padding: 6px 14px;
    border-radius: 20px;
    cursor: pointer;
    font-weight: 600;
    font-size: 11px;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s ease;
    text-shadow: none;
    box-shadow: none;
}

.db-tab-btn:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;
}

.db-tab-btn.active {
    background: rgba(139, 92, 246, 0.15);
    color: #ffffff;
    border-color: rgba(139, 92, 246, 0.4);
    box-shadow: 0 0 12px rgba(139, 92, 246, 0.1);
}

.db-results-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 12px;
}

.db-item-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--color-border);
    border-radius: 8px;
    padding: 12px;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.db-item-card:hover {
    transform: translateY(-2px);
    border-color: rgba(255, 255, 255, 0.15);
    background: rgba(255, 255, 255, 0.04);
}

.db-item-img {
    font-size: 1.6rem;
    width: 48px;
    height: 48px;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid var(--color-border);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.db-item-name {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 12px;
    color: #ffffff;
}

.db-item-type {
    font-size: 10px;
    color: var(--color-primary-hover);
    font-weight: 600;
    margin-bottom: 2px;
}

.db-item-desc {
    font-size: 11px;
    color: var(--color-text-muted);
    line-height: 1.3;
}

.db-no-results {
    grid-column: 1 / -1;
    text-align: center;
    padding: 25px;
    color: var(--color-text-muted);
}

.db-mascot-img {
    width: 64px;
    margin-bottom: 8px;
    border-radius: 50%;
    border: 2px solid var(--color-border);
    animation: float 3s ease-in-out infinite;
}

/* Rankings & Spotlight modern tables */
.rankings-tabs {
    display: flex;
    gap: 6px;
    margin-bottom: 16px;
}

.tab-btn {
    font-family: var(--font-heading);
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--color-border);
    color: var(--color-text-muted);
    padding: 7px 16px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    font-size: 12px;
    transition: all 0.2s ease;
    text-shadow: none;
}

.tab-btn.active, .tab-btn:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.2);
}

.tab-btn.active {
    background: rgba(139, 92, 246, 0.15);
    border-color: rgba(139, 92, 246, 0.4);
}

.rankings-split-container {
    display: grid;
    grid-template-columns: 1fr 230px;
    gap: 20px;
}

.table-wrapper {
    background: rgba(0, 0, 0, 0.15);
    border: 1px solid var(--color-border);
    border-radius: 8px;
    overflow: hidden;
}

.ranking-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
}

.ranking-table th {
    background: rgba(255, 255, 255, 0.02);
    padding: 10px 14px;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 12px;
    color: #ffffff;
    border-bottom: 1px solid var(--color-border);
    text-shadow: none;
}

.ranking-table td {
    padding: 10px 14px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    font-size: 12px;
    color: var(--color-text-muted);
}

.ranking-table tr:hover td {
    background: rgba(255, 255, 255, 0.02);
    color: #ffffff;
}

/* Beautiful Circular Medal badging */
.rank-num {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 10px;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.rank-num.first {
    background: linear-gradient(135deg, #fbbf24 0%, #d97706 100%);
    color: #ffffff;
    box-shadow: 0 0 8px rgba(245, 158, 11, 0.3);
}

.rank-num.second {
    background: linear-gradient(135deg, #e2e8f0 0%, #94a3b8 100%);
    color: #1e293b;
}

.rank-num.third {
    background: linear-gradient(135deg, #edd2b8 0%, #a86c43 100%);
    color: #ffffff;
}

/* PVP Spotlight Widget card design */
.pvp-spotlight-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--color-border);
    border-radius: 8px;
    padding: 16px;
    transition: border-color 0.2s ease;
}
.pvp-spotlight-card:hover {
    border-color: rgba(255, 255, 255, 0.15);
}

.spotlight-header {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 10px;
    color: var(--color-red);
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-shadow: none;
}

.spotlight-img-wrapper {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid var(--color-border);
    margin-bottom: 12px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    transition: border-color 0.2s ease;
}
.pvp-spotlight-card:hover .spotlight-img-wrapper {
    border-color: var(--color-primary);
}

.spotlight-name {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 14px;
    color: #ffffff;
}

.spotlight-class {
    font-size: 11px;
    color: var(--color-primary-hover);
    margin-bottom: 12px;
    font-weight: 600;
}

.spotlight-stat-box {
    display: flex;
    flex-direction: column;
    gap: 6px;
    width: 100%;
    background: rgba(0, 0, 0, 0.2);
    padding: 10px;
    border-radius: 6px;
    border: 1px solid var(--color-border);
}

.spotlight-stat {
    display: flex;
    justify-content: space-between;
    font-size: 11px;
    font-weight: 500;
    color: var(--color-text-muted);
    padding-bottom: 4px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}
.spotlight-stat:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

/* WoE Castle items */
.woe-schedule-alert {
    background: rgba(245, 158, 11, 0.05);
    border: 1px dashed rgba(245, 158, 11, 0.3);
    border-radius: 8px;
    padding: 10px 14px;
    text-align: center;
    font-size: 12px;
    margin-bottom: 20px;
    color: #fbbf24;
    text-shadow: none;
}

.woe-castles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 15px;
}

.castle-card {
    text-align: center;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--color-border);
    border-radius: 8px;
    padding: 16px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    transition: all 0.25s ease;
}

.castle-card:hover {
    transform: translateY(-2px);
    border-color: rgba(255, 255, 255, 0.15);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
}

.castle-icon {
    font-size: 2rem;
    color: var(--color-text-muted);
    margin-bottom: 8px;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.2));
    transition: transform 0.2s ease;
}
.castle-card:hover .castle-icon {
    transform: scale(1.08);
}

.castle-card.conquered .castle-icon {
    color: var(--color-accent);
    filter: drop-shadow(0 0 8px var(--color-accent-glow));
    animation: castle-glow 2.5s ease-in-out infinite alternate;
}

.castle-territory {
    font-size: 10px;
    font-family: var(--font-heading);
    font-weight: 600;
    color: var(--color-text-muted);
    text-transform: uppercase;
    margin-bottom: 8px;
}

.castle-owner-box {
    background: rgba(0, 0, 0, 0.25);
    border: 1px solid var(--color-border);
    border-radius: 6px;
    padding: 8px;
}

.castle-owner-label {
    font-size: 9px;
    color: var(--color-text-muted);
    text-transform: uppercase;
    margin-bottom: 2px;
}

.castle-owner-name {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 11px;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
}

.castle-owner-name i {
    color: var(--color-primary);
}

.castle-leader {
    font-size: 10px;
    color: var(--color-text-muted);
    margin-top: 2px;
}
/* Wrapper for downloads section layout */
.section-wrapper-with-art {
    position: relative;
    width: 100%;
}

/* --- COLLECTIBLE CHARACTER CARDS & PARTICLES --- */

/* Falling Particles Background */
.particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
    overflow: hidden;
}

.particle {
    position: absolute;
    width: 5px;
    height: 5px;
    background: rgba(245, 158, 11, 0.4); /* Default glowing solar gold */
    border-radius: 50%;
    animation: fall-sway-1 linear infinite;
    filter: blur(0.5px);
}

/* Staggered particle flows - 30 custom variations */
.particle:nth-child(1) { left: 4%; width: 4px; height: 4px; animation-name: fall-sway-1; animation-duration: 16s; animation-delay: 0s; background: rgba(245, 158, 11, 0.45); }
.particle:nth-child(2) { left: 12%; width: 7px; height: 7px; animation-name: fall-sway-2; animation-duration: 18s; animation-delay: 3s; background: rgba(239, 68, 68, 0.35); filter: blur(0.8px); }
.particle:nth-child(3) { left: 18%; width: 3px; height: 3px; animation-name: fall-sway-3; animation-duration: 22s; animation-delay: 1s; background: rgba(255, 255, 255, 0.3); }
.particle:nth-child(4) { left: 25%; width: 6px; height: 6px; animation-name: fall-sway-1; animation-duration: 14s; animation-delay: 5s; background: rgba(251, 191, 36, 0.5); filter: blur(0.5px); }
.particle:nth-child(5) { left: 32%; width: 5px; height: 5px; animation-name: fall-sway-2; animation-duration: 20s; animation-delay: 2s; background: rgba(255, 255, 255, 0.2); }
.particle:nth-child(6) { left: 39%; width: 8px; height: 8px; animation-name: fall-sway-3; animation-duration: 12s; animation-delay: 7s; background: rgba(245, 158, 11, 0.3); filter: blur(1.2px); }
.particle:nth-child(7) { left: 45%; width: 4px; height: 4px; animation-name: fall-sway-1; animation-duration: 19s; animation-delay: 0.5s; background: rgba(255, 255, 255, 0.4); }
.particle:nth-child(8) { left: 52%; width: 6px; height: 6px; animation-name: fall-sway-2; animation-duration: 15s; animation-delay: 4s; background: rgba(239, 68, 68, 0.4); filter: blur(0.6px); }
.particle:nth-child(9) { left: 58%; width: 3px; height: 3px; animation-name: fall-sway-3; animation-duration: 24s; animation-delay: 8s; background: rgba(251, 191, 36, 0.4); }
.particle:nth-child(10) { left: 64%; width: 5px; height: 5px; animation-name: fall-sway-1; animation-duration: 17s; animation-delay: 1.5s; background: rgba(255, 255, 255, 0.25); }
.particle:nth-child(11) { left: 71%; width: 7px; height: 7px; animation-name: fall-sway-2; animation-duration: 13s; animation-delay: 9s; background: rgba(245, 158, 11, 0.5); filter: blur(0.8px); }
.particle:nth-child(12) { left: 78%; width: 4px; height: 4px; animation-name: fall-sway-3; animation-duration: 21s; animation-delay: 3.5s; background: rgba(255, 255, 255, 0.35); }
.particle:nth-child(13) { left: 84%; width: 6px; height: 6px; animation-name: fall-sway-1; animation-duration: 16s; animation-delay: 6s; background: rgba(239, 68, 68, 0.3); filter: blur(0.5px); }
.particle:nth-child(14) { left: 91%; width: 3px; height: 3px; animation-name: fall-sway-2; animation-duration: 25s; animation-delay: 11s; background: rgba(251, 191, 36, 0.6); }
.particle:nth-child(15) { left: 96%; width: 5px; height: 5px; animation-name: fall-sway-3; animation-duration: 15s; animation-delay: 0.2s; background: rgba(255, 255, 255, 0.15); }
.particle:nth-child(16) { left: 2%; width: 5px; height: 5px; animation-name: fall-sway-2; animation-duration: 18s; animation-delay: 6.5s; background: rgba(255, 255, 255, 0.3); }
.particle:nth-child(17) { left: 8%; width: 8px; height: 8px; animation-name: fall-sway-3; animation-duration: 11s; animation-delay: 4.8s; background: rgba(245, 158, 11, 0.4); filter: blur(1px); }
.particle:nth-child(18) { left: 15%; width: 3px; height: 3px; animation-name: fall-sway-1; animation-duration: 23s; animation-delay: 2.5s; background: rgba(251, 191, 36, 0.5); }
.particle:nth-child(19) { left: 22%; width: 6px; height: 6px; animation-name: fall-sway-2; animation-duration: 15s; animation-delay: 7.2s; background: rgba(239, 68, 68, 0.35); filter: blur(0.6px); }
.particle:nth-child(20) { left: 30%; width: 4px; height: 4px; animation-name: fall-sway-3; animation-duration: 19s; animation-delay: 0.8s; background: rgba(255, 255, 255, 0.25); }
.particle:nth-child(21) { left: 36%; width: 7px; height: 7px; animation-name: fall-sway-1; animation-duration: 13s; animation-delay: 5.5s; background: rgba(245, 158, 11, 0.45); filter: blur(0.9px); }
.particle:nth-child(22) { left: 42%; width: 3px; height: 3px; animation-name: fall-sway-2; animation-duration: 22s; animation-delay: 9.5s; background: rgba(255, 255, 255, 0.35); }
.particle:nth-child(23) { left: 48%; width: 5px; height: 5px; animation-name: fall-sway-3; animation-duration: 17s; animation-delay: 1.2s; background: rgba(251, 191, 36, 0.4); }
.particle:nth-child(24) { left: 56%; width: 8px; height: 8px; animation-name: fall-sway-1; animation-duration: 14s; animation-delay: 8.2s; background: rgba(239, 68, 68, 0.3); filter: blur(1.1px); }
.particle:nth-child(25) { left: 62%; width: 4px; height: 4px; animation-name: fall-sway-2; animation-duration: 20s; animation-delay: 3.2s; background: rgba(255, 255, 255, 0.2); }
.particle:nth-child(26) { left: 68%; width: 6px; height: 6px; animation-name: fall-sway-3; animation-duration: 16s; animation-delay: 10s; background: rgba(245, 158, 11, 0.35); filter: blur(0.5px); }
.particle:nth-child(27) { left: 75%; width: 3px; height: 3px; animation-name: fall-sway-1; animation-duration: 24s; animation-delay: 5.8s; background: rgba(255, 255, 255, 0.4); }
.particle:nth-child(28) { left: 81%; width: 7px; height: 7px; animation-name: fall-sway-2; animation-duration: 12s; animation-delay: 1.8s; background: rgba(251, 191, 36, 0.55); filter: blur(0.8px); }
.particle:nth-child(29) { left: 88%; width: 5px; height: 5px; animation-name: fall-sway-3; animation-duration: 18s; animation-delay: 8.8s; background: rgba(239, 68, 68, 0.4); }
.particle:nth-child(30) { left: 94%; width: 4px; height: 4px; animation-name: fall-sway-1; animation-duration: 21s; animation-delay: 12s; background: rgba(255, 255, 255, 0.3); }

/* --- TRANSPARENT FLOATING CHARACTERS & ANIMATIONS --- */

.transparent-floating-character {
    position: fixed;
    top: 150px;
    width: 250px;
    z-index: 10;
    pointer-events: none;
    user-select: none;
    transition: all 0.5s ease;
}

.transparent-floating-character img {
    width: 100%;
    height: auto;
    object-fit: contain;
    filter: drop-shadow(0 15px 30px rgba(0, 0, 0, 0.6)) drop-shadow(0 0 25px rgba(139, 92, 246, 0.15));
    transition: transform 0.3s ease;
}

.transparent-floating-character.left {
    left: calc(50vw - 850px);
    animation: float-char-left 8s ease-in-out infinite;
}

.transparent-floating-character.right {
    right: calc(50vw - 850px);
    animation: float-char-right 8s ease-in-out infinite;
}

/* Grid splits for downloads section */
.downloads-grid-layout {
    display: grid;
    grid-template-columns: 1fr 210px;
    gap: 20px;
    align-items: stretch;
}

.transparent-inline-character {
    display: flex;
    align-items: flex-end;
    justify-content: center;
    height: 100%;
    position: relative;
    padding-top: 20px;
}

.transparent-inline-character img {
    width: 100%;
    height: auto;
    max-height: 380px;
    object-fit: contain;
    filter: drop-shadow(0 15px 35px rgba(0, 0, 0, 0.6)) drop-shadow(0 0 25px rgba(139, 92, 246, 0.2));
    animation: float 4s ease-in-out infinite;
}

/* ==========================================================================
   VOTE SECTION (¡Apóyanos con tu voto!)
   ========================================================================== */
.ro-vote-section {
    width: 100%;
    background-color: #ff9d5c; /* Exactly matching the warm orange background */
    background-image: radial-gradient(circle at 50% 50%, #ffa56b 0%, #ff9d5c 100%);
    border-top: 4px solid #000000;
    border-bottom: 4px solid #000000;
    padding: 50px 15px;
    position: relative;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 5;
    margin-top: 40px;
}

.vote-container {
    max-width: 1100px;
    width: 100%;
    margin: 0 auto;
    text-align: center;
    position: relative;
}

.ro-vote-section h2 {
    font-family: var(--font-heading);
    font-size: 2.8rem;
    font-weight: 900;
    color: #ffffff;
    margin-bottom: 8px;
    letter-spacing: 0.5px;
    text-shadow: 
        -2px -2px 0 #331c0e,  
         2px -2px 0 #331c0e,
        -2px  2px 0 #331c0e,
         2px  2px 0 #331c0e,
         0px  4px 10px rgba(0,0,0,0.5);
    text-transform: uppercase;
}

.vote-desc {
    font-family: var(--font-body);
    font-size: 13px;
    font-weight: 600;
    color: #331c0e; /* Dark brown/black for contrast */
    max-width: 700px;
    margin: 0 auto 55px;
    line-height: 1.5;
}

/* Wrapper holding the buttons and chibis */
.vote-buttons-wrapper {
    position: relative;
    max-width: 720px;
    margin: 0 auto;
    min-height: 150px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.vote-buttons {
    display: flex;
    gap: 24px;
    justify-content: center;
    align-items: center;
    width: 100%;
    position: relative;
    z-index: 10;
}

/* Large Pill Gradient Buttons */
.vote-btn {
    font-family: var(--font-heading);
    font-weight: 900;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 18px 36px;
    border-radius: 40px;
    color: #ffffff;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    border: 3px solid #000000;
    box-shadow: 0 8px 0 #000000, 0 12px 20px rgba(0,0,0,0.3);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
    position: relative;
}

.vote-btn i {
    font-size: 15px;
    filter: drop-shadow(0 1px 2px rgba(0,0,0,0.3));
}

/* RagnaTop Button: Pink/Magenta */
.vote-btn.btn-ragnatop {
    background: linear-gradient(180deg, #ff5eb2 0%, #e6007e 100%);
}

.vote-btn.btn-ragnatop:hover {
    background: linear-gradient(180deg, #ff7dbf 0%, #f50087 100%);
    box-shadow: 0 8px 0 #000000, 0 0 25px rgba(230, 0, 126, 0.6);
}

/* TopRo Hispano Button: Yellow/Orange */
.vote-btn.btn-topro {
    background: linear-gradient(180deg, #ffbf00 0%, #ff8c00 100%);
}

.vote-btn.btn-topro:hover {
    background: linear-gradient(180deg, #ffd000 0%, #ff9c1a 100%);
    box-shadow: 0 8px 0 #000000, 0 0 25px rgba(255, 140, 0, 0.6);
}

.vote-btn:active {
    transform: translateY(4px);
    box-shadow: 0 4px 0 #000000, 0 6px 10px rgba(0,0,0,0.3);
}

/* Chibi Placement Styles */
.vote-chibi {
    position: absolute;
    pointer-events: none;
    user-select: none;
    z-index: 12;
    filter: drop-shadow(0 8px 15px rgba(0, 0, 0, 0.4));
    transition: all 0.3s ease;
}

/* Left Chibi: Lord Knight */
.chibi-left-lk {
    width: 130px;
    height: auto;
    bottom: -15px;
    left: -80px;
    animation: chibi-float-soft 6s ease-in-out infinite;
}

/* Mid-Back Chibi: Crusader on Peco */
.chibi-mid-crusader {
    width: 140px;
    height: auto;
    top: -105px;
    left: 80px;
    z-index: 5;
    animation: chibi-float-soft 8s ease-in-out infinite 1s;
}

/* Right Chibi: Sniper */
.chibi-right-sniper {
    width: 140px;
    height: auto;
    bottom: -15px;
    right: -85px;
    animation: chibi-float-soft 7s ease-in-out infinite 0.5s;
}

/* Bottom-Right Chibi: Warg */
.chibi-bottom-warg {
    width: 125px;
    height: auto;
    bottom: -40px;
    right: 25px;
    z-index: 6;
    animation: chibi-float-soft 9s ease-in-out infinite 1.5s;
}

/* Chibi floating animation */
@keyframes chibi-float-soft {
    0% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
    100% { transform: translateY(0); }
}

@media (max-width: 1600px) {
    .transparent-floating-character {
        display: none !important;
    }
}

@media (max-width: 1024px) {
    .chibi-left-lk {
        width: 110px;
        left: -30px;
    }
    .chibi-right-sniper {
        width: 110px;
        right: -35px;
    }
    .chibi-mid-crusader {
        width: 120px;
        top: -95px;
        left: 100px;
    }
    .chibi-bottom-warg {
        width: 100px;
        bottom: -35px;
    }
}

@media (max-width: 768px) {
    .downloads-grid-layout {
        grid-template-columns: 1fr;
    }
    .transparent-inline-character {
        display: none !important;
    }
    .ro-vote-section h2 {
        font-size: 2.2rem;
    }
    .vote-desc {
        margin-bottom: 30px;
    }
    .vote-buttons-wrapper {
        max-width: 100%;
        min-height: auto;
        padding-top: 60px;
        padding-bottom: 60px;
    }
    .vote-buttons {
        flex-direction: column;
        gap: 20px;
        width: auto;
        margin: 0 auto;
    }
    .vote-btn {
        width: 250px;
        justify-content: center;
        padding: 15px 25px;
    }
    /* Reposition chibis on mobile so they don't break the layout */
    .chibi-left-lk {
        top: -60px;
        left: -20px;
        bottom: auto;
        width: 90px;
    }
    .chibi-right-sniper {
        bottom: -40px;
        right: -25px;
        width: 95px;
    }
    .chibi-mid-crusader {
        top: -80px;
        left: 50%;
        transform: translateX(-50%);
        width: 105px;
        animation: none;
    }
    .chibi-bottom-warg {
        bottom: -40px;
        left: -10px;
        right: auto;
        width: 85px;
    }
}

/* KEYFRAMES FOR ANIMATIONS */
@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-8px); }
    100% { transform: translateY(0px); }
}

@keyframes float-char-left {
    0% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-15px) rotate(-1deg); }
    100% { transform: translateY(0px) rotate(0deg); }
}

@keyframes float-char-right {
    0% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(15px) rotate(1deg); }
    100% { transform: translateY(0px) rotate(0deg); }
}

@keyframes pulse {
    0% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.5);
    }
    70% {
        transform: scale(1);
        box-shadow: 0 0 0 6px rgba(16, 185, 129, 0);
    }
    100% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0);
    }
}

@keyframes castle-glow {
    0% { filter: drop-shadow(0 0 2px rgba(245, 158, 11, 0.3)); }
    100% { filter: drop-shadow(0 0 10px rgba(245, 158, 11, 0.8)); }
}

@keyframes fall-sway-1 {
    0% {
        transform: translateY(-50px) translateX(0) scale(1) rotate(0deg);
        opacity: 0;
    }
    10% { opacity: 0.8; }
    50% { transform: translateY(50vh) translateX(-25px) scale(0.8) rotate(180deg); }
    90% { opacity: 0.8; }
    100% {
        transform: translateY(105vh) translateX(20px) scale(0.5) rotate(360deg);
        opacity: 0;
    }
}

@keyframes fall-sway-2 {
    0% {
        transform: translateY(-50px) translateX(0) scale(0.8) rotate(0deg);
        opacity: 0;
    }
    15% { opacity: 0.7; }
    40% { transform: translateY(40vh) translateX(30px) scale(1) rotate(90deg); }
    75% { transform: translateY(75vh) translateX(-15px) scale(0.9) rotate(270deg); }
    90% { opacity: 0.7; }
    100% {
        transform: translateY(105vh) translateX(40px) scale(0.6) rotate(360deg);
        opacity: 0;
    }
}

@keyframes fall-sway-3 {
    0% {
        transform: translateY(-50px) translateX(0) scale(1.1) rotate(0deg);
        opacity: 0;
    }
    20% { opacity: 0.9; }
    60% { transform: translateY(60vh) translateX(-35px) scale(0.7) rotate(-180deg); }
    90% { opacity: 0.9; }
    100% {
        transform: translateY(105vh) translateX(-15px) scale(0.4) rotate(-360deg);
        opacity: 0;
    }
}
/* Modal Styling - Split Screen with Kafra illustration */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(5, 7, 12, 0.85);
    backdrop-filter: blur(8px);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
}

.modal-overlay.active {
    opacity: 1;
    pointer-events: all;
}

.modal-content {
    background: #0d121f;
    border: 1px solid var(--color-border);
    box-shadow: 0 20px 50px rgba(0,0,0,0.8);
    border-radius: 16px;
    width: 90%;
    max-width: 760px;
    padding: 0;
    position: relative;
    transform: scale(0.95);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    overflow: hidden;
}

.modal-overlay.active .modal-content {
    transform: scale(1);
}

.modal-close {
    position: absolute;
    top: 14px;
    right: 18px;
    font-size: 1.5rem;
    color: var(--color-text-muted);
    cursor: pointer;
    background: none;
    border: none;
    z-index: 10;
    transition: color 0.2s ease;
}

.modal-close:hover {
    color: #ffffff;
}

.modal-split {
    display: flex;
    width: 100%;
    min-height: 440px;
}

.modal-left {
    flex: 1;
    background-image: url('kafra.png');
    background-size: cover;
    background-position: center;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 24px;
}

.modal-left::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(180deg, rgba(13,18,31,0.2) 0%, rgba(13,18,31,0.95) 90%);
}

.modal-left-text {
    position: relative;
    z-index: 2;
}

.modal-left-text h3 {
    font-family: var(--font-heading);
    color: #ffffff;
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 8px;
}

.modal-left-text p {
    color: var(--color-text-muted);
    font-size: 12px;
    line-height: 1.4;
}

.modal-right {
    flex: 1.2;
    padding: 35px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.modal-title {
    font-family: var(--font-heading);
    font-size: 20px;
    font-weight: 800;
    margin-bottom: 4px;
    color: #ffffff;
    letter-spacing: 0.5px;
}

.modal-subtitle {
    font-size: 12px;
    color: var(--color-text-muted);
    margin-bottom: 20px;
}

.form-group {
    margin-bottom: 14px;
}

.form-label {
    display: block;
    font-size: 11px;
    font-weight: 600;
    margin-bottom: 6px;
    color: #ffffff;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.form-input {
    width: 100%;
    background: rgba(0, 0, 0, 0.25);
    border: 1px solid var(--color-border);
    border-radius: 6px;
    color: #ffffff;
    padding: 8px 12px;
    font-size: 12px;
    transition: all 0.2s ease;
}

.form-input:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 10px rgba(139, 92, 246, 0.15);
}

.form-message {
    margin-top: 12px;
    padding: 8px;
    border-radius: 6px;
    font-size: 12px;
    text-align: center;
    display: none;
}

.form-message.success {
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.3);
    color: #10b981;
    display: block;
}

.form-message.error {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #ef4444;
    display: block;
}

/* Footer Section - Clean Dark Minimal */
footer {
    background: #06090f;
    border-top: 1px solid var(--color-border);
    padding: 40px 15px;
    text-align: center;
    color: var(--color-text-muted);
}

.footer-content {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.footer-logo {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 16px;
    color: #ffffff;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.footer-logo i,
.footer-logo svg {
    color: var(--color-primary);
    fill: var(--color-primary);
    filter: drop-shadow(0 0 8px var(--color-primary));
    width: 20px;
    height: 20px;
    display: inline-block;
    vertical-align: middle;
    transition: transform 0.2s ease, fill 0.2s ease;
}

.footer-logo span {
    color: var(--color-accent);
}

.footer-links {
    display: flex;
    gap: 20px;
    list-style: none;
}

.footer-links a {
    color: var(--color-text-muted);
    font-family: var(--font-heading);
    font-size: 11px;
    text-transform: uppercase;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-links a:hover {
    color: #ffffff;
}

.copyright {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.2);
}

/* Accessibility Skip Link styling */
.skip-link {
    position: absolute;
    top: -100px;
    left: 10px;
    background: #101620;
    color: #ffffff;
    padding: 8px 12px;
    z-index: 2000;
    border: 1px solid var(--color-border);
    border-radius: 4px;
    text-decoration: none;
    font-weight: 700;
    transition: top 0.2s ease;
}
.skip-link:focus {
    top: 10px;
}

/* Tabular numbers formatting for aligned numerical data */
.ranking-table td, 
.spotlight-stat-box, 
#online-counter, 
#server-time-clock {
    font-variant-numeric: tabular-nums;
}

/* Keyboard outline rings for accessibility compliance */
:focus-visible {
    outline: 2px solid var(--color-primary) !important;
    outline-offset: 1px !important;
}

/* Responsive Rules */
@media (max-width: 992px) {
    .columns-wrapper {
        grid-template-columns: 1fr;
    }
    .ro-header-banner {
        height: 200px;
        padding: 24px;
    }
    .banner-title-box h1 {
        font-size: 2.4rem;
    }
    .rankings-split-container {
        grid-template-columns: 1fr;
    }
    .modal-split {
        flex-direction: column;
    }
    .modal-left {
        min-height: 150px;
        justify-content: center;
        text-align: center;
    }
}

@media (max-width: 768px) {
    header {
        position: relative;
    }
    .menu-toggle {
        display: flex;
    }
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: #090c15;
        flex-direction: column;
        padding: 15px;
        border-bottom: 1px solid var(--color-border);
        text-align: center;
        gap: 12px;
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
    }
    .nav-links.active {
        display: flex;
    }
    .ro-hud-nav {
        flex-direction: column;
        padding: 6px;
    }
    .ro-hud-links {
        flex-direction: column;
        width: 100%;
    }
    .ro-hud-item {
        width: 100%;
    }
    .main-container {
        margin-top: 0;
        padding: 10px;
    }
    .modal-content {
        margin: 0 10px;
    }
    .modal-right {
        padding: 24px;
    }
}
