/* realizacja.css — page-specific styles, layered on tokens.css */

/* ───────── Shell ───────── */
.ml-shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
.ml-main { flex: 1; display: flex; flex-direction: column; }

/* ───────── Mini-nav ───────── */
.ml-nav {
  position: sticky; top: 0; z-index: 50;
  height: var(--nav-h);
  background: rgba(10, 11, 13, 0.78);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid var(--line);
}
.ml-nav-inner {
  max-width: var(--max-w);
  height: 100%;
  margin: 0 auto;
  padding: 0 var(--sp-6);
  display: flex; align-items: center; justify-content: space-between;
  gap: var(--sp-4);
}
.ml-brand {
  display: inline-flex; align-items: center; gap: 10px;
  color: var(--text);
  font-weight: 600;
  letter-spacing: 0.02em;
  font-size: 14px;
  min-height: 44px;
}
.ml-brand:hover { color: var(--text); }
.ml-brand:focus-visible,
.ml-footer-meta a:focus-visible,
.chip:focus-visible,
.mood-chip:focus-visible,
.multi-url-remove:focus-visible,
.multi-url-add:focus-visible,
.demo-switcher button:focus-visible,
.style-chip:focus-visible {
  outline: 2px solid var(--ice);
  outline-offset: 3px;
}
.ml-nav-pill {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 12px;
  color: var(--text-2);
  padding: 6px 12px;
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  background: var(--surface);
  white-space: nowrap;
  overflow: hidden; text-overflow: ellipsis;
  max-width: 60vw;
}
.ml-nav-pill-pkg { color: var(--text-1); }
.ml-nav-pill-price { color: var(--ice); }
.ml-nav-pill-sep, .ml-nav-pill-label { color: var(--text-3); }

@media (max-width: 540px) {
  .ml-nav-inner { padding: 0 var(--sp-4); }
  .ml-nav-pill-label { display: none; }
  .ml-nav-pill-sep { display: none; }
}

/* ───────── Footer ───────── */
.ml-footer {
  border-top: 1px solid var(--line);
  margin-top: var(--sp-16);
}
.ml-footer-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: var(--sp-6) var(--sp-6);
  display: flex; align-items: center; justify-content: space-between;
  gap: var(--sp-4);
  flex-wrap: wrap;
}
.ml-footer-brand {
  display: inline-flex; align-items: center; gap: 10px;
  color: var(--text-1); font-weight: 600; font-size: 13px;
}
.ml-footer-meta {
  display: inline-flex; align-items: center; gap: 10px;
  flex-wrap: wrap;
  min-width: 0;
  max-width: 100%;
  overflow-wrap: anywhere;
  color: var(--text-3); font-size: 12px;
}
.ml-footer-meta a { color: var(--text-2); }
.ml-footer-meta a:hover { color: var(--ice); }
.ml-dot { color: var(--text-3); }
.ml-footer-payments {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.ml-footer-payments span {
  color: var(--text-2);
}
.ml-footer-payments img {
  display: block;
  width: min(220px, 100%);
  max-height: 112px;
  height: auto;
  object-fit: contain;
  border-radius: 7px;
  background: #fff;
  border: 1px solid rgba(255,255,255,0.08);
}

@media (max-width: 540px) {
  .ml-footer-inner { align-items: flex-start; }
  .ml-footer-meta { row-gap: 6px; }
  .ml-footer-payments {
    width: 100%;
    align-items: flex-start;
    flex-direction: column;
  }
  .ml-footer-payments img { width: min(100%, 300px); }
}

/* ───────── Hero lite ───────── */
.hero-lite {
  position: relative;
  overflow: hidden;
  padding: clamp(48px, 8vw, 96px) var(--sp-6) clamp(40px, 6vw, 64px);
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(ellipse 80% 60% at 50% 0%, rgba(125,211,252,0.06), transparent 60%),
    radial-gradient(ellipse 50% 50% at 100% 100%, rgba(251,146,60,0.06), transparent 60%),
    var(--bg);
}
.hero-lite-inner {
  position: relative; z-index: 1;
  max-width: var(--max-w);
  margin: 0 auto;
}
.hero-pill {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--ice);
  padding: 6px 12px;
  border: 1px solid rgba(125,211,252,0.35);
  border-radius: var(--r-pill);
  background: rgba(125,211,252,0.06);
  margin-bottom: var(--sp-6);
}
.hero-pill-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--ice);
  box-shadow: 0 0 0 3px rgba(125,211,252,0.18);
}
.hero-headline {
  font-size: clamp(36px, 5vw, 64px);
  line-height: 1.02;
  font-weight: 700;
  letter-spacing: -0.035em;
  margin: 0 0 var(--sp-5);
  text-wrap: balance;
  max-width: 16ch;
}
.hero-headline em {
  font-style: normal;
  background: linear-gradient(120deg, var(--ice) 0%, var(--flame) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-sub {
  font-size: clamp(16px, 1.4vw, 18px);
  color: var(--text-1);
  margin: 0;
  max-width: 50ch;
}

/* ───────── Hero meta row — reszta package pill + order ref ───────── */
.hero-meta-row {
  display: flex; align-items: center; flex-wrap: wrap;
  gap: var(--sp-3);
  margin-bottom: var(--sp-6);
}
.hero-meta-row .hero-pill { margin-bottom: 0; }
.pill {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 6px 13px;
  border-radius: var(--r-pill);
  font-family: var(--font-mono);
  font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; font-weight: 500;
}
.pill-ice { background: rgba(125,211,252,0.10); color: var(--ice); border: 1px solid var(--line-2); }
.pill-flame { background: rgba(251,146,60,0.10); color: var(--flame-hi); border: 1px solid rgba(251,146,60,0.3); }
.ordno { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.1em; color: var(--text-2); }
.ordno b { color: var(--ice); font-weight: 600; }

/* ───────── Form section ───────── */
.form-section {
  padding: clamp(40px, 6vw, 72px) var(--sp-6) clamp(64px, 8vw, 96px);
}
.form-inner {
  max-width: 720px;
  margin: 0 auto;
}
.form-meta-strip {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-3);
  margin-bottom: var(--sp-6);
  padding-bottom: var(--sp-4);
  border-bottom: 1px dashed var(--line);
}
.form-meta-strip-step {
  color: var(--ice);
}
.form-preview-note {
  display: grid;
  gap: 5px;
  margin-bottom: var(--sp-6);
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: rgba(255,255,255,0.035);
  color: var(--text-1);
  font-size: 13px;
  line-height: 1.5;
}
.form-preview-note strong {
  color: var(--text);
  font-size: 14px;
}

.field {
  margin-bottom: var(--sp-8);
}
.field-label {
  display: block;
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
  margin-bottom: var(--sp-2);
}
.field-label .req { color: var(--flame); margin-left: 2px; }
.field-sublabel {
  display: block;
  font-size: 13px;
  color: var(--text-2);
  margin-bottom: var(--sp-3);
  margin-top: -2px;
}
.field-helper {
  display: block;
  font-size: 12px;
  color: var(--text-3);
  margin-top: var(--sp-2);
}
.field-helper.error { color: var(--st-blocked); }

/* ───────── Inputs ───────── */
.input, .textarea {
  width: 100%;
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 14px 16px;
  font-size: 16px;
  font-family: var(--font-sans);
  transition: border-color 160ms ease, background-color 160ms ease, box-shadow 160ms ease;
  outline: none;
}
.input.mono, .textarea.mono { font-family: var(--font-mono); font-size: 16px; }
.input::placeholder, .textarea::placeholder { color: var(--text-3); }
.input:hover, .textarea:hover { border-color: var(--line-2); }
.input:focus, .textarea:focus {
  border-color: var(--ice);
  background: var(--surface-2);
  box-shadow: 0 0 0 3px var(--ice-glow);
}
.input.is-valid { border-color: rgba(52, 211, 153, 0.55); }
.input.is-loading { border-color: rgba(125,211,252,0.55); }
.input.is-invalid { border-color: rgba(248,113,113,0.55); }
.textarea { resize: vertical; min-height: 110px; line-height: 1.55; }
.textarea-wrap { position: relative; }
.char-counter {
  position: absolute;
  bottom: 8px; right: 12px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-3);
  pointer-events: none;
  background: var(--surface);
  padding: 2px 6px;
  border-radius: 6px;
}
.char-counter.warn { color: var(--st-pending); }

/* ───────── Spotify track preview card ───────── */
.spotify-picker.has-selection .input { display: none; }
.spotify-picker.has-selection #spotify-preview-mount { margin-top: 0; }
.track-preview {
  display: grid;
  grid-template-columns: 56px 1fr auto;
  align-items: center;
  gap: var(--sp-4);
  margin-top: var(--sp-3);
  padding: 12px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  position: relative;
  animation: fade-up 280ms ease-out;
  color: var(--text);
  text-decoration: none;
  transition: border-color 160ms ease-out, background-color 160ms ease-out, box-shadow 160ms ease-out;
}
.track-preview-selected { cursor: default; }
.track-preview:hover {
  border-color: var(--ice);
  background: var(--surface-2);
  box-shadow: 0 0 0 3px var(--ice-glow);
}
.track-preview:focus-visible {
  outline: 2px solid var(--ice);
  outline-offset: 3px;
}
.track-preview-state:hover {
  border-color: var(--line);
  background: var(--surface);
  box-shadow: none;
}
.track-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
}
.track-cover {
  width: 56px; height: 56px;
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  background: linear-gradient(135deg, #7dd3fc, #fb923c);
  overflow: hidden;
}
.track-cover-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.track-meta { min-width: 0; }
.track-name {
  font-size: 15px; font-weight: 600;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.track-artist { font-size: 13px; color: var(--text-1); margin-top: 2px; }
.track-open {
  font-size: 13px;
  color: var(--text-2);
  padding: 4px 8px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 6px;
  white-space: nowrap;
  text-decoration: none;
}
.track-preview:hover .track-open {
  color: var(--ice);
}
.track-change {
  font: inherit;
  font-size: 13px;
  color: var(--text-2);
  padding: 4px 8px;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 6px;
  white-space: nowrap;
  cursor: pointer;
}
.track-change:hover,
.track-open:hover {
  color: var(--ice);
  border-color: var(--ice);
}
.track-badge {
  position: absolute;
  top: -10px; right: 12px;
  font-size: 10px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--st-fulfilled);
  background: var(--bg);
  padding: 3px 8px;
  border: 1px solid rgba(52, 211, 153, 0.35);
  border-radius: var(--r-pill);
  display: inline-flex; align-items: center; gap: 6px;
}
.track-badge-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--st-fulfilled);
  box-shadow: 0 0 0 3px rgba(52,211,153,0.18);
}
.track-preview-state .track-badge,
.track-preview-state .track-open { display: none; }
.track-preview-state.is-loading .track-cover {
  background: linear-gradient(135deg, rgba(125,211,252,.16), rgba(251,146,60,.16));
}
.track-preview-state.is-error {
  border-color: rgba(248,113,113,0.35);
}
.track-preview-state.is-error .track-cover {
  background: rgba(248,113,113,0.16);
}

@media (max-width: 520px) {
  .track-preview {
    grid-template-columns: 48px 1fr;
    gap: var(--sp-3);
  }
  .track-cover { width: 48px; height: 48px; }
  .track-open,
  .track-actions {
    grid-column: 2;
    justify-self: flex-start;
    margin-top: -4px;
  }
  .track-actions { justify-content: flex-start; }
}

/* ───────── Chip selector (date / generic) ───────── */
.chip-row {
  display: flex; flex-wrap: wrap; gap: 8px;
}
.chip {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 14px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  color: var(--text-1);
  font-size: 14px;
  font-weight: 500;
  transition: background-color 160ms ease-out,
              border-color 160ms ease-out,
              box-shadow 160ms ease-out,
              color 160ms ease-out,
              transform 160ms ease-out;
}
.chip:hover { border-color: var(--line-2); color: var(--text); }
.chip.is-active {
  background: rgba(125,211,252,0.10);
  border-color: var(--ice);
  color: var(--ice);
}
.chip-icon { width: 14px; height: 14px; opacity: 0.85; }

.date-picker-wrap {
  margin-top: var(--sp-3);
  animation: fade-up 240ms ease-out;
}

/* ───────── Mood chips ───────── */
.mood-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
@media (max-width: 560px) {
  .mood-grid { grid-template-columns: repeat(2, 1fr); }
}
.mood-chip {
  display: flex; align-items: center; gap: 10px;
  padding: 14px 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  color: var(--text-1);
  font-size: 15px;
  font-weight: 500;
  transition: background-color 160ms ease-out,
              border-color 160ms ease-out,
              box-shadow 160ms ease-out,
              color 160ms ease-out,
              transform 160ms ease-out;
  text-align: left;
}
.mood-chip:hover:not(:disabled) {
  border-color: var(--line-2);
  color: var(--text);
  box-shadow: 0 0 0 3px var(--ice-glow);
}
.mood-chip.is-active {
  background: rgba(125,211,252,0.10);
  border-color: var(--ice);
  color: var(--ice);
  box-shadow: 0 0 0 3px var(--ice-glow);
}
.mood-chip.is-active .mood-chip-icon { color: var(--ice); }
.mood-chip-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 28px; height: 28px;
  border-radius: 8px;
  background: var(--surface-2);
  color: var(--text-2);
}
.mood-chip.is-active .mood-chip-icon {
  background: rgba(125,211,252,0.16);
}
.mood-chip:disabled,
.mood-chip.is-disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

/* ───────── Multi-url ───────── */
.multi-url { display: flex; flex-direction: column; gap: 8px; }
.multi-url-row { display: flex; gap: 8px; }
.multi-url-row .input { flex: 1; }
.multi-url-remove {
  background: transparent;
  border: 1px solid var(--line);
  color: var(--text-2);
  border-radius: var(--r-md);
  padding: 0 14px;
  font-size: 13px;
  white-space: nowrap;
  transition: background-color 160ms ease-out,
              border-color 160ms ease-out,
              box-shadow 160ms ease-out,
              color 160ms ease-out,
              transform 160ms ease-out;
}
.multi-url-remove:hover {
  border-color: var(--st-blocked);
  color: var(--st-blocked);
}
.multi-url-add {
  align-self: flex-start;
  margin-top: 4px;
  background: transparent;
  border: 1px dashed var(--line-2);
  border-radius: var(--r-md);
  padding: 10px 14px;
  color: var(--text-1);
  font-size: 13px;
  display: inline-flex; align-items: center; gap: 10px;
  transition: background-color 160ms ease-out,
              border-color 160ms ease-out,
              box-shadow 160ms ease-out,
              color 160ms ease-out,
              transform 160ms ease-out;
}
.multi-url-add:hover {
  border-color: var(--ice);
  color: var(--ice);
  background: rgba(125,211,252,0.05);
}
.multi-url-count { color: var(--text-3); font-size: 11px; }

/* ───────── Edit count info block ───────── */
.info-block {
  display: flex; align-items: center; gap: 12px;
  padding: 16px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--text-1);
}
.info-block-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 32px; height: 32px;
  border-radius: 8px;
  background: rgba(251,146,60,0.12);
  color: var(--flame);
  flex-shrink: 0;
}
.info-block-num { color: var(--flame); font-weight: 600; }

/* ───────── Buttons ───────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: inherit;
  font-weight: 600;
  border-radius: var(--r-md);
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 160ms ease-out, box-shadow 160ms ease-out, background-color 160ms ease-out, border-color 160ms ease-out;
  text-decoration: none;
}
.btn-flame {
  background: var(--flame);
  color: #18120a;
  box-shadow: var(--sh-flame);
}
.btn-flame:hover {
  background: var(--flame-1);
  transform: translateY(-1px);
  box-shadow: 0 12px 32px rgba(251,146,60,0.35);
}
.btn-flame:active { transform: translateY(0); }
.btn:disabled,
.btn[aria-disabled="true"] {
  cursor: not-allowed;
  opacity: 0.58;
  transform: none;
  box-shadow: none;
}
.btn:disabled:hover,
.btn[aria-disabled="true"]:hover {
  transform: none;
  box-shadow: none;
}
.btn-ghost {
  background: transparent;
  color: var(--text-1);
  border-color: var(--line-2);
}
.btn-ghost:hover {
  border-color: var(--ice);
  color: var(--ice);
  background: rgba(125,211,252,0.04);
}
.btn-block { width: 100%; }
.btn-lg { height: 56px; padding: 0 24px; font-size: 16px; }
.btn-md { height: 44px; padding: 0 20px; font-size: 14px; }

.submit-row { margin-top: var(--sp-10); }
.submit-microtext {
  text-align: center;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-3);
  margin-top: var(--sp-3);
}

/* spinner */
.spinner {
  width: 16px; height: 16px;
  border: 2px solid currentColor;
  border-top-color: transparent;
  border-radius: 50%;
  animation: spin 700ms linear infinite;
}

/* ───────── Center card (expired / used) ───────── */
.center-wrap {
  flex: 1;
  display: flex; align-items: center; justify-content: center;
  padding: var(--sp-16) var(--sp-6);
}
.center-card {
  max-width: 480px;
  width: 100%;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: var(--sp-12);
  text-align: center;
  box-shadow: var(--sh-3);
}
.center-icon {
  width: 72px; height: 72px;
  border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  margin-bottom: var(--sp-5);
}
.center-icon.warning {
  background: rgba(248,113,113,0.10);
  color: var(--st-blocked);
  border: 1px solid rgba(248,113,113,0.35);
}
.center-icon.success {
  background: rgba(52,211,153,0.10);
  color: var(--st-fulfilled);
  border: 1px solid rgba(52,211,153,0.35);
}
.center-headline {
  font-size: 32px;
  font-weight: 700;
  letter-spacing: -0.03em;
  margin: 0 0 var(--sp-3);
  line-height: 1.1;
}
.center-sub {
  color: var(--text-1);
  font-size: 15px;
  margin: 0 0 var(--sp-6);
  line-height: 1.55;
}

/* ───────── Confirmation ───────── */
.confirm-wrap {
  position: relative;
  flex: 1;
  display: flex; align-items: center; justify-content: center;
  min-height: calc(100vh - var(--nav-h) - 90px);
  padding: var(--sp-12) var(--sp-6);
  overflow: hidden;
}
.confirm-particles {
  position: absolute; inset: 0;
  pointer-events: none;
  z-index: 0;
}
.confirm-card {
  position: relative; z-index: 1;
  max-width: 600px;
  text-align: center;
}
.confirm-icon {
  width: 96px; height: 96px;
  margin: 0 auto var(--sp-6);
  border-radius: 50%;
  background: rgba(125,211,252,0.14);
  border: 1px solid rgba(125,211,252,0.45);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 0 0 8px rgba(125,211,252,0.06), var(--sh-ice);
  animation: pop-in 480ms cubic-bezier(.2,.7,.2,1);
}
.confirm-headline {
  font-size: clamp(36px, 5vw, 64px);
  line-height: 1.02;
  font-weight: 700;
  letter-spacing: -0.035em;
  margin: 0 0 var(--sp-4);
}
.confirm-sub {
  color: var(--text-1);
  font-size: 17px;
  max-width: 38ch;
  margin: 0 auto var(--sp-8);
  line-height: 1.55;
}
.confirm-cta { padding: 12px 24px; }
.confirm-meta {
  margin-top: var(--sp-8);
  font-size: 11px;
  color: var(--text-3);
  letter-spacing: 0.04em;
}

/* ───────── State switcher (demo only) ───────── */
.demo-switcher {
  position: fixed;
  bottom: var(--sp-5);
  left: 50%;
  transform: translateX(-50%);
  display: inline-flex;
  gap: 4px;
  background: rgba(17, 19, 24, 0.92);
  backdrop-filter: blur(12px);
  border: 1px solid var(--line-2);
  border-radius: var(--r-pill);
  padding: 4px;
  z-index: 100;
  box-shadow: var(--sh-3);
  font-family: var(--font-mono);
  font-size: 11px;
}
.demo-switcher button {
  background: transparent;
  border: 0;
  color: var(--text-2);
  padding: 7px 12px;
  border-radius: var(--r-pill);
  transition: background-color 160ms ease-out,
              color 160ms ease-out,
              box-shadow 160ms ease-out;
  white-space: nowrap;
}
.demo-switcher button:hover { color: var(--text); }
.demo-switcher button.is-active {
  background: var(--ice);
  color: #062236;
  font-weight: 600;
}
.demo-switcher-label {
  color: var(--text-3);
  padding: 7px 10px 7px 14px;
  border-right: 1px solid var(--line);
  margin-right: 4px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
@media (max-width: 720px) {
  .demo-switcher { font-size: 10px; flex-wrap: wrap; max-width: 92vw; justify-content: center; }
  .demo-switcher-label { display: none; }
}

/* ───────── Animations ───────── */
@keyframes fade-up {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes pop-in {
  0%   { opacity: 0; transform: scale(0.7); }
  60%  { opacity: 1; transform: scale(1.05); }
  100% { opacity: 1; transform: scale(1); }
}
.fade-up { animation: fade-up 400ms ease-out both; }
.fade-up-1 { animation-delay: 60ms; }
.fade-up-2 { animation-delay: 120ms; }
.fade-up-3 { animation-delay: 180ms; }
.fade-up-4 { animation-delay: 240ms; }
.fade-up-5 { animation-delay: 300ms; }

/* ───────── Phase 6 — Lyric-style picker ───────── */
.style-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
@media (max-width: 560px) { .style-grid { grid-template-columns: repeat(2, 1fr); } }

.style-chip {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 4px;
  padding: 10px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  color: var(--text-1);
  text-align: left;
  transition: background-color 160ms ease-out,
              border-color 160ms ease-out,
              box-shadow 160ms ease-out,
              color 160ms ease-out,
              transform 160ms ease-out;
}
.style-chip:hover { border-color: var(--line-2); color: var(--text); box-shadow: 0 0 0 3px var(--ice-glow); }
.style-chip.is-active {
  border-color: var(--ice);
  color: var(--ice);
  box-shadow: 0 0 0 3px var(--ice-glow);
}
.style-chip-preview {
  aspect-ratio: 16 / 10;
  width: 100%;
  border-radius: 8px;
  margin-bottom: 4px;
  display: flex; align-items: center; justify-content: center;
  text-align: center;
  padding: 6px;
  overflow: hidden;
  position: relative;
  background: linear-gradient(135deg, hsl(var(--cover-hue, 196) 70% 32%), hsl(var(--cover-hue, 196) 65% 16%));
}
.style-chip-preview::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(0,0,0,0.35));
}
.style-chip-lyric {
  position: relative; z-index: 1;
  font-family: var(--font-sans);
  font-weight: 900;
  font-size: 14px;
  letter-spacing: -0.01em;
  color: #fff;
  text-shadow: 0 2px 8px rgba(0,0,0,0.5);
}
.style-chip.is-active .style-chip-preview { box-shadow: 0 0 0 2px var(--ice) inset; }
.style-chip-name { font-size: 13px; font-weight: 600; }
.style-chip-sub { font-size: 11px; color: var(--text-3); }
.style-chip.is-active .style-chip-sub { color: var(--ice); opacity: .8; }

/* ───────── Phase 6 — Cut-mode chips (extend .chip) ───────── */
.cut-chip {
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  padding: 10px 14px;
}
.cut-chip-name { font-size: 14px; font-weight: 500; }
.cut-chip-sub { font-size: 11px; color: var(--text-3); }
.chip.cut-chip.is-active .cut-chip-sub { color: var(--ice); opacity: .8; }

/* ───────── Phase 6 — Clips dropzone ───────── */
.dropzone {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 28px 20px;
  border: 1.5px dashed var(--line-2);
  border-radius: var(--r-lg);
  background: var(--surface);
  text-align: center;
  cursor: pointer;
  transition: border-color 160ms ease-out, background 160ms ease-out;
}
.dropzone:hover { border-color: var(--ice); background: rgba(125,211,252,0.04); }
.dropzone:focus-within {
  border-color: var(--ice);
  box-shadow: 0 0 0 3px var(--ice-glow);
}
.dropzone.is-preview {
  cursor: default;
  background: rgba(255,255,255,0.025);
}
.dropzone.is-preview:hover {
  border-color: var(--line-2);
  background: rgba(255,255,255,0.025);
}
.dropzone.is-preview .dropzone-icon {
  opacity: 0.72;
}
.dropzone.is-dragover {
  border-color: var(--ice);
  background: rgba(125,211,252,0.08);
  box-shadow: 0 0 0 3px var(--ice-glow);
}
.dropzone-input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.dropzone-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 48px; height: 48px;
  border-radius: 12px;
  background: rgba(125,211,252,0.10);
  border: 1px solid rgba(125,211,252,0.28);
  color: var(--ice);
}
.dropzone:hover .dropzone-icon, .dropzone.is-dragover .dropzone-icon {
  background: rgba(251,146,60,0.10);
  border-color: rgba(251,146,60,0.32);
  color: var(--flame);
}
.dropzone-text { font-size: 14px; color: var(--text-1); }
.dropzone-text strong { color: var(--text); font-weight: 600; }
.dropzone-hint { font-size: 11px; color: var(--text-3); }

.dropzone-list { list-style: none; padding: 0; margin: 10px 0 0; display: flex; flex-direction: column; gap: 6px; }
.dropzone-item {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 9px 12px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  font-size: 13px;
}
.dropzone-item-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dropzone-item-meta { font-size: 11px; color: var(--text-3); flex-shrink: 0; }
.dropzone-item.is-toobig { border-color: rgba(248,113,113,0.4); }
.dropzone-item.is-toobig .dropzone-item-meta { color: var(--st-blocked); }

/* ───────── TikTok brief v2 (final-fixes pkt 28) ───────── */

/* audio fragment + waveform trim */
.tt-trim { margin-top: 12px; }
.tt-trim-canvas {
  display: block;
  width: 100%;
  height: 88px;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--surface-2);
  cursor: ew-resize;
  touch-action: none;
}
.tt-trim-meta {
  display: flex; align-items: center; gap: 12px;
  margin-top: 8px;
  font-size: 12px; color: var(--text-2);
}
.tt-trim-meta #tt-trim-window { color: var(--ice); font-weight: 600; }
.tt-trim-hint { flex: 1; color: var(--text-3); }
.tt-trim-play {
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  background: var(--surface);
  color: var(--text-2);
  font: inherit; font-size: 12px;
  padding: 5px 12px;
  cursor: pointer;
}
.tt-trim-play:hover { color: var(--text); border-color: var(--ice); }
.field-helper.error { color: var(--st-blocked, #f87171); }

/* nested sub-fields (hooks textarea / hook notes inside the hooks field) */
.field-sub { margin-top: 14px; }

/* style packs (data-driven; hidden until the EDIMI manifest lands) */
.pack-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(132px, 1fr));
  gap: 10px;
  margin-top: 8px;
}
.pack-card {
  display: flex; flex-direction: column; gap: 6px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--surface);
  cursor: pointer;
}
.pack-card:hover { border-color: var(--ice); }
.pack-input { position: absolute; opacity: 0; pointer-events: none; }
.pack-card:has(.pack-input:checked) {
  border-color: var(--ice);
  box-shadow: 0 0 0 1px var(--ice);
}
.pack-preview {
  display: block;
  aspect-ratio: 9 / 16;
  max-height: 180px;
  border-radius: calc(var(--r-md) - 3px);
  overflow: hidden;
  background: var(--surface-2);
}
.pack-preview img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pack-name { font-size: 13px; font-weight: 600; color: var(--text); }
.pack-sub { font-size: 11px; color: var(--text-3); }

/* friendly-accounts shipping box — mirrors the storefront .tt-account-box design */
.ship-box {
  position: relative;
  border: 1px solid rgba(251,146,60,.34);
  border-radius: 18px;
  background:
    radial-gradient(70% 120% at 0% 0%, rgba(251,146,60,.18), transparent 60%),
    radial-gradient(42% 130% at 100% 18%, rgba(125,211,252,.12), transparent 62%),
    linear-gradient(90deg, rgba(251,146,60,.12), rgba(244,114,182,.045) 56%, rgba(10,16,32,.08));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.055), 0 22px 54px -44px rgba(251,146,60,.8);
  padding: 22px 20px 18px;
}
.ship-box-plus {
  position: absolute; right: 18px; top: 18px;
  width: 48px; height: 48px;
  border-radius: 15px;
  border: 1px solid rgba(125,211,252,.58);
  background:
    radial-gradient(circle at 28% 24%, rgba(255,255,255,.28), transparent 38%),
    linear-gradient(135deg, rgba(186,230,253,.96), rgba(125,211,252,.78) 58%, rgba(251,146,60,.30));
  box-shadow: 0 16px 38px -20px rgba(125,211,252,.95), inset 0 1px 0 rgba(255,255,255,.26);
}
.ship-box-plus::before, .ship-box-plus::after {
  content: ""; position: absolute; left: 50%; top: 50%;
  transform: translate(-50%, -50%); border-radius: 999px; background: rgba(6,17,30,.94);
}
.ship-box-plus::before { width: 21px; height: 3px; }
.ship-box-plus::after { width: 3px; height: 21px; }
.ship-box-head {
  display: flex; flex-direction: column; gap: 3px;
  margin-bottom: 14px; padding: 0 76px 14px 0;
  border-bottom: 1px solid rgba(251,146,60,.18);
}
.ship-box-kicker {
  display: inline-flex; align-items: center; width: fit-content;
  color: #1a0d04; background: var(--flame, #fb923c);
  box-shadow: 0 8px 22px rgba(251,146,60,.24);
  border-radius: 999px; padding: 5px 10px;
  font-size: 10px; letter-spacing: .14em; text-transform: uppercase;
  margin-bottom: 7px; font-weight: 800;
}
.ship-box-head strong { font-size: clamp(20px, 2.4vw, 26px); font-weight: 900; line-height: 1.08; color: var(--text); }
.ship-box-head p { margin: 8px 0 0; color: var(--text-2); font-size: 13.5px; line-height: 1.55; }
.ship-box-grid {
  display: flex; flex-wrap: wrap; gap: 6px 16px;
  font-size: 11.5px; color: rgba(251,213,166,.85);
  margin-bottom: 12px;
}
.ship-box-extra {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid rgba(251,146,60,.18);
  display: flex; flex-direction: column; gap: 12px;
}
.ship-dates { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 520px) { .ship-dates { grid-template-columns: 1fr; } }

/* ───────── Reduced motion ───────── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}
