/* ════════════════════════════════════════════════════════════════════
   مجمع أوشن الطبي — Ocean Medical Complex
   ════════════════════════════════════════════════════════════════════
   ⚠  قبل إضافة CSS جديد: ابحث في هذا الفهرس عن اسم الكلاس أولاً
   ⚠  Before adding CSS: search this index for the class name first
   ════════════════════════════════════════════════════════════════════

   GLOBALS
   01. CSS Variables (:root) ................................ ~6
   02. Reset / base styles .................................. ~20
   03. Container ............................................ ~195
   04. Buttons (.btn  .btn-sm  .btn-outline) ............... ~490
   05. Section titles, fade-in animation .................... ~730
   06. Forms — general (.form-group  .form-label) .......... ~744

   LAYOUT
   07. Header / Navbar / Drawer ............................. ~202
   08. LTR (English) fixes .................................. ~350
   09. Footer ............................................... ~418
   10. Mobile action bar .................................... ~1392
   11. Floating book button ................................. ~1415
   12. Insurance marquee .................................... ~1495

   PAGES — HOME
   13. Hero section ......................................... ~639
   14. Animated doctor/nurse images ......................... ~663
   15. Doctor cards (home, 2-column) ........................ ~621
   16. Home offers slider (.home-offers-slider) ............. ~4052
   17. Home slider overlay (.home-slide-overlay) ............ ~4326
   18. Home account cards ................................... ~4090

   PAGES — OFFERS  (/offers)
   19. Offers page wrapper .................................. ~2689
   20. ★ Main slider (.offer-slide  .offer-slides-track) ... ~2698
      ╔══ SHARED WITH HOME PAGE ══════════════════════════════════╗
      ║  .offer-slide  .offer-slide.active  .offer-slide-img      ║
      ║  .offer-slide-overlay  .offer-slide-arrow                 ║
      ║  .offer-banner-cta  .offer-banner-slide                   ║
      ║  DO NOT add duplicate rules for these — they break BOTH   ║
      ║  the offers page slider AND the home page slider.         ║
      ╚═══════════════════════════════════════════════════════════╝
   21. Promo grid ........................................... ~2860
   22. Layout: sidebar + content ............................ ~2890
   23. Category pills ....................................... ~2978
   24. "More" dropdown ...................................... ~3021
   25. Offers grid + cards (.offer-card) .................... ~3062
   26. Search & filter panel ................................ ~3190
   27. Derma sub-filter (.derma-sub-filter) ................. ~4273
   28. Offer detail page .................................... ~3760
   29. Empty state (.offers-empty-state) .................... ~4378

   PAGES — APPOINTMENT
   30. Appointment form ..................................... ~1584
   31. Date/time buttons (#specificDateBtn  .date-btn) ...... ~1219
   32. Appointment cards .................................... ~2060
   33. Booking For section .................................. ~2031

   PAGES — MY ACCOUNT
   34. Account dashboard .................................... ~1791
   35. Profile section ...................................... ~1882
   36. Family members ....................................... ~1926
   37. Medical reports ...................................... ~2138

   PAGES — OTHER
   38. About page ........................................... ~860
   39. Services page ........................................ ~887
   40. Social links page .................................... ~819
   41. Doctors / Clinics cards .............................. ~529

   CHATBOT
   42. Chat widget .......................................... ~2206
   43. Inline AI banner ..................................... ~2641
   44. AI hero button ....................................... ~2626

   RESPONSIVE
   45. Mobile 768px media queries ........................... ~950
   46. Offers page responsive ............................... ~3355

   ════════════════════════════════════════════════════════════════════ */

/* ---------- المتغيرات العامة (الألوان والظلال) ---------- */
:root {
    --primary-dark: #204289;      /* الأزرق الغامق للهيدر والفوتر والعناوين */
    --primary-light: #2b6cf5;     /* الأزرق الفاتح للأزرار والروابط */
    --green-whatsapp: #25D366;    /* أخضر واتساب */
    --gray-bg: #f3f4f6;           /* خلفية رمادية فاتحة للأقسام البديلة */
    --text-dark: #1f2937;         /* لون النص الأساسي */
    --text-light: #6b7280;        /* لون النص الثانوي */
    --white: #ffffff;
    --shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 10px 25px -5px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

/* ---------- إعادة تعيين الهوامش والمسافات ---------- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Readex Pro', 'Segoe UI', Tahoma, sans-serif;
    background-color: var(--white);
    color: var(--text-dark);
    line-height: 1.5;
    /* direction يتحكم فيه html[dir] عبر i18n.js */
    background-image: url('/assets/ocean_logo-removebg-preview.webp');
    background-repeat: no-repeat;
    background-position: center center;
    background-size: 60% auto;
    background-attachment: fixed;
    position: relative;
}

/* زر تبديل اللغة */
.lang-toggle {
    background: rgba(255,255,255,0.1);
    color: var(--white);
    border: 1px solid rgba(255,255,255,0.35);
    border-radius: 2rem;
    padding: 0.25rem 0.65rem;
    font-size: 1.35rem;
    line-height: 1;
    cursor: pointer;
    transition: var(--transition);
    font-family: inherit;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.lang-toggle:hover {
    background: rgba(255,255,255,0.25);
    transform: scale(1.1);
}

.lang-flag-img {
    width: 26px;
    height: 18px;
    object-fit: cover;
    border-radius: 3px;
    display: block;
    box-shadow: 0 1px 3px rgba(0,0,0,0.3);
    flex-shrink: 0;
}

/* القائمة المنسدلة لاختيار اللغة */
.lang-dropdown {
    position: relative;
}

.lang-caret {
    font-size: 0.6rem;
    opacity: 0.75;
    line-height: 1;
}

.lang-dropdown-menu {
    display: none;
    flex-direction: column;
    position: absolute;
    top: calc(100% + 8px);
    inset-inline-end: 0;
    background: var(--white);
    border-radius: 0.75rem;
    box-shadow: 0 8px 24px rgba(0,0,0,0.15);
    overflow: hidden;
    min-width: 130px;
    z-index: 1100;
}

.lang-dropdown-menu.open {
    display: flex;
}

.lang-option {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 0.9rem;
    background: none;
    border: none;
    cursor: pointer;
    font-family: inherit;
    font-size: 0.9rem;
    color: var(--text-dark);
    width: 100%;
    text-align: start;
    transition: background 0.2s;
}

.lang-option:hover {
    background: var(--gray-bg);
}

.lang-option.lang-option-active {
    background: #eef2ff;
    color: var(--primary-dark);
    font-weight: 700;
}

/* خيارات اللغة داخل الـ Drawer — مخفية على الديسكتوب */
.lang-nav-options {
    display: none;
}

/* رأس الـ Drawer — مخفي على الديسكتوب */
.drawer-header {
    display: none;
}

.lang-option-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    flex: 1;
    padding: 0.5rem 0.8rem;
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.25);
    border-radius: 2rem;
    cursor: pointer;
    font-family: inherit;
    font-size: 0.9rem;
    color: var(--white);
    transition: background 0.2s;
}

.lang-option-nav:hover {
    background: rgba(255,255,255,0.25);
}

.lang-option-nav.lang-option-active {
    background: rgba(255,255,255,0.28);
    border-color: rgba(255,255,255,0.6);
    font-weight: 700;
}

/* أيقونات الهيدر اليمين */
.header-actions {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

/* زر اللغة داخل القائمة (مخفي على الديسكتوب) */
.lang-toggle-nav {
    display: none;
}

/* طبقة شفافة فوق الخلفية لتخفيف العلامة المائية أكثر */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.92);
    pointer-events: none;
    z-index: -1;
}

/* ---------- الحاوية الرئيسية ---------- */
.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* ---------- الهيدر (Header) ---------- */
.header {
    background: var(--primary-dark);
    color: var(--white);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow-sm);
    overflow: hidden;
}

/* الشريط العلوي: اللوغو + الأدوات */
.top-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 68px;
    padding: 0 8%;
}

.logo-area {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    flex-shrink: 0;
}

.logo-img {
    height: 45px;
    width: auto;
}

.logo-text {
    font-size: 1.35rem;
    font-weight: 700;
    white-space: nowrap;
}

/* شريط التنقل */
.navbar {
    background: rgba(0, 0, 0, 0.18);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.6rem;
    height: 50px;
    padding: 0 8%;
    flex-wrap: wrap;
    overflow: hidden;
}

.navbar a {
    color: var(--white);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.92rem;
    transition: var(--transition);
    cursor: pointer;
    white-space: nowrap;
    padding: 0.3rem 0;
}

.navbar a:hover {
    color: #a0c4ff;
}

/* أيقونة الواتساب في الهيدر */
.whatsapp-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.whatsapp-icon:hover {
    transform: scale(1.1);
}

.whatsapp-icon img {
    width: 50px;
    height: auto;
    display: block;
}

/* زر الهامبرغر (يظهر فقط في الموبايل) */
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
    background: none;
    border: none;
    padding: 0.5rem;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: var(--white);
    border-radius: 3px;
    transition: transform 0.3s ease, opacity 0.3s ease;
    display: block;
}

/* الهامبرغر يتحول لـ X عند الفتح */
.hamburger.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 8px); }
.hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -8px); }

/* Overlay الـ Drawer */
.nav-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    z-index: 999;
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
}
.nav-overlay.open { display: block; }

/* منع التمرير عند فتح الـ Drawer — يُدار عبر JS (inline styles) لدعم iOS Safari */

/* زر واتساب العائم */
.floating-whatsapp-btn {
    position: fixed;
    right: 16px;
    bottom: calc(16px + env(safe-area-inset-bottom, 0px));
    z-index: 900;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: #25D366;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.5rem;
    text-decoration: none;
    box-shadow: 0 4px 12px rgba(0,0,0,0.25);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.floating-whatsapp-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 16px rgba(0,0,0,0.35);
}

/* ---------- إصلاحات اللغة الإنجليزية (LTR) ---------- */
html[dir="ltr"] .navbar {
    gap: 1rem;
    font-size: 0.84rem;
}

html[dir="ltr"] .logo-text {
    font-size: 0.9rem;
    font-weight: 600;
}

html[dir="ltr"] .services-list {
    text-align: left;
}

html[dir="ltr"] .footer-grid {
    text-align: left;
}

/* الهامبرغر يظهر مبكراً في وضع الإنجليزي (شاشات ≤ 1080px) → Drawer */
@media (max-width: 1080px) {
    html[dir="ltr"] .hamburger {
        display: flex;
        flex-shrink: 0;
    }
    html[dir="ltr"] .top-bar {
        display: flex;
        align-items: center;
        gap: 0.75rem;
    }
    html[dir="ltr"] .header-actions {
        margin-inline-start: auto;
    }
    html[dir="ltr"] .navbar {
        position: fixed;
        top: 0;
        left: -100%;
        right: auto;
        width: min(300px, 82vw);
        height: 100dvh;
        background: var(--primary-dark);
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: 0;
        overflow-y: auto;
        z-index: 2000;
        transition: left 0.32s cubic-bezier(0.4, 0, 0.2, 1);
        box-shadow: 6px 0 24px rgba(0,0,0,0.35);
    }
    html[dir="ltr"] .navbar.open {
        display: flex;
        left: 0;
    }
    html[dir="ltr"] .logo-text {
        font-size: 0.88rem;
    }
    html[dir="ltr"] .lang-desktop-only {
        display: none !important;
    }
    html[dir="ltr"] .lang-nav-options {
        display: flex;
    }
    html[dir="ltr"] .drawer-header {
        display: flex;
    }
}

/* ---------- الفوتر (Footer) ---------- */
.footer {
    background: var(--primary-dark);
    color: #e2e8f0;
    padding: 2rem 0;
    margin-top: 3rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    text-align: right;
}

.footer-col h3,
.footer-col h4 {
    margin-bottom: 1rem;
    color: var(--white);
}

.footer-col ul {
    list-style: none;
}

.footer-col li {
    margin-bottom: 0.5rem;
}

.footer-col a {
    color: #e2e8f0;
    text-decoration: none;
    transition: var(--transition);
    cursor: pointer;
}

.footer-col a:hover {
    color: #a0c4ff;
    text-decoration: underline;
}

/* أيقونات التواصل الاجتماعي في الفوتر */
.social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: var(--white);
    border-radius: 50%;
    transition: var(--transition);
    margin: 0 4px;
}

.social-icon:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-sm);
}

.social-icon img {
    width: 22px;
    height: 22px;
    object-fit: contain;
}

.footer-bottom {
    text-align: center;
    margin-top: 2rem;
    padding-top: 1rem;
    border-top: 1px solid #2d4a8a;
}

/* ---------- الأقسام العامة ---------- */
.section {
    padding: 3rem 0;
}

.section-title {
    font-size: 2rem;
    color: var(--primary-dark);
    margin-bottom: 2rem;
    text-align: center;
    font-weight: 600;
}

/* الأزرار العامة */
.btn {
    display: inline-block;
    background: var(--primary-light);
    color: var(--white);
    padding: 0.7rem 1.5rem;
    border-radius: 2rem;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    font-size: 1rem;
}

.btn-sm {
    padding: 0.35rem 0.8rem;
    font-size: 0.82rem;
    border-radius: 0.5rem;
}

.btn:hover {
    background: var(--primary-dark);
    transform: scale(1.05);
}

/* ---------- بطاقات الأطباء والعيادات (عامة) ---------- */
.doctors-grid,
.clinics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    align-items: stretch;   /* جميع الكروت في الصف تأخذ نفس الارتفاع */
}

/* على الشاشات الكبيرة جداً، نحدد 3 أعمدة كحد أقصى */
@media (min-width: 1024px) {
    .doctors-grid,
    .clinics-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* الكارت نفسه */
.doctor-card,
.clinic-card {
    background: var(--white);
    border-radius: 1.5rem;
    box-shadow: var(--shadow-md);
    padding: 1.5rem;
    text-align: center;
    transition: var(--transition);
    cursor: pointer;
    display: flex;
    flex-direction: column;
    height: 100%;
    width: 100%;
}

.doctor-card:hover,
.clinic-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 30px -10px rgba(0, 0, 0, 0.15);
}

/* صورة الطبيب - دائرية مع ضبط نقطة التركيز على الوجه */
.doctor-img {
    width: 130px;
    height: 130px;
    object-fit: cover;
    object-position: top center;
    border-radius: 50%;
    margin: 0 auto 1rem;
    background: #e2e8f0;
}

/* صورة العيادة - مربعة بزوايا دائرية */
.clinic-img {
    width: 100%;
    height: 160px;
    object-fit: cover;
    border-radius: 1rem;
    margin-bottom: 1rem;
}

.specialty {
    color: var(--primary-light);
    font-weight: 600;
    margin-bottom: 0.3rem;
}

.doctor-degree {
    font-size: 0.78rem;
    color: var(--text-light);
    margin-bottom: 0.6rem;
    line-height: 1.4;
    font-style: italic;
}

/* قائمة الخدمات داخل الكارت */
.services-list {
    text-align: right;
    margin: 1rem 0;
    list-style: none;
    font-size: 0.9rem;
    flex-grow: 1;          /* يدفع الزر إلى الأسفل */
}

.services-list li {
    margin: 0.5rem 0;
}

/* زر الحجز أو عرض التفاصيل في أسفل الكارت */
.doctor-card .btn,
.clinic-card .btn {
    margin-top: auto;
}

/* ---------- تنسيق خاص لكروت الأطباء في الصفحة الرئيسية (عمودين متساويين) ---------- */
.home .doctors-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    align-items: stretch;
    justify-items: center;
}

.home .doctor-card {
    width: 100%;
    max-width: 350px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    height: 100%;
}

/* ---------- قسم Hero (الصفحة الرئيسية) ---------- */
.hero {
    position: relative;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center bottom;
    width: 100%;
    min-height: 550px;
    border-radius: 1.5rem;
    margin: 1rem 0;
    overflow: hidden;
    background-color: #204289;  /* لون الخلفية عند وجود فراغات (أزرق غامق) */
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.15);
    pointer-events: none;
}

/* الصور المتحركة (الدكتور والدكتورة) */
.moving-doctor {
    position: absolute;
    bottom: 0;
    height: auto;
    opacity: 0;
    transition-property: all;
    transition-timing-function: cubic-bezier(0.2, 0.9, 0.4, 1.1);
    filter: drop-shadow(0 8px 15px rgba(0, 0, 0, 0.4));
    pointer-events: none;
}

.doctor-left {
    width: 440px;
    left: 0;
    opacity: 0;
    transform: translateX(-600px);
    transition: transform 4s cubic-bezier(0.2, 0.9, 0.4, 1.1),
                opacity   4s cubic-bezier(0.2, 0.9, 0.4, 1.1);
    transition-delay: 0.3s;
    will-change: transform, opacity;
}

.doctor-right {
    width: 300px;
    right: 0;
    opacity: 0;
    transform: translateX(600px);
    transition: transform 4s cubic-bezier(0.2, 0.9, 0.4, 1.1),
                opacity   4s cubic-bezier(0.2, 0.9, 0.4, 1.1);
    transition-delay: 0.6s;
    will-change: transform, opacity;
}

.doctor-left.visible {
    transform: translateX(0);
    opacity: 1;
}

.doctor-right.visible {
    transform: translateX(0);
    opacity: 1;
}

.hero-text {
    position: absolute;
    bottom: 30px;
    right: 30px;
    background: rgba(0, 0, 0, 0.7);
    padding: 1rem 1.8rem;
    border-radius: 1.2rem;
    color: var(--white);
    text-align: center;
    backdrop-filter: blur(4px);
    z-index: 2;
}

.hero-text h1 {
    font-size: 1.8rem;
    margin-bottom: 0.3rem;
}

.hero-text p {
    font-size: 1rem;
    margin-bottom: 1rem;
}

/* ---------- تأثير ظهور البطاقات عند التمرير (Fade + Scale) ---------- */
.clinic-card,
.doctor-card {
    opacity: 0;
    transform: scale(0.9);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.clinic-card.appear,
.doctor-card.appear {
    opacity: 1;
    transform: scale(1);
}

/* ---------- نماذج الحجز والتواصل ---------- */
.form-card {
    background: var(--white);
    border-radius: 1.5rem;
    box-shadow: var(--shadow-md);
    padding: 2rem;
    transition: var(--transition);
}

.form-group {
    margin-bottom: 1.2rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--primary-dark);
}

.form-control {
    width: 100%;
    padding: 0.8rem 1rem;
    border: 1px solid #d1d5db;
    border-radius: 0.8rem;
    font-family: inherit;
    font-size: 1rem;
    transition: var(--transition);
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-light);
    box-shadow: 0 0 0 3px rgba(43, 108, 245, 0.2);
}

/* أزرار اختيار الفترة (صباحي/مسائي) */
.time-options {
    display: flex;
    gap: 1rem;
    margin-top: 0.5rem;
}

.time-btn {
    flex: 1;
    padding: 0.7rem;
    text-align: center;
    background: #f1f5f9;
    border-radius: 2rem;
    cursor: pointer;
    transition: var(--transition);
    border: 1px solid #e2e8f0;
}

.time-btn.selected {
    background: var(--primary-light);
    color: var(--white);
    border-color: var(--primary-light);
}

/* معلومات الاتصال والخريطة */
.contact-info-box {
    background: #f8fafc;
    padding: 1.5rem;
    border-radius: 1rem;
    margin-bottom: 1.5rem;
}

.map-embed {
    width: 100%;
    height: 300px;
    border: 0;
    border-radius: 1rem;
}

/* ---------- صفحة حسابات التواصل ---------- */
.social-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 1.5rem;
    text-align: center;
}

@media (min-width: 1024px) {
    .social-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.social-card {
    background: var(--white);
    border-radius: 1rem;
    padding: 1.2rem;
    text-decoration: none;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
    display: block;
}

.social-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.social-card img {
    width: 60px;
    height: 60px;
    margin-bottom: 0.8rem;
}

.social-card span {
    display: block;
    font-weight: 600;
    color: var(--text-dark);
}

/* ---------- صفحة من نحن (About) ---------- */
.about-heart {
    font-size: 2.5rem;
    color: #e74c3c;
    margin: 1rem 0;
}

.values-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.value-item {
    text-align: center;
    padding: 1rem;
}

/* ---------- تحسينات التركيز لضعاف البصر (Accessibility) ---------- */
a:focus-visible,
button:focus-visible,
input:focus-visible {
    outline: 2px solid var(--primary-light);
    outline-offset: 2px;
}

/* ---------- تنسيق صفحة خدماتنا (3 كروت متجاورة مع تجاوب) ---------- */
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 2rem;
}

/* شاشات متوسطة (تابلت) -> صفين */
@media (max-width: 900px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* شاشات صغيرة (موبايل) -> عمود واحد */
@media (max-width: 600px) {
    .services-grid {
        grid-template-columns: 1fr;
    }
}

/* ---------- ضبط كروت الأطباء في الصفحة الرئيسية (طبيبين جنباً إلى جنب) ---------- */
/* نستخدم المعرف #doctorsSampleGrid للتأكد من عدم تعارض مع قواعد أخرى */
#doctorsSampleGrid {
    display: flex !important;
    flex-direction: row !important;
    justify-content: center !important;
    align-items: stretch !important;
    gap: 2rem !important;
    flex-wrap: wrap !important;
}

#doctorsSampleGrid .doctor-card {
    flex: 1 1 300px !important;   /* يتمدد لملء المساحة ويحافظ على العرض الأساسي */
    min-width: 280px !important;
    max-width: 350px !important;
    display: flex !important;
    flex-direction: column !important;
    height: auto !important;
}

/* جعل قائمة الخدمات تدفع الزر للأسفل */
#doctorsSampleGrid .doctor-card .services-list {
    flex-grow: 1 !important;
}

/* توحيد ارتفاع الصورة */
#doctorsSampleGrid .doctor-img {
    width: 130px;
    height: 130px;
    object-fit: cover;
    object-position: top center;
}

/* في الموبايل: عمود واحد */
@media (max-width: 768px) {
    #doctorsSampleGrid .doctor-card {
        flex: 1 1 100% !important;
        max-width: 100% !important;
    }
}

/* ============================================================
   ████████ تنسيقات الموبايل (جميع القواعد الخاصة بالشاشات الصغيرة) ████████
   ============================================================ */
@media (max-width: 768px) {

    /* --- تعديلات قسم Hero --- */
    .hero {
        margin: 0;
        border-radius: 0;
        min-height: auto;
        background-color: transparent !important;
    }
    .hero-bg,
    .hero {
        background-size: cover !important;
        background-position: center 30% !important;
        background-repeat: no-repeat;
        height: 50vh;
        width: 100%;
    }
    .hero-text {
        display: none;      /* إخفاء النص والزر فوق الصورة في الموبايل */
    }

    /* --- تعديلات الهيدر (الموبايل) --- */
    .top-bar {
        display: flex;
        align-items: center;
        gap: 0.75rem;
        padding: 0 4%;
        height: 62px;
    }
    .hamburger {
        display: flex;
        flex-shrink: 0;
    }
    .header-actions {
        margin-inline-start: auto;
        gap: 0.4rem;
    }
    .logo-img {
        height: 36px;
    }
    .logo-text {
        font-size: 1rem;
    }
    .lang-toggle-desktop {
        display: none;
    }
    .lang-toggle-nav {
        display: flex;
    }
    /* إخفاء اللغة من الهيدر على الموبايل */
    .lang-desktop-only { display: none !important; }

    /* مسافة سفلية لمنع تداخل المحتوى مع الأزرار العائمة */
    #app-content {
        padding-bottom: calc(80px + env(safe-area-inset-bottom, 0px));
    }

    /* === الـ Drawer (موبايل) === */
    .navbar {
        position: fixed;
        top: 0;
        right: -100%;
        width: min(300px, 82vw);
        height: 100dvh;
        background: var(--primary-dark);
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: 0;
        overflow-y: auto;
        overflow-x: hidden;
        z-index: 2000;
        transition: right 0.32s cubic-bezier(0.4, 0, 0.2, 1);
        box-shadow: -6px 0 24px rgba(0,0,0,0.35);
    }
    html[dir="ltr"] .navbar {
        right: auto;
        left: -100%;
        box-shadow: 6px 0 24px rgba(0,0,0,0.35);
        transition: left 0.32s cubic-bezier(0.4, 0, 0.2, 1);
    }
    .navbar.open {
        display: flex;
        right: 0;
    }
    html[dir="ltr"] .navbar.open {
        left: 0;
        right: auto;
    }

    /* رأس الـ Drawer */
    .drawer-header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 1rem 1.2rem;
        border-bottom: 1px solid rgba(255,255,255,0.15);
        flex-shrink: 0;
        background: rgba(0,0,0,0.2);
    }
    .drawer-logo {
        display: flex;
        align-items: center;
        gap: 0.5rem;
        font-size: 0.95rem;
        font-weight: 700;
        color: var(--white);
    }
    .drawer-close {
        background: none;
        border: none;
        color: var(--white);
        font-size: 1.4rem;
        cursor: pointer;
        padding: 0.25rem 0.5rem;
        opacity: 0.75;
        line-height: 1;
        transition: opacity 0.2s;
    }
    .drawer-close:hover { opacity: 1; }

    /* روابط الـ Drawer */
    .navbar a {
        width: 100%;
        padding: 1rem 1.4rem;
        border-bottom: 1px solid rgba(255,255,255,0.08);
        font-size: 1.05rem;
        font-weight: 500;
        display: flex;
        align-items: center;
    }
    .navbar a:hover { background: rgba(255,255,255,0.07); color: var(--white); }

    /* خيارات اللغة في أسفل الـ Drawer */
    .lang-nav-options {
        display: flex;
        gap: 0.5rem;
        width: 100%;
        padding: 1rem 1.2rem;
        margin-top: auto;
        border-top: 1px solid rgba(255,255,255,0.12);
    }
    .logo-img {
        height: 35px;
    }
    .logo-text {
        font-size: 1.1rem;
    }
    html[dir="ltr"] .logo-text {
        font-size: 0.8rem;
    }
    .whatsapp-icon img {
        width: 25px;
        height: auto;
    }

    /* --- تعديل أحجام الصور المتحركة (الدكتور والدكتورة) --- */
    .doctor-left {
        width: 220px;
        left: -150px;
    }
    .doctor-right {
        width: 150px;
        right: -150px;
    }
    .doctor-left.visible {
        left: 10px;
    }
    .doctor-right.visible {
        right: 10px;
    }

    /* --- عناوين الأقسام --- */
    .section-title {
        font-size: 1.5rem;
    }

    /* --- شبكات الكروت: تصبح عموداً واحداً (باستثناء الصفحة الرئيسية) --- */
    .doctors-grid,
    .clinics-grid {
        grid-template-columns: 1fr !important;
    }

    /* --- الصفحة الرئيسية: كروت الأطباء عمود واحد (تم ضبطها أعلاه) --- */
    /* ملاحظة: لا نحتاج إلى تكرار القواعد هنا لأن #doctorsSampleGrid تم ضبطها بالفعل للموبايل */

    /* --- الفوتر: عمود واحد ومركز --- */
    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    /* --- تصغير المسافات الداخلية للنموذج --- */
    .form-card {
        padding: 1.2rem;
    }

    /* --- صفحة حسابات التواصل: 2 أعمدة في الموبايل --- */
    .social-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* شاشات ضيقة جداً: تصغير طفيف للوغو */
@media (max-width: 380px) {
    .logo-img {
        height: 30px;
    }
    .logo-text {
        font-size: 0.95rem;
    }
    html[dir="ltr"] .logo-text {
        font-size: 0.72rem;
    }
}

/* تعطيل تأثير الاختفاء للكروت في صفحات العيادات فقط (تظهر فوراً) */
.clinic-details-page .doctor-card {
    opacity: 1 !important;
    transform: scale(1) !important;
}








/* أزرار اختيار الوقت */
.time-slot-btn {
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    padding: 0.5rem 1rem;
    border-radius: 2rem;
    cursor: pointer;
    transition: 0.2s;
    font-size: 0.9rem;
}
.time-slot-btn:hover {
    background: #e2e8f0;
}
.time-slot-btn.selected {
    background: var(--primary-light);
    color: white;
    border-color: var(--primary-light);
}
.date-btn.active {
    background: var(--primary-light);
    color: white;
    border: none;
}




/* تنسيق حاوية الأزرار */
.date-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1.5rem;
    justify-content: flex-start;
}

/* الأزرار بشكل عام */
.date-btn,
#specificDateBtn {
    background: linear-gradient(145deg, #ffffff, #f0f4f8);
    border: none;
    padding: 0.7rem 1.5rem;
    border-radius: 3rem;
    font-weight: 700;
    font-size: 0.95rem;
    font-family: 'Tajawal', 'Segoe UI', sans-serif;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.2, 0.9, 0.4, 1.1);
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    color: #1e293b;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05), 0 0 0 1px rgba(0, 0, 0, 0.02);
}

/* أيقونات الأزرار (تضاف في HTML) */
.date-btn i,
#specificDateBtn i {
    font-size: 1.1rem;
    color: #0284c7;
    transition: color 0.2s;
}

/* تأثير المرور (hover) */
.date-btn:hover,
#specificDateBtn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.1), 0 0 0 1px #cbd5e1;
    background: #ffffff;
}

.date-btn:hover i,
#specificDateBtn:hover i {
    color: #0369a1;
    transform: scale(1.05);
}

/* تأثير الضغط (active) */
.date-btn:active,
#specificDateBtn:active {
    transform: translateY(1px);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    transition: 0.05s;
}

/* الزر النشط (عند اختيار اليوم أو غداً أو تاريخ محدد) */
.date-btn.active,
#specificDateBtn.active {
    background: linear-gradient(135deg, #0284c7, #0369a1);
    color: white;
    box-shadow: 0 6px 14px rgba(2, 132, 199, 0.35);
    border: none;
}

.date-btn.active i,
#specificDateBtn.active i {
    color: white;
}

/* تنسيق خاص لزر "تاريخ محدد" (في الوضع العادي) */
#specificDateBtn {
    background: #f8fafc;
    border: 1px solid #cbd5e1;
    box-shadow: none;
}

#specificDateBtn i {
    color: #0284c7;
}

#specificDateBtn:hover {
    background: #eef2ff;
    border-color: #0284c7;
}

#specificDateBtn.active {
    background: linear-gradient(135deg, #0284c7, #0369a1);
    border: none;
    color: white;
}

/* منتقي التاريخ (عند الضغط على "تاريخ محدد") */
.date-picker-wrapper {
    margin-top: 0.8rem;
}

#datePicker {
    width: 100%;
    padding: 0.7rem 1rem;
    border: 2px solid #e2e8f0;
    border-radius: 1.5rem;
    font-family: 'Tajawal', sans-serif;
    font-size: 0.9rem;
    background: white;
    transition: 0.2s;
}

#datePicker:focus {
    outline: none;
    border-color: #0284c7;
    box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.2);
}







/* صندوق النص العائم (ثابت) */


/* أزرار الهيرو في الصفحة الرئيسية */
.hero-buttons {
    display: flex;
    gap: 0.6rem;
    flex-wrap: wrap;
    justify-content: center;
}

.hero-buttons .btn {
    flex: 1 1 auto;
    min-width: 130px;
    font-size: 0.88rem;
    padding: 0.55rem 1rem;
}

.btn-assistant {
    background: rgba(255,255,255,0.15);
    border: 2px solid rgba(255,255,255,0.7);
    backdrop-filter: blur(4px);
}

.btn-assistant:hover {
    background: rgba(255,255,255,0.28);
    border-color: #fff;
}

/* زر احجز موعد عائم */
.floating-book-btn {
    position: fixed;
    right: 16px;
    bottom: calc(74px + env(safe-area-inset-bottom, 0px));
    z-index: 900;
    height: 48px;
    padding-inline: 18px;
    border-radius: 999px;
    background: var(--primary-light);
    color: var(--white);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    font-size: 0.95rem;
    font-family: inherit;
    box-shadow: 0 4px 12px rgba(0,0,0,0.25);
    transition: background 0.2s ease, transform 0.2s ease;
}

.floating-book-btn i {
    font-size: 1.1em;
}

.floating-book-btn:hover {
    background: var(--primary-dark);
    transform: scale(1.05);
}

/* ─── شريط الإجراءات السفلي (موبايل فقط) ─────────────────── */
.mobile-action-bar {
    display: none;
}

@media (max-width: 768px) {
    /* إظهار الشريط السفلي */
    .mobile-action-bar {
        display: flex;
        position: fixed;
        bottom: 0;
        inset-inline-start: 0;
        inset-inline-end: 0;
        z-index: 1000;
        background: #fff;
        border-top: 1px solid rgba(0, 0, 0, 0.08);
        padding: 8px 12px;
        padding-bottom: max(10px, env(safe-area-inset-bottom));
        gap: 8px;
        align-items: stretch;
        box-shadow: 0 -3px 14px rgba(0, 0, 0, 0.09);
    }

    /* إخفاء الأزرار العائمة على الموبايل */
    .floating-book-btn,
    .floating-whatsapp-btn {
        display: none !important;
    }

    /* إخفاء فقاعة الشات (الشريط السفلي يحل محلها) */
    #oceanChatBubble {
        display: none !important;
    }

    /* مسافة سفلية لمنع الشريط من تغطية المحتوى */
    body {
        padding-bottom: calc(88px + env(safe-area-inset-bottom, 0px));
    }

    /* فقاعة الترحيب فوق الشريط */
    .ocean-welcome-bubble {
        bottom: max(82px, calc(72px + env(safe-area-inset-bottom))) !important;
        left: 12px !important;
    }
}

/* زر احجز موعد — الشريط السفلي */
.mob-book-btn {
    flex: 1;
    min-height: 54px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 0;
    border: 2px solid transparent;
    border-radius: 14px;
    background: var(--primary-light);
    color: #fff;
    font-family: inherit;
    font-size: 0.92rem;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 3px 10px rgba(32, 66, 137, 0.28);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
    -webkit-tap-highlight-color: transparent;
}

.mob-book-btn:active {
    transform: scale(0.96);
    box-shadow: 0 2px 6px rgba(32, 66, 137, 0.15);
}

/* زر مساعد أوشن — الشريط السفلي */
.mob-assist-btn {
    flex: 1;
    min-height: 54px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 0;
    border: 2px solid var(--primary-light);
    border-radius: 12px;
    background: transparent;
    color: var(--primary-light);
    font-family: inherit;
    font-size: 0.92rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.15s ease;
    -webkit-tap-highlight-color: transparent;
}

.mob-assist-btn:active {
    background: rgba(32, 66, 137, 0.07);
}

.mob-book-btn i,
.mob-assist-btn i {
    font-size: 0.88em;
}

/* ---------- قسم شركاء التأمين (Infinite Marquee) ---------- */
.insurance-section {
    background: linear-gradient(135deg, #eef2ff 0%, #e0eaff 45%, #f0f8ff 100%);
    padding: 3rem 0 2.5rem;
    overflow: hidden;
}

.insurance-section .section-title {
    margin-bottom: 2rem;
}

.insurance-marquee-wrapper {
    overflow: hidden;
    width: 100%;
    position: relative;
    -webkit-mask-image: linear-gradient(to right, transparent, #000 10%, #000 90%, transparent);
    mask-image: linear-gradient(to right, transparent, #000 10%, #000 90%, transparent);
}

.insurance-track {
    display: flex;
    align-items: center;
    width: max-content;
    padding: 0.5rem 0 1rem;
    animation: insuranceScroll 32s linear infinite;
    will-change: transform;
}

@keyframes insuranceScroll {
    from { transform: translateX(0); }
    to   { transform: translateX(-50%); }
}

.insurance-logo-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.6rem;
    background: var(--white);
    border-radius: 1.2rem;
    padding: 1.1rem 1.6rem;
    box-shadow: 0 2px 10px rgba(32, 66, 137, 0.07);
    min-width: 150px;
    margin-inline-end: 1.5rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: default;
    user-select: none;
}

.insurance-logo-item:hover {
    transform: translateY(-7px);
    box-shadow: 0 14px 32px rgba(32, 66, 137, 0.16);
}

.insurance-logo-item img {
    width: 110px;
    height: 60px;
    object-fit: contain;
    display: block;
}
    

.insurance-logo-item span {
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--text-light);
    text-align: center;
    white-space: nowrap;
    transition: color 0.3s ease;
}

.insurance-logo-item:hover span {
    color: var(--primary-dark);
}

@media (max-width: 768px) {
    .insurance-section {
        padding: 2.5rem 0 2rem;
    }
    .insurance-logo-item {
        min-width: 120px;
        padding: 0.9rem 1.1rem;
    }
    .insurance-logo-item img {
        width: 85px;
        height: 48px;
    }
}

/* ============================================================
   لوحة العميل - Auth & Account Styles
   ============================================================ */

/* زر الحساب في الهيدر */
.header-auth-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: rgba(255,255,255,0.15);
    color: var(--white);
    border: 1px solid rgba(255,255,255,0.4);
    border-radius: 2rem;
    padding: 0.35rem 0.85rem;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    font-family: inherit;
    white-space: nowrap;
}

.header-auth-btn:hover {
    background: rgba(255,255,255,0.3);
    transform: translateY(-1px);
}

.header-auth-btn--user {
    background: rgba(255,255,255,0.25);
}

/* قسم Auth المشترك */
.auth-section {
    min-height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3rem 1rem;
    background: var(--gray-bg);
}

.auth-card {
    background: var(--white);
    border-radius: 1.25rem;
    box-shadow: var(--shadow-md);
    padding: 2.5rem 2rem;
    width: 100%;
    max-width: 460px;
}

.auth-logo {
    text-align: center;
    margin-bottom: 2rem;
}

.auth-logo img {
    margin-bottom: 0.75rem;
}

.auth-logo h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-dark);
    margin-bottom: 0.35rem;
}

.auth-logo p {
    color: var(--text-light);
    font-size: 0.9rem;
}

.form-label {
    display: block;
    margin-bottom: 0.4rem;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text-dark);
}

.form-input {
    width: 100%;
    padding: 0.7rem 1rem;
    border: 1.5px solid #e5e7eb;
    border-radius: 0.6rem;
    font-family: inherit;
    font-size: 0.95rem;
    color: var(--text-dark);
    background: #fafafa;
    transition: border-color 0.2s, box-shadow 0.2s;
    outline: none;
}

.form-input:focus {
    border-color: var(--primary-light);
    box-shadow: 0 0 0 3px rgba(43, 108, 245, 0.1);
    background: var(--white);
}

.form-input:disabled {
    background: #f3f4f6;
    color: var(--text-light);
    cursor: not-allowed;
}

.password-wrap {
    position: relative;
}

.password-wrap .form-input {
    padding-inline-start: 2.5rem;
}

.toggle-password {
    position: absolute;
    inset-inline-start: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-light);
    font-size: 1rem;
    line-height: 1;
    padding: 0;
}

.toggle-password:hover { color: var(--primary-light); }

.btn-auth {
    width: 100%;
    padding: 0.8rem 1.5rem;
    background: linear-gradient(135deg, var(--primary-dark), var(--primary-light));
    color: var(--white);
    border: none;
    border-radius: 0.6rem;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    font-family: inherit;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1.25rem;
}

.btn-auth:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(32, 66, 137, 0.35);
}

.btn-auth:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.auth-error {
    background: #fee2e2;
    color: #991b1b;
    padding: 0.65rem 1rem;
    border-radius: 0.5rem;
    font-size: 0.9rem;
    margin-top: 0.75rem;
}

.auth-success {
    background: #d1fae5;
    color: #065f46;
    padding: 0.65rem 1rem;
    border-radius: 0.5rem;
    font-size: 0.9rem;
    margin-top: 0.75rem;
    line-height: 1.6;
}

.auth-links {
    text-align: center;
    margin-top: 1.25rem;
    font-size: 0.9rem;
    color: var(--text-light);
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.auth-link {
    color: var(--primary-light);
    cursor: pointer;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.2s;
}

.auth-link:hover { color: var(--primary-dark); }

.auth-sep { color: var(--text-light); }

.req { color: #e74c3c; }

/* ---- لوحة الحساب ---- */
.account-section {
    max-width: 900px;
    margin: 0 auto;
    padding: 2rem 1rem 3rem;
}

.account-hero {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    background: linear-gradient(135deg, var(--primary-dark), var(--primary-light));
    color: var(--white);
    border-radius: 1.25rem;
    padding: 1.75rem 2rem;
    margin-bottom: 2rem;
    box-shadow: var(--shadow-md);
}

.account-avatar {
    font-size: 3.5rem;
    line-height: 1;
    opacity: 0.9;
}

.account-name {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0;
}

.account-email {
    font-size: 0.9rem;
    opacity: 0.8;
    margin: 0.25rem 0 0;
}

.account-tabs {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    border-bottom: 2px solid #e5e7eb;
    padding-bottom: 0;
    flex-wrap: wrap;
}

.account-tab {
    background: none;
    border: none;
    padding: 0.65rem 1.25rem;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-light);
    cursor: pointer;
    font-family: inherit;
    border-bottom: 3px solid transparent;
    margin-bottom: -2px;
    transition: color 0.2s, border-color 0.2s;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.account-tab.active {
    color: var(--primary-dark);
    border-bottom-color: var(--primary-dark);
}

.account-tab:hover:not(.active) { color: var(--text-dark); }

.account-tab-content {
    background: var(--white);
    border-radius: 1rem;
    box-shadow: var(--shadow-sm);
    padding: 1.75rem;
    min-height: 300px;
}

.account-loading, .account-empty, .account-error {
    text-align: center;
    padding: 3rem 1rem;
    color: var(--text-light);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.account-empty i, .account-error i { font-size: 2.5rem; }
.account-error { color: #e74c3c; }

/* ---- ملف شخصي ---- */
.profile-card {
    background: var(--white);
    border-radius: 1rem;
    padding: 1.5rem;
    box-shadow: var(--shadow-sm);
}

.profile-card h3 {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--primary-dark);
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid #e5e7eb;
}

.profile-logout-section {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid #e5e7eb;
}

.btn-logout {
    background: none;
    border: 1.5px solid #e74c3c;
    color: #e74c3c;
    padding: 0.55rem 1.25rem;
    border-radius: 0.6rem;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.btn-logout:hover {
    background: #e74c3c;
    color: var(--white);
}

/* ── Family Members ─────────────────────────────────────────────────────────── */
.family-section { padding: 0.5rem 0 1rem; }

.family-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
}
.family-header h3 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--primary-dark);
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.family-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.family-empty {
    color: var(--text-light);
    text-align: center;
    padding: 2rem;
    font-size: 0.9rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}
.family-card {
    display: flex;
    align-items: center;
    gap: 12px;
    background: #f8faff;
    border: 1px solid #e0e8ff;
    border-radius: 12px;
    padding: 12px 14px;
    transition: box-shadow 0.2s;
}
.family-card:hover { box-shadow: 0 2px 10px rgba(32,66,137,0.09); }
.family-card-icon {
    width: 42px;
    height: 42px;
    background: linear-gradient(135deg, var(--primary-dark), var(--primary-light));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.1rem;
    flex-shrink: 0;
}
.family-card-info { flex: 1; min-width: 0; }
.family-card-name { font-weight: 700; color: var(--primary-dark); margin: 0 0 4px; font-size: 0.95rem; }
.family-card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    font-size: 0.78rem;
    color: var(--text-light);
}
.family-card-meta span { display: flex; align-items: center; gap: 4px; }
.family-card-actions { display: flex; gap: 6px; flex-shrink: 0; }

.family-form-card {
    background: #f4f8ff;
    border: 1.5px solid #c7d8ff;
    border-radius: 14px;
    padding: 18px 20px;
    margin-bottom: 1rem;
}
.family-form-card h4 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--primary-dark);
    margin: 0 0 14px;
}
.family-form-btns {
    display: flex;
    gap: 10px;
    margin-top: 14px;
}
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}
@media (max-width: 480px) { .form-row { grid-template-columns: 1fr; } }

/* Small button variants — .btn-sm defined at TOC §04 (~line 518) */
.btn-outline {
    background: transparent;
    border: 1.5px solid var(--primary-light);
    color: var(--primary-light);
}
.btn-outline:hover { background: var(--primary-light); color: #fff; }
.btn-danger { background: transparent; border: 1.5px solid #e74c3c; color: #e74c3c; }
.btn-danger:hover { background: #e74c3c; color: #fff; }

/* ── Booking For (Appointment form) ─────────────────────────────────────────── */
.booking-for-options {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 8px;
}
.booking-for-opt {
    display: flex;
    align-items: center;
    gap: 6px;
    background: #f4f8ff;
    border: 1.5px solid #c7d8ff;
    border-radius: 999px;
    padding: 8px 16px;
    cursor: pointer;
    font-size: 0.88rem;
    font-weight: 600;
    transition: border-color 0.15s, background 0.15s;
    user-select: none;
}
.booking-for-opt input { display: none; }
.booking-for-opt span { display: flex; align-items: center; gap: 6px; }
.booking-for-opt:has(input:checked) {
    border-color: var(--primary-light);
    background: #e6eeff;
    color: var(--primary-light);
}

/* ---- كروت المواعيد ---- */
.appointments-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.appt-card {
    border: 1.5px solid #e5e7eb;
    border-radius: 0.85rem;
    overflow: hidden;
    transition: box-shadow 0.2s;
}

.appt-card:hover { box-shadow: var(--shadow-sm); }

.appt-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.65rem 1rem;
    background: #f9fafb;
    border-bottom: 1px solid #e5e7eb;
    flex-wrap: wrap;
    gap: 0.4rem;
}

.appt-card-body {
    padding: 0.9rem 1rem;
}

.appt-status {
    display: inline-block;
    padding: 0.2rem 0.75rem;
    border-radius: 2rem;
    font-size: 0.8rem;
    font-weight: 700;
}

.appt-pending   { background: #fef3c7; color: #92400e; }
.appt-confirmed { background: #d1fae5; color: #065f46; }
.appt-canceled  { background: #fee2e2; color: #991b1b; }
.appt-checked   { background: #dbeafe; color: #1e40af; }

.appt-date {
    font-size: 0.85rem;
    color: var(--text-light);
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.appt-info-row {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
    font-size: 0.9rem;
    color: var(--text-dark);
    margin-bottom: 0.4rem;
}

.appt-info-row span {
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.appt-info-row i { color: var(--primary-light); }

.appt-notes {
    font-size: 0.85rem;
    color: var(--text-light);
    margin-top: 0.4rem;
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

/* ---- كروت التقارير الطبية ---- */
.reports-list {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.report-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.25rem;
    border: 1.5px solid #e5e7eb;
    border-radius: 0.85rem;
    transition: box-shadow 0.2s;
    flex-wrap: wrap;
}

.report-card:hover { box-shadow: var(--shadow-sm); }

.report-card-icon {
    font-size: 2rem;
    color: var(--primary-light);
    flex-shrink: 0;
}

.report-card-body {
    flex: 1;
    min-width: 0;
}

.report-card-body h4 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-dark);
    margin: 0 0 0.25rem;
}

.report-date {
    font-size: 0.83rem;
    color: var(--text-light);
    display: flex;
    align-items: center;
    gap: 0.3rem;
    margin: 0;
}

.report-notes {
    font-size: 0.85rem;
    color: var(--text-light);
    margin: 0.25rem 0 0;
}

.report-card-actions {
    flex-shrink: 0;
}

/* استجابة */
@media (max-width: 600px) {
    .auth-card { padding: 1.75rem 1.25rem; }
    .account-hero { flex-direction: column; text-align: center; }
    .account-tabs { gap: 0.25rem; }
    .account-tab { font-size: 0.85rem; padding: 0.5rem 0.75rem; }
    .account-tab-content { padding: 1.25rem; }
    .appt-info-row { flex-direction: column; gap: 0.4rem; }
    .report-card { flex-direction: column; align-items: flex-start; }
}

/* ═══════════════════════════════════════════════════════════
   CHATBOT WIDGET — أوشن المساعد الذكي
═══════════════════════════════════════════════════════════ */

/* ── Floating Bubble ─────────────────────────────────────── */
.ocean-chat-bubble {
    position: fixed;
    left: 16px;
    bottom: calc(16px + env(safe-area-inset-bottom, 0px));
    z-index: 1100;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-light), var(--primary-dark));
    color: #fff;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    box-shadow: 0 4px 16px rgba(32, 66, 137, 0.35);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.ocean-chat-bubble:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(32, 66, 137, 0.45);
}

/* ── Badge ───────────────────────────────────────────────── */
.ocean-chat-badge {
    display: none;
    position: absolute;
    top: -4px;
    inset-inline-end: -4px;
    width: 20px;
    height: 20px;
    background: #e74c3c;
    color: #fff;
    border-radius: 50%;
    font-size: 0.7rem;
    font-weight: 700;
    align-items: center;
    justify-content: center;
    border: 2px solid #fff;
}

/* ── Chat Window ─────────────────────────────────────────── */
.ocean-chat-window {
    position: fixed;
    left: 16px;
    bottom: calc(84px + env(safe-area-inset-bottom, 0px));
    z-index: 1099;
    width: 340px;
    max-height: 520px;
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 8px 40px rgba(32, 66, 137, 0.18);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    opacity: 0;
    transform: translateY(20px) scale(0.95);
    pointer-events: none;
    transition: opacity 0.25s ease, transform 0.25s ease;
    transform-origin: bottom left;
}
.ocean-chat-window.ocean-chat-open {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: all;
}

/* ── Header ──────────────────────────────────────────────── */
.ocean-chat-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px;
    background: linear-gradient(135deg, var(--primary-dark), var(--primary-light));
    color: #fff;
    flex-shrink: 0;
}
.ocean-chat-header-info {
    display: flex;
    align-items: center;
    gap: 10px;
}
.ocean-chat-avatar {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    flex-shrink: 0;
}
.ocean-chat-name {
    font-weight: 700;
    font-size: 0.95rem;
}
.ocean-chat-status {
    font-size: 0.75rem;
    opacity: 0.85;
    display: flex;
    align-items: center;
    gap: 5px;
}
.ocean-chat-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #4ade80;
    display: inline-block;
    animation: oceanPulse 2s infinite;
}
@keyframes oceanPulse {
    0%, 100% { opacity: 1; }
    50%       { opacity: 0.4; }
}
.ocean-chat-header-actions {
    display: flex;
    align-items: center;
    gap: 6px;
}
.ocean-wa-header-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: rgba(37, 211, 102, 0.2);
    color: #fff;
    font-size: 1.05rem;
    text-decoration: none;
    transition: background 0.2s;
}
.ocean-wa-header-btn:hover { background: rgba(37, 211, 102, 0.4); }
.ocean-chat-close-btn {
    background: rgba(255, 255, 255, 0.15);
    border: none;
    color: #fff;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}
.ocean-chat-close-btn:hover { background: rgba(255, 255, 255, 0.3); }

/* ── Messages Area ───────────────────────────────────────── */
.ocean-chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 14px 12px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    scroll-behavior: smooth;
}
.ocean-chat-messages::-webkit-scrollbar { width: 4px; }
.ocean-chat-messages::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 2px;
}

/* ── Message Bubbles ─────────────────────────────────────── */
.ocean-msg {
    max-width: 82%;
    padding: 9px 13px;
    border-radius: 16px;
    font-size: 0.88rem;
    line-height: 1.55;
    word-break: break-word;
}
.ocean-msg-bot {
    background: #f3f4f6;
    color: #1f2937;
    align-self: flex-start;
    border-bottom-right-radius: 4px;
}
html[dir="ltr"] .ocean-msg-bot { border-bottom-right-radius: 16px; border-bottom-left-radius: 4px; }
.ocean-msg-user {
    background: linear-gradient(135deg, var(--primary-light), var(--primary-dark));
    color: #fff;
    align-self: flex-end;
    border-bottom-left-radius: 4px;
}
html[dir="ltr"] .ocean-msg-user { border-bottom-left-radius: 16px; border-bottom-right-radius: 4px; }

/* ── Action Buttons inside messages ──────────────────────── */
.ocean-msg-action {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 8px;
    padding: 7px 14px;
    background: var(--primary-light);
    color: #fff;
    border: none;
    border-radius: 20px;
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: background 0.2s, transform 0.15s;
}
.ocean-msg-action:hover {
    background: var(--primary-dark);
    transform: scale(1.03);
    color: #fff;
}
.ocean-msg-action + .ocean-msg-action { margin-inline-start: 6px; }

/* ── Typing Indicator ────────────────────────────────────── */
.ocean-typing {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 4px 2px;
}
.ocean-typing span {
    width: 8px;
    height: 8px;
    background: #9ca3af;
    border-radius: 50%;
    animation: oceanBounce 1.2s infinite ease-in-out;
}
.ocean-typing span:nth-child(2) { animation-delay: 0.2s; }
.ocean-typing span:nth-child(3) { animation-delay: 0.4s; }
@keyframes oceanBounce {
    0%, 80%, 100% { transform: translateY(0); }
    40%           { transform: translateY(-7px); }
}

/* ── Quick Replies ───────────────────────────────────────── */
.ocean-chat-quick-replies {
    display: flex;
    gap: 7px;
    padding: 8px 12px;
    overflow-x: auto;
    flex-shrink: 0;
    scrollbar-width: none;
    border-top: 1px solid #f0f0f0;
}
.ocean-chat-quick-replies::-webkit-scrollbar { display: none; }
.ocean-chat-quick-replies button {
    white-space: nowrap;
    padding: 6px 12px;
    border-radius: 14px;
    border: 1.5px solid var(--primary-light);
    background: #fff;
    color: var(--primary-light);
    font-size: 0.78rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
    flex-shrink: 0;
}
.ocean-chat-quick-replies button:hover {
    background: var(--primary-light);
    color: #fff;
}

/* ── Input Row ───────────────────────────────────────────── */
.ocean-chat-input-row {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
    border-top: 1px solid #f0f0f0;
    flex-shrink: 0;
}
.ocean-chat-input {
    flex: 1;
    border: 1.5px solid #e5e7eb;
    border-radius: 20px;
    padding: 9px 14px;
    font-size: 0.88rem;
    outline: none;
    font-family: inherit;
    transition: border-color 0.2s;
    direction: rtl;
}
html[dir="ltr"] .ocean-chat-input { direction: ltr; }
.ocean-chat-input:focus { border-color: var(--primary-light); }
.ocean-chat-send-btn {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-light), var(--primary-dark));
    color: #fff;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    flex-shrink: 0;
    transition: transform 0.15s, opacity 0.2s;
}
.ocean-chat-send-btn:hover { transform: scale(1.1); }
.ocean-chat-send-btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }

/* ── Mobile ──────────────────────────────────────────────── */
@media (max-width: 480px) {
    .ocean-chat-window {
        left: 0;
        right: 0;
        bottom: max(72px, calc(60px + env(safe-area-inset-bottom)));
        width: 100%;
        max-height: calc(75dvh - 72px);
        border-radius: 20px 20px 0 0;
        transform-origin: bottom center;
    }
}

/* ── Booking Confirmation Card ───────────────────────────── */
.ocean-booking-card {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    background: linear-gradient(135deg, #f0fdf4, #dcfce7);
    border: 1.5px solid #86efac;
    border-radius: 12px;
    padding: 12px 14px;
    margin-bottom: 6px;
}
.ocean-booking-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #16a34a;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    flex-shrink: 0;
}
.ocean-booking-body {
    display: flex;
    flex-direction: column;
    gap: 4px;
    font-size: 0.84rem;
    color: #166534;
}
.ocean-booking-body strong {
    font-size: 0.9rem;
    margin-bottom: 2px;
}
.ocean-booking-body span {
    display: flex;
    align-items: center;
    gap: 6px;
}
.ocean-booking-body i {
    width: 14px;
    text-align: center;
    opacity: 0.7;
}

/* ── Inline link inside bot message ─────────────────────── */
.ocean-inline-link {
    color: var(--primary-light);
    text-decoration: underline;
    font-weight: 600;
}
}

/* ── Welcome Bubble (above chatbot button) ───────────────── */
.ocean-welcome-bubble {
    position: fixed;
    left: 84px;
    bottom: calc(10px + env(safe-area-inset-bottom, 0px));
    z-index: 1101;
    background: #fff;
    border: 2px solid var(--primary-light);
    border-radius: 16px 16px 16px 4px;
    padding: 10px 14px;
    font-size: 0.84rem;
    font-weight: 600;
    color: var(--primary-dark);
    box-shadow: 0 4px 18px rgba(32, 66, 137, 0.18);
    max-width: 210px;
    line-height: 1.45;
    cursor: pointer;
    display: none;
    animation: welcomePop 0.3s ease;
}
.ocean-welcome-bubble::before {
    content: '';
    position: absolute;
    bottom: 14px;
    left: -10px;
    border: 6px solid transparent;
    border-right-color: var(--primary-light);
}
.ocean-welcome-bubble::after {
    content: '';
    position: absolute;
    bottom: 15px;
    left: -7px;
    border: 5px solid transparent;
    border-right-color: #fff;
}
@keyframes welcomePop {
    from { opacity: 0; transform: translateX(-8px) scale(0.92); }
    to   { opacity: 1; transform: translateX(0)    scale(1);    }
}
@media (max-width: 480px) {
    .ocean-welcome-bubble { max-width: 170px; font-size: 0.8rem; }
}

/* ── Hero AI Button ──────────────────────────────────────── */
.btn-ai-hero {
    background: rgba(255,255,255,0.15);
    color: #fff;
    border: 2px solid rgba(255,255,255,0.7);
    margin-inline-start: 0.6rem;
    backdrop-filter: blur(4px);
    font-size: 0.9rem;
}
.btn-ai-hero:hover {
    background: rgba(255,255,255,0.28);
    border-color: #fff;
    transform: scale(1.05);
}

/* ── Inline AI Banner (section pages) ───────────────────── */
.ocean-ai-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-light) 100%);
    border-radius: 1.2rem;
    padding: 1.4rem 1.8rem;
    margin: 2rem 0 0.5rem;
    color: #fff;
}
.ocean-ai-banner-text h3 {
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 0.2rem;
}
.ocean-ai-banner-text p {
    font-size: 0.82rem;
    opacity: 0.88;
    margin: 0;
}
.ocean-ai-banner-btn {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 10px 22px;
    border-radius: 999px;
    background: #fff;
    color: var(--primary-dark);
    font-weight: 700;
    font-size: 0.88rem;
    border: none;
    cursor: pointer;
    font-family: inherit;
    transition: transform 0.15s, box-shadow 0.15s;
    white-space: nowrap;
}
.ocean-ai-banner-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 14px rgba(0,0,0,0.18);
}
@media (max-width: 600px) {
    .ocean-ai-banner { text-align: center; justify-content: center; }
}

/* ═══════════════════════════════════════════════════════════════════════════
   صفحة العروض — تصميم احترافي v2
   ═══════════════════════════════════════════════════════════════════════════ */

.offers-page {
    overflow-x: hidden;
    padding-bottom: 0;
}

/* ── ① Main Slider ───────────────────────────────────────────────────────── */
/* ⚠ SHARED WITH HOME PAGE — see TOC entry 20 — do not add duplicate rules   */
.offers-main-slider {
    position: relative;
    width: 100%;
    max-width: 1240px;
    margin: 16px auto 18px;
    border-radius: 22px;
    overflow: hidden;
    background: #eef3ff;
    aspect-ratio: 1440 / 420;
    /* aspect-ratio prevents CLS — no max-height needed */
}

.slider-loader {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-dark);
    font-size: 2.2rem;
    background: #eef3ff;
    z-index: 1;
}

.offer-slides-track {
    position: absolute;
    inset: 0;
}

.offer-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 0.55s ease;
    pointer-events: none;
    z-index: 1;
}

.offer-slide.active {
    opacity: 1;
    pointer-events: auto;
    z-index: 2;
}

.offer-slide-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    user-select: none;
    -webkit-user-drag: none;
}

.offer-banner-slide { cursor: pointer; }
.offer-banner-slide .offer-slide-img {
    object-fit: contain;
    background: #eef3ff;
}

.offer-slide-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(20,40,100,0.7) 0%, transparent 55%);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-end;
    padding: 1.8rem 2.5rem;
    gap: 10px;
    pointer-events: none;
    z-index: 3;
}

.offer-slide-title {
    color: #fff;
    font-size: 1.6rem;
    font-weight: 800;
    margin: 0;
    text-shadow: 0 2px 8px rgba(0,0,0,0.35);
    max-width: 520px;
}

.offer-slide-price {
    color: #ffd966;
    font-size: 1.2rem;
    font-weight: 700;
    margin: 0;
}

.offer-banner-cta {
    position: absolute;
    bottom: 22px;
    inset-inline-end: 32px;
    z-index: 4;
    pointer-events: auto;
}

.offer-banner-cta .btn {
    padding: 10px 24px;
    font-size: 0.9rem;
    border-radius: 999px;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 16px rgba(32,66,137,0.28);
}

/* Arrows */
.offer-slide-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.2);
    border: none;
    color: #fff;
    font-size: 1.1rem;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 10;
    transition: background 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}
.offer-slide-arrow:hover { background: rgba(255,255,255,0.38); }
.offer-slide-prev { inset-inline-end: 14px; }
.offer-slide-next { inset-inline-start: 14px; }

/* Dots */
.slide-dots {
    position: absolute;
    bottom: 12px;
    width: 100%;
    display: flex;
    justify-content: center;
    gap: 6px;
    z-index: 10;
    pointer-events: none;
}
.slide-dot {
    width: 8px;
    height: 8px;
    border-radius: 4px;
    border: none;
    background: rgba(255,255,255,0.45);
    cursor: pointer;
    padding: 0;
    pointer-events: auto;
    transition: background 0.25s, transform 0.25s, width 0.25s;
    flex-shrink: 0;
}
.slide-dot.active {
    background: #fff;
    width: 20px;
    transform: none;
}

/* ── ② Promo Grid ────────────────────────────────────────────────────────── */
.offers-promo-section {
    padding: 0 0 0.5rem;
    background: transparent;
}
.offers-promo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 16px;
}
.promo-card {
    position: relative;
    border-radius: 14px;
    overflow: hidden;
    cursor: pointer;
    box-shadow: 0 2px 10px rgba(32,66,137,0.10);
    transition: transform 0.22s, box-shadow 0.22s;
}
.promo-card:hover { transform: translateY(-4px); box-shadow: 0 6px 22px rgba(32,66,137,0.18); }
.promo-card-img { width: 100%; aspect-ratio: 16 / 7; object-fit: cover; display: block; }
.promo-card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(20,40,100,0.65) 0%, transparent 50%);
    display: flex;
    align-items: flex-end;
    padding: 12px 14px;
}
.promo-card-overlay span { color: #fff; font-weight: 700; font-size: 0.9rem; }

/* ── ③ Main Layout ───────────────────────────────────────────────────────── */
.offers-main-wrap {
    padding-top: 0.5rem;
    padding-bottom: 2rem;
}

.offers-layout {
    display: flex;
    flex-direction: row;
    gap: 24px;
    align-items: flex-start;
}

/* Sidebar — right in RTL (first in DOM) */
.offers-sidebar {
    flex: 0 0 280px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    position: sticky;
    top: 90px;
    max-height: calc(100vh - 110px);
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: #dde6ff transparent;
}
.offers-sidebar::-webkit-scrollbar { width: 4px; }
.offers-sidebar::-webkit-scrollbar-track { background: transparent; }
.offers-sidebar::-webkit-scrollbar-thumb { background: #dde6ff; border-radius: 4px; }

.offers-content { flex: 1 1 0; min-width: 0; }

/* Sidebar boxes */
.sidebar-box {
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 2px 10px rgba(32,66,137,0.08);
    overflow: hidden;
}
.sidebar-box-title {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary-light));
    color: #fff;
    margin: 0;
    padding: 11px 16px;
    font-size: 0.9rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
}
.sidebar-offer-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 12px;
    cursor: pointer;
    border-bottom: 1px solid #f0f4ff;
    transition: background 0.15s;
}
.sidebar-offer-item:last-child { border-bottom: none; }
.sidebar-offer-item:hover { background: #f4f8ff; }
.sidebar-offer-img {
    width: 50px;
    height: 50px;
    object-fit: cover;
    border-radius: 8px;
    flex-shrink: 0;
}
.sidebar-offer-info { flex: 1; min-width: 0; }
.sidebar-offer-name {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--primary-dark);
    margin: 0 0 2px;
    line-height: 1.3;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}
.sidebar-offer-price {
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--primary-light);
    margin: 0;
}
.sidebar-empty { padding: 12px; color: #aaa; font-size: 0.83rem; margin: 0; }

/* ── Category pills ──────────────────────────────────────────────────────── */
.offers-cat-slider {
    display: flex;
    flex-direction: row;
    gap: 8px;
    overflow-x: auto;
    padding: 4px 0 12px;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x proximity;
}
.offers-cat-slider::-webkit-scrollbar { display: none; }
.offer-cat-btn {
    display: inline-flex;
    align-items: center;
    padding: 8px 18px;
    border-radius: 999px;
    border: 1.5px solid #c8d8ff;
    background: #f4f8ff;
    color: var(--primary-dark);
    font-family: inherit;
    font-size: 0.88rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
    flex-shrink: 0;
    box-shadow: 0 1px 4px rgba(32,66,137,0.07);
    scroll-snap-align: start;
    height: 38px;
}
.offer-cat-btn:hover {
    background: #e6eeff;
    border-color: var(--primary-light);
    color: var(--primary-light);
}
.offer-cat-btn.active {
    background: var(--primary-light);
    border-color: var(--primary-light);
    color: #fff;
    box-shadow: 0 3px 12px rgba(32,66,137,0.25);
}

/* ── "More specialties" dropdown ─────────────────────────────────────────── */
.offer-more-wrap {
    position: relative;
    flex-shrink: 0;
}
.offer-more-btn {
    gap: 6px;
    padding-inline-end: 14px;
}
.offer-more-chevron {
    font-size: 0.7em;
    transition: transform 0.2s ease;
}
.offer-more-wrap.open .offer-more-chevron {
    transform: rotate(180deg);
}
.offer-more-dropdown {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    inset-inline-start: 0;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    box-shadow: 0 8px 24px rgba(32,66,137,0.15);
    padding: 8px;
    flex-direction: column;
    gap: 4px;
    min-width: 180px;
    z-index: 200;
}
.offer-more-item {
    white-space: nowrap;
    border-radius: 10px;
    justify-content: flex-start;
    scroll-snap-align: none;
}
.offer-more-item:hover {
    background: #eef2ff;
}

/* ── Offers Grid ─────────────────────────────────────────────────────────── */
.offers-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}
.offers-loading {
    grid-column: 1 / -1;
    text-align: center;
    padding: 3rem;
    color: #aaa;
    font-size: 1.6rem;
}
.offers-empty {
    grid-column: 1 / -1;
    text-align: center;
    padding: 2rem;
    color: #888;
    font-size: 1rem;
}

/* Offer card */
.offer-card {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(32,66,137,0.09);
    transition: transform 0.22s, box-shadow 0.22s;
    opacity: 0;
    transform: translateY(12px);
    cursor: pointer;
}
.offer-card.visible {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.35s ease, transform 0.35s ease;
}
.offer-card:hover { transform: translateY(-4px); box-shadow: 0 8px 24px rgba(32,66,137,0.16); }
.offer-card--link { cursor: pointer; }

.offer-img-wrap { position: relative; overflow: hidden; }
.offer-img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    display: block;
    transition: transform 0.35s ease;
}
.offer-card:hover .offer-img { }

.offer-badge {
    position: absolute;
    top: 8px;
    inset-inline-start: 8px;
    background: var(--primary-dark);
    color: #fff;
    font-size: 0.7rem;
    padding: 3px 9px;
    border-radius: 999px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 4px;
}

.offer-card-body {
    padding: 9px 11px 11px;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.offer-name {
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--primary-dark);
    margin: 0;
    line-height: 1.35;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.offer-price {
    font-size: 0.97rem;
    font-weight: 800;
    color: var(--primary-light);
    margin: 0;
}

.offer-card-actions {
    display: flex;
    gap: 6px;
    align-items: center;
    margin-top: 2px;
}

.offer-book-btn {
    flex: 1;
    padding: 9px 0;
    font-size: 0.8rem;
    min-height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    border-radius: 10px;
}

.offer-details-btn {
    flex-shrink: 0;
    background: transparent;
    border: 1.5px solid var(--primary-light);
    color: var(--primary-light);
    width: 36px;
    height: 36px;
    border-radius: 10px;
    font-family: inherit;
    font-size: 0.84rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s, color 0.15s;
}
.offer-details-btn:hover { background: var(--primary-light); color: #fff; }

/* ── Search + Filter toggle ─────────────────────────────────────────────── */
.offers-search-wrap {
    padding: 14px 0 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}
.offers-search-box {
    flex: 1;
    min-width: 0;
    position: relative;
    display: flex;
    align-items: center;
    background: #fff;
    border: 1.5px solid #dde6ff;
    border-radius: 50px;
    padding: 0 16px;
    box-shadow: 0 2px 10px rgba(32,66,137,0.06);
    transition: border-color 0.2s, box-shadow 0.2s;
    height: 48px;
}
.offers-search-box:focus-within {
    border-color: var(--primary-light);
    box-shadow: 0 2px 16px rgba(32,66,137,0.14);
}
.offers-search-icon { color: var(--primary-light); font-size: 0.95rem; flex-shrink: 0; }
.offers-search-input {
    flex: 1;
    border: none;
    outline: none;
    background: transparent;
    padding: 0 12px;
    font-family: inherit;
    font-size: 0.93rem;
    color: var(--text-main);
    direction: inherit;
    min-width: 0;
}
.offers-search-input::placeholder { color: var(--text-light); }
.offers-search-clear {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-light);
    width: 26px;
    height: 26px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    flex-shrink: 0;
    transition: color 0.15s, background 0.15s;
    font-size: 0.82rem;
}
.offers-search-clear:hover { color: var(--primary-light); background: #f0f4ff; }

.offers-filter-toggle-btn {
    display: none;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 0 18px;
    height: 48px;
    border-radius: 14px;
    border: 1.5px solid #c8d8ff;
    background: #f4f8ff;
    color: var(--primary-dark);
    font-family: inherit;
    font-size: 0.88rem;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
    flex-shrink: 0;
    transition: all 0.2s ease;
}
.offers-filter-toggle-btn i { color: var(--primary-light); font-size: 0.95rem; }
.offers-filter-toggle-btn.has-filters {
    background: var(--primary-light);
    border-color: var(--primary-light);
    color: #fff;
}
.offers-filter-toggle-btn.has-filters i { color: #fff; }

/* ── Filter panel ────────────────────────────────────────────────────────── */
.offers-filter-panel-wrap { position: relative; }
.offers-filter-panel { /* transparent on desktop */ }
.offers-filter-panel-overlay { display: none; }
.offers-filter-panel-header { display: none; }
.offers-filter-panel-footer { display: none; }

/* Filters bar — desktop inline */
.offers-filters-bar {
    display: flex;
    flex-wrap: nowrap;
    gap: 10px;
    align-items: center;
    padding: 10px 0 12px;
    border-bottom: 1.5px solid #eef2ff;
    margin-bottom: 6px;
    overflow-x: auto;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
}
.offers-filters-bar::-webkit-scrollbar { display: none; }

.filter-group { display: flex; align-items: center; gap: 6px; flex-shrink: 0; }
.filter-group-label {
    font-size: 0.73rem;
    font-weight: 700;
    color: var(--text-light);
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 4px;
    background: #f0f4ff;
    padding: 4px 10px;
    border-radius: 999px;
}
.filter-group-label i { color: var(--primary-light); font-size: 0.7rem; }
.filter-chips-row { display: flex; gap: 5px; flex-wrap: nowrap; }
.filter-chip {
    background: #fff;
    border: 1.5px solid #dde6ff;
    color: var(--text-main);
    font-family: inherit;
    font-size: 0.76rem;
    font-weight: 600;
    padding: 5px 12px;
    border-radius: 999px;
    cursor: pointer;
    transition: all 0.18s ease;
    white-space: nowrap;
    flex-shrink: 0;
    box-shadow: 0 1px 3px rgba(32,66,137,0.05);
}
.filter-chip:hover { border-color: var(--primary-light); color: var(--primary-light); background: #f0f4ff; }
.filter-chip.active { background: var(--primary-light); border-color: var(--primary-light); color: #fff; box-shadow: 0 2px 10px rgba(32,66,137,0.22); }
.filter-featured-toggle { margin-inline-start: auto; flex-shrink: 0; display: flex; align-items: center; gap: 5px; }
.filter-featured-toggle.active { background: linear-gradient(135deg,#f59e0b,#fbbf24); border-color: #f59e0b; color: #fff; box-shadow: 0 2px 10px rgba(245,158,11,.3); }

/* Results count */
.offers-results-count {
    font-size: 0.78rem;
    color: var(--text-light);
    margin: 2px 0 8px;
    min-height: 1em;
    display: flex;
    align-items: center;
    gap: 4px;
}
.offers-results-count strong { color: var(--primary-light); font-weight: 700; }

.offers-no-results {
    grid-column: 1 / -1;
    text-align: center;
    padding: 3rem 1rem;
    color: var(--text-light);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}
.offers-no-results i { font-size: 2.5rem; color: #c8d6ff; }
.offers-no-results p { margin: 0; font-size: 0.95rem; }

/* ═══════════════════════════════
   RESPONSIVE
   ═══════════════════════════════ */

/* Wide desktop ≥1240px */
@media (min-width: 1240px) {
    .offers-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
}

/* Desktop 1024-1239px */
@media (max-width: 1239px) and (min-width: 1024px) {
    .offers-sidebar { flex: 0 0 250px; }
    .offers-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
}

/* Tablet portrait ≤1023px — sidebar moves below grid */
@media (max-width: 1023px) {
    .offers-layout { flex-direction: column; gap: 0; }
    .offers-sidebar {
        position: static;
        flex: 0 0 auto;
        flex-direction: row;
        flex-wrap: wrap;
        max-height: none;
        overflow-y: visible;
        gap: 14px;
        padding: 1.2rem 0 0;
        order: 10;
    }
    .sidebar-box { flex: 1 1 280px; min-width: 0; }
    .offers-content { width: 100%; }
    .offers-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
    .offers-promo-grid { grid-template-columns: repeat(3, 1fr); gap: 12px; }
    .offers-main-slider {
        max-width: none;
        margin: 10px 16px 16px;
        width: calc(100% - 32px);
        border-radius: 18px;
        aspect-ratio: 16 / 6;
    }
}

/* Mobile ≤767px */
@media (max-width: 767px) {
    .offers-main-wrap { padding-top: 0; }

    /* Slider: 12px padding each side, fixed aspect ratio */
    .offers-main-slider {
        margin: 10px 12px 14px;
        width: calc(100% - 24px);
        max-width: none;
        border-radius: 16px;
        aspect-ratio: 1080 / 620;
    }

    /* Hide arrows — swipe instead */
    .offer-slide-arrow { display: none; }

    /* No promo grid on mobile */
    .offers-promo-section { display: none !important; }

    /* Sidebar below grid */
    .offers-sidebar {
        display: flex;
        flex-direction: row;
        flex-wrap: wrap;
        gap: 12px;
        padding: 1rem 0 0.5rem;
        order: 10;
    }
    .sidebar-box { flex: 1 1 240px; min-width: 0; }

    /* Show filter toggle */
    .offers-filter-toggle-btn { display: flex; }

    /* 2-column grid */
    .offers-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }

    /* Card */
    .offer-img { aspect-ratio: 1 / 1; }
    .offer-card-body { padding: 8px 10px 10px; gap: 4px; }
    .offer-name { font-size: 0.8rem; -webkit-line-clamp: 2; }
    .offer-price { font-size: 0.9rem; }
    .offer-book-btn { padding: 8px 0; font-size: 0.76rem; min-height: 36px; }
    .offer-details-btn { width: 34px; height: 34px; font-size: 0.78rem; }
    .offer-card { border-radius: 14px; }

    /* Category pills */
    .offer-cat-btn { padding: 7px 14px; font-size: 0.84rem; height: 36px; }

    /* Search */
    .offers-search-wrap { padding: 10px 0 8px; gap: 8px; }
    .offers-search-box { height: 46px; }
    .offers-search-input { font-size: 0.88rem; }
    .offers-filter-toggle-btn { height: 46px; padding: 0 14px; font-size: 0.84rem; }

    /* Banner CTA */
    .offer-banner-cta { bottom: 10px; inset-inline-end: 12px; }
    .offer-banner-cta .btn { padding: 7px 16px; font-size: 0.78rem; }

    /* Dots */
    .slide-dot { width: 7px; height: 7px; }
    .slide-dot.active { width: 16px; }

    /* Bottom sheet filter panel */
    .offers-filter-panel-overlay {
        display: block;
        position: fixed;
        inset: 0;
        background: rgba(8,20,60,0.5);
        backdrop-filter: blur(4px);
        -webkit-backdrop-filter: blur(4px);
        z-index: 1100;
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.3s ease, visibility 0.3s ease;
    }
    .offers-filter-panel-wrap.open .offers-filter-panel-overlay {
        opacity: 1;
        visibility: visible;
    }
    .offers-filter-panel {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        z-index: 1101;
        background: #fff;
        border-radius: 22px 22px 0 0;
        box-shadow: 0 -6px 40px rgba(0,0,0,0.18);
        transform: translateY(100%);
        transition: transform 0.38s cubic-bezier(0.32,0.72,0,1);
        max-height: 82vh;
        display: flex;
        flex-direction: column;
        overflow: hidden;
    }
    .offers-filter-panel-wrap.open .offers-filter-panel {
        transform: translateY(0);
    }
    .offers-filter-panel::before {
        content: '';
        display: block;
        width: 40px;
        height: 4px;
        background: #dde6ff;
        border-radius: 999px;
        margin: 12px auto 0;
        flex-shrink: 0;
    }
    .offers-filter-panel-header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 12px 20px 10px;
        border-bottom: 1px solid #eef2ff;
        flex-shrink: 0;
    }
    .offers-filter-panel-title {
        font-size: 0.97rem;
        font-weight: 700;
        color: var(--primary-dark);
        display: flex;
        align-items: center;
        gap: 8px;
    }
    .offers-filter-panel-title i { color: var(--primary-light); }
    .offers-filter-panel-close {
        background: #f0f4ff;
        border: none;
        color: var(--primary-dark);
        width: 32px;
        height: 32px;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        font-size: 0.85rem;
        transition: background 0.15s;
    }
    .offers-filter-panel-close:hover { background: #dde6ff; }
    .offers-filters-bar {
        flex-wrap: wrap !important;
        overflow-x: hidden !important;
        overflow-y: auto;
        padding: 16px 20px !important;
        gap: 16px !important;
        flex: 1;
        align-items: flex-start;
        border-bottom: none;
        margin-bottom: 0;
    }
    .filter-group { flex-direction: column; align-items: flex-start; gap: 8px; }
    .filter-chips-row { flex-wrap: wrap !important; gap: 7px !important; }
    .filter-group-label { font-size: 0.76rem; background: transparent; padding: 0; color: var(--primary-dark); }
    .filter-featured-toggle { margin-inline-start: 0 !important; }
    .offers-filter-panel-footer {
        display: flex;
        gap: 10px;
        padding: 12px 20px calc(12px + env(safe-area-inset-bottom,0px));
        border-top: 1px solid #eef2ff;
        flex-shrink: 0;
    }
    .offers-filter-apply-btn {
        flex: 1;
        padding: 13px;
        font-size: 0.93rem;
        font-weight: 700;
        border-radius: 14px;
        background: var(--primary-light);
        color: #fff;
        border: none;
        cursor: pointer;
    }
    .offers-filter-reset-btn {
        padding: 13px 18px;
        font-size: 0.88rem;
        font-weight: 600;
        border-radius: 14px;
        background: #f0f4ff;
        color: var(--primary-dark);
        border: none;
        cursor: pointer;
    }
}

/* Small mobile ≤480px */
@media (max-width: 480px) {
    .offers-grid { gap: 10px; }
    .offer-card-body { padding: 7px 8px 9px; }
    .offer-name { font-size: 0.76rem; }
    .offer-price { font-size: 0.84rem; }
    .offer-book-btn { font-size: 0.72rem; min-height: 34px; }
    .offers-main-slider { margin: 8px 10px 12px; width: calc(100% - 20px); }
}

/* Tiny ≤359px: single column */
@media (max-width: 359px) {
    .offers-grid { grid-template-columns: 1fr; gap: 12px; }
    .offers-main-slider { margin: 8px 8px 12px; width: calc(100% - 16px); }
    .offer-cat-btn { font-size: 0.8rem; padding: 6px 12px; }
}


/* ═══════════════════════════════════════════════════════════════════════════
   LIGHTBOX
   ═══════════════════════════════════════════════════════════════════════════ */
.offer-lightbox {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}
.offer-lightbox.open {
    opacity: 1;
    visibility: visible;
}
.lb-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(8, 15, 40, 0.92);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    cursor: pointer;
}
.lb-content {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 18px;
    max-width: min(88vw, 700px);
    transform: scale(0.88) translateY(20px);
    transition: transform 0.35s cubic-bezier(0.34, 1.45, 0.64, 1);
}
.offer-lightbox.open .lb-content {
    transform: scale(1) translateY(0);
}
.lb-img {
    width: 100%;
    max-height: 72vh;
    object-fit: contain;
    border-radius: 18px;
    box-shadow: 0 24px 80px rgba(0,0,0,0.55);
    display: block;
    user-select: none;
}
.lb-close {
    position: absolute;
    top: -14px;
    inset-inline-end: -14px;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: #fff;
    border: none;
    font-size: 1rem;
    cursor: pointer;
    color: var(--primary-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 3px 14px rgba(0,0,0,0.25);
    transition: transform 0.15s, background 0.15s;
    z-index: 2;
}
.lb-close:hover { transform: scale(1.12); background: #f0f4ff; }
.lb-caption {
    display: flex;
    align-items: center;
    gap: 14px;
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255,255,255,0.18);
    border-radius: 999px;
    padding: 10px 22px;
    color: #fff;
    flex-wrap: wrap;
    justify-content: center;
    max-width: 100%;
}
.lb-name { font-size: 0.97rem; font-weight: 700; text-align: center; }
.lb-price {
    font-size: 1.1rem;
    font-weight: 900;
    color: #ffd966;
    white-space: nowrap;
}
.lb-hint {
    font-size: 0.72rem;
    color: rgba(255,255,255,0.45);
    text-align: center;
    margin-top: -8px;
}

/* Offer image wrap — cursor + zoom hint */
.offer-img-wrap[data-img] {
    cursor: zoom-in;
    position: relative;
}
.offer-img-wrap[data-img]::after {
    content: '\f00e';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    inset-inline-end: 10px;
    bottom: 10px;
    background: rgba(255,255,255,0.85);
    color: var(--primary-dark);
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    opacity: 0;
    transition: opacity 0.2s;
    pointer-events: none;
    line-height: 30px;
    text-align: center;
}
.offer-img-wrap[data-img]:hover::after { opacity: 1; }
.offer-img-wrap[data-img] .offer-img {
    transition: transform 0.35s ease;
}
.offer-img-wrap[data-img]:hover .offer-img { }

/* Hover progress ring on offer cards */
.lb-hover-ring {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 5;
    border-radius: inherit;
    overflow: hidden;
}
.lb-hover-ring svg {
    position: absolute;
    top: 8px;
    inset-inline-end: 8px;
    width: 34px;
    height: 34px;
    transform: rotate(-90deg);
    opacity: 0;
    transition: opacity 0.2s;
}
.lb-hover-ring svg circle {
    fill: none;
    stroke: #fff;
    stroke-width: 3;
    stroke-dasharray: 88;
    stroke-dashoffset: 88;
    stroke-linecap: round;
    transition: stroke-dashoffset linear;
}
.offer-img-wrap[data-img]:hover .lb-hover-ring svg { opacity: 1; }

/* ═══════════════════════════════════════════════════════════════════════════
   صفحة تفاصيل العرض — تصميم احترافي
   ═══════════════════════════════════════════════════════════════════════════ */
.offer-detail-page { padding-bottom: 4rem; }

.offer-detail-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 320px;
    font-size: 2.2rem;
    color: var(--primary-light);
}
.offer-detail-error {
    text-align: center;
    padding: 4rem 1rem;
    color: var(--text-light);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}
.offer-detail-error i { font-size: 3rem; color: #e74c3c; }

/* ── Breadcrumb ── */
.offer-detail-breadcrumb {
    font-size: 0.82rem;
    color: var(--text-light);
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}
.bread-sep { color: #bcc6dd; }
.bread-link {
    cursor: pointer;
    color: var(--primary-light);
    font-weight: 600;
    transition: opacity 0.15s;
}
.bread-link:hover { opacity: 0.7; }
.bread-current { color: var(--text-main); font-weight: 700; }

/* ── Hero grid ── */
.offer-detail-hero {
    display: grid;
    grid-template-columns: 460px 1fr;
    gap: 48px;
    align-items: start;
    margin-bottom: 3rem;
}

/* Image side */
.offer-detail-img-side { display: flex; flex-direction: column; gap: 14px; }
.offer-detail-img-wrap {
    position: relative;
    border-radius: 22px;
    overflow: hidden;
    box-shadow: 0 8px 40px rgba(32,66,137,0.18);
    cursor: zoom-in;
}
.offer-detail-img-wrap::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(32,66,137,0);
    transition: background 0.25s;
    border-radius: inherit;
    pointer-events: none;
}
.offer-detail-img-wrap:hover::after { background: rgba(32,66,137,0.08); }
.offer-detail-img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}
.offer-detail-img-wrap:hover .offer-detail-img { transform: scale(1.04); }
.offer-detail-zoom-hint {
    position: absolute;
    bottom: 14px;
    inset-inline-end: 14px;
    background: rgba(255,255,255,0.9);
    backdrop-filter: blur(6px);
    color: var(--primary-dark);
    font-size: 0.78rem;
    font-weight: 700;
    padding: 6px 14px;
    border-radius: 999px;
    display: flex;
    align-items: center;
    gap: 6px;
    opacity: 0;
    transform: translateY(6px);
    transition: opacity 0.25s, transform 0.25s;
    pointer-events: none;
}
.offer-detail-img-wrap:hover .offer-detail-zoom-hint {
    opacity: 1;
    transform: translateY(0);
}
.offer-detail-badge {
    position: absolute;
    top: 14px;
    inset-inline-start: 14px;
    background: linear-gradient(135deg, var(--primary-dark), var(--primary-light));
    color: #fff;
    font-size: 0.78rem;
    font-weight: 700;
    padding: 5px 16px;
    border-radius: 999px;
    box-shadow: 0 3px 12px rgba(32,66,137,0.3);
}
.offer-detail-img-click-hint {
    text-align: center;
    font-size: 0.78rem;
    color: var(--text-light);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}
.offer-detail-img-click-hint i { color: var(--primary-light); }

/* Info side */
.offer-detail-info {
    display: flex;
    flex-direction: column;
    gap: 18px;
    padding-top: 6px;
}
.offer-detail-cat {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #eef2ff;
    color: var(--primary-light);
    font-size: 0.82rem;
    font-weight: 700;
    padding: 6px 16px;
    border-radius: 999px;
    align-self: flex-start;
    border: 1.5px solid #c7d8ff;
}
.offer-detail-title {
    font-size: 1.9rem;
    font-weight: 900;
    color: var(--primary-dark);
    margin: 0;
    line-height: 1.25;
}
.offer-detail-price-box {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 20px;
    background: linear-gradient(135deg, #eef4ff 0%, #f4f8ff 100%);
    border-radius: 14px;
    border: 1.5px solid #c7d8ff;
}
.offer-detail-price-label {
    font-size: 0.82rem;
    color: var(--text-light);
    font-weight: 600;
}
.offer-detail-price {
    font-size: 2.1rem;
    font-weight: 900;
    color: var(--primary-light);
    line-height: 1;
}
.offer-detail-desc {
    font-size: 1rem;
    color: var(--text-main);
    line-height: 1.9;
    margin: 0;
    padding: 16px 18px;
    background: #fafbff;
    border-radius: 12px;
    border-inline-start: 3px solid var(--primary-light);
}

/* Includes */
.offer-detail-includes-wrap {
    background: #f4f8ff;
    border-radius: 16px;
    padding: 18px 20px;
    border: 1.5px solid #dce8ff;
}
.includes-title {
    font-size: 1rem;
    font-weight: 800;
    color: var(--primary-dark);
    margin: 0 0 14px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.includes-title i { color: var(--primary-light); }
.offer-detail-includes {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 10px;
}
.offer-detail-includes li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 0.9rem;
    color: var(--text-main);
    font-weight: 500;
    background: #fff;
    padding: 9px 12px;
    border-radius: 10px;
    border: 1px solid #e0eaff;
    line-height: 1.4;
}
.offer-detail-includes li i { color: #22c55e; font-size: 0.88rem; flex-shrink: 0; margin-top: 2px; }

/* CTA buttons */
.offer-detail-cta-row {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    align-items: center;
    margin-top: 4px;
}
.offer-detail-cta {
    padding: 14px 36px;
    font-size: 1rem;
    font-weight: 700;
    border-radius: 999px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.offer-detail-share {
    background: transparent;
    border: 1.5px solid var(--primary-light);
    color: var(--primary-light);
    padding: 12px 20px;
    border-radius: 999px;
    font-family: inherit;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: background 0.15s, color 0.15s;
}
.offer-detail-share:hover { background: var(--primary-light); color: #fff; }

/* ── Related Offers ── */
.offer-related-section {
    margin-top: 3rem;
    padding-top: 2.5rem;
    border-top: 1.5px solid #e8eeff;
}
.offer-related-title {
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--primary-dark);
    margin: 0 0 1.5rem;
    display: flex;
    align-items: center;
    gap: 10px;
}
.offer-related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 18px;
}

/* ── Responsive ── */
@media (max-width: 900px) {
    .offer-detail-hero { grid-template-columns: 1fr; gap: 28px; }
    .offer-detail-img-side { max-width: 480px; margin: 0 auto; width: 100%; }
}
@media (max-width: 520px) {
    .offer-detail-title { font-size: 1.4rem; }
    .offer-detail-price { font-size: 1.6rem; }
    .offer-detail-includes { grid-template-columns: 1fr; }
    .offer-detail-cta { width: 100%; justify-content: center; }
    .offer-detail-share { width: 100%; justify-content: center; }
}

/* ══════════════════════════════════════════════════════════════
   HOME — OFFERS SLIDER SECTION
   ══════════════════════════════════════════════════════════════ */
.home-offers-slider-section {
    padding: 34px 0 22px;
    background: var(--white);
}

.home-section-head {
    text-align: center;
    margin-bottom: 0.4rem;
}

.home-section-desc {
    color: var(--text-light);
    text-align: center;
    margin-bottom: 0.4rem;
    font-size: 0.95rem;
}

/* يستخدم نفس offer-slide* من صفحة العروض */
.home-offers-slider {
    position: relative;
    width: 100%;
    max-width: 1200px;
    margin: 16px auto 16px;
    border-radius: 22px;
    overflow: hidden;
    background: #eef3ff;
    aspect-ratio: 1440 / 420;
    box-shadow: 0 4px 24px rgba(32, 66, 137, 0.10);
    cursor: pointer;
}

.home-offers-slider .offer-slide-arrow {
    display: flex;
}

/* ══════════════════════════════════════════════════════════════
   HOME — ACCOUNT CARDS SECTION
   ══════════════════════════════════════════════════════════════ */
.home-account-section {
    padding: 28px 0 36px;
    background: var(--gray-bg);
}

.home-account-head {
    text-align: center;
    margin-bottom: 1.4rem;
}

.home-account-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-dark);
    margin-bottom: 0.35rem;
}

.home-account-desc {
    color: var(--text-light);
    font-size: 0.95rem;
}

.home-account-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.home-account-card {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 22px;
    background: #fff;
    border-radius: 20px;
    border: 1px solid rgba(32, 66, 137, 0.10);
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 2px 10px rgba(32, 66, 137, 0.06);
    user-select: none;
}

.home-account-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(32, 66, 137, 0.14);
}

.home-account-icon {
    width: 52px;
    height: 52px;
    min-width: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(32, 66, 137, 0.08);
    border-radius: 50%;
    font-size: 1.4rem;
    color: var(--primary-dark);
}

.home-account-content {
    flex: 1;
    min-width: 0;
}

.home-account-card-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--primary-dark);
    margin-bottom: 0.2rem;
}

.home-account-card-desc {
    font-size: 0.82rem;
    color: var(--text-light);
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.home-account-action {
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--primary-light);
    white-space: nowrap;
    padding: 4px 10px;
    border-radius: 999px;
    background: rgba(32, 66, 137, 0.07);
    flex-shrink: 0;
}

/* ── Responsive ─────────────────────────────────────────────── */
@media (max-width: 900px) {
    .home-account-grid {
        grid-template-columns: 1fr;
        max-width: 560px;
    }
}

@media (max-width: 768px) {
    .home-offers-slider-section { padding: 22px 0 14px; }

    .home-offers-slider {
        width: calc(100vw - 24px);
        margin: 12px auto;
        aspect-ratio: 1080 / 620;
        min-height: 190px;
        max-height: 240px;
        border-radius: 16px;
    }

    /* إخفاء الأسهم على الموبايل — swipe كافي */
    .home-offers-slider .offer-slide-arrow { display: none; }

    .home-account-section { padding: 22px 0 28px; }

    .home-account-grid {
        grid-template-columns: 1fr;
        gap: 10px;
        padding: 0 0.75rem;
    }

    .home-account-card {
        padding: 14px 16px;
        min-height: 108px;
        border-radius: 16px;
    }

    .home-account-icon {
        width: 44px;
        height: 44px;
        min-width: 44px;
        font-size: 1.15rem;
    }

    .home-account-card-title { font-size: 0.95rem; }
}

/* ══════════════════════════════════════════════════════════════
   FLOATING BUTTONS — محاذاة على نفس المستوى (desktop)
   ══════════════════════════════════════════════════════════════ */

/* Desktop: زر الحجز وزر البوت على نفس bottom */
@media (min-width: 769px) {
    .floating-book-btn {
        bottom: 24px;
        right: 24px;
    }

    .ocean-chat-bubble {
        bottom: 24px;
        left: 24px;
    }

    /* نافذة الشات تفتح فوق البابل: 24 + 56(بابل) + 8(gap) = 88 */
    .ocean-chat-window {
        bottom: calc(88px + env(safe-area-inset-bottom, 0px));
        left: 24px;
    }

    /* فقاعة الترحيب بجانب البابل */
    .ocean-welcome-bubble {
        bottom: calc(18px + env(safe-area-inset-bottom, 0px));
        left: 92px;
    }
}

/* Mobile: أخفِ float bubble — الشريط السفلي يحمل زر مساعد أوشن */
@media (max-width: 768px) {
    .ocean-chat-bubble,
    .ocean-welcome-bubble {
        display: none !important;
    }
}

/* ─── Dermatology Sub-filters ─────────────────────────────── */
.derma-sub-filter {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem;
    margin-top: 0.75rem;
    padding: 0.75rem;
    background: var(--gray-bg);
    border-radius: 14px;
    border: 1.5px solid rgba(32, 66, 137, 0.08);
    animation: fadeInUp 0.22s ease;
}

/* "الكل" يمتد على العمودين كاملاً → 3 صفوف */
.derma-sub-btn:first-child {
    grid-column: 1 / -1;
}

/* على الشاشات الكبيرة: صف واحد أفقي */
@media (min-width: 640px) {
    .derma-sub-filter {
        grid-template-columns: repeat(5, 1fr);
    }
    .derma-sub-btn:first-child {
        grid-column: auto;
    }
}

.derma-sub-btn {
    padding: 0.55rem 0.75rem;
    border-radius: 10px;
    border: 1.5px solid var(--primary-light);
    background: #fff;
    color: var(--primary);
    font-size: 0.85rem;
    font-family: inherit;
    cursor: pointer;
    text-align: center;
    width: 100%;
    transition: background 0.18s, color 0.18s, box-shadow 0.15s;
}
.derma-sub-btn:hover {
    background: var(--primary-light);
    color: #fff;
    box-shadow: 0 2px 8px rgba(32,66,137,0.18);
}
.derma-sub-btn.active {
    background: var(--primary-light);
    color: #fff;
    font-weight: 600;
    box-shadow: 0 2px 10px rgba(32,66,137,0.22);
}

/* ══════════════════════════════════════════════════════════════
   HOME SLIDER — OVERLAY CTA
   ══════════════════════════════════════════════════════════════ */
.home-slide-overlay {
    position: absolute;
    bottom: 0;
    inset-inline-start: 0;
    width: 100%;
    padding: 1rem 1.5rem 1.2rem;
    background: linear-gradient(to top, rgba(10,24,60,0.72) 0%, transparent 100%);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    pointer-events: none;
    z-index: 3;
}

.home-slide-label {
    color: #fff;
    font-size: 1.15rem;
    font-weight: 700;
    text-shadow: 0 1px 6px rgba(0,0,0,0.5);
    flex: 1;
}

.home-slide-cta {
    pointer-events: all;
    background: var(--primary-light);
    color: #fff;
    border: none;
    border-radius: 30px;
    padding: 0.45rem 1.2rem;
    font-size: 0.88rem;
    font-family: inherit;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.18s, transform 0.15s;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.home-slide-cta:hover { background: var(--primary-dark); transform: translateY(-2px); }

@media (max-width: 520px) {
    .home-slide-label   { font-size: 0.92rem; }
    .home-slide-cta     { padding: 0.35rem 0.85rem; font-size: 0.78rem; }
    .home-slide-overlay { padding: 0.65rem 0.9rem 0.9rem; }
}

/* ══════════════════════════════════════════════════════════════
   OFFERS — EMPTY STATE
   ══════════════════════════════════════════════════════════════ */
.offers-empty-state {
    grid-column: 1 / -1;
    text-align: center;
    padding: 3.5rem 1rem;
    color: var(--text-light);
}

.offers-empty-state i {
    font-size: 3rem;
    color: var(--primary-light);
    opacity: 0.5;
    display: block;
    margin-bottom: 0.8rem;
}

.offers-empty-state p {
    font-size: 1.05rem;
    margin-bottom: 1.2rem;
}
