:root {
  color-scheme: dark;
  --bg: #050504;
  --bg-2: #0a0908;
  --panel: #10100e;
  --panel-2: #17140f;
  --line: rgba(255, 255, 255, 0.14);
  --line-strong: rgba(255, 255, 255, 0.28);
  --text: #f6f1e8;
  --muted: #a89d8f;
  --accent: #ff7a3d;
  --acid: #d8ff3e;
  --pink: #ff4fb8;
  --shadow: 0 34px 100px rgba(0, 0, 0, 0.68);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  color: var(--text);
  font-family: "DM Sans", system-ui, sans-serif;
  background:
    linear-gradient(rgba(255, 255, 255, 0.026) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.018) 1px, transparent 1px),
    radial-gradient(circle at 78% 6%, rgba(255, 122, 61, 0.2), transparent 28rem),
    radial-gradient(circle at 15% 52%, rgba(216, 255, 62, 0.08), transparent 30rem),
    var(--bg);
  background-size: 48px 48px, 48px 48px, auto, auto, auto;
}

button,
input,
textarea {
  font: inherit;
}

button,
a {
  touch-action: manipulation;
}

button {
  cursor: pointer;
}

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

main {
  overflow: clip;
}

nav,
footer {
  width: min(1180px, calc(100% - 32px));
  margin-inline: auto;
}

nav {
  position: fixed;
  inset: 12px auto auto 50%;
  z-index: 50;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 14px;
  padding: 10px 12px;
  background: rgba(5, 5, 4, 0.72);
  border: 1px solid var(--line);
  backdrop-filter: blur(14px);
  transform: translateX(-50%);
  pointer-events: auto;
}

.brand {
  color: var(--text);
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.22rem;
  font-weight: 800;
  transform: rotate(-3deg);
  pointer-events: auto;
}

.brand b {
  color: var(--accent);
  font-style: italic;
}

.brand-button {
  padding: 0;
  background: transparent;
  border: 0;
}

.nav-main,
.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-main {
  justify-content: center;
}

.nav-actions {
  justify-content: flex-end;
}

.nav-actions a,
.nav-actions button,
.nav-main button {
  min-height: 44px;
  display: grid;
  place-items: center;
  padding: 0 12px;
  color: var(--muted);
  background: rgba(5, 5, 4, 0.58);
  border: 1px solid transparent;
  font-size: 0.75rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  white-space: nowrap;
}

.nav-actions a:hover,
.nav-actions a:focus-visible,
.nav-actions button:hover,
.nav-actions button:focus-visible,
.nav-main button:hover,
.nav-main button:focus-visible {
  color: var(--text);
  border-color: var(--line-strong);
  outline: none;
}

.nav-actions .nav-strong,
.nav-actions .credit-pill {
  color: #080807;
  background: var(--acid);
  border-color: var(--acid);
}

.nav-actions .credit-pill {
  display: flex;
  align-items: center;
  gap: 6px;
  padding-inline: 10px;
  white-space: nowrap;
}

.nav-actions .credit-pill b {
  font-family: "Space Grotesk", sans-serif;
}

.nav-icon {
  width: 44px;
  padding: 0;
}

.nav-actions .nav-with-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
}

.hero {
  position: relative;
  min-height: 128vh;
  display: grid;
  grid-template-columns: minmax(24px, 1fr) minmax(320px, 760px) minmax(360px, 840px) minmax(24px, 1fr);
  gap: 28px;
  align-items: center;
  padding: 102px 0 170px;
}

.liquid {
  position: absolute;
  max-width: none;
  pointer-events: none;
  user-select: none;
  opacity: 0.58;
  mix-blend-mode: screen;
  filter: brightness(0) saturate(1) invert(18%) sepia(14%) saturate(854%) hue-rotate(342deg) brightness(83%) contrast(91%);
}

.liquid-hero {
  left: -16vw;
  bottom: -16vh;
  z-index: 1;
  width: 150vw;
  height: 92vh;
  object-fit: cover;
}

.hero-typo-wrap {
  position: relative;
  z-index: 4;
  grid-column: 2;
}

.hero-typo {
  display: block;
  width: min(760px, 100%);
  filter: drop-shadow(0 22px 32px rgba(0, 0, 0, 0.54));
}

.hero-typo-wrap p {
  max-width: 560px;
  margin: 22px 0 0;
  color: #d7cbbb;
  font-size: clamp(1.1rem, 1.5vw, 1.35rem);
  line-height: 1.65;
}

.hero-sheet {
  position: relative;
  z-index: 3;
  grid-column: 3;
  width: min(850px, 100%);
  justify-self: center;
  filter: drop-shadow(0 38px 70px rgba(0, 0, 0, 0.62));
}

.hero-sheet > img:first-child {
  display: block;
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.float-sticker {
  position: absolute;
  z-index: 5;
  object-fit: contain;
  pointer-events: none;
  filter: drop-shadow(0 26px 28px rgba(0, 0, 0, 0.52));
}

.float-cool {
  right: -7%;
  top: 10%;
  width: min(32vw, 330px);
}

.float-heart {
  left: -11%;
  bottom: -11%;
  width: min(26vw, 260px);
  transform: rotate(-8deg);
}

.sheet-label {
  position: absolute;
  left: 9%;
  bottom: 9%;
  z-index: 6;
  max-width: 70%;
  padding: 12px 14px;
  color: #080807;
  background: var(--acid);
  border: 2px solid #080807;
  font-weight: 950;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  transform: rotate(-3deg);
}

.hero-actions {
  position: relative;
  z-index: 5;
  grid-column: 2;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: -120px;
}

.primary,
.secondary {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 0 18px;
  color: var(--text);
  background: #0f0e0c;
  border: 1px solid var(--line-strong);
  border-radius: 0;
  font-weight: 950;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.primary {
  color: #080807;
  background: var(--accent);
  border-color: var(--accent);
  box-shadow: 7px 7px 0 rgba(216, 255, 62, 0.38);
}

.secondary:hover,
.primary:hover {
  transform: translateY(-2px);
}

.manifesto {
  position: relative;
  height: 230vh;
  overflow: clip;
  background:
    radial-gradient(circle at 20% 30%, rgba(255, 122, 61, 0.1), transparent 26rem),
    #070706;
}

.liquid-manifesto {
  left: 50%;
  top: 5vh;
  z-index: 1;
  width: 156vw;
  height: 160vh;
  object-fit: cover;
  opacity: 0.42;
  transform: translateX(-50%);
}

.manifesto-pin {
  position: sticky;
  top: 0;
  z-index: 2;
  min-height: 100vh;
  width: min(1180px, calc(100% - 32px));
  margin-inline: auto;
  display: grid;
  grid-template-columns: 1.1fr 0.7fr;
  gap: 34px;
  align-items: center;
  padding: 96px 0;
}

.manifesto-copy {
  position: relative;
  z-index: 3;
}

.typo {
  display: block;
  pointer-events: none;
  user-select: none;
}

.typo-personalized {
  width: min(670px, 100%);
  margin-bottom: 22px;
  filter: drop-shadow(0 18px 28px rgba(0, 0, 0, 0.55));
}

.manifesto h2,
.lab-heading h2,
.order h2 {
  margin: 0;
  color: var(--text);
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(3.6rem, 7vw, 7.6rem);
  line-height: 0.78;
  letter-spacing: 0;
  text-transform: uppercase;
}

.manifesto p,
.order p {
  max-width: 600px;
  color: var(--muted);
  font-size: 1.06rem;
  line-height: 1.65;
}

.manifesto-sticker {
  position: relative;
  z-index: 4;
  justify-self: center;
  width: min(330px, 80vw);
  padding: 18px 18px 56px;
  background: #090908;
  border: 1px solid var(--line);
  box-shadow: 16px 16px 0 rgba(255, 122, 61, 0.18), var(--shadow);
}

.manifesto-sticker img {
  display: block;
  width: 100%;
  max-height: 570px;
  object-fit: contain;
}

.manifesto-sticker span {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 15px;
  color: var(--acid);
  font-weight: 950;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.typo-sticky {
  position: absolute;
  right: 4vw;
  bottom: 8vh;
  z-index: 2;
  width: min(540px, 42vw);
  opacity: 0.82;
}

.lab {
  position: relative;
  width: min(1180px, calc(100% - 32px));
  margin-inline: auto;
  padding: 120px 0 90px;
}

.liquid-lab {
  left: 50%;
  top: -18vh;
  z-index: 0;
  width: 150vw;
  height: 135vh;
  object-fit: cover;
  opacity: 0.25;
  transform: translateX(-50%);
}

.section-kicker {
  position: relative;
  z-index: 2;
  margin-bottom: 14px;
  color: var(--acid);
  font-size: 0.78rem;
  font-weight: 950;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.lab-heading {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr minmax(220px, 380px);
  gap: 24px;
  align-items: end;
  margin-bottom: 30px;
}

.lab-heading img {
  width: 100%;
  justify-self: end;
  transform: rotate(-3deg);
}

.lab-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 0.85fr 0.92fr 1.08fr;
  gap: 16px;
  align-items: stretch;
}

.lab-card,
.price-card {
  padding: 18px;
  color: var(--text);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.065), rgba(255, 255, 255, 0.024)),
    #0d0c0b;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.setup {
  transform: rotate(-1deg);
}

.style {
  transform: translateY(34px) rotate(1deg);
}

.prompt {
  transform: translateY(-18px);
}

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

.panel-head h3 {
  margin: 0;
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.08rem;
  text-transform: uppercase;
}

.muted,
.panel-head svg {
  color: var(--muted);
}

label,
.field-label {
  display: block;
  margin-bottom: 10px;
  color: #eee7dc;
  font-weight: 950;
}

input,
textarea,
.upload-zone {
  width: 100%;
  margin-top: 8px;
  color: var(--text);
  background: rgba(0, 0, 0, 0.48);
  border: 1px solid var(--line);
  border-radius: 0;
  outline: none;
}

input,
textarea {
  padding: 13px 14px;
}

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

input:focus,
textarea:focus,
button:focus-visible,
a:focus-visible {
  outline: 3px solid rgba(216, 255, 62, 0.32);
  outline-offset: 2px;
}

.upload-zone {
  min-height: 58px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px;
  color: var(--muted);
  border-style: dashed;
}

.photo-guide {
  display: grid;
  place-items: center;
  margin: 10px 0 8px;
  padding: 8px;
  background: #050504;
  border: 1px solid var(--line);
  overflow: hidden;
}

.photo-guide img {
  display: block;
  width: 100%;
  height: clamp(360px, 38vw, 520px);
  object-fit: cover;
  object-position: center 24%;
}

.photo-guide-wide {
  margin: 0;
  padding: 12px;
}

.segmented,
.chips,
.style-list {
  display: grid;
  gap: 8px;
  margin-bottom: 18px;
}

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

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

.segmented button,
.chips button,
.plan-toggle button,
.style-card,
.price-card {
  min-height: 44px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid var(--line);
  border-radius: 0;
  font-weight: 900;
}

.segmented button,
.chips button,
.plan-toggle button {
  font-size: 0.76rem;
  text-transform: uppercase;
}

.segmented button.active,
.chips button.active,
.plan-toggle button.active {
  color: #080807;
  background: var(--acid);
  border-color: var(--acid);
}

.plan-toggle {
  display: flex;
  gap: 8px;
  margin-bottom: 18px;
}

.plan-toggle button {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.style-card {
  width: 100%;
  display: grid;
  gap: 5px;
  padding: 13px;
  text-align: left;
}

.style-card.active {
  border-color: var(--accent);
  box-shadow: inset 7px 0 0 var(--accent), 5px 5px 0 rgba(255, 122, 61, 0.2);
}

.style-card b {
  color: var(--text);
  text-transform: uppercase;
}

.style-card span {
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.45;
}

.chips button {
  text-transform: capitalize;
}

pre {
  max-height: 430px;
  overflow: auto;
  padding: 14px;
  color: #efffbd;
  background: #050504;
  border: 1px solid var(--line);
  font-size: 0.9rem;
  line-height: 1.55;
  white-space: pre-wrap;
}

.prompt-actions {
  display: flex;
  gap: 10px;
  margin-top: 14px;
}

.icon-button {
  position: relative;
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  color: var(--text);
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid var(--line);
  border-radius: 0;
}

.icon-button.active {
  color: #080807;
  background: var(--acid);
  border-color: var(--acid);
}

.tooltip {
  position: absolute;
  left: 50%;
  bottom: calc(100% + 8px);
  width: max-content;
  max-width: 180px;
  padding: 7px 9px;
  color: #080807;
  background: var(--acid);
  font-size: 0.78rem;
  font-weight: 950;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 6px);
  transition: 180ms ease;
}

.icon-button:hover .tooltip,
.icon-button:focus-visible .tooltip {
  opacity: 1;
  transform: translate(-50%, 0);
}

.order {
  position: relative;
  width: min(1180px, calc(100% - 32px));
  margin-inline: auto;
  padding: 100px 0 80px;
}

.order-typo {
  width: min(720px, 70vw);
  margin: 0 auto 40px;
}

.order-grid {
  display: grid;
  grid-template-columns: 1fr 0.46fr;
  gap: 34px;
  align-items: center;
}

.order-sticker {
  width: min(310px, 100%);
  justify-self: center;
  filter: drop-shadow(0 28px 30px rgba(0, 0, 0, 0.55));
}

.price-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 36px;
}

.price-card {
  text-align: left;
}

.price-card.active {
  border-color: var(--acid);
  box-shadow: inset 0 0 0 2px var(--acid), 10px 10px 0 rgba(216, 255, 62, 0.16);
}

.price-card svg {
  color: var(--accent);
  margin-bottom: 16px;
}

.price-card h3 {
  margin: 0 0 10px;
  font-family: "Space Grotesk", sans-serif;
  text-transform: uppercase;
}

.price-card strong {
  display: block;
  margin-bottom: 10px;
  font-family: "Space Grotesk", sans-serif;
  font-size: 2.3rem;
}

.price-card p {
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.55;
}

.final-mark {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 54px;
  padding: 18px;
  color: var(--accent);
  border: 1px solid var(--line);
  font-weight: 950;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

footer {
  padding: 28px 0 42px;
  color: var(--muted);
  border-top: 1px solid var(--line);
}

@media (max-width: 980px) {
  .hero,
  .manifesto-pin,
  .lab-heading,
  .lab-grid,
  .order-grid,
  .price-row,
  .account-grid,
  .asset-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
    padding: 88px 16px 80px;
  }

  .hero-typo-wrap,
  .hero-sheet,
  .hero-actions {
    grid-column: 1;
    width: min(720px, 100%);
    margin-inline: auto;
  }

  .hero-actions {
    margin-top: 0;
  }

  .float-cool {
    width: min(44vw, 260px);
  }

  .float-heart {
    width: min(34vw, 190px);
    left: -4%;
  }

  .manifesto {
    height: auto;
  }

  .manifesto-pin {
    position: relative;
    min-height: auto;
  }

  .typo-sticky {
    position: relative;
    right: auto;
    bottom: auto;
    width: min(520px, 90vw);
    margin-top: 20px;
  }

  .setup,
  .style,
  .prompt {
    transform: none;
  }
}

@media (max-width: 640px) {
  nav {
    width: calc(100% - 24px);
    grid-template-columns: auto minmax(0, 1fr);
    gap: 8px;
    padding: 8px;
  }

  .brand {
    font-size: 1rem;
  }

  .nav-main {
    display: none;
  }

  .nav-actions {
    gap: 2px;
    max-width: none;
    justify-content: flex-end;
    overflow-x: auto;
    scrollbar-width: none;
  }

  .nav-actions::-webkit-scrollbar {
    display: none;
  }

  .nav-actions a,
  .nav-actions button {
    min-height: 38px;
    padding: 0 7px;
    font-size: 0.65rem;
  }

  .nav-actions .credit-pill span,
  .nav-actions .nav-with-icon {
    font-size: 0;
  }

  .nav-actions .nav-with-icon {
    min-width: 38px;
    width: 38px;
    padding: 0;
    gap: 0;
  }

  .nav-icon {
    min-width: 38px;
    width: 38px;
  }

  .hero {
    padding-top: 90px;
  }

  .hero-typo-wrap p {
    font-size: 1rem;
  }

  .hero-actions,
  .plan-toggle,
  .prompt-actions {
    align-items: stretch;
  }

  .primary,
  .secondary,
  .plan-toggle button {
    width: 100%;
  }

  .sheet-label {
    left: 3%;
    bottom: 6%;
    max-width: 86%;
    font-size: 0.72rem;
  }

  .manifesto h2,
  .lab-heading h2,
  .order h2 {
    font-size: clamp(3rem, 14vw, 4.8rem);
  }

  .manifesto-pin,
  .lab,
  .order {
    padding-block: 74px;
  }

  .segmented,
  .chips {
    grid-template-columns: 1fr 1fr;
  }

  .lab-heading img,
  .order-typo {
    width: 100%;
  }

  .app-page {
    padding-top: 110px;
  }

  .account-grid,
  .asset-card {
    grid-template-columns: 1fr;
  }

  .asset-card > img {
    height: auto;
    aspect-ratio: 1 / 0.86;
    min-height: 0;
  }

  .photo-guide img {
    width: 100%;
    height: auto;
    object-fit: contain;
  }
}

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

/* Minimal order builder */
.order-builder {
  width: min(1220px, calc(100% - 32px));
}

.builder-shell {
  position: relative;
  z-index: 2;
  display: grid;
  gap: 18px;
}

.step-rail {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--line);
}

.step-dot {
  min-height: 58px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  color: var(--muted);
  background: rgba(11, 10, 9, 0.92);
  font-size: 0.76rem;
  font-weight: 950;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.step-dot b {
  color: var(--acid);
}

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

.builder-main {
  display: grid;
  gap: 14px;
}

.builder-step,
.summary-card {
  padding: 18px;
  background: rgba(12, 11, 10, 0.94);
  border: 1px solid var(--line);
  box-shadow: 0 20px 70px rgba(0, 0, 0, 0.35);
}

.builder-step {
  display: grid;
  gap: 16px;
}

.step-title {
  display: flex;
  align-items: center;
  gap: 10px;
}

.step-title span {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  color: #080807;
  background: var(--acid);
  font-size: 0.82rem;
  font-weight: 950;
}

.step-title h3 {
  margin: 0;
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.15rem;
  text-transform: uppercase;
}

.style-picker {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
}

.style-option {
  position: relative;
  overflow: hidden;
  min-height: 190px;
  padding: 0;
  color: var(--text);
  background: #050504;
  border: 1px solid var(--line);
}

.style-option img {
  display: block;
  width: 100%;
  height: 162px;
  object-fit: cover;
  object-position: center top;
  opacity: 0.78;
  transition: 220ms ease;
}

.style-option span {
  min-height: 44px;
  display: flex;
  align-items: center;
  padding: 10px;
  font-weight: 950;
  line-height: 1.1;
  text-align: left;
}

.style-option small {
  display: block;
  padding: 0 10px 12px;
  color: var(--muted);
  font-size: 0.72rem;
  line-height: 1.35;
  text-align: left;
}

.style-option.active {
  border-color: var(--accent);
  box-shadow: inset 0 0 0 2px var(--accent);
}

.style-option.active img {
  opacity: 1;
}

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

.pack-options {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.pack-options button {
  min-height: 82px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid var(--line);
}

.pack-options button.active {
  color: #080807;
  background: var(--acid);
  border-color: var(--acid);
}

.pack-options strong,
.pack-options small {
  display: block;
}

.pack-options strong {
  font-size: 1.4rem;
}

.pack-options small {
  margin-top: 4px;
  font-weight: 950;
}

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

.reaction-grid button {
  min-height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid var(--line);
  font-weight: 900;
}

.reaction-grid button span {
  font-size: 1.15rem;
}

.reaction-grid button.active {
  color: #080807;
  background: var(--acid);
  border-color: var(--acid);
}

.reaction-grid button:disabled,
.custom-expression button:disabled {
  cursor: not-allowed;
  opacity: 0.42;
}

.custom-expression {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
}

.custom-expression input {
  margin: 0;
}

.custom-expression button,
.checkout-button {
  min-height: 48px;
  padding: 0 18px;
  color: #080807;
  background: var(--accent);
  border: 1px solid var(--accent);
  font-weight: 950;
  text-transform: uppercase;
}

.add-ons {
  gap: 14px;
}

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

.addon-grid button {
  min-height: 88px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 10px;
  padding: 14px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid var(--line);
  text-align: left;
}

.addon-grid button.active {
  border-color: var(--acid);
  box-shadow: inset 0 0 0 2px var(--acid);
}

.addon-grid button svg {
  color: var(--accent);
}

.addon-grid button b {
  text-transform: uppercase;
}

.addon-grid button span {
  color: var(--acid);
  font-weight: 950;
}

.conditional-fields {
  display: grid;
  gap: 10px;
  padding: 14px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.035);
}

.conditional-fields h4 {
  margin: 0;
  color: var(--acid);
  text-transform: uppercase;
}

.conditional-fields p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.two-fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.summary-card {
  position: sticky;
  top: 92px;
  display: grid;
  gap: 14px;
}

.summary-card > img {
  width: 100%;
  aspect-ratio: 1 / 1.12;
  object-fit: cover;
  object-position: center top;
  border: 1px solid var(--line);
}

.summary-top {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
}

.summary-top span {
  color: var(--muted);
  font-weight: 950;
  text-transform: uppercase;
}

.summary-top strong {
  color: var(--acid);
  font-family: "Space Grotesk", sans-serif;
  font-size: 3rem;
  line-height: 0.9;
}

.summary-card dl {
  display: grid;
  gap: 8px;
  margin: 0;
}

.summary-card dl div {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line);
}

.summary-card dt,
.summary-card dd {
  margin: 0;
}

.summary-card dt {
  color: var(--muted);
}

.summary-card dd {
  color: var(--text);
  font-weight: 950;
  text-align: right;
}

.summary-note {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}

.checkout-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
}

.summary-card details {
  border-top: 1px solid var(--line);
  padding-top: 12px;
}

.summary-card summary {
  cursor: pointer;
  color: var(--muted);
  font-weight: 950;
  text-transform: uppercase;
}

.summary-card pre {
  max-height: 260px;
}

.payment-choice {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.payment-choice button {
  min-height: 40px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid var(--line);
  font-weight: 950;
  text-transform: uppercase;
}

.payment-choice button.active {
  color: #080807;
  background: var(--accent);
  border-color: var(--accent);
}

.summary-mode {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.summary-mode button {
  min-height: 44px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid var(--line);
  font-weight: 950;
  text-transform: uppercase;
}

.summary-mode button.active {
  color: #080807;
  background: var(--acid);
  border-color: var(--acid);
}

.credit-meter {
  display: grid;
  gap: 8px;
  padding: 12px;
  background: rgba(216, 255, 62, 0.07);
  border: 1px solid rgba(216, 255, 62, 0.3);
}

.credit-meter div:first-child {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.credit-meter span,
.credit-meter small {
  color: var(--muted);
  font-weight: 950;
  text-transform: uppercase;
}

.credit-meter strong {
  color: var(--acid);
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.8rem;
  line-height: 1;
}

.credit-bar {
  height: 8px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.11);
}

.credit-bar span {
  display: block;
  height: 100%;
  background: var(--acid);
}

.summary-alert {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: var(--text);
  background: rgba(255, 79, 184, 0.12);
  border: 1px solid rgba(255, 79, 184, 0.42);
  font-weight: 950;
  text-transform: uppercase;
}

.consent-row {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 10px;
  align-items: start;
  margin: 0;
  padding: 12px;
  color: var(--muted);
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.035);
  font-size: 0.88rem;
  line-height: 1.45;
}

.consent-row input {
  width: 18px;
  height: 18px;
  margin: 1px 0 0;
  accent-color: var(--acid);
}

.form-error {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 11px 12px;
  color: #ffd8d8;
  background: rgba(255, 48, 48, 0.12);
  border: 1px solid rgba(255, 80, 80, 0.45);
  font-weight: 850;
  line-height: 1.4;
}

.app-page {
  width: min(1080px, calc(100% - 32px));
  min-height: 100vh;
  margin-inline: auto;
  padding: 128px 0 90px;
}

.app-page h1 {
  max-width: 850px;
  margin: 0 0 18px;
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(3rem, 8vw, 6.4rem);
  line-height: 0.82;
  text-transform: uppercase;
}

.app-page p {
  max-width: 680px;
  color: var(--muted);
  font-size: 1.04rem;
  line-height: 1.65;
}

.auth-page {
  display: grid;
  place-items: center;
}

.auth-card,
.settings-form,
.account-stats,
.asset-card,
.empty-state,
.auth-gate {
  background: rgba(12, 11, 10, 0.94);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.auth-card {
  width: min(560px, 100%);
  padding: 24px;
}

.auth-card form,
.settings-form {
  display: grid;
  gap: 12px;
}

.auth-tabs {
  margin: 22px 0 18px;
}

.google-button {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  margin-bottom: 8px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--line-strong);
  font-weight: 950;
  text-transform: uppercase;
}

.auth-hint {
  display: block;
  margin: 0 0 18px;
  color: var(--muted);
  line-height: 1.45;
}

.auth-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 20px;
}

.auth-gate {
  min-height: calc(100vh - 140px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 28px;
}

.auth-gate > svg {
  color: var(--accent);
  margin-bottom: 18px;
}

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

.settings-form,
.account-stats {
  padding: 20px;
}

.account-stats {
  display: grid;
  gap: 12px;
}

.account-stat {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 10px;
  padding: 14px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line);
}

.account-stat svg {
  color: var(--accent);
}

.account-stat span {
  color: var(--muted);
  font-weight: 950;
  text-transform: uppercase;
}

.account-stat strong {
  text-align: right;
}

.topup-panel,
.history-panel,
.admin-list,
.policy-section > div {
  margin-top: 18px;
  padding: 20px;
  background: rgba(12, 11, 10, 0.94);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.topup-panel p,
.history-panel p {
  margin-top: 0;
}

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

.topup-grid button {
  min-height: 128px;
  display: grid;
  gap: 8px;
  align-content: center;
  padding: 14px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid var(--line);
  text-align: left;
}

.topup-grid button b,
.topup-grid button span {
  color: var(--muted);
  text-transform: uppercase;
}

.topup-grid button strong {
  color: var(--acid);
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.7rem;
}

.history-list {
  display: grid;
  gap: 8px;
}

.history-item {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr) auto auto;
  gap: 12px;
  align-items: center;
  padding: 12px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line);
}

.history-item span,
.history-item small {
  color: var(--muted);
}

.history-item strong {
  color: var(--acid);
}

.history-item strong.negative {
  color: var(--accent);
}

.assets-page > p {
  margin-bottom: 28px;
}

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

.asset-card {
  display: grid;
  grid-template-columns: 170px 1fr;
  gap: 16px;
  padding: 14px;
}

.asset-card > img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  object-position: center top;
  border: 1px solid var(--line);
}

.asset-body {
  min-width: 0;
  display: grid;
  align-content: start;
}

.asset-card span {
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 950;
  text-transform: uppercase;
}

.asset-card h2,
.empty-state h2 {
  margin: 8px 0;
  font-family: "Space Grotesk", sans-serif;
  text-transform: uppercase;
}

.asset-card dl {
  display: grid;
  gap: 7px;
  margin: 14px 0;
}

.asset-card dl div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid var(--line);
}

.asset-card dt,
.asset-card dd {
  margin: 0;
}

.asset-card dt {
  color: var(--muted);
}

.download-button {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  color: #080807;
  background: var(--accent);
  border: 1px solid var(--accent);
  font-weight: 950;
  text-transform: uppercase;
}

.admin-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 22px 0 14px;
}

.admin-metrics div {
  padding: 18px;
  background: rgba(216, 255, 62, 0.07);
  border: 1px solid rgba(216, 255, 62, 0.3);
}

.admin-metrics span {
  display: block;
  color: var(--muted);
  font-weight: 950;
  text-transform: uppercase;
}

.admin-metrics strong {
  color: var(--acid);
  font-family: "Space Grotesk", sans-serif;
  font-size: 2.6rem;
}

.refresh-button {
  width: auto;
  margin-bottom: 14px;
}

.admin-list {
  display: grid;
  gap: 12px;
}

.admin-order {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 16px;
  padding: 16px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line);
}

.admin-order span {
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 950;
  text-transform: uppercase;
}

.admin-order h2 {
  margin: 6px 0 8px;
  font-family: "Space Grotesk", sans-serif;
  text-transform: uppercase;
}

.admin-order dl {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin: 0;
}

.admin-order dl div {
  padding-bottom: 7px;
  border-bottom: 1px solid var(--line);
}

.admin-order dt,
.admin-order dd {
  margin: 0;
}

.admin-order dt {
  color: var(--muted);
}

.admin-order dd {
  font-weight: 950;
}

.provider-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 16px;
}

.provider-actions button {
  min-height: 42px;
  color: #080807;
  background: var(--acid);
  border: 1px solid var(--acid);
  font-weight: 950;
  text-transform: uppercase;
}

.policy-section {
  width: min(1180px, calc(100% - 32px));
  margin-inline: auto;
  padding: 20px 0 80px;
}

.policy-section > div {
  display: grid;
  gap: 10px;
  margin-top: 0;
}

.policy-section svg {
  color: var(--acid);
}

.policy-section h2 {
  margin: 0;
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(2rem, 4vw, 4rem);
  line-height: 0.9;
  text-transform: uppercase;
}

.policy-section p {
  max-width: 820px;
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

.empty-state {
  display: grid;
  place-items: center;
  min-height: 300px;
  padding: 26px;
  text-align: center;
}

.empty-state svg {
  color: var(--accent);
}

.plan-features {
  display: grid;
  gap: 6px;
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
}

.plan-features li {
  color: var(--muted);
  line-height: 1.45;
}

.plan-features li::before {
  content: "+";
  margin-right: 8px;
  color: var(--acid);
  font-weight: 950;
}

@media (max-width: 980px) {
  .builder-layout,
  .compact-grid,
  .style-picker {
    grid-template-columns: 1fr;
  }

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

  .summary-card {
    position: relative;
    top: auto;
  }
}

@media (max-width: 640px) {
  .step-rail {
    grid-template-columns: 1fr;
  }

  .step-dot {
    min-height: 42px;
  }

  .reaction-grid,
  .pack-options,
  .addon-grid,
  .two-fields {
    grid-template-columns: 1fr;
  }

  .style-picker {
    grid-template-columns: none;
    grid-auto-flow: column;
    grid-auto-columns: minmax(144px, 44vw);
    overflow-x: auto;
    overflow-y: hidden;
    padding: 2px 2px 10px;
    margin-inline: -2px;
    scroll-snap-type: x proximity;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
  }

  .style-picker::-webkit-scrollbar {
    height: 4px;
  }

  .style-option {
    min-height: 0;
    display: grid;
    grid-template-rows: 164px auto;
    scroll-snap-align: start;
  }

  .style-option img {
    height: 164px;
    padding: 8px;
    object-fit: contain;
    object-position: center;
    background: radial-gradient(circle at 50% 12%, rgba(255, 255, 255, 0.13), transparent 58%), #050504;
  }

  .style-option span {
    min-height: 38px;
    padding: 8px;
    font-size: 0.82rem;
  }

  .style-option small {
    display: none;
  }

  .topup-grid,
  .admin-metrics,
  .admin-order,
  .asset-grid,
  .asset-card,
  .admin-order dl {
    grid-template-columns: 1fr;
  }

  .history-item {
    grid-template-columns: 1fr auto;
  }

  .history-item span,
  .history-item small {
    grid-column: 1 / -1;
  }

  .asset-grid {
    gap: 12px;
  }

  .asset-card {
    padding: 10px;
    gap: 12px;
  }

  .asset-card h2 {
    font-size: 1.05rem;
  }

  .asset-card p {
    font-size: 0.92rem;
  }

  .asset-card dl {
    gap: 5px;
  }

  .download-button {
    min-height: 48px;
  }

  .provider-actions,
  .payment-choice {
    grid-template-columns: 1fr;
  }

  .custom-expression {
    grid-template-columns: 1fr;
  }
}
