/* Creator portal — the creator's side of the ugc payroll desk. Builds on base.css (--rf-*) and ugc.css (--ugc-*). */

:root {
  --p-topbar: 3.25rem;
  --p-drawer: min(20rem, 88vw);
  --p-content: 1120px;
  --p-press: scale(0.97);
}

html, body.portal { height: 100%; }
body.portal {
  margin: 0; background: var(--rf-bg); color: var(--rf-text);
  font-family: Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased; -webkit-tap-highlight-color: transparent;
}
.portal a { text-decoration: none; }
.portal .num { font-variant-numeric: tabular-nums; }
.portal .eyebrow-label { font-size: .6875rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--rf-text-muted); }
.portal .text-balance { text-wrap: balance; }
.portal .text-pretty { text-wrap: pretty; }
.portal .min-w-0 { min-width: 0; }

/* ---------- Buttons ---------- */
.p-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .45rem;
  min-height: 2.5rem; padding: .55rem 1rem; border-radius: var(--rf-radius-sm); border: 1px solid transparent;
  font-weight: 600; font-size: .9rem; line-height: 1.1; cursor: pointer; white-space: nowrap;
  transition: background-color 150ms, border-color 150ms, color 150ms, transform 120ms var(--ugc-ease);
}
.p-btn:active { transform: var(--p-press); }
.p-btn:focus-visible { outline: 0; box-shadow: var(--rf-shadow-focus); }
.p-btn[disabled], .p-btn.disabled { opacity: .5; pointer-events: none; }
.p-btn.primary { background: var(--rf-indigo-600); color: #fff; }
.p-btn.ink { background: var(--rf-ink-900); color: #fff; }
.p-btn.quiet { background: #fff; color: var(--rf-text); box-shadow: var(--ugc-lift); }
.p-btn.ghost { background: transparent; color: var(--rf-text-soft); }
.p-btn.lg { min-height: 3.25rem; padding: .8rem 1.4rem; font-size: 1rem; border-radius: var(--rf-radius); }
.p-btn.block { width: 100%; }
.p-btn.sm { min-height: 2rem; padding: .3rem .75rem; font-size: .82rem; }
.p-btn.google { background: #fff; color: var(--rf-ink-800); box-shadow: var(--ugc-lift); }
.p-btn.google svg { width: 1.15rem; height: 1.15rem; flex: none; }

/* ---------- Shell ---------- */
.p-shell { display: flex; min-height: 100vh; min-height: 100svh; }
.p-side {
  position: fixed; inset: 0 auto 0 0; width: var(--rf-sidebar-width); z-index: 1040;
  display: flex; flex-direction: column; padding: 1rem .75rem;
  background: var(--rf-bg); border-right: 1px solid var(--ugc-ledger-line);
  overflow-y: auto;
}
.p-brand { display: flex; align-items: center; gap: .6rem; padding: .35rem .6rem 1.1rem; font-weight: 700; font-size: 1rem; letter-spacing: -.01em; color: var(--rf-text); }
.p-brand img { width: 1.75rem; height: 1.75rem; border-radius: .5rem; }
.p-nav { display: flex; flex-direction: column; gap: .1rem; }
.p-nav a {
  display: flex; align-items: center; gap: .7rem; min-height: 2.5rem; padding: .45rem .7rem; border-radius: var(--rf-radius-sm);
  color: var(--rf-text-soft); font-weight: 500; font-size: .9rem; transition: background-color 120ms, color 120ms;
}
.p-nav a i { font-size: 1.05rem; width: 1.1rem; text-align: center; color: var(--rf-ink-400); transition: color 120ms; }
.p-nav a.active { background: #fff; color: var(--rf-text); box-shadow: var(--ugc-lift); }
.p-nav a.active i { color: var(--rf-indigo-600); }
.p-nav .p-count { margin-left: auto; min-width: 1.25rem; padding: 0 .4rem; border-radius: var(--rf-radius-pill); background: var(--rf-indigo-600); color: #fff; font-size: .7rem; font-weight: 600; line-height: 1.25rem; text-align: center; }
.p-nav .logo { width: 1.25rem; height: 1.25rem; border-radius: .35rem; object-fit: cover; flex: none; background: var(--rf-ink-100); }
.p-nav-label { padding: 1.1rem .7rem .4rem; }
.p-side-foot { margin-top: auto; padding-top: 1rem; display: flex; flex-direction: column; gap: .5rem; }
.p-me { display: flex; align-items: center; gap: .65rem; padding: .55rem .6rem; border-radius: var(--rf-radius); background: #fff; box-shadow: var(--ugc-lift); }
.p-me .who-name { font-weight: 600; font-size: .85rem; line-height: 1.2; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.p-me .who-mail { font-size: .75rem; color: var(--rf-text-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.p-avatar {
  width: 2rem; height: 2rem; border-radius: 50%; flex: none; display: grid; place-items: center; overflow: hidden;
  background: var(--rf-indigo-50); color: var(--rf-indigo-700); font-weight: 700; font-size: .85rem;
}
.p-avatar img { width: 100%; height: 100%; object-fit: cover; outline: 1px solid rgba(0,0,0,.08); outline-offset: -1px; border-radius: 50%; }
.p-guest { padding: .9rem; border-radius: var(--rf-radius); background: #fff; box-shadow: var(--ugc-lift); }
.p-guest p { font-size: .8rem; color: var(--rf-text-muted); margin: 0 0 .7rem; text-wrap: pretty; }

.p-main { flex: 1; min-width: 0; margin-left: var(--rf-sidebar-width); }
.p-wrap { max-width: var(--p-content); margin: 0 auto; padding: 2rem 2rem 4rem; }
.p-topbar { display: none; }
.p-overlay { display: none; }

@media (max-width: 767.98px) {
  .p-shell { flex-direction: column; }
  .p-topbar {
    display: flex; align-items: center; gap: .6rem; position: sticky; top: 0; z-index: 1030;
    height: calc(var(--p-topbar) + env(safe-area-inset-top)); padding: env(safe-area-inset-top) .75rem 0;
    background: rgba(250, 250, 251, .92); backdrop-filter: saturate(1.4) blur(10px); -webkit-backdrop-filter: saturate(1.4) blur(10px);
    border-bottom: 1px solid var(--ugc-ledger-line);
  }
  .p-topbar .p-brand { padding: 0; font-size: .95rem; }
  .p-topbar .p-brand img { width: 1.5rem; height: 1.5rem; }
  .p-menu-btn { width: 2.5rem; height: 2.5rem; display: grid; place-items: center; border: 0; background: transparent; border-radius: var(--rf-radius-sm); font-size: 1.35rem; color: var(--rf-text); }
  .p-menu-btn:active { background: var(--rf-ink-100); }
  .p-topbar .ms-auto .p-btn { min-height: 2.25rem; padding: .4rem .8rem; font-size: .85rem; }
  .p-side { width: var(--p-drawer); transform: translateX(-100%); transition: transform 240ms var(--ugc-ease); background: #fff; padding-top: calc(1rem + env(safe-area-inset-top)); box-shadow: none; }
  .p-shell.nav-open .p-side { transform: none; box-shadow: var(--rf-shadow-lg); }
  .p-overlay { display: block; position: fixed; inset: 0; z-index: 1035; background: rgba(11, 13, 18, .35); opacity: 0; pointer-events: none; transition: opacity 200ms; }
  .p-shell.nav-open .p-overlay { opacity: 1; pointer-events: auto; }
  .p-main { margin-left: 0; }
  .p-wrap { padding: 1.25rem 1rem calc(3rem + env(safe-area-inset-bottom)); }
}
@media (prefers-reduced-motion: reduce) { .p-side, .p-overlay { transition: none; } }

/* ---------- Page header ---------- */
.p-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.5rem; }
.p-head h1 { font-size: 1.6rem; font-weight: 700; letter-spacing: -.025em; margin: 0; text-wrap: balance; }
.p-head .sub { color: var(--rf-text-muted); font-size: .925rem; margin: .25rem 0 0; text-wrap: pretty; }
.p-section-title { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; margin: 2.25rem 0 .9rem; }
.p-section-title h2 { font-size: 1.05rem; font-weight: 650; letter-spacing: -.01em; margin: 0; }
.p-section-title .hint { font-size: .82rem; color: var(--rf-text-muted); }

.p-messages .alert { border-radius: var(--rf-radius); border: 0; box-shadow: var(--ugc-lift); font-size: .9rem; }

/* ---------- Stamps (application status) ---------- */
.stamp.review { color: var(--ugc-pending); background: var(--ugc-pending-bg); }
.stamp.changes { color: var(--ugc-pending); background: var(--ugc-pending-bg); border-style: dashed; }
.stamp.joined { color: var(--ugc-paid); background: var(--ugc-paid-bg); }
.stamp.rejected { color: var(--rf-ink-500); background: var(--rf-ink-100); }
.stamp.closed { color: var(--rf-ink-400); border-style: dashed; }

/* ---------- Earnings strip (home + content) ---------- */
.p-earnings { display: grid; grid-template-columns: minmax(0, 1.3fr) repeat(2, minmax(0, 1fr)) auto; align-items: stretch; }
.p-earnings > div { padding: 1.1rem 1.25rem; min-width: 0; }
.p-earnings > div + div { border-left: 1px solid var(--ugc-ledger-line); }
.p-earnings .v { font-size: 1.35rem; font-weight: 700; letter-spacing: -.02em; font-variant-numeric: tabular-nums; color: var(--ugc-money); margin-top: .2rem; }
.p-earnings .v.big { font-size: 1.9rem; letter-spacing: -.03em; line-height: 1.1; }
.p-earnings .sub { font-size: .75rem; color: var(--rf-text-muted); margin-top: .15rem; }
.p-earnings .act { display: flex; align-items: center; gap: .5rem; }
@media (max-width: 767.98px) {
  .p-earnings { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .p-earnings > div:first-child { grid-column: 1 / -1; }
  .p-earnings > div:nth-child(2) { border-left: 0; border-top: 1px solid var(--ugc-ledger-line); }
  .p-earnings > div:nth-child(3) { border-top: 1px solid var(--ugc-ledger-line); }
  .p-earnings > .act { grid-column: 1 / -1; border-left: 0 !important; border-top: 1px solid var(--ugc-ledger-line); }
  .p-earnings > .act .p-btn { flex: 1; }
}

/* ---------- First steps ---------- */
.p-steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.p-steps button.s { border: 0; background: none; text-align: left; font: inherit; width: 100%; }
.p-steps .s { display: flex; gap: .75rem; padding: 1rem 1.25rem; align-items: flex-start; color: inherit; min-width: 0; }
.p-steps .s + .s { border-left: 1px solid var(--ugc-ledger-line); }
.p-steps .tick { width: 1.5rem; height: 1.5rem; border-radius: 50%; flex: none; display: grid; place-items: center; font-size: .8rem; border: 1.5px dashed var(--rf-ink-300); color: transparent; }
.p-steps .s.locked { opacity: .5; cursor: not-allowed; }
.p-steps .s.locked .tick { border-style: solid; color: var(--rf-ink-400); font-size: .65rem; }
.p-steps .s.done .tick { border: 0; background: var(--ugc-paid-bg); color: var(--ugc-paid); }
.p-steps .s.current { background: var(--rf-indigo-50); }
.p-steps .s.current .tick {
  border-style: solid; border-color: var(--rf-indigo-600); background: var(--rf-indigo-600); color: #fff;
  animation: stepPulse 1.6s ease-in-out 2;
}
.p-steps .t { font-weight: 600; font-size: .875rem; display: flex; flex-wrap: wrap; align-items: center; gap: .4rem; }
.p-steps .step-now {
  font-size: .65rem; font-weight: 700; letter-spacing: .02em; text-transform: uppercase;
  padding: .15rem .45rem; border-radius: var(--rf-radius-pill); background: var(--rf-indigo-600); color: #fff;
}
.p-steps .s.done .t { color: var(--rf-text-muted); text-decoration: line-through; text-decoration-color: var(--rf-ink-300); }
.p-steps .s.done .step-now { display: none; }
.p-steps .d { font-size: .78rem; color: var(--rf-text-muted); }
.p-steps .s.current .d { color: var(--rf-indigo-800); }
@keyframes stepPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(79, 70, 229, .35); }
  50% { box-shadow: 0 0 0 6px rgba(79, 70, 229, 0); }
}
@media (prefers-reduced-motion: reduce) {
  .p-steps .s.current .tick { animation: none; }
}
.p-steps-meter { display: flex; gap: 3px; width: 4.5rem; }
.p-steps-meter i { flex: 1; height: 4px; border-radius: 2px; background: var(--rf-ink-200); }
.p-steps-meter i.on { background: var(--rf-indigo-600); }
@media (max-width: 767.98px) {
  .p-steps { grid-template-columns: 1fr; }
  .p-steps .s + .s { border-left: 0; border-top: 1px solid var(--ugc-ledger-line); }
}

/* ---------- Campaign cards ---------- */
.c-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(17rem, 1fr)); gap: 1rem; }
.c-card {
  display: flex; flex-direction: column; gap: 1rem; padding: 1.15rem; color: inherit; height: 100%;
  background: #fff; border-radius: var(--rf-radius-lg); box-shadow: var(--ugc-lift);
  transition: box-shadow 180ms var(--ugc-ease), transform 180ms var(--ugc-ease);
}
.c-card:active { transform: var(--p-press); }
.c-logo { width: 3rem; height: 3rem; border-radius: .8rem; flex: none; object-fit: cover; background: var(--rf-ink-100); outline: 1px solid rgba(0,0,0,.06); outline-offset: -1px; display: grid; place-items: center; font-weight: 700; color: var(--rf-ink-500); }
.c-logo.lg { width: 4.25rem; height: 4.25rem; border-radius: 1.1rem; font-size: 1.4rem; }
.c-card .name { font-weight: 650; font-size: 1rem; letter-spacing: -.01em; line-height: 1.25; }
.c-card .tag { font-size: .83rem; color: var(--rf-text-muted); line-height: 1.4; text-wrap: pretty; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.c-rate { display: flex; align-items: baseline; gap: .35rem; flex-wrap: wrap; margin-top: auto; padding-top: .9rem; border-top: 1px solid var(--ugc-ledger-line); }
.c-rate .big { font-size: 1.25rem; font-weight: 700; letter-spacing: -.02em; font-variant-numeric: tabular-nums; color: var(--ugc-money); }
.c-rate .per { font-size: .78rem; color: var(--rf-text-muted); }
.c-rate .plus { font-size: .85rem; font-weight: 600; color: var(--rf-indigo-700); font-variant-numeric: tabular-nums; }

/* ---------- Campaign page ---------- */
.c-hero { display: flex; gap: 1.1rem; align-items: center; margin-bottom: 1.25rem; }
.c-hero h1 { font-size: 1.75rem; font-weight: 700; letter-spacing: -.03em; margin: 0; line-height: 1.15; text-wrap: balance; }
.c-hero .tag { color: var(--rf-text-muted); margin: .25rem 0 0; font-size: .95rem; text-wrap: pretty; }
.c-tabs { display: flex; gap: .25rem; box-shadow: inset 0 -1px 0 var(--rf-border); margin: 1.75rem 0 1.5rem; }
.c-tabs a { display: inline-flex; align-items: center; gap: .45rem; padding: .65rem .85rem; color: var(--rf-text-soft); font-weight: 500; font-size: .9rem; border-bottom: 2px solid transparent; transition: color 150ms, border-color 150ms; }
.c-tabs a.active { color: var(--rf-indigo-700); border-bottom-color: var(--rf-indigo-600); }
.c-tabs .n { font-size: .72rem; font-weight: 600; color: var(--rf-text-muted); font-variant-numeric: tabular-nums; }

.tracker { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--ugc-ledger-line); }
.tracker .payrun-step .detail { min-height: 0; text-wrap: pretty; }
.tracker .payrun-step:first-child { border-bottom-left-radius: var(--rf-radius-lg); }
.tracker .payrun-step:last-child { border-bottom-right-radius: var(--rf-radius-lg); }
.tracker-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; padding: 1rem 1.25rem; }
.tracker-head .t { font-weight: 650; font-size: .95rem; }
.tracker-head .d { font-size: .82rem; color: var(--rf-text-muted); margin-top: .1rem; text-wrap: pretty; }
.review-note { margin: 0 1.25rem 1rem; padding: .75rem .9rem; border-radius: var(--rf-radius-sm); background: var(--ugc-pending-bg); color: #7C4A03; font-size: .85rem; text-wrap: pretty; }
.review-note.muted { background: var(--rf-ink-50); color: var(--rf-text-soft); }
@media (max-width: 767.98px) {
  .tracker { grid-template-columns: 1fr; }
  .tracker .payrun-step + .payrun-step { border-left: 0; border-top: 1px solid var(--ugc-ledger-line); }
}

.c-layout { display: grid; grid-template-columns: minmax(0, 1fr) 22rem; gap: 2rem; align-items: start; }
.c-aside { position: sticky; top: 1.5rem; display: flex; flex-direction: column; gap: 1rem; }
@media (max-width: 991.98px) { .c-layout { grid-template-columns: 1fr; } .c-aside { position: static; } }

.c-about { font-size: .95rem; line-height: 1.6; color: var(--rf-text-soft); text-wrap: pretty; }
.c-about p:last-child { margin-bottom: 0; }

.how { list-style: none; padding: 0; margin: 0; counter-reset: how; }
.how li { display: grid; grid-template-columns: 2.25rem minmax(0, 1fr); gap: .9rem; padding: .9rem 0; }
.how li + li { border-top: 1px solid var(--ugc-ledger-line); }
.how .ic { width: 2.25rem; height: 2.25rem; border-radius: .65rem; display: grid; place-items: center; background: var(--rf-indigo-50); color: var(--rf-indigo-700); font-size: 1.05rem; }
.how .t { font-weight: 600; font-size: .92rem; }
.how .d { font-size: .85rem; color: var(--rf-text-muted); text-wrap: pretty; margin-top: .1rem; }

.rules { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .75rem; }
.rules .r { padding: .9rem 1rem; border-radius: var(--rf-radius); background: #fff; box-shadow: var(--ugc-lift); }
.rules .r .t { font-size: .7rem; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: var(--rf-text); }
.rules .r .d { font-size: .85rem; color: var(--rf-text-muted); margin-top: .25rem; text-wrap: pretty; }
@media (max-width: 575.98px) { .rules { grid-template-columns: 1fr; } }

/* Earnings calculator: the dark stub from the plan editor, with a curve */
.calc { border-radius: var(--rf-radius-lg); background: var(--rf-ink-900); color: #fff; padding: 1.25rem; }
.calc .eyebrow-label { color: rgba(255, 255, 255, .55); }
.calc .out { font-size: 2.4rem; font-weight: 700; letter-spacing: -.035em; font-variant-numeric: tabular-nums; line-height: 1.05; }
.calc .at { font-size: .85rem; color: rgba(255, 255, 255, .7); font-variant-numeric: tabular-nums; }
.calc .plot { position: relative; margin: 1rem 0 .5rem 2.4rem; cursor: crosshair; touch-action: pan-y; user-select: none; -webkit-user-select: none; -webkit-tap-highlight-color: transparent; border-radius: var(--rf-radius-sm); }
.calc .plot:focus { outline: none; }
.calc .plot:focus-visible { outline: 2px solid var(--rf-indigo-300); outline-offset: 4px; }
.calc .y-axis { position: absolute; right: calc(100% + .5rem); top: 0; bottom: 0; display: flex; flex-direction: column; justify-content: space-between; align-items: flex-end; font-size: .7rem; color: rgba(255, 255, 255, .45); font-variant-numeric: tabular-nums; line-height: 1; }
.calc .y-axis span:first-child { transform: translateY(-50%); }
.calc .y-axis span:last-child { transform: translateY(50%); }
.calc svg { display: block; width: 100%; height: 7.5rem; overflow: visible; }
.calc .curve { fill: none; stroke: var(--rf-indigo-300); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.calc .area { fill: url(#calcFill); }
.calc-dot { position: absolute; left: 0; top: 100%; width: 12px; height: 12px; border-radius: 50%; background: #fff; border: 3px solid var(--rf-indigo-400); transform: translate(-50%, -50%); pointer-events: none; }
.calc .guide { stroke: rgba(255, 255, 255, .18); stroke-dasharray: 3 4; }
.calc .hint { font-size: .8rem; color: rgba(255, 255, 255, .65); margin-top: .35rem; }
.calc .hint-touch { display: none; }
.acct-dm { display: flex; gap: .75rem; padding: .85rem 1rem; border-radius: var(--rf-radius-sm); background: var(--rf-indigo-50); font-size: .85rem; }
.acct-dm > .bi { color: var(--rf-indigo-600); font-size: 1.05rem; line-height: 1.3; flex: none; }
.acct-dm .t { font-weight: 600; color: var(--rf-text); margin-bottom: .15rem; }
.acct-dm p { margin: 0; color: var(--rf-text-soft); line-height: 1.45; }
.acct-dm .links { display: flex; gap: 1rem; margin-top: .5rem; }
.acct-dm .links a { color: var(--rf-indigo-600); font-weight: 600; text-decoration: none; }
@media (hover: none), (pointer: coarse) {
  .calc .hint-fine { display: none; }
  .calc .hint-touch { display: inline; }
}
.calc .why { font-size: .8rem; color: rgba(255, 255, 255, .65); margin-top: .6rem; text-wrap: pretty; }
.calc .scale { position: relative; height: 1rem; margin: .2rem 0 0 2.4rem; font-size: .7rem; color: rgba(255, 255, 255, .45); font-variant-numeric: tabular-nums; }
.calc .scale span { position: absolute; transform: translateX(-50%); white-space: nowrap; }
.calc .scale span:first-child { transform: none; }
.calc .scale span:last-child { transform: translateX(-100%); }

.terms-list { list-style: none; padding: 0; margin: 0; font-size: .84rem; color: var(--rf-text-soft); }
.terms-list li { position: relative; padding-left: 1.1rem; margin-bottom: .45rem; text-wrap: pretty; }
.terms-list li::before { content: ""; position: absolute; left: .2rem; top: .55em; width: 5px; height: 5px; border-radius: 50%; background: var(--rf-ink-300); }

/* ---------- Formats ---------- */
.f-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(10.5rem, 1fr)); gap: 1.25rem 1rem; }
.f-tile { display: flex; flex-direction: column; gap: .55rem; color: inherit; }
.f-frame { position: relative; aspect-ratio: 9 / 16; border-radius: var(--rf-radius); overflow: hidden; background: var(--rf-ink-900); box-shadow: var(--ugc-lift); }
.f-frame video, .f-frame img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.f-frame::after { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 0 0 1px rgba(255,255,255,.08); pointer-events: none; }
.f-frame .badges { position: absolute; top: .5rem; left: .5rem; right: .5rem; display: flex; gap: .3rem; z-index: 1; }
.f-badge { font-size: .68rem; font-weight: 700; padding: .2rem .45rem; border-radius: var(--rf-radius-pill); background: rgba(11, 13, 18, .55); color: #fff; backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); letter-spacing: .01em; }
.f-badge.hot { background: rgba(255, 90, 95, .92); }
.f-frame .views { position: absolute; left: .55rem; bottom: .5rem; z-index: 1; font-size: .72rem; font-weight: 600; color: #fff; text-shadow: 0 1px 2px rgba(0,0,0,.5); font-variant-numeric: tabular-nums; }
.f-frame .empty { position: absolute; inset: 0; display: grid; place-items: center; color: rgba(255,255,255,.4); font-size: 2rem; }
.f-tile .title { font-weight: 600; font-size: .86rem; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; text-wrap: pretty; }

.f-detail { display: grid; grid-template-columns: minmax(0, 22rem) minmax(0, 1fr); gap: 2.25rem; align-items: start; }
.f-player { position: sticky; top: 1.5rem; }
.f-player .f-frame { border-radius: var(--rf-radius-lg); }
.f-detail h1 { font-size: 1.75rem; font-weight: 700; letter-spacing: -.03em; line-height: 1.15; margin: .5rem 0 .6rem; text-wrap: balance; }
.f-brief { font-size: .95rem; color: var(--rf-text-soft); line-height: 1.55; text-wrap: pretty; }
.f-platforms { display: inline-flex; align-items: center; gap: .45rem; font-size: .8rem; color: var(--rf-text-muted); }
.f-platforms i { font-size: .95rem; color: var(--rf-text); }
.pay-table { width: 100%; font-size: .9rem; }
.pay-table td { padding: .7rem 1.25rem; border-top: 1px solid var(--ugc-ledger-line); }
.pay-table tr:first-child td { border-top: 0; }
.pay-table td:last-child { text-align: right; font-weight: 650; font-variant-numeric: tabular-nums; color: var(--ugc-money); }
.cap-box { display: flex; align-items: center; gap: .75rem; padding: .85rem 1rem; border-radius: var(--rf-radius); background: var(--rf-ink-50); font-size: .85rem; color: var(--rf-text-soft); }
.cap-box .meter { display: flex; gap: 3px; }
.cap-box .meter i { width: 1.1rem; height: 6px; border-radius: 3px; background: var(--rf-ink-200); }
.gate { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; padding: 1rem 1.1rem; border-radius: var(--rf-radius); background: var(--rf-indigo-50); color: var(--rf-indigo-800); font-size: .9rem; text-decoration: none; }
button.gate { cursor: pointer; font: inherit; text-align: inherit; }
.gate.ok { background: var(--ugc-paid-bg); color: #065F46; }
.script { list-style: none; padding: 0; margin: 0; counter-reset: shot; }
.script li { position: relative; padding: 1rem 1.25rem 1rem 3.4rem; counter-increment: shot; }
.script li + li { border-top: 1px solid var(--ugc-ledger-line); }
.script li::before {
  content: counter(shot); position: absolute; left: 1.25rem; top: 1rem; width: 1.5rem; height: 1.5rem; border-radius: 50%;
  display: grid; place-items: center; background: var(--rf-ink-900); color: #fff; font-size: .72rem; font-weight: 700; font-variant-numeric: tabular-nums;
}
.script .t { font-weight: 600; font-size: .9rem; margin-bottom: .25rem; }
.script .b { font-size: .87rem; color: var(--rf-text-soft); white-space: pre-line; text-wrap: pretty; line-height: 1.55; }
.assets { list-style: none; padding: 0; margin: 0; }
.assets li { display: flex; align-items: center; gap: .75rem; padding: .7rem 1.25rem; }
.assets li + li { border-top: 1px solid var(--ugc-ledger-line); }
.assets .thumb { width: 2.5rem; height: 2.5rem; border-radius: .5rem; object-fit: cover; background: var(--rf-ink-100); flex: none; display: grid; place-items: center; color: var(--rf-ink-400); }
@media (max-width: 767.98px) {
  .f-detail { grid-template-columns: 1fr; gap: 1.25rem; }
  .f-player { position: static; max-width: 18rem; margin: 0 auto; width: 100%; }
}

/* ---------- Apply modal ---------- */
.apply-modal .modal-dialog { max-width: 27rem; }
.apply-modal .modal-content { border: 0; border-radius: var(--rf-radius-xl); overflow: hidden; box-shadow: var(--rf-shadow-lg); }
.apply-modal .bar { display: flex; align-items: center; justify-content: space-between; padding: .75rem .75rem 0; }
.apply-modal .bar .icon-btn { width: 2.25rem; height: 2.25rem; display: grid; place-items: center; border: 0; background: transparent; border-radius: 50%; color: var(--rf-text-soft); font-size: 1.1rem; }
.apply-modal .dashes { display: flex; gap: 4px; }
.apply-modal .dashes i { width: 1.25rem; height: 4px; border-radius: 2px; background: var(--rf-ink-200); transition: background-color 200ms; }
.apply-modal .dashes i.on { background: var(--rf-indigo-600); }
.apply-step { display: none; padding: .5rem 1.75rem 1.75rem; }
.apply-step.active { display: block; animation: stepIn 260ms var(--ugc-ease); }
@keyframes stepIn { from { opacity: 0; transform: translateX(10px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .apply-step.active { animation: none; } }
.apply-step h3 { font-size: 1.35rem; font-weight: 700; letter-spacing: -.025em; margin: 1.1rem 0 .4rem; text-wrap: balance; }
.apply-step p { font-size: .9rem; color: var(--rf-text-muted); text-wrap: pretty; }
.apply-art { height: 9.5rem; border-radius: var(--rf-radius-lg); background: var(--rf-indigo-50); position: relative; overflow: hidden; display: grid; place-items: center; }
.apply-art .disc { width: 4.5rem; height: 4.5rem; border-radius: 1.25rem; background: #fff; display: grid; place-items: center; font-size: 2rem; color: var(--rf-indigo-600); box-shadow: var(--ugc-lift), 0 12px 28px rgba(79, 70, 229, .18); }
.apply-art .ring { position: absolute; border-radius: 50%; border: 1.5px dashed var(--rf-indigo-200); }
.apply-art .chip-float { position: absolute; font-size: .72rem; font-weight: 700; padding: .25rem .55rem; border-radius: var(--rf-radius-pill); background: #fff; box-shadow: var(--ugc-lift); color: var(--rf-ink-800); font-variant-numeric: tabular-nums; }
.apply-pill { display: inline-flex; align-items: center; gap: .35rem; font-size: .75rem; font-weight: 600; padding: .25rem .6rem; border-radius: var(--rf-radius-pill); background: var(--rf-indigo-50); color: var(--rf-indigo-700); }
.apply-fact { display: flex; gap: .75rem; padding: .8rem .9rem; border-radius: var(--rf-radius); background: var(--rf-ink-50); font-size: .85rem; margin: 1rem 0 1.25rem; }
.apply-fact i { color: var(--rf-indigo-600); font-size: 1.05rem; }
.apply-fact .t { font-weight: 600; color: var(--rf-text); }
.apply-fact .d { color: var(--rf-text-muted); }
.drop {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .4rem; text-align: center;
  min-height: 11rem; padding: 1.25rem; border-radius: var(--rf-radius-lg); border: 1.5px dashed var(--rf-ink-300); background: var(--rf-ink-50);
  cursor: pointer; transition: border-color 150ms, background-color 150ms;
}
.drop.over { border-color: var(--rf-indigo-400); background: var(--rf-indigo-50); }
.drop i { font-size: 1.6rem; color: var(--rf-indigo-600); }
.drop .t { font-weight: 600; font-size: .9rem; }
.drop .d { font-size: .78rem; color: var(--rf-text-muted); }
.drop video { width: 100%; max-height: 14rem; border-radius: var(--rf-radius); background: #000; }
.timeline { list-style: none; padding: 0; margin: 1.25rem 0; }
.timeline li { position: relative; display: grid; grid-template-columns: 1.6rem minmax(0, 1fr); gap: .75rem; padding-bottom: 1rem; }
.timeline li:last-child { padding-bottom: 0; }
.timeline li::before { content: ""; position: absolute; left: .78rem; top: 1.7rem; bottom: .1rem; width: 1.5px; background: var(--rf-ink-200); }
.timeline li:last-child::before { display: none; }
.timeline .n { width: 1.6rem; height: 1.6rem; border-radius: 50%; display: grid; place-items: center; background: var(--rf-ink-100); color: var(--rf-text-soft); font-size: .75rem; font-weight: 700; }
.timeline li:first-child .n { background: var(--rf-indigo-600); color: #fff; }
.timeline .t { font-weight: 600; font-size: .87rem; }
.timeline .d { font-size: .8rem; color: var(--rf-text-muted); }
.upload-status { margin-top: .75rem; }
.upload-progress { height: 6px; border-radius: 3px; background: var(--rf-ink-100); overflow: hidden; }
.upload-progress i { display: block; height: 100%; width: 0; background: var(--rf-indigo-600); transition: width 120ms linear; }
.upload-status-label { margin: .45rem 0 0; font-size: .8rem; color: var(--rf-text-muted); }

/* ---------- Sign-in modal + page ---------- */
.signin-card { text-align: center; padding: 2rem 1.75rem 1.5rem; }
.signin-card .mark { width: 3.25rem; height: 3.25rem; border-radius: .9rem; margin: 0 auto 1rem; display: block; box-shadow: var(--ugc-lift); }
.signin-card h2 { font-size: 1.35rem; font-weight: 700; letter-spacing: -.025em; margin: 0 0 .35rem; }
.signin-card p { font-size: .9rem; color: var(--rf-text-muted); margin: 0 0 1.5rem; text-wrap: pretty; }
.signin-card .fine { font-size: .75rem; color: var(--rf-text-muted); margin: 1.1rem 0 0; }
.signin-card .fine a { color: var(--rf-text-soft); text-decoration: underline; text-underline-offset: 2px; }
.discord-card .discord-mark {
  width: 3.25rem; height: 3.25rem; border-radius: .9rem; margin: 0 auto 1rem; display: grid; place-items: center;
  background: #5865F2; color: #fff; font-size: 1.6rem; box-shadow: var(--ugc-lift);
}

/* ---------- Welcome steps ---------- */
body.portal.welcome { background: #fff; }
.w-shell { min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column; background: #fff; }
.w-top { display: flex; align-items: center; gap: .75rem; padding: calc(.9rem + env(safe-area-inset-top)) 1rem .9rem; max-width: 30rem; width: 100%; margin: 0 auto; }
.w-top .icon-btn { width: 2.5rem; height: 2.5rem; display: grid; place-items: center; border: 0; background: transparent; border-radius: 50%; color: var(--rf-text-soft); font-size: 1.15rem; flex: none; }
.w-top .icon-btn.hidden { visibility: hidden; }
.w-progress { flex: 1; display: flex; gap: 4px; }
.w-progress i { flex: 1; height: 4px; border-radius: 2px; background: var(--rf-ink-100); }
.w-progress i.on { background: var(--rf-indigo-600); }
.w-body { flex: 1; width: 100%; max-width: 26rem; margin: 0 auto; padding: 1.5rem 1.25rem 1rem; display: flex; flex-direction: column; }
.w-body h1 { font-size: 1.75rem; font-weight: 700; letter-spacing: -.03em; line-height: 1.15; margin: 0 0 .5rem; text-wrap: balance; }
.w-body .why { font-size: .92rem; color: var(--rf-text-muted); margin: 0 0 1.75rem; text-wrap: pretty; }
.w-foot { position: sticky; bottom: 0; background: linear-gradient(180deg, rgba(255,255,255,0), #fff 30%); padding: 1.25rem 1.25rem calc(1.25rem + env(safe-area-inset-bottom)); max-width: 26rem; width: 100%; margin: 0 auto; }
.w-foot .p-btn { width: 100%; min-height: 3.4rem; border-radius: var(--rf-radius-pill); font-size: 1rem; }
.w-foot .skip { display: block; text-align: center; margin-top: .65rem; font-size: .85rem; color: var(--rf-text-muted); background: none; border: 0; width: 100%; }
.w-body .form-control-lg { font-size: 1rem; min-height: 3.25rem; border-radius: var(--rf-radius); background: var(--rf-ink-50); border-color: var(--rf-border); }
.w-body .form-control-lg:focus { background: #fff; border-color: var(--rf-indigo-400); box-shadow: var(--rf-shadow-focus); }
.w-body .form-label { font-size: .82rem; font-weight: 500; color: var(--rf-text-soft); }
.w-error { font-size: .85rem; color: var(--rf-danger); margin-top: .5rem; }

.opt-list { display: flex; flex-direction: column; gap: .6rem; }
.opt { position: relative; display: flex; align-items: center; gap: .85rem; min-height: 3.5rem; padding: .8rem 1rem; border-radius: var(--rf-radius); background: #fff; box-shadow: var(--ugc-lift); cursor: pointer; font-weight: 550; font-size: .95rem; transition: box-shadow 150ms, background-color 150ms, transform 120ms var(--ugc-ease); }
.opt:active { transform: scale(.985); }
.opt input { position: absolute; opacity: 0; pointer-events: none; }
.opt .mark { margin-left: auto; width: 1.35rem; height: 1.35rem; padding: 0; border-radius: 50%; border: 1.5px solid var(--rf-ink-300); background: transparent; display: grid; place-items: center; color: transparent; font-size: .8rem; flex: none; transition: all 150ms; }
.opt:has(input:checked) { box-shadow: 0 0 0 2px var(--rf-indigo-600); background: var(--rf-indigo-50); }
.opt:has(input:checked) .mark { border-color: var(--rf-indigo-600); background: var(--rf-indigo-600); color: #fff; }
.opt:has(input:focus-visible) { box-shadow: var(--rf-shadow-focus), 0 0 0 2px var(--rf-indigo-400); }
.opt .emoji { font-size: 1.25rem; line-height: 1; }
.country-search { position: sticky; top: 0; z-index: 2; background: #fff; padding-bottom: .75rem; }
.country-list { max-height: 50vh; overflow-y: auto; padding: 2px; margin: -2px; }
.country-list .opt { min-height: 3rem; box-shadow: none; border-radius: var(--rf-radius-sm); padding: .6rem .75rem; }
.country-list .divider { height: 1px; background: var(--ugc-ledger-line); margin: .4rem 0; }

.check-list { display: flex; flex-direction: column; gap: .6rem; }
.check-row { display: flex; gap: .8rem; align-items: flex-start; padding: .9rem 1rem; border-radius: var(--rf-radius); background: var(--rf-ink-50); cursor: pointer; font-size: .9rem; line-height: 1.45; text-wrap: pretty; }
.check-row input { margin-top: .2rem; width: 1.15rem; height: 1.15rem; flex: none; accent-color: var(--rf-indigo-600); }
.check-row:has(input:checked) { background: var(--rf-indigo-50); }

.photo-pick { display: grid; place-items: center; gap: 1rem; padding: 1rem 0; }
.photo-pick .big { width: 8.5rem; height: 8.5rem; border-radius: 50%; overflow: hidden; display: grid; place-items: center; background: var(--rf-indigo-50); color: var(--rf-indigo-600); font-size: 2.75rem; font-weight: 700; box-shadow: var(--ugc-lift); cursor: pointer; position: relative; }
.photo-pick .big img { width: 100%; height: 100%; object-fit: cover; }
.photo-pick .big .edit { position: absolute; right: .35rem; bottom: .35rem; width: 2rem; height: 2rem; border-radius: 50%; background: var(--rf-ink-900); color: #fff; display: grid; place-items: center; font-size: .85rem; }

/* Intro slides */
.slides { position: relative; flex: 1; }
.slide { display: none; }
.slide.active { display: block; animation: stepIn 300ms var(--ugc-ease); }
.slide-art { height: 15rem; border-radius: var(--rf-radius-xl); background: var(--rf-ink-50); position: relative; overflow: hidden; margin-bottom: 1.75rem; display: grid; place-items: center; }
.mini-card { display: flex; align-items: center; gap: .6rem; padding: .6rem .75rem; border-radius: var(--rf-radius); background: #fff; box-shadow: var(--ugc-lift), 0 8px 20px rgba(17,24,39,.06); width: 13rem; font-size: .78rem; }
.mini-card .lg { width: 2rem; height: 2rem; border-radius: .55rem; flex: none; }
.mini-card .n { font-weight: 650; color: var(--rf-text); }
.mini-card .r { color: var(--rf-text-muted); font-variant-numeric: tabular-nums; }
.phone { width: 6.5rem; aspect-ratio: 9 / 18; border-radius: 1.1rem; background: var(--rf-ink-900); padding: .3rem; box-shadow: 0 12px 28px rgba(17,24,39,.18); position: relative; }
.phone .screen { width: 100%; height: 100%; border-radius: .85rem; overflow: hidden; background: linear-gradient(160deg, var(--rf-indigo-400), var(--rf-indigo-800)); position: relative; }
.phone .screen video { width: 100%; height: 100%; object-fit: cover; }
.phone .lbl { position: absolute; left: 50%; bottom: -1.6rem; transform: translateX(-50%); font-size: .7rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--rf-text-muted); white-space: nowrap; }
.views-pop { position: absolute; font-size: .78rem; font-weight: 700; padding: .3rem .6rem; border-radius: var(--rf-radius-pill); background: #fff; box-shadow: var(--ugc-lift), 0 6px 16px rgba(17,24,39,.08); font-variant-numeric: tabular-nums; }
.stub { width: 14rem; background: #fff; border-radius: var(--rf-radius-lg); box-shadow: var(--ugc-lift), 0 12px 32px rgba(17,24,39,.08); padding: 1rem 1.1rem; }
.stub .row-a { display: flex; justify-content: space-between; font-size: .75rem; color: var(--rf-text-muted); padding: .12rem 0; font-variant-numeric: tabular-nums; }
.stub .grand { display: flex; justify-content: space-between; align-items: baseline; border-top: 2px solid var(--rf-ink-900); margin-top: .45rem; padding-top: .4rem; }
.stub .grand .v { font-size: 1.35rem; font-weight: 700; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.stub .stamp { position: absolute; }

/* ---------- Content + settings ---------- */
.p-table { width: 100%; font-size: .875rem; border-collapse: separate; border-spacing: 0; }
.p-table th { font-size: .6875rem; font-weight: 600; letter-spacing: .07em; text-transform: uppercase; color: var(--rf-text-muted); padding: .7rem 1.25rem; border-bottom: 1px solid var(--ugc-ledger-line); white-space: nowrap; }
.p-table td { padding: .85rem 1.25rem; border-bottom: 1px solid var(--ugc-ledger-line); vertical-align: middle; }
.p-table tr:last-child td { border-bottom: 0; }
.p-table .r { text-align: right; font-variant-numeric: tabular-nums; }
.p-table .zero { color: var(--rf-ink-300); }
.p-empty { text-align: center; padding: 2.75rem 1.5rem; }
.p-empty .ic { width: 3rem; height: 3rem; border-radius: .9rem; margin: 0 auto .9rem; display: grid; place-items: center; background: var(--rf-indigo-50); color: var(--rf-indigo-600); font-size: 1.3rem; }
.p-empty h3 { font-size: 1rem; font-weight: 650; margin: 0 0 .3rem; }
.p-empty p { font-size: .87rem; color: var(--rf-text-muted); margin: 0 auto; max-width: 26rem; text-wrap: pretty; }
.p-form .form-label { font-weight: 500; font-size: .85rem; margin-bottom: .35rem; }
.p-form .form-control, .p-form .form-select { background-color: var(--rf-ink-50); border-color: var(--rf-border); font-size: .9rem; min-height: 2.6rem; }
.p-form .form-control:focus, .p-form .form-select:focus { background-color: #fff; border-color: var(--rf-indigo-400); box-shadow: var(--rf-shadow-focus); }
.seg { display: inline-flex; padding: 3px; border-radius: var(--rf-radius-sm); background: var(--rf-ink-100); gap: 2px; }
.seg label { padding: .4rem .9rem; border-radius: calc(var(--rf-radius-sm) - 2px); font-size: .85rem; font-weight: 550; color: var(--rf-text-soft); cursor: pointer; }
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg label:has(input:checked) { background: #fff; color: var(--rf-text); box-shadow: var(--ugc-lift); }
.kv { display: grid; grid-template-columns: 9rem minmax(0, 1fr); gap: .5rem 1rem; font-size: .88rem; }
.kv dt { color: var(--rf-text-muted); font-weight: 500; }
.kv dd { margin: 0; }

/* Invite */
.reward-rail { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.reward-rail > div { padding: 1.1rem 1.25rem; }
.reward-rail > div + div { border-left: 1px solid var(--ugc-ledger-line); }
.reward-rail .v { font-size: 1.5rem; font-weight: 700; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.reward-rail .sub { font-size: .78rem; color: var(--rf-text-muted); }
@media (max-width: 575.98px) { .reward-rail { grid-template-columns: 1fr; } .reward-rail > div + div { border-left: 0; border-top: 1px solid var(--ugc-ledger-line); } }

/* ---------- Legal ---------- */
.legal { max-width: 46rem; color: var(--rf-text); font-size: .95rem; line-height: 1.65; }
.legal-head { margin-bottom: 1.25rem; }
.legal-head h1 { font-size: 1.75rem; font-weight: 700; letter-spacing: -.025em; margin: .25rem 0 .15rem; }
.legal-head .sub { color: var(--rf-text-muted); font-size: .85rem; margin: 0; }
.legal-short { padding: 1.1rem 1.25rem; margin-bottom: 1.25rem; background: linear-gradient(180deg, var(--rf-indigo-50), #fff 70%); }
.legal .legal-short h2 { font-size: .8rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--rf-indigo-600); margin: 0 0 .5rem; }
.legal-short ul { margin: 0; padding-left: 1.1rem; }
.legal-short li + li { margin-top: .3rem; }
.legal-toc { display: flex; flex-wrap: wrap; gap: .35rem; margin-bottom: 2rem; }
.legal-toc a { font-size: .78rem; padding: .25rem .6rem; border-radius: var(--rf-radius-pill); background: #fff; box-shadow: var(--ugc-lift); color: var(--rf-text-soft); text-decoration: none; white-space: nowrap; }
.legal section { padding-top: 1.5rem; margin-top: 1.5rem; border-top: 1px solid var(--ugc-ledger-line); scroll-margin-top: 1rem; }
.legal section:first-of-type { border-top: 0; margin-top: 0; padding-top: 0; }
.legal h2 { font-size: 1.1rem; font-weight: 600; letter-spacing: -.01em; margin: 0 0 .6rem; }
.legal h3 { font-size: .92rem; font-weight: 600; margin: 1rem 0 .35rem; }
.legal p { margin: 0 0 .75rem; color: var(--rf-text-soft); }
.legal ul { margin: 0 0 .75rem; padding-left: 1.15rem; color: var(--rf-text-soft); }
.legal li + li { margin-top: .25rem; }
.legal strong { color: var(--rf-text); font-weight: 600; }
.legal a { color: var(--rf-indigo-600); }
.legal-callout { display: inline-block; padding: .4rem .75rem; border-radius: var(--rf-radius-sm); background: var(--ugc-paid-bg, #ecfdf5); color: var(--rf-text) !important; font-weight: 600; }
.legal-caps { font-size: .85rem; text-transform: uppercase; letter-spacing: .01em; }
.legal-foot { font-size: .85rem; }
@media (max-width: 767.98px) { .legal-toc { flex-wrap: nowrap; overflow-x: auto; margin-inline: -1rem; padding: 0 1rem .25rem; } }

/* ---------- App Store screenshots ---------- */
.c-shots { display: flex; gap: .65rem; overflow-x: auto; scroll-snap-type: x mandatory; padding: .15rem .15rem .5rem; -webkit-overflow-scrolling: touch; scrollbar-width: thin; }
.c-shots img { flex: none; height: 17rem; width: auto; aspect-ratio: auto; border-radius: .9rem; background: var(--rf-ink-100); box-shadow: var(--ugc-lift); scroll-snap-align: start; }
.c-store-btns { display: flex; flex-wrap: wrap; gap: .4rem; align-items: center; flex: none; }
.c-store-links { display: flex; flex-wrap: wrap; gap: .15rem .85rem; align-items: center; margin-top: .4rem; }
.c-store-link { display: inline-flex; align-items: center; gap: .3rem; font-size: .8rem; color: var(--rf-text-muted); text-decoration: none; }
.c-store-link .star { color: var(--rf-ink-900); font-weight: 600; }
@media (max-width: 767.98px) { .c-shots { margin-inline: -1rem; padding-inline: 1rem; } .c-shots img { height: 14rem; } }

/* Accounts */
.acct-pick { border: 1px solid var(--rf-border); border-radius: var(--rf-radius); padding: .75rem .9rem; margin: 0 0 1rem; }
.acct-pick legend { float: none; width: auto; font-size: .8rem; font-weight: 600; color: var(--rf-text-soft); padding: 0 .3rem; margin: 0 0 .25rem -.3rem; }
.acct-main { display: flex; align-items: center; gap: .55rem; padding: .45rem 0; font-size: .9rem; cursor: pointer; }
.acct-row + .acct-row { border-top: 1px solid var(--ugc-ledger-line); }
.acct-new { display: flex; gap: .55rem; align-items: flex-start; margin: -.1rem 0 .5rem 1.6rem; font-size: .8rem; font-weight: 550; color: var(--rf-text); cursor: pointer; }
.acct-new input { margin-top: .15rem; flex: none; }
.acct-new .d { display: block; font-weight: 400; color: var(--rf-text-muted); line-height: 1.4; margin-top: .1rem; }
.acct-row:not(:has([data-account-pick]:checked)) .acct-new { display: none; }
.acct-main .h { font-weight: 600; color: var(--rf-text); }
.acct-main .p { font-size: .78rem; color: var(--rf-text-muted); margin-left: auto; }
.acct-add { display: inline-flex; align-items: center; gap: .35rem; border: 0; background: none; padding: .35rem 0 0; font-size: .82rem; font-weight: 550; color: var(--rf-indigo-700); }
.acct-list { list-style: none; padding: 0; margin: 0; }
.acct-list li { display: flex; align-items: center; gap: .6rem; padding: .55rem 0; font-size: .9rem; }
.acct-list li + li { border-top: 1px solid var(--ugc-ledger-line); }
.acct-list .h { font-weight: 600; color: var(--rf-text); }
.acct-list .p { font-size: .78rem; color: var(--rf-text-muted); }
.acct-list form { margin-left: auto; }
.acct-list .s { display: block; font-size: .78rem; color: var(--rf-text-muted); }
.acct-list li.stopped .h { color: var(--rf-text-muted); }
.acct-new.standalone { margin: 1rem 0 0; font-size: .87rem; }
.acct-nudge { display: flex; gap: .45rem; align-items: flex-start; margin: 0; padding: .55rem .7rem; border-radius: var(--rf-radius-sm); background: #FEF3C7; color: #92400E; font-size: .82rem; line-height: 1.4; }
.acct-nudge .bi { flex: none; margin-top: .1rem; }
.acct-nudge.ok { background: #ECFDF5; color: #065F46; }
.acct-modal .modal-title { font-size: 1.1rem; font-weight: 600; }
.pick-list { display: flex; flex-direction: column; gap: .5rem; }
.pick-row { display: flex; align-items: center; gap: .75rem; padding: .65rem .75rem; border: 1px solid var(--rf-border); border-radius: var(--rf-radius); color: inherit; transition: background-color 150ms, border-color 150ms; }
.pick-row .c-logo { width: 2.25rem; height: 2.25rem; border-radius: .6rem; flex: none; }
.pick-row .n { font-weight: 600; font-size: .9rem; }
.pick-row .d { font-size: .78rem; color: var(--rf-text-muted); }


/* ---------- Settings ---------- */
.set-tabs { position: sticky; top: 0; z-index: 5; margin: 0 0 1.75rem; background: var(--rf-bg); }
.set-tabs i { font-size: .95rem; }
.set-dot { width: .45rem; height: .45rem; border-radius: 50%; background: var(--ugc-pending); }
.set-section { display: grid; grid-template-columns: 15rem minmax(0, 1fr); gap: 2rem; align-items: start; padding-bottom: 2rem; margin-bottom: 2rem; border-bottom: 1px solid var(--ugc-ledger-line); scroll-margin-top: 4.5rem; }
.set-section:last-of-type { border-bottom: 0; margin-bottom: 0; }
.set-intro h2 { font-size: 1rem; font-weight: 650; letter-spacing: -.01em; margin: .25rem 0 .35rem; }
.set-intro p { font-size: .85rem; color: var(--rf-text-muted); margin: 0; text-wrap: pretty; }
.set-foot { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .85rem 1.25rem; border-top: 1px solid var(--ugc-ledger-line); background: var(--rf-ink-50); border-radius: 0 0 var(--rf-radius-lg) var(--rf-radius-lg); }
.set-foot > span { font-size: .8rem; color: var(--rf-text-muted); min-width: 0; text-wrap: pretty; }
.set-foot .p-btn { flex: none; }
.set-photo { display: flex; align-items: center; gap: .9rem; padding-bottom: 1.25rem; margin-bottom: 1.25rem; border-bottom: 1px solid var(--ugc-ledger-line); }
.set-photo .p-avatar { width: 3.5rem; height: 3.5rem; font-size: 1.25rem; }
.set-photo .who { font-weight: 600; font-size: .95rem; }
.set-photo .mail { font-size: .8rem; color: var(--rf-text-muted); }
.set-empty { display: flex; gap: .75rem; align-items: flex-start; font-size: .87rem; color: var(--rf-text-muted); text-wrap: pretty; }
.set-empty i { width: 2.25rem; height: 2.25rem; border-radius: .65rem; flex: none; display: grid; place-items: center; background: var(--rf-indigo-50); color: var(--rf-indigo-600); font-size: 1.05rem; }
.set-status { display: flex; gap: .6rem; align-items: flex-start; padding: .7rem .85rem; border-radius: var(--rf-radius-sm); font-size: .85rem; margin-bottom: 1rem; overflow-wrap: anywhere; }
.set-status.ok { background: var(--ugc-paid-bg); color: var(--rf-text); }
.set-status.ok i { color: var(--ugc-paid); }
.set-status.warn { background: var(--ugc-pending-bg); color: #7C4A03; }
.set-status.warn i { color: var(--ugc-pending); }
.pay-opts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .65rem; }
.pay-opts .opt { min-height: 4rem; }
.pay-ic { width: 2.25rem; height: 2.25rem; border-radius: .65rem; flex: none; display: grid; place-items: center; font-size: 1.1rem; }
.pay-ic.paypal { background: #E8F1FB; color: #003087; }
.pay-ic.zelle { background: #F1EAFB; color: #6D1ED4; }
.pay-sub { display: block; font-size: .75rem; font-weight: 400; color: var(--rf-text-muted); }
.set-row { display: flex; align-items: center; gap: .85rem; padding: 1rem 1.25rem; }
.set-row + .set-row { border-top: 1px solid var(--ugc-ledger-line); }
.set-row .t { font-weight: 600; font-size: .9rem; }
.set-row .d { font-size: .8rem; color: var(--rf-text-muted); }
.set-ic { width: 2.25rem; height: 2.25rem; border-radius: .65rem; flex: none; display: grid; place-items: center; background: var(--rf-ink-100); color: var(--rf-text-soft); }
.set-ic.danger { background: #FEF2F2; color: var(--rf-danger); }
@media (max-width: 991.98px) {
  .set-section { grid-template-columns: 1fr; gap: .9rem; }
}
@media (max-width: 767.98px) {
  .set-tabs { top: calc(var(--p-topbar) + env(safe-area-inset-top)); margin-inline: -1rem; padding-inline: .5rem; }
  .set-section { scroll-margin-top: calc(var(--p-topbar) + env(safe-area-inset-top) + 3.5rem); padding-bottom: 1.5rem; margin-bottom: 1.5rem; }
  .pay-opts { grid-template-columns: 1fr; }
  .set-row { flex-wrap: wrap; }
  .set-row > .ms-auto { margin-left: 3.1rem !important; }
  .set-foot { flex-direction: column-reverse; align-items: stretch; text-align: center; }
  .set-foot .p-btn { width: 100%; }
  .set-photo { flex-wrap: wrap; }
  .set-photo .p-btn { margin-left: 0 !important; width: 100%; }
}

/* ---------- Touch + mobile ---------- */
.portal button, .portal a, .portal label.opt, .portal [role="button"], .portal .p-btn { touch-action: manipulation; }
.portal .p-btn, .portal .opt, .portal .c-tabs a, .portal .seg label, .portal .p-nav a, .portal .icon-btn { -webkit-user-select: none; user-select: none; }
.c-tabs { overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.c-tabs::-webkit-scrollbar { display: none; }
.c-tabs a { flex: none; white-space: nowrap; }
@media (pointer: coarse) {
  .portal input.form-control, .portal select.form-select, .portal textarea.form-control,
  .portal input[type="email"], .portal input[type="text"], .portal input[type="date"], .portal input[type="search"] { font-size: 16px; }
  .p-btn { min-height: 2.75rem; }
}
@media (max-width: 767.98px) {
  .p-head h1 { font-size: 1.4rem; }
  .p-table th, .p-table td { padding-inline: 1rem; }
  .ugc-card-head, .ugc-card-body { padding-inline: 1rem; }
  .modal-dialog { margin: .75rem; }
  .p-earnings > div { padding: 1rem; }
}


/* Logged-out home: how it works + FAQ (also what search engines read) */
.home-about { margin-top: 2.5rem; }
.paid-claim { margin-top: .85rem; }
.paid-claim .pill { display: inline-flex; align-items: center; gap: .45rem; padding: .4rem .8rem; border-radius: 999px; background: var(--rf-indigo-50); color: var(--rf-indigo-700); font-size: .88rem; font-weight: 600; }.how-steps { list-style: none; padding: 0; margin: 0 0 2.5rem; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .75rem; }
.how-steps li { display: flex; align-items: center; gap: .75rem; padding: .85rem 1rem; border-radius: var(--rf-radius); background: #fff; box-shadow: var(--ugc-lift); }
.how-steps li > .bi { flex: none; width: 2.25rem; height: 2.25rem; border-radius: var(--rf-radius-sm); display: grid; place-items: center; background: var(--rf-indigo-50); color: var(--rf-indigo-600); font-size: 1.05rem; }
.how-steps h3 { font-size: .95rem; font-weight: 600; margin: 0 0 .1rem; }
.how-steps p { font-size: .85rem; color: var(--rf-text-soft); margin: 0; line-height: 1.4; }
.faq details + details { border-top: 1px solid var(--rf-border); }
.faq summary { list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .8rem 1.25rem; font-size: .95rem; font-weight: 500; cursor: pointer; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .bi { flex: none; color: var(--rf-text-muted); transition: transform 200ms var(--ugc-ease); }
.faq details[open] summary .bi { transform: rotate(180deg); }
.faq details p { margin: -.35rem 0 0; padding: 0 1.25rem 1rem; color: var(--rf-text-soft); font-size: .92rem; line-height: 1.55; max-width: 44rem; }
@media (max-width: 767.98px) {
  .how-steps { grid-template-columns: 1fr; gap: .5rem; }
  .faq summary { padding: .8rem 1rem; }
  .faq details p { padding: 0 1rem .9rem; }
}
@media (prefers-reduced-motion: reduce) { .faq summary .bi { transition: none; } }

/* Hover only where a real pointer can hover, so taps don't leave styles stuck on phones. */
@media (hover: hover) and (pointer: fine) {
  .p-btn.primary:hover { background: var(--rf-indigo-700); color: #fff; }
  .p-btn.ink:hover { background: var(--rf-ink-700); color: #fff; }
  .p-btn.quiet:hover { background: var(--rf-ink-50); color: var(--rf-text); }
  .p-btn.ghost:hover { background: var(--rf-ink-100); color: var(--rf-text); }
  .p-btn.google:hover { background: var(--rf-ink-50); color: var(--rf-ink-900); }
  .p-nav a:hover { background: var(--rf-ink-100); color: var(--rf-text); }
  .p-steps a.s:hover, .p-steps button.s:hover { background: var(--rf-ink-50); }
  .p-steps a.s.current:hover, .p-steps button.s.current:hover { background: var(--rf-indigo-100); }
  .c-card:hover { color: inherit; box-shadow: var(--ugc-lift), 0 10px 28px rgba(17, 24, 39, .07); transform: translateY(-1px); }
  .c-tabs a:hover { color: var(--rf-text); }
  .f-tile:hover { color: inherit; }
  .f-tile:hover .f-frame { box-shadow: var(--ugc-lift), 0 10px 24px rgba(17, 24, 39, .12); }
  .apply-modal .bar .icon-btn:hover { background: var(--rf-ink-100); color: var(--rf-text); }
  .drop:hover { border-color: var(--rf-indigo-400); background: var(--rf-indigo-50); }
  .w-top .icon-btn:hover { background: var(--rf-ink-100); color: var(--rf-text); }
  .country-list .opt:hover { background: var(--rf-ink-50); }
  .legal-toc a:hover { color: var(--rf-indigo-600); }
  .c-store-link:hover { color: var(--rf-indigo-600); }
  .pick-row:hover { background: var(--rf-ink-50); border-color: var(--rf-indigo-300); }
}
