/* صفحة الخطط والإشتراك */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Amazon Ember", Arial, sans-serif;
}

body {
    font-family: 'Cairo', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: radial-gradient(circle at top, #fee2e2 0, #f5f5f7 40%, #f5f5f7 100%);
    color: #111827;
}

/* ========================================== */
/* البانر الإعلاني (موحد - Full Width & 415px Height) */
/* ========================================== */

.plans-banner {
    width: 100%;
    margin: 0 0 30px 0;
    padding: 0;
    overflow: hidden;
    background: transparent;
}

.plans-banner .banner-link,
.plans-banner .banner-img {
    border-radius: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* تم الاستغناء عن .plans-banner-container */

.banner-link {
    display: block;
    width: 100%;
    /* الارتفاع الموحد */
    height: 415px;
    min-height: 415px;
    max-height: 415px;

    position: relative;
    overflow: hidden;
    border-radius: 0 !important;
    /* شلنا الحواف المدورة */
    margin: 0 !important;
    padding: 0 !important;
}

/* إلغاء تأثيرات الحركة الزائدة */
.banner-link:hover {
    transform: none;
}

.banner-img {
    width: 100%;
    height: 100%;

    /* ملء كامل (مط) حسب المعيار الجديد */
    object-fit: fill;
    object-position: center;

    display: block;
    transition: transform 0.5s ease;
    border-radius: 0 !important;
    margin: 0 !important;
}

/* تكبير بسيط للصورة فقط عند الهوفر */
.banner-link:hover .banner-img {
    transform: scale(1.02);
}

/* ========================================== */
/* Responsive - نفس مقاسات الهيرو في الصفحات التانية */
/* ========================================== */

@media (max-width: 992px) {
    .banner-link {
        height: 350px;
        min-height: 350px;
        max-height: 350px;
    }
}

@media (max-width: 576px) {
    .banner-link {
        height: 250px;
        min-height: 250px;
        max-height: 250px;
    }
}

/* ========================================== */
/* Plans Page */
/* ========================================== */

.plans-page-wrapper {
    min-height: 100vh;
    padding: 40px 0;
    display: flex;
    justify-content: center;
}

.plans-container {
    width: 100%;
    max-width: 1100px;
    padding: 0 16px;
}

/* Header */
.plans-header {
    text-align: center;
    margin-bottom: 24px;
}

.plans-header h1 {
    font-size: 26px;
    font-weight: 900;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #111827;
}

.plans-header h1 i {
    color: #b42f4c;
    font-size: 24px;
}

.plans-header p {
    margin-top: 6px;
    font-size: 14px;
    color: #4b5563;
}

/* Billing Toggle */
.billing-toggle-wrapper {
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
}

.billing-toggle {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    border-radius: 999px;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    cursor: pointer;
    user-select: none;
    transition: all 0.3s ease;
}

.billing-toggle:hover {
    background: #ffffff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.billing-label {
    font-size: 12px;
    color: #6b7280;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.billing-label.active {
    font-weight: 700;
    color: #111827;
}

.billing-save {
    font-size: 11px;
    color: #b42f4c;
    background: #fee2e2;
    padding: 2px 6px;
    border-radius: 999px;
    font-weight: 700;
}

.billing-switch {
    width: 40px;
    height: 22px;
    border-radius: 999px;
    background: #e5e7eb;
    padding: 2px;
    display: flex;
    align-items: center;
    position: relative;
    transition: background 0.3s ease;
}

.billing-toggle.yearly .billing-switch {
    background: #b42f4c;
}

.billing-knob {
    width: 18px;
    height: 18px;
    border-radius: 999px;
    background: #ffffff;
    position: absolute;
    right: 2px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
}

.billing-toggle.yearly .billing-knob {
    transform: translateX(-18px);
}

/* Plans Grid */
.plans-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    margin-bottom: 30px;
}

@media (max-width: 992px) {
    .plans-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 768px) {
    .plans-grid {
        grid-template-columns: 1fr;
    }
}

/* Plan Card */
.plan-card {
    position: relative;
    background: linear-gradient(to bottom, #fffcfd 0%, #ffffff 100%);
    border-radius: 24px;
    padding: 30px 24px;
    border: 2px solid #b42f4c;
    box-shadow: 0 8px 15px -3px rgba(180, 47, 76, 0.08), 0 4px 6px -2px rgba(180, 47, 76, 0.04);
    display: flex;
    flex-direction: column;
    height: 100%;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.plan-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(180, 47, 76, 0.15);
}

.plan-header {
    text-align: start;
    padding-bottom: 20px;
    margin-bottom: 20px;
    border-bottom: 1px solid #f3f4f6;
    min-height: 110px;
    /* Enforce consistent height for header */
}

.plan-name {
    font-size: 22px;
    font-weight: 800;
    color: #111827;
    margin-bottom: 8px;
    line-height: 1.2;
}

.plan-tagline {
    font-size: 14px;
    color: #6b7280;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Price */
.plan-price-wrapper {
    text-align: start;
    min-height: 80px;
    /* Enforce consistent height for price section */
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.plan-price {
    display: flex;
    align-items: baseline;
    justify-content: flex-start;
    gap: 6px;
    margin-bottom: 0px;
}

.price-main {
    font-size: 42px;
    font-weight: 900;
    color: #111827;
    letter-spacing: -1px;
}

.price-currency {
    font-size: 14px;
    font-weight: 700;
    color: #4b5563;
}

.price-period {
    font-size: 14px;
    color: #9ca3af;
    font-weight: 500;
}

/* Badges */
.plan-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    font-weight: 700;
    padding: 6px 12px;
    border-radius: 999px;
    margin-bottom: 12px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.plan-badge-free {
    background: #dcfce7;
    color: #15803d;
    border: 1px solid #bbf7d0;
}

.plan-badge-pro {
    background: #dbeafe;
    color: #1d4ed8;
    border: 1px solid #bfdbfe;
}

.plan-badge-business {
    background: #f3e8ff;
    color: #7e22ce;
    border: 1px solid #e9d5ff;
}

/* Features */
.plan-features {
    list-style: none;
    margin: 20px 0;
    padding: 0;
    font-size: 14px;
    color: #4b5563;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.plan-features li {
    display: flex;
    align-items: center;
    gap: 12px;
    line-height: 1.4;
}

.plan-features li i {
    font-size: 18px;
    color: #10b981;
    flex-shrink: 0;
}

.feature-limit i {
    color: #b42f4c;
    /* Different icon color for primary limits */
}

/* CTA Buttons */
.plan-cta-btn {
    width: 100%;
    border-radius: 16px;
    padding: 14px 24px;
    font-size: 15px;
    font-weight: 800;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    border: none;
    outline: none;
    justify-content: center;
    transition: all 0.3s ease;
    text-decoration: none;
}

.plan-cta-main {
    background: linear-gradient(135deg, #b42f4c 0%, #8b1e35 100%);
    color: #ffffff;
    box-shadow: 0 10px 15px -3px rgba(180, 47, 76, 0.2);
}

.plan-cta-main:hover {
    box-shadow: 0 20px 25px -5px rgba(180, 47, 76, 0.3);
    transform: scale(1.02);
}

/* Featured Plan Badge */
.plan-featured-label {
    position: absolute;
    top: -16px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, #b42f4c 0%, #8b1e35 100%);
    color: #fff;
    font-size: 13px;
    font-weight: 800;
    padding: 6px 20px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 10px 20px rgba(180, 47, 76, 0.3);
    white-space: nowrap;
}

[dir="rtl"] .plan-featured-label {
    left: auto;
    right: 50%;
    transform: translateX(50%);
}

.w-100 {
    width: 100%;
}

.text-center {
    text-align: center;
}

.plan-note {
    font-size: 11px;
    color: #6b7280;
    margin-top: 4px;
}

/* FAQ Section */
.plans-faq {
    margin-top: 14px;
    padding: 14px 16px 18px;
    background: #ffffff;
    border-radius: 18px;
    border: 1px solid #e5e7eb;
    box-shadow: 0 6px 18px rgba(15, 23, 42, 0.04);
}

.plans-faq h2 {
    font-size: 15px;
    font-weight: 800;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.faq-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

@media (max-width: 992px) {
    .faq-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 768px) {
    .faq-grid {
        grid-template-columns: 1fr;
    }
}

.faq-item h3 {
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 4px;
    color: #111827;
}

.faq-item p {
    font-size: 12px;
    color: #4b5563;
}

/* ========================================== */
/* Responsive - البانر */
/* ========================================== */

@media (max-width: 992px) {
    .plans-banner-container {
        padding: 0 24px;
    }

    .banner-link {
        height: 280px;
    }
}

@media (max-width: 768px) {
    .plans-banner-container {
        padding: 0 16px;
    }

    .banner-link {
        height: 240px;
    }
}

@media (max-width: 480px) {
    .plans-banner-container {
        padding: 0 12px;
    }

    .banner-link {
        height: 200px;
    }

    .banner-link:hover {
        transform: none;
    }

    .banner-link:hover .banner-img {
        transform: none;
    }
}