/* ========================================
   MAPLEEVO PREMIUM UI/UX DESIGN SYSTEM
   A sophisticated, delightful interface for
   nostalgic MapleStory adventurers
   ======================================== */

/* ===== RESET & BASE ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

:root {
    /* Brand Colors - Refined Orange Palette */
    --primary: #ff6b35;
    --primary-light: #ff8555;
    --primary-dark: #e85a28;
    --primary-glow: rgba(255, 107, 53, 0.4);
    
    /* Secondary Accent */
    --accent: #ffd60a;
    --accent-glow: rgba(255, 214, 10, 0.3);
    
    /* Neutrals - Premium Dark Theme */
    --dark-900: #0a0a0a;
    --dark-800: #121212;
    --dark-700: #1a1a1a;
    --dark-600: #242424;
    --dark-500: #2a2a2a;
    
    /* Borders & Dividers */
    --border-color: #2a2a2a;
    --border-highlight: #333;
    --border-glow: rgba(255, 107, 53, 0.2);
    
    /* Text Colors */
    --text-primary: #f0f0f0;
    --text-secondary: #b8b8b8;
    --text-tertiary: #888;
    --text-muted: #666;
    
    /* Status Colors */
    --success: #4ade80;
    --warning: #fbbf24;
    --error: #ef4444;
    --info: #60a5fa;
    
    /* Effects */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.5);
    --shadow-glow: 0 0 20px var(--primary-glow);
    
    /* Timing */
    --transition-fast: 150ms ease;
    --transition-base: 250ms ease;
    --transition-slow: 400ms ease;
    
    /* Spacing System */
    --space-xs: 0.5rem;
    --space-sm: 0.75rem;
    --space-md: 1rem;
    --space-lg: 1.5rem;
    --space-xl: 2rem;
    --space-2xl: 3rem;
    
    /* Typography */
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-display: 'Rajdhani', sans-serif;
}

body {
    font-family: var(--font-sans);
    background: var(--dark-900);
    color: var(--text-primary);
    font-size: 14px;
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ===== BACKGROUND VIDEO ===== */
#bg-video {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -2;
    filter: brightness(0.25) contrast(0.9) blur(10px);
    transform: scale(1.1);
}

.video-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        180deg,
        rgba(10, 10, 10, 0.92) 0%,
        rgba(10, 10, 10, 0.88) 50%,
        rgba(10, 10, 10, 0.92) 100%
    );
    z-index: -1;
    pointer-events: none;
}

/* ===== SCROLLING ANNOUNCEMENT BANNER ===== */
.announcement-banner {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 36px;
    background: linear-gradient(135deg, rgba(255, 214, 10, 0.15), rgba(255, 107, 53, 0.15));
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--accent);
    z-index: 9999;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(255, 214, 10, 0.1);
}

.announcement-scroll {
    display: flex;
    width: fit-content;
    animation: scroll-left 60s linear infinite;
    will-change: transform;
}

.announcement-text {
    display: inline-block;
    white-space: nowrap;
    padding: 9px 0;
    font-size: 13px;
    font-weight: 600;
    color: var(--accent);
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.8), 0 0 24px var(--accent-glow);
    padding-right: 100px;
    font-family: var(--font-sans);
    letter-spacing: 0.3px;
}

@keyframes scroll-left {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.announcement-banner:hover .announcement-scroll {
    animation-play-state: paused;
}

/* ===== HEADER ===== */
.site-header {
    background: rgba(18, 18, 18, 0.92);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border-highlight);
    padding: var(--space-md) var(--space-xl);
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 36px;
    z-index: 1000;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.3);
    transition: all var(--transition-base);
}

.site-header:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, 
        transparent, 
        var(--primary) 20%,
        var(--accent) 50%,
        var(--primary) 80%,
        transparent
    );
    opacity: 0.5;
}

.header-logo {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.header-logo h1 {
    font-family: var(--font-display);
    font-size: 32px;
    font-weight: 700;
    letter-spacing: 1px;
    margin: 0;
    line-height: 1;
    display: flex;
    align-items: center;
    gap: 2px;
}

.logo-maple {
    color: var(--text-primary);
    text-shadow: 0 2px 8px rgba(255, 255, 255, 0.1);
}

.logo-evo {
    color: var(--primary);
    text-shadow: 0 0 20px var(--primary-glow);
}

.logo-tagline {
    font-size: 11px;
    font-weight: 500;
    color: var(--text-tertiary);
    letter-spacing: 1.5px;
    text-transform: uppercase;
    font-family: var(--font-sans);
}

.header-nav {
    display: flex;
    gap: var(--space-md);
    align-items: center;
}

.online-players {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    background: linear-gradient(135deg, 
        rgba(74, 222, 128, 0.15),
        rgba(74, 222, 128, 0.05)
    );
    border: 2px solid rgba(74, 222, 128, 0.3);
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(74, 222, 128, 0.2);
}

.online-icon {
    font-size: 14px;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.6; }
}

.online-count {
    font-size: 18px;
    font-weight: 800;
    font-family: var(--font-display);
    color: var(--success);
    text-shadow: 0 0 8px rgba(74, 222, 128, 0.5);
}

.online-label {
    font-size: 12px;
    font-weight: 600;
    font-family: var(--font-sans);
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.nav-link {
    color: var(--text-primary);
    text-decoration: none;
    padding: 10px 20px;
    border-radius: 10px;
    background: linear-gradient(135deg,
        rgba(255, 255, 255, 0.08),
        rgba(255, 255, 255, 0.03)
    );
    border: 2px solid rgba(255, 214, 10, 0.25);
    transition: all var(--transition-base);
    font-weight: 700;
    font-size: 13px;
    font-family: var(--font-display);
    letter-spacing: 0.5px;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 8px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(255, 214, 10, 0.12);
}

.nav-icon {
    font-size: 18px;
    transition: transform var(--transition-base);
    filter: drop-shadow(0 2px 4px rgba(255, 214, 10, 0.4));
}

.nav-link:before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, 
        rgba(255, 214, 10, 0.15), 
        rgba(255, 255, 255, 0.08)
    );
    opacity: 0;
    transition: opacity var(--transition-base);
}

.nav-link:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 3px;
    background: linear-gradient(90deg, 
        var(--accent), 
        rgba(255, 255, 255, 0.8)
    );
    transform: translateX(-50%);
    transition: width var(--transition-base);
    box-shadow: 0 0 8px var(--accent);
}

.nav-link:hover {
    color: white;
    border-color: var(--accent);
    background: linear-gradient(135deg,
        rgba(255, 214, 10, 0.2),
        rgba(255, 255, 255, 0.1)
    );
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(255, 214, 10, 0.3);
}

.nav-link:hover:before {
    opacity: 1;
}

.nav-link:hover:after {
    width: 80%;
}

.nav-link:hover .nav-icon {
    transform: scale(1.2) rotate(-5deg);
    filter: drop-shadow(0 2px 8px rgba(255, 214, 10, 0.8));
}

/* ===== LAYOUT ===== */
.main-container {
    display: grid;
    grid-template-columns: 280px 1fr 300px;
    gap: var(--space-lg);
    max-width: 1600px;
    width: 100%;
    margin: 0 auto;
    padding: var(--space-xl);
    flex: 1;
}

/* ===== WIDGETS - REFINED DESIGN ===== */
.widget {
    background: linear-gradient(135deg, 
        rgba(26, 26, 26, 0.95) 0%,
        rgba(18, 18, 18, 0.95) 100%
    );
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: var(--space-lg);
    backdrop-filter: blur(12px);
    box-shadow: var(--shadow-md);
    transition: all var(--transition-base);
}

.widget:hover {
    border-color: var(--border-highlight);
    box-shadow: var(--shadow-lg);
    transform: translateY(-2px);
}

.widget-header {
    background: linear-gradient(135deg, 
        rgba(36, 36, 36, 0.9),
        rgba(26, 26, 26, 0.9)
    );
    border-bottom: 1px solid var(--border-color);
    padding: var(--space-md) var(--space-lg);
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    position: relative;
    overflow: hidden;
}

.widget-header:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg,
        transparent,
        var(--primary) 50%,
        transparent
    );
    opacity: 0;
    transition: opacity var(--transition-base);
}

.widget:hover .widget-header:after {
    opacity: 0.6;
}

.widget-header .icon {
    font-size: 20px;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

.header-title {
    font-family: var(--font-display);
    font-size: 16px;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: 0.5px;
    text-transform: uppercase;
    flex: 1;
}

.header-subtitle {
    font-size: 11px;
    color: var(--text-tertiary);
    font-weight: 500;
    display: block;
    margin-top: 2px;
}

.widget-content {
    padding: var(--space-lg);
}

/* ===== LOGIN WIDGET ===== */
.login-widget .widget-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
}

.compact-form {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

.compact-form .error-message {
    padding: 8px 12px;
    background: rgba(239, 68, 68, 0.12);
    border-left: 3px solid #ef4444;
    color: #fca5a5;
    font-size: 12px;
    border-radius: 0 4px 4px 0;
}

.input-group {
    position: relative;
}

.form-input {
    width: 100%;
    padding: 12px 40px 12px 14px;
    background: rgba(36, 36, 36, 0.6);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-primary);
    font-family: var(--font-sans);
    font-size: 13px;
    font-weight: 500;
    transition: all var(--transition-base);
    outline: none;
}

.form-input:focus {
    background: rgba(42, 42, 42, 0.8);
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--border-glow);
}

.form-input::placeholder {
    color: var(--text-muted);
    font-weight: 400;
}

.input-icon {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 16px;
    opacity: 0.4;
    pointer-events: none;
    transition: opacity var(--transition-base);
}

.input-group:focus-within .input-icon {
    opacity: 0.7;
}

.form-buttons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-sm);
    margin-top: var(--space-sm);
}

.btn {
    position: relative;
    padding: 12px var(--space-md);
    border: 2px solid var(--border-highlight);
    border-radius: 8px;
    font-family: var(--font-display);
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: all var(--transition-base);
    overflow: hidden;
    text-transform: uppercase;
}

.btn-text {
    position: relative;
    z-index: 1;
}

.btn-login {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    border-color: var(--primary);
    color: white;
    box-shadow: 0 4px 12px rgba(255, 107, 53, 0.3);
}

.btn-glow {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.2),
        transparent
    );
    opacity: 0;
    transition: opacity var(--transition-base);
}

.btn-login:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 107, 53, 0.5);
}

.btn-login:hover .btn-glow {
    opacity: 1;
}

.btn-login:active {
    transform: translateY(0);
}

.btn-signup {
    background: rgba(36, 36, 36, 0.6);
    color: var(--text-secondary);
    border-color: var(--border-highlight);
}

.btn-signup:hover {
    background: rgba(42, 42, 42, 0.8);
    color: var(--text-primary);
    border-color: var(--primary);
    transform: translateY(-2px);
}

.form-links {
    text-align: center;
    margin-top: var(--space-sm);
}

.link-recover {
    color: var(--text-tertiary);
    text-decoration: none;
    font-size: 12px;
    font-weight: 500;
    transition: color var(--transition-fast);
}

.link-recover:hover {
    color: var(--primary);
}

/* ===== DOWNLOAD WIDGET ===== */
.download-content {
    padding: var(--space-md) !important;
}

.btn-download {
    width: 100%;
    padding: var(--space-lg);
    background: linear-gradient(135deg, 
        rgba(255, 107, 53, 0.15),
        rgba(255, 107, 53, 0.05)
    );
    border: 2px solid var(--primary);
    border-radius: 12px;
    cursor: pointer;
    transition: all var(--transition-base);
    display: flex;
    align-items: center;
    gap: var(--space-md);
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(255, 107, 53, 0.2);
}

.btn-download:before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg,
        rgba(255, 107, 53, 0.2),
        transparent
    );
    opacity: 0;
    transition: opacity var(--transition-base);
}

.btn-download:hover {
    transform: translateY(-4px);
    border-color: var(--accent);
    box-shadow: 0 8px 32px rgba(255, 107, 53, 0.4);
}

.btn-download:hover:before {
    opacity: 1;
}

.download-icon-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    flex-shrink: 0;
}

.download-icon {
    font-size: 32px;
    z-index: 1;
    animation: float 3s ease-in-out infinite;
}

.download-pulse {
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    border: 2px solid var(--primary);
    animation: pulse-ring 2s ease-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-4px); }
}

@keyframes pulse-ring {
    0% {
        transform: scale(0.9);
        opacity: 1;
    }
    100% {
        transform: scale(1.4);
        opacity: 0;
    }
}

.download-text {
    flex: 1;
    text-align: left;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.download-title {
    font-family: var(--font-display);
    font-size: 16px;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: 0.3px;
}

.download-subtitle {
    font-size: 12px;
    color: var(--text-tertiary);
    font-weight: 500;
}

.download-stats {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    margin-top: var(--space-md);
    font-size: 11px;
    color: var(--text-tertiary);
}

.stat-item {
    color: var(--success);
    font-weight: 600;
}

.stat-divider {
    opacity: 0.3;
}

/* ===== SUPPORT WIDGET ===== */
.server-info {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
    padding: var(--space-md) !important;
}

.info-link {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    padding: var(--space-lg);
    background: linear-gradient(135deg,
        rgba(255, 107, 53, 0.12),
        rgba(255, 107, 53, 0.05)
    );
    border: 2px solid rgba(255, 107, 53, 0.25);
    border-radius: 12px;
    text-decoration: none;
    transition: all var(--transition-base);
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(255, 107, 53, 0.15);
    z-index: 10;
    cursor: pointer;
}

.info-link:before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg,
        rgba(255, 107, 53, 0.2),
        transparent
    );
    opacity: 0;
    transition: opacity var(--transition-base);
    pointer-events: none;
}

.info-link:hover {
    border-color: var(--primary);
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(255, 107, 53, 0.3);
}

.info-link:hover:before {
    opacity: 1;
}

.info-icon {
    position: relative;
    width: 48px;
    height: 48px;
    background: rgba(255, 107, 53, 0.15);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    flex-shrink: 0;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
    transition: transform var(--transition-base);
    pointer-events: none;
}

.info-link:hover .info-icon {
    transform: scale(1.1);
    background: rgba(255, 107, 53, 0.25);
}

.info-text {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
    pointer-events: none;
}

.info-text strong {
    color: var(--text-primary);
    font-size: 14px;
    font-weight: 700;
    font-family: var(--font-display);
    letter-spacing: 0.3px;
    line-height: 1.3;
}

.info-text small {
    color: var(--text-tertiary);
    font-size: 11px;
    font-weight: 500;
    line-height: 1.4;
}

.link-arrow {
    font-size: 20px;
    color: var(--primary);
    opacity: 0;
    transform: translateX(-10px);
    transition: all var(--transition-base);
    pointer-events: none;
}

.info-link:hover .link-arrow {
    opacity: 1;
    transform: translateX(0);
}

.info-footer {
    padding: 12px var(--space-md);
    background: rgba(255, 107, 53, 0.03);
    border-top: 1px solid var(--border-color);
    margin-top: var(--space-sm);
}

.info-note {
    font-size: 11px;
    color: var(--text-muted);
    font-weight: 400;
    display: block;
    text-align: center;
    line-height: 1.5;
}

/* ===== MAIN CONTENT SECTIONS ===== */
.main-content {
    display: flex;
    flex-direction: column;
    gap: var(--space-xl);
}

.content-section {
    background: linear-gradient(135deg,
        rgba(26, 26, 26, 0.95),
        rgba(18, 18, 18, 0.95)
    );
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: var(--space-xl);
    backdrop-filter: blur(12px);
    box-shadow: var(--shadow-md);
}

.section-header {
    margin-bottom: var(--space-xl);
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: var(--space-lg);
    flex-wrap: wrap;
}

.section-title-group {
    flex: 1;
    min-width: 250px;
}

.section-title {
    font-family: var(--font-display);
    font-size: 28px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: var(--space-xs);
    letter-spacing: 0.5px;
}

.section-subtitle {
    font-size: 13px;
    color: var(--text-tertiary);
    font-weight: 500;
    margin: 0;
}

/* ===== NEWS SECTION ===== */
.news-list {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.news-item {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    padding: var(--space-md);
    background: rgba(36, 36, 36, 0.3);
    border-left: 3px solid transparent;
    border-radius: 8px;
    transition: all var(--transition-base);
}

.news-item:hover {
    background: rgba(42, 42, 42, 0.5);
    border-left-color: var(--primary);
    transform: translateX(4px);
}

.news-tag {
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    flex-shrink: 0;
}

.notice-tag {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
}

.event-tag {
    background: linear-gradient(135deg, #8b5cf6, #6d28d9);
    color: white;
}

.sale-tag {
    background: linear-gradient(135deg, var(--accent), #f59e0b);
    color: var(--dark-900);
}

.free-tag {
    background: linear-gradient(135deg, var(--success), #10b981);
    color: white;
}

.news-date {
    font-size: 12px;
    color: var(--text-muted);
    font-weight: 600;
    flex-shrink: 0;
    font-family: 'Courier New', monospace;
}

.news-item a {
    flex: 1;
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 600;
    font-size: 13px;
    transition: color var(--transition-fast);
}

.news-item:hover a {
    color: var(--primary);
}

/* ===== RANKINGS SECTION ===== */
.ranking-tabs {
    display: flex;
    gap: var(--space-xs);
    background: rgba(36, 36, 36, 0.4);
    padding: 4px;
    border-radius: 10px;
}

.ranking-tab {
    padding: var(--space-sm) var(--space-md);
    border-radius: 8px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.3px;
    text-transform: uppercase;
    cursor: pointer;
    transition: all var(--transition-base);
    color: var(--text-tertiary);
    border: 1px solid transparent;
}

.ranking-tab:hover {
    color: var(--text-secondary);
    background: rgba(42, 42, 42, 0.6);
}

.ranking-tab.active {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    box-shadow: 0 4px 12px rgba(255, 107, 53, 0.3);
}

.ranking-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0 var(--space-xs);
}

.ranking-table thead tr {
    background: rgba(36, 36, 36, 0.6);
}

.ranking-table th {
    padding: var(--space-md);
    text-align: left;
    font-family: var(--font-display);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1px;
    color: var(--text-tertiary);
    text-transform: uppercase;
    border-bottom: 2px solid var(--border-highlight);
}

.ranking-table tbody tr {
    background: rgba(36, 36, 36, 0.3);
    transition: all var(--transition-base);
    cursor: pointer;
}

.ranking-table tbody tr:hover {
    background: rgba(42, 42, 42, 0.6);
    transform: translateX(4px);
    box-shadow: -3px 0 0 var(--primary);
}

.ranking-table td {
    padding: var(--space-md);
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary);
}

.rank {
    font-family: var(--font-display);
    font-size: 16px;
    font-weight: 700;
    color: var(--text-tertiary);
}

.rank.gold {
    color: var(--accent);
    text-shadow: 0 0 12px var(--accent-glow);
}

.rank.silver {
    color: #c0c0c0;
    text-shadow: 0 0 12px rgba(192, 192, 192, 0.4);
}

.rank.bronze {
    color: #cd7f32;
    text-shadow: 0 0 12px rgba(205, 127, 50, 0.4);
}

.char-name {
    color: var(--primary);
    font-weight: 700;
    font-size: 14px;
}

/* ===== STATS WIDGET ===== */
.stats-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-lg);
    padding: var(--space-md) !important;
}

.stat-box {
    background: rgba(36, 36, 36, 0.4);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 14px;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all var(--transition-base);
    position: relative;
    overflow: hidden;
    min-height: 70px;
}

.stat-box:before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg,
        var(--primary-glow),
        transparent
    );
    opacity: 0;
    transition: opacity var(--transition-base);
}

.stat-box:hover {
    border-color: var(--primary);
    transform: translateY(-2px);
}

.stat-box:hover:before {
    opacity: 0.3;
}

.stat-icon {
    font-size: 24px;
    flex-shrink: 0;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

.stat-info {
    flex: 1;
}

.stat-number {
    font-family: var(--font-display);
    font-size: 20px;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1;
    margin-bottom: 4px;
}

.stat-label {
    font-size: 11px;
    color: var(--text-tertiary);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    line-height: 1.3;
    word-wrap: break-word;
}

.stat-trend {
    position: absolute;
    top: var(--space-xs);
    right: var(--space-xs);
    color: var(--success);
    font-size: 14px;
    font-weight: 700;
}

.stat-online {
    grid-column: 1 / -1;
}

.stat-online .stat-number {
    font-size: 32px;
    color: var(--success);
    text-shadow: 0 0 20px rgba(74, 222, 128, 0.4);
}

/* ===== DISCORD WIDGET ===== */
.discord-link {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    padding: var(--space-lg);
    background: linear-gradient(135deg,
        rgba(88, 101, 242, 0.1),
        rgba(88, 101, 242, 0.05)
    );
    border: 2px solid rgba(88, 101, 242, 0.3);
    border-radius: 12px;
    text-decoration: none;
    transition: all var(--transition-base);
    position: relative;
    overflow: hidden;
}

.discord-link:before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg,
        rgba(88, 101, 242, 0.2),
        transparent
    );
    opacity: 0;
    transition: opacity var(--transition-base);
}

.discord-link:hover {
    border-color: rgba(88, 101, 242, 0.6);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(88, 101, 242, 0.2);
}

.discord-link:hover:before {
    opacity: 1;
}

.discord-badge {
    position: relative;
    width: 56px;
    height: 56px;
    background: rgba(88, 101, 242, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.discord-icon {
    font-size: 28px;
    z-index: 1;
}

.discord-status {
    position: absolute;
    bottom: 4px;
    right: 4px;
    width: 12px;
    height: 12px;
    background: var(--success);
    border: 2px solid var(--dark-700);
    border-radius: 50%;
    animation: pulse-glow 2s ease-in-out infinite;
}

@keyframes pulse-glow {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(74, 222, 128, 0.7);
    }
    50% {
        box-shadow: 0 0 0 6px rgba(74, 222, 128, 0);
    }
}

.discord-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.discord-title {
    font-family: var(--font-display);
    font-size: 16px;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: 0.3px;
}

.discord-subtitle {
    font-size: 11px;
    color: var(--text-tertiary);
    font-weight: 500;
}

.discord-members {
    display: flex;
    gap: var(--space-sm);
    margin-top: 4px;
    font-size: 11px;
}

.member-count {
    color: var(--text-secondary);
    font-weight: 600;
}

.member-online {
    color: var(--success);
    font-weight: 600;
}

.discord-arrow {
    font-size: 24px;
    color: rgba(88, 101, 242, 0.6);
    opacity: 0;
    transform: translateX(-8px);
    transition: all var(--transition-base);
}

.discord-link:hover .discord-arrow {
    opacity: 1;
    transform: translateX(0);
}

/* ===== FOOTER ===== */
.site-footer {
    background: rgba(18, 18, 18, 0.95);
    border-top: 1px solid var(--border-color);
    margin-top: var(--space-2xl);
    backdrop-filter: blur(12px);
}

.footer-content {
    max-width: 1600px;
    margin: 0 auto;
    padding: var(--space-2xl) var(--space-xl);
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: var(--space-2xl);
}

.footer-brand h3 {
    font-family: var(--font-display);
    font-size: 24px;
    font-weight: 700;
    margin-bottom: var(--space-sm);
    color: var(--text-primary);
}

.footer-brand h3 span {
    color: var(--primary);
}

.footer-brand p {
    color: var(--text-tertiary);
    font-size: 13px;
    line-height: 1.6;
}

.footer-column h4 {
    font-family: var(--font-display);
    font-size: 14px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: var(--space-md);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.footer-column a {
    display: block;
    color: var(--text-tertiary);
    text-decoration: none;
    font-size: 13px;
    margin-bottom: var(--space-sm);
    transition: all var(--transition-fast);
    padding-left: 0;
}

.footer-column a:hover {
    color: var(--primary);
    padding-left: var(--space-xs);
}

.footer-bottom {
    border-top: 1px solid var(--border-color);
    padding: var(--space-lg) var(--space-xl);
    text-align: center;
}

.footer-bottom p {
    color: var(--text-muted);
    font-size: 11px;
    margin: 4px 0;
}

/* ===== DASHBOARD & CHARACTER MODALS ===== */
.dashboard-modal {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.dashboard-modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
    cursor: pointer;
}

.dashboard-modal-content {
    position: relative;
    background: linear-gradient(135deg,
        rgba(26, 26, 26, 0.98),
        rgba(18, 18, 18, 0.98)
    );
    border: 1px solid var(--border-highlight);
    border-radius: 16px;
    max-width: 1200px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    padding: var(--space-2xl);
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.7);
    animation: slideUp 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(40px) scale(0.96);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.dashboard-close {
    position: absolute;
    top: var(--space-lg);
    right: var(--space-lg);
    width: 40px;
    height: 40px;
    background: rgba(36, 36, 36, 0.6);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-secondary);
    font-size: 20px;
    cursor: pointer;
    transition: all var(--transition-base);
    display: flex;
    align-items: center;
    justify-content: center;
}

.dashboard-close:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
    transform: rotate(90deg);
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 1400px) {
    .main-container {
        grid-template-columns: 260px 1fr 280px;
        gap: var(--space-md);
    }
}

@media (max-width: 1200px) {
    .main-container {
        grid-template-columns: 1fr;
        max-width: 800px;
    }
    
    .sidebar-left,
    .sidebar-right {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: var(--space-md);
    }
    
    .footer-content {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .site-header {
        flex-direction: column;
        gap: var(--space-md);
    }
    
    .header-nav {
        width: 100%;
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .online-players {
        width: 100%;
        justify-content: center;
    }
    
    .nav-link {
        flex: 1;
        justify-content: center;
    }
    
    .section-header {
        flex-direction: column;
    }
    
    .ranking-tabs {
        width: 100%;
        flex-wrap: wrap;
    }
    
    .stats-content {
        grid-template-columns: 1fr !important;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
    }
    
    .dashboard-modal-content {
        width: 95%;
        padding: var(--space-lg);
    }
}

/* ===== UTILITY CLASSES ===== */
.text-primary { color: var(--text-primary); }
.text-secondary { color: var(--text-secondary); }
.text-tertiary { color: var(--text-tertiary); }
.text-muted { color: var(--text-muted); }

.fw-bold { font-weight: 700; }
.fw-semibold { font-weight: 600; }
.fw-medium { font-weight: 500; }

.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

/* ===== CUSTOM SCROLLBAR ===== */
::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

::-webkit-scrollbar-track {
    background: var(--dark-700);
}

::-webkit-scrollbar-thumb {
    background: var(--border-highlight);
    border-radius: 5px;
    transition: background var(--transition-base);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary);
}

/* ===== SELECTION ===== */
::selection {
    background: var(--primary-glow);
    color: white;
}
