/* ==========================================================================
   FiveMRides credits slider (Oct 29 2026) - home, My Credits, Studio top-up.
   Same tokens as the Studio sheet (fmr-studio-ui.css .fsu), redefined here
   because the homepage and My Account do not load that sheet.
   ========================================================================== */

.fcc,
.fcc-dialog {
    --fcc-panel: #0e121b;
    --fcc-panel2: #131925;
    --fcc-line: #1f2839;
    --fcc-line2: #2c3850;
    --fcc-text: #e8edf5;
    --fcc-muted: #8d98ab;
    --fcc-dim: #5f6b7e;
    --fcc-cyan: #00f0ff;
    --fcc-pink: #ff2f9e;
    --fcc-purple: #a855f7;
    --fcc-good: #34d399;
    --fcc-gold: #fbbf24;
    --fcc-grad: linear-gradient(120deg, #ff2f9e 0%, #a855f7 52%, #00d9ff 100%);
    --fcc-display: Rajdhani, Inter, system-ui, sans-serif;
    --fcc-font: Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
    --fcc-ease: cubic-bezier(.2, .8, .2, 1);
}

.fcc {
    position: relative;
    max-width: 1040px;
    margin: 28px auto 8px;
    font-family: var(--fcc-font);
    color: var(--fcc-text);
    text-align: left;
    box-sizing: border-box;
}
.fcc *, .fcc *::before, .fcc *::after { box-sizing: border-box; }
.fcc p { margin: 0; }

/* no-JS fallback */
.fcc-fallback__lead { color: var(--fcc-muted); margin-bottom: 8px !important; }
.fcc-fallback__list { margin: 0; padding-left: 18px; line-height: 1.8; }
.fcc-fallback__list a { color: var(--fcc-cyan); }
.fcc.is-ready .fcc-fallback { display: none; }

/* card */
.fcc-card {
    position: relative;
    padding: 30px 34px 26px;
    border-radius: 20px;
    border: 1px solid var(--fcc-line);
    background:
        radial-gradient(120% 90% at 0% 0%, rgba(255, 47, 158, .10), transparent 55%),
        radial-gradient(110% 90% at 100% 100%, rgba(0, 217, 255, .09), transparent 55%),
        linear-gradient(180deg, rgba(19, 25, 37, .96), rgba(9, 12, 19, .97));
    box-shadow: 0 18px 60px rgba(0, 0, 0, .5), 0 0 0 1px rgba(168, 85, 247, .06) inset;
    overflow: hidden;
}
.fcc-card::before {
    content: "";
    position: absolute;
    left: 0; right: 0; top: 0;
    height: 2px;
    background: var(--fcc-grad);
    opacity: .9;
}

/* top row: amount + quote */
.fcc-top {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    flex-wrap: wrap;
}
.fcc-eyebrow {
    font: 700 12px/1 var(--fcc-font);
    letter-spacing: .16em;
    text-transform: uppercase;
    color: var(--fcc-cyan);
    margin-bottom: 10px !important;
}
.fcc-amount {
    display: flex;
    align-items: baseline;
    gap: 10px;
    line-height: .9;
}
.fcc-num {
    font: 700 72px/0.9 var(--fcc-display);
    letter-spacing: -.01em;
    background: var(--fcc-grad);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    font-variant-numeric: tabular-nums;
    filter: drop-shadow(0 0 18px rgba(168, 85, 247, .35));
}
.fcc-unit {
    font: 600 22px/1 var(--fcc-display);
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--fcc-text);
}
.fcc-tier {
    margin-top: 10px !important;
    font-size: 13px;
    color: var(--fcc-muted);
}
.fcc-tier.is-pack { color: var(--fcc-text); }
.fcc-tier.is-pack::before {
    content: "";
    display: inline-block;
    width: 7px; height: 7px;
    margin-right: 8px;
    border-radius: 50%;
    background: var(--fcc-cyan);
    box-shadow: 0 0 10px var(--fcc-cyan);
    vertical-align: 1px;
}

.fcc-quote { text-align: right; }
.fcc-total {
    font: 700 52px/1 var(--fcc-display);
    color: #fff;
    font-variant-numeric: tabular-nums;
    text-shadow: 0 0 24px rgba(0, 240, 255, .18);
}
.fcc-tags {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
    flex-wrap: wrap;
    margin-top: 10px !important;
}
.fcc-per,
.fcc-save {
    display: inline-flex;
    align-items: center;
    height: 28px;
    padding: 0 12px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
}
.fcc-per { background: var(--fcc-panel2); border: 1px solid var(--fcc-line2); color: var(--fcc-text); }
.fcc-save { background: rgba(52, 211, 153, .12); border: 1px solid rgba(52, 211, 153, .45); color: var(--fcc-good); }
.fcc-save.is-zero { background: var(--fcc-panel2); border-color: var(--fcc-line2); color: var(--fcc-muted); }

/* rail */
.fcc-rail {
    position: relative;
    margin: 46px 14px 0;
    padding-top: 6px;
    touch-action: none;
    user-select: none;
    -webkit-user-select: none;
    cursor: pointer;
}
.fcc-track {
    position: relative;
    height: 12px;
    border-radius: 999px;
    background: #0a0e16;
    box-shadow: 0 0 0 1px var(--fcc-line2) inset, 0 2px 8px rgba(0, 0, 0, .5) inset;
}
.fcc-track::before { /* bigger invisible hit area */
    content: "";
    position: absolute;
    left: -14px; right: -14px;
    top: -18px; bottom: -18px;
}
.fcc-fill {
    position: absolute;
    left: 0; top: 0; bottom: 0;
    border-radius: inherit;
    background: var(--fcc-grad);
    box-shadow: 0 0 18px rgba(168, 85, 247, .55);
    transition: width .18s var(--fcc-ease);
}
.fcc-thumb {
    position: absolute;
    top: 50%;
    width: 34px; height: 34px;
    margin: -17px 0 0 -17px;
    border-radius: 50%;
    background: #fff;
    border: 4px solid #0b0f17;
    box-shadow: 0 0 0 2px var(--fcc-pink), 0 0 22px rgba(255, 47, 158, .7), 0 6px 16px rgba(0, 0, 0, .6);
    transition: left .18s var(--fcc-ease), transform .15s var(--fcc-ease);
    cursor: grab;
    z-index: 3;
    outline: none;
}
.fcc-thumb::after { /* 48px touch target */
    content: "";
    position: absolute;
    inset: -11px;
    border-radius: 50%;
}
.fcc-thumb:focus-visible {
    box-shadow: 0 0 0 2px var(--fcc-pink), 0 0 0 6px rgba(0, 240, 255, .55), 0 0 22px rgba(255, 47, 158, .7);
}
.fcc.is-drag .fcc-thumb,
.fcc-dialog .is-drag .fcc-thumb { cursor: grabbing; transform: scale(1.08); transition: transform .15s var(--fcc-ease); }
.fcc.is-drag .fcc-fill { transition: none; }

/* notches */
.fcc-notches {
    position: relative;
    height: 52px;
    margin-top: 6px;
}
.fcc-notch {
    position: absolute;
    left: var(--p);
    top: 0;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1px;
    min-width: 44px;
    min-height: 44px;
    padding: 12px 4px 2px;
    margin: 0;
    border: 0;
    background: none;
    color: var(--fcc-muted);
    font: inherit;
    cursor: pointer;
    border-radius: 10px;
    -webkit-tap-highlight-color: transparent;
}
.fcc-notch:first-child { transform: translateX(-22px); }
.fcc-notch:last-child { transform: translateX(calc(-100% + 22px)); }
.fcc-notch b {
    font: 700 16px/1 var(--fcc-display);
    color: var(--fcc-text);
    font-variant-numeric: tabular-nums;
}
.fcc-notch small {
    font-size: 11px;
    line-height: 1.2;
    color: var(--fcc-dim);
    white-space: nowrap;
}
.fcc-tick { /* mark on the track above the label */
    position: absolute;
    top: -18px;
    left: 50%;
    width: 2px; height: 12px;
    margin-left: -1px;
    border-radius: 2px;
    background: var(--fcc-line2);
    pointer-events: none;
}
.fcc-notch:first-child .fcc-tick { left: 22px; }
.fcc-notch:last-child .fcc-tick { left: auto; right: 21px; }
.fcc-notch.is-past .fcc-tick { background: rgba(255, 255, 255, .55); }
.fcc-notch:hover b,
.fcc-notch:focus-visible b { color: var(--fcc-cyan); }
.fcc-notch:focus-visible { outline: 2px solid var(--fcc-cyan); outline-offset: 2px; }
.fcc-notch.is-on b { color: var(--fcc-cyan); text-shadow: 0 0 12px rgba(0, 240, 255, .6); }
.fcc-notch.is-on small { color: var(--fcc-text); }
.fcc-notch--end small { color: var(--fcc-dim); }

.fcc-badge {
    position: absolute;
    bottom: calc(100% + 30px);
    left: 50%;
    transform: translateX(-50%);
    padding: 3px 9px;
    border-radius: 999px;
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
    white-space: nowrap;
    pointer-events: none;
}
.fcc-badge--pop { color: #fff; background: linear-gradient(120deg, #ff2f9e, #a855f7); box-shadow: 0 0 14px rgba(255, 47, 158, .45); }
.fcc-badge--best { color: #1a1204; background: linear-gradient(120deg, #fde68a, #fbbf24); box-shadow: 0 0 14px rgba(251, 191, 36, .45); }

/* bottom: what it covers + CTA */
.fcc-bottom {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
    gap: 26px;
    align-items: end;
    margin-top: 26px;
    padding-top: 22px;
    border-top: 1px solid var(--fcc-line);
}
.fcc-buys[hidden] { display: none; }
.fcc-buys[hidden] + .fcc-cta { grid-column: 1 / -1; max-width: 520px; justify-self: end; width: 100%; }
.fcc-buys-h {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--fcc-muted);
    margin-bottom: 12px !important;
}
.fcc-buys-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}
.fcc-buys-list li {
    position: relative;
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0 6px;
    margin: 0;
    padding: 10px 12px 10px 34px;
    border-radius: 12px;
    background: rgba(19, 25, 37, .8);
    border: 1px solid var(--fcc-line);
    font-size: 14px;
    color: var(--fcc-text);
}
.fcc-buys-list li b { font: 700 18px/1 var(--fcc-display); color: #fff; font-variant-numeric: tabular-nums; }
.fcc-buys-list li small { flex-basis: 100%; font-size: 11.5px; color: var(--fcc-dim); margin-top: 3px; }
.fcc-eq {
    position: absolute;
    left: 12px; top: 10px;
    font: 700 16px/1.1 var(--fcc-display);
    color: var(--fcc-pink);
}

.fcc-cta { display: flex; flex-direction: column; gap: 12px; }
.fcc-exact {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    font-size: 13px;
    color: var(--fcc-muted);
}
.fcc-exact input {
    width: 118px;
    height: 40px;
    padding: 0 12px;
    border-radius: 10px;
    border: 1px solid var(--fcc-line2);
    background: #0a0e16;
    color: var(--fcc-text);
    font: 600 16px var(--fcc-font);
    text-align: right;
    font-variant-numeric: tabular-nums;
}
.fcc-exact input:focus { outline: none; border-color: var(--fcc-cyan); box-shadow: 0 0 0 3px rgba(0, 240, 255, .2); }

.fcc-btn,
.fcc-btn:visited {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    min-height: 56px;
    padding: 0 22px;
    border-radius: 14px;
    background: var(--fcc-grad);
    background-size: 160% 100%;
    background-position: 0 0;
    color: #fff !important;
    text-decoration: none !important;
    font: 700 16px/1.2 var(--fcc-font);
    box-shadow: 0 10px 30px rgba(168, 85, 247, .35), 0 0 0 1px rgba(255, 255, 255, .08) inset;
    transition: background-position .35s var(--fcc-ease), transform .15s var(--fcc-ease), box-shadow .2s;
}
.fcc-btn b { font: 700 22px/1 var(--fcc-display); white-space: nowrap; }
.fcc-btn:hover { background-position: 100% 0; transform: translateY(-1px); box-shadow: 0 14px 36px rgba(0, 217, 255, .32); }
.fcc-btn:focus-visible { outline: 3px solid var(--fcc-cyan); outline-offset: 3px; }
.fcc-fine { font-size: 12.5px; color: var(--fcc-dim); line-height: 1.45; }

.fcc-small {
    margin-top: 18px !important;
    font-size: 13px;
    color: var(--fcc-muted);
    text-align: center;
}
.fcc-small a { color: var(--fcc-cyan); text-decoration: none; border-bottom: 1px dashed rgba(0, 240, 255, .5); }

/* My Account placement: a bit tighter */
.fcc--account { margin: 4px 0 18px; }
.fcc--account .fcc-card { padding: 24px 26px 22px; }
.fcc--account .fcc-num { font-size: 60px; }
.fcc--account .fcc-total { font-size: 44px; }

/* Studio dialog */
.fcc-dialog {
    width: min(760px, calc(100vw - 24px));
    max-height: calc(100dvh - 24px);
    padding: 0;
    border: 1px solid var(--fcc-line2);
    border-radius: 22px;
    background: #070a11;
    color: var(--fcc-text);
    box-shadow: 0 30px 90px rgba(0, 0, 0, .7), 0 0 60px rgba(168, 85, 247, .18);
    overflow: auto;
    font-family: var(--fcc-font);
}
.fcc-dialog::backdrop { background: rgba(3, 5, 10, .72); backdrop-filter: blur(4px); }
.fcc-dialog__in { padding: 22px 22px 18px; }
.fcc-dialog__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.fcc-dialog__head h2 { margin: 0; font: 700 26px/1.1 var(--fcc-display); letter-spacing: .02em; color: #fff; }
.fcc-dialog__bal { margin: 6px 0 0; font-size: 14px; color: var(--fcc-muted); }
.fcc-dialog__x {
    width: 44px; height: 44px;
    flex: none;
    border-radius: 12px;
    border: 1px solid var(--fcc-line2);
    background: var(--fcc-panel2);
    color: var(--fcc-text);
    font-size: 26px;
    line-height: 1;
    cursor: pointer;
}
.fcc-dialog__x:hover { border-color: var(--fcc-pink); }
.fcc-dialog__x:focus-visible { outline: 2px solid var(--fcc-cyan); outline-offset: 2px; }
.fcc-dialog .fcc { margin: 0; }
.fcc-dialog .fcc-card { padding: 24px 22px 20px; }
.fcc-dialog .fcc-num { font-size: 58px; }
.fcc-dialog .fcc-total { font-size: 42px; }
.fcc-dialog .fcc-bottom { grid-template-columns: 1fr; gap: 16px; }
.fcc-dialog__more { margin: 14px 0 0; text-align: center; font-size: 13px; }
.fcc-dialog__more a { color: var(--fcc-muted); }

/* tablet */
@media (max-width: 860px) {
    .fcc-bottom { grid-template-columns: 1fr; gap: 18px; }
    .fcc-buys[hidden] + .fcc-cta { max-width: none; }
}

/* phone */
@media (max-width: 560px) {
    .fcc { margin-top: 20px; }
    .fcc-card,
    .fcc--account .fcc-card,
    .fcc-dialog .fcc-card { padding: 22px 16px 18px; border-radius: 16px; }
    .fcc-top { flex-direction: column; align-items: stretch; gap: 14px; }
    .fcc-num,
    .fcc--account .fcc-num,
    .fcc-dialog .fcc-num { font-size: 56px; }
    .fcc-unit { font-size: 18px; }
    .fcc-quote { text-align: left; display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
    .fcc-total,
    .fcc--account .fcc-total,
    .fcc-dialog .fcc-total { font-size: 38px; }
    .fcc-tags { margin-top: 0 !important; justify-content: flex-start; }
    .fcc-per, .fcc-save { height: 26px; padding: 0 10px; font-size: 12px; }
    .fcc-rail { margin: 44px 8px 0; }
    .fcc-notch small { display: none; }
    .fcc-notch { padding-top: 12px; min-width: 36px; }
    .fcc-notch b { font-size: 14px; }
    .fcc-notch:first-child { transform: translateX(-18px); }
    .fcc-notch:last-child { transform: translateX(calc(-100% + 18px)); }
    .fcc-notch:first-child .fcc-tick { left: 18px; }
    .fcc-notch:last-child .fcc-tick { right: 17px; }
    .fcc-notches { height: 40px; }
    .fcc-badge { font-size: 9.5px; padding: 2px 7px; bottom: calc(100% + 30px); }
    .fcc-buys-list { grid-template-columns: 1fr 1fr; }
    .fcc-buys-list li { padding: 9px 10px 9px 28px; font-size: 13px; }
    .fcc-eq { left: 10px; }
    .fcc-btn { min-height: 54px; padding: 0 16px; font-size: 15px; }
    .fcc-btn b { font-size: 20px; }
    .fcc-dialog { border-radius: 18px; }
    .fcc-dialog__in { padding: 16px 12px 14px; }
}

@media (prefers-reduced-motion: reduce) {
    .fcc-fill, .fcc-thumb, .fcc-btn { transition: none; }
}

/* Hardening: My Account (theme style.css / refined-tools.css) forces colors,
   sizes and line heights with !important on every p, a and li. */
.fcc.fcc p,
.fcc.fcc li { line-height: 1.35 !important; text-shadow: none; }
.fcc.fcc .fcc-eyebrow { color: var(--fcc-cyan) !important; font-size: 12px !important; line-height: 1 !important; }
.fcc.fcc .fcc-amount { color: var(--fcc-text) !important; font-size: inherit !important; line-height: .9 !important; }
.fcc.fcc .fcc-num {
    background: var(--fcc-grad) !important;
    -webkit-background-clip: text !important;
    background-clip: text !important;
    color: transparent !important;
    -webkit-text-fill-color: transparent !important;
    -webkit-text-stroke: 0 !important;
    text-shadow: none !important;
}
.fcc.fcc .fcc-tier { color: var(--fcc-muted) !important; font-size: 13px !important; }
.fcc.fcc .fcc-tier.is-pack { color: var(--fcc-text) !important; }
.fcc.fcc .fcc-total { color: #fff !important; line-height: 1 !important; }
.fcc.fcc .fcc-tags { font-size: 13px !important; }
.fcc.fcc .fcc-buys-h { color: var(--fcc-muted) !important; font-size: 12px !important; line-height: 1 !important; }
.fcc.fcc .fcc-buys-list { margin: 0 !important; padding: 0 !important; }
.fcc.fcc .fcc-buys-list li { color: var(--fcc-text) !important; font-size: 14px !important; margin: 0 !important; }
.fcc.fcc .fcc-fine { color: var(--fcc-dim) !important; font-size: 12.5px !important; line-height: 1.45 !important; }
.fcc.fcc .fcc-small { color: var(--fcc-muted) !important; font-size: 13px !important; }
.fcc.fcc .fcc-small a { color: var(--fcc-cyan) !important; }
.fcc.fcc a.fcc-btn,
.fcc.fcc a.fcc-btn:visited,
.fcc.fcc a.fcc-btn b { color: #fff !important; text-shadow: none !important; }

/* Homepage: align with the left-aligned section heading, full container width */
.fcc--home { max-width: none; margin-left: 0; margin-right: 0; }

/* Phones: every "what it covers" card on the same pattern (number, then label) */
@media (max-width: 560px) {
    .fcc.fcc .fcc-buys-list li { font-size: 13px !important; }
    .fcc-buy-l { flex-basis: 100%; }
}
.fcc-dialog .fcc-dialog__x { display: grid; place-items: center; padding: 0 !important; min-width: 0; }

/* v2 (Oct 29): the slider sits UNDER the untouched pack cards */
.fcc-wrap { margin: 34px 0 6px; }
.fcc-wrap .fcc { margin: 0; }
.fcc-wrap .fcc-fallback { color: var(--fcc-muted, #8d98ab); font-size: 14px; }
.fcc-or {
    display: flex;
    align-items: center;
    gap: 16px;
    margin: 0 0 16px;
}
.fcc-or__line {
    flex: 1 1 auto;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(168, 85, 247, .55), rgba(0, 217, 255, .45), transparent);
}
.fcc-wrap .fcc-or .fcc-or__h {
    flex: none;
    margin: 0 !important;
    padding: 0 !important;
    font: 700 13px/1.2 Inter, system-ui, sans-serif !important;
    letter-spacing: .18em !important;
    text-transform: uppercase !important;
    color: #e8edf5 !important;
    text-shadow: none !important;
    background: none !important;
    border: 0 !important;
}
.fcc-wrap--account { margin-top: 26px; }
@media (max-width: 560px) {
    .fcc-wrap { margin-top: 26px; }
    .fcc-or { gap: 10px; }
    .fcc-wrap .fcc-or .fcc-or__h { font-size: 11.5px !important; letter-spacing: .14em !important; }
}
