:root {
  --bg: #07111f;
  --bg-2: #0b1830;
  --surface: rgba(8, 18, 34, 0.72);
  --surface-strong: rgba(9, 22, 42, 0.9);
  --surface-soft: rgba(255, 247, 235, 0.08);
  --line: rgba(255, 231, 198, 0.16);
  --line-strong: rgba(255, 231, 198, 0.26);
  --text: #f6efe4;
  --muted: #cbbfae;
  --gold: #f4c97a;
  --gold-strong: #ffdd9f;
  --teal: #6fd5c5;
  --rose: #f0a998;
  --shadow: 0 30px 90px rgba(1, 6, 16, 0.42);
  --radius-xl: 32px;
  --radius-lg: 24px;
  --radius-md: 18px;
  --container: 1220px;
  --heading-font: "Cormorant Garamond", Georgia, serif;
  --body-font: "Manrope", "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  font-family: var(--body-font);
  color: var(--text);
  background:
    radial-gradient(circle at 20% 10%, rgba(111, 213, 197, 0.12), transparent 22%),
    radial-gradient(circle at 80% 12%, rgba(240, 169, 152, 0.16), transparent 18%),
    radial-gradient(circle at 50% 90%, rgba(244, 201, 122, 0.1), transparent 28%),
    linear-gradient(180deg, #08111f 0%, #0a1730 45%, #07101d 100%);
}

body::before,
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

body::before {
  background-image:
    radial-gradient(circle at 10% 20%, rgba(255, 255, 255, 0.8) 0 1px, transparent 1.8px),
    radial-gradient(circle at 70% 30%, rgba(255, 255, 255, 0.55) 0 1.1px, transparent 1.9px),
    radial-gradient(circle at 55% 70%, rgba(255, 255, 255, 0.45) 0 1px, transparent 1.7px),
    radial-gradient(circle at 85% 80%, rgba(255, 255, 255, 0.4) 0 1px, transparent 1.8px);
  background-size: 240px 240px, 320px 320px, 280px 280px, 360px 360px;
  opacity: 0.28;
  animation: driftStars 28s linear infinite;
}

body::after {
  background:
    radial-gradient(circle at 50% 0%, rgba(244, 201, 122, 0.08), transparent 28%),
    linear-gradient(180deg, transparent 0%, rgba(7, 17, 31, 0.2) 68%, rgba(7, 17, 31, 0.85) 100%);
}

.magic-stars-layer {
  position: fixed;
  inset: 0;
  z-index: 4;
  pointer-events: none;
  overflow: hidden;
}

.magic-star {
  position: absolute;
  left: 0;
  top: 0;
  width: var(--star-size, 7px);
  height: var(--star-size, 7px);
  opacity: 0;
  transform: translate3d(var(--x-start, 0), var(--y-start, 0), 0) scale(0.55);
  background: var(--star-core, #fffef8);
  box-shadow: none;
  filter: none;
  clip-path: polygon(
    50% 0%,
    61% 35%,
    98% 35%,
    68% 57%,
    79% 91%,
    50% 70%,
    21% 91%,
    32% 57%,
    2% 35%,
    39% 35%
  );
  animation: magicStarArc var(--star-duration, 4600ms) linear forwards;
  will-change: transform, opacity;
}

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

button,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

.site-shell {
  position: relative;
  z-index: 1;
  width: min(calc(100% - 32px), var(--container));
  margin: 0 auto;
  padding: 24px 0 48px;
}

.cabinet-shell {
  width: min(calc(100% - 32px), 1320px);
}

.aurora {
  position: fixed;
  inset: auto;
  width: 34rem;
  height: 34rem;
  border-radius: 999px;
  filter: blur(20px);
  opacity: 0.25;
  pointer-events: none;
  z-index: 0;
  animation: floatBlob 18s ease-in-out infinite;
}

.aurora-one {
  top: -12rem;
  right: -8rem;
  background: radial-gradient(circle, rgba(240, 169, 152, 0.52), transparent 60%);
}

.aurora-two {
  bottom: -10rem;
  left: -12rem;
  background: radial-gradient(circle, rgba(111, 213, 197, 0.42), transparent 58%);
  animation-delay: -6s;
}

.topbar {
  position: sticky;
  top: 16px;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px 22px;
  margin-bottom: 26px;
  border: 1px solid var(--line);
  border-radius: 999px;
  backdrop-filter: blur(18px);
  background: rgba(7, 17, 31, 0.55);
  box-shadow: 0 14px 40px rgba(3, 8, 18, 0.22);
}

.topbar.compact {
  position: relative;
  top: 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.brand-mark {
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  border-radius: 50%;
  background:
    radial-gradient(circle at 36% 34%, rgba(255, 248, 223, 0.96) 0 14%, rgba(244, 201, 122, 0.94) 15% 45%, rgba(244, 201, 122, 0.18) 46% 70%, transparent 71%),
    radial-gradient(circle at 60% 68%, rgba(111, 213, 197, 0.6), transparent 56%);
  box-shadow: 0 0 22px rgba(244, 201, 122, 0.28);
}

.brand-copy {
  display: grid;
  gap: 2px;
}

.brand-copy strong {
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.brand-copy small {
  color: var(--muted);
  font-size: 0.8rem;
}

.nav {
  display: flex;
  align-items: center;
  gap: 18px;
}

.nav a {
  color: rgba(246, 239, 228, 0.82);
  font-size: 0.94rem;
  transition: color 180ms ease;
}

.nav a:hover {
  color: var(--gold-strong);
}

.nav-cta {
  padding: 11px 18px;
  border-radius: 999px;
  border: 1px solid rgba(244, 201, 122, 0.34);
  background: rgba(244, 201, 122, 0.1);
}

.nav-account-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: rgba(246, 239, 228, 0.96);
  font-size: 0.9rem;
  font-weight: 600;
  white-space: nowrap;
}

.nav-account-balance {
  color: rgba(246, 239, 228, 0.84);
  font-weight: 500;
}

.nav-account-logout {
  display: inline-grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 999px;
  border: 1px solid rgba(244, 201, 122, 0.42);
  background: rgba(7, 17, 31, 0.45);
  font-size: 0.75rem;
  line-height: 1;
}

.nav-toggle {
  display: none;
  width: 48px;
  height: 48px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
}

.nav-toggle span {
  width: 16px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
}

.section {
  margin-bottom: 26px;
}

.hero {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 32px;
  align-items: center;
  min-height: clamp(520px, 74vh, 760px);
  padding-top: 6px;
}

.hero-copy,
.hero-stage,
.glass,
.story-card,
.process-card,
.future-stage,
.account-card,
.order-card,
.billing-card,
.support-panel,
.support-side,
.cabinet-hero,
.cabinet-sidebar {
  position: relative;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.76rem;
  font-weight: 800;
}

.eyebrow::before {
  content: "";
  width: 32px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(244, 201, 122, 0.95));
}

h1,
h2,
h3 {
  margin: 0;
  font-family: var(--heading-font);
  font-weight: 600;
  line-height: 0.95;
  letter-spacing: -0.02em;
}

h1 {
  margin-top: 18px;
  font-size: clamp(3.4rem, 7vw, 6.8rem);
}

.hero-title-main {
  font-size: clamp(2.38rem, 4.9vw, 4.76rem);
}

h2 {
  font-size: clamp(2.2rem, 4.8vw, 4.1rem);
}

h3 {
  font-size: clamp(1.5rem, 2.4vw, 2.05rem);
}

p {
  margin: 0;
  color: rgba(246, 239, 228, 0.8);
  line-height: 1.7;
}

.lead {
  margin-top: 20px;
  max-width: 44rem;
  font-size: 1.08rem;
}

.hero-actions,
.account-cta {
  display: flex;
  gap: 14px;
  margin-top: 28px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 54px;
  padding: 0 24px;
  border: 0;
  border-radius: 999px;
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    background 180ms ease,
    color 180ms ease;
}

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

.button:disabled {
  opacity: 0.45;
  cursor: default;
}

.button-primary {
  background: linear-gradient(135deg, #f7d59d, #f0a998);
  color: #24110d;
  box-shadow: 0 16px 40px rgba(240, 169, 152, 0.22);
}

.button-secondary {
  border: 1px solid var(--line-strong);
  background: rgba(255, 247, 235, 0.07);
  color: var(--text);
}

.button-wide {
  width: 100%;
}

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

.hero-metrics article,
.trust-item,
.process-card,
.account-card,
.billing-card,
.order-card,
.support-side,
.summary-panel,
.builder-panel,
.future-stage,
.cabinet-hero,
.cabinet-sidebar,
.story-card {
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255, 247, 235, 0.08), rgba(255, 247, 235, 0.04));
  box-shadow: var(--shadow);
}

.hero-metrics article {
  padding: 18px;
  border-radius: var(--radius-md);
}

.hero-metrics strong {
  display: block;
  margin-bottom: 8px;
  color: var(--gold-strong);
  font-size: 1.65rem;
}

.hero-metrics span {
  color: var(--muted);
  font-size: 0.92rem;
}

.hero-stage {
  min-height: 640px;
}

.stage-card-main {
  position: relative;
  overflow: hidden;
  min-height: 560px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02)),
    rgba(5, 15, 30, 0.62);
  box-shadow: var(--shadow);
}

.stage-window {
  position: relative;
  height: 420px;
  overflow: hidden;
  border-radius: 26px;
  background:
    radial-gradient(circle at 50% 30%, rgba(255, 250, 218, 0.14), transparent 20%),
    linear-gradient(180deg, #173054 0%, #102643 38%, #0b1e38 62%, #0c1a26 100%);
}

.moon {
  position: absolute;
  top: 54px;
  left: 50%;
  width: 110px;
  height: 110px;
  margin-left: -55px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, rgba(255, 255, 241, 0.98), rgba(244, 201, 122, 0.86));
  box-shadow:
    0 0 30px rgba(255, 221, 159, 0.35),
    0 0 80px rgba(255, 221, 159, 0.18);
  animation: pulseMoon 5.5s ease-in-out infinite;
}

.mountain {
  position: absolute;
  inset: auto 0 0;
}

.mountain-back {
  height: 46%;
  background:
    radial-gradient(circle at 25% 110%, rgba(111, 213, 197, 0.14), transparent 34%),
    linear-gradient(180deg, transparent 0%, rgba(8, 25, 48, 0.16) 30%, rgba(12, 27, 45, 0.92) 100%);
  clip-path: polygon(0 100%, 0 70%, 18% 54%, 30% 63%, 48% 40%, 61% 57%, 76% 46%, 100% 70%, 100% 100%);
}

.mountain-front {
  height: 34%;
  background:
    linear-gradient(180deg, rgba(11, 26, 40, 0.24) 0%, rgba(7, 16, 29, 0.98) 100%),
    radial-gradient(circle at 70% 40%, rgba(244, 201, 122, 0.08), transparent 26%);
  clip-path: polygon(0 100%, 0 55%, 15% 44%, 28% 66%, 48% 48%, 61% 65%, 80% 38%, 100% 63%, 100% 100%);
}

.storybook-glow {
  position: absolute;
  inset: auto 12% 8% 12%;
  height: 110px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(111, 213, 197, 0.22), transparent 68%);
  filter: blur(8px);
}

.stage-meta {
  padding: 22px 8px 8px;
}

.stage-meta span,
.story-tag,
.floating-label,
.field-title,
.pill {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  padding: 7px 12px;
  border: 1px solid rgba(255, 231, 198, 0.18);
  border-radius: 999px;
  background: rgba(255, 247, 235, 0.06);
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.stage-meta strong,
.future-meta strong {
  display: block;
  margin: 18px 0 12px;
  font-family: var(--heading-font);
  font-size: 2rem;
}

.floating-card {
  position: absolute;
  padding: 18px;
  max-width: 240px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(8, 18, 34, 0.8);
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
  animation: bob 8s ease-in-out infinite;
}

.floating-card strong {
  display: block;
  margin: 12px 0 8px;
}

.floating-card p {
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.55;
}

.card-upload {
  top: 46px;
  left: -28px;
}

.card-story {
  right: -20px;
  top: 260px;
  animation-delay: -2.5s;
}

.card-future {
  bottom: 26px;
  left: 44px;
  animation-delay: -4.2s;
}

.trust-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-top: 4px;
}

.trust-item {
  padding: 20px;
  border-radius: 22px;
}

.trust-item span {
  display: block;
  margin-bottom: 8px;
  color: var(--muted);
}

.trust-item strong {
  font-family: var(--heading-font);
  font-size: 1.65rem;
}

.section-heading {
  max-width: 54rem;
  margin-bottom: 24px;
}

.section-heading h2,
.section-heading p {
  margin-top: 16px;
}

.section-heading.compact {
  margin-bottom: 18px;
}

.section-grid {
  padding-top: 30px;
}

.story-grid,
.process-grid,
.account-preview,
.order-grid,
.billing-grid {
  display: grid;
  gap: 16px;
}

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

.story-card-link {
  display: block;
  color: inherit;
}

.story-card {
  overflow: hidden;
  border-radius: 28px;
  cursor: pointer;
  transition:
    transform 220ms ease,
    border-color 220ms ease,
    box-shadow 220ms ease;
}

.story-card:hover,
.story-card.active {
  transform: translateY(-4px);
  border-color: rgba(244, 201, 122, 0.34);
  box-shadow: 0 24px 70px rgba(2, 8, 18, 0.42);
}

.story-cover {
  position: relative;
  height: auto;
  aspect-ratio: 16 / 9;
  min-height: 220px;
  background-size: cover;
  background-position: center;
}

.story-cover::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(6, 13, 24, 0.02), rgba(6, 13, 24, 0.16) 68%, rgba(6, 13, 24, 0.34)),
    radial-gradient(circle at 14% 16%, rgba(255, 247, 235, 0.16), transparent 24%);
  pointer-events: none;
}

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

.cover-moon {
  background:
    radial-gradient(circle at 50% 30%, rgba(255, 243, 207, 0.58), transparent 18%),
    linear-gradient(180deg, #17375f, #0c1f37 60%, #081621);
}

.cover-sea {
  background:
    radial-gradient(circle at 50% 18%, rgba(250, 220, 163, 0.34), transparent 22%),
    linear-gradient(180deg, #21657b, #11364a 58%, #0a1d29);
}

.cover-cloud {
  background:
    radial-gradient(circle at 28% 24%, rgba(255, 247, 235, 0.3), transparent 18%),
    linear-gradient(180deg, #50688f, #30445f 56%, #162131);
}

.story-body {
  padding: 22px;
}

.story-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.story-title-row h3 {
  min-width: 0;
  margin: 0;
}

.story-title-row .story-tag {
  flex: 0 0 auto;
  align-self: center;
  white-space: nowrap;
}

.story-body p {
  margin-top: 12px;
}

.text-link {
  margin-top: 18px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--gold-strong);
}

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

.process-card {
  min-height: 240px;
  padding: 26px;
  border-radius: 28px;
}

.process-card span:first-child {
  display: inline-block;
  color: rgba(244, 201, 122, 0.82);
  font-size: 0.92rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.process-card h3 {
  margin: 20px 0 14px;
}

.builder-shell {
  padding: 36px;
  border: 1px solid rgba(255, 231, 198, 0.14);
  border-radius: 38px;
  background:
    radial-gradient(circle at 10% 10%, rgba(111, 213, 197, 0.12), transparent 18%),
    radial-gradient(circle at 92% 20%, rgba(240, 169, 152, 0.12), transparent 20%),
    rgba(6, 16, 31, 0.52);
}

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

.glass,
.builder-panel,
.summary-panel,
.future-stage,
.account-card,
.support-panel,
.support-side,
.cabinet-hero,
.cabinet-sidebar,
.order-card,
.billing-card {
  padding: 24px;
  border-radius: 28px;
  backdrop-filter: blur(16px);
}

.field {
  display: grid;
  gap: 10px;
  margin-bottom: 16px;
}

.field span {
  color: rgba(246, 239, 228, 0.74);
  font-size: 0.92rem;
}

input[type="text"],
input[type="file"],
textarea,
select {
  width: 100%;
  padding: 16px 18px;
  border: 1px solid rgba(255, 231, 198, 0.14);
  border-radius: 18px;
  color: var(--text);
  background: rgba(255, 247, 235, 0.05);
  outline: none;
}

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

input[type="file"]::file-selector-button {
  margin-right: 14px;
  padding: 10px 14px;
  border: 0;
  border-radius: 999px;
  background: rgba(244, 201, 122, 0.18);
  color: var(--text);
}

.upload-preview {
  overflow: hidden;
  min-height: 180px;
  margin-bottom: 18px;
  border: 1px dashed rgba(255, 231, 198, 0.18);
  border-radius: 24px;
  background:
    linear-gradient(135deg, rgba(255, 247, 235, 0.06), rgba(111, 213, 197, 0.08)),
    rgba(8, 18, 34, 0.6);
}

.upload-preview img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 180px;
  object-fit: cover;
}

.upload-placeholder {
  display: grid;
  place-items: center;
  min-height: 180px;
  padding: 24px;
  text-align: center;
  gap: 8px;
}

.upload-placeholder span {
  color: var(--muted);
  font-size: 0.9rem;
}

.preset-group + .preset-group {
  margin-top: 18px;
}

.chip-row,
.quick-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.chip,
.quick-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 16px;
  border: 1px solid rgba(255, 231, 198, 0.16);
  border-radius: 999px;
  background: rgba(255, 247, 235, 0.04);
  color: var(--text);
  line-height: 1.2;
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    background 180ms ease;
}

.chip:hover,
.chip.active,
.quick-chip:hover {
  transform: translateY(-1px);
  border-color: rgba(244, 201, 122, 0.34);
  background: rgba(244, 201, 122, 0.1);
}

.tier-grid {
  display: grid;
  gap: 10px;
}

.tier-card {
  display: grid;
  gap: 6px;
  padding: 18px;
  border: 1px solid rgba(255, 231, 198, 0.16);
  border-radius: 22px;
  text-align: left;
  color: var(--text);
  background: rgba(255, 247, 235, 0.05);
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    background 180ms ease;
}

.tier-card.active {
  border-color: rgba(111, 213, 197, 0.42);
  background: rgba(111, 213, 197, 0.1);
}

.tier-card.upcoming {
  opacity: 0.7;
}

.summary-header h3 {
  margin-top: 14px;
}

.summary-price {
  display: grid;
  gap: 8px;
  margin: 28px 0 20px;
}

.summary-price strong {
  font-size: 2.2rem;
  color: var(--gold-strong);
}

.summary-price span {
  color: var(--muted);
}

.summary-list {
  padding-left: 18px;
  margin: 0;
  color: rgba(246, 239, 228, 0.82);
  line-height: 1.75;
}

.summary-list li + li {
  margin-top: 4px;
}

.progress-demo {
  margin-top: 26px;
  padding: 20px;
  border: 1px solid rgba(255, 231, 198, 0.12);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.03);
}

.progress-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
  color: var(--muted);
  font-size: 0.9rem;
}

.progress-line {
  overflow: hidden;
  height: 10px;
  border-radius: 999px;
  background: rgba(255, 247, 235, 0.08);
}

.progress-line span {
  display: block;
  width: var(--progress-width, 33%);
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #6fd5c5, #f4c97a, #f0a998);
  transition: width 320ms ease;
}

.progress-copy {
  margin-top: 14px;
  color: rgba(246, 239, 228, 0.76);
}

.note-card {
  margin-top: 22px;
  padding: 20px;
  border: 1px solid rgba(111, 213, 197, 0.18);
  border-radius: 22px;
  background: rgba(111, 213, 197, 0.08);
}

.note-card strong {
  display: block;
  margin-bottom: 10px;
}

.future-section {
  display: grid;
  grid-template-columns: 0.88fr 1.12fr;
  gap: 18px;
  align-items: stretch;
}

.future-stage {
  display: grid;
  grid-template-columns: minmax(280px, 0.95fr) 1fr;
  gap: 20px;
  align-items: center;
}

.future-screen {
  position: relative;
  min-height: 320px;
  border-radius: 28px;
  background:
    radial-gradient(circle at 50% 50%, rgba(255, 247, 235, 0.18), transparent 24%),
    linear-gradient(135deg, #102743, #0c1a2c 62%, #08131f);
  overflow: hidden;
}

.future-screen::before,
.future-screen::after {
  content: "";
  position: absolute;
  inset: auto;
  border-radius: 50%;
}

.future-screen::before {
  width: 220px;
  height: 220px;
  top: 18%;
  left: 20%;
  background: radial-gradient(circle, rgba(111, 213, 197, 0.2), transparent 60%);
}

.future-screen::after {
  width: 280px;
  height: 120px;
  right: -40px;
  bottom: 12%;
  background: linear-gradient(180deg, rgba(244, 201, 122, 0.14), transparent);
  filter: blur(12px);
}

.future-play {
  position: absolute;
  inset: 50% auto auto 50%;
  width: 92px;
  height: 92px;
  margin: -46px 0 0 -46px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 40% 40%, rgba(255, 255, 255, 0.9), rgba(244, 201, 122, 0.8)),
    rgba(255, 255, 255, 0.12);
  box-shadow: 0 0 40px rgba(244, 201, 122, 0.2);
}

.future-play::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 54%;
  margin: -12px 0 0 -8px;
  border-top: 12px solid transparent;
  border-bottom: 12px solid transparent;
  border-left: 18px solid #0d2036;
}

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

.account-card {
  min-height: 280px;
}

.mini-list,
.payment-stack,
.chat-preview {
  display: grid;
  gap: 12px;
  margin-top: 20px;
}

.mini-list span,
.payment-stack span,
.chat-preview span {
  padding: 14px 16px;
  border: 1px solid rgba(255, 231, 198, 0.12);
  border-radius: 18px;
  background: rgba(255, 247, 235, 0.04);
}

.footer {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  padding: 34px 8px 8px;
  color: rgba(246, 239, 228, 0.72);
}

.footer strong {
  display: block;
  margin-bottom: 8px;
  color: var(--text);
}

.footer-links {
  display: flex;
  gap: 18px;
}

.cabinet-layout {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  gap: 18px;
}

.cabinet-sidebar {
  position: sticky;
  top: 24px;
  align-self: start;
}

.profile-card {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 22px;
}

.cabinet-side-nav {
  display: grid;
  gap: 8px;
  margin-bottom: 18px;
}

.cabinet-side-nav a {
  display: block;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(255, 231, 198, 0.12);
  color: rgba(246, 239, 228, 0.84);
  background: rgba(255, 247, 235, 0.03);
  transition: border-color 180ms ease, background 180ms ease, transform 180ms ease;
}

.cabinet-side-nav a:hover {
  border-color: rgba(244, 201, 122, 0.28);
  background: rgba(244, 201, 122, 0.08);
  transform: translateX(1px);
}

.cabinet-side-nav a.is-active {
  border-color: rgba(111, 213, 197, 0.42);
  background: rgba(111, 213, 197, 0.12);
  color: var(--text);
}

.avatar-ring {
  display: grid;
  place-items: center;
  width: 62px;
  height: 62px;
  border-radius: 50%;
  color: #0d2036;
  background: linear-gradient(135deg, #f7d59d, #6fd5c5);
  font-weight: 800;
}

.sidebar-stat + .sidebar-stat,
.sidebar-roadmap {
  margin-top: 18px;
}

.sidebar-stat span,
.sidebar-roadmap p {
  display: block;
  color: var(--muted);
}

.sidebar-stat strong {
  display: block;
  margin-top: 6px;
  font-size: 1.24rem;
}

.sidebar-roadmap h2 {
  margin: 14px 0 12px;
  font-size: 2.1rem;
}

.cabinet-main {
  display: grid;
  gap: 18px;
}

.cabinet-hero {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
}

.cabinet-pill-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

.pill.success {
  color: #8df0d4;
}

.pill.warn {
  color: #ffd991;
}

.dashboard-section {
  display: grid;
  gap: 14px;
}

.generation-layout {
  display: grid;
  grid-template-columns: minmax(300px, 0.72fr) minmax(0, 1.28fr);
  gap: 16px;
}

.generation-result {
  grid-column: 1 / -1;
  width: 100%;
}

.generation-stage-nav {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.generation-stage-btn {
  border: 1px solid rgba(255, 231, 198, 0.18);
  background: rgba(255, 247, 235, 0.04);
  color: var(--text);
  border-radius: 999px;
  padding: 0.45rem 0.9rem;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.generation-stage-btn.is-active {
  border-color: rgba(111, 213, 197, 0.46);
  background: rgba(111, 213, 197, 0.12);
}

.generation-stage-btn.is-locked,
.generation-stage-btn:disabled {
  cursor: not-allowed;
  opacity: 0.38;
  filter: grayscale(0.35);
  background: rgba(255, 247, 235, 0.025);
  border-color: rgba(255, 231, 198, 0.1);
  color: rgba(246, 239, 228, 0.5);
  pointer-events: none;
}

.generation-payment-hint {
  padding: 18px;
}

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

.generation-payment-hint p {
  margin: 0 0 8px;
}

.generation-payment-details {
  display: grid;
  gap: 14px;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 231, 198, 0.14);
}

.generation-payment-details[hidden] {
  display: none;
}

.generation-result-panel {
  display: grid;
  gap: 14px;
}

.generation-result-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  width: 100%;
}

.generation-result-option {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-width: 0;
  padding: 10px 12px;
  border: 1px solid rgba(255, 231, 198, 0.12);
  border-radius: 14px;
  background: rgba(255, 247, 235, 0.04);
}

.generation-result-option input {
  accent-color: #6fd5c5;
}

.generation-result-block.is-hidden {
  display: none;
}

.generation-result-block .generation-form-actions {
  margin-top: 16px;
}

.generation-delivery-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
  gap: 16px;
  align-items: start;
}

.generation-delivery-form,
.generation-delivery-sidebar {
  display: grid;
  gap: 14px;
}

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

.generation-delivery-subtype,
.generation-pickup-card {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 14px;
  border: 1px solid rgba(255, 231, 198, 0.12);
  border-radius: 16px;
  background: rgba(255, 247, 235, 0.04);
}

.generation-delivery-subtype input,
.generation-pickup-card input {
  accent-color: #6fd5c5;
  margin-top: 3px;
}

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

.generation-delivery-courier-field.is-hidden,
.generation-delivery-pickup.is-hidden {
  display: none;
}

.generation-pickup-points {
  display: grid;
  gap: 10px;
}

.generation-pickup-card-body {
  display: grid;
  gap: 4px;
}

.generation-pickup-card-body strong,
.generation-pickup-card-body span,
.generation-pickup-card-body small {
  display: block;
}

.generation-pickup-card-body span {
  color: var(--text);
}

.generation-pickup-card-body small {
  color: var(--muted);
}

.generation-map-placeholder,
.generation-pickup-summary {
  padding: 16px;
  border: 1px solid rgba(255, 231, 198, 0.12);
  border-radius: 18px;
  background: rgba(255, 247, 235, 0.04);
}

.generation-map-placeholder strong,
.generation-pickup-summary strong {
  display: block;
  margin-bottom: 8px;
}

.generation-map-placeholder p,
.generation-pickup-summary p {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}

.generation-map-surface {
  margin-top: 14px;
  min-height: 220px;
  display: grid;
  place-items: center;
  text-align: center;
  border-radius: 18px;
  border: 1px dashed rgba(111, 213, 197, 0.35);
  background:
    radial-gradient(circle at 20% 20%, rgba(111, 213, 197, 0.12), transparent 28%),
    radial-gradient(circle at 80% 30%, rgba(244, 201, 122, 0.12), transparent 24%),
    linear-gradient(180deg, rgba(9, 22, 42, 0.72), rgba(7, 17, 31, 0.9));
  color: rgba(246, 239, 228, 0.72);
  font-size: 0.95rem;
}

.referral-actions {
  margin-top: 22px;
}

.generation-payment-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.generation-payment-summary > div {
  padding: 14px;
  border: 1px solid rgba(255, 231, 198, 0.12);
  border-radius: 18px;
  background: rgba(255, 247, 235, 0.05);
}

.generation-payment-summary span,
.generation-payment-summary strong {
  display: block;
}

.generation-payment-summary span {
  color: var(--muted);
  font-size: 0.82rem;
}

.generation-payment-summary strong {
  margin-top: 6px;
}

.generation-payment-terms {
  margin: 12px 0 0;
  padding-left: 1.1rem;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.45;
}

.generation-payment-terms li + li {
  margin-top: 6px;
}

.generation-story-pick {
  padding: 18px;
}

.generation-story-pick-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}

.generation-story-pick-head strong {
  display: block;
  font-size: 1.05rem;
  margin-bottom: 6px;
}

.generation-story-pick-lead {
  margin: 0;
  max-width: 52rem;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.45;
}

.generation-story-pick-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 14px;
  margin-top: 12px;
}

.generation-story-pick-card {
  border: 1px solid rgba(255, 231, 198, 0.16);
  border-radius: 16px;
  background: rgba(7, 17, 31, 0.35);
  padding: 0;
  text-align: left;
  cursor: pointer;
  overflow: hidden;
  transition:
    border-color 180ms ease,
    box-shadow 180ms ease,
    transform 180ms ease;
}

.generation-story-pick-card:hover {
  border-color: rgba(111, 213, 197, 0.45);
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.22);
}

.generation-story-pick-card.is-selected {
  border-color: rgba(111, 213, 197, 0.65);
  box-shadow: 0 0 0 1px rgba(111, 213, 197, 0.35);
}

.generation-story-pick-card-media {
  aspect-ratio: 16 / 9;
  width: 100%;
  background: rgba(0, 0, 0, 0.25);
}

.generation-story-pick-card-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.generation-story-pick-card-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100%;
  padding: 0.75rem;
  color: var(--muted);
  font-size: 0.85rem;
  text-align: center;
}

.generation-story-pick-card-body {
  padding: 12px 14px 14px;
}

.generation-story-pick-card-body h3 {
  margin: 0 0 8px;
  font-size: 1.05rem;
  line-height: 1.25;
  color: rgba(248, 247, 255, 0.96);
}

.generation-story-pick-card-body p {
  margin: 0;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.45;
}

.generation-story-pick-actions {
  margin-top: 16px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.generation-consents {
  display: grid;
  gap: 12px;
  margin-top: 14px;
  margin-bottom: 6px;
}

.generation-consent {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 0.86rem;
  line-height: 1.45;
  color: var(--muted);
}

.generation-consent input {
  margin-top: 4px;
  flex-shrink: 0;
  width: 1rem;
  height: 1rem;
  accent-color: #6fd5c5;
}

.generation-consent a {
  color: #b8e8de;
  text-decoration: underline;
}

.generation-consent a:hover {
  color: #d6f5ee;
}

.generation-consent-hint {
  margin: 4px 0 0;
  color: rgba(255, 179, 170, 0.95);
  font-size: 0.88rem;
  line-height: 1.4;
}

.generation-consent-hint[hidden] {
  display: none;
}

.privacy-pdf-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 1rem;
}

.generation-stage-panel {
  display: none;
  pointer-events: none;
  min-height: 0;
  max-height: 0;
  overflow: hidden;
  transition:
    max-height 320ms ease,
    opacity 220ms ease;
}

.generation-stage-panel.is-active {
  display: block;
  pointer-events: auto;
  max-height: 5000px;
}

.generation-form.is-active,
.generation-portrait-panel.is-active,
.generation-progress.is-active {
  min-height: 250px;
}

.generation-form-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.generation-form-actions--primary {
  display: grid;
  grid-template-columns: 1fr;
  justify-items: start;
}

.generation-form-actions--primary #genAnchorBtn {
  width: 100%;
}

.generation-form-actions--primary #genStartBtn,
.generation-form-actions--primary #genStopBtn {
  width: auto;
}

.gen-selected-anchor {
  margin: 0.35rem 0 0;
  color: var(--muted);
}

.gen-status {
  margin-top: 12px;
  color: var(--muted);
  min-height: 1.2rem;
}

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

.generation-portrait-panel .generation-variants {
  margin-top: 16px;
}

.generation-progress {
  grid-column: 1 / -1;
}

.generation-variant {
  border: 1px solid rgba(255, 231, 198, 0.16);
  border-radius: 16px;
  background: rgba(255, 247, 235, 0.04);
  overflow: hidden;
  display: grid;
}

.generation-variant-media {
  position: relative;
}

.generation-variant img {
  width: 100%;
  aspect-ratio: 3 / 4;
  min-height: 340px;
  object-fit: contain;
  object-position: center;
  background: rgba(8, 18, 34, 0.62);
}

.generation-portrait-watermark {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 18px;
  pointer-events: none;
  color: rgba(255, 245, 230, 0.46);
  font-size: clamp(1rem, 1.8vw, 1.35rem);
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  text-align: center;
  text-shadow: 0 2px 24px rgba(3, 8, 18, 0.75);
  backdrop-filter: saturate(0.92);
  transform: rotate(-24deg);
}

.generation-portrait-watermark::before {
  content: '';
  position: absolute;
  inset: 14% 6%;
  border-radius: 24px;
  background:
    repeating-linear-gradient(
      -24deg,
      rgba(255, 255, 255, 0.02) 0 18px,
      rgba(255, 255, 255, 0.08) 18px 36px
    );
  opacity: 0.55;
  z-index: -1;
}

.generation-portrait-watermark--zoom {
  font-size: clamp(1.4rem, 2.4vw, 2.4rem);
  letter-spacing: 0.22em;
}

.generation-variant-meta {
  display: grid;
  gap: 6px;
  padding: 8px;
}

.generation-variant-meta strong {
  font-size: 0.88rem;
}

.generation-variant-regen {
  width: 100%;
  margin-top: 8px;
}

.generation-pages-stage-actions {
  margin-top: 16px;
}

.generation-variant-meta button {
  border-radius: 999px;
  border: 1px solid rgba(255, 231, 198, 0.2);
  background: rgba(255, 247, 235, 0.04);
  color: var(--text);
  padding: 0.3rem 0.6rem;
}

.generation-variant.is-selected {
  border-color: rgba(111, 213, 197, 0.5);
  box-shadow: 0 0 0 2px rgba(111, 213, 197, 0.2) inset;
}

.generation-progress-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.generation-progress-head strong {
  font-size: 1.2rem;
}

.generation-progress-head span {
  color: var(--gold-strong);
  font-weight: 700;
}

.generation-progress-line {
  margin-top: 12px;
  overflow: hidden;
  height: 10px;
  border-radius: 999px;
  background: rgba(255, 247, 235, 0.08);
}

.generation-progress-line span {
  display: block;
  width: 0%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #6fd5c5, #f4c97a, #f0a998);
  transition: width 280ms ease;
}

.gen-current-step {
  margin-top: 12px;
  color: rgba(246, 239, 228, 0.86);
}

.generation-pages-stage {
  margin-top: 14px;
  display: grid;
  gap: 0;
}

.generation-page-thumbs {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 4px 2px 12px;
  margin: 0 -2px;
  scrollbar-width: thin;
  -webkit-overflow-scrolling: touch;
}

.generation-thumb {
  flex: 0 0 auto;
  width: 136px;
  padding: 0;
  margin: 0;
  border: 2px solid rgba(255, 231, 198, 0.15);
  border-radius: 12px;
  background: rgba(8, 18, 34, 0.45);
  cursor: pointer;
  transition:
    border-color 0.15s ease,
    box-shadow 0.15s ease;
}

.generation-thumb:hover {
  border-color: rgba(255, 231, 198, 0.35);
}

.generation-thumb:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

.generation-thumb.is-active {
  border-color: var(--gold);
  box-shadow: 0 0 0 2px rgba(244, 201, 122, 0.22);
}

.generation-thumb-inner {
  position: relative;
  display: block;
  border-radius: 10px;
  overflow: hidden;
}

.generation-thumb img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  vertical-align: middle;
}

.generation-thumb-badge {
  position: absolute;
  left: 4px;
  bottom: 4px;
  padding: 2px 6px;
  border-radius: 6px;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  background: rgba(3, 7, 14, 0.78);
  color: rgba(246, 239, 228, 0.95);
}

.generation-thumb--running {
  border-color: rgba(255, 201, 120, 0.45);
}

.generation-thumb--done {
  border-color: rgba(111, 213, 197, 0.35);
}

.generation-thumb--error {
  border-color: rgba(255, 150, 130, 0.52);
}

.generation-thumb--cancelled {
  border-color: rgba(182, 195, 220, 0.45);
}

.generation-page-detail-row {
  margin-top: 4px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 10px;
  align-items: center;
}

.carousel-nav {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid rgba(255, 231, 198, 0.2);
  background: rgba(255, 247, 235, 0.05);
  color: var(--text);
}

.generation-pages {
  overflow: hidden;
  border-radius: 16px;
  border: 1px solid rgba(255, 231, 198, 0.12);
  background: rgba(255, 247, 235, 0.03);
}

.generation-page-detail {
  overflow: visible;
  align-self: stretch;
}

.generation-page-detail .generation-page {
  max-width: min(920px, 100%);
  margin: 0 auto;
}

.generation-page-detail .generation-spread .text-frame-inner {
  font-size: clamp(0.78rem, 2.35vw, 1.05rem);
  padding: 0.65rem 0.8rem;
}

.generation-page {
  border-radius: 0;
  border: 0;
  background: transparent;
  overflow: hidden;
}

.generation-spread {
  position: relative;
  width: 100%;
  overflow: hidden;
  aspect-ratio: 16 / 9;
}

.generation-spread .text-frame {
  position: absolute;
  z-index: 1;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  pointer-events: none;
}

.generation-spread .text-frame-inner {
  pointer-events: none;
  padding: 0.55rem 0.65rem;
  border-radius: 14px;
  backdrop-filter: blur(6px);
  color: #fff;
  font-family: var(--story-font-family, 'Cormorant Garamond', Georgia, serif);
  font-size: clamp(0.72rem, 2.1vw, 0.95rem);
  line-height: 1.35;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
  overflow-y: auto;
  max-height: 100%;
  box-sizing: border-box;
}

.generation-page .generation-spread img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  background: rgba(8, 18, 34, 0.62);
}

.generation-page-meta {
  padding: 10px;
  display: grid;
  gap: 6px;
}

.generation-page-meta strong {
  font-size: 0.95rem;
}

.generation-page-meta span {
  font-size: 0.82rem;
  color: var(--muted);
}

.generation-page--running .generation-page-meta span {
  color: #ffd991;
}

.generation-page--done .generation-page-meta span {
  color: #8df0d4;
}

.generation-page--error .generation-page-meta span {
  color: #ffb3aa;
}

.generation-page--cancelled .generation-page-meta span {
  color: rgba(210, 220, 236, 0.9);
}

.gen-zoom {
  position: fixed;
  inset: 0;
  z-index: 30;
  background: rgba(3, 7, 14, 0.86);
  display: grid;
  place-items: center;
}

.gen-zoom[hidden] {
  display: none !important;
}

.gen-zoom-body {
  width: min(96vw, 1500px);
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 12px;
}

.gen-zoom-spread {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
}

.gen-zoom img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transform: scale(var(--zoom-scale, 1));
  transform-origin: center;
  transition: transform 180ms ease;
}

.gen-zoom-text-frame {
  position: absolute;
  z-index: 1;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  pointer-events: none;
}

.gen-zoom-text-inner {
  pointer-events: none;
  padding: 0.7rem 0.9rem;
  border-radius: 16px;
  backdrop-filter: blur(6px);
  color: #fff;
  font-family: var(--story-font-family, 'Cormorant Garamond', Georgia, serif);
  font-size: clamp(0.95rem, 1.45vw, 1.32rem);
  line-height: 1.35;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
  overflow-y: auto;
  max-height: 100%;
  box-sizing: border-box;
}

.gen-zoom-btn,
.gen-zoom-close {
  border: 1px solid rgba(255, 231, 198, 0.26);
  background: rgba(255, 247, 235, 0.1);
  color: var(--text);
  width: 42px;
  height: 42px;
  border-radius: 50%;
}

.gen-zoom-close {
  position: absolute;
  top: 18px;
  right: 18px;
}

.gen-zoom-page-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 1px solid rgba(255, 231, 198, 0.28);
  background: rgba(7, 17, 31, 0.5);
  color: var(--text);
  font-size: 1.9rem;
  line-height: 1;
  display: grid;
  place-items: center;
}

.gen-zoom-page-nav--prev {
  left: 10px;
}

.gen-zoom-page-nav--next {
  right: 10px;
}

.gen-zoom-page-nav:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

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

.order-card,
.billing-card {
  min-height: 220px;
}

.order-card.muted {
  opacity: 0.8;
}

.order-meta-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
  color: rgba(246, 239, 228, 0.9);
  font-size: 0.9rem;
}

.order-progress {
  height: 10px;
  border-radius: 999px;
  background: rgba(255, 231, 198, 0.12);
  overflow: hidden;
  margin-bottom: 8px;
}

.order-progress span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #6fd5c5 0%, #f4c97a 100%);
}

.order-progress-copy {
  color: rgba(246, 239, 228, 0.9);
  font-size: 0.88rem;
  margin-bottom: 14px;
}

.order-previews {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 16px;
}

.order-preview {
  margin: 0;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(255, 231, 198, 0.15);
  background: rgba(3, 12, 26, 0.6);
}

.order-preview img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  display: block;
}

.order-preview figcaption {
  padding: 6px 8px;
  font-size: 0.8rem;
  color: rgba(246, 239, 228, 0.88);
}

.button.is-disabled,
.button[aria-disabled="true"] {
  opacity: 0.5;
  pointer-events: none;
}

.order-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.order-top span {
  display: block;
  margin-top: 4px;
  color: rgba(246, 239, 228, 0.9);
  font-size: 0.92rem;
}

.timeline {
  display: grid;
  gap: 10px;
  margin-bottom: 18px;
}

.timeline span {
  position: relative;
  padding-left: 22px;
  color: rgba(246, 239, 228, 0.94);
}

.timeline span::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 1px solid rgba(255, 231, 198, 0.3);
  background: rgba(255, 247, 235, 0.08);
}

.timeline .done::before {
  background: rgba(111, 213, 197, 0.72);
  border-color: rgba(111, 213, 197, 0.92);
}

.timeline .current::before {
  background: rgba(244, 201, 122, 0.76);
  border-color: rgba(244, 201, 122, 0.98);
  box-shadow: 0 0 14px rgba(244, 201, 122, 0.28);
}

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

.billing-card strong,
.billing-card b {
  display: block;
}

.billing-card span {
  display: block;
  margin: 12px 0 16px;
  color: var(--muted);
}

.billing-card b {
  margin-bottom: 14px;
  color: var(--gold-strong);
  font-size: 1.65rem;
}

.support-grid {
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.65fr);
}

.chat-window {
  display: grid;
  gap: 12px;
  margin: 20px 0;
}

.chat-bubble {
  max-width: 88%;
  padding: 14px 16px;
  border-radius: 20px;
  line-height: 1.6;
}

.chat-bubble.support {
  background: rgba(255, 247, 235, 0.08);
  border: 1px solid rgba(255, 231, 198, 0.14);
}

.chat-bubble.user {
  margin-left: auto;
  background: rgba(111, 213, 197, 0.12);
  border: 1px solid rgba(111, 213, 197, 0.18);
}

.chat-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  margin-top: 18px;
}

[data-reveal] {
  opacity: 0;
  transform: translateY(26px);
  transition:
    opacity 700ms ease,
    transform 700ms ease;
}

body.ready [data-reveal].revealed {
  opacity: 1;
  transform: translateY(0);
}

@keyframes pulseMoon {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.06);
  }
}

@keyframes bob {
  0%,
  100% {
    transform: translate3d(0, 0, 0);
  }
  50% {
    transform: translate3d(0, -10px, 0);
  }
}

@keyframes driftStars {
  from {
    transform: translate3d(0, 0, 0);
  }
  to {
    transform: translate3d(-30px, 12px, 0);
  }
}

@keyframes magicStarArc {
  0% {
    opacity: 0;
    transform: translate3d(var(--x-start, 0), var(--y-start, 0), 0) scale(0.55);
  }
  12% {
    opacity: 1;
  }
  50% {
    transform: translate3d(var(--x-mid, 0), var(--y-mid, 0), 0) scale(0.92);
  }
  82% {
    opacity: 0.45;
  }
  100% {
    opacity: 0;
    transform: translate3d(var(--x-end, 0), var(--y-end, 0), 0) scale(0.65);
  }
}

@keyframes floatBlob {
  0%,
  100% {
    transform: translate3d(0, 0, 0) scale(1);
  }
  50% {
    transform: translate3d(18px, -24px, 0) scale(1.06);
  }
}

@media (max-width: 1120px) {
  .hero,
  .future-section,
  .builder-grid,
  .cabinet-layout,
  .support-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

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

  .cabinet-sidebar {
    position: relative;
    top: 0;
  }

  .order-grid,
  .billing-grid,
  .story-grid,
  .process-grid,
  .account-preview,
  .trust-strip,
  .generation-layout {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

@media (max-width: 860px) {
  .site-shell,
  .cabinet-shell {
    width: min(calc(100% - 20px), var(--container));
    padding-top: 14px;
  }

  .topbar {
    top: 10px;
    border-radius: 30px;
    padding: 16px;
    flex-wrap: wrap;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .nav {
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: flex-start;
    padding-top: 8px;
  }

  .nav.nav-static {
    display: flex;
    width: auto;
    flex-direction: row;
    padding-top: 0;
  }

  .topbar.menu-open .nav {
    display: flex;
  }

  h1 {
    font-size: clamp(2.8rem, 12vw, 4.4rem);
  }

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

  .hero-metrics,
  .trust-strip,
  .story-grid,
  .process-grid,
  .account-preview,
  .order-grid,
  .billing-grid,
  .generation-layout,
  .generation-pages,
  .future-stage {
    grid-template-columns: 1fr;
  }

  .generation-variants {
    grid-template-columns: 1fr;
  }

  .generation-payment-hint-head {
    flex-direction: column;
    align-items: flex-start;
  }

  .generation-payment-summary {
    grid-template-columns: 1fr;
  }

  .generation-delivery-layout,
  .generation-delivery-subtypes,
  .generation-delivery-grid {
    grid-template-columns: 1fr;
  }

  .order-meta-row {
    flex-direction: column;
    gap: 4px;
  }

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

  .generation-carousel {
    grid-template-columns: 1fr;
  }

  .carousel-nav {
    justify-self: center;
  }

  .floating-card {
    position: relative;
    top: auto;
    left: auto;
    right: auto;
    bottom: auto;
    max-width: none;
    margin-top: 14px;
  }

  .stage-card-main {
    min-height: auto;
  }

  .stage-window {
    height: 320px;
  }

  .builder-shell {
    padding: 22px;
  }

  .footer,
  .cabinet-hero,
  .chat-form {
    grid-template-columns: 1fr;
    display: grid;
  }

  .footer-links,
  .hero-actions,
  .account-cta,
  .cabinet-pill-row {
    flex-wrap: wrap;
    justify-content: flex-start;
  }
}

@media (max-width: 560px) {
  .site-shell,
  .cabinet-shell {
    width: min(calc(100% - 16px), var(--container));
  }

  .topbar {
    gap: 14px;
  }

  .brand-copy small {
    display: none;
  }

  .hero-actions,
  .account-cta {
    flex-direction: column;
  }

  .button {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .magic-stars-layer {
    display: none;
  }
}
