:root {
  color-scheme: dark;
  --background: 240 10% 3.9%;
  --foreground: 0 0% 98%;
  --card: 240 10% 6.5%;
  --card-strong: 240 8% 9%;
  --muted: 240 5% 64%;
  --muted-soft: 240 4% 76%;
  --border: 240 4% 16%;
  --purple: #8b5cf6;
  --purple-strong: #7c3aed;
  --orange: #f97316;
  --orange-strong: #ea580c;
  --page-scale: 0.96;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background: hsl(var(--background));
  color: hsl(var(--foreground));
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  zoom: var(--page-scale);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 80% 8%, rgba(124, 58, 237, 0.12), transparent 32rem),
    radial-gradient(circle at 18% 18%, rgba(249, 115, 22, 0.08), transparent 28rem);
  z-index: -1;
}

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

button,
input,
textarea {
  font: inherit;
}

img {
  max-width: 100%;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid hsl(var(--border) / 0.7);
  background: hsl(var(--background) / 0.9);
  backdrop-filter: blur(16px);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 64px;
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  font-size: 20px;
  font-weight: 800;
}

.pricing-page .brand .xlike-logo-shell {
  --xlike-logo-size: 52px;
  border-radius: 13px;
}

.brand-icon {
  display: grid;
  place-items: center;
  width: 58px;
  height: 34px;
  flex: 0 0 auto;
  padding: 3px 5px;
  overflow: hidden;
  border-radius: 10px;
  background:
    radial-gradient(circle at 50% 50%, rgba(67, 240, 255, 0.16), transparent 72%),
    linear-gradient(135deg, rgba(10, 28, 36, 0.92), rgba(50, 24, 98, 0.72));
  color: #fff;
  box-shadow: 0 10px 28px rgba(34, 211, 238, 0.18);
}

.brand-icon svg {
  width: 24px;
  height: 24px;
  fill: currentColor;
}

.brand-icon img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  filter: drop-shadow(0 0 8px rgba(56, 232, 255, 0.4));
}

.nav-links,
.nav-actions,
.hero-actions {
  display: flex;
  align-items: center;
}

.nav-links {
  gap: 24px;
  margin-right: auto;
}

.nav-links a {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0 10px;
  border: 1px solid transparent;
  border-radius: 8px;
  color: var(--muted-soft);
  font-size: 18px;
  font-weight: 800;
  transition:
    color 180ms ease,
    border-color 180ms ease,
    box-shadow 180ms ease,
    transform 180ms ease,
    background 180ms ease;
}

.nav-links a:hover {
  color: #fff;
  border-color: rgba(196, 181, 253, 0.72);
  background: rgba(124, 58, 237, 0.1);
  box-shadow:
    0 0 0 1px rgba(196, 181, 253, 0.16),
    0 10px 26px rgba(124, 58, 237, 0.18);
  transform: translateY(-2px);
}

.nav-actions {
  gap: 10px;
}

.icon-button,
.login-button,
.creations-button,
.secondary-button,
.filter,
.style-card,
.generate-button {
  border: 0;
  cursor: pointer;
}

.icon-button,
.login-button,
.creations-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 40px;
  padding: 0 12px;
  border: 1px solid transparent;
  border-radius: 8px;
  color: hsl(var(--foreground));
  background: transparent;
}

.icon-button svg,
.login-button svg,
.creations-button svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
}

.creations-button {
  border-color: rgba(196, 181, 253, 0.32);
  background: rgba(124, 58, 237, 0.14);
  color: #fff;
  font-weight: 800;
}

.login-button {
  border-color: rgba(251, 113, 133, 0.42);
  background:
    linear-gradient(135deg, rgba(249, 115, 22, 0.24), rgba(168, 85, 247, 0.28)),
    rgba(17, 17, 20, 0.92);
  box-shadow: 0 0 22px rgba(249, 115, 22, 0.14), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.member-menu-wrap {
  position: relative;
}

.language-menu-wrap {
  position: relative;
  width: 154px;
}

.language-menu-wrap .icon-button {
  width: 100%;
  min-width: 0;
  justify-content: center;
  padding: 0 14px;
  font-size: 19px;
  border-color: rgba(56, 189, 248, 0.52);
  background:
    linear-gradient(135deg, rgba(14, 165, 233, 0.24), rgba(124, 58, 237, 0.28)),
    rgba(17, 17, 20, 0.92);
  box-shadow: 0 0 22px rgba(56, 189, 248, 0.16), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.language-menu-wrap .icon-button span {
  min-width: 0;
  white-space: nowrap;
}

.language-dropdown {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  z-index: 70;
  width: 100%;
  overflow: hidden;
  border: 1px solid rgba(196, 181, 253, 0.24);
  border-radius: 8px;
  background: rgba(9, 7, 13, 0.99);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.38), 0 0 28px rgba(139, 92, 246, 0.18);
  backdrop-filter: blur(18px);
}

.language-dropdown[hidden] {
  display: none;
}

.language-dropdown button {
  width: 100%;
  min-height: 44px;
  border: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  color: #f7f2ff;
  background: transparent;
  cursor: pointer;
  font: inherit;
  font-size: 18px;
  font-weight: 800;
  text-align: center;
  padding: 0 14px;
}

.language-dropdown button:last-child {
  border-bottom: 0;
}

.language-dropdown button:hover {
  color: #fff;
  background: rgba(139, 92, 246, 0.18);
}

.login-button.is-member {
  width: 42px;
  height: 42px;
  justify-content: center;
  padding: 0;
  border-color: transparent;
  border-radius: 999px;
  background: #5b2bbd;
  color: #fff;
  font-weight: 800;
  font-size: 18px;
}

.login-button.is-member svg {
  display: none;
}

.login-button.is-member [data-login-label] {
  line-height: 1;
}

.member-dropdown {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  z-index: 70;
  width: 224px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 6px;
  background: #1d1712;
  color: #f6f0e8;
  box-shadow:
    0 20px 48px rgba(0, 0, 0, 0.38),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.member-dropdown[hidden] {
  display: none;
}

.member-dropdown-code,
.member-dropdown-name,
.member-dropdown-points,
.member-dropdown-item {
  min-height: 42px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 16px;
  font-weight: 800;
  text-align: center;
}

.member-dropdown-points {
  color: #fff;
}

.member-dropdown-code {
  color: rgba(246, 240, 232, 0.82);
  font-size: 13px;
}

.member-dropdown-item {
  width: 100%;
  border-top: 0;
  border-right: 0;
  border-left: 0;
  color: #f6f0e8;
  background: transparent;
  cursor: pointer;
  font: inherit;
}

.member-dropdown-item:hover {
  background: rgba(255, 255, 255, 0.05);
}

.member-dropdown-item:last-child {
  border-bottom: 0;
}

.member-beta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 18px;
  padding: 0 6px;
  border-radius: 999px;
  color: #f3b21b;
  background: rgba(243, 178, 27, 0.12);
  font-size: 11px;
  line-height: 1;
}

main {
  position: relative;
  z-index: 1;
}

.hero {
  position: relative;
  overflow: hidden;
  padding: 31px 44px 23px;
  background: linear-gradient(180deg, hsl(var(--background)), rgba(59, 7, 100, 0.11));
}

.particle-field {
  pointer-events: none;
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

.particle-field span {
  position: absolute;
  left: var(--x);
  top: var(--y);
  width: var(--size, 3px);
  height: var(--size, 3px);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.54);
  animation: particle-twinkle var(--duration, 9s) ease-in-out infinite;
  will-change: transform, opacity;
}

.particle-field span:nth-child(1) { --x: 2%; --y: 14%; --size: 3px; animation-delay: -1s; }
.particle-field span:nth-child(2) { --x: 8%; --y: 24%; --size: 2.5px; --duration: 10s; }
.particle-field span:nth-child(3) { --x: 14%; --y: 34%; --size: 3px; animation-delay: -4s; }
.particle-field span:nth-child(4) { --x: 4%; --y: 45%; --size: 2.5px; --duration: 9s; animation-delay: -2s; }
.particle-field span:nth-child(5) { --x: 12%; --y: 56%; --size: 3px; --duration: 11s; animation-delay: -6s; }
.particle-field span:nth-child(6) { --x: 3%; --y: 68%; --size: 2.5px; animation-delay: -3s; }
.particle-field span:nth-child(7) { --x: 15%; --y: 78%; --size: 3px; --duration: 12s; }
.particle-field span:nth-child(8) { --x: 7%; --y: 88%; --size: 2.5px; animation-delay: -5s; }
.particle-field span:nth-child(9) { --x: 87%; --y: 15%; --size: 3px; --duration: 9s; animation-delay: -7s; }
.particle-field span:nth-child(10) { --x: 96%; --y: 24%; --size: 2.5px; --duration: 13s; }
.particle-field span:nth-child(11) { --x: 90%; --y: 36%; --size: 3px; animation-delay: -8s; }
.particle-field span:nth-child(12) { --x: 98%; --y: 48%; --size: 2.5px; --duration: 10s; animation-delay: -6s; }
.particle-field span:nth-child(13) { --x: 88%; --y: 58%; --size: 3px; --duration: 12s; animation-delay: -9s; }
.particle-field span:nth-child(14) { --x: 95%; --y: 70%; --size: 2.5px; --duration: 9s; animation-delay: -4s; }
.particle-field span:nth-child(15) { --x: 86%; --y: 82%; --size: 3px; --duration: 11s; animation-delay: -2s; }
.particle-field span:nth-child(16) { --x: 94%; --y: 90%; --size: 2.5px; --duration: 13s; animation-delay: -7s; }
.particle-field span:nth-child(17) { --x: 24%; --y: 16%; --size: 2px; --duration: 10s; animation-delay: -5s; }
.particle-field span:nth-child(18) { --x: 74%; --y: 20%; --size: 2px; --duration: 12s; animation-delay: -11s; }
.particle-field span:nth-child(19) { --x: 22%; --y: 82%; --size: 2px; --duration: 9s; animation-delay: -3s; }
.particle-field span:nth-child(20) { --x: 76%; --y: 84%; --size: 2px; --duration: 14s; animation-delay: -8s; }

@keyframes particle-twinkle {
  0%,
  100% { opacity: 0.42; }
  45% { opacity: 0.95; }
  70% { opacity: 0.62; }
}

.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(420px, 1fr);
  align-items: center;
  gap: 48px;
  max-width: 1400px;
  margin: 0 auto;
}

.eyebrow {
  margin: 0 0 8px;
  color: #c4b5fd;
  font-size: 20px;
  font-weight: 700;
}

.hero h1 {
  max-width: 720px;
  margin: 0;
  font-size: clamp(37px, 5.1vw, 63px);
  line-height: 0.96;
  letter-spacing: 0;
}

.hero-subtitle {
  max-width: 620px;
  margin: 18px 0 0;
  color: var(--muted-soft);
  font-size: 20px;
  line-height: 1.6;
}

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

.primary-button,
.secondary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 0 22px;
  border: 1px solid transparent;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 750;
}

.primary-button {
  background: var(--orange);
  color: #fff;
  box-shadow: 0 16px 34px rgba(249, 115, 22, 0.24);
}

.primary-button:hover {
  background: var(--orange-strong);
}

.primary-button svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
}

.secondary-button {
  border: 1px solid hsl(var(--border));
  background: hsl(var(--card));
  color: hsl(var(--foreground));
}

.hero-tools {
  width: min(940px, 100%);
  margin-top: 14px;
  padding: 0;
}

.hero-tool-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.hero-tool-card {
  display: grid;
  min-height: 104px;
  grid-template-columns: 72px minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  padding: 6px 10px 6px 6px;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(96, 165, 250, 0.34);
  border-radius: 9px;
  background:
    radial-gradient(circle at 16% 18%, rgba(96, 165, 250, 0.18), transparent 38%),
    linear-gradient(135deg, rgba(40, 34, 26, 0.92), rgba(14, 31, 59, 0.94));
  color: #f6f3ff;
  text-align: left;
  transition:
    border-color 180ms ease,
    box-shadow 180ms ease,
    transform 180ms ease,
    background 180ms ease;
}

.hero-tool-card:nth-child(2) {
  background:
    radial-gradient(circle at 18% 20%, rgba(59, 130, 246, 0.28), transparent 42%),
    linear-gradient(135deg, rgba(22, 35, 58, 0.95), rgba(10, 32, 70, 0.96));
}

.hero-tool-card:nth-child(3) {
  background:
    radial-gradient(circle at 18% 20%, rgba(20, 184, 166, 0.28), transparent 42%),
    linear-gradient(135deg, rgba(8, 47, 50, 0.96), rgba(8, 54, 68, 0.94));
}

.hero-tool-card:nth-child(4) {
  background:
    radial-gradient(circle at 18% 20%, rgba(59, 130, 246, 0.3), transparent 42%),
    linear-gradient(135deg, rgba(15, 52, 96, 0.96), rgba(5, 43, 92, 0.98));
}

.hero-tool-card img {
  width: 72px;
  height: 72px;
  display: block;
  border-radius: 12px;
  object-fit: cover;
  background: transparent;
  box-shadow: none;
}

.hero-tool-card span,
.hero-tool-card strong,
.hero-tool-card small,
.hero-tool-card em {
  display: block;
}

.hero-tool-card strong {
  max-width: 100%;
  font-size: 14px;
  line-height: 1.28;
  white-space: normal;
  overflow-wrap: anywhere;
}

.hero-tool-card small {
  margin-top: 5px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 10px;
  line-height: 1.35;
}

.hero-tool-card em {
  position: absolute;
  right: 12px;
  bottom: 11px;
  margin-top: 0;
  color: #fff;
  font-size: 18px;
  font-style: normal;
  line-height: 1;
}

.hero-tool-card:hover {
  border-color: rgba(147, 197, 253, 0.76);
  box-shadow:
    0 0 0 1px rgba(147, 197, 253, 0.12),
    0 14px 30px rgba(59, 130, 246, 0.2);
  transform: translateY(-2px);
}

.icon-button,
.login-button,
.creations-button,
.primary-button,
.secondary-button,
.filter,
.style-category-tab,
.style-card,
.upload-zone,
.generate-button {
  transition:
    color 180ms ease,
    border-color 180ms ease,
    box-shadow 180ms ease,
    transform 180ms ease,
    background 180ms ease;
}

.icon-button:hover,
.login-button:hover,
.creations-button:hover,
.secondary-button:hover,
.filter:hover,
.style-category-tab:hover,
.style-card:hover,
.upload-zone:hover {
  color: #fff;
  border-color: rgba(196, 181, 253, 0.72);
  background: rgba(124, 58, 237, 0.1);
  box-shadow:
    0 0 0 1px rgba(196, 181, 253, 0.16),
    0 10px 26px rgba(124, 58, 237, 0.18),
    inset 0 0 18px rgba(196, 181, 253, 0.05);
  transform: translateY(-2px);
}

.primary-button:hover,
.generate-button:hover {
  color: #fff;
  border-color: rgba(253, 186, 116, 0.86);
  background: linear-gradient(135deg, var(--orange), var(--purple-strong));
  box-shadow:
    0 0 0 1px rgba(253, 186, 116, 0.18),
    0 14px 34px rgba(249, 115, 22, 0.24),
    0 0 32px rgba(124, 58, 237, 0.22);
  transform: translateY(-2px);
}

.icon-button:focus-visible,
.login-button:focus-visible,
.creations-button:focus-visible,
.primary-button:focus-visible,
.secondary-button:focus-visible,
.filter:focus-visible,
.style-category-tab:focus-visible,
.style-card:focus-visible,
.upload-zone:focus-visible,
.generate-button:focus-visible,
.nav-links a:focus-visible {
  outline: none;
  border-color: rgba(196, 181, 253, 0.82);
  box-shadow:
    0 0 0 1px rgba(196, 181, 253, 0.2),
    0 0 0 4px rgba(124, 58, 237, 0.18);
}

.microcopy {
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.hero-carousel {
  position: relative;
  min-height: 440px;
  padding: 10px;
  border: 1px solid hsl(var(--border));
  border-radius: 18px;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.18), rgba(124, 58, 237, 0.04));
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.34);
}

.hero-carousel-track {
  display: block;
  display: flex;
  gap: 12px;
  width: max-content;
  animation: hero-carousel-scroll 25.5s linear infinite;
}

.hero-carousel:hover .hero-carousel-track {
  animation-play-state: paused;
}

.hero-carousel-track img {
  width: min(360px, 52vw);
  height: 420px;
  flex: 0 0 auto;
  display: block;
  border-radius: 12px;
  object-fit: contain;
  background: #050507;
}

@keyframes hero-carousel-scroll {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(calc(-50% - 6px));
  }
}

.section {
  max-width: 1440px;
  margin: 0 auto;
  padding: 38px 24px;
}

.section-heading {
  max-width: 960px;
  margin: 0 auto 20px;
  text-align: center;
}

.section-heading h2 {
  margin: 0 0 10px;
  font-size: clamp(30px, 4vw, 46px);
  line-height: 1.08;
}

.generator-section .section-heading h2 {
  font-size: clamp(33px, 4.4vw, 51px);
  color: #b7ff1f;
  text-shadow:
    0 0 10px rgba(183, 255, 31, 0.45),
    0 0 24px rgba(132, 255, 0, 0.24);
}

.generator-section .section-heading {
  transform: translateY(-19px);
}

#inspiration .section-heading {
  margin-bottom: 10px;
}

#inspiration {
  padding-top: 0;
}

#inspiration .section-heading h2 {
  white-space: nowrap;
}

.steps-section .section-heading {
  margin-bottom: 10px;
}

.steps-section {
  padding-top: 0;
}

.steps-section .section-heading h2 {
  white-space: nowrap;
}

.use-cases .section-heading {
  margin-bottom: 10px;
}

.use-cases .section-heading h2 {
  white-space: nowrap;
}

.section-heading p {
  margin: 0;
  color: var(--muted);
  font-size: 18px;
}

.generator-layout {
  display: grid;
  grid-template-columns: 0.95fr 1.25fr 1fr;
  align-items: stretch;
  gap: 25px;
  margin-top: -22px;
}

.generator-layout > .panel {
  border-color: rgba(167, 139, 250, 0.28);
  background:
    linear-gradient(180deg, rgba(28, 28, 36, 0.98), rgba(17, 17, 24, 0.98));
  box-shadow:
    0 18px 48px rgba(0, 0, 0, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.generator-layout > .panel h3 {
  color: #fbfbfe;
  letter-spacing: 0.01em;
}

.generator-layout > .panel p {
  color: #d2d7e2;
  line-height: 1.45;
}

.generator-layout.is-empty-state {
  align-items: stretch;
}

.generator-layout.is-empty-state .panel {
  height: 100%;
}

.panel,
.feature-grid article,
.steps-grid article,
.testimonial-grid article,
.faq-list details,
.use-case-grid article,
.inspiration-grid article {
  border: 1px solid hsl(var(--border));
  border-radius: 12px;
  background: hsl(var(--card));
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.18);
}

.panel {
  padding: 14px 27px 6px;
}

.panel h3 {
  margin: 0 0 7px;
  font-size: 24px;
}

.panel p {
  margin: 0 0 20px;
  color: var(--muted);
  font-size: 16px;
}

.result-panel p {
  white-space: nowrap;
}

.result-panel {
  display: flex;
  flex-direction: column;
}

.input-panel {
  display: flex;
  flex-direction: column;
  position: relative;
}

.filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}

.filter {
  min-height: 32px;
  padding: 0 11px;
  border: 1px solid hsl(var(--border));
  border-radius: 7px;
  background: transparent;
  color: hsl(var(--foreground));
  font-size: 14px;
  font-weight: 700;
}

.filter.active {
  border-color: transparent;
  background: var(--purple-strong);
}

.style-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(100px, 1fr));
  grid-auto-rows: max-content;
  align-content: start;
  align-items: start;
  gap: 11px;
  height: 596px;
  overflow: auto;
  padding: 1.6px;
}

.style-category-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  margin: 10px 0 12px;
  padding: 5px;
  border: 1px solid rgba(139, 92, 246, 0.28);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.045);
}

.style-category-tab {
  min-width: 0;
  min-height: 38px;
  border: 1px solid transparent;
  border-radius: 7px;
  background: transparent;
  color: rgba(255, 255, 255, 0.72);
  font-size: 13px;
  font-weight: 900;
  line-height: 1.1;
  cursor: pointer;
}

.style-category-tab.active {
  border-color: rgba(253, 186, 116, 0.65);
  background: linear-gradient(135deg, rgba(249, 115, 22, 0.28), rgba(124, 58, 237, 0.34));
  color: #fff;
  box-shadow:
    inset 0 0 18px rgba(255, 255, 255, 0.06),
    0 10px 24px rgba(124, 58, 237, 0.14);
}

.style-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-self: start;
  min-width: 0;
  padding: 0;
  border: 2px solid transparent;
  border-radius: 13px;
  overflow: visible;
  background: transparent;
  color: hsl(var(--foreground));
}

.style-thumb {
  position: relative;
  display: block;
}

.style-card.selected {
  border-color: var(--purple);
  background: rgba(124, 58, 237, 0.12);
}

.style-card:hover,
.style-card:focus-visible {
  border-color: rgba(196, 181, 253, 0.9);
  background: rgba(124, 58, 237, 0.18);
  box-shadow:
    0 0 0 1px rgba(168, 85, 247, 0.2),
    0 14px 28px rgba(124, 58, 237, 0.2),
    0 0 26px rgba(34, 211, 238, 0.16);
  transform: translateY(-1px);
}

.style-card[hidden] {
  display: none;
}

.style-card:hover img,
.style-card:focus-visible img {
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.18),
    0 0 24px rgba(168, 85, 247, 0.28);
}

.style-grid.free-text-only .style-card:not([data-style="None"]) {
  cursor: not-allowed;
}

.style-card img,
.style-thumb img {
  display: block;
  width: 100%;
  aspect-ratio: 1;
  border-radius: 11px;
  object-fit: cover;
  filter: brightness(1.14) contrast(1.08) saturate(1.04);
}

.style-card > span:not(.style-thumb) {
  display: grid;
  place-items: center;
  min-height: 38px;
  padding: 4px 3px;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.12;
  text-align: center;
  color: #f4f6fb;
  text-shadow: 0 1px 1px rgba(0, 0, 0, 0.45);
}

.style-card em {
  position: absolute;
  top: 0;
  right: 0;
  padding: 1px 5px;
  border-radius: 999px;
  background: #22c55e;
  color: #fff;
  font-size: 10px;
  font-style: normal;
  font-weight: 800;
  line-height: 1.25;
}

.style-card em.hot {
  background: #ef4444;
}

.source-tabs {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  margin: 0 0 14px;
  padding: 4px;
  border: 1px solid hsl(var(--border));
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
}

.source-tab {
  min-height: 38px;
  border: 1px solid transparent;
  border-radius: 9px;
  background: transparent;
  color: #d9ddef;
  font-size: 14px;
  font-weight: 800;
}

.source-tab.active,
.source-tab:hover {
  border-color: rgba(196, 181, 253, 0.6);
  background: rgba(124, 58, 237, 0.24);
  color: #fff;
  box-shadow: 0 10px 24px rgba(124, 58, 237, 0.16);
}

.source-panel {
  display: none;
}

.source-panel.active {
  display: block;
}

.upload-zone {
  position: relative;
  display: grid;
  place-items: center;
  height: 255px;
  min-height: 255px;
  padding: 27px;
  box-sizing: border-box;
  border: 2px dashed rgba(167, 139, 250, 0.34);
  border-radius: 12px;
  text-align: center;
  cursor: pointer;
  background: rgba(14, 14, 20, 0.88);
  transition: background 160ms ease, border-color 160ms ease;
}

.upload-zone.has-preview {
  display: grid;
  place-items: center;
  padding: 0;
  overflow: hidden;
}

.upload-preview {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 0;
  border-radius: 10px;
  object-fit: contain;
  background: #050507;
}

.upload-preview[hidden] {
  display: none;
}

.upload-clear {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 3;
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 999px;
  background: rgba(8, 8, 12, 0.78);
  color: #fff;
  font-size: 22px;
  font-weight: 800;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.38), 0 0 18px rgba(168, 85, 247, 0.3);
}

.upload-clear[hidden] {
  display: none;
}

.upload-clear:hover {
  border-color: rgba(196, 181, 253, 0.74);
  background: rgba(35, 20, 54, 0.92);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.46), 0 0 22px rgba(168, 85, 247, 0.48);
}

.upload-zone.has-preview svg,
.upload-zone.has-preview strong,
.upload-zone.has-preview small {
  display: none;
}

.upload-zone:hover {
  border-color: var(--purple);
  background: rgba(124, 58, 237, 0.08);
}

.upload-zone svg {
  width: 58px;
  height: 58px;
  margin-bottom: 14px;
  fill: none;
  stroke: #c4b5fd;
  stroke-width: 2;
}

.upload-zone strong,
.result-box strong {
  display: block;
  font-size: 19px;
  color: #f7f8fc;
}

.upload-zone strong span,
.text-label span {
  color: #d7dcec;
  font-weight: 500;
}

.upload-zone small {
  display: block;
  margin-top: 6px;
  color: #cbd2e3;
  font-size: 14px;
}

.creation-picker {
  min-height: 255px;
  padding: 18px;
  border: 2px dashed hsl(var(--border));
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.018);
}

.creation-picker > strong {
  display: block;
  font-size: 18px;
}

.creation-picker > span {
  display: block;
  margin-top: 5px;
  color: #cfd5e3;
  font-size: 14px;
}

.selected-creation {
  display: grid;
  grid-template-columns: 84px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  margin-top: 14px;
  padding: 10px;
  border: 1px solid rgba(139, 92, 246, 0.56);
  border-radius: 12px;
  background: rgba(124, 58, 237, 0.12);
  box-shadow: inset 0 0 20px rgba(196, 181, 253, 0.04);
}

.selected-creation[hidden] {
  display: none;
}

.selected-creation img {
  display: block;
  width: 84px;
  height: 84px;
  border-radius: 9px;
  object-fit: cover;
}

.selected-creation strong {
  display: block;
  font-size: 16px;
}

.selected-creation span {
  display: block;
  margin-top: 4px;
  color: #dce1ee;
  font-size: 13px;
}

.creation-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-top: 14px;
}

.creation-card {
  min-width: 0;
  padding: 0;
  overflow: hidden;
  border: 2px solid transparent;
  border-radius: 10px;
  background: #09090b;
  color: #fff;
  text-align: center;
  transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.creation-card:hover,
.creation-card.selected {
  border-color: var(--purple);
  box-shadow: 0 10px 24px rgba(124, 58, 237, 0.18);
  transform: translateY(-2px);
}

.creation-card img {
  display: block;
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
}

.creation-card span {
  display: grid;
  place-items: center;
  min-height: 28px;
  padding: 2px;
  font-size: 10px;
  font-weight: 800;
  line-height: 1.12;
}

.text-label {
  display: block;
  margin: 20px 0 9px;
  font-size: 19px;
  font-weight: 750;
  transform: translateY(-11px);
  color: #f5f6fb;
}

.prompt-shell {
  --prompt-angle: 0deg;
  position: relative;
  margin-top: -8px;
  padding: 1px;
  border-radius: 14px;
  background:
    conic-gradient(
      from var(--prompt-angle),
      #0d0d10 0deg,
      #0d0d10 13deg,
      #ef4444 23deg,
      #f59e0b 78deg,
      #22c55e 130deg,
      #06b6d4 184deg,
      #7c3aed 238deg,
      #0d0d10 286deg,
      #0d0d10 360deg
    );
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.04),
    0 18px 42px rgba(124, 58, 237, 0.08),
    0 0 32px rgba(6, 182, 212, 0.08);
  animation: prompt-border-orbit 4.1s linear infinite;
}

.prompt-shell::before {
  content: "";
  position: absolute;
  inset: -10px;
  z-index: -1;
  border-radius: 20px;
  background:
    conic-gradient(
      from var(--prompt-angle),
      rgba(13, 13, 16, 0) 0deg,
      rgba(13, 13, 16, 0) 13deg,
      rgba(239, 68, 68, 0.22) 23deg,
      rgba(245, 158, 11, 0.16) 78deg,
      rgba(34, 197, 94, 0.14) 130deg,
      rgba(6, 182, 212, 0.2) 184deg,
      rgba(124, 58, 237, 0.22) 238deg,
      rgba(13, 13, 16, 0) 286deg,
      rgba(13, 13, 16, 0) 360deg
    );
  filter: blur(18px);
  opacity: 0.58;
  pointer-events: none;
}

textarea {
  display: block;
  width: 100%;
  min-height: 189px;
  resize: none;
  padding: 14px 16px;
  font-size: 16px;
  border: 0;
  border-radius: 13px;
  outline: none;
  background: #0d0d10;
  color: hsl(var(--foreground));
  box-shadow: inset 0 0 24px rgba(0, 0, 0, 0.34);
}

textarea::placeholder {
  color: #8f96a9;
}

textarea:focus {
  border-color: rgba(255, 255, 255, 0.18);
  box-shadow:
    inset 0 0 24px rgba(0, 0, 0, 0.34),
    0 0 0 2px rgba(196, 181, 253, 0.08);
}

.generation-settings {
  position: relative;
  width: 100%;
  margin: 8px 0 6px;
  z-index: 15;
}

.generation-settings summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: center;
  min-height: 34px;
  padding: 0 28px 0 10px;
  border: 1px solid rgba(253, 186, 116, 0.48);
  border-radius: 999px;
  background: rgba(35, 20, 15, 0.98);
  color: #fff;
  font-size: 13px;
  font-weight: 900;
  cursor: pointer;
  list-style: none;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.22);
}

.generation-settings summary::-webkit-details-marker {
  display: none;
}

.generation-settings summary::after {
  content: "⌃";
  position: absolute;
  right: 13px;
  top: 7px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 15px;
}

.generation-settings summary span {
  text-align: center;
}

.settings-popover {
  position: absolute;
  right: 0;
  width: min(430px, calc(100vw - 48px));
  bottom: calc(100% + 8px);
  display: grid;
  gap: 10px;
  padding: 14px;
  border: 1px solid rgba(253, 186, 116, 0.22);
  border-radius: 14px;
  background: rgba(28, 18, 13, 0.98);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.42);
}

.settings-group > span {
  display: block;
  margin-bottom: 7px;
  color: rgba(255, 255, 255, 0.68);
  font-size: 12px;
  font-weight: 850;
}

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

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

.setting-choice {
  min-height: 31px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.035);
  color: rgba(255, 255, 255, 0.78);
  font-size: 12px;
  font-weight: 900;
  cursor: pointer;
}

.setting-choice.active {
  border-color: rgba(253, 186, 116, 0.64);
  background: rgba(249, 115, 22, 0.18);
  color: #fff;
}

.setting-choice.locked {
  opacity: 0.58;
}

.setting-choice.locked::before {
  content: "🔒 ";
  font-size: 11px;
}

.plan-warning {
  position: fixed;
  top: 86px;
  right: 28px;
  z-index: 80;
  max-width: min(420px, calc(100vw - 40px));
  margin: 0;
  padding: 10px 14px;
  border: 1px solid rgba(253, 186, 116, 0.34);
  border-radius: 12px;
  background: rgba(24, 16, 12, 0.94);
  color: #fdba74;
  font-size: 13px;
  font-weight: 850;
  line-height: 1.35;
  text-align: left;
  pointer-events: none;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.36), 0 0 24px rgba(249, 115, 22, 0.15);
  opacity: 0;
  transform: translateY(-8px);
  transition: opacity 160ms ease, transform 160ms ease;
}

.plan-warning:not(:empty) {
  opacity: 1;
  transform: translateY(0);
}

@property --prompt-angle {
  syntax: "<angle>";
  inherits: false;
  initial-value: 0deg;
}

@keyframes prompt-border-orbit {
  to { --prompt-angle: 360deg; }
}

.generate-button {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 54px;
  margin-top: 0;
  margin-bottom: 12px;
  transform: translateY(-4px);
  border-radius: 11px;
  background: var(--purple-strong);
  color: #fff;
  font-size: 18px;
  font-weight: 800;
}

.generation-cost {
  position: absolute;
  right: 18px;
  top: 50%;
  transform: translateY(-50%);
  color: rgba(255, 255, 255, 0.84);
  font-size: 13px;
  font-weight: 900;
  white-space: nowrap;
}

.result-box {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  flex: 1 1 auto;
  min-height: 0;
  margin-bottom: 0;
  border: 1px dashed rgba(167, 139, 250, 0.28);
  border-radius: 12px;
  overflow: hidden;
  text-align: center;
  background: rgba(13, 13, 18, 0.96);
  transform: translateY(0);
}

.result-image-slot {
  width: min(100%, 270px);
  aspect-ratio: 9 / 16;
  display: grid;
  place-items: center;
  margin: 0 auto 14px;
  overflow: hidden;
  background: transparent;
}

.result-empty-message {
  max-width: 230px;
  color: rgba(255, 255, 255, 0.62);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.5;
}

.result-empty-message[hidden],
.result-action[hidden] {
  display: none !important;
}

.result-image-slot img,
.result-box > img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  background: transparent;
}

.result-action {
  margin-top: auto;
  padding: 12px 20px 12px;
  transform: none;
}

.result-work-actions {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-bottom: 10px;
  transform: none;
}

.factory-action {
  transform: none;
}

.result-tool-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  min-width: 142px;
  padding: 0 14px;
  border: 1px solid rgba(196, 181, 253, 0.38);
  border-radius: 9px;
  background: rgba(124, 58, 237, 0.16);
  color: #fff;
  font-size: 14px;
  font-weight: 850;
  cursor: pointer;
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    box-shadow 180ms ease,
    background 180ms ease;
}

.result-tool-button:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.55);
  background: rgba(124, 58, 237, 0.28);
  box-shadow: 0 12px 28px rgba(124, 58, 237, 0.22);
}

.result-tool-button:disabled {
  opacity: 0.46;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.result-tool-button:disabled:hover {
  border-color: rgba(196, 181, 253, 0.38);
  background: rgba(76, 29, 149, 0.2);
}

.result-tool-button:active,
.result-tool-button.is-pressed {
  border-color: rgba(255, 255, 255, 0.68);
  background: linear-gradient(135deg, var(--orange), var(--purple-strong));
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.14),
    0 14px 30px rgba(124, 58, 237, 0.26);
}

.make-figure-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  min-width: 190px;
  margin-top: 11px;
  padding: 0 24px;
  border: 1px solid rgba(253, 186, 116, 0.5);
  border-radius: 10px;
  color: #fff;
  background: linear-gradient(135deg, var(--orange), var(--purple-strong));
  font-size: 16px;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 14px 34px rgba(124, 58, 237, 0.22);
  transition:
    border-color 180ms ease,
    box-shadow 180ms ease,
    transform 180ms ease;
}

.make-figure-button:hover {
  border-color: rgba(255, 255, 255, 0.55);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.12),
    0 18px 38px rgba(124, 58, 237, 0.28);
  transform: translateY(-2px);
}

.result-box span {
  display: block;
  margin: 0 0 0;
  color: var(--muted);
  font-size: 13px;
}

.inspiration-grid,
.showcase-grid,
.feature-grid,
.use-case-grid,
.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.showcase-grid {
  gap: 16px 24px;
}

.showcase-card {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 4px;
  padding: 1.6px;
  overflow: hidden;
  border: 0;
  border-radius: 8px;
  background: conic-gradient(
    from var(--showcase-border-angle),
    #08080d 0deg,
    #08080d 28deg,
    rgba(124, 58, 237, 0.95),
    rgba(34, 211, 238, 0.95),
    rgba(163, 230, 53, 0.9),
    rgba(249, 115, 22, 0.95),
    rgba(236, 72, 153, 0.95),
    rgba(124, 58, 237, 0.95)
  );
  box-shadow: 0 10px 26px rgba(18, 15, 28, 0.08);
  transform: translateZ(0);
  transition: transform 220ms ease, box-shadow 220ms ease;
  animation: showcase-border-flow 5.5s linear infinite;
}

.showcase-card::after {
  content: "";
  position: absolute;
  top: 1.6px;
  bottom: 1.6px;
  left: 50%;
  z-index: 2;
  width: 4px;
  background: #f1f0f6;
  transform: translateX(-50%);
  pointer-events: none;
}

.showcase-card > img:not(.showcase-arrow) {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  aspect-ratio: 3 / 4;
  border-radius: 5px;
  object-fit: cover;
  transition: transform 260ms ease, filter 260ms ease;
}

.showcase-card:hover {
  z-index: 3;
  box-shadow: 0 18px 38px rgba(124, 58, 237, 0.18), 0 8px 24px rgba(15, 23, 42, 0.14);
  transform: translateY(-4px) scale(1.025);
}

.showcase-card:hover > img:not(.showcase-arrow) {
  filter: saturate(1.05) contrast(1.03);
  transform: scale(1.025);
}

.showcase-arrow {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 4;
  width: 18px;
  height: 18px;
  filter: drop-shadow(0 8px 18px rgba(124, 58, 237, 0.42));
  transform: translate(-50%, -50%);
}

.showcase-card span {
  display: none;
}

@property --showcase-border-angle {
  syntax: "<angle>";
  inherits: false;
  initial-value: 0deg;
}

@keyframes showcase-border-flow {
  0% {
    --showcase-border-angle: 0deg;
  }

  100% {
    --showcase-border-angle: 360deg;
  }
}

.inspiration-grid article,
.use-case-grid article {
  overflow: hidden;
}

.inspiration-grid img,
.use-case-grid img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.inspiration-grid h3,
.use-case-grid h3 {
  margin: 0;
  padding: 16px 18px 4px;
}

.use-case-grid p {
  margin: 0;
  padding: 0 18px 18px;
  color: var(--muted);
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.steps-grid article,
.feature-grid article,
.testimonial-grid article {
  padding: 24px;
}

.steps-grid span,
.feature-grid span {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin-bottom: 16px;
  border-radius: 999px;
  background: rgba(124, 58, 237, 0.16);
  color: #c4b5fd;
  font-weight: 900;
}

.steps-grid h3,
.feature-grid h3 {
  margin: 0 0 8px;
}

.steps-grid p,
.feature-grid p,
.testimonial-grid p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

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

.testimonial-grid strong {
  display: block;
  margin-top: 18px;
}

.faq-list {
  display: grid;
  gap: 12px;
  max-width: 1440px;
  margin: 0 auto;
}

.faq-list details {
  padding: 20px 22px;
}

.faq-list summary {
  cursor: pointer;
  font-size: 18px;
  font-weight: 800;
}

.faq-list p {
  margin: 12px 0 0;
  color: var(--muted);
  line-height: 1.65;
}

.cta-section {
  max-width: 1440px;
  margin: 19px auto 42px;
  padding: 37px 24px;
  border-radius: 18px;
  text-align: center;
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.24), rgba(249, 115, 22, 0.13));
}

.cta-section h2 {
  margin: 0 0 10px;
  font-size: clamp(30px, 5vw, 52px);
}

.cta-section p {
  margin: 0 auto 24px;
  color: var(--muted-soft);
}

.site-footer {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 36px;
  max-width: 1440px;
  margin: 0 auto;
  padding: 15px 24px 30px;
  border-top: 1px solid hsl(var(--border));
}

.footer-brand {
  margin-bottom: 10px;
}

.footer-panel {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-width: 0;
}

.footer-panel:nth-of-type(2) {
  align-items: center;
}

.footer-panel:nth-of-type(3) {
  align-items: flex-end;
}

.footer-panel h3 {
  margin: 0 0 10px;
  font-size: 18px;
}

.site-footer p,
.site-footer small {
  color: var(--muted);
}

.site-footer p {
  width: 100%;
  max-width: 390px;
  margin: 0;
  line-height: 1.6;
}

.footer-panel:nth-of-type(2) p,
.footer-panel:nth-of-type(2) h3 {
  text-align: center;
}

.footer-panel:nth-of-type(3) p,
.footer-panel:nth-of-type(3) h3 {
  text-align: right;
}

.footer-actions {
  display: flex;
  flex-wrap: nowrap;
  justify-content: center;
  align-items: center;
  gap: 28px;
  margin-top: 18px;
  max-width: none;
}

.social-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  color: #f8f8fb;
  transition:
    color 180ms ease,
    filter 180ms ease,
    transform 180ms ease;
}

.social-icon svg {
  width: 38px;
  height: 38px;
  fill: currentColor;
}

.social-icon:hover {
  color: #c4b5fd;
  filter: drop-shadow(0 0 10px rgba(196, 181, 253, 0.55));
  transform: translateY(-2px);
}

.footer-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  min-width: 108px;
  padding: 0 12px;
  border: 1px solid rgba(196, 181, 253, 0.28);
  border-radius: 8px;
  color: #fff;
  background: rgba(124, 58, 237, 0.12);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition:
    border-color 180ms ease,
    box-shadow 180ms ease,
    transform 180ms ease,
    background 180ms ease;
}

.footer-button:hover {
  border-color: rgba(196, 181, 253, 0.72);
  background: rgba(124, 58, 237, 0.2);
  box-shadow:
    0 0 0 1px rgba(196, 181, 253, 0.12),
    0 12px 28px rgba(124, 58, 237, 0.18);
  transform: translateY(-2px);
}

.footer-button-primary {
  margin-top: 16px;
  min-width: 128px;
  border-color: rgba(253, 186, 116, 0.5);
  background: linear-gradient(135deg, var(--orange), var(--purple-strong));
}

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

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

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

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

.upgrade-modal[hidden] {
  display: none;
}

.upgrade-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.68);
  backdrop-filter: blur(10px);
}

.upgrade-dialog {
  position: relative;
  z-index: 1;
  width: min(440px, 100%);
  padding: 24px;
  border: 1px solid rgba(253, 186, 116, 0.2);
  border-radius: 14px;
  background: #1c130f;
  box-shadow:
    0 24px 70px rgba(0, 0, 0, 0.5),
    0 0 42px rgba(249, 115, 22, 0.12);
}

.upgrade-dialog h2 {
  margin: 0 0 8px;
  color: #fff;
  font-size: 22px;
}

.upgrade-dialog p {
  margin: 0 0 18px;
  color: rgba(255, 255, 255, 0.68);
  line-height: 1.55;
}

.upgrade-benefits {
  margin: 0 0 22px;
  padding: 15px;
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.055);
}

.upgrade-benefits strong {
  display: block;
  margin-bottom: 8px;
  color: #fff;
}

.upgrade-benefits ul {
  margin: 0;
  padding-left: 18px;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.7;
}

.upgrade-actions {
  display: flex;
  justify-content: space-between;
  gap: 14px;
}

.upgrade-later,
.upgrade-confirm {
  min-height: 40px;
  padding: 0 18px;
  border-radius: 8px;
  font-weight: 850;
}

.upgrade-later {
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.035);
  color: rgba(255, 255, 255, 0.8);
}

.upgrade-confirm {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(253, 186, 116, 0.45);
  background: linear-gradient(135deg, var(--orange), var(--purple-strong));
  color: #fff;
  text-decoration: none;
}

.login-modal[hidden] {
  display: none;
}

.login-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.68);
  backdrop-filter: blur(10px);
}

.creations-modal[hidden] {
  display: none;
}

.creations-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.68);
  backdrop-filter: blur(10px);
}

.creations-dialog {
  position: relative;
  z-index: 1;
  width: min(980px, calc(100vw - 32px));
  min-height: min(560px, calc(100vh - 48px));
  max-height: min(86vh, 760px);
  overflow: hidden;
  padding: 28px;
  border: 1px solid rgba(196, 181, 253, 0.28);
  border-radius: 16px;
  background: #101014;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.04),
    0 24px 70px rgba(0, 0, 0, 0.5),
    0 0 42px rgba(124, 58, 237, 0.16);
}

.creations-dialog::-webkit-scrollbar {
  width: 10px;
}

.creations-dialog::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 999px;
}

.creations-dialog::-webkit-scrollbar-thumb {
  border: 2px solid #101014;
  border-radius: 999px;
  background: rgba(196, 181, 253, 0.65);
}

.creations-dialog h2 {
  margin: 0 0 8px;
  font-size: 28px;
}

.creations-dialog p {
  margin: 0 0 20px;
  color: var(--muted);
  line-height: 1.5;
}

.creations-modal-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 14px;
  max-height: 420px;
  overflow-y: auto;
  padding-right: 8px;
}

.creations-modal-grid::-webkit-scrollbar {
  width: 10px;
}

.creations-modal-grid::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 999px;
}

.creations-modal-grid::-webkit-scrollbar-thumb {
  border: 2px solid #101014;
  border-radius: 999px;
  background: rgba(196, 181, 253, 0.65);
}

.creation-preview-card {
  overflow: hidden;
  border: 1px solid hsl(var(--border));
  border-radius: 12px;
  background: #0a0a0d;
  cursor: pointer;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.creation-preview-card:hover,
.creation-preview-card:focus-visible {
  border-color: rgba(196, 181, 253, 0.55);
  box-shadow: 0 0 22px rgba(124, 58, 237, 0.24);
  transform: translateY(-2px);
  outline: none;
}

.creation-preview-card img {
  display: block;
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
}

.creation-preview-card div {
  padding: 12px;
}

.creation-preview-card strong,
.creation-preview-card span {
  display: block;
}

.creation-preview-card span {
  margin-top: 4px;
  color: var(--muted);
  font-size: 13px;
}

.creation-preview-card-select {
  width: 100%;
  padding: 0;
  border: 1px solid hsl(var(--border));
  text-align: left;
}

.creation-preview-card-static {
  cursor: default;
}

.contact-modal[hidden] {
  display: none;
}

.contact-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.68);
  backdrop-filter: blur(10px);
}

.contact-dialog,
.login-dialog {
  position: relative;
  z-index: 1;
  width: min(520px, 100%);
  padding: 28px;
  border: 1px solid rgba(196, 181, 253, 0.28);
  border-radius: 16px;
  background: #101014;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.04),
    0 24px 70px rgba(0, 0, 0, 0.5),
    0 0 42px rgba(124, 58, 237, 0.16);
}

.login-dialog {
  padding: 22px 22px 14px;
}

.factory-dialog {
  text-align: left;
}

.contact-dialog h2,
.login-dialog h2 {
  margin: 0 0 8px;
  font-size: 28px;
}

.factory-dialog h2,
.factory-dialog > p {
  text-align: center;
}

.factory-order-feedback {
  margin: 0 0 14px;
  padding: 12px 14px;
  border: 1px solid rgba(196, 181, 253, 0.22);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
  color: rgba(255, 255, 255, 0.86);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.45;
  white-space: pre-line;
}

.factory-order-feedback[data-tone="success"] {
  border-color: rgba(74, 222, 128, 0.38);
  background: rgba(16, 185, 129, 0.12);
  color: #d1fae5;
}

.factory-order-feedback[data-tone="error"] {
  border-color: rgba(248, 113, 113, 0.38);
  background: rgba(239, 68, 68, 0.1);
  color: #fecaca;
}

.contact-dialog p,
.login-dialog p {
  margin: 0 0 20px;
  color: var(--muted);
  line-height: 1.5;
}

.contact-dialog label,
.login-dialog label {
  display: block;
  margin-top: 14px;
}

.contact-dialog label span,
.login-dialog label span {
  display: block;
  margin-bottom: 7px;
  font-weight: 800;
}

.factory-dialog label span,
.factory-dialog .factory-source-copy,
.factory-dialog .factory-size-summary,
.factory-dialog .factory-file-name {
  text-align: left;
}

.contact-dialog input,
.contact-dialog textarea,
.login-dialog input {
  width: 100%;
  border: 1px solid hsl(var(--border));
  border-radius: 10px;
  background: #0a0a0d;
  color: hsl(var(--foreground));
  outline: none;
}

.factory-dialog input,
.factory-dialog textarea {
  text-align: left;
}

.contact-dialog input,
.login-dialog input {
  min-height: 44px;
  padding: 0 13px;
}

.contact-dialog textarea {
  min-height: 128px;
  padding: 13px;
  resize: vertical;
}

.factory-file-picker {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  min-height: 52px;
  padding: 8px 12px;
  border: 1px solid hsl(var(--border));
  border-radius: 10px;
  background: #0a0a0d;
  direction: ltr;
  text-align: left;
}

.factory-file-trigger {
  min-height: 34px;
  padding: 0 14px;
  border: 1px solid rgba(196, 181, 253, 0.36);
  border-radius: 8px;
  color: #fff;
  background: rgba(124, 58, 237, 0.14);
  font-weight: 700;
  cursor: pointer;
}

.factory-file-name {
  min-width: 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: 14px;
  line-height: 1.35;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.factory-size-summary {
  display: grid;
  gap: 6px;
  margin-top: 14px;
  padding: 12px 14px;
  border: 1px solid rgba(196, 181, 253, 0.24);
  border-radius: 10px;
  background: rgba(124, 58, 237, 0.1);
  text-align: left;
}

.factory-size-summary span {
  color: rgba(255, 255, 255, 0.68);
  font-size: 13px;
  font-weight: 800;
}

.factory-size-summary strong {
  color: #fff;
  font-size: 14px;
  line-height: 1.35;
}

.factory-source-preview {
  display: grid;
  grid-template-columns: 84px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  margin-top: 14px;
  padding: 12px 14px;
  border: 1px solid rgba(196, 181, 253, 0.24);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
  text-align: left;
}

.factory-source-preview.factory-source-preview--no-image {
  grid-template-columns: minmax(0, 1fr);
}

.factory-source-preview img {
  width: 84px;
  height: 108px;
  object-fit: contain;
  border-radius: 10px;
  background: #f6f4ef;
}

.factory-source-copy {
  display: grid;
  gap: 6px;
}

.factory-source-copy span {
  color: rgba(255, 255, 255, 0.68);
  font-size: 13px;
  font-weight: 800;
}

.factory-source-copy strong {
  color: #fff;
  font-size: 14px;
  line-height: 1.45;
}

.contact-dialog input:focus,
.contact-dialog textarea:focus,
.login-dialog input:focus {
  border-color: rgba(196, 181, 253, 0.72);
  box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.16);
}

.auth-region-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin: 12px 0 14px;
}

.auth-region-tab {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  min-height: 70px;
  padding: 10px 12px;
  border: 1px solid rgba(196, 181, 253, 0.2);
  border-radius: 8px;
  color: rgba(255, 255, 255, 0.78);
  background: rgba(255, 255, 255, 0.055);
  text-align: left;
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.auth-region-tab:hover,
.auth-region-tab.active {
  border-color: rgba(253, 186, 116, 0.58);
  background: linear-gradient(135deg, rgba(249, 115, 22, 0.16), rgba(124, 58, 237, 0.2));
  color: #fff;
}

.auth-region-tab:hover {
  transform: translateY(-1px);
}

.auth-region-tab strong,
.auth-region-tab em {
  display: block;
}

.auth-region-tab strong {
  font-size: 16px;
  line-height: 1.1;
}

.auth-region-tab em {
  margin-top: 5px;
  color: rgba(255, 255, 255, 0.6);
  font-size: 12px;
  font-style: normal;
  font-weight: 800;
  line-height: 1.15;
}

.auth-region-tab.active em {
  color: rgba(255, 255, 255, 0.82);
}

.auth-region-icon {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.9);
}

.auth-region-icon--wechat {
  background: #07c160;
}

.auth-region-icon img,
.auth-region-icon svg {
  width: 21px;
  height: 21px;
  object-fit: contain;
}

.wechat-mark {
  display: block;
  color: #fff;
  fill: currentColor;
}

.auth-region-panel[hidden] {
  display: none;
}

.auth-region-panel {
  margin-bottom: 16px;
}

.auth-region-panel--china {
  display: grid;
  gap: 12px;
}

.wechat-login-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  min-height: 54px;
  border: 0;
  border-radius: 999px;
  color: #fff;
  background: #07c160;
  font-size: 17px;
  font-weight: 900;
  cursor: pointer;
  box-shadow: 0 16px 32px rgba(7, 193, 96, 0.2);
}

.wechat-login-button.is-disabled {
  opacity: 0.72;
  filter: grayscale(0.2);
}

.auth-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  margin: 12px 0 14px;
  padding: 3px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
}

.auth-tab {
  min-height: 36px;
  border: 0;
  border-radius: 999px;
  color: #111;
  background: transparent;
  font-weight: 800;
  cursor: pointer;
}

.auth-tab.active {
  color: #fff;
  background: linear-gradient(135deg, #5b3df5, #7c3aed);
}

.auth-panel {
  display: grid;
  gap: 10px;
}

.auth-panel[hidden] {
  display: none;
}

.auth-code-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 120px;
  gap: 12px;
}

.login-dialog .auth-panel input {
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.86);
  color: #111;
}

.auth-send-code {
  min-height: 44px;
  border: 0;
  border-radius: 999px;
  color: #111;
  background: #ffd000;
  font-weight: 800;
  cursor: pointer;
}

.auth-send-code:disabled {
  cursor: wait;
  opacity: 0.8;
}

.auth-code-status {
  min-height: 16px;
  margin: -2px 4px 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: 12px;
  font-weight: 700;
}

.auth-code-status:empty {
  display: none;
}

.auth-code-status[data-status="success"] {
  color: #4ade80;
}

.auth-code-status[data-status="error"] {
  color: #fb7185;
}

.contact-submit {
  width: 100%;
  min-height: 48px;
  margin-top: 18px;
  border: 1px solid rgba(253, 186, 116, 0.5);
  border-radius: 10px;
  color: #fff;
  background: linear-gradient(135deg, var(--orange), var(--purple-strong));
  font-weight: 800;
  cursor: pointer;
}

.login-dialog .contact-submit {
  border: 0;
  border-radius: 999px;
  color: #111;
  background: #ffd000;
}

.contact-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 34px;
  height: 34px;
  border: 1px solid hsl(var(--border));
  border-radius: 999px;
  color: #fff;
  background: rgba(255, 255, 255, 0.06);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}

.login-secondary {
  width: 100%;
  min-height: 42px;
  margin-top: 10px;
  border: 1px solid rgba(196, 181, 253, 0.28);
  border-radius: 10px;
  color: #fff;
  background: rgba(124, 58, 237, 0.12);
  font-weight: 800;
  cursor: pointer;
}

.auth-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 16px;
  color: rgba(255, 255, 255, 0.68);
  font-size: 13px;
  font-weight: 800;
}

.auth-divider::before,
.auth-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: rgba(196, 181, 253, 0.18);
}

.auth-divider[hidden] {
  display: none;
}

.google-login-wrap {
  display: flex;
  justify-content: center;
  margin-top: 12px;
  min-height: 40px;
}

.google-login-wrap[hidden] {
  display: none;
}

.google-login-fallback {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  min-height: 42px;
  margin-top: 10px;
  border: 0;
  border-radius: 999px;
  color: #111;
  background: rgba(255, 255, 255, 0.86);
  font-size: 16px;
  font-weight: 800;
  cursor: pointer;
}

.google-login-fallback[hidden] {
  display: none;
}

.auth-brand-icon {
  width: 18px;
  height: 18px;
  object-fit: contain;
  flex: 0 0 auto;
}

.social-login-row {
  display: flex;
  justify-content: center;
  gap: 14px;
  margin-top: 12px;
}

.social-login-row button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 999px;
  color: #111;
  background: rgba(255, 255, 255, 0.9);
  font-size: 18px;
  font-weight: 900;
  cursor: pointer;
}

.social-login-row button img,
.social-login-row button svg {
  width: 20px;
  height: 20px;
  object-fit: contain;
  pointer-events: none;
}

.social-login-row button:first-child {
  color: #fff;
  background: #050505;
}

.social-login-row button.is-disabled {
  opacity: 0.58;
  cursor: not-allowed;
  filter: grayscale(0.35);
}

.social-login-row button[data-social-login="Discord"] {
  color: #fff;
  background: #5865f2;
}

.social-login-row button[data-social-login="Apple"] {
  color: #111;
  background: #f4f4f5;
}

.social-login-row button[data-social-login="Microsoft"] {
  color: #111;
  background: #e5e7eb;
}

.social-login-row button[data-social-login="Facebook"] {
  color: #fff;
  background: #1877f2;
  font-family: Arial, sans-serif;
}

.auth-policy-note {
  margin: 0;
  padding-top: 8px;
  transform: none;
  color: rgba(255, 255, 255, 0.7);
  font-size: 12px;
  line-height: 1.45;
  text-align: center;
}

.auth-policy-note a {
  color: #bda7ff;
  text-decoration: none;
}

.google-login-note {
  margin: 10px 0 0;
  padding: 10px 12px;
  border: 1px solid rgba(196, 181, 253, 0.18);
  border-radius: 10px;
  color: rgba(255, 255, 255, 0.76);
  background: rgba(124, 58, 237, 0.1);
  font-size: 13px;
  line-height: 1.45;
}

.google-login-note[hidden] {
  display: none;
}

.site-footer small {
  display: block;
  font-size: 13px;
}

.footer-legal {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 12px;
  margin-top: 18px;
  font-size: 13px;
  white-space: nowrap;
}

.footer-legal a {
  color: rgba(255, 255, 255, 0.78);
  font-weight: 800;
}

.footer-legal a:hover {
  color: #c4b5fd;
}

.settings-page {
  min-height: 100vh;
  background:
    radial-gradient(circle at 18% 0%, rgba(249, 115, 22, 0.08), transparent 24rem),
    radial-gradient(circle at 86% 18%, rgba(124, 58, 237, 0.13), transparent 30rem),
    hsl(var(--background));
}

.pricing-page {
  min-height: 100vh;
  background:
    radial-gradient(circle at 12% 18%, rgba(124, 58, 237, 0.16), transparent 34%),
    radial-gradient(circle at 88% 12%, rgba(249, 115, 22, 0.11), transparent 30%),
    linear-gradient(180deg, #08070b 0%, #0c0714 48%, #050507 100%);
  color: var(--foreground);
}

.community-page {
  min-height: 100vh;
  background:
    radial-gradient(circle at 12% 18%, rgba(124, 58, 237, 0.16), transparent 34%),
    radial-gradient(circle at 88% 12%, rgba(249, 115, 22, 0.11), transparent 30%),
    linear-gradient(180deg, #08070b 0%, #0c0714 48%, #050507 100%);
  color: var(--foreground);
}

.make-figure-page {
  zoom: 0.98;
  min-height: 100vh;
  background:
    radial-gradient(circle at 12% 18%, rgba(124, 58, 237, 0.16), transparent 34%),
    radial-gradient(circle at 88% 12%, rgba(249, 115, 22, 0.11), transparent 30%),
    linear-gradient(180deg, #08070b 0%, #0c0714 48%, #050507 100%);
  color: var(--foreground);
}

.pricing-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0 18px;
  border: 1px solid rgba(196, 181, 253, 0.4);
  border-radius: 8px;
  background: rgba(124, 58, 237, 0.18);
  color: #fff;
  font-weight: 900;
}

.pricing-shell {
  max-width: 1320px;
  margin: 0 auto;
  padding: 36px clamp(18px, 4vw, 42px) 84px;
  zoom: 0.9;
}

.pricing-hero {
  max-width: 1120px;
  margin: 0 auto 42px;
  text-align: center;
}

.pricing-kicker {
  display: inline-flex;
  margin-bottom: 14px;
  color: #c4b5fd;
  font-size: 18px;
  font-weight: 900;
}

.pricing-hero h1 {
  margin: 0;
  font-size: clamp(40px, 7vw, 76px);
  line-height: 0.96;
}

.pricing-hero p {
  max-width: 1120px;
  margin: 18px auto 0;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.7;
  white-space: nowrap;
}

.pricing-toggle {
  position: relative;
  display: inline-flex;
  gap: 27px;
  margin-top: 28px;
  padding: 6px;
  border: 1px solid rgba(196, 181, 253, 0.25);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  overflow: visible;
}

.pricing-toggle button {
  position: relative;
  border: 0;
  border-radius: 999px;
  padding: 11px 22px;
  background: transparent;
  color: rgba(255, 255, 255, 0.72);
  font: inherit;
  font-size: 130%;
  font-weight: 900;
}

.pricing-toggle button.active {
  background: linear-gradient(135deg, var(--orange), var(--purple-strong));
  color: #fff;
  box-shadow: 0 16px 38px rgba(124, 58, 237, 0.28);
}

.pricing-toggle .save-badge {
  position: absolute;
  top: -26px;
  right: -51px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 70px;
  min-height: 26px;
  padding: 0 10px;
  border-radius: 999px;
  background: linear-gradient(135deg, #22c55e, #14b8a6);
  color: #fff;
  font-size: 14px;
  font-weight: 900;
  line-height: 1;
  white-space: nowrap;
  box-shadow: 0 8px 20px rgba(20, 184, 166, 0.25);
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
  margin-top: -19px;
}

.price-card {
  position: relative;
  min-height: 510px;
  padding: 30px;
  border: 1px solid rgba(196, 181, 253, 0.22);
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.025)),
    rgba(12, 12, 16, 0.94);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.34);
}

.price-card.featured {
  border-color: rgba(196, 181, 253, 0.62);
  background:
    radial-gradient(circle at 50% 0%, rgba(124, 58, 237, 0.3), transparent 34%),
    linear-gradient(180deg, rgba(124, 58, 237, 0.18), rgba(255, 255, 255, 0.035)),
    rgba(12, 12, 16, 0.96);
}

.price-card.trial-card {
  border-color: rgba(45, 212, 191, 0.5);
  background:
    radial-gradient(circle at 80% 10%, rgba(34, 211, 238, 0.2), transparent 32%),
    radial-gradient(circle at 15% 0%, rgba(163, 230, 53, 0.14), transparent 34%),
    linear-gradient(180deg, rgba(20, 184, 166, 0.12), rgba(255, 255, 255, 0.028)),
    rgba(11, 13, 18, 0.96);
}

.trial-badge {
  position: absolute;
  top: 18px;
  right: 18px;
  padding: 6px 12px;
  border: 1px solid rgba(134, 239, 172, 0.36);
  border-radius: 999px;
  background: rgba(34, 197, 94, 0.15);
  color: #bbf7d0;
  font-size: 12px;
  font-weight: 900;
}

.popular-badge {
  position: absolute;
  top: 18px;
  right: 18px;
  padding: 6px 12px;
  border-radius: 999px;
  background: linear-gradient(135deg, #22c55e, #14b8a6);
  color: #fff;
  font-size: 12px;
  font-weight: 900;
}

.plan-label {
  margin: 0 0 12px;
  color: #c4b5fd;
  font-size: 140%;
  font-weight: 900;
}

.price-card h2 {
  margin: 0;
  font-size: 28px;
}

.price-line {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  margin: 24px 0 12px;
}

.price-line strong {
  font-size: 52px;
  line-height: 0.9;
}

.price-line span,
.price-card p {
  color: var(--muted);
}

.price-card > p:not(.plan-label) {
  min-height: 58px;
  line-height: 1.55;
}

.plan-button {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 48px;
  margin: 22px 0 24px;
  border: 1px solid rgba(196, 181, 253, 0.42);
  border-radius: 10px;
  background: rgba(124, 58, 237, 0.16);
  color: #fff;
  font-weight: 900;
}

.plan-button.primary {
  border-color: rgba(253, 186, 116, 0.5);
  background: linear-gradient(135deg, var(--orange), var(--purple-strong));
}

.plan-button.trial-button {
  border-color: rgba(45, 212, 191, 0.52);
  background: linear-gradient(135deg, #22c55e, #14b8a6 48%, #7c3aed);
  box-shadow: 0 16px 34px rgba(20, 184, 166, 0.22);
}

.price-card ul {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
  color: rgba(255, 255, 255, 0.86);
}

.price-card li {
  position: relative;
  padding-left: 24px;
  color: #fff;
  line-height: 1.45;
}

.price-card li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: #86efac;
  font-weight: 900;
}

.price-card li.is-limited::before {
  content: "×";
  color: #fb7185;
}

.price-card li.is-limited {
  color: rgba(255, 255, 255, 0.6);
}

.pricing-faq {
  max-width: 980px;
  margin: 36px auto 0;
}

.pricing-faq .section-heading {
  margin-bottom: 24px;
}

.pricing-faq details {
  border: 1px solid rgba(196, 181, 253, 0.18);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.045);
  overflow: hidden;
}

.pricing-faq details + details {
  margin-top: 12px;
}

.pricing-faq summary {
  cursor: pointer;
  padding: 20px 22px;
  font-size: 18px;
  font-weight: 900;
}

.pricing-faq details p {
  margin: 0;
  padding: 0 22px 22px;
  color: var(--muted);
  line-height: 1.7;
}

.community-shell {
  max-width: 1360px;
  margin: 0 auto;
  padding: 54px clamp(18px, 4vw, 42px) 88px;
}

.make-figure-shell {
  max-width: 1463px;
  margin: 0 auto;
  padding: 10px 44px 86px;
}

.make-figure-hero {
  position: relative;
  z-index: 2;
  max-width: 920px;
  margin: 0 auto 30px;
  text-align: center;
  pointer-events: none;
}

.make-figure-kicker {
  margin: 0 0 10px;
  transform: translateY(-11px);
  color: #c4b5fd;
  font-size: 18px;
  font-weight: 900;
}

.make-figure-hero h1 {
  margin: 0;
  font-size: clamp(42px, 6vw, 76px);
  line-height: 0.96;
}

.make-figure-title {
  position: relative;
  z-index: 3;
  display: inline-block;
  padding: 0 0.05em 0.14em;
  letter-spacing: -0.04em;
  cursor: default;
  pointer-events: none;
  color: transparent;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 1) 0%, rgba(255, 250, 233, 0.92) 16%, rgba(255, 255, 255, 0.12) 22%, transparent 24%),
    linear-gradient(120deg, #f4ff6a 0%, #bfff3c 14%, #44ff88 28%, #17f7b1 42%, #28ffd9 56%, #7dff5a 72%, #d9ff52 86%, #f4ff8e 100%);
  background-size: 100% 100%, 280% 280%;
  background-position: 0 0, 0% 50%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow:
    0 1px 0 rgba(110, 255, 220, 0.96),
    0 2px 0 rgba(46, 232, 191, 0.92),
    0 3px 0 rgba(18, 186, 151, 0.86),
    0 4px 0 rgba(8, 138, 113, 0.8),
    0 10px 22px rgba(0, 0, 0, 0.32),
    0 0 14px rgba(191, 255, 60, 0.16),
    0 0 28px rgba(73, 255, 231, 0.22);
  filter:
    drop-shadow(0 0 14px rgba(255, 255, 255, 0.18))
    drop-shadow(0 10px 24px rgba(120, 255, 66, 0.32))
    drop-shadow(0 22px 44px rgba(23, 247, 177, 0.24));
  transform: perspective(900px) rotateX(10deg);
  animation: make-figure-title-flow 5.4s linear infinite;
}

@keyframes make-figure-title-flow {
  0%,
  100% {
    background-position: 0 0, 0% 50%;
    filter:
      drop-shadow(0 0 14px rgba(255, 255, 255, 0.18))
      drop-shadow(0 10px 24px rgba(120, 255, 66, 0.32))
      drop-shadow(0 22px 44px rgba(23, 247, 177, 0.24));
  }

  50% {
    background-position: 0 0, 100% 50%;
    filter:
      drop-shadow(0 0 16px rgba(255, 255, 255, 0.2))
      drop-shadow(0 12px 28px rgba(191, 255, 60, 0.34))
      drop-shadow(0 24px 48px rgba(40, 255, 217, 0.26));
  }
}

.make-figure-hero p {
  max-width: 860px;
  margin: 16px auto 0;
  color: rgba(255, 255, 255, 0.74);
  font-size: 20px;
  line-height: 1.5;
}

.make-workflow {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: -19px;
  margin-bottom: 22px;
}

.workflow-card,
.view-panel {
  border: 1px solid rgba(196, 181, 253, 0.2);
  border-radius: 16px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.02)),
    rgba(12, 12, 16, 0.92);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.3);
}

.workflow-card {
  padding: 10px 22px;
}

.workflow-card span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(124, 58, 237, 0.3);
  color: #fff;
  font-weight: 900;
}

.workflow-card h2 {
  margin: 18px 0 8px;
  font-size: 21px;
}

.workflow-card p {
  margin: 0;
  color: rgba(255, 255, 255, 0.72);
  line-height: 1.55;
}

.production-layout {
  --production-panel-height: 704px;
  display: grid;
  grid-template-columns: minmax(228px, 258px) minmax(0, 1fr);
  gap: 26px;
  align-items: stretch;
}

.view-panel {
  display: flex;
  flex-direction: column;
  padding: 15px;
}

.make-figure-page .view-panel > .section-heading {
  margin: 0 auto 12px;
}

.section-heading p {
  margin: 0 0 6px;
  color: #c4b5fd;
  font-weight: 900;
}

.make-figure-page .view-panel .section-heading h2 {
  margin: 0 0 15px;
  font-size: 26px;
}

.view-toggle {
  display: inline-flex;
  gap: 8px;
  margin: 0;
  padding: 5px;
  border: 1px solid rgba(196, 181, 253, 0.24);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.045);
}

.view-toggle button {
  min-width: 82px;
  min-height: 34px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: rgba(255, 255, 255, 0.72);
  font: inherit;
  font-weight: 900;
  cursor: pointer;
}

.view-toggle button.active {
  background: linear-gradient(135deg, var(--orange), var(--purple-strong));
  color: #fff;
  box-shadow: 0 12px 26px rgba(124, 58, 237, 0.24);
}

.source-figure-card {
  display: grid;
  grid-template-columns: 78px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  margin: 0 0 10px;
  padding: 8px;
  border: 1px solid rgba(196, 181, 253, 0.24);
  border-radius: 14px;
  background: rgba(0, 0, 0, 0.22);
}

.production-layout > .view-panel:first-child .source-figure-card {
  grid-template-columns: minmax(0, 1fr);
  gap: 10px;
  margin-top: 0;
  padding: 10px;
  justify-items: center;
  text-align: center;
}

.production-layout > .view-panel:first-child {
  align-self: start;
  min-height: var(--production-panel-height);
  height: var(--production-panel-height);
  max-height: var(--production-panel-height);
  padding: 8px 12px 8px;
  overflow: hidden;
}

.production-layout > .view-panel:first-child > .section-heading {
  width: 100%;
  margin: 0 0 8px;
  text-align: center;
}

.production-layout > .view-panel:first-child .section-heading p {
  margin-bottom: 4px;
}

.production-layout > .view-panel:first-child .section-heading h2 {
  margin: 0;
  font-size: 22px;
}

.source-figure-card .view-toggle {
  justify-self: end;
  align-self: center;
}

.production-layout > .view-panel:first-child .source-figure-card .view-toggle {
  justify-self: center;
}

.production-layout > .view-panel:nth-of-type(2) {
  --step2-panel-height: var(--production-panel-height);
  min-height: var(--step2-panel-height);
  height: var(--step2-panel-height);
  max-height: var(--step2-panel-height);
  padding: 8px 14px 0;
  overflow: hidden;
}

.production-layout > .view-panel:nth-of-type(2) > .section-heading {
  margin: -4px auto 0;
}

.production-layout > .view-panel:nth-of-type(2) .section-heading p {
  margin-bottom: 2px;
  line-height: 1;
}

.production-layout > .view-panel:nth-of-type(2) .section-heading h2 {
  margin: 0;
  font-size: 24px;
  line-height: 1;
}

.source-figure-card .view-toggle button {
  min-width: 76px;
}

.source-figure-card[hidden] {
  display: none;
}

.source-figure-frame {
  display: grid;
  place-items: center;
  width: 78px;
  height: 104px;
  overflow: hidden;
  border: 1px dashed rgba(196, 181, 253, 0.32);
  border-radius: 12px;
  background: #f6f4ef;
}

.source-figure-frame img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.source-figure-frame span {
  max-width: 96px;
  margin: 0;
  color: rgba(255, 255, 255, 0.52);
  font-size: 12px;
  line-height: 1.35;
  text-align: center;
}

.source-figure-card strong {
  display: block;
  color: #fff;
  font-weight: 900;
}

.source-figure-card span {
  display: block;
  max-width: 180px;
  margin-top: 6px;
  color: rgba(255, 255, 255, 0.68);
  font-size: 12px;
  line-height: 1.5;
  text-wrap: balance;
}

.production-layout > .view-panel:first-child .source-figure-card .view-toggle {
  margin-top: 2px;
}

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

.reference-grid[data-view-mode="1"] {
  grid-template-columns: minmax(0, 1fr);
  justify-content: stretch;
}

.reference-grid figure {
  position: relative;
  overflow: hidden;
  margin: 0;
  border: 1px solid rgba(196, 181, 253, 0.2);
  border-radius: 12px;
  background: #050507;
}

.reference-grid .optional-view:nth-of-type(5) {
  grid-column: 2;
}

.reference-grid .optional-view:nth-of-type(6) {
  grid-column: 3;
}

.reference-grid .optional-view.is-placeholder {
  visibility: hidden;
}

.reference-grid img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}

.reference-grid img[hidden],
.reference-grid figure.has-reference-image .reference-placeholder {
  display: none;
}

.reference-placeholder {
  display: grid;
  place-items: center;
  align-content: center;
  gap: 7px;
  width: 100%;
  aspect-ratio: 4 / 5;
  padding: 10px;
  color: rgba(255, 255, 255, 0.58);
  text-align: center;
  background:
    radial-gradient(circle at 50% 34%, rgba(255, 255, 255, 0.16), transparent 42%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02));
}

.reference-placeholder strong {
  color: rgba(255, 255, 255, 0.7);
  font-size: 14px;
  line-height: 1.1;
}

.reference-placeholder small {
  max-width: 108px;
  color: rgba(255, 255, 255, 0.42);
  font-size: 11px;
  line-height: 1.2;
}

.reference-figure-icon {
  position: relative;
  width: 42px;
  height: 65px;
  margin-top: -4px;
  filter: drop-shadow(0 8px 14px rgba(255, 255, 255, 0.12));
}

.reference-figure-icon::before,
.reference-figure-icon::after {
  content: "";
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(145deg, #f1f1f1, #9da1a6);
  box-shadow: inset -6px -8px 16px rgba(0, 0, 0, 0.12);
}

.reference-figure-icon::before {
  top: 0;
  width: 31px;
  height: 31px;
  border-radius: 50%;
}

.reference-figure-icon::after {
  bottom: 0;
  width: 38px;
  height: 40px;
  border-radius: 15px 15px 10px 10px;
}

.reference-figure-icon.side {
  transform: scaleX(0.72);
}

.reference-figure-icon.angle-left {
  transform: rotate(-18deg) scaleX(0.8);
}

.reference-figure-icon.angle-right {
  transform: rotate(18deg) scaleX(0.8);
}

.reference-figure-icon.back::before,
.reference-figure-icon.back::after {
  background: linear-gradient(145deg, #e5e7eb, #858b92);
}

.reference-figure-icon.top {
  height: 42px;
  transform: rotate(90deg) scale(0.82);
}

.reference-figure-icon.detail::before {
  width: 28px;
  height: 28px;
}

.reference-figure-icon.detail::after {
  width: 22px;
  height: 24px;
}

.reference-grid figcaption {
  display: none;
}

.reference-actions {
  display: grid;
  justify-items: center;
  gap: 8px;
  margin-top: auto;
  padding-top: 15px;
}

.reference-generate-button {
  position: relative;
  justify-content: center;
  width: min(360px, 100%);
  padding-right: 86px;
  padding-left: 24px;
}

.reference-generate-button [data-reference-cost] {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: rgba(255, 255, 255, 0.86);
  font-size: 13px;
  white-space: nowrap;
  text-align: right;
}

.reference-actions p {
  max-width: 520px;
  margin: 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: 14px;
  line-height: 1.55;
  text-align: center;
}

@media (min-width: 1121px) {
  .reference-grid {
    gap: 3px;
  }

  .reference-grid[data-view-mode="1"] {
    grid-template-columns: minmax(0, 1fr);
  }

  .reference-grid img,
  .reference-placeholder {
    aspect-ratio: 4 / 5.58;
  }
}

.model-preview {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 8px;
  min-height: 0;
}

.model-stage {
  position: relative;
  display: grid;
  place-items: center;
  transform: translateY(1px);
  --grid-plane-offset-x: 0px;
  --grid-plane-offset-y: 0px;
  --grid-panel-offset-x: 0px;
  --grid-panel-offset-y: 0px;
  --grid-yaw: -10deg;
  --grid-tilt: 77deg;
  min-height: 604px;
  overflow: hidden;
  border: 0;
  border-radius: 0;
  background: linear-gradient(180deg, #2b2d31 0%, #191b20 42%, #0b0c10 100%);
}

.step2-panel {
  position: relative;
  height: var(--step2-panel-height, 772px);
  min-height: var(--step2-panel-height, 772px);
  max-height: var(--step2-panel-height, 772px);
  overflow: hidden;
}

.step2-panel::before {
  content: "";
  display: none;
  position: absolute;
  left: -4%;
  right: -4%;
  top: 58px;
  bottom: 82px;
  z-index: 0;
  pointer-events: none;
  background:
    linear-gradient(rgba(255, 255, 255, 0.32) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.28) 1px, transparent 1px);
  background-size: 34px 34px;
  opacity: 0.58;
  mask-image: linear-gradient(
    to bottom,
    transparent,
    rgba(0, 0, 0, 0.42) 12%,
    rgba(0, 0, 0, 0.9) 42%,
    rgba(0, 0, 0, 0.72) 78%,
    transparent
  );
}

.step2-panel > .section-heading,
.step2-panel .model-preview,
.step2-panel .model-preview-note,
.step2-panel .preview-action-row {
  position: relative;
  z-index: 1;
}

.step2-panel .model-preview {
  flex: 0 0 542px;
  height: 542px;
  margin-top: 10px;
}

.step2-panel .model-stage {
  flex: 0 0 521px;
  min-height: 521px;
  height: 521px;
  max-height: 521px;
}

.step2-panel .model-stage:not(.has-preview) {
  overflow: visible;
  background: transparent;
}

.step2-panel .model-stage:not(.has-preview)::before {
  display: none;
}

.step2-panel .model-stage:not(.has-preview) .model-preview-axis-dock {
  display: block;
}

.model-stage.is-grid-draggable {
  cursor: grab;
}

.model-stage.is-grid-dragging {
  cursor: grabbing;
}

.model-stage::before,
.model-stage::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.model-stage::before {
  left: -12%;
  right: -12%;
  top: 42%;
  bottom: -8%;
  z-index: 0;
  background:
    linear-gradient(rgba(255, 255, 255, 0.28) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.24) 1px, transparent 1px);
  background-size: 28px 28px;
  background-position:
    var(--grid-plane-offset-x) var(--grid-plane-offset-y),
    var(--grid-plane-offset-x) var(--grid-plane-offset-y);
  transform: translate3d(0, 0, 0) perspective(880px) rotateX(var(--grid-tilt)) rotateZ(var(--grid-yaw));
  transform-origin: center bottom;
  opacity: 0.76;
  transition: transform 140ms ease, background-position 140ms ease;
  mask-image: linear-gradient(to top, rgba(0, 0, 0, 0.98), rgba(0, 0, 0, 0.72) 54%, transparent 100%);
}

.model-stage::after {
  display: none;
  z-index: 0;
  background:
    linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 32px 32px;
  background-position:
    var(--grid-panel-offset-x) var(--grid-panel-offset-y),
    var(--grid-panel-offset-x) var(--grid-panel-offset-y);
  opacity: 0.28;
  transition: background-position 140ms ease;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.92), rgba(0, 0, 0, 0.82) 58%, rgba(0, 0, 0, 0.18) 100%);
}

.model-stage-ui-chrome {
  position: absolute;
  inset: 0;
  z-index: 4;
  pointer-events: none;
}

.model-stage-ui-chrome::before,
.model-stage-ui-chrome::after {
  content: "";
  position: absolute;
  pointer-events: none;
  opacity: 0;
  transition:
    opacity 160ms ease,
    transform 140ms ease,
    background-position 140ms ease;
}

.model-stage:not(.has-preview) .model-stage-ui-chrome::before {
  display: none;
  inset: 0;
  border-radius: 0;
  background:
    linear-gradient(rgba(255, 255, 255, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.06) 1px, transparent 1px),
    radial-gradient(circle at 50% 20%, rgba(139, 92, 246, 0.12), transparent 34%);
  background-size: 34px 34px, 34px 34px, auto;
  background-position:
    var(--grid-panel-offset-x) var(--grid-panel-offset-y),
    var(--grid-panel-offset-x) var(--grid-panel-offset-y),
    center;
  opacity: 0.28;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.88), rgba(0, 0, 0, 0.58) 58%, rgba(0, 0, 0, 0.1) 100%);
}

.model-stage:not(.has-preview) .model-stage-ui-chrome::after {
  display: none;
  left: -16%;
  right: -16%;
  top: 34%;
  bottom: -10%;
  background:
    linear-gradient(rgba(255, 255, 255, 0.34) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.28) 1px, transparent 1px);
  background-size: 36px 36px;
  background-position:
    var(--grid-plane-offset-x) var(--grid-plane-offset-y),
    var(--grid-plane-offset-x) var(--grid-plane-offset-y);
  transform: translate3d(0, 0, 0) perspective(720px) rotateX(68deg) rotateZ(var(--grid-yaw));
  transform-origin: center bottom;
  opacity: 0.86;
  mask-image: linear-gradient(to top, rgba(0, 0, 0, 1), rgba(0, 0, 0, 0.76) 58%, transparent 100%);
}

.model-preview-placeholder {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  z-index: 1;
  pointer-events: none;
}

.model-preview-placeholder[hidden] {
  display: none;
}

.model-stage-scene-host {
  position: absolute;
  inset: 0;
  overflow: hidden;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  z-index: 2;
  pointer-events: none;
}

.model-stage-scene-host[hidden] {
  display: none;
}

.model-stage-scene-canvas {
  display: block;
  width: 100%;
  height: 100%;
}

.model-stage.has-live-grid-scene::before,
.model-stage.has-live-grid-scene::after {
  opacity: 0;
}

.model-preview-fallback {
  position: absolute;
  inset: 16px;
  width: calc(100% - 32px);
  height: calc(100% - 32px);
  display: block;
  object-fit: contain;
  border-radius: 12px;
  background: linear-gradient(180deg, #31343a 0%, #23262c 100%);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.22);
  z-index: 2;
  pointer-events: none;
}

.model-preview-fallback[hidden] {
  display: none;
}

.model-preview-viewer {
  position: absolute;
  inset: 16px;
  width: calc(100% - 32px);
  height: calc(100% - 32px);
  border: 0;
  border-radius: 12px;
  background: transparent;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.24);
  cursor: grab;
  z-index: 3;
}

.model-preview-viewer[hidden] {
  display: none;
}

.model-preview-viewer:active {
  cursor: grabbing;
}

.model-preview-status {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 5;
  max-width: calc(100% - 28px);
  padding: 7px 12px;
  border: 1px solid rgba(196, 181, 253, 0.24);
  border-radius: 999px;
  background: rgba(8, 8, 12, 0.82);
  color: rgba(255, 255, 255, 0.86);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.01em;
  backdrop-filter: blur(12px);
}

.model-preview-status[data-tone="success"] {
  border-color: rgba(74, 222, 128, 0.4);
  color: #d1fae5;
}

.model-preview-status[data-tone="error"] {
  border-color: rgba(248, 113, 113, 0.42);
  color: #fecaca;
}

.model-preview-inspector {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 5;
  display: block;
  padding: 10px 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  background: rgba(10, 10, 14, 0.72);
  backdrop-filter: blur(14px);
  box-shadow: 0 16px 38px rgba(0, 0, 0, 0.28);
}

.model-preview-inspector[hidden] {
  display: none;
}

.model-preview-mesh-stats {
  display: grid;
  gap: 7px;
  min-width: 142px;
}

.model-preview-mesh-row {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  color: rgba(255, 255, 255, 0.88);
  font-size: 12px;
  line-height: 1.2;
}

.model-preview-mesh-row span {
  color: rgba(255, 255, 255, 0.68);
}

.model-preview-mesh-row strong {
  justify-self: start;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: 0.01em;
}

.model-preview-axis {
  position: relative;
  width: 58px;
  height: 58px;
  pointer-events: none;
}

.model-preview-axis-dock {
  position: absolute;
  left: 18px;
  bottom: 22px;
  z-index: 5;
  width: 74px;
  height: 74px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  background: rgba(14, 16, 22, 0.78);
  box-shadow: 0 18px 30px rgba(0, 0, 0, 0.24);
  backdrop-filter: blur(16px);
}

.model-preview-axis-dock .model-preview-axis {
  position: absolute;
  left: 8px;
  bottom: 8px;
}

.axis-line {
  position: absolute;
  left: 28px;
  top: 28px;
  transform-origin: 0 50%;
  border-radius: 999px;
  transition: transform 90ms linear, opacity 90ms linear, width 90ms linear;
}

.axis-line-x {
  width: 22px;
  height: 2px;
  background: #ff5f7a;
  transform: rotate(22deg);
}

.axis-line-y {
  width: 22px;
  height: 2px;
  background: #9df871;
  transform: rotate(-78deg);
}

.axis-line-z {
  width: 18px;
  height: 2px;
  background: #53a6ff;
  transform: rotate(165deg);
}

.axis-dot {
  position: absolute;
  display: grid;
  place-items: center;
  width: 18px;
  height: 18px;
  border-radius: 999px;
  font-size: 10px;
  line-height: 1;
  font-weight: 800;
  font-family: "Inter", "Segoe UI", Arial, sans-serif;
  letter-spacing: 0.01em;
  color: #ffffff;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.45);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.26);
  transition:
    left 90ms linear,
    top 90ms linear,
    width 90ms linear,
    height 90ms linear,
    font-size 90ms linear,
    opacity 90ms linear;
}

.axis-dot-x {
  right: 1px;
  top: 22px;
  background: #ff5f7a;
}

.axis-dot-y {
  left: 21px;
  top: 0;
  background: #7adf47;
}

.axis-dot-z {
  left: 2px;
  bottom: 5px;
  background: #3388ff;
}

.model-preview > p {
  margin: 0;
  color: rgba(255, 255, 255, 0.72);
  line-height: 1.55;
  text-align: center;
}

.model-preview > p:empty {
  display: none;
}

.production-layout > .view-panel:nth-of-type(2) .model-preview > p {
  line-height: 1.45;
}

.model-preview-note {
  margin: 6px auto 0;
  width: min(900px, 100%);
  max-width: 100%;
  color: rgba(255, 255, 255, 0.74);
  font-size: 13px;
  line-height: 1.35;
  text-align: center;
  text-wrap: balance;
}

.model-preview-note span {
  display: block;
}

.preview-action-row {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  margin-top: 8px;
  padding-bottom: 0;
}

.preview-request-button {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  column-gap: 10px;
  width: min(360px, 100%);
  align-self: center;
  margin-top: 0;
  padding: 0 16px;
}

.preview-request-button [data-preview-button-label] {
  grid-column: 2;
  white-space: nowrap;
}

.preview-request-button [data-preview-button-cost] {
  grid-column: 3;
  justify-self: end;
  color: rgba(255, 255, 255, 0.86);
  font-size: 13px;
  white-space: nowrap;
  text-align: right;
}

@media (max-width: 860px) {
  .model-preview-note {
    width: 100%;
  }

  .preview-action-row {
    align-self: stretch;
  }

  .preview-request-button {
    width: 100%;
  }
}

.factory-send-action {
  display: grid;
  grid-column: 1 / -1;
  justify-items: center;
  gap: 10px;
  transform: translateY(-0.1cm);
  padding: 18px;
  border: 1px solid rgba(196, 181, 253, 0.18);
  border-radius: 16px;
  background: rgba(12, 12, 16, 0.86);
}

.figure-size-panel {
  display: grid;
  grid-column: 1 / -1;
  transform: translateY(-0.1cm);
  gap: 8px;
  padding: 12px 18px;
  border: 1px solid rgba(196, 181, 253, 0.18);
  border-radius: 16px;
  background: rgba(12, 12, 16, 0.86);
}

.figure-size-panel .section-heading {
  margin-bottom: 0;
  text-align: center;
}

.figure-size-panel .section-heading p {
  margin-bottom: 2px;
}

.figure-size-panel .section-heading h2 {
  margin-bottom: 8px;
  font-size: 26px;
}

.custom-size-fields {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.custom-size-fields label {
  display: grid;
  gap: 6px;
  color: rgba(255, 255, 255, 0.84);
  font-weight: 900;
}

.custom-size-fields span {
  font-size: 13px;
}

.custom-size-fields input {
  min-height: 38px;
  border: 1px solid rgba(196, 181, 253, 0.28);
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.28);
  color: #fff;
  font: inherit;
  padding: 0 14px;
  outline: none;
}

.custom-size-fields input:focus {
  border-color: rgba(167, 139, 250, 0.74);
  box-shadow: 0 0 0 3px rgba(139, 61, 245, 0.18);
}

.figure-size-panel > p {
  margin: 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: 14px;
  line-height: 1.35;
  text-align: center;
}

.factory-send-button {
  width: min(320px, 100%);
}

.factory-send-action p {
  margin: 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: 14px;
  line-height: 1.5;
  text-align: center;
}

.community-hero {
  max-width: 860px;
  margin: 0 auto 34px;
  text-align: center;
}

.community-kicker {
  margin: 0 0 10px;
  color: #c4b5fd;
  font-size: 18px;
  font-weight: 900;
}

.community-hero h1 {
  margin: 0;
  font-size: clamp(42px, 6vw, 82px);
  line-height: 0.96;
  letter-spacing: 0;
  white-space: nowrap;
}

.community-hero > p:last-child {
  margin: 16px auto 0;
  color: rgba(255, 255, 255, 0.74);
  font-size: 20px;
  line-height: 1.45;
  white-space: nowrap;
}

.community-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, 320px);
  justify-content: center;
  gap: 18px;
}

.community-card {
  overflow: hidden;
  width: 320px;
  border: 1px solid rgba(196, 181, 253, 0.18);
  border-radius: 14px;
  background: rgba(15, 15, 18, 0.92);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.34);
}

.community-art {
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 4 / 3;
  width: 100%;
  padding: 10px;
  border: 0;
  background:
    radial-gradient(circle at top, rgba(124, 58, 237, 0.14), transparent 42%),
    linear-gradient(180deg, rgba(22, 22, 29, 0.95), rgba(7, 7, 10, 0.98));
  cursor: zoom-in;
}

.community-art img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  object-position: center;
  border-radius: 10px;
  background: rgba(8, 8, 12, 0.8);
}

.community-body {
  padding: 18px;
}

.community-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.community-card h2 {
  margin: 0;
  font-size: 17px;
  line-height: 1.1;
}

.community-lightbox-open {
  overflow: hidden;
}

.community-lightbox {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 28px;
}

.community-lightbox[hidden] {
  display: none;
}

.community-lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(4, 4, 8, 0.78);
  backdrop-filter: blur(10px);
}

.community-lightbox-dialog {
  position: relative;
  z-index: 1;
  width: min(96vw, 1120px);
  max-height: 92vh;
  padding: 18px 18px 20px;
  border: 1px solid rgba(196, 181, 253, 0.22);
  border-radius: 20px;
  background: rgba(14, 14, 19, 0.96);
  box-shadow: 0 32px 90px rgba(0, 0, 0, 0.46);
}

.community-lightbox-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(196, 181, 253, 0.2);
  border-radius: 999px;
  background: rgba(28, 28, 36, 0.95);
  color: #fff;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
}

.community-lightbox-media {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: min(70vh, 760px);
  padding: 18px;
  border-radius: 16px;
  background:
    radial-gradient(circle at top, rgba(124, 58, 237, 0.15), transparent 44%),
    linear-gradient(180deg, rgba(22, 22, 29, 0.98), rgba(7, 7, 10, 0.98));
}

.community-lightbox-media img {
  display: block;
  width: 100%;
  max-width: 100%;
  max-height: min(66vh, 720px);
  object-fit: contain;
  border-radius: 12px;
  background: rgba(10, 10, 14, 0.88);
}

.community-lightbox-meta {
  padding: 16px 6px 0;
}

.community-lightbox-meta h2 {
  margin: 0;
  font-size: clamp(24px, 3vw, 34px);
  line-height: 1.06;
}

.community-lightbox-meta p {
  margin: 8px 0 0;
  color: rgba(255, 255, 255, 0.72);
}

.app-preview-page {
  min-height: 100vh;
  margin: 0;
  background:
    radial-gradient(circle at top, rgba(124, 58, 237, 0.2), transparent 28%),
    linear-gradient(180deg, #07050c 0%, #0a0811 50%, #060509 100%);
}

.app-preview-shell {
  min-height: 100vh;
  padding: 44px 24px 60px;
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: center;
  gap: 36px;
}

.app-preview-intro {
  width: min(360px, 100%);
  padding-top: 30px;
}

.app-preview-kicker {
  margin: 0 0 12px;
  color: #b996ff;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.app-preview-intro h1 {
  margin: 0 0 14px;
  font-size: clamp(36px, 5vw, 56px);
  line-height: 0.92;
}

.app-preview-intro p {
  margin: 0;
  color: rgba(255, 255, 255, 0.76);
  font-size: 17px;
  line-height: 1.7;
}

.app-phone-stage {
  display: flex;
  justify-content: center;
  width: min(100%, 460px);
}

.app-phone {
  position: relative;
  width: 430px;
  height: 932px;
  padding: 10px;
  border-radius: 48px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.1), rgba(10, 10, 16, 0.95)),
    #0a0910;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.12),
    0 38px 110px rgba(0, 0, 0, 0.55),
    inset 0 1px 1px rgba(255, 255, 255, 0.18);
}

.app-phone-notch {
  position: absolute;
  top: 18px;
  left: 50%;
  width: 148px;
  height: 34px;
  transform: translateX(-50%);
  border-radius: 999px;
  background: rgba(5, 5, 8, 0.96);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
  z-index: 2;
}

.app-screen {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  border-radius: 40px;
  background:
    radial-gradient(circle at top center, rgba(98, 48, 255, 0.28), transparent 28%),
    linear-gradient(180deg, #090913 0%, #06060f 100%);
}

.app-statusbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 22px 8px;
  font-size: 18px;
  font-weight: 800;
}

.app-status-icons {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.app-signal,
.app-wifi,
.app-battery {
  display: inline-block;
  position: relative;
}

.app-signal {
  width: 18px;
  height: 14px;
  background:
    linear-gradient(90deg, #fff 0 3px, transparent 3px 5px, #fff 5px 8px, transparent 8px 10px, #fff 10px 13px, transparent 13px 15px, #fff 15px 18px);
  clip-path: polygon(0 100%, 0 70%, 20% 70%, 20% 45%, 45% 45%, 45% 25%, 70% 25%, 70% 10%, 100% 10%, 100% 100%);
}

.app-wifi {
  width: 18px;
  height: 14px;
}

.app-wifi::before,
.app-wifi::after {
  content: "";
  position: absolute;
  left: 50%;
  border: 2px solid transparent;
  border-top-color: #fff;
  border-radius: 50%;
  transform: translateX(-50%);
}

.app-wifi::before {
  top: 0;
  width: 18px;
  height: 18px;
}

.app-wifi::after {
  top: 5px;
  width: 10px;
  height: 10px;
}

.app-battery {
  width: 24px;
  height: 12px;
  border: 2px solid #fff;
  border-radius: 4px;
}

.app-battery::before {
  content: "";
  position: absolute;
  top: 2px;
  right: -4px;
  width: 2px;
  height: 6px;
  border-radius: 2px;
  background: #fff;
}

.app-battery::after {
  content: "";
  position: absolute;
  inset: 2px;
  border-radius: 2px;
  background: #fff;
}

.app-home-scroll {
  height: calc(100% - 104px);
  padding: 12px 18px 18px;
  overflow-y: auto;
  scrollbar-width: none;
}

.app-home-scroll::-webkit-scrollbar {
  display: none;
}

.app-home-topbar {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 22px;
}

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

.app-brand-icon {
  flex: 0 0 64px;
  width: 64px;
  height: 64px;
  padding: 10px;
  border-radius: 18px;
  background: linear-gradient(180deg, #8448ff, #5928d9);
  box-shadow: 0 18px 40px rgba(98, 48, 255, 0.35);
}

.app-brand-icon img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
}

.app-brand-block h2 {
  margin: 0;
  font-size: 22px;
  line-height: 1.05;
}

.app-brand-block p {
  margin: 6px 0 0;
  color: rgba(255, 255, 255, 0.68);
  font-size: 14px;
}

.app-top-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.app-chip-button,
.app-icon-button {
  border: 0;
  color: #fff;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.06);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06);
}

.app-chip-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 46px;
  padding: 0 14px;
  border-radius: 16px;
  font-size: 16px;
  font-weight: 800;
}

.coin-dot {
  display: inline-grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 999px;
  background: radial-gradient(circle at 30% 30%, #ffd56f, #ff9b28);
  color: #fff;
  font-size: 13px;
}

.chevron {
  color: rgba(255, 255, 255, 0.7);
  font-size: 22px;
  line-height: 1;
}

.app-icon-button {
  position: relative;
  display: inline-grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 16px;
}

.app-icon-button svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.app-notification-dot {
  position: absolute;
  top: 9px;
  right: 10px;
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #ff526a;
}

.app-hero-card {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.95fr);
  gap: 18px;
  padding: 24px 22px 22px;
  border-radius: 28px;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(17, 19, 52, 0.96), rgba(18, 10, 36, 0.9)),
    #0e1025;
  box-shadow:
    inset 0 0 0 1px rgba(167, 139, 250, 0.28),
    0 28px 70px rgba(10, 9, 24, 0.38);
}

.app-hero-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 18% 18%, rgba(124, 58, 237, 0.2), transparent 36%),
    radial-gradient(circle at 84% 50%, rgba(168, 85, 247, 0.16), transparent 42%);
  pointer-events: none;
}

.app-hero-copy,
.app-hero-visual {
  position: relative;
  z-index: 1;
}

.app-hero-copy h3 {
  margin: 4px 0 18px;
  font-size: 30px;
  line-height: 1.14;
}

.app-hero-copy h3 span {
  color: #a855f7;
}

.app-hero-copy p {
  margin: 0;
  max-width: 220px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 13px;
  line-height: 1.7;
}

.app-primary-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-width: 190px;
  min-height: 74px;
  margin-top: 28px;
  padding: 0 26px;
  border: 0;
  border-radius: 22px;
  background: linear-gradient(90deg, #6d35ff, #cb2af7);
  color: #fff;
  font-size: 18px;
  font-weight: 900;
  box-shadow: 0 20px 44px rgba(146, 51, 234, 0.34);
  cursor: pointer;
}

.app-primary-cta svg {
  width: 22px;
  height: 22px;
  fill: currentColor;
}

.app-hero-visual {
  min-height: 350px;
}

.app-hero-pack {
  position: absolute;
  top: 14px;
  right: 6px;
  bottom: 14px;
  left: 28px;
  border-radius: 34px;
  background:
    radial-gradient(circle at 50% 30%, rgba(136, 84, 255, 0.26), transparent 34%),
    linear-gradient(180deg, rgba(134, 84, 255, 0.08), rgba(119, 91, 255, 0.2));
  box-shadow:
    inset 0 0 0 1px rgba(174, 134, 255, 0.32),
    inset 0 0 0 10px rgba(255, 255, 255, 0.03);
}

.app-hero-visual::before,
.app-hero-visual::after {
  content: "";
  position: absolute;
  top: 34px;
  right: 44px;
  width: 18px;
  height: 18px;
  border-radius: 999px;
  border: 2px solid rgba(255, 255, 255, 0.26);
}

.app-hero-visual::after {
  top: 48px;
  right: 56px;
  width: 240px;
  height: 320px;
  border-radius: 36px;
  border: 2px solid rgba(255, 255, 255, 0.08);
}

.app-hero-visual img {
  position: absolute;
  right: -8px;
  bottom: -8px;
  width: 310px;
  max-width: none;
  filter: drop-shadow(0 18px 40px rgba(0, 0, 0, 0.38));
}

.app-feature-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: 20px;
}

.app-feature-card {
  min-height: 132px;
  padding: 18px 16px;
  border-radius: 24px;
  background: rgba(18, 18, 28, 0.94);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.05);
}

.app-feature-card.upload {
  background: linear-gradient(180deg, rgba(34, 17, 57, 0.96), rgba(17, 17, 31, 0.96));
}

.app-feature-card.style {
  background: linear-gradient(180deg, rgba(38, 18, 44, 0.96), rgba(18, 18, 31, 0.96));
}

.app-feature-card.generate {
  background: linear-gradient(180deg, rgba(13, 33, 57, 0.96), rgba(16, 18, 32, 0.96));
}

.app-feature-card.share {
  background: linear-gradient(180deg, rgba(9, 41, 40, 0.96), rgba(16, 18, 32, 0.96));
}

.app-feature-icon {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  margin-bottom: 22px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.04);
}

.app-feature-card.upload .app-feature-icon {
  color: #b45cff;
}

.app-feature-card.style .app-feature-icon {
  color: #ff7bbf;
}

.app-feature-card.generate .app-feature-icon {
  color: #47a5ff;
}

.app-feature-card.share .app-feature-icon {
  color: #21e8a3;
}

.app-feature-icon svg {
  width: 28px;
  height: 28px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.app-feature-card h4 {
  margin: 0 0 8px;
  font-size: 16px;
  line-height: 1.2;
}

.app-feature-card p {
  margin: 0;
  color: rgba(255, 255, 255, 0.68);
  font-size: 12px;
  line-height: 1.45;
}

.app-section-block {
  margin-top: 28px;
}

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

.app-section-head h3 {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  font-size: 18px;
}

.app-section-head button {
  border: 0;
  background: transparent;
  color: #a855f7;
  font-size: 15px;
  font-weight: 800;
  cursor: pointer;
}

.app-card-row {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  scrollbar-width: none;
}

.app-card-row::-webkit-scrollbar {
  display: none;
}

.app-style-tile {
  position: relative;
  flex: 0 0 140px;
  overflow: hidden;
  min-height: 194px;
  padding: 0;
  border-radius: 22px;
  background: rgba(12, 12, 20, 0.96);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06);
}

.app-style-tile.active {
  box-shadow:
    inset 0 0 0 2px rgba(167, 139, 250, 0.7),
    0 22px 44px rgba(120, 55, 255, 0.18);
}

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

.app-style-tile h4 {
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 14px;
  margin: 0;
  font-size: 16px;
  line-height: 1.1;
  text-shadow: 0 8px 24px rgba(0, 0, 0, 0.75);
}

.app-hot-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 1;
  padding: 5px 8px;
  border-radius: 10px;
  background: linear-gradient(135deg, #ff5a76, #ff8a3d);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.06em;
}

.app-featured-row {
  gap: 14px;
}

.app-featured-card {
  flex: 0 0 152px;
  overflow: hidden;
  border-radius: 22px;
  background: rgba(14, 14, 21, 0.96);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06);
}

.app-featured-card img {
  width: 100%;
  height: 174px;
  display: block;
  object-fit: cover;
}

.app-featured-meta {
  padding: 12px 12px 14px;
}

.app-featured-meta strong,
.app-featured-meta span {
  display: block;
}

.app-featured-meta strong {
  font-size: 16px;
}

.app-featured-meta span {
  margin-top: 6px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 14px;
}

.app-invite-card {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 16px;
  margin-top: 26px;
  padding: 18px;
  border-radius: 28px;
  background:
    linear-gradient(135deg, rgba(28, 20, 52, 0.98), rgba(18, 15, 35, 0.98)),
    #131320;
  box-shadow: inset 0 0 0 1px rgba(167, 139, 250, 0.12);
}

.app-invite-gift {
  display: grid;
  place-items: center;
  width: 92px;
  height: 92px;
  border-radius: 24px;
  background: radial-gradient(circle at 35% 30%, #8b5cf6, #5b2dd4);
  font-size: 48px;
}

.app-invite-copy h3 {
  margin: 0 0 8px;
  font-size: 18px;
}

.app-invite-copy p {
  margin: 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: 14px;
  line-height: 1.6;
}

.app-invite-card button {
  min-width: 132px;
  min-height: 56px;
  padding: 0 20px;
  border: 0;
  border-radius: 18px;
  background: linear-gradient(90deg, #6d35ff, #8d4dff);
  color: #fff;
  font-size: 17px;
  font-weight: 900;
  cursor: pointer;
}

.app-bottom-nav {
  position: absolute;
  right: 18px;
  bottom: 26px;
  left: 18px;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  align-items: end;
  padding: 18px 14px 26px;
  border-radius: 28px;
  background: rgba(14, 14, 22, 0.98);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.05),
    0 20px 44px rgba(0, 0, 0, 0.38);
}

.app-bottom-nav a {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: rgba(255, 255, 255, 0.64);
  text-decoration: none;
  font-size: 13px;
}

.app-bottom-nav a.active {
  color: #8f46ff;
}

.app-bottom-nav svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.app-center-add {
  justify-self: center;
  width: 78px;
  height: 78px;
  margin-bottom: 10px;
  border: 0;
  border-radius: 999px;
  background: radial-gradient(circle at 30% 30%, #9347ff, #5d2af1);
  color: #fff;
  font-size: 44px;
  line-height: 1;
  box-shadow: 0 18px 38px rgba(93, 42, 241, 0.4);
  cursor: pointer;
}

.app-home-indicator {
  position: absolute;
  left: 50%;
  bottom: 10px;
  width: 142px;
  height: 5px;
  transform: translateX(-50%);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
}

@media (max-width: 980px) {
  .app-preview-shell {
    padding: 24px 14px 40px;
  }

  .app-preview-intro {
    width: 100%;
    max-width: 640px;
    padding-top: 0;
    text-align: center;
  }
}

@media (max-width: 520px) {
  .app-phone {
    width: min(100vw - 16px, 430px);
    height: auto;
    aspect-ratio: 430 / 932;
  }

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

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

  .app-hero-visual {
    min-height: 240px;
  }

  .app-hero-visual img {
    right: 10px;
    width: 250px;
  }

  .app-invite-card {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .app-invite-gift,
  .app-invite-card button {
    justify-self: center;
  }
}

.like-button {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 36px;
  padding: 0 12px;
  border: 1px solid rgba(196, 181, 253, 0.32);
  border-radius: 999px;
  background: rgba(124, 58, 237, 0.18);
  color: #fff;
  font-weight: 900;
  cursor: pointer;
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    box-shadow 180ms ease,
    background 180ms ease;
}

.like-button:hover,
.like-button.liked {
  transform: translateY(-2px);
  border-color: rgba(244, 114, 182, 0.82);
  background: linear-gradient(135deg, rgba(249, 115, 22, 0.88), rgba(168, 85, 247, 0.9));
  box-shadow: 0 12px 28px rgba(168, 85, 247, 0.28);
}

.prompt-label {
  margin: 18px 0 8px;
  color: #c4b5fd;
  font-size: 14px;
  font-weight: 900;
  text-transform: uppercase;
}

.prompt-text {
  margin: 0;
  color: rgba(255, 255, 255, 0.76);
  font-size: 13px;
  line-height: 1.55;
}

.settings-shell {
  width: min(1080px, calc(100% - 64px));
  margin: 0 auto;
  padding: 18px 0 18px;
}

.settings-topbar {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 16px;
}

.settings-back {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  color: #c4b5fd;
  font-weight: 800;
}

.settings-topbar h1 {
  margin: 2px 0 0;
  color: rgba(255, 255, 255, 0.9);
  font-size: 28px;
  line-height: 1.1;
}

.settings-top-actions {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.settings-history {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 0 18px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  font-weight: 800;
}

.settings-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 0 18px;
  border: 1px solid rgba(253, 186, 116, 0.45);
  border-radius: 6px;
  background: linear-gradient(135deg, var(--orange), var(--purple-strong));
  color: #fff;
  font-weight: 800;
  box-shadow: 0 12px 28px rgba(124, 58, 237, 0.18);
}

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

.settings-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 22px;
}

.settings-card {
  min-height: 560px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.025), transparent 18%),
    rgba(255, 255, 255, 0.025);
  box-shadow:
    0 24px 60px rgba(0, 0, 0, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.settings-card h2 {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 56px;
  margin: 0;
  padding: 0 22px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  color: rgba(255, 255, 255, 0.88);
  font-size: 18px;
}

.settings-card h2 svg,
.settings-support svg,
.manage-plan-button svg,
.upgrade-button svg,
.upgrade-icon svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
}

.profile-summary {
  display: grid;
  grid-template-columns: 86px minmax(0, 1fr);
  gap: 20px;
  align-items: center;
  padding: 18px 22px 16px;
}

.profile-avatar {
  display: grid;
  place-items: center;
  width: 72px;
  height: 72px;
  border-radius: 999px;
  background: #5b2bbd;
  color: #fff;
  font-size: 44px;
  line-height: 1;
}

.profile-details {
  display: grid;
  gap: 4px;
}

.profile-details span,
.credits-row span,
.plan-content p,
.plan-list,
.upgrade-card p,
.settings-support span {
  color: rgba(255, 255, 255, 0.62);
}

.profile-details strong,
.credits-row strong {
  margin-bottom: 10px;
  color: rgba(255, 255, 255, 0.9);
  font-size: 15px;
}

.settings-divider {
  height: 1px;
  margin: 0 22px 10px;
  background: rgba(255, 255, 255, 0.05);
}

.settings-card .settings-subtitle {
  min-height: 42px;
  border-bottom: 0;
  padding-top: 0;
}

.credits-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  padding: 8px 22px;
}

.credits-row div {
  display: grid;
  gap: 4px;
}

.credits-row strong {
  margin-bottom: 0;
  font-size: 17px;
}

.plan-content {
  padding: 16px 22px;
}

.plan-content p {
  margin: 0 0 10px;
  font-weight: 750;
}

.plan-pill {
  display: inline-flex;
  align-items: center;
  min-height: 20px;
  margin-left: 8px;
  padding: 0 9px;
  border-radius: 999px;
  background: rgba(249, 115, 22, 0.16);
  color: #fdba74;
  font-size: 12px;
  font-weight: 900;
}

.plan-list,
.upgrade-card ul {
  display: grid;
  gap: 7px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.plan-list li,
.upgrade-card li {
  position: relative;
  padding-left: 24px;
}

.plan-list li::before,
.upgrade-card li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: rgba(255, 255, 255, 0.38);
}

.manage-plan-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  min-height: 38px;
  margin-top: 14px;
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  font-weight: 800;
}

.upgrade-card {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  gap: 12px;
  margin-top: 10px;
  padding: 14px;
  border-radius: 7px;
  background:
    radial-gradient(circle at 92% 0%, rgba(124, 58, 237, 0.24), transparent 22rem),
    linear-gradient(135deg, rgba(249, 115, 22, 0.12), rgba(124, 58, 237, 0.12));
}

.upgrade-icon {
  color: var(--orange);
}

.upgrade-card h3 {
  margin: 0 0 5px;
  font-size: 18px;
}

.upgrade-card p {
  margin: 0 0 9px;
  line-height: 1.5;
}

.upgrade-card li {
  color: rgba(255, 255, 255, 0.84);
  font-weight: 750;
}

.upgrade-card li::before {
  color: var(--orange);
}

.upgrade-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 38px;
  margin-top: 10px;
  padding: 0 17px;
  border-radius: 6px;
  background: linear-gradient(135deg, var(--orange), var(--purple-strong));
  color: #fff;
  font-weight: 900;
}

.settings-support {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 44px;
  margin-top: 14px;
  padding: 0 16px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.025);
}

.settings-support span {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 750;
}

.settings-support a {
  color: #fdba74;
  font-weight: 900;
}

.legal-page {
  min-height: 100vh;
  background:
    radial-gradient(circle at 18% 0%, rgba(249, 115, 22, 0.08), transparent 24rem),
    radial-gradient(circle at 86% 18%, rgba(124, 58, 237, 0.13), transparent 30rem),
    hsl(var(--background));
}

.legal-shell {
  width: min(1040px, calc(100% - 48px));
  margin: 0 auto;
  padding: 28px 0 48px;
}

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

.legal-card {
  padding: 42px;
  border: 1px solid rgba(196, 181, 253, 0.2);
  border-radius: 16px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.03), transparent 18%),
    rgba(12, 12, 16, 0.92);
  box-shadow:
    0 24px 70px rgba(0, 0, 0, 0.36),
    0 0 42px rgba(124, 58, 237, 0.12);
}

.legal-card h1 {
  margin: 0 0 8px;
  font-size: clamp(36px, 5vw, 58px);
  line-height: 1;
}

.legal-updated {
  margin-bottom: 34px;
  color: #c4b5fd;
  font-weight: 800;
}

.legal-card h2 {
  margin: 34px 0 12px;
  font-size: 24px;
}

.legal-card h3 {
  margin: 24px 0 10px;
  font-size: 18px;
}

.legal-card p,
.legal-card li {
  color: rgba(255, 255, 255, 0.78);
  font-size: 16px;
  line-height: 1.72;
}

.legal-card p {
  margin: 0 0 14px;
}

.legal-card ul {
  margin: 0 0 18px;
  padding-left: 22px;
}

.legal-card a {
  color: #fdba74;
  font-weight: 800;
}

@media (max-width: 1120px) {
  .hero-inner,
  .generator-layout,
  .production-layout {
    grid-template-columns: 1fr;
  }

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

  .hero-carousel {
    min-height: 360px;
  }

  .hero-carousel-track img {
    height: 360px;
  }
}

@media (max-width: 860px) {
  .nav {
    padding-inline: 16px;
  }

  .nav-links {
    display: none;
  }

  .brand span:last-child {
    font-size: 16px;
  }

  .hero {
    padding: 24px 16px 17px;
  }

  .hero h1 {
    font-size: 44px;
  }

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

  .inspiration-grid,
  .showcase-grid,
  .community-grid,
  .pricing-grid,
  .feature-grid,
  .steps-grid,
  .use-case-grid,
  .testimonial-grid {
    grid-template-columns: 1fr;
  }

  .site-footer {
    grid-template-columns: 1fr;
  }

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

  .settings-shell {
    width: min(100% - 32px, 760px);
  }

  .settings-grid {
    grid-template-columns: 1fr;
  }

  .settings-card {
    min-height: auto;
  }

  .production-layout > .view-panel:first-child .source-figure-card {
    margin-top: 0;
  }

  .source-figure-card {
    grid-template-columns: 78px minmax(0, 1fr);
    align-items: start;
  }

  .source-figure-card .view-toggle {
    grid-column: 1 / -1;
    justify-self: start;
  }

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

  .reference-grid[data-view-mode="1"] {
    grid-template-columns: minmax(0, 1fr);
  }

  .reference-grid .optional-view:nth-of-type(5),
  .reference-grid .optional-view:nth-of-type(6) {
    grid-column: auto;
  }
}

@media (max-width: 560px) {
  .nav-actions {
    display: none;
  }

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

  .settings-topbar,
  .settings-support {
    align-items: flex-start;
    flex-direction: column;
  }

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

  .pricing-shell {
    padding-top: 46px;
  }

  .pricing-hero h1 {
    font-size: 38px;
  }

  .pricing-hero p {
    white-space: normal;
  }

  .pricing-toggle {
    width: 100%;
  }

  .pricing-toggle button {
    flex: 1;
    padding-inline: 12px;
  }

  .price-card {
    min-height: auto;
    padding: 24px;
  }

  .make-figure-page .view-panel {
    padding: 14px;
  }

  .make-figure-page .view-panel > .section-heading {
    margin-bottom: 12px;
  }

  .make-figure-page .view-panel .section-heading h2 {
    margin-bottom: 12px;
    font-size: 22px;
  }

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

  .source-figure-frame {
    justify-self: start;
  }

  .source-figure-card .view-toggle {
    width: 100%;
  }

  .source-figure-card .view-toggle button {
    flex: 1;
    min-width: 0;
  }

  .reference-actions {
    margin-top: 14px;
    padding-top: 12px;
  }

  .reference-generate-button {
    width: 100%;
    min-width: 0;
    min-height: 56px;
    flex-direction: column;
    gap: 4px;
    padding: 10px 18px;
  }

  .reference-generate-button [data-reference-cost] {
    position: static;
    transform: none;
    display: block;
    font-size: 12px;
    text-align: center;
  }
}
