/* Creative Crate — sponsor apply + status pages (matches the site's dark strip system) */
:root {
  --bg: #000000;
  --surface: #141416;
  --field: #1a1a1d;
  --line: rgba(255, 255, 255, 0.09);
  --ink: #ffffff;
  --ink-2: #a1a1aa;
  --ink-3: #71717a;
  --gold: #f59e0b;
  --blue: #2563eb;
  --green: #34d399;
  --red: #f87171;
  --strip: 44px;
  --pad: 20px;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: "Host Grotesk", system-ui, -apple-system, sans-serif;
  font-size: 14px;
  -webkit-font-smoothing: antialiased;
  min-height: 100dvh;
  padding: 14px;
}
a { color: inherit; }
[hidden] { display: none !important; }

.flow-shell {
  max-width: 980px;
  margin: 0 auto;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 6px;
  overflow: hidden;
}
.flow-shell.narrow { max-width: 620px; }

.flow-head { display: flex; height: var(--strip); border-bottom: 1px solid var(--line); }
.flow-brand {
  flex: 1;
  background: #ffffff;
  color: #000000;
  display: flex;
  align-items: center;
  padding: 0 16px;
  font-size: 14.5px;
  font-weight: 700;
  letter-spacing: -0.02em;
  text-decoration: none;
}
.flow-back {
  display: flex;
  align-items: center;
  padding: 0 16px;
  border-left: 1px solid var(--line);
  color: var(--ink-2);
  text-decoration: none;
  font-size: 14px;
}
.flow-back:hover { color: var(--ink); background: rgba(255, 255, 255, 0.05); }

.flow-title {
  height: var(--strip);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0 var(--pad);
  border-bottom: 1px solid var(--line);
}
.flow-title h1 { font-size: 14.5px; font-weight: 700; letter-spacing: -0.01em; }
.flow-price { font-size: 12.5px; font-weight: 600; color: #000; background: var(--gold); height: 26px; display: inline-flex; align-items: center; padding: 0 10px; white-space: nowrap; }

.flow-note { min-height: 40px; display: flex; align-items: center; padding: 10px var(--pad); font-size: 12.5px; line-height: 1.5; color: var(--ink-2); border-bottom: 1px solid var(--line); }
.flow-note.warn { color: var(--gold); }
.flow-note a { color: var(--ink); }

.flow-grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; align-items: stretch; }
.flow-col { min-width: 0; }
.flow-side { border-left: 1px solid var(--line); display: flex; flex-direction: column; }
.flow-section-head {
  height: var(--strip);
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 var(--pad);
  border-bottom: 1px solid var(--line);
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
}
.flow-section-head .num { width: 20px; height: 20px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--line); font-size: 11px; font-weight: 600; flex-shrink: 0; }
.flow-section-head .opt { margin-left: auto; overflow: hidden; text-overflow: ellipsis; }
.opt { color: var(--ink-3); font-weight: 400; font-size: 11.5px; }

.flow-fields { padding: var(--pad); display: flex; flex-direction: column; gap: 16px; border-bottom: 1px solid var(--line); }
.flow-col > .flow-fields:last-child { border-bottom: none; }
.f { min-width: 0; }
.f-label { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; height: 16px; margin-bottom: 8px; font-size: 12px; font-weight: 500; color: #d4d4d8; }
.f-label .opt { white-space: nowrap; font-variant-numeric: tabular-nums; }
.f input, .f select, .f textarea {
  display: block;
  width: 100%;
  height: 42px;
  background: var(--field);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--ink);
  font: inherit;
  font-size: 14px;
  line-height: 20px;
  padding: 0 12px;
  outline: none;
  border-radius: 0;
  -webkit-appearance: none;
  appearance: none;
}
.f input::placeholder, .f textarea::placeholder { color: #52525b; }
.f textarea { height: 64px; padding: 10px 12px; resize: none; }
.f select {
  padding-right: 36px;
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath d='M3 4.5l3 3 3-3' fill='none' stroke='%23a1a1aa' stroke-width='1.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
}
.f select:invalid { color: #52525b; }
.f select option { color: #fff; background: #1a1a1d; }
.f input:focus, .f select:focus, .f textarea:focus { border-color: rgba(255, 255, 255, 0.35); }
.f-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

.drop {
  display: flex;
  align-items: center;
  gap: 12px;
  height: 72px;
  padding: 0 12px;
  border: 1px dashed rgba(255, 255, 255, 0.22);
  background: var(--field);
  color: var(--ink-2);
  font-size: 13px;
  cursor: pointer;
  min-width: 0;
}
.drop:hover, .drop.over { border-color: rgba(255, 255, 255, 0.45); color: var(--ink); }
.drop-thumb { width: 91px; height: 48px; flex-shrink: 0; background: #0f0f11; border: 1px solid var(--line); display: flex; align-items: center; justify-content: center; overflow: hidden; color: var(--ink-3); }
.drop-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.drop-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.drop-text b { font-weight: 500; color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.drop-text span { font-size: 11.5px; color: var(--ink-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.drop-action { flex-shrink: 0; font-size: 12px; font-weight: 600; color: var(--ink); border: 1px solid rgba(255, 255, 255, 0.15); height: 28px; display: inline-flex; align-items: center; padding: 0 10px; }
.hint { font-size: 11.5px; color: var(--ink-3); margin-top: 8px; line-height: 1.5; }
.hint:empty { display: none; }
.hint.err { color: var(--red); }
.hint.center { text-align: center; margin: 0; padding: 0 var(--pad) var(--pad); }

/* Preview: the exact Sponsored column from the directory */
.preview-wrap { padding: var(--pad); border-bottom: 1px solid var(--line); display: flex; flex-direction: column; align-items: center; }
.preview-stage { width: 240px; max-width: 100%; border: 1px solid var(--line); background: var(--surface); }
.preview-stage-head { height: var(--strip); display: flex; align-items: center; justify-content: space-between; padding: 0 16px; font-size: 14px; font-weight: 700; border-bottom: 1px dashed rgba(255, 255, 255, 0.22); }
.preview-stage-head span { font-size: 12px; font-weight: 400; color: var(--ink-3); }
.preview-stage-empty { height: 56px; display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 500; color: #52525b; border-top: 1px dashed rgba(255, 255, 255, 0.22); }
.preview-wrap .hint { text-align: center; margin-top: 10px; }

/* Sponsored card — identical to a filled slot in the directory column */
.spon-card { display: flex; flex-direction: column; width: 100%; text-decoration: none; color: inherit; overflow: hidden; }
.spon-img { width: 100%; aspect-ratio: 1200 / 630; background: #0f0f11; display: flex; align-items: center; justify-content: center; color: #52525b; font-size: 12px; border-bottom: 1px dashed rgba(255, 255, 255, 0.22); overflow: hidden; }
.spon-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.spon-body { display: flex; flex-direction: column; gap: 6px; padding: 12px 16px 14px; min-width: 0; }
.spon-top { display: flex; align-items: center; gap: 8px; min-width: 0; }
.spon-name { font-size: 14px; font-weight: 600; color: #fff; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.spon-badge { font-size: 10px; font-weight: 600; color: #000; background: var(--gold); padding: 1px 5px; flex-shrink: 0; }
.spon-desc { font-size: 12px; color: var(--ink-2); margin: 0; line-height: 1.45; min-height: calc(12px * 1.45 * 3); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere; }
.status-card-wrap .spon-card { width: 240px; max-width: 100%; border: 1px solid var(--line); }

.steps { list-style: none; padding: var(--pad); display: flex; flex-direction: column; gap: 12px; border-bottom: 1px solid var(--line); }
.steps li { display: grid; grid-template-columns: 20px 1fr; gap: 12px; font-size: 12.5px; color: var(--ink-2); line-height: 20px; }
.steps li .num { width: 20px; height: 20px; border: 1px solid var(--line); display: inline-flex; align-items: center; justify-content: center; font-size: 11px; color: var(--ink); }
.steps b { color: var(--ink); font-weight: 600; }

.pay-block { padding: var(--pad); display: flex; flex-direction: column; gap: 14px; margin-top: auto; }
.agree { display: grid; grid-template-columns: 16px 1fr; gap: 10px; align-items: start; font-size: 12.5px; color: var(--ink-2); line-height: 18px; cursor: pointer; }
.agree a { color: var(--ink); }
.agree input {
  -webkit-appearance: none; appearance: none;
  width: 16px; height: 16px; margin: 1px 0 0;
  border: 1px solid rgba(255, 255, 255, 0.3); background: var(--field);
  display: grid; place-content: center; cursor: pointer;
}
.agree input:checked { background: var(--blue); border-color: var(--blue); }
.agree input:checked::after { content: ""; width: 8px; height: 4px; border: solid #fff; border-width: 0 0 2px 2px; transform: translateY(-1px) rotate(-45deg); }
.agree input:focus-visible { outline: 2px solid rgba(37, 99, 235, 0.6); outline-offset: 2px; }
.form-msg { font-size: 12.5px; line-height: 1.5; color: var(--red); }
.form-msg:empty { display: none; }
.pay-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
  height: 46px;
  padding: 0 16px;
  background: var(--blue);
  color: #fff;
  border: none;
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  border-radius: 0;
  transition: background-color 0.15s ease;
}
.pay-btn:hover:not(:disabled) { background: #1d4ed8; }
.pay-btn:disabled { opacity: 0.45; cursor: not-allowed; }
.secure-note { text-align: center; font-size: 11.5px; color: var(--ink-3); line-height: 1.5; }

/* Status page */
.status-pill { font-size: 12px; font-weight: 600; padding: 3px 9px; border: 1px solid var(--line); color: var(--ink-2); white-space: nowrap; }
.status-pill.good { color: var(--green); border-color: rgba(52, 211, 153, 0.4); }
.status-pill.info, .status-pill.warn { color: var(--gold); border-color: rgba(245, 158, 11, 0.4); }
.status-pill.bad { color: var(--red); border-color: rgba(248, 113, 113, 0.4); }
.status-hero { padding: 22px 20px 10px; border-bottom: 1px solid var(--line); }
.status-hero h2 { font-size: 17px; font-weight: 600; letter-spacing: -0.01em; }
.status-hero p { font-size: 13.5px; color: var(--ink-2); margin-top: 6px; line-height: 1.6; }
.hero-actions:not(:empty) { margin-top: 14px; padding-bottom: 6px; }
.timeline { display: grid; grid-template-columns: repeat(3, 1fr); border-bottom: 1px solid var(--line); }
.tl-step { display: flex; gap: 10px; padding: 14px 16px 14px 20px; border-right: 1px solid var(--line); font-size: 12.5px; color: var(--ink-3); }
.tl-step:last-child { border-right: none; }
.tl-step b { display: block; color: var(--ink-2); font-weight: 600; margin-bottom: 2px; }
.tl-step span:not(.tl-dot) { display: block; }
.tl-dot { width: 10px; height: 10px; border-radius: 50%; border: 2px solid var(--ink-3); margin-top: 3px; flex-shrink: 0; }
.tl-step.done .tl-dot { background: var(--green); border-color: var(--green); }
.tl-step.done b { color: var(--ink); }
.tl-step.current .tl-dot { border-color: var(--gold); }
.tl-step.current b { color: var(--gold); }
.facts { display: grid; grid-template-columns: repeat(3, 1fr); border-bottom: 1px solid var(--line); margin-bottom: 14px; }
.facts div { padding: 12px 20px; border-right: 1px solid var(--line); min-width: 0; }
.facts div:last-child { border-right: none; }
.facts dt { font-size: 11.5px; color: var(--ink-3); }
.facts dd { font-size: 13.5px; margin-top: 3px; overflow-wrap: anywhere; }

@media (max-width: 860px) {
  .flow-grid { grid-template-columns: 1fr; }
  .flow-side { border-left: none; border-top: 1px solid var(--line); }
}

@media (max-width: 767px) {
  :root { --pad: 16px; }
  body { padding: 0; }
  .flow-shell { border: none; border-radius: 0; min-height: 100dvh; }
  .f-row { grid-template-columns: 1fr; gap: 16px; }
  .f input, .f select, .f textarea { font-size: 16px; }
  .flow-section-head .opt { display: none; }
  .status-hero, .facts div { padding-left: 16px; padding-right: 16px; }
  .timeline { grid-template-columns: 1fr; }
  .tl-step { border-right: none; border-bottom: 1px solid var(--line); padding-left: 16px; }
  .tl-step:last-child { border-bottom: none; }
  .facts { grid-template-columns: 1fr 1fr; }
  .facts div:nth-child(2) { border-right: none; }
  .facts div:nth-child(3) { grid-column: 1 / -1; border-top: 1px solid var(--line); }
}

/* Smooth crossfade to and from the rest of the site */
@view-transition { navigation: auto; }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: 0.2s; }
@media (prefers-reduced-motion: reduce) { @view-transition { navigation: none; } }

.flow-credit { display: flex; align-items: center; justify-content: center; height: var(--strip); border-top: 1px solid var(--line); font-size: 12px; color: var(--ink-3); text-decoration: none; }
.flow-credit b { font-weight: 600; color: var(--ink-2); margin: 0 3px; }
.flow-credit:hover, .flow-credit:hover b { color: var(--ink); }
