:root {
  --bg: #110d1f;
  --bg2: #241239;
  --surface: rgba(255,255,255,.085);
  --surface2: rgba(255,255,255,.125);
  --surface3: rgba(255,255,255,.18);
  --text: rgba(255,255,255,.95);
  --muted: rgba(255,255,255,.68);
  --soft: rgba(255,255,255,.46);
  --line: rgba(255,255,255,.14);
  --pink: #ff647e;
  --rose: #e34f9a;
  --violet: #7d46d9;
  --blue: #53c7ff;
  --green: #62e6b3;
  --dark: #160d25;
  --shadow: 0 24px 80px rgba(0,0,0,.35);
  --radius: 26px;
  --radius2: 18px;
  --nav-h: 68px;
  --safe-bottom: clamp(0px, env(safe-area-inset-bottom, 0px), 12px);
  --header-h: 78px;
}


* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { min-height: 100%; }
body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  color: var(--text);
  background:
    radial-gradient(620px 420px at 10% 4%, rgba(255,100,126,.36), transparent 65%),
    radial-gradient(640px 520px at 90% 2%, rgba(125,70,217,.40), transparent 62%),
    radial-gradient(520px 420px at 48% 92%, rgba(83,199,255,.18), transparent 70%),
    linear-gradient(155deg, var(--bg), var(--bg2) 58%, #130b22);
  background-attachment: fixed;
}

a { color: #ffe0ed; text-decoration: none; }
a:hover { text-decoration: underline; }
button, input { font: inherit; }
button { -webkit-tap-highlight-color: transparent; }

.phone-shell {
  width: min(100%, 480px);
  min-height: 100vh;
  margin: 0 auto;
  position: relative;
  background: linear-gradient(180deg, rgba(255,255,255,.055), rgba(255,255,255,.025));
  box-shadow: 0 0 0 1px rgba(255,255,255,.07), var(--shadow);
  overflow: hidden;
  padding-top: var(--header-h);
}

.phone-shell::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(360px 240px at 74% 16%, rgba(255,255,255,.07), transparent 64%);
  opacity: .8;
}

.app-header {
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  z-index: 45;
  width: min(100%, 480px);
  min-height: var(--header-h);
  padding: 12px 14px 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid rgba(255,255,255,.09);
  background: linear-gradient(180deg, rgba(18,13,31,.92), rgba(18,13,31,.70));
  backdrop-filter: blur(16px);
}

.brand-block {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  cursor: pointer;
}

.brand-logo {
  width: 48px;
  height: 48px;
  border-radius: 17px;
  object-fit: cover;
  background: #fff;
  box-shadow: 0 12px 28px rgba(0,0,0,.22);
}

.brand-title {
  font-size: 17px;
  line-height: 1.1;
  font-weight: 800;
  letter-spacing: .1px;
}

.brand-subtitle {
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
}

.profile-mini {
  flex: 0 0 auto;
  max-width: 175px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 8px;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 18px;
  background: rgba(255,255,255,.075);
}

.profile-avatar {
  width: 32px;
  height: 32px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--pink), var(--violet));
  color: #fff;
  font-weight: 800;
  overflow: hidden;
}

.profile-avatar img { width: 100%; height: 100%; object-fit: cover; }
.profile-text { min-width: 0; }
.profile-name {
  max-width: 112px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 12px;
  font-weight: 700;
}
.profile-id {
  max-width: 112px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  margin-top: 1px;
  color: var(--soft);
  font-size: 10px;
}

.app-main {
  position: relative;
  z-index: 1;
  padding: 16px 14px calc(var(--nav-h) + var(--safe-bottom) + 28px);
}

.screen { display: none; animation: fadeIn .16s ease; }
.screen.active { display: block; }
@keyframes fadeIn { from { opacity: .35; transform: translateY(4px); } to { opacity: 1; transform: translateY(0); } }

.hero-card,
.panel-card,
.feature-card,
.faq-card,
.scenario-card,
.wizard-card,
.option-chip,
.package-card,
.balance-card,
.upload-box {
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255,255,255,.105), rgba(255,255,255,.062));
  box-shadow: 0 18px 42px rgba(0,0,0,.18);
}

.hero-card {
  padding: 22px;
  border-radius: 30px;
  background:
    radial-gradient(280px 180px at 88% 14%, rgba(255,100,126,.22), transparent 62%),
    linear-gradient(150deg, rgba(255,255,255,.15), rgba(255,255,255,.065));
}

.hero-kicker,
.step-kicker {
  color: #ffd6e3;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}

h1, h2, h3, p { margin-top: 0; }
h1 { margin-bottom: 10px; font-size: 28px; line-height: 1.08; letter-spacing: -.8px; }
h2 { margin-bottom: 12px; font-size: 20px; line-height: 1.15; letter-spacing: -.35px; }
h3 { margin-bottom: 5px; font-size: 15px; line-height: 1.2; }
p { color: var(--muted); line-height: 1.48; }
.hero-card p { margin-bottom: 18px; font-size: 15px; }

.primary-btn,
.ghost-btn,
.text-btn {
  border: 0;
  border-radius: 18px;
  cursor: pointer;
  font-weight: 800;
}

.primary-btn {
  min-height: 48px;
  padding: 13px 18px;
  color: #241226;
  background: linear-gradient(135deg, #ffd0d9, #ff647e 45%, #9a6cff 100%);
  box-shadow: 0 16px 34px rgba(255,100,126,.22);
}
.primary-btn:active { transform: translateY(1px); }
.primary-btn.full { width: 100%; margin: 14px 0; }
.primary-btn[disabled] { opacity: .62; cursor: not-allowed; }

.ghost-btn {
  min-height: 44px;
  padding: 12px 15px;
  color: var(--text);
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.075);
}
.ghost-btn.compact { min-height: 36px; padding: 8px 12px; border-radius: 14px; font-size: 12px; }
.text-btn { padding: 8px 0; color: #ffd6e3; background: transparent; }

.section-title-row,
.screen-head,
.card-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}
.section-title-row { margin: 20px 2px 10px; }
.section-title-row h2, .screen-head h1 { margin-bottom: 0; }
.screen-head { margin: 2px 2px 14px; }

.feature-list { display: grid; gap: 10px; }
.feature-card {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 15px;
  border-radius: 22px;
}
.feature-card p { margin-bottom: 0; font-size: 13px; }
.feature-icon {
  width: 38px;
  height: 38px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border-radius: 16px;
  background: rgba(255,255,255,.105);
  font-size: 20px;
}
.muted-card { opacity: .78; }

.faq-card,
.panel-card {
  margin-top: 14px;
  padding: 16px;
  border-radius: 24px;
}
.faq-card details {
  border-top: 1px solid rgba(255,255,255,.10);
  padding: 12px 0;
}
.faq-card details:first-of-type { border-top: 0; }
.faq-card summary {
  cursor: pointer;
  font-weight: 700;
}
.faq-card p { margin: 8px 0 0; font-size: 13px; }

.wizard-progress {
  display: flex;
  gap: 8px;
  padding: 0 2px 14px;
}
.progress-dot {
  height: 6px;
  flex: 1 1 auto;
  border-radius: 999px;
  background: rgba(255,255,255,.14);
}
.progress-dot.active { background: linear-gradient(90deg, var(--pink), var(--violet)); }

.wizard-card {
  padding: 16px;
  border-radius: 26px;
}
.step-kicker { margin-bottom: 7px; }
.wizard-card > p { font-size: 14px; margin-bottom: 14px; }

.scenario-grid,
.option-grid,
.package-grid {
  display: grid;
  gap: 10px;
}
.scenario-card,
.package-card {
  width: 100%;
  border-radius: 23px;
  padding: 14px;
  color: var(--text);
  text-align: left;
  cursor: pointer;
}
.scenario-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 12px;
  align-items: center;
}
.scenario-card.active,
.package-card.active,
.option-chip.active {
  border-color: rgba(255,208,217,.60);
  box-shadow: 0 0 0 2px rgba(255,100,126,.17), 0 18px 42px rgba(0,0,0,.20);
}
.scenario-card.disabled { opacity: .55; cursor: not-allowed; }
.scenario-emoji {
  width: 45px;
  height: 45px;
  display: grid;
  place-items: center;
  border-radius: 18px;
  background: rgba(255,255,255,.11);
  font-size: 24px;
}
.scenario-title { font-weight: 700; }
.scenario-copy { margin-top: 3px; color: var(--muted); font-size: 13px; line-height: 1.35; }
.scenario-badge {
  display: inline-flex;
  width: fit-content;
  margin-top: 8px;
  padding: 4px 8px;
  border-radius: 999px;
  color: #ffe5ec;
  background: rgba(255,100,126,.16);
  font-size: 11px;
  font-weight: 700;
}

.option-group { margin-top: 14px; }
.option-group-label {
  margin: 0 0 8px;
  color: rgba(255,255,255,.78);
  font-size: 13px;
  font-weight: 650;
}
.option-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.option-grid.one { grid-template-columns: 1fr; }
.option-chip {
  min-height: 44px;
  border-radius: 17px;
  color: var(--text);
  background: rgba(255,255,255,.075);
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
}

.upload-list { display: grid; gap: 10px; }
.upload-box {
  display: grid;
  gap: 8px;
  padding: 14px;
  border-radius: 22px;
}
.upload-box span { font-weight: 800; }
.upload-box small { color: var(--muted); line-height: 1.35; }
.upload-box input {
  width: 100%;
  color: var(--muted);
  font-size: 13px;
}

.package-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
}
.package-title { font-weight: 700; }
.package-desc { grid-column: 1 / -1; color: var(--muted); font-size: 12px; }
.package-price { color: #ffd8e3; font-size: 19px; font-weight: 700; }

.summary-box {
  display: grid;
  gap: 9px;
  padding: 13px;
  border: 1px solid rgba(255,255,255,.11);
  border-radius: 20px;
  background: rgba(255,255,255,.06);
  margin-bottom: 12px;
}
.summary-row { display: flex; justify-content: space-between; gap: 10px; color: var(--muted); font-size: 13px; }
.summary-row b { color: var(--text); text-align: right; }
.summary-row.price b { color: #ffd8e3; font-size: 18px; }

.field { display: grid; gap: 7px; margin: 12px 0; }
.field span { font-size: 13px; font-weight: 700; }
.field input {
  width: 100%;
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 17px;
  outline: none;
  padding: 14px;
  color: var(--text);
  background: rgba(0,0,0,.18);
}
.field input:focus { border-color: rgba(255,208,217,.55); box-shadow: 0 0 0 4px rgba(255,100,126,.12); }

.agreement {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 10px;
  margin: 12px 0 14px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.42;
}
.agreement input { margin-top: 3px; }
.status-line { min-height: 20px; color: var(--green); font-size: 13px; font-weight: 800; }
.status-line.error { color: #ff9baa; }

.wizard-actions {
  display: flex;
  gap: 10px;
  margin-top: 14px;
}
.wizard-actions .primary-btn,
.wizard-actions .ghost-btn { flex: 1; }

.balance-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.balance-card {
  min-height: 128px;
  padding: 15px;
  border-radius: 24px;
}
.balance-card span { color: var(--muted); font-size: 12px; font-weight: 700; }
.balance-card strong { display: block; margin: 8px 0 4px; font-size: 40px; line-height: 1; }
.balance-card small { color: var(--soft); font-size: 11px; line-height: 1.3; }
.card-headline { font-weight: 700; margin-bottom: 10px; }

.empty-state { text-align: center; padding: 16px 8px; }
.empty-state p { margin: 0 auto 14px; max-width: 310px; font-size: 13px; }
.empty-icon { font-size: 40px; margin-bottom: 10px; }

.gallery-card { padding: 12px; }
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.gallery-item {
  min-width: 0;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 22px;
  background: rgba(255,255,255,.075);
}
.gallery-image-button {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  border: 0;
  padding: 0;
  overflow: hidden;
  background: rgba(255,255,255,.08);
  cursor: pointer;
}
.gallery-image-button img,
.gallery-item > img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.gallery-placeholder {
  display: grid;
  place-items: center;
  aspect-ratio: 1 / 1;
  padding: 12px;
  color: var(--muted);
  background: rgba(255,255,255,.06);
  font-size: 12px;
  text-align: center;
}
.gallery-item-body {
  display: grid;
  gap: 5px;
  padding: 10px;
}
.gallery-title {
  min-height: 34px;
  font-size: 15px;
  line-height: 1.15;
}
.gallery-date,
.gallery-status {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.25;
}
.gallery-status { color: var(--soft); }
.gallery-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
  margin-top: 4px;
}
.gallery-action {
  min-width: 0;
  min-height: 32px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 12px;
  padding: 7px 5px;
  color: var(--text);
  background: rgba(255,255,255,.08);
  cursor: pointer;
  font-size: 11px;
  font-weight: 800;
  line-height: 1;
  text-align: center;
  text-decoration: none;
}
.gallery-action:hover { text-decoration: none; }
.gallery-action.danger { color: #ffc0ca; }
.gallery-action:disabled {
  opacity: .45;
  cursor: not-allowed;
}
.gallery-preview-open { overflow: hidden; }
.gallery-preview-modal {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  gap: 12px;
  padding: max(18px, env(safe-area-inset-top)) 14px max(18px, env(safe-area-inset-bottom));
  background: rgba(9,6,18,.94);
}
.gallery-preview-modal.hidden { display: none; }
.gallery-preview-stage {
  min-height: 0;
  display: grid;
  place-items: center;
}
.gallery-preview-image {
  max-width: 100%;
  max-height: 100%;
  border-radius: 18px;
  object-fit: contain;
  box-shadow: 0 24px 70px rgba(0,0,0,.45);
}
.gallery-preview-caption {
  display: grid;
  gap: 4px;
  padding: 0 48px 0 4px;
}
.gallery-preview-caption strong {
  font-size: 16px;
  line-height: 1.2;
}
.gallery-preview-caption span {
  color: var(--muted);
  font-size: 12px;
}
.gallery-preview-close {
  position: fixed;
  right: 14px;
  bottom: max(16px, env(safe-area-inset-bottom));
  z-index: 91;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 16px;
  color: #fff;
  background: rgba(255,255,255,.13);
  cursor: pointer;
  font-size: 26px;
  line-height: 1;
}

.contacts-card, .doc-card, .requisites-card { display: grid; gap: 9px; }
.contacts-card p, .requisites-card p { margin-bottom: 0; }
.doc-card a, .contacts-card a {
  display: block;
  padding: 12px;
  border: 1px solid rgba(255,255,255,.10);
  border-radius: 16px;
  background: rgba(255,255,255,.055);
}

.bottom-nav {
  position: fixed;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  z-index: 40;
  width: min(100%, 480px);
  height: calc(var(--nav-h) + var(--safe-bottom));
  padding: 6px 8px calc(6px + var(--safe-bottom));
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 4px;
  border-top: 1px solid rgba(255,255,255,.12);
  background: linear-gradient(180deg, rgba(20,12,35,.88), rgba(13,8,23,.97));
  backdrop-filter: blur(18px);
}
.nav-btn {
  min-width: 0;
  border: 0;
  border-radius: 15px;
  color: rgba(255,255,255,.62);
  background: transparent;
  cursor: pointer;
  display: grid;
  place-items: center;
  gap: 2px;
  padding: 5px 2px;
}
.nav-btn span { font-size: 18px; line-height: 1; }
.nav-btn b { font-size: 10px; line-height: 1; }
.nav-btn.active {
  color: #fff;
  background: rgba(255,255,255,.11);
}

@media (min-width: 520px) {
  .phone-shell { margin-top: 20px; margin-bottom: 20px; min-height: calc(100vh - 40px); border-radius: 34px; }
  .bottom-nav { bottom: 20px; border-radius: 0 0 34px 34px; }
  .app-header { border-radius: 34px 34px 0 0; }
}

@media (max-width: 360px) {
  h1 { font-size: 25px; }
  .profile-mini { max-width: 150px; }
  .profile-name, .profile-id { max-width: 88px; }
  .option-grid { grid-template-columns: 1fr; }
}


.balance-package-grid {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}
.balance-pay-form { margin-top: 14px; }
.card-subline { margin: 2px 0 0; font-size: 13px; color: var(--muted); }
.promo-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  margin-top: 10px;
}
.promo-form input {
  width: 100%;
  min-width: 0;
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 17px;
  outline: none;
  padding: 13px 14px;
  color: var(--text);
  background: rgba(0,0,0,.18);
}
.promo-form .ghost-btn { min-height: 46px; }

@media (min-width: 520px) {
  .app-header { top: 20px; }
}

@media (max-width: 390px) {
  .promo-form { grid-template-columns: 1fr; }
}


/* v5: balance tabs and lighter readable controls */
.balance-tabs {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 7px;
  margin: 0 0 12px;
  padding: 6px;
  border: 1px solid rgba(255,255,255,.10);
  border-radius: 22px;
  background: rgba(255,255,255,.055);
}
.balance-tab {
  min-height: 42px;
  border: 0;
  border-radius: 16px;
  color: rgba(255,255,255,.72);
  background: transparent;
  cursor: pointer;
  font-size: 11px;
  font-weight: 650;
  white-space: nowrap;
}
.balance-tab.active {
  color: #fff;
  background: rgba(255,255,255,.12);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.09);
}
.balance-panel { display: none; }
.balance-panel.active { display: block; }
.quick-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 12px;
}
.quick-actions .primary-btn,
.quick-actions .ghost-btn { min-height: 46px; padding-inline: 10px; }
.screen-head h1 { display: flex; align-items: center; gap: 8px; }
.option-group-label { font-weight: 650 !important; color: rgba(255,255,255,.72); }
.option-chip { font-weight: 560 !important; line-height: 1.25; }
.scenario-title, .package-title, .card-headline { font-weight: 760 !important; }
.nav-btn span { font-size: 20px; }
.nav-btn b { font-weight: 650; }
@media (max-width: 374px) {
  .balance-tab { font-size: 10px; }
  .quick-actions { grid-template-columns: 1fr; }
}


/* v6: clearer step labels, lighter choices, saved email and account deletion */
.step-kicker {
  letter-spacing: .03em;
  text-transform: none;
  font-size: 13px;
  font-weight: 650;
  color: rgba(255,255,255,.82);
}
.option-chip {
  font-weight: 470 !important;
  color: rgba(255,255,255,.88);
  letter-spacing: 0;
}
.option-chip.active {
  font-weight: 610 !important;
}
.option-group-label {
  font-weight: 540 !important;
}
.save-email {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  margin: -2px 0 12px;
  color: rgba(255,255,255,.70);
  font-size: 13px;
  line-height: 1.35;
}
.save-email input {
  width: 18px;
  height: 18px;
  margin-top: 1px;
  accent-color: #ff8aa7;
}
.danger-card {
  border-color: rgba(255,100,126,.26);
  background: linear-gradient(180deg, rgba(255,100,126,.11), rgba(255,255,255,.055));
}
.danger-card p {
  margin-bottom: 12px;
}
.danger-btn {
  width: 100%;
  min-height: 46px;
  border: 1px solid rgba(255,100,126,.42);
  border-radius: 18px;
  color: #ffdce5;
  background: rgba(255,100,126,.12);
  cursor: pointer;
  font-weight: 650;
}
.danger-btn:disabled {
  opacity: .62;
  cursor: not-allowed;
}
.balance-tab {
  display: grid;
  place-items: center;
  line-height: 1.1;
}


/* v7: unified checkboxes and Help section order polish */
.save-email,
.agreement {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  margin: 12px 0 14px;
  color: rgba(255,255,255,.72);
  font-size: 13px;
  line-height: 1.42;
}

.save-email input,
.agreement input {
  width: 20px;
  height: 20px;
  min-width: 20px;
  min-height: 20px;
  margin: 1px 0 0;
  accent-color: #ff8aa7;
}

.save-email span,
.agreement span {
  font-size: 13px;
  line-height: 1.42;
  color: rgba(255,255,255,.72);
}

.help-faq h2 {
  margin-bottom: 4px;
}

.contacts-card h2,
.help-faq h2,
.doc-card h2,
.requisites-card h2,
.danger-card h2 {
  font-size: 18px;
  letter-spacing: -.25px;
}


/* v20260618-3: компактный hero-блок главной страницы */
.hero-card {
  position: relative;
  min-height: 264px;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(128px, .72fr);
  align-items: center;
  gap: 8px;
  overflow: hidden;
  padding: 24px 18px 22px;
  border-radius: 28px;
  background:
    radial-gradient(260px 240px at 88% 42%, rgba(255, 116, 175, .34), transparent 68%),
    radial-gradient(240px 220px at 30% 16%, rgba(255, 217, 229, .14), transparent 64%),
    linear-gradient(135deg, rgba(255,255,255,.13), rgba(255,255,255,.055) 54%, rgba(255,100,126,.09));
}

.hero-card::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(105deg, rgba(255,255,255,.10), transparent 27% 100%),
    radial-gradient(300px 220px at 100% 100%, rgba(227,79,154,.22), transparent 68%);
  opacity: .82;
}

.hero-copy {
  position: relative;
  z-index: 2;
  min-width: 0;
}

.hero-copy h1 {
  max-width: 295px;
  margin: 0 0 14px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  font-size: clamp(22px, 6.05vw, 30px);
  line-height: 1.08;
  letter-spacing: -.045em;
  font-weight: 850;
  text-wrap: balance;
}

.hero-copy p {
  max-width: 278px;
  margin: 0 0 18px;
  color: rgba(255,255,255,.72);
  font-size: clamp(13px, 3.6vw, 15px);
  line-height: 1.42;
}

.hero-card .hero-btn {
  min-height: 46px;
  max-width: 248px;
  width: 100%;
  border-radius: 18px;
  padding: 12px 16px;
  font-size: 15px;
  letter-spacing: -.01em;
  box-shadow: 0 16px 32px rgba(255,100,126,.22), inset 0 1px 0 rgba(255,255,255,.32);
}

.hero-visual {
  position: relative;
  z-index: 1;
  align-self: stretch;
  min-height: 210px;
}

.hero-arch {
  position: absolute;
  right: -22px;
  top: 10px;
  width: 142px;
  height: 214px;
  border-radius: 78px 78px 20px 20px;
  background:
    radial-gradient(70px 90px at 48% 18%, rgba(255,220,230,.30), transparent 62%),
    linear-gradient(160deg, rgba(255,126,178,.40), rgba(125,70,217,.17) 72%);
  box-shadow:
    inset 0 0 0 1px rgba(255,255,255,.11),
    0 18px 38px rgba(0,0,0,.20);
  opacity: .92;
}

.hero-rack {
  position: absolute;
  right: 22px;
  top: 27px;
  width: 92px;
  height: 156px;
  border-top: 4px solid rgba(255,190,216,.78);
  border-right: 4px solid rgba(255,190,216,.60);
  border-radius: 52px 52px 4px 0;
  filter: drop-shadow(0 0 10px rgba(255,100,126,.20));
}

.hero-hanger {
  position: absolute;
  right: 47px;
  top: 42px;
  width: 64px;
  height: 24px;
  border-top: 3px solid rgba(255,232,238,.82);
  border-left: 3px solid rgba(255,232,238,.70);
  border-right: 3px solid rgba(255,232,238,.70);
  border-radius: 50% 50% 4px 4px;
  transform: rotate(-2deg);
}

.hero-hanger::before {
  content: "";
  position: absolute;
  left: 27px;
  top: -22px;
  width: 12px;
  height: 21px;
  border: 2px solid rgba(255,226,235,.76);
  border-bottom: 0;
  border-radius: 14px 14px 0 0;
}

.hero-dress {
  position: absolute;
  right: -4px;
  bottom: -9px;
  width: 142px;
  height: 178px;
  filter: drop-shadow(0 18px 26px rgba(0,0,0,.30));
}

.hero-dress .dress-top {
  position: absolute;
  left: 46px;
  top: 22px;
  width: 68px;
  height: 72px;
  border-radius: 12px 12px 24px 24px;
  clip-path: polygon(17% 0, 47% 0, 55% 36%, 68% 0, 100% 1%, 88% 100%, 14% 100%, 0 1%);
  background:
    linear-gradient(118deg, rgba(255,240,246,.86) 0 18%, transparent 19% 21%, rgba(255,114,183,.78) 22% 58%, rgba(154,78,221,.88) 100%),
    linear-gradient(160deg, #ffd7e5, #d65ba9 52%, #7134c3);
}

.hero-dress .dress-waist {
  position: absolute;
  left: 43px;
  top: 86px;
  width: 77px;
  height: 14px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(255,209,224,.95), rgba(213,75,160,.92), rgba(126,70,217,.92));
  box-shadow: 0 5px 10px rgba(0,0,0,.18);
}

.hero-dress .dress-skirt {
  position: absolute;
  left: 0;
  top: 95px;
  width: 148px;
  height: 102px;
  clip-path: polygon(35% 0, 70% 0, 100% 100%, 0 100%);
  border-radius: 8px 8px 42px 42px;
  background:
    linear-gradient(97deg, rgba(255,255,255,.30), transparent 12% 22%, rgba(255,255,255,.18) 23%, transparent 34% 43%, rgba(255,255,255,.14) 45%, transparent 58% 100%),
    linear-gradient(115deg, #6d32b5 0%, #b143c5 35%, #ff7aac 65%, #f4b2ce 100%);
}

.hero-glow-dot {
  position: absolute;
  right: 13px;
  top: 142px;
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #ffd6e3;
  box-shadow: 0 0 24px 9px rgba(255,100,126,.28);
  opacity: .85;
}

@media (max-width: 390px) {
  .hero-card {
    min-height: 248px;
    padding: 20px 15px 20px;
    grid-template-columns: minmax(0, 1.12fr) 112px;
    border-radius: 26px;
  }

  .hero-copy h1 {
    max-width: 250px;
    margin-bottom: 12px;
    font-size: clamp(21px, 6vw, 24px);
  }

  .hero-copy p {
    max-width: 220px;
    margin-bottom: 15px;
    font-size: 13px;
  }

  .hero-card .hero-btn {
    max-width: 220px;
    min-height: 44px;
    padding: 11px 14px;
    font-size: 14px;
  }

  .hero-visual {
    min-height: 196px;
    transform: translateX(8px) scale(.92);
    transform-origin: right bottom;
  }
}

@media (max-width: 340px) {
  .hero-card {
    grid-template-columns: 1fr;
    min-height: auto;
  }
  .hero-visual {
    display: none;
  }
  .hero-copy h1,
  .hero-copy p,
  .hero-card .hero-btn {
    max-width: none;
  }
}

/* Home showcase cards · 20260618-9 */
.feature-showcase-list {
  gap: 16px;
}

.showcase-card {
  position: relative;
  display: block;
  overflow: hidden;
  padding: 17px;
  border-radius: 28px;
  isolation: isolate;
}

.showcase-card::before {
  content: "";
  position: absolute;
  inset: -1px;
  z-index: -1;
  opacity: .72;
  background: radial-gradient(220px 160px at 14% 8%, rgba(255,100,126,.22), transparent 62%),
              radial-gradient(260px 190px at 94% 0%, rgba(125,70,217,.24), transparent 64%);
}

.showcase-card--fitting::before {
  background: radial-gradient(220px 160px at 14% 8%, rgba(125,70,217,.28), transparent 62%),
              radial-gradient(260px 190px at 94% 0%, rgba(83,120,255,.25), transparent 64%);
}
.showcase-card--doc::before {
  background: radial-gradient(220px 160px at 14% 8%, rgba(98,230,179,.23), transparent 62%),
              radial-gradient(260px 190px at 94% 0%, rgba(83,199,255,.18), transparent 64%);
}
.showcase-card--neuro::before {
  background: radial-gradient(220px 160px at 14% 8%, rgba(255,153,82,.22), transparent 62%),
              radial-gradient(260px 190px at 94% 0%, rgba(255,100,126,.18), transparent 64%);
}

.showcase-top {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  margin-bottom: 10px;
}

.showcase-icon {
  width: 50px;
  height: 50px;
  border-radius: 20px;
  font-size: 24px;
  background: linear-gradient(135deg, rgba(255,100,126,.92), rgba(227,79,154,.86));
  box-shadow: 0 14px 30px rgba(255,100,126,.20);
}
.showcase-card--fitting .showcase-icon { background: linear-gradient(135deg, #9b70ff, #5d7dff); box-shadow: 0 14px 30px rgba(93,125,255,.18); }
.showcase-card--doc .showcase-icon { background: linear-gradient(135deg, #67e6c2, #45b8e8); box-shadow: 0 14px 30px rgba(98,230,179,.16); }
.showcase-card--neuro .showcase-icon { background: linear-gradient(135deg, #ffad6b, #ff647e); box-shadow: 0 14px 30px rgba(255,153,82,.16); }

.showcase-badge {
  display: inline-flex;
  max-width: 100%;
  margin-bottom: 6px;
  padding: 5px 9px;
  border-radius: 999px;
  color: #ffdce8;
  background: rgba(255,100,126,.15);
  font-size: 10.5px;
  line-height: 1.1;
  font-weight: 800;
}
.showcase-card--fitting .showcase-badge { color: #dbe5ff; background: rgba(93,125,255,.17); }
.showcase-card--doc .showcase-badge { color: #d7fff4; background: rgba(98,230,179,.16); }
.showcase-badge--soon { color: #ffe0c8; background: rgba(255,153,82,.16); }

.showcase-card h3 {
  margin: 0;
  font-size: 19px;
  letter-spacing: -.35px;
}

.showcase-lead {
  margin: 0 0 12px;
  font-size: 13.5px;
  line-height: 1.48;
  color: rgba(255,255,255,.80);
}

.showcase-benefits {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin: 0 0 13px;
}
.showcase-benefits span {
  min-height: 38px;
  display: grid;
  place-items: center;
  padding: 7px 6px;
  border-radius: 15px;
  color: rgba(255,255,255,.86);
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.08);
  text-align: center;
  font-size: 10.5px;
  line-height: 1.15;
  font-weight: 700;
}

.showcase-media {
  position: relative;
  overflow: hidden;
  min-height: 0;
  aspect-ratio: 2 / 1;
  border-radius: 20px;
  border: 1px solid rgba(255,255,255,.13);
  background-color: rgba(17,13,31,.58);
  background-position: center, center;
  background-repeat: no-repeat, no-repeat;
  background-size: 100% 100%, contain;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.05), 0 18px 35px rgba(0,0,0,.19);
}
.showcase-media--product { aspect-ratio: 4 / 3; }
.showcase-media--fitting { aspect-ratio: 14 / 5; }
.showcase-media--doc { aspect-ratio: 35 / 12; }
.showcase-media--neuro { aspect-ratio: 548 / 172; }
.showcase-media--product { background-image: linear-gradient(180deg, rgba(12,9,22,.02), rgba(12,9,22,.12)), url("/ui-assets/showcase-product-v1.jpg"); }
.showcase-media--fitting { background-image: linear-gradient(180deg, rgba(12,9,22,.02), rgba(12,9,22,.12)), url("/ui-assets/showcase-fitting-v1.jpg"); }
.showcase-media--doc { background-image: linear-gradient(180deg, rgba(12,9,22,.02), rgba(12,9,22,.10)), url("/ui-assets/showcase-doc-v1.jpg"); }
.showcase-media--neuro {
  min-height: 145px;
  background-image: linear-gradient(180deg, rgba(12,9,22,.02), rgba(12,9,22,.16)), url("/ui-assets/showcase-neuro-v1.jpg");
}

.media-label {
  position: absolute;
  bottom: 9px;
  padding: 6px 9px;
  border-radius: 10px;
  color: #fff;
  background: rgba(18,13,31,.78);
  font-size: 11px;
  font-weight: 900;
  box-shadow: 0 8px 18px rgba(0,0,0,.24);
}
.media-label--before { left: 9px; }
.media-label--after { right: 9px; background: linear-gradient(135deg, #ff647e, #d64fb8); }
.media-label--green { background: linear-gradient(135deg, #62e6b3, #38b8c9); }

.media-arrow {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: linear-gradient(135deg, #ff64b1, #a96cff);
  border: 3px solid rgba(255,255,255,.18);
  box-shadow: 0 14px 30px rgba(0,0,0,.24);
  font-size: 25px;
  font-weight: 900;
}
.media-arrow--green { background: linear-gradient(135deg, #62e6b3, #3db8ce); }
.media-lock {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 12px;
  border-radius: 999px;
  color: rgba(255,255,255,.92);
  background: rgba(18,13,31,.64);
  backdrop-filter: blur(8px);
  font-size: 12px;
  font-weight: 850;
}

.showcase-how {
  margin-top: 12px;
  color: rgba(255,255,255,.72);
  font-size: 12px;
  line-height: 1.42;
}
.showcase-how b { color: #ffd6e3; }
.showcase-card--fitting .showcase-how b { color: #dbe5ff; }
.showcase-card--doc .showcase-how b { color: #d7fff4; }
.showcase-card--neuro .showcase-how b { color: #ffe0c8; }

.showcase-cta {
  width: 100%;
  margin-top: 13px;
  min-height: 46px;
  border-radius: 17px;
}
.showcase-cta--violet {
  color: #fff;
  background: linear-gradient(135deg, #8e7cff, #5077ff);
  box-shadow: 0 16px 34px rgba(80,119,255,.22);
}
.showcase-cta--green {
  color: #0f2424;
  background: linear-gradient(135deg, #9bffe3, #42d7c7);
  box-shadow: 0 16px 34px rgba(66,215,199,.18);
}
.showcase-cta--disabled {
  width: 100%;
  opacity: .72;
  cursor: not-allowed;
}

@media (max-width: 380px) {
  .showcase-card { padding: 15px; border-radius: 25px; }
  .showcase-card h3 { font-size: 18px; }
  .showcase-lead { font-size: 13px; }
  .showcase-benefits { grid-template-columns: 1fr; gap: 6px; }
  .showcase-benefits span { min-height: 32px; }
  .showcase-media { min-height: 0; }
}

/* The video entry is separate from photo scenarios and their purchase flow. */
.video-showcase-art{min-height:200px;display:grid;place-content:center;gap:12px;text-align:center;padding:24px;background:radial-gradient(ellipse at 70% 15%,#9f5586,transparent 65%),linear-gradient(145deg,#4b2c62,#24152e);color:#f7d8ee}.video-showcase-art>span{font-size:58px}.video-showcase-art>b{font-size:22px;line-height:1.2}.video-showcase-art>small{font-size:12px;color:#d4b4d9}.video-showcase-card .primary-btn:disabled,.video-scenario-card:disabled{cursor:default;opacity:.68}.video-scenario-card .scenario-title,.video-scenario-card .scenario-copy{display:block}.video-scenario-card .scenario-badge{display:inline-flex;margin-top:8px}

.video-showcase-card .video-showcase-art{border-radius:18px;margin-bottom:16px}.video-showcase-card .showcase-kicker{color:#e9b9df;font-size:12px;margin-bottom:8px}.video-showcase-card .showcase-body{display:grid;gap:10px}.video-showcase-card .primary-btn{margin-top:8px}

/* The existing gallery also contains private video results. */
.works-controls { display:grid; gap:12px; margin-bottom:14px; min-width:0; }
.works-filters { display:flex; flex-wrap:wrap; gap:8px; }
.works-filter { min-height:44px; max-width:100%; border:1px solid var(--line); border-radius:16px; padding:10px 12px; background:var(--surface); color:var(--text); font-size:12px; font-weight:700; cursor:pointer; }
.works-filter.active { background:linear-gradient(135deg,var(--pink),var(--rose)); border-color:transparent; color:#fff; }
.works-filter:focus-visible, .works-sort select:focus-visible { outline:2px solid var(--blue); outline-offset:3px; }
.works-sort { display:grid; gap:7px; color:var(--muted); font-size:12px; }
.works-sort select { width:100%; min-height:44px; min-width:0; border:1px solid var(--line); border-radius:14px; padding:10px 12px; color:var(--text); background:#281b3b; font:inherit; font-size:14px; }
.gallery-video-button { display:grid; place-content:center; gap:10px; width:100%; aspect-ratio:1/1; border:0; padding:14px; color:var(--text); background:radial-gradient(ellipse at 70% 15%,#815078,transparent 70%),linear-gradient(145deg,#4b2c62,#24152e); cursor:pointer; }
.gallery-video-button > span { font-size:32px; }
.gallery-video-button > b { font-size:13px; }
.gallery-actions-video { grid-template-columns:minmax(0,1fr); }
[data-screen="gallery"] .gallery-action { min-height:44px; line-height:1.2; }
.works-more { display:block; width:100%; margin-top:14px; min-height:44px; }
.works-notice { display:grid; gap:8px; margin-bottom:14px; padding:12px; border:1px solid var(--line); border-radius:16px; }
.works-notice p, .works-loading { margin:0; color:var(--muted); font-size:13px; line-height:1.4; }
.works-loading { padding:12px 0; }

/* Public neuro trends catalog */
.neuro-trend-card .home-example-media > img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.neuro-trend-cover {
  display: block;
  width: 100%;
  max-height: 72vh;
  object-fit: contain;
  border-radius: 15px;
  background: var(--surface-soft);
}
@media (min-width: 640px) {
  .neuro-trends .neuro-trends-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
