/* ===== HELLO PET - CLEAN CSS (NO CONFLICTS) ===== */

/* PRELOADER - PROFESSIONAL PITBULL DOG */
.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: all 0.8s ease-in-out;
}

.preloader.fade-out {
    opacity: 0;
    visibility: hidden;
    transform: scale(1.1);
}

.preloader-content {
    text-align: center;
    animation: fadeInUp 1s ease-out;
}

.dog-runner {
    position: relative;
    width: 300px;
    height: 120px;
    margin-bottom: 2rem;
}

/* PITBULL BODY - MUSCULAR & ATHLETIC */
.dog-body {
    position: absolute;
    bottom: 35px;
    left: 50%;
    transform: translateX(-50%);
    width: 90px;
    height: 38px;
    background: radial-gradient(ellipse at center, #8B4513 0%, #654321 60%, #4A2C17 100%);
    border-radius: 25px 35px 20px 15px;
    animation: dogRun 0.5s ease-in-out infinite;
    box-shadow: 
        inset 0 3px 8px rgba(0,0,0,0.2),
        0 6px 20px rgba(0,0,0,0.15);
}

/* PITBULL COAT TEXTURE */
.dog-body::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 30%, rgba(139,69,19,0.8) 1px, transparent 1px),
        radial-gradient(circle at 80% 20%, rgba(160,82,45,0.7) 1px, transparent 1px),
        radial-gradient(circle at 45% 70%, rgba(101,67,33,0.9) 1px, transparent 1px),
        radial-gradient(circle at 75% 60%, rgba(74,44,23,0.6) 1px, transparent 1px);
    background-size: 8px 8px, 12px 12px, 6px 6px, 10px 10px;
    border-radius: inherit;
    opacity: 0.7;
}

/* PITBULL HEAD - BROAD & POWERFUL */
.dog-head {
    position: absolute;
    top: -22px;
    left: 58px;
    width: 48px;
    height: 40px;
    background: radial-gradient(ellipse at center, #8B4513 0%, #654321 50%, #4A2C17 100%);
    border-radius: 60% 65% 45% 40%;
    animation: dogHeadRun 0.5s ease-in-out infinite;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

/* PITBULL HEAD TEXTURE */
.dog-head::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 25% 25%, rgba(160,82,45,0.8) 1px, transparent 1px),
        radial-gradient(circle at 75% 35%, rgba(139,69,19,0.7) 1px, transparent 1px),
        radial-gradient(circle at 50% 70%, rgba(101,67,33,0.6) 1px, transparent 1px);
    background-size: 6px 6px, 8px 8px, 5px 5px;
    border-radius: inherit;
    opacity: 0.8;
}

/* PITBULL MUZZLE - STRONG & DEFINED */
.dog-muzzle {
    position: absolute;
    top: 18px;
    right: -15px;
    width: 25px;
    height: 18px;
    background: linear-gradient(135deg, #654321 0%, #4A2C17 100%);
    border-radius: 50% 80% 60% 40%;
    animation: dogMuzzleMove 0.5s ease-in-out infinite;
}

/* PITBULL BLACK NOSE */
.dog-nose {
    position: absolute;
    top: 4px;
    right: 3px;
    width: 6px;
    height: 5px;
    background: #000;
    border-radius: 50% 50% 70% 70%;
    box-shadow: 0 1px 3px rgba(0,0,0,0.4);
}

/* PITBULL EYES - ALERT & INTELLIGENT */
.dog-eyes {
    position: absolute;
    top: 12px;
    left: 18px;
    width: 22px;
    height: 14px;
}

.dog-eye {
    position: absolute;
    width: 9px;
    height: 9px;
    background: radial-gradient(circle at 30% 30%, #8B4513 0%, #2F1B14 100%);
    border-radius: 50%;
    animation: dogBlink 3s ease-in-out infinite;
    box-shadow: 0 1px 3px rgba(0,0,0,0.3);
}

.dog-eye:first-child {
    left: 0;
}

.dog-eye:last-child {
    right: 0;
}

/* PITBULL EARS - CROPPED STYLE */
.dog-ears {
    position: absolute;
    top: 3px;
    left: 15px;
    width: 14px;
    height: 18px;
    background: linear-gradient(135deg, #654321 0%, #4A2C17 50%, #2F1B14 100%);
    border-radius: 60% 40% 80% 20%;
    animation: dogEarAlert 0.8s ease-in-out infinite;
    transform-origin: bottom center;
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}

.dog-ears::after {
    content: '';
    position: absolute;
    top: 0;
    right: -10px;
    width: 14px;
    height: 18px;
    background: linear-gradient(135deg, #654321 0%, #4A2C17 50%, #2F1B14 100%);
    border-radius: 40% 60% 20% 80%;
    animation: dogEarAlert 0.8s ease-in-out infinite reverse;
    transform-origin: bottom center;
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}

/* PITBULL TAIL - SHORT & STRONG */
.dog-tail {
    position: absolute;
    top: 10px;
    right: -18px;
    width: 25px;
    height: 8px;
    background: linear-gradient(90deg, #654321 0%, #8B4513 50%, #A0522D 100%);
    border-radius: 4px 12px 12px 4px;
    transform-origin: left center;
    animation: dogTailWag 0.4s ease-in-out infinite alternate;
    box-shadow: 0 3px 8px rgba(0,0,0,0.15);
}

/* PITBULL TAIL TEXTURE */
.dog-tail::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 30% 50%, rgba(160,82,45,0.7) 1px, transparent 1px),
        radial-gradient(circle at 70% 30%, rgba(139,69,19,0.6) 1px, transparent 1px);
    background-size: 4px 4px, 6px 6px;
    border-radius: inherit;
    opacity: 0.6;
}

/* PITBULL LEGS - STRONG & MUSCULAR */
.dog-legs {
    position: absolute;
    bottom: -18px;
    left: 18px;
    width: 55px;
    height: 22px;
}

.dog-leg {
    position: absolute;
    width: 8px;
    height: 22px;
    background: linear-gradient(180deg, #654321 0%, #4A2C17 70%, #2F1B14 100%);
    border-radius: 4px 4px 10px 10px;
    transform-origin: top center;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

/* FRONT LEGS - POWERFUL RUNNING */
.dog-leg:nth-child(1) {
    left: 35px;
    animation: dogFrontLeg1 0.25s ease-in-out infinite;
}

.dog-leg:nth-child(2) {
    left: 26px;
    animation: dogFrontLeg2 0.25s ease-in-out infinite;
}

/* BACK LEGS - EXPLOSIVE STRIDE */
.dog-leg:nth-child(3) {
    left: 17px;
    animation: dogBackLeg1 0.25s ease-in-out infinite;
}

.dog-leg:nth-child(4) {
    left: 8px;
    animation: dogBackLeg2 0.25s ease-in-out infinite;
}

/* PITBULL PAWS */
.dog-paw {
    position: absolute;
    bottom: -3px;
    left: -1px;
    width: 10px;
    height: 7px;
    background: radial-gradient(ellipse at center, #2F1B14 0%, #1A0F0A 100%);
    border-radius: 50% 50% 70% 70%;
    box-shadow: 0 1px 3px rgba(0,0,0,0.3);
}

/* PAW PADS */
.dog-paw::before {
    content: '';
    position: absolute;
    top: 1px;
    left: 1px;
    width: 8px;
    height: 4px;
    background: #000;
    border-radius: 50%;
    opacity: 0.9;
}

/* SINGLE LOADING BAR */
.loading-bars {
    display: flex;
    justify-content: center;
    margin-top: 1rem;
}

.loading-bar {
    width: 200px;
    height: 6px;
    background: rgba(59, 167, 201, 0.2);
    border-radius: 3px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.loading-bar::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, var(--brand-primary), var(--cta-secondary));
    border-radius: 3px;
    animation: loadingBarMove 2s ease-in-out infinite;
}

/* RUNNING PATH */
.running-path {
    position: absolute;
    bottom: 12px;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, transparent 0%, var(--brand-primary) 30%, var(--cta-secondary) 70%, transparent 100%);
    animation: pathRun 1s ease-in-out infinite;
    border-radius: 2px;
    box-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

.preloader-text {
    color: var(--text-dark);
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    animation: textPulse 2s ease-in-out infinite;
}

/* PITBULL RUNNING ANIMATIONS */
@keyframes dogRun {
    0%, 100% { 
        transform: translateX(-50%) translateY(0px) rotate(0deg); 
    }
    25% { 
        transform: translateX(-50%) translateY(-4px) rotate(1deg); 
    }
    50% { 
        transform: translateX(-50%) translateY(-2px) rotate(0deg); 
    }
    75% { 
        transform: translateX(-50%) translateY(-4px) rotate(-1deg); 
    }
}

@keyframes dogHeadRun {
    0%, 100% { 
        transform: translateY(0px) rotate(0deg); 
    }
    25% { 
        transform: translateY(-3px) rotate(2deg); 
    }
    50% { 
        transform: translateY(-1px) rotate(0deg); 
    }
    75% { 
        transform: translateY(-3px) rotate(-2deg); 
    }
}

@keyframes dogMuzzleMove {
    0%, 100% { transform: translateX(0px) scaleX(1); }
    50% { transform: translateX(2px) scaleX(1.03); }
}

@keyframes dogBlink {
    0%, 93%, 100% { transform: scaleY(1); }
    94%, 96% { transform: scaleY(0.1); }
}

@keyframes dogEarAlert {
    0%, 100% { transform: rotate(0deg) scaleY(1); }
    50% { transform: rotate(-8deg) scaleY(0.95); }
}

@keyframes dogTailWag {
    0% { transform: rotate(-25deg) scaleX(1); }
    100% { transform: rotate(30deg) scaleX(1.1); }
}

/* POWERFUL PITBULL LEG RUNNING CYCLE */
@keyframes dogFrontLeg1 {
    0% { transform: rotate(0deg) translateY(0px); }
    25% { transform: rotate(-35deg) translateY(-7px); }
    50% { transform: rotate(-50deg) translateY(-11px); }
    75% { transform: rotate(-25deg) translateY(-5px); }
    100% { transform: rotate(0deg) translateY(0px); }
}

@keyframes dogFrontLeg2 {
    0% { transform: rotate(-25deg) translateY(-5px); }
    25% { transform: rotate(0deg) translateY(0px); }
    50% { transform: rotate(-35deg) translateY(-7px); }
    75% { transform: rotate(-50deg) translateY(-11px); }
    100% { transform: rotate(-25deg) translateY(-5px); }
}

@keyframes dogBackLeg1 {
    0% { transform: rotate(0deg) translateY(0px); }
    25% { transform: rotate(25deg) translateY(-3px); }
    50% { transform: rotate(40deg) translateY(-7px); }
    75% { transform: rotate(20deg) translateY(-3px); }
    100% { transform: rotate(0deg) translateY(0px); }
}

@keyframes dogBackLeg2 {
    0% { transform: rotate(20deg) translateY(-3px); }
    25% { transform: rotate(0deg) translateY(0px); }
    50% { transform: rotate(25deg) translateY(-3px); }
    75% { transform: rotate(40deg) translateY(-7px); }
    100% { transform: rotate(20deg) translateY(-3px); }
}

@keyframes loadingBarMove {
    0% { left: -100%; }
    50% { left: 0%; }
    100% { left: 100%; }
}

@keyframes pathRun {
    0%, 100% { 
        opacity: 0.5; 
        transform: scaleX(0.9) translateX(0px); 
    }
    50% { 
        opacity: 1; 
        transform: scaleX(1.2) translateX(10px); 
    }
}

@keyframes textPulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.8; transform: scale(1.02); }
}

@keyframes fadeInUp {
    0% { opacity: 0; transform: translateY(30px); }
    100% { opacity: 1; transform: translateY(0); }
}

/* RESPONSIVE PRELOADER */
@media (max-width: 768px) {
    .dog-runner {
        width: 250px;
        height: 100px;
        margin-bottom: 1.5rem;
    }
    
    .dog-body {
        width: 75px;
        height: 32px;
    }
    
    .dog-head {
        width: 40px;
        height: 34px;
        left: 50px;
    }
    
    .preloader-text {
        font-size: 1.3rem;
    }
    
    .loading-bar {
        width: 150px;
        height: 5px;
    }
}

@media (max-width: 576px) {
    .dog-runner {
        width: 200px;
        height: 80px;
        margin-bottom: 1rem;
    }
    
    .dog-body {
        width: 65px;
        height: 28px;
    }
    
    .dog-head {
        width: 35px;
        height: 30px;
        left: 42px;
    }
    
    .preloader-text {
        font-size: 1.1rem;
    }
    
    .loading-bar {
        width: 120px;
        height: 4px;
    }
}

/* ===== THEME SYSTEM - LIGHT & DARK MODE ===== */

/* LIGHT THEME (DEFAULT) */
:root {
    --bg-main: #FAFAFA;
    --bg-secondary: #FFFFFF;
    --bg-tertiary: #F8F9FA;
    --brand-primary: #3BA7C9;
    --cta-secondary: #F2A365;
    --accent-gold: #C9A24D;
    --text-dark: #1F1F1F;
    --text-grey: #6B6B6B;
    --text-light: #9CA3AF;
    --glass-bg: rgba(255, 255, 255, 0.8);
    --glass-border: rgba(255, 255, 255, 0.3);
    --shadow-soft: 0 8px 32px rgba(31, 38, 135, 0.2);
    --shadow-hover: 0 15px 35px rgba(31, 38, 135, 0.3);
    --border-color: #E5E7EB;
    --border-light: #F3F4F6;
    --navbar-bg: rgba(59, 167, 201, 0.9);
    --footer-bg: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    --card-bg: #FFFFFF;
    --input-bg: #F8F9FA;
    --input-focus-bg: #FFFFFF;
    --success-bg: #10B981;
    --error-bg: #EF4444;
    --warning-bg: #F59E0B;
}

/* DARK THEME */
[data-theme="dark"] {
    --bg-main: #0F172A;
    --bg-secondary: #1E293B;
    --bg-tertiary: #334155;
    --brand-primary: #38BDF8;
    --cta-secondary: #FB923C;
    --accent-gold: #FCD34D;
    --text-dark: #F8FAFC;
    --text-grey: #CBD5E1;
    --text-light: #64748B;
    --glass-bg: rgba(30, 41, 59, 0.8);
    --glass-border: rgba(148, 163, 184, 0.2);
    --shadow-soft: 0 8px 32px rgba(0, 0, 0, 0.4);
    --shadow-hover: 0 15px 35px rgba(0, 0, 0, 0.6);
    --border-color: #475569;
    --border-light: #334155;
    --navbar-bg: rgba(30, 41, 59, 0.95);
    --footer-bg: linear-gradient(135deg, #0F172A 0%, #1E293B 100%);
    --card-bg: #1E293B;
    --input-bg: #334155;
    --input-focus-bg: #475569;
    --success-bg: #059669;
    --error-bg: #DC2626;
    --warning-bg: #D97706;
}

/* ULTRA-PROFESSIONAL THEME TOGGLE BUTTON - ENHANCED VISUAL APPEAL */
.theme-toggle-btn {
    position: relative;
    width: 70px;
    height: 36px;
    background: transparent;
    border: none;
    border-radius: 18px;
    cursor: pointer;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
    box-shadow: 
        0 8px 25px rgba(0, 0, 0, 0.18),
        0 3px 12px rgba(0, 0, 0, 0.12),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    transform-style: preserve-3d;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.theme-toggle-btn:hover {
    transform: scale(1.12) translateY(-3px) rotateX(5deg);
    box-shadow: 
        0 15px 40px rgba(59, 167, 201, 0.5),
        0 6px 20px rgba(0, 0, 0, 0.25),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    filter: brightness(1.1);
}

.theme-toggle-btn:active {
    transform: scale(1.05) translateY(-1px);
    transition-duration: 0.15s;
    box-shadow: 
        0 8px 20px rgba(59, 167, 201, 0.3),
        0 2px 8px rgba(0, 0, 0, 0.15);
}

.theme-toggle-track {
    position: relative;
    width: 100%;
    height: 100%;
    border-radius: 18px;
    background: linear-gradient(135deg, 
        #FFD700 0%, 
        #FFA500 20%, 
        #FF8C00 40%, 
        #FF7F50 60%, 
        #FF6347 80%,
        #FF4500 100%);
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 
        inset 0 4px 12px rgba(0, 0, 0, 0.25),
        inset 0 -2px 6px rgba(255, 255, 255, 0.4),
        0 0 30px rgba(255, 165, 0, 0.4);
    overflow: hidden;
    position: relative;
}

.theme-toggle-track::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, 
        rgba(255, 255, 255, 0.5) 0%, 
        transparent 20%, 
        transparent 40%, 
        rgba(255, 255, 255, 0.3) 60%, 
        transparent 80%,
        rgba(255, 255, 255, 0.2) 100%);
    border-radius: inherit;
    opacity: 1;
    transition: opacity 0.6s ease;
    animation: shimmerEnhanced 4s ease-in-out infinite;
}

.theme-toggle-track::after {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    right: 2px;
    bottom: 2px;
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.2) 0%, 
        transparent 50%, 
        rgba(255, 255, 255, 0.1) 100%);
    border-radius: 16px;
    opacity: 0.8;
}

@keyframes shimmerEnhanced {
    0%, 100% { 
        background-position: -200% 0;
        opacity: 0.7;
        transform: translateX(0);
    }
    25% { 
        background-position: -100% 0;
        opacity: 0.9;
        transform: translateX(2px);
    }
    50% { 
        background-position: 0% 0;
        opacity: 1;
        transform: translateX(0);
    }
    75% { 
        background-position: 100% 0;
        opacity: 0.9;
        transform: translateX(-2px);
    }
}

[data-theme="dark"] .theme-toggle-track {
    background: linear-gradient(135deg, 
        #0F172A 0%, 
        #1E293B 20%, 
        #334155 40%, 
        #475569 60%, 
        #64748B 80%,
        #94A3B8 100%);
    box-shadow: 
        inset 0 4px 12px rgba(0, 0, 0, 0.6),
        inset 0 -2px 6px rgba(255, 255, 255, 0.15),
        0 0 30px rgba(30, 41, 59, 0.8),
        0 0 60px rgba(59, 130, 246, 0.3);
}

[data-theme="dark"] .theme-toggle-track::before {
    background: linear-gradient(45deg, 
        rgba(148, 163, 184, 0.4) 0%, 
        transparent 20%, 
        transparent 40%, 
        rgba(148, 163, 184, 0.3) 60%, 
        transparent 80%,
        rgba(59, 130, 246, 0.2) 100%);
    opacity: 0.5;
}

[data-theme="dark"] .theme-toggle-track::after {
    background: linear-gradient(135deg, 
        rgba(148, 163, 184, 0.2) 0%, 
        transparent 50%, 
        rgba(59, 130, 246, 0.1) 100%);
    opacity: 0.6;
}

.theme-toggle-thumb {
    position: absolute;
    top: 3px;
    left: 3px;
    width: 30px;
    height: 30px;
    background: linear-gradient(135deg, 
        #FFFFFF 0%, 
        #F8FAFC 30%, 
        #E2E8F0 70%,
        #CBD5E1 100%);
    border-radius: 50%;
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 
        0 8px 25px rgba(0, 0, 0, 0.3),
        0 4px 12px rgba(0, 0, 0, 0.2),
        inset 0 3px 6px rgba(255, 255, 255, 0.95),
        inset 0 -2px 4px rgba(0, 0, 0, 0.15),
        0 0 0 1px rgba(255, 255, 255, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
    backdrop-filter: blur(5px);
}

.theme-toggle-thumb::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 30% 30%, 
        rgba(255, 255, 255, 0.95) 0%, 
        rgba(255, 255, 255, 0.6) 30%, 
        rgba(255, 255, 255, 0.2) 60%,
        transparent 80%);
    border-radius: inherit;
    transition: opacity 0.6s ease;
}

.theme-toggle-thumb::after {
    content: '';
    position: absolute;
    top: 1px;
    left: 1px;
    right: 1px;
    bottom: 1px;
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.4) 0%, 
        transparent 50%, 
        rgba(0, 0, 0, 0.05) 100%);
    border-radius: 50%;
    opacity: 0.8;
}

[data-theme="dark"] .theme-toggle-thumb {
    transform: translateX(34px);
    background: linear-gradient(135deg, 
        #1E293B 0%, 
        #0F172A 30%, 
        #020617 70%,
        #000000 100%);
    box-shadow: 
        0 8px 25px rgba(0, 0, 0, 0.7),
        0 4px 12px rgba(0, 0, 0, 0.5),
        inset 0 3px 6px rgba(255, 255, 255, 0.2),
        inset 0 -2px 4px rgba(0, 0, 0, 0.4),
        0 0 0 1px rgba(148, 163, 184, 0.3),
        0 0 20px rgba(59, 130, 246, 0.3);
}

[data-theme="dark"] .theme-toggle-thumb::before {
    background: radial-gradient(circle at 30% 30%, 
        rgba(148, 163, 184, 0.5) 0%, 
        rgba(148, 163, 184, 0.3) 30%, 
        rgba(59, 130, 246, 0.2) 60%,
        transparent 80%);
    opacity: 0.7;
}

[data-theme="dark"] .theme-toggle-thumb::after {
    background: linear-gradient(135deg, 
        rgba(148, 163, 184, 0.3) 0%, 
        transparent 50%, 
        rgba(0, 0, 0, 0.2) 100%);
    opacity: 0.9;
}

.sun-icon,
.moon-icon {
    position: absolute;
    font-size: 16px;
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 2;
    filter: drop-shadow(0 3px 6px rgba(0, 0, 0, 0.4));
}

.sun-icon {
    color: #FF8C00;
    opacity: 1;
    transform: scale(1) rotate(0deg);
    text-shadow: 
        0 0 15px rgba(255, 140, 0, 0.9),
        0 0 30px rgba(255, 140, 0, 0.5),
        0 0 45px rgba(255, 165, 0, 0.3);
    animation: sunRotateEnhanced 15s linear infinite;
}

.moon-icon {
    color: #E2E8F0;
    opacity: 0;
    transform: scale(0.2) rotate(270deg);
    text-shadow: 
        0 0 15px rgba(226, 232, 240, 0.9),
        0 0 30px rgba(226, 232, 240, 0.5),
        0 0 45px rgba(59, 130, 246, 0.3);
}

[data-theme="dark"] .sun-icon {
    opacity: 0;
    transform: scale(0.2) rotate(-270deg);
    animation: none;
    text-shadow: 
        0 0 10px rgba(255, 140, 0, 0.4),
        0 0 20px rgba(255, 140, 0, 0.2);
}

[data-theme="dark"] .moon-icon {
    opacity: 1;
    transform: scale(1) rotate(0deg);
    animation: moonGlowEnhanced 5s ease-in-out infinite;
}

@keyframes sunRotateEnhanced {
    0% { 
        transform: scale(1) rotate(0deg);
        text-shadow: 
            0 0 15px rgba(255, 140, 0, 0.9),
            0 0 30px rgba(255, 140, 0, 0.5),
            0 0 45px rgba(255, 165, 0, 0.3);
    }
    25% { 
        transform: scale(1.05) rotate(90deg);
        text-shadow: 
            0 0 20px rgba(255, 140, 0, 1),
            0 0 40px rgba(255, 140, 0, 0.7),
            0 0 60px rgba(255, 165, 0, 0.4);
    }
    50% { 
        transform: scale(1.1) rotate(180deg);
        text-shadow: 
            0 0 25px rgba(255, 140, 0, 1),
            0 0 50px rgba(255, 140, 0, 0.8),
            0 0 75px rgba(255, 165, 0, 0.5);
    }
    75% { 
        transform: scale(1.05) rotate(270deg);
        text-shadow: 
            0 0 20px rgba(255, 140, 0, 1),
            0 0 40px rgba(255, 140, 0, 0.7),
            0 0 60px rgba(255, 165, 0, 0.4);
    }
    100% { 
        transform: scale(1) rotate(360deg);
        text-shadow: 
            0 0 15px rgba(255, 140, 0, 0.9),
            0 0 30px rgba(255, 140, 0, 0.5),
            0 0 45px rgba(255, 165, 0, 0.3);
    }
}

@keyframes moonGlowEnhanced {
    0%, 100% { 
        text-shadow: 
            0 0 15px rgba(226, 232, 240, 0.9),
            0 0 30px rgba(226, 232, 240, 0.5),
            0 0 45px rgba(59, 130, 246, 0.3);
        transform: scale(1) rotate(0deg);
    }
    25% { 
        text-shadow: 
            0 0 20px rgba(226, 232, 240, 1),
            0 0 40px rgba(226, 232, 240, 0.7),
            0 0 60px rgba(59, 130, 246, 0.4);
        transform: scale(1.05) rotate(3deg);
    }
    50% { 
        text-shadow: 
            0 0 25px rgba(226, 232, 240, 1),
            0 0 50px rgba(226, 232, 240, 0.8),
            0 0 75px rgba(59, 130, 246, 0.5);
        transform: scale(1.08) rotate(0deg);
    }
    75% { 
        text-shadow: 
            0 0 20px rgba(226, 232, 240, 1),
            0 0 40px rgba(226, 232, 240, 0.7),
            0 0 60px rgba(59, 130, 246, 0.4);
        transform: scale(1.05) rotate(-3deg);
    }
}

/* ENHANCED HOVER EFFECTS WITH PROFESSIONAL ANIMATIONS */
.theme-toggle-btn:hover .theme-toggle-track {
    box-shadow: 
        inset 0 4px 12px rgba(0, 0, 0, 0.35),
        inset 0 -2px 6px rgba(255, 255, 255, 0.5),
        0 0 40px rgba(255, 165, 0, 0.6),
        0 0 80px rgba(255, 140, 0, 0.3);
    transform: scale(1.02);
}

[data-theme="dark"] .theme-toggle-btn:hover .theme-toggle-track {
    box-shadow: 
        inset 0 4px 12px rgba(0, 0, 0, 0.7),
        inset 0 -2px 6px rgba(255, 255, 255, 0.2),
        0 0 40px rgba(30, 41, 59, 0.9),
        0 0 80px rgba(59, 130, 246, 0.4);
    transform: scale(1.02);
}

.theme-toggle-btn:hover .theme-toggle-thumb {
    transform: translateY(-2px) scale(1.08);
    box-shadow: 
        0 12px 35px rgba(0, 0, 0, 0.4),
        0 6px 18px rgba(0, 0, 0, 0.25),
        inset 0 3px 6px rgba(255, 255, 255, 1),
        inset 0 -2px 4px rgba(0, 0, 0, 0.2),
        0 0 0 2px rgba(255, 255, 255, 0.9),
        0 0 25px rgba(59, 167, 201, 0.3);
}

[data-theme="dark"] .theme-toggle-btn:hover .theme-toggle-thumb {
    transform: translateX(34px) translateY(-2px) scale(1.08);
    box-shadow: 
        0 12px 35px rgba(0, 0, 0, 0.8),
        0 6px 18px rgba(0, 0, 0, 0.6),
        inset 0 3px 6px rgba(255, 255, 255, 0.25),
        inset 0 -2px 4px rgba(0, 0, 0, 0.5),
        0 0 0 2px rgba(148, 163, 184, 0.4),
        0 0 25px rgba(59, 130, 246, 0.5);
}

.theme-toggle-btn:hover .sun-icon {
    animation-duration: 8s;
    transform: scale(1.15) rotate(0deg);
    text-shadow: 
        0 0 20px rgba(255, 140, 0, 1),
        0 0 40px rgba(255, 140, 0, 0.8),
        0 0 60px rgba(255, 165, 0, 0.5);
}

.theme-toggle-btn:hover .moon-icon {
    transform: scale(1.15) rotate(0deg);
    text-shadow: 
        0 0 20px rgba(226, 232, 240, 1),
        0 0 40px rgba(226, 232, 240, 0.8),
        0 0 60px rgba(59, 130, 246, 0.6);
}

/* RESPONSIVE THEME TOGGLE */
@media (max-width: 768px) {
    .theme-toggle-btn {
        width: 64px;
        height: 32px;
        border-radius: 16px;
    }
    
    .theme-toggle-thumb {
        width: 26px;
        height: 26px;
        top: 3px;
        left: 3px;
    }
    
    [data-theme="dark"] .theme-toggle-thumb {
        transform: translateX(29px);
    }
    
    [data-theme="dark"] .theme-toggle-btn:hover .theme-toggle-thumb {
        transform: translateX(29px) translateY(-1px) scale(1.05);
    }
    
    .sun-icon,
    .moon-icon {
        font-size: 14px;
    }
}

/* ===== ULTRA-SMOOTH THEME TRANSITIONS - TOP LEVEL PROFESSIONAL ===== */

/* GLOBAL SMOOTH THEME TRANSITIONS - MAXIMUM SMOOTHNESS */
:root {
    --theme-transition-duration: 0.8s;
    --theme-transition-timing: cubic-bezier(0.23, 1, 0.32, 1);
    --theme-transition-delay: 0s;
}

/* PREVENT JARRING EFFECTS - SMOOTH BASE */
html {
    transition: background-color var(--theme-transition-duration) var(--theme-transition-timing) !important;
    will-change: background-color;
}

/* UNIVERSAL ULTRA-SMOOTH TRANSITIONS FOR ALL ELEMENTS */
*,
*::before,
*::after {
    transition: 
        background-color var(--theme-transition-duration) var(--theme-transition-timing) var(--theme-transition-delay),
        color var(--theme-transition-duration) var(--theme-transition-timing) var(--theme-transition-delay),
        border-color var(--theme-transition-duration) var(--theme-transition-timing) var(--theme-transition-delay),
        box-shadow var(--theme-transition-duration) var(--theme-transition-timing) var(--theme-transition-delay),
        backdrop-filter var(--theme-transition-duration) var(--theme-transition-timing) var(--theme-transition-delay),
        opacity var(--theme-transition-duration) var(--theme-transition-timing) var(--theme-transition-delay),
        fill var(--theme-transition-duration) var(--theme-transition-timing) var(--theme-transition-delay),
        stroke var(--theme-transition-duration) var(--theme-transition-timing) var(--theme-transition-delay),
        background var(--theme-transition-duration) var(--theme-transition-timing) var(--theme-transition-delay),
        background-image var(--theme-transition-duration) var(--theme-transition-timing) var(--theme-transition-delay) !important;
    will-change: background-color, color, border-color;
}

/* ENHANCED THEME TRANSITION STATE - ULTRA SMOOTH */
html.theme-transitioning,
html.theme-transitioning *,
html.theme-transitioning *::before,
html.theme-transitioning *::after {
    transition-duration: var(--theme-transition-duration) !important;
    transition-timing-function: var(--theme-transition-timing) !important;
    transition-delay: var(--theme-transition-delay) !important;
    will-change: background-color, color, border-color, box-shadow !important;
}

/* BODY - FOUNDATION SMOOTH TRANSITION */
body {
    transition: 
        background-color var(--theme-transition-duration) var(--theme-transition-timing),
        color var(--theme-transition-duration) var(--theme-transition-timing) !important;
    will-change: background-color, color;
}

/* NAVBAR - ULTRA SMOOTH GLASSMORPHISM */
.navbar,
.glassmorphism-nav,
.navbar-brand,
.navbar-nav .nav-link,
.navbar-toggler,
.btn-cta {
    transition: 
        background-color var(--theme-transition-duration) var(--theme-transition-timing),
        color var(--theme-transition-duration) var(--theme-transition-timing),
        border-color var(--theme-transition-duration) var(--theme-transition-timing),
        backdrop-filter var(--theme-transition-duration) var(--theme-transition-timing),
        box-shadow var(--theme-transition-duration) var(--theme-transition-timing) !important;
    will-change: background-color, color, backdrop-filter;
}

/* CARDS - ULTRA SMOOTH GLASS EFFECTS */
.glass-card,
.benefit-card,
.step-card,
.before-after-card,
.contact-card,
.trust-message-card,
.product-container,
.form-wrapper,
.buy-page,
.contact-page,
.hero-content,
.benefits-section,
.before-after-section,
.how-it-works-section {
    transition: 
        background-color var(--theme-transition-duration) var(--theme-transition-timing),
        border-color var(--theme-transition-duration) var(--theme-transition-timing),
        box-shadow var(--theme-transition-duration) var(--theme-transition-timing),
        backdrop-filter var(--theme-transition-duration) var(--theme-transition-timing) !important;
    will-change: background-color, border-color, box-shadow;
}

/* BUTTONS - ULTRA SMOOTH INTERACTIONS */
.btn,
button,
.theme-toggle-btn,
.whatsapp-btn,
.chatbot-btn,
.submit-btn,
.accordion-button {
    transition: 
        background-color var(--theme-transition-duration) var(--theme-transition-timing),
        color var(--theme-transition-duration) var(--theme-transition-timing),
        border-color var(--theme-transition-duration) var(--theme-transition-timing),
        box-shadow var(--theme-transition-duration) var(--theme-transition-timing),
        transform 0.3s var(--theme-transition-timing) !important;
    will-change: background-color, color, border-color, box-shadow;
}

/* FORM ELEMENTS - ULTRA SMOOTH INPUT EXPERIENCE */
.form-control,
.form-select,
.chatbot-input,
input,
textarea,
select,
.accordion-item,
.accordion-body {
    transition: 
        background-color var(--theme-transition-duration) var(--theme-transition-timing),
        color var(--theme-transition-duration) var(--theme-transition-timing),
        border-color var(--theme-transition-duration) var(--theme-transition-timing),
        box-shadow var(--theme-transition-duration) var(--theme-transition-timing) !important;
    will-change: background-color, color, border-color;
}

/* FOOTER - ULTRA SMOOTH BRAND EXPERIENCE */
.footer,
.footer-links a,
.social-link,
.footer-brand,
.footer-info,
.footer-contact {
    transition: 
        background-color var(--theme-transition-duration) var(--theme-transition-timing),
        color var(--theme-transition-duration) var(--theme-transition-timing),
        border-color var(--theme-transition-duration) var(--theme-transition-timing) !important;
    will-change: background-color, color;
}

/* CHATBOT - ULTRA SMOOTH MESSAGING */
.chatbot-widget,
.chatbot-header,
.chatbot-body,
.chatbot-input-area,
.voice-permission-modal {
    transition: 
        background-color var(--theme-transition-duration) var(--theme-transition-timing),
        color var(--theme-transition-duration) var(--theme-transition-timing),
        border-color var(--theme-transition-duration) var(--theme-transition-timing),
        box-shadow var(--theme-transition-duration) var(--theme-transition-timing) !important;
    will-change: background-color, color, border-color;
}

/* TEXT ELEMENTS - ULTRA SMOOTH TYPOGRAPHY */
h1, h2, h3, h4, h5, h6,
p, span, div, a, label,
.section-title,
.section-subtitle,
.hero-title,
.hero-subtitle,
.page-title,
.page-subtitle,
.product-title,
.product-subtitle,
.footer-brand-name,
.footer-tagline,
.footer-description {
    transition: 
        color var(--theme-transition-duration) var(--theme-transition-timing) !important;
    will-change: color;
}

/* ICONS - ULTRA SMOOTH VISUAL ELEMENTS */
i, .fas, .fab, .far,
.benefit-icon,
.contact-icon,
.trust-icon,
.step-icon {
    transition: 
        color var(--theme-transition-duration) var(--theme-transition-timing),
        background-color var(--theme-transition-duration) var(--theme-transition-timing) !important;
    will-change: color, background-color;
}

/* PAGE SECTIONS - ULTRA SMOOTH LAYOUT */
.product-section,
.form-section,
.order-summary,
.brand-story-content,
.brand-image-container,
.faq-section,
.cta-section,
.summary-row,
.trust-item-product,
.trust-content-product,
.price-display,
.delivery-note,
.security-note,
.form-label,
.form-grid,
.brand-values,
.value-item,
.trust-point {
    transition: 
        background-color var(--theme-transition-duration) var(--theme-transition-timing),
        color var(--theme-transition-duration) var(--theme-transition-timing),
        border-color var(--theme-transition-duration) var(--theme-transition-timing) !important;
    will-change: background-color, color, border-color;
}

/* BOOTSTRAP CONTAINERS AND ROWS - ENSURE SMOOTH TRANSITIONS */
.container,
.container-fluid,
.row,
.col,
.col-12,
.col-lg-4,
.col-lg-6,
.col-lg-8,
.col-md-4,
.col-md-6,
.col-md-12,
[class*="col-"] {
    transition: 
        background-color var(--theme-transition-duration) var(--theme-transition-timing),
        color var(--theme-transition-duration) var(--theme-transition-timing) !important;
    will-change: background-color, color;
}

/* BOOTSTRAP SPACING CLASSES - ENSURE NO WHITE AREAS */
.mt-5,
.mb-5,
.pt-5,
.pb-5,
.p-4,
.p-5,
.text-center {
    transition: 
        background-color var(--theme-transition-duration) var(--theme-transition-timing),
        color var(--theme-transition-duration) var(--theme-transition-timing) !important;
    will-change: background-color, color;
}

/* PREVENT WHITE GAPS BETWEEN SECTIONS */
section,
main,
article,
div {
    transition: 
        background-color var(--theme-transition-duration) var(--theme-transition-timing),
        color var(--theme-transition-duration) var(--theme-transition-timing) !important;
    will-change: background-color, color;
}

/* ENSURE BODY HAS NO WHITE GAPS */
body {
    background-color: var(--bg-main) !important;
    transition: 
        background-color var(--theme-transition-duration) var(--theme-transition-timing),
        color var(--theme-transition-duration) var(--theme-transition-timing) !important;
    will-change: background-color, color;
}

/* SPECIAL SMOOTH TRANSITION RULES TO PREVENT JARRING */
.three-js-section,
.viewer-wrapper,
#bottle-canvas,
.luxury-tagline,
.ui-dock,
.pet-wash-tagline {
    transition: 
        background-color var(--theme-transition-duration) var(--theme-transition-timing),
        color var(--theme-transition-duration) var(--theme-transition-timing) !important;
    will-change: background-color, color;
}

/* ===== SMOOTH TOGGLE EFFECTS FOR ENTIRE APP ===== */

/* GLOBAL SMOOTH TRANSITIONS - MOBILE OPTIMIZED */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), 
                opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1),
                box-shadow 0.3s cubic-bezier(0.4, 0, 0.2, 1),
                background-color 0.3s cubic-bezier(0.4, 0, 0.2, 1),
                color 0.3s cubic-bezier(0.4, 0, 0.2, 1),
                border-color 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* MOBILE TOUCH SCROLLING OPTIMIZATION */
html {
    -webkit-overflow-scrolling: touch;
    scroll-behavior: smooth;
    /* Ensure scrolling works on all devices */
    overflow-x: hidden;
    overflow-y: auto;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-main);
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
    /* Allow vertical scrolling */
    overflow-y: auto;
    animation: pageLoad 0.8s ease-out;
    transition: background-color 0.3s cubic-bezier(0.4, 0, 0.2, 1),
                color 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    -webkit-overflow-scrolling: touch; /* iOS smooth scrolling */
}

/* MOBILE VIEWPORT FIX - ENABLE PROPER SCROLLING */
@media (max-width: 768px) {
    html, body {
        overflow-x: hidden;
        overflow-y: auto; /* Enable vertical scrolling */
        -webkit-overflow-scrolling: touch;
        /* Allow vertical scrolling while preventing horizontal */
        touch-action: pan-y;
        height: auto; /* Allow content to expand */
        min-height: 100vh; /* Minimum full height */
    }
    
    * {
        -webkit-tap-highlight-color: transparent; /* Remove tap highlights */
    }
    
    /* Ensure sections can be scrolled */
    .hero-content,
    .benefits-section,
    .before-after-section,
    .how-it-works-section,
    .footer {
        touch-action: pan-y;
        position: relative; /* Ensure proper stacking */
    }
}

/* ENHANCED BUTTON HOVER EFFECTS */
button, .btn, a.btn {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1) !important;
    transform-origin: center;
    will-change: transform, box-shadow, background;
}

button:hover, .btn:hover, a.btn:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15) !important;
}

button:active, .btn:active, a.btn:active {
    transform: translateY(0) scale(0.98);
    transition-duration: 0.1s;
}

/* NAVBAR SMOOTH EFFECTS */
.navbar {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.navbar-nav .nav-link {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    transform-origin: center;
}

.navbar-nav .nav-link:hover {
    transform: translateY(-1px) scale(1.05);
}

.navbar-brand img {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.navbar-brand:hover img {
    transform: scale(1.1) rotate(2deg);
}

/* CARD SMOOTH EFFECTS */
.glass-card, .benefit-card, .step-card, .before-after-card {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1) !important;
    transform-origin: center;
}

.glass-card:hover, .benefit-card:hover, .step-card:hover, .before-after-card:hover {
    transform: translateY(-8px) scale(1.02) !important;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15) !important;
}

/* ICON SMOOTH EFFECTS */
.benefit-icon, .contact-icon, .trust-icon {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.benefit-card:hover .benefit-icon,
.contact-card:hover .contact-icon,
.trust-message-card:hover .trust-icon {
    transform: scale(1.1) rotate(5deg);
}

/* FORM SMOOTH EFFECTS */
.form-control, .form-select, .chatbot-input {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.form-control:focus, .form-select:focus, .chatbot-input:focus {
    transform: scale(1.02);
    box-shadow: 0 0 0 3px rgba(59, 167, 201, 0.15) !important;
}

/* FOOTER SMOOTH EFFECTS */
.footer-links a, .social-link {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.footer-links a:hover {
    transform: translateX(8px) scale(1.05);
}

.social-link:hover {
    transform: translateY(-3px) scale(1.05);
}

/* FLOATING BUTTON SMOOTH EFFECTS */
.whatsapp-btn, .chatbot-btn {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1) !important;
    transform-origin: center;
}

.whatsapp-btn:hover, .chatbot-btn:hover {
    transform: scale(1.15) rotate(5deg);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2) !important;
}

.whatsapp-btn:active, .chatbot-btn:active {
    transform: scale(0.95);
    transition-duration: 0.1s;
}

/* IMAGE SMOOTH EFFECTS */
img {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.product-image:hover, .before-after-card img:hover {
    transform: scale(1.05);
}

/* ACCORDION SMOOTH EFFECTS */
.accordion-button {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.accordion-button:hover {
    transform: translateX(5px);
}

/* MOBILE BUY NOW BUTTON - STICKS TO NAVBAR */
.btn-mobile-navbar-buy {
    background: linear-gradient(135deg, #FF6B6B 0%, #FF8E53 100%) !important;
    color: white !important;
    border-radius: 20px !important;
    padding: 6px 12px !important;
    font-weight: 600 !important;
    font-size: 0.8rem !important;
    border: 2px solid rgba(255, 255, 255, 0.2) !important;
    box-shadow: 0 3px 12px rgba(255, 107, 107, 0.3) !important;
    transition: all 0.3s ease !important;
    text-decoration: none !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 4px !important;
    min-width: 60px !important;
    height: 32px !important;
    position: relative !important;
    z-index: 1000 !important;
}

.btn-mobile-navbar-buy:hover,
.btn-mobile-navbar-buy:focus {
    background: linear-gradient(135deg, #FF8E53 0%, #FF6B6B 100%) !important;
    color: white !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 5px 16px rgba(255, 107, 107, 0.4) !important;
    text-decoration: none !important;
}

.btn-mobile-navbar-buy.active {
    background: linear-gradient(135deg, #4ade80 0%, #22c55e 100%) !important;
    box-shadow: 0 3px 12px rgba(74, 222, 128, 0.3) !important;
}

.btn-mobile-navbar-buy.active:hover {
    background: linear-gradient(135deg, #22c55e 0%, #4ade80 100%) !important;
    box-shadow: 0 5px 16px rgba(74, 222, 128, 0.4) !important;
}

.btn-mobile-navbar-buy i {
    font-size: 0.75rem !important;
}

.btn-mobile-navbar-buy span {
    font-size: 0.75rem !important;
    font-weight: 600 !important;
}

/* Hide mobile navbar buy button on desktop */
@media (min-width: 992px) {
    .btn-mobile-navbar-buy {
        display: none !important;
    }
}

/* Adjust navbar spacing on mobile when button is present */
@media (max-width: 991px) {
    .navbar-brand {
        margin-right: auto !important;
    }
    
    .navbar-toggler {
        margin-left: 8px !important;
    }
    
    .btn-mobile-navbar-buy {
        margin-right: 8px !important;
        margin-left: 8px !important;
    }
}

/* Extra small screens - make button slightly smaller */
@media (max-width: 480px) {
    .btn-mobile-navbar-buy {
        padding: 5px 10px !important;
        font-size: 0.75rem !important;
        min-width: 55px !important;
        height: 30px !important;
        border-radius: 18px !important;
    }
    
    .btn-mobile-navbar-buy i {
        font-size: 0.7rem !important;
    }
    
    .btn-mobile-navbar-buy span {
        font-size: 0.7rem !important;
    }
}

/* SUGGESTION CHIPS SMOOTH EFFECTS */
.suggestion-chip, .faq-btn, .quick-action-btn {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    transform-origin: center;
}

.suggestion-chip:hover, .faq-btn:hover, .quick-action-btn:hover {
    transform: translateY(-2px) scale(1.03);
}

.suggestion-chip:active, .faq-btn:active, .quick-action-btn:active {
    transform: scale(0.97);
    transition-duration: 0.1s;
}

/* ===== SMOOTH PAGE TRANSITIONS & LOADING EFFECTS ===== */

/* PAGE FADE-IN ANIMATION */
@keyframes pageLoad {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* SECTION SCROLL ANIMATIONS */
.benefits-section, .before-after-section, .how-it-works-section, .hero-content {
    animation: sectionSlideIn 0.8s ease-out;
    animation-fill-mode: both;
}

.benefits-section {
    animation-delay: 0.2s;
}

.before-after-section {
    animation-delay: 0.4s;
}

.how-it-works-section {
    animation-delay: 0.6s;
}

@keyframes sectionSlideIn {
    0% {
        opacity: 0;
        transform: translateY(30px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* STAGGERED CARD ANIMATIONS */
.benefit-card {
    animation: cardSlideIn 0.6s ease-out;
    animation-fill-mode: both;
}

.benefit-card:nth-child(1) { animation-delay: 0.1s; }
.benefit-card:nth-child(2) { animation-delay: 0.2s; }
.benefit-card:nth-child(3) { animation-delay: 0.3s; }
.benefit-card:nth-child(4) { animation-delay: 0.4s; }
.benefit-card:nth-child(5) { animation-delay: 0.5s; }
.benefit-card:nth-child(6) { animation-delay: 0.6s; }

@keyframes cardSlideIn {
    0% {
        opacity: 0;
        transform: translateY(40px) scale(0.9);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* NAVBAR SLIDE DOWN */
.navbar {
    animation: navbarSlideDown 0.6s ease-out;
}

@keyframes navbarSlideDown {
    0% {
        opacity: 0;
        transform: translateY(-100%);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* FOOTER SLIDE UP */
.footer {
    animation: footerSlideUp 0.8s ease-out;
    animation-delay: 1s;
    animation-fill-mode: both;
}

@keyframes footerSlideUp {
    0% {
        opacity: 0;
        transform: translateY(50px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* FLOATING BUTTONS BOUNCE IN */
.whatsapp-float, .chatbot-toggle {
    animation: bounceIn 0.8s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    animation-delay: 1.2s;
    animation-fill-mode: both;
}

@keyframes bounceIn {
    0% {
        opacity: 0;
        transform: scale(0.3) rotate(-180deg);
    }
    50% {
        opacity: 1;
        transform: scale(1.1) rotate(-90deg);
    }
    100% {
        opacity: 1;
        transform: scale(1) rotate(0deg);
    }
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
}

img {
    max-width: 100%;
    height: auto;
}















/* NAVBAR STYLES - ENHANCED WITH THEME SUPPORT AND PROPER Z-INDEX */
.glassmorphism-nav {
    background: var(--navbar-bg);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--glass-border);
    box-shadow: var(--shadow-soft);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1050; /* Higher than chatbot to ensure visibility */
    padding: 1rem 0;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    min-height: 80px; /* Ensure consistent navbar height */
}

/* ENSURE NAVBAR ALWAYS STAYS ABOVE CHATBOT */
@media (max-width: 768px) {
    .glassmorphism-nav {
        z-index: 1051; /* Even higher on mobile */
        min-height: 70px;
        padding: 0.8rem 0;
    }
}

@media (max-width: 480px) {
    .glassmorphism-nav {
        z-index: 1052; /* Highest on small screens */
        min-height: 65px;
        padding: 0.7rem 0;
    }
}

.navbar-logo-large {
    height: 95px; /* Increased from 85px for even better visibility */
    width: auto;
    max-width: 220px; /* Ensure it doesn't get too wide */
    object-fit: contain;
    transition: transform 0.3s ease;
}

.navbar-logo-large:hover {
    transform: scale(1.1); /* Enhanced hover effect for larger logo */
    filter: brightness(1.15); /* More brightness increase for better visibility */
}

.navbar-brand {
    padding: 0.2rem 0; /* Reduced padding even more to give maximum space for larger logo */
    text-decoration: none;
    display: flex;
    align-items: center;
}

.brand-tagline {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.brand-tagline .tagline-text {
    color: white;
    font-size: 0.9rem;
    font-weight: 600;
    text-shadow: 0 1px 2px rgba(0,0,0,0.3);
    line-height: 1.2;
    margin: 0;
}

.navbar-nav .nav-link {
    color: rgba(255, 255, 255, 0.9) !important;
    font-weight: 500;
    margin: 0 0.5rem;
    padding: 0.5rem 1rem !important;
    border-radius: 25px;
    transition: all 0.3s ease;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    color: white !important;
    background: rgba(255, 255, 255, 0.2);
}

.btn-cta {
    background: var(--cta-secondary) !important;
    color: white !important;
    border-radius: 50px !important;
    padding: 0.5rem 1.5rem !important;
    font-weight: 600 !important;
    box-shadow: 0 4px 15px rgba(242, 163, 101, 0.4);
    transition: all 0.3s ease;
}

.btn-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(242, 163, 101, 0.6);
}

/* THREE.JS SECTION - MOBILE OPTIMIZED */
.three-js-section {
    height: 100vh;
    width: 100%;
    position: relative;
    margin-top: 90px;
    z-index: 5;
    overflow: hidden; /* Prevent horizontal scroll on mobile */
    /* Allow the section to be part of normal document flow for scrolling */
    display: block;
    background: var(--bg-main);
    transition: 
        background-color var(--theme-transition-duration) var(--theme-transition-timing),
        color var(--theme-transition-duration) var(--theme-transition-timing) !important;
    will-change: background-color, color;
}

.viewer-wrapper {
    height: 100vh;
    width: 100%;
    position: relative;
    background: var(--bg-main);
    transition: 
        background-color var(--theme-transition-duration) var(--theme-transition-timing),
        color var(--theme-transition-duration) var(--theme-transition-timing) !important;
    will-change: background-color, color;
}

/* THREE.JS CANVAS - MOBILE OPTIMIZED */
#bottle-canvas {
    width: 100% !important;
    height: 100% !important;
    display: block;
    /* Allow bottle rotation on mobile while enabling page scrolling */
    touch-action: manipulation;
}

/* LUXURY TAGLINE - POSITIONED HIGHER TO AVOID BOTTLE INTERFERENCE */
.luxury-tagline {
    position: absolute;
    left: 50px;
    top: 20%;
    transform: translateY(-50%);
    z-index: 15;
    pointer-events: none;
    transition: 
        background-color var(--theme-transition-duration) var(--theme-transition-timing),
        color var(--theme-transition-duration) var(--theme-transition-timing) !important;
    will-change: background-color, color;
}

.luxury-text {
    color: var(--brand-primary);
    font-size: 2rem;
    font-weight: 700;
    line-height: 1.2;
    text-shadow: 0 2px 4px rgba(0,0,0,0.1);
    background: var(--glass-bg);
    padding: 1.5rem;
    border-radius: 15px;
    backdrop-filter: blur(10px);
    border: 2px solid var(--glass-border);
    box-shadow: var(--shadow-soft);
    transition: 
        background-color var(--theme-transition-duration) var(--theme-transition-timing),
        color var(--theme-transition-duration) var(--theme-transition-timing),
        border-color var(--theme-transition-duration) var(--theme-transition-timing),
        box-shadow var(--theme-transition-duration) var(--theme-transition-timing) !important;
    will-change: background-color, color, border-color, box-shadow;
}

/* MOBILE RESPONSIVE THREE.JS SECTION */
@media (max-width: 768px) {
    .three-js-section {
        height: 100vh;
        margin-top: 80px;
        /* Enable proper scrolling behavior */
        position: relative;
        overflow: visible;
    }
    
    #bottle-canvas {
        touch-action: pan-y; /* Allow vertical scrolling, enable horizontal bottle rotation */
    }
    
    .luxury-tagline {
        left: 0 !important; /* Remove left gap - fill full width */
        right: 0 !important; /* Remove right gap - fill full width */
        top: 25%; /* Moved down from 15% to avoid navbar collision */
        width: 100% !important; /* Full width for attractive appearance */
        transform: translateY(-50%); /* Ensure perfect vertical centering */
        padding: 0 15px; /* Add container padding for mobile */
        display: flex; /* Use flexbox for perfect centering */
        justify-content: center; /* Center the content horizontally */
        align-items: center; /* Center the content vertically */
    }
    
    .luxury-text {
        font-size: 1.4rem;
        padding: 1rem 1.5rem; /* Add horizontal padding for text spacing */
        text-align: center !important; /* Force center alignment */
        line-height: 1.3;
        margin: 0 auto; /* Ensure horizontal centering */
        display: block;
        width: 100%; /* Full width within container */
        max-width: none; /* Remove any width restrictions */
    }
}

@media (max-width: 480px) {
    .three-js-section {
        height: 100vh;
        margin-top: 75px;
        /* Enable proper mobile scrolling */
        position: relative;
        overflow: visible;
    }
    
    .luxury-tagline {
        left: 0 !important; /* Remove left gap - fill full width */
        right: 0 !important; /* Remove right gap - fill full width */
        top: 22%; /* Moved down from 12% to avoid navbar collision */
        width: 100% !important; /* Full width for attractive appearance */
        transform: translateY(-50%); /* Ensure perfect vertical centering */
        padding: 0 12px; /* Add container padding for mobile */
        display: flex; /* Use flexbox for perfect centering */
        justify-content: center; /* Center the content horizontally */
        align-items: center; /* Center the content vertically */
    }
    
    .luxury-text {
        font-size: 1.2rem;
        padding: 0.8rem 1.2rem; /* Add horizontal padding for text spacing */
        text-align: center !important; /* Force center alignment */
        line-height: 1.2;
        margin: 0 auto; /* Ensure horizontal centering */
        display: block;
        width: 100%; /* Full width within container */
        max-width: none; /* Remove any width restrictions */
    }
}

@media (max-width: 360px) {
    .three-js-section {
        height: 100vh;
        margin-top: 70px;
        /* Ensure scrolling works on very small screens */
        position: relative;
        overflow: visible;
    }
    
    .luxury-tagline {
        left: 0 !important; /* Remove left gap - fill full width */
        right: 0 !important; /* Remove right gap - fill full width */
        top: 20%; /* Moved down from 10% to avoid navbar collision */
        width: 100% !important; /* Full width for attractive appearance */
        transform: translateY(-50%); /* Ensure perfect vertical centering */
        padding: 0 8px; /* Add container padding for mobile */
        display: flex; /* Use flexbox for perfect centering */
        justify-content: center; /* Center the content horizontally */
        align-items: center; /* Center the content vertically */
    }
    
    .luxury-text {
        font-size: 1rem;
        padding: 0.7rem 1rem; /* Add horizontal padding for text spacing */
        text-align: center !important; /* Force center alignment */
        line-height: 1.1;
        margin: 0 auto; /* Ensure horizontal centering */
        display: block;
        width: 100%; /* Full width within container */
        max-width: none; /* Remove any width restrictions */
    }
}

/* PET WASH TAGLINE - ORIGINAL POSITION */
.pet-wash-tagline {
    margin-bottom: 20px;
    text-align: center;
}

.tagline-text {
    background: var(--glass-bg);
    color: var(--brand-primary);
    padding: 12px 24px;
    border-radius: 30px;
    font-size: 16px;
    font-weight: 700;
    margin: 0;
    box-shadow: var(--shadow-soft);
    backdrop-filter: blur(10px);
    border: 2px solid var(--glass-border);
    display: inline-block;
    transition: 
        background-color var(--theme-transition-duration) var(--theme-transition-timing),
        color var(--theme-transition-duration) var(--theme-transition-timing),
        border-color var(--theme-transition-duration) var(--theme-transition-timing),
        box-shadow var(--theme-transition-duration) var(--theme-transition-timing) !important;
    will-change: background-color, color, border-color, box-shadow;
}

/* HERO CONTENT */
.hero-content {
    padding: 100px 0 80px;
    background: linear-gradient(135deg, var(--bg-main) 0%, var(--bg-tertiary) 100%);
    position: relative;
    z-index: 10;
}

.hero-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.hero-title .text-brand {
    color: var(--brand-primary);
}

.hero-subtitle {
    font-size: 1.2rem;
    color: var(--text-grey);
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-ctas .btn {
    border-radius: 50px;
    padding: 1rem 2rem;
    font-weight: 600;
    margin: 0.5rem;
    transition: all 0.3s ease;
}

.btn-primary {
    background: var(--brand-primary);
    border: none;
    box-shadow: 0 8px 25px rgba(59, 167, 201, 0.3);
}

.btn-primary:hover {
    background: #2e8ba8;
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(59, 167, 201, 0.5);
}

.btn-outline-secondary {
    border: 2px solid var(--cta-secondary);
    color: var(--cta-secondary);
    background: transparent;
}

.btn-outline-secondary:hover {
    background: var(--cta-secondary);
    color: white;
    transform: translateY(-3px);
}

/* BENEFITS SECTION - STABLE GRID WITH THEME SUPPORT */
.benefits-section {
    padding: 80px 0;
    background: var(--bg-main);
    position: relative;
    z-index: 10;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 1rem;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--text-grey);
    margin-bottom: 3rem;
}

.benefit-card {
    text-align: center;
    padding: 2rem;
    height: 100%;
    transition: transform 0.3s ease;
}

.benefit-card:hover {
    transform: translateY(-5px);
}

.benefit-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--brand-primary), var(--cta-secondary));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 1.8rem;
    color: white;
    box-shadow: 0 8px 25px rgba(59, 167, 201, 0.3);
}

.benefit-card h4 {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.benefit-card p {
    color: var(--text-grey);
    line-height: 1.6;
    font-size: 0.95rem;
}

/* GLASS CARDS - THEME AWARE */
.glass-card {
    background: var(--card-bg);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-soft);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    height: 100%;
}

.glass-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
}

/* BEFORE/AFTER SECTION - THEME SUPPORT WITH MOBILE SIDE-BY-SIDE */
.before-after-section {
    padding: 80px 0;
    background: linear-gradient(135deg, var(--bg-tertiary) 0%, var(--bg-main) 100%);
    position: relative;
    z-index: 10;
}

.before-after-card {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: var(--card-bg);
    height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.before-after-card:hover {
    transform: scale(1.02);
    box-shadow: var(--shadow-hover);
}

.before-after-card img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    display: block;
    padding: 20px;
}

.card-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.8));
    color: white;
    padding: 2rem;
    text-align: center;
}

.card-overlay h4 {
    font-size: 1.4rem;
    margin-bottom: 0.5rem;
}

.transform-arrow {
    font-size: 2.5rem;
    color: var(--brand-primary);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.transform-arrow .text-brand {
    color: var(--brand-primary);
    font-size: 1rem;
    font-weight: 600;
}

/* MOBILE BEFORE/AFTER - KEEP SIDE BY SIDE LIKE WEB */
@media (max-width: 768px) {
    .before-after-section .row.align-items-center:last-child {
        display: flex !important;
        flex-wrap: nowrap !important;
        align-items: center !important;
    }
    
    .before-after-section .col-lg-5 {
        flex: 0 0 40% !important;
        max-width: 40% !important;
    }
    
    .before-after-section .col-lg-2 {
        flex: 0 0 20% !important;
        max-width: 20% !important;
        text-align: center !important;
    }
    
    .before-after-card {
        height: 350px; /* INCREASED from 280px for better visibility */
        background: transparent !important; /* REMOVE background rectangle on mobile */
    }
    
    .before-after-card img {
        padding: 5px; /* FURTHER REDUCED padding for maximum image size */
    }
    
    .card-overlay {
        padding: 1.2rem;
    }
    
    .card-overlay h4 {
        font-size: 1.1rem;
    }
    
    .card-overlay p {
        font-size: 0.9rem;
    }
    
    .transform-arrow {
        font-size: 1.8rem;
    }
    
    .transform-arrow .text-brand {
        font-size: 0.8rem;
    }
    
    /* Force horizontal arrow on mobile */
    .transform-arrow .fa-arrow-down {
        display: none !important;
    }
    
    .transform-arrow .fa-arrow-right {
        display: inline !important;
    }
}

@media (max-width: 480px) {
    .before-after-section .col-lg-5 {
        flex: 0 0 38% !important;
        max-width: 38% !important;
    }
    
    .before-after-section .col-lg-2 {
        flex: 0 0 24% !important;
        max-width: 24% !important;
    }
    
    .before-after-card {
        height: 280px; /* INCREASED from 220px for better visibility */
        border-radius: 15px;
        background: transparent !important; /* REMOVE background rectangle on mobile */
    }
    
    .before-after-card img {
        padding: 4px; /* FURTHER REDUCED padding for maximum image size */
    }
    
    .card-overlay {
        padding: 0.8rem;
    }
    
    .card-overlay h4 {
        font-size: 1rem;
    }
    
    .card-overlay p {
        font-size: 0.8rem;
    }
    
    .transform-arrow {
        font-size: 1.5rem;
    }
    
    .transform-arrow .text-brand {
        font-size: 0.7rem;
        line-height: 1.2;
    }
}

@media (max-width: 360px) {
    .before-after-section .col-lg-5 {
        flex: 0 0 36% !important;
        max-width: 36% !important;
    }
    
    .before-after-section .col-lg-2 {
        flex: 0 0 28% !important;
        max-width: 28% !important;
    }
    
    .before-after-card {
        height: 240px; /* INCREASED from 180px for better visibility */
        border-radius: 12px;
        background: transparent !important; /* REMOVE background rectangle on mobile */
    }
    
    .before-after-card img {
        padding: 3px; /* FURTHER REDUCED padding for maximum image size */
    }
    
    .card-overlay {
        padding: 0.6rem;
    }
    
    .card-overlay h4 {
        font-size: 0.9rem;
    }
    
    .card-overlay p {
        font-size: 0.7rem;
    }
    
    .transform-arrow {
        font-size: 1.2rem;
    }
    
    .transform-arrow .text-brand {
        font-size: 0.6rem;
        line-height: 1.1;
    }
}

/* HOW IT WORKS SECTION */
.how-it-works-section {
    padding: 80px 0;
    background: var(--bg-main);
    position: relative;
    z-index: 10;
}

.step-card {
    position: relative;
    padding: 3rem 2rem 2rem;
    background: var(--card-bg);
    border-radius: 20px;
    box-shadow: var(--shadow-soft);
    margin-top: 30px;
    text-align: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    height: 100%;
    border: 1px solid var(--border-light);
}

.step-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.12);
}

.step-number {
    position: absolute;
    top: -25px;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 50px;
    background: var(--accent-gold);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    box-shadow: 0 8px 25px rgba(201, 162, 77, 0.4);
    border: 3px solid white;
}

.step-icon {
    font-size: 3rem;
    color: var(--brand-primary);
    margin: 1.5rem 0 1rem;
}

.step-card h4 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-dark);
    font-weight: 600;
}

.step-card p {
    color: var(--text-grey);
    font-size: 1rem;
    line-height: 1.6;
}

/* FOOTER - THEME AWARE */
.footer {
    background: var(--footer-bg);
    color: var(--text-dark);
    padding: 5rem 0 2rem;
    margin-top: 4rem;
    position: relative;
    z-index: 10;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 6px;
    background: linear-gradient(90deg, var(--brand-primary), var(--cta-secondary), var(--accent-gold));
}

.footer-brand {
    text-align: center;
}

.footer-logo-large {
    height: 95px; /* MATCHED to navbar logo size (was 150px) */
    width: auto;
    max-width: 320px; /* Increased max width for larger logo */
    object-fit: contain;
    margin-bottom: 1rem;
    transition: transform 0.3s ease;
    filter: brightness(1.2);
}

.footer-logo-large:hover {
    transform: scale(1.08); /* Enhanced hover effect for larger footer logo */
    filter: brightness(1.3); /* More brightness for better visibility */
}

.footer-brand-name {
    color: white;
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.footer-tagline {
    color: var(--cta-secondary);
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.footer-description {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1rem;
    line-height: 1.6;
}

.footer-heading {
    color: white;
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    text-align: center;
}

.footer-links {
    list-style: none;
    padding: 0;
    text-align: center;
}

.footer-links li {
    margin-bottom: 0.8rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.footer-links a:hover {
    color: var(--brand-primary);
    transform: translateX(5px);
}

.footer-contact {
    text-align: center;
}

.social-links-large {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 2rem;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    color: white;
    text-decoration: none;
    padding: 1rem;
    border-radius: 15px;
    background: rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    font-size: 1rem;
}

.social-link:hover {
    color: white;
    background: var(--brand-primary);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(59, 167, 201, 0.4);
}

.social-link i {
    font-size: 1.5rem;
}

.footer-contact-info {
    margin-top: 1.5rem;
}

.footer-contact-info p {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 0.8rem;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.footer-divider {
    border-color: rgba(255, 255, 255, 0.2);
    margin: 3rem 0 2rem;
}

.footer-copyright {
    color: rgba(255, 255, 255, 0.7);
    font-size: 1rem;
    margin: 0;
}

/* FLOATING BUTTONS - MOBILE RESPONSIVE */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 1000;
}

.whatsapp-btn {
    width: 65px;
    height: 65px;
    background: #25D366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    text-decoration: none;
    box-shadow: 0 8px 25px rgba(37, 211, 102, 0.4);
    transition: all 0.3s ease;
}

.whatsapp-btn:hover {
    color: white;
    transform: scale(1.1);
    box-shadow: 0 15px 35px rgba(37, 211, 102, 0.6);
}

/* MOBILE WHATSAPP BUTTON */
@media (max-width: 768px) {
    .whatsapp-float {
        bottom: 25px;
        right: 25px;
    }
    
    .whatsapp-btn {
        width: 50px;
        height: 50px;
        font-size: 1.3rem;
    }
}

@media (max-width: 480px) {
    .whatsapp-float {
        bottom: 20px;
        right: 20px;
    }
    
    .whatsapp-btn {
        width: 45px;
        height: 45px;
        font-size: 1.2rem;
    }
}

@media (max-width: 360px) {
    .whatsapp-float {
        bottom: 18px;
        right: 18px;
    }
    
    .whatsapp-btn {
        width: 42px;
        height: 42px;
        font-size: 1.1rem;
    }
}

/* ===== PROFESSIONAL CHATBOT - OPTIMIZED & MOBILE-FIRST ===== */

/* CHATBOT TOGGLE BUTTON - ENHANCED SMOOTH ANIMATIONS */
.chatbot-toggle {
    position: fixed;
    bottom: 20px;
    left: 20px;
    z-index: 1000;
    -webkit-tap-highlight-color: transparent;
}

.chatbot-btn {
    width: 65px;
    height: 65px;
    background: linear-gradient(135deg, var(--brand-primary) 0%, #2e8ba8 100%);
    border: none;
    border-radius: 50%;
    color: white;
    font-size: 1.6rem;
    box-shadow: 0 8px 25px rgba(59, 167, 201, 0.4);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    position: relative;
    overflow: hidden;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
    user-select: none;
    will-change: transform, box-shadow, background;
    display: flex;
    align-items: center;
    justify-content: center;
}

.chatbot-btn:hover,
.chatbot-btn:focus {
    transform: scale(1.15) rotate(5deg);
    box-shadow: 0 15px 35px rgba(59, 167, 201, 0.6);
    outline: none;
    background: linear-gradient(135deg, #2e8ba8 0%, var(--brand-primary) 100%);
}

.chatbot-btn:active {
    transform: scale(0.95);
    transition-duration: 0.1s;
}

.chatbot-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left 0.6s ease;
}

.chatbot-btn:hover::before {
    left: 100%;
}

/* ENHANCED PULSE ANIMATION FOR NOTIFICATIONS */
.chatbot-btn.pulse {
    animation: chatbotPulse 2s infinite;
}

@keyframes chatbotPulse {
    0% {
        transform: scale(1);
        box-shadow: 0 8px 25px rgba(59, 167, 201, 0.4);
    }
    50% {
        transform: scale(1.1);
        box-shadow: 0 15px 35px rgba(59, 167, 201, 0.6);
    }
    100% {
        transform: scale(1);
        box-shadow: 0 8px 25px rgba(59, 167, 201, 0.4);
    }
}

/* RESPONSIVE CHATBOT TOGGLE - MOBILE OPTIMIZED */
@media (max-width: 768px) {
    .chatbot-toggle {
        bottom: 20px;
        left: 20px;
    }
    
    .chatbot-btn {
        width: 50px;
        height: 50px;
        font-size: 1.3rem;
    }
}

@media (max-width: 480px) {
    .chatbot-toggle {
        bottom: 18px;
        left: 18px;
    }
    
    .chatbot-btn {
        width: 45px;
        height: 45px;
        font-size: 1.2rem;
    }
}

@media (max-width: 360px) {
    .chatbot-toggle {
        bottom: 15px;
        left: 15px;
    }
    
    .chatbot-btn {
        width: 42px;
        height: 42px;
        font-size: 1.1rem;
    }
}

@media (max-height: 500px) and (orientation: landscape) {
    .chatbot-toggle {
        bottom: 10px;
        left: 10px;
    }
    
    .chatbot-btn {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
}

/* NOTIFICATION BADGE - IMPROVED */
.chatbot-notification {
    position: absolute;
    top: -3px;
    right: -3px;
    width: 18px;
    height: 18px;
    background: linear-gradient(135deg, #ff4757, #ff3742);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.65rem;
    font-weight: 700;
    color: white;
    animation: pulseNotification 2s infinite;
    border: 2px solid white;
    box-shadow: 0 2px 8px rgba(255, 71, 87, 0.4);
}

@keyframes pulseNotification {
    0%, 100% { 
        transform: scale(1); 
        opacity: 1;
    }
    50% { 
        transform: scale(1.15); 
        opacity: 0.9;
    }
}

/* PROFESSIONAL FIXED-STRUCTURE CHATBOT - FORCE CORRECT LAYOUT */
.chatbot-widget {
    position: fixed !important;
    bottom: 95px;
    left: 20px;
    width: min(420px, calc(100vw - 40px));
    height: min(650px, calc(100vh - 240px)) !important; /* REDUCED HEIGHT to avoid navbar overlap */
    max-height: calc(100vh - 240px) !important; /* ENSURE it never overlaps navbar */
    background: var(--card-bg);
    border-radius: 20px;
    box-shadow: var(--shadow-hover);
    z-index: 999; /* Below navbar */
    display: none; /* Hidden by default */
    overflow: hidden !important; /* FORCE NO OVERFLOW */
    border: 1px solid var(--border-color);
    will-change: transform, opacity;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* WHEN CHATBOT IS OPEN - FORCE FLEX LAYOUT */
.chatbot-widget.open,
.chatbot-widget[style*="block"] {
    display: flex !important;
    flex-direction: column !important;
    height: min(650px, calc(100vh - 240px)) !important; /* SAFE HEIGHT to avoid navbar */
    max-height: calc(100vh - 240px) !important;
}

/* MOBILE FIXED-STRUCTURE CHATBOT - FORCE CONSISTENT LAYOUT */
@media (max-width: 768px) {
    .chatbot-widget {
        left: 10px;
        right: 10px;
        width: calc(100vw - 20px) !important;
        top: 110px !important; /* FURTHER INCREASED CLEARANCE from navbar */
        bottom: 85px;
        height: auto !important; /* AUTO HEIGHT between top and bottom */
        max-height: calc(100vh - 195px) !important; /* ADJUSTED MAX HEIGHT */
        border-radius: 18px;
        box-shadow: 0 15px 50px rgba(0, 0, 0, 0.3);
    }
    
    .chatbot-widget.open,
    .chatbot-widget[style*="block"] {
        display: flex !important;
        flex-direction: column !important;
        top: 110px !important; /* FURTHER INCREASED CLEARANCE from navbar */
        height: auto !important; /* AUTO HEIGHT between top and bottom */
        max-height: calc(100vh - 195px) !important; /* ADJUSTED MAX HEIGHT */
    }
}

@media (max-width: 480px) {
    .chatbot-widget {
        left: 8px;
        right: 8px;
        width: calc(100vw - 16px);
        top: 105px !important; /* FURTHER INCREASED CLEARANCE from navbar */
        bottom: 80px;
        height: auto !important; /* AUTO HEIGHT between top and bottom */
        max-height: calc(100vh - 185px) !important; /* ADJUSTED MAX HEIGHT */
        border-radius: 16px;
    }
    
    .chatbot-widget.open,
    .chatbot-widget[style*="block"] {
        top: 105px !important; /* FURTHER INCREASED CLEARANCE from navbar */
        height: auto !important; /* AUTO HEIGHT between top and bottom */
        max-height: calc(100vh - 185px) !important; /* ADJUSTED MAX HEIGHT */
    }
}

@media (max-width: 360px) {
    .chatbot-widget {
        left: 5px;
        right: 5px;
        width: calc(100vw - 10px);
        top: 90px !important; /* FURTHER INCREASED CLEARANCE from navbar */
        bottom: 75px;
        height: auto !important; /* AUTO HEIGHT between top and bottom */
        max-height: calc(100vh - 165px) !important; /* ADJUSTED MAX HEIGHT */
        border-radius: 14px;
    }
    
    .chatbot-widget.open,
    .chatbot-widget[style*="block"] {
        top: 90px !important; /* FURTHER INCREASED CLEARANCE from navbar */
        height: auto !important; /* AUTO HEIGHT between top and bottom */
        max-height: calc(100vh - 165px) !important; /* ADJUSTED MAX HEIGHT */
    }
}

/* LANDSCAPE MOBILE - FIXED STRUCTURE */
@media (max-height: 500px) and (orientation: landscape) {
    .chatbot-widget {
        height: calc(100vh - 180px) !important; /* SAFE HEIGHT for landscape */
        max-height: calc(100vh - 180px) !important;
        bottom: 60px;
        border-radius: 12px;
    }
    
    .chatbot-widget.open,
    .chatbot-widget[style*="block"] {
        height: calc(100vh - 180px) !important;
        max-height: calc(100vh - 180px) !important;
    }
}

/* VERY SMALL SCREENS - FIXED STRUCTURE */
@media (max-width: 320px) {
    .chatbot-widget {
        left: 3px;
        right: 3px;
        width: calc(100vw - 6px);
        bottom: 70px;
        height: calc(100vh - 140px); /* FIXED HEIGHT for tiny screens */
        border-radius: 12px;
    }
}

/* EXTRA SMALL HEIGHT SCREENS - FIXED STRUCTURE */
@media (max-height: 400px) {
    .chatbot-widget {
        height: calc(100vh - 130px); /* FIXED HEIGHT for very short screens */
        bottom: 50px;
    }
}

/* CHATBOT HEADER - FORCE FIXED AT TOP */
.chatbot-header {
    background: linear-gradient(135deg, var(--brand-primary) 0%, #2e8ba8 100%) !important;
    color: white;
    padding: 1.2rem 1.5rem;
    display: flex !important;
    justify-content: space-between;
    align-items: center;
    position: relative;
    overflow: hidden;
    min-height: 70px !important;
    max-height: 70px !important; /* FORCE FIXED HEIGHT */
    flex-shrink: 0 !important; /* FORCE NO SHRINKING */
    flex-grow: 0 !important; /* FORCE NO GROWING */
}

.chatbot-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="20" cy="20" r="2" fill="rgba(255,255,255,0.1)"/><circle cx="80" cy="40" r="1.5" fill="rgba(255,255,255,0.1)"/><circle cx="40" cy="80" r="1" fill="rgba(255,255,255,0.1)"/></svg>');
    opacity: 0.3;
    animation: floatPattern 20s linear infinite;
}

@keyframes floatPattern {
    0% { transform: translateX(0); }
    100% { transform: translateX(-100px); }
}

.chatbot-header-content {
    display: flex;
    align-items: center;
    gap: 1rem;
    position: relative;
    z-index: 1;
    flex: 1;
    min-width: 0;
}

.chatbot-avatar {
    width: 42px;
    height: 42px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    border: 2px solid rgba(255, 255, 255, 0.3);
    flex-shrink: 0;
    animation: avatarPulse 3s ease-in-out infinite;
}

@keyframes avatarPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.chatbot-info {
    flex: 1;
    min-width: 0;
}

.chatbot-info h5 {
    margin: 0;
    font-size: 1rem;
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.chatbot-status {
    font-size: 0.75rem;
    opacity: 0.9;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 2px;
}

.status-indicator {
    width: 7px;
    height: 7px;
    background: #4ade80;
    border-radius: 50%;
    animation: statusPulse 2s infinite;
    flex-shrink: 0;
}

@keyframes statusPulse {
    0%, 100% { 
        opacity: 1; 
        transform: scale(1);
    }
    50% { 
        opacity: 0.6; 
        transform: scale(1.2);
    }
}

.btn-close-chat {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    font-size: 1.1rem;
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    width: 34px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    z-index: 1;
    flex-shrink: 0;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}

.btn-close-chat:hover,
.btn-close-chat:focus {
    background: rgba(255, 255, 255, 0.3);
    transform: rotate(90deg) scale(1.1);
    outline: none;
}

.btn-close-chat:active {
    transform: rotate(90deg) scale(0.95);
}

/* CHATBOT HEADER CONTROLS - VOICE BUTTONS */
.chatbot-controls {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    position: relative;
    z-index: 1;
}

.voice-btn,
.speaker-btn {
    width: 32px;
    height: 32px;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    border-radius: 50%;
    color: white;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}

.voice-btn:hover,
.voice-btn:focus,
.speaker-btn:hover,
.speaker-btn:focus {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
    outline: none;
}

.voice-btn:active,
.speaker-btn:active {
    transform: scale(0.95);
}

.voice-btn.active {
    background: rgba(74, 222, 128, 0.3);
    color: #4ade80;
}

.speaker-btn.active {
    background: rgba(239, 68, 68, 0.3);
    color: #ef4444;
}

/* ENHANCED CHATBOT BODY - FORCE SCROLLABLE AREA */
.chatbot-body {
    padding: 1.2rem !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    background: linear-gradient(135deg, var(--bg-tertiary) 0%, var(--bg-secondary) 100%);
    position: relative;
    -webkit-overflow-scrolling: touch;
    scroll-behavior: smooth;
    scrollbar-width: thin;
    scrollbar-color: var(--brand-primary) transparent;
    /* FORCE FLEXIBLE AREA - TAKES REMAINING SPACE */
    flex: 1 !important;
    flex-grow: 1 !important;
    flex-shrink: 1 !important;
    min-height: 0 !important; /* FORCE: Allows flex child to shrink */
    height: auto !important; /* FORCE: Let flex handle height */
}

/* MOBILE CHATBOT BODY - CONSISTENT STRUCTURE */
@media (max-width: 768px) {
    .chatbot-body {
        padding: 1rem;
    }
}

@media (max-width: 480px) {
    .chatbot-body {
        padding: 0.9rem;
    }
}

@media (max-height: 500px) and (orientation: landscape) {
    .chatbot-body {
        padding: 0.8rem;
    }
}

@media (max-height: 400px) {
    .chatbot-body {
        padding: 0.7rem;
    }
}

.chatbot-body::-webkit-scrollbar {
    width: 6px;
}

.chatbot-body::-webkit-scrollbar-track {
    background: transparent;
    border-radius: 3px;
}

.chatbot-body::-webkit-scrollbar-thumb {
    background: rgba(59, 167, 201, 0.3);
    border-radius: 3px;
    transition: background 0.3s ease;
}

.chatbot-body::-webkit-scrollbar-thumb:hover {
    background: rgba(59, 167, 201, 0.5);
}

/* ENHANCED SCROLL BEHAVIOR FOR MOBILE */
@supports (-webkit-overflow-scrolling: touch) {
    .chatbot-body {
        -webkit-overflow-scrolling: touch;
        scroll-snap-type: y proximity;
    }
}

/* CHAT MESSAGES - ENHANCED MOBILE */
.chat-message {
    margin-bottom: 1.2rem;
    padding: 1rem 1.1rem;
    border-radius: 18px;
    max-width: 85%;
    position: relative;
    animation: messageSlideIn 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    word-wrap: break-word;
    overflow-wrap: break-word;
}

@keyframes messageSlideIn {
    0% {
        opacity: 0;
        transform: translateY(15px) scale(0.95);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.bot-message {
    background: linear-gradient(135deg, var(--card-bg) 0%, var(--bg-tertiary) 100%);
    margin-right: auto;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-soft);
    position: relative;
    color: var(--text-dark);
}

.bot-message::before {
    content: '';
    position: absolute;
    left: -6px;
    top: 12px;
    width: 0;
    height: 0;
    border-top: 6px solid transparent;
    border-bottom: 6px solid transparent;
    border-right: 6px solid var(--card-bg);
    filter: drop-shadow(-1px 0 1px var(--border-color));
}

.user-message {
    background: linear-gradient(135deg, var(--brand-primary) 0%, #2e8ba8 100%);
    color: white;
    margin-left: auto;
    box-shadow: 0 4px 12px rgba(59, 167, 201, 0.25);
}

.user-message::after {
    content: '';
    position: absolute;
    right: -6px;
    top: 12px;
    width: 0;
    height: 0;
    border-top: 6px solid transparent;
    border-bottom: 6px solid transparent;
    border-left: 6px solid var(--brand-primary);
}

.chat-message p {
    margin: 0;
    line-height: 1.5;
    font-size: 0.9rem;
}

.chat-message strong {
    font-weight: 600;
}

/* TYPING INDICATOR - SMOOTH ANIMATION WITH THEME */
.typing-indicator {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 1rem 1.1rem;
    background: linear-gradient(135deg, var(--bg-tertiary) 0%, var(--card-bg) 100%);
    border-radius: 18px;
    margin-bottom: 1rem;
    max-width: 85%;
    border: 1px solid var(--border-color);
    animation: typingSlideIn 0.3s ease-out;
}

@keyframes typingSlideIn {
    0% {
        opacity: 0;
        transform: translateY(10px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.typing-dots {
    display: flex;
    gap: 3px;
}

.typing-dot {
    width: 6px;
    height: 6px;
    background: var(--brand-primary);
    border-radius: 50%;
    animation: typingDot 1.4s infinite ease-in-out;
}

.typing-dot:nth-child(2) { animation-delay: 0.2s; }
.typing-dot:nth-child(3) { animation-delay: 0.4s; }

@keyframes typingDot {
    0%, 60%, 100% { 
        transform: translateY(0); 
        opacity: 0.4;
    }
    30% { 
        transform: translateY(-8px); 
        opacity: 1;
    }
}

.typing-indicator span {
    font-size: 0.8rem;
    color: var(--text-grey);
    font-style: italic;
}

/* FAQ BUTTONS - MOBILE OPTIMIZED */
.faq-buttons {
    display: flex;
    flex-direction: column;
    gap: 0.7rem;
    margin-top: 1rem;
}

.faq-btn {
    background: linear-gradient(135deg, var(--card-bg) 0%, var(--bg-tertiary) 100%);
    border: 2px solid var(--border-color);
    border-radius: 14px;
    padding: 1rem 1.1rem;
    text-align: left;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 0.85rem;
    color: var(--text-dark);
    font-weight: 500;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
    user-select: none;
    min-height: 48px;
}

/* DARK MODE FIX - Ensure text is always visible */
[data-theme="dark"] .faq-btn {
    color: rgba(255, 255, 255, 0.9) !important;
}

[data-theme="dark"] .faq-btn i {
    color: rgba(255, 255, 255, 0.8) !important;
}

.faq-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(59, 167, 201, 0.1), transparent);
    transition: left 0.6s ease;
}

.faq-btn:hover::before,
.faq-btn:focus::before {
    left: 100%;
}

.faq-btn:hover,
.faq-btn:focus {
    background: linear-gradient(135deg, var(--brand-primary) 0%, #2e8ba8 100%);
    color: white;
    border-color: var(--brand-primary);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(59, 167, 201, 0.3);
    outline: none;
}

.faq-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(59, 167, 201, 0.2);
}

.faq-btn i {
    font-size: 1rem;
    opacity: 0.8;
    flex-shrink: 0;
}

/* QUICK ACTIONS - MOBILE FRIENDLY */
.quick-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.7rem;
    margin-top: 1rem;
}

.quick-action-btn {
    background: linear-gradient(135deg, var(--cta-secondary) 0%, #e8935a 100%);
    color: white;
    border: none;
    border-radius: 12px;
    padding: 0.9rem 0.8rem;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
    user-select: none;
    min-height: 44px;
}

.quick-action-btn:hover,
.quick-action-btn:focus {
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(242, 163, 101, 0.4);
    outline: none;
}

.quick-action-btn:active {
    transform: translateY(0);
}

.quick-action-btn.whatsapp {
    background: linear-gradient(135deg, #25D366 0%, #20b358 100%);
}

.quick-action-btn.whatsapp:hover,
.quick-action-btn.whatsapp:focus {
    box-shadow: 0 6px 18px rgba(37, 211, 102, 0.4);
}

/* SUGGESTIONS CONTAINER - ENHANCED */
.suggestions-container {
    background: linear-gradient(135deg, #e3f2fd 0%, #f3e5f5 100%);
    border-radius: 14px;
    padding: 1rem;
    margin-top: 1rem;
    border: 1px solid rgba(59, 167, 201, 0.15);
}

.suggestions-title {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.8rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* DARK MODE FIX - Ensure suggestions title is always visible */
[data-theme="dark"] .suggestions-title {
    color: rgba(255, 255, 255, 0.9) !important;
}

[data-theme="dark"] .suggestions-container {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.08) 100%) !important;
    border-color: rgba(255, 255, 255, 0.1) !important;
}

.suggestion-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.suggestion-chip {
    background: white;
    border: 1px solid rgba(59, 167, 201, 0.2);
    border-radius: 16px;
    padding: 0.5rem 0.8rem;
    font-size: 0.75rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    color: var(--text-dark);
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
    user-select: none;
    line-height: 1.2;
}

/* DARK MODE FIX - Ensure suggestion chips text is always visible */
[data-theme="dark"] .suggestion-chip {
    background: rgba(255, 255, 255, 0.1) !important;
    color: rgba(255, 255, 255, 0.9) !important;
    border-color: rgba(255, 255, 255, 0.2) !important;
}

[data-theme="dark"] .suggestion-chip:hover,
[data-theme="dark"] .suggestion-chip:focus {
    background: var(--brand-primary) !important;
    color: white !important;
}

.suggestion-chip:hover,
.suggestion-chip:focus {
    background: var(--brand-primary);
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 3px 8px rgba(59, 167, 201, 0.3);
    outline: none;
}

.suggestion-chip:active {
    transform: translateY(0);
}

/* CHATBOT INPUT AREA - FORCE FIXED AT BOTTOM */
.chatbot-input-area {
    padding: 1rem 1.2rem !important;
    background: white !important;
    border-top: 1px solid rgba(59, 167, 201, 0.1);
    display: flex !important;
    align-items: center;
    gap: 0.8rem;
    min-height: 70px !important;
    max-height: 70px !important; /* FORCE FIXED HEIGHT */
    flex-shrink: 0 !important; /* FORCE NO SHRINKING */
    flex-grow: 0 !important; /* FORCE NO GROWING */
    box-sizing: border-box !important; /* ENSURE PROPER SIZING */
}

.chatbot-input {
    flex: 1;
    border: 2px solid var(--border-color);
    border-radius: 20px;
    padding: 0.8rem 1rem;
    font-size: 16px; /* Prevents zoom on iOS */
    outline: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: var(--input-bg);
    resize: none;
    min-height: 40px;
    color: var(--text-dark);
}

.chatbot-input:focus {
    border-color: var(--brand-primary);
    box-shadow: 0 0 0 3px rgba(59, 167, 201, 0.1);
    background: var(--input-focus-bg);
}

.chatbot-input-controls {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-shrink: 0; /* PREVENT SHRINKING */
    margin-left: auto; /* ENSURE RIGHT ALIGNMENT */
}

.chatbot-voice-btn {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #4ade80 0%, #22c55e 100%);
    border: none;
    border-radius: 50%;
    color: white;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
    position: relative;
    overflow: hidden;
}

.chatbot-voice-btn:hover,
.chatbot-voice-btn:focus {
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(74, 222, 128, 0.4);
    outline: none;
}

.chatbot-voice-btn:active {
    transform: scale(0.95);
}

.chatbot-voice-btn.recording {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    animation: recordingPulse 1s ease-in-out infinite;
}

.chatbot-voice-btn.recording:hover {
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.4);
}

@keyframes recordingPulse {
    0%, 100% { 
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.7);
    }
    50% { 
        transform: scale(1.05);
        box-shadow: 0 0 0 10px rgba(239, 68, 68, 0);
    }
}

.chatbot-send-btn {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--brand-primary) 0%, #2e8ba8 100%);
    border: none;
    border-radius: 50%;
    color: white;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}

.chatbot-send-btn:hover,
.chatbot-send-btn:focus {
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(59, 167, 201, 0.4);
    outline: none;
}

.chatbot-send-btn:active {
    transform: scale(0.95);
}

.chatbot-send-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

/* VOICE RECORDING INDICATOR */
.voice-recording-indicator {
    position: absolute;
    top: -50px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    display: none;
    align-items: center;
    gap: 0.5rem;
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
    animation: slideInDown 0.3s ease-out;
    z-index: 10;
}

.voice-recording-indicator.show {
    display: flex;
}

@keyframes slideInDown {
    0% {
        opacity: 0;
        transform: translateX(-50%) translateY(-10px);
    }
    100% {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

.recording-dot {
    width: 8px;
    height: 8px;
    background: white;
    border-radius: 50%;
    animation: recordingDot 1s ease-in-out infinite;
}

@keyframes recordingDot {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}

/* MESSAGE VOICE BUTTON - FOR INDIVIDUAL MESSAGES */
.message-voice-btn {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 24px;
    height: 24px;
    background: rgba(59, 167, 201, 0.1);
    border: none;
    border-radius: 50%;
    color: var(--brand-primary);
    font-size: 0.7rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.7;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}

.message-voice-btn:hover,
.message-voice-btn:focus {
    background: var(--brand-primary);
    color: white;
    opacity: 1;
    transform: scale(1.1);
    outline: none;
}

.message-voice-btn:active {
    transform: scale(0.95);
}

.chat-message:hover .message-voice-btn {
    opacity: 1;
}

/* VOICE MESSAGE BUBBLE */
.voice-message {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 1rem 1.1rem;
    background: linear-gradient(135deg, #e0f2fe 0%, #f3e5f5 100%);
    border-radius: 18px;
    margin-bottom: 1rem;
    max-width: 85%;
    border: 1px solid rgba(59, 167, 201, 0.2);
    position: relative;
}

.voice-play-btn {
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, var(--brand-primary) 0%, #2e8ba8 100%);
    border: none;
    border-radius: 50%;
    color: white;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.voice-play-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 3px 8px rgba(59, 167, 201, 0.3);
}

.voice-waveform {
    flex: 1;
    height: 30px;
    display: flex;
    align-items: center;
    gap: 2px;
    overflow: hidden;
}

.voice-bar {
    width: 3px;
    background: var(--brand-primary);
    border-radius: 2px;
    transition: height 0.1s ease;
    opacity: 0.6;
}

.voice-bar.active {
    opacity: 1;
    background: linear-gradient(135deg, var(--brand-primary) 0%, #2e8ba8 100%);
}

.voice-duration {
    font-size: 0.75rem;
    color: var(--text-grey);
    font-weight: 500;
    min-width: 35px;
    text-align: right;
}

/* VOICE SETTINGS PANEL */
.voice-settings {
    background: linear-gradient(135deg, #f0f9ff 0%, #fef7ff 100%);
    border-radius: 12px;
    padding: 1rem;
    margin: 1rem 0;
    border: 1px solid rgba(59, 167, 201, 0.15);
}

.voice-settings-title {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.8rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.voice-options {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.voice-option {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.5rem 0;
}

.voice-option label {
    font-size: 0.75rem;
    color: var(--text-grey);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.voice-toggle {
    position: relative;
    width: 40px;
    height: 20px;
    background: #e5e7eb;
    border-radius: 10px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.voice-toggle.active {
    background: var(--brand-primary);
}

.voice-toggle::before {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    width: 16px;
    height: 16px;
    background: white;
    border-radius: 50%;
    transition: transform 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.voice-toggle.active::before {
    transform: translateX(20px);
}

/* SPEECH BUBBLE ANIMATION */
.speech-bubble {
    position: relative;
    animation: speechBubble 2s ease-in-out infinite;
}

@keyframes speechBubble {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

/* VOICE PERMISSION MODAL - ENHANCED RESPONSIVE WITH THEME SUPPORT */
.voice-permission-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    backdrop-filter: blur(8px);
    padding: 1rem;
}

[data-theme="dark"] .voice-permission-modal {
    background: rgba(0, 0, 0, 0.8);
}

.voice-permission-modal.show {
    display: flex;
}

.voice-permission-content {
    background: var(--card-bg);
    border-radius: 20px;
    padding: 2rem;
    max-width: 420px;
    width: 100%;
    text-align: center;
    box-shadow: var(--shadow-hover);
    animation: modalSlideIn 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    max-height: 90vh;
    overflow-y: auto;
    border: 1px solid var(--border-color);
}

@keyframes modalSlideIn {
    0% {
        opacity: 0;
        transform: scale(0.8) translateY(30px);
    }
    100% {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.voice-permission-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--brand-primary) 0%, #2e8ba8 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 1.8rem;
    color: white;
    box-shadow: 0 8px 25px rgba(59, 167, 201, 0.3);
}

.voice-permission-content h3 {
    margin-bottom: 1rem;
    color: var(--text-dark);
    font-size: 1.4rem;
    font-weight: 700;
}

.voice-permission-content p {
    margin-bottom: 2rem;
    color: var(--text-grey);
    line-height: 1.6;
    font-size: 1rem;
}

.voice-permission-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.voice-permission-btn {
    padding: 1rem 2rem;
    border: none;
    border-radius: 25px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 1rem;
    min-width: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.voice-permission-btn.primary {
    background: linear-gradient(135deg, var(--brand-primary) 0%, #2e8ba8 100%);
    color: white;
    box-shadow: 0 6px 20px rgba(59, 167, 201, 0.3);
}

.voice-permission-btn.primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(59, 167, 201, 0.4);
}

.voice-permission-btn.secondary {
    background: var(--bg-tertiary);
    color: var(--text-grey);
    border: 2px solid var(--border-color);
}

.voice-permission-btn.secondary:hover {
    background: var(--border-color);
    border-color: var(--border-light);
}

/* MOBILE RESPONSIVE VOICE MODAL */
@media (max-width: 480px) {
    .voice-permission-modal {
        padding: 0.5rem;
    }
    
    .voice-permission-content {
        padding: 1.5rem;
        border-radius: 16px;
        max-width: 100%;
    }
    
    .voice-permission-icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
        margin-bottom: 1rem;
    }
    
    .voice-permission-content h3 {
        font-size: 1.2rem;
        margin-bottom: 0.8rem;
    }
    
    .voice-permission-content p {
        font-size: 0.9rem;
        margin-bottom: 1.5rem;
    }
    
    .voice-permission-buttons {
        flex-direction: column;
        gap: 0.8rem;
    }
    
    .voice-permission-btn {
        padding: 0.9rem 1.5rem;
        font-size: 0.9rem;
        width: 100%;
        min-width: auto;
    }
}

@media (max-width: 360px) {
    .voice-permission-content {
        padding: 1.2rem;
    }
    
    .voice-permission-icon {
        width: 55px;
        height: 55px;
        font-size: 1.3rem;
    }
    
    .voice-permission-content h3 {
        font-size: 1.1rem;
    }
    
    .voice-permission-content p {
        font-size: 0.85rem;
    }
    
    .voice-permission-btn {
        padding: 0.8rem 1.2rem;
        font-size: 0.85rem;
    }
}

/* LANDSCAPE MOBILE */
@media (max-height: 500px) and (orientation: landscape) {
    .voice-permission-content {
        padding: 1rem;
        max-height: 85vh;
    }
    
    .voice-permission-icon {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
        margin-bottom: 0.8rem;
    }
    
    .voice-permission-content h3 {
        font-size: 1rem;
        margin-bottom: 0.6rem;
    }
    
    .voice-permission-content p {
        font-size: 0.8rem;
        margin-bottom: 1rem;
    }
    
    .voice-permission-buttons {
        flex-direction: row;
        gap: 0.6rem;
    }
    
    .voice-permission-btn {
        padding: 0.7rem 1rem;
        font-size: 0.8rem;
    }
}

/* CHATBOT THINK BUBBLE - ENHANCED SMOOTH ANIMATIONS WITH THEME SUPPORT */
.chatbot-think-bubble {
    position: fixed;
    bottom: 95px;
    left: 20px;
    background: linear-gradient(135deg, var(--card-bg) 0%, var(--bg-tertiary) 100%);
    color: var(--text-dark);
    padding: 1rem 1.2rem;
    border-radius: 20px 20px 20px 4px;
    box-shadow: var(--shadow-soft);
    z-index: 998;
    max-width: 280px;
    font-size: 0.9rem;
    font-weight: 500;
    line-height: 1.4;
    border: 2px solid var(--border-color);
    animation: thinkBubbleFloat 4s ease-in-out infinite;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: none;
    opacity: 0;
    transform: translateY(15px) scale(0.9);
    will-change: transform, opacity, box-shadow;
}

.chatbot-think-bubble.show {
    display: block;
    animation: thinkBubbleAppear 0.6s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.chatbot-think-bubble:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: var(--shadow-hover);
    border-color: var(--brand-primary);
    background: linear-gradient(135deg, var(--card-bg) 0%, var(--bg-secondary) 100%);
}

.chatbot-think-bubble::before {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 15px;
    width: 0;
    height: 0;
    border-left: 10px solid transparent;
    border-right: 10px solid transparent;
    border-top: 10px solid var(--card-bg);
    filter: drop-shadow(0 3px 6px rgba(0, 0, 0, 0.1));
    transition: all 0.3s ease;
}

.chatbot-think-bubble:hover::before {
    border-top-color: var(--bg-secondary);
    transform: scale(1.1);
}

.chatbot-think-bubble::after {
    content: '💭';
    position: absolute;
    top: -18px;
    right: 12px;
    font-size: 1.4rem;
    animation: thinkIcon 3s ease-in-out infinite;
    transition: all 0.3s ease;
}

.chatbot-think-bubble:hover::after {
    transform: scale(1.2) rotate(10deg);
}

.think-bubble-close {
    position: absolute;
    top: 8px;
    right: 8px;
    background: rgba(59, 167, 201, 0.1);
    border: none;
    color: var(--brand-primary);
    font-size: 0.9rem;
    cursor: pointer;
    opacity: 0.7;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 50%;
    width: 22px;
    height: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
    font-weight: bold;
}

.think-bubble-close:hover {
    opacity: 1;
    background: var(--brand-primary);
    color: white;
    transform: scale(1.2) rotate(90deg);
}

@keyframes thinkBubbleAppear {
    0% {
        opacity: 0;
        transform: translateY(20px) scale(0.8) rotate(-2deg);
    }
    60% {
        opacity: 1;
        transform: translateY(-5px) scale(1.05) rotate(1deg);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1) rotate(0deg);
    }
}

@keyframes thinkBubbleFloat {
    0%, 100% { 
        transform: translateY(0) scale(1) rotate(0deg); 
    }
    25% { 
        transform: translateY(-3px) scale(1.01) rotate(0.5deg); 
    }
    50% { 
        transform: translateY(-5px) scale(1.02) rotate(0deg); 
    }
    75% { 
        transform: translateY(-2px) scale(1.01) rotate(-0.5deg); 
    }
}

@keyframes thinkIcon {
    0%, 100% { 
        transform: scale(1) rotate(0deg); 
        opacity: 0.8;
    }
    25% { 
        transform: scale(1.1) rotate(5deg); 
        opacity: 1;
    }
    50% { 
        transform: scale(1.15) rotate(0deg); 
        opacity: 0.9;
    }
    75% { 
        transform: scale(1.05) rotate(-3deg); 
        opacity: 1;
    }
}

/* RESPONSIVE THINK BUBBLE - ENHANCED POSITIONING WITH NAVBAR PROTECTION */
@media (max-width: 768px) {
    .chatbot-think-bubble {
        bottom: 85px;
        left: 15px;
        max-width: 260px;
        font-size: 0.85rem;
        padding: 0.9rem 1rem;
        z-index: 998; /* Below navbar */
    }
    
    .chatbot-think-bubble::after {
        font-size: 1.2rem;
        top: -15px;
        right: 10px;
    }
}

@media (max-width: 480px) {
    .chatbot-think-bubble {
        bottom: 80px;
        left: 10px;
        right: 10px;
        max-width: calc(100vw - 20px);
        font-size: 0.8rem;
        padding: 0.8rem 1rem;
        border-radius: 16px 16px 16px 4px;
        z-index: 998; /* Below navbar */
    }
    
    .chatbot-think-bubble::after {
        font-size: 1rem;
        top: -12px;
        right: 8px;
    }
    
    .chatbot-think-bubble::before {
        bottom: -8px;
        left: 12px;
        border-left: 6px solid transparent;
        border-right: 6px solid transparent;
        border-top: 8px solid #ffffff;
    }
}

@media (max-width: 360px) {
    .chatbot-think-bubble {
        left: 8px;
        right: 8px;
        bottom: 75px;
        padding: 0.7rem 0.9rem;
        font-size: 0.75rem;
        z-index: 998; /* Below navbar */
    }
    
    .think-bubble-close {
        width: 20px;
        height: 20px;
        font-size: 0.8rem;
    }
}

@media (max-height: 500px) and (orientation: landscape) {
    .chatbot-think-bubble {
        bottom: 70px;
        max-width: 240px;
        font-size: 0.75rem;
        padding: 0.7rem 0.9rem;
        z-index: 998; /* Below navbar */
    }
    
    .chatbot-think-bubble::after {
        font-size: 0.9rem;
        top: -10px;
    }
}

/* EXTRA PROTECTION FOR VERY SMALL SCREENS */
@media (max-height: 400px) {
    .chatbot-think-bubble {
        bottom: 60px;
        max-width: 200px;
        font-size: 0.7rem;
        padding: 0.6rem 0.8rem;
        z-index: 998; /* Below navbar */
    }
}
.proactive-message {
    position: fixed;
    bottom: 95px;
    left: 20px;
    right: 20px;
    max-width: 320px;
    background: linear-gradient(135deg, var(--brand-primary) 0%, #2e8ba8 100%);
    color: white;
    padding: 1rem 1.2rem;
    border-radius: 16px;
    box-shadow: 0 12px 30px rgba(59, 167, 201, 0.4);
    z-index: 998;
    animation: proactiveSlideIn 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    position: relative;
    overflow: hidden;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}

.proactive-message::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.6s ease;
}

.proactive-message:hover::before {
    left: 100%;
}

@keyframes proactiveSlideIn {
    0% {
        opacity: 0;
        transform: translateX(-100%) scale(0.9);
    }
    100% {
        opacity: 1;
        transform: translateX(0) scale(1);
    }
}

.proactive-message-close {
    position: absolute;
    top: 8px;
    right: 8px;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    font-size: 0.9rem;
    cursor: pointer;
    opacity: 0.8;
    transition: all 0.3s ease;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}

.proactive-message-close:hover,
.proactive-message-close:focus {
    opacity: 1;
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
    outline: none;
}

/* RESPONSIVE DESIGN - ENHANCED MOBILE EXPERIENCE WITH NAVBAR PROTECTION */

/* TABLET AND SMALL DESKTOP */
@media (max-width: 768px) {
    .chatbot-widget {
        width: min(380px, calc(100vw - 30px));
        left: 15px;
        bottom: 90px;
        max-height: calc(100vh - 130px); /* Ensure navbar visibility */
        border-radius: 18px;
    }
    
    .chatbot-toggle {
        bottom: 20px;
        left: 20px;
    }
    
    .chatbot-btn {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }
}

/* MOBILE PHONES - FIXED STRUCTURE MAINTAINED */
@media (max-width: 480px) {
    .chatbot-widget {
        left: 8px;
        right: 8px;
        width: calc(100vw - 16px);
        bottom: 80px;
        height: calc(100vh - 110px); /* FIXED HEIGHT - not max-height */
        border-radius: 16px;
        box-shadow: 0 15px 50px rgba(0, 0, 0, 0.3);
    }
    
    .chatbot-toggle {
        bottom: 15px;
        left: 15px;
    }
    
    .chatbot-btn {
        width: 56px;
        height: 56px;
        font-size: 1.4rem;
    }
    
    .chatbot-header {
        padding: 1rem 1.2rem;
        min-height: 65px;
        max-height: 65px; /* FIXED HEIGHT */
    }
    
    .chatbot-header-content {
        gap: 0.8rem;
    }
    
    .chatbot-avatar {
        width: 38px;
        height: 38px;
        font-size: 1.2rem;
    }
    
    .chatbot-info h5 {
        font-size: 0.95rem;
    }
    
    .chatbot-status {
        font-size: 0.7rem;
    }
    
    .chatbot-controls {
        gap: 0.4rem;
    }
    
    .voice-btn,
    .speaker-btn {
        width: 30px;
        height: 30px;
        font-size: 0.8rem;
    }
    
    .btn-close-chat {
        width: 32px;
        height: 32px;
        font-size: 1rem;
    }
    
    .chat-message {
        padding: 0.9rem 1rem;
        max-width: 88%;
        font-size: 0.9rem;
        border-radius: 16px;
        margin-bottom: 1rem;
    }
    
    .message-voice-btn {
        width: 22px;
        height: 22px;
        font-size: 0.65rem;
        top: 6px;
        right: 6px;
    }
    
    .faq-btn {
        padding: 0.9rem 1rem;
        font-size: 0.85rem;
        min-height: 48px;
        border-radius: 12px;
    }
    
    .quick-actions {
        grid-template-columns: 1fr;
        gap: 0.7rem;
    }
    
    .quick-action-btn {
        padding: 0.9rem;
        font-size: 0.8rem;
        min-height: 48px;
        border-radius: 12px;
    }
    
    .suggestion-chip {
        padding: 0.6rem 0.9rem;
        font-size: 0.8rem;
        border-radius: 14px;
    }
    
    .chatbot-input-area {
        padding: 1rem 1rem !important; /* REDUCED RIGHT PADDING for Android */
        min-height: 65px;
        max-height: 65px; /* FIXED HEIGHT */
        gap: 0.6rem !important; /* REDUCED GAP for better spacing */
        box-sizing: border-box !important;
    }
    
    .chatbot-input {
        padding: 0.8rem 1rem;
        font-size: 16px; /* Prevents zoom on iOS */
        border-radius: 18px;
        min-height: 42px;
        flex: 1 !important; /* ENSURE INPUT TAKES AVAILABLE SPACE */
        max-width: calc(100% - 100px) !important; /* RESERVE SPACE for buttons */
    }
    
    .chatbot-input-controls {
        gap: 0.6rem;
        flex-shrink: 0 !important; /* PREVENT SHRINKING */
        width: auto !important; /* AUTO WIDTH */
        margin-left: 0 !important; /* REMOVE AUTO MARGIN */
    }
    
    .chatbot-voice-btn,
    .chatbot-send-btn {
        width: 42px;
        height: 42px;
        font-size: 1rem;
    }
    
    .typing-indicator {
        padding: 0.9rem 1rem;
        border-radius: 16px;
    }
    
    .suggestions-container {
        padding: 0.9rem;
        border-radius: 12px;
    }
    
    .voice-recording-indicator {
        top: -45px;
        padding: 0.6rem 1rem;
        font-size: 0.8rem;
        border-radius: 18px;
    }
}

/* SMALL MOBILE PHONES - FIXED STRUCTURE */
@media (max-width: 360px) {
    .chatbot-widget {
        left: 5px;
        right: 5px;
        width: calc(100vw - 10px);
        bottom: 75px;
        height: calc(100vh - 105px); /* FIXED HEIGHT - not max-height */
        border-radius: 14px;
    }
    
    .chatbot-toggle {
        bottom: 12px;
        left: 12px;
    }
    
    .chatbot-btn {
        width: 52px;
        height: 52px;
        font-size: 1.3rem;
    }
    
    .chatbot-header {
        padding: 0.9rem 1rem;
        min-height: 60px;
        max-height: 60px; /* FIXED HEIGHT */
    }
    
    .chatbot-avatar {
        width: 35px;
        height: 35px;
        font-size: 1.1rem;
    }
    
    .chatbot-info h5 {
        font-size: 0.9rem;
    }
    
    .chatbot-status {
        font-size: 0.65rem;
    }
    
    .voice-btn,
    .speaker-btn {
        width: 28px;
        height: 28px;
        font-size: 0.75rem;
    }
    
    .btn-close-chat {
        width: 30px;
        height: 30px;
        font-size: 0.9rem;
    }
    
    .chat-message {
        padding: 0.8rem 0.9rem;
        font-size: 0.85rem;
        max-width: 90%;
    }
    
    .faq-btn {
        padding: 0.8rem 0.9rem;
        font-size: 0.8rem;
        min-height: 44px;
    }
    
    .quick-action-btn {
        padding: 0.8rem;
        font-size: 0.75rem;
        min-height: 44px;
    }
    
    .chatbot-input-area {
        padding: 0.9rem 0.8rem !important; /* REDUCED RIGHT PADDING for Android */
        min-height: 60px;
        max-height: 60px; /* FIXED HEIGHT */
        gap: 0.5rem !important; /* REDUCED GAP for better spacing */
        box-sizing: border-box !important;
    }
    
    .chatbot-input {
        padding: 0.7rem 0.9rem;
        font-size: 16px;
        min-height: 38px;
        flex: 1 !important; /* ENSURE INPUT TAKES AVAILABLE SPACE */
        max-width: calc(100% - 90px) !important; /* RESERVE SPACE for buttons */
    }
    
    .chatbot-input-controls {
        gap: 0.5rem !important;
        flex-shrink: 0 !important; /* PREVENT SHRINKING */
        width: auto !important; /* AUTO WIDTH */
        margin-left: 0 !important; /* REMOVE AUTO MARGIN */
    }
    
    .chatbot-voice-btn,
    .chatbot-send-btn {
        width: 38px;
        height: 38px;
        font-size: 0.9rem;
    }
}

/* LANDSCAPE MOBILE - FIXED STRUCTURE */
@media (max-height: 500px) and (orientation: landscape) {
    .chatbot-widget {
        height: calc(100vh - 80px); /* FIXED HEIGHT - not max-height */
        bottom: 60px;
        border-radius: 12px;
    }
    
    .chatbot-toggle {
        bottom: 10px;
        left: 10px;
    }
    
    .chatbot-btn {
        width: 48px;
        height: 48px;
        font-size: 1.2rem;
    }
    
    .chatbot-header {
        padding: 0.8rem 1rem;
        min-height: 55px;
        max-height: 55px; /* FIXED HEIGHT */
    }
    
    .chat-message {
        padding: 0.7rem 0.8rem;
        margin-bottom: 0.8rem;
    }
    
    .chatbot-input-area {
        padding: 0.8rem 1rem;
        min-height: 55px;
        max-height: 55px; /* FIXED HEIGHT */
    }
}

/* VERY SMALL SCREENS - MAINTAIN FUNCTIONALITY */
@media (max-width: 320px) {
    .chatbot-widget {
        left: 3px;
        right: 3px;
        width: calc(100vw - 6px);
        bottom: 70px;
        max-height: calc(100vh - 100px); /* Professional navbar spacing */
        border-radius: 12px;
    }
    
    .chatbot-header {
        padding: 0.8rem 0.9rem;
        min-height: 55px;
    }
    
    .chatbot-avatar {
        width: 32px;
        height: 32px;
        font-size: 1rem;
    }
    
    .chatbot-info h5 {
        font-size: 0.85rem;
    }
    
    .chat-message {
        padding: 0.7rem 0.8rem;
        font-size: 0.8rem;
    }
    
    .faq-btn {
        padding: 0.7rem 0.8rem;
        font-size: 0.75rem;
    }
    
    .chatbot-input {
        padding: 0.6rem 0.8rem;
        min-height: 36px;
    }
    
    .chatbot-voice-btn,
    .chatbot-send-btn {
        width: 36px;
        height: 36px;
        font-size: 0.85rem;
    }
}

/* ENHANCED MOBILE TOUCH INTERACTIONS */
@media (hover: none) and (pointer: coarse) {
    .chatbot-btn,
    .faq-btn,
    .quick-action-btn,
    .suggestion-chip,
    .voice-permission-btn,
    .chatbot-voice-btn,
    .chatbot-send-btn {
        -webkit-tap-highlight-color: transparent;
        touch-action: manipulation;
        user-select: none;
    }
    
    .chatbot-btn:active,
    .faq-btn:active,
    .quick-action-btn:active {
        transform: scale(0.95);
        transition: transform 0.1s ease;
    }
    
    .chatbot-input {
        appearance: none;
        -webkit-appearance: none;
        -webkit-border-radius: 0;
        border-radius: 18px;
    }
}

/* PREVENT ZOOM ON INPUT FOCUS (iOS) */
@media screen and (max-width: 480px) {
    .chatbot-input,
    input[type="text"],
    input[type="tel"],
    textarea {
        font-size: 16px !important;
        -webkit-text-size-adjust: 100%;
    }
}

/* ENHANCED ACCESSIBILITY */
@media (prefers-reduced-motion: reduce) {
    .chatbot-widget,
    .voice-permission-modal,
    .chat-message,
    .typing-indicator {
        animation: none !important;
        transition: none !important;
    }
    
    .typing-dot,
    .status-indicator,
    .recording-dot {
        animation: none !important;
    }
}

/* HIGH CONTRAST MODE SUPPORT */
@media (prefers-contrast: high) {
    .chatbot-widget {
        border: 2px solid var(--text-dark);
    }
    
    .chatbot-header {
        border-bottom: 2px solid rgba(255, 255, 255, 0.3);
    }
    
    .chat-message {
        border: 1px solid var(--text-dark);
    }
    
    .faq-btn,
    .quick-action-btn {
        border: 2px solid var(--brand-primary);
    }
}

/* RESPONSIVE DESIGN */
@media (max-width: 768px) {
    .three-js-section {
        margin-top: 70px;
    }
    
    .hero-title {
        font-size: 2.2rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .navbar-logo-full {
        height: 60px; /* Increased from 50px for better mobile visibility */
    }
    
    .tagline-text {
        font-size: 14px;
        padding: 10px 20px;
    }
    
    .hero-ctas .btn {
        display: block;
        width: 100%;
        margin: 0.5rem 0;
    }
    
    .social-links {
        justify-content: center;
        margin-bottom: 1rem;
    }
    
    .footer {
        text-align: center;
    }
    
    .footer .text-md-end {
        text-align: center !important;
    }
    
    .whatsapp-float {
        bottom: 20px;
        right: 20px;
    }
    
    .before-after-card {
        height: 280px;
        margin-bottom: 2rem;
    }
    
    .transform-arrow {
        font-size: 2rem;
        margin: 1rem 0;
    }
}

@media (max-width: 576px) {
    .hero-content {
        padding: 80px 0 60px;
    }
    
    .benefits-section,
    .before-after-section,
    .how-it-works-section {
        padding: 60px 0;
    }
    
    .glass-card {
        padding: 1.5rem;
    }
    
    .navbar-logo-full {
        height: 55px; /* Increased from 45px for better mobile visibility */
    }
    
    .tagline-text {
        font-size: 12px;
        padding: 8px 16px;
    }
    
    .before-after-card {
        height: 250px;
    }
}

/* UTILITY CLASSES */
.text-brand {
    color: var(--brand-primary) !important;
}

.bg-brand {
    background-color: var(--brand-primary) !important;
}

.shadow-soft {
    box-shadow: var(--shadow-soft) !important;
}

.rounded-4 {
    border-radius: 20px !important;
}

/* LOADING STATES */
img {
    transition: opacity 0.3s ease;
}

img[src=""] {
    opacity: 0;
}

/* SMOOTH SCROLLING */
html {
    scroll-behavior: smooth;
}

/* RESPONSIVE DESIGN - ENHANCED */
@media (max-width: 768px) {
    .three-js-section {
        margin-top: 80px;
    }
    
    .navbar-logo-large {
        height: 75px; /* Increased from 65px for better tablet visibility */
    }
    
    .brand-tagline .tagline-text {
        font-size: 0.8rem;
    }
    
    .luxury-tagline {
        left: 20px;
        right: 20px;
        top: 10px;
        transform: none;
        z-index: 10;
    }
    
    .luxury-text {
        font-size: 1.5rem;
        padding: 1rem;
        text-align: center;
    }
    
    .hero-title {
        font-size: 2.2rem;
    }
    
    .hero-ctas .btn {
        display: block;
        width: 100%;
        margin: 0.5rem 0;
    }
    
    .footer {
        padding: 4rem 0 2rem;
        text-align: center;
    }
    
    .footer-brand,
    .footer-info,
    .footer-contact {
        text-align: center;
        margin-bottom: 2rem;
    }
    
    .footer-logo-large {
        height: 75px; /* MATCHED to navbar logo size (was 120px) */
    }
    
    .before-after-card {
        height: 320px;
        margin-bottom: 2rem;
    }
}

@media (max-width: 576px) {
    .navbar-logo-large {
        height: 65px; /* Increased from 55px for better mobile visibility */
    }
    
    .brand-tagline {
        display: none;
    }
    
    .luxury-text {
        font-size: 1.4rem;
        padding: 1rem;
    }
    
    .before-after-card {
        height: 280px;
    }
    
    .footer-logo-large {
        height: 65px; /* MATCHED to navbar logo size (was 110px) */
    }
    
    .footer-brand-name {
        font-size: 1.3rem;
    }
}

/* ===== BUY PAGE - PROFESSIONAL LAYOUT WITH ULTRA-SMOOTH THEME SUPPORT ===== */

.buy-page {
    padding-top: 90px;
    background: var(--bg-main);
    position: relative;
    z-index: 10;
    transition: 
        background-color var(--theme-transition-duration) var(--theme-transition-timing),
        color var(--theme-transition-duration) var(--theme-transition-timing) !important;
}

/* PRODUCT SECTION - LEFT SIDE WITH THEME SUPPORT */
.product-section {
    background: linear-gradient(135deg, var(--bg-tertiary) 0%, var(--card-bg) 100%);
    display: flex;
    align-items: flex-start;
    justify-content: center;
    min-height: 100vh;
    padding: 2rem;
    border-right: 1px solid var(--border-color);
    padding-top: 4rem;
    transition: 
        background var(--theme-transition-duration) var(--theme-transition-timing),
        border-color var(--theme-transition-duration) var(--theme-transition-timing) !important;
}

.product-container {
    text-align: center;
    max-width: 400px;
    width: 100%;
    transition: 
        background-color var(--theme-transition-duration) var(--theme-transition-timing),
        color var(--theme-transition-duration) var(--theme-transition-timing) !important;
}

.product-image-wrapper {
    margin-bottom: 2rem;
    position: relative;
}

.product-image {
    max-width: 100%;
    height: auto;
    max-height: 500px;
    object-fit: contain;
    filter: drop-shadow(0 10px 30px rgba(0,0,0,0.1));
    transition: transform 0.3s ease;
}

.product-image:hover {
    transform: scale(1.02);
}

.product-info {
    text-align: center;
}

.product-title {
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 1rem;
    line-height: 1.3;
    transition: color var(--theme-transition-duration) var(--theme-transition-timing) !important;
}

.product-subtitle {
    font-size: 1.1rem;
    color: var(--text-grey);
    margin-bottom: 2rem;
    font-weight: 500;
    transition: color var(--theme-transition-duration) var(--theme-transition-timing) !important;
}

.price-display {
    background: linear-gradient(135deg, var(--brand-primary), #2e8ba8);
    color: white;
    padding: 1.5rem;
    border-radius: 20px;
    margin-bottom: 1rem;
    box-shadow: 0 8px 25px rgba(59, 167, 201, 0.3);
    transition: 
        background var(--theme-transition-duration) var(--theme-transition-timing),
        box-shadow var(--theme-transition-duration) var(--theme-transition-timing) !important;
}

.price {
    display: block;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    text-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.delivery-note {
    font-size: 1rem;
    opacity: 0.9;
    font-weight: 500;
}

/* FORM SECTION - RIGHT SIDE WITH THEME SUPPORT */
.form-section {
    background: var(--bg-main);
    display: flex;
    align-items: flex-start;
    justify-content: center;
    min-height: 100vh;
    padding: 2rem;
    overflow-y: auto;
    transition: 
        background-color var(--theme-transition-duration) var(--theme-transition-timing),
        color var(--theme-transition-duration) var(--theme-transition-timing) !important;
}

.form-wrapper {
    width: 100%;
    max-width: 500px;
    padding: 1rem 0;
    transition: 
        background-color var(--theme-transition-duration) var(--theme-transition-timing),
        color var(--theme-transition-duration) var(--theme-transition-timing) !important;
}

.form-header {
    text-align: center;
    margin-bottom: 2rem;
}

.form-header h2 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
    transition: color var(--theme-transition-duration) var(--theme-transition-timing) !important;
}

.form-header p {
    color: var(--text-grey);
    font-size: 1rem;
}

.order-form {
    background: var(--card-bg);
    border-radius: 20px;
    padding: 2rem;
    margin-bottom: 2rem;
    border: 1px solid var(--border-color);
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.form-group.full-width {
    grid-column: 1 / -1;
}

.form-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.form-label i {
    color: var(--brand-primary);
    width: 16px;
}

.form-control,
.form-select {
    border: 2px solid var(--border-color);
    border-radius: 10px;
    padding: 0.75rem 1rem;
    font-size: 0.95rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: var(--input-bg);
    color: var(--text-dark);
}

.form-control:focus,
.form-select:focus {
    border-color: var(--brand-primary);
    box-shadow: 0 0 0 0.2rem rgba(59, 167, 201, 0.15);
    background: var(--input-focus-bg);
}

.order-summary {
    background: var(--card-bg);
    border: 2px solid var(--brand-primary);
    border-radius: 15px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    transition: 
        background-color var(--theme-transition-duration) var(--theme-transition-timing),
        border-color var(--theme-transition-duration) var(--theme-transition-timing),
        box-shadow var(--theme-transition-duration) var(--theme-transition-timing) !important;
}

.order-summary h5 {
    color: var(--brand-primary);
    font-weight: 700;
    margin-bottom: 1rem;
    font-size: 1.1rem;
    text-align: center;
    transition: color var(--theme-transition-duration) var(--theme-transition-timing) !important;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
    border-bottom: 1px solid #f0f0f0;
    font-size: 0.9rem;
}

.summary-row:last-child {
    border-bottom: none;
}

.summary-row.total-row {
    font-weight: 700;
    font-size: 1rem;
    color: var(--brand-primary);
    border-top: 2px solid var(--brand-primary);
    padding-top: 1rem;
    margin-top: 0.5rem;
}

.free-text {
    color: #28a745;
    font-weight: 600;
}

.submit-btn {
    width: 100%;
    background: linear-gradient(135deg, var(--brand-primary) 0%, #2e8ba8 100%);
    color: white;
    border: none;
    border-radius: 50px;
    padding: 1rem 2rem;
    font-size: 1rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 8px 25px rgba(59, 167, 201, 0.3);
    margin-bottom: 1rem;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(59, 167, 201, 0.4);
}

.security-note {
    text-align: center;
    color: var(--text-grey);
    font-size: 0.85rem;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.security-note i {
    color: #28a745;
}

/* TRUST SECTION */
.trust-section {
    background: #f8f9fa;
    border-radius: 15px;
    padding: 1.5rem;
    border: 1px solid #e9ecef;
}

.trust-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: white;
    border-radius: 10px;
    border: 1px solid #e9ecef;
    transition: all 0.3s ease;
}

.trust-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.trust-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--brand-primary), #2e8ba8);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1rem;
    flex-shrink: 0;
}

.trust-content h6 {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-dark);
    margin: 0 0 0.2rem 0;
}

.trust-content p {
    font-size: 0.75rem;
    color: var(--text-grey);
    margin: 0;
}

/* RESPONSIVE DESIGN */
@media (max-width: 991px) {
    .buy-page {
        padding-top: 80px;
    }
    
    .product-section {
        min-height: 60vh;
        border-right: none;
        border-bottom: 1px solid #e9ecef;
    }
    
    .form-section {
        min-height: auto;
        padding: 2rem 1rem;
    }
    
    .product-title {
        font-size: 1.8rem;
    }
    
    .price {
        font-size: 2rem;
    }
}

@media (max-width: 768px) {
    .buy-page {
        padding-top: 70px;
    }
    
    .product-section,
    .form-section {
        padding: 1.5rem 1rem;
    }
    
    .form-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .trust-grid {
        grid-template-columns: 1fr;
        gap: 0.8rem;
    }
    
    .product-title {
        font-size: 1.6rem;
    }
    
    .price {
        font-size: 1.8rem;
    }
    
    .order-form {
        padding: 1.5rem;
    }
}

@media (max-width: 576px) {
    .product-section,
    .form-section {
        padding: 1rem;
    }
    
    .order-form {
        padding: 1rem;
    }
    
    .trust-item {
        padding: 0.8rem;
    }
    
    .trust-icon {
        width: 35px;
        height: 35px;
        font-size: 0.9rem;
    }
    
    .trust-content h6 {
        font-size: 0.8rem;
    }
    
    .trust-content p {
        font-size: 0.7rem;
    }
}
/* ===== SUCCESS MESSAGE OVERLAY - IMPROVED RESPONSIVE ===== */

.success-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    padding: 1rem;
    overflow-y: auto;
}

.success-overlay.show {
    opacity: 1;
    visibility: visible;
}

.success-modal {
    background: white;
    border-radius: 25px;
    padding: 2rem;
    max-width: 600px;
    width: 100%;
    max-height: 90vh;
    text-align: center;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    transform: scale(0.8) translateY(50px);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    overflow-y: auto;
    margin: auto;
}

.success-overlay.show .success-modal {
    transform: scale(1) translateY(0);
}

.success-modal::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 6px;
    background: linear-gradient(90deg, var(--brand-primary), var(--cta-secondary), var(--accent-gold));
}

.success-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #e91e63, #f06292);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    animation: heartPulse 2s ease-in-out infinite;
}

.success-icon i {
    font-size: 2.5rem;
    color: white;
}

@keyframes heartPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.success-modal h2 {
    color: var(--text-dark);
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, var(--brand-primary), var(--cta-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.2;
}

.thank-you-message {
    font-size: 1.1rem;
    color: var(--text-grey);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.best-wishes {
    background: linear-gradient(135deg, #fff5f5, #ffe6e6);
    border: 2px solid #ffb3b3;
    border-radius: 15px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    text-align: center;
}

.best-wishes h3 {
    color: #e91e63;
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    text-shadow: 0 1px 2px rgba(233, 30, 99, 0.2);
    line-height: 1.3;
}

.best-wishes p {
    color: #ad1457;
    font-size: 1rem;
    font-weight: 500;
    margin: 0;
    line-height: 1.4;
}

.next-steps {
    background: #f8f9fa;
    border-radius: 15px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    text-align: left;
}

.next-steps h4 {
    color: var(--text-dark);
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 1rem;
    text-align: center;
}

.next-steps ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.next-steps li {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.5rem 0;
    font-size: 0.95rem;
    color: var(--text-grey);
}

.next-steps li i {
    width: 20px;
    color: var(--brand-primary);
    font-size: 1rem;
    flex-shrink: 0;
}

.close-success-btn {
    background: linear-gradient(135deg, var(--brand-primary) 0%, #2e8ba8 100%);
    color: white;
    border: none;
    border-radius: 50px;
    padding: 1rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin: 0 auto 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 8px 25px rgba(59, 167, 201, 0.3);
    width: 100%;
    max-width: 300px;
}

.close-success-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(59, 167, 201, 0.4);
}

.contact-info {
    font-size: 0.9rem;
    color: var(--text-grey);
    margin: 0;
    line-height: 1.4;
}

.contact-info a {
    color: var(--brand-primary);
    text-decoration: none;
    font-weight: 600;
}

.contact-info a:hover {
    text-decoration: underline;
}

/* LOADING STATE FOR SUBMIT BUTTON */
.submit-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none !important;
}

.submit-btn .fa-spinner {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* RESPONSIVE SUCCESS MODAL - ENHANCED */
@media (max-width: 768px) {
    .success-overlay {
        padding: 0.5rem;
        align-items: flex-start;
        padding-top: 2rem;
    }
    
    .success-modal {
        padding: 1.5rem;
        margin: 0;
        max-height: 95vh;
        border-radius: 20px;
    }
    
    .success-modal h2 {
        font-size: 1.6rem;
    }
    
    .success-icon {
        width: 60px;
        height: 60px;
        margin-bottom: 1rem;
    }
    
    .success-icon i {
        font-size: 2rem;
    }
    
    .best-wishes {
        padding: 1rem;
        margin-bottom: 1.5rem;
    }
    
    .best-wishes h3 {
        font-size: 1.1rem;
    }
    
    .best-wishes p {
        font-size: 0.9rem;
    }
    
    .next-steps {
        padding: 1rem;
        margin-bottom: 1.5rem;
    }
    
    .next-steps h4 {
        font-size: 1rem;
    }
    
    .next-steps li {
        font-size: 0.9rem;
        padding: 0.4rem 0;
    }
    
    .close-success-btn {
        padding: 0.8rem 1.5rem;
        font-size: 0.9rem;
    }
    
    .thank-you-message {
        font-size: 1rem;
    }
}

@media (max-width: 576px) {
    .success-overlay {
        padding: 0.25rem;
        padding-top: 1rem;
    }
    
    .success-modal {
        padding: 1rem;
        border-radius: 15px;
        max-height: 98vh;
    }
    
    .success-modal h2 {
        font-size: 1.4rem;
        margin-bottom: 0.8rem;
    }
    
    .success-icon {
        width: 50px;
        height: 50px;
        margin-bottom: 0.8rem;
    }
    
    .success-icon i {
        font-size: 1.5rem;
    }
    
    .thank-you-message {
        font-size: 0.9rem;
        margin-bottom: 1rem;
    }
    
    .best-wishes {
        padding: 0.8rem;
        margin-bottom: 1rem;
    }
    
    .best-wishes h3 {
        font-size: 1rem;
    }
    
    .best-wishes p {
        font-size: 0.85rem;
    }
    
    .next-steps {
        padding: 0.8rem;
        margin-bottom: 1rem;
    }
    
    .next-steps h4 {
        font-size: 0.95rem;
        margin-bottom: 0.8rem;
    }
    
    .next-steps li {
        font-size: 0.85rem;
        padding: 0.3rem 0;
        gap: 0.8rem;
    }
    
    .next-steps li i {
        width: 18px;
        font-size: 0.9rem;
    }
    
    .close-success-btn {
        padding: 0.7rem 1.2rem;
        font-size: 0.85rem;
        max-width: 250px;
    }
    
    .contact-info {
        font-size: 0.8rem;
    }
}

@media (max-width: 400px) {
    .success-modal {
        padding: 0.8rem;
    }
    
    .success-modal h2 {
        font-size: 1.2rem;
    }
    
    .best-wishes h3 {
        font-size: 0.9rem;
    }
    
    .close-success-btn {
        padding: 0.6rem 1rem;
        font-size: 0.8rem;
    }
}

/* LANDSCAPE MOBILE ORIENTATION */
@media (max-height: 500px) and (orientation: landscape) {
    .success-overlay {
        align-items: flex-start;
        padding-top: 0.5rem;
    }
    
    .success-modal {
        max-height: 95vh;
        padding: 1rem;
    }
    
    .success-icon {
        width: 40px;
        height: 40px;
        margin-bottom: 0.5rem;
    }
    
    .success-icon i {
        font-size: 1.2rem;
    }
    
    .success-modal h2 {
        font-size: 1.2rem;
        margin-bottom: 0.5rem;
    }
    
    .best-wishes,
    .next-steps {
        padding: 0.8rem;
        margin-bottom: 0.8rem;
    }
}
/* ORDER CONFIRMATION SECTION */
.order-confirmation {
    background: linear-gradient(135deg, #e8f5e8, #f0fff0);
    border: 2px solid #90ee90;
    border-radius: 15px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    text-align: left;
}

.confirmation-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.5rem 0;
    font-size: 1rem;
    color: #2e7d32;
    font-weight: 500;
}

.confirmation-item i {
    color: #4caf50;
    font-size: 1.1rem;
    width: 20px;
    flex-shrink: 0;
}

@media (max-width: 768px) {
    .order-confirmation {
        padding: 1rem;
        margin-bottom: 1.5rem;
    }
    
    .confirmation-item {
        font-size: 0.9rem;
        padding: 0.4rem 0;
    }
}

@media (max-width: 576px) {
    .order-confirmation {
        padding: 0.8rem;
        margin-bottom: 1rem;
    }
    
    .confirmation-item {
        font-size: 0.85rem;
        gap: 0.8rem;
    }
}
/* PRODUCT TRUST INDICATORS - BELOW PRICE */
.product-trust-indicators {
    margin-top: 2rem;
    transition: 
        background-color var(--theme-transition-duration) var(--theme-transition-timing),
        color var(--theme-transition-duration) var(--theme-transition-timing) !important;
    will-change: background-color, color;
}

.trust-grid-product {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    transition: 
        background-color var(--theme-transition-duration) var(--theme-transition-timing),
        color var(--theme-transition-duration) var(--theme-transition-timing) !important;
}

.trust-item-product {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 1rem;
    background: var(--card-bg);
    border-radius: 12px;
    border: 2px solid var(--border-color);
    transition: 
        all 0.3s ease,
        background-color var(--theme-transition-duration) var(--theme-transition-timing),
        border-color var(--theme-transition-duration) var(--theme-transition-timing),
        box-shadow var(--theme-transition-duration) var(--theme-transition-timing) !important;
    box-shadow: var(--shadow-soft);
    will-change: background-color, border-color, box-shadow;
}

.trust-item-product:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
    border-color: var(--brand-primary);
}

.trust-icon-product {
    width: 35px;
    height: 35px;
    background: linear-gradient(135deg, var(--brand-primary), #2e8ba8);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 0.9rem;
    flex-shrink: 0;
    transition: 
        background var(--theme-transition-duration) var(--theme-transition-timing),
        color var(--theme-transition-duration) var(--theme-transition-timing) !important;
    will-change: background, color;
}

.trust-content-product {
    transition: 
        color var(--theme-transition-duration) var(--theme-transition-timing) !important;
    will-change: color;
}

.trust-content-product h6 {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-dark);
    margin: 0 0 0.2rem 0;
    line-height: 1.2;
    transition: 
        color var(--theme-transition-duration) var(--theme-transition-timing) !important;
    will-change: color;
}

.trust-content-product p {
    font-size: 0.7rem;
    color: var(--text-grey);
    margin: 0;
    line-height: 1.2;
    transition: 
        color var(--theme-transition-duration) var(--theme-transition-timing) !important;
    will-change: color;
}

/* RESPONSIVE PRODUCT TRUST INDICATORS */
@media (max-width: 991px) {
    .product-trust-indicators {
        margin-top: 1.5rem;
    }
    
    .trust-grid-product {
        gap: 0.8rem;
    }
    
    .trust-item-product {
        padding: 0.8rem;
    }
    
    .trust-icon-product {
        width: 30px;
        height: 30px;
        font-size: 0.8rem;
    }
}

@media (max-width: 768px) {
    .product-trust-indicators {
        margin-top: 1rem;
    }
    
    .trust-grid-product {
        grid-template-columns: 1fr;
        gap: 0.6rem;
    }
    
    .trust-item-product {
        padding: 0.7rem;
    }
    
    .trust-content-product h6 {
        font-size: 0.75rem;
    }
    
    .trust-content-product p {
        font-size: 0.65rem;
    }
}

@media (max-width: 576px) {
    .trust-item-product {
        padding: 0.6rem;
        gap: 0.6rem;
    }
    
    .trust-icon-product {
        width: 28px;
        height: 28px;
        font-size: 0.75rem;
    }
    
    .trust-content-product h6 {
        font-size: 0.7rem;
    }
    
    .trust-content-product p {
        font-size: 0.6rem;
    }
}
/* ===== CONTACT PAGE STYLES WITH ULTRA-SMOOTH THEME SUPPORT ===== */

.contact-page {
    padding-top: 120px;
    padding-bottom: 80px;
    background: var(--bg-main);
    position: relative;
    z-index: 10;
    transition: 
        background-color var(--theme-transition-duration) var(--theme-transition-timing),
        color var(--theme-transition-duration) var(--theme-transition-timing) !important;
}

.page-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 1rem;
    line-height: 1.2;
    transition: color var(--theme-transition-duration) var(--theme-transition-timing) !important;
}

.page-subtitle {
    font-size: 1.2rem;
    color: var(--text-grey);
    transition: color var(--theme-transition-duration) var(--theme-transition-timing) !important;
    margin-bottom: 3rem;
    line-height: 1.6;
}

.brand-story-content {
    padding: 2rem 0;
}

.section-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 1.5rem;
}

.brand-values {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.value-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-weight: 500;
    color: var(--text-dark);
}

.value-item i {
    font-size: 1.2rem;
}

.brand-image-container {
    text-align: center;
}

.trust-message-card {
    padding: 3rem 2rem;
    margin: 2rem 0;
}

.trust-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--brand-primary), var(--cta-secondary));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 2rem;
    color: white;
    font-size: 2rem;
}

.trust-point {
    text-align: center;
    padding: 1rem;
}

.trust-point i {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.trust-point h5 {
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.contact-card {
    padding: 2rem;
    text-align: center;
    height: 100%;
    transition: all 0.3s ease;
}

.contact-card:hover {
    transform: translateY(-5px);
}

.contact-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--brand-primary), var(--cta-secondary));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    color: white;
    font-size: 1.8rem;
}

.contact-card h4 {
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.faq-section {
    margin: 3rem 0;
}

.accordion-item {
    border: none;
    margin-bottom: 1rem;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.accordion-button {
    background: white;
    border: none;
    font-weight: 600;
    color: var(--text-dark);
    padding: 1.5rem;
    border-radius: 15px;
}

.accordion-button:not(.collapsed) {
    background: var(--brand-primary);
    color: white;
    box-shadow: none;
}

.accordion-button:focus {
    box-shadow: none;
    border: none;
}

.accordion-body {
    padding: 1.5rem;
    background: #f8f9fa;
    color: var(--text-grey);
    line-height: 1.6;
}

.cta-section {
    text-align: center;
    padding: 3rem 2rem;
    background: linear-gradient(135deg, var(--bg-tertiary) 0%, var(--border-light) 100%);
    border-radius: 25px;
    margin: 3rem 0;
    transition: 
        background var(--theme-transition-duration) var(--theme-transition-timing),
        background-color var(--theme-transition-duration) var(--theme-transition-timing),
        color var(--theme-transition-duration) var(--theme-transition-timing) !important;
    will-change: background, background-color, color;
}

.cta-section h2 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 1rem;
    transition: 
        color var(--theme-transition-duration) var(--theme-transition-timing) !important;
    will-change: color;
}

.cta-section p,
.cta-section .lead {
    color: var(--text-grey);
    transition: 
        color var(--theme-transition-duration) var(--theme-transition-timing) !important;
    will-change: color;
}

.cta-buttons {
    margin-top: 2rem;
}

.cta-buttons .btn {
    border-radius: 50px;
    padding: 1rem 2rem;
    font-weight: 600;
    margin: 0.5rem;
    transition: 
        all 0.3s ease,
        background-color var(--theme-transition-duration) var(--theme-transition-timing),
        color var(--theme-transition-duration) var(--theme-transition-timing),
        border-color var(--theme-transition-duration) var(--theme-transition-timing) !important;
    will-change: background-color, color, border-color;
}

/* RESPONSIVE CONTACT PAGE */
@media (max-width: 768px) {
    .contact-page {
        padding-top: 100px;
        padding-bottom: 60px;
    }
    
    .page-title {
        font-size: 2rem;
    }
    
    .page-subtitle {
        font-size: 1.1rem;
    }
    
    .section-title {
        font-size: 1.6rem;
    }
    
    .trust-message-card {
        padding: 2rem 1rem;
    }
    
    .contact-card {
        padding: 1.5rem;
        margin-bottom: 2rem;
    }
    
    .brand-values {
        margin-top: 2rem;
    }
    
    .value-item {
        justify-content: center;
        text-align: center;
    }
    
    .cta-section {
        padding: 2rem 1rem;
    }
    
    .cta-buttons .btn {
        display: block;
        width: 100%;
        margin: 0.5rem 0;
    }
}

@media (max-width: 576px) {
    .contact-page {
        padding-top: 90px;
    }
    
    .page-title {
        font-size: 1.8rem;
    }
    
    .trust-message-card {
        padding: 1.5rem 1rem;
    }
    
    .trust-icon,
    .contact-icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }
    
    .accordion-button {
        padding: 1rem;
        font-size: 0.9rem;
    }
    
    .accordion-body {
        padding: 1rem;
        font-size: 0.9rem;
    }
}

/* ===== ADDITIONAL THEME SUPPORT & ENHANCEMENTS ===== */

/* DARK MODE SPECIFIC ADJUSTMENTS */
[data-theme="dark"] .navbar-nav .nav-link {
    color: rgba(248, 250, 252, 0.9) !important;
}

[data-theme="dark"] .navbar-nav .nav-link:hover,
[data-theme="dark"] .navbar-nav .nav-link.active {
    color: var(--text-dark) !important;
    background: rgba(248, 250, 252, 0.2);
}

[data-theme="dark"] .footer-brand-name,
[data-theme="dark"] .footer-heading {
    color: var(--text-dark);
}

[data-theme="dark"] .footer-tagline {
    color: var(--cta-secondary);
}

[data-theme="dark"] .footer-description,
[data-theme="dark"] .footer-links a,
[data-theme="dark"] .footer-contact-info p {
    color: var(--text-grey);
}

[data-theme="dark"] .footer-copyright {
    color: var(--text-light);
}

/* ENHANCED SCROLLBAR THEMING */
[data-theme="dark"] .chatbot-body::-webkit-scrollbar-thumb {
    background: rgba(56, 189, 248, 0.3);
}

[data-theme="dark"] .chatbot-body::-webkit-scrollbar-thumb:hover {
    background: rgba(56, 189, 248, 0.5);
}

/* THEME TRANSITION IMPROVEMENTS */
.theme-transitioning * {
    transition: background-color 0.3s cubic-bezier(0.4, 0, 0.2, 1),
                color 0.3s cubic-bezier(0.4, 0, 0.2, 1),
                border-color 0.3s cubic-bezier(0.4, 0, 0.2, 1),
                box-shadow 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

/* ENHANCED FORM THEMING */
[data-theme="dark"] .form-control::placeholder,
[data-theme="dark"] .chatbot-input::placeholder {
    color: var(--text-light);
    opacity: 0.7;
}

[data-theme="dark"] .form-select option {
    background: var(--input-bg);
    color: var(--text-dark);
}

/* SUCCESS OVERLAY THEME SUPPORT */
[data-theme="dark"] .success-overlay {
    background: rgba(0, 0, 0, 0.9);
}

[data-theme="dark"] .success-modal {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
}

[data-theme="dark"] .success-modal h2 {
    color: var(--text-dark);
}

[data-theme="dark"] .thank-you-message {
    color: var(--text-grey);
}

/* ENHANCED BUTTON THEMING */
[data-theme="dark"] .btn-outline-secondary {
    border-color: var(--border-color);
    color: var(--text-grey);
}

[data-theme="dark"] .btn-outline-secondary:hover {
    background: var(--border-color);
    color: var(--text-dark);
}

/* ACCORDION THEME SUPPORT */
[data-theme="dark"] .accordion-item {
    background: var(--card-bg);
    border-color: var(--border-color);
}

[data-theme="dark"] .accordion-button {
    background: var(--card-bg);
    color: var(--text-dark);
    border-color: var(--border-color);
}

[data-theme="dark"] .accordion-button:not(.collapsed) {
    background: var(--bg-tertiary);
    color: var(--text-dark);
}

[data-theme="dark"] .accordion-body {
    background: var(--card-bg);
    color: var(--text-grey);
}

/* ENHANCED MOBILE THEME SUPPORT */
@media (max-width: 768px) {
    .theme-toggle-btn {
        width: 50px;
        height: 25px;
    }
    
    .theme-toggle-thumb {
        width: 19px;
        height: 19px;
        top: 3px;
        left: 3px;
    }
    
    [data-theme="dark"] .theme-toggle-thumb {
        transform: translateX(25px);
    }
    
    .sun-icon,
    .moon-icon {
        font-size: 10px;
    }
}

/* PREFERS REDUCED MOTION SUPPORT */
@media (prefers-reduced-motion: reduce) {
    .theme-toggle-btn,
    .theme-toggle-track,
    .theme-toggle-thumb,
    .sun-icon,
    .moon-icon {
        transition: none !important;
        animation: none !important;
    }
    
    .theme-transitioning * {
        transition: none !important;
    }
}

/* HIGH CONTRAST MODE ENHANCEMENTS */
@media (prefers-contrast: high) {
    [data-theme="dark"] {
        --text-dark: #FFFFFF;
        --text-grey: #E5E7EB;
        --border-color: #6B7280;
        --bg-main: #000000;
        --card-bg: #111827;
    }
    
    .theme-toggle-btn {
        border: 2px solid var(--text-dark);
    }
}

/* PRINT STYLES - FORCE LIGHT MODE */
@media print {
    * {
        background: white !important;
        color: black !important;
        box-shadow: none !important;
    }
    
    .theme-toggle-btn,
    .chatbot-toggle,
    .whatsapp-float {
        display: none !important;
    }
}

/* FOCUS VISIBLE ENHANCEMENTS FOR ACCESSIBILITY */
.theme-toggle-btn:focus-visible {
    outline: 2px solid var(--brand-primary);
    outline-offset: 2px;
}

/* THEME AWARE SELECTION COLORS */
::selection {
    background: var(--brand-primary);
    color: white;
}

::-moz-selection {
    background: var(--brand-primary);
    color: white;
}

[data-theme="dark"] ::selection {
    background: var(--cta-secondary);
    color: var(--bg-main);
}

[data-theme="dark"] ::-moz-selection {
    background: var(--cta-secondary);
    color: var(--bg-main);
}
/* ===== ENHANCED THINK BUBBLE ANIMATIONS ===== */

@keyframes thinkFloat {
    0%, 100% { 
        transform: translateY(0) rotate(0deg) scale(1);
        opacity: 0.8;
    }
    25% { 
        transform: translateY(-3px) rotate(2deg) scale(1.05);
        opacity: 1;
    }
    50% { 
        transform: translateY(-6px) rotate(0deg) scale(1.1);
        opacity: 0.9;
    }
    75% { 
        transform: translateY(-2px) rotate(-2deg) scale(1.05);
        opacity: 1;
    }
}

/* ENHANCED MOBILE THEME TOGGLE - PROFESSIONAL */
@media (max-width: 768px) {
    .theme-toggle-btn {
        width: 58px;
        height: 29px;
    }
    
    .theme-toggle-thumb {
        width: 25px;
        height: 25px;
        top: 2px;
        left: 2px;
    }
    
    [data-theme="dark"] .theme-toggle-thumb {
        transform: translateX(29px);
    }
    
    .sun-icon,
    .moon-icon {
        font-size: 12px;
    }
}

@media (max-width: 480px) {
    .theme-toggle-btn {
        width: 52px;
        height: 26px;
    }
    
    .theme-toggle-thumb {
        width: 22px;
        height: 22px;
    }
    
    [data-theme="dark"] .theme-toggle-thumb {
        transform: translateX(26px);
    }
    
    .sun-icon,
    .moon-icon {
        font-size: 11px;
    }
}

/* CLEAN ACCESSIBILITY AND PERFORMANCE */
@media (prefers-reduced-motion: reduce) {
    .theme-toggle-thumb,
    .sun-icon,
    .moon-icon,
    #hello-pet-think-bubble {
        animation: none !important;
        transition: none !important;
    }
}

/* FOCUS STATES FOR ACCESSIBILITY */
.theme-toggle-btn:focus-visible {
    outline: 2px solid var(--brand-primary);
    outline-offset: 2px;
    border-radius: 15px;
}

#hello-pet-think-bubble:focus-visible {
    outline: 2px solid var(--brand-primary);
    outline-offset: 2px;
}

/* PRINT STYLES */
@media print {
    .theme-toggle-btn,
    #hello-pet-think-bubble,
    .theme-notification {
        display: none !important;
    }
}
/* FINAL MOBILE SCROLLING FIXES */
@media (max-width: 768px) {
    /* Ensure the page can scroll properly */
    html {
        height: auto !important;
        overflow-y: auto !important;
        -webkit-overflow-scrolling: touch !important;
    }
    
    body {
        height: auto !important;
        overflow-y: auto !important;
        position: relative !important;
    }
    
    /* Ensure all sections are scrollable */
    .three-js-section,
    .hero-content,
    .benefits-section,
    .before-after-section,
    .how-it-works-section,
    .footer {
        position: relative !important;
        overflow: visible !important;
        touch-action: pan-y !important;
    }
    
    /* Fix any potential z-index issues */
    .glassmorphism-nav {
        z-index: 1050 !important;
    }
    
    .ui-dock {
        z-index: 30 !important;
    }
    
    #wash-btn {
        z-index: 35 !important;
    }
    
    /* Ensure proper spacing between sections */
    .hero-content {
        margin-top: 0 !important;
        padding-top: 50px !important;
    }
}

/* ULTRA-SMALL SCREENS */
@media (max-width: 320px) {
    .ui-dock {
        bottom: 10px !important;
        left: 5px !important;
        right: 5px !important;
        width: calc(100% - 10px) !important;
    }
    
    #wash-btn {
        font-size: 12px !important;
        padding: 8px 16px !important;
        min-height: 40px !important;
    }
    
    .tagline-text {
        font-size: 10px !important;
        padding: 4px 10px !important;
    }
}

/* HIGH DPI MOBILE SCREENS */
@media (-webkit-min-device-pixel-ratio: 2) and (max-width: 768px) {
    #wash-btn {
        /* Ensure crisp rendering on high DPI screens */
        -webkit-font-smoothing: antialiased;
        -moz-osx-font-smoothing: grayscale;
    }
}

/* ===== 3D BOTTLE SECTION DARK MODE SUPPORT ===== */

/* UI DOCK DARK MODE TRANSITIONS */
[data-theme="dark"] .ui-dock {
    background-color: transparent;
    color: var(--text-dark);
}

[data-theme="dark"] .tagline-text {
    background: rgba(15, 23, 42, 0.95);
    color: var(--text-dark);
    border-color: rgba(148, 163, 184, 0.3);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(20px);
}

[data-theme="dark"] .controls-hint {
    background: rgba(15, 23, 42, 0.95);
    color: var(--text-dark);
    border-color: rgba(148, 163, 184, 0.3);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(20px);
}

[data-theme="dark"] .btn-wash {
    background: linear-gradient(135deg, #FF6B6B 0%, #FF8E53 100%);
    border-color: rgba(148, 163, 184, 0.4);
    box-shadow: 0 8px 25px rgba(255, 107, 107, 0.4);
}

[data-theme="dark"] .btn-wash:hover {
    box-shadow: 0 15px 35px rgba(255, 107, 107, 0.5);
    transform: translateY(-4px) scale(1.08);
}

/* ===== SMART 3D BOTTLE SECTION THEMING ===== */

/* DARK THEME - PROPER DARK STYLING WITH BOTTLE PROTECTION */
[data-theme="dark"] .three-js-section {
    /* Dark background around the bottle area */
    background-color: var(--bg-main);
}

[data-theme="dark"] .viewer-wrapper {
    /* Create a subtle dark gradient that doesn't affect bottle lighting */
    background: 
        radial-gradient(circle at center, rgba(255, 255, 255, 0.95) 0%, rgba(219, 228, 235, 0.9) 40%, var(--bg-secondary) 100%);
    /* This creates a "spotlight" effect - light center for bottle, dark edges for theme */
}

/* BOTTLE CANVAS - PROTECTED LIGHTING ZONE */
[data-theme="dark"] #bottle-canvas {
    /* Ensure canvas maintains proper 3D lighting */
    background: transparent !important;
    /* Add subtle backdrop to separate from dark theme without affecting bottle */
    box-shadow: 0 0 100px rgba(255, 255, 255, 0.1);
}

/* LUXURY TAGLINE DARK MODE */
[data-theme="dark"] .luxury-tagline {
    color: var(--text-dark);
}

[data-theme="dark"] .luxury-text {
    color: var(--text-dark);
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.7);
    /* Add subtle glow effect in dark mode */
    filter: drop-shadow(0 0 10px rgba(248, 250, 252, 0.3));
}

/* SMOOTH TRANSITIONS FOR 3D SECTION ELEMENTS */
.luxury-tagline,
.luxury-text,
.ui-dock,
.tagline-text,
.controls-hint,
.btn-wash {
    transition: 
        background-color 800ms cubic-bezier(0.23, 1, 0.32, 1),
        color 800ms cubic-bezier(0.23, 1, 0.32, 1),
        box-shadow 800ms cubic-bezier(0.23, 1, 0.32, 1),
        text-shadow 800ms cubic-bezier(0.23, 1, 0.32, 1),
        filter 800ms cubic-bezier(0.23, 1, 0.32, 1),
        transform 0.3s ease;
    will-change: background-color, color, box-shadow, text-shadow, filter, transform;
}
/* ===== CHATBOT STRUCTURE FIX - AGGRESSIVE OVERRIDE ===== */

/* FORCE CORRECT CHATBOT LAYOUT - HIGHEST PRIORITY */
#chatbotWidget {
    display: none !important;
}

#chatbotWidget[style*="display: block"],
#chatbotWidget.open {
    display: flex !important;
    flex-direction: column !important;
    height: min(650px, calc(100vh - 240px)) !important; /* SAFE HEIGHT to avoid navbar */
    max-height: calc(100vh - 240px) !important;
    overflow: hidden !important;
}

#chatbotWidget .chatbot-header {
    flex: 0 0 70px !important; /* FORCE: no grow, no shrink, 70px height */
    min-height: 70px !important;
    max-height: 70px !important;
    overflow: hidden !important;
}

#chatbotWidget .chatbot-body {
    flex: 1 1 auto !important; /* FORCE: grow, shrink, auto height */
    overflow-y: auto !important;
    overflow-x: hidden !important;
    min-height: 0 !important;
    height: auto !important;
}

#chatbotWidget .chatbot-input-area {
    flex: 0 0 70px !important; /* FORCE: no grow, no shrink, 70px height */
    min-height: 70px !important;
    max-height: 70px !important;
    overflow: hidden !important;
}

/* MOBILE RESPONSIVE - FORCE CORRECT LAYOUT */
@media (max-width: 768px) {
    #chatbotWidget[style*="display: block"],
    #chatbotWidget.open {
        height: calc(100vh - 240px) !important;
        max-height: calc(100vh - 240px) !important;
        width: calc(100vw - 20px) !important;
    }
    
    #chatbotWidget .chatbot-header {
        flex: 0 0 65px !important;
        min-height: 65px !important;
        max-height: 65px !important;
    }
    
    #chatbotWidget .chatbot-input-area {
        flex: 0 0 65px !important;
        min-height: 65px !important;
        max-height: 65px !important;
    }
}

@media (max-width: 480px) {
    #chatbotWidget[style*="display: block"],
    #chatbotWidget.open {
        height: calc(100vh - 220px) !important;
        max-height: calc(100vh - 220px) !important;
        width: calc(100vw - 16px) !important;
    }
}

@media (max-width: 360px) {
    #chatbotWidget[style*="display: block"],
    #chatbotWidget.open {
        height: calc(100vh - 200px) !important;
        max-height: calc(100vh - 200px) !important;
        width: calc(100vw - 10px) !important;
    }
}

/* FORCE LAYOUT EVEN IF JAVASCRIPT FAILS */
.chatbot-widget:not([style*="display: none"]) {
    display: flex !important;
    flex-direction: column !important;
}
/* ===== SMART 3D LOADING OPTIMIZATIONS (HD QUALITY PRESERVED) ===== */

/* Optimize canvas rendering without affecting quality */
#bottle-canvas {
    /* Hardware acceleration for smoother rendering */
    transform: translateZ(0);
    will-change: transform;
    /* Smooth transitions */
    transition: opacity 0.3s ease;
}

/* Faster section transitions */
.three-js-section {
    /* Optimize for animations */
    will-change: transform, opacity;
    /* Faster initial render */
    contain: layout style paint;
}

/* Mobile-specific performance improvements (quality preserved) */
@media (max-width: 768px) {
    .three-js-section {
        /* Better mobile performance without quality loss */
        -webkit-transform: translateZ(0);
        transform: translateZ(0);
        -webkit-backface-visibility: hidden;
        backface-visibility: hidden;
        -webkit-perspective: 1000px;
        perspective: 1000px;
    }
}

/* Preload optimization hints */
.viewer-wrapper {
    /* Prepare for 3D content */
    transform: translateZ(0);
    backface-visibility: hidden;
}
/* ===== PROFESSIONAL INSTANT LOADING OPTIMIZATIONS ===== */

/* Logo instant loading optimization */
.navbar-logo-large, .footer-logo-large {
    /* Hardware acceleration for smooth loading */
    transform: translateZ(0);
    will-change: opacity;
    /* Prevent layout shift during loading */
    width: auto;
    height: 40px;
    max-width: 150px;
}

/* 3D Canvas instant rendering */
#bottle-canvas {
    /* Immediate hardware acceleration */
    transform: translateZ(0);
    will-change: transform, opacity;
    /* Prevent any rendering delays */
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
}

/* Instant section loading */
.three-js-section {
    /* Optimize for immediate rendering */
    contain: layout style paint;
    will-change: transform;
    /* Prevent any layout shifts */
    min-height: 100vh;
}

.viewer-wrapper {
    /* Instant 3D container setup */
    transform: translateZ(0);
    backface-visibility: hidden;
    /* Prevent any rendering delays */
    contain: layout style;
}

/* Performance optimizations for all devices */
@media (max-width: 768px) {
    .navbar-logo-large {
        /* Faster loading on mobile */
        height: 60px; /* Increased from 50px for better mobile visibility */
        max-width: 120px;
    }
}

/* Instant preloader optimization */
.preloader {
    /* Fast preloader transitions */
    transition: all 0.3s ease-in-out;
}

.preloader.fade-out {
    /* Instant fade out */
    transition: opacity 0.2s ease-out, visibility 0.2s ease-out;
}

/* Critical resource hints */
img[loading="eager"] {
    /* Force immediate loading */
    content-visibility: auto;
}

/* Prevent any loading delays */
* {
    /* Optimize all elements for speed */
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}