:root {
  --bg: #050605;
  --card: #101412;
  --card-2: #161c18;
  --line: rgba(190, 220, 200, 0.12);
  --text: #e7eee9;
  --muted: #8fa196;
  --faint: #66756c;
  --brand: #1fa971;
  --brand-2: #8ee0b5;
  --ink: #04140c;
  --green: #3dce86;
  --red: #e06a6a;
  --yellow: #d6b15a;
  --shadow: 0 18px 40px rgba(0, 0, 0, 0.4);
  --font: system-ui, -apple-system, "Segoe UI", sans-serif;
  color-scheme: dark;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100vh;
  background:
    linear-gradient(180deg, rgba(31, 169, 113, 0.08), transparent 220px),
    var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.5;
}

h1, h2, .brand span, .portfolio .value, .price-num, .send-exact {
  font-weight: 600;
  letter-spacing: -0.03em;
}

button, input, textarea { font-family: inherit; color: inherit; }

h1, h2, h3, p { margin: 0; }

a { color: var(--brand-2); }

img { max-width: 100%; }

::selection { background: #1fa971; color: #04140c; }

.noscript { color: white; padding: 32px; }

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

.site > main { flex: 1; animation: rise 0.35s ease; }

@keyframes rise {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: none; }
}

.nav {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(18, 16, 12, 0.92);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
  box-shadow: inset 0 2px 0 #1fa971;
}

.nav-inner {
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 22px;
  position: relative;
  gap: 16px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  text-decoration: none;
  font-weight: 500;
  font-size: 22px;
  letter-spacing: -0.03em;
  z-index: 2;
}

.brand svg, .footer-brand svg { width: 28px; height: 28px; display: block; }

.nav-links { display: flex; align-items: center; gap: 16px; }

.nav-link {
  color: #c7c7d4;
  text-decoration: none;
  font-weight: 600;
  font-size: 14.5px;
}

.nav-link:hover, .nav-link.active { color: white; }

.nav-name {
  max-width: 140px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--faint);
  font-size: 14px;
}

.nav-logout, .text-btn {
  background: none;
  border: 0;
  color: #9a9aac;
  font: inherit;
  font-size: 14px;
  cursor: pointer;
  padding: 0;
}

.nav-logout:hover, .text-btn:hover { color: var(--red); }

.admin-pill {
  font-size: 11px;
  background: rgba(239, 68, 68, 0.18);
  color: #fca5a5;
  padding: 3px 8px;
  border-radius: 999px;
  font-weight: 700;
}

.trust {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  align-items: center;
  gap: 10px;
  pointer-events: none;
}

.stars { display: flex; gap: 3px; }

.stars i {
  width: 18px;
  height: 18px;
  border-radius: 3px;
  background: #12b981;
  color: white;
  display: grid;
  place-items: center;
  font-style: normal;
  font-size: 11px;
  line-height: 1;
}

.stars i.half { background: linear-gradient(90deg, #12b981 52%, #3a3a46 52%); }

.score { line-height: 1.05; }

.score strong { color: #12b981; font-size: 13px; display: block; letter-spacing: -0.02em; }

.score em {
  font-style: normal;
  color: #12b981;
  font-size: 9px;
  letter-spacing: 0.08em;
  font-weight: 800;
}

.trust-div { width: 1px; height: 22px; background: rgba(255, 255, 255, 0.14); }

.trusted {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #e8e8ee;
  font-size: 13px;
  font-weight: 650;
  font-weight: 600;
}

.trusted b { color: #12b981; font-size: 14px; }

.burger {
  display: none;
  background: none;
  border: 0;
  color: white;
  padding: 8px;
  cursor: pointer;
}

.drawer { display: none; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 2px;
  padding: 12px 18px;
  font: inherit;
  font-weight: 650;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  border: 1px solid transparent;
  transition: 0.15s filter, 0.15s background, 0.15s border-color, 0.15s transform;
}

.btn:hover { transform: translateY(-1px); }

.btn:disabled { opacity: 0.55; cursor: default; transform: none; }

.btn-primary {
  background: var(--brand);
  color: var(--ink);
  box-shadow: none;
}

.btn-ink {
  background: var(--ink);
  color: var(--text);
}

.btn-primary:hover { filter: brightness(1.08); }

.btn-ghost {
  background: rgba(255, 255, 255, 0.02);
  color: white;
  border-color: rgba(255, 255, 255, 0.14);
}

.btn-ghost:hover { background: rgba(255, 255, 255, 0.05); }

.btn-pill { border-radius: 999px; padding: 8px 16px; font-size: 14px; }

.btn-block { width: 100%; }

.btn svg { width: 16px; height: 16px; }

.wrap { width: min(1080px, calc(100% - 36px)); margin: 0 auto; }

.wrap-sm { width: min(480px, calc(100% - 32px)); margin: 28px auto 48px; }

.wrap-md { width: min(760px, calc(100% - 32px)); margin: 28px auto 56px; }

.wrap-lg { width: min(1100px, calc(100% - 32px)); margin: 28px auto 56px; }

.hero { text-align: center; padding: 78px 16px 12px; position: relative; }

.hero-inner { position: relative; z-index: 1; }

.pill-badge {
  display: inline-flex;
  align-items: center;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(31, 169, 113, 0.16);
  border: 1px solid rgba(31, 169, 113, 0.35);
  color: #b7ebcf;
  font-size: 13px;
  margin-bottom: 22px;
}

.hero h1 {
  font-size: clamp(40px, 6.2vw, 74px);
  line-height: 1.02;
  letter-spacing: -0.04em;
  font-weight: 900;
  margin: 0 0 18px;
}

.accent { color: #c3b4ff; }

.lede {
  max-width: 640px;
  margin: 0 auto 28px;
  color: #a7a7b8;
  font-size: 18px;
  line-height: 1.6;
}

.hero-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

.section { padding: 42px 0 8px; }

.section h2 { text-align: center; font-size: 30px; letter-spacing: -0.03em; margin: 0 0 6px; }

.section .sub { text-align: center; color: #7e7e90; margin: 0 0 26px; }

.live-title { display: flex; align-items: center; justify-content: center; gap: 10px; }

.live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 0 rgba(61, 214, 140, 0.7);
  animation: pulse 1.8s infinite;
}

@keyframes pulse {
  70% { box-shadow: 0 0 0 8px rgba(61, 214, 140, 0); }
  100% { box-shadow: 0 0 0 0 rgba(61, 214, 140, 0); }
}

.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 2px;
  padding: 22px;
}

.hoverable { transition: border-color 0.2s, transform 0.2s; }

.hoverable:hover { border-color: rgba(255, 255, 255, 0.16); transform: translateY(-2px); }

.price-card { padding: 20px 20px 16px; }

.price-top { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }

.price-top .name { font-weight: 700; line-height: 1.1; }

.price-top .sym { color: #8d8da0; font-size: 13px; }

.price-num { font-size: 30px; font-weight: 800; letter-spacing: -0.04em; line-height: 1.1; }

.up, .down { font-weight: 650; font-weight: 600; font-size: 14px; display: inline-flex; gap: 4px; }

.up { color: var(--green); }

.down { color: var(--red); }

.coin-icon {
  width: 36px;
  height: 36px;
  border-radius: 2px;
  display: inline-grid;
  place-items: center;
  color: white;
  font-weight: 700;
  flex: 0 0 auto;
}

.coin-icon.sm { width: 28px; height: 28px; font-size: 13px; }

.coin-icon.lg { width: 52px; height: 52px; font-size: 22px; }

.coin-icon.btc { background: #f7931a; }

.coin-icon.eth { background: #627eea; }

.coin-icon.usdt { background: #26a17b; }

.feature { text-align: center; padding: 28px 22px 24px; }

.feature .ficon { color: #8ee0b5; display: inline-flex; }

.feature .ficon svg { width: 30px; height: 30px; }

.feature h3 { margin: 14px 0 8px; font-size: 18px; }

.feature p { color: var(--muted); font-size: 14.5px; line-height: 1.6; }

.cta {
  margin: 42px auto 28px;
  text-align: left;
  padding: 28px 32px;
  border-radius: 2px;
  background: #0c1611;
  color: var(--text);
  border: 1px solid rgba(31, 169, 113, 0.35);
  width: min(1080px, calc(100% - 36px));
}

.cta h2 { font-size: 34px; letter-spacing: -0.03em; margin-bottom: 8px; }

.cta p { color: #d5d5e6; margin-bottom: 18px; }

.footer { border-top: 1px solid rgba(255, 255, 255, 0.06); padding: 26px 0 30px; color: #747486; font-size: 14px; }

.footer-inner, .slim-footer {
  width: min(1080px, calc(100% - 40px));
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  align-items: center;
}

.footer a { color: #8d8da0; text-decoration: none; }

.footer a:hover { color: white; }

.footer-brand { display: flex; align-items: center; gap: 8px; color: #bdbdcc; }

.slim-footer { justify-content: center; padding: 8px 0 22px; }

.auth-wrap {
  flex: 1;
  display: grid;
  grid-template-columns: minmax(220px, 0.85fr) minmax(320px, 1.15fr);
  align-items: stretch;
  padding: 0;
  min-height: calc(100vh - 150px);
}

.auth-wrap::before {
  content: "DevExchange";
  display: flex;
  align-items: flex-end;
  padding: 48px 40px;
  background: #0c120f;
  color: #e7eee9;
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 600;
  white-space: pre-line;
  line-height: 0.95;
  letter-spacing: -0.03em;
}

.auth-card {
  width: min(460px, calc(100% - 48px));
  margin: 36px auto;
  background: transparent;
  border: 0;
  padding: 8px 0 24px;
}

.auth-card h2 { font-size: 26px; letter-spacing: -0.03em; margin-bottom: 4px; }

.lead { color: var(--muted); margin-bottom: 18px; }

.form { display: flex; flex-direction: column; gap: 14px; }

.field { display: flex; flex-direction: column; gap: 6px; }

.field label, .label { font-size: 14px; color: #b0b0c0; font-weight: 550; font-weight: 500; }

.input, .user-search {
  width: 100%;
  background: #0e1411;
  border: 1px solid rgba(190, 220, 200, 0.14);
  color: var(--text);
  border-radius: 2px;
  padding: 13px 14px;
  font: inherit;
  outline: none;
}

.input:focus, .user-search:focus { border-color: #1fa971; background: #121a16; }

.input::placeholder { color: #8e8e9e; }

.input.mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 12.5px; }

.input.xl { font-size: 20px; font-weight: 650; font-weight: 600; padding-right: 72px; }

input[type="number"]::-webkit-outer-spin-button,
input[type="number"]::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

input[type="number"] { appearance: textfield; -moz-appearance: textfield; }

.forgot-row { display: flex; justify-content: flex-end; margin-top: -6px; }

.forgot-row a, .fine { color: var(--faint); font-size: 13px; text-decoration: none; }

.forgot-row a:hover { color: white; }

.fine { text-align: center; margin-top: 16px; }

.fine a { text-decoration: none; font-weight: 600; }

.demo-box { margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line); }

.demo-box p { color: var(--faint); font-size: 12px; margin: 0 0 8px; }

.demo-actions { display: flex; flex-direction: column; gap: 6px; }

.demo-actions button {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line);
  color: #e4e4ee;
  border-radius: 10px;
  padding: 8px 10px;
  text-align: left;
  cursor: pointer;
  font: inherit;
  font-size: 13px;
}

.demo-actions button:hover { border-color: rgba(31, 169, 113, 0.55); }

.demo-actions b { color: white; font-weight: 650; font-weight: 600; }

.page-head { margin-bottom: 18px; }

.page-head h1 { font-size: 32px; letter-spacing: -0.03em; margin-bottom: 4px; }

.page-head p { color: var(--muted); }

.portfolio {
  background: #0c1611;
  border-left: 3px solid #1fa971;
  margin-bottom: 16px;
}

.portfolio .k { color: #8ee0b5; font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; margin-bottom: 4px; }

.portfolio .value { font-size: clamp(32px, 4vw, 48px); letter-spacing: -0.04em; }

.actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 16px 0 20px; }

.asset-top { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }

.asset-name { font-weight: 700; line-height: 1.1; }

.asset-sym { color: var(--faint); font-size: 13px; }

.asset-bal { font-size: 26px; font-weight: 800; letter-spacing: -0.03em; }

.asset-usd { color: var(--faint); font-size: 14px; }

.block-title { display: flex; align-items: center; justify-content: space-between; margin: 8px 0 12px; }

.block-title h2 { font-size: 20px; }

.table-wrap { overflow-x: auto; }

table.data { width: 100%; border-collapse: collapse; font-size: 14px; }

table.data th {
  text-align: left;
  color: var(--muted);
  font-weight: 500;
  padding: 0 12px 10px 0;
  white-space: nowrap;
}

table.data td {
  padding: 12px 12px 12px 0;
  border-top: 1px solid var(--line);
  vertical-align: middle;
  white-space: nowrap;
}

.pill-status {
  font-size: 12px;
  font-weight: 650;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 999px;
  text-transform: capitalize;
}

.pill-status.ok { background: rgba(61, 214, 140, 0.15); color: #86efac; }

.pill-status.wait { background: rgba(251, 191, 36, 0.15); color: #fcd34d; }

.pill-status.bad { background: rgba(251, 113, 133, 0.15); color: #fda4af; }

.coin-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }

.coin-pick {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 14px 8px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: transparent;
  color: white;
  cursor: pointer;
  font: inherit;
  font-size: 14px;
  font-weight: 600;
}

.coin-pick:hover { background: rgba(255, 255, 255, 0.04); }

.coin-pick.active { background: rgba(255, 255, 255, 0.08); }

.coin-pick.active.btc { border-color: #f7931a; }

.coin-pick.active.eth { border-color: #627eea; }

.coin-pick.active.usdt { border-color: #26a17b; }

.hint { color: var(--faint); font-size: 12.5px; margin-top: 8px; }

.amount-wrap { position: relative; }

.max-btn {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: 0;
  color: var(--brand-2);
  font-weight: 800;
  cursor: pointer;
  font-size: 12px;
  letter-spacing: 0.04em;
}

.notice {
  background: rgba(251, 191, 36, 0.1);
  border: 1px solid rgba(251, 191, 36, 0.28);
  color: #fde68a;
  border-radius: 12px;
  padding: 12px 14px;
  font-size: 13.5px;
  line-height: 1.5;
}

.notice strong { color: white; }

.notice ul { margin: 8px 0 0; padding-left: 18px; }

.notice.info {
  background: rgba(31, 169, 113, 0.1);
  border-color: rgba(31, 169, 113, 0.28);
  color: #c8f5dc;
}

.center { text-align: center; }

.stack { display: flex; flex-direction: column; gap: 16px; align-items: stretch; }

.back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: none;
  border: 0;
  color: var(--muted);
  cursor: pointer;
  font: inherit;
  padding: 0;
  align-self: flex-start;
}

.back:hover { color: white; }

.qr-box {
  background: white;
  padding: 12px;
  border-radius: 16px;
  display: inline-flex;
  margin: 0 auto;
}

.qr-box svg { display: block; width: 200px; height: 200px; }

.addr-row { display: flex; gap: 8px; }

.icon-btn {
  width: 48px;
  flex: 0 0 auto;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: transparent;
  color: #eee;
  cursor: pointer;
}

.icon-btn.copied { color: var(--green); border-color: rgba(61, 214, 140, 0.5); }

.send-exact { font-size: 22px; font-weight: 800; letter-spacing: -0.03em; }

.chips, .tabs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; }

.chip, .tab {
  border: 0;
  border-radius: 12px;
  padding: 8px 14px;
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.05);
  color: var(--muted);
}

.chip.on, .tab.on { background: #1fa971; color: #04140c; }

.tab .count {
  display: inline-grid;
  place-items: center;
  min-width: 18px;
  height: 18px;
  margin-left: 6px;
  padding: 0 5px;
  border-radius: 999px;
  background: #ef4444;
  color: white;
  font-size: 11px;
}

.tx { display: flex; align-items: center; justify-content: space-between; gap: 12px; }

.tx-left { display: flex; align-items: center; gap: 12px; min-width: 0; }

.tx-ico {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  font-size: 18px;
  flex: 0 0 auto;
}

.tx-ico.in { background: rgba(61, 214, 140, 0.12); color: var(--green); }

.tx-ico.out { background: rgba(251, 113, 133, 0.12); color: var(--red); }

.tx-ico.swap { background: rgba(31, 169, 113, 0.14); color: var(--brand-2); }

.tx b { display: block; font-weight: 650; font-weight: 600; }

.tx .subline { color: var(--faint); font-size: 13px; }

.tx-right { text-align: right; }

.tx-amt { font-weight: 700; }

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

.empty { text-align: center; color: var(--faint); padding: 28px 10px; }

.kv { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; border-bottom: 1px solid rgba(255, 255, 255, 0.04); font-size: 14px; }

.kv span { color: var(--muted); }

.kv:last-child { border-bottom: 0; }

.code-chip {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 28px;
  letter-spacing: 0.18em;
  text-align: center;
  padding: 14px 8px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px dashed rgba(31, 169, 113, 0.45);
}

.code-chip.secret {
  font-size: 13px;
  letter-spacing: 0.06em;
  word-break: break-all;
}

.quote {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 12px 14px;
  display: grid;
  gap: 8px;
}

.quote div { display: flex; justify-content: space-between; gap: 12px; color: var(--muted); font-size: 14px; }

.quote strong { color: white; font-weight: 650; font-weight: 600; }

.flip {
  align-self: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: #221f33;
  color: white;
  cursor: pointer;
}

.pay-head { display: flex; align-items: center; justify-content: space-between; }

.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 16px; }

.stat .k { color: var(--muted); font-size: 13px; }

.stat strong { display: block; font-size: 28px; letter-spacing: -0.03em; margin-top: 4px; }

.stat strong.warn { color: var(--yellow); }

.split { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 14px; }

.user-search { margin-bottom: 8px; }

.user-list { max-height: 420px; overflow: auto; }

.user-row {
  width: 100%;
  text-align: left;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--line);
  color: white;
  padding: 10px 8px;
  cursor: pointer;
  font: inherit;
  border-radius: 8px;
}

.user-row small { display: block; color: var(--faint); font-size: 12px; }

.user-row.on, .user-row:hover { background: rgba(31, 169, 113, 0.12); }

.mini { padding: 6px 10px; border-radius: 8px; font-size: 12px; font-weight: 700; border: 0; cursor: pointer; }

.mini.ok { background: rgba(61, 214, 140, 0.16); color: #86efac; }

.mini.bad { background: rgba(251, 113, 133, 0.16); color: #fda4af; }

.mini:hover { filter: brightness(1.15); }

.gap { display: flex; gap: 6px; }

.chat-admin { display: grid; grid-template-columns: 230px 1fr; min-height: 480px; gap: 0; padding: 0; overflow: hidden; }

.session-list { border-right: 1px solid var(--line); overflow: auto; }

.session {
  width: 100%;
  text-align: left;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--line);
  color: white;
  padding: 12px;
  cursor: pointer;
  font: inherit;
}

.session.on, .session:hover { background: rgba(255, 255, 255, 0.04); }

.session small { display: block; color: var(--faint); }

.chat-pane { display: flex; flex-direction: column; min-height: 480px; }

.chat-log {
  flex: 1;
  overflow: auto;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-height: 280px;
}

.bubble { max-width: 82%; padding: 10px 12px; border-radius: 16px; font-size: 14px; line-height: 1.45; }

.bubble.user { margin-left: auto; background: #1fa971; color: #04140c; border-bottom-right-radius: 2px; }

.bubble.admin { background: rgba(255, 255, 255, 0.08); border-bottom-left-radius: 5px; }

.bubble .who { display: block; color: #ddd6fe; font-size: 11px; font-weight: 700; margin-bottom: 2px; }

.bubble time, .bubble .when { display: block; margin-top: 4px; font-size: 11px; opacity: 0.7; }

.bubble.system {
  align-self: center;
  background: transparent;
  color: var(--faint);
  font-size: 12px;
  max-width: 100%;
  text-align: center;
  padding: 4px;
}

.bubble img { display: block; max-height: 180px; border-radius: 10px; margin-bottom: 6px; }

.chat-compose, .composer {
  display: flex;
  gap: 8px;
  padding: 10px;
  border-top: 1px solid var(--line);
  align-items: center;
}

.chat-compose .input, .composer .input { flex: 1; padding: 10px 12px; }

.icon-btn.sq, .file-btn {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  border: 0;
  background: rgba(255, 255, 255, 0.06);
  color: #ddd;
  cursor: pointer;
  display: grid;
  place-items: center;
}

.chat-launcher {
  position: fixed;
  right: 22px;
  bottom: 22px;
  width: 52px;
  height: 52px;
  border-radius: 2px;
  border: 0;
  background: #1fa971;
  color: #04140c;
  box-shadow: none;
  z-index: 50;
  cursor: pointer;
}

.chat-launcher svg { width: 26px; height: 26px; }

.chat-badge {
  position: absolute;
  top: 2px;
  right: 2px;
  width: 12px;
  height: 12px;
  background: #fb7185;
  border-radius: 50%;
  border: 2px solid #07070e;
}

.chat-panel {
  position: fixed;
  right: 22px;
  bottom: 92px;
  width: min(380px, calc(100vw - 24px));
  height: min(540px, calc(100vh - 130px));
  background: #101412;
  border: 1px solid rgba(190, 220, 200, 0.14);
  border-radius: 2px;
  z-index: 50;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.chat-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
}

.chat-head .presence { display: flex; align-items: center; gap: 8px; font-weight: 700; }

.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); }

.x {
  background: none;
  border: 0;
  color: var(--muted);
  font-size: 20px;
  cursor: pointer;
  line-height: 1;
}

.modal-back {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.62);
  z-index: 70;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal { width: min(440px, 100%); }

.modal h2 { margin-bottom: 8px; }

.modal p { color: var(--muted); margin-bottom: 12px; }

#toasts {
  position: fixed;
  top: 82px;
  right: 16px;
  z-index: 80;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.toast {
  background: #1c1c28;
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: white;
  padding: 12px 14px;
  border-radius: 12px;
  min-width: 220px;
  max-width: 340px;
  box-shadow: var(--shadow);
  animation: rise 0.25s ease;
}

.toast.ok { border-color: rgba(61, 214, 140, 0.45); }

.toast.err { border-color: rgba(251, 113, 133, 0.5); }

.mb { margin-bottom: 14px; }

.mt { margin-top: 12px; }

.danger-link { color: #fda4af; background: none; border: 0; cursor: pointer; font: inherit; padding: 0; }

@media (max-width: 980px) {
  .trust { display: none; }
  .stats, .split, .chat-admin { grid-template-columns: 1fr; }
  .session-list { border-right: 0; border-bottom: 1px solid var(--line); max-height: 180px; }
}

@media (max-width: 860px) {
  .nav-links { display: none; }
  .burger { display: inline-flex; }
  .drawer.open {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 4px 16px 14px;
    border-top: 1px solid var(--line);
  }
  .drawer a, .drawer button {
    text-align: left;
    background: none;
    border: 0;
    color: #e6e6ef;
    font: inherit;
    font-weight: 600;
    padding: 11px 4px;
    text-decoration: none;
    cursor: pointer;
  }
  .grid-3 { grid-template-columns: 1fr; }
  .hero { padding-top: 48px; }
  .hero-actions .btn { width: min(100%, 340px); }
  .nav-name { display: none; }
  .mast, .ledger, .invite { grid-template-columns: 1fr; width: min(100% - 28px, 1120px); }
  .ledger article + article { border-left: 0; border-top: 1px solid var(--line); }
  .invite { flex-direction: column; align-items: flex-start; }
  .auth-wrap { display: block; padding: 28px 16px; }
  .auth-wrap::before { display: none; }
  .auth-card { width: min(460px, 100%); }
}

.mast {
  width: min(1120px, calc(100% - 48px));
  margin: 36px auto 8px;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 36px;
  align-items: end;
}

.kicker {
  margin: 0 0 14px;
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #1fa971;
}

.mast h1 {
  font-size: clamp(40px, 5vw, 64px);
  line-height: 1.02;
  margin: 0 0 16px;
}

.mast h1 em { font-style: normal; color: #8ee0b5; }

.mast .lede { margin: 0 0 22px; max-width: 460px; color: var(--muted); font-size: 17px; }

.mast-notes { list-style: none; padding: 18px 0 0; margin: 22px 0 0; border-top: 1px solid var(--line); display: grid; gap: 8px; }

.mast-notes li { display: flex; gap: 12px; color: var(--muted); font-size: 14px; }

.mast-notes span { color: #1fa971; font-weight: 600; min-width: 1.6em; }

.tape { background: #0c100e; border: 1px solid var(--line); padding: 6px 6px 8px; }

.tape header {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 12px 10px;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--faint);
}

.tape-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 2px 12px;
  align-items: center;
  padding: 14px 12px;
  border-top: 1px solid var(--line);
}

.tape-row .price-top { margin: 0; }

.tape-row .price-num { font-size: 26px; text-align: right; }

.tape-row [data-change] { grid-column: 2; text-align: right; }

.ledger {
  width: min(1120px, calc(100% - 48px));
  margin: 42px auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.ledger article { padding: 28px 22px 26px; }

.ledger article + article { border-left: 1px solid var(--line); }

.ledger span { display: block; font-size: 13px; letter-spacing: 0.14em; color: #1fa971; margin-bottom: 10px; font-weight: 600; }

.ledger h3 { font-family: var(--font); font-size: 16px; letter-spacing: 0; margin-bottom: 8px; }

.ledger p { color: var(--muted); font-size: 14.5px; line-height: 1.55; }

.invite {
  width: min(1120px, calc(100% - 48px));
  margin: 0 auto 48px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  padding: 28px 32px;
  background: #0c1611;
  color: var(--text);
  border: 1px solid rgba(31, 169, 113, 0.35);
}

.invite h2 { font-size: clamp(28px, 4vw, 40px); color: var(--text); margin-bottom: 6px; }

.invite p { color: var(--muted); max-width: 420px; }

.invite .btn-ink { background: #1fa971; color: #04140c; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
}
