:root {
  color-scheme: dark;
  --ink: #fff8ea;
  --muted: #bdb4a6;
  --soft: rgba(255, 248, 234, 0.68);
  --line: rgba(255, 248, 234, 0.13);
  --panel: rgba(18, 22, 25, 0.86);
  --panel-2: #11171a;
  --gold: #f7c65c;
  --gold-2: #d99a26;
  --green: #27d68f;
  --red: #ff6b6b;
  --bg: #07090a;
  --cream: #f3ead8;
}

* {
  box-sizing: border-box;
}

body:not(.app-ready):not([data-page="legal"]) {
  opacity: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px) 0 0 / 72px 72px,
    radial-gradient(circle at 72% 10%, rgba(247, 198, 92, 0.17), transparent 30rem),
    radial-gradient(circle at 18% 42%, rgba(39, 214, 143, 0.08), transparent 26rem),
    linear-gradient(145deg, #07090a 0%, #11191c 50%, #1c1309 100%);
  color: var(--ink);
  transition: opacity 120ms ease;
  font-family:
    "Inter", "PingFang SC", "HarmonyOS Sans SC", "Microsoft YaHei UI", "Microsoft YaHei", ui-sans-serif, system-ui,
    -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  text-rendering: geometricPrecision;
}

a {
  color: inherit;
  text-decoration: none;
}

.topbar {
  position: relative;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  padding: 16px clamp(18px, 4vw, 56px);
  border-bottom: 1px solid var(--line);
  background: rgba(7, 9, 10, 0.74);
  backdrop-filter: blur(20px);
}

.brand,
.top-actions,
.hero-actions,
.trust-row,
.chain-tabs,
.card-head {
  display: flex;
  align-items: center;
}

.brand {
  gap: 12px;
  font-weight: 900;
}

.brand-mark {
  width: 39px;
  height: 39px;
  display: inline-block;
  flex: 0 0 auto;
  border: 1px solid rgba(247, 198, 92, 0.5);
  background: url("/logo.svg") center / contain no-repeat;
  color: transparent;
  font-size: 12px;
  overflow: hidden;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.35), 0 12px 28px rgba(247, 198, 92, 0.08);
}

.nav {
  display: flex;
  gap: 28px;
  color: var(--muted);
  font-size: 14px;
}

.nav a,
.button,
.price-card,
.path-grid article,
.ops-list article,
.method,
.chain-tabs a {
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease, color 180ms ease, box-shadow 180ms ease;
}

.nav a:hover {
  color: var(--ink);
}

.top-actions {
  gap: 10px;
}

.lang-toggle,
.topbar-cta {
  border: 1px solid rgba(247, 198, 92, 0.48);
  background: rgba(247, 198, 92, 0.05);
  color: var(--gold);
  padding: 10px 14px;
  font: inherit;
  font-weight: 850;
  cursor: pointer;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(360px, 1.1fr);
  gap: clamp(32px, 5vw, 70px);
  align-items: center;
  min-height: calc(100vh - 72px);
  padding: clamp(44px, 7vw, 92px) clamp(18px, 4vw, 56px) 70px;
}

.hero-copy {
  max-width: 790px;
}

.proof-pill {
  display: inline-flex;
  margin-bottom: 18px;
  border: 1px solid rgba(39, 214, 143, 0.32);
  padding: 9px 12px;
  background: rgba(39, 214, 143, 0.08);
  color: #93f0c8;
  font-size: 13px;
  font-weight: 850;
}

.eyebrow {
  margin: 0 0 16px;
  color: var(--gold);
  font-size: 12px;
  font-weight: 950;
  letter-spacing: 0;
  text-transform: uppercase;
}

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

h1 {
  margin-bottom: 22px;
  font-size: clamp(46px, 5.7vw, 82px);
  line-height: 1.08;
  letter-spacing: 0;
  font-weight: 850;
}

h2 {
  margin-bottom: 18px;
  font-size: clamp(34px, 4vw, 58px);
  line-height: 1.08;
  letter-spacing: 0;
  font-weight: 850;
}

h3 {
  margin-bottom: 10px;
  font-size: 21px;
}

.hero-text,
.muted {
  color: var(--soft);
  font-size: 18px;
  line-height: 1.78;
}

.hero-actions,
.trust-row {
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 28px;
}

.button {
  display: inline-flex;
  min-height: 50px;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  padding: 0 20px;
  cursor: pointer;
  font: inherit;
  font-weight: 900;
}

.button:hover {
  transform: translateY(-2px);
}

.primary {
  background: linear-gradient(135deg, #ffd978, var(--gold-2));
  color: #171008;
  box-shadow: 0 18px 50px rgba(247, 198, 92, 0.22);
}

.ghost {
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.04);
}

.danger {
  border-color: rgba(255, 77, 103, 0.55);
  background: rgba(255, 77, 103, 0.12);
  color: #ff8c9d;
}

.danger:hover {
  background: rgba(255, 77, 103, 0.2);
}

.wide {
  width: 100%;
}

.trust-row span {
  border: 1px solid var(--line);
  padding: 10px 13px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--muted);
  font-size: 13px;
}

.terminal,
.apply-card,
.pay-card,
.account-card,
.selected-plan,
.notice-list {
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(24, 29, 32, 0.95), rgba(8, 12, 14, 0.96));
}

.terminal {
  overflow: hidden;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.46);
}

.hero-panel {
  animation: floatPanel 7s ease-in-out infinite;
}

.terminal-head {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 16px 18px;
  border-bottom: 1px solid var(--line);
}

.terminal-head span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--red);
}

.terminal-head span:nth-child(2) {
  background: var(--gold);
}

.terminal-head span:nth-child(3) {
  background: var(--green);
}

.terminal-head strong {
  margin-left: auto;
  font-size: 13px;
}

.chart-wrap {
  position: relative;
  min-height: 360px;
  padding: 18px;
}

#equityChart {
  width: 100%;
  min-height: 320px;
}

.floating-card {
  position: absolute;
  min-width: 148px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  padding: 14px;
  background: rgba(11, 14, 16, 0.88);
  box-shadow: 0 18px 34px rgba(0, 0, 0, 0.2);
}

.floating-card small,
.floating-card span,
.trade-strip span {
  display: block;
  color: var(--muted);
  font-size: 12px;
}

.floating-card strong {
  display: block;
  margin: 4px 0;
  color: var(--green);
  font-size: 25px;
}

.balance-card {
  top: 36px;
  right: 32px;
}

.risk-card {
  bottom: 34px;
  left: 28px;
}

.trade-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line);
}

.trade-strip div {
  padding: 18px;
  border-right: 1px solid var(--line);
}

.trade-strip strong {
  display: block;
  margin-top: 6px;
  font-size: 22px;
}

.logo-band {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  padding: 0 clamp(18px, 4vw, 56px) 42px;
}

.logo-band span {
  border: 1px solid var(--line);
  padding: 18px;
  background: rgba(255, 255, 255, 0.045);
  color: var(--soft);
  text-align: center;
  font-weight: 850;
}

.section,
.page-main,
.dashboard {
  padding: clamp(56px, 7vw, 104px) clamp(18px, 4vw, 56px);
}

.band {
  background: linear-gradient(180deg, var(--cream), #e9dcc7);
  color: #171411;
}

.band .eyebrow {
  color: #8b640e;
}

.section-heading {
  max-width: 940px;
  margin-bottom: 34px;
}

.pricing-grid,
.path-grid,
.kpi-grid,
.dash-grid,
.payout-grid,
.bubble-grid,
.rules-overview,
.rules-details {
  display: grid;
  gap: 18px;
}

.payout-section,
.testimonials {
  background: #0b0f11;
}

.payout-grid {
  grid-template-columns: 1.2fr 0.9fr 0.9fr;
}

.payout-card,
.bubble-grid article,
.rules-overview article,
.rules-detail-card,
.quick-buy {
  border: 1px solid var(--line);
  background: var(--panel);
  padding: 24px;
}

.payout-card span,
.rules-overview span {
  display: block;
  margin-bottom: 14px;
  color: var(--gold);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.payout-card strong {
  display: block;
  margin-bottom: 12px;
  font-size: 32px;
}

.payout-card p,
.bubble-grid p,
.rules-overview p,
.rules-detail-card p {
  margin: 0;
  color: var(--soft);
  line-height: 1.7;
}

.primary-stat {
  background:
    linear-gradient(135deg, rgba(247, 198, 92, 0.14), rgba(39, 214, 143, 0.08)),
    var(--panel);
}

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

.bubble-grid article {
  position: relative;
  border-radius: 18px 18px 18px 4px;
  animation: bubbleFloat 8s ease-in-out infinite;
}

.bubble-grid article:nth-child(even) {
  transform: translateY(18px);
  border-radius: 18px 18px 4px 18px;
  animation-delay: -2s;
}

.bubble-grid article:nth-child(3n) {
  animation-delay: -4s;
}

.bubble-grid strong {
  display: block;
  margin-bottom: 8px;
  color: var(--gold);
}

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

.plan-type-switch {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  max-width: 780px;
  margin: -10px 0 24px;
}

.plan-type-switch button {
  border: 1px solid rgba(23, 20, 17, 0.13);
  padding: 18px 20px;
  background: rgba(255, 250, 241, 0.78);
  color: #171411;
  text-align: left;
  cursor: pointer;
  box-shadow: 0 14px 34px rgba(23, 20, 17, 0.07);
}

.plan-type-switch button.active {
  border-color: rgba(217, 154, 38, 0.65);
  background: #12100d;
  color: #fff;
}

.plan-type-switch strong,
.plan-type-switch span {
  display: block;
}

.plan-type-switch strong {
  margin-bottom: 6px;
  font-size: 18px;
}

.plan-type-switch span {
  color: #78694f;
  font-size: 13px;
  line-height: 1.55;
}

.plan-type-switch button.active span {
  color: #d8c9ae;
}

.price-card {
  display: flex;
  min-height: 528px;
  flex-direction: column;
  border: 1px solid rgba(23, 20, 17, 0.12);
  padding: 25px;
  background: rgba(255, 250, 241, 0.92);
  box-shadow: 0 18px 48px rgba(23, 20, 17, 0.08);
}

.price-card:hover,
.path-grid article:hover,
.ops-list article:hover {
  transform: translateY(-5px);
  box-shadow: 0 22px 54px rgba(0, 0, 0, 0.16);
}

.price-card.featured {
  background: #12100d;
  color: var(--ink);
  transform: translateY(-10px);
  box-shadow: 0 24px 70px rgba(23, 20, 17, 0.24);
}

.price-card.direct-funded .tag {
  border-color: rgba(39, 214, 143, 0.36);
  color: #0d8f62;
}

.price-card.direct-funded.featured .tag {
  color: #27d68f;
}

.tag {
  align-self: flex-start;
  border: 1px solid rgba(217, 154, 38, 0.32);
  padding: 7px 10px;
  color: #9b6808;
  font-size: 12px;
  font-weight: 900;
}

.featured .tag {
  color: var(--gold);
}

.price {
  margin: 18px 0;
  font-size: 52px;
  font-weight: 950;
}

.price small {
  color: #876b3d;
  font-size: 16px;
}

.deal-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 16px;
  color: #8b7353;
  font-size: 14px;
}

.deal-row del {
  color: #8f8170;
}

.deal-row span {
  border: 1px solid rgba(217, 154, 38, 0.3);
  padding: 4px 7px;
  color: #9b6808;
  font-weight: 900;
}

.featured .deal-row span,
.featured .deal-row del {
  color: var(--gold);
}

.stats-list {
  display: grid;
  gap: 12px;
  margin: 0 0 24px;
  padding: 0;
  list-style: none;
}

.stats-list li {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  border-bottom: 1px solid rgba(23, 20, 17, 0.11);
  padding-bottom: 10px;
  color: #5c5246;
}

.featured .stats-list li,
.account-card .stats-list li {
  border-color: rgba(246, 241, 232, 0.13);
  color: var(--muted);
}

.stats-list strong {
  color: inherit;
  white-space: nowrap;
}

.info-dot {
  position: relative;
  display: inline-grid;
  width: 18px;
  height: 18px;
  place-items: center;
  border: 1px solid rgba(247, 198, 92, 0.55);
  border-radius: 50%;
  background: rgba(247, 198, 92, 0.1);
  color: var(--gold);
  cursor: help;
  font: inherit;
  font-size: 11px;
  font-weight: 950;
  vertical-align: middle;
}

.info-dot::after {
  position: absolute;
  bottom: calc(100% + 10px);
  left: 50%;
  z-index: 30;
  width: min(280px, 72vw);
  border: 1px solid rgba(247, 198, 92, 0.28);
  padding: 12px;
  background: #080b0d;
  color: var(--ink);
  content: attr(data-tip-text);
  line-height: 1.55;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 6px);
  transition: opacity 150ms ease, transform 150ms ease;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
}

.info-dot:hover::after,
.info-dot:focus-visible::after {
  opacity: 1;
  transform: translate(-50%, 0);
}

.price-card .button {
  margin-top: auto;
}

.path-section,
.page-main {
  background: var(--bg);
}

.path-grid {
  grid-template-columns: repeat(4, 1fr);
}

.path-grid article,
.ops-list article,
.kpi-grid article {
  border: 1px solid var(--line);
  padding: 24px;
  background: var(--panel);
}

.path-grid span {
  display: block;
  margin-bottom: 22px;
  color: var(--gold);
  font-weight: 950;
}

.path-grid p,
.ops-list span {
  color: var(--soft);
  line-height: 1.68;
}

.split,
.checkout-layout,
.pay-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.78fr) minmax(340px, 0.9fr);
  gap: clamp(28px, 6vw, 80px);
  align-items: start;
  background: #0c1012;
}

.ops-list {
  display: grid;
  gap: 14px;
}

.ops-list strong {
  display: block;
  margin-bottom: 8px;
}

.page-hero {
  max-width: 980px;
}

.rules-hero {
  max-width: 980px;
  padding-bottom: 34px;
}

.rules-overview {
  grid-template-columns: repeat(4, 1fr);
  margin-bottom: 24px;
}

.phase-rules {
  background: #0b0f11;
}

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

.phase-grid article {
  border: 1px solid var(--line);
  padding: 26px;
  background: var(--panel);
}

.phase-grid article > span {
  color: var(--gold);
  font-size: 12px;
  font-weight: 950;
  text-transform: uppercase;
}

.phase-grid ul {
  display: grid;
  gap: 12px;
  margin: 18px 0 0;
  padding-left: 20px;
  color: var(--soft);
}

.rules-overview strong {
  display: block;
  margin-bottom: 10px;
  font-size: 24px;
}

.rules-table {
  overflow: hidden;
  border: 1px solid var(--line);
}

.rules-type-block + .rules-type-block {
  margin-top: 18px;
}

.rules-type-title {
  padding: 15px 18px;
  border-bottom: 1px solid var(--line);
  background: rgba(247, 198, 92, 0.1);
  color: var(--gold);
  font-size: 12px;
  font-weight: 950;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.contract-size-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.03);
}

.contract-size-grid .row {
  grid-template-columns: 1fr 1fr;
}

.contract-size-grid .row.head {
  grid-column: 1 / -1;
}

.row {
  display: grid;
  grid-template-columns: 1.2fr repeat(3, 1fr);
  gap: 1px;
  border-bottom: 1px solid var(--line);
}

.row > * {
  padding: 18px;
  background: rgba(255, 255, 255, 0.04);
}

.row.head > * {
  background: var(--gold);
  color: #171008;
}

.rules-details {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  background: #0c1012;
}

.rules-detail-card h3 {
  color: var(--gold);
}

.selected-plan,
.apply-card,
.pay-card {
  padding: 25px;
}

.selected-plan {
  margin-top: 28px;
}

.selected-plan span,
.amount-box span,
.wallet-box span {
  color: var(--muted);
  font-size: 13px;
}

.selected-plan strong,
.amount-box strong {
  display: block;
  margin: 8px 0;
  font-size: 34px;
}

.apply-card {
  display: grid;
  gap: 16px;
}

label {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 850;
}

input,
select {
  width: 100%;
  min-height: 50px;
  border: 1px solid rgba(246, 241, 232, 0.14);
  padding: 0 13px;
  background: #090d0f;
  color: var(--ink);
  font: inherit;
}

input:focus,
select:focus {
  outline: 1px solid rgba(247, 198, 92, 0.7);
  border-color: rgba(247, 198, 92, 0.7);
}

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

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

.payment-methods {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  border: 0;
}

.method {
  grid-template-columns: auto 1fr;
  align-items: center;
  border: 1px solid var(--line);
  padding: 14px;
  background: rgba(255, 255, 255, 0.04);
}

.method:hover {
  border-color: rgba(247, 198, 92, 0.42);
}

.method input {
  width: 18px;
  min-height: 18px;
}

.method small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
}

.method.disabled {
  opacity: 0.48;
}

output {
  display: none;
  border: 1px solid rgba(46, 208, 143, 0.25);
  padding: 14px;
  color: var(--muted);
  line-height: 1.55;
}

output.show {
  display: block;
}

.chain-tabs {
  gap: 10px;
  margin-bottom: 16px;
}

.chain-tabs a {
  border: 1px solid var(--line);
  padding: 10px 14px;
  color: var(--muted);
}

.chain-tabs a.active {
  border-color: rgba(247, 198, 92, 0.72);
  color: var(--gold);
}

.payment-status {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 6px 12px;
  align-items: center;
  border: 1px solid rgba(39, 214, 143, 0.26);
  padding: 16px;
  margin-bottom: 16px;
  background: rgba(39, 214, 143, 0.07);
}

.payment-status small {
  grid-column: 2;
  color: var(--muted);
}

.pulse {
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 rgba(39, 214, 143, 0.72);
  animation: pulse 1.4s infinite;
}

.checkmark {
  display: grid;
  width: 24px;
  height: 24px;
  place-items: center;
  border-radius: 50%;
  background: var(--green);
  color: #07100b;
  font-weight: 950;
}

.amount-box,
.wallet-box {
  border: 1px solid var(--line);
  padding: 18px;
  margin-bottom: 16px;
  background: rgba(255, 255, 255, 0.04);
}

.amount-warning {
  display: block;
  margin: 10px 0 4px;
  border: 1px solid rgba(247, 198, 92, 0.42);
  padding: 10px 12px;
  background: rgba(247, 198, 92, 0.1);
  color: var(--gold);
  font-weight: 900;
}

.wallet-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 132px;
  gap: 16px;
  align-items: center;
}

.wallet-qr {
  width: 132px;
  height: 132px;
  border: 1px solid rgba(247, 198, 92, 0.3);
  padding: 8px;
  background: #fff8ea;
}

.support-float {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 80;
  border: 1px solid rgba(247, 198, 92, 0.55);
  padding: 12px 16px;
  background: #11171a;
  color: var(--gold);
  font-weight: 950;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.28);
}

.tx-submit {
  display: grid;
  gap: 12px;
  margin: 12px 0 16px;
}

.tx-submit output.show {
  display: block;
  color: var(--green);
  font-weight: 800;
}

code {
  display: block;
  overflow-wrap: anywhere;
  margin: 10px 0;
  color: var(--green);
  font-size: 18px;
  cursor: pointer;
}

.wallet-actions {
  display: grid;
  gap: 10px;
  margin: 0 0 16px;
}

.wallet-actions output.show {
  display: block;
  color: var(--green);
  font-weight: 850;
}

.wallet-actions output.negative {
  color: #ff8c9d;
}

.wallet-actions button:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

.dashboard {
  background: var(--bg);
}

.dash-hero {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 24px;
}

.dash-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.auth-room {
  max-width: 980px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 380px);
  gap: 28px;
  align-items: center;
  text-align: left;
}

.login-card {
  display: grid;
  gap: 14px;
  border: 1px solid var(--line);
  padding: 22px;
  background: var(--panel);
}

.login-card strong {
  font-size: 22px;
}

.login-card output.show {
  display: block;
  color: #ffb86b;
  font-weight: 800;
}

.link-button {
  border: 0;
  padding: 0;
  background: transparent;
  color: var(--gold);
  font: inherit;
  font-weight: 800;
  text-align: left;
  cursor: pointer;
}

.payout-cta {
  border-color: rgba(39, 214, 143, 0.6);
  background: linear-gradient(135deg, #38f0a8, #19a86d);
  color: #06100b;
  box-shadow: 0 18px 50px rgba(39, 214, 143, 0.2);
}

.kpi-grid {
  grid-template-columns: repeat(4, 1fr);
  margin-bottom: 18px;
}

.kpi-grid span {
  display: block;
  color: var(--muted);
}

.kpi-grid strong {
  display: block;
  margin-top: 6px;
  font-size: 34px;
}

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

.account-card {
  display: block;
  padding: 24px;
  color: inherit;
  text-decoration: none;
}

.account-card.account-active {
  background: linear-gradient(145deg, rgba(247, 198, 92, 0.08), rgba(255, 255, 255, 0.035));
  border-color: rgba(247, 198, 92, 0.26);
}

.account-card.account-funded {
  background: linear-gradient(145deg, rgba(39, 214, 143, 0.14), rgba(255, 255, 255, 0.035));
  border-color: rgba(39, 214, 143, 0.42);
}

.account-card.account-breached {
  background: linear-gradient(145deg, rgba(255, 92, 92, 0.14), rgba(255, 255, 255, 0.025));
  border-color: rgba(255, 92, 92, 0.4);
}

.account-link {
  cursor: pointer;
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.account-link:hover {
  transform: translateY(-3px);
  border-color: rgba(247, 198, 92, 0.52);
  box-shadow: 0 20px 56px rgba(0, 0, 0, 0.22);
}

.account-card-action {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  margin-top: 16px;
  padding: 0 14px;
  border: 1px solid rgba(247, 198, 92, 0.45);
  color: var(--gold);
  font-size: 13px;
  font-weight: 900;
}

.card-head {
  justify-content: space-between;
  color: var(--muted);
  font-size: 13px;
}

.card-head strong {
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
}

.account-active .card-head strong {
  color: #07110c;
  background: linear-gradient(135deg, #42f5ae, #13b875);
  box-shadow: 0 0 0 1px rgba(39, 214, 143, 0.28), 0 10px 22px rgba(39, 214, 143, 0.12);
}

.account-funded .card-head strong {
  color: #06100b;
  background: linear-gradient(135deg, #d8ff8f, #29d487);
  box-shadow: 0 0 0 1px rgba(216, 255, 143, 0.32), 0 10px 22px rgba(39, 214, 143, 0.16);
}

.account-breached .card-head strong {
  color: #fff;
  background: #ff4d67;
}

.stats-list strong.positive,
.account-card .stats-list strong.positive {
  color: var(--green) !important;
}

.stats-list strong.negative,
.account-card .stats-list strong.negative {
  color: #ff4d67 !important;
}

.progress {
  overflow: hidden;
  height: 10px;
  margin: 18px 0;
  background: rgba(255, 255, 255, 0.08);
}

.progress span {
  display: block;
  height: 100%;
  background: var(--green);
}

.account-range {
  margin: 18px 0 42px;
}

.account-progress {
  position: relative;
  overflow: hidden;
  margin: 0;
}

.account-progress span {
  display: block;
  height: 100%;
  width: var(--progress);
}

.account-progress.profit-right span {
  background: var(--green);
}

.account-progress.loss-left span,
.account-progress.flat span {
  background: #ff4d67;
}

.account-progress.flat span {
  width: 0;
}

.range-labels {
  display: flex;
  justify-content: space-between;
  margin-top: 10px;
}

.range-labels small {
  display: grid;
  gap: 2px;
  color: #ff6b7e;
  font-size: 12px;
  font-weight: 900;
}

.range-labels small:last-child {
  color: var(--green);
  text-align: right;
}

.range-labels b {
  color: color-mix(in srgb, currentColor 55%, transparent);
  font-size: 10px;
}

.positive {
  color: var(--green) !important;
}

.negative {
  color: #ff4d67 !important;
}

.notice-list {
  display: grid;
  gap: 0;
  margin-top: 18px;
  padding: 18px 22px;
}

.quick-buy {
  display: grid;
  grid-template-columns: 1fr minmax(320px, 0.6fr);
  gap: 24px;
  align-items: end;
  margin-top: 18px;
}

.quick-buy h2 {
  margin-bottom: 0;
  font-size: clamp(28px, 3vw, 42px);
}

.quick-buy-form {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
}

.payout-panel {
  margin-top: 18px;
  border: 1px solid rgba(39, 214, 143, 0.25);
  padding: 24px;
  background:
    linear-gradient(135deg, rgba(39, 214, 143, 0.08), transparent),
    var(--panel);
}

.payout-panel.standalone {
  display: grid;
  gap: 22px;
}

.payout-method-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}

.method-switch {
  display: flex;
  gap: 10px;
}

.method-switch button {
  min-height: 46px;
  border: 1px solid var(--line);
  padding: 0 18px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--muted);
  cursor: pointer;
  font: inherit;
  font-weight: 900;
}

.method-switch button.active {
  border-color: rgba(247, 198, 92, 0.72);
  color: var(--gold);
  background: rgba(247, 198, 92, 0.09);
}

.payout-method {
  display: grid;
  gap: 14px;
  border: 1px solid var(--line);
  padding: 20px;
  background: rgba(255, 255, 255, 0.04);
}

.payout-method.active {
  border-color: rgba(39, 214, 143, 0.38);
}

.payout-method p {
  margin: 0;
  color: var(--soft);
  line-height: 1.65;
}

.kyc-heavy {
  opacity: 0.78;
}

.kyc-list {
  display: grid;
  gap: 8px;
}

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

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

.hidden {
  display: none !important;
}

.kyc-list span {
  border: 1px solid var(--line);
  padding: 9px 10px;
  color: var(--muted);
  font-size: 13px;
}

.orders-panel {
  margin-top: 18px;
  border: 1px solid var(--line);
  padding: 24px;
  background: var(--panel);
}

.section-heading.compact {
  margin-bottom: 18px;
}

.section-heading.compact h2 {
  font-size: clamp(26px, 3vw, 38px);
}

.orders-list {
  display: grid;
  gap: 10px;
}

.order-item {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 14px;
  align-items: center;
  border: 1px solid var(--line);
  padding: 14px;
  background: rgba(255, 255, 255, 0.04);
}

.order-item span {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 13px;
}

.status-pill {
  border: 1px solid rgba(39, 214, 143, 0.28);
  padding: 8px 10px;
  color: var(--green) !important;
  font-weight: 900;
  white-space: nowrap;
}

.order-actions {
  display: flex;
  gap: 8px;
}

.order-actions .button {
  min-height: 40px;
  padding: 0 12px;
}

.empty-orders {
  margin: 0;
  color: var(--muted);
}

.admin-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.admin-table {
  display: grid;
  gap: 10px;
}

.admin-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  align-items: center;
  border: 1px solid var(--line);
  padding: 12px;
  background: rgba(255, 255, 255, 0.04);
}

.admin-row-actions {
  grid-template-columns: 1.1fr 1.1fr 1fr auto;
}

.admin-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.admin-actions .button {
  min-height: 36px;
  padding: 0 10px;
  font-size: 12px;
}

.admin-row span {
  color: var(--muted);
  overflow-wrap: anywhere;
}

.admin-row small {
  display: block;
  margin-top: 4px;
  color: var(--soft);
  font-size: 12px;
}

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

.detail-grid div {
  border: 1px solid var(--line);
  padding: 14px;
  background: rgba(255, 255, 255, 0.04);
}

.detail-grid span {
  display: block;
  color: var(--muted);
  font-size: 13px;
}

.detail-grid strong {
  display: block;
  margin-top: 6px;
  font-size: 22px;
}

.trading-day-table {
  display: grid;
  gap: 8px;
}

.trading-day-row {
  display: grid;
  grid-template-columns: 1.1fr repeat(5, minmax(0, 1fr));
  gap: 10px;
  align-items: center;
  border: 1px solid var(--line);
  padding: 12px;
  background: rgba(255, 255, 255, 0.04);
}

.trading-day-row span {
  color: var(--muted);
  font-size: 13px;
}

.trading-day-row.profit strong,
.trading-day-row.profit span:first-of-type {
  color: var(--green);
}

.trading-day-row.loss strong,
.trading-day-row.loss span:first-of-type {
  color: var(--red);
}

.trading-calendar {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 8px;
}

.calendar-cell {
  min-height: 94px;
  border: 1px solid var(--line);
  padding: 10px;
  background: rgba(255, 255, 255, 0.035);
}

.calendar-cell span,
.calendar-cell small {
  display: block;
  color: var(--muted);
  font-size: 12px;
}

.calendar-cell strong {
  display: block;
  margin: 12px 0 6px;
  color: var(--ink);
  font-size: 20px;
}

.calendar-cell.profit {
  border-color: rgba(39, 214, 143, 0.35);
  background: rgba(39, 214, 143, 0.08);
}

.calendar-cell.loss {
  border-color: rgba(255, 107, 107, 0.35);
  background: rgba(255, 107, 107, 0.08);
}

.calendar-cell.profit strong {
  color: var(--green);
}

.calendar-cell.loss strong {
  color: var(--red);
}

.trade-page {
  padding: 0;
  min-height: calc(100vh - 72px);
  overflow: visible;
  background: #0a0b0d;
}

.trade-hero {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: flex-end;
  margin-bottom: 18px;
}

.trade-terminal {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  gap: 18px;
}

.trade-terminal.wide {
  grid-template-columns: minmax(0, 1fr) 238px;
  align-items: start;
}

.trade-sidebar,
.chart-panel {
  border: 1px solid var(--line);
  background: var(--panel);
  padding: 18px;
}

.trade-sidebar {
  display: grid;
  align-content: start;
  gap: 14px;
}

.trade-sidebar.compact {
  padding: 14px;
  gap: 10px;
}

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

.trade-buttons.small {
  gap: 8px;
}

.trade-buttons .wide {
  grid-column: 1 / -1;
}

.button.buy {
  background: linear-gradient(135deg, #38f0a8, #19a86d);
  color: #06100b;
}

.button.sell {
  border-color: rgba(255, 107, 107, 0.5);
  background: rgba(255, 107, 107, 0.12);
  color: #ffd7d7;
}

.button.compact {
  min-height: 36px;
  padding: 0 10px;
  font-size: 12px;
}

.chart-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-bottom: 12px;
}

.chart-toolbar .active {
  border-color: rgba(247, 198, 92, 0.72);
  color: var(--gold);
  background: rgba(247, 198, 92, 0.1);
}

#drawHint,
#dataSource {
  color: var(--muted);
  font-size: 13px;
}

.trade-metrics {
  display: grid;
  gap: 10px;
}

.trade-metrics div,
.trade-row {
  border: 1px solid var(--line);
  padding: 10px;
  background: rgba(255, 255, 255, 0.04);
}

.trade-metrics span,
.trade-row span {
  display: block;
  color: var(--muted);
  font-size: 13px;
  margin-top: 4px;
}

.trade-bottom {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.trade-row {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  gap: 10px;
  align-items: center;
}

.trade-row.rich {
  grid-template-columns: minmax(140px, 1.4fr) repeat(4, minmax(90px, 1fr)) minmax(120px, auto);
  min-height: 42px;
  padding: 8px 10px;
}

.trade-row.rich span {
  margin-top: 0;
}

.trade-row button {
  min-height: 28px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  cursor: pointer;
}

.trade-row button:hover {
  border-color: rgba(247, 198, 92, 0.5);
  color: var(--gold);
}

.row-actions {
  display: flex;
  gap: 6px;
  justify-content: flex-end;
}

.row-actions button[data-protect-kind="tp"] {
  color: #27d68f;
}

.row-actions button[data-protect-kind="sl"] {
  color: #ffcc66;
}

.account-strip {
  display: grid;
  grid-template-columns: repeat(5, minmax(130px, 1fr));
  gap: 8px;
}

.account-strip article {
  min-height: 72px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.04);
}

.account-strip span {
  display: block;
  color: #8f98a8;
  font-size: 12px;
}

.account-strip strong {
  display: block;
  margin-top: 8px;
  color: #fff;
  font-size: 18px;
}

.positive {
  color: #27d68f !important;
}

.negative {
  color: #ff4d67 !important;
}

.terminal-shell {
  min-height: calc(100vh - 72px);
  display: grid;
  grid-template-rows: 48px auto auto;
  background: #0a0b0d;
}

.terminal-topbar {
  display: flex;
  align-items: center;
  gap: 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding: 0 12px;
  background: #0d0e10;
  overflow-x: auto;
}

.terminal-account select,
.chart-toolbar select {
  min-height: 34px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: #111316;
  color: var(--ink);
  padding: 0 10px;
}

.terminal-account {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 12px;
  white-space: nowrap;
}

.terminal-stat {
  display: flex;
  gap: 6px;
  align-items: baseline;
  color: var(--muted);
  font-size: 13px;
  white-space: nowrap;
}

.terminal-stat strong {
  color: var(--ink);
  font-size: 15px;
}

.terminal-stat.accent strong {
  color: var(--green);
}

.terminal-spacer {
  flex: 1;
}

.terminal-body {
  display: grid;
  grid-template-columns: 50px minmax(0, 1fr) 330px;
  min-height: 0;
  overflow: visible;
  align-items: start;
}

.tool-rail {
  display: grid;
  align-content: start;
  gap: 6px;
  padding: 8px 5px;
  border-right: 1px solid rgba(255, 255, 255, 0.08);
  background: #0d0e10;
}

.tool-rail button {
  position: relative;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border: 1px solid transparent;
  background: transparent;
  color: #9ca3af;
  font-size: 16px;
  font-weight: 800;
  line-height: 1;
  cursor: pointer;
}

.tool-rail i {
  position: relative;
  display: block;
  width: 18px;
  height: 18px;
  font-style: normal;
}

.tool-cursor i::before,
.tool-cursor i::after,
.tool-trend i::before,
.tool-ray i::before,
.tool-hline i::before,
.tool-vline i::before,
.tool-parallel i::before,
.tool-parallel i::after,
.tool-channel i::before,
.tool-channel i::after,
.tool-rect i::before,
.tool-circle i::before,
.tool-long-position i::before,
.tool-long-position i::after,
.tool-short-position i::before,
.tool-short-position i::after,
.tool-clear i::before,
.tool-clear i::after {
  content: "";
  position: absolute;
}

.tool-cursor i::before {
  background: currentColor;
  left: 8px;
  top: 2px;
  width: 2px;
  height: 14px;
}

.tool-cursor i::after {
  background: currentColor;
  left: 2px;
  top: 8px;
  width: 14px;
  height: 2px;
}

.tool-trend i::before,
.tool-ray i::before,
.tool-hline i::before {
  background: currentColor;
  left: 1px;
  top: 8px;
  width: 16px;
  height: 2px;
}

.tool-trend i::before {
  transform: rotate(-34deg);
}

.tool-ray i::before {
  transform: rotate(-20deg);
}

.tool-ray i::after {
  content: "";
  position: absolute;
  right: 0;
  top: 4px;
  width: 5px;
  height: 5px;
  border-top: 2px solid currentColor;
  border-right: 2px solid currentColor;
  transform: rotate(25deg);
}

.tool-vline i::before {
  background: currentColor;
  left: 8px;
  top: 1px;
  width: 2px;
  height: 16px;
}

.tool-parallel i::before,
.tool-parallel i::after {
  background: currentColor;
  left: 1px;
  width: 16px;
  height: 2px;
  transform: rotate(-28deg);
}

.tool-parallel i::before {
  top: 5px;
}

.tool-parallel i::after {
  top: 12px;
}

.tool-channel i::before,
.tool-channel i::after {
  left: 2px;
  width: 14px;
  height: 5px;
  border: 1px solid currentColor;
  background: transparent;
  transform: skew(-18deg);
}

.tool-channel i::before {
  top: 3px;
}

.tool-channel i::after {
  top: 10px;
}

.tool-rect i::before {
  left: 2px;
  top: 4px;
  width: 14px;
  height: 10px;
  border: 2px solid currentColor;
  background: transparent;
}

.tool-circle i::before {
  left: 2px;
  top: 2px;
  width: 12px;
  height: 12px;
  border: 2px solid currentColor;
  border-radius: 50%;
  background: transparent;
}

.tool-long-position i::before,
.tool-short-position i::before {
  left: 4px;
  width: 10px;
  height: 7px;
  border: 1px solid currentColor;
}

.tool-long-position i::before {
  top: 2px;
  background: rgba(0, 184, 169, 0.45);
  border-color: #00b8a9;
}

.tool-long-position i::after,
.tool-short-position i::after {
  left: 8px;
  top: 8px;
  width: 2px;
  height: 2px;
  background: var(--gold);
  box-shadow: -5px 0 0 var(--gold), 5px 0 0 var(--gold);
}

.tool-short-position i::before {
  top: 9px;
  background: rgba(255, 77, 103, 0.45);
  border-color: #ff4d67;
}

.tool-fib i {
  background: repeating-linear-gradient(to bottom, currentColor 0 1px, transparent 1px 4px);
}

.tool-text i {
  display: grid;
  place-items: center;
  font-weight: 900;
  font-size: 15px;
}

.tool-clear i::before,
.tool-clear i::after {
  background: currentColor;
  left: 2px;
  top: 8px;
  width: 14px;
  height: 2px;
}

.tool-clear i::before {
  transform: rotate(45deg);
}

.tool-clear i::after {
  transform: rotate(-45deg);
}

.tool-rail button:hover,
.tool-rail button.active {
  border-color: rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.08);
  color: var(--ink);
}

.chart-panel.professional {
  position: relative;
  border: 0;
  border-right: 1px solid rgba(255, 255, 255, 0.08);
  padding: 0;
  background: #0a0b0d;
  overflow: visible;
  min-height: 0;
}

.chart-toolbar.pro {
  height: 44px;
  margin: 0;
  padding: 6px 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: #0d0e10;
  flex-wrap: nowrap;
  overflow: visible;
  position: relative;
  gap: 6px;
  z-index: 80;
}

.toolbar-icon {
  min-width: 34px;
  min-height: 32px;
  border: 1px solid transparent;
  background: transparent;
  color: #9ca3af;
  cursor: pointer;
}

.toolbar-icon:hover {
  border-color: rgba(255, 255, 255, 0.12);
  color: #fff;
  background: rgba(255, 255, 255, 0.06);
}

.toolbar-icon.active {
  border-color: rgba(45, 97, 255, 0.78);
  color: #fff;
  background: rgba(45, 97, 255, 0.12);
}

.market-picker {
  position: relative;
  z-index: 130;
}

.market-chip {
  display: grid;
  grid-template-columns: minmax(82px, auto) 18px;
  align-items: center;
  min-width: 118px;
  max-width: 150px;
  min-height: 34px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: #111316;
  border-radius: 3px;
  cursor: pointer;
}

.market-chip strong {
  padding: 0 9px;
  color: var(--ink);
  font-size: 13px;
  overflow: hidden;
  text-overflow: ellipsis;
}

.market-chip::after {
  content: "";
  width: 0;
  height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid #8f98a8;
  justify-self: center;
}

.market-menu {
  position: absolute;
  z-index: 150;
  top: 39px;
  left: 0;
  display: grid;
  width: 250px;
  max-height: 420px;
  overflow: hidden;
  padding: 6px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: #17181c;
  box-shadow: 0 18px 54px rgba(0, 0, 0, 0.5);
}

.market-search {
  position: sticky;
  top: 0;
  z-index: 2;
  width: calc(100% - 16px);
  margin: 8px;
  min-height: 36px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: #0b0d10;
  color: #dbe7f8;
  padding: 0 10px;
}

.market-list {
  max-height: 360px;
  overflow-y: auto;
}

.market-menu button {
  display: grid;
  grid-template-columns: 70px 1fr;
  align-items: center;
  gap: 10px;
  min-height: 38px;
  border: 0;
  padding: 0 10px;
  background: transparent;
  color: var(--ink);
  text-align: left;
  cursor: pointer;
}

.market-menu button:hover {
  background: rgba(255, 255, 255, 0.08);
}

.market-menu button.hidden {
  display: none;
}

.market-menu span {
  color: #8f98a8;
  font-size: 12px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tf-row {
  display: flex;
  align-items: center;
  gap: 2px;
}

.tf-row button,
.bottom-tabs button {
  min-height: 28px;
  border: 1px solid transparent;
  padding: 0 10px;
  background: transparent;
  color: #9ca3af;
  font-size: 12px;
  cursor: pointer;
}

.tf-row button.active,
.tf-row button:hover,
.bottom-tabs button.active,
.bottom-tabs button:hover {
  border-color: rgba(45, 97, 255, 0.78);
  color: #fff;
  background: rgba(45, 97, 255, 0.12);
}

.indicator-popover {
  position: absolute;
  z-index: 120;
  top: 40px;
  left: 258px;
  display: grid;
  gap: 8px;
  width: 180px;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: #17181c;
  box-shadow: 0 18px 54px rgba(0, 0, 0, 0.45);
}

.indicator-popover label {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 24px;
}

.indicator-popover input {
  width: 15px;
  min-height: 15px;
  height: 15px;
  padding: 0;
  accent-color: #2d61ff;
}

.chart-touch-zone {
  position: relative;
  flex: 1;
  min-height: 0;
  overscroll-behavior: contain;
  touch-action: pan-y pinch-zoom;
}

#tradeChart {
  width: 100%;
  height: 100%;
  min-height: 0;
  overscroll-behavior: contain;
  touch-action: pan-y pinch-zoom;
}

.trade-line-layer {
  position: absolute;
  z-index: 35;
  left: 0;
  right: 0;
  top: 0;
  bottom: 0;
  overscroll-behavior: contain;
  touch-action: none;
  pointer-events: none;
}

.trade-line {
  position: absolute;
  left: 0;
  right: 96px;
  border-top: 1px dashed;
  pointer-events: auto;
  cursor: ns-resize;
}

.trade-line span,
.trade-line b,
.trade-line button {
  position: absolute;
  top: -13px;
  min-height: 25px;
  padding: 3px 8px;
  color: #fff;
  font-size: 12px;
  font-weight: 800;
}

.trade-line span {
  right: 132px;
}

.trade-line b {
  right: 0;
  min-width: 78px;
  background: #0d0e10;
  text-align: right;
  pointer-events: none;
}

.trade-line .position-tag {
  right: 258px;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.28);
}

.trade-line .position-tag.positive-bg {
  background: #00856f !important;
}

.trade-line .position-tag.negative-bg {
  background: #a12d3c !important;
}

.trade-line button {
  border: 0;
  cursor: pointer;
}

.trade-line .line-action {
  background: #0d0e10;
  border: 1px solid rgba(45, 97, 255, 0.7);
}

.trade-line .line-action[data-line-action="tp"] {
  right: 212px;
  color: #27d68f;
}

.trade-line .line-action[data-line-action="sl"] {
  right: 168px;
  color: #ffcc66;
}

.trade-line .line-close {
  right: 122px;
  top: -16px;
  width: 38px;
  height: 32px;
  padding: 0;
  background: #ff4d67;
  color: #fff;
  z-index: 4;
  font-size: 18px;
  line-height: 1;
}

.trade-line .order-close {
  right: 86px;
  background: #1c1f24;
  border: 1px solid rgba(255, 77, 103, 0.7);
  color: #ff4d67;
}

.line-drag-handle {
  min-width: 38px;
  z-index: 5;
  cursor: ns-resize !important;
}

.protection-guide {
  z-index: 6;
}

.trade-line-tp,
.trade-line-sl {
  border-top-style: solid;
}

.trade-line-tp span,
.trade-line-sl span {
  right: 132px;
}

.trade-line .protection-close {
  right: 86px;
  background: #1c1f24;
  border: 1px solid rgba(255, 77, 103, 0.7);
  color: #ff4d67;
}

.trade-line-position {
  cursor: default;
}

.trade-line.dragging {
  border-top-style: solid;
}

.trade-table {
  display: grid;
  min-width: 760px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(8, 10, 12, 0.62);
}

.trade-table-head,
.trade-table-row {
  display: grid;
  grid-template-columns: repeat(var(--cols, 7), minmax(86px, 1fr));
  align-items: center;
  min-height: 38px;
}

.orders-table,
.positions-table {
  --cols: 7;
}

.orders-table {
  --cols: 9;
}

.executions-table {
  --cols: 9;
}

.trade-table-head {
  color: #8f98a8;
  background: rgba(255, 255, 255, 0.045);
  font-size: 11px;
  font-weight: 900;
  text-transform: none;
}

.trade-table-row {
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  color: #dbe7f8;
  font-size: 12px;
}

.trade-table span {
  padding: 0 10px;
  white-space: nowrap;
}

.trade-table button {
  min-height: 26px;
  border: 1px solid rgba(247, 198, 92, 0.35);
  background: transparent;
  color: var(--gold);
  font-weight: 800;
  cursor: pointer;
}

.trade-table .symbol-jump {
  min-height: 0;
  padding: 0;
  border: 0;
  color: #8fb5ff;
  font: inherit;
  font-weight: 900;
}

.trade-table .symbol-jump:hover {
  color: #ffffff;
  text-decoration: underline;
}

.trade-toast {
  position: absolute;
  z-index: 90;
  top: 58px;
  right: 22px;
  padding: 10px 14px;
  border: 1px solid rgba(39, 214, 143, 0.45);
  background: rgba(0, 133, 111, 0.92);
  color: #fff;
  font-size: 13px;
  font-weight: 800;
  box-shadow: 0 12px 38px rgba(0, 0, 0, 0.35);
}

.drawing-trash {
  position: absolute;
  z-index: 92;
  top: 88px;
  left: 68px;
  width: 34px;
  height: 34px;
  border: 1px solid rgba(255, 77, 103, 0.55);
  background: rgba(255, 77, 103, 0.92);
  color: #fff;
  font-size: 17px;
  font-weight: 900;
  cursor: pointer;
}

.chart-caption {
  position: absolute;
  z-index: 20;
  top: 45px;
  left: 8px;
  display: flex;
  max-width: min(860px, calc(100% - 150px));
  min-height: 24px;
  gap: 8px;
  align-items: center;
  pointer-events: none;
  color: rgba(190, 199, 214, 0.72);
  font-size: 10px;
  line-height: 1;
  overflow: hidden;
  white-space: nowrap;
}

.chart-caption strong {
  color: rgba(255, 255, 255, 0.78);
  font-size: 10px;
  font-weight: 700;
  white-space: nowrap;
}

.chart-caption span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  display: inline;
}

.chart-caption b {
  font-weight: 700;
}

#tradeChart [class*="tooltip"],
#tradeChart [class*="Tooltip"],
#tradeChart [class*="klinecharts-tooltip"],
#tradeChart [class*="klinecharts-pro-tooltip"] {
  display: none !important;
}

.chart-caption .positive {
  color: #00b8a9;
}

.chart-caption .negative {
  color: #ff4d67;
}

.terminal-clock {
  margin-left: auto;
  color: #8f98a8;
  font-size: 12px;
  white-space: nowrap;
}

.symbol-overlay {
  position: absolute;
  z-index: 3;
  top: 58px;
  left: 18px;
  display: grid;
  gap: 5px;
  color: var(--muted);
  pointer-events: none;
}

.symbol-overlay strong {
  color: #9ca3af;
  font-size: 14px;
}

.symbol-overlay span {
  color: #00b8a9;
  font-size: 12px;
}

.order-ticket {
  display: grid;
  align-content: start;
  gap: 12px;
  padding: 10px 8px;
  background: #0f1012;
  border-left: 1px solid rgba(255, 255, 255, 0.08);
  position: sticky;
  top: 72px;
  max-height: calc(100vh - 72px);
  overflow: auto;
}

.order-ticket h3 {
  margin: 0;
  font-size: 16px;
  letter-spacing: 0;
}

.order-ticket label:not(.check-row) input {
  min-height: 48px;
}

.order-types,
.bid-ask,
.ticket-actions {
  display: grid;
  gap: 8px;
}

.order-types,
.bid-ask {
  grid-template-columns: repeat(3, 1fr);
}

.bid-ask {
  grid-template-columns: 1fr 1fr;
}

.order-types button {
  min-height: 32px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: #111316;
  color: var(--muted);
  font-size: 12px;
  cursor: pointer;
}

.order-types .active {
  color: #4c78ff;
  border-color: #1f55ff;
}

.ticket-heading {
  display: flex;
  align-items: center;
  min-height: 24px;
  color: #8f98a8;
  font-size: 16px;
  font-weight: 800;
}

.ticket-heading strong {
  color: var(--ink);
  font-size: 12px;
  text-transform: none;
}

.buy-tile,
.sell-tile {
  min-height: 68px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  text-align: left;
  padding: 10px 14px;
  color: var(--ink);
  border-radius: 7px;
  cursor: pointer;
}

.buy-tile {
  background: rgba(39, 214, 143, 0.14);
  border-color: rgba(39, 214, 143, 0.45);
}

.sell-tile {
  background: rgba(255, 77, 103, 0.14);
  border-color: rgba(255, 77, 103, 0.35);
}

.buy-tile span,
.sell-tile span {
  display: block;
  color: #dce8e2;
  font-size: 15px;
  font-weight: 800;
}

.buy-tile em,
.sell-tile em {
  margin-right: 5px;
  color: #8f98a8;
  font-style: normal;
  font-size: 12px;
}

.buy-tile.active-side,
.sell-tile.active-side {
  outline: 1px solid #fff;
}

.side-confirm-hint {
  display: block;
  margin-top: -2px;
  color: #8f98a8;
  font-size: 11px;
  line-height: 1.35;
}

.ticket-divider {
  height: 1px;
  border-top: 1px dashed rgba(255, 255, 255, 0.1);
}

.ticket-field {
  display: grid;
  gap: 7px;
  color: #7f8da3;
  font-size: 12px;
}

.ticket-field small {
  color: #8f98a8;
  font-size: 11px;
  line-height: 1.35;
}

.ticket-field input,
.quantity-stepper,
.protection-input {
  min-height: 46px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: #111214;
  color: #dbe7f8;
  border-radius: 7px;
}

.ticket-field input {
  width: 100%;
}

.quantity-stepper {
  display: grid;
  grid-template-columns: 1fr 42px 42px;
}

.quantity-stepper input,
.quantity-stepper button {
  border: 0;
  background: transparent;
  color: #dbe7f8;
}

.quantity-stepper button {
  border-left: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 18px;
  cursor: pointer;
}

.protection-row {
  display: grid;
  grid-template-columns: auto auto 1fr;
  gap: 8px;
  align-items: center;
}

.protection-input {
  display: grid;
  grid-template-columns: 1fr;
  align-items: center;
}

.protection-input input {
  border: 0;
  background: transparent;
}

.protection-input span {
  padding: 0 12px;
  color: #8f98a8;
  border-left: 1px solid rgba(255, 255, 255, 0.1);
}

.preset-row {
  display: flex;
  gap: 7px;
}

.preset-row button {
  min-height: 22px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: transparent;
  color: #ff4d67;
  border-radius: 4px;
  font-size: 11px;
  cursor: pointer;
}

.tp-presets button {
  color: #00b8a9;
}

.order-ticket .trade-metrics {
  display: none;
}

.check-row {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 13px;
}

.check-row input {
  width: 16px;
  min-height: 16px;
  height: 16px;
  padding: 0;
  accent-color: #27d68f;
}

.position-overlay {
  position: absolute;
  z-index: 7;
  right: 116px;
  display: flex;
  align-items: center;
  gap: 4px;
  transform: translateY(-50%);
}

.position-overlay span,
.position-overlay strong,
.position-overlay button {
  border: 1px solid #2563eb;
  background: #0b4dff;
  color: #fff;
  min-height: 24px;
  padding: 2px 8px;
  font-size: 12px;
  font-weight: 800;
}

.position-overlay button[data-overlay-line="tp"] {
  color: #27d68f;
}

.position-overlay button[data-overlay-line="sl"] {
  color: #f7c65c;
}

.position-overlay button {
  cursor: pointer;
}

.position-overlay strong.profit {
  color: #052014;
  background: #27d68f;
  border-color: #27d68f;
}

.position-overlay strong.loss {
  color: #fff;
  background: #ff4d67;
  border-color: #ff4d67;
}

.drag-price-line {
  position: absolute;
  z-index: 6;
  left: 0;
  right: 0;
  height: 0;
  border-top: 1px dashed;
  cursor: ns-resize;
}

.drag-price-line span {
  position: absolute;
  right: 116px;
  top: -12px;
  padding: 2px 8px;
  font-size: 12px;
  background: #0d0e10;
  font-weight: 800;
}

.drag-price-line b {
  position: absolute;
  right: 28px;
  top: -12px;
  min-width: 72px;
  padding: 2px 8px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: #0d0e10;
  color: #fff;
  font-size: 12px;
  text-align: right;
}

.drag-price-line.tp {
  border-color: #27d68f;
}

.drag-price-line.tp span {
  color: #27d68f;
  border: 1px solid rgba(39, 214, 143, 0.45);
}

.drag-price-line.sl {
  border-color: #f7c65c;
}

.drag-price-line.sl span {
  color: #f7c65c;
  border: 1px solid rgba(247, 198, 92, 0.45);
}

.chart-context-menu {
  position: absolute;
  z-index: 20;
  width: 270px;
  display: grid;
  padding: 6px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: #202020;
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.45);
}

.chart-context-menu button {
  min-height: 34px;
  border: 0;
  background: transparent;
  color: #f2f2f2;
  text-align: left;
  padding: 0 12px;
  cursor: pointer;
}

.chart-context-menu button:hover {
  background: rgba(255, 255, 255, 0.08);
}

.chart-context-menu hr {
  width: 100%;
  border: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.ctx-sub {
  position: absolute;
  left: -218px;
  top: 40px;
  width: 218px;
  display: grid;
  padding: 6px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: #202020;
}

.terminal-bottom {
  display: block;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background: #0d0e10;
  min-height: 220px;
  max-height: 220px;
  overflow: auto;
}

.terminal-bottom article {
  padding: 10px 12px;
  border-right: 1px solid rgba(255, 255, 255, 0.08);
}

.pro-bottom {
  display: grid;
  grid-template-rows: 44px minmax(0, 1fr);
}

.terminal-immersive {
  grid-template-rows: 48px auto auto;
}

.terminal-immersive .terminal-bottom {
  min-height: 260px;
  max-height: none;
  overflow: auto;
}

.bottom-tabs {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 0 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.bottom-tabs .flatten-bottom {
  margin-left: auto;
  border-color: rgba(39, 214, 143, 0.55);
  color: #27d68f;
}

.bottom-floating-pnl {
  margin-left: auto;
  align-self: center;
  padding: 0 12px;
  font-size: 12px;
  font-weight: 900;
}

.bottom-floating-pnl + .flatten-bottom {
  margin-left: 0;
}

#bottomPanel {
  display: grid;
  align-content: start;
  gap: 8px;
  min-height: 150px;
  padding: 10px;
}

.bottom-table-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: #9aa8b8;
  font-size: 12px;
  font-weight: 900;
}

.pager {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.pager button {
  min-height: 28px;
  padding: 0 10px;
  border: 1px solid rgba(247, 198, 92, 0.28);
  background: rgba(255, 255, 255, 0.04);
  color: var(--gold);
  cursor: pointer;
}

.pager button:disabled {
  opacity: 0.42;
  cursor: not-allowed;
}

.paged-table {
  max-height: 420px;
  overflow: auto;
}

.bottom-empty {
  display: grid;
  place-items: center;
  gap: 8px;
  min-height: 130px;
  color: var(--muted);
  text-align: center;
}

.bottom-empty strong {
  color: #fff;
  font-size: 18px;
}

.admin-filter,
.admin-pager {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.admin-filter {
  margin-top: 12px;
}

.admin-filter button {
  min-height: 34px;
  border: 1px solid var(--line);
  padding: 0 12px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--muted);
  cursor: pointer;
}

.admin-filter button.active {
  border-color: rgba(247, 198, 92, 0.72);
  color: var(--gold);
  background: rgba(247, 198, 92, 0.1);
}

.admin-pager {
  justify-content: flex-end;
  margin-top: 14px;
  color: var(--muted);
}

.admin-pager .button {
  min-height: 34px;
  padding: 0 10px;
}

.notice-list p {
  margin: 0;
  padding: 10px 0;
  color: var(--muted);
  border-bottom: 1px solid var(--line);
}

.notice-list p:last-child {
  border-bottom: 0;
}

.site-footer {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) 1.7fr;
  gap: 38px;
  padding: clamp(44px, 6vw, 72px) clamp(18px, 4vw, 56px);
  border-top: 1px solid var(--line);
  background: #07090a;
  color: var(--muted);
}

.footer-brand {
  margin-bottom: 16px;
}

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

.footer-cols div {
  display: grid;
  align-content: start;
  gap: 10px;
}

.footer-cols strong {
  color: var(--ink);
}

.footer-cols a,
.footer-cols span {
  color: var(--muted);
  line-height: 1.55;
}

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 650ms ease, transform 650ms ease;
}

.reveal.in-view {
  opacity: 1;
  transform: none;
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(39, 214, 143, 0.72);
  }
  70% {
    box-shadow: 0 0 0 12px rgba(39, 214, 143, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(39, 214, 143, 0);
  }
}

@keyframes floatPanel {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-8px);
  }
}

@keyframes bubbleFloat {
  0%,
  100% {
    translate: 0 0;
  }
  50% {
    translate: 0 -8px;
  }
}

@media (max-width: 980px) {
  .hero,
  .split,
  .checkout-layout,
  .pay-layout,
  .trade-terminal.wide,
  .dash-grid,
  .site-footer {
    grid-template-columns: 1fr;
  }

  .pricing-grid,
  .path-grid,
  .kpi-grid,
  .logo-band,
  .payout-grid,
  .bubble-grid,
  .rules-overview,
  .rules-details,
  .contract-size-grid,
  .quick-buy,
  .phase-grid,
  .payout-method-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .terminal-shell {
    grid-template-rows: auto auto auto;
  }

  .terminal-topbar {
    min-height: 48px;
  }

  .terminal-body {
    grid-template-columns: 44px minmax(0, 1fr);
  }

  .order-ticket {
    grid-column: 1 / -1;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .order-ticket h3,
  .trade-metrics,
  .ticket-actions,
  .order-ticket .wide {
    grid-column: 1 / -1;
  }

  .terminal-bottom {
    grid-template-columns: 1fr;
  }

  .price-card.featured {
    transform: none;
  }

  .order-item {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .nav {
    display: none;
  }

  h1 {
    font-size: 42px;
  }

  .pricing-grid,
  .path-grid,
  .kpi-grid,
  .form-row,
  .form-row.two,
  .trade-strip,
  .logo-band,
  .footer-cols,
  .payout-grid,
  .bubble-grid,
  .rules-overview,
  .rules-details,
  .contract-size-grid,
  .quick-buy,
  .quick-buy-form {
    grid-template-columns: 1fr;
  }

  .phase-grid,
  .payout-method-grid,
  .trading-calendar,
  .kyc-list.large,
  .kyc-form,
  .admin-grid,
  .admin-row {
    grid-template-columns: 1fr;
  }

  .bubble-grid article:nth-child(even) {
    transform: none;
  }

  .row {
    grid-template-columns: 1fr;
  }

  .floating-card {
    position: static;
    margin-top: 10px;
  }

  .dash-hero {
    flex-direction: column;
    align-items: flex-start;
  }

  .terminal-topbar {
    gap: 10px;
  }

  .terminal-stat {
    font-size: 12px;
  }

  .terminal-stat strong {
    font-size: 13px;
  }

  .terminal-body {
    grid-template-columns: 1fr;
  }

  .tool-rail {
    grid-template-columns: repeat(6, 34px);
    border-right: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }

  .order-ticket {
    grid-template-columns: 1fr;
  }

  .position-overlay {
    right: 20px;
    max-width: calc(100% - 40px);
    overflow-x: auto;
  }

  .drag-price-line span {
    right: 20px;
  }
}

.legal-page {
  max-width: 920px;
  margin: 0 auto;
  padding: 56px 24px 84px;
  background: #fff;
  color: #111;
}

body[data-page="legal"] {
  background: #fff;
  color: #111;
}

.legal-brand {
  display: inline-flex;
  margin-bottom: 42px;
  color: #111;
  text-decoration: none;
}

.legal-page h1 {
  margin: 0 0 8px;
  color: #111;
  font-size: clamp(42px, 7vw, 82px);
  letter-spacing: 0;
}

.legal-updated {
  margin: 0 0 40px;
  color: #555;
  font-weight: 700;
}

.legal-page section {
  border-top: 1px solid #ddd;
  padding: 26px 0;
}

.legal-page h2 {
  margin: 0 0 12px;
  color: #111;
  font-size: 22px;
}

.legal-page p {
  margin: 0;
  color: #222;
  line-height: 1.8;
}

@media (max-width: 780px) {
  .plan-type-switch {
    grid-template-columns: 1fr;
  }

  .wallet-grid {
    grid-template-columns: 1fr;
  }

  .wallet-qr {
    width: 116px;
    height: 116px;
  }

  .support-float {
    right: 12px;
    bottom: 12px;
    padding: 10px 13px;
  }
}
