/* ========================================
   MONEYPEX THEME SYSTEM - APP.CSS
   Comprehensive design system for consistent UI
   ======================================== */

/* ========================================
   FORCE LIGHT MODE - Disable System Dark Mode
   ======================================== */
:root {
    color-scheme: light only !important;
}

html {
    color-scheme: light only !important;
}

/* Override any dark mode preferences */
@media (prefers-color-scheme: dark) {

    :root,
    html,
    body {
        color-scheme: light only !important;
        background-color: #ffffff !important;
    }
}

/* ========================================
   CRITICAL RESPONSIVE FIXES
   ======================================== */

/* Fix Fixed SVG Icon Sizes */
svg {
    width: clamp(1rem, 2vw, 1.125rem) !important;
    height: clamp(1rem, 2vw, 1.125rem) !important;
}

.svgicons {
    width: clamp(2rem, 3vw, 4.125rem) !important;
    height: clamp(2rem, 3vw, 4.125rem) !important;
}

/* Fix Fixed Map Iframe Heights - Excluding reCAPTCHA challenge iframes */
iframe:not([src*="recaptcha"]) {
    height: clamp(200px, 40vw, 21.5rem) !important;
    max-width: 100% !important;
}

/* Ensure reCAPTCHA iframes can always show their full content */
iframe[src*="recaptcha"] {
    max-height: none !important;
    min-height: auto !important;
}

/* reCAPTCHA Mobile Popup Fix - Centering and Scaling */
@@media screen and (max-width: 480px) {
    /* Google reCAPTCHA challenge container usually sits at body level */
    div[style*="visibility: visible"] > div[style*="position: fixed"] {
        left: 50% !important;
        transform: translateX(-50%) scale(0.9) !important;
        transform-origin: center top !important;
        max-width: 95vw !important;
    }
}


/* Fix Form Wrapper Padding - Mobile Responsive */
.form-wrapper {
    padding: clamp(1rem, 4vw, 2rem) !important;
}

@media (max-width: 767px) {
    .form-wrapper {
        padding: clamp(0.75rem, 5vw, 1.25rem) !important;
    }
}

/* Fix Mobile Navigation Logo */
.header-logoo {
    min-width: clamp(80px, 20vw, 120px) !important;
    height: clamp(20px, 5vw, 30px) !important;
}

/* Fix Cookie Consent Modal Width */
.toast-bottom-left {
    width: clamp(280px, 90vw, 96%) !important;
}

/* Fix Excessive Padding on Mobile */
@media (max-width: 767px) {
    .px-xxl-5 {
        padding-left: clamp(0.5rem, 3vw, 1rem) !important;
        padding-right: clamp(0.5rem, 3vw, 1rem) !important;
    }

    .px-sm-1 {
        padding-left: clamp(0.25rem, 2vw, 0.5rem) !important;
        padding-right: clamp(0.25rem, 2vw, 0.5rem) !important;
    }
}

/* Fix Button Touch Targets */
.btn-modern,
.btn-premium {
    min-height: clamp(44px, 8vw, 48px) !important;
    padding: clamp(0.75rem, 2vw, 1rem) clamp(1rem, 3vw, 1.5rem) !important;
}

/* Fix Container Spacing Issues */
@media (max-width: 767px) {
    .container-fluid.container-md {
        padding-left: clamp(0.75rem, 3vw, 1rem) !important;
        padding-right: clamp(0.75rem, 3vw, 1rem) !important;
    }
}

/* ========================================
   EDGE BROWSER BUTTON FLICKERING FIXES
   ======================================== */

/* Global button fixes for Edge browser */
.btn,
.btn-modern,
.btn-premium,
.btn-premium-outline,
.btn-primary,
.btn-secondary,
.btn-success,
.btn-danger,
.btn-warning,
.btn-info,
.btn-light,
.btn-dark,
.btn-link,
.btn-outline-primary,
.btn-outline-secondary,
.btn-outline-success,
.btn-outline-danger,
.btn-outline-warning,
.btn-outline-info,
.btn-outline-light,
.btn-outline-dark,
button[type="button"],
button[type="submit"],
button[type="reset"],
input[type="button"],
input[type="submit"],
input[type="reset"] {
    /* Edge browser flickering fixes */
    -webkit-backface-visibility: hidden !important;
    backface-visibility: hidden !important;
    -webkit-transform: translateZ(0) !important;
    transform: translateZ(0) !important;
    -webkit-font-smoothing: antialiased !important;
    -moz-osx-font-smoothing: grayscale !important;

    /* Stable transitions for Edge */
    transition:
        background-color 0.3s ease,
        color 0.3s ease,
        border-color 0.3s ease,
        transform 0.3s ease,
        box-shadow 0.3s ease,
        opacity 0.3s ease !important;

    /* Prevent layout shifts */
    will-change: auto !important;

    /* Edge specific fixes */
    -ms-touch-action: manipulation !important;
    touch-action: manipulation !important;

    /* Prevent text selection during hover */
    -webkit-user-select: none !important;
    -moz-user-select: none !important;
    -ms-user-select: none !important;
    user-select: none !important;

    /* Fix subpixel rendering */
    -webkit-font-smoothing: antialiased !important;
    -moz-osx-font-smoothing: grayscale !important;
    text-rendering: optimizeLegibility !important;
}

/* Enhanced hover states for Edge */
.btn:hover,
.btn-modern:hover,
.btn-premium:hover,
.btn-premium-outline:hover,
.btn-primary:hover,
.btn-secondary:hover,
.btn-success:hover,
.btn-danger:hover,
.btn-warning:hover,
.btn-info:hover,
.btn-light:hover,
.btn-dark:hover,
.btn-link:hover,
.btn-outline-primary:hover,
.btn-outline-secondary:hover,
.btn-outline-success:hover,
.btn-outline-danger:hover,
.btn-outline-warning:hover,
.btn-outline-info:hover,
.btn-outline-light:hover,
.btn-outline-dark:hover,
button[type="button"]:hover,
button[type="submit"]:hover,
button[type="reset"]:hover,
input[type="button"]:hover,
input[type="submit"]:hover,
input[type="reset"]:hover {
    /* Edge hover fixes */
    -webkit-transform: translateZ(0) scale(1.02) !important;
    transform: translateZ(0) scale(1.02) !important;

    /* Prevent flickering */
    -webkit-backface-visibility: hidden !important;
    backface-visibility: hidden !important;

    /* Smooth hover transition */
    transition:
        background-color 0.3s ease,
        color 0.3s ease,
        border-color 0.3s ease,
        transform 0.3s ease,
        box-shadow 0.3s ease,
        opacity 0.3s ease !important;
}

/* Active states for Edge */
.btn:active,
.btn-modern:active,
.btn-premium:active,
.btn-premium-outline:active,
.btn-primary:active,
.btn-secondary:active,
.btn-success:active,
.btn-danger:active,
.btn-warning:active,
.btn-info:active,
.btn-light:active,
.btn-dark:active,
.btn-link:active,
.btn-outline-primary:active,
.btn-outline-secondary:active,
.btn-outline-success:active,
.btn-outline-danger:active,
.btn-outline-warning:active,
.btn-outline-info:active,
.btn-outline-light:active,
.btn-outline-dark:active,
button[type="button"]:active,
button[type="submit"]:active,
button[type="reset"]:active,
input[type="button"]:active,
input[type="submit"]:active,
input[type="reset"]:active {
    /* Edge active fixes */
    -webkit-transform: translateZ(0) scale(0.98) !important;
    transform: translateZ(0) scale(0.98) !important;

    /* Prevent flickering */
    -webkit-backface-visibility: hidden !important;
    backface-visibility: hidden !important;

    /* Smooth active transition */
    transition:
        background-color 0.15s ease,
        color 0.15s ease,
        border-color 0.15s ease,
        transform 0.15s ease,
        box-shadow 0.15s ease,
        opacity 0.15s ease !important;
}

/* Focus states for Edge */
.btn:focus,
.btn-modern:focus,
.btn-premium:focus,
.btn-premium-outline:focus,
.btn-primary:focus,
.btn-secondary:focus,
.btn-success:focus,
.btn-danger:focus,
.btn-warning:focus,
.btn-info:focus,
.btn-light:focus,
.btn-dark:focus,
.btn-link:focus,
.btn-outline-primary:focus,
.btn-outline-secondary:focus,
.btn-outline-success:focus,
.btn-outline-danger:focus,
.btn-outline-warning:focus,
.btn-outline-info:focus,
.btn-outline-light:focus,
.btn-outline-dark:focus,
button[type="button"]:focus,
button[type="submit"]:focus,
button[type="reset"]:focus,
input[type="button"]:focus,
input[type="submit"]:focus,
input[type="reset"]:focus {
    /* Edge focus fixes */
    outline: none !important;
    -webkit-transform: translateZ(0) !important;
    transform: translateZ(0) !important;

    /* Prevent flickering */
    -webkit-backface-visibility: hidden !important;
    backface-visibility: hidden !important;

    /* Smooth focus transition */
    transition:
        background-color 0.3s ease,
        color 0.3s ease,
        border-color 0.3s ease,
        transform 0.3s ease,
        box-shadow 0.3s ease,
        opacity 0.3s ease !important;
}

/* Edge specific button container fixes */
.btn-group,
.btn-group-vertical,
.d-flex .btn,
.justify-content-center .btn,
.justify-content-end .btn,
.justify-content-start .btn {
    /* Prevent container flickering */
    -webkit-backface-visibility: hidden !important;
    backface-visibility: hidden !important;
    -webkit-transform: translateZ(0) !important;
    transform: translateZ(0) !important;
}

/* Fix for buttons with SVG icons */
.btn svg,
.btn-modern svg,
.btn-premium svg,
.btn-premium-outline svg {
    /* Prevent SVG flickering */
    -webkit-backface-visibility: hidden !important;
    backface-visibility: hidden !important;
    -webkit-transform: translateZ(0) !important;
    transform: translateZ(0) !important;

    /* Smooth SVG transitions */
    transition: transform 0.3s ease, opacity 0.3s ease !important;

    /* Ensure no box/background around arrow icon */
    background: transparent !important;
    background-color: transparent !important;
    box-shadow: none !important;
    border: none !important;
    outline: none !important;
    border-radius: 0 !important;
    padding: 0 !important;
}

/* Edge browser specific media query */
@supports (-ms-ime-align: auto) {

    .btn,
    .btn-modern,
    .btn-premium,
    .btn-premium-outline,
    button[type="button"],
    button[type="submit"],
    button[type="reset"],
    input[type="button"],
    input[type="submit"],
    input[type="reset"] {
        /* Edge specific fixes */
        -ms-touch-action: manipulation !important;
        touch-action: manipulation !important;
        -ms-transform: translateZ(0) !important;
        transform: translateZ(0) !important;
    }
}

/* Fix for buttons in forms */
.form-control+.btn,
.input-group .btn,
.form-floating .btn {
    /* Prevent form button flickering */
    -webkit-backface-visibility: hidden !important;
    backface-visibility: hidden !important;
    -webkit-transform: translateZ(0) !important;
    transform: translateZ(0) !important;
}

/* ========================================
   GLOBAL RESPONSIVE TYPOGRAPHY SYSTEM
   Applied to ALL pages using clamp() for smooth scaling
   ======================================== */

/* ========================================
   INSTANT NAVBAR HIDE ON SCROLL
   ======================================== */

/* Enhanced Navbar hide/show states with animations */
.modern-navbar {
    transition:
        transform 0.4s cubic-bezier(0.4, 0, 0.2, 1),
        background-color 0.3s ease,
        backdrop-filter 0.3s ease,
        -webkit-backdrop-filter 0.3s ease,
        box-shadow 0.3s ease,
        opacity 0.3s ease !important;
    will-change: transform;
    transform-origin: top center;
    /* Safari visibility fixes */
    -webkit-backface-visibility: visible !important;
    backface-visibility: visible !important;
    -webkit-transform: translateZ(0) !important;
    transform: translateZ(0) !important;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    pointer-events: auto !important;
    z-index: 1100 !important;
}

.modern-navbar.nav-hidden {
    transform: translateY(-100%) !important;
    -webkit-transform: translateY(-100%) !important;
    /* Safari support */
    opacity: 0.95 !important;
}

.modern-navbar.nav-visible {
    transform: translateY(0) !important;
    -webkit-transform: translateY(0) !important;
    /* Safari support */
    opacity: 1 !important;
    display: block !important;
    visibility: visible !important;
    /* Remove animation on show - instant display (no animation on scroll up) */
    animation: none !important;
}

/* Enhanced background transitions */
.modern-navbar.nav-hidden {
    background-color: rgba(255, 255, 255, 0.98) !important;
    backdrop-filter: blur(20px) !important;
    -webkit-backdrop-filter: blur(20px) !important;
    /* Safari support */
    box-shadow: 0 8px 25px -5px rgba(0, 0, 0, 0.15), 0 4px 6px -2px rgba(0, 0, 0, 0.1) !important;
}

.modern-navbar.nav-visible.scrolled {
    background-color: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(10px) !important;
    -webkit-backdrop-filter: blur(10px) !important;
    /* Safari support */
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03) !important;
    /* Remove animation on show - instant display */
    animation: none !important;
}

/* Smooth body padding transitions */
body {
    padding-top: 0 !important;
    transition: padding-top 0.4s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

body.navbar-hidden {
    padding-top: 0 !important;
}

body.navbar-visible {
    padding-top: var(--navbar-height, 68px) !important;
}

/* Enhanced navbar content animations */
.modern-navbar .navbar-brand,
.modern-navbar .nav-link-modern,
.modern-navbar .btn-premium {
    transition:
        transform 0.3s ease,
        opacity 0.3s ease !important;
}

.modern-navbar.nav-hidden .navbar-brand,
.modern-navbar.nav-hidden .nav-link-modern,
.modern-navbar.nav-hidden .btn-premium {
    transform: translateY(-10px) !important;
    opacity: 0.8 !important;
}

.modern-navbar.nav-visible .navbar-brand,
.modern-navbar.nav-visible .nav-link-modern,
.modern-navbar.nav-visible .btn-premium {
    transform: translateY(0) !important;
    opacity: 1 !important;
}

/* Dropdown menu animations - instant response */
.modern-navbar .modern-dropdown {
    transition:
        opacity 0.15s ease,
        transform 0.15s ease,
        visibility 0.15s ease !important;
}

.modern-navbar.nav-hidden .modern-dropdown {
    opacity: 0 !important;
    transform: translateY(-5px) !important;
    visibility: hidden !important;
    pointer-events: none !important;
}

.modern-navbar.nav-visible .modern-dropdown {
    pointer-events: auto !important;
}

/* Ensure all navbar elements are clickable and have proper cursor */
.modern-navbar,
.modern-navbar * {
    pointer-events: auto !important;
}

.modern-navbar .nav-link-modern,
.modern-navbar .btn-premium,
.modern-navbar .navbar-brand,
.modern-navbar .nav-dropdown-wrapper,
.modern-navbar .dropdown-item-modern {
    cursor: pointer !important;
}

/* Enhanced hover effects */
.modern-navbar.nav-visible:hover {
    background-color: rgba(255, 255, 255, 0.98) !important;
    backdrop-filter: blur(15px) !important;
    box-shadow: 0 6px 20px -5px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05) !important;
}

/* REMOVED: Fast reveal animation - no animation on scroll up */
/* Navbar shows instantly without animation when scrolling up - handled in .modern-navbar.nav-visible above */

/* Fast hide animation - no delay */
@keyframes navbarHide {
    0% {
        transform: translateY(0);
        opacity: 1;
    }

    100% {
        transform: translateY(-100%);
        opacity: 0;
    }
}

.modern-navbar.nav-hidden {
    animation: navbarHide 0.25s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

/* Enhanced mobile navbar transitions - faster */
@media (max-width: 991px) {
    .modern-navbar {
        transition:
            transform 0.2s ease,
            opacity 0.2s ease !important;
    }

    .modern-navbar .navbar-brand img,
    .modern-navbar .nav-link-mobile {
        transition: transform 0.15s ease !important;
    }

    .modern-navbar.nav-hidden .navbar-brand img,
    .modern-navbar.nav-hidden .nav-link-mobile {
        transform: scale(0.95) !important;
        opacity: 0.8 !important;
    }
}

/* Performance optimization */
.modern-navbar {
    backface-visibility: hidden;
    perspective: 1000px;
    transform-style: preserve-3d;
}

/* Hero & Main Headings - DISABLED - Use typography-fix.css instead */
/* These styles are duplicated in typography-fix.css, design-system.css, and style.css */
/*
.modern-hero-heading,
.hero-title,
.page-title {
    font-size: clamp(1.5rem, 2.2vw, 3.25rem) !important;
    line-height: 1.2 !important;
}

@media (max-width: 767px) {
    .modern-hero-heading,
    .hero-title,
    .page-title {
        font-size: clamp(1.5rem, 6vw, 1.75rem) !important;
    }
}

.section-title,
.products-section-heading,
.trusted-by-heading,
.why-moneypex-heading,
.testimonials-heading,
.contact-hero-section .modern-hero-heading {
    font-size: clamp(1.75rem, 3.5vw, 2.5rem) !important;
    line-height: 1.2 !important;
}

@media (max-width: 767px) {
    .section-title,
    .products-section-heading,
    .trusted-by-heading,
    .why-moneypex-heading,
    .testimonials-heading,
    .contact-hero-section .modern-hero-heading {
        font-size: clamp(1.5rem, 5vw, 2rem) !important;
    }
}
*/

/* Subheadings & Card Titles - h2 Level */
h2,
.h2,
.mp-products-card__title,
.benefits-wrapper-modern h2,
.empowering-businesses-section h2,
.features-wrapper h2,
.industries-section h2,
.pricing-section h2,
.counter-wrapper h2,
.mobileapp-col-two h2 {
    font-size: clamp(1.5rem, 2.8vw, 2.25rem) !important;
    line-height: 1.3 !important;
}

@media (max-width: 767px) {

    h2,
    .h2,
    .mp-products-card__title,
    .benefits-wrapper-modern h2,
    .empowering-businesses-section h2,
    .features-wrapper h2,
    .industries-section h2,
    .pricing-section h2,
    .counter-wrapper h2,
    .mobileapp-col-two h2 {
        font-size: clamp(1.25rem, 4.5vw, 1.75rem) !important;
    }
}

/* Tertiary Headings - h3 Level */
h3,
.h3,
.why-card-title,
.pos-option-card h4,
.product-details-panel h3,
.whos-moneypex-card h3 {
    font-size: clamp(1.25rem, 2.5vw, 1.875rem) !important;
    line-height: 1.3 !important;
}

@media (max-width: 767px) {

    h3,
    .h3,
    .why-card-title,
    .pos-option-card h4,
    .product-details-panel h3,
    .whos-moneypex-card h3 {
        font-size: clamp(1.125rem, 4vw, 1.5rem) !important;
    }
}

/* Quaternary Headings - h4 Level */
h4,
.h4,
.product-title {
    font-size: clamp(1.125rem, 2.2vw, 1.5rem) !important;
    line-height: 1.4 !important;
}

@media (max-width: 767px) {

    h4,
    .h4,
    .product-title {
        font-size: clamp(1rem, 3.5vw, 1.25rem) !important;
    }
}

/* Small Headings - h5 Level */
h5,
.h5 {
    font-size: clamp(1rem, 2vw, 1.25rem) !important;
    line-height: 1.4 !important;
}

@media (max-width: 767px) {

    h5,
    .h5 {
        font-size: clamp(0.875rem, 3vw, 1.125rem) !important;
    }
}

/* Micro Headings - h6 Level */
h6,
.h6 {
    font-size: clamp(0.875rem, 1.8vw, 1.125rem) !important;
    line-height: 1.4 !important;
}

@media (max-width: 767px) {

    h6,
    .h6 {
        font-size: clamp(0.75rem, 2.5vw, 1rem) !important;
    }
}

/* Legacy Section Headings - StyleSheet.css Compatibility */
section.one .text h3,
section.two .heading-section-two h3,
section.four .heading-section-two h3,
section.six h3,
section.seven h3,
section.eight h3,
section.singal-blog-one .text h3,
section.singal-blog-two h3,
section.rental-hero-section .text h3,
section.rental-standard-section-two .text h3 {
    font-size: clamp(1.5rem, 3vw, 2.5rem) !important;
    line-height: 1.3 !important;
}

@media (max-width: 767px) {

    section.one .text h3,
    section.two .heading-section-two h3,
    section.four .heading-section-two h3,
    section.six h3,
    section.seven h3,
    section.eight h3,
    section.singal-blog-one .text h3,
    section.singal-blog-two h3,
    section.rental-hero-section .text h3,
    section.rental-standard-section-two .text h3 {
        font-size: clamp(1.25rem, 4.5vw, 2rem) !important;
    }
}

/* ========================================
   1. GOOGLE FONTS IMPORT
   ======================================== */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700;800&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700;800;900&display=swap');

/* ========================================
   2. CSS VARIABLES (THEME COLORS)
   ======================================== */
:root {
    /* Primary Colors */
    --primary-color: #1E5CAA;
    --primary-dark: #174a85;
    --primary-light: #3b82f6;
    --primary-lighter: #60a5fa;

    /* Secondary Colors */
    --secondary-color: #93c5fd;
    --secondary-light: #bfdbfe;
    --secondary-lighter: #dbeafe;

    /* Neutral Colors */
    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-300: #d1d5db;
    --gray-400: #9ca3af;
    --gray-500: #6b7280;
    --gray-600: #4b5563;
    --gray-700: #374151;
    --gray-800: #1f2937;
    --gray-900: #111827;
    --gray-950: #1e293b;

    /* Status Colors */
    --success-color: #10b981;
    --success-light: #bbf7d0;
    --success-lighter: #dcfce7;
    --warning-color: #d97706;
    --warning-light: #fde68a;
    --warning-lighter: #fef3c7;
    --error-color: #dc2626;
    --error-light: #fecaca;
    --error-lighter: #fee2e2;

    /* Font Families */
    --font-primary: 'Inter', 'Poppins', 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-heading: 'Montserrat', 'Inter', sans-serif;

    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 0.75rem;
    --spacing-md: 1rem;
    --spacing-lg: 1.5rem;
    --spacing-xl: 2rem;
    --spacing-2xl: 3rem;
    --spacing-3xl: 4rem;

    /* Border Radius */
    --radius-sm: 0.5rem;
    --radius-md: 0.75rem;
    --radius-lg: 1rem;
    --radius-xl: 1.25rem;
    --radius-2xl: 1.5rem;

    /* Shadows */
    --shadow-sm: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --shadow-2xl: 0 25px 50px -12px rgba(0, 0, 0, 0.15);

    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-base: 0.3s ease;
    --transition-slow: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ========================================
   3. GLOBAL STYLES
   ======================================== */
*,
*::before,
*::after {
    box-sizing: border-box;
}

html,
body {
    max-width: 100%;
    overflow-x: hidden;
}

body {
    position: relative;
    background: transparent;
    font-family: var(--font-primary);
    color: var(--gray-900);
    line-height: 1.6;
}

/* Responsive media defaults (prevent overflow on small devices) */
img,
svg,
video,
canvas,
iframe {
    max-width: 100%;
}

iframe {
    height: auto;
}

.header-logo {
    max-width: 100%;
    height: auto;
    width: 140px;
    min-width: 120px;
}

/* Ensure logo is visible on desktop */
@media (min-width: 992px) {
    .header-logo {
        width: 150px;
        height: auto;
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
    }

    .navbar-brand.header-logo-animated {
        display: flex !important;
        visibility: visible !important;
        opacity: 1 !important;
    }
}

.modern-dropdown {
    max-width: calc(100vw - 2rem);
}

@media (max-width: 575.98px) {
    .modern-dropdown {
        left: 1rem;
        right: 1rem;
        transform: translateY(-10px);
        min-width: 0;
    }

    .modern-dropdown::before {
        left: 2rem;
        transform: translateX(0);
    }
}

.testimonial-card,
.whos-moneypex-card {
    width: min(600px, 100%);
    max-width: 100%;
}

.hmrc-card-badge {
    max-width: 100%;
    height: auto;
}

/* Decorative background elements (avoid unintended overflow on some layouts) */
.hero-bg-m {
    max-width: 100%;
}

.modern-hero-section .hero-svg-bg-elements {
    max-width: 100%;
    overflow: hidden;
}

/* CTA sections (used on multiple POS/PK pages) */
.cta-growth-section .container {
    max-width: min(1200px, 100%) !important;
    padding-left: 1rem !important;
    padding-right: 1rem !important;
}

.cta-growth-section h2 {
    font-size: clamp(1.8rem, 5.5vw, 3.5rem) !important;
    line-height: 1.15 !important;
}

.cta-growth-section p {
    font-size: clamp(1rem, 2.4vw, 1.25rem) !important;
    max-width: min(700px, 100%) !important;
}

.cta-growth-section .cta-cards-grid {
    max-width: min(500px, 100%) !important;
}

@media (max-width: 575.98px) {
    .cta-growth-section {
        padding: 2rem 0 !important;
    }

    .cta-growth-section .cta-card-growth {
        padding: 1.5rem 1.25rem !important;
    }

    /* Mobile improvements for select-app pages */
    .select-app-section .modern-hero-heading {
        font-size: clamp(1.5rem, 6vw, 2rem) !important;
        margin-bottom: 1.5rem !important;
        padding: 0 1rem;
    }

    .select-app-section {
        padding: 2rem 0 !important;
    }

    .app-selection-card {
        margin-bottom: 1rem !important;
        padding: 1.5rem !important;
    }

    .app-card-icon-wrapper {
        margin-bottom: 1rem !important;
    }

    .modern-card-title {
        font-size: 1.1rem !important;
        margin-bottom: 0.75rem !important;
    }

    .modern-card-text {
        font-size: 0.9rem !important;
        margin-bottom: 1rem !important;
    }

    /* Fixed Mobile improvements for products section */
    .mp-products-section {
        padding: 2rem 1rem !important;
    }

    .mp-products-list {
        margin-bottom: 2rem !important;
        display: flex !important;
        flex-direction: column !important;
        gap: 0.75rem !important;
    }

    .product-item {
        padding: 1rem !important;
        margin-bottom: 0 !important;
        border-radius: 0.75rem !important;
        min-height: 48px !important;
    }

    .product-title {
        font-size: 0.95rem !important;
        font-weight: 600 !important;
    }

    .product-icon {
        width: 40px !important;
        height: 40px !important;
        flex-shrink: 0 !important;
    }

    .product-icon svg {
        width: 20px !important;
        height: 20px !important;
    }

    .mp-products-card {
        padding: 1.25rem !important;
        border-radius: 1rem !important;
        margin-top: 1rem !important;
    }

    .mp-products-card__title {
        font-size: 1.375rem !important;
        margin-bottom: 0.875rem !important;
        line-height: 1.3 !important;
    }

    .mp-products-card__description {
        font-size: 0.9rem !important;
        margin-bottom: 1rem !important;
        line-height: 1.5 !important;
    }

    .mp-products-card__pros {
        margin: 1rem 0 !important;
        padding: 0.875rem !important;
    }

    .mp-products-card__pros ul li {
        font-size: 0.825rem !important;
        padding: 0.625rem !important;
        margin-bottom: 0.5rem !important;
        line-height: 1.4 !important;
    }

    .mp-products-card__pos-options {
        margin-top: 1rem !important;
        padding: 0.875rem !important;
        max-height: 200px !important;
    }

    .pos-option-card {
        padding: 0.75rem !important;
        border-radius: 0.5rem !important;
    }

    .pos-option-card h4 {
        font-size: 0.85rem !important;
        margin-bottom: 0.375rem !important;
    }

    .pos-option-card p {
        font-size: 0.75rem !important;
        line-height: 1.4 !important;
    }

    .mp-products-card__actions {
        margin-top: 1rem !important;
        gap: 0.75rem !important;
        flex-direction: column !important;
    }

    .mp-products-card__actions .btn {
        padding: 0.875rem 1rem !important;
        font-size: 0.85rem !important;
        border-radius: 0.5rem !important;
        width: 100% !important;
        text-align: center !important;
    }

    /* Mobile improvements for benefits section */
    .benefits-wrapper-modern {
        padding: 3rem 1rem !important;
    }

    .benefit-card-modern {
        padding: 1.5rem !important;
        margin-bottom: 1rem !important;
    }

    .benefit-title {
        font-size: 1.1rem !important;
        margin-bottom: 0.75rem !important;
    }

    .benefit-description {
        font-size: 0.9rem !important;
    }

    .benefit-icon-wrapper {
        width: 3rem !important;
        height: 3rem !important;
        margin-bottom: 1rem !important;
    }

    .benefit-icon {
        width: 1.5rem !important;
        height: 1.5rem !important;
    }

    /* Mobile improvements for hero sections */
    .modern-hero-section {
        padding: 2rem 0 !important;
        min-height: 60vh !important;
    }

    .modern-hero-heading {
        font-size: clamp(1.5rem, 6vw, 2.2rem) !important;
        line-height: 1.2 !important;
        margin-bottom: 1rem !important;
        padding: 0 1rem;
    }

    .modern-hero-text {
        font-size: 0.9rem !important;
        line-height: 1.5 !important;
        margin-bottom: 1.5rem !important;
        padding: 0 1rem;
    }

    .hero-button-animate {
        margin-top: 1.5rem !important;
    }

    .hero-content-wrapper {
        text-align: left !important;
    }

    .hero-right-column {
        margin-top: 0 !important;
    }

    .home-hero-image {
        max-width: 100% !important;
        height: auto !important;
    }
}

/* Visual hierarchy and spacing consistency improvements - REDUCED FOR MOBILE */
.section-spacing-sm {
    padding: 2rem 0 !important;
}

.section-spacing-md {
    padding: 2.5rem 0 !important;
}

.section-spacing-lg {
    padding: 3rem 0 !important;
}

@media (max-width: 768px) {
    .section-spacing-sm {
        padding: 1.5rem 0 !important;
    }

    .section-spacing-md {
        padding: 2rem 0 !important;
    }

    .section-spacing-lg {
        padding: 2.5rem 0 !important;
    }
}

@media (max-width: 576px) {
    .section-spacing-sm {
        padding: 1.25rem 0 !important;
    }

    .section-spacing-md {
        padding: 1.5rem 0 !important;
    }

    .section-spacing-lg {
        padding: 2rem 0 !important;
    }
}

/* Consistent section headers */
.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-title {
    font-family: 'Montserrat', 'Inter', sans-serif;
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 1rem;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.section-subtitle {
    font-family: 'Inter', 'Montserrat', sans-serif;
    font-size: 1.125rem;
    color: #64748b;
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.6;
}

@media (max-width: 768px) {
    .section-header {
        margin-bottom: 2rem;
    }

    .section-title {
        font-size: clamp(1.5rem, 5vw, 2rem);
    }

    .section-subtitle {
        font-size: 1rem;
    }
}

/* Consistent card spacing */
.card-spacing-sm {
    gap: 1rem !important;
}

.card-spacing-md {
    gap: 1.5rem !important;
}

.card-spacing-lg {
    gap: 2rem !important;
}

/* Improved typography hierarchy */
.text-h1 {
    font-family: 'Montserrat', 'Inter', sans-serif;
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.03em;
}

.text-h2 {
    font-family: 'Montserrat', 'Inter', sans-serif;
    font-size: clamp(1.5rem, 4vw, 2.5rem);
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.text-h3 {
    font-family: 'Montserrat', 'Inter', sans-serif;
    font-size: clamp(1.25rem, 3vw, 1.875rem);
    font-weight: 600;
    line-height: 1.3;
}

.text-body-large {
    font-family: 'Inter', sans-serif;
    font-size: 1.125rem;
    line-height: 1.6;
    color: #64748b;
}

.text-body {
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    line-height: 1.6;
    color: #64748b;
}

.text-body-small {
    font-family: 'Inter', sans-serif;
    font-size: 0.875rem;
    line-height: 1.5;
    color: #6b7280;
}

/* Consistent container padding */
.container-padded {
    padding-left: 2rem !important;
    padding-right: 2rem !important;
}

@media (max-width: 768px) {
    .container-padded {
        padding-left: 1rem !important;
        padding-right: 1rem !important;
    }
}

/* Enhanced hover states and micro-interactions */
.modern-card {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.modern-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #93c5fd 0%, #60a5fa 100%);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
    z-index: 1;
}

.modern-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px -8px rgba(0, 0, 0, 0.12), 0 8px 16px -4px rgba(0, 0, 0, 0.08);
    border-color: #bfdbfe;
}

.modern-card:hover::before {
    transform: scaleX(1);
}

/* App selection card styles moved to home.css to avoid conflicts */

.btn-premium,
.btn-premium-outline {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.btn-premium::before,
.btn-premium-outline::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
}

.btn-premium:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px -8px rgba(30, 92, 170, 0.4);
    background: linear-gradient(135deg, #1d4ed8 0%, #1E5CAA 100%);
}

.btn-premium:hover::before {
    width: 300px;
    height: 300px;
}

.btn-premium-outline:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px -8px rgba(30, 92, 170, 0.3);
    background: #1E5CAA;
    border-color: #1E5CAA;
    color: #ffffff !important;
}

.product-item {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
}

.product-item:hover {
    transform: translateX(8px);
    border-color: #3b82f6;
    box-shadow: 0 4px 12px -2px rgba(59, 130, 246, 0.15);
}

.product-icon {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Icon hover effect removed */

.benefit-card-modern {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
}

.benefit-card-modern:hover {
    transform: translateY(-12px) scale(1.02);
    box-shadow: 0 24px 48px -12px rgba(0, 0, 0, 0.15);
}

.benefit-icon-wrapper {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Icon hover effect removed */

.testimonial-card-growth {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
}

.testimonial-card-growth:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 40px -12px rgba(0, 0, 0, 0.12);
}

.testimonial-card-growth img {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.testimonial-card-growth:hover img {
    transform: scale(1.05);
    box-shadow: 0 8px 16px -4px rgba(0, 0, 0, 0.1);
}

.cta-card-growth {
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
}

.cta-card-growth:hover {
    transform: translateY(-12px) scale(1.03);
    box-shadow: 0 32px 64px -16px rgba(30, 92, 170, 0.2);
}

.cta-card-growth:hover .btn-premium {
    transform: translateY(-3px);
    box-shadow: 0 12px 24px -8px rgba(30, 92, 170, 0.5);
}

.industry-card-inner {
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
}

.industry-card-inner:hover {
    transform: translateY(-12px) scale(1.03);
    box-shadow: 0 24px 48px -12px rgba(0, 0, 0, 0.15);
}

.industry-icon-wrapper {
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Icon hover effect removed */

.industry-card-link {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.industry-card-inner:hover .industry-card-link {
    transform: translateX(4px);
    color: #1d4ed8;
}

.industry-card-link svg {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.industry-card-inner:hover .industry-card-link svg {
    transform: translateX(4px);
}

/* Smooth focus states */
.btn-premium:focus,
.btn-premium-outline:focus,
.modern-card:focus,
.product-item:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(30, 92, 170, 0.3);
}

/* Loading states */
.btn-premium:active,
.btn-premium-outline:active {
    transform: translateY(0);
    transition: transform 0.1s ease;
}

/* Enhanced dropdown interactions */
.nav-dropdown-wrapper {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-link-modern:hover {
    color: #1d4ed8;
    transform: translateY(-1px);
}

.dropdown-arrow {
    transition: transform 0.15s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-dropdown-wrapper:hover .dropdown-arrow {
    transform: translateY(2px);
}

.dropdown-item-modern {
    transition: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.dropdown-item-modern::before {
    display: none !important;
    content: none !important;
}

.dropdown-item-modern:hover {
    background: transparent !important;
    color: inherit !important;
    transform: none !important;
}

.dropdown-item-modern:hover::before {
    height: 70%;
}

/* PK Contact page container paddings (override inline styles) */
.contact-hero-section .container-fluid.container-md {
    max-width: min(1200px, 100%) !important;
    padding-left: 1rem !important;
    padding-right: 1rem !important;
}

.contact-hero-section .modern-hero-heading {
    font-size: clamp(1.85rem, 5.6vw, 3rem) !important;
    line-height: 1.18 !important;
}

.contact-hero-section p {
    font-size: clamp(1rem, 2.6vw, 1.125rem) !important;
    max-width: min(600px, 100%) !important;
}

.contact-hero-section iframe {
    width: 100% !important;
    height: clamp(220px, 45vw, 320px) !important;
}

/* Features carousel sections (Home/PK/POS variants) - REDUCED SPACING */
.features-carousel-section {
    padding: 3rem 0;
    background: white;
}

@media (max-width: 768px) {
    .features-carousel-section {
        padding: 2rem 0;
    }

    .features-carousel-section .features-carousel-heading {
        font-size: 1.75rem !important;
        margin-bottom: 1rem !important;
    }
}

@media (max-width: 576px) {
    .features-carousel-section {
        padding: 1.5rem 0;
    }
}

@media (max-width: 768px) {
    .features-carousel-section .container-fluid.container-md {
        padding-left: 1rem !important;
        padding-right: 1rem !important;
    }
}

.features-carousel-section .container-fluid.container-md {
    max-width: 100%;
    margin: 0 auto;
    padding-left: 50px !important;
    padding-right: 50px !important;
}

.features-carousel-section .mb-16 {
    margin-bottom: 3rem;
}

.features-carousel-section .features-carousel-heading {
    font-family: 'Montserrat', 'Inter', sans-serif;
    font-size: 2.25rem;
    font-weight: 800;
    color: #1e293b;
    margin-bottom: 1rem;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.features-carousel-section .features-carousel-heading .premium-underline {
    color: #1E5CAA;
}

.features-carousel-section .features-carousel-subtitle {
    font-family: 'Inter', 'Montserrat', sans-serif;
    font-size: 1.125rem;
    color: #64748b;
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.6;
}

.features-carousel-section .products-carousel-wrapper {
    position: relative;
    padding: 0;
}

.features-carousel-section .products-carousel {
    overflow: hidden;
}

.features-carousel-section .products-carousel-track {
    display: flex;
    transition: transform 0.7s ease-in-out;
}

.features-carousel-section .carousel-pagination {
    position: absolute;
    bottom: -2rem;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    gap: 0.5rem;
}

@media (max-width: 768px) {
    .features-carousel-section {
        padding: 3rem 0;
    }

    .features-carousel-section .features-carousel-heading {
        font-size: 2rem;
    }

    .features-carousel-section .features-carousel-subtitle {
        font-size: 1rem;
    }

    .features-carousel-section .mb-16 {
        margin-bottom: 2rem;
    }
}

/* Industries sections (POS/PKPOS) - REDUCED SPACING */
.industries-section {
    padding: 3rem 0;
}

.industries-section .container {
    max-width: 1200px;
    margin: 0 auto;
}

@media (max-width: 768px) {
    .industries-section {
        padding: 2rem 0;
    }
}

@media (max-width: 576px) {
    .industries-section {
        padding: 1.5rem 0;
    }
}

.industries-section h2 {
    font-size: clamp(1.75rem, 4.8vw, 2.5rem) !important;
    line-height: 1.15 !important;
}

.industries-section img {
    max-width: 100%;
    height: auto;
}

@media (max-width: 575.98px) {
    .industries-section {
        padding: 3rem 0;
    }
}

/* POS/PKPOS feature sections (Why Choose / Cloud-based POS etc.) */
.features-parent-wrapper {
    overflow-x: hidden;
}

@media (max-width: 575.98px) {
    .features-parent-wrapper .container-lg {
        padding-left: 1rem !important;
        padding-right: 1rem !important;
    }

    .features-parent-wrapper .ps-5 {
        padding-left: 0 !important;
    }

    .features-parent-wrapper .pe-5 {
        padding-right: 0 !important;
    }

    .features-parent-wrapper .feature-section-sub-heading,
    .features-parent-wrapper h2 {
        font-size: clamp(1.6rem, 4.6vw, 2.1rem) !important;
        line-height: 1.2 !important;
    }
}

/* Legacy feature sections (used on Distribution and some older pages) */
@media (max-width: 575.98px) {
    .light-bg-feature-section {
        padding-left: 0 !important;
        padding-right: 0 !important;
    }

    .light-bg-feature-section .container {
        padding-left: 1rem !important;
        padding-right: 1rem !important;
    }

    .light-bg-feature-section .row {
        margin-left: 0 !important;
        margin-right: 0 !important;
    }
}

/* Ensure all content appears above background */
section,
main,
.container,
.container-fluid {
    position: relative;
    z-index: 1;
}

.modern-form .form-label {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--gray-600);
    margin-bottom: 0.35rem;
}

.modern-form .form-control {
    background: transparent;
    border: 1px solid transparent;
    border-bottom: 2px solid var(--gray-200);
    border-radius: 0;
    padding: 0.75rem 0.25rem;
    color: var(--gray-900);
    outline: none;
}

.modern-form .form-control:focus {
    border-bottom-color: var(--primary-color);
    box-shadow: none;
}

.modern-form .form-check-input {
    border-color: var(--gray-300);
}

.modern-form .form-check-input:focus {
    box-shadow: none;
    border-color: var(--primary-color);
}

.modern-form .form-check-input:checked {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

/* ========================================
   4. PREMIUM BUTTON SYSTEM
   ======================================== */
.btn-premium {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.75rem;
    font-size: 1rem;
    font-weight: 600;
    font-family: var(--font-primary);
    color: white;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-color) 50%, var(--primary-light) 100%);
    background-size: 200% 200%;
    border: none;
    border-radius: var(--radius-lg);
    text-decoration: none;
    position: relative;
    overflow: hidden;
    /* Removed default transition - only apply on hover */
    transition: none;
    cursor: pointer;
    box-shadow: 0 10px 25px -5px rgba(30, 92, 170, 0.3), 0 4px 6px -2px rgba(30, 92, 170, 0.1);
    /* Removed default animations - only animate on hover */
    animation: none;
}

.btn-premium::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    /* Removed default animation - only animate on hover */
    animation: none;
    transition: none;
}

.btn-premium:hover {
    background: linear-gradient(135deg, var(--primary-dark) 0%, #1e40af 50%, #1e3a8a 100%);
    background-size: 200% 200%;
    transform: translateY(-4px) scale(1.03);
    box-shadow: 0 20px 40px -5px rgba(30, 92, 170, 0.5), 0 10px 15px -3px rgba(30, 92, 170, 0.2);
    color: white;
    text-decoration: none;
    /* Add transition only on hover */
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-premium:active {
    transform: translateY(-1px) scale(0.98);
    box-shadow: 0 5px 15px -3px rgba(30, 92, 170, 0.3);
}

.btn-premium-outline {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.75rem;
    font-size: 1rem;
    font-weight: 600;
    font-family: var(--font-primary);
    color: var(--primary-color);
    background: white;
    border: 2px solid var(--primary-color);
    border-radius: var(--radius-lg);
    text-decoration: none;
    /* Removed default transition - only apply on hover */
    transition: none;
    cursor: pointer;
}

.btn-premium-outline:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 10px 20px -5px rgba(30, 92, 170, 0.3);
    text-decoration: none;
    /* Add transition only on hover */
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Button Animations */
@keyframes buttonPulse {

    0%,
    100% {
        box-shadow: 0 10px 25px -5px rgba(30, 92, 170, 0.3), 0 4px 6px -2px rgba(30, 92, 170, 0.1);
    }

    50% {
        box-shadow: 0 15px 35px -5px rgba(30, 92, 170, 0.4), 0 6px 10px -2px rgba(30, 92, 170, 0.15);
    }
}

@keyframes gradientShift {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

@keyframes shineSweep {
    0% {
        left: -100%;
    }

    50% {
        left: 100%;
    }

    100% {
        left: 100%;
    }
}

/* ========================================
   5. CARD COMPONENTS
   ======================================== */
.card-modern {
    background: white;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-xl);
    padding: var(--spacing-xl);
    box-shadow: var(--shadow-md);
    transition: all var(--transition-slow);
    position: relative;
    overflow: hidden;
}

.card-modern::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--secondary-color) 0%, var(--primary-lighter) 100%);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform var(--transition-base);
}

.card-modern:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
    border-color: var(--secondary-light);
}

.card-modern:hover::before {
    transform: scaleX(1);
}

/* Icon Wrapper for Cards */
.icon-wrapper {
    width: 4rem;
    height: 4rem;
    background: linear-gradient(135deg, var(--secondary-lighter) 0%, var(--secondary-light) 100%);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--spacing-lg);
    transition: all var(--transition-base);
}

/* Icon hover effect removed */

/* ========================================
   6. NAVIGATION STYLES
   ======================================== */

/*
  Permanent iOS/WebKit fix:
  - Remove ALL transparency, blur, transform, opacity, and animation
  - Force solid background color only
  - No transitions, no rgba, no backdrop-filter
  Prevents momentum scroll causing visual issues
*/
.modern-navbar {
    background: #ffffff !important;
    background-color: #ffffff !important;
    border: none !important;
    border-bottom: none !important;
    box-shadow: none !important;
    display: block !important;
    z-index: 9999 !important;
    /* Ensure topmost stacking context */
}



.mp-navbar-container {
    max-width: 100%;
    margin: 0 auto;
    padding-left: 1rem;
    padding-right: 1rem;
}

.mp-navbar-row {
    height: var(--mp-navbar-height);
}

.mp-navbar-links {
    gap: 1.75rem;
    flex-shrink: 0;
}

.mp-nav-toggle {
    padding: 8px;
}

.mp-nav-cta-btn {
    padding: 0.5rem 1.25rem;
    font-size: 0.9rem;
}

.mp-nav-cta-btn-mobile {
    padding: 0.65rem 1.25rem;
    margin-top: 0.5rem;
}

.mp-nav-cta-icon {
    width: 1.125rem;
    height: 1.125rem;
}

.modern-navbar.scrolled {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    pointer-events: auto !important;
    z-index: 1100 !important;
}

.modern-navbar.mp-nav-transparent {
    background: transparent !important;
    backdrop-filter: blur(0px) !important;
    -webkit-backdrop-filter: blur(0px) !important;
}

.modern-navbar.hidden {
    transform: translate3d(0, -110%, 0) !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

/* Ensure navbar is always clickable when visible (scrolled or not) */
.modern-navbar:not(.hidden) {
    pointer-events: auto !important;
    z-index: 1100 !important;
}

.modern-navbar:not(.hidden) *,
.modern-navbar:not(.hidden) .nav-link-modern,
.modern-navbar:not(.hidden) .nav-dropdown-wrapper,
.modern-navbar:not(.hidden) .dropdown-item-modern,
.modern-navbar:not(.hidden) .btn-premium,
.modern-navbar:not(.hidden) .navbar-brand {
    pointer-events: auto !important;
    cursor: pointer !important;
}

@media (max-width: 991.98px) {
    .modern-navbar {
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
        box-shadow: 0 10px 30px -12px rgba(15, 23, 42, 0.25) !important;
    }
}

/* Global responsive typography */
:root {
    --mp-lh-tight: 1.08;
    --mp-lh-title: 1.12;
    --mp-lh-body: 1.6;
    --mp-navbar-height: 68px;
}

/* Base headings scale (applies site-wide) */
h1,
.h1 {
    font-size: clamp(1.65rem, 4.2vw, 2.85rem) !important;
    line-height: var(--mp-lh-title) !important;
    letter-spacing: -0.02em;
}

h2,
.h2 {
    font-size: clamp(1.45rem, 3.4vw, 2.25rem) !important;
    line-height: 1.18 !important;
    letter-spacing: -0.015em;
}

h3,
.h3 {
    font-size: clamp(1.25rem, 3.0vw, 2rem) !important;
    line-height: 1.22 !important;
}

h4,
.h4 {
    font-size: clamp(1.125rem, 2.4vw, 1.5rem) !important;
    line-height: 1.25 !important;
}

h5,
.h5 {
    font-size: clamp(1rem, 2.0vw, 1.25rem) !important;
    line-height: 1.3 !important;
}

h6,
.h6 {
    font-size: clamp(0.95rem, 1.8vw, 1.1rem) !important;
    line-height: 1.35 !important;
}

/* Bootstrap display classes (often used in hero sections) */
.display-1 {
    font-size: clamp(2.2rem, 6.6vw, 4.5rem) !important;
    line-height: var(--mp-lh-tight) !important;
}

.display-2 {
    font-size: clamp(2.0rem, 6.0vw, 4.0rem) !important;
    line-height: var(--mp-lh-tight) !important;
}

.display-3 {
    font-size: clamp(1.85rem, 5.2vw, 3.4rem) !important;
    line-height: var(--mp-lh-title) !important;
}

.display-4 {
    font-size: clamp(1.7rem, 4.6vw, 3.0rem) !important;
    line-height: var(--mp-lh-title) !important;
}

/* Common project hero/title classes */
.modern-hero-heading,
.hero-title,
.section-title,
.page-title {
    font-size: clamp(1.65rem, 4.2vw, 2.85rem) !important;
    line-height: var(--mp-lh-title) !important;
    letter-spacing: -0.02em;
    font-weight: 600;
    overflow-wrap: anywhere;
    text-wrap: balance;
}

/* Ensure typewriter/auto-write words never overflow on small screens */
#typewriter-text,
.typewriter-text {
    display: inline-block;
    max-width: 100%;
    overflow-wrap: anywhere;
    word-break: break-word;
    font-size: inherit !important;
    font-size: 1em !important;
    line-height: inherit !important;
}

/* Fixed navbar offset for hero sections (prevents content hiding behind navbar) */
@media (max-width: 991.98px) {
    .modern-hero-section {
        padding-top: calc(var(--mp-navbar-height) + 1.25rem) !important;
    }
}

@media (min-width: 992px) {
    .products-hover-section .product-details-panel {
        position: sticky;
        top: calc(var(--mp-navbar-height) + 1rem);
        z-index: 2;
    }
}

@media (max-width: 991.98px) {
    .products-hover-section .product-details-column {
        display: none;
    }
}

.mp-product-details {
    text-align: center;
}

.mp-product-details__icon {
    width: 5.5rem;
    height: 5.5rem;
    border: 1px solid rgba(15, 23, 42, 0.10);
    border-radius: 1.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.25rem;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.85), rgba(248, 250, 252, 0.95));
    box-shadow: 0 14px 30px -18px rgba(15, 23, 42, 0.35);
}

.mp-product-details__icon-img {
    width: 2.75rem;
    height: 2.75rem;
    object-fit: contain;
}

.mp-product-details__title {
    font-weight: 800;
    color: #1e293b;
    margin: 0 0 0.75rem;
}

.mp-product-details__text {
    color: #475569;
    line-height: 1.7;
    margin: 0;
}

.mp-product-details__actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 1.5rem;
}

@media (hover: hover) and (pointer: fine) {
    .mp-product-details__text {
        opacity: 0;
        max-height: 0;
        overflow: hidden;
        transform: translateY(8px);
        transition: opacity 180ms ease, transform 180ms ease, max-height 220ms ease;
    }

    .mp-product-details:hover .mp-product-details__text {
        opacity: 1;
        max-height: 12rem;
        transform: translateY(0);
    }
}

@media (hover: none),
(pointer: coarse) {
    .mp-product-details__text {
        opacity: 1;
        max-height: none;
        overflow: visible;
        transform: none;
    }
}

/* Extra safety for very small phones */
@media (max-width: 360px) {

    h1,
    .h1,
    .modern-hero-heading,
    .hero-title,
    .section-title,
    .page-title,
    .display-1,
    .display-2 {
        word-break: break-word;
        hyphens: auto;
    }
}

@media (min-width: 992px) {
    .modern-navbar {
        background: #ffffff !important;
        background-color: #ffffff !important;
        border-bottom: none !important;
        box-shadow: none !important;
    }

    .modern-navbar.mp-nav-transparent {
        background: #ffffff !important;
        background-color: #ffffff !important;
        border-bottom: none !important;
        box-shadow: none !important;
    }
}

.modern-dropdown.mega-menu {
    padding: 0;
    min-width: 0;
    width: 480px;
    max-width: calc(100vw - 2rem);
    width: min(480px, calc(100vw - 2rem));
    max-height: calc(100vh - 120px);
    overflow: hidden;
    left: 50%;
    right: auto;
    transform: translateX(-50%);
    background: linear-gradient(135deg, #ffffff 0%, #fafbfc 100%);
}

.modern-dropdown.mega-menu>.p-3 {
    max-height: calc(100vh - 120px);
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
}

.modern-dropdown.mega-menu>.p-3>ul {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
    margin: 0;
    padding: 0;
}

/* Remove right border from dropdown items in mega menu */
.modern-dropdown.mega-menu .dropdown-item-modern,
.modern-dropdown.mega-menu>.p-3>ul>li,
.modern-dropdown.mega-menu>.p-3>ul>li>a {
    border-right: none !important;
    border-left: none !important;
}

@media (max-width: 991.98px) {
    .modern-dropdown.mega-menu>.p-3>ul {
        grid-template-columns: 1fr;
    }
}

.modern-dropdown.mega-menu>.p-3::-webkit-scrollbar {
    width: 10px;
}

.modern-dropdown.mega-menu>.p-3::-webkit-scrollbar-track {
    background: transparent;
}

.modern-dropdown.mega-menu>.p-3::-webkit-scrollbar-thumb {
    background: rgba(15, 23, 42, 0.12);
    border-radius: 999px;
    border: 3px solid transparent;
    background-clip: content-box;
}

.modern-dropdown.mega-menu>.p-3::-webkit-scrollbar-thumb:hover {
    background: rgba(15, 23, 42, 0.18);
    border: 3px solid transparent;
    background-clip: content-box;
}

.modern-dropdown.mega-menu .row {
    margin: 0;
}

.modern-dropdown.mega-menu .col-lg-6 {
    border-bottom: 1px solid rgba(15, 23, 42, 0.08);
}

.modern-dropdown.mega-menu .col-lg-6:last-child {
    border-bottom: none;
}

.dropdown-section-title {
    font-size: 0.8125rem;
    font-weight: 700;
    color: var(--gray-500);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin: 0 0 0.75rem 0;
}

/* Navigation Links */
.nav-link-modern {
    color: var(--gray-900);
    font-weight: 500;
    font-size: 0.9375rem;
    text-decoration: none;
    transition: all var(--transition-base);
    position: relative;
    padding: 0.5rem 0;
}

.nav-link-modern:hover {
    color: var(--primary-color);
}

.modern-navbar .btn-premium,
.modern-navbar .btn-premium:hover,
.modern-navbar .btn-premium:focus,
.modern-navbar .btn-premium:active {
    color: white !important;
}

.modern-navbar .btn-premium span {
    color: inherit !important;
}

/* Responsive Sign Up button in navbar */
.modern-navbar .btn-premium {
    padding: clamp(0.5rem, 1.2vw, 0.6rem) clamp(1rem, 2.5vw, 1.5rem) !important;
    font-size: clamp(0.8125rem, 1.8vw, 0.9375rem) !important;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.modern-navbar .btn-premium svg {
    width: clamp(0.875rem, 1.5vw, 1.125rem) !important;
    height: clamp(0.875rem, 1.5vw, 1.125rem) !important;
    flex-shrink: 0;
    /* Ensure no box/background around arrow icon */
    background: transparent !important;
    background-color: transparent !important;
    box-shadow: none !important;
    border: none !important;
    outline: none !important;
    border-radius: 0 !important;
    padding: 0 !important;
}

/* Mobile adjustments for navbar buttons */
@media (max-width: 991.98px) {
    .modern-navbar .btn-premium {
        padding: 0.5rem 1rem !important;
        font-size: 0.8125rem !important;
    }

    .modern-navbar .btn-premium svg {
        width: 0.875rem !important;
        height: 0.875rem !important;
    }
}

@media (max-width: 575.98px) {
    .modern-navbar .btn-premium {
        padding: 0.4375rem 0.875rem !important;
        font-size: 0.75rem !important;
    }

    .modern-navbar .btn-premium svg {
        width: 0.75rem !important;
        height: 0.75rem !important;
    }
}

.modern-navbar .mp-nav-login-btn {
    border: 2px solid rgba(30, 92, 170, 0.75) !important;
    background: transparent !important;
    color: var(--primary-color) !important;
    border-radius: 999px !important;
    box-shadow: none !important;
    line-height: 1;
    transition: transform var(--transition-base), box-shadow var(--transition-base), background-color var(--transition-base), border-color var(--transition-base), color var(--transition-base);
}

.modern-navbar .mp-nav-login-btn:hover {
    border-color: var(--primary-color) !important;
    background: rgba(30, 92, 170, 0.08) !important;
    color: var(--primary-color) !important;
    transform: translateY(-2px);
    box-shadow: 0 12px 24px -18px rgba(15, 23, 42, 0.55) !important;
}

.modern-navbar .mp-nav-login-btn span {
    color: inherit !important;
}

.modern-navbar .mp-nav-login-btn:active {
    transform: translateY(-1px);
}

.modern-navbar .mp-nav-login-btn:focus-visible {
    outline: 3px solid rgba(30, 92, 170, 0.30);
    outline-offset: 3px;
}

.nav-link-modern:focus-visible {
    outline: 2px solid rgba(37, 99, 235, 0.45);
    outline-offset: 4px;
    border-radius: 10px;
}

.nav-link-modern::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: width var(--transition-base);
}

.nav-link-modern:hover::after {
    width: 100%;
}

.dropdown-arrow {
    transition: transform 180ms ease;
}

[aria-expanded="true"] .dropdown-arrow {
    transform: rotate(180deg);
}

/* Mobile Navigation */
.nav-link-mobile {
    padding: 0.75rem 0;
    font-size: 1rem;
    font-weight: 500;
    color: var(--gray-700);
    text-decoration: none;
    transition: color var(--transition-base);
}

.nav-link-mobile:hover {
    color: var(--primary-color);
}

.mobile-nav-section-btn {
    padding: 0.75rem 0;
    font-size: 1rem;
    font-weight: 600;
    color: var(--gray-900);
    background: transparent;
    border: 0;
    box-shadow: none;
}

.accordion-button.mobile-nav-section-btn {
    border-radius: 12px;
}

.accordion-button.mobile-nav-section-btn:not(.collapsed) {
    color: var(--gray-900);
    background: rgba(37, 99, 235, 0.06);
}

.accordion-button.mobile-nav-section-btn::after {
    opacity: 0.9;
}

.mobile-nav-sub {
    padding-left: 0.25rem;
}

@media (max-width: 991.98px) {
    #mobileNavbar {
        background: rgba(255, 255, 255, 0.96);
        border-radius: 16px;
        margin-top: 0.75rem;
        padding: 0.75rem 1rem;
        box-shadow: 0 30px 80px -50px rgba(15, 23, 42, 0.65);
        border: 1px solid rgba(15, 23, 42, 0.08);
    }
}

.mobile-nav-section-btn:focus {
    box-shadow: none;
}

.mobile-nav-section-btn::after {
    transform: scale(0.9);
}

.mobile-nav-sub .nav-link-mobile {
    padding: 0.5rem 0;
    font-weight: 500;
}

.accordion-item {
    background: transparent;
}

/* Cookie Consent Banner */
.cookie-consent-overlay {
    position: fixed;
    top: auto;
    left: 0;
    right: 0;
    bottom: 0;
    background: transparent;
    backdrop-filter: none;
    z-index: 1040;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding: 1rem;
    animation: fadeIn 0.3s ease-in-out;
    pointer-events: none;
}

.cookie-consent-container {
    width: 100%;
    max-width: 720px;
    margin: 0;
}

.cookie-consent-content {
    background: #ffffff;
    border-radius: 16px;
    pointer-events: auto;
    box-shadow: 0 18px 45px -20px rgba(15, 23, 42, 0.45);
}

.cookie-consent-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.5rem 1.5rem 1rem 1.5rem;
    border-bottom: 1px solid #e5e7eb;
}

.cookie-consent-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #111827;
    margin: 0;
    line-height: 1.5;
}

.cookie-consent-close {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    color: #6b7280;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.cookie-consent-close:hover {
    background: #f3f4f6;
    color: #111827;
}

.cookie-consent-body {
    padding: 1.5rem;
}

.cookie-consent-text {
    font-size: 0.875rem;
    line-height: 1.6;
    color: #374151;
    margin: 0 0 1.5rem 0;
}

.cookie-consent-actions {
    display: flex;
    gap: 0.75rem;
    justify-content: flex-end;
    flex-wrap: wrap;
}

.cookie-btn {
    padding: 0.625rem 1.25rem;
    font-size: 0.875rem;
    font-weight: 600;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.cookie-btn-primary {
    background: linear-gradient(135deg, #1E5CAA 0%, #2563eb 100%);
    color: #ffffff;
    box-shadow: 0 4px 6px -1px rgba(30, 92, 170, 0.3);
}

.cookie-btn-primary:hover {
    background: linear-gradient(135deg, #174a85 0%, #1d4ed8 100%);
    box-shadow: 0 6px 8px -1px rgba(30, 92, 170, 0.4);
    transform: none !important;
}

.cookie-btn-secondary {
    background: #f3f4f6;
    color: #374151;
    border: 1px solid #e5e7eb;
}

.cookie-btn-secondary:hover {
    background: #e5e7eb;
    color: #111827;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@media (max-width: 640px) {
    .cookie-consent-content {
        border-radius: 12px;
    }

    .cookie-consent-header {
        padding: 1.25rem 1.25rem 0.75rem 1.25rem;
    }

    .cookie-consent-body {
        padding: 1.25rem;
    }

    .cookie-consent-actions {
        flex-direction: column-reverse;
    }

    .cookie-btn {
        width: 100%;
    }
}

/* Dropdown Styles */
.nav-dropdown-wrapper {
    position: relative;
}

.modern-dropdown {
    position: absolute;
    top: calc(100% + 5px);
    left: 0;
    min-width: 320px;
    background: white;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    padding: 0.75rem;
    margin-top: 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-5px);
    transition: opacity 0.15s cubic-bezier(0.4, 0, 0.2, 1),
        visibility 0.15s cubic-bezier(0.4, 0, 0.2, 1),
        transform 0.15s cubic-bezier(0.4, 0, 0.2, 1);
    list-style: none;
    z-index: 1000;
    pointer-events: none;
}

.modern-dropdown.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
}

.modern-dropdown,
.modern-dropdown.mega-menu {
    border: 1px solid rgba(15, 23, 42, 0.08);
    box-shadow: 0 26px 70px -40px rgba(15, 23, 42, 0.55);
}

/* Create invisible bridge to prevent gap issues - connects trigger to dropdown */
.nav-dropdown-wrapper::after {
    content: '';
    position: absolute;
    top: 100%;
    left: -20px;
    right: -20px;
    height: 10px;
    background: transparent;
    z-index: 999;
    pointer-events: auto;
}

/* Make sure the bridge area keeps dropdown open */
.nav-dropdown-wrapper::after:hover+.modern-dropdown,
.nav-dropdown-wrapper:hover .modern-dropdown,
.nav-dropdown-wrapper .modern-dropdown:hover {
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
    transform: translateY(0) !important;
    pointer-events: auto !important;
}

.nav-dropdown-wrapper:hover .modern-dropdown.mega-menu,
.nav-dropdown-wrapper[aria-expanded="true"] .modern-dropdown.mega-menu,
[aria-expanded="true"]+.modern-dropdown.mega-menu,
.modern-dropdown.mega-menu.show {
    transform: translate3d(-50%, 0, 0) !important;
}

/* Ensure dropdown stays open when hovering over it or the bridge */
.nav-dropdown-wrapper:hover .modern-dropdown,
.modern-dropdown:hover,
.modern-dropdown.show,
.nav-dropdown-wrapper::before:hover+.modern-dropdown {
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
    transform: translateY(0) !important;
    pointer-events: auto !important;
}

/* Fix for Bootstrap dropdown toggle */
[data-bs-toggle="dropdown"]:focus+.modern-dropdown,
[data-bs-toggle="dropdown"][aria-expanded="true"]+.modern-dropdown {
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
    transform: translateY(0) !important;
    pointer-events: auto !important;
}

.modern-dropdown li {
    list-style: none;
    margin: 0;
    padding: 0;
}

.dropdown-item-modern {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem 1.125rem;
    border-radius: 12px;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    color: var(--gray-700);
    width: 100%;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    border: none !important;
}

.dropdown-item-modern::before {
    display: none !important;
    content: none !important;
}

/* Dropdown item hover effect - clean and professional */
.dropdown-item-modern:hover {
    background: #f1f5f9 !important;
    color: #1E5CAA !important;
    transform: none !important;
    border-color: transparent !important;
    box-shadow: none !important;
}

.dropdown-item-modern:hover::before {
    display: none !important;
}

/* Ensure dropdown items have proper hover */
.modern-dropdown li:hover .dropdown-item-modern {
    background: #f1f5f9 !important;
    color: #1E5CAA !important;
}

.dropdown-icon {
    flex-shrink: 0;
    width: 2.75rem;
    height: 2.75rem;
    background: transparent !important;
    background-color: transparent !important;
    background-image: none !important;
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
    border-radius: 0 !important;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    transition: none !important;
}

/* Icon hover effect removed */

/* Dropdown icons should NOT change on hover */
.dropdown-item-modern:hover .dropdown-icon,
.dropdown-icon:hover {
    background: transparent !important;
    background-color: transparent !important;
    background-image: none !important;
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
}

.dropdown-content {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

/* Nested Dropdown Submenu Styles */
.dropdown-submenu-wrapper {
    position: relative;
}

.dropdown-submenu {
    position: absolute;
    left: calc(100% + 8px);
    top: 0;
    min-width: 220px;
    background: white;
    border-radius: var(--radius-lg);
    box-shadow: 0 26px 70px -40px rgba(15, 23, 42, 0.55);
    padding: 0.5rem;
    margin-top: 0;
    opacity: 0;
    visibility: hidden;
    transform: translateX(-10px);
    transition: opacity 0.2s cubic-bezier(0.4, 0, 0.2, 1),
        visibility 0.2s cubic-bezier(0.4, 0, 0.2, 1),
        transform 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    list-style: none;
    z-index: 1100;
    pointer-events: none;
    border: 1px solid rgba(15, 23, 42, 0.08);
    white-space: nowrap;
}

/* Show submenu on hover */
.dropdown-submenu-wrapper:hover .dropdown-submenu {
    opacity: 1 !important;
    visibility: visible !important;
    transform: translateX(0) !important;
    pointer-events: auto !important;
    display: block !important;
}

/* Keep submenu visible when hovering over it */
.dropdown-submenu:hover {
    opacity: 1 !important;
    visibility: visible !important;
    transform: translateX(0) !important;
    pointer-events: auto !important;
    display: block !important;
}

.dropdown-submenu li {
    list-style: none;
    margin: 0;
    padding: 0;
}

.dropdown-submenu .dropdown-item-modern {
    padding: 0.625rem 0.75rem;
    font-size: 0.875rem;
    white-space: nowrap;
}

/* Adjust arrow rotation for submenu items */
.dropdown-submenu-wrapper .dropdown-arrow {
    transform: rotate(-90deg);
    transition: transform 0.15s ease;
}

.dropdown-submenu-wrapper:hover .dropdown-arrow {
    transform: rotate(-90deg) scale(1.1);
}

@media (min-width: 992px) {
    .modern-dropdown.mega-menu {
        position: absolute;
        overflow: hidden;
        width: min(600px, calc(100vw - 2rem));
    }

    .modern-dropdown.mega-menu>.p-3 {
        padding: 1.25rem !important;
    }

    .modern-dropdown.mega-menu>.p-3>ul {
        margin: 0;
        padding: 0;
        width: 100%;
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 0.5rem;
    }

    .modern-dropdown.mega-menu>.p-3>ul>li {
        display: block;
    }

    /* Improve dropdown item styling in mega menu */
    .modern-dropdown.mega-menu .dropdown-item-modern {
        padding: 0.875rem 1rem;
        margin-bottom: 0;
        border-radius: 10px;
        transition: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
    }

    .modern-dropdown.mega-menu .dropdown-item-modern:hover {
        background: linear-gradient(135deg, rgba(59, 130, 246, 0.08) 0%, rgba(147, 197, 253, 0.1) 100%);
        transform: translateY(-2px);
    }

    /* POS submenu integrated into grid - spans full width */
    .modern-dropdown.mega-menu .dropdown-submenu-wrapper {
        grid-column: 1 / -1;
        position: relative;
    }

    .modern-dropdown.mega-menu .dropdown-submenu-wrapper>.dropdown-item-modern {
        background: transparent;
        border: 1px solid transparent;
        margin-bottom: 0.5rem;
        transition: all 0.2s ease;
    }

    .modern-dropdown.mega-menu .dropdown-submenu-wrapper:hover>.dropdown-item-modern {
        background: linear-gradient(135deg, rgba(59, 130, 246, 0.04) 0%, rgba(147, 197, 253, 0.06) 100%);
        border: 1px solid rgba(59, 130, 246, 0.1);
    }

    .modern-dropdown.mega-menu .dropdown-submenu {
        position: static;
        display: none;
        grid-template-columns: repeat(2, 1fr);
        gap: 0.5rem;
        width: 100%;
        min-width: 0;
        margin: 0;
        padding: 0;
        border-radius: 10px;
        border: 1px solid rgba(59, 130, 246, 0.08);
        box-shadow: inset 0 1px 3px rgba(59, 130, 246, 0.06);
        background: linear-gradient(135deg, rgba(250, 251, 252, 0.8) 0%, rgba(248, 250, 252, 0.9) 100%);
        opacity: 0;
        max-height: 0;
        overflow: hidden;
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        white-space: normal;
    }

    /* POS panel items styling */
    .modern-dropdown.mega-menu .dropdown-submenu .dropdown-item-modern {
        padding: 0.75rem 0.875rem;
        margin-bottom: 0;
        background: white;
        border-radius: 8px;
        font-size: 0.875rem;
        border: 1px solid rgba(15, 23, 42, 0.06);
    }

    .modern-dropdown.mega-menu .dropdown-submenu .dropdown-item-modern:hover {
        background: linear-gradient(135deg, rgba(59, 130, 246, 0.08) 0%, rgba(147, 197, 253, 0.1) 100%);
        transform: translateY(-2px);
        border-color: rgba(59, 130, 246, 0.15);
    }

    /* Arrow indicator for POS - point down since submenu is below */
    .modern-dropdown.mega-menu .dropdown-submenu-wrapper .dropdown-arrow {
        transform: rotate(90deg);
        opacity: 0.7;
        transition: all 0.15s ease;
    }

    .modern-dropdown.mega-menu .dropdown-submenu-wrapper:hover .dropdown-arrow {
        opacity: 1;
        transform: rotate(90deg) translateX(2px);
    }

    /* Show submenu on hover in mega-menu */
    .modern-dropdown.mega-menu .dropdown-submenu-wrapper:hover .dropdown-submenu {
        display: grid;
        opacity: 1;
        max-height: 500px;
        padding: 0.75rem;
    }
}

.dropdown-title {
    font-weight: 600;
    font-size: 0.9375rem;
    color: var(--gray-900);
    white-space: nowrap;
    transition: color 0.3s ease;
    letter-spacing: -0.01em;
}

.dropdown-item-modern:hover .dropdown-title {
    color: var(--primary-color);
}

.dropdown-desc {
    font-size: 0.8125rem;
    color: var(--gray-500);
    line-height: 1.4;
}

.dropdown-arrow {
    transition: transform 0.15s cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-block;
    margin-left: 4px;
    transform-origin: center;
    will-change: transform;
}

.nav-dropdown-wrapper:hover .dropdown-arrow,
[aria-expanded="true"] .dropdown-arrow,
.nav-dropdown-wrapper[aria-expanded="true"] .dropdown-arrow {
    transform: rotate(180deg);
}

/* ========================================
   7. NAVIGATION ANIMATIONS
   ======================================== */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.header-logo-animated {
    animation: fadeInDown 0.8s ease-out;
}

.nav-item-animated {
    animation: slideInRight 0.6s ease-out both;
}

.nav-item-animated:nth-child(1) {
    animation-delay: 0.1s;
}

.nav-item-animated:nth-child(2) {
    animation-delay: 0.2s;
}

.nav-item-animated:nth-child(3) {
    animation-delay: 0.3s;
}

.nav-item-animated:nth-child(4) {
    animation-delay: 0.4s;
}

.nav-item-animated:nth-child(5) {
    animation-delay: 0.5s;
}

.nav-item-animated:nth-child(6) {
    animation-delay: 0.6s;
}

/* ========================================
   8. SCROLL ANIMATIONS
   ======================================== */
.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in-up.animated {
    opacity: 1;
    transform: translateY(0);
}

.fade-in {
    opacity: 0;
    transition: opacity 0.8s ease-out;
}

.fade-in.animated {
    opacity: 1;
}

.slide-in-left {
    opacity: 0;
    transform: translateX(-50px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.slide-in-left.animated {
    opacity: 1;
    transform: translateX(0);
}

.slide-in-right {
    opacity: 0;
    transform: translateX(50px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.slide-in-right.animated {
    opacity: 1;
    transform: translateX(0);
}

.scale-in {
    opacity: 0;
    transform: scale(0.9);
    transition: opacity 0.5s ease-out, transform 0.5s ease-out;
}

.scale-in.animated {
    opacity: 1;
    transform: scale(1);
}

/* ========================================
   8.1. SCROLL DIRECTION ANIMATIONS
   ======================================== */
/* Base state for all sections - will be set by JS, but provide fallback */
section:not(.no-scroll-animate),
.scroll-animate {
    transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1),
        transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: opacity, transform;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    perspective: 1000px;
    -webkit-perspective: 1000px;
}

/* Prevent animation on first load for hero section */
section:first-of-type {
    opacity: 1 !important;
    transform: none !important;
}

/* Scroll Down Animation - Elements slide up from bottom */
.scroll-down-enter {
    opacity: 0 !important;
    transform: translate3d(0, 50px, 0) !important;
}

.scroll-down-enter-active {
    opacity: 1 !important;
    transform: translate3d(0, 0, 0) !important;
    transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1),
        transform 0.6s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.scroll-down-enter-done {
    opacity: 1 !important;
    transform: translate3d(0, 0, 0) !important;
    will-change: auto;
}

/* Scroll Up Animation - Elements slide down from top */
.scroll-up-enter {
    opacity: 0 !important;
    transform: translate3d(0, -50px, 0) !important;
}

.scroll-up-enter-active {
    opacity: 1 !important;
    transform: translate3d(0, 0, 0) !important;
    transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1),
        transform 0.6s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.scroll-up-enter-done {
    opacity: 1 !important;
    transform: translate3d(0, 0, 0) !important;
    will-change: auto;
}

.mp-reveal {
    opacity: 0;
    transform: translate3d(0, 18px, 0);
    transition: opacity 520ms cubic-bezier(0.16, 1, 0.3, 1),
        transform 520ms cubic-bezier(0.16, 1, 0.3, 1);
    will-change: opacity, transform;
}

.mp-reveal.mp-reveal--from-top {
    transform: translate3d(0, -18px, 0);
}

.mp-reveal.mp-reveal--visible {
    opacity: 1;
    transform: translate3d(0, 0, 0);
    will-change: auto;
}

@media (prefers-reduced-motion: reduce) {
    .mp-reveal {
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
        will-change: auto !important;
    }
}

/* Staggered animations for child elements */
.scroll-animate-child {
    opacity: 0;
    transform: translate3d(0, 20px, 0);
    transition: opacity 0.5s cubic-bezier(0.16, 1, 0.3, 1),
        transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: opacity, transform;
    backface-visibility: hidden;
}

.scroll-animate-child.animated {
    opacity: 1;
    will-change: auto;
}

/* Animation delays for staggered effect */
.scroll-animate-child:nth-child(1) {
    transition-delay: 0.05s;
}

.scroll-animate-child:nth-child(2) {
    transition-delay: 0.1s;
}

.scroll-animate-child:nth-child(3) {
    transition-delay: 0.15s;
}

.scroll-animate-child:nth-child(4) {
    transition-delay: 0.2s;
}

.scroll-animate-child:nth-child(5) {
    transition-delay: 0.25s;
}

.scroll-animate-child:nth-child(6) {
    transition-delay: 0.3s;
}

.scroll-animate-child:nth-child(7) {
    transition-delay: 0.35s;
}

.scroll-animate-child:nth-child(8) {
    transition-delay: 0.4s;
}

/* Fade in from sides for variety */
.scroll-fade-left {
    opacity: 0;
    transform: translate3d(-30px, 0, 0);
    transition: opacity 0.5s cubic-bezier(0.16, 1, 0.3, 1),
        transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: opacity, transform;
    backface-visibility: hidden;
}

.scroll-fade-left.animated {
    opacity: 1;
    transform: translate3d(0, 0, 0);
    will-change: auto;
}

.scroll-fade-right {
    opacity: 0;
    transform: translate3d(30px, 0, 0);
    transition: opacity 0.5s cubic-bezier(0.16, 1, 0.3, 1),
        transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: opacity, transform;
    backface-visibility: hidden;
}

.scroll-fade-right.animated {
    opacity: 1;
    transform: translate3d(0, 0, 0);
    will-change: auto;
}

/* Scale animation */
.scroll-scale {
    opacity: 0;
    transform: scale3d(0.96, 0.96, 1);
    transition: opacity 0.5s cubic-bezier(0.16, 1, 0.3, 1),
        transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: opacity, transform;
    backface-visibility: hidden;
}

.scroll-scale.animated {
    opacity: 1;
    transform: scale3d(1, 1, 1);
    will-change: auto;
}

/* Rotate fade animation */
.scroll-rotate {
    opacity: 0;
    transform: rotate(-3deg) scale3d(0.96, 0.96, 1);
    transition: opacity 0.5s cubic-bezier(0.16, 1, 0.3, 1),
        transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: opacity, transform;
    backface-visibility: hidden;
}

.scroll-rotate.animated {
    opacity: 1;
    transform: rotate(0deg) scale3d(1, 1, 1);
    will-change: auto;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-10px);
    }
}

.float-animation {
    animation: float 3s ease-in-out infinite;
}

/* ========================================
   9. BACKGROUND ELEMENTS
   ======================================== */
.hero-gradient-orb {
    position: fixed;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.3;
    animation: orbFloat 20s ease-in-out infinite;
    z-index: -1;
    pointer-events: none;
}

.hero-orb-1 {
    width: 500px;
    height: 500px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-lighter));
    top: -200px;
    right: -200px;
    animation-delay: 0s;
}

.hero-orb-2 {
    width: 400px;
    height: 400px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-lighter));
    bottom: -150px;
    left: -150px;
    animation-delay: 5s;
}

.hero-orb-3 {
    width: 300px;
    height: 300px;
    background: linear-gradient(135deg, #8b5cf6, #a78bfa);
    top: 50%;
    left: 50%;
    animation: orbFloat3 20s ease-in-out infinite;
    animation-delay: 10s;
}

@keyframes orbFloat {

    0%,
    100% {
        transform: translate(0, 0) scale(1);
    }

    33% {
        transform: translate(30px, -30px) scale(1.1);
    }

    66% {
        transform: translate(-20px, 20px) scale(0.9);
    }
}

@keyframes orbFloat3 {

    0%,
    100% {
        transform: translate(-50%, -50%) translate(0, 0) scale(1);
    }

    33% {
        transform: translate(-50%, -50%) translate(30px, -30px) scale(1.1);
    }

    66% {
        transform: translate(-50%, -50%) translate(-20px, 20px) scale(0.9);
    }
}

/* ========================================
   10. PREMIUM UNDERLINE DECORATION
   ======================================== */
.premium-underline {
    position: relative;
    display: inline-block;
    z-index: 1;
}

.premium-underline::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -6px;
    width: 100%;
    height: 12px;
    background-image: url("data:image/svg+xml,%3Csvg width='330' height='12' viewBox='0 0 330 12' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M2 9.42302C32.0673 4.24443 62.4088 2.65171 92.6841 3.29298C126.852 4.01673 160.912 7.02554 194.949 9.38914C237.957 12.3756 281.365 10.9754 324.032 6.00244' stroke='%232563eb' stroke-width='3' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-size: 100% 100%;
    opacity: 0.7;
    z-index: -1;
}

/* ========================================
   11. MODERN SCROLLBAR
   ======================================== */
::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

::-webkit-scrollbar-track {
    background: var(--gray-100);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, var(--primary-color), var(--primary-lighter));
    border-radius: 10px;
    border: 2px solid var(--gray-100);
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, var(--primary-dark), var(--primary-light));
}

/* Firefox Scrollbar */
* {
    scrollbar-width: thin;
    scrollbar-color: var(--primary-color) var(--gray-100);
}

/* ========================================
   12. FOOTER STYLES
   ======================================== */
.modern-footer {
    position: relative;
    overflow: hidden;
    font-family: var(--font-primary);
    background: #000000 !important;
    background-image: none !important;
    color: #f8fafc;
    padding: 5rem 0 2rem 0;
    margin-top: auto;
    visibility: visible !important;
    opacity: 1 !important;
    display: block !important;
    z-index: 10 !important;
}

.modern-footer-container {
    max-width: 95%;
    margin: 0 auto;
    padding-left: 2rem;
    padding-right: 2rem;
}

.footer-main-row {
    margin-bottom: 4rem;
}

.footer-content {
    position: relative;
    z-index: 1;
    visibility: visible !important;
    opacity: 1 !important;
}

/* Ensure all footer elements are visible */
.modern-footer * {
    visibility: visible !important;
}

.modern-footer .footer-heading,
.modern-footer .footer-text,
.modern-footer .footer-link,
.modern-footer .footer-description {
    opacity: 1 !important;
    visibility: visible !important;
}

.footer-brand-link {
    text-decoration: none;
    display: inline-block;
}

.footer-logo-img {
    max-height: 45px;
    width: 150px;
    height: auto;
    margin-bottom: 1.5rem;
    display: block !important;
}

/* Ensure SVG logos display properly */
.footer-logo-img[src*=".svg"],
.footer-logo-img[src$=".svg"] {
    max-height: 45px;
    width: 150px;
    height: auto;
    display: block !important;
}

/* PNG logos - original filter */
.footer-logo-img[src$=".png"] {
    filter: brightness(0) invert(1);
}

.footer-heading {
    font-family: 'Montserrat', 'Inter', sans-serif;
    font-size: 1.1rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 1.5rem;
    letter-spacing: -0.01em;
}

.footer-text {
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
    color: #94a3b8;
    line-height: 1.7;
}

.footer-description {
    max-width: 350px;
    margin-bottom: 2rem;
}

.footer-link {
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
    color: #cbd5e1;
    text-decoration: none;
    transition: none;
    display: inline-block;
}

.footer-link:hover {
    color: inherit !important;
    transform: none !important;
    text-decoration: none !important;
}

.modern-footer a:hover,
.modern-footer .footer-link:hover {
    color: inherit !important;
    transform: none !important;
    text-decoration: none !important;
}

footer a:hover,
footer .footer-link:hover {
    color: inherit !important;
    transform: none !important;
    text-decoration: none !important;
}

.border-top-glass {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.social-icon-pro {
    width: 2.75rem;
    height: 2.75rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    color: #94a3b8;
}

/* Icon hover effect removed */

.contact-item-pro {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.contact-icon-box {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    background: rgba(59, 130, 246, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #60a5fa;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

/* Icon hover effect removed */

.footer-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.15;
    z-index: 0;
    pointer-events: none;
    animation: footerOrbFloat 20s infinite ease-in-out;
}

.footer-orb-1 {
    top: -100px;
    left: -100px;
    width: 400px;
    height: 400px;
    background: #3b82f6;
    animation-delay: 0s;
}

.footer-orb-2 {
    bottom: -100px;
    right: -100px;
    width: 500px;
    height: 500px;
    background: #6366f1;
    animation-delay: -5s;
}

.footer-orb-3 {
    top: 40%;
    left: 40%;
    width: 300px;
    height: 300px;
    background: #0ea5e9;
    animation-delay: -10s;
    opacity: 0.1;
}

@keyframes footerOrbFloat {

    0%,
    100% {
        transform: translate(0, 0) scale(1);
    }

    33% {
        transform: translate(30px, -50px) scale(1.1);
    }

    66% {
        transform: translate(-20px, 20px) scale(0.9);
    }
}

.social-icon svg {
    transition: fill var(--transition-base);
}

/* Icon hover effect removed */

/* ========================================
   12.5. SIGNUP SUCCESS PAGE (scoped)
   ======================================== */

/* Signup Success Layout */
body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* Hide tracking images that might affect layout */
img[src*="capterra_tracker"],
img[src*="capterra.com"] {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    opacity: 0 !important;
    pointer-events: none !important;
    left: -9999px !important;
    top: -9999px !important;
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
    display: block !important;
    visibility: hidden !important;
    z-index: -9999 !important;
}

.signup-success-main {
    flex: 1;
    width: 100%;
    min-height: auto;
    display: flex;
    flex-direction: column;
    padding-top: 0;
    margin-top: 0;
}

/* Modern Header for Signup Success */
.signup-success-header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(229, 231, 235, 0.5);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
    height: auto;
    min-height: auto;
}

.signup-success-header .navbar {
    padding: 0.75rem 0;
    min-height: auto;
}

.signup-success-header .header-logo,
.signup-success-header .header-logoo {
    transition: transform 0.3s ease;
    height: 50px;
}

.signup-success-header .header-logoo {
    height: 40px;
}

.signup-success-header .header-logo:hover,
.signup-success-header .header-logoo:hover {
    transform: scale(1.05);
}

/* Modern Footer for Signup Success */
.signup-success-footer {
    background: linear-gradient(135deg, #1f2937 0%, #111827 100%);
    color: white;
    padding: 3rem 0 2rem;
    margin-top: auto;
}

.signup-success-footer .container-fluid.container-md {
    max-width: 100%;
    margin: 0 auto;
    padding-left: 50px !important;
    padding-right: 50px !important;
}

@media (max-width: 768px) {
    .signup-success-footer .container-fluid.container-md {
        padding-left: 1rem !important;
        padding-right: 1rem !important;
    }
}

.signup-success-footer .footer-logo {
    margin-bottom: 1.5rem;
    height: 45px;
}

.signup-success-footer .footer-heading {
    color: white;
    font-weight: 600;
    margin-bottom: 1.5rem;
    font-size: 1.125rem;
    font-family: 'Montserrat', 'Inter', sans-serif;
}

.signup-success-footer .footer-description {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.7;
    max-width: 300px;
    margin-bottom: 0;
}

.signup-success-footer .footer-contact {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.7;
    margin-bottom: 0.5rem;
}

.signup-success-footer .footer-link {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    transition: none;
}

.signup-success-footer .footer-link:hover {
    color: white;
}

.signup-success-footer .social-icons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 1.5rem;
}

.signup-success-footer .social-icons a {
    transition: transform 0.3s ease, opacity 0.3s ease;
    display: inline-block;
}

/* Icon hover effect removed */

.signup-success-footer .social-icons a img {
    width: 32px;
    height: 32px;
    transition: all 0.3s ease;
}

.signup-success-footer .footer-copyright-row {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.signup-success-footer .footer-copyright {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.875rem;
    margin: 0;
}

/* Signup Success Section */
.mp-signup-success {
    width: 100% !important;
    min-height: 100% !important;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

.mp-signup-success .signup-success-section {
    min-height: calc(100vh - 120px) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 0 0 4rem 0 !important;
    padding-top: 0 !important;
    position: relative !important;
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 25%, #f9fafb 50%, #f3f4f6 75%, #e5e7eb 100%) !important;
    overflow: hidden !important;
    width: 100% !important;
    visibility: visible !important;
    opacity: 1 !important;
    margin-top: 0 !important;
}

.mp-signup-success .signup-success-section .container-fluid.container-md {
    max-width: 100% !important;
    margin: 0 auto !important;
    padding-left: 50px !important;
    padding-right: 50px !important;
    padding-top: 3rem !important;
    padding-bottom: 2rem !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    width: 100% !important;
    position: relative !important;
    z-index: 1 !important;
    visibility: visible !important;
    opacity: 1 !important;
    margin-top: 0 !important;
}

.mp-signup-success .signup-success-section .container-fluid.container-md {
    max-width: 100% !important;
    margin: 0 auto !important;
    padding-left: 50px !important;
    padding-right: 50px !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    width: 100% !important;
    position: relative !important;
    z-index: 1 !important;
    visibility: visible !important;
    opacity: 1 !important;
}

@media (max-width: 768px) {
    .mp-signup-success .signup-success-section {
        padding: 0 0 3rem 0 !important;
        padding-top: 0 !important;
        min-height: calc(100vh - 100px) !important;
    }

    .mp-signup-success .signup-success-section .container-fluid.container-md {
        padding-left: 1rem !important;
        padding-right: 1rem !important;
        padding-top: 2rem !important;
        padding-bottom: 1.5rem !important;
    }
}

/* Animated Background Orbs */
.mp-signup-success .signup-success-section::before {
    content: '';
    position: absolute;
    top: -40%;
    right: -15%;
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(30, 92, 170, 0.15) 0%, rgba(59, 130, 246, 0.08) 40%, transparent 70%);
    border-radius: 50%;
    animation: floatOrb 25s ease-in-out infinite;
    z-index: 0;
    filter: blur(40px);
}

.mp-signup-success .signup-success-section::after {
    content: '';
    position: absolute;
    bottom: -25%;
    left: -8%;
    width: 700px;
    height: 700px;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.12) 0%, rgba(96, 165, 250, 0.06) 40%, transparent 70%);
    border-radius: 50%;
    animation: floatOrb 30s ease-in-out infinite reverse;
    z-index: 0;
    filter: blur(40px);
}

@keyframes floatOrb {

    0%,
    100% {
        transform: translate(0, 0) scale(1);
        opacity: 0.8;
    }

    50% {
        transform: translate(40px, -40px) scale(1.15);
        opacity: 0.6;
    }
}

/* Main Card */
.mp-signup-success .signup-success-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(255, 255, 255, 0.98) 100%) !important;
    border-radius: 2rem !important;
    padding: 4.5rem 3.5rem !important;
    max-width: 680px !important;
    width: 100% !important;
    text-align: center !important;
    position: relative !important;
    z-index: 10 !important;
    box-shadow: 0 30px 60px -12px rgba(0, 0, 0, 0.2), 0 0 0 1px rgba(255, 255, 255, 0.5) inset !important;
    animation: cardFadeInUp 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) both, ensureVisible 0.1s 0.9s forwards !important;
    border: 1px solid rgba(255, 255, 255, 0.8) !important;
    backdrop-filter: blur(20px) !important;
    overflow: visible !important;
    margin: 0 auto !important;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

/* Fallback to ensure card is always visible */
.mp-signup-success .signup-success-card,
.mp-signup-success .signup-success-card * {
    animation-fill-mode: both !important;
}

/* Force visibility after animation completes - Critical for preventing content loss */
.mp-signup-success .signup-success-section {
    opacity: 1 !important;
    visibility: visible !important;
    display: flex !important;
}

.mp-signup-success .signup-success-section .container-fluid.container-md {
    opacity: 1 !important;
    visibility: visible !important;
    display: flex !important;
}

.mp-signup-success .signup-success-card {
    opacity: 1 !important;
    visibility: visible !important;
    display: block !important;
}

.mp-signup-success .success-icon-wrapper {
    opacity: 1 !important;
    visibility: visible !important;
    display: inline-flex !important;
}

.mp-signup-success .success-title {
    opacity: 1 !important;
    visibility: visible !important;
    display: block !important;
}

.mp-signup-success .success-message {
    opacity: 1 !important;
    visibility: visible !important;
    display: block !important;
}

.mp-signup-success .success-features {
    opacity: 1 !important;
    visibility: visible !important;
    display: flex !important;
}

.mp-signup-success .feature-badge {
    opacity: 1 !important;
    visibility: visible !important;
    display: flex !important;
}

@media (max-width: 768px) {
    .mp-signup-success .signup-success-card {
        padding: 3rem 2rem;
        border-radius: 1.5rem;
    }
}

.mp-signup-success .signup-success-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #1E5CAA 0%, #3b82f6 50%, #60a5fa 100%);
    z-index: 2;
}

@keyframes cardFadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px) scale(0.95);
    }

    to {
        opacity: 1 !important;
        transform: translateY(0) scale(1);
    }
}

/* Ensure card is always visible even if animation fails */
.mp-signup-success .signup-success-card {
    animation: cardFadeInUp 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) both, ensureVisible 0.1s 0.9s forwards;
}

@keyframes ensureVisible {
    to {
        opacity: 1 !important;
        visibility: visible !important;
        display: block !important;
    }
}

/* Success Icon Container */
.mp-signup-success .success-icon-wrapper {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 3rem;
    animation: iconScaleIn 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) 0.2s both;
}

@keyframes iconScaleIn {
    from {
        opacity: 0;
        transform: scale(0.3) rotate(-180deg);
    }

    to {
        opacity: 1;
        transform: scale(1) rotate(0deg);
    }
}

/* Pulsing Background Ring */
.mp-signup-success .success-icon-wrapper::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 280px;
    height: 280px;
    background: radial-gradient(circle, rgba(30, 92, 170, 0.15) 0%, transparent 70%);
    border-radius: 50%;
    animation: pulseRing 2.5s ease-in-out infinite;
    z-index: 0;
}

.mp-signup-success .success-icon-wrapper::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 240px;
    height: 240px;
    background: radial-gradient(circle, rgba(30, 92, 170, 0.08) 0%, transparent 70%);
    border-radius: 50%;
    animation: pulseRing 2.5s ease-in-out infinite 0.5s;
    z-index: 0;
}

@keyframes pulseRing {

    0%,
    100% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.6;
    }

    50% {
        transform: translate(-50%, -50%) scale(1.3);
        opacity: 0.2;
    }
}

/* Success Icon Circle */
.mp-signup-success .success-icon-circle {
    position: relative;
    z-index: 1;
    width: 220px;
    height: 220px;
    border-radius: 50%;
    background: linear-gradient(135deg, #1E5CAA 0%, #3b82f6 50%, #60a5fa 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 25px 50px rgba(30, 92, 170, 0.35), 0 0 0 25px rgba(30, 92, 170, 0.08), 0 0 0 45px rgba(30, 92, 170, 0.03);
    animation: iconGlow 3s ease-in-out infinite;
}

.mp-signup-success .success-icon-circle::before {
    content: '';
    position: absolute;
    inset: -10px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(30, 92, 170, 0.2), rgba(59, 130, 246, 0.1));
    z-index: -1;
    animation: rotate 10s linear infinite;
}

@keyframes rotate {
    to {
        transform: rotate(360deg);
    }
}

@keyframes iconGlow {

    0%,
    100% {
        box-shadow: 0 25px 50px rgba(30, 92, 170, 0.35), 0 0 0 25px rgba(30, 92, 170, 0.08), 0 0 0 45px rgba(30, 92, 170, 0.03);
    }

    50% {
        box-shadow: 0 30px 60px rgba(30, 92, 170, 0.45), 0 0 0 30px rgba(30, 92, 170, 0.12), 0 0 0 55px rgba(30, 92, 170, 0.05);
    }
}

/* Checkmark SVG */
.mp-signup-success .success-checkmark {
    width: 110px;
    height: 110px;
    stroke: white;
    stroke-width: 7;
    stroke-linecap: round;
    stroke-linejoin: round;
    fill: none;
    stroke-dasharray: 200;
    stroke-dashoffset: 200;
    animation: checkmarkDraw 1s ease-out 0.5s forwards;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.2));
}

@keyframes checkmarkDraw {
    to {
        stroke-dashoffset: 0;
    }
}

/* Typography */
.mp-signup-success .success-title {
    font-size: 2.25rem;
    font-weight: 700;
    color: #111827;
    margin-bottom: 1rem;
    font-family: 'Montserrat', 'Inter', sans-serif;
    letter-spacing: -0.02em;
    animation: textFadeIn 0.6s ease-out 0.4s both;
}

.mp-signup-success .success-message {
    font-size: 1.125rem;
    color: #4b5563;
    margin-bottom: 3rem;
    line-height: 1.7;
    animation: textFadeIn 0.6s ease-out 0.5s both;
    max-width: 480px;
    margin-left: auto;
    margin-right: auto;
}

/* Success Features */
.mp-signup-success .success-features {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 2rem;
    animation: textFadeIn 0.6s ease-out 0.7s both;
}

.mp-signup-success .feature-badge {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(30, 92, 170, 0.1);
    border-radius: 2rem;
    font-size: 0.875rem;
    color: #1E5CAA;
    font-weight: 500;
}

@keyframes textFadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Loading Container */
.mp-signup-success .loading-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    margin-top: 2rem;
    animation: textFadeIn 0.6s ease-out 0.6s both;
}

/* Modern Spinner */
.mp-signup-success .modern-spinner {
    width: 64px;
    height: 64px;
    border: 5px solid rgba(30, 92, 170, 0.1);
    border-top-color: #1E5CAA;
    border-right-color: #3b82f6;
    border-bottom-color: #60a5fa;
    border-radius: 50%;
    animation: spin 1.2s cubic-bezier(0.68, -0.55, 0.265, 1.55) infinite;
    position: relative;
    box-shadow: 0 4px 12px rgba(30, 92, 170, 0.2);
}

.mp-signup-success .modern-spinner::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 12px;
    height: 12px;
    background: linear-gradient(135deg, #1E5CAA 0%, #3b82f6 100%);
    border-radius: 50%;
    box-shadow: 0 0 15px rgba(30, 92, 170, 0.6), 0 0 30px rgba(30, 92, 170, 0.3);
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {

    0%,
    100% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 1;
    }

    50% {
        transform: translate(-50%, -50%) scale(1.2);
        opacity: 0.7;
    }
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.mp-signup-success .loading-text {
    font-size: 0.875rem;
    color: #4b5563;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    margin-top: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.mp-signup-success .loading-text::before {
    content: '';
    width: 6px;
    height: 6px;
    background: #1E5CAA;
    border-radius: 50%;
    animation: dotPulse 1.5s ease-in-out infinite;
}

@keyframes dotPulse {

    0%,
    100% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: 0.5;
        transform: scale(1.5);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .mp-signup-success .signup-success-section {
        padding: 2rem 1rem 4rem;
    }

    .mp-signup-success .signup-success-card {
        padding: 3rem 2rem;
        border-radius: 1.5rem;
    }

    .mp-signup-success .success-icon-circle {
        width: 180px;
        height: 180px;
    }

    .mp-signup-success .success-checkmark {
        width: 90px;
        height: 90px;
        stroke-width: 6;
    }

    .mp-signup-success .success-title {
        font-size: 1.875rem;
    }

    .mp-signup-success .success-message {
        font-size: 1rem;
        margin-bottom: 2.5rem;
    }

    .mp-signup-success .modern-spinner {
        width: 48px;
        height: 48px;
        border-width: 4px;
    }

    .mp-signup-success .loading-text {
        font-size: 0.8rem;
    }
}

@media (max-width: 480px) {
    .mp-signup-success .signup-success-card {
        padding: 2.5rem 1.5rem;
    }

    .mp-signup-success .success-icon-circle {
        width: 160px;
        height: 160px;
    }

    .mp-signup-success .success-checkmark {
        width: 80px;
        height: 80px;
        stroke-width: 5;
    }

    .mp-signup-success .success-title {
        font-size: 1.5rem;
    }

    .mp-signup-success .success-message {
        font-size: 0.9375rem;
        margin-bottom: 2rem;
    }
}

/* ========================================
   13. TYPOGRAPHY UTILITIES
   ======================================== */
.heading-primary {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--gray-950);
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.heading-secondary {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 700;
    color: var(--gray-900);
    line-height: 1.3;
}

.heading-tertiary {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--gray-900);
    line-height: 1.4;
}

.text-body {
    font-family: var(--font-primary);
    font-size: 1rem;
    color: var(--gray-600);
    line-height: 1.7;
}

.text-small {
    font-size: 0.875rem;
    color: var(--gray-500);
    line-height: 1.5;
}

/* ========================================
   14. RESPONSIVE UTILITIES
   ======================================== */
@media (max-width: 768px) {
    .heading-primary {
        font-size: 2rem;
    }

    .heading-secondary {
        font-size: 1.75rem;
    }

    .heading-tertiary {
        font-size: 1.25rem;
    }

    .modern-footer {
        padding: 2rem 0 !important;
    }

    .modern-footer-container {
        max-width: 100%;
        padding-left: 1rem;
        padding-right: 1rem;
    }

    .modern-footer .row {
        margin-bottom: 2rem !important;
    }

    .modern-footer .col-6 {
        margin-bottom: 1.5rem !important;
    }

    .modern-footer .border-top {
        padding-top: 1.5rem !important;
    }

    .modern-footer .d-flex.flex-column.flex-md-row {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 1rem !important;
    }

    .modern-footer .d-flex.gap-6 {
        flex-direction: column !important;
        gap: 0.75rem !important;
        align-items: flex-start !important;
    }
}

@media (max-width: 576px) {
    .modern-footer .col-6 {
        width: 100% !important;
        margin-bottom: 2rem !important;
    }

    .footer-copyright {
        order: 2;
    }

    .footer-links {
        order: 1;
    }
}

@media (min-width: 768px) {
    .footer-bottom-row {
        align-items: center !important;
    }

    .footer-copyright {
        order: 1;
    }

    .footer-links {
        order: 2;
    }
}

/* ========================================
   15. SPACING UTILITIES
   ======================================== */
.section-padding {
    padding: var(--spacing-3xl) 0;
}

.section-padding-sm {
    padding: var(--spacing-2xl) 0;
}

.section-padding-lg {
    padding: 6rem 0;
}

.container-padding {
    padding-left: var(--spacing-xl);
    padding-right: var(--spacing-xl);
}

/* ========================================
   16. ACCESSIBILITY
   ======================================== */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

/* Focus visible for keyboard navigation */
*:focus-visible {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* Disable focus outline on MTD feature items and icons */
.mtd-feature-item:focus-visible,
.mtd-feature-icon:focus-visible,
.mtd-feature-item *:focus-visible,
.mtd-compliance-section *:focus-visible,
.why-card:focus-visible,
.why-card-icon:focus-visible,
.why-card *:focus-visible,
.why-moneypex-section *:focus-visible {
    outline: none !important;
}

/* ========================================
   17. PRINT STYLES
   ======================================== */
@media print {

    .modern-navbar,
    .modern-footer,
    .btn-premium,
    .btn-premium-outline {
        display: none !important;
    }

    body {
        background: white;
    }

    .hero-gradient-orb {
        display: none;
    }
}

/* ========================================
   18. PRICING PAGE STYLES
   Professional Pricing Section with Tabs
   ======================================== */

/* Modern Pricing Section */
.modern-pricing-section {
    background: linear-gradient(180deg, #f9fafb 0%, #ffffff 100%);
    padding: 6rem 0 !important;
    position: relative;
    overflow: hidden;
}

.modern-pricing-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(30, 92, 170, 0.1), transparent);
}

/* Pricing Tabs - Professional Design */
.pricing-tabs-wrapper {
    background: white;
    border-radius: 2rem;
    padding: 0.5rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    display: inline-flex;
    position: relative;
    overflow: hidden;
}

.pricing-tab-btn {
    padding: 0.75rem 2rem;
    border: none;
    background: transparent;
    border-radius: 1.5rem;
    font-weight: 600;
    color: #64748b;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    position: relative;
    z-index: 1;
    font-size: 0.95rem;
    white-space: nowrap;
}

.pricing-tab-btn:hover {
    color: #1E5CAA;
}

.pricing-tab-btn.active {
    background: #1E5CAA;
    color: white;
    box-shadow: 0 4px 6px -1px rgba(30, 92, 170, 0.3);
}

.pricing-tab-btn.active span {
    background: rgba(255, 255, 255, 0.25);
}

/* Modern Pricing Cards */
.modern-pricing-card {
    background: white;
    border: 2px solid #e5e7eb;
    border-radius: 2rem;
    padding: 2.5rem;
    height: 100%;
    display: flex;
    flex-direction: column;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
    min-height: 600px;
    will-change: transform;
}

.modern-pricing-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, #60a5fa 0%, #1E5CAA 100%);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.modern-pricing-card:hover {
    transform: translateY(-12px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    border-color: #1E5CAA;
}

.modern-pricing-card:hover::before {
    transform: scaleX(1);
}

.modern-pricing-card.featured {
    border-color: #1E5CAA;
    background: linear-gradient(135deg, #1E5CAA 0%, #2563eb 100%);
    color: white;
    transform: scale(1.05);
    box-shadow: 0 25px 50px -12px rgba(30, 92, 170, 0.4);
}

.modern-pricing-card.featured::before {
    background: white;
}

.modern-pricing-card.featured:hover {
    transform: scale(1.05) translateY(-12px);
}

/* Pricing Badge */
.pricing-badge {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 2rem;
    font-size: 0.875rem;
    font-weight: 600;
    display: inline-block;
    margin-bottom: 1rem;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.modern-pricing-card:not(.featured) .pricing-badge {
    background: #1E5CAA;
    color: white;
}

/* Pricing Card Header */
.pricing-card-header {
    margin-bottom: 1.5rem;
}

.pricing-plan-name {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: #111827;
}

.modern-pricing-card.featured .pricing-plan-name {
    color: white;
}

.pricing-plan-desc {
    font-size: 0.95rem;
    color: #64748b;
    margin: 0;
}

.modern-pricing-card.featured .pricing-plan-desc {
    color: rgba(255, 255, 255, 0.9);
}

/* Pricing Card Price */
.pricing-card-price {
    margin-bottom: 2rem;
}

.price-amount {
    font-size: 3rem;
    font-weight: 800;
    line-height: 1;
    color: #111827;
    display: inline-block;
}

.modern-pricing-card.featured .price-amount {
    color: white;
}

.price-period {
    font-size: 1.125rem;
    color: #64748b;
    margin-left: 0.25rem;
}

.modern-pricing-card.featured .price-period {
    color: rgba(255, 255, 255, 0.8);
}

.yearly-savings {
    display: block;
    color: #10b981;
    font-size: 0.875rem;
    margin-top: 0.5rem;
    font-weight: 600;
}

.modern-pricing-card.featured .yearly-savings {
    color: rgba(255, 255, 255, 0.9);
}

/* Pricing Features List */
.pricing-features-list {
    list-style: none;
    padding: 0;
    margin: 0 0 2rem 0;
    flex-grow: 1;
}

.pricing-features-list li {
    display: flex;
    align-items: flex-start;
    padding: 0.75rem 0;
    color: #374151;
    font-size: 0.95rem;
    line-height: 1.6;
}

.modern-pricing-card.featured .pricing-features-list li {
    color: rgba(255, 255, 255, 0.95);
}

.pricing-features-list li svg {
    flex-shrink: 0;
    margin-top: 0.125rem;
    width: 1.25rem;
    height: 1.25rem;
    color: #10b981;
    margin-right: 0.75rem;
}

.modern-pricing-card.featured .pricing-features-list li svg {
    color: rgba(255, 255, 255, 0.95);
}

/* Pricing CTA */
.pricing-card-cta {
    margin-top: auto;
}

.pricing-cta-btn {
    width: 100%;
    justify-content: center;
}

.pricing-arrow-icon {
    width: 1.125rem;
    height: 1.125rem;
}

/* Pricing Check Icon and Text */
.pricing-check-icon {
    width: 1.25rem;
    height: 1.25rem;
    color: #10b981;
    margin-right: 0.5rem;
}

.pricing-check-text {
    color: #10b981;
    font-weight: 600;
}

/* Pricing Save Badge */
.pricing-save-badge {
    background: #10b981;
    color: white;
    padding: 0.125rem 0.5rem;
    border-radius: 0.5rem;
    font-size: 0.75rem;
    margin-left: 0.5rem;
}

/* Testimonials Section */
.modern-section-white {
    padding: 4rem 0;
    background: #ffffff;
}

/* Pricing Page Responsive Design */
@media (max-width: 1199.98px) {
    .modern-pricing-card.featured {
        transform: scale(1);
    }

    .modern-pricing-card.featured:hover {
        transform: translateY(-12px);
    }
}

@media (max-width: 991.98px) {
    .modern-pricing-section {
        padding: 4rem 0 !important;
    }

    .modern-pricing-card {
        padding: 2rem;
        margin-bottom: 2rem;
    }

    .price-amount {
        font-size: 2.5rem;
    }

    .modern-section-white {
        padding: 3rem 0;
    }
}

@media (max-width: 767.98px) {
    .modern-pricing-section {
        padding: 3rem 0 !important;
    }

    .pricing-tabs-wrapper {
        width: 100%;
        max-width: 100%;
        display: flex;
    }

    .pricing-tab-btn {
        flex: 1;
        padding: 0.75rem 1rem;
        font-size: 0.875rem;
    }

    .modern-pricing-card {
        padding: 1.75rem;
        border-radius: 1.5rem;
    }

    .modern-pricing-card.featured {
        transform: scale(1);
    }

    .pricing-plan-name {
        font-size: 1.5rem;
    }

    .price-amount {
        font-size: 2.25rem;
    }

    .pricing-features-list li {
        font-size: 0.9rem;
        padding: 0.625rem 0;
    }

    .features-section-heading {
        font-size: 1.75rem !important;
    }

    .features-section-subtitle {
        font-size: 0.95rem !important;
    }

    .modern-section-white {
        padding: 2.5rem 0;
    }

    .faq-growth-section {
        padding: 3rem 0 !important;
    }

    .explore-features-section-modern {
        padding: 3rem 0 !important;
    }
}

@media (max-width: 575.98px) {
    .modern-pricing-section {
        padding: 2.5rem 0 !important;
    }

    .modern-pricing-card {
        padding: 1.5rem;
        border-width: 1px;
    }

    .pricing-plan-name {
        font-size: 1.375rem;
    }

    .price-amount {
        font-size: 2rem;
    }

    .pricing-tab-btn {
        padding: 0.625rem 0.75rem;
        font-size: 0.8125rem;
    }

    .pricing-tab-btn span {
        display: none;
    }

    .pricing-card-header {
        margin-bottom: 1.25rem;
    }

    .pricing-card-price {
        margin-bottom: 1.5rem;
    }

    .modern-section-white {
        padding: 2rem 0;
    }

    .faq-growth-section {
        padding: 2.5rem 0 !important;
    }

    .explore-features-section-modern {
        padding: 2.5rem 0 !important;
    }
}

/* Pricing Page Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.pricing-page .fade-in-up {
    animation: fadeInUp 0.6s ease-out both;
}

.pricing-page .delay-100 {
    animation-delay: 0.1s;
}

.pricing-page .delay-200 {
    animation-delay: 0.2s;
}

.pricing-page .delay-300 {
    animation-delay: 0.3s;
}

.pricing-page .delay-400 {
    animation-delay: 0.4s;
}

/* Accessibility for Pricing Page */
@media (prefers-reduced-motion: reduce) {

    .modern-pricing-card,
    .pricing-tab-btn,
    .pricing-features-list li {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

html {
    box-sizing: border-box;
    text-size-adjust: 100%;
    -webkit-text-size-adjust: 100%;
}

*,
*::before,
*::after {
    box-sizing: inherit;
}

body {
    overflow-x: hidden;
}

img,
svg,
video,
canvas {
    max-width: 100%;
    height: auto;
}

iframe {
    max-width: 100%;
}

a,
button,
input,
select,
textarea {
    -webkit-tap-highlight-color: transparent;
}

.container,
.container-fluid {
    max-width: 100%;
}

@supports (-webkit-touch-callout: none) {

    html,
    body {
        height: -webkit-fill-available;
    }

    .modern-navbar {
        -webkit-transform: translateZ(0);
        transform: translateZ(0);
    }
}

@supports not (gap: 1rem) {
    .modern-navbar .d-none.d-lg-flex.align-items-center {
        gap: 0 !important;
    }

    .modern-navbar .d-none.d-lg-flex.align-items-center>*+* {
        margin-left: 2.5rem;
    }
}

@supports (min-height: 100svh) {
    .min-vh-100 {
        min-height: 100svh !important;
    }
}

/* Modern Cookie Modal Styles */
.modern-cookie-modal .modal-content {
    border-radius: 16px;
    border: none;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.modern-cookie-modal .modal-header {
    border-bottom: 1px solid #e5e7eb;
    padding: 1.5rem 1.5rem 1rem 1.5rem;
}

.modern-cookie-modal .modal-title {
    font-family: 'Montserrat', 'Inter', sans-serif;
    font-size: 1.25rem;
    font-weight: 700;
    color: #111827;
    margin: 0;
    line-height: 1.5;
}

.modern-cookie-modal .btn-close {
    padding: 0.5rem;
    margin: 0;
    opacity: 0.6;
    transition: all 0.2s ease;
}

.modern-cookie-modal .btn-close:hover {
    opacity: 1;
    background-color: #f3f4f6;
    border-radius: 8px;
}

.modern-cookie-modal .modal-body {
    padding: 1.5rem;
}

.cookie-intro-text {
    font-family: 'Inter', 'Montserrat', sans-serif;
    font-size: 0.875rem;
    line-height: 1.6;
    color: #374151;
    margin: 0 0 1.5rem 0;
}

.cookie-option-card {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 1.25rem;
    margin-bottom: 1rem;
    transition: all 0.2s ease;
}

.cookie-option-card:last-child {
    margin-bottom: 0;
}

.cookie-option-card:hover {
    border-color: #d1d5db;
    background: #ffffff;
}

.cookie-option-card.essential {
    background: #f0f9ff;
    border-color: #bfdbfe;
}

.cookie-option-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.5rem;
}

.cookie-checkbox-wrapper {
    position: relative;
    flex-shrink: 0;
}

.cookie-checkbox {
    width: 1.25rem;
    height: 1.25rem;
    border: 2px solid #d1d5db;
    border-radius: 4px;
    cursor: pointer;
    appearance: none;
    margin: 0;
    position: relative;
    transition: all 0.2s ease;
    background-color: #ffffff;
}

.cookie-checkbox:checked {
    background-color: #1E5CAA;
    border-color: #1E5CAA;
}

.cookie-checkbox:checked::after {
    content: '';
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 0.375rem;
    height: 0.625rem;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: translate(-50%, -60%) rotate(45deg);
}

.cookie-checkbox:disabled {
    background-color: #e5e7eb;
    border-color: #9ca3af;
    cursor: not-allowed;
    opacity: 0.6;
}

.cookie-checkbox:disabled:checked {
    background-color: #9ca3af;
    border-color: #9ca3af;
}

.cookie-option-title {
    font-family: 'Montserrat', 'Inter', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    color: #111827;
    margin: 0;
    cursor: pointer;
    user-select: none;
}

.cookie-option-description {
    font-family: 'Inter', 'Montserrat', sans-serif;
    font-size: 0.875rem;
    line-height: 1.6;
    color: #6b7280;
    margin: 0;
    padding-left: 2rem;
}

.modern-cookie-modal .modal-footer {
    border-top: 1px solid #e5e7eb;
    padding: 1rem 1.5rem 1.5rem 1.5rem;
    display: flex;
    justify-content: flex-end;
}

.btn-save-cookies {
    font-family: 'Montserrat', 'Inter', sans-serif;
    padding: 0.625rem 1.5rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: #ffffff;
    background: linear-gradient(135deg, #1E5CAA 0%, #2563eb 100%);
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 4px 6px -1px rgba(30, 92, 170, 0.3);
}

.btn-save-cookies:hover {
    background: linear-gradient(135deg, #174a85 0%, #1d4ed8 100%);
}

/* SCROLL TO TOP BUTTON REMOVED IN FAVOR OF CHAT ASSISTANT */
.scroll-to-top {
    display: none !important;
}

.btn-save-cookies:active {
    transform: translateY(0);
}

/* Responsive adjustments for cookie modal */
@media (max-width: 768px) {
    .modern-cookie-modal .modal-dialog {
        margin: 1rem;
    }

    .modern-cookie-modal .modal-header {
        padding: 1.25rem 1.25rem 0.75rem 1.25rem;
    }

    .modern-cookie-modal .modal-body {
        padding: 1.25rem;
    }

    .modern-cookie-modal .modal-footer {
        padding: 1rem 1.25rem 1.25rem 1.25rem;
    }

    .cookie-option-description {
        padding-left: 0;
        margin-top: 0.5rem;
    }

    .btn-save-cookies {
        width: 100%;
    }
}

/* ========================================
   POS PAGE ICON STYLING - Convert to Theme Blue (#1E5CAA)
   ======================================== */

/* Icon wrapper - NO background */
.feature-icon-wrapper {
    width: 80px;
    height: 80px;
    background: transparent !important;
    border-radius: 0 !important;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    position: relative;
    flex-shrink: 0;
}

/* Feature icons in POS pages - NO background, convert colors to theme blue */
.features-inner-sectio-icon {
    width: 80px !important;
    height: 80px !important;
    background: transparent !important;
    border-radius: 0 !important;
    padding: 0 !important;
    object-fit: contain !important;
    flex-shrink: 0 !important;
    /* Convert purple/orange/red to theme blue (#1E5CAA) */
    filter:
        hue-rotate(195deg) saturate(1.4) brightness(0.8) contrast(1.2) !important;
    transition: none !important;
}

.features-inner-sectio-icon:hover {
    transform: none !important;
    box-shadow: none !important;
    background: transparent !important;
    filter:
        hue-rotate(195deg) saturate(1.4) brightness(0.8) contrast(1.2) !important;
}

/* Feature page card icons - convert to theme blue with blue background wrapper */
.feature-page-card img {
    /* Convert purple/orange/red to theme blue (#1E5CAA) */
    filter:
        hue-rotate(195deg) saturate(1.4) brightness(0.8) contrast(1.2) !important;
    transition: none !important;
    max-width: 70px;
    max-height: 70px;
    object-fit: contain;
}

.feature-page-card:hover img {
    transform: none !important;
    filter:
        hue-rotate(195deg) saturate(1.4) brightness(0.8) contrast(1.2) !important;
}

/* Icon wrapper images - also convert colors */
.feature-icon-wrapper img {
    filter:
        hue-rotate(195deg) saturate(1.4) brightness(0.8) contrast(1.2) !important;
    max-width: 70px;
    max-height: 70px;
    object-fit: contain;
}

/* Feature-icons from Feature-icons folder - keep original (already blue) */
.feature-page-card img[src*="Feature-icons"],
.feature-icon-wrapper img[src*="Feature-icons"] {
    filter: none !important;
}

/* Mobile responsive */
@media (max-width: 767px) {
    .features-inner-sectio-icon {
        width: 60px !important;
        height: 60px !important;
        border-radius: 0.75rem !important;
        padding: 0.5rem !important;
    }

    .feature-icon-wrapper {
        width: 60px;
        height: 60px;
    }

    .feature-icon-wrapper img {
        max-width: 50px;
        max-height: 50px;
    }
}