.topbar {
  max-width: 1200px;
  margin: 1rem auto;
  padding: 0 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.brand-head {
  display: flex;
  align-items: center;
  gap: 14px;
}

.brand-head__logo {
  height: 58px;
  width: auto;
  object-fit: contain;
  display: block;
}

.brand-head__text {
  display: grid;
  gap: 2px;
}

.brand-head__title {
  margin: 0;
  font-size: 28px;
  font-weight: 600;
  letter-spacing: .01em;
  line-height: 1;
}

.brand-head__subtitle {
  margin: 0;
  color: #6b7c9d;
  font-size: 0.92rem;
  line-height: 1.1;
}

.dashboard-brand-title {
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.dashboard-brand-title .thin {
  font-family: "GothamThin", "Inter", "Segoe UI", sans-serif;
  font-weight: 300;
}

.dashboard-brand-title .bold {
  font-family: "GothamBold", "Inter", "Segoe UI", sans-serif;
  font-weight: 700;
}

.modal-card .thin {
  font-family: "GothamThin", "Inter", "Segoe UI", sans-serif;
  font-weight: 300;
}

.modal-card .bold {
  font-family: "GothamBold", "Inter", "Segoe UI", sans-serif;
  font-weight: 700;
}

.topbar-actions {
  display: flex;
  gap: .65rem;
  align-items: center;
}

.topbar-actions form {
  margin: 0;
}

.topbar-actions .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.1;
}

.series-title {
  font-size: 28px;
  font-weight: 600;
  letter-spacing: .01em;
}

.auth-shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 1rem;
}

.auth-card {
  width: min(460px, 92vw);
  display: grid;
  gap: 1rem;
}

.auth-card .brand-head {
  margin-bottom: 0.25rem;
}

.profile-shell {
  width: min(980px, 92vw);
  margin: 2rem auto 3rem;
  display: grid;
  gap: 1rem;
  padding-bottom: 110px;
}

.profile-form {
  display: grid;
  gap: 1rem;
}

.profile-footer {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(12, 18, 29, .94);
  border-top: 1px solid var(--border-subtle);
  padding: 0;
  z-index: 20;
}

.profile-footer-inner {
  width: min(980px, 92vw);
  margin: 0 auto;
  padding: 16px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.profile-footer-cancel {
  font-size: 12px !important;
  font-weight: 500 !important;
  line-height: 1 !important;
  padding: 6px 12px !important;
  min-width: 88px !important;
  height: 34px !important;
  border-radius: 12px !important;
}

.profile-section {
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 1.1rem;
  background: rgba(255, 255, 255, 0.02);
  display: grid;
  gap: 0.8rem;
}

.profile-section h2 {
  margin: 0;
  font-size: 1.05rem;
}

.field-counter {
  display: block;
  text-align: right;
}

.profile-field-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--text-secondary);
  font-size: 0.9rem;
  gap: 0.75rem;
}

.profile-field-header > span:first-child {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.profile-field-counter {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.5);
  white-space: nowrap;
}

.profile-country-select {
  background: var(--bg-2);
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  font-weight: 500;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-image:
    linear-gradient(45deg, transparent 50%, rgba(228, 235, 255, 0.95) 50%),
    linear-gradient(135deg, rgba(228, 235, 255, 0.95) 50%, transparent 50%);
  background-position:
    calc(100% - 19px) calc(50% - 3px),
    calc(100% - 13px) calc(50% - 3px);
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
  padding-right: 42px;
}

.avatar-row {
  display: flex;
  gap: 1rem;
  align-items: center;
  flex-wrap: wrap;
}

.avatar-preview-wrap {
  width: 110px;
  height: 110px;
  border-radius: 12px;
  border: 1px solid var(--border-subtle);
  overflow: hidden;
  background: rgba(255, 255, 255, 0.03);
  display: flex;
  align-items: center;
  justify-content: center;
}

.avatar-preview {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.avatar-placeholder {
  font-size: 0.8rem;
  color: var(--text-secondary);
}

.avatar-actions {
  display: grid;
  gap: 0.45rem;
}

.profile-avatar-upload {
  display: grid;
  justify-items: end;
  overflow: visible;
}

.profile-avatar-cell {
  height: auto;
}

.profile-avatar-tile {
  width: 110px;
  height: 110px;
  min-height: 110px;
  border-radius: 12px;
}

.profile-avatar-tile.dragover {
  border-color: rgba(120,130,255,0.6);
  box-shadow: 0 0 10px rgba(120,130,255,0.25);
}

.profile-avatar-tile .card-image-tile__remove--outside {
  top: -10px;
  right: -10px;
  z-index: 5;
}

.profile-public-top {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  column-gap: 1rem;
  row-gap: 0.8rem;
  align-items: start;
}

.profile-display-field {
  grid-column: 1;
  grid-row: 1;
}

.profile-brand-field {
  grid-column: 1;
  grid-row: 2;
}

.profile-avatar-field {
  grid-column: 2;
  grid-row: 1 / span 2;
  align-items: start;
  overflow: visible;
  padding-right: 12px;
}

.profile-avatar-field > span {
  display: block;
  margin-bottom: 0.45rem;
  margin-left: 21px;
  /* text-align: right; */
}

.profile-avatar-field .profile-avatar-upload {
  width: 100%;
  margin-left: 11px;
}

.profile-avatar-field .profile-avatar-cell {
  height: auto;
  justify-content: flex-end;
  overflow: visible;
}

.profile-avatar-field .profile-avatar-tile {
  width: 110px;
  min-height: 110px;
  height: 110px;
  margin-left: auto;
  overflow: visible;
}

.profile-avatar-tile .card-image-tile__preview {
  border-radius: 12px;
}

.profile-avatar-tile .upload-progress {
  border-radius: 12px;
}

@media (max-width: 860px) {
  .profile-public-top {
    grid-template-columns: 1fr;
  }

  .profile-display-field,
  .profile-brand-field,
  .profile-avatar-field {
    grid-column: auto;
    grid-row: auto;
  }

  .profile-avatar-field .profile-avatar-tile {
    width: 110px;
    height: 110px;
    min-height: 110px;
  }
}

.dashboard-shell {
  max-width: 1180px;
  margin: 0 auto;
  padding: 1rem;
}

.dashboard-controls {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
  padding: 10px 12px;
  border: 1px solid var(--border-subtle);
  border-radius: 14px;
  background: var(--bg-1);
}

.dashboard-controls__filters {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.dashboard-controls__label {
  color: var(--text-secondary);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.dashboard-controls__divider {
  width: 1px;
  height: 28px;
  background: rgba(122, 136, 176, 0.45);
  justify-self: center;
}

.dashboard-filter-btn {
  height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid rgba(110, 121, 157, 0.55);
  background: rgba(18, 26, 44, 0.65);
  color: var(--text-secondary);
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  transition: border-color 160ms ease, color 160ms ease, background 160ms ease;
}

.dashboard-filter-btn:hover {
  border-color: rgba(120, 130, 255, 0.62);
  color: #cfd9f6;
}

.dashboard-filter-btn.is-active {
  border-color: rgba(120, 130, 255, 0.72);
  background: rgba(92, 106, 225, 0.16);
  color: #dce4ff;
}

.dashboard-controls__sort {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  justify-self: end;
}

.dashboard-controls__sort select {
  height: 34px;
  min-width: 140px;
  border-radius: 10px;
  border: 1px solid rgba(110, 121, 157, 0.55);
  background: rgba(18, 26, 44, 0.9);
  color: var(--text-primary);
  padding: 0 10px;
  font-size: 0.82rem;
  font-weight: 600;
}

.dashboard-controls__sort select:focus {
  outline: none;
  border-color: rgba(120, 130, 255, 0.72);
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1rem;
}

.project-tile {
  background: var(--bg-1);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: .85rem;
  box-shadow: var(--shadow-subtle);
  transition: border-color 180ms ease;
}

.project-tile:hover {
  border-color: rgba(120, 130, 255, 0.62);
}

.project-link {
  text-decoration: none;
  color: inherit;
  display: block;
}

.series-card {
  position: relative;
}

.series-card__link {
  text-decoration: none;
  color: inherit;
  display: block;
}

.series-card__actions {
  position: absolute;
  top: 0;
  bottom: auto;
  left: .85rem;
  right: .85rem;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  pointer-events: none;
}

.series-card__actions .trash-trigger,
.series-card__actions .trash-overlay,
.series-card__actions .trash-overlay * {
  pointer-events: auto;
}

.generation-progress {
  position: relative;
  margin-top: 10px;
  width: 100%;
  height: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  overflow: hidden;
}

.generation-progress__bar {
  position: relative;
  z-index: 1;
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, #11b981 0%, #22c55e 100%);
  transition: width 0.25s ease;
}

.generation-progress::before {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    -45deg,
    rgba(255, 255, 255, 0.24) 0 10px,
    rgba(255, 255, 255, 0.06) 10px 20px
  );
  background-size: 28px 100%;
  animation: generation-progress-stripes 1s linear infinite;
  z-index: 0;
  pointer-events: none;
}

@keyframes generation-progress-stripes {
  from {
    background-position: 0 0;
  }
  to {
    background-position: 28px 0;
  }
}

.generation-badge--failed {
  background: rgba(248, 113, 113, 0.34);
  color: #fecaca;
}

.generation-retry-btn {
  margin-top: 8px;
  border: 1px solid rgba(99, 102, 241, 0.7);
  background: linear-gradient(180deg, rgba(86, 112, 255, 0.2), rgba(66, 88, 220, 0.2));
  color: #e3e9ff;
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: background 160ms ease, border-color 160ms ease, color 160ms ease;
}

.generation-retry-btn:hover {
  border-color: rgba(122, 145, 255, 0.9);
  background: linear-gradient(180deg, rgba(99, 124, 255, 0.32), rgba(76, 98, 232, 0.32));
}

.generation-retry-wrap {
  margin-top: 8px;
}


.trash-trigger {
  position: relative;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.14);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition:
    border-color 200ms ease,
    background 200ms ease,
    color 200ms ease;
  color: #d5deee;
  z-index: 1;
}

.trash-trigger:hover {
  border-color: rgba(239, 68, 68, 0.55);
  color: #fecaca;
  background: rgba(239, 68, 68, 0.12);
}

.bf-icon {
  width: 18px;
  height: 18px;
  stroke-width: 1.6;
  stroke: currentColor;
  fill: none;
  display: inline-block;
  vertical-align: middle;
}

.trash-trigger .bf-icon {
  color: rgba(255,255,255,0.6);
  transition: color 200ms ease;
}

.trash-trigger:hover .bf-icon {
  color: #fecaca;
}

.fulfillment-trash-actions {
  position: relative;
  width: 145px;
  height: 40px;
  margin-left: auto;
  display: flex;
  justify-content: flex-end;
  align-items: center;
}

.fulfillment-batch-row {
  height: 60px;
}

.fulfillment-batch-row > td {
  vertical-align: middle;
}

.fulfillment-sortable-header {
  white-space: nowrap;
}

.fulfillment-sort-label {
  display: inline-block;
}

.fulfillment-sort-arrows {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  margin-left: 2px;
  line-height: 1;
  vertical-align: middle;
}

.fulfillment-sort-arrows .up,
.fulfillment-sort-arrows .down {
  font-size: 7px;
  color: rgba(255, 255, 255, 0.35);
}

.fulfillment-sortable-header[data-sort-state="asc"] .fulfillment-sort-arrows .up {
  color: rgba(255, 255, 255, 0.9);
}

.fulfillment-sortable-header[data-sort-state="desc"] .fulfillment-sort-arrows .down {
  color: rgba(255, 255, 255, 0.9);
}


.trash-overlay {
  position: absolute;
  right: 0;
  top: 0;
  width: 100%;
  height: 40px;
  border-radius: 999px;
  overflow: hidden;
  background: none; /*rgba(20,24,35,0.98);*/
  z-index: 10;
  visibility: hidden;
  pointer-events: none;
}

.trash-overlay.visible {
  visibility: visible;
  pointer-events: auto;
}

.trash-overlay-inner {
  position: absolute;
  top: 0;
  right: 0;
  width: 145px;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  height: 100%;
  opacity: 0;
  transition: right 500ms cubic-bezier(0.16, 1, 0.3, 1);
}

.trash-overlay-inner.nonactive {
  right: -145px;
  transition: none;
}

.trash-overlay-inner.nonactive-anim {
  right: -145px;
  opacity: 1;
  transition: right 500ms cubic-bezier(0.16, 1, 0.3, 1);
}

.trash-overlay-inner.active {
  right: 0px;
  opacity: 1;
  transition: right 500ms cubic-bezier(0.16, 1, 0.3, 1);
}

.delete-btn,
.cancel-btn {
  height: 40px;
  padding: 0 16px;
  border: none;
  outline: none;
  box-shadow: none;
  -webkit-appearance: none;
  appearance: none;
  cursor: pointer;
  font-weight: 600;
  white-space: nowrap;
}

.delete-btn:focus,
.cancel-btn:focus,
.delete-btn:focus-visible,
.cancel-btn:focus-visible {
  outline: none;
  box-shadow: none;
}

.delete-btn {
  background: #ff3b30;
  color: #fff;
  border-radius: 999px 0 0 999px;
}

.cancel-btn {
  background: #2b2f3f;
  color: #fff;
}

@keyframes snapOut {
  0% {
    opacity: 1;
    filter: blur(0px);
    transform: translateY(0);
  }
  40% {
    opacity: 0.7;
    filter: blur(3px);
  }
  100% {
    opacity: 0;
    filter: blur(12px);
    transform: translateY(-20px);
  }
}

.series-card.snap {
  animation: snapOut 600ms ease forwards;
}

.project-thumb {
  width: 100%;
  aspect-ratio: 2.5 / 3.5;
  border-radius: var(--radius-md);
  background: linear-gradient(145deg, #2a3752, #1b253a);
  border: 1px solid var(--border-subtle);
  overflow: hidden;
}

.project-thumb-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Plastic pack labels are often wide logos; avoid clipping in dashboard tiles. */
.project-thumb[data-pack-style="plastic"] .project-thumb-image {
  object-fit: contain;
  padding: 10px;
  box-sizing: border-box;
}

.project-tile--new {
  display: block;
  min-height: 280px;
}

.project-create-form {
  padding: 0;
}

.project-create-btn {
  border: 0;
  background: transparent;
  color: inherit;
  width: 100%;
  height: 100%;
  min-height: 280px;
  display: block;
  position: relative;
  cursor: pointer;
  text-align: left;
}

.plus {
  position: absolute;
  left: 50%;
  top: 46%;
  transform: translate(-50%, -50%);
  font-size: 2.3rem;
  color: #89a7ff;
}

.project-title {
  margin-top: .6rem;
  font-size: .95rem;
}

.series-card .project-title {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.project-title--new {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 12px;
  margin-top: 0;
  text-align: center;
  color: #89a7ff;
}

.series-meta {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 8px;
}

.series-meta__item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--text-secondary);
  font-size: 0.82rem;
  font-weight: 600;
  line-height: 1;
}

.series-meta__item--packs {
  position: relative;
}

.series-meta__item--packs::after {
  content: attr(data-tooltip);
  position: absolute;
  left: 50%;
  bottom: calc(100% + 8px);
  transform: translateX(-50%) translateY(4px);
  min-width: 180px;
  max-width: 280px;
  border: 1px solid rgba(112, 130, 198, 0.38);
  border-radius: 6px;
  background: rgba(10, 16, 28, 0.96);
  color: #dbe7ff;
  font-size: 0.7rem;
  font-weight: 500;
  line-height: 1.35;
  white-space: pre-line;
  padding: 8px 10px;
  opacity: 0;
  pointer-events: none;
  z-index: 35;
  transition: opacity 140ms ease, transform 140ms ease;
}

.series-meta__item--packs:hover::after,
.series-meta__item--packs:focus-visible::after {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.series-meta__icon {
  position: relative;
  width: 14px;
  height: 14px;
}

.series-meta__icon--cards::before,
.series-meta__icon--cards::after {
  content: "";
  position: absolute;
  border: 1px solid rgba(130, 156, 255, 0.72);
  border-radius: 3px;
  width: 10px;
  height: 12px;
}

.series-meta__icon--cards::before {
  left: 2px;
  top: 0;
  background: rgba(64, 89, 170, 0.18);
}

.series-meta__icon--cards::after {
  left: 0;
  top: 2px;
  background: rgba(90, 115, 201, 0.12);
}

.series-meta__icon--packs {
  border: 1px solid rgba(103, 218, 192, 0.72);
  border-radius: 3px;
  background: linear-gradient(180deg, rgba(59, 162, 153, 0.22) 0%, rgba(59, 162, 153, 0.08) 100%);
}

.series-meta__icon--packs::before {
  content: "";
  position: absolute;
  left: 2px;
  right: 2px;
  top: 4px;
  height: 1px;
  background: rgba(140, 241, 219, 0.65);
}

.series-card__link [data-generation-badge] {
  display: inline-flex;
  margin-top: 10px;
  align-items: center;
  border: 0;
  border-radius: 3px;
  padding: 6px 12px;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  background: rgba(108, 122, 166, 0.34);
  color: #dbe4ff;
}

.series-card__link .generation-badge {
  background: rgba(86, 112, 255, 0.34);
  color: #e4e9ff;
}

.series-card__link .generation-badge--failed {
  background: rgba(248, 113, 113, 0.34);
  color: #fecaca;
}

.series-card[data-series-status="draft"] .series-card__link [data-generation-badge]:not(.generation-badge):not(.generation-badge--failed) {
  background: rgba(117, 130, 165, 0.34);
  color: #d2dbef;
}

.series-card[data-series-status="scheduled"] .series-card__link [data-generation-badge]:not(.generation-badge):not(.generation-badge--failed) {
  background: rgba(130, 106, 235, 0.34);
  color: #e8ddff;
}

.series-card[data-series-status="published"] .series-card__link [data-generation-badge]:not(.generation-badge):not(.generation-badge--failed) {
  background: rgba(86, 112, 255, 0.34);
  color: #e4e9ff;
}

.series-card[data-series-status="published"] .series-card__link [data-generation-badge].badge--hidden:not(.generation-badge):not(.generation-badge--failed) {
  background: rgba(117, 130, 165, 0.34);
  color: #d2dbef;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 88px;
  border-radius: 3px;
  padding: 4px 10px;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  border: 0;
}

.status-pill--pending {
  background: rgba(250, 204, 21, 0.34);
  color: #fef08a;
}

.status-pill--paid {
  background: rgba(59, 130, 246, 0.34);
  color: #bfdbfe;
}

.status-pill--executed {
  background: rgba(16, 185, 129, 0.34);
  color: #a7f3d0;
}

.status-pill--failed {
  background: rgba(239, 68, 68, 0.34);
  color: #fecaca;
}

.status-pill--success {
  background: rgba(16, 185, 129, 0.34);
  color: #a7f3d0;
}

.status-pill--muted {
  background: rgba(148, 163, 184, 0.28);
  color: #cbd5e1;
}
.project-thumb-placeholder {
  color: var(--text-secondary);
  font-size: .82rem;
  display: inline-flex;
  width: 100%;
  height: 100%;
  align-items: center;
  justify-content: center;
}

.builder-shell {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px 90px;
}

.wizard-track-wrap {
  margin-top: .85rem;
  overflow: hidden;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  background: var(--bg-1);
  box-shadow: var(--shadow-subtle);
}

.wizard-track {
  display: flex;
  width: 500%;
  transform: translateX(0);
  transition: transform 350ms var(--ease-smooth);
}

.wizard-step {
  width: 20%;
  opacity: .7;
  transform: translateX(24px);
  transition: opacity 350ms var(--ease-smooth), transform 350ms var(--ease-smooth);
}

.wizard-step.is-visible {
  opacity: 1;
  transform: translateX(0);
}

.wizard-step h2 {
  margin-bottom: 1rem;
}

.wizard-step__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 1rem;
}

.wizard-step__header h2 {
  margin-bottom: 0;
}

.wizard-step__actions {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.fulfillment-track {
  width: 400%;
}

.fulfillment-track .wizard-step {
  width: 25%;
}

.review-section-top {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 32px;
  align-items: stretch;
  margin-bottom: 32px;
}

.review-section-bottom {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 32px;
  align-items: start;
}

.bottom-left {
  display: flex;
  flex-direction: column;
  gap: 32px;
  height: 100%;
}

.launch-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.review-panel h3 {
  margin: 0 0 8px;
}

.review-panel p {
  margin: 0;
}

.review-panel--preview {
  overflow: hidden;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.review-panel--overview {
  height: 100%;
}

.review-series-title {
  font-size: 1.45rem;
  font-weight: 700;
  line-height: 1.2;
  color: var(--text-primary);
  margin-bottom: 14px;
}

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

.review-stat-block {
  text-align: center;
  padding: 10px 8px;
  background: rgba(255, 255, 255, 0.02);
  border-radius: 10px;
}

.review-stat-block strong {
  display: block;
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.15;
  color: var(--text-primary);
}

.review-stat-block span {
  display: block;
  margin-top: 2px;
  font-size: 0.8rem;
  color: var(--text-secondary);
  text-transform: lowercase;
}

.review-tags-wrap {
  margin-top: 14px;
}

.review-tags-label {
  display: block;
  font-size: 0.84rem;
  color: var(--text-secondary);
  margin-bottom: 8px;
}

.review-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.review-tag-overflow {
  opacity: 0.45;
}

.pack-grid {
  display: flex;
  gap: 24px;
  align-items: stretch;
  flex-wrap: wrap;
}

.pack-column {
  flex: 0 0 calc((100% - 48px) / 3);
  max-width: calc((100% - 48px) / 3);
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.review-allocation-loading,
.review-allocation-error {
  grid-column: 1 / -1;
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 0.9rem;
  color: var(--text-secondary);
  background: rgba(255, 255, 255, 0.02);
  width: 100%;
}

.review-allocation-error {
  color: #fca5a5;
  border-color: rgba(239, 68, 68, 0.35);
  background: rgba(239, 68, 68, 0.08);
}

.review-pack-card {
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  padding: 12px;
  background: rgba(255,255,255,0.02);
  flex: 1;
}

.review-pack-card h4 {
  margin: 0 0 8px;
  font-size: 0.96rem;
}

.review-pack-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
}

.review-pack-head h4 {
  margin: 0;
}

.review-pack-age-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 34px;
  height: 20px;
  border-radius: 999px;
  padding: 0 8px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: #ffb3ba;
  border: 1px solid rgba(248, 113, 113, 0.45);
  background: rgba(248, 113, 113, 0.14);
}

.review-pack-lines {
  display: grid;
  gap: 6px;
  margin-bottom: 7px;
}

.review-pack-lines > div {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  font-size: 0.88rem;
}

.review-pack-lines span {
  color: var(--text-secondary);
}

.review-pack-lines strong {
  color: var(--text-primary);
  text-align: right;
}

.review-pack-types {
  margin-top: 7px;
  display: grid;
  gap: 4px;
}

.review-pack-types span {
  color: var(--text-secondary);
  font-size: 0.86rem;
}

.review-pack-type-bubbles {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.review-pack-type-bubble {
  font-size: 0.76rem;
  padding: 3px 8px;
}

.pack-preview-btn {
  margin-top: 12px;
  width: 100%;
  background: transparent;
  border: 1px solid rgba(120, 140, 255, 0.4);
  color: #aab4ff;
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 14px;
  cursor: pointer;
  transition: border-color 180ms ease, background 180ms ease, color 180ms ease;
}

.pack-preview-btn:hover {
  border-color: rgba(120, 140, 255, 0.7);
  background: rgba(120, 140, 255, 0.08);
}

.pack-preview-btn.active {
  background: linear-gradient(135deg, #6d7cff, #8b5cf6);
  border-color: transparent;
  color: white;
}

.pack-preview-btn.active:hover {
  background: linear-gradient(135deg, #7c8cff, #9b6cff);
}

.series-review-shell .pack-preview-btn.active {
  background: transparent;
  border-color: rgba(120, 140, 255, 0.4);
  color: #aab4ff;
}

.series-review-shell .pack-preview-btn.active:hover {
  background: rgba(120, 140, 255, 0.08);
  border-color: rgba(120, 140, 255, 0.7);
}

.series-review-shell .pack-preview-btn[data-selected="1"] {
  background: linear-gradient(135deg, #6d7cff, #8b5cf6);
  border-color: transparent;
  color: white;
}

.series-review-shell .pack-preview-btn[data-selected="1"]:hover {
  background: linear-gradient(135deg, #7c8cff, #9b6cff);
}

.review-pack-supply {
  margin-top: 6px;
  color: var(--text-secondary);
  font-size: 0.86rem;
}

.review-pack-supply strong {
  color: var(--text-primary);
}

.review-pack-sellout {
  margin: 15px 0 !important;
  display: grid;
  gap: 2px;
}

.review-pack-sellout-label {
  /* color: var(--text-secondary); */
  /* font-size: 0.82rem; */
  color: #34d399;
  font-size: 0.9rem;
  font-weight: 600;
}

.review-pack-sellout-value {
  color: #34d399;
  font-size: 0.9rem;
  font-weight: 600;
}

.pack-estimate,
.pack-earnings {
  transition: opacity 0.25s ease;
}

.pack-estimate.loading,
.pack-earnings.loading {
  opacity: 0.6;
  font-style: italic;
}

.pack-earnings.loading {
  color: var(--text-secondary);
  font-weight: 500;
}

.review-pack-preview-empty,
.review-pack-preview-loading {
  min-height: 320px;
  border: 1px dashed var(--border-subtle);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: var(--text-secondary);
  font-size: 0.9rem;
  text-align: center;
  padding: 12px;
}

.review-pack-preview-container {
  flex: 1 1 auto;
}

.review-pack-preview-spinner {
  width: 18px;
  height: 18px;
  border: 2px solid rgba(255, 255, 255, 0.18);
  border-top-color: rgba(255, 255, 255, 0.75);
  border-radius: 999px;
  animation: reviewPackPreviewSpin 700ms linear infinite;
}

.review-pack-open-controls {
  margin-top: 12px;
  display: flex;
  gap: 10px;
  justify-content: center;
}

.review-pack-hint {
  margin-top: 10px;
  text-align: center;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.62);
}

.pack-preview-wrapper {
  position: relative;
}

.pack-preview-wrapper .pack {
  position: relative;
  z-index: 3;
}

.card-stack {
  position: absolute;
  margin-top: 0;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 265px;
  height: calc(265px * 3.5 / 2.5);
  pointer-events: none;
  opacity: 0;
  transition: opacity 300ms ease;
  z-index: 1;
}

.card-stack.hidden {
  opacity: 0;
  pointer-events: none;
}

.card-stack .card,
.card-stack__card {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 265px;
  aspect-ratio: 2.5 / 3.5;
  border: none;
  border-radius: 2px;
  padding: 0;
  background: transparent;
  overflow: hidden;
  cursor: default;
  pointer-events: none;
  z-index: 3;
}

.card-stack__card.is-round {
  border-radius: 18px;
}

.card-stack__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.card-stack__card.card--foil::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    115deg,
    rgba(255, 255, 255, 0.15) 0%,
    rgba(255, 255, 255, 0.45) 25%,
    rgba(255, 255, 255, 0.1) 50%,
    rgba(255, 255, 255, 0.4) 75%,
    rgba(255, 255, 255, 0.15) 100%
  );
  mix-blend-mode: overlay;
  pointer-events: none;
  animation: foilShimmer 3s linear infinite;
}

.reset-pack-stack {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  z-index: 8;
  opacity: 0;
  transition: opacity 220ms ease;
  pointer-events: none;
}

.reset-pack-stack:not(.hidden) {
  pointer-events: auto;
}

.reset-pack-stack.hidden {
  opacity: 0;
  pointer-events: none;
}

@keyframes reviewPackPreviewSpin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

@keyframes foilShimmer {
  from {
    transform: translateX(-100%);
  }
  to {
    transform: translateX(100%);
  }
}

@media (max-width: 1100px) {
  .pack-column {
    flex: 1 1 calc(50% - 12px);
    max-width: calc(50% - 12px);
  }
}

@media (max-width: 700px) {
  .pack-column {
    flex-basis: 100%;
    max-width: 100%;
  }

  .review-section-top,
  .review-section-bottom {
    gap: 16px;
    grid-template-columns: 1fr;
    margin-bottom: 16px;
  }
}

.review-checklist {
  display: grid;
  gap: 8px;
}

.review-check-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.92rem;
}

.review-check-item.is-valid {
  color: #34d399;
}

.review-check-item.is-invalid {
  color: #f87171;
}

.review-check-icon {
  width: 16px;
  text-align: center;
}

.review-launch-message {
  color: var(--text-secondary);
  margin-bottom: 14px;
  max-width: 680px;
}

.review-launch-message strong {
  color: var(--text-primary);
  font-weight: 700;
}

.review-launch-heading {
  font-size: 1.5em;
  margin-bottom: 12px;
}

.review-launch-note {
  color: var(--text-secondary);
  font-size: 0.85rem;
  text-align: justify;
  margin-top: 12px;
  max-width: 480px;
  line-height: 1.45;
}

.launch-btn,
.launch-series-cta {
  min-width: 260px;
  margin: 30px;
  padding: 12px 28px;
  font-size: 0.98rem;
  background: linear-gradient(135deg, #6d7cff, #8b5cf6);
  transition: all 0.18s ease;
  position: relative;
  overflow: hidden;
}

.launch-series-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.launch-btn:hover,
.launch-series-cta:hover {
  transform: translateY(-3px);
  box-shadow:
    0 6px 16px rgba(109, 124, 255, 0.35),
    0 0 0 1px rgba(160, 180, 255, 0.4);
  background: linear-gradient(135deg, #7c8cff, #9b6cff);
  color: #fff;
}

.launch-series-cta.is-preparing {
  opacity: 0.78;
}

.launch-series-cta.is-preparing:hover,
.launch-series-cta.is-preparing:active {
  transform: none;
  box-shadow: none;
  background: linear-gradient(135deg, #6d7cff, #8b5cf6);
  color: #fff;
}

.launch-btn:active,
.launch-series-cta:active {
  transform: translateY(-1px);
}

.launch-btn::after,
.launch-series-cta::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    120deg,
    rgba(255,255,255,0.08),
    rgba(255,255,255,0.02)
  );
  opacity: 0;
  transition: opacity 0.2s ease;
  pointer-events: none;
}

.launch-btn:hover::after,
.launch-series-cta:hover::after {
  opacity: 1;
}

.launch-series-cta.is-preparing::after,
.launch-series-cta.is-preparing:hover::after {
  opacity: 0;
}

.launch-series-cta__spinner {
  width: 14px;
  height: 14px;
  border-radius: 999px;
  border: 2px solid rgba(255, 255, 255, 0.32);
  border-top-color: rgba(255, 255, 255, 0.95);
  animation: launch-prepare-spin 900ms linear infinite;
}

@keyframes launch-prepare-spin {
  to {
    transform: rotate(360deg);
  }
}

.review-muted {
  color: var(--text-secondary);
  font-size: 0.86rem;
}

.form-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.series-style-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 24px;
}

.series-style-row-2 {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 24px;
  margin-top: 20px;
  align-items: start;
}

.series-row-3 {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 32px;
  margin-top: 40px;
  align-items: start;
}

.series-discovery {
  align-self: start;
}

.series-back-upload {
  align-self: start;
}

.tags-wrapper {
  display: grid;
  gap: 8px;
  align-self: start;
}

.series-description-wrapper {
  margin-top: 14px;
  display: grid;
  gap: 8px;
}

.series-description-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-weight: 500;
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.series-description-counter {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.5);
}

.series-description-counter.series-description-counter--invalid {
  color: rgba(248, 113, 113, 0.95);
}

.series-description-input {
  width: 100%;
  min-height: 130px;
  resize: vertical;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  background: var(--bg-2);
  color: #fff;
  padding: 12px;
  font: inherit;
  line-height: 1.5;
}

.series-description-input:focus {
  outline: none;
  border-color: rgba(99, 102, 241, 0.55);
}

.series-description-warning {
  font-size: 12px;
  line-height: 1.35;
  color: rgba(255, 255, 255, 0.62);
}

.series-description-warning.is-spam-warning {
  color: rgba(251, 191, 36, 0.95);
}

.tags-wrapper label {
  color: var(--text-secondary);
  font-size: .9rem;
}

.section-label {
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.55);
  margin-bottom: 12px;
}

.tags-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  /* margin-bottom: 8px; */
  font-weight: 500;
  color: var(--text-secondary);
  font-size: .9rem;
}

.tags-counter {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.5);
}

.tags-counter.over-limit {
  color: #ef4444;
}

.tag-near-limit .tags-counter {
  color: rgba(255,255,255,0.75);
}

.tag-limit-reached .tags-counter {
  color: rgba(239, 68, 68, 0.7);
}

.tags-input {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 8px;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 12px;
  min-height: 44px;
  cursor: text;
  background: var(--bg-2);
}

.tags-input input {
  border: none;
  outline: none;
  background: transparent;
  color: #fff;
  flex: 1;
  min-width: 120px;
  height: 26px;
  padding: 0;
  box-shadow: none;
}

.tags-input input:focus {
  border: none;
  outline: none;
  box-shadow: none;
}

.tag-bubble {
  display: flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(99,102,241,0.15);
  border: 1px solid rgba(99,102,241,0.4);
  font-size: 0.8rem;
}

.tag-bubble.tag--inactive {
  border: 1px solid rgba(239, 68, 68, 0.45);
  background: rgba(239, 68, 68, 0.08);
  color: #fecaca;
}

.tag-ghost {
  opacity: 0.65;
}

.tag-remove {
  margin-left: 6px;
  cursor: pointer;
  opacity: 0.7;
  border: none;
  background: transparent;
  color: inherit;
  padding: 0;
  line-height: 1;
}

.tag-remove:hover {
  opacity: 1;
}

.back-upload-row {
  display: grid;
  justify-items: end;
}

.series-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 24px;
}

.series-name {
  grid-column: 1 / span 2;
}

.series-number {
  grid-column: 3 / span 1;
}

.release-toggle {
  grid-column: 4 / span 3;
}

.series-spacer {
  grid-column: 1 / span 3;
}

.release-datetime {
  grid-column: 3 / span 4;
}

.series-section + .series-section {
  /* margin-top: 40px; */
}

.section-title {
  font-size: 13px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--text-secondary);
  margin-bottom: 16px;
}

.uploader { margin-top: .75rem; }

.wizard-footer {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(12, 18, 29, .94);
  border-top: 1px solid var(--border-subtle);
  padding: 0;
  z-index: 10;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 16px 24px;
  display: flex;
  justify-content: space-between;
}

.earnings-box {
  margin-top: 1rem;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: .85rem;
  background: rgba(20, 29, 44, .8);
}

@media (max-width: 980px) {
  .segmented#packStyleSegmented {
    width: 100%;
  }
}

@media (max-width: 900px) {
  .form-grid-3 { grid-template-columns: 1fr; }
  .tags-wrapper { grid-column: auto; }
  .series-grid { grid-template-columns: 1fr; }
  .series-name,
  .series-number,
  .release-toggle,
  .series-spacer,
  .release-datetime {
    grid-column: auto;
  }

  .series-spacer {
    display: none;
  }

}

/* ── Landing page ─────────────────────────────────── */

.landing-shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 2rem 1.5rem;
  background: #111621;
}

.landing-hero {
  max-width: 1100px;
  width: 100%;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 3rem;
  align-items: center;
}

.landing-hero__text {
  display: grid;
  gap: 1.5rem;
}

.landing-hero__text .brand-head {
  margin-bottom: 0;
}

.landing-hero__visual {
  display: flex;
  align-items: center;
  justify-content: center;
}

.landing-description {
  color: var(--text-secondary);
  font-size: 1.05rem;
  line-height: 1.6;
}

.landing-features {
  display: grid;
  gap: 1rem;
}

.landing-feature {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.landing-feature__icon {
  font-size: 1.5rem;
  line-height: 1;
  flex-shrink: 0;
  margin-top: 2px;
}

.landing-feature div {
  display: grid;
  gap: 2px;
}

.landing-feature strong {
  font-size: 0.95rem;
  color: var(--text-primary);
}

.landing-feature span {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.4;
}

.landing-cta {
  justify-self: start;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 32px;
  font-size: 1rem;
  text-decoration: none;
  border-radius: var(--radius-pill);
}

.landing-carousel {
  position: relative;
  width: 100%;
}

.carousel-viewport {
  width: 309px;
  height: 342px;
  overflow: hidden;
  border-radius: var(--radius-md);
  position: relative;
}

.carousel-strip {
  display: block;
  width: 1632px;
  height: 371px;
  max-width: none;
  margin-top: -14px;
  transition: transform 400ms var(--ease-smooth);
  user-select: none;
  pointer-events: none;
}

.carousel-arrow {
  position: absolute;
  top: calc(50% - 18px);
  z-index: 2;
  width: 36px;
  height: 36px;
  border-radius: 999px;
  border: 1px solid var(--border-subtle);
  background: var(--bg-1);
  color: var(--text-primary);
  font-size: 1.3rem;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 180ms ease, border-color 180ms ease;
}

.carousel-arrow:hover {
  border-color: rgba(99, 102, 241, 0.55);
  background: rgba(99, 102, 241, 0.12);
}

.carousel-arrow--prev { left: -18px; }
.carousel-arrow--next { right: -18px; }

.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 12px;
}

.carousel-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: transparent;
  cursor: pointer;
  padding: 0;
  transition: background 200ms ease, border-color 200ms ease;
}

.carousel-dot:hover {
  border-color: rgba(99, 102, 241, 0.6);
}

.carousel-dot.is-active {
  background: var(--accent-gradient);
  border-color: transparent;
}

@media (max-width: 800px) {
  .landing-hero {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .carousel-arrow--prev { left: -12px; }
  .carousel-arrow--next { right: -12px; }

  .landing-cta {
    justify-self: stretch;
    text-align: center;
  }
}
