:root {
  --logo-green: #5d6f54;
  --bg: #f6efe6;
  --bg-soft: #fbf7f2;
  --bg-accent: #efe2d1;
  --panel: rgba(255, 251, 245, 0.9);
  --panel-strong: rgba(255, 252, 247, 0.98);
  --ink: #3e3428;
  --ink-soft: #5f5346;
  --muted: #7f7468;
  --gold: #bc8b43;
  --gold-deep: #92662b;
  --gold-light: #e1bd84;
  --sage: #7f9473;
  --sage-deep: #5d6f54;
  --blue: #6f94a8;
  --coral: #d98963;
  --mint: #78a88c;
  --sun: #e4b55f;
  --line: rgba(146, 102, 43, 0.16);
  --line-strong: rgba(146, 102, 43, 0.24);
  --shadow: 0 20px 48px rgba(96, 71, 40, 0.12), 0 6px 18px rgba(96, 71, 40, 0.05);
  --shadow-soft: 0 12px 30px rgba(96, 71, 40, 0.08), 0 2px 8px rgba(96, 71, 40, 0.04);
  --radius-lg: 30px;
  --radius-md: 22px;
  --radius-sm: 14px;
  --max-width: 1140px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  color-scheme: light;
  background: #fbf7f2;
}

body {
  margin: 0;
  color: var(--ink);
  background-color: var(--bg);
  background:
    radial-gradient(circle at top left, rgba(188, 139, 67, 0.12), transparent 26%),
    radial-gradient(circle at bottom right, rgba(127, 148, 115, 0.12), transparent 28%),
    radial-gradient(circle at 82% 18%, rgba(217, 137, 99, 0.14), transparent 24%),
    linear-gradient(180deg, var(--bg-soft) 0%, var(--bg) 52%, var(--bg-accent) 100%);
  font-family: Arial, Helvetica, sans-serif;
  font-weight: 500;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  font-optical-sizing: auto;
  font-kerning: normal;
  font-feature-settings: "kern" 1, "liga" 1, "calt" 1;
  font-synthesis: none;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(120deg, rgba(255, 255, 255, 0.35), transparent 42%),
    linear-gradient(300deg, rgba(188, 139, 67, 0.05), transparent 50%);
}

img {
  max-width: 100%;
}

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

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
.widget-tab:focus-visible,
.trade-mode-tab:focus-visible,
.comment-delete:focus-visible,
.btn:focus-visible {
  outline: 3px solid rgba(120, 168, 140, 0.55);
  outline-offset: 2px;
}

main,
.site-footer {
  position: relative;
  z-index: 1;
}

main {
  width: min(var(--max-width), calc(100% - 1.8rem));
  margin: 0 auto;
  padding: 0 0 3.6rem;
}

.site-header {
  width: min(var(--max-width), calc(100% - 1.8rem));
  margin: 0.75rem auto 0;
  padding: 0.74rem 0.92rem;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 0.8rem;
  position: sticky;
  top: 0.55rem;
  z-index: 120;
  border: 1px solid rgba(146, 102, 43, 0.16);
  border-radius: 999px;
  background: rgba(251, 247, 242, 0.9);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--ink);
  text-decoration: none;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.92rem;
}

.brand-wordmark {
  display: inline-flex;
  align-items: center;
  gap: 0.28rem;
}

.brand-live-price {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 1.5rem;
  padding: 0.16rem 0.5rem;
  border-radius: 999px;
  border: 1px solid rgba(226, 184, 109, 0.34);
  background: rgba(14, 21, 33, 0.78);
  color: #7fd2f3;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.01em;
  white-space: nowrap;
}

.brand-live-price.is-live {
  color: #7fd2f3;
}

.brand-live-price.is-fallback {
  color: #d6c09a;
}

.brand-logo {
  width: 2.3rem;
  height: 2.3rem;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 10px 22px rgba(188, 139, 67, 0.2);
}

.stable-green {
  color: var(--logo-green) !important;
}

.gold {
  color: var(--gold-deep);
}

.site-nav {
  display: flex;
  justify-content: center;
  gap: 0.35rem;
  flex-wrap: wrap;
}

.site-nav a {
  color: var(--ink-soft);
  text-decoration: none;
  padding: 0.46rem 0.74rem;
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 600;
  transition: background-color 180ms ease, color 180ms ease, transform 180ms ease, box-shadow 180ms ease;
}

.site-nav a:hover,
.site-nav a.active {
  background: linear-gradient(135deg, rgba(228, 181, 95, 0.24), rgba(120, 168, 140, 0.2));
  color: var(--ink);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

.header-tools {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.72rem 1rem;
  border-radius: 999px;
  border: 1px solid transparent;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  cursor: pointer;
  transition: transform 180ms ease, box-shadow 180ms ease, background-color 180ms ease, border-color 180ms ease;
}

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

.btn-gold {
  color: #2d2114;
  background: linear-gradient(135deg, #e0a84d 0%, #f0cd79 52%, #d98963 100%);
  box-shadow: 0 14px 28px rgba(217, 137, 99, 0.24);
}

.btn-dark {
  color: var(--ink);
  background: linear-gradient(135deg, rgba(120, 168, 140, 0.18), rgba(111, 148, 168, 0.16));
  border-color: rgba(93, 111, 84, 0.26);
}

.btn-outline {
  color: var(--gold-deep);
  border-color: rgba(146, 102, 43, 0.28);
  background: rgba(255, 255, 255, 0.34);
}

.btn-wallet.is-connected {
  color: #21301e;
  background: linear-gradient(135deg, #abc39b 0%, #d8e6c6 100%);
  box-shadow: 0 14px 28px rgba(127, 148, 115, 0.2);
}

.wallet-status-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 0.36rem 0.7rem;
  border-radius: 999px;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  border: 1px solid transparent;
  white-space: nowrap;
}

.wallet-status-badge.is-trusted {
  color: #24534a;
  background: rgba(173, 230, 214, 0.3);
  border-color: rgba(63, 145, 123, 0.4);
}

.wallet-status-badge.is-manual {
  color: #5b4a2a;
  background: rgba(240, 205, 121, 0.35);
  border-color: rgba(190, 145, 62, 0.45);
}

.nav-toggle {
  display: none;
}

.hero {
  margin-top: 1rem;
}

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

.hero-copy,
.panel,
.trade-card,
.trade-info,
.stats-vault-panel,
.svp-price-card,
.svp-vault-item,
.comment-card,
.layer-card {
  border: 1px solid rgba(146, 102, 43, 0.13);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.48), rgba(255, 255, 255, 0)),
    linear-gradient(180deg, var(--panel-strong), var(--panel));
  box-shadow: var(--shadow);
}

.hero-copy {
  padding: 2.15rem clamp(1.1rem, 3.8vw, 2.7rem);
  border-radius: 34px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero-copy::before {
  content: "";
  position: absolute;
  inset: auto auto -15% -8%;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(228, 181, 95, 0.24), transparent 66%);
}

.hero-copy::after {
  content: "";
  position: absolute;
  inset: -12% -6% auto auto;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(120, 168, 140, 0.22), transparent 65%);
}

.hero-copy > * {
  position: relative;
  z-index: 1;
}

.hero-logo-wrap {
  position: relative;
  isolation: isolate;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
}

.hero-logo-streaks {
  display: none;
}

.hero-logo-random-streaks {
  display: none;
}

.hero-logo-wrap::before {
  content: none;
}

.hero-logo-wrap::after {
  content: none;
}

.hero-logo {
  position: relative;
  z-index: 1;
  width: 100px;
  height: 100px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow:
    0 20px 36px rgba(188, 139, 67, 0.28),
    0 0 34px rgba(228, 181, 95, 0.6),
    0 0 60px rgba(188, 139, 67, 0.24);
}

.eyebrow,
.exec-label,
.snapshot-label,
.svp-price-label,
.svp-vault-label {
  margin: 0;
  color: var(--sage-deep);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.71rem;
  font-weight: 800;
}

.hero-copy .eyebrow {
  display: inline-block;
  padding: 0.32rem 0.74rem;
  border-radius: 999px;
  background: rgba(127, 148, 115, 0.1);
  border: 1px solid rgba(127, 148, 115, 0.14);
}

.hero-copy h1,
.title-block h1,
.panel h3,
.trade-info h3,
.layer-card h4 {
  font-family: Arial, Helvetica, sans-serif;
  font-weight: 700;
  letter-spacing: -0.015em;
  color: var(--ink);
}

.hero-copy h1 {
  width: min(88%, 860px);
  margin: 0.85rem auto 0.8rem;
  font-size: clamp(1.45rem, 3.3vw, 2.55rem);
  line-height: 1.06;
  text-wrap: balance;
}

.lead,
.panel p,
.panel li,
.flow-line span,
.trade-note,
.comment-gate p,
.site-footer,
.pvr-note,
.comment-empty {
  color: var(--muted);
  font-weight: 500;
}

.hero-copy .lead {
  width: min(82%, 720px);
  margin: 0 auto;
  font-size: 0.97rem;
  line-height: 1.56;
}

.hero-actions {
  display: flex;
  justify-content: center;
  gap: 0.65rem;
  flex-wrap: wrap;
  margin-top: 1.35rem;
}

.hero-highlights,
.community-pill-row {
  display: flex;
  justify-content: center;
  gap: 0.55rem;
  flex-wrap: wrap;
  margin-top: 0.95rem;
}

.hero-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem 0.78rem;
  border-radius: 999px;
  border: 1px solid rgba(146, 102, 43, 0.14);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.72), rgba(228, 181, 95, 0.2));
  color: var(--ink-soft);
  font-size: 0.79rem;
  font-weight: 700;
}

.title-block {
  max-width: 900px;
}

.title-block h1 {
  margin: 0.28rem 0 0.62rem;
  font-size: clamp(2.15rem, 4vw, 4rem);
  line-height: 1;
  text-wrap: balance;
}

.title-block.compact h1 {
  font-size: clamp(1.9rem, 3.2vw, 3rem);
}

.editorial-header {
  max-width: 960px;
}

.trade-section,
.svp-section,
.feature-grid,
.inner-page {
  margin-top: 1.6rem;
}

.trade-head-grid,
.trade-shell,
.cards-2,
.story-grid,
.comments-layout,
.feature-grid,
.layer-grid {
  display: grid;
  gap: 0.88rem;
}

.trade-head-grid {
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
  align-items: stretch;
}

.trade-objective-strip {
  display: grid;
}

.trade-objective-strip .protocol-snapshot-card {
  padding: 0.95rem 1.05rem;
}

.trade-objective-strip h3 {
  margin: 0;
}

.snapshot-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.65rem;
  margin-top: 0.75rem;
}

.snapshot-item {
  display: grid;
  gap: 0.45rem;
  padding: 0.72rem 0.8rem;
  border-radius: 18px;
  border: 1px solid rgba(146, 102, 43, 0.1);
  background: linear-gradient(145deg, rgba(255, 252, 247, 0.82), rgba(247, 240, 228, 0.72));
}

.snapshot-item-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 0.7rem;
}

.snapshot-item-head .metric {
  text-align: right;
}

#sharedObjectiveDisplay {
  color: var(--logo-green) !important;
}

.snapshot-item small {
  color: rgba(102, 79, 48, 0.78);
  line-height: 1.34;
}

.snapshot-inline-note {
  max-width: 25ch;
  text-align: right;
}

.snapshot-bars {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.45rem;
}

.bar {
  display: flex;
  align-items: center;
  min-height: 2.65rem;
  padding: 0.28rem;
  border-radius: 14px;
  background: rgba(120, 168, 140, 0.12);
}

.bar span {
  display: block;
  padding: 0.56rem 0.72rem;
  border-radius: 10px;
  background: linear-gradient(135deg, rgba(120, 168, 140, 0.2), rgba(120, 168, 140, 0.1));
  color: var(--ink);
  font-size: 0.8rem;
  font-weight: 600;
  line-height: 1.2;
}

.bar.usdc {
  background: rgba(228, 181, 95, 0.14);
}

.bar.usdc span {
  background: linear-gradient(135deg, rgba(228, 181, 95, 0.24), rgba(228, 181, 95, 0.12));
}

.metric,
.svp-price-value,
.svp-vault-value,
.readout,
.pvr-value {
  font-family: Arial, Helvetica, sans-serif;
  font-weight: 600;
}

.metric {
  margin: 0;
  font-size: 2.1rem;
}

.trade-shell {
  margin-top: 0.88rem;
  grid-template-columns: minmax(0, 1.45fr) minmax(300px, 0.95fr);
}

.trade-card,
.trade-info,
.panel,
.layer-card,
.comment-card,
.comment-card {
  padding: 1.18rem;
  border-radius: var(--radius-lg);
}

.trade-info {
  align-self: start;
  position: sticky;
  top: 6rem;
}

body[data-page="home"] {
  --logo-green: #86b58f;
  --ink: #efe7d8;
  --ink-soft: #d2c6af;
  --muted: #aa9e87;
  --sage-deep: var(--logo-green);
  --line: rgba(223, 185, 116, 0.2);
  --line-strong: rgba(223, 185, 116, 0.3);
  color: var(--ink) !important;
  background-color: #090d13 !important;
  background:
    radial-gradient(circle at 18% 14%, rgba(228, 181, 95, 0.14), transparent 30%),
    radial-gradient(circle at 84% 12%, rgba(126, 164, 210, 0.1), transparent 28%),
    radial-gradient(circle at 50% 88%, rgba(107, 154, 119, 0.14), transparent 40%),
    linear-gradient(180deg, #090d13 0%, #0f151f 52%, #121826 100%) !important;
}

body[data-page="home"] .site-header {
  border-color: rgba(223, 185, 116, 0.24);
  background: rgba(12, 17, 25, 0.82);
  box-shadow: 0 16px 30px rgba(2, 4, 8, 0.45);
}

body[data-page="home"] .site-nav a {
  color: #cfc4af;
}

body[data-page="home"] .site-nav a:hover,
body[data-page="home"] .site-nav a.active {
  color: #f2ead9;
  background: linear-gradient(135deg, rgba(228, 181, 95, 0.26), rgba(121, 171, 140, 0.2));
}

body[data-page="home"] .btn-outline {
  color: #e0ca9e;
  border-color: rgba(223, 185, 116, 0.3);
  background: rgba(255, 255, 255, 0.05);
}

body[data-page="home"] .hero-copy,
body[data-page="home"] .title-block,
body[data-page="home"] .trade-note,
body[data-page="home"] .snapshot-item small,
body[data-page="home"] .flow-line span,
body[data-page="home"] .flow-meta,
body[data-page="home"] .fee-summary,
body[data-page="home"] .snapshot-inline-note {
  color: #d4c9b3 !important;
}

body[data-page="home"] .hero-copy {
  overflow: visible;
}

body[data-page="home"] .hero-copy {
  padding: 2rem clamp(1.15rem, 3.4vw, 2.45rem);
  border-radius: 32px;
  text-align: left;
  border: none !important;
  background: transparent !important;
  box-shadow: none !important;
  outline: none;
}

body[data-page="home"] .hero-copy::before {
  inset: auto auto -18% -10%;
  width: 220px;
  height: 220px;
  background: transparent;
}

body[data-page="home"] .hero-copy::after {
  inset: -18% -8% auto auto;
  width: 220px;
  height: 220px;
  background: transparent;
}

body[data-page="home"] .hero-copy .eyebrow {
  border: none !important;
  background: transparent !important;
}

body[data-page="home"] .hero-logo-wrap {
  margin-bottom: 1.15rem;
  padding-top: 0.2rem;
  padding-left: 0.35rem;
}

body[data-page="home"] .hero-logo-streaks {
  display: none;
}

body[data-page="home"] .hero-logo-random-streaks {
  display: none;
}

body[data-page="home"] .hero-logo-wrap::before {
  content: none;
}

body[data-page="home"] .hero-logo-wrap::after {
  content: none;
}

body[data-page="home"] .hero-logo {
  box-shadow:
    0 16px 24px rgba(6, 9, 15, 0.28),
    0 0 10px rgba(188, 139, 67, 0.14);
}

body[data-page="home"] .hero-copy .eyebrow {
  color: var(--logo-green) !important;
}

body[data-page="home"] .hero-logo-wrap,
body[data-page="home"] .hero-actions,
body[data-page="home"] .hero-highlights {
  justify-content: flex-start;
}

body[data-page="home"] .hero-copy h1,
body[data-page="home"] .hero-copy .lead {
  margin-left: 0;
  margin-right: 0;
}

body[data-page="home"] .hero-copy h1 {
  width: min(100%, 760px);
  margin-top: 0.75rem;
  margin-bottom: 0.7rem;
  font-size: clamp(1.72rem, 4vw, 3.2rem);
  line-height: 1.08;
  color: #f1e7d3;
  text-shadow: 0 2px 12px rgba(6, 8, 12, 0.5);
}

body[data-page="home"] .hero-copy .lead {
  width: min(100%, 620px);
  font-size: 1rem;
  line-height: 1.5;
  color: #c8baa1;
}

body[data-page="home"] .title-block.compact {
  padding: 0.95rem 1rem 1.05rem;
  border-radius: 24px;
  border: none !important;
  background: transparent !important;
  box-shadow: none !important;
}

body[data-page="home"] .title-block.compact h1 {
  font-size: clamp(1.8rem, 3.2vw, 2.7rem);
}

body[data-page="home"] .trade-head-grid .title-block.compact,
body[data-page="home"] .svp-section > .title-block.compact {
  text-align: center;
  width: min(100%, 960px);
  margin-left: auto;
  margin-right: auto;
}

body[data-page="home"] .trade-head-grid .title-block.compact h1,
body[data-page="home"] .trade-head-grid .title-block.compact .lead,
body[data-page="home"] .svp-section > .title-block.compact h1,
body[data-page="home"] .svp-section > .title-block.compact .lead {
  margin-left: auto;
  margin-right: auto;
}

body[data-page="home"] .trade-head-grid .title-block.compact .lead,
body[data-page="home"] .svp-section > .title-block.compact .lead {
  max-width: 74ch;
}

body[data-page="home"] .trade-objective-strip .protocol-snapshot-card {
  border: none !important;
  background: transparent !important;
  box-shadow: none !important;
}

body[data-page="home"] .hero-actions {
  margin-top: 1.5rem;
  gap: 0.72rem;
}

body[data-page="home"] .panel {
  border: none !important;
  background: transparent !important;
  box-shadow: none !important;
}

body[data-page="home"] .hero-actions .btn-dark {
  background: linear-gradient(135deg, rgba(70, 98, 86, 0.4), rgba(58, 74, 94, 0.38));
  border-color: rgba(143, 184, 157, 0.34);
  color: #dfe8de;
  box-shadow: 0 12px 22px rgba(5, 9, 14, 0.32);
}

body[data-page="home"] .hero-highlights {
  margin-top: 1rem;
  gap: 0.62rem;
}

body[data-page="home"] .hero-chip {
  border: none !important;
  background: transparent !important;
  color: #ccbca0;
  box-shadow: none !important;
}

body[data-page="home"] .snapshot-item,
body[data-page="home"] .transparency-item,
body[data-page="home"] .exec-control,
body[data-page="home"] .fee-summary,
body[data-page="home"] .widget-addresses .transparency-item {
  border-color: rgba(223, 185, 116, 0.22) !important;
  background: rgba(9, 13, 19, 0.34) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04) !important;
}

body[data-page="home"] .compact-switch {
  background: linear-gradient(180deg, rgba(223, 185, 116, 0.16), rgba(255, 255, 255, 0.05));
  border-color: rgba(223, 185, 116, 0.3);
}

body[data-page="home"] .widget-tab,
body[data-page="home"] .trade-mode-tab {
  border-color: rgba(223, 185, 116, 0.24);
  background: rgba(13, 20, 30, 0.78);
  color: #dccdb6;
}

body[data-page="home"] .widget-tab.active,
body[data-page="home"] .trade-mode-tab.active {
  color: #fff5df;
  border-color: rgba(236, 199, 128, 0.42);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

body[data-page="home"] .input-group label,
body[data-page="home"] .token-badge {
  color: #dfcfb4;
}

body[data-page="home"] .token-select-wrap {
  border-color: rgba(223, 185, 116, 0.3);
  background: rgba(11, 16, 24, 0.86);
}

body[data-page="home"] .token-select-wrap select,
body[data-page="home"] .token-select-wrap input,
body[data-page="home"] .full-input {
  color: #f0e5d1;
  background: rgba(8, 12, 18, 0.86);
}

body[data-page="home"] .token-select-wrap select::placeholder,
body[data-page="home"] .token-select-wrap input::placeholder,
body[data-page="home"] .full-input::placeholder {
  color: #998c79;
}

body[data-page="home"] .snapshot-label,
body[data-page="home"] .exec-label,
body[data-page="home"] .transparency-label {
  color: var(--logo-green) !important;
}

@media (max-width: 820px) {
  body[data-page="home"] .hero-logo-wrap {
    padding-left: 0;
  }

  body[data-page="home"] .hero-logo-streaks,
  body[data-page="home"] .hero-logo-random-streaks,
  body[data-page="home"] .hero-logo-wrap::before,
  body[data-page="home"] .hero-logo-wrap::after {
    inset: 54% auto auto 54%;
  }
}

body[data-page="home"] .trade-head-grid,
body[data-page="home"] .trade-shell {
  width: 100%;
  max-width: none;
  margin-left: auto;
  margin-right: auto;
}

body[data-page="home"] .trade-head-grid {
  grid-template-columns: minmax(0, 1fr);
  gap: 0.72rem;
}

body[data-page="home"] .trade-shell {
  grid-template-columns: minmax(0, 1fr);
  gap: 0.72rem;
}

body[data-page="home"] .trade-card,
body[data-page="home"] .trade-info {
  width: 100%;
  padding: 0.78rem 0.88rem;
  border-radius: 22px;
  border: none !important;
  background: transparent !important;
  box-shadow: none !important;
}

.trade-info-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 0.72rem;
}

.trade-info-grid .flow-line {
  margin: 0;
  padding: 0.4rem 0;
}

.trade-info-grid .flow-meta {
  grid-column: 1 / -1;
  padding-top: 0;
}

body[data-page="home"] .trade-info h3 {
  margin: 0.18rem 0 0.18rem;
  font-size: 1rem;
  line-height: 1.18;
}

body[data-page="home"] .trade-note {
  margin-top: 0.34rem;
  font-size: 0.72rem;
  line-height: 1.2;
}

body[data-page="home"] [data-widget-panel="card"] .card-program-badge {
  margin-bottom: 0.72rem;
  padding: 0.62rem 0.74rem;
  border-radius: 14px;
  border: none !important;
  background: transparent !important;
  box-shadow: none !important;
}

body[data-page="home"] [data-widget-panel="card"] .card-program-layout {
  grid-template-columns: minmax(0, 1fr);
  gap: 0.78rem;
}

body[data-page="home"] [data-widget-panel="card"] .card-program-layout-merged {
  padding: 0.92rem;
  border-radius: 24px;
}

body[data-page="home"] [data-widget-panel="card"] .card-program-copy,
body[data-page="home"] [data-widget-panel="card"] .card-stage,
body[data-page="home"] [data-widget-panel="card"] .card-reload-section,
body[data-page="home"] [data-widget-panel="card"] .card-checkout-shell {
  border-radius: 22px;
  box-shadow: 0 14px 24px rgba(92, 69, 31, 0.06);
}

body[data-page="home"] [data-widget-panel="card"] .card-program-copy,
body[data-page="home"] [data-widget-panel="card"] .card-reload-section,
body[data-page="home"] [data-widget-panel="card"] .card-checkout-shell {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
}

body[data-page="home"] [data-widget-panel="card"] .card-program-layout-merged .card-program-copy,
body[data-page="home"] [data-widget-panel="card"] .card-program-layout-merged .card-stage {
  border-radius: 0;
  box-shadow: none;
  background: transparent;
}

body[data-page="home"] [data-widget-panel="card"] .card-stage {
  display: grid;
  gap: 0.72rem;
}

body[data-page="home"] [data-widget-panel="card"] .card-stage-shell {
  display: grid;
  grid-template-columns: minmax(0, 0.94fr) minmax(280px, 1.06fr);
  gap: 0.82rem;
  align-items: start;
}

body[data-page="home"] [data-widget-panel="card"] .card-stage-visuals {
  display: grid;
  gap: 0.58rem;
  justify-items: center;
}

body[data-page="home"] [data-widget-panel="card"] .card-reload-section-compact {
  margin-top: 0;
  align-content: start;
}

body[data-page="home"] [data-widget-panel="card"] .card-reload-section-compact .card-console-metrics {
  margin-top: 0.48rem;
}

body[data-page="home"] [data-widget-panel="card"] .card-reload-section-compact .card-program-summary {
  margin-top: 0.5rem;
}

body[data-page="home"] [data-widget-panel="card"] .card-stage-note,
body[data-page="home"] [data-widget-panel="card"] .card-checkout-note,
body[data-page="home"] [data-widget-panel="card"] .card-checkout-qr-copy span {
  max-width: 54ch;
}

@media (min-width: 960px) {
  body[data-page="home"] .trade-shell.card-focus [data-widget-panel="card"] .card-program-layout {
    grid-template-columns: minmax(0, 0.92fr) minmax(360px, 1.08fr);
    gap: 1rem;
    align-items: stretch;
  }

  body[data-page="home"] .trade-shell.card-focus [data-widget-panel="card"] .card-program-layout-merged {
    grid-template-columns: minmax(0, 1fr);
    gap: 0.88rem;
    align-items: start;
  }

  body[data-page="home"] .trade-shell.card-focus [data-widget-panel="card"] .card-stage {
    padding: 0.82rem;
  }

  body[data-page="home"] .trade-shell.card-focus .sg-card-preview,
  body[data-page="home"] .trade-shell.card-focus .sg-card-details {
    width: min(100%, 352px);
    max-width: 352px;
  }
}

body[data-page="home"] .stats-vault-panel {
  padding: 0.92rem;
  border-radius: 28px;
  border: none !important;
  background: transparent !important;
  box-shadow: none !important;
}

body[data-page="home"] .svp-prices,
body[data-page="home"] .svp-vault-grid,
body[data-page="home"] .svp-signal-grid {
  gap: 0.72rem;
}

body[data-page="home"] .svp-feed-strip {
  margin: 0 0 0.92rem;
  padding: 0.58rem 0.62rem;
  border-radius: 12px;
  border: none !important;
  background: transparent !important;
  box-shadow: none !important;
}

body[data-page="home"] .svp-price-card,
body[data-page="home"] .svp-vault-item,
body[data-page="home"] .svp-empty {
  border: none !important;
  background: transparent !important;
  box-shadow: none !important;
}

body[data-page="home"] .svp-ref-grid .svp-vault-item {
  padding-top: 0.7rem;
  padding-bottom: 0.7rem;
}

.trade-shell.card-focus {
  grid-template-columns: minmax(0, 1fr);
}

.trade-shell.card-focus .trade-card {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
}

.trade-shell.card-focus .trade-info {
  display: none;
}

.transparency-item {
  padding: 0.62rem;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.58);
  border: 1px solid rgba(146, 102, 43, 0.1);
}

.transparency-label {
  display: block;
  margin-bottom: 0.35rem;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 700;
}

.transparency-value-row {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  min-width: 0;
}

.transparency-value-row code,
.svp-ref-value,
.token-badge {
  font-family: Arial, Helvetica, sans-serif;
}

.transparency-value-row code {
  flex: 1;
  min-width: 0;
  padding: 0.38rem 0.5rem;
  border-radius: 10px;
  background: rgba(94, 77, 48, 0.07);
  color: var(--ink);
  overflow-wrap: anywhere;
  word-break: break-word;
  font-size: 0.76rem;
}

.widget-addresses {
  margin-top: 0.8rem;
  grid-template-columns: 1fr;
}

.widget-addresses .transparency-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.52rem 0.6rem;
}

.widget-addresses .transparency-label {
  margin: 0;
  white-space: nowrap;
  min-width: 3.4rem;
}

.widget-addresses .transparency-value-row {
  display: flex;
  align-items: center;
  gap: 0.42rem;
  flex: 1;
  min-width: 0;
}

.widget-addresses .transparency-value-row code {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: 0.7rem;
  padding: 0.28rem 0.42rem;
}

.solscan-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.3rem;
  height: 1.3rem;
  padding: 0.08rem 0.12rem;
  border-radius: 0.35rem;
  border: 1px solid rgba(146, 102, 43, 0.22);
  background: rgba(188, 139, 67, 0.12);
  color: var(--gold-deep);
  text-decoration: none;
  font-size: 0.74rem;
  font-weight: 800;
  line-height: 1;
  transition: background 160ms ease, border-color 160ms ease, transform 160ms ease;
}

.solscan-link:hover {
  background: rgba(188, 139, 67, 0.2);
  border-color: rgba(146, 102, 43, 0.36);
  transform: translateY(-1px);
}

.solscan-link:focus-visible {
  outline: 2px solid rgba(146, 102, 43, 0.4);
  outline-offset: 2px;
}

.widget-tabs,
.trade-mode-tabs {
  display: flex;
  gap: 0.3rem;
  flex-wrap: wrap;
  margin-bottom: 0.48rem;
}

.compact-switch {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.26rem;
  padding: 0.26rem;
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(188, 139, 67, 0.1), rgba(255, 255, 255, 0.42));
  border: 1px solid rgba(146, 102, 43, 0.14);
}

.widget-tab,
.trade-mode-tab {
  padding: 0.4rem 0.42rem;
  border-radius: 12px;
  border: 1px solid rgba(146, 102, 43, 0.12);
  background: rgba(255, 255, 255, 0.72);
  color: var(--ink-soft);
  font-weight: 620;
  cursor: pointer;
}

.compact-switch .widget-tab {
  min-height: 2.08rem;
  display: grid;
  place-items: center;
  text-align: center;
}

.switch-label {
  font-size: 0.68rem;
  line-height: 1.05;
}

.widget-tab.active,
.trade-mode-tab.active {
  background: linear-gradient(135deg, rgba(228, 181, 95, 0.34), rgba(120, 168, 140, 0.28));
  border-color: rgba(146, 102, 43, 0.22);
  color: var(--ink);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.56);
}

.widget-tab.ttp-tab {
  color: var(--sage-deep);
}

.widget-tab.card-tab {
  color: var(--gold-deep);
}

.widget-panel,
.trade-mode-panel {
  display: none;
}

.widget-panel.active,
.trade-mode-panel.active {
  display: block;
}

.ttp-zero-badge,
.trade-pending-notice,
.profit-vault-note,
.mission-quote,
.comment-gate,
.profit-vault-readout-inner,
.fee-summary,
.exec-control,
.svp-empty {
  border: 1px solid rgba(146, 102, 43, 0.14);
  background: rgba(255, 255, 255, 0.56);
}

.ttp-zero-badge {
  margin-bottom: 0.8rem;
  padding: 0.7rem 0.85rem;
  border-radius: 14px;
  color: var(--ink-soft);
}

.card-program-badge {
  margin-bottom: 0.8rem;
  padding: 0.68rem 0.82rem;
  border-radius: 16px;
  border: 1px solid rgba(146, 102, 43, 0.16);
  background:
    radial-gradient(circle at 10% 20%, rgba(232, 191, 122, 0.22), transparent 35%),
    linear-gradient(135deg, rgba(255, 249, 238, 0.96), rgba(244, 236, 220, 0.9));
  color: var(--ink-soft);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.64);
}

.card-program-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(310px, 0.98fr);
  gap: 0.92rem;
  align-items: start;
}

.card-program-layout-merged {
  position: relative;
  padding: 1rem;
  border-radius: 28px;
  border: 1px solid rgba(146, 102, 43, 0.14);
  background:
    radial-gradient(circle at top left, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0) 26%),
    radial-gradient(circle at bottom right, rgba(228, 181, 95, 0.12), rgba(228, 181, 95, 0) 30%),
    linear-gradient(155deg, rgba(255, 250, 244, 0.98), rgba(248, 242, 231, 0.92));
  box-shadow:
    0 20px 44px rgba(84, 64, 31, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.72);
  overflow: hidden;
}

.card-program-layout-merged::before {
  content: "";
  position: absolute;
  inset: 0 auto auto 0;
  width: 12rem;
  height: 12rem;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(225, 189, 132, 0.16), rgba(225, 189, 132, 0));
  transform: translate(-26%, -30%);
  pointer-events: none;
}

.card-program-layout-merged > * {
  position: relative;
  z-index: 1;
}

.card-program-layout-merged .card-program-copy,
.card-program-layout-merged .card-stage {
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  border-radius: 0;
  overflow: visible;
}

.card-program-layout-merged .card-program-copy::after,
.card-program-layout-merged .card-stage::before {
  display: none;
}

.card-program-layout-merged .card-stage {
  gap: 0.68rem;
}

.card-program-layout-merged .card-stage-header {
  padding: 0;
}

.card-program-copy {
  position: relative;
  display: grid;
  gap: 0.66rem;
  padding: 0.98rem;
  border-radius: 24px;
  border: 1px solid rgba(146, 102, 43, 0.14);
  background:
    radial-gradient(circle at top left, rgba(255, 255, 255, 0.92), rgba(255, 255, 255, 0) 38%),
    linear-gradient(155deg, rgba(255, 250, 244, 0.98), rgba(248, 242, 231, 0.9));
  box-shadow:
    0 20px 44px rgba(84, 64, 31, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.72);
  overflow: hidden;
}

.card-program-copy::after {
  content: "";
  position: absolute;
  inset: 0 auto auto 0;
  width: 11rem;
  height: 11rem;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(225, 189, 132, 0.18), rgba(225, 189, 132, 0));
  transform: translate(-28%, -32%);
  pointer-events: none;
}

.card-program-copy > * {
  position: relative;
  z-index: 1;
}

.card-program-kicker {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 0.28rem 0.54rem;
  border-radius: 999px;
  background: rgba(45, 55, 40, 0.9);
  color: rgba(250, 241, 226, 0.92);
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.card-reload-section {
  display: grid;
  gap: 0.65rem;
  padding: 0.7rem;
  border: 1px solid rgba(146, 102, 43, 0.1);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.82);
}

.card-reload-section .input-group {
  margin-top: 0;
}

.card-stage-shell {
  display: grid;
  gap: 0.78rem;
}

.card-stage-visuals {
  display: grid;
  gap: 0.58rem;
}

.card-console-metrics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.6rem;
  margin-top: 0.65rem;
}

.card-program-summary {
  margin-top: 0.65rem;
}

.card-checkout-shell {
  margin-top: 0.62rem;
  padding: 0.72rem;
  border-radius: 18px;
  border: 1px solid rgba(84, 104, 73, 0.16);
  background: linear-gradient(145deg, rgba(245, 248, 240, 0.92), rgba(255, 252, 246, 0.92));
  display: grid;
  gap: 0.58rem;
}

.card-checkout-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.card-checkout-head strong {
  font-size: 0.92rem;
  color: var(--ink);
}

.card-checkout-chip {
  display: inline-flex;
  align-items: center;
  padding: 0.24rem 0.46rem;
  border-radius: 999px;
  background: rgba(45, 55, 40, 0.88);
  color: rgba(250, 241, 226, 0.94);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.card-checkout-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.5rem;
}

.card-checkout-grid article {
  min-width: 0;
  display: grid;
  gap: 0.14rem;
  padding: 0.54rem 0.6rem;
  border-radius: 14px;
  border: 1px solid rgba(146, 102, 43, 0.12);
  background: rgba(255, 255, 255, 0.72);
}

.card-checkout-grid .card-checkout-wide {
  grid-column: 1 / -1;
}

.card-checkout-label {
  font-size: 0.56rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.card-checkout-grid strong {
  min-width: 0;
  font-size: 0.82rem;
  line-height: 1.35;
  color: var(--ink);
  overflow-wrap: anywhere;
}

.card-checkout-qr-shell {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
  gap: 0.62rem;
  align-items: center;
}

.card-checkout-qr-frame {
  min-height: 112px;
  border-radius: 16px;
  border: 1px solid rgba(146, 102, 43, 0.12);
  background: rgba(255, 255, 255, 0.82);
  display: grid;
  place-items: center;
  padding: 0.38rem;
  text-align: center;
}

.card-checkout-qr-frame canvas {
  width: 100%;
  max-width: 96px;
  height: auto;
  display: block;
}

.card-checkout-qr-frame.is-empty canvas {
  display: none;
}

.card-checkout-qr-frame:not(.is-empty) #cardCheckoutQrEmpty {
  display: none;
}

#cardCheckoutQrEmpty {
  font-size: 0.72rem;
  line-height: 1.35;
  color: var(--muted);
}

.card-checkout-qr-copy {
  display: grid;
  gap: 0.24rem;
}

.card-checkout-qr-copy strong {
  font-size: 0.84rem;
  color: var(--ink);
}

.card-checkout-qr-copy span {
  font-size: 0.77rem;
  line-height: 1.45;
  color: var(--ink-soft);
}

.card-checkout-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.6rem;
}

.card-checkout-note {
  font-size: 0.76rem;
  line-height: 1.45;
  color: var(--ink-soft);
}

.card-program-copy h3 {
  margin: 0;
  font-size: clamp(1.36rem, 2.5vw, 1.78rem);
  line-height: 1.06;
}

.card-coming-soon-grid {
  grid-template-columns: minmax(0, 1fr) minmax(260px, 0.92fr);
  gap: 1rem;
}

.card-coming-soon-copy p {
  margin: 0;
  color: var(--ink-soft);
  line-height: 1.6;
}

.card-coming-soon-points {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.62rem;
}

.card-coming-soon-points article {
  display: grid;
  gap: 0.18rem;
  padding: 0.8rem;
  border-radius: 16px;
  border: 1px solid rgba(146, 102, 43, 0.14);
  background: rgba(255, 255, 255, 0.7);
}

.card-coming-soon-points span {
  font-size: 0.64rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.card-coming-soon-points strong {
  font-size: 0.9rem;
  line-height: 1.35;
  color: var(--ink);
}

.card-coming-soon-stage .card-stage-shell {
  align-items: start;
}

.card-coming-soon-details strong {
  text-wrap: balance;
}

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

.card-status.is-success {
  color: var(--sage-deep);
}

.card-status.is-error {
  color: #8c4639;
}

.card-stage {
  position: relative;
  display: grid;
  gap: 0.52rem;
  padding: 0.58rem 0.58rem 0.5rem;
  border-radius: 22px;
  border: 1px solid rgba(146, 102, 43, 0.08);
  background:
    radial-gradient(circle at top right, rgba(228, 181, 95, 0.08), transparent 32%),
    linear-gradient(180deg, rgba(255, 253, 248, 0.74), rgba(248, 241, 229, 0.52));
  box-shadow:
    0 10px 22px rgba(92, 69, 31, 0.045),
    inset 0 1px 0 rgba(255, 255, 255, 0.52);
  overflow: hidden;
}

.card-stage::before {
  content: "";
  position: absolute;
  inset: -14% auto auto -16%;
  width: 9rem;
  height: 9rem;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(230, 188, 107, 0.1), rgba(230, 188, 107, 0));
  pointer-events: none;
}

.card-stage > * {
  position: relative;
  z-index: 1;
}

.card-stage-header {
  display: grid;
  gap: 0.14rem;
  padding: 0 0.08rem;
}

.card-stage-kicker {
  font-size: 0.58rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(152, 109, 40, 0.84);
}

.card-stage-caption {
  color: rgba(102, 79, 48, 0.74);
  font-size: 0.84rem;
  line-height: 1.32;
}

.sg-card-preview {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-rows: auto 1fr auto auto auto;
  gap: 0.72rem;
  padding: 1rem;
  border-radius: 30px;
  border: 1px solid rgba(255, 245, 220, 0.62);
  width: min(100%, 284px);
  aspect-ratio: 1.586 / 1;
  justify-self: center;
  background:
    radial-gradient(circle at 12% 10%, rgba(255, 251, 239, 0.54), transparent 24%),
    repeating-linear-gradient(
      100deg,
      rgba(255, 245, 218, 0.08) 0,
      rgba(255, 245, 218, 0.08) 2px,
      rgba(156, 108, 37, 0.02) 2px,
      rgba(156, 108, 37, 0.02) 6px
    ),
    linear-gradient(160deg, rgba(141, 97, 36, 0.99) 0%, rgba(195, 147, 67, 0.98) 38%, rgba(231, 203, 140, 0.96) 100%);
  color: rgba(58, 40, 14, 0.94);
  overflow: hidden;
  box-shadow:
    0 20px 30px rgba(94, 62, 19, 0.18),
    0 8px 16px rgba(94, 62, 19, 0.1),
    inset 0 1px 0 rgba(255, 253, 245, 0.72),
    inset 0 -14px 24px rgba(114, 76, 24, 0.08);
  transition: transform 220ms ease, box-shadow 220ms ease;
}

.sg-card-preview::before,
.sg-card-preview::after {
  content: "";
  position: absolute;
  pointer-events: none;
}

.sg-card-preview::before {
  inset: 0;
  background:
    linear-gradient(120deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0) 42%),
    linear-gradient(180deg, rgba(134, 89, 28, 0) 0%, rgba(134, 89, 28, 0.09) 100%);
}

.sg-card-preview::after {
  inset: 0;
  border-radius: inherit;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0) 22%),
    linear-gradient(90deg, rgba(121, 80, 24, 0.04), rgba(121, 80, 24, 0));
  opacity: 0.56;
}

.sg-card-preview > * {
  position: relative;
  z-index: 1;
}

@media (hover: hover) and (pointer: fine) {
  .sg-card-preview:hover {
    transform: translateY(-3px);
    box-shadow:
      0 24px 34px rgba(94, 62, 19, 0.2),
      0 10px 20px rgba(94, 62, 19, 0.13),
      inset 0 1px 0 rgba(255, 253, 245, 0.7),
      inset 0 -14px 24px rgba(114, 76, 24, 0.09);
  }
}

.sg-card-topline {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.65rem;
}

.sg-card-brand-wrap {
  display: flex;
  align-items: flex-start;
  gap: 0.62rem;
  min-width: 0;
}

.sg-card-brand-stack {
  display: grid;
  gap: 0.16rem;
}

.sg-card-kicker {
  font-size: 0.46rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(116, 76, 22, 0.62);
  line-height: 1;
}

.sg-card-logo-mark {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  border-radius: 16px;
  background: linear-gradient(145deg, rgba(249, 229, 174, 0.99), rgba(188, 132, 49, 0.94));
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.4),
    inset 0 10px 14px rgba(255, 247, 226, 0.18),
    0 8px 16px rgba(94, 62, 19, 0.16);
  flex: 0 0 auto;
}

.sg-card-logo-img {
  width: 34px;
  height: 34px;
  object-fit: contain;
  display: block;
}

.sg-card-logo-mark-corner {
  margin-top: 0.02rem;
}

.sg-card-mode {
  display: inline-flex;
  align-items: center;
  min-height: 1.65rem;
  padding: 0.28rem 0.55rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 249, 231, 0.46);
  background: rgba(255, 251, 240, 0.14);
  font-size: 0.46rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(122, 81, 23, 0.68);
  justify-self: start;
  margin-top: 0.16rem;
}

.sg-card-contactless {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.12rem;
  transform: rotate(90deg);
}

.sg-card-contactless span {
  display: block;
  width: 0.56rem;
  height: 0.56rem;
  border: 1.8px solid rgba(114, 76, 24, 0.52);
  border-left-color: transparent;
  border-bottom-color: transparent;
  border-radius: 50%;
}

.sg-card-contactless span:nth-child(2) {
  width: 0.78rem;
  height: 0.78rem;
}

.sg-card-contactless span:nth-child(3) {
  width: 1rem;
  height: 1rem;
}

.sg-card-chip-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.45rem;
}

.sg-card-number {
  font-size: 0.76rem;
  font-family: "SFMono-Regular", Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  letter-spacing: 0.16em;
  font-variant-numeric: tabular-nums;
  color: rgba(77, 52, 17, 0.82);
  text-shadow: none;
}

.sg-card-brand {
  font-size: 0.94rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  line-height: 1;
}

.sg-card-chip {
  width: 40px;
  height: 29px;
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(149, 104, 39, 0.92), rgba(233, 209, 153, 0.92));
  position: relative;
  box-shadow:
    inset 0 0 0 1px rgba(120, 78, 21, 0.22),
    inset 0 8px 16px rgba(255, 248, 224, 0.3),
    0 5px 10px rgba(94, 62, 19, 0.1);
}

.sg-card-chip::before {
  content: "";
  position: absolute;
  inset: 5px;
  border-radius: 5px;
  background:
    repeating-linear-gradient(
      90deg,
      rgba(96, 64, 19, 0.28),
      rgba(96, 64, 19, 0.28) 3px,
      rgba(255, 246, 217, 0.22) 3px,
      rgba(255, 246, 217, 0.22) 6px
    );
}

.sg-card-balance-panel {
  display: grid;
  gap: 0.24rem;
  padding: 0.8rem 0.84rem;
  border-radius: 20px;
  border: 1px solid rgba(255, 251, 239, 0.36);
  background: linear-gradient(145deg, rgba(255, 250, 238, 0.2), rgba(255, 255, 255, 0.06));
  color: rgba(72, 47, 14, 0.94);
  backdrop-filter: blur(8px);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.2),
    inset 0 -8px 16px rgba(114, 76, 24, 0.04),
    0 6px 14px rgba(94, 62, 19, 0.05);
}

.sg-card-balance-head {
  display: grid;
  gap: 0.14rem;
}

.sg-card-balance-panel strong {
  font-size: 1.68rem;
  line-height: 0.92;
  letter-spacing: -0.04em;
}

.sg-card-money-kicker {
  font-size: 0.5rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(112, 73, 21, 0.72);
}

.sg-card-money-caption {
  font-size: 0.54rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(112, 73, 21, 0.62);
}

.sg-card-balance-meta {
  display: grid;
  gap: 0.08rem;
}

.sg-card-ledger-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding-top: 0.02rem;
}

.sg-card-network-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 1.58rem;
  padding: 0.22rem 0.48rem;
  border-radius: 999px;
  background: rgba(255, 250, 236, 0.14);
  border: 1px solid rgba(255, 246, 224, 0.4);
  font-size: 0.52rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(100, 67, 20, 0.74);
}

.sg-card-caption {
  font-size: 0.46rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(112, 73, 21, 0.5);
}

.sg-card-balance-meta small {
  font-size: 0.54rem;
  line-height: 1.25;
  color: rgba(77, 52, 17, 0.74);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sg-card-footer-strip {
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  gap: 0.48rem;
  padding-top: 0.16rem;
  border-top: 1px solid rgba(122, 81, 23, 0.12);
}

.sg-card-footer-item {
  display: grid;
  gap: 0.08rem;
  min-width: 0;
  flex: 1;
}

.sg-card-footer-item-right {
  text-align: right;
}

.sg-card-validity-label,
.sg-card-label {
  display: block;
  font-size: 0.5rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(112, 73, 21, 0.66);
}

.sg-card-footer-item strong {
  font-size: 0.66rem;
  line-height: 1.2;
  color: rgba(72, 47, 14, 0.9);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sg-card-details {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.4rem;
  width: min(100%, 284px);
  justify-self: center;
  margin-top: 0;
}

.sg-card-details > * {
  min-width: 0;
  padding: 0.52rem 0.56rem;
  border-radius: 14px;
  background: linear-gradient(145deg, rgba(255, 251, 242, 0.94), rgba(247, 239, 224, 0.82));
  border: 1px solid rgba(146, 102, 43, 0.12);
  box-shadow: 0 8px 16px rgba(92, 69, 31, 0.045);
}

.sg-card-preview {
  outline: 1px solid rgba(255, 253, 245, 0.44);
  outline-offset: -6px;
}

.sg-card-preview .sg-card-brand,
.sg-card-preview .sg-card-number,
.sg-card-preview .sg-card-footer-item strong,
.sg-card-preview .sg-card-network-pill {
  text-shadow: 0 1px 0 rgba(255, 249, 233, 0.18);
}

.sg-card-details strong {
  display: block;
  margin-top: 0.08rem;
  font-size: 0.66rem;
  line-height: 1.15;
  color: var(--ink);
  overflow-wrap: anywhere;
}

.card-stage-note {
  color: var(--muted);
  font-size: 0.72rem;
  line-height: 1.35;
  text-align: center;
}

.input-group {
  margin-top: 0.52rem;
}

.input-group label {
  display: block;
  margin-bottom: 0.28rem;
  color: var(--ink);
  font-weight: 700;
  font-size: 0.92rem;
}

.ttp-merchant-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.55rem;
  align-items: center;
}

.ttp-scan-btn {
  white-space: nowrap;
  padding: 0.74rem 0.95rem;
}

.ttp-qr-actions {
  margin-top: 0.62rem;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.52rem;
}

.ttp-qr-shell {
  margin-top: 0.62rem;
  padding: 0.72rem;
  border-radius: 15px;
  border: 1px solid rgba(146, 102, 43, 0.18);
  background: rgba(255, 255, 255, 0.72);
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.72rem;
  align-items: center;
}

.ttp-qr-frame {
  width: 148px;
  height: 148px;
  border-radius: 12px;
  border: 1px dashed rgba(146, 102, 43, 0.26);
  background: #fffdf8;
  display: grid;
  place-items: center;
  padding: 0.3rem;
}

.ttp-qr-frame canvas {
  width: 100%;
  height: 100%;
  display: block;
}

.ttp-qr-frame.is-empty canvas {
  display: none;
}

.ttp-qr-frame:not(.is-empty) #ttpQrEmpty {
  display: none;
}

#ttpQrEmpty {
  padding: 0 0.35rem;
  text-align: center;
  font-size: 0.69rem;
  line-height: 1.2;
  color: var(--muted);
}

.ttp-qr-copy {
  display: grid;
  gap: 0.26rem;
}

.ttp-qr-copy strong {
  font-size: 0.8rem;
  color: var(--ink);
}

.ttp-qr-copy span {
  font-size: 0.74rem;
  color: var(--muted);
  line-height: 1.35;
}

.token-select-wrap {
  display: grid;
  grid-template-columns: 108px 1fr;
  gap: 0.42rem;
}

.card-reload-wrap {
  grid-template-columns: 144px 1fr;
}

.card-reload-wrap select {
  font-size: 0.92rem;
  padding-left: 0.72rem;
  padding-right: 2rem;
}

.token-output-wrap {
  grid-template-columns: 124px 1fr;
}

.token-select-wrap select,
.token-select-wrap input,
.full-input,
#tradeSlippageBps {
  width: 100%;
  padding: 0.58rem 0.7rem;
  border-radius: 12px;
  border: 1px solid rgba(146, 102, 43, 0.14);
  background: rgba(255, 255, 255, 0.82);
  color: var(--ink);
  outline: none;
}

.token-select-wrap select:focus,
.token-select-wrap input:focus,
.full-input:focus,
#tradeSlippageBps:focus,
textarea.full-input:focus {
  border-color: rgba(188, 139, 67, 0.35);
  box-shadow: 0 0 0 4px rgba(188, 139, 67, 0.1);
}

.token-select-wrap select::placeholder,
.token-select-wrap input::placeholder,
.full-input::placeholder {
  color: #9a8e81;
}

input::placeholder,
textarea::placeholder,
select::placeholder {
  color: transparent !important;
  opacity: 0 !important;
}

.token-badge {
  display: grid;
  place-items: center;
  padding: 0.56rem 0.48rem;
  border-radius: 12px;
  border: 1px solid rgba(146, 102, 43, 0.16);
  background: linear-gradient(135deg, rgba(225, 189, 132, 0.34), rgba(255, 255, 255, 0.7));
  color: var(--gold-deep);
  font-size: 0.7rem;
  letter-spacing: 0.04em;
  font-weight: 700;
}

.fee-summary {
  margin-top: 0.52rem;
  padding: 0.54rem 0.64rem;
  border-radius: 12px;
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
  align-items: flex-start;
  font-size: 0.76rem;
  line-height: 1.28;
}

.ttp-fee-row span:last-child {
  font-weight: 700;
}

.btn-block {
  width: 100%;
  margin-top: 0.54rem;
}

.exec-controls {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.42rem;
  margin: 0.26rem 0 0.5rem;
}

.exec-control {
  padding: 0.42rem 0.52rem;
  border-radius: 12px;
}

.exec-label {
  display: block;
  margin-bottom: 0.14rem;
}

.exec-value {
  display: inline-block;
  padding: 0.12rem 0.36rem;
  border-radius: 999px;
  color: var(--sage-deep);
  background: rgba(127, 148, 115, 0.14);
  border: 1px solid rgba(127, 148, 115, 0.18);
  font-size: 0.68rem;
  font-weight: 700;
}

.flow-line {
  padding: 0.4rem 0;
  border-bottom: 1px solid rgba(146, 102, 43, 0.12);
}

.flow-line strong {
  display: block;
  margin-bottom: 0.08rem;
  color: var(--ink);
  font-size: 0.84rem;
}

.flow-line span {
  font-size: 0.8rem;
  line-height: 1.18;
}

.flow-meta {
  border-top: 1px solid rgba(146, 102, 43, 0.12);
}

.trade-note {
  margin-top: 0.34rem;
  font-size: 0.72rem;
  line-height: 1.2;
}

.stats-vault-panel {
  margin-top: 1rem;
  padding: 1rem;
  border-radius: 34px;
  background: linear-gradient(180deg, var(--panel-strong), var(--panel));
  border: 1px solid rgba(146, 102, 43, 0.14);
}

.svp-prices,
.svp-vault-grid,
.svp-signal-grid,
.svp-ref-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.9rem;
}

.svp-prices {
  margin-bottom: 1rem;
}

.svp-feed-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  align-items: center;
  margin: -0.2rem 0 1rem;
  padding: 0.65rem 0.72rem;
  border-radius: 14px;
  border: 1px solid rgba(146, 102, 43, 0.2);
  background: linear-gradient(135deg, rgba(228, 181, 95, 0.16), rgba(120, 168, 140, 0.12));
}

.svp-feed-title {
  display: inline-flex;
  align-items: center;
  min-height: 1.85rem;
  padding: 0.2rem 0.62rem;
  border-radius: 999px;
  border: 1px solid rgba(146, 102, 43, 0.2);
  background: rgba(255, 255, 255, 0.72);
  color: var(--ink);
  font-size: 0.74rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.svp-feed-pill,
.svp-feed-meta {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  border: 1px solid rgba(146, 102, 43, 0.16);
  background: rgba(255, 255, 255, 0.62);
  color: var(--muted);
  min-height: 1.85rem;
  padding: 0.2rem 0.62rem;
  font-size: 0.74rem;
  font-weight: 700;
}

.svp-feed-pill.is-live {
  color: var(--sage-deep);
  border-color: rgba(127, 148, 115, 0.24);
  background: rgba(127, 148, 115, 0.12);
}

.svp-feed-pill.is-live::before {
  content: "";
  width: 0.44rem;
  height: 0.44rem;
  margin-right: 0.35rem;
  border-radius: 999px;
  background: currentColor;
}

.svp-feed-pill.is-fallback {
  color: var(--gold-deep);
  border-color: rgba(188, 139, 67, 0.24);
  background: rgba(188, 139, 67, 0.13);
}

.svp-price-card {
  border-radius: 22px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 0.85rem;
  align-items: center;
  background: linear-gradient(180deg, var(--panel-strong), var(--panel));
  border: 1px solid rgba(146, 102, 43, 0.14);
  box-shadow: var(--shadow-soft);
}

.svp-price-icon {
  width: 2.9rem;
  height: 2.9rem;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, rgba(228, 181, 95, 0.28), rgba(120, 168, 140, 0.22));
  color: var(--gold-deep);
  font-size: 1.2rem;
}

.svp-logo-img {
  width: 2rem;
  height: 2rem;
  object-fit: contain;
}

.svp-price-body {
  display: grid;
  gap: 0.14rem;
}

.svp-price-value,
.svp-vault-value {
  font-size: 1.28rem;
}

.svp-vault-value.is-positive {
  color: var(--sage-deep);
}

.svp-vault-value.is-negative {
  color: #8c4639;
}

.metric-status-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-left: 0.34rem;
  padding: 0.1rem 0.44rem;
  border-radius: 999px;
  border: 1px solid rgba(146, 102, 43, 0.22);
  background: rgba(255, 255, 255, 0.72);
  color: var(--muted);
  font-size: 0.66rem;
  font-weight: 780;
  line-height: 1.1;
  letter-spacing: 0.055em;
  text-transform: uppercase;
  vertical-align: text-bottom;
  white-space: nowrap;
}

.metric-status-badge.is-live {
  color: var(--sage-deep);
  border-color: rgba(127, 148, 115, 0.35);
  background: rgba(127, 148, 115, 0.14);
}

.metric-status-badge.is-cached {
  color: var(--blue);
  border-color: rgba(111, 148, 168, 0.34);
  background: rgba(111, 148, 168, 0.14);
}

.metric-status-badge.is-estimated {
  color: var(--gold-deep);
  border-color: rgba(188, 139, 67, 0.36);
  background: rgba(188, 139, 67, 0.14);
}

.metric-status-badge.is-syncing {
  color: #5c5fb8;
  border-color: rgba(92, 95, 184, 0.34);
  background: rgba(92, 95, 184, 0.13);
}

.metric-status-badge.is-unavailable {
  color: #83525b;
  border-color: rgba(131, 82, 91, 0.33);
  background: rgba(131, 82, 91, 0.12);
}

.svp-vv-gold {
  color: var(--gold-deep);
}

.svp-vv-blue {
  color: var(--blue);
}

.svp-price-badge {
  justify-self: start;
  padding: 0.34rem 0.62rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(146, 102, 43, 0.12);
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 700;
  box-shadow: none;
}

.svp-price-badge.is-live {
  color: var(--sage-deep);
  border-color: rgba(127, 148, 115, 0.24);
  background: rgba(127, 148, 115, 0.12);
}

.svp-price-badge.is-fallback {
  color: var(--gold-deep);
  border-color: rgba(188, 139, 67, 0.2);
  background: rgba(188, 139, 67, 0.12);
}

.svp-inner-divider {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin: 0 0 1rem;
  color: var(--muted);
}

.svp-inner-divider::before,
.svp-inner-divider::after {
  content: "";
  height: 1px;
  flex: 1;
  background: rgba(146, 102, 43, 0.12);
}

.svp-inner-divider span {
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 800;
}

.svp-vault-item {
  border-radius: 20px;
  display: grid;
  gap: 0.35rem;
  border: 1px solid rgba(146, 102, 43, 0.12);
  background: linear-gradient(180deg, var(--panel-strong), var(--panel));
  box-shadow: var(--shadow-soft);
}

.svp-vault-featured {
  background: linear-gradient(180deg, rgba(255, 252, 247, 1), rgba(248, 241, 232, 0.98));
  border-color: rgba(146, 102, 43, 0.14);
  box-shadow: var(--shadow-soft);
}

.svp-vault-pie {
  grid-column: span 1;
}

.svp-empty,
.svp-ref-value {
  color: var(--ink);
}

.svp-ref-value {
  overflow-wrap: anywhere;
  word-break: break-word;
  line-height: 1.35;
  font-size: 0.92rem;
}

/* ── On-Chain References: full-width single-column rows ── */
.svp-ref-grid {
  grid-template-columns: 1fr !important;
}

.svp-ref-grid .svp-vault-item {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 0.6rem;
  flex-wrap: wrap;
  min-width: 0;
}

.svp-ref-grid .svp-vault-label {
  flex-shrink: 0;
  min-width: 5.5rem;
  font-size: 0.74rem;
}

.svp-ref-grid .svp-ref-value {
  display: flex;
  align-items: center;
  gap: 0.42rem;
  flex: 1;
  min-width: 0;
  flex-wrap: wrap;
  font-size: 0.72rem;
}

.svp-ref-grid .svp-ref-value > span {
  font-family: 'Courier New', Courier, monospace;
  font-size: 0.7rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  flex: 1;
  min-width: 0;
  background: rgba(94, 77, 48, 0.07);
  border-radius: 8px;
  padding: 0.22rem 0.44rem;
}

.svp-empty {
  min-height: 110px;
  padding: 1rem;
  border-radius: 18px;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.56);
}

#backingSplitDisplay {
  font-size: 0.85rem;
  line-height: 1.35;
}

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

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

.story-grid,
.comments-layout,
.layer-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.layer-card h4 {
  margin: 0.3rem 0 0.6rem;
  font-size: 1.25rem;
}

.layer-green {
  box-shadow: inset 0 0 0 1px rgba(127, 148, 115, 0.18), var(--shadow);
}

.layer-gold {
  box-shadow: inset 0 0 0 1px rgba(188, 139, 67, 0.18), var(--shadow);
}

.layer-card ul,
.steps {
  margin: 0.4rem 0 0;
  padding-left: 1.2rem;
}

.layer-card ul {
  color: var(--muted);
}

.profit-vault-note {
  margin-top: 1rem;
  padding: 0.9rem 1rem;
  border-radius: 18px;
  color: var(--ink-soft);
}

.alloc-track {
  display: grid;
  grid-template-columns: 1fr 1fr;
  overflow: hidden;
  border-radius: 18px;
  border: 1px solid rgba(146, 102, 43, 0.14);
  background: rgba(255, 255, 255, 0.56);
}

.alloc-gold,
.alloc-usdc {
  padding: 0.9rem;
  text-align: center;
  font-weight: 800;
}

.alloc-gold {
  background: linear-gradient(90deg, #e09f42 0%, #f0cc74 60%, #de9777 100%);
  color: #3a2711;
}

.alloc-usdc {
  background: linear-gradient(90deg, #7fae95 0%, #96c9b3 55%, #8db7c8 100%);
  color: #24413d;
}

.slider-wrap {
  margin-top: 1rem;
}

input[type="range"] {
  width: 100%;
}

.readout {
  margin-top: 0.75rem;
  font-size: 1rem;
}

.mission-quote {
  margin: 0;
  padding: 1rem 1.05rem;
  border-radius: 18px;
  color: var(--ink-soft);
  line-height: 1.65;
}

.comment-form,
.comment-list {
  display: grid;
  gap: 0.8rem;
}

.comment-board-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
}

.comment-card {
  border-radius: 22px;
  background: linear-gradient(135deg, rgba(255, 252, 247, 0.98), rgba(120, 168, 140, 0.08));
}

.comment-head {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 0.35rem;
}

.comment-author-wrap {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.comment-name {
  color: var(--gold-deep);
  font-size: 0.84rem;
  font-weight: 700;
}

.comment-wallet-link {
  color: var(--ink-soft);
  font-size: 0.8rem;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.comment-wallet-link:hover {
  color: var(--gold-deep);
}

.comment-time {
  color: var(--muted);
  font-size: 0.86rem;
}

.comment-delete {
  margin-left: auto;
  padding: 0.24rem 0.55rem;
  border-radius: 999px;
  border: 1px solid rgba(170, 94, 77, 0.18);
  background: rgba(255, 255, 255, 0.7);
  color: #9b5c50;
  cursor: pointer;
}

.comment-delete:hover {
  background: rgba(170, 94, 77, 0.08);
}

.comment-gate {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  align-items: flex-start;
  padding: 1.2rem;
  border-radius: 22px;
}

textarea.full-input {
  min-height: 140px;
  resize: vertical;
}

.trade-pending-notice {
  margin-top: 0.6rem;
  padding: 0.72rem 0.88rem;
  border-radius: 14px;
  color: var(--ink-soft);
  font-size: 0.86rem;
}

.trade-pending-notice a {
  color: var(--gold-deep);
}

.trade-pending-notice.is-success {
  background: rgba(127, 148, 115, 0.14);
  border-color: rgba(127, 148, 115, 0.22);
  color: #42533a;
}

.trade-pending-notice.is-error {
  background: rgba(170, 94, 77, 0.1);
  border-color: rgba(170, 94, 77, 0.18);
  color: #8c4639;
}

.profit-vault-readout {
  margin-top: 0.85rem;
}

.profit-vault-readout-inner {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.25rem 1rem;
  padding: 0.95rem 1rem;
  border-radius: 18px;
}

.pvr-label {
  color: var(--muted);
  font-size: 0.88rem;
}

.pvr-value {
  text-align: right;
  font-size: 0.95rem;
}

.pvr-note {
  grid-column: 1 / -1;
  margin-top: 0.3rem;
  padding-top: 0.55rem;
  border-top: 1px solid rgba(146, 102, 43, 0.12);
  font-size: 0.82rem;
}

#_walletChooser {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  background: rgba(62, 52, 40, 0.52);
}

@media (max-width: 520px) {
  #_walletChooser {
    align-items: flex-end;
  }
}

._wc-box {
  width: min(100%, 460px);
  padding: 1.4rem 1.2rem 1.6rem;
  border-radius: 28px 28px 18px 18px;
  border: 1px solid rgba(146, 102, 43, 0.14);
  background: linear-gradient(180deg, rgba(255, 252, 247, 1), rgba(248, 241, 232, 0.98));
  box-shadow: var(--shadow);
  display: grid;
  gap: 0.75rem;
}

._wc-title {
  margin: 0 0 0.1rem;
  text-align: center;
  font-weight: 800;
  color: var(--ink);
}

._wc-sub {
  margin: -0.25rem 0 0.25rem;
  text-align: center;
  font-size: 0.85rem;
  color: var(--muted);
}

._wc-btn {
  width: 100%;
}

._wc-close {
  border: 0;
  background: none;
  color: var(--muted);
  cursor: pointer;
}

#_qrScanOverlay {
  position: fixed;
  inset: 0;
  z-index: 10010;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  background: rgba(62, 52, 40, 0.64);
}

.qr-scan-box {
  width: min(100%, 460px);
  border-radius: 22px;
  border: 1px solid rgba(146, 102, 43, 0.3);
  background: rgba(251, 247, 242, 0.98);
  box-shadow: var(--shadow);
  padding: 1rem;
  display: grid;
  gap: 0.7rem;
}

.qr-scan-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
}

.qr-scan-title {
  margin: 0;
  color: var(--ink);
  font-size: 1rem;
  font-weight: 800;
}

.qr-scan-close {
  border: 0;
  background: none;
  color: var(--muted);
  font-size: 1.2rem;
  cursor: pointer;
  padding: 0.1rem 0.35rem;
}

.qr-scan-video-wrap {
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(146, 102, 43, 0.24);
  background: rgba(0, 0, 0, 0.85);
}

#_qrScanVideo {
  width: 100%;
  height: auto;
  display: block;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

.qr-scan-note {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.86rem;
}

.site-footer {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 1.2rem 1rem 1.8rem;
  display: grid;
  justify-items: center;
  text-align: center;
  gap: 0.45rem;
  border-top: 1px solid rgba(146, 102, 43, 0.12);
}

.footer-brandline {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: var(--ink-soft);
  font-size: 0.86rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.footer-logo {
  width: 1.15rem;
  height: 1.15rem;
  object-fit: cover;
  border-radius: 50%;
  box-shadow: 0 6px 14px rgba(188, 139, 67, 0.22);
}

.site-footer p {
  margin: 0;
}

.footer-disclaimer {
  max-width: 760px;
  font-size: 0.82rem;
}

/* Transparent container mode across the interface. */
.site-header,
.hero-copy,
.panel,
.trade-card,
.trade-info,
.stats-vault-panel,
.svp-price-card,
.svp-vault-item,
.comment-card,
.layer-card,
.transparency-item,
.comment-gate,
.profit-vault-readout-inner,
.fee-summary,
.exec-control,
.widget-addresses .transparency-item,
.ttp-zero-badge,
.profit-vault-note,
.mission-quote,
.svp-empty,
.transparency-value-row code {
  background: transparent !important;
}

.reveal {
  opacity: 0;
  transform: translateY(16px);
  animation: fadeUp 700ms ease forwards;
}

.delay-1 {
  animation-delay: 120ms;
}

.delay-2 {
  animation-delay: 220ms;
}

@keyframes fadeUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes logoGlowPulse {
  0%,
  100% {
    opacity: 0.64;
    transform: translate(-50%, -50%) scale(0.92);
  }

  50% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1.09);
  }
}

@keyframes logoGlowPulseAlt {
  0%,
  100% {
    opacity: 0.5;
    transform: translate(-50%, -50%) scale(0.95);
  }

  50% {
    opacity: 0.84;
    transform: translate(-50%, -50%) scale(1.12);
  }
}

@keyframes logoCoronaPulse {
  0%,
  100% {
    opacity: 0.28;
    filter: blur(1.3px);
  }

  50% {
    opacity: 0.6;
    filter: blur(0.82px);
  }
}

@keyframes logoCoronaSpin {
  0% {
    transform: translate(-50%, -50%) rotate(0deg) scale(0.97);
  }

  50% {
    transform: translate(-50%, -50%) rotate(180deg) scale(1.01);
  }

  100% {
    transform: translate(-50%, -50%) rotate(360deg) scale(0.97);
  }
}

@keyframes logoStreakSweep {
  0% {
    opacity: 0;
    transform: translate(-50%, -50%) rotate(-26deg) scale(0.56);
  }

  24% {
    opacity: 0.4;
    transform: translate(-50%, -50%) rotate(32deg) scale(0.8);
  }

  60% {
    opacity: 0.24;
    transform: translate(-50%, -50%) rotate(168deg) scale(1.06);
  }

  100% {
    opacity: 0;
    transform: translate(-50%, -50%) rotate(334deg) scale(1.32);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

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

  .hero-logo-streaks {
    animation: none;
  }

  .hero-logo-random-streaks {
    animation: none;
  }

  .hero-logo-wrap::before {
    animation: none;
  }

  .hero-logo-wrap::after {
    animation: none;
  }
}

@media (max-width: 1024px) {
  .trade-head-grid,
  .trade-shell,
  .feature-grid,
  .cards-2,
  .card-program-layout,
  .card-checkout-grid,
  .card-checkout-qr-shell,
  .card-checkout-actions,
  .card-console-metrics,
  .story-grid,
  .comments-layout,
  .layer-grid,
  .svp-prices,
  .svp-vault-grid,
  .svp-signal-grid,
  .svp-ref-grid {
    grid-template-columns: 1fr 1fr;
  }

  .trade-head-grid,
  .trade-shell {
    grid-template-columns: 1fr;
  }

  .trade-info {
    position: static;
  }

  .trade-info-grid {
    grid-template-columns: 1fr;
  }

  body[data-page="home"] [data-widget-panel="card"] .card-checkout-grid {
    grid-template-columns: 1fr;
  }

  body[data-page="home"] [data-widget-panel="card"] .card-checkout-grid .card-checkout-wide {
    grid-column: auto;
  }

  .svp-vault-pie {
    grid-column: span 1;
  }

  .site-header {
    grid-template-columns: 1fr;
    justify-items: stretch;
    border-radius: 28px;
    top: 0;
  }

  .site-nav {
    justify-content: flex-start;
  }

  .header-tools {
    justify-content: flex-start;
  }

  .card-stage-note {
    text-align: left;
  }
}

@media (max-width: 720px) {
  main {
    padding: 0 0.75rem 3rem;
  }

  main > section,
  .inner-page > section,
  .title-block,
  .editorial-header {
    width: 100%;
    max-width: 100%;
  }

  .site-header {
    width: 100%;
    grid-template-columns: 1fr auto;
    row-gap: 0;
    padding: calc(0.7rem + env(safe-area-inset-top, 0px)) 0.85rem 0.7rem;
    border-radius: 0 0 20px 20px;
    border-left: 0;
    border-right: 0;
    border-top: 0;
  }

  .brand {
    min-width: 0;
    gap: 0.5rem;
    font-size: 0.82rem;
    letter-spacing: 0.06em;
  }

  .brand-live-price {
    font-size: 0.61rem;
    min-height: 1.35rem;
    padding: 0.14rem 0.42rem;
  }

  .brand > span {
    min-width: 0;
    line-height: 1.05;
  }

  .brand-wordmark {
    gap: 0.2rem;
  }

  .brand-logo {
    width: 2.05rem;
    height: 2.05rem;
  }

  .nav-toggle {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 4px;
    width: 44px;
    height: 44px;
    padding: 0;
    border-radius: 12px;
    border: 1px solid rgba(146, 102, 43, 0.14);
    background: rgba(255, 255, 255, 0.58);
    cursor: pointer;
  }

  .nav-toggle span {
    width: 18px;
    height: 2px;
    margin: 0 auto;
    border-radius: 999px;
    background: var(--ink);
    transition: transform 180ms ease, opacity 180ms ease;
  }

  .site-nav,
  .header-tools {
    display: none;
    width: 100%;
    grid-column: 1 / -1;
    flex-direction: column;
    align-items: stretch;
    padding-top: 0.6rem;
  }

  .site-header.nav-open .site-nav,
  .site-header.nav-open .header-tools {
    display: flex;
  }

  .site-header.nav-open .nav-toggle span:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
  }

  .site-header.nav-open .nav-toggle span:nth-child(2) {
    opacity: 0;
  }

  .site-header.nav-open .nav-toggle span:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
  }

  .site-nav a,
  .header-tools .btn {
    width: 100%;
    min-height: 44px;
    justify-content: center;
  }

  .header-tools .wallet-status-badge {
    width: 100%;
    min-height: 40px;
  }

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

  .ttp-scan-btn {
    width: 100%;
  }

  .hero-actions,
  .hero-highlights,
  .community-pill-row,
  .widget-tabs,
  .trade-mode-tabs {
    display: grid;
    grid-template-columns: 1fr;
    width: 100%;
  }

  .hero-actions .btn,
  .hero-chip,
  .widget-tab,
  .trade-mode-tab,
  .btn-block,
  .full-input,
  #tradeSlippageBps,
  .token-select-wrap select,
  .token-select-wrap input,
  .token-badge,
  .trade-card,
  .trade-info,
  .panel,
  .layer-card,
  .comment-card,
  .comment-card {
    width: 100%;
    max-width: 100%;
  }

  .hero-copy {
    padding: 1.6rem 1rem 1.5rem;
    border-radius: 28px;
  }

  body[data-page="home"] .hero-copy {
    text-align: left;
  }

  .hero-copy h1 {
    width: 100%;
    max-width: 100%;
    font-size: clamp(1.3rem, 7vw, 2rem);
  }

  .hero-copy .lead {
    width: 100%;
    max-width: 100%;
    font-size: 0.97rem;
  }

  .feature-grid,
  .cards-2,
  .snapshot-grid,
  .snapshot-bars,
  .card-program-layout,
  .card-console-metrics,
  .card-stage-shell,
  .card-stage-visuals,
  .story-grid,
  .comments-layout,
  .layer-grid,
  .svp-prices,
  .svp-vault-grid,
  .svp-signal-grid,
  .svp-ref-grid,
  .token-select-wrap,
  .token-output-wrap,
  .exec-controls,
  .fee-summary {
    grid-template-columns: 1fr;
  }

  .fee-summary {
    flex-direction: column;
  }

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

  .compact-switch .widget-tab {
    min-height: 0;
    justify-items: center;
    text-align: center;
  }

  .widget-addresses .transparency-item {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.4rem;
    padding: 0.48rem 0.52rem;
  }

  .widget-addresses .transparency-label {
    min-width: 0;
    font-size: 0.68rem;
  }

  .widget-addresses .transparency-value-row code {
    font-size: 0.66rem;
    padding: 0.24rem 0.36rem;
    width: 100%;
  }


  .widget-addresses .transparency-value-row {
    flex-wrap: wrap;
    row-gap: 0.3rem;
  }

  .widget-addresses .solscan-link,
  .svp-ref-grid .solscan-link {
    min-width: 1.15rem;
    height: 1.15rem;
    padding: 0.06rem 0.1rem;
  }

  .widget-addresses .solscan-link,
  .svp-ref-grid .solscan-link {
    font-size: 0.68rem;
  }

  .svp-ref-grid .svp-vault-item {
    gap: 0.4rem;
  }

  .svp-ref-grid .svp-vault-label {
    min-width: 100%;
  }

  .svp-ref-grid .svp-ref-value {
    width: 100%;
  }

  .svp-price-card {
    grid-template-columns: 1fr;
  }

  .svp-price-badge {
    grid-column: 1 / -1;
  }

  .svp-vault-pie {
    grid-column: span 1;
  }

  .trade-card,
  .trade-info,
  .panel,
  .layer-card,
  .comment-card {
    padding: 1rem;
    border-radius: 22px;
  }

  .sg-card-preview {
    gap: 0.54rem;
    padding: 0.82rem;
    border-radius: 20px;
    width: 100%;
    max-width: 272px;
    justify-self: center;
  }

  .card-program-copy,
  .card-stage {
    padding: 0.78rem;
    border-radius: 22px;
  }

  .card-stage-visuals {
    gap: 0.48rem;
  }

  .sg-card-details {
    width: 100%;
    max-width: 272px;
  }

  .sg-card-ledger-row {
    gap: 0.55rem;
  }

  .sg-card-brand-wrap {
    gap: 0.42rem;
  }

  .sg-card-kicker {
    font-size: 0.42rem;
  }

  .sg-card-logo-mark {
    width: 46px;
    height: 46px;
    border-radius: 13px;
  }

  .sg-card-logo-img {
    width: 26px;
    height: 26px;
  }

  .sg-card-brand {
    font-size: 0.84rem;
  }

  .sg-card-mode {
    min-height: 1.45rem;
    padding: 0.22rem 0.48rem;
    font-size: 0.42rem;
  }

  .sg-card-number {
    font-size: 0.68rem;
    letter-spacing: 0.11em;
  }

  .sg-card-chip {
    width: 34px;
    height: 25px;
  }

  .sg-card-balance-panel strong {
    font-size: 1.56rem;
  }

  .sg-card-balance-meta small {
    white-space: normal;
    overflow: visible;
    text-overflow: clip;
  }

  .sg-card-details {
    grid-template-columns: 1fr;
  }

  .sg-card-chip-row,
  .sg-card-footer-strip {
    align-items: stretch;
  }

  .sg-card-ledger-row {
    flex-wrap: wrap;
    align-items: flex-start;
    row-gap: 0.32rem;
  }

  .sg-card-mode,
  .sg-card-network-pill {
    justify-content: flex-start;
  }

  .svp-feed-strip {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.45rem;
  }
}

@media (max-width: 400px) {
  .sg-card-preview {
    gap: 0.42rem;
    padding: 0.7rem;
    border-radius: 18px;
    max-width: 286px;
  }

  .sg-card-balance-panel {
    padding: 0.68rem 0.72rem;
    border-radius: 18px;
  }

  .sg-card-balance-panel strong {
    font-size: 1.38rem;
  }

  .sg-card-balance-meta small {
    font-size: 0.5rem;
  }

  .sg-card-ledger-row {
    gap: 0.36rem;
  }

  .sg-card-number {
    font-size: 0.61rem;
    letter-spacing: 0.1em;
  }

  .sg-card-network-pill {
    min-height: 1.4rem;
    padding: 0.18rem 0.4rem;
    font-size: 0.46rem;
    letter-spacing: 0.1em;
  }

  .sg-card-footer-item strong {
    font-size: 0.6rem;
  }

  .sg-card-validity-label,
  .sg-card-label {
    font-size: 0.46rem;
  }

  .sg-card-details {
    max-width: 286px;
    gap: 0.34rem;
  }
}

/* Fresh Theme Reset */
:root {
  --bg: #0d1119;
  --bg-soft: #131a26;
  --bg-accent: #101722;
  --panel: rgba(23, 31, 45, 0.84);
  --panel-strong: rgba(29, 39, 56, 0.94);
  --ink: #edf2fb;
  --ink-soft: #cad4e5;
  --muted: #a4afc1;
  --line: rgba(226, 184, 109, 0.22);
  --line-strong: rgba(226, 184, 109, 0.34);
  --shadow: 0 24px 50px rgba(3, 7, 12, 0.5), 0 6px 16px rgba(3, 7, 12, 0.34);
  --shadow-soft: 0 16px 34px rgba(4, 9, 15, 0.44), 0 2px 10px rgba(4, 9, 15, 0.3);
}

html {
  background: #0d1119 !important;
  color-scheme: dark;
}

body {
  color: var(--ink) !important;
  background-color: var(--bg) !important;
  background:
    radial-gradient(1100px 700px at 8% -10%, rgba(226, 184, 109, 0.2), transparent 52%),
    radial-gradient(1000px 680px at 100% 0%, rgba(83, 134, 210, 0.16), transparent 54%),
    radial-gradient(800px 560px at 50% 100%, rgba(118, 177, 138, 0.14), transparent 60%),
    linear-gradient(180deg, #0b1018 0%, #111827 48%, #0e1421 100%) !important;
  font-family: "Plus Jakarta Sans", "Manrope", "Trebuchet MS", sans-serif;
}

body::before {
  background:
    linear-gradient(120deg, rgba(255, 255, 255, 0.06), transparent 40%),
    linear-gradient(320deg, rgba(226, 184, 109, 0.08), transparent 56%);
}

.site-header {
  border-color: rgba(226, 184, 109, 0.26);
  background: rgba(14, 21, 33, 0.86);
  box-shadow: var(--shadow-soft);
}

.site-nav a {
  color: #ced8e8;
}

.site-nav a:hover,
.site-nav a.active {
  color: #fff8ea;
  background: linear-gradient(135deg, rgba(226, 184, 109, 0.28), rgba(104, 166, 133, 0.2));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18);
}

.btn-outline {
  color: #efd7aa;
  border-color: rgba(226, 184, 109, 0.34);
  background: rgba(255, 255, 255, 0.03);
}

.btn-dark {
  color: #eaf2ff;
  border-color: rgba(125, 173, 146, 0.34);
  background: linear-gradient(135deg, rgba(52, 92, 78, 0.5), rgba(46, 67, 94, 0.52));
}

.hero-copy,
.panel,
.trade-card,
.trade-info,
.stats-vault-panel,
.svp-price-card,
.svp-vault-item,
.comment-card,
.layer-card,
.comment-card {
  border: 1px solid var(--line) !important;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0)),
    linear-gradient(160deg, var(--panel-strong), var(--panel)) !important;
  box-shadow: var(--shadow) !important;
}

body[data-page="home"] .hero-copy,
body[data-page="home"] .title-block.compact,
body[data-page="home"] .trade-objective-strip .protocol-snapshot-card,
body[data-page="home"] .panel,
body[data-page="home"] .trade-card,
body[data-page="home"] .trade-info,
body[data-page="home"] .stats-vault-panel,
body[data-page="home"] .svp-price-card,
body[data-page="home"] .svp-vault-item,
body[data-page="home"] .svp-empty,
body[data-page="home"] .svp-feed-strip {
  border: 1px solid var(--line) !important;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0)),
    linear-gradient(160deg, var(--panel-strong), var(--panel)) !important;
  box-shadow: var(--shadow) !important;
}

body[data-page="home"] .hero-copy {
  overflow: hidden;
}

.hero-copy h1,
.title-block h1,
.panel h3,
.trade-info h3,
.layer-card h4 {
  font-family: "Fraunces", "Avenir Next", "Palatino Linotype", serif;
  color: #f4ead8;
}

.lead,
.panel p,
.panel li,
.flow-line span,
.trade-note,
.comment-gate p,
.site-footer,
.pvr-note,
.comment-empty,
.snapshot-item small,
.snapshot-inline-note,
.transparency-label,
.exec-label,
.input-group label {
  color: #bec9da;
}

.snapshot-item,
.transparency-item,
.exec-control,
.fee-summary,
.widget-addresses .transparency-item,
.ttp-zero-badge,
.card-program-badge,
.token-select-wrap,
.trade-pending-notice,
.profit-vault-note,
.mission-quote,
.comment-gate,
.profit-vault-readout-inner,
.svp-empty {
  border-color: rgba(226, 184, 109, 0.26) !important;
  background: rgba(15, 22, 34, 0.7) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05) !important;
}

.token-select-wrap select,
.token-select-wrap input,
.full-input,
#tradeSlippageBps,
textarea,
input[type="text"],
input[type="number"],
input[type="email"],
input[type="search"] {
  color: #eef3fc;
  background: rgba(9, 14, 22, 0.88);
  border-color: rgba(226, 184, 109, 0.3);
}

.token-select-wrap select::placeholder,
.token-select-wrap input::placeholder,
.full-input::placeholder,
textarea::placeholder,
input::placeholder {
  color: #8f9ab0;
}

.widget-tab,
.trade-mode-tab {
  border-color: rgba(226, 184, 109, 0.26);
  background: rgba(17, 25, 38, 0.84);
  color: #d4deee;
}

.widget-tab.active,
.trade-mode-tab.active {
  border-color: rgba(236, 201, 132, 0.46);
  background: linear-gradient(135deg, rgba(226, 184, 109, 0.32), rgba(104, 166, 133, 0.24));
  color: #fff4dd;
}

.compact-switch {
  border-color: rgba(226, 184, 109, 0.28);
  background: linear-gradient(180deg, rgba(226, 184, 109, 0.14), rgba(255, 255, 255, 0.04));
}

.hero-logo-streaks,
.hero-logo-random-streaks {
  display: none !important;
}

.hero-logo-wrap::before,
.hero-logo-wrap::after,
body[data-page="home"] .hero-logo-wrap::before,
body[data-page="home"] .hero-logo-wrap::after {
  content: none !important;
}

.hero-logo,
body[data-page="home"] .hero-logo {
  box-shadow:
    0 18px 34px rgba(1, 4, 8, 0.46),
    0 0 10px rgba(226, 184, 109, 0.16) !important;
}

.stable-green {
  color: var(--logo-green) !important;
}

.gold {
  color: #d1a55a !important;
}

@media (max-width: 720px) {
  .site-header {
    background: rgba(12, 18, 29, 0.94);
  }

  .hero-copy,
  .trade-card,
  .trade-info,
  .panel,
  .layer-card,
  .comment-card {
    border-radius: 20px;
  }
}

/* Feed readability override */
body[data-page="home"] .svp-feed-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 0.48rem;
  align-items: stretch;
}

body[data-page="home"] .svp-feed-title {
  grid-column: 1 / -1;
  justify-content: flex-start;
  border-radius: 10px;
  padding: 0.46rem 0.72rem 0.46rem 1.18rem !important;
  min-height: 0;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  color: #f4e9d5;
  border-color: rgba(226, 184, 109, 0.34);
  background: rgba(12, 18, 29, 0.92);
}

body[data-page="home"] .svp-feed-pill,
body[data-page="home"] .svp-feed-meta {
  min-height: 0;
  justify-content: flex-start;
  border-radius: 10px;
  padding: 0.5rem 0.72rem 0.5rem 1.2rem !important;
  font-size: 0.82rem;
  line-height: 1.28;
  font-weight: 760;
  color: #dbe5f4;
  border-color: rgba(226, 184, 109, 0.28);
  background: rgba(10, 15, 24, 0.92);
}

body[data-page="home"] .svp-feed-pill.is-live {
  color: #7ddfa0;
  border-color: rgba(125, 223, 160, 0.36);
  background: rgba(20, 57, 42, 0.44);
}

body[data-page="home"] .svp-feed-pill.is-fallback {
  color: #f0cf93;
  border-color: rgba(240, 207, 147, 0.34);
  background: rgba(74, 52, 21, 0.42);
}

body[data-page="home"] .svp-price-badge {
  justify-self: start;
  border-radius: 10px;
  padding: 0.44rem 0.72rem 0.44rem 1.2rem !important;
  font-size: 0.8rem;
  font-weight: 760;
  letter-spacing: 0.01em;
  color: #e6eefc;
  border: 1px solid rgba(226, 184, 109, 0.36);
  background: rgba(10, 15, 24, 0.94);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

body[data-page="home"] .svp-price-badge.is-live {
  color: #8ae5ab;
  border-color: rgba(138, 229, 171, 0.46);
  background: rgba(20, 63, 45, 0.52);
}

body[data-page="home"] .svp-price-badge.is-fallback {
  color: #f6d69f;
  border-color: rgba(246, 214, 159, 0.42);
  background: rgba(83, 56, 21, 0.54);
}

@media (max-width: 720px) {
  body[data-page="home"] .svp-feed-strip {
    grid-template-columns: 1fr;
  }
}

/* Button visibility override */
.btn {
  border-width: 1px;
  border-style: solid;
}

.btn-gold {
  color: #2a1b06;
  border-color: rgba(241, 201, 120, 0.72);
  background: linear-gradient(135deg, #f0be63 0%, #ffd98b 52%, #e8a25f 100%);
  box-shadow: 0 16px 26px rgba(8, 12, 20, 0.42), inset 0 1px 0 rgba(255, 245, 220, 0.55);
}

.btn-dark {
  color: #f3f8ff;
  border-color: rgba(174, 210, 188, 0.56);
  background: linear-gradient(135deg, rgba(66, 115, 97, 0.88), rgba(58, 83, 118, 0.88));
  box-shadow: 0 12px 22px rgba(7, 11, 18, 0.44), inset 0 1px 0 rgba(255, 255, 255, 0.16);
}

.btn-outline {
  color: #ffe9c2;
  border-color: rgba(243, 204, 128, 0.64);
  background: rgba(25, 34, 49, 0.92);
  box-shadow: 0 10px 18px rgba(6, 10, 18, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.wallet-status-badge {
  color: #eaf3ff;
  border-color: rgba(226, 184, 109, 0.42);
  background: rgba(12, 19, 30, 0.96);
  box-shadow: 0 10px 18px rgba(6, 10, 18, 0.36), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.wallet-status-badge.is-trusted {
  color: #b6f2d2;
  border-color: rgba(123, 211, 170, 0.62);
  background: linear-gradient(135deg, rgba(23, 78, 58, 0.78), rgba(18, 44, 38, 0.9));
}

.wallet-status-badge.is-manual {
  color: #ffe3ad;
  border-color: rgba(243, 204, 128, 0.62);
  background: linear-gradient(135deg, rgba(106, 72, 24, 0.76), rgba(58, 41, 15, 0.9));
}

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

.widget-tab,
.trade-mode-tab {
  border-width: 1px;
  border-style: solid;
  border-color: rgba(233, 197, 124, 0.5);
  background: rgba(14, 22, 33, 0.94);
  color: #e9f1ff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.widget-tab.active,
.trade-mode-tab.active {
  border-color: rgba(244, 214, 154, 0.72);
  background: linear-gradient(135deg, rgba(233, 197, 124, 0.42), rgba(109, 173, 142, 0.32));
  color: #fff9ec;
}

.nav-toggle {
  border-color: rgba(240, 203, 129, 0.52);
  background: rgba(19, 27, 40, 0.92);
}

.nav-toggle span {
  background: #f2e6d3;
}

/* Trade Widget Redesign */
.trade-card {
  border-radius: 26px !important;
  padding: 1.24rem !important;
}

.exec-controls {
  margin-bottom: 0.82rem;
}

.exec-control {
  display: inline-flex;
  align-items: center;
  gap: 0.52rem;
  padding: 0.44rem 0.72rem;
  border-radius: 999px;
  border: 1px solid rgba(226, 184, 109, 0.26);
  background: rgba(12, 18, 28, 0.62);
}

.exec-value {
  display: inline-flex;
  align-items: center;
  padding: 0.16rem 0.48rem;
  border-radius: 999px;
  font-size: 0.74rem;
  letter-spacing: 0.01em;
  color: #efe4cb;
  background: rgba(226, 184, 109, 0.16);
  border: 1px solid rgba(226, 184, 109, 0.28);
}

.widget-tabs.compact-switch {
  padding: 0.3rem;
  margin-bottom: 0.66rem;
  border-radius: 16px;
}

.widget-tab,
.trade-mode-tab {
  min-height: 2.2rem;
  border-radius: 11px;
  font-weight: 700;
}

.trade-mode-tabs {
  margin-bottom: 0.7rem;
}

.input-group {
  margin-bottom: 0.62rem;
}

.input-group label {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.32rem;
  font-size: 0.83rem;
  letter-spacing: 0.01em;
}

.pay-hint {
  font-size: 0.76rem;
  font-weight: 650;
  color: #9fb0c7;
}

.token-select-wrap {
  border-radius: 14px;
  padding: 0.24rem;
}

.token-select-wrap select,
.token-select-wrap input {
  min-height: 2.62rem;
  border-radius: 10px;
}

.token-badge {
  border-radius: 10px;
  background: rgba(226, 184, 109, 0.18);
  border: 1px solid rgba(226, 184, 109, 0.26);
  color: #f0e5d1;
}

.fee-summary {
  margin-top: 0.3rem;
  margin-bottom: 0.72rem;
  border-radius: 12px;
  padding: 0.52rem 0.66rem;
  border: 1px solid rgba(226, 184, 109, 0.22);
  background: rgba(14, 22, 34, 0.64);
  color: #c6d1e2;
}

.fee-summary span:last-child {
  color: #f4e5c9;
  font-weight: 700;
}

.trade-card .btn-block {
  min-height: 2.7rem;
  border-radius: 12px;
  font-size: 0.92rem;
  letter-spacing: 0.01em;
  box-shadow: 0 14px 24px rgba(9, 15, 24, 0.4);
}

#statPrice {
  color: #79d7ff !important;
  text-shadow: 0 0 12px rgba(121, 215, 255, 0.2);
}

@media (max-width: 720px) {
  .trade-card {
    padding: 1rem !important;
  }

  .input-group label {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.16rem;
  }

  .widget-tabs.compact-switch {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* Community pill readability */
body[data-page="community"] .title-block.editorial-header {
  text-align: center;
  width: min(100%, 960px);
  margin-left: auto;
  margin-right: auto;
}

body[data-page="rebalance"] .title-block.editorial-header {
  text-align: center;
  width: min(100%, 960px);
  margin-left: auto;
  margin-right: auto;
}

body[data-page="rebalance"] .title-block.editorial-header h1,
body[data-page="rebalance"] .title-block.editorial-header .lead {
  margin-left: auto;
  margin-right: auto;
}

body[data-page="rebalance"] .title-block.editorial-header .lead {
  max-width: 74ch;
}

body[data-page="tokenomics"] .title-block.editorial-header {
  text-align: center;
  width: min(100%, 960px);
  margin-left: auto;
  margin-right: auto;
}

body[data-page="tokenomics"] .title-block.editorial-header h1,
body[data-page="tokenomics"] .title-block.editorial-header .lead {
  margin-left: auto;
  margin-right: auto;
}

body[data-page="tokenomics"] .title-block.editorial-header .lead {
  max-width: 74ch;
}

body[data-page="community"] .title-block.editorial-header h1,
body[data-page="community"] .title-block.editorial-header .lead {
  margin-left: auto;
  margin-right: auto;
}

body[data-page="community"] .title-block.editorial-header .lead {
  max-width: 74ch;
}

body[data-page="community"] .community-pill-row {
  justify-content: center;
  gap: 0.68rem;
  margin-top: 1.1rem;
}

body[data-page="community"] .community-pill-row .hero-chip {
  border: 1px solid rgba(241, 201, 120, 0.42);
  background: rgba(12, 20, 32, 0.9);
  color: #eef4ff;
  box-shadow: 0 10px 18px rgba(7, 11, 18, 0.36), inset 0 1px 0 rgba(255, 255, 255, 0.1);
  padding: 0.58rem 0.94rem;
  font-size: 0.84rem;
  font-weight: 760;
  letter-spacing: 0.01em;
}

/* Treasury bubble spacing pass */
.svp-vault-item {
  gap: 0.58rem;
  padding: 0.92rem 1.08rem;
}

.svp-vault-label {
  line-height: 1.35;
}

.svp-vault-value,
.svp-empty {
  line-height: 1.42;
}

.svp-ref-grid .svp-vault-item {
  gap: 0.82rem;
  padding: 0.94rem 1.08rem;
}

.svp-ref-grid .svp-ref-value {
  gap: 0.6rem;
  line-height: 1.46;
}

.svp-ref-grid .svp-ref-value > span {
  padding: 0.34rem 0.58rem;
}

body[data-page="home"] .svp-vault-item,
body[data-page="home"] .svp-ref-grid .svp-vault-item {
  padding-left: 1.22rem;
}

/* Metrics typography polish: improve fit/readability for long live status strings */
body[data-page="home"] .stats-vault-panel .svp-vault-grid .svp-vault-item,
body[data-page="home"] .stats-vault-panel .svp-signal-grid .svp-vault-item {
  gap: 0.48rem;
  min-height: 7.1rem;
}

body[data-page="home"] .stats-vault-panel .svp-vault-label {
  font-size: 0.74rem;
  letter-spacing: 0.055em;
  font-weight: 760;
  line-height: 1.32;
}

body[data-page="home"] .stats-vault-panel .svp-vault-value,
body[data-page="home"] .stats-vault-panel .svp-empty,
body[data-page="home"] .stats-vault-panel #backingSplitDisplay {
  font-family: "Trebuchet MS", "Segoe UI", Arial, sans-serif;
  font-size: clamp(0.95rem, 1.1vw, 1.06rem);
  font-weight: 680;
  line-height: 1.38;
  letter-spacing: 0.002em;
  overflow-wrap: anywhere;
  word-break: break-word;
  text-wrap: balance;
}

body[data-page="home"] .stats-vault-panel .svp-vault-featured .svp-vault-value {
  font-size: clamp(1.05rem, 1.45vw, 1.2rem);
  line-height: 1.3;
}

body[data-page="home"] .stats-vault-panel .svp-signal-grid .svp-vault-value,
body[data-page="home"] .stats-vault-panel .svp-vault-grid .svp-vault-item:not(.svp-vault-featured) .svp-vault-value {
  font-size: clamp(0.92rem, 1.03vw, 1rem);
}

@media (max-width: 720px) {
  .svp-vault-item,
  .svp-ref-grid .svp-vault-item {
    padding: 0.86rem 0.94rem;
    gap: 0.66rem;
  }

  body[data-page="home"] .svp-vault-item,
  body[data-page="home"] .svp-ref-grid .svp-vault-item {
    padding-left: 1.04rem;
  }

  body[data-page="home"] .stats-vault-panel .svp-vault-grid .svp-vault-item,
  body[data-page="home"] .stats-vault-panel .svp-signal-grid .svp-vault-item {
    min-height: 0;
    gap: 0.42rem;
  }

  body[data-page="home"] .stats-vault-panel .svp-vault-label {
    font-size: 0.71rem;
    letter-spacing: 0.05em;
  }

  body[data-page="home"] .stats-vault-panel .svp-vault-value,
  body[data-page="home"] .stats-vault-panel .svp-empty,
  body[data-page="home"] .stats-vault-panel #backingSplitDisplay {
    font-size: 0.92rem;
    line-height: 1.36;
  }

  .ttp-qr-actions {
    grid-template-columns: 1fr;
  }

  .ttp-qr-shell {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
  }

  .ttp-qr-frame {
    width: 172px;
    height: 172px;
  }
}

/* Top action tabs: larger + clearer selectable state */
.widget-tabs.compact-switch {
  gap: 0.34rem;
  padding: 0.34rem;
  border-radius: 16px;
  border: 1px solid rgba(241, 201, 120, 0.42);
  background: linear-gradient(180deg, rgba(241, 201, 120, 0.18), rgba(17, 24, 36, 0.58));
}

.compact-switch .widget-tab {
  min-height: 2.42rem;
  border-radius: 12px;
  border: 1px solid rgba(241, 201, 120, 0.38);
  background: rgba(16, 24, 37, 0.92);
  color: #edf4ff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
  transition: transform 140ms ease, background-color 140ms ease, border-color 140ms ease, box-shadow 140ms ease;
}

.compact-switch .widget-tab:hover {
  transform: translateY(-1px);
  border-color: rgba(250, 217, 154, 0.62);
  background: rgba(30, 41, 61, 0.95);
  box-shadow: 0 8px 16px rgba(6, 10, 18, 0.36);
}

.compact-switch .switch-label {
  font-size: 0.82rem;
  font-weight: 820;
  line-height: 1.1;
  letter-spacing: 0.01em;
}

.compact-switch .widget-tab.active {
  border-color: rgba(244, 214, 154, 0.86);
  background: linear-gradient(135deg, rgba(241, 201, 120, 0.62), rgba(109, 173, 142, 0.46));
  color: #1f1609;
  box-shadow: 0 10px 18px rgba(7, 12, 20, 0.38), inset 0 1px 0 rgba(255, 250, 236, 0.65);
}

.trade-mode-tabs {
  gap: 0.42rem;
  margin-bottom: 0.76rem;
}

.trade-mode-tab {
  min-height: 2.36rem;
  padding: 0.46rem 0.78rem;
  border-radius: 12px;
  border: 1px solid rgba(241, 201, 120, 0.42);
  background: rgba(17, 25, 38, 0.92);
  color: #edf4ff;
  font-size: 0.92rem;
  font-weight: 800;
  letter-spacing: 0.01em;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
  transition: transform 140ms ease, background-color 140ms ease, border-color 140ms ease, box-shadow 140ms ease;
}

.trade-mode-tab:hover {
  transform: translateY(-1px);
  border-color: rgba(250, 217, 154, 0.64);
  background: rgba(31, 42, 62, 0.95);
  box-shadow: 0 8px 16px rgba(6, 10, 18, 0.36);
}

.trade-mode-tab.active {
  border-color: rgba(244, 214, 154, 0.86);
  background: linear-gradient(135deg, rgba(241, 201, 120, 0.62), rgba(109, 173, 142, 0.46));
  color: #1f1609;
  box-shadow: 0 10px 18px rgba(7, 12, 20, 0.38), inset 0 1px 0 rgba(255, 250, 236, 0.65);
}

/* Keep Buy/Sell tabs visually matched to Trade/Transfer/Card/Tap to Pay tabs. */
body[data-page="home"] .trade-mode-tab {
  border: 1px solid rgba(241, 201, 120, 0.38);
  background: rgba(16, 24, 37, 0.92);
  color: #edf4ff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

body[data-page="home"] .trade-mode-tab:hover {
  border-color: rgba(250, 217, 154, 0.62);
  background: rgba(30, 41, 61, 0.95);
  box-shadow: 0 8px 16px rgba(6, 10, 18, 0.36);
}

body[data-page="home"] .trade-mode-tab.active {
  border-color: rgba(244, 214, 154, 0.86);
  background: linear-gradient(135deg, rgba(241, 201, 120, 0.62), rgba(109, 173, 142, 0.46));
  color: #1f1609;
  box-shadow: 0 10px 18px rgba(7, 12, 20, 0.38), inset 0 1px 0 rgba(255, 250, 236, 0.65);
}

/* Partner Card module readability override */
body[data-page="home"] [data-widget-panel="card"] .card-program-badge {
  border: 1px solid rgba(241, 201, 120, 0.34) !important;
  background: linear-gradient(145deg, rgba(31, 44, 64, 0.88), rgba(20, 31, 47, 0.9)) !important;
  color: #d3deee;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06), 0 12px 20px rgba(6, 10, 17, 0.34) !important;
}

body[data-page="home"] [data-widget-panel="card"] .card-program-layout-merged {
  border: 1px solid rgba(241, 201, 120, 0.3) !important;
  background:
    radial-gradient(circle at top left, rgba(241, 201, 120, 0.12), transparent 32%),
    linear-gradient(160deg, rgba(18, 27, 41, 0.96), rgba(12, 20, 32, 0.96)) !important;
  box-shadow: 0 20px 34px rgba(5, 9, 15, 0.42), inset 0 1px 0 rgba(255, 255, 255, 0.05) !important;
}

body[data-page="home"] [data-widget-panel="card"] .card-stage,
body[data-page="home"] [data-widget-panel="card"] .card-reload-section,
body[data-page="home"] [data-widget-panel="card"] .card-checkout-shell,
body[data-page="home"] [data-widget-panel="card"] .card-checkout-grid article,
body[data-page="home"] [data-widget-panel="card"] .card-checkout-qr-frame,
body[data-page="home"] [data-widget-panel="card"] .sg-card-details > * {
  border: 1px solid rgba(241, 201, 120, 0.28) !important;
  background: linear-gradient(155deg, rgba(16, 25, 39, 0.94), rgba(13, 20, 32, 0.94)) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05) !important;
}

body[data-page="home"] [data-widget-panel="card"] .card-program-kicker,
body[data-page="home"] [data-widget-panel="card"] .card-checkout-chip {
  border: 1px solid rgba(241, 201, 120, 0.42);
  background: rgba(74, 53, 24, 0.7);
  color: #fff2d7;
}

body[data-page="home"] [data-widget-panel="card"] .card-program-copy h3,
body[data-page="home"] [data-widget-panel="card"] .card-checkout-head strong,
body[data-page="home"] [data-widget-panel="card"] .card-checkout-grid strong,
body[data-page="home"] [data-widget-panel="card"] .card-checkout-qr-copy strong,
body[data-page="home"] [data-widget-panel="card"] .sg-card-details strong {
  color: #f2f7ff;
}

body[data-page="home"] [data-widget-panel="card"] .card-stage-kicker {
  color: #f3cd87;
}

body[data-page="home"] [data-widget-panel="card"] .card-stage-caption,
body[data-page="home"] [data-widget-panel="card"] .card-checkout-qr-copy span,
body[data-page="home"] [data-widget-panel="card"] .card-checkout-note,
body[data-page="home"] [data-widget-panel="card"] .card-stage-note,
body[data-page="home"] [data-widget-panel="card"] .card-status,
body[data-page="home"] [data-widget-panel="card"] .card-checkout-label,
body[data-page="home"] [data-widget-panel="card"] #cardReloadSummary,
body[data-page="home"] [data-widget-panel="card"] #cardReloadStatus,
body[data-page="home"] [data-widget-panel="card"] #cardCheckoutQrEmpty {
  color: #b8c7db;
}

body[data-page="home"] [data-widget-panel="card"] .sg-card-preview {
  border: 1px solid rgba(255, 236, 187, 0.72);
  outline: 1px solid rgba(255, 246, 220, 0.62);
  outline-offset: -6px;
  background:
    radial-gradient(circle at 12% 10%, rgba(255, 251, 239, 0.68), transparent 26%),
    radial-gradient(circle at 84% 92%, rgba(132, 88, 24, 0.28), transparent 34%),
    repeating-linear-gradient(
      102deg,
      rgba(255, 245, 218, 0.1) 0,
      rgba(255, 245, 218, 0.1) 2px,
      rgba(156, 108, 37, 0.03) 2px,
      rgba(156, 108, 37, 0.03) 6px
    ),
    linear-gradient(162deg, rgba(121, 81, 27, 0.99) 0%, rgba(194, 145, 63, 0.98) 36%, rgba(239, 213, 150, 0.96) 100%);
  box-shadow:
    0 26px 42px rgba(5, 9, 15, 0.46),
    0 12px 24px rgba(104, 67, 18, 0.26),
    inset 0 1px 0 rgba(255, 252, 243, 0.84),
    inset 0 -18px 28px rgba(114, 76, 24, 0.12);
}

body[data-page="home"] [data-widget-panel="card"] .sg-card-preview::after {
  opacity: 0.72;
}

body[data-page="home"] [data-widget-panel="card"] .sg-card-brand,
body[data-page="home"] [data-widget-panel="card"] .sg-card-balance-panel strong,
body[data-page="home"] [data-widget-panel="card"] .sg-card-number {
  color: rgba(59, 39, 13, 0.96);
  text-shadow: 0 1px 0 rgba(255, 249, 233, 0.32);
}

body[data-page="home"] [data-widget-panel="card"] .sg-card-network-pill {
  border: 1px solid rgba(255, 242, 214, 0.56);
  background: rgba(255, 249, 233, 0.24);
  color: rgba(90, 60, 18, 0.9);
}

body[data-page="home"] [data-widget-panel="card"] .sg-card-details {
  gap: 0.46rem;
}

body[data-page="home"] [data-widget-panel="card"] .sg-card-details > * {
  border-color: rgba(241, 201, 120, 0.34) !important;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0)),
    linear-gradient(155deg, rgba(16, 25, 39, 0.95), rgba(13, 20, 32, 0.95)) !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    0 12px 20px rgba(6, 10, 17, 0.32) !important;
}

body[data-page="home"] [data-widget-panel="card"] .sg-card-label {
  color: #d6be90;
}

@media (hover: hover) and (pointer: fine) {
  body[data-page="home"] [data-widget-panel="card"] .sg-card-preview:hover {
    transform: translateY(-4px);
    box-shadow:
      0 30px 46px rgba(5, 9, 15, 0.52),
      0 14px 28px rgba(104, 67, 18, 0.3),
      inset 0 1px 0 rgba(255, 252, 243, 0.84),
      inset 0 -18px 28px rgba(114, 76, 24, 0.12);
  }
}

@media (max-width: 720px) {
  body[data-page="home"] [data-widget-panel="card"] .card-program-layout-merged {
    padding: 0.78rem;
    border-radius: 20px;
  }

  .card-coming-soon-points {
    grid-template-columns: 1fr;
  }

  body[data-page="home"] [data-widget-panel="card"] .card-stage,
  body[data-page="home"] [data-widget-panel="card"] .card-reload-section,
  body[data-page="home"] [data-widget-panel="card"] .card-checkout-shell {
    border-radius: 16px;
  }
}
