:root {
  --bg: #f4f6fb;
  --surface: #ffffff;
  --surface-alt: #eef2f8;
  --surface-dark: #0c1421;
  --surface-dark-soft: #101b2d;
  --text: #162032;
  --text-soft: #5f6d83;
  --text-faint: #8d98ab;
  --line: #d9e0ec;
  --line-strong: #bec9da;
  --brand: #b9912f;
  --brand-strong: #d6b357;
  --accent: #3f79b8;
  --success: #28b67c;
  --danger: #f05a54;
  --warning: #f09a3e;
  --shadow: 0 24px 60px rgba(18, 33, 56, 0.08);
  --radius-xl: 30px;
  --radius-lg: 24px;
  --radius-md: 18px;
  --radius-sm: 14px;
  --sidebar-width: 284px;
  --content-width: 1220px;
  font-synthesis-weight: none;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background: var(--bg);
  color: var(--text);
  font-family: "Manrope", "Segoe UI", sans-serif;
  line-height: 1.6;
}

body[data-layout="public"] {
  background:
    radial-gradient(circle at top left, rgba(63, 121, 184, 0.14), transparent 36%),
    linear-gradient(180deg, #f7f8fc 0%, #f2f5fb 40%, #eef2f8 100%);
}

body[data-layout="auth"] {
  background:
    radial-gradient(circle at top, rgba(185, 145, 47, 0.14), transparent 32%),
    linear-gradient(180deg, #f7f8fb 0%, #eef2f8 100%);
}

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

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

button {
  cursor: pointer;
}

img,
svg {
  display: block;
  max-width: 100%;
}

.demo-banner {
  display: flex;
  justify-content: center;
  background: #09131f;
  color: #f8fbff;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.demo-banner__inner {
  width: min(var(--content-width), calc(100% - 32px));
  padding: 12px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-size: 0.95rem;
}

.demo-banner strong {
  color: var(--brand-strong);
}

.demo-banner__cta {
  white-space: nowrap;
  color: #d8e9ff;
  font-weight: 700;
}

.page-shell,
.dashboard-shell {
  width: 100%;
}

.public-header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(18px);
  background: rgba(247, 249, 253, 0.84);
  border-bottom: 1px solid rgba(190, 201, 218, 0.72);
}

.public-header__inner,
.public-footer__inner,
.section,
.auth-main {
  width: min(var(--content-width), calc(100% - 32px));
  margin: 0 auto;
}

.public-header__inner {
  min-height: 88px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-weight: 800;
  letter-spacing: -0.04em;
}

.brand__mark {
  width: 48px;
  height: 48px;
  border-radius: 16px;
  padding: 10px;
  background: linear-gradient(145deg, #0d1624, #1d2a42);
  box-shadow: 0 18px 30px rgba(13, 22, 36, 0.12);
}

.brand__name {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.brand__wordmark {
  font-size: 1.5rem;
}

.brand__sub {
  font-size: 0.78rem;
  color: var(--text-soft);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.public-nav,
.public-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.public-nav a {
  padding: 12px 18px;
  border-radius: 999px;
  color: var(--text-soft);
  font-weight: 700;
  transition:
    background 180ms ease,
    color 180ms ease,
    transform 180ms ease;
}

.public-nav a:hover,
.public-nav a.is-active {
  background: rgba(63, 121, 184, 0.12);
  color: var(--text);
}

.pill-button,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 24px;
  border-radius: 16px;
  border: 1px solid transparent;
  font-weight: 800;
  letter-spacing: -0.02em;
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    border-color 180ms ease,
    background 180ms ease;
}

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

.button-primary {
  background: linear-gradient(135deg, var(--brand), var(--brand-strong));
  color: #101522;
  box-shadow: 0 16px 35px rgba(185, 145, 47, 0.28);
}

.button-secondary {
  background: rgba(255, 255, 255, 0.72);
  color: var(--text);
  border-color: rgba(22, 32, 50, 0.12);
}

.button-dark {
  background: #0f1826;
  color: #f8fbff;
}

.button-muted {
  background: #edf2fa;
  color: var(--text);
  border-color: var(--line);
}

.page-main {
  padding-bottom: 80px;
}

.section {
  padding: 80px 0;
}

.section--tight {
  padding-top: 28px;
  padding-bottom: 28px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 20px;
  color: var(--accent);
  font-size: 0.92rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.serif {
  font-family: "Cormorant Garamond", "Georgia", serif;
  font-style: italic;
}

.headline {
  margin: 0;
  font-size: clamp(2.7rem, 5.8vw, 5.4rem);
  line-height: 0.96;
  letter-spacing: -0.06em;
}

.lead {
  margin: 0;
  max-width: 680px;
  color: rgba(242, 246, 255, 0.78);
  font-size: 1.08rem;
}

.hero {
  padding-top: 48px;
}

.hero__card {
  position: relative;
  overflow: hidden;
  padding: 44px;
  border-radius: 34px;
  background:
    linear-gradient(135deg, rgba(5, 11, 20, 0.9), rgba(10, 20, 36, 0.72)),
    radial-gradient(circle at top right, rgba(63, 121, 184, 0.26), transparent 28%);
  color: #f7fbff;
  box-shadow: 0 40px 80px rgba(10, 20, 36, 0.18);
}

.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.8fr);
  gap: 36px;
  align-items: end;
}

.hero__copy {
  display: grid;
  gap: 22px;
}

.hero__actions,
.stack-actions,
.card-actions,
.footer-links,
.kpi-strip,
.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.hero__visual {
  display: grid;
  gap: 18px;
}

.glass-panel,
.surface-card,
.panel,
.metric-card,
.table-panel,
.stat-card,
.feature-card,
.resource-card,
.auth-card,
.public-footer,
.trader-card,
.plan-card,
.bot-card,
.miner-card {
  background: var(--surface);
  border: 1px solid rgba(190, 201, 218, 0.76);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.glass-panel {
  padding: 26px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.06));
  color: #f8fbff;
  border-color: rgba(255, 255, 255, 0.14);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.hero-chart {
  height: 220px;
  border-radius: 24px;
  padding: 18px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02)),
    repeating-linear-gradient(
      to right,
      rgba(255, 255, 255, 0.06),
      rgba(255, 255, 255, 0.06) 1px,
      transparent 1px,
      transparent 60px
    );
  position: relative;
  overflow: hidden;
}

.hero-chart::before {
  content: "";
  position: absolute;
  inset: auto 0 24px 0;
  height: 2px;
  background: rgba(255, 255, 255, 0.12);
}

.hero-chart__line {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 30px;
  height: 120px;
  border-bottom: 3px solid rgba(214, 179, 87, 0.96);
  border-right: 3px solid rgba(214, 179, 87, 0.96);
  border-radius: 0 0 100px 0;
  transform: skewX(-18deg) rotate(-4deg);
  opacity: 0.88;
}

.hero-chart__label {
  display: flex;
  justify-content: space-between;
  color: rgba(247, 251, 255, 0.8);
  font-size: 0.94rem;
}

.ticker-strip {
  margin-top: 16px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.ticker-chip {
  padding: 16px 18px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: grid;
  gap: 4px;
}

.ticker-chip small {
  color: rgba(247, 251, 255, 0.72);
}

.ticker-chip strong {
  font-size: 1.12rem;
}

.positive-text {
  color: var(--success);
}

.negative-text {
  color: var(--danger);
}

.section-heading {
  display: grid;
  gap: 14px;
  margin-bottom: 34px;
}

.section-heading h2,
.section-heading h1 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3.5rem);
  line-height: 1.04;
  letter-spacing: -0.05em;
}

.section-heading p {
  margin: 0;
  max-width: 760px;
  color: var(--text-soft);
  font-size: 1.05rem;
}

.section-heading--center {
  text-align: center;
  justify-items: center;
}

.card-grid,
.asset-grid,
.stats-grid,
.step-grid,
.payments-grid,
.academy-grid,
.plans-grid,
.bots-grid,
.miners-grid,
.traders-grid {
  display: grid;
  gap: 24px;
}

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

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

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

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

.academy-grid,
.plans-grid,
.bots-grid,
.miners-grid,
.traders-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.surface-card,
.metric-card,
.stat-card,
.feature-card,
.resource-card,
.plan-card,
.bot-card,
.miner-card,
.trader-card,
.table-panel,
.panel {
  padding: 28px;
}

.surface-card h3,
.plan-card h3,
.bot-card h3,
.miner-card h3,
.trader-card h3,
.auth-card h1 {
  margin: 0 0 10px;
  font-size: 1.6rem;
  letter-spacing: -0.04em;
}

.surface-card p,
.plan-card p,
.bot-card p,
.miner-card p,
.trader-card p,
.feature-card p {
  margin: 0;
  color: var(--text-soft);
}

.icon-circle,
.stat-icon,
.payment-chip__icon,
.mini-icon {
  width: 56px;
  height: 56px;
  border-radius: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(185, 145, 47, 0.18), rgba(63, 121, 184, 0.1));
  color: var(--text);
  font-weight: 800;
}

.asset-card {
  display: grid;
  gap: 18px;
}

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

.soft-tag,
.state-tag,
.badge,
.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 11px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.soft-tag {
  background: rgba(63, 121, 184, 0.12);
  color: var(--accent);
}

.state-tag--success {
  background: rgba(40, 182, 124, 0.14);
  color: var(--success);
}

.state-tag--warning {
  background: rgba(240, 154, 62, 0.18);
  color: #c97116;
}

.state-tag--danger {
  background: rgba(240, 90, 84, 0.15);
  color: var(--danger);
}

.state-tag--demo {
  background: rgba(214, 179, 87, 0.18);
  color: #856117;
}

.info-grid,
.split-grid,
.profile-grid,
.settings-grid,
.two-column,
.dashboard-two-column {
  display: grid;
  gap: 24px;
}

.two-column,
.dashboard-two-column {
  grid-template-columns: minmax(0, 1.4fr) minmax(320px, 0.8fr);
}

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

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

.metric-card strong,
.stat-card strong,
.balance-value,
.value-xl {
  display: block;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1;
  letter-spacing: -0.06em;
}

.metric-card small,
.stat-card small,
.meta-copy,
.muted-copy {
  color: var(--text-soft);
}

.step-card {
  display: grid;
  gap: 20px;
  padding: 22px;
}

.step-preview {
  height: 190px;
  border-radius: 22px;
  border: 1px solid var(--line);
  background:
    linear-gradient(180deg, rgba(63, 121, 184, 0.08), rgba(63, 121, 184, 0.02)),
    linear-gradient(135deg, rgba(255, 255, 255, 0.82), rgba(239, 243, 249, 0.92));
  position: relative;
  overflow: hidden;
}

.step-preview--form::before,
.step-preview--chart::before,
.step-preview--wallet::before {
  content: "";
  position: absolute;
  inset: 18px;
  border-radius: 16px;
  border: 1px solid rgba(22, 32, 50, 0.08);
  background: rgba(255, 255, 255, 0.82);
}

.step-preview--form::after {
  content: "";
  position: absolute;
  left: 34px;
  right: 34px;
  bottom: 34px;
  height: 18px;
  border-radius: 999px;
  background: linear-gradient(90deg, #4f83bb, #6b9cce);
}

.step-preview--chart::after {
  content: "";
  position: absolute;
  left: 32px;
  right: 32px;
  bottom: 42px;
  height: 90px;
  border-left: 3px solid rgba(63, 121, 184, 0.42);
  border-bottom: 3px solid rgba(63, 121, 184, 0.42);
  border-radius: 0 0 0 12px;
  box-shadow:
    42px -24px 0 -41px #39b97a,
    94px -8px 0 -41px #39b97a,
    146px -36px 0 -41px #39b97a;
}

.step-preview--wallet::after {
  content: "";
  position: absolute;
  left: 42px;
  right: 42px;
  bottom: 34px;
  height: 44px;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(185, 145, 47, 0.28), rgba(63, 121, 184, 0.18));
}

.payment-chip {
  min-height: 82px;
  padding: 16px;
  border-radius: 18px;
  border: 1px solid rgba(190, 201, 218, 0.8);
  background: rgba(255, 255, 255, 0.75);
  display: grid;
  justify-items: center;
  align-content: center;
  gap: 10px;
  color: var(--text-soft);
  font-weight: 800;
}

.feature-list,
.bullet-list,
.signal-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 14px;
}

.feature-list li,
.bullet-list li,
.signal-list li {
  position: relative;
  padding-left: 22px;
  color: var(--text-soft);
}

.feature-list li::before,
.bullet-list li::before,
.signal-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.72em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--brand);
  transform: translateY(-50%);
}

.public-footer {
  margin-top: 12px;
  margin-bottom: 28px;
  background: #131821;
  color: #f5f8ff;
}

.public-footer__inner {
  padding: 34px 0;
  display: grid;
  gap: 24px;
}

.public-footer__copy {
  max-width: 820px;
  color: rgba(245, 248, 255, 0.78);
}

.public-footer__warning {
  padding: 18px 20px;
  border-radius: 20px;
  background: rgba(240, 90, 84, 0.11);
  color: #ffc0bb;
  border: 1px solid rgba(240, 90, 84, 0.24);
}

.footer-links a {
  color: rgba(245, 248, 255, 0.88);
}

.cookie-bar {
  position: fixed;
  left: 18px;
  right: 18px;
  bottom: 18px;
  z-index: 30;
  display: flex;
  justify-content: center;
  pointer-events: none;
}

.cookie-bar__inner {
  width: min(920px, 100%);
  pointer-events: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 16px 18px;
  border-radius: 22px;
  background: rgba(10, 16, 27, 0.96);
  color: #f5f8ff;
  box-shadow: 0 22px 60px rgba(10, 16, 27, 0.28);
}

.cookie-bar__inner button {
  min-width: 110px;
}

.auth-main {
  min-height: calc(100vh - 66px);
  padding-top: 48px;
  padding-bottom: 48px;
  display: grid;
  place-items: center;
}

.auth-card {
  width: min(620px, 100%);
  padding: 34px;
  display: grid;
  gap: 22px;
}

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

.auth-card__header p {
  margin: 0;
  color: var(--text-soft);
}

.auth-note {
  padding: 14px 16px;
  border-radius: 18px;
  background: rgba(63, 121, 184, 0.08);
  color: var(--text-soft);
}

.form-grid,
.form-fields {
  display: grid;
  gap: 16px;
}

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

.field {
  display: grid;
  gap: 8px;
}

.field label,
.field span,
.input-label {
  color: var(--text-soft);
  font-size: 0.92rem;
  font-weight: 700;
}

.field input,
.field select,
.field textarea,
.input-shell {
  width: 100%;
  min-height: 54px;
  padding: 0 16px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: #fbfcfe;
  color: var(--text);
}

.field textarea {
  min-height: 152px;
  padding-top: 14px;
  padding-bottom: 14px;
  resize: vertical;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: rgba(63, 121, 184, 0.78);
  box-shadow: 0 0 0 4px rgba(63, 121, 184, 0.08);
}

.helper-text {
  margin: 0;
  color: var(--text-faint);
  font-size: 0.9rem;
}

.dashboard-shell {
  display: grid;
  grid-template-columns: var(--sidebar-width) minmax(0, 1fr);
  min-height: 100vh;
}

.dashboard-sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  overflow: auto;
  padding: 28px 20px 30px;
  background: rgba(246, 248, 252, 0.9);
  border-right: 1px solid rgba(190, 201, 218, 0.72);
}

.dashboard-stage {
  min-width: 0;
}

.dashboard-header {
  position: sticky;
  top: 0;
  z-index: 10;
  padding: 24px 28px;
  background: rgba(244, 246, 251, 0.86);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(190, 201, 218, 0.72);
}

.dashboard-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.dashboard-header__title {
  display: grid;
  gap: 6px;
}

.dashboard-header__title p {
  margin: 0;
  color: var(--text-soft);
  font-size: 0.94rem;
}

.dashboard-header__title h1 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 1;
  letter-spacing: -0.05em;
}

.dashboard-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.dashboard-chip,
.icon-button,
.avatar-chip {
  min-width: 54px;
  min-height: 54px;
  padding: 0 18px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--text);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-weight: 800;
}

.avatar-chip {
  border-radius: 999px;
}

.dashboard-content {
  padding: 28px;
}

.dashboard-section {
  display: grid;
  gap: 24px;
}

.sidebar-top {
  display: grid;
  gap: 16px;
  margin-bottom: 28px;
}

.sidebar-top__label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text-soft);
  font-size: 0.86rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.demo-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--danger);
}

.sidebar-nav {
  display: grid;
  gap: 8px;
}

.sidebar-nav a {
  min-height: 56px;
  padding: 0 14px;
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--text-soft);
  font-weight: 700;
}

.sidebar-nav a:hover,
.sidebar-nav a.is-active {
  background: rgba(63, 121, 184, 0.11);
  color: var(--text);
}

.sidebar-nav a.is-muted {
  opacity: 0.72;
}

.nav-link__label {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.nav-badge {
  padding: 4px 8px;
  border-radius: 999px;
  background: #111b2c;
  color: #f7fbff;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.nav-badge--new {
  background: #ffede7;
  color: #da5f1f;
}

.nav-badge--demo {
  background: #eef8df;
  color: #689508;
}

.nav-badge--inactive {
  background: #eceff5;
  color: #8894a8;
}

.demo-panel {
  padding: 18px 20px;
  border-radius: 22px;
  background: linear-gradient(135deg, rgba(185, 145, 47, 0.12), rgba(63, 121, 184, 0.08));
  border: 1px solid rgba(185, 145, 47, 0.18);
  color: var(--text-soft);
}

.demo-panel strong {
  color: var(--text);
}

.panel {
  display: grid;
  gap: 20px;
}

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

.panel__header h2,
.panel__header h3 {
  margin: 0;
  font-size: clamp(1.5rem, 2.6vw, 2.2rem);
  line-height: 1.08;
  letter-spacing: -0.04em;
}

.panel__header p {
  margin: 6px 0 0;
  color: var(--text-soft);
}

.stat-card {
  display: grid;
  gap: 10px;
}

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

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

.card-table th,
.card-table td {
  padding: 16px 14px;
  border-bottom: 1px solid rgba(190, 201, 218, 0.52);
  text-align: left;
}

.card-table th {
  color: var(--text-faint);
  font-size: 0.84rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.empty-state {
  min-height: 220px;
  display: grid;
  place-items: center;
  color: var(--text-soft);
  text-align: center;
}

.mini-chart,
.market-chart {
  height: 280px;
  border-radius: 22px;
  background:
    linear-gradient(180deg, #121b2b, #1b263b),
    radial-gradient(circle at top left, rgba(63, 121, 184, 0.25), transparent 38%);
  position: relative;
  overflow: hidden;
}

.mini-chart::before,
.market-chart::before {
  content: "";
  position: absolute;
  inset: 24px 24px 40px;
  border-left: 1px solid rgba(255, 255, 255, 0.18);
  border-bottom: 1px solid rgba(255, 255, 255, 0.18);
}

.mini-chart::after,
.market-chart::after {
  content: "";
  position: absolute;
  left: 48px;
  right: 36px;
  bottom: 58px;
  height: 120px;
  border-bottom: 3px solid #2d8cff;
  border-right: 3px solid #2d8cff;
  border-radius: 0 0 120px 0;
  transform: skewX(-28deg) rotate(-3deg);
}

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

.market-row {
  display: grid;
  grid-template-columns: 1.2fr 1fr auto;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 16px;
  background: #101826;
  color: #f8fbff;
}

.market-row small {
  color: rgba(248, 251, 255, 0.66);
}

.ticket-card {
  display: grid;
  gap: 14px;
}

.ticket-range {
  display: grid;
  gap: 8px;
}

.range-track {
  position: relative;
  height: 12px;
  border-radius: 999px;
  background: #edf1f7;
}

.range-track span {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  border-radius: inherit;
  background: linear-gradient(90deg, #5b8fca, #a8c3e6);
}

.tickets-actions {
  display: grid;
  gap: 12px;
}

.tickets-actions .button {
  width: 100%;
}

.grid-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.grid-tab {
  min-height: 50px;
  padding: 0 18px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: var(--surface-alt);
  color: var(--text-soft);
  font-weight: 800;
}

.grid-tab.is-active {
  background: var(--surface);
  color: var(--text);
  box-shadow: 0 10px 24px rgba(22, 32, 50, 0.08);
}

.tab-panel {
  display: none;
}

.tab-panel.is-active {
  display: block;
}

.asset-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.asset-pill {
  padding: 10px 16px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--surface-alt);
  font-weight: 800;
  color: var(--text-soft);
}

.asset-pill.is-active {
  background: var(--surface);
  color: var(--text);
}

.balance-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: 24px;
}

.asset-stack {
  display: grid;
  gap: 14px;
}

.asset-stack__item {
  padding: 18px;
  border-radius: 20px;
  background: #f1f4fa;
  border: 1px solid var(--line);
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 14px;
  align-items: center;
}

.asset-stack__item.is-active {
  background: linear-gradient(135deg, rgba(185, 145, 47, 0.18), rgba(63, 121, 184, 0.08));
}

.market-overview {
  overflow-x: auto;
}

.market-table,
.matrix-table {
  width: 100%;
  border-collapse: collapse;
}

.market-table th,
.market-table td,
.matrix-table th,
.matrix-table td {
  padding: 14px 16px;
  border-bottom: 1px solid rgba(190, 201, 218, 0.4);
  text-align: left;
}

.market-table th,
.matrix-table th {
  background: #0f1826;
  color: #eff5ff;
  position: sticky;
  top: 0;
}

.market-table tr:nth-child(even) td {
  background: rgba(16, 24, 38, 0.02);
}

.matrix-table td {
  text-align: center;
  font-weight: 700;
}

.matrix-table .is-up {
  background: rgba(40, 182, 124, 0.12);
  color: #2c8d65;
}

.matrix-table .is-down {
  background: rgba(240, 90, 84, 0.11);
  color: #b14d48;
}

.plan-card,
.bot-card,
.miner-card,
.resource-card,
.trader-card {
  display: grid;
  gap: 18px;
}

.card-price {
  font-size: 2rem;
  line-height: 1;
  letter-spacing: -0.05em;
}

.card-divider {
  height: 1px;
  background: rgba(190, 201, 218, 0.52);
}

.trader-card__top,
.profile-header-card,
.settings-top,
.resource-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #10325d, #457ab6);
  color: #f7fbff;
  font-size: 1.7rem;
  font-weight: 800;
}

.star-row {
  color: var(--brand);
  letter-spacing: 0.12em;
}

.resource-card__preview {
  min-height: 150px;
  border-radius: 22px;
  background: linear-gradient(180deg, #f5f7fb, #eff3f9);
  display: grid;
  place-items: center;
  color: var(--danger);
  font-size: 3rem;
}

.locked-badge {
  background: #eceff5;
  color: #6b778a;
}

.coming-card {
  min-height: 240px;
  display: grid;
  place-items: center;
  text-align: center;
}

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

.profile-list,
.settings-list {
  display: grid;
  gap: 12px;
}

.profile-list__item,
.settings-list__item {
  padding: 16px 18px;
  border-radius: 18px;
  background: #f4f7fb;
  border: 1px solid var(--line);
}

.disclaimer-card {
  padding: 18px 20px;
  border-radius: 20px;
  background: rgba(240, 90, 84, 0.1);
  color: #8f3c38;
  border: 1px solid rgba(240, 90, 84, 0.2);
}

.page-callout {
  padding: 18px 20px;
  border-radius: 22px;
  background: linear-gradient(135deg, rgba(63, 121, 184, 0.1), rgba(185, 145, 47, 0.1));
  border: 1px solid rgba(63, 121, 184, 0.16);
  color: var(--text-soft);
}

.floating-chat {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 40;
}

.floating-chat button {
  min-width: 160px;
  min-height: 62px;
  padding: 0 22px;
  border-radius: 999px;
  border: 0;
  background: linear-gradient(135deg, #1fb56e, #53ca8f);
  color: #f5fff9;
  font-size: 1rem;
  font-weight: 800;
  box-shadow: 0 22px 40px rgba(31, 181, 110, 0.25);
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: none;
  place-items: center;
  padding: 24px;
  background: rgba(10, 16, 27, 0.62);
}

.modal.is-open {
  display: grid;
}

.modal__card {
  width: min(1040px, 100%);
  max-height: min(80vh, 780px);
  overflow: auto;
  padding: 26px;
  border-radius: 28px;
  background: #ffffff;
  border: 1px solid rgba(190, 201, 218, 0.78);
  box-shadow: 0 26px 70px rgba(10, 16, 27, 0.22);
}

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

.modal__header h2 {
  margin: 0;
  font-size: 2rem;
  letter-spacing: -0.05em;
}

.close-button {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--text-soft);
}

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

.language-grid button {
  min-height: 54px;
  padding: 0 16px;
  justify-content: flex-start;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #f7f9fd;
  color: var(--text);
  font-weight: 700;
}

.help-grid {
  display: grid;
  gap: 14px;
}

.help-item {
  padding: 16px 18px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: #f7f9fd;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
}

.help-item small {
  color: var(--text-soft);
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  z-index: 70;
  transform: translate(-50%, 18px);
  opacity: 0;
  pointer-events: none;
  transition:
    opacity 180ms ease,
    transform 180ms ease;
}

.toast.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

.toast__card {
  padding: 16px 18px;
  border-radius: 18px;
  background: #0f1826;
  color: #f7fbff;
  box-shadow: 0 24px 50px rgba(15, 24, 38, 0.28);
}

[data-reveal] {
  opacity: 0;
  transform: translateY(16px);
  transition:
    opacity 400ms ease,
    transform 400ms ease;
}

[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 1160px) {
  .dashboard-shell {
    grid-template-columns: 1fr;
  }

  .dashboard-sidebar {
    position: static;
    top: 0;
    height: auto;
    border-right: 0;
    border-bottom: 1px solid rgba(190, 201, 218, 0.72);
  }

  .dashboard-header {
    top: 0;
  }

  .card-grid,
  .asset-grid,
  .stats-grid,
  .info-grid,
  .payments-grid,
  .split-grid,
  .academy-grid,
  .plans-grid,
  .bots-grid,
  .miners-grid,
  .traders-grid,
  .profile-grid,
  .two-column,
  .dashboard-two-column,
  .balance-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

@media (max-width: 860px) {
  .public-header__inner,
  .demo-banner__inner,
  .dashboard-header__inner,
  .cookie-bar__inner {
    flex-direction: column;
    align-items: stretch;
  }

  .public-nav,
  .public-actions,
  .dashboard-actions {
    justify-content: space-between;
    flex-wrap: wrap;
  }

  .card-grid,
  .asset-grid,
  .stats-grid,
  .info-grid,
  .step-grid,
  .payments-grid,
  .split-grid,
  .academy-grid,
  .plans-grid,
  .bots-grid,
  .miners-grid,
  .traders-grid,
  .profile-grid,
  .form-row,
  .two-column,
  .dashboard-two-column,
  .balance-grid {
    grid-template-columns: 1fr;
  }

  .dashboard-content,
  .dashboard-header,
  .dashboard-sidebar {
    padding-left: 18px;
    padding-right: 18px;
  }

  .section,
  .auth-main {
    width: min(var(--content-width), calc(100% - 24px));
  }

  .hero__card,
  .surface-card,
  .panel,
  .auth-card,
  .trader-card,
  .plan-card,
  .bot-card,
  .miner-card,
  .resource-card {
    padding: 22px;
  }

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

@media (max-width: 620px) {
  .headline {
    font-size: clamp(2.35rem, 12vw, 4.1rem);
  }

  .public-nav {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
  }

  .public-nav a {
    justify-content: center;
    text-align: center;
  }

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

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

  .floating-chat {
    right: 14px;
    left: 14px;
  }

  .floating-chat button {
    width: 100%;
  }
}
