html { scroll-behavior: smooth; }
body {
    font-family: 'Inter', sans-serif;
    transition: background-color 0.5s, color 0.5s;
    overflow-x: hidden; /* Prevent horizontal scroll */
}
#alert_msg{
    width: 30%;   
    position: fixed;
    top: 122px;
    z-index: 99999999;
    right: 30px;
}

.dark body {
    color: #f1f5f9; /* Slate 100 */
}
.dark .bg-white { background-color: #1e293b; /* Slate 800 */ }

/* Force header to stay white in both light and dark mode */
.businessviewheader { background-color: #ffffff !important; }
.dark .businessviewheader { background-color: #ffffff !important; }
.dark .bg-gray-50 { background-color: #334155; /* Slate 700 */ }
.dark .bg-gray-100 { background-color: #334155; /* Slate 700 */ }
.dark .text-gray-900 { color: #f8fafc; }
.dark .text-gray-800 { color: #f1f5f9; }
.dark .text-gray-700 { color: #e2e8f0; }
.dark .text-gray-600 { color: #94a3b8; }
.dark .text-gray-500 { color: #64748b; }
.dark .text-gray-300 { color: #e2e8f0; }
.dark .border-gray-200 { border-color: #334155; }
.dark .border-gray-300 { border-color: #475569; }
.dark .shadow-lg { box-shadow: 0 10px 15px -3px rgba(0,0,0,0.4), 0 4px 6px -4px rgba(0,0,0,0.4); }
.dark .keep-dark-text { color: #1e293b !important; /* Slate 800 */ }
.dark .force-black-light { color: #fff; }

/* --- Custom Component Styles --- */
:root { --ss-green: #16a34a; }
.text-primary { color: var(--ss-green); }
/* Make primary text green in dark mode too */
.dark .text-primary { color: #34d399; } 
.bg-primary { background-color: var(--ss-green); }
.border-primary { border-color: var(--ss-green); }

.btn-primary { background-image: linear-gradient(to right, #16a34a, #15803d); color: white; transition: all 0.3s; }
.btn-primary:hover { box-shadow: 0 4px 15px 0 rgba(22, 163, 74, 0.45); transform: translateY(-2px); }

.page-bg {
    background-color: #f8fafc; /* slate-50 */
    position: relative;
    z-index: 1;
}
.dark .page-bg {
    background-color: #020617; /* slate-950 */
}

/* --- Forceful fix for 3-card section in dark mode --- */
.dark .snap-benefit-card {
    background-color: #1e293b !important; /* Slate 800 */
}
.dark .snap-benefit-description {
    color: #d1d5db !important; /* Gray 300 - A light gray */
}

/* --- Forceful fix for business promotion text color --- */
.dark .force-white-text {
    color: #fff !important;
}

/* --- Forceful fix for resident benefit intro text --- */
.dark .resident-benefit-intro {
    color: #fff !important;
    font-weight: 700 !important; /* bold */
}


/* --- Light Mode Gradient --- */
.hero-shape-light {
    position: absolute;
    top: -200px;
    left: -200px;
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, #22c55e11 0%, #f8fafc 60%);
    border-radius: 50%;
    z-index: -1;
    pointer-events: none;
}
.dark .hero-shape-light {
    display: none;
}

/* --- Full Deal Card Styles --- */
.btn-secondary {
    background-color: #ffffff;
    color: var(--ss-green);
    border: 1px solid var(--ss-green);
    transition: all 0.3s ease;
}
.btn-secondary:hover { background-color: var(--ss-green); color: white; }
.dark .btn-secondary { background-color: #374151; color: #34d399; border-color: #34d399; }
.dark .btn-secondary:hover { background-color: #34d399; color: #111827; }

.deal-card {
    transition: transform 0.3s, box-shadow 0.3s;
}
.deal-card:hover {
     transform: translateY(-5px);
     box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}
.dark .deal-card:hover {
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
}

/* --- Glassmorphism Effect for Dark Mode --- */
.dark .glass-effect {
    background-color: rgba(30, 41, 59, 0.7);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(71, 85, 105, 0.5);
}
.dark .deal-card.glass-effect {
    background-color: rgba(30, 41, 59, 0.6);
    border: 1px solid rgba(71, 85, 105, 0.5);
}

/* --- Fly to Cart Animation --- */
.fly-to-cart {
    position: fixed;
    background: var(--ss-green);
    border-radius: 50%;
    width: 20px;
    height: 20px;
    opacity: 0;
    transition: transform 1s ease, opacity 0.5s ease-out;
    z-index: 10000;
    pointer-events: none;
}

/* --- Interactive Elements & Animations --- */
.favorite-btn .fa-solid { color: #ef4444; }
.interactive-icon { transition: transform 0.2s, color 0.2s; }
.interactive-icon:hover { transform: scale(1.2); }

/* SNAP Modal Styles */
.modal-backdrop {
    background-color: rgba(0,0,0,0.5);
    transition: opacity 0.3s ease;
}
.modal-content {
    transition: transform 0.3s ease, opacity 0.3s ease;
    transform: translateY(-20px);
}
.modal-open .modal-content {
    transform: translateY(0);
}

/* Back to Top Button */
#back-to-top {
    transition: opacity 0.3s, transform 0.3s;
}

/* Tooltip & Switch */
.tooltip { position: relative; display: inline-block; }
.tooltip .tooltiptext {
    visibility: hidden; width: max-content; background-color: #333; color: #fff; text-align: center;
    border-radius: 6px; padding: 5px 10px; position: absolute; z-index: 50;
    bottom: 125%; left: 50%; transform: translateX(-50%); opacity: 0; transition: opacity 0.3s;
    font-size: 0.75rem; line-height: 1.4; pointer-events: none;
}
.tooltip .tooltiptext::after {
    content: ""; position: absolute; top: 100%; left: 50%; margin-left: -5px;
    border-width: 5px; border-style: solid; border-color: #333 transparent transparent transparent;
}
.tooltip:hover .tooltiptext { visibility: visible; opacity: 1; }

.snap-switch { position: relative; display: inline-block; width: 44px; height: 24px; }
.snap-switch input { opacity: 0; width: 0; height: 0; }
.snap-slider { 
    position: absolute; cursor: pointer; top: 0; left: 0; right: 0; bottom: 0; 
    background-color: #ccc; transition: .4s; border-radius: 24px; 
}
.snap-slider:before { 
    position: absolute; content: ""; height: 16px; width: 16px; left: 4px; bottom: 4px; 
    background-color: white; transition: .4s; border-radius: 50%; 
}
input:checked + .snap-slider { background-color: var(--ss-green); }
input:checked + .snap-slider:before { transform: translateX(20px); }

/* Original Custom styles */
.businessviewheader { box-shadow: 0px 0px 5px #b3b3b3; }
.amaging_haeding { padding-bottom: 30px; text-align: center; }

/* --- WOW FACTOR ANIMATIONS --- */

/* Animated Gradient Background */
.hero-animated-bg {
    background: linear-gradient(-45deg, #f8fafc, #f0fdf4, #ecfdf5, #f8fafc);
    background-size: 400% 400%;
    animation: gradientShift 8s ease infinite;
    position: relative;
    overflow: hidden;
}
.dark .hero-animated-bg {
    background: linear-gradient(-45deg, #020617, #0f172a, #1e293b, #020617);
    background-size: 400% 400%;
    animation: gradientShift 8s ease infinite;
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Floating Icons Around Heart */
.floating-icons {
    position: relative;
}

.floating-icon {
    position: absolute;
    font-size: 1.5rem;
    opacity: 0.7;
    animation: float 3s ease-in-out infinite;
    color: #16a34a;
}

.dark .floating-icon {
    color: #34d399;
}

.floating-icon:nth-child(1) {
    top: 10%;
    left: 10%;
    animation-delay: 0s;
}

.floating-icon:nth-child(2) {
    top: 20%;
    right: 15%;
    animation-delay: 1s;
}

.floating-icon:nth-child(3) {
    bottom: 30%;
    left: 5%;
    animation-delay: 2s;
}

.floating-icon:nth-child(4) {
    bottom: 10%;
    right: 10%;
    animation-delay: 1.5s;
}

@keyframes float {
    0%, 100% { transform: translateY(0px) scale(1); }
    50% { transform: translateY(-20px) scale(1.1); }
}

/* Pulsing Effect for Icons */
.pulse-icon {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { opacity: 0.7; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.1); }
    100% { opacity: 0.7; transform: scale(1); }
}

/* Deal Card Hover Effects */
.deal-card-enhanced {
    position: relative;
    transition: all 0.3s ease;
}

.deal-card-enhanced:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(22, 163, 74, 0.2);
}

.savings-preview {
    position: absolute;
    top: -10px;
    right: -10px;
    background: linear-gradient(135deg, #16a34a, #15803d);
    color: white;
    padding: 8px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: bold;
    opacity: 0;
    transform: scale(0.8);
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(22, 163, 74, 0.4);
}

.deal-card-enhanced:hover .savings-preview {
    opacity: 1;
    transform: scale(1);
}

/* Animated Progress Bar */
.deals-progress {
    background: #e5e7eb;
    border-radius: 10px;
    overflow: hidden;
    position: relative;
    height: 8px;
}

.deals-progress-bar {
    background: linear-gradient(90deg, #fbbf24, #f59e0b, #d97706);
    height: 100%;
    border-radius: 10px;
    position: relative;
    animation: progressPulse 2s ease-in-out infinite;
    transition: width 2s ease-out;
}

.deals-progress-bar::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
    animation: shimmer 2s infinite;
}

@keyframes progressPulse {
    0%, 100% { box-shadow: 0 0 5px rgba(251, 191, 36, 0.5); }
    50% { box-shadow: 0 0 20px rgba(251, 191, 36, 0.8); }
}

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

/* Enhanced Get Deal Button */
.btn-primary-enhanced {
    position: relative;
    overflow: hidden;
    animation: buttonPulse 3s ease-in-out infinite;
}

.btn-primary-enhanced::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.5s;
}

.btn-primary-enhanced:hover::before {
    left: 100%;
}

@keyframes buttonPulse {
    0%, 100% { box-shadow: 0 4px 15px 0 rgba(22, 163, 74, 0.45); }
    50% { box-shadow: 0 6px 25px 0 rgba(22, 163, 74, 0.65); }
}

/* --- ADVANCED WOW FEATURES --- */

/* Animated Typing Effect */
.typing-animation {
    overflow: hidden;
    border-right: 3px solid #16a34a;
    white-space: nowrap;
    margin: 0 auto;
    animation: typing 3s steps(40, end), blink-caret 0.75s step-end infinite;
}

@keyframes typing {
    from { width: 0; }
    to { width: 100%; }
}

@keyframes blink-caret {
    from, to { border-color: transparent; }
    50% { border-color: #16a34a; }
}

/* Glassmorphism Effects */
.glass-card {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.37);
}

.dark .glass-card {
    background: rgba(30, 41, 59, 0.3);
    border: 1px solid rgba(71, 85, 105, 0.3);
}

/* Gradient Borders */
.gradient-border {
    background: linear-gradient(45deg, #16a34a, #10b981, #059669, #047857);
    background-size: 400% 400%;
    animation: gradientBorder 4s ease infinite;
    padding: 2px;
    border-radius: 12px;
}

@keyframes gradientBorder {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

/* Scroll-triggered animations */
.scroll-animate {
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.6s ease;
}

.scroll-animate.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Floating money icons */
.money-float {
    animation: moneyFloat 4s ease-in-out infinite;
}

@keyframes moneyFloat {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    25% { transform: translateY(-15px) rotate(5deg); }
    75% { transform: translateY(-25px) rotate(-5deg); }
}

/* Phone buzzing animation */
.phone-buzz {
    animation: phoneBuzz 2s ease-in-out infinite;
}

@keyframes phoneBuzz {
    0%, 100% { transform: translateX(0); }
    10%, 30%, 50%, 70%, 90% { transform: translateX(-2px); }
    20%, 40%, 60%, 80% { transform: translateX(2px); }
}

/* Achievement Badges */
.achievement-badge {
    position: relative;
    background: linear-gradient(135deg, #ffd700, #ffed4e);
    color: #d97706;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: bold;
    animation: badgeGlow 2s ease-in-out infinite;
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.4);
}

.dark .achievement-badge {
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
    color: #1f2937;
}

@keyframes badgeGlow {
    0%, 100% { box-shadow: 0 4px 15px rgba(255, 215, 0, 0.4); }
    50% { box-shadow: 0 6px 25px rgba(255, 215, 0, 0.7); }
}

/* Ripple Effect */
.ripple-btn {
    position: relative;
    overflow: hidden;
}

.ripple-btn::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.ripple-btn:active::after {
    width: 300px;
    height: 300px;
}

/* Progress Steps */
.step-indicator {
    display: flex;
    justify-content: space-between;
    margin: 20px 0;
}

.step {
    flex: 1;
    text-align: center;
    position: relative;
}

.step::before {
    content: counter(step-counter);
    counter-increment: step-counter;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #e5e7eb;
    color: #374151; /* Dark gray for light mode */
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 10px;
    font-weight: bold;
    transition: all 0.3s ease;
}

.step.active::before {
    background: #16a34a;
    color: white;
}

.dark .step::before {
    background: #4b5563; /* Gray-600 */
    color: #d1d5db; /* Gray-300 */
}
.dark .step.active::before {
    background: #16a34a;
    color: white;
}

/* Interactive Slider */
.savings-slider {
    width: 100%;
    height: 8px;
    border-radius: 5px;
    background: #e5e7eb;
    outline: none;
    opacity: 0.7;
    transition: opacity 0.2s;
}

.savings-slider:hover {
    opacity: 1;
}

.savings-slider::-webkit-slider-thumb {
    appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #16a34a;
    cursor: pointer;
    box-shadow: 0 2px 10px rgba(22, 163, 74, 0.5);
}

/* Modal and Wizard Styles */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.wizard-card {
    background: white;
    border-radius: 20px;
    padding: 30px;
    max-width: 500px;
    width: 90%;
    transform: translateY(-50px);
    transition: transform 0.3s ease;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.dark .wizard-card {
    background: #1e293b;
    color: #f1f5f9;
}

.modal-overlay.active .wizard-card {
    transform: translateY(0);
}

/* Before/After Comparison */
.comparison-container {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
}

.comparison-slider {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 4px;
    background: #16a34a;
    cursor: ew-resize;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
}

.comparison-slider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 20px;
    height: 20px;
    background: #16a34a;
    border-radius: 50%;
    border: 2px solid white;
}

/* Time-based greeting animations */
.greeting-fade-in {
    animation: greetingFade 1s ease-in;
}

@keyframes greetingFade {
    0% { opacity: 0; transform: translateY(-20px); }
    100% { opacity: 1; transform: translateY(0); }
}
.articleContent
{
    position: relative !important;
    z-index: 9 !important;
}
/* Floating Action Button */
/*.fab {
    position: fixed;
    bottom: 80px;
    right: 20px;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #16a34a, #15803d);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 24px;
    box-shadow: 0 4px 20px rgba(22, 163, 74, 0.4);
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 100;
}

.fab:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 30px rgba(22, 163, 74, 0.6);
}*/
.benefit-card {
    transition: all 0.3s ease;
}
.benefit-card.active {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(22, 163, 74, 0.2);
    border-color: var(--ss-green);
}
.dark .benefit-card.active {
     box-shadow: 0 10px 25px rgba(52, 211, 153, 0.2);
    border-color: #34d399;
}