/* ============================================================
   LifeEmpire - Stylesheet
   تم تیره سبز-طلایی + glassmorphism + particles
   ============================================================ */

/* ─── Variables ─── */
:root {
    --primary-bg: #0a0f0a;
    --secondary-bg: #0f1a0f;
    --card-bg: rgba(14, 26, 14, 0.6);
    --card-bg-solid: #0e1a0e;
    --gold: #FFD700;
    --gold-dark: #e6c200;
    --gold-light: #FFFACD;
    --green: #4ade80;
    --green-dark: #22c55e;
    --green-light: #86efac;
    --text: #ffffff;
    --text-secondary: #a1a1aa;
    --text-muted: #71717a;
    --border: rgba(74, 222, 128, 0.25);
    --border-light: rgba(74, 222, 128, 0.15);
    --border-gold: rgba(255, 215, 0, 0.3);
    --success: #4ade80;
    --error: #ef4444;
    --warning: #f59e0b;
    --info: #60a5fa;
    --hover-bg: rgba(74, 222, 128, 0.08);
    --shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    --shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.3);
    --shadow-glow: 0 0 30px rgba(255, 215, 0, 0.3);
    --glow-green: 0 0 20px rgba(74, 222, 128, 0.4);
    --glass-bg: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.08);
    --radius: 16px;
    --radius-sm: 10px;
    --radius-lg: 24px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-bounce: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

[data-theme="light"] {
    --primary-bg: #f0fdf4;
    --secondary-bg: #ffffff;
    --card-bg: rgba(255, 255, 255, 0.85);
    --card-bg-solid: #ffffff;
    --text: #1a2e1a;
    --text-secondary: #525252;
    --text-muted: #71717a;
    --border: rgba(34, 197, 94, 0.25);
    --border-light: rgba(34, 197, 94, 0.12);
    --hover-bg: rgba(34, 197, 94, 0.06);
    --glass-bg: rgba(0, 0, 0, 0.02);
    --glass-border: rgba(0, 0, 0, 0.06);
    --shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
}

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

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

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

body::before {
    content: '';
    position: fixed;
    inset: 0;
    background:
        radial-gradient(circle at 20% 20%, rgba(74, 222, 128, 0.08), transparent 40%),
        radial-gradient(circle at 80% 80%, rgba(255, 215, 0, 0.06), transparent 40%);
    z-index: -2;
    pointer-events: none;
}

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

a:hover { color: var(--green); }

img { max-width: 100%; display: block; }

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

input, textarea, select {
    font-family: inherit;
    font-size: 1rem;
}

::selection {
    background: var(--green);
    color: var(--primary-bg);
}

::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--secondary-bg); }
::-webkit-scrollbar-thumb {
    background: linear-gradient(var(--green-dark), var(--gold-dark));
    border-radius: 5px;
}

/* ─── Container ─── */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ─── Loading Screen ─── */
.loading-screen {
    position: fixed;
    inset: 0;
    background: var(--primary-bg);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 99999;
    transition: opacity 0.6s ease, visibility 0.6s ease;
}

.loading-screen.hidden {
    opacity: 0;
    visibility: hidden;
}

.loading-logo {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--gold), var(--gold-dark));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    font-weight: 900;
    color: #000;
    margin-bottom: 24px;
    animation: pulse 1.5s ease-in-out infinite;
    box-shadow: 0 0 40px rgba(255, 215, 0, 0.5);
}

.loading-bar {
    width: 200px;
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    overflow: hidden;
}

.loading-bar::after {
    content: '';
    display: block;
    width: 50%;
    height: 100%;
    background: linear-gradient(90deg, var(--gold), var(--green));
    border-radius: 4px;
    animation: loading 1.2s ease-in-out infinite;
}

.loading-text {
    color: var(--text-secondary);
    margin-top: 16px;
    font-size: 14px;
}

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

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

/* ─── Particles Canvas ─── */
#particles-canvas {
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
}

/* ─── Announcement Bar ─── */
.announcement-bar {
    background: linear-gradient(90deg, rgba(255, 215, 0, 0.1), rgba(74, 222, 128, 0.1), rgba(255, 215, 0, 0.1));
    background-size: 200% 100%;
    animation: shimmer 4s linear infinite;
    color: var(--gold-light);
    padding: 8px 24px;
    font-size: 14px;
    text-align: center;
    border-bottom: 1px solid var(--border-gold);
    position: relative;
    z-index: 10;
}

.announcement-bar i { margin-left: 8px; color: var(--gold); }

@keyframes shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* ─── Header ─── */
.header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: var(--card-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--glass-border);
    padding: 12px 0;
    transition: var(--transition);
}

.header.scrolled {
    box-shadow: var(--shadow-sm);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}

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

.logo-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--gold), var(--gold-dark));
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    color: #000;
    font-size: 18px;
    box-shadow: var(--shadow-glow);
}

.logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.logo-name {
    font-weight: 800;
    font-size: 18px;
    background: linear-gradient(135deg, var(--gold), var(--green-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.logo-tag {
    font-size: 11px;
    color: var(--text-muted);
    letter-spacing: 1px;
}

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

.nav-link {
    padding: 8px 16px;
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: var(--transition);
}

.nav-link:hover {
    color: var(--green);
    background: var(--hover-bg);
}

.nav-link.active {
    color: var(--gold);
    background: rgba(255, 215, 0, 0.1);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.server-status {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    background: var(--glass-bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 13px;
}

.status-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--green);
    box-shadow: 0 0 10px var(--green);
    animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.status-text { display: flex; flex-direction: column; line-height: 1.2; }
.status-online { font-weight: 700; color: var(--green); font-size: 13px; }
.status-label { font-size: 11px; color: var(--text-muted); }

/* ─── Buttons ─── */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 600;
    transition: var(--transition-bounce);
    cursor: pointer;
    border: 1px solid transparent;
    white-space: nowrap;
}

.btn-primary {
    background: linear-gradient(135deg, var(--gold), var(--gold-dark));
    color: #000;
    box-shadow: 0 4px 14px rgba(255, 215, 0, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 215, 0, 0.4);
    color: #000;
}

.btn-green {
    background: linear-gradient(135deg, var(--green), var(--green-dark));
    color: #000;
    box-shadow: 0 4px 14px rgba(74, 222, 128, 0.3);
}

.btn-green:hover {
    transform: translateY(-2px);
    color: #000;
}

.btn-ghost {
    background: var(--glass-bg);
    color: var(--text);
    border-color: var(--border-light);
}

.btn-ghost:hover {
    background: var(--hover-bg);
    border-color: var(--border);
}

.btn-icon {
    padding: 10px 12px;
    background: var(--glass-bg);
    border: 1px solid var(--border-light);
    color: var(--text-secondary);
    font-size: 13px;
}

.btn-icon:hover {
    background: var(--hover-bg);
    color: var(--green);
    border-color: var(--border);
}

.btn-text { display: none; }

@media (min-width: 768px) {
    .btn-text { display: inline; }
    .btn-icon { padding: 10px 16px; }
}

.btn-lg { padding: 14px 28px; font-size: 16px; }
.btn-sm { padding: 6px 12px; font-size: 12px; }
.btn-block { width: 100%; justify-content: center; }

/* ─── User Menu ─── */
.user-menu { position: relative; }

.user-menu-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px 6px 6px;
    background: var(--glass-bg);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-sm);
    transition: var(--transition);
}

.user-menu-btn:hover {
    background: var(--hover-bg);
    border-color: var(--border);
}

.user-avatar, .user-avatar-placeholder {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
    background: linear-gradient(135deg, var(--gold), var(--green));
    color: #000;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 14px;
}

.user-name {
    font-size: 14px;
    font-weight: 500;
    color: var(--text);
}

.user-menu-btn i { font-size: 10px; color: var(--text-muted); }

.user-menu-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    min-width: 200px;
    background: var(--card-bg-solid);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-sm);
    padding: 6px;
    box-shadow: var(--shadow);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: var(--transition);
    z-index: 100;
}

.user-menu-dropdown.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.user-menu-dropdown a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    border-radius: 8px;
    color: var(--text-secondary);
    font-size: 14px;
    transition: var(--transition);
}

.user-menu-dropdown a:hover {
    background: var(--hover-bg);
    color: var(--green);
}

.user-menu-dropdown a i { width: 18px; }

/* فرم خروج (به‌جای لینک ساده، برای امنیت CSRF) */
.user-menu-dropdown form { margin: 0; }
.user-menu-dropdown .logout-link,
.admin-nav .admin-logout-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 10px 14px;
    border-radius: 8px;
    color: var(--text-secondary);
    font-size: 14px;
    background: none;
    border: none;
    cursor: pointer;
    font-family: inherit;
    transition: var(--transition);
    text-align: right;
}
.admin-nav .admin-logout-btn {
    padding: 12px 18px;
    font-size: 15px;
}
.user-menu-dropdown .logout-link i,
.admin-nav .admin-logout-btn i { width: 18px; }
.user-menu-dropdown .logout-link:hover,
.admin-nav .admin-logout-btn:hover {
    background: var(--hover-bg);
    color: var(--error);
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 4px;
    padding: 8px;
    border-radius: 8px;
    background: var(--glass-bg);
    border: 1px solid var(--border-light);
}

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

.mobile-menu-toggle.active span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.mobile-menu-toggle.active span:nth-child(2) { opacity: 0; }
.mobile-menu-toggle.active span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ─── Flash Messages ─── */
.flash-container {
    position: fixed;
    top: 90px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2000;
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-width: 90%;
    width: 480px;
}

.flash-message {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 18px;
    border-radius: var(--radius-sm);
    background: var(--card-bg-solid);
    border: 1px solid var(--border-light);
    box-shadow: var(--shadow);
    animation: slide-down 0.4s ease;
}

.flash-success { border-color: var(--success); }
.flash-success i { color: var(--success); }
.flash-error { border-color: var(--error); }
.flash-error i { color: var(--error); }
.flash-warning { border-color: var(--warning); }
.flash-warning i { color: var(--warning); }
.flash-info { border-color: var(--info); }
.flash-info i { color: var(--info); }

.flash-message span { flex: 1; font-size: 14px; }
.flash-close {
    color: var(--text-muted);
    font-size: 20px;
    line-height: 1;
    padding: 0 4px;
}
.flash-close:hover { color: var(--text); }

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

/* ─── Hero Section ─── */
.hero {
    position: relative;
    padding: 80px 0 60px;
    text-align: center;
    overflow: hidden;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px;
    background: rgba(255, 215, 0, 0.1);
    border: 1px solid var(--border-gold);
    border-radius: 100px;
    color: var(--gold);
    font-size: 13px;
    margin-bottom: 24px;
}

.hero-badge .dot {
    width: 8px;
    height: 8px;
    background: var(--gold);
    border-radius: 50%;
    animation: pulse-dot 2s infinite;
}

.hero-title {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 24px;
    background: linear-gradient(135deg, var(--text) 0%, var(--green-light) 50%, var(--gold) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 0 60px rgba(74, 222, 128, 0.3);
}

.hero-title .accent {
    background: linear-gradient(135deg, var(--gold), var(--green));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: inline-block;
}

.hero-description {
    font-size: clamp(1rem, 2vw, 1.25rem);
    color: var(--text-secondary);
    max-width: 720px;
    margin: 0 auto 36px;
    line-height: 1.8;
}

.hero-actions {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 60px;
}

.hero-server-card {
    max-width: 480px;
    margin: 0 auto;
    padding: 24px;
    background: var(--card-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--border-gold);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-glow);
}

.hero-server-ip {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(0, 0, 0, 0.3);
    padding: 16px;
    border-radius: var(--radius-sm);
    margin-bottom: 16px;
    border: 1px solid var(--border-light);
}

.hero-server-ip code {
    font-family: 'Courier New', monospace;
    font-size: 18px;
    color: var(--gold);
    font-weight: 700;
    direction: ltr;
    letter-spacing: 1px;
}

.hero-server-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    text-align: center;
}

.hero-stat-num {
    font-size: 24px;
    font-weight: 800;
    color: var(--green);
    display: block;
}

.hero-stat-label {
    font-size: 11px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ─── Stats Section ─── */
.stats-section {
    padding: 60px 0;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
}

.stat-card {
    background: var(--card-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--border-light);
    border-radius: var(--radius);
    padding: 28px 24px;
    text-align: center;
    transition: var(--transition-bounce);
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--gold), var(--green));
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.4s ease;
}

.stat-card:hover {
    transform: translateY(-6px);
    border-color: var(--border);
    box-shadow: var(--shadow);
}

.stat-card:hover::before { transform: scaleX(1); }

.stat-icon {
    width: 56px;
    height: 56px;
    margin: 0 auto 16px;
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.15), rgba(74, 222, 128, 0.15));
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: var(--gold);
}

.stat-value {
    font-size: 36px;
    font-weight: 900;
    color: var(--text);
    line-height: 1.2;
    margin-bottom: 6px;
}

.stat-value .accent { color: var(--gold); }

.stat-label {
    font-size: 14px;
    color: var(--text-secondary);
}

/* ─── Section Base ─── */
.section {
    padding: 70px 0;
}

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

.section-title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    margin-bottom: 12px;
    background: linear-gradient(135deg, var(--text), var(--green-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

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

.section-title .accent { color: var(--gold); -webkit-text-fill-color: var(--gold); }

/* ─── Shop ─── */
.shop-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
}

.shop-card {
    background: var(--card-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--border-light);
    border-radius: var(--radius);
    overflow: hidden;
    transition: var(--transition-bounce);
    position: relative;
    display: flex;
    flex-direction: column;
}

.shop-card:hover {
    transform: translateY(-8px);
    border-color: var(--border-gold);
    box-shadow: var(--shadow-glow);
}

.shop-card-image {
    height: 140px;
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.15), rgba(74, 222, 128, 0.15));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
    color: var(--gold);
    position: relative;
}

.shop-card-tag {
    position: absolute;
    top: 12px;
    right: 12px;
    background: var(--error);
    color: white;
    padding: 4px 10px;
    border-radius: 100px;
    font-size: 11px;
    font-weight: 700;
}

.shop-card-tag.gold {
    background: linear-gradient(135deg, var(--gold), var(--gold-dark));
    color: #000;
}

.shop-card-body {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.shop-card-title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 8px;
}

.shop-card-desc {
    color: var(--text-secondary);
    font-size: 13px;
    margin-bottom: 16px;
    flex: 1;
}

.shop-card-features {
    list-style: none;
    margin-bottom: 20px;
}

.shop-card-features li {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 4px 0;
    font-size: 13px;
    color: var(--text-secondary);
}

.shop-card-features li i {
    color: var(--green);
    font-size: 11px;
}

.shop-card-price {
    display: flex;
    align-items: baseline;
    gap: 8px;
    margin-bottom: 16px;
}

.price-current {
    font-size: 24px;
    font-weight: 800;
    color: var(--gold);
}

.price-old {
    text-decoration: line-through;
    color: var(--text-muted);
    font-size: 14px;
}

/* ─── Servers Section ─── */
.servers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.server-card {
    background: var(--card-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--border-light);
    border-radius: var(--radius);
    padding: 24px;
    transition: var(--transition-bounce);
    position: relative;
    overflow: hidden;
}

.server-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--server-color, var(--green));
    opacity: 0;
    transition: opacity 0.3s;
    pointer-events: none;
    mix-blend-mode: overlay;
}

.server-card:hover {
    transform: translateY(-4px);
    border-color: var(--server-color, var(--green));
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.server-card-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}

.server-card-name {
    font-size: 20px;
    font-weight: 800;
    color: var(--server-color, var(--green));
}

.server-badge {
    background: var(--server-color, var(--green));
    color: #000;
    padding: 4px 10px;
    border-radius: 100px;
    font-size: 11px;
    font-weight: 700;
}

.server-card-ip {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-sm);
    padding: 10px 14px;
    margin-bottom: 16px;
    font-family: 'Courier New', monospace;
    color: var(--gold);
    direction: ltr;
    text-align: left;
    font-size: 13px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.server-card-desc {
    color: var(--text-secondary);
    font-size: 14px;
    margin-bottom: 16px;
}

.server-card-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    font-size: 13px;
}

.server-card-stats > div {
    background: rgba(0, 0, 0, 0.2);
    padding: 8px 12px;
    border-radius: 8px;
    text-align: center;
}

.server-card-stats .num {
    color: var(--green);
    font-weight: 700;
    display: block;
}

.server-card-stats .lbl {
    color: var(--text-muted);
    font-size: 11px;
}

/* ─── Rankings Preview ─── */
.rankings-table {
    background: var(--card-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--border-light);
    border-radius: var(--radius);
    overflow: hidden;
}

.rankings-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    border-bottom: 1px solid var(--border-light);
    flex-wrap: wrap;
    gap: 12px;
}

.rankings-tabs {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.tab-btn {
    padding: 8px 14px;
    background: var(--glass-bg);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    font-size: 13px;
    transition: var(--transition);
}

.tab-btn:hover {
    color: var(--green);
    border-color: var(--border);
}

.tab-btn.active {
    background: linear-gradient(135deg, var(--gold), var(--gold-dark));
    color: #000;
    border-color: transparent;
    font-weight: 600;
}

.rankings-search {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--glass-bg);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-sm);
    padding: 0 14px;
    width: 260px;
    max-width: 100%;
}

.rankings-search input {
    background: transparent;
    border: none;
    outline: none;
    color: var(--text);
    padding: 10px 0;
    flex: 1;
    font-size: 14px;
}

.rankings-search i { color: var(--text-muted); }

.rankings-table-wrap {
    overflow-x: auto;
}

.rankings-table table {
    width: 100%;
    border-collapse: collapse;
    min-width: 600px;
}

.rankings-table th {
    background: rgba(0, 0, 0, 0.3);
    padding: 14px 16px;
    text-align: right;
    font-weight: 600;
    font-size: 13px;
    color: var(--text-secondary);
    border-bottom: 1px solid var(--border-light);
    white-space: nowrap;
}

.rankings-table td {
    padding: 14px 16px;
    border-bottom: 1px solid var(--border-light);
    vertical-align: middle;
}

.rankings-table tr:last-child td { border-bottom: none; }

.rankings-table tbody tr {
    transition: var(--transition);
}

.rankings-table tbody tr:hover {
    background: var(--hover-bg);
}

.rank-cell {
    width: 50px;
    text-align: center;
    font-weight: 800;
    font-size: 16px;
    color: var(--text-secondary);
}

.rank-cell.rank-1 { color: #FFD700; font-size: 22px; }
.rank-cell.rank-2 { color: #C0C0C0; font-size: 20px; }
.rank-cell.rank-3 { color: #CD7F32; font-size: 18px; }

.player-cell {
    display: flex;
    align-items: center;
    gap: 12px;
}

.player-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--gold), var(--green));
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: #000;
    font-size: 14px;
    flex-shrink: 0;
}

.rank-1 .player-avatar {
    background: linear-gradient(135deg, #FFD700, #FFA500);
    box-shadow: 0 0 16px rgba(255, 215, 0, 0.5);
}

.rank-2 .player-avatar {
    background: linear-gradient(135deg, #E5E5E5, #A0A0A0);
}

.rank-3 .player-avatar {
    background: linear-gradient(135deg, #CD7F32, #8B4513);
}

.player-name {
    font-weight: 600;
    color: var(--text);
}

.player-discord {
    font-size: 11px;
    color: var(--text-muted);
}

.tier-badges {
    display: flex;
    gap: 4px;
    flex-wrap: wrap;
}

.tier-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 8px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 600;
}

.tier-badge i { font-size: 10px; }

.tier-overall { background: linear-gradient(135deg, #f59e0b, #f97316); }
.tier-uhc     { background: linear-gradient(135deg, #E91E63, #EC407A); }
.tier-smp     { background: linear-gradient(135deg, #00BCD4, #00ACC1); }
.tier-sword   { background: linear-gradient(135deg, #3F51B5, #5C6BC0); }
.tier-mace    { background: linear-gradient(135deg, #795548, #8D6E63); }
.tier-vanilla { background: linear-gradient(135deg, #9E9E9E, #BDBDBD); color: #000; }
.tier-pot     { background: linear-gradient(135deg, #7B1FA2, #9C27B0); }
.tier-nethop  { background: linear-gradient(135deg, #303F9F, #3949AB); }
.tier-ltms    { background: linear-gradient(135deg, #009688, #00ACC1); }

.stat-num-cell {
    font-weight: 700;
    color: var(--green);
}

.rating-cell {
    color: var(--gold);
    font-weight: 700;
}

/* ─── FAQ ─── */
.faq-list {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.faq-item {
    background: var(--card-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--border-light);
    border-radius: var(--radius);
    overflow: hidden;
    transition: var(--transition);
}

.faq-item.open {
    border-color: var(--border);
}

.faq-question {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 22px;
    cursor: pointer;
    font-weight: 600;
    color: var(--text);
    transition: var(--transition);
}

.faq-question:hover {
    background: var(--hover-bg);
}

.faq-question i {
    color: var(--gold);
    transition: var(--transition);
}

.faq-item.open .faq-question i { transform: rotate(180deg); }

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.faq-item.open .faq-answer { max-height: 500px; }

.faq-answer p {
    padding: 0 22px 18px;
    color: var(--text-secondary);
    line-height: 1.8;
}

/* ─── Footer ─── */
.footer {
    background: var(--secondary-bg);
    border-top: 1px solid var(--border-light);
    padding-top: 60px;
    margin-top: 60px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    padding-bottom: 40px;
}

.footer-about .footer-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 22px;
    font-weight: 800;
    color: var(--gold);
    margin-bottom: 16px;
}

.footer-about p {
    color: var(--text-secondary);
    margin-bottom: 20px;
    line-height: 1.8;
    font-size: 14px;
}

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

.footer-social a {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: var(--glass-bg);
    border: 1px solid var(--border-light);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    transition: var(--transition-bounce);
}

.footer-social a:hover {
    color: var(--gold);
    border-color: var(--border-gold);
    transform: translateY(-3px);
}

.footer-title {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--text);
}

.footer-col ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-col ul a {
    color: var(--text-secondary);
    font-size: 14px;
    transition: var(--transition);
}

.footer-col ul a:hover {
    color: var(--green);
    padding-right: 4px;
}

.footer-bottom {
    border-top: 1px solid var(--border-light);
    padding: 20px 0;
}

.footer-bottom .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    font-size: 13px;
    color: var(--text-muted);
}

/* ─── Back to Top ─── */
.back-to-top {
    position: fixed;
    bottom: 24px;
    left: 24px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--gold), var(--gold-dark));
    color: #000;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    box-shadow: var(--shadow-glow);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: var(--transition-bounce);
    z-index: 900;
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    transform: translateY(-4px);
}

/* ─── Toast ─── */
.toast {
    position: fixed;
    bottom: 24px;
    right: 24px;
    background: var(--card-bg-solid);
    border: 1px solid var(--success);
    border-radius: var(--radius-sm);
    padding: 14px 20px;
    box-shadow: var(--shadow);
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--text);
    font-size: 14px;
    opacity: 0;
    visibility: hidden;
    transform: translateX(20px);
    transition: var(--transition);
    z-index: 9999;
    max-width: 360px;
}

.toast.show {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
}

.toast-icon { color: var(--success); font-size: 18px; }
.toast.error { border-color: var(--error); }
.toast.error .toast-icon { color: var(--error); }

/* ─── Auth Pages ─── */
.auth-wrapper {
    min-height: calc(100vh - 200px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 0;
}

.auth-card {
    background: var(--card-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    padding: 40px;
    max-width: 460px;
    width: 100%;
    box-shadow: var(--shadow);
}

.auth-card-head {
    text-align: center;
    margin-bottom: 32px;
}

.auth-card-head .logo-icon {
    width: 56px;
    height: 56px;
    margin: 0 auto 16px;
    font-size: 22px;
}

.auth-card-head h1 {
    font-size: 28px;
    margin-bottom: 8px;
}

.auth-card-head p {
    color: var(--text-secondary);
    font-size: 14px;
}

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

.form-group label {
    display: block;
    margin-bottom: 6px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text);
}

.form-group label .req { color: var(--error); }

.form-control {
    width: 100%;
    padding: 12px 16px;
    background: var(--glass-bg);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-sm);
    color: var(--text);
    font-size: 14px;
    transition: var(--transition);
}

.form-control:focus {
    outline: none;
    border-color: var(--green);
    box-shadow: 0 0 0 3px rgba(74, 222, 128, 0.15);
}

.form-control::placeholder { color: var(--text-muted); }

.input-group {
    position: relative;
}

.input-group .form-control {
    padding-right: 44px;
}

.input-group .input-icon {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    pointer-events: none;
}

.input-group-password {
    position: relative;
}

.input-group-password .toggle-pass {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 4px;
}

.input-group-password .toggle-pass:hover { color: var(--green); }

.form-hint {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 6px;
}

.form-error {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid var(--error);
    color: var(--error);
    padding: 10px 14px;
    border-radius: var(--radius-sm);
    font-size: 13px;
    margin-bottom: 16px;
}

.auth-foot {
    text-align: center;
    margin-top: 20px;
    color: var(--text-secondary);
    font-size: 14px;
}

.auth-foot a {
    color: var(--gold);
    font-weight: 600;
}

.auth-foot a:hover { color: var(--green); }

/* ─── Profile ─── */
.profile-grid {
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 24px;
    align-items: start;
}

.profile-sidebar {
    background: var(--card-bg);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border-light);
    border-radius: var(--radius);
    padding: 28px;
    text-align: center;
    position: sticky;
    top: 90px;
}

.profile-avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    margin: 0 auto 16px;
    background: linear-gradient(135deg, var(--gold), var(--green));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
    font-weight: 800;
    color: #000;
}

.profile-name {
    font-size: 22px;
    font-weight: 800;
    margin-bottom: 4px;
}

.profile-email {
    color: var(--text-secondary);
    font-size: 13px;
    margin-bottom: 16px;
}

.profile-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 100px;
    font-size: 11px;
    font-weight: 700;
    background: rgba(74, 222, 128, 0.15);
    color: var(--green);
    border: 1px solid var(--border);
}

.profile-badge.admin {
    background: rgba(255, 215, 0, 0.15);
    color: var(--gold);
    border-color: var(--border-gold);
}

.profile-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid var(--border-light);
}

.profile-stat {
    background: var(--glass-bg);
    padding: 10px;
    border-radius: 8px;
    text-align: center;
}

.profile-stat .num {
    font-size: 18px;
    font-weight: 800;
    color: var(--gold);
}

.profile-stat .lbl {
    font-size: 11px;
    color: var(--text-muted);
}

.profile-main {
    background: var(--card-bg);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border-light);
    border-radius: var(--radius);
    padding: 28px;
}

.profile-tabs {
    display: flex;
    gap: 4px;
    border-bottom: 1px solid var(--border-light);
    margin-bottom: 24px;
    overflow-x: auto;
}

.profile-tab {
    padding: 12px 18px;
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 500;
    border-bottom: 2px solid transparent;
    white-space: nowrap;
    transition: var(--transition);
}

.profile-tab:hover { color: var(--text); }
.profile-tab.active {
    color: var(--gold);
    border-bottom-color: var(--gold);
}

/* ─── Admin Panel ─── */
.admin-layout {
    display: grid;
    grid-template-columns: 260px 1fr;
    min-height: 100vh;
}

.admin-sidebar {
    background: var(--secondary-bg);
    border-left: 1px solid var(--border-light);
    padding: 24px 0;
    position: sticky;
    top: 0;
    height: 100vh;
    overflow-y: auto;
}

.admin-sidebar-head {
    padding: 0 24px 20px;
    border-bottom: 1px solid var(--border-light);
    margin-bottom: 16px;
}

.admin-sidebar-head .logo {
    margin-bottom: 4px;
}

.admin-sidebar-head small {
    color: var(--text-muted);
    font-size: 11px;
}

.admin-nav { padding: 0 12px; }

.admin-nav a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    font-size: 14px;
    margin-bottom: 2px;
    transition: var(--transition);
}

.admin-nav a:hover {
    background: var(--hover-bg);
    color: var(--green);
}

.admin-nav a.active {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.15), rgba(74, 222, 128, 0.15));
    color: var(--gold);
    border: 1px solid var(--border-gold);
}

.admin-nav a i { width: 18px; }

.admin-nav .section-label {
    color: var(--text-muted);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 16px 14px 6px;
}

.admin-main {
    padding: 24px;
    overflow-x: hidden;
}

.admin-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
    flex-wrap: wrap;
    gap: 12px;
}

.admin-topbar h1 {
    font-size: 24px;
    font-weight: 800;
}

.admin-topbar .actions {
    display: flex;
    gap: 8px;
    align-items: center;
}

.admin-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}

.admin-stat-card {
    background: var(--card-bg);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border-light);
    border-radius: var(--radius);
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 16px;
    transition: var(--transition);
}

.admin-stat-card:hover {
    border-color: var(--border);
    transform: translateY(-2px);
}

.admin-stat-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.15), rgba(74, 222, 128, 0.15));
    color: var(--gold);
}

.admin-stat-info .num {
    font-size: 24px;
    font-weight: 800;
    color: var(--text);
}

.admin-stat-info .lbl {
    font-size: 12px;
    color: var(--text-muted);
}

.admin-card {
    background: var(--card-bg);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border-light);
    border-radius: var(--radius);
    overflow: hidden;
    margin-bottom: 24px;
}

.admin-card-head {
    padding: 18px 22px;
    border-bottom: 1px solid var(--border-light);
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
}

.admin-card-head h2 {
    font-size: 16px;
    font-weight: 700;
}

.admin-card-body { padding: 22px; }

.admin-table {
    width: 100%;
    border-collapse: collapse;
}

.admin-table th {
    padding: 12px 14px;
    text-align: right;
    font-size: 12px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 1px solid var(--border-light);
    font-weight: 600;
}

.admin-table td {
    padding: 12px 14px;
    border-bottom: 1px solid var(--border-light);
    font-size: 14px;
}

.admin-table tr:hover td { background: var(--hover-bg); }

.admin-table-wrap {
    overflow-x: auto;
}

.badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 100px;
    font-size: 11px;
    font-weight: 600;
}

.badge-success { background: rgba(74, 222, 128, 0.15); color: var(--success); }
.badge-danger { background: rgba(239, 68, 68, 0.15); color: var(--error); }
.badge-warning { background: rgba(245, 158, 11, 0.15); color: var(--warning); }
.badge-info { background: rgba(96, 165, 250, 0.15); color: var(--info); }
.badge-gold { background: rgba(255, 215, 0, 0.15); color: var(--gold); }

.action-btns {
    display: flex;
    gap: 4px;
}

.action-btn {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: var(--glass-bg);
    border: 1px solid var(--border-light);
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    font-size: 13px;
}

.action-btn:hover {
    background: var(--hover-bg);
    color: var(--green);
}

.action-btn.danger:hover {
    color: var(--error);
    border-color: var(--error);
}

.pagination {
    display: flex;
    gap: 6px;
    justify-content: center;
    margin-top: 20px;
    flex-wrap: wrap;
}

.pagination a, .pagination span {
    padding: 8px 12px;
    background: var(--glass-bg);
    border: 1px solid var(--border-light);
    border-radius: 8px;
    color: var(--text-secondary);
    font-size: 13px;
    transition: var(--transition);
}

.pagination a:hover {
    background: var(--hover-bg);
    color: var(--green);
}

.pagination .current {
    background: linear-gradient(135deg, var(--gold), var(--gold-dark));
    color: #000;
    border-color: transparent;
    font-weight: 600;
}

/* ─── Modal ─── */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 5000;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    padding: 20px;
}

.modal-overlay.show {
    opacity: 1;
    visibility: visible;
}

.modal {
    background: var(--card-bg-solid);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    width: 100%;
    max-width: 540px;
    max-height: 90vh;
    overflow-y: auto;
    transform: scale(0.95);
    transition: var(--transition);
}

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

.modal-head {
    padding: 20px 24px;
    border-bottom: 1px solid var(--border-light);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.modal-head h2 {
    font-size: 18px;
    font-weight: 700;
}

.modal-close {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 22px;
    cursor: pointer;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    transition: var(--transition);
}

.modal-close:hover {
    background: var(--hover-bg);
    color: var(--error);
}

.modal-body { padding: 24px; }

.modal-foot {
    padding: 16px 24px;
    border-top: 1px solid var(--border-light);
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

/* ─── Animations ─── */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

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

/* ─── Responsive ─── */
@media (max-width: 1024px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
    .profile-grid {
        grid-template-columns: 1fr;
    }
    .profile-sidebar { position: static; }
    .admin-layout {
        grid-template-columns: 1fr;
    }
    .admin-sidebar {
        position: fixed;
        top: 0;
        right: -280px;
        width: 280px;
        z-index: 1100;
        transition: right 0.3s;
        border-left: none;
        border-right: 1px solid var(--border-light);
    }
    .admin-sidebar.open { right: 0; }
}

@media (max-width: 768px) {
    .container { padding: 0 16px; }
    .nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background: var(--card-bg-solid);
        flex-direction: column;
        padding: 80px 20px 20px;
        gap: 4px;
        transition: right 0.3s;
        z-index: 1100;
        border-left: 1px solid var(--border-light);
    }
    .nav.open { right: 0; }
    .mobile-menu-toggle { display: flex; }
    .nav-link { width: 100%; }
    .server-status, .user-name { display: none; }
    .btn-text { display: none; }
    .btn-icon { padding: 10px 12px; }
    .hero { padding: 40px 0; }
    .section { padding: 50px 0; }
    .stats-grid {
        grid-template-columns: 1fr 1fr;
    }
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 28px;
    }
    .auth-card { padding: 28px 20px; }
    .rankings-search { width: 100%; }
    .rankings-head { flex-direction: column; align-items: stretch; }
    .hero-server-stats { grid-template-columns: 1fr 1fr 1fr; gap: 8px; }
    .hero-server-stats .hero-stat-num { font-size: 18px; }
}

@media (max-width: 480px) {
    .stats-grid { grid-template-columns: 1fr; }
    .shop-grid { grid-template-columns: 1fr; }
    .servers-grid { grid-template-columns: 1fr; }
    .hero-title { font-size: 2rem; }
    .hero-actions { flex-direction: column; }
    .hero-actions .btn { width: 100%; justify-content: center; }
    .footer-bottom .container {
        flex-direction: column;
        text-align: center;
    }
}
