:root {
  --bg: #061333;
  --bg-deep: #020817;
  --panel: #0d2050;
  --panel-soft: #142f70;
  --paper: #fff8ed;
  --paper-soft: #fff2df;
  --line: rgba(160, 191, 255, 0.28);
  --text: #f5f8ff;
  --text-soft: #b7c5e5;
  --ink: #202431;
  --ink-soft: #656a78;
  --accent: #ff8a1f;
  --accent-2: #89a8ff;
  --good: #42e2b8;
  --danger: #ff6e8b;
  --shadow: 0 24px 70px rgba(2, 8, 27, 0.42);
  --section-tone-a-start: #16358d;
  --section-tone-a-end: #176f7d;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  background: linear-gradient(118deg, var(--section-tone-a-start), var(--section-tone-a-end));
  font-family: "Manrope", "Segoe UI", sans-serif;
  line-height: 1.45;
  overflow-x: hidden;
}

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

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

button,
input {
  font: inherit;
}

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

.topbar {
  position: relative;
  top: 0;
  z-index: 20;
  padding: 8px 0;
  background: transparent;
  border: 0;
}

.topbar__inner {
  position: relative;
  min-height: 58px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  padding: 10px;
  border: 1px solid rgba(146, 184, 255, 0.32);
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(3, 19, 67, 0.95), rgba(5, 31, 95, 0.9));
  box-shadow: 0 12px 28px rgba(2, 10, 34, 0.4);
}

.brand {
  position: absolute;
  left: 10px;
  top: 50%;
  transform: translateY(-50%);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: "Unbounded", "Manrope", sans-serif;
  font-weight: 700;
}

.brand img {
  width: 35px;
  height: 35px;
  border-radius: 6px;
  border: 1px solid rgba(183, 210, 255, 0.36);
  object-fit: contain;
  background: rgba(8, 27, 78, 0.78);
  padding: 1px;
  box-shadow: 0 8px 16px rgba(3, 11, 36, 0.34);
}

.brand span {
  font-size: 1.2rem;
  letter-spacing: 0.02em;
}

.nav {
  margin-left: 14px;
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 4px;
  border: 1px solid rgba(162, 195, 255, 0.2);
  border-radius: 999px;
  background: rgba(10, 31, 86, 0.62);
}

.nav a {
  padding: 6px 12px;
  border-radius: 999px;
  color: #b9cdf0;
  font-size: 0.96rem;
  font-weight: 700;
}

.nav a:hover {
  background: rgba(137, 168, 255, 0.16);
  color: #ffffff;
}

.nav a.is-active {
  background: rgba(8, 17, 47, 0.92);
  color: #ffffff;
}

.nav__count {
  display: inline-flex;
  min-width: 24px;
  height: 24px;
  margin-left: 6px;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(116, 255, 241, 0.5);
  border-radius: 999px;
  background: rgba(36, 214, 236, 0.16);
  color: #86fff7;
  font-size: 0.78rem;
  font-weight: 900;
}

.topbar__cta {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  margin-left: 0;
  flex: 0 0 auto;
  min-height: 44px;
  padding: 9px 20px;
  border: 1px solid rgba(147, 189, 255, 0.46);
  border-radius: 18px;
  background: rgba(11, 37, 102, 0.84);
  color: #dceaff;
  font-weight: 800;
  box-shadow: 0 10px 20px rgba(4, 15, 46, 0.32);
  cursor: pointer;
}

.topbar__cta.is-authenticated {
  background: rgba(8, 78, 92, 0.84);
  border-color: rgba(116, 255, 241, 0.52);
  color: #f5ffff;
}

.landing-profile {
  position: absolute;
  right: 10px;
  top: 50%;
  z-index: 5;
  transform: translateY(-50%);
}

.landing-profile__button {
  width: 48px;
  height: 48px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 1px solid rgba(147, 189, 255, 0.46);
  border-radius: 999px;
  background: rgba(16, 36, 91, 0.88);
  color: #ffffff;
  box-shadow: 0 10px 20px rgba(4, 15, 46, 0.32);
  cursor: pointer;
}

.landing-profile__avatar {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(79, 142, 255, 0.72);
  border-radius: 999px;
  background: rgba(49, 103, 210, 0.26);
  font-size: 1rem;
  line-height: 1;
}

.landing-profile__menu {
  position: absolute;
  right: 0;
  top: calc(100% + 12px);
  width: min(238px, calc(100vw - 32px));
  padding: 14px;
  border: 1px solid rgba(127, 150, 194, 0.64);
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(6, 21, 62, 0.98), rgba(8, 35, 91, 0.98));
  color: #f4f7ff;
  box-shadow: 0 24px 52px rgba(2, 10, 34, 0.48);
}

.landing-profile__user {
  padding: 8px 10px 12px;
  margin-bottom: 10px;
  border-bottom: 1px solid rgba(157, 174, 214, 0.18);
}

.landing-profile__name {
  font-weight: 600;
  font-size: 0.955rem;
  word-break: break-word;
}

.landing-profile__email {
  margin-top: 4px;
  color: #aeb8cd;
  font-size: 0.875rem;
  font-weight: 500;
  word-break: break-word;
}

.landing-profile__item {
  width: 100%;
  min-height: 46px;
  margin-top: 8px;
  padding: 0 14px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  border: 1px solid transparent;
  border-radius: 12px;
  background: rgba(15, 38, 94, 0.86);
  color: #ffffff;
  font: inherit;
  font-size: 0.875rem;
  font-weight: 500;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
}

.landing-profile__item:hover {
  border-color: rgba(151, 185, 255, 0.5);
}

.landing-profile__item--danger {
  background: rgba(88, 32, 53, 0.82);
  color: #ff9d9d;
}

.landing-profile__divider {
  margin: 12px 6px 4px;
  border-top: 1px solid rgba(157, 174, 214, 0.18);
}

.token-badge {
  position: absolute;
  right: 66px;
  top: 50%;
  transform: translateY(-50%);
  margin-left: 0;
  flex: 0 0 auto;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 8px 6px 16px;
  border: 1px solid rgba(151, 185, 255, 0.46);
  border-radius: 18px;
  background: rgba(17, 25, 43, 0.86);
  color: #f5f8ff;
  font-size: 1rem;
  font-weight: 900;
  cursor: pointer;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.02);
}

.token-badge[hidden] {
  display: none;
}

.token-badge__plus {
  width: 30px;
  height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: rgba(151, 185, 255, 0.18);
  color: #ffffff;
  font-size: 1.24rem;
  line-height: 1;
}

.token-badge + .topbar__cta {
  margin-left: 8px;
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  margin-left: auto;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  border-radius: 10px;
  background: currentColor;
}

.hero {
  padding: 34px 0 74px;
  min-height: calc(100svh - 74px);
  background: transparent;
}

.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(26px, 4vw, 42px);
  align-items: center;
  justify-items: center;
}

.hero__copy {
  width: min(100%, 930px);
  text-align: center;
}

.is-page-hydrating .hero__copy,
.is-page-hydrating .style-preview {
  visibility: hidden;
}

.eyebrow {
  margin: 0 0 12px;
  color: #9fe9ff;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.78rem;
  font-weight: 900;
}

.hero h1,
.section h2 {
  margin: 0;
  font-family: "Unbounded", "Manrope", sans-serif;
  letter-spacing: 0;
  line-height: 1.1;
}

.hero h1 {
  max-width: 820px;
  margin-inline: auto;
  font-size: clamp(1.9rem, 3.4vw, 3rem);
}

.hero h1 span {
  background: linear-gradient(100deg, #fff7ad 0%, #74fff1 50%, #7db7ff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero__lead {
  max-width: 820px;
  margin: 20px auto 0;
  color: var(--text-soft);
  font-size: clamp(0.98rem, 1.5vw, 1.12rem);
}

.hero__cta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 28px;
}

.hero__cta-row .btn {
  padding: 16px 30px;
  font-size: 1.14rem;
}

.hero__facts {
  width: min(100%, 820px);
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 18px;
  margin-top: 0;
}

.hero__facts--below {
  margin-top: -24px;
}

.hero__facts span {
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #d7e6ff;
  font-weight: 700;
  font-size: 0.96rem;
  opacity: 0.92;
}

.hero__fact-value {
  color: #74fff1;
  font-weight: 900;
  white-space: nowrap;
  text-shadow: 0 0 18px rgba(116, 255, 241, 0.26);
}

.creator {
  width: min(100%, 820px);
  border: 1px solid rgba(170, 203, 255, 0.34);
  border-radius: 28px;
  padding: clamp(16px, 2.4vw, 26px);
  background: rgba(8, 21, 55, 0.74);
  box-shadow: var(--shadow);
}

.creator__stage {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) 44px minmax(220px, 1fr);
  gap: clamp(12px, 1.8vw, 20px);
  align-items: start;
}

.style-preview,
.upload-card,
.result-card {
  border: 1px solid rgba(162, 192, 255, 0.28);
  border-radius: 24px;
  background: #10182d;
  overflow: hidden;
}

.style-preview,
.upload-card {
  width: 100%;
  max-width: 330px;
  justify-self: center;
}

.style-preview {
  position: relative;
  aspect-ratio: 3 / 4;
  cursor: pointer;
}

.style-preview:focus-visible {
  outline: 3px solid rgba(116, 255, 241, 0.86);
  outline-offset: 4px;
}

.style-thumb-rail {
  width: min(100%, 820px);
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: -18px;
  padding: 5px 10px 7px;
  overflow-x: auto;
  overflow-y: hidden;
  overscroll-behavior: contain;
  scrollbar-width: none;
}

.style-thumb-rail::-webkit-scrollbar {
  display: none;
}

.style-thumb {
  width: 64px;
  height: 64px;
  flex: 0 0 64px;
  padding: 0;
  overflow: hidden;
  border: 2px solid rgba(255, 255, 255, 0.18);
  border-radius: 18px;
  background: rgba(5, 10, 24, 0.72);
  cursor: pointer;
  box-shadow: none;
}

.style-thumb.is-active {
  border-color: rgba(116, 255, 241, 0.92);
  box-shadow: 0 0 0 3px rgba(116, 255, 241, 0.16);
}

.style-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.style-thumb--more {
  display: inline-flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: auto;
  min-width: 132px;
  flex-basis: 132px;
  padding: 0 18px;
  border-color: rgba(116, 255, 241, 0.72);
  background:
    linear-gradient(135deg, rgba(31, 210, 223, 0.24), rgba(36, 96, 244, 0.34)),
    rgba(5, 17, 48, 0.88);
  color: #f5fbff;
  font-size: 0.82rem;
  line-height: 1.05;
  font-weight: 900;
  text-align: center;
  box-shadow: 0 0 0 3px rgba(116, 255, 241, 0.12);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.style-thumb--more:hover,
.style-thumb--more:focus-visible {
  border-color: #74fff1;
  box-shadow: 0 0 0 4px rgba(116, 255, 241, 0.18);
  outline: none;
}

.style-thumb--more::after {
  content: "→";
  font-size: 1.05rem;
  line-height: 1;
}

.style-preview.is-style-applied {
  animation: styleApplyPulse 0.9s ease;
}

.style-preview__image-wrap {
  background: #09142e;
}

.style-preview img {
  width: 100%;
  height: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  object-position: center top;
}

.style-preview__body {
  display: none;
}

@keyframes styleApplyPulse {
  0% {
    box-shadow: 0 0 0 0 rgba(116, 255, 241, 0);
    transform: scale(1);
  }

  42% {
    box-shadow: 0 0 0 9px rgba(116, 255, 241, 0.18);
    transform: scale(1.018);
  }

  100% {
    box-shadow: 0 0 0 0 rgba(116, 255, 241, 0);
    transform: scale(1);
  }
}

@media (prefers-reduced-motion: reduce) {
  .style-preview.is-style-applied {
    animation: none;
  }
}

.style-preview__label {
  margin: 0 0 4px;
  color: #9faccc;
  font-size: 0.84rem;
  font-weight: 800;
}

.style-preview strong {
  display: block;
  color: #f8fbff;
  font-size: clamp(1.02rem, 1.8vw, 1.22rem);
}

.creator__plus {
  align-self: center;
  justify-self: center;
  color: var(--accent-2);
  font-size: clamp(2.6rem, 4vw, 3.5rem);
  font-weight: 300;
  line-height: 1;
}

.upload-card {
  position: relative;
  display: grid;
  aspect-ratio: 3 / 4;
  cursor: pointer;
  border-style: dashed;
  border-width: 2px;
  background: rgba(255, 255, 255, 0.95);
  color: var(--ink);
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.upload-card:hover,
.upload-card.is-dragover {
  border-color: #74fff1;
  transform: translateY(-2px);
  box-shadow: 0 0 0 4px rgba(116, 255, 241, 0.12);
}

.upload-card__input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
}

.upload-card__empty,
.upload-card__preview {
  position: relative;
  min-height: 0;
  padding: clamp(18px, 2.2vw, 26px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 12px;
}

.upload-card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 58px;
  height: 58px;
  border-radius: 16px;
  background: rgba(20, 87, 125, 0.9);
  color: #9ff2ff;
  font-size: 2rem;
  line-height: 1;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14);
}

.upload-card__icon svg {
  width: 32px;
  height: 32px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.3;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.upload-card strong {
  max-width: 260px;
  font-size: clamp(1.35rem, 2.4vw, 1.85rem);
  line-height: 1.16;
}

.upload-card__empty > span:not(.upload-card__icon) {
  max-width: 280px;
  color: #535866;
  font-size: clamp(0.94rem, 1.35vw, 1.08rem);
  font-weight: 700;
}

.upload-card small {
  color: #9a9fac;
  font-weight: 800;
}

.upload-card__preview img {
  width: min(100%, 280px);
  aspect-ratio: 3 / 4;
  border-radius: 18px;
  object-fit: cover;
  box-shadow: 0 20px 44px rgba(21, 28, 49, 0.22);
}

.upload-card__remove {
  position: absolute;
  top: clamp(28px, 3.4vw, 42px);
  right: clamp(28px, 3.4vw, 42px);
  z-index: 3;
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 1px solid rgba(116, 255, 241, 0.78);
  border-radius: 16px;
  background: rgba(7, 26, 67, 0.88);
  color: #9ff2ff;
  cursor: pointer;
  box-shadow: 0 14px 28px rgba(2, 8, 27, 0.34);
  backdrop-filter: blur(10px);
  transition: transform 0.2s ease, border-color 0.2s ease, color 0.2s ease, background 0.2s ease;
}

.upload-card__remove:hover,
.upload-card__remove:focus-visible {
  transform: translateY(-2px);
  border-color: #74fff1;
  background: rgba(15, 52, 125, 0.94);
  color: #ffffff;
  outline: none;
}

.upload-card__remove svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.1;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.upload-card__preview span {
  color: #1f2430;
  font-weight: 900;
}

.creator__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  margin-top: 20px;
}

.hero__create {
  display: flex;
  justify-content: center;
  width: min(100%, 820px);
  margin-top: -22px;
}

.hero__create .btn {
  min-width: 220px;
  padding-inline: 30px;
}

.process-flow {
  width: min(100%, 1180px);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: stretch;
  gap: 16px;
  margin-top: 34px;
}

.result-card[hidden] + .style-thumb-rail + .process-flow {
  margin-top: -14px;
}

.result-card:not([hidden]) + .style-thumb-rail {
  margin-top: 0;
}

.result-card:not([hidden]) + .style-thumb-rail + .process-flow {
  margin-top: -4px;
}

.process-flow__item {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 18px;
  align-items: start;
  min-height: 150px;
  padding: 26px 28px;
  overflow: hidden;
  border: 1px solid rgba(136, 180, 255, 0.34);
  border-radius: 24px;
  background:
    linear-gradient(135deg, rgba(23, 65, 146, 0.76), rgba(5, 18, 62, 0.86)),
    rgba(8, 21, 55, 0.76);
  color: #f8fbff;
  box-shadow: 0 22px 45px rgba(2, 8, 27, 0.2);
}

.process-flow__item::after {
  content: "";
  position: absolute;
  right: -46px;
  bottom: -62px;
  width: 150px;
  height: 150px;
  border-radius: 50%;
  background: rgba(98, 238, 229, 0.1);
  pointer-events: none;
}

.process-flow__badge {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  border: 1px solid rgba(140, 181, 255, 0.48);
  border-radius: 15px;
  background: rgba(52, 111, 213, 0.46);
  color: #f8fbff;
  font-size: 1.08rem;
  font-weight: 900;
  line-height: 1;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.16);
}

.process-flow__icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 13px;
  background: rgba(116, 255, 241, 0.12);
  color: #9ff2ff;
}

.process-flow__icon svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.1;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.process-flow__item h2 {
  margin: 0;
  font-size: clamp(1.25rem, 1.8vw, 1.45rem);
  line-height: 1.15;
  letter-spacing: 0;
}

.process-flow__item p {
  margin: 10px 0 0;
  color: var(--text-soft);
  font-size: clamp(0.95rem, 1.25vw, 1.08rem);
  line-height: 1.35;
}

.process-flow__arrow {
  display: none;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  border: 1px solid transparent;
  border-radius: 16px;
  padding: 14px 22px;
  cursor: pointer;
  font-weight: 900;
  transition: transform 0.22s ease, box-shadow 0.22s ease, background 0.22s ease, border-color 0.22s ease;
}

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

.btn--primary {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0) 44%) padding-box,
    linear-gradient(135deg, #28e1ff 0%, #2c6aff 55%, #1f5be8 100%) border-box;
  border-color: rgba(93, 224, 255, 0.7);
  border-bottom-color: rgba(93, 224, 255, 0.74);
  color: #f8fbff;
  box-shadow:
    inset 0 -2px 0 rgba(40, 225, 255, 0.34),
    0 14px 30px rgba(16, 67, 184, 0.42);
}

.btn--primary:hover {
  box-shadow:
    inset 0 -2px 0 rgba(40, 225, 255, 0.4),
    0 22px 34px rgba(16, 67, 184, 0.48);
}

.btn--primary:disabled {
  cursor: not-allowed;
  opacity: 0.5;
  box-shadow: none;
}

.btn--secondary {
  background: rgba(11, 38, 105, 0.6);
  border-color: rgba(138, 180, 255, 0.4);
  color: #d9e9ff;
}

.btn--secondary:hover {
  background: rgba(27, 69, 165, 0.7);
}

.creator__hint {
  margin: 0;
  color: var(--text-soft);
  font-weight: 700;
}

.progress-panel {
  margin-top: 18px;
  padding: 18px;
  border: 1px solid rgba(160, 191, 255, 0.26);
  border-radius: 20px;
  background: rgba(5, 17, 48, 0.82);
}

.progress-panel.is-error {
  border-color: rgba(255, 110, 139, 0.46);
}

.progress-panel.is-error .progress-panel__top strong {
  color: #ffd9e1;
}

.progress-panel.is-ok {
  border-color: rgba(116, 255, 241, 0.5);
}

.progress-panel__top {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  font-weight: 900;
}

.progress-bar {
  height: 10px;
  margin-top: 12px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
}

.progress-bar span {
  display: block;
  width: 0%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--good), #8aa8ff);
  transition: width 0.25s ease;
}

.progress-panel p {
  margin: 12px 0 0;
  color: var(--text-soft);
}

.result-card {
  width: min(100%, 820px);
  margin-top: 18px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(18px, 2.4vw, 26px);
  padding: clamp(16px, 2.4vw, 26px);
  overflow: hidden;
  border: 1px solid rgba(162, 192, 255, 0.28);
  border-radius: 24px;
  background: #f8fbff;
  color: var(--ink);
  box-shadow: var(--shadow);
}

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

.result-card__image {
  width: min(100%, 560px);
}

.result-card__image img {
  width: 100%;
  height: auto;
  max-height: 620px;
  object-fit: cover;
  border-radius: 20px;
}

.result-card__body {
  width: 100%;
}

.result-card__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

.result-card__actions .btn {
  min-width: min(100%, 220px);
  min-height: 50px;
  padding-inline: 18px;
  font-size: 0.98rem;
}

.section {
  padding: 72px 0;
}

.styles-section {
  background: #131722;
  color: #f3f7ff;
}

.faq-section {
  width: 100vw;
  margin-left: calc(50% - 50vw);
  padding-top: 86px;
  background: #131722;
  color: #f8fbff;
}

.article-section {
  position: relative;
  padding-bottom: 94px;
  background:
    radial-gradient(circle at 86% 4%, rgba(116, 255, 241, 0.16), transparent 32%),
    linear-gradient(118deg, #1c4095 0%, #116f83 100%);
  color: #f8fbff;
}

.article-section::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 140px;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(19, 23, 34, 0), #131722);
}

.article-panel {
  position: relative;
  z-index: 1;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0;
}

.article-panel h2 {
  margin: 0;
  text-align: center;
  color: #dce7f7;
  font-size: clamp(2rem, 4vw, 3.65rem);
  line-height: 1.08;
}

.article-block {
  --article-copy-height: auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(340px, 1.08fr);
  gap: clamp(30px, 6vw, 82px);
  align-items: center;
  margin-top: clamp(58px, 9vw, 106px);
}

.article-block--media-first {
  grid-template-columns: minmax(340px, 1.08fr) minmax(0, 1fr);
}

.article-block__copy {
  max-width: 570px;
}

.article-block__icon {
  width: 58px;
  height: 58px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 28px;
  border: 1px solid rgba(64, 132, 255, 0.95);
  border-radius: 16px;
  background: rgba(24, 61, 111, 0.42);
  color: #4f8dff;
  font-size: 2rem;
  line-height: 1;
}

.article-block h3 {
  max-width: 620px;
  margin: 0;
  color: #f8fbff;
  font-size: clamp(1.55rem, 2.4vw, 2.2rem);
  line-height: 1.22;
}

.article-block p {
  margin: 28px 0 0;
  color: #c8d3e3;
  font-size: clamp(1.02rem, 1.55vw, 1.24rem);
  font-weight: 600;
  line-height: 1.62;
}

.article-block__media {
  width: min(100%, 570px);
  margin: 0;
  padding: 10px;
  border: 1px solid rgba(157, 192, 255, 0.13);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.07);
  justify-self: center;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(210px, 100%), 1fr));
  gap: 10px;
}

.article-block__media img {
  width: 100%;
  height: var(--article-copy-height);
  max-height: var(--article-copy-height);
  border-radius: 12px;
  object-fit: contain;
  object-position: center;
  background: rgba(6, 19, 51, 0.38);
}

.section__head--center {
  margin-inline: auto;
  text-align: center;
}

.section h2 {
  font-size: clamp(1.8rem, 3.4vw, 3.1rem);
}

.section__head {
  max-width: 740px;
  margin-bottom: 28px;
}

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

.ideas-panel {
  border: 1px solid rgba(85, 96, 124, 0.56);
  border-radius: 20px;
  background: #1b202c;
  padding: clamp(16px, 2.2vw, 24px);
  box-shadow: 0 22px 60px rgba(2, 8, 27, 0.28);
}

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

.ideas-panel h2 {
  margin: 0;
  color: #f8fbff;
  font-family: "Manrope", "Segoe UI", sans-serif;
  font-size: clamp(1.6rem, 2.2vw, 2rem);
  line-height: 1.15;
  font-weight: 900;
}

.ideas-toolbar {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
  padding: 2px 0 5px;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: none;
}

.ideas-toolbar::-webkit-scrollbar {
  display: none;
}

.ideas-tool {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 34px;
  padding: 0 14px;
  flex: 0 0 auto;
  border: 1px solid transparent;
  border-radius: 999px;
  background: #eef3f9;
  color: #627189;
  cursor: pointer;
  font-size: 0.82rem;
  font-weight: 600;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.ideas-tool:hover {
  border-color: rgba(136, 180, 255, 0.34);
  box-shadow: 0 0 0 3px rgba(136, 180, 255, 0.08);
}

.ideas-tool.is-active,
.ideas-tool--icon.is-active {
  background: #0d1529;
  color: #ffffff;
}

.ideas-tool--icon {
  width: 34px;
  padding: 0;
  border-radius: 999px;
}

.ideas-tool svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.ideas-search {
  position: relative;
  width: 100%;
  margin: 10px 0;
}

.ideas-search input {
  width: 100%;
  min-height: 34px;
  border: 1px solid rgba(95, 108, 139, 0.72);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.96);
  color: #1f2635;
  padding: 0 14px 0 38px;
  outline: none;
  font-size: 0.82rem;
  font-weight: 600;
}

.ideas-search svg {
  position: absolute;
  left: 14px;
  top: 50%;
  width: 17px;
  height: 17px;
  transform: translateY(-50%);
  fill: none;
  stroke: #66748d;
  stroke-width: 2.1;
  stroke-linecap: round;
  stroke-linejoin: round;
  pointer-events: none;
}

.ideas-search input::placeholder {
  color: rgba(99, 111, 132, 0.52);
}

.ideas-search input:focus {
  border-color: rgba(137, 168, 255, 0.78);
  box-shadow: 0 0 0 4px rgba(88, 125, 218, 0.14);
}

.ideas-grid-clip {
  position: relative;
}

.ideas-grid {
  --ideas-grid-gap: 14px;
  --ideas-grid-row-size: 8px;
  --ideas-grid-min-col-width: clamp(150px, 13vw, 230px);
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(var(--ideas-grid-min-col-width), 1fr));
  grid-auto-rows: var(--ideas-grid-row-size);
  gap: var(--ideas-grid-gap);
  grid-auto-flow: row;
  align-items: start;
}

@media (min-width: 761px) {
  .ideas-panel.is-collapsed .ideas-grid-clip {
    max-height: clamp(740px, 62vw, 980px);
    overflow: hidden;
  }

  .ideas-panel.is-collapsed .ideas-grid-clip::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 310px;
    pointer-events: none;
    background:
      linear-gradient(180deg,
        rgba(27, 32, 44, 0) 0%,
        rgba(27, 32, 44, 0.16) 22%,
        rgba(27, 32, 44, 0.42) 46%,
        rgba(27, 32, 44, 0.76) 72%,
        #1b202c 100%);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    mask-image: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.2) 18%, #000 48%);
    -webkit-mask-image: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.2) 18%, #000 48%);
  }

  .ideas-panel.is-collapsed .ideas-actions {
    position: relative;
    z-index: 3;
    margin-top: -94px;
    padding-bottom: 22px;
  }
}

.idea-card {
  position: relative;
  display: block;
  width: 100%;
  margin: 0;
  padding: 0;
  overflow: hidden;
  border: 1px solid rgba(82, 94, 122, 0.78);
  border-radius: 18px;
  background: #111827;
  color: inherit;
  cursor: pointer;
  grid-row: span var(--ideas-row-span, 42);
  box-shadow: 0 12px 26px rgba(2, 8, 27, 0.2);
  transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
  contain: layout paint;
}

.idea-card:focus-visible {
  outline: 3px solid rgba(116, 255, 241, 0.72);
  outline-offset: 3px;
}

.idea-card:hover {
  transform: translateY(-1px);
  border-color: rgba(146, 184, 255, 0.62);
  box-shadow: 0 18px 34px rgba(2, 8, 27, 0.3);
}

.idea-card.is-active {
  border-color: #74fff1;
  box-shadow: 0 0 0 2px rgba(116, 255, 241, 0.14), 0 18px 34px rgba(2, 8, 27, 0.34);
}

.idea-card img {
  width: 100%;
  height: auto;
  max-height: 800px;
  aspect-ratio: auto;
  object-fit: contain;
  object-position: center center;
  background: #101624;
}

.idea-card--tall img {
  aspect-ratio: auto;
}

.idea-card__share-link {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 999px;
  background: rgba(8, 14, 28, 0.58);
  color: #ffffff;
  text-decoration: none;
  backdrop-filter: blur(10px);
  box-shadow: 0 10px 22px rgba(2, 8, 27, 0.22);
  transition: background 0.2s ease, transform 0.2s ease;
}

.idea-card__share-link:hover,
.idea-card__share-link:focus-visible {
  background: rgba(36, 115, 255, 0.84);
  transform: translateY(-1px);
  outline: none;
}

.idea-card__share-link svg {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.ideas-empty {
  padding: 18px;
  color: #b9c6e4;
  font-weight: 800;
  text-align: center;
}

.ideas-actions {
  display: flex;
  justify-content: center;
  margin-top: 10px;
}

.ideas-more-btn {
  min-width: 190px;
}

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

.faq-list details {
  border: 1px solid rgba(157, 192, 255, 0.32);
  border-radius: 16px;
  background: rgba(11, 30, 80, 0.7);
  box-shadow: none;
  padding: 0;
}

.faq-list summary {
  position: relative;
  cursor: pointer;
  list-style: none;
  padding: 22px 46px 22px 24px;
  color: #f8fbff;
  font-weight: 800;
}

.faq-list summary::-webkit-details-marker {
  display: none;
}

.faq-list summary::after {
  content: "+";
  position: absolute;
  right: 24px;
  top: 50%;
  transform: translateY(-50%);
  color: #f8fbff;
  font-weight: 900;
}

.faq-list details[open] summary::after {
  content: "−";
}

.faq-list p {
  margin: 0;
  padding: 0 46px 22px 24px;
  color: var(--text-soft);
  font-weight: 700;
}

.footer {
  border-top: 1px solid rgba(157, 192, 255, 0.25);
  padding: 22px 0 36px;
  background: #111722;
}

.footer__inner {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  color: var(--text-soft);
}

.footer__inner strong {
  font-family: "Unbounded", "Manrope", sans-serif;
  color: #f2f7ff;
}

.footer__inner p {
  max-width: 560px;
  margin: 8px 0 0;
}

.footer__links {
  display: grid;
  grid-template-columns: repeat(2, minmax(180px, max-content));
  align-items: start;
  gap: 10px 40px;
}

.footer__links a {
  color: #f2f7ff;
  font-weight: 700;
  line-height: 1.35;
  text-decoration: none;
}

.footer__links a:hover {
  color: #86fff7;
  text-decoration: underline;
}

.results-section {
  background: transparent;
}

.results-page__section {
  min-height: calc(100vh - 110px);
  padding-top: clamp(30px, 4vw, 54px);
}

.results-page__hero {
  max-width: 820px;
  margin: 0 auto clamp(28px, 4vw, 44px);
  text-align: center;
}

.results-page__hero h1 {
  margin: 0;
  color: #f6fbff;
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 7vw, 5.2rem);
  line-height: 0.95;
  letter-spacing: -0.055em;
}

.results-page__hero p:not(.eyebrow) {
  max-width: 720px;
  margin: 18px auto 0;
  color: var(--text-soft);
  font-size: clamp(1.02rem, 2vw, 1.28rem);
  font-weight: 700;
  line-height: 1.55;
}

.results-panel {
  border-radius: 28px;
  padding: clamp(18px, 2vw, 26px);
  background: rgba(17, 25, 43, 0.72);
}

.results-panel--app {
  padding: clamp(18px, 2vw, 26px);
}

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

.results-app-head h1 {
  margin: 0;
  color: #f7fbff;
  font-family: var(--font-body);
  font-size: clamp(1.8rem, 3vw, 2.25rem);
  font-weight: 900;
  letter-spacing: -0.04em;
}

.results-refresh {
  display: none;
  min-height: 52px;
  padding-inline: 24px;
}

.results-panel .section__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 24px;
}

.results-panel .section__head p {
  max-width: 650px;
  margin: 10px 0 0;
  color: var(--text-soft);
  font-weight: 700;
}

.results-panel__meta {
  flex: 0 0 auto;
  padding: 10px 14px;
  border: 1px solid rgba(116, 255, 241, 0.28);
  border-radius: 999px;
  background: rgba(8, 35, 78, 0.7);
  color: #d9f7ff;
  font-weight: 900;
}

.results-empty {
  position: relative;
  overflow: hidden;
  padding: 24px;
  border: 1px dashed rgba(170, 203, 255, 0.28);
  border-radius: 22px;
  background: rgba(7, 18, 45, 0.52);
  color: var(--text-soft);
  text-align: center;
  font-weight: 800;
}

.results-empty__message {
  color: var(--text-soft);
  text-align: center;
  font-weight: 800;
}

.results-grid {
  --results-grid-gap: 10px;
  --results-grid-row-size: 8px;
  --results-grid-min-col-width: clamp(150px, 12.5vw, 230px);
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(var(--results-grid-min-col-width), 1fr));
  grid-auto-rows: var(--results-grid-row-size);
  gap: var(--results-grid-gap);
  grid-auto-flow: row;
  align-items: start;
}

.result-tile {
  position: relative;
  display: block;
  overflow: hidden;
  border: none;
  border-radius: 12px;
  background: transparent;
  cursor: pointer;
  color: inherit;
  text-align: left;
  text-decoration: none;
  grid-row: span var(--result-row-span, 12);
  contain: layout paint;
}

.results-page .results-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(var(--results-grid-min-col-width), 1fr));
}

.results-page .result-tile {
  width: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  border-radius: 12px;
}

.results-page .result-tile img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 800px;
  border-radius: 12px;
  object-fit: cover;
  object-position: center;
  background: rgba(12, 18, 30, 0.55);
}

.result-tile img {
  width: 100%;
  height: auto;
  max-height: 800px;
  object-fit: cover;
}

.result-tile__body {
  padding: 12px;
}

.result-tile__body strong {
  display: block;
  color: #f7fbff;
  font-size: 0.92rem;
  line-height: 1.25;
}

.result-tile__body span {
  display: block;
  margin-top: 4px;
  color: var(--text-soft);
  font-size: 0.82rem;
  font-weight: 700;
}

.results-actions {
  display: flex;
  justify-content: center;
  margin-top: 22px;
}

.result-preview-modal,
.result-delete-confirm {
  position: fixed;
  inset: 0;
  z-index: 150;
}

.result-preview-modal[hidden],
.result-delete-confirm[hidden] {
  display: none;
}

.result-preview-modal__backdrop,
.result-delete-confirm__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(3, 8, 24, 0.78);
  backdrop-filter: blur(12px);
}

.result-preview-modal__card {
  position: relative;
  z-index: 1;
  width: min(860px, calc(100vw - 24px));
  max-height: calc(100dvh - 28px);
  margin: 14px auto;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  border: 1px solid rgba(151, 185, 255, 0.3);
  border-radius: 22px;
  background: #0f1524;
  padding: 12px;
}

.result-preview-modal__image-wrap {
  position: relative;
  display: grid;
  min-height: min(74vh, 980px);
  place-items: center;
  border-radius: 20px;
  overflow: hidden;
  background: #151d2f;
}

.result-preview-modal__image-wrap img {
  display: block;
  width: 100%;
  height: min(74vh, 980px);
  max-height: none;
  object-fit: contain;
  object-position: center center;
  background: #11192a;
}

.result-preview-modal__close,
.result-preview-modal__nav {
  position: absolute;
  z-index: 4;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.34);
  border-radius: 999px;
  background: rgba(22, 26, 35, 0.6);
  color: #ffffff;
  cursor: pointer;
}

.result-preview-modal__close {
  top: 10px;
  right: 10px;
  width: 56px;
  height: 56px;
  font-size: 40px;
  line-height: 1;
}

.result-preview-modal__nav {
  top: 50%;
  width: 58px;
  height: 124px;
  transform: translateY(-50%);
  border-radius: 20px;
  font-size: 52px;
  line-height: 1;
}

.result-preview-modal__nav--prev {
  left: 10px;
}

.result-preview-modal__nav--next {
  right: 10px;
}

.result-preview-modal__nav:disabled {
  opacity: 0.3;
  cursor: default;
}

.result-preview-modal__actions {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 12px;
  padding: 8px;
  border: 1px solid #3f4a66;
  border-radius: 18px;
  background: rgba(18, 24, 39, 0.95);
}

.result-action-btn {
  min-height: 48px;
  flex: 1 1 0;
  border: 1px solid #4d5d82;
  border-radius: 14px;
  background: #1f2740;
  color: #eef3ff;
  font-size: 1rem;
  font-weight: 900;
  cursor: pointer;
  white-space: nowrap;
}

.result-action-btn--danger {
  flex: 0 0 auto;
  border-color: rgba(255, 118, 142, 0.44);
  background: rgba(75, 24, 39, 0.86);
  color: #ffc8d0;
}

.result-delete-confirm {
  z-index: 170;
}

.result-delete-confirm__card {
  position: relative;
  z-index: 1;
  width: min(360px, calc(100vw - 28px));
  margin: 30vh auto 0;
  border: 1px solid rgba(151, 185, 255, 0.3);
  border-radius: 22px;
  background: rgba(17, 25, 43, 0.98);
  padding: 22px;
  text-align: center;
}

.result-delete-confirm__card p {
  margin: 0 0 18px;
  color: #f8fbff;
  font-size: 1.05rem;
  font-weight: 900;
}

.result-delete-confirm__actions {
  display: flex;
  justify-content: center;
  gap: 10px;
}

.result-delete-confirm__btn {
  min-width: 110px;
  min-height: 42px;
  border: 1px solid rgba(151, 185, 255, 0.34);
  border-radius: 12px;
  background: rgba(22, 43, 96, 0.9);
  color: #f5f9ff;
  font-weight: 900;
  cursor: pointer;
}

.result-delete-confirm__btn--danger {
  border-color: rgba(255, 118, 142, 0.44);
  background: rgba(99, 35, 51, 0.9);
  color: #ffc8d0;
}

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

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

.auth-modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(2, 8, 27, 0.72);
  backdrop-filter: blur(12px);
}

.auth-modal__dialog {
  position: relative;
  width: min(460px, 100%);
  height: min(720px, calc(100svh - 36px));
  overflow: hidden;
  border: 1px solid rgba(151, 185, 255, 0.34);
  border-radius: 28px;
  background: #081532;
  box-shadow: 0 34px 90px rgba(2, 8, 27, 0.48);
}

.auth-modal__dialog iframe {
  width: 100%;
  height: 100%;
  border: 0;
  background: #081532;
}

.auth-modal__close {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  width: 38px;
  height: 38px;
  border: 1px solid rgba(151, 185, 255, 0.38);
  border-radius: 14px;
  background: rgba(7, 18, 45, 0.76);
  color: #ffffff;
  cursor: pointer;
  font-size: 1.4rem;
  line-height: 1;
}

.purchase-modal {
  position: fixed;
  inset: 0;
  z-index: 140;
}

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

.purchase-modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(3, 8, 24, 0.72);
  backdrop-filter: blur(12px);
}

.purchase-modal__card {
  position: relative;
  z-index: 1;
  width: min(520px, calc(100vw - 28px));
  max-height: calc(100dvh - 28px);
  margin: clamp(34px, 7vh, 76px) auto;
  overflow-y: auto;
  border: 1px solid rgba(151, 185, 255, 0.34);
  border-radius: 28px;
  background: rgba(17, 25, 43, 0.96);
  box-shadow: 0 30px 90px rgba(1, 7, 25, 0.52);
  padding: clamp(18px, 3vw, 26px);
  color: #f6f9ff;
}

.purchase-modal__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
}

.purchase-modal__head h2 {
  margin: 0;
  font-size: clamp(1.45rem, 3vw, 1.9rem);
  line-height: 1;
}

.purchase-modal__close {
  width: 42px;
  height: 42px;
  border: 1px solid rgba(151, 185, 255, 0.32);
  border-radius: 14px;
  background: rgba(7, 18, 45, 0.7);
  color: #ffffff;
  font-size: 1.7rem;
  cursor: pointer;
}

.purchase-modal__subtitle {
  margin: -4px 0 14px;
  color: #b5c2e4;
  font-size: 0.88rem;
  line-height: 1.35;
  white-space: pre-line;
}

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

.purchase-package {
  min-height: 74px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas:
    "head price"
    "meta price";
  align-items: center;
  gap: 3px 14px;
  padding: 12px 16px;
  border: 1px solid rgba(151, 185, 255, 0.26);
  border-radius: 18px;
  background: rgba(7, 18, 45, 0.62);
  color: #f5f9ff;
  cursor: pointer;
  text-align: left;
  transition: border-color 0.18s ease, background 0.18s ease;
}

.purchase-package:hover {
  border-color: rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.065);
}

.purchase-package__head {
  grid-area: head;
  display: flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
}

.purchase-package__title {
  min-width: 0;
  color: #ffffff;
  font-size: 1.02rem;
  line-height: 1.18;
  font-weight: 900;
}

.purchase-package__badge {
  flex: 0 0 auto;
  min-width: 0;
  color: #ffd7a0;
  font-size: 0.78rem;
  line-height: 1.18;
  font-weight: 900;
  text-align: left;
  word-break: break-word;
}

.purchase-package__limit,
.purchase-package__subtitle {
  grid-area: meta;
  color: #aebbd9;
  font-size: 0.8rem;
  line-height: 1.2;
  font-weight: 700;
}

.purchase-package__subtitle {
  margin-left: 6px;
}

.purchase-package__price {
  grid-area: price;
  align-self: center;
  color: #86fff7;
  font-size: 1.02rem;
  line-height: 1.2;
  font-weight: 900;
  white-space: nowrap;
}

.purchase-package.is-selected {
  border-color: rgba(116, 255, 241, 0.75);
  background: rgba(25, 93, 116, 0.46);
  box-shadow: 0 0 0 1px rgba(83, 255, 239, 0.13);
}

.purchase-modal__status {
  min-height: 18px;
  margin-top: 10px;
  color: #9faccc;
  font-size: 0.86rem;
  line-height: 1.35;
  font-weight: 600;
}

.purchase-modal__status.is-ok {
  color: #86fff7;
}

.purchase-modal__status.is-error {
  color: #ffc8d0;
}

.purchase-modal__pay {
  width: 100%;
  min-height: 58px;
  margin-top: 14px;
  border: 1px solid rgba(116, 255, 241, 0.52);
  border-radius: 18px;
  background: linear-gradient(135deg, var(--cyan), var(--blue));
  color: #ffffff;
  font-size: 1.05rem;
  font-weight: 900;
  cursor: pointer;
  box-shadow: 0 12px 30px rgba(32, 104, 255, 0.28);
}

.purchase-modal__pay:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.purchase-modal__legal {
  margin: 10px 2px 0;
  color: #8f9ab6;
  font-size: 0.8rem;
  line-height: 1.35;
  text-align: center;
}

.purchase-modal__legal a {
  color: #c6d7ff;
  text-decoration: underline;
}

.purchase-modal__complete {
  margin-top: 14px;
  border: 1px solid rgba(100, 141, 226, 0.72);
  border-radius: 16px;
  background: rgba(31, 55, 99, 0.78);
  padding: 24px 18px;
  text-align: center;
}

.purchase-modal__complete[hidden] {
  display: none;
}

.purchase-modal__complete-text {
  color: #dce9ff;
  font-size: clamp(1.05rem, 2vw, 1.35rem);
  line-height: 1.25;
  font-weight: 900;
}

.purchase-modal__complete-button {
  width: 100%;
  min-height: 58px;
  margin-top: 18px;
  border: 1px solid rgba(132, 171, 255, 0.74);
  border-radius: 14px;
  background: #346de2;
  color: #ffffff;
  font-size: 1.02rem;
  font-weight: 900;
  cursor: pointer;
}

.profile-modal {
  position: fixed;
  inset: 0;
  z-index: 142;
}

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

.profile-modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(3, 8, 24, 0.72);
  backdrop-filter: blur(12px);
}

.profile-modal__card {
  position: relative;
  z-index: 1;
  width: min(520px, calc(100vw - 28px));
  margin: clamp(34px, 12vh, 110px) auto;
  border: 1px solid rgba(151, 185, 255, 0.34);
  border-radius: 28px;
  background: rgba(17, 25, 43, 0.96);
  box-shadow: 0 30px 90px rgba(1, 7, 25, 0.52);
  padding: clamp(18px, 3vw, 26px);
  color: #f6f9ff;
}

.profile-modal__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
}

.profile-modal__head h2 {
  margin: 0;
  font-size: clamp(1.45rem, 3vw, 1.9rem);
  line-height: 1;
}

.profile-modal__close {
  width: 42px;
  height: 42px;
  border: 1px solid rgba(151, 185, 255, 0.32);
  border-radius: 14px;
  background: rgba(7, 18, 45, 0.7);
  color: #ffffff;
  font-size: 1.7rem;
  cursor: pointer;
}

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

.profile-modal__stat {
  padding: 16px;
  border: 1px solid rgba(151, 185, 255, 0.26);
  border-radius: 16px;
  background: rgba(7, 18, 45, 0.62);
}

.profile-modal__stat span {
  display: block;
  color: #aeb8cd;
  font-weight: 800;
}

.profile-modal__stat strong {
  display: block;
  margin-top: 6px;
  color: #ffffff;
  font-size: 1.7rem;
}

.profile-modal__buy {
  width: 100%;
  min-height: 50px;
  margin-top: 14px;
  border: 1px solid rgba(116, 255, 241, 0.5);
  border-radius: 16px;
  background: rgba(24, 75, 86, 0.72);
  color: #ffffff;
  font: inherit;
  font-weight: 900;
  cursor: pointer;
}

[hidden] {
  display: none !important;
}

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

  .hero__copy {
    text-align: center;
  }

  .hero h1,
  .hero__lead {
    margin-left: auto;
    margin-right: auto;
  }

  .hero__facts {
    justify-content: center;
  }

  .ideas-grid {
    --ideas-grid-min-col-width: clamp(145px, 22vw, 205px);
  }

  .results-grid {
    --results-grid-min-col-width: clamp(145px, 15vw, 195px);
  }

  .results-page .results-grid {
    grid-template-columns: repeat(auto-fill, minmax(var(--results-grid-min-col-width), 1fr));
  }
}

@media (max-width: 760px) {
  .container {
    width: min(100% - 24px, 1180px);
  }

  .topbar__inner {
    min-height: 62px;
    justify-content: flex-start;
    gap: 8px;
    padding: 8px;
    border-radius: 22px;
  }

  .brand {
    position: static;
    transform: none;
    flex: 1 1 auto;
    min-width: 0;
    order: 1;
    gap: 8px;
  }

  .brand img {
    width: 30px;
    height: 30px;
    flex: 0 0 auto;
  }

  .brand span {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 1rem;
  }

  .token-badge {
    position: static;
    transform: none;
    order: 2;
    min-height: 40px;
    padding: 7px 10px;
    gap: 0;
    border-radius: 18px;
    font-size: 0.96rem;
    white-space: nowrap;
  }

  .token-badge__plus {
    display: none;
  }

  .landing-profile {
    position: static;
    transform: none;
    order: 3;
    flex: 0 0 auto;
  }

  .landing-profile__button {
    width: 42px;
    height: 42px;
  }

  .landing-profile__avatar {
    width: 30px;
    height: 30px;
  }

  .landing-profile__menu {
    position: fixed;
    left: auto;
    right: 12px;
    top: 76px;
    width: min(238px, calc(70vw - 12px));
  }

  .menu-toggle {
    display: inline-block;
    order: 4;
    flex: 0 0 auto;
    margin-left: 0;
  }

  .nav {
    position: absolute;
    left: 12px;
    right: 12px;
    top: calc(100% + 8px);
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: #08183f;
  }

  .nav.is-open {
    display: flex;
  }

  .topbar__cta {
    position: static;
    transform: none;
    order: 3;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 8px 14px;
    border-radius: 16px;
    white-space: nowrap;
  }

  .results-panel .section__head {
    align-items: flex-start;
    flex-direction: column;
  }

  .results-grid {
    --results-grid-gap: 8px;
    --results-grid-min-col-width: min(176px, 44vw);
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .results-app-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .results-refresh {
    width: 100%;
  }

  .result-delete-confirm__actions {
    flex-direction: column;
  }

  .result-preview-modal__actions {
    flex-direction: row;
    flex-wrap: nowrap;
  }

  .result-preview-modal__actions .result-action-btn {
    min-width: 0;
    padding-inline: 10px;
  }

  .result-preview-modal__card {
    width: 100%;
    max-width: none;
    height: calc(100dvh - 16px);
    max-height: none;
    margin: 8px auto;
    display: flex;
    flex-direction: column;
    gap: 8px;
    border-radius: 20px;
    padding: 8px;
  }

  .result-preview-modal__image-wrap {
    flex: 1 1 auto;
    min-height: 0;
    border-radius: 16px;
  }

  .result-preview-modal__image-wrap img {
    height: 100%;
  }

  .result-preview-modal__nav {
    width: 42px;
    height: 72px;
    border-radius: 12px;
    font-size: 34px;
  }

  .result-preview-modal__close {
    top: 12px;
    right: 12px;
    width: 46px;
    height: 46px;
    font-size: 30px;
  }

  .result-preview-modal__nav--prev {
    left: 8px;
  }

  .result-preview-modal__nav--next {
    right: 8px;
  }

  .hero {
    padding: 30px 0 48px;
  }

  .creator {
    border-radius: 22px;
    padding: 14px;
  }

  .creator__stage {
    grid-template-columns: minmax(0, 1fr) 30px minmax(0, 1fr);
    gap: 8px;
    align-items: center;
  }

  .creator__plus {
    font-size: 2.4rem;
  }

  .style-preview,
  .upload-card {
    max-width: none;
  }

  .style-thumb-rail {
    width: max-content;
    max-width: calc(100vw - 28px);
    justify-content: center;
    gap: 8px;
    margin-top: -16px;
    margin-left: auto;
    margin-right: auto;
    padding: 5px 4px 7px;
  }

  .hero__facts--below {
    margin-top: -14px;
  }

  .hero__create {
    margin-top: -12px;
  }

  .style-thumb {
    width: 52px;
    height: 52px;
    flex-basis: 52px;
    border-radius: 15px;
  }

  .style-thumb--more {
    width: auto;
    min-width: 116px;
    flex-basis: 116px;
    padding-inline: 14px;
    font-size: 0.78rem;
  }

  .upload-card__empty,
  .upload-card__preview {
    padding: 14px 10px;
    gap: 8px;
  }

  .upload-card__preview {
    padding: 10px;
  }

  .upload-card__preview img {
    width: 100%;
    height: 100%;
    max-width: none;
    object-fit: cover;
  }

  .upload-card__preview span {
    display: none;
  }

  .upload-card__icon {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    font-size: 1.45rem;
  }

  .upload-card__icon svg {
    width: 24px;
    height: 24px;
  }

  .upload-card strong {
    max-width: 150px;
    font-size: clamp(1rem, 4.6vw, 1.35rem);
  }

  .upload-card__empty > span:not(.upload-card__icon) {
    max-width: 150px;
    font-size: clamp(0.76rem, 3.4vw, 0.92rem);
    line-height: 1.25;
  }

  .upload-card small {
    font-size: 0.7rem;
  }

  .style-preview__body {
    display: none;
  }

  .result-card__image img {
    min-height: 220px;
    max-height: 360px;
  }

  .article-panel {
    padding-inline: 0;
    border: 0;
    background: transparent;
  }

  .article-block,
  .article-block--media-first {
    --article-copy-height: auto;
    grid-template-columns: 1fr;
    gap: 22px;
    margin-top: 48px;
  }

  .article-block--media-first .article-block__media {
    order: 2;
  }

  .article-block--media-first .article-block__copy {
    order: 1;
  }

  .article-block__icon {
    width: 52px;
    height: 52px;
    margin-bottom: 18px;
  }

  .article-block p {
    margin-top: 18px;
  }

  .article-block__media {
    grid-template-columns: 1fr 1fr;
  }

  .article-block__media img {
    height: auto;
    max-height: none;
  }

  .process-flow {
    grid-template-columns: 1fr;
    gap: 10px;
    margin-top: 22px;
  }

  .process-flow__item {
    grid-template-columns: 44px minmax(0, 1fr) 34px;
    min-height: auto;
    padding: 14px;
    border-radius: 16px;
  }

  .process-flow__badge {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    font-size: 0.92rem;
  }

  .process-flow__icon {
    width: 34px;
    height: 34px;
    border-radius: 10px;
  }

  .process-flow__icon svg {
    width: 20px;
    height: 20px;
  }

  .process-flow__item p {
    font-size: 0.94rem;
  }

  .ideas-panel__head {
    align-items: stretch;
    flex-direction: column;
  }

  .ideas-search {
    width: 100%;
    flex-basis: auto;
  }

  .ideas-grid {
    --ideas-grid-gap: 10px;
    --ideas-grid-min-col-width: 0px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .idea-card {
    border-radius: 14px;
  }

  .idea-card__share-link {
    width: 34px;
    height: 34px;
    top: 8px;
    right: 8px;
  }

  .idea-card__share-link svg {
    width: 17px;
    height: 17px;
  }

  .footer__inner {
    flex-direction: column;
  }

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

@media (max-width: 520px) {
  .hero h1 {
    font-size: 2rem;
  }

  .ideas-panel {
    padding: 14px;
    border-radius: 18px;
  }

  .creator__actions {
    align-items: stretch;
  }

  .creator__actions .btn {
    width: 100%;
  }

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

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

}

@media (max-width: 420px) {
  .creator {
    padding: 10px;
  }

  .creator__stage {
    grid-template-columns: minmax(0, 1fr) 24px minmax(0, 1fr);
    gap: 6px;
  }

  .creator__plus {
    font-size: 2rem;
  }

  .style-thumb--more {
    min-width: 106px;
    flex-basis: 106px;
    padding-inline: 12px;
    font-size: 0.74rem;
  }

  .upload-card__empty,
  .upload-card__preview {
    padding: 10px 8px;
  }

  .upload-card__preview {
    padding: 10px;
  }

  .upload-card__remove {
    top: 16px;
    right: 16px;
    width: 40px;
    height: 40px;
    border-radius: 13px;
  }

  .upload-card__remove svg {
    width: 20px;
    height: 20px;
  }

  .upload-card__empty > span:not(.upload-card__icon),
  .upload-card small {
    display: none;
  }
}
