/* ========================================
   PROFESSIONAL FIX - Text, Images & Colors
   Comprehensive fix for oversized text, image sizing, and color improvements
   ======================================== */

/* ========================================
   0. NAVBAR - ALWAYS WHITE BACKGROUND
   ======================================== */

/* Force navbar to always have white background */
.modern-navbar,
nav.modern-navbar {
    background-color: rgba(255, 255, 255, 0.98) !important;
    backdrop-filter: blur(12px) !important;
    -webkit-backdrop-filter: blur(12px) !important;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06) !important;
}

/* Remove backgrounds from why-card icons when using images */
.why-card-icon:has(img) {
    background: transparent !important;
    background-color: transparent !important;
    border: none !important;
    box-shadow: none !important;
}

/* ========================================
   1. HERO HEADING SIZE REDUCTION
   ======================================== */

/* Reduce hero heading size - Professional scale */
.modern-hero-heading,
.hero-title,
.page-title,
.home-hero-section h1,
.accounting-hero-section h1,
.pos-hero-section h1 {
    font-size: clamp(1.75rem, 4vw, 2.2rem) !important; /* Reduced from 3rem */
    line-height: 1.25 !important;
    font-weight: 800 !important;
    letter-spacing: -0.02em !important;
    color: #0f172a !important; /* Dark slate - not black */
    -webkit-font-smoothing: antialiased !important;
    -moz-osx-font-smoothing: grayscale !important;
    visibility: visible !important;
    opacity: 1 !important;
    display: block !important;
}

/* Hero heading second line */
.modern-hero-heading .hero-heading-second-line {
    color: #1e293b !important; /* Slightly lighter for hierarchy */
    font-weight: 700 !important;
}

/* Typewriter text styling */
#typewriter-text {
    color: #1E5CAA !important;
    font-weight: 800 !important;
}

/* Typewriter cursor */
.typewriter-cursor {
    color: #1E5CAA !important;
    animation: blink 1s infinite !important;
}

@keyframes blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0.3; }
}

/* Mobile hero heading - Reduced */
@media (max-width: 576px) {
    .modern-hero-heading,
    .hero-title,
    .page-title {
        font-size: clamp(1.5rem, 7vw, 2rem) !important; /* Reduced from 2.25rem */
        line-height: 1.3 !important;
    }
}

/* Tablet hero heading */
@media (min-width: 577px) and (max-width: 768px) {
    .modern-hero-heading {
        font-size: clamp(1.75rem, 5vw, 2.25rem) !important; /* Reduced */
    }
}

/* Desktop hero heading */
@media (min-width: 992px) {
    .modern-hero-heading {
        font-size: clamp(2rem, 3.5vw, 2.5rem) !important; /* Reduced from 3rem */
    }
}

/* ========================================
   2. HERO TEXT SIZE REDUCTION
   ======================================== */

/* Reduce hero text size */
.modern-hero-text,
.hero-text,
.hero-description {
    font-size: clamp(0.9375rem, 1.5vw, 1.125rem) !important; /* Reduced */
    line-height: 1.7 !important;
    font-weight: 400 !important;
    color: #475569 !important; /* Professional grey */
    max-width: 32rem !important;
    -webkit-font-smoothing: antialiased !important;
    -moz-osx-font-smoothing: grayscale !important;
    visibility: visible !important;
    opacity: 1 !important;
    display: block !important;
}

/* Mobile hero text */
@media (max-width: 576px) {
    .modern-hero-text {
        font-size: clamp(0.875rem, 3.5vw, 1rem) !important;
        line-height: 1.65 !important;
    }
}

/* ========================================
   3. SECTION HEADINGS SIZE REDUCTION
   ======================================== */

/* Reduce section heading sizes */
.section-title,
.section-heading,
.products-section-heading,
.trusted-by-heading,
.why-moneypex-heading,
.testimonials-heading,
.benefits-wrapper-modern h2,
.empowering-businesses-section h2 {
    font-size: clamp(1.5rem, 3.5vw, 2.25rem) !important; /* Reduced from 2.5rem */
    line-height: 1.3 !important;
    font-weight: 800 !important;
    letter-spacing: -0.01em !important;
    color: #0f172a !important;
    visibility: visible !important;
    opacity: 1 !important;
    display: block !important;
}

/* Mobile section headings */
@media (max-width: 767px) {
    .section-title,
    .products-section-heading,
    .trusted-by-heading,
    .why-moneypex-heading {
        font-size: clamp(1.375rem, 6vw, 1.875rem) !important; /* Reduced */
    }
}

/* ========================================
   4. FIX ALL LARGE TEXT SIZES
   ======================================== */

/* Fix any 3rem+ font sizes */
h1, .h1 {
    font-size: clamp(1.75rem, 4vw, 2.5rem) !important; /* Max 2.5rem instead of 3rem+ */
}

h2, .h2 {
    font-size: clamp(1.5rem, 3.5vw, 2.25rem) !important; /* Max 2.25rem */
}

/* Fix specific large text instances */
@media (max-width: 991px) {
    /* Reduce any oversized text on mobile/tablet - handled by clamp() values above */
}

/* ========================================
   5. HERO IMAGE SIZING FIXES
   ======================================== */

/* Hero image container */
.hero-image-wrapper {
    position: relative !important;
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    overflow: hidden !important;
}

/* Hero main image - Professional sizing */
.hero-main-image,
.home-hero-image,
.hero-dashboard-image {
    width: 100% !important;
    max-width: 600px !important; /* Limit max width */
    height: auto !important;
    object-fit: contain !important;
    object-position: center !important;
    display: block !important;
    margin: 0 auto !important;
    border-radius: 12px !important;
    box-shadow: 0 20px 60px -15px rgba(15, 23, 42, 0.15) !important;
    transition: transform 0.3s ease !important;
}

/* Hero image hover effect */
.hero-main-image:hover,
.home-hero-image:hover {
    transform: translateY(-4px) scale(1.02) !important;
    box-shadow: 0 25px 70px -15px rgba(15, 23, 42, 0.2) !important;
}

/* Mobile hero image */
@media (max-width: 767px) {
    .hero-main-image,
    .home-hero-image {
        max-width: 100% !important;
        max-height: 300px !important; /* Limit height on mobile */
        object-fit: contain !important;
    }
}

/* Tablet hero image */
@media (min-width: 768px) and (max-width: 991px) {
    .hero-main-image,
    .home-hero-image {
        max-width: 500px !important;
    }
}

/* Desktop hero image */
@media (min-width: 992px) {
    .hero-main-image,
    .home-hero-image {
        max-width: 600px !important;
    }
}

/* ========================================
   6. COLOR IMPROVEMENTS - Professional Palette
   ======================================== */

/* Primary Brand Color - Professional Blue */
:root {
    --primary-blue: #1E5CAA;
    --primary-blue-dark: #164a8a;
    --primary-blue-light: #2563eb;
    --text-primary: #0f172a;
    --text-secondary: #1e293b;
    --text-tertiary: #475569;
    --text-muted: #64748b;
    --bg-light: #f8fafc;
    --border-color: #e2e8f0;
}

/* Hero heading colors - Professional */
.modern-hero-heading {
    color: #0f172a !important; /* Dark slate - not black */
}

.modern-hero-heading .hero-heading-second-line {
    color: #1e293b !important; /* Professional dark gray - not black */
}

/* Hero text color - Professional grey */
.modern-hero-text {
    color: var(--text-tertiary) !important;
}

/* Section headings - Professional dark */
.section-title,
.products-section-heading,
.why-moneypex-heading {
    color: var(--text-primary) !important;
}

/* Section descriptions - Professional grey */
.section-subtitle,
.section-description {
    color: var(--text-muted) !important;
}

/* Links - Professional blue */
a,
.link,
.nav-link-modern {
    color: var(--primary-blue) !important;
}

a:hover,
.link:hover {
    color: var(--primary-blue-dark) !important;
}

/* Buttons - Professional styling matching design */
.btn-premium,
.btn-primary {
    background: linear-gradient(135deg, #3b82f6 0%, #1E5CAA 100%) !important;
    color: #ffffff !important; /* White text for better contrast */
    border: none !important;
    border-radius: 9999px !important; /* Fully rounded */
    padding: 0.875rem 2rem !important;
    font-size: clamp(0.9375rem, 1.5vw, 1.0625rem) !important;
    font-weight: 600 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 0.625rem !important;
    text-decoration: none !important;
    box-shadow: 0 4px 12px rgba(30, 92, 170, 0.2), 0 2px 4px rgba(30, 92, 170, 0.1) !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    position: relative !important;
    overflow: hidden !important;
    cursor: pointer !important;
    line-height: 1.5 !important;
}

/* Button text styling */
.btn-premium span,
.btn-primary span {
    color: #ffffff !important; /* White text for better contrast */
    font-weight: 600 !important;
    position: relative !important;
    z-index: 2 !important;
}

/* Button SVG icon - White arrow */
.btn-premium svg,
.btn-primary svg {
    color: #ffffff !important; /* White arrow icon */
    width: 1.125rem !important;
    height: 1.125rem !important;
    stroke-width: 2.5 !important;
    position: relative !important;
    z-index: 2 !important;
    transition: transform 0.3s ease !important;
}

/* Button hover state */
.btn-premium:hover,
.btn-primary:hover {
    background: linear-gradient(135deg, #2563eb 0%, #164a8a 100%) !important;
    box-shadow: 0 6px 16px rgba(30, 92, 170, 0.3), 0 4px 6px rgba(30, 92, 170, 0.15) !important;
    transform: translateY(-2px) !important;
    text-decoration: none !important;
}

/* Button hover - text stays white */
.btn-premium:hover span,
.btn-primary:hover span {
    color: #ffffff !important; /* Keep white text on hover */
}

/* Button hover - arrow moves right */
.btn-premium:hover svg,
.btn-primary:hover svg {
    transform: translateX(4px) !important;
    color: #ffffff !important; /* Keep white arrow */
}

/* Button active state */
.btn-premium:active,
.btn-primary:active {
    transform: translateY(0) scale(0.98) !important;
    box-shadow: 0 2px 8px rgba(30, 92, 170, 0.2) !important;
}

/* Hero section button specific styling */
.hero-button-animate .btn-premium,
.home-hero-section .btn-premium {
    padding: 0.875rem 2rem !important;
    font-size: clamp(0.9375rem, 1.5vw, 1.0625rem) !important;
    min-height: 48px !important;
}

/* Mobile button adjustments */
@media (max-width: 767px) {
    .btn-premium,
    .btn-primary {
        padding: 0.875rem 1.75rem !important;
        font-size: clamp(0.9375rem, 4vw, 1.0625rem) !important;
        width: auto !important;
        min-width: 160px !important;
    }
}

/* ========================================
   7. CARD & COMPONENT COLORS
   ======================================== */

/* Card titles - Professional */
.modern-card-title,
.mp-products-card__title,
.why-card-title {
    color: var(--text-primary) !important;
}

/* Card text - Professional grey */
.modern-card-text,
.mp-products-card__description,
.why-card-text {
    color: var(--text-tertiary) !important;
}

/* Card borders - Subtle */
.modern-card,
.mp-products-card,
.why-card {
    border-color: var(--border-color) !important;
}

/* ========================================
   8. BACKGROUND COLORS - Professional
   ======================================== */

/* Hero section background - Only apply white background to non-home hero sections */
.modern-hero-section:not(.home-hero-section) {
    background: #fff !important;
}

/* Section backgrounds */
.section-modern {
    background: #ffffff !important;
}

.section-modern-alt {
    background: var(--bg-light) !important;
}

/* ========================================
   9. FIX SPECIFIC LARGE TEXT INSTANCES
   ======================================== */

/* Fix any remaining 3rem font sizes */
*[style*="font-size: 3rem"],
*[style*="font-size: 4rem"] {
    font-size: clamp(1.75rem, 4vw, 2.5rem) !important;
}

/* Fix clamp values that are too large */
*[style*="clamp"][style*="3rem"],
*[style*="clamp"][style*="4rem"] {
    font-size: clamp(1.75rem, 4vw, 2.5rem) !important;
}

/* ========================================
   10. IMAGE OPTIMIZATION
   ======================================== */

/* All images - Professional sizing */
img {
    max-width: 100% !important;
    height: auto !important;
    object-fit: contain !important;
}

/* Hero images specifically */
.hero-image-wrapper img,
.hero-main-image,
.home-hero-image {
    max-width: 600px !important;
    width: 100% !important;
    height: auto !important;
}

/* Product images */
.product-image,
.mp-products-card img {
    max-width: 100% !important;
    height: auto !important;
    object-fit: cover !important;
    border-radius: 8px !important;
}

/* ========================================
   11. RESPONSIVE TEXT SIZE LIMITS
   ======================================== */

/* Prevent text from being too large on any screen */
@media (max-width: 767px) {
    h1, .h1, .modern-hero-heading {
        font-size: clamp(1.5rem, 7vw, 2rem) !important; /* Max 2rem on mobile */
    }
    
    h2, .h2 {
        font-size: clamp(1.375rem, 6vw, 1.875rem) !important; /* Max 1.875rem */
    }
}

@media (min-width: 768px) and (max-width: 991px) {
    h1, .h1, .modern-hero-heading {
        font-size: clamp(1.75rem, 5vw, 2.25rem) !important; /* Max 2.25rem on tablet */
    }
}

@media (min-width: 992px) {
    h1, .h1, .modern-hero-heading {
        font-size: clamp(2rem, 3.5vw, 2.5rem) !important; /* Max 2.5rem on desktop */
    }
}

/* ========================================
   12. PROFESSIONAL SPACING
   ======================================== */

/* Hero section spacing */
.modern-hero-section {
    padding-top: clamp(5rem, 8vh, 6.5rem) !important;
    padding-bottom: clamp(2rem, 6vh, 4rem) !important;
}

/* Section spacing */
.section-modern {
    padding-top: clamp(3rem, 6vh, 4.5rem) !important;
    padding-bottom: clamp(3rem, 6vh, 4.5rem) !important;
}

/* Section spacing medium */
.section-spacing-md {
    padding-top: clamp(3rem, 6vh, 4.5rem) !important;
    padding-bottom: clamp(3rem, 6vh, 4.5rem) !important;
}

/* ========================================
   13. TYPEWRITER TEXT COLOR FIX
   ======================================== */

/* Typewriter text - Professional blue */
#typewriter-text {
    color: var(--primary-blue) !important;
    font-weight: 800 !important;
}

/* Typewriter cursor - Matching blue */
.typewriter-cursor {
    color: var(--primary-blue) !important;
    font-weight: 800 !important;
}

/* ========================================
   14. OVERALL TEXT SIZE REDUCTION
   ======================================== */

/* Reduce all large headings globally */
h1, .h1 {
    font-size: clamp(1.75rem, 4vw, 2.5rem) !important; /* Reduced from 3rem+ */
}

h2, .h2 {
    font-size: clamp(1.5rem, 3.5vw, 2.25rem) !important; /* Reduced */
}

h3, .h3 {
    font-size: clamp(1.25rem, 3vw, 1.875rem) !important;
}

/* ========================================
   15. FINAL PROFESSIONAL TOUCHES
   ======================================== */

/* Smooth transitions */
* {
    transition: color 0.2s ease, background-color 0.2s ease !important;
}

/* Professional shadows */
.modern-card,
.mp-products-card {
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03) !important;
}

/* Professional borders */
.modern-card,
.mp-products-card {
    border: 1px solid var(--border-color) !important;
    border-radius: 12px !important;
}

/* ========================================
   16. MOBILE SPECIFIC FIXES
   ======================================== */

@media (max-width: 767px) {
    /* Ensure text is never too large on mobile */
    .modern-hero-heading {
        font-size: clamp(1.5rem, 7vw, 2rem) !important;
    }
    
    .modern-hero-text {
        font-size: clamp(0.875rem, 3.5vw, 1rem) !important;
    }
    
    /* Images should not overflow */
    .hero-main-image,
    .home-hero-image {
        max-height: 250px !important;
        width: 100% !important;
    }
}

/* ========================================
   17. DESKTOP OPTIMIZATIONS
   ======================================== */

@media (min-width: 992px) {
    /* Optimal sizes for desktop */
    .modern-hero-heading {
        font-size: clamp(2rem, 3.5vw, 2.5rem) !important; /* Professional size */
    }
    
    .modern-hero-text {
        font-size: 1.125rem !important; /* Optimal reading size */
    }
    
    /* Hero images - Professional max size */
    .hero-main-image,
    .home-hero-image {
        max-width: 600px !important;
    }
}

/* ========================================
   18. PRODUCT ICON IMAGES
   ======================================== */

/* Product icons in navbar dropdowns */
.dropdown-icon img {
    width: 20px !important;
    height: 20px !important;
    object-fit: contain !important;
    display: block !important;
}

/* Product icons in product list (home page) */
.product-icon img,
.modern-product-icon img {
    width: 40px !important;
    height: 40px !important;
    object-fit: contain !important;
    display: block !important;
}

/* Ensure product icon containers don't override image sizing */
.product-icon,
.modern-product-icon {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 56px !important;
    height: 56px !important;
    min-width: 56px !important;
    min-height: 56px !important;
    padding: 0 !important;
    margin: 0 !important;
}

/* Remove background colors and borders from icon containers when using images */
.product-icon:has(img),
.modern-product-icon:has(img),
.product-icon-blue:has(img),
.product-icon-purple:has(img),
.product-icon-orange:has(img),
.product-icon-teal:has(img),
.product-icon-indigo:has(img),
.product-icon-red:has(img),
.product-icon-yellow:has(img) {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
}

/* Force remove backgrounds with highest specificity */
.modern-products-section .product-icon-blue:has(img),
.modern-products-list .product-icon-blue:has(img),
.modern-product-icon.product-icon-blue:has(img),
.modern-products-section .product-icon-purple:has(img),
.modern-products-list .product-icon-purple:has(img),
.modern-product-icon.product-icon-purple:has(img),
.modern-products-section .product-icon-orange:has(img),
.modern-products-list .product-icon-orange:has(img),
.modern-product-icon.product-icon-orange:has(img),
.modern-products-section .product-icon-teal:has(img),
.modern-products-list .product-icon-teal:has(img),
.modern-product-icon.product-icon-teal:has(img),
.modern-products-section .product-icon-indigo:has(img),
.modern-products-list .product-icon-indigo:has(img),
.modern-product-icon.product-icon-indigo:has(img),
.modern-products-section .product-icon-red:has(img),
.modern-products-list .product-icon-red:has(img),
.modern-product-icon.product-icon-red:has(img),
.modern-products-section .product-icon-yellow:has(img),
.modern-products-list .product-icon-yellow:has(img),
.modern-product-icon.product-icon-yellow:has(img) {
    background: transparent !important;
    background-color: transparent !important;
    background-image: none !important;
    border: none !important;
    box-shadow: none !important;
}

/* Product detail card large icon */
.mp-products-card__icon-wrapper img,
.modern-card-icon-wrapper img {
    width: 80px !important;
    height: 80px !important;
    object-fit: contain !important;
    display: block !important;
}

/* Remove background from detail card icon container */
.mp-products-card__icon-wrapper:has(img),
.modern-card-icon-wrapper:has(img) {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
}

/* POS option cards icons */
.pos-option-icon img {
    width: 20px !important;
    height: 20px !important;
    object-fit: contain !important;
    display: block !important;
}

/* Remove background from POS option icon containers */
.pos-option-icon:has(img) {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
}

/* ========================================
   19. HIDE FAQ ICONS - COMPLETE REMOVAL
   ======================================== */

/* Hide all FAQ icons globally */
.faq-icon-wrapper,
.faq-icon {
    display: none !important;
    visibility: hidden !important;
    width: 0 !important;
    height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* Adjust accordion button padding and layout */
.accordion-button {
    padding-left: 1.25rem !important;
    gap: 0 !important;
}

/* Ensure FAQ accordion buttons don't have extra space */
.modern-faq .accordion-button,
.faq-growth-section .accordion-button,
.faqs .accordion-button {
    display: flex !important;
    align-items: center !important;
    text-align: left !important;
}

/* ========================================
   20. PROFESSIONAL PRICING SECTION DESIGN
   ======================================== */

/* Pricing section background */
.pricing-page {
    background: linear-gradient(180deg, #ffffff 0%, #ffffff 100%) !important;
    padding: 4rem 0 !important;
}

/* Improved pricing card */
.pos-pricing-card {
    background: #ffffff !important;
    border: 2px solid #e2e8f0 !important;
    border-radius: 1.5rem !important;
    padding: 2.5rem 2rem !important;
    position: relative !important;
    box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05) !important;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1) !important;
    overflow: visible !important;
}

/* Subtle gradient overlay for depth */
.pos-pricing-card::before {
    content: '' !important;
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    height: 4px !important;
    background: linear-gradient(90deg, #1E5CAA 0%, #2563eb 100%) !important;
    opacity: 0 !important;
    transition: opacity 0.3s ease !important;
}

/* Hover effect */
.pos-pricing-card:hover {
    transform: translateY(-6px) !important;
    box-shadow: 0 30px 50px -15px rgba(30, 92, 170, 0.2), 0 15px 20px -10px rgba(0, 0, 0, 0.08) !important;
    border-color: #bfdbfe !important;
}

.pos-pricing-card:hover::before {
    opacity: 1 !important;
}

/* Popular badge - improved */
.pos-pricing-badge {
    position: absolute !important;
    top: -0.75rem !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    z-index: 10 !important;
}

.badge-popular {
    background: linear-gradient(135deg, #1E5CAA 0%, #2563eb 100%) !important;
    color: #ffffff !important;
    font-size: 0.6875rem !important;
    font-weight: 700 !important;
    padding: 0.375rem 1rem !important;
    border-radius: 0.375rem !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 0.25rem !important;
    box-shadow: 0 4px 6px -1px rgba(30, 92, 170, 0.5), 0 2px 4px -1px rgba(30, 92, 170, 0.3) !important;
    letter-spacing: 0.05em !important;
    text-transform: uppercase !important;
}

/* Pricing header */
.pos-pricing-header {
    margin-bottom: 1.25rem !important;
    margin-top: 0.75rem !important;
    text-align: center !important;
    padding-bottom: 1.25rem !important;
    border-bottom: 1px solid #f1f5f9 !important;
}

.pos-pricing-title {
    font-size: 1.75rem !important;
    font-weight: 800 !important;
    color: #0f172a !important;
    margin-bottom: 0.5rem !important;
    letter-spacing: -0.02em !important;
}

.pos-pricing-subtitle {
    color: #64748b !important;
    font-size: 0.875rem !important;
    margin: 0 !important;
    font-weight: 500 !important;
}

/* Pricing amount - improved */
.pos-pricing-amount {
    margin-bottom: 1.75rem !important;
    text-align: center !important;
    padding: 1.25rem 0 !important;
    background: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%) !important;
    border-radius: 1rem !important;
    margin-left: -1rem !important;
    margin-right: -1rem !important;
    padding-left: 1rem !important;
    padding-right: 1rem !important;
}

.pos-price-display {
    display: flex !important;
    align-items: baseline !important;
    justify-content: center !important;
    gap: 0.375rem !important;
    margin-bottom: 0.625rem !important;
}

.pos-price-value {
    font-size: 2.75rem !important;
    font-weight: 800 !important;
    color: #1E5CAA !important;
    line-height: 1 !important;
    letter-spacing: -0.02em !important;
}

.pos-price-period {
    font-size: 1rem !important;
    color: #64748b !important;
    font-weight: 600 !important;
}

.pos-price-yearly {
    font-size: 0.8125rem !important;
    color: #1E5CAA !important;
    font-weight: 600 !important;
    margin: 0.375rem 0 !important;
}

.pos-trial-badge {
    display: inline-block !important;
    background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%) !important;
    color: #1E5CAA !important;
    font-size: 0.75rem !important;
    font-weight: 700 !important;
    padding: 0.375rem 1rem !important;
    border-radius: 9999px !important;
    margin-top: 0.625rem !important;
    border: none !important;
}

/* CTA Button - improved */
.pos-pricing-action {
    margin-bottom: 1.75rem !important;
}

.btn-pos-pricing {
    background: linear-gradient(135deg, #1E5CAA 0%, #2563eb 100%) !important;
    color: #ffffff !important;
    font-weight: 700 !important;
    font-size: 1rem !important;
    padding: 0.875rem 2rem !important;
    border-radius: 0.75rem !important;
    border: none !important;
    text-decoration: none !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    box-shadow: 0 8px 16px -4px rgba(30, 92, 170, 0.4), 0 4px 6px -2px rgba(30, 92, 170, 0.2) !important;
    display: inline-block !important;
    text-align: center !important;
}

.btn-pos-pricing:hover {
    background: linear-gradient(135deg, #164a8a 0%, #1E5CAA 100%) !important;
    color: #ffffff !important;
    transform: translateY(-2px) scale(1.02) !important;
    box-shadow: 0 16px 24px -8px rgba(30, 92, 170, 0.5), 0 8px 12px -4px rgba(30, 92, 170, 0.25) !important;
}

/* Features list - improved */
.pos-pricing-features {
    margin-bottom: 1.5rem !important;
}

.pos-features-list {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
    display: grid !important;
    gap: 0.75rem !important;
}

.pos-feature-item {
    display: flex !important;
    align-items: center !important;
    gap: 0.625rem !important;
    padding: 0 !important;
    transition: transform 0.2s ease !important;
}

.pos-feature-item:hover {
    transform: translateX(4px) !important;
}

.pos-feature-check {
    width: 18px !important;
    height: 18px !important;
    flex-shrink: 0 !important;
    color: #1E5CAA !important;
    stroke-width: 3 !important;
}

.pos-feature-item span {
    color: #475569 !important;
    font-size: 0.875rem !important;
    font-weight: 500 !important;
    line-height: 1.5 !important;
}

/* Section dividers - improved */
.pos-pricing-section-divider {
    border-top: 1px solid #e2e8f0 !important;
    padding-top: 1.25rem !important;
    margin-top: 1.25rem !important;
    margin-bottom: 1.25rem !important;
    background: #f8fafc !important;
    padding: 1.25rem !important;
    margin-left: -1rem !important;
    margin-right: -1rem !important;
    border-radius: 0.75rem !important;
}

.pos-section-title {
    font-size: 1rem !important;
    font-weight: 700 !important;
    color: #0f172a !important;
    margin-bottom: 1rem !important;
    letter-spacing: -0.01em !important;
    text-align: left !important;
}

/* Reports list - improved */
.pos-reports-list {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
    display: grid !important;
    gap: 0.5rem !important;
}

.pos-reports-list li {
    color: #64748b !important;
    font-size: 0.8125rem !important;
    font-weight: 500 !important;
    padding-left: 0 !important;
    line-height: 1.5 !important;
}

/* Additional charges - improved */
.pos-additional-charges-list {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
    display: grid !important;
    gap: 0.625rem !important;
}

.pos-charge-item {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    padding: 0.625rem 0.875rem !important;
    background: #ffffff !important;
    border-radius: 0.5rem !important;
    border: 1px solid #e2e8f0 !important;
    transition: all 0.2s ease !important;
}

.pos-charge-item:hover {
    background: #f8fafc !important;
    border-color: #bfdbfe !important;
    transform: translateX(2px) !important;
}

.pos-charge-label {
    color: #475569 !important;
    font-size: 0.875rem !important;
    font-weight: 600 !important;
}

.pos-charge-value {
    color: #1E5CAA !important;
    font-size: 0.9375rem !important;
    font-weight: 700 !important;
}

/* Billing toggle - improved */
.billing-toggle-wrapper {
    display: inline-flex !important;
    background: #f1f5f9 !important;
    border-radius: 9999px !important;
    padding: 0.25rem !important;
    position: relative !important;
    border: 1px solid #e2e8f0 !important;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.05) !important;
    overflow: hidden !important;
}

.billing-toggle-slider {
    position: absolute !important;
    top: 0.25rem !important;
    left: 0.25rem !important;
    width: calc(50% - 0.25rem) !important;
    height: calc(100% - 0.5rem) !important;
    background: linear-gradient(135deg, #1E5CAA 0%, #2563eb 100%) !important;
    border-radius: 9999px !important;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), left 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    box-shadow: 0 2px 6px rgba(30, 92, 170, 0.4), 0 1px 2px rgba(30, 92, 170, 0.2) !important;
    will-change: transform !important;
}

.billing-toggle-btn {
    position: relative !important;
    z-index: 2 !important;
    padding: 0.5rem 1.5rem !important;
    background: transparent !important;
    border: none !important;
    font-size: 0.875rem !important;
    font-weight: 600 !important;
    color: #64748b !important;
    cursor: pointer !important;
    transition: color 0.3s ease !important;
    border-radius: 9999px !important;
    white-space: nowrap !important;
    outline: none !important;
    user-select: none !important;
}

.billing-toggle-btn:hover {
    color: #475569 !important;
}

.billing-toggle-btn.active {
    color: #ffffff !important;
    font-weight: 700 !important;
}

.billing-save-note {
    font-size: 0.8125rem !important;
    color: #1E5CAA !important;
    margin-top: 0.625rem !important;
    font-weight: 600 !important;
}

/* Responsive pricing */
@media (max-width: 768px) {
    .pos-pricing-card {
        padding: 2rem 1.5rem !important;
        margin-top: 1.5rem !important;
    }
    
    .pos-price-value {
        font-size: 2.5rem !important;
    }
    
    .pos-pricing-title {
        font-size: 1.5rem !important;
    }
    
    .billing-toggle-btn {
        padding: 0.5rem 1.25rem !important;
        font-size: 0.875rem !important;
    }
}

@media (max-width: 576px) {
    .pos-pricing-card {
        padding: 1.5rem 1.25rem !important;
    }
    
    .pos-price-value {
        font-size: 2.25rem !important;
    }
    
    .pos-charge-item {
        padding: 0.625rem 0.875rem !important;
    }
    
    .pos-charge-label,
    .pos-charge-value {
        font-size: 0.875rem !important;
    }
}

/* ========================================
   21. SELECT APP CARDS - PROFESSIONAL DESIGN
   ======================================== */

/* App selection cards - improved */
.app-selection-card {
    background: #ffffff !important;
    border: 1.5px solid #e2e8f0 !important;
    border-radius: 1.25rem !important;
    padding: 2rem 1.5rem !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03) !important;
    display: flex !important;
    flex-direction: column !important;
    height: 100% !important;
}

.app-selection-card:hover {
    transform: translateY(-8px) !important;
    box-shadow: 0 20px 25px -5px rgba(30, 92, 170, 0.12), 0 10px 10px -5px rgba(0, 0, 0, 0.04) !important;
    border-color: #1E5CAA !important;
}

/* Icon wrapper - centered and professional */
.app-card-icon-wrapper {
    display: flex !important;
    justify-content: center !important;
    margin-bottom: 1.25rem !important;
}

.app-card-icon {
    width: 64px !important;
    height: 64px !important;
    border-radius: 1rem !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%) !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    padding: 0.75rem !important;
}

.app-selection-card:hover .app-card-icon {
    transform: scale(1.1) rotate(5deg) !important;
    box-shadow: 0 8px 16px -4px rgba(30, 92, 170, 0.25) !important;
}

.app-icon-svg {
    width: 32px !important;
    height: 32px !important;
    color: #1E5CAA !important;
    stroke-width: 2 !important;
}

.app-icon-img {
    width: 100% !important;
    height: 100% !important;
    object-fit: contain !important;
}

/* Card title - optimized size */
.app-selection-card .modern-card-title {
    font-size: 1.125rem !important;
    font-weight: 700 !important;
    color: #0f172a !important;
    margin-top: 0 !important;
    margin-bottom: 0.75rem !important;
    line-height: 1.3 !important;
    text-align: center !important;
    letter-spacing: -0.01em !important;
}

/* Card text - optimized size and alignment */
.app-selection-card .modern-card-text {
    color: #64748b !important;
    font-size: 0.9375rem !important;
    line-height: 1.6 !important;
    margin-bottom: 1.5rem !important;
    text-align: center !important;
    min-height: auto !important;
    flex-grow: 1 !important;
}

/* Button in cards */
.app-selection-card .btn-premium {
    margin-top: auto !important;
    padding: 0.75rem 1.5rem !important;
    font-size: 0.9375rem !important;
    font-weight: 600 !important;
    width: 100% !important;
}

/* Select app section spacing */
.select-app-section {
    padding-top: 5.5rem !important;
    padding-bottom: 3rem !important;
}

.modern-hero-section.select-app-section {
    padding-top: 5.5rem !important;
    padding-bottom: 3rem !important;
}

/* Responsive - Tablet */
@media (max-width: 991px) {
    .app-selection-card {
        padding: 1.75rem 1.25rem !important;
    }
    
    .app-card-icon {
        width: 56px !important;
        height: 56px !important;
    }
    
    .app-icon-svg {
        width: 28px !important;
        height: 28px !important;
    }
    
    .app-selection-card .modern-card-title {
        font-size: 1.0625rem !important;
    }
    
    .app-selection-card .modern-card-text {
        font-size: 0.875rem !important;
    }
}

/* Responsive - Mobile */
@media (max-width: 767px) {
    .select-app-section {
        padding-top: 5rem !important;
        padding-bottom: 2.5rem !important;
    }
    
    .modern-hero-section.select-app-section {
        padding-top: 5rem !important;
    }
    
    .app-selection-card {
        padding: 1.5rem 1.25rem !important;
        margin-bottom: 1rem !important;
    }
    
    .app-card-icon {
        width: 52px !important;
        height: 52px !important;
    }
    
    .app-icon-svg {
        width: 26px !important;
        height: 26px !important;
    }
    
    .app-selection-card .modern-card-title {
        font-size: 1rem !important;
        margin-bottom: 0.625rem !important;
    }
    
    .app-selection-card .modern-card-text {
        font-size: 0.875rem !important;
        margin-bottom: 1.25rem !important;
        line-height: 1.5 !important;
    }
    
    .app-selection-card .btn-premium {
        padding: 0.625rem 1.25rem !important;
        font-size: 0.875rem !important;
    }
}

/* Responsive - Small Mobile */
@media (max-width: 575px) {
    .app-selection-card {
        padding: 1.25rem 1rem !important;
    }
    
    .app-card-icon {
        width: 48px !important;
        height: 48px !important;
    }
    
    .app-icon-svg {
        width: 24px !important;
        height: 24px !important;
    }
}

/* ========================================
   22. HERO IMAGE OPTIMIZATION - POS PAGES
   ======================================== */

/* Hero images for POS pages - optimized sizing */
.retail-pos-hero-section .hero-main-image,
.restaurant-pos-hero-section .hero-main-image,
.pharmacy-pos-hero-section .hero-main-image,
.shoe-pos-hero-section .hero-main-image,
.pos-hero-section .hero-main-image {
    max-width: 500px !important;
    max-height: 400px !important;
    width: 100% !important;
    height: auto !important;
    object-fit: contain !important;
    margin: 0 auto !important;
    display: block !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    border: none !important;
}

/* Hero image wrapper for POS pages */
.retail-pos-hero-section .hero-image-wrapper,
.restaurant-pos-hero-section .hero-image-wrapper,
.pharmacy-pos-hero-section .hero-image-wrapper,
.shoe-pos-hero-section .hero-image-wrapper,
.pos-hero-section .hero-image-wrapper {
    max-width: 500px !important;
    margin: 0 auto !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 0 !important;
    box-shadow: none !important;
    border: none !important;
    background: transparent !important;
}

/* Tablet - POS hero images */
@media (min-width: 768px) and (max-width: 991px) {
    .retail-pos-hero-section .hero-main-image,
    .restaurant-pos-hero-section .hero-main-image,
    .pharmacy-pos-hero-section .hero-main-image,
    .shoe-pos-hero-section .hero-main-image,
    .pos-hero-section .hero-main-image {
        max-width: 450px !important;
        max-height: 350px !important;
    }
}

/* Mobile - POS hero images */
@media (max-width: 767px) {
    .retail-pos-hero-section .hero-main-image,
    .restaurant-pos-hero-section .hero-main-image,
    .pharmacy-pos-hero-section .hero-main-image,
    .shoe-pos-hero-section .hero-main-image,
    .pos-hero-section .hero-main-image {
        max-width: 100% !important;
        max-height: 280px !important;
    }
    
    .retail-pos-hero-section .hero-image-wrapper,
    .restaurant-pos-hero-section .hero-image-wrapper,
    .pharmacy-pos-hero-section .hero-image-wrapper,
    .shoe-pos-hero-section .hero-image-wrapper,
    .pos-hero-section .hero-image-wrapper {
        max-width: 100% !important;
        padding: 0.5rem !important;
    }
}

/* Desktop - POS hero images */
@media (min-width: 992px) and (max-width: 1399px) {
    .retail-pos-hero-section .hero-main-image,
    .restaurant-pos-hero-section .hero-main-image,
    .pharmacy-pos-hero-section .hero-main-image,
    .shoe-pos-hero-section .hero-main-image,
    .pos-hero-section .hero-main-image {
        max-width: 480px !important;
        max-height: 380px !important;
    }
}

/* Large Desktop - POS hero images */
@media (min-width: 1400px) {
    .retail-pos-hero-section .hero-main-image,
    .restaurant-pos-hero-section .hero-main-image,
    .pharmacy-pos-hero-section .hero-main-image,
    .shoe-pos-hero-section .hero-main-image,
    .pos-hero-section .hero-main-image {
        max-width: 500px !important;
        max-height: 400px !important;
    }
}

/* ========================================
   23. FBR COMPLIANCE SECTIONS - PROFESSIONAL DESIGN
   ======================================== */

/* FBR compliance section */
.fbr-compliance-section {
    padding: 4rem 0 !important;
}

.fbr-compliance-section .row {
    display: flex !important;
    align-items: center !important;
    gap: 2rem !important;
}

/* FBR section headings */
.fbr-heading {
    font-size: clamp(1.75rem, 3vw, 2.25rem) !important;
    font-weight: 800 !important;
    color: #0f172a !important;
    margin-bottom: 1rem !important;
    line-height: 1.2 !important;
    letter-spacing: -0.02em !important;
}

/* FBR accent text (underlined parts) */
.fbr-accent {
    color: #1E5CAA !important;
}

/* FBR section description */
.fbr-text {
    font-size: clamp(1rem, 1.5vw, 1.125rem) !important;
    color: #64748b !important;
    line-height: 1.7 !important;
    margin-bottom: 1.5rem !important;
    font-weight: 400 !important;
}

/* FBR features list */
.fbr-features {
    display: flex !important;
    flex-direction: column !important;
    gap: 1.25rem !important;
    margin-top: 0 !important;
}

/* Individual feature item */
.fbr-feature-item {
    display: flex !important;
    align-items: flex-start !important;
    gap: 1.25rem !important;
    padding: 1.25rem !important;
    background: #ffffff !important;
    border-radius: 0.75rem !important;
    border: 1px solid #f1f5f9 !important;
    transition: all 0.3s ease !important;
}

.fbr-feature-item:hover {
    background: #f8fafc !important;
    border-color: #e2e8f0 !important;
    transform: translateX(4px) !important;
}

/* Feature icon wrapper */
.fbr-feature-icon {
    width: 56px !important;
    height: 56px !important;
    min-width: 56px !important;
    border-radius: 1rem !important;
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex-shrink: 0 !important;
    box-shadow: 0 2px 8px rgba(30, 92, 170, 0.1) !important;
    transition: all 0.3s ease !important;
}

.fbr-feature-item:hover .fbr-feature-icon {
    transform: scale(1.05) !important;
    box-shadow: 0 4px 12px rgba(30, 92, 170, 0.2) !important;
}

.fbr-feature-icon svg {
    width: 28px !important;
    height: 28px !important;
    color: #1E5CAA !important;
    stroke-width: 2 !important;
}

/* Feature content */
.fbr-feature-content {
    flex: 1 !important;
    padding-top: 0.25rem !important;
}

.fbr-feature-title {
    font-size: 1.125rem !important;
    font-weight: 700 !important;
    color: #0f172a !important;
    margin-bottom: 0.625rem !important;
    line-height: 1.3 !important;
    letter-spacing: -0.01em !important;
}

.fbr-feature-description {
    font-size: 0.9375rem !important;
    color: #64748b !important;
    line-height: 1.65 !important;
    margin: 0 !important;
    font-weight: 400 !important;
}

/* FBR content and image containers */
.fbr-content {
    flex: 1 !important;
    padding: 2rem !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
}

.fbr-image {
    flex: 1 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 2rem !important;
}

.fbr-image-wrapper {
    width: 100% !important;
    max-width: 550px !important;
    margin: 0 auto !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.fbr-image-wrapper img {
    width: 100% !important;
    max-width: 550px !important;
    height: auto !important;
    object-fit: contain !important;
    border-radius: 1rem !important;
    box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.1) !important;
}

/* Responsive - Mobile */
@media (max-width: 991px) {
    .fbr-content,
    .fbr-image {
        padding: 1.5rem 1rem !important;
    }
    
    .fbr-heading {
        font-size: 1.75rem !important;
    }
    
    .fbr-text {
        font-size: 1rem !important;
    }
    
    .fbr-feature-icon {
        width: 40px !important;
        height: 40px !important;
        min-width: 40px !important;
    }
    
    .fbr-feature-icon svg {
        width: 20px !important;
        height: 20px !important;
    }
    
    .fbr-feature-title {
        font-size: 1rem !important;
    }
    
    .fbr-feature-description {
        font-size: 0.875rem !important;
    }
}

/* ========================================
   24. KEY FEATURES SECTION - ALIGNMENT FIX
   ======================================== */

/* Benefits wrapper */
.benefits-wrapper-modern {
    padding: 4rem 0 !important;
    background: #ffffff !important;
}

/* Benefit cards - professional design */
.benefit-card-modern {
    background: #ffffff !important;
    border: 1.5px solid #e2e8f0 !important;
    border-radius: 1.25rem !important;
    padding: 2rem 1.5rem !important;
    text-align: center !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03) !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    height: 100% !important;
}

.benefit-card-modern:hover {
    transform: translateY(-6px) !important;
    box-shadow: 0 20px 25px -5px rgba(30, 92, 170, 0.12), 0 10px 10px -5px rgba(0, 0, 0, 0.04) !important;
    border-color: #bfdbfe !important;
}

/* Benefit icon wrapper */
.benefit-icon-wrapper {
    width: 80px !important;
    height: 80px !important;
    margin: 0 auto 1.5rem !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%) !important;
    border-radius: 1rem !important;
    padding: 1rem !important;
}

.benefit-icon-img {
    width: 100% !important;
    height: 100% !important;
    object-fit: contain !important;
}

/* Benefit title */
.benefit-title {
    font-size: 1.125rem !important;
    font-weight: 700 !important;
    color: #0f172a !important;
    margin-bottom: 0.75rem !important;
    line-height: 1.3 !important;
    text-align: center !important;
}

/* Benefit description */
.benefit-description {
    font-size: 0.9375rem !important;
    color: #64748b !important;
    line-height: 1.6 !important;
    margin: 0 !important;
    text-align: center !important;
}

/* Fix column alignment on medium screens */
@media (min-width: 768px) and (max-width: 991px) {
    .benefits-wrapper-modern .col-md-4 {
        flex: 0 0 50% !important;
        max-width: 50% !important;
    }
}

/* Mobile - stack cards */
@media (max-width: 767px) {
    .benefit-card-modern {
        padding: 1.5rem 1.25rem !important;
    }
    
    .benefit-icon-wrapper {
        width: 64px !important;
        height: 64px !important;
        margin-bottom: 1.25rem !important;
    }
    
    .benefit-title {
        font-size: 1rem !important;
    }
    
    .benefit-description {
        font-size: 0.875rem !important;
    }
}

