:root {
  --cover: #0F2B63;
  --cover-deep: #0A1F49;
  --cover-ink: #F4EEDD;
  --cover-muted: #C7C0A6;
  --paper: #F4EEDD;
  --paper-2: #EBE1C7;
  --paper-edge: #DCCFA6;
  --ink: #1C1B18;
  --ink-muted: #5A4A30;
  --rule: rgba(28, 27, 24, 0.16);
  --rule-strong: rgba(28, 27, 24, 0.32);
  --stamp: #C21F2E;
  --stamp-ink: #FFF8ED;
  --money: #1E6B45;
  --money-soft: #E2EFE2;
  --money-ink: #F4FBF6;
  --focus: #1F4FD6;
  --shadow: 0 16px 32px -18px rgba(28, 27, 24, 0.4);
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --cover: #0A1B3E;
    --cover-deep: #060F26;
    --cover-ink: #F1E9D5;
    --cover-muted: #9AA3C4;
    --paper: #1B160F;
    --paper-2: #251E13;
    --paper-edge: #362C1A;
    --ink: #F1E9D5;
    --ink-muted: #B7A98A;
    --rule: rgba(241, 233, 213, 0.16);
    --rule-strong: rgba(241, 233, 213, 0.32);
    --stamp: #FF6B6F;
    --stamp-ink: #2A0508;
    --money: #4FD08A;
    --money-soft: rgba(79, 208, 138, 0.14);
    --money-ink: #052014;
    --focus: #7DA2FF;
    --shadow: 0 16px 32px -18px rgba(0, 0, 0, 0.7);
    color-scheme: dark;
  }
}

:root[data-theme="dark"] {
  --cover: #0A1B3E;
  --cover-deep: #060F26;
  --cover-ink: #F1E9D5;
  --cover-muted: #9AA3C4;
  --paper: #1B160F;
  --paper-2: #251E13;
  --paper-edge: #362C1A;
  --ink: #F1E9D5;
  --ink-muted: #B7A98A;
  --rule: rgba(241, 233, 213, 0.16);
  --rule-strong: rgba(241, 233, 213, 0.32);
  --stamp: #FF6B6F;
  --stamp-ink: #2A0508;
  --money: #4FD08A;
  --money-soft: rgba(79, 208, 138, 0.14);
  --money-ink: #052014;
  --focus: #7DA2FF;
  --shadow: 0 16px 32px -18px rgba(0, 0, 0, 0.7);
  color-scheme: dark;
}

* { box-sizing: border-box; }

body {
  background: var(--paper);
  color: var(--ink);
  font-family: "Archivo", system-ui, sans-serif;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

::selection { background: var(--stamp); color: var(--stamp-ink); }
* { caret-color: var(--stamp); }

::-webkit-scrollbar { width: 11px; height: 11px; }
::-webkit-scrollbar-track { background: var(--paper-2); }
::-webkit-scrollbar-thumb { background: var(--paper-edge); border-radius: 999px; border: 3px solid var(--paper-2); }

:focus-visible {
  outline: 2.5px solid var(--focus);
  outline-offset: 2px;
  border-radius: 3px;
}

h1, h2, h3 {
  font-family: "Archivo", sans-serif;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: -0.01em;
  text-wrap: balance;
  margin: 0;
  color: inherit;
}

.display {
  font-family: "Big Shoulders Display", "Archivo", sans-serif;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.005em;
  margin: 0;
  color: inherit;
}

.mono {
  font-family: "Space Mono", ui-monospace, monospace;
  font-variant-numeric: tabular-nums;
}

a { color: inherit; text-underline-offset: 3px; }
.wrap { max-width: 1120px; margin: 0 auto; padding-inline: 20px; }

.icon { width: 1em; height: 1em; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: 0 0 auto; }

/* ---------- topbar (passbook cover chrome) ---------- */
.topbar {
  position: sticky;
  top: env(safe-area-inset-top, 0px);
  z-index: 40;
  background: var(--cover);
  color: var(--cover-ink);
  border-bottom: 1px solid rgba(244, 238, 221, 0.14);
}
.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-block: 11px;
}
.brand { display: flex; align-items: center; gap: 14px; text-decoration: none; color: inherit; min-width: 0; }
.brand-logo { display: block; height: 34px; width: auto; }
.brand-partner {
  font-size: 0.66rem;
  line-height: 1.25;
  color: var(--cover-muted);
  padding-left: 14px;
  border-left: 1px solid rgba(244, 238, 221, 0.28);
  white-space: nowrap;
}
@media (max-width: 440px) {
  .brand-logo { height: 28px; }
  .brand-partner { display: none; }
}

.topbar-cta {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: "Space Mono", monospace;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 9px 13px;
  border-radius: 999px;
  background: rgba(244, 238, 221, 0.1);
  border: 1px solid rgba(244, 238, 221, 0.4);
  color: var(--cover-ink);
  white-space: nowrap;
  text-decoration: none;
}
.topbar-cta:hover { background: rgba(244, 238, 221, 0.18); }
.topbar-cta .icon { width: 15px; height: 15px; }
.topbar-cta .cta-short { display: none; }
@media (max-width: 440px) {
  .topbar-cta .cta-num { display: none; }
  .topbar-cta .cta-short { display: inline; }
}

/* ---------- cover / hero ---------- */
.cover {
  --hero-img: url("brand/bg-hero-2400.jpg");
  background:
    linear-gradient(180deg, transparent 55%, color-mix(in srgb, var(--cover-deep) 88%, transparent) 100%),
    linear-gradient(90deg,
      color-mix(in srgb, var(--cover-deep) 94%, transparent) 0%,
      color-mix(in srgb, var(--cover) 78%, transparent) 40%,
      color-mix(in srgb, var(--cover) 18%, transparent) 100%),
    var(--hero-img) 62% 40% / cover no-repeat,
    var(--cover-deep);
  color: var(--cover-ink);
  position: relative;
  overflow: clip;
}
.cover::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 14px;
  background: repeating-linear-gradient(90deg, transparent 0 10px, rgba(244,238,221,0.16) 10px 11px);
  opacity: 0.5;
}
.cover-inner {
  padding-block: 40px 46px;
  position: relative;
  display: grid;
  gap: 16px;
}

.seal {
  position: absolute;
  top: 18px;
  right: 20px;
  width: 108px;
  height: 108px;
  border-radius: 50%;
  border: 2.5px solid var(--stamp);
  display: grid;
  place-items: center;
  text-align: center;
  color: var(--stamp);
  transform: rotate(-11deg);
  mix-blend-mode: normal;
  opacity: 0.92;
}
.seal::before {
  content: "";
  position: absolute;
  inset: 6px;
  border: 1px dashed var(--stamp);
  border-radius: 50%;
  opacity: 0.75;
}
.seal strong {
  display: block;
  font-family: "Big Shoulders Display", sans-serif;
  font-size: 1.5rem;
  font-weight: 800;
  line-height: 0.95;
}
.seal span {
  display: block;
  font-family: "Space Mono", monospace;
  font-size: 0.52rem;
  letter-spacing: 0.08em;
  margin-top: 2px;
}
@media (max-width: 760px) {
  .cover {
    --hero-img: url("brand/bg-hero-1200.jpg");
    background:
      linear-gradient(180deg,
        color-mix(in srgb, var(--cover-deep) 70%, transparent) 0%,
        color-mix(in srgb, var(--cover) 84%, transparent) 45%,
        color-mix(in srgb, var(--cover-deep) 95%, transparent) 100%),
      var(--hero-img) 70% 30% / cover no-repeat,
      var(--cover-deep);
  }
}
@media (max-width: 560px) {
  .seal { width: 84px; height: 84px; top: 14px; right: 14px; }
  .seal strong { font-size: 1.15rem; }
  .seal span { font-size: 0.46rem; }
}

.cover h1 {
  font-size: clamp(2.1rem, 7.4vw, 3.4rem);
  line-height: 0.98;
  max-width: 15ch;
}
.cover h1 em {
  font-style: normal;
  text-decoration: underline;
  text-decoration-thickness: 3px;
  text-underline-offset: 4px;
  text-decoration-color: rgba(244, 238, 221, 0.4);
}
.cover p.lede {
  max-width: 52ch;
  color: var(--cover-muted);
  font-size: 1rem;
}
.cover-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 4px; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: "Archivo", sans-serif;
  font-weight: 700;
  font-size: 0.9rem;
  padding: 13px 20px;
  border-radius: 3px;
  text-decoration: none;
  border: 1.5px solid transparent;
  cursor: pointer;
}
.btn .icon { width: 17px; height: 17px; }
.btn-stamp {
  background: var(--stamp);
  color: var(--stamp-ink);
  box-shadow: var(--shadow);
  transform: rotate(-1.4deg);
}
.btn-stamp:hover { transform: rotate(0deg) translateY(-1px); }
.btn-tab {
  background: transparent;
  border-color: rgba(244, 238, 221, 0.5);
  border-bottom-width: 3px;
  color: var(--cover-ink);
  padding-inline: 28px;
  clip-path: polygon(16px 0, calc(100% - 16px) 0, 100% 100%, 0 100%);
}
.btn-tab:hover { background: rgba(244, 238, 221, 0.12); }
.btn-money {
  background: var(--money);
  color: var(--money-ink);
}
.btn-money:hover { filter: brightness(1.08); }
.saldo-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  margin-top: 22px;
  border-top: 1px solid rgba(244, 238, 221, 0.28);
  padding-top: 14px;
}
.saldo-strip .field { padding-inline: 20px; border-right: 1px solid rgba(244, 238, 221, 0.2); }
.saldo-strip .field:first-child { padding-left: 0; }
.saldo-strip .field:last-child { border-right: none; padding-right: 0; }
@media (max-width: 560px) {
  .saldo-strip .field { padding-inline: 12px; }
}
.saldo-strip .field b {
  display: block;
  font-family: "Space Mono", monospace;
  font-size: clamp(1.05rem, 3.4vw, 1.4rem);
  font-weight: 700;
}
.saldo-strip .field span {
  display: block;
  font-size: 0.66rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--cover-muted);
  margin-top: 2px;
}

/* ---------- referral ribbon ---------- */
.referral-inline {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--money-soft);
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  padding: 15px 0;
}
.referral-inline .wrap { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.referral-inline .amt {
  font-family: "Big Shoulders Display", sans-serif;
  font-weight: 800;
  font-size: 1.6rem;
  color: var(--money);
  white-space: nowrap;
  border: 2px solid var(--money);
  border-radius: 3px;
  padding: 2px 10px;
  transform: rotate(-1deg);
}
.referral-inline p { margin: 0; font-size: 0.88rem; color: var(--ink); }
.referral-inline a { font-weight: 700; text-decoration: underline; white-space: nowrap; }

/* ---------- catalog / ledger ---------- */
.page-section { padding-block: 40px; }
.section-head { display: grid; gap: 6px; margin-bottom: 6px; }
.section-head h2 { font-size: clamp(1.5rem, 4.2vw, 2.1rem); }
.section-head p { color: var(--ink-muted); margin: 0; max-width: 58ch; font-size: 0.94rem; }

.filter-row {
  display: flex;
  gap: 10px;
  margin-block: 18px 20px;
  position: sticky;
  top: calc(env(safe-area-inset-top, 0px) + 58px);
  z-index: 30;
  background: var(--paper);
  padding-block: 8px;
  border-bottom: 1px solid var(--rule);
}
.filter-row .field-wrap {
  flex: 1;
  position: relative;
  display: flex;
  align-items: center;
}
.filter-row .field-wrap .icon {
  position: absolute;
  left: 13px;
  width: 16px;
  height: 16px;
  color: var(--ink-muted);
  pointer-events: none;
}
.filter-row input {
  width: 100%;
  font-family: "Archivo", inherit;
  font-size: 0.92rem;
  padding: 11px 14px 11px 38px;
  border-radius: 3px;
  border: 1.5px solid var(--rule-strong);
  background: var(--paper-2);
  color: var(--ink);
}
.filter-row input::placeholder { color: var(--ink-muted); opacity: 0.85; }
.filter-row input:focus { border-color: var(--focus); }
.filter-count {
  align-self: center;
  font-family: "Space Mono", monospace;
  font-size: 0.76rem;
  color: var(--ink-muted);
  white-space: nowrap;
  border: 1px solid var(--rule-strong);
  border-radius: 3px;
  padding: 8px 10px;
}

.ledger { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 32px; border-top: 2px solid var(--ink); }

.entry {
  display: grid;
  grid-template-columns: 128px 1fr;
  gap: 20px;
  padding-block: 24px;
  border-bottom: 1px solid var(--rule);
  opacity: 0;
  transform: translateY(10px) scale(0.99);
  transition: opacity 0.5s cubic-bezier(0.16, 1, 0.3, 1), transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}
.entry.in-view { opacity: 1; transform: translateY(0) scale(1); }
@media (prefers-reduced-motion: reduce) {
  .entry { opacity: 1; transform: none; transition: none; }
}

.entry-photo-wrap { position: relative; }
.entry-code {
  position: absolute;
  top: 4px;
  left: 4px;
  z-index: 2;
  font-family: "Space Mono", monospace;
  font-size: 0.6rem;
  letter-spacing: 0.02em;
  color: var(--stamp-ink);
  background: rgba(28, 27, 24, 0.72);
  padding: 2px 5px;
  border-radius: 2px;
}
.entry-photo {
  aspect-ratio: 4 / 5;
  width: 100%;
  object-fit: cover;
  object-position: top;
  display: block;
  background: var(--paper-2);
  border: 5px solid var(--paper);
  outline: 1px solid var(--rule-strong);
  box-shadow: var(--shadow);
  transform: rotate(-1.6deg);
}
.entry:nth-child(even) .entry-photo { transform: rotate(1.4deg); }
.entry-pin {
  position: absolute;
  top: -9px;
  left: 50%;
  transform: translateX(-50%) rotate(6deg);
  width: 20px;
  height: 20px;
  color: var(--ink-muted);
  filter: drop-shadow(0 2px 2px rgba(0,0,0,0.25));
}

.entry-body { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.entry-top { display: flex; flex-direction: column; align-items: flex-start; gap: 7px; }
.entry-stamps { display: flex; flex-wrap: wrap; gap: 6px; flex: 0 0 auto; max-width: 100%; }

.entry-tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-family: "Space Mono", monospace;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--stamp);
  border: 1.5px dashed var(--stamp);
  border-radius: 999px;
  padding: 3px 9px;
  transform: rotate(-2deg);
  align-self: flex-start;
}

.entry-stamp {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-family: "Space Mono", monospace;
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--ink-muted);
  border: 1.5px dashed var(--rule-strong);
  border-radius: 999px;
  padding: 3px 9px;
  transform: rotate(1.6deg);
  align-self: flex-start;
  flex: 0 0 auto;
}
.entry:nth-child(even) .entry-stamp { transform: rotate(-1.6deg); }

.entry h3 { font-size: 1.25rem; line-height: 1.02; }
.entry .price { margin: 0; display: grid; gap: 1px; }
.entry .price span { text-wrap: balance; font-size: 0.66rem; letter-spacing: 0.03em; text-transform: uppercase; color: var(--ink-muted); }
.entry .price b { font-size: 1.12rem; font-weight: 700; color: var(--ink); line-height: 1.2; }

.gallery-label {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin: 2px 0 -5px;
}
.gallery-strip {
  display: flex;
  gap: 7px;
  overflow-x: auto;
  padding-block: 3px 1px;
  scrollbar-width: thin;
}
.gallery-strip button {
  all: unset;
  flex: 0 0 auto;
  width: 52px;
  height: 52px;
  border-radius: 2px;
  overflow: hidden;
  cursor: pointer;
  border: 3px solid var(--paper);
  outline: 1px solid var(--rule-strong);
}
.gallery-strip img { width: 100%; height: 100%; object-fit: cover; display: block; }
.gallery-strip button:hover { outline-color: var(--stamp); }

.entry .cta {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.86rem;
  font-weight: 700;
  padding-top: 6px;
  text-decoration: none;
  color: var(--ink);
  align-self: flex-start;
  border-bottom: 1.5px solid var(--ink);
}
.entry .cta .icon { width: 15px; height: 15px; }
.entry .cta:hover { color: var(--stamp); border-color: var(--stamp); }
.entry h3 a { text-decoration: none; }
.entry h3 a:hover { color: var(--stamp); }
.entry-actions { margin-top: auto; padding-top: 4px; display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 18px; }
.entry-actions .cta { margin-top: 0; }
.entry .more { font-family: "Space Mono", monospace; font-size: 0.74rem; color: var(--ink-muted); text-decoration: underline; }
.entry .more:hover { color: var(--stamp); }

/* 2 colunas também no celular: foto em cima, dados embaixo */
@media (max-width: 760px) {
  .ledger { gap: 0 14px; }
  .entry { grid-template-columns: 1fr; gap: 12px; padding-block: 16px; }
  .entry-photo { aspect-ratio: 1; border-width: 4px; }
  .entry h3 { font-size: 1rem; min-height: 2.04em; }
  .entry-top { gap: 6px; }
  .entry .price span { font-size: 0.58rem; }
  .entry .price b { font-size: 0.98rem; }
  .entry-stamp, .entry-tag { font-size: 0.55rem; padding: 2px 7px; }
  .gallery-label { display: none; }
  .gallery-strip { gap: 5px; overflow: visible; }
  .gallery-strip button { flex: 1 1 0; width: auto; height: auto; max-width: 44px; aspect-ratio: 1; border-width: 2px; }
  .entry .cta { font-size: 0.8rem; }
  .entry .more { font-size: 0.68rem; }
}

.empty-state {
  display: none;
  text-align: center;
  padding: 44px 16px;
  color: var(--ink-muted);
  font-size: 0.9rem;
  border-bottom: 1px solid var(--rule);
}
.empty-state.show { display: block; }
.empty-state a { color: var(--stamp); font-weight: 700; }

/* ---------- indique e ganhe ---------- */
.indique {
  margin-block: 8px;
  background: var(--paper-2);
  border: 1px solid var(--rule);
  border-radius: 4px;
  padding: 32px 24px;
  display: grid;
  gap: 16px;
  position: relative;
}
.indique .amt-big {
  font-family: "Big Shoulders Display", sans-serif;
  font-weight: 800;
  font-size: clamp(2.3rem, 9.5vw, 3.3rem);
  color: var(--money);
  line-height: 0.95;
  display: inline-block;
  border: 3px solid var(--money);
  border-radius: 4px;
  padding: 2px 16px;
  transform: rotate(-1.6deg);
  justify-self: start;
}
.indique h2 { font-size: 1.4rem; }
.indique .rule {
  background: var(--paper);
  border: 1px solid var(--rule-strong);
  border-radius: 3px;
  padding: 15px 17px;
  font-size: 0.86rem;
  color: var(--ink);
}
.indique .rule b { color: var(--money); }
.indique-steps {
  display: grid;
  gap: 0;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  margin-top: 4px;
  border-top: 1px solid var(--rule-strong);
}
.indique-steps .step {
  font-size: 0.82rem;
  color: var(--ink-muted);
  padding: 12px 12px 12px 0;
  border-bottom: 1px solid var(--rule-strong);
}
.indique-steps .step:not(:last-child) { border-right: 1px solid var(--rule-strong); }
.indique-steps .step + .step { padding-left: 14px; }
.indique > p { margin: 0; max-width: 62ch; text-wrap: pretty; }
.indique .btn-money { justify-self: start; }
.indique-steps .step b {
  display: flex;
  align-items: baseline;
  gap: 6px;
  color: var(--ink);
  font-family: "Space Mono", monospace;
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 3px;
}
@media (max-width: 640px) {
  .indique-steps { grid-template-columns: 1fr; }
  .indique-steps .step:not(:last-child) { border-right: none; }
  .indique-steps .step + .step { padding-left: 0; }
}

/* ---------- deposit slip / lead form ---------- */
.leadform { margin-block: 8px; display: grid; gap: 16px; }
.leadform .box {
  background: var(--paper);
  border: 1.5px dashed var(--rule-strong);
  border-radius: 4px;
  padding: 24px;
  display: grid;
  gap: 18px;
}
.field { display: grid; gap: 4px; }
.field label { font-size: 0.7rem; font-weight: 700; letter-spacing: 0.03em; text-transform: uppercase; color: var(--ink-muted); }
.field input, .field select, .field textarea {
  font-family: "Archivo", inherit;
  font-size: 0.96rem;
  padding: 9px 2px;
  border: none;
  border-bottom: 1.5px solid var(--rule-strong);
  background: transparent;
  color: var(--ink);
  width: 100%;
  border-radius: 0;
}
.field select { padding-block: 9px; }
.field textarea { resize: vertical; min-height: 56px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-bottom-color: var(--stamp); }
.leadform .send { justify-self: start; margin-top: 2px; }
.leadform .hint { font-size: 0.76rem; color: var(--ink-muted); }
@media (min-width: 900px) {
  .leadform {
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    grid-template-areas: "head box" "alt box";
    grid-template-rows: auto 1fr;
    column-gap: 48px;
  }
  .leadform .section-head { grid-area: head; }
  .leadform .box { grid-area: box; }
  .leadform .alt-contact { grid-area: alt; align-self: start; }
}

.alt-contact { display: flex; flex-direction: column; gap: 9px; align-items: flex-start; }
.alt-contact-label { font-size: 0.76rem; color: var(--ink-muted); font-weight: 700; text-transform: uppercase; letter-spacing: 0.03em; }
.alt-contact-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.82rem;
  font-weight: 600;
  padding: 9px 14px;
  border-radius: 999px;
  background: var(--paper-2);
  border: 1px solid var(--rule-strong);
  text-decoration: none;
  color: var(--ink);
}
.chip .icon { width: 15px; height: 15px; }
.chip:hover { border-color: var(--stamp); color: var(--stamp); }

/* ---------- footer ---------- */
footer {
  background: var(--cover);
  color: var(--cover-muted);
  margin-top: 24px;
  padding-block: 22px 100px;
}
footer .wrap {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 16px 24px;
  font-size: 0.8rem;
}
.footer-logo { display: block; width: 116px; height: auto; flex: 0 0 auto; }
footer strong { color: var(--cover-ink); }
footer a { color: var(--cover-ink); }

/* ---------- floating referral badge ---------- */
.floatbtn {
  position: fixed;
  right: 16px;
  bottom: calc(16px + env(safe-area-inset-bottom, 0px));
  z-index: 50;
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--money);
  color: var(--money-ink);
  text-decoration: none;
  padding: 13px 17px 13px 14px;
  border-radius: 3px;
  font-weight: 700;
  font-size: 0.82rem;
  box-shadow: var(--shadow);
  animation: pulse 2.6s ease-in-out infinite;
  border: 1.5px solid rgba(0,0,0,0.08);
}
.floatbtn .num { font-family: "Space Mono", monospace; font-weight: 700; }
@keyframes pulse {
  0%, 100% { transform: rotate(-1deg) scale(1); }
  50% { transform: rotate(-1deg) scale(1.045); }
}
@media (prefers-reduced-motion: reduce) {
  .floatbtn { animation: none; }
}

@media (max-width: 480px) {
  .referral-inline .wrap { flex-direction: column; align-items: flex-start; }
  footer .wrap { flex-direction: column; }
}

/* ---------- lightbox ---------- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 90;
  background: rgba(6, 10, 22, 0.94);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 20px;
  padding-top: calc(20px + env(safe-area-inset-top, 0px));
  padding-bottom: calc(20px + env(safe-area-inset-bottom, 0px));
}
.lightbox[hidden] { display: none; }
.lightbox img {
  max-width: min(92vw, 640px);
  max-height: 68vh;
  object-fit: contain;
  border: 6px solid #fff;
  box-shadow: 0 30px 60px -20px rgba(0,0,0,0.6);
  background: #000;
}
.lightbox .lb-cap {
  font-family: "Space Mono", monospace;
  color: #F1E9D8;
  font-size: 0.8rem;
  margin-top: 14px;
  text-align: center;
}
.lightbox .lb-close {
  position: absolute;
  top: calc(16px + env(safe-area-inset-top, 0px));
  right: 16px;
  all: unset;
  cursor: pointer;
  color: #fff;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  font-weight: 700;
  background: rgba(255,255,255,0.14);
  padding: 9px 14px;
  border-radius: 3px;
}
.lightbox .lb-close .icon { width: 15px; height: 15px; }
.lightbox .lb-nav {
  all: unset;
  cursor: pointer;
  color: #fff;
  display: inline-flex;
  padding: 12px;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,0.14);
  border-radius: 3px;
}
.lightbox .lb-nav .icon { width: 22px; height: 22px; }
.lightbox .lb-prev { left: 10px; }
.lightbox .lb-next { right: 10px; }
