/* Dimfloor app — same lamp-in-the-dark language as the landing page. 8px spacing grid. */
:root {
  --ink: #07080b;
  --ink-2: #0c0e13;
  --ink-3: #13161d;
  --bone: #eef1f5;
  --bone-dim: rgba(238, 241, 245, 0.62);
  --bone-mute: rgba(238, 241, 245, 0.42);
  --bone-faint: rgba(238, 241, 245, 0.12);
  --bone-hair: rgba(238, 241, 245, 0.07);
  --lamp: #d6ecff;
  --lamp-dim: rgba(214, 236, 255, 0.14);
  --lamp-line: rgba(214, 236, 255, 0.34);
  --steel: #8e98a6;
  --creator: rgba(238, 241, 245, 0.30);
  --up: #8fd3a6;
  --down: #e8806c;

  --f-display: "Geist", ui-sans-serif, system-ui, sans-serif;
  --f-sans: "Geist", ui-sans-serif, system-ui, sans-serif;
  --f-serif: "Instrument Serif", "Times New Roman", serif;
  --f-mono: "Geist Mono", ui-monospace, monospace;

  --s1: 8px; --s2: 16px; --s3: 24px; --s4: 32px; --s5: 40px; --s6: 48px; --s8: 64px;
  --r: 22px; --r-sm: 14px; --r-xs: 10px;
  --gut: clamp(16px, 3.2vw, 40px);
  --maxw: 1440px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { background: var(--ink); color: var(--bone); -webkit-font-smoothing: antialiased; color-scheme: dark; }
body { font-family: var(--f-mono); font-size: 13px; line-height: 1.55; background: var(--ink); min-height: 100vh; overflow-x: hidden; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; }
img { display: block; max-width: 100%; }
::selection { background: var(--lamp); color: var(--ink); }
:focus-visible { outline: 1.5px solid var(--lamp); outline-offset: 2px; border-radius: 6px; }
[hidden] { display: none !important; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--bone); color: var(--ink); padding: 8px 16px; border-radius: 999px; }
.skip:focus { left: 16px; }
.num { font-variant-numeric: tabular-nums; }

/* ambience */
.lampglow {
  position: fixed; inset: -20vh 10vw auto; height: 70vh; z-index: 0; pointer-events: none;
  background: radial-gradient(60% 60% at 50% 0%, rgba(201, 215, 255, 0.10), transparent 70%);
}
.grain {
  position: fixed; inset: -50%; z-index: 1; pointer-events: none; opacity: 0.06;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  animation: grain 1s steps(6) infinite;
}
@keyframes grain { 0%,100% { transform: translate(0,0); } 25% { transform: translate(-3%,2%); } 50% { transform: translate(2%,-3%); } 75% { transform: translate(-2%,-1%); } }
.top, .notice, .view, .foot { position: relative; z-index: 2; }

/* ---------- top bar ---------- */
.top {
  position: sticky; top: 0; z-index: 30;
  display: grid; grid-template-columns: auto auto 1fr auto; align-items: center; gap: var(--s3);
  padding: 12px var(--gut);
  background: rgba(6, 7, 8, 0.78); backdrop-filter: blur(14px) saturate(1.2); -webkit-backdrop-filter: blur(14px) saturate(1.2);
  border-bottom: 1px solid var(--bone-hair);
}
.brand { display: flex; align-items: center; gap: 10px; font-family: var(--f-display); font-size: 20px; letter-spacing: 0.04em; text-transform: uppercase; }
.brand__mark { width: 14px; height: 14px; border-radius: 50%; border: 1.5px solid var(--bone); position: relative; }
.brand__mark::after { content: ""; position: absolute; inset: 3px; border-radius: 50%; background: var(--bone); transform: translateX(3px); }
.top__nav { display: flex; gap: 4px; }
.top__nav a { padding: 8px 14px; border-radius: 999px; font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--bone-dim); transition: color .25s, background .25s; }
.top__nav a:hover { color: var(--bone); }
.top__nav a[aria-current="page"] { color: var(--ink); background: var(--bone); }
.search { position: relative; justify-self: end; width: min(420px, 100%); }
.search svg { position: absolute; left: 14px; top: 50%; width: 15px; height: 15px; transform: translateY(-50%); fill: none; stroke: var(--bone-mute); stroke-width: 1.6; }
.search input {
  width: 100%; height: 40px; padding: 0 44px 0 40px; border-radius: 999px;
  background: var(--ink-2); border: 1px solid var(--bone-faint); outline: none; transition: border-color .25s, background .25s;
}
.search input::placeholder { color: var(--bone-mute); }
.search input:focus { border-color: var(--lamp-line); background: var(--ink-3); }
.search kbd { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); font-size: 10px; color: var(--bone-mute); border: 1px solid var(--bone-faint); border-radius: 6px; padding: 1px 6px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 40px; padding: 0 18px; border-radius: 999px; white-space: nowrap;
  font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase;
  transition: background .3s var(--ease), color .3s var(--ease), border-color .3s var(--ease), opacity .3s;
}
.btn--light { background: var(--bone); color: var(--ink); }
.btn--light:hover { background: var(--lamp); }
.btn--ghost { border: 1px solid var(--bone-faint); }
.btn--ghost:hover { border-color: var(--lamp-line); color: var(--lamp); }
.btn--wallet { border: 1px solid var(--bone-faint); background: var(--ink-2); }
.btn--wallet:hover { border-color: var(--lamp-line); }
.btn[disabled] { opacity: 0.38; cursor: not-allowed; }
.btn--block { width: 100%; height: 48px; }
.wdot { width: 7px; height: 7px; border-radius: 50%; background: var(--bone-mute); }
.btn--wallet.is-on .wdot { background: var(--up); box-shadow: 0 0 10px var(--up); }
.iconbtn { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--bone-faint); }
.iconbtn svg { width: 14px; height: 14px; stroke: currentColor; stroke-width: 1.6; fill: none; }
.iconbtn:hover { border-color: var(--lamp-line); color: var(--lamp); }

.notice {
  display: flex; align-items: center; gap: 10px; justify-content: center; text-align: center;
  padding: 8px var(--gut); font-size: 11px; color: var(--bone-dim); border-bottom: 1px solid var(--bone-hair);
  background: linear-gradient(90deg, transparent, rgba(201,215,255,0.06), transparent);
}
.dot { flex: none; width: 7px; height: 7px; border-radius: 50%; background: var(--lamp); box-shadow: 0 0 12px var(--lamp); animation: pulse 2.4s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: 0.35; } }

.view { max-width: var(--maxw); margin: 0 auto; padding: var(--s5) var(--gut) var(--s8); min-height: 70vh; outline: none; }

.foot {
  max-width: var(--maxw); margin: 0 auto; display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--s1) var(--s3);
  padding: var(--s3) var(--gut); border-top: 1px solid var(--bone-hair); font-size: 11px; color: var(--bone-mute);
}
.foot a { color: var(--bone-dim); border-bottom: 1px solid var(--bone-faint); }
.foot a:hover { color: var(--lamp); }

/* ---------- shared type ---------- */
.eyebrow { display: inline-flex; align-items: center; gap: 10px; font-size: 11px; letter-spacing: 0.24em; text-transform: uppercase; color: var(--bone-dim); }
.h1 { font-family: var(--f-display); font-weight: 400; text-transform: uppercase; font-size: clamp(48px, 7vw, 104px); line-height: 0.9; letter-spacing: 0.005em; }
.h1 em { font-style: normal; color: var(--lamp); }
.serif { font-family: var(--f-serif); font-style: italic; font-size: clamp(18px, 1.8vw, 24px); line-height: 1.2; color: var(--bone-dim); }
.muted { color: var(--bone-mute); }
.up { color: var(--up); } .down { color: var(--down); } .flat { color: var(--bone-mute); }

/* ---------- floor header ---------- */
.floorhead { display: grid; grid-template-columns: 1fr auto; align-items: end; gap: var(--s3); margin-bottom: var(--s4); }
.floorhead__meta { display: flex; gap: var(--s3); flex-wrap: wrap; justify-content: flex-end; }
.kpi { min-width: 120px; padding: 12px 16px; border: 1px solid var(--bone-hair); border-radius: var(--r-sm); background: rgba(12,14,17,0.6); }
.kpi b { display: block; font-family: var(--f-display); font-weight: 400; font-size: 26px; line-height: 1.1; }
.kpi span { font-size: 10px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--bone-mute); }
.live { display: inline-flex; align-items: center; gap: 8px; }

.toolbar {
  position: sticky; top: 64px; z-index: 20;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s2);
  padding: 10px 0; margin-bottom: var(--s3);
  background: linear-gradient(var(--ink) 70%, transparent);
}
.tabs { display: flex; gap: 4px; padding: 4px; border-radius: 999px; border: 1px solid var(--bone-faint); background: var(--ink-2); overflow-x: auto; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tab { position: relative; padding: 8px 16px; border-radius: 999px; font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--bone-dim); white-space: nowrap; transition: color .25s; }
.tab:hover { color: var(--bone); }
.tab[aria-selected="true"] { color: var(--ink); }
.tab__pill { position: absolute; inset: 0; border-radius: 999px; background: var(--bone); z-index: -1; }
.tab span { position: relative; }
.tools { display: flex; gap: var(--s1); align-items: center; }
.select { position: relative; }
.select select {
  appearance: none; height: 38px; padding: 0 36px 0 14px; border-radius: 999px; background: var(--ink-2);
  border: 1px solid var(--bone-faint); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; cursor: pointer;
}
.select::after { content: ""; position: absolute; right: 14px; top: 50%; width: 6px; height: 6px; border-right: 1.5px solid var(--bone-dim); border-bottom: 1.5px solid var(--bone-dim); transform: translateY(-70%) rotate(45deg); pointer-events: none; }
.seg { display: flex; padding: 3px; border-radius: 999px; border: 1px solid var(--bone-faint); background: var(--ink-2); }
.seg button { width: 34px; height: 30px; border-radius: 999px; display: grid; place-items: center; color: var(--bone-mute); }
.seg button[aria-pressed="true"] { background: var(--ink-3); color: var(--bone); }
.seg svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.6; }

/* ---------- coin grid ---------- */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: var(--s2); }
.card {
  position: relative; display: flex; flex-direction: column; gap: 14px;
  padding: var(--s2); border-radius: var(--r); border: 1px solid var(--bone-hair);
  background: linear-gradient(165deg, rgba(18, 21, 26, 0.9), rgba(8, 9, 11, 0.9));
  transition: border-color .3s var(--ease), transform .3s var(--ease), box-shadow .3s var(--ease);
  overflow: hidden;
}
.card::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .4s;
  background: radial-gradient(240px 160px at var(--mx, 50%) var(--my, 0%), rgba(201,215,255,0.12), transparent 70%);
}
.card:hover { border-color: var(--lamp-line); transform: translateY(-2px); box-shadow: 0 18px 40px -24px rgba(201,215,255,0.35); }
.card:hover::before { opacity: 1; }
.card__link { position: absolute; inset: 0; z-index: 1; border-radius: var(--r); }
.card__top { display: grid; grid-template-columns: 56px 1fr auto; gap: 12px; align-items: center; }
.ava { position: relative; flex: none; width: 56px; height: 56px; border-radius: var(--r-sm); overflow: hidden; background: var(--ink-3); border: 1px solid var(--bone-hair); display: grid; place-items: center; font-family: var(--f-display); font-size: 22px; color: var(--bone-mute); }
.ava img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.card__name { min-width: 0; }
.card__name b { display: block; font-size: 14px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.card__name span { display: flex; gap: 8px; font-size: 11px; color: var(--bone-mute); }
.tick { color: var(--lamp); }
.badge { font-size: 9px; letter-spacing: 0.16em; text-transform: uppercase; padding: 4px 8px; border-radius: 999px; border: 1px solid var(--bone-faint); color: var(--bone-dim); white-space: nowrap; }
.badge--grad { border-color: var(--lamp-line); color: var(--lamp); }
.card__mid { display: grid; grid-template-columns: 1fr 96px; gap: 12px; align-items: end; }
.mcap small { display: block; font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--bone-mute); }
.mcap b { font-family: var(--f-display); font-weight: 400; font-size: 30px; line-height: 1.05; }
.chg { display: flex; gap: 12px; font-size: 11px; margin-top: 2px; }
.chg i { font-style: normal; color: var(--bone-mute); margin-right: 4px; }
.spark { width: 96px; height: 40px; }
.spark path { fill: none; stroke-width: 1.5; vector-effect: non-scaling-stroke; }
.spark .area { stroke: none; }
.prog { display: grid; gap: 6px; }
.prog__row { display: flex; justify-content: space-between; font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--bone-mute); }
.bar { height: 5px; border-radius: 5px; background: var(--bone-faint); overflow: hidden; }
.bar i { display: block; height: 100%; border-radius: 5px; background: linear-gradient(90deg, rgba(201,215,255,0.55), var(--lamp)); box-shadow: 0 0 12px rgba(201,215,255,0.35); transform-origin: left; }
.card__foot { display: grid; grid-template-columns: 1fr auto; gap: 12px; align-items: center; padding-top: 12px; border-top: 1px solid var(--bone-hair); font-size: 10px; color: var(--bone-mute); letter-spacing: 0.06em; }
.priv { display: flex; align-items: center; gap: 6px; }
.priv b { color: var(--bone-dim); font-weight: 500; }

/* fee utility bar (compact) */
.fu { display: grid; gap: 6px; }
.fu__bar { display: flex; height: 5px; border-radius: 5px; overflow: hidden; gap: 2px; }
.fu__bar i { display: block; height: 100%; }
.fu__bar.is-unknown { background: repeating-linear-gradient(90deg, var(--bone-faint) 0 6px, transparent 6px 10px); }
.fu__label { display: flex; justify-content: space-between; font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--bone-mute); }
.c-privacy { background: var(--lamp); } .c-buyback { background: var(--bone); } .c-holders { background: var(--steel); } .c-creator { background: var(--creator); }
.c-dim { background: repeating-linear-gradient(135deg, rgba(142,152,166,0.55) 0 4px, rgba(142,152,166,0.22) 4px 8px); box-shadow: inset 0 0 0 1px rgba(142,152,166,0.6); }
.mixbar__seg.c-dim { color: var(--bone); }
.mixrow--locked { opacity: 0.92; }
.mixrow--locked .pct { border-style: dashed; color: var(--bone-dim); }
.lockpill { display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 10px; border-radius: 999px; border: 1px dashed rgba(142,152,166,0.6); font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--steel); }
.lockpill svg { width: 11px; height: 11px; fill: none; stroke: currentColor; stroke-width: 1.6; }
.legend { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 10px; color: var(--bone-mute); }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.legend i { width: 8px; height: 8px; border-radius: 2px; display: inline-block; }

/* list mode */
.grid.is-list { grid-template-columns: 1fr; gap: 8px; }
.grid.is-list .card { display: grid; grid-template-columns: minmax(220px, 1.4fr) 1fr 1.1fr 1fr; align-items: center; gap: var(--s3); padding: 12px var(--s2); border-radius: var(--r-sm); }
.grid.is-list .card__mid { grid-template-columns: 1fr 96px; }
.grid.is-list .card__foot { border-top: 0; padding-top: 0; grid-template-columns: 1fr; }
.grid.is-list .ava { width: 44px; height: 44px; }
.grid.is-list .card__top { grid-template-columns: 44px 1fr auto; }

/* skeleton + states */
.sk { position: relative; overflow: hidden; background: var(--ink-3); border-radius: 8px; }
.sk::after { content: ""; position: absolute; inset: 0; transform: translateX(-100%); background: linear-gradient(90deg, transparent, rgba(235,229,217,0.06), transparent); animation: shimmer 1.4s infinite; }
@keyframes shimmer { to { transform: translateX(100%); } }
.card--sk { pointer-events: none; }
.state { grid-column: 1 / -1; display: grid; justify-items: center; gap: 12px; text-align: center; padding: var(--s8) var(--s2); border: 1px dashed var(--bone-faint); border-radius: var(--r); color: var(--bone-dim); }
.state h3 { font-family: var(--f-display); font-weight: 400; font-size: 32px; text-transform: uppercase; color: var(--bone); }

/* ---------- coin page ---------- */
.back { display: inline-flex; align-items: center; gap: 8px; font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--bone-dim); margin-bottom: var(--s3); }
.back:hover { color: var(--lamp); }
.coinhead { display: grid; grid-template-columns: 88px 1fr auto; gap: var(--s3); align-items: center; margin-bottom: var(--s4); }
.coinhead .ava { width: 88px; height: 88px; border-radius: var(--r); font-size: 34px; }
.coinhead h1 { font-family: var(--f-display); font-weight: 400; text-transform: uppercase; font-size: clamp(36px, 5vw, 64px); line-height: 0.95; overflow-wrap: anywhere; }
.coinhead__sub { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin-top: 8px; font-size: 12px; color: var(--bone-dim); }
.chip { display: inline-flex; align-items: center; gap: 8px; height: 30px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--bone-faint); font-size: 11px; color: var(--bone-dim); transition: border-color .25s, color .25s; }
.chip:hover { border-color: var(--lamp-line); color: var(--lamp); }
.chip svg { width: 12px; height: 12px; fill: none; stroke: currentColor; stroke-width: 1.6; }
.coinhead__price { text-align: right; }
.coinhead__price b { display: block; font-family: var(--f-display); font-weight: 400; font-size: clamp(30px, 3.4vw, 46px); line-height: 1; }
.coinhead__price span { font-size: 12px; }

.coingrid { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: var(--s3); align-items: start; }
.coingrid > .tradebox { grid-column: 2; grid-row: 1 / span 6; }
.coingrid > .panel { grid-column: 1; }
.panel { border: 1px solid var(--bone-hair); border-radius: var(--r); background: linear-gradient(165deg, rgba(18,21,26,0.85), rgba(8,9,11,0.85)); padding: var(--s3); min-width: 0; }
.tradebox > .panel + .panel { margin-top: var(--s3); }
.more { width: 100%; margin-top: 12px; }
.panel__head { display: flex; align-items: center; justify-content: space-between; gap: var(--s2); margin-bottom: var(--s2); flex-wrap: wrap; }
.panel__head h2 { font-family: var(--f-display); font-weight: 400; font-size: 22px; text-transform: uppercase; letter-spacing: 0.02em; }
.ivals { display: flex; gap: 2px; padding: 3px; border-radius: 999px; border: 1px solid var(--bone-faint); }
.ivals button { padding: 5px 10px; border-radius: 999px; font-size: 10px; letter-spacing: 0.08em; color: var(--bone-mute); }
.ivals button[aria-pressed="true"] { background: var(--bone); color: var(--ink); }
.chart { height: 360px; position: relative; }
.chart__empty { position: absolute; inset: 0; display: grid; place-items: center; color: var(--bone-mute); font-size: 12px; }

.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--bone-hair); border-radius: var(--r-sm); overflow: hidden; border: 1px solid var(--bone-hair); }
.stat { background: var(--ink-2); padding: 14px 16px; }
.stat small { display: block; font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--bone-mute); }
.stat b { display: block; margin-top: 4px; font-size: 16px; font-weight: 500; }
.stat em { font-style: normal; font-size: 11px; color: var(--bone-mute); }

.curve { display: grid; gap: 10px; margin-top: var(--s3); }
.curve__row { display: flex; justify-content: space-between; gap: 12px; font-size: 12px; color: var(--bone-dim); }
.curve .bar { height: 8px; }

.trades { width: 100%; border-collapse: collapse; font-size: 12px; }
.trades th { text-align: left; font-weight: 400; font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--bone-mute); padding: 0 8px 10px; border-bottom: 1px solid var(--bone-hair); }
.trades td { padding: 10px 8px; border-bottom: 1px solid var(--bone-hair); white-space: nowrap; }
.trades tr:last-child td { border-bottom: 0; }
.trades .r { text-align: right; }
.trades a:hover { color: var(--lamp); }
.side { display: inline-block; min-width: 40px; text-align: center; font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase; padding: 3px 8px; border-radius: 999px; }
.side--buy { color: var(--up); background: rgba(143,211,166,0.08); }
.side--sell { color: var(--down); background: rgba(232,128,108,0.08); }
.tablewrap { overflow-x: auto; }
.about { color: var(--bone-dim); font-size: 13px; line-height: 1.7; overflow-wrap: anywhere; }

/* trade box */
.tradebox { position: sticky; top: 88px; }
.tradebox .panel { padding: var(--s3); }
.banner {
  display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; border-radius: var(--r-sm);
  background: var(--lamp-dim); border: 1px solid var(--lamp-line); color: var(--bone); font-size: 12px; line-height: 1.5;
}
.banner .dot { margin-top: 5px; }
.sidetabs { display: grid; grid-template-columns: 1fr 1fr; padding: 4px; border-radius: 999px; background: var(--ink); border: 1px solid var(--bone-faint); margin: var(--s2) 0; }
.sidetabs button { height: 34px; border-radius: 999px; font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--bone-dim); }
.sidetabs button[aria-pressed="true"] { background: var(--bone); color: var(--ink); }
.field { display: grid; gap: 8px; margin-bottom: var(--s2); }
.field > label:not(.drop), .field__label { display: flex; justify-content: space-between; font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--bone-mute); }
.input {
  display: flex; align-items: center; gap: 8px; height: 52px; padding: 0 14px; border-radius: var(--r-sm);
  background: var(--ink); border: 1px solid var(--bone-faint); transition: border-color .25s;
}
.input:focus-within { border-color: var(--lamp-line); }
.input input { flex: 1; min-width: 0; background: none; border: 0; outline: none; font-size: 20px; }
.input input::placeholder { color: var(--bone-mute); }
.input span { font-size: 11px; color: var(--bone-dim); letter-spacing: 0.1em; }
.quick { display: flex; gap: 6px; }
.quick button { flex: 1; height: 30px; border-radius: 999px; border: 1px solid var(--bone-faint); font-size: 11px; color: var(--bone-dim); }
.quick button:hover { border-color: var(--lamp-line); color: var(--lamp); }
.kv { display: grid; gap: 10px; padding: 14px 0; margin-bottom: var(--s2); border-top: 1px solid var(--bone-hair); border-bottom: 1px solid var(--bone-hair); font-size: 12px; }
.kv div { display: flex; justify-content: space-between; gap: 12px; }
.kv dt { color: var(--bone-mute); }
.kv dd { text-align: right; }
.shadowaddr { font-size: 11px; color: var(--lamp); }
.outlink { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 12px; font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--bone-dim); }
.outlink:hover { color: var(--lamp); }
.outlink svg { width: 12px; height: 12px; fill: none; stroke: currentColor; stroke-width: 1.6; }

/* ---------- launch page ---------- */
.launchgrid { display: grid; grid-template-columns: minmax(0, 1fr) 400px; gap: var(--s4); align-items: start; margin-top: var(--s4); }
.formsec { padding: var(--s3); border: 1px solid var(--bone-hair); border-radius: var(--r); background: rgba(12,14,17,0.7); }
.formsec + .formsec { margin-top: var(--s2); }
.formsec h2 { display: flex; align-items: baseline; gap: 12px; font-family: var(--f-display); font-weight: 400; font-size: 22px; text-transform: uppercase; margin-bottom: var(--s2); }
.formsec h2 small { font-family: var(--f-mono); font-size: 10px; letter-spacing: 0.16em; color: var(--bone-mute); }
.formsec p.hint { color: var(--bone-mute); font-size: 12px; margin: -8px 0 var(--s2); }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s2); }
.row3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s2); }
.text {
  width: 100%; height: 46px; padding: 0 14px; border-radius: var(--r-xs); background: var(--ink); border: 1px solid var(--bone-faint);
  outline: none; transition: border-color .25s; font-size: 13px;
}
textarea.text { height: 110px; padding: 12px 14px; resize: vertical; line-height: 1.5; }
.text:focus { border-color: var(--lamp-line); }
.text[aria-invalid="true"] { border-color: var(--down); }
.count { color: var(--bone-mute); }
.drop {
  display: grid; grid-template-columns: 96px 1fr; gap: var(--s2); align-items: center; padding: 14px; border-radius: var(--r-sm);
  border: 1px dashed var(--bone-faint); background: var(--ink); cursor: pointer; transition: border-color .25s, background .25s;
}
.drop:hover, .drop.is-over { border-color: var(--lamp-line); background: rgba(201,215,255,0.04); }
.drop__img { width: 96px; height: 96px; border-radius: var(--r-sm); background: var(--ink-3); display: grid; place-items: center; overflow: hidden; color: var(--bone-mute); font-size: 10px; text-align: center; }
.drop__img img { width: 100%; height: 100%; object-fit: cover; }
.drop b { display: block; font-weight: 500; }
.drop span { font-size: 11px; color: var(--bone-mute); }
.toggle { display: flex; align-items: flex-start; justify-content: space-between; gap: var(--s2); padding: 14px; border-radius: var(--r-sm); border: 1px solid var(--bone-faint); background: var(--ink); cursor: pointer; }
.toggle b { display: block; font-weight: 500; font-size: 13px; margin-bottom: 4px; }
.toggle span { font-size: 11px; color: var(--bone-mute); }
.switch { position: relative; flex: none; width: 44px; height: 26px; border-radius: 999px; background: var(--bone-faint); transition: background .25s; }
.switch::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: var(--bone); transition: transform .3s var(--ease); }
.toggle input { position: absolute; opacity: 0; pointer-events: none; }
.toggle input:checked + .switch { background: var(--lamp); }
.toggle input:checked + .switch::after { transform: translateX(18px); }
.toggle input:focus-visible + .switch { outline: 1.5px solid var(--lamp); outline-offset: 2px; }

/* fee mixer */
.mixer { display: grid; gap: var(--s2); }
.presets { display: flex; flex-wrap: wrap; gap: 8px; }
.presets button { height: 32px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--bone-faint); font-size: 11px; letter-spacing: 0.08em; color: var(--bone-dim); }
.presets button:hover, .presets button[aria-pressed="true"] { border-color: var(--lamp-line); color: var(--lamp); }
.mixbar { position: relative; display: flex; height: 44px; border-radius: var(--r-xs); overflow: hidden; border: 1px solid var(--bone-faint); background: var(--ink); }
.mixbar__seg { position: relative; height: 100%; display: flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 500; color: var(--ink); overflow: hidden; white-space: nowrap; transition: width .35s var(--ease); }
.mixbar__seg.c-holders, .mixbar__seg.c-creator { color: var(--ink); }
.mixbar__seg.c-creator { color: var(--bone); }
.mixbar__gap { flex: 1; background: repeating-linear-gradient(45deg, transparent 0 6px, rgba(232,128,108,0.18) 6px 12px); }
.mixrow { display: grid; grid-template-columns: 14px minmax(0, 1fr) 160px 84px; gap: 12px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--bone-hair); }
.mixrow:last-of-type { border-bottom: 0; }
.mixrow__sw { width: 12px; height: 12px; border-radius: 3px; }
.mixrow__name b { display: block; font-weight: 500; font-size: 13px; }
.mixrow__name span { font-size: 11px; color: var(--bone-mute); }
.range { -webkit-appearance: none; appearance: none; width: 100%; height: 24px; background: transparent; cursor: pointer; }
.range::-webkit-slider-runnable-track { height: 4px; border-radius: 4px; background: linear-gradient(90deg, var(--c) var(--p), var(--bone-faint) var(--p)); }
.range::-moz-range-track { height: 4px; border-radius: 4px; background: var(--bone-faint); }
.range::-moz-range-progress { height: 4px; border-radius: 4px; background: var(--c); }
.range::-webkit-slider-thumb { -webkit-appearance: none; width: 18px; height: 18px; margin-top: -7px; border-radius: 50%; background: var(--bone); border: 3px solid var(--ink); box-shadow: 0 0 0 1px var(--bone-faint); }
.range::-moz-range-thumb { width: 14px; height: 14px; border-radius: 50%; background: var(--bone); border: 3px solid var(--ink); }
.range:focus-visible { outline: none; }
.range:focus-visible::-webkit-slider-thumb { box-shadow: 0 0 0 2px var(--lamp); }
.pct { display: flex; align-items: center; height: 38px; padding: 0 10px; border-radius: var(--r-xs); border: 1px solid var(--bone-faint); background: var(--ink); }
.pct:focus-within { border-color: var(--lamp-line); }
.pct input { width: 100%; background: none; border: 0; outline: none; text-align: right; font-size: 14px; }
.pct span { color: var(--bone-mute); margin-left: 4px; }
.pct input::-webkit-inner-spin-button, .pct input::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.pct input[type="number"] { -moz-appearance: textfield; appearance: textfield; }
.drop b { font-size: 13px; margin-bottom: 4px; }
.mixtotal { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 14px; border-radius: var(--r-sm); background: var(--ink); border: 1px solid var(--bone-faint); font-size: 12px; }
.mixtotal b { font-family: var(--f-display); font-weight: 400; font-size: 24px; }
.mixtotal.is-ok { border-color: rgba(143,211,166,0.35); }
.mixtotal.is-ok b { color: var(--up); }
.mixtotal.is-bad { border-color: rgba(232,128,108,0.45); }
.mixtotal.is-bad b { color: var(--down); }
.msgs { display: grid; gap: 6px; font-size: 12px; }
.msgs li { list-style: none; display: flex; gap: 8px; color: var(--down); }
.msgs li::before { content: "—"; }
.msgs .ok { color: var(--up); }
.msgs .ok::before { content: "✓"; }
.lockline { font-size: 11px; color: var(--bone-mute); display: flex; gap: 8px; align-items: center; }
.lockline svg { width: 12px; height: 12px; fill: none; stroke: currentColor; stroke-width: 1.6; flex: none; }

.preview { position: sticky; top: 88px; display: grid; gap: var(--s2); }
.preview .card { pointer-events: none; }
.preview .card:hover { transform: none; }
.preview__label { display: flex; justify-content: space-between; align-items: center; font-size: 10px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--bone-mute); }

/* ---------- drawer ---------- */
.drawer { position: fixed; inset: 0; z-index: 60; }
.drawer__scrim { position: absolute; inset: 0; background: rgba(0,0,0,0.6); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); }
.drawer__panel {
  position: absolute; top: 0; right: 0; bottom: 0; width: min(440px, 100%); display: flex; flex-direction: column;
  background: var(--ink-2); border-left: 1px solid var(--bone-faint); box-shadow: -40px 0 80px rgba(0,0,0,0.5);
}
.drawer__head { display: flex; justify-content: space-between; align-items: center; padding: var(--s3); border-bottom: 1px solid var(--bone-hair); }
.drawer__head h2 { font-family: var(--f-display); font-weight: 400; font-size: 28px; text-transform: uppercase; }
.drawer__body { flex: 1; overflow-y: auto; padding: var(--s3); display: grid; gap: var(--s3); align-content: start; }
.acct { padding: var(--s2); border-radius: var(--r-sm); border: 1px solid var(--bone-faint); background: var(--ink); display: grid; gap: 10px; }
.acct__row { display: flex; justify-content: space-between; gap: 12px; font-size: 12px; }
.acct__row span { color: var(--bone-mute); }
.steps { display: grid; gap: 12px; counter-reset: s; }
.steps li { list-style: none; display: grid; grid-template-columns: 28px 1fr; gap: 12px; color: var(--bone-dim); font-size: 12px; }
.steps li::before { counter-increment: s; content: counter(s); width: 28px; height: 28px; border-radius: 50%; border: 1px solid var(--lamp-line); color: var(--lamp); display: grid; place-items: center; font-size: 11px; }
.steps b { color: var(--bone); font-weight: 500; display: block; }

.toast { position: fixed; left: 50%; bottom: 24px; z-index: 80; transform: translate(-50%, 20px); opacity: 0; pointer-events: none; padding: 10px 18px; border-radius: 999px; background: var(--bone); color: var(--ink); font-size: 12px; transition: opacity .3s, transform .3s var(--ease); }
.toast.is-on { opacity: 1; transform: translate(-50%, 0); }

/* ---------- responsive ---------- */
@media (max-width: 1100px) {
  .coingrid, .launchgrid { grid-template-columns: 1fr; }
  .coingrid > .tradebox, .coingrid > .panel { grid-column: 1; grid-row: auto; }
  .tradebox, .preview { position: static; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .grid.is-list .card { grid-template-columns: 1.4fr 1fr 1fr; }
  .grid.is-list .card__foot { display: none; }
}
@media (max-width: 820px) {
  .top { grid-template-columns: auto 1fr auto; gap: var(--s2); }
  .top__nav { order: 4; grid-column: 1 / -1; justify-content: flex-start; }
  .search { order: 5; grid-column: 1 / -1; width: 100%; justify-self: stretch; }
  .search kbd { display: none; }
  .toolbar { top: 150px; }
  .floorhead { grid-template-columns: 1fr; }
  .floorhead__meta { justify-content: flex-start; }
  .coinhead { grid-template-columns: 64px 1fr; }
  .coinhead .ava { width: 64px; height: 64px; }
  .coinhead__price { grid-column: 1 / -1; text-align: left; display: flex; align-items: baseline; gap: 12px; }
  .row2, .row3 { grid-template-columns: 1fr; }
  .mixrow { grid-template-columns: 14px 1fr 84px; }
  .mixrow .range { grid-column: 2 / -1; grid-row: 2; }
  .mixrow--locked .lockpill { display: none; }
  .grid.is-list .card { grid-template-columns: 1fr; gap: 12px; }
  .chart { height: 280px; }
}
@media (max-width: 480px) {
  .view { padding-top: var(--s3); }
  .notice { font-size: 10px; text-align: left; justify-content: flex-start; }
  .grid { grid-template-columns: 1fr; }
  .floorhead__meta { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s1); }
  .kpi { min-width: 0; padding: 10px 12px; }
  .kpi b { font-size: 20px; }
  .kpi span { font-size: 9px; letter-spacing: 0.1em; display: block; line-height: 1.35; }
  .tools { width: 100%; }
  .tools .select { flex: 1; }
  .tools .select select { width: 100%; }
  .stats { grid-template-columns: 1fr 1fr; }
  .stat { padding: 12px; }
  .trades .hide-sm { display: none; }
  .card__foot { grid-template-columns: 1fr; gap: 10px; }
  .panel, .formsec { padding: var(--s2); }
  .btn--wallet span[data-wallet-label] { max-width: 90px; overflow: hidden; text-overflow: ellipsis; }
}
@media (prefers-reduced-motion: reduce) {
  .grain, .dot, .sk::after { animation: none; }
  * { transition-duration: 0.01ms !important; }
}


/* ---------- frosted-floor retheme (matches the landing) ---------- */
body { font-family: var(--f-sans); font-size: 14px; }
.grain { display: none; }
.lampglow { background: radial-gradient(60% 60% at 50% 0%, rgba(201, 215, 255, 0.10), transparent 70%); }
.ava,
.brand,
.coinhead h1,
.coinhead__price b,
.drawer__head h2,
.formsec h2,
.h1,
.kpi b,
.mcap b,
.mixtotal b,
.panel__head h2,
.state h3 {
  text-transform: none; letter-spacing: -0.04em; font-weight: 500;
}
.h1 { letter-spacing: -0.05em; line-height: 0.95; }
.h1 em, .h1 .accent { font-family: var(--f-serif); font-style: italic; font-weight: 400; letter-spacing: -0.02em;
  background: linear-gradient(110deg, #e6f3ff 0%, #c9d7ff 35%, #e9d6ff 65%, #d8fbf3 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
