/* =============================================================================
   Lewelup V1 — design system
   Matches the Lewelup website: pure black, white, Anton headings, Inter Tight body,
   DM Sans for buttons/labels, a glowing brand ribbon (blue → violet → orange),
   marquee strips and black ↔ white section switches.

   Sections in this file:
     1. Fonts            5. Hero + ribbon      9. Campaign list
     2. Tokens           6. Marquee           10. Done page
     3. Base             7. Steps             11. Admin
     4. Nav / footer     8. White panel + form 12. Motion + accessibility
   ========================================================================== */

/* 1. Fonts (self-hosted, subset to Latin + ₹) ------------------------------ */
@font-face { font-family: "Anton"; src: url("/static/fonts/Anton-Regular.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Archivo Black"; src: url("/static/fonts/ArchivoBlack-Regular.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "DM Sans"; src: url("/static/fonts/DMSans.woff2") format("woff2"); font-weight: 100 1000; font-display: swap; }
@font-face { font-family: "Inter Tight"; src: url("/static/fonts/InterTight.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "JetBrains Mono"; src: url("/static/fonts/JetBrainsMono.woff2") format("woff2"); font-weight: 100 800; font-display: swap; }

/* 2. Tokens ---------------------------------------------------------------- */
:root {
  --black: #000000;
  --white: #ffffff;
  --grey-1: #8a8a8a;          /* muted text on black */
  --grey-2: #3d3d3d;          /* muted text on white */
  --grey-soft: #f2f2f0;       /* inputs / soft fills on white */
  --line: rgba(255, 255, 255, 0.16);
  --line-dark: rgba(0, 0, 0, 0.14);
  --blue: #3e6fff;
  --violet: #8b5cf6;
  --orange: #f0824f;
  --brand-gradient: linear-gradient(90deg, var(--blue), var(--violet), var(--orange));
  --green: #1f9d55;
  --red: #e5484d;
  --red-soft: #fdebec;
  --amber: #f5a524;
  --ease: cubic-bezier(0.16, 0.84, 0.32, 1);
  --font-display: "Anton", Impact, "Arial Narrow", Arial, sans-serif;
  --font-brand: "Archivo Black", Impact, Arial, sans-serif;
  --font-ui: "DM Sans", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --font-body: "Inter Tight", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
  --periwinkle: #9ea9ff;  /* mono eyebrows on black (passes contrast) */
  --wrap: 1120px;
  --gutter: clamp(20px, 5vw, 56px);
}

/* 3. Base ------------------------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; }
html { background: var(--black); -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
[id] { scroll-margin-top: 84px; } /* anchor jumps land below the sticky nav */
body {
  margin: 0;
  background: var(--black);
  color: var(--white);
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
::selection { background: var(--white); color: var(--black); }
a { color: inherit; }
img { display: block; max-width: 100%; }
h1, h2, h3, p { margin: 0; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.display {
  font-family: var(--font-display);
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: -0.01em;
  line-height: 0.94;
}
.muted { color: var(--grey-1); }
.on-white .muted { color: var(--grey-2); }
.small { font-size: 0.875rem; }
.hidden { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Buttons: pill shapes from the website */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 14px 26px;
  border-radius: 999px; border: 1.5px solid transparent;
  font-family: var(--font-ui); font-size: 15px; font-weight: 700; letter-spacing: 0.02em;
  text-decoration: none; cursor: pointer;
  transition: transform 0.35s var(--ease), background 0.3s var(--ease), color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
@media (hover: hover) { .btn:hover { transform: translateY(-2px); } }
.btn:disabled { opacity: 0.6; cursor: wait; transform: none; }
.btn-light { background: var(--white); color: var(--black); }
.btn-light:hover { box-shadow: 0 10px 28px rgba(255, 255, 255, 0.22); }
.btn-dark { background: var(--black); color: var(--white); }
.btn-dark:hover { box-shadow: 0 10px 28px rgba(0, 0, 0, 0.25); }
.btn-outline { border-color: currentColor; background: transparent; color: inherit; }
.btn-whatsapp { background: #25d366; color: #04210f; }
.btn-danger { border-color: var(--red); color: var(--red); background: transparent; }
.btn-danger:hover { background: var(--red); color: var(--white); }
.btn-block { width: 100%; }
.btn-sm { min-height: 40px; padding: 8px 16px; font-size: 13.5px; }

/* Pills / tags */
.tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tag {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 14px; border-radius: 999px;
  border: 1px solid var(--line); color: var(--white);
  font-family: var(--font-ui); font-size: 13px; font-weight: 600;
}
.on-white .tag { border-color: var(--line-dark); color: var(--black); }
.tag-live { border-color: transparent; background: rgba(31, 157, 85, 0.16); color: #6fe3a1; }
.on-white .tag-live { background: #e3f6eb; color: #137a40; }
.tag-closed { border-color: transparent; background: rgba(255, 255, 255, 0.1); color: var(--grey-1); }
.on-white .tag-closed { background: var(--grey-soft); color: var(--grey-2); }
.live-dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; box-shadow: 0 0 0 3px rgba(111, 227, 161, 0.25); }

/* 4. Nav / footer ---------------------------------------------------------- */
.nav {
  position: sticky; top: 0; z-index: 30;
  background: rgba(0, 0, 0, 0.72);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 68px; }
.wordmark { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; font-family: var(--font-brand); font-size: 19px; letter-spacing: 0.04em; }
.wordmark-mark {
  display: inline-grid; place-items: center; width: 34px; height: 34px;
  background: var(--white); color: var(--black); border-radius: 8px;
  font-family: var(--font-brand); font-size: 17px;
}
.nav-links { display: flex; align-items: center; gap: clamp(14px, 3vw, 28px); font-family: var(--font-mono); font-size: 13px; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; }
.nav-links a { text-decoration: none; opacity: 0.85; white-space: nowrap; }
.nav-links a:hover, .nav-links a[aria-current="page"] { opacity: 1; }
.nav-links form { margin: 0; }
.nav-links button { background: none; border: 0; color: inherit; font: inherit; cursor: pointer; opacity: 0.85; padding: 0; }
.footer { border-top: 1px solid var(--line); padding: 44px 0 34px; color: var(--grey-1); font-size: 14.5px; }
.footer-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 28px 48px; }
.footer-about p { margin-top: 14px; max-width: 46ch; line-height: 1.6; }
.footer-links { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; font-family: var(--font-ui); font-weight: 600; }
.footer-links a { color: var(--white); text-decoration: none; opacity: 0.85; }
.footer-links a:hover { opacity: 1; text-decoration: underline; }
.footer-base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; margin-top: 32px; padding-top: 20px; border-top: 1px solid var(--line); font-size: 13.5px; }
.footer .wordmark { font-size: 15px; color: var(--white); }
.footer .wordmark-mark { width: 26px; height: 26px; font-size: 13px; border-radius: 6px; }
@media (max-width: 720px) { .footer-grid { grid-template-columns: 1fr; } }

.skip-link { position: absolute; left: 12px; top: -60px; z-index: 100; padding: 10px 16px; border-radius: 10px; background: var(--white); color: var(--black); font-family: var(--font-ui); font-weight: 700; text-decoration: none; }
.skip-link:focus { top: 12px; }

/* 5. Hero + ribbon --------------------------------------------------------- */
.hero { position: relative; overflow: hidden; isolation: isolate; padding: clamp(56px, 10vw, 120px) 0 clamp(48px, 8vw, 96px); }
.hero-tall { min-height: min(88svh, 820px); display: flex; align-items: flex-end; }
@media (max-width: 640px) { .hero-tall { min-height: min(72svh, 640px); } }
.ribbon {
  position: absolute; inset: 0; z-index: -1; width: 100%; height: 100%;
  pointer-events: none;
}
.hero::after { /* soft fade so text stays readable over the ribbon */
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(180deg, rgba(0,0,0,0) 30%, rgba(0,0,0,0.75) 100%);
}
.hero-title { font-size: clamp(46px, 11.5vw, 132px); margin: 18px 0 22px; max-width: 13ch; overflow-wrap: anywhere; }
.hero-title.size-m { font-size: clamp(40px, 9vw, 104px); }
.hero-lead { max-width: 54ch; font-size: clamp(16px, 2.2vw, 19px); line-height: 1.6; color: #d0d0d0; font-weight: 500; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.brand-line { display: inline-flex; align-items: center; gap: 10px; color: var(--blue); font-family: var(--font-ui); font-weight: 700; font-size: 15px; }
.brand-line::before { content: ""; width: 28px; height: 2px; background: var(--brand-gradient); border-radius: 2px; }
.facts { display: flex; flex-wrap: wrap; gap: 10px 26px; margin-top: 26px; font-family: var(--font-ui); font-size: 15px; color: #d0d0d0; }
.facts strong { color: var(--white); font-weight: 700; }

/* Headline lines rise in once on load (website signature) */
.rise { display: block; overflow: hidden; }
.rise > span { display: block; transform: translateY(105%); animation: riseUp 1s var(--ease) forwards; }
.rise:nth-child(2) > span { animation-delay: 0.12s; }
.rise:nth-child(3) > span { animation-delay: 0.24s; }
@keyframes riseUp { to { transform: translateY(0); } }

/* Calm ribbon for working screens (login): dimmer, kept to the right */
.ribbon-calm { opacity: 0.45; }

/* Login: heading + note | card, aligned with the logo */
.login-hero { align-items: center; }
.login-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: clamp(28px, 6vw, 88px); align-items: center; }
.login-card { border-radius: 24px; padding: clamp(24px, 4vw, 36px); box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45); position: relative; }
.login-card-title { font-family: var(--font-ui); font-size: 22px; font-weight: 700; margin-bottom: 18px; }
.login-foot { margin-top: 16px; color: var(--grey-2); font-size: 13.5px; text-align: center; }
@media (max-width: 880px) { .login-grid { grid-template-columns: 1fr; } .login-hero { align-items: flex-end; } }

/* Input with a button inside (e.g. Show / Hide) */
.has-action input { padding-right: 84px !important; }
.input-action {
  position: absolute; right: 8px; top: 50%; transform: translateY(-50%);
  min-height: 40px; padding: 0 14px; border-radius: 10px; border: 0; cursor: pointer;
  background: var(--white); color: var(--black); font-family: var(--font-ui); font-weight: 700; font-size: 13.5px;
  box-shadow: 0 0 0 1px var(--line-dark);
}
.input-action:hover { background: #f7f7f5; }

/* 6. Marquee --------------------------------------------------------------- */
.marquee { overflow: hidden; background: var(--white); color: var(--black); border-block: 1px solid var(--line-dark); }
.marquee-track {
  display: flex; align-items: center; gap: 40px; width: max-content;
  padding: 16px 0; white-space: nowrap;
  font-family: var(--font-display); font-size: clamp(26px, 5vw, 52px); text-transform: uppercase; letter-spacing: -0.01em;
  animation: marqueeLeft 26s linear infinite;
}
.marquee-track .sep { opacity: 0.35; }
@keyframes marqueeLeft { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* 7. Steps (a real sequence: join → share → earn) -------------------------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); border-bottom: 1px solid var(--line); }
.step { padding: 28px var(--gutter) 30px 0; border-right: 1px solid var(--line); }
.step:last-child { border-right: 0; }
.step + .step { padding-left: clamp(16px, 3vw, 32px); }
.step-num { font-family: var(--font-display); font-size: 40px; line-height: 1; color: transparent; -webkit-text-stroke: 1px rgba(255,255,255,0.55); }
.step h3 { font-family: var(--font-ui); font-size: 18px; font-weight: 700; margin: 12px 0 6px; }
.step p { color: var(--grey-1); font-size: 15px; }
@media (max-width: 720px) {
  .steps { grid-template-columns: 1fr; }
  .step { border-right: 0; border-bottom: 1px solid var(--line); padding: 20px 0; display: grid; grid-template-columns: 48px 1fr; column-gap: 12px; }
  .step + .step { padding-left: 0; }
  .step:last-child { border-bottom: 0; }
  .step-num { font-size: 30px; grid-row: span 2; }
  .step h3 { margin: 2px 0 2px; }
}

/* 8. White panel + form ---------------------------------------------------- */
.on-white { background: var(--white); color: var(--black); }
.section { padding: clamp(40px, 7vw, 80px) 0; }
.panel-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.35fr); gap: clamp(28px, 6vw, 80px); align-items: start; }
.panel-aside { position: sticky; top: 96px; }
.panel-aside h2 { font-size: clamp(36px, 6vw, 64px); margin-bottom: 14px; }
@media (max-width: 880px) { .panel-grid { grid-template-columns: 1fr; } .panel-aside { position: static; } }

.locked {
  display: flex; align-items: center; gap: 12px; margin: 22px 0 0;
  padding: 14px 16px; border-radius: 14px; background: var(--black); color: var(--white);
  font-family: var(--font-ui); font-size: 15px;
}
.locked .lock { display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--brand-gradient); flex: none; }
.locked small { display: block; color: var(--grey-1); font-size: 12.5px; }

.alert { border-radius: 14px; padding: 14px 16px; margin: 0 0 18px; font-family: var(--font-ui); font-weight: 600; background: var(--red-soft); color: #a3191e; }
.alert-ok { background: #e3f6eb; color: #137a40; }

.form { display: grid; gap: 22px; }
.field { display: grid; gap: 8px; }
.field > label, .field > legend, .field-label { font-family: var(--font-ui); font-weight: 700; font-size: 15px; }
.field .hint { color: var(--grey-2); font-size: 13.5px; font-weight: 500; }
.input-wrap { position: relative; }
.input-prefix { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); color: var(--grey-2); font-weight: 600; pointer-events: none; }
.has-prefix input { padding-left: 40px !important; }
.has-prefix.wide input { padding-left: 56px !important; }
.form input:not([type="checkbox"]):not([type="radio"]),
.form select,
.form textarea {
  width: 100%; min-height: 56px; padding: 14px 16px;
  font: inherit; font-size: 17px; font-weight: 500; color: var(--black);
  background: var(--grey-soft); border: 1.5px solid transparent; border-radius: 14px;
  transition: border-color 0.2s var(--ease), background 0.2s var(--ease), box-shadow 0.2s var(--ease);
  -webkit-appearance: none; appearance: none;
}
.form textarea { min-height: 104px; resize: vertical; }
.form select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.5'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 16px center; padding-right: 44px;
}
.form input:hover, .form select:hover, .form textarea:hover { background-color: #ebebe8; }
.form input:focus, .form select:focus, .form textarea:focus { outline: none; background-color: var(--white); border-color: var(--black); box-shadow: 0 0 0 4px rgba(0,0,0,0.08); }
/* Higher specificity than the base input rule above, so the state colours win */
.form .field.is-invalid input:not([type="checkbox"]):not([type="radio"]),
.form .field.is-invalid select,
.form .field.is-invalid textarea { border-color: var(--red); background-color: var(--white); }
.form .field.is-valid input:not([type="checkbox"]):not([type="radio"]) { border-color: rgba(31, 157, 85, 0.6); }
.field.is-invalid .chips .chip span, .field.is-invalid .choice .card { border-color: var(--red); }
.error { color: #c4161c; font-size: 14px; font-weight: 600; font-family: var(--font-ui); }
.error:empty { display: none; }
fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { position: relative; cursor: pointer; }
.chip input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.chip span {
  display: inline-flex; align-items: center; min-height: 44px; padding: 10px 16px;
  border-radius: 999px; border: 1.5px solid var(--line-dark); background: var(--white);
  font-family: var(--font-ui); font-weight: 600; font-size: 14.5px;
  transition: background 0.2s var(--ease), color 0.2s var(--ease), border-color 0.2s var(--ease);
}
.chip input:checked + span { background: var(--black); color: var(--white); border-color: var(--black); }
.chip input:focus-visible + span { outline: 3px solid var(--blue); outline-offset: 2px; }

.choices { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 560px) { .choices { grid-template-columns: 1fr; } }
.choice { position: relative; cursor: pointer; }
.choice input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.choice .card {
  display: grid; gap: 6px; height: 100%; padding: 18px; border-radius: 16px;
  border: 1.5px solid var(--line-dark); background: var(--white);
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease), background 0.2s var(--ease);
}
.choice .card strong { font-family: var(--font-ui); font-size: 16px; display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.choice .card span { color: var(--grey-2); font-size: 14px; }
.choice .tick { width: 22px; height: 22px; border-radius: 50%; border: 1.5px solid var(--line-dark); flex: none; display: grid; place-items: center; }
.choice input:checked + .card { border-color: var(--black); box-shadow: inset 0 0 0 1px var(--black); }
.choice input:checked + .card .tick { background: var(--black); border-color: var(--black); }
.choice input:checked + .card .tick::after { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--white); }
.choice input:focus-visible + .card { outline: 3px solid var(--blue); outline-offset: 2px; }

.consent { display: flex; gap: 12px; align-items: flex-start; padding: 16px; border-radius: 14px; background: var(--grey-soft); cursor: pointer; font-size: 14.5px; color: var(--grey-2); }
.consent input { width: 22px; height: 22px; margin: 1px 0 0; accent-color: var(--black); flex: none; }
.consent strong { color: var(--black); }

.submit-bar { position: sticky; bottom: 0; z-index: 5; margin: 6px calc(var(--gutter) * -1) 0; padding: 14px var(--gutter) calc(14px + env(safe-area-inset-bottom)); background: var(--white); border-top: 1px solid var(--line-dark); }
@media (min-width: 881px) { .submit-bar { margin: 6px 0 0; padding: 14px 0 18px; } }
.submit-bar .note { text-align: center; color: var(--grey-2); font-size: 13px; margin-top: 8px; }
.spinner { width: 18px; height: 18px; border-radius: 50%; border: 2.5px solid currentColor; border-right-color: transparent; animation: spin 0.8s linear infinite; display: none; }
.is-loading .spinner { display: inline-block; }
@keyframes spin { to { transform: rotate(360deg); } }

/* 9. Campaign list (rows, like the website's work grid) -------------------- */
.camp-list { border-top: 1px solid var(--line); }
.camp-row {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 18px 32px; align-items: center;
  padding: clamp(22px, 4vw, 34px) 0; border-bottom: 1px solid var(--line); text-decoration: none;
}
.camp-row h2 { font-size: clamp(32px, 6vw, 64px); margin: 12px 0 10px; transition: transform 0.4s var(--ease); }
@media (hover: hover) { .camp-row:hover h2 { transform: translateX(6px); } }
.camp-row p { color: #cfcfcf; max-width: 60ch; }
.camp-meta { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 12px; font-family: var(--font-ui); font-size: 14px; color: var(--grey-1); }
.camp-meta strong { color: var(--white); }
@media (max-width: 640px) { .camp-row { grid-template-columns: 1fr; } .camp-row .btn { width: 100%; } }

.progress { position: relative; height: 6px; border-radius: 999px; background: rgba(255,255,255,0.12); overflow: hidden; margin-top: 14px; max-width: 420px; }
.on-white .progress { background: #ececea; }
.progress > i { position: absolute; inset: 0 auto 0 0; width: var(--pct, 0%); border-radius: inherit; background: var(--brand-gradient); }

.empty { padding: clamp(40px, 8vw, 72px) 0; border-bottom: 1px solid var(--line); }
.empty h2 { font-size: clamp(32px, 6vw, 56px); margin-bottom: 12px; }
/* Campaigns page with nothing open: a calm panel instead of a giant heading */
.empty-panel { margin: 32px 0 72px; padding: clamp(28px, 5vw, 48px); border: 1px dashed rgba(255,255,255,0.28); border-radius: 22px; display: grid; gap: 14px; justify-items: start; background: radial-gradient(80% 120% at 100% 0%, rgba(139,92,246,0.16), rgba(0,0,0,0) 60%); }
.empty-panel h2 { margin: 0; font-size: clamp(30px, 4vw, 44px); }
.empty-panel p { margin: 0; max-width: 52ch; }

/* Trust list: short reassurances (not a sequence, so ticks, not numbers) */
.trust { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 12px; }
.trust li { display: grid; grid-template-columns: 24px 1fr; gap: 10px; align-items: start; font-size: 15px; }
.trust li::before { content: ""; width: 22px; height: 22px; margin-top: 1px; border-radius: 50%; background: var(--black) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 13px no-repeat; }
.trust strong { display: block; font-family: var(--font-ui); }
.trust span { color: var(--grey-2); font-size: 14px; }
.trust-dark li::before { background-color: var(--white); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='3'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E"); }
.trust-dark span { color: var(--grey-1); }
.trust-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px 32px; padding: 26px 0; border-bottom: 1px solid var(--line); margin: 0; }
@media (max-width: 720px) { .trust-row { grid-template-columns: 1fr; } }
.posted-by { margin-top: 18px; color: var(--grey-1); font-family: var(--font-ui); font-size: 14.5px; }
.posted-by strong { color: var(--white); }

/* "What happens next" (a real sequence, so numbered) */
.next { list-style: none; counter-reset: next; padding: 0; margin: 0; display: grid; gap: 0; border-top: 1px solid var(--line-dark); }
.next li { counter-increment: next; display: grid; grid-template-columns: 52px 1fr; gap: 14px; padding: 20px 0; border-bottom: 1px solid var(--line-dark); }
.next li::before { content: counter(next); font-family: var(--font-display); font-size: 34px; line-height: 1; }
.next strong { display: block; font-family: var(--font-ui); font-size: 17px; margin-bottom: 4px; }
.next span { color: var(--grey-2); }
.notice { margin-top: 22px; padding: 16px 18px; border-radius: 14px; background: #fff4e0; color: #6b4100; font-size: 14.5px; }
.notice strong { color: #4a2d00; }

/* Long-form text (privacy page) */
.prose { max-width: 68ch; } /* sits inside .wrap, left-aligned with the hero */
.prose h2 { font-family: var(--font-ui); font-size: 20px; font-weight: 700; margin: 34px 0 10px; }
.prose p, .prose li { color: var(--grey-2); line-height: 1.7; }
.prose ul { padding-left: 20px; margin: 10px 0; }
.prose a:not(.btn) { color: var(--black); }
.table-simple { margin: 12px 0; }
.table-simple td, .table-simple th { white-space: normal; vertical-align: top; }
.table-simple td:first-child { white-space: nowrap; }

/* 10. Done page ------------------------------------------------------------ */
.linkbox {
  display: flex; align-items: center; gap: 12px; margin-top: 26px; max-width: 640px;
  padding: 10px 10px 10px 18px; border-radius: 18px;
  background: rgba(255,255,255,0.08); border: 1px solid var(--line);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
}
.linkbox code { flex: 1; min-width: 0; font-family: var(--font-ui); font-size: 15px; font-weight: 600; word-break: break-all; color: var(--white); }
.on-white .linkbox { background: var(--grey-soft); border-color: transparent; }
.on-white .linkbox code { color: var(--black); }
.code-big { font-family: var(--font-display); font-size: clamp(40px, 9vw, 88px); line-height: 1; background: var(--brand-gradient); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* Creator login extras */
.code-input { text-align: center; letter-spacing: 0.5em; font-family: var(--font-ui) !important; font-weight: 700 !important; font-size: 26px !important; }
.login-alt { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; margin-top: 16px; }
.linkish { background: none; border: 0; padding: 0; cursor: pointer; font: inherit; font-family: var(--font-ui); font-weight: 600; font-size: 14.5px; color: var(--black); text-decoration: underline; }

/* Creator dashboard */
.earn { margin-top: 8px; }
.me-card { padding: clamp(24px, 4vw, 40px) 0; border-bottom: 1px solid var(--line-dark); }
.me-card:first-child { padding-top: 0; }
.me-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 16px; margin-bottom: 22px; }
.me-title { font-size: clamp(30px, 5vw, 52px); margin-top: 12px; }
.me-total { text-align: right; }
.me-total strong { display: block; font-family: var(--font-display); font-weight: 400; font-size: clamp(32px, 5vw, 48px); line-height: 1; }
.me-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 28px clamp(28px, 5vw, 64px); }
@media (max-width: 760px) { .me-grid { grid-template-columns: 1fr; } .me-total { text-align: left; } }
.me-sub { font-family: var(--font-ui); font-size: 16px; font-weight: 700; margin-bottom: 10px; }
.friends { list-style: none; margin: 0 0 18px; padding: 0; border-top: 1px solid var(--line-dark); }
.friends li { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--line-dark); font-weight: 600; }
.earn-table { margin-top: 8px; border: 1px solid var(--line-dark); border-radius: 14px; border-collapse: separate; overflow: hidden; }
.earn-table td { white-space: normal; }
.earn-total td { font-weight: 800; font-family: var(--font-ui); background: #fafaf8; }
.on-white .linkbox code { font-size: 14px; }

/* 11. Admin ---------------------------------------------------------------- */
.admin-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 16px; padding: clamp(32px, 6vw, 64px) 0 28px; border-bottom: 1px solid var(--line); }
.admin-head h1 { font-size: clamp(38px, 7vw, 84px); }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); border-bottom: 1px solid var(--line); }
.stat { padding: 22px 18px 22px 0; border-right: 1px solid var(--line); }
.stat + .stat { padding-left: 18px; }
.stat:last-child { border-right: 0; }
.stat strong { display: block; font-family: var(--font-display); font-weight: 400; font-size: clamp(38px, 5vw, 56px); line-height: 1; }
.stat span { color: var(--grey-1); font-family: var(--font-ui); font-size: 14px; }
.stat.warn strong { color: var(--amber); }
@media (max-width: 640px) { .stats { grid-template-columns: 1fr 1fr; } .stat { border-bottom: 1px solid var(--line); padding-left: 0 !important; } .stat:nth-child(odd) { border-right: 1px solid var(--line); } .stat:nth-child(even) { padding-left: 18px !important; border-right: 0; } }
.toolbar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; padding: 24px 0; }
.toolbar form { margin: 0; }
.money { display: flex; flex-wrap: wrap; gap: 8px 28px; font-family: var(--font-ui); color: var(--grey-1); font-size: 14.5px; margin-top: 10px; }
.money strong { color: var(--white); }
.block { padding: clamp(28px, 5vw, 48px) 0; }
.block-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 20px; margin-bottom: 16px; }
.block-head h2 { font-family: var(--font-display); font-weight: 400; text-transform: uppercase; font-size: clamp(28px, 4vw, 40px); }
.block-head .total { font-family: var(--font-display); font-size: clamp(28px, 4vw, 40px); }
.block-note { color: var(--grey-2); font-size: 14.5px; margin: -6px 0 16px; max-width: 70ch; }
.table-wrap { overflow-x: auto; border-radius: 16px; border: 1px solid var(--line-dark); background: var(--white); }
table { width: 100%; border-collapse: collapse; font-size: 14.5px; color: var(--black); }
th, td { text-align: left; padding: 13px 16px; border-bottom: 1px solid var(--line-dark); white-space: nowrap; }
th { font-family: var(--font-ui); font-weight: 700; font-size: 13px; color: var(--grey-2); background: #fafaf8; position: sticky; top: 0; }
tr:last-child td { border-bottom: 0; }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; }
td strong { font-weight: 700; }
tbody tr:hover { background: #fafaf8; }
.table-empty { padding: 22px 16px; color: var(--grey-2); }
.filters { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 14px; }
.filters input, .filters select { min-height: 46px; padding: 10px 14px; border-radius: 12px; border: 1.5px solid var(--line-dark); font: inherit; font-size: 15px; background: var(--white); color: var(--black); }
.filters input { flex: 1 1 240px; }
.filters input:focus, .filters select:focus { outline: none; border-color: var(--black); }
.pill { display: inline-block; padding: 3px 10px; border-radius: 999px; font-family: var(--font-ui); font-size: 12.5px; font-weight: 700; background: var(--grey-soft); color: var(--grey-2); }
.pill-yes { background: #e3f6eb; color: #137a40; }
.pill-no { background: var(--red-soft); color: #a3191e; }
.pill-warn { background: #fff4e0; color: #8a5300; }
.pill-video { background: #e8eeff; color: #2246c7; }

/* 13. Campaigns page (approved mockup) -------------------------------------
   Short hero + still ribbon on the right, sticky category chips, card grid. */
.mono-eyebrow { font-family: var(--font-mono); font-size: 13px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--periwinkle); margin: 0; }
.mono-label { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: #b3b3b3; margin: 0; }
.mono-line { display: flex; flex-wrap: wrap; gap: 8px 18px; font-family: var(--font-mono); font-size: 12.5px; letter-spacing: 0.06em; text-transform: uppercase; color: #b3b3b3; margin: 0; }
.mono-chip { display: inline-block; padding: 5px 10px; border-radius: 8px; border: 1px solid rgba(255,255,255,0.22); font-family: var(--font-mono); font-size: 11.5px; letter-spacing: 0.08em; }

.lw-hero { position: relative; overflow: hidden; }
.lw-hero-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 40px; align-items: end; padding-top: clamp(40px, 7vw, 76px); padding-bottom: clamp(32px, 5vw, 56px); }
.lw-hero-copy { display: flex; flex-direction: column; gap: 20px; position: relative; z-index: 1; }
.lw-hero-title { font-size: clamp(64px, 10vw, 128px); margin: 0; }
.lw-hero-art { position: relative; height: 340px; }
.lw-hero-glow { position: absolute; inset: -40px -120px -60px 0; background: radial-gradient(60% 60% at 60% 50%, rgba(139,92,246,0.45) 0%, rgba(62,111,255,0.18) 40%, rgba(0,0,0,0) 72%); }
/* Living ribbon, kept inside the right column (never behind the text) */
.lw-hero-art .lw-ribbon { z-index: 0; inset: -40px -80px -40px -40px; width: calc(100% + 120px); height: calc(100% + 80px);
  /* fade the ribbon out at the edges of its box, so it's never cut off with a hard line */
  -webkit-mask-image: radial-gradient(ellipse 50% 50% at 52% 50%, #000 45%, transparent 92%);
  mask-image: radial-gradient(ellipse 50% 50% at 52% 50%, #000 45%, transparent 92%); }
.lw-draw { stroke-dasharray: 1; stroke-dashoffset: 1; animation: lwDraw 1.8s var(--ease) 0.2s forwards; }
@keyframes lwDraw { to { stroke-dashoffset: 0; } }
@media (max-width: 900px) {
  .lw-hero-grid { grid-template-columns: 1fr; }
  .lw-hero-art { position: absolute; right: -150px; top: -90px; width: 360px; height: 240px; opacity: 0.5; z-index: 0; }
}

.filter-bar { position: sticky; top: 68px; z-index: 20; background: rgba(0,0,0,0.86); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); border-block: 1px solid var(--line); }
.filter-inner { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding-top: 12px; padding-bottom: 12px; }
.chips-row { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; min-width: 0; }
.chips-row::-webkit-scrollbar { display: none; }
.f-chip { flex: none; min-height: 44px; padding: 0 16px; border-radius: 999px; border: 1px solid rgba(255,255,255,0.28); background: transparent; color: var(--white); cursor: pointer; font-family: var(--font-mono); font-size: 12.5px; letter-spacing: 0.08em; text-transform: uppercase; white-space: nowrap; transition: background .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease); }
.f-chip[aria-pressed="true"] { background: var(--white); color: var(--black); border-color: var(--white); }
@media (hover: hover) { .f-chip:hover { border-color: var(--white); } }
@media (max-width: 640px) { .filter-inner .mono-label { display: none; } }

.card-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; padding: 32px 0 72px; }
@media (max-width: 1060px) { .card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 680px) { .card-grid { grid-template-columns: 1fr; gap: 22px; padding-top: 22px; } }
.cc { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: 20px; overflow: hidden; background: #0b0b0b; }
.cc.hidden { display: none; }
.cc-cover { position: relative; height: 300px; padding: 18px 20px 22px; display: flex; flex-direction: column; justify-content: space-between; overflow: hidden; }
@media (max-width: 680px) { .cc-cover { height: 250px; padding: 16px 16px 18px; } }
.cc-grain { position: absolute; inset: 0; mix-blend-mode: overlay; opacity: 0.55; pointer-events: none; }
.cc-top { position: relative; display: flex; justify-content: space-between; align-items: center; gap: 10px; font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.08em; }
.cc-days { padding: 4px 10px; border-radius: 999px; background: rgba(0,0,0,0.6); white-space: nowrap; }
.cc-brand { position: relative; margin: 0; font-family: var(--font-display); font-size: clamp(48px, 5vw, 64px); line-height: 0.92; text-transform: uppercase; overflow-wrap: anywhere; transition: transform .4s var(--ease); }
@media (hover: hover) { .cc:hover .cc-brand { transform: translateY(-4px); } .cc:hover { border-color: rgba(255,255,255,0.3); } }
.cc-body { display: flex; flex-direction: column; gap: 14px; padding: 20px 20px 22px; flex: 1; }
.cc-name { margin: 0; font-family: var(--font-display); font-weight: 400; font-size: 27px; line-height: 1.04; text-transform: uppercase; }
.cc-name a { text-decoration: none; }
.cc-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.cc-earn { display: flex; align-items: baseline; flex-wrap: wrap; gap: 6px 10px; }
.cc-amount { font-family: var(--font-display); font-size: 40px; line-height: 1; }
.cc-ref { margin: -6px 0 0; color: #b3b3b3; font-size: 14.5px; }
.cc-foot { display: grid; gap: 8px; margin-top: auto; }
.cc-bar { height: 6px; border-radius: 999px; background: rgba(255,255,255,0.12); overflow: hidden; position: relative; }
.cc-bar > i { position: absolute; inset: 0 auto 0 0; width: var(--pct, 0%); border-radius: inherit; background: var(--brand-gradient); }
.cc-meta { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 12px; font-size: 11.5px; }
.cc-meta span { white-space: nowrap; }
@media (max-width: 560px) { .hide-sm { display: none; } }
.cc-join { margin-top: 4px; }

.how-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; padding-top: 48px; padding-bottom: 52px; border-top: 1px solid var(--line); }
.how-row > div { display: grid; gap: 10px; align-content: start; }
.how-title { margin: 0; font-family: var(--font-ui); font-size: 17px; font-weight: 700; }
@media (max-width: 720px) { .how-row { grid-template-columns: 1fr; gap: 24px; } }
.marquee-slow .marquee-track { animation-duration: 60s; font-size: clamp(26px, 4vw, 40px); padding: 12px 0; }

/* 14. 404: static "404" + ghosted ribbon --------------------------------- */
.nf { position: relative; min-height: min(900px, 100svh); overflow: hidden; display: flex; flex-direction: column; justify-content: flex-end; }
.nf-art { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.nf-status { display: inline-flex; align-items: center; gap: 10px; font-family: var(--font-mono); font-size: 12.5px; letter-spacing: 0.12em; color: #ff8a8a; margin: 0; }
.nf-dot { width: 9px; height: 9px; border-radius: 50%; background: #ff5a5a; animation: nfBlink 1.1s steps(1) infinite; }
@keyframes nfBlink { 50% { opacity: 0; } }
.nf-flicker { animation: nfFlicker 4s steps(1) infinite; }
@keyframes nfFlicker { 48% { opacity: .55; } 49% { opacity: 1; } 83% { opacity: .8; } 84% { opacity: 1; } }
.nf-content { position: relative; display: flex; justify-content: space-between; align-items: flex-end; gap: 40px; padding-top: max(46vh, 360px); padding-bottom: 56px; }
.nf-copy { max-width: 540px; display: grid; gap: 18px; }
.nf-title { margin: 0; font-size: clamp(36px, 5vw, 56px); line-height: 0.95; }
.nf-live { display: grid; gap: 12px; width: min(420px, 100%); }
.nf-live-item { display: flex; align-items: center; gap: 14px; padding: 12px 14px; border-radius: 16px; border: 1px solid rgba(255,255,255,0.18); background: rgba(10,10,10,0.85); text-decoration: none; transition: transform .3s var(--ease), border-color .3s var(--ease); }
@media (hover: hover) { .nf-live-item:hover { transform: translateY(-3px); border-color: var(--white); } }
.nf-swatch { flex: none; width: 52px; height: 52px; border-radius: 12px; }
.nf-live-text { flex: 1; min-width: 0; display: grid; gap: 2px; }
.nf-live-brand { font-family: var(--font-display); font-size: 22px; line-height: 1.05; text-transform: uppercase; }
.nf-live-earn { font-family: var(--font-display); font-size: 24px; }
@media (max-width: 900px) { .nf-content { flex-direction: column; align-items: stretch; padding-top: 46vh; } .nf-live { width: 100%; } }

/* 12. Motion + accessibility ---------------------------------------------- */
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
  .marquee-track { animation: none; }
  .rise > span { transform: none; }
  .lw-draw { stroke-dashoffset: 0; }
  .nf-dot, .nf-flicker { animation: none; }
}

/* Location picker (form.js locationPicker): search box + suggestions + chips */
.loc { position: relative; }
.loc-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 8px; }
.loc-chips:empty { display: none; }
.loc-chip {
  display: inline-flex; align-items: center; gap: 8px; min-height: 38px; padding: 6px 10px 6px 14px;
  border: 0; border-radius: 999px; background: var(--black); color: var(--white); cursor: pointer;
  font-family: var(--font-ui); font-weight: 600; font-size: 14px;
}
.loc-chip span { font-size: 18px; line-height: 1; opacity: 0.75; }
.loc-chip:hover span, .loc-chip:focus-visible span { opacity: 1; }
.loc-chip:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; }
.loc-list {
  position: absolute; z-index: 20; left: 0; right: 0; top: calc(100% + 6px);
  max-height: 320px; overflow-y: auto; margin: 0; padding: 6px; list-style: none;
  background: var(--white); color: var(--black); border: 1.5px solid var(--black); border-radius: 14px;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.16);
}
.loc-list li { padding: 11px 12px; border-radius: 10px; cursor: pointer; font-family: var(--font-ui); font-size: 15.5px; font-weight: 500; }
.loc-list li small { display: block; color: var(--grey-2); font-size: 12.5px; font-weight: 500; }
.loc-list li:hover, .loc-list li.is-active { background: var(--grey-soft); }
.loc-list .loc-empty { color: var(--grey-2); cursor: default; }
.loc-list .loc-empty:hover { background: none; }
.form select[multiple] { min-height: 200px; background-image: none; padding-right: 16px; }

/* Bot trap box (security/bot_guard.py): off-screen, people never see or reach it */
.hp { position: absolute; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }
