/* ============================================================
   PandaHome — dark editorial + mint accent design system
   ============================================================ */

.trade-home {
  --acc: #2ee6a8;
  --acc-2: #7b8cff;
  --tint: 46, 230, 168;
  --line: rgba(255, 255, 255, 0.09);
  --line-strong: rgba(255, 255, 255, 0.16);
  --surf-hi: rgba(255, 255, 255, 0.06);
  --surf-lo: rgba(255, 255, 255, 0.015);
  --ink-2: rgba(255, 255, 255, 0.62);
  --ink-3: rgba(255, 255, 255, 0.42);

  min-height: 100vh;
  color: #fff;
  font-family: Alibaba_PuHuiTi_Regular, "PingFang SC", "Microsoft YaHei", sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
  background:
    radial-gradient(1200px 620px at 88% -6%, rgba(123, 140, 255, 0.12), transparent 68%),
    radial-gradient(980px 540px at -8% 34%, rgba(46, 230, 168, 0.07), transparent 66%),
    radial-gradient(900px 500px at 60% 78%, rgba(123, 140, 255, 0.06), transparent 70%),
    #050607;
}

.trade-home a {
  color: inherit;
  text-decoration: none;
}

/* ---------------- nav (kept for compatibility) ---------------- */

.trade-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 40;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 28px;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
}

.trade-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 120px;
}

.trade-brand img {
  height: 28px;
  width: auto;
  display: block;
}

.trade-brand span {
  font-family: Dream, Alibaba_PuHuiTi_Bold, sans-serif;
  font-size: 20px;
  letter-spacing: 0.4px;
}

.trade-menu {
  display: flex;
  align-items: center;
  gap: 28px;
  font-size: 15px;
  color: rgba(255, 255, 255, 0.86);
}

.trade-menu a:hover {
  color: #fff;
}

.trade-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.trade-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 40px;
  padding: 0 18px;
  border-radius: 999px;
  border: 1px solid transparent;
  background: transparent;
  color: #fff;
  font-size: 14px;
  cursor: pointer;
  transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease, transform 0.25s ease;
}

.trade-btn-ghost {
  color: rgba(255, 255, 255, 0.86);
}

.trade-btn-ghost:hover {
  color: #fff;
}

.trade-btn-cta {
  background: linear-gradient(180deg, #fff, #e9edf0);
  color: #041014;
  font-weight: 600;
  border-color: rgba(255, 255, 255, 0.9);
  box-shadow: 0 10px 30px -14px rgba(46, 230, 168, 0.55);
}

.trade-btn-cta:hover {
  background: #fff;
  transform: translateY(-1px);
  box-shadow: 0 16px 36px -16px rgba(46, 230, 168, 0.7);
}

.trade-burger {
  display: none;
  width: 40px;
  height: 40px;
  border: 0;
  background: transparent;
  color: #fff;
  font-size: 22px;
  cursor: pointer;
}

.trade-drawer {
  display: none;
}

/* ---------------- hero ---------------- */

.trade-hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: flex-end;
  padding: 120px 7vw 72px;
  overflow: hidden;
  background: #000;
}

.trade-hero::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 180px;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(180deg, transparent, rgba(5, 6, 7, 0.86));
}

.trade-hero .hero-bg,
.trade-hero .scanning-hero,
.trade-hero .scanning-canvas,
.trade-hero .scanning-fallback {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
  object-fit: cover;
  object-position: right center;
  user-select: none;
}

.trade-hero .scanning-canvas {
  opacity: 0;
  transition: opacity 0.6s ease;
}

.trade-hero .scanning-canvas.ready {
  opacity: 1;
}

.trade-hero-copy {
  position: relative;
  z-index: 2;
  max-width: 760px;
}

.trade-kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 18px;
  padding: 7px 14px 7px 10px;
  border-radius: 999px;
  border: 1px solid rgba(46, 230, 168, 0.28);
  background: rgba(46, 230, 168, 0.08);
  color: rgba(214, 255, 240, 0.9);
  letter-spacing: 0.16em;
  font-size: 11px;
  text-transform: uppercase;
  backdrop-filter: blur(8px);
}

.trade-kicker::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--acc);
  box-shadow: 0 0 0 4px rgba(46, 230, 168, 0.16), 0 0 14px rgba(46, 230, 168, 0.9);
  animation: tradePulse 2.4s ease-in-out infinite;
}

.trade-hero h1 {
  margin: 0;
  font-family: Alibaba_PuHuiTi_Bold, "PingFang SC", sans-serif;
  font-size: clamp(40px, 5.2vw, 76px);
  line-height: 1.04;
  font-weight: 700;
  letter-spacing: -0.035em;
  text-wrap: balance;
}

.trade-hero h1 em {
  font-style: normal;
  background: linear-gradient(96deg, #fff 12%, #a9f5d9 52%, #9aa8ff 96%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.trade-lead {
  max-width: 560px;
  margin: 22px 0 0;
  color: var(--ink-2);
  font-size: 18px;
  line-height: 1.7;
}

.trade-hero-actions {
  display: flex;
  gap: 12px;
  margin-top: 32px;
}

.trade-hero-actions .trade-btn {
  height: 48px;
  padding: 0 22px;
  font-size: 15px;
}

.trade-hero-actions .trade-btn-ghost {
  border-color: rgba(255, 255, 255, 0.24);
  background: rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(6px);
}

.trade-hero-actions .trade-btn-ghost:hover {
  border-color: rgba(255, 255, 255, 0.45);
  background: rgba(255, 255, 255, 0.09);
}

.trade-stats {
  display: flex;
  gap: 0;
  margin-top: 56px;
}

.trade-stats > div {
  padding: 0 28px;
  border-left: 1px solid rgba(255, 255, 255, 0.12);
}

.trade-stats > div:first-child {
  padding-left: 0;
  border-left: 0;
}

.trade-stats strong {
  display: block;
  font-size: 30px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  background: linear-gradient(180deg, #fff, rgba(255, 255, 255, 0.66));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.trade-stats span {
  color: var(--ink-3);
  font-size: 13px;
  letter-spacing: 0.02em;
}

/* ---------------- sections & headings ---------------- */

.trade-section {
  padding: 28px 7vw 8px;
}

.trade-block {
  padding: 72px 7vw 24px;
}

.trade-block h2 {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 0 0 10px;
  font-size: clamp(26px, 2.6vw, 38px);
  font-weight: 600;
  letter-spacing: -0.03em;
}

.trade-block h2::before {
  content: "";
  flex: 0 0 auto;
  width: 26px;
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--acc), rgba(46, 230, 168, 0));
  box-shadow: 0 0 16px rgba(46, 230, 168, 0.5);
}

.trade-block .sub {
  margin: 0 0 26px;
  max-width: 620px;
  color: var(--ink-3);
  line-height: 1.7;
}

/* ---------------- shortcut tiles ---------------- */

.trade-shortcuts {
  display: grid;
  grid-template-columns: repeat(8, minmax(0, 1fr));
  gap: 12px;
}

.trade-short {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 18px;
  min-height: 116px;
  padding: 18px 16px;
  border-radius: 20px;
  border: 1px solid var(--line);
  background:
    linear-gradient(160deg, var(--surf-hi), var(--surf-lo)),
    rgba(8, 10, 11, 0.6);
  color: #fff;
  cursor: pointer;
  text-align: left;
  overflow: hidden;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.3s ease,
    box-shadow 0.3s ease, background 0.3s ease;
}

/* per-kind accent tint */
.trade-short[data-kind="deposit"] { --tint: 46, 230, 168; }
.trade-short[data-kind="withdraw"] { --tint: 255, 176, 84; }
.trade-short[data-kind="c2c"] { --tint: 123, 140, 255; }
.trade-short[data-kind="copy"] { --tint: 96, 186, 255; }
.trade-short[data-kind="ai"] { --tint: 214, 130, 255; }
.trade-short[data-kind="portfolio"] { --tint: 70, 220, 220; }
.trade-short[data-kind="lend"] { --tint: 255, 138, 122; }
.trade-short[data-kind="buy"] { --tint: 190, 232, 90; }

.trade-short::before {
  content: "";
  position: absolute;
  inset: -40% -30% auto -30%;
  height: 120%;
  background: radial-gradient(60% 100% at 24% 0%, rgba(var(--tint), 0.22), transparent 62%);
  opacity: 0;
  transition: opacity 0.35s ease;
  pointer-events: none;
}

.trade-short::after {
  content: "";
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(var(--tint), 0.7), transparent);
  opacity: 0;
  transition: opacity 0.35s ease;
}

.trade-short:hover {
  transform: translateY(-5px);
  border-color: rgba(var(--tint), 0.45);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1), 0 22px 46px -28px rgba(var(--tint), 0.9);
}

.trade-short:hover::before,
.trade-short:hover::after {
  opacity: 1;
}

.trade-short > i {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 13px;
  border: 1px solid rgba(var(--tint), 0.28);
  background: rgba(var(--tint), 0.1);
  color: rgb(var(--tint));
  position: relative;
  z-index: 1;
  transition: background 0.3s ease, transform 0.3s ease;
}

.trade-short:hover > i {
  background: rgba(var(--tint), 0.18);
  transform: scale(1.06);
}

.trade-short > i svg {
  width: 19px;
  height: 19px;
  display: block;
}

.trade-short > span {
  position: relative;
  z-index: 1;
  margin-top: auto;
  font-size: 14px;
  letter-spacing: 0.01em;
  color: rgba(255, 255, 255, 0.92);
}

/* ---------------- market tabs ---------------- */

.trade-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
  overflow-x: auto;
  scrollbar-width: none;
}

.trade-tabs::-webkit-scrollbar {
  display: none;
}

.trade-tabs button {
  height: 38px;
  padding: 0 16px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
  color: rgba(255, 255, 255, 0.7);
  cursor: pointer;
  white-space: nowrap;
  transition: color 0.25s ease, background 0.25s ease, border-color 0.25s ease,
    box-shadow 0.25s ease;
}

.trade-tabs button:hover {
  color: #fff;
  border-color: var(--line-strong);
}

.trade-tabs button.on {
  background: linear-gradient(180deg, #fff, #e7ecef);
  color: #04100d;
  border-color: rgba(255, 255, 255, 0.9);
  font-weight: 600;
  box-shadow: 0 10px 26px -16px rgba(46, 230, 168, 0.8);
}

/* ---------------- quote panel & table ---------------- */

.trade-quote-panel {
  position: relative;
  padding: 4px 20px 8px;
  border-radius: 24px;
  border: 1px solid var(--line);
  overflow: hidden;
  background:
    radial-gradient(90% 120% at 0% 0%, rgba(46, 230, 168, 0.07), transparent 55%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.012)),
    rgba(7, 9, 10, 0.65);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.07), 0 30px 80px -60px rgba(0, 0, 0, 0.9);
  backdrop-filter: blur(10px);
}

.trade-quote-panel::before {
  content: "";
  position: absolute;
  top: 0;
  left: 8%;
  right: 8%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(46, 230, 168, 0.55), transparent);
}

.trade-table {
  width: 100%;
  border-collapse: collapse;
}

.trade-table th {
  text-align: left;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.38);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 16px 10px 12px;
  border-bottom: 1px solid var(--line);
}

.trade-table td {
  padding: 15px 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  font-size: 15px;
  font-variant-numeric: tabular-nums;
  transition: background 0.2s ease;
}

.trade-table tbody tr:last-child td {
  border-bottom: 0;
}

.trade-table tr {
  cursor: pointer;
}

.trade-table tbody tr {
  position: relative;
  transition: transform 0.2s ease;
}

.trade-table tbody tr:hover td {
  background: rgba(46, 230, 168, 0.045);
}

.trade-table tbody tr:hover td:first-child {
  box-shadow: inset 2px 0 0 var(--acc);
}

.trade-pair {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 500;
}

.trade-pair img {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: #16191a;
  object-fit: cover;
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.03);
}

.trade-pair small {
  color: var(--ink-3);
  font-weight: 400;
}

/* change pills */
.trade-home .up,
.trade-home .down {
  display: inline-flex;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.trade-home .up {
  color: #46e6a4;
  background: rgba(61, 214, 140, 0.12);
  border: 1px solid rgba(61, 214, 140, 0.22);
}

.trade-home .down {
  color: #ff7575;
  background: rgba(255, 93, 93, 0.12);
  border: 1px solid rgba(255, 93, 93, 0.22);
}

/* ---------------- product cards ---------------- */

.trade-cards {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.trade-card {
  --tint: 46, 230, 168;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-height: 214px;
  padding: 24px;
  border-radius: 24px;
  border: 1px solid var(--line);
  background:
    radial-gradient(120% 90% at 100% 0%, rgba(var(--tint), 0.1), transparent 58%),
    linear-gradient(160deg, var(--surf-hi), var(--surf-lo)),
    rgba(8, 10, 11, 0.6);
  color: #fff;
  cursor: pointer;
  text-align: left;
  overflow: hidden;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.3s ease,
    box-shadow 0.35s ease;
}

.trade-card:nth-child(1) { --tint: 46, 230, 168; }
.trade-card:nth-child(2) { --tint: 123, 140, 255; }
.trade-card:nth-child(3) { --tint: 255, 176, 84; }
.trade-card:nth-child(4) { --tint: 96, 186, 255; }

.trade-card:hover {
  transform: translateY(-6px);
  border-color: rgba(var(--tint), 0.42);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1), 0 30px 60px -34px rgba(var(--tint), 0.8);
}

.trade-card-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  margin-bottom: 22px;
  border-radius: 15px;
  border: 1px solid rgba(var(--tint), 0.3);
  background: rgba(var(--tint), 0.11);
  color: rgb(var(--tint));
  transition: transform 0.35s ease, background 0.35s ease;
}

.trade-card-icon svg {
  width: 22px;
  height: 22px;
  display: block;
}

.trade-card:hover .trade-card-icon {
  transform: translateY(-2px) scale(1.05);
  background: rgba(var(--tint), 0.18);
}

.trade-card b {
  display: block;
  margin-bottom: 10px;
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.01em;
  position: relative;
  z-index: 1;
}

.trade-card-desc {
  position: relative;
  z-index: 1;
  color: var(--ink-3);
  line-height: 1.65;
  font-size: 14px;
  max-width: 92%;
}

.trade-card-mark {
  position: absolute;
  right: 14px;
  bottom: -12px;
  font-size: 58px;
  font-style: normal;
  font-weight: 700;
  letter-spacing: -0.05em;
  color: rgba(255, 255, 255, 0.035);
  pointer-events: none;
  white-space: nowrap;
  transition: color 0.35s ease, transform 0.35s ease;
}

.trade-card:hover .trade-card-mark {
  color: rgba(var(--tint), 0.1);
  transform: translateY(-3px);
}

.trade-card-go {
  position: absolute;
  right: 22px;
  top: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  color: rgba(var(--tint), 0.9);
  opacity: 0;
  transform: translate(-6px, 6px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.trade-card-go svg {
  width: 16px;
  height: 16px;
  display: block;
}

.trade-card:hover .trade-card-go {
  opacity: 1;
  transform: translate(0, 0);
}

/* ---------------- why cards ---------------- */

.trade-why {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.trade-why-card {
  position: relative;
  min-height: 176px;
  padding: 26px 24px;
  border-radius: 24px;
  border: 1px solid var(--line);
  background:
    linear-gradient(160deg, var(--surf-hi), var(--surf-lo)),
    rgba(8, 10, 11, 0.55);
  color: #fff;
  text-align: left;
  cursor: pointer;
  overflow: hidden;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.3s ease,
    background 0.3s ease, box-shadow 0.35s ease;
}

.trade-why-card::before {
  content: "";
  position: absolute;
  left: 24px;
  top: 24px;
  width: 22px;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--acc), transparent);
}

.trade-why-card:hover {
  transform: translateY(-5px);
  border-color: rgba(46, 230, 168, 0.38);
  background:
    radial-gradient(90% 120% at 0% 0%, rgba(46, 230, 168, 0.09), transparent 60%),
    linear-gradient(160deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.018)),
    rgba(8, 10, 11, 0.55);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1), 0 26px 56px -34px rgba(46, 230, 168, 0.7);
}

.trade-why-index {
  position: absolute;
  right: 20px;
  top: 10px;
  font-size: 62px;
  font-style: normal;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.06em;
  color: rgba(255, 255, 255, 0.045);
  transition: color 0.35s ease;
  pointer-events: none;
}

.trade-why-card:hover .trade-why-index {
  color: rgba(46, 230, 168, 0.14);
}

.trade-why-card b {
  display: block;
  margin: 34px 0 10px;
  font-size: 20px;
  font-weight: 600;
  position: relative;
  z-index: 1;
}

.trade-why-card span {
  color: var(--ink-3);
  font-size: 14px;
  line-height: 1.65;
  position: relative;
  z-index: 1;
  display: block;
  max-width: 92%;
}

/* ---------------- steps ---------------- */

.trade-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  position: relative;
}

.trade-steps button {
  position: relative;
  min-height: 176px;
  padding: 24px;
  border-radius: 24px;
  border: 1px solid var(--line);
  background:
    linear-gradient(160deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.01)),
    rgba(8, 10, 11, 0.5);
  color: #fff;
  text-align: left;
  cursor: pointer;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.3s ease,
    box-shadow 0.35s ease;
}

.trade-steps button:hover {
  transform: translateY(-5px);
  border-color: rgba(123, 140, 255, 0.4);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1), 0 26px 56px -34px rgba(123, 140, 255, 0.8);
}

.trade-steps button::after {
  content: "";
  position: absolute;
  top: 42px;
  right: -14px;
  width: 14px;
  height: 1px;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.22), transparent);
}

.trade-steps button:last-child::after {
  display: none;
}

.trade-steps em {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 12px;
  border: 1px solid rgba(123, 140, 255, 0.32);
  background: rgba(123, 140, 255, 0.12);
  color: #c3cbff;
  font-style: normal;
  font-size: 14px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  box-shadow: 0 0 0 4px rgba(123, 140, 255, 0.05);
}

.trade-steps b {
  display: block;
  margin: 18px 0 8px;
  font-size: 19px;
  font-weight: 600;
}

.trade-steps span {
  color: var(--ink-3);
  font-size: 14px;
  line-height: 1.65;
  display: block;
  max-width: 92%;
}

/* ---------------- announcements ---------------- */

.trade-news {
  display: flex;
  flex-direction: column;
  border-radius: 20px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.008));
  overflow: hidden;
}

.trade-news button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: 100%;
  padding: 18px 22px;
  border: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  background: transparent;
  color: rgba(255, 255, 255, 0.9);
  text-align: left;
  cursor: pointer;
  font-size: 15px;
  position: relative;
  transition: background 0.25s ease, color 0.25s ease, padding-left 0.3s ease;
}

.trade-news button:last-child {
  border-bottom: 0;
}

.trade-news button::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 2px;
  height: 0;
  background: var(--acc);
  box-shadow: 0 0 10px rgba(46, 230, 168, 0.8);
  transition: height 0.25s ease;
}

.trade-news button:hover {
  background: rgba(46, 230, 168, 0.04);
  color: #fff;
}

.trade-news button:hover::before {
  height: 60%;
}

.trade-news button span {
  flex: 0 0 auto;
  padding: 3px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
  color: var(--ink-3);
  font-size: 12px;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

/* ---------------- closing CTA ---------------- */

.trade-close {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin: 40px 7vw 0;
  padding: 44px;
  border-radius: 30px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  overflow: hidden;
  background:
    radial-gradient(120% 180% at 100% 0%, rgba(46, 230, 168, 0.16), transparent 56%),
    radial-gradient(90% 160% at 0% 100%, rgba(123, 140, 255, 0.16), transparent 62%),
    linear-gradient(160deg, #101413, #080a0b);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.09), 0 40px 90px -70px rgba(46, 230, 168, 0.9);
}

.trade-close::before {
  content: "";
  position: absolute;
  right: 8%;
  top: -55%;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: inset 0 0 90px rgba(46, 230, 168, 0.14);
  pointer-events: none;
}

.trade-close::after {
  content: "";
  position: absolute;
  right: 20%;
  top: -20%;
  width: 140px;
  height: 140px;
  border-radius: 50%;
  border: 1px dashed rgba(255, 255, 255, 0.1);
  pointer-events: none;
}

.trade-close > * {
  position: relative;
  z-index: 1;
}

.trade-close h2 {
  margin: 0 0 10px;
  font-size: clamp(24px, 2.4vw, 34px);
  font-weight: 600;
  letter-spacing: -0.02em;
}

.trade-close p {
  margin: 0;
  color: var(--ink-3);
  line-height: 1.6;
}

/* ---------------- footer ---------------- */

.trade-foot {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin-top: 64px;
  padding: 30px 7vw 44px;
  border-top: 1px solid var(--line);
  color: rgba(255, 255, 255, 0.42);
  font-size: 13px;
}

.trade-foot nav {
  display: flex;
  gap: 22px;
}

.trade-foot a {
  transition: color 0.2s ease;
}

.trade-foot a:hover {
  color: #fff;
}

/* ---------------- motion ---------------- */

.trade-rise {
  display: inline-block;
  animation: tradeHeroRise 0.85s cubic-bezier(0.16, 1, 0.3, 1) both;
  animation-delay: calc(var(--hero-base, 0.22s) + var(--i, 0) * 0.12s);
}

.trade-lead.trade-rise,
.trade-hero-actions.trade-rise,
.trade-stats.trade-rise {
  display: flex;
}

.trade-lead.trade-rise {
  display: block;
}

.trade-kicker.trade-rise {
  display: flex;
  width: fit-content;
}

.trade-hero .trade-btn-cta {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

.trade-hero .trade-btn-cta::after {
  content: "";
  position: absolute;
  top: -10%;
  left: -45%;
  width: 46%;
  height: 120%;
  background: linear-gradient(
    105deg,
    transparent 0%,
    hsla(0, 0%, 100%, 0) 30%,
    hsla(0, 0%, 100%, 0.95) 50%,
    hsla(0, 0%, 100%, 0) 70%,
    transparent 100%
  );
  mix-blend-mode: overlay;
  transform: skewX(-18deg) translateX(0);
  pointer-events: none;
  z-index: 2;
  opacity: 0;
  animation: tradeShine 3.6s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}

/* scroll reveal (only when JS enables it) */
.trade-reveal .trade-block {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.trade-reveal .trade-block.is-in {
  opacity: 1;
  transform: none;
}

/* ---------------- keyframes ---------------- */

@keyframes tradePulse {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.45;
  }
}

@keyframes tradeHeroRise {
  0% {
    filter: blur(14px);
    opacity: 0;
    transform: translate3d(0, 72px, 0);
  }
  45% {
    filter: blur(0);
  }
  to {
    filter: blur(0);
    opacity: 1;
    transform: translateZ(0);
  }
}

@keyframes tradeShine {
  0% {
    opacity: 0;
    transform: skewX(-18deg) translateX(-30%);
  }
  12% {
    opacity: 1;
  }
  45% {
    opacity: 1;
    transform: skewX(-18deg) translateX(320%);
  }
  46%,
  100% {
    opacity: 0;
    transform: skewX(-18deg) translateX(320%);
  }
}

/* ---------------- responsive ---------------- */

@media (max-width: 1100px) {
  .trade-menu {
    display: none;
  }
  .trade-burger {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }
  .trade-drawer.open {
    display: flex;
    flex-direction: column;
    gap: 16px;
    position: fixed;
    z-index: 39;
    top: 72px;
    left: 0;
    right: 0;
    padding: 12px 24px 20px;
    background: #0a0a0a;
    border-bottom: 1px solid var(--line);
  }
  .trade-hero h1 {
    font-size: 46px;
  }
  .trade-hero .scanning-fallback,
  .trade-hero .hero-bg {
    object-position: 78% center;
  }
  .trade-shortcuts {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
  .trade-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .trade-why,
  .trade-steps {
    grid-template-columns: 1fr;
  }
  .trade-steps button::after {
    display: none;
  }
  .trade-stats {
    gap: 0;
    flex-wrap: wrap;
  }
  .trade-stats > div {
    padding: 0 20px;
  }
}

@media (max-width: 800px) {
  .trade-hero {
    padding: 108px 20px 48px;
    align-items: flex-end;
  }

  .trade-hero h1 {
    font-size: 40px;
  }

  .trade-lead {
    font-size: 15px;
  }

  .trade-hero-actions {
    flex-wrap: wrap;
  }

  .trade-stats > div {
    padding: 0 0 0 16px;
  }

  .trade-section,
  .trade-block,
  .trade-foot {
    padding-left: 20px;
    padding-right: 20px;
  }

  .trade-block {
    padding-top: 52px;
  }

  .trade-block h2 {
    font-size: 26px;
  }

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

  .trade-short {
    min-height: 108px;
  }

  .trade-quote-panel {
    padding: 2px 12px 6px;
    border-radius: 20px;
  }

  .trade-table {
    display: block;
    overflow-x: auto;
  }

  .trade-close {
    flex-direction: column;
    align-items: flex-start;
    margin-left: 20px;
    margin-right: 20px;
    padding: 26px;
    border-radius: 24px;
  }

  .trade-close h2 {
    font-size: 24px;
  }

  .trade-foot {
    flex-direction: column;
    align-items: flex-start;
  }

  .trade-foot nav {
    flex-wrap: wrap;
  }

  .trade-card {
    min-height: 190px;
    padding: 20px;
  }

  .trade-card-mark {
    font-size: 46px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .trade-rise,
  .trade-hero .trade-btn-cta::after,
  .trade-kicker::before {
    animation: none;
  }

  .trade-reveal .trade-block {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .trade-short,
  .trade-card,
  .trade-why-card,
  .trade-steps button {
    transition: none;
  }
}
