:root {
    --primary-color: #1a365d;
    --secondary-color: #e6f2ff;
    --accent-color: #e53e3e;
    --success-color: #38a169;
    --warning-color: #d69e2e;
    --white: #ffffff;
    --light-gray: #f7fafc;
    --gray: #4a5568;
    --dark-gray: #2d3748;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Vazir', sans-serif;
    text-decoration: none;
}

body {
    background-color: var(--light-gray);
    color: var(--gray);
    line-height: 1.6;
}

.container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 20px;
}

/* هدر */
.pricing-header {
    background: linear-gradient(135deg, var(--primary-color), #2c5282);
    color: white;
    padding: 40px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}


.pricing-header::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" preserveAspectRatio="none"><path d="M0,0 L100,0 L100,100 Z" fill="rgba(255,255,255,0.1)"/></svg>');
    background-size: cover;
}


.pricing-header .container {
    position: relative;
    z-index: 1;
}

.back-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: white;
    background-color: rgba(255, 255, 255, 0.1);
    padding: 10px 20px;
    border-radius: 25px;
    margin-bottom: 30px;
    transition: all 0.3s ease;
    font-size: 14px;
}

.back-btn:hover {
    background-color: rgba(255, 255, 255, 0.2);
    transform: translateX(-5px);
}

.pricing-header h1 {
    font-size: 32px;
    margin-bottom: 15px;
    color: white;
}

.pricing-header p {
    font-size: 18px;
    color: #e2e8f0;
    max-width: 600px;
    margin: 0 auto;
}

/* بنر تبلیغاتی */
.promo-banner {
    background: linear-gradient(90deg, var(--accent-color), #c53030);
    color: white;
    padding: 30px 0;
    margin-top: -20px;
    position: relative;
    z-index: 2;
    box-shadow: 0 5px 20px rgba(229, 62, 62, 0.3);
}

.promo-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.promo-content h2 {
    font-size: 24px;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    color: white;
}

.promo-content p {
    font-size: 18px;
    margin-bottom: 10px;
    color: #fed7d7;
}

.promo-desc {
    font-size: 16px !important;
    margin-bottom: 20px !important;
}

.btn-promo {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background-color: white;
    color: var(--accent-color);
    padding: 15px 40px;
    border-radius: 30px;
    font-weight: bold;
    font-size: 18px;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.btn-promo:hover {
    background-color: var(--light-gray);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
    color: #c53030;
}

/* بخش پلن‌ها */
.pricing-section {
    padding: 60px 0;
    background-color: white;
}

.section-intro {
    text-align: center;
    max-width: 900px;
    margin: 0 auto 50px;
}

.section-intro h2 {
    color: var(--primary-color);
    font-size: 28px;
    margin-bottom: 15px;
    position: relative;
    display: inline-block;
    padding-bottom: 15px;
}

.section-intro h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 50%;
    transform: translateX(50%);
    width: 100px;
    height: 3px;
    background-color: var(--accent-color);
}

.section-intro p {
    font-size: 17px;
    line-height: 1.8;
    color: var(--gray);
}

/* کانتینر پلن‌ها - 4 تایی در یک ردیف در دسکتاپ */
.plans-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
    margin-bottom: 60px;
}

@media (max-width: 1200px) {
    .plans-container {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .plans-container {
        grid-template-columns: 1fr;
        max-width: 500px;
        margin: 0 auto 60px;
    }
}

.plan-card {
    background-color: var(--light-gray);
    border-radius: 15px;
    padding: 0;
    overflow: hidden;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    position: relative;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.plan-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
    border-color: var(--accent-color);
}

.plan-card.recommended {
    border-color: var(--accent-color);
    background-color: white;
}

.plan-card.recommended::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, var(--accent-color), var(--primary-color));
}

.recommended-badge {
    position: absolute;
    top: 15px;
    left: -30px;
    background-color: var(--accent-color);
    color: white;
    padding: 5px 40px;
    transform: rotate(-45deg);
    font-size: 14px;
    font-weight: bold;
    z-index: 1;
}

.plan-header {
    background-color: var(--primary-color);
    color: white;
    padding: 25px;
    text-align: center;
    flex-shrink: 0;
}

.plan-header h3 {
    font-size: 22px;
    margin-bottom: 10px;
    color: white;
    min-height: 66px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.plan-desc {
    font-size: 14px;
    color: #cbd5e0;
    opacity: 0.9;
}

.plan-price {
    padding: 25px;
    text-align: center;
    background-color: white;
    position: relative;
    flex-shrink: 0;
}

.discount-badge {
    display: inline-block;
    background-color: var(--success-color);
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: bold;
    margin-bottom: 15px;
}

.price {
    font-size: 36px;
    font-weight: bold;
    color: var(--primary-color);
    display: block;
    margin: 10px 0;
}

.currency {
    font-size: 18px;
    color: var(--gray);
    margin-right: 5px;
}

.period {
    color: var(--gray);
    font-size: 14px;
    margin-top: 10px;
}

.original-price {
    color: var(--gray);
    font-size: 14px;
    margin-top: 5px;
    text-decoration: none;
    opacity: 0.7;
}

.plan-features {
    list-style: none;
    padding: 25px;
    background-color: white;
    flex-grow: 1;
}

.plan-features li {
    margin-bottom: 12px;
    padding-right: 30px;
    position: relative;
    font-size: 15px;
    line-height: 1.5;
}

.plan-features li i {
    position: absolute;
    right: 0;
    color: var(--success-color);
    font-size: 16px;
    top: 50%;
    transform: translateY(-50%);
}

.plan-features li.not-included i {
    color: var(--accent-color);
}

.plan-features li.not-included {
    color: #a0aec0;
    text-decoration: line-through;
}

.btn-plan {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background-color: var(--primary-color);
    color: white;
    padding: 15px;
    border-radius: 0;
    font-weight: bold;
    font-size: 16px;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    text-align: center;
    width: 100%;
    margin-top: auto;
    flex-shrink: 0;
}

.btn-plan:hover {
    background-color: var(--dark-gray);
}

.recommended-btn {
    background-color: var(--accent-color);
}

.recommended-btn:hover {
    background-color: #c53030;
}

/* بخش مقایسه */
.comparison-section {
    margin-top: 60px;
}

.comparison-section h3 {
    text-align: center;
    color: var(--primary-color);
    font-size: 24px;
    margin-bottom: 30px;
    position: relative;
    padding-bottom: 15px;
}

.comparison-section h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 50%;
    transform: translateX(50%);
    width: 80px;
    height: 3px;
    background-color: var(--accent-color);
}

.comparison-table {
    overflow-x: auto;
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    padding: 20px;
}

.comparison-table table {
    width: 100%;
    border-collapse: collapse;
    min-width: 800px;
}

.comparison-table th {
    background-color: var(--primary-color);
    color: white;
    padding: 18px;
    text-align: center;
    font-weight: bold;
    border: 1px solid var(--secondary-color);
    font-size: 16px;
}

.comparison-table td {
    padding: 16px;
    text-align: center;
    border: 1px solid var(--secondary-color);
    transition: background-color 0.3s ease;
    font-size: 15px;
}

.comparison-table tr:hover td {
    background-color: var(--light-gray);
}

.comparison-table td:first-child {
    font-weight: bold;
    background-color: var(--secondary-color);
    text-align: right;
    padding-right: 25px;
}

.comparison-table i.fa-check {
    color: var(--success-color);
    font-size: 18px;
}

/* بخش سوالات متداول */
.faq-section {
    padding: 60px 0;
    background-color: var(--light-gray);
}

.faq-section h2 {
    text-align: center;
    color: var(--primary-color);
    font-size: 28px;
    margin-bottom: 40px;
    position: relative;
    padding-bottom: 15px;
}

.faq-section h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 50%;
    transform: translateX(50%);
    width: 100px;
    height: 3px;
    background-color: var(--accent-color);
}

.faq-item {
    background-color: white;
    border-radius: 10px;
    margin-bottom: 18px;
    overflow: hidden;
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.05);
    border: 1px solid #e2e8f0;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.faq-question {
    padding: 22px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background-color 0.3s ease;
}

.faq-question:hover {
    background-color: var(--secondary-color);
}

.faq-question h3 {
    color: var(--primary-color);
    font-size: 17px;
    margin: 0;
    flex: 1;
}

.faq-question i {
    color: var(--gray);
    transition: transform 0.3s ease;
    font-size: 18px;
    margin-right: 10px;
}

.faq-answer {
    padding: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
    background-color: white;
}

.faq-answer.active {
    padding: 22px;
    max-height: 500px;
    border-top: 1px solid #e2e8f0;
}

.faq-answer p {
    color: var(--gray);
    line-height: 1.7;
    margin: 0;
    font-size: 15px;
}

/* CTA پایانی */
.final-cta {
    padding: 60px 0;
    background: linear-gradient(135deg, var(--primary-color), #2c5282);
    color: white;
    text-align: center;
}

.cta-content h2 {
    font-size: 32px;
    margin-bottom: 15px;
    color: white;
}

.cta-content p {
    font-size: 18px;
    color: #e2e8f0;
    max-width: 700px;
    margin: 0 auto 30px;
    line-height: 1.6;
}

.cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 30px;
    border-radius: 30px;
    font-weight: bold;
    font-size: 16px;
    transition: all 0.3s ease;
    cursor: pointer;
    text-align: center;
    min-width: 220px;
    text-decoration: none;
}

.btn i {
    font-size: 18px;
}

.btn-primary {
    background-color: var(--accent-color);
    color: white;
    border: 2px solid var(--accent-color);
}

.btn-primary:hover {
    background-color: #c53030;
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(229, 62, 62, 0.3);
}

.btn-secondary {
    background-color: transparent;
    color: white;
    border: 2px solid white;
}

.btn-secondary:hover {
    background-color: white;
    color: var(--primary-color);
    transform: translateY(-3px);
}

.btn-outline {
    background-color: transparent;
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.btn-outline:hover {
    background-color: rgba(255, 255, 255, 0.1);
    border-color: white;
    transform: translateY(-3px);
}

/* فوتر */
.pricing-footer {
    background-color: var(--primary-color);
    color: white;
    padding: 40px 0 20px;
    text-align: center;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.footer-links a {
    color: #cbd5e0;
    transition: color 0.3s ease;
    font-size: 15px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.footer-links a:hover {
    color: white;
}

.footer-links a i {
    font-size: 16px;
}

.copyright {
    color: #a0aec0;
    font-size: 14px;
    margin-bottom: 10px;
}

.contact-note {
    color: #cbd5e0;
    font-size: 14px;
    font-style: italic;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.contact-note i {
    color: #25d366;
    font-size: 16px;
}

/* دکمه بازگشت به بالا */
.back-to-top {
    position: fixed;
    bottom: 30px;
    left: 30px;
    width: 50px;
    height: 50px;
    background-color: var(--accent-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    z-index: 1000;
    transition: all 0.3s ease;
    opacity: 0;
    visibility: hidden;
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background-color: #c53030;
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.4);
}

/* رسپانسیو */
@media (max-width: 1200px) {
    .container {
        padding: 0 25px;
    }
    
    .plans-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}

@media (max-width: 992px) {
    .pricing-header h1 {
        font-size: 28px;
    }
    
    .pricing-header p {
        font-size: 16px;
    }
    
    .promo-content h2 {
        font-size: 22px;
    }
    
    .promo-content p {
        font-size: 16px;
    }
    
    .section-intro h2 {
        font-size: 26px;
    }
    
    .plan-header h3 {
        min-height: auto;
        font-size: 20px;
    }
    
    .price {
        font-size: 32px;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }
    
    .btn {
        min-width: 100%;
        max-width: 350px;
    }
    
    .footer-links {
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .pricing-header {
        padding: 30px 0;
    }
    
    .pricing-header h1 {
        font-size: 24px;
    }
    
    .promo-content h2 {
        font-size: 20px;
    }
    
    .section-intro h2 {
        font-size: 24px;
    }
    
    .plans-container {
        grid-template-columns: 1fr;
        max-width: 450px;
        margin: 0 auto 50px;
    }
    
    .plan-card {
        max-width: 100%;
    }
    
    .comparison-table {
        padding: 15px;
    }
    
    .comparison-table table {
        min-width: 600px;
    }
    
    .faq-section h2 {
        font-size: 24px;
    }
    
    .faq-question h3 {
        font-size: 16px;
    }
    
    .cta-content h2 {
        font-size: 26px;
    }
    
    .footer-links {
        flex-direction: column;
        gap: 15px;
    }
    
    .back-to-top {
        bottom: 20px;
        left: 20px;
        width: 45px;
        height: 45px;
        font-size: 18px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .pricing-header h1 {
        font-size: 22px;
    }
    
    .section-intro h2 {
        font-size: 22px;
    }
    
    .plan-header {
        padding: 20px;
    }
    
    .plan-header h3 {
        font-size: 18px;
    }
    
    .plan-price {
        padding: 20px;
    }
    
    .price {
        font-size: 28px;
    }
    
    .faq-section h2 {
        font-size: 22px;
    }
    
    .faq-question {
        padding: 18px;
    }
    
    .faq-answer {
        padding: 18px;
    }
    
    .cta-content h2 {
        font-size: 24px;
    }
    
    .cta-content p {
        font-size: 16px;
    }
    
    .btn {
        padding: 12px 25px;
        font-size: 15px;
    }
}