:root {
  --bg: #0b0d12;
  --surface: #12151c;
  --surface-2: #1c1f2b;
  --line: rgba(185, 190, 255, 0.14);
  --text: #f4f4f8;
  --muted: #aeb4c6;
  --green: #5d5fef;
  --teal: #8b8df8;
  --blue: #4fc3ff;
  --red: #ff6b6b;
  --positive: #2ecc71;
  --negative: #ff5a6f;
  --gold: #f2c166;
  --shadow: 0 28px 80px rgba(0, 0, 0, 0.36);
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, "Segoe UI", Arial, sans-serif;
  background:
    radial-gradient(circle at 20% 0%, rgba(93, 95, 239, 0.22), transparent 32rem),
    radial-gradient(circle at 92% 8%, rgba(79, 195, 255, 0.12), transparent 28rem),
    var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}

a {
  color: inherit;
}

button,
input {
  font: inherit;
}

.container {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(8, 16, 15, 0.84);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
}

.nav {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-weight: 800;
  text-decoration: none;
}

.brand-mark {
  width: 36px;
  height: 36px;
  object-fit: contain;
}

.nav-links,
.nav-actions,
.hero-actions,
.trust-row {
  display: flex;
  align-items: center;
  gap: 16px;
}

.nav-links a {
  color: var(--muted);
  font-size: 0.94rem;
  text-decoration: none;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 18px;
  border: 1px solid rgba(47, 226, 139, 0.38);
  border-radius: 8px;
  background: linear-gradient(135deg, #5d5fef, #4345ce);
  color: #ffffff;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

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

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

.btn-small {
  min-height: 36px;
  padding: 0 14px;
  font-size: 0.9rem;
}

.btn-full {
  width: 100%;
  margin-top: 18px;
}

.hero {
  padding: 92px 0 60px;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 0.78fr);
  align-items: center;
  gap: 54px;
}

.eyebrow,
.muted-label {
  margin: 0 0 10px;
  color: var(--green);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

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

h1 {
  max-width: 780px;
  margin-bottom: 20px;
  font-size: clamp(3rem, 6vw, 5.8rem);
  line-height: 0.96;
  letter-spacing: 0;
}

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

h3 {
  line-height: 1.2;
}

.hero-text {
  max-width: 660px;
  color: var(--muted);
  font-size: 1.1rem;
}

.trust-row {
  margin-top: 28px;
  flex-wrap: wrap;
}

.trust-row span {
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.035);
  color: var(--muted);
  font-size: 0.88rem;
}

.hero-panel,
.dashboard-panel,
.news-card,
.ticker-card,
.token-stats,
.chart-container {
  border: 1px solid var(--line);
  background: rgba(16, 24, 22, 0.78);
  box-shadow: var(--shadow);
}

.hero-panel {
  padding: 16px;
  border-radius: 8px;
}

.intelligence-hero {
  padding-bottom: 76px;
}

.market-command {
  align-self: stretch;
}

.command-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 8px 8px 18px;
}

.command-header strong {
  display: block;
  font-size: 1.6rem;
}

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

.pulse-card,
.live-panel,
.subject-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.035);
}

.pulse-card {
  min-height: 128px;
  padding: 18px;
}

.pulse-card span,
.pulse-card small {
  display: block;
  color: var(--muted);
}

.pulse-card small.gain,
.market-row span.gain {
  color: var(--positive);
}

.pulse-card small.loss,
.market-row span.loss {
  color: var(--negative);
}

.pulse-card strong {
  display: block;
  margin: 10px 0 3px;
  font-size: 1.45rem;
}

.pulse-card.loading,
.skeleton {
  position: relative;
  overflow: hidden;
}

.pulse-card.loading::after,
.skeleton::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.08), transparent);
  animation: shimmer 1.4s infinite;
}

@keyframes shimmer {
  from { transform: translateX(-100%); }
  to { transform: translateX(100%); }
}

.account-shell {
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02));
  padding: 22px;
}

.account-topbar,
.balance-row,
.asset-row,
.dashboard-header,
.footer-grid {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.account-topbar strong {
  display: block;
  font-size: 2rem;
}

.status-pill {
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(93, 95, 239, 0.16);
  color: var(--green);
  font-size: 0.8rem;
  font-weight: 800;
}

.gain {
  color: var(--positive);
}

.loss {
  color: var(--negative);
}

.flat {
  color: var(--muted);
}

.balance-row {
  margin: 20px 0;
  color: var(--muted);
}

.mini-chart {
  height: 170px;
  display: flex;
  align-items: end;
  gap: 10px;
  padding: 18px;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.18);
}

.mini-chart span {
  flex: 1;
  min-width: 16px;
  border-radius: 6px 6px 0 0;
  background: linear-gradient(180deg, #5d5fef, rgba(93, 95, 239, 0.18));
}

.asset-list {
  display: grid;
  gap: 10px;
  margin-top: 18px;
}

.asset-row {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.035);
}

.asset-row div {
  display: grid;
  grid-template-columns: auto 1fr;
  column-gap: 10px;
}

.asset-row small {
  grid-column: 2;
  color: var(--muted);
}

.asset-dot {
  width: 10px;
  height: 10px;
  display: inline-block;
  border-radius: 50%;
  margin-top: 7px;
}

.asset-dot.au,
.allocation-au {
  background: var(--green);
}

.asset-dot.btc,
.allocation-crypto {
  background: var(--gold);
}

.asset-dot.stk,
.allocation-stocks {
  background: var(--blue);
}

.market-strip,
.section {
  padding: 72px 0;
  border-top: 1px solid var(--line);
}

.market-strip {
  background: rgba(255, 255, 255, 0.025);
}

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

.live-panel {
  padding: 20px;
  box-shadow: var(--shadow);
}

.live-badge {
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(93, 95, 239, 0.16);
  color: var(--text);
  font-size: 0.78rem;
  font-weight: 800;
}

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

.market-row {
  min-height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.035);
}

.market-row strong,
.market-row span {
  display: block;
}

.market-row span {
  color: var(--muted);
  font-size: 0.86rem;
}

.market-row div:last-child {
  text-align: right;
}

.subject-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.subject-card {
  min-height: 280px;
  padding: 22px;
}

.subject-card span {
  color: var(--green);
  font-weight: 900;
}

.subject-card h3 {
  margin: 22px 0 12px;
  font-size: 1.35rem;
}

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

.live-news-grid .news-card a {
  display: inline-flex;
  color: var(--text);
  font-weight: 800;
  text-decoration: none;
}

.compact-list {
  margin-top: 0;
}

.feed-meta {
  margin-top: -8px;
  color: var(--muted);
  font-size: 0.92rem;
}

.market-grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, minmax(150px, 1fr));
  gap: 16px;
  align-items: stretch;
}

.ticker-card {
  min-height: 120px;
  padding: 18px;
  border-radius: 8px;
}

.ticker-card span,
.ticker-card small {
  display: block;
  color: var(--muted);
}

.ticker-card strong {
  display: block;
  margin: 12px 0 2px;
  font-size: 1.5rem;
}

.split-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(340px, 0.82fr);
  gap: 48px;
  align-items: center;
}

.split-layout p,
.section-heading p {
  color: var(--muted);
  font-size: 1.02rem;
}

.feature-list {
  display: grid;
  gap: 14px;
  margin-top: 28px;
}

.feature-list div {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.03);
}

.feature-list strong,
.feature-list span {
  display: block;
}

.feature-list span {
  margin-top: 4px;
  color: var(--muted);
}

.dashboard-panel {
  border-radius: 8px;
  padding: 24px;
}

.dashboard-header strong {
  display: block;
  font-size: 1.4rem;
}

.allocation {
  display: flex;
  height: 16px;
  overflow: hidden;
  margin: 28px 0 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
}

.allocation-key {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  color: var(--muted);
  font-size: 0.9rem;
}

.allocation-key span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.allocation-key .asset-dot {
  margin-top: 0;
}

.actions-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-top: 24px;
}

.actions-grid button,
.actions-grid a {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  text-decoration: none;
  cursor: pointer;
}

.section-heading {
  max-width: 760px;
  margin-bottom: 30px;
}

.section-heading.compact {
  max-width: 680px;
}

.token-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(340px, 0.9fr);
  gap: 22px;
}

.chart-container {
  height: 560px;
  overflow: hidden;
  border-radius: 8px;
}

#geckoterminal-embed {
  width: 100%;
  height: 100%;
  border: 0;
}

.token-stats {
  border-radius: 8px;
  padding: 20px;
}

.token-data {
  display: grid;
  gap: 8px;
  margin-bottom: 16px;
}

.token-data p {
  margin: 0;
  color: var(--muted);
}

.token-data strong,
.token-data span {
  color: var(--text);
}

.gt-tabs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-bottom: 12px;
}

.gt-tab {
  min-height: 56px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  cursor: pointer;
}

.gt-tab.active {
  border-color: rgba(47, 226, 139, 0.6);
  background: rgba(93, 95, 239, 0.16);
}

.gt-pct {
  color: var(--muted);
  font-size: 0.78rem;
}

.gt-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.gt-card {
  min-height: 76px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.035);
}

.gt-k {
  color: var(--muted);
  font-size: 0.82rem;
}

.gt-v {
  margin-top: 4px;
  font-weight: 800;
}

.pct-pos {
  color: var(--positive);
}

.pct-neg {
  color: var(--negative);
}

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

.news-carousel {
  width: 100%;
}

.news-feature {
  position: relative;
  min-height: 520px;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(360px, 0.8fr);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(16, 24, 22, 0.78);
  box-shadow: var(--shadow);
}

.news-feature img,
.news-feature-image {
  width: 100%;
  height: 100%;
  min-height: 520px;
  object-fit: cover;
  background:
    linear-gradient(135deg, rgba(93, 95, 239, 0.18), rgba(10, 12, 16, 0.3)),
    #12151c;
}

.news-feature-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 42px;
}

.news-feature-copy span {
  color: var(--green);
  font-size: 0.8rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.news-feature-copy h3 {
  margin: 18px 0 18px;
  font-size: clamp(2rem, 4vw, 3.4rem);
  line-height: 1.05;
}

.news-feature-copy p {
  color: var(--muted);
  font-size: 1rem;
}

.news-controls {
  position: absolute;
  left: 24px;
  right: 24px;
  bottom: 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.news-arrow {
  width: 46px;
  height: 46px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: rgba(11, 13, 18, 0.74);
  color: var(--text);
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
}

.news-dots {
  display: flex;
  align-items: center;
  gap: 8px;
}

.news-dot {
  width: 9px;
  height: 9px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.35);
  cursor: pointer;
}

.news-dot.active {
  width: 24px;
  border-radius: 999px;
  background: var(--green);
}

.news-card {
  min-height: 260px;
  overflow: hidden;
  padding: 22px;
  border-radius: 8px;
}

.news-card.has-image {
  padding: 0;
}

.news-card img {
  width: 100%;
  height: 172px;
  display: block;
  object-fit: cover;
  border-bottom: 1px solid var(--line);
}

.news-card.has-image > div {
  padding: 20px;
}

.news-card span {
  color: var(--green);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.news-card h3 {
  margin: 18px 0 12px;
  font-size: 1.35rem;
}

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

.public-support-button {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 90;
  width: 62px;
  height: 62px;
  display: inline-grid;
  place-items: center;
  border: 1px solid rgba(93, 95, 239, 0.55);
  border-radius: 50%;
  background: linear-gradient(135deg, #5d5fef, #3f42c9);
  color: #ffffff;
  box-shadow: 0 18px 46px rgba(0, 0, 0, 0.35);
  cursor: pointer;
}

.public-support-button svg {
  width: 28px;
  height: 28px;
}

.public-support-modal {
  position: fixed;
  inset: 0;
  z-index: 130;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(12px);
}

.public-support-panel {
  position: relative;
  width: min(640px, 100%);
  border: 1px solid var(--line);
  border-radius: 10px;
  background:
    linear-gradient(140deg, rgba(93, 95, 239, 0.16), rgba(47, 226, 139, 0.07)),
    #10141c;
  box-shadow: var(--shadow);
  padding: 28px;
}

.public-support-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 38px;
  height: 38px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  font-weight: 950;
  cursor: pointer;
}

.public-support-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 18px;
}

.public-support-form label {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-weight: 850;
}

.public-support-form input,
.public-support-form select,
.public-support-form textarea {
  width: 100%;
  min-height: 52px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.055);
  color: var(--text);
  padding: 12px 14px;
  font: inherit;
  font-weight: 850;
}

.public-support-form select option {
  background: #111620;
  color: #f7f9ff;
}

.public-support-form label:last-of-type,
.public-support-form .btn,
.public-support-status {
  grid-column: 1 / -1;
}

.public-support-status {
  min-height: 22px;
  margin: 0;
  color: var(--muted);
}

.public-support-status[data-tone="success"] {
  color: #9cffc6;
}

.public-support-status[data-tone="error"] {
  color: #ff9aad;
}

.footer {
  padding: 34px 0;
  border-top: 1px solid var(--line);
  background: #060b0a;
  color: var(--muted);
}

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

.footer p {
  margin: 4px 0 0;
}

.account-body {
  background: #0b0d12;
}

.app-layout {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  transition: grid-template-columns 0.22s ease;
}

.app-layout.sidebar-collapsed {
  grid-template-columns: 86px minmax(0, 1fr);
}

.app-sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  gap: 28px;
  overflow: visible;
  padding: 26px 18px;
  border-right: 1px solid var(--line);
  background: linear-gradient(180deg, #10131b, #0b0d12);
}

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

.app-brand {
  min-width: 0;
  padding: 0 8px;
}

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

.app-nav a {
  padding: 12px 14px;
  border: 1px solid transparent;
  border-radius: 8px;
  color: var(--muted);
  text-decoration: none;
}

.app-nav-icon {
  display: none;
}

.app-nav-icon svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.app-nav a.active,
.app-nav a:hover {
  border-color: var(--line);
  background: rgba(93, 95, 239, 0.13);
  color: var(--text);
}

.sidebar-return {
  margin-top: auto;
}

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

.sidebar-actions .btn {
  min-height: 42px;
  padding: 0 18px;
}

.sidebar-action-icon {
  display: none;
}

.sidebar-action-icon svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.sidebar-profile {
  margin-top: auto;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.035);
}

.sidebar-profile span,
.sidebar-profile strong {
  display: block;
}

.sidebar-profile span {
  color: var(--muted);
  font-size: 0.82rem;
}

.sidebar-profile strong {
  color: var(--text);
}

.sidebar-icon-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

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

.sidebar-bottom-tools {
  display: flex;
  align-items: center;
  margin: -12px 0 -14px 8px;
}

.sidebar-icon-link,
.sidebar-collapse-toggle {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 999px;
  color: var(--muted);
  background: transparent;
  text-decoration: none;
  transition: color 0.18s ease, transform 0.18s ease;
}

.sidebar-collapse-toggle {
  cursor: pointer;
  font-weight: 900;
  letter-spacing: -0.02em;
}

.sidebar-icon-link svg {
  width: 21px;
  height: 21px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.sidebar-icon-link:hover,
.sidebar-icon-link.active,
.sidebar-collapse-toggle:hover {
  color: var(--accent);
  background: transparent;
  transform: translateY(-1px);
}

.app-layout.sidebar-collapsed .app-sidebar {
  align-items: center;
  padding-inline: 14px;
}

.app-layout.sidebar-collapsed .sidebar-header {
  flex-direction: column;
  gap: 12px;
}

.app-layout.sidebar-collapsed .app-brand {
  justify-content: center;
  padding: 0;
}

.app-layout.sidebar-collapsed .app-brand span {
  display: none;
}

.app-layout.sidebar-collapsed .sidebar-top-actions,
.app-layout.sidebar-collapsed .sidebar-icon-row {
  flex-direction: column;
}

.app-layout.sidebar-collapsed .app-nav {
  width: 100%;
}

.app-layout.sidebar-collapsed .app-nav a {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  margin: 0 auto;
  padding: 0;
}

.app-layout.sidebar-collapsed .app-nav-icon {
  display: grid;
  place-items: center;
}

.app-layout.sidebar-collapsed .app-nav-label {
  display: none;
}

.app-layout.sidebar-collapsed .sidebar-profile {
  display: none;
}

.app-layout.sidebar-collapsed .sidebar-bottom-tools {
  margin: auto 0 0;
}

.app-layout.sidebar-collapsed .sidebar-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
}

.app-layout.sidebar-collapsed .sidebar-actions .btn {
  width: 48px;
  height: 48px;
  min-height: 48px;
  margin: 0 auto;
  padding: 0;
}

.app-layout.sidebar-collapsed .sidebar-action-icon {
  display: grid;
  place-items: center;
}

.app-layout.sidebar-collapsed .sidebar-action-label {
  display: none;
}

.sidebar-profile + .sidebar-return {
  margin-top: 0;
}

.sidebar-profile + .sidebar-actions {
  margin-top: 0;
}

.sidebar-icon-row + .sidebar-actions {
  margin-top: 0;
}

.app-main {
  padding: 28px;
}

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

.app-topbar h1 {
  margin-bottom: 0;
  font-size: clamp(2.2rem, 5vw, 4.2rem);
}

.app-subtitle {
  max-width: 720px;
  margin: 10px 0 0;
  color: var(--muted);
}

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

.icon-btn {
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  font-weight: 800;
}

.account-overview {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 260px;
  gap: 18px;
  margin-bottom: 18px;
}

.balance-card,
.quick-actions,
.app-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(18, 21, 28, 0.86);
  box-shadow: var(--shadow);
}

.balance-card {
  padding: 24px;
}

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

.balance-card strong {
  display: block;
  margin: 6px 0;
  font-size: clamp(2.4rem, 5vw, 4rem);
  line-height: 1;
}

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

.account-line-chart {
  height: 180px;
  display: flex;
  align-items: end;
  gap: 10px;
  margin-top: 24px;
  padding: 18px;
  border-radius: 8px;
  background: #0d1018;
}

.account-line-chart span {
  flex: 1;
  min-width: 14px;
  border-radius: 6px 6px 0 0;
  background: linear-gradient(180deg, #5d5fef, rgba(93, 95, 239, 0.2));
}

.quick-actions {
  display: grid;
  gap: 10px;
  padding: 18px;
}

.quick-actions button {
  min-height: 48px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  cursor: pointer;
}

.quick-actions a {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  text-decoration: none;
  font-weight: 800;
}

.quick-actions button:first-child {
  background: linear-gradient(135deg, #5d5fef, #4345ce);
  color: #ffffff;
  font-weight: 800;
}

.quick-actions a:first-child {
  background: linear-gradient(135deg, #5d5fef, #4345ce);
}

.account-kpi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 18px;
  margin-bottom: 18px;
}

.mini-metric {
  min-height: 148px;
}

.mini-metric strong,
.mini-metric small {
  display: block;
}

.mini-metric strong {
  margin: 12px 0 6px;
  font-size: 1.8rem;
}

.mini-metric small {
  color: var(--muted);
}

.profit-metric strong.gain {
  color: var(--positive);
}

.profit-metric strong.loss {
  color: var(--red);
}

.profit-metric strong.flat {
  color: var(--muted);
}

.account-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(300px, 0.8fr);
  gap: 18px;
}

.markets-layout,
.research-page-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.74fr);
  gap: 18px;
}

.wide-card {
  grid-column: span 1;
}

.app-card {
  padding: 20px;
}

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

.card-heading h2 {
  margin-bottom: 0;
  font-size: 1.55rem;
}

.card-intro {
  max-width: 720px;
  margin: 8px 0 0;
  color: var(--muted);
  line-height: 1.55;
}

.profile-hero {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
  margin-bottom: 18px;
  background:
    radial-gradient(circle at 90% 0%, rgba(93, 95, 239, 0.13), transparent 32%),
    rgba(14, 17, 24, 0.92);
}

.profile-avatar {
  width: 86px;
  height: 86px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(93, 95, 239, 0.45);
  border-radius: 999px;
  background: radial-gradient(circle at 35% 30%, rgba(93, 95, 239, 0.28), rgba(11, 13, 18, 0.92));
}

.profile-avatar img {
  width: 58px;
  height: 58px;
  object-fit: contain;
}

.profile-initials {
  color: var(--text);
  font-size: 2rem;
  font-weight: 950;
  letter-spacing: 0;
}

.profile-hero h2 {
  margin-bottom: 2px;
  font-size: clamp(1.8rem, 3vw, 2.8rem);
}

.profile-hero p {
  margin: 0;
  color: var(--muted);
}

.profile-badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.profile-badge-row span {
  min-height: 32px;
  display: inline-flex;
  align-items: center;
  padding: 0 12px;
  border: 1px solid rgba(93, 95, 239, 0.35);
  border-radius: 999px;
  background: rgba(93, 95, 239, 0.14);
  color: var(--accent);
  font-weight: 900;
}

.profile-hero-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

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

.profile-action-list a {
  min-height: 54px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(93, 95, 239, 0.14);
  color: var(--text);
  font-weight: 900;
  text-align: center;
}

.profile-info-grid {
  align-items: stretch;
}

.profile-info-card {
  min-height: 0;
}

.profile-combined-card {
  grid-column: 1 / -1;
}

.profile-combined-list {
  grid-template-columns: 1fr;
}

.profile-info-card .settings-list strong {
  max-width: 58%;
  overflow-wrap: anywhere;
}

.profile-combined-list strong {
  max-width: 62%;
}

.profile-kyc-modal-card {
  width: min(840px, calc(100vw - 32px));
}

.profile-kyc-modal[data-kyc-active-step="face"] .kyc-step-list {
  display: none;
}

.profile-kyc-modal[data-kyc-locked="true"] .kyc-step-list {
  display: none;
}

.kyc-step-list article,
.kyc-guidance-grid article {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.035);
}

.kyc-step-list small {
  color: var(--muted);
}

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

.kyc-guidance-grid article {
  padding: 14px;
}

.kyc-guidance-grid ul {
  margin: 10px 0 0;
  padding-left: 18px;
  color: var(--text);
  line-height: 1.65;
}

.kyc-step-list {
  display: grid;
  gap: 10px;
  margin-bottom: 14px;
}

.kyc-step-list article {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: start;
  gap: 12px;
  padding: 14px;
}

.kyc-step-list article > span {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: rgba(93, 95, 239, 0.24);
  color: var(--accent);
  font-weight: 950;
}

.kyc-step-list strong,
.kyc-step-list small {
  display: block;
}

.profile-notice {
  margin-top: 12px;
}

.kyc-review-form {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 14px;
}

.kyc-review-form[hidden] {
  display: none;
}

.kyc-review-state {
  display: grid;
  gap: 16px;
  padding: 18px;
  border: 1px solid rgba(91, 95, 239, 0.42);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(91, 95, 239, 0.18), rgba(16, 185, 129, 0.08)),
    rgba(255, 255, 255, 0.04);
}

.kyc-review-state[hidden] {
  display: none;
}

.kyc-review-state h3 {
  margin: 0;
  font-size: clamp(1.9rem, 4vw, 3.4rem);
  line-height: 0.98;
}

.kyc-review-state p {
  max-width: 680px;
  margin: 0;
  color: var(--muted);
  font-size: 1.03rem;
  line-height: 1.6;
}

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

.kyc-review-state-grid div {
  display: grid;
  gap: 6px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.16);
}

.kyc-review-state-grid span {
  color: var(--muted);
}

.kyc-review-state-actions {
  display: grid;
  gap: 10px;
  max-width: 360px;
}

.kyc-form-step {
  grid-column: 1 / -1;
  display: grid;
  gap: 12px;
}

.kyc-form-step[hidden] {
  display: none;
}

.kyc-review-form label {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-weight: 850;
}

.kyc-review-form select,
.kyc-review-form input {
  min-height: 52px;
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.055);
  color: var(--text);
  padding: 0 14px;
  font: inherit;
  font-weight: 850;
}

.kyc-review-form input[type="file"] {
  padding: 14px;
}

.kyc-review-form select option {
  background: #111827;
  color: #f8fafc;
}

.profile-kyc-button-verified {
  background: rgba(16, 185, 129, 0.22);
  border-color: rgba(16, 185, 129, 0.44);
  color: #34d399;
  cursor: default;
}

.profile-kyc-button-rejected {
  background: rgba(255, 88, 116, 0.18);
  border-color: rgba(255, 88, 116, 0.46);
  color: var(--danger);
}

.profile-kyc-button-reviewing {
  background: rgba(91, 95, 239, 0.18);
}

.kyc-face-scan {
  grid-column: 1 / -1;
  display: grid;
  gap: 14px;
  padding: 16px;
  border: 1px solid rgba(91, 95, 239, 0.45);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(91, 95, 239, 0.14), rgba(16, 185, 129, 0.08)),
    rgba(255, 255, 255, 0.035);
}

.kyc-face-copy {
  display: grid;
  gap: 6px;
}

.kyc-face-copy strong {
  color: var(--text);
  font-size: 1.05rem;
}

.kyc-face-copy span {
  color: var(--muted);
  line-height: 1.55;
}

.kyc-face-stage {
  position: relative;
  width: min(100%, 430px);
  aspect-ratio: 1 / 1;
  justify-self: center;
  overflow: hidden;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    radial-gradient(circle at 50% 42%, rgba(59, 130, 246, 0.28), transparent 36%),
    radial-gradient(circle at 50% 50%, rgba(125, 211, 252, 0.12), transparent 54%),
    linear-gradient(145deg, rgba(1, 5, 12, 0.98), rgba(8, 14, 28, 0.98));
}

.kyc-face-stage video,
.kyc-face-stage img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.kyc-face-stage video {
  transform: scaleX(-1);
}

.kyc-scan-frame {
  position: absolute;
  width: 76%;
  height: 76%;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  border-radius: 12px;
  background:
    linear-gradient(rgba(191, 219, 254, 1), rgba(191, 219, 254, 1)) left top / 36% 8px no-repeat,
    linear-gradient(rgba(191, 219, 254, 1), rgba(191, 219, 254, 1)) left top / 8px 36% no-repeat,
    linear-gradient(rgba(191, 219, 254, 1), rgba(191, 219, 254, 1)) right top / 36% 8px no-repeat,
    linear-gradient(rgba(191, 219, 254, 1), rgba(191, 219, 254, 1)) right top / 8px 36% no-repeat,
    linear-gradient(rgba(191, 219, 254, 1), rgba(191, 219, 254, 1)) left bottom / 36% 8px no-repeat,
    linear-gradient(rgba(191, 219, 254, 1), rgba(191, 219, 254, 1)) left bottom / 8px 36% no-repeat,
    linear-gradient(rgba(191, 219, 254, 1), rgba(191, 219, 254, 1)) right bottom / 36% 8px no-repeat,
    linear-gradient(rgba(191, 219, 254, 1), rgba(191, 219, 254, 1)) right bottom / 8px 36% no-repeat;
  box-shadow:
    0 0 0 999px rgba(0, 0, 0, 0.24),
    inset 0 0 30px rgba(96, 165, 250, 0.2),
    0 0 30px rgba(96, 165, 250, 0.72),
    0 0 78px rgba(34, 211, 238, 0.38);
  isolation: isolate;
  pointer-events: none;
}

.kyc-scan-frame::after {
  content: "";
  position: absolute;
  left: -4%;
  right: -4%;
  top: 42%;
  height: 7px;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, rgba(191, 219, 254, 0.94), rgba(125, 211, 252, 1), rgba(191, 219, 254, 0.94), transparent);
  box-shadow:
    0 0 18px rgba(125, 211, 252, 0.9),
    0 0 34px rgba(59, 130, 246, 0.64);
  animation: kyc-scan-line 2.35s ease-in-out infinite;
  z-index: 1;
}

.kyc-face-actions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.kyc-face-actions .btn {
  min-height: 46px;
}

.kyc-submit-row {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(0, 0.55fr) minmax(0, 1fr);
  gap: 10px;
}

@keyframes kyc-scan-line {
  0%,
  100% {
    top: 30%;
    opacity: 0.55;
  }
  50% {
    top: 66%;
    opacity: 1;
  }
}

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

#wallet-holdings {
  gap: 10px;
}

.asset-table-row {
  position: relative;
  display: grid;
  grid-template-columns: 1.25fr 1fr 1fr 0.6fr;
  gap: 10px;
  align-items: center;
  min-height: 52px;
  padding: 10px 12px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.035);
  color: var(--muted);
}

button.asset-table-row {
  width: 100%;
  border: 0;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

a.asset-table-row {
  color: var(--muted);
  text-decoration: none;
}

.asset-table-row.head {
  min-height: auto;
  background: transparent;
  color: #7d8499;
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
}

.asset-table-row span:first-child {
  color: var(--text);
}

.wallet-holding-row {
  position: relative;
  z-index: 1;
  cursor: pointer;
  border: 1px solid transparent !important;
  transition: border-color 0.18s ease, background 0.18s ease, transform 0.18s ease;
}

.wallet-holding-row.menu-open {
  z-index: 70;
}

.asset-table-row:has(.asset-row-menu:not([hidden])) {
  z-index: 70;
}

.wallet-holding-row:hover,
.wallet-holding-row.active {
  border-color: rgba(93, 95, 239, 0.72) !important;
  background:
    linear-gradient(135deg, rgba(93, 95, 239, 0.18), rgba(50, 213, 131, 0.045)),
    rgba(255, 255, 255, 0.045);
}

.wallet-holding-row:hover {
  transform: translateY(-1px);
}

.wallet-group-row.active {
  border-color: rgba(93, 95, 239, 0.78) !important;
}

.wallet-asset-name,
.wallet-holding-row span:first-child {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.asset-copy {
  min-width: 0;
  display: grid;
  gap: 2px;
  line-height: 1.15;
}

.asset-copy b,
.wallet-holding-row span:first-child b {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.wallet-group-row > span:first-child > small {
  margin-left: auto;
  font-weight: 900;
  white-space: nowrap;
}

.wallet-subasset-row .asset-copy small,
.watchlist-row .asset-copy small {
  margin-left: 0;
  font-weight: 700;
  white-space: nowrap;
}

.wallet-subasset-row {
  grid-template-columns: 1.25fr 0.9fr 0.9fr minmax(150px, 0.7fr);
  margin-left: 22px;
  width: calc(100% - 22px);
  border: 1px solid rgba(93, 95, 239, 0.22);
  background: rgba(255, 255, 255, 0.025);
  transition: border-color 0.18s ease, background 0.18s ease, transform 0.18s ease;
}

.wallet-subasset-row:hover {
  border-color: rgba(93, 95, 239, 0.66);
  background: rgba(93, 95, 239, 0.09);
  transform: translateY(-1px);
}

.wallet-subasset-row span:first-child {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.wallet-subasset-row .wallet-asset-name,
.watchlist-row > span:first-child {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  column-gap: 12px;
  min-height: 44px;
  align-items: center;
  align-self: center;
}

.wallet-subasset-row .asset-copy,
.watchlist-row .asset-copy {
  align-self: center;
  align-content: center;
}

.wallet-subasset-row .asset-logo-small,
.watchlist-row .asset-logo {
  margin: 0;
  justify-self: center;
  align-self: center;
}

.wallet-subasset-row span:first-child a,
.wallet-subasset-row span:first-child b,
.wallet-subasset-row span:first-child small,
.asset-copy small {
  display: block;
}

.wallet-subasset-row span:first-child small,
.asset-copy small {
  color: var(--muted);
  font-size: 0.74rem;
}

.wallet-menu-cell {
  position: relative;
  z-index: 3;
  min-width: 0;
  display: flex !important;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}

.wallet-row-status {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.wallet-asset-menu {
  top: 38px;
  right: 0;
}

.wallet-asset-menu a,
.asset-row-menu a {
  width: 100%;
  min-height: 40px;
  display: flex;
  align-items: center;
  padding: 0 10px;
  border-radius: 6px;
  background: #151d2b;
  color: var(--text);
  font-weight: 900;
  text-decoration: none;
}

.wallet-asset-menu a:hover,
.asset-row-menu a:hover {
  background: rgba(93, 95, 239, 0.18);
}

.asset-dot.cash {
  background: #d8dde8;
}

.asset-dot.gold {
  background: var(--gold);
}

.wallet-side-stack,
.wallet-detail-list,
.wallet-record-list {
  display: grid;
  gap: 12px;
}

.wallet-detail-card {
  background:
    linear-gradient(180deg, rgba(93, 95, 239, 0.1), rgba(18, 22, 31, 0.82)),
    rgba(255, 255, 255, 0.035);
}

.holdings-card {
  background:
    radial-gradient(circle at 12% 0%, rgba(93, 95, 239, 0.14), transparent 34%),
    rgba(255, 255, 255, 0.035);
}

.wallet-detail-heading {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 12px;
}

.wallet-detail-heading > div {
  min-width: 0;
}

.wallet-detail-heading h2 {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.wallet-detail-hero {
  display: grid;
  gap: 8px;
  margin-bottom: 16px;
}

.wallet-detail-hero strong {
  font-size: clamp(2rem, 4vw, 3.1rem);
  line-height: 1;
}

.wallet-detail-hero span {
  color: var(--muted);
}

.wallet-detail-list div,
.wallet-record-row {
  min-height: 54px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.035);
}

.wallet-detail-list span,
.wallet-record-row span,
.wallet-record-row small {
  color: var(--muted);
}

.wallet-detail-list strong,
.wallet-record-row strong {
  text-align: right;
}

.wallet-record-row {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr) auto;
}

.wallet-record-row strong {
  text-align: left;
}

.wallet-action-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
  gap: 10px;
  margin-top: 16px;
}

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

.wallet-action-grid.wallet-action-grid-crypto > :nth-child(-n+3) {
  grid-column: span 2;
}

.wallet-action-grid.wallet-action-grid-crypto > :nth-child(n+4) {
  grid-column: span 3;
}

.wallet-action-grid a,
.wallet-action-grid button {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(93, 95, 239, 0.16);
  color: var(--text);
  font: inherit;
  font-weight: 900;
  text-decoration: none;
  cursor: pointer;
}

.wallet-action-grid a:first-child,
.wallet-action-grid button:first-child {
  background: linear-gradient(135deg, #5d5fef, #4345ce);
}

.wallet-action-grid.wallet-action-grid-crypto [data-live-wallet-transfer="receive"] {
  background: linear-gradient(135deg, #5d5fef, #4345ce);
}

.wallet-empty-state {
  min-height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.035);
}

.wallet-category-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 4px 0 12px;
}

.wallet-category-tabs button {
  min-height: 38px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.045);
  color: var(--muted);
  font-weight: 900;
  cursor: pointer;
}

.wallet-category-tabs button.active {
  border-color: rgba(93, 95, 239, 0.85);
  background: rgba(93, 95, 239, 0.22);
  color: var(--text);
}

.wallet-category-panel {
  display: grid;
  gap: 10px;
  margin-bottom: 16px;
  padding: 12px;
  border: 1px solid rgba(93, 95, 239, 0.24);
  border-radius: 8px;
  background: rgba(93, 95, 239, 0.08);
}

.wallet-category-heading {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 900;
  text-transform: uppercase;
}

.wallet-category-heading strong {
  color: var(--green);
}

.wallet-category-assets {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.wallet-category-assets a,
.wallet-category-assets button {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 10px;
  min-height: 68px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  font: inherit;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
  transition: border-color 0.18s ease, background 0.18s ease, transform 0.18s ease;
}

.wallet-category-assets a:hover,
.wallet-category-assets button:hover {
  border-color: rgba(93, 95, 239, 0.72);
  background: rgba(93, 95, 239, 0.14);
  transform: translateY(-1px);
}

.wallet-category-assets span b,
.wallet-category-assets span em {
  display: block;
  font-style: normal;
}

.wallet-category-assets span em,
.wallet-category-assets small {
  color: var(--muted);
  font-size: 0.76rem;
}

.wallet-category-assets strong {
  justify-self: end;
}

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

.settings-preview-card {
  grid-column: span 1;
}

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

.settings-preview-card .btn {
  margin-top: 16px;
}

.live-account-card p {
  max-width: 680px;
}

.live-account-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.live-account-overview {
  grid-template-columns: minmax(0, 1fr) 360px;
}

.live-status-card {
  align-content: start;
}

.live-status-card div {
  min-height: 112px;
  display: grid;
  align-content: center;
  gap: 6px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.035);
}

.live-status-card strong,
.live-status-card small {
  display: block;
}

.live-status-card small {
  color: var(--muted);
}

.live-account-grid,
.live-transfer-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 18px;
  margin-bottom: 18px;
}

.live-wallet-tools {
  margin-top: 18px;
  grid-template-columns: minmax(0, 1fr);
}

.live-method-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}

.live-method-tabs button {
  min-height: 40px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.045);
  color: var(--muted);
  font-weight: 900;
  cursor: pointer;
}

.live-method-tabs button.active {
  border-color: rgba(93, 95, 239, 0.85);
  background: rgba(93, 95, 239, 0.22);
  color: var(--text);
}

.live-method-panel {
  display: grid;
  gap: 14px;
}

.live-method-panel[hidden] {
  display: none;
}

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

.live-form-grid label,
.live-transfer-panel label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-weight: 800;
}

.live-form-grid input,
.live-form-grid select,
.live-transfer-panel input,
.live-transfer-panel select {
  min-height: 48px;
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.055);
  color: var(--text);
  padding: 0 12px;
  outline: none;
}

.live-form-grid select,
.live-transfer-panel select {
  cursor: pointer;
}

.live-form-grid select option,
.live-transfer-panel select option {
  background: #151922;
  color: var(--text);
}

.live-method-summary,
.live-transfer-panel,
.live-wire-box,
.live-address-box,
.live-notice {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.035);
}

.live-method-summary {
  display: grid;
  gap: 6px;
  padding: 14px;
}

.live-method-summary span,
.live-panel-heading span,
.live-notice {
  color: var(--muted);
}

.live-wire-box {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 10px 14px;
  padding: 14px;
}

.live-wire-box span {
  color: var(--muted);
}

.live-crypto-card {
  background:
    radial-gradient(circle at 90% 0%, rgba(47, 226, 139, 0.09), transparent 36%),
    rgba(18, 21, 28, 0.86);
}

.live-transfer-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-bottom: 0;
}

.live-wallet-modal {
  position: fixed;
  inset: 0;
  z-index: 220;
  display: grid;
  place-items: center;
  padding: 24px;
}

.live-wallet-modal[hidden] {
  display: none !important;
}

.live-wallet-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(4, 7, 12, 0.78);
}

.live-wallet-modal-card {
  position: relative;
  z-index: 1;
  width: min(680px, 100%);
  max-height: min(760px, calc(100vh - 48px));
  overflow: auto;
  background:
    radial-gradient(circle at 88% 0%, rgba(47, 226, 139, 0.11), transparent 36%),
    #111620;
}

.live-funding-modal-card {
  width: min(760px, 100%);
}

.live-wallet-modal-heading {
  align-items: flex-start;
}

.live-wallet-modal-heading .asset-more-button {
  position: static;
  flex: 0 0 36px;
  text-transform: uppercase;
}

body.modal-open {
  overflow: hidden;
}

.live-transfer-panel {
  display: grid;
  gap: 14px;
  padding: 16px;
  background:
    linear-gradient(145deg, rgba(93, 95, 239, 0.11), rgba(47, 226, 139, 0.045)),
    rgba(14, 18, 26, 0.98);
}

.live-transfer-panel[hidden] {
  display: none !important;
}

.live-panel-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.live-panel-heading strong {
  text-align: right;
}

.live-transfer-brief,
.live-transfer-footnote {
  display: grid;
  gap: 6px;
  padding: 14px;
  border: 1px solid rgba(93, 95, 239, 0.28);
  border-radius: 8px;
  background: rgba(93, 95, 239, 0.1);
}

.live-transfer-brief strong,
.live-transfer-footnote strong {
  color: var(--text);
}

.live-transfer-brief span,
.live-transfer-footnote span {
  color: var(--muted);
  line-height: 1.5;
}

.send-brief {
  border-color: rgba(255, 94, 119, 0.24);
  background: rgba(255, 94, 119, 0.075);
}

.live-address-box {
  min-height: 72px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 12px;
}

.live-receive-code {
  display: grid;
  justify-items: center;
  gap: 10px;
  padding: 16px;
  border: 1px solid rgba(93, 95, 239, 0.24);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.045);
}

.live-receive-code[hidden] {
  display: none !important;
}

.live-receive-code img {
  width: min(220px, 100%);
  aspect-ratio: 1;
  padding: 10px;
  border-radius: 8px;
  background: #f7f9ff;
  box-shadow: 0 14px 35px rgba(0, 0, 0, 0.28);
}

.live-receive-code span {
  color: var(--muted);
  font-weight: 800;
  text-align: center;
}

.live-address-box span {
  min-width: 0;
  overflow-wrap: anywhere;
  color: var(--text);
  font-weight: 800;
}

.live-address-box button,
.live-holdings-table button {
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(93, 95, 239, 0.18);
  color: var(--text);
  font-weight: 900;
  cursor: pointer;
}

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

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

.live-notice {
  padding: 12px 14px;
  font-weight: 800;
}

.live-notice[data-type="success"] {
  border-color: rgba(47, 226, 139, 0.45);
  color: var(--green);
}

.live-notice[data-type="warning"] {
  border-color: rgba(255, 94, 119, 0.45);
  color: var(--red);
}

.live-record-grid {
  align-items: start;
}

.live-holdings-table .asset-table-row {
  grid-template-columns: 1.15fr 0.9fr 0.9fr minmax(100px, 0.55fr);
}

.live-holdings-table button {
  width: 100%;
  padding: 0 10px;
}

.asset-dot.etf {
  background: #4fc3ff;
}

.live-security-card .settings-list div {
  min-height: 52px;
}

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

.settings-control-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 14px;
  max-width: 980px;
}

.settings-hub-layout {
  display: grid;
  grid-template-columns: minmax(300px, 380px) minmax(0, 1fr);
  gap: 18px;
  align-items: start;
  max-width: 1180px;
}

.settings-menu-card,
.settings-detail-panel {
  min-height: 0;
}

.settings-search-box {
  position: relative;
  display: block;
  margin-bottom: 16px;
}

.settings-search-box input {
  width: 100%;
  min-height: 52px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.055);
  color: var(--text);
  padding: 0 16px 0 46px;
  font: inherit;
  font-weight: 850;
}

.settings-search-box input::placeholder {
  color: rgba(196, 206, 232, 0.58);
}

.settings-search-icon {
  position: absolute;
  left: 18px;
  top: 50%;
  width: 15px;
  height: 15px;
  border: 2px solid rgba(196, 206, 232, 0.72);
  border-radius: 50%;
  transform: translateY(-55%);
}

.settings-search-icon::after {
  content: "";
  position: absolute;
  right: -6px;
  bottom: -5px;
  width: 8px;
  height: 2px;
  border-radius: 999px;
  background: rgba(196, 206, 232, 0.72);
  transform: rotate(45deg);
}

.settings-menu-list {
  display: grid;
}

.settings-menu-row {
  width: 100%;
  min-height: 72px;
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) 18px;
  align-items: center;
  gap: 14px;
  border: 0;
  border-bottom: 1px solid rgba(196, 206, 232, 0.12);
  background: transparent;
  color: var(--text);
  padding: 12px 6px;
  text-align: left;
  font: inherit;
  cursor: pointer;
}

.settings-menu-row:hover,
.settings-menu-row.active {
  color: #ffffff;
}

.settings-menu-row.active {
  background: linear-gradient(90deg, rgba(93, 95, 239, 0.2), rgba(93, 95, 239, 0));
}

.settings-menu-row strong {
  display: block;
  font-size: 1rem;
}

.settings-menu-row small {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  line-height: 1.35;
}

.settings-row-icon {
  position: relative;
  width: 34px;
  height: 34px;
  border-radius: 8px;
  color: #f4f7ff;
}

.settings-menu-row.active .settings-row-icon {
  color: #7b7dff;
}

.settings-icon-account::before {
  content: "";
  position: absolute;
  left: 11px;
  top: 6px;
  width: 10px;
  height: 10px;
  border: 2px solid currentColor;
  border-radius: 50%;
}

.settings-icon-account::after {
  content: "";
  position: absolute;
  left: 7px;
  top: 20px;
  width: 18px;
  height: 9px;
  border: 2px solid currentColor;
  border-bottom: 0;
  border-radius: 14px 14px 0 0;
}

.settings-icon-bell::before {
  content: "";
  position: absolute;
  left: 8px;
  top: 7px;
  width: 17px;
  height: 17px;
  border: 2px solid currentColor;
  border-bottom: 0;
  border-radius: 13px 13px 5px 5px;
}

.settings-icon-bell::after {
  content: "";
  position: absolute;
  left: 7px;
  top: 24px;
  width: 20px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
  box-shadow: 7px 4px 0 -1px currentColor;
}

.settings-icon-eye::before {
  content: "";
  position: absolute;
  left: 5px;
  top: 10px;
  width: 22px;
  height: 14px;
  border: 2px solid currentColor;
  border-radius: 60% 60% 60% 60%;
}

.settings-icon-eye::after {
  content: "";
  position: absolute;
  left: 14px;
  top: 15px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}

.settings-icon-lock::before {
  content: "";
  position: absolute;
  left: 7px;
  top: 15px;
  width: 20px;
  height: 13px;
  border: 2px solid currentColor;
  border-radius: 4px;
}

.settings-icon-lock::after {
  content: "";
  position: absolute;
  left: 11px;
  top: 5px;
  width: 12px;
  height: 14px;
  border: 2px solid currentColor;
  border-bottom: 0;
  border-radius: 12px 12px 0 0;
}

.settings-icon-help::before,
.settings-icon-about::before {
  content: "?";
  position: absolute;
  inset: 6px;
  display: grid;
  place-items: center;
  border: 2px solid currentColor;
  border-radius: 50%;
  font-weight: 950;
}

.settings-icon-about::before {
  content: "i";
}

.settings-chevron {
  width: 11px;
  height: 11px;
  border-top: 2px solid currentColor;
  border-right: 2px solid currentColor;
  transform: rotate(45deg);
  opacity: 0.9;
}

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

.settings-mobile-back {
  display: none;
}

.settings-detail-panel[hidden] {
  display: none;
}

.settings-inline-link {
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(93, 95, 239, 0.36);
  border-radius: 999px;
  background: rgba(93, 95, 239, 0.14);
  color: var(--text);
  padding: 0 14px;
  font-weight: 950;
}

.settings-card {
  min-height: 0;
}

.settings-control-card {
  min-height: 0;
}

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

.settings-list > div,
.settings-item {
  min-height: 54px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.035);
}

.settings-list span {
  color: var(--muted);
}

.settings-list span small {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 650;
}

.settings-list strong {
  color: var(--text);
  text-align: right;
}

.settings-list span strong {
  display: block;
  color: var(--text);
  text-align: left;
}

.settings-inline-button,
.settings-toggle-button {
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(93, 95, 239, 0.36);
  border-radius: 999px;
  background: rgba(93, 95, 239, 0.14);
  color: var(--text);
  padding: 0 14px;
  font: inherit;
  font-weight: 950;
  cursor: pointer;
}

.settings-toggle-button {
  min-width: 74px;
  background: rgba(255, 82, 119, 0.13);
  border-color: rgba(255, 82, 119, 0.34);
  color: #ff6b87;
}

.settings-toggle-button.is-on {
  background: rgba(40, 218, 123, 0.14);
  border-color: rgba(40, 218, 123, 0.38);
  color: #28da7b;
}

.settings-switch-list .settings-item {
  align-items: center;
}

.settings-switch-list .settings-item > span {
  min-width: 0;
  flex: 1 1 auto;
}

.settings-switch {
  position: relative;
  flex: 0 0 auto;
  width: 58px;
  height: 32px;
  border: 1px solid rgba(255, 82, 119, 0.38);
  border-radius: 999px;
  background: rgba(255, 82, 119, 0.16);
  cursor: pointer;
  transition: background 0.18s ease, border-color 0.18s ease;
}

.settings-switch span {
  position: absolute;
  top: 4px;
  left: 4px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.24);
  transition: transform 0.18s ease;
}

.settings-switch.is-on {
  border-color: rgba(40, 218, 123, 0.44);
  background: linear-gradient(135deg, #5d5fef, #2fdb7d);
}

.settings-switch.is-on span {
  transform: translateX(26px);
}

.settings-support-card {
  grid-column: 1 / -1;
  min-height: 0;
}

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

.settings-ticket-form label {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-weight: 850;
}

.settings-ticket-form input,
.settings-ticket-form select,
.settings-ticket-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.055);
  color: var(--text);
  padding: 12px 14px;
  font: inherit;
  font-weight: 850;
}

.settings-ticket-form select {
  min-height: 52px;
}

.settings-ticket-form select option {
  background: #111620;
  color: #f7f9ff;
}

.settings-ticket-message {
  grid-column: 1 / -1;
}

.settings-ticket-form .btn {
  grid-column: 1 / -1;
}

.settings-notice {
  margin-top: 12px;
}

.settings-notice[data-tone="success"] {
  border-color: rgba(40, 218, 123, 0.35);
  background: rgba(40, 218, 123, 0.12);
  color: #9cffc6;
}

.settings-notice[data-tone="error"] {
  border-color: rgba(255, 82, 119, 0.35);
  background: rgba(255, 82, 119, 0.12);
  color: #ff9aad;
}

.settings-security-workspace {
  border: 1px solid var(--line);
  border-radius: 10px;
  background:
    linear-gradient(140deg, rgba(93, 95, 239, 0.08), rgba(47, 226, 139, 0.035)),
    rgba(255, 255, 255, 0.025);
  padding: 14px;
}

.settings-security-view {
  display: grid;
  gap: 14px;
}

.settings-security-view h3 {
  margin: 0;
  font-size: clamp(1.35rem, 2.2vw, 2rem);
}

.settings-back-button {
  justify-self: start;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.045);
  color: var(--text);
  padding: 10px 14px;
  font: inherit;
  font-weight: 900;
  cursor: pointer;
}

.settings-back-button:hover,
.settings-inline-button:hover,
.settings-inline-link:hover {
  border-color: rgba(93, 95, 239, 0.65);
}

.settings-help-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 14px;
}

.settings-help-grid div {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.035);
  padding: 14px;
}

.settings-help-grid strong,
.settings-help-grid span {
  display: block;
}

.settings-help-grid span {
  margin-top: 5px;
  color: var(--muted);
}

.settings-about-copy {
  display: grid;
  gap: 12px;
}

.settings-about-copy p {
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.035);
  padding: 16px;
  color: var(--muted);
}

.settings-security-form {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}

.settings-security-form label {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-weight: 850;
}

.settings-security-form input {
  min-height: 52px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.055);
  color: var(--text);
  padding: 12px 14px;
  font: inherit;
  font-weight: 850;
}

.settings-auth-setup {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  gap: 18px;
  align-items: center;
  margin-top: 18px;
}

.settings-qr-preview {
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border: 1px solid rgba(93, 95, 239, 0.4);
  border-radius: 10px;
  background:
    repeating-linear-gradient(45deg, rgba(255,255,255,0.08) 0 8px, rgba(255,255,255,0.02) 8px 16px),
    rgba(93, 95, 239, 0.16);
  color: var(--text);
  font-size: 2.2rem;
  font-weight: 950;
}

.settings-qr-preview img {
  width: min(100%, 176px);
  height: auto;
  border-radius: 8px;
  background: #ffffff;
  padding: 8px;
}

.settings-auth-setup p {
  color: var(--muted);
}

.settings-device-list {
  display: grid;
  gap: 10px;
  margin-top: 18px;
}

.settings-device-row,
.settings-empty-state {
  min-height: 62px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
  padding: 12px 14px;
}

.settings-device-row span,
.settings-empty-state {
  color: var(--muted);
}

.settings-delete-device {
  min-width: 42px;
  height: 38px;
  border: 1px solid rgba(255, 82, 119, 0.35);
  border-radius: 8px;
  background: rgba(255, 82, 119, 0.12);
  color: #ff9aad;
  font-weight: 950;
  cursor: pointer;
}

body.account-body.theme-light {
  --bg: #f4f6fb;
  --surface: #ffffff;
  --surface-2: #eef1ff;
  --line: rgba(62, 72, 110, 0.18);
  --text: #111827;
  --muted: #536179;
  background:
    radial-gradient(circle at 20% 0%, rgba(93, 95, 239, 0.15), transparent 34rem),
    radial-gradient(circle at 92% 8%, rgba(79, 195, 255, 0.14), transparent 28rem),
    var(--bg);
}

body.account-body.theme-light .app-sidebar,
body.account-body.theme-light .app-card {
  background: rgba(255, 255, 255, 0.92);
  color: var(--text);
}

body.account-body.theme-light .app-sidebar {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(239, 243, 255, 0.92));
}

body.account-body.theme-light .settings-menu-row,
body.account-body.theme-light .settings-list > div,
body.account-body.theme-light .settings-help-grid div,
body.account-body.theme-light .settings-about-copy p,
body.account-body.theme-light .settings-security-workspace,
body.account-body.theme-light .settings-device-row,
body.account-body.theme-light .settings-empty-state,
body.account-body.theme-light .asset-table-row,
body.account-body.theme-light .wallet-subasset-row,
body.account-body.theme-light .wallet-detail-list div,
body.account-body.theme-light .wallet-record-row,
body.account-body.theme-light .wallet-category-assets a,
body.account-body.theme-light .wallet-category-assets button,
body.account-body.theme-light .market-intel-card,
body.account-body.theme-light .market-asset-card,
body.account-body.theme-light .market-mover-list a,
body.account-body.theme-light .asset-activity-list div,
body.account-body.theme-light .asset-chart-stats div,
body.account-body.theme-light .asset-detail-list div,
body.account-body.theme-light .order-preview,
body.account-body.theme-light .order-row-link,
body.account-body.theme-light .profile-combined-list div,
body.account-body.theme-light .profile-info-card {
  background: rgba(17, 24, 39, 0.035);
}

body.account-body.theme-light .settings-ticket-form input,
body.account-body.theme-light .settings-ticket-form select,
body.account-body.theme-light .settings-ticket-form textarea,
body.account-body.theme-light .settings-security-form input,
body.account-body.theme-light input,
body.account-body.theme-light select,
body.account-body.theme-light textarea {
  background: #ffffff;
  color: var(--text);
}

body.account-body.theme-light .app-nav a.active,
body.account-body.theme-light .settings-menu-row.active,
body.account-body.theme-light .wallet-holding-row.active,
body.account-body.theme-light .market-filter-row button.active,
body.account-body.theme-light .order-side-toggle button.active {
  background: rgba(93, 95, 239, 0.12);
}

body.account-body.theme-light .asset-line-chart,
body.account-body.theme-light .market-search-panel,
body.account-body.theme-light .market-search-box,
body.account-body.theme-light .asset-more-menu,
body.account-body.theme-light .asset-row-menu,
body.account-body.theme-light .market-card-popover,
body.account-body.theme-light .live-wallet-modal-panel,
body.account-body.theme-light .profile-kyc-modal-card {
  background: #ffffff;
}

.vision-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-top: 22px;
}

.vision-steps span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(93, 95, 239, 0.12);
  color: var(--text);
  font-weight: 800;
}

.vision-steps a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(93, 95, 239, 0.12);
  color: var(--text);
  font-weight: 800;
  text-decoration: none;
}

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

.demo-step-grid div {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.035);
}

.demo-step-grid strong,
.demo-step-grid span {
  display: block;
}

.demo-step-grid strong {
  color: var(--green);
  font-size: 1.8rem;
}

.demo-step-grid span {
  color: var(--muted);
}

.trade-ticket {
  grid-row: span 2;
}

.order-workspace {
  align-items: start;
}

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

.ticket-form label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 800;
}

.ticket-form label[hidden] {
  display: none !important;
}

.ticket-form input,
.ticket-form select {
  min-height: 44px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
}

.ticket-form select {
  color-scheme: dark;
}

.ticket-form select option {
  background: #111620;
  color: #f7f8ff;
}

.ticket-form input:focus,
.ticket-form select:focus {
  border-color: rgba(93, 95, 239, 0.8);
  box-shadow: 0 0 0 3px rgba(93, 95, 239, 0.16);
}

.ticket-form input[readonly] {
  color: var(--text);
  background: rgba(255, 255, 255, 0.035);
  cursor: default;
}

.order-side-toggle {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.order-side-toggle button {
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.045);
  color: var(--muted);
  font-weight: 900;
  cursor: pointer;
}

.order-side-toggle button.active {
  border-color: rgba(93, 95, 239, 0.85);
  background: rgba(93, 95, 239, 0.24);
  color: var(--text);
}

.order-preview {
  min-height: 96px;
  display: grid;
  gap: 6px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.035);
}

.order-preview span,
.order-preview small,
.order-status {
  color: var(--muted);
}

.order-preview strong {
  font-size: 1.15rem;
}

.order-preview.gain {
  border-color: rgba(50, 213, 131, 0.32);
  background: rgba(50, 213, 131, 0.06);
}

.order-preview.flat {
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.035);
}

.order-preview.loss {
  border-color: rgba(255, 92, 122, 0.42);
  background: rgba(255, 92, 122, 0.08);
}

.order-preview.loss small {
  color: var(--red);
}

.order-submit {
  width: 100%;
  min-height: 52px;
  border: 0;
  cursor: pointer;
}

.order-submit:disabled {
  opacity: 0.62;
  cursor: wait;
}

.order-status {
  min-height: 22px;
  margin: 0;
  font-size: 0.9rem;
  font-weight: 800;
}

.order-status.gain {
  color: var(--green);
}

.order-status.loss {
  color: var(--red);
}

.order-row-link {
  color: var(--muted);
  text-decoration: none;
  border: 1px solid transparent;
  transition: border-color 0.18s ease, background 0.18s ease, transform 0.18s ease;
}

.order-row-link:hover {
  border-color: rgba(93, 95, 239, 0.65);
  background: rgba(93, 95, 239, 0.12);
  transform: translateY(-1px);
}

.market-topbar {
  align-items: flex-start;
}

.market-search-panel {
  display: grid;
  gap: 14px;
  margin-bottom: 18px;
}

.market-search-box {
  min-height: 68px;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 0 20px;
  border: 1px solid rgba(93, 95, 239, 0.38);
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(93, 95, 239, 0.16), rgba(50, 213, 131, 0.07));
}

.market-search-box .search-icon {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 34px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--green);
  position: relative;
}

.market-search-box .search-icon::before {
  content: "";
  width: 13px;
  height: 13px;
  border: 2px solid currentColor;
  border-radius: 50%;
}

.market-search-box .search-icon::after {
  content: "";
  width: 8px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
  position: absolute;
  right: 8px;
  bottom: 8px;
  transform: rotate(45deg);
  transform-origin: center;
}

.market-search-box input {
  width: 100%;
  min-height: 48px;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--text);
  font: inherit;
  font-size: 1.05rem;
  font-weight: 800;
}

.market-search-box input::placeholder {
  color: rgba(202, 211, 255, 0.62);
}

.market-filter-row,
.chart-range-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.market-filter-row button,
.chart-range-tabs button {
  min-height: 38px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.045);
  color: var(--muted);
  font-weight: 900;
  cursor: pointer;
}

.market-filter-row button.active,
.chart-range-tabs button.active {
  border-color: rgba(93, 95, 239, 0.85);
  background: rgba(93, 95, 239, 0.22);
  color: var(--text);
}

.market-intel-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 18px;
}

.market-intel-card {
  min-height: 118px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
}

.market-intel-card strong,
.market-intel-card small {
  display: block;
}

.market-intel-card strong {
  margin: 9px 0 4px;
  font-size: 1.45rem;
}

.market-intel-card small {
  color: var(--muted);
}

.market-feature-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(320px, 0.7fr);
  gap: 18px;
  margin-bottom: 18px;
}

.market-spotlight-card {
  min-height: 360px;
}

.text-link {
  color: var(--green);
  font-weight: 900;
  text-decoration: none;
}

.spotlight-heading,
.asset-identity {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.spotlight-heading > div,
.asset-identity > div {
  min-width: 0;
}

.spotlight-price-row,
.asset-hero-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
}

.spotlight-price-row strong,
.asset-price-panel strong {
  display: block;
  font-size: clamp(2.1rem, 5vw, 4.2rem);
  line-height: 1;
}

.spotlight-price-row span,
.asset-price-panel span {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
  font-weight: 900;
}

.asset-more-wrap {
  position: relative;
  display: inline-flex;
  margin-left: 8px;
  vertical-align: middle;
}

.asset-more-button {
  width: 38px;
  height: 34px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  font-weight: 900;
  cursor: pointer;
}

.asset-more-menu {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  z-index: 12;
  min-width: 170px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(12, 16, 22, 0.98);
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.32);
}

.asset-more-menu button {
  width: 100%;
  min-height: 40px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--text);
  font: inherit;
  font-weight: 900;
  text-align: left;
  cursor: pointer;
}

.asset-more-menu button:hover {
  background: rgba(93, 95, 239, 0.18);
}

.spark-chart {
  height: 190px;
  display: flex;
  align-items: end;
  gap: 5px;
  margin: 24px 0 18px;
  padding: 18px 0 0;
  border-bottom: 1px solid var(--line);
}

.spark-chart span,
.asset-card-chart span {
  flex: 1;
  min-width: 2px;
  border-radius: 999px 999px 0 0;
  background: linear-gradient(180deg, rgba(50, 213, 131, 0.95), rgba(50, 213, 131, 0.12));
}

.asset-card-chart.loss span {
  background: linear-gradient(180deg, rgba(255, 92, 122, 0.95), rgba(255, 92, 122, 0.12));
}

.spotlight-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.spotlight-meta span,
.asset-pill,
.market-result-count {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 900;
}

.market-mover-list,
.compact-market-list,
.asset-activity-list {
  display: grid;
  gap: 10px;
}

.market-mover-list a,
.compact-market-list a,
.asset-activity-list div {
  display: grid;
  grid-template-columns: auto 0.5fr 1fr auto;
  align-items: center;
  gap: 10px;
  min-height: 58px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.035);
  color: var(--text);
  text-decoration: none;
}

.market-mover-list a {
  grid-template-columns: auto auto 0.45fr 1fr auto;
}

.compact-market-list a {
  grid-template-columns: auto minmax(110px, 1fr) auto auto;
}

.market-mover-list a > span:first-child {
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: rgba(93, 95, 239, 0.18);
  color: var(--green);
  font-weight: 900;
}

.market-mover-list small,
.compact-market-list em,
.compact-market-list small,
.asset-activity-list small {
  color: var(--muted);
}

.market-mover-list em,
.compact-market-list small {
  justify-self: end;
  font-style: normal;
  font-weight: 900;
}

.compact-market-list span b,
.compact-market-list span em {
  display: block;
  font-style: normal;
}

.compact-market-list span em {
  margin-top: 3px;
  color: var(--muted);
  font-size: 0.75rem;
}

.market-board-card {
  margin-bottom: 18px;
}

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

.market-asset-card {
  position: relative;
  min-height: 218px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.035);
  color: var(--text);
  text-decoration: none;
  transition: border-color 0.18s ease, background 0.18s ease, transform 0.18s ease;
}

.market-card-main {
  min-height: 100%;
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 10px;
  color: inherit;
  text-decoration: none;
}

.market-card-menu {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  width: 34px;
  height: 32px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(12, 16, 22, 0.78);
  color: var(--text);
  font-weight: 900;
  cursor: pointer;
}

.market-card-menu:disabled {
  opacity: 0.6;
  cursor: wait;
}

.market-card-popover,
.asset-row-menu {
  position: absolute;
  z-index: 120;
  min-width: 170px;
  padding: 8px;
  display: grid;
  gap: 6px;
  border: 1px solid rgba(145, 155, 180, 0.34);
  border-radius: 8px;
  background: #070a10;
  opacity: 1;
  isolation: isolate;
  backdrop-filter: none;
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.86), 0 0 0 1px rgba(255, 255, 255, 0.06) inset;
}

.market-card-popover[hidden],
.asset-row-menu[hidden] {
  display: none !important;
}

.market-card-popover {
  top: 48px;
  right: 12px;
}

.market-card-popover button,
.asset-row-menu button {
  width: 100%;
  min-height: 40px;
  border: 0;
  border-radius: 6px;
  background: #151d2b;
  color: var(--text);
  font: inherit;
  font-weight: 900;
  text-align: left;
  cursor: pointer;
}

.market-card-popover button:hover,
.asset-row-menu button:hover {
  background: rgba(93, 95, 239, 0.18);
}

.market-asset-card:hover {
  border-color: rgba(93, 95, 239, 0.75);
  background: rgba(93, 95, 239, 0.11);
  transform: translateY(-2px);
}

.market-asset-card.crypto .asset-token:not(.has-image),
.market-asset-card.stable .asset-token:not(.has-image) {
  background: linear-gradient(135deg, #5d5fef, #32d583);
}

.market-asset-card.commodity .asset-token {
  background: linear-gradient(135deg, #d7a84f, #32d583);
}

.asset-card-top,
.asset-card-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.market-asset-card .asset-card-top {
  padding-right: 42px;
}

.asset-token {
  width: 42px;
  height: 42px;
  position: relative;
  flex: 0 0 42px;
  display: inline-grid;
  align-items: center;
  justify-content: center;
  place-items: center;
  border-radius: 8px;
  background: linear-gradient(135deg, #5d5fef, #91a7ff);
  color: #fff;
  font-size: 0.85rem;
  font-weight: 900;
  line-height: 1;
  overflow: hidden;
}

.asset-token.asset-logo {
  align-self: center;
  justify-self: start;
  flex-shrink: 0;
}

.asset-logo.has-image {
  background: rgba(255, 255, 255, 0.96);
}

.asset-logo-fit {
  position: absolute;
  inset: 4px;
  display: grid;
  place-items: center;
  overflow: hidden;
}

.asset-logo img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  object-position: center;
}

.asset-logo.logo-type-stock .asset-logo-fit,
.asset-logo.logo-type-etf .asset-logo-fit,
.asset-logo.logo-type-commodity .asset-logo-fit {
  inset: 3px;
}

.asset-logo.logo-type-stock img,
.asset-logo.logo-type-etf img,
.asset-logo.logo-type-commodity img {
  transform: translateY(0);
}

.asset-logo.logo-symbol-tsla img,
.asset-logo.logo-symbol-amzn img {
  transform: translateY(2px);
}

.asset-logo.logo-symbol-aapl img {
  width: 88%;
  height: 88%;
}

.asset-logo.autody-logo {
  border: 1px solid rgba(145, 120, 255, 0.42);
  background: radial-gradient(circle at 35% 30%, rgba(120, 84, 255, 0.28), rgba(13, 15, 24, 0.98) 62%);
}

.asset-logo.autody-logo img {
  width: 112%;
  height: 112%;
  object-fit: cover;
  filter: saturate(1.18) contrast(1.06);
}

.asset-logo > b,
.compact-market-list .asset-logo > b,
.market-mover-list .asset-logo > b {
  display: none;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  line-height: 1;
}

.asset-logo.logo-fallback > b,
.asset-logo:not(.has-image) > b,
.compact-market-list .asset-logo.logo-fallback > b,
.market-mover-list .asset-logo.logo-fallback > b {
  display: inline-flex;
}

.asset-logo.logo-fallback {
  background: linear-gradient(135deg, #5d5fef, #91a7ff);
}

.asset-logo-small {
  width: 36px;
  height: 36px;
  flex-basis: 36px;
  min-width: 36px;
  border-radius: 8px;
  font-size: 0.7rem;
}

.asset-logo-large {
  width: 56px;
  height: 56px;
  flex-basis: 56px;
  min-width: 56px;
  border-radius: 10px;
  font-size: 0.85rem;
}

.asset-logo-hero {
  width: 76px;
  height: 76px;
  border-radius: 14px;
  font-size: 1rem;
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.24);
}

.market-asset-card strong {
  min-height: 48px;
  font-size: 1.05rem;
  line-height: 1.25;
}

.market-asset-card > small,
.market-card-main > small {
  color: var(--muted);
}

.asset-card-chart {
  height: 52px;
  display: flex;
  align-items: end;
  gap: 3px;
  margin-top: auto;
}

.asset-card-bottom span,
.asset-card-bottom em {
  font-weight: 900;
}

.asset-card-bottom em {
  font-style: normal;
}

.market-empty-state,
.market-loading-card {
  min-height: 160px;
  display: flex;
  align-items: center;
  justify-content: center;
  grid-column: 1 / -1;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.035);
}

.market-toast {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 50;
  max-width: min(320px, calc(100vw - 44px));
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(12, 16, 22, 0.96);
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.32);
  color: var(--text);
  font-weight: 900;
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition: opacity 0.18s ease, transform 0.18s ease;
}

.market-toast.show {
  opacity: 1;
  transform: translateY(0);
}

.market-toast.gain {
  border-color: rgba(50, 213, 131, 0.48);
  color: var(--green);
}

.market-toast.loss {
  border-color: rgba(255, 92, 122, 0.48);
  color: var(--red);
}

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

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

.asset-detail-hero {
  padding-bottom: 8px;
}

.asset-detail-hero .text-link {
  display: inline-flex;
  margin-bottom: 18px;
}

.asset-price-panel {
  text-align: right;
}

.asset-price-panel span {
  margin-top: 10px;
}

.asset-detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(320px, 0.75fr);
  gap: 18px;
  align-items: start;
}

.asset-chart-card,
.asset-details-card,
.asset-activity-card {
  min-height: 320px;
}

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

.asset-line-chart {
  min-height: 360px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.018));
  overflow: hidden;
}

.asset-line-chart svg {
  width: 100%;
  height: 100%;
  min-height: 340px;
  display: block;
}

.chart-hover-line,
.chart-hover-dot,
.chart-hover-tooltip {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.14s ease;
}

.asset-line-chart svg.is-hovering .chart-hover-line,
.asset-line-chart svg.is-hovering .chart-hover-dot,
.asset-line-chart svg.is-hovering .chart-hover-tooltip {
  opacity: 1;
}

.chart-hover-line {
  stroke: rgba(255, 255, 255, 0.5);
  stroke-width: 1.5;
  stroke-dasharray: 5 7;
}

.chart-hover-dot {
  fill: var(--dark);
  stroke: var(--green);
  stroke-width: 3;
}

.chart-hover-tooltip div {
  min-width: 154px;
  min-height: 48px;
  display: grid;
  gap: 3px;
  padding: 9px 11px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(9, 13, 17, 0.94);
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.32);
  color: var(--text);
}

.chart-hover-tooltip strong {
  font-size: 1rem;
  line-height: 1.1;
}

.chart-hover-tooltip span {
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 800;
}

.chart-hover-capture {
  fill: transparent;
  cursor: crosshair;
  pointer-events: all;
}

.asset-chart-stats,
.asset-detail-list {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

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

.asset-chart-stats div,
.asset-detail-list div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 50px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.035);
}

.asset-chart-stats span,
.asset-detail-list span {
  color: var(--muted);
}

.asset-chart-stats strong,
.asset-detail-list strong {
  text-align: right;
}

.asset-action-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-top: 18px;
}

.asset-action-grid a,
.asset-action-grid button {
  min-height: 78px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(93, 95, 239, 0.16);
  color: var(--text);
  font: inherit;
  font-weight: 900;
  text-decoration: none;
  cursor: pointer;
}

.asset-balance-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin: 12px 0 6px;
}

.asset-balance-row strong {
  font-size: 1.7rem;
}

.asset-balance-row span,
.asset-balance-card small {
  color: var(--muted);
}

.asset-details-card,
.asset-activity-card {
  grid-column: span 1;
}

.asset-empty-activity {
  display: grid !important;
  grid-template-columns: 1fr !important;
  align-content: center;
  min-height: 170px !important;
  text-align: center;
  color: var(--muted);
}

.asset-empty-activity strong,
.asset-empty-activity span {
  display: block;
}

.asset-empty-activity strong {
  color: var(--text);
  margin-bottom: 6px;
}

.research-feature {
  min-height: 360px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.research-feature h2 {
  font-size: clamp(2rem, 4vw, 3.5rem);
}

.research-feature p {
  color: var(--muted);
}

.research-news-card {
  grid-column: 1 / -1;
}

.research-news-carousel {
  min-height: 430px;
}

.research-news-feature {
  display: grid;
  grid-template-columns: minmax(280px, 0.85fr) minmax(0, 1.15fr);
  gap: 20px;
  min-height: 430px;
}

.research-news-media {
  min-height: 380px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(145deg, rgba(91, 92, 255, 0.18), rgba(18, 24, 38, 0.9)),
    #111722;
}

.research-news-media img {
  width: 100%;
  height: 100%;
  min-height: 380px;
  object-fit: cover;
  display: block;
}

.research-news-image-fallback {
  min-height: 380px;
  display: grid;
  place-items: center;
  padding: 24px;
  color: var(--text);
  font-size: 1.65rem;
  font-weight: 900;
  text-align: center;
}

.research-news-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
}

.research-news-copy > span {
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.research-news-copy h3 {
  margin: 12px 0;
  font-size: clamp(1.75rem, 4vw, 3.4rem);
  line-height: 1.02;
}

.research-news-copy p {
  max-width: 760px;
  color: var(--muted);
  font-size: 1.03rem;
  line-height: 1.65;
}

.research-news-facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 18px 0;
}

.research-news-facts div {
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.035);
}

.research-news-facts small {
  display: block;
  margin-bottom: 6px;
  color: var(--muted);
  font-weight: 800;
  text-transform: uppercase;
}

.research-news-facts strong {
  color: var(--text);
  font-size: 0.95rem;
}

.research-news-controls {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 8px;
}

.research-news-arrow,
.research-news-dot {
  border: 1px solid var(--line);
  color: var(--text);
  background: rgba(255, 255, 255, 0.045);
  cursor: pointer;
}

.research-news-arrow {
  width: 44px;
  height: 44px;
  border-radius: 8px;
  font-size: 1.55rem;
  line-height: 1;
}

.research-news-arrow:hover,
.research-news-dot:hover,
.research-news-dot.active {
  border-color: rgba(93, 95, 239, 0.85);
  background: rgba(93, 95, 239, 0.22);
}

.research-news-dots {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.research-news-dot {
  width: 10px;
  height: 10px;
  padding: 0;
  border-radius: 999px;
}

.research-news-empty {
  min-height: 260px;
  display: grid;
  align-content: center;
  text-align: center;
}

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

.research-plan-card {
  min-height: 230px;
  display: flex;
  flex-direction: column;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(93, 95, 239, 0.13), rgba(255, 255, 255, 0.035)),
    rgba(255, 255, 255, 0.03);
}

.research-plan-card span {
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.research-plan-card h3 {
  margin: 12px 0 8px;
  font-size: 1.2rem;
  line-height: 1.2;
}

.research-plan-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.research-plan-card a {
  margin-top: auto;
  padding-top: 18px;
  color: var(--text);
  font-weight: 900;
  text-decoration: none;
}

.research-plan-card a:hover {
  color: var(--accent);
}

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

.watchlist,
.activity-list,
.research-list {
  display: grid;
  gap: 10px;
}

.watchlist div,
.activity-list div,
.research-list article {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.035);
}

.research-watch-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 12px;
}

.research-watch-item strong {
  color: var(--text);
  white-space: nowrap;
}

.research-watch-item em {
  min-width: 74px;
  font-style: normal;
  font-weight: 900;
  text-align: right;
}

.research-watch-item em.gain {
  color: var(--green);
}

.research-watch-item em.loss {
  color: var(--red);
}

.research-watch-item em.flat {
  color: var(--muted);
}

.watchlist div {
  display: grid;
  grid-template-columns: minmax(96px, 0.9fr) 1fr auto;
  align-items: center;
  gap: 8px;
}

.watchlist .market-choice {
  cursor: pointer;
  transition: border-color 0.18s ease, background 0.18s ease, transform 0.18s ease;
}

.watchlist .market-choice:hover {
  border-color: rgba(93, 95, 239, 0.7);
  background: rgba(93, 95, 239, 0.11);
  transform: translateY(-1px);
}

.watchlist span,
.activity-list span,
.research-list span {
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 800;
  text-transform: uppercase;
}

.watchlist span b,
.watchlist span em {
  display: block;
}

.watchlist span b {
  color: var(--text);
  font-size: 0.88rem;
}

.watchlist span em {
  margin-top: 3px;
  color: var(--muted);
  font-size: 0.66rem;
  font-style: normal;
  line-height: 1.2;
  text-transform: none;
}

.watchlist-row {
  position: relative;
}

.watchlist-row > span:first-child {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  align-items: center;
  column-gap: 12px;
  min-width: 0;
  min-height: 44px;
}

.watchlist-row > span:first-child a {
  min-width: 0;
  color: var(--text);
  text-decoration: none;
}

.watchlist-row > span:first-child b,
.watchlist-row > span:first-child small {
  display: block;
}

.watchlist-row > span:first-child small {
  color: var(--muted);
  font-size: 0.76rem;
}

.watchlist-menu-cell {
  position: relative;
  display: flex;
  justify-content: flex-end;
}

.asset-row-menu-button {
  width: 34px;
  height: 32px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.045);
  color: var(--text);
  font-weight: 900;
  cursor: pointer;
}

.asset-row-menu {
  top: 38px;
  right: 0;
}

.activity-list strong,
.activity-list small,
.research-list h3 {
  display: block;
}

.activity-list small {
  color: var(--muted);
}

.research-list h3 {
  margin: 6px 0 0;
  font-size: 1rem;
}

.auth-body {
  min-height: 100vh;
  background:
    radial-gradient(circle at 80% 20%, rgba(93, 95, 239, 0.18), transparent 32%),
    #0b0d12;
}

.auth-shell {
  width: min(1120px, calc(100% - 40px));
  min-height: calc(100vh - 92px);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(320px, 0.7fr);
  gap: 22px;
  align-items: center;
}

.auth-shell-wide {
  width: min(1280px, calc(100% - 40px));
  grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.58fr);
}

.auth-shell-single {
  width: min(920px, calc(100% - 40px));
  grid-template-columns: 1fr;
}

.auth-panel,
.auth-side-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(18, 25, 24, 0.84);
  box-shadow: var(--shadow);
}

.auth-panel {
  padding: clamp(28px, 5vw, 54px);
}

.auth-copy {
  max-width: 560px;
  margin-bottom: 28px;
}

.auth-copy h1 {
  margin: 8px 0 14px;
  font-size: clamp(2.3rem, 6vw, 5rem);
  line-height: 0.96;
}

.auth-copy p,
.auth-side-panel p {
  color: var(--muted);
}

.auth-form {
  display: grid;
  gap: 16px;
  max-width: 520px;
}

.auth-method-toggle {
  display: inline-flex;
  gap: 6px;
  margin: -8px 0 18px;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
}

.auth-method-toggle button {
  min-height: 42px;
  padding: 0 16px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-weight: 900;
  cursor: pointer;
}

.auth-method-toggle button.active {
  border-color: rgba(93, 95, 239, 0.7);
  background: rgba(93, 95, 239, 0.24);
  color: var(--text);
}

.auth-form-wide {
  max-width: 760px;
}

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

.auth-form label {
  display: grid;
  gap: 8px;
  color: var(--text);
  font-weight: 800;
}

.auth-form input,
.auth-form select {
  min-height: 52px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.045);
  color: var(--text);
  font: inherit;
}

.auth-password-field {
  position: relative;
  display: block;
}

.auth-form .auth-password-field input {
  width: 100%;
  padding-right: 52px;
}

.auth-password-toggle {
  position: absolute;
  top: 50%;
  right: 10px;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  min-height: 34px;
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  transform: translateY(-50%);
}

.auth-password-toggle:hover,
.auth-password-toggle:focus-visible {
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
}

.auth-password-toggle svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.auth-form select {
  appearance: none;
  background-image:
    linear-gradient(45deg, transparent 50%, var(--muted) 50%),
    linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  background-position:
    calc(100% - 18px) 22px,
    calc(100% - 12px) 22px;
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
}

.auth-form option {
  color: #111111;
}

.auth-phone-input {
  display: grid;
  grid-template-columns: minmax(120px, 0.34fr) minmax(0, 1fr);
  min-height: 52px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.045);
}

.auth-form .auth-phone-input select,
.auth-form .auth-phone-input input {
  min-height: 50px;
  border: 0;
  border-radius: 0;
  background-color: transparent;
}

.auth-form .auth-phone-input select {
  border-right: 1px solid var(--line);
}

.auth-check {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  align-items: start;
  gap: 10px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.035);
  color: var(--muted);
  font-weight: 700;
}

.auth-check-compact {
  padding: 0;
  border: 0;
  background: transparent;
}

.auth-check input {
  min-height: auto;
  width: 18px;
  height: 18px;
  margin: 2px 0 0;
  accent-color: var(--primary);
}

.auth-check a {
  color: var(--primary);
  font-weight: 900;
}

.auth-link-button {
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--primary);
  font: inherit;
  font-weight: 900;
  cursor: pointer;
}

.auth-link-button:hover,
.auth-link-button:focus-visible {
  text-decoration: underline;
}

.auth-verification-target {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 52px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.045);
}

.auth-verification-target span {
  color: var(--muted);
  font-weight: 800;
}

.auth-verification-target strong {
  color: var(--text);
}

.auth-code-input {
  text-align: center;
  font-size: 1.6rem !important;
  font-weight: 900 !important;
}

.auth-form button:disabled {
  opacity: 0.68;
  cursor: wait;
}

.auth-error {
  margin: 0;
  color: var(--negative);
  font-weight: 800;
}

.auth-success {
  margin: 0;
  color: var(--positive);
  font-weight: 800;
}

.auth-mail-icon {
  display: inline-grid;
  place-items: center;
  width: 56px;
  height: 56px;
  color: var(--primary);
}

.auth-mail-icon svg {
  width: 44px;
  height: 44px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.auth-captcha {
  display: grid;
  gap: 10px;
  min-height: 78px;
  padding: 0;
  border: 0;
  background: transparent;
}

.auth-captcha p {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 800;
}

.auth-captcha p[data-status="success"] {
  color: var(--positive);
}

.auth-captcha p[data-status="error"] {
  color: var(--negative);
}

.auth-side-panel {
  padding: 28px;
}

.auth-side-panel h2 {
  margin: 26px 0 12px;
  font-size: clamp(2rem, 4vw, 3rem);
}

.auth-stat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 28px;
}

.auth-stat-grid div {
  min-height: 92px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.035);
}

.auth-stat-grid span,
.auth-stat-grid strong {
  display: block;
}

.auth-stat-grid span {
  color: var(--muted);
  font-size: 0.84rem;
}

.auth-stat-grid strong {
  margin-top: 10px;
}

.auth-checklist {
  display: grid;
  gap: 10px;
  margin-top: 24px;
}

.auth-checklist div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  min-height: 58px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.035);
}

.auth-checklist span {
  color: var(--muted);
}

.auth-checklist strong {
  text-align: right;
}

.auth-inline-link {
  display: inline-block;
  margin-top: 22px;
  color: var(--primary);
  font-weight: 900;
}

.auth-resend-button {
  justify-self: center;
  margin-top: -2px;
}

.auth-verify-card {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.035);
}

.auth-verify-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 56px;
  padding: 0 0 14px;
  border-bottom: 1px solid var(--line);
}

.auth-verify-row span {
  color: var(--muted);
}

.auth-verify-row strong {
  text-align: right;
}

.terms-panel {
  display: grid;
  gap: 26px;
}

.terms-content {
  display: grid;
  gap: 22px;
  color: var(--muted);
}

.terms-content section {
  padding-top: 22px;
  border-top: 1px solid var(--line);
}

.terms-content h2 {
  margin: 0 0 10px;
  color: var(--text);
  font-size: 1.3rem;
}

.terms-content h3 {
  margin: 0 0 10px;
  color: var(--text);
  font-size: 1.1rem;
}

.terms-content p,
.terms-content li {
  line-height: 1.65;
}

.terms-content ul {
  margin: 10px 0 0;
  padding-left: 20px;
}

.terms-callout {
  padding: 16px;
  border: 1px solid rgba(91, 95, 239, 0.42);
  border-radius: 8px;
  background: rgba(91, 95, 239, 0.12);
  color: var(--text);
  font-weight: 800;
}

.auth-modal {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: grid;
  place-items: center;
  padding: 24px;
}

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

.auth-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(4, 6, 10, 0.78);
  backdrop-filter: blur(12px);
}

.auth-modal-panel {
  position: relative;
  width: min(860px, 100%);
  max-height: min(82vh, 860px);
  overflow: hidden;
  padding: clamp(20px, 3vw, 30px);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #0f141c;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.5);
}

.auth-modal-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}

.auth-modal-header h2 {
  margin: 6px 0 0;
  font-size: clamp(1.8rem, 4vw, 3rem);
}

.auth-modal-close {
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.045);
  color: var(--text);
  font: inherit;
  font-weight: 900;
  cursor: pointer;
}

.auth-modal-scroll {
  max-height: calc(min(82vh, 860px) - 132px);
  overflow-y: auto;
  padding-right: 10px;
}

.admin-body {
  min-height: 100vh;
  background:
    radial-gradient(circle at 72% 8%, rgba(93, 95, 239, 0.14), transparent 34%),
    linear-gradient(180deg, #080b11 0%, #06080d 100%);
}

.admin-shell {
  width: min(1600px, calc(100% - 48px));
  margin: 0 auto;
  padding: 28px 0 60px;
  display: grid;
  gap: 22px;
}

.admin-hero {
  display: grid;
  grid-template-columns: minmax(170px, 0.18fr) minmax(0, 1fr) minmax(320px, 0.42fr);
  gap: 24px;
  align-items: start;
  padding: 18px 0 8px;
}

.admin-hero .app-brand {
  padding: 0;
}

.admin-hero h1 {
  margin: 8px 0 10px;
  font-size: clamp(3rem, 7vw, 6.4rem);
  line-height: 0.92;
}

.admin-hero p {
  max-width: 780px;
  color: var(--muted);
  line-height: 1.55;
}

.admin-key-card,
.admin-action-card,
.admin-output-card,
.admin-table-card {
  background: rgba(15, 19, 27, 0.88);
}

.admin-key-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px;
  display: grid;
  gap: 12px;
}

.admin-key-card label,
.admin-action-card label {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-weight: 900;
}

.admin-key-card input,
.admin-action-card input,
.admin-action-card select {
  min-height: 46px;
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #151922;
  color: var(--text);
  padding: 0 14px;
  font: inherit;
}

.admin-action-card input::placeholder,
.admin-key-card input::placeholder {
  color: rgba(204, 215, 245, 0.58);
}

.admin-key-actions,
.admin-form-row,
.admin-filter-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.admin-filter-actions {
  grid-template-columns: minmax(160px, 0.7fr) auto auto;
  align-items: center;
}

.admin-filter-actions select {
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #151922;
  color: var(--text);
  padding: 0 12px;
  font: inherit;
  font-weight: 850;
}

.admin-form-row {
  align-items: end;
}

.admin-form-row:has(> :nth-child(3)) {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.admin-form-row-tight {
  grid-template-columns: minmax(0, 1fr) minmax(170px, 0.3fr);
}

.admin-check {
  min-height: 46px;
  display: flex !important;
  align-items: center;
  gap: 10px !important;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #151922;
  color: var(--text) !important;
}

.admin-check input {
  min-height: auto;
  width: 18px;
  height: 18px;
  padding: 0;
}

.admin-notice {
  margin: 0;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(18, 24, 34, 0.9);
  color: var(--muted);
}

.admin-notice[data-state="success"] {
  border-color: rgba(45, 225, 139, 0.38);
  color: var(--positive);
}

.admin-notice[data-state="error"] {
  border-color: rgba(255, 87, 120, 0.38);
  color: var(--negative);
}

.admin-kpi-grid,
.admin-grid,
.admin-data-grid {
  display: grid;
  gap: 14px;
}

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

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

.admin-data-grid {
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
}

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

.admin-output-card {
  display: grid;
  gap: 12px;
}

.admin-output-card pre {
  min-height: 96px;
  max-height: 360px;
  overflow: auto;
  margin: 0;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #080b11;
  color: #dbe5ff;
  white-space: pre-wrap;
  word-break: break-word;
}

.admin-table-card {
  overflow: hidden;
}

.admin-table {
  display: grid;
  gap: 8px;
  max-height: 560px;
  overflow: auto;
  padding-right: 4px;
}

.admin-record,
.admin-empty {
  border: 1px solid rgba(79, 91, 126, 0.5);
  border-radius: 8px;
  background: rgba(24, 29, 39, 0.88);
}

.admin-empty {
  padding: 18px;
  color: var(--muted);
}

.admin-record {
  min-width: 760px;
  display: grid;
  grid-template-columns: minmax(180px, 1fr) minmax(210px, 1.05fr) minmax(130px, 0.55fr) minmax(130px, 0.6fr) minmax(130px, 0.6fr);
  gap: 12px;
  align-items: center;
  padding: 14px;
}

.admin-record-scan {
  min-width: 560px;
  grid-template-columns: minmax(220px, 1fr) minmax(150px, 0.6fr) minmax(220px, 0.8fr);
}

.admin-record div {
  min-width: 0;
  display: grid;
  gap: 5px;
}

.admin-record strong {
  color: var(--text);
  font-size: 1rem;
}

.admin-record span,
.admin-record small {
  min-width: 0;
  color: var(--muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-mono {
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
}

.admin-status {
  width: fit-content;
  padding: 5px 9px;
  border-radius: 999px;
  font-weight: 900;
  background: rgba(255, 255, 255, 0.06);
}

.admin-status.positive {
  color: var(--positive);
  background: rgba(45, 225, 139, 0.1);
}

.admin-status.negative {
  color: var(--negative);
  background: rgba(255, 87, 120, 0.1);
}

.admin-copy {
  width: fit-content;
  min-height: 30px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(93, 95, 239, 0.14);
  color: var(--text);
  padding: 0 10px;
  font: inherit;
  font-weight: 900;
  cursor: pointer;
}

.admin-download {
  width: 100%;
  min-height: 38px;
  border: 1px solid rgba(91, 95, 239, 0.55);
  border-radius: 8px;
  background: rgba(93, 95, 239, 0.16);
  color: var(--text);
  padding: 0 12px;
  font: inherit;
  font-weight: 950;
  cursor: pointer;
}

.admin-copy:hover {
  border-color: var(--primary);
}

.admin-download:hover {
  border-color: var(--primary);
  background: rgba(93, 95, 239, 0.24);
}

.admin-download:disabled {
  cursor: wait;
  opacity: 0.72;
}

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

.admin-kyc-table {
  max-height: 720px;
}

.admin-kyc-record {
  min-width: 1040px;
  display: grid;
  grid-template-columns: minmax(220px, 0.75fr) minmax(440px, 1fr) minmax(220px, 0.55fr);
  gap: 14px;
  align-items: stretch;
  padding: 14px;
  border: 1px solid rgba(79, 91, 126, 0.5);
  border-radius: 8px;
  background: rgba(24, 29, 39, 0.88);
}

.admin-kyc-person,
.admin-kyc-actions,
.admin-kyc-files > div {
  display: grid;
  gap: 8px;
  min-width: 0;
}

.admin-kyc-person strong {
  color: var(--text);
  font-size: 1.1rem;
}

.admin-kyc-person span,
.admin-kyc-person small,
.admin-kyc-actions small,
.admin-kyc-files small {
  min-width: 0;
  color: var(--muted);
  overflow-wrap: anywhere;
}

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

.admin-kyc-preview {
  min-height: 180px;
  overflow: hidden;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #0a0e16;
  color: var(--text);
  font-weight: 900;
  text-decoration: none;
}

.admin-kyc-preview img {
  width: 100%;
  height: 100%;
  min-height: 180px;
  object-fit: cover;
}

.admin-file-preview,
.admin-empty-preview {
  padding: 16px;
  text-align: center;
}

.admin-empty-preview {
  color: var(--muted);
}

.admin-kyc-actions {
  align-content: start;
}

.admin-kyc-reason {
  display: grid;
  gap: 6px;
}

.admin-kyc-reason span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.admin-kyc-reason select,
.admin-kyc-reason input {
  min-height: 42px;
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #151a24;
  color: var(--text);
  padding: 0 12px;
  font: inherit;
  font-weight: 800;
}

.admin-kyc-reason select:focus,
.admin-kyc-reason input:focus {
  outline: 2px solid rgba(92, 92, 255, 0.4);
  outline-offset: 2px;
}

.admin-danger {
  border-color: rgba(255, 88, 116, 0.38);
  color: var(--danger);
}

.admin-danger:hover {
  border-color: rgba(255, 88, 116, 0.7);
  background: rgba(255, 88, 116, 0.12);
}

.ops-shell {
  width: min(1520px, calc(100% - 48px));
}

.ops-hero {
  grid-template-columns: minmax(170px, 0.18fr) minmax(0, 1fr) minmax(260px, 0.28fr);
  align-items: center;
}

.ops-gateway-shell {
  min-height: 100vh;
  align-content: center;
}

.ops-gateway-grid,
.ops-console-grid,
.ops-market-layout {
  display: grid;
  gap: 18px;
}

.ops-gateway-grid {
  grid-template-columns: minmax(320px, 0.72fr) minmax(320px, 1fr);
  align-items: stretch;
}

.ops-access-card,
.ops-security-card,
.ops-console-card,
.ops-chart-card {
  background:
    linear-gradient(145deg, rgba(21, 26, 37, 0.96), rgba(13, 17, 25, 0.96)),
    rgba(15, 19, 27, 0.92);
}

.ops-access-card,
.ops-security-card {
  display: grid;
  align-content: start;
  gap: 16px;
}

.ops-access-card h2,
.ops-security-card h2,
.ops-console-card strong,
.ops-chart-card h2 {
  margin: 0;
}

.ops-access-card label,
.ops-market-form label {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-weight: 900;
}

.ops-access-card input {
  min-height: 52px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #151922;
  color: var(--text);
  padding: 0 14px;
  font: inherit;
}

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

.ops-security-list span {
  min-height: 54px;
  display: flex;
  align-items: center;
  padding: 0 14px;
  border: 1px solid rgba(91, 95, 239, 0.32);
  border-radius: 8px;
  background: rgba(91, 95, 239, 0.11);
  color: var(--text);
  font-weight: 900;
}

.ops-session-card {
  align-content: start;
}

.ops-session-card strong {
  font-size: 1.1rem;
}

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

.ops-console-card {
  min-height: 230px;
  display: grid;
  align-content: space-between;
  gap: 18px;
  color: inherit;
  text-decoration: none;
}

.ops-console-card strong {
  display: block;
  color: var(--text);
  font-size: clamp(1.6rem, 3vw, 2.35rem);
  line-height: 1;
}

.ops-console-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.ops-console-card:hover {
  border-color: rgba(91, 95, 239, 0.7);
  transform: translateY(-2px);
}

.ops-control-home,
.ops-control-detail {
  display: grid;
  gap: 18px;
}

.ops-control-home[hidden],
.ops-control-detail[hidden] {
  display: none !important;
}

.ops-control-hub-grid {
  display: grid;
  grid-template-columns: minmax(360px, 1fr) repeat(2, minmax(220px, 0.36fr));
  gap: 18px;
}

.ops-control-spotlight {
  min-height: 220px;
  display: grid;
  align-content: end;
  gap: 12px;
  overflow: hidden;
  background:
    radial-gradient(circle at 12% 12%, rgba(91, 95, 239, 0.28), transparent 34%),
    radial-gradient(circle at 92% 12%, rgba(45, 225, 139, 0.16), transparent 28%),
    linear-gradient(145deg, rgba(24, 29, 44, 0.98), rgba(10, 14, 23, 0.98));
}

.ops-control-spotlight h2 {
  max-width: 780px;
  margin: 0;
  font-size: clamp(2rem, 4vw, 4.6rem);
  line-height: 0.95;
}

.ops-control-spotlight p,
.ops-control-stat-card p,
.ops-control-detail-hero p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.ops-control-stat-card {
  min-height: 220px;
  display: grid;
  align-content: space-between;
  gap: 16px;
  background:
    linear-gradient(145deg, rgba(21, 26, 37, 0.96), rgba(13, 17, 25, 0.96)),
    rgba(15, 19, 27, 0.92);
}

.ops-control-stat-card strong {
  display: block;
  color: var(--text);
  font-size: clamp(2.6rem, 5vw, 5.2rem);
  line-height: 0.9;
}

.ops-control-list-card {
  display: grid;
  gap: 16px;
  background:
    linear-gradient(145deg, rgba(21, 26, 37, 0.96), rgba(13, 17, 25, 0.96)),
    rgba(15, 19, 27, 0.92);
}

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

.ops-control-pill {
  min-height: 172px;
  display: grid;
  align-content: space-between;
  gap: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(145deg, rgba(28, 33, 47, 0.96), rgba(15, 19, 29, 0.94)),
    rgba(24, 28, 38, 0.86);
  color: var(--text);
  padding: 16px;
  text-align: left;
  font: inherit;
  cursor: pointer;
}

.ops-control-pill strong {
  color: var(--text);
  font-size: 1.14rem;
}

.ops-control-pill span,
.ops-control-pill em,
.ops-control-pill i {
  font-style: normal;
}

.ops-control-pill span {
  color: var(--muted);
  font-size: 0.92rem;
}

.ops-control-pill-top,
.ops-control-pill-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.ops-control-pill-top em {
  min-width: 70px;
  padding: 8px 10px;
  border: 1px solid rgba(91, 95, 239, 0.32);
  border-radius: 999px;
  color: var(--brand-2);
  text-align: center;
  text-transform: uppercase;
  font-size: 0.72rem;
  font-weight: 950;
  letter-spacing: 0.06em;
}

.ops-control-pill-meta b {
  color: var(--text);
  font-size: 1.45rem;
}

.ops-control-pill-meta i {
  color: var(--muted);
  font-weight: 950;
}

.ops-control-pill-meta i.positive {
  color: var(--positive);
}

.ops-control-pill-meta i.negative {
  color: var(--negative);
}

.ops-control-pill-open {
  width: fit-content;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(91, 95, 239, 0.16);
  color: var(--brand-2) !important;
  font-weight: 950;
}

.ops-control-pill.active,
.ops-control-pill:hover {
  border-color: rgba(91, 95, 239, 0.72);
  background: rgba(91, 95, 239, 0.18);
}

.ops-control-detail-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 18px;
  background:
    radial-gradient(circle at 100% 0%, rgba(91, 95, 239, 0.24), transparent 32%),
    linear-gradient(145deg, rgba(21, 26, 37, 0.96), rgba(13, 17, 25, 0.96));
}

.ops-control-detail-hero h2 {
  margin: 10px 0 8px;
  font-size: clamp(2rem, 4vw, 4rem);
  line-height: 0.96;
}

.ops-control-back {
  width: fit-content;
  border: 0;
  background: transparent;
  color: var(--brand-2);
  padding: 0 0 12px;
  font: inherit;
  font-weight: 950;
  cursor: pointer;
}

.ops-detail-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(160px, 1fr));
  gap: 12px;
}

.ops-new-control-form {
  display: grid;
  gap: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.ops-new-control-form[hidden] {
  display: none;
}

.ops-new-control-form label {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-weight: 900;
}

.ops-new-control-form input,
.ops-new-control-form select {
  min-height: 46px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #151922;
  color: var(--text);
  padding: 0 14px;
  font: inherit;
  font-weight: 850;
}

.ops-market-kpis .mini-metric small.positive,
.ops-market-kpis .mini-metric .positive {
  color: var(--positive);
}

.ops-market-kpis .mini-metric small.negative,
.ops-market-kpis .mini-metric .negative {
  color: var(--negative);
}

.ops-market-layout {
  grid-template-columns: minmax(420px, 0.72fr) minmax(520px, 1fr);
  align-items: start;
}

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

.ops-market-form input,
.ops-market-form select,
.ops-chart-card select {
  min-height: 46px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #151922;
  color: var(--text);
  padding: 0 14px;
  font: inherit;
  font-weight: 850;
}

.ops-market-form input[readonly] {
  color: var(--muted);
  background: rgba(21, 25, 34, 0.72);
  cursor: not-allowed;
}

.ops-field-help {
  margin: -4px 0 0;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.45;
}

.ops-enable-check {
  width: fit-content;
  justify-self: end;
}

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

.ops-chart-stage {
  min-height: 360px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 1px solid rgba(79, 91, 126, 0.5);
  border-radius: 8px;
  background:
    radial-gradient(circle at 70% 18%, rgba(45, 225, 139, 0.12), transparent 30%),
    #090d14;
}

.ops-chart-stage svg {
  width: 100%;
  min-height: 330px;
}

.ops-tick-list {
  max-height: 330px;
}

.ops-tick-record {
  min-width: 0;
  grid-template-columns: minmax(0, 1fr) auto;
}

.ops-tick-record small {
  text-align: right;
}

@media (max-width: 1180px) {
  .admin-hero,
  .admin-grid,
  .admin-data-grid,
  .ops-hero,
  .ops-control-hub-grid,
  .ops-control-detail-hero,
  .ops-gateway-grid,
  .ops-market-layout {
    grid-template-columns: 1fr;
  }

  .admin-kpi-grid,
  .ops-console-grid,
  .ops-control-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .admin-record {
    min-width: 680px;
  }

  .admin-kyc-record {
    min-width: 760px;
    grid-template-columns: 1fr;
  }
}

@media (max-width: 700px) {
  .admin-shell {
    width: min(1600px, calc(100% - 28px));
    padding-top: 18px;
  }

  .admin-hero h1 {
    font-size: 3.2rem;
  }

  .admin-kpi-grid,
  .admin-key-actions,
  .admin-filter-actions,
  .admin-form-row,
  .admin-form-row:has(> :nth-child(3)),
  .admin-form-row-tight {
    grid-template-columns: 1fr;
  }

  .admin-table {
    max-height: none;
    padding-right: 0;
  }

  .admin-record,
  .admin-record-scan,
  .admin-kyc-record,
  .admin-kyc-files {
    min-width: 0;
    grid-template-columns: 1fr;
  }

  .admin-record span,
  .admin-record small {
    white-space: normal;
  }

  .ops-shell {
    width: min(1520px, calc(100% - 28px));
  }

  .ops-console-grid,
  .ops-control-list,
  .ops-security-list {
    grid-template-columns: 1fr;
  }

  .ops-enable-check {
    justify-self: start;
  }

  .ops-detail-actions {
    grid-template-columns: 1fr;
  }

  .ops-chart-stage {
    min-height: 280px;
  }
}

.popup-overlay {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 20px;
  background: rgba(0, 0, 0, 0.68);
}

.popup-content {
  position: relative;
  width: min(420px, 100%);
  padding: 24px;
  border-radius: 8px;
  background: #ffffff;
  color: #111111;
  box-shadow: var(--shadow);
}

.close-btn {
  position: absolute;
  top: 12px;
  right: 16px;
  color: #555555;
  font-size: 24px;
  font-weight: 800;
  cursor: pointer;
}

.buy-card h2,
.wallet-title {
  margin-bottom: 8px;
  color: #111111;
  text-align: center;
}

.buy-card p,
.wallet-sub,
.secure {
  color: #555555;
  text-align: center;
}

.form-group {
  margin-bottom: 12px;
}

.form-group label {
  display: block;
  margin-bottom: 5px;
  color: #333333;
  font-size: 0.88rem;
  font-weight: 700;
}

.form-group input {
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid #d7d7d7;
  border-radius: 8px;
  background: #fafafa;
  color: #111111;
}

.buy-card button,
.wallet-option {
  width: 100%;
  min-height: 46px;
  border: 0;
  border-radius: 8px;
  cursor: pointer;
}

.wallet-btn {
  margin-top: 4px;
  background: #eeeeee;
  color: #222222;
}

.buy-btn {
  margin-top: 8px;
  background: #0a7cff;
  color: #ffffff;
  font-weight: 800;
}

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

.wallet-option {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 14px;
  border: 1px solid #dddddd;
  background: #ffffff;
  color: #111111;
  text-align: left;
}

.wallet-option img {
  width: 26px;
  height: 26px;
}

@media (max-width: 920px) {
  .nav {
    flex-wrap: wrap;
    padding: 14px 0;
  }

  .nav-links {
    order: 3;
    width: 100%;
    justify-content: space-between;
    gap: 8px;
  }

  .hero-grid,
  .split-layout,
  .token-grid,
  .market-grid,
  .news-grid,
  .live-grid,
  .subject-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    padding-top: 58px;
  }

  .market-grid {
    align-items: initial;
  }

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

  .app-layout.sidebar-collapsed {
    grid-template-columns: 1fr;
  }

  .app-sidebar {
    position: sticky;
    top: 0;
    z-index: 80;
    height: auto;
    align-items: stretch;
    gap: 12px;
    overflow: visible;
    padding: 12px 14px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
    background: rgba(11, 13, 18, 0.96);
    backdrop-filter: blur(18px);
  }

  .sidebar-header {
    justify-content: space-between;
  }

  .sidebar-collapse-toggle {
    display: none;
  }

  .app-nav {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 4px;
    scrollbar-width: none;
  }

  .app-nav::-webkit-scrollbar {
    display: none;
  }

  .app-nav a {
    flex: 0 0 auto;
    border-color: var(--line);
    background: rgba(255, 255, 255, 0.035);
    white-space: nowrap;
  }

  .app-layout.sidebar-collapsed .app-sidebar {
    align-items: stretch;
    padding-inline: 16px;
  }

  .app-layout.sidebar-collapsed .sidebar-header {
    flex-direction: row;
    gap: 10px;
  }

  .app-layout.sidebar-collapsed .app-brand span {
    display: inline;
  }

  .app-layout.sidebar-collapsed .sidebar-top-actions,
  .app-layout.sidebar-collapsed .sidebar-icon-row {
    flex-direction: row;
  }

  .app-layout.sidebar-collapsed .app-nav {
    width: auto;
  }

  .app-layout.sidebar-collapsed .app-nav a {
    display: block;
    width: auto;
    height: auto;
    margin: 0;
    padding: 10px 12px;
    font-size: inherit;
  }

  .app-layout.sidebar-collapsed .app-nav-icon {
    display: none;
  }

  .app-layout.sidebar-collapsed .app-nav-label {
    display: inline;
  }

  .app-layout.sidebar-collapsed .sidebar-profile,
  .app-layout.sidebar-collapsed .sidebar-actions {
    display: grid;
  }

  .app-layout.sidebar-collapsed .sidebar-actions {
    width: auto;
  }

  .app-layout.sidebar-collapsed .sidebar-actions .btn {
    width: 100%;
    height: auto;
    min-height: 42px;
    padding: 0 18px;
  }

  .app-layout.sidebar-collapsed .sidebar-action-icon {
    display: none;
  }

  .app-layout.sidebar-collapsed .sidebar-action-label {
    display: inline;
  }

  .app-layout.sidebar-collapsed .sidebar-bottom-tools {
    margin: -12px 0 -14px 8px;
  }

  .sidebar-return {
    margin-top: 0;
  }

  .sidebar-profile {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 0;
    padding: 10px 12px;
  }

  .sidebar-profile span,
  .sidebar-profile strong {
    display: inline;
  }

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

  .sidebar-actions .btn {
    min-height: 40px;
  }

  .sidebar-actions .btn-ghost {
    display: flex;
  }

  .app-topbar,
  .account-overview,
  .account-kpi-grid,
  .account-grid,
  .live-account-overview,
  .live-account-grid,
  .live-transfer-grid,
  .markets-layout,
  .market-intel-grid,
  .market-feature-grid,
  .market-columns,
  .asset-detail-layout,
  .research-page-grid,
  .settings-grid,
  .settings-hub-layout,
  .settings-control-grid,
  .settings-ticket-form,
  .public-support-form,
  .settings-help-grid,
  .settings-auth-setup,
  .kyc-guidance-grid,
  .kyc-review-form,
  .auth-shell,
  .demo-step-grid,
  .research-columns {
    grid-template-columns: 1fr;
  }

  .research-news-feature,
  .research-news-facts,
  .research-plan-grid,
  .profile-hero {
    grid-template-columns: 1fr;
  }

  .profile-action-list {
    grid-template-columns: 1fr;
  }

  .live-form-grid,
  .profile-combined-list,
  .kyc-face-actions,
  .kyc-submit-row,
  .live-wire-box,
  .live-holdings-table .asset-table-row {
    grid-template-columns: 1fr;
  }

  .live-panel-heading,
  .live-address-box,
  .live-action-row {
    grid-template-columns: 1fr;
  }

  .live-panel-heading {
    display: grid;
  }

  .live-panel-heading strong {
    text-align: left;
  }

  .profile-hero-actions {
    justify-content: flex-start;
  }

  .research-news-carousel,
  .research-news-feature,
  .research-news-media,
  .research-news-media img {
    min-height: 0;
  }

  .research-news-media {
    aspect-ratio: 16 / 10;
  }

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

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

  .trade-ticket {
    grid-row: auto;
  }

  .app-topbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .app-topbar .topbar-actions {
    width: 100%;
  }
}

@media (max-width: 640px) {
  html,
  body {
    max-width: 100%;
    overflow-x: hidden;
  }

  .container {
    width: min(100% - 28px, 1120px);
  }

  .nav-actions {
    width: 100%;
  }

  .nav-actions .btn {
    flex: 1;
  }

  .nav-links {
    overflow-x: auto;
    justify-content: flex-start;
    padding-bottom: 4px;
  }

  h1 {
    font-size: 3rem;
  }

  h2 {
    font-size: 2rem;
  }

  .hero-actions,
  .account-topbar,
  .dashboard-header,
  .command-header,
  .footer-grid,
  .allocation-key {
    align-items: stretch;
    flex-direction: column;
  }

  .hero-actions .btn {
    width: 100%;
  }

  .chart-container {
    height: 360px;
  }

  .gt-stats,
  .actions-grid {
    grid-template-columns: 1fr;
  }

  .news-card {
    min-height: auto;
  }

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

  .news-feature img,
  .news-feature-image {
    min-height: 280px;
  }

  .news-feature-copy {
    padding: 28px;
  }

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

  .auth-shell {
    width: min(100% - 28px, 1120px);
    min-height: auto;
    padding: 32px 0;
  }

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

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

  .auth-phone-input {
    grid-template-columns: minmax(112px, 0.38fr) minmax(0, 1fr);
  }

  .subject-card {
    min-height: auto;
  }

  .app-layout,
  .app-layout.sidebar-collapsed {
    display: block;
    min-height: 100dvh;
  }

  body.account-body {
    min-height: 100dvh;
    padding-bottom: calc(76px + env(safe-area-inset-bottom));
  }

  .app-main {
    width: 100%;
    min-width: 0;
    padding: 22px 14px calc(96px + env(safe-area-inset-bottom));
  }

  .app-sidebar,
  .app-layout.sidebar-collapsed .app-sidebar {
    position: sticky;
    top: 0;
    z-index: 150;
    display: flex;
    align-items: center;
    flex-direction: row;
    flex-wrap: nowrap;
    gap: 8px;
    width: 100%;
    height: calc(58px + env(safe-area-inset-top));
    max-height: none;
    padding: calc(8px + env(safe-area-inset-top)) 12px 8px;
    overflow: visible;
    border-right: 0;
    border-bottom: 1px solid rgba(196, 206, 232, 0.14);
    background: rgba(7, 10, 16, 0.94);
    backdrop-filter: none;
  }

  .sidebar-bottom-tools,
  .app-layout.sidebar-collapsed .sidebar-bottom-tools {
    position: static;
    order: 3;
    flex: 0 0 auto;
    width: auto;
    margin: 0;
  }

  .sidebar-bottom-tools .sidebar-icon-link,
  .app-layout.sidebar-collapsed .sidebar-bottom-tools .sidebar-icon-link {
    width: 38px;
    height: 38px;
  }

  .sidebar-header,
  .app-layout.sidebar-collapsed .sidebar-header {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    order: 1;
    flex: 1 1 auto;
    min-width: 0;
    gap: 10px;
  }

  .app-brand,
  .app-layout.sidebar-collapsed .app-brand {
    min-width: 0;
    padding: 0;
  }

  .app-brand span,
  .app-layout.sidebar-collapsed .app-brand span {
    display: inline;
    overflow: hidden;
    font-size: 1rem;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .app-logo {
    width: 32px;
    height: 32px;
  }

  .sidebar-top-actions,
  .app-layout.sidebar-collapsed .sidebar-top-actions,
  .sidebar-icon-row,
  .app-layout.sidebar-collapsed .sidebar-icon-row {
    flex-direction: row;
    gap: 6px;
  }

  .sidebar-collapse-toggle {
    display: none;
  }

  .sidebar-top-actions {
    flex: 0 0 auto;
    margin-left: auto;
  }

  .sidebar-icon-link {
    width: 38px;
    height: 38px;
  }

  .app-nav,
  .app-layout.sidebar-collapsed .app-nav {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 160;
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    width: 100%;
    gap: 2px;
    padding: 6px 6px calc(6px + env(safe-area-inset-bottom));
    border-top: 1px solid rgba(196, 206, 232, 0.14);
    background: rgba(7, 10, 16, 0.96);
    box-shadow: 0 -18px 44px rgba(0, 0, 0, 0.38);
    backdrop-filter: blur(18px);
  }

  .app-nav::-webkit-scrollbar {
    display: none;
  }

  .app-nav a,
  .app-layout.sidebar-collapsed .app-nav a {
    width: 100%;
    min-width: 0;
    height: 58px;
    min-height: 58px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    margin: 0;
    padding: 4px 2px;
    border: 0;
    border-radius: 14px;
    background: transparent;
    color: var(--muted);
    font-size: 0.64rem;
    line-height: 1.1;
    white-space: nowrap;
  }

  .app-nav a.active,
  .app-nav a:hover,
  .app-layout.sidebar-collapsed .app-nav a.active,
  .app-layout.sidebar-collapsed .app-nav a:hover {
    background: rgba(91, 91, 255, 0.18);
    color: var(--text);
  }

  .app-nav-icon,
  .app-layout.sidebar-collapsed .app-nav-icon {
    display: inline-flex;
    width: 22px;
    height: 22px;
  }

  .app-nav-icon svg {
    width: 22px;
    height: 22px;
  }

  .app-nav-label,
  .app-layout.sidebar-collapsed .app-nav-label {
    display: inline;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .sidebar-profile,
  .app-layout.sidebar-collapsed .sidebar-profile {
    display: none;
  }

  .sidebar-actions,
  .app-layout.sidebar-collapsed .sidebar-actions {
    order: 2;
    display: flex;
    flex-direction: row;
    align-items: center;
    flex: 0 0 auto;
    gap: 6px;
    width: auto;
    margin: 0;
  }

  .sidebar-actions .btn,
  .app-layout.sidebar-collapsed .sidebar-actions .btn {
    width: 38px;
    height: 38px;
    min-height: 38px;
    margin: 0;
    padding: 0;
    border-radius: 999px;
    font-size: 0;
  }

  .sidebar-action-icon,
  .app-layout.sidebar-collapsed .sidebar-action-icon {
    display: inline-flex;
  }

  .sidebar-action-icon svg {
    width: 20px;
    height: 20px;
  }

  .sidebar-action-label,
  .app-layout.sidebar-collapsed .sidebar-action-label {
    display: none;
  }

  .app-topbar h1 {
    font-size: clamp(2.45rem, 13vw, 3.35rem);
    line-height: 0.96;
  }

  .topbar-actions {
    width: 100%;
  }

  .topbar-actions .btn {
    flex: 1;
  }

  .app-card,
  .balance-card {
    padding: 16px;
  }

  .card-heading,
  .balance-card-top,
  .live-panel-heading,
  .profile-hero-actions {
    align-items: flex-start;
    flex-direction: column;
  }

  .card-heading .status-pill,
  .balance-card-top .status-pill,
  .account-mode-stack {
    align-self: flex-start;
  }

  .asset-table,
  .holdings-card .asset-table,
  .live-holdings-table,
  .overview-activity-table {
    overflow-x: visible;
  }

  .asset-table-row,
  .holdings-card .asset-table-row,
  .live-holdings-table .asset-table-row,
  .overview-activity-table .asset-table-row,
  .wallet-subasset-row,
  .watchlist-row {
    grid-template-columns: 1fr;
    min-width: 0;
    width: 100%;
    margin-left: 0;
    gap: 8px;
    align-items: start;
  }

  .asset-table-row.head,
  .holdings-card .asset-table-row.head,
  .live-holdings-table .asset-table-row.head,
  .overview-activity-table .asset-table-row.head {
    display: none;
  }

  .wallet-subasset-row .wallet-asset-name,
  .watchlist-row > span:first-child {
    grid-template-columns: 1fr;
    justify-items: start;
  }

  .wallet-subasset-row .asset-logo-small,
  .watchlist-row .asset-logo {
    justify-self: start;
  }

  .wallet-menu-cell {
    width: 100%;
    justify-content: space-between;
  }

  .wallet-asset-menu,
  .asset-row-menu {
    left: 0;
    right: auto;
    width: min(240px, calc(100vw - 48px));
  }

  .market-search-box {
    min-height: 58px;
    padding: 0 14px;
  }

  .market-card-grid,
  .asset-chart-stats {
    grid-template-columns: 1fr;
  }

  .market-card {
    min-height: 260px;
  }

  .wallet-category-assets a,
  .wallet-category-assets button {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .wallet-category-assets strong,
  .wallet-category-assets small {
    justify-self: start;
    grid-column: 2;
  }

  .spotlight-price-row,
  .asset-hero-row,
  .asset-balance-row {
    align-items: flex-start;
    flex-direction: column;
  }

  .asset-price-panel {
    text-align: left;
  }

  .asset-action-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .wallet-action-grid,
  .wallet-action-grid.wallet-action-grid-crypto,
  .live-action-row {
    grid-template-columns: 1fr;
  }

  .wallet-action-grid.wallet-action-grid-crypto > :nth-child(-n+3),
  .wallet-action-grid.wallet-action-grid-crypto > :nth-child(n+4) {
    grid-column: auto;
  }

  .wallet-detail-list div,
  .wallet-record-row,
  .settings-list > div,
  .settings-item {
    align-items: flex-start;
    flex-direction: column;
  }

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

  .wallet-detail-list strong,
  .settings-list strong,
  .profile-info-card .settings-list strong,
  .profile-combined-list strong {
    max-width: 100%;
    text-align: left;
  }

  .profile-hero {
    align-items: start;
  }

  .profile-avatar {
    width: 72px;
    height: 72px;
  }

  .profile-initials {
    font-size: 1.55rem;
  }

  .profile-hero-actions,
  .profile-hero-actions .btn {
    width: 100%;
  }

  .settings-hub-layout {
    gap: 14px;
  }

  .settings-hub-layout:not(.settings-mobile-detail-open) .settings-detail-stack {
    display: none;
  }

  .settings-hub-layout.settings-mobile-detail-open .settings-menu-card {
    display: none;
  }

  .settings-mobile-back {
    min-height: 44px;
    width: fit-content;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(196, 206, 232, 0.18);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.055);
    color: var(--text);
    padding: 0 18px;
    font: inherit;
    font-weight: 950;
  }

  .settings-menu-row {
    min-height: 64px;
    grid-template-columns: 36px minmax(0, 1fr) 14px;
    gap: 10px;
  }

  .settings-detail-panel {
    padding: 16px;
  }

  .settings-switch-list .settings-item {
    align-items: center;
    flex-direction: row;
    justify-content: space-between;
  }

  .settings-switch-list .settings-item > span {
    flex: 1 1 auto;
    padding-right: 10px;
  }

  .settings-switch-list .settings-switch {
    margin-left: auto;
  }

  .settings-auth-setup,
  .settings-support-grid {
    grid-template-columns: 1fr;
  }

  .live-wallet-modal {
    align-items: start;
    padding: 10px;
  }

  .live-wallet-modal-card,
  .live-funding-modal-card,
  .profile-kyc-modal-card,
  .auth-modal-panel {
    width: min(100%, calc(100vw - 20px));
    max-height: calc(100dvh - 20px);
  }

  .live-address-box {
    grid-template-columns: 1fr;
  }

  .live-address-box button {
    width: 100%;
  }

  .kyc-face-stage {
    max-width: 100%;
  }

  .kyc-face-actions,
  .kyc-submit-row {
    grid-template-columns: 1fr;
  }

  .asset-line-chart {
    min-height: 280px;
  }

  .asset-line-chart svg {
    min-height: 260px;
  }

  .market-mover-list a,
  .compact-market-list a,
  .asset-activity-list div {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .market-mover-list em,
  .compact-market-list small {
    justify-self: start;
  }

  .balance-card-top {
    flex-direction: column;
  }

  .vision-steps {
    grid-template-columns: repeat(2, 1fr);
  }

  .watchlist div {
    grid-template-columns: 0.5fr 1fr auto;
  }
}
