:root {
  color-scheme: light;
  --bg: #ecf7ff;
  --bg-secondary: #dff1ff;
  --surface: rgba(255, 255, 255, 0.82);
  --surface-strong: #ffffff;
  --surface-muted: rgba(241, 249, 255, 0.8);
  --line: rgba(16, 110, 160, 0.14);
  --text: #092537;
  --muted: #4f6e82;
  --accent: #57c8ff;
  --accent-strong: #0c9de0;
  --accent-soft: rgba(87, 200, 255, 0.15);
  --accent-glow: rgba(87, 200, 255, 0.36);
  --success: #1d8d68;
  --warning: #d48f19;
  --danger: #d85d79;
  --shadow: 0 24px 60px rgba(18, 80, 118, 0.12);
  --mobile-nav-bg: rgba(236, 247, 255, 0.9);
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #06131d;
  --bg-secondary: #0a2233;
  --surface: rgba(9, 26, 38, 0.88);
  --surface-strong: #0f3045;
  --surface-muted: rgba(12, 39, 57, 0.9);
  --line: rgba(108, 198, 255, 0.18);
  --text: #edf9ff;
  --muted: #94bacd;
  --accent: #63d5ff;
  --accent-strong: #29b2ef;
  --accent-soft: rgba(99, 213, 255, 0.16);
  --accent-glow: rgba(99, 213, 255, 0.3);
  --success: #4fc89b;
  --warning: #ffbc42;
  --danger: #ff7997;
  --shadow: 0 26px 70px rgba(0, 0, 0, 0.32);
  --mobile-nav-bg: rgba(6, 19, 29, 0.9);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  color: var(--text);
  font-family: "Trebuchet MS", "Lucida Sans Unicode", sans-serif;
  background:
    radial-gradient(circle at top left, var(--accent-glow), transparent 28%),
    radial-gradient(circle at bottom right, rgba(12, 157, 224, 0.14), transparent 24%),
    linear-gradient(180deg, var(--bg-secondary), var(--bg) 34%, var(--bg));
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 32px 32px;
  opacity: 0.22;
}

a {
  color: inherit;
}

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

h1,
h2,
h3,
strong {
  font-family: Cambria, Georgia, serif;
}

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

.eyebrow,
.section-kicker {
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.74rem;
  color: var(--accent-strong);
}

.floating-pill,
.tag,
.mini-pill,
.status-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 999px;
  border: 1px solid var(--line);
}

.button,
.icon-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 1px solid transparent;
  cursor: pointer;
  transition:
    transform 0.18s ease,
    border-color 0.18s ease,
    background-color 0.18s ease,
    color 0.18s ease,
    box-shadow 0.18s ease;
}

.button {
  min-height: 46px;
  padding: 0 18px;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
  color: #04131d;
  font-weight: 700;
  box-shadow: 0 14px 30px rgba(12, 157, 224, 0.22);
}

.button:hover,
.icon-button:hover,
.nav-button:hover,
.bottom-nav-button:hover {
  transform: translateY(-1px);
}

.button:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none;
}

.button-ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--line);
  box-shadow: none;
}

.icon-button {
  min-width: 44px;
  min-height: 44px;
  padding: 0 14px;
  border-radius: 14px;
  border-color: var(--line);
  background: var(--surface);
  color: var(--text);
}

.status-pill {
  min-height: 34px;
  padding: 0 14px;
  font-size: 0.88rem;
  background: var(--surface);
}

.status-pill-positive,
.tone-positive {
  color: var(--success);
  border-color: rgba(29, 141, 104, 0.22);
  background: rgba(29, 141, 104, 0.1);
}

.status-pill-warning,
.tone-warning {
  color: var(--warning);
  border-color: rgba(212, 143, 25, 0.24);
  background: rgba(212, 143, 25, 0.11);
}

.status-pill-danger,
.tone-danger {
  color: var(--danger);
  border-color: rgba(216, 93, 121, 0.24);
  background: rgba(216, 93, 121, 0.11);
}

.status-pill-neutral,
.tone-info {
  color: var(--muted);
  border-color: var(--line);
  background: var(--surface-muted);
}

.mini-pill,
.tag {
  padding: 7px 12px;
  font-size: 0.78rem;
  background: var(--surface-muted);
  max-width: 100%;
  overflow-wrap: anywhere;
  text-align: center;
}

.login-page,
.dashboard-page {
  position: relative;
}

.auth-page {
  position: relative;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.theme-toggle-button {
  padding: 0;
}

.theme-toggle-icon {
  width: 22px;
  height: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.theme-toggle-icon svg {
  width: 100%;
  height: 100%;
}

.auth-shell {
  position: relative;
  z-index: 1;
  width: min(1240px, calc(100% - 28px));
  min-height: 100vh;
  margin: 0 auto;
  padding: 24px 0;
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 24px;
  align-items: stretch;
}

.auth-shell-minimal {
  width: min(720px, calc(100% - 24px));
  min-height: auto;
  padding: 24px 0 32px;
  grid-template-columns: 1fr;
  gap: 18px;
}

.auth-shell-wide {
  width: min(820px, calc(100% - 24px));
}

.auth-utility-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.auth-brand-compact {
  gap: 10px;
}

.auth-logo {
  width: 44px;
  height: 44px;
}

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

.utility-icon-button {
  min-width: 44px;
  min-height: 44px;
  padding: 0;
}

.utility-icon {
  width: 20px;
  height: 20px;
  display: inline-flex;
}

.utility-icon svg {
  width: 100%;
  height: 100%;
}

.auth-aside,
.auth-main {
  min-width: 0;
}

.auth-aside,
.auth-card,
.feedback-panel {
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.auth-aside {
  border-radius: 30px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  justify-content: space-between;
  background:
    radial-gradient(circle at top right, rgba(87, 200, 255, 0.22), transparent 32%),
    linear-gradient(180deg, var(--surface-strong), var(--surface));
}

.auth-aside-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.auth-brand-link {
  gap: 12px;
}

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

.service-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px;
  border-radius: 22px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, var(--surface-strong), var(--surface-muted));
}

.service-icon {
  width: 46px;
  height: 46px;
  flex: 0 0 auto;
  border-radius: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(87, 200, 255, 0.22), rgba(12, 157, 224, 0.14));
  color: var(--accent-strong);
}

.service-icon svg {
  width: 24px;
  height: 24px;
}

.service-card strong {
  display: block;
  margin-bottom: 6px;
  font-size: 1.06rem;
}

.service-card p {
  color: var(--muted);
  line-height: 1.6;
}

.auth-main {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 18px;
}

.auth-main-centered {
  align-items: stretch;
}

.auth-card {
  border-radius: 30px;
  padding: 24px;
  display: grid;
  gap: 22px;
}

.auth-card-single {
  max-width: 620px;
}

.auth-card-wide {
  max-width: 100%;
}

.auth-card-double {
  max-width: 760px;
}

.auth-card-plain {
  border-radius: 24px;
  background: linear-gradient(180deg, var(--surface-strong), var(--surface));
}

.auth-title {
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 0.98;
}

.auth-subtitle {
  margin-top: 8px;
  color: var(--muted);
  line-height: 1.7;
}

.auth-card-head-plain {
  align-items: flex-start;
}

.auth-card-split {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  align-items: start;
}

.auth-subform {
  padding: 18px;
  border-radius: 22px;
  border: 1px solid var(--line);
  background: var(--surface-muted);
}

.auth-divider {
  display: none;
}

.auth-inline-links {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.auth-inline-links a {
  color: var(--accent-strong);
  text-decoration: none;
  font-weight: 700;
}

.auth-inline-links a:hover {
  text-decoration: underline;
}

.service-inline-list {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.service-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--surface-muted);
  color: var(--text);
  font-weight: 700;
}

.service-pill-icon {
  width: 16px;
  height: 16px;
  display: inline-flex;
  color: var(--accent-strong);
}

.service-pill-icon svg {
  width: 100%;
  height: 100%;
}

.phone-grid {
  align-items: end;
}

.consent-check {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: var(--surface-muted);
}

.consent-check input {
  margin-top: 3px;
}

.consent-check span {
  color: var(--muted);
  line-height: 1.65;
}

.iti {
  width: 100%;
  --iti-border-color: var(--line);
  --iti-dropdown-bg: var(--surface-strong);
  --iti-path-flags-1x: url("https://cdn.jsdelivr.net/npm/intl-tel-input@25.12.2/dist/img/flags.webp");
  --iti-path-flags-2x: url("https://cdn.jsdelivr.net/npm/intl-tel-input@25.12.2/dist/img/flags@2x.webp");
  --iti-path-globe-1x: url("https://cdn.jsdelivr.net/npm/intl-tel-input@25.12.2/dist/img/globe.webp");
  --iti-path-globe-2x: url("https://cdn.jsdelivr.net/npm/intl-tel-input@25.12.2/dist/img/globe@2x.webp");
}

.iti input,
.iti input[type="tel"] {
  padding-left: 92px !important;
}

.iti__country-container {
  padding-left: 4px;
}

.iti__selected-country {
  border-radius: 12px;
}

.iti__country-list {
  border-radius: 18px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  color: var(--text);
}

.iti__search-input {
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--surface-strong);
  color: var(--text);
}

.login-shell {
  position: relative;
  z-index: 1;
  width: min(1320px, calc(100% - 32px));
  margin: 0 auto;
  padding: 30px 0 50px;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 24px;
  align-items: stretch;
}

.login-brand-panel,
.login-panel,
.auth-card,
.feature-card,
.panel,
.spot-card,
.metric-card,
.session-card,
.sidebar,
.topbar,
.bottom-nav {
  backdrop-filter: blur(18px);
}

.login-brand-panel,
.auth-card,
.feedback-panel,
.sidebar,
.topbar,
.panel,
.metric-card,
.spot-card,
.session-card,
.bottom-nav {
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.login-brand-panel {
  position: relative;
  overflow: hidden;
  border-radius: 30px;
  padding: 28px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: calc(100vh - 80px);
}

.login-brand-panel::after {
  content: "";
  position: absolute;
  right: -70px;
  top: -40px;
  width: 260px;
  height: 260px;
  border-radius: 44px;
  transform: rotate(16deg);
  background: linear-gradient(180deg, rgba(87, 200, 255, 0.26), rgba(87, 200, 255, 0.02));
}

.brand-topline,
.brand-inline {
  display: flex;
  align-items: center;
  gap: 16px;
}

.brand-topline {
  justify-content: space-between;
}

.brand-logo,
.sidebar-logo {
  width: 58px;
  height: 58px;
  object-fit: contain;
  filter: drop-shadow(0 12px 18px rgba(12, 157, 224, 0.18));
}

.brand-title {
  display: block;
  font-size: 1.2rem;
}

.brand-copy,
.hero-copy,
.hero-side,
.panel-head > div {
  position: relative;
  z-index: 1;
}

.brand-copy {
  display: grid;
  gap: 16px;
}

.login-brand-panel h1 {
  max-width: 720px;
  font-size: clamp(2.4rem, 5vw, 4.8rem);
  line-height: 0.95;
}

.lede {
  max-width: 720px;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.8;
}

.feature-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.feature-card {
  padding: 20px;
  border-radius: 22px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, var(--surface-strong), var(--surface-muted));
}

.feature-card h2 {
  font-size: 1.1rem;
  margin-bottom: 10px;
}

.feature-card p,
.helper,
.stack-item p,
.metric-note,
.empty-state p,
.notice,
.profile-row span,
.profile-row strong,
.check-row p {
  color: var(--muted);
}

.login-panel {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 18px;
}

.auth-card,
.feedback-panel {
  border-radius: 28px;
  padding: 24px;
}

.auth-card {
  display: grid;
  gap: 22px;
}

.auth-card-head,
.panel-head,
.spot-card-head,
.topbar,
.profile-row,
.stack-item,
.chart-copy,
.chart-row,
.session-balance {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.stacked-form {
  display: grid;
  gap: 14px;
}

.compact-form {
  gap: 12px;
}

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

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

.field span {
  font-size: 0.9rem;
  color: var(--muted);
}

.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 48px;
  padding: 0 15px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: var(--surface-strong);
  color: var(--text);
  outline: none;
  transition:
    border-color 0.18s ease,
    box-shadow 0.18s ease,
    transform 0.18s ease;
}

.field input[readonly] {
  background: color-mix(in srgb, var(--surface-strong) 82%, var(--accent-ice) 18%);
  cursor: default;
}

.field textarea {
  min-height: 110px;
  resize: vertical;
  padding: 14px 15px;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: rgba(87, 200, 255, 0.66);
  box-shadow: 0 0 0 4px rgba(87, 200, 255, 0.14);
}

.field input[type="file"] {
  min-height: auto;
  padding: 12px 15px;
}

.field-hint {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55;
}

.mode-switch {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  padding: 8px;
  border-radius: 20px;
  background: var(--surface-muted);
  border: 1px solid var(--line);
}

.mode-button {
  min-height: 46px;
  border: 0;
  border-radius: 14px;
  background: transparent;
  color: var(--muted);
  font-weight: 700;
  cursor: pointer;
}

.mode-button.is-active {
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
  color: #04131d;
}

.feedback-panel {
  min-height: 86px;
}

.feedback-panel p {
  line-height: 1.7;
}

.inline-feedback {
  min-height: 22px;
  margin: 8px 2px 0;
  font-size: 0.95rem;
  line-height: 1.55;
}

.inline-feedback[hidden] {
  display: none;
}

.inline-feedback.tone-positive {
  color: var(--success);
  background: transparent;
  border: 0;
}

.inline-feedback.tone-warning {
  color: var(--warning);
  background: transparent;
  border: 0;
}

.inline-feedback.tone-danger {
  color: var(--danger);
  background: transparent;
  border: 0;
}

.inline-feedback.tone-info {
  color: var(--muted);
  background: transparent;
  border: 0;
}

.user-shell {
  position: relative;
  z-index: 1;
  width: min(1440px, calc(100% - 28px));
  margin: 0 auto;
  padding: 18px 0 30px;
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  gap: 18px;
}

.sidebar {
  position: sticky;
  top: 18px;
  height: calc(100vh - 36px);
  border-radius: 28px;
  padding: 20px 18px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.sidebar-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.brand-link {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
}

.session-card,
.spot-card,
.metric-card,
.panel {
  border-radius: 24px;
}

.session-card {
  padding: 18px;
  display: grid;
  gap: 12px;
}

.session-card h2 {
  font-size: 1.18rem;
}

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

.nav-button {
  width: 100%;
  min-height: 54px;
  padding: 0 16px;
  border-radius: 18px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--text);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 12px;
  text-align: left;
  cursor: pointer;
  transition:
    background-color 0.18s ease,
    border-color 0.18s ease,
    color 0.18s ease,
    transform 0.18s ease;
}

.nav-button.is-active,
.bottom-nav-button.is-active {
  background: linear-gradient(135deg, rgba(87, 200, 255, 0.22), rgba(12, 157, 224, 0.16));
  border-color: rgba(87, 200, 255, 0.4);
  color: var(--accent-strong);
}

.sidebar-footer {
  margin-top: auto;
  display: grid;
  gap: 12px;
}

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

.sidebar-action {
  width: 100%;
}

.sidebar-icon-action,
.sidebar-icon-link {
  width: 100%;
}

.dashboard-icon-link,
.sidebar-icon-link {
  text-decoration: none;
}

.dashboard-icon-link.is-active,
.sidebar-icon-link.is-active {
  border-color: rgba(87, 200, 255, 0.42);
  background: linear-gradient(135deg, rgba(87, 200, 255, 0.22), rgba(12, 157, 224, 0.14));
  color: var(--accent-strong);
}

.app-main {
  min-width: 0;
  display: grid;
  gap: 14px;
}

.dashboard-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 44px;
  padding: 4px 2px 0;
}

.dashboard-toolbar-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: auto;
}

.dashboard-theme-button {
  margin-left: 0;
}

.topbar {
  position: sticky;
  top: 18px;
  z-index: 5;
  min-height: 92px;
  border-radius: 24px;
  padding: 18px 22px;
}

.topbar-left,
.topbar-right,
.hero-actions,
.tag-row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.view-title {
  font-size: clamp(1.7rem, 3vw, 2.7rem);
}

.view-content {
  display: grid;
  gap: 18px;
  padding-bottom: 12px;
}

.dashboard-page .view-content,
.dashboard-page .panel,
.dashboard-page .metric-card,
.dashboard-page .spot-card,
.dashboard-page .stack-item,
.dashboard-page .field,
.dashboard-page .button,
.dashboard-page .status-pill,
.dashboard-page .mini-pill {
  font-size: 14px;
}

.dashboard-page .section-kicker,
.dashboard-page .metric-label,
.dashboard-page .metric-note,
.dashboard-page .field span,
.dashboard-page .wallet-tab-copy small,
.dashboard-page .home-carousel-meta,
.dashboard-page .home-story-meta,
.dashboard-page .bottom-nav-button span:last-child {
  font-size: 12px;
}

.hero-spotlight,
.panel-grid,
.metric-grid,
.cards-grid,
.profile-grid,
.check-list {
  display: grid;
  gap: 16px;
}

.home-carousel-shell {
  display: grid;
  gap: 18px;
  padding: 30px;
  border-radius: 30px;
  border: 1px solid var(--line);
  background:
    radial-gradient(circle at top right, rgba(87, 200, 255, 0.26), transparent 28%),
    linear-gradient(145deg, var(--surface-strong), var(--surface));
  box-shadow: var(--shadow);
  min-height: clamp(260px, 34vw, 390px);
}

.home-carousel-stage {
  min-height: clamp(210px, 30vw, 310px);
  display: flex;
  align-items: end;
}

.home-carousel-card {
  width: 100%;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(220px, 0.92fr);
  align-items: center;
  gap: 22px;
  padding: 24px;
  border-radius: 24px;
  border: 1px solid rgba(87, 200, 255, 0.2);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.02));
}

.home-carousel-copy {
  display: grid;
  gap: 12px;
}

.home-carousel-card h2 {
  font-size: clamp(1rem, 2vw, 1.125rem);
  line-height: 1.35;
}

.home-carousel-card p {
  max-width: 52ch;
  color: var(--muted);
  line-height: 1.7;
}

.home-carousel-media {
  min-height: 210px;
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid rgba(87, 200, 255, 0.18);
  background: linear-gradient(145deg, rgba(87, 200, 255, 0.16), rgba(12, 157, 224, 0.08));
}

.home-carousel-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.home-carousel-media-fallback {
  display: grid;
  place-items: center;
}

.home-carousel-step {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 88px;
  min-height: 88px;
  padding: 0 18px;
  border-radius: 999px;
  border: 1px solid rgba(87, 200, 255, 0.28);
  background: rgba(255, 255, 255, 0.18);
  color: var(--accent-strong);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.home-carousel-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}

.home-carousel-controls {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.home-carousel-arrow {
  min-width: 40px;
  min-height: 40px;
  padding: 0;
}

.home-carousel-dots {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.home-carousel-dot {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  border: 0;
  padding: 0;
  cursor: pointer;
  background: rgba(87, 200, 255, 0.22);
}

.home-carousel-dot.is-active {
  width: 28px;
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
}

.home-layout,
.home-top-grid,
.home-guide-grid,
.home-guide-steps,
.home-summary-list {
  display: grid;
  gap: 18px;
}

.home-top-grid {
  grid-template-columns: minmax(0, 1.16fr) minmax(320px, 0.84fr);
}

.home-story-card,
.home-services-card,
.home-assets-panel,
.home-guide-panel,
.home-opportunity-panel,
.home-summary-panel {
  position: relative;
  overflow: hidden;
}

.home-story-card {
  display: grid;
  gap: 18px;
  padding: 28px;
  border-radius: 30px;
  border: 1px solid var(--line);
  background:
    radial-gradient(circle at top right, rgba(87, 200, 255, 0.2), transparent 28%),
    linear-gradient(145deg, var(--surface-strong), var(--surface));
  box-shadow: var(--shadow);
}

.home-story-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(240px, 0.96fr);
  align-items: center;
  gap: 22px;
}

.home-story-copy {
  display: grid;
  gap: 14px;
}

.home-story-card h2 {
  font-size: clamp(1.08rem, 2.3vw, 1.42rem);
  line-height: 1.12;
}

.home-story-copy p,
.home-guide-copy p,
.home-summary-item span,
.home-service-helper,
.home-asset-note {
  color: var(--muted);
}

.home-story-copy p,
.home-guide-copy p,
.home-asset-note {
  font-size: 12px;
  line-height: 1.7;
}

.home-story-media {
  min-height: 220px;
  border-radius: 26px;
  overflow: hidden;
  border: 1px solid rgba(87, 200, 255, 0.18);
  background: linear-gradient(145deg, rgba(87, 200, 255, 0.16), rgba(12, 157, 224, 0.08));
}

.home-story-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.home-story-media-fallback {
  display: grid;
  place-items: center;
}

.home-story-step {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 96px;
  min-height: 96px;
  padding: 0 20px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(87, 200, 255, 0.26);
  color: var(--accent-strong);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.home-story-footer,
.home-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}

.home-story-controls {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.home-story-arrow {
  min-width: 40px;
  min-height: 40px;
  padding: 0;
}

.home-story-dots {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.home-story-dot {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  border: 0;
  padding: 0;
  cursor: pointer;
  background: rgba(87, 200, 255, 0.22);
}

.home-story-dot.is-active {
  width: 28px;
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
}

.home-services-card {
  padding: 22px;
}

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

.home-service-tile {
  appearance: none;
  border: 0;
  background: none;
  padding: 0;
  display: grid;
  justify-items: center;
  align-content: start;
  gap: 8px;
  text-align: center;
  color: inherit;
  cursor: pointer;
}

.home-service-icon {
  width: 72px;
  height: 72px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  color: #fff;
  box-shadow: 0 18px 35px rgba(18, 80, 118, 0.16);
}

.home-service-icon svg {
  width: 30px;
  height: 30px;
}

.home-service-label {
  font-weight: 700;
  font-size: 12px;
  line-height: 1.3;
}

.home-service-helper {
  font-size: 10px;
}

.home-service-tile.tone-sky .home-service-icon,
.home-service-tile.tone-accent .home-service-icon,
.home-asset-card.tone-accent {
  background: linear-gradient(180deg, var(--accent), var(--accent-strong));
}

.home-service-tile.tone-ice .home-service-icon {
  background: linear-gradient(180deg, rgba(99, 213, 255, 0.95), rgba(87, 200, 255, 0.72));
}

.home-service-tile.tone-ocean .home-service-icon {
  background: linear-gradient(180deg, rgba(12, 157, 224, 0.94), rgba(12, 157, 224, 0.72));
}

.home-service-tile.tone-success .home-service-icon,
.home-service-tile.tone-mint .home-service-icon,
.home-asset-card.tone-success {
  background: linear-gradient(180deg, rgba(29, 141, 104, 0.94), rgba(79, 200, 155, 0.84));
}

.home-service-tile.tone-warning .home-service-icon,
.home-asset-card.tone-warning {
  background: linear-gradient(180deg, rgba(255, 165, 77, 0.96), rgba(212, 143, 25, 0.82));
}

.home-service-tile.tone-danger .home-service-icon {
  background: linear-gradient(180deg, rgba(216, 93, 121, 0.96), rgba(255, 134, 163, 0.82));
}

.home-assets-panel,
.home-guide-panel,
.home-opportunity-panel,
.home-summary-panel {
  padding: 22px;
}

.home-assets-strip {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(210px, 1fr);
  gap: 16px;
  overflow-x: auto;
  padding-bottom: 6px;
  scrollbar-width: thin;
}

.home-asset-card {
  position: relative;
  min-height: 188px;
  padding: 20px;
  border-radius: 28px;
  color: #fff;
  display: grid;
  align-content: space-between;
  gap: 18px;
  overflow: hidden;
  box-shadow: 0 26px 60px rgba(18, 80, 118, 0.16);
}

.home-asset-card::after {
  content: "";
  position: absolute;
  left: -10%;
  right: -10%;
  bottom: -32px;
  height: 84px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.14);
  box-shadow:
    0 -12px 0 rgba(255, 255, 255, 0.1),
    0 -26px 0 rgba(255, 255, 255, 0.06);
}

.home-asset-card.tone-sky {
  background: linear-gradient(180deg, rgba(87, 200, 255, 0.96), rgba(12, 157, 224, 0.84));
}

.home-asset-copy {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 10px;
}

.home-asset-label,
.home-asset-unit {
  font-weight: 700;
}

.home-asset-label {
  font-size: 0.92rem;
  line-height: 1.3;
}

.home-asset-value {
  font-size: clamp(1.42rem, 3.5vw, 2rem);
  line-height: 1;
}

.home-asset-unit {
  font-size: 0.78rem;
}

.home-asset-note {
  position: relative;
  z-index: 1;
  color: rgba(255, 255, 255, 0.88);
  font-size: 11px;
}

.home-guide-grid {
  grid-template-columns: minmax(0, 1.02fr) minmax(0, 0.98fr);
}

.home-guide-steps {
  gap: 14px;
}

.home-guide-step,
.home-summary-item {
  display: grid;
  gap: 12px;
  padding: 16px 18px;
  border-radius: 22px;
  border: 1px solid var(--line);
  background: var(--surface-muted);
}

.home-guide-step {
  grid-template-columns: auto 1fr;
  align-items: start;
}

.home-guide-index {
  min-width: 52px;
  min-height: 52px;
  border-radius: 18px;
  display: inline-grid;
  place-items: center;
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
  color: #fff;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.home-guide-copy {
  display: grid;
  gap: 6px;
}

.home-guide-copy strong,
.home-summary-panel h2,
.home-guide-panel h2,
.home-opportunity-panel h2,
.home-assets-panel h2,
.home-services-card h2 {
  font-size: 0.95rem;
}

.home-summary-list {
  gap: 12px;
}

.home-summary-item {
  grid-template-columns: auto 1fr;
  align-items: center;
}

.home-summary-item strong {
  font-size: 1.08rem;
  color: var(--accent-strong);
}

.hero-spotlight {
  grid-template-columns: 1.2fr 0.8fr;
  padding: 28px;
  border-radius: 28px;
  border: 1px solid var(--line);
  background:
    radial-gradient(circle at top right, rgba(87, 200, 255, 0.24), transparent 24%),
    linear-gradient(145deg, var(--surface-strong), var(--surface));
  box-shadow: var(--shadow);
}

.hero-spotlight h2 {
  font-size: clamp(1.55rem, 3.2vw, 2.45rem);
  line-height: 0.96;
  margin-top: 12px;
}

.hero-copy {
  display: grid;
  gap: 16px;
}

.hero-copy p {
  color: var(--muted);
  line-height: 1.8;
  max-width: 680px;
}

.view-intro {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}

.view-intro h1 {
  font-size: clamp(1rem, 2vw, 1.125rem);
  line-height: 1.3;
  margin-top: 6px;
}

.view-intro p {
  margin-top: 8px;
  max-width: 720px;
  color: var(--muted);
  line-height: 1.65;
}

.hero-side {
  display: grid;
  gap: 16px;
}

.spot-card {
  padding: 22px;
  background: linear-gradient(180deg, var(--surface-strong), var(--surface-muted));
}

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

.spot-card h3 {
  font-size: clamp(1rem, 2vw, 1.125rem);
}

.spot-card p {
  color: var(--muted);
  line-height: 1.65;
}

.card-action {
  margin-top: 16px;
}

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

.metric-card {
  padding: 22px;
  display: grid;
  gap: 12px;
}

.metric-value {
  font-size: clamp(1rem, 2vw, 1.125rem);
}

.metric-label {
  color: var(--muted);
  font-size: 12px;
}

.accent-sky {
  background: linear-gradient(180deg, rgba(87, 200, 255, 0.18), var(--surface));
}

.accent-ice {
  background: linear-gradient(180deg, rgba(99, 213, 255, 0.12), var(--surface));
}

.accent-ocean {
  background: linear-gradient(180deg, rgba(12, 157, 224, 0.14), var(--surface));
}

.accent-mint {
  background: linear-gradient(180deg, rgba(29, 141, 104, 0.12), var(--surface));
}

.panel {
  padding: 22px;
  display: grid;
  gap: 18px;
}

.panel h2 {
  font-size: 1.08rem;
}

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

.agent-stage,
.agent-launchpad,
.agent-launchpad-copy,
.agent-launchpad-side,
.agent-launchpad-actions,
.agent-model-grid,
.agent-model-card,
.agent-model-meta {
  display: grid;
}

.agent-stage {
  gap: 18px;
}

.agent-launchpad {
  grid-template-columns: minmax(0, 1.15fr) minmax(260px, 0.85fr);
  gap: 18px;
  padding: 28px;
  border-radius: 30px;
  border: 1px solid var(--line);
  background:
    radial-gradient(circle at top center, rgba(87, 200, 255, 0.2), transparent 26%),
    linear-gradient(145deg, var(--surface-strong), var(--surface));
  box-shadow: var(--shadow);
}

.agent-launchpad-copy {
  gap: 20px;
}

.agent-launchpad-copy p,
.agent-launchpad-note span,
.agent-stat-card p,
.agent-model-card p {
  color: var(--muted);
  line-height: 1.75;
  font-size: 13px;
}

.agent-launchpad-actions {
  justify-items: center;
  gap: 18px;
  padding: 14px 0 6px;
}

.agent-gate-button {
  width: min(260px, 76vw);
  aspect-ratio: 1 / 1;
  padding: 0;
  border-radius: 999px;
  border: 1px solid rgba(87, 200, 255, 0.32);
  background:
    radial-gradient(circle at 35% 30%, rgba(255, 255, 255, 0.55), transparent 18%),
    radial-gradient(circle, rgba(87, 200, 255, 0.26), rgba(12, 157, 224, 0.08) 58%, transparent 72%),
    linear-gradient(160deg, var(--surface-strong), var(--surface));
  box-shadow:
    0 26px 60px rgba(12, 157, 224, 0.18),
    inset 0 0 0 1px rgba(255, 255, 255, 0.18);
  cursor: pointer;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    border-color 0.2s ease;
}

.agent-gate-button:hover {
  transform: translateY(-2px) scale(1.01);
  border-color: rgba(87, 200, 255, 0.46);
  box-shadow:
    0 30px 70px rgba(12, 157, 224, 0.24),
    inset 0 0 0 1px rgba(255, 255, 255, 0.22);
}

.agent-gate-ring {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
}

.agent-gate-core {
  width: 66%;
  aspect-ratio: 1 / 1;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.76), rgba(255, 255, 255, 0.24));
  border: 1px solid rgba(255, 255, 255, 0.42);
  color: var(--accent-strong);
  font-family: Cambria, Georgia, serif;
  font-size: clamp(4.5rem, 12vw, 6.8rem);
  font-weight: 800;
  line-height: 1;
  padding-left: 4px;
  text-shadow: 0 10px 30px rgba(12, 157, 224, 0.22);
}

[data-theme="dark"] .agent-gate-core {
  background: linear-gradient(180deg, rgba(237, 249, 255, 0.26), rgba(237, 249, 255, 0.08));
  border-color: rgba(99, 213, 255, 0.24);
}

.agent-launchpad-note {
  display: grid;
  gap: 8px;
  justify-items: center;
  max-width: 360px;
  text-align: center;
}

.agent-launchpad-note strong {
  font-size: 1rem;
}

.agent-launchpad-side {
  gap: 12px;
  align-content: start;
}

.agent-stat-card,
.agent-model-card {
  padding: 18px;
  border-radius: 22px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, var(--surface-strong), var(--surface-muted));
}

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

.agent-stat-label {
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.agent-stat-card strong {
  font-size: clamp(1.2rem, 2.4vw, 1.7rem);
}

.agent-models-panel {
  gap: 16px;
}

.agent-model-grid {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 14px;
}

.agent-model-card {
  gap: 14px;
}

.agent-model-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.agent-model-head h3 {
  font-size: 1.02rem;
  margin-top: 6px;
}

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

.agent-model-meta-box {
  padding: 12px 14px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.38);
}

[data-theme="dark"] .agent-model-meta-box {
  background: rgba(6, 16, 23, 0.82);
}

.agent-model-meta-box span {
  display: block;
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 12px;
}

.agent-model-meta-box strong {
  font-size: 14px;
  line-height: 1.45;
}

.agent-mobile-shell {
  display: grid;
  gap: 16px;
}

.agent-mobile-header {
  display: grid;
  gap: 12px;
  padding: 18px 20px;
  border-radius: 24px;
  border: 1px solid rgba(12, 157, 224, 0.2);
  background: linear-gradient(180deg, var(--accent-strong), var(--accent));
  box-shadow: var(--shadow);
  color: #fff;
}

.agent-mobile-copy {
  display: grid;
  gap: 6px;
}

.agent-mobile-copy h1 {
  margin: 0;
  font-size: 1.12rem;
  font-weight: 600;
}

.agent-mobile-copy p {
  margin: 0;
  color: rgba(255, 255, 255, 0.84);
  font-size: 12px;
  line-height: 1.6;
}

.agent-command-panel {
  display: grid;
  gap: 12px;
  padding: 16px 18px;
  border-radius: 22px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, var(--surface-strong), var(--surface));
  box-shadow: var(--shadow-soft);
}

.agent-command-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
}

.agent-command-copy {
  display: grid;
  gap: 4px;
}

.agent-command-copy strong {
  font-size: 0.98rem;
}

.agent-command-copy p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.65;
}

.agent-mini-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 10px;
}

.agent-mini-stat {
  display: grid;
  gap: 4px;
  padding: 13px 14px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: var(--surface-muted);
}

.agent-mini-stat span {
  color: var(--muted);
  font-size: 11px;
}

.agent-mini-stat strong {
  font-size: 0.98rem;
}

.agent-list-panel {
  gap: 14px;
}

.agent-model-list {
  display: grid;
  gap: 12px;
}

.agent-model-card {
  padding: 16px 18px;
  border-radius: 22px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, var(--surface-strong), var(--surface-muted));
  box-shadow: var(--shadow-soft);
}

.agent-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.agent-card-top h3 {
  margin: 4px 0 6px;
  font-size: 0.98rem;
}

.agent-card-top p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.65;
}

.agent-preview-strip {
  display: grid;
  gap: 4px;
  padding: 12px 14px;
  border-radius: 16px;
  border: 1px solid rgba(87, 200, 255, 0.2);
  background: rgba(87, 200, 255, 0.08);
}

.agent-preview-strip span {
  color: var(--muted);
  font-size: 11px;
}

.agent-preview-strip strong {
  font-size: 0.92rem;
}

.agent-gate-button-inline {
  width: 148px;
  min-width: 148px;
  justify-self: center;
  box-shadow:
    0 18px 40px rgba(12, 157, 224, 0.16),
    inset 0 0 0 1px rgba(255, 255, 255, 0.18);
}

.cards-grid {
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.graph-tab-shell,
.graph-tab-strip,
.graph-highlight-grid,
.graph-cockpit-summary-grid {
  display: grid;
}

.graph-tab-shell {
  gap: 12px;
}

.graph-tab-strip {
  grid-auto-flow: column;
  grid-auto-columns: max-content;
  gap: 10px;
  overflow-x: auto;
  padding: 6px;
  border-radius: 22px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, var(--surface-strong), var(--surface));
  box-shadow: var(--shadow);
}

.graph-tab-button,
.graph-highlight-card {
  cursor: pointer;
  appearance: none;
  border: 1px solid transparent;
  color: var(--text);
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.graph-tab-button {
  min-height: 44px;
  padding: 0 16px;
  border-radius: 16px;
  background: transparent;
  white-space: nowrap;
  font-size: 13px;
  font-weight: 700;
}

.graph-tab-button.is-active {
  background: var(--accent-soft);
  border-color: rgba(87, 200, 255, 0.26);
  color: var(--accent-strong);
}

.graph-highlight-grid {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
}

.graph-highlight-card {
  display: grid;
  gap: 8px;
  width: 100%;
  padding: 18px;
  text-align: left;
  border-radius: 22px;
  background: linear-gradient(180deg, var(--surface-strong), var(--surface-muted));
}

.graph-highlight-card strong {
  font-size: 16px;
}

.graph-highlight-card p {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.65;
}

.graph-tab-button:hover,
.graph-highlight-card:hover {
  transform: translateY(-1px);
  border-color: rgba(87, 200, 255, 0.26);
}

.graph-stage {
  display: grid;
  gap: 16px;
}

.graph-cockpit-summary-grid {
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 12px;
}

.graph-cockpit-summary-box {
  padding: 14px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.34);
}

[data-theme="dark"] .graph-cockpit-summary-box {
  background: rgba(6, 16, 23, 0.82);
}

.graph-cockpit-summary-box span {
  display: block;
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 12px;
}

.graph-cockpit-summary-box strong {
  font-size: 15px;
}

.graph-modal {
  position: fixed;
  inset: 0;
  z-index: 70;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(5, 20, 32, 0.58);
  backdrop-filter: blur(10px);
}

.graph-modal.is-visible {
  display: flex;
}

.graph-modal-card {
  width: min(980px, 100%);
  max-height: min(88vh, 980px);
  overflow: auto;
  display: grid;
  gap: 18px;
  padding: 22px;
  border-radius: 28px;
  border: 1px solid var(--line);
  background:
    radial-gradient(circle at top right, rgba(255, 184, 77, 0.12), transparent 28%),
    linear-gradient(180deg, var(--surface-strong), var(--surface));
  box-shadow: 0 30px 90px rgba(5, 20, 32, 0.32);
}

.graph-modal-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.graph-modal-head h2 {
  margin: 4px 0 0;
}

.market-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr);
  gap: 18px;
  padding: 24px;
  border-radius: 28px;
  border: 1px solid var(--line);
  background:
    radial-gradient(circle at top right, rgba(87, 200, 255, 0.2), transparent 26%),
    linear-gradient(145deg, var(--surface-strong), var(--surface));
  box-shadow: var(--shadow);
}

.market-hero-copy,
.market-hero-side,
.market-window-list,
.market-window-side,
.opportunity-grid,
.opportunity-section,
.opportunity-meta-grid,
.opportunity-metric,
.bot-cockpit-grid,
.bot-cockpit-card,
.bot-trade-list {
  display: grid;
}

.market-hero-copy {
  gap: 14px;
}

.market-hero-copy h2 {
  font-size: clamp(1.125rem, 2.2vw, 1.35rem);
  line-height: 1.25;
}

.market-hero-copy p,
.market-section-copy,
.opportunity-copy,
.opportunity-note,
.market-window-card p,
.bot-trade-card p {
  color: var(--muted);
  line-height: 1.7;
  font-size: 13px;
}

.market-hero-side,
.opportunity-grid,
.bot-cockpit-grid {
  gap: 14px;
}

.opportunity-grid {
  align-items: start;
}

.opportunity-grid-bot-models {
  grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
}

.bot-cockpit-grid {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.market-window-list,
.bot-trade-list {
  gap: 12px;
}

.market-window-card,
.bot-trade-card {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  padding: 16px 18px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: var(--surface-muted);
}

.market-window-card strong,
.opportunity-card h3,
.bot-cockpit-card h3,
.bot-trade-card strong {
  font-size: 15px;
}

.market-window-side,
.opportunity-metric,
.bot-cockpit-card {
  gap: 6px;
}

.market-window-side {
  justify-items: end;
  text-align: right;
}

.opportunity-grid {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.opportunity-card,
.bot-cockpit-card {
  display: grid;
  gap: 14px;
  padding: 18px;
  border-radius: 22px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, var(--surface-strong), var(--surface-muted));
}

.opportunity-card > *,
.bot-cockpit-card > *,
.opportunity-card-head > *,
.opportunity-meta-grid > *,
.stack-item > * {
  min-width: 0;
}

.opportunity-card-day_trading {
  background: linear-gradient(180deg, rgba(87, 200, 255, 0.12), var(--surface-muted));
}

.opportunity-card-scalping {
  background: linear-gradient(180deg, rgba(12, 157, 224, 0.12), var(--surface-muted));
}

.opportunity-card-swing {
  background: linear-gradient(180deg, rgba(99, 213, 255, 0.1), var(--surface-muted));
}

.opportunity-card-long_term {
  background: linear-gradient(180deg, rgba(29, 141, 104, 0.1), var(--surface-muted));
}

.opportunity-card-bot,
.bot-cockpit-card {
  background: linear-gradient(180deg, rgba(255, 184, 77, 0.12), var(--surface-muted));
}

.trader-grid {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.trader-card {
  background: linear-gradient(180deg, rgba(29, 141, 104, 0.08), var(--surface-muted));
}

.trader-identity {
  display: flex;
  align-items: center;
  gap: 12px;
}

.trader-avatar-image,
.trader-avatar-fallback {
  width: 54px;
  height: 54px;
  border-radius: 999px;
  border: 1px solid rgba(87, 200, 255, 0.22);
  box-shadow: 0 10px 24px rgba(12, 157, 224, 0.12);
  flex: 0 0 auto;
}

.trader-avatar-image {
  object-fit: cover;
}

.trader-avatar-fallback {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(180deg, rgba(87, 200, 255, 0.18), rgba(12, 157, 224, 0.08));
  color: var(--accent-strong);
  font-size: 1rem;
  font-weight: 800;
}

.opportunity-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.opportunity-card h3,
.opportunity-headline,
.opportunity-copy,
.opportunity-note,
.opportunity-metric strong,
.stack-item strong,
.stack-item p,
.section-kicker {
  overflow-wrap: anywhere;
  word-break: break-word;
}

.opportunity-headline {
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
}

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

.opportunity-metric {
  padding: 12px 14px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.38);
}

[data-theme="dark"] .opportunity-metric {
  background: rgba(6, 16, 23, 0.84);
}

.opportunity-metric span {
  color: var(--muted);
  font-size: 12px;
}

.opportunity-metric strong {
  font-size: 14px;
  line-height: 1.5;
}

.market-section-copy {
  margin-top: -6px;
}

.sub-panel-divider {
  height: 1px;
  background: var(--line);
}

.stack-list {
  display: grid;
  gap: 12px;
}

.stack-item {
  padding: 16px 18px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: var(--surface-muted);
  align-items: flex-start;
  flex-wrap: wrap;
}

.stack-item strong {
  font-size: 14px;
}

.stack-item p {
  margin-top: 5px;
  max-width: 480px;
}

.stack-side {
  display: grid;
  justify-items: end;
  gap: 6px;
  text-align: right;
}

.deposit-card {
  gap: 12px;
}

.wallet-shell {
  display: grid;
  gap: 16px;
}

.wallet-compact-shell .panel h2,
.wallet-compact-shell .spot-card h3,
.wallet-compact-shell .metric-value,
.wallet-compact-shell .wallet-tab-copy strong,
.wallet-compact-shell .wallet-shortcut-card strong {
  font-size: clamp(1rem, 2vw, 1.125rem);
  line-height: 1.3;
}

.wallet-tab-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
}

.wallet-tab-button,
.wallet-shortcut-card {
  width: 100%;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 16px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
  text-align: left;
  transition:
    transform 0.18s ease,
    border-color 0.18s ease,
    background-color 0.18s ease,
    color 0.18s ease;
}

.wallet-tab-button:hover,
.wallet-shortcut-card:hover {
  transform: translateY(-1px);
}

.wallet-tab-button.is-active,
.wallet-shortcut-card:focus-visible {
  border-color: rgba(87, 200, 255, 0.4);
  background: linear-gradient(135deg, rgba(87, 200, 255, 0.16), rgba(12, 157, 224, 0.08));
  color: var(--accent-strong);
}

.wallet-tab-icon {
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
  display: inline-flex;
}

.wallet-tab-icon svg {
  width: 100%;
  height: 100%;
}

.wallet-tab-copy,
.wallet-shortcuts-grid {
  display: grid;
  gap: 4px;
}

.wallet-shortcuts-grid {
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
}

.wallet-shortcut-card {
  flex-direction: column;
}

.wallet-overview-actions {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
}

.wallet-overview-icon-card {
  width: 100%;
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  align-items: start;
  gap: 12px;
  padding: 16px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, var(--surface), var(--surface-muted));
  color: var(--text);
  text-align: left;
  cursor: pointer;
  transition:
    transform 0.18s ease,
    border-color 0.18s ease,
    box-shadow 0.18s ease,
    background-color 0.18s ease;
}

.wallet-overview-icon-card:hover,
.wallet-overview-icon-card:focus-visible {
  transform: translateY(-1px);
  border-color: rgba(87, 200, 255, 0.38);
  box-shadow: 0 10px 28px rgba(87, 200, 255, 0.12);
}

.wallet-overview-icon {
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  color: var(--accent-strong);
  background: rgba(87, 200, 255, 0.12);
  border: 1px solid rgba(87, 200, 255, 0.2);
}

.wallet-overview-icon svg {
  width: 20px;
  height: 20px;
}

.wallet-overview-copy {
  display: grid;
  gap: 4px;
}

.wallet-overview-copy small {
  color: var(--muted);
}

.wallet-inline-icon {
  min-width: 40px;
  min-height: 40px;
  padding: 0;
}

.deposit-qr-card {
  gap: 16px;
}

.deposit-qr-layout {
  display: grid;
  grid-template-columns: minmax(120px, 150px) minmax(0, 1fr);
  gap: 14px;
  align-items: center;
}

.deposit-qr-media {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.6);
}

[data-theme="dark"] .deposit-qr-media {
  background: rgba(6, 16, 23, 0.88);
}

.deposit-qr-code {
  width: 132px;
  max-width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: contain;
  display: block;
}

.deposit-qr-copy {
  display: grid;
  gap: 10px;
}

.deposit-address {
  font-family: "Courier New", monospace;
  font-size: 12px;
  line-height: 1.7;
  word-break: break-all;
}

.inline-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

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

.projection-summary-card {
  display: grid;
  gap: 8px;
  padding: 16px 18px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, var(--surface-strong), var(--surface-muted));
}

.projection-summary-card span {
  color: var(--muted);
  font-size: 0.82rem;
}

.projection-summary-card strong {
  font-size: 1rem;
  line-height: 1.25;
}

.wallet-overlay {
  position: fixed;
  inset: 0;
  z-index: 22;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(4, 13, 21, 0.58);
  backdrop-filter: blur(8px);
}

.wallet-overlay-card {
  width: min(760px, calc(100vw - 24px));
  max-height: min(78vh, 860px);
  display: grid;
  gap: 18px;
  padding: 22px;
  overflow: hidden;
  border-radius: 26px;
  border: 1px solid var(--line);
  background:
    radial-gradient(circle at top right, rgba(87, 200, 255, 0.2), transparent 28%),
    linear-gradient(180deg, var(--surface-strong), var(--surface));
  box-shadow: 0 26px 64px rgba(3, 10, 18, 0.28);
}

.wallet-overlay-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.wallet-overlay-copy {
  display: grid;
  gap: 6px;
}

.wallet-overlay-copy p {
  color: var(--muted);
  line-height: 1.65;
}

.wallet-overlay-close {
  min-width: 42px;
  min-height: 42px;
  padding: 0;
}

.wallet-overlay-body {
  overflow: auto;
  padding-right: 4px;
}

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

.chart-row {
  align-items: center;
}

.chart-copy {
  width: 220px;
}

.chart-copy span {
  color: var(--muted);
}

.chart-track {
  flex: 1;
  min-height: 16px;
  border-radius: 999px;
  background: var(--accent-soft);
  overflow: hidden;
}

.chart-bar {
  display: block;
  height: 100%;
  min-width: 0;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--accent), var(--accent-strong));
  box-shadow: inset 0 0 18px rgba(255, 255, 255, 0.2);
}

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

.profile-shell {
  display: grid;
  gap: 16px;
}

.profile-header-card {
  display: grid;
  gap: 16px;
  padding: 20px;
  border-radius: 26px;
  border: 1px solid var(--line);
  background:
    radial-gradient(circle at top right, rgba(87, 200, 255, 0.22), transparent 24%),
    linear-gradient(145deg, var(--surface-strong), var(--surface));
  box-shadow: var(--shadow);
}

.profile-header-card h1 {
  margin: 0;
  font-size: 1.18rem;
}

.profile-hero-card {
  display: grid;
  gap: 18px;
  padding: 24px;
  border-radius: 28px;
  border: 1px solid var(--line);
  background:
    radial-gradient(circle at top right, rgba(87, 200, 255, 0.24), transparent 24%),
    linear-gradient(145deg, var(--surface-strong), var(--surface));
  box-shadow: var(--shadow);
}

.profile-hero-main {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}

.profile-avatar {
  width: 72px;
  height: 72px;
  border-radius: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(87, 200, 255, 0.22), rgba(12, 157, 224, 0.14));
  border: 1px solid rgba(87, 200, 255, 0.28);
  color: var(--accent-strong);
  font-family: Cambria, Georgia, serif;
  font-size: 24px;
  font-weight: 700;
}

.profile-hero-copy {
  display: grid;
  gap: 8px;
}

.profile-name-line {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.profile-meta-line {
  color: var(--muted);
  line-height: 1.65;
  margin: 0;
}

.profile-verified-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid rgba(29, 141, 104, 0.24);
  background: rgba(29, 141, 104, 0.1);
  color: var(--success);
  font-size: 12px;
  font-weight: 700;
}

.profile-package-strip {
  display: grid;
  gap: 10px;
}

.profile-package-chip {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid rgba(87, 200, 255, 0.22);
  background: rgba(87, 200, 255, 0.1);
  color: var(--accent-strong);
  font-size: 11px;
  font-weight: 700;
}

.support-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.18fr) minmax(300px, 0.82fr);
  gap: 16px;
  align-items: start;
}

.support-app-header {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 24px;
  border: 1px solid rgba(12, 157, 224, 0.2);
  background: linear-gradient(180deg, var(--accent-strong), var(--accent));
  box-shadow: var(--shadow);
  color: #fff;
}

.support-back-button {
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  border: 0;
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  cursor: pointer;
}

.support-back-button .utility-icon {
  display: inline-flex;
}

.support-back-button svg {
  width: 18px;
  height: 18px;
}

.support-app-header-copy {
  display: grid;
  gap: 2px;
}

.support-app-header-copy span {
  font-size: 11px;
  opacity: 0.82;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.support-app-header-copy h1 {
  margin: 0;
  font-size: 1.02rem;
  font-weight: 600;
  line-height: 1.2;
}

.support-app-header-status .mini-pill {
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.2);
}

.support-layout-app {
  margin-top: 14px;
}

.support-chat-shell,
.support-side-panel,
.support-side-stack {
  display: grid;
  gap: 16px;
}

.support-chat-shell {
  padding: 14px;
  border-radius: 26px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(255, 255, 255, 0.78));
  box-shadow: var(--shadow);
}

.support-chat-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.support-chat-head-app h2,
.support-side-panel h2 {
  font-size: 0.95rem;
  margin: 0;
}

.support-thread-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  color: var(--muted);
  font-size: 11px;
}

.support-history-load {
  text-align: center;
  color: var(--muted);
  font-size: 11px;
  padding: 4px 0;
}

.support-messages {
  display: grid;
  gap: 14px;
  max-height: min(58vh, 700px);
  overflow: auto;
  padding: 4px 2px 2px;
}

.support-message-row {
  display: grid;
  gap: 6px;
}

.support-message-row.is-user {
  justify-items: end;
}

.support-message-time {
  color: rgba(79, 110, 130, 0.78);
  font-size: 11px;
  line-height: 1;
}

.support-message-shell {
  width: min(100%, 720px);
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
}

.support-message-row.is-user .support-message-shell {
  grid-template-columns: minmax(0, 1fr) 34px;
}

.support-message-avatar {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: linear-gradient(180deg, rgba(87, 200, 255, 0.28), rgba(12, 157, 224, 0.18));
  color: var(--accent-strong);
  font-size: 11px;
  font-weight: 700;
}

.support-message-row.is-user .support-message-avatar {
  order: 2;
  background: linear-gradient(180deg, rgba(12, 157, 224, 0.2), rgba(12, 157, 224, 0.12));
}

.support-message {
  max-width: min(100%, 620px);
  display: grid;
  gap: 6px;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid rgba(16, 110, 160, 0.08);
  background: #fff;
  box-shadow: 0 8px 18px rgba(3, 10, 18, 0.04);
}

.support-message.is-user {
  border-color: rgba(87, 200, 255, 0.18);
  background: linear-gradient(180deg, rgba(87, 200, 255, 0.08), rgba(87, 200, 255, 0.03));
}

.support-message.is-admin {
  background: #fff;
}

.support-message-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
  font-size: 10px;
}

.support-message p {
  margin: 0;
  font-size: 12px;
  line-height: 1.45;
}

.support-message-attachments {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.support-message-attachment {
  width: 120px;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-radius: 16px;
  border: 1px solid rgba(87, 200, 255, 0.18);
  background: rgba(255, 255, 255, 0.06);
}

.support-message-attachment img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.support-composer {
  display: block;
}

.support-composer-shell {
  position: relative;
  padding: 10px 12px 12px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: #fff;
  box-shadow: 0 10px 24px rgba(3, 10, 18, 0.05);
}

.support-composer textarea {
  min-height: 58px;
  padding: 0 0 46px;
  border: 0;
  background: transparent;
  resize: none;
  font-size: 12px;
  line-height: 1.45;
}

.support-composer textarea:focus {
  transform: none;
}

.support-composer-tools {
  position: absolute;
  right: 12px;
  bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.support-tool-button,
.support-send-button {
  min-width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  cursor: pointer;
  transition:
    transform 0.18s ease,
    border-color 0.18s ease,
    background-color 0.18s ease;
}

.support-tool-button:hover,
.support-send-button:hover {
  transform: translateY(-1px);
  border-color: rgba(87, 200, 255, 0.34);
}

.support-send-button {
  padding: 0 16px;
  color: #fff;
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
  font-size: 12px;
  font-weight: 600;
}

.support-tool-button svg,
.support-send-button svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.support-draft-attachments {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.support-draft-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.05);
  color: var(--muted);
  font-size: 12px;
  line-height: 1.2;
}

.support-draft-chip-name {
  color: var(--text);
}

.support-draft-chip-size {
  color: var(--muted);
}

.support-draft-chip.is-error {
  border-color: rgba(218, 93, 93, 0.26);
  background: rgba(218, 93, 93, 0.12);
  color: #b84545;
}

.contact-channel-grid {
  display: grid;
  gap: 12px;
}

.contact-channel-card {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  padding: 12px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, var(--surface), var(--surface-muted));
  box-shadow: 0 16px 28px rgba(3, 10, 18, 0.06);
}

.contact-channel-icon {
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  border: 1px solid rgba(87, 200, 255, 0.22);
  background: rgba(87, 200, 255, 0.12);
  color: var(--accent-strong);
}

.contact-channel-icon svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

.contact-channel-copy {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.contact-channel-copy strong {
  font-size: 12px;
}

.contact-channel-copy span,
.contact-channel-copy small {
  color: var(--muted);
  word-break: break-word;
  font-size: 11px;
}

.contact-channel-link {
  grid-column: 2;
  justify-self: start;
  min-height: 32px;
  padding: 0 12px;
  font-size: 11px;
}

@media (max-width: 980px) {
  .support-layout {
    grid-template-columns: 1fr;
  }

  .support-app-header {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .support-app-header-status {
    grid-column: 1 / -1;
    justify-self: start;
  }
}

@media (max-width: 640px) {
  .support-app-header {
    padding: 12px 14px;
    border-radius: 20px;
  }

  .support-app-header-copy h1 {
    font-size: 0.95rem;
  }

  .support-chat-shell {
    padding: 12px;
    border-radius: 22px;
  }

  .support-message-shell {
    grid-template-columns: 28px minmax(0, 1fr);
    gap: 8px;
  }

  .support-message-row.is-user .support-message-shell {
    grid-template-columns: minmax(0, 1fr) 28px;
  }

  .support-message-avatar {
    width: 28px;
    height: 28px;
    border-radius: 8px;
    font-size: 10px;
  }

  .support-message {
    max-width: 100%;
    padding: 10px 12px;
  }

  .support-message-meta {
    align-items: flex-start;
    flex-direction: column;
    gap: 4px;
  }

  .support-composer-shell {
    padding: 10px 10px 12px;
  }

  .support-composer textarea {
    min-height: 52px;
    font-size: 11px;
  }

  .support-send-button {
    padding: 0 14px;
  }

  .contact-channel-card {
    grid-template-columns: 42px minmax(0, 1fr);
  }

  .contact-channel-icon {
    width: 42px;
    height: 42px;
    border-radius: 14px;
  }

  .support-message-attachment {
    width: 96px;
  }
}

.profile-verified-badge svg {
  width: 16px;
  height: 16px;
}

.profile-shortcuts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
}

.profile-menu-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
}

.profile-menu-button {
  width: 100%;
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 20px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, var(--surface), var(--surface-muted));
  color: var(--text);
  text-align: left;
  cursor: pointer;
  transition:
    transform 0.18s ease,
    border-color 0.18s ease,
    box-shadow 0.18s ease;
}

.profile-menu-button:hover {
  transform: translateY(-1px);
  border-color: rgba(87, 200, 255, 0.26);
  box-shadow: var(--shadow-soft);
}

.profile-menu-button.is-active {
  border-color: rgba(87, 200, 255, 0.32);
  background: linear-gradient(180deg, rgba(87, 200, 255, 0.12), var(--surface));
}

.profile-menu-icon {
  width: 46px;
  height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 15px;
  color: var(--accent-strong);
  background: rgba(87, 200, 255, 0.12);
  border: 1px solid rgba(87, 200, 255, 0.2);
}

.profile-menu-icon svg {
  width: 22px;
  height: 22px;
}

.profile-menu-copy {
  display: grid;
  gap: 2px;
}

.profile-menu-copy strong {
  display: block;
  font-size: 0.92rem;
}

.profile-menu-copy small {
  color: var(--muted);
  line-height: 1.45;
  font-size: 11px;
}

.profile-menu-meta {
  color: var(--muted);
  font-size: 11px;
  text-align: right;
}

.profile-shortcut-card {
  width: 100%;
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  align-items: start;
  gap: 12px;
  padding: 16px;
  border-radius: 20px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, var(--surface), var(--surface-muted));
  color: var(--text);
  text-align: left;
  cursor: pointer;
}

.profile-shortcut-icon {
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  color: var(--accent-strong);
  background: rgba(87, 200, 255, 0.12);
  border: 1px solid rgba(87, 200, 255, 0.2);
}

.profile-shortcut-icon svg {
  width: 20px;
  height: 20px;
}

.profile-shortcut-card strong {
  display: block;
  margin-bottom: 4px;
}

.profile-shortcut-card small {
  color: var(--muted);
  line-height: 1.55;
}

.profile-row {
  padding: 14px 16px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: var(--surface-muted);
}

.profile-link-box {
  display: grid;
  gap: 8px;
  padding: 14px 16px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: var(--surface-muted);
}

.profile-link-box span {
  color: var(--muted);
}

.profile-link-value {
  font-family: "Courier New", monospace;
  font-size: 12px;
  line-height: 1.7;
  word-break: break-all;
}

.profile-action-stack {
  display: grid;
  gap: 12px;
}

.profile-section-card {
  gap: 16px;
}

.profile-plan-card .tag {
  max-width: 100%;
}

.document-tile-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
}

.document-tile {
  display: grid;
  gap: 12px;
  padding: 16px;
  border-radius: 20px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, var(--surface), var(--surface-muted));
}

.document-tile.is-empty {
  justify-content: center;
}

.document-tile-media {
  aspect-ratio: 4 / 3;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.5);
}

[data-theme="dark"] .document-tile-media {
  background: rgba(6, 16, 23, 0.88);
}

.document-tile-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.document-tile-copy {
  display: grid;
  gap: 6px;
}

.document-tile-copy p {
  color: var(--muted);
  line-height: 1.55;
}

.document-tile-link {
  color: var(--accent-strong);
  font-weight: 700;
  text-decoration: none;
}

.document-tile-link:hover {
  text-decoration: underline;
}

.profile-modal {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(5, 20, 32, 0.56);
  backdrop-filter: blur(10px);
}

.profile-modal.is-visible {
  display: flex;
}

.profile-modal-card {
  width: min(920px, 100%);
  max-height: min(88vh, 920px);
  overflow: auto;
  display: grid;
  gap: 18px;
  padding: 22px;
  border-radius: 28px;
  border: 1px solid var(--line);
  background:
    radial-gradient(circle at top right, rgba(87, 200, 255, 0.2), transparent 26%),
    linear-gradient(180deg, var(--surface-strong), var(--surface));
  box-shadow: 0 30px 90px rgba(5, 20, 32, 0.3);
}

.profile-modal-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.profile-modal-head h2 {
  margin: 4px 0 0;
}

.about-page-stack {
  display: grid;
  gap: 16px;
}

.about-page-section {
  display: grid;
  gap: 10px;
  padding: 16px 18px;
  border-radius: 20px;
  border: 1px solid var(--line);
  background: var(--surface-muted);
}

.about-page-section h3,
.about-page-section p {
  margin: 0;
}

.about-page-section.is-muted {
  background: color-mix(in srgb, var(--surface-muted) 78%, transparent);
}

.about-page-richtext {
  display: grid;
  gap: 10px;
  color: var(--text);
}

.about-page-list {
  margin: 0;
  padding-left: 18px;
  display: grid;
  gap: 8px;
}

.check-list {
  gap: 12px;
}

.check-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: var(--surface-muted);
}

.check-dot {
  width: 14px;
  height: 14px;
  border-radius: 999px;
  background: rgba(148, 186, 205, 0.28);
  box-shadow: inset 0 0 0 1px var(--line);
}

.check-dot.is-on {
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
  box-shadow: 0 0 0 4px rgba(87, 200, 255, 0.14);
}

.notice {
  padding: 15px 18px;
  border-radius: 18px;
  border: 1px solid var(--line);
}

.empty-state {
  padding: 28px 24px;
  border-radius: 20px;
  border: 1px dashed var(--line);
  background: rgba(255, 255, 255, 0.06);
  text-align: center;
  display: grid;
  gap: 10px;
  justify-items: center;
}

.loading-panel {
  min-height: 220px;
  align-content: center;
}

.mobile-only {
  display: none;
}

.nav-icon {
  width: 20px;
  height: 20px;
  display: inline-flex;
  flex: 0 0 auto;
}

.nav-icon svg {
  width: 100%;
  height: 100%;
}

.bottom-nav {
  position: fixed;
  left: 50%;
  bottom: 14px;
  transform: translateX(-50%);
  z-index: 8;
  width: min(760px, calc(100% - 18px));
  padding: 10px;
  border-radius: 24px;
  display: none;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
}

.bottom-nav-button {
  min-height: 62px;
  min-width: 0;
  border: 1px solid transparent;
  border-radius: 18px;
  background: transparent;
  color: var(--muted);
  text-decoration: none;
  display: grid;
  place-items: center;
  gap: 6px;
  padding: 6px 0;
  overflow: hidden;
  cursor: pointer;
  transition:
    background-color 0.18s ease,
    border-color 0.18s ease,
    color 0.18s ease,
    transform 0.18s ease;
}

.bottom-nav-button span:last-child {
  display: block;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  overflow: hidden;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 0.72rem;
  line-height: 1.1;
}

.sidebar-backdrop {
  display: none;
}

@media (max-width: 1180px) {
  .auth-shell {
    grid-template-columns: 1fr;
    width: min(100% - 20px, 1240px);
  }

  .market-hero {
    grid-template-columns: 1fr;
  }

  .auth-shell-minimal,
  .auth-shell-wide {
    width: min(100% - 20px, 820px);
  }

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

  .hero-spotlight {
    grid-template-columns: 1fr;
  }

  .home-carousel-shell {
    min-height: 0;
  }

  .home-carousel-stage {
    min-height: 200px;
  }

  .home-carousel-card,
  .home-story-grid,
  .deposit-qr-layout {
    grid-template-columns: 1fr;
  }

  .home-top-grid,
  .home-guide-grid {
    grid-template-columns: 1fr;
  }

  .login-shell {
    grid-template-columns: 1fr;
  }

  .login-brand-panel {
    min-height: auto;
  }

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

  .auth-divider {
    display: block;
    height: 1px;
    background: var(--line);
  }

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

  .opportunity-grid-bot-models {
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  }
}

@media (max-width: 980px) {
  .user-shell {
    grid-template-columns: 1fr;
    width: min(100% - 20px, 1440px);
    padding-bottom: 94px;
  }

  .sidebar {
    position: fixed;
    left: 10px;
    top: 10px;
    bottom: 92px;
    width: min(340px, calc(100vw - 20px));
    height: auto;
    z-index: 12;
    transform: translateX(-112%);
    transition: transform 0.22s ease;
  }

  .sidebar.is-open {
    transform: translateX(0);
  }

  .sidebar-backdrop {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 10;
    background: rgba(3, 10, 18, 0.5);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.18s ease;
  }

  .sidebar-backdrop.is-visible {
    opacity: 1;
    pointer-events: auto;
  }

  .mobile-only {
    display: inline-flex;
  }

  .bottom-nav {
    display: grid;
    left: 0;
    right: 0;
    bottom: 0;
    transform: none;
    width: 100%;
    padding: 8px 12px calc(env(safe-area-inset-bottom, 0px) + 8px);
    border: 0;
    border-top: 1px solid var(--line);
    border-radius: 0;
    background: var(--mobile-nav-bg);
    box-shadow: none;
    backdrop-filter: blur(18px);
  }

  .bottom-nav-button {
    min-height: 58px;
    border: 0;
    border-radius: 0;
    gap: 5px;
    padding: 8px 0 4px;
    background: transparent;
  }

  .bottom-nav-button.is-active {
    background: transparent;
    border-color: transparent;
    color: var(--accent-strong);
  }

  .topbar {
    top: 10px;
  }

  .panel-grid,
  .profile-grid,
  .agent-launchpad {
    grid-template-columns: 1fr;
  }

  .opportunity-meta-grid {
    grid-template-columns: 1fr;
  }

  .profile-modal {
    padding: 14px;
  }

  .profile-modal-card {
    padding: 18px;
    border-radius: 22px;
  }

  .graph-modal {
    padding: 14px;
  }

  .graph-modal-card {
    padding: 18px;
    border-radius: 22px;
  }

  .dashboard-toolbar .icon-button {
    min-width: auto;
  }
}

@media (max-width: 720px) {
  .auth-shell {
    width: min(100% - 16px, 1240px);
    padding: 16px 0 24px;
    min-height: auto;
  }

  .auth-shell-minimal,
  .auth-shell-wide {
    width: min(100% - 16px, 820px);
  }

  .login-shell {
    width: min(100% - 18px, 1320px);
    padding: 18px 0 26px;
  }

  .login-brand-panel,
  .auth-aside,
  .auth-card,
  .auth-card,
  .feedback-panel,
  .panel,
  .metric-card,
  .spot-card,
  .session-card,
  .sidebar,
  .topbar,
  .hero-spotlight {
    border-radius: 22px;
  }

  .login-brand-panel {
    padding: 20px;
  }

  .auth-aside,
  .auth-card {
    padding: 18px;
  }

  .login-brand-panel h1 {
    font-size: clamp(2rem, 9vw, 3.4rem);
  }

  .field-grid,
  .projection-summary-grid,
  .metric-grid,
  .auth-card-split {
    grid-template-columns: 1fr;
  }

  .service-inline-list {
    align-items: stretch;
    flex-direction: column;
  }

  .dashboard-toolbar {
    padding-top: 0;
  }

  .home-carousel-shell {
    padding: 22px;
  }

  .home-carousel-card,
  .home-story-card,
  .home-assets-panel,
  .home-guide-panel,
  .home-opportunity-panel,
  .home-summary-panel {
    padding: 20px;
  }

  .home-assets-strip {
    grid-auto-columns: minmax(240px, 78vw);
  }

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

  .home-service-icon {
    width: 62px;
    height: 62px;
  }

  .home-service-icon svg {
    width: 26px;
    height: 26px;
  }

  .home-service-label {
    font-size: 12px;
  }

  .home-service-helper {
    display: none;
  }

  .home-story-media {
    min-height: 170px;
  }

  .home-guide-step,
  .home-summary-item {
    padding: 14px 16px;
  }

  .wallet-tab-strip,
  .wallet-shortcuts-grid,
  .wallet-overview-actions {
    grid-template-columns: 1fr;
  }

  .profile-menu-grid,
  .agent-mini-stats {
    grid-template-columns: 1fr;
  }

  .agent-command-layout {
    grid-template-columns: 1fr;
  }

  .topbar {
    padding: 16px;
    min-height: auto;
  }

  .topbar-left,
  .topbar-right,
  .view-intro,
  .auth-utility-bar,
  .auth-card-head,
  .auth-aside-top,
  .panel-head,
  .chart-row,
  .stack-item,
  .profile-row,
  .service-card,
  .profile-hero-main {
    align-items: flex-start;
    flex-direction: column;
  }

  .market-window-card,
  .bot-trade-card,
  .opportunity-card-head,
  .agent-card-top {
    flex-direction: column;
  }

  .market-window-side {
    justify-items: start;
    text-align: left;
  }

  .wallet-overview-icon-card {
    grid-template-columns: 40px minmax(0, 1fr);
  }

  .wallet-overlay {
    padding: 14px;
  }

  .wallet-overlay-card {
    width: calc(100vw - 20px);
    max-height: 82vh;
    padding: 18px;
    border-radius: 22px;
  }

  .chart-copy {
    width: 100%;
  }

  .stack-side {
    justify-items: start;
    text-align: left;
  }

  .bottom-nav-button {
    min-height: 56px;
  }

  .bottom-nav-button .nav-icon {
    width: 22px;
    height: 22px;
  }

  .bottom-nav-button span:last-child {
    font-size: 0.68rem;
  }

  .agent-launchpad {
    padding: 22px;
  }

  .agent-model-meta {
    grid-template-columns: 1fr;
  }

  .profile-menu-button {
    grid-template-columns: 42px minmax(0, 1fr);
  }

  .profile-menu-meta {
    text-align: left;
  }
}
