:root {
  color-scheme: dark;
}

body {
  margin: 0;
  font-family: "Inter", "Segoe UI", "Roboto", sans-serif;
  background: #0f1115;
  color: #e7ebf7;
}

body.nexus-terminal-body {
  background: #050505;
  color: #e0e0e0;
  --lux-bg: #050505;
  --lux-bg-soft: #0a0a0a;
  --lux-surface: rgba(255, 255, 255, 0.03);
  --lux-surface-elev: rgba(255, 255, 255, 0.05);
  --lux-border: rgba(212, 175, 55, 0.18);
  --lux-border-strong: rgba(212, 175, 55, 0.35);
  --lux-text: #e0e0e0;
  --lux-text-muted: rgba(255, 255, 255, 0.62);
  --lux-accent: #d4af37;
  --lux-accent-strong: #aa8e39;
  --lux-danger: #ff4444;
}

body.nexus-terminal-body .exchange-layout {
  font-family: "Manrope", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
}

body.nexus-terminal-body .exchange-sidebar {
  background: rgba(5, 5, 5, 0.8);
  border-right-color: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(10px);
}

body.nexus-terminal-body .flash-stack {
  position: fixed;
  top: 16px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1000;
  max-width: min(920px, calc(100% - 24px));
}

body.nexus-terminal-body .flash {
  border-radius: 12px;
  padding: 12px 14px;
  margin-bottom: 8px;
  backdrop-filter: blur(10px);
  background: rgba(5, 5, 5, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--lux-text);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.55);
}

body.nexus-terminal-body .flash-notice {
  border-color: rgba(212, 175, 55, 0.35);
}

body.nexus-terminal-body .flash-alert {
  border-color: rgba(255, 68, 68, 0.3);
}

body.nexus-terminal-body .brand-block strong {
  font-family: "Cinzel", serif;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #fff;
}

body.nexus-terminal-body .brand-block span {
  color: var(--lux-text-muted);
}

body.nexus-terminal-body .side-nav a {
  color: rgba(255, 255, 255, 0.72);
  font-size: 12px;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  border-radius: 10px;
}

body.nexus-terminal-body .side-nav a.active,
body.nexus-terminal-body .side-nav a:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.06);
  color: #fff;
}

body.nexus-terminal-body .panel,
body.nexus-terminal-body .compact-panel,
body.nexus-terminal-body .market-strip {
  background: rgba(255, 255, 255, 0.03);
  border-color: rgba(212, 175, 55, 0.18);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(10px);
}

body.nexus-terminal-body .pair-block h2 {
  color: #fff;
}

body.nexus-terminal-body .ticker-stat span {
  letter-spacing: 1.2px;
  text-transform: uppercase;
  font-size: 10px;
  color: rgba(255, 255, 255, 0.55);
}

body.nexus-terminal-body .intervals span {
  border-color: rgba(212, 175, 55, 0.18);
  background: rgba(255, 255, 255, 0.03);
}

body.nexus-terminal-body .intervals span.active {
  border-color: rgba(212, 175, 55, 0.45);
  background: rgba(212, 175, 55, 0.12);
  color: #fff;
}

/* ===== Nexus app shell (mobile) ===== */
body.nexus-terminal-body .nx-app-topbar,
body.nexus-admin .nx-app-topbar {
  display: none;
}

body.nexus-terminal-body .nx-app-overlay,
body.nexus-admin .nx-app-overlay {
  display: none;
}

body.nexus-terminal-body .nx-app-sidebar-close,
body.nexus-admin .nx-app-sidebar-close {
  display: none;
}

@media (max-width: 960px) {
  body.nexus-terminal-body .exchange-layout,
  body.nexus-admin .exchange-layout {
    grid-template-columns: 1fr;
    grid-template-rows: auto 1fr;
  }

  body.nexus-terminal-body .nx-app-topbar,
  body.nexus-admin .nx-app-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    position: sticky;
    top: 0;
    z-index: 65;
    padding: 12px 14px;
    background: rgba(5, 5, 5, 0.85);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    grid-column: 1 / -1;
  }

  body.nexus-terminal-body .nx-app-title,
  body.nexus-admin .nx-app-title {
    font-family: "Cinzel", serif;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: #fff;
    font-size: 14px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  body.nexus-terminal-body .nx-app-home,
  body.nexus-admin .nx-app-home {
    text-decoration: none;
    font-size: 10px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: rgba(212, 175, 55, 0.9);
    border: 1px solid rgba(212, 175, 55, 0.25);
    padding: 8px 10px;
    border-radius: 12px;
    background: rgba(212, 175, 55, 0.06);
    white-space: nowrap;
  }

  body.nexus-terminal-body .nx-app-home:hover,
  body.nexus-admin .nx-app-home:hover {
    background: rgba(212, 175, 55, 0.12);
    color: #fff;
  }

  body.nexus-terminal-body .nx-app-burger,
  body.nexus-admin .nx-app-burger {
    width: 44px;
    height: 44px;
    border-radius: 14px;
    border: 1px solid rgba(212, 175, 55, 0.28);
    background: rgba(255, 255, 255, 0.02);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  body.nexus-terminal-body .nx-app-burger:hover,
  body.nexus-admin .nx-app-burger:hover {
    background: rgba(212, 175, 55, 0.08);
  }

  body.nexus-terminal-body .nx-app-burger-lines,
  body.nexus-admin .nx-app-burger-lines {
    width: 22px;
    height: 16px;
    display: grid;
    gap: 4px;
    align-content: center;
  }

  body.nexus-terminal-body .nx-app-burger-lines span,
  body.nexus-admin .nx-app-burger-lines span {
    height: 2px;
    background: rgba(212, 175, 55, 0.9);
    border-radius: 999px;
    transition: transform 0.2s ease, opacity 0.2s ease;
  }

  body.nexus-terminal-body.nx-app-menu-open,
  body.nexus-admin.nx-app-menu-open {
    overflow: hidden;
  }

  body.nexus-terminal-body.nx-app-menu-open .nx-app-burger-lines span:nth-child(1),
  body.nexus-admin.nx-app-menu-open .nx-app-burger-lines span:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
  }

  body.nexus-terminal-body.nx-app-menu-open .nx-app-burger-lines span:nth-child(2),
  body.nexus-admin.nx-app-menu-open .nx-app-burger-lines span:nth-child(2) {
    opacity: 0;
  }

  body.nexus-terminal-body.nx-app-menu-open .nx-app-burger-lines span:nth-child(3),
  body.nexus-admin.nx-app-menu-open .nx-app-burger-lines span:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
  }

  body.nexus-terminal-body .nx-app-overlay,
  body.nexus-admin .nx-app-overlay {
    position: fixed;
    inset: 0;
    z-index: 69;
    background: rgba(0, 0, 0, 0.62);
    backdrop-filter: blur(6px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
  }

  body.nexus-terminal-body.nx-app-menu-open .nx-app-overlay,
  body.nexus-admin.nx-app-menu-open .nx-app-overlay {
    opacity: 1;
    pointer-events: auto;
    display: block;
  }

  body.nexus-terminal-body .exchange-sidebar,
  body.nexus-admin .exchange-sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    width: min(340px, 88vw);
    z-index: 70;
    transform: translateX(-105%);
    transition: transform 0.22s ease;
    overflow-y: auto;
    padding-top: 16px;
  }

  body.nexus-terminal-body .side-nav,
  body.nexus-admin .side-nav {
    flex-direction: column;
    overflow: visible;
    padding-bottom: 0;
  }

  body.nexus-terminal-body .side-nav a,
  body.nexus-admin .side-nav a {
    white-space: normal;
  }

  body.nexus-terminal-body.nx-app-menu-open .exchange-sidebar,
  body.nexus-admin.nx-app-menu-open .exchange-sidebar {
    transform: translateX(0);
  }

  body.nexus-terminal-body .nx-app-sidebar-close,
  body.nexus-admin .nx-app-sidebar-close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.03);
    color: rgba(255, 255, 255, 0.85);
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
    margin: 0 0 10px auto;
  }

  body.nexus-terminal-body .exchange-main,
  body.nexus-admin .exchange-main {
    grid-column: 1 / -1;
    padding: 14px;
  }

  body.nexus-terminal-body .grid.two-col,
  body.nexus-terminal-body .grid.three-col,
  body.nexus-terminal-body .grid.four-col,
  body.nexus-admin .grid.two-col,
  body.nexus-admin .grid.three-col,
  body.nexus-admin .grid.four-col {
    grid-template-columns: 1fr;
  }

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

  body.nexus-terminal-body .market-strip,
  body.nexus-admin .market-strip {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  body.nexus-terminal-body .panel,
  body.nexus-admin .panel {
    overflow-x: auto;
  }

  body.nexus-terminal-body .panel table,
  body.nexus-admin .panel table {
    min-width: 620px;
  }

  body.nexus-terminal-body .nx-wallets-tab .panel table,
  body.nexus-admin .nx-wallets-tab .panel table {
    min-width: 0;
    table-layout: fixed;
  }

  body.nexus-terminal-body .panel table.dense,
  body.nexus-admin .panel table.dense {
    min-width: 420px;
  }

  body.nexus-terminal-body .panel th,
  body.nexus-terminal-body .panel td,
  body.nexus-admin .panel th,
  body.nexus-admin .panel td {
    padding: 10px 12px;
  }

  body.nexus-terminal-body .nx-app-footer,
  body.nexus-admin .nx-app-footer {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: grid;
  gap: 10px;
}

body.nexus-terminal-body .nx-app-who,
body.nexus-admin .nx-app-who {
  display: grid;
  gap: 4px;
  color: rgba(255, 255, 255, 0.72);
}

body.nexus-terminal-body .nx-app-who strong,
body.nexus-admin .nx-app-who strong {
  color: #fff;
  font-family: "Cinzel", serif;
  letter-spacing: 1px;
  text-transform: uppercase;
}

body.nexus-terminal-body .nx-app-who span,
body.nexus-admin .nx-app-who span {
  font-size: 12px;
}

body.nexus-terminal-body .nx-app-logout,
body.nexus-admin .nx-app-logout {
  width: 100%;
  border: 1px solid rgba(212, 175, 55, 0.55);
  background: rgba(212, 175, 55, 0.10);
  color: rgba(212, 175, 55, 0.95);
  border-radius: 12px;
  padding: 11px 12px;
  font-weight: 800;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  cursor: pointer;
}

body.nexus-terminal-body .nx-app-logout:hover,
body.nexus-admin .nx-app-logout:hover {
  background: rgba(212, 175, 55, 1);
  color: #000;
}

body.nexus-terminal-body .nx-app-link,
body.nexus-admin .nx-app-link {
  text-decoration: none;
  font-size: 10px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.10);
  background: rgba(255, 255, 255, 0.02);
  padding: 10px 12px;
  border-radius: 12px;
  text-align: center;
}

body.nexus-terminal-body .nx-app-link:hover,
body.nexus-admin .nx-app-link:hover {
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
}

}

body.nexus-terminal-body .chart-placeholder {
  border-color: rgba(255, 255, 255, 0.08);
  background:
    radial-gradient(circle at 20% 15%, rgba(212, 175, 55, 0.12), rgba(212, 175, 55, 0) 55%),
    repeating-linear-gradient(
      to right,
      rgba(255, 255, 255, 0.06) 0,
      rgba(255, 255, 255, 0.06) 1px,
      transparent 1px,
      transparent 42px
    ),
    repeating-linear-gradient(
      to bottom,
      rgba(255, 255, 255, 0.06) 0,
      rgba(255, 255, 255, 0.06) 1px,
      transparent 1px,
      transparent 34px
    );
}

.exchange-layout {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 240px 1fr;
}

.exchange-sidebar {
  border-right: 1px solid #242a33;
  background: #161a20;
  padding: 24px 16px;
}

.brand-block {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 18px;
}

.brand-block strong {
  font-size: 1.05rem;
  color: #f4c542;
}

.brand-block span {
  color: #8f97a8;
  font-size: 0.85rem;
}

.side-nav {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.side-nav a {
  color: #adb5c5;
  text-decoration: none;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid transparent;
}

.side-nav a.active,
.side-nav a:hover {
  background: #232a34;
  border-color: #3a434f;
  color: #ffffff;
}

/* App shell footer (desktop + mobile) */
.nx-app-footer {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid #242a33;
  display: grid;
  gap: 10px;
}

.nx-app-who {
  display: grid;
  gap: 4px;
  color: #adb5c5;
}

.nx-app-who strong {
  color: #ffffff;
}

.nx-app-who span {
  font-size: 12px;
  color: #8f97a8;
}

.nx-app-footer form,
.nx-app-footer .button_to {
  margin: 0;
  width: 100%;
}

.nx-app-logout {
  width: 100%;
  border: 1px solid #3a434f;
  background: #232a34;
  color: #ffffff;
  border-radius: 10px;
  padding: 10px 12px;
  cursor: pointer;
}

.nx-app-logout:hover {
  border-color: #f4c542;
  color: #f4c542;
}

.nx-app-link {
  display: block;
  text-decoration: none;
  color: #adb5c5;
  border: 1px solid #3a434f;
  background: #232a34;
  padding: 10px 12px;
  border-radius: 10px;
  text-align: center;
}

.nx-app-link:hover {
  border-color: #f4c542;
  color: #f4c542;
}

.exchange-main {
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.page-header h1 {
  margin: 0;
  font-size: 1.6rem;
}

.page-header p {
  margin: 6px 0 0;
  color: #9199a8;
}

.grid {
  display: grid;
  gap: 16px;
}

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

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

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

.panel {
  border: 1px solid #2d3540;
  border-radius: 14px;
  background: #161b22;
  padding: 14px;
}

.panel h3,
.panel h4 {
  margin: 0 0 12px;
}

.panel.stat {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.panel.stat strong {
  font-size: 1.3rem;
}

.panel.stat span {
  color: #9199a8;
  font-size: 0.85rem;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

th,
td {
  text-align: left;
  padding: 8px;
  border-bottom: 1px solid #2a313c;
}

th {
  color: #8e96a6;
  font-weight: 600;
}

.mock-form {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

.mock-form label {
  display: grid;
  gap: 6px;
  font-size: 0.88rem;
  color: #b9c1cf;
}

.mock-form input,
.mock-form select {
  background: #11161d;
  border: 1px solid #343e4d;
  color: #eaf0ff;
  border-radius: 10px;
  padding: 9px 10px;
}

.mock-form select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  padding-right: 40px;
  line-height: 1.2;
  background-image:
    linear-gradient(45deg, transparent 50%, var(--lux-accent, #d4af37) 50%),
    linear-gradient(135deg, var(--lux-accent, #d4af37) 50%, transparent 50%);
  background-position:
    calc(100% - 18px) calc(50% - 3px),
    calc(100% - 12px) calc(50% - 3px);
  background-size: 6px 6px;
  background-repeat: no-repeat;
}

.mock-form button {
  margin-top: 4px;
  border: 1px solid #7a6330;
  background: #f4c542;
  color: #161a20;
  border-radius: 10px;
  padding: 10px 12px;
  font-weight: 600;
  cursor: pointer;
}

.mock-form button:hover {
  background: #ffd25d;
}

.check-list {
  margin: 0;
  padding-left: 20px;
  display: grid;
  gap: 6px;
}

.notice {
  margin: 0 0 10px;
  font-size: 0.86rem;
  color: var(--lux-text-muted, #9199a8);
  min-height: 18px;
}

.notice:not(:empty) {
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.notice[data-state="info"]:not(:empty) {
  border-color: rgba(212, 175, 55, 0.18);
}

.notice[data-state="success"] {
  color: #6ee7a8;
  border-color: rgba(99, 245, 173, 0.22);
}

.notice[data-state="error"] {
  color: #ff8e8e;
  border-color: rgba(255, 127, 127, 0.22);
}

.market-strip {
  display: grid;
  grid-template-columns: 1.2fr repeat(3, 1fr);
  gap: 12px;
  align-items: center;
}
.market-strip .ticker-stat select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-color: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(212, 175, 55, 0.18);
  color: var(--lux-text, #eaf0ff);
  border-radius: 12px;
  padding: 9px 40px 9px 10px;
  width: 100%;
  line-height: 1.2;
  background-image:
    linear-gradient(45deg, transparent 50%, var(--lux-accent, #d4af37) 50%),
    linear-gradient(135deg, var(--lux-accent, #d4af37) 50%, transparent 50%);
  background-position:
    calc(100% - 18px) calc(50% - 3px),
    calc(100% - 12px) calc(50% - 3px);
  background-size: 6px 6px;
  background-repeat: no-repeat;
}

.market-strip .ticker-stat select:focus-visible {
  outline: 2px solid rgba(212, 175, 55, 0.45);
  outline-offset: 2px;
}

.pair-block {
  display: flex;
  flex-direction: column;
}

.pair-block h2 {
  margin: 0;
  font-size: 1.35rem;
}

.pair-block span {
  color: #8e96a6;
  font-size: 0.82rem;
}

.ticker-stat {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.ticker-stat span {
  color: #8e96a6;
  font-size: 0.78rem;
}

.ticker-stat strong {
  font-size: 1rem;
  color: #f1f4fa;
  transition: color 160ms ease;
}

.ticker-stat strong.price-up {
  color: #63f5ad;
}

.ticker-stat strong.price-down {
  color: #ff7f7f;
}

.terminal-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 16px;
}

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

.panel-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

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

.admin-filter-form {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin: 0 0 12px;
}

.admin-filter-form label {
  display: grid;
  gap: 6px;
  font-size: 0.82rem;
  color: #aeb6c7;
}

.admin-filter-form input,
.admin-filter-form select {
  background: #11161d;
  border: 1px solid #343e4d;
  color: #eaf0ff;
  border-radius: 10px;
  padding: 8px 10px;
}

.admin-filter-actions {
  grid-column: 1 / -1;
  display: flex;
  gap: 8px;
}

.badge-pending_review,
.badge-active,
.badge-rejected,
.badge-closed,
.badge-none,
.badge-pending,
.badge-approved {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 3px 10px;
  font-size: 0.78rem;
  border: 1px solid transparent;
}

.badge-pending_review {
  background: rgba(255, 184, 77, 0.14);
  border-color: rgba(255, 184, 77, 0.35);
  color: #ffd08a;
}

.badge-active {
  background: rgba(74, 222, 128, 0.14);
  border-color: rgba(74, 222, 128, 0.35);
  color: #8ef3b3;
}

.badge-rejected {
  background: rgba(248, 113, 113, 0.14);
  border-color: rgba(248, 113, 113, 0.35);
  color: #ff9d9d;
}

.badge-none {
  background: rgba(148, 163, 184, 0.12);
  border-color: rgba(148, 163, 184, 0.35);
  color: #cbd5e1;
}

.badge-pending {
  background: rgba(255, 184, 77, 0.14);
  border-color: rgba(255, 184, 77, 0.35);
  color: #ffd08a;
}

.badge-approved {
  background: rgba(74, 222, 128, 0.14);
  border-color: rgba(74, 222, 128, 0.35);
  color: #8ef3b3;
}

.badge-closed {
  background: rgba(148, 163, 184, 0.14);
  border-color: rgba(148, 163, 184, 0.35);
  color: #c7d0df;
}

.intervals {
  display: flex;
  gap: 6px;
}

.intervals span {
  background: #1e242d;
  border: 1px solid #343e4d;
  border-radius: 8px;
  padding: 3px 8px;
  color: #adb5c5;
  font-size: 0.78rem;
}

.chart-panel {
  min-height: 360px;
}

.chart-placeholder {
  height: 300px;
  border: 1px solid #2e3743;
  border-radius: 12px;
  background:
    linear-gradient(180deg, rgba(244, 197, 66, 0.1), rgba(244, 197, 66, 0) 65%),
    repeating-linear-gradient(
      to right,
      rgba(146, 156, 176, 0.08) 0,
      rgba(146, 156, 176, 0.08) 1px,
      transparent 1px,
      transparent 40px
    ),
    repeating-linear-gradient(
      to bottom,
      rgba(146, 156, 176, 0.08) 0,
      rgba(146, 156, 176, 0.08) 1px,
      transparent 1px,
      transparent 34px
    );
  position: relative;
  overflow: hidden;
}

.chart-line {
  position: absolute;
  inset: 0;
  background: transparent;
}

.chart-line svg {
  width: 100%;
  height: 100%;
  display: block;
}

.compact-panel h3 {
  margin-bottom: 8px;
}

table.dense th,
table.dense td {
  padding: 6px;
  font-size: 0.82rem;
}

.buy {
  color: #6ee7a8;
}

.sell {
  color: #ff8e8e;
}

.row-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.side-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.side-tab {
  border: 1px solid #3a434f;
  background: #1e242d;
  color: #c3cbda;
  border-radius: 10px;
  padding: 8px 10px;
  cursor: pointer;
}

.side-tab.active[data-side="buy"] {
  background: rgba(110, 231, 168, 0.18);
  border-color: #3a8b65;
  color: #6ee7a8;
}

.side-tab.active[data-side="sell"] {
  background: rgba(255, 142, 142, 0.16);
  border-color: #a65959;
  color: #ff8e8e;
}

.percent-quick {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}

.price-quick {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.price-quick button {
  border: 1px solid #374250;
  background: #1b212a;
  color: #b7c0d0;
  border-radius: 8px;
  padding: 6px 0;
  cursor: pointer;
}

.price-quick button:hover {
  border-color: #f4c542;
  color: #f4c542;
}

.percent-quick button {
  border: 1px solid #374250;
  background: #1b212a;
  color: #b7c0d0;
  border-radius: 8px;
  padding: 6px 0;
  cursor: pointer;
}

.percent-quick button:hover {
  border-color: #f4c542;
  color: #f4c542;
}

.balance-hint {
  margin: -2px 0 0;
  color: #8e96a6;
  font-size: 0.82rem;
}

.order-value {
  margin: -4px 0 0;
  color: #aab3c4;
  font-size: 0.82rem;
}

.order-preview {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: -2px;
  font-size: 0.8rem;
  color: #9ba4b6;
}

.order-preview strong {
  color: #e9edf7;
}

.hidden {
  display: none !important;
}

.order-warning {
  margin: 0;
  min-height: 18px;
  font-size: 0.82rem;
}

.order-warning[data-state="error"] {
  color: #ff8e8e;
}

.cancel-btn {
  border: 1px solid #3e4a5c;
  background: #1a2028;
  color: #d1d8e6;
  border-radius: 8px;
  padding: 4px 8px;
  cursor: pointer;
  font-size: 0.8rem;
}

.cancel-btn:hover {
  border-color: #ff8e8e;
  color: #ff8e8e;
}

.action-btn.approve:hover {
  border-color: #6ee7a8;
  color: #6ee7a8;
}

.action-btn.reject:hover {
  border-color: #ff8e8e;
  color: #ff8e8e;
}

.terminal-bottom {
  align-items: start;
}

.mock-form button.accent {
  background: #f4c542;
  color: #14181f;
}

.action-row {
  margin-top: 2px;
}

.mock-form .buy-action {
  background: #2d7d57;
  border-color: #286e4d;
  color: #ebfff4;
}

.mock-form .buy-action:hover {
  background: #379467;
}

.mock-form .sell-action {
  background: #9b3e3e;
  border-color: #873434;
  color: #fff1f1;
}

.mock-form .sell-action:hover {
  background: #b04a4a;
}

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

  .exchange-sidebar {
    border-right: 0;
    border-bottom: 1px solid #1f2a45;
  }

  .grid.two-col,
  .grid.three-col,
  .grid.four-col {
    grid-template-columns: 1fr;
  }

  .terminal-grid,
  .market-strip {
    grid-template-columns: 1fr;
  }

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

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

@media (max-width: 760px) {
  .admin-filter-form {
    grid-template-columns: 1fr;
  }

  .exchange-sidebar {
    padding: 14px 12px;
  }

  .brand-block {
    flex-direction: row;
    align-items: baseline;
    justify-content: space-between;
    gap: 10px;
  }

  .side-nav {
    flex-direction: row;
    overflow-x: auto;
    overflow-y: hidden;
    gap: 10px;
    padding-bottom: 6px;
  }

  .side-nav a {
    flex: 0 0 auto;
    white-space: nowrap;
  }

  .intervals {
    flex-wrap: wrap;
  }

  .intervals span {
    cursor: pointer;
    user-select: none;
  }

  .intervals span.active {
    border-color: #58d392;
    background: #1a3a28;
    color: #ecfff4;
  }
}

.exchange-sidebar {
  border-right-color: var(--lux-border);
  background: linear-gradient(180deg, #0d1610 0%, #0a130e 100%);
}

.brand-block strong {
  color: var(--lux-accent);
  letter-spacing: 0.04em;
}

.brand-block span,
.page-header p,
.panel.stat span,
.ticker-stat span,
th {
  color: var(--lux-text-muted);
}

.side-nav a {
  color: #b5d5c2;
  border-color: #1b3326;
}

.side-nav a.active,
.side-nav a:hover {
  background: #16271d;
  border-color: var(--lux-border-strong);
  color: #e8fff1;
}

.side-nav a.active {
  box-shadow: inset 3px 0 0 #4de39f;
}

.panel {
  border-color: var(--lux-border);
  background: linear-gradient(180deg, rgba(20, 33, 25, 0.94) 0%, rgba(12, 21, 16, 0.98) 100%);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.32);
}

.exchange-main {
  gap: 22px;
}

.exchange-main > section + section {
  margin-top: 2px;
  padding-top: 16px;
  border-top: 1px solid rgba(67, 122, 90, 0.24);
}

.panel + .panel {
  margin-top: 14px;
}

th,
td {
  border-bottom-color: #183225;
}

.mock-form input,
.mock-form select {
  background: #08120c;
  border-color: #234631;
  color: var(--lux-text);
}

.mock-form button,
.mock-form .buy-action,
.mock-form .sell-action,
.accent {
  background: linear-gradient(180deg, #39d98a 0%, #26975f 100%);
  border-color: #2aac69;
  color: #041008;
}

.mock-form .buy-action,
.accent.buy-action {
  background: linear-gradient(180deg, #43df95 0%, #2da867 100%);
  border-color: #35b875;
}

.mock-form .sell-action,
.accent.sell-action {
  background: linear-gradient(180deg, #412222 0%, #2d1818 100%);
  border-color: #b65454;
  color: #ffc4c4;
}

.mock-form .sell-action:hover,
.accent.sell-action:hover {
  background: linear-gradient(180deg, #582d2d 0%, #3d2020 100%);
}

.cancel-btn {
  border: 1px solid #3f684f;
  background: #102117;
  color: #c5f3da;
  border-radius: 8px;
  padding: 7px 9px;
}

.cancel-btn:hover {
  background: #173122;
  border-color: #56b782;
}

.mock-form button:hover,
.mock-form .buy-action:hover,
.mock-form .sell-action:hover,
.accent:hover {
  background: linear-gradient(180deg, #51e6a0 0%, #2fad6d 100%);
}

.notice[data-state="success"],
.buy {
  color: #63f5ad;
}

.notice[data-state="error"],
.sell {
  color: #ff7f7f;
}

.chart-line {
  background: transparent;
}

.exchange-main,
.panel,
.compact-panel,
.market-strip,
.table-filters,
.panel-head,
.row-2,
.action-row,
.price-quick,
.percent-quick {
  max-width: 100%;
}

.panel,
.compact-panel {
  overflow: hidden;
}

.panel h3,
.panel h4,
.pair-block h2,
.notice,
th,
td,
.side-nav a,
.mock-form label,
.balance-hint,
.order-value,
.order-warning {
  word-break: break-word;
}

.panel a,
.exchange-main a {
  color: #7ff0b6;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.panel a:hover,
.exchange-main a:hover {
  color: #b2ffd7;
}

.mock-form input,
.mock-form select,
.mock-form button,
.accent,
.cancel-btn,
.side-tab {
  width: 100%;
  max-width: 100%;
  white-space: normal;
}

.table-wrap,
.panel table {
  display: block;
  width: 100%;
  overflow-x: auto;
}

.price-quick,
.percent-quick,
.action-row,
.side-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.price-quick button,
.percent-quick button,
.action-row button,
.side-tabs button {
  flex: 1 1 120px;
}

.price-quick button,
.percent-quick button,
.side-tabs button {
  border: 1px solid #2c5f44;
  background: #102117;
  color: #d2f8e4;
}

.side-tabs .side-tab.active {
  border-color: #58d392;
  background: #1a3a28;
  color: #ecfff4;
}

table tbody tr:nth-child(even) {
  background: rgba(15, 31, 22, 0.45);
}

@media (max-width: 420px) {
  .exchange-main {
    padding: 12px;
    gap: 14px;
  }

  body.nexus-terminal-body .nx-wallets-tab .panel,
  body.nexus-admin .nx-wallets-tab .panel {
    overflow-x: auto;
  }

  body.nexus-terminal-body .nx-wallets-tab .panel table,
  body.nexus-admin .nx-wallets-tab .panel table {
    min-width: 0;
    table-layout: fixed;
  }

  body.nexus-terminal-body .nx-wallets-tab .panel th,
  body.nexus-terminal-body .nx-wallets-tab .panel td,
  body.nexus-admin .nx-wallets-tab .panel th,
  body.nexus-admin .nx-wallets-tab .panel td {
    white-space: normal;
    overflow-wrap: anywhere;
  }

  .exchange-main > section + section {
    padding-top: 10px;
  }

  .exchange-sidebar {
    padding: 14px 10px;
  }

  .brand-block {
    margin-bottom: 12px;
  }

  .brand-block strong {
    font-size: 0.95rem;
  }

  .side-nav a {
    padding: 9px 10px;
    font-size: 0.88rem;
  }

  .panel,
  .compact-panel {
    padding: 11px;
    border-radius: 12px;
  }

  .pair-block h2,
  .page-header h1 {
    font-size: 1.1rem;
  }

  .panel h3,
  .panel h4 {
    font-size: 1rem;
    margin-bottom: 8px;
  }

  .table-wrap,
  .panel table {
    font-size: 0.8rem;
  }

  th,
  td {
    padding: 6px;
  }

  .row-2,
  .price-quick,
  .percent-quick,
  .action-row,
  .side-tabs {
    gap: 6px;
  }

  .mock-form label {
    font-size: 0.84rem;
  }

  .mock-form input,
  .mock-form select,
  .mock-form button,
  .cancel-btn,
  .side-tab {
    font-size: 0.86rem;
    padding: 9px 10px;
    min-height: 40px;
  }

  .cancel-btn {
    min-height: 36px;
    padding: 7px 8px;
  }
}

.exchange-main {
  position: relative;
}

.exchange-main::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(circle at 92% -8%, rgba(89, 234, 160, 0.08), transparent 34%);
}

.panel h3,
.panel h4 {
  color: #eafcf2;
}

.panel {
  border-radius: 14px;
}

.market-strip.panel {
  border-color: #2c6a49;
}

.mock-form button,
.cancel-btn,
.side-tab,
.action-btn,
.access-btn {
  transition: transform 0.12s ease, box-shadow 0.18s ease, filter 0.18s ease;
}

.mock-form button:active,
.cancel-btn:active,
.side-tab:active,
.action-btn:active,
.access-btn:active {
  transform: translateY(1px);
}

.mock-form .buy-action,
.accent.buy-action {
  box-shadow: 0 9px 18px rgba(45, 151, 95, 0.28);
}

.mock-form .sell-action,
.accent.sell-action {
  box-shadow: 0 8px 16px rgba(92, 38, 38, 0.28);
}

.price-quick button,
.percent-quick button,
.side-tabs button,
.cancel-btn,
.action-btn {
  border-radius: 9px;
}

.panel table {
  border-radius: 10px;
}

.panel table::-webkit-scrollbar {
  height: 8px;
}

.panel table::-webkit-scrollbar-thumb {
  background: #2a5a40;
  border-radius: 10px;
}

.panel table::-webkit-scrollbar-track {
  background: #0c1711;
}

.panel a:focus-visible,
.side-nav a:focus-visible,
.mock-form button:focus-visible,
.cancel-btn:focus-visible,
.side-tab:focus-visible,
.action-btn:focus-visible,
.mock-form input:focus-visible,
.mock-form select:focus-visible {
  outline: 2px solid rgba(112, 239, 173, 0.92);
  outline-offset: 2px;
}
.landing-page {
  min-height: 100vh;
  padding: 48px 20px;
  background: radial-gradient(circle at top, #182130 0%, #0f1115 45%, #0f1115 100%);
  color: #e7ebf7;
  font-family: "Inter", "Segoe UI", "Roboto", sans-serif;
}

.hero h1 {
  margin: 10px 0 14px;
  font-size: 2rem;
  line-height: 1.25;
}

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

.landing-header {
  max-width: 900px;
  margin: 0 auto 32px;
  text-align: center;
}

.landing-brand {
  font-size: 2rem;
  font-weight: 700;
  color: #f4c542;
  margin-bottom: 10px;
}

.landing-subtitle {
  margin: 0;
  color: #9199a8;
  font-size: 1.05rem;
  line-height: 1.45;
}

.flash-stack {
  max-width: 900px;
  margin: 0 auto 18px;
  display: grid;
  gap: 8px;
}

.flash {
  border-radius: 10px;
  padding: 10px 12px;
  border: 1px solid;
  font-size: 0.95rem;
}

.flash-notice {
  background: #1d3a2c;
  border-color: #2d7d57;
  color: #dff7ea;
}

.flash-alert {
  background: #4a2323;
  border-color: #8b3f3f;
  color: #ffe8e8;
}

.landing-session-actions {
  max-width: 900px;
  margin: 0 auto 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  color: #c8cfdb;
  font-size: 0.95rem;
}

.landing-access {
  max-width: 900px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.landing-highlights {
  align-items: stretch;
}

.staking-card {
  border-color: #2d7d57;
}

.staking-plans {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin: 12px 0 16px;
}

.staking-plans div {
  border: 1px solid #334f42;
  border-radius: 10px;
  background: #132018;
  padding: 8px;
  display: grid;
  gap: 4px;
}

.staking-plans strong {
  font-size: 0.9rem;
}

.staking-plans span {
  font-size: 0.82rem;
  color: #8fd2aa;
}

.access-card {
  border: 1px solid #2d3540;
  border-radius: 14px;
  background: #161b22;
  padding: 20px;
}

.access-card h2 {
  margin: 0 0 10px;
  font-size: 1.35rem;
}

.access-card p {
  margin: 0 0 16px;
  color: #9199a8;
  line-height: 1.45;
}

.access-card h3 {
  margin: 12px 0 10px;
  font-size: 0.98rem;
  color: #e2e8f6;
}

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

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

.form-input {
  background: #0f1319;
  border: 1px solid #313946;
  border-radius: 10px;
  color: #e7ebf7;
  padding: 10px 12px;
  font-size: 0.95rem;
  line-height: 1.25;
}

.form-input:focus {
  outline: none;
  border-color: #4f6f95;
  box-shadow: 0 0 0 1px #4f6f95;
}

.access-btn {
  display: inline-block;
  width: 100%;
  padding: 11px 14px;
  border-radius: 10px;
  border: 1px solid transparent;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.94rem;
  line-height: 1.2;
  text-align: center;
  cursor: pointer;
}

.access-btn-user {
  background: #214f36;
  border-color: #2d7d57;
  color: #ebfff4;
}

.access-btn-admin {
  background: #5e2f2f;
  border-color: #8b3f3f;
  color: #fff2f2;
}

.access-btn:hover {
  filter: brightness(1.08);
}

.quick-link {
  display: inline-block;
  margin-top: 4px;
  color: #a9b8d1;
  text-decoration: none;
  font-size: 0.92rem;
}

.quick-link:hover {
  color: #f4c542;
}

.access-btn-logout {
  width: auto;
  background: #262d39;
  border-color: #3a4658;
  color: #edf2ff;
  padding: 8px 12px;
}

.auth-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
  background: #0f1115;
}

.auth-page.auth-user {
  background: radial-gradient(circle at top, #14281e 0%, #0f1115 45%, #0f1115 100%);
}

.auth-page.auth-admin {
  background: radial-gradient(circle at top, #2b1717 0%, #0f1115 45%, #0f1115 100%);
}

.auth-card {
  width: min(520px, 100%);
  border: 1px solid #2d3540;
  border-radius: 14px;
  background: #161b22;
  padding: 22px;
}

.auth-card h1 {
  margin: 0 0 10px;
  font-size: 1.45rem;
}

.auth-card p {
  margin: 0 0 16px;
  color: #9199a8;
}

@media (max-width: 860px) {
  .hero-actions {
    grid-template-columns: 1fr;
  }

  .landing-access {
    grid-template-columns: 1fr;
  }

  .staking-plans {
    grid-template-columns: 1fr;
  }

  .landing-session-actions {
    flex-direction: column;
    align-items: flex-start;
  }
}

.landing-page {
  background: radial-gradient(circle at top, #153121 0%, var(--lux-bg) 46%, #020402 100%);
  color: var(--lux-text);
}

.landing-header,
.landing-access {
  position: relative;
}

.landing-header {
  margin-bottom: 42px;
}

.landing-access {
  gap: 22px;
  margin-top: 20px;
}

.landing-access + .landing-access {
  margin-top: 26px;
  padding-top: 22px;
  border-top: 1px solid rgba(70, 129, 95, 0.3);
}

.landing-brand {
  color: var(--lux-accent);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.landing-subtitle,
.access-card p,
.auth-card p,
.landing-session-actions {
  color: var(--lux-text-muted);
}

.access-card,
.auth-card {
  border-color: var(--lux-border);
  background: linear-gradient(180deg, rgba(20, 35, 26, 0.88) 0%, rgba(13, 23, 18, 0.96) 100%);
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.35);
}

.access-card {
  padding: 24px;
}

.staking-card,
.flash-notice {
  border-color: var(--lux-border-strong);
}

.flash-notice {
  background: rgba(17, 49, 33, 0.78);
  color: #d4fbe5;
}

.flash-alert {
  background: rgba(68, 22, 22, 0.75);
  border-color: #8d3535;
  color: #ffdede;
}

.form-input {
  background: #08110b;
  border-color: var(--lux-border);
  color: var(--lux-text);
}

.form-input:focus {
  border-color: var(--lux-accent);
  box-shadow: 0 0 0 1px var(--lux-accent);
}

.access-btn-user,
.hero-actions .access-btn-user,
.auth-form .access-btn-user {
  background: linear-gradient(180deg, #34c47d 0%, #268f5b 100%);
  border-color: #2aa666;
  color: #05120a;
}

.access-btn-admin,
.hero-actions .access-btn-admin,
.auth-form .access-btn-admin {
  background: linear-gradient(180deg, #1a2f23 0%, #122319 100%);
  border-color: #58c68d;
  color: #9ff5c8;
  box-shadow: inset 0 0 0 1px rgba(116, 229, 167, 0.28);
}

.access-btn:hover {
  filter: brightness(1.1);
}

.access-btn-logout {
  background: #122319;
  border-color: var(--lux-border-strong);
  color: var(--lux-text);
}

.landing-session-actions .access-btn-logout {
  min-width: 120px;
}

.quick-link {
  color: #b8e7cb;
}

.auth-links .quick-link,
.access-card .quick-link {
  padding: 8px 10px;
  border: 1px solid rgba(76, 145, 108, 0.35);
  border-radius: 9px;
  background: rgba(14, 30, 21, 0.7);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.quick-link:hover {
  color: #63f5ad;
  border-color: rgba(108, 206, 152, 0.6);
  background: rgba(20, 42, 30, 0.95);
}

.auth-page.auth-user,
.auth-page.auth-admin {
  background: radial-gradient(circle at top, #143522 0%, var(--lux-bg) 50%, #020402 100%);
}

.hero h1,
.access-card h2,
.auth-card h1,
.landing-subtitle,
.access-card p,
.check-list li,
.landing-session-actions span {
  word-break: break-word;
}

.access-card,
.auth-card,
.landing-session-actions {
  overflow: hidden;
}

.auth-links,
.hero-actions {
  width: 100%;
}

.quick-link {
  display: block;
  width: 100%;
  line-height: 1.35;
}

.access-btn {
  max-width: 100%;
  white-space: normal;
  word-break: break-word;
  line-height: 1.3;
  min-height: 46px;
}

.form-input {
  width: 100%;
  max-width: 100%;
}

@media (max-width: 420px) {
  .landing-page {
    padding: 24px 12px;
  }

  .landing-header {
    margin-bottom: 26px;
  }

  .landing-brand {
    font-size: 1.35rem;
  }

  .hero h1 {
    font-size: 1.34rem;
    line-height: 1.3;
  }

  .landing-subtitle {
    font-size: 0.95rem;
  }

  .landing-access {
    gap: 14px;
    margin-top: 14px;
  }

  .landing-access + .landing-access {
    margin-top: 16px;
    padding-top: 14px;
  }

  .access-card,
  .auth-card {
    border-radius: 12px;
    padding: 16px;
  }

  .access-card h2,
  .auth-card h1 {
    font-size: 1.14rem;
    margin-bottom: 8px;
  }

  .auth-page {
    padding: 12px;
  }

  .access-btn,
  .landing-session-actions .access-btn-logout {
    width: 100%;
    min-height: 44px;
    padding: 10px 12px;
    font-size: 0.9rem;
  }

  .landing-session-actions {
    gap: 8px;
  }

  .auth-links .quick-link,
  .access-card .quick-link {
    padding: 7px 9px;
    font-size: 0.88rem;
  }
}

.landing-page::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(circle at 80% -10%, rgba(64, 196, 131, 0.12), transparent 36%);
}

.access-card h2,
.auth-card h1 {
  color: #eafcf1;
  letter-spacing: 0.01em;
}

.check-list {
  gap: 8px;
}

.check-list li::marker {
  color: #69e3a5;
}

.access-btn {
  transition: transform 0.14s ease, box-shadow 0.18s ease, filter 0.2s ease;
}

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

.quick-link:focus-visible,
.access-btn:focus-visible,
.form-input:focus-visible {
  outline: 2px solid rgba(113, 243, 176, 0.92);
  outline-offset: 2px;
}

.hero-actions .access-btn-user,
.auth-form .access-btn-user {
  box-shadow: 0 10px 22px rgba(39, 140, 88, 0.32);
}

.hero-actions .access-btn-admin,
.auth-form .access-btn-admin {
  box-shadow: 0 8px 18px rgba(20, 45, 32, 0.35);
}
/*
 * Nexus auth/admin theme overrides.
 * Scoped to body classes to avoid impacting the rest of the app.
 */

body.nexus-auth,
body.nexus-admin {
	background: radial-gradient(circle at 50% 0%, #14110a 0%, #070707 48%, #050505 100%);
	color: #e0e0e0;
	margin: 0;
	font-family: "Manrope", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
}

body.nexus-auth a,
body.nexus-admin a {
	color: inherit;
}

body.nexus-auth .flash-stack,
body.nexus-admin .flash-stack {
	position: fixed;
	top: 16px;
	left: 50%;
	transform: translateX(-50%);
	z-index: 1000;
	max-width: min(920px, calc(100% - 24px));
}

body.nexus-auth .flash,
body.nexus-admin .flash {
	border-radius: 12px;
	padding: 12px 14px;
	margin-bottom: 8px;
	backdrop-filter: blur(8px);
	background: rgba(0, 0, 0, 0.5);
	border: 1px solid rgba(255, 255, 255, 0.08);
}

body.nexus-auth .flash-notice,
body.nexus-admin .flash-notice {
	border-color: rgba(15, 255, 120, 0.25);
}

body.nexus-auth .flash-alert,
body.nexus-admin .flash-alert {
	border-color: rgba(255, 68, 68, 0.25);
}

.nx-auth-wrap {
	min-height: 100vh;
	display: grid;
	place-items: center;
	padding: 26px 16px;
}

.nx-auth-card {
	width: min(560px, 100%);
	border-radius: 18px;
	border: 1px solid rgba(212, 175, 55, 0.22);
	background: rgba(10, 10, 10, 0.75);
	backdrop-filter: blur(10px);
	box-shadow: 0 30px 70px rgba(0, 0, 0, 0.6);
	overflow: hidden;
}

.nx-auth-head {
	padding: 22px 22px 16px;
	border-bottom: 1px solid rgba(255, 255, 255, 0.07);
	display: flex;
	justify-content: space-between;
	align-items: flex-end;
	gap: 14px;
	flex-wrap: wrap;
}

.nx-auth-title {
	margin: 0;
	font-family: "Cinzel", serif;
	letter-spacing: 1px;
	text-transform: uppercase;
	color: #fff;
	font-size: 22px;
	line-height: 1.1;
}

.nx-auth-sub {
	margin: 8px 0 0;
	color: rgba(255, 255, 255, 0.6);
	font-size: 13px;
	line-height: 1.45;
}

.nx-auth-badge {
	font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
	font-size: 10px;
	letter-spacing: 2px;
	text-transform: uppercase;
	color: rgba(212, 175, 55, 0.85);
	border: 1px solid rgba(212, 175, 55, 0.25);
	padding: 6px 10px;
	border-radius: 999px;
	background: rgba(212, 175, 55, 0.06);
}

.nx-auth-body {
	padding: 18px 22px 22px;
}

.nx-auth-form {
	display: grid;
	gap: 12px;
	margin-top: 12px;
}

.nx-auth-form label {
	display: grid;
	gap: 8px;
	font-size: 12px;
	letter-spacing: 1.2px;
	text-transform: uppercase;
	color: rgba(255, 255, 255, 0.6);
}

.nx-input {
	width: 100%;
	background: rgba(0, 0, 0, 0.35);
	border: 1px solid rgba(255, 255, 255, 0.12);
	color: #fff;
	border-radius: 14px;
	padding: 12px 12px;
	font-size: 14px;
	outline: none;
}

.nx-input:focus {
	border-color: rgba(212, 175, 55, 0.7);
	box-shadow: 0 0 0 2px rgba(212, 175, 55, 0.14);
}

.nx-auth-actions {
	display: grid;
	gap: 10px;
	margin-top: 6px;
}

.nx-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	width: 100%;
	padding: 13px 14px;
	border-radius: 14px;
	border: 1px solid rgba(212, 175, 55, 0.6);
	background: rgba(212, 175, 55, 0.08);
	color: rgba(212, 175, 55, 1);
	text-transform: uppercase;
	letter-spacing: 2px;
	font-family: "Cinzel", serif;
	font-weight: 700;
	cursor: pointer;
	transition: 0.2s ease;
}

.nx-btn:hover {
	background: rgba(212, 175, 55, 1);
	color: #000;
	box-shadow: 0 0 30px rgba(212, 175, 55, 0.18);
	transform: translateY(-1px);
}

.nx-btn-secondary {
	border-color: rgba(255, 255, 255, 0.14);
	background: rgba(255, 255, 255, 0.02);
	color: rgba(255, 255, 255, 0.8);
	font-family: "Manrope", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
	letter-spacing: 1.6px;
	font-weight: 700;
}

.nx-btn-secondary:hover {
	background: rgba(255, 255, 255, 0.06);
	color: #fff;
	box-shadow: none;
}

.nx-auth-links {
	margin-top: 16px;
	display: grid;
	gap: 10px;
}

.nx-link {
	text-decoration: none;
	color: rgba(255, 255, 255, 0.72);
	border: 1px solid rgba(255, 255, 255, 0.10);
	background: rgba(255, 255, 255, 0.02);
	padding: 11px 12px;
	border-radius: 14px;
	transition: 0.2s ease;
	font-size: 13px;
}

.nx-link:hover {
	background: rgba(255, 255, 255, 0.06);
	color: #fff;
}

.nx-link-gold {
	border-color: rgba(212, 175, 55, 0.35);
	color: rgba(212, 175, 55, 0.95);
}

.nx-link-gold:hover {
	background: rgba(212, 175, 55, 0.12);
}

/* Admin cabinet reskin (keeps structure, changes visual tone) */
body.nexus-admin .exchange-sidebar {
	background: rgba(10, 10, 10, 0.9);
	border-right: 1px solid rgba(212, 175, 55, 0.14);
}

body.nexus-admin .brand-block strong {
	color: rgba(212, 175, 55, 0.95);
}

body.nexus-admin .side-nav a.active,
body.nexus-admin .side-nav a:hover {
	background: rgba(212, 175, 55, 0.10);
	border-color: rgba(212, 175, 55, 0.22);
	color: #fff;
}

body.nexus-admin .exchange-main {
	background: transparent;
}

body.nexus-admin .panel {
	background: rgba(255, 255, 255, 0.02);
	border-color: rgba(255, 255, 255, 0.10);
}

body.nexus-admin .panel.stat strong {
	font-family: "Cinzel", serif;
}

body.nexus-admin .mock-form button,
body.nexus-admin .cancel-btn {
	border: 1px solid rgba(212, 175, 55, 0.55);
	background: rgba(212, 175, 55, 0.10);
	color: rgba(212, 175, 55, 0.95);
	border-radius: 12px;
	padding: 10px 12px;
	font-weight: 800;
	letter-spacing: 1.6px;
	text-transform: uppercase;
}

body.nexus-admin .mock-form button:hover,
body.nexus-admin .cancel-btn:hover {
	background: rgba(212, 175, 55, 1);
	color: #000;
}
/*
 * Nexus landing styles.
 * All selectors are scoped to body.nexus-body / .nexus-landing to avoid impacting the rest of the app.
 */

body.nexus-body {
	background: #050505;
	color: #e0e0e0;
	margin: 0;
}

body.nexus-body .flash-stack {
	position: fixed;
	top: 16px;
	left: 50%;
	transform: translateX(-50%);
	z-index: 1000;
	max-width: min(920px, calc(100% - 24px));
}

body.nexus-body .flash {
	border-radius: 12px;
	padding: 12px 14px;
	margin-bottom: 8px;
	backdrop-filter: blur(8px);
	background: rgba(0, 0, 0, 0.5);
	border: 1px solid rgba(255, 255, 255, 0.08);
}

body.nexus-body .flash-notice {
	border-color: rgba(15, 255, 120, 0.25);
}

body.nexus-body .flash-alert {
	border-color: rgba(255, 68, 68, 0.25);
}

.nexus-landing {
	--gold: #d4af37;
	--gold-glow: #aa8e39;
	--dark-bg: #0a0a0a;
	--glass: rgba(255, 255, 255, 0.03);
	--border: rgba(212, 175, 55, 0.2);

	font-family: "Manrope", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
	background: var(--dark-bg);
	color: #e0e0e0;
	min-height: 100vh;
}

.nexus-container {
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 20px;
}

/* Top navigation */
.nx-topbar {
	position: sticky;
	top: 0;
	z-index: 50;
	background: rgba(5, 5, 5, 0.8);
	backdrop-filter: blur(10px);
	border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.nx-topbar-inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	min-height: 64px;
	padding: 10px 0;
	gap: 14px;
}

.nx-brand {
	font-family: "Cinzel", serif;
	letter-spacing: 1px;
	text-transform: uppercase;
	color: #fff;
	font-weight: 700;
	text-decoration: none;
}

.nx-nav {
	display: flex;
	gap: 18px;
	row-gap: 10px;
	align-items: center;
	flex-wrap: wrap;
	justify-content: flex-end;
}

.nx-nav-desktop {
	display: flex;
}

.nx-burger {
	display: none;
	align-items: center;
	justify-content: center;
	gap: 12px;
	padding: 10px 12px;
	border-radius: 14px;
	border: 1px solid rgba(212, 175, 55, 0.28);
	background: rgba(255, 255, 255, 0.02);
	color: rgba(212, 175, 55, 0.95);
	cursor: pointer;
	user-select: none;
}

.nx-burger:hover {
	background: rgba(212, 175, 55, 0.08);
}

.nx-burger-hud {
	font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
	font-size: 10px;
	letter-spacing: 2px;
}

.nx-burger-lines {
	width: 28px;
	height: 18px;
	display: grid;
	align-content: center;
	gap: 5px;
}

.nx-burger-lines span {
	height: 2px;
	width: 100%;
	background: rgba(212, 175, 55, 0.9);
	border-radius: 999px;
	transition: transform 0.2s ease, opacity 0.2s ease;
}

body.nexus-body.nx-menu-open {
	overflow: hidden;
}

body.nexus-body.nx-menu-open .nx-burger-lines span:nth-child(1) {
	transform: translateY(7px) rotate(45deg);
}

body.nexus-body.nx-menu-open .nx-burger-lines span:nth-child(2) {
	opacity: 0;
}

body.nexus-body.nx-menu-open .nx-burger-lines span:nth-child(3) {
	transform: translateY(-7px) rotate(-45deg);
}

.nx-mobile {
	position: fixed;
	inset: 0;
	z-index: 80;
	display: none;
}

body.nexus-body.nx-menu-open .nx-mobile {
	display: block;
}

.nx-mobile-overlay {
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, 0.62);
	backdrop-filter: blur(6px);
}

.nx-mobile-panel {
	position: absolute;
	top: 10px;
	right: 10px;
	left: 10px;
	max-width: 560px;
	margin-left: auto;
	background: rgba(10, 10, 10, 0.82);
	border: 1px solid rgba(212, 175, 55, 0.22);
	border-radius: 18px;
	box-shadow: 0 30px 70px rgba(0, 0, 0, 0.7);
	backdrop-filter: blur(10px);
	overflow: hidden;
	transform: translateY(-6px);
}

.nx-mobile-head {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 14px 16px;
	border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.nx-mobile-title {
	font-family: "Cinzel", serif;
	letter-spacing: 1px;
	text-transform: uppercase;
	color: #fff;
}

.nx-mobile-close {
	width: 40px;
	height: 40px;
	border-radius: 14px;
	border: 1px solid rgba(255, 255, 255, 0.12);
	background: rgba(255, 255, 255, 0.03);
	color: rgba(255, 255, 255, 0.85);
	font-size: 22px;
	line-height: 1;
	cursor: pointer;
}

.nx-mobile-close:hover {
	background: rgba(255, 255, 255, 0.06);
}

.nx-mobile-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 10px;
	padding: 14px 16px;
}

.nx-mobile-actions {
	padding: 0 16px 16px;
	display: grid;
	gap: 10px;
}

.nx-mobile-link {
	text-decoration: none;
	color: rgba(255, 255, 255, 0.84);
	border: 1px solid rgba(255, 255, 255, 0.10);
	background: rgba(255, 255, 255, 0.02);
	padding: 12px 12px;
	border-radius: 14px;
	transition: 0.2s ease;
	font-size: 13px;
	letter-spacing: 1.2px;
	text-transform: uppercase;
}

.nx-mobile-link:hover {
	background: rgba(255, 255, 255, 0.06);
	color: #fff;
}

.nx-mobile-link-gold {
	border-color: rgba(212, 175, 55, 0.35);
	color: rgba(212, 175, 55, 0.95);
}

.nx-mobile-link-gold:hover {
	background: rgba(212, 175, 55, 0.12);
}

.nx-mobile-session {
	color: rgba(255, 255, 255, 0.7);
	font-size: 13px;
	padding: 4px 2px;
}

.nx-mobile-btn {
	width: 100%;
	border: 1px solid rgba(255, 255, 255, 0.12);
	background: rgba(255, 255, 255, 0.03);
	color: rgba(255, 255, 255, 0.85);
	padding: 12px 12px;
	border-radius: 14px;
	cursor: pointer;
	text-transform: uppercase;
	letter-spacing: 1.6px;
	font-size: 12px;
	font-weight: 800;
}

.nx-mobile-btn:hover {
	background: rgba(255, 255, 255, 0.06);
	color: #fff;
}

/* Sticky header offset for section anchors */
body.nexus-body section[id] {
	scroll-margin-top: 90px;
}

.nx-nav a {
	color: rgba(255, 255, 255, 0.72);
	text-decoration: none;
	font-size: 12px;
	letter-spacing: 1.6px;
	text-transform: uppercase;
	padding: 8px 10px;
	border-radius: 10px;
	transition: 0.2s ease;
}

.nx-nav a:hover {
	color: #fff;
	background: rgba(255, 255, 255, 0.05);
}

.nx-nav a.nx-nav-gold {
	border: 1px solid rgba(212, 175, 55, 0.35);
	color: var(--gold);
}

.nx-nav a.nx-nav-gold:hover {
	background: rgba(212, 175, 55, 0.12);
}

.nx-nav-session {
	font-size: 12px;
	color: rgba(255, 255, 255, 0.6);
	margin-left: 8px;
	white-space: nowrap;
}

.nx-logout-btn {
	border: 1px solid rgba(255, 255, 255, 0.12);
	background: transparent;
	color: rgba(255, 255, 255, 0.75);
	padding: 8px 12px;
	border-radius: 10px;
	cursor: pointer;
	text-transform: uppercase;
	letter-spacing: 1.6px;
	font-size: 12px;
}

.nx-logout-btn:hover {
	background: rgba(255, 255, 255, 0.06);
	color: #fff;
}

/* Typography */
.nexus-title {
	font-family: "Cinzel", serif;
	color: #fff;
	text-transform: uppercase;
	letter-spacing: 1px;
	margin: 0;
}

.nexus-gold {
	color: var(--gold);
	text-shadow: 0 0 15px rgba(212, 175, 55, 0.3);
}

/* HERO */
.nexus-hero-wrapper {
	position: relative;
	width: 100%;
	min-height: 90vh;
	display: flex;
	align-items: center;
	justify-content: center;
	background: #050505;
	overflow: hidden;
	perspective: 1000px;
	padding-top: 64px;
}

.nh-bg-layer {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	z-index: 1;
	pointer-events: none;
}

.nh-grid {
	position: absolute;
	top: -50%;
	left: -50%;
	width: 200%;
	height: 200%;
	background-image: linear-gradient(rgba(255, 215, 0, 0.03) 1px, transparent 1px),
		linear-gradient(90deg, rgba(255, 215, 0, 0.03) 1px, transparent 1px);
	background-size: 60px 60px;
	transform: perspective(500px) rotateX(60deg);
	animation: grid-move 20s linear infinite;
}

.nh-aurora {
	position: absolute;
	top: 50%;
	left: 50%;
	width: 60vw;
	height: 60vw;
	background: radial-gradient(circle, rgba(212, 175, 55, 0.15) 0%, rgba(100, 0, 255, 0.05) 30%, transparent 70%);
	transform: translate(-50%, -50%);
	filter: blur(60px);
	animation: pulse-glow 8s infinite alternate;
	will-change: transform;
}

.nh-vignette {
	position: absolute;
	width: 100%;
	height: 100%;
	background: radial-gradient(circle at center, transparent 0%, #050505 90%);
}

.nh-hud {
	position: absolute;
	font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
	font-size: 10px;
	color: rgba(255, 255, 255, 0.3);
	letter-spacing: 2px;
	z-index: 2;
}

.nh-hud-tl {
	top: 30px;
	left: 30px;
	border-left: 1px solid var(--gold);
	padding-left: 10px;
}

.nh-hud-tr {
	top: 30px;
	right: 30px;
	display: flex;
	align-items: center;
}

.nh-hud-bl {
	bottom: 30px;
	left: 30px;
}

.nh-hud-br {
	bottom: 30px;
	right: 30px;
	text-align: right;
}

.nh-live-dot {
	width: 6px;
	height: 6px;
	background: #0f0;
	border-radius: 50%;
	margin-right: 8px;
	box-shadow: 0 0 8px #0f0;
	animation: blink 2s infinite;
}

.nh-content {
	position: relative;
	z-index: 10;
	text-align: center;
	padding: 80px 0;
}

.nh-badge {
	display: inline-block;
	padding: 8px 16px;
	border: 1px solid rgba(255, 255, 255, 0.1);
	border-radius: 50px;
	font-size: 11px;
	color: var(--gold);
	text-transform: uppercase;
	letter-spacing: 3px;
	margin-bottom: 30px;
	background: rgba(0, 0, 0, 0.5);
	backdrop-filter: blur(5px);
}

.nh-title {
	font-family: "Cinzel", serif;
	font-size: clamp(48px, 8vw, 96px);
	line-height: 1;
	color: #fff;
	margin: 0;
	font-weight: 700;
	letter-spacing: -2px;
}

.nh-gold-text {
	background: linear-gradient(135deg, #fff 0%, #d4af37 40%, #aa8e39 100%);
	background-clip: text;
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
}

.nh-subtitle {
	font-size: 18px;
	color: #999;
	max-width: 560px;
	margin: 30px auto;
	line-height: 1.6;
	font-weight: 300;
}

.nh-actions {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 16px;
}

.nh-btn-primary {
	position: relative;
	padding: 18px 50px;
	background: rgba(212, 175, 55, 0.1);
	border: 1px solid var(--gold);
	color: var(--gold);
	text-decoration: none;
	text-transform: uppercase;
	font-family: "Cinzel", serif;
	font-weight: 700;
	letter-spacing: 2px;
	overflow: hidden;
	transition: 0.4s;
	clip-path: polygon(10% 0, 100% 0, 100% 70%, 90% 100%, 0 100%, 0 30%);
}

.nh-btn-primary:hover {
	background: var(--gold);
	color: #000;
	box-shadow: 0 0 30px rgba(212, 175, 55, 0.4);
	transform: translateY(-2px);
}

.nh-btn-secondary {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	padding: 12px 18px;
	border-radius: 12px;
	border: 1px solid rgba(255, 255, 255, 0.12);
	background: rgba(255, 255, 255, 0.02);
	color: rgba(255, 255, 255, 0.8);
	text-decoration: none;
	text-transform: uppercase;
	letter-spacing: 1.6px;
	font-size: 12px;
	transition: 0.2s ease;
}

.nh-btn-secondary:hover {
	background: rgba(255, 255, 255, 0.05);
	color: #fff;
}

.nh-stat-row {
	display: flex;
	gap: 30px;
	align-items: center;
}

.nh-stat-item {
	text-align: center;
}

.nh-stat-val {
	display: block;
	font-family: "Cinzel", serif;
	font-size: 18px;
	color: #fff;
}

.nh-stat-label {
	font-size: 10px;
	color: #555;
	text-transform: uppercase;
	letter-spacing: 1px;
}

.nh-stat-separator {
	width: 1px;
	height: 30px;
	background: rgba(255, 255, 255, 0.1);
}

/* Sections */
.nexus-block {
	width: 100%;
	padding: 80px 0;
	box-sizing: border-box;
	position: relative;
	overflow: hidden;
}

/* Vault simulator */
.nv-control-panel {
	display: flex;
	flex-direction: column;
	align-items: center;
	margin-bottom: 50px;
}

.nv-input-wrapper {
	position: relative;
	background: rgba(255, 255, 255, 0.05);
	border: 1px solid #333;
	border-radius: 12px;
	padding: 10px 30px;
	display: inline-flex;
	align-items: center;
	transition: 0.3s;
}

.nv-input-wrapper:hover,
.nv-input-wrapper:focus-within {
	border-color: var(--gold);
	box-shadow: 0 0 20px rgba(212, 175, 55, 0.15);
	transform: scale(1.02);
}

.nv-currency {
	font-size: 32px;
	color: var(--gold);
	font-family: "Cinzel", serif;
	margin-right: 10px;
}

.nv-input {
	background: transparent;
	border: none;
	color: #fff;
	font-size: 42px;
	font-weight: 700;
	width: 220px;
	outline: none;
}

.nv-input::-webkit-outer-spin-button,
.nv-input::-webkit-inner-spin-button {
	-webkit-appearance: none;
	margin: 0;
}

.nv-slider-hint {
	margin-top: 10px;
	color: var(--gold);
	font-size: 12px;
	letter-spacing: 1px;
	text-transform: uppercase;
	animation: bounce 2s infinite;
}

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

.st-card {
	background: #0e0e0e;
	border: 1px solid #222;
	border-radius: 16px;
	padding: 25px;
	position: relative;
	cursor: pointer;
	transition: 0.3s;
	overflow: hidden;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	min-height: 220px;
}

.st-card:hover {
	border-color: #444;
	background: #121212;
	transform: translateY(-5px);
}

.st-optimal {
	border-color: rgba(212, 175, 55, 0.3);
	box-shadow: 0 0 15px rgba(0, 0, 0, 0.5);
}

.st-glow {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: radial-gradient(circle at top right, rgba(212, 175, 55, 0.1), transparent 60%);
	pointer-events: none;
}

.st-optimal:hover {
	border-color: var(--gold);
	box-shadow: 0 0 25px rgba(212, 175, 55, 0.15);
}

.st-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 20px;
}

.st-badge {
	font-size: 11px;
	text-transform: uppercase;
	color: #555;
	letter-spacing: 1px;
	border: 1px solid #333;
	padding: 4px 8px;
	border-radius: 4px;
}

.st-badge-gold {
	color: #000;
	background: var(--gold);
	border-color: var(--gold);
	font-weight: 700;
}

.st-term {
	color: #888;
	font-size: 14px;
}

.st-value-group {
	height: 60px;
	display: flex;
	align-items: center;
}

.st-percent-display {
	font-size: 48px;
	font-family: "Cinzel", serif;
	color: #fff;
}

.st-profit-display {
	font-size: 36px;
	font-weight: 600;
	color: #4caf50;
	text-shadow: 0 0 10px rgba(76, 175, 80, 0.3);
}

.st-bar-bg {
	width: 100%;
	height: 4px;
	background: #222;
	border-radius: 2px;
	margin-top: 15px;
	overflow: hidden;
}

.st-bar-fill {
	width: 0%;
	height: 100%;
	background: #fff;
	transition: width 1s ease-out;
}

.st-card:hover .st-bar-fill {
	width: 100% !important;
}

.st-footer {
	border-top: 1px solid #222;
	padding-top: 15px;
	margin-top: 20px;
	display: flex;
	justify-content: space-between;
	align-items: center;
	font-size: 13px;
}

.st-total-label {
	color: #666;
}

.st-total-val {
	color: #aaa;
	font-weight: 700;
	font-size: 15px;
}

/* Game UI / Selector */
.nx-game-ui {
	background-color: #050505;
	color: #fff;
	padding: 80px 0;
	box-sizing: border-box;
}

.nx-interface {
	display: flex;
	flex-wrap: wrap;
	gap: 50px;
}

.nx-ctx,
.nx-selector {
	flex: 1;
	min-width: 300px;
}

.nx-ctx-box {
	margin-bottom: 30px;
	padding-left: 15px;
	border-left: 2px solid #333;
	transition: 0.3s;
}

.nx-ctx-box:hover {
	border-left-color: var(--gold);
}

.nx-ctx-box p {
	margin: 0;
	color: #888;
	font-size: 13px;
	line-height: 1.6;
}

.nx-ctx-sub {
	margin-top: 20px;
	padding: 15px 25px;
	background: #111;
	border: 1px solid #222;
	border-radius: 6px;
	display: inline-block;
}

.nx-slot {
	position: relative;
	background: #111;
	border: 1px solid #333;
	margin-bottom: 15px;
	border-radius: 8px;
	overflow: hidden;
	cursor: pointer;
	transition: 0.3s;
	height: 80px;
}

.nx-slot:hover {
	height: 100px;
	border-color: #666;
	transform: translateX(10px);
}

.nx-fill {
	position: absolute;
	top: 0;
	left: 0;
	bottom: 0;
	width: 0%;
	background: rgba(255, 255, 255, 0.05);
	transition: width 0.4s ease;
	z-index: 0;
}

.nx-slot:hover .nx-fill {
	width: 100%;
}

.nx-slot-gold:hover {
	border-color: var(--gold);
}

.nx-slot-gold:hover .nx-fill {
	background: rgba(212, 175, 55, 0.15);
}

.nx-slot-red:hover {
	border-color: #ff4444;
}

.nx-slot-red:hover .nx-fill {
	background: rgba(255, 68, 68, 0.15);
}

.nx-content {
	position: relative;
	z-index: 1;
	display: flex;
	align-items: center;
	height: 100%;
	padding: 0 25px;
	gap: 20px;
}

.nx-icon {
	font-size: 24px;
	width: 30px;
	text-align: center;
}

.nx-data {
	flex-grow: 1;
}

.nx-title {
	font-weight: bold;
	font-size: 14px;
	letter-spacing: 1px;
	margin-bottom: 4px;
}

.nx-desc {
	font-size: 11px;
	color: #666;
	text-transform: uppercase;
	transition: 0.3s;
}

.nx-slot:hover .nx-desc {
	color: #fff;
}

.nx-stat {
	font-size: 28px;
	font-weight: bold;
	text-align: right;
	line-height: 1;
}

.nx-apy {
	font-size: 9px;
	color: #555;
	margin-top: 2px;
}

.nx-blur {
	filter: blur(4px);
	opacity: 0.5;
	transition: 0.4s;
}

.nx-slot-red:hover .nx-blur {
	filter: blur(0px);
	opacity: 1;
	color: #ff4444;
}

/* B2B card */
.nx-otc-css {
	background-color: #050505;
	padding: 100px 0;
	color: #fff;
}

.nx-validation-wrapper {
	margin-top: 18px;
}

.nx-magic-input {
	width: 100%;
	background: #000;
	border: 2px solid #333;
	color: #fff;
	font-size: 24px;
	padding: 15px;
	border-radius: 8px;
	outline: none;
	box-sizing: border-box;
	font-weight: bold;
}

.nx-magic-input:valid {
	border-color: var(--gold);
	color: var(--gold);
}

.nx-magic-input:valid ~ .nx-success {
	display: block;
}

.nx-magic-input:valid ~ .nx-error {
	display: none;
}

.nx-magic-input:invalid {
	border-color: #ff4444;
	color: #ff4444;
}

.nx-magic-input:invalid ~ .nx-success {
	display: none;
}

.nx-magic-input:invalid ~ .nx-error {
	display: block;
}

.nx-feedback {
	margin-top: 20px;
	text-align: center;
	animation: fadeIn 0.3s;
}

.nx-btn-vip {
	background: var(--gold);
	color: #000;
	border: none;
	padding: 15px 30px;
	font-weight: bold;
	cursor: pointer;
	border-radius: 4px;
	width: 100%;
	text-transform: uppercase;
}

.nx-btn-vip:hover {
	background: #fff;
}

/* Express swap */
.nx-atm-wrap {
	background-color: #0b0b0b;
	padding: 80px 0;
	color: #fff;
}

.nx-rates-grid {
	display: flex;
	gap: 15px;
	margin-top: 30px;
}

.nx-rate-item {
	background: #111;
	border: 1px solid #222;
	padding: 10px 15px;
	border-radius: 8px;
	font-size: 12px;
}

.nx-atm-machine {
	background: #151515;
	border: 1px solid #333;
	border-radius: 20px;
	padding: 30px;
	box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}

.nx-screen-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	font-size: 10px;
	color: #555;
	margin-bottom: 20px;
	font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
}

.nx-dot {
	width: 6px;
	height: 6px;
	background: #0f0;
	border-radius: 50%;
	animation: pulse 2s infinite;
}

.nx-swap-row {
	background: #0a0a0a;
	border: 1px solid #222;
	padding: 15px;
	border-radius: 12px;
	transition: 0.2s;
}

.nx-swap-row:focus-within {
	border-color: #4444ff;
}

.nx-input-grp label {
	display: block;
	font-size: 10px;
	color: #666;
	margin-bottom: 5px;
}

.nx-inp-box {
	display: flex;
	justify-content: space-between;
	align-items: center;
}

.nx-s-inp {
	background: transparent;
	border: none;
	color: #fff;
	font-size: 24px;
	font-weight: bold;
	width: 100%;
	outline: none;
}

.nx-s-inp::-webkit-outer-spin-button,
.nx-s-inp::-webkit-inner-spin-button {
	-webkit-appearance: none;
	margin: 0;
}

.nx-curr {
	font-weight: bold;
	color: #888;
}

.nx-arrow-row {
	text-align: center;
	color: #444;
	margin: 10px 0;
	font-size: 18px;
}

.nx-info-row {
	display: flex;
	justify-content: space-between;
	font-size: 11px;
	color: #555;
	margin: 20px 0;
	height: 15px;
}

.nx-swap-btn {
	width: 100%;
	padding: 18px;
	background: #4444ff;
	color: #fff;
	border: none;
	border-radius: 8px;
	font-weight: bold;
	font-size: 14px;
	cursor: pointer;
	transition: 0.3s;
	text-transform: uppercase;
	letter-spacing: 1px;
}

.nx-swap-btn:hover {
	background: #5555ff;
	box-shadow: 0 0 20px rgba(68, 68, 255, 0.4);
}

.nx-swap-btn:disabled {
	background: #333;
	color: #666;
	cursor: not-allowed;
	box-shadow: none;
}

/* Access levels */
.nx-access-wrap {
	background-color: #080808;
	padding: 100px 0;
	color: #fff;
}

.nx-levels-grid {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 30px;
}

.nx-level-card {
	flex: 1;
	min-width: 300px;
	max-width: 350px;
	border-radius: 16px;
	padding: 30px;
	position: relative;
	box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
	transition: 0.3s;
	overflow: hidden;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
}

.nx-silver {
	background: linear-gradient(135deg, #e0e0e0 0%, #b0b0b0 100%);
	color: #000;
}

.nx-gold-tier {
	background: #111;
	border: 2px solid var(--gold);
	color: #fff;
	transform: scale(1.05);
	z-index: 2;
}

.nx-black {
	background: linear-gradient(135deg, #1a1a1a 0%, #000 100%);
	border: 1px solid #333;
	color: #fff;
}

.nx-chip {
	width: 40px;
	height: 30px;
	background: linear-gradient(135deg, #d4af37 0%, #a08020 100%);
	border-radius: 4px;
	margin-bottom: 20px;
	opacity: 0.8;
}

.nx-card-top {
	display: flex;
	justify-content: space-between;
	align-items: flex-start;
	margin-bottom: 30px;
}

.nx-card-name {
	font-size: 18px;
	font-weight: bold;
	letter-spacing: 2px;
}

.nx-card-tier {
	font-size: 10px;
	border: 1px solid currentColor;
	padding: 2px 5px;
	border-radius: 4px;
}

.nx-price {
	font-size: 42px;
	font-weight: bold;
	line-height: 1;
}

.nx-curr {
	font-size: 20px;
	vertical-align: top;
}

.nx-min-lbl {
	font-size: 10px;
	opacity: 0.6;
	margin-bottom: 30px;
}

.nx-feats {
	list-style: none;
	padding: 0;
	margin: 0 0 30px 0;
}

.nx-feats li {
	padding: 10px 0;
	border-bottom: 1px solid rgba(0, 0, 0, 0.1);
	font-size: 13px;
}

.nx-btn-acc {
	width: 100%;
	padding: 15px;
	background: #000;
	color: #fff;
	border: none;
	border-radius: 6px;
	font-weight: bold;
	text-transform: uppercase;
	cursor: pointer;
	transition: 0.3s;
}

.nx-btn-acc:hover {
	opacity: 0.85;
	transform: translateY(-2px);
}

.nx-gold-tier .nx-btn-acc {
	background: var(--gold);
	color: #000;
}

.nx-black .nx-btn-acc {
	background: #333;
	color: #fff;
	border: 1px solid #555;
}

.nx-black .nx-btn-acc:hover {
	background: #fff;
	color: #000;
}

.nx-level-card:hover {
	transform: translateY(-10px);
}

.nx-gold-tier:hover {
	transform: translateY(-10px) scale(1.05);
	box-shadow: 0 30px 60px rgba(212, 175, 55, 0.2);
}

/* Final CTA */
.nx-final-wrap {
	background-color: #050505;
	padding: 100px 0;
	position: relative;
	overflow: hidden;
}

.nx-contract-card {
	background: #0e0e0e;
	border: 1px solid #333;
	border-radius: 16px;
	overflow: hidden;
	box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5);
	margin-bottom: 60px;
}

.nx-contract-header {
	background: #151515;
	padding: 15px 30px;
	border-bottom: 1px solid #333;
	font-size: 11px;
	color: #666;
	letter-spacing: 2px;
	display: flex;
	justify-content: space-between;
	font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
}

.nx-table {
	width: 100%;
	border-collapse: collapse;
	text-align: left;
}

.nx-table th {
	color: #555;
	font-size: 11px;
	font-weight: bold;
	padding: 20px 30px;
	border-bottom: 1px solid #222;
}

.nx-table td {
	padding: 25px 30px;
	border-bottom: 1px solid #1a1a1a;
	color: #ccc;
	font-size: 15px;
}

.nx-table tr:last-child td {
	border-bottom: none;
}

.nx-highlight-row {
	background: rgba(212, 175, 55, 0.03);
}

.nx-strong {
	font-weight: bold;
	color: #fff;
	letter-spacing: 1px;
}

.nx-val {
	font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
	font-size: 18px;
}

.nx-note {
	font-size: 13px;
	color: #888;
}

.nx-security-row {
	background: #111;
	padding: 15px 30px;
	border-top: 1px solid #222;
	display: flex;
	justify-content: center;
	gap: 30px;
	flex-wrap: wrap;
}

.nx-sec-item {
	font-size: 10px;
	color: #555;
	letter-spacing: 1px;
	font-weight: bold;
}

.nx-cta-container {
	text-align: center;
}

.nx-mega-btn {
	background: linear-gradient(135deg, #d4af37 0%, #a08020 100%);
	border: none;
	padding: 25px 80px;
	border-radius: 50px;
	cursor: pointer;
	transition: 0.3s;
	box-shadow: 0 0 30px rgba(212, 175, 55, 0.3);
	position: relative;
	overflow: hidden;
	display: inline-block;
}

.nx-mega-btn:hover {
	transform: translateY(-5px) scale(1.02);
	box-shadow: 0 0 50px rgba(212, 175, 55, 0.6);
}

.nx-mega-btn::after {
	content: "";
	position: absolute;
	top: 0;
	left: -100%;
	width: 100%;
	height: 100%;
	background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
	transition: 0.5s;
	transform: skewX(-20deg);
}

.nx-mega-btn:hover::after {
	left: 200%;
	transition: 0.7s;
}

.nx-btn-text {
	display: block;
	font-size: 20px;
	font-weight: 900;
	color: #000;
	letter-spacing: 2px;
	margin-bottom: 5px;
}

.nx-btn-sub {
	display: block;
	font-size: 11px;
	color: #333;
	font-weight: bold;
	text-transform: uppercase;
}

.nx-cta-note {
	margin-top: 20px;
	font-size: 11px;
	color: #444;
}

/* Animations */
@keyframes grid-move {
	0% {
		transform: perspective(500px) rotateX(60deg) translateY(0);
	}
	100% {
		transform: perspective(500px) rotateX(60deg) translateY(60px);
	}
}

@keyframes pulse-glow {
	0% {
		opacity: 0.3;
		transform: translate(-50%, -50%) scale(1);
	}
	100% {
		opacity: 0.6;
		transform: translate(-50%, -50%) scale(1.1);
	}
}

@keyframes blink {
	0%,
	100% {
		opacity: 1;
	}
	50% {
		opacity: 0.3;
	}
}

@keyframes bounce {
	0%,
	20%,
	50%,
	80%,
	100% {
		transform: translateY(0);
	}
	40% {
		transform: translateY(-5px);
	}
	60% {
		transform: translateY(-3px);
	}
}

@keyframes fadeIn {
	from {
		opacity: 0;
		transform: translateY(-5px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

@keyframes pulse {
	0% {
		opacity: 1;
	}
	50% {
		opacity: 0.5;
	}
	100% {
		opacity: 1;
	}
}

/* Mobile */
@media (max-width: 768px) {
	.nexus-hero-wrapper {
		min-height: 80vh;
	}
	.nh-hud {
		display: none;
	}
	.nh-grid {
		width: 300%;
		left: -100%;
	}
	.nx-nav-desktop {
		display: none;
	}
	.nx-burger {
		display: inline-flex;
	}
	.nx-mobile-grid {
		grid-template-columns: 1fr;
	}
}

@media (max-width: 600px) {
	.nx-table th,
	.nx-table td {
		padding: 15px;
		font-size: 13px;
	}
	.nx-val {
		font-size: 14px;
	}
	.nx-mega-btn {
		padding: 20px 40px;
		width: 100%;
	}
}
/*
 * This is a manifest file that'll be compiled into application.css, which will include all the files
 * listed below.
 *
 * Any CSS (and SCSS, if configured) file within this directory, lib/assets/stylesheets, or any plugin's
 * vendor/assets/stylesheets directory can be referenced here using a relative path.
 *
 * You're free to add application-wide styles to this file and they'll appear at the bottom of the
 * compiled file so the styles you add here take precedence over styles defined in any other CSS
 * files in this directory. Styles in this file should be added after the last require_* statement.
 * It is generally better to create a new file per style scope.
 *


 */

:root {
	color-scheme: dark;
	--lux-bg: #050806;
	--lux-bg-soft: #0b120d;
	--lux-surface: #101b14;
	--lux-surface-elev: #14231a;
	--lux-border: #1f3a2b;
	--lux-border-strong: #2c5b41;
	--lux-text: #e8f8ee;
	--lux-text-muted: #90b39d;
	--lux-accent: #39d98a;
	--lux-accent-strong: #2fb875;
	--lux-danger: #ca4f4f;
}

body {
	background: radial-gradient(circle at 20% -10%, #12301f 0%, var(--lux-bg) 48%, #030504 100%);
	color: var(--lux-text);
}

*,
*::before,
*::after {
	box-sizing: border-box;
}

h1,
h2,
h3,
h4,
p,
li,
span,
a,
button {
	overflow-wrap: anywhere;
}
