/* PatientXpress Shared Header, Footer & Image Aspect Safeguards */
:where(img:not([class*="h-"])) {
    height: auto;
    max-width: 100%;
}
:where(img[class*="h-"]:not([class*="w-"]):not(.logo-image):not(.footer-logo)) {
    width: auto;
}
.logo-image {
    height: 42px;
    width: auto !important;
}
.footer-logo {
    width: 170px;
    height: auto !important;
}

/* --- HEADER CHROME --- */
/* Apply fonts to header only */
            #main-header, #main-header * {
                font-family: 'Inter', sans-serif;
            }
            
            #main-header .nav-link, #main-header .mobile-menu-item {
                font-family: 'Poppins', sans-serif;
            }

            @keyframes fade-in {
                from { opacity: 0; transform: translateY(-10px); }
                to { opacity: 1; transform: translateY(0); }
            }
            
            .animate-fade-in { 
                animation: fade-in 0.3s ease-out; 
            }
            
            .mobile-menu-open .hamburger-line:nth-child(1) { 
                transform: translateY(7px) rotate(45deg); 
            }
            .mobile-menu-open .hamburger-line:nth-child(2) { 
                opacity: 0; 
            }
            .mobile-menu-open .hamburger-line:nth-child(3) { 
                transform: translateY(-7px) rotate(-45deg); 
            }
            
            #mobile-menu.mobile-menu-open { 
                display: block;
                max-height: calc(100vh - 84px); 
                overflow-y: auto; 
            }
            
            html { 
                scroll-behavior: smooth; 
            }
            
            .nav-link.active { 
                color: #2563eb; 
            }
            .nav-link.active .nav-underline { 
                width: 100%; 
            }

            /* --- UTILITY CLASSES (Self-contained for header) --- */
            .header .flex { display: flex; }
            .header .items-center { align-items: center; }
            .header .justify-center { justify-content: center; }
            .header .gap-1 { gap: 4px; }
            .header .gap-2 { gap: 8px; }
            .header .relative { position: relative; }
            .header .absolute { position: absolute; }
            .header .h-10 { height: 40px; }
            .header .h-14 { height: 56px; }
            .header .w-full { width: 100%; }
            .header .px-6 { padding-left: 24px; padding-right: 24px; }
            .header .ml-4 { margin-left: 16px; }
            .header .ml-auto { margin-left: auto; }
            .header .ms-auto { margin-left: auto; }
            .header .me-2 { margin-right: 8px; }
            .header .text-xs { font-size: 12px; }
            .header .text-lg { font-size: 18px; }
            .header .text-xl { font-size: 20px; }
            .header .text-2xl { font-size: 24px; }
            .header .text-blue-600 { color: #2563eb; }
            .header .font-bold { font-weight: 700; }
            .header .transition-transform { transition: transform 0.3s ease; }
            .header .transition-all { transition: all 0.3s ease; }
            
            /* --- DROPDOWN STYLES --- */
            .nav-item-dropdown {
                position: static;
                height: 100%;
                display: flex;
                align-items: center;
            }

            /* --- EXPANDABLE HEADER & DROPDOWN STYLES --- */
            /* Header transitions animate layout box without horizontal left/transform jumps */
            .header {
                top: 0;
                left: 50%;
                transform: translateX(-50%);
                width: 100%;
                max-width: 100%;
                box-sizing: border-box;
                border-radius: 0;
                padding: 8px;
                position: fixed;
                z-index: 1000;
                background-color: #ffffff;
                box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
                transition: width 0.35s cubic-bezier(0.165, 0.84, 0.44, 1),
                            max-width 0.35s cubic-bezier(0.165, 0.84, 0.44, 1),
                            top 0.35s cubic-bezier(0.165, 0.84, 0.44, 1),
                            padding 0.35s cubic-bezier(0.165, 0.84, 0.44, 1),
                            border-radius 0.35s cubic-bezier(0.165, 0.84, 0.44, 1),
                            padding-bottom 0.4s cubic-bezier(0.16, 1, 0.3, 1),
                            background-color 0.35s ease,
                            box-shadow 0.35s ease !important;
            }
            
            /* Expand the header when dropdown is hovered based on which menu is active */
            .header:has(.nav-item-dropdown:hover .features-mega-menu) {
                padding-bottom: 540px !important;
            }
            /* Account for vertical padding changes in the scrolled state */
            .header-scrolled:has(.nav-item-dropdown:hover .features-mega-menu) {
                padding-bottom: 550px !important;
            }

            .header:has(.nav-item-dropdown:hover .solutions-mega-menu) {
                padding-bottom: 300px !important;
            }
            .header-scrolled:has(.nav-item-dropdown:hover .solutions-mega-menu) {
                padding-bottom: 310px !important;
            }

            .dropdown-menu-container {
                max-height: calc(100vh - 90px);
                overflow-y: auto;
                scrollbar-width: thin;
                position: absolute;
                top: 100%;
                left: 50%;
                transform: translateX(-50%) translateY(15px);
                width: 1140px;
                max-width: calc(100vw - 80px);
                background: transparent;
                border-radius: 0;
                box-shadow: none;
                opacity: 0;
                visibility: hidden;
                transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1), transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.3s ease;
                border: none;
                border-top: 1px solid rgba(0, 52, 145, 0.08);
                padding: 16px 12px 12px 12px;
                z-index: 100;
            }

            .nav-item-dropdown:hover .dropdown-menu-container {
                opacity: 1;
                visibility: visible;
                transform: translateX(-50%) translateY(6px);
            }

            .dropdown-grid {
                display: grid;
                grid-template-columns: repeat(4, minmax(0, 1fr));
                gap: 8px 12px;
            }

            .dropdown-item {
                display: flex;
                align-items: center;
                gap: 10px;
                padding: 8px 10px;
                border-radius: 12px;
                text-decoration: none !important;
                transition: background 0.2s ease, transform 0.2s ease;
                min-width: 0;
                overflow: hidden;
            }

            .dropdown-item:hover {
                background: #f8fbff;
            }

            .item-icon {
                width: 38px;
                height: 38px;
                border-radius: 10px;
                display: flex;
                align-items: center;
                justify-content: center;
                font-size: 1.25rem;
                flex-shrink: 0;
                transition: transform 0.3s ease;
            }

            .dropdown-item:hover .item-icon {
                transform: scale(1.08);
            }

            .ai-icon { background: #eff6ff; color: #3b82f6; }
            .insurance-icon { background: #ecfdf5; color: #10b981; }
            .forms-icon { background: #f5f3ff; color: #8b5cf6; }
            .payments-icon { background: #fffbeb; color: #f59e0b; }
            .automation-icon { background: #fdf2f2; color: #ef4444; }
            .rx-icon { background: #f0fdfa; color: #14b8a6; }
            .analytics-icon { background: #eff6ff; color: #2563eb; }
            .reminders-icon { background: #fff7ed; color: #f97316; }
            .texting-icon { background: #f0f9ff; color: #0ea5e9; }
            .appt-icon { background: #faf5ff; color: #a855f7; }

            .item-text {
                min-width: 0;
                flex: 1;
                overflow: hidden;
            }

            .item-text .item-title,
            .item-text h6 {
                margin: 0 0 1px 0;
                font-size: 0.88rem;
                font-weight: 700;
                color: #111827;
                white-space: nowrap;
                overflow: hidden;
                text-overflow: ellipsis;
                transition: color 0.2s ease;
            }

            .dropdown-item:hover .item-title,
            .dropdown-item:hover h6 {
                color: #2563eb;
            }

            .item-text p {
                margin: 0;
                font-size: 0.74rem;
                color: #6b7280;
                line-height: 1.3;
                white-space: nowrap;
                overflow: hidden;
                text-overflow: ellipsis;
            }

            .dropdown-footer {
                margin-top: 10px;
                padding: 12px 15px;
                border-top: 1px solid #f3f4f6;
                display: flex;
                align-items: center;
                justify-content: flex-end;
                gap: 10px;
                flex-wrap: wrap;
            }

            .integrations-nav-btn {
                color: #334155;
                font-weight: 700;
                font-size: 0.90rem;
                text-decoration: none !important;
                display: inline-flex;
                align-items: center;
                gap: 6px;
                padding: 8px 18px;
                background: #f8fafc;
                border: 1px solid #e2e8f0;
                border-radius: 50px;
                transition: all 0.3s ease;
            }

            .integrations-nav-btn:hover {
                background: #eff6ff;
                border-color: #bfdbfe;
                color: #2563eb !important;
                transform: translateY(-1px);
            }

            .view-all-link {
                color: #2563eb;
                font-weight: 700;
                font-size: 0.92rem;
                text-decoration: none !important;
                display: inline-flex;
                align-items: center;
                gap: 6px;
                padding: 8px 20px;
                background: #f0f7ff;
                border-radius: 50px;
                transition: all 0.3s ease;
            }

            .view-all-link:hover {
                background: #2563eb;
                color: white !important;
                transform: translateX(5px);
            }

            /* ----------------------- */

            .ai-button-premium {
                position: relative;
                display: inline-flex !important;
                align-items: center !important;
                justify-content: center !important;
                text-decoration: none !important;
                border-radius: 12px !important;
                background: linear-gradient(135deg, #4f46e5, #9333ea, #db2777) !important;
                background-size: 200% 200% !important;
                animation: ai-gradient-flow 3s ease infinite;
                overflow: hidden;
                box-sizing: border-box !important;
                color: white !important;
                box-shadow: 0 4px 15px rgba(79, 70, 229, 0.4) !important;
                transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
                font-family: 'Inter', sans-serif !important;
                border: none !important;
            }

            .ai-button-premium.btn-desktop {
                height: 40px !important;
                padding: 0 24px !important;
                margin-left: 16px !important;
            }

            .ai-button-premium.btn-mobile {
                width: 100% !important;
                height: 56px !important;
            }

            .ai-button-premium.btn-mobile .ai-button-content {
                width: 100%;
                justify-content: center;
            }

            .ai-button-premium.btn-mobile i {
                font-size: 24px;
            }

            .ai-button-premium.btn-mobile .ai-button-text {
                font-size: 18px !important;
                font-weight: 600 !important;
                margin: 0 !important;
                padding: 0 !important;
                line-height: 1 !important;
            }

            .ai-button-premium.btn-desktop .ai-button-text {
                font-size: 15px !important;
                font-weight: 600 !important;
                margin: 0 !important;
                padding: 0 !important;
                line-height: 1 !important;
            }

            .ai-button-premium.btn-desktop i {
                font-size: 20px !important;
                margin: 0 !important;
                padding: 0 !important;
                line-height: 1 !important;
            }

            .ai-button-premium:hover {
                transform: translateY(-2px) scale(1.02);
                box-shadow: 0 8px 25px rgba(79, 70, 229, 0.6);
            }

            .ai-button-content {
                position: relative;
                z-index: 2;
                display: flex;
                align-items: center;
                gap: 8px;
                font-weight: 700;
                letter-spacing: 0.02em;
                padding: 0 4px;
            }

            .ai-button-shimmer {
                position: absolute;
                top: 0;
                left: 0;
                transform: translateX(-100%);
                width: 100%;
                height: 100%;
                background: linear-gradient(
                    90deg,
                    transparent,
                    rgba(255, 255, 255, 0.2),
                    transparent
                );
                animation: shimmer 2.5s infinite;
                z-index: 1;
            }

            @keyframes ai-gradient-flow {
                0% { background-position: 0% 50%; }
                50% { background-position: 100% 50%; }
                100% { background-position: 0% 50%; }
            }

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

            .ri-sparkling-2-fill {
                animation: sparkle-twinkle 2s ease-in-out infinite;
            }

            @keyframes sparkle-twinkle {
                0%, 100% { opacity: 0.8; transform: scale(1); }
                50% { opacity: 1; transform: scale(1.15) rotate(15deg); }
            }
            /* ----------------------- */

            .logo-hover {
                transition: transform 0.3s ease;
            }
            
            .logo-hover:hover {
                transform: scale(1.05);
            }
            
            /* Base header sizing now consolidated above; preserve scrolled floating card safely centered */
            .header-scrolled {
                top: 12px;
                width: calc(100% - 24px);
                max-width: 1280px;
                left: 50%;
                transform: translateX(-50%);
                border-radius: 16px;
                padding: 0 8px;
                background: rgba(255, 255, 255, 0.94);
                backdrop-filter: blur(15px);
                -webkit-backdrop-filter: blur(15px);
                border: 1px solid rgba(15, 23, 42, 0.08);
                box-shadow: 0 10px 30px rgba(0,0,0,0.08);
            }
            
            /* Progress Bar */
            .progress-bar {
                position: absolute;
                top: 0;
                left: 0;
                height: 3px;
                background: linear-gradient(to right, #3b82f6, #2563eb);
                transition: transform 0.3s ease;
                transform-origin: left;
                transform: scaleX(0);
                z-index: 10;
            }
            
            .header-content {
                display: flex;
                align-items: center;
                justify-content: space-between;
                height: 64px;
                padding: 0 16px;
                position: relative;
                max-width: 100%;
                box-sizing: border-box;
            }
            
            .logo-image {
                height: 40px;
                transition: all 0.3s ease;
            }
            
            /* Desktop Navigation */
            .desktop-nav {
                display: none;
                align-items: center;
                gap: 14px;
            }
            
            .nav-link {
                color: #374151;
                text-decoration: none;
                font-weight: 500;
                position: relative;
                padding: 8px 0;
                font-size: 14.5px;
                white-space: nowrap;
                transition: color 0.3s ease;
            }
            
            .nav-link:hover {
                color: #2563eb;
            }
            
            .nav-underline {
                position: absolute;
                bottom: 0;
                left: 0;
                width: 0;
                height: 2px;
                background-color: #2563eb;
                transition: width 0.3s ease;
            }
            
            .nav-link:hover .nav-underline {
                width: 100%;
            }
            
            .actions-container {
                display: flex;
                align-items: center;
                gap: 10px;
                flex-shrink: 0;
            }

            .phone-link {
                display: none;
                align-items: center;
                gap: 6px;
                color: #2563eb;
                text-decoration: none !important;
                font-weight: 700;
                font-size: 14px;
                white-space: nowrap;
                background: #eff6ff;
                padding: 8px 14px;
                border-radius: 50px;
                transition: all 0.3s ease;
            }

            @media (min-width: 1320px) {
                .desktop-nav {
                    gap: 18px;
                }
                .nav-link {
                    font-size: 15px;
                }
                .phone-link {
                    display: flex;
                }
            }

            @media (min-width: 1024px) and (max-width: 1279px) {
                .desktop-nav {
                    gap: 11px;
                }
                .ai-button-premium.btn-desktop {
                    padding: 0 16px !important;
                    margin-left: 8px !important;
                }
                .header-book-btn {
                    padding: 9px 14px;
                    font-size: 13.5px;
                }
            }

            .phone-link:hover {
                background: #2563eb;
                color: white;
            }

            .header-book-btn {
                display: inline-flex;
                align-items: center;
                justify-content: center;
                gap: 8px;
                background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
                color: #ffffff !important;
                text-decoration: none !important;
                font-weight: 700;
                font-size: 14px;
                line-height: 1;
                padding: 10px 18px;
                border-radius: 50px;
                box-shadow: 0 4px 14px rgba(37, 99, 235, 0.28);
                transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
                white-space: nowrap;
                cursor: pointer;
            }

            .header-book-btn:hover {
                background: linear-gradient(135deg, #1d4ed8 0%, #1e40af 100%);
                box-shadow: 0 6px 20px rgba(37, 99, 235, 0.38);
                transform: translateY(-1px);
                color: #ffffff !important;
            }

            .header-book-btn:active {
                transform: translateY(0);
                box-shadow: 0 2px 8px rgba(37, 99, 235, 0.2);
            }

            .header-book-btn i {
                font-size: 16px;
            }

            .header-book-btn .btn-text-short {
                display: none;
            }

            .header-book-btn .btn-text-full {
                display: inline;
            }

            @media (max-width: 640px) {
                .header-book-btn {
                    padding: 8px 12px;
                    font-size: 13px;
                    gap: 6px;
                }
                .header-book-btn .btn-text-full {
                    display: none;
                }
                .header-book-btn .btn-text-short {
                    display: inline;
                }
            }

            @media (max-width: 380px) {
                .header-book-btn {
                    padding: 6px 10px;
                    font-size: 12px;
                }
            }
            
            /* Mobile Menu Button */
            .mobile-menu-button {
                display: block;
                color: #4b5563;
                background: none;
                border: none;
                padding: 8px;
                border-radius: 8px;
                transition: all 0.3s ease;
            }
            
            .mobile-menu-button:hover {
                color: #2563eb;
                background-color: #f3f4f6;
            }
            
            .hamburger-menu {
                display: flex;
                flex-direction: column;
                align-items: center;
                justify-content: center;
                gap: 5px;
                width: 24px;
                height: 24px;
            }

            .hamburger-line {
                display: block;
                width: 22px;
                height: 2px;
                background-color: currentColor;
                margin-top: 0;
                transition: all 0.3s ease;
            }

            @media (max-width: 480px) {
                .header {
                    padding: 4px 8px;
                }
                .header-content {
                    padding: 0 8px;
                }
                .logo-image {
                    height: 36px;
                }
                .actions-container {
                    gap: 6px;
                }
            }
            
            /* Mobile Menu */
            .mobile-menu {
                display: none;
                background-color: #ffffff !important;
                box-shadow: 0 16px 36px rgba(15, 23, 42, 0.14);
                border-top: 1px solid #f1f5f9;
                position: absolute;
                width: 100%;
                left: 0;
                right: 0;
                top: 100%;
                max-height: calc(100vh - 84px);
                overflow-y: auto;
                z-index: 999;
                opacity: 1;
                transform: none;
            }

            .header-scrolled .mobile-menu {
                margin-top: 6px;
                border-radius: 16px;
                border: 1px solid rgba(15, 23, 42, 0.08);
            }

            .mobile-menu.mobile-menu-open {
                display: block;
                max-height: calc(100vh - 84px);
                transform: none;
                opacity: 1;
                overflow-y: auto;
            }
            
            .mobile-menu-content {
                padding: 15px;
            }
            
            .mobile-menu-item {
                display: flex;
                align-items: center;
                padding: 12px 18px;
                color: #374151;
                text-decoration: none !important;
                border-radius: 12px;
                transition: all 0.2s ease;
                font-size: 16px;
                font-weight: 500;
            }

            .mobile-accordion-header {
                width: 100%;
                background: none;
                border: none;
            }

            .mobile-accordion-content {
                max-height: 0;
                overflow: hidden;
                transition: max-height 0.3s ease;
                padding-left: 45px;
            }

            .mobile-accordion.active .mobile-accordion-content {
                max-height: 500px;
                margin-top: 5px;
                margin-bottom: 10px;
            }

            .mobile-accordion.active #features-chevron {
                transform: rotate(180deg);
            }

            .mobile-sub-item {
                display: block;
                padding: 10px 0;
                color: #6b7280;
                text-decoration: none !important;
                font-size: 0.95rem;
            }

            .mobile-menu-footer {
                margin-top: 20px;
                padding-top: 20px;
                border-top: 1px solid #f3f4f6;
            }

            .mobile-book-btn {
                display: flex;
                align-items: center;
                justify-content: center;
                gap: 8px;
                background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
                color: white !important;
                text-decoration: none !important;
                padding: 14px;
                border-radius: 14px;
                font-weight: 700;
                font-size: 15px;
                box-shadow: 0 4px 14px rgba(37, 99, 235, 0.25);
                margin-bottom: 10px;
                transition: all 0.25s ease;
            }

            .mobile-book-btn:hover {
                background: linear-gradient(135deg, #1d4ed8 0%, #1e40af 100%);
                color: white !important;
            }

            .mobile-contact-btn {
                display: flex;
                align-items: center;
                justify-content: center;
                gap: 8px;
                background: #eff6ff;
                color: #2563eb !important;
                border: 1px solid #dbeafe;
                text-decoration: none !important;
                padding: 13px;
                border-radius: 14px;
                font-weight: 700;
                font-size: 15px;
                transition: all 0.25s ease;
            }

            .mobile-contact-btn:hover {
                background: #2563eb;
                color: white !important;
            }
            
            /* Responsive adjustments */
            @media (min-width: 1024px) {
                .desktop-nav {
                    display: flex;
                }
                .mobile-menu-button {
                    display: none;
                }
            }

/* --- FOOTER CHROME --- */
.main-footer {
                background-color: rgba(255, 255, 255, 0.8);
                background-image: radial-gradient(circle at top right, rgba(37, 99, 235, 0.03) 0%, transparent 40%);
                backdrop-filter: blur(20px);
                -webkit-backdrop-filter: blur(20px);
                border: 1px solid rgba(0, 52, 145, 0.08);
                border-radius: 32px;
                box-shadow: 0 20px 40px rgba(0, 52, 145, 0.04);
                max-width: 1280px;
                width: calc(100% - 40px);
                margin: 40px auto 60px auto;
                padding: 80px 40px 40px 40px;
                color: #334155;
                font-family: 'Inter', sans-serif;
            }
            .footer-logo {
                width: 170px;
                margin-bottom: 25px;
            }
            .footer-desc {
                font-size: 0.95rem;
                line-height: 1.7;
                color: #64748b; /* Slate 500 */
                margin-bottom: 30px;
                max-width: 90%;
            }
            .footer-heading {
                margin-bottom: 25px;
                display: block;
            }
            .footer-heading a, .footer-heading span {
                color: #0F172A; /* Slate 900 */
                font-size: 0.75rem;
                font-weight: 800;
                text-transform: uppercase;
                letter-spacing: 0.1em;
                text-decoration: none;
            }
            .footer-heading a:hover {
                color: #2563eb; /* Blue 600 */
            }
            
            .footer-links {
                padding: 0;
                list-style: none;
                margin: 0;
            }
            .footer-links li {
                margin-bottom: 14px;
            }
            .footer-links a {
                color: #475569; /* Slate 600 */
                font-size: 0.95rem;
                text-decoration: none;
                transition: all 0.2s ease;
                display: inline-block;
            }
            .footer-links a:hover {
                color: #2563eb; /* Blue 600 */
                transform: translateX(4px);
            }
            
            .social-grid {
                display: flex;
                gap: 12px;
            }
            .social-btn {
                width: 40px;
                height: 40px;
                background: rgba(0, 0, 0, 0.02);
                border: 1px solid rgba(0, 0, 0, 0.06);
                border-radius: 8px;
                display: flex;
                align-items: center;
                justify-content: center;
                color: #475569;
                text-decoration: none;
                transition: all 0.3s ease;
            }
            .social-btn:hover {
                background: #2563eb;
                border-color: #2563eb;
                color: #fff;
                transform: translateY(-3px);
                box-shadow: 0 10px 20px -10px rgba(37, 99, 235, 0.4);
            }
 
            /* Ultra-Premium Glassmorphic App Section */
            .app-promo-card {
                position: relative;
                background: rgba(37, 99, 235, 0.04);
                backdrop-filter: blur(16px);
                -webkit-backdrop-filter: blur(16px);
                border: 1px solid rgba(37, 99, 235, 0.08);
                border-radius: 24px;
                padding: 40px 50px;
                overflow: hidden;
                display: flex;
                flex-wrap: wrap;
                align-items: center;
                justify-content: space-between;
                gap: 30px;
                margin-top: 20px;
            }
            .app-promo-card::before {
                content: '';
                position: absolute;
                top: 0;
                left: -100%;
                width: 50%;
                height: 100%;
                background: linear-gradient(90deg, transparent, rgba(37, 99, 235, 0.02), transparent);
                transform: skewX(-20deg);
                animation: shine 8s infinite;
            }
            @keyframes shine {
                0% { left: -100%; }
                20% { left: 200%; }
                100% { left: 200%; }
            }
            
            .app-promo-content {
                position: relative;
                z-index: 1;
                max-width: 500px;
            }
            .float-icon {
                font-size: 2.5rem;
                color: #2563eb;
                margin-bottom: 20px;
                display: inline-block;
                animation: float 6s ease-in-out infinite;
            }
            @keyframes float {
                0% { transform: translateY(0px); }
                50% { transform: translateY(-8px); }
                100% { transform: translateY(0px); }
            }
            .app-promo-title {
                font-size: 2.2rem;
                font-weight: 900;
                color: #0F172A;
                margin-bottom: 10px;
                letter-spacing: -0.03em;
            }
            .app-promo-subtitle {
                font-size: 1.1rem;
                color: #475569;
                line-height: 1.6;
            }
            .app-status-badge {
                display: inline-flex;
                align-items: center;
                gap: 8px;
                background: rgba(16, 185, 129, 0.15);
                color: #059669; /* Emerald 600 */
                border: 1px solid rgba(16, 185, 129, 0.25);
                padding: 6px 14px;
                border-radius: 20px;
                font-size: 0.75rem;
                font-weight: 800;
                letter-spacing: 1px;
                margin-bottom: 20px;
            }
            
            .promo-actions {
                display: flex;
                gap: 15px;
                flex-wrap: wrap;
                z-index: 1;
            }
            .mobile-btn {
                display: inline-flex;
                align-items: center;
                background: #0F172A;
                color: #FFFFFF;
                text-decoration: none;
                padding: 14px 28px;
                border-radius: 14px;
                transition: all 0.3s ease;
                font-weight: 800;
                box-shadow: 0 4px 15px rgba(15,23,42,0.15);
            }
            .mobile-btn:hover {
                transform: translateY(-3px);
                background: #2563eb;
                color: #FFFFFF;
                box-shadow: 0 10px 25px rgba(37, 99, 235, 0.4);
            }
            .mobile-btn i {
                font-size: 24px;
                margin-right: 12px;
            }
            .mobile-text {
                display: flex;
                flex-direction: column;
                font-size: 0.65rem;
                text-transform: uppercase;
                letter-spacing: 1px;
                color: inherit;
                opacity: 0.8;
            }
            .mobile-text span {
                font-size: 1.1rem;
                font-weight: 800;
                text-transform: none;
                letter-spacing: 0;
                opacity: 1;
                margin-top: -2px;
            }
            
            .copyright-bar {
                margin-top: 60px;
                padding-top: 30px;
                border-top: 1px solid rgba(0, 52, 145, 0.08);
                display: flex;
                flex-wrap: wrap;
                justify-content: space-between;
                align-items: center;
                gap: 20px;
            }
            .copyright-text {
                color: #64748B; /* Slate 500 */
                font-size: 0.9rem;
            }
            .copyright-links {
                display: flex;
                gap: 20px;
                flex-wrap: wrap;
                padding-right: 170px; /* Safe space for the floating help button */
            }
            .copyright-links a {
                color: #64748B;
                text-decoration: none;
                font-size: 0.9rem;
                transition: color 0.2s;
            }
            .copyright-links a:hover {
                color: #2563eb;
            }
 
            /* Prevent hero badge & mockup status dots from squishing inside wrapped flex headers */
            .inline-flex .rounded-full.animate-pulse,
            .flex .rounded-full.animate-pulse,
            .flex .rounded-full.animate-ping,
            .w-2.h-2.rounded-full,
            .w-2\.5.h-2\.5.rounded-full,
            .w-3.h-3.rounded-full {
                flex-shrink: 0;
            }

            @media (max-width: 991px) {
                .main-footer {
                    padding: 40px 20px 30px 20px;
                    width: calc(100% - 20px);
                    margin: 20px auto 40px auto;
                    border-radius: 24px;
                }
                .app-promo-card {
                    flex-direction: column;
                    align-items: flex-start;
                    padding: 30px;
                }
                .footer-heading {
                    margin-top: 20px;
                }
                .copyright-links {
                    padding-right: 70px;
                }
            }

            /* Scoped Bootstrap Grid Fallbacks */
            .main-footer * { box-sizing: border-box; }
            .main-footer .container {
                width: 100%;
                padding-right: 15px;
                padding-left: 15px;
                margin-right: auto;
                margin-left: auto;
            }
            @media (min-width: 576px) { .main-footer .container { max-width: 540px; } }
            @media (min-width: 768px) { .main-footer .container { max-width: 720px; } }
            @media (min-width: 992px) { .main-footer .container { max-width: 960px; } }
            @media (min-width: 1200px) { .main-footer .container { max-width: 1140px; } }
            @media (min-width: 1400px) { .main-footer .container { max-width: 1320px; } }

            .main-footer .row {
                display: flex;
                flex-wrap: wrap;
                margin-right: -15px;
                margin-left: -15px;
            }
            .main-footer .row > * {
                flex-shrink: 0;
                width: 100%;
                max-width: 100%;
                padding-right: 15px;
                padding-left: 15px;
            }
            .main-footer .col-6 { flex: 0 0 auto; width: 50%; }
            .main-footer .col-12 { flex: 0 0 auto; width: 100%; }
            .main-footer .mb-4 { margin-bottom: 1.5rem; }

            .px-footer-grid {
                display: grid;
                grid-template-columns: repeat(2, minmax(0, 1fr));
                gap: 28px 20px;
            }
            @media (min-width: 768px) {
                .px-footer-grid {
                    grid-template-columns: repeat(3, minmax(0, 1fr));
                }
                .main-footer .col-md-12 { flex: 0 0 auto; width: 100%; }
            }
            @media (min-width: 992px) {
                .px-footer-grid {
                    grid-template-columns: repeat(5, minmax(0, 1fr));
                    gap: 24px 18px;
                }
                .main-footer .col-lg-3 { flex: 0 0 auto; width: 25%; }
                .main-footer .col-lg-9 { flex: 0 0 auto; width: 75%; }
                .main-footer .col-lg-2 { flex: 0 0 auto; width: 16.666667%; }
                .main-footer .col-lg-1 { flex: 0 0 auto; width: 8.333333%; }
                .main-footer .mt-lg-4 { margin-top: 1.5rem; }
            }
            .px-footer-grid .footer-links li {
                margin-bottom: 10px;
            }
            .px-footer-grid .footer-links a {
                font-size: 0.88rem;
                line-height: 1.35;
            }
            .px-footer-grid .footer-heading {
                margin-bottom: 16px;
            }

            @media (max-width: 767px) {
                .main-footer {
                    padding: 32px 12px 24px 12px;
                    width: calc(100% - 16px);
                    margin: 16px auto 32px auto;
                    border-radius: 22px;
                }
                .main-footer .container {
                    padding-left: 4px;
                    padding-right: 4px;
                }
                .main-footer .row {
                    margin-left: -4px;
                    margin-right: -4px;
                }
                .main-footer .row > * {
                    padding-left: 4px;
                    padding-right: 4px;
                }
                .px-footer-grid {
                    gap: 22px 12px;
                }
                .px-footer-grid .footer-heading {
                    margin-top: 0;
                    margin-bottom: 12px;
                }
                .px-footer-grid .footer-heading a,
                .px-footer-grid .footer-heading span {
                    font-size: 0.7rem;
                    letter-spacing: 0.04em;
                }
                .px-footer-grid .footer-links a {
                    font-size: 0.81rem;
                    line-height: 1.35;
                }
                nav[aria-label="Breadcrumb"] ol,
                nav[aria-label="Breadcrumb"] ul,
                nav[aria-label="breadcrumb"] ol,
                nav[aria-label="breadcrumb"] ul {
                    flex-wrap: wrap;
                    row-gap: 4px;
                }
                .cx-breadcrumb .breadcrumb-item {
                    display: inline-flex;
                    align-items: baseline;
                }
                .cx-breadcrumb .breadcrumb-item.active {
                    display: inline-block;
                    max-width: 100%;
                    white-space: nowrap;
                    overflow: hidden;
                    text-overflow: ellipsis;
                    vertical-align: bottom;
                }
                /* Prevent Bootstrap !important .p-5 (48px) and .px-4 (24px) from crushing mobile hero cards */
                .hero-image-card {
                    padding: 1rem !important;
                    border-radius: 1.5rem !important;
                }
                #hero-section-override {
                    margin: 76px auto 20px auto !important;
                    padding: 28px 14px !important;
                    width: calc(100% - 16px) !important;
                    border-radius: 24px !important;
                }
                #features-hero .max-w-7xl.px-4,
                #hero-section-override .max-w-7xl.px-4 {
                    padding-left: 0.75rem !important;
                    padding-right: 0.75rem !important;
                }
            }
        

                .px-help-fab {
                    position: fixed;
                    bottom: 28px;
                    right: 28px;
                    z-index: 9999;
                    display: inline-flex;
                    align-items: center;
                    gap: 10px;
                    background: #2563eb;
                    color: #fff;
                    text-decoration: none;
                    padding: 14px 22px;
                    border-radius: 50px;
                    font-family: 'Inter', sans-serif;
                    font-weight: 800;
                    font-size: 0.875rem;
                    box-shadow: 0 8px 30px rgba(37,99,235,0.35);
                    transition: all 0.3s ease;
                    border: none;
                    cursor: pointer;
                }
                .px-help-fab:hover {
                    background: #1d4ed8;
                    transform: translateY(-3px);
                    box-shadow: 0 16px 40px rgba(37,99,235,0.45);
                    color: #fff;
                    text-decoration: none;
                }
                .px-help-fab i { font-size: 1.1rem; }
                @media (max-width: 640px) {
                    .px-help-fab span.fab-label { display: none; }
                    .px-help-fab { padding: 14px; border-radius: 50%; }
                }
