/* ------------------- */
/* ۱. تنظیمات پایه و متغیرها */
/* ------------------- */
:root {
    --bg-color: #121212;
    --card-bg-color: #1E1E1E;
    --primary-color: #00BCD4; /* فیروزه‌ای */
    --accent-color: #FF5722;  /* نارنجی */
    --highlight-color: #FFC107; /* زرد برای نشان ویژه */
    --text-primary: #E0E0E0;
    --text-secondary: #BDBDBD;
    --border-radius: 12px;
    --shadow: 0 8px 20px rgba(0,0,0,0.5);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: 'Vazirmatn', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-secondary);
    line-height: 1.7;
    overflow-x: hidden;
    direction: rtl;
}

.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* دکمه‌ها */
.btn {
    display: inline-block; padding: 12px 28px; border-radius: 50px;
    text-decoration: none; font-weight: 500; transition: 0.3s;
    border: 2px solid transparent; cursor: pointer;
}
.btn-primary {
    background-color: var(--primary-color); color: #121212; font-weight: 700;
}
.btn-primary:hover {
    background-color: #00acc1; transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 188, 212, 0.4);
}

/* ------------------- */
/* ۲. هدر و نویگیشن */
/* ------------------- */
.main-header {
    background: rgba(18, 18, 18, 0.95); backdrop-filter: blur(10px);
    position: sticky; top: 0; z-index: 1000; border-bottom: 1px solid #333;
}
.main-header .container {
    display: flex; justify-content: space-between; align-items: center; padding: 15px 20px;
}
.logo-container { display: flex; align-items: center; gap: 10px; }
.logo { max-width: 120px; }

.desktop-nav { display: flex; align-items: center; gap: 20px; }
.contact-link { color: var(--text-secondary); text-decoration: none; transition: 0.3s; }
.contact-link:hover { color: var(--primary-color); }

/* منوی موبایل */
.mobile-menu-btn {
    display: none; background: none; border: none; cursor: pointer; flex-direction: column; gap: 5px;
}
.mobile-menu-btn span {
    width: 25px; height: 3px; background: var(--text-primary); transition: 0.3s;
}
.mobile-nav {
    position: fixed; top: 0; right: -100%; width: 280px; height: 100%;
    background: var(--card-bg-color); z-index: 1001; transition: 0.4s;
    padding-top: 60px; box-shadow: -5px 0 15px rgba(0,0,0,0.5);
}
.mobile-nav.active { right: 0; }
.mobile-nav ul { list-style: none; }
.mobile-nav li:hover { background-color: #00a5ba; color: #1E1E1E; }
.mobile-nav a {
    display: block; padding: 15px 25px; color: var(--text-primary);
    text-decoration: none; border-bottom: 1px solid #333;
}

/* ------------------- */
/* ۳. استایل‌های اختصاصی صفحه تعرفه‌ها */
/* ------------------- */
.pricing-container {
    padding: 80px 0 100px;
}

.pricing-header {
    text-align: center;
    margin-bottom: 60px;
}
.pricing-header h1 {
    font-size: 2.5rem; font-weight: 800; color: var(--text-primary); margin-bottom: 15px;
}
.pricing-header p {
    font-size: 1.1rem; color: var(--text-secondary); max-width: 700px; margin: 0 auto 30px;
}

/* سوئیچ تغییر قیمت */
.plan-type-toggle {
    display: flex; justify-content: center; align-items: center; gap: 15px;
    font-size: 1.1rem; font-weight: 500;
}
.active-label { color: var(--primary-color); }

.switch {
    position: relative; display: inline-block; width: 60px; height: 30px;
}
.switch input { opacity: 0; width: 0; height: 0; }
.slider {
    position: absolute; cursor: pointer; top: 0; left: 0; right: 0; bottom: 0;
    background-color: #333; transition: .4s; border-radius: 34px;
}
.slider:before {
    position: absolute; content: ""; height: 22px; width: 22px;
    left: 4px; bottom: 4px; background-color: white; transition: .4s; border-radius: 50%;
}
input:checked + .slider { background-color: var(--primary-color); }
input:checked + .slider:before { transform: translateX(32px); }

/* کارت‌های قیمت */
.pricing-plans {
    display: flex; justify-content: center; flex-wrap: wrap; gap: 30px; padding: 0 20px;
}

.pricing-card {
    background: var(--card-bg-color);
    border: 1px solid #333;
    border-radius: var(--border-radius);
    padding: 40px 30px;
    width: 280px;
    text-align: center;
    position: relative;
    transition: 0.3s;
    display: flex; flex-direction: column;
}

.pricing-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary-color);
    box-shadow: 0 10px 30px rgba(0, 188, 212, 0.15);
}

.pricing-card.recommended {
    border-color: var(--highlight-color);
    box-shadow: 0 0 20px rgba(255, 193, 7, 0.1);
}
.pricing-card.recommended:hover {
    box-shadow: 0 10px 30px rgba(255, 193, 7, 0.2);
}

.recommended-badge {
    position: absolute; top: -15px; left: 50%; transform: translateX(-50%);
    background-color: var(--highlight-color); color: #121212;
    padding: 5px 20px; border-radius: 20px; font-size: 0.85rem; font-weight: 700;
}

.plan-duration { font-size: 1.4rem; font-weight: 700; color: var(--text-primary); margin-bottom: 15px; }
.plan-price { margin-bottom: 20px; color: var(--primary-color); }
.pricing-card.recommended .plan-price { color: var(--highlight-color); }

.price-value { font-size: 2.2rem; font-weight: 800; }
.currency { font-size: 1rem; color: var(--text-secondary); margin-right: 5px; }

.plan-description {
    font-size: 0.95rem; color: var(--text-secondary); margin-bottom: 30px; flex-grow: 1;
}

.cta-button {
    display: block; padding: 12px; border-radius: 8px;
    text-decoration: none; font-weight: 700; transition: 0.3s;
    border: 2px solid var(--primary-color); color: var(--primary-color);
}
.cta-button:hover { background: var(--primary-color); color: #121212; }

.pricing-card.recommended .cta-button {
    border-color: var(--highlight-color); color: var(--highlight-color);
}
.pricing-card.recommended .cta-button:hover {
    background: var(--highlight-color); color: #121212;
}


/* ------------------- */
/* ۴. فوتر */
/* ------------------- */
.main-footer { background: #0a0a0a; padding: 60px 0 20px; border-top: 1px solid #333; margin-top: auto; }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 40px; margin-bottom: 40px; }
.footer-col h4 { color: var(--primary-color); margin-bottom: 20px; font-size: 1.2rem; }
.footer-col ul { list-style: none; }
.footer-col a { color: var(--text-secondary); text-decoration: none; display: block; padding: 5px 0; transition: 0.3s; }
.footer-col a:hover { color: var(--primary-color); padding-right: 5px; }
.social-links { display: flex; gap: 15px; }
.social-links a { display: inline-block; font-size: 1.2rem; }
.footer-bottom { text-align: center; padding-top: 20px; border-top: 1px solid #222; font-size: 0.9rem; }

/* ------------------- */
/* ۵. ریسپانسیو */
/* ------------------- */
@media (max-width: 768px) {
    /* هدر موبایل */
    .desktop-nav { display: none; }
    .mobile-menu-btn { display: flex; }
    
    /* صفحه قیمت در موبایل */
    .pricing-header h1 { font-size: 1.8rem; }
    .pricing-plans { flex-direction: column; align-items: center; }
    .pricing-card { width: 100%; max-width: 320px; }
    
    /* فوتر موبایل - وسط چین */
    .footer-grid { text-align: center; }
    .footer-col { display: flex; flex-direction: column; align-items: center; }
    .footer-col h4 { border-bottom: 2px solid var(--primary-color); display: inline-block; padding-bottom: 5px; width: fit-content; }
    .social-links, .enamas-box { justify-content: center; width: 100%; }
    .footer-col a:hover { padding-right: 0; }
}