/* Feeper — shared styles.
   Direction: a night-blue fintech surface where the card is the hero object.
   One warm accent (ember) for actions; card finishes carry the rest of the color. */
:root {
  --bg: #0a0e19;
  --bg-2: #0f1424;
  --surface: #141a2d;
  --surface-2: #1b2238;
  --line: #262f4a;
  --ink: #eef1fa;
  --muted: #8f99b8;
  --accent: #ff6a3d;
  --accent-2: #ffb347;
  --accent-ink: #1a0b05;
  --good: #3ddc97;
  --bad: #ff5d6c;

  --font-display: "Bricolage Grotesque", "Helvetica Neue", Arial, sans-serif;
  --font-body: "Geist", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "Geist Mono", ui-monospace, Menlo, Consolas, monospace;
  --radius: 12px;
  --radius-lg: 20px;
  color-scheme: dark;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; }
body { background: var(--bg); color: var(--ink); font-family: var(--font-body); font-size: 16px; line-height: 1.6; -webkit-font-smoothing: antialiased; }
a { color: inherit; }
img { max-width: 100%; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 6px; }
h1, h2, h3 { font-family: var(--font-display); line-height: 1.04; margin: 0; letter-spacing: -0.03em; text-wrap: balance; }
.container { max-width: 1180px; margin: 0 auto; padding-inline: 24px; }
@media (max-width: 600px) { .container { padding-inline: 16px; } }
.eyebrow { font: 500 12px var(--font-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--accent); }
.muted { color: var(--muted); }

/* wordmark */
.wordmark { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font: 800 22px var(--font-display); letter-spacing: -0.03em; }
.wordmark svg { width: 30px; height: 30px; flex: none; }

/* buttons */
.btn { font: 600 15px/1 var(--font-body); border-radius: var(--radius); padding: 14px 20px; border: 1px solid transparent; cursor: pointer; text-decoration: none; display: inline-flex; align-items: center; justify-content: center; gap: 10px; transition: transform .06s, background .15s, border-color .15s, filter .15s; white-space: nowrap; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: linear-gradient(135deg, var(--accent), var(--accent-2)); color: var(--accent-ink); }
.btn-primary:hover { filter: brightness(1.06); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--muted); }
.btn[disabled] { opacity: .5; cursor: not-allowed; }
.btn svg { width: 18px; height: 18px; }

/* ---------- the card ---------- */
.fcard {
  --w: 420px;
  position: relative; width: var(--w); max-width: 100%; aspect-ratio: 1.586; border-radius: calc(var(--w) * 0.055);
  padding: calc(var(--w) * 0.06); color: #fff; overflow: hidden; isolation: isolate;
  display: grid; grid-template-rows: auto 1fr auto; font-family: var(--font-body);
  box-shadow: 0 30px 60px -25px rgba(0,0,0,.7), inset 0 0 0 1px rgba(255,255,255,.12);
  transform-style: preserve-3d; transition: transform .25s ease-out;
}
.fcard::before { /* finish */ content: ""; position: absolute; inset: 0; z-index: -2; background: var(--finish); }
.fcard::after { /* moving sheen */ content: ""; position: absolute; inset: -40%; z-index: -1;
  background: radial-gradient(40% 40% at var(--mx, 30%) var(--my, 20%), rgba(255,255,255,.35), transparent 60%); mix-blend-mode: soft-light; pointer-events: none; }
.fcard .top { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.fcard .brand { display: flex; align-items: center; gap: 8px; font: 800 calc(var(--w) * .045) var(--font-display); letter-spacing: -0.02em; opacity: .95; }
.fcard .brand svg { width: calc(var(--w) * .06); height: calc(var(--w) * .06); }
.fcard .coin { width: calc(var(--w) * .13); aspect-ratio: 1; border-radius: 50%; background: rgba(255,255,255,.18) center/cover no-repeat; box-shadow: inset 0 0 0 2px rgba(255,255,255,.35); display: grid; place-items: center; font: 800 calc(var(--w) * .04) var(--font-display); }
.fcard .mid { align-self: center; }
.fcard .lbl { font: 500 calc(var(--w) * .026) var(--font-mono); letter-spacing: .14em; text-transform: uppercase; opacity: .75; }
.fcard .bal { font: 700 calc(var(--w) * .095)/1.05 var(--font-display); letter-spacing: -0.03em; font-variant-numeric: tabular-nums; margin-top: 4px; }
.fcard .bal small { font-size: .5em; opacity: .8; margin-left: 6px; }
.fcard .bottom { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; }
.fcard .holder { font: 600 calc(var(--w) * .036) var(--font-mono); letter-spacing: .06em; text-transform: uppercase; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.fcard .tick { font: 800 calc(var(--w) * .07)/1 var(--font-display); letter-spacing: -0.02em; text-align: right; white-space: nowrap; }
.fcard .tick b { font: inherit; }
.fcard .tick span { display: block; font: 500 calc(var(--w) * .024) var(--font-mono); letter-spacing: .12em; opacity: .75; margin-top: 4px; }
.fcard.dark-ink { color: #1b1306; }
.fcard.dark-ink .coin { background-color: rgba(0,0,0,.12); box-shadow: inset 0 0 0 2px rgba(0,0,0,.2); }

/* finishes */
.f-obsidian { --finish: radial-gradient(120% 90% at 0% 0%, #3a4160 0%, #1a1f33 45%, #0b0e18 100%); }
.f-aurora { --finish: linear-gradient(135deg, #3d4cf5 0%, #9b4be6 50%, #ff5f9e 100%); }
.f-ember { --finish: linear-gradient(135deg, #ff4f2e 0%, #ff8a3d 55%, #ffc15e 100%); }
.f-holo { --finish: conic-gradient(from 210deg at 70% 30%, #9ef0ff, #c7a6ff, #ffb8e0, #fff1a8, #a8ffd8, #9ef0ff); }
.f-mint { --finish: linear-gradient(135deg, #0f8f6e 0%, #19c08f 55%, #8ff0c9 100%); }
.f-gold { --finish: linear-gradient(120deg, #9a7322 0%, #e9cf86 35%, #b8913a 60%, #f6e7b0 100%); }

/* inputs */
.field { display: grid; gap: 8px; }
.field > label, .field .lab { font: 600 14px var(--font-body); }
.field .hint { font-size: 13px; color: var(--muted); }
.input, textarea.input, select.input {
  width: 100%; font: 400 15px var(--font-body); color: var(--ink); background: var(--bg-2);
  border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 14px; outline: none;
}
.input:focus { border-color: var(--accent); }
.input.mono { font-family: var(--font-mono); font-size: 14px; }
.input.err { border-color: var(--bad); }
.seg { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.seg button { font: 600 14px var(--font-body); color: var(--muted); background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 10px; cursor: pointer; }
.seg button[aria-pressed="true"] { color: var(--ink); border-color: var(--accent); background: color-mix(in srgb, var(--accent) 12%, var(--bg-2)); }

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }
