/* Upwick styles. Lime = up. Red is reserved for liquidations only. */
:root {
  --bg: #000;
  --bg2: #080a06;
  --panel: #0c0f0a;
  --panel2: #12160f;
  --line: #1d2419;
  --lime: #B6FF3B;
  --lime-dim: #7ea62a;
  --lime-glow: rgba(182, 255, 59, .35);
  --text: #eaf0e2;
  --mute: #7d8775;
  --down: #55604b;
  --neg: #a5b098;
  --red: #ff3b3b;
  --red-bg: rgba(255, 59, 59, .12);
  --display: 'Anton', 'Bebas Neue', Impact, 'Arial Narrow', sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, Menlo, Consolas, monospace;
  --r: 10px;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg); color: var(--text);
  font-family: var(--mono); font-size: 14px; line-height: 1.55;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
button { font-family: inherit; color: inherit; cursor: pointer; border: 0; background: none; }
input, select { font-family: inherit; color: inherit; }
.disp { font-family: var(--display); font-weight: 400; letter-spacing: .02em; text-transform: uppercase; line-height: 1; }
.lime { color: var(--lime); }
.mute { color: var(--mute); }
.neg { color: var(--neg); }
.wrap { max-width: 1160px; margin: 0 auto; padding: 0 20px; }

/* ---------- header ---------- */
.top {
  position: sticky; top: 0; z-index: 50; background: rgba(0, 0, 0, .86);
  backdrop-filter: blur(10px); border-bottom: 1px solid var(--line);
}
.top .in { display: flex; align-items: center; gap: 22px; height: 58px; padding: 0 20px; max-width: 1560px; margin: 0 auto; }
.logo { display: flex; align-items: center; gap: 9px; font-family: var(--display); font-size: 26px; letter-spacing: .04em; }
.logo svg { width: 22px; height: 28px; filter: drop-shadow(0 0 6px var(--lime-glow)); }
.nav { display: flex; gap: 20px; font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--mute); }
.nav a:hover { color: var(--lime); }
.sp { flex: 1; }
.chip {
  font-size: 10.5px; text-transform: uppercase; letter-spacing: .1em; padding: 4px 9px;
  border: 1px solid var(--line); border-radius: 99px; color: var(--mute); white-space: nowrap;
}
.chip i { display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--lime); margin-right: 6px; box-shadow: 0 0 8px var(--lime); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 10px 18px; border-radius: 8px; font-weight: 700; font-size: 13px;
  text-transform: uppercase; letter-spacing: .06em; transition: transform .12s, box-shadow .2s, background .2s;
}
.btn-lime { background: var(--lime); color: #000; box-shadow: 0 0 0 0 var(--lime-glow); }
.btn-lime:hover { box-shadow: 0 0 26px var(--lime-glow); transform: translateY(-1px); }
.btn-ghost { border: 1px solid var(--line); color: var(--text); background: var(--panel); }
.btn-ghost:hover { border-color: var(--lime-dim); color: var(--lime); }
.btn[disabled] { opacity: .35; cursor: not-allowed; box-shadow: none; transform: none; }
.btn-sm { padding: 5px 10px; font-size: 11px; border-radius: 6px; }
.btn-red { background: var(--red); color: #000; }

/* ---------- landing ---------- */
.hero { position: relative; overflow: hidden; padding: 56px 0 40px; }
.hero::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(600px 420px at 78% 40%, rgba(182, 255, 59, .13), transparent 70%),
    linear-gradient(var(--line) 1px, transparent 1px) 0 0 / 100% 64px;
  opacity: .8; pointer-events: none;
}
.hero .wrap { position: relative; display: grid; grid-template-columns: 1.1fr .9fr; gap: 30px; align-items: center; }
.eyebrow { font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--lime); margin-bottom: 18px; }
.hero h1 { font-size: clamp(64px, 11vw, 150px); }
.hero h1 span { color: var(--lime); text-shadow: 0 0 40px var(--lime-glow); }
.hero p.lead { margin: 22px 0 28px; max-width: 520px; color: #b8c2ac; font-size: 15px; }
.hero .cta { display: flex; gap: 12px; flex-wrap: wrap; }
.hero .note { margin-top: 18px; font-size: 11.5px; color: var(--mute); max-width: 480px; }
.wickart { width: 100%; max-width: 520px; justify-self: center; }
.wickart svg { width: 100%; height: auto; overflow: visible; }
.wick-main { transform-box: fill-box; transform-origin: 50% 100%; animation: wickgrow 4.2s cubic-bezier(.5, 0, .2, 1) infinite; filter: drop-shadow(0 0 10px var(--lime)); }
.wick-tip { animation: wicktip 4.2s cubic-bezier(.5, 0, .2, 1) infinite; filter: drop-shadow(0 0 14px var(--lime)); }
.wick-body { filter: drop-shadow(0 0 8px var(--lime-glow)); }
.c-pulse { animation: cpulse 4.2s ease-in-out infinite; }
@keyframes wickgrow { 0% { transform: scaleY(.22); } 55%, 80% { transform: scaleY(1); } 100% { transform: scaleY(.22); } }
@keyframes wicktip { 0% { transform: translateY(-48px); } 55%, 80% { transform: translateY(-220px); } 100% { transform: translateY(-48px); } }
@keyframes cpulse { 0%, 100% { opacity: .5; } 55% { opacity: 1; } }

.strip { border-block: 1px solid var(--line); background: var(--bg2); overflow: hidden; white-space: nowrap; }
.strip .track { display: inline-flex; gap: 38px; padding: 11px 0; animation: marq 40s linear infinite; }
.strip span { font-size: 12px; color: var(--mute); }
.strip b { color: var(--text); margin-right: 8px; font-weight: 700; }
@keyframes marq { to { transform: translateX(-50%); } }

section.sec { padding: 78px 0; }
section.sec.alt { background: var(--bg2); border-block: 1px solid var(--line); }
.sec h2 { font-size: clamp(38px, 6vw, 68px); margin-bottom: 14px; }
.sec .sub { color: var(--mute); max-width: 640px; margin-bottom: 38px; }
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.step { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); padding: 22px 20px; position: relative; transition: border-color .2s, transform .2s; }
.step:hover { border-color: var(--lime-dim); transform: translateY(-3px); }
.step .n { font-family: var(--display); font-size: 54px; color: var(--lime); line-height: 1; opacity: .9; }
.step h3 { font-family: var(--display); font-weight: 400; text-transform: uppercase; font-size: 24px; margin: 10px 0 8px; letter-spacing: .03em; }
.step p { font-size: 13px; color: #a9b39d; }
.step.liq .n { color: var(--red); }
.step.liq:hover { border-color: var(--red); }

.two { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; align-items: start; }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); }
.pad { padding: 22px; }
.calc label { display: block; font-size: 11px; text-transform: uppercase; letter-spacing: .1em; color: var(--mute); margin: 14px 0 6px; }
.calc label:first-child { margin-top: 0; }
.inp {
  width: 100%; background: #000; border: 1px solid var(--line); border-radius: 8px;
  padding: 10px 12px; font-size: 15px; outline: none; transition: border-color .2s;
}
.inp:focus { border-color: var(--lime); }
.rowin { position: relative; }
.rowin .u { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); font-size: 12px; color: var(--mute); pointer-events: none; }
.rowin .inp { padding-right: 52px; }
input[type=range] { -webkit-appearance: none; appearance: none; width: 100%; height: 4px; background: var(--line); border-radius: 4px; outline: none; margin: 10px 0 4px; }
input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 20px; height: 20px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 12px var(--lime-glow); border: 0; cursor: pointer; }
input[type=range]::-moz-range-thumb { width: 20px; height: 20px; border-radius: 50%; background: var(--lime); border: 0; cursor: pointer; }
.lvl { display: flex; justify-content: space-between; align-items: baseline; }
.lvl b { font-family: var(--display); font-weight: 400; font-size: 34px; color: var(--lime); }
.out { display: grid; gap: 0; }
.out .r { display: flex; justify-content: space-between; padding: 11px 0; border-bottom: 1px dashed var(--line); font-size: 13px; }
.out .r span:first-child { color: var(--mute); }
.out .r.big { border: 0; padding-top: 18px; align-items: baseline; }
.out .r.big b { font-family: var(--display); font-weight: 400; font-size: 46px; color: var(--red); text-shadow: 0 0 24px rgba(255, 59, 59, .4); }
.bar { height: 14px; background: #000; border: 1px solid var(--line); border-radius: 8px; position: relative; overflow: hidden; margin-top: 8px; }
.bar i { position: absolute; left: 0; top: 0; bottom: 0; background: linear-gradient(90deg, var(--red), #7a1d1d); }
.bar u { position: absolute; top: 0; bottom: 0; width: 2px; background: var(--lime); box-shadow: 0 0 8px var(--lime); }
.tiny { font-size: 11.5px; color: var(--mute); margin-top: 10px; }

.fees { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-bottom: 18px; }
.fee { padding: 22px; }
.fee .v { font-family: var(--display); font-size: 44px; color: var(--lime); }
.fee h3 { font-size: 12px; text-transform: uppercase; letter-spacing: .12em; color: var(--mute); margin-bottom: 8px; font-weight: 500; }
.fee p { font-size: 12.5px; color: #a9b39d; margin-top: 6px; }
.example { padding: 18px 22px; font-size: 13px; color: #b4bea8; }
.example b { color: var(--lime); }

.risk { display: grid; gap: 10px; }
.rk { display: grid; grid-template-columns: 52px 1fr 70px; gap: 12px; align-items: center; font-size: 13px; }
.rk .bar { margin: 0; height: 12px; }
.rk .bar i { right: auto; }
.rk em { font-style: normal; text-align: right; color: var(--red); }
.checks { list-style: none; display: grid; gap: 12px; }
.checks li { padding-left: 26px; position: relative; font-size: 13.5px; color: #b8c2ac; }
.checks li::before { content: ''; position: absolute; left: 0; top: 6px; width: 12px; height: 12px; border: 2px solid var(--lime); border-radius: 3px; }

table { width: 100%; border-collapse: collapse; font-size: 13px; }
th { text-align: left; font-weight: 500; font-size: 10.5px; text-transform: uppercase; letter-spacing: .1em; color: var(--mute); padding: 10px 12px; border-bottom: 1px solid var(--line); white-space: nowrap; }
td { padding: 11px 12px; border-bottom: 1px solid var(--line); white-space: nowrap; }
tr:last-child td { border-bottom: 0; }
th.r, td.r { text-align: right; }
.lb-wrap { overflow-x: auto; }
.rank { font-family: var(--display); font-size: 20px; color: var(--lime); }

details { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); margin-bottom: 10px; }
summary { padding: 18px 22px; cursor: pointer; font-weight: 700; list-style: none; display: flex; justify-content: space-between; gap: 14px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: '+'; color: var(--lime); font-size: 20px; line-height: 1; }
details[open] summary::after { content: '\2212'; }
details[open] { border-color: var(--lime-dim); }
details p { padding: 0 22px 20px; color: #a9b39d; font-size: 13.5px; }

.finalcta { text-align: center; padding: 90px 0; position: relative; overflow: hidden; }
.finalcta::before { content: ''; position: absolute; left: 50%; top: 100%; width: 700px; height: 400px; transform: translate(-50%, -60%); background: radial-gradient(closest-side, var(--lime-glow), transparent); }
.finalcta h2 { font-size: clamp(48px, 9vw, 120px); position: relative; }
.finalcta .btn { margin-top: 28px; position: relative; }

footer.foot { border-top: 1px solid var(--line); padding: 30px 0 40px; font-size: 12px; color: var(--mute); }
footer.foot .wrap { display: flex; justify-content: space-between; gap: 18px; flex-wrap: wrap; align-items: center; }
footer.foot .disc { max-width: 560px; }

/* ---------- app ---------- */
body.appbody { height: 100vh; display: flex; flex-direction: column; }
.app {
  flex: 1; display: grid; gap: 10px; padding: 10px; min-height: 0;
  grid-template-columns: 270px minmax(0, 1fr) 330px;
  grid-template-rows: minmax(300px, 1fr) minmax(210px, 36vh);
  grid-template-areas: "mkts chart order" "mkts panel order";
}
.mkts { grid-area: mkts; display: flex; flex-direction: column; min-height: 0; }
.chartcard { grid-area: chart; display: flex; flex-direction: column; min-height: 0; }
.panel { grid-area: panel; display: flex; flex-direction: column; min-height: 0; }
.order { grid-area: order; overflow-y: auto; }
.ph { font-size: 10.5px; text-transform: uppercase; letter-spacing: .12em; color: var(--mute); padding: 12px 14px; border-bottom: 1px solid var(--line); }
#mlist { overflow-y: auto; flex: 1; }
.mrow { display: grid; grid-template-columns: 1.3fr 1fr .8fr; gap: 6px; padding: 10px 14px; border-bottom: 1px solid var(--line); cursor: pointer; transition: background .15s; position: relative; align-items: center; }
.mrow:hover { background: var(--panel2); }
.mrow.on { background: var(--panel2); }
.mrow.on::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--lime); box-shadow: 0 0 12px var(--lime); }
.mrow b { font-size: 13px; }
.mrow small { display: block; font-size: 10.5px; color: var(--mute); }
.mrow .px { text-align: right; font-size: 12.5px; }
.mrow .ch { text-align: right; font-size: 12px; }
.mrow .meta { grid-column: 1 / -1; display: flex; justify-content: space-between; font-size: 10.5px; color: var(--mute); }
.mrow .meta .lv { color: var(--lime-dim); }
.up { color: var(--lime); }
.flash-up { animation: fu .35s; }
@keyframes fu { from { background: rgba(182, 255, 59, .14); } to { background: transparent; } }

.chead { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 14px; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.cinfo { display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; }
.csym { font-family: var(--display); font-size: 28px; letter-spacing: .03em; }
.cpx { font-size: 22px; font-weight: 700; }
.tfs { display: flex; gap: 4px; }
.tfs button { padding: 5px 11px; font-size: 12px; border: 1px solid var(--line); border-radius: 6px; color: var(--mute); }
.tfs button:hover { color: var(--text); }
.tfs button.on { background: var(--lime); color: #000; border-color: var(--lime); font-weight: 700; }
.cwrap { flex: 1; min-height: 240px; position: relative; }
.cwrap canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; cursor: crosshair; }

.tabs { display: flex; gap: 2px; border-bottom: 1px solid var(--line); padding: 0 8px; overflow-x: auto; }
.tabs button { padding: 12px 14px; font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--mute); border-bottom: 2px solid transparent; white-space: nowrap; }
.tabs button.on { color: var(--lime); border-bottom-color: var(--lime); }
.tabs .cnt { background: var(--lime); color: #000; border-radius: 99px; padding: 0 6px; font-size: 10px; margin-left: 4px; font-weight: 700; }
.tabbody { flex: 1; overflow: auto; min-height: 0; }
.empty { padding: 34px 20px; text-align: center; color: var(--mute); font-size: 13px; }
.tag { font-size: 10px; padding: 2px 6px; border-radius: 4px; border: 1px solid var(--lime-dim); color: var(--lime); margin-left: 6px; letter-spacing: .06em; }
.tag.liq { border-color: var(--red); color: var(--red); background: var(--red-bg); }
.tag.you { background: var(--lime); color: #000; border-color: var(--lime); }
tr.me td { background: rgba(182, 255, 59, .06); }

.order .sec { padding: 16px; border-bottom: 1px solid var(--line); }
.order .sec:last-child { border-bottom: 0; }
.order h3 { font-family: var(--display); font-weight: 400; font-size: 24px; text-transform: uppercase; letter-spacing: .03em; display: flex; justify-content: space-between; align-items: center; }
.order label { display: block; font-size: 10.5px; text-transform: uppercase; letter-spacing: .1em; color: var(--mute); margin: 14px 0 6px; }
.quick { display: flex; gap: 6px; margin-top: 7px; }
.quick button { flex: 1; padding: 5px 0; font-size: 11px; border: 1px solid var(--line); border-radius: 6px; color: var(--mute); }
.quick button:hover { color: var(--lime); border-color: var(--lime-dim); }
.ticks { display: flex; justify-content: space-between; font-size: 10px; color: var(--mute); }
.kv { display: flex; justify-content: space-between; padding: 6px 0; font-size: 12.5px; }
.kv span:first-child { color: var(--mute); }
.kv.liqrow b { color: var(--red); }
.warn { margin: 12px 0; padding: 10px 12px; border: 1px solid var(--line); border-radius: 8px; font-size: 11.5px; color: #b4bea8; background: #000; }
.warn b { color: var(--red); }
.warn.hot { border-color: var(--red); background: var(--red-bg); }
.msg { min-height: 16px; font-size: 11.5px; color: var(--neg); margin-bottom: 8px; }
.bigbtn { width: 100%; padding: 15px; font-size: 15px; }

#toasts { position: fixed; right: 14px; bottom: 14px; display: grid; gap: 10px; z-index: 200; width: min(360px, calc(100vw - 28px)); }
.toast { background: var(--panel2); border: 1px solid var(--lime-dim); border-left: 4px solid var(--lime); border-radius: 8px; padding: 12px 14px; font-size: 12.5px; animation: tin .25s ease-out; box-shadow: 0 8px 30px rgba(0, 0, 0, .7); }
.toast.liq { border-color: var(--red); border-left-color: var(--red); background: #1a0808; animation: tin .25s ease-out, shake .5s .25s; }
.toast b { display: block; font-family: var(--display); font-weight: 400; font-size: 20px; letter-spacing: .04em; text-transform: uppercase; }
.toast.liq b { color: var(--red); }
.toast .x { opacity: 0; transition: opacity .4s; }
@keyframes tin { from { transform: translateX(30px); opacity: 0; } }
@keyframes shake { 0%, 100% { transform: none; } 20% { transform: translateX(-6px); } 40% { transform: translateX(6px); } 60% { transform: translateX(-4px); } 80% { transform: translateX(4px); } }
.redflash { position: fixed; inset: 0; pointer-events: none; z-index: 150; box-shadow: inset 0 0 120px 20px rgba(255, 59, 59, .55); animation: rf .9s forwards; }
@keyframes rf { to { opacity: 0; } }

.modal { position: fixed; inset: 0; background: rgba(0, 0, 0, .8); display: none; align-items: center; justify-content: center; z-index: 100; padding: 16px; overflow-y: auto; }
.modal.open { display: flex; }
.mbox { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 24px; width: 100%; max-width: 440px; }
.mbox.wide { max-width: 760px; }
.mbox h3 { font-family: var(--display); font-weight: 400; font-size: 30px; text-transform: uppercase; margin-bottom: 10px; }
.mbox p { color: #a9b39d; font-size: 13px; margin-bottom: 12px; }
.mbtns { display: flex; gap: 10px; margin-top: 16px; flex-wrap: wrap; }
.mbtns .btn { flex: 1; }
#card { width: 100%; height: auto; border-radius: 10px; border: 1px solid var(--line); display: block; background: #000; }
.addr { font-size: 13px; padding: 10px 12px; background: #000; border: 1px solid var(--line); border-radius: 8px; margin: 8px 0; display: flex; justify-content: space-between; }

@media (max-width: 1100px) {
  .app { grid-template-columns: 230px minmax(0, 1fr) 300px; }
}
@media (max-width: 900px) {
  .hero .wrap, .two { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr 1fr; }
  .fees { grid-template-columns: 1fr; }
  .wickart { max-width: 380px; }
  .nav { display: none; }
  body.appbody { height: auto; display: block; }
  .app { display: flex; flex-direction: column; }
  .mkts { max-height: none; }
  #mlist { display: flex; overflow-x: auto; overflow-y: hidden; }
  .mrow { min-width: 190px; border-bottom: 0; border-right: 1px solid var(--line); }
  .chartcard { order: 2; } .order { order: 3; } .panel { order: 4; min-height: 260px; }
  .cwrap { height: 320px; flex: none; }
}
@media (max-width: 520px) {
  .top .ws-btn, .top .btn { padding: 8px 10px; font-size: 11px; }
  .steps { grid-template-columns: 1fr; }
  .top .in { gap: 10px; padding: 0 12px; }
  .top .hide-s { display: none; }
  .wrap { padding: 0 16px; }
  .hero { padding-top: 34px; }
  .logo { font-size: 22px; }
  .rk { grid-template-columns: 40px 1fr 58px; }
}
@media (prefers-reduced-motion: reduce) {
  .wick-main, .wick-tip, .c-pulse, .strip .track { animation: none; }
}

/* wallet-sign.js button, matched to .btn */
.top #wallet-slot { display: inline-flex; }
.top .ws-btn { padding: 10px 16px; border-radius: 8px; font: 700 13px/1.1 var(--mono); text-transform: uppercase; letter-spacing: .06em; color: #000; }
.top .ws-btn.ws-on { background: var(--panel); color: var(--text); border-color: var(--line); }
[hidden] { display: none !important; }
