/* =========================================================================
   NiceP2P — design system
   Dark-first, light theme via [data-theme="light"]. Mobile-first layout.
   ========================================================================= */
/* Country flags: Windows has no flag emoji, so flags come from the Twemoji Country Flags font
   (only downloaded when a flag is on the page, thanks to unicode-range). */
@font-face {
  font-family: "Twemoji Country Flags";
  src: url("https://cdn.jsdelivr.net/npm/country-flag-emoji-polyfill@0.1.8/dist/TwemojiCountryFlags.woff2") format("woff2");
  unicode-range: U+1F1E6-1F1FF, U+1F3F4, U+E0062-E0063, U+E0065, U+E0067, U+E006C, U+E006E, U+E0073-E0074, U+E0077, U+E007F;
  font-display: swap;
}
:root {
  --bg: #0a0d13;
  --bg-2: #0e121a;
  --surface: #131823;
  --surface-2: #19202d;
  --surface-3: #212a3a;
  --border: #232c3c;
  --border-strong: #2f3a4e;
  --text: #e9ecf2;
  --text-2: #b8c0cf;
  --muted: #8a94a8;
  --faint: #5c6679;
  --brand: #7c6cf0;
  --brand-hover: #8f81f5;
  --brand-soft: rgba(124, 108, 240, .14);
  --accent: #22d3ee;
  --buy: #1fb874;
  --buy-hover: #23cc81;
  --buy-soft: rgba(31, 184, 116, .13);
  --sell: #f0464d;
  --sell-hover: #ff5a61;
  --sell-soft: rgba(240, 70, 77, .13);
  --warn: #f5a524;
  --warn-soft: rgba(245, 165, 36, .14);
  --info: #3b8bf6;
  --info-soft: rgba(59, 139, 246, .14);
  --shadow: 0 10px 30px rgba(0, 0, 0, .35);
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, .25);
  --radius: 14px;
  --radius-sm: 10px;
  --radius-xs: 7px;
  --header-h: 64px;
  --font: "Twemoji Country Flags", "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  color-scheme: dark;
}
[data-theme="light"] {
  --bg: #f5f6fa;
  --bg-2: #eef0f6;
  --surface: #ffffff;
  --surface-2: #f6f7fb;
  --surface-3: #eceff5;
  --border: #e3e7ef;
  --border-strong: #d2d8e3;
  --text: #121722;
  --text-2: #364055;
  --muted: #5f6b80;
  --faint: #95a0b3;
  --brand: #6553e8;
  --brand-hover: #5442d9;
  --brand-soft: rgba(101, 83, 232, .10);
  --buy: #12a163;
  --buy-hover: #0f8f57;
  --sell: #e0353d;
  --sell-hover: #c92b33;
  --shadow: 0 10px 30px rgba(20, 30, 60, .10);
  --shadow-sm: 0 2px 8px rgba(20, 30, 60, .06);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--text); font: 15px/1.55 var(--font);
  -webkit-font-smoothing: antialiased; min-height: 100vh; display: flex; flex-direction: column;
}
main { flex: 1; }
a { color: var(--brand); text-decoration: none; }
a:hover { color: var(--brand-hover); }
img, svg { max-width: 100%; }
h1, h2, h3, h4 { margin: 0 0 .5em; line-height: 1.2; letter-spacing: -.01em; }
h1 { font-size: clamp(1.7rem, 3.5vw, 2.4rem); font-weight: 800; }
h2 { font-size: 1.45rem; font-weight: 750; }
h3 { font-size: 1.12rem; font-weight: 700; }
p { margin: 0 0 1em; }
hr { border: 0; border-top: 1px solid var(--border); margin: 20px 0; }
code, .mono { font-family: var(--mono); font-size: .9em; }
::selection { background: var(--brand); color: #fff; }

.ic { width: 18px; height: 18px; flex: none; vertical-align: -3px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.ic.lg { width: 24px; height: 24px; }
.ic.xl { width: 40px; height: 40px; stroke-width: 1.4; }
.coin { border-radius: 50%; flex: none; vertical-align: middle; }

.container { width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 16px; }
.container.narrow { max-width: 760px; }
.container.mid { max-width: 1000px; }
.section { padding-top: 28px; padding-bottom: 48px; }
.muted { color: var(--muted); }
.faint { color: var(--faint); }
.small { font-size: .86rem; }
.tiny { font-size: .76rem; }
.center { text-align: center; }
.right { text-align: right; }
.nowrap { white-space: nowrap; }
.up { color: var(--buy); }
.down { color: var(--sell); }
.text-buy { color: var(--buy); }
.text-sell { color: var(--sell); }
.text-warn { color: var(--warn); }
.bold { font-weight: 700; }
.hidden { display: none !important; }
.grow { flex: 1; min-width: 0; }
.row { display: flex; align-items: center; gap: 12px; }
.row.wrap { flex-wrap: wrap; }
.row.between { justify-content: space-between; }
.row.top { align-items: flex-start; }
.stack > * + * { margin-top: 16px; }
.stack-sm > * + * { margin-top: 8px; }
.grid { display: grid; gap: 16px; }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.mt-0 { margin-top: 0 !important; } .mt-1 { margin-top: 8px; } .mt-2 { margin-top: 16px; } .mt-3 { margin-top: 24px; } .mt-4 { margin-top: 36px; }
.mb-0 { margin-bottom: 0 !important; } .mb-1 { margin-bottom: 8px; } .mb-2 { margin-bottom: 16px; } .mb-3 { margin-bottom: 24px; }
.truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.break { word-break: break-all; }

/* ---------- Header ---------- */
.topbar {
  position: sticky; top: 0; z-index: 50; height: var(--header-h);
  background: color-mix(in srgb, var(--bg) 82%, transparent); backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px); border-bottom: 1px solid var(--border);
}
@supports not (background: color-mix(in srgb, red 50%, transparent)) { .topbar { background: var(--bg); } }
.topbar .container { display: flex; align-items: center; gap: 18px; height: 100%; max-width: 1400px; }
.logo { display: flex; align-items: center; gap: 9px; color: var(--text); font-weight: 800; font-size: 1.15rem; letter-spacing: -.02em; }
.logo:hover { color: var(--text); }
.logo-mark { width: 32px; height: 32px; }
.logo b { color: var(--brand); }
.nav { display: flex; gap: 2px; margin-left: 12px; }
.nav a { color: var(--text-2); padding: 8px 12px; border-radius: 8px; font-weight: 550; font-size: .93rem; }
.nav a:hover, .nav a.active { color: var(--text); background: var(--surface-2); }
.top-actions { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.icon-btn {
  position: relative; display: inline-grid; place-items: center; width: 38px; height: 38px; border-radius: 10px;
  border: 1px solid transparent; background: transparent; color: var(--text-2); cursor: pointer;
}
.icon-btn:hover { background: var(--surface-2); color: var(--text); }
.icon-btn .dot { position: absolute; top: 5px; right: 5px; min-width: 17px; height: 17px; padding: 0 4px; border-radius: 9px; background: var(--sell); color: #fff; font-size: 10px; font-weight: 700; line-height: 17px; text-align: center; }
.cur-btn {
  display: inline-flex; align-items: center; gap: 7px; height: 38px; padding: 0 12px; border-radius: 10px; cursor: pointer;
  border: 1px solid var(--border); background: var(--surface); color: var(--text); font: 600 .9rem var(--font);
}
.cur-btn:hover { border-color: var(--border-strong); }
.cur-btn .flag { font-size: 1.05rem; }
.menu-toggle { display: none; }
.dropdown { position: relative; }
.dropdown-menu {
  position: absolute; right: 0; top: calc(100% + 8px); min-width: 230px; background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-sm); box-shadow: var(--shadow); padding: 6px; display: none; z-index: 60;
}
.dropdown.open .dropdown-menu { display: block; animation: pop .14s ease-out; }
.dropdown-menu a, .dropdown-menu button {
  display: flex; align-items: center; gap: 10px; width: 100%; padding: 9px 11px; border-radius: 8px; color: var(--text-2);
  background: none; border: 0; font: 500 .92rem var(--font); cursor: pointer; text-align: left;
}
.dropdown-menu a:hover, .dropdown-menu button:hover { background: var(--surface-2); color: var(--text); }
.dropdown-menu .sep { height: 1px; background: var(--border); margin: 6px 4px; }
.dropdown-head { padding: 10px 11px 8px; }
@keyframes pop { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }

.mobile-nav { display: none; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 42px; padding: 0 18px;
  border-radius: var(--radius-sm); border: 1px solid transparent; font: 650 .94rem var(--font); cursor: pointer;
  background: var(--surface-2); color: var(--text); transition: background .15s, border-color .15s, transform .05s; white-space: nowrap;
}
.btn:hover { background: var(--surface-3); color: var(--text); }
.btn:active { transform: translateY(1px); }
.btn:disabled, .btn.disabled { opacity: .5; cursor: not-allowed; pointer-events: none; }
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-hover); color: #fff; }
.btn-buy { background: var(--buy); color: #fff; }
.btn-buy:hover { background: var(--buy-hover); color: #fff; }
.btn-sell { background: var(--sell); color: #fff; }
.btn-sell:hover { background: var(--sell-hover); color: #fff; }
.btn-outline { background: transparent; border-color: var(--border-strong); }
.btn-outline:hover { background: var(--surface-2); }
.btn-ghost { background: transparent; color: var(--text-2); }
.btn-ghost:hover { background: var(--surface-2); }
.btn-danger { background: var(--sell-soft); color: var(--sell); }
.btn-danger:hover { background: var(--sell); color: #fff; }
.btn-warn { background: var(--warn-soft); color: var(--warn); }
.btn-sm { height: 34px; padding: 0 12px; font-size: .86rem; border-radius: 8px; }
.btn-xs { height: 28px; padding: 0 10px; font-size: .8rem; border-radius: 7px; gap: 5px; }
.btn-lg { height: 50px; padding: 0 26px; font-size: 1rem; }
.btn-block { width: 100%; }
.btn .spinner { width: 16px; height: 16px; border: 2px solid rgba(255,255,255,.35); border-top-color: #fff; border-radius: 50%; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.link-btn { background: none; border: 0; color: var(--brand); cursor: pointer; font: inherit; padding: 0; }

/* ---------- Cards / panels ---------- */
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; }
.card.pad-lg { padding: 28px; }
.card.flush { padding: 0; overflow: hidden; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.card-head h2, .card-head h3 { margin: 0; }
.card-foot { border-top: 1px solid var(--border); margin: 20px -20px -20px; padding: 14px 20px; }
.panel-title { font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); font-weight: 700; margin-bottom: 10px; }

.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin: 26px 0 20px; }
.page-head h1 { margin: 0; font-size: 1.7rem; }
.page-head p { margin: 4px 0 0; color: var(--muted); }
.breadcrumb { font-size: .85rem; color: var(--muted); margin-bottom: 6px; }
.breadcrumb a { color: var(--muted); }

/* ---------- Forms ---------- */
.field { margin-bottom: 16px; }
.field > label, .label { display: block; font-size: .86rem; font-weight: 600; color: var(--text-2); margin-bottom: 7px; }
.hint { font-size: .8rem; color: var(--muted); margin-top: 6px; }
.input, select.input, textarea.input {
  width: 100%; height: 44px; padding: 0 14px; background: var(--bg-2); color: var(--text); border: 1px solid var(--border);
  border-radius: var(--radius-sm); font: 500 .95rem var(--font); outline: none; transition: border-color .15s, box-shadow .15s;
}
textarea.input { height: auto; min-height: 96px; padding: 12px 14px; resize: vertical; line-height: 1.5; }
select.input { appearance: none; padding-right: 36px; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none' stroke='%238a94a8' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='m1 1.5 5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center; }
.input:focus { border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); }
.input::placeholder { color: var(--faint); }
.input.is-invalid { border-color: var(--sell); }
.input-group { position: relative; display: flex; align-items: center; }
.input-group .input { padding-right: 90px; }
.input-group .addon { position: absolute; right: 12px; display: flex; align-items: center; gap: 8px; color: var(--muted); font-weight: 600; font-size: .9rem; }
.input-group .addon .link-btn { font-weight: 700; font-size: .85rem; }
.input-lg { height: 52px; font-size: 1.05rem; }
.check { display: flex; align-items: flex-start; gap: 10px; cursor: pointer; font-size: .92rem; color: var(--text-2); }
.check input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--brand); flex: none; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.otp-input { letter-spacing: .5em; text-align: center; font: 700 1.4rem var(--mono); }

.seg { display: inline-flex; background: var(--bg-2); border: 1px solid var(--border); border-radius: 11px; padding: 3px; gap: 2px; }
.seg button, .seg a, .seg label {
  border: 0; background: none; color: var(--muted); padding: 7px 16px; border-radius: 8px; font: 650 .9rem var(--font); cursor: pointer; display: inline-flex; align-items: center; gap: 6px;
}
.seg input { display: none; }
.seg .active, .seg input:checked + span { background: var(--surface-3); color: var(--text); }
.seg label span { display: inline-flex; align-items: center; gap: 6px; padding: 0; }
.seg.buy-sell .active.buy, .seg.buy-sell input:checked + span.buy { background: var(--buy); color: #fff; }
.seg.buy-sell .active.sell, .seg.buy-sell input:checked + span.sell { background: var(--sell); color: #fff; }
.seg label { padding: 0; }
.seg label span { padding: 7px 16px; border-radius: 8px; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip-check input { display: none; }
.chip-check span { display: inline-flex; align-items: center; gap: 7px; padding: 7px 12px; border: 1px solid var(--border); border-radius: 999px; cursor: pointer; font-size: .88rem; font-weight: 550; color: var(--text-2); }
.chip-check input:checked + span { border-color: var(--brand); background: var(--brand-soft); color: var(--text); }

/* ---------- Alerts / badges ---------- */
.alert { display: flex; gap: 12px; align-items: flex-start; padding: 13px 16px; border-radius: var(--radius-sm); border: 1px solid; font-size: .92rem; margin-bottom: 16px; }
.alert .ic { margin-top: 1px; }
.alert-info { background: var(--info-soft); border-color: rgba(59,139,246,.3); color: var(--text); }
.alert-success { background: var(--buy-soft); border-color: rgba(31,184,116,.3); }
.alert-error, .alert-danger { background: var(--sell-soft); border-color: rgba(240,70,77,.3); }
.alert-warn, .alert-warning { background: var(--warn-soft); border-color: rgba(245,165,36,.32); }
.alert b { font-weight: 700; }
.badge { display: inline-flex; align-items: center; gap: 5px; padding: 3px 9px; border-radius: 999px; font-size: .75rem; font-weight: 700; white-space: nowrap; line-height: 1.4; }
.badge-success { background: var(--buy-soft); color: var(--buy); }
.badge-danger { background: var(--sell-soft); color: var(--sell); }
.badge-warn { background: var(--warn-soft); color: var(--warn); }
.badge-info { background: var(--info-soft); color: var(--info); }
.badge-muted { background: var(--surface-3); color: var(--muted); }
.badge-brand { background: var(--brand-soft); color: var(--brand); }
.pm-tag { display: inline-flex; align-items: center; gap: 6px; font-size: .8rem; color: var(--text-2); font-weight: 550; white-space: nowrap; }
.pm-tag::before { content: ""; width: 3px; height: 12px; border-radius: 2px; background: var(--pm, var(--brand)); }
.pm-list { display: flex; flex-wrap: wrap; gap: 4px 12px; }

/* ---------- Toasts ---------- */
.toasts { position: fixed; top: 76px; right: 16px; z-index: 200; display: flex; flex-direction: column; gap: 10px; max-width: min(380px, calc(100vw - 32px)); }
.toast { display: flex; gap: 10px; align-items: flex-start; padding: 13px 15px; border-radius: 12px; background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow); animation: slidein .2s ease-out; font-size: .92rem; }
.toast.success { border-left: 4px solid var(--buy); }
.toast.error { border-left: 4px solid var(--sell); }
.toast.info { border-left: 4px solid var(--brand); }
.toast.warn { border-left: 4px solid var(--warn); }
@keyframes slidein { from { opacity: 0; transform: translateX(20px); } to { opacity: 1; transform: none; } }

/* ---------- Tables ---------- */
.table-wrap { width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }
table.table { width: 100%; border-collapse: collapse; font-size: .92rem; }
.table th { text-align: left; color: var(--muted); font-weight: 600; font-size: .8rem; padding: 12px 14px; border-bottom: 1px solid var(--border); white-space: nowrap; }
.table td { padding: 14px; border-bottom: 1px solid var(--border); vertical-align: middle; }
.table tr:last-child td { border-bottom: 0; }
.table tbody tr:hover { background: var(--surface-2); }
.table .num { text-align: right; font-variant-numeric: tabular-nums; }
.table.compact td { padding: 10px 12px; }
.empty { text-align: center; padding: 48px 20px; color: var(--muted); }
.empty .ic { width: 44px; height: 44px; stroke-width: 1.3; color: var(--faint); margin-bottom: 10px; }

/* ---------- Avatar ---------- */
.avatar { display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; flex: none; color: #fff; font-weight: 700; font-size: .9rem;
  background: linear-gradient(135deg, hsl(var(--h) 65% 55%), hsl(calc(var(--h) + 40) 70% 45%)); }
.avatar.lg { width: 64px; height: 64px; font-size: 1.6rem; }
.avatar.sm { width: 26px; height: 26px; font-size: .75rem; }
.online-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--faint); display: inline-block; flex: none; }
.online-dot.on { background: var(--buy); box-shadow: 0 0 0 3px var(--buy-soft); }
.verified { color: var(--brand); }

/* ---------- Hero / landing ---------- */
.hero { position: relative; overflow: hidden; padding: 64px 0 40px; }
.hero::before { content: ""; position: absolute; inset: -40% -10% auto; height: 620px; background:
  radial-gradient(600px 300px at 20% 30%, rgba(124,108,240,.28), transparent 70%),
  radial-gradient(500px 280px at 80% 20%, rgba(34,211,238,.16), transparent 70%); pointer-events: none; }
.hero .container { position: relative; display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; }
.hero h1 { font-size: clamp(2.1rem, 5vw, 3.6rem); line-height: 1.05; margin-bottom: 18px; letter-spacing: -.035em; }
.hero h1 .grad { background: linear-gradient(90deg, var(--brand), var(--accent)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero .lead { font-size: 1.13rem; color: var(--text-2); max-width: 560px; margin-bottom: 26px; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-points { display: flex; gap: 22px; flex-wrap: wrap; margin-top: 28px; color: var(--muted); font-size: .9rem; }
.hero-points span { display: inline-flex; gap: 7px; align-items: center; }
.hero-points .ic { color: var(--buy); }
.quick-trade { background: var(--surface); border: 1px solid var(--border); border-radius: 20px; padding: 22px; box-shadow: var(--shadow); }
.quick-trade .tabs2 { display: grid; grid-template-columns: 1fr 1fr; margin: -22px -22px 18px; border-bottom: 1px solid var(--border); }
.quick-trade .tabs2 button { padding: 15px; background: none; border: 0; font: 700 1rem var(--font); color: var(--muted); cursor: pointer; border-bottom: 2px solid transparent; }
.quick-trade .tabs2 button.active.buy { color: var(--buy); border-color: var(--buy); }
.quick-trade .tabs2 button.active.sell { color: var(--sell); border-color: var(--sell); }
.price-strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.price-tile { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px; display: flex; gap: 12px; align-items: center; transition: border-color .15s, transform .15s; color: var(--text); }
.price-tile:hover { border-color: var(--border-strong); transform: translateY(-2px); color: var(--text); }
.price-tile .p { font-weight: 750; font-size: 1.05rem; font-variant-numeric: tabular-nums; }
.feature { padding: 22px; }
.feature .ic-wrap { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; background: var(--brand-soft); color: var(--brand); margin-bottom: 14px; }
.feature h3 { font-size: 1.05rem; }
.feature p { color: var(--muted); margin: 0; font-size: .93rem; }
.steps { counter-reset: step; }
.step { position: relative; padding-left: 56px; margin-bottom: 22px; }
.step::before { counter-increment: step; content: counter(step); position: absolute; left: 0; top: 0; width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: var(--brand-soft); color: var(--brand); font-weight: 800; }
.step h3 { margin-bottom: 4px; font-size: 1.02rem; }
.step p { color: var(--muted); margin: 0; font-size: .93rem; }
.band { background: var(--bg-2); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.cta-band { background: linear-gradient(120deg, var(--brand), #4a3fc4 60%, #1f8fb0); border-radius: 22px; padding: 40px; color: #fff; display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.cta-band h2 { color: #fff; margin: 0 0 6px; }
.cta-band p { margin: 0; opacity: .85; }
.cta-band .btn { background: #fff; color: #2b2380; }
.marquee { overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.marquee-track { display: flex; gap: 10px; width: max-content; animation: marquee 50s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Market (P2P) ---------- */
.market-head { padding-top: 22px; }
.market-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin-bottom: 14px; }
.asset-tabs { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; }
.asset-tabs::-webkit-scrollbar { display: none; }
.asset-tabs a { display: inline-flex; align-items: center; gap: 7px; padding: 8px 14px; border-radius: 9px; color: var(--muted); font-weight: 700; white-space: nowrap; }
.asset-tabs a:hover { color: var(--text); background: var(--surface-2); }
.asset-tabs a.active { color: var(--text); background: var(--surface-2); box-shadow: inset 0 -2px 0 var(--brand); }
.filters { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; padding: 12px 0 16px; border-bottom: 1px solid var(--border); }
.filters .input { height: 40px; width: auto; min-width: 150px; }
.filters .amount-filter { position: relative; }
.filters .amount-filter .input { width: 220px; padding-right: 58px; }
.filters .amount-filter span { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); font-weight: 700; color: var(--muted); font-size: .85rem; }
.ref-price { margin-left: auto; font-size: .86rem; color: var(--muted); display: flex; align-items: center; gap: 6px; }
.ref-price b { color: var(--text); }

.offer-table { width: 100%; border-collapse: collapse; }
.offer-table th { text-align: left; color: var(--muted); font-size: .8rem; font-weight: 600; padding: 14px 12px; border-bottom: 1px solid var(--border); }
.offer-table td { padding: 18px 12px; border-bottom: 1px solid var(--border); vertical-align: middle; }
.offer-row:hover { background: var(--surface); }
.offer-row.expanded { background: var(--surface); }
.adv { display: flex; gap: 11px; align-items: flex-start; }
.adv-name { display: flex; align-items: center; gap: 6px; font-weight: 700; color: var(--text); }
.adv-name:hover { color: var(--brand); }
.adv-stats { font-size: .8rem; color: var(--muted); margin-top: 3px; display: flex; gap: 10px; flex-wrap: wrap; }
.offer-price { font-size: 1.25rem; font-weight: 750; font-variant-numeric: tabular-nums; letter-spacing: -.01em; }
.offer-price small { font-size: .78rem; color: var(--muted); font-weight: 600; margin-left: 4px; }
.offer-meta { font-size: .86rem; color: var(--text-2); line-height: 1.7; }
.offer-meta span { color: var(--muted); display: inline-block; min-width: 72px; }
.offer-trade-panel td { padding: 0; background: var(--surface); border-bottom: 1px solid var(--border); }
.trade-box { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; padding: 22px 22px 24px; border-left: 3px solid var(--brand); }
.trade-box .terms { background: var(--bg-2); border-radius: 10px; padding: 12px 14px; font-size: .88rem; color: var(--text-2); white-space: pre-wrap; max-height: 180px; overflow: auto; }
.trade-box .kv { display: grid; grid-template-columns: auto 1fr; gap: 6px 18px; font-size: .88rem; margin-bottom: 14px; }
.trade-box .kv dt { color: var(--muted); }
.trade-box .kv dd { margin: 0; font-weight: 600; }
.offer-cards { display: none; }
.load-more { display: flex; justify-content: center; padding: 22px; }
.skeleton { background: linear-gradient(90deg, var(--surface-2), var(--surface-3), var(--surface-2)); background-size: 200% 100%; animation: shimmer 1.2s infinite; border-radius: 8px; height: 14px; }
@keyframes shimmer { to { background-position: -200% 0; } }

/* ---------- Order page ---------- */
.order-layout { display: grid; grid-template-columns: 1fr 400px; gap: 20px; align-items: start; }
.order-status { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.order-status h1 { font-size: 1.45rem; margin: 0 0 4px; }
.timer { display: inline-flex; align-items: center; gap: 8px; font: 700 1.3rem var(--mono); padding: 8px 14px; border-radius: 10px; background: var(--warn-soft); color: var(--warn); }
.timer.urgent { background: var(--sell-soft); color: var(--sell); }
.progress { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 18px 0 4px; }
.progress div { font-size: .8rem; color: var(--muted); font-weight: 600; padding-top: 10px; border-top: 3px solid var(--surface-3); }
.progress div.done { color: var(--text); border-color: var(--brand); }
.summary-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--border); border-radius: 12px; overflow: hidden; border: 1px solid var(--border); }
.summary-grid > div { background: var(--surface); padding: 14px 16px; }
.summary-grid .k { font-size: .78rem; color: var(--muted); margin-bottom: 4px; }
.summary-grid .v { font-weight: 750; font-size: 1.05rem; font-variant-numeric: tabular-nums; }
.pay-details { border: 1px solid var(--border); border-radius: 12px; overflow: hidden; }
.pay-details .pm-head { padding: 12px 16px; background: var(--surface-2); font-weight: 700; display: flex; align-items: center; gap: 8px; }
.pay-details dl { margin: 0; padding: 6px 16px 12px; }
.pay-details dl > div { display: flex; justify-content: space-between; gap: 16px; padding: 9px 0; border-bottom: 1px dashed var(--border); }
.pay-details dl > div:last-child { border-bottom: 0; }
.pay-details dt { color: var(--muted); font-size: .88rem; }
.pay-details dd { margin: 0; font-weight: 650; text-align: right; display: flex; gap: 8px; align-items: center; word-break: break-all; }
.copy { background: none; border: 0; color: var(--muted); cursor: pointer; padding: 2px; border-radius: 5px; display: inline-grid; }
.copy:hover { color: var(--brand); background: var(--brand-soft); }
.action-bar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.chat { display: flex; flex-direction: column; height: min(680px, calc(100vh - 120px)); position: sticky; top: calc(var(--header-h) + 16px); }
.chat-head { display: flex; align-items: center; gap: 10px; padding: 14px 16px; border-bottom: 1px solid var(--border); }
.chat-body { flex: 1; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 10px; }
.msg { max-width: 84%; padding: 9px 13px; border-radius: 14px; font-size: .92rem; line-height: 1.45; word-wrap: break-word; white-space: pre-wrap; }
.msg .t { display: block; font-size: .7rem; opacity: .6; margin-top: 3px; }
.msg.me { align-self: flex-end; background: var(--brand); color: #fff; border-bottom-right-radius: 4px; }
.msg.them { align-self: flex-start; background: var(--surface-2); border-bottom-left-radius: 4px; }
.msg.system { align-self: center; background: transparent; border: 1px dashed var(--border-strong); color: var(--muted); font-size: .82rem; text-align: center; max-width: 95%; }
.msg.admin { align-self: center; background: var(--warn-soft); color: var(--text); border: 1px solid rgba(245,165,36,.35); max-width: 95%; }
.msg img { display: block; max-width: 220px; border-radius: 10px; margin-top: 4px; cursor: zoom-in; }
.chat-form { display: flex; gap: 8px; padding: 12px; border-top: 1px solid var(--border); align-items: flex-end; }
.chat-form textarea { flex: 1; min-height: 42px; max-height: 120px; height: 42px; padding: 10px 12px; resize: none; overflow-y: hidden; }
.chat-warning { font-size: .78rem; color: var(--muted); padding: 8px 16px; background: var(--warn-soft); border-bottom: 1px solid var(--border); }

/* ---------- Wallet / dashboard ---------- */
.balance-hero { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; flex-wrap: wrap; }
.balance-hero .big { font-size: 2.1rem; font-weight: 800; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.stat { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px; }
.stat .k { color: var(--muted); font-size: .82rem; font-weight: 600; margin-bottom: 6px; display: flex; align-items: center; gap: 6px; }
.stat .v { font-size: 1.5rem; font-weight: 800; font-variant-numeric: tabular-nums; letter-spacing: -.01em; }
.stat .s { font-size: .82rem; color: var(--muted); margin-top: 4px; }
.stat.link { display: block; color: var(--text); transition: border-color .15s; }
.stat.link:hover { border-color: var(--brand); color: var(--text); }
.stat.alerting { border-color: rgba(245,165,36,.5); }
.addr-box { display: flex; align-items: center; gap: 10px; background: var(--bg-2); border: 1px solid var(--border); border-radius: 10px; padding: 12px 14px; font: 600 .95rem var(--mono); word-break: break-all; }
.qr { background: #fff; padding: 12px; border-radius: 12px; width: 184px; height: 184px; display: grid; place-items: center; }
.qr img, .qr canvas { display: block; }
.side-layout { display: grid; grid-template-columns: 240px 1fr; gap: 24px; align-items: start; }
.side-nav { position: sticky; top: calc(var(--header-h) + 16px); background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 8px; }
.side-nav a { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 9px; color: var(--text-2); font-weight: 550; font-size: .93rem; }
.side-nav a:hover { background: var(--surface-2); color: var(--text); }
.side-nav a.active { background: var(--brand-soft); color: var(--brand); }
.side-nav .sep { height: 1px; background: var(--border); margin: 6px; }
.side-nav .count { margin-left: auto; background: var(--sell); color: #fff; border-radius: 10px; font-size: .72rem; font-weight: 700; padding: 1px 7px; }

.profile-card { display: flex; gap: 18px; align-items: center; flex-wrap: wrap; }
.metrics { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 1px; background: var(--border); border: 1px solid var(--border); border-radius: 12px; overflow: hidden; }
.metrics > div { background: var(--surface); padding: 14px 16px; }
.metrics .k { font-size: .78rem; color: var(--muted); }
.metrics .v { font-weight: 800; font-size: 1.15rem; margin-top: 2px; }

/* ---------- Modal ---------- */
.modal-backdrop { position: fixed; inset: 0; background: rgba(5,8,14,.66); backdrop-filter: blur(3px); z-index: 150; display: none; align-items: center; justify-content: center; padding: 16px; }
.modal-backdrop.open { display: flex; animation: fade .15s; }
.modal { background: var(--surface); border: 1px solid var(--border); border-radius: 18px; width: 100%; max-width: 480px; max-height: calc(100vh - 32px); display: flex; flex-direction: column; box-shadow: var(--shadow); animation: pop .18s ease-out; }
.modal.wide { max-width: 720px; }
.modal-head { display: flex; align-items: center; justify-content: space-between; padding: 18px 20px; border-bottom: 1px solid var(--border); }
.modal-head h3 { margin: 0; }
.modal-body { padding: 20px; overflow-y: auto; }
.modal-foot { padding: 14px 20px; border-top: 1px solid var(--border); display: flex; gap: 10px; justify-content: flex-end; }
@keyframes fade { from { opacity: 0; } }
.cur-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 4px; max-height: 420px; overflow-y: auto; margin-top: 12px; }
.cur-item { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 10px; background: none; border: 1px solid transparent; color: var(--text); cursor: pointer; text-align: left; font: 500 .9rem var(--font); }
.cur-item:hover { background: var(--surface-2); }
.cur-item.active { border-color: var(--brand); background: var(--brand-soft); }
.cur-item b { min-width: 42px; }
.cur-item span { color: var(--muted); font-size: .82rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.travel-bar { background: var(--brand-soft); border-bottom: 1px solid var(--border); font-size: .9rem; }
.travel-bar .container { display: flex; align-items: center; gap: 12px; padding-top: 9px; padding-bottom: 9px; flex-wrap: wrap; }
.announce-bar { font-size: .9rem; border-bottom: 1px solid var(--border); }
.announce-bar .container { padding-top: 9px; padding-bottom: 9px; display: flex; gap: 10px; align-items: center; }
.announce-bar.info { background: var(--info-soft); } .announce-bar.warning { background: var(--warn-soft); } .announce-bar.danger { background: var(--sell-soft); } .announce-bar.success { background: var(--buy-soft); }

/* ---------- Auth pages ---------- */
.auth-wrap { min-height: calc(100vh - var(--header-h) - 80px); display: grid; place-items: center; padding: 36px 16px; }
.auth-card { width: 100%; max-width: 440px; }
.auth-card h1 { font-size: 1.6rem; margin-bottom: 6px; }
.auth-card .sub { color: var(--muted); margin-bottom: 24px; }
.pw-meter { height: 4px; border-radius: 2px; background: var(--surface-3); margin-top: 8px; overflow: hidden; }
.pw-meter i { display: block; height: 100%; width: 0; transition: width .2s, background .2s; }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--border); background: var(--bg-2); margin-top: 40px; padding: 40px 0 26px; font-size: .9rem; }
.footer-grid { display: grid; grid-template-columns: 1.6fr repeat(3, 1fr); gap: 28px; }
.footer h4 { font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin-bottom: 12px; }
.footer a { color: var(--text-2); display: block; padding: 4px 0; }
.footer a:hover { color: var(--text); }
.footer-bottom { margin-top: 28px; padding-top: 18px; border-top: 1px solid var(--border); color: var(--faint); font-size: .82rem; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }

/* ---------- Admin ---------- */
.admin-body { background: var(--bg); }
.admin-shell { display: grid; grid-template-columns: 250px 1fr; min-height: 100vh; }
.admin-side { background: var(--bg-2); border-right: 1px solid var(--border); padding: 16px 10px; position: sticky; top: 0; height: 100vh; overflow-y: auto; }
.admin-side .logo { padding: 6px 10px 18px; }
.admin-side .grp { font-size: .7rem; text-transform: uppercase; letter-spacing: .1em; color: var(--faint); font-weight: 700; padding: 14px 12px 6px; }
.admin-side a { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 9px; color: var(--text-2); font-weight: 550; font-size: .9rem; }
.admin-side a:hover { background: var(--surface-2); color: var(--text); }
.admin-side a.active { background: var(--brand-soft); color: var(--brand); }
.admin-side .count { margin-left: auto; background: var(--sell); color: #fff; border-radius: 10px; font-size: .72rem; font-weight: 700; padding: 1px 7px; }
.admin-main { min-width: 0; }
.admin-top { height: 60px; border-bottom: 1px solid var(--border); display: flex; align-items: center; gap: 12px; padding: 0 24px; position: sticky; top: 0; background: var(--bg); z-index: 20; }
.admin-content { padding: 24px; max-width: 1500px; }
.admin-content .page-head { margin-top: 0; }
.bar-chart { display: flex; align-items: flex-end; gap: 4px; height: 120px; }
.bar-chart div { flex: 1; background: var(--brand); border-radius: 4px 4px 0 0; min-height: 2px; opacity: .85; position: relative; }
.bar-chart div:hover { opacity: 1; }
.bar-labels { display: flex; gap: 4px; margin-top: 6px; }
.bar-labels span { flex: 1; font-size: .66rem; color: var(--faint); text-align: center; overflow: hidden; }
.filter-bar { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-bottom: 16px; }
.filter-bar .input { width: auto; height: 38px; min-width: 140px; }
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--border); margin-bottom: 18px; overflow-x: auto; }
.tabs a { padding: 10px 14px; color: var(--muted); font-weight: 650; border-bottom: 2px solid transparent; white-space: nowrap; font-size: .92rem; }
.tabs a:hover { color: var(--text); }
.tabs a.active { color: var(--text); border-color: var(--brand); }
.tabs a .badge { margin-left: 6px; }
.kv-list { display: grid; grid-template-columns: 160px 1fr; gap: 8px 16px; font-size: .92rem; }
.kv-list dt { color: var(--muted); }
.kv-list dd { margin: 0; word-break: break-word; }
.pagination { display: flex; gap: 6px; justify-content: center; padding: 18px; flex-wrap: wrap; }
.pagination a, .pagination span { min-width: 36px; height: 36px; padding: 0 10px; display: inline-grid; place-items: center; border-radius: 8px; border: 1px solid var(--border); color: var(--text-2); font-weight: 600; font-size: .88rem; }
.pagination .active { background: var(--brand); border-color: var(--brand); color: #fff; }
.json { font: .8rem/1.5 var(--mono); background: var(--bg-2); padding: 12px; border-radius: 10px; white-space: pre-wrap; word-break: break-all; color: var(--text-2); max-height: 260px; overflow: auto; }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .order-layout { grid-template-columns: 1fr; }
  .chat { position: static; height: 560px; }
  .hero .container { grid-template-columns: 1fr; }
  .price-strip { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
  .nav { display: none; }
  .menu-toggle { display: inline-grid; }
  .mobile-nav.open { display: block; position: fixed; inset: var(--header-h) 0 0; background: var(--bg); z-index: 49; padding: 16px; overflow-y: auto; }
  .mobile-nav a { display: flex; align-items: center; gap: 12px; padding: 14px 12px; border-radius: 10px; color: var(--text); font-weight: 600; font-size: 1.02rem; border-bottom: 1px solid var(--border); }
  .side-layout { grid-template-columns: 1fr; }
  .side-nav { position: static; display: flex; overflow-x: auto; gap: 2px; padding: 6px; }
  .side-nav a { white-space: nowrap; }
  .side-nav .sep { display: none; }
  .admin-shell { grid-template-columns: 1fr; }
  .admin-side { position: fixed; left: -270px; width: 260px; z-index: 100; transition: left .2s; }
  .admin-side.open { left: 0; box-shadow: var(--shadow); }
  .admin-content { padding: 16px; }
  .admin-top { padding: 0 16px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .trade-box { grid-template-columns: 1fr; gap: 18px; }
  .ref-price { margin-left: 0; width: 100%; }
}
@media (max-width: 760px) {
  .offer-table { display: none; }
  .offer-cards { display: block; }
  .offer-card { border-bottom: 1px solid var(--border); padding: 16px 0; }
  .offer-card .top { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 10px; }
  .offer-card .mid { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; }
  .offer-card .trade-box { margin-top: 14px; padding: 16px; border-radius: 12px; border: 1px solid var(--border); border-left: 3px solid var(--brand); background: var(--surface); }
  .filters .input, .filters .amount-filter, .filters .amount-filter .input { flex: 1 1 140px; min-width: 0; width: 100%; }
  .summary-grid { grid-template-columns: 1fr 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .cur-list { grid-template-columns: 1fr; }
  .card { padding: 16px; }
  .card-foot { margin: 16px -16px -16px; padding: 12px 16px; }
  .cta-band { padding: 28px 22px; }
  .page-head h1 { font-size: 1.4rem; }
  .kv-list { grid-template-columns: 1fr; gap: 2px 0; }
  .kv-list dd { margin-bottom: 8px; }
  .top-actions .hide-sm { display: none; }
  .cur-btn .cur-name { display: none; }
  .balance-hero .big { font-size: 1.7rem; }
  .table th, .table td { padding: 10px; }
  .hero { padding-top: 36px; }
}
@media (max-width: 420px) {
  .footer-grid { grid-template-columns: 1fr; }
  .price-strip { grid-template-columns: 1fr 1fr; gap: 8px; }
  .price-tile { padding: 12px; }
  .logo span.word { display: none; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }

/* Two-column form with sticky summary */
.form-layout { display: grid; grid-template-columns: 1fr 340px; gap: 24px; align-items: start; }
@media (max-width: 900px) { .form-layout { grid-template-columns: 1fr; } }

.grid-side { grid-template-columns: 1fr 360px; align-items: start; }
@media (max-width: 1000px) { .grid-side { grid-template-columns: 1fr; } }
.features-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
@media (max-width: 560px) { .features-2 { grid-template-columns: 1fr; } }
.travel-bar .container > .grow, .announce-bar .container > .grow { flex: 1 1 240px; }

/* ---------- Dashboard ---------- */
.dash-hero { position: relative; overflow: hidden; border-radius: 20px; padding: 26px; margin-bottom: 16px; border: 1px solid var(--border);
  background: radial-gradient(520px 220px at 0% 0%, rgba(124,108,240,.26), transparent 70%), radial-gradient(420px 220px at 100% 0%, rgba(34,211,238,.16), transparent 70%), var(--surface); }
.dash-hero-top { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; }
.dash-name { font-size: 1.7rem; margin: 2px 0 8px; }
.dash-balance { text-align: right; }
.dash-balance-v { font-size: 2.1rem; font-weight: 800; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.dash-balance-v span { font-size: 1rem; color: var(--muted); font-weight: 700; }
.balance-hidden [data-balance] { filter: blur(9px); user-select: none; }
.quick-actions { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 10px; margin-top: 22px; }
.qa { position: relative; display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 14px 6px; border-radius: 14px; background: var(--bg-2);
  border: 1px solid var(--border); color: var(--text); font-weight: 650; font-size: .88rem; text-align: center; transition: transform .15s, border-color .15s; }
.qa:hover { color: var(--text); transform: translateY(-2px); border-color: var(--brand); }
.qa > span { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--brand-soft); color: var(--brand); }
.qa-buy > span { background: var(--buy-soft); color: var(--buy); }
.qa-sell > span { background: var(--sell-soft); color: var(--sell); }
.qa i { position: absolute; top: 8px; right: 10px; font-style: normal; background: var(--sell); color: #fff; border-radius: 10px; font-size: .7rem; padding: 0 6px; }
.dash-attn { color: var(--text); align-items: center; }
.dash-attn:hover { color: var(--text); }
.progress-bar { height: 8px; border-radius: 4px; background: var(--surface-3); overflow: hidden; }
.progress-bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--brand), var(--accent)); border-radius: 4px; }
.setup-step { display: inline-flex; align-items: center; gap: 7px; padding: 8px 12px; border-radius: 999px; border: 1px solid var(--border); color: var(--text); font-size: .88rem; font-weight: 600; }
.setup-step:hover { border-color: var(--brand); color: var(--text); }
.setup-step.done { color: var(--muted); text-decoration: line-through; }
.setup-step.done .ic { color: var(--buy); }
.dash-grid { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 16px; align-items: start; }
.activity { padding: 6px 12px 12px; }
.activity-item { display: flex; align-items: center; gap: 12px; padding: 10px 8px; border-bottom: 1px solid var(--border); }
.activity-item:last-child { border-bottom: 0; }
.activity-ic { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: var(--surface-3); color: var(--muted); flex: none; }
.activity-ic.in { background: var(--buy-soft); color: var(--buy); }
.activity-ic.out { background: var(--sell-soft); color: var(--sell); }
.alloc-bar { display: flex; height: 8px; border-radius: 4px; overflow: hidden; background: var(--surface-3); margin-bottom: 10px; }
.asset-line { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--border); }
.mini-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--border); border: 1px solid var(--border); border-radius: 12px; overflow: hidden; margin-bottom: 12px; }
.mini-stats > div { background: var(--surface); padding: 12px; display: flex; flex-direction: column; gap: 2px; }
.mini-stats span { font-size: .75rem; color: var(--muted); }
.mini-stats b { font-size: 1.05rem; }
.shortcuts { padding: 8px; }
.shortcuts a { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 9px; color: var(--text-2); font-weight: 550; font-size: .92rem; }
.shortcuts a:hover { background: var(--surface-2); color: var(--text); }
@media (max-width: 1000px) { .dash-grid { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 760px) {
  .quick-actions { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .dash-balance { text-align: left; width: 100%; }
  .dash-balance .row { justify-content: flex-start !important; }
  .dash-hero { padding: 18px; }
  .dash-balance-v { font-size: 1.7rem; }
}
