/* ==========================================================================================================
   Freefall design system
   Dark-first "night market" aesthetic: deep ink background, glass surfaces, one hot gradient, tabular numerals.
   Price DOWN is good news for shoppers, so it flashes mint; price UP flashes coral.
   ========================================================================================================== */

@font-face {
    font-family: "Inter";
    src: url("../fonts/inter-latin-wght-normal.woff2") format("woff2");
    font-weight: 100 900;
    font-style: normal;
    font-display: swap;
}

:root,
[data-bs-theme="dark"] {
    --ff-bg: #06070b;
    --ff-bg-2: #0b0d14;
    --ff-surface: rgba(255, 255, 255, .035);
    --ff-surface-2: rgba(255, 255, 255, .06);
    --ff-surface-solid: #10131c;
    --ff-border: rgba(255, 255, 255, .08);
    --ff-border-strong: rgba(255, 255, 255, .16);
    --ff-text: #eef0f7;
    --ff-text-2: #b8bdcf;
    --ff-muted: #7d849b;
    --ff-hot: #ff3d71;
    --ff-amber: #ff9f43;
    --ff-violet: #8b5cf6;
    --ff-down: #2ee6a0;
    --ff-up: #ff6b81;
    --ff-grad: linear-gradient(120deg, #ff3d71 0%, #ff6b5a 45%, #ff9f43 100%);
    --ff-grad-soft: linear-gradient(120deg, rgba(255, 61, 113, .18), rgba(255, 159, 67, .12));
    --ff-shadow: 0 1px 0 rgba(255, 255, 255, .04) inset, 0 24px 60px -24px rgba(0, 0, 0, .7);
    --ff-glow: 0 0 0 1px rgba(255, 61, 113, .35), 0 18px 50px -12px rgba(255, 61, 113, .45);
    --ff-radius: 18px;
    --ff-radius-sm: 12px;
    --accent: var(--ff-hot);

    --bs-body-bg: var(--ff-bg);
    --bs-body-color: var(--ff-text);
    --bs-border-color: var(--ff-border);
    --bs-secondary-color: var(--ff-muted);
    --bs-emphasis-color: #fff;
    --bs-link-color: #ff7a9a;
    --bs-link-hover-color: #ffa3b8;
    --bs-font-sans-serif: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    --bs-tertiary-bg: var(--ff-surface-solid);
    color-scheme: dark;
}

[data-bs-theme="light"] {
    --ff-bg: #f6f7fb;
    --ff-bg-2: #eef0f6;
    --ff-surface: rgba(255, 255, 255, .8);
    --ff-surface-2: #ffffff;
    --ff-surface-solid: #ffffff;
    --ff-border: rgba(15, 18, 30, .08);
    --ff-border-strong: rgba(15, 18, 30, .16);
    --ff-text: #0d1020;
    --ff-text-2: #3c4158;
    --ff-muted: #6b7189;
    --ff-down: #0fa56f;
    --ff-up: #e5384f;
    --ff-shadow: 0 1px 2px rgba(15, 18, 30, .04), 0 18px 40px -20px rgba(15, 18, 30, .18);
    --bs-body-bg: var(--ff-bg);
    --bs-body-color: var(--ff-text);
    --bs-link-color: #e0245e;
    --bs-link-hover-color: #b31549;
    --bs-tertiary-bg: #fff;
    color-scheme: light;
}

/* ---- Base ------------------------------------------------------------------------------------------------ */

html { scroll-behavior: smooth; }
body {
    font-family: var(--bs-font-sans-serif);
    background: var(--ff-bg);
    color: var(--ff-text);
    -webkit-font-smoothing: antialiased;
    font-feature-settings: "cv11", "ss01";
    letter-spacing: -.005em;
    min-height: 100vh;
}
::selection { background: rgba(255, 61, 113, .35); color: #fff; }
a { text-decoration: none; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
.tabular, .ff-price, .ff-num { font-variant-numeric: tabular-nums; font-feature-settings: "tnum", "cv11"; }
.text-muted, .ff-muted { color: var(--ff-muted) !important; }
.text-2 { color: var(--ff-text-2); }
hr { border-color: var(--ff-border); opacity: 1; }

.ff-display { font-weight: 800; letter-spacing: -.045em; line-height: .98; }
.ff-h1 { font-size: clamp(2.6rem, 6.4vw, 5.6rem); }
.ff-h2 { font-size: clamp(2rem, 4vw, 3.2rem); font-weight: 800; letter-spacing: -.035em; line-height: 1.05; }
.ff-h3 { font-size: 1.35rem; font-weight: 700; letter-spacing: -.02em; }
.ff-lead { font-size: clamp(1.05rem, 1.6vw, 1.3rem); color: var(--ff-text-2); line-height: 1.55; }
.ff-eyebrow {
    display: inline-flex; align-items: center; gap: .5rem;
    font-size: .74rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--ff-muted);
}
.ff-gradient-text { background: var(--ff-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ---- Buttons ------------------------------------------------------------------------------------------- */

.btn { --bs-btn-font-weight: 600; border-radius: 999px; letter-spacing: -.01em; }
.btn-lg { --bs-btn-padding-y: .9rem; --bs-btn-padding-x: 1.6rem; --bs-btn-font-size: 1.02rem; }
.btn-ff {
    position: relative; overflow: hidden; isolation: isolate;
    color: #fff; border: 0; background: var(--ff-grad);
    box-shadow: 0 10px 30px -10px rgba(255, 61, 113, .7), inset 0 1px 0 rgba(255, 255, 255, .25);
    transition: transform .15s ease, box-shadow .2s ease, filter .2s ease;
}
.btn-ff::after {
    content: ""; position: absolute; inset: 0; z-index: -1;
    background: linear-gradient(110deg, transparent 20%, rgba(255, 255, 255, .35) 45%, transparent 70%);
    transform: translateX(-120%); transition: transform .7s ease;
}
.btn-ff:hover { color: #fff; transform: translateY(-1px); box-shadow: 0 16px 40px -12px rgba(255, 61, 113, .85), inset 0 1px 0 rgba(255, 255, 255, .3); }
.btn-ff:hover::after { transform: translateX(120%); }
.btn-ff:active { transform: translateY(0) scale(.99); }
.btn-ff:disabled, .btn-ff.disabled { filter: grayscale(.7) brightness(.7); box-shadow: none; color: #fff; }
.btn-accent { color: #fff; background: var(--accent); border: 0; box-shadow: 0 10px 30px -12px var(--accent); }
.btn-accent:hover { color: #fff; filter: brightness(1.08); }
.btn-glass {
    color: var(--ff-text); background: var(--ff-surface-2); border: 1px solid var(--ff-border);
    backdrop-filter: blur(12px);
}
.btn-glass:hover { color: var(--ff-text); background: var(--ff-surface); border-color: var(--ff-border-strong); }
.btn-ghost { color: var(--ff-text-2); background: transparent; border: 1px solid transparent; }
.btn-ghost:hover { color: var(--ff-text); background: var(--ff-surface-2); }
.btn-danger-soft { color: #ff8a9b; background: rgba(255, 107, 129, .1); border: 1px solid rgba(255, 107, 129, .2); }
.btn-danger-soft:hover { color: #fff; background: rgba(255, 107, 129, .25); }
.btn-icon { width: 2.4rem; height: 2.4rem; padding: 0; display: inline-grid; place-items: center; border-radius: 12px; }

/* ---- Navigation ---------------------------------------------------------------------------------------- */

.ff-nav {
    position: sticky; top: 0; z-index: 1030;
    backdrop-filter: saturate(160%) blur(18px);
    background: color-mix(in srgb, var(--ff-bg) 72%, transparent);
    border-bottom: 1px solid var(--ff-border);
}
.ff-nav .nav-link { color: var(--ff-text-2); font-weight: 500; font-size: .95rem; padding: .5rem .9rem !important; border-radius: 999px; }
.ff-nav .nav-link:hover, .ff-nav .nav-link.active { color: var(--ff-text); background: var(--ff-surface-2); }
.ff-logo { display: inline-flex; align-items: center; gap: .55rem; font-weight: 800; letter-spacing: -.04em; font-size: 1.25rem; color: var(--ff-text); }
.ff-logo:hover { color: var(--ff-text); }
.ff-logo-mark {
    width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center;
    background: var(--ff-grad); box-shadow: 0 6px 18px -6px rgba(255, 61, 113, .8);
}
.ff-logo-mark svg { width: 18px; height: 18px; color: #fff; }

/* ---- Hero ------------------------------------------------------------------------------------------------ */

.ff-hero { position: relative; overflow: hidden; padding: clamp(4rem, 9vw, 8rem) 0 clamp(3rem, 6vw, 5rem); }
.ff-aurora { position: absolute; inset: -20% -10% auto; height: 120%; pointer-events: none; z-index: 0; filter: blur(70px); opacity: .55; }
.ff-aurora span { position: absolute; border-radius: 50%; mix-blend-mode: screen; animation: ff-float 18s ease-in-out infinite alternate; }
.ff-aurora span:nth-child(1) { width: 48vw; height: 48vw; left: -6vw; top: -12vw; background: radial-gradient(circle, #ff3d71 0%, transparent 65%); }
.ff-aurora span:nth-child(2) { width: 42vw; height: 42vw; right: -8vw; top: -6vw; background: radial-gradient(circle, #8b5cf6 0%, transparent 65%); animation-delay: -6s; }
.ff-aurora span:nth-child(3) { width: 36vw; height: 36vw; left: 30vw; top: 8vw; background: radial-gradient(circle, #ff9f43 0%, transparent 65%); animation-delay: -11s; opacity: .7; }
[data-bs-theme="light"] .ff-aurora { opacity: .28; }
@keyframes ff-float { to { transform: translate3d(4vw, 3vw, 0) scale(1.12); } }
.ff-grid-bg {
    position: absolute; inset: 0; pointer-events: none; z-index: 0;
    background-image: linear-gradient(var(--ff-border) 1px, transparent 1px), linear-gradient(90deg, var(--ff-border) 1px, transparent 1px);
    background-size: 64px 64px;
    mask-image: radial-gradient(ellipse 70% 60% at 50% 20%, #000 30%, transparent 75%);
}
.ff-hero > .container { position: relative; z-index: 1; }
.ff-chip {
    display: inline-flex; align-items: center; gap: .55rem; padding: .4rem .85rem .4rem .45rem;
    border-radius: 999px; background: var(--ff-surface-2); border: 1px solid var(--ff-border);
    font-size: .85rem; color: var(--ff-text-2); backdrop-filter: blur(10px);
}
.ff-chip b { color: var(--ff-text); font-weight: 600; }
.ff-chip .ff-chip-tag { padding: .15rem .55rem; border-radius: 999px; background: var(--ff-grad); color: #fff; font-weight: 700; font-size: .72rem; letter-spacing: .04em; }

/* ---- Live badge ---------------------------------------------------------------------------------------- */

.ff-live {
    display: inline-flex; align-items: center; gap: .45rem; font-size: .72rem; font-weight: 800; letter-spacing: .12em;
    text-transform: uppercase; color: var(--ff-down);
}
.ff-live::before {
    content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor;
    box-shadow: 0 0 0 0 currentColor; animation: ff-pulse 1.8s ease-out infinite;
}
@keyframes ff-pulse { 0% { box-shadow: 0 0 0 0 rgba(46, 230, 160, .55); } 100% { box-shadow: 0 0 0 10px rgba(46, 230, 160, 0); } }
.ff-watchers { display: inline-flex; align-items: center; gap: .4rem; color: var(--ff-text-2); font-size: .85rem; }
.ff-watchers svg { width: 16px; height: 16px; }

/* ---- Ticker tape --------------------------------------------------------------------------------------- */

.ff-tape { border-block: 1px solid var(--ff-border); background: var(--ff-bg-2); overflow: hidden; white-space: nowrap; position: relative; }
.ff-tape::before, .ff-tape::after { content: ""; position: absolute; top: 0; bottom: 0; width: 80px; z-index: 1; pointer-events: none; }
.ff-tape::before { left: 0; background: linear-gradient(90deg, var(--ff-bg-2), transparent); }
.ff-tape::after { right: 0; background: linear-gradient(-90deg, var(--ff-bg-2), transparent); }
.ff-tape-track { display: inline-flex; gap: 2.5rem; padding: .85rem 0; animation: ff-marquee 40s linear infinite; }
.ff-tape-item { display: inline-flex; align-items: center; gap: .6rem; font-size: .9rem; color: var(--ff-text-2); }
.ff-tape-item b { color: var(--ff-text); font-weight: 600; }
.ff-tape-item .down { color: var(--ff-down); font-weight: 700; }
@keyframes ff-marquee { to { transform: translateX(-50%); } }

/* ---- Cards & surfaces ------------------------------------------------------------------------------------ */

.ff-card {
    position: relative; border-radius: var(--ff-radius); background: var(--ff-surface);
    border: 1px solid var(--ff-border); box-shadow: var(--ff-shadow); backdrop-filter: blur(14px);
}
.ff-card-pad { padding: clamp(1.25rem, 2.4vw, 1.75rem); }
.ff-card-hover { transition: transform .25s cubic-bezier(.2, .8, .2, 1), border-color .25s ease, box-shadow .25s ease; }
.ff-card-hover:hover { transform: translateY(-3px); border-color: var(--ff-border-strong); }
.ff-glow-border::before {
    content: ""; position: absolute; inset: -1px; border-radius: inherit; padding: 1px; pointer-events: none;
    background: linear-gradient(140deg, rgba(255, 61, 113, .55), transparent 40%, transparent 60%, rgba(255, 159, 67, .45));
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude;
}

/* ---- Drop card --------------------------------------------------------------------------------------------- */

.ff-drop { display: flex; flex-direction: column; overflow: hidden; height: 100%; }
.ff-drop.is-hot { box-shadow: var(--ff-glow); }
.ff-drop-media { position: relative; aspect-ratio: 4 / 3; overflow: hidden; border-bottom: 1px solid var(--ff-border); }
.ff-drop-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s cubic-bezier(.2, .8, .2, 1); }
.ff-drop:hover .ff-drop-media img, .ff-drop:hover .ff-art-icon { transform: scale(1.06); }
.ff-drop-tags { position: absolute; inset: .85rem .85rem auto; display: flex; justify-content: space-between; align-items: center; z-index: 2; }
.ff-tag {
    display: inline-flex; align-items: center; gap: .35rem; padding: .32rem .65rem; border-radius: 999px;
    font-size: .72rem; font-weight: 700; letter-spacing: .02em;
    background: rgba(6, 7, 11, .62); color: #fff; backdrop-filter: blur(10px); border: 1px solid rgba(255, 255, 255, .1);
}
.ff-tag-off { background: var(--ff-grad); border: 0; box-shadow: 0 8px 20px -8px rgba(255, 61, 113, .8); }
.ff-drop-body { padding: 1.15rem 1.25rem 1.25rem; display: flex; flex-direction: column; gap: .85rem; flex: 1; }
.ff-drop-title { font-size: 1.08rem; font-weight: 700; letter-spacing: -.02em; margin: 0; color: var(--ff-text); }
.ff-drop-sub { font-size: .86rem; color: var(--ff-muted); margin: .15rem 0 0; }
.ff-price-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem; }
.ff-price {
    font-size: clamp(1.9rem, 3vw, 2.35rem); font-weight: 800; letter-spacing: -.04em; line-height: 1;
    color: var(--ff-text); border-radius: 10px; padding: .1rem .3rem; margin: -.1rem -.3rem;
    transition: color .6s ease, background-color .6s ease;
}
.ff-price-xl { font-size: clamp(3rem, 7vw, 5rem); }
.ff-price.tick-down { color: var(--ff-down); background: rgba(46, 230, 160, .1); transition: none; }
.ff-price.tick-up { color: var(--ff-up); background: rgba(255, 107, 129, .1); transition: none; }
.ff-price-was { font-size: .9rem; color: var(--ff-muted); text-decoration: line-through; text-decoration-color: rgba(255, 107, 129, .6); }
.ff-delta { font-size: .8rem; font-weight: 700; }
.ff-delta.down { color: var(--ff-down); }
.ff-delta.up { color: var(--ff-up); }
.ff-spark { width: 100%; height: 46px; display: block; }
.ff-spark-lg { height: 220px; }
.ff-stock { display: flex; flex-direction: column; gap: .4rem; }
.ff-stock-meta { display: flex; justify-content: space-between; font-size: .8rem; color: var(--ff-muted); }
.ff-stock-meta b { color: var(--ff-text); }
.ff-stock-meta .low { color: var(--ff-amber); font-weight: 700; }
.ff-bar { height: 6px; border-radius: 99px; background: var(--ff-surface-2); overflow: hidden; }
.ff-bar > span { display: block; height: 100%; border-radius: inherit; background: var(--ff-grad); transition: width .6s cubic-bezier(.2, .8, .2, 1); }
.ff-drop-cta { margin-top: auto; }
.ff-drop.is-soldout .ff-drop-media, .ff-drop.is-paused .ff-drop-media { filter: grayscale(.85) brightness(.6); }
.ff-overlay-state {
    position: absolute; inset: 0; display: grid; place-items: center; z-index: 3;
    font-weight: 800; font-size: 1.5rem; letter-spacing: .2em; text-transform: uppercase; color: #fff;
    text-shadow: 0 4px 24px rgba(0, 0, 0, .6);
}

/* Built-in artwork tile */
.ff-art {
    --h: 340;
    position: absolute; inset: 0; display: grid; place-items: center; overflow: hidden;
    background:
        radial-gradient(120% 90% at 30% 15%, hsla(var(--h), 95%, 62%, .55), transparent 55%),
        radial-gradient(90% 80% at 85% 90%, hsla(calc(var(--h) + 40), 95%, 58%, .45), transparent 60%),
        linear-gradient(160deg, hsl(var(--h), 40%, 14%), hsl(calc(var(--h) + 30), 45%, 7%));
}
.ff-art::after {
    content: ""; position: absolute; inset: 0;
    background-image: linear-gradient(rgba(255, 255, 255, .06) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .06) 1px, transparent 1px);
    background-size: 28px 28px; mask-image: radial-gradient(circle at 50% 50%, #000, transparent 75%);
}
.ff-art-icon {
    width: 42%; height: 42%; color: #fff; position: relative; z-index: 1;
    filter: drop-shadow(0 18px 30px rgba(0, 0, 0, .45)) drop-shadow(0 0 30px hsla(var(--h), 100%, 70%, .45));
    transition: transform .6s cubic-bezier(.2, .8, .2, 1);
}
.ff-art-sm { position: relative; width: 44px; height: 44px; border-radius: 12px; flex: none; overflow: hidden; }
.ff-art-sm .ff-art-icon { width: 58%; height: 58%; filter: none; }
.ff-art-sm img { width: 100%; height: 100%; object-fit: cover; }

/* ---- Storefront ---------------------------------------------------------------------------------------- */

.ff-store-hero { position: relative; padding: clamp(2.5rem, 6vw, 4.5rem) 0 2rem; overflow: hidden; }
.ff-store-hero::before {
    content: ""; position: absolute; inset: -40% -10% auto; height: 140%; z-index: 0; pointer-events: none;
    background: radial-gradient(60% 50% at 20% 20%, color-mix(in srgb, var(--accent) 45%, transparent), transparent 70%),
                radial-gradient(40% 40% at 90% 10%, color-mix(in srgb, var(--accent) 25%, transparent), transparent 70%);
    filter: blur(40px); opacity: .7;
}
.ff-store-hero > .container { position: relative; z-index: 1; }
.ff-monogram {
    width: 64px; height: 64px; border-radius: 18px; display: grid; place-items: center; flex: none;
    font-weight: 800; font-size: 1.6rem; letter-spacing: -.04em; color: #fff;
    background: linear-gradient(140deg, var(--accent), color-mix(in srgb, var(--accent) 50%, #000));
    box-shadow: 0 14px 40px -14px var(--accent), inset 0 1px 0 rgba(255, 255, 255, .25);
}
.ff-statbar { display: flex; flex-wrap: wrap; gap: .6rem; }
.ff-stat { padding: .55rem .9rem; border-radius: 12px; background: var(--ff-surface-2); border: 1px solid var(--ff-border); font-size: .85rem; color: var(--ff-text-2); }
.ff-stat b { color: var(--ff-text); font-weight: 700; }
.ff-how { display: grid; grid-template-columns: repeat(3, 1fr); gap: .75rem; }
.ff-how div { display: flex; gap: .7rem; align-items: center; font-size: .86rem; color: var(--ff-text-2); }
.ff-how i { font-style: normal; width: 28px; height: 28px; border-radius: 9px; flex: none; display: grid; place-items: center; font-weight: 800; font-size: .8rem; color: #fff; background: var(--accent); }
.ff-detail-media { position: relative; aspect-ratio: 1; border-radius: var(--ff-radius); overflow: hidden; border: 1px solid var(--ff-border); }
.ff-detail-media img { width: 100%; height: 100%; object-fit: cover; }

/* ---- Toast stack ----------------------------------------------------------------------------------------- */

.ff-toasts { position: fixed; left: 1rem; bottom: 1rem; z-index: 1090; display: flex; flex-direction: column; gap: .6rem; pointer-events: none; max-width: min(380px, calc(100vw - 2rem)); }
.ff-toast {
    pointer-events: auto; display: flex; gap: .75rem; align-items: center; padding: .8rem 1rem; border-radius: 14px;
    background: color-mix(in srgb, var(--ff-surface-solid) 88%, transparent); border: 1px solid var(--ff-border-strong);
    box-shadow: 0 20px 50px -16px rgba(0, 0, 0, .7); backdrop-filter: blur(16px);
    animation: ff-toast-in .45s cubic-bezier(.2, .9, .2, 1.2) both; font-size: .9rem;
}
.ff-toast.out { animation: ff-toast-out .35s ease forwards; }
.ff-toast-dot { width: 34px; height: 34px; border-radius: 10px; flex: none; display: grid; place-items: center; background: var(--ff-grad); color: #fff; }
.ff-toast-dot svg { width: 18px; height: 18px; }
.ff-toast small { color: var(--ff-muted); display: block; }
@keyframes ff-toast-in { from { opacity: 0; transform: translateY(16px) scale(.96); } }
@keyframes ff-toast-out { to { opacity: 0; transform: translateX(-20px); } }

/* ---- Landing sections ---------------------------------------------------------------------------------- */

.ff-section { padding: clamp(4rem, 8vw, 7rem) 0; position: relative; }
.ff-feature { padding: 1.6rem; height: 100%; }
.ff-feature-icon {
    width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; margin-bottom: 1.1rem;
    background: var(--ff-grad-soft); border: 1px solid rgba(255, 61, 113, .25); color: #ff7a9a;
}
.ff-feature-icon svg { width: 22px; height: 22px; }
.ff-feature h3 { font-size: 1.1rem; font-weight: 700; letter-spacing: -.02em; }
.ff-feature p { color: var(--ff-text-2); font-size: .95rem; margin: 0; }
.ff-step-num { font-size: 3.2rem; font-weight: 800; letter-spacing: -.06em; line-height: 1; }
.ff-demo-board { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.ff-browser { border-radius: 20px; overflow: hidden; border: 1px solid var(--ff-border-strong); background: var(--ff-bg-2); box-shadow: 0 40px 120px -40px rgba(255, 61, 113, .45), var(--ff-shadow); }
.ff-browser-bar { display: flex; align-items: center; gap: .45rem; padding: .7rem 1rem; border-bottom: 1px solid var(--ff-border); background: var(--ff-surface); }
.ff-browser-bar i { width: 11px; height: 11px; border-radius: 50%; background: var(--ff-border-strong); }
.ff-browser-url { margin-left: .75rem; flex: 1; max-width: 360px; padding: .3rem .8rem; border-radius: 8px; background: var(--ff-surface-2); font-size: .8rem; color: var(--ff-muted); }
.ff-price-card { padding: 2rem; height: 100%; display: flex; flex-direction: column; }
.ff-price-card.featured { background: linear-gradient(180deg, rgba(255, 61, 113, .12), var(--ff-surface)); }
.ff-price-card ul { list-style: none; padding: 0; margin: 1.5rem 0; display: grid; gap: .7rem; color: var(--ff-text-2); font-size: .95rem; }
.ff-price-card li::before { content: "✓"; color: var(--ff-down); font-weight: 800; margin-right: .6rem; }
.ff-cta-band { border-radius: 28px; padding: clamp(2.5rem, 6vw, 4.5rem); position: relative; overflow: hidden; background: var(--ff-grad); color: #fff; }
.ff-cta-band::after { content: ""; position: absolute; inset: 0; background: radial-gradient(60% 80% at 90% 0%, rgba(255, 255, 255, .3), transparent 60%); pointer-events: none; }
.ff-footer { border-top: 1px solid var(--ff-border); padding: 3rem 0; color: var(--ff-muted); font-size: .9rem; }
.ff-footer a { color: var(--ff-text-2); }

/* ---- Code ------------------------------------------------------------------------------------------------ */

.ff-code {
    position: relative; margin: 0; padding: 1.1rem 1.2rem; border-radius: var(--ff-radius-sm);
    background: #05060a; border: 1px solid var(--ff-border); color: #d6dbea;
    font: 500 .84rem/1.65 ui-monospace, "Cascadia Code", "JetBrains Mono", Consolas, monospace; overflow-x: auto; white-space: pre;
}
[data-bs-theme="light"] .ff-code { background: #0d1020; }
.ff-code .t { color: #ff7a9a; } .ff-code .a { color: #ffb86b; } .ff-code .s { color: #7ee7b5; } .ff-code .c { color: #6b7189; }
.ff-copy { position: absolute; top: .55rem; right: .55rem; }
.ff-key { font: 600 .85rem ui-monospace, Consolas, monospace; padding: .55rem .8rem; border-radius: 10px; background: var(--ff-surface-2); border: 1px solid var(--ff-border); word-break: break-all; }

/* ---- Forms ----------------------------------------------------------------------------------------------- */

.form-label { font-weight: 600; font-size: .88rem; color: var(--ff-text-2); margin-bottom: .4rem; }
.form-text { color: var(--ff-muted); font-size: .8rem; }
.form-control, .form-select {
    background-color: var(--ff-surface-2); border: 1px solid var(--ff-border); color: var(--ff-text);
    border-radius: var(--ff-radius-sm); padding: .7rem .9rem; transition: border-color .15s, box-shadow .15s, background-color .15s;
}
.form-control::placeholder { color: var(--ff-muted); opacity: .8; }
.form-control:focus, .form-select:focus {
    background-color: var(--ff-surface-2); color: var(--ff-text); border-color: color-mix(in srgb, var(--accent) 70%, transparent);
    box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 18%, transparent);
}
.form-control-color { width: 3.2rem; padding: .3rem; height: calc(2.9rem + 2px); }
.input-group-text { background: var(--ff-surface); border-color: var(--ff-border); color: var(--ff-muted); border-radius: var(--ff-radius-sm); }
.form-check-input { background-color: var(--ff-surface-2); border-color: var(--ff-border-strong); }
.form-check-input:checked { background-color: var(--accent); border-color: var(--accent); }
.form-switch .form-check-input { width: 2.6em; height: 1.4em; }
.form-range::-webkit-slider-thumb { background: var(--accent); box-shadow: 0 0 0 6px color-mix(in srgb, var(--accent) 20%, transparent); }
.form-range::-moz-range-thumb { background: var(--accent); }
.form-range::-webkit-slider-runnable-track { background: var(--ff-surface-2); height: .4rem; }
.field-validation-error, .text-danger { color: #ff8a9b !important; font-size: .82rem; }
.input-validation-error { border-color: rgba(255, 107, 129, .6) !important; }
.validation-summary-errors ul { margin: 0; padding-left: 1.1rem; }
.validation-summary-valid { display: none; }
.ff-alert { border-radius: var(--ff-radius-sm); padding: .9rem 1.1rem; border: 1px solid; font-size: .92rem; }
.ff-alert-danger { background: rgba(255, 107, 129, .08); border-color: rgba(255, 107, 129, .3); color: #ffb3bf; }
.ff-alert-success { background: rgba(46, 230, 160, .08); border-color: rgba(46, 230, 160, .3); color: #9ff3cd; }
.ff-alert-warning { background: rgba(255, 159, 67, .08); border-color: rgba(255, 159, 67, .3); color: #ffd1a3; }
.ff-alert-info { background: rgba(139, 92, 246, .08); border-color: rgba(139, 92, 246, .3); color: #cdbcff; }
[data-bs-theme="light"] .ff-alert-danger { color: #a3142c; }
[data-bs-theme="light"] .ff-alert-success { color: #08734d; }
[data-bs-theme="light"] .ff-alert-warning { color: #8a4b0b; }
[data-bs-theme="light"] .ff-alert-info { color: #4c2fb0; }

/* Choice tiles (art picker, curve picker, checkout mode) */
.ff-choices { display: grid; gap: .6rem; }
.ff-choices-art { grid-template-columns: repeat(auto-fill, minmax(64px, 1fr)); }
.ff-choices-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.ff-choices-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.ff-choice input { position: absolute; opacity: 0; pointer-events: none; }
.ff-choice label {
    display: block; height: 100%; cursor: pointer; padding: .85rem; border-radius: var(--ff-radius-sm);
    background: var(--ff-surface); border: 1px solid var(--ff-border); transition: border-color .15s, background .15s, transform .15s;
}
.ff-choice label:hover { border-color: var(--ff-border-strong); }
.ff-choice input:checked + label { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 10%, transparent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 18%, transparent); }
.ff-choice input:focus-visible + label { outline: 2px solid var(--accent); outline-offset: 2px; }
.ff-choice-art label { position: relative; aspect-ratio: 1; padding: 0; overflow: hidden; }
.ff-choice-art .ff-art-icon { width: 46%; height: 46%; filter: none; }
.ff-choice strong { display: block; font-size: .92rem; }
.ff-choice small { color: var(--ff-muted); font-size: .78rem; line-height: 1.35; display: block; margin-top: .2rem; }
.ff-curve-glyph { width: 100%; height: 34px; margin-bottom: .45rem; color: var(--accent); }

.ff-dropzone {
    position: relative; display: flex; gap: 1rem; align-items: center; padding: 1rem; border-radius: var(--ff-radius-sm);
    border: 1px dashed var(--ff-border-strong); background: var(--ff-surface); cursor: pointer;
}
.ff-dropzone:hover { border-color: var(--accent); }
.ff-dropzone input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.ff-dropzone img { width: 64px; height: 64px; object-fit: cover; border-radius: 10px; }

/* ---- Auth ------------------------------------------------------------------------------------------------ */

.ff-auth { min-height: 100vh; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); }
.ff-auth-form { display: flex; flex-direction: column; justify-content: center; padding: clamp(2rem, 6vw, 5rem); max-width: 560px; width: 100%; margin: 0 auto; }
.ff-auth-art { position: relative; overflow: hidden; border-left: 1px solid var(--ff-border); background: var(--ff-bg-2); display: flex; align-items: center; justify-content: center; padding: 3rem; }
.ff-auth-art .ff-aurora { opacity: .5; }
.ff-auth-art-inner { position: relative; z-index: 1; width: 100%; max-width: 440px; }

/* ---- Dashboard shell --------------------------------------------------------------------------------------- */

.ff-app { display: grid; grid-template-columns: 264px minmax(0, 1fr); min-height: 100vh; }
.ff-sidebar {
    position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; gap: 1.25rem; padding: 1.25rem 1rem;
    border-right: 1px solid var(--ff-border); background: var(--ff-bg-2); overflow-y: auto;
}
.ff-store-switch .dropdown-toggle {
    width: 100%; display: flex; align-items: center; gap: .7rem; text-align: left; padding: .6rem .7rem; border-radius: 14px;
    background: var(--ff-surface); border: 1px solid var(--ff-border); color: var(--ff-text);
}
.ff-store-switch .dropdown-toggle::after { margin-left: auto; }
.ff-store-dot { width: 32px; height: 32px; border-radius: 10px; flex: none; display: grid; place-items: center; color: #fff; font-weight: 800; font-size: .85rem; }
.ff-side-nav { display: flex; flex-direction: column; gap: .15rem; }
.ff-side-label { font-size: .68rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--ff-muted); padding: .9rem .75rem .35rem; }
.ff-side-link {
    display: flex; align-items: center; gap: .75rem; padding: .62rem .75rem; border-radius: 11px;
    color: var(--ff-text-2); font-weight: 500; font-size: .93rem; transition: background .15s, color .15s;
}
.ff-side-link svg { width: 18px; height: 18px; flex: none; opacity: .85; }
.ff-side-link:hover { color: var(--ff-text); background: var(--ff-surface-2); }
.ff-side-link.active { color: var(--ff-text); background: var(--ff-surface-2); box-shadow: inset 2px 0 0 var(--accent); }
.ff-side-link .badge { margin-left: auto; }
.ff-side-foot { margin-top: auto; padding-top: 1rem; border-top: 1px solid var(--ff-border); }
.ff-main { min-width: 0; }
.ff-topbar {
    position: sticky; top: 0; z-index: 1020; display: flex; align-items: center; gap: 1rem; padding: .9rem clamp(1rem, 3vw, 2rem);
    border-bottom: 1px solid var(--ff-border); background: color-mix(in srgb, var(--ff-bg) 80%, transparent); backdrop-filter: blur(16px);
}
.ff-content { padding: clamp(1.25rem, 3vw, 2.25rem) clamp(1rem, 3vw, 2rem) 4rem; max-width: 1400px; }
.ff-page-title { font-size: clamp(1.5rem, 2.4vw, 2rem); font-weight: 800; letter-spacing: -.035em; margin: 0; }
.ff-kpi { padding: 1.15rem 1.25rem; height: 100%; }
.ff-kpi-label { font-size: .78rem; font-weight: 600; color: var(--ff-muted); text-transform: uppercase; letter-spacing: .08em; }
.ff-kpi-value { font-size: clamp(1.6rem, 2.4vw, 2.1rem); font-weight: 800; letter-spacing: -.04em; margin-top: .35rem; line-height: 1.1; }
.ff-kpi-foot { font-size: .8rem; color: var(--ff-muted); margin-top: .35rem; }
.ff-trend { font-weight: 700; }
.ff-trend.up { color: var(--ff-down); }
.ff-trend.down { color: var(--ff-up); }
.ff-chart { width: 100%; height: 220px; display: block; }

.ff-table { --bs-table-bg: transparent; --bs-table-color: var(--ff-text); --bs-table-border-color: var(--ff-border); --bs-table-hover-bg: var(--ff-surface-2); margin: 0; }
.ff-table thead th { font-size: .74rem; text-transform: uppercase; letter-spacing: .08em; color: var(--ff-muted); font-weight: 700; border-bottom-width: 1px; padding: .8rem 1rem; white-space: nowrap; }
.ff-table td { padding: .85rem 1rem; vertical-align: middle; font-size: .92rem; }
.ff-table tbody tr:last-child td { border-bottom: 0; }

.ff-pill { display: inline-flex; align-items: center; gap: .35rem; padding: .25rem .65rem; border-radius: 999px; font-size: .74rem; font-weight: 700; letter-spacing: .02em; border: 1px solid transparent; white-space: nowrap; }
.ff-pill::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.ff-pill-live { color: var(--ff-down); background: rgba(46, 230, 160, .1); border-color: rgba(46, 230, 160, .25); }
.ff-pill-scheduled { color: #b9a4ff; background: rgba(139, 92, 246, .1); border-color: rgba(139, 92, 246, .25); }
.ff-pill-paused { color: var(--ff-amber); background: rgba(255, 159, 67, .1); border-color: rgba(255, 159, 67, .25); }
.ff-pill-soldout, .ff-pill-paid { color: #ff9fb2; background: rgba(255, 61, 113, .1); border-color: rgba(255, 61, 113, .25); }
.ff-pill-ended, .ff-pill-draft, .ff-pill-cancelled, .ff-pill-refunded { color: var(--ff-muted); background: var(--ff-surface-2); border-color: var(--ff-border); }
.ff-pill-fulfilled { color: var(--ff-down); background: rgba(46, 230, 160, .1); border-color: rgba(46, 230, 160, .25); }

.ff-checklist { display: grid; gap: .55rem; }
.ff-check { display: flex; align-items: center; gap: .9rem; padding: .85rem 1rem; border-radius: 14px; background: var(--ff-surface); border: 1px solid var(--ff-border); }
.ff-check-mark { width: 26px; height: 26px; border-radius: 50%; flex: none; display: grid; place-items: center; border: 2px solid var(--ff-border-strong); }
.ff-check.done .ff-check-mark { border: 0; background: var(--ff-down); color: #04150d; }
.ff-check.done .ff-check-mark svg { width: 14px; height: 14px; }
.ff-check.done strong { color: var(--ff-muted); text-decoration: line-through; }
.ff-progress-ring { --p: 0; width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; font-size: .95rem;
    background: conic-gradient(var(--accent) calc(var(--p) * 1%), var(--ff-surface-2) 0); position: relative; }
.ff-progress-ring::before { content: ""; position: absolute; inset: 6px; border-radius: 50%; background: var(--ff-bg); }
.ff-progress-ring span { position: relative; }
.ff-sticky { position: sticky; top: 88px; }
.ff-section-title { font-size: 1rem; font-weight: 700; letter-spacing: -.01em; margin: 0 0 1rem; display: flex; align-items: center; gap: .6rem; }
.ff-section-title .num { width: 24px; height: 24px; border-radius: 8px; display: grid; place-items: center; font-size: .75rem; background: var(--ff-surface-2); border: 1px solid var(--ff-border); color: var(--ff-text-2); }
.ff-empty { text-align: center; padding: clamp(2.5rem, 6vw, 4.5rem) 1.5rem; }
.ff-empty-icon { width: 64px; height: 64px; border-radius: 20px; margin: 0 auto 1.25rem; display: grid; place-items: center; background: var(--ff-grad-soft); border: 1px solid rgba(255, 61, 113, .25); color: #ff7a9a; }
.ff-empty-icon svg { width: 28px; height: 28px; }
.ff-preview-frame { border-radius: var(--ff-radius); overflow: hidden; border: 1px solid var(--ff-border); }
.dropdown-menu { --bs-dropdown-bg: var(--ff-surface-solid); --bs-dropdown-border-color: var(--ff-border-strong); --bs-dropdown-link-hover-bg: var(--ff-surface-2); --bs-dropdown-link-color: var(--ff-text); --bs-dropdown-link-active-bg: var(--accent); border-radius: 14px; padding: .4rem; box-shadow: 0 24px 60px -20px rgba(0, 0, 0, .7); }
.dropdown-item { border-radius: 9px; padding: .5rem .7rem; font-size: .92rem; }
.pagination { --bs-pagination-bg: var(--ff-surface); --bs-pagination-border-color: var(--ff-border); --bs-pagination-color: var(--ff-text-2); --bs-pagination-active-bg: var(--accent); --bs-pagination-active-border-color: var(--accent); --bs-pagination-hover-bg: var(--ff-surface-2); --bs-pagination-hover-color: var(--ff-text); --bs-pagination-disabled-bg: transparent; --bs-pagination-disabled-border-color: var(--ff-border); }

/* ---- Checkout -------------------------------------------------------------------------------------------- */

.ff-checkout { min-height: calc(100vh - 70px); display: grid; place-items: center; padding: 3rem 1rem; position: relative; overflow: hidden; }
.ff-checkout-card { width: 100%; max-width: 980px; display: grid; grid-template-columns: 1fr 1fr; overflow: hidden; }
.ff-checkout-media { position: relative; min-height: 320px; }
.ff-checkout-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ff-ring { position: relative; width: 92px; height: 92px; flex: none; }
.ff-ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.ff-ring circle { fill: none; stroke-width: 6; }
.ff-ring .track { stroke: var(--ff-surface-2); }
.ff-ring .bar { stroke: url(#ffRingGrad); stroke-linecap: round; transition: stroke-dashoffset 1s linear; }
.ff-ring-label { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; font-weight: 800; font-size: 1.05rem; line-height: 1.1; }
.ff-ring-label small { display: block; font-size: .62rem; letter-spacing: .1em; text-transform: uppercase; color: var(--ff-muted); font-weight: 700; }
.ff-ring.urgent .ff-ring-label { color: var(--ff-amber); }
.ff-receipt-row { display: flex; justify-content: space-between; padding: .55rem 0; font-size: .95rem; color: var(--ff-text-2); border-bottom: 1px dashed var(--ff-border); }
.ff-receipt-row:last-child { border-bottom: 0; }
.ff-receipt-row b { color: var(--ff-text); }
.ff-savings { display: inline-flex; align-items: center; gap: .5rem; padding: .45rem .9rem; border-radius: 999px; background: rgba(46, 230, 160, .1); color: var(--ff-down); font-weight: 700; font-size: .9rem; border: 1px solid rgba(46, 230, 160, .25); }
.ff-secure { display: flex; align-items: center; gap: .5rem; font-size: .8rem; color: var(--ff-muted); }
.ff-secure svg { width: 14px; height: 14px; }
.ff-confetti { position: fixed; inset: 0; pointer-events: none; z-index: 1100; }
.ff-fake-card { border-radius: 16px; padding: 1.25rem; aspect-ratio: 1.6; max-width: 340px; color: #fff; display: flex; flex-direction: column; justify-content: space-between;
    background: radial-gradient(120% 120% at 0% 0%, #ff3d71, transparent 60%), radial-gradient(120% 120% at 100% 100%, #8b5cf6, transparent 55%), #12131d;
    box-shadow: 0 30px 60px -20px rgba(255, 61, 113, .5); }

[data-bs-theme="dark"] .theme-moon, [data-bs-theme="light"] .theme-sun { display: none; }

/* ---- Responsive ------------------------------------------------------------------------------------------- */

@media (max-width: 1199.98px) {
    .ff-demo-board { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .ff-demo-board > :nth-child(3) { display: none; }
}
@media (max-width: 991.98px) {
    .ff-app { grid-template-columns: minmax(0, 1fr); }
    .ff-sidebar { position: fixed; inset: 0 auto 0 0; width: 280px; z-index: 1045; transform: translateX(-100%); transition: transform .25s ease; }
    .ff-app.nav-open .ff-sidebar { transform: none; box-shadow: 30px 0 80px rgba(0, 0, 0, .6); }
    .ff-auth { grid-template-columns: minmax(0, 1fr); }
    .ff-auth-art { display: none; }
    .ff-checkout-card { grid-template-columns: minmax(0, 1fr); }
    .ff-checkout-media { min-height: 220px; }
    .ff-how { grid-template-columns: minmax(0, 1fr); }
    .ff-sticky { position: static; }
}
@media (max-width: 575.98px) {
    .ff-demo-board { grid-template-columns: minmax(0, 1fr); }
    .ff-demo-board > :nth-child(2) { display: none; }
    .ff-choices-3 { grid-template-columns: minmax(0, 1fr); }
}
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
}
.flex-none { flex: none; }
.position-relative > .ff-code { padding-top: 2.6rem; }
