:root {
  --bg: #f5f8fc;
  --surface: #ffffff;
  --surface-strong: #0f172a;
  --text: #0f172a;
  --muted: #60708a;
  --line: rgba(15, 23, 42, 0.12);
  --green: #2563eb;
  --green-dark: #1d4ed8;
  --lime: #93c5fd;
  --cyan: #06b6d4;
  --red: #db3a34;
  --amber: #d78a00;
  --shadow: 0 22px 70px rgba(15, 23, 42, 0.14);
  --radius: 8px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  background: var(--bg);
  font-family: "Inter", "Noto Sans KR", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  line-height: 1.5;
}

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

button,
textarea,
input {
  font: inherit;
}

.market-backdrop {
  position: fixed;
  inset: 0;
  z-index: -1;
  background: #eaf1fb;
}

#marketCanvas {
  width: 100%;
  height: 100%;
  display: block;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
  padding: 14px clamp(18px, 4vw, 56px);
  background: rgba(245, 248, 252, 0.88);
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
}

.brand,
.site-nav,
.header-actions,
.hero-actions,
.hero-metrics,
.panel-topline,
.price-row,
.ticker-track,
.prompt-chips {
  display: flex;
  align-items: center;
}

.brand {
  gap: 10px;
  font-weight: 800;
  letter-spacing: 0;
}

.brand-mark {
  display: inline-grid;
  width: 34px;
  height: 34px;
  place-items: center;
  color: #ffffff;
  background: var(--surface-strong);
  border-radius: 7px;
  font-size: 0.78rem;
}

.site-nav {
  justify-content: flex-start;
  gap: 6px;
}

.site-nav a,
.link-button {
  padding: 9px 11px;
  color: var(--muted);
  border-radius: 7px;
  font-size: 0.91rem;
  font-weight: 600;
}

.site-nav a:hover,
.link-button:hover {
  color: var(--text);
  background: rgba(15, 23, 42, 0.06);
}

.header-actions,
.hero-actions {
  gap: 10px;
}

.console-actions {
  justify-content: flex-end;
  gap: 10px;
}

.icon-button {
  position: relative;
  display: inline-grid;
  width: 36px;
  height: 36px;
  place-items: center;
  color: #5f636b;
  border-radius: 999px;
  transition: color 160ms ease, background 160ms ease, transform 160ms ease;
}

.icon-button:hover {
  color: var(--text);
  background: rgba(15, 23, 42, 0.06);
  transform: translateY(-1px);
}

.icon-button svg {
  width: 25px;
  height: 25px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.primary-button,
.secondary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 16px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  cursor: pointer;
  font-weight: 800;
  letter-spacing: 0;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.primary-button {
  color: #ffffff;
  background: var(--surface-strong);
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.2);
}

.primary-button:hover,
.secondary-button:hover {
  transform: translateY(-1px);
}

.secondary-button {
  color: var(--text);
  background: rgba(255, 255, 255, 0.72);
  border-color: var(--line);
}

.large {
  min-height: 50px;
  padding: 0 20px;
}

.hero-section {
  min-height: 92vh;
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(420px, 1fr);
  align-items: center;
  gap: clamp(28px, 5vw, 76px);
  padding: 116px clamp(18px, 5vw, 72px) 70px;
}

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

.eyebrow {
  margin: 0 0 14px;
  color: var(--green-dark);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.14em;
}

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

h1 {
  max-width: 780px;
  margin-bottom: 22px;
  font-size: clamp(3.1rem, 7vw, 6.75rem);
  line-height: 0.95;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 14px;
  font-size: clamp(2rem, 4vw, 4rem);
  line-height: 1.02;
  letter-spacing: 0;
}

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

.hero-description,
.section-heading p,
.builder-copy p,
.feature-card p,
.timeline-item p,
.site-footer {
  color: var(--muted);
}

.hero-description {
  max-width: 620px;
  margin-bottom: 30px;
  font-size: clamp(1rem, 1.7vw, 1.18rem);
}

.hero-metrics {
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 34px;
}

.hero-metrics div {
  width: 148px;
  padding: 13px 14px;
  background: rgba(255, 255, 255, 0.68);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.hero-metrics strong,
.bot-grid strong,
.price-row strong {
  display: block;
}

.hero-metrics strong {
  font-size: 1.55rem;
  line-height: 1;
}

.hero-metrics span,
.muted {
  color: var(--muted);
  font-size: 0.82rem;
}

.hero-product {
  min-width: 0;
}

.terminal-panel,
.builder-console,
.cockpit-panel,
.price-card,
.feature-card,
.mini-card,
.partner-panel,
.timeline-item {
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid rgba(15, 23, 42, 0.12);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.terminal-panel {
  padding: clamp(18px, 3vw, 28px);
  transform: rotate(1deg);
}

.panel-topline,
.price-row {
  justify-content: space-between;
  gap: 18px;
}

.panel-topline {
  margin-bottom: 22px;
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 700;
}

.status-pill {
  padding: 5px 9px;
  color: var(--green-dark);
  background: rgba(37, 99, 235, 0.12);
  border: 1px solid rgba(37, 99, 235, 0.22);
  border-radius: 999px;
}

.price-row strong {
  font-size: clamp(2.1rem, 4.5vw, 4.4rem);
  line-height: 0.98;
}

.gain,
.safe {
  color: var(--green-dark);
}

#heroChart {
  width: 100%;
  height: 250px;
  margin: 18px 0;
  background: rgba(15, 23, 42, 0.03);
  border-radius: var(--radius);
}

.bot-grid,
.product-grid,
.risk-grid,
.pricing-grid {
  display: grid;
  gap: 12px;
}

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

.bot-grid div {
  padding: 13px;
  background: rgba(15, 23, 42, 0.04);
  border-radius: 7px;
}

.ticker-strip {
  overflow: hidden;
  border-block: 1px solid rgba(15, 23, 42, 0.1);
  background: var(--surface-strong);
  color: #ffffff;
}

.ticker-track {
  width: max-content;
  gap: 38px;
  padding: 13px 0;
  animation: ticker 25s linear infinite;
}

.ticker-track span {
  font-size: 0.88rem;
  font-weight: 700;
  white-space: nowrap;
}

.ticker-track strong {
  color: var(--lime);
}

@keyframes ticker {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

.section {
  padding: clamp(70px, 9vw, 124px) clamp(18px, 5vw, 72px);
}

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

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

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

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

.feature-card {
  min-height: 230px;
  padding: 24px;
}

.feature-index {
  display: inline-block;
  margin-bottom: 52px;
  color: var(--green-dark);
  font-size: 0.8rem;
  font-weight: 800;
}

.builder-section {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(360px, 1fr);
  gap: clamp(24px, 5vw, 70px);
  align-items: center;
  background: rgba(255, 255, 255, 0.42);
  border-block: 1px solid rgba(15, 23, 42, 0.08);
}

.partner-section {
  background: rgba(255, 255, 255, 0.52);
  border-block: 1px solid rgba(15, 23, 42, 0.08);
}

.partner-layout {
  display: grid;
  grid-template-columns: minmax(340px, 0.86fr) minmax(0, 1.14fr);
  gap: clamp(18px, 4vw, 46px);
  align-items: stretch;
}

.partner-panel {
  padding: clamp(18px, 3vw, 30px);
}

.partner-amount {
  margin: 26px 0;
  padding: 18px;
  color: #ffffff;
  background: var(--surface-strong);
  border-radius: var(--radius);
}

.partner-amount span {
  display: block;
  margin-bottom: 8px;
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.84rem;
  font-weight: 700;
}

.partner-amount strong {
  display: block;
  font-size: clamp(2rem, 4vw, 4.2rem);
  line-height: 0.98;
}

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

.partner-list div {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}

.partner-list div:last-child {
  border-bottom: 0;
}

.partner-list span {
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 700;
}

.partner-list strong {
  text-align: right;
}

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

.mini-card {
  min-height: 240px;
  padding: 24px;
}

.mini-card p {
  color: var(--muted);
}

.trade-section {
  background: #eef4fc;
  border-top: 1px solid rgba(15, 23, 42, 0.08);
}

.builder-copy {
  max-width: 640px;
}

.prompt-chips {
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 24px;
}

.prompt-chips button {
  min-height: 36px;
  padding: 0 12px;
  color: var(--text);
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 999px;
  cursor: pointer;
  font-weight: 700;
}

.prompt-chips button:hover {
  border-color: rgba(37, 99, 235, 0.38);
}

.builder-console {
  padding: clamp(18px, 3vw, 30px);
}

.builder-console label {
  display: block;
  margin-bottom: 10px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
}

.builder-console textarea {
  width: 100%;
  min-height: 132px;
  resize: vertical;
  padding: 14px;
  color: var(--text);
  background: #f7faff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  outline: none;
}

.builder-console textarea:focus {
  border-color: rgba(37, 99, 235, 0.55);
}

.builder-console .primary-button {
  width: 100%;
  margin: 14px 0;
}

.strategy-result {
  display: grid;
  gap: 8px;
}

.result-row {
  display: grid;
  grid-template-columns: 82px 1fr;
  gap: 12px;
  padding: 12px;
  background: rgba(15, 23, 42, 0.04);
  border-radius: 7px;
}

.result-row span,
.risk-label {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 700;
}

.workflow-section {
  background: var(--surface-strong);
  color: #ffffff;
}

.workflow-section .eyebrow,
.workflow-section .timeline-item span {
  color: var(--lime);
}

.workflow-section .section-heading p,
.workflow-section .timeline-item p {
  color: rgba(255, 255, 255, 0.64);
}

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

.timeline-item {
  min-height: 220px;
  padding: 22px;
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.13);
  box-shadow: none;
}

.timeline-item span {
  display: block;
  margin-bottom: 48px;
  font-weight: 800;
}

.cockpit-section {
  min-height: 520px;
  display: flex;
  align-items: center;
  background:
    linear-gradient(rgba(245, 248, 252, 0.18), rgba(245, 248, 252, 0.82)),
    repeating-linear-gradient(90deg, rgba(15, 23, 42, 0.08) 0 1px, transparent 1px 92px),
    repeating-linear-gradient(0deg, rgba(15, 23, 42, 0.06) 0 1px, transparent 1px 92px);
}

.cockpit-panel {
  max-width: 920px;
  padding: clamp(22px, 4vw, 42px);
}

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

.risk-grid div {
  min-height: 112px;
  padding: 16px;
  background: rgba(15, 23, 42, 0.04);
  border-radius: 7px;
}

.risk-grid strong {
  display: block;
  margin-top: 20px;
  font-size: 1.05rem;
}

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

.price-card {
  padding: 26px;
}

.price-card.highlighted {
  border-color: rgba(37, 99, 235, 0.38);
  background: #f2f7ff;
}

.price {
  margin-bottom: 20px;
  font-size: 2.45rem;
  font-weight: 800;
  line-height: 1;
}

.price span {
  color: var(--muted);
  font-size: 1rem;
}

.price-card ul {
  min-height: 108px;
  margin: 0 0 22px;
  padding-left: 18px;
  color: var(--muted);
}

.price-card li + li {
  margin-top: 8px;
}

.price-card .primary-button,
.price-card .secondary-button {
  width: 100%;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 24px clamp(18px, 5vw, 72px);
  border-top: 1px solid var(--line);
  background: #ffffff;
  font-size: 0.88rem;
}

.site-footer span:first-child {
  color: var(--text);
  font-weight: 800;
}

/* Multi-page app structure */
.app-page,
.console-page {
  min-height: 100vh;
  background:
    linear-gradient(rgba(245, 248, 252, 0.8), rgba(245, 248, 252, 0.96)),
    repeating-linear-gradient(90deg, rgba(15, 23, 42, 0.06) 0 1px, transparent 1px 86px),
    repeating-linear-gradient(0deg, rgba(15, 23, 42, 0.04) 0 1px, transparent 1px 86px),
    #eaf1fb;
}

.site-nav a.active {
  color: var(--text);
  background: rgba(15, 23, 42, 0.07);
}

.app-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 18px;
  padding: 96px clamp(18px, 4vw, 56px) 48px;
}

.app-sidebar {
  position: sticky;
  top: 92px;
  align-self: start;
  display: grid;
  gap: 6px;
  padding: 16px;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 14px 44px rgba(15, 23, 42, 0.08);
}

.sidebar-kicker {
  margin-bottom: 8px;
  color: var(--green-dark);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.app-sidebar a {
  padding: 10px 11px;
  color: var(--muted);
  border-radius: 7px;
  font-size: 0.9rem;
  font-weight: 700;
}

.app-sidebar a.active,
.app-sidebar a:hover {
  color: var(--text);
  background: rgba(15, 23, 42, 0.06);
}

.app-content,
.console-content {
  display: grid;
  gap: 18px;
  min-width: 0;
}

.content-header,
.page-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px;
  align-items: end;
  padding: clamp(22px, 4vw, 42px);
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.content-header h1,
.page-hero h1 {
  max-width: 760px;
  margin-bottom: 12px;
  font-size: clamp(1.65rem, 2.1vw, 2.15rem);
  line-height: 1.18;
}

.content-band h2,
.section-heading h2 {
  font-size: clamp(1.3rem, 1.7vw, 1.8rem);
  line-height: 1.22;
}

.split-band h2 {
  font-size: clamp(1.25rem, 1.5vw, 1.65rem);
  line-height: 1.25;
}

.page-description {
  max-width: 720px;
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.96rem;
}

.header-cta,
.button-row,
.button-stack {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}

.button-stack {
  flex-direction: column;
  align-items: stretch;
}

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

.dash-card {
  min-height: 154px;
  padding: 20px;
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 18px 54px rgba(15, 23, 42, 0.09);
}

.dash-card.highlight {
  color: #ffffff;
  background: var(--surface-strong);
  border-color: transparent;
}

.dash-card.highlight-green {
  color: #ffffff;
  background: linear-gradient(135deg, var(--green) 0%, var(--green-dark) 100%);
  border-color: transparent;
  box-shadow: 0 18px 54px rgba(37, 99, 235, 0.22);
}

.dash-card span {
  display: block;
  margin-bottom: 16px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
}

.dash-card.highlight span,
.dash-card.highlight p,
.dash-card.highlight-green span,
.dash-card.highlight-green p {
  color: rgba(255, 255, 255, 0.68);
}

.dash-card strong {
  display: block;
  font-size: clamp(1.45rem, 2.2vw, 2.2rem);
  line-height: 1;
}

.dash-card p {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.dash-card a {
  display: inline-block;
  margin-top: 16px;
  color: var(--lime);
  font-weight: 800;
}

.content-band {
  padding: clamp(22px, 4vw, 36px);
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.split-band {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.72fr);
  gap: 24px;
  align-items: center;
}

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

.step-card {
  min-height: 170px;
  padding: 18px;
  background: rgba(15, 23, 42, 0.04);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.step-card span {
  display: block;
  margin-bottom: 34px;
  color: var(--green-dark);
  font-weight: 800;
}

.step-card.done,
.step-card.active {
  border-color: rgba(37, 99, 235, 0.28);
  background: rgba(37, 99, 235, 0.08);
}

.payout-request-grid {
  display: grid;
  grid-template-columns: minmax(240px, 0.42fr) minmax(0, 1fr);
  gap: 18px;
  align-items: stretch;
}

.payout-balance-card {
  display: grid;
  align-content: center;
  gap: 10px;
  min-height: 190px;
  padding: 22px;
  background: #f4f8ff;
  border: 1px solid rgba(0, 128, 90, 0.18);
  border-radius: 8px;
}

.payout-balance-card span {
  color: var(--green-dark);
  font-size: 0.82rem;
  font-weight: 800;
}

.payout-balance-card strong {
  display: block;
  font-size: clamp(1.9rem, 3vw, 2.75rem);
  line-height: 1;
}

.payout-balance-card p {
  margin: 0;
  color: var(--muted);
  font-weight: 700;
}

.payout-request-form {
  align-content: start;
  padding: 18px;
  background: rgba(15, 23, 42, 0.025);
  border: 1px solid var(--line);
  border-radius: 8px;
}

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

.payout-exchange-card {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) minmax(130px, auto) auto;
  align-items: center;
  gap: 14px;
  padding: 14px;
  background: rgba(15, 23, 42, 0.025);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.payout-exchange-title {
  display: flex;
  align-items: center;
  gap: 10px;
}

.payout-exchange-title strong,
.payout-exchange-title em {
  display: block;
}

.payout-exchange-title em {
  color: var(--muted);
  font-size: 0.82rem;
  font-style: normal;
  font-weight: 700;
}

.payout-exchange-amount {
  display: grid;
  gap: 2px;
}

.payout-exchange-amount span {
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 800;
}

.payout-exchange-amount strong {
  font-size: 1.05rem;
}

.payout-exchange-card button {
  min-height: 36px;
  padding-inline: 12px;
  box-shadow: none;
}

.payout-exchange-card button:disabled {
  cursor: not-allowed;
  opacity: 0.5;
  transform: none;
}

.payout-flow-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.mini-ledger,
.activity-list,
.data-table {
  display: grid;
  gap: 8px;
}

.mini-ledger div,
.activity-list div,
.table-row {
  display: grid;
  grid-template-columns: 0.8fr 1.4fr auto;
  gap: 12px;
  align-items: center;
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
}

.mini-ledger div {
  grid-template-columns: 1fr 1.3fr;
}

.account-ledger-table .table-row {
  grid-template-columns: 0.9fr 0.85fr 1fr 1fr 0.85fr;
}

.account-ledger-table {
  overflow-x: auto;
}

.account-ledger-table .table-row {
  min-width: 760px;
}

.mini-ledger div:last-child,
.activity-list div:last-child,
.table-row:last-child {
  border-bottom: 0;
}

.mini-ledger span,
.activity-list span,
.activity-list em,
.table-row span {
  color: var(--muted);
  font-size: 0.84rem;
  font-style: normal;
  font-weight: 700;
}

.strategy-use-section {
  display: grid;
  gap: 24px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(247, 250, 246, 0.82)),
    rgba(255, 255, 255, 0.78);
}

.strategy-use-section .section-heading,
.strategy-use-section .page-description {
  max-width: none;
}

.strategy-use-demo {
  display: grid;
  grid-template-columns: minmax(0, 6fr) minmax(0, 4fr);
  gap: 24px;
  align-items: start;
  width: 100%;
}

.strategy-input-panel,
.condition-board {
  min-width: 0;
  height: 548px;
  padding: 24px;
  background: rgba(255, 255, 255, 0.74);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.strategy-input-body {
  flex: 1;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  padding-right: 4px;
  scrollbar-gutter: stable;
}

.strategy-input-body::-webkit-scrollbar,
.condition-board-body::-webkit-scrollbar {
  width: 6px;
}

.strategy-input-body::-webkit-scrollbar-thumb,
.condition-board-body::-webkit-scrollbar-thumb {
  background: rgba(15, 23, 42, 0.16);
  border-radius: 999px;
}

.strategy-demo-topline,
.condition-board-header {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  flex-shrink: 0;
  margin-bottom: 16px;
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 800;
}

.strategy-demo-topline strong,
.condition-board-header span {
  color: var(--green-dark);
}

.strategy-chat-row {
  display: flex;
  margin: 0 0 14px;
}

.strategy-chat-row.user {
  justify-content: flex-end;
}

.strategy-bubble {
  max-width: min(78%, 760px);
  padding: 18px 22px;
  background: rgba(37, 99, 235, 0.1);
  border: 1px solid rgba(37, 99, 235, 0.14);
  border-radius: 22px 22px 6px 22px;
  color: var(--text);
  font-size: clamp(0.98rem, 1.08vw, 1.15rem);
  font-weight: 800;
  line-height: 1.5;
}

.strategy-analysis {
  width: 100%;
  padding-right: clamp(48px, 14%, 120px);
  color: var(--text);
  font-size: 0.92rem;
  font-weight: 650;
  line-height: 1.55;
}

.strategy-analysis h3 {
  margin: 14px 0 8px;
  color: var(--green-dark);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.strategy-analysis h3:first-child {
  margin-top: 0;
}

.strategy-analysis p,
.strategy-analysis li {
  color: var(--text);
  font-size: 0.92rem;
  font-weight: 650;
}

.strategy-analysis p {
  margin: 0;
}

.strategy-analysis ul {
  display: grid;
  gap: 7px;
  margin: 0;
  padding-left: 20px;
}

.strategy-chat-history-item.assistant {
  margin: 0;
}

.strategy-chat-history-item.assistant .strategy-analysis {
  opacity: 0.82;
  font-size: 0.88rem;
}

.condition-board {
  box-shadow: 0 26px 70px rgba(15, 23, 42, 0.08);
}

.condition-board-body {
  flex: 1;
  min-height: 0;
  display: grid;
  gap: 12px;
  align-content: start;
  grid-template-rows: repeat(3, 96px);
}

.condition-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  min-height: 96px;
  height: 96px;
  padding: 16px 18px;
  background: #ffffff;
  border: 1px solid rgba(15, 23, 42, 0.12);
  border-radius: var(--radius);
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.05);
}

.condition-card strong {
  display: inline-block;
  margin-left: 10px;
  font-size: 1.02rem;
  line-height: 1.2;
}

.condition-card p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 800;
  line-height: 1.35;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.condition-card button {
  min-height: 40px;
  padding: 0 14px;
  color: var(--text);
  background: rgba(245, 248, 252, 0.92);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  cursor: pointer;
  font-weight: 800;
}

.condition-pill {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  color: var(--green-dark);
  background: rgba(37, 99, 235, 0.1);
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 800;
}

.condition-pill.signal {
  color: #087085;
  background: rgba(8, 167, 196, 0.11);
}

.condition-pill.action {
  color: #1d4ed8;
  background: rgba(147, 197, 253, 0.24);
}

/* Strategy demo animation */
.strategy-chat-history {
  display: grid;
  gap: 10px;
  margin-bottom: 12px;
}

.strategy-chat-history-item {
  margin: 0;
}

.strategy-chat-history-item .strategy-bubble {
  opacity: 0.72;
  font-size: clamp(0.88rem, 1vw, 1rem);
  font-weight: 750;
}

.strategy-history-analysis {
  width: 100%;
  max-width: 100%;
  margin: 0;
  padding: 16px 18px;
  color: var(--text);
  background: rgba(245, 248, 252, 0.92);
  border: 1px solid var(--line);
  border-radius: 16px 16px 16px 6px;
  font-size: 0.88rem;
  font-weight: 650;
  line-height: 1.5;
}

.strategy-history-label {
  margin: 0 0 6px;
  color: var(--green-dark);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.strategy-history-analysis p:last-child {
  margin: 0;
}

.strategy-bubble-live {
  min-height: 2.8em;
}

.typing-cursor {
  display: inline-block;
  width: 2px;
  height: 1.05em;
  margin-left: 2px;
  vertical-align: text-bottom;
  background: var(--green-dark);
  animation: demoCursorBlink 0.9s step-end infinite;
}

.typing-cursor.is-hidden {
  display: none;
}

.strategy-chat-row.assistant {
  justify-content: flex-start;
  width: 100%;
  margin-top: 0;
  margin-bottom: 14px;
}

.strategy-assistant-bubble {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  max-width: min(78%, 760px);
  padding: 14px 18px;
  color: var(--muted);
  background: rgba(245, 248, 252, 0.92);
  border: 1px solid var(--line);
  border-radius: 22px 22px 22px 6px;
  font-size: 0.92rem;
  font-weight: 750;
}

.ai-dots {
  display: inline-flex;
  gap: 5px;
  align-items: center;
}

.ai-dots span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green-dark);
  animation: demoDotPulse 1.1s ease-in-out infinite;
}

.ai-dots span:nth-child(2) {
  animation-delay: 0.16s;
}

.ai-dots span:nth-child(3) {
  animation-delay: 0.32s;
}

.demo-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.strategy-chat-row.assistant.demo-hidden,
.condition-card.demo-hidden,
#analysisStructure li.demo-hidden {
  display: none;
}

.strategy-chat-row.assistant.demo-visible,
#analysisCopy.demo-visible {
  display: flex;
}

.condition-card.demo-visible {
  display: grid;
}

#analysisStructure li.demo-visible {
  display: list-item;
}

#analysisCopy.demo-reveal p {
  animation: demoFadeIn 0.65s ease forwards;
}

#analysisCopy li.demo-item-enter {
  animation: demoItemEnter 0.45s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.condition-board-empty {
  grid-row: 1 / -1;
  grid-column: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 312px;
  height: 312px;
  margin: 0;
  padding: 28px 16px;
  color: var(--muted);
  background: rgba(245, 248, 252, 0.72);
  border: 1px dashed rgba(15, 23, 42, 0.14);
  border-radius: var(--radius);
  font-size: 0.92rem;
  font-weight: 750;
  text-align: center;
  transition: opacity 0.35s ease, transform 0.35s ease;
}

.condition-board-empty.is-dismissed {
  opacity: 0;
  transform: translateY(-6px);
  pointer-events: none;
}

.condition-board.is-registering {
  box-shadow: 0 26px 70px rgba(15, 23, 42, 0.08), 0 0 0 1px rgba(37, 99, 235, 0.12);
}

.condition-card.demo-card-enter {
  animation: demoCardRegister 0.62s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.condition-card.demo-card-exit {
  animation: demoCardExit 0.28s ease forwards;
}

.condition-board-header span.is-updating {
  animation: demoCountPop 0.38s ease;
}

@keyframes demoCursorBlink {
  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0;
  }
}

@keyframes demoDotPulse {
  0%,
  80%,
  100% {
    opacity: 0.28;
    transform: translateY(0) scale(0.88);
  }

  40% {
    opacity: 1;
    transform: translateY(-3px) scale(1);
  }
}

@keyframes demoFadeIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes demoItemEnter {
  from {
    opacity: 0;
    transform: translateX(-10px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes demoCardRegister {
  from {
    opacity: 0;
    transform: translateX(28px) scale(0.94);
  }

  to {
    opacity: 1;
    transform: translateX(0) scale(1);
  }
}

@keyframes demoCardExit {
  from {
    opacity: 1;
    transform: translateX(0) scale(1);
  }

  to {
    opacity: 0;
    transform: translateX(-18px) scale(0.96);
  }
}

@keyframes demoCountPop {
  0% {
    transform: scale(1);
  }

  45% {
    transform: scale(1.14);
    color: var(--green);
  }

  100% {
    transform: scale(1);
  }
}

@media (prefers-reduced-motion: reduce) {
  .typing-cursor,
  .ai-dots span,
  .demo-fade-in,
  #analysisCopy.demo-reveal p,
  #analysisStructure li.demo-item-enter,
  .condition-card.demo-card-enter,
  .condition-board-header span.is-updating {
    animation: none !important;
  }

  .strategy-chat-row.assistant.demo-hidden,
  .condition-card.demo-hidden,
  #analysisStructure li.demo-hidden {
    display: revert;
  }
}

.content-page {
  display: grid;
  gap: 18px;
  padding: 96px clamp(18px, 4vw, 56px) 56px;
}

.console-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
  padding: 14px clamp(18px, 4vw, 56px);
  background: rgba(245, 248, 252, 0.92);
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
}

.console-header-minimal {
  grid-template-columns: auto auto 1fr auto;
}

.console-header-minimal .header-actions {
  justify-content: flex-end;
}

.console-site-nav {
  justify-self: start;
}

.console-switcher {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

.console-switcher a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 20px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: 0.98rem;
  font-weight: 800;
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.05);
}

.console-switcher a:hover {
  background: #ffffff;
  border-color: rgba(15, 23, 42, 0.18);
}

.console-switcher a.active {
  color: #ffffff;
  background: var(--green);
  border-color: var(--green);
  box-shadow: 0 12px 28px rgba(0, 128, 90, 0.2);
}

.console-shell {
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
  gap: 24px;
  padding: 24px clamp(18px, 4vw, 56px) 56px;
}

.console-side {
  top: 92px;
}

.console-panel {
  padding: clamp(20px, 3vw, 30px);
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.panel-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
}

.panel-heading h2 {
  margin-bottom: 0;
  font-size: clamp(1.25rem, 1.7vw, 1.75rem);
}

#strategy-create .panel-heading {
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}

.panel-heading a,
.table-row a {
  color: var(--green-dark);
  font-weight: 800;
}

.strategy-detail-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 8px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.strategy-detail-tab {
  min-height: 38px;
  padding: 0 14px;
  color: var(--muted);
  background: transparent;
  border: 0;
  border-radius: 7px;
  cursor: pointer;
  font: inherit;
  font-size: 0.9rem;
  font-weight: 800;
}

.strategy-detail-tab.active {
  color: #ffffff;
  background: var(--surface-strong);
}

.strategy-tab-panel {
  display: grid;
  gap: 18px;
}

.strategy-tab-panel[hidden] {
  display: none;
}

.tab-lead {
  margin: 0;
  padding: 16px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-size: 0.92rem;
}

.table-row {
  grid-template-columns: 1.25fr 0.8fr 0.8fr auto;
}

.table-row.head {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

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

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

.strategy-builder-grid,
.strategy-detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(300px, 0.65fr);
  gap: 16px;
  align-items: start;
}

.strategy-form,
.strategy-form label {
  display: grid;
  gap: 8px;
}

.strategy-form {
  gap: 14px;
}

.strategy-form label {
  color: var(--text);
  font-size: 0.82rem;
  font-weight: 800;
}

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

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

.strategy-form input,
.strategy-form select,
.strategy-form textarea {
  width: 100%;
  min-height: 46px;
  padding: 12px 13px;
  color: var(--text);
  background: #f7faff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font: inherit;
  outline: none;
}

.strategy-form textarea {
  resize: vertical;
  line-height: 1.55;
}

.strategy-form input:focus,
.strategy-form select:focus,
.strategy-form textarea:focus {
  border-color: rgba(37, 99, 235, 0.55);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

.strategy-action-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 2px;
}

.strategy-input-layout {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  align-items: stretch;
  min-height: 480px;
}

.strategy-chat {
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  gap: 18px;
  min-width: 0;
  min-height: 480px;
}

.chat-thread {
  display: grid;
  align-content: start;
  gap: 28px;
  min-height: 0;
  padding: 18px 2px 8px;
  overflow-y: auto;
}

.chat-message {
  max-width: min(900px, 82%);
  padding: 0;
  border: 0;
}

.chat-message p {
  margin-bottom: 0;
  color: var(--text);
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.75;
}

.chat-message h3,
.chat-message h4 {
  margin: 0 0 10px;
  color: var(--text);
}

.chat-message h3 {
  font-size: 1.15rem;
}

.chat-message h4 {
  margin-top: 18px;
  font-size: 1rem;
}

.chat-message ul {
  margin: 8px 0 0;
  padding-left: 20px;
  color: var(--text);
}

.chat-message li + li {
  margin-top: 6px;
}

.strategy-analysis {
  display: block;
}

.chat-message.assistant {
  justify-self: start;
}

.chat-message.user {
  justify-self: end;
  max-width: min(720px, 72%);
  padding: 15px 20px;
  background: rgba(15, 23, 42, 0.06);
  border-radius: 24px;
}

.chat-message.user p {
  font-weight: 600;
  line-height: 1.55;
}

.chat-composer {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 999px;
  box-shadow: 0 12px 36px rgba(15, 23, 42, 0.08);
}

.chat-composer.expanded {
  align-items: flex-end;
  border-radius: 28px;
}

.chat-composer textarea {
  flex: 1 1 auto;
  width: auto;
  min-height: 28px;
  max-height: 168px;
  resize: none;
  padding: 6px 4px;
  color: var(--text);
  background: transparent;
  border: 0;
  font: inherit;
  line-height: 1.45;
  outline: none;
}

.chat-composer textarea::placeholder {
  color: rgba(99, 112, 100, 0.74);
}

.chat-composer textarea:focus {
  box-shadow: none;
}

.chat-tool-button,
.chat-send-button {
  display: inline-grid;
  width: 38px;
  height: 38px;
  flex: 0 0 auto;
  place-items: center;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
}

.chat-tool-button {
  color: var(--text);
  background: transparent;
}

.chat-send-button {
  color: #ffffff;
  background: var(--surface-strong);
}

.chat-send-button:disabled {
  color: rgba(15, 23, 42, 0.32);
  background: rgba(15, 23, 42, 0.08);
  cursor: default;
}

.chat-tool-button svg,
.chat-send-button svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.strategy-visual-list {
  display: grid;
  align-content: start;
  gap: 12px;
  min-width: 0;
  min-height: 480px;
  padding: 14px;
  background: #f7faff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.visual-list-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 2px 2px 6px;
}

.visual-list-heading span {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.visual-list-heading strong {
  color: var(--muted);
  font-size: 0.82rem;
}

.visual-rule-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: end;
  padding: 14px;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.06);
}

.rule-chip {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  margin-right: 8px;
  padding: 2px 7px;
  vertical-align: 2px;
  color: var(--green-dark);
  background: rgba(37, 99, 235, 0.1);
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 800;
}

.visual-rule-card strong {
  display: block;
  margin-bottom: 5px;
  color: var(--text);
  font-size: 1rem;
}

.visual-rule-card p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 700;
}

.visual-rule-card button {
  min-height: 34px;
  padding: 0 12px;
  color: var(--text);
  background: rgba(15, 23, 42, 0.04);
  border: 1px solid var(--line);
  border-radius: 8px;
  cursor: pointer;
  font-size: 0.82rem;
  font-weight: 800;
}

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

.scan-period-tabs,
.scan-date-range,
.schedule-power-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.scan-period-tab,
.scan-date-range button,
.schedule-preset-grid button,
.scan-log-pager button {
  min-height: 36px;
  padding: 0 13px;
  color: var(--muted);
  background: rgba(15, 23, 42, 0.04);
  border: 1px solid var(--line);
  border-radius: 8px;
  cursor: pointer;
  font: inherit;
  font-size: 0.84rem;
  font-weight: 800;
}

.scan-period-tab.active,
.schedule-preset-grid button.active {
  color: #ffffff;
  background: var(--surface-strong);
  border-color: var(--surface-strong);
}

.scan-date-range {
  align-items: center;
  margin-top: 14px;
}

.scan-date-range label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 800;
}

.scan-date-range input {
  min-height: 40px;
  padding: 0 10px;
  color: var(--text);
  background: #f7faff;
  border: 1px solid var(--line);
  border-radius: 8px;
  font: inherit;
}

.scan-date-range button {
  min-height: 40px;
}

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

.scan-stat-grid article {
  padding: 12px;
  background: #f7faff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.scan-stat-grid span {
  display: block;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 800;
}

.scan-stat-grid strong {
  font-size: 1rem;
}

.strategy-tab-panel .console-panel > h2 {
  margin-bottom: 12px;
  font-size: 1.05rem;
  line-height: 1.25;
}

.strategy-tab-panel .panel-heading h2 {
  font-size: 1.05rem;
}

.strategy-tab-panel .panel-heading p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.88rem;
}

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

.compact-table .table-row {
  grid-template-columns: repeat(4, minmax(120px, 1fr));
}

.scan-log-table .table-row {
  grid-template-columns: 1.05fr 0.65fr 0.7fr 1.4fr;
}

.scan-log-pager {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 12px;
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 800;
}

.schedule-power-toggle {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  cursor: pointer;
  font-weight: 800;
}

.schedule-power-toggle input {
  position: absolute;
  opacity: 0;
}

.schedule-power-track {
  position: relative;
  width: 46px;
  height: 26px;
  background: rgba(15, 23, 42, 0.12);
  border-radius: 999px;
}

.schedule-power-track::after {
  content: "";
  position: absolute;
  top: 4px;
  left: 4px;
  width: 18px;
  height: 18px;
  background: #ffffff;
  border-radius: 999px;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.18);
}

.schedule-power-toggle input:checked + .schedule-power-track {
  background: var(--green);
}

.schedule-power-toggle input:checked + .schedule-power-track::after {
  transform: translateX(20px);
}

.schedule-preset-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
}

.strategy-log-list article {
  padding: 15px;
  background: #f7faff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.strategy-log-list .log-time {
  display: block;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
}

.strategy-log-list strong {
  display: block;
  margin-bottom: 5px;
}

.strategy-log-list p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 700;
}

.entry-history-table .table-row {
  grid-template-columns: 1.1fr 0.6fr 0.7fr 1fr 0.6fr;
}

.schedule-form {
  gap: 14px;
}

.auto-trade-card {
  display: grid;
  gap: 10px;
  margin-bottom: 18px;
  padding: 18px;
  background: rgba(37, 99, 235, 0.08);
  border: 1px solid rgba(37, 99, 235, 0.26);
  border-radius: var(--radius);
}

.toggle-check {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--green-dark);
  font-weight: 800;
}

.toggle-check input,
.symbol-chip input {
  width: 16px;
  height: 16px;
  accent-color: var(--green-dark);
}

.auto-trade-card p,
.auto-trade-card small,
.settings-help {
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.55;
}

.activation-status {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: var(--radius);
}

.activation-status strong {
  color: var(--green-dark);
  font-size: 0.9rem;
}

.activation-status a {
  color: var(--amber);
  font-size: 0.84rem;
  font-weight: 800;
}

.settings-form {
  padding-top: 4px;
}

.strategy-title-grid {
  margin-bottom: 4px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}

.symbol-chip-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.symbol-chip {
  display: inline-flex !important;
  align-items: center;
  gap: 7px !important;
  min-height: 38px;
  padding: 0 12px;
  color: var(--text) !important;
  background: #f7faff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-size: 0.86rem !important;
  font-weight: 800 !important;
}

.symbol-chip.active {
  color: var(--green-dark) !important;
  background: rgba(37, 99, 235, 0.08);
  border-color: rgba(37, 99, 235, 0.34);
}

.form-grid.settings {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 4px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.settings-help {
  margin-top: 4px;
}

.settings-read-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  padding-top: 4px;
}

.settings-read-grid div {
  padding: 14px;
  background: rgba(15, 23, 42, 0.04);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.settings-read-grid span {
  display: block;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 800;
}

.settings-read-grid strong {
  font-size: 0.92rem;
}

.strategy-flow-card {
  padding: 18px;
  background: rgba(15, 23, 42, 0.04);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.flow-mini {
  display: grid;
  gap: 9px;
  margin-top: 16px;
}

.flow-mini div {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 10px;
  align-items: center;
  padding: 10px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: var(--radius);
}

.flow-mini strong {
  color: var(--green-dark);
  font-size: 0.78rem;
}

.flow-mini span {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 700;
}

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

.code-label {
  display: block;
  margin-bottom: 8px;
  color: var(--green-dark);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.strategy-code {
  margin: 0;
  padding: 18px;
  color: #e8eee9;
  background: #0f172a;
  border: 1px solid rgba(15, 23, 42, 0.16);
  border-radius: var(--radius);
  overflow-x: auto;
  font-size: 0.84rem;
  line-height: 1.65;
  box-shadow: 0 18px 54px rgba(15, 23, 42, 0.12);
}

.strategy-code.large {
  max-height: 560px;
}

.strategy-table .table-row {
  grid-template-columns: 1.35fr 0.8fr 0.75fr 0.85fr auto;
}

.strategy-table .table-row em {
  display: block;
  margin-top: 5px;
  color: var(--muted);
  font-size: 0.78rem;
  font-style: normal;
  font-weight: 700;
}

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

.strategy-meta-grid div,
.validation-list div,
.rule-card {
  padding: 14px;
  background: rgba(15, 23, 42, 0.04);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.strategy-meta-grid span,
.validation-list span,
.rule-card span {
  display: block;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 800;
}

.strategy-meta-grid strong,
.validation-list strong {
  font-size: 0.92rem;
}

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

.validation-list .pass {
  border-color: rgba(37, 99, 235, 0.26);
  background: rgba(37, 99, 235, 0.08);
}

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

.rule-card {
  min-height: 180px;
}

.rule-card.active {
  border-color: rgba(37, 99, 235, 0.28);
  background: rgba(37, 99, 235, 0.08);
}

.rule-card h3 {
  margin-bottom: 8px;
  font-size: 1.05rem;
}

.rule-card p {
  color: var(--muted);
  font-size: 0.86rem;
}

.rule-card a {
  display: inline-block;
  margin-top: 14px;
  color: var(--green-dark);
  font-weight: 800;
}

/* Auth */
.auth-page {
  min-height: 100vh;
  background:
    linear-gradient(rgba(245, 248, 252, 0.42), rgba(245, 248, 252, 0.92)),
    repeating-linear-gradient(90deg, rgba(15, 23, 42, 0.07) 0 1px, transparent 1px 86px),
    repeating-linear-gradient(0deg, rgba(15, 23, 42, 0.05) 0 1px, transparent 1px 86px),
    #eaf1fb;
}

.auth-header {
  min-height: 70px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 14px clamp(18px, 4vw, 56px);
}

.auth-shell {
  min-height: calc(100vh - 70px);
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(360px, 0.72fr);
  gap: clamp(28px, 6vw, 90px);
  align-items: center;
  padding: 40px clamp(18px, 6vw, 88px) 72px;
}

.auth-context {
  max-width: 760px;
}

.auth-context h1 {
  max-width: 760px;
  font-size: clamp(1.85rem, 3vw, 2.65rem);
  line-height: 1.12;
}

.auth-description {
  max-width: 620px;
  color: var(--muted);
  font-size: clamp(1rem, 1.4vw, 1.15rem);
}

.auth-status-panel,
.auth-card {
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.auth-status-panel {
  max-width: 560px;
  margin-top: 34px;
  padding: 24px;
}

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

.auth-check-list div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
}

.auth-check-list div:last-child {
  border-bottom: 0;
}

.auth-check-list span,
.auth-card-head p,
.auth-footnote,
.auth-note-box span {
  color: var(--muted);
}

.auth-check-list span {
  font-size: 0.84rem;
  font-weight: 700;
}

.auth-check-list strong {
  text-align: right;
}

.auth-card {
  width: 100%;
  padding: clamp(22px, 3vw, 34px);
}

.auth-card-head {
  margin-bottom: 24px;
}

.auth-card-head h2 {
  margin-bottom: 8px;
  font-size: clamp(1.45rem, 2.2vw, 1.85rem);
}

.auth-card-head p {
  margin-bottom: 0;
}

.auth-form {
  display: grid;
  gap: 10px;
}

.auth-form label {
  color: var(--text);
  font-size: 0.82rem;
  font-weight: 800;
}

.auth-form input[type="email"],
.auth-form input[type="password"] {
  width: 100%;
  min-height: 48px;
  padding: 0 13px;
  color: var(--text);
  background: #f7faff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  outline: none;
}

.auth-form input:focus {
  border-color: rgba(37, 99, 235, 0.55);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

.auth-form-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 6px 0 4px;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 700;
}

.auth-checkbox {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
}

.auth-checkbox input {
  width: 16px;
  height: 16px;
  accent-color: var(--green-dark);
}

.auth-submit {
  width: 100%;
  margin-top: 6px;
}

.auth-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 22px 0;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
}

.auth-divider::before,
.auth-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--line);
}

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

.auth-oauth .secondary-button {
  width: 100%;
  background: #ffffff;
}

.auth-note-box {
  margin-top: 20px;
  padding: 14px;
  background: rgba(37, 99, 235, 0.08);
  border: 1px solid rgba(37, 99, 235, 0.18);
  border-radius: var(--radius);
}

.auth-note-box span,
.auth-note-box strong {
  display: block;
}

.auth-note-box strong {
  margin-top: 4px;
  font-size: 0.9rem;
}

.auth-footnote {
  margin: 18px 0 0;
  font-size: 0.78rem;
}

.exchange-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 18px;
}

.exchange-search {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1 1 260px;
  max-width: 360px;
  min-height: 42px;
  padding: 0 14px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid var(--line);
  border-radius: 999px;
}

.exchange-search svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  fill: none;
  stroke: var(--muted);
  stroke-width: 2;
}

.exchange-search input {
  width: 100%;
  border: 0;
  outline: none;
  background: transparent;
  color: var(--text);
}

.exchange-search input::placeholder {
  color: var(--muted);
}

.exchange-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.exchange-filter {
  min-height: 36px;
  padding: 0 14px;
  color: var(--muted);
  background: rgba(15, 23, 42, 0.05);
  border: 1px solid transparent;
  border-radius: 999px;
  cursor: pointer;
  font-size: 0.86rem;
  font-weight: 700;
  transition: background 160ms ease, color 160ms ease, border-color 160ms ease;
}

.exchange-filter:hover {
  color: var(--text);
  background: rgba(15, 23, 42, 0.08);
}

.exchange-filter.active {
  color: #ffffff;
  background: var(--surface-strong);
  border-color: var(--surface-strong);
}

.exchange-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.92);
}

.exchange-table {
  width: 100%;
  min-width: 920px;
  border-collapse: collapse;
}

.exchange-table th,
.exchange-table td {
  padding: 14px 16px;
  text-align: left;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}

.exchange-table th {
  color: var(--muted);
  background: rgba(15, 23, 42, 0.03);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

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

.exchange-table tbody tr:hover {
  background: rgba(37, 99, 235, 0.04);
}

.exchange-table tbody tr[data-recommended="true"] {
  background: rgba(37, 99, 235, 0.06);
}

.exchange-cell {
  display: flex;
  align-items: center;
  gap: 12px;
}

.exchange-logo {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  color: #ffffff;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.exchange-logo.bitget { background: #00c4b3; }
.exchange-logo.bybit { background: #f7a600; color: #0f172a; }
.exchange-logo.binance { background: #f0b90b; color: #0f172a; }
.exchange-logo.okx { background: #0f172a; }
.exchange-logo.mexc { background: #0043ff; }
.exchange-logo.gate { background: #17e6a0; color: #0f172a; }
.exchange-logo.flipster { background: #5b6cff; }

.exchange-cell strong {
  display: block;
  font-size: 0.95rem;
}

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

.exchange-api-card {
  padding: 0;
  background: #f7faff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.exchange-api-summary {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) auto minmax(190px, 0.8fr) auto;
  align-items: center;
  gap: 12px;
  padding: 15px 16px;
}

.exchange-api-summary div {
  display: flex;
  align-items: center;
  gap: 10px;
}

.exchange-api-meta {
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 700;
}

.exchange-detail-button {
  min-height: 34px;
  padding: 0 12px;
  box-shadow: none;
}

.exchange-api-fields {
  margin-top: 0;
  padding: 16px;
  border-top: 1px solid var(--line);
}

.exchange-api-modal[hidden] {
  display: none;
}

.exchange-api-modal {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: grid;
  place-items: center;
  padding: 20px;
}

.exchange-api-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.32);
}

.exchange-api-modal-panel {
  position: relative;
  width: min(720px, 100%);
  padding: 24px;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.exchange-api-modal-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
}

.exchange-api-modal-header h2 {
  margin-bottom: 0;
  font-size: 1.45rem;
}

.broker-code-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
  padding: 16px;
  background: #f4f8ff;
  border: 1px solid rgba(0, 128, 90, 0.18);
  border-radius: 8px;
}

.broker-code-box span {
  display: block;
  margin-bottom: 4px;
  color: var(--green-dark);
  font-size: 0.8rem;
  font-weight: 800;
}

.broker-code-box strong {
  display: block;
  margin-bottom: 7px;
  font-size: 1.2rem;
  letter-spacing: 0.04em;
}

.broker-code-box p {
  max-width: 520px;
  margin: 0;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.55;
}

.broker-code-copy {
  flex: 0 0 auto;
  min-height: 38px;
  padding: 0 14px;
  box-shadow: none;
}

.exchange-badges {
  display: inline-flex;
  gap: 6px;
  margin-top: 4px;
}

.exchange-badge {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  padding: 0 7px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 800;
}

.exchange-badge.boost {
  color: var(--green-dark);
  background: rgba(37, 99, 235, 0.12);
}

.exchange-badge.boost::before {
  content: "↑ ";
}

.exchange-badge.events {
  color: #0b6ea8;
  background: rgba(8, 167, 196, 0.14);
}

.exchange-badge.events::before {
  content: "★ ";
}

.exchange-table .savings {
  color: var(--green-dark);
  font-size: 0.95rem;
}

.exchange-event-link {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 700;
  transition: background 160ms ease, border-color 160ms ease;
}

.exchange-event-link:hover {
  background: rgba(15, 23, 42, 0.04);
  border-color: rgba(15, 23, 42, 0.2);
}

.exchange-no-event {
  color: var(--muted);
}

.exchange-note {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 0.82rem;
}

@media (max-width: 1280px) {
  .content-header,
  .page-hero,
  .split-band {
    grid-template-columns: 1fr;
    align-items: start;
  }
}

@media (max-width: 1060px) {
  .site-header {
    grid-template-columns: auto auto;
  }

  .site-nav {
    display: none;
  }

  .header-actions {
    justify-content: end;
  }

  .hero-section,
  .builder-section,
  .partner-layout,
  .app-shell,
  .console-shell,
  .content-header,
  .page-hero,
  .split-band,
  .auth-shell {
    grid-template-columns: 1fr;
  }

  .app-sidebar {
    position: static;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .sidebar-kicker {
    grid-column: 1 / -1;
  }

  .auth-context {
    max-width: 860px;
  }

  .hero-product {
    max-width: 760px;
  }

  .product-grid,
  .trade-grid,
  .dashboard-grid,
  .console-kpi-grid,
  .strategy-summary-grid,
  .form-grid.settings,
  .settings-read-grid,
  .step-grid,
  .console-card-grid,
  .rule-editor-grid,
  .risk-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .strategy-builder-grid,
  .strategy-detail-grid,
  .strategy-code-grid,
  .strategy-use-demo,
  .payout-request-grid {
    grid-template-columns: 1fr;
  }

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

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

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

@media (max-width: 720px) {
  .site-header {
    gap: 12px;
    padding: 10px 14px;
  }

  .console-header {
    grid-template-columns: 1fr auto;
    gap: 12px;
    padding: 10px 14px;
  }

  .console-switcher {
    grid-column: 1 / -1;
    justify-content: flex-start;
    overflow-x: auto;
  }

  .console-switcher a {
    min-height: 40px;
    padding-inline: 14px;
    white-space: nowrap;
    font-size: 0.9rem;
  }

  .brand span:last-child,
  .link-button {
    display: none;
  }

  .primary-button,
  .secondary-button {
    min-height: 40px;
    padding-inline: 13px;
    font-size: 0.9rem;
  }

  .hero-section {
    min-height: 0;
    padding-top: 96px;
  }

  .app-shell,
  .content-page {
    padding: 82px 14px 42px;
  }

  .console-shell {
    padding: 14px 14px 42px;
  }

  .app-sidebar {
    grid-template-columns: 1fr 1fr;
    padding: 12px;
  }

  .content-header,
  .page-hero {
    padding: 22px;
  }

  .strategy-input-panel,
  .condition-board {
    height: auto;
    min-height: 480px;
    max-height: 548px;
    padding: 18px;
  }

  .strategy-use-demo {
    grid-template-columns: 1fr;
    max-width: none;
  }

  .condition-board-body {
    grid-template-rows: repeat(3, minmax(96px, auto));
  }

  .condition-card {
    grid-template-columns: 1fr;
    gap: 12px;
    height: auto;
    min-height: 96px;
  }

  .strategy-bubble {
    padding: 18px 20px;
    border-radius: 22px 22px 6px 22px;
  }

  .strategy-chat-row {
    margin: 0 0 14px;
  }

  .condition-card button {
    justify-self: start;
  }

  h1 {
    font-size: clamp(2.65rem, 17vw, 4rem);
  }

  h2 {
    font-size: clamp(2rem, 11vw, 3rem);
  }

  .content-header h1,
  .page-hero h1 {
    font-size: clamp(1.55rem, 6.5vw, 2rem);
    line-height: 1.2;
  }

  .content-band h2,
  .section-heading h2,
  .split-band h2,
  .panel-heading h2 {
    font-size: clamp(1.35rem, 5.5vw, 1.75rem);
    line-height: 1.2;
  }

  .auth-context h1 {
    font-size: clamp(1.65rem, 7vw, 2.15rem);
    line-height: 1.15;
  }

  .hero-actions,
  .hero-metrics {
    align-items: stretch;
  }

  .hero-actions a,
  .hero-metrics div {
    flex: 1 1 100%;
  }

  .terminal-panel {
    transform: none;
  }

  .bot-grid,
  .product-grid,
  .trade-grid,
  .dashboard-grid,
  .console-kpi-grid,
  .strategy-summary-grid,
  .scan-stat-grid,
  .schedule-preset-grid,
  .step-grid,
  .console-card-grid,
  .rule-editor-grid,
  .partner-copy-grid,
  .timeline,
  .risk-grid,
  .pricing-grid {
    grid-template-columns: 1fr;
  }

  .strategy-builder-grid,
  .strategy-detail-grid,
  .strategy-input-layout,
  .strategy-code-grid,
  .exchange-api-summary,
  .form-grid.two,
  .form-grid.settings,
  .settings-read-grid,
  .strategy-meta-grid,
  .payout-flow-grid,
  .payout-exchange-card {
    grid-template-columns: 1fr;
  }

  .partner-list div {
    grid-template-columns: 1fr;
  }

  .partner-list strong {
    text-align: left;
  }

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

  .chat-message {
    max-width: 100%;
  }

  .chat-message.user {
    max-width: 100%;
    padding: 13px 16px;
  }

  .strategy-input-layout,
  .strategy-chat,
  .strategy-visual-list {
    min-height: 0;
  }

  .chat-composer {
    grid-template-columns: 1fr;
  }

  .chat-composer button {
    min-height: 42px;
  }

  .mini-ledger div,
  .activity-list div,
  .table-row {
    grid-template-columns: 1fr;
  }

  .account-ledger-table .table-row {
    grid-template-columns: 0.9fr 0.85fr 1fr 1fr 0.85fr;
  }

  .header-cta,
  .button-row,
  .hero-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .exchange-toolbar {
    flex-direction: column;
    align-items: stretch;
  }

  .exchange-search {
    max-width: none;
  }

  .exchange-filters {
    overflow-x: auto;
    flex-wrap: nowrap;
    padding-bottom: 2px;
  }

  .site-footer {
    flex-direction: column;
  }

  .auth-header {
    padding: 10px 14px;
  }

  .auth-shell {
    padding: 28px 14px 52px;
  }

  .auth-status-panel {
    margin-top: 24px;
  }

  .auth-oauth {
    grid-template-columns: 1fr;
  }

  .auth-form-row,
  .auth-check-list div {
    align-items: flex-start;
    flex-direction: column;
  }

  .auth-check-list strong {
    text-align: left;
  }
}

/* Bitunix-inspired exchange theme for frontend-v3. */
:root {
  --bg: #050914;
  --surface: #101827;
  --surface-strong: #60a5fa;
  --text: #f5f8ff;
  --muted: #94a3b8;
  --line: rgba(255, 255, 255, 0.09);
  --green: #60a5fa;
  --green-dark: #3b82f6;
  --lime: #bfdbfe;
  --cyan: #22d3ee;
  --red: #ff5f6d;
  --amber: #f7b955;
  --shadow: 0 22px 72px rgba(0, 0, 0, 0.48);
  --radius: 8px;
  --panel: rgba(16, 24, 39, 0.9);
  --panel-soft: rgba(255, 255, 255, 0.045);
  --panel-strong: rgba(96, 165, 250, 0.14);
  --gradient: linear-gradient(135deg, #60a5fa 0%, #2563eb 54%, #22d3ee 100%);
  --glow: rgba(96, 165, 250, 0.3);
}

body,
.app-page,
.console-page,
.auth-page {
  color: var(--text);
  background:
    radial-gradient(780px 460px at 18% 8%, rgba(96, 165, 250, 0.16), transparent 60%),
    radial-gradient(640px 420px at 88% 12%, rgba(34, 211, 238, 0.09), transparent 65%),
    linear-gradient(rgba(255, 255, 255, 0.032) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.032) 1px, transparent 1px),
    var(--bg);
  background-size: auto, auto, 78px 78px, 78px 78px, auto;
  -webkit-font-smoothing: antialiased;
}

.market-backdrop {
  background: var(--bg);
  opacity: 0.4;
}

.site-header,
.console-header,
.auth-header {
  background: rgba(5, 9, 20, 0.88);
  border-bottom: 1px solid rgba(96, 165, 250, 0.13);
  box-shadow: 0 16px 44px rgba(0, 0, 0, 0.36);
}

.brand,
h1,
h2,
h3,
.content-header h1,
.page-hero h1,
.panel-heading h2,
.chat-message p,
.chat-message h3,
.chat-message h4,
.chat-message ul,
.strategy-analysis p,
.strategy-analysis li,
.condition-card p,
.strategy-form label,
.auth-form label {
  color: var(--text);
}

.brand-mark {
  color: #050914;
  background: var(--gradient);
  border-radius: 6px;
  box-shadow: 0 0 0 1px rgba(96, 165, 250, 0.22), 0 16px 42px var(--glow);
}

.brand span:last-child {
  font-weight: 800;
}

.site-nav a,
.link-button,
.app-sidebar a,
.strategy-detail-tab,
.scan-period-tab,
.scan-date-range button,
.schedule-preset-grid button,
.scan-log-pager button,
.exchange-filter,
.dash-card span,
.dash-card p,
.hero-metrics span,
.mini-ledger span,
.activity-list span,
.activity-list em,
.table-row span,
.result-row span,
.risk-label,
.visual-list-heading span,
.visual-list-heading strong,
.visual-rule-card p,
.scan-stat-grid span,
.strategy-log-list .log-time,
.strategy-log-list p,
.strategy-meta-grid span,
.validation-list span,
.rule-card span,
.rule-card p,
.exchange-api-meta,
.broker-code-box p,
.partner-list span,
.payout-exchange-title em,
.payout-exchange-amount span,
.hero-description,
.section-heading p,
.builder-copy p,
.feature-card p,
.timeline-item p,
.site-footer,
.page-description,
.tab-lead,
.auth-description,
.auth-card-head p,
.auth-footnote,
.auth-note-box span,
.exchange-note,
.settings-help,
.auto-trade-card p,
.auto-trade-card small {
  color: var(--muted);
}

.site-nav a:hover,
.site-nav a.active,
.link-button:hover,
.app-sidebar a:hover,
.app-sidebar a.active {
  color: var(--text);
  background: rgba(96, 165, 250, 0.1);
}

.icon-button {
  color: var(--muted);
  border-radius: 6px;
}

.icon-button:hover {
  color: var(--green);
  background: rgba(96, 165, 250, 0.1);
}

.primary-button,
.chat-send-button,
.console-switcher a.active,
.scan-period-tab.active,
.schedule-preset-grid button.active,
.exchange-filter.active,
.strategy-detail-tab.active {
  color: #050914;
  background: var(--green);
  border-color: rgba(96, 165, 250, 0.72);
  box-shadow: 0 14px 38px rgba(96, 165, 250, 0.22);
}

.secondary-button,
.ghost-button,
.console-switcher a,
.condition-card button,
.visual-rule-card button,
.exchange-event-link,
.exchange-detail-button,
.broker-code-copy,
.scan-date-range button,
.schedule-preset-grid button,
.scan-log-pager button {
  color: var(--text);
  background: rgba(255, 255, 255, 0.055);
  border-color: var(--line);
}

.primary-button:hover,
.secondary-button:hover,
.console-switcher a:hover,
.condition-card button:hover,
.visual-rule-card button:hover,
.exchange-event-link:hover {
  border-color: rgba(96, 165, 250, 0.44);
  transform: translateY(-1px);
}

.eyebrow,
.sidebar-kicker,
.feature-index,
.code-label,
.panel-heading a,
.table-row a,
.rule-card a,
.condition-board-header span,
.strategy-demo-topline strong {
  color: var(--green);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  width: 28px;
  height: 1px;
  background: var(--green);
}

.hero-section {
  min-height: calc(100vh - 20px);
  padding-top: 104px;
}

.hero-copy h1 {
  max-width: 840px;
  font-size: clamp(3.15rem, 6.2vw, 6.1rem);
  line-height: 0.98;
}

.content-header h1,
.page-hero h1 {
  max-width: 980px;
  font-size: clamp(2rem, 3.2vw, 3.05rem);
  line-height: 1.08;
}

.content-band h2,
.section-heading h2,
.split-band h2 {
  font-size: clamp(1.55rem, 2.25vw, 2.3rem);
}

.terminal-panel,
.builder-console,
.cockpit-panel,
.price-card,
.feature-card,
.mini-card,
.partner-panel,
.timeline-item,
.app-sidebar,
.content-header,
.page-hero,
.dash-card,
.content-band,
.strategy-input-panel,
.condition-board,
.condition-card,
.console-panel,
.tab-lead,
.strategy-detail-tabs,
.strategy-visual-list,
.visual-rule-card,
.scan-stat-grid article,
.strategy-log-list article,
.auto-trade-card,
.activation-status,
.settings-read-grid div,
.strategy-flow-card,
.flow-mini div,
.strategy-meta-grid div,
.validation-list div,
.rule-card,
.auth-status-panel,
.auth-card,
.exchange-search,
.exchange-table-wrap,
.exchange-api-card,
.exchange-api-modal-panel,
.broker-code-box,
.payout-balance-card,
.payout-request-form,
.payout-exchange-card,
.step-card {
  background: var(--panel);
  border-color: var(--line);
  box-shadow: var(--shadow);
}

.terminal-panel,
.content-header,
.page-hero,
.cockpit-panel,
.auth-card {
  background:
    radial-gradient(620px 300px at 84% 12%, rgba(96, 165, 250, 0.12), transparent 72%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.028)),
    rgba(16, 24, 39, 0.92);
}

.terminal-panel {
  transform: none;
  border-radius: 18px;
  overflow: hidden;
}

.content-header,
.page-hero {
  border-radius: 14px;
}

.dash-card,
.feature-card,
.price-card,
.console-panel {
  position: relative;
  overflow: hidden;
}

.dash-card::before,
.feature-card::before,
.price-card::before,
.console-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(96, 165, 250, 0.05) 1px, transparent 1px),
    radial-gradient(300px 170px at 82% 0%, rgba(96, 165, 250, 0.1), transparent 74%);
  background-size: 42px 42px, auto;
  pointer-events: none;
}

.dash-card > *,
.feature-card > *,
.price-card > *,
.console-panel > * {
  position: relative;
  z-index: 1;
}

.dash-card.highlight,
.dash-card.highlight-green,
.price-card.highlighted,
.validation-list .pass,
.rule-card.active,
.step-card.done,
.step-card.active,
.auto-trade-card {
  color: var(--text);
  background:
    radial-gradient(420px 220px at 76% 0%, rgba(96, 165, 250, 0.16), transparent 70%),
    linear-gradient(135deg, rgba(96, 165, 250, 0.12), rgba(34, 211, 238, 0.07));
  border-color: rgba(96, 165, 250, 0.36);
}

.dash-card.highlight span,
.dash-card.highlight p,
.dash-card.highlight-green span,
.dash-card.highlight-green p {
  color: rgba(245, 247, 242, 0.72);
}

.hero-metrics div,
.bot-grid div,
.risk-grid div,
.result-row,
.settings-read-grid div,
.strategy-meta-grid div,
.validation-list div,
.rule-card,
.scan-stat-grid article,
.flow-mini div,
.strategy-log-list article,
.exchange-api-card,
.payout-request-form,
.payout-exchange-card {
  background: var(--panel-soft);
  border: 1px solid var(--line);
}

.ticker-strip,
.workflow-section,
.trade-section,
.partner-section,
.builder-section,
.cockpit-section,
.site-footer {
  background: rgba(5, 9, 20, 0.74);
  border-color: var(--line);
}

.ticker-track strong,
.gain,
.safe,
.status-pill,
.activation-status strong,
.toggle-check,
.exchange-table .savings,
.exchange-badge.boost,
.condition-pill,
.rule-chip {
  color: var(--green);
}

.status-pill,
.condition-pill,
.rule-chip,
.exchange-badge.boost,
.auth-note-box {
  background: rgba(96, 165, 250, 0.1);
  border-color: rgba(96, 165, 250, 0.22);
}

.condition-pill.signal,
.exchange-badge.events {
  color: var(--cyan);
  background: rgba(34, 211, 238, 0.1);
}

.condition-pill.action {
  color: var(--lime);
  background: rgba(96, 165, 250, 0.14);
}

#heroChart,
.builder-console textarea,
.strategy-form input,
.strategy-form select,
.strategy-form textarea,
.chat-composer,
.scan-date-range input,
.symbol-chip,
.strategy-code,
.auth-form input[type="email"],
.auth-form input[type="password"],
.exchange-search,
.exchange-table-wrap,
.exchange-api-fields,
.exchange-table th,
.exchange-table td,
.exchange-api-modal-panel,
.broker-code-box {
  color: var(--text);
  background: rgba(5, 9, 20, 0.62);
  border-color: var(--line);
}

input::placeholder,
textarea::placeholder,
.exchange-search input::placeholder,
.chat-composer textarea::placeholder {
  color: rgba(143, 151, 139, 0.76);
}

.builder-console textarea:focus,
.strategy-form input:focus,
.strategy-form select:focus,
.strategy-form textarea:focus,
.auth-form input:focus {
  border-color: rgba(96, 165, 250, 0.64);
  box-shadow: 0 0 0 3px rgba(96, 165, 250, 0.13);
}

.chat-composer {
  box-shadow: 0 16px 44px rgba(0, 0, 0, 0.28);
}

.chat-message.user,
.strategy-bubble {
  color: var(--text);
  background: linear-gradient(135deg, rgba(96, 165, 250, 0.13), rgba(34, 211, 238, 0.07));
  border: 1px solid rgba(96, 165, 250, 0.28);
}

.strategy-assistant-bubble {
  color: var(--muted);
  background: rgba(255, 255, 255, 0.04);
  border-color: var(--line);
}

.strategy-analysis h3,
.strategy-history-label {
  color: var(--green);
}

.condition-board-empty {
  color: var(--muted);
  background: rgba(255, 255, 255, 0.03);
  border-color: rgba(255, 255, 255, 0.1);
}

.table-row,
.mini-ledger div,
.activity-list div,
.partner-list div,
.exchange-table th,
.exchange-table td,
.auth-check-list div {
  border-color: var(--line);
}

.exchange-table tbody tr:hover,
.exchange-table tbody tr[data-recommended="true"] {
  background: rgba(96, 165, 250, 0.08);
}

.exchange-api-modal-backdrop {
  background: rgba(0, 0, 0, 0.72);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}

.partner-amount {
  color: #050914;
  background: var(--green);
  box-shadow: 0 20px 60px rgba(96, 165, 250, 0.22);
}

.partner-amount span {
  color: rgba(5, 9, 20, 0.72);
}

.price-card.highlighted {
  box-shadow: 0 24px 84px rgba(96, 165, 250, 0.18);
}

.price-card ul,
.price span {
  color: var(--muted);
}

.strategy-code {
  color: #bfdbfe;
}

.auth-checkbox input,
.toggle-check input,
.symbol-chip input {
  accent-color: var(--green);
}

.schedule-power-track {
  background: rgba(255, 255, 255, 0.12);
}

.schedule-power-toggle input:checked + .schedule-power-track {
  background: var(--green);
}

.symbol-chip.active {
  color: var(--green) !important;
  background: rgba(96, 165, 250, 0.12);
  border-color: rgba(96, 165, 250, 0.38);
}

.exchange-logo.okx {
  background: var(--green);
  color: #050914;
}

.site-footer span:first-child {
  color: var(--text);
}

.exchange-motion-banner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(420px, 1.18fr);
  gap: clamp(18px, 3vw, 36px);
  align-items: center;
  min-height: 300px;
  padding: clamp(22px, 4vw, 42px);
  overflow: hidden;
  background:
    radial-gradient(620px 300px at 84% 10%, rgba(96, 165, 250, 0.16), transparent 70%),
    linear-gradient(135deg, rgba(16, 24, 39, 0.96), rgba(5, 9, 20, 0.92));
  border: 1px solid rgba(96, 165, 250, 0.22);
  border-radius: 16px;
  box-shadow: 0 24px 84px rgba(0, 0, 0, 0.45);
}

.exchange-motion-banner::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(96, 165, 250, 0.05) 1px, transparent 1px),
    linear-gradient(rgba(96, 165, 250, 0.04) 1px, transparent 1px);
  background-size: 52px 52px;
  mask-image: linear-gradient(90deg, rgba(0, 0, 0, 0.8), transparent 88%);
  pointer-events: none;
}

.exchange-motion-banner::after {
  content: "";
  position: absolute;
  width: 220px;
  height: 220px;
  right: 18%;
  top: -80px;
  border-radius: 50%;
  background: rgba(96, 165, 250, 0.12);
  filter: blur(24px);
  animation: motionGlow 4.8s ease-in-out infinite;
}

.motion-banner-copy,
.motion-market-panel {
  position: relative;
  z-index: 1;
}

.motion-kicker {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 14px;
  color: var(--green);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.motion-kicker::before {
  content: "";
  width: 24px;
  height: 1px;
  background: var(--green);
}

.motion-banner-copy h2 {
  max-width: 560px;
  margin-bottom: 12px;
  font-size: clamp(1.8rem, 3.3vw, 3.3rem);
  line-height: 1.04;
}

.motion-banner-copy p {
  max-width: 570px;
  margin-bottom: 22px;
  color: var(--muted);
}

.motion-banner-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.motion-market-panel {
  min-width: 0;
  padding: 16px;
  background: rgba(5, 9, 20, 0.72);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.motion-market-top {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
}

.motion-market-top strong {
  color: var(--green);
}

.motion-ticker {
  overflow: hidden;
  margin-bottom: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.035);
}

.motion-ticker-track {
  display: flex;
  width: max-content;
  gap: 28px;
  padding: 10px 14px;
  animation: motionTicker 18s linear infinite;
}

.motion-ticker-track span {
  white-space: nowrap;
  color: var(--text);
  font-size: 0.82rem;
  font-weight: 700;
}

.motion-ticker-track b {
  color: var(--green);
}

.motion-ticker-track em,
.motion-orderbook em {
  font-style: normal;
  font-weight: 800;
}

.motion-trade-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(160px, 0.75fr);
  gap: 12px;
}

.motion-chart,
.motion-orderbook,
.motion-bot-status {
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid var(--line);
  border-radius: 10px;
}

.motion-chart {
  height: 160px;
  display: flex;
  align-items: end;
  gap: 10px;
  padding: 16px;
}

.motion-chart i {
  flex: 1;
  min-width: 12px;
  border-radius: 7px 7px 0 0;
  background: var(--green);
  box-shadow: 0 0 24px rgba(96, 165, 250, 0.22);
  animation: barPulse 2.4s ease-in-out infinite;
}

.motion-chart i:nth-child(2n) {
  animation-delay: 180ms;
}

.motion-chart i:nth-child(3n) {
  animation-delay: 360ms;
}

.motion-orderbook {
  display: grid;
  align-content: center;
  gap: 8px;
  padding: 14px;
}

.motion-orderbook span {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  color: var(--muted);
  font-size: 0.8rem;
}

.motion-orderbook strong {
  color: var(--green);
  font-size: 1.35rem;
}

.motion-bot-status {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 10px;
  align-items: center;
  padding: 14px;
}

.motion-bot-status span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.motion-bot-status strong {
  color: var(--text);
}

.motion-bot-status small {
  color: var(--green);
  font-weight: 800;
}

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

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

@keyframes motionTicker {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(-50%);
  }
}

@keyframes barPulse {
  0%,
  100% {
    opacity: 0.72;
    transform: scaleY(0.92);
  }

  50% {
    opacity: 1;
    transform: scaleY(1.04);
  }
}

@keyframes motionGlow {
  0%,
  100% {
    opacity: 0.72;
    transform: translate3d(0, 0, 0) scale(1);
  }

  50% {
    opacity: 1;
    transform: translate3d(-20px, 18px, 0) scale(1.12);
  }
}

@media (max-width: 720px) {
  .hero-copy h1 {
    font-size: clamp(2.35rem, 13vw, 3.35rem);
  }

  .content-header h1,
  .page-hero h1 {
    font-size: clamp(1.65rem, 7vw, 2.15rem);
  }

  .exchange-motion-banner,
  .core-hero-banner {
    grid-template-columns: 1fr;
  }

  .motion-trade-grid,
  .motion-bot-status {
    grid-template-columns: 1fr;
  }

  .exchange-motion-banner {
    min-height: 0;
    padding: 22px;
  }

  .motion-chart {
    height: 116px;
  }

  .motion-orderbook {
    display: none;
  }

  .motion-bot-status small {
    justify-self: start;
  }

  .core-hero-banner {
    grid-template-columns: 1fr;
    min-height: 0;
    padding: 22px;
  }

  .core-hero-title {
    min-height: 2.6em;
    font-size: clamp(1.55rem, 7vw, 2rem);
  }

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

  .core-hero-visual {
    min-height: 260px;
  }
}

/* Core hero banner */
.core-hero-banner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(360px, 1.08fr);
  gap: clamp(18px, 3vw, 36px);
  align-items: center;
  min-height: 340px;
  padding: clamp(24px, 4vw, 42px);
  overflow: hidden;
  background:
    radial-gradient(680px 320px at 12% 18%, rgba(96, 165, 250, 0.14), transparent 68%),
    radial-gradient(520px 280px at 92% 82%, rgba(34, 211, 238, 0.06), transparent 70%),
    linear-gradient(135deg, rgba(16, 24, 39, 0.97), rgba(5, 9, 20, 0.94));
  border: 1px solid rgba(96, 165, 250, 0.2);
  border-radius: 16px;
  box-shadow: 0 24px 84px rgba(0, 0, 0, 0.45);
}

.core-hero-banner::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(96, 165, 250, 0.04) 1px, transparent 1px),
    linear-gradient(rgba(96, 165, 250, 0.03) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.7), transparent 92%);
  pointer-events: none;
}

.core-hero-copy,
.core-hero-visual {
  position: relative;
  z-index: 1;
  min-width: 0;
}

.core-hero-headline {
  margin-bottom: 22px;
}

.core-hero-title {
  position: relative;
  min-height: 2.3em;
  margin: 0 0 14px;
  font-size: clamp(1.75rem, 3.2vw, 2.75rem);
  line-height: 1.12;
}

.core-hero-line,
.core-hero-desc-line {
  position: absolute;
  inset: 0 auto auto 0;
  width: 100%;
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.55s ease, transform 0.55s ease;
  pointer-events: none;
}

.core-hero-desc {
  position: relative;
  min-height: 3.2em;
  margin: 0;
}

.core-hero-desc-line {
  top: 0;
  color: var(--muted);
  font-size: clamp(0.95rem, 1.1vw, 1.05rem);
  font-weight: 650;
  line-height: 1.55;
}

.core-hero-banner[data-step="0"] .core-hero-line:nth-child(1),
.core-hero-banner[data-step="0"] .core-hero-desc-line:nth-child(1),
.core-hero-banner[data-step="1"] .core-hero-line:nth-child(2),
.core-hero-banner[data-step="1"] .core-hero-desc-line:nth-child(2),
.core-hero-banner[data-step="2"] .core-hero-line:nth-child(3),
.core-hero-banner[data-step="2"] .core-hero-desc-line:nth-child(3),
.core-hero-banner[data-step="3"] .core-hero-line:nth-child(4),
.core-hero-banner[data-step="3"] .core-hero-desc-line:nth-child(4) {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.core-hero-steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin: 0 0 22px;
  padding: 0;
  list-style: none;
}

.core-hero-steps li {
  display: grid;
  gap: 4px;
  padding: 10px 12px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  cursor: pointer;
  transition: border-color 0.4s ease, background 0.4s ease, box-shadow 0.4s ease;
}

.core-hero-steps li span {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.06em;
}

.core-hero-steps li strong {
  font-size: 0.82rem;
  font-weight: 800;
  line-height: 1.3;
}

.core-hero-banner[data-step="0"] .core-hero-steps li:nth-child(1),
.core-hero-banner[data-step="1"] .core-hero-steps li:nth-child(2),
.core-hero-banner[data-step="2"] .core-hero-steps li:nth-child(3),
.core-hero-banner[data-step="3"] .core-hero-steps li:nth-child(4) {
  background: rgba(96, 165, 250, 0.1);
  border-color: rgba(96, 165, 250, 0.38);
  box-shadow: 0 0 24px rgba(96, 165, 250, 0.1);
}

.core-hero-banner[data-step="0"] .core-hero-steps li:nth-child(1) strong,
.core-hero-banner[data-step="1"] .core-hero-steps li:nth-child(2) strong,
.core-hero-banner[data-step="2"] .core-hero-steps li:nth-child(3) strong,
.core-hero-banner[data-step="3"] .core-hero-steps li:nth-child(4) strong {
  color: var(--green);
}

.core-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.core-hero-visual {
  position: relative;
  min-height: 280px;
  padding: 18px;
  background: rgba(5, 9, 20, 0.72);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.core-visual-scene {
  position: absolute;
  inset: 18px 18px 42px;
  opacity: 0;
  transform: translateY(10px) scale(0.98);
  transition: opacity 0.55s ease, transform 0.55s ease;
  pointer-events: none;
}

.core-hero-banner[data-step="0"] .core-visual-scene-1,
.core-hero-banner[data-step="1"] .core-visual-scene-2,
.core-hero-banner[data-step="2"] .core-visual-scene-3,
.core-hero-banner[data-step="3"] .core-visual-scene-4 {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.core-visual-label {
  margin-bottom: 14px;
  color: var(--green);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.core-visual-chat {
  display: grid;
  gap: 10px;
}

.core-visual-bubble {
  padding: 12px 14px;
  border-radius: 12px;
  font-size: 0.84rem;
  font-weight: 750;
  line-height: 1.45;
}

.core-visual-bubble.user {
  justify-self: end;
  max-width: 88%;
  color: var(--text);
  background: linear-gradient(135deg, rgba(96, 165, 250, 0.13), rgba(34, 211, 238, 0.07));
  border: 1px solid rgba(96, 165, 250, 0.28);
}

.core-visual-bubble.bot {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-self: start;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line);
}

.core-visual-pill {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0 10px;
  color: var(--green);
  background: rgba(96, 165, 250, 0.1);
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 800;
}

.core-visual-pill.signal {
  color: var(--cyan);
  background: rgba(34, 211, 238, 0.1);
}

.core-visual-pill.action {
  color: var(--lime);
  background: rgba(191, 219, 254, 0.12);
}

.core-visual-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 6px;
  margin-bottom: 14px;
}

.core-visual-grid i {
  aspect-ratio: 1;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  animation: coreGridPulse 2.4s ease-in-out infinite;
}

.core-visual-grid i:nth-child(odd) {
  animation-delay: 0.2s;
}

.core-visual-grid i:nth-child(3n) {
  background: rgba(96, 165, 250, 0.12);
  border-color: rgba(96, 165, 250, 0.24);
}

.core-visual-counter {
  display: flex;
  align-items: baseline;
  gap: 10px;
}

.core-visual-counter strong {
  color: var(--green);
  font-size: 2rem;
  font-weight: 800;
  line-height: 1;
}

.core-visual-counter span {
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 750;
}

.core-visual-scan {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  gap: 16px;
  align-items: center;
}

.core-visual-radar {
  position: relative;
  width: 120px;
  height: 120px;
  border: 1px solid rgba(96, 165, 250, 0.28);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(96, 165, 250, 0.08), transparent 68%);
}

.core-visual-radar::before {
  content: "";
  position: absolute;
  inset: 50% auto auto 50%;
  width: 50%;
  height: 2px;
  background: linear-gradient(90deg, var(--green), transparent);
  transform-origin: left center;
  animation: coreRadarSpin 2.8s linear infinite;
}

.core-visual-scan ul {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.core-visual-scan li {
  padding: 10px 12px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: 0.82rem;
  font-weight: 750;
  animation: coreScanItem 2.8s ease-in-out infinite;
}

.core-visual-scan li:nth-child(2) {
  animation-delay: 0.35s;
}

.core-visual-scan li:nth-child(3) {
  animation-delay: 0.7s;
}

.core-visual-bots {
  display: grid;
  gap: 10px;
}

.core-visual-bots div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  padding: 12px 14px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line);
  border-radius: 10px;
  font-size: 0.86rem;
  font-weight: 750;
}

.core-visual-bots span {
  color: var(--muted);
}

.core-visual-bots strong {
  color: var(--text);
  font-weight: 800;
}

.core-visual-bots strong.up {
  color: var(--green);
}

.core-hero-progress {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 14px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
}

.core-hero-progress i {
  display: block;
  height: 3px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  overflow: hidden;
}

.core-hero-progress i::after {
  content: "";
  display: block;
  width: 0;
  height: 100%;
  background: var(--green);
  border-radius: inherit;
}

.core-hero-banner[data-step="0"] .core-hero-progress i:nth-child(1)::after,
.core-hero-banner[data-step="1"] .core-hero-progress i:nth-child(2)::after,
.core-hero-banner[data-step="2"] .core-hero-progress i:nth-child(3)::after,
.core-hero-banner[data-step="3"] .core-hero-progress i:nth-child(4)::after {
  animation: coreProgressFill 4.2s linear forwards;
}

@keyframes coreGridPulse {
  0%,
  100% {
    opacity: 0.45;
    transform: scale(0.96);
  }

  50% {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes coreRadarSpin {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

@keyframes coreScanItem {
  0%,
  100% {
    border-color: var(--line);
  }

  50% {
    border-color: rgba(96, 165, 250, 0.42);
    box-shadow: 0 0 16px rgba(96, 165, 250, 0.08);
  }
}

@keyframes coreProgressFill {
  from {
    width: 0;
  }

  to {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .core-hero-line,
  .core-hero-desc-line,
  .core-visual-scene,
  .core-hero-steps li,
  .core-visual-grid i,
  .core-visual-radar::before,
  .core-visual-scan li,
  .core-hero-progress i::after {
    transition: none !important;
    animation: none !important;
  }

  .core-hero-banner .core-hero-line:not(:nth-child(1)),
  .core-hero-banner .core-hero-desc-line:not(:nth-child(1)),
  .core-hero-banner .core-visual-scene:not(.core-visual-scene-1) {
    opacity: 0;
  }

  .core-hero-banner .core-hero-line:nth-child(1),
  .core-hero-banner .core-hero-desc-line:nth-child(1),
  .core-hero-banner .core-visual-scene-1 {
    opacity: 1;
    transform: none;
  }
}
