:root {
  --bg: #0a0a0a;
  --bg-raised: #161616;
  --bg-inset: #111111;
  --surface: #161616;
  --surface-2: #202020;
  --surface-3: #292929;
  --grey-9: #181818;
  --grey-15: #262626;
  --border: #303030;
  --border-strong: #3d3d3d;
  --text: #dfdfdf;
  --text-bright: #f4f4f4;
  --muted: #a1a1a1;
  --secondary: #9f9f9f;
  --caption: #a6a6a6;
  --accent: #07b979;
  --accent-mid: #099137;
  --accent-dark: #036b26;
  --accent-soft: rgba(7, 185, 121, 0.14);
  --green-muted: #4e5955;
  --buy: #07b979;
  --sell: #ff9d5c;
  --success: #07b979;
  --warning: #e0aa3e;
  --danger: #f2635a;
  --info: #58a6ff;
  --btn-light: #e5e5e5;
  --btn-light-text: #181818;
  --input-bg: rgba(255, 255, 255, 0.05);
  --sans: "Host Grotesk", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --label: "IBM Plex Sans", var(--sans);
  --mono: "Courier Prime", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --header-h: 64px;
  --radius: 10px;
  --radius-sm: 8px;
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.45);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
  min-height: 100%;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 14.5px;
  line-height: 1.55;
}

body { display: flex; flex-direction: column; min-height: 100vh; }

a { color: inherit; text-decoration: none; }
button, input, select, textarea { font-family: inherit; color: inherit; }
button {
  -webkit-appearance: none;
  appearance: none;
  background: transparent;
  border: 0;
  margin: 0;
}
img { max-width: 100%; display: block; }
ul { list-style: none; }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: 64px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 0 28px;
  background: #0a0a0a;
  border-bottom: 1px solid #1a1a1a;
}
.brand { justify-self: start; }
.header-nav {
  display: flex;
  align-items: center;
  gap: 22px;
  margin-left: 0;
}
.header-right { justify-self: end; }

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 17px;
  letter-spacing: -0.03em;
  color: #fff;
}

.brand img, .brand svg { width: 28px; height: 28px; }

.header-nav a {
  padding: 7px 4px;
  border-radius: 0;
  color: #c5c5c5;
  font-weight: 500;
  font-size: 14.5px;
  background: transparent;
}
.header-nav a:hover { color: #fff; background: transparent; }
.header-nav a.active {
  color: #fff;
  background: #262626;
  border-radius: 999px;
  padding: 7px 14px;
}
.user-chip {
  background: transparent;
  gap: 10px;
  padding: 0;
}
.user-chip .eye { color: #9a9a9a; }
.bal-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 2px;
  margin: 0;
  border: 0;
  background: transparent;
  color: #9a9a9a;
  cursor: pointer;
  line-height: 0;
  border-radius: 4px;
  position: relative;
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}
.bal-toggle:hover { color: #e8e8e8; }
.bal-toggle-inline { vertical-align: middle; margin-left: 4px; }
.bal-toggle .eye {
  display: block;
  position: absolute;
  inset: 2px;
  width: 16px;
  height: 16px;
  pointer-events: none;
}
.bal-toggle .eye-off { display: none !important; }
.bal-toggle.is-masked .eye-open { display: none !important; }
.bal-toggle.is-masked .eye-off { display: block !important; }
.user-chip.bal-hidden #hdr-usd,
.wa-amount.bal-hidden { letter-spacing: 0.08em; }
.avatar {
  background: linear-gradient(135deg, #6d5cff, #9b4dff);
}

.header-left { display: flex; align-items: center; min-width: 0; }
.header-right { display: flex; align-items: center; gap: 10px; }

.icon-btn {
  width: 38px;
  height: 38px;
  border: 0;
  background: transparent;
  color: var(--muted);
  border-radius: 50%;
  display: grid;
  place-items: center;
  cursor: pointer;
}
.icon-btn:hover { color: #fff; background: var(--surface-2); }

.notif-wrap {
  position: relative;
  z-index: 60;
}
.notif-bell {
  position: relative;
}
.notif-badge {
  position: absolute;
  top: 4px;
  right: 4px;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  border-radius: 999px;
  background: #07b979;
  color: #04140d;
  font-size: 10px;
  font-weight: 800;
  line-height: 16px;
  text-align: center;
  pointer-events: none;
}
.notif-panel {
  display: none !important;
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  width: min(360px, calc(100vw - 24px));
  max-height: min(420px, 70vh);
  background: #121212;
  border: 1px solid #2a2a2a;
  border-radius: 14px;
  box-shadow: 0 16px 48px rgba(0,0,0,.55);
  overflow: hidden;
  z-index: 90;
}
.notif-panel.open,
.notif-panel[data-open="1"] {
  display: flex !important;
  flex-direction: column;
}
.notif-panel-h {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 14px;
  border-bottom: 1px solid #242424;
}
.notif-panel-h strong {
  color: #fff;
  font-size: 14px;
}
.notif-mark {
  border: 0;
  background: transparent;
  color: #07b979;
  font: inherit;
  font-size: 12.5px;
  font-weight: 650;
  cursor: pointer;
  padding: 0;
}
.notif-mark:hover { text-decoration: underline; }
.notif-list {
  overflow-y: auto;
  max-height: 360px;
  padding: 6px;
}
.notif-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 12px;
  border-radius: 10px;
  color: #ddd;
  text-decoration: none;
  border: 1px solid transparent;
}
.notif-item:hover { background: #1a1a1a; }
.notif-item.unread {
  background: rgba(7,185,121,.08);
  border-color: rgba(7,185,121,.2);
}
.notif-title {
  font-weight: 700;
  color: #fff;
  font-size: 13.5px;
}
.notif-body {
  font-size: 12.5px;
  color: #9a9a9a;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.notif-time {
  font-size: 11.5px;
  color: #6a6a6a;
}
.notif-empty {
  margin: 0;
  padding: 28px 16px;
  text-align: center;
  color: #8a8a8a;
  font-size: 13.5px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border: 0;
  cursor: pointer;
  font-weight: 600;
  border-radius: 9px;
  padding: 9px 14px;
  font-size: 13.5px;
  transition: 0.15s ease;
}

.btn-light {
  background: #e8e8e8;
  color: #111;
  border-radius: 999px;
  font-weight: 700;
}
.btn-light:hover { filter: brightness(0.94); }

.btn-green {
  background: #00c076;
  color: #fff;
}
.btn-green:hover { background: #00a867; }

.btn-ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}
.btn-ghost:hover { background: var(--surface-2); }

.btn-dark {
  background: var(--surface-3);
  color: #fff;
}
.btn-dark:hover { background: #333; }

.btn-danger { background: var(--danger); color: #fff; }
.admin-bar { grid-template-columns: auto 1fr auto; gap: 12px; height: auto; min-height: 64px; padding: 8px 16px; flex-wrap: wrap; }
.admin-nav { display:flex; flex-wrap:wrap; justify-content:center; gap:4px; }
.admin-nav a { font-size:13px; padding:6px 10px; }
.btn-block { width: 100%; }
.btn-lg { padding: 12px 18px; font-size: 15px; border-radius: 10px; }

.user-chip {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0;
  border-radius: 0;
  background: transparent;
  color: #fff;
  font-weight: 600;
  font-size: 13.5px;
}
.user-chip:hover { background: transparent; }
.user-menu {
  position: relative;
  z-index: 70;
}
.user-menu-btn {
  display: inline-flex !important;
  align-items: center;
  gap: 4px;
  padding: 0;
  margin: 0;
  border: 0;
  background: transparent;
  color: #c5c5c5;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
  border-radius: 999px;
}
.user-menu-btn:hover { color: #fff; }
.user-caret {
  flex-shrink: 0;
  transition: transform .15s ease;
}
.user-menu.open .user-caret { transform: rotate(180deg); color: #fff; }
.user-dropdown {
  display: none !important;
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  min-width: 200px;
  background: #121212;
  border: 1px solid #2a2a2a;
  border-radius: 12px;
  box-shadow: 0 16px 40px rgba(0,0,0,.55);
  padding: 6px;
  z-index: 100;
}
.user-dropdown.open,
.user-dropdown[data-open="1"] {
  display: block !important;
}
.user-dropdown-head {
  padding: 10px 12px 8px;
  font-size: 12.5px;
  color: #8a8a8a;
  border-bottom: 1px solid #242424;
  margin-bottom: 4px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.user-dropdown a {
  display: block;
  padding: 11px 12px;
  border-radius: 8px;
  color: #e8e8e8;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
}
.user-dropdown a:hover { background: #1a1a1a; color: #fff; }
.user-dropdown-out { color: #f2635a !important; }
.user-dropdown-out:hover { background: rgba(242,99,90,.12) !important; }

.avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: linear-gradient(135deg, #6d5cff, #9b4dff);
  display: grid;
  place-items: center;
  font-size: 12px;
  font-weight: 700;
  color: #fff;
}

.hamburger { display: none; }

/* ---------- Layout ---------- */
.page {
  flex: 1;
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: 28px 0 64px;
}

.page-narrow { width: min(720px, calc(100% - 40px)); }
.page-auth { width: min(440px, calc(100% - 40px)); padding-top: 56px; }

.page-kicker {
  font-family: var(--label);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 8px;
}

h1 {
  font-size: 34px;
  font-weight: 800;
  letter-spacing: -0.04em;
  color: #fff;
  line-height: 1.15;
}

.lede {
  margin-top: 10px;
  color: var(--muted);
  font-size: 15.5px;
  max-width: 640px;
}

/* ---------- Marketplace ---------- */
.market-hero {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 22px;
}

.market-title {
  font-size: 40px;
  font-weight: 800;
  letter-spacing: -0.045em;
  color: #fff;
  line-height: 1.08;
}
.market-title em {
  font-style: normal;
  color: var(--accent);
}

.filter-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 18px 18px 14px;
  margin-bottom: 16px;
}

.filter-row {
  display: grid;
  grid-template-columns: 160px 1.1fr 1.3fr 0.9fr 0.9fr;
  gap: 12px;
  align-items: end;
}

.field label {
  display: block;
  font-family: var(--label);
  font-size: 11.5px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--caption);
  font-weight: 600;
  margin-bottom: 7px;
}

.seg {
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 3px;
}

.seg button {
  border: 0;
  background: transparent;
  color: var(--muted);
  padding: 8px 10px;
  border-radius: 8px;
  font-weight: 650;
  cursor: pointer;
}
.seg button.active {
  background: var(--surface-3);
  color: #fff;
}
.seg.buy button.active { color: var(--buy); }
.seg.sell button.active { color: var(--sell); }

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.chip {
  border: 1px solid var(--border);
  background: var(--bg-inset);
  color: var(--text);
  border-radius: 999px;
  padding: 6px 11px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}
.chip:hover { border-color: var(--border-strong); }
.chip.active {
  background: var(--accent-soft);
  border-color: var(--accent-dark);
  color: var(--accent);
}

.select, .input {
  width: 100%;
  height: 42px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--input-bg);
  padding: 0 12px;
  outline: none;
}
.select:focus, .input:focus { border-color: var(--accent-dark); }
textarea.input {
  height: auto;
  min-height: 90px;
  padding: 10px 12px;
  resize: vertical;
  line-height: 1.45;
}

.amount-wrap {
  display: flex;
  height: 42px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--input-bg);
  overflow: hidden;
}
.amount-wrap input {
  flex: 1;
  border: 0;
  background: transparent;
  padding: 0 12px;
  outline: none;
  min-width: 0;
}
.amount-wrap span {
  display: grid;
  place-items: center;
  padding: 0 12px;
  color: var(--muted);
  font-weight: 700;
  border-left: 1px solid var(--border);
  font-size: 12px;
}

.filter-tools {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--border);
}

.check {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 13.5px;
  cursor: pointer;
}
.check input { accent-color: var(--accent); width: 15px; height: 15px; }

.cats {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 4px;
  margin: 16px 0 8px;
}
.cats::-webkit-scrollbar { height: 0; }

.cat {
  white-space: nowrap;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--muted);
  border-radius: 999px;
  padding: 8px 14px;
  font-weight: 600;
  font-size: 13.5px;
  cursor: pointer;
}
.cat.active, .cat:hover { color: #fff; border-color: var(--border-strong); background: var(--surface-2); }

.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin: 18px 0 12px;
}
.section-head h2 { font-size: 18px; color: #fff; font-weight: 700; }
.section-head span { color: var(--muted); font-size: 13px; }

.offer-table {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.offer-card {
  display: grid;
  grid-template-columns: 1.35fr 0.9fr 1fr 0.9fr auto;
  gap: 16px;
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 16px 18px;
}
.offer-card:hover { border-color: var(--border-strong); }

.seller {
  display: flex;
  align-items: center;
  gap: 12px;
}
.seller-meta { min-width: 0; }
.seller-name { font-weight: 700; color: #fff; }
.seller-stats { color: var(--muted); font-size: 12.5px; margin-top: 2px; }
.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--accent);
  font-size: 11px;
  font-weight: 700;
  margin-left: 6px;
}

.price-main {
  font-family: var(--mono);
  font-size: 18px;
  color: #fff;
  font-weight: 700;
}
.price-sub { color: var(--muted); font-size: 12.5px; margin-top: 3px; }

.pay-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 12.5px;
  font-weight: 600;
}

.btn-buy { min-width: 92px; background: var(--accent); color: #042015; }
.btn-sell-cta { min-width: 92px; background: var(--sell); color: #1a1006; }

.empty {
  text-align: center;
  color: var(--muted);
  padding: 48px 16px;
  border: 1px dashed var(--border);
  border-radius: 14px;
}

/* ---------- Auth ---------- */
.auth-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 28px;
  box-shadow: var(--shadow);
}
.auth-card h1 { font-size: 28px; margin-bottom: 8px; }
.auth-card .lede { margin-bottom: 22px; }
.stack { display: flex; flex-direction: column; gap: 14px; }
.field-error { color: var(--danger); font-size: 13px; min-height: 18px; }
.auth-alt { margin-top: 18px; color: var(--muted); text-align: center; }
.auth-alt a { color: var(--accent); font-weight: 600; }

/* ---------- Wallet ---------- */
.balance-card {
  background:
    radial-gradient(1200px 180px at 80% 0%, rgba(7, 185, 121, 0.12), transparent 60%),
    var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 22px;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 18px;
  margin: 18px 0;
}
.balance-label {
  color: var(--muted);
  font-size: 13px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.balance-amount {
  font-size: 40px;
  font-weight: 800;
  letter-spacing: -0.04em;
  color: #fff;
  margin: 8px 0 4px;
  font-family: var(--mono);
}
.pnl { color: var(--muted); font-size: 13.5px; }
.balance-actions { display: flex; gap: 8px; margin-top: 18px; flex-wrap: wrap; }

.tabs {
  display: flex;
  gap: 6px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 16px;
}
.tab {
  background: none;
  border: 0;
  color: var(--muted);
  padding: 10px 12px 12px;
  font-weight: 650;
  cursor: pointer;
  border-bottom: 2px solid transparent;
}
.tab.active { color: #fff; border-bottom-color: var(--accent); }

.assets {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}
.asset {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px;
}
.asset-top { display: flex; justify-content: space-between; align-items: center; }
.coin {
  display: flex;
  align-items: center;
  gap: 10px;
}
.coin-ico {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-weight: 800;
  color: #fff;
  overflow: hidden;
  background: #222;
  flex-shrink: 0;
}
.coin-ico img { width: 36px; height: 36px; display: block; object-fit: cover; }
.ico-btc { background: #f7931a; }
.ico-eth { background: #627eea; }
.ico-usdt { background: #26a17b; }
.ico-trx { background: #ef0027; }
.ico-sol { background: #9945ff; }
.ico-usdc { background: #2775ca; }
.sym { font-weight: 700; color: #fff; display: block; }
.nam { font-size: 12.5px; color: var(--muted); }
.asset-bal { margin: 14px 0 12px; }
.asset-bal b { color: #fff; font-size: 16px; }
.asset-bal span { display: block; color: var(--muted); font-size: 12.5px; }
.asset-actions { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.asset-act {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 12.5px;
  padding: 8px 6px;
}
.asset-more { position: relative; }
.asset-more-menu {
  position: absolute;
  right: 0;
  bottom: calc(100% + 6px);
  min-width: 160px;
  background: #1a1a1a;
  border: 1px solid #333;
  border-radius: 10px;
  padding: 6px;
  z-index: 12;
  box-shadow: 0 10px 30px rgba(0,0,0,.45);
}
.asset-more-menu[hidden] { display: none !important; }
.asset-more-menu button {
  display: block;
  width: 100%;
  text-align: left;
  background: transparent;
  border: 0;
  color: #fff;
  padding: 10px 12px;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 600;
  font-size: 13px;
}
.asset-more-menu button:hover { background: #262626; }
.trader-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.trader-actions {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-top: 6px;
}
.co-fiat-modal { max-width: 440px; }
.co-fiat-list {
  max-height: 360px;
  overflow-y: auto;
  padding-right: 2px;
}

/* ---------- Cards / tables / forms ---------- */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 20px;
}
.card + .card { margin-top: 12px; }

.table {
  width: 100%;
  border-collapse: collapse;
}
.table th, .table td {
  text-align: left;
  padding: 12px 10px;
  border-bottom: 1px solid var(--border);
  font-size: 14px;
}
.table th {
  color: var(--caption);
  font-family: var(--label);
  font-size: 11.5px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.muted { color: var(--muted); }
.ok { color: var(--accent); font-weight: 650; }

.pw-wrap {
  position: relative;
}
.pw-wrap .input {
  padding-right: 46px;
  width: 100%;
}
.pw-toggle {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  border: 0;
  background: transparent;
  color: #9a9a9a;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
}
.pw-toggle:hover, .pw-toggle.on { color: #e8e8e8; background: rgba(255,255,255,.06); }

.prof-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 0 0 16px;
}
.prof-stat {
  background: #141414;
  border: 1px solid #222;
  border-radius: 12px;
  padding: 14px;
}
.prof-stat-lab {
  color: #9a9a9a;
  font-size: 12px;
  margin-bottom: 8px;
}
.prof-stat-val {
  color: #fff;
  font-size: 22px;
  font-weight: 700;
}

.prof-page { padding-bottom: 40px; }
.prof-head {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  margin-bottom: 18px;
}
.prof-avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: #2a2a2a;
  display: grid;
  place-items: center;
  overflow: hidden;
  flex-shrink: 0;
  font-size: 28px;
  font-weight: 700;
  color: #fff;
}
.prof-avatar img { width: 100%; height: 100%; object-fit: cover; }
.prof-head-main h1 {
  margin: 0 0 6px;
  font-size: 28px;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.prof-tick {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: inline-grid;
  place-items: center;
  font-size: 12px;
  font-weight: 800;
}
.prof-tick.ok { background: rgba(7,185,121,.2); color: #07b979; }
.prof-tick.bad { background: rgba(242,99,90,.18); color: #f2635a; }
.prof-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }

.prof-feedback {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 0 0 14px;
}
.prof-fb-card {
  background: #141414;
  border: 1px solid #252525;
  border-radius: 14px;
  padding: 16px;
}
.prof-fb-card.pos { border-color: rgba(7,185,121,.35); }
.prof-fb-lab {
  color: #9a9a9a;
  font-size: 13px;
  margin-bottom: 10px;
}
.prof-fb-num {
  color: #fff;
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.03em;
}
.prof-meta-row {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  border-bottom: 1px solid #222;
  color: #9a9a9a;
}
.prof-meta-row b { color: #eee; }
.prof-meta-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 14px;
}
.prof-meta-grid span { display: block; color: #8a8a8a; font-size: 12px; margin-bottom: 4px; }
.prof-meta-grid b { color: #fff; font-size: 16px; }
.prof-tabs {
  display: flex;
  gap: 8px;
  margin: 16px 0 8px;
}
.prof-tabs button {
  background: #141414;
  border: 1px solid #2a2a2a;
  color: #9a9a9a;
  border-radius: 999px;
  padding: 8px 14px;
  cursor: pointer;
  font: inherit;
}
.prof-tabs button.on { color: #fff; border-color: #07b979; background: rgba(7,185,121,.12); }

.mp-fiat-wrap {
  position: relative;
  min-width: 0;
  z-index: 5;
}
.mp-fiat-btn {
  width: 100%;
  height: 46px;
  display: inline-flex !important;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  text-align: left;
  border-radius: 10px;
  border: 1px solid #2f2f2f;
  background: #121212;
  color: #eee;
  padding: 0 14px;
  font-size: 14px;
}
.mp-fiat-menu {
  display: none !important;
  position: absolute !important;
  z-index: 80;
  top: calc(100% + 6px);
  left: 0;
  right: auto;
  width: min(320px, 92vw);
  max-height: min(420px, 70vh);
  overflow-x: hidden;
  overflow-y: auto;
  background: #121212;
  border: 1px solid #2a2a2a;
  border-radius: 12px;
  padding: 6px;
  box-shadow: 0 12px 40px rgba(0,0,0,.55);
  pointer-events: none;
  visibility: hidden;
}
.mp-fiat-menu.open,
.mp-fiat-menu[data-open="1"] {
  display: block !important;
  pointer-events: auto;
  visibility: visible;
}
.mp-fiat-item {
  width: 100%;
  display: flex !important;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  margin: 0 0 2px;
  border: 0;
  background: transparent;
  color: #e8e8e8;
  border-radius: 8px;
  cursor: pointer;
  font: inherit;
  text-align: left;
  height: auto !important;
  white-space: nowrap;
}
.mp-fiat-item:hover,
.mp-fiat-item.on { background: rgba(7,185,121,.16); }
.mp-fiat-name {
  color: #8a8a8a;
  font-size: 12px;
  margin-left: auto;
  overflow: hidden;
  text-overflow: ellipsis;
}

@media (max-width: 720px) {
  .prof-stats { grid-template-columns: 1fr; }
  .prof-feedback { grid-template-columns: 1fr; }
  .prof-meta-grid { grid-template-columns: 1fr; }
  .prof-head { flex-direction: column; }
}

.stt-alert {
  width: min(1080px, calc(100% - 48px));
  margin: 14px auto 0;
  padding: 12px 14px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
}
.stt-alert a { color: inherit; text-decoration: underline; }
.stt-alert-ok {
  background: rgba(7, 185, 121, 0.14);
  border: 1px solid rgba(7, 185, 121, 0.35);
  color: #07b979;
}
.stt-alert-err {
  background: rgba(242, 99, 90, 0.14);
  border: 1px solid rgba(242, 99, 90, 0.35);
  color: #f2635a;
}
.stt-alert-warn {
  background: rgba(224, 170, 62, 0.14);
  border: 1px solid rgba(224, 170, 62, 0.4);
  color: #e0aa3e;
}

.prose h2 { margin: 28px 0 10px; font-size: 22px; color: #fff; }
.prose p, .prose li { color: var(--muted); margin-bottom: 10px; }
.prose ul { padding-left: 18px; list-style: disc; }

/* ---------- Messages / trades ---------- */
.split {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 12px;
  min-height: 520px;
}
.list-pane, .detail-pane {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
}
.pane-h {
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
  font-weight: 700;
  color: #fff;
}
.thread {
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
  cursor: pointer;
}
.thread:hover, .thread.active { background: var(--surface-2); }
.thread b { color: #fff; display: block; }
.thread span { color: var(--muted); font-size: 12.5px; }
.chat {
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 360px;
}
.bubble {
  max-width: 72%;
  padding: 10px 12px;
  border-radius: 12px;
  background: var(--surface-2);
}
.bubble.me { margin-left: auto; background: var(--accent-dark); color: #fff; }
.composer {
  display: flex;
  gap: 8px;
  padding: 12px;
  border-top: 1px solid var(--border);
}

.trade-row {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr 0.8fr 0.8fr auto;
  gap: 12px;
  align-items: center;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
}

.status-dot {
  width: 8px; height: 8px; border-radius: 50%;
  display: inline-block; margin-right: 6px;
  background: var(--accent);
}
.status-dot.warn { background: var(--warning); }
.status-dot.bad { background: var(--danger); }

/* ---------- Modal ---------- */
.overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,.72);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
  z-index: 80;
}
.overlay.open { display: flex; }
.modal {
  width: min(440px, 100%);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 20px;
}
.modal h3 { color: #fff; font-size: 20px; margin-bottom: 6px; }
.modal-h { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; }

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid #1c1c1c;
  padding: 18px 28px 22px;
  margin-top: auto;
  background: #000;
}
.footer-bar {
  width: min(1120px, 100%);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  color: #8d8d8d;
  font-size: 12.5px;
}
.footer-bar nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}
.footer-bar a { color: #8d8d8d; padding: 0; display: inline; font-size: 12.5px; }
.footer-bar a:hover { color: #fff; }
.footer-bar span { color: #5c5c5c; }

/* ---------- Account ---------- */
.account-grid {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 16px;
  margin-top: 20px;
}
.side-nav a {
  display: block;
  padding: 10px 12px;
  border-radius: 8px;
  color: var(--muted);
  font-weight: 600;
}
.side-nav a.active, .side-nav a:hover { background: var(--surface-2); color: #fff; }

/* ---------- Calculator / fees ---------- */
.calc-card { margin-top: 20px; }
.calc-grid { display: grid; grid-template-columns: 1fr auto 1fr; gap: 12px; align-items: end; }
.rate-out {
  margin-top: 18px;
  font-family: var(--mono);
  font-size: 28px;
  color: #fff;
}

.help-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-top: 22px;
}
.help-item h3 { color: #fff; margin-bottom: 6px; font-size: 16px; }

/* ---------- Mobile ---------- */
@media (max-width: 960px) {
  .site-header:not(.admin-bar) .header-nav { display: none; }
  .hamburger { display: grid; }
  .site-header:not(.admin-bar) .header-right > .btn-ghost,
  .site-header:not(.admin-bar) .header-right > .btn-light { display: none !important; }
  .hide-sm { display: none !important; }
  .filter-row { grid-template-columns: 1fr 1fr; }
  .offer-card, .trade-row { grid-template-columns: 1fr; }
  .offer-card .btn, .trade-row .btn { grid-column: 1 / -1; }
  .assets, .help-grid, .account-grid, .split, .footer-grid, .balance-card, .calc-grid {
    grid-template-columns: 1fr;
  }
  .market-title { font-size: 28px; }
  h1 { font-size: 28px; }
  .page { width: calc(100% - 28px); }
}

.drawer {
  position: fixed;
  inset: 0;
  background: #0a0a0a;
  z-index: 90;
  display: none;
  flex-direction: column;
  padding: 20px;
}
.drawer.open { display: flex; }
.drawer a {
  padding: 12px 0;
  font-size: 18px;
  font-weight: 650;
  border-bottom: 1px solid var(--border);
}
.drawer a.active {
  background: #262626;
  border-radius: 10px;
  padding-left: 12px;
  padding-right: 12px;
}

/* ---------- Auth (live Sign In / Register) ---------- */
body.auth-body {
  min-height: 100vh;
  background:
    radial-gradient(900px 500px at 12% 20%, rgba(7, 185, 121, 0.09), transparent 55%),
    radial-gradient(700px 400px at 90% 80%, rgba(3, 107, 38, 0.18), transparent 50%),
    #0a0a0a;
}

.auth-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
}

.auth-aside {
  padding: 36px 48px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border-right: 1px solid var(--border);
}

.auth-aside h2 {
  font-size: 42px;
  line-height: 1.08;
  letter-spacing: -0.045em;
  color: #fff;
  font-weight: 800;
  max-width: 460px;
  margin-top: 48px;
}
.auth-aside h2 em {
  font-style: normal;
  color: var(--accent);
}
.auth-aside p { color: var(--muted); max-width: 420px; margin-top: 16px; font-size: 16px; }
.auth-points { margin-top: 32px; display: flex; flex-direction: column; gap: 12px; }
.auth-point {
  display: flex;
  gap: 10px;
  color: var(--text);
  font-size: 14px;
}
.auth-point i {
  width: 22px; height: 22px; border-radius: 50%;
  background: var(--accent-soft); color: var(--accent);
  display: grid; place-items: center; font-style: normal; font-weight: 700; font-size: 12px;
  flex-shrink: 0;
}

.auth-main {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 28px;
}

.auth-card {
  width: min(420px, 100%);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 32px 28px;
  box-shadow: var(--shadow);
}
.auth-card h1 { font-size: 30px; margin-bottom: 8px; }
.lock-badge {
  width: 42px; height: 42px; border-radius: 12px;
  background: var(--accent-soft); color: var(--accent);
  display: grid; place-items: center; margin-bottom: 16px; font-size: 18px;
}
.auth-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  font-size: 13.5px;
}
.auth-row a { color: var(--accent); font-weight: 600; }
.terms-line {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  color: var(--muted);
  font-size: 13px;
}
.terms-line a { color: var(--accent); }

.prose h1 { margin-bottom: 8px; }
.prose h2 { margin: 28px 0 10px; font-size: 20px; color: #fff; }
.prose p, .prose li { color: var(--muted); margin-bottom: 10px; }
.prose ul { padding-left: 18px; list-style: disc; }
.prose strong { color: var(--text); }

.faq details {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 14px 16px;
  margin-bottom: 10px;
}
.faq summary { cursor: pointer; color: #fff; font-weight: 650; }
.faq p { color: var(--muted); margin-top: 8px; }

.offer-hero {
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  gap: 16px;
  margin-top: 20px;
}

@media (max-width: 960px) {
  .auth-shell { grid-template-columns: 1fr; }
  .auth-aside { display: none; }
  .offer-hero { grid-template-columns: 1fr; }
}

/* ---------- Marketplace (live screenshot) ---------- */
.mp-page {
  width: min(1080px, calc(100% - 48px));
  padding-top: 36px;
}
.mp-title {
  font-size: 42px;
  font-weight: 800;
  letter-spacing: -0.045em;
  color: #fff;
  line-height: 1.12;
  margin: 0 0 10px;
}
.mp-title em {
  font-style: normal;
  color: #3ee08f;
}
.mp-rate {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #d8d8d8;
  font-size: 14px;
  margin-bottom: 22px;
}
.btc-dot {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #f7931a;
  color: #fff;
  display: inline-grid;
  place-items: center;
  font-size: 11px;
  font-weight: 800;
}
.mp-board {
  position: relative;
  overflow: visible;
  isolation: isolate;
  background: #161616;
  border: 1px solid #2a2a2a;
  border-radius: 14px;
  padding: 18px 18px 16px;
}
.mp-tabs {
  display: inline-flex;
  background: #101010;
  border: 1px solid #2a2a2a;
  border-radius: 10px;
  padding: 3px;
  margin-bottom: 14px;
}
.mp-tabs button {
  border: 0;
  background: transparent;
  color: #9a9a9a;
  padding: 8px 18px;
  border-radius: 8px;
  font-weight: 650;
  cursor: pointer;
  font-size: 14px;
}
.mp-tabs button.active {
  background: #2a2a2a;
  color: #fff;
}
.mp-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.mp-select, .mp-amount {
  height: 46px;
  border-radius: 10px;
  border: 1px solid #2f2f2f;
  background: #121212;
  color: #eee;
  padding: 0 14px;
  font-size: 14px;
  width: 100%;
  outline: none;
}
.mp-select:focus, .mp-amount:focus-within { border-color: #3a3a3a; }
.mp-amount {
  display: flex;
  align-items: center;
  padding-right: 8px;
}
.mp-amount input {
  flex: 1;
  border: 0;
  background: transparent;
  outline: none;
  min-width: 0;
  height: 100%;
  color: #fff;
}
.mp-fiat-affix {
  display: inline-flex !important;
  align-items: center;
  gap: 6px;
  color: #ddd !important;
  font-weight: 650;
  font-size: 13px;
  padding: 0 8px 0 10px;
  border: 0 !important;
  border-left: 1px solid #2f2f2f !important;
  height: 28px;
  background: #121212 !important;
  background-color: #121212 !important;
  cursor: pointer;
  font: inherit;
  border-radius: 0 !important;
  box-shadow: none !important;
  -webkit-appearance: none !important;
  appearance: none !important;
}
.mp-fiat-affix:hover,
.mp-fiat-affix:focus {
  color: #fff !important;
  background: #121212 !important;
  outline: none;
}
.mp-fiat-search {
  width: 100%;
  margin: 0 0 6px;
  height: 38px;
  border-radius: 8px;
  border: 1px solid #2f2f2f;
  background: #0c0c0c !important;
  color: #eee !important;
  padding: 0 12px;
  font: inherit;
  outline: none;
  -webkit-appearance: none;
  appearance: none;
}
.mp-fiat-item.is-hidden,
.pick-item.is-hidden {
  display: none !important;
  visibility: hidden !important;
  pointer-events: none !important;
  height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: hidden !important;
  border: 0 !important;
}
.mp-actions {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
  position: relative;
  z-index: 2;
  clear: both;
}
.mp-actions .btn-ghost {
  border-color: #3a3a3a;
  color: #eee;
  background: transparent;
}
.mp-actions a.btn,
.mp-actions button.btn {
  pointer-events: auto;
  position: relative;
  z-index: 3;
}
.icon-sq {
  width: 38px;
  height: 38px;
  border-radius: 9px;
  border: 1px solid #3a3a3a;
  background: transparent;
  color: #eee;
  display: grid;
  place-items: center;
  cursor: pointer;
}
.icon-sq:hover { background: #222; }
.mp-empty {
  margin-top: 14px;
  background: #141414;
  border: 1px solid #2a2a2a;
  border-radius: 14px;
  min-height: 220px;
  padding: 18px;
}
.mp-empty-inner {
  border: 1px dashed #3a3a3a;
  border-radius: 10px;
  min-height: 184px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 28px 16px;
}
.mp-empty-title {
  color: #fff;
  font-weight: 700;
  font-size: 16px;
}
.mp-empty-sub {
  color: #9a9a9a;
  margin-top: 8px;
  max-width: 420px;
}
.mp-empty-sub a {
  color: #3ee08f;
  font-weight: 650;
}
.mp-empty-sub a:hover { text-decoration: underline; }

@media (max-width: 960px) {
  .site-header { grid-template-columns: 1fr auto; }
  .header-nav { display: none; }
  .mp-title { font-size: 28px; }
  .mp-grid { grid-template-columns: 1fr; }
}

/* ---------- Wallet / My assets ---------- */
.wa-page { width: min(1080px, calc(100% - 48px)); padding-top: 28px; }
.wa-title { font-size: 36px; font-weight: 800; letter-spacing: -0.04em; color: #fff; margin-bottom: 18px; }
.wa-balance {
  background: #161616;
  border: 1px solid #2a2a2a;
  border-radius: 14px;
  padding: 22px 24px 20px;
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 12px;
  position: relative;
}
.wa-label {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #9a9a9a;
  font-size: 13.5px;
}
.wa-amount {
  font-size: 42px;
  font-weight: 800;
  letter-spacing: -0.04em;
  color: #00c076;
  margin: 8px 0 6px;
  line-height: 1;
}
.wa-pnl { color: #f2635a; font-size: 13.5px; }
.wa-actions { display: flex; gap: 10px; margin-top: 22px; }
.wa-actions .btn { border-radius: 999px; padding: 9px 22px; min-width: 96px; }
.wa-ccy {
  position: absolute;
  top: 18px;
  right: 22px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #1c1c1c;
  border: 1px solid #333;
  border-radius: 999px;
  padding: 6px 12px;
  font-weight: 650;
  font-size: 13px;
  color: #fff;
  cursor: pointer;
}
.wa-chart { align-self: end; padding-top: 28px; }
.wa-panel {
  background: #161616;
  border: 1px solid #2a2a2a;
  border-radius: 14px;
  padding: 8px 20px 22px;
  margin-top: 16px;
}
.wa-tabs {
  display: flex;
  gap: 28px;
  border-bottom: 1px solid #2a2a2a;
}
.wa-tabs .tab { text-decoration: none; color: var(--muted); }
.wa-tabs .tab.active { color: #fff; border-bottom-color: #fff; }
.wa-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 16px 0 8px;
}
.pill {
  background: #1c1c1c;
  border: 1px solid #333;
  color: #ddd;
  border-radius: 999px;
  padding: 7px 12px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}
.wa-blank { color: #8a8a8a; text-align: center; padding: 36px 12px; }
.wa-alloc {
  background: #161616;
  border: 1px solid #2a2a2a;
  border-radius: 14px;
  padding: 22px;
  margin-top: 16px;
  min-height: 280px;
}
.wa-alloc h2 {
  font-size: 12px;
  letter-spacing: 0.08em;
  color: #8a8a8a;
  font-weight: 700;
}
.wa-donut {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 36px 0 20px;
  gap: 16px;
  color: #9a9a9a;
}
.wa-ring {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  border: 18px solid #2a2a2a;
}
@media (max-width: 960px) {
  .wa-balance { grid-template-columns: 1fr; }
  .wa-ccy { position: static; margin-bottom: 8px; }
}

.co-page { max-width: 480px; }
.co-warn {
  background: #3a2e12;
  color: #f5c84c;
  border: 1px solid #6a5318;
  border-radius: 10px;
  padding: 12px 14px;
  margin: 14px 0;
  font-weight: 600;
}
.co-form { margin-top: 18px; }
.co-box {
  background: #161616;
  border: 1px solid #2a2a2a;
  border-radius: 14px;
  padding: 16px;
  margin-bottom: 10px;
}
.co-row-top { display:flex; justify-content:space-between; color:#9a9a9a; font-size:13px; margin-bottom:8px; gap:10px; }
.co-row { display:flex; gap:10px; align-items:center; }
.co-amt {
  flex:1; background:transparent; border:0; color:#fff; font-size:28px; font-weight:700; outline:none; width:100%; min-width:0;
}
.co-amt[readonly] { color:#e5e5e5; }
.co-pick {
  background:#222; border:1px solid #333; color:#fff; border-radius:10px; padding:8px 12px; font-weight:700; cursor:pointer; white-space:nowrap;
  display: inline-flex; align-items: center; gap: 8px;
}
.co-caret {
  width: 7px; height: 7px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg);
  opacity: 0.7;
  margin-top: -3px;
}
.co-arrow {
  width:36px; height:36px; margin:-4px auto; background:#07b979; color:#04140d; border-radius:50%;
  display:flex; align-items:center; justify-content:center; position:relative; z-index:2;
}
.co-label {
  display:block; font-size:12px; letter-spacing:.04em; text-transform:uppercase; color:#9a9a9a; font-weight:600;
}
.co-method { margin-top:8px; font-weight:650; font-size:15px; }
.co-rate, .co-timer { margin-top:8px; font-size:13px; }
.pick-item {
  display:flex; align-items:center; gap:10px; width:100%; text-align:left; background:#1a1a1a; border:0; color:#fff;
  padding:14px 12px; border-radius:10px; margin-bottom:6px; cursor:pointer; font-weight:600;
}
.pick-item.on, .pick-item:hover { background:#0d3d2c; }

.support-panel {
  margin-top: 18px;
  background: #161616;
  border: 1px solid #2a2a2a;
  border-radius: 14px;
  overflow: hidden;
  min-height: 420px;
  display: flex;
  flex-direction: column;
}
.support-log {
  flex: 1;
  overflow-y: auto;
  padding: 18px 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-height: 520px;
}
.support-empty { text-align: center; margin: 40px 0; }
.support-bubble {
  max-width: min(420px, 90%);
  padding: 10px 12px;
  border-radius: 12px;
  background: #1f1f1f;
  border: 1px solid #2f2f2f;
}
.support-bubble.me {
  align-self: flex-end;
  background: rgba(7, 185, 121, 0.14);
  border-color: rgba(7, 185, 121, 0.35);
}
.support-bubble.them { align-self: flex-start; }
.support-meta {
  font-size: 11.5px;
  color: #9a9a9a;
  margin-bottom: 4px;
}
.support-text { font-size: 14.5px; line-height: 1.45; word-break: break-word; }
.support-composer {
  display: flex;
  gap: 8px;
  padding: 12px;
  border-top: 1px solid #2a2a2a;
  background: #121212;
}
.support-composer .input { flex: 1; }

.imp-modal { background:#fff !important; color:#111 !important; max-width:440px; }
.imp-modal h3 { color:#064e3b !important; }
.imp-modal label { color:#8a8a8a; font-size:11px; letter-spacing:.06em; }
.imp-modal .input, .imp-modal .select { color:#111; background:#fff; border:1px solid #ccc; }
.imp-modal .btn-green { background:#064e3b; }
.imp-code { display:flex; gap:8px; align-items:center; justify-content:space-between; border:1px solid #ddd; border-radius:10px; padding:10px 12px; }
.imp-code b { font-size:18px; letter-spacing:.04em; }
.imp-note { color:#b45309; font-size:13px; }
.qr-frame { margin:0 auto; border:3px solid #00c076; border-radius:8px; }
.addr-box { display:flex; justify-content:space-between; align-items:center; background:#1a1a1a; border-radius:10px; padding:10px 12px; }
.addr-txt { text-align:center; word-break:break-all; color:#bbb; margin-top:8px; font-size:13px; }
.paste-wrap { display:flex; gap:8px; }
.paste-wrap .input { flex:1; }
.send-amt { font-size:28px; font-weight:700; color:#00c076; }
.asset[data-zero="1"] { display:none; }

img.avatar { object-fit: cover; padding: 0; }
.avatar-preview {
  width: 72px; height: 72px; border-radius: 50%;
  object-fit: cover; border: 2px solid #333; margin: 8px 0;
}
.mini-ico {
  width: 20px; height: 20px;
  display: inline-block; vertical-align: middle;
  border-radius: 50%;
}
.flag-img {
  width: 22px; height: 15px;
  display: inline-block; vertical-align: middle;
  object-fit: cover; border-radius: 2px;
}
.pick-lab { display: inline-flex; align-items: center; gap: 8px; }
.pick-item {
  display: flex !important; align-items: center; gap: 10px;
}
.co-pick { display: inline-flex; align-items: center; gap: 6px; }
.live-strip {
  display: flex; flex-wrap: wrap; gap: 14px;
  color: #ddd; font-weight: 650;
}
.live-strip span { display: inline-flex; align-items: center; gap: 6px; }
.mp-rate { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.qr-frame { width: 180px; height: 180px; object-fit: contain; background: #fff; }
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; max-width: 100%; }
.drawer { overflow-y: auto; }

@media (max-width: 1100px) {
  .admin-bar {
    display: flex;
    flex-wrap: wrap;
    height: auto;
    grid-template-columns: none;
  }
  .admin-bar .admin-nav {
    width: 100%;
    justify-content: flex-start;
    overflow-x: auto;
    flex-wrap: nowrap;
  }
}

@media (max-width: 960px) {
  .site-header { padding: 0 12px; }
  .brand { font-size: 15px; }
  .wa-page { width: calc(100% - 20px); }
  .wa-title { font-size: 26px; }
  .wa-amount { font-size: 28px; }
  .wa-actions { flex-wrap: wrap; }
  .wa-actions .btn { min-width: 0; flex: 1 1 42%; }
  .wa-tabs { overflow-x: auto; gap: 16px; }
  .wa-chart svg { height: 110px; }
  .modal { max-height: 88vh; overflow-y: auto; width: min(440px, 100%); }
  .overlay { align-items: flex-start; padding-top: 6vh; }
  .imp-code { flex-wrap: wrap; }
  .co-amt { font-size: 22px; min-width: 0; }
  .co-row { flex-wrap: wrap; }
  .paste-wrap { flex-wrap: wrap; }
  .composer { flex-wrap: wrap; }
  .composer .input { min-width: 0; flex: 1; }
  .footer-bar { padding: 0 4px; }
  .user-chip .bal-toggle { display: inline-flex; }
  .page-auth { width: calc(100% - 24px); padding-top: 28px; }
}

@media (max-width: 520px) {
  h1, .mp-title, .wa-title { font-size: 22px; }
  .page { width: calc(100% - 16px); padding: 16px 0 72px; }
  .assets { grid-template-columns: 1fr; }
  .site-header { height: 56px; }
  .hdr-usd, #hdr-usd { font-size: 12px; }
  .offer-card { padding: 14px; }
  .btn-lg { font-size: 14px; }
}
