/* تم کلاسیک پریمیوم - سراسر سایت | نوی تیره + طلایی + کرم */

@import url('https://fonts.googleapis.com/css2?family=Vazirmatn:wght@400;500;600;700;800&display=swap');

:root {
    --primary: #c9a227;
    --primary-dark: #a88420;
    --primary-light: #e0b83d;
    --primary-glow: rgba(201, 162, 39, 0.35);
    --navy: #0f1419;
    --navy-2: #1a2332;
    --navy-3: #243044;
    --dark: #1a1d24;
    --cream: #f8f6f2;
    --cream-2: #f0ebe3;
    --radius: 14px;
    --radius-pill: 9999px;
    --shadow: 0 4px 24px rgba(26, 29, 36, 0.08);
    --shadow-hover: 0 16px 48px rgba(26, 29, 36, 0.12), 0 0 0 1px rgba(201, 162, 39, 0.12);
    --ease: cubic-bezier(0.4, 0, 0.2, 1);
    --transition: 0.35s var(--ease);
}

body {
    font-family: 'Vazirmatn', 'Segoe UI', Tahoma, sans-serif;
    scroll-behavior: smooth;
}

.container {
    max-width: 1140px;
    padding: 0 24px;
}

/* ---- نوار ناوبری ---- */
.navbar {
    background: rgba(15, 20, 25, 0.94);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    padding: 14px 0;
    box-shadow: 0 1px 0 rgba(201, 162, 39, 0.2);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    transition: box-shadow var(--transition);
}

.navbar:hover {
    box-shadow: 0 1px 0 rgba(201, 162, 39, 0.28);
}

.nav-brand {
    font-weight: 700;
    font-size: 1.35rem;
    letter-spacing: -0.02em;
    color: #fff;
}

.nav-brand i {
    color: var(--primary);
    font-size: 1.25em;
    transition: transform var(--transition);
}

.nav-brand:hover i {
    transform: rotate(-12deg) scale(1.05);
}

.nav-menu a {
    padding: 10px 18px;
    border-radius: 10px;
    font-weight: 500;
    transition: background var(--transition), color var(--transition), transform 0.2s ease;
}

.nav-menu a:hover {
    transform: translateY(-1px);
}

.nav-menu a:hover,
.nav-menu a.active {
    background: rgba(201, 162, 39, 0.2);
    color: var(--primary-light);
}

.nav-menu a.active {
    border: 1px solid rgba(201, 162, 39, 0.4);
}

/* ---- هیرو (صفحه اصلی) ---- */
.hero {
    min-height: 90vh;
    background:
        radial-gradient(ellipse 70% 45% at 50% -15%, rgba(201, 162, 39, 0.12), transparent 55%),
        radial-gradient(ellipse 50% 35% at 85% 45%, rgba(201, 162, 39, 0.06), transparent 50%),
        radial-gradient(ellipse 40% 30% at 15% 75%, rgba(201, 162, 39, 0.05), transparent 45%),
        linear-gradient(175deg, #0f1419 0%, #1a2332 45%, #15202b 100%);
    background-size: cover;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #fff;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='80' height='80' viewBox='0 0 80 80' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23ffffff' fill-opacity='0.02' fill-rule='evenodd'%3E%3Cpath d='M50 50c0-5.523 4.477-10 10-10s10 4.477 10 10-4.477 10-10 10c0 5.523-4.477 10-10 10s-10-4.477-10-10zm-20 0c0-5.523 4.477-10 10-10s10 4.477 10 10-4.477 10-10 10c0 5.523-4.477 10-10 10s-10-4.477-10-10z'/%3E%3C/g%3E%3C/svg%3E");
    pointer-events: none;
}

.hero-overlay { background: none; }

.hero-content {
    max-width: 720px;
    padding: 0 20px;
    position: relative;
    z-index: 2;
}

.hero-badge {
    display: inline-block;
    padding: 8px 18px;
    background: rgba(201, 162, 39, 0.2);
    color: var(--primary-light);
    border: 1px solid rgba(201, 162, 39, 0.4);
    border-radius: var(--radius-pill);
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.03em;
    margin-bottom: 20px;
    animation: heroBadgeIn 0.8s var(--ease) both;
}

@keyframes heroBadgeIn {
    from { opacity: 0; transform: translateY(-12px); }
    to { opacity: 1; transform: translateY(0); }
}

.hero-title {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 16px;
    letter-spacing: -0.03em;
    text-shadow: 0 2px 24px rgba(0, 0, 0, 0.4);
    animation: heroTitleIn 0.9s var(--ease) 0.1s both;
}

@keyframes heroTitleIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.hero-subtitle {
    font-size: clamp(1rem, 2vw, 1.3rem);
    opacity: 0.92;
    margin-bottom: 32px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.6;
    animation: heroSubIn 0.9s var(--ease) 0.25s both;
}

@keyframes heroSubIn {
    from { opacity: 0; transform: translateY(14px); }
    to { opacity: 0.92; transform: translateY(0); }
}

.hero-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    justify-content: center;
    animation: heroBtnIn 0.8s var(--ease) 0.4s both;
}

@keyframes heroBtnIn {
    from { opacity: 0; transform: translateY(16px); }
    to { opacity: 1; transform: translateY(0); }
}

.hero-buttons .btn {
    padding: 14px 28px;
    border-radius: var(--radius-pill);
    font-weight: 600;
    font-size: 1rem;
    transition: transform var(--transition), box-shadow var(--transition), background var(--transition);
}

.hero-buttons .btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    box-shadow: 0 4px 24px var(--primary-glow);
    border: 1px solid rgba(201, 162, 39, 0.3);
}

.hero-buttons .btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 32px var(--primary-glow);
    background: linear-gradient(135deg, var(--primary-light), var(--primary));
}

.hero-buttons .btn-secondary {
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.25);
}

.hero-buttons .btn-secondary:hover {
    background: rgba(255, 255, 255, 0.14);
    border-color: rgba(255, 255, 255, 0.4);
    transform: translateY(-3px);
}
 /* ===== Articles Slider ===== */

.articles-slider-wrapper {
    position: relative;
    overflow: hidden;
    margin-top: 50px;
}

.articles-slider {
    display: flex;
    gap: 28px;
    transition: transform 0.8s cubic-bezier(0.22,1,0.36,1);
}

.article-slide {
    min-width: 350px;
    flex-shrink: 0;
}

.articles-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: #fff;
    box-shadow: 0 8px 24px var(--primary-glow);
    transition: transform 0.3s ease;
    z-index: 5;
}

.articles-nav:hover {
    transform: translateY(-50%) scale(1.1);
}

.articles-prev { right: -24px; }
.articles-next { left: -24px; }

@media (max-width:768px){
    .article-slide {
        min-width: 85%;
    }
}
/* ل
/* ===== Premium Footer ===== */

.mega-footer {
    background: linear-gradient(135deg, #111827, #0f172a);
    color: #fff;
    padding: 80px 0 30px;
    margin-top: 120px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 50px;
}

.footer-col h3,
.footer-col h4 {
    margin-bottom: 20px;
    font-weight: 700;
    color: var(--primary);
}

.footer-col p {
    color: #cbd5e1;
    line-height: 1.8;
}

.footer-col ul {
    list-style: none;
    padding: 0;
}

.footer-col ul li {
    margin-bottom: 12px;
}

.footer-col ul li a {
    color: #cbd5e1;
    text-decoration: none;
    transition: 0.3s;
}

.footer-col ul li a:hover {
    color: var(--primary);
    padding-right: 6px;
}

.footer-socials a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    margin-left: 10px;
    border-radius: 50%;
    background: rgba(255,255,255,0.05);
    color: #fff;
    transition: 0.3s;
}

.footer-socials a:hover {
    background: var(--primary);
    transform: translateY(-4px);
}

.footer-bottom {
    text-align: center;
    margin-top: 60px;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.08);
    color: #94a3b8;
}

@media(max-width:992px){
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media(max-width:600px){
    .footer-grid {
        grid-template-columns: 1fr;
    }
}
/* ===== Modern Connect Layout ===== */

.connect-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
    margin-top: 50px;
}

.connect-video iframe {
    width: 100%;
    height: 400px;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.15);
}

.connect-steps-modern {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.modern-step {
    background: #fff;
    padding: 28px;
    border-radius: 16px;
    box-shadow: var(--shadow);
    border: 1px solid rgba(26,29,36,0.06);
    transition: all 0.4s ease;
}

.modern-step:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-hover);
}

.modern-step span {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--primary);
    letter-spacing: 2px;
}

.modern-step h3 {
    margin: 10px 0;
    font-weight: 700;
}

.modern-step code {
    display: block;
    background: var(--navy);
    color: var(--primary-light);
    padding: 10px 14px;
    border-radius: 10px;
    margin-top: 10px;
}

@media(max-width:992px){
    .connect-layout {
        grid-template-columns: 1fr;
    }
}
.hero-scroll {
    position: absolute;
    bottom: 28px;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(255, 255, 255, 0.6);
    font-size: 1.5rem;
    text-decoration: none;
    transition: color var(--transition);
    animation: float 2.8s ease-in-out infinite;
    z-index: 2;
}

.hero-scroll:hover { color: var(--primary-light); }

/* وضعیت سرور در هیرو */
.hero-status {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    margin-bottom: 16px;
    padding: 6px 14px;
    background: rgba(255,255,255,0.1);
    border-radius: var(--radius-pill);
    border: 1px solid rgba(255,255,255,0.2);
}

.hero-status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    animation: statusPulse 2s ease-in-out infinite;
}

.hero-status-dot.online {
    background: #22c55e;
    box-shadow: 0 0 10px rgba(34, 197, 94, 0.6);
}

.hero-status-dot.offline {
    background: #ef4444;
}

@keyframes statusPulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.6; }
}

/* باکس کپی آدرس در هیرو */
.hero-connect-box {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 28px;
    padding: 14px 20px;
    background: rgba(0,0,0,0.3);
    border-radius: var(--radius);
    border: 1px solid rgba(201, 162, 39, 0.3);
}

.hero-connect-code {
    font-family: 'Courier New', monospace;
    font-size: 1rem;
    color: var(--primary-light);
    padding: 8px 12px;
    background: rgba(0,0,0,0.2);
    border-radius: 8px;
}

.hero-connect-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

@keyframes float {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(10px); }
}

/* ---- دکمه‌ها ---- */
.btn {
    border-radius: 12px;
    font-weight: 600;
    transition: transform var(--transition), box-shadow var(--transition);
}

.btn:hover { transform: translateY(-2px); }

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    box-shadow: 0 4px 20px var(--primary-glow);
}

.btn-primary:hover {
    box-shadow: 0 8px 28px var(--primary-glow);
}

.btn-small {
    border-radius: 10px;
    padding: 8px 18px;
    font-size: 0.9rem;
}

/* ---- عناوین سکشن ---- */
.section-title {
    font-size: clamp(1.75rem, 3vw, 2.2rem);
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 12px;
    letter-spacing: -0.02em;
    position: relative;
    display: inline-block;
}

.section-title-line {
    display: block;
    width: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--primary-light));
    border-radius: 2px;
    margin-top: 10px;
    transition: width 0.6s var(--ease);
}

section.aos-animate .section-title-line { width: 100%; }



/* ---- درباره سرور (صفحه اصلی) ---- */
.index-about {
    padding: 80px 0;
    background: #fff;
    border-top: 1px solid var(--cream-2);
}

.index-about-inner {
    max-width: 720px;
    margin: 0 auto;
    text-align: center;
}

.index-about-lead {
    font-size: 1.2rem;
    color: var(--dark);
    font-weight: 600;
    line-height: 1.7;
    margin-bottom: 16px;
}

.index-about-text {
    color: #555;
    line-height: 1.85;
    font-size: 1.05rem;
}

/* ---- چرا ما (صفحه اصلی) ---- */
.index-why {
    padding: 100px 0;
    background: #fff;
}

.index-why-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 28px;
    margin-top: 40px;
}

.index-why-item {
    text-align: center;
    padding: 32px 24px;
    background: var(--cream);
    border-radius: var(--radius);
    border: 1px solid rgba(26, 29, 36, 0.06);
    transition: transform var(--transition), box-shadow var(--transition);
}

.index-why-item:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
}

.index-why-item i {
    font-size: 2.2rem;
    color: var(--primary);
    margin-bottom: 16px;
    display: block;
}

.index-why-item h3 {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 10px;
}

.index-why-item p {
    color: #555;
    font-size: 0.95rem;
    line-height: 1.6;
}

/* ---- CTA جامعه (صفحه اصلی) ---- */
.index-community {
    padding: 80px 0;
    background: linear-gradient(135deg, var(--navy) 0%, var(--navy-2) 100%);
    color: #fff;
}

.index-community-inner {
    text-align: center;
    max-width: 560px;
    margin: 0 auto;
}

.index-community-inner h2 {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 12px;
}

.index-community-inner p {
    opacity: 0.9;
    margin-bottom: 24px;
    line-height: 1.6;
}

.index-community-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    justify-content: center;
}

.index-community-buttons .btn-secondary {
    background: rgba(255,255,255,0.15);
    color: #fff;
    border: 1px solid rgba(255,255,255,0.3);
}

.index-community-buttons .btn-secondary:hover {
    background: rgba(255,255,255,0.25);
}
.connect-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
    direction: ltr; /* این مهمه */
}

.connect-video {
    order: 1;
}

.connect-steps-modern {
    order: 2;
    direction: rtl; /* متن فارسی درست بمونه */
}

/* ---- اطلاعات سرور (صفحه اصلی) ---- */
.server-info {
    margin-top: 40px;
    display: flex;
    justify-content: center;
}

.info-card {
    background: #fff;
    padding: 28px 32px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    border: 1px solid rgba(26, 29, 36, 0.06);
    max-width: 420px;
    width: 100%;
}

.info-card h4 {
    margin-bottom: 20px;
    color: var(--dark);
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.info-card h4 i {
    color: var(--primary);
}

.info-card ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.info-card ul li {
    padding: 10px 0;
    border-bottom: 1px solid var(--cream-2);
    font-size: 0.95rem;
}

.info-card ul li:last-child { border-bottom: none; }

.info-card code {
    background: var(--cream);
    padding: 2px 8px;
    border-radius: 6px;
    font-size: 0.9em;
}

.status-online {
    color: #22c55e;
    font-weight: 600;
}

/* ---- مقالات خالی / خطا / دکمه بیشتر ---- */
.index-articles-empty,
.index-articles-error {
    text-align: center;
    color: #666;
    grid-column: 1 / -1;
    padding: 40px 20px;
}

.index-articles-error { color: #dc2626; }

.index-articles-more {
    text-align: center;
    margin-top: 32px;
}

/* ---- هدر وبلاگ / فروشگاه ---- */
.blog-header,
.shop-header {
    background: linear-gradient(135deg, var(--navy) 0%, var(--navy-2) 50%, var(--navy-3) 100%);
    color: #fff;
    padding: 72px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.blog-header::before,
.shop-header::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.7;
}

.blog-header h1,
.shop-header h1 {
    font-size: clamp(1.75rem, 4vw, 2.75rem);
    margin-bottom: 10px;
    font-weight: 800;
    position: relative;
}

.blog-header p,
.shop-header p {
    opacity: 0.9;
    font-size: 1.1rem;
    position: relative;
}

.blog-header .container,
.shop-header .container { position: relative; z-index: 1; }

/* ---- صفحات ورود / ثبت‌نام ---- */
.auth-page {
    background: linear-gradient(135deg, var(--navy) 0%, var(--navy-2) 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}


.auth-box {
    background: #fff;
    border-radius: var(--radius);
    padding: 40px;
    box-shadow: var(--shadow-hover), 0 0 0 1px rgba(201, 162, 39, 0.1);
    border: 1px solid rgba(201, 162, 39, 0.15);
}

.auth-header i {
    color: var(--primary);
    font-size: 2.5em;
    margin-bottom: 12px;
}

.auth-header h1 { color: var(--dark); }
.auth-header p { color: var(--text-light); }

.form-group input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-glow);
}

.auth-footer a {
    color: var(--primary);
    font-weight: 600;
}

.auth-footer a:hover { color: var(--primary-dark); }

/* ---- ویژگی‌ها ---- */
.features {
    padding: 100px 0;
    background: var(--cream);
}

.features-grid { gap: 24px; }

.feature-card {
    background: #fff;
    padding: 32px 24px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    border: 1px solid rgba(26, 29, 36, 0.06);
    transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0; right: 0;
    width: 100%; height: 100%;
    background: linear-gradient(135deg, transparent 40%, rgba(201, 162, 39, 0.06) 100%);
    opacity: 0;
    transition: opacity var(--transition);
    pointer-events: none;
}

.feature-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-hover);
    border-color: rgba(201, 162, 39, 0.18);
}

.feature-card:hover::before { opacity: 1; }

.feature-icon {
    width: 72px; height: 72px;
    margin: 0 auto 20px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    border-radius: 18px;
    font-size: 1.75rem;
    color: #fff;
    box-shadow: 0 8px 24px var(--primary-glow);
    transition: transform var(--transition);
    position: relative;
    z-index: 1;
}

.feature-card:hover .feature-icon {
    transform: scale(1.08) rotate(-3deg);
}

.feature-card h3 {
    font-weight: 700;
    font-size: 1.15rem;
    color: var(--dark);
    margin-bottom: 10px;
    position: relative;
    z-index: 1;
}

.feature-card p {
    color: #555;
    font-size: 0.95rem;
    line-height: 1.6;
    position: relative;
    z-index: 1;
}

/* ---- آمار ---- */
.stats {
    padding: 80px 0;
    background: linear-gradient(135deg, var(--navy) 0%, var(--navy-2) 50%, var(--navy-3) 100%);
    position: relative;
    overflow: hidden;
}

.stats::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.8;
}

.stats-grid { position: relative; z-index: 1; gap: 24px; }

.stat-item {
    padding: 28px 20px;
    transition: transform var(--transition);
    border-radius: var(--radius);
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.stat-item:hover {
    transform: scale(1.05);
    background: rgba(255, 255, 255, 0.04);
}

.stat-number {
    font-size: 2.75rem;
    font-weight: 800;
    margin-bottom: 8px;
    color: #fff;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.3);
    animation: statPulse 3s ease-in-out infinite;
}

.stat-item:nth-child(1) .stat-number { animation-delay: 0s; }
.stat-item:nth-child(2) .stat-number { animation-delay: 0.3s; }
.stat-item:nth-child(3) .stat-number { animation-delay: 0.6s; }
.stat-item:nth-child(4) .stat-number { animation-delay: 0.9s; }

@keyframes statPulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.92; transform: scale(1.02); }
}

.stat-label {
    font-size: 1.05rem;
    opacity: 0.9;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.9);
}

/* ---- نحوه اتصال ---- */
.how-to-connect {
    padding: 100px 0;
    background: #fff;
    border-top: 1px solid var(--cream-2);
}

.connect-steps { gap: 28px; }

.step-card {
    background: #fff;
    padding: 36px 28px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    border: 1px solid rgba(26, 29, 36, 0.06);
    transition: transform var(--transition), box-shadow var(--transition);
    position: relative;
    overflow: hidden;
}

.step-card::after {
    content: '';
    position: absolute;
    bottom: 0; right: 0;
    width: 80px; height: 80px;
    background: radial-gradient(circle at 100% 100%, rgba(201, 162, 39, 0.08), transparent);
    pointer-events: none;
}

.step-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.section-subtitle {
    display: block;       /* حتماً بلوک باشه */
    margin: 6px 0 0 0;    /* فاصله بالایی کم، پایین صفر یا کمی فاصله */
    text-align: right;    /* متن فارسی سمت راست باشه */
    max-width: 100%;      /* تا کامل زیر خط باشه */
    color: #5a5a5a;
    font-size: 1.05rem;
    line-height: 1.5;
}

.step-number {
    width: 44px; height: 44px;
    top: -22px; right: 28px;
    font-size: 1.15rem;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: #fff;
    box-shadow: 0 4px 20px var(--primary-glow);
    border-radius: 14px;
}

.step-icon {
    width: 72px; height: 72px;
    margin: 24px auto;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    border-radius: 18px;
    font-size: 1.75rem;
    color: #fff;
    box-shadow: 0 8px 24px var(--primary-glow);
    transition: transform var(--transition);
}

.step-card:hover .step-icon { transform: scale(1.05); }

.step-card h3 { font-weight: 700; color: var(--dark); }
.step-card p { color: #555; line-height: 1.65; }

.code-box {
    background: var(--navy);
    color: #fff;
    padding: 16px 20px;
    border-radius: 12px;
    border: 1px solid rgba(201, 162, 39, 0.25);
    font-size: 0.95rem;
}

.copy-btn {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    border-radius: 10px;
    padding: 10px 18px;
    font-weight: 500;
    color: #fff;
    border: none;
    cursor: pointer;
    transition: transform var(--transition), box-shadow var(--transition);
}

.copy-btn:hover {
    transform: scale(1.03);
    box-shadow: 0 4px 16px var(--primary-glow);
}

/* ---- مقالات / کارت مقاله ---- */
.latest-articles,
.blog-content {
    padding: 100px 0;
    background: var(--cream);
}

.articles-grid { gap: 28px; }

.article-card {
    background: #fff;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    border: 1px solid rgba(26, 29, 36, 0.06);
    transition: transform var(--transition), box-shadow var(--transition);
    position: relative;
}

.article-card::before {
    content: '';
    position: absolute;
    top: 0; right: 0;
    width: 100%; height: 100%;
    background: linear-gradient(135deg, transparent 50%, rgba(201, 162, 39, 0.04) 100%);
    opacity: 0;
    transition: opacity var(--transition);
    pointer-events: none;
    z-index: 0;
}

.article-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-hover);
}

.article-card:hover::before { opacity: 1; }

.article-image {
    height: 200px;
    transition: transform 0.5s var(--ease);
    position: relative;
    z-index: 1;
}

.article-card:hover .article-image { transform: scale(1.04); }

.article-content {
    padding: 24px;
    position: relative;
    z-index: 1;
}

.article-content h2 a,
.article-content h3 a {
    color: var(--dark);
    font-weight: 700;
    transition: color var(--transition);
}

.article-content h2 a:hover,
.article-content h3 a:hover { color: var(--primary-dark); }

.article-meta { color: #666; font-size: 0.9rem; }

/* ---- صفحه مقاله ---- */
.article-full {
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    border: 1px solid rgba(26, 29, 36, 0.06);
}

.article-header { border-bottom-color: var(--cream-2); }
.article-header h1 { color: var(--dark); }
.related-articles h2 { color: var(--dark); }

/* ---- فروشگاه ---- */
.shop-content { padding: 100px 0; background: var(--cream); }

.shop-filters {
    background: #fff;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    border: 1px solid rgba(26, 29, 36, 0.06);
}

.filter-group input,
.filter-group select {
    border-radius: 10px;
    transition: border-color var(--transition), box-shadow var(--transition);
}

.filter-group input:focus,
.filter-group select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-glow);
}

.products-grid { gap: 28px; }

.product-card {
    background: #fff;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    border: 1px solid rgba(26, 29, 36, 0.06);
    transition: transform var(--transition), box-shadow var(--transition);
}

.product-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-hover);
}

.product-category {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
}

.product-price span { color: var(--primary); }

/* ---- حالت خالی ---- */
.empty-state {
    background: var(--cream);
    border-radius: var(--radius);
    color: var(--text-light);
}

.empty-state i {
    color: var(--primary);
    opacity: 0.8;
}

/* ---- صفحه‌بندی ---- */
.pagination a,
.pagination span {
    padding: 10px 18px;
    border-radius: 10px;
    font-weight: 500;
    transition: background var(--transition), color var(--transition);
}

.pagination a:hover {
    background: rgba(201, 162, 39, 0.15);
    color: var(--primary-dark);
}

.pagination .active,
.pagination .current {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: #fff;
}

/* ---- نظرات ---- */
.comments-section {
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    border: 1px solid rgba(26, 29, 36, 0.06);
}

.comments-section h2 {
    border-bottom-color: var(--primary);
    color: var(--dark);
}

.comment-item {
    border-radius: 12px;
    border-right: 3px solid var(--primary);
    background: var(--cream);
}

.comment-header a { color: var(--primary); }
.reply-header a { color: var(--primary); }
.comment-form-section { border-top-color: var(--cream-2); }
.login-prompt a { color: var(--primary); }

/* ---- فوتر ---- */
.footer {
    background: var(--navy);
    padding: 56px 0 24px;
    margin-top: 0;
    border-top: 1px solid rgba(201, 162, 39, 0.2);
}

.footer-section h3,
.footer-section h4 {
    color: var(--primary-light);
    font-weight: 700;
    margin-bottom: 16px;
}

.footer-section p,
.footer-section ul li {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.7;
}

.footer-section a {
    color: rgba(255, 255, 255, 0.85);
    transition: color var(--transition);
}

.footer-section a:hover { color: var(--primary-light); }

.footer-bottom {
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    opacity: 0.9;
}

.footer-bottom p {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.65);
}

/* ---- ریسپانسیو ---- */
@media (max-width: 768px) {
    .hero { min-height: 88vh; }
    .hero-badge { font-size: 0.8rem; padding: 6px 14px; }
    .hero-connect-box { flex-direction: column; padding: 12px 16px; }
    .hero-connect-code { font-size: 0.9rem; text-align: center; }
    .hero-buttons { flex-direction: column; }
    .index-about { padding: 56px 0; }
    .index-why { padding: 64px 0; }
    .index-why-grid { grid-template-columns: 1fr; margin-top: 28px; }
    .index-community { padding: 56px 0; }
    .index-community-inner h2 { font-size: 1.4rem; }
    .index-community-buttons { flex-direction: column; }
    .features,
    .how-to-connect,
    .latest-articles,
    .blog-content,
    .shop-content {
        padding: 64px 0;
    }
    .section-subtitle { margin-bottom: 32px; }
    .feature-card,
    .step-card { padding: 28px 20px; }
    .stat-number { animation: none; }
    .blog-header,
    .shop-header { padding: 48px 0; }
}
.modern-slider {
    position: relative;
    overflow: hidden;
    margin-top: 50px;
}

.articles-slider {
    display: flex;
    gap: 28px;
    transition: transform 0.8s cubic-bezier(0.22,1,0.36,1);
    will-change: transform;
}

.article-slide {
    min-width: 350px;
    flex-shrink: 0;
    border-radius: 16px;
    overflow: hidden;
    background: #fff;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.article-slide:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-hover);
}

.article-image {
    width: 100%;
    height: 220px;
    background-size: cover;
    background-position: center;
}

.article-content {
    padding: 18px 16px 24px;
}

.article-content h3 {
    margin: 0 0 10px 0;
    font-size: 1.15rem;
    font-weight: 700;
}

.article-content h3 a {
    color: var(--dark);
    text-decoration: none;
}

.article-content p {
    font-size: 0.95rem;
    color: #555;
    margin-bottom: 12px;
    line-height: 1.5;
}

.article-meta {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    color: #888;
}

.articles-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: #fff;
    box-shadow: 0 8px 24px var(--primary-glow);
    transition: transform 0.3s ease;
    z-index: 5;
}

.articles-nav:hover { transform: translateY(-50%) scale(1.1); }

.articles-prev { right: -24px; }
.articles-next { left: -24px; }

@media (max-width:992px){
    .article-slide { min-width: 80%; }
}
@media (max-width:600px){
    .article-slide { min-width: 90%; }
}

