:root {
  --bg: #050505;
  --panel: #101010;
  --panel-2: #171717;
  --panel-3: #202020;
  --line: rgba(255, 255, 255, 0.08);
  --text: #f5f5f2;
  --muted: #8d8f92;
  --soft: #c6c8cb;
  --green: #00d395;
  --red: #ff4d61;
  --yellow: #f5c84b;
  --blue: #6aa7ff;
  --radius-xl: 32px;
  --radius-lg: 24px;
  --radius-md: 18px;
  --shadow: 0 28px 80px rgba(0, 0, 0, 0.55);
  color-scheme: dark;
}

* {
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

html,
body {
  margin: 0;
  min-height: 100%;
  color: var(--text);
  background:
    radial-gradient(circle at 18% -8%, rgba(0, 211, 149, 0.18), transparent 28%),
    radial-gradient(circle at 80% 6%, rgba(245, 200, 75, 0.1), transparent 22%),
    var(--bg);
  font-family: "Avenir Next", "PingFang SC", "Hiragino Sans GB", sans-serif;
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  border: 0;
  color: inherit;
  cursor: pointer;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 16px;
  color: var(--text);
  background: #0b0b0b;
  outline: 0;
  padding: 14px 15px;
}

input[readonly] {
  color: var(--soft);
  background: rgba(255, 255, 255, 0.045);
}

textarea {
  min-height: 86px;
  resize: vertical;
}

.app-shell {
  width: min(100%, 460px);
  min-height: 100vh;
  margin: 0 auto;
  padding: 54px 14px 132px;
  position: relative;
}

.phone-frame {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.03), transparent 23%),
    radial-gradient(circle at 48% 0%, rgba(255, 255, 255, 0.08), transparent 8%);
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 2px 16px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.brand-mark {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 13px;
  color: #04100c;
  background: linear-gradient(135deg, var(--green), #effff8);
  font-family: "DIN Condensed", "Avenir Next Condensed", sans-serif;
  font-size: 24px;
  font-weight: 900;
  letter-spacing: -0.04em;
}

.brand-title {
  margin: 0;
  font-family: "DIN Condensed", "Avenir Next Condensed", sans-serif;
  font-size: 27px;
  font-weight: 900;
  letter-spacing: -0.02em;
}

.brand-subtitle {
  margin-top: 1px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--soft);
  background: rgba(255, 255, 255, 0.04);
  font-size: 12px;
  font-weight: 800;
  padding: 8px 11px;
}

.chip.green {
  border-color: rgba(0, 211, 149, 0.35);
  color: var(--green);
  background: rgba(0, 211, 149, 0.08);
}

.chip.red {
  border-color: rgba(255, 77, 97, 0.35);
  color: var(--red);
  background: rgba(255, 77, 97, 0.08);
}

.login-page {
  min-height: 100vh;
  display: grid;
  align-items: start;
  padding-bottom: 28px;
}

.login-hero {
  margin-bottom: 28px;
  padding: 8px 4px;
}

.login-hero h1 {
  margin: 18px 0 12px;
  font-family: "DIN Condensed", "Avenir Next Condensed", sans-serif;
  font-size: clamp(62px, 17vw, 88px);
  line-height: 0.84;
  letter-spacing: -0.05em;
}

.login-hero p {
  max-width: 340px;
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.7;
}

.auth-card,
.card,
.sheet {
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.075), rgba(255, 255, 255, 0.028)),
    var(--panel);
  box-shadow: var(--shadow);
}

.auth-card {
  display: grid;
  gap: 13px;
  padding: 18px;
}

.auth-card h2,
.section-title h2 {
  margin: 0;
  font-size: 22px;
}

.field-label {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.primary-btn,
.secondary-btn,
.ghost-btn,
.danger-btn {
  width: 100%;
  border-radius: 18px;
  font-weight: 900;
  padding: 15px 16px;
}

.primary-btn {
  color: #06120e;
  background: var(--green);
}

.secondary-btn {
  color: var(--text);
  background: var(--panel-3);
}

.ghost-btn {
  color: var(--soft);
  border: 1px solid var(--line);
  background: transparent;
}

.danger-btn {
  color: #fff;
  background: var(--red);
}

.mini-btn {
  border-radius: 999px;
  color: var(--text);
  background: var(--panel-3);
  font-size: 12px;
  font-weight: 900;
  padding: 9px 12px;
}

.mini-btn.green {
  color: #06120e;
  background: var(--green);
}

.mini-btn.red {
  color: #fff;
  background: var(--red);
}

.grid {
  display: grid;
  gap: 12px;
}

.grid.two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.c2c-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(78px, auto));
  gap: 8px;
  justify-content: end;
}

.payment-selector {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.payment-line {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px;
  margin-top: 8px;
  color: var(--muted);
  font-size: 12px;
}

.payment-badge {
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(0, 211, 149, 0.3);
  border-radius: 999px;
  color: var(--green);
  background: rgba(0, 211, 149, 0.075);
  font-weight: 950;
  padding: 6px 9px;
}

.section {
  display: grid;
  gap: 14px;
}

.section-title {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 14px;
  padding: 2px 2px 0;
}

.section-title p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.balance-card {
  position: relative;
  overflow: hidden;
  padding: 22px;
}

.balance-card::after {
  position: absolute;
  right: -48px;
  top: -72px;
  width: 180px;
  height: 180px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(0, 211, 149, 0.32), transparent 64%);
  content: "";
}

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

.asset-total {
  margin: 9px 0 8px;
  font-family: "DIN Condensed", "Avenir Next Condensed", sans-serif;
  font-size: clamp(42px, 14vw, 58px);
  font-weight: 900;
  line-height: 0.95;
  letter-spacing: -0.03em;
  overflow: hidden;
  text-overflow: ellipsis;
}

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

.asset-actions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 18px;
}

.quick-card {
  min-height: 74px;
  border-radius: 22px;
  background: var(--panel-2);
  padding: 14px;
}

.quick-card strong {
  display: block;
  margin-bottom: 5px;
}

.quick-card small {
  color: var(--muted);
}

.market-row,
.order-row,
.ad-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--panel);
  padding: 15px;
}

.symbol-name {
  font-size: 16px;
  font-weight: 950;
}

.symbol-meta {
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
}

.price {
  font-family: "DIN Condensed", "Avenir Next Condensed", sans-serif;
  font-size: 25px;
  font-weight: 900;
  text-align: right;
}

.row-actions {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  margin-top: 6px;
}

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

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

.tabbar {
  position: fixed;
  left: 50%;
  bottom: max(12px, env(safe-area-inset-bottom));
  z-index: 6;
  display: grid;
  width: min(calc(100% - 28px), 432px);
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 5px;
  transform: translateX(-50%);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 28px;
  background: rgba(18, 18, 18, 0.92);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.55);
  padding: 7px;
  backdrop-filter: blur(24px);
}

.tabbar button {
  display: grid;
  gap: 3px;
  place-items: center;
  border-radius: 22px;
  color: var(--muted);
  background: transparent;
  font-size: 11px;
  font-weight: 900;
  padding: 8px 4px;
}

.tabbar button.active {
  color: #06120e;
  background: var(--green);
}

.tab-icon {
  font-size: 18px;
  line-height: 1;
}

.sheet {
  display: grid;
  gap: 12px;
  padding: 16px;
}

.new-hero {
  position: relative;
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 12px;
  overflow: hidden;
  padding: 16px;
}

.new-hero::after {
  position: absolute;
  right: -46px;
  bottom: -64px;
  width: 190px;
  height: 190px;
  border-radius: 999px;
  background:
    radial-gradient(circle, rgba(0, 211, 149, 0.34), transparent 60%),
    radial-gradient(circle at 18% 24%, rgba(245, 200, 75, 0.2), transparent 48%);
  content: "";
}

.new-hero h1 {
  position: relative;
  z-index: 1;
  margin: 10px 0 7px;
  font-family: "DIN Condensed", "Avenir Next Condensed", sans-serif;
  font-size: clamp(42px, 13vw, 54px);
  line-height: 0.85;
  letter-spacing: -0.04em;
}

.new-hero p {
  position: relative;
  z-index: 1;
  max-width: 320px;
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55;
}

.filter-block {
  display: grid;
  gap: 9px;
}

.pill-scroll {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 1px 2px 4px;
  scrollbar-width: none;
}

.pill-scroll::-webkit-scrollbar {
  display: none;
}

.pill {
  flex: 0 0 auto;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.035);
  font-size: 13px;
  font-weight: 950;
  padding: 10px 15px;
}

.pill-scroll.compact .pill {
  font-size: 12px;
  padding: 8px 12px;
}

.pill.active {
  color: #06120e;
  border-color: transparent;
  background: var(--green);
}

.source-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.source-strip span {
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  color: #9098a3;
  background: rgba(255, 255, 255, 0.035);
  font-size: 11px;
  font-weight: 850;
  padding: 7px 10px;
}

.new-token-list,
.new-token-preview {
  display: grid;
  gap: 12px;
}

.new-token-preview {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.home-new-panel {
  display: grid;
  gap: 8px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 22px;
  background:
    radial-gradient(circle at 8% 0%, rgba(0, 211, 149, 0.16), transparent 42%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.02)),
    #0f1012;
  padding: 12px;
}

.home-new-leader,
.home-new-line {
  width: 100%;
  color: var(--text);
  text-align: left;
}

.home-new-leader {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  border-radius: 18px;
  background: rgba(0, 211, 149, 0.075);
  padding: 14px;
}

.home-new-left,
.home-new-line div:first-child {
  min-width: 0;
}

.home-new-left strong {
  display: block;
  margin-top: 4px;
  font-size: 25px;
  font-weight: 950;
  letter-spacing: -0.02em;
}

.home-new-left small,
.home-new-line small {
  display: block;
  overflow: hidden;
  margin-top: 5px;
  color: #7f858e;
  font-size: 11px;
  font-weight: 750;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.home-new-right,
.home-new-line div:last-child {
  display: grid;
  justify-items: end;
  gap: 5px;
}

.home-new-right span,
.home-new-line span {
  font-family: "DIN Condensed", "Avenir Next Condensed", sans-serif;
  font-size: 23px;
  font-weight: 900;
  line-height: 1;
}

.home-new-right b,
.home-new-line b {
  border: 1px solid rgba(0, 211, 149, 0.3);
  border-radius: 999px;
  color: var(--green);
  background: rgba(0, 211, 149, 0.075);
  font-size: 11px;
  font-weight: 950;
  padding: 5px 8px;
}

.home-new-right b.red,
.home-new-line b.red {
  border-color: rgba(255, 77, 97, 0.3);
  color: var(--red);
  background: rgba(255, 77, 97, 0.075);
}

.home-new-list {
  display: grid;
  gap: 2px;
}

.home-new-line {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  border-radius: 14px;
  background: transparent;
  padding: 9px 10px;
}

.home-new-line + .home-new-line {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.home-new-line strong {
  font-size: 15px;
  font-weight: 950;
}

.home-new-line span {
  font-size: 18px;
}

.mini-token-card {
  display: grid;
  gap: 7px;
  overflow: hidden;
  min-height: 112px;
  border: 1px solid var(--line);
  border-radius: 22px;
  color: var(--text);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.025));
  padding: 12px;
  text-align: left;
}

.mini-token-card span {
  font-size: 12px;
  font-weight: 950;
}

.mini-token-card strong {
  font-family: "DIN Condensed", "Avenir Next Condensed", sans-serif;
  font-size: 23px;
  line-height: 1;
}

.mini-token-card strong.green {
  color: var(--green);
}

.mini-token-card strong.red {
  color: var(--red);
}

.new-token-card {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 12px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 28px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.075), rgba(255, 255, 255, 0.025)),
    var(--panel);
  padding: 14px;
}

.token-rank {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 13px;
  color: var(--green);
  background: rgba(0, 211, 149, 0.09);
  font-family: "DIN Condensed", "Avenir Next Condensed", sans-serif;
  font-size: 18px;
  font-weight: 950;
}

.token-main {
  display: flex;
  align-items: center;
  min-width: 0;
  gap: 10px;
}

.token-logo {
  flex: 0 0 auto;
  width: 42px;
  height: 42px;
  border-radius: 16px;
  object-fit: cover;
  background: var(--panel-3);
}

.token-logo.fallback {
  display: grid;
  place-items: center;
  color: #06120e;
  background: linear-gradient(135deg, var(--green), #f5c84b);
  font-size: 13px;
  font-weight: 950;
}

.token-price {
  display: grid;
  justify-items: end;
  gap: 5px;
}

.token-chart {
  grid-column: 1 / -1;
  width: 100%;
  height: 58px;
}

.mini-chart {
  width: 100%;
  height: 36px;
}

.spark-line {
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 3;
}

.spark-area {
  fill: currentColor;
  opacity: 0.08;
}

.green.token-chart,
.green.mini-chart {
  color: var(--green);
}

.red.token-chart,
.red.mini-chart {
  color: var(--red);
}

.token-metrics {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.token-metrics span {
  border-radius: 16px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.035);
  font-size: 11px;
  padding: 10px;
}

.token-metrics b {
  display: block;
  margin-top: 4px;
  color: var(--text);
  font-size: 13px;
}

.trade-token-btn {
  grid-column: 1 / -1;
  padding: 13px 14px;
}

.risk-text {
  color: var(--yellow);
}

.risk-text.low {
  color: var(--green);
}

.risk-text.high {
  color: var(--red);
}

.segmented {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
  border-radius: 18px;
  background: #080808;
  padding: 5px;
}

.segmented button {
  border-radius: 14px;
  color: var(--muted);
  background: transparent;
  font-size: 13px;
  font-weight: 900;
  padding: 11px;
}

.segmented button.active.buy {
  color: #06120e;
  background: var(--green);
}

.segmented button.active.sell {
  color: #fff;
  background: var(--red);
}

.form-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.book {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.book-side {
  display: grid;
  gap: 7px;
  border-radius: 18px;
  background: #0b0b0b;
  padding: 12px;
}

.book-level {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  color: var(--soft);
  font-family: "DIN Condensed", "Avenir Next Condensed", sans-serif;
  font-size: 18px;
}

.status-dot {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.status-dot::before {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: var(--green);
  content: "";
}

.empty {
  border: 1px dashed var(--line);
  border-radius: 22px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.025);
  padding: 18px;
  line-height: 1.6;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: calc(94px + env(safe-area-inset-bottom));
  z-index: 8;
  width: min(calc(100% - 28px), 420px);
  transform: translateX(-50%);
  border: 1px solid var(--line);
  border-radius: 18px;
  color: var(--text);
  background: rgba(16, 16, 16, 0.96);
  box-shadow: var(--shadow);
  padding: 13px 15px;
}

.toast.error {
  border-color: rgba(255, 77, 97, 0.35);
  color: #ffdbe0;
}

.loading-mask {
  position: fixed;
  inset: 0;
  z-index: 7;
  display: grid;
  place-items: center;
  background: rgba(0, 0, 0, 0.36);
  backdrop-filter: blur(7px);
}

.loader {
  width: 52px;
  height: 52px;
  border: 5px solid rgba(255, 255, 255, 0.12);
  border-top-color: var(--green);
  border-radius: 999px;
  animation: spin 900ms linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@media (min-width: 720px) {
  body {
    background:
      radial-gradient(circle at 28% 12%, rgba(0, 211, 149, 0.14), transparent 24%),
      radial-gradient(circle at 74% 2%, rgba(245, 200, 75, 0.08), transparent 20%),
      #050505;
  }

  .app-shell {
    border-left: 1px solid var(--line);
    border-right: 1px solid var(--line);
  }
}

/* Exchange-style skin: denser, calmer, and closer to a production trading app. */
:root {
  --bg: #050505;
  --panel: #111214;
  --panel-2: #17181b;
  --panel-3: #24262b;
  --line: rgba(255, 255, 255, 0.075);
  --text: #f4f4f5;
  --muted: #8f949d;
  --soft: #c9cdd4;
  --green: #00d68f;
  --red: #f04455;
  --shadow: 0 16px 34px rgba(0, 0, 0, 0.36);
  --radius-xl: 22px;
  --radius-lg: 18px;
  --radius-md: 14px;
}

body {
  background:
    linear-gradient(180deg, #07120e 0, #050505 238px),
    var(--bg);
  font-family: "Avenir Next", "PingFang SC", "Hiragino Sans GB", sans-serif;
}

html.webview-shell,
html.webview-shell body {
  background:
    radial-gradient(circle at 18% 2%, rgba(0, 214, 143, 0.16), transparent 30%),
    linear-gradient(180deg, #07120e 0, #050505 330px),
    var(--bg);
}

.app-shell {
  width: min(100%, 430px);
  padding: 54px 12px 126px;
}

.webview-shell .app-shell {
  min-height: calc(100vh + 64px);
  transform: translateY(-64px);
}

.webview-shell .exchange-topbar {
  display: none;
}

.exchange-topbar {
  position: sticky;
  top: 0;
  z-index: 5;
  margin: 0 -12px 4px;
  padding: 8px 12px 10px;
  background: linear-gradient(180deg, rgba(7, 18, 14, 0.98), rgba(7, 18, 14, 0.74));
  backdrop-filter: blur(18px);
}

.brand-mark {
  width: 32px;
  height: 32px;
  border-radius: 9px;
  font-size: 20px;
}

.brand-title {
  font-size: 22px;
  line-height: 1;
}

.brand-subtitle {
  max-width: 210px;
  overflow: hidden;
  color: #a2a7af;
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 7px;
}

.market-status {
  border: 1px solid rgba(0, 214, 143, 0.2);
  border-radius: 999px;
  color: var(--green);
  background: rgba(0, 214, 143, 0.08);
  font-size: 10px;
  font-weight: 800;
  padding: 6px 8px;
}

.icon-chip {
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--soft);
  background: rgba(255, 255, 255, 0.045);
  font-size: 11px;
  font-weight: 800;
  padding: 6px 8px;
}

.section {
  gap: 10px;
}

.card,
.sheet,
.auth-card {
  border-radius: var(--radius-xl);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.018)), var(--panel);
  box-shadow: none;
}

.balance-card {
  padding: 16px;
}

.balance-card::after {
  right: -62px;
  top: -84px;
  opacity: 0.62;
}

.eyebrow {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.asset-unit {
  margin-top: 3px;
  color: #646a73;
  font-size: 11px;
  font-weight: 800;
}

.asset-total {
  margin: 12px 0 5px;
  font-size: clamp(38px, 12vw, 48px);
  letter-spacing: -0.04em;
}

.asset-subline {
  color: var(--muted);
  font-size: 13px;
}

.asset-actions {
  margin-top: 14px;
  gap: 8px;
}

.primary-btn,
.secondary-btn,
.ghost-btn,
.danger-btn {
  border-radius: 12px;
  font-size: 14px;
  padding: 13px 14px;
}

.secondary-btn {
  background: #222429;
}

.quick-card {
  min-height: 64px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #101113;
  padding: 12px;
}

.quick-card strong {
  font-size: 15px;
}

.quick-card small {
  font-size: 12px;
}

.section-title {
  padding: 8px 2px 0;
}

.section-title h2,
.auth-card h2 {
  font-size: 18px;
}

.section-title p {
  font-size: 12px;
}

.market-row,
.order-row,
.ad-row {
  border-radius: 16px;
  background: #0f1012;
  padding: 12px;
}

.symbol-name {
  font-size: 15px;
  font-weight: 850;
}

.symbol-meta {
  color: #7f858e;
  font-size: 11px;
}

.price {
  font-size: 22px;
}

.tabbar {
  width: min(calc(100% - 24px), 408px);
  gap: 0;
  border-radius: 22px;
  background: rgba(15, 16, 18, 0.94);
  padding: 5px;
}

.tabbar button {
  border-radius: 17px;
  font-size: 10px;
  padding: 7px 2px;
}

.tabbar button.active {
  color: var(--green);
  background: rgba(0, 214, 143, 0.13);
}

.tab-icon {
  font-size: 16px;
}

.page-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 4px 2px 2px;
}

.page-head h1 {
  margin: 0;
  font-size: 24px;
  letter-spacing: -0.02em;
}

.page-head p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 12px;
}

.compact-filters {
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.025);
  padding: 9px;
}

.pill-scroll {
  gap: 6px;
  padding-bottom: 1px;
}

.pill {
  border-radius: 999px;
  font-size: 12px;
  padding: 8px 12px;
}

.primary-tabs .pill {
  min-width: 64px;
  color: var(--soft);
  border-color: transparent;
  background: transparent;
}

.pill.active,
.primary-tabs .pill.active {
  color: #06120e;
  background: var(--green);
}

.list-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  color: #6f7681;
  font-size: 11px;
  font-weight: 800;
  padding: 2px 4px 0;
}

.interaction-tip,
.trade-guide {
  border: 1px solid rgba(0, 211, 149, 0.14);
  border-radius: 14px;
  color: #a8b4b0;
  background: rgba(0, 211, 149, 0.055);
  font-size: 11px;
  font-weight: 750;
  line-height: 1.5;
  padding: 9px 11px;
}

.trade-mode-tabs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.03);
  padding: 5px;
}

.trade-mode-tabs button {
  border-radius: 14px;
  color: var(--soft);
  background: transparent;
  font-size: 13px;
  font-weight: 950;
  padding: 12px;
}

.trade-mode-tabs button.active {
  color: #06120e;
  background: var(--green);
}

.trade-estimate {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  border: 1px solid rgba(0, 211, 149, 0.15);
  border-radius: 14px;
  color: #a8b4b0;
  background: rgba(0, 211, 149, 0.055);
  font-size: 11px;
  font-weight: 800;
  line-height: 1.45;
  padding: 10px 11px;
}

.trade-estimate b {
  color: var(--green);
  white-space: nowrap;
}

.trade-estimate.warning {
  border-color: rgba(255, 77, 97, 0.24);
  color: #ffb5bd;
  background: rgba(255, 77, 97, 0.08);
}

.trade-estimate.warning b {
  color: var(--red);
}

.sim-quote-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 18px;
  background:
    radial-gradient(circle at 10% 0%, rgba(0, 211, 149, 0.14), transparent 42%),
    #0d0f10;
  padding: 13px;
}

.contract-quote-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 18px;
  background:
    radial-gradient(circle at 0% 0%, rgba(0, 211, 149, 0.14), transparent 45%),
    #0d0f10;
  padding: 12px;
}

.contract-quote-card strong {
  display: block;
  margin-top: 2px;
  font-family: "DIN Condensed", "Avenir Next Condensed", sans-serif;
  font-size: 30px;
  line-height: 1;
}

.contract-quote-card small {
  display: block;
  overflow: hidden;
  margin-top: 4px;
  color: #7f858e;
  font-size: 11px;
  font-weight: 750;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.contract-quote-side {
  display: grid;
  justify-items: end;
  gap: 6px;
}

.quote-main {
  min-width: 0;
}

.quote-label {
  display: block;
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.sim-quote-card strong {
  display: block;
  margin-top: 3px;
  font-family: "DIN Condensed", "Avenir Next Condensed", sans-serif;
  font-size: 31px;
  line-height: 1;
}

.sim-quote-card small {
  display: block;
  overflow: hidden;
  margin-top: 5px;
  color: #7f858e;
  font-size: 11px;
  font-weight: 750;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.quote-side {
  display: grid;
  justify-items: end;
  gap: 7px;
}

.amount-block,
.amount-input-card {
  display: grid;
  gap: 9px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.018)),
    #0b0c0d;
  padding: 11px;
}

.amount-block-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
}

.amount-block-head span,
.amount-input-card b {
  color: var(--text);
  font-size: 12px;
  font-weight: 950;
}

.amount-block-head small,
.amount-input-card small {
  color: #7f858e;
  font-size: 10px;
  font-weight: 800;
  line-height: 1.35;
}

.amount-input-card > span {
  display: grid;
  gap: 3px;
}

.amount-input-row {
  display: flex;
  align-items: center;
  overflow: hidden;
  border: 1px solid rgba(0, 211, 149, 0.16);
  border-radius: 15px;
  background: #050606;
  padding-right: 13px;
}

.amount-input-row input {
  border: 0;
  border-radius: 0;
  background: transparent;
  font-family: "DIN Condensed", "Avenir Next Condensed", sans-serif;
  font-size: 24px;
  font-weight: 950;
  letter-spacing: 0.02em;
  padding: 14px 13px;
}

.amount-input-row em {
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
  font-weight: 950;
  white-space: nowrap;
}

.quick-amounts {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 7px;
}

.amount-block .quick-amounts {
  grid-template-columns: repeat(auto-fit, minmax(58px, 1fr));
}

.quick-amounts button {
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--soft);
  background: rgba(255, 255, 255, 0.035);
  font-size: 12px;
  font-weight: 950;
  padding: 10px 6px;
}

.quick-amounts button.active {
  color: #06120e;
  border-color: transparent;
  background: var(--green);
}

.leverage-amounts button.active {
  color: var(--green);
  border-color: rgba(0, 211, 149, 0.38);
  background: rgba(0, 211, 149, 0.12);
}

.contract-summary {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  border: 1px solid rgba(0, 211, 149, 0.16);
  border-radius: 16px;
  background: rgba(0, 211, 149, 0.055);
  padding: 11px;
}

.contract-summary div {
  min-width: 0;
}

.contract-summary span,
.contract-metrics span {
  display: block;
  color: #7f858e;
  font-size: 10px;
  font-weight: 850;
}

.contract-summary strong,
.contract-metrics b {
  display: block;
  overflow: hidden;
  margin-top: 3px;
  color: var(--text);
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.contract-summary.warning {
  border-color: rgba(255, 77, 97, 0.26);
  background: rgba(255, 77, 97, 0.08);
}

.contract-summary p {
  grid-column: 1 / -1;
  margin: 2px 0 0;
  color: var(--red);
  font-size: 11px;
  font-weight: 800;
}

.contract-position-row {
  display: grid;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #0f1012;
  padding: 12px;
}

.contract-position-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.contract-position-head > div {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.contract-position-head strong {
  overflow: hidden;
  font-size: 16px;
  font-weight: 950;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.contract-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.pnl-chart-card {
  display: grid;
  gap: 8px;
  margin-top: 10px;
  margin-bottom: 10px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  background:
    radial-gradient(circle at 12% 0%, rgba(0, 211, 149, 0.11), transparent 40%),
    #0b0d0e;
  padding: 11px;
}

.pnl-chart-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  color: #7f858e;
  font-size: 11px;
  font-weight: 850;
}

.pnl-chart-head b.green {
  color: var(--green);
}

.pnl-chart-head b.red {
  color: var(--red);
}

.pnl-chart {
  width: 100%;
  height: 74px;
}

.pnl-empty {
  display: grid;
  min-height: 58px;
  place-items: center;
  color: #7f858e;
  font-size: 11px;
  font-weight: 800;
}

.contract-pnl {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 13px;
  font-weight: 900;
}

.contract-pnl.green {
  color: var(--green);
}

.contract-pnl.red {
  color: var(--red);
}

.dense-list {
  gap: 7px;
}

.new-token-card {
  width: 100%;
  grid-template-columns: 30px 36px minmax(0, 1fr) minmax(92px, auto);
  align-items: center;
  gap: 9px;
  min-height: 66px;
  border-radius: 15px;
  text-align: left;
  background:
    linear-gradient(90deg, rgba(0, 211, 149, 0.055), transparent 32%),
    #0d0f10;
  padding: 9px;
}

.new-token-card:active {
  transform: scale(0.99);
}

.token-rank {
  width: 28px;
  height: 28px;
  border-radius: 10px;
  font-size: 13px;
}

.token-logo {
  width: 36px;
  height: 36px;
  border-radius: 13px;
}

.token-logo.fallback {
  font-size: 11px;
}

.token-copy {
  min-width: 0;
}

.token-main .symbol-name,
.token-main .symbol-meta,
.token-subline {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.token-subline {
  margin-top: 2px;
  color: #687079;
  font-size: 10px;
  font-weight: 750;
}

.token-price {
  display: grid;
  grid-template-columns: auto auto;
  justify-content: end;
  min-width: 0;
  gap: 5px;
}

.token-price .price {
  grid-column: 1 / -1;
  justify-self: end;
  font-size: 15px;
  line-height: 1;
  letter-spacing: -0.01em;
}

.chip {
  font-size: 11px;
  padding: 6px 8px;
}

.token-chart {
  grid-column: auto;
  width: 70px;
  height: 28px;
  margin-top: 0;
  opacity: 0.9;
}

.spark-line {
  stroke-width: 2.5;
}

.token-metrics {
  grid-column: auto;
  display: flex;
  flex-wrap: wrap;
  gap: 4px 8px;
  margin-top: 4px;
  overflow: hidden;
}

.token-metrics span {
  border-radius: 0;
  color: #6f7681;
  font-size: 9.5px;
  background: transparent;
  padding: 0;
  white-space: nowrap;
}

.token-metrics b {
  display: inline;
  margin-top: 0;
  margin-left: 3px;
  color: #b9bec5;
  font-size: 9.5px;
}

.trade-token-btn {
  position: static;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: auto;
  border-radius: 999px;
  color: #06120e;
  background: var(--green);
  font-size: 11px;
  font-weight: 900;
  padding: 5px 9px;
}

.mini-token-card {
  min-height: 88px;
  border-radius: 16px;
  background: #0f1012;
  padding: 10px;
}

.mini-token-card strong {
  font-size: 18px;
}

.mini-chart {
  height: 28px;
}

.sheet {
  border-radius: 18px;
  padding: 13px;
}

.segmented {
  border-radius: 14px;
  padding: 4px;
}

.segmented button {
  border-radius: 11px;
  padding: 10px;
}

input,
select,
textarea {
  border-radius: 12px;
  background: #08090a;
  padding: 12px 13px;
}

.toast {
  bottom: calc(82px + env(safe-area-inset-bottom));
  border-radius: 14px;
  font-size: 13px;
}

@media (max-width: 390px) {
  .new-token-card {
    grid-template-columns: 28px 34px minmax(0, 1fr) minmax(86px, auto);
  }
}
