/*
 * gift.css — semantic component styles for the dark /gift/* purchase + claim journey
 * (feature 1024).
 *
 * Replaces the Tailwind Play CDN + inline `tailwind.config` brand ramp that _gift-shell.ftl
 * carried, and the inline BEM <style> blocks that buy.ftl / purchase-success.ftl carried.
 * Linked LAST in the gift shell chain
 *   tokens.css -> base.css -> components/primitives.css -> components/gift.css
 * with NO dashboard-theme.css and NO data-dashboard-theme attr: the gift journey is DARK, which
 * is the tokens.css :root default, so every color below resolves to a base dark token. No page
 * redesign — a like-for-like restyle. Zero hardcoded hex: the only literal colors are named
 * tokens declared in tokens.css.
 *
 * Token map (the retired inline tailwind.config ramp -> tokens; source hex lives in tokens.css):
 *   surface-dark -> --color-bg          card-inner -> --color-surface
 *   card-bg      -> --color-divider     accent     -> --color-accent
 *   text-body    -> --color-fg-muted    text-muted -> --color-fg-dim
 *   success      -> --color-success-emerald        error  -> --color-danger
 * Tailwind alpha utilities (bg-accent/10, border-white/5, bg-success/15 …) become color-mix()
 * over the mapped token; white/N alphas mix over --color-fg (white).
 *
 * The buy.ftl / purchase-success.ftl BEM was previously UNLAYERED
 * (inline <style>, so it beat everything); nothing else on those pages styles .gift-buy* /
 * .gift-success*, so moving it into @layer components reproduces the same computed cascade — the
 * byte-identical body render of those two goldens is the guard.
 */
@layer components.features {

/* ══════════════════════════════════════════════════════════════════════════════
 * _gift-shell consumer journey (landing, reveal, redeem, purchases, claim-success,
 * claim-error) — the dark centered-card pages.
 * ════════════════════════════════════════════════════════════════════════════ */

/* ── Shell ─────────────────────────────────────────────────────────────────── */
.gift-shell {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 48px 16px; /* py-12 px-4 */
    background: var(--color-bg);
    color: var(--color-fg);
    font-family: var(--font-family-sans);
    line-height: var(--line-height-body);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.gift-shell__inner {
    width: 100%;
    max-width: 28rem; /* max-w-md */
}

/* ── Wide opt-out (feature 1030) ───────────────────────────────────────────────
 * buy.ftl and purchase-success.ftl render through the same shell (one <head>, one version badge,
 * one ui-actions.js) but are the wide starfield design, not the 28rem centered card. `wide=true`
 * drops the shell's flex centering and width clamp; everything else about those two pages still
 * comes from their own `body:has(.gift-buy)` / `body:has(.gift-success)` blocks further down, which
 * outrank `.gift-shell` on specificity and so keep the starfield, padding and background unchanged.
 * Source order matters: these must follow `.gift-shell` / `.gift-shell__inner` to win the tie. */
.gift-shell--wide {
    /* Unset the whole centred-card box. The two wide pages already override .gift-shell's
     * background, colour, font and padding via their own higher-specificity body:has() rules, but
     * nothing there touches the flex box — so it is reset here rather than left to apply silently.
     * With this, both pages compute an identical box to their pre-shell render. */
    display: block;
    flex-direction: initial;
    align-items: initial;
    justify-content: initial;
}

.gift-shell__inner--wide {
    max-width: none;
}

/* ── Intro header ──────────────────────────────────────────────────────────── */
.gift-head {
    text-align: center;
    margin-bottom: 32px; /* mb-8 */
}

.gift-head--lg {
    margin-bottom: 40px; /* mb-10 */
}

.gift-head--sm {
    margin-bottom: 24px; /* mb-6 */
}

.gift-eyebrow {
    margin-bottom: var(--space-4);
}

.gift-eyebrow--gap {
    margin-bottom: var(--space-6);
}

.gift-title {
    font-size: var(--font-size-display); /* text-3xl ≈ 28-30px */
    font-weight: 700;
    margin: 0 0 12px;
}

.gift-title--sm {
    font-size: var(--font-size-display-sm); /* text-2xl */
}

.gift-lede {
    color: var(--color-fg-muted);
    font-size: var(--font-size-body);
    line-height: 1.625;
    margin: 0;
}

.gift-lede--dim {
    color: var(--color-fg-dim);
    font-size: var(--font-size-meta);
}

.gift-lede--gap {
    margin-bottom: 32px; /* mb-8 */
}

/* Inline text emphasis. */
.gift-em {
    color: var(--color-fg);
    font-weight: 500;
}

/* ── Card ──────────────────────────────────────────────────────────────────── */
.gift-card {
    background: var(--color-divider); /* card-bg */
    border: 1px solid color-mix(in srgb, var(--color-fg) 5%, transparent);
    border-radius: var(--radius-lg); /* rounded-2xl */
    padding: 24px; /* p-6 */
    margin-bottom: 24px; /* mb-6 default rhythm */
}

.gift-card:last-child {
    margin-bottom: 0;
}

.gift-card--lg {
    padding: 32px; /* p-8 */
}

.gift-card--sm {
    padding: 20px; /* p-5 */
}

.gift-card--tight {
    padding: 16px; /* p-4 */
    border-radius: var(--radius-md); /* rounded-xl */
}

.gift-card--center {
    text-align: center;
}

.gift-card--muted {
    background: color-mix(in srgb, var(--color-divider) 50%, transparent); /* bg-card-bg/50 */
}

.gift-card--gap-lg {
    margin-bottom: 32px; /* mb-8 */
}

.gift-card--flush {
    margin-bottom: 0;
}

.gift-card--mt {
    margin-top: 16px; /* mt-4 */
}

.gift-card--mt-lg {
    margin-top: 32px; /* mt-8 */
}

/* ── Buttons ───────────────────────────────────────────────────────────────── */
/* Buttons are the shared .btn primitives (components/primitives.css). Only the
   context margins the old gift button --mt/--mb modifiers carried are re-homed here. */
.gift-card .gift-input--share + .btn {
    margin-top: 12px; /* was the --mt modifier on reveal's Copy-code button */
}

.gift-card .btn + .gift-subnote {
    margin-top: 16px; /* was the --mb modifier on reveal's Redeem CTA above the subnote */
}

/* Accent copy button sitting inline beside a code input (py-3 px-4). */
.gift-copy {
    flex-shrink: 0;
    background: var(--color-accent);
    color: var(--color-bg);
    font-family: var(--font-family-sans);
    font-size: var(--font-size-meta);
    font-weight: 600;
    padding: 12px 16px;
    border: none;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: background-color var(--duration-base) ease;
}

.gift-copy:hover {
    background: color-mix(in srgb, var(--color-accent) 90%, var(--color-bg));
}

/* Text link + ghost link-button. */
.gift-link {
    display: inline-block;
    color: var(--color-accent);
    font-size: var(--font-size-meta);
    text-decoration: none;
    transition: color var(--duration-base) ease;
}

.gift-link:hover {
    color: color-mix(in srgb, var(--color-accent) 80%, transparent);
}

/* ── Inputs ────────────────────────────────────────────────────────────────── */

.gift-input--code {
    flex: 1;
    text-align: center;
    font-family: var(--font-family-mono);
    font-size: var(--font-size-display-sm); /* text-lg */
    letter-spacing: 0.1em; /* tracking-widest */
}

.gift-input--redeem {
    flex: 1;
    min-width: 180px;
    text-transform: uppercase;
    font-family: var(--font-family-mono);
    letter-spacing: 2px;
}

.gift-input--pin {
    text-align: center;
    font-family: var(--font-family-mono);
    font-size: var(--font-size-display-sm);
    letter-spacing: 8px;
}

.gift-input--share {
    font-size: var(--font-size-meta);
}

.gift-input--mb {
    margin-bottom: 16px; /* mb-4 */
}

/* ── Forms / fields (purchases email + pin) ────────────────────────────────── */
.gift-field {
    margin-bottom: 16px; /* mb-4 */
}

.gift-label {
    display: block;
    font-size: var(--font-size-meta);
    font-weight: 500;
    color: var(--color-fg-muted);
    margin-bottom: 6px; /* mb-1.5 */
}

.gift-label--dim {
    color: var(--color-fg-dim);
    font-weight: 400;
    margin-bottom: 8px; /* mb-2 */
}

.gift-hint {
    margin: 12px 0 0; /* mt-3 */
    font-size: var(--font-size-eyebrow);
    color: var(--color-fg-dim);
    text-align: center;
}

/* Redeem-code form on the landing page. */
.gift-redeem-form {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-3);
}

.gift-redeem-form__label {
    font-size: var(--font-size-meta);
    font-weight: 600;
    color: var(--color-fg-muted);
}

.gift-redeem-form__row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    width: 100%;
}

/* ── Definition rows (label : value) ───────────────────────────────────────── */
.gift-rows {
    display: flex;
    flex-direction: column;
    gap: 12px; /* space-y-3 */
}

.gift-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.gift-row__label {
    color: var(--color-fg-muted);
}

.gift-row__value {
    color: var(--color-fg);
    font-weight: 500;
}

.gift-row__value--code {
    color: var(--color-accent);
    font-weight: 400;
    font-family: var(--font-family-mono);
    letter-spacing: 2px;
}

/* ── "What's inside" kicker + bullet features ──────────────────────────────── */
.gift-kicker {
    font-family: var(--font-family-mono);
    font-size: var(--font-size-eyebrow);
    color: var(--color-fg-dim);
    text-transform: uppercase;
    letter-spacing: 0.05em; /* tracking-wider */
    margin: 0 0 12px;
}

.gift-features {
    display: flex;
    flex-direction: column;
    gap: 8px; /* space-y-2 */
}

.gift-feature {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    color: var(--color-fg-muted);
}

.gift-feature__dot {
    color: var(--color-accent);
}

/* Vertical stack (replaces space-y-3 wrappers). */
.gift-stack {
    /* column layout via .stack (base.css) */
    gap: var(--space-3);
}

.gift-stack--gap {
    margin-bottom: 24px; /* mb-6 */
}

.gift-stack--gap-lg {
    margin-bottom: 32px; /* mb-8 */
}

/* ── Bundle cards (landing) ────────────────────────────────────────────────── */
.gift-bundle-grid {
    margin-bottom: 32px; /* mb-8 */
    --grid-min: 13rem;
}

.gift-bundle {
    display: flex;
    flex-direction: column;
    background: var(--color-divider);
    border: 1px solid color-mix(in srgb, var(--color-fg) 5%, transparent);
    border-radius: var(--radius-lg);
    padding: 24px;
}

.gift-bundle__name {
    font-family: var(--font-family-mono);
    font-size: var(--font-size-eyebrow);
    color: var(--color-fg-dim);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin: 0 0 8px;
}

.gift-bundle__price {
    font-size: var(--font-size-display);
    font-weight: 700;
    margin: 0 0 4px;
}

.gift-bundle__tagline {
    font-size: var(--font-size-meta);
    color: var(--color-fg-dim);
    margin: 0 0 16px;
}

.gift-bundle__features {
    list-style: none;
    padding: 0;
    margin: 0 0 24px;
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
    flex: 1;
    color: var(--color-fg-muted);
    font-size: var(--font-size-meta);
}

.gift-bundle__feature {
    display: flex;
    align-items: flex-start;
    gap: var(--space-2);
}

.gift-bundle__dot {
    color: var(--color-accent);
}

/* ── Mixtape link cards (reveal, claim-success) ────────────────────────────── */
.gift-mixtape {
    display: block;
    background: var(--color-divider);
    border: 1px solid color-mix(in srgb, var(--color-fg) 5%, transparent);
    border-radius: var(--radius-lg);
    padding: 20px;
    text-decoration: none;
    transition: border-color var(--duration-base) ease;
}

.gift-mixtape:hover {
    border-color: color-mix(in srgb, var(--color-accent) 40%, transparent);
}

.gift-mixtape__kicker {
    font-family: var(--font-family-mono);
    font-size: var(--font-size-eyebrow);
    color: var(--color-fg-dim);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin: 0 0 4px;
}

.gift-mixtape__title {
    font-size: var(--font-size-display-sm);
    color: var(--color-fg);
    font-weight: 600;
    margin: 0;
}

/* ── reveal static-handoff CTA block ───────────────────────────────────────── */
.gift-cta-title {
    font-size: var(--font-size-display-sm);
    color: var(--color-fg);
    font-weight: 600;
    text-align: center;
    margin: 0 0 16px;
}

.gift-note {
    font-size: var(--font-size-meta);
    color: var(--color-warning);
    margin: 0 0 16px;
}

.gift-note--center {
    text-align: center;
}

.gift-subnote {
    font-size: var(--font-size-eyebrow);
    color: var(--color-fg-dim);
    text-align: center;
    margin: 0 0 16px;
}

.gift-subnote--flush {
    margin-bottom: 0;
}

.gift-code-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-3);
    margin-bottom: 16px;
}

.gift-badges {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-3);
    margin-bottom: 16px;
}

.gift-badge {
    display: inline-block;
}

.gift-badge-img {
    height: 48px;
    width: auto;
}

.gift-steps {
    list-style: decimal;
    list-style-position: inside;
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
    color: var(--color-fg-muted);
    font-size: var(--font-size-meta);
    margin: 0 0 16px;
    padding: 0;
}

/* ── reveal status cards (already-redeemed / expired) ──────────────────────── */
.gift-status-title {
    font-size: var(--font-size-display-sm);
    color: var(--color-fg);
    font-weight: 600;
    margin: 0 0 4px;
}

/* .gift-status-body — text via shared .u-text-meta-muted (base.css). */

/* Explanatory paragraph inside a card (mb-4 rhythm). */
.gift-prose {
    color: var(--color-fg-muted);
    font-size: var(--font-size-meta);
    margin: 0 0 16px;
}

.gift-secret-form {
    display: flex;
    flex-direction: column;
    gap: 16px; /* space-y-4 */
}

/* Quoted personal message (reveal, purchases). */
.gift-message {
    font-size: var(--font-size-display-sm);
    color: var(--color-fg);
    line-height: 1.625;
    font-style: italic;
    text-align: center;
    margin: 0;
}

.gift-quote {
    background: var(--color-surface);
    border-radius: var(--radius-sm);
    padding: 12px;
    margin-bottom: 12px;
}

.gift-quote__text {
    color: var(--color-fg-muted);
    font-size: var(--font-size-meta);
    font-style: italic;
    margin: 0;
}

/* ── claim-success banner + deep-link ──────────────────────────────────────── */
.gift-claimed-banner {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    padding: 8px 20px; /* py-2 px-5 */
    border-radius: var(--radius-pill);
    background: color-mix(in srgb, var(--color-success-emerald) 15%, transparent);
    border: 1px solid color-mix(in srgb, var(--color-success-emerald) 30%, transparent);
    margin-bottom: 24px;
}

.gift-claimed-banner__icon {
    color: var(--color-success-emerald);
    font-size: var(--font-size-display-sm);
}

.gift-claimed-banner__label {
    color: var(--color-success-emerald);
    font-weight: 600;
    font-size: var(--font-size-meta);
    letter-spacing: 0.025em;
}

.gift-deeplink-row {
    display: flex;
    align-items: center;
    gap: var(--space-2);
}

.gift-deeplink {
    flex: 1;
    font-size: var(--font-size-eyebrow);
    color: var(--color-accent);
    background: var(--color-surface);
    border-radius: var(--radius-sm);
    padding: 8px 12px;
    user-select: all;
    word-break: break-all;
}

.gift-mini {
    font-size: var(--font-size-eyebrow);
    color: var(--color-fg-dim);
    margin: 0 0 8px;
}

.gift-center {
    text-align: center;
    margin-top: 24px; /* mt-6 */
}

.gift-promo-text {
    color: var(--color-fg-muted);
    font-size: var(--font-size-meta);
    margin: 0 0 12px;
}

/* ── claim-error circle ────────────────────────────────────────────────────── */
.gift-error-circle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    border-radius: var(--radius-pill);
    background: var(--color-danger-tint);
    border: 1px solid color-mix(in srgb, var(--color-danger) 20%, transparent);
    margin-bottom: 24px;
}

.gift-error-circle__icon {
    color: var(--color-danger);
    font-size: var(--font-size-display-sm);
}

/* ── purchases rows + error banner ──────────────────────────── */

.gift-purchase__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
}

.gift-purchase__date {
    color: var(--color-fg-dim);
    font-size: var(--font-size-eyebrow);
    margin-bottom: 12px;
}

.gift-purchase__meta {
    display: flex;
    align-items: center;
    gap: var(--space-4);
    font-size: var(--font-size-eyebrow);
    color: var(--color-fg-dim);
    margin-bottom: 12px;
}

.gift-empty-text {
    color: var(--color-fg-muted);
    margin: 0 0 16px; /* mb-4 */
}

/* ══════════════════════════════════════════════════════════════════════════════
 * buy.ftl — anonymous gift purchase buyer page. Distinct starfield design (NOT the
 * centered dark card). Extracted verbatim from buy.ftl's former inline <style>; the
 * page-shell element rules are scoped via :has(.gift-buy) so the starfield never
 * leaks onto the _gift-shell centered-card pages that also link this sheet.
 * ════════════════════════════════════════════════════════════════════════════ */
html:has(.gift-buy) {
    background: var(--color-bg);
}

body:has(.gift-buy) {
    margin: 0;
    position: relative;
    min-height: 100vh;
    background: transparent;
    color: var(--color-fg);
    font-family: var(--font-family-sans);
    line-height: var(--line-height-body);
    padding: var(--space-7) var(--space-4) var(--space-8);
    overflow-x: hidden;
}

/* Outer-space backdrop — same star-field asset and fixed/cover treatment as home.css,
   so the black background always fills the viewport regardless of content height.
   One rule serves both the buy and success journeys (consolidation 2026-08-23). */
body:has(.gift-buy)::after,
body:has(.gift-success)::after {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -2;
    background: url("/static/img/star-field.png") center / cover no-repeat;
    pointer-events: none;
}

.gift-buy {
    max-width: var(--content-max-width);
    margin: 0 auto;
}

.gift-buy__panel {
    background: color-mix(in srgb, var(--color-bg-elevated) 70%, transparent);
    border: 1px solid var(--color-divider);
    border-radius: var(--radius-lg);
    padding: var(--space-6);
}

.gift-buy__title {
    font-size: var(--font-size-display);
    line-height: var(--line-height-display);
    margin: 0 0 var(--space-2);
}

.gift-buy__lede {
    color: var(--color-fg-muted);
    font-size: var(--font-size-body);
    margin: 0 0 var(--space-6);
}

/* "How it works" — three verb-first steps so a non-technical gift buyer knows what
   happens before they even reach the form. */
.gift-buy__steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: var(--space-3);
    margin: 0 0 var(--space-6);
    padding: 0;
    list-style: none;
}

.gift-buy__step {
    display: flex;
    flex-direction: column;
    gap: var(--space-1);
    --card-pad: var(--space-3);
}

.gift-buy__step-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    margin-bottom: 4px;
    border-radius: 50%;
    background: var(--color-accent);
    color: var(--color-bg);
    font-family: var(--font-family-mono);
    font-size: var(--font-size-micro);
    font-weight: 700;
}

.gift-buy__step-title {
    font-weight: 600;
    font-size: var(--font-size-body);
}

.gift-buy__step-text {
    color: var(--color-fg-muted);
    font-size: var(--font-size-meta);
}

.gift-buy__field {
    display: flex;
    flex-direction: column;
    gap: var(--space-1);
    margin-bottom: var(--space-4);
}

.gift-buy__label {
    font-family: var(--font-family-mono);
    font-size: var(--font-size-eyebrow);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--color-fg-muted);
}

.gift-buy__hint {
    color: var(--color-fg-dim);
    font-size: var(--font-size-meta);
    margin: 0;
}

/* Tier cards (replaces a plain <select>) — each shows the concrete amount of HD
   narration a tier buys (tourTimeCopy), not just a bare token count. */
.gift-buy__tiers {
    display: grid;
    gap: var(--space-2);
}

.gift-buy__tier {
    position: relative;
}

.gift-buy__tier-input {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
}

.gift-buy__tier-label {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-3);
    padding: var(--space-3) var(--space-4);
    border: 1px solid var(--color-divider);
    border-radius: var(--radius-md);
    background: var(--color-surface);
    cursor: pointer;
}

.gift-buy__tier-input:focus-visible + .gift-buy__tier-label {
    outline: var(--focus-ring);
    outline-offset: 2px;
}

.gift-buy__tier-input:checked + .gift-buy__tier-label {
    border-color: var(--color-accent);
    background: color-mix(in srgb, var(--color-accent) 12%, var(--color-surface));
}

.gift-buy__tier-meta {
    /* column layout via .stack (base.css) */
    gap: var(--space-0-5);
}

.gift-buy__tier-name {
    font-weight: 600;
}

.gift-buy__tier-badge {
    margin-left: var(--space-2);
}

.gift-buy__tier-hint {
    color: var(--color-fg-muted);
    font-size: var(--font-size-meta);
}

.gift-buy__tier-price {
    font-family: var(--font-family-mono);
    font-weight: 600;
    white-space: nowrap;
}

.gift-buy__foot {
    color: var(--color-fg-dim);
    font-size: var(--font-size-meta);
    text-align: center;
    margin-top: var(--space-4);
}

/* ══════════════════════════════════════════════════════════════════════════════
 * purchase-success.ftl — buyer confirmation, same starfield design as buy.ftl.
 * Extracted verbatim; page-shell scoped via :has(.gift-success).
 * ════════════════════════════════════════════════════════════════════════════ */
html:has(.gift-success) {
    background: var(--color-bg);
}

body:has(.gift-success) {
    margin: 0;
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    color: var(--color-fg);
    font-family: var(--font-family-sans);
    line-height: var(--line-height-body);
    padding: var(--space-6) var(--space-4);
    overflow-x: hidden;
}

.gift-success {
    max-width: 32rem;
    width: 100%;
    /* Feature 1030: the page now sits inside .gift-shell__inner--wide, so it centres itself rather
       than relying on being body's direct flex item. No-op before the shell adoption (auto margins
       on a flex item centre it identically). */
    margin-inline: auto;
    text-align: center;
    background: color-mix(in srgb, var(--color-bg-elevated) 70%, transparent);
    border: 1px solid var(--color-divider);
    border-radius: var(--radius-lg);
    padding: var(--space-6);
}

.gift-success__mark {
    font-size: 48px;
    margin-bottom: var(--space-4);
    animation: gift-success-pop 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

@media (prefers-reduced-motion: reduce) {
    .gift-success__mark {
        animation: none;
    }
}

@keyframes gift-success-pop {
    0% {
        transform: scale(0.5);
        opacity: 0;
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.gift-success__title {
    font-size: var(--font-size-display);
    line-height: var(--line-height-display);
    margin: 0 0 var(--space-3);
}

.gift-success__body {
    color: var(--color-fg-muted);
    font-size: var(--font-size-body);
    margin: 0 0 var(--space-5);
}

.gift-success__codes {
    list-style: none;
    padding: 0;
    margin: 0 0 var(--space-4);
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
}

.gift-success__card {
    background: var(--color-bg-elevated);
    border: 1px solid var(--color-divider);
    border-radius: var(--radius-md);
    padding: var(--space-4);
    color: var(--color-fg-body);
    font-size: var(--font-size-meta);
    text-align: left;
}

.gift-success__code-row {
    display: flex;
    gap: var(--space-2);
    align-items: stretch;
}

.gift-success__code {
    flex: 1;
    background: var(--color-surface);
    border: 1px solid var(--color-divider);
    border-radius: var(--radius-sm);
    color: var(--color-fg);
    font-family: var(--font-family-mono);
    font-size: var(--font-size-display-sm);
    letter-spacing: 0.18em;
    text-align: center;
    padding: var(--space-3);
}

.gift-success__copy {
    background: var(--color-accent);
    color: var(--color-bg);
    border: none;
    border-radius: var(--radius-sm);
    font-family: var(--font-family-sans);
    font-size: var(--font-size-body);
    font-weight: 600;
    padding: var(--space-3) var(--space-4);
    cursor: pointer;
}

.gift-success__preview {
    display: inline-block;
    margin-top: var(--space-2);
    color: var(--color-accent);
    text-decoration: none;
    font-weight: 500;
    font-size: var(--font-size-meta);
}

.gift-success__grant {
    list-style: none;
    padding: 0;
    margin: var(--space-2) 0 var(--space-5);
    color: var(--color-fg-body);
    font-size: var(--font-size-meta);
    text-align: left;
}

.gift-success__grant li {
    display: flex;
    gap: var(--space-2);
    margin-bottom: var(--space-1);
}

.gift-success__grant li::before {
    content: "\25CF";
    color: var(--color-accent);
}

.gift-success__link {
    display: inline-block;
    margin-top: var(--space-2);
    color: var(--color-fg-muted);
    text-decoration: none;
    font-weight: 500;
}

}
