:root {
  --page-bg: radial-gradient(circle at top, #1a2745 0%, #0d1322 38%, #05070f 100%);
  --panel-bg: rgba(10, 14, 28, 0.96);
  --panel-border: rgba(255, 255, 255, 0.12);
  --text-main: #f6f4ed;
  --text-muted: rgba(246, 244, 237, 0.68);
  --accent: #f0bb78;
  --accent-strong: #f29d35;
  --card-shadow: 0 30px 80px rgba(0, 0, 0, 0.35);
  --poster-bg: #05070f;
  --poster-fg: #faf8f2;
  --font-ui: "Segoe UI", sans-serif;
  --font-poster: Georgia, serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--page-bg);
  color: var(--text-main);
  font-family: var(--font-ui);
}

button,
input,
textarea,
select {
  font: inherit;
}

.page-shell {
  width: min(1440px, calc(100vw - 32px));
  margin: 0 auto;
  padding: 20px 0 40px;
}

.hero-card {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(280px, 0.9fr);
  gap: 24px;
  align-items: end;
  margin-bottom: 24px;
  padding: 28px;
  border-radius: 32px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background:
    radial-gradient(circle at top left, rgba(240, 187, 120, 0.16), transparent 28%),
    radial-gradient(circle at bottom right, rgba(92, 145, 255, 0.14), transparent 32%),
    rgba(9, 13, 27, 0.96);
  box-shadow: var(--card-shadow);
  isolation: isolate;
  overflow: hidden;
}

.hero-topline {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 16px;
}

.brand-row {
  display: flex;
  align-items: center;
  gap: 0;
  margin-bottom: 18px;
}

.brand-link {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  border-radius: 999px;
}

.hero-tools {
  position: absolute;
  top: 22px;
  right: 22px;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 10px;
}

.brand-logo {
  position: relative;
  width: 74px;
  height: 74px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 30% 30%, rgba(255, 230, 179, 0.18), transparent 38%),
    radial-gradient(circle at center, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.01));
  transition: transform 0.2s ease, filter 0.2s ease;
}

.brand-link:hover .brand-logo {
  transform: translateY(-1px) scale(1.02);
  filter: brightness(1.05);
}

.brand-logo__ring {
  position: absolute;
  inset: 9px;
  border-radius: 50%;
  border: 1.5px solid rgba(255, 255, 255, 0.6);
}

.brand-logo__core {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #fff5d6;
  box-shadow: 0 0 22px rgba(255, 231, 175, 0.95);
}

.brand-logo__orbit {
  position: absolute;
  inset: 16px 10px;
  border-radius: 50%;
  border: 1px solid rgba(240, 187, 120, 0.42);
}

.brand-logo__orbit--a {
  transform: rotate(28deg) scaleX(1.04);
}

.brand-logo__orbit--b {
  transform: rotate(-28deg) scaleY(0.86);
  border-color: rgba(130, 178, 255, 0.34);
}

.brand-logo__spark {
  position: absolute;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #faf8f2;
  opacity: 0.9;
}

.brand-logo__spark--a {
  top: 18px;
  right: 16px;
}

.brand-logo__spark--b {
  bottom: 17px;
  left: 15px;
}

.hero-card h1 {
  margin: 0 0 14px;
  max-width: 20ch;
  font-size: clamp(1.9rem, 3.1vw, 3.15rem);
  line-height: 1.02;
  letter-spacing: -0.04em;
  text-wrap: balance;
}

.hero-card h1 span {
  display: block;
}

.hero-card h1 span:first-child {
  white-space: nowrap;
}

.hero-description {
  max-width: 62ch;
  margin: 0;
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.65;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
  margin-top: 24px;
}

.hero-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 58px;
  padding: 0 18px 0 24px;
  border-radius: 999px;
  background:
    radial-gradient(circle at 20% 20%, rgba(255, 247, 214, 0.35), transparent 36%),
    linear-gradient(135deg, #f2c98b 0%, #f29d35 58%, #e48a1f 100%);
  color: #1d1203;
  font-weight: 800;
  text-decoration: none;
  box-shadow:
    0 18px 40px rgba(242, 157, 53, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.35);
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.hero-cta:hover {
  transform: translateY(-1px);
  filter: saturate(1.04);
  box-shadow:
    0 22px 46px rgba(242, 157, 53, 0.32),
    inset 0 1px 0 rgba(255, 255, 255, 0.42);
}

.hero-cta--secondary {
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-main);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow:
    0 14px 30px rgba(0, 0, 0, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.hero-cta--secondary:hover {
  filter: none;
  border-color: rgba(240, 187, 120, 0.28);
  background: rgba(255, 255, 255, 0.07);
  box-shadow:
    0 18px 34px rgba(0, 0, 0, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.hero-cta__arrow {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(29, 18, 3, 0.12);
  font-size: 1rem;
  line-height: 1;
}

.hero-cta__arrow--secondary {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-main);
}

.hero-note {
  display: grid;
  gap: 2px;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.language-switcher {
  display: inline-flex;
  gap: 8px;
  padding: 6px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.04);
}

.hero-instagram {
  min-height: 46px;
  padding: 0 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-main);
  text-decoration: none;
  font-size: 0.84rem;
  font-weight: 700;
}

.hero-instagram:hover {
  border-color: rgba(240, 187, 120, 0.28);
  background: rgba(255, 255, 255, 0.07);
}

.language-button {
  min-height: 34px;
  padding: 0 12px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--text-muted);
  font-size: 0.82rem;
  font-weight: 800;
  cursor: pointer;
}

.language-button.is-active {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-main);
}

.hero-side {
  padding: 18px;
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.04);
}

.hero-badge {
  display: inline-flex;
  margin-bottom: 14px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-main);
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-side p {
  margin: 0;
  color: var(--text-muted);
  line-height: 1.65;
}

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

.controls {
  min-width: 0;
}

.builder-card,
.panel,
.preview-card {
  background: var(--panel-bg);
  border: 1px solid var(--panel-border);
  border-radius: 28px;
  box-shadow: var(--card-shadow);
  isolation: isolate;
  overflow: hidden;
}

.builder-card {
  padding: 20px;
}

.builder-header {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  align-items: start;
  margin-bottom: 18px;
  padding: 18px;
  border-radius: 22px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.015));
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.builder-header__copy {
  min-width: 0;
}

.builder-eyebrow {
  color: var(--text-muted);
  font-size: 0.82rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.builder-header h2 {
  margin: 6px 0 0;
  max-width: 15ch;
  font-size: clamp(1.7rem, 2.2vw, 2.25rem);
  line-height: 1.04;
  letter-spacing: -0.03em;
}

.builder-title span {
  display: block;
}

.builder-tabs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 14px;
}

.builder-tab {
  min-height: 48px;
  padding: 10px 14px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-main);
  font-weight: 700;
  cursor: pointer;
}

.builder-tab.is-active {
  border-color: rgba(240, 187, 120, 0.4);
  background: linear-gradient(135deg, rgba(240, 187, 120, 0.18), rgba(120, 166, 255, 0.1));
}

.builder-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 16px;
}

.summary-chip {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-muted);
  font-size: 0.84rem;
}

.tab-panel {
  display: none;
}

.tab-panel.is-active {
  display: block;
}

.panel {
  padding: 20px;
}

.panel--inner {
  background: rgba(255, 255, 255, 0.03);
}

.panel h2 {
  margin: 0 0 16px;
  font-size: 1.1rem;
}

.panel h3 {
  margin: 0 0 10px;
  font-size: 1.12rem;
}

.panel-intro {
  margin: 0 0 16px;
  color: var(--text-muted);
  line-height: 1.55;
  font-size: 0.92rem;
}

.preset-copy,
.preset-name {
  color: var(--text-muted);
  font-size: 0.84rem;
  line-height: 1.45;
  margin: 0;
}

.preset-random-button {
  width: 100%;
  margin: 14px 0 10px;
  padding: 16px 18px;
  border-radius: 18px;
  border: 1px solid rgba(240, 187, 120, 0.22);
  background: linear-gradient(135deg, rgba(240, 187, 120, 0.18), rgba(120, 166, 255, 0.12));
  color: var(--text-main);
  font-weight: 700;
  cursor: pointer;
}

.preset-random-button--header {
  width: fit-content;
  margin: 0;
  min-height: 56px;
  padding: 0 22px;
  white-space: nowrap;
  border-radius: 20px;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.04);
  justify-self: start;
}

.preset-random-button:hover {
  border-color: rgba(240, 187, 120, 0.45);
  background: linear-gradient(135deg, rgba(240, 187, 120, 0.24), rgba(120, 166, 255, 0.18));
}

.field-grid {
  display: grid;
  gap: 12px;
}

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

label {
  display: grid;
  gap: 8px;
  margin-bottom: 14px;
}

.export-email-field {
  margin-bottom: 22px;
}

label span,
.status-block p:first-child {
  font-size: 0.92rem;
}

label small {
  color: var(--text-muted);
  font-size: 0.82rem;
  line-height: 1.45;
}

input,
textarea,
select {
  width: 100%;
  min-height: 52px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 16px;
  padding: 12px 14px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-main);
}

input[type="date"],
input[type="time"] {
  color-scheme: dark;
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 18px 18px;
  padding-right: 42px;
}

input[type="date"]::-webkit-calendar-picker-indicator,
input[type="time"]::-webkit-calendar-picker-indicator {
  opacity: 0;
  cursor: pointer;
}

input[type="date"] {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 20 20' fill='none'%3E%3Crect x='3.25' y='4.75' width='13.5' height='12' rx='2' stroke='%23F6F4ED' stroke-width='1.5'/%3E%3Cpath d='M6.5 2.75V6' stroke='%23F6F4ED' stroke-width='1.5' stroke-linecap='round'/%3E%3Cpath d='M13.5 2.75V6' stroke='%23F6F4ED' stroke-width='1.5' stroke-linecap='round'/%3E%3Cpath d='M3.5 7.25H16.5' stroke='%23F6F4ED' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E");
}

input[type="time"] {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 20 20' fill='none'%3E%3Ccircle cx='10' cy='10' r='6.75' stroke='%23F6F4ED' stroke-width='1.5'/%3E%3Cpath d='M10 6.75V10.25L12.5 11.75' stroke='%23F6F4ED' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

select option {
  color: #10141d;
  background: #f3f5f8;
}

textarea {
  resize: vertical;
}

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

.toggle-grid {
  display: grid;
  gap: 8px;
}

.toggle {
  grid-template-columns: 20px 1fr;
  align-items: center;
}

.toggle input {
  width: 18px;
  height: 18px;
  margin: 0;
}

.status-block {
  color: var(--text-muted);
  line-height: 1.6;
}

.status-card {
  padding: 16px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text-muted);
}

.status-card__label {
  margin-bottom: 8px;
  color: var(--text-main);
  font-size: 0.82rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.status-block p {
  margin: 0 0 10px;
}

.export-checklist {
  display: grid;
  gap: 10px;
  margin-top: 16px;
}

.payment-card {
  display: grid;
  gap: 14px;
  margin-top: 16px;
  padding: 16px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  min-width: 0;
  overflow: hidden;
}

.payment-card__label {
  color: var(--text-main);
  font-size: 0.82rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.payment-card.is-hidden,
.payment-method.is-hidden {
  display: none;
}

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

.payment-method {
  position: relative;
  display: flex;
  min-width: 0;
}

.payment-method input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.payment-method span {
  width: 100%;
  min-width: 0;
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-main);
  font-weight: 700;
  transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.payment-method input:checked + span {
  border-color: rgba(240, 187, 120, 0.55);
  background: linear-gradient(135deg, rgba(240, 187, 120, 0.18), rgba(120, 166, 255, 0.12));
  transform: translateY(-1px);
}

.payment-panel {
  display: grid;
  gap: 14px;
  padding: 14px;
  border-radius: 18px;
  background: rgba(6, 10, 20, 0.46);
  border: 1px solid rgba(255, 255, 255, 0.06);
  min-width: 0;
  overflow: hidden;
}

.payment-panel__copy {
  margin: 0;
  color: var(--text-muted);
  line-height: 1.6;
}

.payment-wallet {
  display: flex;
  align-items: flex-end;
  gap: 12px;
  min-width: 0;
}

.payment-wallet__main {
  min-width: 0;
  flex: 1 1 auto;
}

.payment-wallet__label,
.payment-amount__label {
  display: block;
  margin-bottom: 6px;
  color: var(--text-muted);
  font-size: 0.78rem;
}

.payment-wallet__label {
  white-space: nowrap;
}

.payment-wallet__value {
  min-height: 42px;
  width: 100%;
  max-width: 100%;
  padding: 10px 12px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text-main);
  font-family: "Consolas", "Courier New", monospace;
  display: flex;
  align-items: center;
  font-size: 0.74rem;
  line-height: 1.2;
  white-space: nowrap;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: none;
}

.payment-wallet__value::-webkit-scrollbar {
  display: none;
}

.payment-amount {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.payment-amount strong {
  color: var(--text-main);
  font-size: 1.05rem;
}

.payment-actions {
  display: flex;
  justify-content: flex-start;
}

.payment-status {
  margin: 0;
  color: var(--text-muted);
  line-height: 1.55;
}

.payment-status.is-success {
  color: #9be3ae;
}

.payment-status.is-error {
  color: #ffb3b3;
}

.secondary-button {
  min-height: 44px;
  padding: 0 16px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-main);
  font-weight: 700;
  cursor: pointer;
}

.secondary-button:hover {
  border-color: rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.1);
}

.copy-icon-button {
  flex: 0 0 auto;
  min-height: 42px;
  padding: 0 10px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-main);
  font-weight: 700;
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.copy-icon-button:hover {
  border-color: rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.1);
}

.copy-icon-button__icon {
  font-size: 0.86rem;
  line-height: 1;
}

.copy-icon-button__label {
  font-size: 0.72rem;
}

.copy-icon-button.is-copied {
  border-color: rgba(88, 214, 141, 0.46);
  background: rgba(88, 214, 141, 0.16);
  color: #9be3ae;
}

.export-item {
  display: grid;
  grid-template-columns: 24px 1fr;
  gap: 10px;
  color: var(--text-muted);
  line-height: 1.55;
}

.section-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 18px;
}

.section-actions--export {
  justify-content: flex-end;
  min-width: 0;
}

.builder-next,
.builder-back {
  min-height: 46px;
  padding: 0 18px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-main);
  font-weight: 700;
  cursor: pointer;
}

.cta-button {
  border: 0;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-strong) 100%);
  color: #1d1203;
  font-weight: 700;
  padding: 16px 24px;
  cursor: pointer;
  box-shadow: 0 14px 30px rgba(242, 157, 53, 0.28);
}

.cta-button:disabled,
.secondary-button:disabled,
.copy-icon-button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  box-shadow: none;
}

.cta-button--panel {
  width: 100%;
  margin-top: 12px;
}

.preview-card {
  padding: 18px;
}

.preview-column {
  position: sticky;
  top: 20px;
}

.preview-toolbar {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.preview-toolbar__hint {
  white-space: nowrap;
}

.preview-note {
  margin: -2px 0 12px;
  color: var(--text-muted);
  font-size: 0.82rem;
  line-height: 1.45;
}

.poster-frame {
  position: relative;
  min-height: 82vh;
  padding: clamp(16px, 2vw, 28px);
  border-radius: 24px;
  background:
    radial-gradient(circle at top right, rgba(240, 187, 120, 0.12), transparent 28%),
    radial-gradient(circle at bottom left, rgba(80, 136, 255, 0.14), transparent 30%),
    rgba(255, 255, 255, 0.04);
}

.poster-surface {
  height: 100%;
}

.poster {
  position: relative;
  width: min(100%, 840px);
  aspect-ratio: 297 / 420;
  margin: 0 auto;
  background: var(--poster-bg);
  color: var(--poster-fg);
  border-radius: 28px;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.4);
  overflow: hidden;
  font-family: var(--font-poster);
}

.poster__watermark-layer {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  align-content: space-between;
  gap: 40px 24px;
  padding: 56px 24px;
  pointer-events: none;
  overflow: hidden;
}

.poster__watermark {
  color: rgba(255, 255, 255, 0.055);
  font-size: clamp(0.78rem, 1vw, 0.98rem);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  text-align: center;
  transform: rotate(-28deg);
  white-space: nowrap;
  user-select: none;
}

.poster__svg,
.poster__svg svg {
  width: 100%;
  display: block;
}

.poster__svg svg {
  height: auto;
}

.spinner {
  position: absolute;
  inset: auto 20px 20px auto;
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(4, 7, 14, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-main);
}

.hidden {
  display: none;
}

.mobile-actionbar {
  position: fixed;
  left: 12px;
  right: 12px;
  bottom: 12px;
  z-index: 20;
  display: none;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  background: rgba(8, 11, 20, 0.98);
  box-shadow: 0 24px 50px rgba(0, 0, 0, 0.35);
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-top: 24px;
  padding: 18px 4px 0;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.site-footer__copy,
.site-footer__made,
.site-footer__links,
.site-footer__social {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.site-footer__links {
  gap: 14px;
}

.site-footer a {
  color: var(--text-main);
  text-decoration: none;
}

.about-card {
  margin-top: 26px;
  padding: 28px;
  border-radius: 28px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(12, 16, 28, 0.82);
  color: var(--text-muted);
  display: grid;
  gap: 14px;
}

.about-card__eyebrow {
  font-size: 0.8rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--text-soft);
}

.about-card__title {
  margin: 0;
  font-size: clamp(1.5rem, 2vw, 2.1rem);
  line-height: 1.08;
  color: var(--text-main);
}

.about-card p {
  margin: 0;
  max-width: 82ch;
  line-height: 1.7;
}

.legal-page {
  max-width: 980px;
  margin: 0 auto;
  padding: 28px;
}

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

.legal-back {
  color: var(--text-main);
  text-decoration: none;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  padding: 10px 16px;
  background: rgba(255, 255, 255, 0.05);
}

.legal-card {
  padding: clamp(28px, 5vw, 56px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 34px;
  background:
    radial-gradient(circle at 12% 0%, rgba(255, 205, 128, 0.14), transparent 28%),
    linear-gradient(145deg, rgba(17, 22, 38, 0.96), rgba(8, 11, 20, 0.98));
  box-shadow: 0 32px 90px rgba(0, 0, 0, 0.34);
}

.legal-card h1 {
  margin: 0 0 12px;
  font-size: clamp(2.4rem, 6vw, 5rem);
  line-height: 0.95;
  letter-spacing: -0.07em;
}

.legal-updated {
  margin: 0 0 28px;
  color: var(--text-muted);
}

.legal-section {
  display: grid;
  gap: 10px;
  padding-top: 22px;
  margin-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.09);
  color: var(--text-muted);
}

.legal-section h2 {
  margin: 0;
  color: var(--text-main);
  font-size: 1.15rem;
}

.legal-section p,
.legal-section ul {
  margin: 0;
  line-height: 1.7;
}

.legal-section ul {
  padding-left: 18px;
}

.legal-section a {
  color: var(--accent-strong);
}

.city-suggestion-list {
  margin-top: 10px;
  display: grid;
  gap: 8px;
}

.city-suggestion-list.hidden {
  display: none;
}

.city-suggestion-item {
  width: 100%;
  padding: 12px 14px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-main);
  text-align: left;
  cursor: pointer;
  transition: border-color 0.18s ease, background 0.18s ease, transform 0.18s ease;
}

.city-suggestion-item:hover {
  border-color: rgba(240, 187, 120, 0.26);
  background: rgba(255, 255, 255, 0.07);
  transform: translateY(-1px);
}

.city-suggestion-item strong,
.city-suggestion-item small {
  display: block;
}

.city-suggestion-item small {
  margin-top: 4px;
  color: var(--text-muted);
  font-size: 0.8rem;
  line-height: 1.45;
}

.about-card--lead {
  margin-top: 22px;
  margin-bottom: 22px;
}

.mobile-actionbar__copy {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.mobile-actionbar__copy strong,
.mobile-actionbar__copy span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mobile-actionbar__copy span {
  color: var(--text-muted);
  font-size: 0.84rem;
}

.cta-button--mobile {
  flex: 0 0 auto;
  min-height: 48px;
  padding: 0 18px;
}

.scroll-top-button {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 24;
  width: 48px;
  height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  background: rgba(8, 11, 20, 0.96);
  color: var(--text-main);
  font-size: 1.15rem;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease, border-color 0.2s ease;
}

.scroll-top-button.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.scroll-top-button:hover {
  border-color: rgba(240, 187, 120, 0.35);
}

@media (max-width: 1080px) {
  .hero-card {
    grid-template-columns: 1fr;
  }

  .hero-tools {
    top: 18px;
    right: 18px;
  }

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

  .preview-column {
    position: static;
  }

  .poster-frame {
    min-height: 60vh;
  }
}

@media (max-width: 720px) {
  .page-shell {
    width: min(100vw - 20px, 100%);
    padding-top: 16px;
    padding-bottom: 110px;
  }

  .builder-card,
  .panel,
  .preview-card {
    border-radius: 22px;
  }

  .hero-card {
    padding: 22px;
    border-radius: 24px;
  }

  .hero-topline {
    align-items: center;
    justify-content: space-between;
  }

  .brand-row {
    margin-bottom: 0;
  }

  .hero-tools {
    position: static;
    width: auto;
    margin-left: auto;
    margin-bottom: 0;
    justify-content: flex-end;
    flex: 0 0 auto;
  }

  .hero-instagram {
    min-height: 40px;
    padding: 0 14px;
    font-size: 0.8rem;
  }

  .hero-card h1 {
    margin-top: 20px;
  }

  .hero-card h1 span:first-child {
    white-space: normal;
  }

  .workspace {
    gap: 18px;
  }

  .preview-column {
    order: -1;
  }

  .builder-header {
    padding: 16px;
  }

  .builder-tabs {
    grid-template-columns: repeat(3, minmax(120px, 1fr));
    overflow-x: auto;
    padding-bottom: 2px;
  }

  .field-grid--two,
  .inline-grid {
    grid-template-columns: 1fr;
  }

  .preview-toolbar__hint {
    display: none;
  }

  .payment-wallet {
    align-items: stretch;
    flex-direction: column;
  }

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

  .site-footer {
    width: 100%;
  }

  .site-footer {
    flex-direction: column;
    align-items: flex-start;
  }

  .mobile-actionbar {
    display: flex;
  }

  .scroll-top-button {
    right: 14px;
    bottom: 86px;
  }
}
