/* ============================================
   Enbox - استایل اصلی سایت
   زبانت رو جعبه کن!
   ============================================ */

/* ============ فونت IRANSansXV ============ */
@font-face {
    font-family: 'IRANSansXV';
    src: url('../fonts/IRANSansXV.woff') format('woff'),
         url('../fonts/IRANSansXV.woff2') format('woff2');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

/* ============ متغیرهای رنگی ============ */
:root {
    --primary: #667eea;
    --primary-dark: #5568d3;
    --secondary: #764ba2;
    --accent: #f093fb;
    --success: #48bb78;
    --danger: #f56565;
    --warning: #ed8936;
    --info: #4299e1;
    
    --dark: #1a202c;
    --gray-900: #2d3748;
    --gray-700: #4a5568;
    --gray-500: #718096;
    --gray-300: #cbd5e0;
    --gray-100: #f7fafc;
    --white: #ffffff;
    
    --gradient: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
    --gradient-primary: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.15);
    --shadow-xl: 0 20px 50px rgba(0, 0, 0, 0.2);
    
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-xl: 30px;
    
    --transition: all 0.3s ease;
}

/* ============ ریست ============ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'IRANSansXV', Tahoma, sans-serif;
    direction: rtl;
    text-align: right;
    background: var(--gray-100);
    color: var(--gray-900);
    line-height: 1.8;
    min-height: 100vh;
    overflow-x: hidden;
}

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

a:hover {
    color: var(--primary-dark);
}

img {
    max-width: 100%;
    height: auto;
}

ul, ol {
    list-style: none;
}

/* ============ کانتینر ============ */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.container-fluid {
    width: 100%;
    padding: 0 20px;
}

/* ============ دکمه‌ها ============ */
.btn {
    display: inline-block;
    padding: 12px 28px;
    border: none;
    border-radius: var(--radius-md);
    font-family: inherit;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
    text-decoration: none;
}

.btn-primary {
    background: var(--gradient-primary);
    color: var(--white);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.5);
    color: var(--white);
}

.btn-secondary {
    background: var(--gray-100);
    color: var(--gray-900);
}

.btn-secondary:hover {
    background: var(--gray-300);
    color: var(--gray-900);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
}

.btn-outline:hover {
    background: var(--primary);
    color: var(--white);
}

.btn-success {
    background: var(--success);
    color: var(--white);
}

.btn-danger {
    background: var(--danger);
    color: var(--white);
}

.btn-sm {
    padding: 8px 18px;
    font-size: 13px;
}

.btn-lg {
    padding: 16px 40px;
    font-size: 17px;
}

.btn-block {
    display: block;
    width: 100%;
}

/* ============ هدر ============ */
.header {
    background: var(--white);
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-top {
    background: var(--gradient-primary);
    color: var(--white);
    padding: 8px 0;
    font-size: 13px;
}

.header-top .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-main {
    padding: 15px 0;
}

.header-main .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 24px;
    font-weight: 900;
    color: var(--gray-900);
    text-decoration: none;
}

.logo-icon {
    font-size: 32px;
}

.logo-text {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ============ منوی اصلی ============ */
.main-nav ul {
    display: flex;
    gap: 5px;
}

.main-nav a {
    display: block;
    padding: 10px 18px;
    color: var(--gray-700);
    font-weight: 600;
    font-size: 15px;
    border-radius: var(--radius-sm);
    transition: var(--transition);
}

.main-nav a:hover,
.main-nav a.active {
    background: var(--gray-100);
    color: var(--primary);
}

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

/* ============ منوی موبایل ============ */
.mobile-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    color: var(--gray-900);
    cursor: pointer;
    padding: 5px 10px;
}

/* ============ کارت ============ */
.card {
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    padding: 25px;
    transition: var(--transition);
}

.card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-3px);
}

.card-header {
    padding-bottom: 15px;
    margin-bottom: 15px;
    border-bottom: 1px solid var(--gray-300);
}

.card-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 5px;
}

.card-text {
    color: var(--gray-500);
    font-size: 14px;
    line-height: 1.8;
}

/* ============ فرم‌ها ============ */
.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--gray-700);
    font-size: 14px;
}

.form-control {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid var(--gray-300);
    border-radius: var(--radius-md);
    font-family: inherit;
    font-size: 15px;
    background: var(--white);
    color: var(--gray-900);
    transition: var(--transition);
    box-sizing: border-box;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.1);
}

.form-control::placeholder {
    color: var(--gray-500);
}

textarea.form-control {
    min-height: 120px;
    resize: vertical;
}

select.form-control {
    cursor: pointer;
}

/* ============ هشدارها ============ */
.alert {
    padding: 14px 20px;
    border-radius: var(--radius-md);
    margin-bottom: 20px;
    font-size: 14px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 10px;
}

.alert-success {
    background: #f0fff4;
    color: #22543d;
    border-right: 4px solid var(--success);
}

.alert-danger {
    background: #fff5f5;
    color: #742a2a;
    border-right: 4px solid var(--danger);
}

.alert-warning {
    background: #fffaf0;
    color: #7b341e;
    border-right: 4px solid var(--warning);
}

.alert-info {
    background: #ebf8ff;
    color: #2a4365;
    border-right: 4px solid var(--info);
}

/* ============ بخش Hero ============ */
.hero {
    background: var(--gradient);
    background-size: 400% 400%;
    animation: gradientShift 15s ease infinite;
    color: var(--white);
    padding: 100px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

@keyframes gradientShift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.hero h1 {
    font-size: 48px;
    font-weight: 900;
    margin-bottom: 20px;
    text-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.hero p {
    font-size: 18px;
    margin-bottom: 35px;
    opacity: 0.95;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.hero .btn {
    background: var(--white);
    color: var(--primary);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.hero .btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
    color: var(--primary);
}

/* ============ ویژگی‌ها ============ */
.features {
    padding: 80px 0;
    background: var(--white);
}

.section-title {
    text-align: center;
    margin-bottom: 50px;
}

.section-title h2 {
    font-size: 36px;
    font-weight: 900;
    color: var(--gray-900);
    margin-bottom: 15px;
}

.section-title p {
    color: var(--gray-500);
    font-size: 16px;
    max-width: 600px;
    margin: 0 auto;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.feature-card {
    text-align: center;
    padding: 40px 25px;
    background: var(--gray-100);
    border-radius: var(--radius-lg);
    transition: var(--transition);
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    background: var(--white);
}

.feature-icon {
    font-size: 48px;
    margin-bottom: 20px;
    display: inline-block;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.feature-card h3 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--gray-900);
}

.feature-card p {
    color: var(--gray-500);
    font-size: 14px;
    line-height: 1.8;
}

/* ============ فوتر ============ */
.footer {
    background: var(--dark);
    color: var(--gray-300);
    padding: 60px 0 0;
    margin-top: 80px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 40px;
    padding-bottom: 40px;
}

.footer-col h4 {
    color: var(--white);
    font-size: 17px;
    font-weight: 700;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.footer-col h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 40px;
    height: 3px;
    background: var(--gradient-primary);
    border-radius: 2px;
}

.footer-col ul li {
    margin-bottom: 12px;
}

.footer-col ul a {
    color: var(--gray-300);
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

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

.footer-col p {
    font-size: 14px;
    line-height: 2;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 20px 0;
    text-align: center;
    font-size: 13px;
    color: var(--gray-500);
}

.social-links {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: var(--white);
    transition: var(--transition);
}

.social-links a:hover {
    background: var(--gradient-primary);
    transform: translateY(-3px);
}

/* ============ لودر ============ */
.loader {
    display: none;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-top-color: var(--white);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin-left: 8px;
}

.loader.active {
    display: inline-block;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ============ صفحه‌ی خطا ============ */
.error-page {
    min-height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 40px 20px;
}

.error-code {
    font-size: 120px;
    font-weight: 900;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
    margin-bottom: 20px;
}

.error-title {
    font-size: 28px;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 15px;
}

.error-text {
    color: var(--gray-500);
    font-size: 16px;
    margin-bottom: 30px;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

/* ============ ریسپانسیو ============ */
@media (max-width: 992px) {
    .main-nav {
        position: fixed;
        top: 0;
        right: -300px;
        width: 280px;
        height: 100vh;
        background: var(--white);
        box-shadow: var(--shadow-lg);
        padding: 80px 20px 20px;
        transition: right 0.3s ease;
        z-index: 999;
        overflow-y: auto;
    }

    .main-nav.active {
        right: 0;
    }

    .main-nav ul {
        flex-direction: column;
        gap: 5px;
    }

    .main-nav a {
        padding: 12px 15px;
    }

    .mobile-toggle {
        display: block;
    }

    .hero h1 {
        font-size: 32px;
    }

    .hero p {
        font-size: 16px;
    }

    .section-title h2 {
        font-size: 28px;
    }
}

@media (max-width: 600px) {
    .container {
        padding: 0 15px;
    }

    .hero {
        padding: 60px 0;
    }

    .hero h1 {
        font-size: 26px;
    }

    .error-code {
        font-size: 80px;
    }

    .error-title {
        font-size: 22px;
    }

    .header-top {
        font-size: 11px;
    }

    .header-top .container {
        flex-direction: column;
        gap: 5px;
    }
}

/* ============ انیمیشن‌های عمومی ============ */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.fade-in {
    animation: fadeIn 0.6s ease-out;
}

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

.pulse {
    animation: pulse 2s ease-in-out infinite;
}

/* ============ اسکرول‌بار ============ */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--gray-100);
}

::-webkit-scrollbar-thumb {
    background: var(--gradient-primary);
    border-radius: 5px;
}

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


/* ============================================
   صفحه درباره ما
   ============================================ */

/* ============ Hero ============ */
.about-hero {
    background: var(--gradient);
    background-size: 400% 400%;
    animation: gradientShift 15s ease infinite;
    color: var(--white);
    padding: 80px 0;
    text-align: center;
}

.about-hero-content h1 {
    font-size: 42px;
    font-weight: 900;
    margin-bottom: 15px;
    text-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.about-hero-subtitle {
    font-size: 17px;
    opacity: 0.95;
    max-width: 700px;
    margin: 0 auto;
}

/* ============ داستان ما ============ */
.about-section {
    padding: 80px 0;
    background: var(--white);
}

.about-story {
    display: flex;
    gap: 40px;
    align-items: flex-start;
    max-width: 900px;
    margin: 0 auto;
    background: var(--gray-100);
    padding: 50px;
    border-radius: var(--radius-xl);
}

.about-story-icon {
    flex-shrink: 0;
    width: 100px;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 44px;
    background: var(--gradient-primary);
    color: var(--white);
    border-radius: 50%;
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.4);
}

.about-story-content h2 {
    font-size: 28px;
    font-weight: 900;
    color: var(--gray-900);
    margin-bottom: 15px;
}

.about-story-content p {
    font-size: 16px;
    line-height: 2;
    color: var(--gray-700);
}

/* ============ آمار ============ */
.stats-section {
    padding: 70px 0;
    background: var(--gray-100);
}

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

.stat-card {
    background: var(--white);
    padding: 35px 20px;
    border-radius: var(--radius-lg);
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.stat-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.stat-icon {
    font-size: 40px;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 15px;
}

.stat-number {
    font-size: 36px;
    font-weight: 900;
    color: var(--gray-900);
    margin-bottom: 5px;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-label {
    color: var(--gray-500);
    font-size: 14px;
    font-weight: 600;
}

/* ============ مأموریت و چشم‌انداز ============ */
.mission-vision-section {
    padding: 80px 0;
    background: var(--white);
}

.mv-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

.mv-card {
    padding: 45px 35px;
    border-radius: var(--radius-xl);
    color: var(--white);
    position: relative;
    overflow: hidden;
    transition: var(--transition);
}

.mv-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
}

.mv-mission {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.mv-vision {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.mv-icon {
    font-size: 40px;
    margin-bottom: 20px;
    opacity: 0.95;
}

.mv-card h3 {
    font-size: 24px;
    font-weight: 900;
    margin-bottom: 15px;
}

.mv-card p {
    font-size: 15px;
    line-height: 2;
    opacity: 0.95;
}

/* ============ ارزش‌ها ============ */
.values-section {
    padding: 80px 0;
    background: var(--gray-100);
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
}

.value-card {
    background: var(--white);
    padding: 35px 25px;
    border-radius: var(--radius-lg);
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    border-top: 4px solid transparent;
}

.value-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-top-color: var(--primary);
}

.value-icon {
    font-size: 42px;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 18px;
}

.value-card h4 {
    font-size: 18px;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 12px;
}

.value-card p {
    color: var(--gray-500);
    font-size: 14px;
    line-height: 1.8;
}

/* ============ تیم ============ */
.team-section {
    padding: 80px 0;
    background: var(--white);
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 25px;
}

.team-card {
    background: var(--gray-100);
    padding: 35px 20px;
    border-radius: var(--radius-lg);
    text-align: center;
    transition: var(--transition);
}

.team-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    background: var(--white);
}

.team-avatar {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    background: var(--gradient-primary);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
    margin: 0 auto 18px;
    box-shadow: 0 10px 25px rgba(102, 126, 234, 0.3);
}

.team-card h4 {
    font-size: 17px;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 5px;
}

.team-position {
    color: var(--primary);
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 12px;
}

.team-bio {
    color: var(--gray-500);
    font-size: 13px;
    line-height: 1.8;
}

/* ============ CTA ============ */
.cta-section {
    padding: 80px 0;
    background: var(--gradient);
    background-size: 400% 400%;
    animation: gradientShift 15s ease infinite;
    color: var(--white);
    text-align: center;
}

.cta-content h2 {
    font-size: 36px;
    font-weight: 900;
    margin-bottom: 15px;
    text-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.cta-content p {
    font-size: 17px;
    margin-bottom: 30px;
    opacity: 0.95;
}

.cta-content .btn {
    background: var(--white);
    color: var(--primary);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.cta-content .btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
}

/* ============ ریسپانسیو ============ */
@media (max-width: 768px) {
    .about-hero-content h1 { font-size: 28px; }
    .about-hero-subtitle { font-size: 15px; }

    .about-story {
        flex-direction: column;
        padding: 30px;
        text-align: center;
    }

    .about-story-icon {
        margin: 0 auto;
        width: 80px;
        height: 80px;
        font-size: 36px;
    }

    .about-story-content h2 { font-size: 22px; }

    .stat-number { font-size: 28px; }
    .stat-icon { font-size: 32px; }

    .mv-card { padding: 30px 25px; }
    .mv-card h3 { font-size: 20px; }

    .cta-content h2 { font-size: 24px; }
    .cta-content p { font-size: 15px; }
}

/* ============================================
   صفحه تماس با ما
   ============================================ */

/* ============ Hero ============ */
.contact-hero {
    background: var(--gradient);
    background-size: 400% 400%;
    animation: gradientShift 15s ease infinite;
    color: var(--white);
    padding: 70px 0;
    text-align: center;
}

.contact-hero h1 {
    font-size: 42px;
    font-weight: 900;
    margin-bottom: 12px;
    text-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.contact-hero p {
    font-size: 17px;
    opacity: 0.95;
}

/* ============ کارت‌های تماس ============ */
.contact-info-section {
    padding: 60px 0 30px;
    background: var(--white);
    margin-top: -40px;
    position: relative;
    z-index: 5;
}

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

.contact-card {
    background: var(--white);
    padding: 30px 20px;
    border-radius: var(--radius-lg);
    text-align: center;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    border: 1px solid var(--gray-300);
}

.contact-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
}

.contact-card-icon {
    width: 65px;
    height: 65px;
    border-radius: 50%;
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    margin: 0 auto 15px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.contact-card h4 {
    font-size: 16px;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 10px;
}

.contact-card p {
    color: var(--gray-500);
    font-size: 13px;
    line-height: 1.9;
}

/* ============ فرم تماس ============ */
.contact-form-section {
    padding: 60px 0;
    background: var(--gray-100);
}

.contact-wrapper {
    display: grid;
    grid-template-columns: 1.6fr 1fr;
    gap: 30px;
    align-items: start;
}

.contact-form-box {
    background: var(--white);
    padding: 40px;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-md);
}

.form-header {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid var(--gray-100);
}

.form-header h2 {
    font-size: 24px;
    font-weight: 900;
    color: var(--gray-900);
    margin-bottom: 8px;
}

.form-header p {
    color: var(--gray-500);
    font-size: 14px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.error-message {
    color: var(--danger);
    font-size: 12px;
    display: block;
    margin-top: 5px;
}

/* ============ ستون کناری ============ */
.contact-side {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.side-box {
    background: var(--white);
    padding: 30px 25px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
}

.side-box h3 {
    font-size: 17px;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.side-box h3 i {
    color: var(--primary);
}

.side-box p {
    color: var(--gray-500);
    font-size: 13px;
    line-height: 1.9;
    margin-bottom: 15px;
}

.side-box-gradient {
    background: var(--gradient-primary);
    color: var(--white);
}

.side-box-gradient h3,
.side-box-gradient h3 i,
.side-box-gradient p {
    color: var(--white);
}

/* ============ شبکه‌های اجتماعی ============ */
.social-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.social-box {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 15px;
    border-radius: var(--radius-md);
    color: var(--white);
    font-size: 13px;
    font-weight: 600;
    transition: var(--transition);
    text-decoration: none;
}

.social-box:hover {
    transform: translateY(-3px);
    color: var(--white);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.social-box i {
    font-size: 18px;
}

/* ============ تماس سریع ============ */
.quick-contact {
    list-style: none;
    padding: 0;
    margin: 0;
}

.quick-contact li {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.quick-contact li:last-child {
    border-bottom: none;
}

.quick-contact li i {
    font-size: 18px;
    color: var(--white);
    opacity: 0.9;
}

.quick-contact a {
    color: var(--white);
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
}

.quick-contact a:hover {
    color: var(--white);
    opacity: 0.85;
}

/* ============ نقشه ============ */
.map-section {
    padding: 60px 0 0;
    background: var(--white);
}

.map-container {
    margin-top: 30px;
    width: 100%;
    height: 450px;
    overflow: hidden;
    position: relative;
}

.map-container iframe {
    width: 100%;
    height: 100%;
    border: none;
    filter: grayscale(0.2);
    transition: var(--transition);
}

.map-container iframe:hover {
    filter: grayscale(0);
}

/* ============ سوالات متداول ============ */
.faq-section {
    padding: 80px 0;
    background: var(--white);
}

.faq-list {
    max-width: 850px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.faq-item {
    background: var(--gray-100);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: var(--transition);
    border: 1px solid transparent;
}

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

.faq-question {
    padding: 20px 25px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 700;
    color: var(--gray-900);
    font-size: 15px;
    transition: var(--transition);
    user-select: none;
}

.faq-question:hover {
    color: var(--primary);
}

.faq-question i.fa-question-circle {
    color: var(--primary);
    margin-left: 8px;
}

.faq-arrow {
    transition: transform 0.3s ease;
    color: var(--primary);
    font-size: 14px;
}

.faq-item.active .faq-arrow {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
    background: var(--white);
}

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

.faq-answer p {
    padding: 20px 25px;
    color: var(--gray-700);
    font-size: 14px;
    line-height: 2;
    margin: 0;
}

/* ============ ریسپانسیو ============ */
@media (max-width: 992px) {
    .contact-wrapper {
        grid-template-columns: 1fr;
    }

    .form-row {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .contact-hero h1 { font-size: 28px; }
    .contact-hero p { font-size: 15px; }

    .contact-form-box {
        padding: 25px 20px;
    }

    .form-header h2 { font-size: 20px; }

    .contact-card-icon {
        width: 55px;
        height: 55px;
        font-size: 22px;
    }

    .faq-question {
        padding: 15px 18px;
        font-size: 14px;
    }

    .faq-answer p {
        padding: 15px 18px;
    }
}

/* ============================================
   وبلاگ
   ============================================ */

/* ============ Hero ============ */
.blog-hero {
    background: var(--gradient);
    background-size: 400% 400%;
    animation: gradientShift 15s ease infinite;
    color: var(--white);
    padding: 70px 0;
    text-align: center;
}

.blog-hero h1 {
    font-size: 42px;
    font-weight: 900;
    margin-bottom: 12px;
    text-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.blog-hero p {
    font-size: 17px;
    opacity: 0.95;
}

/* ============ فیلتر ============ */
.blog-filter-section {
    padding: 30px 0;
    background: var(--white);
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 80px;
    z-index: 100;
}

.blog-filter-box {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.search-box {
    display: flex;
    align-items: center;
    background: var(--gray-100);
    border-radius: var(--radius-md);
    padding: 5px 5px 5px 15px;
    flex: 1;
    max-width: 400px;
    gap: 10px;
}

.search-box i {
    color: var(--gray-500);
}

.search-input {
    flex: 1;
    border: none;
    background: transparent;
    padding: 8px;
    font-family: inherit;
    font-size: 14px;
    outline: none;
    color: var(--gray-900);
}

.category-tags {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: var(--gray-100);
    color: var(--gray-700);
    border-radius: 50px;
    font-size: 13px;
    font-weight: 600;
    transition: var(--transition);
    text-decoration: none;
}

.tag:hover,
.tag.active {
    background: var(--gradient-primary);
    color: var(--white);
    transform: translateY(-2px);
}

/* ============ لیست مقالات ============ */
.blog-section {
    padding: 50px 0;
    background: var(--gray-100);
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 25px;
}

.blog-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.blog-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.blog-card-image {
    height: 200px;
    position: relative;
    display: block;
    overflow: hidden;
    background: var(--gradient-primary);
}

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

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

.default-post-image {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 60px;
    color: rgba(255, 255, 255, 0.5);
}

.blog-card-category {
    position: absolute;
    top: 15px;
    right: 15px;
    padding: 6px 14px;
    color: var(--white);
    border-radius: 50px;
    font-size: 12px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.blog-card-body {
    padding: 22px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.blog-card-meta {
    display: flex;
    gap: 15px;
    font-size: 12px;
    color: var(--gray-500);
    margin-bottom: 12px;
}

.blog-card-meta span {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.blog-card-title {
    font-size: 17px;
    font-weight: 700;
    line-height: 1.6;
    margin-bottom: 12px;
}

.blog-card-title a {
    color: var(--gray-900);
    text-decoration: none;
}

.blog-card-title a:hover {
    color: var(--primary);
}

.blog-card-summary {
    color: var(--gray-500);
    font-size: 13px;
    line-height: 1.9;
    margin-bottom: 18px;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.blog-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 15px;
    border-top: 1px solid var(--gray-100);
}

.blog-card-author {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: var(--gray-700);
    font-weight: 600;
}

.read-more {
    font-size: 13px;
    font-weight: 700;
    color: var(--primary);
    display: inline-flex;
    align-items: center;
    gap: 5px;
    text-decoration: none;
}

.read-more:hover {
    color: var(--primary-dark);
    gap: 8px;
}

/* ============ صفحه‌بندی ============ */
.pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 40px;
    flex-wrap: wrap;
}

.page-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 42px;
    height: 42px;
    padding: 0 12px;
    background: var(--white);
    color: var(--gray-700);
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 14px;
    transition: var(--transition);
    text-decoration: none;
    box-shadow: var(--shadow-sm);
}

.page-link:hover,
.page-link.active {
    background: var(--gradient-primary);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.4);
}

/* ============ حالت خالی ============ */
.empty-state {
    text-align: center;
    padding: 80px 20px;
    background: var(--white);
    border-radius: var(--radius-lg);
}

.empty-state i {
    font-size: 70px;
    color: var(--gray-300);
    margin-bottom: 20px;
    display: block;
}

.empty-state h3 {
    font-size: 22px;
    color: var(--gray-900);
    margin-bottom: 10px;
}

.empty-state p {
    color: var(--gray-500);
    font-size: 14px;
}

/* ============================================
   صفحه‌ی مقاله (Post)
   ============================================ */

.post-hero {
    background: var(--gradient);
    background-size: 400% 400%;
    animation: gradientShift 15s ease infinite;
    color: var(--white);
    padding: 60px 0;
}

.post-breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 20px;
    font-size: 13px;
    opacity: 0.9;
}

.post-breadcrumb a {
    color: var(--white);
    text-decoration: none;
    opacity: 0.85;
}

.post-breadcrumb a:hover {
    opacity: 1;
}

.post-breadcrumb i {
    font-size: 10px;
    opacity: 0.7;
}

.post-hero h1 {
    font-size: 32px;
    font-weight: 900;
    line-height: 1.5;
    margin-bottom: 20px;
    text-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.post-meta {
    display: flex;
    gap: 25px;
    flex-wrap: wrap;
    font-size: 13px;
    opacity: 0.95;
}

.post-meta span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

/* ============ محتوای مقاله ============ */
.post-content-section {
    padding: 50px 0;
    background: var(--gray-100);
}

.post-layout {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 30px;
    align-items: start;
}

.post-content {
    background: var(--white);
    padding: 40px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    line-height: 2.2;
    font-size: 15px;
    color: var(--gray-700);
}

.post-content p {
    margin-bottom: 20px;
}

.post-content h2 {
    font-size: 24px;
    font-weight: 900;
    color: var(--gray-900);
    margin: 35px 0 18px;
    padding-bottom: 10px;
    border-bottom: 3px solid var(--gray-100);
}

.post-content h3 {
    font-size: 20px;
    font-weight: 700;
    color: var(--gray-900);
    margin: 28px 0 15px;
}

.post-content img {
    max-width: 100%;
    border-radius: var(--radius-md);
    margin: 20px 0;
}

.post-content ul,
.post-content ol {
    padding-right: 25px;
    margin-bottom: 20px;
}

.post-content li {
    margin-bottom: 8px;
}

.post-content a {
    color: var(--primary);
    text-decoration: underline;
}

/* ============ تگ‌ها ============ */
.post-tags {
    margin-top: 35px;
    padding-top: 25px;
    border-top: 2px solid var(--gray-100);
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.post-tags i {
    color: var(--gray-500);
}

.post-tags .tag {
    background: var(--gray-100);
    color: var(--gray-700);
    font-size: 12px;
    padding: 6px 12px;
}

.post-tags .tag:hover {
    background: var(--primary);
    color: var(--white);
}

/* ============ اشتراک‌گذاری ============ */
.post-share {
    margin-top: 25px;
    padding-top: 20px;
    border-top: 2px solid var(--gray-100);
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.post-share > span {
    font-weight: 700;
    color: var(--gray-700);
    font-size: 14px;
}

.share-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 16px;
    transition: var(--transition);
    text-decoration: none;
}

.share-btn:hover {
    transform: translateY(-3px);
    color: var(--white);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.share-telegram { background: #0088cc; }
.share-whatsapp { background: #25D366; }
.share-twitter { background: #1DA1F2; }
.share-linkedin { background: #0077B5; }

/* ============ ستون کناری ============ */
.post-sidebar {
    display: flex;
    flex-direction: column;
    gap: 20px;
    position: sticky;
    top: 100px;
}

.related-post {
    display: flex;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid var(--gray-100);
    text-decoration: none;
    transition: var(--transition);
}

.related-post:last-child {
    border-bottom: none;
}

.related-post:hover {
    padding-right: 5px;
}

.related-post-icon {
    flex-shrink: 0;
    width: 45px;
    height: 45px;
    border-radius: var(--radius-md);
    background: var(--gradient-primary);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}

.related-post-info h5 {
    font-size: 13px;
    font-weight: 700;
    color: var(--gray-900);
    line-height: 1.6;
    margin-bottom: 5px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.related-post-info span {
    font-size: 11px;
    color: var(--gray-500);
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

/* ============ نظرات ============ */
.comments-section {
    padding: 50px 0;
    background: var(--white);
}

.comments-box {
    max-width: 900px;
    margin: 0 auto;
}

.comments-box h2 {
    font-size: 22px;
    font-weight: 900;
    color: var(--gray-900);
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--gray-100);
    display: flex;
    align-items: center;
    gap: 10px;
}

.comments-box h2 i {
    color: var(--primary);
}

.comment-form {
    background: var(--gray-100);
    padding: 25px;
    border-radius: var(--radius-lg);
    margin-bottom: 35px;
}

.comment-form h4 {
    font-size: 16px;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 18px;
}

.comment-item {
    display: flex;
    gap: 15px;
    padding: 20px 0;
    border-bottom: 1px solid var(--gray-100);
}

.comment-item:last-child {
    border-bottom: none;
}

.comment-avatar {
    flex-shrink: 0;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--gradient-primary);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}

.comment-body {
    flex: 1;
}

.comment-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
    flex-wrap: wrap;
    gap: 5px;
}

.comment-header h5 {
    font-size: 14px;
    font-weight: 700;
    color: var(--gray-900);
}

.comment-header span {
    font-size: 11px;
    color: var(--gray-500);
}

.comment-body p {
    color: var(--gray-700);
    font-size: 14px;
    line-height: 1.9;
    margin: 0;
}

/* ============ ریسپانسیو ============ */
@media (max-width: 992px) {
    .post-layout {
        grid-template-columns: 1fr;
    }

    .post-sidebar {
        position: static;
    }

    .blog-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    }

    .blog-filter-box {
        flex-direction: column;
        align-items: stretch;
    }

    .search-box {
        max-width: 100%;
    }
}

@media (max-width: 768px) {
    .blog-hero h1 { font-size: 28px; }
    .blog-hero p { font-size: 15px; }

    .blog-grid {
        grid-template-columns: 1fr;
    }

    .post-hero h1 { font-size: 22px; }

    .post-content { padding: 25px 20px; }

    .post-meta { font-size: 12px; gap: 15px; }

    .comments-box h2 { font-size: 18px; }

    .comment-form { padding: 18px; }

    .form-row {
        grid-template-columns: 1fr !important;
    }
}

/* ============================================
   صفحات احراز هویت (ورود / عضویت)
   ============================================ */

.auth-section {
    min-height: calc(100vh - 200px);
    padding: 40px 0;
    background: var(--gray-100);
    display: flex;
    align-items: center;
}

.auth-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    background: var(--white);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-xl);
    overflow: hidden;
    max-width: 1000px;
    margin: 0 auto;
    min-height: 600px;
}

/* ============ ستون چپ (اطلاعات) ============ */
.auth-side {
    background: var(--gradient);
    background-size: 400% 400%;
    animation: gradientShift 15s ease infinite;
    color: var(--white);
    padding: 50px 40px;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.auth-side::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    animation: float 20s infinite;
}

.auth-side-content {
    position: relative;
    z-index: 2;
}

.auth-logo {
    font-size: 26px;
    font-weight: 900;
    letter-spacing: 3px;
    margin-bottom: 8px;
}

.auth-slogan {
    font-size: 14px;
    opacity: 0.95;
    margin-bottom: 35px;
    font-weight: 600;
}

.auth-side h2 {
    font-size: 28px;
    font-weight: 900;
    margin-bottom: 15px;
    line-height: 1.5;
}

.auth-side > p,
.auth-side-content > p {
    font-size: 15px;
    line-height: 2;
    opacity: 0.95;
    margin-bottom: 30px;
}

.auth-features {
    list-style: none;
    padding: 0;
    margin: 0;
}

.auth-features li {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 0;
    font-size: 14px;
    opacity: 0.95;
}

.auth-features li i {
    color: #48bb78;
    font-size: 18px;
    background: rgba(255, 255, 255, 0.2);
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
}

/* ============ ستون راست (فرم) ============ */
.auth-form-side {
    padding: 50px 45px;
    display: flex;
    align-items: center;
}

.auth-form-box {
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
}

.auth-header {
    margin-bottom: 30px;
    position: relative;
}

.auth-header h2 {
    font-size: 24px;
    font-weight: 900;
    color: var(--gray-900);
    margin-bottom: 8px;
}

.auth-header p {
    color: var(--gray-500);
    font-size: 14px;
    line-height: 1.8;
}

.auth-back {
    margin-bottom: 15px;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--gray-500);
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
}

.back-link:hover {
    color: var(--primary);
}

/* ============ فرم ============ */
.form-control-lg {
    padding: 15px 18px;
    font-size: 16px;
    text-align: center;
    letter-spacing: 1px;
    font-weight: 600;
}

.form-control-lg.code-input {
    font-size: 22px;
    letter-spacing: 8px;
    font-weight: 900;
    padding: 15px 18px;
    text-align: center;
}

.form-label i {
    color: var(--primary);
    margin-left: 5px;
}

/* ============ لینک‌های پایین فرم ============ */
.auth-footer {
    text-align: center;
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid var(--gray-100);
}

.auth-footer p {
    color: var(--gray-500);
    font-size: 14px;
}

.auth-footer a {
    color: var(--primary);
    font-weight: 700;
    text-decoration: none;
}

.auth-footer a:hover {
    color: var(--primary-dark);
}

.auth-terms {
    margin-top: 20px;
    padding: 15px;
    background: var(--gray-100);
    border-radius: var(--radius-md);
}

.auth-terms p {
    color: var(--gray-500);
    font-size: 12px;
    line-height: 1.9;
    text-align: center;
    margin: 0;
}

.auth-terms a {
    color: var(--primary);
    font-weight: 600;
}

/* ============ بخش ارسال مجدد ============ */
.resend-section {
    margin-top: 25px;
    text-align: center;
}

.resend-text {
    color: var(--gray-500);
    font-size: 14px;
    margin: 0;
}

.resend-link {
    color: var(--primary);
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
}

.resend-link:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

.timer-text {
    color: var(--gray-500);
    font-size: 14px;
    margin: 0;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--gray-100);
    padding: 10px 20px;
    border-radius: var(--radius-md);
}

.timer-text i {
    color: var(--primary);
}

.timer-text span {
    font-weight: 900;
    color: var(--primary);
    font-size: 16px;
    min-width: 30px;
    display: inline-block;
}

/* ============ ریسپانسیو ============ */
@media (max-width: 900px) {
    .auth-wrapper {
        grid-template-columns: 1fr;
    }

    .auth-side {
        padding: 40px 30px;
        min-height: auto;
    }

    .auth-side h2 {
        font-size: 22px;
    }

    .auth-features {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 5px;
    }

    .auth-form-side {
        padding: 40px 25px;
    }
}

@media (max-width: 600px) {
    .auth-section {
        padding: 20px 10px;
    }

    .auth-wrapper {
        border-radius: var(--radius-lg);
    }

    .auth-side {
        padding: 30px 20px;
    }

    .auth-side h2 {
        font-size: 20px;
    }

    .auth-features {
        grid-template-columns: 1fr;
    }

    .auth-form-side {
        padding: 30px 20px;
    }

    .auth-header h2 {
        font-size: 20px;
    }

    .form-control-lg.code-input {
        font-size: 18px;
        letter-spacing: 5px;
    }
}

/* ============ صفحه لاگین ============ */
.auth-wrapper-login {
    max-width: 950px;
}

.auth-wrapper-login .auth-features li i {
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
}

.auth-wrapper-login .auth-features li b {
    font-weight: 700;
}

/* ============ تایمر و ارسال مجدد ============ */
.resend-section {
    margin-top: 25px;
    text-align: center;
}

.timer-text {
    color: var(--gray-500);
    font-size: 14px;
    margin: 0;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--gray-100);
    padding: 12px 22px;
    border-radius: var(--radius-md);
    font-weight: 600;
}

.timer-text i {
    color: var(--primary);
    font-size: 15px;
}

.timer-text span {
    font-weight: 900;
    color: var(--primary);
    font-size: 17px;
    min-width: 32px;
    display: inline-block;
    text-align: center;
}

.resend-text {
    color: var(--gray-500);
    font-size: 14px;
    margin: 0;
    padding: 12px 22px;
    background: var(--gray-100);
    border-radius: var(--radius-md);
    display: inline-block;
}

.resend-link {
    color: var(--primary);
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
}

.resend-link:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

/* ============================================
   صفحات قوانین و حریم خصوصی
   ============================================ */

/* ============ Hero ============ */
.legal-hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
    background-size: 300% 300%;
    animation: gradientShift 15s ease infinite;
    color: #fff;
    padding: 70px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.legal-hero::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    animation: float 20s infinite;
}

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

.legal-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 34px;
    margin: 0 auto 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.legal-hero h1 {
    font-size: 38px;
    font-weight: 900;
    margin-bottom: 12px;
    text-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.legal-hero p {
    font-size: 16px;
    opacity: 0.95;
    max-width: 700px;
    margin: 0 auto 20px;
    line-height: 1.9;
}

.legal-meta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.15);
    padding: 8px 20px;
    border-radius: 50px;
    font-size: 13px;
    backdrop-filter: blur(10px);
}

/* ============ محتوا ============ */
.legal-content-section {
    padding: 50px 0;
    background: var(--gray-100);
}

.legal-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 30px;
    align-items: start;
}

/* ============ سایدبار ============ */
.legal-sidebar {
    position: sticky;
    top: 100px;
}

.legal-toc {
    background: #fff;
    border-radius: 18px;
    padding: 22px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
}

.legal-toc h4 {
    font-size: 14px;
    font-weight: 900;
    color: #2d3748;
    margin: 0 0 15px;
    padding-bottom: 12px;
    border-bottom: 1px solid #f0f4f8;
    display: flex;
    align-items: center;
    gap: 8px;
}

.legal-toc h4 i {
    color: #667eea;
}

.legal-toc-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.legal-toc-list li {
    margin-bottom: 5px;
}

.legal-toc-list a {
    display: block;
    padding: 8px 12px;
    color: #4a5568;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.2s ease;
    border-right: 3px solid transparent;
}

.legal-toc-list a:hover {
    background: #f7fafc;
    color: #667eea;
    border-right-color: #667eea;
    padding-right: 16px;
}

/* ============ لینک‌های مرتبط ============ */
.legal-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.legal-links li {
    margin-bottom: 8px;
}

.legal-links a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    color: #4a5568;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    border-radius: 10px;
    transition: all 0.2s ease;
    background: #f7fafc;
}

.legal-links a:hover {
    background: #edf2f7;
    color: #667eea;
    padding-right: 18px;
}

.legal-links a.active {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: #fff;
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.3);
}

.legal-links a i {
    font-size: 14px;
}

/* ============ محتوای اصلی ============ */
.legal-content {
    background: #fff;
    border-radius: 18px;
    padding: 40px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
    line-height: 2.2;
    font-size: 15px;
    color: #4a5568;
}

.legal-content h3 {
    font-size: 20px;
    font-weight: 900;
    color: #2d3748;
    margin: 35px 0 18px;
    padding: 15px 20px;
    background: linear-gradient(90deg, #f7fafc, transparent);
    border-right: 4px solid #667eea;
    border-radius: 10px;
    scroll-margin-top: 100px;
}

.legal-content h3:first-child {
    margin-top: 0;
}

.legal-content h4 {
    font-size: 16px;
    font-weight: 700;
    color: #2d3748;
    margin: 25px 0 12px;
}

.legal-content p {
    margin-bottom: 18px;
    line-height: 2.2;
}

.legal-content ul,
.legal-content ol {
    padding-right: 25px;
    margin-bottom: 20px;
}

.legal-content li {
    margin-bottom: 10px;
    line-height: 2;
}

.legal-content li::marker {
    color: #667eea;
    font-weight: 700;
}

.legal-content b {
    color: #2d3748;
    font-weight: 700;
}

.legal-content a {
    color: #667eea;
    text-decoration: underline;
    font-weight: 600;
}

.legal-content a:hover {
    color: #764ba2;
}

/* ============ CTA ============ */
.cta-section {
    padding: 60px 0;
    background: var(--gradient);
    background-size: 400% 400%;
    animation: gradientShift 15s ease infinite;
    color: #fff;
    text-align: center;
}

.cta-section h2 {
    font-size: 30px;
    font-weight: 900;
    margin-bottom: 12px;
    text-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.cta-section p {
    font-size: 16px;
    margin-bottom: 25px;
    opacity: 0.95;
}

.cta-section .btn {
    background: #fff;
    color: #667eea;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.cta-section .btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
}

/* ============ ریسپانسیو ============ */
@media (max-width: 992px) {
    .legal-layout {
        grid-template-columns: 1fr;
    }

    .legal-sidebar {
        position: static;
    }
}

@media (max-width: 768px) {
    .legal-hero {
        padding: 50px 0;
    }

    .legal-hero h1 {
        font-size: 26px;
    }

    .legal-hero p {
        font-size: 14px;
    }

    .legal-icon {
        width: 65px;
        height: 65px;
        font-size: 26px;
    }

    .legal-content {
        padding: 25px 20px;
        font-size: 14px;
    }

    .legal-content h3 {
        font-size: 17px;
        padding: 12px 15px;
    }

    .cta-section h2 {
        font-size: 22px;
    }

    .cta-section p {
        font-size: 14px;
    }
}

 /* ============================================
           صفحه دانلود اپ
           ============================================ */

        /* Hero */
        .download-hero {
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            padding: 80px 0 100px;
            position: relative;
            overflow: hidden;
        }

        .download-hero::before {
            content: '';
            position: absolute;
            top: -50%;
            right: -20%;
            width: 600px;
            height: 600px;
            background: rgba(255, 255, 255, 0.05);
            border-radius: 50%;
        }

        .download-hero::after {
            content: '';
            position: absolute;
            bottom: -30%;
            left: -10%;
            width: 400px;
            height: 400px;
            background: rgba(255, 255, 255, 0.05);
            border-radius: 50%;
        }

        .download-hero-content {
            position: relative;
            z-index: 2;
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 60px;
            align-items: center;
        }

        .download-hero-text h1 {
            font-size: 42px;
            font-weight: 900;
            color: #fff;
            margin-bottom: 20px;
            line-height: 1.4;
        }

        .download-hero-text p {
            font-size: 17px;
            color: rgba(255, 255, 255, 0.9);
            line-height: 2;
            margin-bottom: 30px;
        }

        .download-hero-badges {
            display: flex;
            gap: 15px;
            flex-wrap: wrap;
        }

        .version-badge {
            display: inline-flex;
            align-items: center;
            gap: 8px;
            background: rgba(255, 255, 255, 0.15);
            backdrop-filter: blur(10px);
            padding: 10px 20px;
            border-radius: 50px;
            border: 1px solid rgba(255, 255, 255, 0.2);
            color: #fff;
            font-size: 13px;
            font-weight: 700;
        }

        /* Phone Mockup */
        .download-hero-image {
            display: flex;
            justify-content: center;
            align-items: center;
        }

        .phone-mockup {
            width: 280px;
            height: 560px;
            background: #1a202c;
            border-radius: 40px;
            padding: 12px;
            box-shadow: 0 30px 80px rgba(0, 0, 0, 0.4);
            position: relative;
            animation: floatPhone 4s ease-in-out infinite;
        }

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

        .phone-screen {
            width: 100%;
            height: 100%;
            background: linear-gradient(180deg, #f7fafc 0%, #edf2f7 100%);
            border-radius: 30px;
            overflow: hidden;
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            padding: 20px;
            text-align: center;
        }

        .phone-screen-icon {
            font-size: 80px;
            margin-bottom: 20px;
        }

        .phone-screen h3 {
            font-size: 20px;
            color: #2d3748;
            font-weight: 900;
            margin-bottom: 10px;
        }

        .phone-screen p {
            font-size: 13px;
            color: #718096;
            line-height: 1.8;
        }

        /* Download Section */
        .download-section {
            padding: 80px 0;
            background: #f7fafc;
        }

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

        .section-header h2 {
            font-size: 32px;
            font-weight: 900;
            color: #2d3748;
            margin-bottom: 12px;
        }

        .section-header p {
            font-size: 15px;
            color: #718096;
            max-width: 600px;
            margin: 0 auto;
        }

        /* Download Cards */
        .download-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
            gap: 20px;
            max-width: 1000px;
            margin: 0 auto;
        }

        .download-card {
            background: #fff;
            border-radius: 20px;
            padding: 30px;
            text-align: center;
            box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
            transition: all 0.3s ease;
            border: 2px solid transparent;
            position: relative;
            overflow: hidden;
        }

        .download-card:hover {
            transform: translateY(-8px);
            box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12);
            border-color: #667eea;
        }

        .download-card.featured::before {
            content: '⭐ پیشنهاد ویژه';
            position: absolute;
            top: 15px;
            left: 15px;
            background: linear-gradient(135deg, #f6ad55, #ed8936);
            color: #fff;
            font-size: 10px;
            font-weight: 900;
            padding: 5px 12px;
            border-radius: 50px;
        }

        .download-card-icon {
            width: 80px;
            height: 80px;
            margin: 0 auto 20px;
            border-radius: 20px;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 36px;
            color: #fff;
        }

        .download-card-icon.bazaar {
            background: linear-gradient(135deg, #48bb78, #38b2ac);
        }

        .download-card-icon.myket {
            background: linear-gradient(135deg, #667eea, #764ba2);
        }

        .download-card-icon.direct {
            background: linear-gradient(135deg, #ed8936, #f6ad55);
        }

        .download-card h3 {
            font-size: 20px;
            font-weight: 900;
            color: #2d3748;
            margin-bottom: 8px;
        }

        .download-card .card-desc {
            font-size: 13px;
            color: #718096;
            margin-bottom: 20px;
            line-height: 1.8;
        }

        .download-card .card-meta {
            display: flex;
            justify-content: center;
            gap: 15px;
            margin-bottom: 20px;
            font-size: 11px;
            color: #a0aec0;
        }

        .download-card .card-meta span {
            display: inline-flex;
            align-items: center;
            gap: 4px;
        }

        .download-btn {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            gap: 8px;
            width: 100%;
            padding: 14px;
            border-radius: 12px;
            font-size: 14px;
            font-weight: 700;
            text-decoration: none;
            transition: all 0.2s ease;
            border: none;
            cursor: pointer;
            font-family: inherit;
        }

        .download-btn.bazaar {
            background: #48bb78;
            color: #fff;
        }

        .download-btn.bazaar:hover {
            background: #38a169;
            transform: scale(1.02);
        }

        .download-btn.myket {
            background: #667eea;
            color: #fff;
        }

        .download-btn.myket:hover {
            background: #5a67d8;
            transform: scale(1.02);
        }

        .download-btn.direct {
            background: #ed8936;
            color: #fff;
        }

        .download-btn.direct:hover {
            background: #dd6b20;
            transform: scale(1.02);
        }

        .download-btn.disabled {
            background: #e2e8f0;
            color: #a0aec0;
            cursor: not-allowed;
        }

        /* Version Info */
        .version-info-box {
            max-width: 700px;
            margin: 50px auto 0;
            background: #fff;
            border-radius: 20px;
            padding: 30px;
            box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
            border-right: 4px solid #667eea;
        }

        .version-info-box h3 {
            font-size: 18px;
            font-weight: 900;
            color: #2d3748;
            margin-bottom: 20px;
            display: flex;
            align-items: center;
            gap: 10px;
        }

        .version-info-row {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 12px 0;
            border-bottom: 1px solid #f0f4f8;
            font-size: 13px;
        }

        .version-info-row:last-child {
            border-bottom: none;
        }

        .version-info-label {
            color: #718096;
        }

        .version-info-value {
            font-weight: 900;
            color: #2d3748;
            direction: ltr;
            font-family: 'Courier New', monospace;
        }

        .release-notes-list {
            margin-top: 15px;
            padding-top: 15px;
            border-top: 1px dashed #e2e8f0;
        }

        .release-note-item {
            display: flex;
            align-items: flex-start;
            gap: 10px;
            padding: 8px 0;
            font-size: 13px;
            color: #4a5568;
            line-height: 1.8;
        }

        .release-note-item::before {
            content: '•';
            color: #667eea;
            font-size: 20px;
            line-height: 1;
            flex-shrink: 0;
        }

        /* Features Section */
        .features-section {
            padding: 80px 0;
            background: #fff;
        }

        .features-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
            gap: 25px;
            max-width: 1100px;
            margin: 0 auto;
        }

        .feature-card {
            text-align: center;
            padding: 30px 20px;
            border-radius: 16px;
            background: #f7fafc;
            transition: all 0.3s ease;
        }

        .feature-card:hover {
            background: #fff;
            box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
            transform: translateY(-5px);
        }

        .feature-icon {
            width: 60px;
            height: 60px;
            margin: 0 auto 15px;
            border-radius: 16px;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 24px;
            color: #fff;
        }

        .feature-card h4 {
            font-size: 15px;
            font-weight: 900;
            color: #2d3748;
            margin-bottom: 8px;
        }

        .feature-card p {
            font-size: 12px;
            color: #718096;
            line-height: 1.9;
        }

        /* Empty State */
        .empty-download {
            text-align: center;
            padding: 60px 20px;
            background: #fff;
            border-radius: 20px;
            max-width: 600px;
            margin: 0 auto;
        }

        .empty-download .empty-icon {
            font-size: 80px;
            margin-bottom: 20px;
            opacity: 0.3;
        }

        .empty-download h3 {
            font-size: 20px;
            font-weight: 900;
            color: #2d3748;
            margin-bottom: 10px;
        }

        .empty-download p {
            font-size: 14px;
            color: #718096;
            line-height: 1.9;
        }

        /* Responsive */
        @media (max-width: 768px) {
            .download-hero {
                padding: 50px 0 70px;
            }

            .download-hero-content {
                grid-template-columns: 1fr;
                gap: 40px;
                text-align: center;
            }

            .download-hero-text h1 {
                font-size: 28px;
            }

            .download-hero-text p {
                font-size: 14px;
            }

            .download-hero-badges {
                justify-content: center;
            }

            .phone-mockup {
                width: 220px;
                height: 440px;
            }

            .download-section,
            .features-section {
                padding: 50px 0;
            }

            .section-header h2 {
                font-size: 24px;
            }

            .download-card {
                padding: 24px;
            }
        }