/* style.css | Server X - پالت بنفش سلطنتی */

@import url('https://fonts.googleapis.com/css2?family=Inter:ital,wght@0,100..900;1,100..900&display=swap');

:root {
    --primary: #8B5CF6;
    --primary-dark: #5B21B6;
    --primary-light: #A78BFA;
    --primary-ultra-light: #C4B5FD;
    --secondary: #EC4899;
    --secondary-dark: #BE185D;
    --secondary-light: #F472B6;
    --accent: #06B6D4;
    --accent-dark: #0891B2;
    --bg-dark: #05050F;
    --bg-elevated: #0B0B1A;
    --bg-card: rgba(20, 12, 40, 0.55);
    --bg-glass: rgba(20, 12, 40, 0.4);
    --text: #F8FAFF;
    --text-dim: #C4B5FD;
    --text-muted: #9CA3AF;
    --border-color: rgba(139, 92, 246, 0.25);
    --border-glow: rgba(139, 92, 246, 0.5);
    --gradient-primary: linear-gradient(135deg, #8B5CF6 0%, #6D28D9 50%, #4C1D95 100%);
    --gradient-secondary: linear-gradient(135deg, #EC4899 0%, #BE185D 50%, #9D174D 100%);
    --gradient-accent: linear-gradient(135deg, #06B6D4 0%, #0891B2 50%, #0E7490 100%);
    --gradient-hero: radial-gradient(circle at 30% 20%, rgba(139, 92, 246, 0.15), transparent 70%);
    --glow-purple: 0 0 20px rgba(139, 92, 246, 0.4);
    --glow-pink: 0 0 20px rgba(236, 72, 153, 0.3);
    --shadow-lg: 0 10px 40px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 6px 20px rgba(0, 0, 0, 0.25);
    --success: #10B981;
    --danger: #EF4444;
    --warning: #F59E0B;
    --info: #3B82F6;
}

/* لایت مود - کلاس light-mode */
body.light-mode {
    --primary: #7C3AED;
    --primary-dark: #6D28D9;
    --primary-light: #8B5CF6;
    --primary-ultra-light: #A78BFA;
    --secondary: #DB2777;
    --secondary-dark: #BE185D;
    --secondary-light: #EC4899;
    --accent: #0891B2;
    --accent-dark: #0E7490;
    --bg-dark: #F8FAFC;
    --bg-elevated: #F1F5F9;
    --bg-card: rgba(255, 255, 255, 0.85);
    --bg-glass: rgba(255, 255, 255, 0.8);
    --text: #1E293B;
    --text-dim: #475569;
    --text-muted: #64748B;
    --border-color: rgba(139, 92, 246, 0.2);
    --gradient-hero: radial-gradient(circle at 30% 20%, rgba(139, 92, 246, 0.05), transparent 70%);
}

/* ========== انیمیشن Pulse برای متن هیرو ========== */
.pulse-text {
    animation: pulse 2s ease-in-out infinite;
    display: inline-block;
}

@keyframes pulse {
    0% {
        transform: scale(1);
        text-shadow: 0 0 0 rgba(139, 92, 246, 0);
    }
    50% {
        transform: scale(1.03);
        text-shadow: 0 0 20px rgba(139, 92, 246, 0.5);
    }
    100% {
        transform: scale(1);
        text-shadow: 0 0 0 rgba(139, 92, 246, 0);
    }
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
    background: var(--bg-dark);
    color: var(--text);
    font-family: 'Vazirmatn', 'Inter', 'Segoe UI', system-ui, sans-serif;
    line-height: 1.6;
    direction: rtl;
    min-height: 100vh;
    position: relative;
    transition: background 0.3s ease, color 0.3s ease;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--gradient-hero);
    pointer-events: none;
    z-index: -1;
    transition: opacity 0.3s ease;
}



/* ========== دکمه دارک/لایت مود (آیکونی) ========== */
.theme-toggle {
    background: rgba(139, 92, 246, 0.15);
    border: 1px solid var(--border-color);
    border-radius: 50%;
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.theme-toggle:hover {
    border-color: var(--primary);
    transform: scale(1.05);
}

.theme-toggle i {
    font-size: 1.2rem;
    color: var(--text-dim);
    transition: all 0.3s ease;
}

.theme-toggle:hover i {
    color: var(--primary-light);
}

body.light-mode .theme-toggle i.fa-moon {
    display: inline-block;
}

body.light-mode .theme-toggle i.fa-sun {
    display: none;
}

body:not(.light-mode) .theme-toggle i.fa-moon {
    display: none;
}

body:not(.light-mode) .theme-toggle i.fa-sun {
    display: inline-block;
}

/* ========== اعلان (Toast Notification) ========== */
.toast {
    position: fixed;
    bottom: 30px;
    left: 30px;
    background: var(--bg-elevated);
    backdrop-filter: blur(12px);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 14px 24px;
    display: flex;
    align-items: center;
    gap: 12px;
    z-index: 10000;
    transform: translateX(-150%);
    transition: transform 0.3s ease;
    box-shadow: var(--shadow-lg);
}

.toast.show {
    transform: translateX(0);
}

.toast i {
    font-size: 1.2rem;
}

.toast.success i { color: var(--success); }
.toast.error i { color: var(--danger); }
.toast.info i { color: var(--info); }
.toast.warning i { color: var(--warning); }

.toast-message {
    color: var(--text);
    font-size: 0.9rem;
}

/* ========== جستجوی زنده ========== */
.live-search-container {
    margin-bottom: 40px;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.search-box {
    display: flex;
    align-items: center;
    background: var(--bg-card);
    backdrop-filter: blur(8px);
    border: 1px solid var(--border-color);
    border-radius: 60px;
    padding: 5px 20px;
    transition: all 0.3s ease;
}

.search-box:focus-within {
    border-color: var(--primary);
    box-shadow: var(--glow-purple);
}

.search-box i {
    color: var(--text-dim);
    font-size: 1.1rem;
}

.search-box input {
    flex: 1;
    background: transparent;
    border: none;
    padding: 14px 15px;
    color: var(--text);
    font-family: 'Vazirmatn', sans-serif;
    font-size: 0.95rem;
}

.search-box input:focus {
    outline: none;
}

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

.search-results-count {
    text-align: center;
    margin-top: 15px;
    color: var(--text-dim);
    font-size: 0.85rem;
}

/* ========== انیمیشن‌ها ========== */
@keyframes fadeInUp { from { opacity: 0; transform: translateY(40px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fadeInLeft { from { opacity: 0; transform: translateX(-40px); } to { opacity: 1; transform: translateX(0); } }
@keyframes fadeInRight { from { opacity: 0; transform: translateX(40px); } to { opacity: 1; transform: translateX(0); } }
@keyframes fadeInScale { from { opacity: 0; transform: scale(0.9); } to { opacity: 1; transform: scale(1); } }
@keyframes glowPulse { 0% { box-shadow: 0 0 5px rgba(139, 92, 246, 0.3); } 50% { box-shadow: 0 0 30px rgba(139, 92, 246, 0.6); } 100% { box-shadow: 0 0 5px rgba(139, 92, 246, 0.3); } }
@keyframes float { 0% { transform: translateY(0px); } 50% { transform: translateY(-12px); } 100% { transform: translateY(0px); } }
@keyframes spinSlow { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }

/* ========== اسکرول بار ========== */
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--bg-elevated); border-radius: 10px; }
::-webkit-scrollbar-thumb { background: var(--gradient-primary); border-radius: 10px; }
::-webkit-scrollbar-thumb:hover { background: var(--gradient-secondary); }

/* ========== هدر ========== */
.header {
    background: rgba(5, 5, 15, 0.95);
    backdrop-filter: blur(15px);
    border-bottom: 1px solid var(--border-color);
    padding: 1rem 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.header.scrolled { padding: 0.6rem 0; background: rgba(5, 5, 15, 0.98); box-shadow: var(--shadow-md); }

body.light-mode .header {
    background: rgba(255, 255, 255, 0.95);
}

.container { max-width: 1280px; margin: 0 auto; padding: 0 24px; }
.header .container {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 18px;
}

.logo img { height: 48px; transition: all 0.3s ease; }
.logo img:hover { transform: scale(1.05); filter: drop-shadow(0 0 8px var(--primary)); }

.nav-links {
    display: flex;
    justify-content: center;
    gap: 1.25rem;
    list-style: none;
    min-width: 0;
}
.nav-links li {
    flex: 0 0 auto;
}
.nav-links a {
    color: var(--text-dim);
    text-decoration: none;
    transition: all 0.3s ease;
    font-weight: 500;
    position: relative;
    font-size: 0.92rem;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    min-height: 38px;
}
.nav-links a::before {
    content: '';
    position: absolute;
    bottom: -6px;
    right: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-primary);
    transition: width 0.3s ease;
    border-radius: 2px;
}
.nav-links a:hover::before, .nav-links a.active::before { width: 100%; }
.nav-links a:hover, .nav-links a.active { color: var(--primary-light); text-shadow: 0 0 8px rgba(139, 92, 246, 0.3); }

/* ========== دکمه‌های احراز هویت ========== */
.auth-buttons {
    display: flex;
    gap: 10px;
    align-items: center;
    justify-content: flex-end;
    white-space: nowrap;
}

.btn-login {
    background: transparent;
    border: 1.5px solid var(--secondary);
    color: var(--secondary-light);
    padding: 8px 20px;
    border-radius: 40px;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    font-size: 0.9rem;
}

.btn-login i {
    font-size: 0.9rem;
}

.btn-login:hover {
    background: var(--gradient-secondary);
    color: white;
    transform: translateY(-2px);
    box-shadow: var(--glow-pink);
    border-color: transparent;
}

.btn-register {
    background: var(--gradient-primary);
    border: none;
    color: white;
    padding: 8px 20px;
    border-radius: 40px;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    font-size: 0.9rem;
}

.btn-register i {
    font-size: 0.9rem;
}

.btn-register:hover {
    transform: translateY(-2px);
    box-shadow: var(--glow-purple);
    filter: brightness(1.05);
}

/* ========== دکمه‌ها ========== */
.btn-primary {
    background: var(--gradient-primary);
    color: white;
    padding: 12px 28px;
    border-radius: 40px;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
    font-weight: 600;
    border: none;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-md);
}
.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s ease;
}
.btn-primary:hover::before { left: 100%; }
.btn-primary:hover { transform: translateY(-3px); box-shadow: var(--glow-purple); }

.btn-outline {
    background: transparent;
    border: 1.5px solid var(--primary);
    color: var(--primary-light);
    padding: 10px 26px;
    border-radius: 40px;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
    font-weight: 500;
}
.btn-outline:hover { background: var(--primary); color: white; transform: translateY(-2px); box-shadow: var(--glow-purple); border-color: transparent; }

/* ========== هیرو داخلی ========== */
.inner-hero {
    min-height: 45vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, rgba(5, 5, 15, 0.95), rgba(11, 11, 26, 0.9));
    margin-top: 80px;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.inner-hero::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.12), transparent 60%);
    animation: spinSlow 20s linear infinite;
}
.inner-hero h1 { font-size: 3.5rem; margin-bottom: 1rem; background: var(--gradient-primary); background-clip: text; -webkit-background-clip: text; color: transparent; font-weight: 700; }
.inner-hero p { color: var(--text-dim); max-width: 600px; margin: 0 auto; font-size: 1.1rem; }

/* ========== بخش‌ها ========== */
section { padding: 70px 0; position: relative; }
.section-title { text-align: center; margin-bottom: 3.5rem; }
.section-title .subtitle { color: var(--secondary); letter-spacing: 3px; font-weight: 600; font-size: 0.85rem; text-transform: uppercase; margin-bottom: 0.5rem; display: inline-block; }
.section-title h2 { font-size: 2.5rem; margin-bottom: 0.5rem; background: var(--gradient-primary); background-clip: text; -webkit-background-clip: text; color: transparent; font-weight: 700; }

.home-article-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    overflow: hidden;
    display: grid;
    grid-template-columns: minmax(280px, 0.85fr) minmax(0, 1fr);
    box-shadow: var(--shadow-md);
}
.home-article-card img {
    width: 100%;
    height: 100%;
    min-height: 280px;
    object-fit: cover;
}
.home-article-content {
    padding: 30px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.home-article-meta {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 16px;
}
.home-article-meta span {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 7px 14px;
    border-radius: 40px;
    background: rgba(139, 92, 246, 0.18);
    border: 1px solid rgba(139, 92, 246, 0.28);
    color: var(--primary-ultra-light);
    font-size: 0.8rem;
    font-weight: 600;
}
.home-article-meta span:nth-child(2) {
    background: rgba(6, 182, 212, 0.12);
    border-color: rgba(6, 182, 212, 0.3);
    color: var(--accent);
}
.home-article-content h3 {
    font-size: 1.7rem;
    margin-bottom: 14px;
    color: var(--text);
    line-height: 1.6;
}
.home-article-content p {
    color: var(--text-dim);
    line-height: 1.9;
    margin-bottom: 22px;
}

.ai-answer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 20px;
}
.ai-answer-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 18px;
    padding: 22px;
    line-height: 1.9;
}
.ai-answer-card h3 {
    color: var(--primary-light);
    font-size: 1.1rem;
    margin-bottom: 10px;
}
.ai-answer-card h3 i {
    color: var(--secondary);
    margin-left: 8px;
}
.ai-answer-card p,
.ai-answer-card li {
    color: var(--text-dim);
}
.ai-answer-card ul {
    padding-right: 20px;
}
.ai-answer-card a,
.ai-answer-card code {
    color: var(--primary-ultra-light);
}

/* ========== کارت‌ها ========== */
.card, .feature-card, .server-card, .public-server-card, .team-card, .testimonial-card, .faq-item, .contact-info, .contact-form, .stat-card {
    background: var(--bg-card);
    backdrop-filter: blur(12px);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    overflow: hidden;
}
.card:hover, .feature-card:hover, .server-card:hover, .public-server-card:hover, .team-card:hover, .testimonial-card:hover, .faq-item:hover, .stat-card:hover {
    transform: translateY(-8px);
    border-color: var(--primary);
    box-shadow: var(--glow-purple);
}

/* ========== لوکیشن‌های سرور ========== */
.locations-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

.location-card {
    background: var(--bg-card);
    backdrop-filter: blur(12px);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex;
    flex-direction: column;
    height: 100%;
}

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

.location-flag {
    position: relative;
    height: 160px;
    overflow: hidden;
    flex-shrink: 0;
}

.location-flag img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: 0.5s;
}

.location-card:hover .location-flag img {
    transform: scale(1.08);
}

.location-status {
    position: absolute;
    top: 15px;
    left: 15px;
    padding: 6px 14px;
    border-radius: 30px;
    font-size: 0.75rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
    backdrop-filter: blur(8px);
}

.location-status.available {
    background: rgba(16, 185, 129, 0.2);
    color: var(--success);
    border: 1px solid var(--success);
}

.location-status.available i {
    font-size: 0.6rem;
}

.location-status.coming-soon {
    background: rgba(245, 158, 11, 0.2);
    color: var(--warning);
    border: 1px solid var(--warning);
}

.location-status.coming-soon i {
    font-size: 0.6rem;
}

.location-content {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.location-content h3 {
    font-size: 1.25rem;
    margin-bottom: 12px;
    color: var(--primary-light);
}

.location-content h3 i {
    margin-left: 8px;
    color: var(--secondary);
    font-size: 0.9rem;
}

.location-desc {
    color: var(--text-dim);
    font-size: 0.85rem;
    line-height: 1.6;
    margin-bottom: 15px;
    flex: 1;
}

.location-stats {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    padding-top: 15px;
    padding-bottom: 15px;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 15px;
}

.location-stats span {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--text-muted);
    font-size: 0.75rem;
    background: rgba(139, 92, 246, 0.1);
    padding: 5px 10px;
    border-radius: 30px;
}

.location-stats span i {
    color: var(--primary-light);
    font-size: 0.8rem;
}

.buy-location-btn {
    width: 100%;
    background: var(--gradient-primary);
    color: white;
    border: none;
    padding: 12px;
    border-radius: 40px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-decoration: none;
}

.buy-location-btn:hover {
    background: var(--gradient-secondary);
    transform: translateY(-2px);
    box-shadow: var(--glow-pink);
}

.location-card.coming .buy-location-btn {
    background: var(--bg-elevated);
    border: 1px solid var(--border-color);
    color: var(--text-dim);
    cursor: not-allowed;
}

.location-card.coming .buy-location-btn:hover {
    transform: none;
    box-shadow: none;
}

/* ========== فوتر ========== */
footer {
    background: var(--bg-elevated);
    border-top: 1px solid var(--border-color);
    padding: 60px 0 25px;
    position: relative;
}
footer::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 1px; background: var(--gradient-primary); }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 50px; margin-bottom: 40px; }
.footer-col h4 { margin-bottom: 20px; position: relative; display: inline-block; color: var(--primary-light); font-size: 1.1rem; }
.footer-col h4::after { content: ''; position: absolute; bottom: -8px; right: 0; width: 45px; height: 2px; background: var(--gradient-secondary); border-radius: 2px; }
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 12px; }
.footer-col ul li a { color: var(--text-dim); text-decoration: none; transition: all 0.3s ease; }
.footer-col ul li a:hover { color: var(--primary-light); padding-right: 6px; }
.footer-brand p { margin-bottom: 0; }
.social-trust-row {
    display: flex;
    align-items: flex-start;
    gap: 18px;
}
.footer-mini-col h4 { margin-bottom: 20px; }
.enamad-badge {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    width: 82px;
    min-height: 82px;
    padding: 8px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    transition: all 0.3s ease;
}
.enamad-badge:hover { border-color: var(--primary-light); transform: translateY(-3px); box-shadow: var(--glow-purple); }
.enamad-badge img {
    display: block;
    max-width: 66px;
    max-height: 66px;
    object-fit: contain;
}
.social-links { display: flex; gap: 12px; flex-wrap: wrap; }
.social-links a {
    width: 42px; height: 42px; background: rgba(139, 92, 246, 0.15); border-radius: 50%;
    display: flex; align-items: center; justify-content: center; color: var(--text-dim);
    transition: all 0.3s ease; font-size: 1.2rem;
}
.social-links a:hover { background: var(--gradient-primary); color: white; transform: translateY(-5px); box-shadow: var(--glow-purple); }
.copyright { text-align: center; padding-top: 25px; border-top: 1px solid var(--border-color); color: var(--text-muted); font-size: 0.8rem; }

/* ========== دکمه بازگشت ========== */
.back-to-top {
    position: fixed; bottom: 30px; right: 30px; width: 50px; height: 50px;
    background: var(--gradient-primary); border-radius: 50%; display: flex;
    align-items: center; justify-content: center; color: white; text-decoration: none;
    opacity: 0; visibility: hidden; transition: all 0.3s ease; z-index: 999; box-shadow: var(--shadow-md);
}
.back-to-top.show { opacity: 1; visibility: visible; }
.back-to-top:hover { background: var(--gradient-secondary); transform: translateY(-5px) scale(1.1); box-shadow: var(--glow-pink); }

/* ========== کلاس‌های کمکی ========== */
.text-center { text-align: center; }
.text-primary { color: var(--primary-light); }
.text-secondary { color: var(--secondary); }
.text-accent { color: var(--accent); }
.mt-2 { margin-top: 0.5rem; }
.mt-3 { margin-top: 1rem; }
.mt-4 { margin-top: 1.5rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 1rem; }
.mb-4 { margin-bottom: 1.5rem; }
.glow { box-shadow: var(--glow-purple); }

/* ========== ریسپانسیو ========== */
@media (max-width: 992px) { .container { padding: 0 20px; } section { padding: 50px 0; } .section-title h2 { font-size: 2rem; } }
@media (max-width: 1180px) {
    .header .container {
        grid-template-columns: auto 1fr;
        gap: 12px 16px;
    }
    .nav-links {
        grid-column: 1 / -1;
        grid-row: 2;
        justify-content: flex-start;
        overflow-x: auto;
        padding: 4px 2px 8px;
        scrollbar-width: none;
    }
    .nav-links::-webkit-scrollbar { display: none; }
    .auth-buttons {
        justify-self: end;
    }
    .btn-login,
    .btn-register,
    .auth-buttons .btn-outline {
        padding: 7px 14px;
        font-size: 0.82rem;
    }
    .logo img { height: 44px; }
}
@media (max-width: 768px) {
    .header { padding: 0.75rem 0; }
    .header .container { display: flex; flex-direction: column; gap: 10px; }
    .nav-links {
        width: 100%;
        justify-content: flex-start;
        gap: 0.9rem;
        overflow-x: auto;
        padding-bottom: 8px;
        scrollbar-width: none;
    }
    .nav-links::-webkit-scrollbar { display: none; }
    .nav-links a { font-size: 0.82rem; min-height: 34px; }
    .auth-buttons {
        width: 100%;
        justify-content: center;
        flex-wrap: wrap;
    }
    .inner-hero { margin-top: 140px; min-height: 35vh; }
    .inner-hero h1 { font-size: 2rem; }
    section { padding: 40px 0; }
    .section-title h2 { font-size: 1.6rem; }
    .home-article-card { grid-template-columns: 1fr; }
    .home-article-card img { min-height: 220px; }
    .home-article-content { padding: 24px 20px; }
    .home-article-content h3 { font-size: 1.35rem; }
    .footer-grid { gap: 35px; text-align: center; }
    .footer-col h4::after { right: 50%; transform: translateX(50%); }
    .social-trust-row { justify-content: center; align-items: center; }
    .enamad-badge { margin: 0; }
    .social-links { justify-content: center; }
    .back-to-top { bottom: 20px; right: 20px; width: 45px; height: 45px; }
    .auth-buttons { justify-content: center; flex-wrap: wrap; }
    .locations-grid { grid-template-columns: 1fr; }
    .location-flag { height: 140px; }
    .location-stats span { font-size: 0.7rem; padding: 4px 8px; }
}
@media (max-width: 480px) {
    .container { padding: 0 16px; }
    .inner-hero h1 { font-size: 1.6rem; }
    .inner-hero p { font-size: 0.9rem; }
    .btn-primary, .btn-outline, .btn-login, .btn-register { padding: 6px 14px; font-size: 0.75rem; }
    .section-title h2 { font-size: 1.3rem; }
    .section-title .subtitle { font-size: 0.7rem; }
    .theme-toggle { width: 36px; height: 36px; }
    .theme-toggle i { font-size: 1rem; }
}
/* ========== بنرهای مختلف برای صفحات ========== */
.hero-home {
    background: linear-gradient(135deg, rgba(5, 5, 15, 0.85), rgba(11, 11, 26, 0.95)), url('images/banners/home-banner.jpg');
    background-size: cover;
    background-position: center;
}
.hero-servers {
    background: linear-gradient(135deg, rgba(5, 5, 15, 0.85), rgba(11, 11, 26, 0.95)), url('images/banners/servers-banner.jpg');
    background-size: cover;
    background-position: center;
}
.hero-public {
    background: linear-gradient(135deg, rgba(5, 5, 15, 0.85), rgba(11, 11, 26, 0.95)), url('images/banners/public-banner.jpg');
    background-size: cover;
    background-position: center;
}
.hero-about {
    background: linear-gradient(135deg, rgba(5, 5, 15, 0.85), rgba(11, 11, 26, 0.95)), url('images/banners/about-banner.jpg');
    background-size: cover;
    background-position: center;
}
.hero-contact {
    background: linear-gradient(135deg, rgba(5, 5, 15, 0.85), rgba(11, 11, 26, 0.95)), url('images/banners/contact-banner.jpg');
    background-size: cover;
    background-position: center;
}
.hero-faq {
    background: linear-gradient(135deg, rgba(5, 5, 15, 0.85), rgba(11, 11, 26, 0.95)), url('images/banners/faq-banner.jpg');
    background-size: cover;
    background-position: center;
}
.hero-articles {
    background: linear-gradient(135deg, rgba(5, 5, 15, 0.85), rgba(11, 11, 26, 0.95)), url('images/banners/faq-banner.jpg');
    background-size: cover;
    background-position: center;
}
/* ========== سفید کردن متن هیرو در همه صفحات ========== */
.hero h1,
.inner-hero h1,
.hero-home h1,
.hero-servers h1,
.hero-public h1,
.hero-about h1,
.hero-contact h1,
.hero-faq h1,
.hero-articles h1 {
    color: white !important;
    background: none !important;
    -webkit-background-clip: unset !important;
    background-clip: unset !important;
}
/* ========== سفید کردن متن لوکیشن‌ها ========== */
.location-content h3,
.location-content h3 i,
.location-card h3,
.location-card h3 i {
    color: white !important;
}

.location-desc,
.location-stats span,
.location-stats span i {
    color: var(--text-dim);
}
