@font-face {
  font-family: 'DM Sans';
  src: url('/UraPanic App/Fonts/DMSans-Regular.ttf') format('truetype');
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: 'DM Sans';
  src: url('/UraPanic App/Fonts/DMSans-SemiBold.ttf') format('truetype');
  font-weight: 600 700;
  font-display: swap;
}
@font-face {
  font-family: 'BricolageGrotesque';
  src: url('/UraPanic App/Fonts/BricolageGrotesque-Bold.ttf') format('truetype');
  font-weight: 700;
  font-display: swap;
}
:root {
  color-scheme: dark;
  --af-bg: #09090b;
  --af-surface: #202124;
  --af-edge: #ffffff17;
  --af-text: #fafafa;
  --af-body: #bcbcc5;
  --af-muted: #a1a1ae;
  --af-purple: #7540df;
  --af-accent: #ab8cff;
  --af-money-positive: #00e676;
  --af-money-pending: #ff9d00;
  --af-money-reserved: #00d9ff;
  --af-money-negative: #ff4568;
  --af-display: 'BricolageGrotesque', system-ui, sans-serif;
  --af-reading: 'DM Sans', system-ui, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { background: var(--af-bg); scroll-behavior: smooth; scroll-padding-top: 24px; -webkit-text-size-adjust: 100%; scrollbar-width: none; }
html::-webkit-scrollbar { display: none; width: 0; height: 0; }
body { margin: 0; background: var(--af-bg); color: var(--af-text); font: 1.0625rem/1.6 var(--af-reading); -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; }
a { color: var(--af-accent); text-underline-offset: 4px; }
button, input, select, textarea { font: inherit; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { font-family: var(--af-display); font-weight: 700; line-height: 1.2; }
h1 { font-size: 2.125rem; }
h2 { font-size: 1.75rem; }
h3 { font-size: 1.25rem; }
p { color: var(--af-body); }
button, a, input, select, textarea, summary { -webkit-tap-highlight-color: transparent; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, summary:focus-visible {
  outline: 3px solid #bfadff;
  outline-offset: 5px;
}
[hidden] { display: none !important; }
.af-skip { position: fixed; top: -100px; left: 16px; z-index: 30; padding: 12px 20px; background: var(--af-surface); }
.af-sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.af-skip:focus { top: 12px; }
.af-header { background: #050506; border-bottom: 1px solid var(--af-edge); }
.af-header-inner { max-width: 1440px; margin-inline: auto; padding: 16px 40px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.af-brand { flex: 0 0 auto; }
.af-brand img { object-fit: contain; }
.af-header nav { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.af-nav-account { padding: 12px 18px; color: #e4e4e9; font-size: .9375rem; text-decoration: none; }
.af-header .af-button, .af-header button { font-size: .9375rem; }
.af-main { width: min(1160px, calc(100% - 80px)); margin-inline: auto; }
.af-intro { text-align: center; padding: 96px 0 88px; max-width: 760px; margin-inline: auto; }
.af-intro.af-intro-with-art { padding: 40px 0 64px; }
.af-intro-with-art > .af-eyebrow { margin-bottom: 12px; }
.af-creator-collab { width: min(100%, 440px); margin: 0 auto 24px; background: var(--af-bg); isolation: isolate; }
/* Preserve the approved artwork; its near-black surround merges into this page. */
.af-creator-collab img { display: block; width: 100%; height: min(40vw, 184px); object-fit: contain; mix-blend-mode: lighten; }
.af-eyebrow { margin: 0 0 20px; font-size: .9375rem; font-weight: 600; color: var(--af-accent); }
.af-intro h2 { margin: 0 0 26px; letter-spacing: -.035em; line-height: 1.13; }
.af-intro h2 span, .af-mission h2 span { color: var(--af-accent); }
.af-lead { margin: 0 auto 30px; max-width: 62ch; font-size: 1.0625rem; line-height: 1.75; }
.af-button, button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  max-width: 100%;
  padding: 11px 20px;
  border: 1px solid #ffffff24;
  border-radius: 9px;
  background: var(--af-surface);
  color: var(--af-text);
  font: 600 1.0625rem/1.45 var(--af-reading);
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .18s ease, border-color .18s ease, transform .18s ease;
}
button:hover:not(:disabled), .af-button:hover { background: #2b2c31; border-color: #ffffff40; }
button:active:not(:disabled), .af-button:active { transform: translateY(1px); }
button:disabled { opacity: .48; cursor: not-allowed; }
.primary { background: var(--af-purple); border-color: #b99aff66; box-shadow: inset 0 1px 0 #ffffff24, 0 2px 3px #0004; }
.primary:hover:not(:disabled), .af-button.primary:hover { background: #8450ec; border-color: #c4a9ff; }
.af-hero-cta { padding: 14px 28px; }
/* Frame the existing logo's transparent padding without changing its artwork. */
.af-button-wordmark { display: inline-block; width: 4.5em; height: 1.8em; max-width: none; object-fit: cover; object-position: center 32%; vertical-align: -.4em; margin-inline: -.25em; }
.af-intro-note { margin: 20px 0 0; color: var(--af-muted); font-size: .9375rem; }
.af-text-link { display: inline-block; margin-top: 18px; font-size: .9375rem; }
.af-intro .af-text-link { color: var(--af-body); font-size: .8125rem; }
.af-mission { display: grid; grid-template-columns: 1fr 1.08fr; gap: 88px; align-items: center; padding: 24px 0 96px; }
.af-mission-copy h2 { line-height: 1.3; letter-spacing: -.025em; margin-bottom: 24px; }
.af-mission-copy p:not(.af-eyebrow) { max-width: 39ch; margin-bottom: 28px; }
.af-mission-photo { margin: 0; border: 1px solid var(--af-edge); border-radius: 24px; overflow: hidden; background: var(--af-bg); }
/* Trim only the empty sky, keeping the billboard and the person in the portrait. */
.af-mission-photo img { display: block; width: 100%; height: auto; aspect-ratio: 3 / 4; object-fit: cover; object-position: center bottom; }
.af-proof-section { padding: 0 0 72px; }
.af-proof-section .af-section-heading > p:last-child { margin: 14px 0 0; }
.af-tiktok-mark { width: 22px; height: 22px; flex: 0 0 22px; fill: currentColor; color: var(--af-text); }
.af-tiktok-label { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; margin-left: auto; }
.af-tiktok-label .af-tiktok-mark { filter: drop-shadow(-1px -1px 0 #25f4ee) drop-shadow(1px 1px 0 #fe2c55); }
.af-tiktok-profile-top { display: flex; align-items: center; gap: 16px; }
.af-tiktok-avatar { display: block; flex: 0 0 64px; width: 64px; height: 64px; overflow: hidden; border-radius: 50%; background: #0a1020; }
/* Crop the source icon's pale outer rim without changing the shared image asset. */
.af-tiktok-avatar > img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.12); transform-origin: center; }
.af-tiktok-profile-top h3 { margin: 0 0 4px; font-family: var(--af-reading); }
.af-tiktok-profile-top a { color: var(--af-body); font-size: .9375rem; text-decoration: none; }
.af-tiktok-bio { margin: 24px 0; color: var(--af-text); }
.af-tiktok-profile-bottom { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 24px; }
.af-tiktok-stats { display: flex; flex-wrap: wrap; gap: 32px; margin: 0; }
.af-tiktok-stats > div { display: flex; flex-direction: column; gap: 4px; }
.af-tiktok-stats dt { font-size: .9375rem; color: var(--af-body); }
.af-tiktok-stats dd { order: -1; margin: 0; font-size: 1.5rem; font-weight: 700; font-variant-numeric: tabular-nums; }
.af-tiktok-link { background: #d71942; border-color: #d71942; color: #fff; }
.af-tiktok-link:hover { background: #bd1439; border-color: #bd1439; }
.af-comments { --comment-gap: 16px; min-width: 0; }
.af-wall-toolbar { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px; margin: 32px 0 20px; }
.af-wall-intro { margin: 0; color: var(--af-text); font-size: 1.0625rem; font-weight: 600; }
.af-wall-intro > span { display: block; margin-top: 4px; color: var(--af-muted); font-size: .8125rem; font-weight: 400; }
.af-comment-toggle { flex: 0 0 auto; font-size: .9375rem; }
.af-comment-toggle svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.af-comment-wall { display: grid; gap: var(--comment-gap); min-width: 0; }
.af-comment-row { min-width: 0; }
.af-comment-group { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 270px), 1fr)); gap: var(--comment-gap); }
/* Without motion support, every original stays in a normal readable grid. */
[data-comment-copy] { display: none; }
.af-comment-wall .af-comment { display: flex; flex-direction: column; min-width: 0; margin: 0; padding: 22px; border-radius: 14px; background: #fff; color: #161823; border: 1px solid #e5e5e8; box-shadow: 0 2px 8px #0000000a; }
.af-comment-top { display: flex; align-items: center; gap: 10px; margin-bottom: 20px; }
.af-comment-avatar { position: relative; display: grid; place-items: center; flex: 0 0 36px; width: 36px; height: 36px; overflow: hidden; border-radius: 50%; background: #f1f1f2; color: #65666e; }
.af-comment-avatar img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.af-comment-author { color: #161823; font-size: .9375rem; font-weight: 600; line-height: 1.4; }
.af-comment-author small { display: block; font-size: .8125rem; font-weight: 400; color: #65666e; margin-top: 3px; }
.af-comment-top > .af-tiktok-mark { margin-left: auto; width: 18px; height: 18px; flex-basis: 18px; color: #161823; }
.af-comment blockquote { flex: 1; margin: 0 0 24px; }
.af-comment blockquote p { color: #161823; font-size: 1.0625rem; line-height: 1.65; margin: 0; overflow-wrap: anywhere; }
.af-comment figcaption { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; color: #65666e; font-size: .8125rem; }
.af-comment-likes { display: inline-flex; align-items: center; gap: 6px; font-variant-numeric: tabular-nums; }
.af-comment-likes svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.6; }
.af-comment-source { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 44px; padding-top: 12px; margin-top: 12px; border-top: 1px solid #e5e5e8; color: #65666e; font-size: .9375rem; text-decoration: none; }
.af-comment-source:hover { color: #161823; text-decoration: underline; }
.af-comment-source:focus-visible { outline-color: #6540bd; }
.af-comments.is-suspended .af-comment-track,
.af-comments.is-hovered .af-comment-track { animation-play-state: paused !important; }
@media (prefers-reduced-motion: no-preference) {
  /* Only the public moving rows break out; toolbar and dashboard stay contained. */
  #community-proof .af-comments.is-animated:not(.is-reading) .af-comment-wall { width: var(--af-page-width, 100%); margin-inline: calc((100% - var(--af-page-width, 100%)) / 2); }
  .af-comments.is-animated:not(.is-reading) .af-comment-row { overflow: hidden; mask-image: linear-gradient(to right, transparent, #000 14px, #000 calc(100% - 14px), transparent); }
  .af-comments.is-animated:not(.is-reading) .af-comment-track { display: flex; width: max-content; animation: af-comments-drift 115s linear infinite; }
  .af-comments.is-animated:not(.is-reading) [data-direction="right"] .af-comment-track { animation-direction: reverse; animation-duration: 125s; }
  .af-comments.is-animated:not(.is-reading) .af-comment-group { display: flex; flex: 0 0 auto; width: max-content; padding-right: var(--comment-gap); }
  .af-comments.is-animated:not(.is-reading) .af-comment { flex: 0 0 clamp(270px, 32vw, 350px); width: clamp(270px, 32vw, 350px); min-height: 250px; }
}
@keyframes af-comments-drift { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.af-tiktok-profile-top a:hover { color: var(--af-text); text-decoration: underline; }
.af-proof-note { font-size: .8125rem; margin: 20px 0 0; max-width: 90ch; }
.af-mission-bridge { display: flex; align-items: flex-start; gap: 24px; }
.af-mission-bridge > img { flex: 0 0 64px; width: 64px; height: 64px; object-fit: contain; }
.af-mission-bridge > div { min-width: 0; }
.af-mission-bridge p:last-child { margin-bottom: 0; }
.af-opportunity { max-width: 760px; margin: 0 auto; padding: 24px 0 64px; text-align: center; }
.af-opportunity h1 { margin: 0 0 28px; color: var(--af-accent); letter-spacing: -.035em; }
.af-opportunity .af-text-link { display: block; width: fit-content; margin: 18px auto 0; }
.af-section-heading { margin-bottom: 32px; }
.af-section-heading .af-eyebrow { margin-bottom: 14px; }
.af-section-heading h2 { margin-bottom: 0; letter-spacing: -.025em; }
.af-how { border-top: 1px solid var(--af-edge); padding: 64px 0 80px; }
.af-how ol { --step-gap: 44px; list-style: none; display: grid; grid-template-columns: repeat(4, minmax(11.25rem, 1fr)); gap: var(--step-gap); padding: 4px 4px 16px; margin: 40px -4px 0; overflow-x: auto; scroll-snap-type: x proximity; scroll-padding-inline: 4px; overscroll-behavior-x: contain; scrollbar-width: thin; scrollbar-color: #686875 transparent; }
.af-how ol:focus-visible { outline: 3px solid #bfadff; outline-offset: 4px; border-radius: 8px; }
.af-how li { position: relative; min-width: 0; padding: 24px; background: var(--af-surface); border: 1px solid var(--af-edge); border-radius: 20px; scroll-snap-align: start; }
.af-how h3 { font-size: 1.25rem; margin-bottom: 12px; }
.af-how li span { display: block; font-size: .9375rem; line-height: 1.65; color: var(--af-body); }
.af-step-art { display: block; width: 72px; height: 72px; object-fit: contain; border-radius: 14px; margin-bottom: 20px; }
.af-step-copy { min-width: 0; }
.af-step-arrow { position: absolute; left: calc(100% + var(--step-gap) / 2); top: 50%; width: 24px; height: 24px; color: var(--af-accent); transform: translate(-50%, -50%); pointer-events: none; }
.af-creator-army { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 56px; align-items: center; padding: 44px; margin: 0 0 72px; border: 1px solid var(--af-edge); border-radius: 24px; background: var(--af-surface); }
.af-creator-army img { display: block; width: 100%; height: auto; object-fit: contain; }
.af-creator-army h2 { font-size: 1.25rem; margin-bottom: 20px; letter-spacing: -.025em; }
.af-creator-army h2 span { color: var(--af-accent); }
.af-creator-army p:not(.af-eyebrow) { max-width: 43ch; margin-bottom: 18px; }
.af-creator-army .af-invitation-note { color: var(--af-muted); font-size: .8125rem; margin-bottom: 0; }
.af-card { background: var(--af-surface); border: 1px solid var(--af-edge); border-radius: 20px; padding: 28px; margin-bottom: 24px; min-width: 0; }
.af-offer-overview { display: flex; align-items: flex-start; gap: 20px; }
.af-offer-overview > div { min-width: 0; }
.af-offer-art { width: 64px; height: 64px; flex: 0 0 64px; object-fit: contain; }
.af-customer-offer .af-offer-overview h2 { font-size: 1.25rem; margin: 0 0 6px; }
.af-customer-offer h2 span { color: var(--af-money-positive); }
.af-customer-offer .af-offer-status { margin: 0 0 8px; font-size: .8125rem; color: var(--af-muted); }
.af-customer-offer .af-offer-status strong { color: var(--af-money-pending); }
.af-customer-offer .af-offer-description { margin: 0; font-size: .9375rem; }
.af-customer-offer details { margin: 20px 0 0; font-size: .9375rem; }
.af-customer-offer details p { margin: 12px 0 0; }
@media (max-width: 480px) { .af-offer-overview { gap: 14px; } .af-offer-art { width: 56px; height: 56px; flex-basis: 56px; } }
.af-card h2 { font-size: 1.25rem; margin-bottom: 20px; }
.af-card h3 { margin-bottom: 12px; }
.af-card > :last-child { margin-bottom: 0; }
.af-terms-section { display: grid; grid-template-columns: minmax(200px, .65fr) minmax(0, 1.35fr); gap: 48px; padding: 64px 0; border-top: 1px solid var(--af-edge); align-items: start; }
.af-terms-section .af-card { margin: 0; }
.af-terms-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; margin: 0 0 30px; }
.af-terms-grid dt { font-size: .8125rem; color: var(--af-muted); margin-bottom: 6px; }
.af-terms-grid dd { margin: 0; font-size: .9375rem; overflow-wrap: anywhere; }
.af-terms-copy { white-space: pre-wrap; overflow-wrap: anywhere; }
#programme-terms > p { margin-bottom: 0; }
#programme-terms > .af-muted { margin-bottom: 20px; }
#programme-terms ul { padding-left: 20px; font-size: .9375rem; }
#account { max-width: 760px; margin: 24px auto 72px; padding: 36px; }
.af-section-top { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; }
.af-section-top > * { min-width: 0; }
.af-section-top h2 { margin-bottom: 8px; }
#account-state { overflow-wrap: anywhere; }
.af-two, .af-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 24px; }
#dashboard .af-two > .af-card:only-child { grid-column: 1 / -1; }
#dashboard .af-two > .af-card:only-child .af-money { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.af-form { max-width: 760px; margin-top: 28px; align-items: end; }
.af-form > * { min-width: 0; }
.af-form label { display: flex; flex-direction: column; gap: 8px; font-size: .9375rem; }
.af-form input, .af-form select, .af-form textarea, .af-filters input, .af-filters select {
  width: 100%; min-width: 0; min-height: 48px; padding: 12px 14px;
  border: 1px solid #ffffff2e; border-radius: 9px; background: #121214;
  color: white; font: 1.0625rem/1.4 var(--af-reading);
}
.af-form input:focus, .af-form select:focus, .af-form textarea:focus { border-color: var(--af-accent); }
.af-form textarea { min-height: 130px; resize: vertical; }
.af-form input[readonly] { color: var(--af-muted); }
.af-form p { margin: 0; grid-column: 1 / -1; }
.af-form .af-check { grid-column: 1 / -1; display: flex; flex-direction: row; align-items: flex-start; }
.af-check input { width: 20px; height: 20px; min-height: 20px; flex-shrink: 0; margin: 3px 0; accent-color: var(--af-purple); }
.af-muted { font-size: .8125rem; color: var(--af-muted); }
.af-tabs { display: flex; gap: 4px; margin: 28px auto 0; width: fit-content; max-width: 100%; border: 1px solid var(--af-edge); border-radius: 10px; padding: 4px; background: #121214; }
.af-tabs button { min-height: 44px; border: none; border-radius: 7px; background: transparent; font-size: .9375rem; }
.af-tabs button[aria-pressed=true] { background: var(--af-purple); color: white; }
#auth-form { grid-template-columns: 1fr; max-width: 100%; }
#reset-password { background: transparent; border-color: transparent; font-size: .9375rem; color: var(--af-body); width: fit-content; margin-inline: auto; }
.af-icon { display: inline-block; width: 1.1765em; height: 1.1765em; flex: 0 0 auto; vertical-align: middle; }
.af-field-label { display: inline-flex; align-items: center; gap: 9px; }
.af-field-label .af-icon { color: var(--af-muted); }
.af-provider-buttons { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 28px; }
.af-provider { width: 100%; gap: 12px; min-height: 52px; padding: 12px 16px; }
.af-provider img { width: 20px; height: 20px; object-fit: contain; flex-shrink: 0; }
.af-provider-google { background: #fff; color: #1f1f1f; border-color: #747775; }
.af-provider-google:hover:not(:disabled) { background: #f2f2f2; border-color: #747775; }
.af-provider-apple { background: #050506; color: #fff; border-color: #8e918f; }
.af-provider-apple:hover:not(:disabled) { background: #151516; border-color: #b5b5b5; }
.af-provider:disabled { opacity: 1; cursor: not-allowed; box-shadow: none; }
.af-provider-note { margin: 12px 0 0; font-size: .9375rem; color: var(--af-muted); }
.af-auth-divider { display: flex; align-items: center; justify-content: center; gap: 10px; margin: 28px 0 0; color: var(--af-muted); font-size: .8125rem; }
.af-auth-divider::before, .af-auth-divider::after { content: ''; height: 1px; background: var(--af-edge); flex: 1; }
#verify-account button { margin: 8px 8px 0 0; }
#notice:empty { display: none; }
#notice:not(:empty) { position: sticky; top: 12px; z-index: 10; padding: 16px 20px; border: 1px solid #ffffff38; border-radius: 10px; background: #242427; margin: 16px auto; max-width: 760px; font-size: .9375rem; box-shadow: 0 8px 24px #0004; }
.af-sandbox { padding: 10px 24px; background: #202124; color: #d9cfff; text-align: center; font-size: .8125rem; border-bottom: 1px solid var(--af-edge); }
.af-code { font-family: var(--af-display); font-size: 1.75rem; letter-spacing: .06em; overflow-wrap: anywhere; }
.af-filters { display: flex; align-items: end; flex-wrap: wrap; gap: 12px; margin: 24px 0; }
.af-filters label { font-size: .9375rem; display: grid; gap: 6px; }
.af-metrics { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; margin: 24px 0; }
.af-metrics .af-card { margin: 0; padding: 24px; }
.af-metrics dt { font-size: .9375rem; color: var(--af-body); }
.af-metrics dd { font: 700 1.75rem/1.2 var(--af-display); font-variant-numeric: tabular-nums; margin: 14px 0 10px; }
.af-metrics small { display: block; font-size: .8125rem; color: var(--af-muted); }
.af-dashboard-mission { margin-top: 24px; }
.af-dashboard-mission > .af-eyebrow { margin-bottom: 10px; }
.af-dashboard-mission > p:not(.af-eyebrow) { max-width: 70ch; }
.af-dashboard-mission details { margin-top: 20px; }
.af-dashboard-mission summary, .af-referral-breakdown > summary { cursor: pointer; font-size: .9375rem; min-height: 44px; padding-block: 10px; }
.af-mission-details { padding-top: 24px; }
.af-mission-details > h3 { margin-top: 28px; }
.af-mission-details > h3:first-child { margin-top: 0; }
.af-mission-details .af-tiktok-profile { background: var(--af-bg); }
.af-impact { margin: 36px 0 20px; }
.af-impact .af-section-heading { margin-bottom: 24px; }
.af-impact .af-section-heading > p:last-child { margin: 12px 0 0; font-size: .9375rem; }
.af-impact-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.af-impact-grid .af-card { margin: 0; }
.af-impact-grid .af-dashboard-art { margin-bottom: 20px; }
.af-impact-grid h3 { margin-bottom: 16px; }
.af-impact-value { color: var(--af-text); font: 700 1.5rem/1.3 var(--af-reading); font-variant-numeric: tabular-nums; margin-bottom: 10px; overflow-wrap: anywhere; }
.af-impact-currency { display: block; }
.af-impact-currency + .af-impact-currency { margin-top: 10px; }
.af-impact-currency > span { font-size: .9375rem; font-weight: 500; }
.af-impact-label { color: var(--af-text); font-size: .9375rem; margin-bottom: 8px; }
.af-impact-note { font-size: .9375rem; margin-bottom: 0; }
.af-impact-privacy { margin: 16px 0 0; font-size: .8125rem; }
.af-referral-breakdown { margin: 0 0 24px; }
.af-dashboard-art { width: 64px; height: 64px; flex: 0 0 64px; object-fit: contain; border-radius: 14px; }
.af-art-heading { display: flex; align-items: center; gap: 16px; min-width: 0; margin-bottom: 20px; }
.af-art-heading > div { min-width: 0; }
.af-art-heading h2, .af-card .af-art-heading h2 { margin: 0; font-size: 1.25rem; }
.af-art-heading .af-eyebrow { margin-bottom: 6px; font-size: .8125rem; }
.af-metrics dt .af-dashboard-art { margin-bottom: 16px; }
.af-art-summary { display: flex; align-items: center; gap: 16px; list-style: none; font: 700 1.25rem/1.3 var(--af-display); }
.af-art-summary::-webkit-details-marker { display: none; }
.af-art-summary > span { flex: 1; min-width: 0; }
.af-art-summary::after { content: '+'; color: var(--af-muted); font: 400 1.5rem var(--af-reading); }
details[open] > .af-art-summary::after { content: '−'; }
.af-art-summary .af-dashboard-art { width: 48px; height: 48px; flex-basis: 48px; border-radius: 10px; }
details[open] > .af-art-summary { margin-bottom: 20px; }
#admin .af-record + .af-record { border-top: 1px solid var(--af-edge); }
@media (max-width: 640px) {
  .af-dashboard-art { width: 56px; height: 56px; flex-basis: 56px; }
  .af-art-heading, .af-art-summary { gap: 12px; }
  #dashboard .af-two > .af-card:only-child .af-money { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.af-money { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.af-money dt { font-size: .9375rem; color: var(--af-body); }
.af-money dd { font: 700 1.5rem/1.2 var(--af-display); font-variant-numeric: tabular-nums; margin: 6px 0 0; overflow-wrap: anywhere; }
.af-money-positive { color: var(--af-money-positive); }
.af-money-pending { color: var(--af-money-pending); }
.af-money-reserved { color: var(--af-money-reserved); }
.af-money-negative { color: var(--af-money-negative); }
.af-money-neutral { color: var(--af-text); }
.af-table-wrap { max-width: 100%; overflow: auto; overscroll-behavior-x: contain; margin: 16px 0; }
table { border-collapse: collapse; width: 100%; font-size: .9375rem; text-align: left; }
th, td { padding: 16px 12px; border-bottom: 1px solid var(--af-edge); vertical-align: top; }
th { color: var(--af-muted); font-size: .8125rem; font-weight: 600; }
td { overflow-wrap: anywhere; }
.af-empty { color: var(--af-body); padding: 22px 0; font-size: .9375rem; }
.af-chart { height: 160px; display: flex; align-items: flex-end; gap: 5px; padding-top: 14px; }
.af-chart span { flex: 1; min-width: 0; background: var(--af-accent); border-radius: 3px 3px 0 0; height: var(--bar); }
.af-chart-legend { display: flex; justify-content: space-between; font-size: .8125rem; color: var(--af-muted); margin: 8px 0 20px; }
.af-admin-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.af-admin-actions button { font-size: .9375rem; }
.af-resource-list { padding-left: 20px; }
.af-resource-list li { margin-bottom: 10px; }
#dashboard, #admin { padding-top: 24px; }
#admin pre { white-space: pre-wrap; overflow-wrap: anywhere; font-size: .8125rem; }
#admin details { padding-block: 24px; }
#admin summary { overflow-wrap: anywhere; }
#admin .af-filters label { max-width: 100%; }
#admin input, #admin textarea { min-width: 0; }
summary { cursor: pointer; min-height: 44px; padding-block: 10px; }
.af-guidance { padding: 72px 0; border-top: 1px solid var(--af-edge); margin-top: 48px; }
.af-guidance .af-two { gap: 24px; }
.af-guidance-card { margin-bottom: 0; }
.af-guidance-art { width: 72px; height: 72px; object-fit: contain; border-radius: 14px; margin-bottom: 20px; }
.af-guidance h3 { margin-bottom: 12px; }
.af-guidance p:not(.af-eyebrow) { margin-bottom: 0; font-size: 1.0625rem; }
.af-faq { display: grid; grid-template-columns: minmax(0, 1fr); gap: 28px; padding: 72px 0 96px; border-top: 1px solid var(--af-edge); }
.af-faq .af-section-heading { margin-bottom: 0; }
.af-faq h2 { margin: 0; }
.af-faq details { padding: 12px 0; border-bottom: 1px solid var(--af-edge); }
.af-faq details:first-child { padding-top: 0; }
.af-faq summary { list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 24px; font-size: 1.0625rem; }
.af-faq summary::-webkit-details-marker { display: none; }
.af-faq summary::after { content: '+'; color: var(--af-muted); font-size: 1.5rem; flex-shrink: 0; }
.af-faq details[open] summary::after { content: '−'; }
.af-faq details p { font-size: .9375rem; margin: 12px 32px 12px 0; }
/* A raised neutral header makes every affiliate disclosure a visible inner card. */
.af-main details > summary {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  min-height: 56px; width: 100%; padding: 16px 20px; list-style: none;
  color: var(--af-text); background: #2c2d31; border: 1px solid #ffffff1c;
  border-radius: 12px; box-shadow: 0 2px 6px #00000024; line-height: 1.45;
  overflow-wrap: anywhere;
}
.af-main details > summary:not(.af-art-summary) { font-size: 1.0625rem; font-weight: 600; }
.af-main details > summary::-webkit-details-marker { display: none; }
.af-main details > summary::after {
  content: ''; display: block; width: 9px; height: 9px; flex: 0 0 9px;
  margin: -4px 3px 0 8px; border: solid var(--af-muted); border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}
.af-main details[open] > summary { margin-bottom: 20px; }
.af-main details[open] > summary::after { content: ''; transform: rotate(225deg); margin-top: 4px; }
.af-main details > summary:hover { background: #323338; }
.af-main .af-card details + details { margin-top: 16px; }
.af-main .af-faq details, .af-main .af-referral-breakdown {
  background: var(--af-surface); border: 1px solid var(--af-edge); border-radius: 18px; padding: 12px;
}
.af-main .af-faq details { margin-bottom: 12px; }
.af-main .af-faq details p { margin: 16px 8px 8px; }
.af-main .af-referral-breakdown > .af-metrics { margin-bottom: 0; }
#admin .af-customer-offer details { padding: 0; }
.af-footer { width: min(1440px, calc(100% - 80px)); margin: 0 auto; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 24px; padding: 32px 0; border-top: 1px solid var(--af-edge); }
.af-footer nav { display: flex; align-items: center; flex-wrap: wrap; gap: 24px; }
.af-footer nav a { color: var(--af-body); font-size: .9375rem; text-decoration: none; }
.af-footer > span { color: var(--af-muted); font-size: .8125rem; }
.af-signed-in [data-public-section], .af-signed-in .af-nav-join { display: none; }
.af-signed-in #account { margin-top: 36px; }
@media (max-width: 1040px) {
  .af-how ol { --step-gap: 32px; }
  .af-how li { padding: 20px; }
}
@media (max-width: 960px) {
  .af-mission { gap: 40px; }
  .af-terms-section, .af-faq { grid-template-columns: 1fr; gap: 24px; }
  .af-terms-section .af-section-heading, .af-faq .af-section-heading { margin-bottom: 0; }
  .af-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .af-impact-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .af-header-inner { padding: 12px 20px; gap: 12px; flex-wrap: wrap; }
  .af-brand img { width: 90px; height: auto; }
  .af-header nav { gap: 6px; }
  .af-nav-account { padding: 10px; }
  .af-header .af-button, .af-header button { padding: 10px 12px; font-size: .9375rem; }
  .af-main, .af-footer { width: calc(100% - 40px); }
  .af-intro { padding: 64px 0 56px; }
  .af-intro.af-intro-with-art { padding: 32px 0 48px; }
  .af-eyebrow { margin-bottom: 16px; }
  .af-lead { line-height: 1.65; }
  .af-desktop-break { display: none; }
  .af-mission { grid-template-columns: 1fr; gap: 32px; padding: 24px 0 56px; }
  .af-mission-copy p:not(.af-eyebrow) { max-width: none; }
  .af-mission-photo { border-radius: 20px; }
  .af-proof-section { padding-bottom: 48px; }
  .af-tiktok-profile-top { gap: 12px; flex-wrap: wrap; }
  .af-tiktok-avatar { flex-basis: 48px; width: 48px; height: 48px; }
  .af-tiktok-label > span { display: none; }
  .af-tiktok-stats { gap: 24px; }
  .af-tiktok-profile-bottom { align-items: stretch; }
  .af-tiktok-link { width: 100%; }
  .af-wall-intro > span { display: block; margin-top: 4px; }
  .af-mission-bridge { flex-direction: column; gap: 16px; }
  .af-opportunity { padding: 20px 0 48px; }
  .af-provider-buttons { grid-template-columns: 1fr; }
  .af-how, .af-guidance { padding: 48px 0; }
  .af-creator-army { grid-template-columns: 1fr; gap: 24px; padding: 24px; margin-bottom: 48px; border-radius: 20px; }
  .af-creator-army img { width: min(100%, 360px); margin-inline: auto; }
  .af-how ol { margin-top: 28px; grid-template-columns: repeat(4, minmax(min(78vw, 18rem), 1fr)); }
  .af-step-art { width: 56px; height: 56px; }
  .af-card { padding: 22px; border-radius: 16px; }
  .af-terms-section { padding: 48px 0; }
  .af-two, .af-form, .af-terms-grid, .af-money { grid-template-columns: 1fr; }
  .af-form { gap: 20px; }
  #account { padding: 24px; margin: 8px 0 48px; }
  .af-section-top { align-items: flex-start; }
  .af-tabs { width: 100%; }
  .af-tabs button { flex: 1; }
  .af-metrics { gap: 12px; }
  .af-metrics .af-card { padding: 18px; }
  .af-code { font-size: 1.5rem; }
  .af-filters > * { flex: 1 1 130px; }
  .af-guidance .af-two { gap: 20px; }
  .af-guidance-art { width: 56px; height: 56px; margin-bottom: 16px; }
  .af-faq { padding: 48px 0 64px; gap: 28px; }
  .af-footer { align-items: flex-start; }
  .af-footer nav { gap: 16px; }
}
@media (max-width: 380px) {
  .af-header nav { width: 100%; justify-content: space-between; }
  .af-metrics { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
@media (prefers-reduced-motion: no-preference) {
  details[open] > :not(summary) { animation: af-disclose .24s ease-out; }
  .af-comment-source > span, .af-tiktok-link > span { transition: transform .2s ease; }
  .af-comment-source:hover > span, .af-tiktok-link:hover > span { transform: translate(2px, -2px); }
}
@keyframes af-disclose { from { opacity: 0; transform: translateY(5px); } to { opacity: 1; transform: translateY(0); } }

/* A single creator workspace. Public and owner screens retain their existing layout. */
.af-creator-workspace #terms, .af-creator-workspace #guidance, .af-creator-workspace .af-faq, .af-creator-workspace #email-divider { display: none; }
.af-creator-workspace #account { max-width: none; padding: 0; margin: 16px 0; background: transparent; border: 0; box-shadow: none; }
.af-creator-workspace #account > .af-section-top > div:first-child { display: none; }
.af-creator-workspace #account-state { font-size: .9375rem; }
#dashboard .af-workspace { padding: 28px; margin: 0 0 24px; }
.af-work-header { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 24px; margin-bottom: 24px; }
.af-work-header .af-art-heading { margin: 0; }
.af-work-header .af-art-heading h2 { font-size: 1.75rem; overflow-wrap: anywhere; }
.af-work-header p { margin: 8px 0 0; font-size: .9375rem; overflow-wrap: anywhere; }
.af-work-status { display: inline-block; margin-left: 8px; color: var(--af-muted); text-transform: capitalize; }
.af-work-code { display: flex; align-items: center; flex-wrap: wrap; gap: 16px; min-width: 0; }
.af-work-code > span { color: var(--af-body); font-size: .9375rem; }
.af-work-code strong { display: block; color: var(--af-text); font-size: 1.0625rem; overflow-wrap: anywhere; letter-spacing: .04em; }
.af-work-table { border: 1px solid var(--af-edge); border-radius: 12px; }
.af-work-table:focus-visible, [role=tabpanel]:focus-visible { outline: 3px solid var(--af-accent); outline-offset: 3px; }
.af-work-table th { font-size: .9375rem; color: var(--af-body); font-weight: 400; background: #ffffff04; }
.af-work-table th, .af-work-table td { padding: 16px; vertical-align: middle; }
.af-work-table tr:last-child td { border-bottom: 0; }
.af-work-table td { font-variant-numeric: tabular-nums; }
.af-work-balances td { font-size: 1.0625rem; }
.af-work-balances td > strong { white-space: nowrap; }
.af-work-balances td:last-child { width: 160px; }
.af-work-balances button { width: 100%; }
.af-work-balances small { display: block; font-size: .8125rem; color: var(--af-muted); margin-top: 6px; text-align: center; white-space: nowrap; }
.af-work-note { font-size: .9375rem; line-height: 1.5; color: var(--af-body); margin: 16px 0 0; }
.af-work-note.af-money-negative { color: var(--af-money-negative); }
.af-work-tabs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 4px; border: 1px solid var(--af-edge); background: #121214; border-radius: 12px; padding: 5px; margin: 28px 0 24px; }
.af-work-tabs button { border: 0; background: transparent; color: var(--af-body); padding: 12px; box-shadow: none; min-width: 0; overflow-wrap: anywhere; }
.af-work-tabs button[aria-selected=true] { background: var(--af-purple); color: #fff; }
.af-work-tabs button:hover:not([aria-selected=true]) { background: #ffffff0a; }
.af-work-filter { margin: 0 0 24px; gap: 12px; }
.af-work-filter label { flex: 0 1 180px; min-width: 0; }
.af-work-filter input { color-scheme: dark; }
.af-work-panel-title { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; margin-bottom: 16px; }
.af-work-panel-title h3 { margin: 0; }
.af-work-panel-title button, .af-work-panel-title .af-button, .af-work-table button { font-size: 1.0625rem; }
.af-work-rules { table-layout: fixed; }
.af-work-rules th, .af-work-rules td { padding: 14px 12px; vertical-align: top; font-size: .9375rem; overflow-wrap: anywhere; }
.af-work-rules th { width: 30%; font-weight: 400; color: var(--af-body); }
.af-work-rules td { color: var(--af-text); }
.af-work-rules tr:first-child > * { border-top: 1px solid var(--af-edge); }
.af-work-subtitle { margin: 28px 0 16px; }
.af-work-daily { max-height: 320px; overflow: auto; }
.af-work-daily th { position: sticky; top: 0; background: var(--af-surface); }
.af-work-history { max-height: 340px; overflow: auto; }
.af-work-updated { color: var(--af-muted); font-size: .8125rem; margin: 24px 0 0; }
.af-work-empty { color: var(--af-muted); padding: 28px 16px !important; }
.af-work-dialog { width: min(620px, calc(100% - 32px)); max-height: calc(100dvh - 48px); padding: 28px; border: 1px solid #ffffff26; border-radius: 20px; background: var(--af-surface); color: var(--af-text); box-shadow: 0 24px 80px #0008; overflow: auto; }
.af-work-dialog::backdrop { background: #000a; }
.af-work-dialog > header { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 24px; }
.af-work-dialog h2 { font-size: 1.5rem; margin: 0; }
.af-work-dialog .af-form { grid-template-columns: 1fr; gap: 16px; max-width: none; margin: 24px 0; }
.af-work-dialog #withdraw-error:empty { display: none; }
.af-work-dialog .af-terms-copy { font-size: 1.0625rem; }
.af-work-available { color: var(--af-money-positive); font: 700 1.75rem/1.25 var(--af-reading); margin: 0; }
.af-work-available > span { display: block; font-size: .9375rem; font-weight: 400; color: var(--af-body); margin-top: 8px; }
@media (max-width: 760px) {
  #dashboard .af-workspace { padding: 20px; }
  .af-work-header { align-items: flex-start; }
  .af-work-header .af-art-heading h2 { font-size: 1.5rem; }
  .af-work-code { width: 100%; justify-content: space-between; }
  .af-work-table.af-work-balances { overflow: visible; }
  .af-work-balances table, .af-work-balances tbody { display: block; }
  .af-work-balances thead, .af-work-history thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .af-work-balances tbody > tr { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 7rem), 1fr)); }
  .af-work-balances tbody > tr + tr { border-top: 1px solid var(--af-edge); }
  .af-work-balances td { display: block; padding: 12px 16px; border: 0; min-width: 0; }
  .af-work-balances td::before { content: attr(data-label); display: block; font-size: .9375rem; color: var(--af-body); margin-bottom: 4px; }
  .af-work-balances td:first-child, .af-work-balances td:last-child { grid-column: 1 / -1; width: auto; }
  .af-work-balances td:first-child::before, .af-work-balances td:last-child::before { display: none; }
  .af-work-balances td:first-child { padding-bottom: 0; }
  .af-work-balances td > strong { white-space: normal; overflow-wrap: anywhere; }
  .af-work-tabs { grid-template-columns: repeat(auto-fit, minmax(min(100%, 8rem), 1fr)); gap: 6px; }
  .af-work-filter { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 8rem), 1fr)); }
  .af-work-filter label { width: 100%; }
  .af-work-filter input { padding: 10px 8px; }
  .af-work-history table, .af-work-history tbody { display: block; }
  .af-work-history tr { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); padding: 12px; gap: 12px; }
  .af-work-history tr + tr { border-top: 1px solid var(--af-edge); }
  .af-work-history td { padding: 0; border: 0; overflow-wrap: anywhere; min-width: 0; }
  .af-work-history td::before { content: attr(data-label); display: block; color: var(--af-body); font-size: .8125rem; margin-bottom: 4px; }
  .af-work-history td:last-child { grid-column: 1 / -1; }
  .af-work-history td:last-child::before { display: none; }
  .af-work-history td:last-child button { width: 100%; }
  .af-work-rules th { width: 38%; }
  .af-work-rules th, .af-work-rules td { padding: 12px 8px; }
  .af-work-dialog { padding: 20px; }
}
