/* =============================================================
   PaystubX — Responsive Fix (added: local dev pass)
   Load order: LAST — safe to override existing styles.
   All rules are targeted; nothing is global-reset.
   ============================================================= */

/* ================================================================
   0. SITE HEADER  –  clean, professional, sticky navbar
   No legacy navbar elements remain in the Blade. All old .navbar,
   .openbtn, and .sidenav rules from newstyle.css are neutralised
   here with higher-specificity or !important overrides.
   ================================================================ */

/* ── Kill legacy elements that newstyle.css tries to show ── */
.openbtn,
div.openbtn                         { display: none !important; }
ul.nav.nav-justified.navbar         { display: none !important; margin: 0 !important; }

/* ── Header bar ──
   No border-bottom: on UK / Canada / Global the colored hero sits flush
   under the header; a 1px grey line looked broken vs. the home page.  */
.site-header {
    position: sticky;
    top: 0;
    z-index: 300;
    background: #ffffff;
    border-bottom: none;
    box-shadow: 0 1px 0 rgba(0,0,0,0.04), 0 4px 20px rgba(0,0,0,0.05);
}

/* Inner wrapper: 1500px matches the page body max-width so logo
   left-edge lines up perfectly with content sections below */
.site-header__inner {
    display: flex;
    align-items: center;
    max-width: 1500px;
    width: 100%;
    margin: 0 auto;
    padding: 0 30px;
    height: 80px;
    gap: 0;
}

/* ── Logo – left-aligned ── */
/* Nudge 15px right: header inner has 30px left padding but hero text inside a Bootstrap col
   gets an additional 15px column padding, so both land at 45px from the viewport edge. */
.site-header__logo {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    text-decoration: none !important;
    margin-right: 0;
    padding-left: 15px;
}

.site-header__logo img {
    width: 190px;
    height: auto;
    display: block;
}

/* ── Desktop nav – centered between logo and login ── */
.site-header__nav {
    display: flex;
    align-items: center;
    gap: 6px;                   /* breathing room between items */
    flex: 1;
    justify-content: center;
    margin: 0 24px;
}

/* Base link — Inter/system-ui for crisp professional rendering
   Animated underline technique (Stripe / Linear / Vercel style) */
.site-header__link {
    position: relative;
    display: inline-block;
    font-family: 'Inter', 'Outfit', -apple-system, BlinkMacSystemFont,
                 'Segoe UI', Helvetica, Arial, sans-serif;
    font-size: 17px;
    font-weight: 600;
    color: #1a1a1a;
    text-decoration: none !important;
    padding: 9px 20px;
    border-radius: 8px;
    white-space: nowrap;
    letter-spacing: 0.25px;
    transition: color 0.2s ease, background-color 0.2s ease;
    border: none !important;
    box-shadow: none !important;
    background-color: transparent;
    line-height: 1.4;
}

/* Animated underline bar */
.site-header__link::after {
    content: '';
    position: absolute;
    bottom: 4px;
    left: 50%;
    right: 50%;
    height: 2px;
    background: #1a6a8a;
    border-radius: 2px;
    transition: left 0.22s ease, right 0.22s ease;
}

.site-header__link:hover {
    color: #1a6a8a;
    background-color: rgba(26, 106, 138, 0.06);
    text-decoration: none !important;
}

.site-header__link:hover::after {
    left: 16px;
    right: 16px;
}

.site-header__link.is-active {
    color: #1a6a8a;
    background-color: rgba(26, 106, 138, 0.08);
    font-weight: 700;
}

.site-header__link.is-active::after {
    left: 14px;
    right: 14px;
}

/* Pricing — pill button, distinct from regular links */
.site-header__link--pricing {
    color: #c8280a !important;
    background-color: transparent !important;
    border: 2px solid #c8280a !important;
    border-radius: 8px !important;
    padding: 6px 16px !important;
    margin-left: 6px;
    font-weight: 700;
    transition: background-color 0.2s ease, color 0.2s ease, transform 0.15s ease !important;
}

.site-header__link--pricing::after { display: none; } /* no underline on pill */

.site-header__link--pricing:hover,
.site-header__link--pricing.is-active {
    background-color: #c8280a !important;
    color: #ffffff !important;
    transform: translateY(-1px);
    text-decoration: none !important;
}

/* ── Auth area ── */
.site-header__auth {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.site-header__login-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #d32f0c;
    color: #ffffff !important;
    font-size: 15px;
    font-weight: 700;
    padding: 9px 26px;
    border-radius: 8px;
    text-decoration: none !important;
    cursor: pointer;
    white-space: nowrap;
    letter-spacing: 0.2px;
    transition: background-color 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
    box-shadow: 0 2px 8px rgba(211,47,12,0.25);
}

.site-header__login-btn:hover {
    background: #b02509;
    color: #ffffff !important;
    text-decoration: none !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(211,47,12,0.35);
}

.site-header__login-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 6px rgba(211,47,12,0.2);
}

.site-header__user-menu {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: clamp(6px, 1.5vw, 12px);
    flex-wrap: nowrap;
    min-width: 0;
}

/* Kill legacy offsets; lock avatar box so flex never squishes it (was stretching img width:100%) */
.site-header__user-menu .user-icon,
.site-header__user-menu .logout {
    position: static !important;
    top: auto !important;
    left: auto !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex-shrink: 0 !important;
}

.site-header__user-menu .user-icon {
    flex: 0 0 36px !important;
    width: 36px !important;
    height: 36px !important;
    min-width: 36px !important;
    min-height: 36px !important;
    max-width: 36px !important;
    overflow: hidden !important;
    border-radius: 50% !important;
    box-sizing: border-box !important;
}

.site-header__user-menu .user-icon img {
    width: 100% !important;
    height: 100% !important;
    max-width: none !important;
    border-radius: 50% !important;
    object-fit: cover !important;
    object-position: center center !important;
    border: 2px solid #e8e8e8 !important;
    transition: border-color 0.2s !important;
    display: block !important;
}

.site-header__user-menu .user-icon img:hover { border-color: #1a6a8a !important; }

.site-header__user-menu .logout {
    flex: 0 0 auto !important;
    width: 32px !important;
    height: 32px !important;
}

.site-header__user-menu .logout img {
    width: 28px !important;
    height: 28px !important;
    max-width: none !important;
    object-fit: contain !important;
    display: block !important;
    cursor: pointer !important;
}

/* newstyle .dropbtn { width:100% } blows up the greeting pill inside flex — hug content instead */
.site-header__user-menu .dropbtn {
    width: auto !important;
    max-width: min(280px, 58vw) !important;
    flex: 0 1 auto !important;
    min-width: 0 !important;
    margin-right: 0 !important;
    padding: 4px 10px 4px 12px !important;
}

.site-header__user-menu .dropbtn .navright-btn {
    font-size: clamp(13px, 1.1vw, 15px) !important;
    padding: 6px 10px !important;
    white-space: nowrap !important;
}

@media (max-width: 1100px) {
    .site-header__user-menu .user-icon {
        flex: 0 0 34px !important;
        width: 34px !important;
        height: 34px !important;
        min-width: 34px !important;
        min-height: 34px !important;
        max-width: 34px !important;
    }
    .site-header__user-menu .dropbtn {
        max-width: min(240px, 50vw) !important;
    }
}

/* ── Hamburger button (hidden on desktop) ── */
.site-header__burger {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    flex-shrink: 0;
    margin-left: auto;
}

.site-header__burger span {
    display: block;
    width: 24px;
    height: 2px;
    background: #1a1a1a;
    border-radius: 2px;
    transition: background-color 0.2s ease;
}
.site-header__burger span:nth-child(2) { width: 18px; } /* middle bar shorter */

.site-header__burger:hover span { background: #d32f0c; }

/* ================================================================
   MOBILE SIDENAV
   newstyle.css applies: padding-top:60px, .sidenav a{display:block},
   .closebtn{position:absolute}. All overridden below.
   ================================================================ */

/* Full reset of newstyle sidenav for our new structure */
#mySidenav.sidenav {
    height: 100% !important;
    width: 0 !important;            /* CLOSED: hidden by default */
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    background-color: #0d1f30 !important;
    overflow-x: hidden !important;
    overflow-y: auto !important;
    transition: width 0.3s ease !important;
    padding-top: 0 !important;      /* kill newstyle's 60px */
    z-index: 400 !important;
    display: block !important;      /* always in DOM; width controls visibility */
    box-shadow: none;
}

/* OPEN state — toggled by JS via classList.add('sidenav--open').
   Higher specificity (3 selectors) beats the closed width: 0 !important. */
#mySidenav.sidenav.sidenav--open {
    width: 250px !important;
    box-shadow: 4px 0 24px rgba(0, 0, 0, 0.35) !important;
}

/* Sidenav header row (logo + close button) */
.sidenav__header {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    padding: 20px 22px 18px !important;
    border-bottom: 1px solid rgba(255,255,255,0.1) !important;
    min-height: 72px;
}

/* Override newstyle's .sidenav a { display:block; font-size:20px } for header links */
#mySidenav .sidenav__header a {
    display: inline-flex !important;
    align-items: center !important;
    font-size: inherit !important;
    padding: 0 !important;
    background: transparent !important;
    color: inherit !important;
}

/* Close button — override newstyle's position:absolute */
#mySidenav .closebtn {
    position: static !important;
    top: unset !important;
    right: unset !important;
    margin-left: 0 !important;
    font-size: 28px !important;
    font-weight: 300;
    line-height: 1 !important;
    color: rgba(255,255,255,0.7) !important;
    text-decoration: none !important;
    transition: color 0.2s ease;
    display: inline-block !important;
}

#mySidenav .closebtn:hover {
    color: #ffffff !important;
    background: transparent !important;
}

/* Sidenav nav links */
.sidenav__links {
    display: flex !important;
    flex-direction: column !important;
    padding: 10px 0 !important;
}

.sidenav__link {
    display: block !important;
    font-size: 16px !important;
    font-weight: 600 !important;
    color: rgba(255,255,255,0.82) !important;
    padding: 14px 26px !important;
    text-decoration: none !important;
    border-left: 3px solid transparent !important;
    background: transparent !important;
    transition: background-color 0.18s ease, border-color 0.18s ease, color 0.18s ease !important;
    letter-spacing: 0.15px;
    line-height: 1.3 !important;
    /* reset newstyle nav-btn styles */
    box-shadow: none !important;
    width: 100% !important;
    border-radius: 0 !important;
    margin: 0 !important;
    text-align: left !important;
}

.sidenav__link:hover,
.sidenav__link.is-active {
    background-color: rgba(255,255,255,0.08) !important;
    border-left-color: #d32f0c !important;
    color: #ffffff !important;
    text-decoration: none !important;
}

.sidenav__link--pricing {
    color: #ff8c72 !important;
    font-weight: 700 !important;
}

.sidenav__link--pricing:hover,
.sidenav__link--pricing.is-active {
    border-left-color: #ff8c72 !important;
    background-color: rgba(255,140,114,0.1) !important;
}

/* Sidenav auth area */
.sidenav__auth {
    padding: 16px 22px 24px !important;
    border-top: 1px solid rgba(255,255,255,0.1) !important;
}

.sidenav__auth-btn {
    display: block !important;
    width: 100% !important;
    background: #d32f0c !important;
    color: #ffffff !important;
    text-align: center !important;
    padding: 13px !important;
    border-radius: 8px !important;
    font-weight: 700 !important;
    font-size: 15px !important;
    text-decoration: none !important;
    cursor: pointer !important;
    transition: background-color 0.2s ease !important;
}

.sidenav__auth-btn:hover {
    background: #b02509 !important;
    color: #ffffff !important;
}

/* Overlay dim when sidenav is open */
body.sidenav-open::after {
    content: '';
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.45);
    z-index: 350;
}

/* ── Mobile breakpoint: hide desktop nav, show burger ── */
@media (max-width: 900px) {
    .site-header__nav  { display: none !important; }
    .site-header__auth { display: none !important; }
    .site-header__burger {
        display: flex !important;
        margin-left: auto;
    }
    .site-header__inner {
        height: 66px;
        padding: 0 20px;
    }
    .site-header__logo img { width: 150px; }
}

/* Ensure newstyle's media queries don't re-show old .sidenav / .openbtn */
@media (max-width: 768px) {
    .openbtn       { display: none !important; }
    .toggle-logo   { display: none !important; }
}

/* Remove any gap between header and first content section */
.site-header + * { margin-top: 0 !important; }
.paystub { margin-top: 0 !important; }

/* Canada landing hero uses same gradient as USA home (.paystub); keep copy readable */
.canada-hero .canadaheading,
.canada-hero .can-p,
.canada-hero .can-p1 {
    color: #fff !important;
}
.canada-hero .can-p1 {
    opacity: 0.92;
}

/* Canada page — match home section bg (#fafafa, same as .ready-explore-section) */
.canada-body-section,
.canada-soft-bg {
    background-color: #fafafa;
}

/* Home .Generate uses display:table-cell; center it in Canada flex wrappers */
.canada-hero .d-flex.justify-content-center .Generate,
.canada-body-section .oo.d-flex.justify-content-center .Generate {
    display: inline-block !important;
}

.canada-soft-bg.d-flex.justify-content-center .Generate {
    display: inline-block !important;
}

/* UK / Global landings — same hero gradient + light section bands as Canada */
.uk-hero .mainhead,
.uk-hero .Payslips {
    color: #fff !important;
}
.global-hero .globe-p,
.global-hero .PayslipsGlo {
    color: #fff !important;
}
.uk-cta-band .uk-big-heading,
.global-cta-band .global-heading {
    color: #0f1b3d !important;
}

.uk-hero .uk-btn.d-flex .Generate,
.global-hero .globlebtn.d-flex .Generate,
.uk-cta-band .d-flex.justify-content-center .Generate,
.global-cta-band .d-flex.justify-content-center .Generate,
.ukbtn1.d-flex.justify-content-center .Generate {
    display: inline-block !important;
}

.canada-body-section .pt-5.d-flex.justify-content-center .Generate {
    display: inline-block !important;
}

.global-howto-cta.d-flex.justify-content-center .Generate {
    display: inline-block !important;
}

/* Canada / UK / Global — hero shell matches USA home first section:
   .paystub > .container-fluid.px-lg-5 > .row.pb-5 */
.region-landing-hero > .container-fluid > .row {
    align-items: center !important;
}

/* Right-column visuals: same frame proportion as .hero-tpl-frame (820×700) */
.region-hero-visual-frame {
    width: 100%;
    max-width: min(640px, 100%);
    aspect-ratio: 820 / 700;
    margin-left: auto;
    margin-right: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
.region-hero-visual-frame .region-hero-img,
.region-hero-visual-frame .globleImg.region-hero-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center center;
    display: block !important;
}

/* Desktop alignment should match home: copy, CTA, and store badges start from the left.
   Mobile/tablet can stay centered for balance. */
@media (min-width: 992px) {
    .region-hero-copy {
        text-align: left !important;
        padding-right: clamp(1rem, 3vw, 3.5rem);
    }
    .region-hero-copy .text-center,
    .region-hero-copy .mainhead,
    .region-hero-copy .globe-p,
    .region-hero-copy .canadaheading,
    .region-hero-copy .Payslips,
    .region-hero-copy .PayslipsGlo {
        text-align: left !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }
    .region-hero-cta,
    .region-hero-badges {
        justify-content: flex-start !important;
    }
    .region-hero-copy .Generate,
    .region-hero-cta .Generate {
        margin-left: 0 !important;
        margin-right: 0 !important;
    }
    .region-hero-copy .top-gogle {
        margin-left: 0 !important;
        margin-right: 0 !important;
    }
}

/* UK hero only: heading + CTA + store badges share the same left edge as body copy.
   .Payslips has padding-left: 55px in style.css; newstyle clears it at max-width: 1440px.
   .mainhead uses asymmetric padding (4px left) — align both wide and mid desktop. */
@media (min-width: 1441px) {
    .uk-hero.region-landing-hero .region-hero-copy > .text-white:first-child {
        padding-left: 55px;
        box-sizing: border-box;
    }
    .uk-hero.region-landing-hero .region-hero-copy p.mainhead {
        padding-top: 0 !important;
        padding-bottom: 2px !important;
        padding-right: clamp(0.5rem, 4vw, 2.5rem) !important;
        padding-left: 0 !important;
    }
    .uk-hero.region-landing-hero .region-hero-cta,
    .uk-hero.region-landing-hero .region-hero-badges {
        padding-left: 55px;
        box-sizing: border-box;
    }
}

@media (min-width: 992px) and (max-width: 1440px) {
    .uk-hero.region-landing-hero .region-hero-copy p.mainhead {
        padding: 0 clamp(0.5rem, 4vw, 2.5rem) 2px 0 !important;
    }
}

/* UK hero image: slightly larger than the default 640px */
@media (min-width: 992px) {
    .uk-hero-visual.region-hero-visual-frame {
        max-width: min(720px, 100%) !important;
    }
}

/* Global hero — right image column: breathing room so iMac clears the header */
.global-hero.region-landing-hero .global-hero-img-col {
    padding-top: 1.5rem;
    box-sizing: border-box;
}
@media (min-width: 768px) {
    .global-hero.region-landing-hero .global-hero-img-col {
        padding-top: 2.25rem;
    }
}
@media (min-width: 992px) {
    .global-hero.region-landing-hero .global-hero-img-col {
        padding-top: 3rem;
    }
}

/* UK hero — right column (iMac): breathing room below fixed header */
.uk-hero.region-landing-hero .ukimg1 {
    padding-top: 1.5rem;
    box-sizing: border-box;
}
@media (min-width: 768px) {
    .uk-hero.region-landing-hero .ukimg1 {
        padding-top: 2.25rem;
    }
}
@media (min-width: 992px) {
    .uk-hero.region-landing-hero .ukimg1 {
        padding-top: 3rem;
    }
}

/* UK body section: reduce the large paddingleft (240px) so text aligns with the hero copy */
@media (min-width: 992px) {
    .uk-body-row .paddingleft {
        padding-left: 5rem !important;
    }
}

/* UK body row — photo column: generous top inset so subject is not clipped at section top */
.uk-body-row .uk-body-hero-photo-col {
    padding-top: 3.25rem !important;
    box-sizing: border-box;
}
@media (min-width: 992px) {
    .uk-body-row .uk-body-hero-photo-col {
        padding-top: 5rem !important;
    }
}
.uk-body-row .uk-body-hero-photo {
    display: block;
}

/* Canada + Global hero: container gutter matches .site-header__inner (max-width 1500px, 30px sides;
   ≤900px header uses 20px). Overrides Bootstrap .px-lg-5 — one consistent inset, no duplicate copy padding. */
@media (max-width: 900px) {
    .canada-hero.region-landing-hero > .container-fluid,
    .global-hero.region-landing-hero > .container-fluid {
        padding-left: 20px !important;
        padding-right: 20px !important;
        box-sizing: border-box;
    }
}

@media (min-width: 901px) {
    .canada-hero.region-landing-hero > .container-fluid,
    .global-hero.region-landing-hero > .container-fluid {
        padding-left: max(30px, calc((100vw - min(100vw, 1500px)) * 0.5 + 30px)) !important;
        padding-right: max(30px, calc((100vw - min(100vw, 1500px)) * 0.5 + 30px)) !important;
        box-sizing: border-box;
    }
}

/* Desktop-only fixes: title widths and heading inset overrides */
@media (min-width: 992px) {
    /* newstyle .canadaheading { max-width: 312px } — full-width title */
    .canada-hero.region-landing-hero .region-hero-copy .canadaheading {
        max-width: none;
    }
    /* newstyle .text-padding adds 30px left inside a breakpoint — container governs on desktop */
    .global-hero.region-landing-hero .region-hero-copy .globe-p {
        padding-left: 0 !important;
    }

    /* Global body left col: align with hero text edge */
    .global-body-row .col-lg-9.global-padding {
        padding-left: 4rem !important;
    }
    .global-body-row .global-padding.mt-5 {
        padding-left: 2rem !important;
    }

    /* Canada hero image: bottom-aligned, right-aligned, slightly larger.
       Column stretches to full row height; flex-end pushes frame to the base of the section.
       margin-bottom: -3rem cancels the row's pb-5 so the image base touches the section edge. */
    .canada-hero.region-landing-hero .col-lg-6:last-child {
        align-self: stretch;
        display: flex;
        flex-direction: column;
        justify-content: flex-end;
        padding-bottom: 0 !important;
        margin-bottom: -6rem;
    }
    .canada-hero-visual.region-hero-visual-frame {
        margin-right: 0 !important;
        margin-left: auto !important;
        max-width: min(720px, 100%) !important;
        overflow: visible;
    }
    /* Clip any overflow so image doesn't bleed outside the section */
    .canada-hero.region-landing-hero {
        overflow: hidden;
    }
}

/* Region landing pages (UK, Canada): first block uses Bootstrap .mt-2 —
   remove top gap so hero meets header like the homepage */
#mySidenav + .mt-2 { margin-top: 0 !important; }

/* Global page: modal comes first, then colored hero with .mt-2 */
#mySidenav + .modal + .mt-2 { margin-top: 0 !important; }

/* Pricing and similar: first section flush under header */
#mySidenav + .pricing-coming-soon { margin-top: 0 !important; }

/* ================================================================
   0b. HERO TEMPLATE CAROUSEL  –  right column of hero section
   Crop-top approach: template fills full width, top portion visible.
   Prev/next arrows, hover "Preview" button, full-page zoom modal.
   ================================================================ */

/* ── Outer wrapper ── */
.hero-tpl-carousel {
    position: relative;
    width: 100%;
}

/* Home hero only: align both columns to the same header gutters.
   Legacy newstyle.css offsets .col-set right and .col-set1 left via fixed margins. */
@media (max-width: 900px) {
    .paystub:not(.region-landing-hero) > .container-fluid {
        padding-left: 20px !important;
        padding-right: 20px !important;
        box-sizing: border-box;
    }
}

@media (min-width: 901px) {
    .paystub:not(.region-landing-hero) > .container-fluid {
        padding-left: max(30px, calc((100vw - min(100vw, 1500px)) * 0.5 + 30px)) !important;
        padding-right: max(30px, calc((100vw - min(100vw, 1500px)) * 0.5 + 30px)) !important;
        box-sizing: border-box;
    }
}

@media (min-width: 1024px) {
    .paystub:not(.region-landing-hero) > .container-fluid > .row > .col-set {
        margin: 0 auto 0 0 !important;
    }
    /* Right column: pin to right edge of container.
       Absorb both Bootstrap 15px gutters so the template card can grow a little
       wider/taller without moving the left text block or expanding the whole section too much. */
    .paystub:not(.region-landing-hero) > .container-fluid > .row > .col-set1 {
        margin: 0 0 0 auto !important;
        justify-content: flex-end !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
    }
    .paystub:not(.region-landing-hero) > .container-fluid > .row > .col-set1 .hero-tpl-carousel {
        margin-left: auto;
        margin-right: 0;
    }
}

/* ── Fixed frame: reveals top portion of each slide ── */
.hero-tpl-frame {
    position: relative;
    width: 100%;
    aspect-ratio: 820 / 700;
    border-radius: 0;
    border: none;
    background: none;
    overflow: hidden;
    box-shadow: none;
}

/* ── Grid stacking: all slides share one cell → zero layout shift ── */
.hero-tpl-track {
    display: grid;
    width: 100%;
    height: 100%;
}

.hero-tpl-slide {
    grid-area: 1 / 1;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
    pointer-events: none;
    align-self: stretch;
    justify-self: stretch;
    position: relative;
}

.hero-tpl-slide.hero-tpl-active {
    opacity: 1;
    pointer-events: auto;
}

/* Slide 0 — static hero image fills the frame */
.hero-tpl-img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
}

/* ── iframe wrapper: clips bottom — iframe fills full width via JS scale ── */
.tpl-frame-wrap {
    width: 100%;
    height: 100%;
    overflow: hidden;
    position: relative;
}

/* iframe is 820 px wide × 1200 px tall.
   JS sets transform: scale(frameWidth/820) so PDF fills the full frame width.
   overflow:hidden on .tpl-frame-wrap clips anything below the frame height. */
.tpl-preview-iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 820px;
    height: 1200px;
    border: none;
    outline: none;
    color-scheme: light;
    pointer-events: none;
    transform-origin: top left;
    display: block;
}

/* Template name — hidden; shown only in modal title */
.tpl-name-badge { display: none; }

/* ── Prev / Next circle arrow buttons ── */
.hero-tpl-prev,
.hero-tpl-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 20;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.90);
    border: 1px solid rgba(0, 0, 0, 0.10);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.18);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    color: #333;
    line-height: 1;
    padding: 0;
    transition: background 0.2s, opacity 0.2s, box-shadow 0.2s;
    opacity: 0;                  /* hidden until frame hovered */
    pointer-events: none;
}
.hero-tpl-prev { left: 10px; }
.hero-tpl-next { right: 10px; }

.hero-tpl-frame:hover .hero-tpl-prev,
.hero-tpl-frame:hover .hero-tpl-next {
    opacity: 0.85;
    pointer-events: auto;
}
.hero-tpl-prev:hover,
.hero-tpl-next:hover {
    background: #fff;
    opacity: 1 !important;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.22);
}

/* ── Hover overlay with "Preview" button ── */
.hero-tpl-slide-overlay {
    position: absolute;
    inset: 0;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.22s ease;
    background: rgba(0, 0, 0, 0);
}
/* Only show overlay on template slides (not slide-0 image) */
.hero-tpl-slide.hero-tpl-has-preview:hover .hero-tpl-slide-overlay {
    opacity: 1;
    pointer-events: auto;
    background: rgba(255, 255, 255, 0.04);
}
.hero-tpl-preview-btn {
    background: #fff;
    border: none;
    border-radius: 24px;
    padding: 10px 30px;
    font-family: 'Inter', Arial, sans-serif;
    font-size: 14px;
    font-weight: 600;
    color: #1a1a2e;
    cursor: pointer;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.25);
    letter-spacing: 0.3px;
    transition: transform 0.15s, box-shadow 0.15s;
}
.hero-tpl-preview-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 22px rgba(0, 0, 0, 0.32);
}

/* ── Dot navigation ── */
.hero-tpl-dots {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 12px;
}

.hero-tpl-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #c8d6de;
    border: none;
    cursor: pointer;
    padding: 0;
    transition: background 0.25s ease, transform 0.25s ease;
}
.hero-tpl-dot.hero-tpl-dot-on {
    background: #e53935;
    transform: scale(1.45);
}

/* ================================================================
   TEMPLATE PREVIEW MODAL  –  full-page zoom preview
   ================================================================ */
.hero-tpl-modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 9999;
    /* Same hero treatment as .paystub — one continuous look, light dim for focus */
    background-color: #252e58;
    background-image:
        linear-gradient(rgba(12, 18, 36, 0.5), rgba(12, 18, 36, 0.5)),
        linear-gradient(96deg,
            #252e58e8 5%,
            #6361d3 46%,
            #07a96cd9 100%);
    align-items: center;
    justify-content: center;
    padding: 16px;
}
.hero-tpl-modal.hero-tpl-modal-open {
    display: flex;
}
.hero-tpl-modal-inner {
    position: relative;
    width: 100%;
    max-width: 920px;
    height: 88vh;
    background: transparent;
    border-radius: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: none;
    animation: htModalIn 0.22s ease;
}
@keyframes htModalIn {
    from { opacity: 0; transform: scale(0.95); }
    to   { opacity: 1; transform: scale(1); }
}
.hero-tpl-modal-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 11px 16px;
    border-bottom: none;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    flex-shrink: 0;
    gap: 8px;
}
.hero-tpl-modal-title {
    font-family: 'Inter', Arial, sans-serif;
    font-size: 14px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.95);
    flex: 1;
    min-width: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
/* ── Modal prev / next nav ── */
.hero-tpl-modal-nav {
    display: flex;
    align-items: center;
    gap: 4px;
    flex-shrink: 0;
    margin-right: 8px;
}
.hero-tpl-modal-nav-btn {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.35);
    background: rgba(255, 255, 255, 0.12);
    cursor: pointer;
    font-size: 20px;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.95);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    line-height: 1;
    transition: background 0.15s, border-color 0.15s;
}
.hero-tpl-modal-nav-btn:hover {
    background: rgba(255, 255, 255, 0.22);
    border-color: rgba(255, 255, 255, 0.5);
    box-shadow: none;
}
.hero-tpl-modal-nav-counter {
    font-family: 'Inter', Arial, sans-serif;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.75);
    min-width: 38px;
    text-align: center;
    white-space: nowrap;
}

.hero-tpl-modal-controls {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
}
.hero-tpl-modal-controls button {
    width: 32px;
    height: 32px;
    border-radius: 7px;
    border: 1px solid rgba(255, 255, 255, 0.35);
    background: rgba(255, 255, 255, 0.12);
    cursor: pointer;
    font-size: 18px;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.95);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    line-height: 1;
    transition: background 0.15s, border-color 0.15s;
}
.hero-tpl-modal-controls button:hover {
    background: rgba(255, 255, 255, 0.22);
    border-color: rgba(255, 255, 255, 0.5);
}
.hero-tpl-modal-close {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.35);
    background: rgba(255, 255, 255, 0.12);
    cursor: pointer;
    font-size: 15px;
    color: rgba(255, 255, 255, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.hero-tpl-modal-close:hover {
    background: rgba(229, 57, 53, 0.35);
    color: #fff;
    border-color: rgba(255, 255, 255, 0.55);
}
.hero-tpl-modal-zoom-label {
    font-family: 'Inter', Arial, sans-serif;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.85);
    min-width: 40px;
    text-align: center;
}
.hero-tpl-modal-viewport {
    flex: 1;
    overflow: auto;
    background: transparent;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 24px;
}
.hero-tpl-modal-iframe {
    border: none;
    outline: none;
    background: #ffffff;
    display: block;
    width: 820px;
    height: 1200px;
    transform-origin: top left;
    box-shadow: none;
    border-radius: 0;
    flex-shrink: 0;
}

/* Responsive: full-width on small screens */
@media (max-width: 600px) {
    .hero-tpl-modal-inner { height: 95vh; border-radius: 0; }
    .hero-tpl-modal-viewport { padding: 12px; }
    .hero-tpl-modal-iframe { width: 820px; }
    .hero-tpl-prev, .hero-tpl-next { width: 30px; height: 30px; font-size: 18px; }
}

/* ================================================================
   HOME PAGE — UNIVERSAL RESPONSIVE SYSTEM
   Breakpoints (component-driven, mobile-first):
     xs  ≤ 479px   phones portrait (iPhone SE, small Androids)
     sm  480–767px  phones landscape / large phones
     md  768–1023px tablets portrait (iPad mini, iPad, iPad Air)
     lg  1024–1279px tablets landscape / small laptops
     xl  1280px+   standard desktop and above
   ================================================================ */

/* ── Global safety: no overflow on any device ── */
img { max-width: 100%; height: auto; }

/* -------------------------------------------------------
   1. Hero banner – fluid typography & column rebalancing
   ------------------------------------------------------- */

/* Fluid hero heading: 58px desktop → 26px smallest phone
   clamp(min, preferred, max) scales smoothly with viewport */
h1.instant {
    font-size: clamp(1.625rem, 3.5vw + 0.75rem, 3.625rem) !important;
    line-height: 1.2 !important;
}

/* Tablet portrait (768–1023px): rebalance hero columns to 50/50
   (HTML uses col-md-4 for text which is only 33% — too narrow) */
@media (min-width: 768px) and (max-width: 1023px) {
    .paystub .col-set  { flex: 0 0 50% !important; max-width: 50% !important; }
    .paystub .col-set1 { flex: 0 0 50% !important; max-width: 50% !important; }
    h1.instant { padding-top: 2.5rem !important; }
    p.QUICK    { font-size: 16px !important; margin-bottom: 1rem !important; }
}

/* Phone (≤ 767px): stack columns, centre all content */
@media (max-width: 767px) {
    .paystub .col-set,
    .paystub .col-set1 {
        flex: 0 0 100% !important;
        max-width: 100% !important;
        width: 100% !important;
        text-align: center !important;
        padding: 0 16px !important;
        margin: 0 auto !important;
    }
    h1.instant {
        padding-top: 2rem !important;
        text-align: center !important;
    }
    p.QUICK {
        font-size: 14px !important;
        margin-bottom: 0.5rem !important;
        text-align: center !important;
    }
    /* Trim the stacked mt-5/pt-5 spacing so hero stays compact */
    .paystub .col-set .mt-5   { margin-top: 1.25rem !important; }
    .paystub .col-set .pt-5   { padding-top: 0 !important; }
    .paystub .col-set .btn.Generate {
        display: inline-block !important;
        margin-top: 0.75rem !important;
        font-size: 1rem !important;
        width: auto !important;
        min-width: 220px;
    }
}

/* -------------------------------------------------------
   2. "With PaystubX" proof-of-income section – fluid type
   ------------------------------------------------------- */
.wrapper {
    max-width: 1280px !important;
    padding: 0 18px !important;
}

.wrapper .space-between {
    display: flex !important;
    justify-content: space-between !important;
    align-items: flex-start !important;
    gap: 34px !important;
}

.wrapper .space-between > .col-lg-5 {
    flex: 0 0 calc(50% - 17px) !important;
    max-width: calc(50% - 17px) !important;
    margin: 0 !important;
    padding: 18px 18px 16px !important;
    border: 1px solid transparent !important;
    border-radius: 16px !important;
    background: transparent !important;
    box-shadow: none !important;
    transition: background-color 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease, transform 0.22s ease;
}

.wrapper h1.WithPaystubX {
    margin: 0 0 8px !important;
    font-family: 'Inter', 'Segoe UI', Arial, sans-serif !important;
    font-size: clamp(2rem, 2.4vw, 2.9rem) !important;
    font-weight: 700 !important;
    line-height: 1.2 !important;
}

.wrapper h3.Show,
.wrapper h3.Createpay {
    margin: 0 0 12px !important;
    font-family: 'Inter', 'Segoe UI', Arial, sans-serif !important;
    font-size: clamp(1.35rem, 1.5vw, 2rem) !important;
    font-weight: 700 !important;
    line-height: 1.35 !important;
    color: #1b2c32 !important;
}

.wrapper .space-between > .col-lg-5 ul {
    margin: 0 !important;
    padding-left: 1.2rem !important;
    font-family: 'Inter', 'Segoe UI', Arial, sans-serif !important;
}

.wrapper li.mt-2.proof {
    margin-top: 8px !important;
    font-size: 17px !important;
    font-weight: 500 !important;
    line-height: 1.6 !important;
    color: #4d5c61 !important;
}

.wrapper .smallfont {
    margin-top: 14px !important;
    margin-bottom: 0 !important;
    font-family: 'Inter', 'Segoe UI', Arial, sans-serif !important;
    font-size: 1rem !important;
    font-weight: 600 !important;
    color: #24383f !important;
}

/* Hover-reveal cards for desktop/laptop */
@media (hover: hover) and (pointer: fine) {
    .wrapper .space-between > .col-lg-5:hover {
        background: linear-gradient(180deg, #ffffff 0%, #f8fcfd 100%) !important;
        border-color: #d8e7eb !important;
        box-shadow: 0 12px 26px rgba(16, 64, 79, 0.11) !important;
        transform: translateY(-2px);
    }
}

/* Touch devices: keep cards visible since hover is unavailable */
@media (hover: none) {
    .wrapper .space-between > .col-lg-5 {
        background: linear-gradient(180deg, #ffffff 0%, #f8fcfd 100%) !important;
        border-color: #d8e7eb !important;
        box-shadow: 0 8px 18px rgba(16, 64, 79, 0.08) !important;
    }
}

/* Keep image and copy in their own clean row section */
.wrapper > .row {
    align-items: center !important;
}

.wrapper .payimg2 {
    width: 100% !important;
    margin-left: 0 !important;
    margin-top: 0 !important;
    padding-bottom: 14px !important;
}

.wrapper .payyy {
    justify-content: flex-start !important;
}

.wrapper .img2-p {
    margin: 0 !important;
    font-family: 'Inter', 'Segoe UI', Arial, sans-serif !important;
    font-size: clamp(1rem, 0.25vw + 0.94rem, 1.1rem) !important;
    line-height: 1.7 !important;
    max-width: 760px;
}

.wrapper .mobile-img-desktop .payimg {
    width: 100% !important;
    max-width: 290px !important;
    padding-bottom: 14px !important;
}

.wrapper .paytext {
    position: static !important;
    left: auto !important;
    top: auto !important;
    margin-top: 0 !important;
}

@media (max-width: 767px) {
    h1.WithPaystubX { font-size: clamp(1.55rem, 5.1vw, 2rem) !important; }
    h3.Show         { font-size: clamp(1.12rem, 4vw, 1.35rem) !important; }
    h3.Createpay    { font-size: clamp(1.05rem, 3.6vw, 1.25rem) !important; }
    li.mt-2.proof   { font-size: 14px !important; line-height: 1.55 !important; }
    .wrapper        { padding: 0 12px !important; }
    .wrapper .space-between {
        gap: 12px !important;
    }
    .wrapper .space-between > .col-lg-5 {
        flex: 0 0 100% !important;
        max-width: 100% !important;
        padding: 14px 12px 12px !important;
        border-radius: 12px !important;
    }
    .wrapper .space-between > .col-lg-5 ul {
        padding-left: 1rem !important;
    }
    .wrapper .payyy {
        justify-content: center !important;
        text-align: center !important;
    }
    .wrapper .img2-p {
        max-width: 100%;
        padding-left: 0 !important;
    }
    .wrapper .mobile-img-desktop .payimg {
        margin: 0 auto !important;
    }
}

@media (min-width: 768px) and (max-width: 1023px) {
    h1.WithPaystubX { font-size: 30px !important; }
    h3.Show         { font-size: 22px !important; }
    h3.Createpay    { font-size: 20px !important; }
    li.mt-2.proof   { font-size: 15px !important; }
    .wrapper .space-between {
        gap: 18px !important;
    }
    .wrapper .space-between > .col-lg-5 {
        flex: 0 0 calc(50% - 9px) !important;
        max-width: calc(50% - 9px) !important;
        padding: 16px 14px !important;
    }
    .wrapper .img2-p {
        padding-left: 8px !important;
    }
}

@media (min-width: 1024px) {
    .wrapper .space-between {
        gap: 30px !important;
    }
    .wrapper .img2-p {
        padding-left: 26px !important; /* move this copy slightly right on desktop */
    }
}

/* -------------------------------------------------------
   3. Store badge images – universal height-based sizing
   The root cause of "Apple smaller": style.css fixes BOTH
   width (165px) and height (50px), distorting aspect ratios
   when overridden inconsistently. Fix: control only HEIGHT
   and let width scale naturally so every badge looks right.
   ------------------------------------------------------- */

/* Universal base: all badges same visual height, natural width */
img.storbtn {
    height: 46px !important;
    width: auto !important;
    max-width: none !important;
    display: inline-block;
    vertical-align: middle;
    flex-shrink: 0;
    object-fit: contain !important;
}

/* Badge containers: flex-wrap + gap replaces fragile Bootstrap margins.
   Keyed off .top-gogle alone so any spacing class combo works. */
.top-gogle,
.goggle {
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: center !important;
    gap: clamp(12px, 3vw, 20px) !important;
}

/* The home hero has a DOUBLE-NESTED top-gogle div.
   Kill extra spacing on the inner one so only the outer controls layout. */
.top-gogle > .top-gogle {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

/* Kill Bootstrap ml-5 / ml-1 margins — gap handles spacing */
img.storbtn.ml-5 { margin-left: 0 !important; }
img.storbtn.ml-1 { margin-left: 0 !important; }

/* Tablet portrait (768–1023px): slightly smaller */
@media (min-width: 768px) and (max-width: 1023px) {
    img.storbtn { height: 42px !important; }
}

/* Phone (≤ 767px): smaller, centred */
@media (max-width: 767px) {
    img.storbtn { height: 40px !important; }
    .top-gogle,
    .goggle { justify-content: center !important; }
}

/* Smallest phones (≤ 479px): compact */
@media (max-width: 479px) {
    img.storbtn { height: 36px !important; }
}

/* -------------------------------------------------------
   4. FAQ Video section – framed professional cards
   ------------------------------------------------------- */

.faq-video-section {
    background: linear-gradient(160deg, #1a2a3a 0%, #0d1f30 100%);
    padding: 60px 0 70px;
}

.faq-video-heading {
    font-size: 2rem;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 8px;
    letter-spacing: -0.3px;
}

.faq-video-subheading {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 32px;
    font-weight: 300;
}

.faq-video-section .vedio-box {
    padding: 0 12px;
    margin-bottom: 28px;
}

.video-card {
    background: #ffffff;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.35);
    transition: transform 0.22s ease, box-shadow 0.22s ease;
    text-align: left;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.video-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5);
}

.video-card__thumb {
    position: relative;
    width: 100%;
    padding-top: 56.25%;
    background: #000;
}

.video-card__thumb iframe {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    border: none !important;
    display: block !important;
    min-height: 0 !important;
}

/* ── YouTube facade (thumbnail shown, iframe only loads on click) ── */
.yt-facade {
    position: absolute;
    inset: 0;
    cursor: pointer;
    background: #000;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
.yt-thumb {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: opacity 0.2s;
}
.yt-facade:hover .yt-thumb { opacity: 0.75; }
.yt-play {
    position: relative;
    z-index: 2;
    width: 64px;
    height: 44px;
    background: #ff0000;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(0,0,0,0.5);
    transition: transform 0.15s, background 0.15s;
}
.yt-play::after {
    content: '';
    border-left: 20px solid #fff;
    border-top: 12px solid transparent;
    border-bottom: 12px solid transparent;
    margin-left: 4px;
}
.yt-facade:hover .yt-play {
    background: #cc0000;
    transform: scale(1.1);
}
/* Replace iframe inside facade after click */
.yt-facade iframe {
    position: absolute !important;
    inset: 0 !important;
    width: 100% !important;
    height: 100% !important;
    border: none !important;
}

.video-card__body {
    padding: 16px 18px 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.video-card__badge {
    display: inline-block;
    background: #e8f4f8;
    color: #1a6a8a;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.6px;
    text-transform: uppercase;
    padding: 3px 10px;
    border-radius: 20px;
    width: fit-content;
}

.video-card__title {
    font-size: 14px;
    font-weight: 600;
    color: #1e1e1e;
    line-height: 1.5;
    margin: 0;
}

@media (max-width: 767px) {
    .faq-video-section   { padding: 40px 0 50px; }
    .faq-video-heading   { font-size: 1.5rem; }
    .faq-video-section .vedio-box { padding: 0 6px; margin-bottom: 20px; }
    .video-card__title   { font-size: 13px; }
}

/* -------------------------------------------------------
   5. Three feature boxes – modern card redesign
   ------------------------------------------------------- */

.three-box-section .box-wrapper {
    max-width: 1220px !important;
    margin: 0 auto !important;
    padding: 0 22px !important;
}

.three-box-section .box-row {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 24px !important;
    justify-content: center !important;
}

.three-box-section .box-border-outer {
    flex: 1 1 320px !important;
    width: auto !important;
    margin: 0 !important;
    border: 0 !important;
    box-sizing: border-box !important;
}

.three-box-section .box {
    height: 100% !important;
    padding: 22px 24px !important;
    border: 1px solid #e2edf0 !important;
    border-radius: 18px !important;
    background: linear-gradient(180deg, #ffffff 0%, #f8fcfd 100%) !important;
    box-shadow: 0 10px 26px rgba(17, 65, 79, 0.08) !important;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.three-box-section .box:hover {
    transform: translateY(-3px);
    box-shadow: 0 14px 30px rgba(17, 65, 79, 0.13) !important;
    border-color: #c5dde3 !important;
}

.three-box-section .box-content h6 {
    margin: 0 !important;
    padding: 0 0 12px !important;
    font-family: 'Inter', 'Segoe UI', Arial, sans-serif !important;
    font-size: clamp(1.05rem, 0.35vw + 0.95rem, 1.35rem) !important;
    font-weight: 700 !important;
    line-height: 1.35 !important;
    letter-spacing: 0.01em;
    text-align: center !important;
    color: #17272c !important;
}

.three-box-section .box-icon {
    max-width: 84px !important;
    margin: 0 auto !important;
    padding: 0 0 12px !important;
}

.three-box-section .box-icon img {
    width: auto !important;
    max-width: 100% !important;
    height: auto !important;
    display: block;
    margin: 0 auto;
    object-fit: contain !important;
}

.three-box-section .bottom-content p {
    margin: 0 !important;
    font-family: 'Inter', 'Segoe UI', Arial, sans-serif !important;
    font-size: clamp(0.92rem, 0.15vw + 0.88rem, 1rem) !important;
    font-weight: 500 !important;
    color: #5f6d72 !important;
    text-align: center !important;
    line-height: 1.7 !important;
    text-wrap: pretty;
}

/* Desktop: keep three cards in one row */
@media (min-width: 1024px) {
    .three-box-section .box-row {
        flex-wrap: nowrap !important;
        gap: 26px !important;
    }
    .three-box-section .box-border-outer {
        flex: 1 1 0 !important;
        min-width: 0 !important;
    }
}

/* Tablet: comfortable two-column layout */
@media (min-width: 768px) and (max-width: 1023px) {
    .three-box-section .box-wrapper {
        padding: 0 20px !important;
    }
    .three-box-section .box-row {
        gap: 18px !important;
    }
    .three-box-section .box-border-outer {
        flex: 0 0 calc(50% - 9px) !important;
        max-width: calc(50% - 9px) !important;
    }
    .three-box-section .box {
        padding: 20px 20px !important;
    }
}

/* Phone: single clean stack with tighter spacing */
@media (max-width: 767px) {
    .three-box-section .box-wrapper {
        padding: 0 14px !important;
    }
    .three-box-section .box-row {
        gap: 14px !important;
    }
    .three-box-section .box-border-outer {
        flex: 0 0 100% !important;
        max-width: 100% !important;
    }
    .three-box-section .box {
        padding: 18px 18px !important;
        border-radius: 15px !important;
    }
    .three-box-section .box-icon {
        max-width: 72px !important;
        padding-bottom: 10px !important;
    }
    .three-box-section .bottom-content p {
        line-height: 1.62 !important;
    }
}

/* -------------------------------------------------------
   6. Calculations section – mobile & tablet polish
   ------------------------------------------------------- */
.calculations .row.mt-5 {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 18px !important;
    justify-content: center !important;
}

.calculations .row.mt-5 > .col-md-4 {
    display: flex;
    flex: 0 1 340px !important;
    max-width: 340px !important;
    width: 100% !important;
    margin: 0 !important;
    box-sizing: border-box !important;
}

.calculations .row.mt-5 > .col-md-4 > .calcheading,
.calculations .row.mt-5 > .col-md-4 > .pay-p,
.calculations .row.mt-5 > .col-md-4 > .list-img,
.calculations .row.mt-5 > .col-md-4 > img {
    position: relative;
    z-index: 1;
}

.calculations .row.mt-5 > .col-md-4 {
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding: 24px 20px 20px !important;
    border: 1px solid rgba(194, 224, 231, 0.45);
    border-radius: 18px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.12) 0%, rgba(255, 255, 255, 0.05) 100%);
    backdrop-filter: blur(2px);
    box-shadow: 0 10px 24px rgba(7, 30, 37, 0.22);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
    min-height: 100%;
}

.calculations .row.mt-5 > .col-md-4:hover {
    transform: translateY(-3px);
    box-shadow: 0 14px 26px rgba(7, 30, 37, 0.3);
    border-color: rgba(214, 240, 246, 0.8);
}

.calculations .row.mt-5 .calcheading {
    margin-bottom: 12px !important;
    font-family: 'Inter', 'Segoe UI', Arial, sans-serif !important;
    font-weight: 700 !important;
    font-size: clamp(1.05rem, 0.25vw + 1rem, 1.35rem) !important;
    line-height: 1.35 !important;
}

.calculations .row.mt-5 .pay-p {
    font-family: 'Inter', 'Segoe UI', Arial, sans-serif !important;
    font-size: clamp(0.9rem, 0.2vw + 0.86rem, 1rem) !important;
    font-weight: 400 !important;
    line-height: 1.7 !important;
    margin-bottom: 14px !important;
}

.calculations .row.mt-5 .list-img,
.calculations .row.mt-5 > .col-md-4 > img {
    width: 74px !important;
    height: 74px !important;
    object-fit: contain !important;
    object-position: center !important;
    margin-top: auto !important;
}

@media (max-width: 767px) {
    .calculations .container {
        padding-left: 16px !important;
        padding-right: 16px !important;
    }
    .calculations h2.gen {
        font-size: 18px !important;
        padding-top: 24px !important;
        line-height: 1.4 !important;
    }
    .calculations .col-md-4 {
        margin-bottom: 0;
    }
    .calculations .row.mt-5 > .col-md-4 {
        flex: 0 0 100% !important;
        max-width: 100% !important;
        padding: 18px 14px 16px !important;
        border-radius: 14px;
    }
    .calculations .row.mt-5 .pay-p {
        line-height: 1.62 !important;
        margin-bottom: 10px !important;
    }
    .calculations .row.mt-5 .list-img,
    .calculations .row.mt-5 > .col-md-4 > img {
        width: 64px !important;
        height: 64px !important;
    }
}

@media (min-width: 768px) and (max-width: 1023px) {
    .calculations h2.gen {
        font-size: 22px !important;
        padding-top: 32px !important;
    }
    .calculations .row.mt-5 > .col-md-4 {
        flex: 0 0 calc(50% - 9px) !important;
        max-width: calc(50% - 9px) !important;
        padding: 20px 16px 18px !important;
    }
    img.list-img {
        width: 72px !important;
        height: 72px !important;
    }
}

@media (min-width: 1024px) {
    .calculations .row.mt-5 {
        gap: 20px !important;
    }
    .calculations .row.mt-5 > .col-md-4 {
        flex: 0 1 355px !important;
        max-width: 355px !important;
    }
}

/* -------------------------------------------------------
   7. "Ready to Explore" section – transparent hover cards
   ------------------------------------------------------- */
.ready-explore-section .col-md-6.text-left.mb-5,
.ready-explore-section .col-md-5.text-left.mb-5 {
    padding: 16px 18px !important;
    border: 1px solid transparent !important;
    border-radius: 18px !important;
    background: transparent !important;
    box-shadow: none !important;
    transition: background-color 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease, transform 0.22s ease;
}

.ready-explore-section div.mt-5.ready {
    font-family: 'Inter', 'Segoe UI', Arial, sans-serif !important;
    font-size: clamp(1.55rem, 1.7vw, 2.05rem) !important;
    font-weight: 700 !important;
    line-height: 1.3 !important;
    color: #1c2d32 !important;
}

.ready-explore-section .col-md-6.text-left.mb-5 ul,
.ready-explore-section .col-md-6.text-left.mb-5 ul.list-outer {
    margin: 0 !important;
    padding-left: 1.2rem !important;
}

.ready-explore-section .col-md-6.text-left.mb-5 ul li,
.ready-explore-section ul.list-outer li {
    font-family: 'Inter', 'Segoe UI', Arial, sans-serif !important;
    font-size: 17px !important;
    line-height: 1.6 !important;
    font-weight: 500 !important;
    color: #4d5d62 !important;
}

.ready-explore-section b.bottom-c,
.ready-explore-section .col-md-5.text-left.mb-5 b {
    display: block;
    font-family: 'Inter', 'Segoe UI', Arial, sans-serif !important;
    font-size: clamp(1.2rem, 1.1vw, 1.55rem) !important;
    font-weight: 700 !important;
    line-height: 1.35 !important;
    color: #1b2c32 !important;
}

.ready-explore-section p.b-p,
.ready-explore-section .col-md-5.text-left.mb-5 p.mt-1 {
    font-family: 'Inter', 'Segoe UI', Arial, sans-serif !important;
    font-size: clamp(0.98rem, 0.3vw + 0.92rem, 1.1rem) !important;
    line-height: 1.7 !important;
    color: #4d5d62 !important;
}

@media (hover: hover) and (pointer: fine) {
    .ready-explore-section .col-md-6.text-left.mb-5:hover,
    .ready-explore-section .col-md-5.text-left.mb-5:hover {
        background: linear-gradient(180deg, rgba(255, 255, 255, 0.78) 0%, rgba(246, 251, 252, 0.82) 100%) !important;
        border-color: #d8e6ea !important;
        box-shadow: 0 12px 28px rgba(14, 57, 70, 0.11) !important;
        transform: translateY(-2px);
    }
}

@media (hover: none) {
    .ready-explore-section .col-md-6.text-left.mb-5,
    .ready-explore-section .col-md-5.text-left.mb-5 {
        background: linear-gradient(180deg, rgba(255, 255, 255, 0.78) 0%, rgba(246, 251, 252, 0.82) 100%) !important;
        border-color: #d8e6ea !important;
        box-shadow: 0 8px 20px rgba(14, 57, 70, 0.08) !important;
    }
}

@media (max-width: 767px) {
    .ready-explore-section .col-md-6.text-left.mb-5,
    .ready-explore-section .col-md-5.text-left.mb-5 {
        flex: 0 0 100% !important;
        max-width: 100% !important;
        width: 100% !important;
        padding: 14px 14px !important;
        border-radius: 14px !important;
        margin-bottom: 14px !important;
    }
    .ready-explore-section div.mt-5.ready {
        font-size: 22px !important;
        text-align: center !important;
        margin-top: 1.25rem !important;
    }
    .ready-explore-section .col-md-6.text-left.mb-5 ul,
    .ready-explore-section .col-md-6.text-left.mb-5 ul.list-outer {
        padding-left: 1rem !important;
    }
    .ready-explore-section .col-md-6.text-left.mb-5 ul li,
    .ready-explore-section ul.list-outer li {
        font-size: 14px !important;
        line-height: 1.55 !important;
    }
    .ready-explore-section b.bottom-c,
    .ready-explore-section .col-md-5.text-left.mb-5 b {
        font-size: 1.05rem !important;
    }
    .ready-explore-section p.b-p,
    .ready-explore-section .col-md-5.text-left.mb-5 p.mt-1 {
        font-size: 14px !important;
        line-height: 1.6 !important;
    }
}

@media (min-width: 768px) and (max-width: 1023px) {
    .ready-explore-section .col-md-6.text-left.mb-5,
    .ready-explore-section .col-md-5.text-left.mb-5 {
        flex: 0 0 100% !important;
        max-width: 100% !important;
        padding: 16px 16px !important;
    }
    .ready-explore-section div.mt-5.ready { font-size: 26px !important; }
    .ready-explore-section .col-md-6.text-left.mb-5 ul li,
    .ready-explore-section ul.list-outer li {
        font-size: 15px !important;
    }
}

/* -------------------------------------------------------
   8. Footer – complete professional responsive system
   Three breakpoints: desktop (992px+), tablet (768–991px),
   phone (≤767px). Each tuned for clean, centred layout.
   ------------------------------------------------------- */

/* ── Footer: accepted payment methods strip ── */
.footer-payment-strip-row {
    margin: 0 !important;
    padding: 0.5rem 0 1.25rem !important;
    border-top: 1px solid rgba(255,255,255,0.12);
}
.footer-payment-strip-wrap {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    margin: 0 auto;
    padding: 0 16px;
    box-sizing: border-box;
}
/* Capped at 520px — crisp at this size on all screens, not oversized */
.footer-payment-strip-img {
    display: block;
    width: 100%;
    max-width: 520px;
    height: auto;
    margin: 0 auto;
    image-rendering: auto;
    -ms-interpolation-mode: bicubic;
}
@media (max-width: 575px) {
    .footer-payment-strip-img {
        max-width: 340px;
    }
}

/* ── NEW professional footer (psx-foot-*) ─────────────────────────── */

.psx-foot-inner {
    display: flex;
    flex-wrap: wrap;
    gap: 2.5rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 3rem 2rem 2rem;
    align-items: flex-start;
}

/* Column base */
.psx-foot-col {
    flex: 1 1 200px;
    min-width: 0;
}

/* Brand column — wider */
.psx-foot-brand {
    flex: 1.6 1 240px;
}

/* Logo */
.psx-foot-logo-wrap {
    display: inline-block;
    margin-bottom: 0.85rem;
}
.psx-foot-logo {
    width: 140px;
    height: auto;
    display: block;
    filter: brightness(1.05);
}

/* Tagline */
.psx-foot-tagline {
    color: #c8d0e0;
    font-size: 0.875rem;
    line-height: 1.6;
    margin-bottom: 0.9rem;
    max-width: 300px;
}

/* Address */
.psx-foot-address {
    font-style: normal;
    color: #b0bbd0;
    font-size: 0.875rem;
    line-height: 1.7;
    margin-bottom: 0.6rem;
}

/* Email link */
.psx-foot-email {
    display: inline-block;
    color: #8bbcf8;
    font-size: 0.875rem;
    text-decoration: none;
    transition: color 0.15s;
}
.psx-foot-email:hover {
    color: #c0d9ff;
    text-decoration: underline;
}

/* Column headings */
.psx-foot-heading {
    color: #ffffff;
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid rgba(255,255,255,0.15);
}

/* Link list */
.psx-foot-linklist {
    list-style: none;
    padding: 0;
    margin: 0;
}
.psx-foot-linklist li {
    margin-bottom: 0.55rem;
}
.psx-foot-linklist a {
    color: #b8c8de;
    font-size: 0.9375rem;
    text-decoration: none;
    transition: color 0.15s, padding-left 0.15s;
    display: inline-block;
}
.psx-foot-linklist a:hover {
    color: #ffffff;
    padding-left: 4px;
}

/* Social icon circles */
.psx-foot-social {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin-bottom: 1.5rem;
}
.psx-foot-social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
    color: #e0e8f4;
    font-size: 1rem;
    text-decoration: none;
    transition: background 0.18s, color 0.18s, transform 0.15s;
    border: 1px solid rgba(255,255,255,0.15);
}
.psx-foot-social a:hover {
    background: rgba(255,255,255,0.22);
    color: #ffffff;
    transform: translateY(-2px);
}

/* Satisfaction badge */
.psx-foot-badge-link {
    display: inline-block;
}
.psx-foot-badge {
    max-width: 160px;
    height: auto;
    display: block;
    opacity: 0.92;
    transition: opacity 0.15s;
}
.psx-foot-badge:hover { opacity: 1; }

/* Bottom bar */
.psx-foot-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding: 1rem 2rem 1.5rem;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
}
.psx-foot-copy {
    color: #8a96a8;
    font-size: 0.8125rem;
    margin: 0;
    text-align: center;
}
.psx-pay-strip {
    padding: 0 !important;
}

/* Responsive — tablet (768–991px): 2+1 layout */
@media (min-width: 768px) and (max-width: 991px) {
    .psx-foot-brand  { flex: 0 0 100%; }
    .psx-foot-links,
    .psx-foot-social-col { flex: 1 1 calc(50% - 1.25rem); }
}

/* Responsive — mobile (≤767px): stacked */
@media (max-width: 767px) {
    .psx-foot-inner {
        padding: 2rem 1.25rem 1.5rem;
        gap: 2rem;
    }
    .psx-foot-brand,
    .psx-foot-links,
    .psx-foot-social-col {
        flex: 0 0 100%;
    }
    .psx-foot-tagline { max-width: 100%; }
    .psx-foot-bottom  { padding: 1rem 1.25rem 1.5rem; }
}

/* -------------------------------------------------------
   9. Login / OTP modals – full width on tiny phones
   ------------------------------------------------------- */
@media (max-width: 479px) {
    .modal-dialog  { margin: 10px !important; }
    .modal-content { width: 100% !important; }
}

/* -------------------------------------------------------
   10. "With PaystubX" section – payimg2 overflow & text fix
   payimg2 base CSS: margin-left:-60px; margin-top:-156px.
   These negative offsets cause horizontal scroll on phones.
   ------------------------------------------------------- */
@media (max-width: 767px) {
    /* Reset the negative-margin trick that only works at one desktop size */
    .payimg2 {
        width: 100% !important;
        margin-left: 0 !important;
        margin-top: 0 !important;
        padding-bottom: 16px !important;
    }
    /* The "On PaystubX" paragraph text */
    .img2-p {
        font-size: 15px !important;
        line-height: 1.7 !important;
    }
    /* Mobile phone preview image */
    img.payimg.mobile-img {
        width: 55% !important;
        max-width: 220px !important;
        margin: 0 auto 12px !important;
        display: block !important;
        padding-bottom: 0 !important;
    }
}

@media (min-width: 768px) and (max-width: 1023px) {
    /* Soften the negative margin for tablet – image still overlaps tastefully */
    .payimg2 {
        width: 100% !important;
        margin-left: 0 !important;
        margin-top: -40px !important;
    }
    .img2-p {
        font-size: 16px !important;
        margin-left: 0 !important;
    }
}

/* -------------------------------------------------------
   11. paytext & smallfont – scale the mobile phone overlay
   .paytext shows via .mobile-img (only on ≤768px screens).
   Base: smallfont=25px, smallfont1=22px, smallfont2/3=30px.
   ------------------------------------------------------- */
@media (max-width: 767px) {
    .paytext {
        margin-top: 0 !important;   /* cancel the -47px overlap */
        padding: 8px 4px !important;
    }
    .smallfont  { font-size: 15px !important; line-height: 1.5 !important; }
    .smallfont1 { font-size: 13px !important; line-height: 1.4 !important; }
    .smallfont2 { font-size: 17px !important; line-height: 1.3 !important; }
    .smallfont3 { font-size: 17px !important; line-height: 1.4 !important; }
}

/* -------------------------------------------------------
   12. "Ready to Explore" list – scale 20px inline font
   The <ul> has font-size:20px inline; !important on <li>
   wins over inherited values, making it responsive.
   ------------------------------------------------------- */
@media (max-width: 767px) {
    ul.list-outer li {
        font-size: 15px !important;
        line-height: 1.6 !important;
    }
}

@media (min-width: 768px) and (max-width: 1023px) {
    ul.list-outer li {
        font-size: 16px !important;
    }
}

/* -------------------------------------------------------
   13. Generate CTA button – overflow safety on tiny phones
   Base: width:312px. At 320px phone with 15px padding each
   side only 290px is available — the button overflows.
   ------------------------------------------------------- */
@media (max-width: 479px) {
    a.btn.Generate,
    .col-set a.btn.Generate {
        width: 88% !important;
        max-width: 88% !important;
        min-width: 0 !important;
        font-size: 1rem !important;
        padding: 10px 16px !important;
        display: inline-block !important;
    }
}

/* -------------------------------------------------------
   14. Scroll-to-top floating button
   ------------------------------------------------------- */
.scroll-top-btn {
    position: fixed;
    right: 24px;
    bottom: 26px;
    width: 58px;
    height: 58px;
    border: none;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #f1f1f1;
    color: #2f3136;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.12);
    cursor: pointer;
    z-index: 500;
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: opacity 0.22s ease, transform 0.22s ease, visibility 0.22s ease, background-color 0.2s ease;
}

.scroll-top-btn i {
    font-size: 30px;
    line-height: 1;
}

.scroll-top-btn.is-visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.scroll-top-btn:hover {
    background: #ffffff;
}

.scroll-top-btn:focus {
    outline: none;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.18), 0 0 0 3px rgba(26, 106, 138, 0.2);
}

@media (max-width: 767px) {
    .scroll-top-btn {
        width: 54px;
        height: 54px;
        right: 16px;
        bottom: 18px;
    }
    .scroll-top-btn i {
        font-size: 28px;
    }
}

/* ================================================================
   15. Auth modals (.axm-*) — moved here from inline body <style>
       so they load in the <head> with all other CSS, preventing
       a late-body style recalculation / repaint on every page.
   ================================================================ */
.axm-dialog { max-width: 420px; width: 100%; margin: 1rem auto; }
.axm-dialog--sm { max-width: 360px; }
.axm-card {
    border: none;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 24px 64px rgba(0,0,0,.18);
    font-family: 'Inter','Segoe UI',-apple-system,BlinkMacSystemFont,sans-serif;
}
.axm-header {
    background: linear-gradient(135deg, #0f1b3d 0%, #1a2e6e 55%, #2d1b69 100%);
    padding: 22px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.axm-logo { height: 34px; width: auto; object-fit: contain; }
.axm-header__text { font-size: 15px; font-weight: 700; color: #fff; letter-spacing: .2px; }
.axm-close {
    background: rgba(255,255,255,.12);
    border: none;
    color: #fff;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    font-size: 14px;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background .15s;
    padding: 0;
    flex-shrink: 0;
}
.axm-close:hover { background: rgba(255,255,255,.25); }
.axm-body { padding: 32px 28px 28px; background: #fff; }
.axm-body--otp { text-align: center; }
.axm-body--center { text-align: center; }
.axm-title { font-size: 1.35rem; font-weight: 800; color: #0f1b3d; margin: 0 0 6px; line-height: 1.25; }
.axm-subtitle { font-size: 13.5px; color: #666; margin: 0 0 24px; line-height: 1.6; }
.axm-note { font-size: 11.5px; color: #999; display: block; margin-top: 3px; }
.axm-google-wrap { display: flex; justify-content: center; margin-bottom: 20px; }
.axm-divider {
    display: flex; align-items: center; gap: 12px;
    margin: 0 0 22px; color: #bbb; font-size: 12px; font-weight: 500;
}
.axm-divider::before, .axm-divider::after {
    content: ''; flex: 1; height: 1px; background: #e8eaf0;
}
.axm-field { margin-bottom: 16px; position: relative; }
.axm-label { display: block; font-size: 12.5px; font-weight: 600; color: #374151; margin-bottom: 6px; letter-spacing: .2px; }
.axm-required { color: #d32f0c; }
.axm-input {
    width: 100%;
    border: 1.5px solid #dde1ec;
    border-radius: 10px;
    padding: 11px 14px !important;
    font-size: 14px;
    color: #111;
    background: #fafbfd;
    transition: border-color .18s, box-shadow .18s;
    height: auto !important;
    line-height: 1.5 !important;
    outline: none;
}
.axm-input:focus {
    border-color: #1a2e6e;
    box-shadow: 0 0 0 3px rgba(26,46,110,.1);
    background: #fff;
}
.axm-input--otp {
    text-align: center; font-size: 1.6rem !important;
    font-weight: 700; letter-spacing: 6px; padding: 14px !important;
}
.axm-input-wrap { position: relative; }
.axm-eye {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    color: #aaa;
    cursor: pointer;
    font-size: 15px;
    z-index: 2;
    line-height: 1;
    pointer-events: auto;
}
/*
 * contact-box uses width:93% in newstyle.css — eye is positioned on the full wrap,
 * so it sits on the border. Fill the wrap and pad for the icon.
 */
.axm-input-wrap input.axm-input.contact-box {
    width: 100% !important;
    max-width: 100%;
    box-sizing: border-box !important;
    padding-right: 44px !important;
}
.axm-btn {
    display: block; width: 100%; padding: 13px 16px;
    border-radius: 10px; font-size: 14px; font-weight: 700;
    border: none; cursor: pointer;
    transition: background .16s, transform .1s, box-shadow .16s;
    text-align: center; text-decoration: none; line-height: 1.4; margin-top: 4px;
}
.axm-btn:active { transform: scale(.97); }
.axm-btn--primary {
    background: linear-gradient(135deg, #1a2e6e, #2d1b69);
    color: #fff; box-shadow: 0 4px 14px rgba(26,46,110,.3); margin-bottom: 0;
}
.axm-btn--primary:hover {
    background: linear-gradient(135deg, #0f1b3d, #1a0e40);
    box-shadow: 0 6px 20px rgba(26,46,110,.4); color: #fff; text-decoration: none;
}
.axm-btn--danger { background: #d32f0c; color: #fff; box-shadow: 0 4px 14px rgba(211,47,12,.25); }
.axm-btn--danger:hover { background: #b02509; color: #fff; text-decoration: none; }
.axm-btn--ghost { background: #f3f4f8; color: #374151; border: 1.5px solid #dde1ec; box-shadow: none; }
.axm-btn--ghost:hover { background: #e8eaf0; color: #111; text-decoration: none; }
.axm-forgot-row { text-align: right; margin: -6px 0 16px; }
.axm-link { color: #1a2e6e; font-size: 13px; font-weight: 600; text-decoration: none; }
.axm-link:hover { color: #d32f0c; text-decoration: underline; }

/*
 * Resend code + clock — one glossy red only.
 * Never put opacity on <a> alone during countdown: it fades “Resend code” but not the <i> clock → mismatch.
 */
#otpModal .axm-resend-row.resend-otp {
    --psx-resend-gloss: #c40012;
}
#otpModal p.axm-resend-row a#resendOtpButton.axm-link,
#otpModal a#resendOtpButton.axm-link,
a#resendOtpButton.axm-link,
a#resendOtpButton {
    color: var(--psx-resend-gloss, #c40012) !important;
    -webkit-text-fill-color: var(--psx-resend-gloss, #c40012) !important;
    background: none !important;
    background-clip: unset !important;
    font-weight: 700 !important;
    text-decoration: none !important;
    opacity: 1 !important;
    transition: filter 0.15s, color 0.15s;
    display: inline-block;
    text-shadow:
        0 1px 0 rgba(255, 255, 255, 0.92),
        0 -1px 0 rgba(85, 0, 0, 0.48),
        0 2px 12px rgba(196, 0, 18, 0.42);
}
#otpModal p.axm-resend-row a#resendOtpButton.axm-link:hover,
#otpModal a#resendOtpButton.axm-link:hover,
a#resendOtpButton.axm-link:hover,
a#resendOtpButton:hover {
    color: #9c0010 !important;
    -webkit-text-fill-color: #9c0010 !important;
    filter: brightness(1.05);
    text-decoration: underline !important;
    text-shadow:
        0 1px 0 rgba(255, 255, 255, 0.98),
        0 0 16px rgba(196, 0, 18, 0.55);
}
/* Same visual weight as link (no faded text vs bold icon) — still non-clickable via pointer-events */
#otpModal p.axm-resend-row a#resendOtpButton.pointer-disable,
a#resendOtpButton.pointer-disable {
    opacity: 1 !important;
    cursor: not-allowed !important;
}
#otpModal .axm-resend-row .fa-clock-o.clock {
    color: var(--psx-resend-gloss, #c40012) !important;
    -webkit-text-fill-color: var(--psx-resend-gloss, #c40012) !important;
    opacity: 1 !important;
    text-shadow:
        0 1px 0 rgba(255, 255, 255, 0.92),
        0 -1px 0 rgba(85, 0, 0, 0.48),
        0 2px 12px rgba(196, 0, 18, 0.42);
}
/* Same gloss where resend row is not inside #otpModal (e.g. profile verify UI) */
p.resend-otp .fa-clock-o.clock {
    color: #c40012 !important;
    -webkit-text-fill-color: #c40012 !important;
    opacity: 1 !important;
    text-shadow:
        0 1px 0 rgba(255, 255, 255, 0.92),
        0 -1px 0 rgba(85, 0, 0, 0.48),
        0 2px 12px rgba(196, 0, 18, 0.42);
}
.axm-back-row { text-align: center; margin: 16px 0 0; }
.axm-terms { font-size: 11px; color: #aaa; text-align: center; margin: 16px 0 0; line-height: 1.6; }
.axm-terms a { color: #1a2e6e; text-decoration: none; }
.axm-terms a:hover { text-decoration: underline; }
.axm-otp-icon { font-size: 3rem; margin-bottom: 16px; display: block; line-height: 1; }
.axm-resend-row { text-align: center; font-size: 13px; color: #888; margin: 16px 0 0; }
/* OTP modal: newstyle.css p.resend-otp uses margin-top:-10px — overlaps Verify button */
#otpModal .axm-resend-row.resend-otp {
    display: block;
    text-align: center;
    margin-top: 1.35rem;
    margin-right: 0;
    margin-bottom: 0;
}
.axm-logout-icon { font-size: 2.5rem; margin-bottom: 12px; display: block; }
.axm-logout-btns { display: flex; flex-direction: column; gap: 10px; margin-top: 8px; }
/* Cancel in logout modal: match the danger palette but slightly lighter — white text */
#logoutModal .axm-btn--ghost {
    background: #e84040 !important;
    background-image: linear-gradient(135deg, #e84040 0%, #c62828 100%) !important;
    color: #ffffff !important;
    border: none !important;
    box-shadow: 0 4px 14px rgba(211,47,12,.20) !important;
}
#logoutModal .axm-btn--ghost:hover {
    background: #c62828 !important;
    background-image: linear-gradient(135deg, #c62828 0%, #a40011 100%) !important;
    color: #ffffff !important;
}
.axm-form-footer { display: flex; gap: 10px; margin-top: 20px; }
.axm-form-footer .axm-btn { margin: 0; }
@media (max-width: 480px) {
    .axm-dialog { max-width: 96vw; margin: .5rem auto; }
    .axm-body { padding: 24px 18px 20px; }
}

/* Loader overlay/animation moved here from body <style> to avoid late repaint */
#loader {
    position: absolute;
    left: 50%;
    top: 50%;
    z-index: 9999;
    width: 120px;
    height: 120px;
    margin: -76px 0 0 -76px;
    border: 16px solid #f3f3f3;
    border-radius: 50%;
    border-top: 16px solid #3498db;
    -webkit-animation: spin 2s linear infinite;
    animation: spin 2s linear infinite;
}
@-webkit-keyframes spin {
    0% { -webkit-transform: rotate(0deg); }
    100% { -webkit-transform: rotate(360deg); }
}
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
.animate-bottom {
    position: relative;
    -webkit-animation-name: animatebottom;
    -webkit-animation-duration: 1s;
    animation-name: animatebottom;
    animation-duration: 5s;
}
@-webkit-keyframes animatebottom {
    from { bottom: -100px; opacity: 0; }
    to { bottom: 0; opacity: 1; }
}
@keyframes animatebottom {
    from { bottom: -100px; opacity: 0; }
    to { bottom: 0; opacity: 1; }
}
#loaderDiv {
    position: fixed;
    left: 0;
    top: 0;
    right: 0;
    bottom: 0;
    background: #00000054;
    z-index: 999;
}

/* ================================================================
   USA PAYSTUB FORM — Professional UI  (TurboTax / Payroll grade)
   Visual overrides only. IDs, names, data-*, JS hooks untouched.
   ================================================================ */

/* ── Soft page tint behind cards (like TurboTax / Gusto) ── */
.container.mt-2.px-0 {
    background: transparent !important;
    padding: 28px 20px 56px !important;
    border-radius: 0 !important;
}

/* ── Section cards: glossy silver gradient border + white surface ── */
.box-usa {
    background:
        linear-gradient(180deg, #ffffff 0%, #fafbfd 100%) padding-box,
        linear-gradient(145deg,
            #c8d4de  0%,
            #f0f4f7 22%,
            #a8b8c8 44%,
            #e8edf2 66%,
            #b8c8d8 88%,
            #edf0f4 100%
        ) border-box !important;
    border: 2px solid transparent !important;
    border-radius: 14px !important;
    box-shadow:
        0 1px 0 rgba(255,255,255,0.95) inset,
        0 2px 6px rgba(140,158,175,0.14),
        0 6px 28px rgba(0,0,0,0.06) !important;
    padding: 22px 26px 26px !important;
    position: relative !important;
}

/* ── Section headings with Font Awesome icon prefix ── */
.box-h5 {
    font-family: 'Inter', 'Segoe UI', Arial, sans-serif !important;
    font-size: 1.08rem !important;
    font-weight: 800 !important;
    color: #12263a !important;
    letter-spacing: 0.01em !important;
    padding: 0 0 12px 0 !important;
    margin-bottom: 12px !important;
    border: none !important;
    border-bottom: 2px solid #dfe7ef !important;
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    line-height: 1.35 !important;
    text-transform: none !important;
}
/* Colored left accent replacing old left border */
.box-h5::before {
    content: '' !important;
    display: inline-block !important;
    width: 4px !important;
    height: 20px !important;
    background: linear-gradient(180deg, #1a6a8a, #2196b4) !important;
    border-radius: 3px !important;
    flex-shrink: 0 !important;
}
/* Font Awesome document icon after the accent bar */
.box-h5::after {
    font-family: 'FontAwesome' !important;
    content: '\f15c' !important;
    font-size: 15px !important;
    color: #1a6a8a !important;
    opacity: 0.7 !important;
    margin-left: auto !important;
    font-weight: 400 !important;
}

/* ── Form labels ── */
.lable {
    font-family: 'Inter', 'Segoe UI', Arial, sans-serif !important;
    font-size: 10.5px !important;
    font-weight: 800 !important;
    letter-spacing: 0.08em !important;
    color: #475569 !important;
    margin-bottom: 5px !important;
    display: block !important;
    text-transform: uppercase !important;
}

/* ── Text inputs ── */
.input-box-font {
    border-radius: 8px !important;
    border: 1.5px solid #d0d9e3 !important;
    background: #f8fafc !important;
    padding: 10px 13px !important;
    font-size: 15px !important;
    color: #1a202c !important;
    transition: border-color 0.18s, box-shadow 0.18s, background 0.18s !important;
    box-shadow: 0 1px 2px rgba(0,0,0,0.04) inset !important;
}
.input-box-font:focus {
    border-color: #1a6a8a !important;
    background: #ffffff !important;
    box-shadow: 0 0 0 3px rgba(26,106,138,0.10), 0 1px 2px rgba(0,0,0,0.04) inset !important;
    outline: none !important;
}
.input-box-font:hover:not(:focus) {
    border-color: #a8b8cc !important;
}

/* ── Selects / dropdowns with custom silver caret ── */
.dropdown11,
.dropdown1 {
    border-radius: 8px !important;
    border: 1.5px solid #d0d9e3 !important;
    background: #f8fafc !important;
    padding: 10px 36px 10px 13px !important;
    font-size: 15px !important;
    color: #1a202c !important;
    -webkit-appearance: none !important;
    appearance: none !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='11' height='11' fill='%235a6a7a' viewBox='0 0 16 16'%3E%3Cpath d='M7.247 11.14 2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: right 12px center !important;
    transition: border-color 0.18s, box-shadow 0.18s !important;
    height: auto !important;
    box-shadow: 0 1px 2px rgba(0,0,0,0.04) inset !important;
}
.dropdown11:focus,
.dropdown1:focus {
    border-color: #1a6a8a !important;
    background-color: #ffffff !important;
    box-shadow: 0 0 0 3px rgba(26,106,138,0.10), 0 1px 2px rgba(0,0,0,0.04) inset !important;
    outline: none !important;
}
.dropdown11:hover:not(:focus),
.dropdown1:hover:not(:focus) {
    border-color: #a8b8cc !important;
}

/* Override newstyle.css .form-control font-size (1.5rem far too large) */
#submit_form_paystubx_id .form-control {
    font-size: 15px !important;
    height: auto !important;
    line-height: 1.5 !important;
}

/* ── Input text visibility fix (all pages: USA, Canada, UK, Global) ──────────────
   newstyle.css rule at line 1187 sets background:#244b1f + color:white on
   ALL input:hover, making typed text invisible on every paystub form.
   #fname:hover (newstyle line 700) also sets a dark bg without a text colour.
   This single rule in responsive-fix.css (last loaded) fixes all pages at once —
   no per-page overrides needed, no duplicates.                                  */
input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):hover,
input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):focus,
input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):active {
    background: #fff !important;
    background-image: none !important;
    color: #333 !important;
}

/* .input-uk:hover sets white text on a dark red gradient — same fix */
.input-uk:hover,
.input-uk:focus {
    color: #333 !important;
    background-image: none !important;
    background: #fff !important;
    border: 2px solid #d32f0c !important;
}

/* ── Address-book inline selects ── */
.address_book,
.address_book_1 {
    border-radius: 6px !important;
    border: 1.5px solid #c8d4de !important;
    background: #edf2f7 !important;
    font-size: 13px !important;
    padding: 4px 10px !important;
    height: 34px !important;
    color: #1a202c !important;
    font-weight: 500 !important;
}

/* ── Address-book PNG icon ── */
img.address-book {
    width: 28px !important;
    height: 28px !important;
    opacity: 0.75 !important;
    transition: opacity 0.2s !important;
    cursor: pointer !important;
    filter: drop-shadow(0 1px 2px rgba(0,0,0,0.15)) !important;
}
img.address-book:hover { opacity: 1 !important; }

/* ── Eye icon (template preview toggle) ── */
.uk-eye {
    font-size: 26px !important;
    color: #1a6a8a !important;
    cursor: pointer !important;
    transition: color 0.2s, transform 0.15s !important;
    vertical-align: middle !important;
}
.uk-eye:hover {
    color: #d32f0c !important;
    transform: scale(1.12) !important;
}

/* ── Template section labels (BASIC / ADVANCED) ── */
.base {
    font-family: 'Inter', 'Segoe UI', Arial, sans-serif !important;
    font-size: 13px !important;
    font-weight: 800 !important;
    letter-spacing: 0.1em !important;
    color: #12263a !important;
    text-transform: uppercase !important;
}
/* Advanced template heading (inline style override) */
#submit_form_paystubx_id h6[style*="margin-left"] {
    font-family: 'Inter', 'Segoe UI', Arial, sans-serif !important;
    font-size: 13px !important;
    font-weight: 800 !important;
    letter-spacing: 0.1em !important;
    color: #12263a !important;
    text-transform: uppercase !important;
    margin-left: 0 !important;
}

/* ── Template divider ── */
.sh img {
    opacity: 0.35 !important;
    filter: grayscale(60%) !important;
    height: 160px !important;
}

/* ── Earning statement column header buttons ── */
.statementbtn {
    background: linear-gradient(180deg, #253d4e, #1a2e3b) !important;
    color: #e8f0f5 !important;
    border-radius: 6px !important;
    font-size: 10.5px !important;
    font-weight: 700 !important;
    letter-spacing: 0.6px !important;
    padding: 10px 5px !important;
    border: none !important;
    width: 100% !important;
    text-transform: uppercase !important;
    box-shadow: 0 1px 3px rgba(0,0,0,0.18) !important;
}

/* ── Earning / deduction value cells ── */
.earnbtn {
    background: #ffffff !important;
    border: 1.5px solid #c8d4de !important;
    color: #1a2e3b !important;
    font-weight: 600 !important;
    border-radius: 6px !important;
    font-size: 14px !important;
    padding: 8px 6px !important;
    box-shadow: 0 1px 2px rgba(0,0,0,0.04) inset !important;
    transition: border-color 0.15s, box-shadow 0.15s !important;
}
.earnbtn:focus {
    border-color: #1a6a8a !important;
    outline: none !important;
    box-shadow: 0 0 0 3px rgba(26,106,138,0.10) !important;
    background: #f8fbfd !important;
}
.earnbtn:hover:not(:focus):not([type="button"]) {
    border-color: #a8b8cc !important;
}

/* ── Lock / unlock padlock — Font Awesome icon ── */
.psx-lock-icon {
    font-size: 17px !important;
    color: #4e6680 !important;
    cursor: pointer !important;
    opacity: 0.72 !important;
    transition: opacity 0.18s, color 0.18s, transform 0.15s !important;
    display: inline-block !important;
    line-height: 1 !important;
}
.psx-lock-icon:hover {
    opacity: 1 !important;
    color: #1a5276 !important;
}
.psx-lock-icon.fa-unlock-alt {
    color: #1a7a55 !important;
    opacity: 0.85 !important;
}

/* Deduction rows: align icon with input */
#submit_form_paystubx_id .taxes {
    padding-left: 38px !important;
    text-align: left !important;
}
#submit_form_paystubx_id .box-usa .col-md-4.col-lg-3.mb-3 {
    position: relative;
}
#submit_form_paystubx_id .box-usa .col-md-4.col-lg-3.mb-3 > .psx-lock-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
}
#submit_form_paystubx_id .box-usa .col-md-4.col-lg-3.mb-3 > .psx-lock-icon:hover {
    transform: translateY(-50%) scale(1.2) !important;
}

/* ── DEDUCTIONS section header button ── */
.createbtn {
    background: linear-gradient(135deg, #253d4e, #1a2e3b) !important;
    color: #ffffff !important;
    border-radius: 8px !important;
    font-size: 17px !important;
    font-weight: 700 !important;
    padding: 10px 28px !important;
    border: none !important;
    letter-spacing: 0.4px !important;
    box-shadow: 0 2px 10px rgba(30,58,74,0.22) !important;
    transition: opacity 0.18s !important;
}
.createbtn:hover { opacity: 0.88 !important; }

/* ── Add Earning / Add Deduction — ghost/dashed buttons ── */
.add_button.earnbtn,
.add_deduction.earnbtn {
    background: #f0f7fb !important;
    border: 2px dashed #7ab5cc !important;
    color: #1a6a8a !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    border-radius: 8px !important;
    box-shadow: none !important;
}
.add_button.earnbtn:hover,
.add_deduction.earnbtn:hover {
    background: #1a6a8a !important;
    border-color: #1a6a8a !important;
    color: #ffffff !important;
    box-shadow: 0 2px 8px rgba(26,106,138,0.22) !important;
}

/* ── Net Pay button ── */
.netpaybtn {
    background: linear-gradient(135deg, #157a4a, #1ea65c) !important;
    color: #ffffff !important;
    border-radius: 8px !important;
    font-size: 19px !important;
    font-weight: 700 !important;
    padding: 11px 16px !important;
    border: none !important;
    box-shadow: 0 2px 12px rgba(30,166,92,0.28) !important;
    letter-spacing: 0.3px !important;
    width: 100% !important;
    transition: opacity 0.18s !important;
}
.netpaybtn:hover { opacity: 0.9 !important; }

/* ── Hourly / Salary toggle — pill style ── */
.hour_btn,
.salary_btn {
    background: #eef2f6 !important;
    color: #425b76 !important;
    padding: 10px 22px !important;
    border-radius: 10px !important;
    font-size: 13px !important;
    font-weight: 800 !important;
    letter-spacing: 0.08em !important;
    border: 2px solid #27374a !important;
    transition: background 0.18s, color 0.18s, box-shadow 0.18s, transform 0.15s !important;
    cursor: pointer !important;
    text-transform: uppercase !important;
}
.hour_btn.date_select,
.salary_btn.date_select {
    background: linear-gradient(135deg, #c62b0a, #d93b18) !important;
    color: #ffffff !important;
    border-color: transparent !important;
    box-shadow: 0 2px 8px rgba(209,59,24,0.28) !important;
}
.hour_btn:hover,
.salary_btn:hover {
    transform: translateY(-1px) !important;
}

/* ── Preview CTA button ── */
.previewbtn {
    background: linear-gradient(135deg, #a81f07, #cc2f0c) !important;
    color: #ffffff !important;
    border-radius: 9px !important;
    font-size: 17px !important;
    font-weight: 700 !important;
    padding: 13px 38px !important;
    border: none !important;
    box-shadow: 0 3px 14px rgba(204,47,12,0.28) !important;
    transition: opacity 0.18s, transform 0.15s !important;
    letter-spacing: 0.3px !important;
    -webkit-appearance: none !important;
    appearance: none !important;
}
.previewbtn:hover {
    background: linear-gradient(135deg, #8e1a06, #b02208) !important;
    color: #ffffff !important;
    opacity: 0.95 !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 5px 18px rgba(204,47,12,0.32) !important;
}

/* ── Email / Download CTA button ── */
.emailbtn {
    background: linear-gradient(135deg, #0e6e44, #18934f) !important;
    color: #ffffff !important;
    border-radius: 9px !important;
    font-size: 17px !important;
    font-weight: 700 !important;
    padding: 13px 38px !important;
    border: none !important;
    box-shadow: 0 3px 14px rgba(24,147,79,0.28) !important;
    transition: opacity 0.18s, transform 0.15s !important;
    letter-spacing: 0.3px !important;
    -webkit-appearance: none !important;
    appearance: none !important;
}
.emailbtn:hover {
    background: linear-gradient(135deg, #09472e, #0f6636) !important;
    color: #ffffff !important;
    opacity: 0.95 !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 5px 18px rgba(24,147,79,0.32) !important;
}

/* ── Bottom CTA bar ── */
.usa-btn-inner {
    gap: 14px !important;
    flex-wrap: wrap !important;
    padding: 8px 0 4px !important;
}

/* ── Font Awesome icons inside buttons — normalize size ── */
.previewbtn .fa,
.emailbtn .fa {
    font-size: 20px !important;
    vertical-align: middle !important;
}
.add_button.earnbtn .fa,
.add_deduction.earnbtn .fa {
    font-size: 18px !important;
    vertical-align: middle !important;
}

/* ── Sub-label paragraphs (serif → system font, professional look) ── */
#submit_form_paystubx_id p[style*="font-family: serif"],
#submit_form_paystubx_id p[style*="font-family:serif"] {
    font-family: 'Inter', 'Segoe UI', sans-serif !important;
    font-size: 10.5px !important;
    font-weight: 700 !important;
    color: #5a6a7a !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
}

/* ── Required asterisk ── */
.redColor { color: #c0392b !important; }

/* ── Template gallery modal opened from the eye icon ── */
.psx-template-dialog {
    width: min(96vw, 1500px) !important;
    max-width: min(96vw, 1500px) !important;
}
.usa-template-modal-content {
    border-radius: 20px !important;
    overflow: hidden;
    border: 1px solid #d8e1ea !important;
    box-shadow: 0 10px 36px rgba(15, 23, 42, 0.18) !important;
    min-height: 88vh;
}
.usa-template-modal-header {
    background: linear-gradient(135deg, #23384a, #1a2e3b) !important;
    border-bottom: none !important;
    padding: 14px 20px !important;
}
.usa-template-modal-header .close {
    color: #ffffff !important;
    opacity: 0.95 !important;
    text-shadow: none !important;
}
.usa-template-modal-body {
    padding: 22px 24px 24px !important;
    background: #ffffff !important;
    display: flex;
    flex-direction: column;
    min-height: calc(88vh - 64px);
}
.usa-template-modal-title {
    margin: 0 0 6px !important;
    font-family: 'Inter', 'Segoe UI', Arial, sans-serif !important;
    color: #12263a !important;
    font-size: 1.22rem !important;
    font-weight: 800 !important;
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    letter-spacing: 0.01em !important;
}
.usa-template-modal-subtitle {
    margin: 0 0 16px !important;
    font-family: 'Inter', 'Segoe UI', Arial, sans-serif !important;
    color: #5b6b7d !important;
    font-size: 0.93rem !important;
    font-weight: 600 !important;
}
.psx-template-topbar {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 18px;
}
.psx-template-counter {
    background: #eef4f9;
    color: #173042;
    border-radius: 999px;
    padding: 8px 14px;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    white-space: nowrap;
}
.psx-template-viewer {
    display: flex;
    align-items: stretch;
    gap: 16px;
    flex: 1 1 auto;
    min-height: 0;
}
.psx-template-stage {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 260px;
    gap: 18px;
    flex: 1 1 auto;
    min-height: 0;
}
.psx-template-main {
    display: flex;
    flex-direction: column;
    min-width: 0;
    min-height: 0;
}
.psx-template-peek-frame {
    border-radius: 12px;
    overflow: hidden;
    background: #f0f4f8;
    border: 1px solid #dde5ee;
    position: relative;
}
/* Main preview: full native size, user scrolls inside */
.psx-template-main-frame {
    border-radius: 14px;
    border: 1px solid #d5dfe8;
    background: #ffffff;
    box-shadow: 0 2px 16px rgba(15,23,42,0.08);
    overflow: auto;
    height: min(72vh, 860px);
    flex: 1 1 auto;
}
.psx-template-main-iframe {
    width: 100%;
    height: 1650px;
    border: none;
    display: block;
}
.psx-template-main-meta {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 6px 0;
}
.psx-template-chip {
    display: inline-flex;
    align-items: center;
    background: #eef6fb;
    color: #1a6a8a;
    border-radius: 999px;
    padding: 6px 12px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    white-space: nowrap;
}
.psx-template-main-copy {
    min-width: 0;
    flex: 1 1 auto;
}
.psx-template-title {
    margin: 0;
    font-family: 'Inter', 'Segoe UI', Arial, sans-serif !important;
    font-size: 1.1rem;
    font-weight: 800;
    color: #12263a;
}
.psx-template-description {
    margin: 4px 0 0;
    color: #5b6b7d;
    font-size: 0.92rem;
    font-weight: 500;
}
.psx-template-apply {
    border: none;
    border-radius: 12px;
    background: linear-gradient(135deg, #c62b0a, #d93b18);
    color: #fff;
    padding: 12px 18px;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    box-shadow: 0 8px 20px rgba(209,59,24,0.24);
    white-space: nowrap;
}
.psx-template-peek {
    display: flex;
    flex-direction: column;
    gap: 10px;
    border: 1px solid #d9e2eb;
    border-radius: 18px;
    background: #f8fbfd;
    padding: 14px;
    text-align: left;
    cursor: pointer;
    transition: transform 0.18s, box-shadow 0.18s, border-color 0.18s;
    min-height: 0;
}
.psx-template-peek:hover {
    transform: translateY(-2px);
    border-color: #b7c8d9;
    box-shadow: 0 10px 24px rgba(15,23,42,0.08);
}
.psx-template-peek.is-disabled {
    opacity: 0.6;
    cursor: default;
    pointer-events: none;
}
.psx-template-peek-label {
    color: #1a6a8a;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}
.psx-template-peek-frame {
    height: 270px;
}
.psx-template-peek-iframe {
    width: 1200px;
    height: 1450px;
    transform: scale(0.22);
    transform-origin: top left;
    pointer-events: none;
    border: none;
    display: block;
}
.psx-template-peek-name {
    font-size: 13px;
    font-weight: 800;
    color: #173042;
    line-height: 1.35;
}
.psx-template-nav {
    width: 54px;
    min-width: 54px;
    border: 1px solid #d7e0e8;
    border-radius: 16px;
    background: #ffffff;
    color: #23384a;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    transition: transform 0.18s, box-shadow 0.18s, border-color 0.18s;
}
.psx-template-nav:hover:not(:disabled) {
    transform: translateY(-2px);
    border-color: #c3d1dd;
    box-shadow: 0 8px 20px rgba(15,23,42,0.08);
}
.psx-template-nav:disabled {
    opacity: 0.45;
    cursor: not-allowed;
    box-shadow: none;
}
.psx-tpl-fallback {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    font-size: 44px;
    color: #c0c8d8;
}
.psx-tpl-name {
    padding: 8px 12px;
    font-size: 12.5px;
    font-weight: 700;
    color: #1e293b;
    text-align: center;
    background: #f8f9fb;
    border-top: 1px solid #e0e4ec;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    letter-spacing: 0.2px;
}

.usa-template-preview-empty {
    border: 1px dashed #c8d4de;
    border-radius: 16px;
    padding: 32px 24px;
    text-align: center;
    color: #5a6a7a;
    background: #f8fafc;
    margin-top: 10px;
}

/* ── Responsive: tablet ── */
@media (max-width: 1023px) {
    .box-usa { padding: 16px 16px 20px !important; }
    .container.mt-2.px-0 { padding-left: 12px !important; padding-right: 12px !important; }
    .psx-template-dialog {
        width: 98vw !important;
        max-width: 98vw !important;
    }
    .psx-template-stage {
        grid-template-columns: minmax(0, 1fr) 200px;
    }
    .psx-template-main-frame {
        height: 60vh;
    }
    .psx-template-peek-frame {
        height: 220px;
    }
}

/* ── Responsive: mobile ── */
@media (max-width: 767px) {
    .box-usa { padding: 14px 12px 18px !important; border-radius: 10px !important; }
    .container.mt-2.px-0 { padding-left: 8px !important; padding-right: 8px !important; }
    .box-h5 { font-size: 0.9rem !important; }
    .statementbtn { font-size: 9.5px !important; padding: 7px 2px !important; letter-spacing: 0 !important; }
    .earnbtn { font-size: 12px !important; }
    .netpaybtn { font-size: 16px !important; }
    .createbtn { font-size: 14px !important; padding: 9px 18px !important; }
    .previewbtn, .emailbtn { font-size: 15px !important; padding: 11px 20px !important; }
    .hour_btn, .salary_btn { font-size: 12px !important; padding: 7px 14px !important; }
    .usa-template-modal-content {
        min-height: 94vh;
        border-radius: 16px !important;
    }
    .usa-template-modal-body {
        padding: 16px !important;
        min-height: calc(94vh - 56px);
    }
    .psx-template-topbar {
        flex-direction: column;
        gap: 10px;
    }
    .psx-template-viewer {
        gap: 10px;
    }
    .psx-template-stage {
        grid-template-columns: 1fr;
    }
    .psx-template-main-frame {
        height: 52vh;
    }
    .psx-template-main-meta {
        flex-direction: column;
        align-items: flex-start;
    }
    .psx-template-peek {
        order: 2;
    }
    .psx-template-peek-frame {
        height: 180px;
    }
    .psx-template-nav {
        width: 44px;
        min-width: 44px;
        border-radius: 12px;
        font-size: 24px;
    }
}

@media (max-width: 479px) {
    .box-usa { padding: 12px 10px 14px !important; }
    .previewbtn, .emailbtn { width: 100% !important; }
}

/* ================================================================
   UK PAYSLIP GUIDE — 3-card layout
   ================================================================ */
.uk-payslip-guide {
    background: #f4f6fb;
}
.uk-payslip-guide .guide-section-label {
    display: inline-block;
    background: #e8eaf6;
    color: #1a237e;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    padding: 0.3rem 0.9rem;
    border-radius: 20px;
    margin-bottom: 0.75rem;
    text-transform: uppercase;
}
.uk-payslip-guide .guide-main-heading {
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    font-weight: 700;
    color: #1a1f6c;
    font-family: helvetica-w01-bold, helvetica-w02-bold, sans-serif;
    margin-bottom: 0.75rem;
}
.uk-payslip-guide .guide-sub {
    color: #555;
    font-size: 1rem;
    max-width: 780px;
    margin: 0 auto;
    line-height: 1.75;
}
.guide-card {
    border: none;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 4px 24px rgba(26, 31, 108, 0.10);
    transition: transform 0.22s ease, box-shadow 0.22s ease;
    display: flex;
    flex-direction: column;
}
.guide-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 36px rgba(26, 31, 108, 0.18);
}
.guide-card-header {
    background: linear-gradient(135deg, #1a1f6c 0%, #3949ab 100%);
    color: #fff;
    padding: 1.25rem 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.8rem;
}
.guide-card-icon {
    font-size: 1.4rem;
    opacity: 0.9;
    flex-shrink: 0;
}
.guide-card-header h3 {
    font-size: 1rem;
    font-weight: 600;
    margin: 0;
    line-height: 1.35;
    font-family: 'Futura LT', sans-serif;
}
.guide-card-body {
    padding: 1.5rem;
    background: #fff;
    flex: 1;
}
.guide-badge {
    display: inline-block;
    background: #e8eaf6;
    color: #1a237e;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    padding: 0.2rem 0.65rem;
    border-radius: 20px;
    text-transform: uppercase;
    margin-bottom: 0.75rem;
}
.guide-item {
    padding: 0.65rem 0;
    border-bottom: 1px solid #f0f2ff;
}
.guide-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}
.guide-item-title {
    font-weight: 700;
    color: #1a1f6c;
    font-size: 0.92rem;
    margin-bottom: 0.2rem;
}
.guide-item-desc {
    color: #555;
    font-size: 0.85rem;
    line-height: 1.65;
    margin: 0;
}

/* ================================================================
   GLOBAL PAGE — body feature cards (.global-feat-card)
   ================================================================ */
.global-feat-card {
    border: none;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(26, 31, 108, 0.09);
    display: flex;
    flex-direction: column;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.global-feat-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 32px rgba(26, 31, 108, 0.16);
}
.global-feat-card__header {
    background: linear-gradient(135deg, #0f2b6b 0%, #1976d2 100%);
    color: #fff;
    padding: 1rem 1.25rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}
.global-feat-card__icon {
    font-size: 1.3rem;
    opacity: 0.9;
    flex-shrink: 0;
}
.global-feat-card__header h3 {
    font-size: 0.95rem;
    font-weight: 600;
    margin: 0;
    font-family: 'Futura LT', sans-serif;
}
.global-feat-card__body {
    padding: 1.25rem;
    background: #fff;
    flex: 1;
    font-size: 0.9rem;
    color: #444;
    line-height: 1.7;
}
.global-feat-card__body p {
    margin: 0;
}
.global-feature-cards-heading {
    font-size: clamp(1.2rem, 2.5vw, 1.6rem);
    font-weight: 700;
    color: #0f2b6b;
    font-family: helvetica-w01-bold, helvetica-w02-bold, sans-serif;
}
/* Benefits section (reuses .guide-card styles already defined above) */
.global-benefits-section {
    background: #f4f6fb;
}

.global-showcase-section {
    background: #fafafa;
}

/* Equal-height columns: image card matches GLOBAL PAYROLL BENEFITS card */
.global-showcase-row > [class*="col-"] {
    display: flex;
}

.global-showcase-media-wrap {
    display: flex;
    flex: 1;
    min-height: 100%;
    justify-content: center;
    align-items: stretch;
}

.global-showcase-media-card {
    width: 100%;
    flex: 1;
    display: flex;
    align-items: stretch;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 14px 40px rgba(15, 43, 107, 0.14);
    background: #143461;
}

.global-showcase-media-card .global-mobile-img {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 280px;
    margin-top: 0 !important;
    object-fit: cover;
    object-position: center 18%;
}

.global-showcase-copy-card {
    background: #fff;
    border-radius: 24px;
    padding: clamp(1.25rem, 3vw, 2.25rem);
    box-shadow: 0 12px 34px rgba(15, 43, 107, 0.1);
    display: flex;
    flex-direction: column;
}

@media (min-width: 992px) {
    .global-showcase-copy-card {
        margin-left: 1rem;
    }
}

/* UK payslip guide — primary CTA: single line, modern sans-serif pill */
.uk-payslip-guide .uk-payslip-guide__cta {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
    width: auto !important;
    max-width: none !important;
    min-width: 0 !important;
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif !important;
    font-weight: 600;
    font-size: clamp(0.9rem, 2.2vw, 1.05rem);
    letter-spacing: 0.02em;
    padding: 0.65rem 1.85rem !important;
    border-radius: 999px !important;
    border: none;
    box-shadow: 0 4px 14px rgba(200, 35, 51, 0.35);
    transition: transform 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
}
.uk-payslip-guide .uk-payslip-guide__cta:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(200, 35, 51, 0.45);
    color: #fff !important;
}
@media (max-width: 479px) {
    .uk-payslip-guide .uk-payslip-guide__cta {
        width: auto !important;
        max-width: calc(100vw - 2rem) !important;
        font-size: 0.82rem !important;
        padding: 0.55rem 1.1rem !important;
    }
}

/* ── Canada paystub — deduction cell: lock icon inside input (USA-style) ── */
.canada-deduction-cell {
    position: relative;
}
.canada-lock-icon {
    display: block;
    position: absolute;
    left: 11px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
    font-size: 14px !important;
    color: #4e6680 !important;
    cursor: pointer !important;
    opacity: 0.72 !important;
    transition: opacity 0.18s, color 0.18s, transform 0.15s !important;
    line-height: 1 !important;
}
.canada-lock-icon:hover {
    opacity: 1 !important;
    color: #1a5276 !important;
    transform: translateY(-50%) scale(1.15) !important;
}
.canada-lock-icon.fa-unlock-alt {
    color: #1a7a55 !important;
    opacity: 0.85 !important;
}
/*
 * Reduce font size so long names like "CANADA SAVINGS PLAN" fit in the narrow
 * col-lg-4 cell — matching QuickBooks' approach of scaling text to the column
 * width rather than truncating. The title attribute provides the full name on hover.
 * Use ID prefix to match the specificity of #submit_form_paystubx_id .taxes above.
 */
#submit_form_paystubx_id .canada-tax-input {
    padding-left: 32px !important;
    text-align: left !important;
    font-size: 11px !important;
    font-weight: 600 !important;
    letter-spacing: 0.01em;
    line-height: 1.35 !important;
    min-height: 42px !important;
    box-sizing: border-box !important;
}

/* Lock deduction row height to name cells so three columns stay aligned. */
#submit_form_paystubx_id .addtaxes_rate > .earnbtn.mt-3,
#submit_form_paystubx_id .addtaxes_ytd > .earnbtn.mt-3 {
    min-height: 42px !important;
    box-sizing: border-box !important;
}

/* ========== Legal docs & contact (static pages) ========== */
.legal-doc-page {
    background: linear-gradient(180deg, #0a0a0f 0%, #12121a 45%, #0d0d12 100%);
    color: #e8eaef;
    padding: 2rem 0 4rem;
    min-height: 55vh;
}
.legal-doc-page .legal-doc-inner {
    max-width: 820px;
    margin: 0 auto;
    padding: 0 1rem;
}
.legal-doc-page .legal-hero {
    text-align: center;
    padding-bottom: 1.75rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    margin-bottom: 2rem;
}
.legal-doc-page .legal-hero h1 {
    font-size: clamp(1.65rem, 4vw, 2.2rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 0.65rem;
    color: #fff;
}
.legal-doc-page .legal-hero .lead {
    color: #a8b0c0;
    font-size: 1.02rem;
    max-width: 640px;
    margin: 0 auto;
    line-height: 1.65;
}
.legal-doc-page .legal-meta {
    font-size: 0.8125rem;
    color: #7a8599;
    margin-top: 0.85rem;
}
.legal-doc-page h2 {
    font-size: 1.22rem;
    font-weight: 600;
    margin-top: 2rem;
    margin-bottom: 0.65rem;
    color: #f0f2f6;
}
.legal-doc-page h3 {
    font-size: 1.05rem;
    font-weight: 600;
    margin-top: 1.35rem;
    margin-bottom: 0.5rem;
    color: #c8ceda;
}
.legal-doc-page p,
.legal-doc-page li {
    color: #b8c0d0;
    line-height: 1.72;
    font-size: 1rem;
}
.legal-doc-page ul,
.legal-doc-page ol {
    padding-left: 1.25rem;
    margin-bottom: 1rem;
}
.legal-doc-page li + li {
    margin-top: 0.35rem;
}
.legal-doc-page a {
    color: #7eb8ff;
    text-decoration: underline;
    text-underline-offset: 2px;
}
.legal-doc-page a:hover {
    color: #b8d9ff;
}
.legal-doc-page .legal-note {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 1rem 1.15rem;
    margin: 1.25rem 0;
    font-size: 0.95rem;
}
.legal-doc-page .legal-seo-footnote {
    font-size: 0.78rem;
    color: #5a6578;
    margin-top: 3rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    line-height: 1.65;
}

.contact-page-wrap {
    background: linear-gradient(180deg, #f9f6f2 0%, #ebe4dc 100%);
    padding: 2.5rem 1rem 4rem;
    min-height: 50vh;
}
.contact-page-wrap .contact-card {
    max-width: 520px;
    margin: 0 auto;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 12px 40px rgba(15, 23, 42, 0.09);
    padding: 2rem 2rem 2.25rem;
}
@media (max-width: 576px) {
    .contact-page-wrap .contact-card {
        padding: 1.5rem 1.2rem;
    }
}
.contact-page-wrap .contact-card h1 {
    font-size: 1.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 0.4rem;
    color: #15151d;
}
.contact-page-wrap .contact-card .contact-lead {
    text-align: center;
    color: #5c6478;
    font-size: 0.95rem;
    margin-bottom: 1.65rem;
    line-height: 1.55;
}
.contact-page-wrap .field-group {
    margin-bottom: 1.2rem;
}
.contact-page-wrap label {
    display: block;
    font-weight: 600;
    font-size: 0.875rem;
    color: #374151;
    margin-bottom: 0.35rem;
}
.contact-page-wrap .optional-hint {
    font-weight: 400;
    color: #6b7280;
    font-size: 0.8rem;
}
.contact-page-wrap input[type="text"],
.contact-page-wrap input[type="email"],
.contact-page-wrap textarea {
    width: 100%;
    border: 1px solid #d1d5db;
    border-radius: 10px;
    padding: 0.65rem 0.85rem;
    font-size: 1rem;
    transition: border-color 0.15s, box-shadow 0.15s;
    box-sizing: border-box;
}
.contact-page-wrap textarea {
    min-height: 160px;
    resize: vertical;
}
.contact-page-wrap input:focus,
.contact-page-wrap textarea:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.16);
}
.contact-page-wrap .contact-actions {
    text-align: center;
    margin-top: 0.25rem;
}
.contact-page-wrap .contact-actions .sendbtn {
    min-width: 140px;
    padding: 0.6rem 1.5rem;
    border-radius: 10px;
}

