/* ── Reset & Tokens ─────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; -webkit-tap-highlight-color: transparent; }
button { font-family: inherit; cursor: pointer; }
input, textarea { font-family: inherit; }

:root {
  --bg:      #FFFFFF;
  --bg2:     #F7F5F1;
  --bg3:     #EFECEA;
  --text:    #0E0E0C;
  --hint:    #8C8A84;
  --accent:  #0E0E0C;
  --accent-t:#FFFFFF;
  --gold:    #B8935A;
  --gold-lt: #F5EDD9;
  --green:   #2A6449;
  --red:     #C13020;
  --border:  rgba(0,0,0,.065);
  --border2: rgba(0,0,0,.115);
  --r:       16px;
  --r-sm:    10px;
  --sh:      0 1px 2px rgba(0,0,0,.03), 0 4px 14px rgba(0,0,0,.05);
  --sh-lg:   0 2px 6px rgba(0,0,0,.04), 0 12px 40px rgba(0,0,0,.09);
  --fd:      'Cormorant Garant', Georgia, serif;
  --fb:      'Sora', -apple-system, sans-serif;
}

html { height: 100%; }
body {
  font-family: var(--fb);
  background: var(--bg);
  color: var(--text);
  font-size: 15px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  min-height: 100dvh;
  overflow-x: hidden;
}

/* ── Step progress nav ──────────────────────────────────────────────────────── */
#steps-nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 400;
  height: 42px;
  display: none; align-items: center; justify-content: center;
  gap: 0;
  padding: 0 52px 0 28px;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
#steps-nav.visible { display: flex; }
#start-over-btn {
  position: absolute; right: 10px; top: 50%; transform: translateY(-50%);
  background: none; border: 1.5px solid var(--border2); border-radius: 50%;
  width: 26px; height: 26px; padding: 0;
  display: none; align-items: center; justify-content: center;
  cursor: pointer; color: var(--text);
  font-size: 13px; line-height: 1;
  transition: background .15s, border-color .15s;
}
#start-over-btn:active { background: var(--bg2); border-color: var(--hint); }
#steps-nav.visible #start-over-btn { display: flex; }
.step-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--border2);
  transition: all .3s cubic-bezier(.2,.8,.3,1);
  flex-shrink: 0;
}
.step-dot.active  { width: 20px; border-radius: 3px; background: var(--accent); }
.step-dot.done    { background: var(--gold); }
.step-connector   { flex: 1; max-width: 22px; height: 1px; background: var(--border); }

/* ── Screens ────────────────────────────────────────────────────────────────── */
.screen {
  display: none; flex-direction: column;
  min-height: 100dvh;
  padding: 24px 20px 100px;
  padding-bottom: calc(100px + env(safe-area-inset-bottom));
}
.screen.active { display: flex; animation: fadeUp .28s cubic-bezier(.2,.8,.3,1) both; }
@keyframes fadeUp { from { opacity:0; transform:translateY(12px); } to { opacity:1; transform:none; } }
#s1.active { padding-top: 52px; }
#s6.active { align-items: center; justify-content: center; text-align: center; }
#s8.active { align-items: center; justify-content: center; text-align: center; }

/* ── Type ───────────────────────────────────────────────────────────────────── */
.fd           { font-family: var(--fd); font-weight: 700; line-height: 1; }
.eyebrow      { font-size: 10px; font-weight: 600; letter-spacing: 2.5px; text-transform: uppercase; color: var(--hint); }
.hint         { color: var(--hint); font-size: 13.5px; line-height: 1.5; }

/* ── Bottom CTA ─────────────────────────────────────────────────────────────── */
#bottom-btn {
  display: none; position: fixed; bottom: 0; left: 0; right: 0; z-index: 200;
  padding: 12px 20px calc(20px + env(safe-area-inset-bottom));
  background: linear-gradient(to top, #fff 62%, transparent);
}
#fallback-btn {
  width: 100%; padding: 15px 24px;
  background: var(--accent); color: var(--accent-t);
  border: none; border-radius: var(--r);
  font-family: var(--fb); font-size: 15px; font-weight: 600;
  letter-spacing: .1px;
  transition: opacity .15s, transform .1s;
  box-shadow: 0 4px 16px rgba(0,0,0,.16);
}
#fallback-btn:active  { opacity: .8; transform: scale(.987); }
#fallback-btn:disabled { opacity: .28; cursor: default; transform: none; box-shadow: none; }

/* ── S1: Language ───────────────────────────────────────────────────────────── */
.s1-eyebrow {
  font-size: 10px; font-weight: 600; letter-spacing: 3px;
  text-transform: uppercase; color: var(--gold);
  margin-bottom: 14px;
}
.s1-title {
  font-family: var(--fd); font-size: 64px; font-weight: 700;
  line-height: .88; letter-spacing: -2px;
  color: var(--text); margin-bottom: 12px;
}
.s1-sub {
  font-size: 13px; color: var(--hint); letter-spacing: .5px;
  margin-bottom: 44px;
}
.lang-cards { display: flex; flex-direction: column; gap: 10px; }
.lang-card {
  display: flex; align-items: center; gap: 16px;
  padding: 16px 18px;
  background: var(--bg);
  border: 1.5px solid var(--border2);
  border-radius: var(--r);
  cursor: pointer;
  transition: border-color .18s, box-shadow .18s, transform .1s, background .15s;
  text-align: left; width: 100%;
}
.lang-card:active, .lang-card.tapped {
  transform: scale(.983);
  border-color: var(--accent);
  box-shadow: var(--sh);
}
.lang-flag { font-size: 28px; flex-shrink: 0; line-height: 1; }
.lang-info { flex: 1; }
.lang-name { font-size: 16px; font-weight: 600; line-height: 1.15; }
.lang-tag  { font-size: 12px; color: var(--hint); margin-top: 2px; }
.lang-arrow { color: var(--border2); font-size: 20px; line-height: 1; transition: transform .18s, color .18s; }
.lang-card:active .lang-arrow, .lang-card.tapped .lang-arrow { transform: translateX(3px); color: var(--text); }

/* ── S2: Comparison ─────────────────────────────────────────────────────────── */
.compare-wrap {
  position: relative;
  width: calc(100% + 40px);
  margin: 12px -20px 0;
  aspect-ratio: 0.707;
  overflow: hidden;
  cursor: ew-resize;
  background: var(--bg2);
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
}
.compare-before-img,
.compare-after-img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover; object-position: top center;
  display: block; pointer-events: none;
  -webkit-user-drag: none;
}
.compare-after-img {
  clip-path: inset(0 0 0 46%);
}
.compare-line {
  position: absolute; top: 0; bottom: 0;
  left: 46%;
  width: 2px;
  background: rgba(255,255,255,.9);
  transform: translateX(-50%);
  pointer-events: none;
  filter: drop-shadow(0 0 3px rgba(0,0,0,.35));
  z-index: 2;
}
.compare-handle {
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 34px; height: 34px; border-radius: 50%;
  background: #fff;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 2px 10px rgba(0,0,0,.22);
}
.compare-lbl {
  position: absolute; top: 12px;
  padding: 3px 9px; border-radius: 20px;
  font-family: var(--fb);
  font-size: 9px; font-weight: 600; letter-spacing: 1.8px; text-transform: uppercase;
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  pointer-events: none; z-index: 3;
}
.lbl-before { left: 12px; background: rgba(193,48,32,.85); color: #fff; }
.lbl-after  { right: 12px; background: rgba(14,14,12,.75); color: #fff; }

.chips-row {
  display: flex; align-items: center; gap: 12px;
  margin-top: 16px;
}
.chips-label {
  font-size: 10px; font-weight: 600; letter-spacing: 1.8px;
  text-transform: uppercase; color: var(--hint);
  white-space: nowrap; flex-shrink: 0;
}
.design-chips {
  display: flex; gap: 7px; flex: 1;
}
.design-chip {
  flex: 1; padding: 8px 4px;
  border: 1.5px solid var(--border2);
  border-radius: 40px;
  background: transparent; color: var(--hint);
  font-family: var(--fb); font-size: 12px; font-weight: 600;
  transition: all .18s;
}
.design-chip.active { border-color: var(--accent); background: var(--accent); color: #fff; }
.design-chip:active { transform: scale(.96); }

/* ── S3: Upload ─────────────────────────────────────────────────────────────── */
.upload-zone {
  border: 2px dashed var(--border2);
  border-radius: var(--r);
  padding: 44px 20px 38px;
  text-align: center; cursor: pointer;
  background: var(--bg2); margin-bottom: 14px;
  transition: border-color .2s, background .2s, transform .1s;
}
.upload-zone:active { transform: scale(.99); }
.upload-zone.dragover { border-color: var(--accent); background: rgba(14,14,12,.03); }
.upload-icon { display: block; margin: 0 auto 16px; }
.upload-main  { font-size: 15px; font-weight: 600; }
.upload-sub   { font-size: 13px; color: var(--hint); margin-top: 5px; }
.upload-fmts  { font-size: 10.5px; color: var(--hint); margin-top: 10px; letter-spacing: 1.2px; text-transform: uppercase; }

.upload-progress { display: none; text-align: center; padding: 36px 20px; }
.ring-wrap { width: 68px; height: 68px; margin: 0 auto 18px; }
.ring-bg   { fill: none; stroke: var(--border2); stroke-width: 3; }
.ring-fill {
  fill: none; stroke: var(--accent); stroke-width: 3; stroke-linecap: round;
  stroke-dasharray: 186; stroke-dashoffset: 186;
  transform-origin: center; transform: rotate(-90deg);
  transition: stroke-dashoffset .5s ease, stroke .3s;
}
.ring-check {
  fill: none; stroke: var(--green); stroke-width: 2.5;
  stroke-linecap: round; stroke-linejoin: round;
  stroke-dasharray: 32; stroke-dashoffset: 32;
  transition: stroke-dashoffset .4s .15s ease;
}

.upload-success {
  display: none; align-items: center; gap: 12px;
  padding: 13px 15px; margin-bottom: 12px;
  background: rgba(42,100,73,.06);
  border: 1.5px solid rgba(42,100,73,.16);
  border-radius: var(--r-sm);
}
.success-filename { font-size: 13.5px; font-weight: 600; color: var(--green); }
.success-size     { font-size: 11px; color: var(--hint); margin-top: 1px; }

details.preview-details {
  border-radius: var(--r-sm); overflow: hidden;
  border: 1px solid var(--border); margin-top: 10px;
}
details.preview-details summary {
  padding: 11px 15px; cursor: pointer; font-size: 12.5px;
  font-weight: 500; color: var(--hint); list-style: none; user-select: none;
}
details.preview-details summary::marker { display: none; }
details.preview-details[open] summary { border-bottom: 1px solid var(--border); }
details.preview-details pre {
  padding: 12px 15px; font-size: 11.5px; color: var(--hint);
  white-space: pre-wrap; max-height: 130px; overflow-y: auto;
  font-family: var(--fb);
}

/* ── S4: Design cards ───────────────────────────────────────────────────────── */
.design-cards { display: flex; flex-direction: column; gap: 11px; }
.design-card {
  display: flex; align-items: stretch;
  border: 1.5px solid var(--border2); border-radius: var(--r);
  overflow: hidden; cursor: pointer; background: var(--bg);
  transition: border-color .18s, box-shadow .18s, transform .1s;
}
.design-card:active { transform: scale(.988); }
.design-card.selected { border-color: var(--accent); box-shadow: 0 0 0 1.5px var(--accent); }
.design-card-img {
  flex: 0 0 88px; overflow: hidden; position: relative;
  background: var(--bg2);
}
.design-card-img img { width: 100%; height: 100%; object-fit: cover; object-position: top; display: block; }
.design-card-info { flex: 1; padding: 15px 14px 15px 16px; display: flex; flex-direction: column; justify-content: center; }
.design-card-name { font-family: var(--fd); font-size: 20px; font-weight: 600; line-height: 1.05; }
.design-card-desc { font-size: 12px; color: var(--hint); margin-top: 4px; }
.design-card-check {
  flex-shrink: 0; align-self: center; margin-right: 14px;
  width: 24px; height: 24px; border-radius: 50%;
  background: var(--accent); color: #fff;
  display: flex; align-items: center; justify-content: center;
  opacity: 0; transform: scale(.3);
  transition: opacity .2s, transform .24s cubic-bezier(.2,1.6,.4,1);
}
.design-card.selected .design-card-check { opacity: 1; transform: scale(1); }

/* ── S5: Payment ────────────────────────────────────────────────────────────── */
.pay-card {
  border-radius: 16px;
  background:
    radial-gradient(ellipse at 18% 32%, rgba(162,18,30,.82) 0%, transparent 52%),
    radial-gradient(ellipse at 74% 50%, rgba(8,88,82,.88) 0%, transparent 50%),
    #0C0D10;
  padding: 16px 18px 14px;
  margin-bottom: 22px;
  position: relative; overflow: hidden;
  box-shadow: 0 8px 28px rgba(0,0,0,.45), 0 2px 6px rgba(0,0,0,.3);
}
.pay-card::before, .pay-card::after { display: none; }
.bog-chip-wrap {
  display: flex; align-items: center; gap: 14px; margin-bottom: 12px;
}
.bog-chip {
  width: 36px; height: 27px; border-radius: 5px;
  background: linear-gradient(135deg, #C8C8C8 0%, #E8E8E8 30%, #A0A0A0 60%, #D0D0D0 100%);
  position: relative; overflow: hidden;
}
.bog-chip::before {
  content: ''; position: absolute; inset: 4px;
  border: 1px solid rgba(0,0,0,.15); border-radius: 2px;
}
.bog-chip::after {
  content: ''; position: absolute; top: 50%; left: 0; right: 0;
  height: 1px; background: rgba(0,0,0,.1);
  transform: translateY(-50%);
}
.pay-amount-lbl {
  font-size: 9px; font-weight: 600; letter-spacing: 2px;
  text-transform: uppercase; color: rgba(255,255,255,.45); margin-bottom: 4px;
}
.pay-amount {
  font-family: var(--fd); font-size: 38px; font-weight: 700;
  color: #fff; letter-spacing: -1.5px; line-height: 1;
}
.pay-recipient-wrap { margin-top: 12px; }
.pay-recipient-lbl {
  font-size: 9px; font-weight: 600; letter-spacing: 2px;
  text-transform: uppercase; color: rgba(255,255,255,.45); margin-bottom: 6px;
}
.pay-recipient-btn {
  display: flex; align-items: center; gap: 10px;
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.13);
  border-radius: 10px; padding: 11px 14px; cursor: pointer;
  width: 100%; text-align: left; transition: background .15s;
}
.pay-recipient-btn:active { background: rgba(255,255,255,.15); }
.pay-recipient-num {
  flex: 1; font-size: 13px; color: rgba(255,255,255,.9); letter-spacing: 1.5px;
  font-weight: 400; word-break: break-all;
}
.pay-copy-icon { color: rgba(255,255,255,.5); flex-shrink: 0; }
.pay-copy-hint {
  font-size: 11px; color: rgba(255,255,255,.35); margin-top: 6px; text-align: center;
  transition: color .2s;
}
.bog-footer {
  display: flex; align-items: center; justify-content: space-between;
  margin-top: 12px;
}
.bog-wordmark {
  font-size: 11px; font-weight: 700; letter-spacing: 1.5px;
  color: rgba(255,255,255,.55); font-family: var(--fb);
}
.bog-mc {
  display: flex; align-items: center;
}
.bog-mc-red  { width: 22px; height: 22px; border-radius: 50%; background: #EB001B; opacity: .9; }
.bog-mc-gold { width: 22px; height: 22px; border-radius: 50%; background: #F79E1B; opacity: .9; margin-left: -9px; }

.pay-steps { margin-bottom: 20px; }
.pay-step {
  display: flex; align-items: flex-start; gap: 14px;
  padding: 13px 0; border-bottom: 1px solid var(--border);
}
.pay-step:last-child { border-bottom: none; }
.step-num {
  flex-shrink: 0; width: 24px; height: 24px; border-radius: 50%;
  background: var(--text); color: #fff;
  font-size: 11px; font-weight: 600;
  display: flex; align-items: center; justify-content: center; margin-top: 1px;
}
.step-text { font-size: 13.5px; line-height: 1.45; }

.screenshot-zone {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  border: 1.5px dashed var(--border2); border-radius: var(--r-sm);
  padding: 18px; cursor: pointer; color: var(--hint); font-size: 13.5px;
  transition: border-color .18s, color .18s, background .15s;
}
.screenshot-zone:active { border-color: var(--accent); color: var(--accent); }
.screenshot-preview { display: none; border-radius: var(--r-sm); overflow: hidden; margin-bottom: 10px; position: relative; }
.screenshot-preview img { width: 100%; max-height: 210px; object-fit: cover; display: block; }
.screenshot-preview-overlay {
  position: absolute; inset: 0;
  background: rgba(42,100,73,.6);
  display: flex; align-items: center; justify-content: center;
}

/* ── S6: Waiting ────────────────────────────────────────────────────────────── */
#s6 { gap: 0; }
.wait-anim {
  position: relative; width: 88px; height: 88px;
  margin: 0 auto 36px;
}
.wait-anim svg { position: absolute; inset: 0; }
.wa-track { fill: none; stroke: var(--border2); stroke-width: 1.5; }
.wa-arc1 {
  fill: none; stroke: var(--accent); stroke-width: 2.5; stroke-linecap: round;
  stroke-dasharray: 220; stroke-dashoffset: 170;
  transform-origin: 44px 44px;
  animation: waRot1 1.5s linear infinite;
}
.wa-arc2 {
  fill: none; stroke: var(--gold); stroke-width: 1.5; stroke-linecap: round; opacity: .5;
  stroke-dasharray: 140; stroke-dashoffset: 110;
  transform-origin: 44px 44px;
  animation: waRot2 2.2s linear infinite reverse;
}
@keyframes waRot1 { to { transform: rotate(360deg); } }
@keyframes waRot2 { to { transform: rotate(360deg); } }
#wait-status {
  font-family: var(--fd); font-size: 24px; font-weight: 600;
  line-height: 1.2; margin-bottom: 8px;
}
#wait-eta   { font-size: 12.5px; color: var(--hint); }
#wait-error { color: var(--red); font-size: 13.5px; margin-top: 24px; display: none; line-height: 1.6; white-space: pre-line; }

/* ── S7: Editor ─────────────────────────────────────────────────────────────── */
.ed-section {
  background: var(--bg); border: 1px solid var(--border);
  border-radius: var(--r); margin-bottom: 12px; box-shadow: var(--sh);
  overflow: hidden;
}
.ed-section-header {
  display: flex; align-items: center; gap: 10px;
  padding: 15px 16px; cursor: pointer;
  user-select: none; -webkit-user-select: none;
  -webkit-tap-highlight-color: transparent;
  min-height: 52px;
}
.ed-section-header:active { background: var(--bg2); }
.ed-section-title {
  flex: 1; font-size: 9px; font-weight: 600; letter-spacing: 2.5px;
  text-transform: uppercase; color: var(--hint);
}
.ed-section-count {
  font-size: 11px; font-weight: 600; color: var(--hint);
  background: var(--bg2); border-radius: 20px;
  padding: 1px 8px; min-width: 22px; text-align: center;
  display: none;
}
.ed-section-count:not(:empty) { display: block; }
.ed-chev {
  color: var(--hint); flex-shrink: 0;
  transition: transform .22s cubic-bezier(.2,.8,.3,1);
}
.ed-section.open .ed-section-header .ed-chev { transform: rotate(180deg); }
.ed-section-body {
  display: none; padding: 6px 16px 12px;
  border-top: 1px solid var(--border);
}
.ed-section.open .ed-section-body { display: block; }

.ed-field { margin-bottom: 16px; margin-top: 10px; }
.ed-field-label {
  font-size: 10px; color: var(--hint);
  margin-bottom: 5px; font-weight: 600;
  letter-spacing: .8px; text-transform: uppercase;
}
.ed-input {
  width: 100%; border: none; border-bottom: 1.5px solid var(--border);
  background: transparent; color: var(--text);
  font-size: 15px; padding: 6px 0 8px;
  outline: none; transition: border-color .18s;
  -webkit-appearance: none;
}
.ed-input:focus { border-bottom-color: var(--accent); }
.ed-textarea {
  width: 100%; border: none; border-bottom: 1.5px solid var(--border);
  background: transparent; color: var(--text);
  font-size: 15px; padding: 6px 0 8px;
  outline: none; resize: none; transition: border-color .18s;
  min-height: 72px; line-height: 1.5;
}
.ed-textarea:focus { border-bottom-color: var(--accent); }

/* Collapsed list items */
.ed-list-item {
  background: var(--bg2); border-radius: var(--r-sm);
  margin-bottom: 8px; overflow: hidden;
}
.ed-item-preview {
  display: flex; align-items: center; gap: 12px;
  padding: 14px; min-height: 52px; cursor: pointer;
  user-select: none; -webkit-user-select: none;
  -webkit-tap-highlight-color: transparent;
}
.ed-item-preview:active { background: var(--bg3); }
.ed-item-summary {
  flex: 1; font-size: 14px; font-weight: 500; color: var(--text);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.ed-list-item.open .ed-item-preview .ed-chev { transform: rotate(180deg); }
.ed-item-body {
  display: none; padding: 4px 14px 12px;
  border-top: 1px solid var(--border);
}
.ed-list-item.open .ed-item-body { display: block; }

.ed-delete-entry {
  width: 100%; margin-top: 10px; padding: 11px;
  background: none; border: 1.5px solid var(--border2);
  border-radius: var(--r-sm); color: var(--hint);
  font-size: 13px; font-weight: 500; cursor: pointer;
  transition: border-color .15s, color .15s, background .15s;
}
.ed-delete-entry:active { border-color: var(--red); color: var(--red); background: rgba(193,48,32,.05); }

.ed-add {
  width: 100%; padding: 11px 14px;
  border: 1.5px dashed var(--border2);
  border-radius: var(--r-sm); background: transparent; color: var(--hint);
  font-size: 13px; font-weight: 500; cursor: pointer; margin-bottom: 6px;
  transition: border-color .18s, color .18s;
}
.ed-add:active { border-color: var(--accent); color: var(--accent); }

/* Skills row (inline key-value, no collapse) */
.skills-row { display: flex; gap: 8px; align-items: flex-end; margin-bottom: 10px; }
.skills-row .ed-input { flex: 1; }
.ed-remove {
  flex-shrink: 0; width: 36px; height: 36px; border-radius: 50%;
  background: transparent; border: 1px solid var(--border2);
  color: var(--hint); font-size: 18px; line-height: 1;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; padding: 0; margin-bottom: 8px;
  transition: background .15s, border-color .15s, color .15s;
}
.ed-remove:active { background: var(--red); border-color: var(--red); color: #fff; }

/* ── S9: Profile ────────────────────────────────────────────────────────────── */
.profile-empty {
  display: flex; flex-direction: column; align-items: center;
  justify-content: center; flex: 1; gap: 10px;
  color: var(--hint); font-size: 14px; text-align: center;
}
.profile-empty svg { opacity: .3; margin-bottom: 6px; }
.cv-card {
  background: var(--bg2); border: 1px solid var(--border);
  border-radius: var(--r); padding: 16px;
  margin-bottom: 14px;
}
.cv-card-header {
  display: flex; align-items: flex-start;
  justify-content: space-between; margin-bottom: 12px;
}
.cv-card-name { font-weight: 700; font-size: 16px; line-height: 1.2; }
.cv-card-date { font-size: 11px; color: var(--hint); margin-top: 3px; }
.cv-edit-btn {
  background: none; border: 1.5px solid var(--border2); border-radius: 7px;
  color: var(--accent); font-size: 12px; font-weight: 600; cursor: pointer;
  padding: 5px 10px; flex-shrink: 0; transition: background .15s;
}
.cv-edit-btn:active { background: var(--bg2); }
.cv-card-designs {
  display: flex; gap: 8px;
}
.cv-design-btn {
  flex: 1; padding: 9px 4px; border-radius: 8px;
  border: 1.5px solid var(--border2); background: var(--bg);
  font-size: 12px; font-weight: 600; cursor: pointer; color: var(--text);
  transition: border-color .15s, background .15s, color .15s;
  position: relative; overflow: hidden;
}
.cv-design-btn.active-design {
  border-color: var(--accent); background: var(--accent); color: var(--accent-t);
}
.cv-design-btn:active { opacity: .75; }
.cv-design-btn.loading { color: transparent; pointer-events: none; }
.cv-design-btn.loading::after {
  content: ''; position: absolute; inset: 0; margin: auto;
  width: 14px; height: 14px; border-radius: 50%;
  border: 2px solid currentColor; border-top-color: transparent;
  animation: spin .7s linear infinite;
  color: var(--hint);
}
.cv-design-sent {
  font-size: 11px; color: var(--green); text-align: center;
  margin-top: 8px; height: 16px; transition: opacity .3s;
}
.cv-delete-btn {
  margin-top: 12px; width: 100%; padding: 8px;
  background: none; border: 1.5px solid var(--border2);
  border-radius: var(--r-sm); color: var(--hint);
  font-size: 12px; font-weight: 500; cursor: pointer;
  transition: border-color .15s, color .15s, background .15s;
}
.cv-delete-btn:active { border-color: var(--red); color: var(--red); background: rgba(193,48,32,.05); }
.cv-delete-btn:disabled { opacity: .4; pointer-events: none; }

/* ── S1 profile button ──────────────────────────────────────────────────────── */
#s1-profile-btn {
  display: none; margin-top: 20px;
  background: none; border: 1.5px solid var(--border2);
  border-radius: var(--r); color: var(--hint);
  font-size: 14px; font-weight: 500; cursor: pointer;
  padding: 13px 20px; width: 100%; text-align: center;
  transition: border-color .15s, color .15s;
}
#s1-profile-btn:active { border-color: var(--accent); color: var(--accent); }

/* ── S8: Done ───────────────────────────────────────────────────────────────── */
#s8 { gap: 0; }
.done-glow {
  position: relative; width: 108px; height: 108px;
  margin: 0 auto 28px;
}
.done-glow::before {
  content: ''; position: absolute; inset: -14px; border-radius: 50%;
  background: radial-gradient(circle, rgba(42,100,73,.12) 0%, transparent 70%);
  animation: glowPulse 2.2s ease-in-out infinite;
}
@keyframes glowPulse { 0%,100% { transform:scale(1); opacity:.6; } 50% { transform:scale(1.12); opacity:1; } }
.done-circle {
  width: 108px; height: 108px; border-radius: 50%;
  background: var(--accent);
  display: flex; align-items: center; justify-content: center;
  animation: popIn .5s cubic-bezier(.2,1.6,.3,1);
  box-shadow: 0 8px 32px rgba(0,0,0,.18);
}
@keyframes popIn { from { transform:scale(0); opacity:0; } to { transform:scale(1); opacity:1; } }
.done-check {
  stroke-dasharray: 46; stroke-dashoffset: 46;
  animation: drawCheck .5s .42s cubic-bezier(.4,0,.2,1) forwards;
}
@keyframes drawCheck { to { stroke-dashoffset: 0; } }
.done-title {
  font-family: var(--fd); font-size: 36px; font-weight: 700;
  line-height: 1.05; margin-bottom: 10px;
}
.done-sub   { color: var(--hint); font-size: 14px; margin-bottom: 38px; line-height: 1.55; }
.done-btns  { display: flex; flex-direction: column; gap: 10px; width: 100%; }

/* ── Shared buttons ─────────────────────────────────────────────────────────── */
.btn-outline {
  padding: 14px 22px; border-radius: var(--r);
  font-size: 15px; font-weight: 600; cursor: pointer;
  background: transparent; border: 1.5px solid var(--accent); color: var(--accent);
  transition: background .15s, transform .1s;
}
.btn-outline:active { background: rgba(14,14,12,.05); transform: scale(.99); }
.btn-filled {
  padding: 14px 22px; border-radius: var(--r);
  font-size: 15px; font-weight: 600; cursor: pointer;
  background: var(--accent); border: 1.5px solid var(--accent); color: var(--accent-t);
  box-shadow: 0 4px 16px rgba(0,0,0,.15);
  transition: opacity .15s, transform .1s;
}
.btn-filled:active { opacity: .82; transform: scale(.99); }

/* ── Skeleton ───────────────────────────────────────────────────────────────── */
.skeleton {
  background: linear-gradient(90deg, var(--bg2) 25%, var(--bg3) 50%, var(--bg2) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.4s infinite;
  border-radius: 8px;
}
@keyframes shimmer { to { background-position: -200% 0; } }

/* ── Misc ───────────────────────────────────────────────────────────────────── */
.sp4 {margin-top:4px} .sp8{margin-top:8px} .sp12{margin-top:12px}
.sp16{margin-top:16px} .sp20{margin-top:20px} .sp24{margin-top:24px}
input[type="file"] { display: none; }
