:root {
  color-scheme: dark;
  --page: #050607;
  --page-soft: #070809;
  --panel: #0d1011;
  --panel-2: #111416;
  --raised: #151718;
  --ink: #f3eee2;
  --ink-soft: #d8ccb6;
  --muted: #a8a8a8;
  --line: rgba(214, 166, 76, 0.25);
  --line-strong: rgba(244, 204, 120, 0.42);
  --line-white: rgba(255, 255, 255, 0.08);
  --surface: var(--panel);
  --surface-soft: var(--page-soft);
  --surface-cool: var(--panel-2);
  --green: #d6a64c;
  --green-strong: #d6a64c;
  --mint: rgba(214, 166, 76, 0.13);
  --blue: #f4cc78;
  --blue-soft: rgba(244, 204, 120, 0.12);
  --gold: #d6a64c;
  --gold-bright: #f4cc78;
  --gold-soft: rgba(214, 166, 76, 0.15);
  --success: #45c060;
  --success-soft: rgba(69, 192, 96, 0.16);
  --red: #e05f55;
  --red-soft: rgba(224, 95, 85, 0.16);
  --orange: #d18b45;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.45);
  --shadow-soft: 0 14px 34px rgba(0, 0, 0, 0.28);
  --radius: 8px;
  --sidebar: 274px;
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  scroll-behavior: smooth;
  max-width: 100%;
  overflow-x: hidden;
}

body {
  margin: 0;
  max-width: 100%;
  overflow-x: hidden;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--surface-soft);
  color: var(--ink);
  letter-spacing: 0;
}

body.is-app,
body.is-admin {
  background: #f4f7f5;
}

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

a {
  color: inherit;
}

button,
input,
select,
textarea {
  font: inherit;
  letter-spacing: 0;
}

button {
  cursor: pointer;
}

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

.public-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 20;
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 12px clamp(18px, 5vw, 56px);
  background: rgba(255, 255, 255, 0.86);
  border-bottom: 1px solid rgba(217, 228, 221, 0.75);
  backdrop-filter: blur(16px);
}

.brand-lockup {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  min-width: max-content;
}

.brand-lockup strong {
  display: block;
  font-size: 1rem;
  line-height: 1.1;
}

.brand-lockup small {
  display: block;
  color: var(--muted);
  font-size: 0.75rem;
  margin-top: 2px;
}

.brand-mark {
  width: 38px;
  height: 38px;
  border-radius: 8px;
  overflow: hidden;
  flex: 0 0 auto;
  display: inline-grid;
  place-items: center;
  color: #fff;
  font-weight: 850;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.18), transparent 45%),
    linear-gradient(135deg, var(--green-strong), var(--blue));
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.22), 0 8px 18px rgba(20, 82, 57, 0.2);
}

.brand-mark img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.public-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  flex: 1;
}

.public-menu-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  flex: 1;
}

.public-menu-brand,
.public-nav-icon {
  display: none;
}

.public-nav a {
  color: var(--ink-soft);
  text-decoration: none;
  font-weight: 700;
  font-size: 0.9rem;
  padding: 10px 12px;
  border-radius: 8px;
}

.public-nav a:hover,
.public-nav a:focus-visible {
  background: rgba(34, 107, 76, 0.08);
  outline: none;
}

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

.hamburger-button {
  display: none;
  width: 42px;
  height: 42px;
  border-radius: 8px;
  border: 1px solid var(--line-strong);
  background: #fff;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  padding: 0;
  transition: background-color 160ms ease, border-color 160ms ease, transform 120ms ease;
}

.hamburger-button span {
  width: 20px;
  height: 2px;
  border-radius: 2px;
  background: var(--ink);
}

.hamburger-button:hover,
.hamburger-button:focus-visible {
  background: var(--mint);
  border-color: rgba(34, 107, 76, 0.28);
  outline: none;
}

.hamburger-button:active {
  transform: translateY(1px);
}

.app-menu-button {
  background: var(--mint);
}

.text-link {
  color: var(--blue);
  text-decoration: none;
  font-weight: 750;
  font-size: 0.9rem;
}

.btn {
  min-height: 40px;
  border-radius: 8px;
  border: 1px solid transparent;
  padding: 0 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 780;
  text-decoration: none;
  transition: transform 160ms ease, border-color 160ms ease, background-color 160ms ease, box-shadow 160ms ease;
}

.btn:hover,
.btn:focus-visible {
  transform: translateY(-1px);
  outline: none;
}

.btn-primary {
  color: #fff;
  background: var(--green-strong);
  border-color: var(--green-strong);
  box-shadow: 0 10px 24px rgba(20, 82, 57, 0.18);
}

.btn-primary:hover,
.btn-primary:focus-visible {
  background: #0f4731;
}

.btn-light {
  color: var(--ink);
  background: #fff;
  border-color: rgba(255, 255, 255, 0.8);
}

.btn-ghost-light {
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.45);
}

.btn-quiet {
  color: var(--green-strong);
  background: var(--mint);
  border-color: rgba(34, 107, 76, 0.12);
}

.btn-outline {
  color: var(--ink);
  background: #fff;
  border-color: var(--line-strong);
}

.btn-danger {
  color: #fff;
  background: var(--red);
  border-color: var(--red);
}

.btn-large {
  min-height: 48px;
  padding: 0 18px;
}

.public-site {
  overflow: hidden;
}

.hero-section {
  position: relative;
  min-height: 86vh;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: end;
  padding: 140px clamp(18px, 5vw, 64px) 64px;
  isolation: isolate;
}

.hero-media,
.hero-media::after {
  position: absolute;
  inset: 0;
  z-index: -2;
  overflow: hidden;
}

.hero-media::after {
  content: "";
  z-index: 1;
  background:
    linear-gradient(90deg, rgba(16, 32, 24, 0.82) 0%, rgba(16, 32, 24, 0.52) 38%, rgba(16, 32, 24, 0.08) 76%),
    linear-gradient(0deg, rgba(16, 32, 24, 0.52) 0%, transparent 46%);
}

.hero-image {
  width: 100%;
  height: 112%;
  object-fit: cover;
  object-position: center;
  filter: saturate(0.98) contrast(1.02);
}

.hero-scrim {
  position: absolute;
  inset: auto 0 0;
  height: 26%;
  background: linear-gradient(0deg, var(--surface-soft), transparent);
  z-index: 2;
}

.hero-content {
  width: min(680px, 100%);
  color: #fff;
  padding-bottom: 34px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--green);
  font-weight: 850;
  text-transform: uppercase;
  font-size: 0.76rem;
  letter-spacing: 0.08em;
}

.hero-content .eyebrow,
.future-inner .eyebrow {
  color: #d9efdf;
}

.hero-content h1 {
  margin: 0;
  font-size: 5.2rem;
  line-height: 0.94;
  max-width: 10ch;
}

.hero-copy {
  margin: 24px 0;
  max-width: 640px;
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.1rem;
  line-height: 1.65;
}

.trust-line {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.trust-line span {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  padding: 0 12px;
  border-radius: 8px;
  color: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.24);
  background: rgba(255, 255, 255, 0.11);
  backdrop-filter: blur(10px);
  font-size: 0.85rem;
  font-weight: 720;
}

.hero-inspection {
  position: absolute;
  right: clamp(18px, 5vw, 64px);
  bottom: 42px;
  width: min(360px, calc(100vw - 36px));
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 8px;
  box-shadow: var(--shadow);
  padding: 16px;
  backdrop-filter: blur(16px);
}

.inspection-head,
.panel-head,
.admin-view-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.inspection-head {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
}

.inspection-head strong {
  color: var(--ink);
}

.status-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #3daf6b;
  box-shadow: 0 0 0 5px rgba(61, 175, 107, 0.16);
}

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

.hero-inspection dt {
  color: var(--muted);
  font-size: 0.73rem;
  font-weight: 760;
  text-transform: uppercase;
}

.hero-inspection dd {
  margin: 3px 0 0;
  color: var(--ink);
  font-weight: 820;
}

.hero-inspection p {
  margin: 0;
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.45;
}

.content-band,
.split-band,
.future-band {
  padding: 86px clamp(18px, 5vw, 64px);
}

.section-heading {
  max-width: 760px;
  margin: 0 auto 34px;
  text-align: center;
}

.section-heading h2,
.split-copy h2,
.future-inner h2 {
  margin: 0;
  font-size: 3rem;
  line-height: 1.05;
}

.section-heading p,
.split-copy p,
.future-inner p {
  margin: 16px 0 0;
  color: var(--muted);
  line-height: 1.7;
  font-size: 1.02rem;
}

.process-grid,
.market-preview-grid,
.wallet-grid,
.risk-grid {
  max-width: 1180px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.process-step,
.wallet-tile,
.risk-item,
.outlook-panel,
.market-preview-card,
.market-activity,
.dashboard-preview {
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: 8px;
  box-shadow: var(--shadow-soft);
}

.process-step,
.wallet-tile,
.risk-item {
  padding: 20px;
}

.step-number {
  display: inline-flex;
  width: 38px;
  height: 30px;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: var(--blue-soft);
  color: var(--blue);
  font-weight: 850;
  font-size: 0.8rem;
}

.process-step h3,
.wallet-tile h3,
.risk-item h3,
.market-activity h3,
.dashboard-preview h3,
.outlook-panel h3 {
  margin: 16px 0 8px;
  font-size: 1.05rem;
}

.process-step p,
.wallet-tile p,
.risk-item p,
.outlook-panel p,
.market-card-body p {
  margin: 0;
  color: var(--muted);
  line-height: 1.58;
  font-size: 0.93rem;
}

.split-band {
  max-width: 1220px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  align-items: center;
  gap: clamp(28px, 5vw, 70px);
}

.metadata-visual {
  position: relative;
  min-height: 440px;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.metadata-visual img {
  width: 100%;
  height: 100%;
  min-height: 440px;
  object-fit: cover;
  object-position: 68% center;
}

.tag-callout {
  position: absolute;
  left: 24px;
  bottom: 24px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.75);
  padding: 14px 16px;
  box-shadow: var(--shadow-soft);
}

.tag-callout span {
  display: block;
  color: var(--green);
  font-size: 0.75rem;
  font-weight: 850;
  text-transform: uppercase;
}

.tag-callout strong {
  display: block;
  margin-top: 4px;
}

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

.metadata-list span {
  min-height: 42px;
  display: flex;
  align-items: center;
  padding: 0 12px;
  border-radius: 8px;
  background: var(--surface);
  border: 1px solid var(--line);
  color: var(--ink-soft);
  font-weight: 760;
}

.alpha-band {
  background:
    radial-gradient(circle at 18% 0%, rgba(69, 192, 96, 0.1), transparent 32%),
    var(--page);
}

.alpha-grid {
  max-width: 1180px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.alpha-card {
  min-height: 210px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 22px;
  border: 1px solid var(--line-white);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), transparent),
    var(--panel);
  box-shadow: var(--shadow-soft);
}

.alpha-card--wide {
  grid-column: span 2;
}

.alpha-card span {
  color: var(--gold-bright);
  font-size: 0.76rem;
  font-weight: 850;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.alpha-card strong {
  display: block;
  margin: 14px 0 10px;
  color: var(--ink);
  font-size: clamp(1.25rem, 2.5vw, 1.85rem);
  line-height: 1.08;
}

.alpha-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
  font-size: 0.94rem;
}

.market-band {
  background:
    linear-gradient(180deg, #f6f8f4 0%, #eef5f6 100%);
}

.market-preview-grid {
  grid-template-columns: minmax(0, 0.9fr) minmax(280px, 0.75fr) minmax(280px, 0.75fr);
  align-items: stretch;
}

.market-preview-card {
  overflow: hidden;
}

.market-thumb {
  min-height: 210px;
  background:
    linear-gradient(0deg, rgba(20, 82, 57, 0.28), transparent),
    url("lambnft-product-nft.png") center / cover;
}

.market-card-body,
.market-activity,
.dashboard-preview {
  padding: 18px;
}

.market-card-body h3 {
  margin: 12px 0 4px;
  font-size: 1.4rem;
}

.market-card-body strong {
  display: block;
  margin-top: 16px;
  font-size: 1.3rem;
}

.market-card-body small {
  display: block;
  margin-top: 6px;
  color: var(--muted);
}

.timeline-list {
  list-style: none;
  margin: 18px 0 0;
  padding: 0;
  display: grid;
  gap: 18px;
}

.timeline-list li {
  display: grid;
  grid-template-columns: 16px 1fr;
  gap: 12px;
  align-items: start;
}

.timeline-list li > span {
  width: 12px;
  height: 12px;
  margin-top: 4px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 5px var(--gold-soft);
}

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

.timeline-list small {
  color: var(--muted);
  margin-top: 3px;
}

.preview-bar {
  height: 8px;
  border-radius: 8px;
  background: linear-gradient(90deg, var(--green), var(--blue) 58%, var(--gold));
  margin-bottom: 18px;
}

.preview-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
}

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

.mini-chart {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  align-items: end;
  height: 82px;
  margin-top: 18px;
}

.mini-chart span {
  border-radius: 8px 8px 0 0;
  background: var(--mint);
}

.mini-chart span:nth-child(1) { height: 38%; }
.mini-chart span:nth-child(2) { height: 68%; background: var(--blue-soft); }
.mini-chart span:nth-child(3) { height: 52%; background: var(--gold-soft); }
.mini-chart span:nth-child(4) { height: 82%; background: var(--mint); }

.economics-band {
  align-items: stretch;
}

.legal-note {
  padding: 16px;
  border-radius: 8px;
  border: 1px solid #eadfbf;
  background: var(--gold-soft);
}

.outlook-panel {
  padding: 24px;
}

.outlook-panel ul {
  margin: 18px 0 0;
  padding-left: 20px;
  color: var(--muted);
  line-height: 1.75;
}

.wallet-band {
  background: #fff;
}

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

.wallet-tile span {
  color: var(--blue);
  font-size: 0.78rem;
  font-weight: 850;
  text-transform: uppercase;
}

.wallet-tile strong {
  display: block;
  margin: 10px 0 8px;
  font-size: 1.15rem;
}

.future-band {
  background:
    linear-gradient(90deg, rgba(15, 71, 49, 0.86), rgba(40, 95, 125, 0.75)),
    url("lambnft-operations-farm.png") center / cover fixed;
  color: #fff;
}

.future-inner {
  max-width: 760px;
}

.future-inner p {
  color: rgba(255, 255, 255, 0.86);
}

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

.support-cta {
  max-width: 1180px;
  margin: 24px auto 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 20px;
  border: 1px solid var(--line-white);
  border-radius: 8px;
  background:
    linear-gradient(90deg, rgba(214, 166, 76, 0.16), rgba(69, 192, 96, 0.08)),
    var(--panel);
  box-shadow: var(--shadow-soft);
}

.support-cta span,
.support-cta strong {
  display: block;
}

.support-cta span {
  color: var(--gold-bright);
  font-size: 0.76rem;
  font-weight: 850;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.support-cta strong {
  margin-top: 6px;
  color: var(--ink);
  line-height: 1.4;
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 620ms ease, transform 620ms ease;
}

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

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

.app-sidebar,
.admin-sidebar {
  position: sticky;
  top: 0;
  align-self: start;
  min-height: 100vh;
  background: #102018;
  color: #eef8f2;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.app-sidebar .brand-lockup small,
.admin-sidebar .brand-lockup small {
  color: rgba(238, 248, 242, 0.66);
}

.app-nav,
.admin-nav {
  display: grid;
  gap: 6px;
}

.app-nav button,
.admin-nav button,
.sidebar-logout {
  width: 100%;
  min-height: 42px;
  text-align: left;
  border: 1px solid transparent;
  border-radius: 8px;
  color: rgba(238, 248, 242, 0.78);
  background: transparent;
  padding: 0 12px;
  font-weight: 760;
}

.app-nav button:hover,
.app-nav button:focus-visible,
.app-nav button.is-active,
.admin-nav button:hover,
.admin-nav button:focus-visible,
.admin-nav button.is-active,
.sidebar-logout:hover,
.sidebar-logout:focus-visible {
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
  outline: none;
}

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

.sidebar-note {
  margin-top: auto;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  padding: 14px;
  background: rgba(255, 255, 255, 0.08);
}

.sidebar-note p {
  margin: 8px 0 0;
  color: rgba(238, 248, 242, 0.72);
  line-height: 1.45;
  font-size: 0.86rem;
}

.app-workspace,
.admin-workspace {
  min-width: 0;
}

.app-topbar,
.admin-topbar {
  position: sticky;
  top: 0;
  z-index: 12;
  min-height: 78px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  padding: 16px clamp(18px, 4vw, 36px);
  background: rgba(244, 247, 245, 0.92);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}

.app-topbar h1,
.admin-topbar h1 {
  margin: 0;
  font-size: 1.7rem;
}

.app-user,
.admin-user {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.app-user span,
.admin-user span {
  max-width: 260px;
  overflow-wrap: anywhere;
  color: var(--muted);
  font-weight: 750;
}

.app-main,
.admin-main {
  padding: 22px clamp(18px, 4vw, 36px) 42px;
}

.app-view,
.admin-view {
  display: none;
}

.app-view.is-active,
.admin-view.is-active {
  display: block;
}

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

.metric-panel,
.panel,
.admin-panel {
  min-width: 0;
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: 8px;
  box-shadow: var(--shadow-soft);
}

.metric-panel {
  padding: 18px;
}

.metric-panel-button {
  display: block;
  width: 100%;
  color: inherit;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
}

.metric-panel span {
  color: var(--muted);
  font-weight: 780;
  font-size: 0.86rem;
}

.metric-panel strong {
  display: block;
  margin: 10px 0 4px;
  font-size: 1.85rem;
  overflow-wrap: anywhere;
}

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

.workspace-grid,
.admin-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  align-items: start;
}

.panel,
.admin-panel {
  padding: 18px;
}

.wide-panel {
  grid-column: 1 / -1;
}

.panel-head,
.admin-view-head {
  margin-bottom: 16px;
}

.panel-head h2,
.admin-view-head h2,
.admin-panel h2 {
  margin: 0;
  font-size: 1.05rem;
}

.panel-head p,
.admin-view-head p {
  margin: 5px 0 0;
  color: var(--muted);
  line-height: 1.45;
  font-size: 0.91rem;
}

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

.compact-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfb;
}

.compact-item strong,
.compact-item span {
  overflow-wrap: anywhere;
}

.compact-item span {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.86rem;
}

.balance-stack {
  display: grid;
  gap: 10px;
  margin-bottom: 14px;
}

.policy-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 10px;
  margin: 0 0 14px;
}

.policy-item {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfb;
  padding: 10px;
}

.policy-item span {
  display: block;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 850;
  text-transform: uppercase;
}

.policy-item strong {
  display: block;
  margin-top: 4px;
  overflow-wrap: anywhere;
  font-size: 0.9rem;
}

.deposit-qr-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 132px;
  gap: 16px;
  align-items: center;
  margin: 0 0 14px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfb;
}

.deposit-qr-card strong {
  display: block;
  margin-bottom: 4px;
}

.deposit-qr-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
  font-size: 0.86rem;
}

.deposit-qr-box {
  width: 132px;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  overflow: hidden;
  color: var(--muted);
  font-size: 0.8rem;
  text-align: center;
}

.deposit-qr-box img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.balance-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 14px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: #fbfcfb;
}

.balance-row span {
  color: var(--muted);
  font-weight: 760;
}

.balance-row strong {
  overflow-wrap: anywhere;
  text-align: right;
}

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

label {
  display: grid;
  gap: 6px;
  color: var(--ink-soft);
  font-weight: 760;
  font-size: 0.89rem;
}

input,
select,
textarea {
  width: 100%;
  min-height: 42px;
  border-radius: 8px;
  border: 1px solid var(--line-strong);
  background: #fff;
  color: var(--ink);
  padding: 8px 10px;
}

textarea {
  min-height: 92px;
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  outline: 3px solid rgba(40, 95, 125, 0.16);
  border-color: var(--blue);
}

.form-help {
  margin: 12px 0 0;
  color: var(--muted);
  line-height: 1.5;
  font-size: 0.86rem;
}

.data-table-wrap {
  width: 100%;
  overflow-x: auto;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 640px;
}

.data-table th,
.data-table td {
  padding: 10px 8px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
  font-size: 0.88rem;
}

.data-table th {
  color: var(--muted);
  font-size: 0.74rem;
  text-transform: uppercase;
  font-weight: 850;
  background: #fff;
}

.data-table td {
  color: var(--ink-soft);
}

.data-table code,
.code-chip {
  display: inline-block;
  max-width: 260px;
  overflow-wrap: anywhere;
  border-radius: 8px;
  background: #eef3f0;
  padding: 3px 6px;
  color: var(--ink);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.78rem;
}

.data-table .is-action-cell {
  position: sticky;
  right: 0;
  z-index: 1;
  background: #fff;
  box-shadow: -8px 0 12px rgba(24, 45, 34, 0.04);
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 14px;
}

.product-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  overflow: hidden;
  box-shadow: var(--shadow-soft);
}

.product-image {
  height: 160px;
  background: var(--surface-cool);
  overflow: hidden;
}

.product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-body {
  padding: 14px;
}

.product-body h3 {
  margin: 10px 0 5px;
  font-size: 1.12rem;
}

.product-meta {
  display: grid;
  gap: 6px;
  margin: 12px 0;
  color: var(--muted);
  font-size: 0.86rem;
}

.product-meta strong {
  color: var(--ink-soft);
}

.card-status-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.product-actions {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}

.list-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
}

.list-form input {
  min-height: 40px;
}

.pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 26px;
  padding: 0 9px;
  border-radius: 8px;
  background: #edf2ef;
  color: var(--ink-soft);
  font-weight: 850;
  font-size: 0.74rem;
  text-transform: uppercase;
}

.pill-green {
  background: var(--mint);
  color: var(--green-strong);
}

.pill-blue {
  background: var(--blue-soft);
  color: var(--blue);
}

.pill-gold {
  background: var(--gold-soft);
  color: #755715;
}

.pill-red {
  background: var(--red-soft);
  color: var(--red);
}

.pill-orange {
  background: #faeadf;
  color: var(--orange);
}

.filter-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: end;
}

.filter-row > * {
  min-width: 180px;
}

.alert {
  margin: 14px clamp(18px, 4vw, 36px) 0;
  padding: 12px 14px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink-soft);
}

.alert.compact {
  margin: 0 0 12px;
}

.alert.is-error {
  border-color: #e5b8b4;
  background: var(--red-soft);
  color: var(--red);
}

.alert.is-success {
  border-color: #b8dcca;
  background: var(--mint);
  color: var(--green-strong);
}

.alert.is-warning {
  border-color: #eadfbf;
  background: var(--gold-soft);
  color: #755715;
}

.empty-state,
.loading-state {
  min-height: 120px;
  border: 1px dashed var(--line-strong);
  border-radius: 8px;
  display: grid;
  place-items: center;
  color: var(--muted);
  text-align: center;
  padding: 20px;
  line-height: 1.5;
}

.loading-state::before {
  content: "";
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 3px solid var(--line);
  border-top-color: var(--green);
  animation: spin 900ms linear infinite;
  margin-bottom: 10px;
}

.auth-dialog,
.detail-dialog,
.admin-login-dialog {
  width: min(920px, calc(100vw - 24px));
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0;
  box-shadow: var(--shadow);
}

.detail-dialog {
  width: min(980px, calc(100vw - 24px));
}

.auth-dialog {
  width: min(1040px, calc(100vw - 24px));
  max-height: calc(100vh - 24px);
  overflow: auto;
}

dialog::backdrop {
  background: rgba(16, 32, 24, 0.54);
  backdrop-filter: blur(5px);
}

.dialog-close {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 2;
  width: 34px;
  height: 34px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  font-weight: 850;
}

.auth-dialog-grid,
.admin-login-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  min-height: 560px;
}

.auth-context,
.admin-login-context {
  padding: 34px;
  color: #fff;
  background:
    linear-gradient(0deg, rgba(15, 71, 49, 0.84), rgba(40, 95, 125, 0.7)),
    url("lambnft-hero-farm.png") center / cover;
}

.auth-context h2,
.admin-login-context h2 {
  margin: 24px 0 10px;
  font-size: 2.2rem;
  line-height: 1.05;
}

.auth-context p,
.admin-login-context p {
  margin: 0;
  color: rgba(255, 255, 255, 0.86);
  line-height: 1.6;
}

.demo-credentials {
  margin-top: 28px;
  display: grid;
  gap: 10px;
}

.demo-credentials button {
  min-height: 40px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.38);
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  text-align: left;
  padding: 0 12px;
}

.auth-forms,
.admin-login-forms {
  padding: 34px;
}

.auth-forms {
  overflow: auto;
}

.segmented {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 4px;
  padding: 4px;
  border-radius: 8px;
  background: #edf2ef;
  margin-bottom: 16px;
}

.segmented button {
  min-height: 36px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--muted);
  font-weight: 820;
}

.segmented button.is-active {
  background: #fff;
  color: var(--ink);
  box-shadow: var(--shadow-soft);
}

.auth-tab {
  display: none;
  gap: 12px;
}

.auth-tab.is-active {
  display: grid;
}

.signup-form {
  gap: 11px;
}

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

.auth-field {
  display: grid;
  gap: 6px;
}

.auth-field label {
  color: var(--ink-soft);
  font-weight: 760;
  font-size: 0.89rem;
}

.auth-field input[aria-invalid="true"],
.auth-field select[aria-invalid="true"] {
  border-color: var(--red);
  background: #fffafa;
}

.form-grid input[aria-invalid="true"],
.form-grid select[aria-invalid="true"],
.mfa-flow-step input[aria-invalid="true"] {
  border-color: var(--red);
  background: #fffafa;
}

.field-error {
  margin: 0;
  color: var(--red);
  font-size: 0.8rem;
  line-height: 1.35;
}

.password-guidance {
  margin: -4px 0 0;
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.4;
}

.password-guidance summary {
  width: fit-content;
  color: var(--gold);
  cursor: pointer;
  font-weight: 760;
}

.password-guidance summary:focus-visible {
  border-radius: 4px;
  outline: 2px solid rgba(244, 204, 120, 0.35);
  outline-offset: 3px;
}

.password-guidance p {
  margin: 6px 0 0;
}

.optional-label {
  color: var(--muted);
  font-weight: 720;
  font-size: 0.78rem;
}

.text-button {
  border: 0;
  background: transparent;
  color: var(--green-strong);
  font-weight: 820;
  text-align: left;
  padding: 2px 0;
  width: fit-content;
}

.text-button:hover,
.text-link:hover {
  color: var(--green);
}

.auth-inline-action {
  padding-top: 4px;
}

.activation-form {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.secret-box {
  margin: 12px 0;
  padding: 12px;
  border-radius: 8px;
  background: #eef3f0;
  border: 1px solid var(--line);
  overflow-wrap: anywhere;
  line-height: 1.5;
}

.secret-box p {
  margin: 6px 0 10px;
  color: var(--muted);
}

.mfa-qr {
  width: 184px;
  max-width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 10px;
  margin: 0;
}

.recovery-code-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 8px;
}

.internal-tools {
  margin-top: 18px;
  padding: 14px;
  border: 1px dashed var(--line-strong);
  border-radius: 8px;
  background: #fbfcfb;
  display: grid;
  gap: 12px;
}

.internal-tools p {
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
  font-size: 0.86rem;
}

.auth-page {
  min-height: 100vh;
  background:
    linear-gradient(0deg, rgba(245, 248, 245, 0.9), rgba(245, 248, 245, 0.9)),
    url("lambnft-hero-farm.png") center / cover fixed;
}

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

.auth-page-panel {
  width: min(520px, 100%);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow);
  padding: clamp(24px, 5vw, 38px);
  display: grid;
  gap: 16px;
}

.auth-page-panel h1 {
  margin: 8px 0 0;
  font-size: clamp(2rem, 8vw, 3.2rem);
  line-height: 1;
}

.auth-page-panel p {
  margin: 0;
  color: var(--ink-soft);
  line-height: 1.6;
}

.confirm-dialog {
  width: min(520px, calc(100vw - 24px));
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0;
  box-shadow: var(--shadow);
}

.confirm-dialog form {
  padding: 22px;
}

.confirm-dialog h2 {
  margin: 0 0 14px;
  font-size: 1.3rem;
}

.confirm-grid {
  display: grid;
  gap: 8px;
  margin: 0 0 14px;
}

.confirm-grid div {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 12px;
  padding: 9px 0;
  border-bottom: 1px solid var(--line);
}

.confirm-grid dt {
  color: var(--muted);
  font-weight: 850;
  font-size: 0.78rem;
  text-transform: uppercase;
}

.confirm-grid dd {
  margin: 0;
  overflow-wrap: anywhere;
  font-weight: 720;
}

.risk-warning {
  margin: 12px 0 0;
  padding: 10px;
  border-radius: 8px;
  border: 1px solid #eadfbf;
  background: var(--gold-soft);
  color: #755715;
  line-height: 1.45;
}

.dialog-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 18px;
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: 18px;
  padding: 22px;
}

.detail-hero {
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--line);
}

.detail-hero img {
  width: 100%;
  height: 280px;
  object-fit: cover;
}

.detail-copy h2 {
  margin: 0 0 8px;
  font-size: 1.8rem;
}

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

.definition-grid div {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px;
  background: #fbfcfb;
}

.definition-grid dt {
  color: var(--muted);
  font-size: 0.72rem;
  text-transform: uppercase;
  font-weight: 850;
}

.definition-grid dd {
  margin: 4px 0 0;
  overflow-wrap: anywhere;
  font-weight: 760;
}

.toast-region {
  position: fixed;
  z-index: 80;
  right: 16px;
  bottom: 16px;
  display: grid;
  gap: 10px;
  width: min(360px, calc(100vw - 32px));
}

.toast {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow-soft);
  padding: 12px 14px;
  line-height: 1.45;
}

.toast strong {
  display: block;
  margin-bottom: 4px;
}

.admin-login-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 18px;
  background:
    linear-gradient(115deg, rgba(16, 32, 24, 0.9), rgba(40, 95, 125, 0.66)),
    url("lambnft-hero-farm.png") center / cover;
}

.admin-login-dialog {
  position: relative;
  background: #fff;
  overflow: hidden;
}

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

.admin-kicker {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  border-radius: 8px;
  padding: 0 10px;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.28);
  font-size: 0.8rem;
  font-weight: 850;
}

.admin-shell[hidden],
.app-shell[hidden],
.public-site[hidden],
.public-header[hidden],
.admin-login-page[hidden] {
  display: none;
}

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

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

.admin-two-col {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.58fr);
  gap: 16px;
}

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

.row-form {
  display: grid;
  grid-template-columns: minmax(110px, 1fr) minmax(110px, 1fr) auto;
  gap: 8px;
  align-items: end;
}

.flag-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 12px;
}

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

.priority-tile {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfb;
  padding: 14px;
  text-align: left;
  color: inherit;
}

.priority-tile span,
.priority-tile small {
  display: block;
}

.priority-tile span {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 850;
  text-transform: uppercase;
}

.priority-tile strong {
  display: block;
  margin: 6px 0 4px;
  font-size: 1.7rem;
}

.priority-tile small {
  color: var(--muted);
  line-height: 1.4;
}

.flag-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
  background: #fbfcfb;
}

.flag-card h3 {
  margin: 0 0 10px;
  font-size: 1rem;
}

.flag-card .flag-check {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.flag-card .flag-note {
  display: grid;
  gap: 6px;
  margin-bottom: 10px;
}

.flag-card input[type="checkbox"] {
  width: 18px;
  min-height: 18px;
}

.timeline-panel {
  display: grid;
  gap: 10px;
}

.status-timeline-item {
  border-left: 3px solid var(--green);
  padding: 8px 0 8px 12px;
}

.status-timeline-item strong,
.status-timeline-item span {
  display: block;
}

.status-timeline-item span {
  color: var(--muted);
  font-size: 0.84rem;
  margin-top: 3px;
  overflow-wrap: anywhere;
}

.detail-chip {
  display: inline-grid;
  max-width: 100%;
}

.detail-chip summary {
  cursor: pointer;
  color: var(--blue);
  font-weight: 800;
  font-size: 0.82rem;
}

.detail-chip code {
  display: block;
  white-space: pre-wrap;
  max-width: min(360px, 75vw);
  margin-top: 6px;
}

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

.suspicious-list .compact-item {
  border-color: #eadfbf;
  background: var(--gold-soft);
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

@media (max-width: 1100px) {
  .public-nav {
    display: none;
  }

  .hero-section {
    min-height: auto;
    padding-top: 120px;
  }

  .hero-inspection {
    position: relative;
    right: auto;
    bottom: auto;
    margin-top: 24px;
  }

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

  .market-preview-grid,
  .split-band,
  .admin-two-col {
    grid-template-columns: 1fr;
  }

  .app-shell,
  .admin-shell {
    grid-template-columns: 1fr;
  }

  .app-sidebar,
  .admin-sidebar {
    position: relative;
    min-height: auto;
  }

  .app-nav,
  .admin-nav {
    grid-template-columns: repeat(auto-fit, minmax(128px, 1fr));
  }
}

@media (max-width: 760px) {
  .public-header {
    position: fixed;
    align-items: center;
    flex-wrap: wrap;
  }

  #publicMenuBtn {
    position: relative;
    z-index: 45;
  }

  .public-menu-open #publicMenuBtn {
    background: var(--mint);
    border-color: rgba(34, 107, 76, 0.28);
  }

  .hamburger-button {
    display: inline-flex;
  }

  .public-menu-panel {
    display: none;
    position: fixed;
    z-index: 40;
    inset: 0 auto 0 0;
    width: min(310px, 86vw);
    min-height: 100vh;
    overflow-y: auto;
    flex: none;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 22px;
    padding: 20px;
    color: #eef8f2;
    background: #102018;
    box-shadow: 18px 0 48px rgba(16, 32, 24, 0.26);
  }

  .public-menu-open .public-menu-panel {
    display: flex;
  }

  .public-menu-brand {
    display: inline-flex;
    color: #eef8f2;
  }

  .public-menu-brand small {
    color: rgba(238, 248, 242, 0.66);
  }

  .public-menu-open .public-nav {
    display: grid;
    grid-template-columns: 1fr;
    gap: 6px;
    flex: 0 0 auto;
  }

  .public-menu-open .public-nav a,
  .public-menu-panel .header-actions .btn {
    width: 100%;
    min-height: 42px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 10px;
    border: 1px solid transparent;
    border-left: 3px solid transparent;
    border-radius: 8px;
    color: rgba(238, 248, 242, 0.78);
    background: transparent;
    box-shadow: none;
    padding: 0 12px 0 10px;
    text-align: left;
    font-weight: 760;
    transform: none;
  }

  .public-menu-open .public-nav a:hover,
  .public-menu-open .public-nav a:focus-visible,
  .public-menu-open .public-nav a:active,
  .public-menu-panel .header-actions .btn:hover,
  .public-menu-panel .header-actions .btn:focus-visible,
  .public-menu-panel .header-actions .btn:active {
    color: rgba(238, 248, 242, 0.95);
    background: rgba(255, 255, 255, 0.08);
    outline: none;
    transform: none !important;
  }

  .public-menu-panel .header-actions .btn-primary {
    color: #fff;
    background: rgba(34, 107, 76, 0.2);
    border-left-color: var(--green);
  }

  .public-menu-panel .header-actions .btn-primary:hover,
  .public-menu-panel .header-actions .btn-primary:focus-visible,
  .public-menu-panel .header-actions .btn-primary:active {
    color: #fff;
    background: rgba(34, 107, 76, 0.3);
  }

  .public-nav-icon {
    display: block;
  }

  .public-menu-open .header-actions {
    display: grid;
    grid-template-columns: 1fr;
    gap: 6px;
    padding-top: 8px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
  }

  .hero-section {
    padding: 116px 16px 42px;
  }

  .hero-content h1 {
    font-size: 3rem;
    max-width: 11ch;
  }

  .section-heading h2,
  .split-copy h2,
  .future-inner h2 {
    font-size: 2rem;
  }

  .hero-copy {
    font-size: 1rem;
  }

  .content-band,
  .split-band,
  .future-band {
    padding: 58px 16px;
  }

  .process-grid,
  .alpha-grid,
  .wallet-grid,
  .risk-grid,
  .workspace-grid,
  .metric-grid,
  .admin-metric-grid {
    grid-template-columns: 1fr;
  }

  .alpha-card--wide {
    grid-column: auto;
  }

  .support-cta {
    align-items: stretch;
    flex-direction: column;
  }

  .metadata-list,
  .definition-grid,
  .auth-dialog-grid,
  .auth-form-columns,
  .admin-login-grid,
  .detail-layout {
    grid-template-columns: 1fr;
  }

  .auth-context,
  .admin-login-context,
  .auth-forms,
  .admin-login-forms {
    padding: 24px;
  }

  .app-topbar,
  .admin-topbar {
    position: sticky;
    align-items: center;
    flex-direction: row;
  }

  .app-user,
  .admin-user {
    justify-content: flex-end;
  }

  .app-user > span,
  .admin-user > span {
    display: none;
  }

  #logoutBtn,
  #adminLogoutBtn {
    display: none;
  }

  .mobile-sidebar-action {
    display: block;
  }

  .app-sidebar,
  .admin-sidebar {
    display: none;
    position: fixed;
    z-index: 40;
    inset: 0 auto 0 0;
    width: min(310px, 86vw);
    min-height: 100vh;
    overflow-y: auto;
    box-shadow: 18px 0 48px rgba(16, 32, 24, 0.26);
  }

  .app-nav-open .app-sidebar,
  .admin-nav-open .admin-sidebar {
    display: flex;
  }

  .app-nav,
  .admin-nav {
    grid-template-columns: 1fr;
  }

  .app-main,
  .admin-main {
    padding: 16px;
  }

  .panel-head,
  .admin-view-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .balance-row,
  .compact-item {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .balance-row {
    flex-direction: column;
  }

  .deposit-qr-card {
    grid-template-columns: 1fr;
  }

  .deposit-qr-box {
    width: 150px;
    justify-self: start;
  }

  .data-table-wrap {
    overflow-x: visible;
  }

  .data-table {
    min-width: 0;
    border-collapse: separate;
    border-spacing: 0 12px;
  }

  .data-table thead {
    display: none;
  }

  .data-table,
  .data-table tbody,
  .data-table tr,
  .data-table td {
    display: block;
    width: 100%;
  }

  .data-table tr {
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    box-shadow: var(--shadow-soft);
    overflow: hidden;
  }

  .data-table td {
    display: grid;
    grid-template-columns: minmax(110px, 38%) minmax(0, 1fr);
    gap: 10px;
    border-bottom: 1px solid var(--line);
    padding: 10px 12px;
  }

  .data-table td:last-child {
    border-bottom: 0;
  }

  .data-table td::before {
    content: attr(data-label);
    color: var(--muted);
    font-size: 0.72rem;
    font-weight: 850;
    text-transform: uppercase;
  }

  .data-table .is-action-cell {
    position: static;
    box-shadow: none;
  }

  .balance-row strong {
    text-align: left;
  }

  .list-form,
  .row-form {
    grid-template-columns: 1fr;
  }

  .hero-actions .btn,
  .header-actions .btn,
  .inline-actions .btn,
  .dialog-actions .btn {
    width: 100%;
  }

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

  .dialog-actions {
    flex-direction: column-reverse;
  }

  .app-user .hamburger-button,
  .admin-user .hamburger-button {
    width: 42px;
    flex: 0 0 42px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.001ms !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }

  .future-band {
    background-attachment: scroll;
  }
}

/* ===========================================
   REDESIGN 2026 — EXCHANGE TRADER INTERFACE
   =========================================== */

/* ---- Global typography ---- */
body {
  font-size: 15px;
}

/* Tabular numbers for financial values */
#metricAvailable,
#metricHeld,
#metricOwned,
#metricListings,
#metricTotal,
#walletAvailableDisplay,
#walletHeldDisplay,
.balance-row strong,
.product-price {
  font-variant-numeric: tabular-nums;
}

/* Monospace code chips */
.code-chip,
.data-table code {
  font-family: "JetBrains Mono", "Fira Code", "Cascadia Code", ui-monospace, monospace;
  font-size: 0.85em;
  background: var(--surface-soft);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 2px 6px;
}

/* ---- Interaction polish ---- */
.btn {
  transition: background 0.15s, box-shadow 0.15s, transform 0.08s;
}

.btn:active {
  transform: translateY(1px) !important;
}

button:disabled,
.btn:disabled {
  background: var(--surface-soft) !important;
  color: var(--muted) !important;
  border-color: var(--line) !important;
  box-shadow: none !important;
  opacity: 1;
}

.pill {
  transition: background 0.15s;
}

.product-card {
  transition: box-shadow 0.18s, transform 0.18s;
}

.product-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.metric-panel {
  transition: box-shadow 0.18s, transform 0.18s;
}

.metric-panel:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

/* ---- Sidebar redesign ---- */
.app-sidebar {
  border-top: 3px solid var(--green);
}

.nav-icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.app-nav button {
  display: flex;
  align-items: center;
  gap: 10px;
  border-left: 3px solid transparent;
  padding-left: 10px;
}

.app-nav button.is-active {
  color: #fff;
  background: rgba(34, 107, 76, 0.2);
  border-left-color: var(--green);
  outline: none;
}

.app-nav button:hover:not(.is-active) {
  background: rgba(255, 255, 255, 0.08);
  color: rgba(238, 248, 242, 0.95);
}

.sidebar-user {
  padding: 8px 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.sidebar-user-email {
  display: block;
  color: rgba(238, 248, 242, 0.5);
  font-size: 0.76rem;
  overflow-wrap: anywhere;
}

/* ---- Topbar ---- */
.app-topbar {
  min-height: 66px;
  gap: 12px;
}

.topbar-title h1,
.app-topbar h1 {
  font-size: 1.45rem;
  font-weight: 700;
  margin: 0;
}

/* ---- Panel headings ---- */
.panel-head h2 {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0;
}

.panel-open-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  border: none;
  background: transparent;
  color: var(--green-strong);
  font-size: 0.82rem;
  font-weight: 760;
  padding: 4px 8px;
  border-radius: 6px;
  cursor: pointer;
  white-space: nowrap;
  text-decoration: none;
}

.panel-open-link:hover {
  background: var(--mint);
}

/* ---- Compact items padding + status stripe ---- */
.compact-item {
  padding: 14px 12px;
}

.compact-item--active,
.compact-item--available,
.compact-item--owned,
.compact-item--credited,
.compact-item--confirmed {
  border-left: 3px solid var(--green);
}

.compact-item--pending,
.compact-item--requested,
.compact-item--listed,
.compact-item--observed,
.compact-item--held {
  border-left: 3px solid var(--gold);
}

.compact-item--cancelled,
.compact-item--rejected,
.compact-item--failed,
.compact-item--suspended,
.compact-item--aborted {
  border-left: 3px solid var(--red);
}

.compact-item--filled {
  border-left: 3px solid var(--blue);
}

/* ---- Dashboard hero ---- */
.dashboard-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
  background: var(--green-strong);
  border-radius: var(--radius);
  padding: 24px 28px;
  margin-bottom: 18px;
  color: #fff;
}

.dashboard-hero-label {
  display: block;
  font-size: 0.74rem;
  font-weight: 850;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: rgba(255, 255, 255, 0.65);
  margin-bottom: 6px;
}

.dashboard-hero-total {
  display: block;
  font-size: 2.5rem;
  font-weight: 700;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.dashboard-hero-sub {
  display: block;
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.55);
  margin-top: 6px;
}

.dashboard-hero-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  flex-shrink: 0;
}

.btn-hero-action {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 38px;
  padding: 0 18px;
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  font-weight: 760;
  font-size: 0.88rem;
  cursor: pointer;
  transition: background 0.15s;
}

.btn-hero-action:hover {
  background: rgba(255, 255, 255, 0.26);
}

.dashboard-empty {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 16px 18px;
  margin: 0 0 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.dashboard-empty[hidden] {
  display: none;
}

.dashboard-empty h2 {
  margin: 0 0 4px;
  font-size: 1.05rem;
}

.dashboard-empty p {
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
}

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

/* ---- Metric panel redesign ---- */
.metric-panel-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
}

.metric-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  opacity: 0.4;
}

.metric-panel strong {
  font-size: 1.75rem;
}

.metric-panel-action {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
  color: var(--gold-bright) !important;
  font-size: 0.78rem !important;
  font-weight: 850 !important;
  text-transform: uppercase;
}

.metric-panel--green {
  border-left: 4px solid var(--green);
}

.metric-panel--gold {
  border-left: 4px solid var(--gold);
}

.metric-panel--blue {
  border-left: 4px solid var(--blue);
}

.metric-panel--mint {
  border-left: 4px solid #3daf6b;
}

/* ---- Wallet balance hero ---- */
.wallet-balance-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.wallet-platform-nfts {
  margin-bottom: 16px;
  scroll-margin-top: 22px;
  outline: none;
  transition: border-color 0.18s, box-shadow 0.18s;
}

.wallet-platform-nfts.is-section-highlighted {
  border-color: var(--gold-bright);
  box-shadow:
    0 0 0 2px rgba(244, 204, 120, 0.24),
    var(--shadow-soft);
}

.wallet-balance-hero-balances {
  display: flex;
  gap: 28px;
  flex-wrap: wrap;
  align-items: flex-end;
}

.wallet-balance-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.wallet-balance-item > span {
  font-size: 0.74rem;
  font-weight: 850;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
}

.wallet-balance-available #walletAvailableDisplay,
#walletAvailableDisplay {
  display: block;
  font-size: 2rem;
  font-weight: 700;
  color: var(--green-strong);
  font-variant-numeric: tabular-nums;
  line-height: 1;
}

.wallet-balance-held #walletHeldDisplay,
#walletHeldDisplay {
  display: block;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--gold);
  font-variant-numeric: tabular-nums;
  line-height: 1;
}

.wallet-balance-hero-address {
  display: flex;
  flex-direction: column;
  gap: 6px;
  max-width: 460px;
}

.wallet-address-label {
  font-size: 0.74rem;
  font-weight: 850;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
}

.wallet-address-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.wallet-address-code {
  max-width: 300px;
  overflow-wrap: anywhere;
  font-size: 0.76rem;
}

/* ---- Wallet operation disclosures ---- */
.wallet-operation-panel {
  padding: 0;
  overflow: hidden;
}

.wallet-operation-summary {
  margin: 0;
  padding: 18px;
  list-style: none;
  cursor: pointer;
  user-select: none;
}

.wallet-operation-summary::-webkit-details-marker {
  display: none;
}

.wallet-operation-meta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.wallet-operation-meta svg {
  color: var(--muted);
  transition: transform 0.16s;
}

.wallet-operation-panel[open] .wallet-operation-meta svg {
  transform: rotate(180deg);
}

.wallet-operation-body {
  border-top: 1px solid var(--line);
  padding: 16px 18px 18px;
}

form.wallet-operation-body {
  margin: 0;
}

/* ---- Deposit section ---- */
.deposit-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: stretch;
  margin-top: 0;
}

.wallet-chain-field {
  grid-column: 1 / -1;
}

.deposit-address-panel {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fbfcfb;
}

.wallet-memo-panel {
  display: grid;
  gap: 6px;
}

.deposit-qr-centered {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  text-align: center;
  padding: 20px 16px;
  min-width: 232px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fbfcfb;
}

.deposit-qr-large {
  width: 200px !important;
  height: 200px !important;
  aspect-ratio: 1 !important;
}

.deposit-qr-network {
  display: flex;
  justify-content: center;
}

.deposit-trc20-warning {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  margin: 0;
  padding: 9px 12px;
  border-radius: 6px;
  border: 1px solid #eadfbf;
  background: var(--gold-soft);
  color: #755715;
  font-size: 0.83rem;
  line-height: 1.45;
  text-align: left;
  width: 100%;
  box-sizing: border-box;
}

.deposit-trc20-warning svg {
  flex-shrink: 0;
  margin-top: 1px;
}

.deposit-actions {
  grid-column: 1 / -1;
  margin-top: 0;
}

.wallet-policy-grid {
  grid-column: 1 / -1;
  margin: 0;
}

.wallet-safety-note {
  margin-top: -4px;
  padding-left: 10px;
  border-left: 3px solid var(--gold);
}

/* ---- Full-width button ---- */
.btn-full-width {
  width: 100%;
}

/* ---- Table zebra striping ---- */
.data-table tbody tr:nth-child(even) td {
  background: var(--surface-soft);
}

.data-table tbody tr:nth-child(even) .is-action-cell {
  background: var(--surface-soft);
}

/* ---- Filter tabs (marketplace) ---- */
.filter-tabs {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  padding: 4px 0 16px;
}

.filter-tab {
  min-height: 34px;
  padding: 0 16px;
  border-radius: 20px;
  border: 1px solid var(--line-strong);
  background: #fff;
  color: var(--ink-soft);
  font-size: 0.84rem;
  font-weight: 760;
  cursor: pointer;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}

.filter-tab:hover {
  background: var(--mint);
  border-color: var(--green);
  color: var(--green-strong);
}

.filter-tab.is-active {
  background: var(--green-strong);
  border-color: var(--green-strong);
  color: #fff;
}

.hidden-select {
  display: none;
}

/* ---- Product card image redesign ---- */
.product-image-wrap {
  position: relative;
  height: 200px;
  overflow: hidden;
  background: var(--surface-cool);
}

.product-image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.product-image-wrap::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 45%;
  background: linear-gradient(0deg, rgba(16, 32, 24, 0.38), transparent);
  pointer-events: none;
}

.product-image-overlay {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 2;
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  align-items: flex-start;
}

.product-price {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--green-strong);
  margin: 8px 0 6px;
  font-variant-numeric: tabular-nums;
  line-height: 1.1;
}

.product-price-currency {
  font-size: 1rem;
  font-weight: 600;
  color: var(--green);
}

/* ---- Product grid responsive ---- */
.product-grid--market,
.product-grid--owned {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

@media (max-width: 1199px) {
  .product-grid--market,
  .product-grid--owned {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 767px) {
  .product-grid--market,
  .product-grid--owned {
    grid-template-columns: 1fr;
  }
}

/* ---- Platform NFTs: listed vs unlisted ---- */
.product-card--listed {
  border-left: 4px solid var(--green);
}

.product-listed-watermark {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 2;
  font-size: 0.62rem;
  font-weight: 850;
  letter-spacing: 0.12em;
  color: #fff;
  background: var(--green-strong);
  border-radius: 4px;
  padding: 2px 7px;
  text-transform: uppercase;
}

/* Portfolio summary bar */
.owned-summary-bar {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.owned-stat-chip {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 10px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fbfcfb;
  min-width: 100px;
}

.owned-stat-chip > span {
  font-size: 0.72rem;
  font-weight: 850;
  text-transform: uppercase;
  color: var(--muted);
}

.owned-stat-chip > strong {
  font-size: 1.4rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.owned-stat-chip--green > strong {
  color: var(--green-strong);
}

/* Listing form within card */
.list-form-card {
  background: var(--surface-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 12px;
  display: grid;
  gap: 8px;
  margin-top: 8px;
}

.list-price-input-wrap {
  display: flex;
  align-items: center;
  gap: 6px;
}

.list-price-input-wrap input {
  flex: 1;
  min-width: 140px;
}

.list-price-suffix {
  font-size: 0.83rem;
  font-weight: 760;
  color: var(--muted);
  white-space: nowrap;
}

.list-btn-full {
  width: 100%;
}

/* ---- Security page ---- */
.mfa-hero {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
  margin-bottom: 16px;
  padding: 22px 24px;
}

.mfa-hero-icon-wrap {
  width: 64px;
  height: 64px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  background: var(--surface-soft);
  border: 1px solid var(--line);
  color: var(--muted);
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.mfa-hero-icon-wrap--enabled {
  background: #dff1e8;
  color: var(--green);
  border-color: rgba(34, 107, 76, 0.22);
}

.mfa-hero-icon-wrap--disabled {
  background: var(--red-soft);
  color: var(--red);
  border-color: rgba(166, 64, 59, 0.22);
}

.mfa-hero-svg {
  width: 34px;
  height: 34px;
}

.mfa-hero-body {
  flex: 1;
  min-width: 180px;
}

.mfa-hero-title {
  font-size: 1.1rem;
  font-weight: 700;
  margin: 0 0 4px;
  text-transform: none;
  letter-spacing: 0;
  color: var(--ink);
}

.mfa-hero-subtitle {
  font-size: 0.88rem;
  color: var(--muted);
  margin: 0 0 8px;
  line-height: 1.4;
}

.mfa-hero-subtitle--safe {
  color: var(--green-strong);
}

.mfa-hero-subtitle--risk {
  color: var(--red);
}

.mfa-hero-action {
  flex-shrink: 0;
}

.security-card {
  padding: 0;
  overflow: hidden;
}

.security-summary {
  margin: 0;
  padding: 18px;
  list-style: none;
  cursor: pointer;
  user-select: none;
  align-items: flex-start;
}

.security-summary::marker {
  content: "";
}

.security-summary::-webkit-details-marker {
  display: none;
}

.security-summary h2 {
  margin: 0;
}

.security-summary p {
  margin: 5px 0 0;
  color: var(--muted);
  line-height: 1.45;
  font-size: 0.9rem;
}

.security-summary:focus-visible {
  outline: 3px solid rgba(40, 95, 125, 0.18);
  outline-offset: -3px;
}

.security-summary-meta {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
}

.security-summary-icon {
  color: var(--muted);
  transition: transform 0.16s;
}

.security-card[open] .security-summary {
  border-bottom: 1px solid var(--line);
}

.security-card[open] .security-summary-icon {
  transform: rotate(180deg);
}

.security-card-body {
  padding: 16px 18px 18px;
}

.account-detail-list {
  display: grid;
  gap: 0;
  margin: 0;
  padding: 4px 18px 18px;
}

.account-detail-row {
  display: grid;
  grid-template-columns: minmax(120px, 0.34fr) minmax(0, 1fr);
  gap: 12px;
  padding: 12px 0;
  border-top: 1px solid var(--line);
}

.account-detail-row:first-child {
  border-top: 0;
}

.account-detail-row dt {
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 760;
}

.account-detail-row dd {
  margin: 0;
  color: var(--ink);
  font-weight: 680;
  overflow-wrap: anywhere;
}

.readonly-account-field {
  display: grid;
  gap: 5px;
  padding: 12px;
  border: 1px solid rgba(244, 204, 120, 0.28);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.045);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.025);
}

.readonly-account-field span {
  color: rgba(243, 238, 226, 0.72);
  font-size: 0.84rem;
  font-weight: 760;
}

.readonly-account-field strong {
  color: var(--ink);
  font-weight: 820;
  overflow-wrap: anywhere;
}

.table-footer-actions {
  display: flex;
  justify-content: flex-start;
  margin-top: 10px;
}

.mfa-flow-panel {
  display: grid;
  gap: 16px;
}

.mfa-flow-head {
  align-items: flex-start;
}

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

.mfa-progress li {
  min-height: 54px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fbfcfb;
}

.mfa-progress span {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #edf2ef;
  color: var(--muted);
  font-weight: 850;
  font-size: 0.88rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.mfa-progress strong {
  min-width: 0;
  font-size: 0.85rem;
  color: var(--muted);
  line-height: 1.25;
}

.mfa-progress li.is-active {
  border-color: rgba(40, 95, 125, 0.28);
  background: var(--blue-soft);
}

.mfa-progress li.is-active span,
.mfa-progress li.is-complete span {
  background: var(--blue);
  color: #fff;
}

.mfa-progress li.is-active strong,
.mfa-progress li.is-complete strong {
  color: var(--ink);
}

.mfa-flow-step {
  display: grid;
  gap: 14px;
  min-height: 270px;
  align-content: start;
}

.mfa-flow-step > p {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
  font-size: 0.88rem;
}

.mfa-step-copy {
  display: grid;
  gap: 4px;
}

.mfa-step-copy h3 {
  margin: 0;
  font-size: 1rem;
  line-height: 1.25;
  color: var(--ink);
}

.mfa-step-copy p {
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
  font-size: 0.9rem;
}

.mfa-password-card {
  display: grid;
  gap: 8px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.04);
}

.mfa-confirmed-note {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding: 12px;
  border: 1px solid rgba(69, 192, 96, 0.3);
  border-radius: var(--radius);
  background: var(--success-soft);
  color: var(--ink);
}

.mfa-confirmed-note strong {
  font-size: 0.92rem;
}

.mfa-confirmed-note span {
  color: var(--muted);
  font-size: 0.88rem;
}

.mfa-setup-card {
  min-height: 226px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #eef3f0;
  display: grid;
  align-content: start;
  gap: 10px;
  overflow-wrap: anywhere;
}

.mfa-setup-card--ready {
  align-content: start;
  justify-items: start;
  gap: 12px;
  background: #f5faf7;
  border-color: rgba(69, 192, 96, 0.3);
}

.mfa-setup-card-copy {
  margin: -4px 0 2px;
  color: var(--muted);
  line-height: 1.45;
  font-size: 0.88rem;
}

.mfa-qr-frame {
  width: min(100%, 228px);
  padding: 14px;
  border-radius: 8px;
  border: 1px solid rgba(69, 192, 96, 0.26);
  background: #fff;
  box-shadow: 0 12px 24px rgba(15, 71, 49, 0.12);
}

.mfa-qr-frame .mfa-qr {
  width: 100%;
  border: 0;
  padding: 0;
  box-shadow: none;
}

.mfa-manual-key {
  display: block;
  width: 100%;
  max-width: 100%;
  padding: 10px 12px;
  border-radius: 8px;
  background: #fff;
  border: 1px solid var(--line);
  color: var(--ink);
  font-size: 0.9rem;
  line-height: 1.45;
}

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

.checkbox-line {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: var(--ink-soft);
  font-weight: 760;
}

.checkbox-line input {
  width: 18px;
  min-height: 18px;
  margin-top: 2px;
  flex-shrink: 0;
}

.recovery-confirm {
  margin-top: 2px;
}

/* Session table current session highlight */
.is-current-session td {
  background: rgba(223, 241, 232, 0.45) !important;
}

/* Security event result coloring */
tr[data-event-result="FAILURE"] td {
  background: rgba(248, 232, 229, 0.7);
}

tr[data-event-result="SUCCESS"] td {
  background: rgba(223, 241, 232, 0.28);
}

/* Sessions actions layout */
.sessions-actions {
  display: flex;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 14px;
}

.sign-out-others-wrap {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.sign-out-others-help {
  margin: 0 !important;
  font-size: 0.81rem !important;
}

/* ---- Responsive additions ---- */
@media (max-width: 1100px) {
  .dashboard-hero {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 760px) {
  .security-summary {
    flex-direction: column;
  }

  .security-summary-meta {
    width: 100%;
    justify-content: space-between;
  }

  .account-detail-row {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .wallet-balance-hero {
    flex-direction: column;
    align-items: flex-start;
  }

  .wallet-address-code {
    max-width: 100%;
  }

  .deposit-section {
    grid-template-columns: 1fr;
  }

  .deposit-qr-centered {
    min-width: 0;
  }

  .owned-summary-bar {
    flex-wrap: wrap;
  }

  .owned-stat-chip {
    flex: 1;
    min-width: 80px;
  }

  .mfa-hero {
    flex-direction: column;
    align-items: flex-start;
  }

  .mfa-progress {
    grid-template-columns: 1fr;
  }

  .mfa-flow-actions .btn {
    width: 100%;
  }

  .deposit-qr-large {
    width: 160px !important;
    height: 160px !important;
  }

  .dashboard-hero-total {
    font-size: 2rem;
  }

  .dashboard-empty {
    align-items: flex-start;
    flex-direction: column;
  }

  .dashboard-empty-actions {
    justify-content: flex-start;
  }

  .sessions-actions {
    flex-direction: column;
  }
}

/* ---- Collectible livestock marketplace ---- */
.marketplace-layout {
  display: grid;
  grid-template-columns: minmax(300px, 380px) minmax(0, 1fr);
  gap: 16px;
  align-items: start;
}

.marketplace-listings-panel {
  min-width: 0;
}

.trade-history-panel {
  min-width: 0;
}

.trade-history-head {
  margin-bottom: 10px;
}

.trade-history-list {
  --trade-row-height: 50px;
  min-width: 0;
}

.trade-history-list .empty-state,
.trade-history-list .loading-state {
  min-height: calc((var(--trade-row-height) * 2));
}

.trade-history-table {
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--line-white);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.025);
}

.trade-history-header,
.trade-history-row {
  display: grid;
  grid-template-columns: 44px minmax(0, 1.1fr) minmax(0, 1fr) 68px 78px;
  align-items: center;
  gap: 7px;
}

.trade-history-header {
  min-height: 28px;
  padding: 0 8px;
  color: var(--gold-bright);
  background: rgba(214, 166, 76, 0.08);
  border-bottom: 1px solid var(--line);
  font-size: 0.64rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.trade-history-header span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.trade-history-scroll {
  max-height: calc(var(--trade-row-height) * 5);
  overflow-y: auto;
  scrollbar-width: thin;
}

.trade-history-row {
  min-width: 0;
  height: var(--trade-row-height);
  padding: 5px 8px;
  border-bottom: 1px solid var(--line-white);
}

.trade-history-row:last-child {
  border-bottom: 0;
}

.trade-history-nft {
  min-width: 0;
}

.trade-history-nft-button {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 6px;
  background: transparent;
}

.trade-history-nft-button:hover .trade-history-icon,
.trade-history-nft-button:focus-visible .trade-history-icon {
  border-color: rgba(244, 204, 120, 0.78);
  box-shadow: 0 0 0 2px rgba(244, 204, 120, 0.18);
}

.trade-history-icon {
  width: 40px;
  height: 40px;
  border: 1px solid rgba(214, 166, 76, 0.32);
  border-radius: 6px;
  object-fit: cover;
  background: #080909;
}

.trade-history-name,
.trade-history-time {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.trade-history-name {
  color: var(--ink-soft);
  font-family: "JetBrains Mono", "Fira Code", "Cascadia Code", ui-monospace, monospace;
  font-size: 0.7rem;
}

.trade-history-time {
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 760;
}

.trade-history-price {
  color: var(--gold-bright);
  font-size: 0.78rem;
  font-weight: 900;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.trade-history-pagination {
  min-height: 34px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 10px;
}

.trade-history-page-btn {
  width: 34px;
  min-width: 34px;
  min-height: 32px;
  padding: 0;
}

.trade-history-page-label {
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 850;
  text-transform: uppercase;
}

.product-grid--market {
  align-items: start;
  gap: 14px;
}

.product-grid--market .empty-state {
  grid-column: 1 / -1;
}

@media (min-width: 1540px) {
  .product-grid--market {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }
}

@media (min-width: 1240px) and (max-width: 1539px) {
  .product-grid--market {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
}

@media (min-width: 900px) and (max-width: 1239px) {
  .product-grid--market {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (min-width: 761px) and (max-width: 899px) {
  .product-grid--market {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

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

.nft-card {
  position: relative;
  min-width: 0;
  border-color: rgba(23, 33, 27, 0.12);
  background: #fff;
  cursor: pointer;
  isolation: isolate;
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.nft-card:hover,
.nft-card:focus-visible {
  border-color: rgba(197, 155, 69, 0.66);
  box-shadow: 0 18px 44px rgba(24, 45, 34, 0.15);
  outline: none;
  transform: translateY(-3px);
}

.nft-card.is-selected {
  border-color: rgba(197, 155, 69, 0.9);
  box-shadow: 0 18px 48px rgba(24, 45, 34, 0.17), 0 0 0 1px rgba(197, 155, 69, 0.28);
}

.nft-artwork {
  aspect-ratio: 1 / 1;
  height: auto;
  background:
    linear-gradient(135deg, rgba(20, 82, 57, 0.08), rgba(197, 155, 69, 0.12)),
    var(--surface-cool);
}

.nft-artwork img {
  transition: transform 220ms ease;
}

.nft-card:hover .nft-artwork img,
.nft-card:focus-visible .nft-artwork img {
  transform: scale(1.035);
}

.nft-artwork::after {
  height: 34%;
  background: linear-gradient(0deg, rgba(16, 32, 24, 0.16), transparent);
}

.nft-card-body {
  display: grid;
  gap: 5px;
  padding: 10px 11px 12px;
}

.nft-id {
  margin: 0;
  color: var(--ink);
  font-size: 0.96rem;
  font-weight: 880;
  line-height: 1.15;
  overflow-wrap: anywhere;
}

.nft-price {
  color: #123c2b;
  font-size: 1.18rem;
  font-weight: 900;
  line-height: 1.05;
  font-variant-numeric: tabular-nums;
  overflow-wrap: anywhere;
}

.nft-price span {
  color: var(--green);
  font-size: 0.72rem;
  font-weight: 850;
}

.nft-source {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 5px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 720;
}

.nft-source span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.nft-verification {
  min-height: 19px;
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.nft-share-chip,
.nft-verify,
.nft-owned-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-width: 0;
  border-radius: 999px;
  padding: 2px 6px;
  font-size: 0.68rem;
  font-weight: 850;
  line-height: 1.2;
  text-transform: uppercase;
}

.nft-verify {
  color: var(--blue);
  background: rgba(229, 240, 244, 0.82);
  border: 1px solid rgba(40, 95, 125, 0.12);
}

.nft-share-chip {
  color: var(--green-strong);
  background: var(--mint);
  border: 1px solid rgba(34, 107, 76, 0.14);
}

.nft-owned-chip {
  color: var(--green-strong);
  background: var(--mint);
  border: 1px solid rgba(34, 107, 76, 0.12);
}

.product-page-shell {
  display: grid;
  gap: 14px;
}

.product-page-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.product-page-panel {
  display: grid;
  grid-template-columns: minmax(280px, 0.95fr) minmax(340px, 1.05fr);
  gap: 24px;
  padding: 18px;
  border: 1px solid rgba(23, 33, 27, 0.12);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(246, 248, 244, 0.98)),
    #fff;
  box-shadow: 0 20px 52px rgba(24, 45, 34, 0.12);
}

.product-page-artwork {
  align-self: start;
  border: 1px solid rgba(23, 33, 27, 0.12);
  border-radius: 8px;
  overflow: hidden;
  background: var(--surface-cool);
}

.product-page-artwork img {
  width: 100%;
  aspect-ratio: 1 / 1;
  max-height: 540px;
  object-fit: cover;
}

.product-page-content {
  min-width: 0;
  display: grid;
  align-content: start;
  gap: 14px;
}

.product-page-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.product-page-header h3 {
  margin: 0;
  color: var(--ink);
  font-size: 2rem;
  line-height: 1;
}

.product-page-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 9px;
}

.product-page-price,
.product-page-source {
  display: grid;
  gap: 3px;
}

.product-page-price {
  padding: 14px 0 12px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.product-page-price span,
.product-page-source span {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 850;
  text-transform: uppercase;
}

.product-page-price strong {
  color: #123c2b;
  font-size: 2.15rem;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.product-page-price small {
  color: var(--green);
  font-size: 0.9rem;
  font-weight: 850;
}

.product-page-source strong {
  color: var(--ink-soft);
  font-size: 1rem;
  overflow-wrap: anywhere;
}

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

.product-page-actions .btn {
  min-height: 48px;
  width: 100%;
}

.product-page-loading .loading-state {
  min-height: 92px;
}

.product-page-warning,
.product-page-note {
  margin: 0;
  padding: 10px 12px;
  border-radius: 8px;
  line-height: 1.45;
  font-size: 0.86rem;
}

.product-page-warning {
  border: 1px solid #eadfbf;
  background: var(--gold-soft);
  color: #755715;
}

.product-page-note {
  border: 1px solid var(--line);
  background: #fbfcfb;
  color: var(--muted);
}

.product-page-table {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
}

.product-page-table div {
  display: grid;
  grid-template-columns: 124px minmax(0, 1fr);
  gap: 10px;
  padding: 11px 12px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.product-page-table div:nth-child(2n) {
  border-right: 0;
}

.product-page-table div:nth-last-child(-n + 2) {
  border-bottom: 0;
}

.product-page-table dt {
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 850;
  text-transform: uppercase;
}

.product-page-table dd {
  margin: 0;
  color: var(--ink);
  font-weight: 760;
  overflow-wrap: anywhere;
}

@media (max-width: 760px) {
  .product-grid--market {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .nft-card:hover,
  .nft-card:focus-visible {
    transform: none;
  }

  .nft-card-body {
    gap: 4px;
    padding: 8px;
  }

  .nft-id {
    font-size: 0.82rem;
  }

  .nft-price {
    font-size: 0.98rem;
  }

  .nft-price span {
    font-size: 0.62rem;
  }

  .nft-source {
    font-size: 0.69rem;
  }

  .nft-verification {
    display: none;
  }

  .product-page-panel {
    grid-template-columns: 1fr;
    gap: 14px;
    padding: 12px;
  }

  .product-page-header h3 {
    font-size: 1.32rem;
  }

  .product-page-header {
    gap: 10px;
  }

  .product-page-price strong {
    font-size: 1.58rem;
  }

  .product-page-actions {
    grid-template-columns: 1fr;
  }

  .product-page-table {
    grid-template-columns: 1fr;
  }

  .product-page-table div,
  .product-page-table div:nth-child(2n),
  .product-page-table div:nth-last-child(-n + 2) {
    grid-template-columns: 1fr;
    gap: 4px;
    grid-column: auto;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .product-page-table div:last-child {
    border-bottom: 0;
  }
}

/* ===========================================
   LAMB LEGENDS DARK MARKETPLACE THEME
   =========================================== */

html {
  background: var(--page);
}

body {
  min-width: 320px;
  background:
    linear-gradient(180deg, rgba(244, 204, 120, 0.035), transparent 220px),
    linear-gradient(180deg, var(--page) 0%, var(--page-soft) 100%);
  color: var(--ink);
}

body.is-app,
body.is-admin,
.public-site,
.app-workspace,
.admin-workspace {
  background:
    linear-gradient(180deg, rgba(244, 204, 120, 0.025), transparent 280px),
    var(--page);
  color: var(--ink);
}

::selection {
  background: rgba(244, 204, 120, 0.32);
  color: #fff7df;
}

a,
.text-link,
.text-button,
.detail-chip summary,
.panel-open-link {
  color: var(--gold-bright);
}

a:focus-visible,
button:focus-visible,
input:focus,
select:focus,
textarea:focus,
[role="button"]:focus-visible {
  outline: 2px solid rgba(244, 204, 120, 0.72);
  outline-offset: 2px;
}

.brand-lockup {
  gap: 10px;
  color: var(--ink);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.brand-lockup strong {
  color: var(--gold-bright);
  font-weight: 900;
  line-height: 1;
}

.brand-lockup small {
  color: var(--muted);
  font-size: 0.68rem;
  letter-spacing: 0.14em;
}

.brand-mark {
  color: #090a0a;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.32), transparent 44%),
    linear-gradient(180deg, var(--gold-bright), var(--gold));
  border: 1px solid rgba(244, 204, 120, 0.7);
  box-shadow:
    inset 0 0 0 1px rgba(5, 6, 7, 0.36),
    0 0 22px rgba(214, 166, 76, 0.18);
}

.auth-context .brand-mark,
.admin-login-context .brand-mark {
  width: 52px;
  height: 52px;
}

.public-header,
.app-topbar,
.admin-topbar {
  background: rgba(5, 6, 7, 0.88);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.28);
}

.public-header {
  min-height: 66px;
  padding-block: 10px;
}

.public-menu-panel {
  color: var(--ink);
}

.public-nav a,
.app-nav button,
.admin-nav button,
.sidebar-logout {
  color: rgba(243, 238, 226, 0.68);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 0.76rem;
  font-weight: 850;
}

.public-nav a:hover,
.public-nav a:focus-visible,
.app-nav button:hover,
.app-nav button:focus-visible,
.app-nav button.is-active,
.admin-nav button:hover,
.admin-nav button:focus-visible,
.admin-nav button.is-active,
.sidebar-logout:hover,
.sidebar-logout:focus-visible {
  color: var(--gold-bright);
  background: rgba(214, 166, 76, 0.11);
  border-color: rgba(214, 166, 76, 0.18);
}

.btn,
.btn-hero-action,
.filter-tab,
.panel-open-link {
  border-radius: 8px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-size: 0.78rem;
}

.btn-primary,
.btn-light {
  color: #090a0a;
  background: linear-gradient(180deg, var(--gold-bright), var(--gold));
  border-color: rgba(244, 204, 120, 0.78);
  box-shadow: 0 10px 28px rgba(214, 166, 76, 0.18);
}

.btn-primary:hover,
.btn-primary:focus-visible,
.btn-light:hover,
.btn-light:focus-visible {
  background: linear-gradient(180deg, #ffdc8f, #d9ab54);
  box-shadow: 0 0 0 1px rgba(244, 204, 120, 0.22), 0 14px 34px rgba(214, 166, 76, 0.24);
}

.btn-outline,
.btn-quiet,
.btn-ghost-light,
.btn-hero-action {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.045);
  border-color: var(--line);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.03);
}

.btn-outline:hover,
.btn-outline:focus-visible,
.btn-quiet:hover,
.btn-quiet:focus-visible,
.btn-ghost-light:hover,
.btn-ghost-light:focus-visible,
.btn-hero-action:hover,
.btn-hero-action:focus-visible {
  color: var(--gold-bright);
  background: rgba(214, 166, 76, 0.1);
  border-color: rgba(244, 204, 120, 0.5);
}

.btn-danger {
  color: #fff;
  background: #7a211f;
  border-color: rgba(224, 95, 85, 0.64);
}

button:disabled,
.btn:disabled {
  color: rgba(168, 168, 168, 0.72) !important;
  background: rgba(255, 255, 255, 0.045) !important;
  border-color: rgba(255, 255, 255, 0.08) !important;
}

.hero-section {
  min-height: 76vh;
  padding-top: 128px;
  padding-bottom: 48px;
  background: var(--page);
}

.hero-media::after {
  background:
    linear-gradient(90deg, rgba(5, 6, 7, 0.96) 0%, rgba(5, 6, 7, 0.78) 42%, rgba(5, 6, 7, 0.22) 100%),
    linear-gradient(0deg, rgba(5, 6, 7, 0.92) 0%, transparent 54%);
}

.hero-image {
  filter: saturate(0.78) contrast(1.14) brightness(0.78);
}

.hero-scrim {
  background: linear-gradient(0deg, var(--page), transparent);
}

.eyebrow,
.hero-content .eyebrow,
.future-inner .eyebrow,
.admin-kicker {
  color: var(--gold-bright);
  letter-spacing: 0.16em;
}

.hero-content h1 {
  max-width: 11ch;
  color: var(--ink);
  text-transform: uppercase;
  letter-spacing: 0;
  text-shadow: 0 8px 36px rgba(0, 0, 0, 0.55);
}

.hero-copy,
.section-heading p,
.split-copy p,
.future-inner p,
.form-help,
.panel-head p,
.admin-view-head p,
.compact-item span,
.policy-item span,
.data-table td,
.sidebar-note p {
  color: var(--muted);
}

.trust-line span,
.metadata-list span,
.legal-note,
.risk-warning,
.deposit-trc20-warning,
.product-page-warning {
  color: var(--ink-soft);
  background: rgba(214, 166, 76, 0.11);
  border-color: rgba(214, 166, 76, 0.28);
}

.hero-inspection,
.process-step,
.wallet-tile,
.risk-item,
.outlook-panel,
.market-preview-card,
.market-activity,
.dashboard-preview,
.metric-panel,
.panel,
.admin-panel,
.compact-item,
.policy-item,
.deposit-address-panel,
.deposit-qr-card,
.balance-row,
.product-card,
.auth-page-panel,
.confirm-dialog,
.auth-dialog,
.detail-dialog,
.admin-login-dialog,
.toast,
.flag-card,
.priority-tile,
.mfa-progress li,
.mfa-setup-card,
.mfa-manual-key,
.owned-stat-chip,
.list-form-card,
.secret-box,
.internal-tools,
.definition-grid div,
.product-page-note,
.product-page-table,
.product-page-panel {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.035), transparent),
    var(--panel);
  border-color: var(--line-white);
  color: var(--ink);
  box-shadow: var(--shadow-soft);
}

.panel,
.admin-panel,
.metric-panel,
.product-card,
.hero-inspection,
.auth-dialog,
.detail-dialog,
.admin-login-dialog,
.confirm-dialog {
  box-shadow:
    inset 0 0 0 1px rgba(214, 166, 76, 0.08),
    var(--shadow-soft);
}

.section-heading h2,
.split-copy h2,
.future-inner h2,
.panel-head h2,
.admin-view-head h2,
.admin-panel h2,
.metric-panel strong,
.wallet-tile strong,
.process-step h3,
.risk-item h3,
.outlook-panel h3,
.market-card-body h3,
.detail-copy h2,
.auth-page-panel h1,
.mfa-hero-title,
.product-body h3,
.product-page-header h3 {
  color: var(--ink);
}

.content-band,
.wallet-band,
.market-band {
  background: var(--page);
}

.alpha-band {
  background:
    radial-gradient(circle at 18% 0%, rgba(69, 192, 96, 0.1), transparent 32%),
    var(--page);
}

.split-band {
  color: var(--ink);
}

.metadata-visual,
.market-thumb,
.detail-hero,
.product-page-artwork {
  border: 1px solid var(--line);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.04), var(--shadow-soft);
}

.metadata-visual img,
.market-thumb {
  filter: saturate(0.86) contrast(1.08) brightness(0.86);
}

.tag-callout {
  background: rgba(13, 16, 17, 0.88);
  border-color: var(--line);
  color: var(--ink);
}

.timeline-list li > span,
.status-dot {
  background: var(--success);
  box-shadow: 0 0 0 5px rgba(69, 192, 96, 0.14);
}

.preview-bar {
  background: linear-gradient(90deg, var(--gold), var(--gold-bright) 56%, var(--success));
}

.mini-chart span,
.mini-chart span:nth-child(2),
.mini-chart span:nth-child(3),
.mini-chart span:nth-child(4) {
  background: rgba(214, 166, 76, 0.36);
}

.app-shell,
.admin-shell {
  background: var(--page);
}

.app-sidebar,
.admin-sidebar,
.public-menu-panel {
  background:
    linear-gradient(180deg, rgba(244, 204, 120, 0.045), transparent 280px),
    #070809;
  border-right: 1px solid var(--line);
  color: var(--ink);
  box-shadow: 22px 0 60px rgba(0, 0, 0, 0.38);
}

.app-sidebar,
.admin-sidebar {
  border-top: 0;
}

.app-sidebar .brand-lockup small,
.admin-sidebar .brand-lockup small,
.public-menu-brand small {
  color: rgba(243, 238, 226, 0.48);
}

.app-nav button,
.admin-nav button,
.sidebar-logout {
  display: flex;
  align-items: center;
  gap: 10px;
  border-left: 3px solid transparent;
}

.app-nav button.is-active,
.admin-nav button.is-active {
  color: var(--gold-bright);
  background: rgba(214, 166, 76, 0.12);
  border-left-color: var(--gold);
}

.sidebar-user,
.sidebar-note {
  border-color: var(--line-white);
  background: rgba(255, 255, 255, 0.045);
}

.app-topbar h1,
.admin-topbar h1 {
  color: var(--ink);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 1.18rem;
}

.app-user span,
.admin-user span {
  color: var(--muted);
}

.app-main,
.admin-main {
  padding-top: 24px;
}

.dashboard-hero {
  background:
    linear-gradient(135deg, rgba(214, 166, 76, 0.18), rgba(255, 255, 255, 0.035)),
    var(--panel);
  border: 1px solid var(--line);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.04), var(--shadow-soft);
}

.dashboard-hero-label,
.dashboard-hero-sub,
.wallet-balance-item > span,
.wallet-address-label,
.owned-stat-chip > span,
.priority-tile span,
.data-table th,
.product-page-price span,
.product-page-source span,
.product-page-table dt,
.definition-grid dt,
.hero-inspection dt {
  color: var(--muted);
  letter-spacing: 0.1em;
}

.dashboard-hero-total,
#walletAvailableDisplay,
.wallet-balance-available #walletAvailableDisplay,
.owned-stat-chip--green > strong,
.nft-price,
.product-page-price strong,
.product-price {
  color: var(--gold-bright);
}

#walletHeldDisplay,
.wallet-balance-held #walletHeldDisplay {
  color: var(--ink-soft);
}

.metric-panel {
  border-left: 1px solid var(--line-white);
}

.metric-panel--green,
.metric-panel--gold,
.metric-panel--blue,
.metric-panel--mint,
.product-card--listed {
  border-left: 3px solid var(--gold);
}

.metric-panel span,
.metric-panel small {
  color: var(--muted);
}

label,
.auth-field label {
  color: var(--ink-soft);
}

input,
select,
textarea {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.055);
  border-color: var(--line-white);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

input::placeholder,
textarea::placeholder {
  color: rgba(168, 168, 168, 0.7);
}

select option {
  color: var(--ink);
  background: var(--panel);
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--gold);
  outline: 2px solid rgba(244, 204, 120, 0.3);
}

.auth-field input[aria-invalid="true"],
.auth-field select[aria-invalid="true"] {
  background: rgba(224, 95, 85, 0.08);
  border-color: var(--red);
}

.form-grid input[aria-invalid="true"],
.form-grid select[aria-invalid="true"],
.mfa-flow-step input[aria-invalid="true"] {
  background: rgba(224, 95, 85, 0.08);
  border-color: var(--red);
}

.segmented {
  background: rgba(255, 255, 255, 0.055);
  border: 1px solid var(--line-white);
}

.segmented button {
  color: var(--muted);
}

.segmented button.is-active {
  color: #090a0a;
  background: linear-gradient(180deg, var(--gold-bright), var(--gold));
}

.pill {
  color: var(--ink-soft);
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid var(--line-white);
  border-radius: 6px;
}

.pill-green {
  color: #b9ffca;
  background: var(--success-soft);
  border-color: rgba(69, 192, 96, 0.35);
}

.pill-blue,
.pill-gold {
  color: var(--gold-bright);
  background: rgba(214, 166, 76, 0.13);
  border-color: rgba(214, 166, 76, 0.32);
}

.pill-red {
  color: #ffb8b2;
  background: var(--red-soft);
  border-color: rgba(224, 95, 85, 0.4);
}

.pill-orange {
  color: #ffd1a3;
  background: rgba(209, 139, 69, 0.15);
  border-color: rgba(209, 139, 69, 0.38);
}

.alert {
  color: var(--ink-soft);
  background: rgba(255, 255, 255, 0.055);
  border-color: var(--line);
}

.alert.is-error,
.field-error {
  color: #ffb8b2;
}

.alert.is-error {
  background: var(--red-soft);
  border-color: rgba(224, 95, 85, 0.42);
}

.alert.is-success {
  color: #b9ffca;
  background: var(--success-soft);
  border-color: rgba(69, 192, 96, 0.35);
}

.alert.is-warning {
  color: var(--gold-bright);
  background: var(--gold-soft);
  border-color: rgba(214, 166, 76, 0.35);
}

.empty-state,
.loading-state {
  color: var(--muted);
  background: rgba(255, 255, 255, 0.025);
  border-color: rgba(214, 166, 76, 0.3);
}

.loading-state::before {
  border-color: rgba(255, 255, 255, 0.12);
  border-top-color: var(--gold-bright);
}

.data-table {
  border-collapse: separate;
  border-spacing: 0;
}

.data-table th {
  color: var(--gold-bright);
  background: rgba(214, 166, 76, 0.08);
  border-bottom-color: var(--line);
}

.data-table td {
  border-bottom-color: var(--line-white);
}

.data-table tbody tr:nth-child(even) td,
.data-table tbody tr:nth-child(even) .is-action-cell,
.data-table .is-action-cell {
  background: rgba(255, 255, 255, 0.025);
}

.data-table code,
.code-chip,
.detail-chip code,
.recovery-code-grid code {
  color: var(--gold-bright);
  background: rgba(5, 6, 7, 0.64);
  border: 1px solid var(--line-white);
}

.detail-chip summary {
  color: var(--gold-bright);
}

.filter-tabs {
  gap: 8px;
}

.filter-tab {
  color: var(--ink-soft);
  background: rgba(255, 255, 255, 0.045);
  border-color: var(--line-white);
  border-radius: 8px;
}

.filter-tab:hover,
.filter-tab.is-active {
  color: #090a0a;
  background: linear-gradient(180deg, var(--gold-bright), var(--gold));
  border-color: rgba(244, 204, 120, 0.76);
}

.product-grid--market,
.product-grid--owned {
  gap: 16px;
}

.product-card {
  position: relative;
  border-color: rgba(214, 166, 76, 0.18);
}

.product-card:hover,
.product-card:focus-visible {
  border-color: rgba(244, 204, 120, 0.58);
  box-shadow:
    inset 0 0 0 1px rgba(214, 166, 76, 0.14),
    0 24px 54px rgba(0, 0, 0, 0.45),
    0 0 24px rgba(214, 166, 76, 0.08);
}

.product-card:not(.nft-card) {
  padding: 10px;
}

.product-card:not(.nft-card) .product-image-wrap,
.nft-artwork {
  aspect-ratio: 1 / 1;
  height: auto;
  border: 1px solid rgba(214, 166, 76, 0.38);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(214, 166, 76, 0.12), rgba(255, 255, 255, 0.025)),
    #080909;
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.035),
    inset 0 0 34px rgba(214, 166, 76, 0.08);
}

.product-card:not(.nft-card) .product-image-wrap img,
.nft-artwork img,
.product-page-artwork img,
.detail-hero img {
  filter: saturate(0.95) contrast(1.07);
}

.nft-card {
  padding: 8px;
  background:
    linear-gradient(180deg, rgba(244, 204, 120, 0.045), rgba(255, 255, 255, 0.015)),
    var(--panel);
}

.nft-artwork {
  overflow: hidden;
}

.nft-artwork::after,
.product-image-wrap::after {
  background: linear-gradient(0deg, rgba(5, 6, 7, 0.48), transparent);
}

.nft-card-top,
.nft-card-title-row {
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.nft-series {
  color: var(--gold-bright);
  font-size: 0.64rem;
  font-weight: 900;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.nft-id {
  color: var(--ink);
  letter-spacing: 0.02em;
}

.nft-card-title-row .pill {
  flex: 0 0 auto;
  min-height: 22px;
  padding-inline: 7px;
  font-size: 0.62rem;
}

.nft-price span,
.product-price-currency,
.product-page-price small {
  color: var(--gold);
}

.nft-source,
.product-meta,
.product-meta strong {
  color: var(--muted);
}

.nft-source svg {
  color: var(--success);
}

.nft-share-chip,
.nft-verify,
.nft-owned-chip {
  border-radius: 6px;
}

.nft-share-chip {
  color: var(--gold-bright);
  background: var(--gold-soft);
  border-color: rgba(214, 166, 76, 0.32);
}

.nft-verify {
  color: #b9ffca;
  background: var(--success-soft);
  border-color: rgba(69, 192, 96, 0.3);
}

.nft-owned-chip {
  color: var(--gold-bright);
  background: var(--gold-soft);
  border-color: rgba(214, 166, 76, 0.32);
}

.product-listed-watermark {
  color: #090a0a;
  background: var(--gold-bright);
}

.owned-summary-bar {
  gap: 12px;
}

.product-page-panel {
  background:
    linear-gradient(135deg, rgba(244, 204, 120, 0.06), rgba(255, 255, 255, 0.018)),
    var(--panel);
  border-color: rgba(214, 166, 76, 0.2);
}

.product-page-artwork {
  background: #080909;
}

.product-page-content {
  padding: 16px;
  border: 1px solid var(--line-white);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.028);
}

.product-page-price {
  padding: 16px;
  border: 1px solid rgba(214, 166, 76, 0.25);
  border-radius: 8px;
  background: rgba(214, 166, 76, 0.08);
}

.product-page-source {
  padding: 12px 0;
}

.product-page-source strong,
.product-page-table dd,
.definition-grid dd,
.hero-inspection dd {
  color: var(--ink-soft);
}

.product-page-table {
  border-color: var(--line-white);
  background: rgba(255, 255, 255, 0.025);
}

.product-page-table div,
.product-page-table div:nth-child(2n),
.product-page-table div:nth-last-child(-n + 2) {
  border-color: var(--line-white);
}

.detail-layout {
  background: var(--panel);
  color: var(--ink);
}

.detail-dialog,
.auth-dialog,
.confirm-dialog,
.admin-login-dialog {
  background: var(--panel);
}

dialog::backdrop {
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(8px);
}

.dialog-close {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.06);
  border-color: var(--line-white);
}

.auth-context,
.admin-login-context {
  background:
    linear-gradient(0deg, rgba(5, 6, 7, 0.86), rgba(5, 6, 7, 0.48)),
    url("lambnft-product-nft.png") center / cover;
  border-right: 1px solid var(--line);
}

.auth-context h2,
.admin-login-context h1 {
  color: var(--gold-bright);
  text-transform: uppercase;
}

.auth-forms,
.admin-login-forms {
  background: var(--panel);
}

.auth-page {
  background:
    linear-gradient(0deg, rgba(5, 6, 7, 0.88), rgba(5, 6, 7, 0.82)),
    url("lambnft-product-nft.png") center / cover fixed;
}

.admin-login-page {
  background:
    linear-gradient(115deg, rgba(5, 6, 7, 0.92), rgba(5, 6, 7, 0.72)),
    url("lambnft-product-nft.png") center / cover;
}

.confirm-grid div,
.preview-row,
.activation-form {
  border-color: var(--line-white);
}

.mfa-hero-icon-wrap {
  border-radius: 8px;
  color: var(--gold-bright);
  background: rgba(214, 166, 76, 0.11);
  border-color: rgba(214, 166, 76, 0.28);
}

.mfa-hero-icon-wrap--enabled {
  color: #b9ffca;
  background: var(--success-soft);
  border-color: rgba(69, 192, 96, 0.35);
}

.mfa-hero-icon-wrap--disabled {
  color: #ffb8b2;
  background: var(--red-soft);
  border-color: rgba(224, 95, 85, 0.36);
}

.mfa-hero-subtitle--safe {
  color: #b9ffca;
}

.mfa-hero-subtitle--risk {
  color: #ffb8b2;
}

.mfa-progress span {
  color: var(--muted);
  background: rgba(255, 255, 255, 0.06);
}

.mfa-progress li.is-active,
.mfa-progress li.is-complete {
  border-color: rgba(214, 166, 76, 0.35);
  background: rgba(214, 166, 76, 0.1);
}

.mfa-progress li.is-active span,
.mfa-progress li.is-complete span {
  color: #090a0a;
  background: var(--gold-bright);
}

.mfa-progress li.is-active strong,
.mfa-progress li.is-complete strong,
.mfa-manual-key {
  color: var(--ink);
}

.mfa-step-copy p,
.mfa-setup-card-copy,
.mfa-confirmed-note span {
  color: var(--muted);
}

.mfa-password-card {
  background: rgba(255, 255, 255, 0.035);
  border-color: var(--line-white);
}

.mfa-confirmed-note {
  background: rgba(69, 192, 96, 0.11);
  border-color: rgba(69, 192, 96, 0.34);
}

.mfa-setup-card--ready {
  background:
    linear-gradient(180deg, rgba(69, 192, 96, 0.08), transparent),
    rgba(255, 255, 255, 0.025);
  border-color: rgba(69, 192, 96, 0.34);
}

.mfa-qr-frame {
  border-color: rgba(244, 204, 120, 0.42);
  box-shadow: 0 18px 38px rgba(0, 0, 0, 0.24);
}

.deposit-qr-centered {
  background: rgba(255, 255, 255, 0.025);
  border-color: var(--line-white);
}

.deposit-qr-box {
  color: var(--muted);
  background: #fff;
  border-color: var(--line);
}

.wallet-address-code {
  color: var(--gold-bright);
}

.row-form,
.admin-table-actions {
  align-items: center;
}

.priority-tile:hover,
.priority-tile:focus-visible {
  border-color: rgba(244, 204, 120, 0.5);
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.34);
}

.priority-tile strong {
  color: var(--gold-bright);
}

.status-timeline-item {
  border-left-color: var(--gold);
}

.suspicious-list .compact-item {
  background: rgba(214, 166, 76, 0.1);
  border-color: rgba(214, 166, 76, 0.28);
}

.is-current-session td,
tr[data-event-result="SUCCESS"] td {
  background: rgba(69, 192, 96, 0.08) !important;
}

tr[data-event-result="FAILURE"] td {
  background: rgba(224, 95, 85, 0.1) !important;
}

.toast-region {
  bottom: max(16px, env(safe-area-inset-bottom));
}

.toast {
  border-color: var(--line);
}

.toast strong {
  color: var(--gold-bright);
}

.hamburger-button {
  background: rgba(255, 255, 255, 0.045);
  border-color: var(--line);
}

.hamburger-button span {
  background: var(--gold-bright);
}

.hamburger-button:hover,
.hamburger-button:focus-visible,
.public-menu-open #publicMenuBtn {
  background: rgba(214, 166, 76, 0.13);
  border-color: rgba(244, 204, 120, 0.48);
}

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

@media (max-width: 1100px) {
  .app-sidebar,
  .admin-sidebar {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
}

@media (max-width: 760px) {
  .public-header {
    min-height: 62px;
  }

  .public-menu-panel {
    color: var(--ink);
    border-right: 1px solid var(--line);
  }

  .public-menu-open .public-nav a,
  .public-menu-panel .header-actions .btn {
    color: rgba(243, 238, 226, 0.72);
    border-left-color: transparent;
  }

  .public-menu-open .public-nav a:hover,
  .public-menu-open .public-nav a:focus-visible,
  .public-menu-panel .header-actions .btn:hover,
  .public-menu-panel .header-actions .btn:focus-visible {
    color: var(--gold-bright);
    background: rgba(214, 166, 76, 0.11);
  }

  .hero-section {
    min-height: auto;
    padding-bottom: 20px;
  }

  .hero-inspection {
    display: none;
  }

  .trust-line {
    display: none;
  }

  .hero-content h1 {
    max-width: 10ch;
    font-size: clamp(2.35rem, 13vw, 3.4rem);
  }

  .hero-actions .btn,
  .header-actions .btn,
  .inline-actions .btn,
  .dialog-actions .btn {
    min-width: 0;
  }

  input,
  select,
  textarea {
    font-size: 16px;
  }

  body.is-app .app-main {
    padding-bottom: calc(92px + env(safe-area-inset-bottom));
  }

  .app-bottom-nav {
    position: fixed;
    z-index: 35;
    left: 0;
    right: 0;
    bottom: 0;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0;
    padding: 7px 8px calc(7px + env(safe-area-inset-bottom));
    background: rgba(5, 6, 7, 0.94);
    border-top: 1px solid var(--line);
    box-shadow: 0 -18px 42px rgba(0, 0, 0, 0.42);
    backdrop-filter: blur(14px);
  }

  .app-bottom-nav button {
    min-width: 0;
    min-height: 50px;
    display: grid;
    place-items: center;
    gap: 3px;
    border: 1px solid transparent;
    border-radius: 8px;
    background: transparent;
    color: rgba(243, 238, 226, 0.6);
    padding: 4px 2px;
    font-size: 0.62rem;
    font-weight: 850;
    text-transform: uppercase;
    letter-spacing: 0;
  }

  .app-bottom-nav button svg {
    width: 18px;
    height: 18px;
  }

  .app-bottom-nav button span {
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .app-bottom-nav button.is-active {
    color: var(--gold-bright);
    background: rgba(214, 166, 76, 0.11);
    border-color: rgba(214, 166, 76, 0.2);
  }

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

  .product-grid--owned {
    grid-template-columns: 1fr;
  }

  .nft-card {
    padding: 6px;
  }

  .nft-card-title-row {
    align-items: flex-start;
    flex-direction: column;
    gap: 5px;
  }

  .nft-card-title-row .pill {
    max-width: 100%;
  }

  .nft-source span {
    white-space: normal;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
  }

  .product-page-content {
    padding: 12px;
  }

  .data-table tr {
    background: var(--panel);
    border-color: var(--line-white);
  }

  .data-table td {
    border-bottom-color: var(--line-white);
  }

  .data-table td::before {
    color: var(--gold-bright);
  }

  .data-table .is-action-cell {
    background: transparent;
  }

  .toast-region {
    bottom: calc(82px + env(safe-area-inset-bottom));
  }
}
