:root {
  color-scheme: light;
  --bg: #f3f6f5;
  --paper: #ffffff;
  --ink: #101417;
  --muted: #667179;
  --line: #dfe7e4;
  --graphite: #12181d;
  --teal: #08c99b;
  --teal-dark: #049574;
  --mint: #e8fbf5;
  --amber: #f4ba4f;
  --red: #f06464;
  --shadow: 0 24px 80px rgba(16, 20, 23, 0.13);
  --radius: 8px;
  --font-sans: "Plus Jakarta Sans", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  --font-display: "Space Grotesk", "Plus Jakarta Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-cinematic: "Anton", "Space Grotesk", "Plus Jakarta Sans", ui-sans-serif, system-ui, sans-serif;
  font-family: var(--font-sans);

  /* Admin (account manager) palette — mirrors the public site tokens */
  --v3-teal: #08c99b;
  --v3-teal-dark: #049574;
  --v3-ink: #101417;
  --v3-ink-soft: #667179;
  --v3-muted: #667179;
  --v3-line: #dfe7e4;
  --v3-paper: #ffffff;
  --v3-bg: #f3f6f5;
  --v3-red: #f06464;
  --v3-amber: #f4ba4f;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  /* Force the vertical scrollbar track on every page so the content width is
     identical across tabs. Without this, a page that happens not to scroll is a
     few px wider, which rescales every vw-based size (header, logo, nav). */
  overflow-y: scroll;
  scrollbar-gutter: stable;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    linear-gradient(180deg, rgba(8, 201, 155, 0.13), rgba(243, 246, 245, 0) 360px),
    var(--bg);
}

body.cart-open {
  overflow: hidden;
}

body.modal-open {
  overflow: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

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

[hidden] {
  display: none !important;
}

button,
input,
select {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 1rem;
  align-items: center;
  min-height: 74px;
  padding: 0.75rem clamp(1rem, 4vw, 3.5rem);
  border-bottom: 1px solid rgba(223, 231, 228, 0.85);
  background: rgba(255, 255, 255, 0.87);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  min-width: 0;
  font-weight: 950;
}

.brand img {
  width: clamp(145px, 18vw, 220px);
  height: 46px;
  object-fit: contain;
  object-position: left center;
}

.site-nav {
  justify-self: center;
  display: flex;
  gap: 0.35rem;
  padding: 0.28rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.68);
}

.site-nav a {
  display: inline-flex;
  min-height: 36px;
  align-items: center;
  border-radius: 999px;
  padding: 0 0.85rem;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 850;
  white-space: nowrap;
}

.site-nav a.active,
.site-nav a:hover {
  background: var(--graphite);
  color: #fff;
}

.cart-button,
.icon-button {
  border: 1px solid var(--line);
  background: var(--paper);
  color: var(--ink);
  cursor: pointer;
}

.cart-button {
  display: inline-flex;
  min-width: 76px;
  height: 42px;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border-radius: 999px;
  font-weight: 950;
}

.cart-mark {
  width: 18px;
  height: 18px;
  position: relative;
}

.cart-mark::before {
  content: "";
  position: absolute;
  inset: 4px 1px 3px 1px;
  border: 2px solid currentColor;
  border-radius: 4px 4px 6px 6px;
}

.cart-mark::after {
  content: "";
  position: absolute;
  left: 5px;
  right: 5px;
  top: 0;
  height: 8px;
  border: 2px solid currentColor;
  border-bottom: 0;
  border-radius: 8px 8px 0 0;
}

main {
  min-height: 72vh;
}

.hero-page,
.page-title,
.home-routes,
.signal-band,
.editorial-split,
.store-shell,
.calculator-page,
.investor-console,
.risk-panel,
.checkout-steps,
.small-investor-strip,
.investor-how,
.leaderboard-section,
.dashboard-layout,
.invoice-layout {
  width: min(1180px, calc(100% - 2rem));
  margin-inline: auto;
}

.hero-page {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(360px, 1.15fr);
  gap: clamp(1.2rem, 4vw, 3.5rem);
  align-items: center;
  padding: clamp(2rem, 5vw, 4.6rem) 0 2rem;
}

.home-hero {
  min-height: calc(100svh - 132px);
}

.hero-copy {
  max-width: 620px;
}

.eyebrow,
.panel-label {
  margin: 0 0 0.8rem;
  color: var(--teal-dark);
  font-size: 0.76rem;
  font-weight: 950;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

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

h1 {
  margin-bottom: 1rem;
  font-size: clamp(3.4rem, 9vw, 7.5rem);
  line-height: 0.86;
  letter-spacing: 0;
}

.page-title h1 {
  max-width: 920px;
  font-family: var(--font-cinematic);
  font-weight: 400;
  font-size: clamp(2.65rem, 7vw, 6rem);
  line-height: 0.94;
  letter-spacing: -0.01em;
  text-transform: uppercase;
}

h2 {
  margin-bottom: 0.75rem;
  font-size: clamp(1.75rem, 4vw, 3.8rem);
  line-height: 0.98;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 0.55rem;
  font-size: 1.02rem;
}

.hero-copy p,
.page-title p,
.route-card p,
.editorial-split p,
.side-note span,
.risk-panel p,
.fine-print,
.site-footer p,
.product-card p {
  color: var(--muted);
  line-height: 1.65;
}

.hero-copy > p:not(.eyebrow),
.page-title p {
  max-width: 740px;
  font-size: clamp(1rem, 1.8vw, 1.18rem);
}

.product-features {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin: 0 0 1rem;
  padding: 0;
  list-style: none;
}

.product-features li {
  min-height: 28px;
  display: inline-flex;
  align-items: center;
  border: 1px solid #dce7e5;
  border-radius: 999px;
  background: #f7fbfa;
  color: #3f4c51;
  padding: 0.3rem 0.6rem;
  font-size: 0.74rem;
  font-weight: 850;
}

.action-row,
.invoice-actions,
.pool-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
}

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius);
  border: 1px solid transparent;
  padding: 0.75rem 1.05rem;
  font-weight: 950;
  cursor: pointer;
}

.button.primary {
  background: var(--graphite);
  color: #fff;
  box-shadow: 0 16px 42px rgba(16, 20, 23, 0.16);
}

.button.secondary {
  border-color: var(--line);
  background: var(--paper);
  color: var(--ink);
}

.button.full {
  width: 100%;
}

.hidden {
  display: none;
}

.hero-visual {
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.75);
  border-radius: var(--radius);
  background: #eef4f2;
  box-shadow: var(--shadow);
}

.hero-visual img {
  width: 100%;
  min-height: 430px;
  object-fit: cover;
}

.home-routes {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 0.6rem;
}

.route-card,
.product-card,
.store-sidebar,
.control-panel,
.result-card,
.projection-panel,
.risk-panel,
.invoice-form,
.invoice-preview,
.editorial-split,
.signal-band {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.86);
}

.route-card {
  min-height: 230px;
  padding: 1.25rem;
  transition:
    transform 180ms ease,
    box-shadow 180ms ease;
}

.route-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 50px rgba(16, 20, 23, 0.1);
}

.route-card span,
.mini-code {
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 38px;
  margin-bottom: 1rem;
  border-radius: var(--radius);
  background: var(--mint);
  color: var(--teal-dark);
  font-weight: 950;
}

.signal-band {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  margin-top: 1rem;
  overflow: hidden;
  background: var(--line);
}

.signal-band div {
  padding: 1rem;
  background: var(--paper);
}

.signal-band strong,
.signal-band span {
  display: block;
}

.signal-band span {
  margin-top: 0.2rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.editorial-split {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 1.5rem;
  align-items: center;
  margin-top: clamp(3rem, 7vw, 6rem);
  padding: clamp(1.3rem, 4vw, 2.2rem);
}

.page-title {
  padding: clamp(2.2rem, 6vw, 5rem) 0 clamp(1.3rem, 3vw, 2.2rem);
}

.page-title.compact {
  padding-bottom: 1rem;
}

.store-shell {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.store-sidebar {
  padding: 1rem;
  background: var(--v3-surface-solid, #fff);
  border: 1px solid var(--v3-line, rgba(17, 19, 21, 0.08));
  border-radius: var(--v3-r-lg, 16px);
  box-shadow: var(--v3-sh-1, 0 18px 44px rgba(17, 19, 21, 0.05));
}

.store-main {
  min-width: 0;
}

.store-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.store-result-count {
  margin: 0;
  color: var(--premium-muted, var(--muted));
  font-size: 0.9rem;
  font-weight: 760;
}

.store-sort {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0;
}

.store-sort > span {
  color: var(--premium-muted, var(--muted));
  font-size: 0.78rem;
  font-weight: 820;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.store-sort select {
  width: auto;
  min-height: 40px;
  padding: 0 2.4rem 0 0.85rem;
  border-radius: 999px;
  font-weight: 760;
}

.vertical-filters {
  display: grid;
  gap: 0.55rem;
}

.filter-chip,
.pool-tab {
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--paper);
  color: var(--muted);
  padding: 0 0.9rem;
  font-weight: 900;
  text-align: left;
  cursor: pointer;
}

.filter-chip.active,
.filter-chip:hover,
.pool-tab.active,
.pool-tab:hover {
  border-color: rgba(8, 201, 155, 0.55);
  background: var(--mint);
  color: var(--ink);
}

.side-note {
  display: grid;
  gap: 0.35rem;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.product-card {
  display: flex;
  min-height: 100%;
  flex-direction: column;
  overflow: hidden;
  cursor: pointer;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.product-card:hover,
.product-card:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(8, 201, 155, 0.45);
  box-shadow: 0 24px 58px rgba(15, 23, 28, 0.09);
  outline: 0;
}

.machine-art {
  min-height: 220px;
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 70% 18%, rgba(8, 201, 155, 0.25), transparent 34%),
    linear-gradient(145deg, #fbfdfc, #e7efed);
}

.machine {
  position: relative;
  width: 102px;
  height: 182px;
  padding: 15px 12px;
  border-radius: 15px 15px 11px 11px;
  background: linear-gradient(155deg, #0c1115, #253039);
  box-shadow: 20px 24px 36px rgba(16, 20, 23, 0.18);
}

.machine::before {
  content: "";
  position: absolute;
  right: 10px;
  top: 16px;
  bottom: 16px;
  width: 24px;
  border-radius: 9px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(219, 229, 226, 0.9));
}

.machine::after {
  content: "";
  position: absolute;
  left: 15px;
  right: 39px;
  bottom: 16px;
  height: 6px;
  border-radius: 999px;
  background: var(--teal);
}

.machine span {
  display: block;
  width: 48px;
  height: 24px;
  margin-bottom: 10px;
  border-radius: 5px;
  background:
    linear-gradient(90deg, var(--teal) 0 42%, transparent 42% 55%, var(--teal) 55%),
    white;
  box-shadow: inset 0 0 0 5px white;
}

.machine.protein span {
  background:
    linear-gradient(90deg, var(--amber) 0 42%, transparent 42% 55%, var(--amber) 55%),
    white;
}

.machine.smart span {
  background:
    linear-gradient(90deg, #5278ff 0 42%, transparent 42% 55%, var(--teal) 55%),
    white;
}

.machine.amusement span {
  background:
    linear-gradient(90deg, var(--amber) 0 30%, var(--teal) 30% 65%, var(--red) 65%),
    white;
}

.product-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 1rem;
}

.product-meta {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
}

.tag {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  border-radius: 999px;
  padding: 0.25rem 0.58rem;
  background: var(--mint);
  color: var(--teal-dark);
  font-size: 0.72rem;
  font-weight: 950;
  white-space: nowrap;
}

.price-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.7rem;
  margin-top: auto;
}

.price {
  font-size: 1.2rem;
  font-weight: 950;
}

.product-payment-options {
  display: grid;
  gap: 0.75rem;
  margin-top: auto;
}

.payment-option {
  display: grid;
  width: 100%;
  gap: 0.22rem;
  min-height: 104px;
  padding: 0.9rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  text-align: left;
  cursor: default;
}

.payment-option span {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 950;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.payment-option strong {
  font-size: clamp(1.15rem, 2vw, 1.55rem);
  line-height: 1;
}

.payment-option small {
  color: var(--muted);
  font-weight: 800;
  line-height: 1.35;
}

.rent-option {
  background: linear-gradient(135deg, #f4fffb, #ffffff);
  border-color: rgba(8, 201, 155, 0.34);
}

.rent-option strong {
  color: var(--teal-dark);
}

.product-card-footer {
  margin-top: 0.9rem;
  color: var(--teal-dark);
  font-size: 0.78rem;
  font-weight: 950;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.add-button {
  min-height: 42px;
  border: 0;
  border-radius: var(--radius);
  background: var(--graphite);
  color: #fff;
  padding: 0.6rem 0.85rem;
  font-weight: 950;
  cursor: pointer;
}

.calculator-page,
.investor-console,
.invoice-layout {
  display: grid;
  grid-template-columns: minmax(300px, 0.8fr) minmax(0, 1.2fr);
  gap: 1rem;
  align-items: stretch;
}

.control-panel,
.invoice-form,
.invoice-preview,
.projection-panel {
  padding: clamp(1rem, 3vw, 1.5rem);
}

.control-panel {
  display: grid;
  gap: 1.1rem;
}

.control-panel.dark {
  background: #141a1f;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.12);
}

label {
  display: grid;
  gap: 0.55rem;
  font-weight: 900;
}

label span {
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 750;
}

.dark label span {
  color: rgba(255, 255, 255, 0.68);
}

input,
select {
  min-height: 48px;
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  color: var(--ink);
  padding: 0 0.85rem;
  font-weight: 800;
}

input[type="range"] {
  min-height: auto;
  padding: 0;
  accent-color: var(--teal);
}

.result-stack {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.result-card {
  display: grid;
  align-content: center;
  min-height: 210px;
  padding: 1.2rem;
}

.result-card span,
.projection-main span,
.cart-footer span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 950;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-result {
  background: var(--graphite);
  color: #fff;
}

.hero-result span,
.hero-result small {
  color: rgba(255, 255, 255, 0.72);
}

.result-card strong {
  margin: 0.35rem 0;
  font-size: clamp(1.7rem, 4.2vw, 3.2rem);
  line-height: 1;
}

.result-card small,
.projection-main small {
  color: var(--muted);
  line-height: 1.5;
}

.investor-title {
  color: #fff;
}

body[data-page="invest"] {
  background:
    radial-gradient(circle at 80% 0, rgba(8, 201, 155, 0.23), transparent 30rem),
    #101417;
  color: #fff;
}

body[data-page="invest"] .site-header,
body[data-page="invest"] .site-footer {
  background: rgba(18, 24, 29, 0.88);
  border-color: rgba(255, 255, 255, 0.12);
}

body[data-page="invest"] .site-nav {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.12);
}

body[data-page="invest"] .brand,
body[data-page="invest"] .site-footer,
body[data-page="invest"] .cart-button {
  color: #fff;
}

body[data-page="invest"] .cart-button {
  background: #151d23;
  border-color: rgba(255, 255, 255, 0.15);
}

body[data-page="invest"] .page-title p,
body[data-page="invest"] .risk-panel p,
body[data-page="invest"] .site-footer p {
  color: rgba(255, 255, 255, 0.72);
}

body[data-page="invest"] .button.primary {
  background: var(--teal);
  color: #08100d;
}

body[data-page="invest"] .button.secondary {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.18);
  color: #fff;
}

.small-investor-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  margin-bottom: 1rem;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.12);
}

.small-investor-strip div {
  padding: 1rem;
  background: rgba(255, 255, 255, 0.06);
}

.small-investor-strip strong,
.small-investor-strip span {
  display: block;
}

.small-investor-strip strong {
  color: #fff;
  font-size: clamp(1.2rem, 3vw, 1.8rem);
}

.small-investor-strip span {
  margin-top: 0.25rem;
  color: rgba(255, 255, 255, 0.66);
}

.simple-help {
  margin: -0.4rem 0 0;
  color: rgba(255, 255, 255, 0.68);
  line-height: 1.5;
}

.range-labels {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: rgba(255, 255, 255, 0.7);
}

.range-labels strong {
  color: #fff;
  font-size: 1.4rem;
}

.projection-panel {
  display: grid;
  gap: 1.25rem;
  background: #182127;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius);
}

.projection-main {
  display: grid;
  align-content: center;
  min-height: 230px;
  border-radius: var(--radius);
  padding: 1.25rem;
  background:
    linear-gradient(135deg, rgba(8, 201, 155, 0.26), rgba(255, 255, 255, 0.06)),
    #11181d;
}

.projection-main strong {
  font-size: clamp(2.8rem, 8vw, 6rem);
  line-height: 0.95;
}

.projection-bars {
  display: grid;
  gap: 1rem;
}

.projection-mini-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
}

.projection-mini-grid div {
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.05);
  padding: 0.85rem;
}

.projection-mini-grid span {
  display: block;
  color: rgba(255, 255, 255, 0.64);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.projection-mini-grid strong {
  display: block;
  margin-top: 0.25rem;
  color: #fff;
  font-size: 1.35rem;
}

.projection-bars span {
  display: block;
  margin-bottom: 0.42rem;
  color: rgba(255, 255, 255, 0.72);
  font-weight: 850;
}

.bar {
  height: 12px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
}

.bar i {
  display: block;
  width: 40%;
  height: 100%;
  border-radius: inherit;
  background: var(--teal);
  transition: width 180ms ease;
}

.bar.amber i {
  background: var(--amber);
}

.bar.red i {
  background: var(--red);
}

.risk-panel {
  margin-top: 1rem;
  padding: 1.25rem;
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.12);
}

.leaderboard-section {
  margin-top: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.06);
  padding: 1rem;
}

.light-board {
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.86);
}

.section-kicker {
  display: grid;
  grid-template-columns: minmax(0, 0.75fr) minmax(0, 1.25fr);
  gap: 1rem;
  align-items: end;
  margin-bottom: 1rem;
}

.section-kicker h2 {
  margin-bottom: 0;
  font-size: clamp(1.45rem, 3vw, 2.4rem);
}

.section-kicker p:not(.eyebrow) {
  margin: 0;
  color: rgba(255, 255, 255, 0.68);
  line-height: 1.6;
}

.light-board .section-kicker p:not(.eyebrow) {
  color: var(--muted);
}

.leaderboard-list {
  display: grid;
  gap: 0.55rem;
}

.leaderboard-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto auto;
  gap: 0.8rem;
  align-items: center;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.06);
  padding: 0.75rem;
}

.light-board .leaderboard-row {
  border-color: var(--line);
  background: #fff;
}

.leader-rank {
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: var(--radius);
  background: var(--teal);
  color: #07100d;
  font-weight: 950;
}

.leaderboard-row strong {
  color: #fff;
}

.light-board .leaderboard-row strong {
  color: var(--ink);
}

.leaderboard-row span {
  color: rgba(255, 255, 255, 0.65);
}

.light-board .leaderboard-row span,
.leaderboard-row .leader-status {
  color: var(--muted);
}

.leader-status {
  border: 1px solid rgba(8, 201, 155, 0.36);
  border-radius: 999px;
  padding: 0.28rem 0.6rem;
  background: rgba(8, 201, 155, 0.12);
  font-size: 0.78rem;
  font-weight: 900;
}

.investor-how {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}

.investor-how article {
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.06);
  padding: 1rem;
}

.investor-how h2 {
  font-size: clamp(1.25rem, 3vw, 1.8rem);
}

.investor-how p {
  color: rgba(255, 255, 255, 0.68);
  line-height: 1.6;
}

.invoice-layout {
  align-items: start;
}

.checkout-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.step-pill {
  display: flex;
  min-height: 54px;
  align-items: center;
  gap: 0.6rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.74);
  color: var(--muted);
  padding: 0.7rem;
  font-weight: 950;
}

.step-pill span {
  display: inline-grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 999px;
  background: var(--mint);
  color: var(--teal-dark);
}

.step-pill.active {
  border-color: rgba(8, 201, 155, 0.38);
  background: #fff;
  color: var(--ink);
}

.checkout-layout {
  grid-template-columns: minmax(0, 1.25fr) minmax(320px, 0.75fr);
}

.checkout-block {
  padding-bottom: 1.25rem;
  margin-bottom: 1.25rem;
  border-bottom: 1px solid var(--line);
}

.checkout-block:last-of-type {
  margin-bottom: 0;
}

.block-heading {
  display: flex;
  gap: 0.9rem;
  align-items: flex-start;
  margin-bottom: 1rem;
}

.block-heading .mini-code {
  flex: 0 0 auto;
  margin-bottom: 0;
}

.block-heading h2 {
  margin-bottom: 0.35rem;
  font-size: clamp(1.35rem, 3vw, 2rem);
}

.block-heading p,
.checkout-assist p {
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.6;
}

.checkout-lines {
  display: grid;
  gap: 0.65rem;
}

.checkout-source {
  border: 1px solid rgba(8, 201, 155, 0.32);
  border-radius: var(--radius);
  background: var(--mint);
  color: var(--teal-dark);
  padding: 0.7rem;
  font-weight: 900;
}

.checkout-line,
.checkout-total {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 1rem;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  padding: 0.85rem;
}

/* Remove control on each cart-derived checkout line */
.checkout-line { grid-template-columns: minmax(0, 1fr) auto auto; }
.checkout-line-remove {
  min-height: 34px;
  border: 1px solid rgba(255, 69, 58, 0.4);
  border-radius: 999px;
  background: #fff;
  color: #ff453a;
  padding: 0 0.85rem;
  font-size: 0.8rem;
  font-weight: 900;
  cursor: pointer;
  transition: background .2s ease, color .2s ease, border-color .2s ease;
}
.checkout-line-remove:hover { background: #ff453a; color: #fff; border-color: #ff453a; }
.checkout-line-remove:focus-visible { outline: 3px solid rgba(255, 69, 58, 0.35); outline-offset: 2px; }

.checkout-line span,
.checkout-total span {
  display: block;
  color: var(--muted);
  font-size: 0.9rem;
}

.checkout-total {
  background: var(--graphite);
  color: #fff;
}

.checkout-total span {
  color: rgba(255, 255, 255, 0.68);
}

.checkout-assist {
  margin-bottom: 1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--mint);
  padding: 1rem;
}

.checkout-assist h2 {
  margin-bottom: 0.5rem;
  font-size: clamp(1.35rem, 3vw, 2rem);
}

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

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

.invoice-actions {
  margin-top: 1rem;
}

.discount-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.75rem;
  align-items: end;
}

.discount-message {
  margin: 0.7rem 0 0;
  color: var(--muted);
  line-height: 1.5;
}

.dashboard-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
  gap: 1rem;
  align-items: stretch;
}

.dashboard-layout.lower {
  margin-top: 1rem;
}

.account-panel,
.dashboard-summary {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.86);
  padding: clamp(1rem, 3vw, 1.4rem);
}

.dashboard-welcome {
  border-radius: var(--radius);
  background: var(--graphite);
  color: #fff;
  padding: 1rem;
}

.dashboard-welcome h2 {
  margin-bottom: 0.35rem;
  font-size: clamp(1.5rem, 3vw, 2.4rem);
}

.dashboard-welcome p:not(.eyebrow) {
  margin: 0;
  color: rgba(255, 255, 255, 0.68);
}

.dashboard-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
  margin-top: 0.75rem;
}

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

.dashboard-metrics div,
.affiliate-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  padding: 0.85rem;
}

.dashboard-metrics span,
.affiliate-card span {
  display: block;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 950;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.dashboard-metrics strong,
.affiliate-card strong {
  display: block;
  margin-top: 0.25rem;
  font-size: clamp(1.25rem, 3vw, 1.8rem);
}

.affiliate-card small {
  display: block;
  margin-top: 0.45rem;
  color: var(--muted);
  line-height: 1.4;
}

.invoice-paper {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: 0 18px 50px rgba(16, 20, 23, 0.08);
  overflow: hidden;
}

.paper-top {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
  padding: 1rem;
  background: var(--graphite);
  color: #fff;
}

.paper-top span,
.paper-top strong {
  display: block;
}

.paper-top span {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.78rem;
  font-weight: 950;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.paper-top img {
  width: 170px;
  height: 56px;
  object-fit: contain;
  object-position: right center;
}

.paper-lines {
  padding: 1rem;
}

.paper-lines p {
  margin-bottom: 0.55rem;
  color: var(--muted);
}

.invoice-totals {
  margin: 0;
  border-top: 1px solid var(--line);
}

.invoice-totals div {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--line);
}

.invoice-totals div:last-child {
  border-bottom: 0;
  background: var(--mint);
}

.invoice-totals dt {
  color: var(--muted);
  font-weight: 850;
}

.invoice-totals dd {
  margin: 0;
  font-weight: 950;
}

.fine-print {
  margin: 1rem 0 0;
  font-size: 0.88rem;
}

.cart-drawer {
  position: fixed;
  inset: 0;
  z-index: 80;
  pointer-events: none;
}

.cart-drawer.is-open {
  pointer-events: auto;
}

.cart-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(16, 20, 23, 0);
  transition: background 180ms ease;
}

.cart-drawer.is-open .cart-backdrop {
  background: rgba(16, 20, 23, 0.5);
}

.cart-panel {
  position: absolute;
  top: 0;
  right: 0;
  z-index: 1;
  display: flex;
  width: min(380px, 100%);
  height: 100%;
  flex-direction: column;
  background: var(--paper);
  color: var(--ink);
  transform: translateX(100%);
  transition: transform 180ms ease;
}

.cart-drawer.is-open .cart-panel {
  transform: translateX(0);
}

.cart-header,
.cart-footer {
  padding: 1rem;
}

.cart-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
  padding: 1rem 1.25rem;
}

.cart-header h2 {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 900;
}

.icon-button {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  font-size: 1.15rem;
  font-weight: 950;
  border: none;
  background: #f1f5f9;
  color: var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 150ms ease;
}

.icon-button:hover {
  background: #e2e8f0;
}

.cart-items {
  flex: 1;
  overflow: auto;
  padding: 0.5rem 1.25rem;
}

.empty-cart {
  color: var(--muted);
  text-align: center;
  padding: 3rem 1rem;
  font-size: 0.95rem;
}

.cart-item {
  display: flex;
  gap: 0.65rem;
  padding: 0.7rem 0;
  border-bottom: 1px solid var(--line);
  align-items: center;
}

.cart-item-thumb {
  width: 48px;
  height: 48px;
  min-width: 48px;
  min-height: 48px;
  border-radius: 8px;
  overflow: hidden;
  flex-shrink: 0;
  background: #f1f5f9;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cart-item-thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.cart-item-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.cart-item-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.5rem;
}

.cart-item-details {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.cart-item-name {
  font-size: 0.9rem;
  font-weight: 800;
  color: var(--ink);
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cart-item-meta {
  font-size: 0.72rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.03em;
  font-weight: 700;
  margin-top: 0.1rem;
}

.cart-item-unit {
  font-size: 0.76rem;
  color: var(--muted);
  margin-top: 0.15rem;
}

.cart-item-close {
  background: none;
  border: none;
  color: var(--muted);
  font-size: 1.2rem;
  cursor: pointer;
  padding: 0;
  line-height: 1;
  opacity: 0.5;
  transition: opacity 150ms ease, color 150ms ease;
  flex-shrink: 0;
}

.cart-item-close:hover {
  opacity: 1;
  color: #e53e3e;
}

.cart-item-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.cart-item-qty {
  display: flex;
  align-items: center;
  gap: 0;
  border: 1px solid var(--line);
  border-radius: 999px;
  overflow: hidden;
  background: #fff;
}

.cart-item-qty .qty-btn {
  width: 30px;
  height: 30px;
  border: none;
  background: transparent;
  color: var(--ink);
  font-size: 0.95rem;
  font-weight: 800;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 150ms ease;
}

.cart-item-qty .qty-btn:hover {
  background: #f1f5f9;
}

.cart-item-qty .qty-value {
  width: 32px;
  text-align: center;
  font-size: 0.82rem;
  font-weight: 800;
  color: var(--ink);
  border-left: 1px solid var(--line);
  border-right: 1px solid var(--line);
  padding: 0.2rem 0;
}

.cart-item-total {
  font-size: 0.95rem;
  font-weight: 900;
  color: var(--ink);
}

.cart-footer {
  border-top: 1px solid var(--line);
  padding: 1rem 1.25rem;
}

.cart-footer div {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin-bottom: 0.85rem;
}

.cart-footer span {
  font-size: 0.88rem;
  color: var(--muted);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.cart-footer strong {
  font-size: 1.25rem;
  font-weight: 900;
}

.product-modal {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: grid;
  place-items: center;
  padding: 1rem;
  pointer-events: none;
}

.product-modal.is-open {
  pointer-events: auto;
}

.product-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 28, 0);
  transition: background 180ms ease;
}

.product-modal.is-open .product-modal-backdrop {
  background: rgba(15, 23, 28, 0.58);
}

.product-modal-panel {
  position: relative;
  width: min(1040px, 100%);
  max-height: min(860px, calc(100svh - 2rem));
  overflow: auto;
  border: 1px solid rgba(211, 221, 226, 0.8);
  border-radius: 10px;
  background: #fff;
  color: var(--ink);
  box-shadow: 0 34px 100px rgba(0, 0, 0, 0.28);
  opacity: 0;
  transform: none;
}

.product-modal.is-open .product-modal-panel {
  opacity: 1 !important;
  transform: none !important;
}

.product-modal-header {
  position: sticky;
  top: 0;
  z-index: 1;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: start;
  padding: 1rem clamp(1rem, 3vw, 1.5rem);
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(12px);
}

.product-modal-header h2 {
  margin: 0.2rem 0 0;
  font-size: clamp(1.8rem, 4vw, 3.2rem);
}

.product-modal-grid {
  display: grid;
  grid-template-columns: minmax(280px, 0.85fr) minmax(0, 1.15fr);
  gap: 1.25rem;
  padding: clamp(1rem, 3vw, 1.5rem);
}

.product-modal-visual {
  display: grid;
  gap: 1rem;
  align-content: start;
}

.product-modal-visual .machine-art {
  min-height: 280px;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
}

.modal-price-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}

.modal-price-grid div,
.modal-summary {
  display: grid;
  gap: 0.35rem;
  padding: 0.95rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fbfa;
}

.modal-price-grid span,
.modal-summary span {
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 950;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.modal-price-grid strong,
.modal-summary strong {
  font-size: clamp(1.25rem, 3vw, 1.8rem);
}

.modal-price-grid small {
  color: var(--muted);
  line-height: 1.35;
}

.product-modal-details {
  display: grid;
  align-content: start;
  gap: 1rem;
}

.product-modal-details > p {
  margin: 0;
  color: var(--muted);
  font-size: 1.02rem;
  line-height: 1.65;
}

.modal-features {
  margin-bottom: 0;
}

.modal-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem;
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.modal-summary {
  background: #effdf7;
  border-color: #c8f1e5;
}

.modal-actions {
  position: sticky;
  bottom: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.75rem;
  margin-inline: -0.25rem;
  padding: 0.85rem 0.25rem 0;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.82), #fff 42%);
}

.site-footer {
  display: grid;
  grid-template-columns: auto minmax(0, 780px);
  gap: 1rem;
  align-items: center;
  margin-top: clamp(3.5rem, 7vw, 6rem);
  padding: 1.35rem clamp(1rem, 4vw, 3.5rem);
  border-top: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.82);
}

.site-footer img {
  width: 190px;
  height: 58px;
  object-fit: contain;
  object-position: left center;
}

.site-footer p {
  margin: 0;
  font-size: 0.9rem;
}

@media (max-width: 1040px) {
  .site-header {
    grid-template-columns: auto auto;
  }

  .site-nav {
    grid-column: 1 / -1;
    justify-self: stretch;
    overflow-x: auto;
  }

  .hero-page,
  .editorial-split,
  .store-shell,
  .calculator-page,
  .investor-console,
  .dashboard-layout,
  .invoice-layout {
    grid-template-columns: 1fr;
  }

  .store-sidebar {
    position: static;
  }

  .vertical-filters {
    grid-template-columns: repeat(5, max-content);
    overflow-x: auto;
  }

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

  .hero-visual img {
    min-height: 320px;
  }
}

@media (max-width: 720px) {
  .site-header {
    min-height: 68px;
    gap: 0.65rem;
  }

  .brand img {
    width: 132px;
    height: 42px;
  }

  .site-nav a {
    padding: 0 0.72rem;
  }

  .hero-page,
  .page-title {
    padding-top: 1.4rem;
  }

  .home-hero {
    min-height: auto;
  }

  h1,
  .page-title h1 {
    font-size: clamp(2.85rem, 16vw, 4.6rem);
  }

  h2 {
    font-size: clamp(1.85rem, 10vw, 3rem);
  }

  .action-row .button,
  .invoice-actions .button {
    width: 100%;
  }

  .home-routes,
  .signal-band,
  .small-investor-strip,
  .investor-how,
  .projection-mini-grid,
  .section-kicker,
  .dashboard-metrics,
  .dashboard-metrics.compact,
  .product-grid,
  .result-stack,
  .form-grid,
  .checkout-steps,
  .site-footer {
    grid-template-columns: 1fr;
  }

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

  .leaderboard-row > strong,
  .leader-status {
    grid-column: 2;
  }

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

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

  .hero-visual img {
    min-height: 230px;
  }

  .vertical-filters {
    grid-template-columns: 1fr;
  }

  .result-card {
    min-height: 150px;
  }
}

/* UX polish pass: cleaner storefront, clearer hierarchy, more modern surfaces. */
:root {
  --bg: #f7faf9;
  --paper: #ffffff;
  --ink: #0d1418;
  --muted: #647076;
  --line: #e3ebe8;
  --graphite: #0f171c;
  --mint: #e9fbf6;
  --shadow: 0 20px 54px rgba(15, 23, 28, 0.09);
}

body {
  background:
    linear-gradient(180deg, rgba(8, 201, 155, 0.1), transparent 24rem),
    radial-gradient(circle at 88% 4rem, rgba(8, 201, 155, 0.13), transparent 22rem),
    var(--bg);
}

.site-header {
  min-height: 78px;
  padding: 0.85rem clamp(1rem, 4vw, 4rem);
  background: rgba(247, 250, 249, 0.82);
  border-bottom-color: rgba(227, 235, 232, 0.8);
}

.site-nav {
  padding: 0.3rem;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 12px 30px rgba(15, 23, 28, 0.06);
}

.site-nav a {
  min-height: 38px;
  padding-inline: 1rem;
}

.site-nav a[href="./dashboard.html"] {
  background: var(--mint);
  color: var(--teal-dark);
}

.site-nav a[href="./dashboard.html"].active,
.site-nav a[href="./dashboard.html"]:hover {
  background: var(--teal);
  color: #06130f;
}

.cart-button {
  height: 44px;
  background: var(--graphite);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 12px 30px rgba(15, 23, 28, 0.12);
}

h1,
.page-title h1 {
  max-width: 860px;
  font-size: clamp(2.65rem, 6.4vw, 5.8rem);
  line-height: 0.95;
}

h2 {
  line-height: 1;
}

.hero-page {
  width: min(1240px, calc(100% - 2rem));
  gap: clamp(1.5rem, 5vw, 5rem);
  padding-top: clamp(2rem, 6vw, 5.8rem);
}

.home-hero {
  min-height: calc(100svh - 150px);
}

.hero-copy {
  max-width: 660px;
}

.hero-copy > p:not(.eyebrow),
.page-title p {
  color: #506069;
  font-size: clamp(1.02rem, 1.5vw, 1.18rem);
}

.hero-visual {
  border: 0;
  background: #fff;
  box-shadow: 0 28px 80px rgba(15, 23, 28, 0.12);
}

.hero-visual img {
  min-height: 390px;
}

.button {
  min-height: 50px;
  padding-inline: 1.15rem;
}

.button.primary,
.add-button {
  background: linear-gradient(135deg, #10191f, #223038);
}

.button.secondary {
  background: rgba(255, 255, 255, 0.72);
}

.home-routes {
  width: min(1240px, calc(100% - 2rem));
  margin-top: 1.25rem;
  gap: 1rem;
}

.route-card {
  min-height: 190px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 18px 44px rgba(15, 23, 28, 0.06);
}

.route-card h2 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
}

.route-logo {
  display: block;
  width: min(210px, 72%);
  height: 48px;
  object-fit: contain;
  object-position: left center;
  margin: 0.35rem 0 0.8rem;
}

.route-logo.wide {
  width: min(260px, 84%);
}

.signal-band {
  width: min(1240px, calc(100% - 2rem));
  margin-top: 1rem;
  box-shadow: 0 18px 44px rgba(15, 23, 28, 0.04);
}

.editorial-split {
  width: min(1240px, calc(100% - 2rem));
  margin-top: clamp(2.5rem, 6vw, 5rem);
  background: #0f171c;
  color: #fff;
  border: 0;
  box-shadow: var(--shadow);
}

.editorial-split p {
  color: rgba(255, 255, 255, 0.72);
}

.page-title {
  padding-top: clamp(2rem, 5vw, 4rem);
}

.page-title.compact {
  padding-bottom: 1.2rem;
}

@media (max-width: 1040px) {
  .store-shell {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }
}

@media (max-width: 1040px) {
  .store-sidebar {
    position: static;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 18px 44px rgba(15, 23, 28, 0.05);
  }

  .vertical-filters {
    display: flex;
    flex-wrap: wrap;
  }

  .filter-chip {
    text-align: center;
  }

  .side-note {
    margin: 0;
    padding: 0 0 0 1rem;
    border-top: 0;
    border-left: 1px solid var(--line);
  }
}

.product-grid {
  gap: 1.15rem;
}

.product-card {
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 18px 44px rgba(15, 23, 28, 0.06);
}

.machine-art {
  min-height: 190px;
}

.product-body {
  padding: 1.1rem;
}

.product-meta {
  align-items: flex-start;
}

.calculator-page,
.investor-console,
.invoice-layout,
.dashboard-layout {
  gap: 1.25rem;
}

.control-panel,
.invoice-form,
.invoice-preview,
.account-panel,
.dashboard-summary,
.result-card {
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 18px 44px rgba(15, 23, 28, 0.06);
}

.result-card {
  min-height: 170px;
}

.checkout-steps {
  display: none;
}

.checkout-layout {
  grid-template-columns: minmax(0, 1fr) minmax(340px, 0.48fr);
}

.checkout-block {
  padding-bottom: 1rem;
  margin-bottom: 1rem;
}

.block-heading {
  gap: 0.75rem;
}

.block-heading h2 {
  font-size: clamp(1.2rem, 2vw, 1.55rem);
}

.mini-code,
.route-card span {
  background: #dff9f1;
}

.checkout-assist {
  background: #0f171c;
  color: #fff;
  border: 0;
}

.checkout-assist p,
.checkout-assist .eyebrow {
  color: rgba(255, 255, 255, 0.7);
}

.invoice-paper {
  box-shadow: 0 18px 44px rgba(15, 23, 28, 0.08);
}

body[data-page="invest"] {
  background:
    radial-gradient(circle at 78% 4rem, rgba(8, 201, 155, 0.2), transparent 26rem),
    linear-gradient(180deg, #10171c, #131b21);
}

.small-investor-strip,
.investor-console,
.leaderboard-section,
.investor-how,
.risk-panel {
  width: min(1120px, calc(100% - 2rem));
}

.projection-panel,
.control-panel.dark {
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.18);
}

.leaderboard-section {
  padding: 1.15rem;
}

.dashboard-layout {
  align-items: start;
}

.dashboard-overview,
.earnings-analytics {
  width: min(1240px, calc(100% - 2rem));
  margin: 1.25rem auto 0;
}

.dashboard-overview {
  display: grid;
  grid-template-columns: minmax(260px, 0.82fr) minmax(360px, 1.1fr);
  gap: 1.25rem;
  align-items: stretch;
}

.dashboard-identity,
.earnings-donut-card,
.monthly-chart-card,
.earnings-breakdown-card {
  border: 1px solid rgba(211, 221, 226, 0.78);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 18px 44px rgba(15, 23, 28, 0.06);
  border-radius: 8px;
}

.dashboard-identity {
  position: relative;
  overflow: hidden;
  padding: clamp(1.2rem, 3vw, 1.6rem);
  min-height: 310px;
}

.dashboard-button-art {
  width: min(360px, 100%);
  height: 86px;
  object-fit: contain;
  object-position: left center;
  margin-bottom: 1.8rem;
}

.dashboard-identity h2 {
  margin: 0.35rem 0 0.2rem;
  font-size: clamp(2rem, 4vw, 3.6rem);
}

.dashboard-identity > p:not(.eyebrow) {
  margin: 0;
  color: var(--muted);
}

.identity-status {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
  margin-top: 2rem;
  padding: 1rem;
  background: #f4faf7;
  border: 1px solid #d9f4ec;
  border-radius: 8px;
}

.identity-status span,
.donut-legend span,
.dashboard-kpis span,
.breakdown-row span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.identity-status strong {
  color: var(--teal-dark);
  white-space: nowrap;
}

.earnings-donut-card {
  padding: clamp(1.2rem, 3vw, 1.6rem);
}

.donut-layout {
  display: grid;
  grid-template-columns: minmax(180px, 0.8fr) minmax(180px, 1fr);
  gap: 1.3rem;
  align-items: center;
  margin-top: 1.2rem;
}

.donut-chart {
  position: relative;
  display: grid;
  place-items: center;
  width: min(260px, 100%);
  aspect-ratio: 1;
  border-radius: 50%;
  background:
    conic-gradient(
      var(--teal) 0 var(--available-end, 65%),
      var(--graphite) var(--available-end, 65%) var(--paid-end, 84%),
      #d9e1e6 var(--paid-end, 84%) 100%
    );
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.42), 0 20px 45px rgba(15, 23, 28, 0.12);
}

.donut-chart::after {
  content: "";
  position: absolute;
  inset: 18%;
  border-radius: inherit;
  background: #fff;
  box-shadow: inset 0 0 0 1px var(--line);
}

.donut-center {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 0.25rem;
  text-align: center;
}

.donut-center span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.donut-center strong {
  font-size: clamp(1.35rem, 3vw, 2.1rem);
}

.donut-legend {
  display: grid;
  gap: 0.8rem;
}

.donut-legend > div {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 0.7rem;
  align-items: center;
  padding: 0.85rem;
  background: #f8fbfa;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.legend-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

.legend-dot.available {
  background: var(--teal);
}

.legend-dot.paid {
  background: var(--graphite);
}

.legend-dot.pending {
  background: #d9e1e6;
}

.dashboard-kpis {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

.dashboard-kpis > div {
  min-height: 124px;
  padding: 1rem;
  display: grid;
  align-content: space-between;
  gap: 1rem;
  background: #fff;
  border: 1px solid rgba(211, 221, 226, 0.78);
  border-radius: 8px;
  box-shadow: 0 14px 34px rgba(15, 23, 28, 0.045);
}

.dashboard-kpis strong {
  font-size: clamp(1.45rem, 3vw, 2.35rem);
}

.earnings-analytics {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.8fr);
  gap: 1.25rem;
}

.monthly-chart-card,
.earnings-breakdown-card {
  padding: clamp(1.2rem, 3vw, 1.6rem);
}

.mini-bar-chart {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 0.8rem;
  align-items: end;
  min-height: 220px;
  margin-top: 1.4rem;
  padding: 1rem;
  background:
    linear-gradient(to top, rgba(211, 221, 226, 0.7) 1px, transparent 1px) 0 0 / 100% 25%,
    #f8fbfa;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.mini-bar-chart > div {
  display: grid;
  gap: 0.65rem;
  align-items: end;
  height: 170px;
}

.mini-bar-chart i {
  display: block;
  width: 100%;
  min-height: 24px;
  height: var(--bar-height, 55%);
  align-self: end;
  border-radius: 8px 8px 3px 3px;
  background: linear-gradient(180deg, var(--mint), var(--teal));
  box-shadow: 0 12px 26px rgba(8, 201, 155, 0.18);
}

.mini-bar-chart span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 900;
  text-align: center;
}

.breakdown-list {
  display: grid;
  gap: 1rem;
  margin-top: 1.4rem;
}

.breakdown-row {
  display: grid;
  gap: 0.8rem;
  padding: 1rem;
  background: #f8fbfa;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.breakdown-row > div:first-child {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
}

.breakdown-row strong {
  white-space: nowrap;
}

.mini-progress {
  height: 9px;
  overflow: hidden;
  border-radius: 999px;
  background: #e7eef1;
}

.mini-progress i {
  display: block;
  width: var(--progress, 50%);
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--teal), var(--mint));
}

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

@media (max-width: 1040px) {
  .store-sidebar {
    grid-template-columns: 1fr;
  }

  .side-note {
    padding: 1rem 0 0;
    border-left: 0;
    border-top: 1px solid var(--line);
  }

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

  .dashboard-overview,
  .earnings-analytics,
  .account-tools {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 720px) {
  .site-header {
    grid-template-columns: 1fr auto;
    padding-inline: 1rem;
  }

  .site-nav {
    margin-top: 0.2rem;
    border-radius: 16px;
  }

  .site-nav a {
    min-height: 36px;
  }

  .brand img {
    width: 150px;
  }

  .hero-page {
    gap: 1.25rem;
  }

  .hero-visual img {
    min-height: 220px;
  }

  .home-routes {
    margin-top: 0.75rem;
  }

  .route-logo,
  .route-logo.wide {
    width: min(190px, 82%);
    height: 42px;
  }

  .dashboard-overview,
  .earnings-analytics {
    width: min(100% - 1rem, 1240px);
  }

  .dashboard-button-art {
    height: 58px;
  }

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

  .donut-chart {
    width: min(250px, 86vw);
    justify-self: center;
  }

  .dashboard-kpis {
    grid-template-columns: 1fr;
  }

  .mini-bar-chart {
    gap: 0.45rem;
    padding: 0.7rem;
  }

  .store-sidebar,
  .product-card,
  .route-card,
  .invoice-form,
  .invoice-preview,
  .account-panel,
  .dashboard-summary {
    box-shadow: 0 12px 30px rgba(15, 23, 28, 0.06);
  }
}

/* New homepage: clearer first impression and store-led purchase journey. */
.homepage-hero,
.home-choice-panel,
.featured-home,
.home-process,
.home-invest-band {
  width: min(1240px, calc(100% - 2rem));
  margin-inline: auto;
}

.homepage-hero {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(420px, 1.1fr);
  gap: clamp(1.5rem, 5vw, 5rem);
  align-items: center;
  min-height: calc(100svh - 150px);
  padding: clamp(2rem, 6vw, 5rem) 0 1.25rem;
}

.homepage-hero-copy {
  display: grid;
  gap: 1.2rem;
}

.homepage-hero-copy h1 {
  max-width: 760px;
  margin: 0;
  font-size: clamp(3.2rem, 7.2vw, 6.4rem);
  line-height: 0.9;
}

.homepage-hero-copy > p:not(.eyebrow) {
  max-width: 620px;
  margin: 0;
  color: #506069;
  font-size: clamp(1.06rem, 1.6vw, 1.24rem);
  line-height: 1.65;
}

.hero-proof-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
  margin-top: 0.4rem;
}

.hero-proof-grid div {
  display: grid;
  gap: 0.3rem;
  min-height: 96px;
  padding: 0.9rem;
  border: 1px solid rgba(211, 221, 226, 0.82);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 14px 34px rgba(15, 23, 28, 0.045);
}

.hero-proof-grid strong {
  font-size: clamp(1.25rem, 2.6vw, 1.9rem);
}

.hero-proof-grid span {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 850;
  line-height: 1.35;
}

.home-showcase {
  position: relative;
  overflow: hidden;
  min-height: 520px;
  border: 1px solid rgba(211, 221, 226, 0.82);
  border-radius: 8px;
  background:
    radial-gradient(circle at 74% 16%, rgba(8, 201, 155, 0.18), transparent 18rem),
    linear-gradient(145deg, #ffffff, #eef5f2);
  box-shadow: 0 30px 90px rgba(15, 23, 28, 0.11);
}

.home-showcase img {
  width: 100%;
  height: 100%;
  min-height: 520px;
  object-fit: cover;
  object-position: center;
}

.showcase-note {
  position: absolute;
  right: 1rem;
  bottom: 1rem;
  width: min(320px, calc(100% - 2rem));
  padding: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 8px;
  background: rgba(15, 23, 28, 0.9);
  color: #fff;
  box-shadow: 0 18px 44px rgba(15, 23, 28, 0.18);
}

.showcase-note span {
  display: block;
  margin-bottom: 0.35rem;
  color: rgba(255, 255, 255, 0.64);
  font-size: 0.74rem;
  font-weight: 950;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.showcase-note strong {
  font-size: 1.05rem;
  line-height: 1.3;
}

.home-button-strip,
.vape-trust-panel,
.home-choice-panel,
.featured-home,
.home-process,
.home-invest-band {
  margin-top: clamp(2rem, 5vw, 4.5rem);
}

.home-button-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.9rem;
  width: min(1240px, calc(100% - 2rem));
  margin-inline: auto;
}

.home-button-strip a {
  display: grid;
  place-items: center;
  min-height: 108px;
  padding: 0.9rem;
  border: 1px solid rgba(211, 221, 226, 0.82);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 14px 34px rgba(15, 23, 28, 0.05);
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.home-button-strip a:hover {
  transform: translateY(-2px);
  border-color: rgba(8, 201, 155, 0.48);
  box-shadow: 0 22px 50px rgba(15, 23, 28, 0.09);
}

.home-button-strip img {
  width: min(220px, 100%);
  height: 62px;
  object-fit: contain;
}

.vape-trust-panel {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--line);
  box-shadow: 0 18px 44px rgba(15, 23, 28, 0.055);
}

.vape-trust-panel div {
  display: grid;
  gap: 0.5rem;
  min-height: 132px;
  align-content: center;
  padding: 1.15rem;
  background: #fff;
}

.vape-trust-panel span {
  color: var(--teal-dark);
  font-size: 0.76rem;
  font-weight: 950;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.vape-trust-panel strong {
  font-size: clamp(1.05rem, 2vw, 1.3rem);
  line-height: 1.35;
}

.home-section-heading {
  display: grid;
  grid-template-columns: minmax(0, 0.78fr) minmax(280px, 0.62fr);
  gap: 1.25rem;
  align-items: end;
  margin-bottom: 1rem;
}

.home-section-heading.compact {
  display: block;
}

.home-section-heading h2,
.home-invest-band h2 {
  margin: 0;
  font-size: clamp(2rem, 5vw, 4rem);
}

.home-section-heading p:not(.eyebrow),
.home-invest-band p {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

.home-choice-grid,
.featured-grid {
  display: grid;
  gap: 1rem;
}

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

.home-choice-card,
.featured-card {
  display: grid;
  border: 1px solid rgba(211, 221, 226, 0.8);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 18px 44px rgba(15, 23, 28, 0.06);
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.home-choice-card {
  min-height: 310px;
  align-content: start;
  gap: 0.65rem;
  padding: 1.1rem;
}

.home-choice-card:hover,
.featured-card:hover {
  transform: translateY(-2px);
  border-color: rgba(8, 201, 155, 0.46);
  box-shadow: 0 24px 58px rgba(15, 23, 28, 0.09);
}

.choice-number {
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 999px;
  background: #dff9f1;
  color: var(--teal-dark);
  font-size: 0.82rem;
  font-weight: 950;
}

.home-choice-card img {
  width: min(230px, 82%);
  height: 52px;
  object-fit: contain;
  object-position: left center;
  margin: 0.4rem 0 0.5rem;
}

.home-choice-card img.wide {
  width: min(300px, 94%);
}

.home-choice-card h3,
.featured-card h3 {
  margin: 0;
  font-size: clamp(1.35rem, 3vw, 2rem);
}

.home-choice-card p,
.featured-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

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

.featured-card {
  overflow: hidden;
}

.featured-art {
  min-height: 210px;
}

.product-mini-art {
  display: grid;
  place-items: center;
  padding: 1rem;
  background:
    radial-gradient(circle at 72% 18%, rgba(8, 201, 155, 0.16), transparent 34%),
    linear-gradient(145deg, #fbfdfc, #e7efed);
}

.product-mini-art img {
  width: 100%;
  height: 180px;
  object-fit: contain;
  filter: drop-shadow(0 18px 24px rgba(15, 23, 28, 0.2));
}

.featured-card h3,
.featured-card p {
  padding-inline: 1rem;
}

.featured-card h3 {
  padding-top: 1rem;
}

.featured-card p {
  padding-bottom: 1.1rem;
}

.home-process {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #0f171c;
  color: #fff;
  box-shadow: 0 24px 58px rgba(15, 23, 28, 0.13);
}

.home-process div {
  display: grid;
  gap: 0.55rem;
  padding: 1.15rem;
  border-right: 1px solid rgba(255, 255, 255, 0.1);
}

.home-process div:last-child {
  border-right: 0;
}

.home-process span {
  display: inline-grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 999px;
  background: var(--teal);
  color: #07120f;
  font-weight: 950;
}

.home-process strong {
  font-size: 1.1rem;
}

.home-process p {
  margin: 0;
  color: rgba(255, 255, 255, 0.66);
  line-height: 1.5;
}

.home-invest-band {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 1.25rem;
  align-items: center;
  padding: clamp(1.2rem, 3vw, 1.8rem);
  border: 1px solid #ccefe5;
  border-radius: 8px;
  background:
    radial-gradient(circle at 12% 10%, rgba(8, 201, 155, 0.15), transparent 24rem),
    #f7fffb;
  box-shadow: 0 18px 44px rgba(15, 23, 28, 0.05);
}

.home-invest-band > div:first-child {
  display: grid;
  gap: 0.75rem;
}

.invest-band-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.75rem;
}

@media (max-width: 1040px) {
  .product-modal-grid {
    grid-template-columns: 1fr;
  }

  .product-modal-visual .machine-art {
    min-height: 280px;
  }
}

@media (max-width: 720px) {
  .product-modal {
    align-items: end;
    padding: 0;
  }

  .product-modal-panel {
    width: 100%;
    max-height: calc(100svh - 0.75rem);
    border-radius: 10px 10px 0 0;
  }

  .product-modal-header {
    padding: 0.9rem;
  }

  .product-modal-grid {
    gap: 0.9rem;
    padding: 0.9rem;
  }

  .product-modal-visual .machine-art {
    min-height: 210px;
  }

  .modal-price-grid,
  .modal-form {
    grid-template-columns: 1fr;
  }

  .modal-actions .button {
    width: 100%;
  }
}

@media (max-width: 1040px) {
  .homepage-hero {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .home-showcase,
  .home-showcase img {
    min-height: 390px;
  }

  .home-section-heading,
  .home-invest-band {
    grid-template-columns: 1fr;
  }

  .home-button-strip,
  .home-choice-grid,
  .featured-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .vape-trust-panel {
    grid-template-columns: 1fr;
  }

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

  .home-process div:nth-child(2) {
    border-right: 0;
  }

  .home-process div:nth-child(-n + 2) {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }

  .invest-band-actions {
    justify-content: flex-start;
  }
}

@media (max-width: 720px) {
  .homepage-hero,
  .home-button-strip,
  .vape-trust-panel,
  .home-choice-panel,
  .featured-home,
  .home-process,
  .home-invest-band {
    width: min(100% - 1rem, 1240px);
  }

  .homepage-hero {
    padding-top: 0.85rem;
    padding-bottom: 0;
    gap: 0.65rem;
  }

  .homepage-hero-copy {
    gap: 0.75rem;
  }

  .homepage-hero-copy h1 {
    font-size: clamp(2.15rem, 10.5vw, 3rem);
    line-height: 0.96;
  }

  .homepage-hero-copy > p:not(.eyebrow) {
    font-size: 0.98rem;
    line-height: 1.45;
  }

  .home-button-strip,
  .home-choice-grid,
  .featured-grid,
  .home-process {
    grid-template-columns: 1fr;
  }

  .home-button-strip {
    gap: 0.55rem;
    margin-top: 0.75rem;
  }

  .home-button-strip a {
    min-height: 78px;
  }

  .home-button-strip img {
    height: 46px;
  }

  .hero-proof-grid {
    display: none;
  }

  .home-showcase,
  .home-showcase img {
    min-height: 170px;
    max-height: 190px;
  }

  .home-choice-panel {
    margin-top: 1rem;
  }

  .showcase-note {
    position: absolute;
    right: 0.7rem;
    bottom: 0.7rem;
    width: min(260px, calc(100% - 1.4rem));
    padding: 0.65rem;
    margin: 0;
  }

  .showcase-note strong {
    font-size: 0.9rem;
  }

  .home-choice-card {
    min-height: 0;
  }

  .featured-art {
    min-height: 170px;
  }

  .home-process div,
  .home-process div:nth-child(2),
  .home-process div:nth-child(-n + 2) {
    border-right: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }

  .home-process div:last-child {
    border-bottom: 0;
  }

  .invest-band-actions .button {
    width: 100%;
  }
}

/* Image navigation buttons */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.site-nav.visual-nav {
  align-items: center;
  gap: 0.45rem;
  padding: 0.35rem;
  border-radius: 14px;
}

.site-nav.visual-nav a,
.site-nav.visual-nav a[href="./dashboard.html"] {
  display: grid;
  place-items: center;
  width: 78px;
  min-height: 58px;
  padding: 0.24rem 0.34rem;
  border: 1px solid transparent;
  border-radius: 10px;
  background: transparent;
  color: inherit;
  transition:
    transform 160ms ease,
    background 160ms ease,
    border-color 160ms ease,
    box-shadow 160ms ease;
}

.site-nav.visual-nav a img {
  width: 100%;
  height: 50px;
  object-fit: contain;
  filter: drop-shadow(0 8px 13px rgba(15, 23, 28, 0.11));
}

.site-nav.visual-nav a.active,
.site-nav.visual-nav a:hover,
.site-nav.visual-nav a[href="./dashboard.html"].active,
.site-nav.visual-nav a[href="./dashboard.html"]:hover {
  background: rgba(8, 201, 155, 0.1);
  border-color: rgba(8, 201, 155, 0.38);
  color: inherit;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.72);
}

.site-nav.visual-nav a:hover {
  transform: translateY(-1px);
}

.home-button-strip a {
  min-height: 136px;
}

.home-button-strip img {
  width: min(164px, 100%);
  height: 102px;
  object-fit: contain;
  filter: drop-shadow(0 14px 24px rgba(15, 23, 28, 0.13));
}

.home-choice-card img[src*="nav-square"] {
  width: min(148px, 74%);
  height: 102px;
  object-position: left center;
  filter: drop-shadow(0 14px 24px rgba(15, 23, 28, 0.12));
}

.dashboard-button-art {
  max-width: 240px;
  height: 126px;
  object-fit: contain;
}

/* Term-based investor product selector */
.term-selector {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
}

#small-investor-calculator {
  scroll-margin-top: 126px;
}

.term-card {
  position: relative;
  display: grid;
  gap: 0.38rem;
  min-height: 138px;
  align-content: start;
  padding: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
  cursor: pointer;
  transition:
    transform 160ms ease,
    border-color 160ms ease,
    background 160ms ease,
    box-shadow 160ms ease;
}

.term-card input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.term-card span,
.term-card em,
.term-card small {
  color: rgba(255, 255, 255, 0.68);
}

.term-card span {
  font-size: 0.78rem;
  font-weight: 950;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.term-card strong {
  color: #fff;
  font-size: clamp(2.25rem, 5vw, 3.5rem);
  line-height: 1;
}

.term-card em {
  margin-top: -0.12rem;
  font-style: normal;
  font-size: 0.78rem;
  font-weight: 950;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.term-card small {
  max-width: 18rem;
  line-height: 1.45;
}

.term-card.featured::after {
  content: "Highest target";
  justify-self: start;
  padding: 0.3rem 0.48rem;
  border-radius: 999px;
  background: rgba(8, 201, 155, 0.16);
  color: #8fffe4;
  font-size: 0.7rem;
  font-weight: 950;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.term-card.selected,
.term-card:has(input:checked),
.term-card:hover {
  transform: translateY(-1px);
  border-color: rgba(8, 201, 155, 0.62);
  background: rgba(8, 201, 155, 0.12);
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.16);
}

.term-card.selected::before,
.term-card:has(input:checked)::before {
  content: "";
  position: absolute;
  top: 0.85rem;
  right: 0.85rem;
  width: 0.7rem;
  height: 0.7rem;
  border-radius: 999px;
  background: var(--teal);
  box-shadow: 0 0 0 5px rgba(8, 201, 155, 0.14);
}

body[data-page="invest"] .projection-mini-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

/* Product photo storefront */
body[data-page="store"] .product-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  justify-content: stretch;
}

body[data-page="store"] .product-card {
  min-height: 0;
}

.product-photo-stage {
  display: grid;
  min-height: 330px;
  place-items: center;
  padding: 1rem;
  background:
    radial-gradient(circle at 68% 16%, rgba(8, 201, 155, 0.18), transparent 34%),
    linear-gradient(145deg, #fbfdfc, #e7efed);
}

.product-photo {
  width: 100%;
  height: 300px;
  object-fit: contain;
  filter: drop-shadow(0 26px 34px rgba(15, 23, 28, 0.2));
}

/* Bouncy product image: gentle idle float + springy hover pop */
@media (prefers-reduced-motion: no-preference) {
  .product-photo-stage .product-photo,
  .product-photo-stage .machine {
    animation: vpFloat 4.5s ease-in-out infinite;
    transform-origin: center bottom;
  }
  .product-card:nth-child(2n) .product-photo-stage .product-photo,
  .product-card:nth-child(2n) .product-photo-stage .machine { animation-delay: -1.5s; }
  .product-card:nth-child(3n) .product-photo-stage .product-photo,
  .product-card:nth-child(3n) .product-photo-stage .machine { animation-delay: -3s; }
  @keyframes vpFloat {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    25%      { transform: translateY(-10px) rotate(-1.2deg); }
    50%      { transform: translateY(-16px) rotate(0deg); }
    75%      { transform: translateY(-8px) rotate(1.2deg); }
  }
  .product-card:hover .product-photo-stage .product-photo,
  .product-card:hover .product-photo-stage .machine {
    animation: vpBounce 0.7s cubic-bezier(.34, 1.56, .64, 1) both;
  }
  @keyframes vpBounce {
    0%   { transform: translateY(0) scale(1); }
    30%  { transform: translateY(-26px) scale(1.08); }
    55%  { transform: translateY(0) scale(0.96); }
    75%  { transform: translateY(-10px) scale(1.03); }
    100% { transform: translateY(0) scale(1.06); }
  }
  /* springy entrance when a product card reveals */
  .product-card.is-visible .product-photo-stage .product-photo,
  .product-card.is-visible .product-photo-stage .machine {
    animation: vpFloat 4.5s ease-in-out infinite, vpPop 0.6s cubic-bezier(.34, 1.56, .64, 1) both;
  }
  @keyframes vpPop {
    from { transform: scale(0.6) translateY(20px); opacity: 0; }
    to   { transform: scale(1) translateY(0); opacity: 1; }
  }
}

.product-gallery {
  display: grid;
  gap: 0.8rem;
}

.product-gallery-main {
  display: grid;
  min-height: 440px;
  place-items: center;
  overflow: hidden;
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    radial-gradient(circle at 72% 14%, rgba(8, 201, 155, 0.18), transparent 36%),
    linear-gradient(145deg, #fbfdfc, #e7efed);
}

.product-gallery-main img {
  width: 100%;
  height: 410px;
  object-fit: contain;
  filter: drop-shadow(0 28px 42px rgba(15, 23, 28, 0.22));
}

.product-gallery-thumbs {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.5rem;
}

.product-gallery-thumbs button {
  display: grid;
  height: 72px;
  place-items: center;
  overflow: hidden;
  padding: 0.25rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fbfa;
  cursor: pointer;
}

.product-gallery-thumbs button.active,
.product-gallery-thumbs button:hover {
  border-color: rgba(8, 201, 155, 0.65);
  background: #effdf7;
}

.product-gallery-thumbs img {
  width: 100%;
  height: 62px;
  object-fit: contain;
}

.product-detail-sections {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem;
}

.product-detail-block {
  display: grid;
  gap: 0.55rem;
  align-content: start;
  padding: 0.9rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fbfa;
}

.product-detail-block h3,
.product-detail-block p {
  margin: 0;
}

.product-detail-block h3 {
  font-size: 0.82rem;
  font-weight: 950;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.product-detail-block ul {
  display: grid;
  gap: 0.42rem;
  margin: 0;
  padding-left: 1rem;
}

.product-detail-block li,
.product-detail-block p {
  color: var(--muted);
  line-height: 1.45;
  font-size: 0.9rem;
}

@media (max-width: 1040px) {
  .brand {
    grid-column: 1;
    grid-row: 1;
  }

  .cart-button {
    grid-column: 2;
    grid-row: 1;
    justify-self: end;
    width: auto;
  }

  .site-nav.visual-nav {
    display: grid;
    grid-column: 1 / -1;
    grid-row: 2;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    justify-self: stretch;
  }

  .site-nav.visual-nav a,
  .site-nav.visual-nav a[href="./dashboard.html"] {
    width: auto;
  }

  body[data-page="invest"] .projection-mini-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  body[data-page="store"] .product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .site-header {
    align-items: center;
  }

  .site-nav.visual-nav {
    gap: 0.3rem;
    padding: 0.3rem;
  }

  .site-nav.visual-nav a,
  .site-nav.visual-nav a[href="./dashboard.html"] {
    min-height: 50px;
    padding: 0.18rem 0.22rem;
    border-radius: 8px;
  }

  .site-nav.visual-nav a img {
    height: 43px;
  }

  .home-button-strip a {
    min-height: 112px;
  }

  .home-button-strip img {
    width: min(152px, 100%);
    height: 86px;
  }

  .home-choice-card img[src*="nav-square"],
  .dashboard-button-art {
    height: 92px;
  }

  .term-selector,
  body[data-page="invest"] .projection-mini-grid,
  .product-detail-sections {
    grid-template-columns: 1fr;
  }

  body[data-page="store"] .product-grid,
  .product-gallery-thumbs {
    grid-template-columns: 1fr;
  }

  .product-photo-stage {
    min-height: 260px;
  }

  .product-photo {
    height: 250px;
  }

  .product-gallery-main {
    min-height: 300px;
  }

  .product-gallery-main img {
    height: 280px;
  }

  .product-gallery-thumbs {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }

  .product-gallery-thumbs button {
    height: 58px;
  }

  .product-gallery-thumbs img {
    height: 48px;
  }

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

/* Premium store refresh */
:root {
  --premium-bg: #f5f6f7;
  --premium-surface: rgba(255, 255, 255, 0.9);
  --premium-ink: #111315;
  --premium-muted: #687078;
  --premium-line: rgba(17, 19, 21, 0.1);
  --premium-soft: #eef2f2;
  --premium-shadow: 0 28px 80px rgba(17, 19, 21, 0.12);
  --premium-shadow-soft: 0 16px 44px rgba(17, 19, 21, 0.08);
}

body {
  background:
    linear-gradient(180deg, #ffffff 0, var(--premium-bg) 420px),
    var(--premium-bg);
}

main {
  isolation: isolate;
}

.site-header {
  min-height: 68px;
  padding: 0.7rem clamp(1rem, 4vw, 3.25rem);
  border-bottom: 1px solid rgba(17, 19, 21, 0.08);
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.7) inset;
  backdrop-filter: blur(24px) saturate(1.4);
}

.brand img {
  width: clamp(128px, 15vw, 188px);
  height: 38px;
}

.site-nav.visual-nav {
  gap: 0.15rem;
  padding: 0.24rem;
  border: 1px solid rgba(17, 19, 21, 0.08);
  border-radius: 999px;
  background: rgba(245, 246, 247, 0.78);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.75);
}

.site-nav.visual-nav a,
.site-nav.visual-nav a[href="./dashboard.html"] {
  width: auto;
  min-height: 34px;
  padding: 0 0.86rem;
  border: 0;
  border-radius: 999px;
  color: rgba(17, 19, 21, 0.64);
  font-size: 0.86rem;
  font-weight: 760;
  transition:
    color 180ms ease,
    background 180ms ease,
    box-shadow 180ms ease,
    transform 180ms ease;
}

.site-nav.visual-nav a img {
  display: none;
}

.site-nav.visual-nav a .sr-only {
  position: static;
  width: auto;
  height: auto;
  padding: 0;
  overflow: visible;
  clip: auto;
  white-space: nowrap;
}

.site-nav.visual-nav a.active,
.site-nav.visual-nav a:hover,
.site-nav.visual-nav a[href="./dashboard.html"].active,
.site-nav.visual-nav a[href="./dashboard.html"]:hover {
  background: #111315;
  color: #fff;
  box-shadow: 0 10px 24px rgba(17, 19, 21, 0.12);
}

.cart-button {
  min-width: 58px;
  height: 38px;
  border-color: rgba(17, 19, 21, 0.1);
  background: #111315;
  color: #fff;
  box-shadow: 0 14px 28px rgba(17, 19, 21, 0.14);
}

.button {
  min-height: 42px;
  border-radius: 999px;
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    background 180ms ease,
    border-color 180ms ease;
}

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

.button.primary {
  background: #111315;
  box-shadow: 0 18px 34px rgba(17, 19, 21, 0.14);
}

.button.secondary {
  background: rgba(255, 255, 255, 0.74);
  border-color: rgba(17, 19, 21, 0.12);
  color: var(--premium-ink);
}

.homepage-hero {
  display: grid;
  grid-template-columns: minmax(0, 0.86fr) minmax(0, 1.14fr);
  align-items: center;
  gap: clamp(1.5rem, 4vw, 4rem);
  min-height: calc(100svh - 86px);
  padding-top: clamp(1.5rem, 5vh, 4rem);
  padding-bottom: clamp(2rem, 6vh, 5rem);
}

.homepage-hero-copy {
  gap: 1.25rem;
  max-width: 660px;
}

.eyebrow {
  color: rgba(17, 19, 21, 0.55);
  letter-spacing: 0.07em;
}

.homepage-hero-copy h1,
.store-hero h1 {
  max-width: 13ch;
  margin: 0;
  color: var(--premium-ink);
  font-size: 4.8rem;
  line-height: 0.96;
  font-weight: 860;
}

.homepage-hero-copy > p:not(.eyebrow),
.store-hero p:not(.eyebrow) {
  max-width: 38rem;
  color: rgba(17, 19, 21, 0.64);
  font-size: 1.08rem;
  line-height: 1.62;
}

.hero-proof-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.65rem;
  max-width: 560px;
}

.hero-proof-grid div {
  min-height: 84px;
  border: 1px solid rgba(17, 19, 21, 0.08);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: var(--premium-shadow-soft);
}

.premium-showcase {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 0.78fr) minmax(180px, 0.42fr);
  gap: 1rem;
  min-height: 540px;
  overflow: visible;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.showcase-main-product,
.showcase-side-products img {
  position: relative;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 1px solid rgba(17, 19, 21, 0.08);
  border-radius: 8px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.98), rgba(234, 239, 239, 0.88)),
    #fff;
  box-shadow: var(--premium-shadow);
}

.showcase-main-product {
  min-height: 540px;
  padding: 2rem;
  animation: floatIn 700ms ease both;
}

.showcase-main-product img {
  width: 100%;
  height: 500px;
  min-height: 0;
  object-fit: contain;
  filter: drop-shadow(0 34px 42px rgba(17, 19, 21, 0.24));
  animation: productDrift 5s ease-in-out infinite;
}

.showcase-side-products {
  display: grid;
  gap: 1rem;
}

.showcase-side-products img {
  width: 100%;
  height: 262px;
  min-height: 0;
  padding: 1.1rem;
  object-fit: contain;
  filter: drop-shadow(0 24px 32px rgba(17, 19, 21, 0.18));
  animation: floatIn 800ms ease both;
}

.showcase-side-products img:nth-child(2) {
  animation-delay: 110ms;
}

.vape-trust-panel {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  overflow: hidden;
  border: 1px solid rgba(17, 19, 21, 0.08);
  border-radius: 8px;
  background: #111315;
  box-shadow: var(--premium-shadow);
}

.vape-trust-panel div {
  min-height: 132px;
  border-right: 1px solid rgba(255, 255, 255, 0.1);
  background: transparent;
}

.vape-trust-panel div:last-child {
  border-right: 0;
}

.vape-trust-panel span {
  color: rgba(255, 255, 255, 0.56);
}

.vape-trust-panel strong {
  color: #fff;
  font-size: 1rem;
  line-height: 1.45;
}

.home-choice-panel,
.featured-home,
.home-invest-band {
  border: 0;
  background: transparent;
  box-shadow: none;
}

.home-section-heading h2 {
  max-width: 12ch;
  font-size: 3.25rem;
  line-height: 1;
}

.home-section-heading p:not(.eyebrow) {
  max-width: 42rem;
}

.home-choice-grid,
.featured-grid {
  gap: 0.9rem;
}

.home-choice-card,
.featured-card {
  border-color: rgba(17, 19, 21, 0.08);
  background: rgba(255, 255, 255, 0.82);
  box-shadow: var(--premium-shadow-soft);
}

.home-choice-card {
  min-height: 220px;
  padding: 1.2rem;
}

.home-choice-card h3,
.featured-card h3 {
  font-size: 1.35rem;
  line-height: 1.1;
}

.home-choice-card:hover,
.featured-card:hover {
  transform: translateY(-4px);
  border-color: rgba(17, 19, 21, 0.16);
  box-shadow: 0 28px 70px rgba(17, 19, 21, 0.14);
}

.product-mini-art {
  min-height: 248px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.98), rgba(234, 239, 239, 0.88)),
    #fff;
}

.product-mini-art img {
  height: 220px;
}

.home-process {
  overflow: hidden;
  border-radius: 8px;
  background: #111315;
  box-shadow: var(--premium-shadow);
}

.store-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 1.5rem;
  width: min(1440px, calc(100% - 2rem));
  margin: 0 auto;
  padding: clamp(3.5rem, 8vh, 6rem) 0 1.5rem;
}

.store-hero h1 {
  max-width: 15ch;
  font-size: 4.15rem;
}

.store-hero-points {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.55rem;
  max-width: 440px;
}

.store-hero-points span {
  min-height: 34px;
  padding: 0.45rem 0.72rem;
  border: 1px solid rgba(17, 19, 21, 0.08);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.76);
  color: rgba(17, 19, 21, 0.66);
  font-size: 0.86rem;
  font-weight: 760;
  box-shadow: 0 10px 28px rgba(17, 19, 21, 0.05);
}

.store-catalog {
  gap: 1.1rem;
  padding-top: 0;
  width: min(1440px, calc(100% - 2rem));
}

@media (max-width: 760px) {
  .store-filter-bar {
    position: sticky;
    top: 84px;
    z-index: 8;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.65rem;
    border: 1px solid rgba(17, 19, 21, 0.08);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.78);
    box-shadow: 0 18px 44px rgba(17, 19, 21, 0.08);
    backdrop-filter: blur(20px) saturate(1.2);
  }
}

.store-filter-bar .panel-label {
  display: none;
}

.store-filter-bar .vertical-filters {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(80px, 1fr));
  gap: 8px;
  width: 100%;
}

.filter-chip {
  height: 64px;
  display: grid;
  place-items: center;
  padding: 10px;
  border: 1px solid rgba(17, 19, 21, 0.08);
  border-radius: 12px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(247, 248, 250, 0.9));
  color: rgba(17, 19, 21, 0.66);
  font-size: 0.72rem;
  font-weight: 850;
  letter-spacing: 0.04em;
  text-align: center;
  line-height: 1.25;
  box-shadow: 0 10px 24px rgba(20, 27, 34, 0.07);
  transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease, background 0.28s ease, color 0.28s ease;
}

.filter-chip:hover {
  border-color: rgba(17, 20, 23, 0.28);
  background: #fff;
  box-shadow: 0 18px 44px rgba(20, 27, 34, 0.13);
  transform: translateY(-4px);
}

.filter-chip.active {
  border-color: rgba(6, 184, 148, 0.88);
  background: linear-gradient(135deg, #0f1923, #1a3a3a);
  color: #fff;
  box-shadow: 0 18px 44px rgba(17, 20, 23, 0.22), 0 0 0 2px rgba(6, 184, 148, 0.22) inset;
  transform: translateY(-4px);
}

body[data-page="store"] .product-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.product-card {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(17, 19, 21, 0.08);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 18px 54px rgba(17, 19, 21, 0.08);
  animation: cardRise 520ms ease both;
}

.product-card:nth-child(2) {
  animation-delay: 70ms;
}

.product-card:nth-child(3) {
  animation-delay: 140ms;
}

.product-card::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(120deg, transparent 0 38%, rgba(255, 255, 255, 0.58) 49%, transparent 60% 100%);
  opacity: 0;
  transform: translateX(-55%);
  transition: opacity 180ms ease, transform 680ms ease;
}

.product-card:hover,
.product-card:focus-visible {
  transform: translateY(-6px);
  border-color: rgba(17, 19, 21, 0.16);
  box-shadow: 0 34px 86px rgba(17, 19, 21, 0.16);
}

.product-card:hover::after,
.product-card:focus-visible::after {
  opacity: 1;
  transform: translateX(55%);
}

.product-photo-stage {
  min-height: 260px;
  padding: 1.25rem 1.25rem 0.75rem;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.98), rgba(234, 239, 239, 0.9)),
    #fff;
}

.product-photo {
  height: 228px;
  transition: transform 520ms ease, filter 520ms ease;
  filter: drop-shadow(0 26px 34px rgba(17, 19, 21, 0.2));
}

.product-card:hover .product-photo {
  transform: translateY(-6px) scale(1.03);
  filter: drop-shadow(0 34px 40px rgba(17, 19, 21, 0.24));
}

.product-body {
  display: grid;
  gap: 0.85rem;
  padding: 1rem;
}

.product-meta {
  display: grid;
  gap: 0.42rem;
}

.product-meta .tag {
  justify-self: start;
  border: 1px solid rgba(17, 19, 21, 0.08);
  background: #f4f6f6;
  color: rgba(17, 19, 21, 0.58);
}

.product-meta h3 {
  margin: 0;
  min-height: 3.2rem;
  color: var(--premium-ink);
  font-size: 1.32rem;
  line-height: 1.18;
  font-weight: 820;
}

.product-payment-options {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.5rem;
}

.payment-option {
  display: grid;
  align-content: start;
  min-height: 78px;
  gap: 0.22rem;
  padding: 0.75rem;
  border: 1px solid rgba(17, 19, 21, 0.08);
  border-radius: 8px;
  background: rgba(245, 246, 247, 0.72);
}

.payment-option span {
  color: rgba(17, 19, 21, 0.52);
  font-size: 0.78rem;
  font-weight: 820;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.payment-option strong {
  color: var(--premium-ink);
  font-size: 1.02rem;
  white-space: nowrap;
}

.payment-option small {
  color: rgba(17, 19, 21, 0.5);
}

.product-card-footer {
  min-height: 42px;
  border-top: 1px solid rgba(17, 19, 21, 0.08);
  color: var(--premium-ink);
  font-size: 0.9rem;
  font-weight: 820;
}

.product-card-footer span::after {
  content: " ->";
}

.product-modal {
  backdrop-filter: blur(0);
}

.product-modal.is-open {
  backdrop-filter: blur(8px);
}

.product-modal-backdrop {
  background: rgba(17, 19, 21, 0);
}

.product-modal.is-open .product-modal-backdrop {
  background: rgba(17, 19, 21, 0.58);
}

.product-modal-panel {
  width: min(1180px, calc(100% - 2rem));
  max-height: min(88vh, 920px);
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 34px 120px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(22px) saturate(1.1);
  transition: opacity 220ms ease, transform 220ms ease;
}

.product-modal.is-open .product-modal-panel {
  transform: translateY(0) scale(1);
}

.product-modal-header {
  position: sticky;
  top: 0;
  z-index: 2;
  padding: 1.1rem 1.1rem 0.8rem;
  border-bottom: 1px solid rgba(17, 19, 21, 0.08);
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(18px);
}

.product-modal-header h2 {
  max-width: 720px;
  font-size: 2rem;
  line-height: 1.08;
}

.product-modal-grid {
  gap: 1rem;
  padding: 1rem;
}

.product-gallery-main {
  min-height: 430px;
  border-color: rgba(17, 19, 21, 0.08);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.98), rgba(234, 239, 239, 0.9)),
    #fff;
}

.product-gallery-main img {
  height: 392px;
}

.product-gallery-thumbs button {
  border-color: rgba(17, 19, 21, 0.1);
  background: #fff;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.product-gallery-thumbs button:hover,
.product-gallery-thumbs button.active {
  transform: translateY(-1px);
  border-color: #111315;
  background: #f4f6f6;
}

.modal-price-grid div,
.modal-summary,
.product-detail-block {
  border-color: rgba(17, 19, 21, 0.08);
  background: rgba(245, 246, 247, 0.72);
}

.product-modal-details > p {
  color: rgba(17, 19, 21, 0.66);
  font-size: 1rem;
  line-height: 1.6;
}

.modal-form {
  gap: 0.7rem;
}

label {
  color: rgba(17, 19, 21, 0.58);
  font-size: 0.78rem;
  font-weight: 820;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

input,
select {
  min-height: 44px;
  border: 1px solid rgba(17, 19, 21, 0.12);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.84);
  color: var(--premium-ink);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.74);
  transition: border-color 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

select {
  appearance: none;
  padding-right: 2.4rem;
  background-image:
    linear-gradient(45deg, transparent 50%, rgba(17, 19, 21, 0.62) 50%),
    linear-gradient(135deg, rgba(17, 19, 21, 0.62) 50%, transparent 50%);
  background-position:
    calc(100% - 1.15rem) 52%,
    calc(100% - 0.82rem) 52%;
  background-size: 0.36rem 0.36rem, 0.36rem 0.36rem;
  background-repeat: no-repeat;
}

input:focus,
select:focus {
  outline: 0;
  border-color: rgba(17, 19, 21, 0.34);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(17, 19, 21, 0.06);
}

.cart-panel {
  border-left: 1px solid rgba(255, 255, 255, 0.72);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: -24px 0 84px rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(22px) saturate(1.1);
}

@keyframes cardRise {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes floatIn {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes productDrift {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-8px);
  }
}

@media (max-width: 1180px) {
  .homepage-hero-copy h1,
  .store-hero h1 {
    font-size: 3.55rem;
  }

  body[data-page="store"] .product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 1040px) {
  .site-header {
    grid-template-columns: auto auto;
  }

  .site-nav.visual-nav {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    border-radius: 18px;
  }

  .site-nav.visual-nav a,
  .site-nav.visual-nav a[href="./dashboard.html"] {
    justify-content: center;
  }

  .homepage-hero {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .premium-showcase {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .showcase-main-product {
    min-height: 430px;
  }

  .showcase-main-product img {
    height: 390px;
  }

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

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

  .store-hero-points {
    justify-content: flex-start;
  }
}

@media (max-width: 720px) {
  .site-header {
    gap: 0.65rem;
    padding-inline: 0.8rem;
  }

  .brand img {
    width: 134px;
  }

  .site-nav.visual-nav {
    gap: 0.12rem;
    padding: 0.22rem;
  }

  .site-nav.visual-nav a,
  .site-nav.visual-nav a[href="./dashboard.html"] {
    min-height: 38px;
    padding: 0 0.42rem;
    font-size: 0.78rem;
  }

  .homepage-hero-copy h1,
  .store-hero h1 {
    max-width: none;
    font-size: 2.6rem;
  }

  .homepage-hero-copy > p:not(.eyebrow),
  .store-hero p:not(.eyebrow) {
    font-size: 1rem;
  }

  .hero-proof-grid,
  .vape-trust-panel,
  .home-choice-grid,
  .featured-grid,
  body[data-page="store"] .product-grid {
    grid-template-columns: 1fr;
  }

  .vape-trust-panel div {
    border-right: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }

  .vape-trust-panel div:last-child {
    border-bottom: 0;
  }

  .showcase-side-products {
    grid-template-columns: 1fr;
  }

  .showcase-main-product,
  .showcase-side-products img {
    min-height: 0;
    height: 300px;
  }

  .showcase-main-product img,
  .showcase-side-products img {
    height: 260px;
  }

  .home-section-heading h2 {
    max-width: none;
    font-size: 2.1rem;
  }

  .store-filter-bar {
    position: static;
    display: grid;
    border-radius: 8px;
  }

  .store-filter-bar .vertical-filters {
    justify-content: start;
  }

  .product-photo-stage {
    min-height: 245px;
  }

  .product-photo {
    height: 220px;
  }

  .product-payment-options {
    grid-template-columns: 1fr;
  }

  .product-meta h3 {
    min-height: 0;
  }

  .product-modal-panel {
    width: 100%;
    max-height: 100svh;
    border-radius: 0;
  }

  .product-modal-grid {
    padding: 0.75rem;
  }

  .product-gallery-main {
    min-height: 300px;
  }

  .product-gallery-main img {
    height: 270px;
  }
}

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

/* Premium icon-tab correction */
.site-header {
  min-height: 82px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(255, 255, 255, 0.78)),
    rgba(255, 255, 255, 0.78);
}

.site-nav.visual-nav {
  gap: 0.42rem;
  padding: 0.38rem;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.7);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.88),
    0 18px 44px rgba(17, 19, 21, 0.08);
}

.site-nav.visual-nav a,
.site-nav.visual-nav a[href="./dashboard.html"] {
  position: relative;
  display: grid;
  place-items: center;
  width: 74px;
  min-height: 56px;
  padding: 0.22rem 0.34rem;
  border: 1px solid transparent;
  border-radius: 12px;
  background: transparent;
  color: inherit;
}

.site-nav.visual-nav a img {
  display: block;
  width: 100%;
  height: 46px;
  object-fit: contain;
  filter:
    drop-shadow(0 8px 14px rgba(17, 19, 21, 0.12))
    saturate(1.08);
  transition:
    transform 180ms ease,
    filter 180ms ease;
}

.site-nav.visual-nav a .sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.site-nav.visual-nav a.active,
.site-nav.visual-nav a:hover,
.site-nav.visual-nav a[href="./dashboard.html"].active,
.site-nav.visual-nav a[href="./dashboard.html"]:hover {
  background:
    radial-gradient(circle at 50% 0, rgba(8, 201, 155, 0.2), transparent 70%),
    rgba(8, 201, 155, 0.08);
  border-color: rgba(8, 201, 155, 0.34);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.86),
    0 16px 34px rgba(8, 201, 155, 0.14);
}

.site-nav.visual-nav a:hover img,
.site-nav.visual-nav a.active img {
  transform: translateY(-2px) scale(1.04);
  filter:
    drop-shadow(0 12px 18px rgba(17, 19, 21, 0.15))
    saturate(1.16);
}

.store-hero {
  padding-top: clamp(2.6rem, 7vh, 5rem);
  padding-bottom: 1rem;
}

.store-banner {
  display: block;
  width: min(1200px, calc(100% - 2rem));
  max-width: 100%;
  height: auto;
  max-height: clamp(200px, 32vh, 380px);
  object-fit: contain;
  object-position: center;
  margin: clamp(1rem, 3vh, 2rem) auto clamp(1rem, 2.5vh, 1.5rem);
  border-radius: 0;
  box-shadow: none;
}

.store-hero h1 {
  max-width: 11ch;
  font-size: clamp(3rem, 6.2vw, 5.7rem);
  letter-spacing: 0;
}

.store-hero-points span {
  background: rgba(255, 255, 255, 0.84);
}

.store-catalog {
  gap: 0.9rem;
}

.product-card {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(248, 250, 250, 0.92)),
    #fff;
}

.product-photo-stage {
  min-height: 236px;
  padding: 0.95rem 1rem 0.25rem;
}

.product-photo {
  height: 212px;
}

.product-body {
  gap: 0.7rem;
  padding: 0.85rem;
}

.product-meta h3 {
  min-height: 2.85rem;
  font-size: 1.2rem;
}

.product-payment-options {
  gap: 0.42rem;
}

.payment-option {
  min-height: 68px;
  padding: 0.62rem;
}

.payment-option strong {
  font-size: 0.98rem;
}

.payment-option small {
  font-size: 0.74rem;
}

.product-card-footer {
  min-height: 38px;
}

.featured-price {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  margin: 0.2rem 1rem 0;
  padding: 0 0.62rem;
  border: 1px solid rgba(17, 19, 21, 0.08);
  border-radius: 999px;
  background: rgba(17, 19, 21, 0.04);
  color: var(--premium-ink);
  font-size: 0.88rem;
  font-weight: 860;
}

.featured-card p {
  padding-top: 0.45rem;
}

@media (max-width: 1040px) {
  .site-nav.visual-nav a,
  .site-nav.visual-nav a[href="./dashboard.html"] {
    width: auto;
  }
}

@media (max-width: 720px) {
  .site-header {
    min-height: 118px;
  }

  .site-nav.visual-nav {
    gap: 0.28rem;
    border-radius: 14px;
  }

  .site-nav.visual-nav a,
  .site-nav.visual-nav a[href="./dashboard.html"] {
    min-height: 50px;
    padding: 0.16rem 0.22rem;
    border-radius: 10px;
  }

  .site-nav.visual-nav a img {
    height: 42px;
  }

  .store-hero h1 {
    max-width: none;
  }

  .product-photo-stage {
    min-height: 234px;
  }

  .product-photo {
    height: 214px;
  }
}

/* Light investor page + expanded product range */
.featured-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.featured-card {
  min-width: 0;
}

.featured-card h3 {
  font-size: 1.12rem;
}

.featured-card p {
  font-size: 0.9rem;
}

.product-mini-art {
  min-height: 210px;
}

.product-mini-art img {
  height: 188px;
}

body[data-page="invest"] {
  color: var(--premium-ink);
  background:
    linear-gradient(180deg, #ffffff 0, var(--premium-bg) 420px),
    var(--premium-bg);
}

/* Coming soon overlay — investment not open yet */
body[data-page="invest"] main.capital-desk-page { position: relative; }

.invest-soon-veil {
  position: absolute;
  inset: 0;
  z-index: 50;
  pointer-events: none;
  background:
    radial-gradient(120% 80% at 50% 0%, rgba(255, 255, 255, 0.58), rgba(255, 255, 255, 0.30) 46%, rgba(244, 246, 245, 0.20) 100%),
    linear-gradient(180deg, rgba(244, 246, 245, 0.32), rgba(244, 246, 245, 0.12));
  backdrop-filter: blur(7px) saturate(1.04);
  -webkit-backdrop-filter: blur(7px) saturate(1.04);
}

.invest-soon-overlay {
  position: fixed;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  z-index: 60;
  width: min(620px, 92vw);
  overflow: hidden;
  text-align: center;
  border-radius: 26px;
  border: 1px solid rgba(215, 189, 121, 0.25);
  background:
    radial-gradient(120% 120% at 50% -10%, rgba(8, 201, 155, 0.20), transparent 58%),
    linear-gradient(135deg, rgba(17, 19, 21, 0.72), rgba(15, 23, 28, 0.55) 42%, rgba(184, 149, 74, 0.20));
  backdrop-filter: blur(10px) saturate(1.1);
  -webkit-backdrop-filter: blur(10px) saturate(1.1);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45);
  pointer-events: none;
  animation: investSoonFloat 6s ease-in-out infinite;
}

@keyframes investSoonFloat {
  from { transform: translate(-50%, -50%) translateY(-6px); }
  to { transform: translate(-50%, -50%) translateY(6px); }
}

.invest-soon-glow {
  position: absolute;
  inset: -20%;
  background:
    radial-gradient(40% 38% at 50% 46%, rgba(215, 189, 121, 0.30), transparent 70%),
    radial-gradient(46% 44% at 50% 56%, rgba(8, 201, 155, 0.16), transparent 72%);
  filter: blur(10px);
  animation: investSoonDrift 9s ease-in-out infinite alternate;
}

@keyframes investSoonDrift {
  from { transform: translate3d(-3%, -2%, 0) scale(1); }
  to { transform: translate3d(3%, 2%, 0) scale(1.08); }
}

.invest-soon-inner {
  position: relative;
  z-index: 1;
  padding: 2.4rem 1.6rem;
  max-width: 100%;
}

.invest-soon-eyebrow {
  margin: 0 0 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.34em;
  font-size: 0.72rem;
  font-weight: 800;
  color: rgba(215, 189, 121, 0.92);
}

.invest-soon-title {
  margin: 0;
  font-size: clamp(2.2rem, 7vw, 4.6rem);
  font-weight: 900;
  letter-spacing: -0.02em;
  line-height: 1.06;
  padding-bottom: 0.1em;
  background: linear-gradient(180deg, #ffffff 0%, #f3ead0 55%, #d7bd79 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: 0 24px 70px rgba(0, 0, 0, 0.45);
}

.invest-soon-date {
  margin: 1.1rem 0 0;
  font-size: clamp(1rem, 2.6vw, 1.45rem);
  letter-spacing: 0.04em;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.84);
}

body[data-page="invest"] .site-header,
body[data-page="invest"] .site-footer {
  background: rgba(255, 255, 255, 0.88);
  border-color: rgba(17, 19, 21, 0.08);
  color: var(--premium-ink);
}

body[data-page="invest"] .site-nav {
  background: rgba(255, 255, 255, 0.78);
  border-color: rgba(17, 19, 21, 0.08);
}

body[data-page="invest"] .brand,
body[data-page="invest"] .site-footer,
body[data-page="invest"] .cart-button {
  color: var(--premium-ink);
}

body[data-page="invest"] .cart-button {
  background: #fff;
  border-color: rgba(17, 19, 21, 0.1);
}

body[data-page="invest"] .page-title p,
body[data-page="invest"] .section-kicker p:not(.eyebrow),
body[data-page="invest"] .simple-help,
body[data-page="invest"] .range-labels,
body[data-page="invest"] .projection-bars span,
body[data-page="invest"] .leaderboard-row span,
body[data-page="invest"] .leader-status,
body[data-page="invest"] .risk-panel p,
body[data-page="invest"] .investor-how p {
  color: var(--premium-muted);
}

body[data-page="invest"] .button.primary {
  background: #111315;
  color: #fff;
}

body[data-page="invest"] .button.secondary {
  background: rgba(255, 255, 255, 0.84);
  border-color: rgba(17, 19, 21, 0.12);
  color: var(--premium-ink);
}

body[data-page="invest"] .investor-light-panel,
body[data-page="invest"] .projection-panel,
body[data-page="invest"] .leaderboard-section,
body[data-page="invest"] .risk-panel,
body[data-page="invest"] .investor-how article {
  border: 1px solid rgba(17, 19, 21, 0.08);
  background: rgba(255, 255, 255, 0.9);
  color: var(--premium-ink);
  box-shadow: var(--premium-shadow-soft);
}

body[data-page="invest"] .small-investor-strip {
  border: 1px solid rgba(17, 19, 21, 0.08);
  background: rgba(17, 19, 21, 0.08);
  box-shadow: var(--premium-shadow-soft);
}

body[data-page="invest"] .small-investor-strip div {
  background: rgba(255, 255, 255, 0.92);
}

body[data-page="invest"] .small-investor-strip strong,
body[data-page="invest"] .leaderboard-row strong,
body[data-page="invest"] .projection-main strong,
body[data-page="invest"] .projection-mini-grid strong,
body[data-page="invest"] .range-labels strong {
  color: var(--premium-ink);
}

body[data-page="invest"] .small-investor-strip span,
body[data-page="invest"] label span,
body[data-page="invest"] .term-card span,
body[data-page="invest"] .term-card em,
body[data-page="invest"] .term-card small {
  color: var(--premium-muted);
}

body[data-page="invest"] .term-card {
  border-color: rgba(17, 19, 21, 0.08);
  background: rgba(255, 255, 255, 0.84);
  box-shadow: none;
}

body[data-page="invest"] .term-card strong {
  color: var(--premium-ink);
}

body[data-page="invest"] .term-card.selected,
body[data-page="invest"] .term-card:has(input:checked),
body[data-page="invest"] .term-card:hover {
  border-color: rgba(8, 201, 155, 0.5);
  background: #effdf7;
  box-shadow: 0 18px 36px rgba(17, 19, 21, 0.08);
}

body[data-page="invest"] .term-card.featured::after {
  background: rgba(8, 201, 155, 0.14);
  color: var(--teal-dark);
}

body[data-page="invest"] .projection-main {
  border-color: rgba(17, 19, 21, 0.08);
  background: #f8fbfa;
}

body[data-page="invest"] .projection-main span,
body[data-page="invest"] .projection-main small,
body[data-page="invest"] .projection-mini-grid span {
  color: var(--premium-muted);
}

body[data-page="invest"] .projection-mini-grid div,
body[data-page="invest"] .leaderboard-row {
  border-color: rgba(17, 19, 21, 0.08);
  background: #fff;
}

body[data-page="invest"] .bar {
  background: rgba(17, 19, 21, 0.1);
}

body[data-page="invest"] .leader-rank,
body[data-page="invest"] .mini-code {
  background: #dff9f1;
  color: var(--teal-dark);
}

@media (max-width: 1180px) {
  .featured-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .featured-grid {
    grid-template-columns: 1fr;
  }

  .product-mini-art img {
    height: 210px;
  }
}

/* Homepage video hero */
body[data-page="home"] .homepage-hero {
  position: relative;
  isolation: isolate;
  width: 100%;
  max-width: none;
  min-height: min(780px, calc(100svh - 78px));
  margin-inline: 0;
  padding:
    clamp(3.2rem, 8vh, 6.2rem)
    max(1rem, calc((100% - 1240px) / 2))
    clamp(2.6rem, 7vh, 5rem);
  overflow: hidden;
  grid-template-columns: minmax(0, 0.92fr) minmax(320px, 0.72fr);
}

body[data-page="home"] .hero-video-layer {
  position: absolute;
  inset: 0;
  z-index: -2;
  background: #0b1013;
}

body[data-page="home"] .hero-video-layer::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(6, 10, 13, 0.88) 0%, rgba(6, 10, 13, 0.62) 42%, rgba(6, 10, 13, 0.18) 100%),
    linear-gradient(180deg, rgba(6, 10, 13, 0.28), rgba(6, 10, 13, 0.64));
  pointer-events: none;
}

body[data-page="home"] .homepage-hero-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

body[data-page="home"] .homepage-hero-copy {
  position: relative;
  z-index: 1;
  max-width: 680px;
  color: #fff;
}

body[data-page="home"] .homepage-hero-copy h1 {
  color: #fff;
  text-wrap: balance;
}

body[data-page="home"] .homepage-hero-copy .eyebrow {
  color: rgba(255, 255, 255, 0.76);
}

body[data-page="home"] .homepage-hero-copy > p:not(.eyebrow) {
  color: rgba(255, 255, 255, 0.78);
}

body[data-page="home"] .homepage-hero-copy .button.primary {
  background: #08c99b;
  color: #07100d;
}

body[data-page="home"] .homepage-hero-copy .button.secondary {
  background: rgba(255, 255, 255, 0.13);
  border-color: rgba(255, 255, 255, 0.25);
  color: #fff;
  backdrop-filter: blur(18px);
}

body[data-page="home"] .hero-proof-grid div {
  border-color: rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.12);
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.18);
  backdrop-filter: blur(18px);
}

body[data-page="home"] .hero-proof-grid strong {
  color: #fff;
}

body[data-page="home"] .hero-proof-grid span {
  color: rgba(255, 255, 255, 0.74);
}

body[data-page="home"] .premium-showcase {
  position: relative;
  z-index: 1;
  background: rgba(255, 255, 255, 0.13);
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.22);
  backdrop-filter: blur(20px);
}

@media (max-width: 980px) {
  body[data-page="home"] .homepage-hero {
    grid-template-columns: 1fr;
    min-height: min(760px, calc(100svh - 72px));
  }

  body[data-page="home"] .premium-showcase {
    display: none;
  }
}

@media (max-width: 760px) {
  body[data-page="home"] .homepage-hero {
    width: 100%;
    min-height: min(720px, calc(100svh - 64px));
    padding: 2.4rem 1rem 2rem;
  }

  body[data-page="home"] .hero-video-layer::after {
    background:
      linear-gradient(180deg, rgba(6, 10, 13, 0.78), rgba(6, 10, 13, 0.72)),
      linear-gradient(90deg, rgba(6, 10, 13, 0.78), rgba(6, 10, 13, 0.34));
  }

body[data-page="home"] .homepage-hero-copy {
    align-self: end;
  }
}

/* Focused home, private investor, and simplified account UX */
body[data-page="home"] .hero-video-layer::after {
  background:
    linear-gradient(90deg, rgba(6, 10, 13, 0.54) 0%, rgba(6, 10, 13, 0.34) 44%, rgba(6, 10, 13, 0.08) 100%),
    linear-gradient(180deg, rgba(6, 10, 13, 0.08), rgba(6, 10, 13, 0.34));
}

body[data-page="home"] .clean-home-hero {
  min-height: min(780px, calc(100svh - 74px));
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
}

body[data-page="home"] .clean-home-hero .hero-video-layer { order: 2; }
body[data-page="home"] .clean-home-hero .homepage-hero-copy { order: 1; }

body[data-page="home"] .clean-home-hero .homepage-hero-copy {
  max-width: 720px;
  padding: clamp(1rem, 2vw, 1.4rem);
  border-left: 4px solid rgba(8, 201, 155, 0.92);
  background: linear-gradient(90deg, rgba(6, 10, 13, 0.42), rgba(6, 10, 13, 0));
}

body[data-page="home"] .clean-home-hero h1 {
  max-width: 11ch;
  text-shadow: 0 20px 48px rgba(0, 0, 0, 0.32);
}

.home-focus-panel {
  width: min(1240px, calc(100% - 2rem));
  margin: clamp(1.4rem, 4vw, 3.5rem) auto;
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) repeat(3, minmax(0, 0.75fr));
  gap: 1rem;
}

.home-focus-card {
  min-height: 270px;
  padding: clamp(1.1rem, 2vw, 1.6rem);
  border: 1px solid rgba(17, 19, 21, 0.08);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--premium-shadow-soft);
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.home-focus-card.primary {
  min-height: 340px;
  background:
    linear-gradient(135deg, rgba(8, 201, 155, 0.14), rgba(255, 255, 255, 0.96) 54%),
    #fff;
}

.home-focus-card h2,
.home-focus-card h3,
.investor-hero-private h1,
.account-hero-clean h1 {
  margin: 0;
  color: var(--premium-ink);
}

.home-focus-card h2 {
  max-width: 14ch;
  font-family: var(--font-cinematic);
  font-weight: 400;
  font-size: clamp(1.9rem, 3.6vw, 3.2rem);
  line-height: 0.98;
  letter-spacing: -0.01em;
  text-transform: uppercase;
}

.home-focus-card h3 {
  font-size: clamp(1.2rem, 2vw, 1.55rem);
}

.home-focus-media {
  order: -1;
  overflow: hidden;
  border-radius: 8px;
  border: 1px solid rgba(17, 19, 21, 0.08);
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.98), rgba(234, 239, 239, 0.9));
  aspect-ratio: 16 / 10;
}

.home-focus-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 520ms ease;
}

.home-focus-card:hover .home-focus-media img {
  transform: scale(1.04);
}

/* Image-only cards: the photo carries all the copy. We frame each screenshot like a
   premium product surface — a soft mat, a hairline inner border, and a refined lift on
   hover. The card sizes to its own image (align-self:start) so the row stays tidy. */
.home-focus-image-card {
  padding: 0 !important;
  gap: 0 !important;
  overflow: hidden;
  min-height: 0;
  align-self: start;
  background: linear-gradient(180deg, #ffffff, #f4f7f6);
  border: 1px solid rgba(17, 19, 21, 0.1);
  border-radius: 18px;
  box-shadow:
    0 18px 40px rgba(17, 19, 21, 0.1),
    0 2px 8px rgba(17, 19, 21, 0.05);
  transition: transform 460ms cubic-bezier(.2, .8, .2, 1),
              box-shadow 460ms ease,
              border-color 460ms ease;
}

.home-focus-image-card .home-focus-media {
  order: 0;
  display: block;
  border: 0;
  border-radius: 0;
  aspect-ratio: auto;
  /* The screenshot is the artwork; a faint inner mat keeps it from touching the edge. */
  background:
    linear-gradient(180deg, #ffffff, #eef3f1);
  padding: 14px;
  overflow: hidden;
}

.home-focus-image-card .home-focus-media img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 10px;
  border: 1px solid rgba(17, 19, 21, 0.08);
  object-fit: contain;
  box-shadow: 0 10px 26px rgba(17, 19, 21, 0.12);
  transition: transform 620ms cubic-bezier(.2, .8, .2, 1);
}

.home-focus-image-card:hover {
  transform: translateY(-6px);
  border-color: rgba(8, 201, 155, 0.4);
  box-shadow:
    0 34px 70px rgba(17, 19, 21, 0.16),
    0 8px 20px rgba(17, 19, 21, 0.08);
}

.home-focus-image-card:hover .home-focus-media img {
  transform: scale(1.025);
}

.home-focus-card p,
.investor-credential-card p,
.investor-term-overview p,
.account-hero-clean p,
.account-summary-grid small,
.private-account-card p {
  color: var(--premium-muted);
  line-height: 1.55;
}

.home-focus-card a:not(.button) {
  margin-top: auto;
  color: var(--teal-dark);
  font-weight: 850;
  text-decoration: none;
}

body[data-page="invest"] main,
body[data-page="dashboard"] main {
  width: min(1240px, calc(100% - 2rem));
  margin: 0 auto;
}

.investor-hero-private,
.account-hero-clean {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(300px, 0.85fr);
  gap: clamp(1rem, 4vw, 3rem);
  align-items: stretch;
  padding: clamp(2rem, 5vw, 4.5rem) 0 clamp(1rem, 3vw, 2rem);
}

.investor-hero-private > div,
.account-hero-clean > div {
  display: grid;
  align-content: center;
  gap: 1rem;
}

.investor-hero-private h1,
.account-hero-clean h1 {
  max-width: 12ch;
  font-family: var(--font-cinematic);
  font-weight: 400;
  font-size: clamp(2.6rem, 6vw, 5.3rem);
  line-height: 0.94;
  letter-spacing: -0.01em;
  text-transform: uppercase;
}

.investor-hero-private p,
.account-hero-clean p {
  max-width: 680px;
  margin: 0;
  font-size: 1.08rem;
}

.investor-credential-card,
.account-profile-card,
.account-summary-grid > article,
.private-account-card,
.private-action-panel,
.investor-term-overview article,
.investor-process-panel,
.institutional-risk-panel {
  border: 1px solid rgba(17, 19, 21, 0.08);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--premium-shadow-soft);
}

.investor-credential-card {
  padding: clamp(1.2rem, 2vw, 2rem);
  display: grid;
  align-content: end;
  gap: 0.8rem;
  background:
    linear-gradient(145deg, rgba(17, 19, 21, 0.96), rgba(23, 31, 35, 0.9)),
    #111315;
  color: #fff;
}

.investor-credential-card span,
.investor-term-overview span,
.account-summary-grid span,
.account-profile-card span {
  color: var(--premium-muted);
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.investor-credential-card span,
.investor-credential-card p {
  color: rgba(255, 255, 255, 0.68);
}

.investor-credential-card strong {
  font-size: clamp(1.5rem, 3vw, 2.35rem);
  line-height: 1.05;
}

.investor-term-overview,
.account-summary-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.9rem;
}

.investor-term-overview article,
.account-summary-grid > article {
  padding: 1.1rem;
  min-width: 0;
  display: grid;
  gap: 0.45rem;
}

.investor-term-overview strong,
.account-summary-grid strong {
  color: var(--premium-ink);
  font-size: clamp(1.4rem, 2.4vw, 2.05rem);
  line-height: 1.05;
}

.private-investor-console {
  margin-top: 1rem;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 0.85fr);
}

.compact-left {
  text-align: left;
  align-items: start;
}

.private-projection-card .projection-main {
  background: linear-gradient(145deg, #f5fffb, #fff);
}

.investor-process-panel,
.institutional-risk-panel {
  margin-top: 1rem;
  padding: clamp(1.1rem, 2vw, 1.6rem);
}

.investor-process-panel .section-kicker {
  margin-bottom: 1rem;
}

.institutional-risk-panel {
  background: #fffaf1;
}

.institutional-risk-panel h2 {
  margin-top: 0;
}

.account-main {
  display: grid;
  gap: 1rem;
}

.account-profile-card {
  padding: 1.2rem;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 1rem;
  align-items: center;
}

.account-profile-card .dashboard-button-art {
  width: 86px;
  height: 86px;
  grid-row: span 2;
}

.account-profile-card h2,
.account-profile-card p {
  margin: 0;
}

.account-profile-card > strong {
  grid-column: 1 / -1;
  padding: 0.8rem 0.9rem;
  border-radius: 8px;
  background: #effdf7;
  color: var(--teal-dark);
}

.account-summary-grid .account-total-card {
  grid-column: span 1;
  background:
    linear-gradient(135deg, rgba(8, 201, 155, 0.14), rgba(255, 255, 255, 0.98)),
    #fff;
}

.account-workspace,
.account-action-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 1rem;
}

.account-action-grid {
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.75fr) minmax(280px, 0.75fr);
}

.private-account-card,
.private-action-panel {
  padding: clamp(1.1rem, 2vw, 1.5rem);
}

.private-action-panel {
  display: grid;
  gap: 1rem;
}

.private-action-panel .button {
  width: fit-content;
}

body[data-page="dashboard"] .dashboard-metrics.compact {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

@media (max-width: 1120px) {
  .home-focus-panel,
  .investor-term-overview,
  .account-summary-grid,
  .account-action-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .home-focus-card.primary {
    grid-column: 1 / -1;
  }

  .private-investor-console,
  .account-workspace {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 820px) {
  body[data-page="home"] .clean-home-hero {
    grid-template-columns: 1fr;
  }

  body[data-page="home"] .hero-video-layer::after {
    background:
      linear-gradient(180deg, rgba(6, 10, 13, 0.38), rgba(6, 10, 13, 0.48)),
      linear-gradient(90deg, rgba(6, 10, 13, 0.48), rgba(6, 10, 13, 0.18));
  }

  .investor-hero-private,
  .account-hero-clean,
  .home-focus-panel,
  .investor-term-overview,
  .account-summary-grid,
  .account-action-grid {
    grid-template-columns: 1fr;
  }

  .home-focus-panel,
  body[data-page="invest"] main,
  body[data-page="dashboard"] main {
    width: min(100% - 1rem, 1240px);
  }

  .investor-hero-private h1,
  .account-hero-clean h1 {
    max-width: none;
    font-size: clamp(2.25rem, 12vw, 3.4rem);
  }
}

/* Investor page: compact institutional studio */
body[data-page="invest"] {
  background:
    radial-gradient(circle at 12% 8%, rgba(8, 201, 155, 0.12), transparent 22rem),
    linear-gradient(180deg, #ffffff 0, #f4f7f8 26rem, #f5f6f7 100%);
}

body[data-page="invest"] .investor-main-pro {
  width: min(1240px, calc(100% - 2rem));
  display: grid;
  gap: 0.9rem;
  padding: 1.15rem 0 2rem;
}

.investor-studio-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 420px;
  gap: 1rem;
  align-items: stretch;
}

.investor-hero-copy,
.investor-market-card,
.investment-control-suite,
.institutional-projection,
.investment-governance-card,
.institutional-info-strip article,
.institutional-risk-panel {
  border: 1px solid rgba(17, 19, 21, 0.08);
  border-radius: 8px;
  box-shadow: 0 24px 70px rgba(17, 19, 21, 0.08);
}

.investor-hero-copy {
  min-height: 360px;
  padding: 2rem;
  display: grid;
  align-content: center;
  gap: 0.9rem;
  background:
    linear-gradient(135deg, rgba(8, 201, 155, 0.12), rgba(255, 255, 255, 0.96) 48%),
    #fff;
}

.investor-hero-copy h1 {
  max-width: 13ch;
  margin: 0;
  color: var(--premium-ink);
  font-size: 3.8rem;
  line-height: 0.98;
}

.investor-hero-copy p:not(.eyebrow) {
  max-width: 46rem;
  margin: 0;
  color: var(--premium-muted);
  font-size: 1rem;
  line-height: 1.55;
}

.investor-market-card {
  position: relative;
  overflow: hidden;
  padding: 1.15rem;
  display: grid;
  align-content: space-between;
  gap: 0.8rem;
  background:
    linear-gradient(145deg, #101315, #192125 58%, #f7faf9 58.4%),
    #101315;
  color: #fff;
}

.investor-market-card::before {
  content: "";
  position: absolute;
  width: 16rem;
  height: 16rem;
  right: -7rem;
  top: -7rem;
  border-radius: 999px;
  background: rgba(8, 201, 155, 0.22);
  filter: blur(10px);
}

.market-card-topline {
  position: relative;
  display: grid;
  gap: 0.25rem;
}

.market-card-topline span,
.market-kpis span,
.range-command span,
.institutional-info-strip span {
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.78rem;
  font-weight: 850;
  text-transform: uppercase;
}

.market-card-topline strong {
  font-size: 2.6rem;
  line-height: 1;
}

.market-curve {
  position: relative;
  width: 100%;
  height: auto;
  margin: 0.4rem 0;
}

.market-curve .curve-grid {
  fill: none;
  stroke: rgba(255, 255, 255, 0.1);
  stroke-width: 1;
}

.market-curve .curve-line {
  fill: none;
  stroke: url(#curveGradient);
  stroke-width: 8;
  stroke-linecap: round;
  stroke-dasharray: 620;
  animation: drawCurve 1.35s ease both;
}

.market-curve circle {
  fill: #08c99b;
  filter: drop-shadow(0 0 10px rgba(8, 201, 155, 0.55));
}

@keyframes drawCurve {
  from {
    stroke-dashoffset: 620;
  }
  to {
    stroke-dashoffset: 0;
  }
}

.market-kpis {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.55rem;
}

.market-kpis div {
  padding: 0.7rem;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(16px);
}

.market-kpis strong {
  display: block;
  margin-top: 0.25rem;
  color: #fff;
  font-size: 1.4rem;
}

.investor-command-center {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(360px, 0.9fr) minmax(260px, 0.62fr);
  gap: 0.9rem;
  align-items: stretch;
}

.investment-control-suite,
.institutional-projection,
.investment-governance-card {
  padding: 1rem;
  background: rgba(255, 255, 255, 0.93);
}

.investment-control-suite {
  display: grid;
  gap: 0.8rem;
}

.investment-control-suite .section-kicker h2,
.investment-governance-card h2 {
  margin: 0;
  color: var(--premium-ink);
  font-size: 1.45rem;
  line-height: 1.08;
}

.investment-control-suite .section-kicker p:not(.eyebrow) {
  max-width: 34rem;
  color: var(--premium-muted);
  font-size: 0.9rem;
  line-height: 1.45;
}

.range-command {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 1rem;
  margin-top: 0.15rem;
}

.range-command span {
  color: var(--premium-muted);
}

.range-command strong {
  color: var(--premium-ink);
  font-size: 1.5rem;
}

.investment-control-suite .range-labels {
  display: flex;
  justify-content: space-between;
  margin-top: -0.35rem;
  color: var(--premium-muted);
  font-size: 0.8rem;
}

.invest-term-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.55rem;
}

body[data-page="invest"] .invest-term-grid .term-card {
  min-height: 0;
  padding: 0.8rem;
  border-radius: 8px;
  gap: 0.2rem;
}

body[data-page="invest"] .invest-term-grid .term-card strong {
  font-size: 1.55rem;
}

body[data-page="invest"] .invest-term-grid .term-card small {
  min-height: 0;
  font-size: 0.78rem;
}

.institutional-projection {
  display: grid;
  gap: 0.75rem;
}

body[data-page="invest"] .institutional-projection .projection-main {
  padding: 1rem;
  border-radius: 8px;
  background:
    radial-gradient(circle at 86% 10%, rgba(8, 201, 155, 0.2), transparent 10rem),
    #111315;
  color: #fff;
}

body[data-page="invest"] .institutional-projection .projection-main span,
body[data-page="invest"] .institutional-projection .projection-main small {
  color: rgba(255, 255, 255, 0.68);
}

body[data-page="invest"] .institutional-projection .projection-main strong {
  color: #fff;
  font-size: 2.25rem;
}

body[data-page="invest"] .institutional-projection .projection-mini-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.55rem;
}

body[data-page="invest"] .institutional-projection .projection-mini-grid div {
  padding: 0.75rem;
  border-radius: 8px;
}

.allocation-dashboard {
  display: grid;
  gap: 0.45rem;
}

.allocation-dashboard span {
  display: block;
  margin-bottom: 0.25rem;
  color: var(--premium-muted);
  font-size: 0.78rem;
  font-weight: 850;
}

.allocation-dashboard .bar {
  height: 8px;
}

.investment-governance-card {
  display: grid;
  align-content: start;
  gap: 0.7rem;
}

.investment-governance-card ul {
  display: grid;
  gap: 0.65rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.investment-governance-card li {
  position: relative;
  padding-left: 1.45rem;
  color: var(--premium-muted);
  line-height: 1.42;
}

.investment-governance-card li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.35rem;
  width: 0.65rem;
  height: 0.65rem;
  border-radius: 999px;
  background: #08c99b;
  box-shadow: 0 0 0 5px rgba(8, 201, 155, 0.12);
}

.institutional-info-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.75rem;
}

.institutional-info-strip article {
  padding: 0.9rem;
  background: rgba(255, 255, 255, 0.92);
}

.institutional-info-strip span {
  color: var(--teal-dark);
}

.institutional-info-strip strong {
  display: block;
  margin: 0.25rem 0;
  color: var(--premium-ink);
  font-size: 1.05rem;
}

.institutional-info-strip p {
  margin: 0;
  color: var(--premium-muted);
  font-size: 0.9rem;
  line-height: 1.35;
}

body[data-page="invest"] .institutional-risk-panel {
  margin-top: 0;
  padding: 1rem;
  background:
    linear-gradient(90deg, rgba(255, 250, 241, 0.96), rgba(255, 255, 255, 0.94)),
    #fffaf1;
}

body[data-page="invest"] .institutional-risk-panel h2 {
  margin: 0 0 0.35rem;
  font-size: 1.15rem;
}

body[data-page="invest"] .institutional-risk-panel p {
  max-width: none;
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.45;
}

@media (max-width: 1120px) {
  .investor-studio-hero,
  .investor-command-center {
    grid-template-columns: 1fr;
  }

  .investor-market-card {
    min-height: 310px;
  }
}

@media (max-width: 780px) {
  body[data-page="invest"] .investor-main-pro {
    width: min(100% - 1rem, 1240px);
    padding-top: 0.75rem;
  }

  .investor-hero-copy {
    min-height: 0;
    padding: 1.2rem;
  }

  .investor-hero-copy h1 {
    max-width: none;
    font-size: 2.35rem;
  }

  .invest-term-grid,
  body[data-page="invest"] .institutional-projection .projection-mini-grid,
  .institutional-info-strip {
    grid-template-columns: 1fr;
  }

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

/* Investor page: institutional polish pass */
body[data-page="invest"] {
  background:
    linear-gradient(180deg, rgba(248, 251, 250, 0.98) 0, rgba(244, 247, 247, 0.98) 34rem),
    repeating-linear-gradient(90deg, rgba(17, 19, 21, 0.025) 0 1px, transparent 1px 84px),
    #f4f7f7;
}

body[data-page="invest"] .investor-main-pro {
  width: min(1210px, calc(100% - 1.5rem));
  gap: 0.7rem;
  padding: 0.85rem 0 1.5rem;
}

.investor-studio-hero {
  grid-template-columns: minmax(0, 1.02fr) minmax(340px, 0.78fr);
  gap: 0.7rem;
  align-items: start;
}

.investor-hero-copy,
.investor-market-card,
.investment-control-suite,
.institutional-projection,
.investment-governance-card,
.institutional-info-strip article,
.institutional-risk-panel {
  border-color: rgba(17, 19, 21, 0.1);
  box-shadow: 0 18px 54px rgba(17, 19, 21, 0.075);
}

.investor-hero-copy {
  min-height: 292px;
  padding: 1.2rem;
  gap: 0.72rem;
  background:
    linear-gradient(135deg, rgba(8, 201, 155, 0.1), rgba(255, 255, 255, 0.96) 40%),
    repeating-linear-gradient(0deg, rgba(17, 19, 21, 0.035) 0 1px, transparent 1px 34px),
    #fff;
}

.investor-hero-copy h1 {
  max-width: 22ch;
  font-size: clamp(2rem, 3.4vw, 2.75rem);
  line-height: 1.04;
}

.investor-hero-copy p:not(.eyebrow) {
  max-width: 39rem;
  font-size: 0.96rem;
}

.investor-trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.1rem;
}

.investor-trust-row span {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  min-height: 2rem;
  padding: 0.35rem 0.55rem;
  border: 1px solid rgba(17, 19, 21, 0.08);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--premium-ink);
  font-size: 0.78rem;
  font-weight: 850;
}

.investor-trust-row span::before {
  content: "";
  width: 0.44rem;
  height: 0.44rem;
  border-radius: 999px;
  background: var(--teal);
  box-shadow: 0 0 0 4px rgba(8, 201, 155, 0.1);
}

.investor-market-card {
  color: var(--premium-ink);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.98), rgba(242, 248, 246, 0.95)),
    #fff;
}

.investor-market-card::before {
  display: none;
}

.market-card-topline span,
.market-kpis span {
  color: var(--premium-muted);
}

.market-card-topline strong {
  color: var(--premium-ink);
  font-size: 2.05rem;
}

.market-curve {
  margin: 0;
}

.market-curve .curve-grid {
  stroke: rgba(17, 19, 21, 0.11);
}

.market-curve circle {
  fill: var(--teal);
  filter: drop-shadow(0 0 7px rgba(8, 201, 155, 0.38));
}

.market-kpis {
  gap: 0.45rem;
}

.market-kpis div {
  padding: 0.65rem;
  border-color: rgba(17, 19, 21, 0.08);
  background: #f7faf9;
  backdrop-filter: none;
}

.market-kpis strong {
  color: var(--premium-ink);
  font-size: 1.2rem;
}

.investor-command-center {
  grid-template-columns: minmax(360px, 0.92fr) minmax(330px, 0.82fr) minmax(245px, 0.56fr);
  gap: 0.7rem;
  align-items: start;
}

.investment-control-suite,
.institutional-projection,
.investment-governance-card {
  padding: 0.85rem;
  background: rgba(255, 255, 255, 0.95);
}

.investment-control-suite {
  gap: 0.65rem;
}

.investment-control-suite .section-kicker h2,
.investment-governance-card h2 {
  font-size: 1.2rem;
}

.investment-control-suite .section-kicker p:not(.eyebrow) {
  font-size: 0.84rem;
  line-height: 1.4;
}

.range-command strong {
  font-size: 1.25rem;
}

body[data-page="invest"] .invest-term-grid .term-card {
  min-height: 86px;
  padding: 0.68rem;
  align-content: center;
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    box-shadow 180ms ease,
    background 180ms ease;
}

body[data-page="invest"] .invest-term-grid .term-card strong {
  font-size: 1.28rem;
}

body[data-page="invest"] .invest-term-grid .term-card em,
body[data-page="invest"] .invest-term-grid .term-card small {
  font-size: 0.72rem;
}

body[data-page="invest"] .invest-term-grid .term-card small {
  display: none;
}

body[data-page="invest"] .invest-term-grid .term-card.featured::after {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  padding: 0.18rem 0.34rem;
  font-size: 0.55rem;
}

body[data-page="invest"] .invest-term-grid .term-card.selected,
body[data-page="invest"] .invest-term-grid .term-card:has(input:checked),
body[data-page="invest"] .invest-term-grid .term-card:hover {
  transform: translateY(-2px);
  border-color: rgba(8, 201, 155, 0.55);
  background: linear-gradient(180deg, rgba(235, 255, 249, 0.92), rgba(255, 255, 255, 0.98));
  box-shadow: 0 14px 34px rgba(8, 201, 155, 0.14);
}

body[data-page="invest"] .institutional-projection .projection-main {
  min-height: 128px;
  padding: 0.9rem;
  align-content: center;
  gap: 0.22rem;
  border: 1px solid rgba(8, 201, 155, 0.18);
  background:
    linear-gradient(135deg, rgba(232, 251, 245, 0.96), rgba(255, 255, 255, 0.98)),
    #fff;
  color: var(--premium-ink);
}

body[data-page="invest"] .institutional-projection .projection-main span,
body[data-page="invest"] .institutional-projection .projection-main small {
  color: var(--premium-muted);
}

body[data-page="invest"] .institutional-projection .projection-main strong {
  color: var(--premium-ink);
  font-size: 1.95rem;
}

body[data-page="invest"] .institutional-projection .projection-mini-grid {
  gap: 0.45rem;
}

body[data-page="invest"] .institutional-projection .projection-mini-grid div {
  padding: 0.52rem;
  border: 1px solid rgba(17, 19, 21, 0.07);
  background: #f9fbfa;
}

body[data-page="invest"] .institutional-projection .projection-mini-grid span,
.allocation-dashboard span,
.investment-governance-card li,
.institutional-info-strip p,
body[data-page="invest"] .institutional-risk-panel p {
  font-size: 0.82rem;
}

body[data-page="invest"] .institutional-projection .projection-mini-grid strong {
  font-size: 1rem;
}

.allocation-dashboard {
  gap: 0.36rem;
}

.investment-governance-card {
  gap: 0.55rem;
}

.investment-governance-card ul {
  gap: 0.5rem;
}

.investment-governance-card li {
  padding-left: 1.2rem;
}

.investment-governance-card li::before {
  width: 0.5rem;
  height: 0.5rem;
  top: 0.38rem;
  box-shadow: 0 0 0 4px rgba(8, 201, 155, 0.11);
}

.institutional-info-strip {
  gap: 0.55rem;
}

.institutional-info-strip article {
  padding: 0.72rem;
}

.institutional-info-strip strong {
  font-size: 0.96rem;
}

body[data-page="invest"] .institutional-risk-panel {
  padding: 0.85rem;
  background:
    linear-gradient(90deg, rgba(255, 252, 246, 0.98), rgba(255, 255, 255, 0.96)),
    #fff;
}

body[data-page="invest"] .institutional-risk-panel h2 {
  font-size: 1rem;
}

.investor-studio-hero > *,
.investor-command-center > *,
.institutional-info-strip article,
.institutional-risk-panel {
  animation: investorDeskIn 560ms ease both;
}

.investor-market-card,
.institutional-projection {
  animation-delay: 90ms;
}

.investment-governance-card,
.institutional-info-strip article:nth-child(3),
.institutional-info-strip article:nth-child(4) {
  animation-delay: 150ms;
}

@keyframes investorDeskIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 1120px) {
  .investor-command-center,
  .investor-studio-hero {
    grid-template-columns: 1fr;
  }

  .investor-market-card {
    min-height: 0;
  }
}

@media (max-width: 780px) {
  body[data-page="invest"] .investor-main-pro {
    width: min(100% - 0.8rem, 1210px);
    gap: 0.55rem;
  }

  .investor-hero-copy,
  .investor-market-card,
  .investment-control-suite,
  .institutional-projection,
  .investment-governance-card,
  .institutional-risk-panel {
    padding: 0.85rem;
  }

  .investor-hero-copy h1 {
    font-size: 2rem;
  }

  .investor-trust-row span {
    width: 100%;
    justify-content: flex-start;
  }

  body[data-page="invest"] .institutional-projection .projection-main strong {
    font-size: 1.75rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .investor-studio-hero > *,
  .investor-command-center > *,
  .institutional-info-strip article,
  .institutional-risk-panel,
  .market-curve .curve-line {
    animation: none;
  }
}

/* Investor mobile containment */
@media (max-width: 720px) {
  body[data-page="invest"] {
    overflow-x: hidden;
  }

  /* Invest now uses the shared mobile header/nav (no bespoke resizing) so it
     matches every other page at narrow widths. */

  body[data-page="invest"] .investor-main-pro,
  body[data-page="invest"] .investor-studio-hero,
  body[data-page="invest"] .investor-command-center,
  body[data-page="invest"] .institutional-info-strip,
  body[data-page="invest"] .investor-hero-copy,
  body[data-page="invest"] .investor-market-card,
  body[data-page="invest"] .investment-control-suite,
  body[data-page="invest"] .institutional-projection,
  body[data-page="invest"] .investment-governance-card,
  body[data-page="invest"] .institutional-risk-panel {
    min-width: 0;
    max-width: 100%;
  }

  body[data-page="invest"] .investor-main-pro {
    width: calc(100% - 0.7rem);
    max-width: calc(100% - 0.7rem);
    overflow: hidden;
  }

  body[data-page="invest"] .investor-studio-hero,
  body[data-page="invest"] .investor-command-center,
  body[data-page="invest"] .institutional-info-strip,
  body[data-page="invest"] .investor-hero-copy,
  body[data-page="invest"] .investor-market-card,
  body[data-page="invest"] .investment-control-suite,
  body[data-page="invest"] .institutional-projection,
  body[data-page="invest"] .investment-governance-card,
  body[data-page="invest"] .institutional-risk-panel {
    width: 100%;
  }

  body[data-page="invest"] .investor-hero-copy h1 {
    max-width: 100%;
    font-size: 1.82rem;
    line-height: 1.08;
  }

  body[data-page="invest"] .investor-hero-copy p:not(.eyebrow) {
    font-size: 0.88rem;
    line-height: 1.48;
  }

  body[data-page="invest"] .investor-trust-row span {
    width: auto;
    flex: 1 1 100%;
  }

  body[data-page="invest"] .market-card-topline strong {
    font-size: 1.72rem;
  }

  body[data-page="invest"] .market-curve {
    max-height: 132px;
  }

  body[data-page="invest"] .market-kpis {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  body[data-page="invest"] .market-kpis div {
    padding: 0.5rem;
  }

  body[data-page="invest"] .market-kpis strong {
    font-size: 1rem;
  }

  body[data-page="invest"] .invest-term-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  body[data-page="invest"] .invest-term-grid .term-card {
    min-height: 68px;
    padding: 0.54rem;
  }

  body[data-page="invest"] .invest-term-grid .term-card span {
    font-size: 0.66rem;
  }

  body[data-page="invest"] .invest-term-grid .term-card strong {
    font-size: 1.12rem;
  }

  body[data-page="invest"] .invest-term-grid .term-card em,
  body[data-page="invest"] .invest-term-grid .term-card small,
  body[data-page="invest"] .invest-term-grid .term-card.featured::after {
    display: none;
  }

  body[data-page="invest"] .institutional-projection .projection-mini-grid,
  body[data-page="invest"] .institutional-info-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* Capital desk redesign: institutional investment experience */
body[data-page="invest"] {
  background:
    linear-gradient(180deg, #f7f8f7 0, #eff3f3 34rem, #f7f8f7 100%),
    #f7f8f7;
}

body[data-page="invest"] .site-header {
  border-bottom-color: rgba(21, 27, 31, 0.1);
  background: rgba(255, 255, 255, 0.9);
}

.capital-desk-page {
  width: min(1240px, calc(100% - 1.5rem));
  margin-inline: auto;
  display: grid;
  gap: 0.85rem;
  padding: 0.85rem 0 1.8rem;
}

.capital-hero {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  background:
    radial-gradient(circle at 20% 18%, rgba(8, 201, 155, 0.22), transparent 18rem),
    radial-gradient(circle at 96% 10%, rgba(215, 189, 121, 0.18), transparent 20rem),
    linear-gradient(135deg, #111719, #0b1012 54%, #182226);
  color: #fff;
  box-shadow: 0 28px 80px rgba(10, 14, 16, 0.22);
}

.capital-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(0deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 74px 74px;
  mask-image: linear-gradient(90deg, transparent, #000 15%, #000 88%, transparent);
}

.market-ticker {
  position: relative;
  z-index: 1;
  overflow: hidden;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.04);
}

.ticker-track {
  display: flex;
  width: max-content;
  min-width: 100%;
  gap: 1rem;
  align-items: center;
  padding: 0.55rem 0.85rem;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.72rem;
  font-weight: 850;
  text-transform: uppercase;
  animation: tickerGlide 22s linear infinite;
  animation-delay: 2.5s;
}

.ticker-track span {
  color: #d7bd79;
  letter-spacing: 0.1em;
}

.ticker-track strong {
  color: #fff;
  font-weight: 900;
}

@keyframes tickerGlide {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-22%);
  }
}

.capital-hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(460px, 1.18fr);
  gap: 1rem;
  align-items: stretch;
  padding: clamp(1rem, 2vw, 1.35rem);
}

.capital-copy {
  display: grid;
  align-content: center;
  gap: 0.85rem;
  min-height: 350px;
}

.capital-copy .eyebrow,
.capital-risk-note .eyebrow {
  margin: 0;
  color: #d7bd79;
}

.capital-copy h1 {
  max-width: 14.5ch;
  margin: 0;
  color: #fff;
  font-size: clamp(2.65rem, 4.8vw, 4.45rem);
  line-height: 0.96;
  letter-spacing: 0;
}

.capital-copy p:not(.eyebrow) {
  max-width: 40rem;
  margin: 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: 1.02rem;
  line-height: 1.55;
}

.capital-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 0.2rem;
}

.capital-actions .button {
  min-height: 44px;
  border-radius: 999px;
}

.capital-actions .button.primary {
  background: #f7f0d2;
  color: #111719;
  box-shadow: 0 18px 38px rgba(215, 189, 121, 0.16);
}

.capital-actions .button.secondary {
  border-color: rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
}

.trading-terminal {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  min-height: 350px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.03)),
    #0c1113;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 24px 60px rgba(0, 0, 0, 0.28);
}

.terminal-bar {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.terminal-bar strong {
  color: #08c99b;
}

.terminal-chart {
  width: 100%;
  height: 100%;
  min-height: 215px;
  max-height: 310px;
  padding: 0.5rem;
}

.terminal-grid {
  fill: none;
  stroke: rgba(255, 255, 255, 0.08);
  stroke-width: 1;
}

.terminal-fill {
  fill: url(#terminalFill);
}

.terminal-line {
  fill: none;
  stroke: url(#terminalLine);
  stroke-width: 7;
  stroke-linecap: round;
  stroke-dasharray: 980;
  animation: terminalDraw 1.6s cubic-bezier(0.2, 0.82, 0.2, 1) both;
}

.terminal-chart circle {
  fill: #08c99b;
  filter: drop-shadow(0 0 9px rgba(8, 201, 155, 0.7));
}

@keyframes terminalDraw {
  from {
    stroke-dashoffset: 980;
  }
  to {
    stroke-dashoffset: 0;
  }
}

.terminal-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.09);
}

.terminal-stats div {
  padding: 0.85rem;
  background: rgba(8, 12, 14, 0.82);
}

.terminal-stats span {
  display: block;
  color: rgba(255, 255, 255, 0.58);
  font-size: 0.7rem;
  font-weight: 850;
  text-transform: uppercase;
}

.terminal-stats strong {
  display: block;
  margin-top: 0.2rem;
  color: #fff;
  font-size: 1.55rem;
}

.capital-workstation {
  display: grid;
  grid-template-columns: minmax(360px, 0.95fr) minmax(370px, 0.95fr) minmax(260px, 0.64fr);
  gap: 0.85rem;
  align-items: start;
}

.capital-panel {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(22, 28, 32, 0.1);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(251, 253, 252, 0.94)),
    #fff;
  box-shadow: 0 18px 54px rgba(14, 20, 23, 0.08);
}

.capital-term-sheet,
body[data-page="invest"] .yield-ticket,
.desk-compliance-card {
  padding: 1rem;
}

.desk-panel-header {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.95rem;
}

.desk-panel-header h2,
.desk-compliance-card h2,
.capital-risk-note h2 {
  margin: 0;
  color: #111719;
  font-size: 1.25rem;
  line-height: 1.1;
}

.desk-badge,
.mini-code {
  display: inline-flex;
  align-items: center;
  min-height: 1.85rem;
  padding: 0 0.56rem;
  border: 1px solid rgba(17, 23, 25, 0.1);
  border-radius: 999px;
  background: #f7f0d2;
  color: #151b1f;
  font-size: 0.68rem;
  font-weight: 950;
  text-transform: uppercase;
}

.capital-range-command {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 1rem;
  padding: 0.8rem;
  border: 1px solid rgba(17, 23, 25, 0.08);
  border-radius: 8px;
  background: #f7f8f7;
}

.capital-range-command span,
.range-labels span {
  color: #687078;
  font-size: 0.76rem;
  font-weight: 850;
  text-transform: uppercase;
}

.capital-range-command strong {
  color: #111719;
  font-size: 1.45rem;
}

body[data-page="invest"] #investmentRange {
  width: 100%;
  height: 4px;
  margin: 1rem 0 0.35rem;
  border-radius: 999px;
  accent-color: #08c99b;
}

.capital-term-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.55rem;
  margin-top: 0.9rem;
}

body[data-page="invest"] .capital-term-card {
  min-height: 122px;
  padding: 0.8rem;
  border-color: rgba(17, 23, 25, 0.1);
  background: #fff;
  box-shadow: none;
  transform: none;
}

body[data-page="invest"] .capital-term-card span {
  color: #687078;
  font-size: 0.68rem;
  letter-spacing: 0.08em;
}

body[data-page="invest"] .capital-term-card strong {
  color: #111719;
  font-size: 1.9rem;
  letter-spacing: 0;
}

body[data-page="invest"] .capital-term-card em {
  color: #111719;
  font-size: 0.76rem;
  letter-spacing: 0.04em;
}

body[data-page="invest"] .capital-term-card small {
  display: block;
  color: #687078;
  font-size: 0.73rem;
  line-height: 1.35;
}

body[data-page="invest"] .capital-term-card.featured::after {
  content: "Desk pick";
  top: 0.58rem;
  right: 0.58rem;
  background: #111719;
  color: #f7f0d2;
}

body[data-page="invest"] .capital-term-card.selected,
body[data-page="invest"] .capital-term-card:has(input:checked),
body[data-page="invest"] .capital-term-card:hover {
  border-color: rgba(215, 189, 121, 0.75);
  background:
    linear-gradient(180deg, rgba(247, 240, 210, 0.52), rgba(255, 255, 255, 0.98)),
    #fff;
  box-shadow: 0 18px 36px rgba(17, 23, 25, 0.1);
  transform: translateY(-2px);
}

body[data-page="invest"] .yield-ticket {
  display: grid;
  gap: 0.75rem;
  border-color: rgba(17, 23, 25, 0.12);
  background: #fff;
}

body[data-page="invest"] .yield-ticket .projection-main {
  min-height: 150px;
  padding: 1rem;
  border: 0;
  border-radius: 8px;
  background:
    radial-gradient(circle at 92% 8%, rgba(215, 189, 121, 0.16), transparent 9rem),
    linear-gradient(135deg, #111719, #192225);
  color: #fff;
}

body[data-page="invest"] .yield-ticket .projection-main span,
body[data-page="invest"] .yield-ticket .projection-main small {
  color: rgba(255, 255, 255, 0.68);
}

body[data-page="invest"] .yield-ticket .projection-main strong {
  color: #fff;
  font-size: 2.4rem;
}

body[data-page="invest"] .yield-ticket .projection-mini-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.55rem;
}

body[data-page="invest"] .yield-ticket .projection-mini-grid div {
  padding: 0.7rem;
  border-radius: 8px;
  background: #f7f8f7;
}

body[data-page="invest"] .yield-ticket .projection-mini-grid span,
.allocation-dashboard span {
  color: #687078;
  font-size: 0.7rem;
  font-weight: 900;
  text-transform: uppercase;
}

body[data-page="invest"] .yield-ticket .projection-mini-grid strong {
  display: block;
  margin-top: 0.22rem;
  color: #111719;
  font-size: 1.03rem;
}

body[data-page="invest"] .allocation-dashboard {
  gap: 0.45rem;
  padding-top: 0.3rem;
}

body[data-page="invest"] .allocation-dashboard .bar {
  overflow: hidden;
  height: 6px;
  border-radius: 999px;
  background: #e6ecea;
}

body[data-page="invest"] .allocation-dashboard .bar i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: #08c99b;
  transition: width 420ms ease;
}

body[data-page="invest"] .allocation-dashboard .bar.amber i {
  background: #d7bd79;
}

body[data-page="invest"] .allocation-dashboard .bar.red i {
  background: #e36b6b;
}

.desk-compliance-card {
  display: grid;
  gap: 0.75rem;
}

.desk-compliance-card ul {
  display: grid;
  gap: 0.65rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.desk-compliance-card li {
  position: relative;
  padding-left: 1.25rem;
  color: #687078;
  font-size: 0.86rem;
  line-height: 1.45;
}

.desk-compliance-card li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.42rem;
  width: 0.52rem;
  height: 0.52rem;
  border-radius: 999px;
  background: #08c99b;
  box-shadow: 0 0 0 4px rgba(8, 201, 155, 0.1);
}

.capital-process-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.7rem;
}

.capital-process-grid article {
  position: relative;
  overflow: hidden;
  min-height: 132px;
  padding: 0.9rem;
  border: 1px solid rgba(17, 23, 25, 0.1);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 16px 42px rgba(14, 20, 23, 0.06);
}

.capital-process-grid article::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, #08c99b, #d7bd79);
}

.capital-process-grid span {
  color: #d7bd79;
  font-size: 0.72rem;
  font-weight: 950;
}

.capital-process-grid strong {
  display: block;
  margin: 0.28rem 0;
  color: #111719;
  font-size: 1rem;
}

.capital-process-grid p {
  margin: 0;
  color: #687078;
  font-size: 0.86rem;
  line-height: 1.45;
}

body[data-page="invest"] .capital-risk-note {
  display: grid;
  grid-template-columns: minmax(240px, 0.38fr) minmax(0, 1fr);
  gap: 1rem;
  align-items: start;
  margin-top: 0;
  padding: 1rem;
  border: 1px solid rgba(17, 23, 25, 0.1);
  border-radius: 8px;
  background:
    linear-gradient(90deg, rgba(17, 23, 25, 0.97), rgba(30, 38, 42, 0.94)),
    #111719;
  color: #fff;
  box-shadow: 0 18px 54px rgba(14, 20, 23, 0.12);
}

body[data-page="invest"] .capital-risk-note h2 {
  color: #fff;
}

body[data-page="invest"] .capital-risk-note p:not(.eyebrow) {
  margin: 0;
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.88rem;
  line-height: 1.5;
}

.capital-hero-grid > *,
.capital-workstation > *,
.capital-process-grid article,
.capital-risk-note {
  animation: capitalDeskIn 620ms cubic-bezier(0.2, 0.82, 0.2, 1) both;
}

.trading-terminal,
.yield-ticket {
  animation-delay: 90ms;
}

.desk-compliance-card,
.capital-process-grid article:nth-child(3),
.capital-process-grid article:nth-child(4) {
  animation-delay: 150ms;
}

@keyframes capitalDeskIn {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 1120px) {
  .capital-hero-grid,
  .capital-workstation,
  body[data-page="invest"] .capital-risk-note {
    grid-template-columns: 1fr;
  }

  .capital-copy {
    min-height: 0;
  }

  .capital-copy h1 {
    max-width: 16ch;
  }

  .trading-terminal {
    min-height: 360px;
  }
}

@media (max-width: 820px) {
  .capital-desk-page {
    width: min(100% - 0.75rem, 1240px);
    gap: 0.65rem;
    padding-top: 0.65rem;
  }

  .capital-hero-grid {
    gap: 0.65rem;
    padding: 0.62rem;
  }

  .ticker-track {
    animation-duration: 16s;
  }

  .capital-copy {
    gap: 0.7rem;
    min-height: 0;
  }

  .capital-copy h1 {
    max-width: none;
    font-size: 2.35rem;
    line-height: 1.02;
  }

  .capital-copy p:not(.eyebrow) {
    font-size: 0.92rem;
  }

  .capital-actions .button {
    width: 100%;
  }

  .trading-terminal {
    min-height: 250px;
  }

  .terminal-chart {
    min-height: 142px;
    max-height: 178px;
  }

  .capital-term-sheet,
  body[data-page="invest"] .yield-ticket,
  .desk-compliance-card,
  body[data-page="invest"] .capital-risk-note {
    padding: 0.78rem;
  }

  .capital-term-grid,
  body[data-page="invest"] .yield-ticket .projection-mini-grid,
  .capital-process-grid {
    grid-template-columns: 1fr;
  }

  body[data-page="invest"] .capital-term-card {
    min-height: 92px;
  }

  body[data-page="invest"] .capital-term-card small {
    display: none;
  }

  .capital-process-grid article {
    min-height: 0;
  }
}

@media (max-width: 520px) {
  .capital-copy h1 {
    font-size: 1.88rem;
  }

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

  .terminal-stats div {
    padding: 0.46rem;
  }

  .terminal-stats strong {
    font-size: 1.12rem;
  }

  .capital-range-command {
    align-items: start;
    flex-direction: column;
    gap: 0.35rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ticker-track,
  .terminal-line,
  .capital-hero-grid > *,
  .capital-workstation > *,
  .capital-process-grid article,
  .capital-risk-note {
    animation: none;
  }
}

/* VendPlay premium interaction layer */
:root {
  --vp-bg: #f6f8f8;
  --vp-surface: rgba(255, 255, 255, 0.88);
  --vp-surface-solid: #ffffff;
  --vp-ink: #111719;
  --vp-soft-ink: #455159;
  --vp-muted: #738087;
  --vp-line: rgba(18, 26, 31, 0.1);
  --vp-line-strong: rgba(18, 26, 31, 0.16);
  --vp-teal: #08c99b;
  --vp-teal-dark: #047c65;
  --vp-gold: #c7a75a;
  --vp-blue: #2f6fda;
  --vp-shadow: 0 28px 80px rgba(16, 23, 27, 0.1);
  --vp-shadow-soft: 0 18px 42px rgba(16, 23, 27, 0.075);
  --vp-radius-lg: 26px;
  --vp-radius-md: 18px;
}

body {
  color: var(--vp-ink);
  background:
    linear-gradient(180deg, #fbfdfc 0, #f3f7f7 34rem, #f7f8f8 100%),
    var(--vp-bg);
}

body.contract-open {
  overflow: hidden;
}

.announcement-bar {
  position: relative;
  z-index: 5;
  display: flex;
  min-height: 34px;
  align-items: center;
  justify-content: center;
  gap: clamp(1rem, 4vw, 3.2rem);
  overflow: hidden;
  padding: 0.35rem 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.44);
  background:
    linear-gradient(90deg, #10171a, #172124 48%, #10171a),
    #10171a;
  color: #f8fbfa;
  font-size: 0.76rem;
  font-weight: 850;
  line-height: 1.1;
  text-align: center;
}

.announcement-bar::before {
  content: "";
  position: absolute;
  inset: 0;
  width: 32%;
  background: linear-gradient(90deg, transparent, rgba(8, 201, 155, 0.2), transparent);
  transform: translateX(-120%);
  animation: announcementShine 6s ease-in-out infinite;
}

.announcement-bar span {
  position: relative;
  white-space: nowrap;
}

.announcement-bar span + span::before {
  content: "";
  display: inline-block;
  width: 4px;
  height: 4px;
  margin: 0 1.4rem 0 0;
  border-radius: 999px;
  background: var(--vp-teal);
  vertical-align: middle;
}

@keyframes announcementShine {
  0%,
  62% {
    transform: translateX(-120%);
  }
  100% {
    transform: translateX(340%);
  }
}

.site-header {
  top: 34px;
  min-height: 76px;
  border-bottom: 1px solid rgba(18, 26, 31, 0.08);
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 10px 34px rgba(18, 26, 31, 0.055);
  backdrop-filter: blur(22px) saturate(1.2);
}

.brand img {
  height: 42px;
}

.site-nav.visual-nav {
  border: 1px solid rgba(18, 26, 31, 0.1);
  background: rgba(255, 255, 255, 0.72);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.9),
    0 14px 36px rgba(18, 26, 31, 0.065);
  backdrop-filter: blur(18px) saturate(1.15);
}

.site-nav.visual-nav a,
.site-nav.visual-nav a[href="./dashboard.html"] {
  width: 70px;
  min-height: 52px;
  border-radius: 16px;
  transition:
    transform 180ms ease,
    background 180ms ease,
    border-color 180ms ease,
    box-shadow 180ms ease;
}

.site-nav.visual-nav a.active,
.site-nav.visual-nav a:hover,
.site-nav.visual-nav a[href="./dashboard.html"].active,
.site-nav.visual-nav a[href="./dashboard.html"]:hover {
  border-color: rgba(8, 201, 155, 0.34);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(236, 255, 249, 0.82)),
    rgba(8, 201, 155, 0.08);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.95),
    0 14px 28px rgba(8, 201, 155, 0.13);
  transform: translateY(-1px);
}

.site-nav.visual-nav a img {
  height: 42px;
}

.cart-button,
.icon-button,
.button,
.filter-chip,
.pool-tab {
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    border-color 180ms ease,
    background 180ms ease;
}

.button,
.cart-button,
.icon-button {
  border-radius: 999px;
}

.button.primary {
  background:
    linear-gradient(180deg, #16ddb2, #08c99b),
    var(--vp-teal);
  color: #06120f;
  box-shadow: 0 16px 34px rgba(8, 201, 155, 0.18);
}

.button.secondary,
.button.glass {
  border-color: rgba(18, 26, 31, 0.12);
  background: rgba(255, 255, 255, 0.72);
  color: var(--vp-ink);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(16px);
}

.button:hover,
.cart-button:hover,
.icon-button:hover,
.filter-chip:hover {
  transform: translateY(-2px);
}

.home-focus-card,
.home-assurance-strip article,
.product-card,
.capital-panel,
.capital-process-grid article,
.ios-settings-card,
.ios-settings-hero,
.checkout-block,
.invoice-preview,
.contract-panel {
  position: relative;
  overflow: hidden;
}

.home-focus-card::after,
.home-assurance-strip article::after,
.capital-panel::after,
.ios-settings-card::after,
.checkout-block::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(120deg, transparent 0, rgba(255, 255, 255, 0.58) 42%, transparent 64%);
  opacity: 0;
  transform: translateX(-35%);
}

.home-focus-card:hover::after,
.home-assurance-strip article:hover::after,
.capital-panel:hover::after,
.ios-settings-card:hover::after,
.checkout-block:hover::after {
  animation: glassSweep 1.1s ease;
}

@keyframes glassSweep {
  0% {
    opacity: 0;
    transform: translateX(-40%);
  }
  30% {
    opacity: 0.9;
  }
  100% {
    opacity: 0;
    transform: translateX(75%);
  }
}

@keyframes revealUpSoft {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Home page */
body[data-page="home"] .hero-video-layer {
  background: #edf3f1;
}

body[data-page="home"] .hero-video-layer::after {
  background:
    linear-gradient(90deg, rgba(5, 9, 10, 0.42) 0%, rgba(5, 9, 10, 0.18) 48%, rgba(5, 9, 10, 0.03) 100%),
    linear-gradient(180deg, rgba(5, 9, 10, 0.05), rgba(5, 9, 10, 0.22));
}

body[data-page="home"] .homepage-hero-video {
  filter: brightness(1.22) contrast(1.05) saturate(1.08);
}

body[data-page="home"] .clean-home-hero {
  min-height: calc(100svh - 110px);
  padding-top: 5rem;
  padding-bottom: 4.2rem;
}

body[data-page="home"] .clean-home-hero .homepage-hero-copy {
  max-width: 680px;
  padding: 1.25rem 1.35rem;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-left: 4px solid rgba(8, 201, 155, 0.92);
  border-radius: var(--vp-radius-md);
  background: rgba(7, 12, 14, 0.22);
  box-shadow: 0 26px 70px rgba(0, 0, 0, 0.16);
  backdrop-filter: blur(12px);
  animation: revealUpSoft 760ms ease both;
}

body[data-page="home"] .clean-home-hero h1 {
  max-width: 12ch;
  margin-bottom: 0.9rem;
  font-family: var(--font-cinematic);
  font-weight: 400;
  font-size: clamp(3.4rem, 8.2vw, 6.6rem);
  line-height: 0.92;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  text-shadow: 0 2px 30px rgba(0, 0, 0, 0.35);
}

body[data-page="home"] .homepage-hero-copy > p:not(.eyebrow) {
  max-width: 42rem;
  color: rgba(255, 255, 255, 0.86);
}

.home-assurance-strip {
  width: min(1240px, calc(100% - 2rem));
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.9rem;
  margin: -2rem auto 2.2rem;
  position: relative;
  z-index: 5;
}

.home-assurance-strip article {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 0.9rem;
  align-items: start;
  min-height: 132px;
  padding: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.78);
  border-radius: var(--vp-radius-lg);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.95), rgba(251, 253, 252, 0.86)),
    var(--vp-surface-solid);
  box-shadow: var(--vp-shadow);
  backdrop-filter: blur(20px);
  animation: revealUpSoft 680ms ease both;
}

.home-assurance-strip article:nth-child(2) {
  animation-delay: 90ms;
}

.home-assurance-strip article:nth-child(3) {
  animation-delay: 160ms;
}

.home-assurance-strip strong {
  display: block;
  margin-bottom: 0.3rem;
  font-size: 1rem;
}

.home-assurance-strip p {
  margin: 0;
  color: var(--vp-muted);
  font-size: 0.88rem;
  line-height: 1.5;
}

.glass-symbol {
  position: relative;
  display: inline-grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border: 1px solid rgba(8, 201, 155, 0.24);
  border-radius: 16px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(223, 249, 241, 0.72)),
    #fff;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.95),
    0 14px 26px rgba(8, 201, 155, 0.12);
}

.glass-symbol::before,
.glass-symbol::after,
.settings-symbol::before,
.settings-symbol::after {
  content: "";
  position: absolute;
}

.glass-symbol.ship::before {
  width: 25px;
  height: 14px;
  left: 11px;
  top: 20px;
  border: 2px solid var(--vp-teal-dark);
  border-top: 0;
  border-radius: 0 0 8px 8px;
}

.glass-symbol.ship::after {
  width: 20px;
  height: 2px;
  left: 14px;
  top: 15px;
  background: var(--vp-gold);
  box-shadow: 0 6px 0 var(--vp-gold);
}

.glass-symbol.clock::before {
  width: 24px;
  height: 24px;
  border: 2px solid var(--vp-teal-dark);
  border-radius: 999px;
}

.glass-symbol.clock::after {
  width: 2px;
  height: 13px;
  left: 23px;
  top: 14px;
  background: var(--vp-gold);
  box-shadow: 5px 9px 0 -1px var(--vp-teal-dark);
  transform-origin: bottom;
  transform: rotate(-35deg);
}

.glass-symbol.shield::before {
  width: 25px;
  height: 29px;
  background:
    linear-gradient(160deg, var(--vp-teal), var(--vp-teal-dark));
  clip-path: polygon(50% 0, 86% 12%, 82% 68%, 50% 100%, 18% 68%, 14% 12%);
}

.glass-symbol.shield::after {
  width: 11px;
  height: 6px;
  border-left: 2px solid #fff;
  border-bottom: 2px solid #fff;
  transform: rotate(-45deg);
}

.home-focus-panel {
  gap: 0.85rem;
}

.home-focus-card {
  border-radius: var(--vp-radius-lg);
  border-color: rgba(18, 26, 31, 0.08);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(250, 253, 252, 0.88)),
    #fff;
  box-shadow: var(--vp-shadow-soft);
  transform: translateZ(0);
}

.home-focus-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--vp-shadow);
}

.home-slot-showcase {
  width: min(1240px, calc(100% - 2rem));
  margin: 1.4rem auto 0;
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 1.6rem;
  align-items: center;
  border-radius: var(--vp-radius-lg);
  border: 1px solid rgba(18, 26, 31, 0.08);
  background:
    linear-gradient(135deg, rgba(6, 184, 148, 0.1), rgba(255, 255, 255, 0.92)),
    #fff;
  box-shadow: var(--vp-shadow-soft);
  overflow: hidden;
  padding: 1.8rem;
}
.slot-showcase-visual {
  border-radius: var(--vp-radius-md);
  background: linear-gradient(180deg, #0e2a24, #10342c);
  padding: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 280px;
}
.slot-showcase-visual img {
  width: 100%;
  max-width: 320px;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 24px 40px rgba(0, 0, 0, 0.35));
}
.slot-showcase-copy .mini-code {
  display: inline-block;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--v3-teal);
  font-weight: 700;
  margin-bottom: 0.5rem;
}
.slot-showcase-copy h2 {
  font-family: var(--font-cinematic);
  font-weight: 400;
  font-size: clamp(1.7rem, 3vw, 2.6rem);
  line-height: 0.98;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  margin: 0 0 0.7rem;
}
.slot-showcase-copy p {
  color: var(--v3-muted);
  margin: 0 0 0.9rem;
  line-height: 1.6;
}
.slot-showcase-points {
  list-style: none;
  margin: 0 0 1.2rem;
  padding: 0;
  display: grid;
  gap: 0.5rem;
}
.slot-showcase-points li {
  position: relative;
  padding-left: 1.5rem;
  color: var(--v3-ink);
  font-size: 0.92rem;
}
.slot-showcase-points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.45rem;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--v3-teal);
}

/* Home warranty section */
.home-warranty-section {
  width: min(1240px, calc(100% - 2rem));
  margin: 2.4rem auto 0;
}

.home-warranty-head {
  margin-bottom: 1.4rem;
}

.home-warranty-head .mini-code {
  display: inline-block;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--v3-teal);
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.home-warranty-head h2 {
  font-family: var(--font-cinematic);
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 1.15;
  color: var(--ink);
  margin: 0 0 0.5rem;
}

.home-warranty-head p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.6;
  max-width: 640px;
}

.home-warranty-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem;
}

.home-warranty-card {
  border: 1px solid rgba(18, 26, 31, 0.08);
  border-radius: var(--vp-radius-lg);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(250, 253, 252, 0.88)),
    #fff;
  box-shadow: var(--vp-shadow-soft);
  padding: 1.2rem;
  transition: transform 0.24s ease, box-shadow 0.24s ease;
}

.home-warranty-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--vp-shadow);
}

.home-warranty-card h3 {
  margin: 0 0 0.5rem;
  font-size: 0.92rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--ink);
}

.home-warranty-card p {
  margin: 0 0 0.6rem;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.55;
}

.home-warranty-card p:last-child {
  margin-bottom: 0;
}

.home-warranty-card strong {
  color: var(--ink);
}

.home-warranty-card ul,
.home-warranty-card ol {
  margin: 0;
  padding-left: 1.15rem;
}

.home-warranty-card li {
  margin: 0 0 0.5rem;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.55;
}

.home-warranty-card li:last-child {
  margin-bottom: 0;
}

.home-warranty-card li::marker {
  color: var(--v3-teal-dark, #047a63);
}

.home-warranty-card p a,
.home-warranty-card li a {
  color: var(--v3-teal-dark, #047a63);
  font-weight: 700;
  text-decoration: none;
}

.home-warranty-card p a:hover,
.home-warranty-card li a:hover {
  text-decoration: underline;
}

.home-warranty-card .warranty-period {
  color: var(--v3-teal-dark, #047a63);
  font-weight: 800;
  white-space: nowrap;
}

/* Home affiliate banner — poster-led design */
.home-affiliate {
  width: min(1240px, calc(100% - 2rem));
  margin: 2.4rem auto 0;
  border-radius: var(--vp-radius-lg);
  overflow: hidden;
  position: relative;
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #0f172a 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.home-affiliate::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(ellipse at 20% 20%, rgba(6, 184, 148, 0.15) 0%, transparent 50%), radial-gradient(ellipse at 80% 80%, rgba(6, 184, 148, 0.08) 0%, transparent 40%);
  pointer-events: none;
}

.home-affiliate-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 0;
  position: relative;
}

.home-affiliate-hero {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
  min-height: 420px;
}

.home-affiliate-poster {
  width: 100%;
  max-width: 480px;
  height: auto;
  max-height: 440px;
  object-fit: contain;
  border-radius: 16px;
  filter: drop-shadow(0 20px 50px rgba(0, 0, 0, 0.4));
  transition: transform 0.5s cubic-bezier(.2, .7, .2, 1), filter 0.5s ease;
}

.home-affiliate-poster:hover {
  transform: scale(1.02) translateY(-4px);
  filter: drop-shadow(0 28px 60px rgba(0, 0, 0, 0.5));
}

.home-affiliate-details {
  padding: 48px 48px 48px 32px;
  position: relative;
}

.home-affiliate-eyebrow {
  color: rgba(6, 184, 148, 0.9) !important;
}

.home-affiliate-details h2 {
  font-size: 2.2rem;
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -0.5px;
  color: #fff;
  margin: 0.4rem 0 20px;
  position: relative;
}

.home-affiliate-details h2::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 0;
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, #06b894, transparent);
  border-radius: 999px;
}

.home-affiliate-details > p {
  font-size: 1rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.6);
  margin: 0 0 28px;
  max-width: 440px;
}

.home-affiliate-tiers {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-bottom: 28px;
}

.home-aff-tier {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.06);
  text-align: center;
}

.home-aff-tier-label {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(255, 255, 255, 0.5);
}

.home-aff-tier strong {
  font-size: 1.3rem;
  font-weight: 900;
  color: #fff;
}

.home-aff-tier-meta {
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.45);
}

.home-aff-tier em {
  font-size: 0.72rem;
  font-style: normal;
  color: rgba(255, 255, 255, 0.55);
}

.home-aff-tier.is-mid {
  border-color: rgba(6, 184, 148, 0.3);
  background: rgba(6, 184, 148, 0.08);
}

.home-aff-tier.is-top {
  border-color: rgba(6, 184, 148, 0.5);
  background: rgba(6, 184, 148, 0.12);
}

.home-affiliate-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.home-affiliate-actions .button {
  background: linear-gradient(135deg, #06b894, #08c99b) !important;
  color: #fff !important;
  border: none !important;
  font-weight: 900 !important;
  box-shadow: 0 12px 28px rgba(6, 184, 148, 0.35);
}

.home-affiliate-actions .button:hover {
  box-shadow: 0 16px 36px rgba(6, 184, 148, 0.5);
  transform: translateY(-2px);
}

.home-affiliate-note {
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.4);
  font-weight: 600;
}

.home-affiliate-terms-link {
  margin: 16px 0 0;
}

.vp-contract-link {
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.35);
  font-size: 0.72rem;
  font-weight: 600;
  cursor: pointer;
  padding: 0;
  text-decoration: underline;
  text-decoration-color: rgba(255, 255, 255, 0.15);
  text-underline-offset: 3px;
  transition: color 0.2s, text-decoration-color 0.2s;
}

.vp-contract-link:hover {
  color: rgba(255, 255, 255, 0.6);
  text-decoration-color: rgba(255, 255, 255, 0.3);
}

/* ===== Homepage Terms of Sale contract modal ===== */
.vp-contract-modal {
  position: fixed;
  inset: 0;
  z-index: 9500;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(17, 20, 23, 0.55);
  backdrop-filter: blur(10px);
  padding: 18px;
}

.vp-contract-modal.active {
  display: flex;
}

.vp-contract-backdrop {
  position: absolute;
  inset: 0;
}

.vp-contract-card {
  position: relative;
  width: 100%;
  max-width: 680px;
  max-height: 90vh;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 24px 64px rgba(17, 20, 23, 0.25);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.vp-contract-head {
  padding: 28px 28px 16px;
  border-bottom: 1px solid var(--line, #e3e7ec);
  flex-shrink: 0;
}

.vp-contract-body {
  flex: 1;
  overflow-y: auto;
  padding: 24px 28px;
  font-size: 0.82rem;
  line-height: 1.7;
  color: #3b444d;
}

.vp-contract-body h3 {
  font-size: 0.88rem;
  font-weight: 700;
  color: #111417;
  margin: 20px 0 8px;
  letter-spacing: 0.01em;
}

.vp-contract-body h3:first-child {
  margin-top: 0;
}

.vp-contract-body p {
  margin: 0 0 10px;
}

.vp-contract-body ul {
  margin: 0 0 10px;
  padding-left: 20px;
}

.vp-contract-body li {
  margin-bottom: 4px;
}

.vp-contract-foot {
  padding: 18px 28px;
  border-top: 1px solid var(--line, #e3e7ec);
  flex-shrink: 0;
  background: #fafbfc;
}

.vp-contract-check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  cursor: pointer;
  user-select: none;
}

.vp-contract-check input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.vp-contract-check-box {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  border: 2px solid #c3c9d1;
  border-radius: 5px;
  display: grid;
  place-items: center;
  transition: all 0.2s;
  margin-top: 1px;
}

.vp-contract-check-box svg {
  opacity: 0;
  transition: opacity 0.15s;
}

.vp-contract-check input:checked + .vp-contract-check-box {
  background: #06b894;
  border-color: #06b894;
}

.vp-contract-check input:checked + .vp-contract-check-box svg {
  opacity: 1;
}

.vp-contract-check-text {
  font-size: 0.78rem;
  line-height: 1.5;
  color: #4b5660;
}

.vp-contract-actions {
  display: flex;
  gap: 10px;
  margin-top: 14px;
}

.vp-contract-actions .button {
  flex: 1;
}

@media (max-width: 900px) {
  .home-affiliate-inner {
    grid-template-columns: 1fr;
  }
  .home-affiliate-hero {
    min-height: 280px;
    padding: 32px;
  }
  .home-affiliate-poster {
    max-height: 320px;
  }
  .home-affiliate-details {
    padding: 32px 32px 40px;
  }
  .home-affiliate-details h2 {
    font-size: 1.7rem;
  }
}

@media (max-width: 600px) {
  .home-affiliate-hero {
    min-height: 200px;
    padding: 24px 20px;
  }
  .home-affiliate-poster {
    max-height: 240px;
  }
  .home-affiliate-details {
    padding: 24px 20px 32px;
  }
  .home-affiliate-details h2 {
    font-size: 1.4rem;
  }
  .home-affiliate-tiers {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .home-affiliate-actions {
    flex-direction: column;
    align-items: stretch;
  }
}

@media (max-width: 760px) {
  .vp-contract-card {
    max-height: 95vh;
    border-radius: 12px;
  }
  .vp-contract-head {
    padding: 20px 20px 12px;
  }
  .vp-contract-body {
    padding: 18px 20px;
  }
  .vp-contract-foot {
    padding: 14px 20px;
  }
  .vp-contract-actions {
    flex-direction: column;
  }
}

/* Store refinement */
.store-hero {
  width: min(1240px, calc(100% - 2rem));
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
  margin: 0 auto;
}

.store-hero h1 {
  font-family: var(--font-cinematic);
  font-weight: 400;
  font-size: clamp(2.6rem, 5.4vw, 4.4rem);
  line-height: 0.96;
  letter-spacing: -0.01em;
  text-transform: uppercase;
}

@media (max-width: 760px) {
  .store-filter-bar {
    border-radius: var(--vp-radius-lg);
    border-color: var(--vp-line);
    background: rgba(255, 255, 255, 0.82);
    box-shadow: var(--vp-shadow-soft);
    backdrop-filter: blur(18px);
  }
}

.product-card {
  border-radius: var(--vp-radius-lg);
  border-color: rgba(18, 26, 31, 0.08);
  box-shadow: 0 18px 44px rgba(16, 23, 27, 0.07);
}

.product-card:hover,
.product-card:focus-visible {
  transform: translateY(-6px);
  box-shadow: 0 30px 78px rgba(16, 23, 27, 0.13);
}

.product-photo-stage {
  background:
    linear-gradient(180deg, #f8faf9, #eef5f3),
    #f8faf9;
}

.product-meta h3 {
  font-size: 1.08rem;
  line-height: 1.15;
}

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

.payment-option {
  border-radius: 16px;
  background: #f7faf9;
}

/* Capital desk */
body[data-page="invest"] {
  background:
    linear-gradient(180deg, #fbfcfc 0, #f2f5f5 26rem, #f7f8f8 100%),
    #f7f8f8;
}

body[data-page="invest"] .site-header {
  background: rgba(255, 255, 255, 0.86);
}

.capital-desk-page {
  width: min(1260px, calc(100% - 2rem));
  gap: 0.95rem;
  padding: 1rem 0 2.4rem;
}

.market-ticker {
  border: 1px solid rgba(18, 26, 31, 0.08);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.84);
  color: var(--vp-soft-ink);
  box-shadow: var(--vp-shadow-soft);
  backdrop-filter: blur(18px);
}

.ticker-track span {
  color: var(--vp-muted);
}

.ticker-track strong {
  color: var(--vp-teal-dark);
}

.capital-hero-grid {
  grid-template-columns: minmax(0, 0.92fr) minmax(440px, 1.08fr);
  gap: 1rem;
  border: 1px solid rgba(18, 26, 31, 0.08);
  border-radius: 30px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(238, 247, 244, 0.92)),
    #fff;
  box-shadow: var(--vp-shadow);
}

.capital-copy {
  min-height: 328px;
  padding: 0.35rem;
}

.capital-copy .eyebrow,
.capital-risk-note .eyebrow {
  color: var(--vp-teal-dark);
}

.capital-copy h1 {
  max-width: 15ch;
  color: var(--vp-ink);
  font-size: 3.85rem;
  line-height: 0.98;
}

.capital-copy p:not(.eyebrow) {
  max-width: 43rem;
  color: var(--vp-muted);
}

.capital-actions .button.primary {
  background: #10171a;
  color: #fff;
  box-shadow: 0 18px 38px rgba(16, 23, 27, 0.18);
}

.capital-actions .button.secondary,
.capital-actions .button.glass {
  border-color: rgba(18, 26, 31, 0.12);
  background: rgba(255, 255, 255, 0.78);
  color: var(--vp-ink);
}

.trading-terminal {
  min-height: 330px;
  border-radius: 24px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.025)),
    #111719;
}

.terminal-line {
  stroke-width: 6;
}

.capital-workstation {
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 0.9fr) minmax(260px, 0.62fr);
  gap: 0.9rem;
}

.capital-panel,
.capital-process-grid article,
body[data-page="invest"] .capital-risk-note {
  border-radius: var(--vp-radius-lg);
  border-color: rgba(18, 26, 31, 0.08);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(250, 253, 252, 0.9)),
    #fff;
  box-shadow: var(--vp-shadow-soft);
}

.capital-term-sheet,
body[data-page="invest"] .yield-ticket,
.desk-compliance-card {
  padding: 1.05rem;
}

.desk-panel-header h2,
.desk-compliance-card h2,
.capital-risk-note h2 {
  font-size: 1.24rem;
}

.capital-range-command {
  border-radius: 18px;
  background:
    linear-gradient(180deg, #fbfdfc, #f0f6f4),
    #f6faf8;
}

body[data-page="invest"] #investmentRange {
  height: 6px;
}

.capital-term-grid {
  gap: 0.55rem;
}

body[data-page="invest"] .capital-term-card {
  min-height: 112px;
  border-radius: 20px;
  background: #fbfdfc;
}

body[data-page="invest"] .capital-term-card:has(input:checked),
body[data-page="invest"] .capital-term-card.featured:has(input:checked) {
  border-color: rgba(8, 201, 155, 0.48);
  background:
    linear-gradient(180deg, rgba(232, 251, 245, 0.88), #ffffff),
    #fff;
  box-shadow: 0 18px 38px rgba(8, 201, 155, 0.13);
}

body[data-page="invest"] .capital-term-card strong {
  font-size: 1.72rem;
}

.yield-ticket .projection-main {
  border-radius: 22px;
  background:
    linear-gradient(135deg, #111719, #1d272c),
    #111719;
  color: #fff;
}

.yield-ticket .projection-main span,
.yield-ticket .projection-main small {
  color: rgba(255, 255, 255, 0.68);
}

.yield-ticket .projection-main strong {
  color: #fff;
}

.projection-mini-grid div,
.allocation-dashboard > div {
  border-radius: 18px;
  background: #f7faf9;
}

.desk-compliance-card ul {
  display: grid;
  gap: 0.55rem;
  padding-left: 0;
  list-style: none;
}

.desk-compliance-card li {
  position: relative;
  padding-left: 1.45rem;
  color: var(--vp-muted);
  line-height: 1.45;
}

.desk-compliance-card li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.45rem;
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--vp-teal);
  box-shadow: 0 0 0 5px rgba(8, 201, 155, 0.12);
}

.capital-process-grid {
  gap: 0.85rem;
}

.capital-process-grid article {
  min-height: 120px;
  padding: 1rem;
}

.capital-process-grid article::before {
  height: 2px;
}

body[data-page="invest"] .capital-risk-note {
  grid-template-columns: minmax(220px, 0.34fr) minmax(0, 1fr);
  color: var(--vp-ink);
}

body[data-page="invest"] .capital-risk-note h2 {
  color: var(--vp-ink);
}

body[data-page="invest"] .capital-risk-note p:not(.eyebrow) {
  color: var(--vp-muted);
}

/* Investor contract */
.contract-modal {
  position: fixed;
  inset: 0;
  z-index: 160;
  pointer-events: none;
  opacity: 0;
  transition: opacity 220ms ease;
}

.contract-modal.is-open {
  pointer-events: auto;
  opacity: 1;
}

.contract-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(8, 12, 14, 0.32);
  backdrop-filter: blur(12px);
}

.contract-panel {
  position: absolute;
  top: 1rem;
  right: 1rem;
  bottom: 1rem;
  display: flex;
  width: min(880px, calc(100% - 2rem));
  flex-direction: column;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 30px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(248, 251, 250, 0.94)),
    #fff;
  box-shadow: 0 36px 110px rgba(6, 10, 12, 0.32);
  transform: translateX(22px) scale(0.985);
  transition: transform 260ms ease;
}

.contract-modal.is-open .contract-panel {
  transform: translateX(0) scale(1);
}

.contract-topbar {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1rem 0.85rem;
  border-bottom: 1px solid rgba(18, 26, 31, 0.08);
}

.contract-topbar span {
  color: var(--vp-teal-dark);
  font-size: 0.74rem;
  font-weight: 950;
  text-transform: uppercase;
}

.contract-topbar h2 {
  margin: 0.2rem 0 0;
  font-size: 1.6rem;
}

.contract-login-state {
  display: grid;
  justify-items: center;
  gap: 0.7rem;
  margin: auto;
  width: min(440px, calc(100% - 2rem));
  padding: 1.25rem;
  text-align: center;
}

.contract-login-state h3 {
  margin: 0;
  font-size: 1.4rem;
}

.contract-login-state p {
  margin: 0;
  color: var(--vp-muted);
  line-height: 1.55;
}

.contract-lock-icon {
  position: relative;
  width: 58px;
  height: 58px;
  border-radius: 20px;
  background:
    linear-gradient(180deg, #13d7ac, #08c99b),
    var(--vp-teal);
  box-shadow: 0 18px 36px rgba(8, 201, 155, 0.2);
}

.contract-lock-icon::before {
  content: "";
  position: absolute;
  left: 18px;
  top: 12px;
  width: 22px;
  height: 20px;
  border: 4px solid #fff;
  border-bottom: 0;
  border-radius: 16px 16px 0 0;
}

.contract-lock-icon::after {
  content: "";
  position: absolute;
  left: 14px;
  top: 27px;
  width: 30px;
  height: 19px;
  border-radius: 8px;
  background: #fff;
}

.contract-document {
  display: grid;
  min-height: 0;
  grid-template-rows: auto minmax(0, 1fr) auto;
  gap: 0.85rem;
  padding: 1rem;
}

.contract-summary-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.65rem;
}

.contract-summary-strip div {
  padding: 0.8rem;
  border: 1px solid rgba(18, 26, 31, 0.08);
  border-radius: 18px;
  background: #f7faf9;
}

.contract-summary-strip span {
  display: block;
  color: var(--vp-muted);
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.contract-summary-strip strong {
  display: block;
  margin-top: 0.25rem;
  overflow: hidden;
  font-size: 1rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.contract-scroll {
  min-height: 0;
  overflow: auto;
  padding: 0.9rem;
  border: 1px solid rgba(18, 26, 31, 0.08);
  border-radius: 22px;
  background:
    linear-gradient(180deg, #ffffff, #f8fbfa),
    #fff;
}

.contract-scroll article + article {
  margin-top: 0.85rem;
  padding-top: 0.85rem;
  border-top: 1px solid rgba(18, 26, 31, 0.08);
}

.contract-scroll h3 {
  margin: 0 0 0.28rem;
}

.contract-scroll p {
  margin: 0;
  color: var(--vp-muted);
  line-height: 1.52;
}

.contract-signature-form {
  display: grid;
  grid-template-columns: minmax(0, 0.58fr) minmax(0, 1fr);
  gap: 0.65rem;
  align-items: end;
}

.contract-signature-form label:not(.contract-check) {
  display: grid;
  gap: 0.35rem;
  color: var(--vp-muted);
  font-size: 0.82rem;
  font-weight: 850;
}

.contract-signature-form input[type="number"],
.contract-signature-form input[type="text"] {
  width: 100%;
  height: 46px;
  border: 1px solid rgba(18, 26, 31, 0.12);
  border-radius: 16px;
  background: #fff;
  padding: 0 0.85rem;
}

.contract-check {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 0.7rem;
  align-items: start;
  color: var(--vp-muted);
  font-size: 0.86rem;
  line-height: 1.4;
}

.contract-check input {
  width: 20px;
  height: 20px;
  min-height: 20px;
  margin: 0.05rem 0 0;
  accent-color: var(--vp-teal);
}

.contract-signature-form .button,
.contract-signature-form .discount-message {
  grid-column: 1 / -1;
}

/* Purchase Terms of Sale modal */
.purchase-contract-modal {
  position: fixed;
  inset: 0;
  z-index: 170;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 220ms ease;
}

.purchase-contract-modal.is-open {
  opacity: 1;
  pointer-events: auto;
}

.purchase-contract-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(8, 12, 14, 0.38);
  backdrop-filter: blur(14px);
}

.purchase-contract-card {
  position: relative;
  display: flex;
  flex-direction: column;
  width: min(760px, calc(100% - 2rem));
  max-height: calc(100vh - 4rem);
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 30px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.97), rgba(248, 251, 250, 0.95)),
    #fff;
  box-shadow: 0 36px 110px rgba(6, 10, 12, 0.32);
  transform: scale(0.96);
  transition: transform 260ms ease;
}

.purchase-contract-modal.is-open .purchase-contract-card {
  transform: scale(1);
}

.purchase-contract-head {
  padding: 1.4rem 1.4rem 0.9rem;
  border-bottom: 1px solid rgba(18, 26, 31, 0.08);
}

.purchase-contract-body {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: 1.2rem 1.4rem;
}

.purchase-contract-body h3 {
  margin: 1rem 0 0.25rem;
  font-size: 0.96rem;
}

.purchase-contract-body h3:first-child {
  margin-top: 0;
}

.purchase-contract-body p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
  font-size: 0.88rem;
}

.purchase-contract-body ul {
  margin: 0.3rem 0 0.7rem;
  padding-left: 1.2rem;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.55;
}

.purchase-contract-body strong {
  color: var(--ink);
}

.purchase-contract-foot {
  padding: 1rem 1.4rem 1.2rem;
  border-top: 1px solid rgba(18, 26, 31, 0.08);
}

.purchase-contract-check {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  cursor: pointer;
}

.purchase-contract-check input {
  width: 20px;
  height: 20px;
  min-height: 20px;
  margin: 0.05rem 0 0;
  accent-color: var(--teal);
}

.purchase-contract-check-box {
  display: none;
}

.purchase-contract-check-text {
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.4;
}

/* iOS style account */
body[data-page="dashboard"] {
  background:
    linear-gradient(180deg, #fbfcfc 0, #f2f4f5 20rem, #f7f8f8 100%),
    #f7f8f8;
}

.ios-account-main {
  width: 100%;
}

.ios-account-shell {
  width: min(1180px, calc(100% - 2rem));
  display: grid;
  grid-template-columns: 310px minmax(0, 1fr);
  gap: 1rem;
  align-items: start;
  margin: 0 auto;
  padding: 1.25rem 0 2.4rem;
}

.ios-settings-sidebar,
.ios-settings-hero,
.ios-settings-card {
  border: 1px solid rgba(18, 26, 31, 0.08);
  border-radius: var(--vp-radius-lg);
  background: rgba(255, 255, 255, 0.82);
  box-shadow: var(--vp-shadow-soft);
  backdrop-filter: blur(18px) saturate(1.12);
}

.ios-settings-sidebar {
  position: sticky;
  top: 126px;
  display: grid;
  gap: 0.45rem;
  padding: 0.8rem;
}

.ios-profile-tile {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr);
  gap: 0.75rem;
  align-items: center;
  padding: 0.75rem;
  border-radius: 22px;
  background:
    linear-gradient(180deg, rgba(235, 255, 249, 0.8), rgba(255, 255, 255, 0.72)),
    #fff;
}

.ios-profile-tile img {
  width: 54px;
  height: 54px;
  object-fit: contain;
}

.ios-profile-tile span {
  color: var(--vp-muted);
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.ios-profile-tile h1 {
  margin: 0.12rem 0;
  overflow: hidden;
  color: var(--vp-ink);
  font-size: 1.22rem;
  line-height: 1.1;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ios-profile-tile p {
  margin: 0;
  overflow: hidden;
  color: var(--vp-muted);
  font-size: 0.84rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ios-settings-sidebar a {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr);
  gap: 0.65rem;
  align-items: center;
  min-height: 48px;
  padding: 0.45rem 0.55rem;
  border-radius: 16px;
  color: var(--vp-soft-ink);
  font-weight: 850;
}

.ios-settings-sidebar a:hover {
  background: rgba(8, 201, 155, 0.08);
}

.settings-symbol {
  position: relative;
  display: inline-grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 11px;
  background: #111719;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.settings-symbol.user {
  background: linear-gradient(180deg, #15dbb0, #08a986);
}

.settings-symbol.chart {
  background: linear-gradient(180deg, #2f6fda, #1e4a9f);
}

.settings-symbol.code {
  background: linear-gradient(180deg, #c7a75a, #94743a);
}

.settings-symbol.bank {
  background: linear-gradient(180deg, #252f35, #111719);
}

.settings-symbol.user::before {
  width: 12px;
  height: 12px;
  top: 7px;
  border-radius: 999px;
  background: #fff;
}

.settings-symbol.user::after {
  width: 20px;
  height: 10px;
  bottom: 7px;
  border-radius: 12px 12px 6px 6px;
  background: #fff;
}

.settings-symbol.chart::before {
  left: 9px;
  bottom: 8px;
  width: 4px;
  height: 11px;
  border-radius: 999px;
  background: #fff;
  box-shadow: 7px -5px 0 #fff, 14px -11px 0 #fff;
}

.settings-symbol.code::before {
  width: 17px;
  height: 11px;
  border-left: 3px solid #fff;
  border-right: 3px solid #fff;
  transform: skewX(-12deg);
}

.settings-symbol.bank::before {
  left: 8px;
  right: 8px;
  bottom: 9px;
  height: 11px;
  border-top: 3px solid #fff;
  border-bottom: 3px solid #fff;
}

.settings-symbol.bank::after {
  left: 8px;
  right: 8px;
  top: 8px;
  height: 0;
  border-left: 9px solid transparent;
  border-right: 9px solid transparent;
  border-bottom: 7px solid #fff;
}

.ios-settings-content {
  display: grid;
  gap: 1rem;
  min-width: 0;
}

.ios-settings-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.15rem;
}

.ios-settings-hero h2 {
  margin: 0;
  font-size: 2rem;
  line-height: 1.05;
}

.ios-settings-hero p {
  margin: 0.35rem 0 0;
  color: var(--vp-muted);
}

.ios-settings-hero > strong {
  flex: 0 0 auto;
  padding: 0.65rem 0.8rem;
  border-radius: 999px;
  background: #111719;
  color: #fff;
  font-size: 0.9rem;
}

.ios-settings-card {
  padding: 0.75rem;
}

.ios-card-title {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.55rem 0.45rem 0.8rem;
}

.ios-card-title h3 {
  margin: 0;
  font-size: 1.08rem;
}

.ios-setting-row {
  display: grid;
  grid-template-columns: minmax(120px, 0.32fr) minmax(0, 1fr);
  gap: 0.8rem;
  align-items: center;
  min-height: 58px;
  padding: 0.55rem 0.45rem;
  border-top: 1px solid rgba(18, 26, 31, 0.07);
}

.ios-setting-row > span,
.ios-balance-list span,
.ios-micro-grid span,
.ios-code-card span {
  color: var(--vp-muted);
  font-size: 0.82rem;
  font-weight: 850;
}

.ios-setting-row input,
.ios-setting-row select {
  width: 100%;
  min-height: 44px;
  border: 1px solid transparent;
  border-radius: 14px;
  background: #f4f7f6;
  padding: 0 0.78rem;
  color: var(--vp-ink);
}

.ios-setting-row input:focus,
.ios-setting-row select:focus,
.contract-signature-form input:focus,
body[data-page="checkout"] input:focus,
body[data-page="checkout"] select:focus {
  border-color: rgba(8, 201, 155, 0.46);
  outline: 0;
  box-shadow: 0 0 0 4px rgba(8, 201, 155, 0.11);
}

.ios-balance-card {
  display: grid;
  grid-template-columns: 230px minmax(0, 1fr);
  gap: 0.85rem;
  align-items: center;
  padding: 0.55rem 0.45rem 0.9rem;
}

.ios-balance-card .donut-chart {
  width: 220px;
  height: 220px;
  margin: 0 auto;
}

.ios-balance-list,
.ios-micro-grid {
  display: grid;
  gap: 0.55rem;
}

.ios-balance-list div,
.ios-micro-grid div,
.ios-code-card {
  padding: 0.78rem;
  border-radius: 18px;
  background: #f7faf9;
}

.ios-balance-list div {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
}

.ios-micro-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  padding: 0.5rem 0.45rem;
}

.ios-code-card {
  display: grid;
  gap: 0.25rem;
  margin: 0.25rem 0.45rem 0.75rem;
  background:
    linear-gradient(135deg, #111719, #1e292d),
    #111719;
  color: #fff;
}

.ios-code-card span,
.ios-code-card small {
  color: rgba(255, 255, 255, 0.68);
}

.ios-code-card strong {
  font-size: 1.4rem;
}

.ios-hidden-metrics {
  display: none;
}

/* Checkout */
body[data-page="checkout"] .page-title.compact {
  padding-top: 2.2rem;
  padding-bottom: 0.75rem;
}

body[data-page="checkout"] .page-title h1 {
  font-size: 3.15rem;
  line-height: 1;
}

body[data-page="checkout"] .page-title p:not(.eyebrow) {
  max-width: 52rem;
  color: var(--vp-muted);
}

body[data-page="checkout"] .checkout-steps {
  display: flex;
  gap: 0.55rem;
  margin-bottom: 0.85rem;
}

body[data-page="checkout"] .step-pill {
  flex: 0 1 auto;
  min-height: 38px;
  padding: 0.38rem 0.72rem;
  border: 1px solid rgba(18, 26, 31, 0.08);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.82);
  color: var(--vp-muted);
  box-shadow: 0 10px 24px rgba(16, 23, 27, 0.045);
}

body[data-page="checkout"] .step-pill.active {
  color: var(--vp-ink);
}

.invoice-layout.checkout-layout {
  width: min(1260px, calc(100% - 2rem));
  display: grid;
  grid-template-columns: minmax(0, 1fr) 390px;
  gap: 1rem;
  align-items: start;
  padding-bottom: 2.6rem;
}

body[data-page="checkout"] .invoice-form {
  display: grid;
  gap: 0.85rem;
  border: 0;
  background: transparent;
  box-shadow: none;
}

body[data-page="checkout"] .checkout-block {
  margin: 0;
  padding: 0.9rem;
  border: 1px solid rgba(18, 26, 31, 0.08);
  border-radius: var(--vp-radius-lg);
  background: rgba(255, 255, 255, 0.88);
  box-shadow: var(--vp-shadow-soft);
  backdrop-filter: blur(16px);
}

body[data-page="checkout"] .block-heading {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 0.7rem;
  align-items: center;
  margin-bottom: 0.75rem;
}

body[data-page="checkout"] .block-heading > div {
  min-width: 0;
}

body[data-page="checkout"] .block-heading h2 {
  margin: 0;
  font-size: 1.08rem;
  line-height: 1.2;
  overflow-wrap: break-word;
}

body[data-page="checkout"] .block-heading p {
  display: none;
}

body[data-page="checkout"] .mini-code {
  flex: 0 0 auto;
  width: 34px;
  height: 34px;
  margin: 0;
  border-radius: 12px;
  background: #111719;
  color: #fff;
}

body[data-page="checkout"] .form-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.65rem;
}

body[data-page="checkout"] label {
  display: grid;
  gap: 0.35rem;
  color: var(--vp-muted);
  font-size: 0.82rem;
  font-weight: 850;
}

body[data-page="checkout"] input,
body[data-page="checkout"] select {
  width: 100%;
  min-height: 45px;
  border: 1px solid rgba(18, 26, 31, 0.1);
  border-radius: 16px;
  background: #f8fbfa;
  padding: 0 0.78rem;
  color: var(--vp-ink);
}

/* Country selector: opens the region/currency modal (no free-text typing) */
body[data-page="checkout"] .country-selector {
  width: 100%;
  min-height: 45px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  border: 1px solid rgba(18, 26, 31, 0.1);
  border-radius: 16px;
  background: #f8fbfa;
  padding: 0 0.78rem;
  color: var(--vp-ink);
  font: inherit;
  font-size: 0.92rem;
  font-weight: 600;
  cursor: pointer;
  text-align: left;
}
body[data-page="checkout"] .country-selector:hover {
  border-color: rgba(8, 201, 155, 0.5);
  background: #f0fbf8;
}
body[data-page="checkout"] .country-selector-caret {
  color: var(--vp-teal-dark);
  font-size: 0.8rem;
}

body[data-page="checkout"] .discount-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.65rem;
  align-items: end;
}

body[data-page="checkout"] .invoice-actions {
  position: static;
  z-index: 3;
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  justify-content: flex-end;
  padding: 0.65rem;
  border: 1px solid rgba(18, 26, 31, 0.08);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: var(--vp-shadow-soft);
  backdrop-filter: blur(18px);
}

body[data-page="checkout"] .invoice-preview {
  position: sticky;
  top: 128px;
  display: grid;
  gap: 0.85rem;
  padding: 0.9rem;
  border-radius: var(--vp-radius-lg);
  border-color: rgba(18, 26, 31, 0.08);
  background: rgba(255, 255, 255, 0.88);
  box-shadow: var(--vp-shadow);
  backdrop-filter: blur(18px);
}

body[data-page="checkout"] .checkout-assist {
  padding: 0.95rem;
  border-radius: 22px;
  background:
    linear-gradient(135deg, #111719, #1d272c),
    #111719;
}

body[data-page="checkout"] .checkout-assist h2 {
  margin: 0;
  font-size: 1.22rem;
}

body[data-page="checkout"] .checkout-assist p:not(.eyebrow) {
  margin: 0.45rem 0 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.9rem;
  line-height: 1.45;
}

body[data-page="checkout"] .invoice-paper {
  padding: 1rem;
  border: 1px solid rgba(18, 26, 31, 0.08);
  border-radius: 22px;
  background:
    linear-gradient(180deg, #ffffff, #f8fbfa),
    #fff;
  box-shadow: none;
}

body[data-page="checkout"] .paper-top img {
  width: 150px;
}

body[data-page="checkout"] .fine-print {
  margin: 0;
  font-size: 0.78rem;
  line-height: 1.45;
}

@media (prefers-reduced-motion: no-preference) {
  .product-card,
  .home-focus-card,
  .capital-panel,
  .capital-process-grid article,
  .ios-settings-card,
  .checkout-block {
    animation: revealUpSoft 620ms ease both;
  }

  .product-card:nth-child(2),
  .capital-workstation > *:nth-child(2),
  .ios-settings-card:nth-child(3),
  .checkout-block:nth-child(2) {
    animation-delay: 80ms;
  }

  .product-card:nth-child(3),
  .capital-workstation > *:nth-child(3),
  .ios-settings-card:nth-child(4),
  .checkout-block:nth-child(3) {
    animation-delay: 150ms;
  }
}

@media (max-width: 1120px) {
  .capital-hero-grid,
  .capital-workstation,
  body[data-page="invest"] .capital-risk-note,
  .ios-account-shell,
  .invoice-layout.checkout-layout {
    grid-template-columns: 1fr;
  }

  .ios-settings-sidebar,
  body[data-page="checkout"] .invoice-preview {
    position: static;
  }

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

  .ios-profile-tile {
    grid-column: 1 / -1;
  }
}

@media (max-width: 860px) {
  .announcement-bar {
    justify-content: flex-start;
    overflow-x: auto;
    scrollbar-width: none;
  }

  .announcement-bar::-webkit-scrollbar {
    display: none;
  }

  .site-header {
    top: 34px;
  }

  body[data-page="home"] .clean-home-hero {
    min-height: calc(100svh - 150px);
    padding: 2rem 1rem;
  }

  body[data-page="home"] .clean-home-hero h1,
  .capital-copy h1,
  .store-hero h1,
  body[data-page="checkout"] .page-title h1 {
    font-size: 2.55rem;
  }

  .home-assurance-strip,
  .home-focus-panel,
  .contract-summary-strip,
  .ios-balance-card,
  .ios-micro-grid,
  body[data-page="checkout"] .form-grid,
  body[data-page="checkout"] .discount-row {
    grid-template-columns: 1fr;
  }

  .home-assurance-strip {
    margin-top: 1rem;
  }

  .store-hero {
    display: grid;
    align-items: start;
  }

  .capital-copy {
    min-height: 0;
  }

  .trading-terminal {
    min-height: 270px;
  }

  .contract-panel {
    inset: 0.5rem;
    width: auto;
    border-radius: 24px;
  }

  .contract-signature-form,
  .ios-setting-row {
    grid-template-columns: 1fr;
  }

  .ios-settings-sidebar {
    display: flex;
    overflow-x: auto;
  }

  .ios-settings-sidebar a {
    min-width: 132px;
  }

  .ios-profile-tile {
    min-width: 240px;
  }
}

@media (max-width: 560px) {
  .site-header {
    grid-template-columns: 1fr auto;
    gap: 0.65rem;
  }

  .site-nav.visual-nav {
    grid-column: 1 / -1;
    justify-self: stretch;
    justify-content: space-between;
  }

  .site-nav.visual-nav a,
  .site-nav.visual-nav a[href="./dashboard.html"] {
    width: auto;
    flex: 1 1 0;
  }

  .brand img {
    width: 150px;
  }

  body[data-page="home"] .clean-home-hero .homepage-hero-copy {
    padding: 1rem;
  }

  .capital-hero-grid,
  .capital-workstation,
  .contract-document,
  .ios-settings-card,
  body[data-page="checkout"] .checkout-block,
  body[data-page="checkout"] .invoice-preview {
    border-radius: 20px;
  }

  .terminal-stats strong {
    font-size: 1.05rem;
  }

  body[data-page="checkout"] .invoice-actions {
    border-radius: 20px;
  }

  body[data-page="checkout"] .invoice-actions .button {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .announcement-bar::before,
  .home-focus-card,
  .home-assurance-strip article,
  .product-card,
  .capital-panel,
  .capital-process-grid article,
  .ios-settings-card,
  .checkout-block {
    animation: none;
  }

  .home-focus-card::after,
  .home-assurance-strip article::after,
  .capital-panel::after,
  .ios-settings-card::after,
  .checkout-block::after {
    display: none;
  }
}

/* Shop-only promo bar, proper symbols, and account access */
.announcement-bar {
  display: none;
}

body[data-page="store"] .announcement-bar {
  display: flex;
}

.site-header,
body[data-page="home"] .site-header,
body[data-page="invest"] .site-header,
body[data-page="dashboard"] .site-header,
body[data-page="checkout"] .site-header,
body[data-page="rent"] .site-header {
  top: 0;
}

body[data-page="store"] .site-header {
  top: 0;
}

.nav-icon,
.button-icon,
.settings-symbol svg,
.profile-symbol svg,
.glass-symbol svg,
.contract-lock-icon svg {
  display: block;
  fill: none;
  stroke: currentColor;
}

.nav-icon {
  width: 26px;
  height: 26px;
  color: #111719;
  stroke-width: 1.9;
}

.site-nav.visual-nav a,
.site-nav.visual-nav a[href="./dashboard.html"] {
  width: 58px;
  min-height: 50px;
}

.site-nav.visual-nav a.active .nav-icon,
.site-nav.visual-nav a:hover .nav-icon {
  color: var(--vp-teal-dark);
}

.site-nav.visual-nav a img {
  display: none;
}

.button-icon {
  width: 20px;
  height: 20px;
  color: currentColor;
}

.cart-button {
  min-width: 72px;
}

.profile-symbol {
  display: grid;
  width: 54px;
  height: 54px;
  place-items: center;
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(17, 23, 25, 0.96), rgba(30, 40, 44, 0.96)),
    #111719;
  color: #16d8b0;
  box-shadow: 0 16px 32px rgba(17, 23, 25, 0.14);
}

.profile-symbol svg {
  width: 30px;
  height: 30px;
}

.glass-symbol.svg-symbol {
  color: var(--vp-teal-dark);
}

.glass-symbol.svg-symbol svg {
  width: 25px;
  height: 25px;
}

.settings-symbol svg {
  width: 21px;
  height: 21px;
  color: #fff;
}

.settings-symbol::before,
.settings-symbol::after,
.glass-symbol.svg-symbol::before,
.glass-symbol.svg-symbol::after,
.contract-lock-icon::before,
.contract-lock-icon::after {
  display: none;
}

.contract-lock-icon {
  display: grid;
  place-items: center;
  color: #fff;
}

.contract-lock-icon svg {
  width: 30px;
  height: 30px;
}

.account-status-pill {
  width: fit-content;
  margin: 0 0.45rem 0.45rem;
  padding: 0.42rem 0.68rem;
  border: 1px solid rgba(18, 26, 31, 0.08);
  border-radius: 999px;
  background: #fff;
  color: var(--vp-muted);
  font-size: 0.8rem;
  font-weight: 850;
}

.account-status-pill[data-state="signed-in"] {
  border-color: rgba(8, 201, 155, 0.22);
  background: #e8fbf5;
  color: var(--vp-teal-dark);
}

.account-auth-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding: 0.75rem 0.45rem 0.2rem;
}

.account-auth-actions .button {
  min-height: 42px;
}

#accountAuthMessage {
  margin: 0.55rem 0.45rem 0;
}

#accountAuthMessage[data-state="success"] {
  color: var(--vp-teal-dark);
}

#accountAuthMessage[data-state="error"] {
  color: #c83d3d;
}

@media (max-width: 860px) {
  body[data-page="store"] .site-header {
    top: 0;
  }

  .site-header,
  body[data-page="home"] .site-header,
  body[data-page="invest"] .site-header,
  body[data-page="dashboard"] .site-header,
  body[data-page="checkout"] .site-header,
  body[data-page="rent"] .site-header {
    top: 0;
  }

  body[data-page="store"] .site-header {
    top: 0;
  }
}

@media (max-width: 560px) {
  .site-nav.visual-nav a,
  .site-nav.visual-nav a[href="./dashboard.html"] {
    min-height: 48px;
  }

  .nav-icon {
    width: 24px;
    height: 24px;
  }
}

/* Folder-safe icon and mobile account refinements */
.site-nav.visual-nav a img,
.site-nav.visual-nav a[href="./dashboard.html"] img {
  display: block !important;
  width: 46px;
  height: 46px;
  object-fit: contain;
  filter: drop-shadow(0 8px 14px rgba(17, 23, 25, 0.12)) saturate(1.08);
}

.site-nav.visual-nav .nav-icon {
  display: none;
}

.site-nav.visual-nav a:hover img,
.site-nav.visual-nav a.active img {
  transform: translateY(-2px) scale(1.04);
  filter: drop-shadow(0 12px 18px rgba(17, 23, 25, 0.15)) saturate(1.16);
}

.button-icon path,
.button-icon circle,
.glass-symbol svg path,
.glass-symbol svg circle,
.settings-symbol svg path,
.settings-symbol svg circle,
.settings-symbol svg rect,
.profile-symbol svg path,
.profile-symbol svg circle,
.contract-lock-icon svg path,
.contract-lock-icon svg rect {
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.profile-symbol img {
  width: 46px;
  height: 46px;
  object-fit: contain;
}

.settings-symbol.machine-icon {
  background: linear-gradient(180deg, #14c9a4, #0b8d74);
}

.settings-symbol.notice {
  background: linear-gradient(180deg, #5e6970, #252f35);
}

.settings-help {
  margin: 0 0.45rem 0.7rem;
  color: var(--vp-muted);
  font-size: 0.9rem;
  line-height: 1.5;
}

.machine-settings-list {
  display: grid;
  gap: 0.55rem;
  padding: 0.45rem;
}

.machine-settings-list article {
  display: grid;
  grid-template-columns: 62px minmax(0, 1fr) auto;
  gap: 0.75rem;
  align-items: center;
  padding: 0.65rem;
  border-radius: 18px;
  background: #f7faf9;
}

.machine-settings-list img {
  width: 58px;
  height: 58px;
  object-fit: contain;
}

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

.machine-settings-list span {
  margin-top: 0.2rem;
  color: var(--vp-muted);
  font-size: 0.82rem;
}

.machine-settings-list em {
  border-radius: 999px;
  background: #e8fbf5;
  color: var(--vp-teal-dark);
  padding: 0.28rem 0.52rem;
  font-size: 0.74rem;
  font-style: normal;
  font-weight: 900;
}

.machine-owner-console {
  display: grid;
  grid-template-columns: 0.92fr 1.55fr;
  gap: 0.8rem;
  padding: 0.45rem;
}

.machine-picker {
  display: grid;
  align-content: start;
  gap: 0.55rem;
}

.owner-machine-card {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr) auto;
  gap: 0.7rem;
  align-items: center;
  width: 100%;
  min-height: 76px;
  border: 1px solid rgba(18, 26, 31, 0.08);
  border-radius: 20px;
  background: #f8fbfa;
  padding: 0.6rem;
  color: inherit;
  cursor: pointer;
  text-align: left;
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    box-shadow 180ms ease,
    background 180ms ease;
}

.owner-machine-card:hover,
.owner-machine-card.active {
  transform: translateY(-1px);
  border-color: rgba(8, 201, 155, 0.34);
  background: #fff;
  box-shadow: 0 18px 34px rgba(17, 23, 25, 0.1);
}

.owner-machine-card img {
  width: 56px;
  height: 56px;
  object-fit: contain;
}

.owner-machine-card strong,
.owner-machine-card small {
  display: block;
}

.owner-machine-card strong {
  line-height: 1.15;
}

.owner-machine-card small {
  margin-top: 0.24rem;
  color: var(--vp-muted);
  font-size: 0.76rem;
  line-height: 1.35;
}

.owner-machine-card em,
.machine-ledger-row em {
  border-radius: 999px;
  background: #e8fbf5;
  color: var(--vp-teal-dark);
  padding: 0.25rem 0.5rem;
  font-size: 0.72rem;
  font-style: normal;
  font-weight: 950;
  white-space: nowrap;
}

.owner-machine-card em.is-low,
.machine-ledger-row em.is-low {
  background: #fff4df;
  color: #9a640f;
}

.machine-command-centre {
  display: grid;
  gap: 0.75rem;
  min-width: 0;
}

.machine-command-header,
.machine-ledger-toolbar {
  display: flex;
  justify-content: space-between;
  gap: 0.8rem;
  align-items: center;
  padding: 0.75rem;
  border: 1px solid rgba(18, 26, 31, 0.08);
  border-radius: 20px;
  background:
    linear-gradient(135deg, rgba(8, 201, 155, 0.1), rgba(255, 255, 255, 0.78)),
    #fff;
}

.machine-command-header h4 {
  margin: 0.1rem 0 0.2rem;
  font-size: 1rem;
}

.machine-command-header p,
.machine-ledger-toolbar p {
  margin: 0;
  color: var(--vp-muted);
  font-size: 0.84rem;
  line-height: 1.4;
}

.machine-command-header > strong {
  border-radius: 999px;
  background: #111719;
  color: #fff;
  padding: 0.42rem 0.68rem;
  font-size: 0.76rem;
  white-space: nowrap;
}

.machine-accounting-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.55rem;
}

.machine-accounting-grid div {
  min-width: 0;
  padding: 0.72rem;
  border-radius: 18px;
  background: #f6faf8;
}

.machine-accounting-grid span,
.machine-ledger-row span {
  display: block;
  color: var(--vp-muted);
  font-size: 0.72rem;
  font-weight: 850;
}

.machine-accounting-grid strong,
.machine-ledger-row strong {
  display: block;
  margin-top: 0.18rem;
}

.machine-product-form {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.55rem;
  padding: 0.72rem;
  border: 1px solid rgba(18, 26, 31, 0.08);
  border-radius: 22px;
  background: #fff;
}

.machine-product-form label {
  display: grid;
  gap: 0.32rem;
  color: var(--vp-muted);
  font-size: 0.78rem;
  font-weight: 850;
}

.machine-product-form input,
.machine-product-form select {
  width: 100%;
  min-width: 0;
  min-height: 42px;
  border: 1px solid rgba(18, 26, 31, 0.1);
  border-radius: 14px;
  background: #f6faf8;
  padding: 0 0.72rem;
}

.machine-upload-field,
.machine-form-actions {
  grid-column: span 3;
}

.machine-form-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  justify-content: space-between;
}

.machine-form-actions .discount-message {
  margin: 0;
  text-align: right;
}

.machine-ledger {
  display: grid;
  gap: 0.45rem;
}

.machine-ledger-row {
  display: grid;
  grid-template-columns: 46px minmax(120px, 1.5fr) repeat(6, minmax(54px, 0.72fr)) auto 34px;
  gap: 0.45rem;
  align-items: center;
  padding: 0.55rem;
  border: 1px solid rgba(18, 26, 31, 0.07);
  border-radius: 18px;
  background: #fff;
}

.machine-ledger-row img {
  width: 42px;
  height: 42px;
  object-fit: contain;
}

.machine-ledger-name span {
  margin-top: 0.18rem;
}

.machine-empty-ledger {
  display: grid;
  gap: 0.25rem;
  padding: 1rem;
  border: 1px dashed rgba(18, 26, 31, 0.18);
  border-radius: 18px;
  background: #f8fbfa;
}

.machine-empty-ledger span {
  color: var(--vp-muted);
  font-size: 0.88rem;
}

.contract-bank-form {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.65rem;
  margin: 0;
  padding: 0.8rem;
  border: 1px solid rgba(18, 26, 31, 0.08);
  border-radius: 20px;
  background: #f8fbfa;
}

.contract-bank-form legend {
  padding: 0 0.35rem;
  color: var(--vp-teal-dark);
  font-size: 0.78rem;
  font-weight: 950;
  text-transform: uppercase;
}

.contract-bank-form label {
  display: grid;
  gap: 0.35rem;
  color: var(--vp-muted);
  font-size: 0.82rem;
  font-weight: 850;
}

.contract-bank-form input,
.contract-bank-form select {
  width: 100%;
  min-height: 44px;
  border: 1px solid rgba(18, 26, 31, 0.12);
  border-radius: 15px;
  background: #fff;
  padding: 0 0.78rem;
}

@media (max-width: 860px) {
  html,
  body {
    max-width: 100%;
    overflow-x: hidden;
  }

  .ios-account-shell {
    width: min(100% - 1rem, 1180px);
    gap: 0.8rem;
    overflow: visible;
  }

  .ios-settings-sidebar {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
    max-width: 100%;
    overflow: visible !important;
    gap: 0.5rem;
  }

  .ios-settings-sidebar a {
    width: 100%;
    min-width: 0;
    min-height: 48px;
    padding-right: 0.7rem;
    white-space: normal;
  }

  .ios-profile-tile {
    grid-column: 1 / -1;
    min-width: 0;
  }

  .ios-settings-content,
  .ios-settings-card,
  .ios-setting-row,
  .account-auth-actions,
  .machine-settings-list,
  .machine-owner-console,
  .machine-command-centre,
  .machine-ledger,
  .ios-micro-grid,
  .ios-balance-card,
  .ios-balance-list {
    min-width: 0;
    max-width: 100%;
  }

  .machine-owner-console {
    grid-template-columns: 1fr;
  }

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

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

  .machine-upload-field,
  .machine-form-actions {
    grid-column: span 2;
  }

  .machine-ledger-row {
    grid-template-columns: 42px minmax(0, 1fr) auto;
  }

  .machine-ledger-row > div:not(.machine-ledger-name) {
    padding: 0.42rem;
    border-radius: 12px;
    background: #f6faf8;
  }

  .ios-setting-row input,
  .ios-setting-row select,
  .machine-product-form input,
  .machine-product-form select,
  .contract-bank-form input,
  .contract-bank-form select {
    min-width: 0;
  }

  .contract-bank-form {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 520px) {
  .ios-settings-sidebar {
    grid-template-columns: 1fr;
  }

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

  .machine-settings-list article {
    grid-template-columns: 52px minmax(0, 1fr);
  }

  .machine-settings-list em {
    grid-column: 2;
    width: fit-content;
  }

  .machine-command-header,
  .machine-ledger-toolbar,
  .machine-form-actions {
    align-items: start;
    flex-direction: column;
  }

  .machine-accounting-grid,
  .machine-product-form {
    grid-template-columns: 1fr;
  }

  .machine-upload-field,
  .machine-form-actions {
    grid-column: auto;
  }

  .owner-machine-card {
    grid-template-columns: 52px minmax(0, 1fr);
  }

  .owner-machine-card em {
    grid-column: 2;
    width: fit-content;
  }

  .machine-ledger-row {
    grid-template-columns: 40px minmax(0, 1fr);
  }

  .machine-ledger-row em,
  .machine-ledger-row .icon-button {
    grid-column: 2;
    width: fit-content;
  }

  .machine-form-actions .discount-message {
    text-align: left;
  }
}

/* Owner machine console refresh */
.machine-ios-console {
  display: grid;
  gap: 0.85rem;
  padding: 0.45rem;
}

.machine-connect-card {
  display: grid;
  grid-template-columns: minmax(220px, 0.9fr) minmax(180px, 0.5fr);
  gap: 0.75rem;
  align-items: start;
  padding: 0.85rem;
  border: 1px solid rgba(18, 26, 31, 0.08);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.94), rgba(237, 246, 243, 0.84)),
    #fff;
}

.machine-connect-copy {
  min-width: 0;
}

.machine-connect-copy h4 {
  margin: 0.18rem 0 0.3rem;
  font-size: 1.18rem;
  line-height: 1.15;
}

.machine-connect-copy p,
.machine-pairing-steps span,
.machine-pairing-check label,
.machine-connect-form label {
  color: var(--vp-muted);
  font-size: 0.84rem;
  line-height: 1.45;
}

.pairing-code-card {
  display: grid;
  gap: 0.5rem;
  min-width: 0;
  padding: 0.8rem;
  border-radius: 8px;
  background: #111719;
  color: #fff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.pairing-code-card span,
.machine-rail-title span,
.mini-code {
  color: var(--vp-muted);
  font-size: 0.72rem;
  font-weight: 950;
  letter-spacing: 0;
  text-transform: uppercase;
}

body[data-page="dashboard"] .machine-ios-console .mini-code {
  display: inline-flex;
  width: auto;
  height: auto;
  min-height: 1.7rem;
  margin-bottom: 0;
  padding: 0 0.5rem;
  border-radius: 999px;
}

.pairing-code-card strong {
  overflow-wrap: anywhere;
  font-size: clamp(1.35rem, 4vw, 2rem);
  letter-spacing: 0;
}

.pairing-code-card .button {
  width: 100%;
  justify-content: center;
}

.machine-pairing-steps {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.55rem;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: pair-step;
}

.machine-pairing-steps li {
  display: grid;
  gap: 0.22rem;
  min-width: 0;
  padding: 0.7rem;
  border-radius: 8px;
  background: #f7faf9;
  counter-increment: pair-step;
}

.machine-pairing-steps strong::before {
  content: counter(pair-step);
  display: inline-grid;
  width: 22px;
  height: 22px;
  place-items: center;
  margin-right: 0.35rem;
  border-radius: 999px;
  background: #162024;
  color: #fff;
  font-size: 0.72rem;
}

.machine-pairing-steps strong {
  color: var(--vp-ink);
  font-size: 0.84rem;
}

.machine-connect-form,
.machine-pairing-check {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr)) auto;
  gap: 0.55rem;
  align-items: end;
}

.machine-pairing-check {
  grid-template-columns: minmax(0, 1fr) auto;
  padding-top: 0.15rem;
}

.machine-connect-form label,
.machine-pairing-check label {
  display: grid;
  gap: 0.32rem;
  font-weight: 850;
}

.machine-connect-form input,
.machine-connect-form select,
.machine-pairing-check input {
  width: 100%;
  min-width: 0;
  min-height: 43px;
  border: 1px solid rgba(18, 26, 31, 0.1);
  border-radius: 8px;
  background: #fff;
  padding: 0 0.72rem;
  color: var(--vp-ink);
}

.machine-workspace {
  display: grid;
  grid-template-columns: minmax(240px, 0.72fr) minmax(0, 1.55fr);
  gap: 0.85rem;
  align-items: start;
}

.machine-rail,
.machine-command-centre {
  min-width: 0;
  padding: 0.72rem;
  border: 1px solid rgba(18, 26, 31, 0.08);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.9);
}

.machine-rail-title {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.6rem;
}

.machine-rail-title #machinePortfolioCount {
  border-radius: 999px;
  background: #eef3f1;
  color: var(--vp-soft-ink);
  padding: 0.28rem 0.52rem;
  font-size: 0.72rem;
  font-weight: 900;
  white-space: nowrap;
}

.owner-machine-card {
  border-radius: 8px;
  background: #fff;
}

.owner-machine-card em.is-connected {
  background: #e8fbf5;
  color: var(--vp-teal-dark);
}

.owner-empty-state {
  text-align: left;
}

.machine-command-header,
.machine-ledger-toolbar {
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(17, 23, 25, 0.04), rgba(8, 201, 155, 0.08)),
    #fff;
}

.machine-tab-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  padding: 0.25rem;
  border: 1px solid rgba(18, 26, 31, 0.08);
  border-radius: 8px;
  background: #f4f7f6;
}

.machine-tab-bar button {
  min-height: 36px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: var(--vp-muted);
  padding: 0 0.75rem;
  font-weight: 900;
  cursor: pointer;
}

.machine-tab-bar button.active {
  background: #111719;
  color: #fff;
  box-shadow: 0 8px 18px rgba(17, 23, 25, 0.12);
}

.machine-tab-panel {
  display: none;
}

.machine-tab-panel.active {
  display: grid;
  gap: 0.75rem;
}

.machine-status-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.55rem;
}

.machine-status-grid article,
.machine-accounting-grid div,
.machine-next-actions,
.machine-accounting-note {
  min-width: 0;
  border-radius: 8px;
  background: #f7faf9;
  padding: 0.72rem;
}

.machine-status-grid span,
.machine-next-actions li,
.machine-accounting-note p {
  color: var(--vp-muted);
  font-size: 0.82rem;
}

.machine-status-grid strong {
  display: block;
  margin-top: 0.2rem;
  overflow-wrap: anywhere;
}

.machine-next-actions {
  display: grid;
  gap: 0.45rem;
}

.machine-next-actions ul {
  display: grid;
  gap: 0.35rem;
  margin: 0;
  padding-left: 1.1rem;
}

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

.machine-accounting-grid strong {
  overflow-wrap: anywhere;
  font-size: 1.04rem;
}

.machine-accounting-note {
  display: grid;
  gap: 0.25rem;
}

.machine-accounting-note p {
  margin: 0;
  line-height: 1.45;
}

.machine-product-uploader {
  border: 1px solid rgba(18, 26, 31, 0.08);
  border-radius: 8px;
  background: #fff;
  overflow: hidden;
}

.machine-product-uploader summary {
  min-height: 46px;
  padding: 0.8rem;
  cursor: pointer;
  color: var(--vp-ink);
  font-weight: 950;
}

.machine-product-form,
.machine-ledger-row,
.machine-empty-ledger {
  border-radius: 8px;
}

@media (max-width: 980px) {
  .machine-connect-card,
  .machine-workspace {
    grid-template-columns: 1fr;
  }

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

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

  .machine-connect-form .button {
    grid-column: 1 / -1;
  }

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

@media (max-width: 560px) {
  .machine-connect-form,
  .machine-pairing-check,
  .machine-pairing-steps,
  .machine-status-grid,
  .machine-accounting-grid {
    grid-template-columns: 1fr;
  }

  .machine-pairing-check .button,
  .machine-connect-form .button {
    width: 100%;
  }
}

/* =====================================================================
   V3 MODERNIZATION LAYER  (vendplay-premium-33)
   Refined-light foundation + premium investment terminal.
   Appended last so equal-specificity rules win. Existing working
   cart / invoice / contract / machine-ledger logic is unaffected.
   Custom nav-square-*.png icons are NOT touched.
   ===================================================================== */

:root {
  /* Refined palette */
  --v3-ink: #0c1418;
  --v3-ink-2: #1b252c;
  --v3-soft-ink: #3c4a52;
  --v3-muted: #6f7d84;
  --v3-line: rgba(18, 32, 40, 0.09);
  --v3-line-strong: rgba(18, 32, 40, 0.16);
  --v3-bg: #eef2f1;
  --v3-surface: rgba(255, 255, 255, 0.86);
  --v3-surface-solid: #ffffff;
  --v3-teal: #06b894;
  --v3-teal-bright: #0ee0b0;
  --v3-teal-dark: #047a63;
  --v3-teal-soft: #e6f8f2;
  --v3-gold: #b8954a;
  --v3-gold-bright: #e6c878;
  --v3-gold-soft: #f6efdb;
  --v3-blue: #2a6bd6;
  --v3-up: #0fbf86;
  --v3-down: #f06464;

  /* Radii + shadows */
  --v3-r-xs: 10px;
  --v3-r-sm: 14px;
  --v3-r-md: 20px;
  --v3-r-lg: 26px;
  --v3-r-xl: 34px;
  --v3-sh-1: 0 1px 2px rgba(16, 28, 34, 0.05);
  --v3-sh-2: 0 6px 18px rgba(16, 28, 34, 0.07);
  --v3-sh-3: 0 22px 48px rgba(16, 28, 34, 0.12);
  --v3-sh-glow: 0 24px 70px rgba(6, 184, 148, 0.18);

  /* Spacing scale + layout */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.5rem;
  --space-6: 2.25rem;
  --space-7: 3.5rem;
  --space-8: 5rem;
  --section-y: clamp(3.5rem, 7vw, 7rem);
  --container: min(1200px, 100% - 2.5rem);

  /* Motion */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --dur: 0.5s;
  --dur-fast: 0.22s;

  /* Z-index scale */
  --z-header: 40;
  --z-drawer: 80;
  --z-modal: 1200;
}

/* --- Professional site-wide background (refined light) --- */
body {
  color: var(--v3-ink);
  background-color: var(--v3-bg);
  background-image:
    radial-gradient(58rem 58rem at 8% -8%, rgba(6, 184, 148, 0.12), transparent 60%),
    radial-gradient(48rem 48rem at 102% 0%, rgba(184, 149, 74, 0.12), transparent 58%),
    radial-gradient(70rem 50rem at 50% 120%, rgba(42, 107, 214, 0.07), transparent 60%),
    linear-gradient(180deg, #f1f5f4 0%, #eaf0ef 100%);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  letter-spacing: -0.011em;
}

/* faint architectural grid overlay */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(18, 32, 40, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(18, 32, 40, 0.03) 1px, transparent 1px);
  background-size: 54px 54px;
  mask-image: radial-gradient(120% 90% at 50% 0%, #000 40%, transparent 100%);
  -webkit-mask-image: radial-gradient(120% 90% at 50% 0%, #000 40%, transparent 100%);
}

/* --- Typography refinement --- */
h1, h2, h3, h4 {
  color: var(--v3-ink);
  font-family: var(--font-display);
  letter-spacing: -0.02em;
}
h1 { font-weight: 900; }
h2 { font-weight: 800; }
h3 { font-weight: 700; }

.eyebrow, .panel-label {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin-bottom: 0.9rem;
  padding: 0.34rem 0.7rem;
  border-radius: 999px;
  background: var(--v3-teal-soft);
  color: var(--v3-teal-dark);
  font-size: 0.72rem;
  font-weight: 850;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border: 1px solid rgba(6, 184, 148, 0.18);
}

/* --- Header / chrome --- */
.site-header {
  background: rgba(255, 255, 255, 0.72);
  border-bottom: 1px solid var(--v3-line);
  backdrop-filter: blur(22px) saturate(1.4);
  -webkit-backdrop-filter: blur(22px) saturate(1.4);
  box-shadow: 0 8px 30px rgba(16, 28, 34, 0.05);
}

.site-nav {
  background: rgba(255, 255, 255, 0.6);
  border: 1px solid var(--v3-line);
  box-shadow: var(--v3-sh-1);
}
.site-nav a {
  color: var(--v3-soft-ink);
  transition: color .2s ease, background .2s ease, transform .2s ease;
}
/* Keep custom nav image icons — do NOT override their size here */
.site-nav.visual-nav a img {
  width: 46px;
  height: 46px;
  object-fit: contain;
  border-radius: 10px;
  transition: transform .25s ease, box-shadow .25s ease, filter .25s ease;
  filter: drop-shadow(0 6px 12px rgba(16, 28, 34, 0.12)) saturate(1.08);
}
.site-nav.visual-nav a.active img,
.site-nav.visual-nav a:hover img {
  transform: translateY(-2px) scale(1.04);
  filter: drop-shadow(0 12px 18px rgba(16, 28, 34, 0.18)) saturate(1.16);
}
.site-nav a.active,
.site-nav a:hover {
  background: linear-gradient(135deg, var(--v3-ink), var(--v3-ink-2));
  color: #fff;
  box-shadow: 0 8px 22px rgba(12, 20, 24, 0.28);
}

.cart-button, .icon-button {
  border: 1px solid var(--v3-line-strong);
  background: var(--v3-surface-solid);
  color: var(--v3-ink);
  box-shadow: var(--v3-sh-1);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.cart-button:hover, .icon-button:hover {
  transform: translateY(-1px);
  box-shadow: var(--v3-sh-2);
  border-color: rgba(6, 184, 148, 0.45);
}
.cart-button .button-icon {
  width: 19px; height: 19px;
  stroke: currentColor; stroke-width: 2; fill: none;
  stroke-linecap: round; stroke-linejoin: round;
}
.cart-button [data-cart-count] {
  min-width: 21px;
  height: 21px;
  padding: 0 6px;
  display: inline-grid;
  place-items: center;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--v3-teal), var(--v3-teal-dark));
  color: #fff;
  font-size: 0.7rem;
  font-weight: 900;
}

/* Announcement bar refinement — only style visible bars, don't force display */
body[data-page="store"] .announcement-bar {
  background: linear-gradient(90deg, var(--v3-ink), var(--v3-ink-2));
  color: rgba(255,255,255,0.82);
  font-size: 0.74rem;
  letter-spacing: 0.02em;
}
.announcement-bar span { white-space: nowrap; }

/* --- Buttons --- */
.button {
  border-radius: 999px;
  font-weight: 850;
  letter-spacing: -0.01em;
  transition: transform .18s ease, box-shadow .22s ease, background .22s ease, filter .22s ease;
}
.button:focus-visible,
.cart-button:focus-visible,
.icon-button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
.region-option:focus-visible {
  outline: 2px solid var(--v3-teal);
  outline-offset: 2px;
}
.button.primary {
  background: linear-gradient(135deg, var(--v3-teal), var(--v3-teal-dark));
  color: #fff;
  box-shadow: 0 10px 24px rgba(6, 184, 148, 0.34), inset 0 1px 0 rgba(255,255,255,0.25);
  border: none;
}
.button.primary:hover { transform: translateY(-2px); box-shadow: 0 16px 34px rgba(6, 184, 148, 0.42); filter: saturate(1.08); }
.button.primary:active { transform: translateY(0); }

.button.secondary {
  background: var(--v3-surface-solid);
  color: var(--v3-ink);
  border: 1px solid var(--v3-line-strong);
  box-shadow: var(--v3-sh-1);
}
.button.secondary:hover { transform: translateY(-2px); box-shadow: var(--v3-sh-2); border-color: rgba(6,184,148,0.5); }

.button.glass {
  background: rgba(255,255,255,0.12);
  color: #fff;
  border: 1px solid rgba(255,255,255,0.28);
  backdrop-filter: blur(8px);
}
.button.glass:hover { background: rgba(255,255,255,0.2); transform: translateY(-2px); }

/* --- Generic card refinement (reuses existing class names) --- */
.ios-settings-card,
.capital-panel,
.home-focus-card,
.machine-connect-card,
.pairing-code-card,
.result-card,
.checkout-block,
.invoice-paper {
  border: 1px solid var(--v3-line) !important;
  border-radius: var(--v3-r-lg) !important;
  background: var(--v3-surface-solid) !important;
  box-shadow: var(--v3-sh-2) !important;
  transition: box-shadow .3s ease, transform .3s ease, border-color .3s ease;
}
.home-focus-card:hover,
.capital-panel:hover,
.result-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--v3-sh-3), var(--v3-sh-glow) !important;
  border-color: rgba(6, 184, 148, 0.32) !important;
}

/* shared inline SVG icon sizing helper */
.glass-symbol svg,
.ios-card-title svg,
.terminal-icon,
.v3-icon {
  stroke: currentColor; fill: none; stroke-width: 2;
  stroke-linecap: round; stroke-linejoin: round;
}

/* --- Footer --- */
.site-footer {
  display: grid !important;
  grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr));
  gap: clamp(1.4rem, 3vw, 2.6rem);
  align-items: start;
  margin-top: 3.5rem;
  padding: clamp(2.6rem, 5vw, 4rem) clamp(1rem, 4vw, 3rem) 2rem !important;
  background: linear-gradient(180deg, rgba(255,255,255,0.55), rgba(244,247,246,0.92)) !important;
  border-top: 1px solid var(--v3-line) !important;
  backdrop-filter: blur(14px);
}
.site-footer .footer-brand img { width: clamp(150px, 16vw, 200px); height: auto; opacity: 0.96; }
.site-footer .footer-brand p {
  color: var(--v3-muted); max-width: 42ch; margin: 1rem 0 0; font-size: 0.86rem; line-height: 1.6;
}
.site-footer .footer-col h4 {
  margin: 0 0 0.9rem; font-size: 0.72rem; font-weight: 800;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--v3-ink);
}
.site-footer .footer-col a {
  display: block; color: var(--v3-muted); font-size: 0.88rem; font-weight: 600;
  padding: 0.32rem 0; text-decoration: none; transition: color .2s ease, transform .2s ease;
}
.site-footer .footer-col a:hover { color: var(--v3-teal-dark); transform: translateX(3px); }
.site-footer .footer-bottom {
  grid-column: 1 / -1;
  display: flex; flex-wrap: wrap; gap: 0.6rem 1.4rem; justify-content: space-between; align-items: center;
  margin-top: 2.2rem; padding-top: 1.4rem; border-top: 1px solid var(--v3-line);
  color: var(--v3-muted); font-size: 0.78rem;
}
.site-footer .footer-bottom .footer-legal { display: flex; flex-wrap: wrap; gap: 1.2rem; }
.site-footer .footer-bottom a { color: var(--v3-muted); text-decoration: none; }
.site-footer .footer-bottom a:hover { color: var(--v3-teal-dark); }
@media (max-width: 860px) {
  .site-footer { grid-template-columns: 1fr 1fr; }
  .site-footer .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 520px) {
  .site-footer { grid-template-columns: 1fr; }
}

/* ===================================================================
   HOMEPAGE HERO + ASSURANCE + FOCUS PANEL
   =================================================================== */
.homepage-hero.clean-home-hero {
  position: relative;
  overflow: hidden;
  border-radius: var(--v3-r-xl);
  margin: clamp(1rem, 3vw, 2rem) auto 0;
  width: min(1240px, calc(100% - 2rem));
  border: 1px solid var(--v3-line);
  box-shadow: var(--v3-sh-3);
}
.hero-video-layer { background: #0a1013; }
.homepage-hero-video {
  filter: saturate(1.05) contrast(1.04);
}
.homepage-hero-copy {
  position: relative;
  z-index: 2;
  background: linear-gradient(115deg, rgba(8,16,20,0.86) 0%, rgba(8,16,20,0.62) 52%, rgba(8,16,20,0.1) 100%);
  padding: clamp(2.2rem, 6vw, 5rem);
}
.homepage-hero-copy .eyebrow {
  background: rgba(230, 200, 120, 0.16);
  color: var(--v3-gold-bright);
  border-color: rgba(230, 200, 120, 0.3);
}
.homepage-hero-copy h1 {
  color: #fff;
  font-size: clamp(2.5rem, 5.2vw, 3.9rem);
  line-height: 1.04;
  letter-spacing: -0.03em;
  text-shadow: 0 2px 30px rgba(0,0,0,0.4);
}
.homepage-hero-copy p {
  color: rgba(255,255,255,0.82);
  font-size: 1.04rem;
  line-height: 1.6;
  max-width: 46ch;
}
.homepage-hero-copy .action-row {
  display: flex; flex-wrap: wrap; gap: 0.7rem; margin-top: 1.6rem;
}
.homepage-hero-copy .button.secondary {
  background: rgba(255,255,255,0.1);
  color: #fff;
  border-color: rgba(255,255,255,0.32);
  backdrop-filter: blur(8px);
}

/* Assurance strip */
.home-assurance-strip {
  width: min(1240px, calc(100% - 2rem));
  margin: 1.6rem auto 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}
.home-assurance-strip article {
  display: flex;
  gap: 0.9rem;
  align-items: flex-start;
  padding: 1.2rem;
  border-radius: var(--v3-r-md);
  background: var(--v3-surface-solid);
  border: 1px solid var(--v3-line);
  box-shadow: var(--v3-sh-1);
  transition: transform .3s ease, box-shadow .3s ease;
}
.home-assurance-strip article:hover { transform: translateY(-3px); box-shadow: var(--v3-sh-2); }
.home-assurance-strip .glass-symbol,
.home-assurance-strip .svg-symbol {
  flex: none;
  width: 44px; height: 44px;
  display: grid; place-items: center;
  border-radius: 13px;
  background: linear-gradient(135deg, var(--v3-teal-soft), #fff);
  border: 1px solid rgba(6,184,148,0.2);
  color: var(--v3-teal-dark);
}
.home-assurance-strip .glass-symbol svg,
.home-assurance-strip .svg-symbol svg { width: 22px; height: 22px; }
.home-assurance-strip strong { display: block; margin-bottom: 0.3rem; font-size: 0.96rem; }
.home-assurance-strip p { margin: 0; color: var(--v3-muted); font-size: 0.85rem; line-height: 1.5; }

/* Focus panel */
.home-focus-panel {
  width: min(1240px, calc(100% - 2rem));
  margin: 1.6rem auto 2.5rem;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 1rem;
}
.home-focus-card { padding: 1.5rem !important; display: flex; flex-direction: column; gap: 0.6rem; }
.home-focus-card.primary {
  background: linear-gradient(160deg, var(--v3-ink), #16242b) !important;
  color: #fff;
  border: 1px solid rgba(255,255,255,0.08) !important;
}
.home-focus-card.primary h2,
.home-focus-card.primary h3,
.home-focus-card.primary strong { color: #fff; }
.home-focus-card.primary p { color: rgba(255,255,255,0.72); }
.home-focus-card.primary .eyebrow { background: rgba(230,200,120,0.16); color: var(--v3-gold-bright); border-color: rgba(230,200,120,0.3); }
.home-focus-card .mini-code {
  display: inline-block;
  font-size: 0.68rem; font-weight: 900; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--v3-teal-dark);
  padding: 0.25rem 0.6rem; border-radius: 999px;
  background: var(--v3-teal-soft); align-self: flex-start;
}
.home-focus-card.primary .mini-code { color: var(--v3-gold-bright); background: rgba(230,200,120,0.14); }
.home-focus-card h2, .home-focus-card h3 { font-size: 1.25rem; line-height: 1.15; }
.home-focus-card p { font-size: 0.88rem; color: var(--v3-muted); line-height: 1.55; margin: 0; }
.home-focus-card a { font-weight: 800; color: var(--v3-teal-dark); margin-top: auto; }

/* Store hero */
.store-hero {
  width: min(1240px, calc(100% - 2rem));
  margin: 2rem auto 1.4rem;
  display: flex; flex-wrap: wrap; gap: 1.4rem;
  justify-content: space-between; align-items: flex-end;
  padding: 1.8rem 2rem;
  border-radius: var(--v3-r-xl);
  background: linear-gradient(135deg, var(--v3-ink), #16242b);
  color: #fff;
  border: 1px solid var(--v3-line);
  box-shadow: var(--v3-sh-3);
}
.store-hero h1 { color: #fff; margin: 0.4rem 0 0; }
.store-hero .eyebrow { background: rgba(230,200,120,0.16); color: var(--v3-gold-bright); border-color: rgba(230,200,120,0.3); margin: 0; }
.store-hero-points { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.store-hero-points span {
  padding: 0.45rem 0.85rem; border-radius: 999px;
  background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.2);
  font-size: 0.8rem; font-weight: 700; color: rgba(255,255,255,0.9);
}

/* Page title band (checkout / rent / generic) */
.page-title {
  width: min(1240px, calc(100% - 2rem));
  margin: 2rem auto 1.4rem;
  padding: 2rem;
  border-radius: var(--v3-r-xl);
  background: linear-gradient(135deg, #ffffff, #f3f8f6);
  border: 1px solid var(--v3-line);
  box-shadow: var(--v3-sh-2);
}
.page-title.compact { padding: 1.6rem 2rem; }
.page-title p { color: var(--v3-soft-ink); max-width: 62ch; line-height: 1.55; }
.page-title h1 { margin-bottom: 0.8rem; }

/* ===================================================================
   INVESTMENT — WALL STREET TERMINAL (refined-light shell, dark desk)
   =================================================================== */
.capital-desk-page { gap: 1.1rem; }

.capital-hero {
  border-radius: var(--v3-r-xl) !important;
  border: 1px solid rgba(255,255,255,0.08) !important;
  background:
    radial-gradient(circle at 14% 12%, rgba(14, 224, 176, 0.18), transparent 22rem),
    radial-gradient(circle at 92% 6%, rgba(230, 200, 120, 0.16), transparent 24rem),
    radial-gradient(circle at 70% 110%, rgba(42, 107, 214, 0.14), transparent 26rem),
    linear-gradient(135deg, #0a1418 0%, #0c1a1f 52%, #10262b 100%) !important;
  box-shadow: 0 30px 80px rgba(8, 16, 20, 0.34) !important;
}

/* Brokerage stat band (new) */
.market-stat-band {
  position: relative; z-index: 2;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  border-top: 1px solid rgba(255,255,255,0.07);
  border-bottom: 1px solid rgba(255,255,255,0.07);
  background: linear-gradient(180deg, rgba(255,255,255,0.03), rgba(255,255,255,0));
}
.market-stat-band .stat {
  padding: 1rem 1.3rem;
  border-right: 1px solid rgba(255,255,255,0.07);
  display: flex; flex-direction: column; gap: 0.3rem;
}
.market-stat-band .stat:last-child { border-right: none; }
.market-stat-band .stat-label {
  display: flex; align-items: center; gap: 0.4rem;
  color: rgba(255,255,255,0.55);
  font-size: 0.66rem; font-weight: 800; letter-spacing: 0.14em;
  text-transform: uppercase;
}
.market-stat-band .stat-label .pulse-dot {
  width: 7px; height: 7px; border-radius: 999px; background: var(--v3-up);
  box-shadow: 0 0 0 0 rgba(15,191,134,0.6);
  animation: vpPulse 2s infinite;
}
@keyframes vpPulse {
  0% { box-shadow: 0 0 0 0 rgba(15,191,134,0.55); }
  70% { box-shadow: 0 0 0 8px rgba(15,191,134,0); }
  100% { box-shadow: 0 0 0 0 rgba(15,191,134,0); }
}
.market-stat-band .stat-value {
  color: #fff; font-size: 1.5rem; font-weight: 900; letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}
.market-stat-band .stat-delta {
  display: inline-flex; align-items: center; gap: 0.3rem;
  font-size: 0.78rem; font-weight: 800;
}
.market-stat-band .stat-delta.up { color: var(--v3-teal-bright); }
.market-stat-band .stat-delta.down { color: var(--v3-down); }
.market-stat-band .stat-delta svg { width: 12px; height: 12px; }

/* Ticker enhancement */
.market-ticker {
  background: rgba(255,255,255,0.04) !important;
  border-bottom: 1px solid rgba(255,255,255,0.08) !important;
}
.ticker-track {
  font-size: 0.74rem !important;
  letter-spacing: 0.06em;
}
.ticker-track strong { color: #fff !important; }
.ticker-track span { color: var(--v3-gold-bright) !important; }
.ticker-track .tick-up { color: var(--v3-teal-bright); }
.ticker-track .tick-down { color: var(--v3-down); }

/* Hero copy */
.capital-copy .eyebrow {
  background: rgba(230,200,120,0.16) !important;
  color: var(--v3-gold-bright) !important;
  border-color: rgba(230,200,120,0.3) !important;
}

/* Trading terminal panel */
.trading-terminal {
  border-radius: var(--v3-r-md) !important;
  border: 1px solid rgba(255,255,255,0.1) !important;
  background: linear-gradient(160deg, rgba(255,255,255,0.04), rgba(255,255,255,0.01)) !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.06), 0 24px 60px rgba(0,0,0,0.3) !important;
  backdrop-filter: blur(10px);
}
.terminal-bar {
  display: flex; justify-content: space-between; align-items: center;
  padding: 0.85rem 1.1rem;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.terminal-bar span { color: rgba(255,255,255,0.6); font-size: 0.72rem; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; }
.terminal-bar strong {
  color: var(--v3-teal-bright); font-size: 0.72rem; font-weight: 800;
  padding: 0.25rem 0.6rem; border-radius: 999px;
  background: rgba(14,224,176,0.12); border: 1px solid rgba(14,224,176,0.3);
}
.terminal-chart { width: 100%; height: auto; display: block; }
.terminal-grid { stroke: rgba(255,255,255,0.06); stroke-width: 1; fill: none; }
.terminal-line { fill: none; stroke: url(#terminalLine); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round;
  stroke-dasharray: 1400; stroke-dashoffset: 1400;
  animation: vpDraw 2.4s ease forwards 0.3s;
}
@keyframes vpDraw { to { stroke-dashoffset: 0; } }
.terminal-fill { opacity: 0; animation: vpFade 1.4s ease forwards 1.4s; }
@keyframes vpFade { to { opacity: 1; } }
.terminal-chart circle {
  fill: #0ee0b0; stroke: #0a1418; stroke-width: 3;
  opacity: 0; animation: vpFade 0.5s ease forwards;
}
.terminal-chart circle:nth-child(5){ animation-delay: 0.6s; }
.terminal-chart circle:nth-child(6){ animation-delay: 1.2s; }
.terminal-chart circle:nth-child(7){ animation-delay: 1.8s; }
.terminal-chart circle:nth-child(8){ animation-delay: 2.4s; }
.terminal-stats {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.6rem;
  padding: 0.9rem 1.1rem;
  border-top: 1px solid rgba(255,255,255,0.08);
}
.terminal-stats div {
  display: flex; flex-direction: column; gap: 0.2rem;
  padding: 0.7rem; border-radius: 12px;
  background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.06);
}
.terminal-stats span { color: rgba(255,255,255,0.55); font-size: 0.68rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; }
.terminal-stats strong { color: var(--v3-teal-bright); font-size: 1.15rem; font-weight: 900; }

/* Workstation / term sheet on light bg */
.capital-workstation {
  display: grid !important;
  grid-template-columns: 1.1fr 1.2fr 0.9fr;
  gap: 1rem;
}
.capital-panel {
  border-radius: var(--v3-r-lg) !important;
  background: var(--v3-surface-solid) !important;
  border: 1px solid var(--v3-line) !important;
  box-shadow: var(--v3-sh-2) !important;
  padding: 1.5rem !important;
}
.desk-panel-header { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; margin-bottom: 1.2rem; }
.desk-panel-header h2 { font-size: 1.4rem; margin: 0; }
.desk-badge {
  font-size: 0.68rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--v3-teal-dark); background: var(--v3-teal-soft);
  padding: 0.3rem 0.7rem; border-radius: 999px; border: 1px solid rgba(6,184,148,0.2);
}
.capital-range-command {
  display: flex !important; justify-content: space-between; align-items: baseline;
  margin-bottom: 0.6rem;
}
.capital-range-command strong { color: var(--v3-ink); font-size: 1.6rem; font-weight: 900; }

/* Term ladder as candlestick-style rows */
.capital-term-grid, .invest-term-grid {
  display: grid !important; grid-template-columns: repeat(3, 1fr); gap: 0.7rem !important;
}
.capital-term-card, .term-card {
  position: relative;
  display: flex !important; flex-direction: column; gap: 0.25rem;
  padding: 1rem 1rem 1.1rem !important;
  border-radius: var(--v3-r-sm) !important;
  border: 1px solid var(--v3-line) !important;
  background: #fff !important;
  cursor: pointer;
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
  overflow: hidden;
}
.capital-term-card::before, .term-card::before {
  content: ""; position: absolute; inset: 0 auto 0 0; width: 3px;
  background: linear-gradient(180deg, var(--v3-teal), var(--v3-teal-dark));
  opacity: 0; transition: opacity .25s ease;
}
.capital-term-card:hover, .term-card:hover { transform: translateY(-3px); box-shadow: var(--v3-sh-2); border-color: rgba(6,184,148,0.4); }
.capital-term-card:has(input:checked), .term-card:has(input:checked) {
  border-color: var(--v3-teal) !important;
  box-shadow: 0 12px 30px rgba(6,184,148,0.2), var(--v3-sh-2) !important;
  background: linear-gradient(160deg, #fff, var(--v3-teal-soft)) !important;
}
.capital-term-card:has(input:checked)::before, .term-card:has(input:checked)::before { opacity: 1; }
.capital-term-card span, .term-card span { font-size: 0.72rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: var(--v3-muted); }
.capital-term-card strong, .term-card strong { font-size: 1.8rem; font-weight: 900; color: var(--v3-teal-dark); letter-spacing: -0.02em; }
.capital-term-card em, .term-card em { font-style: normal; font-size: 0.82rem; font-weight: 700; color: var(--v3-soft-ink); }
.capital-term-card small, .term-card small { font-size: 0.76rem; color: var(--v3-muted); line-height: 1.4; }
.term-card.featured, .capital-term-card.featured {
  border-color: rgba(184,149,74,0.4) !important;
  background: linear-gradient(160deg, #fff, var(--v3-gold-soft)) !important;
}
.term-card.featured::after, .capital-term-card.featured::after {
  content: "TOP"; position: absolute; top: 8px; right: 8px;
  font-size: 0.58rem; font-weight: 900; letter-spacing: 0.1em;
  color: var(--v3-gold); background: rgba(184,149,74,0.14);
  padding: 0.15rem 0.4rem; border-radius: 999px;
}

/* Projection / yield ticket */
.yield-ticket, .projection-panel {
  display: flex; flex-direction: column; gap: 1rem;
}
.projection-main {
  padding: 1.3rem; border-radius: var(--v3-r-md);
  background: linear-gradient(160deg, var(--v3-ink), #16242b);
  color: #fff;
}
.projection-main span { color: rgba(255,255,255,0.6); font-size: 0.78rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; }
.projection-main strong { display: block; margin-top: 0.3rem; font-size: 2.6rem; font-weight: 900; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.projection-main small { color: rgba(255,255,255,0.55); font-size: 0.78rem; }
.projection-mini-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.7rem; }
.projection-mini-grid > div {
  padding: 0.9rem; border-radius: var(--v3-r-xs);
  border: 1px solid var(--v3-line); background: #fff;
}
.projection-mini-grid span { display: block; font-size: 0.7rem; font-weight: 700; color: var(--v3-muted); text-transform: uppercase; letter-spacing: 0.05em; }
.projection-mini-grid strong { display: block; margin-top: 0.25rem; font-size: 1.2rem; font-weight: 900; color: var(--v3-ink); font-variant-numeric: tabular-nums; }
.allocation-dashboard { display: flex; flex-direction: column; gap: 0.7rem; }
.allocation-dashboard > div { display: flex; flex-direction: column; gap: 0.35rem; }
.allocation-dashboard span { font-size: 0.76rem; font-weight: 700; color: var(--v3-soft-ink); }
.allocation-dashboard .bar {
  height: 9px; border-radius: 999px; background: var(--v3-line); overflow: hidden;
}
.allocation-dashboard .bar i {
  display: block; height: 100%; border-radius: 999px;
  background: linear-gradient(90deg, var(--v3-teal), var(--v3-teal-bright));
  width: 0; transition: width .9s cubic-bezier(.2,.8,.2,1);
}
.allocation-dashboard .bar.amber i { background: linear-gradient(90deg, var(--v3-gold), var(--v3-gold-bright)); }
.allocation-dashboard .bar.red i { background: linear-gradient(90deg, #e0746a, var(--v3-down)); }

/* Compliance card */
.desk-compliance-card ul { list-style: none; padding: 0; margin: 0 0 1rem; display: flex; flex-direction: column; gap: 0.6rem; }
.desk-compliance-card li {
  position: relative; padding-left: 1.7rem;
  font-size: 0.88rem; color: var(--v3-soft-ink); line-height: 1.5;
}
.desk-compliance-card li::before {
  content: ""; position: absolute; left: 0; top: 0.35rem;
  width: 16px; height: 16px; border-radius: 5px;
  background: var(--v3-teal-soft);
  border: 1.5px solid var(--v3-teal);
}
.desk-compliance-card li::after {
  content: ""; position: absolute; left: 5px; top: 0.62rem;
  width: 6px; height: 3px; border-left: 2px solid var(--v3-teal-dark);
  border-bottom: 2px solid var(--v3-teal-dark); transform: rotate(-45deg);
}

/* Process grid */
.capital-process-grid {
  display: grid !important; grid-template-columns: repeat(4, 1fr); gap: 1rem !important;
}
.capital-process-grid article {
  border-radius: var(--v3-r-md) !important;
  background: var(--v3-surface-solid) !important;
  border: 1px solid var(--v3-line) !important;
  box-shadow: var(--v3-sh-1) !important;
  padding: 1.4rem !important;
  transition: transform .3s ease, box-shadow .3s ease;
}
.capital-process-grid article:hover { transform: translateY(-4px); box-shadow: var(--v3-sh-2); }
.capital-process-grid article::before {
  font-size: 1.6rem !important; font-weight: 900 !important; color: var(--v3-teal) !important;
  opacity: 0.5;
}
.capital-process-grid strong { font-size: 1.05rem; color: var(--v3-ink); }
.capital-process-grid p { color: var(--v3-muted); font-size: 0.85rem; line-height: 1.5; }

/* Risk note */
.capital-risk-note, .risk-panel {
  border-radius: var(--v3-r-lg) !important;
  background: linear-gradient(135deg, var(--v3-gold-soft), #fff) !important;
  border: 1px solid rgba(184,149,74,0.3) !important;
  box-shadow: var(--v3-sh-1) !important;
  padding: 1.6rem !important;
  display: flex; gap: 1.4rem; align-items: center; flex-wrap: wrap;
}
.capital-risk-note .eyebrow { background: rgba(184,149,74,0.16); color: var(--v3-gold); border-color: rgba(184,149,74,0.3); }
.capital-risk-note h2 { font-size: 1.4rem; }
.capital-risk-note > p { flex: 1; min-width: 280px; color: var(--v3-soft-ink); font-size: 0.9rem; line-height: 1.6; margin: 0; }

/* ===================================================================
   STORE — PRODUCT CARDS + FILTERS
   =================================================================== */
.store-shell {
  width: min(1240px, calc(100% - 2rem)) !important;
  margin: 0 auto 2rem;
}
.store-sidebar {
  border-radius: var(--v3-r-lg) !important;
  background: var(--v3-surface-solid) !important;
  border: 1px solid var(--v3-line) !important;
  box-shadow: var(--v3-sh-1) !important;
  padding: 0.8rem 1.2rem !important;
}
.store-filter-bar {
  position: static;
  z-index: 8;
}
/* The full-width white pill bar is only appropriate once the layout stacks
   (mobile). On desktop the sidebar stays a narrow 250px column, so we must
   NOT force a full-width white band across the shop section. */
@media (max-width: 760px) {
  .store-filter-bar {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 0.6rem 1rem;
    padding: 0.6rem 0.9rem !important;
    border-radius: 999px !important;
    background: rgba(255, 255, 255, 0.82) !important;
    border: 1px solid rgba(17, 19, 21, 0.08) !important;
    box-shadow: 0 18px 44px rgba(17, 19, 21, 0.1) !important;
    backdrop-filter: blur(20px) saturate(1.2);
    -webkit-backdrop-filter: blur(20px) saturate(1.2);
  }
}
.store-filter-bar .panel-label {
  display: none;
}
.store-filter-bar .vertical-filters {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(80px, 1fr));
  gap: 8px;
  width: 100%;
}
@media (max-width: 760px) {
  .store-filter-bar .filter-chip { padding: 8px !important; border-radius: 12px !important; }
}
.filter-chip {
  height: 64px;
  display: grid;
  place-items: center;
  padding: 10px;
  border: 1px solid rgba(17, 19, 21, 0.08);
  border-radius: 12px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(247, 248, 250, 0.9));
  color: rgba(17, 19, 21, 0.66);
  font-size: 0.72rem;
  font-weight: 850;
  letter-spacing: 0.04em;
  text-align: center;
  line-height: 1.25;
  box-shadow: 0 10px 24px rgba(20, 27, 34, 0.07);
  transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease, background 0.28s ease, color 0.28s ease;
}
.filter-chip:hover { border-color: rgba(17, 20, 23, 0.28); background: #fff; box-shadow: 0 18px 44px rgba(20, 27, 34, 0.13); transform: translateY(-4px); }
.filter-chip.active {
  border-color: rgba(6, 184, 148, 0.88);
  background: linear-gradient(135deg, #0f1923, #1a3a3a);
  color: #fff;
  box-shadow: 0 18px 44px rgba(17, 20, 23, 0.22), 0 0 0 2px rgba(6, 184, 148, 0.22) inset;
  transform: translateY(-4px);
}
@media (max-width: 760px) {
  .store-filter-bar {
    position: static;
    border-radius: var(--v3-r-lg) !important;
    background: var(--v3-surface-solid) !important;
    border: 1px solid var(--v3-line) !important;
    box-shadow: var(--v3-sh-1) !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    padding: 1rem !important;
  }
  .vertical-filters { justify-content: flex-start; }
  .store-filter-bar .panel-label { margin-left: 0; }
}

.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 1.2rem; }
.product-card {
  border-radius: var(--v3-r-lg) !important;
  border: 1px solid var(--v3-line) !important;
  background: var(--v3-surface-solid) !important;
  box-shadow: var(--v3-sh-2) !important;
  overflow: hidden;
  transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}
.product-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--v3-sh-3), var(--v3-sh-glow) !important;
  border-color: rgba(6,184,148,0.35) !important;
}
.product-photo-stage {
  position: relative;
  background: linear-gradient(160deg, #f3f7f5, #e6efec) !important;
  overflow: hidden;
}
.product-photo-stage::after {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(circle at 70% 0%, rgba(6,184,148,0.1), transparent 60%);
  pointer-events: none;
}
.product-photo-stage img, .product-photo { transition: transform .5s ease; }
.product-card:hover .product-photo-stage img,
.product-card:hover .product-photo { transform: scale(1.06); }
.product-body { padding: 1.2rem 1.2rem 1.4rem; }
.product-meta .tag {
  display: inline-block;
  font-size: 0.66rem; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--v3-teal-dark); background: var(--v3-teal-soft);
  padding: 0.25rem 0.6rem; border-radius: 999px; margin-bottom: 0.5rem;
}
.product-meta h3 { font-size: 1.05rem; line-height: 1.25; color: var(--v3-ink); }
.product-payment-options {
  display: grid; grid-template-columns: 1fr 1fr; gap: 0.6rem; margin: 1rem 0;
}
.payment-option {
  padding: 0.8rem; border-radius: var(--v3-r-xs);
  border: 1px solid var(--v3-line); background: #fff;
}
.payment-option.buy-option {
  background: linear-gradient(160deg, var(--v3-teal-soft), #fff);
  border-color: rgba(6,184,148,0.2);
}
.payment-option.rent-option {
  background: linear-gradient(160deg, var(--v3-gold-soft), #fff);
  border-color: rgba(184,149,74,0.2);
}
.payment-option span { font-size: 0.68rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: var(--v3-muted); }
.payment-option strong { display: block; font-size: 1.1rem; font-weight: 900; color: var(--v3-ink); margin-top: 0.2rem; }
.payment-option small { color: var(--v3-muted); font-size: 0.74rem; }
.product-card-footer {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: 0.9rem; border-top: 1px solid var(--v3-line);
  color: var(--v3-teal-dark); font-weight: 800; font-size: 0.88rem;
}
.product-card-footer::after {
  content: "\2192"; transition: transform .25s ease; font-weight: 700;
}
.product-card:hover .product-card-footer::after { transform: translateX(5px); }

/* ===================================================================
   CHECKOUT REFINEMENTS
   =================================================================== */
.checkout-steps {
  width: min(1240px, calc(100% - 2rem)); margin: 1.4rem auto;
  display: flex; gap: 0.6rem; flex-wrap: wrap;
}
.step-pill {
  display: inline-flex; align-items: center; gap: 0.55rem;
  padding: 0.6rem 1.1rem; border-radius: 999px;
  border: 1px solid var(--v3-line); background: #fff;
  color: var(--v3-muted); font-weight: 800; font-size: 0.85rem;
  box-shadow: var(--v3-sh-1);
}
.step-pill span {
  width: 22px; height: 22px; border-radius: 999px;
  display: grid; place-items: center;
  background: var(--v3-line); color: var(--v3-soft-ink);
  font-size: 0.74rem; font-weight: 900;
}
.step-pill.active { background: linear-gradient(135deg, var(--v3-ink), var(--v3-ink-2)); color: #fff; border-color: var(--v3-ink); }
.step-pill.active span { background: var(--v3-teal); color: #fff; }

/* Shipping carrier selector — professional cards with logo + fee */
.carrier-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.7rem;
}
.shipping-card {
  position: relative;
  min-height: 124px;
  display: grid;
  grid-template-rows: 50px 1fr auto;
  gap: 0.4rem;
  align-items: center;
  justify-items: start;
  border: 1px solid rgba(17, 19, 21, 0.10);
  border-radius: 14px;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.98), rgba(246, 248, 250, 0.92)), #fff;
  padding: 0.85rem;
  color: var(--v3-ink);
  text-align: left;
  box-shadow: var(--v3-sh-1), inset 0 1px 0 rgba(255, 255, 255, 0.85);
  overflow: hidden;
  cursor: pointer;
  transition: transform .22s ease, border-color .22s ease, box-shadow .22s ease, background .22s ease;
}
.shipping-card::before {
  content: "";
  position: absolute;
  inset: auto -18px -28px auto;
  width: 82px; height: 82px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(182, 155, 98, 0.18), rgba(182, 155, 98, 0) 68%);
  pointer-events: none;
}
.shipping-card:hover {
  transform: translateY(-2px);
  border-color: rgba(170, 142, 85, 0.36);
  box-shadow: var(--v3-sh-2), inset 0 1px 0 rgba(255, 255, 255, 0.9);
}
.shipping-card.active {
  border-color: rgba(17, 19, 21, 0.82);
  background: linear-gradient(145deg, #fff, #f2f4f6);
  box-shadow: var(--v3-sh-3), 0 0 0 2px rgba(182, 155, 98, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.95);
}
.carrier-logo-wrap {
  width: 100%;
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
}
.carrier-logo-wrap img {
  max-width: 64px;
  max-height: 48px;
  object-fit: contain;
  display: block;
}
.shipping-card span:nth-child(2) {
  display: grid;
  gap: 0.2rem;
}
.shipping-card strong { font-size: 0.78rem; font-weight: 950; letter-spacing: 0.08em; text-transform: uppercase; }
.shipping-card small { font-size: 0.66rem; color: #69747e; font-weight: 740; line-height: 1.35; }
.shipping-card em {
  position: relative;
  z-index: 1;
  font-style: normal;
  font-size: 0.75rem;
  font-weight: 950;
  letter-spacing: 0.04em;
  color: #9b7f43;
}
@media (max-width: 620px) {
  .carrier-options { grid-template-columns: 1fr; }
  .shipping-card {
    grid-template-columns: 88px minmax(0, 1fr) auto;
    grid-template-rows: auto;
    column-gap: 12px;
    min-height: 92px;
    padding: 12px;
  }
  .carrier-logo-wrap { min-height: 48px; }
  .shipping-card em { justify-self: end; }
}

.checkout-layout { align-items: flex-start; gap: 1.4rem; }
.checkout-block { padding: 1.5rem !important; }
.block-heading { display: flex; gap: 1rem; align-items: flex-start; margin-bottom: 1.2rem; }
.block-heading .mini-code {
  flex: none; width: 34px; height: 34px; border-radius: 10px;
  display: grid; place-items: center;
  background: linear-gradient(135deg, var(--v3-ink), var(--v3-ink-2));
  color: var(--v3-gold-bright); font-size: 0.78rem; font-weight: 900;
}
.block-heading h2 { font-size: 1.25rem; margin: 0; }
.block-heading p { color: var(--v3-muted); font-size: 0.86rem; margin: 0.3rem 0 0; }
.form-grid label { display: flex; flex-direction: column; gap: 0.35rem; }
.form-grid input, .form-grid select,
input[type="text"], input[type="email"], input[type="password"],
input[type="number"], input[type="tel"], select {
  border-radius: var(--v3-r-xs) !important;
  border: 1px solid var(--v3-line-strong) !important;
  background: #fff !important; color: var(--v3-ink) !important;
  padding: 0.7rem 0.85rem !important; font-size: 0.92rem;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.form-grid input:focus, .form-grid select:focus,
input:focus, select:focus {
  outline: none;
  border-color: var(--v3-teal) !important;
  box-shadow: 0 0 0 4px rgba(6,184,148,0.14) !important;
}
.invoice-paper {
  padding: 1.8rem !important;
  background: linear-gradient(160deg, #fff, #f7fbf9) !important;
}

/* ===================================================================
   DASHBOARD — DE-CLUSTERED, ONE SECTION AT A TIME
   =================================================================== */
.ios-account-shell[data-account-shell] {
  grid-template-columns: 290px minmax(0, 1fr);
  gap: 1.2rem;
}
.ios-settings-sidebar {
  position: sticky; top: 100px;
  border-radius: var(--v3-r-lg) !important;
  background: var(--v3-surface-solid) !important;
  border: 1px solid var(--v3-line) !important;
  box-shadow: var(--v3-sh-2) !important;
  padding: 1rem !important;
}
.ios-profile-tile {
  border-radius: var(--v3-r-md) !important;
  background: linear-gradient(160deg, var(--v3-ink), #16242b) !important;
  color: #fff;
  margin-bottom: 0.6rem;
}
.ios-profile-tile span { color: var(--v3-gold-bright) !important; }
.ios-profile-tile h1 { color: #fff !important; }
.ios-profile-tile p { color: rgba(255,255,255,0.7) !important; }
.ios-profile-tile img { border-radius: 12px; }

.ios-settings-sidebar a[data-account-nav] {
  display: flex !important; align-items: center; gap: 0.75rem !important;
  border-radius: var(--v3-r-xs) !important;
  padding: 0.7rem 0.8rem !important;
  color: var(--v3-soft-ink) !important; font-weight: 700; font-size: 0.92rem;
  border: 1px solid transparent;
  transition: all .2s ease;
  cursor: pointer;
}
.ios-settings-sidebar a[data-account-nav]:hover {
  background: var(--v3-teal-soft) !important;
  color: var(--v3-teal-dark) !important;
  transform: translateX(3px);
}
.ios-settings-sidebar a[data-account-nav].is-current {
  background: linear-gradient(135deg, var(--v3-ink), var(--v3-ink-2)) !important;
  color: #fff !important;
  box-shadow: 0 8px 20px rgba(12,20,24,0.22);
}
.ios-settings-sidebar a[data-account-nav].is-current .settings-symbol {
  background: rgba(255,255,255,0.14) !important;
}
.settings-symbol svg { width: 18px; height: 18px; stroke: #fff; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* The section router: only the active panel is visible */
.ios-settings-content[data-account-content] { position: relative; }
[data-account-panel] { display: none; }
[data-account-panel].is-active {
  display: block;
  animation: vpPanelIn .35s cubic-bezier(.2,.8,.2,1);
}
@keyframes vpPanelIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Back bar shown inside each detail panel */
.account-back-bar {
  display: none;
  align-items: center; gap: 0.6rem;
  margin-bottom: 1rem;
  padding: 0.7rem 1rem;
  border-radius: var(--v3-r-md);
  background: var(--v3-surface-solid);
  border: 1px solid var(--v3-line);
  box-shadow: var(--v3-sh-1);
  font-weight: 800; color: var(--v3-ink);
  cursor: pointer;
}
.account-back-bar svg { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }

/* Push navigation: in detail mode hide the menu and show the Back bar on
   every screen size, and let the panel take the full width. */
[data-account-shell].is-detail { grid-template-columns: minmax(0, 1fr); }
[data-account-shell].is-detail .ios-settings-sidebar { display: none; }
[data-account-shell].is-detail .account-back-bar { display: flex; }
[data-account-shell].is-detail .ios-settings-content { animation: vpPanelIn .35s cubic-bezier(.2,.8,.2,1); }

.ios-settings-card, .ios-settings-hero {
  border-radius: var(--v3-r-lg) !important;
  border: 1px solid var(--v3-line) !important;
  background: var(--v3-surface-solid) !important;
  box-shadow: var(--v3-sh-2) !important;
  padding: 1.5rem !important;
}
.ios-card-title { display: flex; align-items: center; gap: 0.7rem; margin-bottom: 1.1rem; }
.ios-card-title h3 { margin: 0; font-size: 1.2rem; color: var(--v3-ink); }
.ios-card-title .settings-symbol {
  width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center;
}
.settings-symbol.user { background: linear-gradient(135deg, var(--v3-teal), var(--v3-teal-dark)); }
.settings-symbol.machine-icon { background: linear-gradient(135deg, var(--v3-blue), #1d4a9e); }
.settings-symbol.chart { background: linear-gradient(135deg, #6a5ae0, #3d2fae); }
.settings-symbol.bank { background: linear-gradient(135deg, var(--v3-gold), #8a6a30); }
.settings-symbol.code { background: linear-gradient(135deg, var(--v3-ink-2), var(--v3-ink)); }
.settings-symbol.notice { background: linear-gradient(135deg, #e0823a, #b85e1e); }

.ios-settings-hero {
  display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap;
  background: linear-gradient(160deg, var(--v3-ink), #16242b) !important;
  color: #fff; border: 1px solid rgba(255,255,255,0.08) !important;
}
.ios-settings-hero h2 { color: #fff; font-size: 1.7rem; margin: 0.2rem 0; }
.ios-settings-hero p { color: rgba(255,255,255,0.72); max-width: 50ch; margin: 0; }
.ios-settings-hero .eyebrow { background: rgba(230,200,120,0.16); color: var(--v3-gold-bright); border-color: rgba(230,200,120,0.3); }
#dashActiveCode {
  font-size: 0.78rem; font-weight: 800; letter-spacing: 0.06em;
  padding: 0.45rem 0.9rem; border-radius: 999px;
  background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.2);
  color: rgba(255,255,255,0.9);
}

.ios-balance-card, .ios-code-card, .ios-micro-grid .ios-card-title { border-radius: var(--v3-r-md); }
.ios-setting-row {
  display: flex; flex-direction: column; gap: 0.4rem;
  padding: 0.7rem 0; border-bottom: 1px solid var(--v3-line);
}
.ios-setting-row span { font-size: 0.82rem; font-weight: 700; color: var(--v3-muted); }
.account-auth-tabs { display: flex; gap: 0.4rem; margin-bottom: 1rem; }
.account-auth-tabs button {
  flex: 1; padding: 0.6rem; border-radius: var(--v3-r-xs);
  border: 1px solid var(--v3-line); background: #fff; color: var(--v3-muted);
  font-weight: 800; font-size: 0.88rem; cursor: pointer; transition: all .2s ease;
}
.account-auth-tabs button.active {
  background: linear-gradient(135deg, var(--v3-ink), var(--v3-ink-2));
  color: #fff; border-color: var(--v3-ink);
}
.account-status-pill, .discount-message {
  font-size: 0.82rem; color: var(--v3-muted);
  padding: 0.5rem 0.8rem; border-radius: var(--v3-r-xs);
  background: var(--v3-bg); border: 1px solid var(--v3-line);
}
.machine-connect-card, .pairing-code-card, .machine-command-centre { border-radius: var(--v3-r-md) !important; }

/* ===================================================================
   V3 RESPONSIVE + MOTION
   =================================================================== */
@media (max-width: 1040px) {
  .home-focus-panel { grid-template-columns: 1fr 1fr; }
  .home-focus-card.primary { grid-column: 1 / -1; }
  .home-affiliate-inner { gap: 0; }
  .home-affiliate-hero { padding: 32px; min-height: 340px; }
  .home-affiliate-poster { max-height: 340px; }
  .home-affiliate-details { padding: 36px 36px 36px 24px; }
  .home-affiliate-details h2 { font-size: 1.8rem; }
  .home-affiliate-details > p { font-size: 0.95rem; }
  .home-affiliate-tiers { gap: 10px; }
  .capital-workstation { grid-template-columns: 1fr 1fr; }
  .desk-compliance-card { grid-column: 1 / -1; }
  .market-stat-band { grid-template-columns: repeat(2, 1fr); }
  .market-stat-band .stat:nth-child(2) { border-right: none; }
}

@media (max-width: 860px) {
  .home-assurance-strip { grid-template-columns: 1fr; }
  .capital-workstation { grid-template-columns: 1fr; }
  .capital-process-grid { grid-template-columns: 1fr 1fr; }
  .projection-mini-grid { grid-template-columns: repeat(4, 1fr); }
  /* Dashboard becomes mobile list->detail flow */
  .ios-account-shell[data-account-shell] { grid-template-columns: 1fr; }
  .ios-settings-sidebar { position: static; order: 2; }
  .ios-settings-content { order: 1; }
}

@media (max-width: 720px) {
  .home-focus-panel { grid-template-columns: 1fr; }
  .home-slot-showcase { grid-template-columns: 1fr; padding: 1.2rem; }
  .home-warranty-grid { grid-template-columns: 1fr; }
  .home-affiliate-inner { grid-template-columns: 1fr; }
  .home-affiliate-hero { min-height: 200px; padding: 24px 20px; }
  .home-affiliate-poster { max-height: 260px; width: 100%; }
  .home-affiliate-details { padding: 24px 20px 32px; }
  .home-affiliate-details h2 { font-size: 1.5rem; }
  .home-affiliate-details > p { font-size: 0.88rem; line-height: 1.6; }
  .home-affiliate-tiers { grid-template-columns: 1fr; gap: 10px; margin-bottom: 24px; }
  .home-affiliate-actions { flex-direction: column; align-items: flex-start; gap: 10px; }
  .home-affiliate-actions .button { width: 100%; text-align: center; }
  .store-hero { padding: 1.4rem; }
  .capital-process-grid { grid-template-columns: 1fr; }
  .projection-mini-grid { grid-template-columns: 1fr 1fr; }
  .market-stat-band { grid-template-columns: 1fr 1fr; }
  .terminal-stats { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  .capital-term-grid, .invest-term-grid { grid-template-columns: 1fr !important; }
  .product-grid { grid-template-columns: 1fr; }
  .homepage-hero-copy { padding: 2rem 1.4rem; }
}

@media (prefers-reduced-motion: reduce) {
  .terminal-line, .terminal-fill, .terminal-chart circle { animation: none !important; opacity: 1; stroke-dashoffset: 0; }
  .ticker-track { animation: none !important; }
  .market-stat-band .pulse-dot { animation: none !important; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}

/* ===================================================================
   DASHBOARD — OVERVIEW QUICK-TILES
   =================================================================== */
.account-overview-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.8rem;
  margin-bottom: 1rem;
}
.account-overview-tile {
  display: flex; align-items: center; gap: 0.85rem;
  padding: 1.1rem 1.2rem;
  border-radius: var(--v3-r-md);
  background: var(--v3-surface-solid);
  border: 1px solid var(--v3-line);
  box-shadow: var(--v3-sh-1);
  cursor: pointer;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.account-overview-tile:hover {
  transform: translateY(-3px);
  box-shadow: var(--v3-sh-2);
  border-color: rgba(6,184,148,0.4);
}
.account-overview-tile .ov-symbol {
  flex: none;
  width: 46px; height: 46px;
  display: grid; place-items: center;
  border-radius: 14px;
}
.account-overview-tile .ov-symbol svg { width: 22px; height: 22px; stroke: #fff; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.account-overview-tile .ov-symbol.user { background: linear-gradient(135deg, var(--v3-teal), var(--v3-teal-dark)); }
.account-overview-tile .ov-symbol.chart { background: linear-gradient(135deg, #6a5ae0, #3d2fae); }
.account-overview-tile .ov-symbol.machine-icon { background: linear-gradient(135deg, var(--v3-blue), #1d4a9e); }
.account-overview-tile .ov-symbol.code { background: linear-gradient(135deg, var(--v3-gold), #8a6a30); }
.account-overview-tile .ov-symbol.notice { background: linear-gradient(135deg, #e0823a, #b85e1e); }
.account-overview-tile .ov-symbol.bank { background: linear-gradient(135deg, var(--v3-ink-2), var(--v3-ink)); }
.account-overview-tile div { display: flex; flex-direction: column; gap: 0.15rem; min-width: 0; }
.account-overview-tile span { font-size: 0.7rem; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; color: var(--v3-muted); }
.account-overview-tile strong { font-size: 1.1rem; font-weight: 900; color: var(--v3-ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.account-overview-tile small { font-size: 0.78rem; color: var(--v3-muted); }
.account-overview-tile em {
  margin-left: auto; font-style: normal;
  font-size: 0.72rem; font-weight: 800; letter-spacing: 0.06em;
  color: var(--v3-teal-dark);
  padding: 0.3rem 0.6rem; border-radius: 999px;
  background: var(--v3-teal-soft);
  opacity: 0; transition: opacity .2s ease;
}
.account-overview-tile:hover em { opacity: 1; }

@media (max-width: 860px) {
  .account-overview-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .account-overview-grid { grid-template-columns: 1fr; }
}

/* ===================================================================
   END V3 MODERNIZATION LAYER
   =================================================================== */

/* ===================================================================
   CLOUD FEATURES (auth modals, configurator, support, orders, deposit)
   =================================================================== */

/* Auth modals */
.auth-modal-overlay {
  position: fixed; inset: 0; z-index: 1200;
  display: none; align-items: center; justify-content: center;
  background: rgba(9, 14, 24, 0.62);
  backdrop-filter: blur(4px);
  padding: 1.2rem;
}
.auth-modal-overlay.active { display: flex; }
.auth-modal {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(9, 14, 24, 0.62);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  padding: 1.2rem;
}
.auth-modal.is-open { display: flex; }
.auth-modal-backdrop { position: absolute; inset: 0; }
.auth-modal-panel {
  position: relative;
  width: min(440px, 100%);
  background: #fff;
  border-radius: 20px;
  padding: 2rem 1.8rem 1.8rem;
  box-shadow: 0 30px 80px rgba(7, 12, 22, 0.4);
  animation: authPop .25s ease;
}
@keyframes authPop { from { transform: translateY(14px) scale(.98); opacity: 0; } to { transform: none; opacity: 1; } }

/* ---- Thank-you modal (shown after a successful deposit payment) ---- */
.vp-thankyou-modal {
  position: fixed;
  inset: 0;
  z-index: 1300;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(9, 14, 24, 0.62);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  padding: 1.2rem;
}
.vp-thankyou-modal.is-open { display: flex; }
.vp-modal-backdrop { position: absolute; inset: 0; }
.vp-modal-panel {
  position: relative;
  width: min(440px, 100%);
  background: #fff;
  border-radius: 20px;
  padding: 2rem 1.8rem 1.8rem;
  box-shadow: 0 30px 80px rgba(7, 12, 22, 0.4);
  text-align: center;
  animation: authPop .25s ease;
}
.vp-modal-check {
  width: 64px; height: 64px;
  margin: 0 auto .8rem;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  color: var(--v3-teal-dark, #1f7a5e);
  background: rgba(6, 184, 148, 0.10);
}
.vp-modal-panel h2 { margin: 0 0 .4rem; font-size: 1.4rem; color: var(--v3-ink, #111417); }
.vp-modal-sub { margin: 0 0 .6rem; font-size: .95rem; font-weight: 600; color: var(--v3-ink, #111417); }
.vp-modal-body { margin: 0 0 1.2rem; font-size: .88rem; color: var(--v3-muted, #5d6974); line-height: 1.5; }
.vp-modal-panel .button.full { width: 100%; }

/* =====================================================================
   Region / currency picker (replicated from seats)
   ===================================================================== */
.region-button {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  border: 1px solid rgba(17,20,23,.12);
  border-radius: 999px;
  background: linear-gradient(180deg, #fff, #f7f8fa);
  padding: 0 14px;
  color: #242d36;
  font-size: 0.72rem;
  font-weight: 850;
  text-transform: uppercase;
  box-shadow: 0 8px 20px rgba(20, 27, 34, 0.07);
  white-space: nowrap;
  cursor: pointer;
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}
.region-button:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 26px rgba(20, 27, 34, 0.12);
  border-color: rgba(182, 155, 98, 0.55);
}
.region-button::after {
  content: "";
  width: 0;
  height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid #8a93a0;
  margin-left: 1px;
}
.region-button .button-flag {
  width: 24px;
  height: 16px;
  border: 1px solid rgba(17,20,23,.12);
  border-radius: 3px;
  overflow: hidden;
  display: inline-flex;
  flex: 0 0 auto;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.08);
}
.region-button .flag img,
.region-button .button-flag img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.region-button span { min-width: 0; }
.region-button .rf-text { display: flex; flex-direction: column; line-height: 1.05; }
.region-button .rf-text strong { font-size: 0.78rem; font-weight: 800; text-transform: none; letter-spacing: 0; }
.region-button .rf-text small { font-size: 0.62rem; color: #6b7680; text-transform: none; letter-spacing: 0; }
.region-button .rf-short { display: none; font-weight: 900; }

.header-actions {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  justify-self: end;
}

@keyframes regionCardIn {
  from { opacity: 0; transform: translateY(16px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.region-modal {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(17, 20, 23, 0.42);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  padding: 18px;
}
.region-modal.active { display: flex; animation: regionCardIn 0.26s ease both; }
.modal-lock { overflow: hidden; }

.region-card {
  position: relative;
  background: #fff;
  border: 1px solid rgba(17,20,23,.10);
  box-shadow: 0 30px 80px rgba(20,27,34,.20);
  border-radius: 16px;
  overflow: hidden;
  width: min(920px, 100%);
  max-height: min(92vh, 780px);
  display: flex;
  flex-direction: column;
  animation: regionCardIn 0.34s cubic-bezier(.2,.8,.25,1) both;
}
.region-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, rgba(182,155,98,0), rgba(182,155,98,.9), rgba(182,155,98,0));
  z-index: 6;
}
.region-card > *:not(.region-list) { flex: 0 0 auto; }
.region-card .icon-close {
  position: absolute;
  right: 12px;
  top: 12px;
  z-index: 7;
  width: 40px;
  height: 40px;
  border: 1px solid rgba(17,20,23,.12);
  border-radius: 999px;
  background: #fff;
  color: #111417;
  font-weight: 900;
  box-shadow: 0 8px 20px rgba(20,27,34,.12);
  cursor: pointer;
  font-size: 1.25rem;
  line-height: 1;
  transition: background .2s ease, color .2s ease, transform .2s ease;
}
.region-card .icon-close:hover { background: #111417; color: #fff; transform: rotate(90deg); }
.region-head { padding: 30px 28px 14px; }
.region-head .eyebrow {
  display: block;
  margin-bottom: 10px;
  color: #b69b62;
  font-size: 0.72rem;
  font-weight: 850;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.region-head h2 { font-size: clamp(1.5rem,3vw,2.3rem); margin: 0; text-transform: uppercase; line-height: 1.04; letter-spacing: -0.01em; }
.region-head p { margin: 8px 0 0; color: #6b7680; font-size: 0.9rem; max-width: 62ch; }
.region-benefits {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  padding: 0 28px 14px;
}
.region-benefits div {
  background: linear-gradient(180deg, #fbfaf7, #f6f7f9);
  border: 1px solid rgba(17,20,23,.08);
  border-radius: 10px;
  padding: 14px 14px 12px;
  position: relative;
}
.region-benefits div::before {
  content: "";
  position: absolute;
  left: 14px;
  top: 13px;
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background: rgba(182,155,98,.75);
}
.region-benefits strong { display: block; font-size: 0.82rem; color: #111417; margin-top: 10px; }
.region-benefits span { font-size: 0.72rem; color: #6b7680; }
.region-tools { display: grid; grid-template-columns: 1fr auto; gap: 10px; padding: 0 28px 14px; }
.region-tools input {
  flex: 1;
  min-width: 0;
  border: 1px solid rgba(17,20,23,.12);
  border-radius: 10px;
  padding: 0.7rem 0.9rem;
  font-size: 0.9rem;
  transition: border-color .18s ease, box-shadow .18s ease;
}
.region-tools input:focus { outline: none; border-color: rgba(182,155,98,.7); box-shadow: 0 0 0 4px rgba(182,155,98,.16); }
.region-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  padding: 4px 28px 18px;
  overflow: auto;
  flex: 1 1 auto;
  min-height: 160px;
  scrollbar-width: thin;
  overscroll-behavior: contain;
}
.region-option {
  display: grid;
  grid-template-columns: 45px 1fr auto;
  gap: 12px;
  align-items: center;
  min-height: 64px;
  border: 1px solid rgba(17,20,23,.12);
  border-radius: 12px;
  background: #fbfcfd;
  padding: 10px 12px;
  text-align: left;
  cursor: pointer;
  transition: border-color 0.18s ease, background 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}
.region-option:hover { border-color: rgba(182, 155, 98, 0.6); transform: translateY(-1px); box-shadow: 0 10px 22px rgba(20,27,34,.08); }
.region-option.selected {
  border-color: rgba(182,155,98,.9);
  background: linear-gradient(180deg, #fffdf8, #fbf6ea);
  box-shadow: 0 0 0 1px rgba(182,155,98,.35), 0 10px 24px rgba(182,155,98,.12);
}
.region-option .flag {
  width: 45px;
  height: 30px;
  border: 1px solid rgba(17,20,23,.12);
  border-radius: 5px;
  overflow: hidden;
  display: inline-flex;
  background: #fff;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.08);
}
.region-option .flag img { width: 100%; height: 100%; object-fit: contain; }
.region-option strong { display: block; font-size: 0.92rem; color: #111417; }
.region-option small { display: block; color: #6b7783; font-size: 0.74rem; }
.region-option em {
  display: block;
  font-style: normal;
  color: #8a93a0;
  font-size: 0.66rem;
  margin-top: 2px;
}
.region-check {
  font-size: 0.62rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #6b7783;
  white-space: nowrap;
}
.region-option.selected .region-check { color: #9a7b32; }
.region-foot {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 14px 28px;
  border-top: 1px solid rgba(17,20,23,.10);
  background: #f8f9fb;
}
.region-modal .btn { min-height: 46px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid #111417; border-radius: 999px; background: #111417; color: #fff; padding: 0 18px; font-size: .73rem; font-weight: 900; letter-spacing: .09em; text-transform: uppercase; box-shadow: 0 10px 24px rgba(17,20,23,.18); cursor: pointer; transition: transform .24s ease, box-shadow .24s ease, background .24s ease; }
.region-modal .btn:hover { transform: translateY(-2px); box-shadow: 0 16px 32px rgba(17,20,23,.22); }
.region-modal .btn.secondary { background: #fff; color: #111417; border-color: rgba(17,20,23,.24); box-shadow: 0 8px 18px rgba(20,27,34,.07); }
.region-modal .btn.gold { background: linear-gradient(180deg, #c4a86a, #b69b62); border-color: #b69b62; color: #1a1408; box-shadow: 0 12px 26px rgba(182,155,98,.28); }

@media (max-width: 760px) {
  .region-button .rf-text { display: none; }
  .region-button .rf-short { display: inline; }
  .region-button { padding: 0 12px; min-height: 40px; font-size: 0.66rem; }
  .region-button::after { display: none; }
  .region-card .icon-close { right: 10px; top: 10px; width: 36px; height: 36px; font-size: 1.1rem; }
  .region-head { padding: 44px 16px 10px; }
  .region-head h2 { font-size: clamp(1.3rem, 6vw, 1.8rem); }
  .region-head p { font-size: 0.82rem; margin-top: 6px; }
  .region-benefits { grid-template-columns: repeat(3, 1fr); gap: 6px; padding: 0 14px 10px; }
  .region-benefits div { padding: 10px 10px 8px; }
  .region-benefits div::before { width: 14px; left: 10px; top: 10px; }
  .region-benefits strong { font-size: 0.64rem; margin-top: 8px; }
  .region-benefits span { font-size: 0.56rem; }
  .region-tools { grid-template-columns: 1fr auto; gap: 8px; padding: 0 14px 10px; }
  .region-tools input { padding: 0.55rem 0.8rem; font-size: 0.85rem; }
  .region-tools .btn { min-height: 42px; padding: 0 14px; font-size: 0.68rem; }
  .region-list { grid-template-columns: repeat(2, 1fr); gap: 8px; padding: 4px 14px 12px; min-height: 120px; }
  .region-option { min-height: 54px; padding: 8px; gap: 8px; grid-template-columns: 45px 1fr auto; }
  .region-option .flag { width: 45px; }
  .region-option strong { font-size: 0.8rem; }
  .region-option small { font-size: 0.66rem; }
  .region-foot { padding: 10px 14px; gap: 8px; }
  .region-foot .btn { min-height: 42px; padding: 0 14px; font-size: 0.68rem; }
  .region-check { display: none; }
}
.auth-modal-panel h2 { font-size: 1.5rem; margin: 0 0 .2rem; color: var(--v3-ink); }
.auth-eyebrow { font-size: .8rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--v3-teal-dark); margin: 0 0 .8rem; }
.auth-close {
  position: absolute; top: 14px; right: 14px;
  width: 34px; height: 34px; border-radius: 10px; border: 0;
  background: var(--v3-ink-soft); color: var(--v3-muted); font-size: 1.1rem; cursor: pointer;
}
.auth-close:hover { background: var(--v3-ink); color: #fff; }
.auth-providers { display: flex; flex-direction: column; gap: .6rem; margin-bottom: .8rem; }
.button.block { width: 100%; justify-content: center; }
.button.google { background: #fff; color: #1f2430; border: 1px solid var(--v3-line); }
.button.google:hover { background: var(--v3-ink-soft); }
.auth-or { text-align: center; font-size: .78rem; color: var(--v3-muted); margin: .6rem 0; position: relative; }
.auth-or::before, .auth-or::after { content: ""; position: absolute; top: 50%; width: 38%; height: 1px; background: var(--v3-line); }
.auth-or::before { left: 0; } .auth-or::after { right: 0; }
.auth-field { display: flex; flex-direction: column; gap: .35rem; margin-bottom: .8rem; font-size: .82rem; font-weight: 700; color: var(--v3-ink); }
.auth-field input {
  padding: .75rem .85rem; border: 1px solid var(--v3-line); border-radius: 12px;
  font-size: .95rem; font-weight: 500; color: var(--v3-ink); background: #fff;
}
.auth-field input:focus { outline: none; border-color: var(--v3-teal); box-shadow: 0 0 0 3px var(--v3-teal-soft); }
.auth-error { color: #c0392b; font-size: .82rem; font-weight: 600; margin: .2rem 0 .6rem; min-height: 1em; }
.auth-success { color: #1e8e5a; font-size: .82rem; font-weight: 600; margin: .2rem 0 .6rem; }
.auth-link { background: none; border: 0; color: var(--v3-teal-dark); font-weight: 800; cursor: pointer; padding: 0; font-size: .85rem; }
.auth-link:hover { text-decoration: underline; }
.auth-terms { font-size: .76rem; color: var(--v3-muted); margin: .4rem 0 .2rem; }
.auth-modal-panel .button.full { width: 100%; }

/* Configurator */
.configurator {
  margin-top: 1.2rem;
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 1.1fr);
  gap: 0;
  border: 1px solid var(--v3-line, rgba(18, 26, 31, 0.1));
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 18px 44px rgba(16, 23, 27, 0.07);
  overflow: hidden;
}
.build-preview {
  padding: 1.4rem;
  background: linear-gradient(160deg, #0e2a24, #10342c);
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 1.4rem;
}
.build-caption span {
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.7);
}
.build-caption h3 { margin: 0.3rem 0 0; font-size: 1.35rem; color: #fff; line-height: 1.15; }
.build-total {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 14px;
  padding: 0.9rem 1rem;
}
.build-total span {
  display: block;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.7);
}
.build-total strong { display: block; font-size: 1.7rem; margin-top: 0.2rem; color: #fff; }
.build-total .price-disclaimer {
  display: block;
  margin-top: 0.35rem;
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.6);
}
.build-controls { padding: 1.4rem; }
.configurator-title { margin: 0 0 1rem; font-size: 1.05rem; font-weight: 850; color: var(--v3-ink); }
.config-group { margin-bottom: 1.1rem; }
.config-group-label {
  display: block;
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--v3-muted);
  margin: 0 0 0.55rem;
}
.config-choices {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(138px, 1fr));
  gap: 0.55rem;
}
.config-choice {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  border: 1px solid var(--v3-line, rgba(18, 26, 31, 0.12));
  background: #fbfcfd;
  border-radius: 12px;
  padding: 0.7rem 0.8rem;
  text-align: left;
  cursor: pointer;
  font: inherit;
  color: var(--v3-ink);
  transition: border-color 0.16s ease, background 0.16s ease, transform 0.16s ease, box-shadow 0.16s ease;
}
.config-choice:hover { border-color: rgba(6, 184, 148, 0.5); transform: translateY(-1px); }
.config-choice span { font-size: 0.9rem; font-weight: 700; }
.config-choice strong { font-size: 0.8rem; font-weight: 700; color: var(--v3-teal-dark); }
.config-choice[aria-checked="true"],
.config-choice.is-selected {
  border-color: #111417;
  background: #fff;
  box-shadow: 0 0 0 2px rgba(6, 184, 148, 0.25);
}
.config-choice[aria-checked="true"] strong,
.config-choice.is-selected strong { color: var(--v3-teal); }
.modal-summary {
  margin-top: 1rem;
  padding-top: 0.9rem;
  border-top: 1px solid var(--v3-line, rgba(18, 26, 31, 0.1));
  font-size: 0.85rem;
  color: var(--v3-muted);
}
.modal-summary span { line-height: 1.5; }

@media (max-width: 720px) {
  .configurator { grid-template-columns: 1fr; }
}

/* Checkout contract-agreement card (matching GT Seats) */
.contract-agreement{border:1px solid #e3d5b8;border-radius:12px;padding:16px;background:linear-gradient(135deg,#fdfbf7,#faf6ee);margin-top:16px}
.contract-agreement-head{display:flex;align-items:center;gap:8px;margin-bottom:8px;color:#8b6914}
.contract-agreement-head svg{flex-shrink:0}
.contract-agreement-head span{font-size:.82rem;font-weight:700}
.contract-agreement-note{font-size:.76rem;color:#6b5a2e;line-height:1.5;margin:0 0 12px}
.contract-check-box{flex-shrink:0;width:20px;height:20px;border:2px solid #c3c9d1;border-radius:5px;display:grid;place-items:center;transition:all .2s;margin-top:1px}
.contract-check-box svg{opacity:0;transition:opacity .15s}
.contract-check input{position:absolute;opacity:0;width:0;height:0}
.contract-check input:checked+.contract-check-box{background:#111417;border-color:#111417}
.contract-check input:checked+.contract-check-box svg{opacity:1}
.contract-check-text{font-size:.78rem;line-height:1.5;color:#4b5660}
.contract-link{color:#111417;font-weight:700;text-decoration:underline;text-decoration-color:rgba(17,20,23,.25);text-underline-offset:2px;border:none;background:none;padding:0;cursor:pointer;font-size:inherit}
.contract-link:hover{text-decoration-color:#111417}
.checkout-contract-check .contract-check-text{font-size:.76rem}

/* Support chat */
.support-panel { display: grid; grid-template-columns: 1fr 1.2fr; gap: 1.2rem; }
.support-list { display: flex; flex-direction: column; gap: .5rem; max-height: 420px; overflow: auto; }
.support-item {
  display: flex; justify-content: space-between; gap: .6rem; align-items: center;
  padding: .7rem .9rem; border: 1px solid var(--v3-line); border-radius: 12px; background: #fff; cursor: pointer;
}
.support-item:hover { border-color: var(--v3-teal); }
.support-item.unread { border-left: 4px solid var(--v3-teal); }
.support-item .meta { font-size: .82rem; }
.support-item .meta strong { display: block; color: var(--v3-ink); }
.support-item .meta small { color: var(--v3-muted); }
.support-badge { background: var(--v3-teal); color: #fff; font-size: .7rem; font-weight: 800; border-radius: 999px; padding: .15rem .5rem; }
.support-empty { color: var(--v3-muted); font-size: .9rem; text-align: center; margin: 2rem auto 0; max-width: 80%; }
.support-unauth { color: var(--v3-muted); font-size: .92rem; }

/* iMessage-style chat (account section) */
.im-chat {
  display: flex; flex-direction: column;
  border: 1px solid var(--v3-line);
  border-radius: 18px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 10px 30px rgba(7, 12, 22, 0.06);
}
.im-header {
  display: flex; align-items: center; gap: .7rem;
  padding: .7rem .9rem;
  border-bottom: 1px solid var(--v3-line);
  background: linear-gradient(#fbfcff, #fff);
}
.im-avatar {
  width: 38px; height: 38px; border-radius: 50%;
  background: linear-gradient(135deg, var(--v3-teal), var(--v3-teal-dark));
  color: #fff; font-weight: 900; font-size: .85rem;
  display: grid; place-items: center;
}
.im-peer { display: flex; flex-direction: column; line-height: 1.2; }
.im-peer strong { font-size: .92rem; color: var(--v3-ink); }
.im-peer span { font-size: .72rem; color: var(--v3-muted); }
.im-messages {
  flex: 1;
  min-height: 320px; max-height: 440px;
  overflow-y: auto;
  padding: 1rem;
  display: flex; flex-direction: column; gap: .5rem;
  background:
    radial-gradient(circle at 20% 20%, rgba(11,132,255,.04), transparent 60%),
    #fff;
}
.im-bubble {
  max-width: 76%;
  padding: .5rem .75rem;
  border-radius: 20px;
  font-size: .9rem; line-height: 1.35;
  position: relative;
  word-wrap: break-word;
  box-shadow: 0 1px 1px rgba(7, 12, 22, 0.08);
  animation: imPop .18s ease;
}
@keyframes imPop { from { transform: scale(.96) translateY(4px); opacity: 0; } to { transform: none; opacity: 1; } }
.im-bubble p { margin: 0; }
.im-bubble .im-time { display: block; font-size: .62rem; opacity: .6; margin-top: .25rem; text-align: right; }
.im-out {
  align-self: flex-end;
  background: linear-gradient(180deg, #2ea0ff, #0a84ff);
  color: #fff;
  border-bottom-right-radius: 6px;
}
.im-in {
  align-self: flex-start;
  background: #e9e9eb;
  color: #111;
  border-bottom-left-radius: 6px;
}
.im-input-row {
  display: flex; gap: .5rem; align-items: center;
  padding: .7rem; border-top: 1px solid var(--v3-line);
  background: #f7f8fa;
}
.im-input-row input {
  flex: 1;
  border: 1px solid var(--v3-line);
  border-radius: 999px;
  padding: .65rem .95rem;
  font-size: .92rem;
  background: #fff;
}
.im-input-row input:focus { outline: none; border-color: var(--v3-teal); box-shadow: 0 0 0 3px var(--v3-teal-soft); }
.im-input-row .button { border-radius: 999px; padding-left: 1.2rem; padding-right: 1.2rem; }

/* Orders */
.order-card { border: 1px solid var(--v3-line); border-radius: 14px; padding: .9rem 1rem; background: #fff; margin-bottom: .7rem; }
.order-card-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: .4rem; }
.order-card-head strong { color: var(--v3-ink); font-size: 1rem; }
.order-status { font-size: .72rem; font-weight: 800; padding: .2rem .55rem; border-radius: 999px; text-transform: uppercase; letter-spacing: .04em; }
.order-status-quote { background: var(--v3-ink-soft); color: var(--v3-muted); }
.order-status-ordered { background: #e7f0ff; color: #1d4ed8; }
.order-status-deposit_paid { background: #fff4e0; color: #b45309; }
.order-status-manufacturing { background: #efe7ff; color: #6d28d9; }
.order-status-quality_check { background: #e0f7fa; color: #0e7490; }
.order-status-ready_to_ship { background: #e7faf0; color: #047857; }
.order-status-shipped { background: #e8f5e9; color: #15803d; }
.order-total { font-weight: 800; color: var(--v3-ink); margin: .3rem 0 .6rem; }
.order-steps { list-style: none; display: flex; flex-wrap: wrap; gap: .3rem; padding: 0; margin: 0; }
.order-steps li { font-size: .68rem; font-weight: 700; color: var(--v3-muted); padding: .25rem .5rem; border-radius: 8px; background: var(--v3-ink-soft); }
.order-steps li.done { background: var(--v3-teal-soft); color: var(--v3-teal-dark); }
.order-steps li.active { background: var(--v3-teal); color: #fff; }
#orderResult, #myOrdersList { margin-top: .8rem; }

/* Deposit box */
.deposit-box { border: 1px solid var(--v3-line); border-radius: 16px; padding: 1.1rem; background: var(--v3-ink-soft); }
.deposit-amount { display: flex; justify-content: space-between; align-items: center; margin-bottom: .8rem; }
.deposit-amount span { font-size: .9rem; color: var(--v3-ink); }
.deposit-amount strong { font-size: 1.4rem; color: var(--v3-teal-dark); }
.terms-check { display: flex; gap: .6rem; align-items: flex-start; font-size: .82rem; color: var(--v3-muted); line-height: 1.4; margin-bottom: .9rem; }
.terms-check input { margin-top: .2rem; width: 18px; height: 18px; }
.deposit-note { font-size: .78rem; color: var(--v3-muted); margin: .6rem 0 0; text-align: center; }

.card-frame-wrap { margin: 1rem 0 .4rem; padding: 1rem; border: 1px solid var(--v3-line); border-radius: 14px; background: var(--v3-surface); }
.card-fields-title { font-weight: 700; color: var(--v3-ink); font-size: .92rem; margin: 0 0 .4rem; }
.card-secure-note { font-size: .74rem; color: var(--v3-muted); margin: .2rem 0 .8rem; text-align: center; }
.ikhokha-frame { width: 100%; min-height: 560px; border: 0; border-radius: 12px; background: #fff; }

.ik-card-form { display: flex; flex-direction: column; gap: .7rem; }
.ik-field { display: flex; flex-direction: column; gap: .3rem; }
.ik-field label { font-size: .76rem; font-weight: 600; color: var(--v3-muted); letter-spacing: .02em; }
.ik-card-form input {
  width: 100%; padding: .7rem .8rem; border: 1px solid var(--v3-line); border-radius: 10px;
  background: #fff; color: var(--v3-ink); font-size: .95rem; outline: none; box-sizing: border-box;
}
.ik-card-form input:focus { border-color: var(--v3-teal); box-shadow: 0 0 0 3px rgba(6,184,148,.18); }
.ik-row { display: flex; gap: .7rem; }
.ik-row .ik-field { flex: 1; }
.ik-card-error { color: #c0392b; font-size: .78rem; background: #fdecea; border: 1px solid #f5c2bb; padding: .5rem .7rem; border-radius: 8px; }
.ik-secure-badge { font-size: .72rem; color: var(--v3-teal-dark); text-align: center; margin: .2rem 0 0; font-weight: 600; }

.ik-threeds { margin-top: .4rem; display: flex; flex-direction: column; gap: .4rem; }
.ik-threeds-title { font-weight: 700; color: var(--v3-ink); font-size: .9rem; margin: 0; }
.ik-threeds-sub { font-size: .76rem; color: var(--v3-muted); margin: 0 0 .4rem; }
.ik-threeds-frame { width: 100%; min-height: 520px; border: 1px solid var(--v3-line); border-radius: 12px; background: #fff; }

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

/* ============================================================
   VendPlay — motion system (aggressive, professional)
   Slide-ins from left / right / up, re-trigger on every
   scroll re-entry. Gated by prefers-reduced-motion.
   ============================================================ */
@media (prefers-reduced-motion: no-preference) {

  /* ---- Scroll reveal (slide-in, reverses when scrolled away) ---- */
  .vp-reveal {
    opacity: 0;
    transition: opacity .8s cubic-bezier(.34, 1.56, .64, 1),
                transform .8s cubic-bezier(.34, 1.56, .64, 1);
    will-change: opacity, transform;
  }
  .vp-reveal.from-left  { transform: translateX(-120px) rotate(-2deg); }
  .vp-reveal.from-right { transform: translateX(120px) rotate(2deg); }
  .vp-reveal.from-up    { transform: translateY(80px); }
  .vp-reveal.from-scale { transform: scale(.85); }
  .vp-reveal.is-visible { opacity: 1; transform: none; }

  /* ---- Hero: staggered slide-in from the left ---- */
  .homepage-hero-copy > * { animation: vpHeroIn .85s cubic-bezier(.2, .8, .2, 1) both; }
  .homepage-hero-copy .eyebrow    { animation-delay: .05s; }
  .homepage-hero-copy h1          { animation-delay: .16s; }
  .homepage-hero-copy p           { animation-delay: .30s; }
  .homepage-hero-copy .action-row { animation-delay: .45s; }
  @keyframes vpHeroIn {
    from { opacity: 0; transform: translateX(-48px); }
    to   { opacity: 1; transform: none; }
  }

  /* ---- Animated gradient text accents ---- */
  .gradient-text {
    background: linear-gradient(90deg, var(--teal), var(--teal-dark), #19e0ad, var(--teal));
    background-size: 220% auto;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    animation: vpGrad 4.5s linear infinite;
  }
  @keyframes vpGrad { to { background-position: 220% center; } }

  /* ---- Buttons: shine sweep + glow pulse + smooth transform ---- */
  .button {
    position: relative;
    overflow: hidden;
    isolation: isolate;
    transition: transform .25s ease, box-shadow .25s ease;
  }
  .button::after {
    content: "";
    position: absolute;
    top: 0; left: -130%;
    width: 55%; height: 100%;
    background: linear-gradient(120deg, transparent, rgba(255, 255, 255, .6), transparent);
    transform: skewX(-20deg);
    transition: left .65s ease;
    pointer-events: none;
  }
  .button:hover::after { left: 140%; }
  .button.primary { animation: vpCtaPulse 2.6s ease-in-out infinite; }
  @keyframes vpCtaPulse {
    0%, 100% { box-shadow: 0 10px 22px rgba(8, 201, 155, .30); }
    50%      { box-shadow: 0 14px 36px rgba(8, 201, 155, .58); }
  }

  /* ---- Nav: scroll glow + animated underline ---- */
  .site-header { transition: box-shadow .3s ease, border-color .3s ease; }
  .site-header.is-scrolled {
    box-shadow: 0 12px 32px rgba(16, 23, 27, .12);
    border-color: rgba(8, 201, 155, .35);
  }
  .site-nav a { position: relative; }
  .site-nav a::after {
    content: "";
    position: absolute;
    left: 50%; right: 50%; bottom: -8px;
    height: 2px;
    background: linear-gradient(90deg, var(--teal), var(--teal-dark));
    transition: left .3s ease, right .3s ease;
  }
  .site-nav a:hover::after,
  .site-nav a.active::after { left: 8%; right: 8%; }

  /* ---- Card sheen sweep on hover ---- */
  .home-focus-card,
  .home-assurance-strip article,
  .slot-showcase-visual { position: relative; transition: transform .3s cubic-bezier(.2, .8, .2, 1), box-shadow .3s ease; }
  .product-card { position: relative; }
  .home-focus-card::after,
  .home-assurance-strip article::after,
  .product-card::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(115deg, transparent 35%, rgba(8, 201, 155, .14), transparent 65%);
    transform: translateX(-110%);
    transition: transform .75s ease;
  }
  .home-focus-card:hover::after,
  .home-assurance-strip article:hover::after,
  .product-card:hover::after { transform: translateX(110%); }

  /* ---- Scroll progress bar (hidden until the page actually scrolls) ---- */
  .vp-scroll-progress {
    position: fixed;
    top: 0; left: 0;
    height: 3px;
    width: 0;
    z-index: 1200;
    opacity: 0;
    background: linear-gradient(90deg, var(--teal), var(--teal-dark), #19e0ad);
    transition: width .12s ease, opacity .2s ease;
  }
  .vp-scroll-progress.is-active { opacity: 1; }

  /* Affiliate / promo bar: gentle animated in on the shop page, animated out on tab switch.
     Only the bar animates — the rest of the page switches normally (no blank screen). */
  .announcement-bar {
    animation: annBarIn .5s cubic-bezier(.2, .8, .2, 1) both;
  }
  .announcement-bar.is-leaving {
    animation: annBarOut .3s ease forwards;
  }
  @keyframes annBarIn {
    from { opacity: 0; transform: translateY(-100%); }
    to   { opacity: 1; transform: translateY(0); }
  }
  @keyframes annBarOut {
    from { opacity: 1; transform: translateY(0); }
    to   { opacity: 0; transform: translateY(-100%); }
  }
}

/* Consistent brand logo across every page and breakpoint */
.site-header .brand img { width: clamp(150px, 16vw, 210px) !important; height: 44px !important; }

/* ============================================================
   VendPlay — VISUAL UPGRADE + AGGRESSIVE MOTION (v2)
   Modern gradients, glassmorphism, glows, bouncy product
   images, marquee, animated blobs, springy CTAs.
   Gated by prefers-reduced-motion.
   ============================================================ */
@media (prefers-reduced-motion: no-preference) {

  /* ---- Ambient background wash (very subtle, slow drift) ---- */
  /* No filter:blur — blurring a huge fixed element every frame forces constant
     repaints. The radial gradients are already soft, so we animate transform only. */
  body::before {
    content: "";
    position: fixed;
    inset: -20vmax;
    z-index: -1;
    pointer-events: none;
    will-change: transform;
    background:
      radial-gradient(42vmax 42vmax at 10% 12%, rgba(8, 201, 155, 0.08), transparent 62%),
      radial-gradient(38vmax 38vmax at 90% 8%, rgba(25, 224, 173, 0.07), transparent 62%),
      radial-gradient(44vmax 44vmax at 72% 96%, rgba(182, 155, 98, 0.06), transparent 64%);
    animation: vpBlob 40s ease-in-out infinite alternate;
  }
  @keyframes vpBlob {
    0%   { transform: translate3d(0, 0, 0) scale(1); }
    50%  { transform: translate3d(2vw, -2vh, 0) scale(1.08); }
    100% { transform: translate3d(-2vw, 2vh, 0) scale(1.04); }
  }

  /* ---- Hero copy: bigger springy entrance ---- */
  .homepage-hero-copy > * { animation: vpHeroIn 1s cubic-bezier(.34, 1.56, .64, 1) both; }
  .homepage-hero-copy h1 { animation: vpHeroPop 1.1s cubic-bezier(.34, 1.56, .64, 1) both; }
  @keyframes vpHeroPop {
    0%   { opacity: 0; transform: translateX(-60px) scale(.92); }
    60%  { opacity: 1; transform: translateX(8px) scale(1.02); }
    100% { opacity: 1; transform: none; }
  }

  /* ---- Hero video: slow zoom loop ---- */
  .homepage-hero-video { animation: vpHeroZoom 14s ease-in-out infinite alternate; }
  @keyframes vpHeroZoom {
    from { transform: scale(1.04); }
    to   { transform: scale(1.12); }
  }

  /* ---- Store banner: parallax-ish float ---- */
  .store-banner {
    animation: vpBannerFloat 7s ease-in-out infinite alternate;
    box-shadow: none;
  }
  @keyframes vpBannerFloat {
    from { transform: translateY(-6px); }
    to   { transform: translateY(6px); }
  }

  /* ---- Marquee strip (editorial trust band) ---- */
  .vp-marquee {
    overflow: hidden;
    position: relative;
    border-top: 1px solid var(--v3-line);
    border-bottom: 1px solid var(--v3-line);
    background: linear-gradient(180deg, rgba(255,255,255,0.7), rgba(244,247,246,0.7));
    padding: 1.05rem 0;
    margin-top: 2.5rem;
  }
  .vp-marquee-track {
    display: flex;
    gap: 2.6rem;
    width: max-content;
    animation: vpMarquee 38s linear infinite;
  }
  .vp-marquee:hover .vp-marquee-track { animation-play-state: paused; }
  .vp-marquee span {
    display: inline-flex;
    align-items: center;
    gap: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--v3-ink);
    white-space: nowrap;
    font-size: 0.74rem;
  }
  .vp-marquee span::before {
    content: "";
    width: 5px; height: 5px; border-radius: 50%;
    background: var(--v3-teal);
    opacity: 0.55;
  }
  @keyframes vpMarquee {
    from { transform: translateX(0); }
    to   { transform: translateX(-50%); }
  }

  /* ---- Calm CTA glow (no bounce — reads as confident, not template-y) ---- */
  .button.primary { animation: vpCtaGlow 3.4s ease-in-out infinite; }
  @keyframes vpCtaGlow {
    0%, 100% { box-shadow: 0 10px 22px rgba(8, 201, 155, 0.26); }
    50%      { box-shadow: 0 14px 30px rgba(8, 201, 155, 0.42); }
  }

  /* ---- Cards: lift + glow on hover ---- */
  .home-focus-card,
  .home-assurance-strip article,
  .product-card,
  .capital-panel,
  .capital-term-card,
  .result-card {
    transition: transform .35s cubic-bezier(.34, 1.56, .64, 1), box-shadow .35s ease, border-color .35s ease;
  }
  .home-focus-card:hover,
  .home-assurance-strip article:hover,
  .product-card:hover,
  .capital-panel:hover,
  .capital-term-card:hover,
  .result-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 26px 54px rgba(16, 23, 27, 0.14), 0 10px 24px rgba(16, 23, 27, 0.08);
    border-color: rgba(8, 201, 155, 0.4);
  }

  /* ---- Glassmorphism on focus cards ---- */
  .home-focus-card.primary {
    background: linear-gradient(135deg, rgba(255,255,255,.92), rgba(232, 251, 245, .82));
    backdrop-filter: blur(10px);
    border: 1px solid rgba(8, 201, 155, .25);
  }

  /* ---- Animated gradient border on primary focus card ---- */
  .home-focus-card.primary::before {
    content: "";
    position: absolute;
    inset: -1px;
    border-radius: inherit;
    padding: 1px;
    background: linear-gradient(120deg, var(--teal), transparent 40%, var(--amber) 80%, var(--teal));
    background-size: 300% 300%;
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    animation: vpBorder 6s linear infinite;
    pointer-events: none;
    opacity: .8;
  }
  @keyframes vpBorder { to { background-position: 300% 0; } }

  /* ---- Eyebrow / mini-code: stronger gradient shimmer ---- */
  .gradient-text {
    background: linear-gradient(90deg, var(--teal), var(--teal-dark), #19e0ad, var(--amber), var(--teal));
    background-size: 280% auto;
    animation: vpGrad 5s linear infinite;
  }

  /* ---- Cart button: bounce when count changes ---- */
  .cart-button.bump { animation: vpBump .5s cubic-bezier(.34, 1.56, .64, 1); }
  @keyframes vpBump {
    0% { transform: scale(1); }
    40% { transform: scale(1.25) rotate(-6deg); }
    70% { transform: scale(.92) rotate(4deg); }
    100% { transform: scale(1); }
  }

  /* ---- Filter chips: springy active state ---- */
  .filter-chip {
    transition: transform .25s cubic-bezier(.34, 1.56, .64, 1), background .25s ease, color .25s ease, box-shadow .25s ease;
  }
  .filter-chip:hover { transform: translateY(-3px) scale(1.04); }
  .filter-chip.active {
    background: var(--graphite);
    color: #fff;
    box-shadow: 0 12px 26px rgba(16, 23, 27, .22);
    transform: translateY(-2px) scale(1.03);
  }

  /* ---- Section headings: slide + fade with a teal underline grow ---- */
  main section > h2, .page-title h1, .page-title h2 {
    position: relative;
  }
  main section > h2::after, .page-title h1::after {
    content: "";
    display: block;
    width: 0;
    height: 4px;
    margin-top: 0.6rem;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--teal), var(--teal-dark));
    animation: vpUnderline 1s cubic-bezier(.34, 1.56, .64, 1) .3s both;
  }
  @keyframes vpUnderline { to { width: 84px; } }

  /* ---- Footer: subtle lift on links ---- */
  .site-footer img { transition: transform .4s cubic-bezier(.34, 1.56, .64, 1); }
  .site-footer:hover img { transform: scale(1.04) rotate(-1deg); }

  /* ---- Modal panel: no transform-based animation ---- */
  /* A previous springy pop used `transform` with `both` fill mode, which
     locked the panel transform and offset it from its hit-test box — that
     made the close (X) button and everything inside unclickable. The open
     state below handles visibility; no keyframe animation is used. */

  /* ---- Announcement bar: shimmering gradient text ---- */
  .announcement-bar span {
    background: linear-gradient(90deg, var(--ink), var(--teal-dark), var(--ink));
    background-size: 200% auto;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    animation: vpGrad 6s linear infinite;
    font-weight: 800;
  }
}

/* Reduced motion: keep things calm but still visible */
@media (prefers-reduced-motion: reduce) {
  .product-photo-stage .product-photo,
  .product-photo-stage .machine,
  .homepage-hero-video,
  .store-banner,
  .vp-marquee-track { animation: none !important; }
}

/* ===================================================================
   WORLD-CLASS REFINEMENT OVERRIDES (vendplay-premium-53)
   These sit last so they win over the V3 layer's !important rules.
   =================================================================== */

/* Image-only focus cards: framed screenshot surfaces, no padding/mat doubling. */
body[data-page="home"] .home-focus-image-card {
  padding: 0 !important;
  gap: 0 !important;
  align-self: start;
  background: linear-gradient(180deg, #ffffff, #f4f7f6) !important;
  border: 1px solid rgba(17, 19, 21, 0.1) !important;
  border-radius: 18px !important;
  box-shadow: 0 18px 40px rgba(17, 19, 21, 0.1), 0 2px 8px rgba(17, 19, 21, 0.05) !important;
  transition: transform 460ms cubic-bezier(.2, .8, .2, 1), box-shadow 460ms ease, border-color 460ms ease !important;
}
body[data-page="home"] .home-focus-image-card .home-focus-media {
  padding: 14px !important;
  background: linear-gradient(180deg, #ffffff, #eef3f1) !important;
  border-radius: 0 !important;
}
body[data-page="home"] .home-focus-image-card .home-focus-media img {
  border-radius: 10px !important;
  border: 1px solid rgba(17, 19, 21, 0.08) !important;
  box-shadow: 0 10px 26px rgba(17, 19, 21, 0.12) !important;
  transition: transform 620ms cubic-bezier(.2, .8, .2, 1) !important;
}
body[data-page="home"] .home-focus-image-card:hover {
  transform: translateY(-6px) !important;
  border-color: rgba(8, 201, 155, 0.4) !important;
  box-shadow: 0 34px 70px rgba(17, 19, 21, 0.16), 0 8px 20px rgba(17, 19, 21, 0.08) !important;
}
body[data-page="home"] .home-focus-image-card:hover .home-focus-media img {
  transform: scale(1.025) !important;
}

/* Footer: ensure the multi-column grid wins over any earlier single-column rule. */
.site-footer {
  display: grid !important;
  grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr)) !important;
}

/* ===== CATEGORY SELECTOR — GT-SEATS BRAND-RAIL STYLE ===== */
.store-filter-bar .panel-label { display: none !important; }

.store-filter-bar .vertical-filters {
  display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(80px, 1fr)) !important;
  gap: 8px !important;
  width: 100% !important;
  flex-direction: unset !important;
  flex-wrap: unset !important;
  justify-content: unset !important;
}

.filter-chip {
  height: 64px !important;
  display: grid !important;
  place-items: center !important;
  padding: 10px !important;
  border: 1px solid rgba(17, 19, 21, 0.08) !important;
  border-radius: 12px !important;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(247, 248, 250, 0.9)) !important;
  color: rgba(17, 19, 21, 0.66) !important;
  font-size: 0.72rem !important;
  font-weight: 850 !important;
  letter-spacing: 0.04em !important;
  text-align: center !important;
  line-height: 1.25 !important;
  box-shadow: 0 10px 24px rgba(20, 27, 34, 0.07) !important;
  transform: none !important;
  transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease, background 0.28s ease, color 0.28s ease !important;
}

.filter-chip:hover {
  border-color: rgba(17, 20, 23, 0.28) !important;
  background: #fff !important;
  box-shadow: 0 18px 44px rgba(20, 27, 34, 0.13) !important;
  transform: translateY(-4px) !important;
  color: rgba(17, 19, 21, 0.8) !important;
}

.filter-chip.active {
  border-color: rgba(6, 184, 148, 0.88) !important;
  background: linear-gradient(135deg, #0f1923, #1a3a3a) !important;
  color: #fff !important;
  box-shadow: 0 18px 44px rgba(17, 20, 23, 0.22), 0 0 0 2px rgba(6, 184, 148, 0.22) inset !important;
  transform: translateY(-4px) !important;
}

.filter-chip.active:hover {
  transform: translateY(-4px) !important;
  background: linear-gradient(135deg, #152630, #204848) !important;
}

@media (max-width: 760px) {
  .store-filter-bar .vertical-filters {
    grid-template-columns: repeat(auto-fit, minmax(70px, 1fr)) !important;
  }
  .filter-chip {
    height: 56px !important;
    font-size: 0.65rem !important;
  }
}

/* =====================================================================
   Payment method selector (Card / Bitcoin) on the checkout page
   ===================================================================== */
.payment-method-selector {
  display: flex;
  gap: 6px;
  padding: 5px;
  margin-bottom: 1rem;
  background: var(--v3-bg, #eef2f1);
  border: 1px solid var(--v3-line, rgba(18, 32, 40, 0.09));
  border-radius: var(--v3-r-sm, 14px);
}
.payment-method-tab {
  flex: 1;
  min-height: 44px;
  border: 1px solid transparent;
  border-radius: calc(var(--v3-r-sm, 14px) - 4px);
  background: transparent;
  color: var(--v3-muted, #667179);
  font-family: var(--font-sans);
  font-size: 0.85rem;
  font-weight: 800;
  cursor: pointer;
  transition: background 0.18s ease, color 0.18s ease, box-shadow 0.18s ease;
}
.payment-method-tab:hover {
  color: var(--v3-ink, #101417);
}
.payment-method-tab.active {
  background: var(--v3-paper, #ffffff);
  color: var(--v3-teal-dark, #047a63);
  box-shadow: 0 1px 4px rgba(16, 20, 23, 0.08);
}

/* ---- Paystack verification step section ---- */
.pay-step-section {
  margin-top: 1rem;
  padding: 1rem;
  border: 1px solid var(--v3-line, rgba(18, 32, 40, 0.09));
  border-radius: var(--v3-r-sm, 14px);
  background: var(--v3-teal-soft, #e6f8f2);
}
.pay-step-title {
  margin: 0 0 0.8rem;
  font-size: 0.9rem;
  font-weight: 800;
  color: var(--v3-ink, #101417);
  line-height: 1.4;
}
.pay-step-fields {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  margin-bottom: 1rem;
}
.pay-step-fields input {
  width: 100%;
  padding: 0.7rem 0.8rem;
  border: 1px solid var(--v3-line, rgba(18, 32, 40, 0.09));
  border-radius: 10px;
  background: #fff;
  color: var(--v3-ink, #101417);
  font-size: 0.95rem;
  outline: none;
  box-sizing: border-box;
}
.pay-step-fields input:focus {
  border-color: var(--v3-teal, #06b894);
  box-shadow: 0 0 0 3px rgba(6, 184, 148, 0.12);
}
.pay-step-actions {
  display: flex;
  gap: 0.6rem;
}
.pay-step-actions .button {
  flex: 1;
}

/* ---- Bitcoin (crypto) payment panel ---- */
.crypto-panel {
  margin-top: 1rem;
  padding: 1rem;
  border: 1px solid var(--v3-line, rgba(18, 32, 40, 0.09));
  border-radius: var(--v3-r-md, 20px);
  background: var(--v3-paper, #ffffff);
}
.crypto-panel-head {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  margin-bottom: 0.9rem;
}
.crypto-panel-head svg {
  color: var(--v3-gold, #b8954a);
  flex-shrink: 0;
}
.crypto-panel-title {
  margin: 0 0 0.2rem;
  font-size: 0.98rem;
  font-weight: 900;
  color: var(--v3-ink, #101417);
}
.crypto-panel-sub {
  margin: 0;
  font-size: 0.78rem;
  color: var(--v3-muted, #667179);
  line-height: 1.5;
}
.crypto-create {
  text-align: center;
}
.crypto-waiting {
  text-align: center;
}
.crypto-qr-wrap {
  margin-bottom: 0.8rem;
  display: flex;
  justify-content: center;
}
.crypto-qr:empty {
  display: none;
}
.crypto-details {
  text-align: left;
}
.crypto-detail-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  padding: 0.5rem 0.25rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}
.crypto-detail-row:last-child {
  border-bottom: none;
}
.crypto-detail-row:first-child {
  border-top: 1px solid rgba(0, 0, 0, 0.05);
}
.crypto-detail-label {
  font-size: 0.74rem;
  color: var(--v3-muted, #667179);
  font-weight: 600;
  flex-shrink: 0;
}
.crypto-detail-value {
  font-size: 0.78rem;
  color: var(--v3-ink, #101417);
  font-weight: 700;
  text-align: right;
  word-break: break-all;
  flex: 1;
  min-width: 0;
}
.crypto-address {
  font-family: monospace;
  font-size: 0.68rem;
}
.crypto-timer {
  color: var(--v3-gold, #b8954a);
  font-variant-numeric: tabular-nums;
}
.crypto-timer-urgent {
  color: var(--v3-red, #f06464);
  animation: crypto-pulse 1s ease-in-out infinite;
}
@keyframes crypto-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}
.crypto-actions {
  display: flex;
  gap: 0.5rem;
  margin: 0.8rem 0 0.4rem;
}
.crypto-actions .button {
  flex: 1;
}
.crypto-copy-inline.copied {
  background: rgba(15, 191, 134, 0.1);
  color: var(--v3-up, #0fbf86);
  border-color: rgba(15, 191, 134, 0.25);
}
.crypto-status {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.4rem;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--v3-ink-soft, #667179);
  background: var(--v3-bg, #eef2f1);
  border: 1px solid var(--v3-line, rgba(18, 32, 40, 0.09));
  border-radius: 999px;
  padding: 0.35rem 0.8rem;
}
.crypto-status::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--v3-gold, #b8954a);
  animation: crypto-pulse 1.5s ease-in-out infinite;
}
.crypto-status-success {
  color: var(--v3-up, #0fbf86);
  background: rgba(15, 191, 134, 0.08);
  border-color: rgba(15, 191, 134, 0.15);
}
.crypto-status-success::before {
  background: var(--v3-up, #0fbf86);
  animation: none;
}
.crypto-expired {
  text-align: center;
  padding: 1rem 0;
}
.crypto-expired p {
  font-size: 0.82rem;
  color: var(--v3-muted, #667179);
  margin-bottom: 0.8rem;
}
.crypto-trust-note {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  margin-top: 0.9rem;
  padding: 0.5rem 0.6rem;
  font-size: 0.68rem;
  line-height: 1.4;
  color: var(--v3-muted, #667179);
  background: var(--v3-bg, #eef2f1);
  border-radius: 10px;
}
.crypto-trust-note svg {
  flex-shrink: 0;
  color: var(--v3-up, #0fbf86);
}

/* =====================================================================
   Legal / policy pages (privacy-policy.html, terms-of-service.html)
   ===================================================================== */
.legal-page {
  min-height: 60vh;
  padding-bottom: 4rem;
}
.legal-hero {
  padding: 3rem 0 2rem;
  border-bottom: 1px solid var(--v3-line, rgba(18, 32, 40, 0.09));
  background:
    radial-gradient(1100px 320px at 18% -60px, rgba(6, 184, 148, 0.08), transparent 60%),
    var(--v3-bg, #eef2f1);
}
.legal-hero h1 {
  margin: 0.35rem 0 0;
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  letter-spacing: -0.02em;
  color: var(--v3-ink, #101417);
}
.legal-hero .legal-updated {
  margin: 0.4rem 0 0;
  font-size: 0.78rem;
  color: var(--v3-muted, #667179);
}
.legal-prose {
  max-width: 760px;
}
.legal-prose section {
  padding-top: 1.6rem;
}
.legal-prose h2 {
  font-size: 1.05rem;
  font-weight: 900;
  color: var(--v3-ink, #101417);
  margin: 0 0 0.6rem;
}
.legal-prose h3 {
  font-size: 0.9rem;
  font-weight: 800;
  color: var(--v3-teal-dark, #047a63);
  margin: 1rem 0 0.4rem;
}
.legal-prose p,
.legal-prose li {
  font-size: 0.88rem;
  line-height: 1.7;
  color: var(--v3-soft-ink, #3c4a52);
}
.legal-prose p {
  margin: 0 0 0.7rem;
}
.legal-prose ul,
.legal-prose ol {
  margin: 0 0 0.9rem;
  padding-left: 1.2rem;
}
.legal-prose li {
  margin-bottom: 0.35rem;
}
.legal-prose a {
  color: var(--v3-teal-dark, #047a63);
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* =====================================================================
   Homepage FAQ, testimonials and contact sections
   ===================================================================== */
.home-faq,
.home-contact {
  padding: 4rem 0;
}
.home-faq {
  background: var(--v3-bg, #eef2f1);
  border-top: 1px solid var(--v3-line, rgba(18, 32, 40, 0.09));
}
.home-faq-inner,
.home-contact-inner,
.home-testimonials-inner {
  width: min(1180px, calc(100% - 2rem));
  margin-inline: auto;
}
.home-faq .eyebrow,
.home-testimonials .eyebrow,
.home-contact .eyebrow {
  display: block;
  margin-bottom: 0.4rem;
}
.home-faq h2,
.home-testimonials h2,
.home-contact h2 {
  margin: 0 0 0.3rem;
  font-size: clamp(1.5rem, 3.5vw, 2.2rem);
  letter-spacing: -0.02em;
  color: var(--v3-ink, #101417);
}
.home-faq-sub,
.home-testimonials-sub {
  margin: 0 0 1.6rem;
  font-size: 0.92rem;
  color: var(--v3-muted, #667179);
}
.faq-list {
  max-width: 760px;
  display: grid;
  gap: 0.7rem;
}
.faq-item {
  background: var(--v3-paper, #ffffff);
  border: 1px solid var(--v3-line, rgba(18, 32, 40, 0.09));
  border-radius: var(--v3-r-sm, 14px);
  overflow: hidden;
}
.faq-item summary {
  cursor: pointer;
  list-style: none;
  padding: 1rem 1.1rem;
  font-size: 0.92rem;
  font-weight: 800;
  color: var(--v3-ink, #101417);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.faq-item summary::-webkit-details-marker {
  display: none;
}
.faq-item summary::after {
  content: "+";
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--v3-teal, #06b894);
  flex-shrink: 0;
}
.faq-item[open] summary::after {
  content: "−";
}
.faq-item p {
  margin: 0;
  padding: 0 1.1rem 1.1rem;
  font-size: 0.86rem;
  line-height: 1.7;
  color: var(--v3-soft-ink, #3c4a52);
}
.home-testimonials {
  padding: 4rem 0;
}
.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}
@media (max-width: 900px) {
  .testimonial-grid {
    grid-template-columns: 1fr;
  }
}
.testimonial-card {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  padding: 1.2rem;
  background: var(--v3-paper, #ffffff);
  border: 1px solid var(--v3-line, rgba(18, 32, 40, 0.09));
  border-radius: var(--v3-r-md, 20px);
}
.testimonial-card blockquote {
  margin: 0;
  font-size: 0.86rem;
  line-height: 1.7;
  color: var(--v3-soft-ink, #3c4a52);
  flex: 1;
}
.testimonial-card blockquote::before {
  content: "“";
  color: var(--v3-teal, #06b894);
  font-size: 1.6rem;
  line-height: 0;
  vertical-align: -0.35em;
  margin-right: 0.15rem;
}
.testimonial-who {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding-top: 0.8rem;
  border-top: 1px solid rgba(0, 0, 0, 0.05);
}
.testimonial-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 0.85rem;
  color: #fff;
  background: var(--v3-teal, #06b894);
  flex-shrink: 0;
}
.testimonial-who strong {
  display: block;
  font-size: 0.84rem;
  color: var(--v3-ink, #101417);
}
.testimonial-who span {
  font-size: 0.72rem;
  color: var(--v3-muted, #667179);
}
.home-contact {
  border-top: 1px solid var(--v3-line, rgba(18, 32, 40, 0.09));
  background:
    radial-gradient(900px 280px at 85% 0%, rgba(6, 184, 148, 0.07), transparent 60%),
    var(--v3-bg, #eef2f1);
}
.home-contact-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  align-items: center;
}
@media (max-width: 800px) {
  .home-contact-inner {
    grid-template-columns: 1fr;
  }
}
.contact-cards {
  display: grid;
  gap: 0.8rem;
}
.contact-card {
  display: flex;
  gap: 0.8rem;
  align-items: flex-start;
  padding: 1rem;
  background: var(--v3-paper, #ffffff);
  border: 1px solid var(--v3-line, rgba(18, 32, 40, 0.09));
  border-radius: var(--v3-r-sm, 14px);
}
.contact-card-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: var(--v3-teal-soft, #e6f8f2);
  color: var(--v3-teal-dark, #047a63);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.contact-card strong {
  display: block;
  font-size: 0.86rem;
  color: var(--v3-ink, #101417);
}
.contact-card p {
  margin: 0.2rem 0 0;
  font-size: 0.8rem;
  line-height: 1.5;
  color: var(--v3-muted, #667179);
}
.contact-card a {
  color: var(--v3-teal-dark, #047a63);
  font-weight: 700;
  text-decoration: none;
}
.home-contact-cta {
  padding: 1.6rem;
  border: 1px solid rgba(6, 184, 148, 0.18);
  border-radius: var(--v3-r-md, 20px);
  background:
    radial-gradient(600px 260px at 100% 0%, rgba(6, 184, 148, 0.12), transparent 60%),
    var(--v3-paper, #ffffff);
  box-shadow: var(--v3-sh-glow, 0 24px 70px rgba(6, 184, 148, 0.18));
}
.home-contact-cta h3 {
  margin: 0 0 0.6rem;
  font-size: 1.25rem;
  letter-spacing: -0.02em;
  color: var(--v3-ink, #101417);
}
.home-contact-cta > p:not(.eyebrow) {
  margin: 0 0 1.1rem;
  font-size: 0.86rem;
  line-height: 1.7;
  color: var(--v3-muted, #667179);
}
.home-contact-points {
  margin: 1.2rem 0 0;
  padding: 1rem 0 0;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
  list-style: none;
  display: grid;
  gap: 0.5rem;
}
.home-contact-points li {
  font-size: 0.8rem;
  color: var(--v3-soft-ink, #3c4a52);
  display: flex;
  gap: 0.5rem;
  align-items: center;
}
.home-contact-points li::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--v3-teal, #06b894);
  flex-shrink: 0;
}

/* =====================================================================
   Guides index + article pages
   ===================================================================== */
.guides-page {
  min-height: 60vh;
  padding-bottom: 4rem;
}
.guide-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-top: 1.6rem;
}
@media (max-width: 900px) {
  .guide-grid {
    grid-template-columns: 1fr;
  }
}
.guide-card {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  padding: 1.3rem;
  background: var(--v3-paper, #ffffff);
  border: 1px solid var(--v3-line, rgba(18, 32, 40, 0.09));
  border-radius: var(--v3-r-md, 20px);
  text-decoration: none;
  transition: box-shadow 0.18s ease, transform 0.18s ease;
}
.guide-card:hover {
  box-shadow: var(--v3-sh-glow, 0 24px 70px rgba(6, 184, 148, 0.18));
  transform: translateY(-2px);
}
.guide-card-eyebrow {
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--v3-teal-dark, #047a63);
}
.guide-card h3 {
  margin: 0;
  font-size: 1.05rem;
  letter-spacing: -0.01em;
  color: var(--v3-ink, #101417);
}
.guide-card p {
  margin: 0;
  font-size: 0.84rem;
  line-height: 1.65;
  color: var(--v3-muted, #667179);
  flex: 1;
}
.guide-card-read {
  font-size: 0.78rem;
  font-weight: 800;
  color: var(--v3-teal-dark, #047a63);
}
.guide-back {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-bottom: 0.5rem;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--v3-muted, #667179);
  text-decoration: none;
}
.guide-back:hover {
  color: var(--v3-teal-dark, #047a63);
}

/* ---- Store search ---- */
.store-search {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0;
}
.store-search input {
  width: 230px;
  min-height: 40px;
  padding: 0 0.85rem;
  border: 1px solid var(--line, #dfe7e4);
  border-radius: 999px;
  background: var(--paper, #ffffff);
  color: var(--ink, #101417);
  font-size: 0.85rem;
  font-weight: 600;
  font-family: inherit;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.store-search input::placeholder {
  color: var(--muted, #667179);
  opacity: 0.8;
}
.store-search input:focus {
  outline: none;
  border-color: var(--teal, #08c99b);
  box-shadow: 0 0 0 3px rgba(8, 201, 155, 0.12);
}
.store-search .search-clear {
  display: none;
  border: none;
  background: transparent;
  color: var(--muted, #667179);
  font-weight: 900;
  cursor: pointer;
  padding: 0.3rem;
}
.store-search.has-query .search-clear {
  display: inline-block;
}
@media (max-width: 720px) {
  .store-toolbar {
    flex-wrap: wrap;
  }
  .store-search input {
    width: 100%;
  }
}

/* =====================================================================
   HOME REDESIGN — clean, product-led homepage (vendplay-home-1)
   Adds a machine lineup + how-it-works, slims the warranty section,
   and calms the busiest motion effects on the home page only.
   ===================================================================== */

/* Shared section heading (machines / how-it-works) */
.home-section-head {
  margin-bottom: 1.4rem;
}

.home-section-head .mini-code {
  display: inline-block;
  margin-bottom: 0.6rem;
  padding: 0.32rem 0.7rem;
  border-radius: 999px;
  background: rgba(6, 184, 148, 0.1);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--v3-teal-dark, #047a63);
}

.home-section-head h2 {
  margin: 0 0 0.6rem;
  font-family: var(--font-cinematic);
  font-weight: 400;
  font-size: clamp(1.9rem, 3.8vw, 3rem);
  line-height: 0.98;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  color: var(--v3-ink, #101417);
}

.home-section-head p {
  margin: 0;
  max-width: 560px;
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--v3-muted, #667179);
}

/* Machine lineup */
.home-machines {
  width: min(1240px, calc(100% - 2rem));
  margin: 2.6rem auto 0;
}

.home-machine-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.machine-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid rgba(18, 26, 31, 0.08);
  border-radius: var(--vp-radius-lg, 26px);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(250, 253, 252, 0.9)), #fff;
  box-shadow: var(--vp-shadow-soft, 0 18px 42px rgba(16, 23, 27, 0.075));
  text-decoration: none;
  transition: transform 0.32s ease, box-shadow 0.32s ease, border-color 0.32s ease;
}

.machine-card:hover {
  transform: translateY(-6px);
  border-color: rgba(6, 184, 148, 0.35);
  box-shadow: var(--vp-shadow, 0 28px 80px rgba(16, 23, 27, 0.12));
}

.machine-stage {
  display: block;
  height: 250px;
  padding: 1.1rem;
  background:
    radial-gradient(120% 90% at 50% 0%, rgba(8, 201, 155, 0.16), transparent 62%),
    linear-gradient(180deg, #18221f, #0c1211);
}

.machine-stage img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 24px 32px rgba(0, 0, 0, 0.55));
  transition: transform 0.45s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.machine-card:hover .machine-stage img {
  transform: scale(1.05);
}

.home-machines-cta {
  margin-top: 1.3rem;
  display: flex;
  justify-content: center;
}

.home-machines-cta a {
  display: inline-flex;
  align-items: center;
  font-size: 0.9rem;
  font-weight: 800;
  color: var(--v3-teal-dark, #047a63);
  text-decoration: none;
}

.home-machines-cta a:hover {
  text-decoration: underline;
}

.machine-body {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  padding: 1rem 1.1rem 1.1rem;
  border-top: 1px solid rgba(18, 26, 31, 0.06);
}

.machine-name {
  font-size: 1rem;
  font-weight: 850;
  color: var(--v3-ink, #101417);
}

.machine-tag {
  font-size: 0.8rem;
  color: var(--v3-muted, #667179);
}

.machine-link {
  margin-top: 0.5rem;
  font-size: 0.8rem;
  font-weight: 800;
  color: var(--v3-teal-dark, #047a63);
}

.machine-link::after {
  content: "\2192";
  margin-left: 0.35rem;
  transition: margin-left 0.2s ease;
}

.machine-card:hover .machine-link::after {
  margin-left: 0.6rem;
}

/* How it works */
.home-steps {
  width: min(1240px, calc(100% - 2rem));
  margin: 2.6rem auto 0;
}

.home-step-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.home-step {
  padding: 1.5rem;
  border: 1px solid rgba(18, 26, 31, 0.08);
  border-radius: var(--vp-radius-lg, 26px);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(250, 253, 252, 0.9)), #fff;
  box-shadow: var(--vp-shadow-soft, 0 18px 42px rgba(16, 23, 27, 0.075));
}

.home-step-num {
  display: block;
  margin-bottom: 0.9rem;
  font-family: var(--font-cinematic);
  font-size: 2rem;
  line-height: 1;
  color: rgba(6, 184, 148, 0.9);
}

.home-step h3 {
  margin: 0 0 0.4rem;
  font-size: 1.05rem;
  font-weight: 850;
  color: var(--v3-ink, #101417);
}

.home-step p {
  margin: 0;
  font-size: 0.88rem;
  line-height: 1.6;
  color: var(--v3-muted, #667179);
}

/* Software focus panel: 1 copy card + 2 screenshot cards */
body[data-page="home"] .home-focus-panel {
  grid-template-columns: minmax(0, 1.1fr) repeat(2, minmax(0, 0.95fr));
}

/* Compact warranty chips */
.home-warranty-chips {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.85rem;
}

.home-warranty-chip {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  padding: 1.1rem 1.2rem;
  border: 1px solid rgba(18, 26, 31, 0.08);
  border-radius: var(--vp-radius-lg, 26px);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(250, 253, 252, 0.9)), #fff;
  box-shadow: var(--vp-shadow-soft, 0 18px 42px rgba(16, 23, 27, 0.075));
}

.home-warranty-chip strong {
  font-size: 1.5rem;
  font-weight: 900;
  color: var(--v3-ink, #101417);
}

.home-warranty-chip span {
  font-size: 0.85rem;
  line-height: 1.45;
  color: var(--v3-muted, #667179);
}

.home-warranty-note {
  margin: 0.9rem 0 0;
  font-size: 0.85rem;
  line-height: 1.6;
  color: var(--v3-muted, #667179);
}

.home-warranty-note a {
  font-weight: 700;
  color: var(--v3-teal-dark, #047a63);
  text-decoration: none;
}

.home-warranty-note a:hover {
  text-decoration: underline;
}

/* Calm the busiest effects on the home page — keep the design confident, not flashy */
body[data-page="home"] .eyebrow.gradient-text {
  background: none;
  -webkit-background-clip: initial;
  background-clip: initial;
  color: var(--v3-teal-dark, #047a63);
  animation: none;
}

body[data-page="home"] .homepage-hero-copy .eyebrow {
  background: none;
  -webkit-background-clip: initial;
  background-clip: initial;
  color: rgba(255, 255, 255, 0.82);
  animation: none;
}

body[data-page="home"] .button.primary {
  animation: none;
}

body[data-page="home"] .home-focus-card.primary::before {
  animation: none;
  opacity: 0.35;
}

body[data-page="home"] .home-assurance-strip article {
  min-height: 104px;
}

@media (prefers-reduced-motion: no-preference) {
  body[data-page="home"] .vp-reveal.from-left  { transform: translateX(-24px); }
  body[data-page="home"] .vp-reveal.from-right { transform: translateX(24px); }
  body[data-page="home"] .vp-reveal.from-up    { transform: translateY(20px); }
  body[data-page="home"] .vp-reveal.from-scale { transform: scale(0.97); }
}

/* Responsive */
@media (max-width: 1120px) {
  body[data-page="home"] .home-focus-panel {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  body[data-page="home"] .home-focus-card.primary {
    grid-column: 1 / -1;
  }
}

@media (max-width: 980px) {
  .home-machine-grid,
  .home-step-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 820px) {
  body[data-page="home"] .home-focus-panel {
    grid-template-columns: 1fr;
  }
  body[data-page="home"] .home-focus-card.primary {
    grid-column: auto;
  }
}

@media (max-width: 560px) {
  .home-machine-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.7rem;
  }
  .machine-stage {
    height: 150px;
    padding: 0.6rem;
  }
  .machine-body {
    padding: 0.7rem 0.8rem 0.85rem;
  }
  .machine-name {
    font-size: 0.86rem;
    line-height: 1.2;
  }
  .machine-tag {
    font-size: 0.7rem;
  }
  .machine-link {
    margin-top: 0.35rem;
    font-size: 0.74rem;
  }
  .machine-link::after {
    margin-left: 0.2rem;
  }
  .home-step-grid,
  .home-warranty-chips {
    grid-template-columns: 1fr;
  }
  .home-machines,
  .home-steps {
    margin-top: 2rem;
  }
}

/* FAQ items use h3 headings inside <summary> for SEO structure */
.faq-item summary h3 {
  margin: 0;
  font: inherit;
  font-size: inherit;
  line-height: inherit;
  color: inherit;
}

/* ============================================================
   Global polish — selection, scrollbars, link focus
   ============================================================ */
::selection {
  background: rgba(8, 201, 155, 0.24);
  color: var(--ink);
}

/* Refined scrollbar matching the VendPlay palette */
* {
  scrollbar-width: thin;
  scrollbar-color: rgba(8, 201, 155, 0.6) rgba(223, 231, 228, 0.4);
}
*::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}
*::-webkit-scrollbar-track {
  background: rgba(223, 231, 228, 0.45);
}
*::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, rgba(8, 201, 155, 0.8), rgba(4, 149, 116, 0.72));
  border-radius: 999px;
  border: 2px solid transparent;
  background-clip: content-box;
}
*::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, var(--teal), var(--teal-dark));
  border-radius: 999px;
  border: 2px solid transparent;
  background-clip: content-box;
}

/* Underline body links on hover for a cleaner affordance */
a:hover {
  text-decoration: none;
}


/* ============================================================
   MODERN MAKEOVER — GT Seats-inspired animations & components
   Appended to styles.css for VendPlay
   ============================================================ */

/* --- Keyframe Animations --- */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes cardIn {
  from { opacity: 0; transform: translateY(28px) scale(0.96); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes cardFloat {
  0%, 100% { translate: 0 0; }
  50% { translate: 0 -8px; }
}

@keyframes softPulse {
  0%, 100% { box-shadow: 0 24px 80px rgba(16, 20, 23, 0.13); }
  50% { box-shadow: 0 32px 96px rgba(16, 20, 23, 0.2); }
}

@keyframes heroVideoDrift {
  from { transform: scale(1.02); }
  to { transform: scale(1.08) translate3d(-1.5%, 1%, 0); }
}

@keyframes statGlow {
  0%, 100% { border-color: rgba(16, 20, 23, 0.1); background: rgba(255, 255, 255, 0.7); }
  50% { border-color: rgba(8, 201, 155, 0.4); background: rgba(255, 255, 255, 0.95); }
}

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

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

@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

@keyframes slideInRight {
  from { opacity: 0; transform: translateX(30px); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes modalIn {
  from { opacity: 0; transform: scale(0.95) translateY(10px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

@keyframes pulseRing {
  0% { transform: scale(0.8); opacity: 1; }
  100% { transform: scale(2.2); opacity: 0; }
}

@keyframes gradientShift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

@keyframes loaderSlide {
  0% { transform: translateX(-100%); }
  50% { transform: translateX(250%); }
  100% { transform: translateX(-100%); }
}

/* --- Loading Screen --- */
.vp-loader {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: var(--graphite);
  transition: opacity 0.5s ease, visibility 0.5s ease;
}

.vp-loader.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.vp-loader-logo {
  width: clamp(120px, 20vw, 180px);
  height: auto;
  margin-bottom: 24px;
  animation: fadeUp 0.6s ease both;
}

.vp-loader-track {
  width: 120px;
  height: 3px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 999px;
  overflow: hidden;
  animation: fadeUp 0.6s 0.15s ease both;
}

.vp-loader-bar {
  width: 40%;
  height: 100%;
  background: var(--teal);
  border-radius: 999px;
  animation: loaderSlide 1.2s ease-in-out infinite;
}

/* --- Scroll Reveal System --- */
.vp-reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1),
              transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
  transition-delay: var(--vp-delay, 0ms);
}

.vp-reveal.in-view {
  opacity: 1;
  transform: translateY(0);
}

.vp-reveal-left {
  opacity: 0;
  transform: translateX(-30px);
  transition: opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1),
              transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
  transition-delay: var(--vp-delay, 0ms);
}

.vp-reveal-left.in-view {
  opacity: 1;
  transform: translateX(0);
}

.vp-reveal-right {
  opacity: 0;
  transform: translateX(30px);
  transition: opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1),
              transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
  transition-delay: var(--vp-delay, 0ms);
}

.vp-reveal-right.in-view {
  opacity: 1;
  transform: translateX(0);
}

.vp-reveal-scale {
  opacity: 0;
  transform: scale(0.95);
  transition: opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1),
              transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
  transition-delay: var(--vp-delay, 0ms);
}

.vp-reveal-scale.in-view {
  opacity: 1;
  transform: scale(1);
}

/* --- Enhanced Card System --- */
.machine-card,
.route-card,
.product-card,
.testimonial-card,
.faq-item,
.home-warranty-chip {
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1),
              box-shadow 0.3s cubic-bezier(0.4, 0, 0.2, 1),
              border-color 0.3s ease;
}

.machine-card:hover,
.route-card:hover,
.product-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 50px rgba(16, 20, 23, 0.12);
}

/* --- Glassmorphism Classes --- */
.vp-glass {
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  border: 1px solid rgba(255, 255, 255, 0.35);
}

.vp-glass-dark {
  background: rgba(18, 24, 29, 0.82);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #fff;
}

/* --- Enhanced Hero Video --- */
.homepage-hero-video {
  animation: heroVideoDrift 20s ease-in-out infinite alternate;
}

/* --- Stat Glow Effect --- */
.home-step,
.home-warranty-chip {
  animation: statGlow 5s ease-in-out infinite;
}

.home-step:nth-child(2) { animation-delay: 0.5s; }
.home-step:nth-child(3) { animation-delay: 1s; }

/* --- Enhanced Button Hover --- */
.button.primary {
  position: relative;
  overflow: hidden;
  transition: transform 0.24s ease, box-shadow 0.24s ease, background 0.24s ease;
}

.button.primary::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.15) 0%, transparent 50%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.button.primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 20px 50px rgba(16, 20, 23, 0.22);
}

.button.primary:hover::after {
  opacity: 1;
}

/* --- Enhanced Nav Hover --- */
.site-nav a {
  position: relative;
}

.site-nav a::after {
  content: '';
  position: absolute;
  bottom: 2px;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--teal);
  border-radius: 2px;
  transition: width 0.25s ease, left 0.25s ease;
}

.site-nav a:hover::after,
.site-nav a.active::after {
  width: 60%;
  left: 20%;
}

/* --- Enhanced Machine Card Image --- */
.machine-stage img {
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.machine-card:hover .machine-stage img {
  transform: scale(1.05);
}

/* --- Testimonial Card Enhancement --- */
.testimonial-card {
  position: relative;
  overflow: hidden;
}

.testimonial-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: linear-gradient(180deg, transparent, var(--teal), transparent);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.testimonial-card:hover::before {
  opacity: 1;
}

/* --- Enhanced FAQ Items --- */
.faq-item[open] {
  box-shadow: 0 4px 20px rgba(8, 201, 155, 0.08);
  border-color: rgba(8, 201, 155, 0.3);
}

.faq-item summary {
  transition: color 0.2s ease;
  cursor: pointer;
  list-style: none;
}

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

.faq-item summary::before {
  content: '+';
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  margin-right: 12px;
  border-radius: 6px;
  background: var(--mint);
  color: var(--teal-dark);
  font-size: 1rem;
  font-weight: 700;
  flex-shrink: 0;
  transition: transform 0.3s ease, background 0.3s ease;
}

.faq-item[open] summary::before {
  content: '-';
  transform: rotate(180deg);
  background: var(--teal);
  color: #fff;
}

/* --- Enhanced Warranty Chips --- */
.home-warranty-chip {
  position: relative;
  overflow: hidden;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem;
  text-align: center;
}

.home-warranty-chip::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--teal), var(--teal-dark));
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.home-warranty-chip:hover::after {
  transform: scaleX(1);
}

/* --- Enhanced Section Headings --- */
.home-section-head h2 {
  position: relative;
  display: inline-block;
}

.home-section-head h2::after {
  content: '';
  display: block;
  width: 48px;
  height: 3px;
  background: linear-gradient(90deg, var(--teal), transparent);
  border-radius: 2px;
  margin-top: 12px;
}

/* --- Contact Card Enhancement --- */
.contact-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.contact-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(16, 20, 23, 0.1);
}

/* --- Header Sticky Enhancement --- */
.site-header {
  transition: background 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.site-header.is-stuck {
  box-shadow: 0 18px 44px rgba(16, 20, 23, 0.12);
}

/* --- Announcement Bar Enhancement --- */
.announcement-bar {
  position: relative;
  overflow: hidden;
}

.announcement-bar::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 60%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.15), transparent);
  animation: shimmer 4s ease-in-out infinite;
}

/* --- Cart Button Enhancement --- */
.cart-button {
  position: relative;
}

.cart-button[data-cart-count]::after {
  content: attr(data-cart-count);
  position: absolute;
  top: -4px;
  right: -4px;
  min-width: 18px;
  height: 18px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: var(--teal);
  color: #fff;
  font-size: 0.6rem;
  font-weight: 800;
  padding: 0 4px;
}

/* --- Affiliate Tier Cards --- */
.home-aff-tier {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.home-aff-tier:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(16, 20, 23, 0.1);
}

/* --- Marquee Enhancement --- */
.vp-marquee {
  position: relative;
  overflow: hidden;
}

.vp-marquee::before,
.vp-marquee::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  width: 80px;
  z-index: 2;
  pointer-events: none;
}

.vp-marquee::before {
  left: 0;
  background: linear-gradient(90deg, var(--bg), transparent);
}

.vp-marquee::after {
  right: 0;
  background: linear-gradient(270deg, var(--bg), transparent);
}

/* --- Focus States for Accessibility --- */
.button:focus-visible,
.site-nav a:focus-visible,
.machine-card:focus-visible,
.faq-item summary:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 2px;
}

/* --- Reduced Motion --- */
@media (prefers-reduced-motion: reduce) {
  .vp-reveal,
  .vp-reveal-left,
  .vp-reveal-right,
  .vp-reveal-scale {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .homepage-hero-video,
  .home-step,
  .home-warranty-chip,
  .vp-marquee-track {
    animation: none;
  }

  .machine-card:hover,
  .route-card:hover,
  .product-card:hover,
  .button.primary:hover {
    transform: none;
  }
}

/* --- Responsive Enhancements --- */
@media (max-width: 820px) {
  .vp-reveal,
  .vp-reveal-left,
  .vp-reveal-right,
  .vp-reveal-scale {
    --vp-delay: 0ms !important;
  }
}

