/* Shared styles for /partner, /admin and /app. Tokens from DESIGN.md. */
:root {
  --canvas: #000814; --deep: #010d1e; --indigo: #001533; --cobalt: #00215e; --steel: #11263b;
  --white: #fff; --fog: #ccced0; --mist: #999ca1; --blue: #1c6cff;
  --lime: #00cc4b; --sunflower: #ffcc02; --coral: #ff4433; --sky: #00acfe; --tangerine: #ff8833;
  --f-display: "Bricolage Grotesque", system-ui, sans-serif;
  --f-body: "Geist", system-ui, sans-serif;
  --f-mono: "Geist Mono", ui-monospace, monospace;
  --inset: rgba(255,255,255,.16) 4px 4px 16px -4px inset, rgba(0,0,0,.2) -4px -4px 16px -4px inset, rgba(255,255,255,.08) 4px 4px 8px 0 inset, rgba(255,255,255,.4) 1px 1px 1px -.5px inset;
  --line: rgba(255,255,255,.08);
  --ease: cubic-bezier(.2,.8,.2,1);
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; min-height: 100vh; background: var(--canvas); color: var(--white);
  font: 300 15px/1.55 var(--f-body); -webkit-font-smoothing: antialiased;
  background-image: radial-gradient(1200px 600px at 80% -10%, rgba(28,108,255,.16), transparent 60%), radial-gradient(900px 500px at -10% 10%, rgba(0,33,94,.5), transparent 60%);
  background-attachment: fixed;
}
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
::selection { background: var(--blue); }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; border-radius: 8px; }
[hidden] { display: none !important; }

.wrap { max-width: 1160px; margin: 0 auto; padding: 0 24px; }
.top { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 22px 0; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font: 700 19px/1 var(--f-display); font-variation-settings: "wdth" 96; letter-spacing: -.02em; }
.brand i { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 9px; background: #fff; }
.brand i svg { width: 16px; height: 16px; }
.brand small { font: 400 12px/1 var(--f-mono); color: var(--mist); letter-spacing: .04em; text-transform: uppercase; margin-left: 4px; }

h1, h2, h3 { font-family: var(--f-display); font-variation-settings: "wdth" 96; letter-spacing: -.03em; font-weight: 650; margin: 0; }
h1 { font-size: clamp(30px, 4.4vw, 52px); line-height: 1.02; }
h2 { font-size: 22px; line-height: 1.15; }
h3 { font-size: 16px; letter-spacing: -.01em; }
p { margin: 0; }
.dim { color: var(--mist); }
.small { font-size: 13px; }
.mono { font-family: var(--f-mono); font-weight: 400; letter-spacing: .01em; }
.eyebrow { font: 400 12px/1 var(--f-mono); text-transform: uppercase; letter-spacing: .12em; color: var(--mist); margin-bottom: 14px; }

.card { background: linear-gradient(180deg, rgba(255,255,255,.045), rgba(255,255,255,.015)); border: 1px solid var(--line); border-radius: 22px; box-shadow: var(--inset); padding: 22px; }
.card--flat { background: rgba(255,255,255,.025); box-shadow: none; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 42px; padding: 0 18px;
  border-radius: 999px; border: 0; cursor: pointer; text-decoration: none; white-space: nowrap;
  font: 500 14px/1 var(--f-body); background: rgba(255,255,255,.08); box-shadow: var(--inset);
  transition: transform .2s var(--ease), background .2s, opacity .2s;
}
.btn:hover { background: rgba(255,255,255,.13); }
.btn:active { transform: scale(.97); }
.btn:disabled { opacity: .5; cursor: default; transform: none; }
.btn--blue { background: var(--blue); }
.btn--blue:hover { background: #3b80ff; }
.btn--sm { height: 32px; padding: 0 12px; font-size: 13px; }
.btn--ghost { background: transparent; box-shadow: inset 0 0 0 1px var(--line); }
.btn--danger { background: rgba(255,68,51,.14); color: #ff9c92; }
.btn--danger:hover { background: rgba(255,68,51,.24); }

label.f { display: grid; grid-template-columns: minmax(0, 1fr); gap: 7px; font-size: 13px; color: var(--fog); }
.input, select.input, textarea.input {
  width: 100%; height: 46px; padding: 0 16px; border-radius: 14px; border: 1px solid var(--line);
  background: rgba(0,0,0,.28); box-shadow: inset 0 2px 6px rgba(0,0,0,.35); font-size: 15px; font-weight: 300; outline: none;
  transition: border-color .2s;
}
textarea.input { height: auto; padding: 12px 16px; resize: vertical; }
.input:focus { border-color: var(--blue); }
.input::placeholder { color: #5f6873; }
select.input { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--mist) 50%), linear-gradient(135deg, var(--mist) 50%, transparent 50%); background-position: calc(100% - 20px) 20px, calc(100% - 15px) 20px; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 36px; }
.row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.grow { flex: 1; min-width: 0; }

.pill { display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 10px; border-radius: 99px; font: 400 11.5px/1 var(--f-mono); letter-spacing: .04em; background: rgba(255,255,255,.08); color: var(--fog); white-space: nowrap; }
.pill::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; opacity: .9; }
.pill--pending, .pill--open, .pill--canceling { color: var(--sunflower); background: rgba(255,204,2,.1); }
.pill--approved, .pill--active, .pill--earned, .pill--paid { color: #3ee07e; background: rgba(0,204,75,.1); }
.pill--rejected, .pill--paused, .pill--refunded, .pill--reversed, .pill--ended { color: #ff8a80; background: rgba(255,68,51,.1); }

.msg { padding: 12px 16px; border-radius: 14px; font-size: 14px; background: rgba(28,108,255,.12); border: 1px solid rgba(28,108,255,.3); }
.msg--err { background: rgba(255,68,51,.1); border-color: rgba(255,68,51,.3); color: #ffb3ab; }
.msg--ok { background: rgba(0,204,75,.08); border-color: rgba(0,204,75,.3); color: #b6f5cb; }

table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
th { text-align: left; font: 400 11px/1 var(--f-mono); text-transform: uppercase; letter-spacing: .1em; color: var(--mist); padding: 0 12px 12px; white-space: nowrap; }
td { padding: 12px; border-top: 1px solid var(--line); vertical-align: top; }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.table-wrap { overflow-x: auto; margin: 0 -12px; }
.empty { padding: 28px 12px; text-align: center; color: var(--mist); font-size: 14px; }

.toast { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 20px); opacity: 0; padding: 12px 18px; border-radius: 14px; background: #0c1a2e; border: 1px solid var(--line); box-shadow: 0 20px 50px rgba(0,0,0,.5); font-size: 14px; transition: .3s var(--ease); z-index: 99; pointer-events: none; max-width: calc(100vw - 32px); }
.toast.is-in { opacity: 1; transform: translate(-50%, 0); }
.toast.is-err { border-color: rgba(255,68,51,.4); color: #ffb3ab; }

.center { min-height: calc(100vh - 90px); display: grid; place-items: center; padding: 24px 0 80px; }
.auth { width: min(420px, 100%); display: grid; gap: 18px; }
.spinner { width: 18px; height: 18px; border-radius: 50%; border: 2px solid rgba(255,255,255,.25); border-top-color: #fff; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.foot { padding: 40px 0; color: #5f6873; font-size: 12.5px; }
