/* Home page styles (index.php). Loaded after centfx.css. */

/* ───────── Hero: candlestick backdrop and headline ───────── */
/* Hero background: sky, stars (dark mode), glows and candlesticks */
.hero-candles {
    background: linear-gradient(180deg, #dceffa 0%, #e7f4fb 55%, #fff 100%);
} /* light theme: soft sky blue, ending in the page white */
[data-bs-theme="dark"] .hero-candles {
    background: linear-gradient(180deg, #05070a 0%, #0a1519 55%, #000 100%);
} /* night sky, ending in the page black */
/* social proof: a frosted pill keeps it readable on the light sky */
[data-bs-theme="light"] .hero-candles .hero-proof {
    width: fit-content;
    margin-top: 2.5rem;
    padding: 0.45rem 1.1rem 0.45rem 0.45rem !important;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid rgba(255, 255, 255, 0.85);
    box-shadow: 0 10px 28px -14px rgba(15, 23, 42, 0.3);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
}
[data-bs-theme="light"] .hero-candles .hero-proof {
    margin-top: 1rem;
}
[data-bs-theme="light"] .hero-candles .hero-proof {
    margin-inline: auto;
}
/* social-proof avatars: grayscale and a bit smaller */
.hero-proof img {
    filter: grayscale(1) contrast(1.05);
    width: 43px;
    height: 43px;
}
.hero-proof > .d-flex > div {
    width: 47px !important;
    height: 47px !important;
}
/* centred hero: keep the intro paragraph to a readable measure */
.hero-lead {
    max-width: 640px;
    margin-inline: auto;
}

/* wire ribbon behind the hero text; on phones only across the top */
.hero-ribbons {
    display: block;
    position: absolute;
    z-index: 0;
    inset: 0 0 auto;
    height: 460px;
    pointer-events: none;
    -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 18%, #000 62%, transparent 100%);
    mask-image: linear-gradient(180deg, transparent 0%, #000 18%, #000 62%, transparent 100%);
}
.hero-ribbons canvas {
    display: block;
    width: 100%;
    height: 100%;
}
@media (min-width: 768px) {
    .hero-ribbons {
        inset: 0;
        height: auto;
        -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 12%, #000 80%, transparent 100%);
        mask-image: linear-gradient(180deg, transparent 0%, #000 12%, #000 80%, transparent 100%);
    }
}
/* stars fade out towards the bottom too, so they never stop along a straight line */
.hero-candles .cfx-sky-canvas {
    -webkit-mask-image: linear-gradient(180deg, #000 65%, transparent 100%);
    mask-image: linear-gradient(180deg, #000 65%, transparent 100%);
}

/* corner glows + centre fade for readable text; fades out at the bottom */
.hero-candles::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    -webkit-mask-image: linear-gradient(180deg, #000 60%, transparent 100%);
    mask-image: linear-gradient(180deg, #000 60%, transparent 100%);
    background: radial-gradient(circle at 4% 96%, rgba(45, 212, 191, 0.2) 0, rgba(45, 212, 191, 0) 22%),
        radial-gradient(ellipse 30% 35% at 88% 92%, rgba(11, 155, 204, 0.14), rgba(11, 155, 204, 0) 70%),
        radial-gradient(
            ellipse 42% 48% at 50% 50%,
            rgba(224, 241, 250, 0.8) 0%,
            rgba(224, 241, 250, 0.45) 55%,
            rgba(224, 241, 250, 0) 100%
        );
}
[data-bs-theme="dark"] .hero-candles::before {
    background: radial-gradient(circle at 4% 96%, rgba(45, 212, 191, 0.3) 0, rgba(45, 212, 191, 0) 22%),
        radial-gradient(ellipse 30% 35% at 88% 92%, rgba(11, 155, 204, 0.28), rgba(11, 155, 204, 0) 70%),
        radial-gradient(
            ellipse 42% 48% at 50% 50%,
            rgba(8, 9, 11, 0.85) 0%,
            rgba(8, 9, 11, 0.5) 55%,
            rgba(8, 9, 11, 0) 100%
        );
}

.hero-candles .hero-row {
    min-height: 560px;
}
/* key figures strip at the bottom of the hero */
.hero-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    margin-top: 1.5rem;
    padding-top: 1.75rem;
    border-top: 1px solid rgba(15, 23, 42, 0.08);
}
.hero-stat {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.9rem;
    padding: 0.25rem 1rem;
}
.hero-stat + .hero-stat {
    border-left: 1px solid rgba(15, 23, 42, 0.08);
}
.hero-stat i {
    flex-shrink: 0;
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    font-size: 1.35rem;
    color: #0b9bcc;
    background: rgba(255, 255, 255, 0.7);
    border: 1px solid rgba(15, 23, 42, 0.06);
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.05);
}
.hero-stat strong {
    display: block;
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 600;
    line-height: 1.1;
    letter-spacing: -0.01em;
    color: #0b1f4b;
}
.hero-stat span {
    display: block;
    font-size: 0.85rem;
    color: #64748b;
}
[data-bs-theme="dark"] .hero-stats,
[data-bs-theme="dark"] .hero-stat + .hero-stat {
    border-color: rgba(255, 255, 255, 0.08);
}
[data-bs-theme="dark"] .hero-stat i {
    color: #5fddff;
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.1);
    box-shadow: none;
}
[data-bs-theme="dark"] .hero-stat strong {
    color: #fff;
}
[data-bs-theme="dark"] .hero-stat span {
    color: #94a3b8;
}
@media (max-width: 991.98px) {
    .hero-stats {
        grid-template-columns: repeat(2, 1fr);
        row-gap: 1.25rem;
    }
    .hero-stat {
        justify-content: flex-start;
    }
    .hero-stat:nth-child(3) {
        border-left: 0;
    }
}
@media (max-width: 575.98px) {
    .hero-stat {
        gap: 0.65rem;
        padding: 0.25rem 0.5rem;
    }
    .hero-stat i {
        width: 38px;
        height: 38px;
        font-size: 1.15rem;
    }
    .hero-stat strong {
        font-size: 1.2rem;
    }
    .hero-stat span {
        font-size: 0.78rem;
    }
}
/* phones & tablets: hero buttons on one row */
@media (max-width: 991.98px) {
    .hero-ctas {
        flex-wrap: nowrap !important;
        column-gap: 0.6rem !important;
    }
    .hero-ctas .cfx-hbtn {
        flex: 1 1 0;
        min-width: 0;
        padding: 0.8rem 0.75rem;
        font-size: 0.92rem;
    }
    .hero-ctas .cfx-hbtn i {
        font-size: 1.05rem;
    }
    .hero-proof > .d-flex > div {
        width: 38px !important;
        height: 38px !important;
    }
    .hero-proof img {
        width: 34px;
        height: 34px;
    }
    [data-bs-theme="light"] .hero-candles .hero-proof {
        padding: 0.4rem 1rem 0.4rem 0.4rem !important;
    }
    .hero-proof .text-dark {
        font-size: 0.88rem;
        white-space: nowrap;
    }
}
@media (max-width: 767.98px) {
    .hero-ctas {
        max-width: 440px;
        margin-inline: auto;
    }
}
/* headline sized to its column so "Trade Smart." always fits on one line (3 even lines) */
@media (min-width: 768px) and (max-width: 991.98px) {
    .hero-candles h1 {
        font-size: 3.15rem;
    }
}
@media (min-width: 1200px) and (max-width: 1399.98px) {
    .hero-candles h1 {
        font-size: 4.25rem;
    }
}
@media (max-width: 767.98px) {
    /* lighter centre fade on phones so the ribbon still shows */
    .hero-candles::before {
        background: rgba(224, 241, 250, 0.3);
    }
    [data-bs-theme="dark"] .hero-candles::before {
        background: rgba(8, 9, 11, 0.35);
    }
    .hero-candles .hero-row {
        min-height: 0;
    }
}

/* ───────── How it works: step cards ───────── */
.hiw-card {
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 2.5rem 2.5rem 2rem;
    border-radius: 1.5rem;
    background: #f5f6f9;
    border: 1px solid rgba(15, 23, 42, 0.05);
    transition:
        transform 0.3s,
        box-shadow 0.3s;
}
.hiw-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 24px 48px rgba(15, 23, 42, 0.08);
}
.hiw-step {
    font-weight: 600;
    color: #94a3b8;
    margin-bottom: 0.75rem;
}
.hiw-step span {
    margin-right: 0.75rem;
}
.hiw-card h3 {
    font-size: 2.1rem;
    line-height: 1.15;
    color: #0b1f4b;
    margin-bottom: 0.75rem;
}
.hiw-card > p {
    color: #64748b;
    margin-bottom: 0;
}
.hiw-visual {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 2.5rem 0;
    min-height: 300px;
}
.hiw-note {
    border-top: 1px solid rgba(15, 23, 42, 0.1);
    padding-top: 1.5rem;
    text-align: center;
    font-size: 0.875rem;
    color: #475569;
}
.hiw-note strong {
    display: block;
    margin-top: 0.65rem;
    color: #0f172a;
}

/* 01 — rule checklist */
.hiw-rule {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.85rem 1.25rem;
    margin-bottom: 0.75rem;
    border-radius: 999px;
    background: #fff;
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.06);
    color: #334155;
    font-size: 0.925rem;
}
.hiw-rule i {
    color: #2dd4bf;
    font-size: 1.5rem;
}

/* 03 — scaling bars */
.hiw-towers-img {
    filter: none !important;
    max-height: 300px;
    width: auto !important;
    object-fit: contain;
    -webkit-mask-image: linear-gradient(180deg, #000 70%, transparent 100%);
    mask-image: linear-gradient(180deg, #000 70%, transparent 100%);
}
.hiw-bars-img {
    display: block;
    width: 100%;
    max-width: 340px;
    height: auto;
    margin: 0 auto;
    filter: drop-shadow(0 18px 30px rgba(11, 155, 204, 0.25));
}

[data-bs-theme="dark"] .hiw-card {
    background: #141619;
    border-color: rgba(255, 255, 255, 0.08);
}
[data-bs-theme="dark"] .hiw-card h3,
[data-bs-theme="dark"] .hiw-note strong {
    color: #fff;
}
[data-bs-theme="dark"] .hiw-card > p,
[data-bs-theme="dark"] .hiw-note {
    color: #b9c4d2;
}
[data-bs-theme="dark"] .hiw-note {
    border-color: rgba(255, 255, 255, 0.1);
}
[data-bs-theme="dark"] .hiw-rule {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.1);
    color: #e2e8f0;
    box-shadow: none;
}

@media (max-width: 575.98px) {
    .hiw-card {
        padding: 2rem 1.5rem 1.5rem;
    }
    .hiw-card h3 {
        font-size: 1.75rem;
    }
    .hiw-visual {
        min-height: 0;
    }
}

/* ───────── Real capital card (.pom-*): copy + mock payouts dashboard ───────── */
.pom-card {
    position: relative;
    overflow: hidden;
    border-radius: 1.5rem;
    border: 1px solid rgba(15, 23, 42, 0.08);
    background: #f8fafc;
    padding: 3rem;
    min-height: 460px;
}
.pom-card::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: repeating-radial-gradient(
            circle at 58% 78%,
            rgba(45, 212, 191, 0.14) 0,
            rgba(45, 212, 191, 0) 38px,
            rgba(45, 212, 191, 0.14) 76px
        ),
        radial-gradient(
            circle at 58% 78%,
            rgba(45, 212, 191, 0.55) 0,
            rgba(45, 212, 191, 0.25) 22%,
            rgba(45, 212, 191, 0) 48%
        ),
        radial-gradient(circle at 80% 0%, rgba(var(--si-primary-rgb), 0.3) 0, rgba(var(--si-primary-rgb), 0) 45%),
        radial-gradient(circle at 95% 100%, rgba(217, 70, 239, 0.18) 0, rgba(217, 70, 239, 0) 35%);
}
.pom-copy {
    position: relative;
    z-index: 2;
    max-width: 380px;
}
@media (min-width: 992px) {
    .pom-card {
        display: flex;
        align-items: center;
        min-height: 660px;
    }
} /* room for the payouts window and the card hanging off its corner */
.pom-copy h2 {
    font-size: 2.5rem;
    line-height: 1.15;
    color: #0b1f4b;
}
.pom-copy p {
    color: #475569;
}
.pom-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: 999px;
    background: rgba(226, 232, 240, 0.85);
    color: #0b1f4b;
    font-weight: 600;
    font-size: 0.95rem;
}
.pom-chip i {
    color: #94a3b8;
    font-size: 1.15rem;
}

/* payouts window runs off the right edge; "Total paid out" card overlaps its bottom-left */
.pom-visual {
    position: absolute;
    z-index: 1;
    top: 3rem;
    right: -1px;
    width: 56%;
}
.pom-window {
    background: #fff;
    border-radius: 1rem 0 0 1rem;
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.15);
    overflow: hidden;
    margin-left: 12%;
}
.pom-window-bar {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.85rem 1rem;
    background: #f1f5f9;
}
.pom-window-bar span {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}
.pom-url {
    flex: 1;
    margin-left: 1rem;
    background: #fff;
    border-radius: 0.5rem;
    padding: 0.3rem;
    text-align: center;
    font-size: 0.75rem;
    color: #94a3b8;
}
.pom-window-body {
    padding: 1.5rem 1.75rem 1.25rem;
}

.pom-cycle {
    background: #f1f5f9;
    border-radius: 0.75rem;
    padding: 1rem 1.15rem;
    margin-bottom: 1rem;
}
.pom-cycle-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
}
.pom-cycle-acct {
    font-size: 0.75rem;
    font-weight: 600;
    color: #64748b;
    letter-spacing: 0.02em;
}
.pom-cycle-next {
    font-size: 1rem;
    font-weight: 600;
    color: #0b1f4b;
    margin-top: 0.15rem;
}
.pom-cycle-next b {
    font-weight: 800;
}
.pom-pill {
    flex-shrink: 0;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.25rem 0.6rem;
    border-radius: 999px;
    color: #0f766e;
    background: rgba(45, 212, 191, 0.18);
}
.pom-bar {
    height: 6px;
    border-radius: 999px;
    background: #e2e8f0;
    margin: 0.85rem 0 0.45rem;
    overflow: hidden;
}
.pom-bar span {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #2dd4bf, #15ceff);
}
.pom-cycle-meta {
    display: flex;
    justify-content: space-between;
    font-size: 0.75rem;
    color: #64748b;
}

.pom-table {
    width: 100%;
    font-size: 0.75rem;
    color: #0f172a;
    font-variant-numeric: tabular-nums;
}
.pom-table th {
    color: #64748b;
    font-weight: 600;
    padding: 0.55rem 0.5rem;
    border-bottom: 1px solid #e2e8f0;
    white-space: nowrap;
}
.pom-table td {
    padding: 0.6rem 0.5rem;
    border-bottom: 1px solid #f1f5f9;
    white-space: nowrap;
}
.pom-table th:first-child,
.pom-table td:first-child {
    padding-left: 0;
}
.pom-table th:last-child,
.pom-table td:last-child {
    padding-right: 0;
}
.pom-paid {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.15rem 0.5rem;
    border-radius: 999px;
    color: #0f766e;
    background: rgba(45, 212, 191, 0.16);
}
.pom-foot {
    display: flex;
    justify-content: flex-end;
    padding-top: 1rem;
    min-height: 6rem;
}
.pom-request-btn {
    align-self: flex-start;
    font-size: 0.75rem;
    font-weight: 600;
    color: #fff;
    padding: 0.5rem 1rem;
    border-radius: 0.6rem;
    background: linear-gradient(180deg, #2a3035 0%, #111315 100%);
}

.pom-rewards {
    position: absolute;
    left: 0;
    bottom: -3rem;
    width: 46%;
    min-width: 250px;
    padding: 1.25rem 1.5rem;
    border-radius: 1rem;
    color: #fff;
    overflow: hidden;
    background: linear-gradient(135deg, #1e293b 0%, #101114 100%);
    box-shadow: 0 30px 60px rgba(2, 6, 23, 0.35);
}
.pom-rewards .label {
    font-size: 0.85rem;
    font-weight: 600;
    color: #cbd5e1;
}
.pom-rewards .amount {
    font-size: 2.5rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.1;
    margin: 0.35rem 0 1.5rem;
    font-variant-numeric: tabular-nums;
}
.pom-rewards .count {
    font-size: 0.85rem;
    font-weight: 600;
    color: #cbd5e1;
}

[data-bs-theme="dark"] .pom-window {
    background: #1a1d21;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5);
}
[data-bs-theme="dark"] .pom-window-bar {
    background: #23272c;
}
[data-bs-theme="dark"] .pom-url {
    background: #1a1d21;
    color: #7c8794;
}
[data-bs-theme="dark"] .pom-cycle {
    background: #23272c;
}
[data-bs-theme="dark"] .pom-cycle-next,
[data-bs-theme="dark"] .pom-table {
    color: #e2e8f0;
}
[data-bs-theme="dark"] .pom-cycle-acct,
[data-bs-theme="dark"] .pom-cycle-meta,
[data-bs-theme="dark"] .pom-table th {
    color: #94a3b8;
}
[data-bs-theme="dark"] .pom-bar {
    background: #313740;
}
[data-bs-theme="dark"] .pom-table th {
    border-color: #2c3138;
}
[data-bs-theme="dark"] .pom-table td {
    border-color: #23272c;
}
[data-bs-theme="dark"] .pom-pill,
[data-bs-theme="dark"] .pom-paid {
    color: #5eead4;
    background: rgba(45, 212, 191, 0.14);
}
[data-bs-theme="dark"] .pom-request-btn {
    color: #12181c;
    background: linear-gradient(180deg, #ffffff 0%, #c3ccd2 100%);
}

[data-bs-theme="dark"] .pom-card {
    background: #141619;
    border-color: rgba(255, 255, 255, 0.08);
}
[data-bs-theme="dark"] .pom-copy h2 {
    color: #fff;
}
[data-bs-theme="dark"] .pom-copy p {
    color: #b9c4d2;
}
[data-bs-theme="dark"] .pom-chip {
    background: rgba(255, 255, 255, 0.08);
    color: #e2e8f0;
}

@media (max-width: 991.98px) {
    .pom-card {
        padding: 2rem 1.5rem;
    }
    .pom-copy {
        max-width: none;
    }
    .pom-copy h2 {
        font-size: 2rem;
    }
    .pom-visual {
        position: relative;
        top: auto;
        right: auto;
        width: auto;
        margin: 2.5rem -1.5rem 0 0;
    }
    .pom-window {
        margin-left: 0;
    }
    .pom-window-body {
        padding: 1.25rem 1.25rem 2.25rem;
    }
    .pom-foot {
        display: none;
    }
    .pom-rewards {
        position: relative;
        bottom: auto;
        width: auto;
        min-width: 0;
        margin: -1.25rem 1.5rem 0 0;
    }
    .pom-rewards .amount {
        font-size: 2.25rem;
        margin-bottom: 1.75rem;
    }
}
@media (max-width: 575.98px) {
    .pom-table th:nth-child(2),
    .pom-table td:nth-child(2) {
        display: none;
    }
}

/* ───────── Testimonials carousel ───────── */
/* Testimonial cards (test) — clean single-layer card in the teal theme */
.tm-wrap {
    position: relative;
}
.tm-wrap .swiper {
    padding: 1rem 0.25rem 3.5rem;
}
.tm-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 1.75rem 1.75rem 1.5rem;
    border-radius: 1.5rem;
    background: #f5f6f9;
    border: 1px solid rgba(15, 23, 42, 0.05);
    box-shadow:
        0 1px 2px rgba(15, 23, 42, 0.04),
        0 12px 32px -12px rgba(15, 23, 42, 0.1);
    transition:
        transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1),
        box-shadow 0.35s,
        border-color 0.35s;
}
.tm-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 24px 48px -16px rgba(11, 155, 204, 0.28);
}
.tm-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.25rem;
}
.tm-qicon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 14px;
    color: #fff;
    font-size: 1.35rem;
    background: linear-gradient(135deg, #15ceff 0%, #0b9bcc 55%, #1b4f63 100%);
    box-shadow: 0 8px 18px rgba(11, 155, 204, 0.3);
}
.tm-rating {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.tm-stars {
    display: flex;
    gap: 2px;
}
.tm-stars i {
    font-size: 1rem;
    color: #f5b301;
}
.tm-stars i.off {
    color: #cbd5e1;
}
.tm-score {
    font-size: 0.8rem;
    font-weight: 700;
    color: #0b1020;
}
.tm-quote {
    flex: 1;
    margin: 0 0 1.5rem;
    font-size: 1rem;
    line-height: 1.65;
    color: #334155;
}
.tm-person {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    padding-top: 1.25rem;
    border-top: 1px dashed rgba(15, 23, 42, 0.12);
}
.tm-person img {
    border-radius: 50%;
    object-fit: cover;
    box-shadow:
        0 0 0 3px #fff,
        0 0 0 4px rgba(11, 155, 204, 0.35);
}
.tm-person h6 {
    margin: 0;
    font-size: 1rem;
    font-weight: 700;
    color: #0b1020;
}
.tm-person span {
    font-size: 0.82rem;
    color: #64748b;
    font-weight: 500;
}
.tm-wrap .swiper-pagination {
    bottom: 0.5rem !important;
}

[data-bs-theme="dark"] .tm-card {
    background: #141619;
    border-color: rgba(255, 255, 255, 0.08);
    box-shadow: none;
}
[data-bs-theme="dark"] .tm-quote {
    color: #cbd5e1;
}
[data-bs-theme="dark"] .tm-score,
[data-bs-theme="dark"] .tm-person h6 {
    color: #fff;
}
[data-bs-theme="dark"] .tm-person {
    border-color: rgba(255, 255, 255, 0.12);
}
[data-bs-theme="dark"] .tm-person img {
    box-shadow:
        0 0 0 3px #16181c,
        0 0 0 4px rgba(21, 206, 255, 0.4);
}
[data-bs-theme="dark"] .tm-person span {
    color: #94a3b8;
}

/* ───────── UI polish: tabs, marquee, plan swipe, hero drift ───────── */

/* Feature marquee */
.mq-wrap {
    overflow: hidden;
    padding: 0.5rem 0;
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
    mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}
.mq-track {
    display: flex;
    width: max-content;
    animation: mq-scroll 38s linear infinite;
}
.mq-wrap:hover .mq-track {
    animation-play-state: paused;
}
.mq-row {
    display: flex;
    gap: 0.75rem;
    padding-right: 0.75rem;
}
.mq-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1.1rem;
    border-radius: 999px;
    white-space: nowrap;
    font-size: 0.9rem;
    font-weight: 500;
    color: #0b1020;
    background: #fff;
    border: 1px solid rgba(15, 23, 42, 0.08);
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.05);
    transition:
        border-color 0.25s,
        transform 0.25s;
}
.mq-chip i {
    color: #0b9bcc;
    font-size: 1.15rem;
}
.mq-chip:hover {
    border-color: rgba(11, 155, 204, 0.45);
    transform: translateY(-2px);
}
@keyframes mq-scroll {
    to {
        transform: translateX(-50%);
    }
}
[data-bs-theme="dark"] .mq-chip {
    color: #e2e8f0;
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.1);
    box-shadow: none;
}
[data-bs-theme="dark"] .mq-chip i {
    color: #5fddff;
}

@media (prefers-reduced-motion: reduce) {
    .mq-track {
        animation: none;
    }
}

/* ───────── Programme cards: rule pills show their value on the right, plus a link under the fee ───────── */
.hiw-rule b {
    font-weight: 700;
    color: #0b1f4b;
    white-space: nowrap;
}
[data-bs-theme="dark"] .hiw-rule b {
    color: #fff;
}
/* programme card button ("View Prime") under the fee */
/* prism light folds behind the three programme cards, fading out on every side */
.hp-cards {
    position: relative;
    isolation: isolate;
}
.hp-prism {
    position: absolute;
    z-index: -1;
    inset: -6rem -5rem;
    pointer-events: none;
    opacity: 0;
    transition: opacity 1.2s ease;
    -webkit-mask-image: radial-gradient(ellipse 50% 50% at 50% 50%, #000 60%, transparent 100%);
    mask-image: radial-gradient(ellipse 50% 50% at 50% 50%, #000 60%, transparent 100%);
}
.hp-prism.is-ready {
    opacity: 0.8;
}
[data-bs-theme="light"] .hp-prism.is-ready {
    opacity: 0.45;
}
/* the three cards turn to frosted glass so the prism glows softly through them */
.hp-cards .hiw-card {
    background: rgba(245, 246, 249, 0.72);
    -webkit-backdrop-filter: blur(24px) saturate(140%);
    backdrop-filter: blur(24px) saturate(140%);
}
[data-bs-theme="dark"] .hp-cards .hiw-card {
    background: rgba(20, 22, 25, 0.78);
}
.hp-prism canvas {
    display: block;
    width: 100%;
    height: 100%;
}

/* programme card footer: one line of balances, the fee, then the button; same height on every card */
.hiw-card[data-prog] .hiw-note {
    white-space: nowrap;
}
.hiw-card[data-prog] .hiw-note strong {
    margin-top: 0.35rem;
    font-size: 1.05rem;
}
.hiw-note .cfx-hbtn {
    width: 100%;
    max-width: 240px;
    margin-top: 1.25rem;
}
.hiw-card .hiw-visual {
    min-height: 0;
    padding: 2rem 0;
}

/* sample eligibility panel: pending checks in amber */
.pom-paid.pom-wait {
    color: #b45309;
    background: rgba(245, 158, 11, 0.14);
}
[data-bs-theme="dark"] .pom-paid.pom-wait {
    color: #fbbf24;
}

/* phones: the hero buttons have longer labels now, so they stack full width instead of squeezing onto one row */
@media (max-width: 575.98px) {
    .hero-ctas {
        flex-wrap: wrap !important;
    }
    .hero-ctas .cfx-hbtn {
        flex: 1 1 100%;
        justify-content: center;
        margin-bottom: 0.75rem !important;
    }
}

/* eligibility sample table: its 2nd column is the status, keep it on phones too */
@media (max-width: 575.98px) {
    .pom-table.pom-checks th:nth-child(2),
    .pom-table.pom-checks td:nth-child(2) {
        display: table-cell;
    }
}

/* Rewards chain: copy on top, then two mirrored wheels of sample records turning past a highlighted record in the centre */
/* no card: the section sits straight on the page background */
.hrw {
    --hrc-accent: #0b9bcc;
    --hrc-gap: 80px;  /* row spacing on the wheels (read by home.js) */
    --hrc-bend: 24px; /* how far rows curve outwards */
    position: relative;
    text-align: center;
}
[data-bs-theme="dark"] .hrw {
    --hrc-accent: #15ceff;
}
/* soft green-blue (aqua) wash behind the whole rewards chain, edge to edge, fading out at the top and bottom */
.hrw {
    isolation: isolate;
}
.hrw::before {
    content: "";
    position: absolute;
    z-index: -1;
    top: -3rem;
    bottom: -3rem;
    left: calc(50% - 50vw);
    right: calc(50% - 50vw);
    pointer-events: none;
    /* soft aqua clouds with no edges: every layer fades to nothing, and the mask softens top and bottom */
    background:
        radial-gradient(ellipse 38% 45% at 50% 55%, rgba(45, 212, 191, 0.08), rgba(45, 212, 191, 0) 72%),
        radial-gradient(ellipse 55% 70% at 72% 50%, rgba(190, 240, 238, 0.4), rgba(190, 240, 238, 0) 72%),
        radial-gradient(ellipse 55% 70% at 28% 50%, rgba(214, 245, 244, 0.4), rgba(214, 245, 244, 0) 72%);
    -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 28%, #000 72%, transparent 100%);
    mask-image: linear-gradient(180deg, transparent 0%, #000 28%, #000 72%, transparent 100%);
}
[data-bs-theme="dark"] .hrw::before {
    background:
        radial-gradient(ellipse 38% 45% at 50% 55%, rgba(45, 212, 191, 0.13), rgba(45, 212, 191, 0) 72%),
        radial-gradient(ellipse 55% 70% at 72% 50%, rgba(45, 212, 191, 0.07), rgba(45, 212, 191, 0) 72%),
        radial-gradient(ellipse 55% 70% at 28% 50%, rgba(21, 206, 255, 0.05), rgba(21, 206, 255, 0) 72%);
}
.hrw-inner {
    max-width: 44rem;
    margin: 0 auto;
}
/* one line at every width */
.hrw-title {
    font-size: clamp(1.6rem, 0.9rem + 3vw, 3rem);
    line-height: 1.1;
    white-space: nowrap;
    margin-bottom: 1rem;
}
.hrw-text {
    max-width: 34rem;
    margin: 0 auto;
}
[data-bs-theme="dark"] .hrw-text {
    color: #b9c4d2;
}

/* the stage: wheel | highlighted record | wheel */
.hrc {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(300px, 380px) minmax(0, 1fr);
    align-items: center;
    gap: 1rem;
    height: 440px;
    margin-top: 1.5rem;
}
.hrc-wheel {
    /* room for the active disc's glow: the fade mask clips at the box edge */
    --hrc-bleed: 32px;
    position: relative;
    height: 100%;
    pointer-events: none;
    margin: 0;
    padding: 0;
    list-style: none;
    /* fade out towards the top and bottom of the stage */
    -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 22%, #000 78%, transparent 100%);
    mask-image: linear-gradient(180deg, transparent 0%, #000 22%, #000 78%, transparent 100%);
}
.hrc-left {
    grid-column: 1;
    margin-right: calc(var(--hrc-bleed) * -1);
}
.hrc-right {
    grid-column: 3;
    margin-left: calc(var(--hrc-bleed) * -1);
}
.hrc-wheel li {
    position: absolute;
    top: 50%;
    display: flex;
    align-items: center;
    gap: 0.9rem;
    white-space: nowrap;
    transform: translateY(-50%);
    transition:
        transform 0.7s cubic-bezier(0.22, 1, 0.36, 1),
        opacity 0.7s ease;
}
/* left wheel hugs the centre column; the right wheel is its mirror image */
/* inset from the centre column so the glow round the level disc is not cut off */
.hrc-left li {
    right: calc(1.25rem + var(--hrc-bleed));
    text-align: right;
}
.hrc-right li {
    left: calc(1.25rem + var(--hrc-bleed));
    flex-direction: row-reverse;
    text-align: left;
}
.hrc-txt b {
    display: block;
    font-family: var(--font-display);
    font-size: 1.15rem;
    font-weight: 700;
    color: #0b1020;
}
.hrc-txt small {
    display: block;
    font-size: 0.8rem;
    color: #64748b;
}
[data-bs-theme="dark"] .hrc-txt b {
    color: #f1f5f9;
}
[data-bs-theme="dark"] .hrc-txt small {
    color: #94a3b8;
}
/* round flag discs */
.hrc-disc {
    flex-shrink: 0;
    display: inline-grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    overflow: hidden;
    background: #fff;
    box-shadow:
        0 0 0 3px rgba(15, 23, 42, 0.06),
        0 6px 16px -6px rgba(15, 23, 42, 0.35);
}
[data-bs-theme="dark"] .hrc-disc {
    background: #0b0d10;
    box-shadow:
        0 0 0 3px rgba(255, 255, 255, 0.06),
        0 6px 16px -6px rgba(0, 0, 0, 0.8);
}
.hrc-disc .fi {
    width: 100%;
    height: 100%;
    background-size: cover;
    line-height: 1;
}
.hrc-wheel li.is-active .hrc-disc {
    box-shadow:
        0 0 0 3px var(--hrc-accent),
        0 0 22px -2px var(--hrc-accent);
}

/* the highlighted record in the middle */
.hrc-center {
    grid-column: 2;
    grid-row: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.hrc-focus {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    transition:
        opacity 0.35s ease,
        transform 0.35s ease;
}
.hrc-focus.is-swapping {
    opacity: 0;
    transform: translateY(6px) scale(0.98);
}
.hrc-disc-lg {
    width: 72px;
    height: 72px;
    margin-bottom: 0.35rem;
    box-shadow:
        0 0 0 4px var(--hrc-accent),
        0 0 36px -4px var(--hrc-accent);
}
.hrc-amount {
    font-family: var(--font-display);
    font-size: clamp(2.6rem, 2rem + 1.6vw, 3.4rem);
    font-weight: 700;
    line-height: 1.05;
    letter-spacing: -0.02em;
    color: #0b1020;
}
[data-bs-theme="dark"] .hrc-amount {
    color: #fff;
}
/* always two lines tall, so a long name or country never pushes the button down */
.hrc-meta {
    display: block;
    min-height: 3em;
    font-size: 0.95rem;
    line-height: 1.5;
    text-align: center;
    color: #64748b;
}
[data-bs-theme="dark"] .hrc-meta {
    color: #94a3b8;
}
.hrc-cta {
    margin-top: 1.5rem;
}
.hrc-facts {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin: 1.25rem 0 0;
}
.hrc-facts dt {
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #64748b;
}
.hrc-facts dd {
    margin: 0;
    font-weight: 700;
    color: #0b1020;
}
[data-bs-theme="dark"] .hrc-facts dt {
    color: #8b97a8;
}
[data-bs-theme="dark"] .hrc-facts dd {
    color: #fff;
}

/* small note under the totals while the tracker shows demo data */
.hrc-note {
    margin: -0.5rem auto 0;
    text-align: center;
    font-size: 0.8rem;
    color: #64748b;
}
.hrc-note i {
    margin-right: 0.15rem;
    vertical-align: -0.12em;
    color: var(--hrc-accent);
    font-size: 0.95rem;
}
[data-bs-theme="dark"] .hrc-note {
    color: #8b97a8;
}

/* tablets and phones: the same wheels, smaller; the button and totals move under the stage */
@media (max-width: 991.98px) {
    .hrw {
        --hrc-gap: 58px;
        --hrc-bend: 3px;
    }
    .hrc {
        grid-template-columns: minmax(0, 1fr) minmax(120px, 200px) minmax(0, 1fr);
        grid-template-rows: 300px auto auto;
        gap: 0 0.5rem;
        height: auto;
    }
    .hrc-wheel {
        grid-row: 1;
    }
    .hrc-center {
        display: contents;
    }
    .hrc-focus {
        grid-column: 2;
        grid-row: 1;
        align-self: center;
    }
    .hrc-cta {
        grid-column: 1 / -1;
        grid-row: 2;
        justify-self: center;
        margin-top: 1rem;
    }
    .hrc-facts {
        grid-column: 1 / -1;
        grid-row: 3;
    }
    .hrc-left li {
        right: calc(0.4rem + var(--hrc-bleed));
    }
    .hrc-right li {
        left: calc(0.4rem + var(--hrc-bleed));
    }
    .hrc-wheel li {
        gap: 0.5rem;
    }
    .hrc-txt b {
        font-size: 0.95rem;
    }
    .hrc-txt small {
        font-size: 0.72rem;
    }
    .hrc-disc {
        width: 30px;
        height: 30px;
    }
    .hrc-disc-lg {
        width: 52px;
        height: 52px;
    }
    .hrc-amount {
        font-size: 1.9rem;
    }
    .hrc-meta {
        font-size: 0.78rem;
        line-height: 1.35;
    }
}
@media (max-width: 991.98px) {
    .hrc-note {
        margin-top: 1.25rem;
    }
}
@media (max-width: 575.98px) {
    .hrc {
        grid-template-columns: minmax(0, 1fr) 124px minmax(0, 1fr);
    }
    .hrc-amount {
        font-size: 1.7rem;
    }
    /* phones: amount and flag only on the wheels */
    .hrc-txt b {
        font-size: 0.8rem;
    }
    .hrc-txt small {
        display: none;
    }
    .hrc-facts {
        gap: 1rem;
    }
}
@media (prefers-reduced-motion: reduce) {
    .hrc-wheel li,
    .hrc-focus {
        transition: none;
    }
}
