/* MEMEMARKET base system: tokens, type, buttons, chips, nav, cards, skeletons, toasts, footer. Dark navy / electric blue / cyan, YES green, NO red. No backdrop-filter, no heavy filters.
   Signature: thin blue frame + blue glow, tight display type. Same rules as the other sites (centred labels, nothing clipped, motion always on with a manual switch). */
:root { color-scheme: dark;
  --bg: #020a24; --card: #0a1538; --card2: #0f1d4a; --ink: #eaf1ff; --g1: #0f1c47; --g2: #1b2d6b; --g3: #2b4392; --mut: #8fa5d8; --mut2: #6e83b8;
  --line: rgba(70, 135, 255, .42); --acc: #19e0ff; --acc2: #6cecff; --acc3: rgba(25, 224, 255, .12); --on: #021033; --blue: #0a5cff;
  --acc-g: linear-gradient(135deg, #19e0ff, #1a8cff); --blue-g: linear-gradient(135deg, #0a7cff, #0036d6);
  --yes: #19d46b; --yes-bg: rgba(25, 212, 107, .14); --no: #ff4545; --no-bg: rgba(255, 69, 69, .14); --warn: #ffb02e;
  --r: 18px; --r2: 12px; --r3: 999px; --wrap: 1200px;
  --glow: 0 0 0 1px rgba(70, 135, 255, .14), 0 10px 30px -14px rgba(10, 92, 255, .65); --glow2: 0 0 0 1px rgba(70, 135, 255, .22), 0 18px 50px -16px rgba(10, 92, 255, .8);
  --sh1: 0 8px 24px -12px rgba(0, 0, 0, .6); --sh2: 0 24px 48px -20px rgba(0, 0, 0, .8);
  --hf: 'Bricolage Grotesque', 'Geist', system-ui, sans-serif; --bf: 'Geist', system-ui, -apple-system, 'Segoe UI', sans-serif; --mf: 'Geist Mono', ui-monospace, Menlo, monospace;
  --ease: cubic-bezier(.2, .8, .2, 1);
}
*, *::before, *::after { box-sizing: border-box }
html { -webkit-text-size-adjust: 100%; scroll-behavior: auto }
html.lenis, html.lenis body { height: auto } .lenis.lenis-smooth { scroll-behavior: auto !important } .lenis.lenis-stopped { overflow: hidden }
body { margin: 0; background: var(--bg) radial-gradient(900px 520px at 78% -6%, rgba(10, 92, 255, .32), transparent 70%) no-repeat; background-attachment: fixed; color: var(--ink); font: 16px/1.55 var(--bf); -webkit-font-smoothing: antialiased; overflow-x: hidden }
img, svg { display: block; max-width: 100% } a { color: inherit; text-decoration: none } button { font: inherit; color: inherit; cursor: pointer }
h1, h2, h3, h4 { font-family: var(--hf); margin: 0; line-height: 1.02; letter-spacing: -.035em; font-weight: 800 }
p { margin: 0 } ::selection { background: var(--acc); color: var(--on) }
:focus-visible { outline: 3px solid var(--line); outline-offset: 3px; border-radius: 8px }
.wrap { width: min(var(--wrap), 100% - 32px); margin-inline: auto }
.mono { font-family: var(--mf) } .mut { color: var(--mut) } .hide { display: none !important }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap }
.row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap }
.yes { color: var(--yes) } .no { color: var(--no) }

/* buttons: the label is centred by flex, never by line-height luck */
.btn { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 20px; border-radius: var(--r3); border: 1.5px solid var(--line); background: var(--card); color: var(--ink); font-weight: 650; font-size: 15px; letter-spacing: -.01em; line-height: 1.1; transition: transform .25s var(--ease), background .2s, box-shadow .25s var(--ease), color .2s; white-space: nowrap }
.btn:hover { background: var(--card2) } .btn:active { transform: scale(.97) }
.btn.pri { background: var(--blue-g); color: #fff; border-color: rgba(120, 175, 255, .5) } .btn.pri:hover { background: #262626; box-shadow: 0 10px 24px -10px rgba(11,11,11,.6) }
.btn.lime { background: var(--acc-g); color: var(--on); border-color: transparent } .btn.lime:hover { background: var(--acc2); box-shadow: var(--glow); transform: translate(-2px, -2px) }
.btn.yes { background: var(--yes); border-color: transparent; color: #fff } .btn.no { background: var(--no); border-color: transparent; color: #fff }
.btn.lg { min-height: 56px; padding: 0 28px; font-size: 17px } .btn.sm { min-height: 38px; padding: 0 14px; font-size: 14px } .btn.block { width: 100% }
.btn[disabled], .btn.dis { opacity: .5; cursor: not-allowed; pointer-events: none; box-shadow: none }
.btn .rip { position: absolute; border-radius: 50%; background: rgba(0, 229, 255, .5); transform: scale(0); animation: rip .7s ease-out forwards; pointer-events: none } @keyframes rip { to { transform: scale(2.6); opacity: 0 } }
.soonTag { font: 700 10px/1 var(--mf); letter-spacing: .08em; text-transform: uppercase; background: var(--acc); color: var(--on); padding: 4px 7px; border-radius: 6px }

/* chips */
.chip { display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 30px; padding: 0 12px; border-radius: var(--r3); background: var(--g1); border: 1px solid var(--g2); font-size: 13px; font-weight: 600; color: var(--ink); white-space: nowrap; line-height: 1.1 }
.chip.lime { background: var(--acc); border-color: var(--acc); color: var(--on) } .chip.k { background: var(--blue-g); color: #fff; border-color: var(--acc) }
.chip.ok { background: var(--yes-bg); border-color: rgba(25,212,107,.45); color: #6bf0a8 } .chip.bad { background: var(--no-bg); border-color: rgba(255,69,69,.45); color: #ff9a9a } .chip.warn { background: rgba(255,170,40,.14); border-color: rgba(255,170,40,.45); color: #ffc66b }
button.chip, a.chip { cursor: pointer; transition: background .2s } button.chip:hover, a.chip:hover { background: var(--g2) }
.pulse { width: 8px; height: 8px; border-radius: 50%; background: var(--acc); box-shadow: 0 0 0 0 rgba(0, 229, 255, .9); animation: pulse 1.8s infinite; border: 1px solid var(--line) } @keyframes pulse { 70% { box-shadow: 0 0 0 9px rgba(0, 229, 255, 0) } 100% { box-shadow: 0 0 0 0 rgba(0, 229, 255, 0) } }

/* nav */
.nav { position: fixed; inset: 0 0 auto 0; z-index: 50; background: rgba(2, 8, 34, .94); box-shadow: 0 1px 0 var(--g2), 0 10px 30px -20px rgba(10, 92, 255, .6); transition: transform .45s var(--ease) } .nav.hide { transform: translateY(-110%) }
.nav-in { display: flex; align-items: center; gap: 18px; height: 68px }
.brand { display: flex; align-items: center; gap: 10px; font-family: var(--hf); font-weight: 800; font-size: 21px; letter-spacing: -.04em; flex: none } .brand img { width: 38px; height: 38px }
.links { display: flex; gap: 2px; margin-left: 10px } .links a { display: inline-flex; align-items: center; justify-content: center; padding: 8px 13px; border-radius: var(--r3); font-weight: 600; font-size: 15px; color: var(--mut); white-space: nowrap; transition: color .2s, background .2s } .links a:hover, .links a.on { color: var(--ink); background: var(--g1) }
.nav-cta { margin-left: auto; display: flex; align-items: center; gap: 8px }
.soc-chip { display: inline-flex; align-items: center; justify-content: center; min-height: 34px; padding: 0 14px; border: 1.5px solid var(--line); border-radius: 999px; background: var(--card); color: var(--ink); font: 700 13px/1 var(--bf); white-space: nowrap; cursor: pointer }
.soc-chip.ca { background: var(--acc); color: var(--on); font-family: var(--mf) } .soc-chip.soon { cursor: default; opacity: .75 } .soc-chip:hover:not(.soon) { transform: translateY(-1px); box-shadow: 0 0 0 1px var(--acc) }
.bal { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 38px; padding: 0 14px; border: 1.5px solid var(--line); border-radius: 999px; background: var(--card); font-weight: 700; font-size: 14px; white-space: nowrap } .bal b { font-family: var(--mf) } .bal .plus { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--acc); border: 1.5px solid var(--line); font-weight: 800; line-height: 1 }
.motion { white-space: nowrap; display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 34px; padding: 0 12px; border-radius: var(--r3); border: 1px solid var(--g3); background: var(--card); font-size: 12.5px; font-weight: 650; color: var(--mut) } .motion i { width: 26px; height: 15px; border-radius: 9px; background: var(--g3); position: relative; transition: background .2s } .motion i::after { content: ''; position: absolute; top: 2px; left: 2px; width: 11px; height: 11px; border-radius: 50%; background: #fff; transition: transform .25s var(--ease) } .motion[aria-pressed='true'] i { background: var(--blue) } .motion[aria-pressed='true'] i::after { transform: translateX(11px); background: var(--acc) }
.tabbar { display: none }

/* cards, kv */
.card { background: var(--card); border: 1.5px solid var(--line); border-radius: var(--r); padding: 22px; box-shadow: var(--glow) }
.card.flat { border-color: var(--g2); box-shadow: none } .card.k { background: var(--blue-g); color: #fff } .card.lime { background: var(--acc-g); color: var(--on) }
.kv { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; border-bottom: 1px dashed var(--g3); font-size: 14.5px } .kv:last-child { border: 0 } .kv span { color: var(--mut) } .kv b { font-weight: 650; text-align: right }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font: 700 12px/1 var(--mf); letter-spacing: .1em; text-transform: uppercase; color: var(--ink); background: var(--g1); border: 1px solid var(--g3); padding: 8px 12px; border-radius: var(--r3) }

/* inputs */
.field { display: grid; gap: 6px; margin-bottom: 14px } .field > label { font-weight: 650; font-size: 14px } .field small { color: var(--mut); font-size: 13px }
input, select, textarea { width: 100%; font: inherit; color: var(--ink); background: var(--card); border: 1.5px solid var(--g3); border-radius: var(--r2); padding: 12px 14px; min-height: 46px; transition: border-color .2s, box-shadow .2s } textarea { min-height: 110px; resize: vertical }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--acc); box-shadow: 0 0 0 4px var(--acc3) } input::placeholder, textarea::placeholder { color: var(--mut2) }

/* skeleton, empty, toast */
.sk { position: relative; overflow: hidden; background: var(--g1); border-radius: var(--r2) } .sk::after { content: ''; position: absolute; inset: 0; background: linear-gradient(100deg, transparent 20%, rgba(70, 130, 255, .16) 50%, transparent 80%); transform: translateX(-100%); animation: shim 1.3s infinite } @keyframes shim { to { transform: translateX(100%) } }
.empty { text-align: center; padding: 44px 20px; border: 1.5px dashed var(--g3); border-radius: var(--r); color: var(--mut); background: rgba(10, 21, 56, .55) } .empty b { display: block; color: var(--ink); font-family: var(--hf); font-size: 22px; letter-spacing: -.03em; margin-bottom: 6px } .empty .btn { margin-top: 14px }
.errbox { text-align: center; padding: 34px 20px; border: 1.5px solid var(--no); border-radius: var(--r); background: var(--no-bg) } .errbox b { display: block; font-family: var(--hf); font-size: 20px; margin-bottom: 6px } .errbox .btn { margin-top: 12px }
#toasts { position: fixed; z-index: 99; right: 16px; bottom: 16px; display: grid; gap: 8px; max-width: min(380px, calc(100vw - 32px)) } .toast { background: var(--blue-g); color: #fff; padding: 12px 16px; border-radius: 14px; font-weight: 600; font-size: 14.5px; box-shadow: var(--sh2); transform: translateY(14px) scale(.96); opacity: 0; transition: transform .35s var(--ease), opacity .3s } .toast.in { transform: none; opacity: 1 } .toast.err { background: var(--no) } .toast.ok::before { content: '✓ '; color: var(--yes) }

/* footer */
.foot { border-top: 1px solid var(--g2); margin-top: 90px; padding: 40px 0 56px; color: var(--mut); font-size: 14px } .foot-in { display: flex; gap: 24px; justify-content: space-between; flex-wrap: wrap; align-items: flex-start } .foot a:hover { color: var(--acc); text-decoration: underline } .foot .col { display: grid; gap: 8px } .foot small { display: block; max-width: 560px; margin-top: 10px; line-height: 1.5 }

/* modal */
.modal { position: fixed; inset: 0; z-index: 80; display: grid; place-items: center; padding: 16px; background: rgba(0, 4, 20, .78); animation: fade .2s } @keyframes fade { from { opacity: 0 } }
.modal-in { width: min(460px, 100%); max-height: calc(100dvh - 32px); overflow: auto; background: var(--card); border: 1.5px solid var(--line); border-radius: 22px; box-shadow: var(--glow2); padding: 24px; position: relative; animation: pop .3s var(--ease) } @keyframes pop { from { transform: translateY(16px) scale(.97); opacity: 0 } }
.modal-in h3 { font-size: 26px; margin-bottom: 6px } .modal-x { position: absolute; top: 12px; right: 12px; width: 40px; height: 40px; border-radius: 50%; border: 1.5px solid var(--line); background: var(--card); display: grid; place-items: center; font-size: 18px; line-height: 1 }
.wopt { display: flex; align-items: center; justify-content: flex-start; gap: 12px; width: 100%; min-height: 54px; padding: 0 16px; margin-top: 10px; border: 1.5px solid var(--line); border-radius: 14px; background: var(--card); font-weight: 650; font-size: 16px; text-align: left } .wopt:hover { background: var(--acc3) }
.amtchips { display: flex; gap: 8px; flex-wrap: wrap; margin: 8px 0 14px }

/* motion switch: reduced motion is NOT used on purpose (the lead's Windows has it on); only the manual switch adds .calm */
html.calm *, html.calm *::before, html.calm *::after { animation-duration: .001s !important; animation-iteration-count: 1 !important; transition-duration: .001s !important }
@media (max-width: 960px) { .links, .nav-cta .hide-m, .motion .lbl { display: none } .nav-in { gap: 10px } .nav-cta { gap: 6px } .motion { padding: 0 9px } }
@media (max-width: 560px) { body { font-size: 15.5px } .btn.lg { min-height: 52px; padding: 0 22px; font-size: 16px } #toasts { left: 16px; right: 16px; bottom: 76px } .soc-chip { min-height: 30px; padding: 0 10px; font-size: 12px } .brand span { display: none } }
@media (max-width: 520px) { #xchip { display: none } .nav-cta .btn.sm { padding: 0 12px; font-size: 13px } .bal { padding: 0 10px; font-size: 13px } }
