:root {
  --bg: #f5f5f4;
  --surface: #ffffff;
  --surface-2: #fafaf9;
  --surface-3: #e7e5e4;
  --ink: #0c0a09;
  --text: #1c1917;
  --muted: #57534d;
  --muted-2: #79716b;
  --line: #e7e5e4;
  --brand: #4d1d57;
  --brand-hover: #632471;
  --brand-active: #3a1945;
  --brand-bright: #7a2b8b;
  --success: #00a63e;
  --success-bright: #05df72;
  --accent-blue: #1447e6;
  --warning: #e17100;
  --danger: #991b1b;
  --ok: #00a63e;
  --gradient: linear-gradient(180deg, #e12afb 0%, #f04883 50.53%, #ff6900 100%);
  --shadow: 0 18px 42px rgba(28, 25, 23, 0.1);
  --shadow-soft: 0 10px 24px rgba(28, 25, 23, 0.07);
  --teal: var(--brand);
  --teal-dark: var(--brand-active);
  --coral: #f04883;
  --green: var(--success);
  --gold: var(--warning);
  --plum: var(--brand);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

html,
body {
  max-width: 100%;
  overflow-x: hidden;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 16% 0%, rgba(5, 223, 114, 0.12), transparent 28%),
    radial-gradient(circle at 100% 10%, rgba(225, 42, 251, 0.1), transparent 26%),
    linear-gradient(90deg, rgba(77, 29, 87, 0.045) 0 1px, transparent 1px 112px),
    linear-gradient(0deg, rgba(77, 29, 87, 0.045) 0 1px, transparent 1px 112px),
    var(--bg);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0;
}

a {
  color: inherit;
}

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

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px 32px;
  border-bottom: 1px solid rgba(231, 229, 228, 0.9);
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(18px);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.7);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.brand-logo {
  width: 36px;
  height: 36px;
  display: block;
  filter: drop-shadow(0 7px 12px rgba(77, 29, 87, 0.18));
}

.brand strong,
.brand small {
  display: block;
  line-height: 1.05;
}

.brand small {
  color: var(--muted-2);
  font-size: 12px;
  margin-top: 3px;
}

.topnav {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.topnav a {
  padding: 9px 12px;
  border-radius: 8px;
  color: var(--muted);
  text-decoration: none;
  font-size: 14px;
  font-weight: 700;
}

.topnav a:hover {
  background: rgba(77, 29, 87, 0.08);
  color: var(--brand);
}

.topnav a.nav-cta {
  min-height: 36px;
  padding: 0 14px;
  color: #fff;
  font-weight: 800;
}

.topnav a.nav-cta:hover {
  background: var(--brand-hover, var(--brand-bright));
  color: #fff;
}

.topnav a.nav-cta .button-icon {
  background: rgba(255, 255, 255, 0.2);
}

.top-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  min-width: 0;
}

.top-wallet-state {
  max-width: 260px;
  overflow: hidden;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.top-wallet-state.connected {
  color: var(--ok);
}

.top-wallet-button {
  min-height: 38px;
  box-shadow: none;
  white-space: nowrap;
}

main {
  width: min(1440px, calc(100% - 40px));
  margin: 0 auto;
  padding: 28px 0 64px;
}

.overview {
  display: block;
}

.overview-copy {
  position: relative;
  display: grid;
  min-height: clamp(460px, 62vh, 680px);
  align-items: center;
  padding: clamp(32px, 5vw, 64px);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.98) 0%, rgba(255, 255, 255, 0.93) 33%, rgba(255, 255, 255, 0.5) 58%, rgba(255, 255, 255, 0.08) 100%),
    url("/assets/hero/adprompt-x402-hero.png") center / cover no-repeat;
  box-shadow: var(--shadow);
  text-align: left;
}

.overview-copy::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 28%;
  background: linear-gradient(180deg, transparent, rgba(245, 245, 244, 0.86));
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 660px;
}

.hero-logo {
  display: block;
  width: 54px;
  height: 54px;
  margin: 0 0 20px;
  filter: drop-shadow(0 10px 18px rgba(77, 29, 87, 0.2));
}

.eyebrow,
.section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--brand);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.status-dot {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: var(--success-bright);
  box-shadow: 0 0 0 4px rgba(5, 223, 114, 0.18);
}

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

h1 {
  max-width: 820px;
  margin: 16px 0 16px;
  font-size: clamp(42px, 5.5vw, 74px);
  line-height: 1;
  letter-spacing: 0;
}

.overview-copy p {
  max-width: 620px;
  margin-left: 0;
  margin-right: 0;
  color: var(--muted);
  font-size: clamp(17px, 2vw, 21px);
  line-height: 1.55;
}

.actions,
.button-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 28px;
}

.overview-copy .actions {
  justify-content: flex-start;
}

.hero-actions {
  align-items: center;
  gap: 10px 12px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  padding: 0 15px;
  border: 1px solid transparent;
  border-radius: 8px;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
  box-shadow: var(--shadow-soft);
  transition: transform 0.16s ease, background 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease;
}

.button:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 28px rgba(28, 25, 23, 0.12);
}

.button:disabled {
  cursor: not-allowed;
  opacity: 0.6;
  transform: none;
}

.button.primary.is-blocked:disabled {
  border-color: rgba(77, 29, 87, 0.2);
  background: rgba(77, 29, 87, 0.1);
  color: rgba(77, 29, 87, 0.72);
  opacity: 1;
  box-shadow: none;
}

.button.primary.is-blocked:disabled .button-icon {
  background: rgba(77, 29, 87, 0.14);
  color: rgba(77, 29, 87, 0.8);
}

.button-icon {
  display: inline-grid;
  width: 22px;
  height: 22px;
  place-items: center;
  border-radius: 6px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 12px;
  font-weight: 900;
}

.primary {
  background: var(--brand);
  color: #fff;
}

.primary:hover {
  background: var(--brand-hover);
}

.primary .button-icon {
  background: rgba(255, 255, 255, 0.2);
}

.secondary {
  background: var(--ink);
  color: #fff;
}

.secondary .button-icon {
  background: rgba(255, 255, 255, 0.16);
}

.ghost {
  border-color: var(--line);
  background: var(--surface);
  color: var(--ink);
}

.ghost:hover {
  border-color: rgba(77, 29, 87, 0.24);
  color: var(--brand);
}

.ghost .button-icon {
  background: var(--surface-2);
}

.text-link {
  min-height: 38px;
  padding-inline: 8px;
  border-color: transparent;
  background: transparent;
  color: var(--brand);
  box-shadow: none;
}

.text-link:hover {
  background: rgba(77, 29, 87, 0.08);
  box-shadow: none;
}

.request-panel,
.response-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.response-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

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

.product-card span,
.bundle-card span {
  display: block;
  color: var(--muted-2);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.section-block {
  padding: 34px 0;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 18px;
}

.section-heading.compact {
  align-items: center;
}

h2 {
  margin: 6px 0 0;
  font-size: clamp(28px, 4vw, 46px);
  line-height: 1;
}

.segmented {
  display: inline-flex;
  gap: 4px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.package-heading {
  align-items: center;
}

.package-tools {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
}

.package-rule {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  padding: 0 11px;
  border-radius: 8px;
  background: rgba(77, 29, 87, 0.08);
  color: var(--brand);
  font-size: 13px;
  font-weight: 900;
}

.compact-segments .segment {
  min-height: 30px;
  padding: 0 10px;
}

.segment {
  min-height: 34px;
  padding: 0 12px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-size: 13px;
  font-weight: 800;
}

.segment.active {
  background: var(--brand);
  color: #fff;
}

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

.product-card,
.bundle-card {
  display: flex;
  flex-direction: column;
  min-height: 314px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow-soft);
  transition: transform 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease;
}

.product-card {
  position: relative;
  overflow: hidden;
}

.product-card:hover,
.bundle-card:hover {
  transform: translateY(-2px);
  border-color: rgba(77, 29, 87, 0.22);
  box-shadow: var(--shadow);
}

.product-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 5px;
  width: auto;
  background: var(--accent, var(--teal));
}

.product-card h3,
.bundle-card h3 {
  margin: 12px 0 10px;
  font-size: 21px;
  line-height: 1.1;
}

.product-card p,
.bundle-card p {
  color: var(--muted);
  line-height: 1.45;
}

.bundle-fit {
  margin-top: 10px;
  font-size: 13px;
  font-weight: 800;
  color: var(--brand) !important;
}

.product-footer,
.bundle-footer {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  margin-top: auto;
}

.card-actions {
  display: grid;
  grid-template-columns: minmax(78px, 0.75fr) minmax(124px, 1fr);
  align-items: center;
  gap: 8px;
}

.price-pill,
.mode-pill {
  display: inline-flex;
  width: fit-content;
  max-width: 100%;
  min-height: 30px;
  align-items: center;
  padding: 0 10px;
  border-radius: 8px;
  background: var(--surface-3);
  color: var(--text);
  font-size: 13px;
  font-weight: 900;
  white-space: nowrap;
}

.mode-pill {
  background: rgba(0, 166, 62, 0.1);
  color: #166534;
}

.mini-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 34px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-2);
  color: var(--ink);
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
}

.mini-button:hover {
  border-color: rgba(77, 29, 87, 0.28);
  color: var(--brand);
}

.primary-mini {
  border-color: var(--brand);
  background: var(--brand);
  color: #fff;
}

.primary-mini:hover {
  background: var(--brand-hover);
  color: #fff;
}

.mini-button:disabled {
  cursor: not-allowed;
  opacity: 0.62;
  color: var(--muted);
}

.icon-button {
  display: inline-grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--muted);
  cursor: pointer;
  font-weight: 900;
}

.icon-button:hover {
  color: var(--brand);
  border-color: rgba(77, 29, 87, 0.28);
}

.item-visual {
  position: relative;
  display: grid;
  min-height: 136px;
  margin-bottom: 14px;
  place-items: center;
  overflow: hidden;
  border: 1px solid rgba(77, 29, 87, 0.1);
  border-radius: 8px;
  background:
    radial-gradient(circle at 18% 18%, rgba(5, 223, 114, 0.15), transparent 24%),
    linear-gradient(135deg, rgba(77, 29, 87, 0.09), rgba(250, 250, 249, 0.92));
}

.item-visual::after,
.demo-visual::after {
  content: "";
  position: absolute;
  inset: auto 14px 12px auto;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  background: var(--gradient);
  opacity: 0.2;
}

.item-visual:has(.asset-visual-image),
.demo-visual:has(.asset-visual-image) {
  background: #18111c;
}

.item-visual:has(.asset-visual-image)::after,
.demo-visual:has(.asset-visual-image)::after {
  display: none;
}

.asset-visual-image {
  display: block;
  width: 100%;
  height: 100%;
  min-height: inherit;
  object-fit: cover;
}

.demo-visual .asset-visual-image {
  min-height: 430px;
}

/* Animated demo walkthroughs are portrait; show them whole on their own dark stage. */
.demo-visual .demo-animation {
  object-fit: contain;
  background: #150f1e;
}

.demo-visual:has(.demo-animation) {
  background: #150f1e;
}

.mock-window,
.mock-quadrant,
.mock-social,
.mock-plan,
.mock-image,
.mock-logos,
.mock-video,
.mock-enhance,
.mock-resize,
.mock-content,
.mock-palette,
.mock-creative {
  position: relative;
  z-index: 1;
  width: min(84%, 360px);
  min-height: 82px;
  border: 1px solid rgba(77, 29, 87, 0.14);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 10px 24px rgba(28, 25, 23, 0.08);
}

.demo-visual .mock-window,
.demo-visual .mock-quadrant,
.demo-visual .mock-social,
.demo-visual .mock-plan,
.demo-visual .mock-image,
.demo-visual .mock-logos,
.demo-visual .mock-video,
.demo-visual .mock-enhance,
.demo-visual .mock-resize,
.demo-visual .mock-content,
.demo-visual .mock-palette,
.demo-visual .mock-creative {
  width: min(86%, 520px);
  min-height: 260px;
}

.mock-top {
  display: flex;
  gap: 5px;
  padding: 9px;
  border-bottom: 1px solid var(--line);
}

.mock-top span {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: var(--surface-3);
}

.brand-score {
  display: grid;
  justify-items: center;
  padding-top: 12px;
}

.brand-score b {
  color: var(--brand);
  font-size: 30px;
  line-height: 1;
}

.brand-score em {
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
  font-weight: 800;
}

.mock-bars {
  display: grid;
  gap: 6px;
  padding: 12px 18px;
}

.mock-bars i,
.mock-content p,
.mock-social p,
.plan-lines span {
  display: block;
  height: 7px;
  border-radius: 999px;
  background: rgba(77, 29, 87, 0.16);
}

.mock-bars i {
  width: var(--w);
}

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

.mock-quadrant span {
  border-radius: 8px;
  background: rgba(77, 29, 87, 0.08);
}

.mock-quadrant b {
  position: absolute;
  right: 14px;
  bottom: 14px;
  color: var(--brand);
  font-size: 13px;
}

.mock-quadrant i {
  position: absolute;
  width: 12px;
  height: 12px;
  left: 58%;
  top: 32%;
  border-radius: 999px;
  background: var(--success);
}

.mock-social,
.mock-content {
  display: grid;
  align-content: center;
  gap: 9px;
  padding: 14px;
}

.mock-social div {
  display: flex;
  gap: 8px;
  align-items: center;
}

.mock-social b {
  width: 26px;
  height: 26px;
  border-radius: 999px;
  background: var(--brand);
}

.mock-social span {
  width: 46%;
  height: 8px;
  border-radius: 999px;
  background: var(--surface-3);
}

.mock-social em {
  width: 58%;
  height: 22px;
  border-radius: 8px;
  background: rgba(5, 223, 114, 0.2);
}

.mock-plan {
  display: grid;
  grid-template-columns: 86px 1fr;
  align-items: center;
  gap: 14px;
  padding: 14px;
}

.plan-ring {
  display: grid;
  width: 64px;
  height: 64px;
  place-items: center;
  border: 10px solid rgba(77, 29, 87, 0.16);
  border-top-color: var(--success);
  border-radius: 999px;
}

.plan-ring b {
  color: var(--brand);
}

.plan-lines {
  display: grid;
  gap: 9px;
}

.mock-image {
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(122, 43, 139, 0.14), rgba(5, 223, 114, 0.16)),
    #fff;
}

.mock-image .sun {
  position: absolute;
  right: 24px;
  top: 18px;
  width: 24px;
  height: 24px;
  border-radius: 999px;
  background: var(--warning);
}

.mock-image .mountain {
  position: absolute;
  bottom: 0;
  width: 70%;
  height: 54%;
  clip-path: polygon(0 100%, 45% 15%, 100% 100%);
  background: var(--brand);
}

.mock-image .mountain.two {
  right: -12px;
  width: 58%;
  background: var(--brand-bright);
  opacity: 0.72;
}

.mock-image span {
  position: absolute;
  left: 14px;
  top: 14px;
  color: var(--brand);
  font-size: 12px;
  font-weight: 900;
}

.mock-logos {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  padding: 12px;
}

.mock-logos span {
  display: grid;
  min-height: 58px;
  place-items: center;
  border-radius: 8px;
  background: var(--brand);
  color: #fff;
  font-weight: 900;
}

.mock-video {
  display: grid;
  place-items: center;
  overflow: hidden;
  background: #18111c;
}

.play {
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  border-radius: 999px;
  background: var(--success-bright);
  color: var(--brand-active);
  font-weight: 900;
}

.frames {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 10px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
}

.frames span {
  height: 18px;
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.18);
}

.mock-enhance {
  display: grid;
  grid-template-columns: 1fr 1fr;
  overflow: hidden;
}

.mock-enhance .before,
.mock-enhance .after {
  min-height: 100%;
}

.mock-enhance .before {
  background: repeating-linear-gradient(135deg, #d6d3d1 0 8px, #f5f5f4 8px 16px);
}

.mock-enhance .after {
  background: linear-gradient(135deg, rgba(77, 29, 87, 0.88), rgba(5, 223, 114, 0.42));
}

.mock-enhance span {
  position: absolute;
  inset: 0 auto 0 50%;
  width: 2px;
  background: #fff;
}

.mock-resize {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  align-items: center;
  gap: 10px;
  padding: 14px;
}

.mock-resize span {
  display: block;
  margin: auto;
  border: 2px solid var(--brand);
  border-radius: 8px;
  background: rgba(77, 29, 87, 0.08);
}

.mock-resize .sq {
  width: 54px;
  height: 54px;
}

.mock-resize .wide {
  width: 72px;
  height: 42px;
}

.mock-resize .tall {
  width: 38px;
  height: 68px;
}

.mock-content b {
  color: var(--brand);
  font-size: 13px;
}

.mock-content p:nth-child(1) {
  width: 88%;
}

.mock-content p:nth-child(2) {
  width: 68%;
}

.mock-content p:nth-child(3) {
  width: 78%;
}

.mock-palette {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  overflow: hidden;
}

.mock-palette span:nth-child(1) {
  background: var(--brand);
}

.mock-palette span:nth-child(2) {
  background: var(--brand-bright);
}

.mock-palette span:nth-child(3) {
  background: var(--success-bright);
}

.mock-palette span:nth-child(4) {
  background: var(--warning);
}

.mock-creative {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  padding: 12px;
}

.mock-creative .tile {
  border-radius: 8px;
}

.mock-creative .a {
  background: var(--brand);
}

.mock-creative .b {
  background: var(--success);
}

.mock-creative .c {
  background: var(--warning);
}

.mock-creative strong {
  position: absolute;
  right: 14px;
  bottom: 12px;
  color: var(--brand);
}

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

.bundle-card {
  min-height: 300px;
}

.bundle-card.centered-bundle-card {
  grid-column: 2;
}

.bundle-products {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 5px;
  margin-top: 6px;
}

.bundle-products em {
  display: inline-flex;
  min-height: 23px;
  align-items: center;
  padding: 0 7px;
  border-radius: 7px;
  background: var(--surface-3);
  color: var(--muted);
  font-style: normal;
  font-size: 11px;
  font-weight: 800;
}

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

.request-panel,
.response-panel {
  padding: 18px;
  background:
    linear-gradient(180deg, #ffffff, #fafaf9);
}

.request-panel label {
  display: grid;
  gap: 8px;
  margin-bottom: 14px;
  color: var(--ink);
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
}

.request-panel select,
.request-panel textarea,
.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  color: var(--ink);
  outline: none;
  transition: border-color 0.16s ease, box-shadow 0.16s ease;
}

.request-panel select:focus,
.request-panel textarea:focus,
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: rgba(77, 29, 87, 0.46);
  box-shadow: 0 0 0 4px rgba(77, 29, 87, 0.08);
}

.request-panel select,
.form-group input,
.form-group select {
  min-height: 44px;
  padding: 0 12px;
}

.request-panel textarea,
.form-group textarea {
  min-height: 272px;
  padding: 12px;
  resize: vertical;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 13px;
  line-height: 1.45;
}

.wallet-note {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 12px;
  padding: 6px 11px;
  border-radius: 999px;
  background: rgba(28, 25, 23, 0.05);
  color: var(--muted);
  font-size: 12.5px;
  font-weight: 700;
}

.wallet-note::before {
  content: "";
  flex: 0 0 auto;
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: currentColor;
  opacity: 0.55;
}

.wallet-note.connected {
  background: rgba(77, 29, 87, 0.08);
  color: var(--brand);
}

.wallet-note.connected::before {
  opacity: 1;
}

.wallet-note.warning {
  background: rgba(225, 113, 0, 0.1);
  color: #9a3412;
}

.response-panel {
  min-width: 0;
}

.response-panel pre,
.result-container pre {
  min-height: 374px;
  max-height: 620px;
  overflow: auto;
  margin: 14px 0 0;
  padding: 16px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background:
    linear-gradient(180deg, rgba(5, 223, 114, 0.04), transparent 32%),
    #18111c;
  color: #f5f5f4;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 13px;
  line-height: 1.55;
  white-space: pre-wrap;
}

.hidden {
  display: none !important;
}

/* Backward-compatible styles for older endpoint pages. */
header:not(.topbar) {
  max-width: 980px;
  margin: 0 auto 22px;
  padding: 40px 20px 12px;
  text-align: center;
}

header:not(.topbar) h1 {
  margin: 0 0 12px;
  font-size: 42px;
}

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

.card {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.cta-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 42px;
  padding: 0 15px;
  border-radius: 8px;
  background: var(--brand);
  color: #fff;
  font-weight: 800;
  text-decoration: none;
}

.secondary-button {
  background: var(--ink);
}

.form-group {
  margin-bottom: 16px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 800;
}

.price {
  color: var(--brand);
  font-weight: 900;
}

.payment-processing {
  padding: 36px 20px;
  text-align: center;
}

.loader {
  width: 42px;
  height: 42px;
  margin: 0 auto 18px;
  border: 4px solid var(--surface-2);
  border-top-color: var(--brand);
  border-radius: 999px;
  animation: spin 1s linear infinite;
}

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

.error-message,
.success-message {
  margin-top: 18px;
  padding: 14px;
  border-radius: 8px;
}

.error-message {
  border-left: 4px solid var(--danger);
  background: #fff0ec;
  color: var(--danger);
}

.success-message {
  border-left: 4px solid var(--ok);
  background: #ecf8f0;
  color: var(--ok);
}

.wallet-status {
  margin-bottom: 18px;
  padding: 14px;
  border-radius: 8px;
  background: var(--surface-2);
}

.wallet-status.connected {
  color: var(--ok);
}

.wallet-status.disconnected {
  color: var(--danger);
}

.wallet-address {
  overflow-wrap: anywhere;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

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

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(12, 10, 9, 0.46);
  backdrop-filter: blur(8px);
}

.modal-card {
  position: relative;
  width: min(1060px, 100%);
  max-height: min(860px, calc(100vh - 40px));
  overflow: auto;
  border: 1px solid rgba(77, 29, 87, 0.16);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 0 26px 80px rgba(12, 10, 9, 0.28);
}

.modal-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  padding: 24px;
  border-bottom: 1px solid var(--line);
  background:
    linear-gradient(90deg, rgba(77, 29, 87, 0.08), transparent 42%),
    var(--surface-2);
}

.modal-head h2 {
  font-size: clamp(26px, 3.4vw, 34px);
  line-height: 1.1;
}

.modal-head p {
  max-width: 720px;
  margin: 8px 0 0;
  color: var(--muted);
  line-height: 1.45;
}

.modal-head .close-button {
  border-radius: 999px;
  font-size: 20px;
  line-height: 1;
}

.purchase-layout {
  display: grid;
  grid-template-columns: minmax(320px, 1fr) minmax(0, 1fr);
  align-items: start;
  gap: 14px;
  padding: 18px;
}

.purchase-panel {
  min-width: 0;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(180deg, #ffffff, #fafaf9);
}

.purchase-request-panel {
  display: flex;
  flex-direction: column;
  min-height: 100%;
}

.purchase-footer {
  position: sticky;
  bottom: -20px;
  margin-top: auto;
  padding: 10px 0 20px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0), #fbfbfa 18%);
}

.purchase-footer .button-row {
  margin-top: 12px;
}

#purchase-submit {
  width: 100%;
}

.purchase-step + .purchase-step {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.purchase-step.is-collapsed {
  display: none;
}

.step-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.step-head span {
  display: inline-grid;
  width: 26px;
  height: 26px;
  place-items: center;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(77, 29, 87, 0.16), rgba(77, 29, 87, 0.08));
  color: var(--brand);
  font-size: 13px;
  font-weight: 900;
}

.step-head strong {
  color: var(--text);
  font-size: 15px;
}

.purchase-plan {
  margin-top: 18px;
  padding: 16px;
  border: 1px solid rgba(77, 29, 87, 0.14);
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(77, 29, 87, 0.05), rgba(250, 250, 249, 0.6));
}

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

.purchase-plan-head strong {
  color: var(--text);
  font-size: 14px;
}

.purchase-plan-badge {
  padding: 3px 9px;
  border-radius: 999px;
  background: rgba(77, 29, 87, 0.1);
  color: var(--brand);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.purchase-plan-steps {
  display: grid;
  gap: 7px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: purchase-plan;
}

.purchase-plan-steps li {
  display: flex;
  align-items: baseline;
  gap: 9px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.4;
  counter-increment: purchase-plan;
}

.purchase-plan-steps li::before {
  content: counter(purchase-plan);
  flex: 0 0 auto;
  min-width: 18px;
  padding: 1px 0;
  border-radius: 999px;
  background: rgba(77, 29, 87, 0.1);
  color: var(--brand);
  font-size: 11px;
  font-weight: 900;
  text-align: center;
}

.blocked-note {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin: 10px 0 0;
  color: #9a3412;
  font-size: 12.5px;
  font-weight: 700;
  line-height: 1.4;
}

.blocked-note::before {
  content: "!";
  display: inline-grid;
  flex: 0 0 auto;
  width: 16px;
  height: 16px;
  place-items: center;
  border-radius: 999px;
  background: rgba(154, 52, 18, 0.12);
  font-size: 11px;
  font-weight: 900;
}

.context-note,
.quote-box p {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.context-note.warning,
.quote-box p.warning {
  color: #9a3412;
}

.context-note.success,
.quote-box p.success {
  color: var(--brand);
}

.profile-picker {
  margin-top: 14px;
}

.existing-business-panel {
  margin-top: 14px;
  padding: 14px;
  border: 1px solid #e1d9e5;
  border-left: 3px solid var(--brand);
  border-radius: 8px;
  background: linear-gradient(180deg, #fbf8fc 0%, #f5f0f7 100%);
  display: grid;
  gap: 12px;
}

.existing-business-badge {
  display: inline-block;
  margin-bottom: 8px;
  padding: 3px 9px;
  border-radius: 999px;
  background: rgba(77, 29, 87, 0.1);
  color: var(--brand);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.existing-business-actions .mini-button {
  width: auto;
  flex: 1 1 150px;
  min-height: 38px;
}

.existing-business-copy strong {
  display: block;
  color: #4d1d57;
  font-size: 15px;
}

.existing-business-copy p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.existing-business-meta {
  color: #4d1d57 !important;
  font-weight: 700;
}

.existing-business-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.profile-picker label,
.field-grid label {
  display: grid;
  align-content: start;
  gap: 6px;
  color: var(--text);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0;
}

.profile-picker label > small,
.field-grid label > small {
  color: var(--muted-2);
  font-size: 12px;
  font-weight: 700;
}

.field-hint {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.4;
}

.field-hint.error {
  color: #9a3412;
}

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

.full-field,
.checkbox-field {
  grid-column: 1 / -1;
}

.business-context-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin: 12px 0;
}

.context-choice {
  min-height: 42px;
  padding: 9px 11px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--muted);
  font-weight: 900;
  cursor: pointer;
}

.context-choice:hover,
.context-choice.is-active {
  border-color: rgba(77, 29, 87, 0.45);
  background: var(--brand-soft);
  color: var(--brand);
}

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

.context-choice.recommended {
  border-color: rgba(77, 29, 87, 0.45);
  color: var(--brand);
}

.choice-tag {
  display: inline-block;
  margin-left: 6px;
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--brand);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  vertical-align: middle;
}

.purchase-platform-field {
  min-width: 0;
  margin: 0;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.purchase-platform-field legend {
  padding: 0 5px;
  color: var(--text);
  font-size: 12px;
  font-weight: 900;
}

.platform-choice-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.field-grid .platform-choice-grid label {
  display: flex;
  align-items: center;
  gap: 7px;
  min-height: 34px;
  padding: 7px 9px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #fff;
  cursor: pointer;
}

.field-grid .platform-choice-grid input {
  width: 16px;
  min-height: 16px;
  height: 16px;
  margin: 0;
}

.social-profile-fields {
  min-width: 0;
  margin: 0;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.social-profile-fields legend {
  padding: 0 5px;
  color: var(--text);
  font-size: 12px;
  font-weight: 900;
}

.social-profile-fields legend small,
.social-profile-fields > p {
  color: var(--muted-2);
  font-weight: 700;
}

.social-profile-fields > p {
  margin: 0 0 10px;
  font-size: 12px;
}

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

.social-field-name {
  display: flex;
  align-items: center;
  gap: 6px;
}

.social-field-name img {
  width: 18px;
  height: 18px;
  border-radius: 4px;
  object-fit: contain;
}

.checkbox-field {
  display: flex !important;
  align-items: center;
  gap: 9px !important;
  color: var(--muted) !important;
  text-transform: none !important;
}

.checkbox-field input {
  width: 16px !important;
  height: 16px;
}

/* The flex overrides above outrank the shared .hidden rule, so restore it here. */
.checkbox-field.hidden,
.manual-entry-toggle-row.hidden {
  display: none !important;
}

.manual-entry-toggle-row {
  display: flex !important;
  align-items: center;
  justify-content: space-between;
  gap: 12px !important;
  padding: 8px 10px;
  border: 0;
  border-radius: 8px;
  background: rgba(77, 29, 87, 0.045);
  color: var(--text) !important;
  text-transform: none !important;
}

.manual-entry-toggle-row span {
  display: grid;
  gap: 1px;
}

.manual-entry-toggle-row strong {
  font-size: 13px;
}

.manual-entry-toggle-row small {
  color: var(--muted-2);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.3;
}

.manual-entry-toggle-row input {
  position: relative;
  width: 38px !important;
  min-width: 38px;
  height: 22px !important;
  min-height: 22px !important;
  appearance: none;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #e7e5e4;
  cursor: pointer;
}

.manual-entry-toggle-row input::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 14px;
  height: 14px;
  border-radius: 999px;
  background: #ffffff;
  box-shadow: 0 1px 3px rgba(28, 25, 23, 0.24);
  transition: transform 0.16s ease;
}

.manual-entry-toggle-row input:checked {
  border-color: var(--brand);
  background: var(--brand);
}

.manual-entry-toggle-row input:checked::after {
  transform: translateX(16px);
}

.category-search-field {
  position: relative;
}

.category-selected {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.35;
  text-transform: none;
}

.category-suggestions {
  position: absolute;
  z-index: 15;
  top: calc(100% - 22px);
  left: 0;
  right: 0;
  max-height: 240px;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 18px 40px rgba(28, 25, 23, 0.16);
}

.category-suggestion {
  display: grid;
  gap: 3px;
  width: 100%;
  padding: 10px 12px;
  border: 0;
  border-bottom: 1px solid rgba(28, 25, 23, 0.08);
  background: transparent;
  color: var(--ink);
  text-align: left;
  cursor: pointer;
}

.category-suggestion:hover,
.category-suggestion:focus {
  background: rgba(77, 29, 87, 0.06);
  outline: none;
}

.category-suggestion strong {
  font-size: 13px;
  line-height: 1.25;
}

.category-suggestion span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.3;
}

.profile-picker select,
.field-grid input,
.field-grid select,
.field-grid textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  color: var(--ink);
  outline: none;
}

.profile-picker select,
.field-grid input,
.field-grid select {
  min-height: 42px;
  padding: 0 11px;
}

.profile-picker select,
.field-grid select {
  appearance: none;
  padding-right: 34px;
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='none' stroke='%234d1d57' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' d='M1 1.5 6 6.5 11 1.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  cursor: pointer;
}

.field-grid input.is-invalid,
.field-grid textarea.is-invalid {
  border-color: rgba(154, 52, 18, 0.5);
  box-shadow: 0 0 0 3px rgba(154, 52, 18, 0.08);
}

.field-grid textarea {
  min-height: 92px;
  padding: 11px;
  resize: vertical;
}

.profile-picker select:focus,
.field-grid input:focus,
.field-grid select:focus,
.field-grid textarea:focus {
  border-color: rgba(77, 29, 87, 0.46);
  box-shadow: 0 0 0 4px rgba(77, 29, 87, 0.08);
}

.quote-box {
  display: grid;
  gap: 6px;
  margin-top: 18px;
  padding: 14px 16px;
  border: 1px solid rgba(77, 29, 87, 0.14);
  border-radius: 8px;
  background: rgba(77, 29, 87, 0.05);
}

.quote-metrics {
  display: grid;
  grid-template-columns: minmax(110px, 0.75fr) minmax(190px, 1.25fr);
  gap: 14px;
  align-items: stretch;
}

.quote-metrics > div {
  padding: 2px 0;
}

.quote-metrics .preparation-time {
  padding-left: 14px;
  border-left: 1px solid rgba(77, 29, 87, 0.14);
}

.quote-metrics .preparation-time strong {
  color: var(--ink);
  font-size: 17px;
  line-height: 1.25;
}

.purchase-success {
  display: grid;
  gap: 10px;
}

.purchase-success strong {
  color: var(--ink);
  font-size: 20px;
}

.purchase-success > span {
  color: var(--muted);
  font-weight: 800;
}

.quote-box span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.quote-box strong {
  display: block;
  margin-top: 4px;
  color: var(--brand);
  font-size: 26px;
  line-height: 1;
}

.results-body {
  background:
    radial-gradient(circle at 8% 0%, rgba(5, 223, 114, 0.11), transparent 26%),
    radial-gradient(circle at 92% 8%, rgba(225, 42, 251, 0.1), transparent 26%),
    var(--bg);
}

.results-shell {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 34px 0 70px;
}

.results-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px;
  align-items: end;
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.96), rgba(255, 255, 255, 0.82)),
    url("/assets/hero/adprompt-x402-hero.png");
  background-size: cover;
  box-shadow: var(--shadow-soft);
}

.results-hero h1 {
  max-width: 760px;
  margin: 8px 0 12px;
  color: var(--ink);
  font-size: clamp(40px, 7vw, 86px);
  line-height: 0.95;
}

.results-hero p {
  max-width: 760px;
  margin: 0;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.55;
}

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

.results-empty,
.results-section,
.results-summary {
  margin-top: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow-soft);
}

.results-empty {
  padding: 26px;
}

.results-empty h2,
.results-section h2 {
  margin: 0;
  font-size: 28px;
}

.results-empty p {
  max-width: 640px;
  color: var(--muted);
}

.results-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
}

.results-summary div,
.summary-tile {
  padding: 18px;
  background: #fff;
}

.summary-tile {
  position: relative;
  border: 0;
  border-top: 3px solid transparent;
  text-align: left;
  cursor: pointer;
  transition: background 120ms ease, border-color 120ms ease;
  font: inherit;
}

.summary-tile:hover {
  background: #fbf8fc;
}

.summary-tile.is-active {
  border-top-color: var(--brand);
  background: #fbf8fc;
}

.summary-tile:focus-visible {
  outline: 3px solid rgba(77, 29, 87, 0.35);
  outline-offset: -3px;
}

.results-summary span,
.summary-tile span,
.wallet-result-card .result-card-head span,
.profile-card-head span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.results-summary strong,
.summary-tile strong {
  display: block;
  margin-top: 6px;
  color: var(--brand);
  font-size: 34px;
  line-height: 1;
}

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

.results-alert {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 16px 0 0;
  padding: 14px 16px;
  border: 1px solid #f3c6c6;
  border-left: 4px solid #b3261e;
  border-radius: 8px;
  background: #fdf3f3;
  color: #7f1d1d;
  font-weight: 700;
  line-height: 1.5;
}

.results-steps {
  max-width: 640px;
  margin: 14px 0 20px;
  padding-left: 20px;
  color: var(--muted);
  line-height: 1.7;
}

.section-hint {
  max-width: 620px;
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}

.count-chip {
  align-self: flex-start;
  padding: 7px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fbf8fc;
  color: var(--brand);
  font-size: 12px;
  font-weight: 900;
  white-space: nowrap;
}

.wallet-chip {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 16px;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.9);
}

.wallet-chip-label {
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.wallet-chip-address,
.receipt-copy {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 8px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--ink);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}

.wallet-chip-address:hover,
.receipt-copy:hover {
  background: #f3ecf5;
}

.receipt-copy {
  max-width: 100%;
  font-size: 12px;
}

.copy-hint {
  color: var(--brand);
  font-family: inherit;
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
  opacity: 0;
  transition: opacity 120ms ease;
}

.wallet-chip-address:hover .copy-hint,
.wallet-chip-address:focus-visible .copy-hint,
.receipt-copy:hover .copy-hint,
.receipt-copy:focus-visible .copy-hint {
  opacity: 1;
}

.history-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.search-field input {
  min-width: 240px;
  min-height: 42px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  font-weight: 700;
}

.search-field input:focus-visible {
  outline: 3px solid rgba(77, 29, 87, 0.28);
  outline-offset: 1px;
}

.auto-refresh-note {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 14px 0 0;
  padding: 10px 13px;
  border: 1px solid rgba(77, 29, 87, 0.16);
  border-radius: 8px;
  background: #fbf8fc;
  color: var(--brand);
  font-size: 13px;
  font-weight: 800;
}

.inline-spinner {
  display: inline-block;
  width: 12px;
  height: 12px;
  border: 2px solid rgba(77, 29, 87, 0.24);
  border-top-color: var(--brand);
  border-radius: 999px;
  animation: spin 0.9s linear infinite;
}

.status-pill .inline-spinner {
  margin-right: 6px;
  border-color: rgba(255, 255, 255, 0.45);
  border-top-color: currentColor;
  vertical-align: -1px;
}

.muted-text {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.skeleton-row {
  height: 62px;
  border-radius: 8px;
  background: linear-gradient(90deg, #f1ecf3 25%, #f8f5f9 37%, #f1ecf3 63%);
  background-size: 400% 100%;
  animation: skeleton-sheen 1.3s ease infinite;
}

.skeleton-row + .skeleton-row {
  margin-top: 10px;
}

@keyframes skeleton-sheen {
  from { background-position: 100% 50%; }
  to { background-position: 0 50%; }
}

.toast-stack {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 60;
  display: grid;
  gap: 8px;
  justify-items: end;
}

.toast {
  padding: 12px 16px;
  border-radius: 8px;
  background: #18131a;
  color: #fff;
  font-size: 14px;
  font-weight: 800;
  box-shadow: 0 12px 30px rgba(24, 19, 26, 0.28);
  animation: toast-in 160ms ease-out;
}

.toast.is-leaving {
  opacity: 0;
  transition: opacity 500ms ease;
}

@keyframes toast-in {
  from { transform: translateY(8px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

.results-section {
  padding: 18px;
}

.section-title-row,
.profile-card-head,
.result-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.profile-results-list,
.wallet-results-list {
  display: grid;
  gap: 14px;
  margin-top: 16px;
}

.profile-result-card,
.wallet-result-card {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
}

.profile-result-card h3,
.wallet-result-card h3 {
  margin: 4px 0 0;
  font-size: 22px;
}

/* .mini-button is full width by default for grid cells; results rows lay them out inline. */
.profile-card-head .mini-button,
.profile-toolbar-actions .mini-button,
.profile-edit-actions .mini-button,
.result-row-actions .mini-button {
  width: auto;
  flex: 0 0 auto;
}

.profile-toolbar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: end;
  margin-top: 16px;
}

.profile-toolbar label {
  display: grid;
  gap: 7px;
  color: var(--text);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.profile-toolbar select {
  width: 100%;
  min-height: 46px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  font-weight: 800;
}

.profile-toolbar-actions,
.profile-edit-actions,
.result-row-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.danger-mini {
  border-color: rgba(154, 52, 18, 0.22);
  background: rgba(255, 105, 0, 0.08);
  color: #9a3412;
}

.profile-summary-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr auto;
  gap: 10px;
  margin-top: 14px;
}

.profile-summary-grid div {
  min-width: 0;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-2);
}

.profile-summary-grid span {
  display: block;
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.profile-summary-grid strong {
  display: block;
  margin-top: 4px;
  overflow-wrap: anywhere;
}

.profile-edit-panel {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

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

.results-field-grid label {
  display: grid;
  gap: 7px;
  color: var(--text);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.results-field-grid input,
.results-field-grid select,
.results-field-grid textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  outline: none;
}

.results-field-grid input,
.results-field-grid select {
  min-height: 42px;
  padding: 0 11px;
}

.results-field-grid textarea {
  min-height: 78px;
  padding: 11px;
  resize: vertical;
}

.profile-save-state {
  min-height: 18px;
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.profile-save-state.success {
  color: #166534;
}

.profile-save-state.warning {
  color: #9a3412;
}

.status-pill {
  display: inline-flex;
  min-height: 28px;
  align-items: center;
  padding: 0 10px;
  border-radius: 8px;
  background: var(--surface-3);
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
  white-space: nowrap;
}

.status-pill.succeeded {
  background: rgba(5, 223, 114, 0.14);
  color: #166534;
}

.status-pill.pending {
  background: rgba(77, 29, 87, 0.1);
  color: var(--brand);
}

.status-pill.failed,
.status-pill.validation_failed {
  background: rgba(255, 105, 0, 0.14);
  color: #9a3412;
}

.result-meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 12px;
}

.result-meta-row span {
  display: inline-flex;
  min-height: 28px;
  align-items: center;
  padding: 0 9px;
  border-radius: 8px;
  background: var(--surface-2);
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  overflow-wrap: anywhere;
}

.wallet-result-card pre {
  max-height: 260px;
  margin: 14px 0 0;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  background: #18111c;
  color: #f5f5f4;
  font-size: 12px;
  line-height: 1.5;
  white-space: pre-wrap;
}

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

.results-table-head,
.results-row {
  display: grid;
  grid-template-columns: minmax(220px, 1.4fr) 150px minmax(210px, 1fr) minmax(150px, 0.8fr) minmax(170px, auto);
  gap: 12px;
  align-items: center;
}

.results-table-head {
  padding: 0 14px 4px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.results-row {
  padding: 14px;
  border: 1px solid var(--line);
  border-left: 3px solid var(--line);
  border-radius: 8px;
  background: #fff;
  transition: box-shadow 120ms ease, border-color 120ms ease;
}

.results-row:hover {
  border-color: rgba(77, 29, 87, 0.28);
  box-shadow: var(--shadow-soft);
}

.results-row.succeeded {
  border-left-color: #05df72;
}

.results-row.pending {
  border-left-color: var(--brand);
}

.results-row.failed {
  border-left-color: #ea580c;
}

.result-product-cell,
.result-time-cell {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.result-product-cell strong {
  font-size: 18px;
  line-height: 1.15;
}

.result-product-cell span,
.result-time-cell span,
.result-receipt-cell {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.result-receipt-cell {
  overflow-wrap: anywhere;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

.result-time-cell strong {
  color: var(--brand);
  font-size: 18px;
}

.result-actions {
  grid-template-columns: repeat(auto-fit, minmax(124px, 1fr));
  margin-top: 12px;
}

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

.quote-box p {
  max-width: none;
  margin: 0;
}

.purchase-result {
  max-height: 280px;
  overflow: auto;
  margin: 16px 0 0;
  padding: 14px;
  border-radius: 8px;
  background: #18111c;
  color: #f5f5f4;
  white-space: pre-wrap;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 13px;
  line-height: 1.5;
}

.purchase-result.success {
  max-height: none;
  border: 1px solid var(--line);
  background: #ffffff;
  color: var(--text);
  white-space: normal;
  font-family: inherit;
}

.demo-card {
  width: min(1180px, calc(100vw - 48px));
  max-height: min(820px, calc(100vh - 48px));
}

.demo-card .modal-head {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  padding: clamp(20px, 3vw, 34px);
  background:
    linear-gradient(90deg, rgba(77, 29, 87, 0.08), transparent 56%),
    linear-gradient(180deg, #ffffff, #fafaf9);
}

.demo-card .modal-head > div {
  min-width: 0;
}

.demo-card .section-kicker {
  display: inline-flex;
  margin-bottom: 10px;
}

.demo-card .modal-head h2 {
  max-width: 820px;
  margin: 0;
  font-size: clamp(34px, 3.8vw, 54px);
  line-height: 1.02;
}

.demo-card .modal-head p {
  max-width: 820px;
  margin-top: 12px;
  font-size: clamp(16px, 1.7vw, 19px);
  line-height: 1.45;
}

.demo-card .modal-head .icon-button {
  width: 44px;
  height: 44px;
  margin-left: 18px;
  border-radius: 8px;
  background: #fff;
}

.demo-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
  gap: 16px;
  padding: 16px;
}

.demo-visual {
  position: relative;
  display: grid;
  min-height: 430px;
  place-items: center;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    radial-gradient(circle at 20% 16%, rgba(5, 223, 114, 0.14), transparent 28%),
    radial-gradient(circle at 90% 10%, rgba(225, 42, 251, 0.12), transparent 25%),
    linear-gradient(135deg, #ffffff, #fafaf9);
}

.demo-panel {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(180deg, #ffffff, #fafaf9);
}

.demo-panel h3 {
  margin: 0 0 12px;
  font-size: 20px;
}

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

.demo-highlights li {
  position: relative;
  padding-left: 22px;
  color: var(--muted);
  line-height: 1.45;
}

.demo-highlights li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: var(--success);
}

.demo-output {
  padding: 14px;
  border: 1px solid rgba(77, 29, 87, 0.14);
  border-radius: 8px;
  background: rgba(77, 29, 87, 0.05);
}

.demo-output span {
  display: block;
  margin-bottom: 8px;
  color: var(--brand);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.demo-output pre {
  max-height: 260px;
  overflow: auto;
  margin: 0;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  word-break: break-word;
  color: var(--text);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 13px;
  line-height: 1.5;
}

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

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

  .bundle-card.centered-bundle-card {
    grid-column: auto;
  }
}

@media (max-width: 760px) {
  .topbar {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
    padding: 12px;
  }

  .brand {
    max-width: 100%;
  }

  .brand strong {
    font-size: 15px;
  }

  .brand small {
    display: none;
  }

  .topnav,
  .top-actions {
    width: 100%;
  }

  .topnav {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: max-content;
    gap: 4px;
    max-width: 100%;
    overflow-x: auto;
    padding-bottom: 2px;
    scrollbar-width: none;
  }

  .topnav::-webkit-scrollbar {
    display: none;
  }

  .topnav a {
    padding: 8px 9px;
    font-size: 13px;
  }

  .top-actions {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    justify-content: stretch;
  }

  .top-wallet-state {
    max-width: none;
    min-width: 0;
  }

  main {
    width: min(100% - 24px, 1440px);
    padding-top: 14px;
  }

  .overview-copy {
    min-height: 470px;
    padding: 18px;
    align-items: start;
    background:
      linear-gradient(180deg, rgba(255, 255, 255, 0.99) 0%, rgba(255, 255, 255, 0.95) 53%, rgba(255, 255, 255, 0.5) 100%),
      url("/assets/hero/adprompt-x402-hero.png") 54% bottom / auto 54% no-repeat;
  }

  .hero-logo {
    width: 44px;
    height: 44px;
    margin-bottom: 14px;
  }

  .overview-copy p {
    font-size: 16px;
  }

  h1 {
    font-size: clamp(34px, 12vw, 46px);
    line-height: 1.03;
  }

  .overview-copy .actions,
  .actions {
    align-items: stretch;
    flex-direction: column;
    width: 100%;
  }

  .overview-copy .button,
  .actions .button {
    width: 100%;
  }

  .hero-actions .text-link {
    min-height: 36px;
    justify-content: flex-start;
    padding-inline: 2px;
  }

  .product-grid,
  .bundle-grid {
    grid-template-columns: 1fr;
  }

  .bundle-card.centered-bundle-card {
    grid-column: auto;
  }

  .section-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .package-tools {
    justify-content: flex-start;
    width: 100%;
  }

  .segmented {
    width: 100%;
    overflow-x: auto;
    justify-content: flex-start;
    scrollbar-width: none;
  }

  .segmented::-webkit-scrollbar {
    display: none;
  }

  .button,
  .segment {
    white-space: nowrap;
  }

  .product-card,
  .bundle-card {
    min-height: auto;
    padding: 14px;
  }

  .product-card h3,
  .bundle-card h3 {
    font-size: 19px;
  }

  .item-visual {
    min-height: 128px;
  }

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

  .price-pill {
    white-space: normal;
  }

  .modal {
    align-items: end;
    padding: 0;
  }

  .modal-card {
    width: 100%;
    max-height: 94vh;
    border-right: 0;
    border-bottom: 0;
    border-left: 0;
    border-radius: 8px 8px 0 0;
  }

  .modal-head {
    padding: 18px;
  }

  .demo-card {
    width: 100%;
    max-height: 94vh;
  }

  .demo-card .modal-head {
    grid-template-columns: 1fr auto;
    gap: 12px;
    padding: 16px;
  }

  .demo-card .modal-head h2 {
    font-size: clamp(28px, 8vw, 38px);
    line-height: 1.05;
  }

  .demo-card .modal-head p {
    font-size: 15px;
  }

  .demo-card .modal-head .icon-button {
    width: 40px;
    height: 40px;
    margin-left: 0;
  }

  .purchase-layout {
    padding: 10px;
  }

  .demo-layout {
    padding: 10px;
  }

  .demo-visual {
    min-height: 220px;
  }

  .demo-visual .asset-visual-image {
    min-height: 220px;
  }

  .demo-panel {
    padding: 14px;
  }

  .demo-output pre {
    max-height: 220px;
    font-size: 12px;
  }

  .field-grid,
  .social-input-grid,
  .platform-choice-grid,
  .business-context-options,
  .results-field-grid,
  .quote-box {
    grid-template-columns: 1fr;
  }

  .quote-box {
    display: grid;
  }

  .quote-metrics {
    grid-template-columns: 1fr;
  }

  .quote-metrics .preparation-time {
    padding-top: 10px;
    padding-left: 0;
    border-top: 1px solid rgba(77, 29, 87, 0.14);
    border-left: 0;
  }

  .results-shell {
    width: min(100% - 20px, 1180px);
    padding-top: 18px;
  }

  .results-hero {
    grid-template-columns: 1fr;
    padding: 20px;
    background:
      linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(255, 255, 255, 0.9)),
      url("/assets/hero/adprompt-x402-hero.png") center bottom / auto 56% no-repeat;
  }

  .results-hero h1 {
    font-size: clamp(34px, 11vw, 48px);
  }

  .results-hero p {
    font-size: 15px;
  }

  .results-hero-actions,
  .section-title-row,
  .profile-card-head,
  .result-card-head {
    align-items: stretch;
    flex-direction: column;
  }

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

  .profile-toolbar,
  .profile-summary-grid,
  .results-row {
    grid-template-columns: 1fr;
  }

  .profile-toolbar-actions,
  .result-row-actions {
    width: 100%;
  }

  .profile-card-head .mini-button,
  .profile-toolbar-actions .mini-button,
  .profile-edit-actions .mini-button,
  .result-row-actions .mini-button {
    flex: 1 1 140px;
    width: auto;
  }

  .results-table-head {
    display: none;
  }

  .results-row {
    align-items: stretch;
    gap: 10px;
  }

  .result-status-cell,
  .result-receipt-cell,
  .result-time-cell,
  .result-row-actions {
    padding-top: 10px;
    border-top: 1px solid var(--line);
  }

  /* The header row is hidden on small screens, so each cell labels itself. */
  .result-status-cell[data-label]::before,
  .result-receipt-cell[data-label]::before,
  .result-time-cell[data-label]::before {
    display: block;
    margin-bottom: 4px;
    color: var(--muted);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 11px;
    font-weight: 900;
    text-transform: uppercase;
    content: attr(data-label);
  }

  .result-time-cell {
    grid-template-columns: 1fr;
  }

  .history-toolbar,
  .search-field,
  .search-field input {
    width: 100%;
  }

  .search-field input {
    min-width: 0;
  }

  .toast-stack {
    right: 12px;
    left: 12px;
    bottom: 12px;
    justify-items: stretch;
  }

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

@media (max-width: 420px) {
  main {
    width: min(100% - 16px, 1440px);
  }

  .top-wallet-button {
    min-width: 0;
    padding-inline: 10px;
  }

  .top-wallet-button .button-icon {
    display: none;
  }

  .overview-copy {
    min-height: 430px;
    background:
      linear-gradient(180deg, rgba(255, 255, 255, 0.99) 0%, rgba(255, 255, 255, 0.96) 58%, rgba(255, 255, 255, 0.62) 100%),
      url("/assets/hero/adprompt-x402-hero.png") 54% bottom / auto 48% no-repeat;
  }

  h1 {
    font-size: clamp(32px, 11vw, 40px);
  }

  .demo-card .modal-head {
    grid-template-columns: minmax(0, 1fr) 40px;
  }

  .summary-tile {
    padding: 14px;
  }

  .summary-tile strong {
    font-size: 26px;
  }
}

/* ---------------------------------------------------------------------------
   Purchase modal polish: softer surfaces, clearer hierarchy, and a premium
   checkout feel. Kept as an override layer so the base rules stay intact.
--------------------------------------------------------------------------- */

:root {
  --brand-soft: rgba(77, 29, 87, 0.07);
}

.modal-card {
  border-radius: 18px;
  border-color: rgba(77, 29, 87, 0.12);
  box-shadow:
    0 1px 2px rgba(12, 10, 9, 0.08),
    0 24px 60px rgba(38, 15, 44, 0.24),
    0 60px 140px rgba(12, 10, 9, 0.22);
}

.modal-backdrop {
  background: rgba(20, 10, 24, 0.5);
  backdrop-filter: blur(10px) saturate(1.1);
}

.modal-head {
  padding: 26px 28px 22px;
  background:
    radial-gradient(120% 180% at 0% 0%, rgba(77, 29, 87, 0.12), transparent 52%),
    radial-gradient(90% 160% at 100% 0%, rgba(240, 72, 131, 0.06), transparent 45%),
    var(--surface);
}

.modal-head .section-kicker {
  letter-spacing: 0.12em;
}

.purchase-layout {
  gap: 18px;
  padding: 22px;
  background: linear-gradient(180deg, var(--surface-2), var(--bg));
}

.purchase-panel {
  padding: 22px;
  border-radius: 14px;
  border-color: rgba(28, 25, 23, 0.08);
  background: var(--surface);
  box-shadow: 0 1px 2px rgba(28, 25, 23, 0.04), 0 12px 32px rgba(28, 25, 23, 0.05);
}

.purchase-step + .purchase-step {
  margin-top: 20px;
  padding-top: 20px;
}

.step-head span {
  width: 28px;
  height: 28px;
  background: linear-gradient(160deg, var(--brand), var(--brand-bright));
  color: #fff;
  box-shadow: 0 4px 10px rgba(77, 29, 87, 0.28);
}

.step-head strong {
  font-size: 16px;
  letter-spacing: -0.01em;
}

.business-context-options {
  gap: 10px;
}

.context-choice {
  min-height: 46px;
  border-radius: 12px;
  border-color: rgba(28, 25, 23, 0.12);
  transition: border-color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}

.context-choice:hover {
  border-color: rgba(77, 29, 87, 0.4);
  background: var(--brand-soft);
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(77, 29, 87, 0.12);
}

.context-choice.is-active {
  border-color: var(--brand);
  background: linear-gradient(180deg, rgba(77, 29, 87, 0.1), rgba(77, 29, 87, 0.05));
  box-shadow: inset 0 0 0 1px var(--brand);
}

.field-grid input,
.field-grid select,
.field-grid textarea,
.profile-picker select {
  border-radius: 10px;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.field-grid input:focus,
.field-grid select:focus,
.field-grid textarea:focus,
.profile-picker select:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(77, 29, 87, 0.14);
}

.purchase-plan {
  border-radius: 12px;
  border-color: rgba(77, 29, 87, 0.12);
}

.quote-box {
  border-radius: 12px;
  border: 1px solid rgba(77, 29, 87, 0.14);
  background:
    linear-gradient(180deg, rgba(77, 29, 87, 0.045), transparent 55%),
    var(--surface);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

#purchase-price {
  letter-spacing: -0.02em;
}

#purchase-submit,
.purchase-footer .button {
  border-radius: 12px;
  padding: 15px 18px;
  font-size: 15.5px;
  background: linear-gradient(165deg, var(--brand-bright), var(--brand) 55%, var(--brand-active));
  box-shadow: 0 10px 24px rgba(77, 29, 87, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.16);
  transition: transform 0.15s ease, box-shadow 0.15s ease, filter 0.15s ease;
}

#purchase-submit:hover:not(:disabled) {
  transform: translateY(-1px);
  filter: brightness(1.06);
  box-shadow: 0 14px 30px rgba(77, 29, 87, 0.36), inset 0 1px 0 rgba(255, 255, 255, 0.16);
}

#purchase-submit:disabled {
  background: linear-gradient(180deg, #d6d3d1, #c8c4c1);
  box-shadow: none;
  color: #7a7570;
}

.existing-business-panel,
.social-profile-fields,
.purchase-audit-socials-field {
  border-radius: 12px;
}

.mini-button {
  border-radius: 999px;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.mini-button:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(28, 25, 23, 0.12);
}

.wallet-note {
  border-radius: 999px;
}

@media (max-width: 760px) {
  .modal-card {
    border-radius: 14px;
  }

  .purchase-layout {
    padding: 14px;
  }
}

/* ---------------------------------------------------------------------------
   Results page polish: the same soft-surface language as the purchase modal —
   rounded cards, brand-tinted gradients, hover lifts. Override layer only.
--------------------------------------------------------------------------- */

.results-hero {
  border-radius: 18px;
  border-color: rgba(77, 29, 87, 0.12);
  background:
    radial-gradient(120% 200% at 0% 0%, rgba(77, 29, 87, 0.1), transparent 55%),
    radial-gradient(90% 170% at 100% 0%, rgba(240, 72, 131, 0.07), transparent 45%),
    linear-gradient(90deg, rgba(255, 255, 255, 0.97), rgba(255, 255, 255, 0.88)),
    url("/assets/hero/adprompt-x402-hero.png");
  background-size: cover;
  box-shadow: 0 1px 2px rgba(28, 25, 23, 0.05), 0 18px 44px rgba(38, 15, 44, 0.1);
}

.results-empty,
.results-section {
  border-radius: 16px;
  border-color: rgba(28, 25, 23, 0.09);
  box-shadow: 0 1px 2px rgba(28, 25, 23, 0.04), 0 14px 34px rgba(28, 25, 23, 0.05);
}

.results-section {
  padding: 22px;
}

.results-summary {
  padding: 10px;
  gap: 10px;
  border-radius: 16px;
  border-color: rgba(28, 25, 23, 0.09);
  background: linear-gradient(180deg, var(--surface-2), #fff);
  box-shadow: 0 1px 2px rgba(28, 25, 23, 0.04), 0 14px 34px rgba(28, 25, 23, 0.05);
}

.summary-tile {
  border: 1px solid rgba(28, 25, 23, 0.08);
  border-radius: 12px;
  background: #fff;
  transition: border-color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}

.summary-tile:hover {
  border-color: rgba(77, 29, 87, 0.35);
  background: var(--brand-soft);
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(77, 29, 87, 0.1);
}

.summary-tile.is-active {
  border-color: var(--brand);
  background: linear-gradient(180deg, rgba(77, 29, 87, 0.1), rgba(77, 29, 87, 0.04));
  box-shadow: inset 0 0 0 1px var(--brand);
}

.summary-tile:focus-visible {
  outline: 3px solid rgba(77, 29, 87, 0.3);
  outline-offset: 2px;
}

.profile-result-card,
.wallet-result-card {
  border-radius: 14px;
  border-color: rgba(28, 25, 23, 0.08);
  padding: 20px;
  box-shadow: 0 1px 2px rgba(28, 25, 23, 0.04), 0 10px 26px rgba(28, 25, 23, 0.04);
}

.results-table-head {
  padding: 0 16px 6px;
  letter-spacing: 0.06em;
}

.results-row {
  padding: 16px;
  border-radius: 12px;
  border-color: rgba(28, 25, 23, 0.09);
  transition: box-shadow 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}

.results-row:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(28, 25, 23, 0.09);
}

.status-pill {
  border-radius: 999px;
  padding: 0 12px;
  letter-spacing: 0.05em;
}

.count-chip {
  border-color: rgba(77, 29, 87, 0.18);
  background: var(--brand-soft);
}

.search-field input {
  border-radius: 10px;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.search-field input:focus-visible {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(77, 29, 87, 0.14);
}

.results-field-grid input,
.results-field-grid select,
.results-field-grid textarea {
  border-radius: 10px;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.results-field-grid input:focus,
.results-field-grid select:focus,
.results-field-grid textarea:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(77, 29, 87, 0.14);
}

.auto-refresh-note {
  border-radius: 999px;
  padding: 9px 16px;
  border-color: rgba(77, 29, 87, 0.18);
  background: linear-gradient(180deg, rgba(77, 29, 87, 0.07), rgba(77, 29, 87, 0.03));
}

.wallet-chip {
  border-color: rgba(77, 29, 87, 0.16);
  box-shadow: 0 1px 2px rgba(28, 25, 23, 0.05);
}

.skeleton-row {
  border-radius: 12px;
}

.toast {
  border-radius: 12px;
}

.profile-edit-panel {
  border-radius: 12px;
}

@media (max-width: 760px) {
  .results-hero,
  .results-empty,
  .results-section,
  .results-summary {
    border-radius: 14px;
  }

  .results-section {
    padding: 16px;
  }
}
