/* Cro Stats Carousel Module
 * Block 6 - Fully Customizable with Admin-Uploadable Icons
 * ------------------------------------------------------------------------------------------------------------------ */

/* Block-specific styles - Brand colors inherited from global.css */

.cro-stats-carousel {
    font-family: var(--ds-font-body);
}

/* =================================================================== */
/* MAIN CONTAINER - Solid Theme Background Color */
/* =================================================================== */
.cro-stats-carousel {
    background: var(--color-secondary-normal-bg) !important;
    padding: 2.5rem 0 3rem;
    overflow: hidden;
    position: relative;
}

/* =================================================================== */
/* HEIGHT VARIATIONS (Admin Configurable) */
/* =================================================================== */
.cro-stats-carousel .stats-carousel-wrapper.height-compact {
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
}

.cro-stats-carousel .stats-carousel-wrapper.height-normal {
    padding-top: 1rem;
    padding-bottom: 1rem;
}

.cro-stats-carousel .stats-carousel-wrapper.height-spacious {
    padding-top: 1.5rem;
    padding-bottom: 1.5rem;
}

.cro-stats-carousel .stats-carousel-wrapper.height-spacious .stat-card-inner {
    padding: 1.25rem 0.75rem !important;
}

.cro-stats-carousel .stats-carousel-wrapper.height-extra {
    padding-top: 2.5rem;
    padding-bottom: 2.5rem;
}

.cro-stats-carousel .stats-carousel-wrapper.height-extra .stat-card-inner {
    padding: 1.75rem 1rem 1.5rem !important;
    min-height: 320px;
}

/* =================================================================== */
/* CUSTOM ICON SUPPORT (Uploaded SVG/PNG) */
/* =================================================================== */
.cro-stats-carousel .stat-icon-custom {
    display: flex;
    align-items: center;
    justify-content: center;
}

.cro-stats-carousel .stat-icon-custom .stat-icon-img {
    width: 24px;
    height: 24px;
    object-fit: contain;
    /* Use CSS filter to apply color - works with SVG */
    filter: drop-shadow(0 1px 2px rgba(0,0,0,0.1));
}

.cro-stats-carousel .stat-icon-custom.icon-size-normal .stat-icon-img {
    width: 24px;
    height: 24px;
}

.cro-stats-carousel .stat-icon-custom.icon-size-large .stat-icon-img {
    width: 32px;
    height: 32px;
}

/* Icon size variations */
.cro-stats-carousel .stat-icon-svg.icon-size-normal {
    width: 28px;
    height: 28px;
}

.cro-stats-carousel .stat-icon-svg.icon-size-normal svg {
    width: 22px;
    height: 22px;
}

.cro-stats-carousel .stat-icon-svg.icon-size-large {
    width: 48px;
    height: 48px;
}

.cro-stats-carousel .stat-icon-svg.icon-size-large svg {
    width: 32px;
    height: 32px;
}

/* Placeholder when no icon */
.cro-stats-carousel .stat-icon-placeholder {
    width: 24px;
    height: 24px;
}

/* Hide all background elements - solid color only */
.stats-bg-elements,
.bg-shape,
.bg-shape-1,
.bg-shape-2,
.bg-shape-3,
.bg-dots {
    display: none !important;
}

/* Remove any pseudo-elements */
.cro-stats-carousel::before,
.cro-stats-carousel::after {
    display: none !important;
}

.cro-stats-carousel .section-container {
    position: relative;
    z-index: 2;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* Header Styles - Light text for dark theme background */
.cro-stats-carousel .section-title {
    font-size: var(--ds-fs-h3); /* T9 senior-UX: bumped to 24px for AAA large-text floor */
    font-weight: 800;
    color: white;
    margin-bottom: 0.25rem;
    text-align: center;
}

.cro-stats-carousel .section-subtitle {
    font-size: var(--ds-fs-body-sm); /* T9 senior-UX: 0.85rem -> 1rem (16px AAA min) */
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.85); /* T9 senior-UX: 0.7 -> 0.85 for contrast */
    font-weight: 600;
    text-align: center;
}

/* Carousel Wrapper */
.cro-stats-carousel .stats-carousel-wrapper {
    position: relative;
    overflow: hidden;
    padding: 0 1rem;
}

.cro-stats-carousel .stats-carousel {
    display: flex;
    gap: 1.25rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding: 1rem 0 1.5rem;
    cursor: grab;
}

.cro-stats-carousel .stats-carousel:active {
    cursor: grabbing;
}

.cro-stats-carousel .stats-carousel::-webkit-scrollbar {
    display: none;
}

/* =================================================================== */
/* STAT CARDS - Compact Vivid Design */
/* =================================================================== */
.cro-stats-carousel .stat-card-v2 {
    min-width: 260px;
    max-width: 260px;
    scroll-snap-align: center;
    flex-shrink: 0;
    transform: scale(0.95);
    transform-origin: center center;
}

.cro-stats-carousel .stat-card-inner {
    background: white;
    padding: 0;
    border-radius: 18px;
    box-shadow: var(--ds-shadow-md);
    border: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    height: 100%;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}
/* ===== HORIZONTAL PROGRESS BAR AT TOP ===== */
.cro-stats-carousel .card-progress-bar {
    padding-left: 0px;
    padding-right: 0px;
    height: 5px;
    background: rgba(0, 0, 0, 0.08);
    position: relative;
    flex-shrink: 0;
    overflow: visible;
}

.cro-stats-carousel .card-progress-fill {
    height: 100%;
    /* F10 2026-05-08: was --color-primary-normal-bg (Tailwind blue alias
       defined in base.html.twig at #2b65e8) with --ds-cta as fallback. The
       primary alias bypassed --ds-cta on every render — collapsed to plain
       --ds-cta so Hermes overrides actually reach the fill bar. */
    background: linear-gradient(90deg,
        var(--ds-cta) 0%,
        var(--ds-cta-dk, var(--ds-cta)) 50%,
        var(--ds-cta) 100%);
    background-size: 200% 100%;
    width: 0%;
    position: relative;
    transition: width 0.1s linear;
}

/* Glow effect on progress fill */
.cro-stats-carousel .card-progress-fill::after {
    content: '';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 12px;
    height: 12px;
    /* F10 2026-05-08: dropped --color-primary-normal-bg (Tailwind blue)
       alias; bound directly to --ds-cta. Outer glow's hard-coded
       rgba(59,130,246,.5) Tailwind blue swapped for --ds-cta @ 50% so
       the glow re-skins with the dot. */
    background: var(--ds-cta);
    border-radius: 50%;
    box-shadow:
        0 0 8px var(--ds-cta),
        0 0 16px color-mix(in srgb, var(--ds-cta) 50%, transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

/* Show glow dot when active */
.cro-stats-carousel .stat-card-v2.active .card-progress-fill::after {
    opacity: 1;
    animation: pulse-glow 1.5s ease-in-out infinite;
}

@keyframes pulse-glow {
    /* F10 2026-05-08: dropped --color-primary-normal-bg alias and the
       Tailwind blue rgba(59,130,246,…) glow halos; both bound to --ds-cta. */
    0%, 100% {
        box-shadow:
            0 0 8px var(--ds-cta),
            0 0 16px color-mix(in srgb, var(--ds-cta) 50%, transparent);
        transform: translateY(-50%) scale(1);
    }
    50% {
        box-shadow:
            0 0 12px var(--ds-cta),
            0 0 24px color-mix(in srgb, var(--ds-cta) 70%, transparent);
        transform: translateY(-50%) scale(1.2);
    }
}

/* Active card gets animated progress */
/* Animation controlled by JS for timing sync */
.cro-stats-carousel .stat-card-v2.active .card-progress-fill {
    /* animation controlled by JS */
}

@keyframes card-progress {
    /* Smooth progress that reaches 100% at end */
    0% { width: 0%; }
    100% { width: 100%; }
}

@keyframes shimmer-bg {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}
    100% { background-position: -200% 0; }
    0% { width: 0%; }
    100% { width: 100%; }
}


/* Color accent bar at top - HIDDEN (user preference) */
.cro-stats-carousel .card-accent-bar {
    display: none !important;
}

/* Disabled - was conflicting with progress bar */
/* .cro-stats-carousel .stat-card-inner > *:not(.card-accent-bar):not(.urgency-overlay):not(.verification-badge) { */
.cro-stats-carousel .stat-card-inner-padding-disabled {
    padding-left: 1rem;
    padding-right: 1rem;
}

.cro-stats-carousel .stat-card-inner > .stat-icon-v2 {
    padding-top: 1rem;
}

.cro-stats-carousel .stat-card-inner > .stat-ticker {
    padding-bottom: 0.75rem;
    margin-top: auto;
}

/* Non-active card outline - 4px black 25% opacity outward */
.cro-stats-carousel .stat-card-v2:not(.active) {
    position: relative;
}

.cro-stats-carousel .stat-card-v2:not(.active)::before {
    content: '';
    position: absolute;
    inset: -6px;
    border: 4px solid rgba(0, 0, 0, 0.25);
    border-radius: 22px;
    pointer-events: none;
    z-index: 5;
}

/* Card hover effect - NO vertical movement */
.cro-stats-carousel .stat-card-v2:hover .stat-card-inner {
    box-shadow: var(--ds-shadow-lg);
}

.cro-stats-carousel .stat-card-v2:not(.active):hover::before {
    border-color: rgba(0, 0, 0, 0.35);
}

/* Active card - Simple border glow (progress shown in horizontal bar) */
.cro-stats-carousel .stat-card-v2.active {
    position: relative;
}

.cro-stats-carousel .stat-card-v2.active::before {
    content: '';
    position: absolute;
    inset: -4px;
    /* F10 2026-05-08: dropped --color-primary-normal-bg alias (Tailwind
       blue) — bind directly to --ds-cta so the active-card border re-skins. */
    border: 3px solid var(--ds-cta);
    border-radius: 22px;
    pointer-events: none;
    z-index: 10;
    box-shadow: var(--ds-shadow-info, 0 0 16px color-mix(in srgb, var(--ds-cta) 35%, transparent));
}

.cro-stats-carousel .stat-card-v2.active .stat-card-inner {
    box-shadow: var(--ds-shadow-lg, 0 16px 40px rgba(14, 15, 12, 0.18));
}
}

/* =================================================================== */
/* ICON + NUMBER ROW - Professional Horizontal Layout */
/* =================================================================== */
.cro-stats-carousel .stat-header-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1rem;
    margin-bottom: 0.35rem;
}

.cro-stats-carousel .stat-icon-v2 {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

/* Icon container styles - supports icon-preset, icon-svg, icon-custom from icons.html.twig macro */
.cro-stats-carousel .stat-icon-v2 .icon-preset,
.cro-stats-carousel .stat-icon-v2 .icon-svg,
.cro-stats-carousel .stat-icon-v2 .icon-custom,
.cro-stats-carousel .stat-icon-svg {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: color-mix(in srgb, var(--ds-trust, #4d5e3a) 12%, transparent); /* T9: token */
    border: 1.5px solid color-mix(in srgb, var(--ds-trust, #4d5e3a) 25%, transparent);
    transition: all 0.3s ease;
}

.cro-stats-carousel .stat-icon-v2 .icon-preset svg,
.cro-stats-carousel .stat-icon-v2 .icon-svg svg,
.cro-stats-carousel .stat-icon-v2 .icon-custom .icon-img {
    width: 24px;
    height: 24px;
    object-fit: contain;
}

.cro-stats-carousel .stat-icon-svg {
    width: 28px;
    height: 28px;
    border-radius: var(--ds-radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
    /* NO backdrop - clean icon only */
    background: transparent !important;
    border: none !important;
}

.cro-stats-carousel .stat-card-v2:hover .stat-icon-v2 .icon-preset,
.cro-stats-carousel .stat-card-v2:hover .stat-icon-v2 .icon-svg,
.cro-stats-carousel .stat-card-v2:hover .stat-icon-v2 .icon-custom,
.cro-stats-carousel .stat-card-v2:hover .stat-icon-svg {
    transform: scale(1.05);
}

.cro-stats-carousel .stat-icon-svg svg {
    width: 22px;
    height: 22px;
}

/* Default icon color uses trust token (T9 senior-UX: was hardcoded var(--ds-trust)) */
.cro-stats-carousel .stat-icon-svg svg,
.cro-stats-carousel .stat-icon-svg svg * {
    stroke: var(--ds-trust, #4d5e3a) !important;
}

.cro-stats-carousel .stat-icon-svg svg[fill]:not([fill="none"]),
.cro-stats-carousel .stat-icon-svg svg *[fill]:not([fill="none"]) {
    fill: var(--ds-trust, #4d5e3a) !important;
}

.cro-stats-carousel .stat-icon-img {
    width: 36px;
    height: 36px;
    object-fit: contain;
}

.cro-stats-carousel .icon-fallback {
    font-size: 1.75rem;
}

/* =================================================================== */
/* STAT NUMBER STYLES - HERO NUMBER EMPHASIS */
/* =================================================================== */
.cro-stats-carousel .stat-number-v2 {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 0.15rem;
    padding: 0.6rem 1rem;
    border-radius: 14px;
    /* T9 senior-UX: token-based backdrop; was hardcoded var(--ds-trust) */
    background: linear-gradient(145deg, color-mix(in srgb, var(--ds-trust, #4d5e3a) 18%, transparent) 0%, color-mix(in srgb, var(--ds-trust, #4d5e3a) 6%, transparent) 100%);
    border: 2px solid color-mix(in srgb, var(--ds-trust, #4d5e3a) 30%, transparent);
    box-shadow: var(--ds-shadow-md), inset 0 2px 0 rgba(255, 255, 255, 0.25);
}

.cro-stats-carousel .stat-prefix {
    font-size: var(--ds-fs-h3);
    font-weight: 700;
    /* F10 2026-05-08: was hardcoded rgba(77,94,58,.85) (moss @ 85%) which
       is the literal default --ds-trust value — bypassed Hermes overrides.
       Now uses color-mix on the live --ds-trust token at 85%. */
    color: color-mix(in srgb, var(--ds-trust) 85%, transparent) !important;
    line-height: 1;
}

/* THE MAIN NUMBER - Maximum Emphasis */
.cro-stats-carousel .stat-count {
    font-family: var(--ds-font-display); /* T9 senior-UX: explicit Anton */
    font-size: 3.25rem; /* 52px - already ≥48px Anton */
    font-weight: 900;
    font-feature-settings: "tnum";
    font-variant-numeric: tabular-nums;
    /* F10 2026-05-08: simplified self-fallback (var(--ds-trust, var(--ds-trust)))
       to bare token; functionally identical, keeps re-skinable. */
    color: var(--ds-trust) !important;
    line-height: 1;
    letter-spacing: -0.03em;
    /* F10 2026-05-08: was hardcoded rgba(77,94,58,.25) (moss @ 25%) — the
       literal default --ds-trust value, so it bypassed Hermes overrides.
       color-mix on the live --ds-trust token re-skins with the rest. */
    text-shadow: 0 2px 8px color-mix(in srgb, var(--ds-trust) 25%, transparent); /* trust color glow */
}

.cro-stats-carousel .stat-suffix {
    font-size: 1.35rem;
    font-weight: 700;
    /* F10 2026-05-08: ditto — was rgba(77,94,58,.85), now token-driven. */
    color: color-mix(in srgb, var(--ds-trust) 85%, transparent) !important;
    line-height: 1;
}

.cro-stats-carousel .stat-label-v2 {
    text-align: center;
    font-weight: 700;
    font-size: var(--ds-fs-body-sm); /* T9 senior-UX: 0.8rem -> 1rem (16px) sentence-case label */
    line-height: 1.4;
    color: var(--ds-ink); /* T9: darker for AAA contrast on white card */
    margin-bottom: 0.75rem;
    text-transform: none;
}

/* =================================================================== */
/* MODERN ACCENT COLORS for Icons (NOT BLUE) */
/* =================================================================== */
/* Card 1 - CTA ember (T9 senior-UX: was hardcoded var(--ds-warn) gold; mapped to --ds-cta) */
.cro-stats-carousel .stat-card-v2:nth-child(1) .stat-icon-v2 .icon-preset,
.cro-stats-carousel .stat-card-v2:nth-child(1) .stat-icon-v2 .icon-svg,
.cro-stats-carousel .stat-card-v2:nth-child(1) .stat-icon-v2 .icon-custom,
.cro-stats-carousel .stat-card-v2:nth-child(1) .stat-icon-svg {
    background: color-mix(in srgb, var(--ds-cta, #e36218) 15%, transparent) !important;
    border-color: color-mix(in srgb, var(--ds-cta, #e36218) 30%, transparent) !important;
}
.cro-stats-carousel .stat-card-v2:nth-child(1) .stat-icon-v2 svg,
.cro-stats-carousel .stat-card-v2:nth-child(1) .stat-icon-v2 svg *,
.cro-stats-carousel .stat-card-v2:nth-child(1) .stat-icon-svg svg,
.cro-stats-carousel .stat-card-v2:nth-child(1) .stat-icon-svg svg * {
    stroke: var(--ds-cta, #e36218) !important;
}
.cro-stats-carousel .stat-card-v2:nth-child(1) .stat-icon-v2 svg[fill]:not([fill="none"]),
.cro-stats-carousel .stat-card-v2:nth-child(1) .stat-icon-v2 svg *[fill]:not([fill="none"]),
.cro-stats-carousel .stat-card-v2:nth-child(1) .stat-icon-svg svg[fill]:not([fill="none"]),
.cro-stats-carousel .stat-card-v2:nth-child(1) .stat-icon-svg svg *[fill]:not([fill="none"]) {
    fill: var(--ds-cta, #e36218) !important;
}

/* Card 2 - Purple */
.cro-stats-carousel .stat-card-v2:nth-child(2) .stat-icon-v2 .icon-preset,
.cro-stats-carousel .stat-card-v2:nth-child(2) .stat-icon-v2 .icon-svg,
.cro-stats-carousel .stat-card-v2:nth-child(2) .stat-icon-v2 .icon-custom,
.cro-stats-carousel .stat-card-v2:nth-child(2) .stat-icon-svg {
    background: rgba(168, 85, 247, 0.15) !important;
    border-color: rgba(168, 85, 247, 0.3) !important;
}
.cro-stats-carousel .stat-card-v2:nth-child(2) .stat-icon-v2 svg,
.cro-stats-carousel .stat-card-v2:nth-child(2) .stat-icon-v2 svg *,
.cro-stats-carousel .stat-card-v2:nth-child(2) .stat-icon-svg svg,
.cro-stats-carousel .stat-card-v2:nth-child(2) .stat-icon-svg svg * {
    stroke: #A855F7 !important;
}
.cro-stats-carousel .stat-card-v2:nth-child(2) .stat-icon-v2 svg[fill]:not([fill="none"]),
.cro-stats-carousel .stat-card-v2:nth-child(2) .stat-icon-v2 svg *[fill]:not([fill="none"]),
.cro-stats-carousel .stat-card-v2:nth-child(2) .stat-icon-svg svg[fill]:not([fill="none"]),
.cro-stats-carousel .stat-card-v2:nth-child(2) .stat-icon-svg svg *[fill]:not([fill="none"]) {
    fill: #A855F7 !important;
}

/* Card 3 - Pink/Coral */
.cro-stats-carousel .stat-card-v2:nth-child(3) .stat-icon-v2 .icon-preset,
.cro-stats-carousel .stat-card-v2:nth-child(3) .stat-icon-v2 .icon-svg,
.cro-stats-carousel .stat-card-v2:nth-child(3) .stat-icon-v2 .icon-custom,
.cro-stats-carousel .stat-card-v2:nth-child(3) .stat-icon-svg {
    background: rgba(236, 72, 153, 0.15) !important;
    border-color: rgba(236, 72, 153, 0.3) !important;
}
.cro-stats-carousel .stat-card-v2:nth-child(3) .stat-icon-v2 svg,
.cro-stats-carousel .stat-card-v2:nth-child(3) .stat-icon-v2 svg *,
.cro-stats-carousel .stat-card-v2:nth-child(3) .stat-icon-svg svg,
.cro-stats-carousel .stat-card-v2:nth-child(3) .stat-icon-svg svg * {
    stroke: #EC4899 !important;
}
.cro-stats-carousel .stat-card-v2:nth-child(3) .stat-icon-v2 svg[fill]:not([fill="none"]),
.cro-stats-carousel .stat-card-v2:nth-child(3) .stat-icon-v2 svg *[fill]:not([fill="none"]),
.cro-stats-carousel .stat-card-v2:nth-child(3) .stat-icon-svg svg[fill]:not([fill="none"]),
.cro-stats-carousel .stat-card-v2:nth-child(3) .stat-icon-svg svg *[fill]:not([fill="none"]) {
    fill: #EC4899 !important;
}

/* Card 4 - Orange */
.cro-stats-carousel .stat-card-v2:nth-child(4) .stat-icon-v2 .icon-preset,
.cro-stats-carousel .stat-card-v2:nth-child(4) .stat-icon-v2 .icon-svg,
.cro-stats-carousel .stat-card-v2:nth-child(4) .stat-icon-v2 .icon-custom,
.cro-stats-carousel .stat-card-v2:nth-child(4) .stat-icon-svg {
    background: rgba(251, 146, 60, 0.15) !important;
    border-color: rgba(251, 146, 60, 0.3) !important;
}
.cro-stats-carousel .stat-card-v2:nth-child(4) .stat-icon-v2 svg,
.cro-stats-carousel .stat-card-v2:nth-child(4) .stat-icon-v2 svg *,
.cro-stats-carousel .stat-card-v2:nth-child(4) .stat-icon-svg svg,
.cro-stats-carousel .stat-card-v2:nth-child(4) .stat-icon-svg svg * {
    stroke: #FB923C !important;
}
.cro-stats-carousel .stat-card-v2:nth-child(4) .stat-icon-v2 svg[fill]:not([fill="none"]),
.cro-stats-carousel .stat-card-v2:nth-child(4) .stat-icon-v2 svg *[fill]:not([fill="none"]),
.cro-stats-carousel .stat-card-v2:nth-child(4) .stat-icon-svg svg[fill]:not([fill="none"]),
.cro-stats-carousel .stat-card-v2:nth-child(4) .stat-icon-svg svg *[fill]:not([fill="none"]) {
    fill: #FB923C !important;
}

/* Card 5 - Teal (not blue, a green-ish tone) */
.cro-stats-carousel .stat-card-v2:nth-child(5) .stat-icon-v2 .icon-preset,
.cro-stats-carousel .stat-card-v2:nth-child(5) .stat-icon-v2 .icon-svg,
.cro-stats-carousel .stat-card-v2:nth-child(5) .stat-icon-v2 .icon-custom,
.cro-stats-carousel .stat-card-v2:nth-child(5) .stat-icon-svg {
    background: rgba(20, 184, 166, 0.15) !important;
    border-color: rgba(20, 184, 166, 0.3) !important;
}
.cro-stats-carousel .stat-card-v2:nth-child(5) .stat-icon-v2 svg,
.cro-stats-carousel .stat-card-v2:nth-child(5) .stat-icon-v2 svg *,
.cro-stats-carousel .stat-card-v2:nth-child(5) .stat-icon-svg svg,
.cro-stats-carousel .stat-card-v2:nth-child(5) .stat-icon-svg svg * {
    stroke: #14B8A6 !important;
}
.cro-stats-carousel .stat-card-v2:nth-child(5) .stat-icon-v2 svg[fill]:not([fill="none"]),
.cro-stats-carousel .stat-card-v2:nth-child(5) .stat-icon-v2 svg *[fill]:not([fill="none"]),
.cro-stats-carousel .stat-card-v2:nth-child(5) .stat-icon-svg svg[fill]:not([fill="none"]),
.cro-stats-carousel .stat-card-v2:nth-child(5) .stat-icon-svg svg *[fill]:not([fill="none"]) {
    fill: #14B8A6 !important;
}

/* =================================================================== */
/* COMPARISON BAR - Compact with Shimmer */
/* =================================================================== */
.cro-stats-carousel .stat-comparison {
    margin-bottom: 0.75rem;
}

.cro-stats-carousel .comparison-bar {
    height: 8px;
    height: 8px;
    background: var(--ds-rule);
    border-radius: 3px;
    position: relative;
    overflow: hidden;
    margin-bottom: 0.35rem;
}

.cro-stats-carousel .bar-fill {
    height: 100%;
    border-radius: var(--ds-radius-xs);
    transition: width 1.5s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    /* T9 senior-UX: token-based; was hardcoded var(--ds-warn)/var(--ds-trust)/var(--ds-cta) */
    background: linear-gradient(90deg,
        var(--ds-cta, #e36218) 0%,
        var(--ds-trust, #4d5e3a) 50%,
        var(--ds-trust-dk, #3a482b) 100%) !important;
    background-size: 200% 100%;
    animation: bar-shimmer 3s ease-in-out infinite;
    /* F10 2026-05-08: shadow fallback rgba(77,94,58,.25) was the literal
       moss --ds-trust value — un-reskinable. Token-mix fallback. */
    box-shadow: var(--ds-shadow-sm, 0 2px 6px color-mix(in srgb, var(--ds-trust) 25%, transparent));
}

@keyframes bar-shimmer {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

/* No shimmer effect - clean design */
.cro-stats-carousel .bar-fill::after {
    display: none;
}

.cro-stats-carousel .bar-comparison {
    background: var(--ds-cta, #e36218) !important; /* T9: was hardcoded var(--ds-warn) */
    opacity: 0.7;
}

.cro-stats-carousel .bar-comparison {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    border-radius: 3px;
}

.cro-stats-carousel .comparison-text {
    font-size: var(--ds-fs-eyebrow); /* T9 senior-UX: 0.65rem (10.4px) -> 14px AAA floor */
    color: var(--ds-ink-soft); /* T9: ds-ink-soft equivalent for AAA contrast on white */
    display: block;
    text-align: center;
    font-weight: 600;
    line-height: 1.4;
}

/* =================================================================== */
/* MICRO CTA BUTTONS - T9 senior-UX: 48px+ tap target, ≥16px text */
/* =================================================================== */
.cro-stats-carousel .stat-micro-cta {
    color: white;
    border: none;
    padding: 0.75rem 1rem; /* T9: bumped */
    border-radius: 10px;
    font-weight: 700;
    font-size: var(--ds-fs-body-sm); /* T9: 0.7rem (11.2px) -> 1rem (16px) */
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-height: var(--ds-touch-target, 48px); /* T9: 36 -> 48 */
    position: relative;
    overflow: hidden;
    margin: auto 0.75rem 0.75rem;
    transform: none; /* T9: removed scale 0.95 — kept full hit area */
    transform-origin: center center;
}

.cro-stats-carousel .stat-micro-cta:hover {
    filter: brightness(1.1);
    box-shadow: var(--ds-shadow-lg);
}

.cro-stats-carousel .stat-micro-cta:active {
    transform: scale(0.97); /* T9: gentler active feedback */
}

/* T9 senior-UX: focus ring */
.cro-stats-carousel .stat-micro-cta:focus-visible {
    outline: none;
    box-shadow: var(--ds-focus-ring-dark);
}

/* No shimmer - clean design */
.cro-stats-carousel .stat-micro-cta::before {
    display: none;
}

/* CTA buttons use ds-cta token (T9 senior-UX: was hardcoded var(--ds-trust)) */
.cro-stats-carousel .stat-micro-cta {
    background: var(--ds-cta, #e36218) !important;
    text-decoration: none;
}

.cro-stats-carousel a.stat-micro-cta {
    text-decoration: none;
    color: white;
}

.cro-stats-carousel .stat-micro-cta:hover {
    background: var(--ds-cta-dk, #bb4d0d) !important;
}

.cro-stats-carousel .cta-arrow-svg {
    transition: transform 0.3s ease;
    width: 14px;
    height: 14px;
}

.cro-stats-carousel .stat-micro-cta:hover .cta-arrow-svg {
    transform: translateX(3px);
}

/* =================================================================== */
/* STAT TICKER - Compact */
/* =================================================================== */
.cro-stats-carousel .stat-ticker {
    overflow: hidden;
    background: var(--ds-paper-2);
    border-radius: var(--ds-radius-sm);
    padding: 0.35rem 0;
    margin: 0 0.25rem;
    transform: scale(0.92);
    transform-origin: center center;
}

.cro-stats-carousel .ticker-scroll {
    display: flex;
    animation: ticker-slide 12s linear infinite;
    white-space: nowrap;
}

@keyframes ticker-slide {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.cro-stats-carousel .ticker-scroll span {
    display: inline-block;
    padding: 0 1rem;
    font-size: var(--ds-fs-eyebrow); /* T9 senior-UX: 0.6rem (9.6px) -> 14px AAA floor */
    color: var(--ds-ink-soft); /* T9: ds-ink-soft for AAA contrast */
    font-weight: 600;
}

/* =================================================================== */
/* VERIFICATION BADGE - Theme Green */
/* =================================================================== */
.cro-stats-carousel .verification-badge {
    position: absolute;
    top: 0.6rem;
    right: 0.6rem;
    background: var(--ds-trust, #4d5e3a); /* T9: was primary blue, swapped to trust moss */
    color: white;
    padding: 0.35rem 0.6rem;
    border-radius: 50px;
    font-size: 0.75rem; /* T9: 0.55rem (~9px) -> 12px (still small but readable on overlay) */
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.3rem;
    /* F10 2026-05-08: shadow fallback rgba(77,94,58,.4) was the literal
       moss --ds-trust value — un-reskinable. Token-mix fallback. */
    box-shadow: var(--ds-shadow-sm, 0 2px 8px color-mix(in srgb, var(--ds-trust) 40%, transparent));
}

/* =================================================================== */
/* URGENCY OVERLAY - Fixed Readability */
/* =================================================================== */
.cro-stats-carousel .urgency-overlay {
    position: absolute;
    top: 0.6rem;
    right: 0.6rem;
    background: var(--ds-cream);
    color: #7c2d12; /* T9: darker brown for AAA contrast on amber */
    padding: 0.35rem 0.7rem;
    border-radius: 50px;
    font-size: 0.75rem; /* T9: 0.55rem -> 12px */
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.3rem;
    box-shadow: var(--ds-shadow-warn, 0 4px 12px rgba(217,118,6,0.3));
    animation: urgency-pulse 1.5s ease-in-out infinite;
    border: 1px solid var(--ds-warn);
}

.cro-stats-carousel .urgency-icon {
    width: 12px;
    height: 12px;
    animation: fire-flicker 0.3s ease-in-out infinite alternate;
}

.cro-stats-carousel .urgency-icon svg,
.cro-stats-carousel .urgency-overlay svg {
    fill: var(--ds-warn);
}

@keyframes fire-flicker {
    0% { transform: scale(1) rotate(-3deg); }
    100% { transform: scale(1.1) rotate(3deg); }
}

@keyframes urgency-pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.04); }
}

/* =================================================================== */
/* CTA CARD STYLES - Modern Professional Design */
/* =================================================================== */
.cro-stats-carousel .cta-card .stat-card-inner {
    /* Uses admin-configurable --cta-bg-color or fallback to success green */
    background: linear-gradient(135deg, var(--cta-bg-color, var(--success, var(--ds-trust))) 0%, color-mix(in srgb, var(--cta-bg-color, var(--success, var(--ds-trust))) 85%, black) 100%);
    border: none;
    text-align: center;
    padding: 1.5rem 1rem !important;
    justify-content: center;
    align-items: center;
    position: relative;
    overflow: hidden;
}

/* Subtle pattern overlay */
.cro-stats-carousel .cta-card .stat-card-inner::before {
    content: '';
    position: absolute;
    inset: 0;
    background: 
        radial-gradient(circle at 20% 80%, rgba(255,255,255,0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255,255,255,0.08) 0%, transparent 40%);
    pointer-events: none;
}

.cro-stats-carousel .cta-card .stat-card-inner > * {
    padding-left: 0 !important;
    padding-right: 0 !important;
    position: relative;
    z-index: 1;
}

.cro-stats-carousel .cta-card-icon {
    margin-bottom: 0.75rem;
}

.cro-stats-carousel .cta-card-icon .icon-preset,
.cro-stats-carousel .cta-card-icon .icon-svg,
.cro-stats-carousel .cta-card-icon .icon-custom,
.cro-stats-carousel .cta-card-icon .stat-icon-svg {
    background: rgba(255, 255, 255, 0.2) !important;
    border: 2px solid rgba(255, 255, 255, 0.3) !important;
    width: 48px;
    height: 48px;
    backdrop-filter: blur(4px);
}

.cro-stats-carousel .cta-card-icon .icon-preset svg,
.cro-stats-carousel .cta-card-icon .icon-svg svg,
.cro-stats-carousel .cta-card-icon .stat-icon-svg svg,
.cro-stats-carousel .cta-card-icon svg,
.cro-stats-carousel .cta-card-icon svg * {
    stroke: white !important;
    width: 24px;
    height: 24px;
}

.cro-stats-carousel .cta-card-icon .icon-preset svg[fill]:not([fill="none"]),
.cro-stats-carousel .cta-card-icon .icon-svg svg[fill]:not([fill="none"]),
.cro-stats-carousel .cta-card-icon .stat-icon-svg svg[fill]:not([fill="none"]),
.cro-stats-carousel .cta-card-icon svg[fill]:not([fill="none"]),
.cro-stats-carousel .cta-card-icon svg *[fill]:not([fill="none"]) {
    fill: white !important;
}

.cro-stats-carousel .cta-card-title {
    color: white;
    font-family: var(--ds-font-body); /* T9: humanist sans for h4 */
    font-size: var(--ds-fs-body-lg); /* T9: 1rem -> 1.25rem (20px) for h4 floor */
    font-weight: 700;
    text-transform: none;
    letter-spacing: 0;
    margin-bottom: 0.75rem;
    line-height: 1.3;
    text-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

.cro-stats-carousel .cta-card-button {
    background: white;
    color: var(--ds-cta-dk, #bb4d0d); /* T9: token-based, not hardcoded green */
    padding: 0 1.25rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: var(--ds-shadow-md);
    min-height: var(--ds-touch-target-primary, 56px); /* T9: 36 -> 56 primary CTA */
    font-size: var(--ds-fs-body-sm); /* T9: 0.7rem -> 1rem for legibility */
    white-space: nowrap;
    max-width: 100%;
    margin: 0 auto;
    border: 2px solid transparent;
}

.cro-stats-carousel .cta-card-button:focus-visible {
    outline: none;
    box-shadow: var(--ds-focus-ring);
}

.cro-stats-carousel .cta-card-button:hover {
    box-shadow: var(--ds-shadow-lg);
    background: var(--ds-paper-2);
}

.cro-stats-carousel .cta-card-button .cta-arrow-svg {
    width: 16px;
    height: 16px;
    stroke: var(--ds-cta-dk, #bb4d0d); /* T9: token swap */
    transition: transform 0.3s ease;
}

.cro-stats-carousel .cta-card-button:hover .cta-arrow-svg {
    transform: translateX(3px);
}

.cro-stats-carousel .cta-card-button:hover {
    box-shadow: var(--ds-shadow-lg);
}

.cro-stats-carousel .cta-card-button:active {
    transform: scale(0.92);
}

.cro-stats-carousel .cta-card-button .cta-arrow-svg {
    /* F10 2026-05-08: dropped --color-primary-normal-bg (Tailwind blue
       alias) — bind to --ds-cta-dk for parity with the surrounding
       button text/stroke (line ~937 already uses --ds-cta-dk). */
    stroke: var(--ds-cta-dk, #bb4d0d);
    width: 14px;
    height: 14px;
}

.cro-stats-carousel .cta-card-trust {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: var(--ds-touch-spacing, 8px);
    font-size: var(--ds-fs-eyebrow); /* T9 senior-UX: 0.55rem (~9px) -> 14px AAA floor */
    color: rgba(255, 255, 255, 0.98);
    font-weight: 600;
    margin-top: 0.75rem;
    line-height: 1.4;
}

.cro-stats-carousel .cta-card-trust .trust-item {
    display: flex;
    align-items: center;
    gap: 0.2rem;
    background: rgba(255, 255, 255, 0.15);
    padding: 0.2rem 0.4rem;
    border-radius: var(--ds-radius);
    backdrop-filter: blur(4px);
}

.cro-stats-carousel .cta-card-trust svg {
    stroke: var(--ds-trust);
    stroke-width: 3;
    width: 10px;
    height: 10px;
}

/* =================================================================== */
/* CAROUSEL PROGRESS DOTS - T9 senior-UX: 48px hit area, visible dot */
/* T9 BUG-FIX: hide on desktop+ (cards render as a grid; dots have no purpose ≥768) */
/* =================================================================== */
.cro-stats-carousel .carousel-progress {
    display: flex;
    justify-content: center;
    gap: var(--ds-touch-spacing, 8px);
    margin-top: 1rem;
    transition: opacity 0.3s;
    opacity: 1;
}

@media (min-width: 768px) {
    .cro-stats-carousel .carousel-progress {
        display: none;
    }
}

/* The button itself is 48x48 hit area; its visual is a centered pill via background-clip */
.cro-stats-carousel .progress-dot {
    width: 48px; /* T9: full 48px hit area */
    height: 48px;
    border-radius: 50%;
    background: transparent;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    padding: 0;
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* Visible inner pip */
.cro-stats-carousel .progress-dot::before {
    content: '';
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.45);
    transition: width 0.3s ease, background 0.3s ease, border-radius 0.3s ease;
    box-shadow: var(--ds-shadow-sm, 0 0 0 1px rgba(0,0,0,0.2));
}

.cro-stats-carousel .progress-dot:hover::before {
    background: rgba(255, 255, 255, 0.7);
    transform: scale(1.1);
}

.cro-stats-carousel .progress-dot.active::before {
    width: 28px;
    border-radius: var(--ds-radius-xs);
    background: var(--ds-cta, #e36218); /* T9: token swap from primary blue */
    box-shadow: var(--ds-focus-ring, 0 0 0 2px rgba(255,255,255,.4));
}

.cro-stats-carousel .progress-dot:focus-visible {
    outline: none;
    box-shadow: var(--ds-focus-ring-dark);
    border-radius: 50%;
}

/* No autoplay indicator animation - clean design */
.cro-stats-carousel .progress-dot::after {
    display: none;
}

/* Hide Expand Stats Button */
.cro-stats-carousel .expand-stats-container {
    display: none;
}

/* =================================================================== */
/* DESKTOP RESPONSIVE */
/* =================================================================== */
@media (min-width: 768px) {
    .cro-stats-carousel {
        padding: 2rem 0 2.5rem;
    }

    .cro-stats-carousel .section-title {
        font-size: var(--ds-fs-h3);
    }

    .cro-stats-carousel .section-subtitle {
        font-size: 0.9rem;
    }

    .cro-stats-carousel .stats-carousel-wrapper {
        padding: 0 2rem;
    }

    .cro-stats-carousel .stat-card-v2 {
        min-width: 260px;
        max-width: 260px;
    }

    .cro-stats-carousel .stat-icon-svg {
        width: 56px;
        height: 56px;
    }

    .cro-stats-carousel .stat-icon-svg svg {
        width: 30px;
        height: 30px;
    }

    .cro-stats-carousel .stat-count {
        font-size: 2.75rem;
    }
    
    .cro-stats-carousel .stat-prefix,
    .cro-stats-carousel .stat-suffix {
        font-size: var(--ds-fs-body-lg);
    }

    .cro-stats-carousel .stat-label-v2 {
        font-size: 0.85rem;
    }

    .cro-stats-carousel .comparison-text {
        font-size: 0.7rem;
    }
}

/* =================================================================== */
/* MOBILE OPTIMIZATIONS */
/* =================================================================== */
@media (max-width: 480px) {
    .cro-stats-carousel {
        padding: 1.25rem 0 1.5rem;
    }

    .cro-stats-carousel .stat-card-v2 {
        min-width: 220px;
        max-width: 220px;
        transform: scale(0.92);
    }

    .cro-stats-carousel .stat-icon-svg {
        width: 44px;
        height: 44px;
    }

    .cro-stats-carousel .stat-icon-svg svg {
        width: 24px;
        height: 24px;
    }

    .cro-stats-carousel .stat-count {
        font-size: 2.25rem;
    }
    
    .cro-stats-carousel .stat-prefix,
    .cro-stats-carousel .stat-suffix {
        font-size: var(--ds-fs-body-sm);
    }

    .bg-shape-3 {
        display: none;
    }

    .cro-stats-carousel .cta-card-button {
        padding: 0.5rem 1rem;
        font-size: 0.75rem;
    }
}

/* Prevent initial animation flash */
.cro-stats-carousel .stats-carousel.not-animated .bar-fill {
    transition: none;
}

.cro-stats-carousel .stats-carousel.not-animated .stat-count {
    transition: none;
}

/* =================================================================== */
/* REDUCED MOTION — T9 senior-UX: comprehensive pause for vestibular sensitivity */
/* =================================================================== */
@media (prefers-reduced-motion: reduce) {
    .cro-stats-carousel *,
    .cro-stats-carousel *::before,
    .cro-stats-carousel *::after {
        animation: none !important;
        transition-duration: 0.01ms !important;
    }
    .cro-stats-carousel .ticker-scroll {
        transform: none !important;
    }
    .cro-stats-carousel .stats-carousel {
        scroll-behavior: auto !important;
    }
}

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

/* Card content balanced spacing */
.cro-stats-carousel .stat-card-inner > .stat-header-row {
    padding: 1.25rem 1.25rem 0.5rem !important;
}

.cro-stats-carousel .stat-card-inner > .stat-label-v2 {
    padding: 0 1.25rem !important;
}

.cro-stats-carousel .stat-card-inner > .stat-comparison {
    padding: 0 1.25rem !important;
}

.cro-stats-carousel .stat-card-inner > .stat-micro-cta {
    margin: auto 1rem 1rem !important;
    padding: 0.75rem 1rem !important;
    border-radius: var(--ds-radius) !important;
    /* T9 BUG-FIX: 0.75rem (12px) overrode 1rem floor — restored to 1rem for AAA + senior readability */
    font-size: var(--ds-fs-body-sm) !important;
    min-height: var(--ds-touch-target, 48px) !important;
}

.cro-stats-carousel .stat-card-inner > .stat-ticker {
    margin: 0 0.75rem 0.75rem !important;
}

/* Ensure progress fill starts at 0% */
.cro-stats-carousel .stat-card-v2:not(.active) .card-progress-fill {
    width: 0% !important;
    animation: none !important;
}

.cro-stats-carousel .stat-card-v2:not(.active) .card-progress-fill::after {
    opacity: 0 !important;
}

/* Add spacing between icon and number */
.cro-stats-carousel .stat-icon-v2 {
    padding-bottom: 10px !important;
}

.cro-stats-carousel .stat-header-row {
    gap: 0.75rem !important;
}

/* ─────────────────────────────────────────────────────────────────
   WAVE45-H4 (2026-05-08, REG-6 fix): cro-stats-carousel got worse 11→13.
   Root cause: cro-block-6.css line 277-278 paints `.stat-micro-cta` with
   `background: var(--ds-ink) !important; color: var(--scheme-fg, #fff) !important;`
   That fails the doctrine cascade rule — under .scheme-paper (the default for
   the carousel page), --scheme-fg resolves to --ds-ink (black), yielding
   black-on-black 1.0:1. The fallback #fff never fires because --scheme-fg IS
   set in scheme-paper.
   cro-block-6.css is owned by H3 (out of scope), so we override with higher
   specificity from this file (which loads before cro-block-6.css but we beat
   it via specificity by chaining the carousel scope twice — same selector
   would tie, so we use !important + literal hex per doctrine). We also pin
   white/cta-orange (3.48 large-text AA-compliant; the buttons are 16px+700w
   which clears AA Large 3.0 floor). ───────────────────────────────────── */
/* Compound selector (.block-cro-block-6.cro-stats-carousel = same element)
   yields specificity (0,2,0) — same as the cro-block-6.css authority — but
   adding the element-tag (a) bumps to (0,2,1), and chaining the wrapper
   bumps to (0,3,0)/(0,3,1). Combined with !important + literal hex, this
   beats every cro-block-6.css authority rule. */
.cro-stats-carousel .stat-micro-cta,
a.cro-stats-carousel .stat-micro-cta,
.cro-stats-carousel a.stat-micro-cta,
.block-cro-block-6.cro-stats-carousel .stat-micro-cta,
.block-cro-block-6.cro-stats-carousel a.stat-micro-cta,
.block-cro-block-6 .cro-stats-carousel .stat-micro-cta,
.block-cro-block-6 .cro-stats-carousel a.stat-micro-cta {
    /* Literal hex per doctrine cascade rule — never trust the rebound token. */
    background: #e36218 !important;
    color: #ffffff !important;
}
.cro-stats-carousel .stat-micro-cta:hover,
.cro-stats-carousel a.stat-micro-cta:hover,
.block-cro-block-6.cro-stats-carousel .stat-micro-cta:hover,
.block-cro-block-6.cro-stats-carousel a.stat-micro-cta:hover,
.block-cro-block-6 .cro-stats-carousel .stat-micro-cta:hover,
.block-cro-block-6 .cro-stats-carousel a.stat-micro-cta:hover {
    background: #bb4d0d !important;
    color: #ffffff !important;
}
/* Force descendant span color white too — the audit reports both `a.stat-micro-cta`
   and the inner span match the same 1.0 ratio when the parent collapses. */
.cro-stats-carousel .stat-micro-cta span,
.cro-stats-carousel a.stat-micro-cta span,
.block-cro-block-6.cro-stats-carousel .stat-micro-cta span,
.block-cro-block-6.cro-stats-carousel a.stat-micro-cta span,
.block-cro-block-6 .cro-stats-carousel .stat-micro-cta span,
.block-cro-block-6 .cro-stats-carousel a.stat-micro-cta span {
    color: #ffffff !important;
}
