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

:root {
    --bg-primary: #0a0a0f;
    --bg-secondary: #12121a;
    --bg-card: rgba(255, 255, 255, 0.03);
    --bg-card-hover: rgba(255, 255, 255, 0.06);
    --bg-glass: rgba(18, 18, 26, 0.8);
    
    --accent-primary: #8b5cf6;
    --accent-secondary: #a78bfa;
    --accent-glow: rgba(139, 92, 246, 0.4);
    --accent-gradient: linear-gradient(135deg, #8b5cf6 0%, #6366f1 50%, #3b82f6 100%);
    
    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;
    
    --text-primary: #ffffff;
    --text-secondary: rgba(255, 255, 255, 0.7);
    --text-muted: rgba(255, 255, 255, 0.4);
    
    --radius-full: 9999px;
    
    --border-subtle: rgba(255, 255, 255, 0.06);
    --border-medium: rgba(255, 255, 255, 0.1);
    --border-strong: rgba(255, 255, 255, 0.15);
    
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-2xl: 32px;
    --radius-full: 9999px;
    
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.2);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.4);
    --shadow-xl: 0 16px 48px rgba(0, 0, 0, 0.5);
    --shadow-glow: 0 0 40px var(--accent-glow);
    
    --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-base: 250ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 400ms cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(ellipse 80% 50% at 20% 0%, rgba(139, 92, 246, 0.15) 0%, transparent 50%),
        radial-gradient(ellipse 60% 40% at 80% 100%, rgba(99, 102, 241, 0.1) 0%, transparent 50%),
        radial-gradient(ellipse 50% 30% at 50% 50%, rgba(59, 130, 246, 0.05) 0%, transparent 60%);
    pointer-events: none;
    z-index: -1;
}

::selection {
    background: var(--accent-primary);
    color: white;
}

::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

::-webkit-scrollbar-track {
    background: var(--bg-secondary);
}

::-webkit-scrollbar-thumb {
    background: var(--border-medium);
    border-radius: 5px;
    border: 2px solid var(--bg-secondary);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--accent-primary);
}

a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition-base);
}

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    outline: none;
}

input, textarea, select {
    font-family: inherit;
    outline: none;
}

.container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

.main-content {
    min-height: calc(100vh - 80px);
    padding-top: 80px;
    padding-left: 24px;
    padding-right: 24px;
    padding-bottom: 48px;
}

.section {
    padding: 80px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 56px;
}

.section-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--accent-secondary);
    margin-bottom: 20px;
}

.section-title {
    font-size: clamp(2rem, 4vw, 2.75rem);
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 16px;
    background: linear-gradient(135deg, #fff 0%, rgba(255,255,255,0.8) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-subtitle {
    font-size: 1.125rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 28px;
    border-radius: var(--radius-full);
    font-weight: 600;
    font-size: 0.9375rem;
    transition: all var(--transition-base);
    border: none;
    cursor: pointer;
    text-decoration: none;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.1) 0%, transparent 100%);
    opacity: 0;
    transition: opacity var(--transition-base);
}

.btn:hover::before {
    opacity: 1;
}

.btn-primary {
    background: var(--accent-gradient);
    color: white;
    box-shadow: 0 4px 16px var(--accent-glow);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px var(--accent-glow);
}

.btn-secondary {
    background: var(--bg-card);
    color: var(--text-primary);
    border: 1px solid var(--border-medium);
    backdrop-filter: blur(8px);
}

.btn-secondary:hover {
    background: var(--bg-card-hover);
    border-color: var(--accent-primary);
}

.btn-gold {
    background: rgba(251, 191, 36, 0.1);
    color: #fbbf24;
    border: 1px solid rgba(251, 191, 36, 0.3);
}

.btn-gold:hover {
    background: rgba(251, 191, 36, 0.2);
    transform: translateY(-2px);
}

.btn-glass {
    background: var(--bg-card);
    color: var(--text-primary);
    border: 1px solid var(--border-subtle);
    backdrop-filter: blur(12px);
}

.btn-sm {
    padding: 10px 20px;
    font-size: 0.875rem;
}

.btn-lg {
    padding: 18px 36px;
    font-size: 1rem;
}

.btn-full {
    width: 100%;
}

.btn-discord {
    background: #5865F2;
    color: white;
}

.btn-discord:hover {
    background: #4752C4;
    transform: translateY(-2px);
}

.btn-rose {
    background: rgba(244, 63, 94, 0.1);
    color: #f43f5e;
    border: 1px solid rgba(244, 63, 94, 0.3);
}

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 16px 0;
    background: rgba(10, 10, 15, 0.85);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-subtle);
    transition: all var(--transition-base);
}

.navbar.scrolled {
    padding: 12px 0;
    background: rgba(10, 10, 15, 0.95);
    border-bottom-color: var(--border-medium);
    box-shadow: var(--shadow-lg);
}

.nav-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    transition: transform var(--transition-base);
}

.nav-logo:hover {
    transform: scale(1.02);
}

.logo-img {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    object-fit: cover;
    border: 2px solid var(--accent-primary);
    box-shadow: 0 0 20px var(--accent-glow);
}

.logo-main {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--text-primary);
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 4px;
    background: var(--bg-card);
    padding: 4px;
    border-radius: var(--radius-full);
    border: 1px solid var(--border-subtle);
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    color: var(--text-secondary);
    font-weight: 600;
    font-size: 0.9rem;
    border-radius: var(--radius-full);
    transition: all var(--transition-base);
}

.nav-link:hover {
    color: var(--text-primary);
    background: var(--bg-card-hover);
}

.nav-link.active {
    background: var(--accent-gradient);
    color: white;
    box-shadow: 0 2px 12px var(--accent-glow);
}

.nav-auth {
    display: flex;
    align-items: center;
    gap: 12px;
}

.user-profile-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 6px 16px 6px 6px;
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-full);
    transition: all var(--transition-base);
}

.user-profile-link:hover {
    background: var(--bg-card-hover);
    border-color: var(--accent-primary);
}

.user-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 2px solid var(--accent-primary);
}

.nav-admin-link {
    padding: 8px 16px;
    background: rgba(244, 63, 94, 0.1);
    color: #f43f5e;
    border: 1px solid rgba(244, 63, 94, 0.2);
    border-radius: var(--radius-full);
    font-weight: 600;
    font-size: 0.85rem;
}

.nav-admin-link:hover {
    background: rgba(244, 63, 94, 0.2);
}

.nav-logout-link {
    padding: 8px 16px;
    color: var(--text-muted);
    font-weight: 500;
    font-size: 0.875rem;
}

.nav-logout-link:hover {
    color: var(--danger);
}

.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 8px;
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
}

.mobile-menu-btn span {
    width: 22px;
    height: 2px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: var(--transition-base);
}

.mobile-menu {
    display: none;
    position: fixed;
    top: 73px;
    left: 0;
    right: 0;
    background: rgba(10, 10, 15, 0.98);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-subtle);
    padding: 16px;
    z-index: 999;
}

.mobile-menu.active {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.mobile-menu a {
    padding: 14px 20px;
    color: var(--text-secondary);
    font-weight: 500;
    border-radius: var(--radius-md);
    transition: all var(--transition-base);
}

.mobile-menu a:hover,
.mobile-menu a.active {
    background: var(--bg-card);
    color: var(--text-primary);
}

.alert {
    position: fixed;
    top: 100px;
    right: 24px;
    z-index: 2000;
    padding: 16px 24px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    gap: 12px;
    backdrop-filter: blur(12px);
    animation: slideIn 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    max-width: 400px;
    box-shadow: var(--shadow-xl);
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.alert-success {
    background: rgba(16, 185, 129, 0.15);
    border: 1px solid rgba(16, 185, 129, 0.3);
    color: var(--success);
}

.alert-error {
    background: rgba(239, 68, 68, 0.15);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: var(--danger);
}

.alert button {
    background: none;
    border: none;
    color: inherit;
    font-size: 1.5rem;
    cursor: pointer;
    line-height: 1;
    opacity: 0.7;
}

.alert button:hover {
    opacity: 1;
}

.footer {
    background: var(--bg-secondary);
    padding: 80px 0 40px;
    border-top: 1px solid var(--border-subtle);
    margin-top: 80px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr repeat(3, 1fr);
    gap: 48px;
    margin-bottom: 48px;
}

.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.footer-description {
    color: var(--text-secondary);
    font-size: 0.9375rem;
    line-height: 1.7;
    max-width: 280px;
}

.footer-title {
    font-size: 0.875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-primary);
    margin-bottom: 20px;
}

.footer-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-link a {
    color: var(--text-secondary);
    font-size: 0.9375rem;
    transition: all var(--transition-base);
}

.footer-link a:hover {
    color: var(--accent-secondary);
    padding-left: 6px;
}

.footer-connection {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.footer-server-ip {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 18px;
    background: var(--bg-card);
    border: 1px solid var(--border-medium);
    border-radius: var(--radius-lg);
    color: var(--text-primary);
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.9375rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-base);
    width: 100%;
}

.footer-server-ip:hover {
    background: var(--bg-card-hover);
    border-color: var(--accent-primary);
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(139, 92, 246, 0.2);
}

.footer-server-ip:hover .footer-copy-icon {
    opacity: 1;
    transform: scale(1);
}

.footer-server-ip.copied {
    border-color: var(--success);
    background: rgba(16, 185, 129, 0.1);
}

.footer-server-ip.copied .footer-copy-icon {
    color: var(--success);
}

.footer-server-ip i:first-child {
    color: var(--accent-secondary);
    font-size: 1rem;
}

.footer-copy-icon {
    margin-left: auto;
    color: var(--text-muted);
    font-size: 0.875rem;
    opacity: 0.6;
    transition: all var(--transition-base);
}

.footer-server-status {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
}

.footer-status-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--warning);
    box-shadow: 0 0 8px var(--warning);
    animation: footerStatusPulse 1.5s ease-in-out infinite;
}

.footer-status-dot.online {
    background: var(--success);
    box-shadow: 0 0 8px var(--success);
    animation: none;
}

.footer-status-dot.offline {
    background: var(--danger);
    box-shadow: 0 0 8px var(--danger);
    animation: none;
}

@keyframes footerStatusPulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}

.footer-status-text {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-secondary);
}

.footer-status-text.online {
    color: var(--success);
}

.footer-status-text.offline {
    color: var(--danger);
}

.footer-bottom {
    padding-top: 32px;
    border-top: 1px solid var(--border-subtle);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-copyright {
    color: var(--text-muted);
    font-size: 0.875rem;
}

.footer-social {
    display: flex;
    gap: 12px;
}

.footer-social-link {
    width: 40px;
    height: 40px;
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    font-size: 1.125rem;
    transition: all var(--transition-base);
}

.footer-social-link:hover {
    background: var(--accent-primary);
    border-color: var(--accent-primary);
    color: white;
    transform: translateY(-2px);
}

.hero-pro {
    padding: 100px 0 80px;
    position: relative;
    overflow: hidden;
}

.hero-pro::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, var(--accent-glow) 0%, transparent 70%);
    pointer-events: none;
    opacity: 0.5;
}

.hero-pro-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 60px;
    align-items: center;
}

.hero-pro-content {
    position: relative;
    z-index: 2;
}

.hero-pro-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--accent-secondary);
    margin-bottom: 24px;
}

.hero-pro h1 {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 24px;
}

.hero-pro h1 span {
    display: block;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-pro-content p {
    font-size: 1.125rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 32px;
    max-width: 500px;
}

.hero-pro-actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 40px;
}

.server-ip-btn {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    padding: 16px 24px;
    background: var(--bg-card);
    border: 2px dashed var(--border-medium);
    border-radius: var(--radius-xl);
    cursor: pointer;
    transition: all var(--transition-base);
    text-align: left;
    font-family: inherit;
    color: inherit;
    width: fit-content;
}

.server-ip-btn:hover {
    border-style: solid;
    border-color: var(--accent-primary);
    background: var(--bg-card-hover);
}

.server-ip-btn.copied {
    border-color: var(--success);
    background: rgba(16, 185, 129, 0.1);
}

.ip-address {
    font-family: 'JetBrains Mono', monospace;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
}

.ip-hint {
    font-size: 0.75rem;
    color: var(--accent-secondary);
    font-weight: 500;
}

.hero-pro-card {
    background: var(--bg-glass);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-2xl);
    padding: 40px;
    backdrop-filter: blur(20px);
    text-align: center;
    position: relative;
    z-index: 2;
}

.hero-pro-skin {
    width: 200px;
    height: 320px;
    object-fit: contain;
    margin-bottom: 24px;
    filter: drop-shadow(0 0 30px var(--accent-glow));
}

.hero-pro-status {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 24px;
}

.status-dot-animated {
    display: inline-block;
    width: 8px;
    height: 8px;
    background: var(--success);
    border-radius: 50%;
    margin-right: 8px;
    animation: statusDotPulse 1.5s ease-in-out infinite;
    box-shadow: 0 0 8px var(--success);
}

.status-dot-offline {
    display: inline-block;
    width: 8px;
    height: 8px;
    background: var(--danger);
    border-radius: 50%;
    margin-right: 8px;
    box-shadow: 0 0 8px var(--danger);
}

@keyframes statusDotPulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.6; transform: scale(0.9); }
}

.hero-pro-metrics {
    display: none;
}

.server-status-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-xl);
    padding: 24px;
    backdrop-filter: blur(12px);
    transition: all var(--transition-base);
}

.server-status-card:hover {
    border-color: var(--accent-primary);
    box-shadow: 0 0 30px var(--accent-glow);
}

.server-status-header {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 16px;
}

.server-status-indicator {
    position: relative;
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(139, 92, 246, 0.15);
    border: 2px solid var(--accent-primary);
    border-radius: var(--radius-lg);
    font-size: 1.25rem;
    color: var(--accent-secondary);
    transition: all var(--transition-base);
}

.status-pulse {
    position: absolute;
    inset: -6px;
    border-radius: var(--radius-lg);
    background: rgba(16, 185, 129, 0.3);
    animation: statusPulse 2s ease-in-out infinite;
    opacity: 0;
    transition: opacity var(--transition-base);
}

.status-pulse.offline {
    background: rgba(239, 68, 68, 0.3);
    animation: none;
}

.status-pulse.checking {
    background: rgba(245, 158, 11, 0.3);
    animation: statusPulseCheck 1s ease-in-out infinite;
}

@keyframes statusPulse {
    0%, 100% { opacity: 0.3; transform: scale(1); }
    50% { opacity: 0.6; transform: scale(1.05); }
}

@keyframes statusPulseCheck {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 0.8; }
}

.server-status-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.server-status-label {
    font-weight: 700;
    font-size: 1rem;
    color: var(--text-primary);
    transition: color var(--transition-base);
}

.server-status-label.online { color: var(--success); }
.server-status-label.offline { color: var(--danger); }
.server-status-label.checking { color: var(--warning); }

.server-version {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-muted);
    font-family: 'JetBrains Mono', monospace;
    background: var(--bg-secondary);
    padding: 4px 10px;
    border-radius: var(--radius-sm);
    display: inline-block;
    width: fit-content;
}

.server-motd {
    font-size: 0.875rem;
    color: var(--text-secondary);
    padding: 12px 16px;
    background: var(--bg-secondary);
    border-radius: var(--radius-md);
    margin-bottom: 16px;
    text-align: center;
    font-weight: 500;
    border-left: 3px solid var(--accent-primary);
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.server-metrics-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-bottom: 16px;
}

.server-metric {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 14px 8px;
    background: var(--bg-secondary);
    border-radius: var(--radius-md);
    transition: all var(--transition-base);
}

.server-metric:hover {
    background: rgba(139, 92, 246, 0.1);
    transform: translateY(-2px);
}

.server-metric i {
    font-size: 1.25rem;
    color: var(--accent-secondary);
}

.server-metric-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
}

.metric-value {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--text-primary);
}

.metric-label {
    font-size: 0.65rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 600;
}

.server-online-bar {
    height: 8px;
    background: var(--bg-secondary);
    border-radius: var(--radius-full);
    overflow: hidden;
    margin-bottom: 8px;
}

.online-bar-fill {
    height: 100%;
    background: var(--accent-gradient);
    border-radius: var(--radius-full);
    transition: width 0.5s ease;
    position: relative;
}

.online-bar-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    animation: shimmer 2s infinite;
}

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

.server-online-text {
    text-align: center;
    font-size: 0.75rem;
    color: var(--text-muted);
    font-weight: 500;
}

.server-online-text span {
    color: var(--accent-secondary);
    font-weight: 700;
}

.pro-stats {
    padding: 60px 0;
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-subtle);
    border-bottom: 1px solid var(--border-subtle);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 900;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 8px;
}

.stat-text {
    font-size: 0.8125rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 600;
}

.pro-features {
    padding: 100px 0;
}

.pro-feature-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.pro-feature-large {
    grid-column: span 2;
}

.pro-feature-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-xl);
    padding: 32px;
    transition: all var(--transition-slow);
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.pro-feature-card:hover {
    background: var(--bg-card-hover);
    border-color: var(--accent-primary);
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg), 0 0 30px var(--accent-glow);
}

.pro-feature-card h3 {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.25rem;
    font-weight: 700;
}

.pro-feature-card h3 i {
    font-size: 1.5rem;
    color: var(--accent-secondary);
}

.pro-feature-card p {
    color: var(--text-secondary);
    line-height: 1.6;
}

.pro-feature-card span {
    color: var(--accent-secondary);
    font-weight: 600;
    font-size: 0.875rem;
    margin-top: auto;
}

.search-container {
    position: relative;
    flex: 1;
    min-width: 280px;
}

.search-input {
    width: 100%;
    height: 52px;
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: 0 20px 0 48px;
    color: var(--text-primary);
    font-size: 0.9375rem;
    transition: all var(--transition-base);
}

.search-input:focus {
    background: var(--bg-card-hover);
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 3px var(--accent-glow);
}

.search-input::placeholder {
    color: var(--text-muted);
}

.search-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 1rem;
}

.players-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 20px;
}

.player-card-modern {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-xl);
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 16px;
    transition: all var(--transition-base);
    text-decoration: none;
    position: relative;
    overflow: hidden;
}

.player-card-modern::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--accent-glow) 0%, transparent 50%);
    opacity: 0;
    transition: opacity var(--transition-base);
}

.player-card-modern:hover {
    background: var(--bg-card-hover);
    border-color: var(--accent-primary);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.player-card-modern:hover::before {
    opacity: 0.1;
}

.player-rank-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    font-size: 1.25rem;
    color: var(--text-muted);
    opacity: 0.5;
}

.player-rank-badge.rank-1 { color: #fbbf24; opacity: 1; }
.player-rank-badge.rank-2 { color: #94a3b8; opacity: 1; }
.player-rank-badge.rank-3 { color: #cd7f32; opacity: 1; }

.player-avatar-container {
    position: relative;
    z-index: 1;
}

.player-avatar-img {
    width: 56px;
    height: 56px;
    border-radius: var(--radius-md);
    border: 2px solid var(--border-medium);
    background: var(--bg-secondary);
    transition: all var(--transition-base);
}

.player-card-modern:hover .player-avatar-img {
    border-color: var(--accent-primary);
    transform: scale(1.05);
}

.player-online-status {
    position: absolute;
    bottom: -4px;
    right: -4px;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    border: 3px solid var(--bg-primary);
}

.player-online-status.is-online {
    background: var(--success);
    box-shadow: 0 0 10px var(--success);
}

.player-online-status.is-offline {
    background: var(--text-muted);
}

.player-online-status.is-banned {
    background: var(--danger);
}

.player-info {
    flex: 1;
    min-width: 0;
    position: relative;
    z-index: 1;
}

.player-nick {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 6px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.player-stats-row {
    display: flex;
    gap: 16px;
}

.player-mini-stat {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.8125rem;
    color: var(--text-secondary);
}

.player-mini-stat i {
    color: var(--accent-secondary);
}

.player-action {
    position: relative;
    z-index: 1;
}

.view-profile-btn {
    padding: 8px 14px;
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-secondary);
    transition: all var(--transition-base);
}

.player-card-modern:hover .view-profile-btn {
    background: var(--accent-primary);
    border-color: var(--accent-primary);
    color: white;
}

.leaderboard-tabs {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.leaderboard-tab {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-full);
    color: var(--text-secondary);
    font-weight: 600;
    font-size: 0.875rem;
    cursor: pointer;
    transition: all var(--transition-base);
}

.leaderboard-tab:hover {
    background: var(--bg-card-hover);
    color: var(--text-primary);
}

.leaderboard-tab.active {
    background: var(--accent-gradient);
    border-color: transparent;
    color: white;
    box-shadow: 0 4px 16px var(--accent-glow);
}

.leaderboard-list {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.leaderboard-item {
    display: grid;
    grid-template-columns: 60px 56px 1fr auto;
    align-items: center;
    gap: 16px;
    padding: 16px 20px;
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    text-decoration: none;
    transition: all var(--transition-base);
}

.leaderboard-item:hover {
    background: var(--bg-card-hover);
    border-color: var(--accent-primary);
    transform: translateX(4px);
}

.rank-badge {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-secondary);
    border-radius: var(--radius-md);
    font-weight: 800;
    font-size: 1rem;
    color: var(--text-muted);
}

.rank-1 .rank-badge {
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
    color: #000;
    font-size: 1.25rem;
}

.rank-2 .rank-badge {
    background: linear-gradient(135deg, #94a3b8 0%, #64748b 100%);
    color: #000;
}

.rank-3 .rank-badge {
    background: linear-gradient(135deg, #cd7f32 0%, #a16207 100%);
    color: #000;
}

.leaderboard-avatar {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-md);
    border: 2px solid var(--border-medium);
    background: var(--bg-secondary);
}

.leaderboard-info {
    min-width: 0;
}

.leaderboard-name {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 10px;
}

.leaderboard-rank-name {
    padding: 3px 8px;
    background: var(--bg-card);
    border-radius: var(--radius-sm);
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--text-muted);
}

.rank-vip { background: rgba(16, 185, 129, 0.15); color: var(--success); }
.rank-premium { background: rgba(139, 92, 246, 0.15); color: var(--accent-secondary); }
.rank-legend { background: rgba(245, 158, 11, 0.15); color: var(--warning); }

.leaderboard-value {
    padding: 10px 16px;
    background: rgba(139, 92, 246, 0.1);
    border: 1px solid rgba(139, 92, 246, 0.2);
    border-radius: var(--radius-md);
    font-weight: 700;
    font-size: 0.875rem;
    color: var(--accent-secondary);
    white-space: nowrap;
}

.wiki-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
    gap: 24px;
}

.wiki-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-xl);
    overflow: hidden;
    text-decoration: none;
    transition: all var(--transition-slow);
    display: flex;
    flex-direction: column;
}

.wiki-card:hover {
    background: var(--bg-card-hover);
    border-color: var(--accent-primary);
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.wiki-card-image {
    position: relative;
    height: 180px;
    overflow: hidden;
    background: var(--bg-secondary);
}

.wiki-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.wiki-card:hover .wiki-card-image img {
    transform: scale(1.05);
}

.wiki-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: var(--text-muted);
    opacity: 0.3;
}

.wiki-category-tag {
    position: absolute;
    top: 12px;
    left: 12px;
    padding: 6px 12px;
    background: rgba(10, 10, 15, 0.8);
    backdrop-filter: blur(8px);
    border-radius: var(--radius-md);
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--accent-secondary);
    border: 1px solid var(--border-subtle);
}

.wiki-card-body {
    padding: 24px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.wiki-card-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 12px;
    line-height: 1.3;
}

.wiki-card-text {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.6;
    flex: 1;
    margin-bottom: 20px;
}

.wiki-card-footer {
    display: flex;
    gap: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--border-subtle);
}

.wiki-footer-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.wiki-footer-item i {
    font-size: 0.875rem;
}

.wiki-article {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-2xl);
    padding: 48px;
    backdrop-filter: blur(12px);
}

.article-header {
    margin-bottom: 32px;
}

.card-badge {
    display: inline-block;
    padding: 6px 12px;
    background: rgba(139, 92, 246, 0.1);
    border: 1px solid rgba(139, 92, 246, 0.2);
    border-radius: var(--radius-md);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--accent-secondary);
}

.article-title {
    font-size: clamp(1.75rem, 3vw, 2.5rem);
    font-weight: 800;
    line-height: 1.2;
    margin: 20px 0 16px;
}

.article-content {
    color: var(--text-secondary);
    font-size: 1.0625rem;
    line-height: 1.8;
}

.article-content h1, .article-content h2, .article-content h3 {
    color: var(--text-primary);
    margin: 2em 0 0.8em;
    font-weight: 700;
}

.article-content p {
    margin-bottom: 1.5em;
}

.article-content img {
    max-width: 100%;
    height: auto;
    border-radius: var(--radius-lg);
    margin: 1.5em 0;
    border: 1px solid var(--border-subtle);
}

.article-content blockquote {
    border-left: 4px solid var(--accent-primary);
    padding: 1em 1.5em;
    background: rgba(139, 92, 246, 0.05);
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
    font-style: italic;
    margin: 1.5em 0;
}

.article-content code {
    background: var(--bg-secondary);
    padding: 0.2em 0.4em;
    border-radius: 4px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.9em;
}

.article-content pre {
    background: var(--bg-secondary);
    padding: 1.5em;
    border-radius: var(--radius-lg);
    overflow-x: auto;
    margin: 1.5em 0;
    border: 1px solid var(--border-subtle);
}

.article-content pre code {
    background: none;
    padding: 0;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
    margin-top: 48px;
}

.pricing-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-xl);
    padding: 40px 32px;
    text-align: center;
    transition: all var(--transition-slow);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.pricing-card:hover {
    background: var(--bg-card-hover);
    border-color: var(--accent-primary);
    transform: translateY(-4px);
}

.pricing-card.featured {
    background: rgba(139, 92, 246, 0.05);
    border-color: var(--accent-primary);
    transform: scale(1.02);
    box-shadow: var(--shadow-glow);
}

.pricing-icon {
    font-size: 3rem;
    margin-bottom: 20px;
}

.pricing-name {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 12px;
}

.pricing-price {
    font-size: 2.5rem;
    font-weight: 900;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 24px;
}

.pricing-features {
    width: 100%;
    margin-bottom: 32px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    flex: 1;
}

.pricing-feature {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: var(--text-secondary);
    font-size: 0.9375rem;
}

.pricing-feature::before {
    content: '✦';
    color: var(--accent-secondary);
}

.feature-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-xl);
    padding: 32px;
    transition: all var(--transition-slow);
}

.feature-card:hover {
    background: var(--bg-card-hover);
    border-color: var(--accent-primary);
    transform: translateY(-4px);
}

.feature-icon {
    width: 56px;
    height: 56px;
    background: rgba(139, 92, 246, 0.1);
    border: 1px solid rgba(139, 92, 246, 0.2);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--accent-secondary);
    margin-bottom: 20px;
}

.feature-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 12px;
}

.feature-description {
    color: var(--text-secondary);
    line-height: 1.6;
}

.feature-description p {
    margin-bottom: 8px;
}

.empty-state {
    text-align: center;
    padding: 80px 20px;
}

.empty-state-icon {
    font-size: 4rem;
    color: var(--text-muted);
    opacity: 0.3;
    margin-bottom: 20px;
}

.empty-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 12px;
}

.empty-desc {
    color: var(--text-secondary);
    max-width: 400px;
    margin: 0 auto;
}

.profile-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-2xl);
    padding: 48px;
    backdrop-filter: blur(12px);
}

.profile-header {
    display: flex;
    align-items: center;
    gap: 40px;
    margin-bottom: 48px;
    flex-wrap: wrap;
}

.profile-skin-preview {
    width: 160px;
    height: 240px;
    object-fit: contain;
    filter: drop-shadow(0 0 20px var(--accent-glow));
    transition: transform var(--transition-slow);
}

.profile-skin-preview:hover {
    transform: scale(1.05) translateY(-8px);
}

.profile-title {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 12px;
}

.profile-badges {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.profile-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 20px;
    margin-bottom: 48px;
}

.profile-stat-card {
    text-align: center;
    padding: 24px 16px;
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-xl);
    transition: all var(--transition-base);
}

.profile-stat-card:hover {
    background: var(--bg-card-hover);
    border-color: var(--accent-primary);
    transform: translateY(-2px);
}

.profile-stat-icon {
    font-size: 2rem;
    margin-bottom: 10px;
    color: var(--accent-secondary);
}

.profile-stat-value {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--accent-secondary);
    margin-bottom: 6px;
}

.profile-stat-label {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 600;
}

.player-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: 16px;
    display: flex;
    align-items: center;
    gap: 16px;
    transition: all var(--transition-base);
}

.player-card:hover {
    background: var(--bg-card-hover);
    border-color: var(--accent-primary);
}

.custom-select-wrapper {
    position: relative;
    user-select: none;
    min-width: 200px;
}

.custom-select {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 52px;
    padding: 0 16px;
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    color: var(--text-primary);
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all var(--transition-base);
}

.custom-select:hover {
    border-color: var(--accent-primary);
}

.custom-select.active {
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
    border-color: var(--accent-primary);
}

.custom-select-arrow {
    font-size: 0.75rem;
    transition: transform var(--transition-base);
    color: var(--accent-secondary);
}

.custom-select.active .custom-select-arrow {
    transform: rotate(180deg);
}

.custom-options {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg-secondary);
    border: 1px solid var(--accent-primary);
    border-top: none;
    border-bottom-left-radius: var(--radius-lg);
    border-bottom-right-radius: var(--radius-lg);
    overflow: hidden;
    z-index: 100;
    display: none;
}

.custom-select.active + .custom-options {
    display: block;
}

.custom-option {
    padding: 12px 16px;
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 0.875rem;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.custom-option:hover {
    background: rgba(139, 92, 246, 0.1);
    color: var(--text-primary);
}

.custom-option.selected {
    color: var(--accent-secondary);
    background: rgba(139, 92, 246, 0.1);
}

.modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(8px);
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.fade-in {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.6s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.reveal-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1), transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal-up.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }

@media (max-width: 1024px) {
    .hero-pro-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .hero-pro-content {
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    
    .hero-pro-content p {
        margin-left: auto;
        margin-right: auto;
    }
    
    .hero-pro-actions {
        justify-content: center;
    }
    
    .server-ip-btn {
        margin: 0 auto;
    }
    
    .hero-pro-card {
        max-width: 400px;
        margin: 0 auto;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .pro-feature-grid {
        grid-template-columns: 1fr;
    }
    
    .pro-feature-large {
        grid-column: span 1;
    }
    
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
    
    .leaderboard-item {
        grid-template-columns: 50px 48px 1fr auto;
        gap: 12px;
        padding: 12px 16px;
    }
}

@media (max-width: 768px) {
    .nav-menu,
    .nav-auth {
        display: none;
    }
    
    .mobile-menu-btn {
        display: flex;
    }
    
    .section {
        padding: 60px 0;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    .wiki-grid,
    .players-grid {
        grid-template-columns: 1fr;
    }
    
    .pricing-grid {
        grid-template-columns: 1fr;
    }
    
    .pricing-card.featured {
        transform: scale(1);
    }
    
    .leaderboard-item {
        grid-template-columns: 48px 44px 1fr;
    }
    
    .leaderboard-value {
        grid-column: 1 / -1;
        text-align: center;
    }
    
    .profile-header {
        flex-direction: column;
        text-align: center;
    }
    
    .wiki-article {
        padding: 24px;
    }
    
    .profile-card {
        padding: 24px;
    }
}

details {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    overflow: hidden;
}

details summary {
    padding: 20px 24px;
    font-weight: 600;
    cursor: pointer;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all var(--transition-base);
}

details summary:hover {
    background: var(--bg-card-hover);
}

details[open] summary {
    border-bottom: 1px solid var(--border-subtle);
}

details p {
    padding: 20px 24px;
    color: var(--text-secondary);
    line-height: 1.7;
}

details summary::after {
    content: '+';
    font-size: 1.5rem;
    color: var(--accent-secondary);
    transition: transform var(--transition-base);
}

details[open] summary::after {
    transform: rotate(45deg);
}

.page-loader {
    position: fixed;
    inset: 0;
    background: var(--bg-primary);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.page-loader.loaded {
    opacity: 0;
    visibility: hidden;
}

.loader-content {
    text-align: center;
    z-index: 2;
}

.loader-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-bottom: 40px;
    animation: logoFloat 2s ease-in-out infinite;
}

.loader-logo img {
    width: 64px;
    height: 64px;
    border-radius: 16px;
    border: 3px solid var(--accent-primary);
    box-shadow: 0 0 30px var(--accent-glow);
}

.loader-logo span {
    font-size: 2rem;
    font-weight: 900;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

@keyframes logoFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

.loader-bar {
    width: 280px;
    height: 4px;
    background: var(--bg-secondary);
    border-radius: var(--radius-full);
    overflow: hidden;
    margin-bottom: 20px;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.3);
}

.loader-progress {
    height: 100%;
    width: 0%;
    background: var(--accent-gradient);
    border-radius: var(--radius-full);
    transition: width 0.15s ease;
    position: relative;
}

.loader-progress::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 60px;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.5), transparent);
    animation: loaderShine 1s ease-in-out infinite;
}

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

.loader-text {
    font-size: 0.875rem;
    color: var(--text-muted);
    font-weight: 500;
    animation: textPulse 1.5s ease-in-out infinite;
}

@keyframes textPulse {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 1; }
}

.loader-particles {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
}

.loader-particles span {
    position: absolute;
    width: 4px;
    height: 4px;
    background: var(--accent-primary);
    border-radius: 50%;
    opacity: 0.6;
    animation: particleFloat 4s ease-in-out infinite;
}

.loader-particles span:nth-child(1) { left: 10%; top: 20%; animation-delay: 0s; }
.loader-particles span:nth-child(2) { left: 80%; top: 30%; animation-delay: 0.5s; }
.loader-particles span:nth-child(3) { left: 30%; top: 70%; animation-delay: 1s; }
.loader-particles span:nth-child(4) { left: 70%; top: 80%; animation-delay: 1.5s; }
.loader-particles span:nth-child(5) { left: 50%; top: 10%; animation-delay: 2s; }

@keyframes particleFloat {
    0%, 100% { transform: translateY(0) scale(1); opacity: 0.3; }
    50% { transform: translateY(-30px) scale(1.5); opacity: 0.8; }
}

.page-transition {
    animation: pageTransition 0.4s ease;
}

@keyframes pageTransition {
    0% { opacity: 1; transform: translateY(0); }
    50% { opacity: 0; transform: translateY(-20px); }
    100% { opacity: 1; transform: translateY(0); }
}

body {
    animation: bodyFadeIn 0.6s ease;
}

@keyframes bodyFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.reveal-up {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1), transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal-up.animate-in {
    opacity: 1;
    transform: translateY(0);
}

.reveal-left {
    opacity: 0;
    transform: translateX(-40px);
    transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1), transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal-left.animate-in {
    opacity: 1;
    transform: translateX(0);
}

.reveal-right {
    opacity: 0;
    transform: translateX(40px);
    transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1), transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal-right.animate-in {
    opacity: 1;
    transform: translateX(0);
}

.reveal-scale {
    opacity: 0;
    transform: scale(0.9);
    transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1), transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal-scale.animate-in {
    opacity: 1;
    transform: scale(1);
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }
.reveal-delay-5 { transition-delay: 0.5s; }

.card-hover-glow {
    position: relative;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.card-hover-glow::before {
    content: '';
    position: absolute;
    inset: -2px;
    background: var(--accent-gradient);
    border-radius: inherit;
    opacity: 0;
    z-index: -1;
    transition: opacity 0.4s ease;
    filter: blur(8px);
}

.card-hover-glow:hover::before {
    opacity: 0.5;
}

.card-hover-lift {
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.card-hover-lift:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0,0,0,0.4), 0 0 30px var(--accent-glow);
}

.nav-link {
    position: relative;
    overflow: hidden;
}

.nav-link::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--accent-gradient);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.nav-link:hover::before,
.nav-link.active::before {
    width: 60%;
}

.nav-link:hover {
    transform: translateY(-2px);
}

.btn {
    position: relative;
    overflow: hidden;
}

.btn::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255,255,255,0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
}

.btn:active::after {
    width: 300px;
    height: 300px;
}

.wiki-card, .player-card-modern, .pro-feature-card, .pricing-card {
    position: relative;
    overflow: hidden;
}

.wiki-card::after, .player-card-modern::after, .pro-feature-card::after, .pricing-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.05), transparent);
    transition: left 0.8s ease;
    pointer-events: none;
}

.wiki-card:hover::after, .player-card-modern:hover::after, 
.pro-feature-card:hover::after, .pricing-card:hover::after {
    left: 100%;
}

.main-content {
    animation: contentSlideUp 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.footer-social-link {
    position: relative;
    overflow: hidden;
}

.footer-social-link::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--accent-gradient);
    transform: scale(0);
    border-radius: inherit;
    transition: transform 0.3s ease;
}

.footer-social-link:hover::before {
    transform: scale(1);
}

.footer-social-link i {
    position: relative;
    z-index: 1;
    transition: transform 0.3s ease;
}

.footer-social-link:hover i {
    transform: scale(1.2) rotate(10deg);
}

.stat-number {
    animation: statCountUp 1s ease-out;
}

@keyframes statCountUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.section-header {
    animation: headerFadeIn 1s ease;
}

@keyframes headerFadeIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.leaderboard-item {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.leaderboard-item:hover {
    animation: itemWiggle 0.4s ease;
}

@keyframes itemWiggle {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-4px) rotate(-1deg); }
    75% { transform: translateX(4px) rotate(1deg); }
}

.rank-badge {
    animation: badgePop 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

@keyframes badgePop {
    from { transform: scale(0); }
    to { transform: scale(1); }
}

input, textarea, select {
    transition: all 0.3s ease;
}

input:focus, textarea:focus, select:focus {
    animation: inputGlow 1s ease infinite;
}

@keyframes inputGlow {
    0%, 100% { box-shadow: 0 0 0 3px var(--accent-glow); }
    50% { box-shadow: 0 0 0 4px var(--accent-glow), 0 0 20px var(--accent-glow); }
}

.leaderboard-item {
    animation: listItemSlide 0.6s cubic-bezier(0.4, 0, 0.2, 1) backwards;
}

.leaderboard-item:nth-child(1) { animation-delay: 0.1s; }
.leaderboard-item:nth-child(2) { animation-delay: 0.15s; }
.leaderboard-item:nth-child(3) { animation-delay: 0.2s; }
.leaderboard-item:nth-child(4) { animation-delay: 0.25s; }
.leaderboard-item:nth-child(5) { animation-delay: 0.3s; }
.leaderboard-item:nth-child(6) { animation-delay: 0.35s; }
.leaderboard-item:nth-child(7) { animation-delay: 0.4s; }
.leaderboard-item:nth-child(8) { animation-delay: 0.45s; }
.leaderboard-item:nth-child(9) { animation-delay: 0.5s; }
.leaderboard-item:nth-child(10) { animation-delay: 0.55s; }

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

.stats-grid .stat-item {
    animation: statBounce 0.8s cubic-bezier(0.4, 0, 0.2, 1) backwards;
}

.stats-grid .stat-item:nth-child(1) { animation-delay: 0.1s; }
.stats-grid .stat-item:nth-child(2) { animation-delay: 0.2s; }
.stats-grid .stat-item:nth-child(3) { animation-delay: 0.3s; }
.stats-grid .stat-item:nth-child(4) { animation-delay: 0.4s; }

@keyframes statBounce {
    from {
        opacity: 0;
        transform: translateY(30px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}
