:root {
  --bg: #0b1020; --bg2: #111830; --panel: #151d38; --line: #24305a;
  --text: #e6eaf5; --muted: #8e98b8; --accent: #3ee6c4; --accent2: #7c8cff; --warn: #ffc857; --bad: #ff6b81; --ok: #3ee6c4;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  background: radial-gradient(1200px 600px at 70% -10%, #1b2a5a 0%, transparent 60%), var(--bg);
  color: var(--text); font: 15px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  min-height: 100vh; display: flex; flex-direction: column;
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
code, .mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 13px; }
.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 20px; }
header { border-bottom: 1px solid var(--line); background: rgba(11,16,32,.7); backdrop-filter: blur(6px); position: sticky; top: 0; z-index: 5; }
header .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 20px; color: var(--text); }
.brand b { color: var(--accent); }
nav { display: flex; gap: 22px; font-size: 14px; }
nav a { color: var(--muted); }
nav a.on, nav a:hover { color: var(--text); text-decoration: none; }
.hero { padding: 56px 0 28px; }
.tag { display: inline-block; font-size: 12px; letter-spacing: 1.5px; text-transform: uppercase; color: var(--accent);
  border: 1px solid rgba(62,230,196,.35); border-radius: 999px; padding: 4px 12px; }
h1 { font-size: clamp(28px, 4.6vw, 44px); line-height: 1.15; margin: 16px 0 12px; letter-spacing: -.5px; }
h1 em { font-style: normal; background: linear-gradient(90deg, var(--accent), var(--accent2)); -webkit-background-clip: text; background-clip: text; color: transparent; }
h2 { font-size: 18px; margin: 34px 0 12px; }
.lead { color: var(--muted); font-size: 17px; max-width: 680px; }
.panel { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.pad { padding: 18px 20px; }
.scroll { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th { text-align: left; font-weight: 600; color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: .8px; padding: 12px 16px; background: var(--bg2); }
td { padding: 13px 16px; border-top: 1px solid var(--line); white-space: nowrap; }
tr.link { cursor: pointer; }
tr.link:hover td { background: rgba(124,140,255,.06); }
.coin { display: flex; align-items: center; gap: 12px; font-weight: 600; }
.coin small { display: block; color: var(--muted); font-weight: 400; font-size: 12px; }
.badge { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font-size: 11px; font-weight: 800; color: #0b1020; flex: none; }
.q { background: linear-gradient(135deg, #3ee6c4, #2a9df4); }
.n { background: linear-gradient(135deg, #7c8cff, #c56cf0); }
.status::before { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 8px; background: currentColor; box-shadow: 0 0 10px currentColor; }
.s-live { color: var(--ok); } .s-soon { color: var(--warn); } .s-bad { color: var(--bad); }
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 14px; }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 16px 18px; }
.card .k { color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: .8px; }
.card .v { font-size: 22px; font-weight: 700; margin-top: 4px; }
.card .v small { font-size: 13px; color: var(--muted); font-weight: 500; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.kv { display: grid; grid-template-columns: 150px 1fr; gap: 8px 14px; font-size: 14px; }
.kv div:nth-child(odd) { color: var(--muted); }
pre { background: #0a0f1e; border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; overflow-x: auto; margin: 8px 0 0; }
.search { display: flex; gap: 10px; }
input[type=text] { flex: 1; background: #0a0f1e; border: 1px solid var(--line); color: var(--text); border-radius: 10px; padding: 11px 14px; font: inherit; }
button { background: linear-gradient(90deg, var(--accent), var(--accent2)); border: 0; color: #0b1020; font-weight: 700; padding: 0 18px; border-radius: 10px; cursor: pointer; }
.muted { color: var(--muted); }
.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 16px; margin: 32px 0 56px; }
.feature { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 20px; }
.feature h3 { margin: 0 0 6px; font-size: 16px; }
.feature p { margin: 0; color: var(--muted); font-size: 14px; }
.feature .k { color: var(--accent); font-size: 22px; font-weight: 700; margin-bottom: 6px; }
.notice { border: 1px solid rgba(255,200,87,.35); background: rgba(255,200,87,.07); color: var(--warn); border-radius: 10px; padding: 10px 14px; font-size: 14px; margin: 0 0 18px; }
footer { margin-top: auto; border-top: 1px solid var(--line); background: var(--bg2); color: var(--muted); font-size: 13px; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; padding: 22px 20px; }
main { padding-bottom: 48px; }
@media (max-width: 760px) { nav { display: none; } .grid2 { grid-template-columns: 1fr; } .kv { grid-template-columns: 120px 1fr; } }

/* ---- full site additions ---- */
header .menu { display: none; background: none; border: 1px solid var(--line); color: var(--text); border-radius: 8px; padding: 4px 10px; font-size: 18px; cursor: pointer; }
.section { margin-top: 36px; }
.row { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.seg { display: inline-flex; background: var(--bg2); border: 1px solid var(--line); border-radius: 10px; padding: 3px; gap: 2px; }
.seg button { background: none; color: var(--muted); border: 0; padding: 5px 12px; border-radius: 7px; font: inherit; font-size: 13px; cursor: pointer; font-weight: 500; }
.seg button.on { background: var(--panel); color: var(--text); }
.chart { position: relative; padding: 10px 14px 6px; }
.chart-svg { width: 100%; height: auto; display: block; }
.chart-svg .grid { stroke: var(--line); stroke-width: 1; }
.chart-svg .tick { fill: var(--muted); font-size: 11px; }
.chart-svg .line { fill: none; stroke: var(--accent); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.chart-svg .area { fill: var(--accent); opacity: .08; }
.chart-svg .cross { stroke: var(--muted); stroke-width: 1; stroke-dasharray: 3 3; }
.chart-svg .dot { fill: var(--accent); stroke: var(--panel); stroke-width: 2; }
.chart-empty { color: var(--muted); padding: 60px 0; text-align: center; font-size: 14px; }
.tip { position: absolute; display: none; pointer-events: none; background: #0a0f1e; border: 1px solid var(--line); border-radius: 8px; padding: 6px 10px; font-size: 12px; white-space: nowrap; }
.tip span { color: var(--muted); }
.charts2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.paging { display: flex; justify-content: flex-end; align-items: center; gap: 10px; padding: 10px 14px; border-top: 1px solid var(--line); font-size: 13px; color: var(--muted); }
.paging button { background: var(--bg2); color: var(--text); border: 1px solid var(--line); border-radius: 8px; padding: 4px 12px; font-weight: 500; }
.paging button:disabled { opacity: .4; cursor: default; }
.code { position: relative; }
.code pre { padding-right: 70px; white-space: pre-wrap; word-break: break-all; }
.code .copy { position: absolute; top: 8px; right: 8px; padding: 4px 10px; font-size: 12px; border-radius: 7px; }
label.f { display: block; font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: .8px; margin: 0 0 6px; }
.form { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 12px; align-items: end; }
select, input[type=number] { background: #0a0f1e; border: 1px solid var(--line); color: var(--text); border-radius: 10px; padding: 11px 12px; font: inherit; width: 100%; }
.badge-beta { font-size: 11px; font-weight: 700; color: #0b1020; background: var(--warn); border-radius: 6px; padding: 2px 7px; margin-left: 8px; vertical-align: middle; }
.faq details { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 14px 18px; margin-bottom: 10px; }
.faq summary { cursor: pointer; font-weight: 600; }
.faq details p, .faq details ul { color: var(--muted); margin: 10px 0 0; }
.bar { height: 6px; background: var(--bg2); border-radius: 3px; overflow: hidden; min-width: 80px; }
.bar i { display: block; height: 100%; background: var(--accent2); border-radius: 3px; }
footer .wrap { flex-direction: column; gap: 6px; }
footer .links { display: flex; gap: 18px; flex-wrap: wrap; }
@media (max-width: 900px) { .charts2 { grid-template-columns: 1fr; } .form { grid-template-columns: 1fr 1fr; } }
@media (max-width: 760px) {
  header .menu { display: block; }
  header nav { display: none; position: absolute; top: 64px; left: 0; right: 0; flex-direction: column; gap: 0; background: var(--bg2); border-bottom: 1px solid var(--line); }
  body.nav-open header nav { display: flex; }
  header nav a { padding: 12px 20px; border-top: 1px solid var(--line); }
  .form { grid-template-columns: 1fr; }
}

/* ---- coins menu, currency, logos, coin picker (1 Nov) ---- */
nav { align-items: center; }
img.logo { border-radius: 50%; flex: none; vertical-align: middle; }
.dd { position: relative; }
.dd-btn, .cp-btn { background: none; border: 0; color: var(--muted); font: inherit; font-size: 14px; padding: 0; cursor: pointer; font-weight: 400; }
.dd.on .dd-btn, .dd-btn:hover { color: var(--text); }
.caret { font-size: 11px; margin-left: 2px; }
.dd-menu, .cp-menu { display: none; position: absolute; top: calc(100% + 10px); left: -12px; min-width: 230px; background: var(--bg2);
  border: 1px solid var(--line); border-radius: 12px; padding: 6px; box-shadow: 0 12px 30px rgba(0,0,0,.35); z-index: 20; }
.dd.open .dd-menu, .cp.open .cp-menu { display: block; }
.dd-menu a, .cp-menu button { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 8px; color: var(--text);
  width: 100%; background: none; border: 0; font: inherit; font-size: 14px; text-align: left; cursor: pointer; font-weight: 500; }
.dd-menu a:hover, .cp-menu button:hover, .dd-menu a.on, .cp-menu button.on { background: var(--panel); text-decoration: none; }
.dd-menu small, .cp-menu small { display: block; color: var(--muted); font-size: 12px; font-weight: 400; }
select.cur { width: auto; padding: 4px 8px; font-size: 13px; border-radius: 8px; background: var(--bg2); color: var(--muted); }
.cp { position: relative; }
.cp-btn { display: flex; align-items: center; gap: 10px; width: 100%; background: #0a0f1e; border: 1px solid var(--line); color: var(--text);
  border-radius: 10px; padding: 8px 12px; font-size: 15px; font-weight: 500; }
.cp-btn .caret { margin-left: auto; color: var(--muted); }
.cp-btn small { color: var(--muted); font-weight: 400; }
.cp-menu { left: 0; right: 0; top: calc(100% + 6px); }
.card .fx { font-size: 13px; color: var(--muted); font-weight: 500; margin-top: 2px; min-height: 18px; }
.coin-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; }
.coin-card { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 18px 20px; color: var(--text); display: block; }
.coin-card:hover { border-color: var(--accent2); text-decoration: none; }
.coin-card .coin { margin-bottom: 12px; }
.coin-card .kv { grid-template-columns: 1fr auto; font-size: 14px; }
.price-head { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.price-head .v { font-size: 26px; font-weight: 700; }
.up { color: var(--ok); } .down { color: var(--bad); }
@media (max-width: 760px) {
  .dd { border-top: 1px solid var(--line); }
  .dd-btn { display: none; }
  .dd-menu { display: block; position: static; box-shadow: none; border: 0; background: none; padding: 4px 10px; min-width: 0; }
  select.cur { margin: 10px 20px; }
}
