* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg-primary: #0f0f1a;
    --bg-secondary: #15151f;
    --bg-tertiary: #1a1a28;
    --bg-card: #1f1f2e;
    --accent-primary: #fbbf24;
    --accent-secondary: #f59e0b;
    --accent-tertiary: #d97706;
    --accent-gold: #fbbf24;
    --text-primary: #e5e7eb;
    --text-secondary: #9ca3af;
    --border-color: #2d2d40;
    --border-accent: #fbbf24;
    --gradient-1: linear-gradient(135deg, #fbbf24 0%, #d97706 100%);
    --gradient-2: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
    --gradient-3: linear-gradient(135deg, #f59e0b 0%, #b45309 100%);
    --gradient-4: linear-gradient(135deg, #fbbf24 0%, #fbbf24 100%);
}

/* Light Theme */
[data-theme="light"] {
    --bg-primary: #f3f4f6;
    --bg-secondary: #ffffff;
    --bg-tertiary: #e5e7eb;
    --bg-card: #ffffff;
    --text-primary: #111827;
    --text-secondary: #6b7280;
    --border-color: #d1d5db;
    --border-accent: #fbbf24;
}

body {
    font-family: 'Inter', sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    transition: background-color 0.3s ease, color 0.3s ease;
    background-image: 
        repeating-linear-gradient(0deg, transparent, transparent 2px, rgba(251, 191, 36, 0.02) 2px, rgba(251, 191, 36, 0.02) 4px);
}

/* Background Animation */
.animated-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

.animated-bg::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(251, 191, 36, 0.08) 1px, transparent 1px);
    background-size: 50px 50px;
    animation: moveGrid 20s linear infinite;
}

[data-theme="light"] .animated-bg::before {
    background: radial-gradient(circle, rgba(251, 191, 36, 0.04) 1px, transparent 1px);
}

@keyframes moveGrid {
    0% {
        transform: translate(0, 0);
    }
    100% {
        transform: translate(50px, 50px);
    }
}

/* Header */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(15, 15, 26, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 2px solid var(--border-accent);
    box-shadow: 0 2px 8px rgba(251, 191, 36, 0.2);
    z-index: 1000;
    transition: all 0.3s ease;
}

[data-theme="light"] header {
    background: rgba(255, 255, 255, 0.95);
}

header.scrolled {
    box-shadow: 0 4px 20px rgba(251, 191, 36, 0.4), 0 2px 8px rgba(212, 175, 55, 0.2);
}

[data-theme="light"] header.scrolled {
    box-shadow: 0 4px 20px rgba(251, 191, 36, 0.2), 0 2px 8px rgba(212, 175, 55, 0.15);
}

nav {
    max-width: 1600px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.logo {
    font-size: 1.8rem;
    font-weight: 800;
    background: var(--gradient-2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-decoration: none;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-family: 'Inter', sans-serif;
}

.logo-img {
    width: 180px;
    height: auto;
    object-fit: contain;
    filter: drop-shadow(0 2px 8px rgba(251, 191, 36, 0.3));
}

.logo i {
    background: var(--gradient-2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 2rem;
    filter: drop-shadow(0 0 8px rgba(251, 191, 36, 0.5));
}

.search-bar {
    flex: 1;
    max-width: 500px;
    position: relative;
}

.search-bar input {
    width: 100%;
    padding: 0.75rem 3rem 0.75rem 1.25rem;
    background: var(--bg-tertiary);
    border: 2px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 0.95rem;
    transition: all 0.3s ease;
    font-family: 'Inter', sans-serif;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.2);
}

.search-bar input:focus {
    outline: none;
    border-color: var(--border-accent);
    box-shadow: 0 0 0 3px rgba(251, 191, 36, 0.2), 0 0 20px rgba(251, 191, 36, 0.1), inset 0 2px 4px rgba(0, 0, 0, 0.2);
}

.search-bar i {
    position: absolute;
    right: 1.25rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-secondary);
    pointer-events: none;
    z-index: 1;
}

.search-results {
    position: absolute;
    top: calc(100% + 0.5rem);
    left: 0;
    width: 100%;
    background: var(--bg-secondary);
    border: 2px solid var(--border-accent);
    border-radius: 8px;
    max-height: 400px;
    overflow-y: auto;
    z-index: 1002;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4), 0 0 20px rgba(251, 191, 36, 0.2);
    display: none;
}

.search-result-item {
    padding: 0.75rem 1rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
    transition: all 0.2s ease;
    border-bottom: 1px solid var(--border-color);
}

.search-result-item:last-child {
    border-bottom: none;
}

.search-result-item:hover {
    background: var(--bg-tertiary);
    padding-left: 1.5rem;
}

.search-result-item i {
    color: var(--accent-primary);
    font-size: 0.9rem;
}

.search-result-item span {
    color: var(--text-primary);
    font-size: 0.9rem;
}

.search-no-results {
    padding: 2rem 1rem;
    text-align: center;
    color: var(--text-secondary);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.search-no-results i {
    font-size: 2rem;
    color: var(--text-secondary);
    opacity: 0.5;
}

.nav-controls {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.language-selector {
    position: relative;
}

.language-btn {
    padding: 0.5rem 0.75rem;
    background: var(--bg-tertiary);
    border: 2px solid var(--border-color);
    border-radius: 6px;
    color: var(--text-primary);
    font-size: 0.85rem;
    font-weight: 600;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    cursor: pointer;
    box-shadow: inset 0 1px 0 rgba(212, 175, 55, 0.1);
    font-family: 'Inter', sans-serif;
}

.language-btn:hover {
    background: var(--accent-primary);
    border-color: var(--accent-gold);
    transform: translateY(-2px);
    color: white;
    box-shadow: 0 4px 15px rgba(251, 191, 36, 0.4), inset 0 1px 0 rgba(251, 191, 36, 0.3);
}

.language-dropdown {
    position: absolute;
    top: calc(100% + 0.5rem);
    right: 0;
    background: var(--bg-card);
    border: 2px solid var(--border-accent);
    border-radius: 8px;
    padding: 0.5rem;
    min-width: 180px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    z-index: 1001;
    display: none;
    opacity: 0;
    transform: translateY(-10px);
    transition: all 0.3s ease;
}

.language-dropdown.active {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

.lang-option {
    width: 100%;
    padding: 0.75rem 1rem;
    background: transparent;
    border: none;
    color: var(--text-primary);
    text-align: left;
    cursor: pointer;
    border-radius: 6px;
    transition: all 0.2s ease;
    font-size: 0.9rem;
    font-family: 'Inter', sans-serif;
    display: block;
}

.lang-option:hover {
    background: var(--accent-primary);
    color: white;
}

.lang-option.active {
    background: rgba(251, 191, 36, 0.2);
    color: var(--accent-gold);
    font-weight: 600;
}

.lang-text {
    font-size: 0.75rem;
    font-weight: 700;
}

.theme-toggle {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-tertiary);
    border: 2px solid var(--border-color);
    border-radius: 6px;
    color: var(--text-primary);
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: inset 0 1px 0 rgba(212, 175, 55, 0.1);
}

.theme-toggle:hover {
    background: var(--accent-primary);
    border-color: var(--accent-gold);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(251, 191, 36, 0.4), inset 0 1px 0 rgba(251, 191, 36, 0.3);
}

/* Sidebar */
.sidebar {
    position: fixed;
    left: 0;
    top: 0;
    width: 280px;
    height: 100vh;
    background: var(--bg-secondary);
    border-right: 2px solid var(--border-accent);
    box-shadow: 2px 0 20px rgba(251, 191, 36, 0.3);
    overflow-y: auto;
    overflow-x: hidden;
    z-index: 999;
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
}

.sidebar::-webkit-scrollbar {
    width: 8px;
}

.sidebar::-webkit-scrollbar-track {
    background: rgba(15, 15, 26, 0.3);
    border-radius: 4px;
}

.sidebar::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, var(--accent-primary), rgba(251, 191, 36, 0.7));
    border-radius: 4px;
    border: 1px solid rgba(251, 191, 36, 0.3);
    transition: all 0.3s ease;
}

.sidebar::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, var(--accent-gold), var(--accent-primary));
    border-color: var(--accent-gold);
}

.sidebar-header {
    padding: 1.5rem 1.25rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px solid var(--border-accent);
    background: rgba(251, 191, 36, 0.05);
}

.sidebar-title {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--accent-primary);
    margin: 0;
    font-family: 'Inter', sans-serif;
}

.sidebar-title i {
    font-size: 1.3rem;
    color: var(--accent-gold);
}

.sidebar-close {
    display: none;
    width: 32px;
    height: 32px;
    background: transparent;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.sidebar-close:hover {
    background: var(--bg-tertiary);
    color: var(--accent-primary);
}

.sidebar-nav {
    padding: 0;
    margin: 0;
    margin-top: 12px;
    display: flex;
    flex-direction: column;
    width: 100%;
}

.sidebar-nav::-webkit-scrollbar {
    width: 8px;
}

.sidebar-nav::-webkit-scrollbar-track {
    background: rgba(15, 15, 26, 0.5);
    border-radius: 4px;
}

.sidebar-nav::-webkit-scrollbar-thumb {
    background: var(--accent-primary);
    border-radius: 4px;
    transition: background 0.3s ease;
}

.sidebar-nav::-webkit-scrollbar-thumb:hover {
    background: var(--accent-gold);
}

.sidebar-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1.25rem;
    color: var(--text-primary);
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 0.95rem;
    font-weight: 500;
    border-left: 3px solid transparent;
    font-family: 'Inter', sans-serif;
}

.sidebar-item:hover {
    background: var(--bg-tertiary);
    border-left-color: var(--accent-primary);
    color: var(--accent-primary);
}

.sidebar-item i {
    width: 20px;
    font-size: 1rem;
}

.sidebar-section {
    margin: 0;
    padding: 0;
    width: 100%;
    display: block;
    flex-shrink: 0;
    border-bottom: 1px solid var(--border-color);
}

.sidebar-section-header {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.25rem;
    background: rgba(15, 15, 26, 0.5);
    border: none;
    color: var(--text-primary);
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Inter', sans-serif;
    margin: 0;
    line-height: 1;
}

.section-header-content {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.section-header-content i {
    font-size: 1rem;
    color: var(--accent-primary);
    transition: color 0.3s ease;
}

.sidebar-section-header:hover {
    background: rgba(251, 191, 36, 0.1);
    color: var(--accent-gold);
}

.sidebar-section-header:hover .section-header-content i {
    color: var(--accent-gold);
}

.sidebar-section-header > i {
    transition: transform 0.3s ease;
    font-size: 0.7rem;
    color: var(--text-secondary);
}

.sidebar-section.active .sidebar-section-header > i {
    transform: rotate(180deg);
    color: var(--accent-primary);
}

.sidebar-section-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    width: 100%;
    display: block;
    padding: 0;
    margin: 0;
}

.sidebar-section.active .sidebar-section-content {
    max-height: 1000px;
    padding: 0;
}

.sidebar-link {
    display: block;
    width: 100%;
    padding: 0.8rem 1.25rem 0.8rem 3rem;
    color: var(--text-secondary);
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    border-left: 3px solid transparent;
    font-family: 'Inter', sans-serif;
    background: transparent;
    box-sizing: border-box;
    line-height: 1.2;
    margin: 0;
}

.sidebar-link:hover {
    background: rgba(251, 191, 36, 0.15);
    border-left-color: var(--accent-gold);
    color: var(--accent-gold);
    padding-left: 3.25rem;
}

.sidebar-link:active,
.sidebar-link.active {
    background: rgba(251, 191, 36, 0.2);
    border-left-color: var(--accent-primary);
    color: var(--text-primary);
}

.sidebar-toggle {
    position: fixed;
    top: 80px;
    left: 1rem;
    width: 44px;
    height: 44px;
    background: var(--bg-card);
    border: 2px solid var(--border-accent);
    border-radius: 8px;
    color: var(--text-primary);
    cursor: pointer;
    z-index: 998;
    display: none;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(251, 191, 36, 0.3);
    transition: all 0.3s ease;
}

.sidebar-toggle:hover {
    background: var(--accent-primary);
    color: white;
    transform: scale(1.05);
}

.sidebar-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
    z-index: 998;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.sidebar-overlay.active {
    opacity: 1;
    pointer-events: all;
}

/* Main Content */
main {
    margin: 0 auto;
    padding: 6rem 2rem 2rem;
    transition: margin-left 0.3s ease, padding-right 0.3s ease;
}

@media (min-width: 1024px) {
    main {
        margin-left: 280px;
        margin-right: 0;
    }
}

@media (min-width: 1600px) {
    main {
        padding-right: 320px;
    }
}

/* Hero Section - Simple */
.hero-simple {
    text-align: center;
    padding: 2rem 2rem 1.5rem;
    background: rgba(15, 15, 26, 0.3);
    border-radius: 12px;
    margin-bottom: 1.5rem;
}

.hero-simple-content h1 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
    font-weight: 600;
    font-family: 'Inter', sans-serif;
}

.hero-simple-content p {
    font-size: 0.95rem;
    color: var(--text-secondary);
    margin-bottom: 1rem;
    font-weight: 400;
    font-family: 'Inter', sans-serif;
    line-height: 1.5;
}

.social-icons {
    display: flex;
    gap: 0.75rem;
    justify-content: center;
    align-items: center;
}

.social-icon {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    transition: all 0.3s ease;
    background: var(--bg-tertiary);
    color: var(--text-secondary);
    text-decoration: none;
    border: 1px solid var(--border-color);
}

.social-icon:hover {
    background: var(--accent-primary);
    color: white;
    border-color: var(--accent-primary);
    transform: translateY(-2px);
}

/* Featured Cards */
.featured-cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.featured-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 2rem 1.5rem;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
}

.featured-card:hover {
    border-color: var(--accent-primary);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(251, 191, 36, 0.2);
}

.featured-card.highlight {
    background: linear-gradient(135deg, rgba(251, 191, 36, 0.15), rgba(251, 191, 36, 0.1));
    border-color: var(--accent-primary);
}

.featured-card-icon {
    font-size: 2.5rem;
    margin-bottom: 0.75rem;
    color: var(--accent-primary);
}

.featured-card h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
    font-family: 'Inter', sans-serif;
}

/* Systems Grid */
.systems-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    margin-bottom: 2rem;
}

.system-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1.5rem 1rem;
    text-align: center;
    transition: all 0.3s ease;
    text-decoration: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
}

.system-card:hover {
    border-color: var(--accent-primary);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(251, 191, 36, 0.2);
}

.system-icon {
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border-radius: 10px;
}

.system-icon img {
    width: 56px;
    height: 56px;
    object-fit: contain;
}

.system-card h4 {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
    font-family: 'Inter', sans-serif;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-top: 3rem;
    animation: fadeInUp 0.8s ease 0.4s backwards;
}

.stat-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 1.5rem;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

[data-theme="light"] .stat-card {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--gradient-1);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.stat-card:hover::before {
    transform: scaleX(1);
}

.stat-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent-primary);
    box-shadow: 0 10px 30px rgba(99, 102, 241, 0.2);
}

.stat-card i {
    font-size: 2rem;
    margin-bottom: 0.75rem;
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-card h3 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.stat-card p {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* Section Titles */
.section-title {
    font-size: 2rem;
    font-weight: 800;
    margin: 4rem 0 2rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.section-title i {
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Server Status Widget */
.server-status-widget {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 0.75rem 1rem;
    transition: all 0.3s ease;
}

.server-status-widget:hover {
    border-color: var(--accent-primary);
}

.server-widget-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.server-header-content {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-primary);
    font-size: 0.9rem;
    font-weight: 600;
}

.server-header-content i {
    font-size: 1rem;
    color: var(--accent-primary);
}

.host-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.25rem 0.5rem;
    background: rgba(251, 191, 36, 0.1);
    border: 1px solid var(--accent-primary);
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--accent-primary);
}

.host-badge i {
    font-size: 0.7rem;
}

.server-widget-body {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.server-widget-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.server-widget-label {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-primary);
}

.pvp-badge-small {
    padding: 0.25rem 0.5rem;
    background: rgba(251, 191, 36, 0.1);
    border: 1px solid var(--accent-gold);
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--accent-gold);
}

.status-indicator-small {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.85rem;
    font-weight: 600;
}

.status-indicator-small.online {
    color: #43e97b;
}

.status-indicator-small.offline {
    color: #ef4444;
}

.players-count-small {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-primary);
}

.players-count-small i {
    font-size: 0.85rem;
    color: var(--accent-primary);
}

.loading-spinner {
    animation: rotate 1s linear infinite;
}

@keyframes rotate {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

/* Featured Banners */
.banners-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.banner-card {
    position: relative;
    height: 200px;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid var(--border-accent);
    box-shadow: 0 4px 15px rgba(251, 191, 36, 0.3), inset 0 1px 0 rgba(212, 175, 55, 0.2);
}

.banner-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(251, 191, 36, 0.2) 0%, rgba(0, 0, 0, 0.9) 100%);
    z-index: 1;
}

.banner-card.battle-pass {
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 800 400"><rect fill="%23764ba2" width="800" height="400"/><text x="400" y="200" font-size="48" fill="white" text-anchor="middle" font-family="Arial">BATTLE PASS</text></svg>') center/cover;
    background-color: #764ba2;
}

.banner-card.events {
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 800 400"><rect fill="%23f5576c" width="800" height="400"/><text x="400" y="200" font-size="48" fill="white" text-anchor="middle" font-family="Arial">EVENTOS</text></svg>') center/cover;
    background-color: #f5576c;
}

.banner-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

[data-theme="light"] .banner-card:hover {
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.banner-content {
    position: absolute;
    bottom: 1.5rem;
    left: 1.5rem;
    z-index: 2;
}

.banner-content h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: white;
}

.banner-content p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.9rem;
}

/* Features Grid */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 1.25rem;
}

.feature-card {
    background: var(--bg-card);
    border: 2px solid var(--border-color);
    border-radius: 8px;
    padding: 1.75rem;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    box-shadow: inset 0 1px 0 rgba(251, 191, 36, 0.1), 0 2px 8px rgba(0, 0, 0, 0.3);
}

[data-theme="light"] .feature-card {
    box-shadow: inset 0 1px 0 rgba(251, 191, 36, 0.15), 0 2px 8px rgba(0, 0, 0, 0.1);
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient-1);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.feature-card:hover::before {
    opacity: 0.15;
}

.feature-card:hover {
    transform: translateY(-5px);
    border-color: var(--border-accent);
    box-shadow: inset 0 1px 0 rgba(251, 191, 36, 0.2), 0 8px 25px rgba(251, 191, 36, 0.4), 0 0 20px rgba(251, 191, 36, 0.2);
}

.feature-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    position: relative;
    z-index: 1;
}

.feature-card h3 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    position: relative;
    z-index: 1;
}

.feature-card p {
    font-size: 0.85rem;
    color: var(--text-secondary);
    position: relative;
    z-index: 1;
}

/* Server Status */
.servers-grid {
    display: grid;
    gap: 1rem;
    margin: 2rem 0;
}

.server-row {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1rem 1.5rem;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    align-items: center;
    gap: 1rem;
    transition: all 0.3s ease;
}

[data-theme="light"] .server-row {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.server-row:hover {
    border-color: var(--accent-primary);
    transform: translateX(5px);
}

.server-name {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 600;
}

.server-flag {
    width: 24px;
    height: 24px;
    border-radius: 4px;
}

.server-type {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-secondary);
}

.pvp-badge {
    padding: 0.25rem 0.75rem;
    background: var(--bg-tertiary);
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 500;
}

.server-players {
    text-align: right;
    font-weight: 600;
    color: var(--accent-primary);
}

/* Page Content Styles */
.page-header {
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 2px solid var(--border-accent);
}

.page-header h1 {
    font-size: 2.5rem;
    font-weight: 700;
    background: var(--gradient-4);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
    font-family: 'Inter', sans-serif;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.page-header h1 i {
    background: var(--gradient-2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.page-subtitle {
    font-size: 1.1rem;
    color: var(--text-secondary);
    font-family: 'Inter', sans-serif;
}

.page-content {
    width: 100%;
}

.content-section {
    background: var(--bg-card);
    border: 2px solid var(--border-color);
    border-radius: 8px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: inset 0 1px 0 rgba(251, 191, 36, 0.1), 0 2px 8px rgba(0, 0, 0, 0.3);
}

.content-section h2 {
    color: var(--accent-primary);
    font-size: 1.8rem;
    margin-bottom: 1rem;
    font-family: 'Inter', sans-serif;
    scroll-margin-top: 120px;
}

.content-section p, .content-section li {
    color: var(--text-secondary);
    font-size: 1rem;
    line-height: 1.8;
    margin-bottom: 1rem;
}

.content-section ul {
    margin-left: 1.5rem;
    margin-bottom: 1rem;
}

/* Info Box */
.info-box {
    background: var(--bg-tertiary);
    border-left: 4px solid var(--accent-primary);
    border-radius: 8px;
    padding: 1.25rem;
    margin: 1.5rem 0;
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.info-box i {
    color: var(--accent-primary);
    font-size: 1.5rem;
    flex-shrink: 0;
    margin-top: 0.2rem;
}

.info-box strong {
    color: var(--text-primary);
}

.info-box ul {
    margin-top: 0.5rem;
}

/* Data Table */
.table-responsive {
    overflow-x: auto;
    margin: 1.5rem 0;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--bg-secondary);
    border-radius: 8px;
    overflow: hidden;
}

.data-table thead {
    background: var(--gradient-1);
}

.data-table th {
    padding: 1rem;
    text-align: center;
    font-weight: 600;
    color: #0f0f1a;
    font-size: 0.95rem;
}

.data-table td {
    padding: 1rem;
    text-align: center;
    border-top: 1px solid var(--border-color);
    color: var(--text-secondary);
}

.data-table tbody tr:hover {
    background: var(--bg-tertiary);
}

/* Commands Grid */
.commands-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin: 1.5rem 0;
}

.command-card {
    background: var(--bg-secondary);
    border: 2px solid var(--border-color);
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
    transition: all 0.3s ease;
}

.command-card:hover {
    border-color: var(--accent-primary);
    transform: translateY(-4px);
    box-shadow: 0 4px 16px rgba(251, 191, 36, 0.2);
}

.command-icon {
    width: 70px;
    height: 70px;
    background: var(--gradient-1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    position: relative;
    box-shadow: 0 4px 16px rgba(251, 191, 36, 0.3);
}

.command-icon::before {
    content: '';
    position: absolute;
    inset: -3px;
    border-radius: 50%;
    padding: 3px;
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0.6;
}

.command-icon i {
    font-size: 2rem;
    color: #0f0f1a;
    font-weight: 900;
}

.command-card h3 {
    color: var(--accent-primary);
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    font-family: 'Courier New', monospace;
}

.command-card .command-title {
    color: var(--accent-primary);
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    font-family: 'Courier New', monospace;
    font-weight: 600;
}

.command-card p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin: 0;
}

/* Images Grid */
.images-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin: 1.5rem 0;
}

.image-card {
    background: var(--bg-secondary);
    border: 2px solid var(--border-color);
    border-radius: 12px;
    padding: 1rem;
    overflow: hidden;
}

.image-card img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    display: block;
}

/* Image Lightbox */
.clickable-image:hover {
    transform: scale(1.02);
    border-color: var(--accent-primary) !important;
}

.image-lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 9999;
    justify-content: center;
    align-items: center;
    padding: 2rem;
    backdrop-filter: blur(5px);
}

.image-lightbox.active {
    display: flex;
}

.lightbox-content {
    max-width: 90%;
    max-height: 90%;
    position: relative;
    animation: lightboxZoom 0.3s ease;
}

@keyframes lightboxZoom {
    from {
        transform: scale(0.8);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

.lightbox-content img {
    width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
    border: 3px solid var(--accent-primary);
}

.lightbox-close {
    position: absolute;
    top: -40px;
    right: 0;
    background: var(--accent-primary);
    color: var(--bg-primary);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.5rem;
    font-weight: bold;
    transition: all 0.3s ease;
    border: none;
}

.lightbox-close:hover {
    background: var(--accent-secondary);
    transform: rotate(90deg);
}

.content-section h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--accent-primary);
    margin-bottom: 1rem;
    font-family: 'Inter', sans-serif;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 0.5rem;
}

.content-section p {
    line-height: 1.8;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.content-section ul {
    list-style: none;
    padding-left: 0;
}

.content-section ul li {
    padding: 0.5rem 0 0.5rem 1.5rem;
    position: relative;
    color: var(--text-primary);
}

.content-section ul li::before {
    content: '◆';
    position: absolute;
    left: 0;
    color: var(--accent-primary);
    font-size: 0.8rem;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive */
/* Extra Small Mobile (até 360px) */
@media (max-width: 360px) {
    header {
        min-height: auto;
    }

    nav {
        padding: 0.4rem 0.5rem;
        gap: 0.4rem;
    }

    .logo-img {
        width: 65px;
    }

    .nav-controls {
        gap: 0.3rem;
    }

    .language-btn,
    .theme-toggle {
        width: 32px;
        height: 32px;
        padding: 0;
        min-width: 32px;
    }

    .language-btn i,
    .theme-toggle i {
        font-size: 0.9rem;
    }

    .search-bar {
        margin-top: 0.4rem;
    }

    .search-bar input {
        font-size: 0.8rem;
        padding: 0.45rem 2rem 0.45rem 0.6rem;
    }

    main {
        margin-top: 100px !important;
        padding: 0.75rem 0.5rem !important;
    }
}

/* Mobile First - Smartphones (320px - 480px) */
@media (max-width: 480px) {
    header {
        min-height: auto;
    }

    nav {
        padding: 0.5rem 0.75rem;
        gap: 0.5rem;
        flex-wrap: nowrap;
        align-items: center;
    }

    .logo {
        font-size: 0;
        flex: 0 0 auto;
        order: 1;
    }

    .logo-img {
        width: 75px;
        height: auto;
    }

    .nav-controls {
        flex: 0 0 auto;
        gap: 0.4rem;
        order: 2;
        display: flex;
        margin-left: auto;
    }

    .server-status-widget {
        display: none !important;
    }

    .language-btn {
        padding: 0.45rem 0.55rem;
        font-size: 0;
        min-width: 36px;
        height: 36px;
    }

    .language-btn i {
        font-size: 1rem;
    }

    .lang-text {
        display: none !important;
    }

    .theme-toggle {
        width: 36px;
        height: 36px;
        font-size: 1rem;
        padding: 0;
    }

    .search-bar {
        flex: 1 1 100%;
        max-width: 100%;
        order: 3;
        margin-top: 0.5rem;
    }

    .search-bar input {
        font-size: 0.85rem;
        padding: 0.5rem 2.5rem 0.5rem 0.75rem;
    }

    .search-bar i {
        right: 0.75rem;
    }

    .sidebar-toggle {
        display: flex !important;
        position: fixed;
        bottom: 20px;
        left: 20px;
        width: 50px;
        height: 50px;
        border-radius: 50%;
        background: var(--gradient-1);
        color: var(--bg-primary);
        border: none;
        font-size: 1.3rem;
        z-index: 998;
        box-shadow: 0 4px 12px rgba(251, 191, 36, 0.5);
    }

    .sidebar-toggle:hover {
        transform: scale(1.1);
        background: var(--gradient-1);
        color: var(--bg-primary);
    }

    main {
        margin-left: 0 !important;
        padding: 1rem 0.75rem;
        margin-top: 110px;
    }

    .sidebar {
        width: 85%;
        max-width: 300px;
        transform: translateX(-100%);
        padding-top: 0;
    }

    .sidebar.active {
        transform: translateX(0);
    }

    .sidebar-close {
        display: flex;
    }

    .sidebar-header {
        padding: 1.25rem 1rem;
    }

    .sidebar-nav {
        padding: 0.5rem;
    }

    .sidebar-nav a {
        padding: 0.75rem 1rem;
        font-size: 0.9rem;
    }

    .hero-simple-content h1 {
        font-size: 1.5rem;
        line-height: 1.3;
    }

    .hero-simple-content p {
        font-size: 0.9rem;
    }

    .featured-cards {
        grid-template-columns: 1fr;
        gap: 1rem;
        padding: 0;
    }

    .featured-card {
        padding: 1.25rem;
    }

    .systems-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .system-card {
        padding: 1.25rem;
    }

    .stats-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .section-title {
        font-size: 1.3rem;
        margin-bottom: 1.25rem;
    }

    .features-grid {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }

    .feature-item {
        padding: 1rem;
        font-size: 0.9rem;
    }

    .page-container {
        padding: 1rem;
    }

    .page-header h1 {
        font-size: 1.5rem;
    }

    .page-header p {
        font-size: 0.9rem;
    }

    .content-section {
        padding: 1.25rem;
        margin-bottom: 1.25rem;
    }

    .content-section h2 {
        font-size: 1.2rem;
    }

    .content-section h3 {
        font-size: 1.05rem;
    }

    table {
        font-size: 0.85rem;
    }

    /* Task System - Mobile Responsive */
    .content-section > div[style*="grid-template-columns"] {
        display: flex !important;
        flex-direction: column !important;
        gap: 1rem !important;
    }

    .content-section img[style*="width: 100%"] {
        max-width: 250px;
        margin: 0 auto;
        display: block;
    }

    /* Tables Responsive - Card Layout */
    .data-table {
        display: block;
        overflow-x: visible;
    }

    .data-table thead {
        display: none;
    }

    .data-table tbody {
        display: block;
    }

    .data-table tr {
        display: block;
        margin-bottom: 1rem;
        border: 2px solid var(--border-color);
        border-radius: 8px;
        padding: 0.75rem;
        background: var(--bg-secondary);
    }

    .data-table td {
        display: block;
        text-align: left !important;
        padding: 0.5rem 0.25rem;
        border: none;
        position: relative;
        padding-left: 45%;
        min-height: 2rem;
    }

    .data-table td:first-child {
        text-align: center !important;
        padding-left: 0;
        padding-bottom: 1rem;
        border-bottom: 1px solid var(--border-color);
        margin-bottom: 0.5rem;
    }

    .data-table td:not(:first-child)::before {
        content: attr(data-label);
        position: absolute;
        left: 0.5rem;
        font-weight: 600;
        color: var(--accent-primary);
        width: 40%;
    }

    .data-table td img {
        max-width: 32px;
        max-height: 32px;
    }

    /* Task table specific - primeira coluna (monstro + nome) */
    .data-table tbody tr td:first-child {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 0.5rem;
    }

    .data-table tbody tr td:first-child img {
        margin: 0 auto;
    }

    .data-table tbody tr td:first-child strong {
        font-size: 1rem;
        color: var(--accent-primary);
    }

    .info-box {
        flex-direction: column;
        gap: 0.75rem;
    }

    .info-box i {
        font-size: 1.5rem;
    }

    /* Item grid with icons */
    .content-section div[style*="display: flex"] {
        flex-direction: column !important;
        gap: 0.75rem !important;
    }

    /* Castle 24H - Items Grid Responsive */
    .content-section div[style*="display: grid"][style*="grid-template-columns"] {
        grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)) !important;
        gap: 0.75rem !important;
    }

    .toc-sidebar,
    .promo-card,
    .event-popup {
        display: none !important;
    }
}

/* Tablets (481px - 768px) */
@media (min-width: 481px) and (max-width: 768px) {
    nav {
        flex-wrap: wrap;
        padding: 0.75rem 1rem;
        gap: 0.75rem;
    }

    .logo {
        font-size: 0;
        flex: 0 0 auto;
    }

    .logo-img {
        width: 100px;
        height: auto;
    }

    .nav-controls {
        gap: 0.5rem;
        flex: 0 0 auto;
        margin-left: auto;
    }

    .server-status-widget {
        display: none !important;
    }

    .search-bar {
        flex: 1 1 100%;
        max-width: 100%;
        order: 3;
    }

    .language-btn {
        padding: 0.5rem 0.75rem;
        font-size: 0.85rem;
    }

    .lang-text {
        display: inline;
    }

    .theme-toggle {
        width: 36px;
        height: 36px;
    }

    main {
        margin-left: 0 !important;
        padding: 1.5rem 1rem;
        margin-top: 140px;
    }

    .sidebar {
        transform: translateX(-100%);
        padding-top: 0;
    }

    .sidebar.active {
        transform: translateX(0);
    }

    .sidebar-close {
        display: flex;
    }

    .sidebar-toggle {
        display: flex;
    }

    .hero-simple-content h1 {
        font-size: 1.75rem;
    }

    .hero-simple-content p {
        font-size: 1rem;
    }

    .featured-cards {
        grid-template-columns: 1fr;
    }

    .systems-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .section-title {
        font-size: 1.6rem;
    }

    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .toc-sidebar,
    .promo-card {
        display: none;
    }

    .event-popup {
        right: 10px;
        bottom: 10px;
        width: calc(100% - 20px);
        max-width: 300px;
    }
}

/* Small Tablets and Large Phones (769px - 1024px) */
@media (min-width: 769px) and (max-width: 1024px) {
    nav {
        padding: 1rem 1.5rem;
    }

    .search-bar {
        max-width: 300px;
    }

    main {
        margin-left: 280px;
        padding: 2rem 1.5rem;
    }

    .featured-cards {
        grid-template-columns: repeat(2, 1fr);
    }

    .systems-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .stats-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .features-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .toc-sidebar,
    .promo-card {
        display: none;
    }
}

/* Desktop (1025px - 1400px) */
@media (min-width: 1025px) and (max-width: 1400px) {
    .toc-sidebar,
    .promo-card {
        display: none;
    }
}

/* Large Desktop (1401px+) */
@media (min-width: 1401px) {
    /* TOC e Promo já estão sendo exibidos automaticamente */
}

/* Landscape orientation fixes for mobile */
@media (max-height: 500px) and (orientation: landscape) {
    .sidebar {
        max-height: 100vh;
        overflow-y: auto;
    }

    .server-status-widget {
        display: none;
    }

    main {
        margin-top: 100px;
    }
}

/* Content Loading Animation */
.content-loading {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 15, 26, 0.95);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 100;
    transition: opacity 0.5s ease;
}

.content-loading.hidden {
    opacity: 0;
    pointer-events: none;
}

.spinner {
    width: 60px;
    height: 60px;
    border: 5px solid var(--border-color);
    border-top-color: var(--accent-primary);
    border-right-color: var(--accent-gold);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    box-shadow: 0 0 20px rgba(251, 191, 36, 0.3);
}

main {
    position: relative;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.8;
        transform: scale(1.05);
    }
}

@keyframes slideInRight {
    from {
        transform: translateX(400px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Table of Contents Sidebar */
.toc-sidebar {
    position: fixed;
    top: 100px;
    right: 20px;
    width: 280px;
    max-height: calc(100vh - 140px);
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1.5rem;
    overflow-y: auto;
    z-index: 50;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    opacity: 0;
    visibility: hidden;
    transform: translateX(20px);
}

.toc-sidebar.visible {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
}

.toc-header {
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--border-accent);
}

.toc-header h3 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--accent-primary);
    display: flex;
    align-items: center;
    gap: 8px;
}

.toc-nav {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.toc-nav a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.95rem;
    padding: 8px 20px;
    border-radius: 6px;
    transition: all 0.2s ease;
    border-left: 3px solid transparent;
    display: block;
    line-height: 1.5;
    word-wrap: break-word;
    white-space: normal;
}

.toc-nav a:hover {
    color: var(--accent-primary);
    background: var(--bg-tertiary);
    border-left-color: var(--accent-primary);
}

.toc-nav a.active {
    color: var(--accent-primary);
    background: var(--bg-tertiary);
    border-left-color: var(--accent-primary);
    font-weight: 500;
}

.toc-nav a.toc-h3 {
    padding-left: 26px;
    font-size: 0.9rem;
}

.toc-nav a.toc-h4 {
    padding-left: 38px;
    font-size: 0.85rem;
}

/* Custom scrollbar for TOC */
.toc-sidebar::-webkit-scrollbar {
    width: 6px;
}

.toc-sidebar::-webkit-scrollbar-track {
    background: var(--bg-secondary);
    border-radius: 10px;
}

.toc-sidebar::-webkit-scrollbar-thumb {
    background: var(--accent-primary);
    border-radius: 10px;
}

.toc-sidebar::-webkit-scrollbar-thumb:hover {
    background: var(--accent-secondary);
}

@media (max-width: 1400px) {
    .toc-sidebar,
    .toc-toggle {
        display: none !important;
    }
}

/* Promo Card - Below TOC */
.promo-card {
    position: fixed;
    top: auto;
    right: 20px;
    bottom: 20px;
    width: 280px;
    background: var(--bg-card);
    border: 1px solid var(--accent-primary);
    border-radius: 12px;
    padding: 1.25rem;
    box-shadow: 0 4px 16px rgba(251, 191, 36, 0.2);
    z-index: 49;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
}

.promo-card.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.promo-close {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    border-radius: 6px;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--text-secondary);
    transition: all 0.2s ease;
    font-size: 0.9rem;
    z-index: 10;
}

.promo-close:hover {
    background: rgba(255, 255, 255, 0.2);
    color: var(--text-primary);
    transform: scale(1.1);
}

.promo-card h4 {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.promo-card p {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.4;
    margin-bottom: 0.5rem;
}

.promo-card .promo-btn {
    display: block;
    width: 100%;
    padding: 10px;
    background: var(--gradient-1);
    color: #0f0f1a;
    text-align: center;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    border-radius: 8px;
    margin-top: 0.75rem;
    transition: all 0.2s ease;
}

.promo-card .promo-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(251, 191, 36, 0.4);
}

@media (max-width: 1400px) {
    .promo-card {
        display: none !important;
    }
}
/* Event Popup */
.event-popup {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 260px;
    background: var(--bg-secondary);
    border: 2px solid var(--accent-primary);
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3), 0 0 20px rgba(251, 191, 36, 0.2);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.4s ease;
}

.event-popup.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.event-popup-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem;
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    color: var(--bg-primary);
    border-radius: 10px 10px 0 0;
    font-weight: 600;
    font-size: 0.85rem;
}

.event-popup-header i {
    font-size: 1.1rem;
}

.event-popup-content {
    padding: 1rem;
}

.event-popup-name {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.6rem;
}

.event-popup-time {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--accent-primary);
    font-family: 'Courier New', monospace;
    text-align: center;
    padding: 0.4rem;
    background: var(--bg-tertiary);
    border-radius: 8px;
}

.event-popup.happening {
    animation: eventPulse 2s infinite;
}

.event-popup.happening .event-popup-time {
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    color: var(--bg-primary);
}

@keyframes eventPulse {
    0%, 100% {
        box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3), 0 0 20px rgba(251, 191, 36, 0.2);
    }
    50% {
        box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3), 0 0 30px rgba(251, 191, 36, 0.5);
    }
}

@media (max-width: 768px) {
    .event-popup {
        right: 10px;
        bottom: 10px;
        width: calc(100% - 20px);
        max-width: 280px;
    }
}

/* Image Lightbox Modal */
.image-lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 10000;
    justify-content: center;
    align-items: center;
    animation: fadeIn 0.3s ease;
}

.image-lightbox.active {
    display: flex;
}

.lightbox-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
    border: 3px solid var(--accent-primary);
    border-radius: 8px;
    box-shadow: 0 0 40px rgba(251, 191, 36, 0.5);
    animation: zoomIn 0.3s ease;
}

.lightbox-content img {
    max-width: 100%;
    max-height: 90vh;
    display: block;
    border-radius: 5px;
}

.lightbox-close {
    position: absolute;
    top: -45px;
    right: -45px;
    width: 40px;
    height: 40px;
    background: var(--accent-primary);
    border: none;
    border-radius: 50%;
    color: var(--bg-primary);
    font-size: 24px;
    font-weight: bold;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.lightbox-close:hover {
    background: var(--accent-secondary);
    transform: rotate(90deg);
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes zoomIn {
    from {
        transform: scale(0.8);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

@media (max-width: 768px) {
    .lightbox-close {
        top: -35px;
        right: -10px;
        width: 35px;
        height: 35px;
        font-size: 20px;
    }
    
    .lightbox-content {
        max-width: 95%;
        max-height: 85%;
    }
}

/* Popup Close Button */
.popup-close {
    position: absolute;
    top: 8px;
    right: 8px;
    background: rgba(0, 0, 0, 0.3);
    border: none;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--bg-primary);
    font-size: 12px;
    transition: all 0.3s ease;
    z-index: 10;
}

.popup-close:hover {
    background: rgba(0, 0, 0, 0.6);
    transform: scale(1.1);
}

/* TOC Toggle Button */
.toc-toggle {
    position: fixed;
    top: 110px;
    right: 20px;
    width: 48px;
    height: 48px;
    background: var(--bg-card);
    border: 2px solid var(--accent-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 49;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.toc-toggle:hover {
    background: var(--accent-primary);
    transform: scale(1.1);
}

.toc-toggle:hover i {
    color: var(--bg-primary);
}

.toc-toggle i {
    font-size: 20px;
    color: var(--accent-primary);
    transition: color 0.3s ease;
}

.toc-toggle.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

/* TOC Close Button */
.toc-close {
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    margin-left: auto;
    color: var(--text-secondary);
    font-size: 16px;
    transition: all 0.3s ease;
}

.toc-close:hover {
    color: var(--accent-primary);
    transform: scale(1.2);
}

.toc-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--border-accent);
}

.toc-sidebar.hidden {
    transform: translateX(100%);
    opacity: 0;
    visibility: hidden;
}

@media (max-width: 1200px) {
    .toc-toggle {
        display: none;
    }
}
