:root {
  --bg: #141a1b;
  --bg-elev: #17181b;
  --nav: #1a1c1f;
  --card: #1b1d20;
  --chip: #2c2c2c;
  --chip-2: #323232;
  --search: #2f3133;
  --line: #262829;
  --line-2: #1f2123;
  --text: #f4f5f6;
  --muted: #8a8c8e;
  --muted-2: #6e7072;
  --green: #00b153;
  --green-2: #00c45c;
  --green-soft: #92f791;
  --green-dim: #0d7c3c;
  --red: #e45c6a;
  --put: #6e2a3c;
  --put-2: #8a3550;
  --pink: #e54d7a;
  --blue: #0c49d3;
  --safe-b: env(safe-area-inset-bottom, 0px);
  --nav-h: 58px;
  --pad: 16px;
  --radius: 8px;
}

* { box-sizing: border-box; margin: 0; padding: 0; -webkit-tap-highlight-color: transparent; }
html, body { height: 100%; background: #070808; color: var(--text); }
html { -webkit-text-size-adjust: 100%; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", "PingFang SC", "Helvetica Neue", "Segoe UI", sans-serif;
  font-weight: 400;
  overflow: hidden;
}
button, input, select { font-family: inherit; color: inherit; }
button { border: 0; background: none; cursor: pointer; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
.hidden { display: none !important; }

#stage {
  min-height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #070808;
}

#app {
  width: 100%;
  max-width: 393px;
  height: 100dvh;
  max-height: 852px;
  background: var(--bg);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 0 0 1px #222, 0 24px 80px rgba(0,0,0,.55);
}

@media (max-width: 430px) {
  #app { max-height: none; height: 100dvh; box-shadow: none; }
}

.screens { flex: 1; min-height: 0; position: relative; }
.screen {
  position: absolute;
  inset: 0;
  display: none;
  flex-direction: column;
  background: var(--bg);
  overflow: hidden;
}
.screen.active { display: flex; }
.scroll {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  padding-bottom: calc(var(--nav-h) + 18px + var(--safe-b));
}
#app.sub .scroll { padding-bottom: 28px; }
.scroll::-webkit-scrollbar { width: 0; height: 0; }

/* Top bars */
.top-home {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px 6px;
}
.avatar {
  width: 32px; height: 32px; border-radius: 50%;
  background: #2a2c2e;
  display: grid; place-items: center;
  position: relative; flex: none;
  color: #9aa0a4;
}
.avatar svg { width: 18px; height: 18px; }
.avatar .dot {
  position: absolute; right: -1px; bottom: -1px;
  width: 9px; height: 9px; border-radius: 50%;
  background: var(--green); border: 2px solid var(--bg);
}
.search {
  flex: 1; height: 32px; border-radius: 16px;
  background: var(--search);
  display: flex; align-items: center; gap: 8px;
  padding: 0 12px; color: #6a6c6e; font-size: 12px;
}
.search input {
  flex: 1; background: none; border: 0; outline: none;
  color: var(--text); font-size: 12px; min-width: 0;
}
.search input::placeholder { color: #6a6c6e; }
.search .ico { color: var(--green); display: grid; place-items: center; }
.top-actions { display: flex; align-items: center; gap: 10px; flex: none; }
.top-actions button {
  width: 22px; height: 22px; color: var(--green);
  display: grid; place-items: center;
}
.top-actions svg { width: 20px; height: 20px; }

.asset-block { padding: 10px 16px 6px; }
.asset-label {
  display: flex; align-items: center; gap: 6px;
  color: var(--muted); font-size: 12px;
}
.asset-label button { color: var(--muted); display: grid; place-items: center; }
.asset-row { display: flex; align-items: baseline; gap: 4px; margin-top: 2px; }
.asset-num { font-size: 34px; font-weight: 600; letter-spacing: -0.6px; line-height: 1.15; }
.asset-ccy { font-size: 13px; color: var(--muted); font-weight: 500; }

.actions {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  row-gap: 14px;
  padding: 14px 6px 10px;
}
.action {
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  color: #cfd1d2; font-size: 12px;
}
.action .orb {
  width: 48px; height: 48px; border-radius: 50%;
  background: radial-gradient(circle at 50% 40%, #222628, #16181a);
  box-shadow: inset 0 0 0 1px #2a2d2e;
  display: grid; place-items: center;
  color: var(--green);
}
.action .orb svg { width: 22px; height: 22px; }

.banners {
  margin: 8px 12px 4px;
  position: relative;
  height: 90px;
  border-radius: 6px;
  overflow: hidden;
  background: #0e1210;
}
.banners .track {
  display: flex; height: 100%;
  transition: transform .35s ease;
}
.banners .slide {
  min-width: 100%; height: 100%;
  position: relative;
}
.banners .slide img { width: 100%; height: 100%; object-fit: fill; }
.banner-custom {
  height: 100%;
  padding: 16px 18px;
  background:
    radial-gradient(circle at 86% 50%, rgba(0,177,83,.28), transparent 42%),
    linear-gradient(90deg, #101612, #0c1410);
}
.banner-custom h3 { color: var(--green); font-size: 22px; font-weight: 700; line-height: 1.15; }
.banner-custom p { margin-top: 10px; font-size: 12px; color: #c8cdc9; max-width: 62%; }
.banner-custom .tag {
  display: inline-block; margin-top: 10px;
  background: var(--green); color: #fff; font-size: 12px; font-weight: 600;
  padding: 4px 8px; border-radius: 2px;
}
.pager {
  position: absolute; right: 8px; bottom: 6px;
  font-size: 10px; color: #d0d0d0; background: rgba(0,0,0,.35);
  padding: 1px 6px; border-radius: 8px;
}

.mtabs {
  display: flex; align-items: center; gap: 18px;
  padding: 12px 16px 8px;
  font-size: 14px; color: #8d8f91;
}
.mtabs button.active { color: var(--text); font-weight: 600; }
.filter-row { padding: 0 16px 8px; }
.filter {
  height: 28px; padding: 0 10px;
  border: 1px solid #3a3c3e; border-radius: 4px;
  background: transparent; color: #c9cbcc; font-size: 13px;
  display: inline-flex; align-items: center; gap: 8px;
}
.cols {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.1fr;
  padding: 6px 16px; color: var(--muted); font-size: 12px;
}
.row {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.1fr;
  padding: 10px 16px; align-items: center; font-size: 13px;
}
.sym { display: flex; align-items: center; gap: 8px; font-weight: 600; }
.live {
  font-size: 9px; font-weight: 700; letter-spacing: .04em;
  color: #7dff9a; border: 1px solid #1e5a32; background: #102418;
  border-radius: 4px; padding: 1px 4px;
}
.sym .logo {
  width: 22px; height: 22px; border-radius: 50%; overflow: hidden; flex: none;
}
.px-red { color: var(--red); }
.px-green { color: var(--green); }
.chg { text-align: right; font-weight: 600; }

/* Bottom nav */
.tabbar {
  position: absolute; left: 0; right: 0; bottom: 0;
  height: calc(var(--nav-h) + var(--safe-b));
  padding-bottom: var(--safe-b);
  background: var(--nav);
  display: grid;
  grid-template-columns: 1fr 1fr 64px 1fr 1fr;
  align-items: end;
  z-index: 30;
  box-shadow: 0 -1px 0 #111;
}
.tab {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 2px; height: var(--nav-h); color: #8b8d8f; font-size: 10px;
}
.tab svg { width: 22px; height: 22px; }
.tab.active { color: var(--green); }
.tab-trade { position: relative; }
.fab {
  position: absolute; left: 50%; bottom: calc(18px + var(--safe-b));
  transform: translateX(-50%);
  width: 48px; height: 48px; border-radius: 50%;
  background: #f3f5f4;
  box-shadow: 0 4px 14px rgba(0,0,0,.35);
  display: grid; place-items: center;
  color: var(--green);
  z-index: 31;
}
.fab svg { width: 26px; height: 26px; }
.fab.active {
  background: #f7faf7;
  box-shadow: 0 0 0 6px rgba(0,177,83,.08), 0 4px 14px rgba(0,0,0,.35);
}

/* Subpage header */
.subhead {
  height: 44px; display: flex; align-items: center; gap: 8px;
  padding: 0 8px; flex: none;
}
.subhead .back { width: 36px; height: 36px; display: grid; place-items: center; color: var(--text); }
.subhead h1 { flex: 1; text-align: center; font-size: 16px; font-weight: 600; margin-right: 36px; }
.subhead .right { width: 36px; }

/* Trade */
.trade-head {
  height: 44px; display: flex; align-items: center; justify-content: space-between;
  padding: 0 12px; flex: none;
}
.pair {
  display: flex; align-items: center; gap: 6px; font-weight: 700; font-size: 16px;
}
.pair .tri { color: var(--green); display: grid; }
.pair .info { color: var(--muted); display: grid; }
.chart-toggle { color: #cfd1d2; display: grid; padding: 6px; }

.chart-wrap { height: 0; overflow: hidden; transition: height .25s ease; background: #101415; }
.chart-wrap.open { height: 248px; }
.tfs {
  display: flex; align-items: center; gap: 14px;
  padding: 4px 12px 2px; font-size: 12px; color: #8a8c8e;
  position: relative; z-index: 2; background: #101415;
}
.tfs button.active { color: var(--green); font-weight: 600; }
.tfs .more { margin-left: auto; display: flex; align-items: center; gap: 2px; }
#kline { width: 100%; height: 210px; display: block; }

.price-line {
  padding: 8px 16px 0; font-size: 12px; color: var(--muted);
}
.price-line b { font-weight: 600; }
.expect {
  padding: 8px 16px 4px; font-size: 14px; color: #d8d9da;
}
.expect em { font-style: normal; font-weight: 600; }

.dir-row {
  display: flex; justify-content: center; gap: 36px;
  padding: 10px 0 6px;
}
.dir {
  width: 72px; height: 72px; border-radius: 50%;
  display: grid; place-items: center;
  color: #fff;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.06);
}
.dir svg { width: 28px; height: 28px; }
.dir.up { background: radial-gradient(circle at 50% 42%, #19c65f, #00a84c 62%, #008f40); }
.dir.down { background: radial-gradient(circle at 50% 42%, #8e3d55, #6a2a3e 60%, #542233); }
.dir.up.on { box-shadow: 0 0 0 3px rgba(0,177,83,.28), inset 0 0 0 1px rgba(255,255,255,.08); }
.dir.down.on { box-shadow: 0 0 0 3px rgba(142,61,85,.35), inset 0 0 0 1px rgba(255,255,255,.08); }
.dir:not(.on) { opacity: .92; }

.period-row {
  display: flex; align-items: flex-end; justify-content: space-between;
  padding: 8px 16px 0;
}
.period-row .lbl { font-size: 14px; font-weight: 600; }
.pnl { font-size: 13px; color: var(--muted); }
.slider-wrap { padding: 10px 18px 4px; }
.slider {
  -webkit-appearance: none; appearance: none; width: 100%; height: 2px;
  background: linear-gradient(to right, var(--text) 0%, var(--text) var(--pct,0%), #3a3c3e var(--pct,0%), #3a3c3e 100%);
  border-radius: 2px; outline: none;
}
.slider::-webkit-slider-thumb {
  -webkit-appearance: none; width: 14px; height: 14px; border-radius: 50%;
  background: #fff; border: 0; box-shadow: 0 0 0 2px #111;
}
.ticks {
  display: flex; justify-content: space-between;
  padding: 6px 14px 0; font-size: 12px; color: #8a8c8e;
}

.prem-row {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 16px 8px;
}
.prem-row .lbl { font-size: 14px; font-weight: 600; }
.bal {
  display: flex; align-items: center; gap: 6px;
  font-size: 13px; color: #cfd1d2;
}
.bal .go { color: var(--green); display: grid; }

.chips {
  display: grid; grid-template-columns: repeat(6, 1fr); gap: 6px;
  padding: 0 12px;
}
.chip {
  display: block; width: 100%;
  height: 32px; border-radius: 6px; background: var(--chip-2);
  font-size: 12px; color: #d0d2d3;
}
.chip.on { color: var(--green); box-shadow: inset 0 0 0 1px var(--green); }

.prem-input {
  margin: 10px 12px 0;
  height: 40px; border-radius: 6px;
  border: 1px solid #3a3c3e; background: transparent;
  display: flex; align-items: center; padding: 0 12px;
}
.prem-input input {
  width: 100%; background: none; border: 0; outline: none;
  font-size: 14px; color: var(--text);
}
.prem-input input::placeholder { color: #6e7072; }

.fee-row {
  display: flex; justify-content: space-between;
  padding: 10px 16px 12px; font-size: 12px; color: var(--muted);
}
.fee-row b { color: var(--text); font-weight: 600; }
.est-ok { color: var(--green) !important; }

.cta-wrap { position: relative; margin: 0 12px; }
.cta {
  display: block; width: 100%;
  height: 44px; border-radius: 8px;
  background: var(--green); color: #fff;
  font-size: 16px; font-weight: 500;
}
.cta.put { background: var(--put-2); }
.cta-wrap .bot {
  position: absolute; right: -6px; top: 50%;
  transform: translateY(-50%);
  bottom: auto; width: 52px; height: 52px;
}

.pos-head {
  display: flex; align-items: center; gap: 8px;
  padding: 16px 16px 8px; font-size: 14px;
}
.pos-head .count { font-weight: 600; }
.pos-head .fill { color: var(--muted); display: inline-flex; align-items: center; gap: 4px; font-size: 13px; }
.pos-head .stats { margin-left: auto; color: #cfd1d2; }
.pos-underline { height: 2px; width: 54px; background: var(--green); margin: 0 16px 8px; border-radius: 1px; }
.checkline {
  display: flex; align-items: center; gap: 8px;
  padding: 8px 16px 10px; font-size: 13px; color: #cfd1d2;
  border-bottom: 1px solid var(--line-2);
}
.checkline input { accent-color: var(--green); width: 16px; height: 16px; }

.empty {
  display: flex; flex-direction: column; align-items: center;
  padding: 28px 0 12px; color: var(--muted); font-size: 13px; gap: 10px;
}

.pos-card {
  margin: 12px 12px 0;
  background: var(--card);
  border-radius: 8px;
  padding: 12px 12px 10px;
}
.pos-top { display: flex; align-items: center; gap: 8px; }
.pos-top .name { font-weight: 700; }
.badge {
  font-size: 11px; padding: 1px 6px; border-radius: 3px;
  background: #163c28; color: var(--green); font-weight: 600;
}
.badge.put { background: #3a1c26; color: #e45c6a; }
.pos-dir { margin-left: auto; }
.pos-mid {
  display: flex; justify-content: space-between;
  margin-top: 8px; font-size: 13px; color: #cfd1d2;
}
.pos-mid .right { text-align: right; color: var(--muted); }
.pos-bot {
  display: flex; justify-content: space-between;
  margin-top: 6px; font-size: 12px; color: var(--muted);
}
.bar {
  margin-top: 10px; height: 14px; border-radius: 8px;
  background: #2a2a2a; overflow: hidden; position: relative;
}
.bar > i {
  display: block; height: 100%;
  background: linear-gradient(90deg, #7dff9a, #b6f7b4);
  border-radius: 8px;
}
.bar span {
  position: absolute; inset: 0;
  display: grid; place-items: center;
  font-size: 11px; color: #1a3d1c; font-weight: 700;
  mix-blend-mode: plus-darker;
}

.bot {
  z-index: 20;
  filter: drop-shadow(0 6px 10px rgba(0,0,0,.35));
}

/* Sheet */
.overlay {
  position: absolute; inset: 0; background: rgba(0,0,0,.45);
  z-index: 40; display: none;
}
.overlay.show { display: block; }
.sheet {
  position: absolute; left: 0; right: 0; bottom: 0;
  background: #17181b;
  border-radius: 12px 12px 0 0;
  padding: 8px 16px calc(18px + var(--safe-b));
  z-index: 41;
  transform: translateY(110%);
  transition: transform .28s ease;
}
.sheet.show { transform: translateY(0); }
.handle {
  width: 36px; height: 4px; border-radius: 2px; background: #3a3c3e;
  margin: 4px auto 10px;
}
.sheet-h {
  display: flex; align-items: center; justify-content: space-between;
  font-size: 16px; font-weight: 600; padding: 4px 0 12px;
}
.kv { display: flex; justify-content: space-between; padding: 9px 0; font-size: 14px; color: var(--muted); }
.kv b { color: var(--text); font-weight: 500; }
.kv .g { color: var(--green); }
.dont { display: flex; align-items: center; gap: 8px; padding: 10px 0 16px; font-size: 14px; color: #cfd1d2; }
.dont input { accent-color: var(--green); width: 16px; height: 16px; }
.confirm {
  height: 44px; width: 100%; border-radius: 8px;
  background: var(--green-soft); color: #143018;
  font-size: 16px; font-weight: 600;
}

/* Lists / generic */
.list { padding: 0 0 20px; }
.cell {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line-2);
}
.cell .grow { flex: 1; }
.cell .t { font-size: 14px; }
.cell .s { font-size: 12px; color: var(--muted); margin-top: 2px; }
.cell .amt { text-align: right; font-size: 14px; }
.ico-sq {
  width: 36px; height: 36px; border-radius: 50%;
  background: #222628; color: var(--green);
  display: grid; place-items: center;
}

.wallet-hero { padding: 12px 16px 8px; }
.ops {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px;
  padding: 8px 16px 16px;
}
.ops button {
  height: 36px; border-radius: 6px; background: var(--chip-2); font-size: 13px;
}
.ops button.pri { background: var(--green); }

.field { margin: 12px 16px 0; }
.field label { display: block; font-size: 12px; color: var(--muted); margin-bottom: 6px; }
.field .box, .field input, .field select {
  width: 100%; height: 42px; border-radius: 6px;
  border: 1px solid #3a3c3e; background: transparent;
  padding: 0 12px; font-size: 14px; outline: none; color: var(--text);
}
.hint { padding: 8px 16px; font-size: 12px; color: var(--muted); line-height: 1.5; }
.page-cta { display: block; margin: 20px 16px 0; height: 44px; width: calc(100% - 32px); border-radius: 8px; background: var(--green); color: #fff; font-size: 16px; }

.notice {
  margin: 12px 16px; padding: 12px; border-radius: 8px;
  background: #1b1d20; font-size: 13px; color: #cfd1d2; line-height: 1.55;
}
.seg {
  display: grid; grid-template-columns: 1fr 1fr; margin: 8px 16px 0;
  background: #1b1d20; border-radius: 6px; padding: 3px;
}
.seg button { height: 30px; border-radius: 4px; font-size: 13px; color: var(--muted); }
.seg button.on { background: #2c2c2c; color: var(--text); }

.toast {
  position: absolute; left: 50%; top: 42%;
  transform: translate(-50%, -50%);
  background: rgba(20,20,20,.92); color: #fff;
  padding: 10px 16px; border-radius: 8px;
  font-size: 13px; z-index: 80; display: none;
  max-width: 80%; text-align: center;
}
.toast.show { display: block; }

.chatbox {
  position: absolute; inset: 0; background: var(--bg); z-index: 50;
  display: none; flex-direction: column;
}
.chatbox.show { display: flex; }
.chat-msgs { flex: 1; overflow: auto; padding: 12px 12px 80px; }
.bubble {
  max-width: 80%; padding: 8px 10px; border-radius: 10px;
  font-size: 13px; line-height: 1.45; margin: 8px 0;
}
.bubble.botn { background: #222628; }
.bubble.me { background: var(--green); margin-left: auto; }
.chat-in {
  position: absolute; left: 0; right: 0; bottom: 0;
  display: flex; gap: 8px; padding: 8px 12px calc(10px + var(--safe-b));
  background: var(--nav);
}
.chat-in input {
  flex: 1; height: 36px; border-radius: 18px; border: 0;
  background: #2c2c2c; padding: 0 14px; outline: none; font-size: 13px;
}
.chat-in button {
  width: 36px; height: 36px; border-radius: 50%; background: var(--green);
  display: grid; place-items: center;
}

.lang-list button, .notify-item {
  width: 100%; text-align: left; padding: 14px 16px;
  border-bottom: 1px solid var(--line-2); font-size: 14px;
  display: flex; justify-content: space-between;
}

.mkt-search { margin: 8px 16px; }
.mkt-cats {
  display: flex; gap: 8px; padding: 4px 16px 8px; overflow-x: auto;
}
.mkt-cats button {
  flex: none; height: 26px; padding: 0 10px; border-radius: 13px;
  background: #1b1d20; font-size: 12px; color: var(--muted);
}
.mkt-cats button.on { color: var(--green); background: #163c28; }

/* Guest claim */
.claim {
  padding: 8px 16px 4px; position: relative; overflow: hidden;
}
.claim h2 { color: var(--green); font-size: 15px; font-weight: 600; }
.claim p { font-size: 20px; font-weight: 600; margin: 6px 0 12px; letter-spacing: -.3px; }
.claim .pill {
  height: 32px; padding: 0 14px; border-radius: 16px;
  border: 1px solid #cfd1d2; font-size: 13px; color: #e8e8e8;
}
.spark {
  position: absolute; color: #7dff9a; pointer-events: none;
}
.spark.s1 { right: 28px; top: 8px; }
.spark.s2 { right: 8px; top: 54px; }
.spark.s3 { right: 72px; top: 36px; opacity: .7; }
#app.guest .asset-block { display: none; }
#app:not(.guest) .claim { display: none; }
#app.guest .avatar .dot { display: none; }

/* Auth */
.auth { background: var(--bg); color: var(--text); }
.auth-bar {
  height: 48px; display: flex; align-items: center; justify-content: space-between;
  padding: 0 12px;
}
.auth-bar .x { width: 36px; height: 36px; display: grid; place-items: center; font-size: 22px; }
.auth-bar .link { color: var(--green); font-size: 14px; padding: 8px; }
.auth-tabs { display: flex; gap: 18px; }
.auth-tabs button { font-size: 15px; color: #8a8c8e; padding: 8px 0; position: relative; }
.auth-tabs button.on { color: var(--green); }
.auth-tabs button.on::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 2px;
  height: 2px; background: var(--green);
}
.auth-body { padding: 8px 20px 24px; flex: 1; overflow: auto; }
.auth-body h1 { font-size: 28px; font-weight: 700; margin: 6px 0 8px; }
.auth-sub { font-size: 13px; color: #8a8c8e; line-height: 1.45; margin-bottom: 18px; }
.auth-label { font-size: 14px; margin: 14px 0 8px; }
.auth-in {
  height: 46px; border: 1px solid #3a3d40; border-radius: 8px;
  display: flex; align-items: center; padding: 0 12px; background: transparent;
}
.auth-in input {
  flex: 1; border: 0; outline: none; background: none;
  font-size: 14px; min-width: 0; color: var(--text);
}
.auth-in input::placeholder { color: #5c5e60; }
.auth-in .eye, .auth-in .paste { color: var(--green); font-size: 13px; padding: 6px; flex: none; }
.auth-in .eye { color: #8a8c8e; display: grid; }
.auth-btn {
  display: block; width: 100%; height: 48px; border-radius: 8px;
  margin-top: 28px; font-size: 16px; font-weight: 500;
}
.auth-btn.green { background: #2e7d4f; color: rgba(255,255,255,.38); }
.auth-btn.green.on { background: #00b153; color: #fff; }
.auth-btn.yellow { background: #f0c419; color: #fff; }
.auth-row {
  display: flex; justify-content: space-between; margin-top: 18px;
}
.auth-row button { color: var(--green); font-size: 14px; }
.auth-foot {
  text-align: center; font-size: 12px; color: #8a8c8e;
  padding: 16px 20px calc(18px + var(--safe-b));
}
.auth-foot b { color: var(--green); font-weight: 500; }

.legal { padding: 16px 20px 40px; font-size: 14px; line-height: 1.7; color: #cfd1d2; }
.legal h2 { color: #fff; font-size: 16px; margin: 16px 0 8px; }

/* Chatwoot */
#woot {
  position: absolute; inset: 0; z-index: 70; display: none;
  flex-direction: column; background: #fff; color: #1f1f1f;
}
#woot.show { display: flex; }
.woot-land { flex: 1; display: flex; flex-direction: column; padding: 16px 20px 0; }
.woot-land-top { display: flex; justify-content: space-between; align-items: flex-start; }
.woot-x { width: 32px; height: 32px; display: grid; place-items: center; color: #444; }
.woot-brand { margin-top: 18px; }
.woot-brand h2 { font-size: 22px; font-weight: 700; color: #111; }
.woot-brand p { margin-top: 8px; font-size: 15px; color: #6b6b6b; line-height: 1.4; max-width: 280px; }
.woot-card {
  margin: auto 0 88px; background: #fff;
  border-radius: 16px; padding: 16px 16px 14px;
  box-shadow: 0 8px 28px rgba(0,0,0,.08), 0 0 0 1px rgba(0,0,0,.04);
  display: flex; align-items: center; gap: 12px;
  text-align: left; width: 100%;
}
.woot-card .txt { flex: 1; }
.woot-card .t { font-weight: 700; font-size: 15px; }
.woot-card .s { font-size: 13px; color: #7a7a7a; margin-top: 2px; }
.woot-card .go { color: #00b153; font-weight: 600; font-size: 14px; margin-top: 8px; }
.woot-head {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 10px 10px 6px;
  border-bottom: 1px solid #f0f0f0;
}
.woot-head .meta { flex: 1; min-width: 0; }
.woot-head .meta b { font-size: 15px; display: flex; align-items: center; gap: 6px; }
.woot-head .meta span { font-size: 12px; color: #888; }
.dot-on { width: 8px; height: 8px; border-radius: 50%; background: #00b153; display: inline-block; }
.woot-thread { flex: 1; overflow: auto; padding: 16px 14px 12px; background: #fff; }
.woot-bubble {
  background: #fff; border-radius: 12px;
  box-shadow: 0 4px 18px rgba(0,0,0,.08);
  padding: 16px 16px 14px; font-size: 15px; line-height: 1.45; color: #111;
  margin-bottom: 8px; max-width: 92%;
}
.woot-bubble p { margin: 0 0 12px; }
.woot-bubble p:last-child { margin: 0; }
.woot-who { display: flex; align-items: center; gap: 8px; font-size: 13px; color: #666; margin: 4px 0 16px; }
.woot-me {
  margin: 10px 0 10px auto; max-width: 70%;
  background: #00b153; color: #fff; border-radius: 16px 16px 4px 16px;
  padding: 10px 14px; font-size: 14px; font-weight: 600;
}
.woot-in {
  margin: 8px 12px calc(10px + var(--safe-b));
  height: 48px; border: 1.5px solid #00b153; border-radius: 10px;
  display: flex; align-items: center; padding: 0 10px 0 14px; gap: 8px;
}
.woot-in input { flex: 1; border: 0; outline: none; font-size: 15px; color: #222; background: none; }
.woot-in input::placeholder { color: #9aa0a4; }
.woot-in button { color: #9aa0a4; width: 32px; height: 32px; display: grid; place-items: center; }
.woot-in #wootSend {
  width: auto; padding: 0 12px; color: #00b153; font-weight: 600; font-size: 14px;
}
.woot-pow { text-align: center; font-size: 11px; color: #9aa0a4; padding-bottom: 8px; }
.woot-pow b { font-weight: 600; color: #7a7a7a; }
.logo-a {
  width: 40px; height: 40px; border-radius: 50%;
  background: #111; display: grid; place-items: center; flex: none;
}
.agent {
  width: 36px; height: 36px; border-radius: 50%; overflow: hidden; flex: none;
  background: #f3d4c4;
}
#woot.land .woot-chat { display: none; }
#woot.chat .woot-land { display: none; }
#woot.chat .woot-chat { display: flex; flex: 1; flex-direction: column; min-height: 0; }
