/* ==========================================
   إعدادات عامة
========================================== */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Tajawal', sans-serif;
}

body, html {
    width: 100%;
    height: 100%;
    overflow-x: hidden;
}

.bg-image {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('bg.jpg'); 
    background-size: cover;
    background-position: center top;
    background-repeat: no-repeat;
    z-index: -1;
}

.top-left-logo {
    position: fixed;
    top: 20px;
    left: 20px;
    width: 70px;
    height: 70px;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    z-index: 10;
}

.app-container {
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
    padding: 20px;
    position: relative;
    z-index: 1;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.spacer { height: 35vh; }

.section {
    display: none;
    animation: fadeIn 0.4s ease-in-out;
}
.section.active { display: block; }

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.white-box {
    background-color: #ffffff;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.15);
    margin-bottom: 20px;
}

.box-title {
    font-size: 1.2rem;
    color: #1e3a8a;
    margin-bottom: 20px;
    font-weight: 700;
    text-align: center;
}

/* ==========================================
   أزرار نوع الرحلة (ذهاب / ذهاب وعودة)
========================================== */
.trip-type-toggle {
    display: flex;
    background: #f1f5f9;
    border-radius: 10px;
    margin-bottom: 20px;
    padding: 5px;
}
.type-btn {
    flex: 1;
    padding: 12px;
    border: none;
    background: transparent;
    border-radius: 8px;
    font-weight: 800;
    font-size: 1rem;
    color: #475569;
    cursor: pointer;
    transition: 0.3s;
}
.type-btn.active {
    background: #10b981;
    color: #fff;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

/* ==========================================
   الفورم والخانات وزرار التبديل
========================================== */
.form-row {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
}
.form-group {
    flex: 1;
    display: flex;
    flex-direction: column;
}
.form-group label {
    font-size: 0.9rem;
    font-weight: 700;
    color: #334155;
    margin-bottom: 8px;
}

select, input {
    width: 100%;
    padding: 12px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    font-size: 0.95rem;
    color: #0f172a;
    background-color: #f8fafc;
    outline: none;
    transition: all 0.3s;
}

select:focus, input:focus {
    border-color: #2563eb;
    background-color: #fff;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.swap-btn-container {
    display: flex;
    justify-content: center;
    margin: -10px 0 5px 0;
    position: relative;
    z-index: 2;
}
#btn-swap-locations {
    background: #1e3a8a;
    color: white;
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    transition: 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}
#btn-swap-locations:hover { transform: rotate(180deg); }

.main-btn {
    width: 100%;
    background-color: #10b981; 
    color: white;
    border: none;
    padding: 14px;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    margin-top: 10px;
    transition: background 0.3s;
}
.main-btn:hover { background-color: #059669; }
.main-btn:disabled { background-color: #94a3b8; cursor: not-allowed; }

.error-msg {
    color: #ef4444;
    font-size: 0.8rem;
    margin-top: 5px;
    display: none;
}

/* ==========================================
   شريط اللوجوهات البيضاوي (Marquee)
========================================== */
.marquee-wrapper {
    width: 95%;
    margin: 15px auto 0;
    overflow: hidden;
    background: #fff;
    border-radius: 50px; 
    padding: 10px 0;
    box-shadow: 0 4px 12px rgba(0,0,0,0.06);
    white-space: nowrap;
    direction: ltr; 
    border: 1px solid #e2e8f0;
}
.marquee-content {
    display: inline-block;
    animation: marquee 18s linear infinite;
}
.marquee-content img {
    height: 25px;
    margin: 0 15px;
    border-radius: 4px;
    object-fit: contain;
    vertical-align: middle;
}
@keyframes marquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* ==========================================
   مربع التواصل والأيقونات
========================================== */
.contact-box { text-align: center; }
.contact-text { font-size: 1rem; font-weight: 700; color: #1e293b; margin-bottom: 15px; }
.phone-number { color: #2563eb; display: inline-block; }
.social-icons { display: flex; justify-content: center; gap: 20px; }
.icon { width: 45px; height: 45px; display: flex; align-items: center; justify-content: center; border-radius: 50%; color: white; text-decoration: none; font-size: 1.3rem; transition: transform 0.3s; }
.icon:hover { transform: scale(1.1); }
.icon.fb { background-color: #1877F2; }
.icon.ig { background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%); }
.icon.wa { background-color: #25D366; }
.legal-links { margin-top: 15px; font-size: 0.85rem; font-weight: 600; }
.legal-links a { color: #64748b; text-decoration: none; transition: 0.2s; }
.legal-links a:hover { color: #1e3a8a; }

/* ==========================================
   زر الرجوع والهيدر الداخلي
========================================== */
.header-with-back {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
}
.back-btn {
    background: #ffffff;
    border: 1px solid #cbd5e1;
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 800;
    color: #475569;
    cursor: pointer;
    display: inline-block;
    transition: 0.3s;
}
.back-btn:hover { background: #f1f5f9; }

/* ==========================================
   كروت الرحلات المتاحة (التاريخ فوق الساعة)
========================================== */
.trip-card {
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    padding: 15px;
    margin-bottom: 15px;
    position: relative;
    background: #fdfdfd;
}
.trip-route {
    font-weight: 700;
    color: #334155;
    margin-bottom: 15px;
    line-height: 1.5;
}
.trip-date-display {
    font-size: 1.2rem;
    font-weight: 900;
    color: #000;
    margin-bottom: 4px;
}
.trip-time-display {
    font-size: 1rem;
    font-weight: 700;
    color: #64748b;
}
.trip-price {
    position: absolute;
    left: 15px;
    top: 15px;
    font-size: 1.3rem;
    font-weight: 900;
    color: #ef4444;
}
.trip-price span { font-size: 0.8rem; color: #64748b; }
.btn-select-trip {
    width: 100%;
    background-color: #fff;
    color: #d97706; 
    border: 2px solid #d97706;
    padding: 10px;
    border-radius: 8px;
    font-weight: 800;
    font-size: 1.05rem;
    margin-top: 15px;
    cursor: pointer;
    transition: 0.3s;
}
.btn-select-trip:hover { background-color: #d97706; color: #fff; }

/* ==========================================
   صفحة المراجعة (Review Page)
========================================== */
.review-card {
    background: #f8fafc;
    padding: 20px;
    border-radius: 12px;
    border: 1px dashed #cbd5e1;
    margin-bottom: 20px;
    font-size: 1rem;
    line-height: 1.8;
}
.review-card strong { color: #334155; }
.total-price-display {
    text-align: center;
    margin-bottom: 20px;
    background: #fef2f2;
    padding: 15px;
    border-radius: 12px;
    border: 2px solid #fecaca;
}
.total-label { font-size: 1.1rem; font-weight: 800; color: #7f1d1d; }
.total-amount { font-size: 2.2rem; font-weight: 900; color: #dc2626; }

/* ==========================================
   طرق الدفع وتفاصيلها
========================================== */
.payment-options { display: flex; flex-direction: column; gap: 15px; margin-bottom: 20px; }
.payment-card { cursor: pointer; }
.payment-card input { display: none; }
.card-content {
    display: flex; align-items: center; padding: 15px;
    border: 2px solid #e2e8f0; border-radius: 10px; transition: 0.3s; background: #f8fafc;
}
.payment-card input:checked + .card-content { border-color: #2563eb; background: #eff6ff; }
.pay-name { font-weight: 800; color: #1e293b; flex: 1; font-size: 1.05rem; }
.pay-en { font-size: 0.85rem; color: #64748b; margin-left: 15px; }
.pay-icon { font-size: 1.5rem; margin-right: 15px; }
.pay-icon.vf { color: #e60000; }
.pay-icon.insta { color: #8b5cf6; }

/* ==========================================
   تفاصيل الدفع النهائية (سكرين الدفع)
========================================== */
.payment-details-text {
    background: #f1f5f9;
    padding: 18px;
    border-radius: 10px;
    margin-bottom: 20px;
    line-height: 1.8;
    border: 1px solid #e2e8f0;
}
.payment-details-text div { color: #334155; font-size: 1.05rem; }
.payment-details-text b { font-weight: 900; color: #0f172a; font-size: 1.15rem; }

.insta-alert { background: #fef08a; padding: 12px; border-radius: 8px; font-size: 0.95rem; font-weight: 800; color: #854d0e; margin-bottom: 15px; }
.whatsapp-upload { text-align: center; margin-bottom: 25px; }
.upload-title { font-weight: 800; margin-bottom: 10px; color: #1e293b; font-size: 1.1rem; }
.sender-phone-input { margin-bottom: 15px; text-align: center; font-weight: bold; border: 2px solid #cbd5e1; }
.sender-phone-input:focus { border-color: #25D366; box-shadow: 0 0 0 3px rgba(37, 211, 102, 0.2); }
.wa-btn { display: inline-block; background: #25D366; color: white; padding: 12px 20px; border-radius: 8px; text-decoration: none; font-weight: 800; font-size: 1.05rem; }

.notes-section { background: #fffbeb; border: 1px solid #fde68a; padding: 20px; border-radius: 10px; margin-bottom: 20px; position: relative; }
.notes-icon { position: absolute; top: -12px; right: 20px; background: #f59e0b; color: white; width: 28px; height: 28px; display: flex; align-items: center; justify-content: center; border-radius: 50%; font-size: 0.9rem; }
.notes-text { font-size: 0.9rem; color: #92400e; line-height: 1.7; font-weight: 700; }
.thank-you-msg { text-align: center; color: #10b981; font-weight: 900; font-size: 1.15rem; border-top: 1px solid #e2e8f0; padding-top: 15px; }

@media (max-width: 480px) { .form-row { flex-direction: column; } }

/* ==========================================
   زر النمط الليلي الدائري 
========================================== */
.dark-mode-toggle { 
    background: rgba(255, 255, 255, 0.95); border: none; width: 42px; height: 42px; border-radius: 50%; cursor: pointer; display: flex; align-items: center; justify-content: center; font-size: 1.2rem; color: #1f2937; box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15); transition: all 0.3s ease; z-index: 100; flex-shrink: 0;
}
.dark-mode-toggle:hover { transform: scale(1.08); background: #ffffff; }
.main-dark-btn { position: absolute; top: 20px; right: 20px; }

/* ==========================================
   إصلاح ألوان الوضع الليلي (Dark Mode) بالكامل
========================================== */
body.dark-mode { background-color: #0f172a; color: #f8fafc; }
body.dark-mode .white-box { background: #1e293b; color: #f8fafc; box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5); }
body.dark-mode .box-title { color: #60a5fa; }
body.dark-mode label, body.dark-mode .contact-text { color: #cbd5e1; }
body.dark-mode select, body.dark-mode input { background-color: #334155; color: #ffffff; border-color: #475569; }

body.dark-mode .marquee-wrapper { background: #1e293b; border-color: #334155; box-shadow: 0 4px 12px rgba(0,0,0,0.3); }
body.dark-mode .trip-type-toggle { background: #334155; }
body.dark-mode .type-btn { color: #cbd5e1; }
body.dark-mode .type-btn.active { background: #10b981; color: #fff; }

body.dark-mode .trip-card { background: #0f172a; border-color: #334155; }
body.dark-mode .trip-route { color: #e2e8f0; }
body.dark-mode .trip-date-display { color: #f8fafc; }
body.dark-mode .trip-time-display { color: #94a3b8; }
body.dark-mode .trip-price span { color: #94a3b8; }

body.dark-mode .review-card { background: #0f172a; border-color: #334155; color: #e2e8f0; }
body.dark-mode .review-card strong { color: #f8fafc; }
body.dark-mode .total-price-display { background: #450a0a; border-color: #7f1d1d; }
body.dark-mode .total-label { color: #fca5a5; }
body.dark-mode .total-amount { color: #f87171; }

body.dark-mode .card-content { background: #0f172a; border-color: #334155; }
body.dark-mode .pay-name { color: #e2e8f0; }
body.dark-mode .payment-card input:checked + .card-content { background: #1e3a8a; border-color: #3b82f6; }

/* إصلاح الألوان الخفية في الدفع النهائي للوضع الليلي */
body.dark-mode .payment-details-text { background: #0f172a; border-color: #334155; }
body.dark-mode .payment-details-text div { color: #cbd5e1; }
body.dark-mode .payment-details-text b { color: #f8fafc; }

body.dark-mode .notes-section { background: #334155; border-color: #475569; }
body.dark-mode .notes-text { color: #f1f5f9; }
body.dark-mode .upload-title { color: #e2e8f0; }

/* ==========================================
   شريط مكافآت ونقاط الولاء (Royal Indigo Theme)
========================================== */
.loyalty-marquee-bar {
    width: 100%;
    overflow: hidden;
    background: #eef2ff; /* خلفية بنفسجي فاتح جداً */
    border: 1px solid #a5b4fc; /* إطار نيلي */
    border-radius: 50px;
    padding: 10px 0;
    margin-bottom: 16px;
    white-space: nowrap !important;
    direction: ltr; 
    box-shadow: 0 3px 10px rgba(99, 102, 241, 0.15);
}

.loyalty-marquee-content {
    display: inline-flex !important;
    align-items: center;
    white-space: nowrap !important;
    /* ضبط السرعة لتكون مريحة للقراءة (25 ثانية) */
    animation: loyaltyScroll 25s linear infinite;
}

/* إيقاف الحركة مؤقتاً لما العميل يحط صباعه أو الماوس على الشريط عشان يقرأ براحته */
.loyalty-marquee-bar:hover .loyalty-marquee-content {
    animation-play-state: paused;
}

.loyalty-item {
    font-size: 0.85rem;
    font-weight: 800;
    color: #3730a3; /* كحلي/نيلي داكن */
    direction: rtl; /* القراءة من اليمين لليسار لكل جملة */
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0 12px;
    white-space: nowrap !important;
    flex-shrink: 0;
}

.loyalty-item i {
    color: #6366f1; /* لون الأيقونات (بنفسجي ساطع) */
}

.loyalty-divider {
    color: #818cf8;
    opacity: 0.6;
    font-size: 0.75rem;
    margin: 0 4px;
}

@keyframes loyaltyScroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* ------------------------------------------
   التوافق التام مع الوضع الليلي (Dark Mode)
------------------------------------------ */
body.dark-mode .loyalty-marquee-bar {
    background: #312e81; /* خلفية ليلي ملكي داكن */
    border-color: #4f46e5;
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.4);
}

body.dark-mode .loyalty-item {
    color: #e0e7ff; /* أبيض مزرق خفيف */
}

body.dark-mode .loyalty-item i {
    color: #a5b4fc;
}

body.dark-mode .loyalty-divider {
    color: #818cf8;
}

/* ==========================================
   كارت الرحلات الجديد (Mobile Optimized)
========================================== */
.modern-trip-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 18px;
    margin-bottom: 16px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.04);
    display: flex;
    flex-direction: column;
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 14px;
    margin-bottom: 14px;
    border-bottom: 1px dashed #cbd5e1;
}

/* تكبير التاريخ والساعة */
.badge-dt {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 1.15rem; /* خط كبير */
    font-weight: 800;
    color: #334155;
}
.badge-dt i { color: #4f46e5; }

.card-body-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 18px;
}

/* مسار الرحلة على اليمين */
.route-container {
    position: relative;
    padding-right: 22px;
    flex: 1;
}
.route-point { margin-bottom: 16px; }
.route-point:last-child { margin-bottom: 0; }

.dot-from {
    position: absolute; right: 0; top: 3px;
    width: 14px; height: 14px; border-radius: 50%;
    background: #3b82f6; border: 2px solid #eff6ff; z-index: 2;
}
.dot-to {
    position: absolute; right: 0; bottom: 3px;
    width: 14px; height: 14px; border-radius: 50%;
    background: #ef4444; border: 2px solid #fef2f2; z-index: 2;
}
.route-line {
    position: absolute; right: 6px; top: 12px; bottom: 12px;
    width: 2px; background: #cbd5e1; z-index: 1;
}

.route-text { font-size: 0.95rem; color: #64748b; }
.route-text strong { 
    font-size: 1.05rem; 
    color: #1e293b; 
    display: block; 
    margin-top: 4px; 
}

/* السعر في المساحة الفاضية على الشمال */
.price-section {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    padding-right: 10px;
}
.price-pill {
    background: #f0fdf4;
    border: 2px solid #bbf7d0;
    color: #16a34a;
    padding: 10px 18px;
    border-radius: 12px;
    font-size: 1.4rem;
    font-weight: 900;
    display: flex;
    flex-direction: column;
    align-items: center;
    line-height: 1.1;
    box-shadow: 0 4px 10px rgba(22, 163, 74, 0.1);
}
.price-cur { font-size: 0.85rem; font-weight: 800; opacity: 0.9; }

/* زرار عرضي كامل لسهولة الضغط */
.btn-select-modern {
    width: 100%;
    background: #4f46e5;
    color: #ffffff;
    border: none;
    padding: 14px;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 800;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: background 0.3s;
}
.btn-select-modern:hover { background: #3730a3; }

/* ==========================================
   الوضع الليلي لكارت الرحلات (Dark Mode)
========================================== */
body.dark-mode .modern-trip-card {
    background: #1e293b;
    border-color: #334155;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}
body.dark-mode .card-header { border-color: #475569; }
body.dark-mode .badge-dt { color: #f8fafc; }
body.dark-mode .badge-dt i { color: #818cf8; }
body.dark-mode .route-text { color: #94a3b8; }
body.dark-mode .route-text strong { color: #e2e8f0; }
body.dark-mode .dot-from { border-color: #0f172a; }
body.dark-mode .dot-to { border-color: #0f172a; }
body.dark-mode .route-line { background: #475569; }

/* ألوان السعر في الوضع الليلي */
body.dark-mode .price-pill {
    background: #064e3b;
    border-color: #059669;
    color: #a7f3d0;
}

/* ألوان الزرار في الوضع الليلي */
body.dark-mode .btn-select-modern {
    background: #6366f1;
}
body.dark-mode .btn-select-modern:hover {
    background: #4f46e5;
}

/* ==========================================
   تطوير صفحة بيانات المسافر
========================================== */
.booking-steps-bar {
    display: flex;
    justify-content: space-between;
    gap: 6px;
    margin-bottom: 12px;
}
.step-pill {
    flex: 1;
    text-align: center;
    padding: 6px 4px;
    border-radius: 20px;
    font-size: 0.78rem;
    font-weight: 800;
}
.step-done { background: #d1fae5; color: #065f46; }
.step-current { background: #4f46e5; color: #ffffff; box-shadow: 0 2px 6px rgba(79, 70, 229, 0.3); }
.step-next { background: #e2e8f0; color: #64748b; }

.passenger-mini-summary {
    background: #eef2ff;
    border: 1px solid #c7d2fe;
    border-radius: 12px;
    padding: 10px 14px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 14px;
    font-size: 0.88rem;
    font-weight: 800;
    color: #3730a3;
}
.passenger-mini-summary .price-tag {
    color: #16a34a;
    font-size: 1.1rem;
}

.label-with-hint {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 6px;
}
.input-hint {
    font-size: 0.74rem;
    color: #6366f1;
    font-weight: 700;
}

.input-with-icon {
    position: relative;
    display: flex;
    align-items: center;
}
.input-with-icon i {
    position: absolute;
    right: 14px;
    color: #94a3b8;
    font-size: 1rem;
}
.input-with-icon input {
    padding-right: 40px !important;
}

.privacy-trust-note {
    background: #f8fafc;
    border-radius: 8px;
    padding: 8px 12px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.78rem;
    font-weight: 700;
    color: #64748b;
    margin-top: 10px;
}
.privacy-trust-note i { color: #10b981; }

/* ------------------------------------------
   الوضع الليلي لصفحة البيانات
------------------------------------------ */
body.dark-mode .step-next { background: #334155; color: #94a3b8; }
body.dark-mode .passenger-mini-summary {
    background: #0f172a;
    border-color: #334155;
    color: #cbd5e1;
}
body.dark-mode .passenger-mini-summary .price-tag { color: #34d399; }
body.dark-mode .input-with-icon i { color: #64748b; }
body.dark-mode .privacy-trust-note {
    background: #0f172a;
    color: #94a3b8;
}

/* ==========================================
   تأثير الزجاج الشفاف (Glassmorphism) والأزرار الذهبية
========================================== */

/* 1. جعل المربع الأبيض شفاف في الوضع النهاري */
.white-box {
    background: rgba(255, 255, 255, 0.45) !important; /* شفافية بيضاء */
    backdrop-filter: blur(16px) !important; /* تأثير التغبيش الزجاجي */
    -webkit-backdrop-filter: blur(16px) !important; /* لدعم أجهزة الآيفون */
    border: 1px solid rgba(255, 255, 255, 0.6) !important;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1) !important;
}

/* 2. جعل المربع شفاف في الوضع الليلي */
body.dark-mode .white-box,
body.dark-mode .modern-trip-card,
body.dark-mode .form-card {
    background: rgba(15, 23, 42, 0.45) !important; /* شفافية كحلية داكنة */
    backdrop-filter: blur(16px) !important;
    -webkit-backdrop-filter: blur(16px) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3) !important;
}

/* 3. تعديل شكل الخانات (Inputs) لتتناسب مع الزجاج */
select, input, .form-group input, .styled-input {
    background-color: rgba(255, 255, 255, 0.6) !important;
    border: 1px solid rgba(255, 255, 255, 0.8) !important;
    color: #0f172a !important;
}
body.dark-mode select, body.dark-mode input, body.dark-mode .styled-input {
    background-color: rgba(0, 0, 0, 0.3) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    color: #f8fafc !important;
}

/* 4. تحويل كل الأزرار الخضراء إلى اللون الذهبي الفاخر */
.main-btn, 
.btn-select-modern, 
.btn-submit-review {
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%) !important; /* تدرج ذهبي */
    color: #0f172a !important; /* خط كحلي داكن لضمان أعلى وضوح على الذهبي */
    border: none !important;
    box-shadow: 0 4px 15px rgba(245, 158, 11, 0.25) !important;
    font-weight: 900 !important;
    text-shadow: none !important;
}

.main-btn:hover, 
.btn-select-modern:hover, 
.btn-submit-review:hover {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%) !important;
    transform: translateY(-2px);
}

/* 5. زرار (ذهاب فقط) النشط أعلى الحجز */
.type-btn.active {
    background: #f59e0b !important;
    color: #0f172a !important;
    box-shadow: 0 2px 8px rgba(245, 158, 11, 0.3) !important;
}
body.dark-mode .type-btn.active {
    background: #f59e0b !important;
    color: #0f172a !important;
}

/* 6. تعديل لون السعر داخل الكارت ليتماشى مع الثيم الذهبي */
.price-pill {
    background: rgba(254, 243, 199, 0.8) !important; /* خلفية ذهبية فاتحة شفافة */
    border: 1px solid #fde047 !important;
    color: #b45309 !important;
}
body.dark-mode .price-pill {
    background: rgba(120, 53, 15, 0.6) !important;
    border: 1px solid #92400e !important;
    color: #fde68a !important;
}

/* 7. تعديل علامة الصح في شريط خطوات الحجز (البيانات/المراجعة) */
.step-done {
    background: #fef3c7 !important;
    color: #d97706 !important;
}

/* ==========================================
   تصغير حجم مربع الحجز ومربع التواصل
========================================== */

/* تصغير العرض العام والشاشات */
.app-container {
    max-width: 460px !important; /* تقليل العرض من 600px إلى 460px ليكون ملموم وأنيق */
    padding: 12px !important;    /* تقليل المسافات الجانبية */
}

/* تصغير الحشو الداخلي للمربعين */
.white-box {
    padding: 16px 18px !important; /* تقليل الحشو الداخلي لضغط الارتفاع */
    margin-bottom: 14px !important;
}

/* تقليل حجم عنوان الحجز والمسافات */
.box-title {
    font-size: 1.05rem !important;
    margin-bottom: 12px !important;
}

/* تصغير ارتفاع خانات الاختيار والمدخلات */
select, input, .styled-input {
    padding: 9px 12px !important;
    font-size: 0.9rem !important;
}

.form-group label {
    font-size: 0.82rem !important;
    margin-bottom: 4px !important;
}

.form-row {
    margin-bottom: 8px !important;
    gap: 10px !important;
}

/* تصغير أزرار نوع الرحلة (ذهاب / ذهاب وعودة) */
.trip-type-toggle {
    margin-bottom: 12px !important;
    padding: 3px !important;
}
.type-btn {
    padding: 8px !important;
    font-size: 0.88rem !important;
}

/* تقليل ارتفاع زر الحجز الرئيسي */
.main-btn {
    padding: 11px !important;
    font-size: 1rem !important;
    margin-top: 6px !important;
}

/* تصغير مربع التواصل الاجتماعي */
.contact-box {
    padding: 14px 16px !important;
}

.contact-text {
    font-size: 0.88rem !important;
    margin-bottom: 10px !important;
}

.icon {
    width: 38px !important;
    height: 38px !important;
    font-size: 1.1rem !important;
}

.legal-links {
    margin-top: 10px !important;
    font-size: 0.78rem !important;
}

/* ========================================================
   تعديلات وحل مشاكل (زر التبديل، لون السعر، اللوجو، وشريط الحالة)
======================================================== */

/* ------------------------------------------
   1. تظبيط مكان زرار التبديل ليكون في المنتصف تماماً
------------------------------------------ */
#btn-swap-locations {
    position: relative;
    top: 6px; /* تنزيل الزرار لأسفل قليلاً ليصبح في المنتصف بين الخانتين */
    margin: 4px auto 12px auto;
    width: 34px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #1e3a8a !important;
    border: 3px solid #ffffff !important;
    color: white !important;
}
body.dark-mode #btn-swap-locations {
    background: #4f46e5 !important;
    border-color: rgba(15, 23, 42, 0.45) !important; /* لون حدود متوافق مع الزجاج */
}

/* ------------------------------------------
   2. تغيير لون السعر في كروت الرحلات إلى الأخضر
------------------------------------------ */
.price-pill {
    background: #d1fae5 !important; /* أخضر نعناعي فاتح */
    border: 2px solid #34d399 !important;
    color: #065f46 !important; /* أخضر داكن للرقم */
}
body.dark-mode .price-pill {
    background: #064e3b !important; /* أخضر ليلي داكن */
    border-color: #059669 !important;
    color: #a7f3d0 !important; /* أخضر فاتح للرقم */
}

/* ------------------------------------------
   3. حل مشكلة تداخل اللوجو في صفحة المراجعة (الصورة الخامسة)
------------------------------------------ */
/* نعطي شريط الهيدر (اللي فيه زرار الرجوع) أولوية ظهور عالية جداً فوق اللوجو */
.header-with-back {
    position: relative;
    z-index: 9999 !important; /* رقم عالي جداً ليكون فوق أي خلفية أو لوجو */
    background: rgba(255, 255, 255, 0.85); /* خلفية بيضاء شفافة لتغطية ما خلفها */
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 12px;
    padding: 10px 16px;
    margin-bottom: 15px;
}
body.dark-mode .header-with-back {
    background: rgba(15, 23, 42, 0.85);
}

/* ------------------------------------------
   4. تنسيقات شريط الحالة (Progress Bar) ليعمل في كل الصفحات
------------------------------------------ */
/* يتم إضافته في HTML صفحات المراجعة والدفع */
.booking-steps-bar {
    display: flex;
    justify-content: space-between;
    gap: 4px;
    margin-bottom: 16px;
    position: relative;
    z-index: 9999; /* لضمان ظهوره فوق اللوجو أيضاً */
}
.step-pill {
    flex: 1;
    text-align: center;
    padding: 6px 2px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 800;
    white-space: nowrap;
}
/* حالة تمت (أخضر بعلامة صح) */
.step-done { 
    background: #d1fae5 !important; 
    color: #065f46 !important; 
    border: 1px solid #34d399 !important;
}
body.dark-mode .step-done { 
    background: #064e3b !important; 
    color: #a7f3d0 !important; 
    border-color: #059669 !important;
}
/* حالة حالية (نشط - بنفسجي/أزرق) */
.step-current { 
    background: #4f46e5 !important; 
    color: #ffffff !important; 
    border: 1px solid #4f46e5 !important;
}
body.dark-mode .step-current {
    background: #6366f1 !important;
    border-color: #6366f1 !important;
}
/* حالة قادمة (رمادي باهت) */
.step-next { 
    background: rgba(255, 255, 255, 0.5) !important; 
    color: #64748b !important; 
}
body.dark-mode .step-next { 
    background: rgba(0, 0, 0, 0.3) !important; 
    color: #94a3b8 !important; 
}

/* ========================================================
   إصلاح التداخلات ومطابقة الهيدر وشريط الحالة
======================================================== */

/* حذف أي هيدر قديم أبيض كان يظهر أعلى الصفحة */
.header-with-back {
    display: none !important;
}

/* إخفاء لوجو الكلمة الكبيرة في الخلفية داخل كل الصفحات الداخلية */
.section:not(#section-home) ~ .main-header-logo,
.section:not(#section-home) .brand-title,
.section:not(#section-home) img.logo-bg {
    display: none !important;
}

/* تنسيق شريط الهيدر الموحد الزجاجي */
.sticky-top-bar {
    position: sticky !important;
    top: 8px !important;
    z-index: 1000 !important;
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    padding: 8px 14px !important;
    border-radius: 14px !important;
    margin-bottom: 12px !important;
    background: rgba(255, 255, 255, 0.45) !important;
    backdrop-filter: blur(14px) !important;
    -webkit-backdrop-filter: blur(14px) !important;
    border: 1px solid rgba(255, 255, 255, 0.6) !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08) !important;
}

body.dark-mode .sticky-top-bar {
    background: rgba(15, 23, 42, 0.55) !important;
    border-color: rgba(255, 255, 255, 0.1) !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.35) !important;
}

.top-bar-logo {
    width: 38px !important;
    height: 38px !important;
    border-radius: 50% !important;
    object-fit: cover !important;
}

.top-bar-actions {
    display: flex;
    gap: 8px;
    align-items: center;
}

/* كارت بيانات التحويل في صفحة الدفع */
.transfer-info-card {
    background: rgba(255, 255, 255, 0.6);
    border-radius: 12px;
    padding: 14px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    border: 1px solid rgba(255, 255, 255, 0.8);
}
body.dark-mode .transfer-info-card {
    background: rgba(0, 0, 0, 0.25);
    border-color: rgba(255, 255, 255, 0.1);
}
.transfer-info-card .t-row {
    display: flex;
    justify-content: space-between;
    font-size: 0.9rem;
}

/* زر إرسال واتساب المطور */
.btn-whatsapp-pay {
    width: 100%;
    background: #25d366 !important;
    color: white !important;
    border: none;
    border-radius: 10px;
    padding: 12px;
    font-size: 1.05rem;
    font-weight: 800;
    cursor: pointer;
    margin-top: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: 0 4px 14px rgba(37, 211, 102, 0.3);
}

/* كارت الملاحظات */
.payment-notes-card {
    background: #fffbeb;
    border: 1px solid #fde68a;
    border-radius: 12px;
    padding: 12px 14px;
    margin-top: 14px;
    font-size: 0.82rem;
    color: #92400e;
    line-height: 1.6;
}
body.dark-mode .payment-notes-card {
    background: rgba(120, 53, 15, 0.2);
    border-color: #78350f;
    color: #fde68a;
}
.payment-notes-card ol {
    padding-right: 18px;
    margin: 6px 0 0 0;
}

.final-thankyou-note {
    text-align: center;
    font-size: 0.85rem;
    font-weight: bold;
    color: #10b981;
    margin-top: 14px;
}

/* ========================================================
   تعديلات الهيدر: إلغاء التثبيت، عكس الأماكن، تكبير اللوجو، وإخفاء القديم
======================================================== */

/* 1. إخفاء اللوجو القديم الطاير نهائياً من كل الصفحات الداخلية */
img[src*="logo"]:not(.top-bar-logo), 
.logo-container:not(#section-home .logo-container),
.main-header-logo {
    display: none !important;
}

/* إظهاره فقط لو موجود في الصفحة الرئيسية (Home) */
#section-home img[src*="logo"]:not(.top-bar-logo) {
    display: block !important;
}

/* 2. إلغاء التثبيت وعكس الأماكن (الزراير يمين واللوجو شمال) */
.sticky-top-bar {
    position: relative !important; /* إلغاء التثبيت نهائياً */
    top: auto !important;
    flex-direction: row-reverse !important; /* يعكس الترتيب: اللوجو شمال والزراير يمين */
    margin-top: 15px !important;
}

/* 3. تكبير حجم اللوجو الجديد */
.top-bar-logo {
    width: 52px !important;
    height: 52px !important;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2) !important;
}

/* ========================================================
   1. تعديل ترتيب الأزرار: الرجوع على اليمين والوضع الليلي على يساره
======================================================== */
.top-bar-actions {
    display: flex !important;
    flex-direction: row-reverse !important; /* يجعل زر الرجوع في أقصى اليمين */
    gap: 8px !important;
    align-items: center !important;
}

/* ========================================================
   2. تحويل لون المبلغ الإجمالي وخلفيته في صفحة المراجعة إلى الأخضر
======================================================== */
/* صندوق الإجمالي */
.total-price-display {
    background: #ecfdf5 !important; /* خلفية خضراء نعناعية فاتحة ومريحة */
    border: 1.5px solid #a7f3d0 !important;
    border-radius: 12px !important;
}

/* عنوان "المبلغ الإجمالي" */
.total-label {
    color: #065f46 !important;
    font-weight: 700 !important;
}

/* رقم الفلوس الكبير (355 ج.م) */
#review-total-price,
.total-amount {
    color: #059669 !important; /* أخضر زمردي جذاب بدلاً من الأحمر */
    font-weight: 900 !important;
}

/* --------------------------------------------------------
   في الوضع الليلي (Dark Mode)
-------------------------------------------------------- */
body.dark-mode .total-price-display {
    background: rgba(6, 78, 59, 0.3) !important; /* أخضر غامق زجاجي */
    border-color: #059669 !important;
}

body.dark-mode .total-label {
    color: #6ee7b7 !important;
}

body.dark-mode #review-total-price,
body.dark-mode .total-amount {
    color: #34d399 !important; /* أخضر ناصع في الليل */
}

/* ========================================================
   تكبير وتوضيح عناوين خانات إدخال بيانات المسافر
======================================================== */

/* في الوضع النهاري */
#section-data .custom-input-group label,
#section-data .label-with-hint label {
    font-size: 1.05rem !important; /* تكبير حجم الخط */
    font-weight: 800 !important;   /* خط عريض */
    color: #0f172a !important;     /* كحلي داكن شديد الوضوح */
    margin-bottom: 6px !important;
    display: inline-block !important;
}

/* تكبير جملة التنبيه (7 حروف كحد أدنى) لتكون متناسقة */
#section-data .input-hint {
    font-size: 0.82rem !important;
    font-weight: 700 !important;
    color: #4338ca !important;     /* أزرق واضح */
}

/* --------------------------------------------------------
   في الوضع الليلي (Dark Mode)
-------------------------------------------------------- */
body.dark-mode #section-data .custom-input-group label,
body.dark-mode #section-data .label-with-hint label {
    color: #f8fafc !important;     /* أبيض ناصع عالي التباين */
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.6);
}

body.dark-mode #section-data .input-hint {
    color: #818cf8 !important;     /* بنفسجي فاتح ناصع */
}

/* ========================================================
   إعادة إظهار وتثبيت لوجو الصفحة الرئيسية فقط
======================================================== */

/* إعادة تفعيل ظهور اللوجو الدائري داخل الصفحة الرئيسية */
#section-home img.logo,
#section-home .logo-container img,
#section-home img[src*="logo"] {
    display: block !important;
    position: absolute !important;
    top: 18px !important;
    left: 20px !important;
    width: 60px !important;
    height: 60px !important;
    border-radius: 50% !important;
    object-fit: cover !important;
    z-index: 100 !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25) !important;
}

/* التأكد من ضبط موقع حاوية الصفحة الرئيسية النسبي */
#section-home {
    position: relative !important;
}

/* ========================================================
   زيادة المسافة بين حقول إدخال البيانات وتنسيق تنبيه الهاتف
======================================================== */

/* مسافة مريحة بين كل حقل والآخر لمنع الالتصاق */
#section-data .custom-input-group {
    margin-bottom: 20px !important;
}

/* تنسيق الحاوية لتوزيع العنوان يمين والتنبيه شمال */
#section-data .label-with-hint {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    margin-bottom: 8px !important;
}

/* تنسيق الجملة الإرشادية الصغيرة في الوضع النهاري */
#section-data .label-with-hint .input-hint {
    font-size: 0.8rem !important;
    font-weight: 600 !important;
    color: #4338ca !important;
}

/* في الوضع الليلي */
body.dark-mode #section-data .label-with-hint .input-hint {
    color: #818cf8 !important;
}
