/* ==========================================
   MODERN PRICING PAGE - UNIFIED COLORS
   ========================================== */

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Tajawal', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    color: #2c3e50;
    line-height: 1.6;
    direction: rtl;
}

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

/* ==========================================
   UNIFIED COLOR PALETTE
   ========================================== */
:root {
    /* Main AIP Color - Used everywhere */
    --primary-color: #57a1c1;
    --primary-dark: #3d8aad;
    --primary-light: #72b8d5;
    --primary-lighter: #e8f4f8;

    /* Product Colors - Only used in product sections */
    --nawa-accent: #5FC1CC;
    --fath-accent: #0054F1;
    --nedaa-accent: #13356B;

    /* Neutral Colors */
    --white: #ffffff;
    --gray-50: #f8f9fa;
    --gray-100: #f1f3f5;
    --gray-200: #e9ecef;
    --gray-300: #dee2e6;
    --gray-600: #6c757d;
    --gray-900: #212529;
    --text-primary: #2c3e50;
    --text-secondary: #6c757d;

    /* Shadows */
    --shadow-sm: 0 2px 8px rgba(87, 161, 193, 0.08);
    --shadow-md: 0 8px 24px rgba(87, 161, 193, 0.12);
    --shadow-lg: 0 16px 48px rgba(87, 161, 193, 0.16);
}

/* ==========================================
   NAVBAR
   ========================================== */
.navbar {
    background: var(--white);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 15px rgba(0,0,0,0.08);
    border-bottom: 3px solid var(--primary-color);
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    height: 50px;
    width: auto;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 5px;
    align-items: center;
    margin: 0;
    padding: 0;
}

.nav-link {
    color: var(--text-primary);
    text-decoration: none;
    padding: 10px 18px;
    border-radius: 8px;
    font-weight: 500;
    font-size: 15px;
    transition: all 0.3s ease;
}

.nav-link:hover {
    background-color: var(--primary-lighter);
    color: var(--primary-dark);
}

.nav-link.active {
    background-color: var(--primary-color);
    color: var(--white) !important;
}

.btn-nav {
    background-color: var(--primary-color);
    color: var(--white);
    font-weight: 600;
}

.btn-nav:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
}

/* ==========================================
   HERO SECTION - MINIMALIST
   ========================================== */
.pricing-hero {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    padding: 80px 0 60px;
    color: var(--white);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.pricing-hero::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -10%;
    width: 500px;
    height: 500px;
    background: rgba(255,255,255,0.05);
    border-radius: 50%;
}

.pricing-hero::after {
    content: '';
    position: absolute;
    bottom: -50%;
    right: -10%;
    width: 600px;
    height: 600px;
    background: rgba(255,255,255,0.03);
    border-radius: 50%;
}

.pricing-hero-content {
    position: relative;
    z-index: 1;
}

.pricing-hero-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.pricing-hero-subtitle {
    font-size: 1.3rem;
    margin-bottom: 2.5rem;
    opacity: 0.95;
}

.pricing-hero-badges {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.badge-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255,255,255,0.15);
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.2);
}

/* ==========================================
   QUICK NAV - CLEAN
   ========================================== */
.quick-nav {
    background: var(--white);
    padding: 1.5rem 0;
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 70px;
    z-index: 100;
    border-bottom: 2px solid var(--gray-100);
}

.quick-nav-items {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.quick-nav-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1.5rem;
    border-radius: 12px;
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 2px solid var(--gray-200);
    background: var(--white);
}

.quick-nav-item:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.quick-nav-logo {
    width: 30px;
    height: 30px;
}

/* ==========================================
   PRODUCT SECTIONS - CLEAN
   ========================================== */
.product-section {
    padding: 60px 0;
    background: var(--white);
    border-top: 1px solid var(--gray-100);
}

.product-header {
    display: flex;
    align-items: center;
    gap: 3rem;
    margin-bottom: 4rem;
    padding: 3rem;
    background: var(--gray-50);
    border-radius: 16px;
    border-right: 4px solid var(--primary-color);
}

.product-logo-wrapper {
    flex-shrink: 0;
}

.product-logo {
    width: 120px;
    height: auto;
}

.product-name {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.product-tagline {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 1rem;
    font-style: italic;
}

.product-desc {
    font-size: 1.1rem;
    color: var(--text-secondary);
    line-height: 1.8;
}

/* Product Accent Colors - Only in headers */
.nawa-section .product-header {
    border-right-color: var(--nawa-accent);
}

.fath-section .product-header {
    border-right-color: var(--fath-accent);
}

.nedaa-section .product-header {
    border-right-color: var(--nedaa-accent);
}

/* Legacy classes - unified with primary color */
.nawa-bg,
.fath-bg,
.nedaa-bg {
    background: var(--primary-color) !important;
}

.nawa-btn,
.fath-btn,
.nedaa-btn {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark)) !important;
}

.nawa-gradient,
.fath-gradient,
.nedaa-gradient,
.bundles-gradient {
    /* Unified styling - no gradients */
}

.bundle-item {
    background: var(--primary-color) !important;
}

/* ==========================================
   PRICING CARDS - MODERN & CLEAN
   ========================================== */
.pricing-grid-wrapper {
    position: relative;
    padding: 0 70px;
    margin-bottom: 3rem;
}

.pricing-grid {
    display: flex;
    gap: 2rem;
    overflow-x: auto;
    scroll-behavior: smooth;
    scrollbar-width: none;
    padding: 20px 5px;
}

.pricing-grid::-webkit-scrollbar {
    display: none;
}

.pricing-card {
    background: var(--white);
    border-radius: 20px;
    box-shadow: 0 4px 16px rgba(87, 161, 193, 0.1);
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    flex: 0 0 320px;
    min-height: 620px;
    display: flex;
    flex-direction: column;
    border: 1px solid var(--gray-200);
}

.pricing-card:hover {
    transform: translateY(-12px) scale(1.02);
    box-shadow: 0 20px 40px rgba(87, 161, 193, 0.2);
    border-color: var(--primary-color);
}

.pricing-card.featured {
    border: 2px solid var(--primary-color);
    box-shadow: 0 8px 24px rgba(87, 161, 193, 0.15);
    transform: scale(1.05);
}

.pricing-card.featured:hover {
    transform: translateY(-12px) scale(1.07);
}

.pricing-card.featured::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, var(--primary-color), var(--primary-light));
}

/* Featured Badge */
.featured-star {
    position: absolute;
    top: 15px;
    left: 15px;
    background: linear-gradient(135deg, #FFD700, #FFA500);
    color: #333;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    z-index: 10;
    box-shadow: 0 4px 12px rgba(255, 215, 0, 0.4);
}

.featured-label {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: var(--white);
    text-align: center;
    padding: 0.75rem;
    font-weight: 700;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 2px 8px rgba(87, 161, 193, 0.2);
}

/* Card Header */
.card-header {
    padding: 2.5rem 2rem 2rem;
    text-align: center;
    background: linear-gradient(135deg, var(--gray-50) 0%, var(--white) 100%);
    border-bottom: 1px solid var(--gray-100);
}

.card-ribbon {
    position: absolute;
    top: 20px;
    right: 20px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: var(--white);
    padding: 0.5rem 1.25rem;
    border-radius: 25px;
    font-size: 0.8rem;
    font-weight: 700;
    z-index: 10;
    box-shadow: 0 4px 12px rgba(87, 161, 193, 0.3);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.package-name {
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    letter-spacing: -0.5px;
}

.package-subtitle {
    font-size: 0.85rem;
    color: var(--text-secondary);
    font-style: italic;
    margin-bottom: 1.5rem;
    opacity: 0.8;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 500;
}

.price-wrapper {
    margin: 1.5rem 0;
}

.price-old {
    display: block;
    font-size: 1rem;
    color: var(--gray-600);
    text-decoration: line-through;
    margin-bottom: 0.3rem;
}

.price-amount {
    font-size: 3.2rem;
    font-weight: 900;
    color: var(--primary-color);
    line-height: 1;
    letter-spacing: -2px;
}

.price-currency {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-right: 0.5rem;
    font-weight: 600;
}

.price-custom {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

.savings-badge,
.discount-tag {
    display: inline-block;
    background: linear-gradient(135deg, #28a745, #20c997);
    color: var(--white);
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-top: 0.5rem;
}

.discount-tag {
    position: absolute;
    top: 15px;
    left: 15px;
    z-index: 10;
}

/* Card Body */
.card-body {
    padding: 2rem 1.75rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background: var(--white);
}

.features-list {
    list-style: none;
    margin: 1.5rem 0;
    flex: 1;
}

.features-list li {
    padding: 1rem 0.75rem;
    color: var(--text-secondary);
    font-size: 0.95rem;
    border-bottom: 1px solid var(--gray-100);
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: all 0.3s ease;
    border-radius: 8px;
    margin-bottom: 0.25rem;
}

.features-list li:hover {
    background: var(--gray-50);
    padding-right: 1rem;
}

.features-list li:last-child {
    border-bottom: none;
}

.features-list i {
    color: var(--primary-color);
    font-size: 1.1rem;
    flex-shrink: 0;
    width: 20px;
    text-align: center;
}

/* Custom Card Styles */
.pricing-card.custom-card {
    border: 2px dashed var(--primary-color);
    background: linear-gradient(135deg, var(--primary-lighter) 0%, var(--white) 100%);
}

.pricing-card.custom-card:hover {
    border-style: solid;
}

.custom-desc {
    text-align: center;
    padding: 1.5rem;
    background: var(--white);
    border-radius: 12px;
    margin-bottom: 1.5rem;
    color: var(--text-secondary);
    font-style: italic;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    line-height: 1.6;
}

.custom-desc i {
    color: var(--primary-color);
    font-size: 1.5rem;
}

.price-note {
    text-align: center;
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-top: 0.5rem;
    font-style: italic;
}

/* Buttons - Unified Color */
.btn-select {
    width: 100%;
    padding: 1.25rem 2rem;
    border: none;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    color: var(--white);
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(87, 161, 193, 0.2);
}

.btn-select::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

.btn-select:hover::before {
    left: 100%;
}

.btn-select:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 32px rgba(87, 161, 193, 0.4);
}

.btn-select:active {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(87, 161, 193, 0.3);
}

/* Carousel Arrows - Enhanced */
.carousel-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--white);
    color: var(--primary-color);
    border: 3px solid var(--primary-color);
    cursor: pointer !important;
    pointer-events: auto !important;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    z-index: 1000;
    box-shadow: 0 4px 20px rgba(87, 161, 193, 0.3);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    user-select: none;
}

.carousel-arrow:hover:not(.disabled) {
    transform: translateY(-50%) scale(1.15);
    background: var(--primary-color);
    color: var(--white);
    box-shadow: 0 8px 30px rgba(87, 161, 193, 0.5);
}

.carousel-arrow:active:not(.disabled) {
    transform: translateY(-50%) scale(1.05);
}

.carousel-arrow.disabled {
    opacity: 0.3;
    cursor: not-allowed;
    pointer-events: none;
}

.arrow-left {
    left: -28px;
}

.arrow-right {
    right: -28px;
}

/* ==========================================
   AGENTS GRID
   ========================================== */
.agents-grid-container {
    position: relative;
    margin-bottom: 2rem;
}

.agents-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
    max-height: 400px;
    overflow: hidden;
    transition: max-height 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.agents-grid.expanded {
    max-height: none;
    overflow: visible;
}

.agents-grid::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 100px;
    background: linear-gradient(to bottom, transparent, var(--white));
    pointer-events: none;
    opacity: 1;
    transition: opacity 0.3s ease;
}

.agents-grid.expanded::after {
    opacity: 0;
}

.agent-card {
    background: var(--gray-50);
    padding: 2rem;
    border-radius: 12px;
    text-align: center;
    transition: all 0.3s ease;
    border: 2px solid var(--gray-100);
    cursor: pointer;
}

.agent-card:hover {
    border-color: var(--primary-color);
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.agent-card.selected {
    border-color: var(--primary-color);
    background: rgba(87, 161, 193, 0.05);
    box-shadow: 0 0 0 3px rgba(87, 161, 193, 0.1);
}

.agent-card.selected .agent-icon {
    background: var(--primary-color);
    color: var(--white);
}

.show-all-agents-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin: 0 auto 3rem;
    padding: 14px 32px;
    background: var(--white);
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    font-size: 1rem;
    font-weight: 600;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(87, 161, 193, 0.1);
}

.show-all-agents-btn:hover {
    background: var(--primary-color);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(87, 161, 193, 0.2);
}

.show-all-agents-btn i {
    font-size: 1.2rem;
    transition: transform 0.3s ease;
}

.show-all-agents-btn.expanded i {
    transform: rotate(180deg);
}

.agent-icon {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

/* ==========================================
   CHANNELS
   ========================================== */
.channels-box {
    background: var(--gray-50);
    padding: 1.5rem;
    border-radius: 12px;
    margin-bottom: 1.5rem;
    border-left: 4px solid var(--primary-color);
}

.channels-box.featured-channels {
    border-left-color: var(--primary-color);
    background: linear-gradient(135deg, var(--primary-lighter) 0%, var(--gray-50) 100%);
}

.channels-title {
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

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

.channels-list li {
    padding: 0.5rem 0;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.channels-list li i {
    color: var(--primary-color);
    font-size: 1.1rem;
}

.channels-pricing-section {
    margin-top: 4rem;
}

.channels-pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1.5rem;
}

.channel-card {
    background: var(--gray-50);
    padding: 2rem 1.5rem;
    border-radius: 12px;
    text-align: center;
    transition: all 0.3s ease;
    border: 2px solid var(--gray-100);
    position: relative;
}

.channel-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary-color);
}

.channel-card.featured-channel {
    border: 3px solid var(--primary-color);
    background: var(--white);
    box-shadow: var(--shadow-sm);
}

.channel-icon {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.channel-card h4 {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.channel-type {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 1rem;
    font-style: italic;
}

.channel-price {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--primary-color);
}

.best-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: linear-gradient(135deg, #FFD700, #FFA500);
    color: #333;
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-size: 0.75rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

/* ==========================================
   BUNDLES - UNIFIED
   ========================================== */
.bundles-section {
    padding: 80px 0;
    background: var(--gray-50);
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title-main {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.section-subtitle-main {
    font-size: 1.2rem;
    color: var(--text-secondary);
}

.section-title-wrapper {
    text-align: center;
    margin: 3rem 0 2rem;
}

.section-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-primary);
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--primary-light));
    border-radius: 2px;
}

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

.bundle-card {
    background: var(--white);
    padding: 2.5rem 2rem;
    border-radius: 16px;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
    border: 2px solid var(--gray-100);
    position: relative;
}

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

.bundle-card.featured-bundle {
    border: 3px solid var(--primary-color);
    box-shadow: var(--shadow-md);
}

.bundle-star {
    position: absolute;
    top: 15px;
    left: 15px;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: linear-gradient(135deg, #FFD700, #FFA500);
    color: #333;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    z-index: 10;
    box-shadow: 0 4px 12px rgba(255, 215, 0, 0.4);
}

.bundle-badge {
    background: var(--primary-color);
    color: var(--white);
    text-align: center;
    padding: 0.5rem;
    font-weight: 600;
    font-size: 0.85rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
}

.bundle-icon {
    font-size: 3rem;
    color: var(--primary-color);
    text-align: center;
    margin-bottom: 1rem;
}

.bundle-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-primary);
    text-align: center;
    margin-bottom: 0.5rem;
}

.bundle-subtitle {
    font-size: 1rem;
    color: var(--text-secondary);
    text-align: center;
    font-style: italic;
    margin-bottom: 2rem;
}

.bundle-includes {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin: 2rem 0;
}

.bundle-item {
    padding: 0.75rem 1.5rem;
    border-radius: 25px;
    font-weight: 600;
    font-size: 0.95rem;
    text-align: center;
    background: var(--primary-color);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.bundle-plus {
    text-align: center;
    font-size: 1.5rem;
    color: var(--primary-color);
}

.bundle-pricing {
    text-align: center;
    margin: 2rem 0;
}

.bundle-old-price {
    font-size: 1.2rem;
    color: var(--gray-600);
    text-decoration: line-through;
    margin-bottom: 0.5rem;
}

.bundle-new-price {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    display: block;
    margin-bottom: 1rem;
}

.bundle-save {
    display: inline-block;
    background: linear-gradient(135deg, #28a745, #20c997);
    color: var(--white);
    padding: 0.5rem 1.2rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
}

.btn-bundle {
    width: 100%;
    padding: 1rem 1.5rem;
    border: none;
    border-radius: 12px;
    font-size: 1.05rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    color: var(--white);
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
}

.btn-bundle:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(87, 161, 193, 0.3);
}

/* ==========================================
   TERMS SECTION
   ========================================== */
.terms-section {
    padding: 80px 0;
    background: var(--white);
}

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

.term-card {
    background: var(--gray-50);
    padding: 2rem;
    border-radius: 16px;
    transition: all 0.3s ease;
    border: 2px solid var(--gray-100);
}

.term-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary-color);
}

.term-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    margin: 0 auto 1.5rem;
}

.term-card h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    text-align: center;
    margin-bottom: 1.5rem;
}

.term-card ul {
    list-style: none;
    padding: 0;
}

.term-card li {
    padding: 0.75rem 0;
    color: var(--text-secondary);
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.term-card li i {
    color: var(--primary-color);
    font-size: 1.1rem;
}

/* ==========================================
   CTA SECTION
   ========================================== */
.cta-section {
    padding: 100px 0;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: var(--white);
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 500px;
    height: 500px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
}

.cta-section::after {
    content: '';
    position: absolute;
    bottom: -50%;
    left: -10%;
    width: 600px;
    height: 600px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 50%;
}

.cta-content {
    text-align: center;
    position: relative;
    z-index: 1;
}

.cta-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    margin: 0 auto 2rem;
    border: 3px solid rgba(255, 255, 255, 0.3);
}

.cta-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.cta-subtitle {
    font-size: 1.3rem;
    margin-bottom: 3rem;
    opacity: 0.95;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.btn-cta {
    padding: 1.2rem 2.5rem;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    border: 2px solid transparent;
}

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

.btn-cta.primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 32px rgba(255, 255, 255, 0.3);
}

.btn-cta.secondary {
    background: transparent;
    color: var(--white);
    border-color: var(--white);
}

.btn-cta.secondary:hover {
    background: var(--white);
    color: var(--primary-color);
    transform: translateY(-3px);
}

/* ==========================================
   NAVBAR - LANGUAGE TOGGLE
   ========================================== */
.lang-toggle {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: var(--white);
    border: none;
    padding: 10px 24px;
    border-radius: 24px;
    cursor: pointer;
    font-weight: 700;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(87, 161, 193, 0.2);
}

.lang-toggle:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(87, 161, 193, 0.35);
}

/* ==========================================
   FOOTER - UNIFIED WITH HOMEPAGE
   ========================================== */
.footer {
    background: linear-gradient(135deg, #2c3e50 0%, #1a1a1a 100%);
    color: var(--white);
    padding: 48px 0 24px;
}

.footer-content {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 32px;
    padding-bottom: 32px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-brand {
    animation: fadeInUp 0.8s ease;
}

.footer-logo {
    margin-bottom: 24px;
}

.footer-logo img {
    height: 80px;
    width: auto;
    filter: brightness(0) invert(1);
}

.footer-brand p {
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.8;
    font-size: 1.05rem;
}

.footer-links,
.footer-contact {
    animation: fadeInUp 0.8s ease 0.2s both;
}

.footer-links h4,
.footer-contact h4 {
    color: var(--primary-light);
    margin-bottom: 24px;
    font-size: 1.4rem;
}

.footer-links ul {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 16px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    transition: all 0.3s ease;
    font-size: 1.05rem;
    display: inline-block;
    text-decoration: none;
}

.footer-links a:hover {
    color: var(--primary-light);
    transform: translateX(-5px);
}

body[dir="ltr"] .footer-links a:hover {
    transform: translateX(5px);
}

.footer-contact p {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 12px;
    font-size: 1.05rem;
}

.footer-bottom {
    text-align: center;
    padding-top: 32px;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.95rem;
}

.footer-note {
    margin-top: 0.5rem;
    font-size: 0.9rem;
    opacity: 0.8;
}

/* ==========================================
   SCROLL TO TOP
   ========================================== */
.scroll-top {
    position: fixed;
    bottom: 30px;
    left: 30px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--primary-color);
    color: var(--white);
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    box-shadow: var(--shadow-md);
    opacity: 0;
    transition: all 0.3s ease;
    z-index: 1000;
}

.scroll-top.visible {
    opacity: 1;
}

.scroll-top:hover {
    transform: scale(1.1);
    background: var(--primary-dark);
}

/* ==========================================
   CONTACT FORM MODAL
   ========================================== */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(5px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-container {
    background: var(--white);
    border-radius: 20px;
    max-width: 600px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    box-shadow: var(--shadow-lg);
    transform: translateY(-50px);
    transition: transform 0.3s ease;
}

.modal-overlay.active .modal-container {
    transform: translateY(0);
}

.modal-close {
    position: absolute;
    top: 20px;
    left: 20px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--gray-100);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: var(--text-primary);
    transition: all 0.3s ease;
    z-index: 10;
}

.modal-close:hover {
    background: var(--primary-color);
    color: var(--white);
    transform: rotate(90deg);
}

.modal-header {
    text-align: center;
    padding: 3rem 2rem 2rem;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: var(--white);
    border-radius: 20px 20px 0 0;
}

.modal-icon {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin: 0 auto 1.5rem;
    border: 3px solid rgba(255, 255, 255, 0.3);
}

.modal-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.modal-subtitle {
    font-size: 1rem;
    opacity: 0.95;
}

.contact-form {
    padding: 2.5rem 2rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
    font-size: 0.95rem;
}

.required {
    color: #dc3545;
    font-weight: 700;
}

.form-input,
.form-textarea {
    width: 100%;
    padding: 0.9rem 1.2rem;
    border: 2px solid var(--gray-200);
    border-radius: 12px;
    font-size: 1rem;
    font-family: 'Tajawal', sans-serif;
    transition: all 0.3s ease;
    background: var(--gray-50);
}

.form-input:focus,
.form-textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    background: var(--white);
    box-shadow: 0 0 0 4px rgba(87, 161, 193, 0.1);
}

.form-input[readonly] {
    background: var(--primary-lighter);
    border-color: var(--primary-light);
    color: var(--primary-dark);
    font-weight: 600;
    cursor: not-allowed;
}

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

.btn-submit {
    width: 100%;
    padding: 1.1rem 2rem;
    border: none;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    color: var(--white);
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    margin-top: 2rem;
}

.btn-submit:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 32px rgba(87, 161, 193, 0.4);
}

.btn-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.form-message {
    padding: 1.5rem;
    border-radius: 12px;
    margin: 1.5rem 2rem;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    font-weight: 600;
}

.form-message i {
    font-size: 1.8rem;
}

.form-message.success {
    background: linear-gradient(135deg, #d4edda, #c3e6cb);
    color: #155724;
    border: 2px solid #28a745;
}

.form-message.error {
    background: linear-gradient(135deg, #f8d7da, #f5c6cb);
    color: #721c24;
    border: 2px solid #dc3545;
}

/* ==========================================
   RESPONSIVE - MOBILE OPTIMIZED
   ========================================== */

/* Tablets and small laptops */
@media (max-width: 1024px) {
    .container {
        padding: 0 30px;
    }

    .pricing-card {
        flex: 0 0 300px;
        min-height: 600px;
    }

    .carousel-arrow {
        width: 48px;
        height: 48px;
    }

    .agents-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 20px;
    }
}

/* Tablets portrait */
@media (max-width: 768px) {
    html {
        font-size: 15px;
    }

    .container {
        padding: 0 20px;
    }

    /* Pricing Hero */
    .pricing-hero {
        padding: 80px 0 60px;
    }

    .pricing-hero-title {
        font-size: 2rem;
        line-height: 1.3;
    }

    .pricing-hero-subtitle {
        font-size: 1.1rem;
    }

    /* Product Headers */
    .product-section {
        padding: 60px 0;
    }

    .product-header {
        flex-direction: column;
        text-align: center;
        gap: 15px;
        padding: 30px 20px;
    }

    .product-name {
        font-size: 1.8rem;
    }

    .product-tagline {
        font-size: 1rem;
    }

    /* Carousel */
    .pricing-grid-wrapper {
        padding: 0 45px;
        margin: 30px 0;
    }

    .carousel-arrow {
        width: 42px;
        height: 42px;
        font-size: 1.1rem;
    }

    .arrow-left {
        left: 5px;
    }

    .arrow-right {
        right: 5px;
    }

    /* Pricing Cards */
    .pricing-card {
        flex: 0 0 85vw;
        max-width: 350px;
        min-height: 580px;
        margin: 0 10px;
    }

    .package-name {
        font-size: 1.5rem;
    }

    .price-amount {
        font-size: 2.8rem;
    }

    .features-list li {
        font-size: 0.95rem;
        padding: 12px 0;
    }

    /* Agents Grid */
    .agents-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 15px;
        padding: 20px;
    }

    .agent-card {
        padding: 20px 15px;
    }

    .agent-icon {
        width: 50px;
        height: 50px;
        font-size: 1.3rem;
    }

    .agent-card h4 {
        font-size: 0.95rem;
    }

    .agent-card p {
        font-size: 0.8rem;
    }

    /* Bundles */
    .bundles-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .bundle-card {
        padding: 30px 25px;
    }

    /* CTA Section */
    .cta-content h2 {
        font-size: 2rem;
    }

    .cta-content p {
        font-size: 1.1rem;
    }

    /* Footer */
    .footer-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .lang-toggle {
        padding: 8px 16px;
        font-size: 0.9rem;
    }
}

/* Mobile devices */
@media (max-width: 640px) {
    html {
        font-size: 14px;
    }

    .container {
        padding: 0 15px;
    }

    /* Pricing Hero */
    .pricing-hero {
        padding: 60px 0 40px;
    }

    .pricing-hero-title {
        font-size: 1.75rem;
        line-height: 1.3;
        margin-bottom: 15px;
    }

    .pricing-hero-subtitle {
        font-size: 1rem;
        line-height: 1.6;
    }

    /* Product Sections */
    .product-section {
        padding: 40px 0;
    }

    .product-header {
        padding: 25px 15px;
        gap: 12px;
    }

    .product-icon {
        width: 60px;
        height: 60px;
    }

    .product-name {
        font-size: 1.5rem;
    }

    .product-tagline {
        font-size: 0.9rem;
    }

    .product-desc {
        font-size: 0.95rem;
        line-height: 1.6;
    }

    /* Section Titles */
    .section-title-wrapper {
        margin: 30px 0 20px;
    }

    .section-title {
        font-size: 1.5rem;
    }

    /* Carousel - FULL WIDTH ON MOBILE */
    .pricing-grid-wrapper {
        padding: 0 40px;
        margin: 20px 0;
    }

    .carousel-arrow {
        width: 36px;
        height: 36px;
        font-size: 1rem;
        border-width: 2px;
    }

    .arrow-left {
        left: 2px;
    }

    .arrow-right {
        right: 2px;
    }

    /* Pricing Cards - OPTIMIZED FOR MOBILE */
    .pricing-grid {
        gap: 15px;
        padding: 10px 0;
    }

    .pricing-card {
        flex: 0 0 90vw;
        max-width: 320px;
        min-height: 550px;
        margin: 0 8px;
        padding: 25px 20px;
    }

    .card-ribbon {
        font-size: 0.85rem;
        padding: 6px 20px;
        right: -5px;
        top: 15px;
    }

    .discount-tag {
        font-size: 0.8rem;
        padding: 6px 12px;
        top: 10px;
        left: 10px;
    }

    .package-name {
        font-size: 1.4rem;
        margin-bottom: 6px;
    }

    .package-subtitle {
        font-size: 0.85rem;
        margin-bottom: 15px;
    }

    .price-wrapper {
        margin: 15px 0;
    }

    .price-amount {
        font-size: 2.5rem;
    }

    .price-currency {
        font-size: 1rem;
    }

    .price-old {
        font-size: 1.2rem;
    }

    .price-note {
        font-size: 0.85rem;
        margin-top: 8px;
    }

    .features-list {
        gap: 8px;
        margin: 20px 0;
    }

    .features-list li {
        font-size: 0.9rem;
        padding: 10px 0;
    }

    .features-list i {
        font-size: 0.9rem;
    }

    .btn-select {
        padding: 14px 28px;
        font-size: 1rem;
        margin-top: 20px;
    }

    /* Agents Grid - 2 COLUMNS ON MOBILE */
    .agents-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
        padding: 15px 10px;
    }

    .agent-card {
        padding: 18px 12px;
        min-height: auto;
    }

    .agent-icon {
        width: 45px;
        height: 45px;
        font-size: 1.2rem;
        margin-bottom: 10px;
    }

    .agent-card h4 {
        font-size: 0.9rem;
        margin-bottom: 4px;
    }

    .agent-card p {
        font-size: 0.75rem;
    }

    /* Bundles */
    .bundles-grid {
        padding: 20px 10px;
    }

    .bundle-card {
        padding: 25px 20px;
    }

    .bundle-title {
        font-size: 1.4rem;
    }

    .bundle-products {
        gap: 15px;
        margin: 20px 0;
    }

    .bundle-product {
        padding: 15px;
    }

    .bundle-price {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .bundle-price-amount {
        font-size: 2rem;
    }

    /* CTA Section */
    .cta-section {
        padding: 50px 0;
    }

    .cta-content h2 {
        font-size: 1.75rem;
        margin-bottom: 15px;
    }

    .cta-content p {
        font-size: 1rem;
        margin-bottom: 25px;
    }

    .cta-buttons {
        flex-direction: column;
        gap: 12px;
    }

    .cta-buttons .btn {
        width: 100%;
        justify-content: center;
    }

    /* Terms */
    .terms-section {
        padding: 40px 0;
    }

    .terms-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .term-card {
        padding: 20px 15px;
    }

    /* Footer Mobile */
    .footer {
        padding: 40px 0 24px;
    }

    .footer-content {
        gap: 32px;
        text-align: center;
    }

    .footer-brand p {
        font-size: 0.9rem;
    }

    .footer-logo img {
        height: 60px;
        margin: 0 auto 16px;
    }

    .footer-links h4,
    .footer-contact h4 {
        font-size: 1.1rem;
        margin-bottom: 12px;
    }

    .footer-links ul li,
    .footer-contact p {
        font-size: 0.9rem;
        margin-bottom: 8px;
    }

    .footer-bottom {
        padding-top: 24px;
        margin-top: 32px;
    }

    .footer-bottom p {
        font-size: 0.85rem;
    }
}

/* Extra small mobile */
@media (max-width: 375px) {
    html {
        font-size: 13px;
    }

    .pricing-hero-title {
        font-size: 1.6rem;
    }

    .pricing-card {
        flex: 0 0 95vw;
        max-width: 300px;
    }

    .carousel-arrow {
        width: 32px;
        height: 32px;
        font-size: 0.9rem;
    }

    .agents-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .agent-card {
        padding: 15px 10px;
    }
}
