/* ===================================
   Familac - Premium Baby Nutrition
   World-Class Design System
   =================================== */

/* ===== CSS VARIABLES ===== */
:root {
    /* Logo Colors - من شعار Familac */
    --familac-blue: #1e3a8a;      /* الأزرق الداكن من الشعار */
    --familac-blue-light: #3b82f6; /* الأزرق الفاتح */
    --familac-yellow: #fbbf24;     /* الأصفر من الشعار */
    --familac-yellow-dark: #f59e0b; /* الأصفر الداكن */

    /* Dark Mode Colors (Default) */
    --primary-gold: #d4af37;
    --gold-light: #f4d03f;
    --dark-bg: #0a0a0f;
    --dark-card: #1a1a2e;
    --dark-lighter: #16213e;
    --text-white: #ffffff;
    --text-gray: #b8b8b8;
    --accent-blue: #3498db;
    --accent-green: #27ae60;
    --accent-red: #e74c3c;

    /* Gradients */
    --gradient-gold: linear-gradient(135deg, #d4af37 0%, #f4d03f 100%);
    --gradient-dark: linear-gradient(135deg, #0a0a0f 0%, #1a1a2e 100%);
    --gradient-blue: linear-gradient(135deg, #667eea 0%, #764ba2 100%);

    /* Spacing */
    --container-width: 1400px;
    --section-padding: 120px 0;

    /* Transitions */
    --transition-smooth: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-bounce: all 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

/* ===== LIGHT MODE (Sun Mode) - ألوان الشعار ===== */
body.light-mode {
    /* Background Colors */
    --dark-bg: #ffffff;           /* خلفية بيضاء */
    --dark-card: #f8fafc;         /* كروت فاتحة */
    --dark-lighter: #e2e8f0;      /* خلفية أفتح */

    /* Text Colors */
    --text-white: #1e3a8a;        /* النص بالأزرق من الشعار */
    --text-gray: #475569;         /* النص الثانوي رمادي داكن */

    /* Primary Colors */
    --primary-gold: #fbbf24;      /* الأصفر من الشعار للأيقونات */
    --gold-light: #fcd34d;        /* أصفر فاتح */

    /* Gradients */
    --gradient-gold: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
    --gradient-dark: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
}

/* ===== RESET & BASE ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* ===== FIX AOS VISIBILITY ISSUES ===== */
[data-aos] {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
}

/* Re-enable AOS animations after initialization */
.aos-init[data-aos] {
    opacity: 1;
    pointer-events: auto;
}

.aos-animate[data-aos] {
    opacity: 1;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Cairo', 'Inter', 'Poppins', sans-serif;
    background: var(--dark-bg);
    color: var(--text-white);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    overflow-x: hidden;
}

html[lang="ku"] body,
html[lang="ku"] button,
html[lang="ku"] input,
html[lang="ku"] select,
html[lang="ku"] textarea {
    font-family: 'Vazirmatn', 'Cairo', 'Inter', 'Poppins', sans-serif;
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 2rem;
}

/* ===== HEADER ===== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(10, 10, 15, 0.8);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: var(--transition-smooth);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.5rem 0;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    color: var(--text-white);
    font-size: 1.75rem;
    font-weight: 800;
    transition: var(--transition-smooth);
}

.logo-img {
    height: 50px;
    width: auto;
    object-fit: contain;
}

.logo i {
    font-size: 2rem;
    background: var(--gradient-gold);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.logo:hover {
    transform: translateY(-2px);
}

.logo span {
    display: none;
}

.nav {
    display: flex;
    gap: 3rem;
}

.nav-link {
    color: var(--text-gray);
    text-decoration: none;
    font-weight: 500;
    font-size: 1rem;
    position: relative;
    transition: var(--transition-smooth);
    padding: 0.5rem 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-gold);
    transition: var(--transition-smooth);
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary-gold);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.btn-icon {
    width: 45px;
    height: 45px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-white);
    cursor: pointer;
    transition: var(--transition-smooth);
    font-size: 1.125rem;
}

.btn-icon span {
    font-size: 0.75rem;
    font-weight: 600;
    margin-right: 0.25rem;
}

.btn-icon:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
    color: var(--primary-gold);
}

/* ===== PROFESSIONAL LANGUAGE DROPDOWN ===== */
.lang-dropdown {
    position: relative;
}

.lang-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.25rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50px;
    color: var(--text-white);
    cursor: pointer;
    transition: var(--transition-smooth);
    font-size: 0.9rem;
    font-weight: 500;
    white-space: nowrap;
}

.lang-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--primary-gold);
    transform: translateY(-2px);
}

.lang-btn i:first-child {
    font-size: 1.1rem;
    color: var(--primary-gold);
}

.lang-btn i:last-child {
    font-size: 0.7rem;
    transition: var(--transition-smooth);
}

.lang-dropdown.active .lang-btn i:last-child {
    transform: rotate(180deg);
}

.lang-menu {
    position: absolute;
    top: calc(100% + 0.5rem);
    right: 0;
    background: var(--dark-card);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 0.5rem;
    min-width: 200px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: var(--transition-smooth);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    z-index: 1000;
    backdrop-filter: blur(20px);
}

.lang-dropdown.active .lang-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.lang-option {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    background: transparent;
    border: none;
    border-radius: 12px;
    color: var(--text-white);
    cursor: pointer;
    transition: var(--transition-smooth);
    width: 100%;
    text-align: left;
    font-size: 0.95rem;
}

.lang-option:hover {
    background: rgba(255, 255, 255, 0.05);
}

.lang-option.active {
    background: rgba(212, 175, 55, 0.1);
    color: var(--primary-gold);
}

.lang-flag {
    font-size: 1.5rem;
    line-height: 1;
}

.lang-name {
    flex: 1;
    font-weight: 500;
}

.lang-check {
    color: var(--primary-gold);
    font-size: 0.9rem;
    opacity: 0;
    transition: var(--transition-smooth);
}

.lang-option.active .lang-check {
    opacity: 1;
}

/* RTL Support for Language Menu */
[dir="rtl"] .lang-menu {
    right: auto;
    left: 0;
}

[dir="rtl"] .lang-option {
    text-align: right;
}

.btn-primary {
    padding: 0.875rem 2rem;
    background: var(--gradient-gold);
    color: var(--dark-bg);
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    transition: var(--transition-smooth);
    display: inline-block;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(212, 175, 55, 0.3);
}

.mobile-menu-btn {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 4px;
    width: 45px;
    height: 45px;
    background: rgba(212, 175, 55, 0.08);
    border: 1.5px solid rgba(212, 175, 55, 0.25);
    border-radius: 10px;
    padding: 0;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.mobile-menu-btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.1), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.mobile-menu-btn:hover::before {
    opacity: 1;
}

.mobile-menu-btn span {
    width: 20px;
    height: 2px;
    background: var(--primary-gold);
    transition: all 0.3s ease;
    border-radius: 2px;
    position: relative;
    z-index: 1;
}

.mobile-menu-btn:hover {
    background: rgba(212, 175, 55, 0.15);
    border-color: var(--primary-gold);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(212, 175, 55, 0.2);
}

.mobile-menu-btn:hover span {
    background: var(--primary-gold);
    box-shadow: 0 0 6px rgba(212, 175, 55, 0.4);
}

.mobile-menu-btn:active {
    transform: translateY(0);
}

/* Hide mobile menu actions on desktop */
.mobile-menu-actions {
    display: none;
}

/* ===== HERO SECTION ===== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    padding: calc(80px + 4rem) 0 4rem;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.gradient-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.3;
    animation: float 20s ease-in-out infinite;
}

.orb-1 {
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(212, 175, 55, 0.4) 0%, transparent 70%);
    top: -200px;
    right: -100px;
}

.orb-2 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(52, 152, 219, 0.3) 0%, transparent 70%);
    bottom: -150px;
    left: -100px;
    animation-delay: -5s;
}

.orb-3 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(155, 89, 182, 0.3) 0%, transparent 70%);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation-delay: -10s;
}

@keyframes float {
    0%, 100% {
        transform: translate(0, 0) scale(1);
    }
    33% {
        transform: translate(30px, -30px) scale(1.1);
    }
    66% {
        transform: translate(-20px, 20px) scale(0.9);
    }
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-left {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1.5rem;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50px;
    width: fit-content;
    font-size: 0.875rem;
    font-weight: 500;
}

.badge i {
    color: var(--primary-gold);
}

.hero-title {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.title-top {
    font-size: 1.25rem;
    font-weight: 500;
    color: var(--text-gray);
}

.title-main {
    font-size: 5rem;
    font-weight: 900;
    line-height: 1;
    letter-spacing: -2px;
}

.gradient-text {
    background: var(--gradient-gold);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.title-sub {
    font-size: 2rem;
    font-weight: 600;
    color: var(--text-white);
}

.hero-description {
    font-size: 1.125rem;
    line-height: 1.8;
    color: var(--text-gray);
    max-width: 600px;
}

.hero-cta {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.btn-hero-primary,
.btn-hero-secondary {
    padding: 1.125rem 2.5rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1.125rem;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    transition: var(--transition-smooth);
}

.btn-hero-primary {
    background: var(--gradient-gold);
    color: var(--dark-bg);
}

.btn-hero-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(212, 175, 55, 0.4);
}

.btn-hero-secondary {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-white);
}

.btn-hero-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-3px);
}

.hero-stats {
    display: flex;
    gap: 3rem;
    margin-top: 1rem;
}

.stat {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.stat-number {
    font-size: 3rem;
    font-weight: 800;
    background: var(--gradient-gold);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-label {
    font-size: 0.875rem;
    color: var(--text-gray);
    font-weight: 500;
}

.hero-right {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-showcase {
    position: relative;
    width: 100%;
    max-width: 500px;
    height: 550px;
}

/* Circular Slider */
.circular-slider {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.slider-track {
    position: relative;
    width: 100%;
    height: 100%;
}

.product-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transform: scale(0.8) rotateY(90deg);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
    z-index: 1;
}

.product-slide.active {
    opacity: 1;
    transform: scale(1) rotateY(0deg);
    pointer-events: auto;
    z-index: 2;
}

.product-slide.prev {
    opacity: 0;
    transform: scale(0.8) rotateY(-90deg);
}

.product-slide.next {
    opacity: 0;
    transform: scale(0.8) rotateY(90deg);
}

.product-card {
    position: relative;
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 30px;
    padding: 2rem;
    overflow: hidden;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(212, 175, 55, 0.3) 0%, transparent 70%);
    filter: blur(60px);
    animation: pulse 3s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.5;
    }
    50% {
        transform: translate(-50%, -50%) scale(1.2);
        opacity: 0.8;
    }
}

.product-card img {
    width: 100%;
    height: auto;
    position: relative;
    z-index: 1;
    border-radius: 20px;
}

.product-badge {
    position: absolute;
    top: 2rem;
    right: 2rem;
    background: var(--gradient-gold);
    color: var(--dark-bg);
    padding: 0.5rem 1.25rem;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.875rem;
    z-index: 2;
}

.floating-card {
    position: absolute;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 1rem 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.875rem;
    font-weight: 600;
    animation: float 6s ease-in-out infinite;
    z-index: 10;
}

.floating-card i {
    font-size: 1.5rem;
    background: var(--gradient-gold);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.card-1 {
    top: -5%;
    right: 5%;
    animation-delay: 0s;
}

.card-2 {
    top: 30%;
    left: -10%;
    animation-delay: -2s;
}

.card-3 {
    top: 60%;
    right: 0%;
    animation-delay: -4s;
}

/* Slider Navigation Dots */
.slider-dots {
    position: absolute;
    bottom: -50px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
    z-index: 10;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid rgba(212, 175, 55, 0.3);
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.dot::before {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    border: 2px solid transparent;
    transition: all 0.3s ease;
}

.dot:hover {
    background: rgba(212, 175, 55, 0.5);
    transform: scale(1.2);
}

.dot.active {
    background: var(--primary-gold);
    border-color: var(--primary-gold);
    box-shadow: 0 0 15px rgba(212, 175, 55, 0.6);
}

.dot.active::before {
    border-color: rgba(212, 175, 55, 0.3);
    animation: dotPulse 2s ease-in-out infinite;
}

@keyframes dotPulse {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.5);
        opacity: 0;
    }
}

/* Slider Arrows */
.slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(212, 175, 55, 0.1);
    border: 2px solid rgba(212, 175, 55, 0.3);
    color: var(--primary-gold);
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
}

.slider-arrow:hover {
    background: rgba(212, 175, 55, 0.2);
    border-color: var(--primary-gold);
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 5px 20px rgba(212, 175, 55, 0.3);
}

.slider-arrow:active {
    transform: translateY(-50%) scale(0.95);
}

.slider-arrow.prev {
    left: -70px;
}

.slider-arrow.next {
    right: -70px;
}

[dir="rtl"] .slider-arrow.prev {
    left: auto;
    right: -70px;
}

[dir="rtl"] .slider-arrow.next {
    right: auto;
    left: -70px;
}

[dir="rtl"] .slider-arrow.prev i {
    transform: rotate(180deg);
}

[dir="rtl"] .slider-arrow.next i {
    transform: rotate(180deg);
}

/* ===== SECTION STYLES ===== */
.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1.5rem;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 1.5rem;
}

.section-badge i {
    color: var(--primary-gold);
}

.section-title {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.section-description {
    font-size: 1.125rem;
    color: var(--text-gray);
    max-width: 700px;
    margin: 0 auto;
}

/* ===== OLD SECTIONS REMOVED - SEE LINES 1100+ FOR NEW VERSIONS ===== */

/* ===== FOOTER ===== */
.footer {
    background: var(--dark-card);
    padding: 4rem 0 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.75rem;
    font-weight: 800;
    margin-bottom: 1rem;
}

.footer-logo-img {
    height: 60px;
    width: auto;
    object-fit: contain;
}

.footer-logo i {
    font-size: 2rem;
    background: var(--gradient-gold);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.footer-logo span {
    display: none;
}

.footer-col p {
    color: var(--text-gray);
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-links a {
    width: 45px;
    height: 45px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-white);
    font-size: 1.125rem;
    transition: var(--transition-smooth);
}

.footer .social-links a,
.footer .social-links a:hover,
.footer .social-links a:focus,
.footer .social-links a:active,
.footer .social-links a:visited {
    text-decoration: none !important;
    border-bottom: none !important;
}

.social-links a:hover {
    background: var(--gradient-gold);
    color: var(--dark-bg);
    transform: translateY(-3px);
}

.footer-col h4 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 0.75rem;
}

.footer-col ul li a {
    color: var(--text-gray);
    text-decoration: none;
    transition: var(--transition-smooth);
}

.footer-col ul li a:hover {
    color: var(--primary-gold);
    padding-right: 5px;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: none;
    color: var(--text-gray);
}

.footer-credit {
    margin-top: 0.8rem;
}

.footer-copyright-static {
    direction: ltr;
    unicode-bidi: isolate;
    display: inline-block;
}

.footer-credit-link {
    color: #fef3c7;
    text-decoration: none;
    font-weight: 600;
    letter-spacing: 0.01em;
    transition: var(--transition-smooth);
}

.footer-credit-link:hover {
    color: #ffffff;
}

body.light-mode .footer-credit-link {
    color: #fef3c7;
}

body.light-mode .footer-credit-link:hover {
    color: #ffffff;
}

/* ===== RESPONSIVE DESIGN ===== */

/* Tablet */
@media (max-width: 1024px) {
    /* Hide navigation links by default */
    .nav {
        position: fixed;
        top: 80px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 80px);
        background: rgba(10, 10, 15, 0.98);
        backdrop-filter: blur(20px);
        flex-direction: column;
        padding: 3rem 2rem;
        gap: 2rem;
        transition: var(--transition-smooth);
        z-index: 999;
        overflow-y: auto;
    }

    .nav.active {
        left: 0;
    }

    .nav-link {
        font-size: 1.5rem;
        padding: 1rem;
        text-align: center;
        background: rgba(255, 255, 255, 0.05);
        border-radius: 12px;
        transition: all 0.3s ease;
    }

    .nav-link:hover {
        background: rgba(212, 175, 55, 0.1);
        transform: translateX(-5px);
    }

    /* Header actions optimization for tablet */
    .header-actions {
        display: flex;
        align-items: center;
        gap: 0.75rem;
    }

    /* Hide "ابدأ الآن" button on tablet */
    .header-actions .btn-primary {
        display: none;
    }

    /* Show mobile menu button */
    .mobile-menu-btn {
        display: flex !important;
        order: -1; /* Put menu button first (on the left in LTR, right in RTL) */
    }

    /* Add actions to mobile menu */
    .nav.active::after {
        content: '';
        display: block;
        width: 100%;
        height: 1px;
        background: rgba(255, 255, 255, 0.1);
        margin: 1rem 0;
    }

    .hero-content {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .hero-left {
        text-align: center;
        align-items: center;
    }

    .badge,
    .hero-description {
        margin: 0 auto;
    }

    .hero-cta {
        justify-content: center;
    }

    .hero-stats {
        justify-content: center;
    }

    .title-main {
        font-size: 4rem;
    }

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

    .floating-card {
        display: none;
    }

    .contact-content {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .footer-content {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Mobile */
@media (max-width: 768px) {
    .section-title {
        font-size: 2.5rem;
    }

    .title-main {
        font-size: 3rem;
    }

    .title-sub {
        font-size: 1.25rem;
    }

    .hero-cta {
        flex-direction: column;
        width: 100%;
    }

    .btn-hero-primary,
    .btn-hero-secondary {
        width: 100%;
        justify-content: center;
    }

    .hero-stats {
        flex-wrap: wrap;
        gap: 2rem;
    }

    .products-grid,
    .science-grid,
    .testimonials-grid {
        grid-template-columns: 1fr;
    }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .social-links {
        justify-content: center;
    }

    .footer-col ul li a:hover {
        padding-right: 0;
    }
}

/* ===== PHARMACY ADMIN PAGE ===== */
.admin-page {
    min-height: 100vh;
    background:
        radial-gradient(circle at top right, rgba(59, 130, 246, 0.14), transparent 28%),
        linear-gradient(180deg, #f8fbff 0%, #eef4ff 100%);
    color: #1e3a8a;
}

.admin-shell {
    max-width: 1440px;
    margin: 0 auto;
    padding: 2rem;
}

.admin-topbar,
.admin-panel,
.admin-summary-card,
.admin-locale-card,
.admin-pharmacy-card,
.admin-empty-state,
.admin-message {
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(30, 58, 138, 0.12);
    box-shadow: 0 16px 40px rgba(30, 58, 138, 0.08);
}

.admin-topbar,
.admin-panel,
.admin-summary-card,
.admin-locale-card,
.admin-pharmacy-card,
.admin-empty-state {
    border-radius: 24px;
}

.admin-topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1.5rem;
    padding: 1.75rem;
    margin-bottom: 1.5rem;
}

.admin-brand {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.admin-brand h1,
.admin-panel-header h2,
.admin-locale-card h3,
.admin-pharmacy-card h3 {
    color: #163074;
}

.admin-brand h1 {
    margin-bottom: 0.35rem;
    font-size: 2rem;
}

.admin-brand p,
.admin-panel-header p,
.admin-summary-card span:last-child,
.admin-pharmacy-card p,
.admin-pharmacy-meta,
.admin-empty-state p {
    color: #51627f;
}

.admin-brand-icon,
.admin-summary-icon {
    width: 56px;
    height: 56px;
    border-radius: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 100%);
    color: #fff;
    box-shadow: 0 12px 28px rgba(30, 58, 138, 0.2);
}

.admin-summary-grid,
.admin-grid,
.admin-locale-grid,
.admin-form-grid.two-columns {
    display: grid;
}

.admin-summary-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.admin-summary-card {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.admin-summary-card strong {
    font-size: 2rem;
    color: #163074;
}

.admin-grid {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 1.2fr);
    gap: 1.5rem;
    align-items: start;
}

.admin-panel {
    padding: 1.5rem;
}

.admin-panel-header {
    margin-bottom: 1.25rem;
}

.admin-form,
.admin-field,
.admin-locale-card,
.admin-toolbar,
.admin-toolbar-group,
.admin-pharmacy-card,
.admin-pharmacy-meta,
.admin-pharmacy-actions {
    display: flex;
    flex-direction: column;
}

.admin-form,
.admin-locale-grid,
.admin-toolbar,
.admin-pharmacy-list {
    gap: 1rem;
}

.admin-form-grid.two-columns {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.admin-field {
    gap: 0.45rem;
}

.admin-field span {
    font-weight: 700;
    color: #163074;
}

.admin-input {
    width: 100%;
    border-radius: 14px;
    border: 1px solid rgba(30, 58, 138, 0.16);
    background: #fff;
    color: #163074;
    padding: 0.9rem 1rem;
    font: inherit;
    transition: var(--transition-smooth);
}

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

.admin-input:focus {
    outline: none;
    border-color: rgba(59, 130, 246, 0.7);
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.14);
}

.admin-locale-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.admin-locale-card {
    padding: 1rem;
    gap: 0.85rem;
}

.admin-form-actions,
.admin-topbar-actions,
.admin-toolbar-group,
.admin-pharmacy-actions {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.admin-toolbar {
    margin-bottom: 1rem;
}

.admin-toolbar-group.grow {
    flex: 1;
}

.admin-btn {
    border: none;
    border-radius: 14px;
    padding: 0.9rem 1.1rem;
    font: inherit;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
    cursor: pointer;
    text-decoration: none;
    transition: var(--transition-smooth);
}

.admin-btn:hover {
    transform: translateY(-2px);
}

.admin-btn-primary {
    background: linear-gradient(135deg, #1e3a8a 0%, #2563eb 100%);
    color: #fff;
    box-shadow: 0 12px 24px rgba(37, 99, 235, 0.18);
}

.admin-btn-secondary {
    background: #fff;
    color: #163074;
    border: 1px solid rgba(30, 58, 138, 0.14);
}

.admin-btn-danger {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: #fff;
}

.admin-message {
    border-radius: 18px;
    padding: 0.95rem 1rem;
    font-weight: 700;
}

.admin-message.success {
    color: #0f766e;
    border-color: rgba(16, 185, 129, 0.25);
    background: rgba(236, 253, 245, 0.96);
}

.admin-message.error {
    color: #b91c1c;
    border-color: rgba(239, 68, 68, 0.28);
    background: rgba(254, 242, 242, 0.96);
}

.admin-pharmacy-list {
    display: grid;
    gap: 1rem;
}

.admin-pharmacy-card {
    padding: 1.2rem;
    gap: 1rem;
}

.admin-pharmacy-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
}

.admin-pharmacy-meta {
    gap: 0.55rem;
}

.admin-pharmacy-meta span {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    color: #44526a;
}

.admin-empty-state {
    padding: 2rem;
    text-align: center;
}

.admin-empty-state i {
    font-size: 2rem;
    margin-bottom: 0.75rem;
    color: #3b82f6;
}

@media (max-width: 1200px) {
    .admin-grid,
    .admin-locale-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .admin-shell {
        padding: 1rem;
    }

    .admin-topbar,
    .admin-pharmacy-card-header {
        flex-direction: column;
        align-items: stretch;
    }

    .admin-summary-grid,
    .admin-form-grid.two-columns {
        grid-template-columns: 1fr;
    }

    .admin-btn,
    .admin-toolbar-group,
    .admin-toolbar-group.grow {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 1rem;
    }

    .header-content {
        padding: 1rem 0;
    }

    .logo {
        font-size: 1.5rem;
    }

    .logo i {
        font-size: 1.75rem;
    }

    .btn-icon {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }

    .btn-icon span {
        display: none;
    }

    .btn-primary {
        padding: 0.75rem 1.5rem;
        font-size: 0.875rem;
    }

    .title-main {
        font-size: 2.5rem;
    }

    .title-sub {
        font-size: 1.125rem;
    }

    .hero-description {
        font-size: 1rem;
    }

    .stat-number {
        font-size: 2.5rem;
    }

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

    .section-description {
        font-size: 1rem;
    }

    .contact-left h2 {
        font-size: 2rem;
    }

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

/* Light Mode Additional Styles */
body.light-mode .header {
    background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 100%);
    border-bottom: 3px solid #fbbf24;
    box-shadow: 0 4px 20px rgba(30, 58, 138, 0.2);
}

body.light-mode .logo {
    color: #ffffff;
}

body.light-mode .logo i {
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

body.light-mode .btn-icon {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
    color: #ffffff;
}

body.light-mode .btn-icon:hover {
    background: rgba(251, 191, 36, 0.9);
    border-color: #fbbf24;
    color: #1e3a8a;
}

body.light-mode .lang-btn {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
    color: #ffffff;
}

body.light-mode .lang-btn:hover {
    background: rgba(251, 191, 36, 0.9);
    border-color: #fbbf24;
}

body.light-mode .lang-btn i:first-child {
    color: #fbbf24;
}

body.light-mode .lang-menu {
    background: #ffffff;
    border: 2px solid #1e3a8a;
    box-shadow: 0 10px 40px rgba(30, 58, 138, 0.25);
}

body.light-mode .lang-option {
    color: var(--familac-blue);
}

body.light-mode .lang-option:hover {
    background: rgba(251, 191, 36, 0.15);
}

body.light-mode .lang-option.active {
    background: rgba(251, 191, 36, 0.2);
    color: #1e3a8a;
}

body.light-mode .mobile-menu-btn {
    background: rgba(251, 191, 36, 0.2);
    border-color: rgba(251, 191, 36, 0.5);
}

body.light-mode .mobile-menu-btn span {
    background: #fbbf24;
}

body.light-mode .nav {
    background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 100%);
   
}

body.light-mode .nav-link {
    color: #ffffff;
}

body.light-mode .nav-link:hover,
body.light-mode .nav-link.active {
    color: #fbbf24;
}

body.light-mode .nav-link::after {
    background: #fbbf24;
}

/* Hero Section */
body.light-mode .hero {
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    border-bottom: 4px solid #fbbf24;
}

body.light-mode .badge {
    background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 100%);
    color: #ffffff;
    border: 2px solid #fbbf24;
}

body.light-mode .badge i {
    color: #fbbf24;
}

body.light-mode .title-main {
    color: #1e3a8a;
}

body.light-mode .gradient-text {
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

body.light-mode .hero-description {
    color: #475569;
}

body.light-mode .btn-hero-primary {
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
    color: #1e3a8a;
    border: 2px solid #1e3a8a;
}

body.light-mode .btn-hero-secondary {
    background: rgba(30, 58, 138, 0.1);
    border: 2px solid #1e3a8a;
    color: #1e3a8a;
}

body.light-mode .floating-card {
    background: rgba(255, 255, 255, 0.95);
    border: 2px solid #1e3a8a;
    box-shadow: 0 8px 24px rgba(30, 58, 138, 0.15);
}

body.light-mode .floating-card i {
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Sections */
body.light-mode .products,
body.light-mode .science,
body.light-mode .maternal-care {
    background: #ffffff;
    border-top: 4px solid #1e3a8a;
    border-bottom: 4px solid #fbbf24;
    box-shadow: inset 0 0 100px rgba(30, 58, 138, 0.03);
}

body.light-mode .section-badge {
    background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 100%);
    color: #ffffff;
    border: 2px solid #fbbf24;
}

body.light-mode .section-badge i {
    color: #fbbf24;
}

body.light-mode .section-title {
    color: #1e3a8a;
}

body.light-mode .section-description {
    color: #475569;
}

body.light-mode .product-item,
body.light-mode .science-card,
body.light-mode .vitamin-card,
body.light-mode .bf-card {
    background: #ffffff;
    border: 3px solid #1e3a8a;
    box-shadow: 0 8px 24px rgba(30, 58, 138, 0.1);
}

body.light-mode .product-item:hover,
body.light-mode .science-card:hover,
body.light-mode .vitamin-card:hover,
body.light-mode .bf-card:hover {
    border-color: #fbbf24;
    box-shadow: 0 20px 60px rgba(251, 191, 36, 0.3);
    transform: translateY(-10px);
}

body.light-mode .product-badge {
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
    color: #1e3a8a;
    border: 2px solid #1e3a8a;
}

body.light-mode .science-icon,
body.light-mode .vitamin-icon,
body.light-mode .bf-icon {
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
    color: #1e3a8a;
    border: 3px solid #1e3a8a;
}

body.light-mode .footer {
    background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 100%);
    border-top: 4px solid #fbbf24;
    color: #ffffff;
}

body.light-mode .footer-logo,
body.light-mode .footer h4 {
    color: #ffffff;
}

body.light-mode .footer-description,
body.light-mode .footer-col ul li a {
    color: #e0f2fe;
}

body.light-mode .footer-col ul li a:hover {
    color: #fbbf24;
}

body.light-mode .social-links a {
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: #ffffff;
}

body.light-mode .social-links a:hover {
    background: #fbbf24;
    border-color: #fbbf24;
    color: #1e3a8a;
}

body.light-mode .footer-bottom {
    border-top-color: rgba(255, 255, 255, 0.2);
    color: #e0f2fe;
}

body.light-mode .ai-scanner-fab {
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
    border: 3px solid #1e3a8a;
    box-shadow: 0 8px 24px rgba(251, 191, 36, 0.4);
}

body.light-mode .ai-scanner-fab i {
    color: #1e3a8a;
}

body.light-mode .ai-scanner-modal {
    background: rgba(30, 58, 138, 0.95);
}

body.light-mode .scanner-modal-content {
    background: #ffffff;
    border: 4px solid #1e3a8a;
    box-shadow: 0 20px 60px rgba(30, 58, 138, 0.3);
}

body.light-mode .scanner-close {
    background: #fbbf24;
    color: #1e3a8a;
    border: 2px solid #1e3a8a;
}

body.light-mode .scanner-title {
    color: #1e3a8a;
}

body.light-mode .scanner-description {
    color: #475569;
}

body.light-mode .chat-messages {
    background: rgba(30, 58, 138, 0.05);
    border: 2px solid #1e3a8a;
}

body.light-mode .message-content {
    background: rgba(30, 58, 138, 0.08);
    border: 2px solid rgba(30, 58, 138, 0.2);
}

body.light-mode .message-content p {
    color: #1e3a8a;
}

body.light-mode .user-message .message-content {
    background: rgba(251, 191, 36, 0.15);
    border: 2px solid rgba(251, 191, 36, 0.4);
}

body.light-mode .quick-btn {
    background: rgba(30, 58, 138, 0.08);
    border: 2px solid #1e3a8a;
    color: #1e3a8a;
}

body.light-mode .quick-btn:hover {
    background: rgba(251, 191, 36, 0.2);
    border-color: #fbbf24;
}

body.light-mode .quick-btn i {
    color: #fbbf24;
}

body.light-mode .chat-input-container {
    background: rgba(30, 58, 138, 0.08);
    border: 2px solid #1e3a8a;
}

body.light-mode .chat-input {
    color: #1e3a8a;
}

body.light-mode .chat-input::placeholder {
    color: #64748b;
}

body.light-mode .chat-attach-btn {
    color: #1e3a8a;
    background: rgba(30, 58, 138, 0.05);
}

body.light-mode .chat-attach-btn:hover {
    background: rgba(251, 191, 36, 0.2);
    color: #fbbf24;
}

body.light-mode .chat-send-btn {
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
    color: #1e3a8a;
    border: 2px solid #1e3a8a;
}

body.light-mode .product-showcase {
    border: 3px solid #1e3a8a;
    border-radius: 24px;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.5);
}

body.light-mode .slider-arrow {
    background: rgba(251, 191, 36, 0.2);
    border: 3px solid #fbbf24;
    color: #1e3a8a;
}

body.light-mode .slider-arrow:hover {
    background: #fbbf24;
    border-color: #1e3a8a;
    box-shadow: 0 8px 24px rgba(251, 191, 36, 0.4);
}

body.light-mode .dot {
    background: rgba(30, 58, 138, 0.3);
    border: 2px solid #1e3a8a;
}

body.light-mode .dot.active {
    background: #fbbf24;
    border-color: #fbbf24;
    box-shadow: 0 0 20px rgba(251, 191, 36, 0.6);
}

body.light-mode .tab-btn {
    background: #ffffff;
    border: 3px solid #1e3a8a;
    color: #1e3a8a;
}

body.light-mode .tab-btn:hover {
    border-color: #fbbf24;
    background: rgba(251, 191, 36, 0.15);
}

body.light-mode .tab-btn.active {
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
    color: #1e3a8a;
    border-color: #1e3a8a;
}

body.light-mode .timeline-age {
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
    color: #1e3a8a;
    border: 2px solid #1e3a8a;
}

body.light-mode .timeline-content {
    background: #ffffff;
    border: 3px solid #1e3a8a;
}

body.light-mode .timeline-content h4 {
    color: #1e3a8a;
}

body.light-mode .btn-view,
body.light-mode .btn-submit-form,
body.light-mode .btn-locate-me {
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
    color: #1e3a8a;
    border: 2px solid #1e3a8a;
}

body.light-mode .btn-view:hover,
body.light-mode .btn-submit-form:hover,
body.light-mode .btn-locate-me:hover {
    box-shadow: 0 10px 30px rgba(251, 191, 36, 0.4);
}

/* Light Mode Refinement - Stronger Visual Cohesion */
body.light-mode {
    --lm-page: #f4f8ff;
    --lm-section: #ffffff;
    --lm-section-alt: #eef4ff;
    --lm-surface: rgba(255, 255, 255, 0.92);
    --lm-surface-strong: #ffffff;
    --lm-surface-soft: rgba(30, 58, 138, 0.04);
    --lm-border: rgba(30, 58, 138, 0.12);
    --lm-border-strong: rgba(30, 58, 138, 0.22);
    --lm-shadow-sm: 0 12px 30px rgba(30, 58, 138, 0.08);
    --lm-shadow-md: 0 18px 45px rgba(30, 58, 138, 0.12);
    --lm-shadow-lg: 0 28px 70px rgba(30, 58, 138, 0.16);
    --lm-accent-shadow: 0 16px 38px rgba(251, 191, 36, 0.2);
    background: linear-gradient(180deg, #f8fbff 0%, #eef4ff 100%);
}

body.light-mode .header {
    background: linear-gradient(135deg, rgba(30, 58, 138, 0.96) 0%, rgba(59, 130, 246, 0.92) 100%);
    border-bottom: 1px solid rgba(251, 191, 36, 0.55);
    box-shadow: 0 10px 30px rgba(30, 58, 138, 0.16);
}

body.light-mode .btn-icon,
body.light-mode .lang-btn {
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.24);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18);
}

body.light-mode .hero {
    background:
        radial-gradient(circle at 14% 18%, rgba(251, 191, 36, 0.16) 0%, transparent 28%),
        radial-gradient(circle at 85% 22%, rgba(59, 130, 246, 0.16) 0%, transparent 30%),
        linear-gradient(180deg, #ffffff 0%, #eef4ff 100%);
    border-bottom: 1px solid var(--lm-border);
    box-shadow: inset 0 -1px 0 rgba(30, 58, 138, 0.06);
}

body.light-mode .badge,
body.light-mode .section-badge {
    background: linear-gradient(135deg, #1e3a8a 0%, #2563eb 100%);
    border: 1px solid rgba(251, 191, 36, 0.65);
    box-shadow: 0 12px 28px rgba(30, 58, 138, 0.12);
}

body.light-mode .title-main,
body.light-mode .section-title,
body.light-mode .about .section-title,
body.light-mode .method-content h3,
body.light-mode .form-header h3,
body.light-mode .faq-card h4,
body.light-mode .feature-content h4,
body.light-mode .timeline-content h4,
body.light-mode .pharmacy-info h4,
body.light-mode .results-header h3,
body.light-mode .search-card-header h3 {
    color: #17367f;
}

body.light-mode .hero-description,
body.light-mode .section-description,
body.light-mode .about-description,
body.light-mode .feature-content p,
body.light-mode .method-content p,
body.light-mode .method-address,
body.light-mode .form-header p,
body.light-mode .scanner-description,
body.light-mode .pharmacy-location,
body.light-mode .detail-item,
body.light-mode .stat-card p {
    color: #51627f;
}

body.light-mode .about,
body.light-mode .products,
body.light-mode .science,
body.light-mode .maternal-care,
body.light-mode .pharmacies,
body.light-mode .contact {
    border-top: 1px solid rgba(30, 58, 138, 0.06);
    border-bottom: 1px solid rgba(30, 58, 138, 0.06);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

body.light-mode .about,
body.light-mode .products,
body.light-mode .maternal-care {
    background: linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
}

body.light-mode .science,
body.light-mode .pharmacies,
body.light-mode .contact {
    background: linear-gradient(180deg, #f5f8ff 0%, #edf4ff 100%);
}

body.light-mode .about::before {
    background:
        radial-gradient(circle at 18% 28%, rgba(251, 191, 36, 0.12) 0%, transparent 34%),
        radial-gradient(circle at 82% 74%, rgba(59, 130, 246, 0.1) 0%, transparent 40%);
}

body.light-mode .product-item,
body.light-mode .science-card,
body.light-mode .vitamin-card,
body.light-mode .bf-card,
body.light-mode .about-feature,
body.light-mode .pharmacy-search-card,
body.light-mode .pharmacy-map-container,
body.light-mode .pharmacy-card,
body.light-mode .stat-card,
body.light-mode .contact-method-card,
body.light-mode .contact-social,
body.light-mode .contact-form-container,
body.light-mode .faq-card,
body.light-mode .timeline-content,
body.light-mode .floating-card,
body.light-mode .product-showcase,
body.light-mode .scanner-modal-content,
body.light-mode .chat-messages,
body.light-mode .chat-input-container,
body.light-mode .quick-btn {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.96) 0%, #ffffff 100%);
    border: 1px solid var(--lm-border);
    box-shadow: var(--lm-shadow-sm);
}

body.light-mode .product-item:hover,
body.light-mode .science-card:hover,
body.light-mode .vitamin-card:hover,
body.light-mode .bf-card:hover,
body.light-mode .about-feature:hover,
body.light-mode .pharmacy-card:hover,
body.light-mode .stat-card:hover,
body.light-mode .contact-method-card:hover,
body.light-mode .faq-card:hover,
body.light-mode .timeline-content:hover {
    transform: translateY(-8px);
    border-color: var(--lm-border-strong);
    box-shadow: var(--lm-shadow-md);
}

body.light-mode .btn-hero-primary,
body.light-mode .btn-view,
body.light-mode .btn-submit-form,
body.light-mode .btn-locate-me,
body.light-mode .chat-send-btn,
body.light-mode .btn-pharmacy-action.primary {
    border: 1px solid rgba(245, 158, 11, 0.18);
    box-shadow: var(--lm-accent-shadow);
}

body.light-mode .btn-hero-secondary,
body.light-mode .tab-btn,
body.light-mode .btn-pharmacy-action {
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid var(--lm-border-strong);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

body.light-mode .science-icon,
body.light-mode .vitamin-icon,
body.light-mode .bf-icon,
body.light-mode .pharmacy-icon,
body.light-mode .method-icon,
body.light-mode .timeline-age {
    border: 1px solid rgba(255, 255, 255, 0.4);
    box-shadow: 0 12px 28px rgba(30, 58, 138, 0.12);
}

body.light-mode .about-image-wrapper {
    border: 1px solid var(--lm-border-strong);
    box-shadow: var(--lm-shadow-lg);
}

body.light-mode .about-image-overlay {
    background: linear-gradient(to top, rgba(30, 58, 138, 0.88) 0%, rgba(30, 58, 138, 0.15) 100%);
}

body.light-mode .about-badge-float {
    background: rgba(255, 255, 255, 0.94);
    border: 1px solid var(--lm-border);
    color: #1e3a8a;
    box-shadow: var(--lm-shadow-sm);
}

body.light-mode .about-badge-float i,
body.light-mode .method-link:hover,
body.light-mode .chat-attach-btn:hover {
    color: #f59e0b;
}

body.light-mode .pharmacy-search-card,
body.light-mode .pharmacy-map-container,
body.light-mode .contact-form-container,
body.light-mode .scanner-modal-content {
    border-radius: 28px;
}

body.light-mode .filter-group label,
body.light-mode .form-group label {
    color: #1e3a8a;
}

body.light-mode .select-wrapper i,
body.light-mode .search-input-wrapper i,
body.light-mode .input-wrapper i,
body.light-mode .map-header i,
body.light-mode .detail-item i,
body.light-mode .pharmacy-location i {
    color: #f59e0b;
}

body.light-mode .filter-select,
body.light-mode .search-input,
body.light-mode .contact-form input,
body.light-mode .contact-form select,
body.light-mode .contact-form textarea {
    background: #f8fbff;
    border: 1px solid var(--lm-border);
    color: #1e3a8a;
}

body.light-mode .filter-select:focus,
body.light-mode .search-input:focus,
body.light-mode .contact-form input:focus,
body.light-mode .contact-form select:focus,
body.light-mode .contact-form textarea:focus {
    border-color: rgba(59, 130, 246, 0.45);
    background: #ffffff;
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.12);
}

body.light-mode .filter-select option,
body.light-mode .contact-form select option {
    background: #ffffff;
    color: #1e3a8a;
}

body.light-mode .map-header,
body.light-mode .map-legend {
    background: rgba(30, 58, 138, 0.035);
    border-color: var(--lm-border);
}

body.light-mode .map-control-btn {
    background: #ffffff;
    border: 1px solid var(--lm-border);
    color: #1e3a8a;
}

body.light-mode .map-control-btn:hover,
body.light-mode .btn-pharmacy-action:hover {
    background: rgba(30, 58, 138, 0.05);
    border-color: var(--lm-border-strong);
}

body.light-mode .pharmacy-map {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.96) 0%, rgba(237, 244, 255, 0.98) 100%);
    color: #64748b;
}

body.light-mode .pharmacy-map.leaflet-container {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.96) 0%, rgba(237, 244, 255, 0.98) 100%);
}

body.light-mode .pharmacy-map-placeholder {
    background: rgba(255, 255, 255, 0.88);
    border-color: rgba(30, 58, 138, 0.12);
    box-shadow: 0 20px 40px rgba(30, 58, 138, 0.12);
}

body.light-mode .pharmacy-map-summary-card {
    background: rgba(255, 255, 255, 0.92);
    border-color: rgba(30, 58, 138, 0.12);
    box-shadow: 0 20px 40px rgba(30, 58, 138, 0.14);
}

body.light-mode .pharmacy-map-summary {
    background: rgba(30, 58, 138, 0.025);
    border-top-color: rgba(30, 58, 138, 0.08);
}

body.light-mode .pharmacy-map-placeholder h4,
body.light-mode .pharmacy-map-summary-header h4,
body.light-mode .map-summary-card strong,
body.light-mode .pharmacy-popup-header h4,
body.light-mode .pharmacy-empty-state h4 {
    color: #1e3a8a;
}

body.light-mode .pharmacy-map-placeholder p,
body.light-mode .pharmacy-map-summary-text,
body.light-mode .map-summary-card span,
body.light-mode .pharmacy-popup-address,
body.light-mode .pharmacy-popup-meta-item,
body.light-mode .pharmacy-empty-state p {
    color: #51627f;
}

body.light-mode .map-summary-card {
    background: rgba(30, 58, 138, 0.04);
    border-color: rgba(30, 58, 138, 0.1);
}

body.light-mode .map-summary-badge {
    background: rgba(30, 58, 138, 0.06);
    border-color: rgba(30, 58, 138, 0.12);
    color: #1e3a8a;
}

body.light-mode .pharmacy-map .leaflet-control-attribution {
    background: rgba(255, 255, 255, 0.92);
    color: #51627f;
}

body.light-mode .pharmacy-map .leaflet-popup-content-wrapper {
    background: #ffffff;
    color: #1e293b;
    box-shadow: 0 24px 44px rgba(30, 58, 138, 0.16);
}

body.light-mode .pharmacy-map .leaflet-popup-tip {
    background: #ffffff;
}

body.light-mode .pharmacy-popup-address i,
body.light-mode .pharmacy-popup-meta-item i {
    color: #1e3a8a;
}

body.light-mode .results-header,
body.light-mode .footer-bottom {
    border-top-color: var(--lm-border);
    border-bottom-color: var(--lm-border);
}

body.light-mode .results-count {
    background: rgba(30, 58, 138, 0.06);
    border: 1px solid rgba(30, 58, 138, 0.12);
    color: #1e3a8a;
}

body.light-mode .pharmacy-list::-webkit-scrollbar-track {
    background: rgba(30, 58, 138, 0.06);
}

body.light-mode .faq-card,
body.light-mode .btn-pharmacy-action,
body.light-mode .contact-form input,
body.light-mode .contact-form select,
body.light-mode .contact-form textarea,
body.light-mode .filter-select,
body.light-mode .search-input {
    color: #1e3a8a;
}

body.light-mode .stat-card h3 {
    background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

body.light-mode .message-content {
    background: rgba(30, 58, 138, 0.04);
    border: 1px solid rgba(30, 58, 138, 0.12);
}

body.light-mode .user-message .message-content {
    background: rgba(251, 191, 36, 0.14);
    border: 1px solid rgba(245, 158, 11, 0.22);
}

body.light-mode .footer {
    background: linear-gradient(135deg, #17367f 0%, #2563eb 100%);
    border-top: 1px solid rgba(251, 191, 36, 0.45);
}

/* Light Mode Final Polish - Header & Contact */
body.light-mode .header {
    background: linear-gradient(135deg, #17367f 0%, #2563eb 100%);
    border-bottom: 1px solid rgba(214, 181, 75, 0.18);
    box-shadow: 0 14px 36px rgba(7, 16, 38, 0.24);
}

body.light-mode .nav {
    background: transparent;
}

body.light-mode .nav-link {
    color: rgba(240, 245, 255, 0.86);
    font-weight: 600;
}

body.light-mode .nav-link::after {
    left: 50%;
    transform: translateX(-50%);
    height: 2px;
    border-radius: 999px;
    background: #d6b54b;
    box-shadow: 0 0 10px rgba(214, 181, 75, 0.18);
}

body.light-mode .nav-link:hover {
    color: #ffffff;
}

body.light-mode .nav-link.active {
    color: #e6cf86;
}

body.light-mode .nav-link:hover::after,
body.light-mode .nav-link.active::after {
    width: 68%;
}

body.light-mode .btn-icon,
body.light-mode .lang-btn,
body.light-mode .btn-primary {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.14);
    color: #f7f9ff;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

body.light-mode .btn-icon:hover,
body.light-mode .lang-btn:hover,
body.light-mode .btn-primary:hover {
    background: rgba(214, 181, 75, 0.12);
    border-color: rgba(214, 181, 75, 0.34);
    color: #ffffff;
    box-shadow: 0 10px 24px rgba(7, 16, 38, 0.18);
}

body.light-mode .lang-btn i:first-child {
    color: #d6b54b;
}

body.light-mode .btn-primary {
    background: rgba(255, 255, 255, 0.05);
    color: #ffffff;
}

body.light-mode .lang-menu {
    background: #11264d;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 18px 40px rgba(7, 16, 38, 0.24);
}

body.light-mode .lang-option {
    color: #edf3ff;
}

body.light-mode .lang-option:hover {
    background: rgba(255, 255, 255, 0.06);
}

body.light-mode .lang-option.active {
    background: rgba(214, 181, 75, 0.12);
    color: #ead690;
}

body.light-mode .mobile-menu-btn {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.14);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

body.light-mode .mobile-menu-btn span {
    background: #eef4ff;
}

body.light-mode .mobile-menu-btn:hover {
    background: rgba(214, 181, 75, 0.12);
    border-color: rgba(214, 181, 75, 0.34);
}

body.light-mode .mobile-menu-btn:hover span {
    background: #d6b54b;
}

@media (min-width: 1025px) {
    html[lang="en"] .header-content {
        display: grid;
        grid-template-columns: auto minmax(0, 1fr) auto;
        align-items: center;
        gap: clamp(1.25rem, 2vw, 2.5rem);
    }

    html[lang="en"] .nav {
        width: 100%;
        justify-content: center;
        gap: clamp(1.25rem, 1.9vw, 2.15rem);
    }

    html[lang="en"] .nav-link {
        white-space: nowrap;
        font-size: 0.95rem;
        letter-spacing: 0.01em;
    }

    html[lang="en"] .header-actions {
        min-width: max-content;
        justify-content: flex-end;
        gap: 0.75rem;
    }

    html[lang="en"] .lang-btn {
        min-width: 138px;
        justify-content: center;
        padding-inline: 1rem 1.1rem;
    }

    html[lang="en"] #current-lang-text {
        min-width: 58px;
        text-align: left;
    }
}

body.light-mode .contact .section-title,
body.light-mode .contact-social h4,
body.light-mode .method-content h3,
body.light-mode .form-header h3 {
    color: #1b3f99;
}

body.light-mode .contact .section-description,
body.light-mode .method-content p,
body.light-mode .method-address,
body.light-mode .form-header p {
    color: #4d628f;
}

body.light-mode .method-link {
    color: #c88a06;
    text-decoration: none;
    border-bottom: none;
}

body.light-mode .method-link:hover,
body.light-mode .method-link:focus {
    color: #a66b00;
    text-decoration: none;
    border-bottom: none;
}

body.light-mode .social-links a,
body.light-mode .social-link,
body.light-mode .social-link:hover,
body.light-mode .social-link:focus,
body.light-mode .social-link:active {
    text-decoration: none !important;
    border-bottom: none !important;
}

body.light-mode .contact-social {
    border: 1px solid rgba(30, 58, 138, 0.14);
}

/* Light Mode Final Polish - Footer Exact Elements */
body.light-mode .footer-tagline {
    color: #fef3c7;
    font-size: 1.02rem;
    font-weight: 500;
    line-height: 1.95;
    letter-spacing: 0.01em;
    margin-bottom: 1.35rem;
    text-shadow: 0 1px 10px rgba(8, 25, 68, 0.18);
}

body.light-mode .footer .social-links {
    gap: 0.85rem;
}

body.light-mode .footer .social-links a {
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.22);
    color: #ffffff;
    text-decoration: none !important;
    box-shadow: 0 10px 24px rgba(11, 31, 84, 0.18);
}

body.light-mode .footer .social-links a,
body.light-mode .footer .social-links a:hover,
body.light-mode .footer .social-links a:focus,
body.light-mode .footer .social-links a:active,
body.light-mode .footer .social-links a:visited {
    text-decoration: none !important;
    border-bottom: none !important;
}

body.light-mode .footer .social-links a:hover,
body.light-mode .footer .social-links a:focus {
    background: #fbbf24;
    border-color: #fbbf24;
    color: #17367f;
    transform: translateY(-4px);
    box-shadow: 0 16px 30px rgba(251, 191, 36, 0.28);
}

/* RTL Support */
[dir="rtl"] .nav-link::after {
    right: 0;
    left: auto;
}

[dir="rtl"] .btn-hero-primary i,
[dir="rtl"] .btn-hero-secondary i {
    transform: rotate(180deg);
}

[dir="rtl"] .footer-col ul li a:hover {
    padding-right: 0;
    padding-left: 5px;
}

/* ===== PRODUCTS SECTION ===== */
.products {
    padding: var(--section-padding);
    background: var(--dark-bg);
    position: relative;
}

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

.product-item {
    background: var(--dark-card);
    border-radius: 24px;
    overflow: hidden;
    transition: var(--transition-smooth);
    border: 1px solid rgba(212, 175, 55, 0.1);
}

.product-item:hover {
    transform: translateY(-10px);
    border-color: rgba(212, 175, 55, 0.3);
    box-shadow: 0 20px 60px rgba(212, 175, 55, 0.2);
}

.product-image {
    position: relative;
    overflow: hidden;
    height: 300px;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-smooth);
}

.product-item:hover .product-image img {
    transform: scale(1.1);
}

.product-overlay {
    position: absolute;
    inset: 0;
    background: rgba(10, 10, 15, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition-smooth);
}

.product-item:hover .product-overlay {
    opacity: 1;
}

.btn-view {
    padding: 1rem 2rem;
    background: var(--gradient-gold);
    color: var(--dark-bg);
    text-decoration: none;
    border-radius: 12px;
    font-weight: 600;
    transition: var(--transition-smooth);
}

.btn-view:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 30px rgba(212, 175, 55, 0.4);
}

.product-info {
    padding: 2rem;
}

.product-badge-tag {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: var(--gradient-gold);
    color: var(--dark-bg);
    border-radius: 8px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 1rem;
}

.product-badge-tag.new {
    background: linear-gradient(135deg, #27ae60 0%, #2ecc71 100%);
    color: white;
}

.product-badge-tag.premium {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.product-info h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    background: var(--gradient-gold);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.product-info p {
    color: var(--text-gray);
    margin-bottom: 1rem;
}

.product-features {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.product-features span {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-gray);
    font-size: 0.875rem;
}

.product-features i {
    color: var(--primary-gold);
}

/* ===== SCIENCE SECTION ===== */
.science {
    padding: var(--section-padding);
    background: var(--dark-card);
    position: relative;
}

.science-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.science-card {
    background: var(--dark-bg);
    padding: 2.5rem;
    border-radius: 24px;
    text-align: center;
    transition: var(--transition-smooth);
    border: 1px solid rgba(212, 175, 55, 0.1);
}

.science-card:hover {
    transform: translateY(-10px);
    border-color: rgba(212, 175, 55, 0.3);
    box-shadow: 0 20px 60px rgba(212, 175, 55, 0.2);
}

.science-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    background: var(--gradient-gold);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--dark-bg);
}

.science-card h3 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    color: var(--text-white);
}

.science-card p {
    color: var(--text-gray);
    line-height: 1.8;
}

.stats-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-top: 4rem;
}

.stat-card {
    text-align: center;
    padding: 2rem;
    background: var(--dark-bg);
    border-radius: 16px;
    border: 1px solid rgba(212, 175, 55, 0.2);
}

.stat-value {
    font-size: 3rem;
    font-weight: 800;
    background: var(--gradient-gold);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
}

.stat-text {
    color: var(--text-gray);
    font-size: 1rem;
}

/* ===== AI SCANNER FLOATING BUTTON ===== */
.ai-scanner-fab {
    position: fixed;
    bottom: 30px;
    left: 30px;
    width: 70px;
    height: 70px;
    background: var(--gradient-gold);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 10px 40px rgba(212, 175, 55, 0.4);
    transition: var(--transition-smooth);
    z-index: 1000;
    border: none;
}

.ai-scanner-fab:hover {
    transform: scale(1.1) rotate(10deg);
    box-shadow: 0 15px 50px rgba(212, 175, 55, 0.6);
}

.ai-scanner-fab i {
    font-size: 2rem;
    color: var(--dark-bg);
}

[dir="rtl"] .ai-scanner-fab {
    left: auto;
    right: 30px;
}

/* AI Scanner Modal */
.ai-scanner-modal {
    position: fixed;
    inset: 0;
    background: rgba(10, 10, 15, 0.95);
    backdrop-filter: blur(20px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    padding: 2rem;
}

.ai-scanner-modal.active {
    display: flex;
}

.scanner-modal-content {
    background: var(--dark-card);
    border-radius: 24px;
    padding: 4.25rem 1.75rem 1.25rem;
    max-width: 1000px;
    width: 95%;
    max-height: 88vh;
    height: 88vh;
    display: flex;
    flex-direction: column;
    position: relative;
    border: 1px solid rgba(212, 175, 55, 0.2);
    overflow: hidden;
}

.scanner-header {
    flex-shrink: 0;
    text-align: center;
    margin-bottom: 0.85rem;
    padding-top: 0;
    padding-inline: 4rem;
    position: relative;
    z-index: 1;
}

.scanner-title {
    font-size: clamp(1.9rem, 2.8vw, 2.6rem);
    font-weight: 800;
    margin: 0.8rem 0 0.35rem;
    color: var(--text-white);
    line-height: 1.2;
}

.scanner-description {
    font-size: 1rem;
    color: var(--text-gray);
    margin: 0 auto;
    max-width: 720px;
    line-height: 1.7;
}

.chat-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    min-height: 0;
    gap: 0.85rem;
}

.scanner-close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    border-radius: 50%;
    color: var(--text-white);
    font-size: 1.5rem;
    cursor: pointer;
    transition: var(--transition-smooth);
    z-index: 5;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.scanner-close:hover {
    background: rgba(231, 76, 60, 0.8);
    transform: rotate(90deg);
}

[dir="rtl"] .scanner-close {
    right: auto;
    left: 1.5rem;
}

/* Chat Messages Container */
.chat-messages {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 1.5rem;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 18px;
    margin: 0.25rem 0 0;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    height: 100%;
    max-height: none;
    min-height: 340px;
}

.chat-messages::-webkit-scrollbar {
    width: 8px;
}

.chat-messages::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
}

.chat-messages::-webkit-scrollbar-thumb {
    background: var(--primary-gold);
    border-radius: 10px;
}

/* Message Styles */
.ai-message,
.user-message {
    display: flex;
    gap: 1rem;
    animation: messageSlide 0.3s ease;
}

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

.user-message {
    flex-direction: row-reverse;
}

[dir="rtl"] .ai-message {
    flex-direction: row-reverse;
}

[dir="rtl"] .user-message {
    flex-direction: row;
}

.message-avatar {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-gold), #b8860b);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.user-message .message-avatar {
    background: linear-gradient(135deg, #3498db, #2980b9);
}

.message-avatar i {
    color: white;
    font-size: 1.2rem;
}

.message-content {
    background: rgba(255, 255, 255, 0.05);
    padding: 1.25rem 1.5rem;
    border-radius: 16px;
    max-width: 75%;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.ai-message .message-content {
    width: calc(100% - 61px);
    max-width: calc(100% - 61px);
}

.user-message .message-content {
    background: rgba(212, 175, 55, 0.1);
    border-color: rgba(212, 175, 55, 0.3);
}

.message-content p {
    color: var(--text-white);
    line-height: 1.7;
    margin: 0;
    font-size: 1.05rem;
    font-weight: 400;
}

.message-content img {
    max-width: 100%;
    border-radius: 12px;
    margin-top: 0.5rem;
}

/* Quick Questions */
.quick-questions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
    margin-top: 1rem;
}

.quick-btn {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.8rem 0.95rem;
    background: rgba(212, 175, 55, 0.1);
    border: 1px solid rgba(212, 175, 55, 0.3);
    border-radius: 12px;
    color: var(--text-white);
    font-size: 0.92rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: left;
    min-height: 52px;
}

[dir="rtl"] .quick-btn {
    text-align: right;
}

.quick-btn:hover {
    background: rgba(212, 175, 55, 0.2);
    border-color: var(--primary-gold);
    transform: translateY(-2px);
}

.quick-btn i {
    color: var(--primary-gold);
    font-size: 1.1rem;
}

/* Chat Input Container */
.chat-input-container {
    display: flex;
    gap: 0.75rem;
    align-items: center;
    width: 100%;
    min-width: 0;
    padding: 0.85rem 1rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 18px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    flex-shrink: 0;
    margin-top: 0;
}

.chat-attach-btn,
.chat-send-btn {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.chat-attach-btn {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-gray);
}

.chat-attach-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--primary-gold);
}

.chat-send-btn {
    background: linear-gradient(135deg, var(--primary-gold), #b8860b);
    color: white;
}

.chat-send-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(212, 175, 55, 0.4);
}

.chat-input {
    flex: 1 1 auto;
    min-width: 0;
    width: 100%;
    display: block;
    background: transparent;
    border: none;
    color: var(--text-white);
    font-size: 1rem;
    padding: 0.45rem 0.35rem;
    outline: none;
    font-weight: 400;
    line-height: 1.5;
    text-align: start;
    -webkit-appearance: none;
    appearance: none;
}

@media (max-width: 768px) {
    .scanner-modal-content {
        height: 90vh;
        max-height: 90vh;
        padding: 4rem 1rem 1rem;
    }

    .scanner-header {
        margin-bottom: 0.7rem;
        padding-inline: 3rem;
    }

    .scanner-title {
        margin-top: 0.65rem;
        font-size: 1.8rem;
    }

    .scanner-description {
        font-size: 0.95rem;
    }

    .chat-messages {
        padding: 1rem;
        min-height: 300px;
    }

    .ai-message .message-content,
    .user-message .message-content {
        width: 100%;
        max-width: 100%;
    }

    .quick-questions {
        grid-template-columns: 1fr;
    }

    .chat-input-container {
        padding: 0.8rem;
    }

    .chat-attach-btn,
    .chat-send-btn {
        width: 38px;
        height: 38px;
    }
}

.chat-input::placeholder {
    color: var(--text-gray);
    opacity: 1;
}

.nutrition-facts h4,
.feeding-instructions h4 {
    color: var(--text-white);
    margin-bottom: 1rem;
}

/* ===== OLD PHARMACIES & MATERNAL CARE STYLES REMOVED ===== */
/* See lines 1700+ for new professional versions */

/* ===== MATERNAL CARE SECTION ===== */
.maternal-care {
    padding: var(--section-padding);
    background: var(--dark-card);
}

.maternal-tabs {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin: 3rem 0 2rem;
    flex-wrap: wrap;
}

.tab-btn {
    padding: 1rem 2.5rem;
    background: var(--dark-bg);
    border: 1px solid rgba(212, 175, 55, 0.2);
    border-radius: 12px;
    color: var(--text-white);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-smooth);
    font-family: inherit;
}

.tab-btn:hover {
    border-color: var(--primary-gold);
    background: rgba(212, 175, 55, 0.1);
}

.tab-btn.active {
    background: var(--gradient-gold);
    color: var(--dark-bg);
    border-color: transparent;
}

.tab-content {
    display: none;
    animation: fadeIn 0.5s ease;
}

.tab-content.active {
    display: block;
}

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

/* Vitamins Tab */
.vitamins-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.vitamin-card {
    background: var(--dark-bg);
    padding: 2.5rem;
    border-radius: 24px;
    border: 1px solid rgba(212, 175, 55, 0.1);
    transition: var(--transition-smooth);
}

.vitamin-card:hover {
    transform: translateY(-10px);
    border-color: rgba(212, 175, 55, 0.3);
    box-shadow: 0 20px 60px rgba(212, 175, 55, 0.2);
}

.vitamin-icon {
    width: 70px;
    height: 70px;
    background: var(--gradient-gold);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    font-size: 1.75rem;
    color: var(--dark-bg);
}

.vitamin-card h3 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    color: var(--text-white);
}

.vitamin-card p {
    color: var(--text-gray);
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

.vitamin-card ul {
    list-style: none;
}

.vitamin-card ul li {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    color: var(--text-gray);
    margin-bottom: 0.75rem;
    line-height: 1.6;
}

.vitamin-card ul li i {
    color: var(--primary-gold);
    margin-top: 0.25rem;
    flex-shrink: 0;
}

/* Vaccines Timeline */
.vaccine-timeline {
    max-width: 900px;
    margin: 2rem auto;
    position: relative;
    padding: 2rem 0;
}

.vaccine-timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--gradient-gold);
    transform: translateX(-50%);
}

.timeline-item {
    display: flex;
    align-items: center;
    margin-bottom: 3rem;
    position: relative;
}

.timeline-item:nth-child(odd) {
    flex-direction: row-reverse;
}

.timeline-marker {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    background: var(--gradient-gold);
    color: var(--dark-bg);
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    font-weight: 700;
    white-space: nowrap;
    z-index: 2;
    box-shadow: 0 5px 20px rgba(212, 175, 55, 0.4);
}

.timeline-content {
    width: 45%;
    background: var(--dark-bg);
    padding: 2rem;
    border-radius: 16px;
    border: 1px solid rgba(212, 175, 55, 0.2);
}

.timeline-content h4 {
    color: var(--primary-gold);
    margin-bottom: 1rem;
}

.timeline-content ul {
    list-style: none;
}

.timeline-content ul li {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    color: var(--text-gray);
    margin-bottom: 0.75rem;
    line-height: 1.6;
}

.timeline-content ul li i {
    color: var(--primary-gold);
    margin-top: 0.25rem;
    flex-shrink: 0;
}

/* Breastfeeding Grid */
.breastfeeding-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.bf-card {
    background: var(--dark-bg);
    padding: 2.5rem;
    border-radius: 24px;
    border: 1px solid rgba(212, 175, 55, 0.1);
    transition: var(--transition-smooth);
}

.bf-card:hover {
    transform: translateY(-10px);
    border-color: rgba(212, 175, 55, 0.3);
    box-shadow: 0 20px 60px rgba(212, 175, 55, 0.2);
}

.bf-icon {
    width: 70px;
    height: 70px;
    background: var(--gradient-gold);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    font-size: 1.75rem;
    color: var(--dark-bg);
}

.bf-card h3 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    color: var(--text-white);
}

.bf-card p {
    color: var(--text-gray);
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

.bf-card ul {
    list-style: none;
}

.bf-card ul li {
    color: var(--text-gray);
    margin-bottom: 0.75rem;
    line-height: 1.6;
    padding-right: 1rem;
    position: relative;
}

.bf-card ul li::before {
    content: '•';
    position: absolute;
    right: 0;
    color: var(--primary-gold);
    font-weight: bold;
}

[dir="ltr"] .bf-card ul li {
    padding-right: 0;
    padding-left: 1rem;
}

/* ===== PRODUCT MODAL ===== */
.product-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.product-modal.active {
    display: flex;
}

.product-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(10px);
}

.product-modal-content {
    position: relative;
    background: rgba(10, 10, 15, 0.95);
    backdrop-filter: blur(30px);
    border: 1px solid rgba(212, 175, 55, 0.2);
    border-radius: 24px;
    max-width: 800px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    padding: 3rem;
    animation: modalSlideIn 0.4s ease-out;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(50px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.product-modal-close {
    position: absolute;
    top: 1.5rem;
    left: 1.5rem;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition-smooth);
    color: white;
    font-size: 1.2rem;
}

.product-modal-close:hover {
    background: rgba(212, 175, 55, 0.2);
    border-color: var(--gold);
    transform: rotate(90deg);
}

[dir="rtl"] .product-modal-close {
    left: auto;
    right: 1.5rem;
}

.product-modal-body h2 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    background: var(--gradient-gold);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.product-modal-body .modal-subtitle {
    font-size: 1.2rem;
    color: var(--gold);
    margin-bottom: 1rem;
    font-style: italic;
}

.product-modal-body .modal-age {
    display: inline-block;
    padding: 0.5rem 1.5rem;
    background: rgba(212, 175, 55, 0.1);
    border: 1px solid rgba(212, 175, 55, 0.3);
    border-radius: 50px;
    color: var(--gold);
    font-weight: 600;
    margin-bottom: 2rem;
}

.product-modal-body .modal-description {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-gray);
    margin-bottom: 2rem;
}

.product-modal-body .modal-smart-feature {
    background: rgba(212, 175, 55, 0.05);
    border-left: 4px solid var(--gold);
    padding: 1.5rem;
    border-radius: 12px;
    margin-bottom: 2rem;
}

[dir="rtl"] .product-modal-body .modal-smart-feature {
    border-left: none;
    border-right: 4px solid var(--gold);
}

.product-modal-body .modal-smart-feature h4 {
    color: var(--gold);
    margin-bottom: 0.75rem;
    font-size: 1.1rem;
}

.product-modal-body .modal-smart-feature p {
    color: var(--text-gray);
    line-height: 1.7;
}

.comparison-modal-content {
    max-width: 1200px;
}

.comparison-intro {
    color: var(--text-gray);
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.comparison-table-wrapper {
    overflow-x: auto;
    border: 1px solid rgba(212, 175, 55, 0.16);
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.03);
}

.comparison-table {
    width: 100%;
    min-width: 980px;
    border-collapse: collapse;
}

.comparison-table th,
.comparison-table td {
    padding: 1rem 1.15rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    text-align: start;
    vertical-align: top;
    line-height: 1.7;
}

.comparison-table thead th {
    background: rgba(212, 175, 55, 0.1);
    color: var(--gold);
    font-weight: 700;
}

.comparison-table tbody th {
    color: var(--text-white);
    background: rgba(255, 255, 255, 0.04);
    min-width: 180px;
}

.comparison-table tbody tr:last-child th,
.comparison-table tbody tr:last-child td {
    border-bottom: none;
}

.comparison-note {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-top: 1.25rem;
    color: var(--text-gray);
    line-height: 1.7;
}

.comparison-note i {
    color: var(--gold);
    margin-top: 0.2rem;
}

body.light-mode #productModal .product-modal-overlay {
    background: rgba(15, 23, 42, 0.26);
    backdrop-filter: blur(12px);
}

body.light-mode #productModal .product-modal-content {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.985) 0%, rgba(239, 246, 255, 0.98) 100%);
    border: 1px solid var(--lm-border-strong);
    box-shadow: var(--lm-shadow-lg);
}

body.light-mode #productModal .product-modal-close {
    background: rgba(30, 58, 138, 0.08);
    border: 1px solid rgba(30, 58, 138, 0.16);
    color: #1e3a8a;
}

body.light-mode #productModal .product-modal-close:hover {
    background: #fbbf24;
    border-color: #f59e0b;
    color: #17367f;
}

body.light-mode #productModal .product-modal-body h2 {
    background: linear-gradient(135deg, #17367f 0%, #2563eb 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

body.light-mode #productModal .modal-subtitle {
    color: #b45309;
}

body.light-mode #productModal .modal-age {
    background: rgba(37, 99, 235, 0.08);
    border-color: rgba(37, 99, 235, 0.18);
    color: #1e3a8a;
}

body.light-mode #productModal .modal-description,
body.light-mode #productModal .modal-smart-feature p {
    color: #475569;
}

body.light-mode #productModal .modal-smart-feature {
    background: rgba(251, 191, 36, 0.12);
    border-left-color: #f59e0b;
}

body.light-mode #productModal .modal-smart-feature h4 {
    color: #1e3a8a;
}

body.light-mode .comparison-modal .product-modal-overlay {
    background: rgba(15, 23, 42, 0.28);
    backdrop-filter: blur(12px);
}

body.light-mode .comparison-modal-content {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(238, 244, 255, 0.98) 100%);
    border: 1px solid var(--lm-border-strong);
    box-shadow: var(--lm-shadow-lg);
}

body.light-mode .comparison-modal .product-modal-close {
    background: rgba(30, 58, 138, 0.08);
    border: 1px solid rgba(30, 58, 138, 0.16);
    color: #1e3a8a;
}

body.light-mode .comparison-modal .product-modal-close:hover {
    background: #fbbf24;
    border-color: #f59e0b;
    color: #17367f;
}

body.light-mode .comparison-modal .product-modal-body h2 {
    background: linear-gradient(135deg, #17367f 0%, #2563eb 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

body.light-mode .comparison-intro {
    color: #475569;
}

body.light-mode .comparison-table-wrapper {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.96) 0%, rgba(248, 251, 255, 0.98) 100%);
    border: 1px solid var(--lm-border);
    box-shadow: var(--lm-shadow-sm);
}

body.light-mode .comparison-table th,
body.light-mode .comparison-table td {
    border-bottom: 1px solid var(--lm-border);
    color: #334155;
}

body.light-mode .comparison-table thead th {
    background: linear-gradient(135deg, #17367f 0%, #2563eb 100%);
    color: #ffffff;
    border-bottom: 1px solid rgba(23, 54, 127, 0.18);
}

body.light-mode .comparison-table thead th:first-child {
    color: #fef3c7;
}

body.light-mode .comparison-table tbody th {
    background: rgba(30, 58, 138, 0.06);
    color: #1e3a8a;
    font-weight: 700;
}

body.light-mode .comparison-table tbody td {
    background: rgba(255, 255, 255, 0.82);
}

body.light-mode .comparison-table tbody tr:nth-child(even) td {
    background: rgba(30, 58, 138, 0.025);
}

body.light-mode .comparison-note {
    background: rgba(251, 191, 36, 0.12);
    border: 1px solid rgba(245, 158, 11, 0.22);
    border-radius: 16px;
    padding: 1rem 1.1rem;
    color: #475569;
}

body.light-mode .comparison-note i {
    color: #f59e0b;
}

.btn-view {
    border: none;
    cursor: pointer;
}

[dir="ltr"] .bf-card ul li::before {
    right: auto;
    left: 0;
}

/* ===== PHARMACY LOCATOR SECTION ===== */
.pharmacies {
    position: relative;
    padding: 6rem 0;
    overflow: hidden;
}

.pharmacy-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
}

.orb-pharmacy-1 {
    top: 10%;
    right: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(16, 185, 129, 0.15) 0%, transparent 70%);
}

.orb-pharmacy-2 {
    bottom: 10%;
    left: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.15) 0%, transparent 70%);
}

.pharmacy-search-card {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    padding: 2.5rem;
    margin-bottom: 3rem;
}

.search-card-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.search-card-header i {
    font-size: 2rem;
    background: var(--gradient-gold);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.search-card-header h3 {
    font-size: 1.5rem;
    font-weight: 700;
}

.pharmacy-filters {
    display: grid;
    grid-template-columns: 1fr 1fr auto;
    gap: 1.5rem;
    align-items: end;
}

.filter-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--gold);
    font-size: 0.9rem;
}

.select-wrapper,
.search-input-wrapper {
    position: relative;
}

.select-wrapper i,
.search-input-wrapper i {
    position: absolute;
    top: 50%;
    right: 1rem;
    transform: translateY(-50%);
    color: var(--gold);
    pointer-events: none;
}

[dir="ltr"] .select-wrapper i,
[dir="ltr"] .search-input-wrapper i {
    right: auto;
    left: 1rem;
}

.filter-select,
.search-input {
    width: 100%;
    padding: 1rem 3rem 1rem 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    color: white;
    font-size: 1rem;
    transition: var(--transition-smooth);
}

[dir="ltr"] .filter-select,
[dir="ltr"] .search-input {
    padding: 1rem 1rem 1rem 3rem;
}

.filter-select:focus,
.search-input:focus {
    outline: none;
    border-color: var(--gold);
    background: rgba(255, 255, 255, 0.08);
}

.filter-select option {
    background: var(--dark-bg);
    color: white;
}

.btn-locate-me {
    padding: 1rem 2rem;
    background: var(--gradient-gold);
    color: var(--dark-bg);
    border: none;
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    transition: var(--transition-smooth);
    white-space: nowrap;
}

.btn-locate-me:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(212, 175, 55, 0.3);
}

.btn-locate-me i {
    font-size: 1.2rem;
}

.pharmacy-content {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 2rem;
    margin-bottom: 3rem;
}

.pharmacy-map-container {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    overflow: hidden;
}

.map-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.map-header i {
    color: var(--gold);
    margin-left: 0.5rem;
}

[dir="ltr"] .map-header i {
    margin-left: 0;
    margin-right: 0.5rem;
}

.map-controls {
    display: flex;
    gap: 0.5rem;
}

.map-control-btn {
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-smooth);
}

.map-control-btn:hover {
    background: rgba(212, 175, 55, 0.2);
    border-color: var(--gold);
}

.pharmacy-map {
    width: 100%;
    height: 500px;
    background: linear-gradient(135deg, rgba(10, 10, 15, 0.8) 0%, rgba(20, 20, 30, 0.8) 100%);
    color: var(--text-gray);
    position: relative;
    overflow: hidden;
}

.pharmacy-map-placeholder {
    width: min(100%, 430px);
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 18px;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.16);
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 20;
}

.pharmacy-map.leaflet-container {
    background: linear-gradient(135deg, rgba(10, 10, 15, 0.8) 0%, rgba(20, 20, 30, 0.8) 100%);
    font-family: inherit;
}

.pharmacy-map-summary {
    padding: 1rem 1.5rem 0;
    background: rgba(255, 255, 255, 0.02);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.pharmacy-map-summary-card {
    display: flex;
    flex-direction: column;
    gap: 0.9rem;
    padding: 1rem;
    border-radius: 18px;
    background: rgba(10, 10, 15, 0.78);
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.28);
    backdrop-filter: blur(16px);
}

.pharmacy-map-summary-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.75rem;
}

.pharmacy-map-summary-header h4 {
    margin: 0;
    font-size: 1rem;
    font-weight: 700;
    color: #ffffff;
}

.pharmacy-map-summary-text {
    margin: 0;
    color: rgba(241, 245, 249, 0.88);
    line-height: 1.7;
    font-size: 0.92rem;
}

.pharmacy-map .leaflet-control-attribution {
    background: rgba(10, 10, 15, 0.72);
    color: rgba(226, 232, 240, 0.9);
    border-radius: 10px 0 0 0;
    padding: 0.3rem 0.55rem;
}

.pharmacy-map .leaflet-control-attribution a {
    color: var(--gold);
}

.pharmacy-map .leaflet-popup-content-wrapper {
    border-radius: 18px;
    background: rgba(10, 10, 15, 0.96);
    color: #f8fafc;
    box-shadow: 0 24px 48px rgba(0, 0, 0, 0.32);
}

.pharmacy-map .leaflet-popup-tip {
    background: rgba(10, 10, 15, 0.96);
}

.pharmacy-map .leaflet-popup-content {
    margin: 0;
    min-width: 260px;
}

.pharmacy-user-location-marker {
    background: transparent;
    border: none;
}

.pharmacy-user-location-pin {
    position: relative;
    width: 34px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: visible;
    filter: drop-shadow(0 0 18px rgba(239, 68, 68, 0.55));
}

.pharmacy-user-location-pin::after {
    content: '';
    position: absolute;
    inset: 4px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.95);
    box-shadow: 0 0 0 5px rgba(239, 68, 68, 0.16);
}

.pharmacy-user-location-pulse {
    position: absolute;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(248, 113, 113, 0.4) 0%, rgba(239, 68, 68, 0.24) 55%, rgba(239, 68, 68, 0) 74%);
    animation: pharmacy-user-location-pulse 1.5s ease-out infinite;
}

.pharmacy-user-location-core {
    position: relative;
    z-index: 1;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, #fecaca 0%, #f87171 38%, #dc2626 100%);
    border: 3px solid #ffffff;
    box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.26), 0 0 22px rgba(239, 68, 68, 0.82);
    animation: pharmacy-user-location-blink 1.15s ease-in-out infinite;
}

@keyframes pharmacy-user-location-pulse {
    0% {
        transform: scale(0.72);
        opacity: 0.95;
    }
    70% {
        transform: scale(1.4);
        opacity: 0;
    }
    100% {
        transform: scale(1.4);
        opacity: 0;
    }
}

@keyframes pharmacy-user-location-blink {
    0%, 100% {
        opacity: 1;
        box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.26), 0 0 22px rgba(239, 68, 68, 0.82);
    }
    50% {
        opacity: 0.45;
        box-shadow: 0 0 0 2px rgba(239, 68, 68, 0.18), 0 0 10px rgba(239, 68, 68, 0.38);
    }
}

.pharmacy-map-marker {
    background: transparent;
    border: none;
}

.pharmacy-map-pin {
    --pharmacy-marker-color: #2563eb;
    --pharmacy-marker-glow: rgba(37, 99, 235, 0.35);
    position: relative;
    width: 38px;
    height: 50px;
    display: block;
    overflow: visible;
    filter: drop-shadow(0 10px 18px var(--pharmacy-marker-glow));
}

.pharmacy-map-pin.available {
    --pharmacy-marker-color: #2563eb;
    --pharmacy-marker-glow: rgba(37, 99, 235, 0.38);
}

.pharmacy-map-pin.busy {
    --pharmacy-marker-color: #f59e0b;
    --pharmacy-marker-glow: rgba(245, 158, 11, 0.38);
}

.pharmacy-map-pin.closed {
    --pharmacy-marker-color: #7f1d1d;
    --pharmacy-marker-glow: rgba(127, 29, 29, 0.42);
}

.pharmacy-map-pin-pulse {
    position: absolute;
    top: 2px;
    left: 50%;
    width: 31px;
    height: 31px;
    border-radius: 50%;
    transform: translateX(-50%);
    background: radial-gradient(circle, rgba(255, 255, 255, 0.28) 0%, var(--pharmacy-marker-glow) 55%, transparent 75%);
    animation: pharmacy-map-pin-pulse 1.7s ease-out infinite;
}

.pharmacy-map-pin-body {
    position: absolute;
    top: 6px;
    left: 50%;
    width: 28px;
    height: 28px;
    border-radius: 50% 50% 50% 0;
    transform: translateX(-50%) rotate(-45deg);
    background: var(--pharmacy-marker-color);
    border: 2px solid #ffffff;
    box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.1), 0 0 18px var(--pharmacy-marker-glow);
    animation: pharmacy-map-pin-flicker 1.2s ease-in-out infinite;
}

.pharmacy-map-pin-center {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #ffffff;
    transform: translate(-50%, -50%) rotate(45deg);
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.65);
}

@keyframes pharmacy-map-pin-pulse {
    0% {
        opacity: 0.85;
        transform: translateX(-50%) scale(0.82);
    }
    70% {
        opacity: 0;
        transform: translateX(-50%) scale(1.35);
    }
    100% {
        opacity: 0;
        transform: translateX(-50%) scale(1.35);
    }
}

@keyframes pharmacy-map-pin-flicker {
    0%, 100% {
        opacity: 1;
        filter: brightness(1);
    }
    50% {
        opacity: 0.62;
        filter: brightness(1.18);
    }
}

.pharmacy-popup-card {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    padding: 1rem;
}

.pharmacy-popup-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.75rem;
}

.pharmacy-popup-header h4 {
    margin: 0;
    font-size: 1rem;
    line-height: 1.5;
    color: #ffffff;
}

.pharmacy-popup-address {
    display: flex;
    align-items: flex-start;
    gap: 0.55rem;
    margin: 0;
    color: rgba(226, 232, 240, 0.9);
    line-height: 1.65;
}

.pharmacy-popup-address i,
.pharmacy-popup-meta-item i {
    color: var(--gold);
    margin-top: 0.2rem;
}

.pharmacy-popup-meta {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.6rem;
}

.pharmacy-popup-meta-item {
    display: flex;
    align-items: flex-start;
    gap: 0.55rem;
    color: rgba(226, 232, 240, 0.88);
    font-size: 0.92rem;
}

.pharmacy-popup-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.65rem;
}

.pharmacy-popup-actions .btn-pharmacy-action {
    justify-content: center;
    width: 100%;
}

.pharmacy-map-placeholder h4,
.pharmacy-empty-state h4 {
    font-size: 1.1rem;
    font-weight: 700;
    color: white;
}

.pharmacy-map-placeholder p,
.pharmacy-empty-state p {
    color: var(--text-gray);
    line-height: 1.7;
}

.map-summary-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.map-summary-badge {
    padding: 0.5rem 0.85rem;
    border-radius: 999px;
    background: rgba(212, 175, 55, 0.12);
    border: 1px solid rgba(212, 175, 55, 0.24);
    color: var(--gold);
    font-size: 0.85rem;
    font-weight: 600;
}

.map-summary-card {
    padding: 1rem 1.1rem;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
}

.map-summary-card strong {
    display: block;
    margin-bottom: 0.35rem;
    color: white;
}

.map-summary-card span {
    color: var(--text-gray);
}

.map-summary-action {
    width: 100%;
    justify-content: center;
}

.pharmacy-empty-state {
    text-align: center;
}

.pharmacy-empty-state .pharmacy-card-body {
    align-items: center;
}

.map-legend {
    display: flex;
    gap: 2rem;
    padding: 1rem 1.5rem;
    background: rgba(255, 255, 255, 0.03);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
}

.legend-marker {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.legend-marker.available {
    background: #2563eb;
    box-shadow: 0 0 10px rgba(37, 99, 235, 0.5);
}

.legend-marker.busy {
    background: #f59e0b;
    box-shadow: 0 0 10px rgba(245, 158, 11, 0.5);
}

.legend-marker.closed {
    background: #7f1d1d;
    box-shadow: 0 0 10px rgba(127, 29, 29, 0.5);
}

.pharmacy-results {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.results-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.results-header h3 {
    font-size: 1.25rem;
    font-weight: 700;
}

.results-count {
    padding: 0.5rem 1rem;
    background: rgba(212, 175, 55, 0.1);
    border: 1px solid rgba(212, 175, 55, 0.3);
    border-radius: 50px;
    color: var(--gold);
    font-weight: 600;
    font-size: 0.875rem;
}

.pharmacy-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    max-height: 600px;
    overflow-y: auto;
    padding-left: 0.5rem;
}

[dir="ltr"] .pharmacy-list {
    padding-left: 0;
    padding-right: 0.5rem;
}

.pharmacy-list::-webkit-scrollbar {
    width: 6px;
}

.pharmacy-list::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
}

.pharmacy-list::-webkit-scrollbar-thumb {
    background: var(--gradient-gold);
    border-radius: 10px;
}

.pharmacy-card {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 1.5rem;
    transition: var(--transition-smooth);
}

.pharmacy-card:hover {
    border-color: rgba(212, 175, 55, 0.3);
    transform: translateX(-5px);
    box-shadow: 0 10px 30px rgba(212, 175, 55, 0.1);
}

[dir="ltr"] .pharmacy-card:hover {
    transform: translateX(5px);
}

.pharmacy-card-header {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1rem;
}

.pharmacy-icon {
    width: 50px;
    height: 50px;
    background: var(--gradient-gold);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.pharmacy-icon i {
    font-size: 1.5rem;
    color: var(--dark-bg);
}

.pharmacy-info {
    flex: 1;
}

.pharmacy-info h4 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.pharmacy-location {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-gray);
    font-size: 0.875rem;
}

.pharmacy-location i {
    color: var(--gold);
}

.pharmacy-status {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 600;
    white-space: nowrap;
}

.pharmacy-status.available {
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.3);
    color: #10b981;
}

.pharmacy-status.busy {
    background: rgba(245, 158, 11, 0.1);
    border: 1px solid rgba(245, 158, 11, 0.3);
    color: #f59e0b;
}

.pharmacy-status.closed {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #ef4444;
}

.pharmacy-status i {
    font-size: 0.5rem;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.pharmacy-card-body {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.pharmacy-details {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

.detail-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: var(--text-gray);
}

.detail-item i {
    color: var(--gold);
}

.pharmacy-actions {
    display: flex;
    gap: 0.75rem;
}

.btn-pharmacy-action {
    flex: 1;
    padding: 0.75rem 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: white;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: var(--transition-smooth);
}

.btn-pharmacy-action:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
}

.btn-pharmacy-action.primary {
    background: var(--gradient-gold);
    border-color: transparent;
    color: var(--dark-bg);
}

.btn-pharmacy-action.primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(212, 175, 55, 0.3);
}

.pharmacy-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}

.stat-card {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 2rem;
    text-align: center;
    transition: var(--transition-smooth);
}

.stat-card:hover {
    transform: translateY(-5px);
    border-color: rgba(212, 175, 55, 0.3);
    box-shadow: 0 10px 30px rgba(212, 175, 55, 0.1);
}

.stat-card i {
    font-size: 2.5rem;
    background: var(--gradient-gold);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1rem;
}

.stat-card h3 {
    font-size: 2.5rem;
    font-weight: 700;
    background: var(--gradient-gold);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
}

.stat-card p {
    color: var(--text-gray);
    font-size: 0.95rem;
}

/* ===== CONTACT SECTION ===== */
.contact {
    position: relative;
    padding: 6rem 0;
    overflow: hidden;
}

.contact-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
}

.orb-contact-1 {
    top: 20%;
    right: -15%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(212, 175, 55, 0.1) 0%, transparent 70%);
}

.orb-contact-2 {
    bottom: 20%;
    left: -15%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.1) 0%, transparent 70%);
}

.orb-contact-3 {
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.08) 0%, transparent 70%);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 3rem;
    margin-top: 3rem;
}

.contact-methods {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contact-method-card {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 1.5rem;
    display: flex;
    gap: 1.5rem;
    transition: var(--transition-smooth);
}

.contact-method-card:hover {
    border-color: rgba(212, 175, 55, 0.3);
    transform: translateX(-5px);
    box-shadow: 0 10px 30px rgba(212, 175, 55, 0.1);
}

[dir="ltr"] .contact-method-card:hover {
    transform: translateX(5px);
}

.method-icon {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.method-icon.phone {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
}

.method-icon.email {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
}

.method-icon.location {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
}

.method-icon.whatsapp {
    background: linear-gradient(135deg, #25d366 0%, #128c7e 100%);
}

.method-icon i {
    font-size: 1.75rem;
    color: white;
}

.method-content {
    flex: 1;
}

.method-content h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.method-content p {
    color: var(--text-gray);
    font-size: 0.875rem;
    margin-bottom: 0.75rem;
}

.method-link {
    display: block;
    color: var(--gold);
    text-decoration: none;
    font-weight: 600;
    margin-bottom: 0.25rem;
    transition: var(--transition-smooth);
}

.method-link:hover {
    color: #f4d03f;
    transform: translateX(5px);
}

[dir="ltr"] .method-link:hover {
    transform: translateX(-5px);
}

.method-link i {
    margin-left: 0.5rem;
}

[dir="ltr"] .method-link i {
    margin-left: 0;
    margin-right: 0.5rem;
}

.method-address {
    color: var(--text-gray);
    line-height: 1.6;
}

.contact-social {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 1.5rem;
}

.contact-social h4 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-link {
    width: 45px;
    height: 45px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    border: 1px solid transparent;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.18);
    text-decoration: none;
    transition: var(--transition-smooth);
}

.social-link.facebook {
    --social-brand: #1877f2;
    background: linear-gradient(135deg, #1877f2 0%, #0c63d4 100%);
    border-color: rgba(24, 119, 242, 0.35);
}

.social-link.instagram {
    --social-brand: #e1306c;
    background: linear-gradient(135deg, #e1306c 0%, #c13584 100%);
    border-color: rgba(225, 48, 108, 0.35);
}

.social-link.twitter {
    --social-brand: #1da1f2;
    background: linear-gradient(135deg, #1da1f2 0%, #0d8bd9 100%);
    border-color: rgba(29, 161, 242, 0.35);
}

.social-link.youtube {
    --social-brand: #ff0000;
    background: linear-gradient(135deg, #ff0000 0%, #cc0000 100%);
    border-color: rgba(255, 0, 0, 0.35);
}

.social-link.linkedin {
    --social-brand: #0077b5;
    background: linear-gradient(135deg, #0077b5 0%, #005885 100%);
    border-color: rgba(0, 119, 181, 0.35);
}

.social-link i {
    color: inherit;
    font-size: 1.25rem;
}

.contact-social .social-link:hover,
.contact-social .social-link:focus {
    background: rgba(255, 255, 255, 0.96);
    color: var(--social-brand);
    border-color: currentColor;
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

body.light-mode .contact-social .social-link {
    box-shadow: 0 10px 24px rgba(30, 58, 138, 0.12);
}

.contact-social .social-links .social-link {
    border-radius: 50%;
    color: #ffffff;
}

.contact-social .social-links .social-link.facebook,
body.light-mode .contact-social .social-links .social-link.facebook {
    background: linear-gradient(135deg, #1877f2 0%, #0c63d4 100%);
    border-color: rgba(24, 119, 242, 0.35);
    color: #ffffff;
}

.contact-social .social-links .social-link.instagram,
body.light-mode .contact-social .social-links .social-link.instagram {
    background: linear-gradient(135deg, #e1306c 0%, #c13584 100%);
    border-color: rgba(225, 48, 108, 0.35);
    color: #ffffff;
}

.contact-social .social-links .social-link.twitter,
body.light-mode .contact-social .social-links .social-link.twitter {
    background: linear-gradient(135deg, #1da1f2 0%, #0d8bd9 100%);
    border-color: rgba(29, 161, 242, 0.35);
    color: #ffffff;
}

.contact-social .social-links .social-link.youtube,
body.light-mode .contact-social .social-links .social-link.youtube {
    background: linear-gradient(135deg, #ff0000 0%, #cc0000 100%);
    border-color: rgba(255, 0, 0, 0.35);
    color: #ffffff;
}

.contact-social .social-links .social-link.linkedin,
body.light-mode .contact-social .social-links .social-link.linkedin {
    background: linear-gradient(135deg, #0077b5 0%, #005885 100%);
    border-color: rgba(0, 119, 181, 0.35);
    color: #ffffff;
}

.contact-social .social-links .social-link:hover,
.contact-social .social-links .social-link:focus,
body.light-mode .contact-social .social-links .social-link:hover,
body.light-mode .contact-social .social-links .social-link:focus {
    background: #ffffff;
    color: var(--social-brand);
    border-color: currentColor;
}

.contact-form-container {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    padding: 2.5rem;
}

.form-header {
    text-align: center;
    margin-bottom: 2rem;
}

.form-header i {
    font-size: 3rem;
    background: var(--gradient-gold);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1rem;
}

.form-header h3 {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.form-header p {
    color: var(--text-gray);
    font-size: 0.95rem;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    font-weight: 600;
    color: var(--gold);
    font-size: 0.9rem;
}

.input-wrapper {
    position: relative;
}

.input-wrapper i {
    position: absolute;
    top: 50%;
    right: 1rem;
    transform: translateY(-50%);
    color: var(--gold);
    pointer-events: none;
}

[dir="ltr"] .input-wrapper i {
    right: auto;
    left: 1rem;
}

.input-wrapper textarea + i {
    top: 1rem;
    transform: none;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
    width: 100%;
    padding: 1rem 3rem 1rem 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    color: white;
    font-size: 1rem;
    font-family: inherit;
    transition: var(--transition-smooth);
}

[dir="ltr"] .contact-form input,
[dir="ltr"] .contact-form select,
[dir="ltr"] .contact-form textarea {
    padding: 1rem 1rem 1rem 3rem;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--gold);
    background: rgba(255, 255, 255, 0.08);
}

.contact-form select option {
    background: var(--dark-bg);
    color: white;
}

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

.btn-submit-form {
    padding: 1.25rem 2.5rem;
    background: var(--gradient-gold);
    color: var(--dark-bg);
    border: none;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    transition: var(--transition-smooth);
}

.btn-submit-form:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(212, 175, 55, 0.4);
}

.btn-submit-form i {
    font-size: 1.2rem;
}

.form-success {
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.3);
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
    color: #10b981;
}

.form-success i {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.form-success p {
    font-weight: 600;
}

.contact-faq {
    margin-top: 4rem;
    text-align: center;
}

.contact-faq h3 {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 2rem;
}

.faq-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

.faq-card {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 2rem 1.5rem;
    text-decoration: none;
    color: white;
    transition: var(--transition-smooth);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.faq-card:hover {
    border-color: rgba(212, 175, 55, 0.3);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(212, 175, 55, 0.1);
}

.faq-card i {
    font-size: 2.5rem;
    background: var(--gradient-gold);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.faq-card h4 {
    font-size: 1rem;
    font-weight: 600;
    text-align: center;
    line-height: 1.4;
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 1024px) {
    .pharmacy-filters {
        grid-template-columns: 1fr;
    }

    .pharmacy-content {
        grid-template-columns: 1fr;
    }

    .pharmacy-stats {
        grid-template-columns: repeat(2, 1fr);
    }

    .contact-grid {
        grid-template-columns: 1fr;
    }

    .faq-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .form-row {
        grid-template-columns: 1fr;
    }

    .pharmacy-details {
        grid-template-columns: 1fr;
    }

    .pharmacy-stats {
        grid-template-columns: 1fr;
    }

    .faq-grid {
        grid-template-columns: 1fr;
    }

    .social-links {
        flex-wrap: wrap;
    }
}

/* ===================================
   ABOUT SECTION
   ================================ */
.about {
    padding: 120px 0;
    background: linear-gradient(135deg, #0a0a0f 0%, #1a1a2e 100%);
    position: relative;
    overflow: hidden;
}

.about::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 20% 50%, rgba(212, 175, 55, 0.05) 0%, transparent 50%);
    pointer-events: none;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
    position: relative;
    z-index: 1;
}

.about-text {
    padding-right: 40px;
}

[dir="rtl"] .about-text {
    padding-right: 0;
    padding-left: 40px;
}

.about-description {
    font-size: 1.1rem;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.7);
    margin: 30px 0;
}

.about-features {
    display: flex;
    flex-direction: column;
    gap: 25px;
    margin: 40px 0;
}

.about-feature {
    display: flex;
    gap: 20px;
    padding: 25px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 16px;
    border: 1px solid rgba(212, 175, 55, 0.1);
    transition: all 0.3s ease;
}

.about-feature:hover {
    background: rgba(212, 175, 55, 0.05);
    border-color: rgba(212, 175, 55, 0.3);
    transform: translateX(-5px);
}

[dir="rtl"] .about-feature:hover {
    transform: translateX(5px);
}

.feature-icon {
    width: 60px;
    height: 60px;
    min-width: 60px;
    background: linear-gradient(135deg, #d4af37 0%, #f4d03f 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: #0a0a0f;
}

.feature-content h4 {
    font-size: 1.2rem;
    color: #fff;
    margin-bottom: 8px;
    font-weight: 600;
}

.feature-content p {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.6;
}

.about-cta {
    display: flex;
    gap: 20px;
    margin-top: 40px;
    flex-wrap: wrap;
}

/* About Image */
.about-image {
    position: relative;
}

.about-image-wrapper {
    position: relative;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.about-image-wrapper img {
    width: 100%;
    height: 600px;
    object-fit: cover;
    display: block;
}

.about-image-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(10, 10, 15, 0.95) 0%, transparent 100%);
    padding: 40px;
    display: flex;
    justify-content: space-around;
    gap: 20px;
}

.overlay-stat {
    text-align: center;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, #d4af37 0%, #f4d03f 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 8px;
}

.stat-label {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.8);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Floating Badges */
.about-badge-float {
    position: absolute;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 15px 25px;
    border-radius: 50px;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    font-weight: 600;
    color: #0a0a0f;
    z-index: 2;
}

.about-badge-float i {
    font-size: 1.2rem;
    color: #d4af37;
}

.about-badge-float.badge-1 {
    top: 40px;
    right: -20px;
}

.about-badge-float.badge-2 {
    bottom: 120px;
    left: -20px;
}

[dir="rtl"] .about-badge-float.badge-1 {
    right: auto;
    left: -20px;
}

[dir="rtl"] .about-badge-float.badge-2 {
    left: auto;
    right: -20px;
}

/* ===================================
   MOBILE RESPONSIVE - ABOUT SECTION
   ================================ */
@media (max-width: 1024px) {
    .about-content {
        grid-template-columns: 1fr;
        gap: 60px;
    }

    .about-text {
        padding-right: 0;
    }

    [dir="rtl"] .about-text {
        padding-left: 0;
    }

    .about-image-wrapper img {
        height: 500px;
    }

    .about-badge-float.badge-1 {
        top: 20px;
        right: 20px;
    }

    .about-badge-float.badge-2 {
        bottom: 100px;
        left: 20px;
    }

    [dir="rtl"] .about-badge-float.badge-1 {
        left: 20px;
    }

    [dir="rtl"] .about-badge-float.badge-2 {
        right: 20px;
    }
}

@media (max-width: 768px) {
    .about {
        padding: 80px 0;
    }

    .about-content {
        gap: 40px;
    }

    .about-description {
        font-size: 1rem;
    }

    .about-features {
        gap: 20px;
        margin: 30px 0;
    }

    .about-feature {
        padding: 20px;
    }

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

    .feature-content h4 {
        font-size: 1.1rem;
    }

    .feature-content p {
        font-size: 0.9rem;
    }

    .about-cta {
        flex-direction: column;
        gap: 15px;
    }

    .about-cta .btn-hero-primary,
    .about-cta .btn-hero-secondary {
        width: 100%;
        justify-content: center;
    }

    .about-image-wrapper img {
        height: 400px;
    }

    .about-image-overlay {
        padding: 30px 20px;
        flex-wrap: wrap;
    }

    .stat-number {
        font-size: 2rem;
    }

    .stat-label {
        font-size: 0.8rem;
    }

    .about-badge-float {
        padding: 12px 20px;
        font-size: 0.9rem;
    }

    .about-badge-float i {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .about {
        padding: 60px 0;
    }

    .about-feature {
        flex-direction: column;
        text-align: center;
        padding: 20px 15px;
    }

    .feature-icon {
        margin: 0 auto;
    }

    .about-image-wrapper img {
        height: 300px;
    }

    .about-image-overlay {
        padding: 20px 15px;
    }

    .overlay-stat {
        flex: 1;
        min-width: 80px;
    }

    .stat-number {
        font-size: 1.5rem;
    }

    .stat-label {
        font-size: 0.7rem;
    }

    .about-badge-float {
        position: static;
        margin: 10px auto;
        display: inline-flex;
    }

    .about-image {
        display: flex;
        flex-direction: column;
        gap: 15px;
    }
}

/* ===================================
   ENHANCED MOBILE RESPONSIVENESS
   ================================ */
@media (max-width: 768px) {
    /* Header Mobile Optimization */
    .header {
        padding: 1rem 0;
        height: 70px;
    }

    .header-content {
        padding: 0 1.5rem;
        display: flex;
        justify-content: space-between;
        align-items: center;
        position: relative;
        height: 100%;
    }

    /* Logo optimization - centered with flex */
    .logo {
        font-size: 1.4rem;
        gap: 0.5rem;
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
        z-index: 1;
    }

    [dir="rtl"] .logo {
        right: 50%;
        left: auto;
        transform: translateX(50%);
    }

    .logo i {
        font-size: 1.6rem;
    }

    /* Hide all header actions on mobile except menu button */
    .header-actions > *:not(.mobile-menu-btn) {
        display: none !important;
    }

    .header-actions {
        display: flex !important;
        position: relative;
        left: 0;
        z-index: 2;
    }

    [dir="rtl"] .header-actions {
        right: 0;
        left: auto;
    }

    /* Mobile menu button styling - professional design */
    .mobile-menu-btn {
        display: flex !important;
        width: 44px;
        height: 44px;
        padding: 0;
        position: relative;
        left: 0;
        transform: none;
        background: rgba(212, 175, 55, 0.1);
        border: 1.5px solid rgba(212, 175, 55, 0.3);
        border-radius: 10px;
        justify-content: center;
        align-items: center;
    }

    .mobile-menu-btn:hover {
        background: rgba(212, 175, 55, 0.2);
        border-color: var(--primary-gold);
    }

    [dir="rtl"] .mobile-menu-btn {
        right: 0;
        left: auto;
    }

    .mobile-menu-btn span {
        width: 22px;
        height: 2.5px;
        background: var(--primary-gold);
        border-radius: 2px;
    }

    .mobile-menu-btn:hover span {
        background: var(--primary-gold);
        box-shadow: 0 0 8px rgba(212, 175, 55, 0.5);
    }

    /* Mobile Menu Actions - Hidden by default, shown only on mobile */
    .mobile-menu-actions {
        display: flex;
        flex-direction: column;
        gap: 1rem;
        margin-top: 2rem;
        padding-top: 2rem;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
    }

    /* Hero Slider Mobile Adjustments */
    .product-showcase {
        max-width: 100%;
        height: 450px;
    }

    .slider-arrow {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }

    .slider-arrow.prev {
        left: -50px;
    }

    .slider-arrow.next {
        right: -50px;
    }

    .slider-dots {
        bottom: -40px;
    }

    .dot {
        width: 10px;
        height: 10px;
    }

    /* AI Chat Mobile Improvements */
    .chat-messages {
        min-height: 350px;
        max-height: 500px;
        padding: 1.5rem;
        gap: 1rem;
    }

    .message-content {
        max-width: 85%;
        padding: 1rem 1.25rem;
    }

    .message-content p {
        font-size: 1rem;
    }

    .chat-input {
        font-size: 1rem;
        padding: 0.5rem;
    }

    .message-avatar {
        width: 40px;
        height: 40px;
    }

    /* Mobile Language Selector */
    .mobile-lang-selector {
        background: rgba(255, 255, 255, 0.05);
        border-radius: 12px;
        padding: 1rem;
    }

    .mobile-lang-label {
        display: flex;
        align-items: center;
        gap: 0.75rem;
        font-size: 1rem;
        color: var(--gold);
        margin-bottom: 1rem;
        font-weight: 600;
    }

    .mobile-lang-label i {
        font-size: 1.2rem;
    }

    .mobile-lang-options {
        display: flex;
        flex-direction: column;
        gap: 0.5rem;
    }

    .mobile-lang-option {
        display: flex;
        align-items: center;
        gap: 1rem;
        padding: 1rem;
        background: rgba(255, 255, 255, 0.05);
        border: 1px solid rgba(255, 255, 255, 0.1);
        border-radius: 8px;
        color: var(--text-white);
        font-size: 1.1rem;
        cursor: pointer;
        transition: all 0.3s ease;
        width: 100%;
        text-align: left;
    }

    [dir="rtl"] .mobile-lang-option {
        text-align: right;
    }

    .mobile-lang-option:hover {
        background: rgba(212, 175, 55, 0.1);
        border-color: var(--gold);
        transform: translateX(-5px);
    }

    [dir="rtl"] .mobile-lang-option:hover {
        transform: translateX(5px);
    }

    .mobile-lang-option .lang-flag {
        font-size: 1.5rem;
    }

    .mobile-lang-option .lang-name {
        flex: 1;
    }

    .mobile-lang-option .lang-check {
        opacity: 0;
        color: var(--gold);
        font-size: 1.2rem;
    }

    .mobile-lang-option[data-lang].active .lang-check {
        opacity: 1;
    }

    /* Mobile Theme Toggle */
    .mobile-theme-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 1rem;
        padding: 1.2rem;
        background: rgba(255, 255, 255, 0.05);
        border: 1px solid rgba(255, 255, 255, 0.1);
        border-radius: 12px;
        color: var(--text-white);
        font-size: 1.1rem;
        font-weight: 600;
        cursor: pointer;
        transition: all 0.3s ease;
        width: 100%;
    }

    .mobile-theme-toggle:hover {
        background: rgba(212, 175, 55, 0.1);
        border-color: var(--gold);
    }

    .mobile-theme-toggle i {
        font-size: 1.3rem;
        color: var(--gold);
    }

    /* Hero Section */
    .hero {
        min-height: auto;
        padding: 100px 0 60px;
    }

    .hero-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .hero-text {
        text-align: center;
    }

    .hero-buttons {
        justify-content: center;
        flex-wrap: wrap;
    }

    .hero-stats {
        justify-content: center;
    }

    .floating-card {
        position: static;
        margin: 10px;
    }

    /* Products Grid */
    .products-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .product-item {
        max-width: 100%;
    }

    /* Maternal Care Tabs */
    .tab-buttons {
        flex-direction: column;
        gap: 10px;
    }

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

    /* Pharmacy Cards */
    .pharmacy-grid {
        grid-template-columns: 1fr;
    }

    .pharmacy-card {
        max-width: 100%;
    }
}

@media (max-width: 480px) {
    /* Typography */
    .section-title {
        font-size: 2rem;
    }

    .title-main {
        font-size: 2.5rem;
    }

    .hero-tagline {
        font-size: 1.2rem;
    }

    /* Buttons */
    .btn-hero-primary,
    .btn-hero-secondary {
        padding: 14px 24px;
        font-size: 0.95rem;
    }

    /* Product Cards */
    .product-badge {
        font-size: 0.7rem;
        padding: 4px 10px;
    }

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

    /* Modal */
    .modal-content {
        width: 95%;
        max-width: 95%;
        margin: 20px auto;
        padding: 20px;
    }

    .modal-close {
        top: 10px;
        right: 10px;
        width: 35px;
        height: 35px;
    }
}

/* ================================
   ADVANCED MOBILE OPTIMIZATION
   ================================ */

/* Smooth scrolling for mobile */
@media (max-width: 768px) {
    html {
        -webkit-overflow-scrolling: touch;
        scroll-behavior: smooth;
    }

    body {
        -webkit-font-smoothing: antialiased;
        -moz-osx-font-smoothing: grayscale;
        text-rendering: optimizeLegibility;
    }

    /* Prevent horizontal scroll */
    body, html {
        overflow-x: hidden;
        max-width: 100vw;
    }

    /* Container adjustments */
    .container {
        padding: 0 1.5rem;
        max-width: 100%;
    }

    /* Header optimization */
    .header {
        padding: 1rem 0;
        backdrop-filter: blur(20px);
    }

    .header-content {
        padding: 0 1rem;
    }

    .logo {
        font-size: 1.3rem;
    }

    .logo i {
        font-size: 1.5rem;
    }

    /* Mobile menu improvements */
    .nav {
        padding: 2rem 1rem;
        max-height: calc(100vh - 80px);
        overflow-y: auto;
    }

    .nav-link {
        padding: 1rem;
        font-size: 1.1rem;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    }

    /* Hero section mobile */
    .hero {
        padding: 120px 0 60px;
        min-height: auto;
    }

    .title-main {
        font-size: 2.5rem;
        line-height: 1.2;
    }

    .hero-tagline {
        font-size: 1.1rem;
        margin: 1rem 0;
    }

    .hero-description {
        font-size: 0.95rem;
        line-height: 1.6;
    }

    .hero-buttons {
        flex-direction: column;
        gap: 1rem;
        width: 100%;
    }

    .btn-hero-primary,
    .btn-hero-secondary {
        width: 100%;
        justify-content: center;
        padding: 1rem 2rem;
    }

    .hero-stats {
        flex-wrap: wrap;
        gap: 1.5rem;
    }

    .stat {
        flex: 1 1 calc(50% - 1rem);
        min-width: 120px;
    }

    /* Product cards mobile */
    .products-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding: 0 0.5rem;
    }

    .product-item {
        max-width: 100%;
    }

    .product-image {
        height: 250px;
    }

    /* Science cards mobile */
    .science-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .science-card {
        padding: 2rem 1.5rem;
    }

    /* Stats row mobile */
    .stats-row {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

    .stat-card {
        padding: 1.5rem 1rem;
    }

    .stat-number {
        font-size: 2rem;
    }

    /* Maternal care mobile */
    .maternal-tabs {
        flex-direction: column;
        gap: 0.75rem;
    }

    .tab-btn {
        width: 100%;
        padding: 1rem;
        font-size: 1rem;
    }

    .vitamins-grid,
    .breastfeeding-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .vitamin-card,
    .bf-card {
        padding: 1.5rem;
    }

    /* Pharmacy section mobile */
    .pharmacy-search-card {
        padding: 1.5rem;
    }

    .pharmacy-filters {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .pharmacy-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .pharmacy-list {
        max-height: none;
    }

    .pharmacy-card {
        padding: 1.5rem;
    }

    .pharmacy-map {
        height: 420px;
    }

    .pharmacy-map-summary {
        padding: 0.75rem 0.75rem 0;
    }

    .pharmacy-map-summary-card {
        padding: 0.9rem;
    }

    .pharmacy-popup-actions {
        grid-template-columns: 1fr;
    }

    .pharmacy-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

    body.light-mode .nav {
        background: linear-gradient(180deg, rgba(17, 38, 77, 0.985) 0%, rgba(37, 99, 235, 0.96) 100%);
        box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12);
    }

    body.light-mode .nav-link {
        background: rgba(255, 255, 255, 0.08);
        border: 1px solid rgba(255, 255, 255, 0.12);
        color: #f8fbff;
        box-shadow: 0 10px 24px rgba(7, 16, 38, 0.14);
    }

    body.light-mode .nav-link:hover,
    body.light-mode .nav-link.active {
        background: rgba(214, 181, 75, 0.16);
        border-color: rgba(214, 181, 75, 0.38);
        color: #ffffff;
    }

    body.light-mode .mobile-menu-actions {
        border-top: 1px solid rgba(255, 255, 255, 0.16);
    }

    body.light-mode .mobile-lang-selector,
    body.light-mode .mobile-theme-toggle {
        background: rgba(10, 24, 58, 0.18);
        border: 1px solid rgba(255, 255, 255, 0.12);
        box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
    }

    body.light-mode .mobile-lang-label {
        color: #f8fbff;
    }

    body.light-mode .mobile-lang-label i,
    body.light-mode .mobile-theme-toggle i,
    body.light-mode .mobile-lang-option .lang-check {
        color: #e6cf86;
    }

    body.light-mode .mobile-theme-toggle {
        color: #f8fbff;
    }

    body.light-mode .mobile-lang-option {
        background: rgba(255, 255, 255, 0.08);
        border: 1px solid rgba(255, 255, 255, 0.12);
        color: #f8fbff;
    }

    body.light-mode .mobile-lang-option:hover,
    body.light-mode .mobile-lang-option[data-lang].active,
    body.light-mode .mobile-theme-toggle:hover {
        background: rgba(214, 181, 75, 0.16);
        border-color: rgba(214, 181, 75, 0.38);
        color: #10234a;
        box-shadow: 0 10px 24px rgba(7, 16, 38, 0.14);
    }

    body.light-mode .mobile-lang-option:hover .lang-check,
    body.light-mode .mobile-lang-option[data-lang].active .lang-check,
    body.light-mode .mobile-theme-toggle:hover i {
        color: #10234a;
    }
}

/* Extra small devices (phones < 375px) */
@media (max-width: 375px) {
    .container {
        padding: 0 1rem;
    }

    .title-main {
        font-size: 2rem;
    }

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

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

    .stat-number {
        font-size: 1.75rem;
    }

    .btn-hero-primary,
    .btn-hero-secondary {
        padding: 0.875rem 1.5rem;
        font-size: 0.9rem;
    }
}

/* Landscape mode optimization */
@media (max-height: 500px) and (orientation: landscape) {
    .hero {
        padding: 80px 0 40px;
    }

    .title-main {
        font-size: 2rem;
    }

    .hero-stats {
        display: none;
    }
}

/* Touch-friendly improvements */
@media (hover: none) and (pointer: coarse) {
    /* Larger touch targets */
    .btn-icon,
    .lang-btn,
    .mobile-menu-btn {
        min-width: 48px;
        min-height: 48px;
    }

    .nav-link {
        min-height: 48px;
        display: flex;
        align-items: center;
    }

    /* Remove hover effects on touch devices */
    .product-item:hover .product-overlay,
    .science-card:hover,
    .vitamin-card:hover {
        transform: none;
    }

    /* Better tap highlighting */
    * {
        -webkit-tap-highlight-color: rgba(212, 175, 55, 0.2);
    }
}

/* ================================
   IMAGE OPTIMIZATION FOR MOBILE
   ================================ */
img {
    max-width: 100%;
    height: auto;
    display: block;
}

@media (max-width: 768px) {
    img {
        image-rendering: -webkit-optimize-contrast;
        image-rendering: crisp-edges;
    }

    /* Optimize product images */
    .product-image img,
    .hero-right img {
        width: 100%;
        height: auto;
        object-fit: cover;
    }
}

/* ================================
   PERFORMANCE OPTIMIZATIONS
   ================================ */
@media (max-width: 768px) {
    /* Reduce animations on mobile for better performance */
    .floating-orb {
        animation: none;
    }

    /* Simplify glassmorphism on low-end devices */
    @supports not (backdrop-filter: blur(20px)) {
        .header,
        .lang-menu,
        .product-modal-content,
        .scanner-modal-content {
            background: var(--dark-card);
            backdrop-filter: none;
        }
    }

    /* Optimize shadows */
    .product-item,
    .science-card,
    .vitamin-card {
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    }
}

/* ================================
   CONTACT & FOOTER MOBILE
   ================================ */
@media (max-width: 768px) {
    /* Contact section */
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .contact-methods {
        gap: 1rem;
    }

    .contact-method-card {
        padding: 1.5rem;
    }

    .contact-form-container {
        padding: 2rem 1.5rem;
    }

    .form-row {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .form-group input,
    .form-group textarea,
    .form-group select {
        font-size: 16px; /* Prevents zoom on iOS */
    }

    .contact-faq {
        padding: 2rem 1rem;
    }

    .faq-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    /* Footer */
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }

    .footer-brand {
        align-items: center;
    }

    .footer-links {
        text-align: center;
    }

    .footer-links ul {
        align-items: center;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    .footer-legal {
        flex-direction: column;
        gap: 0.5rem;
    }
}

/* ================================
   MODAL IMPROVEMENTS FOR MOBILE
   ================================ */
@media (max-width: 768px) {
    /* Product Modal */
    .product-modal-content {
        width: 95%;
        max-width: 95%;
        margin: 1rem auto;
        padding: 2rem 1.5rem;
        max-height: 90vh;
        overflow-y: auto;
    }

    .product-modal-close {
        top: 1rem;
        right: 1rem;
        width: 40px;
        height: 40px;
        font-size: 1.5rem;
    }

    .comparison-table {
        min-width: 860px;
    }

    .comparison-table th,
    .comparison-table td {
        padding: 0.9rem;
        font-size: 0.95rem;
    }

    /* Scanner Modal */
    .scanner-modal-content {
        width: 95%;
        max-width: 95%;
        margin: 1rem auto;
        padding: 4rem 1.5rem 1.25rem;
    }

    .scanner-close {
        top: 1rem;
        right: 1rem;
        width: 40px;
        height: 40px;
        font-size: 2rem;
    }

    .scanner-buttons {
        flex-direction: column;
        gap: 1rem;
    }

    .scanner-buttons button {
        width: 100%;
    }
}

/* ================================
   AI SCANNER FAB MOBILE
   ================================ */
@media (max-width: 768px) {
    .ai-scanner-fab {
        bottom: 20px;
        right: 20px;
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }

    .ai-scanner-fab::before {
        width: 70px;
        height: 70px;
    }
}

/* Final Scanner Modal Layout Polish */
.scanner-header {
    margin-bottom: 0.85rem;
}

.chat-container {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 24px;
    padding: 1rem;
    gap: 0.9rem;
}

.chat-messages {
    min-height: 0;
    margin: 0;
    padding: 0;
    background: transparent;
    border: none;
    box-shadow: none;
}

.ai-message .message-content {
    width: calc(100% - 61px);
    max-width: calc(100% - 61px);
}

.initial-ai-panel {
    display: flex;
    flex-direction: column;
    min-height: clamp(220px, 34vh, 360px);
}

.initial-ai-panel .answer-display {
    flex: 1;
    display: block;
    line-height: 1.85;
    margin-bottom: 1rem;
}

.quick-questions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-top: auto;
}

.chat-input-container {
    direction: inherit;
    padding: 0.7rem 0.85rem;
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid rgba(255, 255, 255, 0.14);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
}

[dir="rtl"] .chat-input-container {
    direction: rtl;
    flex-direction: row-reverse;
}

[dir="ltr"] .chat-input-container {
    direction: ltr;
    flex-direction: row;
}

.chat-attach-btn,
.chat-send-btn {
    width: 40px;
    height: 40px;
}

.chat-input {
    font-size: 1rem;
    padding: 0.4rem 0.25rem;
    color: #1e293b;
    caret-color: #2563eb;
}

[dir="rtl"] .chat-input {
    text-align: right;
}

[dir="ltr"] .chat-input {
    text-align: left;
}

.chat-input::placeholder {
    color: #94a3b8;
}

body.light-mode .chat-container {
    background: linear-gradient(180deg, #f8fafc 0%, #eef2ff 100%);
    border: 1px solid rgba(30, 58, 138, 0.12);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.75);
}

body.light-mode .chat-messages {
    background: transparent;
    border: none;
    box-shadow: none;
}

body.light-mode .initial-ai-panel {
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
    border: 1px solid rgba(30, 58, 138, 0.12);
    box-shadow: 0 8px 24px rgba(30, 58, 138, 0.08);
}

body.light-mode .chat-input-container {
    background: #ffffff;
    border: 1px solid rgba(30, 58, 138, 0.14);
    box-shadow: 0 10px 25px rgba(30, 58, 138, 0.08);
}

body.light-mode .chat-input {
    color: #1e3a8a;
}

body.light-mode .chat-input::placeholder {
    color: #94a3b8;
}

body.light-mode .chat-attach-btn {
    background: #f8fafc;
    color: #2563eb;
}

body.light-mode .chat-send-btn {
    background: linear-gradient(135deg, #2563eb 0%, #1e3a8a 100%);
    box-shadow: 0 8px 18px rgba(37, 99, 235, 0.18);
}

@media (max-width: 768px) {
    .scanner-modal-content {
        height: 90vh;
        max-height: 90vh;
        padding: 4rem 1rem 1rem;
    }

    .chat-container {
        padding: 0.75rem;
    }

    .chat-messages {
        min-height: 0;
        padding: 0;
    }

    .ai-message .message-content,
    .user-message .message-content {
        width: 100%;
        max-width: 100%;
    }

    .initial-ai-panel {
        min-height: 180px;
    }

    .quick-questions {
        grid-template-columns: 1fr;
    }

    .chat-input-container {
        gap: 0.55rem;
        padding: 0.65rem 0.75rem;
    }

    .chat-input {
        font-size: 16px;
        padding: 0.45rem 0;
    }

    .chat-attach-btn,
    .chat-send-btn {
        width: 38px;
        height: 38px;
    }
}

