﻿/* src/style.css */

/* Main CSS File */
:root {
    --primary-blue: #0052FF;
    --secondary-blue: #1A6BFF;
    --accent-orange: #FF6B00;
    --white: #FFFFFF;
    --bg-light: #F8FAFC;
    --text-dark: #1E293B;
    --text-muted: #64748B;
    --shadow-sm: 0 4px 12px rgba(0, 82, 255, 0.05);
    --shadow-md: 0 10px 30px rgba(0, 82, 255, 0.1);
    --glass-bg: rgba(255, 255, 255, 0.95);
    --glass-border: rgba(255, 255, 255, 0.5);
    --radius-pill: 50px;
    --radius-card: 40px 0 40px 0;
    --radius-btn: 12px 0 12px 0;
    --radius-input: 12px 0 12px 0;
    --transition: opacity 0.4s cubic-bezier(0.165, 0.84, 0.44, 1), transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1), background-color 0.4s, color 0.4s, box-shadow 0.4s;
}

.animate-fade-in {
    animation: fadeIn 0.5s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Accessibility: Screen reader only (visually hidden) */
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Skeleton Loading Effect */
.skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s infinite;
    border-radius: 8px;
}

@keyframes skeleton-loading {
    0% {
        background-position: 200% 0;
    }

    100% {
        background-position: -200% 0;
    }
}

/* Global App Wrapper for Sticky Footer */
#app,
#app-wrapper {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

main {
    flex: 1;
}

/* Global Background Decoration Blobs */
.bg-blob {
    position: fixed;
    z-index: -1;
    filter: blur(100px);
    opacity: 0.08;
    pointer-events: none;
    border-radius: 50%;
    animation: blob-float 20s infinite alternate ease-in-out;
}

.bg-blob-primary {
    top: -10%;
    left: -10%;
    width: 600px;
    height: 600px;
    background: var(--primary-blue);
}

.bg-blob-accent {
    bottom: -10%;
    right: -10%;
    width: 500px;
    height: 500px;
    background: var(--accent-orange);
    animation-delay: -5s;
}

@keyframes blob-float {
    0% {
        transform: translate3d(0, 0, 0) scale(1);
    }

    100% {
        transform: translate3d(50px, 30px, 0) scale(1.1);
    }
}

/* Profile Dropdown Styles */
.profile-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    /* Align right by default */
    margin-top: 15px;
    background: white;
    border-radius: 16px 0 16px 0;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    min-width: 200px;
    /* ضمان عرض أدنى كافي */
    width: max-content;
    /* تتوسع حسب النص */
    max-width: 280px;
    /* منع التوسع المفرط */
    z-index: 2100;
    padding: 10px 0;
    border: 1px solid black;
    transform-origin: top right;
    animation: dropdownSlideIn 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
}

[dir="rtl"] .profile-dropdown {
    right: auto;
    left: 0;
    transform-origin: top left;
}

/* قائمة "القائمة" - تفتح للداخل */
#menu-dropdown {
    right: auto;
    left: 0;
    transform-origin: top left;
}

[dir="rtl"] #menu-dropdown {
    left: auto;
    right: 0;
    transform-origin: top right;
}

/* قائمة "حسابي" - تفتح للداخل */
#profile-dropdown {
    right: auto;
    left: 0;
}

[dir="rtl"] #profile-dropdown {
    right: auto;
    left: 0;
}

/* Mobile Responsive Fixes for Dropdowns */
@media (max-width: 768px) {
    .profile-dropdown {
        /* تقليل العرض الأقصى للجوال بشكل أكبر */
        max-width: 200px !important;
        min-width: 160px !important;
        /* ضمان أن القائمة تبقى داخل الشاشة */
        right: 0;
        left: auto;
        /* منع النصوص الطويلة من الخروج */
        overflow-wrap: break-word;
        word-wrap: break-word;
    }

    [dir="rtl"] .profile-dropdown {
        right: 0;
        left: auto;
    }

    /* قائمة "حسابي" - تفتح للداخل في الجوال */
    #profile-dropdown {
        right: 0 !important;
        left: auto !important;
        max-width: 200px !important;
    }

    [dir="rtl"] #profile-dropdown {
        right: 0 !important;
        left: auto !important;
        max-width: 200px !important;
    }

    /* قائمة "القائمة" - تفتح للداخل في الجوال */
    #menu-dropdown {
        right: auto;
        left: 0;
        max-width: 200px !important;
    }

    [dir="rtl"] #menu-dropdown {
        left: auto;
        right: 0;
        max-width: 200px !important;
    }

    /* تقليل حجم النصوص في القوائم المنسدلة */
    .dropdown-item {
        font-size: 0.8rem !important;
        padding: 8px 12px !important;
        gap: 8px !important;
        white-space: normal !important;
        overflow-wrap: break-word !important;
    }

    .dropdown-header-item {
        padding: 10px 12px !important;
    }

    .cashback-label {
        font-size: 0.7rem !important;
    }

    .cashback-value {
        font-size: 0.95rem !important;
    }

    /* تأكد من أن الـ user-wrapper لا يسبب overflow */
    .user-wrapper {
        position: relative;
        overflow: visible;
    }
}

@keyframes dropdownSlideIn {
    from {
        opacity: 0;
        transform: translateY(-10px) scale(0.95);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Arrow removed as per user request */
/* .profile-dropdown::before {
    content: '';
    position: absolute;
    top: -6px;
    right: 20px;
    width: 12px;
    height: 12px;
    background: white;
    transform: rotate(45deg);
    border-top: 1px solid black;
    border-left: 1px solid black;
} */

/* [dir="rtl"] .profile-dropdown::before {
    right: auto;
    left: 20px;
    border-left: none;
    border-right: 1px solid black;
} */

.dropdown-header-item {
    padding: 15px 20px;
    background: linear-gradient(135deg, rgba(0, 82, 255, 0.05) 0%, rgba(0, 82, 255, 0.01) 100%);
    margin: 5px 10px 10px;
    border-radius: 12px 0 12px 0;
    text-align: center;
}

.cashback-label {
    font-size: 0.8rem;
    color: var(--text-muted);
    font-weight: 500;
}

.cashback-value {
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--accent-orange);
    display: block;
    margin-top: 2px;
}

.dropdown-divider {
    height: 1px;
    background: #f0f0f0;
    margin: 8px 0;
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 20px;
    color: var(--text-dark);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    transition: var(--transition);
    cursor: pointer;
    white-space: nowrap;
    /* منع انكسار النص داخل القائمة */
}

.dropdown-item i {
    font-size: 1.1rem;
    color: var(--text-muted);
    width: 20px;
    text-align: center;
    transition: var(--transition);
}

.dropdown-item:hover {
    background: rgba(0, 82, 255, 0.04);
    color: var(--primary-blue);
}

.dropdown-item:hover i {
    color: var(--primary-blue);
    transform: scale(1.1);
}

.dropdown-item.text-danger:hover {
    background: rgba(220, 53, 69, 0.08);
    /* Red tint */
    color: #dc3545;
}

.dropdown-item.text-danger i {
    color: #dc3545;
}

/* Ensure parent has relative position for absolute dropdown */
.header-nav {
    position: relative;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Plus Jakarta Sans', 'Cairo', sans-serif;
    background-color: var(--bg-light);
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
    padding-top: 80px;
    /* Space for fixed header */
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Base Grid (Lightweight Bootstrap-like system) */
.row {
    display: flex;
    flex-wrap: wrap;
    margin-right: -15px;
    margin-left: -15px;
}

.g-4 {
    --bs-gutter-x: 1.5rem;
    --bs-gutter-y: 1.5rem;
    margin-top: calc(-1 * var(--bs-gutter-y));
    margin-right: calc(-0.5 * var(--bs-gutter-x));
    margin-left: calc(-0.5 * var(--bs-gutter-x));
}

.g-4>* {
    padding-top: var(--bs-gutter-y);
    padding-right: calc(0.5 * var(--bs-gutter-x));
    padding-left: calc(0.5 * var(--bs-gutter-x));
}

[class^="col-"] {
    flex-shrink: 0;
    width: 100%;
    max-width: 100%;
    padding-right: 15px;
    padding-left: 15px;
}

@media (min-width: 768px) {
    .col-md-4 {
        flex: 0 0 auto;
        width: 33.333333%;
    }

    .col-md-6 {
        flex: 0 0 auto;
        width: 50%;
    }
}

@media (min-width: 992px) {
    .col-lg-3 {
        flex: 0 0 auto;
        width: 25%;
    }

    .col-lg-4 {
        flex: 0 0 auto;
        width: 33.333333%;
    }

    .col-lg-8 {
        flex: 0 0 auto;
        width: 66.666667%;
    }

    .col-lg-10 {
        flex: 0 0 auto;
        width: 83.333333%;
    }
}

/* Utilities */
.d-none {
    display: none !important;
}

@media (min-width: 768px) {
    .d-md-flex {
        display: flex !important;
    }
}

.d-block {
    display: block !important;
}

.d-flex {
    display: flex !important;
}

.align-items-center {
    align-items: center !important;
}

.justify-content-between {
    justify-content: space-between !important;
}

.gap-2 {
    gap: 0.5rem !important;
}

.gap-3 {
    gap: 1rem !important;
}

.pt-5 {
    padding-top: 3rem !important;
}

.pb-4 {
    padding-bottom: 1.5rem !important;
}

.mt-3 {
    margin-top: 1rem !important;
}

.mb-5 {
    margin-bottom: 3rem !important;
}

.text-center {
    text-align: center !important;
}


/* Header */
.glass-header {
    background: transparent;
    border-bottom: 1px solid transparent;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 2000;
    padding: 24px 0;
    transition: var(--transition);
}

.glass-header.scrolled {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--glass-border);
    padding: 12px 0;
    box-shadow: var(--shadow-sm);
}

/* Brand Name (Text Logo) */
.brand-name {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--primary-blue);
    text-decoration: none;
    letter-spacing: -0.5px;
}

.brand-accent {
    color: var(--secondary-blue);
    font-weight: 600;
}

.brand-name:hover {
    opacity: 0.9;
}

/* Header Navigation */
.header-nav {
    display: flex;
    align-items: center;
    gap: 20px;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 600;
    font-size: 0.9rem;
    padding: 8px 12px;
    border-radius: 10px 0 10px 0;
    transition: var(--transition);
    cursor: pointer;
    white-space: nowrap;
    /* منع انكسار النص في سطرين */
}

.nav-item:hover {
    background: rgba(0, 82, 255, 0.1);
    color: var(--primary-blue);
}

.nav-item i {
    font-size: 1rem;
}

.cart-icon {
    position: relative;
}

.cart-badge {
    position: absolute;
    top: 0;
    right: 0;
    background: var(--primary-blue);
    color: white;
    font-size: 0.65rem;
    font-weight: 700;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Header Dropdowns */
.dropdown-wrapper {
    position: relative;
}

.header-select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background: white;
    border: none;
    border-radius: 16px 0 16px 0;
    padding: 8px 14px;
    padding-right: 30px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-dark);
    cursor: pointer;
    font-family: inherit;
    transition: var(--transition);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23666' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
    min-width: 120px;
}

[dir="rtl"] .header-select {
    padding-right: 14px;
    padding-left: 28px;
    background-position: left 8px center;
}

.header-select:hover {
    box-shadow: 0 4px 12px rgba(0, 82, 255, 0.15);
}

.header-select:focus {
    outline: none;
    box-shadow: 0 0 0 2px rgba(0, 82, 255, 0.2);
}

.header-select option {
    padding: 10px;
    font-size: 0.9rem;
}

/* Search Container */
.search-container {
    max-width: 600px;
    margin: 0 auto;
}

.search-box {
    background: white;
    border-radius: var(--radius-pill);
    padding: 12px 25px;
    display: flex;
    align-items: center;
    gap: 15px;
    box-shadow: var(--shadow-md);
    border: 1px solid rgba(0, 82, 255, 0.1);
    border-radius: 30px 0 30px 0;
}

.search-box i {
    color: var(--secondary-blue);
    font-size: 1.2rem;
}

.search-box input {
    border: none;
    outline: none;
    width: 100%;
    font-size: 1.1rem;
    font-family: inherit;
    color: var(--text-dark);
    background: transparent;
}

/* Filter Pills (Shared) */
.filter-pill {
    padding: 8px 16px;
    border-radius: 20px;
    border: 1px solid rgba(0, 82, 255, 0.1);
    background: white;
    color: var(--text-dark);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    font-size: 0.9rem;
    margin: 0 4px;
    border-radius: 20px 0 20px 0;
}

.filter-pill:hover,
.filter-pill.active {
    background: var(--primary-blue);
    color: white;
    border-color: var(--primary-blue);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 82, 255, 0.15);
}

/* Day Filters (ChoiceChips Style) */
.bundle-days-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    padding: 10px 0;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.day-chip {
    padding: 6px 14px;
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    white-space: nowrap;
}

.day-chip:hover {
    background: #e2e8f0;
    color: var(--text-dark);
}

.day-chip.active {
    background: var(--primary-blue);
    color: white;
    border-color: var(--primary-blue);
    box-shadow: 0 4px 10px rgba(0, 82, 255, 0.2);
    transform: scale(1.05);
}

/* Search Dropdown Results */
.search-box {
    position: relative;
    /* For absolute positioning of results */
}

.search-results {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: white;
    border-radius: 16px 0 16px 0;
    margin-top: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    max-height: 400px;
    overflow-y: auto;
    z-index: 1000;
    padding: 8px 0;
    border: 1px solid rgba(0, 82, 255, 0.1);
}

.search-result-item {
    padding: 12px 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    transition: var(--transition);
    text-align: left;
}

[dir="rtl"] .search-result-item {
    text-align: right;
}

.search-result-item:hover {
    background: rgba(0, 82, 255, 0.05);
}

.search-result-item img.flag {
    width: 24px;
    height: 18px;
    object-fit: cover;
    border-radius: 4px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.search-result-item span {
    font-weight: 600;
    color: var(--text-dark);
    font-size: 1rem;
}

/* Scrollbar for search results */
.search-results::-webkit-scrollbar {
    width: 6px;
}

.search-results::-webkit-scrollbar-track {
    background: transparent;
}

.search-results::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.1);
    border-radius: 3px;
}


/* Regions Grid - BreezeSim Style */
.regions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
    padding: 10px 0 30px;
    /* Increased gap and min-width for 3 columns on desktop */
}

/* ... existing destination-card styles ... */

/* Country Hero Section */
.country-hero-section {
    background: var(--bg-light);
    padding: 40px 0 10px;
    /* Reduced bottom padding from 30px */
    color: var(--text-dark);
}

/* ... existing region styles ... */

/* Bundles Grid */
.bundles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
    padding: 10px 0 20px;
    /* Increased gap and min-width for 3 columns on desktop */
}

.destination-card {
    background: #ffffff;
    background-image:
        radial-gradient(at 0% 0%, rgba(0, 82, 255, 0.03) 0px, transparent 50%),
        radial-gradient(at 100% 100%, rgba(255, 140, 0, 0.02) 0px, transparent 50%);
    border-radius: 40px 0 40px 0;
    padding: 32px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 220px;
    border: 2px solid rgba(0, 82, 255, 0.15);
    /* Larger padding and min-height for bigger cards */
    transition: var(--transition);
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.destination-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(0, 82, 255, 0.02) 0%, transparent 70%);
    transition: var(--transition);
    pointer-events: none;
    z-index: 0;
}

.destination-card:hover::before {
    transform: translate(10%, 10%);
}

.destination-card:hover {
    border-color: var(--primary-blue);
    border-width: 3px;
    /* Even thicker on hover */
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 82, 255, 0.12);
}

/* Original Watermark Styles */
.watermark-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    pointer-events: none;
    z-index: 0;
}

.card-watermark {
    font-size: 14rem;
    color: rgba(0, 82, 255, 0.07);
    transform: rotate(-10deg);
    transition: var(--transition);
}

.destination-card:hover .card-watermark {
    transform: rotate(0deg) scale(1.15);
    color: rgba(0, 82, 255, 0.1);
}

/* Region Square Shaved Image Icon */
.region-image-wrapper {
    width: 140px;
    height: 140px;
    position: relative;
    border-radius: 24px 0 24px 0;
    overflow: hidden;
    border: 2px solid rgba(0, 82, 255, 0.15);
    box-shadow: 0 8px 24px rgba(0, 82, 255, 0.12);
    background: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(10px);
    transition: var(--transition);
    margin: 15px 0;
}

.region-card-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* Changed from contain to cover for a fuller look */
    transition: var(--transition);
}

.image-overlay-glow {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.2) 0%, transparent 100%);
    pointer-events: none;
    transition: var(--transition);
}

/* Hover Effects for Square Image */
.destination-card:hover .region-image-wrapper {
    transform: scale(1.05) rotate(1deg);
    border-color: var(--primary-blue);
    box-shadow: 0 12px 30px rgba(0, 82, 255, 0.25);
}

.destination-card:hover .region-card-image {
    transform: scale(1.1);
}

.destination-card:hover .image-overlay-glow {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.3) 0%, transparent 100%);
}



[dir="rtl"] .card-watermark {
    transform: rotate(10deg);
}

.card-top,
.card-body,
.card-bottom {
    position: relative;
    z-index: 1;
}

.card-body {
    display: flex;
    justify-content: center;
    align-items: center;
}

.card-top .name {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--primary-blue);
    display: flex;
    align-items: center;
    width: 100%;
    position: relative;
    /* No horizontal gap, managed by margins */
}

.name-text {
    flex-shrink: 0;
    margin-inline-end: 8px;
    /* Small gap for the stationary arrow */
    order: 1;
}

/* 1. The Stationary Icon (Now near the text) */
.card-top .name i {
    font-size: 0.8rem;
    /* Slightly smaller */
    color: var(--primary-blue);
    transition: opacity 0.3s ease;
    order: 2;
    margin-inline-end: 10px;
    /* Start of the line gap */
    opacity: 1;
    visibility: visible;
}

.destination-card:hover .name i {
    opacity: 0;
    /* Disappears on hover as requested */
}

/* 2. The Flexible Tracer Line (Grows from the icon's position) */
.card-top .name::after {
    content: '';
    order: 3;
    height: 2px;
    background: linear-gradient(90deg, transparent 0%, rgba(0, 82, 255, 0.4) 30%, var(--primary-blue) 100%);
    transition: flex-grow 0.6s cubic-bezier(0.165, 0.84, 0.44, 1), opacity 0.6s;
    opacity: 0;
    flex-grow: 1e-5;
    /* Close to zero */
    pointer-events: none;
    border-radius: 2px;
}

[dir="rtl"] .card-top .name::after {
    background: linear-gradient(-90deg, transparent 0%, rgba(0, 82, 255, 0.4) 30%, var(--primary-blue) 100%);
}

.destination-card:hover .name::after {
    flex-grow: 1;
    opacity: 0.8;
}

/* 3. The arrowhead at the tip of the line (Now at the far end) */
.card-top .name::before {
    content: '';
    order: 4;
    width: 0;
    height: 0;
    border-top: 6px solid transparent;
    /* Wider head (was 5px) */
    border-bottom: 6px solid transparent;
    /* Wider head (was 5px) */
    /* Use logical properties to ensure arrowhead follows the line direction */
    border-inline-start: 9px solid var(--primary-blue);
    /* Slightly longer (was 7px) */
    opacity: 0;
    transition: opacity 0.4s ease;
    margin-inline-start: 0;
    transform: translateY(0);
    /* Reset for logical flex sizing */
}

/* Directions Support */
:root {
    --inline-end: right;
}

[dir="rtl"] :root {
    --inline-end: left;
}

/* RTL Arrow Fix: Flip the arrowhead for Arabic to point properly to the left */
[dir="rtl"] .card-top .name::before {
    border-inline-start: none;
    border-inline-end: 9px solid var(--primary-blue);
    /* Updated to match new length */
}

.destination-card:hover .name::before {
    opacity: 1;
}

/* Directions Support */
:root {
    --inline-end: right;
}

[dir="rtl"] :root {
    --inline-end: left;
}

[dir="rtl"] .card-top .name::before {
    transform: rotate(180deg);
    /* Flip triangle for RTL */
}

/* Ensure the hover icon (arrowhead) is clear */
.destination-card:hover .name::before {
    filter: drop-shadow(0 0 5px rgba(0, 82, 255, 0.6));
}

/* RTL Specific Fixes */
[dir="rtl"] .destination-card {
    border-radius: 40px 0 40px 0;
}

[dir="rtl"] .filter-pill {
    border-radius: 20px 0 20px 0;
}

[dir="rtl"] .card-top .name i {
    transform: rotate(180deg);
}

[dir="rtl"] .destination-card:hover .name i {
    transform: rotate(180deg) scale(1.4);
}

.card-body {
    margin-top: 15px;
    display: flex;
    align-items: center;
}

.card-body img.flag {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    /* هذا السطر السحري اللي يخليه يعبي الدائرة غصب */
    object-fit: fill;

    /* وهذولي عشان الشكل يطلع نظيف */
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.card-bottom {
    display: flex;
    justify-content: flex-end;
    align-items: baseline;
    gap: 5px;
    margin-top: auto;
}

.card-bottom .from {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.card-bottom .price {
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--accent-orange);
}

/* Hero Section Enhancement */
.hero-section {
    padding: 35px 0 60px;
    background: radial-gradient(circle at 10% 20%, rgba(0, 82, 255, 0.03) 0%, transparent 40%),
        radial-gradient(circle at 90% 80%, rgba(255, 140, 0, 0.02) 0%, transparent 40%);
}

.hero-title {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    margin-bottom: 40px !important;
}

.hero-title .main-text {
    font-size: 3.5rem;
    font-weight: 900;
    color: var(--primary-blue);
    line-height: 1.1;
    display: block;
}

.hero-title .sub-text {
    font-size: 1.5rem;
    font-weight: 600;
    color: rgba(0, 82, 255, 0.85);
    /* أغمق قليلاً بشفافية 85% لوزن بصري أفضل */
    line-height: 1.4;
    display: block;
    max-width: 800px;
}

@media (max-width: 768px) {
    .hero-title .main-text {
        font-size: 2.2rem;
    }

    .hero-title .sub-text {
        font-size: 1.1rem;
    }
}

.section-title {
    color: var(--primary-blue);
    font-weight: 800;
}

/* Modals */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(26, 26, 46, 0.4);
    backdrop-filter: blur(10px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2000;
}

.glass-modal {
    background: white;
    border-radius: 24px 0 24px 0;
    padding: 40px;
    width: 100%;
    max-width: 420px;
    position: relative;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.15);
}

.form-input {
    width: 100%;
    padding: 14px 20px;
    border-radius: 12px 0 12px 0;
    border: 1px solid #eee;
    margin-bottom: 15px;
    outline: none;
    transition: var(--transition);
    background: #fdfdfd;
}

.form-input:focus {
    border-color: var(--secondary-blue);
    background: white;
    box-shadow: 0 0 0 4px rgba(0, 123, 255, 0.1);
}

/* Buttons */
.btn {
    padding: 12px 28px;
    border-radius: 15px 0 15px 0;
    font-weight: 700;
    transition: var(--transition);
    border: none;
    cursor: pointer;
}

.btn-primary {
    background: var(--primary-blue);
    color: white;
}

.btn-buy {
    background: var(--accent-orange) !important;
    color: white !important;
    box-shadow: 0 4px 15px rgba(255, 107, 0, 0.2);
}

.btn-buy:hover {
    background: #E66000 !important;
    /* Slightly darker orange */
    transform: scale(1.05) !important;
    box-shadow: 0 6px 20px rgba(255, 107, 0, 0.4);
}

.btn-outline {
    background: transparent;
    border: 1px solid rgba(0, 82, 255, 0.2);
    color: var(--primary-blue);
    padding: 8px 20px;
}

.btn-outline:hover {
    background: rgba(0, 82, 255, 0.05);
    border-color: var(--primary-blue);
    transform: translateY(-1px);
}

.btn-primary:hover {
    background: var(--secondary-blue);
    transform: scale(1.02);
}

/* Utilities */
.d-flex {
    display: flex;
}

.justify-content-between {
    justify-content: space-between;
}

.align-items-center {
    align-items: center;
}

.gap-3 {
    gap: 1rem;
}

.text-center {
    text-align: center;
}

.py-5 {
    padding: 4rem 0;
}

.mt-4 {
    margin-top: 1.5rem;
}

.mt-5 {
    margin-top: 2.5rem;
}

.mb-4 {
    margin-bottom: 1.5rem;
}

.d-none {
    display: none !important;
}

.lang-switch {
    font-weight: 700;
    cursor: pointer;
    font-size: 0.85rem;
    color: var(--text-muted);
    background: rgba(0, 82, 255, 0.05);
    padding: 6px 15px;
    border-radius: var(--radius-pill);
    transition: var(--transition);
}

.lang-switch:hover {
    background: rgba(0, 82, 255, 0.1);
}

.lang-switch span.active {
    color: var(--primary-blue);
}

.avatar {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 2px solid var(--secondary-blue);
}

@media (max-width: 768px) {
    .hero-section h1 {
        font-size: 2.5rem;
    }

    .nav-links {
        display: none;
    }

    .country-name {
        font-size: 1.8rem;
    }

    .country-flag {
        width: 45px;
        height: 50px;
    }

    .bundles-grid {
        grid-template-columns: 1fr;
    }
}

/* ============================================
   BUNDLES PAGE STYLES
   ============================================ */

/* Country Hero Section */
.country-hero-section {
    background: var(--bg-light);
    padding: 40px 0 30px;
    color: var(--text-dark);
}

/* Region Hero Section (for countries page) */
.region-hero-section {
    background: var(--bg-light);
    padding: 40px 0 10px;
    /* Reduced bottom padding */
    color: var(--text-dark);
}

.region-hero-content {
    display: flex;
    flex-direction: column;
    gap: 10px;
    /* Reduced gap */
}

.region-info {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.region-title {
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--primary-blue);
    margin: 0;
}

.country-count {
    font-size: 1rem;
    color: var(--text-muted);
}

.countries-section {
    flex: 1;
    padding-top: 10px;
    /* Override py-5 top padding */
}

/* Bundles Section Override */
.bundles-section {
    padding-top: 10px;
    /* Override py-5 top padding */
}

.country-hero-content {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
}

.back-link:hover {
    color: var(--primary-blue);
}

[dir="rtl"] .back-link i {
    transform: rotate(180deg);
}

.country-info {
    display: flex;
    align-items: center;
    gap: 25px;
}

.country-flag {
    width: 80px;
    height: 55px;
    border-radius: 15px 0 15px 0;
    object-fit: cover;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.country-name {
    font-size: 2rem;
    font-weight: 800;
    margin: 0;
    color: var(--primary-blue);
}

.bundle-count {
    font-size: 1rem;
    color: var(--text-muted);
    margin-top: 5px;
}

/* Data Only Badge */
.data-only-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    background: rgba(0, 82, 255, 0.08);
    border: 1px solid rgba(0, 82, 255, 0.15);
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--primary-blue);
}

.data-only-badge i {
    font-size: 0.8rem;
}

[dir="rtl"] .data-only-badge {
    border-radius: 20px 0 20px 0;
}

/* Bundle Filters */
.bundle-filters {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

/* Bundles Grid */
.bundles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
    padding: 20px 0;
}

/* Bundle Card */
.bundle-card {
    background: white;
    background-image:
        radial-gradient(at 0% 0%, rgba(0, 82, 255, 0.03) 0px, transparent 50%),
        radial-gradient(at 100% 100%, rgba(255, 140, 0, 0.02) 0px, transparent 50%);
    padding: 32px;
    border: 2px solid rgba(0, 82, 255, 0.15);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    gap: 15px;
    position: relative;
    overflow: hidden;
}

.bundle-card:hover {
    border-color: var(--primary-blue);
    border-width: 3px;
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 82, 255, 0.15);
}

.bundle-card {
    border-radius: 40px 0 40px 0 !important;
}

/* Bundle Watermark Styles */
.bundle-watermark-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    pointer-events: none;
    z-index: 0;
}

.bundle-watermark {
    font-size: 13rem;
    color: rgba(0, 82, 255, 0.08);
    /* Increased visibility from 0.05 */
    transform: rotate(-15deg);
    transition: var(--transition);
}

.bundle-card:hover .bundle-watermark {
    transform: rotate(0deg) scale(1.1);
    color: rgba(0, 82, 255, 0.12);
    /* Increased from 0.08 */
}

/* Ensure content stays above watermark */
.bundle-type-badge,
.bundle-details,
.bundle-footer {
    position: relative;
    z-index: 1;
}

/* Bundle Type Badge - Ribbon Style */
.bundle-type-badge {
    position: absolute;
    top: 16px;
    right: -35px;
    padding: 6px 40px;
    font-size: 0.8rem;
    font-weight: 700;
    color: white;
    transform: rotate(45deg);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

[dir="rtl"] .bundle-type-badge {
    right: auto;
    left: -35px;
    transform: rotate(-45deg);
}

/* Colored thin bottom border on cards - softer colors */
.bundle-card {
    padding-top: 20px;
    border-bottom: 2px solid rgba(0, 82, 255, 0.4);
}

.bundle-card.type-local {
    border-bottom-color: rgba(56, 189, 248, 0.6);
}

.bundle-card.type-regional {
    border-bottom-color: rgba(0, 31, 102, 0.6);
}

.bundle-card.type-global {
    border-bottom-color: rgba(16, 185, 129, 0.6);
}

/* Bundle Details */
.bundle-details {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.bundle-details>div {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    color: var(--text-dark);
}

.bundle-details i {
    width: 20px;
    color: var(--secondary-blue);
}

.bundle-data span {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--primary-blue);
}

.coverage-count {
    font-size: 0.85rem;
    color: var(--text-muted);
    background: rgba(0, 82, 255, 0.05);
    padding: 4px 12px;
    border-radius: 10px 0 10px 0;
    width: fit-content;
}

/* Bundle Footer */
.bundle-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
    padding-top: 15px;
    border-top: 1px solid rgba(0, 82, 255, 0.08);
}

.bundle-price {
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--accent-orange);
}

.btn-buy {
    padding: 10px 24px;
    border-radius: 20px 0 20px 0;
    font-size: 0.95rem;
}

[dir="rtl"] .btn-buy {
    border-radius: 20px 0 20px 0;
}

/* Footer */
.main-footer {
    background: linear-gradient(135deg, #f8faff 0%, #e8f2ff 100%);
    color: var(--text-dark);
    margin-top: auto;
    position: relative;
    overflow: hidden;
}

.main-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        radial-gradient(circle at 10% 20%, rgba(0, 82, 255, 0.08) 0%, transparent 40%),
        radial-gradient(circle at 90% 80%, rgba(255, 140, 0, 0.06) 0%, transparent 40%);
    pointer-events: none;
    z-index: 0;
}

.main-footer .container {
    position: relative;
    z-index: 1;
}

.footer-brand {
    font-size: 1.5rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary-blue), var(--secondary-blue));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.75rem;
    display: inline-block;
}

.footer-description {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
}

.footer-title {
    color: var(--primary-blue);
    font-weight: 800;
    font-size: 1.1rem;
    margin-bottom: 1.25rem;
    display: flex;
    align-items: center;
}

.footer-menu {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-menu li {
    margin-bottom: 10px;
}

.footer-menu a {
    color: var(--text-dark);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.95rem;
    position: relative;
    padding: 2px 0;
}

.footer-menu a:hover {
    color: var(--primary-blue);
    transform: translateX(8px);
}

[dir="rtl"] .footer-menu a:hover {
    transform: translateX(-8px);
}

.footer-menu a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-orange);
    transition: var(--transition);
}

.footer-menu a:hover::after {
    width: 20px;
}

[dir="rtl"] .footer-menu a::after {
    left: auto;
    right: 0;
}

.contact-info-list-simple {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.contact-simple-item {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.9rem;
    color: var(--text-dark);
    font-weight: 500;
}

.contact-simple-item i {
    font-size: 1rem;
    width: 20px;
    text-align: center;
}

.payment-badges-minimal {
    display: flex;
    gap: 20px;
    justify-content: flex-end;
    font-size: 1.6rem;
    color: var(--text-dark);
    /* تغيير اللون ليكون أوضح */
    opacity: 0.9;
    /* رفع الوضوح من 0.6 إلى 0.9 */
    transition: var(--transition);
}

.payment-badges-minimal i {
    transition: all 0.3s ease;
    cursor: pointer;
}

.payment-badges-minimal i:hover {
    color: var(--primary-blue);
    transform: translateY(-3px) scale(1.1);
    opacity: 1;
}

[dir="rtl"] .payment-badges-minimal {
    justify-content: flex-start;
}

@media (max-width: 768px) {

    [dir="rtl"] .payment-badges-minimal,
    .payment-badges-minimal {
        justify-content: center;
        margin-top: 15px;
    }
}

.glass-mini-card {
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 82, 255, 0.05);
    padding: 10px 15px;
    border-radius: 12px 0 12px 0;
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 10px;
    transition: var(--transition);
}

.glass-mini-card:hover {
    background: white;
    box-shadow: var(--shadow-sm);
    transform: translateY(-2px);
}

.icon-orange {
    color: var(--accent-orange);
}

.icon-blue {
    color: var(--primary-blue);
}

.footer-bottom-premium {
    border-top: 1px solid rgba(0, 82, 255, 0.1);
    padding-top: 2rem;
    margin-top: 2rem;
    position: relative;
    z-index: 2;
}

.copyright-text {
    color: var(--text-muted);
    font-size: 0.9rem;
    font-weight: 500;
}

.payment-badges {
    display: flex;
    gap: 15px;
    justify-content: flex-end;
    font-size: 1.6rem;
    color: var(--text-muted);
    opacity: 0.7;
}

[dir="rtl"] .payment-badges {
    justify-content: flex-end;
    /* Reversed for RTL effectively */
}

@media (max-width: 768px) {
    .payment-badges {
        justify-content: center;
        margin-top: 15px;
    }

    .footer-title {
        justify-content: center;
    }

    .footer-menu a {
        justify-content: center;
    }

    .glass-mini-card {
        justify-content: center;
    }
}

.payment-badges i:hover {
    color: var(--primary-blue);
    opacity: 1;
    transform: translateY(-2px);
    transition: var(--transition);
}

.social-icon-premium {
    width: 42px;
    height: 42px;
    background: white;
    border-radius: 12px 0 12px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-dark);
    font-size: 1.1rem;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    text-decoration: none;
}

.social-icon-premium:hover {
    transform: translateY(-5px) rotate(8deg);
    color: white;
}

.pulse-blue:hover {
    background: var(--primary-blue);
    box-shadow: 0 10px 20px rgba(0, 82, 255, 0.2);
}

.pulse-orange:hover {
    background: var(--accent-orange);
    box-shadow: 0 10px 20px rgba(255, 107, 0, 0.2);
}

.pulse-green:hover {
    background: #25d366;
    box-shadow: 0 10px 20px rgba(37, 211, 102, 0.2);
}

.pulse-x:hover {
    background: #000000;
    /* X Brand Color */
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.pulse-instagram:hover {
    background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285AEB 90%);
    box-shadow: 0 10px 20px rgba(188, 42, 141, 0.2);
}

/* App Container for sticky footer */
#app {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.bundles-section {
    flex: 1;
}

/* Profile Page Styles */

/* 1. Background Decoration */
.profile-bg-deco {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(0, 82, 255, 0.1) 0%, transparent 70%);
    z-index: -1;
    pointer-events: none;
    filter: blur(80px);
}

.container-narrow {
    max-width: 1100px;
}

/* 2. Glass Modules */
.glass-module {
    background: rgba(255, 255, 255, 0.85);
    /* Slightly less opaque for depth */
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border: 1px solid rgba(255, 255, 255, 0.6);
    box-shadow: 0 15px 35px rgba(0, 82, 255, 0.08);
    /* Soft blue shadow */
    border-radius: 30px 0 30px 0;
    /* More rounded */
    padding: 30px;
    height: 100%;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.glass-module:hover {
    box-shadow: 0 20px 45px rgba(0, 82, 255, 0.12);
}

/* 3. Sidebar Specifics */
.user-header .profile-avatar-wrapper {
    position: relative;
    width: 90px;
    height: 90px;
    margin: 0 auto;
}

.profile-avatar-img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid white;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.btn-edit-avatar {
    position: absolute;
    bottom: 0px;
    right: 0px;
    width: 30px;
    height: 30px;
    border-radius: 0 50% 0 50%;
    background: var(--primary-blue);
    color: white;
    border: 2px solid white;
    font-size: 0.8rem;
    cursor: pointer;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    transition: transform 0.2s;
}

.btn-edit-avatar:hover {
    transform: scale(1.1);
}

.sidebar-divider {
    height: 1px;
    background: linear-gradient(to right, transparent, rgba(0, 0, 0, 0.05), transparent);
}

/* 4. Navigation Menu */
.profile-nav-menu {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.nav-menu-item {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    border-radius: 16px 0 16px 0;
    text-decoration: none;
    color: var(--text-dark);
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.nav-menu-item .icon-box {
    width: 36px;
    height: 36px;
    background: rgba(0, 82, 255, 0.05);
    border-radius: 10px 0 10px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-blue);
    font-size: 1.1rem;
    margin-inline-end: 15px;
    transition: all 0.3s ease;
}

.nav-menu-item .text-content {
    display: flex;
    flex-direction: column;
}

.nav-menu-item .title {
    font-weight: 600;
    font-size: 0.95rem;
}

.nav-menu-item .subtitle {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.arrow-icon {
    font-size: 0.8rem;
    color: #ccc;
    transition: transform 0.3s ease;
}

/* Hover & Active States */
.nav-menu-item:hover,
.nav-menu-item.active {
    background: white;
    box-shadow: 0 4px 15px rgba(0, 82, 255, 0.08);
    /* Lifted effect */
    border-color: rgba(0, 82, 255, 0.1);
}

.nav-menu-item:hover .icon-box,
.nav-menu-item.active .icon-box {
    background: var(--primary-blue);
    color: white;
}

.nav-menu-item:hover .arrow-icon,
.nav-menu-item.active .arrow-icon {
    transform: translateX(3px);
    color: var(--primary-blue);
}

[dir="rtl"] .nav-menu-item:hover .arrow-icon,
[dir="rtl"] .nav-menu-item.active .arrow-icon {
    transform: translateX(-3px);
    /* Flip for RTL */
}

/* 5. Wallet Card (Premium) */
.premium-wallet-card {
    position: relative;
    border-radius: 30px 0 30px 0;
    overflow: hidden;
    padding: 24px;
    color: white;
    background: linear-gradient(120deg, var(--primary-blue), #003d82);
    box-shadow: 0 15px 35px rgba(0, 50, 150, 0.25);
}

.card-bg-glow {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.15) 0%, transparent 60%);
    pointer-events: none;
}

.wallet-logo {
    opacity: 0.8;
}

.digit-group {
    font-family: monospace;
    /* Mimic credit card feel */
}

.btn-white-glass {
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
    border-radius: 0 15px 0 15px;
    padding: 6px 14px;
    font-size: 0.85rem;
    transition: all 0.3s;
}

.btn-white-glass:hover {
    background: rgba(255, 255, 255, 0.3);
}

.btn-blue-glass {
    background: rgba(0, 82, 255, 0.05);
    border: 1px solid rgba(0, 82, 255, 0.1);
    color: var(--primary-blue);
    border-radius: 12px;
    padding: 6px 14px;
    font-size: 0.85rem;
    transition: all 0.3s;
    font-weight: 600;
}

.btn-blue-glass:hover {
    background: rgba(0, 82, 255, 0.1);
    transform: translateY(-1px);
}

.bg-white-glass {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(5px);
    color: white;
    font-weight: 500;
    padding: 4px 10px;
    font-size: 0.75rem;
    border-radius: 20px;
}

/* 6. Form Inputs (Transparent Style) */
.custom-form .form-label {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text-dark);
    margin-bottom: 8px;
}

.custom-form .input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.custom-form .input-icon {
    position: absolute;
    left: 15px;
    /* LTR default */
    color: var(--text-muted);
    font-size: 1rem;
    pointer-events: none;
    z-index: 2;
}

[dir="rtl"] .custom-form .input-icon {
    left: auto;
    right: 15px;
}

.custom-form .custom-input {
    padding-left: 45px;
    /* Space for icon */
    padding-right: 15px;
    height: 50px;
    /* Taller inputs */
    border-radius: 0 14px 0 14px;
    background: rgba(248, 250, 255, 0.6);
    /* Very subtle bg */
    border: 1px solid #e0e6ed;
    color: var(--text-dark);
    font-weight: 500;
    transition: all 0.3s;
}

[dir="rtl"] .custom-form .custom-input {
    padding-left: 15px;
    padding-right: 45px;
    /* Space for icon RTL */
}

.custom-form .custom-input:focus {
    background: white;
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 4px rgba(0, 82, 255, 0.1);
    /* Glow ring */
}

.custom-form .input-wrapper.disabled .custom-input {
    background: #f1f3f5;
    color: #adb5bd;
}

/* Switch */
.custom-switch .form-check-input {
    width: 3em;
    height: 1.5em;
    cursor: pointer;
}

/* Save Button */
.btn-save {
    background: linear-gradient(135deg, var(--primary-blue), var(--secondary-blue));
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 14px;
    font-weight: 600;
    box-shadow: 0 8px 20px rgba(0, 82, 255, 0.25);
    transition: all 0.3s ease;
}

.btn-save:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 25px rgba(0, 82, 255, 0.35);
}

.pulse-hover:hover {
    animation: pulse 1s infinite;
    /* Defined below or reuse if exists */
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.02);
    }

    100% {
        transform: scale(1);
    }
}

/* Referral Section */
.bg-light-gradient {
    background: linear-gradient(180deg, #f8faff 0%, #fff 100%);
}

.border-dashed {
    border: 2px dashed #dee2e6;
}

.icon-circle {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.bg-primary-soft {
    background: rgba(0, 82, 255, 0.1);
}

.letter-spacing-1 {
    letter-spacing: 1px;
}

/* 7. My Lines Page (Premium Grid) */
.bg-deep-blue {
    background-color: var(--bg-light);
}

.icon-module-glass {
    width: 40px;
    height: 40px;
    background: white;
    border: 1px solid rgba(0, 82, 255, 0.1);
    border-radius: 18px 0 18px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: var(--primary-blue);
    box-shadow: var(--shadow-sm);
}

.row.mb-5 .col-12 h2 {
    font-size: 2rem;
    letter-spacing: -0.5px;
}

.line-card-premium {
    background: white;
    background-image:
        radial-gradient(at 0% 0%, rgba(0, 82, 255, 0.03) 0px, transparent 50%),
        radial-gradient(at 100% 100%, rgba(255, 140, 0, 0.02) 0px, transparent 50%);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    border: 2px solid rgba(0, 82, 255, 0.15);
    border-bottom: 2px solid rgba(0, 82, 255, 0.4);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    max-width: 320px;
    margin-inline-end: auto;
    position: relative;
    padding: 10px;
}

/* Leaf Design (Matching User's Top-Right & Bottom-Left Rounded request) */
.line-card-premium {
    border-radius: 0 40px 0 40px !important;
}

.line-card-premium:hover {
    border-color: var(--primary-blue);
    border-width: 2px;
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 82, 255, 0.15);
}

/* Status specific bottom borders like bundle types */
.line-card-premium.status-active {
    border-bottom-color: rgba(16, 185, 129, 0.8);
}

.line-card-premium.status-not_activated {
    border-bottom-color: rgba(56, 189, 248, 0.8);
}

.line-card-premium.status-expired {
    border-bottom-color: rgba(239, 68, 68, 0.8);
}

.country-tag {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--primary-blue);
    letter-spacing: 1px;
}

.status-badge {
    padding: 6px 12px;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
    display: flex;
    align-items: center;
}

.status-active {
    background: #e8f5e9;
    color: #2e7d32;
}

.status-pending {
    background: #fff8e1;
    color: #f57f17;
}

.status-expired {
    background: #ffebee;
    color: #c62828;
}

.progress-premium {
    height: 10px;
    background: #f0f4f8;
    border-radius: 20px;
    overflow: hidden;
    position: relative;
}

.progress-bar-glow {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-blue), var(--secondary-blue));
    border-radius: 20px;
    box-shadow: 0 0 10px rgba(0, 82, 255, 0.2);
    transition: width 1s ease-in-out;
}

.info-item-glass {
    background: #f8faff;
    border: 1px solid rgba(0, 82, 255, 0.05);
    border-radius: 0 12px 0 12px;
    padding: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.info-item-glass i {
    color: var(--primary-blue);
    font-size: 1.1rem;
}

.info-item-glass .label {
    font-size: 0.65rem;
    color: var(--text-muted);
    margin-bottom: 0px;
}

.info-item-glass .value {
    font-size: 0.85rem;
    color: var(--text-dark);
    margin-bottom: 0px;
    font-weight: 600;
}

.iccid-box {
    background: #f1f3f5;
    border-radius: 0 10px 0 10px;
    padding: 8px 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.iccid-box code {
    font-size: 0.8rem;
    letter-spacing: 0.5px;
    color: var(--primary-blue);
}

.btn-copy-mini {
    background: transparent;
    border: none;
    color: var(--text-muted);
    transition: all 0.2s;
}

.btn-copy-mini:hover {
    color: var(--primary-blue);
}

.empty-state-glass {
    background: white;
    border: 2px dashed rgba(0, 82, 255, 0.1);
    border-radius: 0 30px 0 30px;
    padding: 60px 20px;
    box-shadow: var(--shadow-sm);
}

/* Modal Styling */
.custom-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2150;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    visibility: hidden;
    opacity: 0;
    padding-top: 60px;
}

.custom-modal.active {
    visibility: visible;
    opacity: 1;
}

.modal-backdrop {
    position: absolute;
    width: 100%;
    height: 100%;
    background: rgba(0, 20, 50, 0.4);
    backdrop-filter: blur(5px);
}

.custom-modal .modal-content {
    max-width: 650px;
    width: 95%;
    background: white !important;
    border-radius: 24px;
    padding: 25px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
    transform: translateY(20px);
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    z-index: 1051;
}

.custom-modal.active .modal-content {
    transform: translateY(0);
    opacity: 1;
}

.btn-close-modal {
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 1.5rem;
}

.manual-install input,
.manual-install textarea {
    background: #f8faff !important;
    color: var(--text-dark) !important;
    border: 1px solid #e0e6ed !important;
    font-size: 0.9rem !important;
    letter-spacing: 0.5px;
}

.manual-install input {
    height: 38px !important;
}

.step-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    background: linear-gradient(135deg, var(--primary-blue), var(--secondary-blue));
    color: white;
    border-radius: 50%;
    font-size: 0.8rem;
    font-weight: 700;
}

.install-step {
    transition: all 0.2s ease;
}

.install-step:hover {
    transform: translateX(-3px);
    box-shadow: 0 2px 8px rgba(0, 82, 255, 0.1);
}

/* Premium Tabs Design */
.premium-tabs-container {
    display: flex;
    justify-content: center;
    gap: 1rem;
    background: white;
    padding: 0.5rem;
    border-radius: 0 30px 0 30px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    max-width: 500px;
    margin: 0 auto;
}

.premium-tab {
    flex: 1;
    background: transparent;
    border: none;
    padding: 0.75rem 2rem;
    border-radius: 0 25px 0 25px;
    font-weight: 600;
    font-size: 0.95rem;
    color: #6c757d;
    transition: all 0.3s ease;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.premium-tab i {
    font-size: 1rem;
    transition: transform 0.3s ease;
}

.premium-tab:hover {
    color: var(--primary-blue);
    background: rgba(0, 86, 179, 0.05);
}

.premium-tab.active {
    background: linear-gradient(135deg, var(--primary-blue), var(--secondary-blue));
    color: white;
    box-shadow: 0 4px 15px rgba(0, 86, 179, 0.3);
}

.premium-tab.active i {
    transform: scale(1.1);
}

/* Transaction Cards */
.transaction-card {
    background: white;
    border-radius: 0 16px 0 16px;
    padding: 1.25rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 86, 179, 0.1);
}

.transaction-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 86, 179, 0.15);
}

.cashback-card {
    border-left: 4px solid #28a745;
}

.transaction-details {
    padding-top: 0.75rem;
    border-top: 1px solid #f0f0f0;
    margin-top: 0.75rem;
    font-size: 0.9rem;
}

/* Financial Summary Cards */
.summary-card {
    background: white;
    border-radius: 20px 0 20px 0;
    padding: 1.25rem 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.06);
    border: 1px solid rgba(0, 0, 0, 0.04);
    transition: all 0.3s ease;
    height: 100%;
}

.summary-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.summary-icon {
    width: 50px;
    height: 50px;
    border-radius: 14px 0 14px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    flex-shrink: 0;
}

.summary-purchases .summary-icon {
    background: linear-gradient(135deg, rgba(0, 82, 255, 0.1) 0%, rgba(0, 82, 255, 0.05) 100%);
    color: var(--primary-blue);
}

.summary-refunds .summary-icon {
    background: linear-gradient(135deg, rgba(255, 107, 0, 0.1) 0%, rgba(255, 107, 0, 0.05) 100%);
    color: var(--accent-orange);
}

.summary-net .summary-icon {
    background: linear-gradient(135deg, rgba(40, 167, 69, 0.1) 0%, rgba(40, 167, 69, 0.05) 100%);
    color: #28a745;
}

.summary-content {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.summary-label {
    font-size: 0.8rem;
    color: var(--text-muted);
    font-weight: 500;
    margin-bottom: 4px;
}

.summary-value {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text-dark);
    line-height: 1.2;
}

.summary-purchases .summary-value {
    color: var(--primary-blue);
}

.summary-refunds .summary-value {
    color: var(--accent-orange);
}

.summary-net .summary-value {
    color: #28a745;
}

.summary-cashback .summary-icon {
    background: linear-gradient(135deg, rgba(156, 39, 176, 0.1) 0%, rgba(156, 39, 176, 0.05) 100%);
    color: #9c27b0;
}

.summary-cashback .summary-value {
    color: #9c27b0;
}

@media (max-width: 768px) {
    .summary-card {
        padding: 1rem 1.25rem;
    }

    .summary-icon {
        width: 45px;
        height: 45px;
        font-size: 1.1rem;
    }

    .summary-value {
        font-size: 1.2rem;
    }
}

/* Contact Page Styles */
.contact-form-card {
    background: white;
    border-radius: 40px 0 40px 0;
    padding: 2.5rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(0, 86, 179, 0.1);
}

.contact-form-card .form-control,
.contact-form-card .form-select,
.contact-form-card textarea {
    border-radius: 12px 0 12px 0 !important;
    border: 2px solid #e0e0e0;
    padding: 0.75rem 1rem;
    transition: all 0.3s ease;
}

.contact-form-card .form-control:focus,
.contact-form-card .form-select:focus {
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 0.2rem rgba(0, 86, 179, 0.1);
}

.contact-info-card {
    background: white;
    border-radius: 40px 0 40px 0;
    padding: 2.5rem 2rem;
    box-shadow: 0 10px 30px rgba(0, 82, 255, 0.05);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    border: 1px solid rgba(0, 82, 255, 0.08);
    position: relative;
    overflow: hidden;
}

.contact-info-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--primary-blue);
    opacity: 0;
    transition: var(--transition);
}

.contact-info-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 82, 255, 0.12);
    border-color: rgba(0, 82, 255, 0.2);
}

.contact-info-card:hover::before {
    opacity: 1;
}

.icon-circle {
    width: 45px;
    height: 45px;
    border-radius: 20px 50% 20px 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    color: white;
    font-size: 1.8rem;
    transition: all 0.4s ease;
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1);
}

.contact-info-card:hover .icon-circle {
    transform: rotate(10deg) scale(1.1);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.15);
}

.btn-primary-gradient {
    background: linear-gradient(135deg, var(--primary-blue), var(--secondary-blue));
    border: none;
    color: white;
    font-weight: 700;
    padding: 1rem 2.5rem;
    border-radius: 0 16px 0 16px;
    transition: all 0.3s ease;
    box-shadow: 0 10px 20px rgba(0, 82, 255, 0.2);
}

.btn-primary-gradient:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(0, 82, 255, 0.3);
}

.btn-leaf {
    border-radius: 0 15px 0 15px !important;
}

.btn-sm-leaf {
    border-radius: 0 10px 0 10px !important;
    padding: 4px 12px !important;
    font-size: 0.8rem !important;
    height: auto !important;
}

.pulse-hover:hover {
    animation: pulse 0.5s;
}

@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.02);
    }
}

/* Premium Auth Modal Enhancements */
.auth-separator {
    display: flex;
    align-items: center;
    text-align: center;
    margin: 25px 0;
    color: var(--text-muted);
    font-size: 0.85rem;
    font-weight: 500;
}

.auth-separator::before,
.auth-separator::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.auth-separator:not(:empty)::before {
    margin-right: .5em;
}

.auth-separator:not(:empty)::after {
    margin-left: .5em;
}

[dir="rtl"] .auth-separator:not(:empty)::before {
    margin-right: 0;
    margin-left: .5em;
}

[dir="rtl"] .auth-separator:not(:empty)::after {
    margin-left: 0;
    margin-right: .5em;
}

.google-btn-wrapper {
    transition: var(--transition);
    border-radius: 12px 0 12px 0;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    border: 1px solid #e0e6ed;
}

.google-btn-wrapper:hover {
    box-shadow: 0 6px 16px rgba(0, 82, 255, 0.1);
    transform: translateY(-1px);
    border-color: var(--primary-blue);
}

/* Custom Auth Modal Polish */
.glass-modal h2 {
    font-weight: 800;
    letter-spacing: -0.5px;
    margin-bottom: 30px !important;
}

.auth-form-footer {
    margin-top: 25px;
    font-size: 0.9rem;
}

.auth-form-footer a {
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
}

.auth-form-footer a:hover {
    color: var(--primary-blue) !important;
    text-decoration: underline;
}

.modal-content.glass-modal {
    border: 1px solid rgba(0, 82, 255, 0.1);
    background: rgba(255, 255, 255, 0.98);
}

.close-modal {
    position: absolute;
    top: 20px;
    right: 20px;
    background: #f8faff;
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 8px 0 8px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: var(--text-muted);
    cursor: pointer;
    transition: var(--transition);
    z-index: 10;
}

[dir="rtl"] .close-modal {
    right: auto;
    left: 20px;
}

.close-modal:hover {
    background: var(--primary-blue);
    color: white;
}

/* =============================================
   Bundle Card Type-Specific Colors
   ============================================= */

/* CSS Variables for bundle types */
:root {
    --bundle-local-color: rgba(0, 82, 255, 0.85);
    --bundle-regional-color: rgba(0, 31, 102, 0.85);
    --bundle-global-color: rgba(16, 185, 129, 0.85);
}

/* Base bundle card bottom border */
.bundle-card {
    border-bottom: 2px solid var(--bundle-local-color);
}

/* Local Bundle - Blue */
.bundle-card.type-local {
    border-bottom-color: var(--bundle-local-color);
}

.bundle-card.type-local .btn-buy {
    background: var(--bundle-local-color) !important;
    border-color: var(--bundle-local-color) !important;
}

.bundle-card.type-local .btn-buy:hover {
    background: rgba(0, 82, 255, 1) !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 82, 255, 0.3);
}

/* Regional Bundle - Dark Blue */
.bundle-card.type-regional {
    border-bottom-color: var(--bundle-regional-color);
}

.bundle-card.type-regional .btn-buy {
    background: var(--bundle-regional-color) !important;
    border-color: var(--bundle-regional-color) !important;
}

.bundle-card.type-regional .btn-buy:hover {
    background: rgba(0, 31, 102, 1) !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 31, 102, 0.3);
}

/* Global Bundle - Green */
.bundle-card.type-global {
    border-bottom-color: var(--bundle-global-color);
}

.bundle-card.type-global .btn-buy {
    background: var(--bundle-global-color) !important;
    border-color: var(--bundle-global-color) !important;
}

.bundle-card.type-global .btn-buy:hover {
    background: rgba(16, 185, 129, 1) !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

/* =============================================
   RESPONSIVE DESIGN - Mobile & Tablet Support
   ============================================= */

/* Very Small Devices (Portrait phones, under 400px) */
@media (max-width: 400px) {
    body {
        padding-top: 60px;
    }

    .glass-header .container {
        flex-wrap: wrap;
        gap: 8px;
    }

    .logo {
        flex: 1;
    }

    .brand-name {
        font-size: 1.1rem !important;
    }

    .header-nav {
        gap: 4px !important;
        flex-wrap: nowrap;
    }

    /* طھطµط؛ظٹط± ط¹ظ†ط§طµط± ط§ظ„ظ‚ط§ط¦ظ…ط© ظˆط§ظ„ط­ط³ط§ط¨ */
    .user-wrapper .nav-item {
        padding: 8px 10px;
        min-height: 44px;
        min-width: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .user-wrapper .nav-item span {
        display: none;
    }

    /* طھطµط؛ظٹط± ظ…ظ†طھظ‚ظٹ ط§ظ„ظ„ط؛ط© ظˆط§ظ„ط¹ظ…ظ„ط© */
    .header-select {
        font-size: 0.7rem !important;
        padding: 5px 6px !important;
        padding-right: 18px !important;
        min-width: 45px !important;
    }

}

/* Extra Small Devices (Phones, 576px and down) */
@media (max-width: 576px) {
    body {
        padding-top: 70px;
    }

    .container {
        padding-left: 15px;
        padding-right: 15px;
    }

    /* Header Mobile */
    .header {
        padding: 10px 15px;
    }

    .brand-name {
        font-size: 1.3rem;
    }

    .header-nav {
        gap: 8px;
    }

    .nav-item {
        padding: 10px 12px;
        font-size: 0.85rem;
        min-height: 44px;
        min-width: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    /* ط¥ط®ظپط§ط، ط§ظ„ظ†طµ ظپظ‚ط· ظˆظ„ظٹط³ ط§ظ„ظ€ select */
    .nav-item>span:not(.header-select) {
        display: none;
    }

    /* ط§ظ„ط­ظپط§ط¸ ط¹ظ„ظ‰ ظ…ظ†طھظ‚ظٹ ط§ظ„ظ„ط؛ط© ظˆط§ظ„ط¹ظ…ظ„ط© */
    .header-select {
        font-size: 0.75rem;
        padding: 6px 8px;
        padding-right: 22px;
        min-width: 55px;
    }

    /* ط¥ط®ظپط§ط، ط§ظ„ط£ظٹظ‚ظˆظ†ط§طھ ط§ظ„ط¥ط¶ط§ظپظٹط© ظ„ظ„طھظˆظپظٹط± ظپظٹ ط§ظ„ظ…ط³ط§ط­ط© */
    .dropdown-wrapper>i {
        display: none;
    }

    /* Hero Section Mobile */
    .hero-section h1 {
        font-size: 2rem;
        line-height: 1.2;
    }

    .hero-section p {
        font-size: 1rem;
    }

    .search-box {
        padding: 10px 15px;
        flex-wrap: wrap;
    }

    .search-box input {
        font-size: 0.95rem;
    }

    /* Cards Grid Mobile */
    .regions-grid,
    .bundles-grid,
    .countries-grid {
        grid-template-columns: 1fr !important;
        gap: 16px;
    }

    .destination-card {
        padding: 20px;
    }

    .destination-card h3 {
        font-size: 1.1rem;
    }

    /* Bundle Cards Mobile */
    .bundle-card {
        padding: 15px;
    }

    .bundle-type-badge {
        font-size: 0.7rem;
        padding: 4px 10px;
    }

    .bundle-data span,
    .bundle-days span {
        font-size: 1rem;
    }

    .bundle-price {
        font-size: 1.3rem;
    }

    .btn-buy {
        padding: 10px 16px;
        font-size: 0.85rem;
    }

    /* Auth Modal Mobile */
    .glass-modal {
        width: 95% !important;
        max-width: 95% !important;
        padding: 25px 20px !important;
        margin: 10px;
    }

    .glass-modal h2 {
        font-size: 1.5rem !important;
    }

    .form-input {
        padding: 12px 14px;
        font-size: 0.95rem;
    }

    /* Footer Mobile */
    .footer {
        padding: 30px 15px 20px;
    }

    .footer-grid {
        grid-template-columns: 1fr !important;
        gap: 25px;
        text-align: center;
    }

    .footer-brand {
        text-align: center;
    }

    .footer-menu {
        justify-content: center;
    }

    /* Checkout Mobile */
    .checkout-grid {
        grid-template-columns: 1fr !important;
    }

    .order-summary-card {
        order: -1;
    }

    /* Profile Mobile */
    .profile-header {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }

    .profile-avatar {
        width: 80px;
        height: 80px;
    }

    /* Country Hero Mobile */
    .country-info {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }

    .country-flag {
        width: 80px !important;
        height: 55px !important;
    }

    .country-name {
        font-size: 1.5rem !important;
    }

    /* Back Link Mobile */
    .back-link {
        font-size: 0.85rem;
    }

    /* Filter Pills Mobile */
    .bundle-filters {
        flex-wrap: wrap;
        justify-content: center;
        gap: 8px;
    }

    .filter-pill {
        font-size: 0.85rem;
        padding: 10px 14px;
        min-height: 44px;
    }

    /* Profile Dropdown Mobile */
    .profile-dropdown {
        width: 200px;
        max-width: calc(100vw - 40px);
    }

    /* حسابي - توسيط القائمة */
    #profile-dropdown {
        left: 50%;
        right: auto;
        transform: translateX(-50%);
    }
}

/* Small Devices (Landscape Phones, 576px to 768px) */
@media (min-width: 576px) and (max-width: 768px) {

    .regions-grid,
    .countries-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .bundles-grid {
        grid-template-columns: 1fr;
    }

    .glass-modal {
        width: 85%;
        max-width: 450px;
    }
}

/* Medium Devices (Tablets, 768px to 992px) */
@media (min-width: 768px) and (max-width: 992px) {

    .regions-grid,
    .countries-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .bundles-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .checkout-grid {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Large Devices (Desktops, 992px and up) */
@media (min-width: 992px) {
    .regions-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .bundles-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .countries-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Extra Large Devices (Large Desktops, 1200px and up) */
@media (min-width: 1200px) {
    .container {
        max-width: 1200px;
    }

    .regions-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .bundles-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Touch Device Optimizations */
@media (hover: none) and (pointer: coarse) {

    .btn:hover,
    .destination-card:hover,
    .bundle-card:hover {
        transform: none;
    }

    .btn-buy:active {
        transform: scale(0.98);
    }

    .destination-card:active,
    .bundle-card:active {
        transform: scale(0.99);
    }
}

/* High DPI / Retina Displays */
@media (-webkit-min-device-pixel-ratio: 2),
(min-resolution: 192dpi) {

    .country-flag,
    .flag-icon {
        image-rendering: -webkit-optimize-contrast;
    }
}

/* Landscape Orientation for Mobile */
@media (max-height: 500px) and (orientation: landscape) {
    .hero-section {
        padding: 30px 0;
        min-height: auto;
    }

    .hero-section h1 {
        font-size: 1.8rem;
    }

    .glass-modal {
        max-height: 90vh;
        overflow-y: auto;
    }
}

/* Print Styles */
@media print {

    .header,
    .footer,
    .btn,
    .modal-overlay {
        display: none !important;
    }

    body {
        padding-top: 0;
    }
}

/* Safari iOS Fixes */
@supports (-webkit-touch-callout: none) {
    body {
        -webkit-overflow-scrolling: touch;
    }

    .glass-modal {
        -webkit-backdrop-filter: blur(20px);
        backdrop-filter: blur(20px);
    }
}

/* Floating AI Assistant Button */
.floating-ai-btn {
    position: fixed;
    bottom: 35%;
    /* بالثلث الاسفل */
    left: 30px;
    right: auto;
    /* Arabic / RTL default */
    z-index: 3000;
    width: 90px;
    height: 90px;
    /* خلفية متدرجة وتأثير زجاجي تماماً مثل كروت الموقع */
    background: #ffffff;
    background-image:
        radial-gradient(at 0% 0%, rgba(0, 82, 255, 0.05) 0px, transparent 50%),
        radial-gradient(at 100% 100%, rgba(255, 140, 0, 0.03) 0px, transparent 50%);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);

    border-radius: 30px 0 30px 0;
    box-shadow: 0 8px 32px rgba(0, 82, 255, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    border: 2px solid rgba(0, 82, 255, 0.15);
    /* نفس حدود كرت المناطق */
    cursor: pointer;
    animation: float-btn 3s infinite ease-in-out;
    padding: 10px;
    /* ترك مساحة بسيطة لإظهار الخلفية الجميلة */
    overflow: hidden;
}

[dir="ltr"] .floating-ai-btn {
    left: auto;
    right: 30px;
}

.floating-ai-btn img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    /* نستخدم contain هنا لكي تبرز الخلفية المتدرجة حول الأيقونة */
    border-radius: 20px 0 20px 0;
    /* Slightly smaller leaf for the internal image */
}

.floating-ai-btn:hover {
    transform: scale(1.1) translateY(-5px);
    box-shadow: 0 12px 40px rgba(0, 82, 255, 0.35);
    border-color: var(--primary-blue);
    /* العودة للأزرق الصريح عند التأشير */
}

.ai-tooltip {
    position: absolute;
    bottom: 110%;
    background: var(--text-dark);
    color: white;
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 0.8rem;
    font-weight: 600;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    pointer-events: none;
}

[dir="rtl"] .ai-tooltip {
    left: 0;
    right: auto;
}

[dir="ltr"] .ai-tooltip {
    right: 0;
    left: auto;
}

.floating-ai-btn:hover .ai-tooltip {
    opacity: 1;
    visibility: visible;
    bottom: 120%;
}

@keyframes float-btn {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

/* Response for small screens */
@media (max-width: 768px) {
    .floating-ai-btn {
        width: 80px;
        height: 80px;
        bottom: 25%;
        padding: 8px;
        /* تقليل الحشو في الجوال */
    }
}

/* ============================================
   Danger Zone - Account Deletion Section
   ============================================ */
.danger-zone {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.03), rgba(220, 38, 38, 0.05));
    border: 2px solid rgba(239, 68, 68, 0.2);
    border-radius: 20px 0 20px 0;
    padding: 25px 30px;
    margin-top: 40px;
    transition: all 0.3s ease;
}

.danger-zone:hover {
    border-color: rgba(239, 68, 68, 0.4);
    box-shadow: 0 8px 24px rgba(239, 68, 68, 0.12);
}

.danger-zone-desc {
    color: #7f1d1d;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 20px;
}

.btn-delete-account {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 24px;
    background: linear-gradient(135deg, #dc2626, #ef4444);
    color: white;
    border: none;
    border-radius: 12px 0 12px 0;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
}

.btn-delete-account:hover {
    background: linear-gradient(135deg, #b91c1c, #dc2626);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(239, 68, 68, 0.4);
}

.btn-delete-account:active {
    transform: translateY(0);
}

.btn-delete-account i {
    font-size: 1.1rem;
}

/* Responsive for Danger Zone */
@media (max-width: 768px) {
    .danger-zone {
        padding: 20px;
    }

    .danger-zone-desc {
        font-size: 0.9rem;
    }

    .btn-delete-account {
        width: 100%;
        justify-content: center;
        font-size: 0.9rem;
        padding: 14px 20px;
    }
}

/* Cookie Consent Banner */
.cookie-banner {
    position: fixed;
    bottom: 24px;
    left: 24px;
    right: 24px;
    z-index: 9999;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(0, 82, 255, 0.2);
    border-radius: 24px 0 24px 0;
    box-shadow: 0 15px 50px rgba(0, 82, 255, 0.15);
    padding: 24px;
    max-width: 1200px;
    margin: 0 auto;
    animation: cookieSlideUp 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
    transition: all 0.5s ease;
}

[dir="rtl"] .cookie-banner {
    text-align: right;
}

.cookie-banner-hide {
    opacity: 0;
    transform: translateY(30px) scale(0.95);
}

@keyframes cookieSlideUp {
    from {
        opacity: 0;
        transform: translateY(100%);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.cookie-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
}

.cookie-content {
    flex: 1;
}

.cookie-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--primary-blue);
    margin-bottom: 8px;
}

.cookie-text {
    font-size: 0.9rem;
    color: var(--text-dark);
    margin: 0;
}

.cookie-actions {
    display: flex;
    align-items: center;
    gap: 15px;
    white-space: nowrap;
}

.cookie-link {
    font-size: 0.9rem;
    color: var(--text-muted);
    text-decoration: underline;
    transition: var(--transition);
}

.cookie-link:hover {
    color: var(--primary-blue);
}

.cookie-btn {
    padding: 10px 24px;
    font-size: 0.9rem;
    font-weight: 600;
    border-radius: 12px 0 12px 0;
    cursor: pointer;
    transition: var(--transition);
    border: none;
}

.cookie-btn-primary {
    background: var(--primary-blue);
    color: white;
}

.cookie-btn-primary:hover {
    background: var(--secondary-blue);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 82, 255, 0.2);
}

.cookie-btn-outline {
    background: transparent;
    border: 1px solid rgba(0, 82, 255, 0.2);
    color: var(--primary-blue);
}

.cookie-btn-outline:hover {
    background: rgba(0, 82, 255, 0.05);
}

@media (max-width: 992px) {
    .cookie-container {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
    }

    .cookie-actions {
        width: 100%;
        flex-wrap: wrap;
        justify-content: flex-end;
    }
}

@media (max-width: 480px) {
    .cookie-banner {
        bottom: 15px;
        left: 15px;
        right: 15px;
        padding: 20px;
    }

    .cookie-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .cookie-btn {
        width: 100%;
        text-align: center;
    }
}

/* Password Validation Styles */
.password-requirements-list {
    list-style: none;
    padding: 0;
    margin: 10px 0;
    font-size: 0.85rem;
    text-align: start;
}

.password-requirements-list li {
    margin-bottom: 8px;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.password-requirements-list li i {
    width: 20px;
    height: 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 10px;
    border: 1.5px solid #e2e8f0;
    color: transparent;
    /* Hide check by default */
    background: #f8fafc;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.password-requirements-list li.valid {
    color: var(--text-dark);
    font-weight: 600;
}

.password-requirements-list li.valid i {
    background-color: #10B981;
    border-color: #10B981;
    color: white !important;
    /* White check */
    box-shadow: 0 0 10px rgba(16, 185, 129, 0.3);
}

.password-requirements-list li.valid i::before {
    content: "\f00c";
    /* FontAwesome check mark */
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
}

/* Fallback for invalid state to show a simple dot if check is not desired */
.password-requirements-list li:not(.valid) i::before {
    content: "\f111";
    /* FontAwesome circle */
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    font-size: 6px;
    color: #cbd5e1;
}

/* 22. Smart Travel Guide Section (AEO) */
.guide-section {
    padding: 60px 0;
    background: linear-gradient(180deg, #fff 0%, #f4f7ff 100%);
    margin-top: 40px;
}

.guide-container {
    max-width: 900px;
    margin: 0 auto;
}

.guide-header {
    margin-bottom: 40px;
    text-align: center;
}

.guide-title {
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: 15px;
    background: linear-gradient(135deg, var(--primary-blue), #00d2ff);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.guide-intro {
    font-size: 1.1rem;
    color: var(--text-muted);
    line-height: 1.7;
}

.guide-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
}

.guide-card {
    background: white;
    border: 1px solid rgba(0, 82, 255, 0.1);
    border-radius: 24px;
    padding: 25px;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.guide-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary-blue);
    box-shadow: var(--shadow-md);
}

.guide-card-icon {
    width: 50px;
    height: 50px;
    background: rgba(0, 82, 255, 0.05);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--primary-blue);
}

.guide-card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-dark);
    margin: 0;
}

.guide-card p {
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin: 0;
}

@media (max-width: 768px) {
    .guide-title {
        font-size: 1.8rem;
    }

    .guide-section {
        padding: 40px 15px;
    }
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 30px;
    /* Use logical property for RTL/LTR support */
    inset-inline-end: 30px !important;
    width: 45px;
    height: 45px;
    background-color: var(--accent-orange, #ff6b00);
    color: #fff;
    border-radius: 50%;
    text-align: center;
    line-height: 45px;
    font-size: 18px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    z-index: 999999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease-in-out;
    text-decoration: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Fallback for older browsers & direction precaution */
html[dir="rtl"] .back-to-top {
    left: 30px !important;
    right: auto !important;
}

html[dir="ltr"] .back-to-top {
    right: 30px !important;
    left: auto !important;
}

.back-to-top:hover {
    background-color: #333;
    transform: translateY(-5px);
    color: #fff;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.back-to-top.show {
    opacity: 1 !important;
    visibility: visible !important;
}

@media (max-width: 768px) {
    .back-to-top {
        bottom: 20px;
        inset-inline-end: 20px !important;
    }

    html[dir="rtl"] .back-to-top {
        left: 20px !important;
        right: auto !important;
    }

    html[dir="ltr"] .back-to-top {
        right: 20px !important;
        left: auto !important;
    }
}