/* Sub header */
.detail-subheader {
  padding: 14px 22px;
  background: oklch(1 0 0 / 0.03);
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.detail-subheader__left {
  display: flex;
  align-items: center;
  gap: 10px;
}
.detail-back-btn {
  width: 30px;
  height: 30px;
  border-radius: 999px;
  background: oklch(1 0 0 / 0.06);
  border: 1px solid var(--line);
  color: var(--ink);
  display: grid;
  place-items: center;
  text-decoration: none;
}
.detail-subheader__title {
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.2px;
}

/* Meta strip */
.detail-meta {
  padding: 10px 22px;
  background: oklch(0 0 0 / 0.25);
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--ink-mute);
  letter-spacing: 0.3px;
  text-transform: uppercase;
}
.detail-meta span { color: var(--ink); font-variant-numeric: tabular-nums; }

/* Stage stepper */
.stage-section { padding: 20px 22px 8px; }
.stage-section__label {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  color: var(--ink-mute);
  letter-spacing: 0.3px;
  text-transform: uppercase;
  margin-bottom: 14px;
}
.stage-card {
  border-radius: 16px;
  padding: 18px 14px;
  background: oklch(0 0 0 / 0.3);
  border: 1px solid var(--line);
}
.stage-track {
  display: flex;
  align-items: center;
  gap: 4px;
}
.stage-dot {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  flex: 0 0 auto;
  min-width: 58px;
}
.stage-dot__circle {
  border-radius: 999px;
  display: grid;
  place-items: center;
}
.stage-dot__circle--sm { width: 16px; height: 16px; }
.stage-dot__circle--lg { width: 20px; height: 20px; }
.stage-dot__circle--done   { background: oklch(0.78 0.20 145 / 1); }
.stage-dot__circle--active {
  background: linear-gradient(180deg, var(--purple-bright), var(--purple));
  box-shadow: 0 0 0 4px oklch(0.74 0.28 305 / 0.3), 0 0 16px oklch(0.74 0.28 305 / 0.6);
}
.stage-dot__circle--idle {
  background: oklch(1 0 0 / 0.08);
  border: 1.5px solid var(--line-2);
}
.stage-dot__label {
  font-size: 10px;
  line-height: 1.2;
  text-align: center;
  letter-spacing: -0.2px;
  color: var(--ink-dim);
  font-weight: 600;
}
.stage-dot__label--done   { color: var(--ink); }
.stage-dot__label--active { color: var(--ink); font-weight: 800; }
.stage-dot__date {
  font-family: var(--font-mono);
  font-size: 9px;
  color: var(--ink-dim);
  letter-spacing: 0.2px;
  font-variant-numeric: tabular-nums;
}

.stage-bar {
  flex: 1;
  height: 2px;
  margin-top: -32px;
  border-radius: 999px;
  background: oklch(1 0 0 / 0.08);
}
.stage-bar--done { background: oklch(0.78 0.20 145 / 0.6); }

/* Info section */
.info-section { padding: 14px 22px 4px; }
.info-section__header {
  background: linear-gradient(90deg, var(--purple), var(--purple-bright));
  padding: 8px 14px;
  border-radius: 12px 12px 0 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.info-section__title {
  font-size: 12px;
  font-weight: 800;
  color: #fff;
  letter-spacing: 0.2px;
}
.info-section__body {
  background: oklch(0 0 0 / 0.3);
  border: 1px solid var(--line);
  border-top: 0;
  border-radius: 0 0 12px 12px;
  padding: 4px 14px;
}

.info-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 0;
  border-bottom: 1px solid var(--line);
  font-size: 13px;
}
.info-row:last-child { border-bottom: 0; }
.info-row__key {
  width: 84px;
  flex-shrink: 0;
  color: var(--ink-mute);
  font-size: 12px;
}
.info-row__val {
  flex: 1;
  min-width: 0;
  color: var(--ink);
  letter-spacing: -0.1px;
}
.info-row__val--mono { font-family: var(--font-mono); }
.payment-amount {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  color: var(--money);
  font-size: 15px;
  font-weight: 800;
}

/* Pass congratulation box */
.pass-box-wrap { padding: 8px 22px; }
.pass-box {
  position: relative;
  border-radius: 16px;
}
.pass-box::before {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: inherit;
  background: linear-gradient(135deg, var(--purple-bright), var(--neon), var(--purple));
  z-index: -1;
  filter: blur(14px);
  opacity: 0.39;
}
.pass-box__inner {
  border-radius: 16px;
  padding: 18px;
  background: linear-gradient(135deg, oklch(0.78 0.20 145 / 0.2), oklch(0.92 0.18 110 / 0.12));
  border: 1px solid oklch(0.78 0.20 145 / 0.4);
}
.pass-box__tag {
  font-family: var(--font-mono);
  font-size: 10px;
  color: oklch(0.92 0.18 110);
  letter-spacing: 0.3px;
  text-transform: uppercase;
  font-weight: 700;
}
.pass-box__title {
  font-size: 16px;
  font-weight: 800;
  margin-top: 6px;
  color: var(--ink);
}
.pass-box__sub {
  font-size: 12px;
  color: var(--ink-mute);
  margin-top: 4px;
}

/* Action buttons */
.detail-actions {
  padding: 20px 22px 12px;
  display: grid;
  gap: 10px;
}
.btn-outline-purple {
  padding: 15px 18px;
  border-radius: 14px;
  background: transparent;
  border: 1.5px solid var(--purple-bright);
  color: var(--purple-bright);
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  font-family: var(--font-kr);
  letter-spacing: -0.1px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.btn-ghost-ink {
  padding: 15px 18px;
  border-radius: 14px;
  background: oklch(1 0 0 / 0.06);
  border: 1px solid var(--line-2);
  color: var(--ink);
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  font-family: var(--font-kr);
  letter-spacing: -0.1px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.cancel-link {
  display: block;
  text-align: center;
  padding: 8px 22px 40px;
  font-size: 11px;
  color: var(--ink-dim);
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}

/* Info section decorative dot */
.info-section__dot {
  width: 4px; height: 4px; border-radius: 999px; background: rgba(255,255,255,0.7);
}

/* SNS link */
.info-row__link {
  color: var(--purple-bright); text-decoration: underline; text-underline-offset: 3px;
  font-family: var(--font-mono);
  word-break: break-all;
}

/* Challenge video section */
.challenge-video__notice {
  font-size: 12px;
  color: var(--ink-dim);
  margin: 0 0 14px;
  line-height: 1.5;
}

.challenge-video__error {
  font-size: 12px;
  color: #e53e3e;
  margin: 0 0 12px;
  line-height: 1.5;
}

.challenge-video__form {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.challenge-video__row {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.challenge-video__label {
  font-size: 11px;
  color: var(--ink-dim);
  font-weight: 500;
}

.challenge-video__select,
.challenge-video__input {
  background: oklch(1 0 0 / 0.05);
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  font-size: 13px;
  padding: 8px 12px;
  width: 100%;
  box-sizing: border-box;
}

.challenge-video__select:focus,
.challenge-video__input:focus {
  outline: none;
  border-color: var(--purple-bright);
}

.challenge-video__submit {
  align-self: flex-start;
  margin-top: 4px;
}
