/* ============================================================
   CleanBill v2 — Modern Fintech Design System
   Plus Jakarta Sans + Inter · Emerald & Amber · Mobile-First PWA
   ============================================================ */

:root {
    /* Brand */
    --cb-green:        #15803D;
    --cb-green-dark:   #14532D;
    --cb-green-deep:   #052E16;
    --cb-green-light:  #BBF7D0;
    --cb-green-pale:   #F0FDF4;

    /* Accent */
    --cb-orange:       #F59E0B;
    --cb-orange-dark:  #D97706;
    --cb-yellow:       #FBBF24;

    /* Neutrals (Slate) */
    --cb-bg:           #F8FAFC;
    --cb-white:        #FFFFFF;
    --cb-surface-alt:  #F1F5F9;
    --cb-border:       #E2E8F0;
    --cb-text:         #0F172A;
    --cb-text-2:       #334155;
    --cb-text-muted:   #64748B;

    /* Elevation */
    --cb-shadow-xs:    0 1px 2px rgba(15, 23, 42, .04);
    --cb-shadow-sm:    0 2px 10px rgba(15, 23, 42, .06);
    --cb-shadow-md:    0 10px 30px rgba(15, 23, 42, .08);
    --cb-shadow-lg:    0 20px 50px rgba(15, 23, 42, .14);

    /* Radius */
    --cb-radius-sm:    10px;
    --cb-radius-md:    16px;
    --cb-radius-lg:    24px;
    --cb-radius-pill:  999px;

    /* Motion */
    --cb-transition:   0.22s cubic-bezier(.4, 0, .2, 1);
}

/* ── 1. Base & Typography ──────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-tap-highlight-color: rgba(21, 128, 61, .12); overflow-x: clip; }

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    font-size: 1rem;
    line-height: 1.65;
    color: var(--cb-text);
    background: var(--cb-bg);
    -webkit-font-smoothing: antialiased;
    overflow-x: clip;
}
a, button, .btn { touch-action: manipulation; }

h1, h2, h3, h4, h5, h6, .brand-font {
    font-family: 'Plus Jakarta Sans', 'Montserrat', system-ui, sans-serif;
    font-weight: 800;
    letter-spacing: -.025em;
    line-height: 1.18;
    color: var(--cb-text);
}

.amount, .price-display, .tabular-nums {
    font-family: 'Inter', system-ui, sans-serif;
    font-variant-numeric: tabular-nums;
}

a {
    color: var(--cb-green);
    text-decoration: none;
    transition: color var(--cb-transition);
}
a:hover { color: var(--cb-green-dark); }

/* ── 2. Unified Button System ──────────────────────────────── */
.btn {
    font-family: 'Plus Jakarta Sans', 'Inter', sans-serif;
    font-weight: 700;
    border-radius: var(--cb-radius-pill);
    padding: .62rem 1.45rem;
    transition: all var(--cb-transition);
    border-width: 1.5px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .45rem;
    min-height: 44px;
}

.btn-sm { min-height: 36px; padding: .4rem 1rem; font-size: .85rem; }
.btn-lg { min-height: 50px; padding: .78rem 1.85rem; font-size: 1rem; }
.btn-xl { min-height: 56px; padding: .95rem 2.25rem; font-size: 1.05rem; }

.btn-primary {
    background: linear-gradient(135deg, #16A34A 0%, var(--cb-green) 100%);
    border-color: var(--cb-green);
    color: #fff;
    box-shadow: 0 4px 14px rgba(21, 128, 61, .24);
}
.btn-primary:hover, .btn-primary:focus {
    background: linear-gradient(135deg, var(--cb-green) 0%, var(--cb-green-dark) 100%);
    border-color: var(--cb-green-dark);
    color: #fff;
    box-shadow: 0 8px 22px rgba(21, 128, 61, .34);
    transform: translateY(-1px);
}

.btn-cta, .btn-orange {
    background: linear-gradient(135deg, #FBBF24 0%, var(--cb-orange) 55%, var(--cb-orange-dark) 100%);
    border-color: transparent;
    color: #0F172A !important;
    font-weight: 800;
    box-shadow: 0 4px 16px rgba(245, 158, 11, .35);
}
.btn-cta:hover, .btn-cta:focus,
.btn-orange:hover, .btn-orange:focus {
    background: linear-gradient(135deg, #F59E0B 0%, #D97706 100%);
    border-color: transparent;
    color: #0F172A !important;
    box-shadow: 0 8px 24px rgba(245, 158, 11, .45);
    transform: translateY(-1px);
}

.btn-outline-green {
    background: transparent;
    color: var(--cb-green);
    border-color: var(--cb-green);
}
.btn-outline-green:hover, .btn-outline-green:focus {
    background: var(--cb-green);
    border-color: var(--cb-green);
    color: #fff;
    box-shadow: 0 6px 18px rgba(21, 128, 61, .22);
    transform: translateY(-1px);
}

.btn-soft-green {
    background: var(--cb-green-pale);
    border-color: var(--cb-green-light);
    color: var(--cb-green-dark);
}
.btn-soft-green:hover {
    background: var(--cb-green-light);
    color: var(--cb-green-deep);
}

/* ── 3. Navbar ─────────────────────────────────────────────── */
.cb-navbar {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 1030;
    padding: .85rem 0;
    background: transparent;
    transition: background .3s ease, box-shadow .3s ease, padding .3s ease;
}

.cb-navbar.scrolled,
.cb-navbar.cb-navbar-solid {
    background: rgba(255, 255, 255, .94);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    box-shadow: 0 1px 0 var(--cb-border), 0 6px 24px rgba(15, 23, 42, .06);
    padding: .6rem 0;
}

.cb-navbar .navbar-brand {
    display: inline-flex;
    align-items: center;
    padding: .15rem 0;
}
.cb-brand-logo {
    height: 36px;
    width: auto;
    display: block;
}
.cb-navbar .cb-logo-on-light { display: none; }
.cb-navbar.scrolled .cb-logo-on-dark,
.cb-navbar.cb-navbar-solid .cb-logo-on-dark { display: none; }
.cb-navbar.scrolled .cb-logo-on-light,
.cb-navbar.cb-navbar-solid .cb-logo-on-light { display: block; }
.cb-navbar.scrolled .navbar-brand,
.cb-navbar.cb-navbar-solid .navbar-brand { color: var(--cb-text); }

.cb-navbar .navbar-nav {
    list-style: none !important;
    padding-left: 0 !important;
    margin-bottom: 0;
}
.cb-navbar .nav-link {
    font-weight: 600;
    font-size: .9rem;
    color: rgba(255, 255, 255, .88);
    padding: .45rem .85rem;
    border-radius: var(--cb-radius-pill);
    transition: all var(--cb-transition);
}
.cb-navbar .nav-link:hover,
.cb-navbar .nav-link.active {
    color: #fff;
    background: rgba(255, 255, 255, .16);
}
.cb-navbar.scrolled .nav-link,
.cb-navbar.cb-navbar-solid .nav-link { color: var(--cb-text-2); }
.cb-navbar.scrolled .nav-link:hover,
.cb-navbar.scrolled .nav-link.active,
.cb-navbar.cb-navbar-solid .nav-link:hover,
.cb-navbar.cb-navbar-solid .nav-link.active {
    color: var(--cb-green);
    background: var(--cb-green-pale);
}

/* Language Switcher Pill */
.cb-lang-switch {
    display: inline-flex;
    align-items: center;
    background: rgba(255, 255, 255, .14);
    border: 1px solid rgba(255, 255, 255, .22);
    border-radius: var(--cb-radius-pill);
    padding: 2px;
    gap: 2px;
}
.cb-lang-switch a {
    font-size: .75rem;
    font-weight: 800;
    padding: .25rem .58rem;
    border-radius: var(--cb-radius-pill);
    color: rgba(255, 255, 255, .8);
    letter-spacing: .04em;
    line-height: 1.2;
}
.cb-lang-switch a.active {
    background: #fff;
    color: var(--cb-green-dark);
}
.cb-navbar.scrolled .cb-lang-switch,
.cb-navbar.cb-navbar-solid .cb-lang-switch {
    background: var(--cb-surface-alt);
    border-color: var(--cb-border);
}
.cb-navbar.scrolled .cb-lang-switch a,
.cb-navbar.cb-navbar-solid .cb-lang-switch a { color: var(--cb-text-muted); }
.cb-navbar.scrolled .cb-lang-switch a.active,
.cb-navbar.cb-navbar-solid .cb-lang-switch a.active {
    background: var(--cb-green);
    color: #fff;
}

.cb-navbar .navbar-toggler {
    border: 1.5px solid rgba(255, 255, 255, .45);
    border-radius: 10px;
    padding: .35rem .55rem;
}
.cb-navbar.scrolled .navbar-toggler,
.cb-navbar.cb-navbar-solid .navbar-toggler { border-color: var(--cb-border); }
.cb-navbar .navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255%2C255%2C255%2C.92%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2.2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}
.cb-navbar.scrolled .navbar-toggler-icon,
.cb-navbar.cb-navbar-solid .navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%2815%2C23%2C42%2C.82%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2.2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

.cb-navbar .btn-cta { min-height: 40px; padding: .42rem 1.15rem; font-size: .88rem; }

/* ── 4. Hero & Smart Omnibox ───────────────────────────────── */
.cb-hero {
    background:
        radial-gradient(ellipse 75% 65% at 88% 15%, rgba(245, 158, 11, .16) 0%, transparent 58%),
        radial-gradient(ellipse 65% 75% at 8% 92%, rgba(34, 197, 94, .2) 0%, transparent 58%),
        linear-gradient(155deg, #166534 0%, #14532D 55%, #052E16 100%);
    position: relative;
    overflow: hidden;
    padding: 6.25rem 0 3.75rem;
}

.cb-hero-grid-bg {
    position: absolute;
    inset: 0;
    opacity: .04;
    background-image:
        linear-gradient(to right, #fff 1px, transparent 1px),
        linear-gradient(to bottom, #fff 1px, transparent 1px);
    background-size: 44px 44px;
    pointer-events: none;
}

.cb-hero-content { position: relative; z-index: 2; }

.cb-hero h1 {
    font-size: clamp(1.9rem, 3.6vw, 2.95rem);
    color: #fff;
    margin-bottom: .9rem;
    line-height: 1.12;
    letter-spacing: -.03em;
}
.cb-hero h1 .highlight { color: var(--cb-yellow); }

.cb-hero .lead {
    font-size: 1rem;
    color: rgba(255, 255, 255, .84);
    line-height: 1.62;
    margin-bottom: 1.65rem;
    max-width: 470px;
}

/* Clean Editorial Inline Metrics (replaces bulky glass boxes) */
.cb-hero-metrics {
    display: flex;
    align-items: center;
    gap: 0;
    padding-top: 1.2rem;
    border-top: 1px solid rgba(255, 255, 255, .15);
    max-width: 440px;
}
.cb-hero-metric {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding-right: 1.15rem;
    margin-right: 1.15rem;
    border-right: 1px solid rgba(255, 255, 255, .14);
}
.cb-hero-metric:last-child {
    border-right: none;
    padding-right: 0;
    margin-right: 0;
}
.cb-hero-metric-val {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 1.45rem;
    font-weight: 800;
    color: #fff;
    line-height: 1.1;
    letter-spacing: -.02em;
}
.cb-hero-metric-lbl {
    font-size: .76rem;
    font-weight: 500;
    color: rgba(255, 255, 255, .68);
    margin-top: .25rem;
}

/* Smart Express Card */
.cb-omni-card {
    background: rgba(255, 255, 255, .99);
    border-radius: 20px;
    padding: 1.5rem 1.6rem;
    box-shadow: 0 22px 54px rgba(5, 46, 22, .34), 0 0 0 1px rgba(255, 255, 255, .24);
    color: var(--cb-text);
    max-width: 520px;
    margin-left: auto;
}

.cb-omni-head {
    display: flex;
    align-items: center;
    gap: .75rem;
    margin-bottom: 1rem;
}
.cb-omni-icon {
    width: 38px; height: 38px; border-radius: 11px; flex-shrink: 0;
    background: linear-gradient(135deg, #FEF3C7, #FDE68A);
    color: #B45309;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.15rem;
}
.cb-omni-input-wrap {
    position: relative;
}
.cb-omni-input {
    width: 100%;
    height: 50px;
    font-size: .98rem !important; /* prevents iOS Safari zoom while keeping compact height */
    font-weight: 600;
    border: 2px solid var(--cb-border) !important;
    border-radius: 13px !important;
    padding: 0 2.8rem 0 2.75rem !important;
    background: var(--cb-bg) !important;
    color: var(--cb-text) !important;
    transition: all var(--cb-transition);
}
.cb-omni-input:focus {
    background: #fff !important;
    border-color: var(--cb-green) !important;
    box-shadow: 0 0 0 4px rgba(21, 128, 61, .14) !important;
    outline: none;
}
.cb-omni-input-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--cb-text-muted);
    font-size: 1.1rem;
    pointer-events: none;
}
.cb-omni-clear {
    position: absolute;
    right: .65rem;
    top: 50%;
    transform: translateY(-50%);
    width: 30px; height: 30px;
    border: none; border-radius: 50%;
    background: var(--cb-surface-alt);
    color: var(--cb-text-muted);
    display: none; align-items: center; justify-content: center;
    cursor: pointer;
}
.cb-omni-clear.show { display: flex; }

/* Live detection chips inside Omnibox */
.cb-live-matches {
    display: flex;
    flex-wrap: wrap;
    gap: .45rem;
    margin-top: .75rem;
}
.cb-match-chip {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    padding: .38rem .78rem;
    border-radius: var(--cb-radius-pill);
    background: var(--cb-green-pale);
    border: 1.5px solid var(--cb-green-light);
    color: var(--cb-green-dark);
    font-size: .8rem;
    font-weight: 700;
    cursor: pointer;
    transition: all var(--cb-transition);
    text-decoration: none;
}
.cb-match-chip:hover {
    background: var(--cb-green);
    border-color: var(--cb-green);
    color: #fff;
    transform: translateY(-1px);
}
.cb-match-chip.primary {
    background: var(--cb-green);
    border-color: var(--cb-green);
    color: #fff;
}

.cb-quick-chips {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .35rem;
    margin-top: .75rem;
    padding-top: .75rem;
    border-top: 1px solid var(--cb-border);
}
.cb-quick-label {
    font-size: .74rem;
    color: var(--cb-text-muted);
    font-weight: 700;
    margin-right: .15rem;
}
.cb-quick-chip {
    display: inline-flex;
    align-items: center;
    gap: .15rem;
    font-size: .76rem;
    font-weight: 600;
    color: var(--cb-text-2);
    background: var(--cb-surface-alt);
    border: 1px solid var(--cb-border);
    padding: .24rem .62rem;
    border-radius: 8px;
    transition: all var(--cb-transition);
    white-space: nowrap;
}
.cb-quick-chip:hover {
    background: var(--cb-green-pale);
    border-color: var(--cb-green);
    color: var(--cb-green-dark);
}
.cb-quick-chip.cb-quick-all {
    color: var(--cb-green-dark);
    border-color: var(--cb-green-light);
    background: var(--cb-green-pale);
}

.cb-cleanpay-footer {
    display: flex;
    align-items: center;
    gap: .45rem;
    margin-top: .8rem;
    padding-top: .75rem;
    border-top: 1px solid var(--cb-border);
    font-size: .74rem;
    color: var(--cb-text-muted);
    line-height: 1.4;
}

.cb-cleanpay-strip {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: .5rem;
    margin-top: 1rem;
    padding: .65rem .9rem;
    border-radius: 12px;
    background: #F8FAFC;
    border: 1px solid var(--cb-border);
    font-size: .74rem;
    color: var(--cb-text-muted);
}
.cb-pay-pills {
    display: flex;
    flex-wrap: wrap;
    gap: .3rem;
}
.cb-pay-pill {
    font-size: .68rem;
    font-weight: 700;
    padding: .15rem .5rem;
    border-radius: 6px;
    background: #fff;
    border: 1px solid var(--cb-border);
    color: var(--cb-text-2);
}

/* Hero stat cards */
.cb-stat-card {
    background: rgba(255, 255, 255, .1);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, .16);
    border-radius: var(--cb-radius-md);
    padding: .9rem .65rem;
    text-align: center;
    transition: all var(--cb-transition);
}
.cb-stat-card:hover {
    background: rgba(255, 255, 255, .16);
    transform: translateY(-2px);
}
.cb-stat-card .stat-icon {
    width: 36px; height: 36px;
    border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.05rem;
    margin: 0 auto .45rem;
}
.cb-stat-card .stat-value {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 800;
    font-size: 1.35rem;
    color: #fff;
    line-height: 1.1;
}
.cb-stat-card .stat-label {
    font-size: .74rem;
    color: rgba(255, 255, 255, .78);
    font-weight: 500;
    margin-top: .15rem;
}

/* ── 5. Brand Avatar / Logo Helper ─────────────────────────── */
.cb-brand-avatar {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    flex-shrink: 0;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(15, 23, 42, .06);
}
.cb-brand-avatar.sm { width: 38px; height: 38px; border-radius: 10px; font-size: 1rem; }
.cb-brand-avatar.lg { width: 56px; height: 56px; border-radius: 14px; font-size: 1.5rem; }
.cb-brand-avatar img {
    width: 100%; height: 100%; object-fit: contain; padding: 4px; background: #fff;
}

/* ── 6. Sections & Cards ───────────────────────────────────── */
.cb-section { padding: 4.5rem 0; }
.cb-section-sm { padding: 2.75rem 0; }

.cb-section-title {
    font-size: clamp(1.55rem, 3vw, 2.15rem);
    margin-bottom: .6rem;
}
.cb-section-subtitle {
    font-size: 1.02rem;
    color: var(--cb-text-muted);
    margin-bottom: 0;
}
.cb-section-header { margin-bottom: 2.5rem; }
.cb-divider {
    width: 52px; height: 4px;
    background: linear-gradient(90deg, var(--cb-green), var(--cb-orange));
    border-radius: var(--cb-radius-pill);
    margin: .9rem 0 1.1rem;
}
.cb-divider.center { margin-left: auto; margin-right: auto; }

.cb-card {
    background: var(--cb-white);
    border: 1px solid var(--cb-border);
    border-radius: var(--cb-radius-md);
    box-shadow: var(--cb-shadow-xs);
}

.cb-service-card {
    background: var(--cb-white);
    border: 1.5px solid var(--cb-border);
    border-radius: var(--cb-radius-md);
    padding: 1.35rem;
    height: 100%;
    transition: all var(--cb-transition);
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
}
.cb-service-card:hover {
    border-color: var(--cb-green);
    box-shadow: var(--cb-shadow-md);
    transform: translateY(-3px);
}
.cb-service-icon {
    width: 48px; height: 48px;
    border-radius: 12px;
    background: var(--cb-green-pale);
    color: var(--cb-green);
    display: flex; align-items: center; justify-content: center;
    font-size: 1.3rem;
    flex-shrink: 0;
}
.cb-service-card h6 {
    font-size: .95rem;
    font-weight: 700;
    margin: 0;
    line-height: 1.3;
}
.cb-badge-cat {
    display: inline-flex;
    align-items: center;
    gap: .25rem;
    font-size: .72rem;
    font-weight: 700;
    color: var(--cb-green-dark);
    background: var(--cb-green-pale);
    border: 1px solid var(--cb-green-light);
    padding: .16rem .6rem;
    border-radius: var(--cb-radius-pill);
}
.cb-service-card .cb-pay-btn { margin-top: auto; padding-top: 1rem; }
.cb-service-card .cb-pay-btn .btn { width: 100%; font-size: .86rem; }

/* Popular tile */
.cb-popular-card {
    background: var(--cb-white);
    border-radius: var(--cb-radius-md);
    padding: 1.25rem 1rem;
    text-align: center;
    border: 1.5px solid var(--cb-border);
    transition: all var(--cb-transition);
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.cb-popular-card:hover {
    border-color: var(--cb-green);
    box-shadow: var(--cb-shadow-md);
    transform: translateY(-4px);
}
.cb-popular-card h6 {
    font-size: .9rem;
    font-weight: 700;
    color: var(--cb-text);
    margin: .75rem 0 .25rem;
}

/* Feature grid */
.cb-feature-card {
    background: var(--cb-white);
    border: 1px solid var(--cb-border);
    border-radius: var(--cb-radius-md);
    padding: 1.5rem;
    height: 100%;
    transition: all var(--cb-transition);
}
.cb-feature-card:hover {
    border-color: var(--cb-green-light);
    box-shadow: var(--cb-shadow-sm);
    transform: translateY(-2px);
}

/* How It Works */
.cb-steps-section { background: var(--cb-white); padding: 4.5rem 0; }
.cb-step { text-align: center; padding: 1.25rem 1rem; position: relative; }
.cb-step-number {
    width: 60px; height: 60px; border-radius: 18px;
    background: linear-gradient(135deg, var(--cb-green) 0%, #16A34A 60%, var(--cb-orange) 100%);
    color: #fff;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 800; font-size: 1.35rem;
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 1.15rem;
    box-shadow: 0 8px 20px rgba(21, 128, 61, .25);
    position: relative; z-index: 1;
}
.cb-step h5 { font-size: 1.05rem; margin-bottom: .5rem; }
.cb-step p { font-size: .92rem; color: var(--cb-text-muted); margin: 0; }

/* Stats strip */
.cb-stats-strip {
    background: linear-gradient(135deg, #166534 0%, #14532D 100%);
    padding: 2.75rem 0;
    color: #fff;
}
.cb-stats-strip .stat-item { text-align: center; padding: .75rem; }
.cb-stats-strip .stat-value {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 800;
    font-size: clamp(1.8rem, 3.5vw, 2.4rem);
    color: var(--cb-yellow);
    line-height: 1.05;
    display: block;
}
.cb-stats-strip .stat-label {
    font-size: .86rem;
    color: rgba(255, 255, 255, .85);
    margin-top: .3rem;
    display: block;
}

/* ── 7. Page Headers (Inner Pages) ─────────────────────────── */
.cb-page-header {
    background:
        radial-gradient(circle at 90% 20%, rgba(245, 158, 11, .16), transparent 45%),
        linear-gradient(135deg, #166534 0%, #14532D 65%, #052E16 100%);
    padding: 6.75rem 0 2.75rem;
    color: #fff;
    position: relative;
    overflow: hidden;
}
.cb-page-header h1 {
    color: #fff;
    margin-bottom: .4rem;
    font-size: clamp(1.55rem, 3.6vw, 2.3rem);
}
.cb-page-header p { color: rgba(255, 255, 255, .82); }
.cb-page-header .breadcrumb-item,
.cb-page-header .breadcrumb-item a { color: rgba(255, 255, 255, .75); font-size: .84rem; }
.cb-page-header .breadcrumb-item.active { color: var(--cb-yellow); }
.cb-page-header .breadcrumb-item + .breadcrumb-item::before { color: rgba(255, 255, 255, .45); }

/* ── 8. Category Sidebar & Horizontal Filter Pills ─────────── */
.cb-category-nav {
    background: var(--cb-white);
    border: 1px solid var(--cb-border);
    border-radius: var(--cb-radius-md);
    overflow: hidden;
    box-shadow: var(--cb-shadow-xs);
}
.cb-category-nav .cat-header {
    background: var(--cb-green-pale);
    padding: .8rem 1.1rem;
    font-size: .75rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: var(--cb-green-dark);
    border-bottom: 1px solid var(--cb-green-light);
}
.cb-category-nav .nav-link {
    display: flex;
    align-items: center;
    gap: .6rem;
    padding: .65rem 1.1rem;
    color: var(--cb-text-2);
    font-size: .88rem;
    font-weight: 600;
    border-bottom: 1px solid var(--cb-border);
    transition: all var(--cb-transition);
}
.cb-category-nav .nav-link:last-child { border-bottom: none; }
.cb-category-nav .nav-link:hover,
.cb-category-nav .nav-link.active {
    color: var(--cb-green-dark);
    background: var(--cb-green-pale);
}
.cb-category-nav .nav-link.active {
    border-left: 3px solid var(--cb-green);
    font-weight: 700;
}

.cb-pills-scroll {
    display: flex;
    gap: .5rem;
    overflow-x: auto;
    padding: .25rem 0 .5rem;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
}
.cb-pills-scroll::-webkit-scrollbar { display: none; }

.cb-cat-pill {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    padding: .48rem .95rem;
    border-radius: var(--cb-radius-pill);
    background: var(--cb-white);
    border: 1.5px solid var(--cb-border);
    color: var(--cb-text-2);
    font-size: .84rem;
    font-weight: 600;
    white-space: nowrap;
    cursor: pointer;
    transition: all var(--cb-transition);
    flex-shrink: 0;
}
.cb-cat-pill:hover { border-color: var(--cb-green); color: var(--cb-green); }
.cb-cat-pill.active {
    background: var(--cb-green);
    border-color: var(--cb-green);
    color: #fff;
    box-shadow: 0 4px 12px rgba(21, 128, 61, .22);
}

/* Search bar (inner pages) */
.cb-search-bar {
    background: var(--cb-white);
    border-bottom: 1px solid var(--cb-border);
    padding: 1.25rem 0;
}

/* ── 9. Forms & Inputs ─────────────────────────────────────── */
.form-control, .form-select {
    border: 1.5px solid var(--cb-border);
    border-radius: 12px;
    padding: .65rem .95rem;
    font-size: 1rem; /* prevent iOS Safari zoom */
    transition: border-color var(--cb-transition), box-shadow var(--cb-transition);
}
.form-control:focus, .form-select:focus {
    border-color: var(--cb-green);
    box-shadow: 0 0 0 3px rgba(21, 128, 61, .14);
}

/* ── 10. Payment Summary & Receipts ────────────────────────── */
.payment-summary {
    background: var(--cb-white);
    border: 1.5px solid var(--cb-border);
    border-radius: var(--cb-radius-md);
    padding: 1.5rem;
    box-shadow: var(--cb-shadow-sm);
}
.payment-summary .summary-row {
    display: flex; justify-content: space-between; align-items: center;
    padding: .55rem 0;
    border-bottom: 1px solid var(--cb-border);
    font-size: .9rem;
    color: var(--cb-text-muted);
}
.payment-summary .summary-row span:last-child { font-weight: 600; color: var(--cb-text); }
.payment-summary .summary-total {
    display: flex; justify-content: space-between; align-items: center;
    padding: .85rem 0 0;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 800; font-size: 1.18rem;
    color: var(--cb-green-dark);
}

.receipt-card {
    max-width: 540px;
    margin: 0 auto;
    background: var(--cb-white);
    border: 1.5px solid var(--cb-border);
    border-radius: var(--cb-radius-lg);
    overflow: hidden;
    box-shadow: var(--cb-shadow-md);
}
.receipt-card .receipt-header {
    background: #fff;
    border-bottom: 1.5px solid var(--cb-border);
    padding: 1.5rem 1.75rem 1.25rem;
}
.receipt-header .rh-logos {
    display: flex; align-items: center; justify-content: space-between; gap: 1rem;
}
.receipt-header .rh-cb-brand {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 800; font-size: 1.3rem;
    color: var(--cb-text);
    display: inline-flex; align-items: center; gap: .4rem;
}
.receipt-header .rh-cb-brand .y { color: var(--cb-orange); }
.receipt-header .rh-partner-logo { max-height: 44px; max-width: 120px; object-fit: contain; }
.receipt-header .rh-partner-name {
    font-size: .82rem; font-weight: 700; color: var(--cb-text-2);
    text-align: right; max-width: 140px;
}
.receipt-header .rh-title {
    text-align: center; margin-top: .95rem;
    font-size: .72rem; font-weight: 800; text-transform: uppercase;
    letter-spacing: .1em; color: var(--cb-text-muted);
}
.receipt-card .receipt-body { padding: 1.25rem 1.75rem 1.5rem; }
.receipt-card .receipt-row {
    display: flex; justify-content: space-between; align-items: center; gap: .75rem;
    padding: .55rem 0; font-size: .9rem;
    border-bottom: 1px dashed var(--cb-border);
}
.receipt-card .receipt-row:last-of-type { border-bottom: none; }
.receipt-card .receipt-total {
    background: var(--cb-green-pale);
    border: 1px solid var(--cb-green-light);
    border-radius: 12px;
    padding: .9rem 1rem;
    display: flex; justify-content: space-between; align-items: center;
    margin-top: 1rem;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 800; font-size: 1.12rem; color: var(--cb-green-dark);
}
.receipt-pin-box {
    background: #FFFBEB;
    border: 2px dashed var(--cb-orange);
    border-radius: 14px;
    padding: 1rem;
    text-align: center;
    margin: 1rem 0;
}
.receipt-pin-code {
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 1.35rem;
    font-weight: 800;
    letter-spacing: .12em;
    color: #92400E;
}

/* Status badges */
.badge-status-completed         { background: #DCFCE7; color: #166534; }
.badge-status-pending           { background: #FEF3C7; color: #92400E; }
.badge-status-failed            { background: #FEE2E2; color: #991B1B; }
.badge-status-quoted            { background: #DBEAFE; color: #1E40AF; }
.badge-status-collecting        { background: #FFEDD5; color: #9A3412; }
.badge-status-refunded          { background: #F3E8FF; color: #6B21A8; }
.badge-status-cancelled         { background: #F1F5F9; color: #475569; }
.badge-status-payment_initiated { background: #E0F2FE; color: #075985; }
.badge-status-payment_confirmed { background: #E0E7FF; color: #3730A3; }

/* Alerts */
.alert {
    border: none;
    border-radius: 14px;
    border-left: 4px solid;
    font-size: .92rem;
}
.alert-success { border-left-color: #16A34A; background: #F0FDF4; color: #166534; }
.alert-danger  { border-left-color: #DC2626; background: #FEF2F2; color: #991B1B; }
.alert-warning { border-left-color: #F59E0B; background: #FFFBEB; color: #92400E; }
.alert-info    { border-left-color: #0284C7; background: #F0F9FF; color: #075985; }

/* ── 11. Footer ────────────────────────────────────────────── */
.cb-footer {
    background: #071A0E;
    color: rgba(255, 255, 255, .75);
    padding: 4rem 0 0;
}
.cb-footer .footer-brand {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 800; font-size: 1.5rem;
    color: #fff;
    display: inline-flex; align-items: center; gap: .55rem;
    margin-bottom: .9rem;
}
.cb-footer .footer-brand .dot { color: var(--cb-yellow); }
.cb-footer p { font-size: .9rem; line-height: 1.7; color: rgba(255, 255, 255, .62); }
.cb-footer .footer-title {
    font-size: .74rem; font-weight: 800;
    text-transform: uppercase; letter-spacing: .1em;
    color: rgba(255, 255, 255, .5);
    margin-bottom: 1rem;
}
.cb-footer .footer-link {
    display: flex; align-items: center; gap: .4rem;
    color: rgba(255, 255, 255, .68);
    font-size: .88rem; padding: .28rem 0;
    transition: color var(--cb-transition);
}
.cb-footer .footer-link:hover { color: var(--cb-yellow); }
.cb-footer .footer-link i { font-size: .68rem; color: #4ADE80; }
.cb-footer .footer-contact-item {
    display: flex; align-items: center; gap: .65rem;
    color: rgba(255, 255, 255, .72);
    font-size: .88rem; margin-bottom: .7rem;
}
.cb-footer .footer-contact-item i { color: var(--cb-yellow); width: 1.1rem; flex-shrink: 0; }
.cb-footer .footer-contact-item a { color: rgba(255, 255, 255, .85); }
.cb-footer .footer-contact-item a:hover { color: var(--cb-yellow); }
.cb-footer .social-links { display: flex; gap: .6rem; margin-top: 1rem; }
.cb-footer .social-link {
    width: 38px; height: 38px; border-radius: 50%;
    background: rgba(255, 255, 255, .08);
    display: inline-flex; align-items: center; justify-content: center;
    color: rgba(255, 255, 255, .7); font-size: 1rem;
    transition: all var(--cb-transition);
}
.cb-footer .social-link:hover { background: var(--cb-green); color: #fff; transform: translateY(-2px); }
.cb-footer .footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, .1);
    margin-top: 2.75rem;
    padding: 1.25rem 0;
}
.cb-footer .footer-bottom p { margin: 0; font-size: .82rem; }

/* ── 12. Floating WhatsApp & PWA Install Banner ────────────── */
.cb-wa-btn {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    width: 54px; height: 54px;
    background: #25D366;
    color: #fff;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.6rem;
    box-shadow: 0 6px 20px rgba(37, 211, 102, .45);
    z-index: 1035;
    transition: transform .2s, box-shadow .2s;
}
.cb-wa-btn:hover { transform: scale(1.08); box-shadow: 0 8px 26px rgba(37, 211, 102, .6); color: #fff; }

.cb-pwa-banner {
    position: fixed;
    left: .75rem;
    right: .75rem;
    bottom: 1.25rem;
    max-width: 440px;
    margin: 0 auto;
    background: #0F172A;
    color: #fff;
    border-radius: 16px;
    padding: .7rem .85rem;
    display: none;
    align-items: center;
    gap: .65rem;
    box-shadow: 0 18px 42px rgba(15, 23, 42, .42);
    border: 1px solid rgba(255, 255, 255, .14);
    z-index: 1055;
    animation: cbSlideUp .28s ease;
}
.cb-pwa-banner.show { display: flex; }
@keyframes cbSlideUp { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: translateY(0); } }

/* Permanent PWA Install CTA in Footer & Mobile Menu */
.cb-pwa-footer-btn {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    background: rgba(255, 255, 255, .1);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, .2);
    border-radius: 10px;
    padding: .5rem .95rem;
    font-size: .82rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--cb-transition);
}
.cb-pwa-footer-btn:hover {
    background: var(--cb-green);
    border-color: var(--cb-green);
    color: #fff;
}
.cb-navbar.scrolled .cb-nav-pwa-btn,
.cb-navbar.cb-navbar-solid .cb-nav-pwa-btn {
    color: var(--cb-green-dark);
    border-color: var(--cb-green);
}

/* PWA Install Guide Bottom Sheet / Modal */
.cb-pwa-modal {
    position: fixed;
    inset: 0;
    z-index: 2060;
    background: rgba(15, 23, 42, .62);
    backdrop-filter: blur(5px);
    display: none;
    align-items: flex-end;
    justify-content: center;
    padding: 1rem;
}
.cb-pwa-modal.show { display: flex; }
@media (min-width: 576px) {
    .cb-pwa-modal { align-items: center; }
}
.cb-pwa-sheet {
    background: #fff;
    color: var(--cb-text);
    border-radius: 22px;
    padding: 1.5rem;
    width: 100%;
    max-width: 420px;
    box-shadow: 0 24px 64px rgba(15, 23, 42, .32);
    animation: cbSlideUp .22s ease;
}
.cb-pwa-steps {
    display: flex;
    flex-direction: column;
    gap: .7rem;
}
.cb-pwa-step {
    display: flex;
    align-items: center;
    gap: .85rem;
    background: var(--cb-bg);
    border: 1px solid var(--cb-border);
    border-radius: 14px;
    padding: .75rem .9rem;
    line-height: 1.45;
}
.cb-pwa-step-num {
    width: 38px;
    height: 38px;
    border-radius: 11px;
    flex-shrink: 0;
    background: var(--cb-green-pale);
    color: var(--cb-green-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
}

/* ── 13. Mobile Bottom Tab Bar (App / PWA feel) ────────────── */
.cb-mobile-tabbar {
    display: none;
    position: fixed;
    left: 0; right: 0; bottom: 0;
    z-index: 1045;
    background: rgba(255, 255, 255, .96);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-top: 1px solid var(--cb-border);
    padding: .38rem .5rem calc(.38rem + env(safe-area-inset-bottom, 0px));
    box-shadow: 0 -6px 24px rgba(15, 23, 42, .07);
}
.cb-mobile-tabbar-inner {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: .25rem;
    max-width: 520px;
    margin: 0 auto;
}
.cb-tab-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    padding: .35rem .2rem;
    border-radius: 12px;
    color: var(--cb-text-muted);
    font-size: .68rem;
    font-weight: 700;
    text-decoration: none;
    transition: all .15s;
    min-width: 0;
}
.cb-tab-item span {
    max-width: 100%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.cb-tab-item i { font-size: 1.2rem; line-height: 1; }
.cb-tab-item.active {
    color: var(--cb-green);
    background: var(--cb-green-pale);
}
.cb-tab-item.cb-tab-pay {
    color: #0F172A;
    background: linear-gradient(135deg, #FDE68A, var(--cb-orange));
}
.cb-tab-item.cb-tab-pay.active {
    box-shadow: 0 4px 12px rgba(245, 158, 11, .35);
}

/* ── 14. Responsive Breakpoints (Mobile-First & Tablet Polished) ── */
@media (min-width: 992px) and (max-width: 1199px) {
    /* Tablet Landscape / 1024px: keep navbar & quick chips crisp on 1 single line */
    .cb-navbar .nav-link { font-size: .82rem; padding: .4rem .55rem; white-space: nowrap; }
    .cb-navbar .btn-cta  { font-size: .82rem; padding: .38rem .9rem; white-space: nowrap; }
    .cb-hero h1 { font-size: 2.35rem; }
    .cb-omni-card { padding: 1.35rem 1.3rem; }
    .cb-quick-label { font-size: .7rem; }
    .cb-quick-chip  { font-size: .71rem; padding: .2rem .45rem; }
}

@media (max-width: 991px) {
    .cb-hero { padding: 5.25rem 0 2.75rem; }
    .cb-hero .lead { max-width: 600px; margin-bottom: 1.25rem; }
    .cb-hero-metrics { max-width: 520px; }
    .cb-omni-card { max-width: 620px; margin-left: auto; margin-right: auto; }
    body.cb-pwa-banner-open .cb-wa-btn {
        opacity: 0;
        pointer-events: none;
        transform: scale(.82);
    }
    .cb-navbar .navbar-collapse {
        background: #0F291A;
        border-radius: 16px;
        padding: .85rem;
        margin-top: .6rem;
        box-shadow: 0 12px 32px rgba(0, 0, 0, .28);
    }
    .cb-navbar.scrolled .navbar-collapse,
    .cb-navbar.cb-navbar-solid .navbar-collapse {
        background: #fff;
        border: 1px solid var(--cb-border);
        box-shadow: 0 12px 32px rgba(15, 23, 42, .12);
    }
    .cb-navbar .navbar-nav { gap: .15rem; }
    .cb-navbar .nav-link { padding: .6rem .9rem; border-radius: 10px; }
}

@media (min-width: 768px) and (max-width: 991px) {
    /* Tablet Portrait (iPad 768px): centered, balanced editorial rhythm */
    .cb-hero .col-lg-6:first-child { text-align: center; }
    .cb-hero .lead { margin-left: auto; margin-right: auto; }
    .cb-hero-metrics { margin-left: auto; margin-right: auto; justify-content: center; }
    .cb-hero-metric { align-items: center; }
}

@media (max-width: 767px) {
    body { padding-bottom: calc(68px + env(safe-area-inset-bottom, 0px)); }
    .cb-mobile-tabbar { display: block; }
    .cb-navbar { padding: .6rem 0; }
    .cb-brand-logo { height: 30px; }
    .cb-hero { padding: 4.6rem 0 1.85rem; }
    .cb-hero h1 { font-size: 1.68rem; margin-bottom: .55rem; }
    .cb-hero .lead { font-size: .9rem; line-height: 1.5; margin-bottom: .9rem; }
    .cb-wa-btn {
        bottom: calc(78px + env(safe-area-inset-bottom, 0px));
        right: .9rem;
        width: 46px; height: 46px; font-size: 1.35rem;
    }
    .cb-pwa-banner { bottom: calc(74px + env(safe-area-inset-bottom, 0px)); }
    .cb-section { padding: 2.5rem 0; }
    .cb-section-sm { padding: 1.75rem 0; }
    .cb-section-header { margin-bottom: 1.6rem; }
    .cb-section-subtitle { font-size: .92rem; }
    .cb-steps-section { padding: 2.5rem 0; }
    .cb-step { padding: .75rem .4rem; }
    .cb-step-number { width: 52px; height: 52px; margin-bottom: .85rem; font-size: 1.2rem; }
    .cb-popular-card { padding: .95rem .65rem; border-radius: 14px; }
    .cb-popular-card h6 { font-size: .84rem; margin: .55rem 0 .2rem; overflow-wrap: anywhere; }
    .cb-service-card { padding: 1.1rem; }
    .cb-feature-card { padding: 1.15rem; }
    .cb-omni-card { padding: 1.1rem; border-radius: 16px; max-width: 100%; }
    .cb-omni-head { margin-bottom: .75rem; }
    .cb-page-header { padding: 5rem 0 1.65rem; }
    .cb-stats-strip { padding: 2rem 0; }
    .cb-footer { padding: 2.75rem 0 0; }
    .cb-footer .footer-bottom { margin-top: 1.75rem; }
    .receipt-card .receipt-header { padding: 1.15rem 1rem; }
    .receipt-card .receipt-body { padding: 1rem; }
    .receipt-card .receipt-row { font-size: .84rem; flex-wrap: wrap; word-break: break-word; }
    .receipt-pin-code { font-size: clamp(1rem, 4.4vw, 1.3rem); word-break: break-all; }
}

@media (max-width: 374px) {
    /* Ultra-compact phones (320px - 360px) */
    .cb-hero h1 { font-size: 1.5rem; }
    .cb-omni-input { font-size: .92rem !important; padding: 0 2.5rem 0 2.4rem !important; }
    .cb-quick-chip { font-size: .72rem; padding: .22rem .5rem; }
    .cb-pwa-banner { left: .5rem; right: .5rem; padding: .58rem .65rem; gap: .5rem; }
    .cb-pwa-banner img { width: 34px; height: 34px; }
}

/* ── 15. Print ─────────────────────────────────────────────── */
@media print {
    .no-print, .cb-navbar, .cb-footer, .cb-wa-btn, .cb-mobile-tabbar, .cb-pwa-banner {
        display: none !important;
    }
    body { padding: 0 !important; margin: 0 !important; background: #fff !important; }
    .receipt-card { box-shadow: none !important; border: 1px solid #cbd5e1 !important; }
}
