/**
 * Landing Page Styles
 * Cabal Ethereal - Theme Matched
 * Color Scheme: Red (#ec1b1b) + Dark (#0d0b0c)
 */

/* ==================== BASE STYLES ==================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Prompt', sans-serif;
    background: #0d0b0c;
    color: #ffffff;
    overflow-x: hidden;
    line-height: 1.6;
}

body.menu-open {
    overflow: hidden;
}

/* ==================== NAVBAR ==================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 15px 0;
    transition: all 0.3s ease;
    background: transparent;
}

.navbar.scrolled {
    background: rgba(13, 11, 12, 0.98);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.5);
    padding: 10px 0;
    border-bottom: 1px solid #3d2a2a;
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 8px;
    align-items: center;
}

.nav-link {
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    padding: 6px 18px;
    font-size: 15px;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
}

.nav-link:hover,
.nav-link.active {
    color: #ec1b1b;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 5px;
    left: 50%;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #ff5252, #ec1b1b);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 60%;
}

/* Highlight Button (เติมเงิน) */
.nav-highlight {
    background: linear-gradient(135deg, #ff5252 0%, #ec1b1b 100%);
    border-radius: 8px;
    color: #ffffff !important;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(236, 27, 27, 0.3);
}

.nav-highlight:hover {
    background: linear-gradient(135deg, #ec1b1b 0%, #b91c1c 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(236, 27, 27, 0.4);
}

.nav-highlight::after {
    display: none;
}

/* Nav Buttons */
.nav-btn {
    background: linear-gradient(135deg, #ff5252 0%, #ec1b1b 100%);
    border-radius: 8px;
    color: #ffffff !important;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(236, 27, 27, 0.3);
}

.nav-btn:hover {
    background: linear-gradient(135deg, #ec1b1b 0%, #b91c1c 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(236, 27, 27, 0.4);
}

.nav-btn::after {
    display: none;
}

.nav-btn-outline {
    border: 1px solid #3d2a2a;
    border-radius: 8px;
    background: transparent;
}

.nav-btn-outline:hover {
    background: rgba(236, 27, 27, 0.15);
    border-color: #ec1b1b;
    color: #ec1b1b !important;
}

.nav-btn-outline::after {
    display: none;
}

/* Dropdown Menu */
.has-dropdown {
    position: relative;
}

.dropdown-arrow {
    font-size: 10px;
    margin-left: 5px;
    transition: transform 0.3s ease;
}

.has-dropdown.open .dropdown-arrow {
    transform: rotate(180deg);
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    min-width: 200px;
    background: linear-gradient(180deg, #1a1517 0%, #0d0b0c 100%);
    border-radius: 12px;
    padding: 8px;
    list-style: none;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.6),
                0 0 20px rgba(236, 27, 27, 0.1);
    border: 1px solid #3d2a2a;
    backdrop-filter: blur(10px);
}

.dropdown-menu::before {
    content: '';
    position: absolute;
    top: -8px;
    left: 50%;
    transform: translateX(-50%);
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-bottom: 8px solid #3d2a2a;
}

.dropdown-menu::after {
    content: '';
    position: absolute;
    top: -6px;
    left: 50%;
    transform: translateX(-50%);
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-bottom: 6px solid #1a1517;
}

.has-dropdown.open .dropdown-menu,
.has-dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(5px);
}

.dropdown-menu li {
    margin: 2px 0;
}

.dropdown-menu li a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    font-size: 14px;
    font-weight: 400;
    transition: all 0.2s ease;
    border-radius: 8px;
    position: relative;
    overflow: hidden;
}

.dropdown-menu li a::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(180deg, #ff5252, #ec1b1b);
    transform: scaleY(0);
    transition: transform 0.2s ease;
    border-radius: 0 3px 3px 0;
}

.dropdown-menu li a:hover {
    background: rgba(236, 27, 27, 0.12);
    color: #ffffff;
    padding-left: 20px;
}

.dropdown-menu li a:hover::before {
    transform: scaleY(1);
}

/* Mobile Toggle */
.mobile-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    z-index: 1001;
}

.mobile-toggle span {
    width: 25px;
    height: 2px;
    background: #ffffff;
    transition: all 0.3s ease;
}

.mobile-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobile-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* Mobile Menu Overlay */
.mobile-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 998;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.mobile-overlay.active {
    display: block;
    opacity: 1;
}

/* Mobile Menu Sidebar */
.mobile-menu {
    display: block;
    position: fixed;
    top: 0;
    right: -280px;
    width: 280px;
    height: 100%;
    background: linear-gradient(180deg, rgba(13, 11, 12, 0.98) 0%, rgba(25, 18, 18, 0.98) 100%);
    backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 20px 15px 80px;
    transition: right 0.3s ease;
    overflow-y: auto;
    border-left: 1px solid #3d2a2a;
    box-shadow: -5px 0 30px rgba(0, 0, 0, 0.5);
}

.mobile-menu.active {
    right: 0;
}

.mobile-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(61, 42, 42, 0.6);
    border: 1px solid #3d2a2a;
    border-radius: 8px;
    color: #b8a080;
    font-size: 28px;
    cursor: pointer;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.mobile-close:hover {
    color: #c9a227;
    border-color: #c9a227;
    background: rgba(61, 42, 42, 0.9);
}

.mobile-nav {
    list-style: none;
    padding: 0;
    margin: 0;
}

.mobile-nav li {
    margin-bottom: 8px;
}

.mobile-nav a {
    color: #b8a080;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    display: block;
    padding: 14px 18px;
    background: rgba(61, 42, 42, 0.5);
    border-radius: 8px;
    transition: all 0.3s ease;
    border: 1px solid #3d2a2a;
}

.mobile-nav a:hover {
    background: rgba(61, 42, 42, 0.9);
    border-color: #c9a227;
    color: #c9a227;
}

/* Mobile Dropdown Menu */
.mobile-has-dropdown {
    position: relative;
}

.mobile-dropdown-toggle {
    display: flex !important;
    justify-content: space-between;
    align-items: center;
}

.mobile-dropdown-arrow {
    font-size: 10px;
    transition: transform 0.3s ease;
}

.mobile-has-dropdown.open .mobile-dropdown-arrow {
    transform: rotate(180deg);
}

.mobile-dropdown-menu {
    list-style: none;
    padding: 0;
    margin: 8px 0 0 0;
    display: none;
}

.mobile-has-dropdown.open .mobile-dropdown-menu {
    display: block;
}

.mobile-dropdown-menu li {
    margin-bottom: 6px;
}

.mobile-dropdown-menu a {
    color: #9a8a70;
    font-size: 13px;
    padding: 10px 18px 10px 30px;
    background: rgba(40, 30, 30, 0.6);
    border: 1px solid #2d1f1f;
    border-radius: 6px;
}

.mobile-dropdown-menu a:hover {
    background: rgba(61, 42, 42, 0.9);
    border-color: #c9a227;
    color: #c9a227;
}

/* Mobile Discord Button */
.mobile-discord-btn {
    display: none;
    position: fixed;
    bottom: 80px;
    right: 15px;
    z-index: 1000;
    transition: transform 0.3s ease;
}

.mobile-discord-btn img {
    width: 120px;
    height: auto;
    display: block;
}

.mobile-discord-btn:hover {
    transform: scale(1.1);
}

@media (max-width: 768px) {
    .mobile-discord-btn {
        display: block;
    }
}

/* Mobile Bottom Action Buttons - Fixed bar at bottom */
.mobile-bottom-btns {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(180deg, rgba(13, 11, 12, 0.98) 0%, rgba(20, 15, 15, 0.98) 100%);
    padding: 12px 10px;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 8px;
    z-index: 1001;
    border-top: 1px solid #3d2a2a;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.5);
}

@media (max-width: 768px) {
    .mobile-bottom-btns {
        display: flex;
    }
}

.mobile-action-btn {
    display: inline-block;
    padding: 10px 14px;
    text-align: center;
    font-size: 12px;
    font-weight: 600;
    text-decoration: none;
    border-radius: 6px;
    transition: all 0.3s ease;
    background: rgba(61, 42, 42, 0.6);
    color: #b8a080;
    border: 1px solid #3d2a2a;
    white-space: nowrap;
}

.mobile-action-btn:hover,
.mobile-action-btn:active {
    color: #fff;
    background: rgba(61, 42, 42, 0.9);
    border-color: #c9a227;
}

.mobile-action-btn.btn-register {
    background: linear-gradient(180deg, #c9a227 0%, #8b6914 100%);
    color: #0d0b0c;
    font-weight: 700;
    padding: 10px 18px;
    border: 2px solid #d4af37;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(201, 162, 39, 0.3), inset 0 1px 0 rgba(255,255,255,0.2);
    text-shadow: 0 1px 0 rgba(255,255,255,0.2);
}

.mobile-action-btn.btn-register:hover {
    background: linear-gradient(180deg, #d4af37 0%, #a08020 100%);
    box-shadow: 0 4px 15px rgba(201, 162, 39, 0.5), inset 0 1px 0 rgba(255,255,255,0.3);
}

.mobile-menu-dots {
    font-size: 20px;
    padding: 8px 12px;
    cursor: pointer;
    color: #b8a080;
    background: rgba(61, 42, 42, 0.6);
    border: 1px solid #3d2a2a;
    border-radius: 6px;
    transition: all 0.3s ease;
    margin-left: auto;
}

.mobile-menu-dots:hover {
    color: #c9a227;
    border-color: #c9a227;
}

/* ==================== HERO SECTION ==================== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    z-index: -1;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg,
        transparent 0%,
        rgba(13, 11, 12, 0.5) 70%,
        #0d0b0c 100%
    );
}

/* Particles */
.particles {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    overflow: hidden;
    pointer-events: none;
}

.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: rgba(236, 27, 27, 0.6);
    border-radius: 50%;
    animation: float-particle 15s infinite ease-in-out;
}

.particle:nth-child(1) { left: 10%; animation-delay: 0s; animation-duration: 12s; }
.particle:nth-child(2) { left: 30%; animation-delay: 2s; animation-duration: 14s; background: rgba(255, 82, 82, 0.5); }
.particle:nth-child(3) { left: 50%; animation-delay: 4s; animation-duration: 11s; }
.particle:nth-child(4) { left: 70%; animation-delay: 1s; animation-duration: 13s; background: rgba(251, 191, 36, 0.5); }
.particle:nth-child(5) { left: 90%; animation-delay: 3s; animation-duration: 15s; }

@keyframes float-particle {
    0%, 100% {
        transform: translateY(100vh) scale(0);
        opacity: 0;
    }
    10% {
        opacity: 1;
        transform: translateY(80vh) scale(1);
    }
    90% {
        opacity: 1;
        transform: translateY(10vh) scale(1);
    }
    100% {
        opacity: 0;
        transform: translateY(0) scale(0);
    }
}

/* Hero Content */
.hero-content {
    position: relative;
    z-index: 10;
    text-align: center;
    padding: 0 20px;
    max-width: 1000px;
    margin-top: 50px;
}

/* Trophy */
.trophy-container {
    position: relative;
    width: 120px;
    height: 120px;
    margin: 0 auto 30px;
}

.trophy-glow {
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(236, 27, 27, 0.3) 0%, transparent 70%);
    border-radius: 50%;
    animation: trophy-pulse 2s infinite ease-in-out;
}

@keyframes trophy-pulse {
    0%, 100% { transform: scale(1); opacity: 0.5; }
    50% { transform: scale(1.2); opacity: 0.8; }
}

/* Hero Logo */
.hero-logo {
    position: relative;
    margin: 0 auto 30px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-logo-img {
    height: 150px;
    width: auto;
    filter: drop-shadow(0 0 15px rgba(236, 27, 27, 0.3))
            drop-shadow(0 0 30px rgba(236, 27, 27, 0.15));
    animation: logo-glow 3s infinite ease-in-out;
}

@keyframes logo-glow {
    0%, 100% {
        filter: drop-shadow(0 0 15px rgba(236, 27, 27, 0.3))
                drop-shadow(0 0 30px rgba(236, 27, 27, 0.15));
        transform: scale(1);
    }
    50% {
        filter: drop-shadow(0 0 20px rgba(236, 27, 27, 0.4))
                drop-shadow(0 0 40px rgba(236, 27, 27, 0.2));
        transform: scale(1.02);
    }
}

/* Subtitle */
.hero-subtitle {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.8);
    letter-spacing: 3px;
    margin-bottom: 20px;
    text-transform: uppercase;
    font-weight: 400;
}

.hero-subtitle::before,
.hero-subtitle::after {
    content: '—';
    margin: 0 15px;
    color: #ec1b1b;
}

/* Online Players Counter */
.online-counter {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(236, 27, 27, 0.4);
    border-radius: 50px;
    padding: 10px 25px;
    margin-bottom: 25px;
    animation: fadeInUp 0.8s ease forwards;
    animation-delay: 0.25s;
    opacity: 0;
}

.online-dot {
    width: 10px;
    height: 10px;
    background: #22c55e;
    border-radius: 50%;
    animation: pulse-dot 2s infinite;
    box-shadow: 0 0 10px #22c55e;
}

@keyframes pulse-dot {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.2); opacity: 0.7; }
}

.online-label {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
    font-weight: 400;
}

.online-count {
    font-size: 18px;
    font-weight: 700;
    color: #22c55e;
    min-width: 40px;
    text-align: center;
}

/* Main Title */
.hero-title {
    margin-bottom: 25px;
}

.title-line {
    display: block;
    font-family: 'Cinzel', serif;
    font-size: clamp(36px, 8vw, 80px);
    font-weight: 700;
    line-height: 1.1;
    text-transform: uppercase;
    letter-spacing: 5px;
    background: linear-gradient(180deg,
        #ffffff 0%,
        #ff8a8a 20%,
        #ff5252 40%,
        #ec1b1b 60%,
        #b91c1c 80%,
        #7f1d1d 100%
    );
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: none;
    filter: drop-shadow(0 2px 10px rgba(236, 27, 27, 0.5));
    animation: title-glow 3s infinite ease-in-out;
}

@keyframes title-glow {
    0%, 100% { filter: drop-shadow(0 2px 10px rgba(236, 27, 27, 0.5)); }
    50% { filter: drop-shadow(0 2px 25px rgba(236, 27, 27, 0.8)); }
}

/* Tagline - Online Status */
.hero-tagline {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-size: clamp(14px, 2.5vw, 18px);
    color: rgba(255, 255, 255, 0.95);
    letter-spacing: 1px;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.15) 0%, rgba(13, 11, 12, 0.8) 100%);
    padding: 12px 28px;
    border-radius: 50px;
    border: 1px solid rgba(16, 185, 129, 0.3);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
}

.hero-tagline::before {
    content: '';
    width: 10px;
    height: 10px;
    background: #10b981;
    border-radius: 50%;
    box-shadow: 0 0 10px #10b981, 0 0 20px #10b981;
    animation: pulse-dot 2s ease-in-out infinite;
}

.hero-tagline::after {
    content: none;
}

@keyframes pulse-dot {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
        box-shadow: 0 0 10px #10b981, 0 0 20px #10b981;
    }
    50% {
        opacity: 0.7;
        transform: scale(1.2);
        box-shadow: 0 0 15px #10b981, 0 0 30px #10b981;
    }
}

.online-count {
    color: #10b981;
    font-weight: 800;
    font-size: 1.3em;
    text-shadow: 0 0 15px rgba(16, 185, 129, 0.6);
}

/* ==================== SERVER LAUNCH COUNTDOWN ==================== */
.countdown-section {
    margin-top: 25px;
    text-align: center;
}

.countdown-title {
    font-size: clamp(14px, 2vw, 16px);
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 600;
}

.countdown-container {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(0, 0, 0, 0.5);
    padding: 15px 30px;
    border-radius: 12px;
    border: 1px solid rgba(16, 185, 129, 0.4);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
}

.countdown-label {
    font-size: clamp(10px, 1.5vw, 12px);
    color: rgba(255, 255, 255, 0.6);
    text-transform: uppercase;
    margin-top: 4px;
}

.countdown-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 50px;
}

.countdown-value {
    font-size: clamp(24px, 4vw, 36px);
    font-weight: 800;
    color: #10b981;
    text-shadow: 0 0 15px rgba(16, 185, 129, 0.6);
    font-family: 'Orbitron', monospace;
    line-height: 1;
}

.countdown-unit {
    font-size: clamp(10px, 1.5vw, 12px);
    color: rgba(255, 255, 255, 0.6);
    text-transform: uppercase;
    margin-top: 4px;
}

.countdown-separator {
    font-size: clamp(20px, 3vw, 28px);
    font-weight: 700;
    color: rgba(255, 255, 255, 0.4);
    margin-bottom: 15px;
}

@media (max-width: 480px) {
    .countdown-container {
        gap: 4px;
        padding: 10px 16px;
    }

    .countdown-item {
        min-width: 40px;
    }

    .countdown-separator {
        margin-bottom: 12px;
    }
}

/* ==================== CTA BUTTONS ==================== */
.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.btn-image {
    display: inline-block;
    transition: transform 0.3s ease, filter 0.3s ease;
}

.btn-image img {
    height: 120px;
    width: auto;
    display: block;
}

.btn-image:hover {
    transform: scale(1.05);
    filter: brightness(1.2);
}

.btn-hexagon {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 18px 50px;
    font-size: 16px;
    font-weight: 600;
    font-family: 'Prompt', sans-serif;
    text-decoration: none;
    color: #ffffff;
    background: transparent;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 200px;
}

/* Hexagon shape with pointed edges */
.btn-hexagon::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: -1;
    clip-path: polygon(
        0% 50%,
        8% 0%,
        92% 0%,
        100% 50%,
        92% 100%,
        8% 100%
    );
    transition: all 0.3s ease;
}

/* Border effect using ::after */
.btn-hexagon::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: -2;
    clip-path: polygon(
        0% 50%,
        6% -4%,
        94% -4%,
        100% 50%,
        94% 104%,
        6% 104%
    );
    transition: all 0.3s ease;
}

.btn-hexagon:hover {
    transform: translateY(-3px);
}

/* Gold Button */
.btn-gold::before {
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
}

.btn-gold::after {
    background: linear-gradient(135deg, #d97706 0%, #b45309 100%);
}

.btn-gold {
    color: #1a0a0a;
    text-shadow: 0 1px 1px rgba(255, 255, 255, 0.2);
}

.btn-gold:hover {
}

.btn-gold:hover::before {
    background: linear-gradient(135deg, #fcd34d 0%, #fbbf24 100%);
}

.btn-gold:hover::after {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
}

/* Red Button */
.btn-red::before {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
}

.btn-red::after {
    background: linear-gradient(135deg, #b91c1c 0%, #991b1b 100%);
}

.btn-red {
    color: #ffffff;
}

.btn-red:hover {
}

.btn-red:hover::before {
    background: linear-gradient(135deg, #f87171 0%, #ef4444 100%);
}

.btn-red:hover::after {
    background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
}

/* Blue/Cyan Button - เติมเงิน */
.btn-dark::before {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
}

.btn-dark::after {
    background: linear-gradient(135deg, #1d4ed8 0%, #1e40af 100%);
}

.btn-dark {
    color: #ffffff;
}

.btn-dark:hover {
}

.btn-dark:hover::before {
    background: linear-gradient(135deg, #60a5fa 0%, #3b82f6 100%);
}

.btn-dark:hover::after {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
}

.btn-text {
    position: relative;
    z-index: 1;
}

/* ==================== SCROLL INDICATOR ==================== */
.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
}

.scroll-arrow {
    display: block;
    width: 30px;
    height: 30px;
    border-right: 2px solid rgba(236, 27, 27, 0.6);
    border-bottom: 2px solid rgba(236, 27, 27, 0.6);
    transform: rotate(45deg);
    animation: scroll-bounce 2s infinite;
}

@keyframes scroll-bounce {
    0%, 100% { margin-top: 0; opacity: 0.5; }
    50% { margin-top: 10px; opacity: 1; }
}

@media (max-width: 768px) {
    .scroll-indicator {
        bottom: 100px;
    }
}

/* ==================== RANKING SECTION ==================== */
.ranking-section {
    padding: 100px 40px;
    background: #0d0b0c;
    border-top: 1px solid #3d2a2a;
}

.ranking-container {
    max-width: 1000px;
    margin: 0 auto;
}

/* Section Header */
.section-header {
    text-align: center;
    margin-bottom: 40px;
}

.section-title {
    font-family: 'Cinzel', serif;
    font-size: 36px;
    font-weight: 700;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-bottom: 10px;
    letter-spacing: 3px;
}

.title-icon {
    width: 40px;
    height: 40px;
    color: #ec1b1b;
}

.section-subtitle {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.6);
}

/* Ranking Controls */
.ranking-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    gap: 20px;
}

/* Nation Filter */
.nation-filter {
    display: flex;
    gap: 10px;
}

.nation-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: #1a1517;
    border: 1px solid #3d2a2a;
    border-radius: 8px;
    color: rgba(255, 255, 255, 0.7);
    font-family: 'Prompt', sans-serif;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.nation-btn:hover {
    border-color: rgba(255, 255, 255, 0.3);
    color: #ffffff;
}

.nation-icon {
    font-size: 16px;
}

/* Capella - Blue theme */
.nation-btn.capella.active {
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    border-color: #3b82f6;
    color: #ffffff;
    box-shadow: 0 0 15px rgba(59, 130, 246, 0.3);
}

.nation-btn.capella:hover:not(.active) {
    border-color: #3b82f6;
    color: #3b82f6;
}

/* Procyon - Purple theme */
.nation-btn.procyon.active {
    background: linear-gradient(135deg, #a855f7 0%, #7c3aed 100%);
    border-color: #a855f7;
    color: #ffffff;
    box-shadow: 0 0 15px rgba(168, 85, 247, 0.3);
}

.nation-btn.procyon:hover:not(.active) {
    border-color: #a855f7;
    color: #a855f7;
}

/* Ranking Tabs */
.ranking-tabs {
    display: flex;
    justify-content: center;
    gap: 10px;
}

.rank-tab {
    padding: 12px 30px;
    background: #1a1517;
    border: 1px solid #3d2a2a;
    border-radius: 8px;
    color: rgba(255, 255, 255, 0.7);
    font-family: 'Prompt', sans-serif;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.rank-tab:hover {
    border-color: #ec1b1b;
    color: #ffffff;
}

.rank-tab.active {
    background: linear-gradient(135deg, #ec1b1b 0%, #b91c1c 100%);
    border-color: #ec1b1b;
    color: #ffffff;
}

/* War Class Filter */
.war-class-filter {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    justify-content: flex-end;
    align-items: center;
}

.war-class-filter.hidden {
    display: none;
}

.class-filter-btn {
    padding: 6px 12px;
    background: #1a1517;
    border: 1px solid #3d2a2a;
    border-radius: 6px;
    color: rgba(255, 255, 255, 0.6);
    font-family: 'Prompt', sans-serif;
    font-size: 11px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    min-width: 36px;
    text-align: center;
}

.class-filter-btn:hover {
    border-color: #ec1b1b;
    color: #ffffff;
    background: #252022;
}

.class-filter-btn.active {
    background: linear-gradient(135deg, #ec1b1b 0%, #b91c1c 100%);
    border-color: #ec1b1b;
    color: #ffffff;
}

.class-filter-btn[data-class="1"] { --class-color: #ef4444; }
.class-filter-btn[data-class="2"] { --class-color: #f97316; }
.class-filter-btn[data-class="3"] { --class-color: #8b5cf6; }
.class-filter-btn[data-class="4"] { --class-color: #22c55e; }
.class-filter-btn[data-class="5"] { --class-color: #3b82f6; }
.class-filter-btn[data-class="6"] { --class-color: #eab308; }
.class-filter-btn[data-class="7"] { --class-color: #dc2626; }
.class-filter-btn[data-class="8"] { --class-color: #06b6d4; }
.class-filter-btn[data-class="9"] { --class-color: #6366f1; }

.class-filter-btn[data-class]:not([data-class="all"]).active {
    background: var(--class-color);
    border-color: var(--class-color);
    color: #ffffff;
}

.class-filter-btn[data-class]:not([data-class="all"]):hover:not(.active) {
    border-color: var(--class-color);
    color: var(--class-color);
}

/* Ranking Table */
.ranking-table-wrapper {
    background: #1a1517;
    border-radius: 16px;
    border: 1px solid #3d2a2a;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    max-height: 500px;
    overflow-y: auto;
}

.ranking-table {
    width: 100%;
    border-collapse: collapse;
}

.ranking-table thead {
    position: sticky;
    top: 0;
    z-index: 10;
    background: linear-gradient(180deg, #252022 0%, #1a1517 100%);
}

.ranking-table th {
    padding: 16px 20px;
    text-align: left;
    font-size: 13px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.7);
    text-transform: uppercase;
    letter-spacing: 1px;
    border-bottom: 1px solid #3d2a2a;
}

.ranking-table td {
    padding: 14px 20px;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.9);
    border-bottom: 1px solid rgba(61, 42, 42, 0.5);
}

.ranking-table tbody tr {
    transition: all 0.2s ease;
}

.ranking-table tbody tr:hover {
    background: rgba(236, 27, 27, 0.08);
}

.ranking-table tbody tr:last-child td {
    border-bottom: none;
}

/* Rank Badge */
.rank-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 14px;
    background: #252022;
    color: rgba(255, 255, 255, 0.7);
}

.rank-badge.rank-1 {
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
    color: #1a0a0a;
    box-shadow: 0 0 15px rgba(251, 191, 36, 0.4);
}

.rank-badge.rank-2 {
    background: linear-gradient(135deg, #94a3b8 0%, #64748b 100%);
    color: #1a1517;
    box-shadow: 0 0 10px rgba(148, 163, 184, 0.3);
}

.rank-badge.rank-3 {
    background: linear-gradient(135deg, #cd7f32 0%, #a0522d 100%);
    color: #1a1517;
    box-shadow: 0 0 10px rgba(205, 127, 50, 0.3);
}

/* Top 3 Row Highlights */
.rank-gold {
    background: linear-gradient(90deg, rgba(251, 191, 36, 0.1) 0%, transparent 50%);
}

.rank-silver {
    background: linear-gradient(90deg, rgba(148, 163, 184, 0.08) 0%, transparent 50%);
}

.rank-bronze {
    background: linear-gradient(90deg, rgba(205, 127, 50, 0.08) 0%, transparent 50%);
}

/* Nation Icon */
.nation-icon {
    width: 25px;
    height: 25px;
    vertical-align: middle;
    margin-left: 6px;
    border-radius: 2px;
}

.nation-icon-gm {
    width: 30px;
    height: 30px;
}

/* Column Widths */
.col-rank { width: 80px; text-align: center; }
.col-name { width: auto; }
.col-class { width: 140px; }
.col-level { width: 80px; text-align: center; }
.col-combat { width: 100px; text-align: right; }
.col-alz { width: 120px; text-align: right; color: #fbbf24; font-weight: 600; }
.col-exp { width: 100px; text-align: right; color: #60a5fa; font-weight: 600; }
.col-warpoint { width: 100px; text-align: right; color: #fbbf24; font-weight: 600; }
.col-playtime { width: 140px; text-align: right; color: #34d399; font-weight: 600; }
.col-status { width: 90px; text-align: center; }
.col-guild { width: 120px; }

/* Online/Offline Status */
.status-online,
.status-offline {
    display: inline-block;
    width: 70px;
    padding: 3px 0;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    text-align: center;
}

.status-online {
    background: rgba(52, 211, 153, 0.2);
    color: #34d399;
    border: 1px solid rgba(52, 211, 153, 0.4);
}

.status-offline {
    background: rgba(107, 114, 128, 0.2);
    color: #9ca3af;
    border: 1px solid rgba(107, 114, 128, 0.4);
}

.ranking-table th.col-rank,
.ranking-table td.col-rank {
    text-align: center;
}

.ranking-table th.col-level,
.ranking-table td.col-level {
    text-align: center;
}

.ranking-table th.col-combat,
.ranking-table td.col-combat,
.ranking-table th.col-alz,
.ranking-table td.col-alz,
.ranking-table th.col-exp,
.ranking-table td.col-exp,
.ranking-table th.col-warpoint,
.ranking-table td.col-warpoint,
.ranking-table th.col-playtime,
.ranking-table td.col-playtime {
    text-align: right;
}

/* Loading & Empty States */
.loading-row,
.empty-row,
.error-row {
    background: transparent !important;
}

.loading-cell,
.empty-cell,
.error-cell {
    padding: 60px 20px !important;
    text-align: center !important;
    color: rgba(255, 255, 255, 0.6);
    font-size: 15px;
}

.loading-cell {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid rgba(236, 27, 27, 0.2);
    border-top-color: #ec1b1b;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.error-cell {
    color: #ff6b6b;
}

/* Player Tooltip */
.player-tooltip {
    position: fixed;
    z-index: 9999;
    background: linear-gradient(180deg, #1e1a1b 0%, #0d0b0c 100%);
    border: 1px solid #fbbf24;
    border-radius: 12px;
    padding: 0;
    min-width: 280px;
    max-width: 320px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.8),
                0 0 20px rgba(251, 191, 36, 0.15);
    pointer-events: none;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.player-tooltip.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Mobile popup overlay */
.tooltip-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    z-index: 9998;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease;
}

.tooltip-overlay.visible {
    opacity: 1;
    visibility: visible;
}

/* Mobile popup tooltip */
.player-tooltip.mobile-popup {
    pointer-events: auto;
    max-width: 90vw;
    max-height: 80vh;
    overflow-y: auto;
}

.player-tooltip.mobile-popup.visible {
    transform: translate(-50%, -50%);
}

.tooltip-header {
    padding: 14px 16px;
    border-bottom: 1px solid rgba(251, 191, 36, 0.3);
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.tooltip-name {
    font-size: 16px;
    font-weight: 600;
    color: #ffffff;
}

.tooltip-nation {
    font-size: 14px;
    opacity: 0.9;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.tooltip-nation .nation-icon {
    width: 16px;
    height: 16px;
    margin-left: 0;
}

.tooltip-section {
    padding: 14px 16px;
    border-bottom: 1px solid rgba(61, 42, 42, 0.5);
}

.tooltip-section:last-child {
    border-bottom: none;
    padding-bottom: 16px;
}

.tooltip-section-title {
    font-size: 11px;
    font-weight: 600;
    color: #fbbf24;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 10px;
    padding-bottom: 6px;
    border-bottom: 1px solid rgba(251, 191, 36, 0.2);
}

.tooltip-stat {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 4px 0;
}

.tooltip-stat-label {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.6);
}

.tooltip-stat-value {
    font-size: 13px;
    font-weight: 600;
    color: #ffffff;
}

/* Nation-specific tooltip headers */
.tooltip-header.nation-capella {
    background: linear-gradient(90deg, rgba(96, 165, 250, 0.15) 0%, transparent 100%);
}

.tooltip-header.nation-procyon {
    background: linear-gradient(90deg, rgba(248, 113, 113, 0.15) 0%, transparent 100%);
}

/* Lord badges */
.lord-badge {
    font-size: 10px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-left: auto;
}

.lord-badge.lord-1 {
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
    color: #000;
    box-shadow: 0 0 10px rgba(251, 191, 36, 0.5);
}

.lord-badge.lord-2 {
    background: linear-gradient(135deg, #c0c0c0 0%, #a0a0a0 100%);
    color: #000;
}

.lord-badge.lord-3 {
    background: linear-gradient(135deg, #cd7f32 0%, #b87333 100%);
    color: #fff;
}

/* Stat grid layout */
.tooltip-stat-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.tooltip-stat-grid .tooltip-stat {
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
    background: rgba(0, 0, 0, 0.2);
    padding: 8px 12px;
    border-radius: 6px;
}

.tooltip-stat-grid .tooltip-stat-label {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.tooltip-stat-grid .tooltip-stat-value {
    font-size: 16px;
    font-weight: 700;
}

.tooltip-stat-value.highlight {
    color: #fbbf24;
    font-size: 18px;
}

/* Ranking specific styles */
.tooltip-stat-value.rank-today {
    color: #4ade80;
}

.tooltip-stat-value.rank-yesterday {
    color: #94a3b8;
}

/* Power ranking specific styles */
.tooltip-stat-value.attack-value {
    color: #f87171;
}

.tooltip-stat-value.defense-value {
    color: #60a5fa;
}

.tooltip-stat-value.honor-title {
    color: #c084fc;
    font-size: 14px;
}

.tooltip-stat-value.transcender-value {
    color: #fb923c;
    font-size: 18px;
    font-weight: 700;
}

/* Guild Tooltip */
.guild-tooltip {
    border-color: #a855f7;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.8),
                0 0 20px rgba(168, 85, 247, 0.15);
}

.guild-tooltip .tooltip-section-title {
    color: #a855f7;
}

.guild-level-badge {
    font-size: 11px;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 4px;
    background: linear-gradient(135deg, #a855f7 0%, #7c3aed 100%);
    color: #fff;
    margin-left: auto;
}

.guild-tooltip .tooltip-header {
    border-bottom-color: rgba(168, 85, 247, 0.3);
}

/* ==================== BRINGER RANKING ==================== */
.bringer-section-header {
    background: transparent !important;
}

.bringer-section-header td {
    padding: 20px 15px 10px !important;
    text-align: center;
    border-bottom: none !important;
}

.bringer-title {
    font-size: 18px;
    font-weight: 700;
    letter-spacing: 1px;
}

.bringer-title.luminous {
    color: #60a5fa;
    text-shadow: 0 0 20px rgba(96, 165, 250, 0.5);
}

.bringer-title.storm {
    color: #f87171;
    text-shadow: 0 0 20px rgba(248, 113, 113, 0.5);
}

.bringer-nation {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.5);
    margin-left: 8px;
}

.luminous-header td {
    border-top: 2px solid rgba(96, 165, 250, 0.3) !important;
}

.storm-header td {
    border-top: 2px solid rgba(248, 113, 113, 0.3) !important;
    margin-top: 20px;
}

.luminous-row {
    background: linear-gradient(90deg, rgba(96, 165, 250, 0.05) 0%, transparent 50%);
}

.luminous-row:hover {
    background: linear-gradient(90deg, rgba(96, 165, 250, 0.15) 0%, rgba(96, 165, 250, 0.05) 50%, transparent 100%);
}

.storm-row {
    background: linear-gradient(90deg, rgba(248, 113, 113, 0.05) 0%, transparent 50%);
}

.storm-row:hover {
    background: linear-gradient(90deg, rgba(248, 113, 113, 0.15) 0%, rgba(248, 113, 113, 0.05) 50%, transparent 100%);
}

.empty-bringer {
    opacity: 0.5;
}

.empty-bringer-cell {
    text-align: center !important;
    font-style: italic;
    color: rgba(255, 255, 255, 0.4);
    padding: 20px 15px !important;
}

.bringer-week-info td {
    text-align: center !important;
    padding: 15px !important;
    color: rgba(255, 255, 255, 0.4);
    font-size: 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.no-data-message {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 40px 20px;
}

.no-data-icon {
    font-size: 48px;
    opacity: 0.5;
}

.no-data-message span:not(.no-data-icon) {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.6);
}

.no-data-message small {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.4);
}

/* ==================== WAR RANKING BY CLASS ==================== */
.war-class-header {
    background: transparent !important;
}

.war-class-header td {
    padding: 18px 15px 10px !important;
    text-align: left;
    border-bottom: none !important;
    border-top: none !important;
}

.war-class-icon {
    font-size: 20px;
    margin-right: 8px;
}

.war-class-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--class-color, #fff);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.war-class-count {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.5);
    margin-left: 8px;
}

.war-row {
    background: linear-gradient(90deg, rgba(var(--class-color-rgb, 255, 255, 255), 0.03) 0%, transparent 50%);
}

.war-row:hover {
    background: linear-gradient(90deg, rgba(var(--class-color-rgb, 255, 255, 255), 0.1) 0%, transparent 50%);
}

.war-row td {
    border-left: none;
}

.war-row td:first-child {
    border-left: none;
}

.col-warpoint {
    color: #fbbf24;
    font-weight: 600;
}

/* ==================== CHARACTER SECTION ==================== */
.character-section {
    background: linear-gradient(180deg, #0d0b0c 0%, #1a1212 30%, #1a1212 70%, #0d0b0c 100%);
    padding: 60px 40px 40px;
    position: relative;
    overflow: hidden;
    min-height: 800px;
}

.character-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(ellipse at 20% 60%, rgba(236, 27, 27, 0.08) 0%, transparent 50%);
    pointer-events: none;
}

.character-container {
    max-width: 1400px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.character-title {
    font-family: 'Cinzel', serif;
    font-size: 3.5rem;
    font-weight: 700;
    color: #fff;
    text-align: center;
    margin-bottom: 15px;
    letter-spacing: 8px;
    text-shadow: 0 0 40px rgba(236, 27, 27, 0.3);
    margin-left: 35%;
    padding-right: 40px;
}

.character-subtitle {
    text-align: center;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    line-height: 1.8;
    margin-left: 35%;
    margin-bottom: 30px;
    padding-right: 40px;
}

/* Character Showcase */
.character-showcase {
    display: block;
    position: relative;
    min-height: 400px;
    margin-bottom: 20px;
}

.character-featured {
    position: absolute;
    left: 0;
    bottom: -320px;
    width: 530px;
    z-index: 2;
    pointer-events: none;
}

.character-featured img {
    width: 100%;
    height: auto;
    object-fit: contain;
    object-position: bottom center;
    filter: drop-shadow(0 0 60px rgba(236, 27, 27, 0.5));
    transition: opacity 0.3s ease;
}

.character-info {
    position: relative;
    z-index: 3;
    text-align: center;
    margin-left: 35%;
    padding-right: 40px;
}

.featured-name {
    font-family: 'Cinzel', serif;
    font-size: 2.5rem;
    font-weight: 700;
    color: #fbbf24;
    margin-bottom: 20px;
    letter-spacing: 4px;
    text-shadow: 0 0 20px rgba(251, 191, 36, 0.4);
}

.featured-desc {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1rem;
    line-height: 1.8;
    margin-bottom: 15px;
    margin: 0 auto 15px;
    max-width: 500px;
}

/* Stat Bars */
.featured-stats-bars {
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-width: 350px;
    margin: 0 auto;
}

.stat-bar-item {
    display: flex;
    align-items: center;
    gap: 12px;
}

.stat-label {
    font-family: 'Cinzel', serif;
    font-size: 0.8rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
    width: 35px;
    text-align: right;
}

.stat-bar-track {
    flex: 1;
    height: 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    overflow: hidden;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.3);
}

.stat-bar-fill {
    height: 100%;
    border-radius: 4px;
    transition: width 0.5s ease;
    box-shadow: 0 0 10px currentColor;
}

.stat-bar-fill.str-fill {
    background: linear-gradient(90deg, #dc2626, #ef4444);
    box-shadow: 0 0 10px rgba(220, 38, 38, 0.5);
}

.stat-bar-fill.int-fill {
    background: linear-gradient(90deg, #7c3aed, #a78bfa);
    box-shadow: 0 0 10px rgba(124, 58, 237, 0.5);
}

.stat-bar-fill.dex-fill {
    background: linear-gradient(90deg, #059669, #34d399);
    box-shadow: 0 0 10px rgba(5, 150, 105, 0.5);
}

.stat-value {
    font-family: 'Consolas', 'Monaco', monospace;
    font-size: 0.85rem;
    color: #fbbf24;
    width: 40px;
    text-align: left;
}

/* Character Selection Row */
.character-selection {
    display: flex;
    justify-content: center;
    gap: 8px;
    flex-wrap: nowrap;
    padding: 20px 0;
    position: relative;
    z-index: 5;
}

.char-select-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 8px 5px;
    border-radius: 8px;
    background: transparent;
    border: 2px solid transparent;
    width: 95px;
    height: 95px;
}

.char-select-item:hover {
    transform: translateY(-5px);
    border-color: rgba(236, 27, 27, 0.4);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.char-select-item.active {
    border-color: rgba(251, 191, 36, 0.6);
    background: rgba(251, 191, 36, 0.08);
    box-shadow: 0 0 20px rgba(251, 191, 36, 0.1);
}

.char-select-item.active .char-portrait img {
    filter: drop-shadow(0 0 10px rgba(251, 191, 36, 0.4));
}

.char-portrait {
    width: 60px;
    height: 60px;
    overflow: hidden;
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.char-portrait img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: all 0.3s ease;
    opacity: 0.8;
}

.char-select-item:hover .char-portrait img,
.char-select-item.active .char-portrait img {
    opacity: 1;
}

.char-label {
    font-family: 'Cinzel', serif;
    font-size: 0.55rem;
    color: rgba(255, 255, 255, 0.7);
    text-align: center;
    letter-spacing: 0;
    font-weight: 600;
    width: 100%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Character Section Responsive */
@media (max-width: 1200px) {
    .character-featured {
        width: 450px;
        bottom: -180px;
    }

    .character-title,
    .character-subtitle,
    .character-info {
        margin-left: 30%;
    }
}

@media (max-width: 1024px) {
    .character-section {
        min-height: 650px;
    }

    .character-title {
        font-size: 2.8rem;
        text-align: center;
        margin-left: 0;
        padding-right: 0;
    }

    .character-subtitle {
        text-align: center;
        margin-left: 0;
        max-width: 100%;
        padding-right: 0;
    }

    .character-featured {
        width: 400px;
        left: 50%;
        transform: translateX(-50%);
        bottom: -150px;
    }

    .character-info {
        text-align: center;
        margin-left: 0;
        padding-right: 0;
    }

    .featured-desc {
        margin: 0 auto 15px;
        max-width: 100%;
    }
}

@media (max-width: 768px) {
    .character-section {
        padding: 50px 15px 120px;
        min-height: 550px;
    }

    .character-title {
        font-size: 2rem;
        letter-spacing: 4px;
    }

    .character-subtitle {
        font-size: 0.8rem;
        padding: 0 10px;
        margin-bottom: 20px;
    }

    .character-showcase {
        min-height: 300px;
    }

    .character-featured {
        width: 320px;
        bottom: -120px;
    }

    .featured-name {
        font-size: 1.5rem;
    }

    .featured-desc {
        font-size: 0.85rem;
    }

    .character-selection {
        gap: 8px;
        padding: 10px 15px;
        flex-wrap: nowrap;
        justify-content: flex-start;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        -ms-overflow-style: none;
    }

    .character-selection::-webkit-scrollbar {
        display: none;
    }

    .char-select-item {
        width: 75px;
        height: 80px;
        padding: 5px;
        flex-shrink: 0;
    }

    .char-portrait {
        width: 45px;
        height: 45px;
    }

    .char-label {
        font-size: 0.5rem;
    }
}

/* ==================== BEGINNER GUIDE SECTION ==================== */
.guide-section {
    background: linear-gradient(180deg, #0d0b0c 0%, #1a1212 50%, #0d0b0c 100%);
    padding: 80px 40px;
    position: relative;
}

.guide-container {
    max-width: 1200px;
    margin: 0 auto;
}

.guide-title {
    font-family: 'Cinzel', serif;
    font-size: 3rem;
    font-weight: 700;
    color: #fff;
    text-align: center;
    margin-bottom: 15px;
    letter-spacing: 6px;
    text-shadow: 0 0 40px rgba(236, 27, 27, 0.3);
}

.guide-subtitle {
    text-align: center;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.95rem;
    line-height: 1.8;
    max-width: 700px;
    margin: 0 auto 40px;
}

/* Guide Tabs */
.guide-tabs {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.guide-tab {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.7);
    padding: 12px 28px;
    border-radius: 8px;
    font-family: 'Prompt', sans-serif;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.guide-tab:hover {
    background: rgba(236, 27, 27, 0.15);
    border-color: rgba(236, 27, 27, 0.4);
    color: #fff;
}

.guide-tab.active {
    background: linear-gradient(135deg, #ec1b1b 0%, #8b0000 100%);
    border-color: #ec1b1b;
    color: #fff;
    box-shadow: 0 0 20px rgba(236, 27, 27, 0.3);
}

/* Guide Panels */
.guide-content {
    position: relative;
}

.guide-panel {
    display: none;
    animation: fadeIn 0.4s ease;
}

.guide-panel.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Guide Grid */
.guide-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 25px;
}

/* Guide Cards */
.guide-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 30px 25px;
    transition: all 0.3s ease;
}

.guide-card:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(236, 27, 27, 0.3);
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
}

.guide-card-icon {
    width: 60px;
    height: 60px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #ec1b1b 0%, #8b0000 100%);
    border-radius: 50%;
    box-shadow: 0 0 25px rgba(236, 27, 27, 0.4);
}

.step-number {
    font-family: 'Cinzel', serif;
    font-size: 1.8rem;
    font-weight: 700;
    color: #fff;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.guide-card h4 {
    font-family: 'Prompt', sans-serif;
    font-size: 1.1rem;
    font-weight: 600;
    color: #fbbf24;
    margin-bottom: 12px;
}

.guide-card p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    line-height: 1.7;
}

.guide-card p a {
    color: #fbbf24;
    text-decoration: none;
    transition: color 0.3s ease;
}

.guide-card p a:hover {
    color: #ec1b1b;
    text-decoration: underline;
}

/* Tip Cards */
.tip-card {
    position: relative;
    padding-left: 70px;
}

.tip-number {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Cinzel', serif;
    font-size: 1rem;
    font-weight: 700;
    color: #fff;
    background: linear-gradient(135deg, rgba(236, 27, 27, 0.8) 0%, rgba(139, 0, 0, 0.8) 100%);
    border-radius: 50%;
    border: 2px solid rgba(251, 191, 36, 0.3);
}

/* Accordion */
.guide-accordion {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.accordion-item {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    overflow: hidden;
}

.accordion-header {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 25px;
    background: transparent;
    border: none;
    color: #fff;
    font-family: 'Prompt', sans-serif;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: left;
}

.accordion-header:hover {
    background: rgba(236, 27, 27, 0.1);
}

.accordion-header span:first-child {
    display: flex;
    align-items: center;
    gap: 10px;
}

.accordion-icon {
    font-size: 1.3rem;
    font-weight: 300;
    color: #fbbf24;
    transition: transform 0.3s ease;
}

.accordion-item.open .accordion-icon {
    transform: rotate(45deg);
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
    padding: 0 25px;
}

.accordion-item.open .accordion-content {
    max-height: 2000px;
    padding: 0 25px 20px;
    overflow-y: auto;
}

.accordion-content p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    line-height: 1.8;
    margin-bottom: 10px;
}

.accordion-content ul {
    list-style: none;
    padding: 0;
    margin: 10px 0 0;
}

.accordion-content li {
    color: rgba(255, 255, 255, 0.65);
    font-size: 0.85rem;
    line-height: 1.8;
    padding-left: 20px;
    position: relative;
}

.accordion-content li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: #ec1b1b;
}

.accordion-content li strong {
    color: #fbbf24;
}

/* Guide Section Responsive */
@media (max-width: 768px) {
    .guide-section {
        padding: 60px 20px;
    }

    .guide-title {
        font-size: 2rem;
        letter-spacing: 3px;
    }

    .guide-subtitle {
        font-size: 0.85rem;
        padding: 0 10px;
    }

    .guide-tabs {
        gap: 8px;
    }

    .guide-tab {
        padding: 10px 18px;
        font-size: 0.8rem;
    }

    .guide-card {
        padding: 20px;
    }

    .tip-card {
        padding-left: 60px;
    }

    .tip-number {
        font-size: 1.5rem;
        left: 15px;
    }

    .accordion-header {
        padding: 15px 18px;
        font-size: 0.9rem;
    }

    .accordion-content {
        padding: 0 18px;
    }

    .accordion-item.open .accordion-content {
        padding: 0 18px 15px;
    }
}

/* ==================== FOOTER ==================== */
.footer {
    background: #0d0b0c;
    padding: 60px 40px 30px;
    border-top: 1px solid #3d2a2a;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.footer-logo {
    margin-bottom: 30px;
}

.footer-logo-img {
    height: 60px;
    width: auto;
    opacity: 0.8;
    transition: opacity 0.3s ease;
    filter: drop-shadow(0 0 10px rgba(236, 27, 27, 0.2));
}

.footer-logo-img:hover {
    opacity: 1;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: #ec1b1b;
}

.footer-copyright {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.5);
}

/* ==================== RESPONSIVE ==================== */

/* Medium screens - smaller nav items */
@media (max-width: 1280px) {
    .nav-link {
        padding: 8px 10px;
        font-size: 13px;
    }

    .nav-menu {
        gap: 4px;
    }
}

/* Switch to mobile menu earlier */
@media (max-width: 1100px) {
    .nav-container {
        padding: 0 20px;
        justify-content: flex-end;
    }

    .nav-menu {
        display: none;
    }

    .mobile-toggle {
        display: none;
    }

    .mobile-menu {
        display: block;
    }

    .hero-content {
        margin-top: 30px;
    }

    .title-line {
        letter-spacing: 3px;
    }
}

@media (max-width: 768px) {
    .navbar,
    .navbar.scrolled {
        display: none;
    }

    .hero-buttons {
        display: none;
    }

    .btn-hexagon {
        min-width: 250px;
        padding: 16px 40px;
    }

    .hero-subtitle {
        font-size: 14px;
        letter-spacing: 2px;
    }

    .hero-subtitle::before,
    .hero-subtitle::after {
        margin: 0 10px;
    }

    .hero-tagline {
        font-size: 16px;
    }

    .ranking-section {
        padding: 60px 20px;
    }

    .section-title {
        font-size: 28px;
        flex-direction: column;
        gap: 10px;
    }

    .ranking-controls {
        flex-wrap: wrap;
        gap: 15px;
    }

    .nation-filter {
        width: 100%;
        justify-content: center;
    }

    .nation-btn {
        padding: 8px 16px;
        font-size: 13px;
    }

    .ranking-tabs {
        flex-wrap: wrap;
        justify-content: center;
    }

    .rank-tab {
        padding: 10px 20px;
        font-size: 13px;
    }

    .war-class-filter {
        width: 100%;
        justify-content: center;
        gap: 4px;
        margin-top: 0;
    }

    .class-filter-btn {
        padding: 5px 8px;
        font-size: 10px;
        min-width: 30px;
    }

    .ranking-table-wrapper {
        overflow-x: auto;
    }

    .ranking-table {
        min-width: 600px;
    }

    .ranking-table th,
    .ranking-table td {
        padding: 12px 15px;
        font-size: 13px;
    }

    .footer {
        padding: 40px 20px 20px;
    }

    .footer-links {
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .hero-logo-img {
        height: 120px;
    }
}

@media (max-width: 480px) {
    .logo-img {
        height: 40px;
    }

    .hero-logo-img {
        height: 100px;
    }

    .trophy-container {
        width: 80px;
        height: 80px;
        margin-bottom: 20px;
    }

    .title-line {
        letter-spacing: 2px;
    }

    .hero-tagline {
        padding: 10px 20px;
        font-size: 13px;
        gap: 10px;
    }

    .hero-tagline::before {
        width: 8px;
        height: 8px;
    }

    .btn-hexagon {
        min-width: 220px;
        padding: 14px 30px;
        font-size: 14px;
    }

    .section-title {
        font-size: 24px;
    }

    .title-icon {
        width: 30px;
        height: 30px;
    }

    .nation-btn {
        padding: 6px 12px;
        font-size: 12px;
    }

    .nation-icon {
        font-size: 14px;
    }

    .ranking-table {
        min-width: 500px;
    }

    .rank-tab {
        padding: 8px 15px;
        font-size: 12px;
    }

    .footer-links {
        gap: 15px;
    }
}

/* ==================== ANIMATIONS ==================== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-content > * {
    animation: fadeInUp 0.8s ease forwards;
}

.hero-logo { animation-delay: 0.1s; opacity: 0; }
.hero-subtitle { animation-delay: 0.2s; opacity: 0; }
.hero-title { animation-delay: 0.4s; opacity: 0; }
.hero-tagline { animation-delay: 0.6s; opacity: 0; }
.hero-buttons { animation-delay: 0.8s; opacity: 0; }

/* ==================== CUSTOM SCROLLBAR ==================== */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #1a1517;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #ff5252, #ec1b1b);
    border-radius: 5px;
    border: 2px solid #1a1517;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #ec1b1b, #b91c1c);
}

* {
    scrollbar-width: thin;
    scrollbar-color: #ec1b1b #1a1517;
}
