/* ==========================================================================
   RewardHub — Premium light SaaS theme (Bootstrap 5 layer)
   Fresh, airy, colourful — Stripe / Linear / Razorpay energy.
   Palette: Indigo + Violet primary · Cyan / Emerald / Amber / Rose accents.
   Fully mobile responsive (off-canvas nav, scrollable tables, fluid grids).
   ========================================================================== */

:root {
    /* Surfaces */
    --rh-bg: #f8fafc;
    --rh-surface: #ffffff;
    --rh-surface-2: #f7f8fd;
    --rh-border: #eaecf5;
    --rh-border-strong: #dfe3f0;

    /* Text */
    --rh-text: #1f2937;
    --rh-muted: #6e7891;

    /* Brand — Setu Club (Royal Blue + Orange + Gold) */
    --rh-primary: #0a2f73;        /* Royal Blue */
    --rh-primary-600: #082456;
    --rh-primary-700: #061b42;    /* darkest blue */
    --rh-violet: #1e50a8;         /* gradient light end */
    --rh-primary-soft: #e8eef9;
    --rh-secondary: #ff7a1a;      /* Orange */
    --rh-accent: #ffc107;         /* Gold */
    --rh-success: #16a34a;
    --rh-warning: #ffc107;
    --rh-danger: #f43f5e;
    --rh-pink: #ec4899;

    /* Gradients */
    --rh-grad: linear-gradient(135deg, #061b42 0%, #0a2f73 52%, #1e50a8 100%);
    --rh-grad-accent: linear-gradient(135deg, #ffc107, #ff7a1a);

    /* Shape + depth (green-tinted shadows for a soft premium feel) */
    --rh-radius: 20px;
    --rh-radius-sm: 13px;
    --rh-shadow-xs: 0 1px 2px rgba(10, 47, 115, .06);
    --rh-shadow: 0 2px 6px rgba(10, 47, 115, .06), 0 14px 34px -14px rgba(6, 27, 66, .20);
    --rh-shadow-lg: 0 28px 60px -18px rgba(6, 27, 66, .32);

    --rh-sidebar-w: 268px;
    --rh-font: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}

[data-bs-theme="dark"] {
    --rh-bg: #0b1020;
    --rh-surface: #141a2e;
    --rh-surface-2: #0f1525;
    --rh-border: #243049;
    --rh-border-strong: #2c3a57;
    --rh-text: #e8ecf7;
    --rh-muted: #93a1c0;
    --rh-primary-soft: #0f1e3a;
    --rh-shadow: 0 2px 6px rgba(0,0,0,.3), 0 18px 40px -16px rgba(0,0,0,.6);
}

* { letter-spacing: -0.011em; }
html { -webkit-text-size-adjust: 100%; }
html, body { overflow-x: hidden; max-width: 100%; }
.rh-main, .rh-content { min-width: 0; max-width: 100%; }
/* Let flex/grid columns shrink below their content so nothing forces a wider
   page than the viewport (the classic flexbox min-width:auto overflow). */
.rh-content [class*="col-"], .rh-content .row { min-width: 0; }
.rh-content canvas { max-width: 100% !important; }
.kpi-label { overflow-wrap: anywhere; }

body {
    font-family: var(--rh-font);
    background:
        radial-gradient(900px 520px at 100% -5%, rgba(10, 47, 115, .12), transparent 60%),
        radial-gradient(820px 480px at -5% 8%, rgba(255, 122, 26, .10), transparent 55%),
        var(--rh-bg);
    background-attachment: fixed;
    color: var(--rh-text);
    -webkit-font-smoothing: antialiased;
}
a { text-decoration: none; }

/* ----- Layout shell ----------------------------------------------------- */
.rh-shell { display: flex; min-height: 100vh; }

.rh-sidebar {
    width: var(--rh-sidebar-w); flex-shrink: 0;
    background: linear-gradient(180deg, #ffffff, #fbfbff);
    border-right: 1px solid var(--rh-border);
    position: fixed; inset: 0 auto 0 0; height: 100vh;
    display: flex; flex-direction: column; z-index: 1045;
    transition: transform .28s cubic-bezier(.4, 0, .2, 1);
}
.rh-sidebar .rh-brand {
    display: flex; align-items: center; gap: .7rem;
    padding: 1.3rem 1.4rem; color: var(--rh-text); font-weight: 750; font-size: 1.12rem;
}
.rh-brand-badge {
    width: 38px; height: 38px; border-radius: 12px;
    background: #fff;
    display: grid; place-items: center; color: var(--rh-primary); font-size: 1.15rem;
    border: 1px solid var(--rh-border);
    box-shadow: 0 4px 10px -4px rgba(10, 47, 115, .25); flex-shrink: 0;
    overflow: hidden;
}
.rh-nav { padding: .35rem .8rem 1rem; overflow-y: auto; flex: 1; }
.rh-nav .nav-label {
    font-size: .67rem; text-transform: uppercase; letter-spacing: .13em;
    color: var(--rh-muted); padding: 1.05rem .85rem .45rem; font-weight: 700; opacity: .85;
}
.rh-nav a {
    display: flex; align-items: center; gap: .8rem;
    padding: .68rem .85rem; border-radius: 12px; color: #4a546b;
    font-weight: 600; font-size: .91rem; margin-bottom: 3px;
    transition: background .15s, color .15s, transform .15s;
}
.rh-nav a i { font-size: 1.16rem; width: 22px; text-align: center; color: #98a2bd; transition: color .15s; }
.rh-nav a:hover { background: var(--rh-primary-soft); color: var(--rh-primary-700); }
.rh-nav a:hover i { color: var(--rh-primary); }
.rh-nav a.active {
    background: var(--rh-grad); color: #fff;
    box-shadow: 0 12px 22px -8px rgba(10, 47, 115, .7);
}
.rh-nav a.active i { color: #fff; }
.rh-sidebar-foot { padding: .85rem 1rem 1.1rem; border-top: 1px solid var(--rh-border); }
.rh-sidebar-foot .btn { color: #4a546b; border-radius: 12px; font-weight: 600; }
.rh-sidebar-foot .btn:hover { background: #fff0f3; color: var(--rh-danger); }

.rh-main { flex: 1; margin-left: var(--rh-sidebar-w); min-width: 0; display: flex; flex-direction: column; }
.rh-topbar {
    min-height: 68px; background: rgba(255, 255, 255, .82); backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--rh-border);
    display: flex; align-items: center; gap: .75rem; padding: .6rem 1.4rem;
    position: sticky; top: 0; z-index: 1035;
}
.rh-content { padding: 1.7rem; flex: 1; }

/* Mobile backdrop for the off-canvas sidebar */
.rh-backdrop {
    position: fixed; inset: 0; background: rgba(17, 24, 39, .45);
    backdrop-filter: blur(2px); z-index: 1044; opacity: 0; visibility: hidden;
    transition: opacity .25s; border: 0;
}
.rh-backdrop.show { opacity: 1; visibility: visible; }

@media (max-width: 991.98px) {
    .rh-sidebar { transform: translateX(-100%); box-shadow: var(--rh-shadow-lg); }
    .rh-sidebar.open { transform: translateX(0); }
    .rh-main { margin-left: 0; }
    .rh-content { padding: 1.05rem; }
    .rh-topbar { padding: .55rem .9rem; }
}

/* ----- Cards ------------------------------------------------------------ */
.rh-card {
    background: var(--rh-surface); border: 1px solid var(--rh-border);
    border-radius: var(--rh-radius); box-shadow: var(--rh-shadow); overflow: hidden;
}
.rh-card .rh-card-head {
    padding: 1.05rem 1.3rem; border-bottom: 1px solid var(--rh-border);
    display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
}
.rh-card .rh-card-head h2,
.rh-card .rh-card-head h3 { font-size: 1.02rem; font-weight: 700; margin: 0; }
.rh-card .rh-card-body { padding: 1.3rem; }
/* Contain wide content (tables, charts) so it never expands the page width */
.rh-card .rh-card-body { overflow-x: auto; }
@media (max-width: 575.98px) {
    .rh-card .rh-card-head, .rh-card .rh-card-body { padding: 1rem; }
    /* Trim oversized buttons/inputs so they fit comfortably on phones. */
    .btn-lg { padding: .6rem 1rem; font-size: .95rem; border-radius: 13px; white-space: nowrap; }
    .btn { padding: .5rem .9rem; }
    .input-xl { font-size: 1.3rem; padding: .55rem; letter-spacing: .2em; }
    .form-control-lg { font-size: 1rem; padding: .6rem .85rem; }
}

/* ----- KPI -------------------------------------------------------------- */
.rh-kpi {
    background: var(--rh-surface); border: 1px solid var(--rh-border);
    border-radius: var(--rh-radius); padding: 1.3rem; box-shadow: var(--rh-shadow);
    height: 100%; position: relative; overflow: hidden;
    transition: transform .18s ease, box-shadow .18s ease;
}
.rh-kpi::after {
    content: ''; position: absolute; inset: 0 0 auto 0; height: 4px; opacity: .9;
    background: var(--rh-grad);
}
.rh-kpi:hover { transform: translateY(-4px); box-shadow: var(--rh-shadow-lg); }
.rh-kpi .kpi-icon {
    width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center;
    font-size: 1.35rem; margin-bottom: .85rem;
}
.rh-kpi .kpi-label { color: var(--rh-muted); font-size: .8rem; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; }
.rh-kpi .kpi-value { font-size: 1.85rem; font-weight: 800; line-height: 1.05; margin-top: .25rem; }
@media (max-width: 575.98px) {
    .rh-kpi { padding: 1.05rem; }
    .rh-kpi .kpi-value { font-size: 1.45rem; }
    .rh-kpi .kpi-icon { width: 40px; height: 40px; font-size: 1.15rem; margin-bottom: .6rem; }
}

.kpi-soft-primary   { background: var(--rh-primary-soft); color: var(--rh-primary); }
.kpi-soft-secondary { background: #ffedd5; color: #ea580c; }  /* orange */
.kpi-soft-accent    { background: #fef9c3; color: #ca8a04; }  /* gold */
.kpi-soft-gold      { background: #fef9c3; color: #ca8a04; }
.kpi-soft-success   { background: #dcfce7; color: #16a34a; }  /* green */
.kpi-soft-warning   { background: #ffedd5; color: #ea580c; }  /* orange */
.kpi-soft-danger    { background: #ffe4e9; color: #e11d48; }

/* Orange (secondary) + Gold (accent) utilities — for CTAs, highlights & rewards */
.rh-pill-gold   { background: #fef9c3; color: #a16207; }
.rh-pill-orange { background: #ffedd5; color: #c2410c; }
.text-gold   { color: #ca8a04 !important; }
.text-orange { color: #ea580c !important; }
.btn-accent  { background: var(--rh-grad-accent); color: #fff; border: none; font-weight: 650; }
.btn-accent:hover { filter: brightness(1.04); color: #fff; }
.rh-ribbon-featured { background: linear-gradient(135deg, #ff9a3d, #ff7a1a); color: #fff; }
[data-bs-theme="dark"] .kpi-soft-success { background: #0f1e3a; }
[data-bs-theme="dark"] .kpi-soft-warning { background: #2c2410; }
[data-bs-theme="dark"] .kpi-soft-accent  { background: #0c2430; }
[data-bs-theme="dark"] .kpi-soft-danger  { background: #2c1721; }

/* ----- Buttons / pills -------------------------------------------------- */
.btn { border-radius: 12px; font-weight: 650; padding: .58rem 1.1rem; transition: transform .12s, box-shadow .15s, background .15s; }
.btn:active { transform: translateY(1px); }
.btn-lg { padding: .85rem 1.5rem; border-radius: 15px; font-size: 1rem; }
.btn-sm { border-radius: 10px; }
.btn-primary {
    background: var(--rh-grad); border: none;
    box-shadow: 0 10px 22px -10px rgba(10, 47, 115, .8);
}
.btn-primary:hover, .btn-primary:focus {
    background: linear-gradient(135deg, #082456, #0a2f73, #1e50a8);
    box-shadow: 0 14px 28px -10px rgba(10, 47, 115, .9);
}
.btn-soft { background: var(--rh-primary-soft); color: var(--rh-primary-700); border: none; }
.btn-soft:hover { background: var(--rh-primary); color: #fff; }
.btn-outline-secondary { border-color: var(--rh-border-strong); color: var(--rh-muted); }
.btn-check:checked + .btn, .btn.active { background: var(--rh-primary-soft); color: var(--rh-primary-700); }

.rh-pill { display: inline-flex; align-items: center; gap: .35rem; font-size: .75rem; font-weight: 700;
    padding: .3rem .68rem; border-radius: 999px; line-height: 1; white-space: nowrap; }
.rh-pill-success { background: #e3faf0; color: #0a2f73; }
.rh-pill-danger  { background: #ffe4e9; color: #be123c; }
.rh-pill-muted   { background: #eef1f8; color: #5b6781; }
.rh-pill-warning { background: #fef2de; color: #b45309; }

/* ----- Tables (with responsive horizontal scroll wrapper) --------------- */
.rh-table-wrap { width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.rh-table-wrap::-webkit-scrollbar { height: 7px; }
.rh-table { width: 100%; border-collapse: separate; border-spacing: 0; }
.rh-table th {
    text-align: left; font-size: .7rem; text-transform: uppercase; letter-spacing: .06em;
    color: var(--rh-muted); font-weight: 700; padding: .75rem 1rem;
    border-bottom: 1px solid var(--rh-border); white-space: nowrap; background: var(--rh-surface-2);
}
.rh-table td { padding: .9rem 1rem; border-bottom: 1px solid var(--rh-border); font-size: .9rem; vertical-align: middle; }
.rh-table tbody tr:last-child td { border-bottom: none; }
.rh-table tbody tr { transition: background .12s; }
.rh-table tbody tr:hover { background: var(--rh-primary-soft); }

.rh-avatar {
    width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center;
    background: var(--rh-grad); color: #fff; font-weight: 750; font-size: .92rem; flex-shrink: 0;
    box-shadow: 0 6px 14px -6px rgba(10, 47, 115, .7);
}

/* ----- Forms ------------------------------------------------------------ */
.form-control, .form-select {
    border-radius: 12px; border-color: var(--rh-border-strong); padding: .65rem .9rem;
    background: var(--rh-surface); color: var(--rh-text); font-weight: 500;
}
.form-control::placeholder { color: #aab2c6; }
.form-control:focus, .form-select:focus {
    border-color: var(--rh-primary); box-shadow: 0 0 0 4px rgba(10, 47, 115, .15);
}
.form-control-lg, .form-select-lg { border-radius: 14px; padding: .8rem 1rem; }
.form-label { font-weight: 650; font-size: .85rem; margin-bottom: .4rem; color: #3a445f; }
.input-group-text { border-radius: 12px; border-color: var(--rh-border-strong); color: var(--rh-muted); }
.input-xl { font-size: 1.5rem; font-weight: 800; text-align: center; letter-spacing: .28em; padding: .7rem; }
.form-check-input:checked { background-color: var(--rh-primary); border-color: var(--rh-primary); }
.form-check-input:focus { border-color: var(--rh-primary); box-shadow: 0 0 0 4px rgba(10, 47, 115,.15); }
/* Switch is widened to 2.6em, so widen the reserved gutter to match (Bootstrap
   defaults to 2.5em) — otherwise the wider track runs into the label text. */
.form-switch { padding-left: 3.4em; }
.form-switch .form-check-input { width: 2.6em; height: 1.4em; margin-left: -3.4em; }

/* ----- Auth ------------------------------------------------------------- */
.rh-auth { min-height: 100vh; display: grid; grid-template-columns: 1.05fr 1fr; }
.rh-auth-aside {
    background: linear-gradient(150deg, #061b42 0%, #061b42 50%, #1e50a8 100%);
    color: #fff; padding: 3rem; display: flex; flex-direction: column; justify-content: space-between;
    position: relative; overflow: hidden;
}
.rh-auth-aside::before {
    content: ''; position: absolute; width: 460px; height: 460px; border-radius: 50%;
    background: radial-gradient(circle, rgba(255,255,255,.16), transparent 70%);
    top: -160px; right: -120px;
}
.rh-auth-form { display: grid; place-items: center; padding: 2rem; }
.rh-auth-card { width: 100%; max-width: 420px; }
@media (max-width: 860px) {
    .rh-auth { grid-template-columns: 1fr; }
    .rh-auth-aside { display: none; }
    .rh-auth-form { padding: 1.5rem 1.15rem; min-height: 100vh; align-content: center; }
}

/* ----- Marketing site --------------------------------------------------- */
.rh-public-nav { backdrop-filter: blur(12px); background: rgba(255, 255, 255, .82);
    border-bottom: 1px solid var(--rh-border); position: sticky; top: 0; z-index: 1030; }
.rh-public-nav .btn-sm.text-dark:hover { background: var(--rh-primary-soft); color: var(--rh-primary-700) !important; }
.rh-hero {
    background:
        radial-gradient(1100px 560px at 82% -8%, rgba(10, 47, 115, .22), transparent 60%),
        radial-gradient(820px 480px at 4% 18%, rgba(255, 122, 26, .16), transparent 55%);
}
.rh-hero h1 { font-size: clamp(2.1rem, 5.2vw, 3.7rem); font-weight: 850; line-height: 1.04; }
.rh-gradient-text { background: var(--rh-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.rh-feature-icon { width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center;
    font-size: 1.55rem; background: var(--rh-primary-soft); color: var(--rh-primary); }
.rh-section { padding: 4.5rem 0; }
@media (max-width: 575.98px) { .rh-section { padding: 3rem 0; } }
.rh-badge-free { background: linear-gradient(135deg, #ffc107, #ff7a1a); color: #fff; border-radius: 999px;
    padding: .45rem 1.05rem; font-weight: 750; font-size: .8rem; box-shadow: 0 10px 20px -8px rgba(10, 47, 115,.7); }
/* Lift effect for any bootstrap/rh card used on marketing pages */
.rh-section .card, .rh-section .rh-card { transition: transform .2s ease, box-shadow .2s ease; }
.rh-section .card:hover, .rh-section .rh-card:hover { transform: translateY(-5px); box-shadow: var(--rh-shadow-lg); }

/* ===== Marketing site v2 — richer, animated ============================= */
.rh-hero { position: relative; overflow: hidden; }
.rh-hero::before, .rh-hero::after {
    content: ""; position: absolute; border-radius: 50%; filter: blur(60px); z-index: 0;
    pointer-events: none; opacity: .55;
}
.rh-hero::before { width: 520px; height: 520px; top: -160px; right: -120px;
    background: radial-gradient(circle, rgba(30, 80, 168, .55), transparent 70%); animation: mkt-drift 14s ease-in-out infinite; }
.rh-hero::after  { width: 460px; height: 460px; bottom: -200px; left: -140px;
    background: radial-gradient(circle, rgba(255, 122, 26, .38), transparent 70%); animation: mkt-drift 18s ease-in-out infinite reverse; }
.rh-hero > .container { position: relative; z-index: 1; }
@keyframes mkt-drift { 0%,100% { transform: translate(0,0) scale(1); } 50% { transform: translate(-30px, 24px) scale(1.08); } }

.mkt-eyebrow { text-transform: uppercase; letter-spacing: .16em; font-weight: 800;
    font-size: .74rem; color: var(--rh-secondary); display: inline-flex; align-items: center; gap: .45rem; }
.mkt-eyebrow::before { content: ""; width: 22px; height: 2px; background: var(--rh-secondary); border-radius: 2px; }
.mkt-eyebrow.center::after { content: ""; width: 22px; height: 2px; background: var(--rh-secondary); border-radius: 2px; }

.mkt-hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 2.5rem; align-items: center; }
@media (max-width: 991.98px) { .mkt-hero-grid { grid-template-columns: 1fr; text-align: center; gap: 3rem; } }
/* Keep the two hero CTAs side-by-side on small phones (shrink to fit). */
@media (max-width: 575.98px) {
    .hero-cta { padding: .6rem .5rem; font-size: .92rem; }
    .hero-cta i { font-size: .95rem; }
}

.mkt-chips { display: flex; flex-wrap: wrap; gap: .5rem; }
.mkt-chip { display: inline-flex; align-items: center; gap: .45rem; background: var(--rh-surface);
    border: 1px solid var(--rh-border); border-radius: 999px; padding: .42rem .85rem;
    font-size: .8rem; font-weight: 650; color: var(--rh-primary-700); box-shadow: 0 2px 8px -4px rgba(10,47,115,.25); }
.mkt-chip i { color: var(--rh-secondary); }

/* Phone mockup ---------------------------------------------------------- */
.mkt-stage { position: relative; display: grid; place-items: center; min-height: 560px; }
.mkt-stage::before { content: ""; position: absolute; width: 340px; height: 340px; border-radius: 50%;
    background: var(--rh-grad-accent); filter: blur(70px); opacity: .35; z-index: 0; }
.mkt-phone { position: relative; z-index: 1; width: 288px; border-radius: 42px; padding: 11px;
    background: linear-gradient(160deg, #10192e, #060b17); box-shadow: 0 40px 80px -30px rgba(6,27,66,.75), 0 0 0 2px rgba(255,255,255,.05) inset; }
.mkt-phone::before { content: ""; position: absolute; top: 16px; left: 50%; transform: translateX(-50%);
    width: 120px; height: 22px; background: #060b17; border-radius: 0 0 16px 16px; z-index: 3; }
.mkt-screen { border-radius: 32px; overflow: hidden; background: var(--rh-surface-2); height: 588px; position: relative; }
.mkt-screen-head { background: var(--rh-grad); color: #fff; padding: 2.4rem 1.15rem 1.5rem; }
.mkt-screen-body { padding: 1rem; display: flex; flex-direction: column; gap: .7rem; }
.mkt-balance { font-size: 2.15rem; font-weight: 850; line-height: 1; letter-spacing: -.02em; }
.mkt-mini-kpis { display: grid; grid-template-columns: 1fr 1fr; gap: .6rem; }
.mkt-mini-kpi { background: var(--rh-surface); border: 1px solid var(--rh-border); border-radius: 14px; padding: .7rem .8rem; }
.mkt-mini-kpi .v { font-weight: 800; font-size: 1.15rem; color: var(--rh-primary-700); }
.mkt-mini-kpi .l { font-size: .68rem; color: var(--rh-muted); font-weight: 650; text-transform: uppercase; letter-spacing: .04em; }
.mkt-bars { display: flex; align-items: flex-end; gap: .4rem; height: 62px; padding: .2rem 0; }
.mkt-bars span { flex: 1; border-radius: 6px 6px 3px 3px; background: var(--rh-grad); opacity: .85; }
.mkt-row { display: flex; align-items: center; gap: .6rem; background: var(--rh-surface);
    border: 1px solid var(--rh-border); border-radius: 14px; padding: .6rem .7rem; }
.mkt-row .dot { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center;
    background: var(--rh-primary-soft); color: var(--rh-primary); flex-shrink: 0; }
.mkt-row .dot.o { background: rgba(255,122,26,.14); color: var(--rh-secondary); }

.mkt-float { position: absolute; z-index: 2; background: var(--rh-surface); border-radius: 16px;
    box-shadow: 0 20px 40px -16px rgba(6,27,66,.45); padding: .65rem .85rem; display: flex; align-items: center; gap: .6rem;
    font-weight: 700; font-size: .85rem; border: 1px solid var(--rh-border); }
.mkt-float .ic { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; color: #fff; }
.mkt-float.f1 { top: 8%; left: -6%; animation: mkt-float 4.5s ease-in-out infinite; }
.mkt-float.f2 { bottom: 12%; right: -8%; animation: mkt-float 5.5s ease-in-out infinite .6s; }
@media (max-width: 991.98px) { .mkt-float.f1 { left: 2%; } .mkt-float.f2 { right: 2%; } }
@keyframes mkt-float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-14px); } }

/* Coloured feature icons ------------------------------------------------ */
.rh-feature-icon.ic-orange { background: rgba(255,122,26,.13); color: var(--rh-secondary); }
.rh-feature-icon.ic-gold   { background: rgba(255,193,7,.18);  color: #b7791f; }
.rh-feature-icon.ic-green  { background: rgba(22,163,74,.12);  color: #16a34a; }
.rh-feature-icon.ic-blue   { background: var(--rh-primary-soft); color: var(--rh-primary); }

/* Reveal on scroll ------------------------------------------------------ */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .6s ease, transform .6s cubic-bezier(.2,.7,.2,1); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }

/* Stat band ------------------------------------------------------------- */
.mkt-statband { background: var(--rh-grad); color: #fff; border-radius: 28px; position: relative; overflow: hidden; }
.mkt-statband::before { content: ""; position: absolute; inset: 0;
    background: radial-gradient(600px 300px at 15% 0%, rgba(255,193,7,.22), transparent 60%),
                radial-gradient(500px 260px at 100% 100%, rgba(255,122,26,.22), transparent 60%); }
.mkt-statband .container { position: relative; z-index: 1; }
.mkt-stat-num { font-size: clamp(2rem, 4vw, 2.8rem); font-weight: 850; line-height: 1; letter-spacing: -.02em; }
.mkt-stat-lbl { opacity: .85; font-weight: 600; }

/* Dual-audience split --------------------------------------------------- */
.mkt-split { border-radius: 24px; padding: 2.1rem; height: 100%; border: 1px solid var(--rh-border); position: relative; overflow: hidden; }
.mkt-split.blue { background: linear-gradient(160deg, #0a2f73, #061b42); color: #fff; }
.mkt-split.light { background: var(--rh-surface); }
.mkt-split .tag { display: inline-flex; align-items: center; gap: .4rem; font-weight: 700; font-size: .78rem;
    padding: .3rem .75rem; border-radius: 999px; margin-bottom: 1rem; }
.mkt-split.blue .tag { background: rgba(255,255,255,.14); color: #fff; }
.mkt-split.light .tag { background: rgba(255,122,26,.13); color: var(--rh-secondary); }
.mkt-check { list-style: none; padding: 0; margin: 1.1rem 0 0; display: flex; flex-direction: column; gap: .7rem; }
.mkt-check li { display: flex; gap: .6rem; align-items: flex-start; font-size: .95rem; }
.mkt-check li i { margin-top: .15rem; }
.mkt-split.blue .mkt-check i { color: var(--rh-accent); }
.mkt-split.light .mkt-check i { color: #16a34a; }

/* Testimonials ---------------------------------------------------------- */
.mkt-quote { background: var(--rh-surface); border: 1px solid var(--rh-border); border-radius: 20px; padding: 1.6rem; height: 100%; }
.mkt-quote .stars { color: var(--rh-accent); margin-bottom: .6rem; font-size: .95rem; letter-spacing: 1px; }
.mkt-quote p { font-size: .98rem; color: var(--rh-text); line-height: 1.6; }
.mkt-avatar-sm { width: 42px; height: 42px; border-radius: 12px; background: var(--rh-grad); color: #fff;
    display: grid; place-items: center; font-weight: 800; }

/* Trust strip ----------------------------------------------------------- */
.mkt-trust { display: flex; flex-wrap: wrap; gap: .6rem 1.6rem; align-items: center; justify-content: center; opacity: .9; }
.mkt-trust span { display: inline-flex; align-items: center; gap: .5rem; font-weight: 700; color: var(--rh-muted); font-size: .95rem; }
.mkt-trust i { font-size: 1.1rem; color: var(--rh-primary); }

/* Shop category cards */
.mkt-cat { background: var(--rh-surface); border: 1px solid var(--rh-border); border-radius: 18px;
    padding: 1.5rem 1rem; text-align: center; height: 100%;
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease; }
.mkt-cat:hover { transform: translateY(-5px); box-shadow: var(--rh-shadow-lg); border-color: var(--rh-primary-soft); }
.mkt-cat-label { font-weight: 750; color: var(--rh-text); font-size: .95rem; line-height: 1.25; }
@media (min-width: 992px) { .mkt-cat { padding: 1.7rem 1rem; } }

/* App download page — QR frames + store buttons */
.rh-qr { width: 210px; height: 210px; max-width: 62vw; padding: 10px; background: #fff;
    border: 1px solid var(--rh-border); border-radius: 18px; display: grid; place-items: center;
    box-shadow: 0 12px 28px -14px rgba(10,47,115,.35); }
.rh-qr img, .rh-qr canvas { width: 100% !important; height: 100% !important; display: block; border-radius: 6px; }
.rh-store-btn { display: inline-flex; align-items: center; gap: .7rem; background: #0b1020; color: #fff;
    border-radius: 12px; padding: .6rem 1.15rem; font-weight: 700; transition: transform .15s ease, background .15s ease; }
.rh-store-btn:hover { background: #000; color: #fff; transform: translateY(-2px); }
.rh-store-btn i { font-size: 1.7rem; line-height: 1; }
.rh-store-btn span { display: flex; flex-direction: column; line-height: 1.12; text-align: left; font-size: 1.05rem; }
.rh-store-btn span small { font-size: .62rem; font-weight: 600; opacity: .85; text-transform: uppercase; letter-spacing: .03em; }

/* Legal pages (privacy / terms) */
.rh-legal h2 { font-size: 1.25rem; font-weight: 750; margin: 1.9rem 0 .6rem; color: var(--rh-text); }
.rh-legal h2:first-of-type { margin-top: 1rem; }
.rh-legal h3 { font-size: 1rem; font-weight: 700; margin: 1.1rem 0 .4rem; color: var(--rh-primary-700); }
.rh-legal p, .rh-legal li { line-height: 1.75; }
.rh-legal ul { color: var(--rh-muted); padding-left: 1.25rem; margin-bottom: 1rem; }
.rh-legal li { margin-bottom: .5rem; }
.rh-legal strong { color: var(--rh-text); }
.rh-legal a { color: var(--rh-primary); font-weight: 600; }

/* Step connector -------------------------------------------------------- */
.mkt-step-num { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center;
    font-weight: 800; background: var(--rh-grad-accent); color: #fff; box-shadow: 0 10px 20px -8px rgba(255,122,26,.6); }

/* CTA glow -------------------------------------------------------------- */
.mkt-cta { background: var(--rh-grad); color: #fff; border-radius: 28px; position: relative; overflow: hidden; }
.mkt-cta::before { content: ""; position: absolute; width: 380px; height: 380px; border-radius: 50%;
    top: -140px; right: -80px; background: var(--rh-grad-accent); filter: blur(70px); opacity: .45; }
.mkt-cta .container { position: relative; z-index: 1; }

/* ----- Misc ------------------------------------------------------------- */
.text-muted-2 { color: var(--rh-muted) !important; }
.min-w-0 { min-width: 0 !important; }   /* lets flex children with text-truncate shrink */
.rh-divider { height: 1px; background: var(--rh-border); margin: 1rem 0; }
.rh-empty { text-align: center; padding: 2.6rem 1rem; color: var(--rh-muted); }
.rh-empty i { font-size: 2.5rem; opacity: .35; display: block; margin-bottom: .4rem; }
.cursor-pointer { cursor: pointer; }
.alert { border-radius: 14px; }
.modal-content { border-radius: 20px; border: none; box-shadow: var(--rh-shadow-lg); }
.accordion-button { border-radius: 12px !important; font-weight: 650; }
.accordion-button:not(.collapsed) { background: var(--rh-primary-soft); color: var(--rh-primary-700); }
.accordion-button:focus { box-shadow: 0 0 0 4px rgba(10, 47, 115,.15); }
/* ----- Pagination ------------------------------------------------------- */
nav[role="navigation"] + .mt-2, .pagination { margin: 0; }
.pagination { justify-content: center; flex-wrap: wrap; gap: 6px; }
.pagination .page-item .page-link {
    border-radius: 12px; border: 1px solid var(--rh-border); color: var(--rh-text);
    min-width: 40px; height: 40px; padding: 0 .65rem; font-weight: 650; background: var(--rh-surface);
    display: flex; align-items: center; justify-content: center; transition: all .15s; box-shadow: var(--rh-shadow-xs);
}
.pagination .page-item .page-link:hover {
    background: var(--rh-primary-soft); color: var(--rh-primary-700); border-color: transparent; transform: translateY(-1px);
}
.pagination .page-item.active .page-link {
    background: var(--rh-grad); border-color: transparent; color: #fff;
    box-shadow: 0 8px 18px -8px rgba(10, 47, 115, .8);
}
.pagination .page-item.disabled .page-link { opacity: .4; box-shadow: none; }
/* The "Showing x to y of z" summary Laravel renders on desktop */
.flex.items-center.justify-between p.text-sm.text-gray-700,
.pagination-summary { color: var(--rh-muted); font-size: .82rem; }

/* ==========================================================================
   Membership tiers — colour scheme per rank (used by the card + dashboard)
   Member → Preferred → Premium → Prestige → Signature → Royal
   ========================================================================== */
[data-tier="member"]    { --t-from:#6b7a90; --t-mid:#51607a; --t-to:#374151; --t-accent:#d4dbe6; --t-glow:rgba(148,163,184,.5);  --t-ink:#ffffff; --t-cap:#475569; }
[data-tier="preferred"] { --t-from:#22b8e6; --t-mid:#0d8fcf; --t-to:#0b5e91; --t-accent:#9fe0fb; --t-glow:rgba(56,189,248,.6);  --t-ink:#ffffff; --t-cap:#0369a1; }
[data-tier="premium"]   { --t-from:#a78bfa; --t-mid:#7c4ff0; --t-to:#4f46e5; --t-accent:#d6c8ff; --t-glow:rgba(139,92,246,.62); --t-ink:#ffffff; --t-cap:#5b21b6; }
[data-tier="prestige"]  { --t-from:#f472b6; --t-mid:#d6248f; --t-to:#7c3aed; --t-accent:#fbcfe8; --t-glow:rgba(236,72,153,.58); --t-ink:#ffffff; --t-cap:#be185d; }
[data-tier="signature"] { --t-from:#5a6b85; --t-mid:#293548; --t-to:#0c1322; --t-accent:#e7edf7; --t-glow:rgba(148,163,184,.5);  --t-ink:#ffffff; --t-cap:#334155; }
[data-tier="royal"]     { --t-from:#54451a; --t-mid:#211a0c; --t-to:#0a0a0d; --t-accent:#f5c453; --t-glow:rgba(245,196,83,.6);  --t-ink:#fdf6df; --t-cap:#a16207; }

/* ----- Animated rank card (customer dashboard) -------------------------- */
.rankcard {
    position: relative; overflow: hidden; border-radius: 22px; color: var(--t-ink);
    background: linear-gradient(135deg, var(--t-from) 0%, var(--t-mid) 55%, var(--t-to) 100%);
    box-shadow: 0 26px 54px -22px var(--t-glow), 0 4px 14px rgba(0,0,0,.16); padding: 1.5rem 1.6rem;
}
.rankcard .rk-sheen { position: absolute; inset: 0; pointer-events: none; z-index: 1;
    background: linear-gradient(115deg, transparent 34%, rgba(255,255,255,.22) 47%, transparent 60%);
    transform: translateX(-130%); animation: rk-sheen 3.6s ease-in-out infinite; }
@keyframes rk-sheen { 0% { transform: translateX(-130%); } 55%, 100% { transform: translateX(130%); } }
.rankcard .rk-blob { position: absolute; border-radius: 50%; filter: blur(2px); z-index: 0; pointer-events: none;
    width: 240px; height: 240px; top: -120px; right: -60px;
    background: radial-gradient(circle, var(--t-glow), transparent 70%); }
.rankcard > * { position: relative; z-index: 2; }

.rk-crest { width: 66px; height: 66px; border-radius: 19px; display: grid; place-items: center;
    font-size: 2rem; background: rgba(255,255,255,.16); border: 1px solid rgba(255,255,255,.28);
    box-shadow: 0 8px 22px rgba(0,0,0,.22); animation: rk-float 4.5s ease-in-out infinite; flex-shrink: 0; }
@keyframes rk-float { 0%,100% { transform: translateY(0) rotate(0); } 50% { transform: translateY(-7px) rotate(-2deg); } }
.rk-tierlabel { font-size: .68rem; letter-spacing: .18em; font-weight: 800; opacity: .8; text-transform: uppercase; }
.rk-name { font-size: 1.7rem; font-weight: 850; line-height: 1.05; }
.rk-points { font-weight: 700; opacity: .95; }

.rk-bar { height: 11px; border-radius: 999px; background: rgba(255,255,255,.24); overflow: hidden; }
.rk-bar > span { display: block; height: 100%; width: 0; border-radius: 999px;
    background: linear-gradient(90deg, #fff, var(--t-accent));
    box-shadow: 0 0 16px var(--t-accent); transition: width 1.5s cubic-bezier(.22,1,.36,1); }

.rk-steps { display: flex; gap: .35rem; }
.rk-step { flex: 1; text-align: center; min-width: 0; }
.rk-step .rk-dot { width: 34px; height: 34px; border-radius: 50%; margin: 0 auto .3rem; display: grid; place-items: center;
    background: rgba(255,255,255,.16); font-size: .95rem; opacity: .6; transition: all .3s; }
.rk-step.done .rk-dot { opacity: 1; background: rgba(255,255,255,.28); }
.rk-step.current .rk-dot { opacity: 1; background: var(--t-accent); color: #1c1c28;
    box-shadow: 0 0 0 4px rgba(255,255,255,.28); animation: rk-pulse 1.9s infinite; }
@keyframes rk-pulse { 0% { box-shadow: 0 0 0 0 rgba(255,255,255,.5); } 70% { box-shadow: 0 0 0 11px rgba(255,255,255,0); } 100% { box-shadow: 0 0 0 0 rgba(255,255,255,0); } }
.rk-step .rk-steplabel { font-size: .6rem; font-weight: 700; opacity: .75; white-space: nowrap; }
.rk-step.current .rk-steplabel { opacity: 1; }

/* A small inline rank chip reusable elsewhere */
.rank-chip { display: inline-flex; align-items: center; gap: .4rem; font-weight: 800; font-size: .8rem;
    padding: .32rem .7rem; border-radius: 999px; color: var(--t-ink);
    background: linear-gradient(135deg, var(--t-from), var(--t-to)); box-shadow: 0 6px 14px -6px var(--t-glow); }

@media (max-width: 575.98px) {
    .rk-name { font-size: 1.4rem; }
    .rk-step .rk-steplabel { font-size: .5rem; }
    .rk-step .rk-dot { width: 28px; height: 28px; font-size: .8rem; }
}

@media (prefers-reduced-motion: reduce) {
    .rankcard .rk-sheen, .rk-crest, .rk-step.current .rk-dot { animation: none; }
}

/* ----- Star ratings ----------------------------------------------------- */
.rh-stars { display: inline-flex; align-items: center; gap: 1px; white-space: nowrap; }
.rh-stars i { color: #f5b800; font-size: .82rem; }
.rh-stars i.bi-star { color: #d6dae6; }
[data-bs-theme="dark"] .rh-stars i.bi-star { color: #39456a; }
.rh-stars-count { color: var(--rh-muted); font-size: .76rem; margin-left: .35rem; font-weight: 650; }

/* Interactive star input (rating modal) */
.star-input { display: inline-flex; flex-direction: row-reverse; gap: 6px; }
.star-input input { position: absolute; opacity: 0; width: 0; height: 0; }
.star-input label { font-size: 2rem; line-height: 1; color: #d6dae6; cursor: pointer; transition: transform .1s, color .12s; }
.star-input label:hover { transform: scale(1.12); }
.star-input label:hover, .star-input label:hover ~ label,
.star-input input:checked ~ label { color: #f5b800; }

/* Loyalty "how it works" breakdown */
.loyalty-info .li-row { display: flex; gap: .8rem; align-items: flex-start; padding: .7rem 0; border-bottom: 1px solid var(--rh-border); }
.loyalty-info .li-row:first-child { padding-top: 0; }
.loyalty-info .li-row:last-of-type { border-bottom: none; }
.li-ic { width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; font-size: 1.1rem; flex-shrink: 0; }
.li-title { font-weight: 700; font-size: .9rem; }
.li-desc { color: var(--rh-muted); font-size: .85rem; line-height: 1.45; }
.li-desc strong { color: var(--rh-text); }
.li-example { margin-top: .8rem; padding: .75rem .9rem; border-radius: 12px; font-size: .84rem;
    background: var(--rh-primary-soft); color: var(--rh-primary-700); }
.li-example strong { color: var(--rh-primary-700); }
.earn-badge { display: inline-flex; align-items: center; gap: .3rem; font-size: .72rem; font-weight: 700;
    padding: .26rem .6rem; border-radius: 999px; background: #e8eef9; color: #082456; }

/* Rank tiles (retailer dashboard) */
.rank-tile { position: relative; overflow: hidden; border-radius: 18px; padding: 1.1rem 1.2rem;
    min-height: 118px; box-shadow: 0 16px 32px -18px rgba(49, 46, 129, .4); }
.rank-tile::after { content: ''; position: absolute; right: -24px; bottom: -28px; width: 96px; height: 96px;
    border-radius: 50%; background: rgba(255, 255, 255, .16); }
.rank-tile-medal { position: absolute; right: .8rem; top: .7rem; font-size: 1.9rem; opacity: .45; }
.rank-tile-period { font-size: .68rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; opacity: .9; }
.rank-tile-rank { font-size: 2.3rem; font-weight: 850; line-height: 1; }
.rank-tile-of { font-size: .82rem; font-weight: 700; opacity: .85; white-space: nowrap; }
.rank-tile-sub { font-size: .77rem; font-weight: 600; opacity: .92; margin-top: .25rem; position: relative; z-index: 1; }
@media (max-width: 575.98px) {
    .rank-tile { padding: .8rem .9rem; min-height: 96px; }
    .rank-tile-rank { font-size: 1.65rem; }
    .rank-tile-medal { font-size: 1.45rem; top: .55rem; right: .6rem; }
    .rank-tile-period { font-size: .6rem; }
    .rank-tile-sub { font-size: .7rem; }
    .rank-tile::after { width: 70px; height: 70px; right: -18px; bottom: -20px; }
}

/* Store card (nearby + my retailers) */
.store-logo { width: 52px; height: 52px; border-radius: 14px; object-fit: cover; flex-shrink: 0; border: 1px solid var(--rh-border); }
.store-distance { font-size: .74rem; font-weight: 700; color: var(--rh-primary-700); background: var(--rh-primary-soft);
    padding: .25rem .6rem; border-radius: 999px; white-space: nowrap; }

::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb { background: #cdd3e6; border-radius: 10px; border: 2px solid transparent; background-clip: content-box; }
::-webkit-scrollbar-thumb:hover { background: #b4bcd6; background-clip: content-box; }
[data-bs-theme="dark"] ::-webkit-scrollbar-thumb { background: #2c3a55; background-clip: content-box; }
