:root {
  --bg: #07100c;
  --panel: #0c1813;
  --panel-2: #10201a;
  --line: rgba(195, 228, 210, 0.1);
  --line-2: rgba(195, 228, 210, 0.18);
  --text: #eef3ef;
  --dim: #8a9c93;
  --mint: #c3e4d2;
  --mint-2: #7fd3a8;
  --paint: #f4c64a;
  --red: #f0806a;
  --green: #6fd39b;
  --font: "Schibsted Grotesk", ui-sans-serif, system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, Menlo, monospace;
}
* { box-sizing: border-box; }
html, body { background: var(--bg); }
body { margin: 0; color: var(--text); font-family: var(--font); font-size: 15px; line-height: 1.5; -webkit-font-smoothing: antialiased; }
button { font: inherit; color: inherit; }
.a-dim { color: var(--dim); }
.a-pad { padding: 16px; }

.a-top { display: flex; align-items: center; gap: 24px; padding: 14px 22px; border-bottom: 1px solid var(--line); position: sticky; top: 0; background: rgba(7, 16, 12, 0.92); backdrop-filter: blur(8px); z-index: 10; }
.a-brand { display: flex; align-items: center; gap: 9px; text-decoration: none; color: var(--text); font-weight: 600; font-size: 18px; letter-spacing: -0.02em; }
.a-brand svg { width: 26px; height: 26px; }
.a-tabs { display: flex; gap: 4px; flex: 1; min-width: 0; overflow-x: auto; scrollbar-width: none; }
.a-tabs button { background: none; border: 0; padding: 6px 12px; border-radius: 8px; color: var(--dim); cursor: pointer; }
.a-tabs button[aria-selected="true"] { color: var(--text); background: var(--panel-2); }
.a-connect { background: var(--mint); color: #08130e; border: 0; border-radius: 99px; padding: 8px 16px; font-weight: 600; cursor: pointer; white-space: nowrap; }
.a-connect.a-is-on { background: var(--panel-2); color: var(--text); border: 1px solid var(--line-2); }

.a-banner { margin: 14px 22px 0; padding: 12px 16px; border-radius: 12px; background: rgba(244, 198, 74, 0.1); border: 1px solid rgba(244, 198, 74, 0.35); color: #f7dd94; font-size: 14px; }

.a-main { padding: 18px 22px 60px; max-width: 1320px; margin: 0 auto; }
.a-markets { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; margin-bottom: 16px; }
.a-markets button { flex: none; display: flex; flex-direction: column; align-items: flex-start; gap: 2px; padding: 9px 14px; border-radius: 12px; border: 1px solid var(--line); background: var(--panel); cursor: pointer; min-width: 128px; }
.a-markets button[aria-pressed="true"] { border-color: var(--mint); background: var(--panel-2); }
.a-markets b { font-weight: 600; font-size: 14px; }
.a-markets span { font-family: var(--mono); font-size: 12px; color: var(--dim); }

.a-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(112px, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; margin-bottom: 16px; }
.a-stats > div { background: var(--panel); padding: 12px 16px; }
.a-stats .l { font-size: 12px; color: var(--dim); }
.a-stats .v { font-family: var(--mono); font-size: 17px; margin-top: 2px; }
.a-up { color: var(--green); }
.a-down { color: var(--red); }

.a-grid { display: grid; grid-template-columns: 1fr 380px; gap: 16px; margin-bottom: 16px; }
.a-grid-2 { grid-template-columns: 1fr 1fr; }
.a-card { background: var(--panel); border: 1px solid var(--line); border-radius: 16px; padding: 16px 18px; min-width: 0; }
.a-card-h { display: flex; justify-content: space-between; align-items: center; font-size: 13px; color: var(--text); margin-bottom: 12px; font-weight: 500; }
.a-foot { font-size: 12.5px; color: var(--dim); margin: 12px 0 0; }
.a-big { font-family: var(--mono); font-size: 26px; letter-spacing: -0.02em; }

.a-ladder-rows { font-family: var(--mono); font-size: 12.5px; }
.a-lrow { display: grid; grid-template-columns: 1fr 1fr 1fr; padding: 3px 8px; position: relative; }
.a-lrow span { position: relative; }
.a-lrow span:nth-of-type(2), .a-lrow span:nth-of-type(3) { text-align: right; }
.a-lrow i { position: absolute; inset: 0 0 0 auto; opacity: 0.12; }
.a-lrow.ask span:first-of-type { color: var(--red); }
.a-lrow.bid span:first-of-type { color: var(--green); }
.a-lrow.ask i { background: var(--red); }
.a-lrow.bid i { background: var(--green); }
.a-lmid { display: flex; justify-content: space-between; padding: 7px 8px; margin: 4px 0; border-block: 1px solid var(--line); color: var(--dim); font-size: 12px; }
.a-lmid b { color: var(--paint); font-weight: 500; }

.a-seg { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; background: var(--bg); border-radius: 10px; padding: 3px; margin-bottom: 14px; }
.a-seg button { border: 0; background: none; padding: 8px; border-radius: 8px; cursor: pointer; color: var(--dim); font-weight: 500; }
.a-seg button[aria-selected="true"] { background: var(--panel-2); color: var(--text); }
.a-field { display: block; background: var(--bg); border: 1px solid var(--line); border-radius: 12px; padding: 10px 14px; }
.a-field:focus-within { border-color: var(--mint-2); }
.a-field > span:first-child { font-size: 12px; color: var(--dim); display: block; }
.a-field input { width: 100%; background: none; border: 0; outline: none; color: var(--text); font-family: var(--mono); font-size: 24px; padding: 4px 0; }
.a-bal { font-size: 12px; color: var(--dim); }
.a-quick { display: flex; gap: 6px; margin: 8px 0 12px; }
.a-quick button { flex: 1; border: 1px solid var(--line); background: none; border-radius: 8px; padding: 4px; font-size: 12px; color: var(--dim); cursor: pointer; }
.a-rows > div { display: flex; justify-content: space-between; padding: 6px 0; font-size: 13.5px; border-bottom: 1px dashed var(--line); }
.a-rows span { color: var(--dim); }
.a-rows b { font-family: var(--mono); font-weight: 400; }
.a-go { width: 100%; margin-top: 14px; border: 0; border-radius: 12px; padding: 13px; background: var(--mint); color: #08130e; font-weight: 600; font-size: 15px; cursor: pointer; }
.a-go:disabled { background: var(--panel-2); color: var(--dim); cursor: not-allowed; }
.a-msg { min-height: 20px; font-size: 13px; margin: 10px 0 0; color: var(--dim); word-break: break-word; }
.a-msg.a-bad { color: var(--red); }
.a-msg.a-ok { color: var(--green); }
.a-msg a { color: var(--mint); }

.a-meter { position: relative; height: 8px; border-radius: 5px; background: var(--panel-2); margin-top: 14px; }
.a-meter i { display: block; height: 100%; width: 0; border-radius: 5px; background: var(--mint-2); transition: width 0.4s; }
.a-meter em { position: absolute; top: -4px; bottom: -4px; width: 2px; background: var(--paint); }

.a-explain h3 { font-size: 15px; margin: 4px 0 6px; font-weight: 600; }
.a-explain p { color: var(--dim); font-size: 13.5px; margin: 0 0 14px; }
.a-explain b { color: var(--text); font-weight: 500; }

.a-list > div { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: 13.5px; }
.a-list > div:last-child { border-bottom: 0; }
.a-list b { font-family: var(--mono); font-weight: 400; }
.a-list a { color: var(--mint); }

.a-modal { position: fixed; inset: 0; background: rgba(0, 0, 0, 0.6); display: grid; place-items: center; z-index: 50; padding: 16px; }
.a-modal[hidden] { display: none; }
.a-modal-card { width: min(380px, 100%); background: var(--panel); border: 1px solid var(--line-2); border-radius: 18px; padding: 16px 18px; }
.a-x { background: none; border: 0; font-size: 22px; color: var(--dim); cursor: pointer; line-height: 1; }
.a-wlist { display: flex; flex-direction: column; gap: 8px; }
.a-wlist button { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 12px; border: 1px solid var(--line); background: var(--bg); cursor: pointer; text-align: left; }
.a-wlist button:hover { border-color: var(--mint); }
.a-wlist img { width: 28px; height: 28px; border-radius: 7px; }

@media (max-width: 900px) {
  .a-top { padding: 12px 16px; gap: 12px; }
  .a-tabs button { padding: 6px 8px; }
  .a-main { padding: 14px 16px 50px; }
  .a-grid, .a-grid-2 { grid-template-columns: 1fr; }
  .a-ticket { order: -1; }
  .a-banner { margin: 12px 16px 0; }
}
@media (max-width: 520px) {
  .a-top { gap: 8px; padding: 10px 12px; }
  .a-connect { padding: 7px 11px; font-size: 13px; }
  .a-tabs button { padding: 6px 7px; font-size: 14px; }
  .a-brand span, .a-brand { font-size: 0; gap: 0; }
  .a-brand svg { width: 28px; height: 28px; }
}
.a-mark { width: 26px; height: 26px; border-radius: 7px; display: block; }
@media (max-width: 520px) { .a-mark { width: 28px; height: 28px; } }
