* { box-sizing: border-box; margin: 0; padding: 0; }
[hidden] { display: none !important; }

:root {
  --bg: #f5f4f0;
  --panel: #ffffff;
  --line: #e8e7e3;
  --line-soft: #f0efe9;
  --text: #1a1a1a;
  --muted: #666666;
  --muted-2: #999999;
  --accent: #f97316;
  --success: #16a34a;
  --shadow: 0 8px 32px rgba(0,0,0,.08);
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--text);
}

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

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

.nav {
  background: #fff;
  border-bottom: 1px solid var(--line);
  padding: 0 24px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 100;
}

.nav-logo { font-size: 14px; font-weight: 600; letter-spacing: -.02em; }
.nav-logo span { color: var(--accent); }
.nav-left { display: flex; align-items: center; gap: 12px; }
.nav-right { display: flex; align-items: center; gap: 8px; flex-wrap: nowrap; }
.nav-counter {
  font-size: 11px;
  color: var(--muted-2);
  padding: 4px 10px;
  background: var(--bg);
  border-radius: 999px;
  border: 1px solid var(--line);
}

.btn-nav-ghost,
.btn-nav,
.btn-p,
.btn-g,
.btn-orange,
.btn-tg,
.btn-mx-dl {
  cursor: pointer;
  border-radius: 10px;
  transition: opacity .15s ease, background .15s ease, border-color .15s ease;
}

.btn-nav-ghost {
  padding: 6px 14px;
  background: transparent;
  border: 1px solid var(--line);
  font-size: 12px;
  color: var(--muted);
}

.btn-nav {
  padding: 6px 14px;
  background: var(--text);
  border: none;
  font-size: 12px;
  color: #fff;
  font-weight: 500;
}

.btn-nav-ghost:hover,
.btn-g:hover,
.style-card-button:hover,
.upload-zone:hover { background: #f9f9f9; }
.btn-nav:hover,
.btn-p:hover,
.btn-orange:hover,
.btn-tg:hover,
.btn-mx-dl:hover { opacity: .88; }

.page-wrap {
  max-width: 1180px;
  margin: 0 auto;
  padding: 24px 16px 44px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.screen {
  background: #fff;
  border-radius: 22px;
  padding: 32px 36px;
  border: 1px solid var(--line);
}

.screen.success-screen { border-color: #86efac; background: #f0fdf4; }
.screen-label {
  text-align: center;
  font-size: 10px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: #bbb;
  padding: 4px 0 6px;
}

.eyebrow {
  font-size: 10px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted-2);
  margin-bottom: .3rem;
}

.title { font-size: 20px; font-weight: 500; color: var(--text); margin-bottom: .8rem; }
.hero-title { font-size: 40px; font-weight: 700; line-height: 1.08; margin-bottom: .45rem; letter-spacing: 0; }
.hero-sub { font-size: 17px; color: var(--muted); margin-bottom: 1.2rem; }

.idea-workspace {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(340px, .85fr);
  gap: 28px;
  align-items: start;
}

.idea-main,
.idea-side {
  min-width: 0;
}

.idea-main textarea {
  min-height: 226px;
  font-size: 15px;
  padding: 16px 18px;
  border-radius: 16px;
}

.steps {
  display: flex;
  align-items: center;
  margin-bottom: .75rem;
  flex-wrap: wrap;
  gap: 2px;
}

.step-item { display: inline-flex; align-items: center; gap: 4px; }
.sn {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 9px;
  flex-shrink: 0;
  border: 1px solid #e0e0e0;
  background: var(--bg);
  color: var(--muted-2);
}

.sl { font-size: 11px; color: #bbb; margin-left: 4px; }
.sa { font-size: 10px; color: #ddd; margin: 0 5px; }

.step-item.is-active .sn { background: var(--text); color: #fff; border-color: transparent; }
.step-item.is-active .sl { color: var(--text); font-weight: 500; }
.step-item.is-complete .sn { background: #dcfce7; color: var(--success); border-color: transparent; }
.step-item.is-complete .sl { color: var(--success); }

.div { border: none; border-top: 1px solid var(--line-soft); margin-bottom: .85rem; }

.showcase-block { margin-bottom: .85rem; }
.showcase-counter { display: flex; align-items: center; gap: 8px; margin-bottom: .6rem; }
.showcase-counter-num { font-size: 22px; font-weight: 700; color: var(--text); letter-spacing: -.02em; }
.showcase-counter-text { font-size: 13px; color: var(--muted); }
.showcase-row { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; }
.showcase-img {
  width: 110px;
  height: 110px;
  border-radius: 12px;
  flex-shrink: 0;
  border: 1px solid var(--line);
  background: var(--bg);
}
.showcase-card {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 34px;
}

.showcase-screen {
  width: min(1180px, calc(100vw - 32px));
  margin-left: 50%;
  transform: translateX(-50%);
  padding: 0;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 0%, rgba(249, 115, 22, 0.09), transparent 36%),
    linear-gradient(180deg, #fff 0%, #fdfbf7 100%);
}

.showcase-top,
.showcase-middle,
.showcase-bottom {
  padding: 26px 28px;
}

.showcase-top,
.showcase-bottom {
  display: grid;
  grid-template-columns: 1fr 1.6fr 1fr;
  align-items: center;
  gap: 18px;
}

.showcase-middle,
.showcase-bottom {
  border-top: 1px solid var(--line-soft);
}

.showcase-avatars {
  display: flex;
  align-items: center;
  gap: 12px;
}

.avatar-stack {
  display: flex;
  align-items: center;
}

.avatar-chip {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-left: -12px;
  border: 3px solid #fff;
  background: linear-gradient(135deg, #f5d5b7 0%, #e7b37f 100%);
  color: #53351f;
  font-size: 18px;
  font-weight: 700;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.08);
}

.avatar-chip:first-child {
  margin-left: 0;
}

.avatar-count,
.showcase-fresh {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.88);
  border-radius: 999px;
  padding: 12px 18px;
  box-shadow: 0 12px 28px rgba(70, 41, 15, 0.05);
}

.avatar-count {
  font-size: 16px;
  font-weight: 600;
  color: #6a6a6a;
}

.showcase-metric {
  text-align: center;
}

.showcase-big-number {
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--accent);
}

.showcase-big-number span {
  color: var(--text);
}

.showcase-big-copy {
  margin-top: 6px;
  font-size: 19px;
  font-weight: 600;
  color: #5f5f5f;
}

.showcase-fresh {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.fresh-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #44c44a;
  box-shadow: 0 0 0 6px rgba(68, 196, 74, 0.12);
}

.showcase-fresh strong,
.showcase-fresh span {
  display: block;
}

.showcase-fresh strong {
  font-size: 15px;
}

.showcase-fresh span {
  color: var(--muted);
  font-size: 13px;
}

.showcase-middle {
  position: relative;
  min-height: 780px;
}

.showcase-copy-block {
  position: absolute;
  left: 28px;
  top: 34px;
  z-index: 5;
  width: 330px;
}

.showcase-headline {
  font-size: 28px;
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 16px;
  color: var(--text);
}

.showcase-copy-large {
  font-size: 18px;
  line-height: 1.45;
  color: #6b6b6b;
}

.sticker-cloud {
  position: relative;
  width: 100%;
  min-height: 780px;
  border-radius: 26px;
  background:
    radial-gradient(circle at 50% 48%, rgba(248, 232, 202, 0.85), rgba(255, 255, 255, 0) 42%),
    radial-gradient(circle at 50% 50%, rgba(249, 115, 22, 0.05), rgba(255, 255, 255, 0) 60%);
}

.cloud-glow {
  position: absolute;
  inset: 12% 22%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 232, 200, 0.46) 0%, rgba(255, 255, 255, 0) 68%);
  filter: blur(18px);
}

.sticker-orbit {
  position: absolute;
  border: 2px dashed rgba(245, 193, 120, 0.18);
  border-radius: 50%;
}

.sticker-orbit-1 {
  inset: 14% 6% 14% 6%;
}

.sticker-orbit-2 {
  inset: 30% 18% 18% 18%;
}

.sample-sticker {
  position: absolute;
  margin: 0;
  transform-origin: center center;
  z-index: 2;
}

.sample-sticker img {
  display: block;
  width: 100%;
  height: auto;
  filter: drop-shadow(0 20px 34px rgba(143, 104, 48, 0.18));
  animation: stickerFloat 6.8s ease-in-out infinite;
  transition: transform .35s ease, filter .35s ease;
}

.sample-sticker:hover img {
  transform: translateY(-8px) scale(1.03);
  filter: drop-shadow(0 28px 40px rgba(143, 104, 48, 0.22));
}

.sample-sticker-center {
  left: 50%;
  top: 52%;
  transform: translate(-50%, -50%);
  width: 340px;
  z-index: 3;
}

.sample-sticker-center img {
  animation: stickerHero 7.2s ease-in-out infinite;
}

.sticker-top-left { left: 16%; top: 20%; width: 210px; transform: rotate(-13deg); }
.sticker-top-left img { animation-delay: -.8s; }

.sticker-top-center { left: 51%; top: 8%; width: 230px; transform: translateX(-50%) rotate(-3deg); }
.sticker-top-center img { animation-delay: -1.6s; }

.sticker-top-right { right: 11%; top: 17%; width: 230px; transform: rotate(8deg); }
.sticker-top-right img { animation-delay: -.2s; }

.sticker-right { right: 8%; top: 48%; width: 250px; transform: translateY(-50%) rotate(7deg); }
.sticker-right img { animation-delay: -2.2s; }

.sticker-bottom-left { left: 10%; bottom: 10%; width: 280px; transform: rotate(-10deg); }
.sticker-bottom-left img { animation-delay: -1.1s; }

.sticker-bottom-right { right: 11%; bottom: 10%; width: 235px; transform: rotate(8deg); }
.sticker-bottom-right img { animation-delay: -2.9s; }

.floating-emoji {
  position: absolute;
  font-size: 58px;
  filter: drop-shadow(0 14px 24px rgba(160, 119, 48, 0.13));
}

.floating-emoji-fire { left: 29%; top: 55%; }
.floating-emoji-spark { right: 32%; top: 57%; font-size: 42px; }

.floating-note {
  position: absolute;
  left: 50%;
  bottom: 4%;
  transform: translateX(-50%);
  color: #8a857c;
  font-size: 15px;
  text-align: center;
  animation: fadeLift 6s ease-in-out infinite;
}

.showcase-bottom {
  grid-template-columns: 1fr;
  gap: 18px;
}

.showcase-live-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
}

.activity-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.activity-card {
  display: flex;
  align-items: center;
  gap: 12px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.9);
  border-radius: 20px;
  padding: 14px 16px;
  box-shadow: 0 8px 22px rgba(43, 31, 12, 0.04);
}

.activity-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #f6d5bf 0%, #e6ae7c 100%);
  color: #50341f;
  font-weight: 700;
  flex-shrink: 0;
}

.activity-meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.activity-meta strong {
  font-size: 14px;
}

.activity-meta span,
.activity-meta small {
  color: var(--muted);
}

.activity-meta span {
  font-size: 13px;
}

.activity-meta small {
  font-size: 12px;
}

.activity-pack {
  margin-left: auto;
  font-size: 28px;
  white-space: nowrap;
}

.form-label {
  font-size: 12px;
  color: var(--muted);
  margin-bottom: .3rem;
  display: block;
}

textarea,
.support-input,
select {
  width: 100%;
  padding: 9px 11px;
  border-radius: 10px;
  border: 1px solid var(--line);
  color: var(--text);
  background: #fff;
}

textarea {
  min-height: 60px;
  resize: vertical;
  font-size: 13px;
  line-height: 1.5;
  margin-bottom: .85rem;
}

textarea::placeholder,
.support-input::placeholder { color: #bbb; }

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

.style-grid-extra { margin-top: 8px; }

.style-card-button {
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
  overflow: hidden;
  padding: 0;
  box-shadow: 0 8px 22px rgba(40, 30, 18, 0.04);
}

.style-card-button.sel { border: 2px solid var(--text); }

.style-card-preview {
  width: 100%;
  aspect-ratio: 1.18;
  display: flex;
  align-items: center;
  justify-content: center;
  border-bottom: 1px solid var(--line-soft);
  background: #f8f7f4;
  overflow: hidden;
}

.style-card-img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center;
  transition: transform .25s ease;
}

.style-card-button:hover .style-card-img {
  transform: scale(1.035);
}

.style-card-glyph {
  width: 48px;
  height: 48px;
  border-radius: 15px;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  font-weight: 700;
}

.style-card-preview-more { background: #f9f8f5; }
.style-card-glyph-more { background: var(--text); }

.style-card-lbl {
  padding: 10px 10px 11px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text);
  border-top: 1px solid var(--line-soft);
}

.bottom-row {
  display: flex;
  gap: 8px;
  align-items: stretch;
  margin-top: 18px;
}

.idea-action-row {
  margin-top: 12px;
}

.upload-zone {
  flex: 1;
  border: 1px dashed #ccc;
  border-radius: 16px;
  padding: 16px 18px;
  display: flex;
  align-items: center;
  gap: 10px;
  background: #fff;
}

.upload-icon { font-size: 15px; color: var(--muted-2); }
.upload-title { font-size: 14px; color: var(--text); }
.upload-hint { font-size: 12px; color: #999; margin-top: 2px; }
.upload-opt {
  font-size: 10px;
  padding: 2px 7px;
  border-radius: 6px;
  background: var(--bg);
  color: var(--muted-2);
  border: 1px solid var(--line);
  margin-left: auto;
  flex-shrink: 0;
}

.btn-p {
  padding: 13px 22px;
  background: var(--text);
  color: #fff;
  border: none;
  font-size: 13px;
  font-weight: 500;
}

.btn-g {
  padding: 9px 14px;
  background: #fff;
  border: 1px solid #e0e0e0;
  font-size: 12px;
  color: var(--muted);
}

.btn-orange {
  padding: 9px 18px;
  background: var(--accent);
  color: #fff;
  border: none;
  font-size: 12px;
  font-weight: 500;
}

#generatePreviewButton {
  min-width: 230px;
  padding: 14px 20px;
  border-radius: 14px;
  background: #ea7a2a;
  color: #fff;
  font-size: 13px;
  font-weight: 650;
  box-shadow: 0 10px 20px rgba(234, 122, 42, 0.16);
}

.disclaimer { font-size: 11px; color: #999; margin-top: 1rem; line-height: 1.5; }
.disclaimer span { color: var(--accent); }

/* ── Step 2: sticker as hero (column layout) ── */
.s2-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}
.s2-img {
  width: 460px;
  height: 460px;
  max-width: 100%;
  border-radius: 20px;
  border: 1px solid var(--line);
  overflow: hidden;
  position: relative;
  background: var(--bg);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 32px rgba(0,0,0,.08);
}
.s2-img img { width: 100%; height: 100%; object-fit: contain; }
.s2-badge {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 10px;
  padding: 2px 10px;
  border-radius: 999px;
  background: rgba(255,255,255,.9);
  color: var(--muted);
  border: 1px solid var(--line);
  white-space: nowrap;
  backdrop-filter: blur(4px);
}
.s2-info {
  width: 100%;
  max-width: 460px;
  padding-top: 0;
}
.s2-info-title { font-size: 15px; font-weight: 600; color: var(--text); margin-bottom: .4rem; }
.s2-info-sub { font-size: 13px; color: var(--muted); line-height: 1.5; margin-bottom: 1rem; }
.s2-row { display: flex; gap: 8px; flex-wrap: wrap; }

.preview-placeholder {
  text-align: center;
  max-width: 260px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}
.preview-placeholder strong {
  display: block;
  font-size: 14px;
  color: var(--text);
  margin-bottom: 6px;
}

.preview-loader-card {
  position: absolute;
  top: 8px;
  right: 8px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 10px;
  background: rgba(255,255,255,.95);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 10px;
  color: var(--muted);
  z-index: 2;
}

.refine-panel {
  margin-top: .85rem;
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #f9f8f5;
}

.s3-preview {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 11px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #f9f8f5;
  margin-bottom: .85rem;
}

.s3-prev-img {
  width: 64px;
  height: 64px;
  border-radius: 9px;
  border: 1px solid var(--line);
  overflow: hidden;
  background: var(--bg);
  flex-shrink: 0;
}
.s3-prev-img img { width: 100%; height: 100%; object-fit: cover; }
.s3-prev-title { font-size: 12px; font-weight: 500; color: var(--text); margin-bottom: 2px; }
.s3-prev-sub { font-size: 11px; color: var(--muted-2); }

.qty-row { display: flex; gap: 8px; margin-bottom: .85rem; }
.qty-btn {
  flex: 1;
  padding: 10px 0;
  border: 1.5px solid var(--line);
  border-radius: 10px;
  background: #fff;
  font-size: 15px;
  font-weight: 600;
  color: var(--muted);
  cursor: pointer;
  transition: border-color .15s, color .15s, background .15s;
}
.qty-btn:hover { border-color: var(--accent); color: var(--accent); }
.qty-btn-active {
  border-color: var(--accent);
  background: #fff7ed;
  color: var(--accent);
}

.slots-lbl { font-size: 11px; color: var(--muted); margin-bottom: .4rem; }

.preset-row { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: .85rem; }
.preset-chip {
  padding: 8px 12px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 11px;
  color: var(--text);
  cursor: pointer;
}

.trust-bar { display: grid; grid-template-columns: repeat(3,1fr); gap: 8px; margin-bottom: .85rem; }
.trust-item {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #f9f8f5;
}
.trust-icon { font-size: 18px; flex-shrink: 0; line-height: 1; }
.trust-title { font-size: 12px; font-weight: 500; color: var(--text); margin-bottom: 2px; }
.trust-sub { font-size: 10px; color: var(--muted-2); line-height: 1.4; }

.pay-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 13px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #f9f8f5;
}
.pay-label { font-size: 10px; color: var(--muted-2); }
.pay-amount { font-size: 19px; font-weight: 600; color: var(--text); }
.pay-per { font-size: 11px; color: var(--muted-2); margin-left: auto; }

.loading-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  padding: 1rem 0;
}

.loading-spinner {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 2px solid var(--line-soft);
  border-top-color: var(--text);
  animation: spin 1s linear infinite;
}
.small-spinner { width: 14px; height: 14px; border-width: 2px; }

.loading-title { font-size: 14px; font-weight: 500; color: var(--text); }
.loading-sub { font-size: 12px; color: var(--muted-2); text-align: center; max-width: 280px; line-height: 1.5; }

.gen-grid,
.res-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 5px;
}

.gslot,
.rslot,
.result-card {
  border-radius: 10px;
  border: 1px solid var(--line);
  overflow: hidden;
  background: var(--bg);
}

.gslot {
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.gslot.ld { animation: pulse 1.5s ease-in-out infinite; }
.gslot.em { opacity: .25; }

.result-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 8px;
  background: #fff;
}

.result-thumb-wrap {
  aspect-ratio: 1;
  border-radius: 8px;
  overflow: hidden;
  background: var(--bg);
}

.result-thumb { width: 100%; height: 100%; object-fit: cover; }
.result-meta { display: grid; gap: 6px; }
.result-meta strong { font-size: 11px; }
.result-meta p { font-size: 10px; color: var(--muted); line-height: 1.4; }
.result-card-actions { display: flex; gap: 6px; }
.button-small {
  flex: 1;
  min-height: 34px;
  border-radius: 8px;
  font-size: 10px;
  padding: 6px 8px;
}

.button-secondary {
  background: #fff;
  border: 1px solid var(--line);
  color: var(--muted);
}

.button-ghost {
  background: #f5f4f0;
  border: 1px solid var(--line);
  color: var(--text);
}

.button-link {
  border: none;
  background: transparent;
  color: var(--muted);
  padding: 0;
}

.gen-email-note {
  margin-top: .85rem;
  font-size: 11px;
  color: var(--muted);
  padding: 10px 12px;
  background: #f9f8f5;
  border-radius: 8px;
  border: 1px solid var(--line);
}

.exp-tabs {
  display: flex;
  border-bottom: 1px solid var(--line-soft);
  margin-bottom: .85rem;
}

.exp-tab {
  padding: 7px 16px;
  font-size: 12px;
  font-weight: 500;
  background: transparent;
  border: none;
  color: var(--muted-2);
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
}

.exp-tab.active { color: var(--text); border-bottom-color: var(--text); }
.exp-panel-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #f9f8f5;
}
.exp-panel-title { font-size: 13px; font-weight: 500; color: var(--text); margin-bottom: 2px; }
.exp-panel-sub { font-size: 11px; color: var(--muted-2); }
.exp-panel-text { flex: 1; }

.btn-tg {
  background: #2AABEE;
  color: #fff;
  border: none;
  padding: 10px 16px;
  font-size: 12px;
  font-weight: 500;
  white-space: nowrap;
}

.btn-mx-dl {
  background: var(--text);
  color: #fff;
  border: none;
  padding: 10px 16px;
  font-size: 12px;
  font-weight: 500;
  white-space: nowrap;
}

.ref-card {
  background: #f9f8f5;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 13px;
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: .85rem;
}
.ref-emoji { font-size: 26px; flex-shrink: 0; }
.ref-text { flex: 1; }
.ref-title { font-size: 12px; font-weight: 500; color: var(--text); margin-bottom: 2px; }
.ref-sub { font-size: 11px; color: var(--muted-2); }

.status-box {
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: #fff;
  font-size: 12px;
  color: var(--muted);
  line-height: 1.5;
}

.status-box.error {
  color: #b91c1c;
  border-color: #fecaca;
  background: #fff7f7;
}

.status-box.status-ok {
  color: var(--success);
  border-color: #86efac;
  background: #f0fdf4;
}

.modal-error {
  font-size: 13px;
  color: #b91c1c;
  background: #fff7f7;
  border: 1px solid #fecaca;
  border-radius: 8px;
  padding: 8px 12px;
}

.modal-shell {
  position: fixed;
  inset: 0;
  z-index: 999;
  padding: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,.32);
}

.modal-card {
  width: min(520px, 100%);
  background: #fff;
  border-radius: 16px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  padding: 20px;
}

.modal-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 12px;
}

.modal-head h3 { font-size: 18px; font-weight: 600; }
.modal-body { display: grid; gap: 12px; }
.modal-close {
  background: none;
  border: none;
  font-size: 22px;
  color: #bbb;
  cursor: pointer;
}
.modal-preview {
  width: 180px;
  height: 180px;
  border-radius: 12px;
  border: 1px solid var(--line);
  object-fit: cover;
  justify-self: center;
}

.modal-card-wide { width: min(640px, 100%); }

.modal-hint {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.5;
}

/* FAQ accordion */
.faq-list { display: flex; flex-direction: column; gap: 4px; }

.faq-item {
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
}

.faq-q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  list-style: none;
  user-select: none;
  gap: 8px;
}
.faq-q::-webkit-details-marker { display: none; }
.faq-q::after {
  content: "+";
  font-size: 18px;
  color: var(--accent);
  flex-shrink: 0;
  transition: transform .2s;
}
.faq-item[open] .faq-q::after { transform: rotate(45deg); }
.faq-item[open] { background: #fafaf8; }

.faq-a {
  padding: 0 14px 12px;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.55;
}

@keyframes pulse { 0%,100%{opacity:.25;}50%{opacity:.6;} }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes stickerFloat {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-12px) scale(1.012); }
}
@keyframes stickerHero {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-15px) scale(1.024); }
}
@keyframes fadeLift {
  0%, 100% { opacity: .72; transform: translateX(-50%) translateY(0); }
  50% { opacity: 1; transform: translateX(-50%) translateY(-6px); }
}

@media (max-width: 600px) {
  .page-wrap { padding: 12px 10px 24px; gap: 8px; }
  .screen { padding: 18px 16px; border-radius: 12px; }
  .hero-title { font-size: 28px; }
  .hero-sub { font-size: 14px; }
  .idea-workspace { grid-template-columns: 1fr; gap: 14px; }
  .idea-main textarea { min-height: 150px; font-size: 13px; padding: 11px 12px; border-radius: 10px; }
  .style-grid { grid-template-columns: repeat(2, 1fr); }
  .style-card-lbl { font-size: 11px; }
  .bottom-row, .exp-panel-card, .pay-bar { flex-direction: column; align-items: stretch; }
  .s2-img { width: 100%; height: auto; aspect-ratio: 1; }
  .gen-grid, .res-grid { grid-template-columns: repeat(2, 1fr); }
  .trust-bar { grid-template-columns: 1fr; }
  .nav-counter { display: none; }
  .nav-right { gap: 6px; }
  #faqButton { display: none; }
  .showcase-top,
  .showcase-middle,
  .showcase-bottom { padding: 20px 16px; }
  .showcase-top,
  .showcase-middle { grid-template-columns: 1fr; }
  .showcase-middle {
    min-height: 780px;
    padding-top: 150px;
  }
  .showcase-copy-block {
    left: 16px;
    right: 16px;
    top: 20px;
    width: auto;
  }
  .showcase-metric,
  .showcase-avatars { justify-content: center; text-align: center; }
  .showcase-fresh { margin-left: 0; justify-content: center; }
  .showcase-headline { font-size: 24px; }
  .showcase-copy-large { font-size: 16px; }
  .sticker-cloud { min-height: 630px; }
  .sample-sticker-center { width: 250px; top: 51%; }
  .sticker-top-left { left: 1%; top: 14%; width: 140px; }
  .sticker-top-center { left: 50%; top: 1%; width: 156px; }
  .sticker-top-right { right: 0; top: 14%; width: 150px; }
  .sticker-right { right: -2%; top: 47%; width: 160px; }
  .sticker-bottom-left { left: 1%; bottom: 10%; width: 170px; }
  .sticker-bottom-right { right: 2%; bottom: 10%; width: 148px; }
  .floating-note { width: 220px; font-size: 13px; bottom: 2%; }
  .activity-row { grid-template-columns: 1fr; }
  .activity-card { align-items: flex-start; }
  .activity-pack { margin-left: 0; }
}

/* ── Support widget ── */
.support-widget {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 200;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
}

.support-fab {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  border: none;
  font-size: 20px;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(249,115,22,.35);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform .15s, box-shadow .15s;
}
.support-fab:hover { transform: scale(1.08); box-shadow: 0 6px 20px rgba(249,115,22,.45); }

.support-popup {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow);
  width: 260px;
  overflow: hidden;
}

.support-popup-head {
  background: var(--accent);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  font-size: 13px;
  font-weight: 600;
}

.support-close {
  background: none;
  border: none;
  color: rgba(255,255,255,.8);
  font-size: 18px;
  cursor: pointer;
  line-height: 1;
}
.support-close:hover { color: #fff; }

.support-popup-body {
  padding: 14px;
  font-size: 13px;
  color: var(--muted);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.support-tg-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  padding: 9px 16px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
}
.support-input {
  width: 100%;
  padding: 9px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: 13px;
  background: #fff;
  color: var(--text);
  margin-bottom: .5rem;
}

/* ── First-sticker loading screen ── */
.fl-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 48px 24px 40px;
  gap: 18px;
  text-align: center;
}
.fl-spinner-wrap { display: flex; align-items: center; justify-content: center; }
.fl-step-text {
  font-size: 15px;
  font-weight: 500;
  color: var(--text);
  min-height: 24px;
  transition: opacity .3s;
}
.fl-dots {
  display: flex;
  gap: 8px;
  align-items: center;
}
.fl-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--line);
  transition: background .3s, transform .3s;
}
.fl-dot.active {
  background: var(--accent);
  transform: scale(1.4);
}
.fl-hint {
  font-size: 11px;
  color: var(--muted2);
  letter-spacing: .02em;
}

/* ── Style chip in step 2 ── */
.s2-style-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 11px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #fafaf8;
  font-size: 11px;
  font-weight: 500;
  color: var(--muted);
  margin-bottom: .65rem;
}
.s2-style-chip::before {
  content: "✦";
  color: var(--accent);
  font-size: 9px;
}

/* ── Regeneration counter badge ── */
.regen-badge {
  display: inline-block;
  padding: 1px 6px;
  border-radius: 999px;
  background: var(--line);
  font-size: 10px;
  font-weight: 600;
  color: var(--muted);
  margin-left: 2px;
  line-height: 1.4;
}
.regen-badge.exhausted {
  background: #fee2e2;
  color: #dc2626;
}

/* ════════════════════════════════════════════════════════════════════════════
   STEP 3 — Pack details redesign
   ════════════════════════════════════════════════════════════════════════════ */

/* Style preview card */
.s3-style-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px;
  background: #fafaf8;
  border: 1px solid var(--line);
  border-radius: 14px;
  margin-bottom: 24px;
}
.s3-style-img-wrap {
  width: 80px;
  height: 80px;
  border-radius: 10px;
  overflow: hidden;
  flex-shrink: 0;
  background: var(--line-soft);
}
.s3-style-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.s3-style-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--muted-2);
  margin-bottom: 2px;
}
.s3-style-name {
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
}
.s3-style-hint {
  font-size: 12px;
  color: var(--muted);
  margin-top: 2px;
}

/* Qty row with prices */
.s3-promo-banner {
  background: linear-gradient(90deg, #fff7ed 0%, #ffedd5 100%);
  border: 1px solid #fed7aa;
  border-radius: 8px;
  padding: 8px 14px;
  font-size: 13px;
  font-weight: 600;
  color: #c2410c;
  margin-bottom: 12px;
  text-align: center;
}
.s3-qty-row {
  display: flex;
  gap: 10px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}
.s3-qty-btn {
  flex: 1;
  min-width: 72px;
  padding: 10px 8px;
  border-radius: 12px;
  border: 2px solid var(--line);
  background: #fff;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  transition: border-color .15s, background .15s;
}
.s3-qty-btn:hover { border-color: var(--accent); }
.s3-qty-btn-active {
  border-color: var(--accent);
  background: #fff7f0;
}
.s3-qty-num { font-size: 20px; font-weight: 700; line-height: 1; }
.s3-qty-price { font-size: 12px; color: var(--muted); font-weight: 500; }
.s3-qty-btn-active .s3-qty-price { color: var(--accent); }

/* Scene cards area */
.s3-scenes-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}
.s3-scenes-status {
  font-size: 12px;
  color: var(--muted);
}
.s3-scenes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 10px;
  margin-bottom: 20px;
}

/* Scene card */
.scene-card {
  background: #fff;
  border: 1.5px solid var(--line);
  border-radius: 12px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: border-color .15s;
}
.scene-card:hover { border-color: var(--accent); }
.scene-card-preview {
  background: var(--line-soft);
  border-style: dashed;
  align-items: center;
}
.scene-card-locked { opacity: .85; pointer-events: none; }

.scene-emoji-btn {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 8px;
  width: 38px;
  height: 38px;
  cursor: pointer;
  font-size: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background .12s;
}
.scene-emoji-btn:hover { background: #f0ede6; }

.scene-text-input {
  border: none;
  background: transparent;
  font-size: 13px;
  color: var(--text);
  width: 100%;
  resize: none;
  outline: none;
  line-height: 1.4;
  padding: 0;
  min-height: 36px;
}
.scene-text-input:focus { color: var(--accent); }

.scene-card-thumb {
  width: 100%;
  aspect-ratio: 1;
  border-radius: 8px;
  overflow: hidden;
  background: var(--line-soft);
}
.scene-card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.scene-card-badge {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: var(--muted-2);
  text-align: center;
}

/* Emoji picker popup */
.emoji-picker-popup {
  position: absolute;
  z-index: 200;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: 0 8px 24px rgba(0,0,0,.12);
  padding: 8px;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 4px;
}
.emoji-picker-option {
  font-size: 20px;
  cursor: pointer;
  padding: 4px;
  border-radius: 6px;
  text-align: center;
  transition: background .1s;
}
.emoji-picker-option:hover { background: var(--bg); }

/* Promo row */
.s3-promo-row {
  display: flex;
  gap: 8px;
  margin-bottom: 6px;
}
.s3-promo-input {
  flex: 1;
  padding: 9px 12px;
  border: 1.5px solid var(--line);
  border-radius: 10px;
  font-size: 14px;
  outline: none;
  transition: border-color .15s;
  background: #fff;
}
.s3-promo-input:focus { border-color: var(--accent); }
.s3-promo-btn { white-space: nowrap; }
.s3-promo-status {
  font-size: 13px;
  padding: 4px 0 12px;
}
.s3-promo-status.ok { color: var(--success); }
.s3-promo-status.err { color: #dc2626; }

/* Pay footer */
.s3-pay-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  flex-wrap: wrap;
}
.s3-terms-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--muted);
  cursor: pointer;
  user-select: none;
}
.s3-terms-label input[type="checkbox"] { width: 16px; height: 16px; cursor: pointer; }
.link-inline { color: var(--accent); }
.s3-pay-right {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}
.s3-total-price {
  font-size: 22px;
  font-weight: 700;
  color: var(--text);
}
.s3-pay-btn {
  padding: 12px 24px;
  font-size: 15px;
  font-weight: 600;
  white-space: nowrap;
}
.s3-pay-btn:disabled { opacity: .4; cursor: not-allowed; }

/* ════════════════════════════════════════════════════════════════════════════
   Payment modal
   ════════════════════════════════════════════════════════════════════════════ */

.payment-summary {
  background: var(--bg);
  border-radius: 10px;
  padding: 14px 16px;
  margin-bottom: 16px;
}
.payment-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 6px 0;
  font-size: 14px;
  border-bottom: 1px solid var(--line-soft);
}
.payment-row:last-child { border-bottom: none; }
.payment-row-promo { color: var(--success); }
.payment-row-total {
  font-size: 17px;
  font-weight: 700;
  padding-top: 10px;
  margin-top: 4px;
  border-top: 1px solid var(--line);
  border-bottom: none;
}
.payment-stub-notice {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background: #fffbeb;
  border: 1px solid #fde68a;
  border-radius: 10px;
  padding: 14px;
}
.payment-stub-icon { font-size: 24px; flex-shrink: 0; }
.payment-stub-title { font-size: 14px; font-weight: 600; margin-bottom: 2px; }
.payment-stub-sub { font-size: 12px; color: var(--muted); }

/* ════════════════════════════════════════════════════════════════════════════
   STEP 4 — Generation progress
   ════════════════════════════════════════════════════════════════════════════ */

.gen-progress-wrap {
  margin-bottom: 24px;
}
.gen-progress-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}
.gen-progress-label { font-size: 14px; font-weight: 600; color: var(--text); }
.gen-timer { font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; }
.gen-progress-bar {
  height: 6px;
  background: var(--line);
  border-radius: 99px;
  overflow: hidden;
}
.gen-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--accent), #fb923c);
  border-radius: 99px;
  transition: width .4s ease;
}

/* Per-sticker slots */
.gen-slots-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px;
  margin-bottom: 20px;
}
@media (max-width: 600px) {
  .gen-slots-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 380px) {
  .gen-slots-grid { grid-template-columns: repeat(2, 1fr); }
}

.gen-slot {
  aspect-ratio: 1;
  border-radius: 12px;
  overflow: hidden;
  position: relative;
  background: var(--line-soft);
}

/* Skeleton pulse */
.gen-slot-skeleton {
  background: linear-gradient(90deg, #f0ede6 25%, #faf8f4 50%, #f0ede6 75%);
  background-size: 200% 100%;
  animation: skeleton-sweep 1.4s infinite linear;
}
@keyframes skeleton-sweep {
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* Ready state */
.gen-slot-ready img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}
.gen-slot-ready::after {
  content: "✓";
  position: absolute;
  bottom: 4px;
  right: 4px;
  background: var(--success);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Error state */
.gen-slot-error {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  background: #fff0f0;
  border: 1px solid #fecaca;
}
.gen-slot-error-icon { font-size: 20px; }
.gen-slot-retry-btn {
  font-size: 10px;
  padding: 3px 8px;
  border-radius: 6px;
  border: 1px solid #fca5a5;
  background: #fff;
  cursor: pointer;
  color: #dc2626;
}
.gen-slot-retry-btn:hover { background: #fef2f2; }

/* Error screen */
.gen-error-screen {
  text-align: center;
  padding: 32px 16px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  margin-bottom: 20px;
}
.gen-error-icon { font-size: 40px; margin-bottom: 8px; }
.gen-error-title { font-size: 18px; font-weight: 700; margin-bottom: 6px; }
.gen-error-sub { font-size: 14px; color: var(--muted); }

/* ════════════════════════════════════════════════════════════════════════════
   STEP 5 — Results
   ════════════════════════════════════════════════════════════════════════════ */

.res-grid-5col {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px;
  margin-bottom: 24px;
}
@media (max-width: 600px) {
  .res-grid-5col { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 380px) {
  .res-grid-5col { grid-template-columns: repeat(2, 1fr); }
}

.res-sticker-card {
  aspect-ratio: 1;
  border-radius: 12px;
  overflow: hidden;
  background: var(--line-soft);
  cursor: pointer;
  position: relative;
  transition: transform .15s, box-shadow .15s;
}
.res-sticker-card:hover {
  transform: scale(1.04);
  box-shadow: 0 6px 20px rgba(0,0,0,.1);
}
.res-sticker-card img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}
.res-sticker-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.45);
  opacity: 0;
  transition: opacity .15s;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 22px;
}
.res-sticker-card:hover .res-sticker-overlay { opacity: 1; }

/* MAX export steps list */
.max-steps-list {
  margin: 8px 0 0 18px;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.9;
}

/* Referral card */
.ref-link-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 8px;
}
.ref-link-text {
  font-size: 13px;
  color: var(--accent);
  font-weight: 500;
  word-break: break-all;
}
.ref-copy-btn { padding: 6px 14px; font-size: 13px; }

.res-new-pack-row {
  text-align: center;
  margin-top: 24px;
}

/* ════════════════════════════════════════════════════════════════════════════
   Lightbox
   ════════════════════════════════════════════════════════════════════════════ */

.lightbox-shell {
  background: rgba(0,0,0,.85) !important;
  display: flex !important;
  align-items: center;
  justify-content: center;
  gap: 16px;
}
.lightbox-shell[hidden] { display: none !important; }

.lightbox-close {
  position: fixed;
  top: 16px;
  right: 20px;
  background: rgba(255,255,255,.15);
  border: none;
  color: #fff;
  font-size: 28px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .15s;
}
.lightbox-close:hover { background: rgba(255,255,255,.3); }

.lightbox-nav {
  background: rgba(255,255,255,.15);
  border: none;
  color: #fff;
  font-size: 36px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  cursor: pointer;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .15s;
  user-select: none;
}
.lightbox-nav:hover { background: rgba(255,255,255,.3); }

.lightbox-body {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  max-width: 520px;
  width: 90vw;
}
.lightbox-img {
  width: 100%;
  max-height: 70vh;
  object-fit: contain;
  border-radius: 16px;
}
.lightbox-caption {
  color: rgba(255,255,255,.7);
  font-size: 13px;
  text-align: center;
}

/* ═══════════════════════════════════════════════════════════════════════════
   AUTH GATE MODAL
   ═══════════════════════════════════════════════════════════════════════════ */

.auth-gate-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.55);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 1200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  overflow-y: auto;
}

.auth-gate-card {
  background: #fff;
  border-radius: 20px;
  padding: 28px 24px 32px;
  max-width: 400px;
  width: 100%;
  box-shadow: 0 24px 80px rgba(0,0,0,.22);
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* Blurred sticker preview */
.auth-gate-sticker-wrap {
  position: relative;
  width: 120px;
  height: 120px;
  margin: 0 auto;
  border-radius: 16px;
  overflow: hidden;
  flex-shrink: 0;
}
.auth-gate-sticker-blur {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: blur(12px) brightness(.8);
  transform: scale(1.1);
}
.auth-gate-lock-badge {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 40px;
}

.auth-gate-title {
  font-size: 20px;
  font-weight: 700;
  text-align: center;
  line-height: 1.2;
  margin: 0;
}
.auth-gate-sub {
  font-size: 14px;
  color: var(--muted);
  text-align: center;
  line-height: 1.5;
  margin: 0;
}

/* Social login buttons */
.auth-gate-social {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.btn-social {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 11px 16px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: #fff;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: background .15s, border-color .15s;
}
.btn-social:hover { background: var(--bg); border-color: #ccc; }
.btn-social:active { background: #eee; }
.social-icon { flex-shrink: 0; }

.btn-social-google { color: #3c4043; }
.btn-social-yandex { color: #fff; background: #FC3F1D; border-color: #FC3F1D; }
.btn-social-yandex:hover { background: #e0361a; border-color: #e0361a; }
.btn-social-vk { color: #fff; background: #4680C2; border-color: #4680C2; }
.btn-social-vk:hover { background: #3a6dad; border-color: #3a6dad; }

/* Divider */
.auth-gate-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 12px;
  color: var(--muted-2);
  text-transform: uppercase;
  letter-spacing: .04em;
}
.auth-gate-divider::before,
.auth-gate-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--line);
}

/* Tab switcher */
.auth-tab-row {
  display: flex;
  gap: 0;
  border-radius: 10px;
  background: var(--bg);
  padding: 3px;
}
.auth-tab {
  flex: 1;
  padding: 7px 0;
  border-radius: 8px;
  border: none;
  background: transparent;
  font-size: 13px;
  font-weight: 500;
  color: var(--muted);
  cursor: pointer;
  transition: background .15s, color .15s;
}
.auth-tab.auth-tab-active {
  background: #fff;
  color: var(--text);
  box-shadow: 0 1px 4px rgba(0,0,0,.1);
}

/* Form inputs */
.auth-input {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  font-size: 14px;
  background: #fff;
  outline: none;
  transition: border-color .15s;
  display: block;
  margin-bottom: 8px;
}
.auth-input:focus { border-color: var(--accent); }

#authLoginPanel,
#authRegisterPanel { display: flex; flex-direction: column; gap: 0; }

.auth-submit-btn { width: 100%; margin-top: 4px; }

/* Error message */
.auth-gate-error {
  font-size: 13px;
  color: #dc2626;
  text-align: center;
  padding: 8px 12px;
  background: #fef2f2;
  border-radius: 8px;
  border: 1px solid #fecaca;
}

@media (max-width: 440px) {
  .auth-gate-card { padding: 20px 16px 24px; }
  .auth-gate-title { font-size: 18px; }
}

/* SITE FOOTER */
.site-footer { background: #f5f4f0; border-top: 1px solid #e8e7e3; padding: 24px 24px 20px; }
.site-footer-inner { max-width: 960px; margin: 0 auto; display: flex; flex-direction: column; gap: 6px; }
.site-footer-row1 { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px; }
.site-footer-brand { font-size: 13px; font-weight: 600; color: #1a1a1a; letter-spacing: -.02em; }
.site-footer-brand span { color: #f97316; }
.site-footer-links { display: flex; gap: 16px; }
.site-footer-links a { font-size: 12px; color: #888; text-decoration: none; }
.site-footer-links a:hover { color: #1a1a1a; }
.site-footer-row2 { font-size: 11px; color: #bbb; line-height: 1.6; }
.site-footer-row2 a { color: #bbb; text-decoration: none; }
.site-footer-row2 a:hover { color: #888; }

/* SEO CONTENT SECTION */
.seo-content { background: #f9f8f5; border-top: 1px solid #f0efe9; padding: 56px 24px; }
.seo-inner { max-width: 860px; margin: 0 auto; }
.seo-header { text-align: center; margin-bottom: 40px; }
.seo-header h2 { font-size: 22px; font-weight: 700; color: #1a1a1a; margin-bottom: 10px; letter-spacing: -.02em; }
.seo-header p { font-size: 14px; color: #666; line-height: 1.65; max-width: 520px; margin: 0 auto; }
.seo-steps { display: flex; gap: 16px; margin-bottom: 36px; }
.seo-step { flex: 1; background: #fff; border: 1px solid #e8e7e3; border-radius: 14px; padding: 20px; }
.seo-step-num { font-size: 28px; font-weight: 800; color: #f0efe9; margin-bottom: 8px; line-height: 1; }
.seo-step-text { font-size: 13px; color: #444; line-height: 1.55; }
.seo-styles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.seo-style-item { background: #fff; border: 1px solid #e8e7e3; border-radius: 10px; padding: 10px 14px; font-size: 12px; color: #555; display: flex; align-items: center; gap: 8px; line-height: 1.4; }
.seo-style-item strong { color: #1a1a1a; }
.seo-style-dot { width: 6px; height: 6px; border-radius: 50%; background: #f97316; flex-shrink: 0; }
@media (max-width: 640px) {
  .seo-steps { flex-direction: column; }
  .seo-styles { grid-template-columns: repeat(2, 1fr); }
  .seo-header h2 { font-size: 18px; }
}

/* EXP TABS LABEL */
.exp-tabs-label { font-size: 13px; font-weight: 600; color: #1a1a1a; margin-bottom: 8px; }
