/* تنظیمات پایه برای حذف اسکرول و قفل کردن صفحه در یک نما */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: Tahoma, Arial, sans-serif;
    background-color: #f8fafc;
    direction: rtl;
    color: #333;
    height: 100vh; /* قفل کردن ارتفاع کل سایت به اندازه مانیتور */
    overflow: hidden; /* جلوگیری از ایجاد هرگونه اسکرول */
    display: flex;
    flex-direction: column; /* چیدمان عمودی: هدر -> هیرو -> کارت‌ها */
    justify-content: space-between; /* توزیع متناسب فضا در صفحه */
    padding-bottom: 20px;
}

/* هدر سایت با دکمه‌ها و منو */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 60px;
    background: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.03);
    height: 60px; /* ارتفاع ثابت برای هدر */
}
.nav-right { display: flex; align-items: center; gap: 30px; }
.logo { font-weight: bold; color: #0052cc; font-size: 18px; }
.menu { display: flex; gap: 15px; }
.menu a { text-decoration: none; color: #555; font-size: 13px; }
.nav-left { display: flex; gap: 10px; }
.btn-login { background: #0052cc; color: white; border: none; padding: 6px 15px; border-radius: 4px; cursor: pointer; font-size: 13px; }
.btn-register { background: none; border: 1px solid #ccc; padding: 6px 15px; border-radius: 4px; cursor: pointer; font-size: 13px; }

/* بخش هیرو (متن معرفی و تصویر) با ارتفاع فشرده‌تر */
.hero {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 60px;
    flex: 1; /* اشغال فضای باقی‌مانده میانی */
    max-height: 220px; /* محدود کردن ارتفاع برای جا شدن در صفحه */
}
.hero-text h1 { font-size: 26px; color: #1e293b; line-height: 1.4; }
.hero-text h1 span { color: #0052cc; }
.hero-text p { color: #64748b; max-width: 550px; line-height: 1.6; margin: 8px 0; font-size: 13px; }
.hero-buttons { display: flex; gap: 10px; }
.btn-primary { background: #0052cc; color: white; border: none; padding: 8px 18px; border-radius: 4px; cursor: pointer; font-size: 13px; }
.btn-secondary { background: white; border: 1px solid #0052cc; color: #0052cc; padding: 8px 18px; border-radius: 4px; cursor: pointer; font-size: 13px; }
.hero-image img { max-height: 160px; object-fit: contain; }

/* کانتینر اصلی کارت‌ها: تضمین ۵ کارت در یک ردیف */
.pricing-container {
    display: flex;
    justify-content: center;
    align-items: stretch; /* کشیده شدن تمام کارت‌ها به یک اندازه همسان */
    gap: 15px;
    padding: 10px 60px;
    height: 320px; /* ارتفاع ثابت و یکسان برای بخش کارت‌ها */
}

/* استایل کارت‌های هم‌اندازه و منعطف */
.card {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 20px 15px;
    flex: 1; /* توزیع کاملاً مساوی فضا بین هر ۵ کارت */
    max-width: 220px; /* جلوگیری از گشاد شدن بیش از حد کارت‌ها */
    text-align: center;
    position: relative;
    box-shadow: 0 4px 6px rgba(0,0,0,0.01);
    display: flex;
    flex-direction: column; /* چیدمان عمودی اجزای داخل کارت */
    justify-content: space-between; /* چسباندن دکمه به کف و آیکون به سقف */
}

/* استایل متمایز کارت پرفروش */
.card.featured {
    border: 2px solid #0052cc;
    box-shadow: 0 4px 12px rgba(0, 82, 204, 0.1);
}
.badge {
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    background: #0052cc;
    color: white;
    padding: 2px 10px;
    font-size: 10px;
    border-radius: 20px;
    white-space: nowrap;
}

/* اجزای داخل کارت */
.card-icon {
    font-size: 24px;
    color: #6366f1;
    background: #f0f2ff;
    padding: 10px;
    border-radius: 50%;
    width: 45px;
    height: 45px;
    line-height: 25px;
    margin: 0 auto 10px auto;
}
.card.featured .card-icon {
    color: #0052cc;
    background: #e6f0ff;
}

.card h3 { font-size: 14px; margin-bottom: 10px; color: #334155; }
.price-box { margin-bottom: 10px; }
.price-box .from { font-size: 11px; color: #94a3b8; display: block; }
.price-box .amount { font-size: 20px; font-weight: bold; color: #0f172a; }
.price-box .period { font-size: 10px; color: #64748b; display: block; }

.features-list { list-style: none; padding: 0; margin: 10px 0; }
.features-list li { font-size: 12px; color: #475569; margin: 6px 0; }

.btn-card {
    width: 100%;
    padding: 8px;
    border-radius: 5px;
    border: 1px solid #0052cc;
    background: white;
    color: #0052cc;
    cursor: pointer;
    font-weight: bold;
    font-size: 12px;
}
.featured .btn-card {
    background: #0052cc;
    color: white;
}
