/* SeekEvents Reseller Studio — light UI, dark live-preview pane. */
:root {
  --rb-accent: #ff0075;
  --ink: #1c2230;
  --muted: #6b7280;
  --line: #e6e8ee;
  --bg: #f5f6f9;
  --panel: #ffffff;
  --radius: 14px;
  --ui: "Montserrat", system-ui, -apple-system, "Segoe UI", sans-serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--ui);
  background: var(--bg);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
}

/* header */
#kit-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 28px;
  background: var(--panel);
  border-bottom: 1px solid var(--line);
  position: sticky; top: 0; z-index: 20;
}
.kit-brand { display: flex; align-items: center; gap: 10px; font-size: 17px; font-weight: 600; }
.kit-brand strong { font-weight: 800; }
.kit-header-right { display: flex; align-items: center; gap: 14px; }
.verified-pill {
  background: #eafaf1; color: #15803d; border: 1px solid #bbf7d0;
  padding: 5px 12px; border-radius: 999px; font-size: 13px; font-weight: 600;
}
#kit-logout { color: var(--muted); font-size: 13px; text-decoration: none; }
#kit-logout:hover { color: var(--ink); text-decoration: underline; }

.view { max-width: 1180px; margin: 0 auto; padding: 36px 28px 80px; }

/* ─── email gate ─── */
#view-gate { display: flex; min-height: 70vh; align-items: center; justify-content: center; }
.gate-card {
  background: var(--panel); border: 1px solid var(--line); border-radius: 20px;
  padding: 44px 40px; max-width: 440px; width: 100%; text-align: center;
  box-shadow: 0 12px 40px rgba(20, 25, 40, 0.06);
}
.gate-icon {
  width: 62px; height: 62px; border-radius: 16px; margin: 0 auto 18px;
  display: grid; place-items: center; color: var(--rb-accent);
  background: color-mix(in srgb, var(--rb-accent) 12%, white);
}
.gate-card h1 { font-size: 23px; font-weight: 800; margin: 0 0 6px; }
.gate-sub { color: var(--muted); margin: 0 0 24px; font-size: 15px; }
#gate-form { display: flex; flex-direction: column; gap: 12px; }
#gate-email {
  padding: 14px 16px; border: 1.5px solid var(--line); border-radius: 11px;
  font-size: 15px; font-family: var(--ui); outline: none;
}
#gate-email:focus { border-color: var(--rb-accent); }
#gate-submit {
  padding: 14px; border: none; border-radius: 11px; cursor: pointer;
  background: var(--rb-accent); color: #fff; font-weight: 700; font-size: 15px;
  font-family: var(--ui);
}
#gate-submit:hover { filter: brightness(1.05); }
#gate-submit:disabled { opacity: .6; cursor: default; }
.gate-error { color: #dc2626; font-size: 14px; margin: 14px 0 0; }
.gate-foot { color: #9aa0ac; font-size: 12.5px; margin: 22px 0 0; line-height: 1.5; }

/* ─── form layout ─── */
.form-layout { display: grid; grid-template-columns: 1fr 420px; gap: 40px; align-items: start; }
.form-title { font-size: 28px; font-weight: 800; margin: 0 0 8px; }
.form-intro { color: var(--muted); margin: 0 0 28px; line-height: 1.55; font-size: 15px; }

.field { margin-bottom: 22px; }
.field > label { display: block; font-weight: 700; font-size: 14.5px; margin-bottom: 4px; }
.field-help { color: var(--muted); font-size: 13px; margin: 0 0 10px; line-height: 1.5; }
.field-help code { background: #eef0f4; padding: 1px 6px; border-radius: 5px; font-size: 12px; }
.field input[type=text], .field input[type=email] {
  width: 100%; padding: 12px 14px; border: 1.5px solid var(--line);
  border-radius: 10px; font-size: 15px; font-family: var(--ui); outline: none;
}
.field input:focus { border-color: var(--rb-accent); }
.row { display: flex; gap: 12px; }
.row input { flex: 1; }
.accent-row { align-items: center; }
.accent-row input[type=color] {
  width: 54px; height: 46px; padding: 4px; border: 1.5px solid var(--line);
  border-radius: 10px; cursor: pointer; background: #fff; flex: none;
}
.accent-row input[type=text] { max-width: 140px; }

/* logo drop */
.logo-drop {
  border: 2px dashed var(--line); border-radius: 12px; padding: 18px;
  cursor: pointer; transition: border-color .15s, background .15s;
}
.logo-drop.drag { border-color: var(--rb-accent); background: color-mix(in srgb, var(--rb-accent) 5%, white); }
.logo-empty { text-align: center; color: var(--muted); font-size: 14px; padding: 22px 0; }
.logo-preview { display: flex; align-items: center; gap: 18px; }
#f-logo-img {
  width: 76px; height: 76px; object-fit: contain; border-radius: 12px;
  background: #1a1a1a; padding: 8px;
}
.logo-sizes { display: flex; gap: 14px; align-items: flex-end; }
.logo-sizes span { display: flex; flex-direction: column; align-items: center; gap: 3px; }
.logo-sizes img { background: #1a1a1a; border-radius: 4px; image-rendering: auto; }
#f-logo-16 { width: 16px; height: 16px; }
#f-logo-48 { width: 32px; height: 32px; }
#f-logo-128 { width: 48px; height: 48px; }
.logo-sizes small { color: #9aa0ac; font-size: 10px; }

.linkbtn { background: none; border: none; color: var(--rb-accent); cursor: pointer; font-size: 13px; font-family: var(--ui); text-decoration: none; padding: 0; }
.linkbtn:hover { text-decoration: underline; }

.form-actions { display: flex; align-items: center; gap: 18px; margin-top: 30px; }
#f-build {
  padding: 15px 30px; border: none; border-radius: 11px; cursor: pointer;
  background: var(--rb-accent); color: #fff; font-weight: 800; font-size: 16px;
  font-family: var(--ui);
}
#f-build:hover { filter: brightness(1.05); }
.form-error { color: #dc2626; font-size: 14px; margin-top: 14px; }

/* ─── preview pane (dark) ─── */
.preview-sticky { position: sticky; top: 92px; }
.preview-label, .zip-label { font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); font-weight: 700; margin: 0 0 10px; }
.pv-app {
  background: #121212; border-radius: var(--radius); overflow: hidden;
  border: 1px solid #2a2a2a; box-shadow: 0 14px 40px rgba(20,25,40,.14);
}
.pv-header {
  display: flex; align-items: center; gap: 10px; padding: 14px 16px;
  background: #0d0d0d; border-bottom: 1px solid #232323;
}
.pv-logo { width: 26px; height: 26px; object-fit: contain; border-radius: 6px; }
.pv-wordmark { font-weight: 800; font-size: 17px; color: #fff; }
.pv-wordmark .accent { color: var(--rb-accent); }
.pv-spacer { flex: 1; }
.pv-editbtn { font-size: 11px; color: #aaa; border: 1px solid #333; border-radius: 7px; padding: 4px 9px; }
.pv-onboard { padding: 24px 20px; text-align: center; border-bottom: 1px solid #1e1e1e; }
.pv-onboard-logo { width: 52px; height: 52px; object-fit: contain; border-radius: 12px; margin-bottom: 10px; }
.pv-onboard h2 { color: #fff; font-size: 18px; margin: 0 0 6px; font-weight: 800; }
.pv-onboard h2 .accent { color: var(--rb-accent); }
.pv-tagline { color: #9a9a9a; font-size: 12.5px; margin: 0 0 16px; line-height: 1.5; }
.pv-cta { display: inline-block; background: var(--rb-accent); color: #fff; font-weight: 700; font-size: 13px; padding: 9px 20px; border-radius: 999px; }
.pv-thumb {
  margin: 16px; border-radius: 10px; padding: 20px 18px;
  background: linear-gradient(135deg, #1a1a1a, #262626); text-align: left;
}
.pv-thumb-kicker { color: var(--rb-accent); font-weight: 700; font-size: 11px; margin-bottom: 8px; }
.pv-thumb-title { color: #fff; font-weight: 900; font-size: 22px; line-height: 1.0; letter-spacing: -.5px; }
.pv-thumb-cta { display: inline-block; margin-top: 14px; background: var(--rb-accent); color: #fff; font-weight: 800; font-size: 11px; padding: 7px 16px; border-radius: 999px; }
.preview-note { color: #9aa0ac; font-size: 12.5px; line-height: 1.5; margin: 14px 2px 0; }

/* ─── building ─── */
#view-building { display: flex; min-height: 70vh; align-items: center; justify-content: center; }
.building-card { text-align: center; }
.building-card h1 { font-size: 22px; font-weight: 800; margin: 22px 0 6px; }
#building-step { color: var(--muted); font-size: 14px; }
.spinner {
  width: 54px; height: 54px; border-radius: 50%; margin: 0 auto;
  border: 5px solid var(--line); border-top-color: var(--rb-accent);
  animation: spin .8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ─── success ─── */
#view-success { display: flex; justify-content: center; }
.success-card {
  background: var(--panel); border: 1px solid var(--line); border-radius: 20px;
  padding: 40px; max-width: 560px; width: 100%;
  box-shadow: 0 12px 40px rgba(20,25,40,.06);
}
.success-check {
  width: 64px; height: 64px; border-radius: 50%; margin: 0 auto 18px;
  background: #16a34a; display: grid; place-items: center;
}
.success-card h1 { text-align: center; font-size: 24px; font-weight: 800; margin: 0 0 24px; }
.success-brandcard {
  display: flex; align-items: center; justify-content: center; gap: 12px;
  background: #121212; border-radius: 14px; padding: 22px; margin-bottom: 24px;
}
.success-logo { width: 40px; height: 40px; object-fit: contain; border-radius: 9px; }
.success-wordmark { font-weight: 800; font-size: 24px; color: #fff; }
.success-wordmark .accent { color: var(--rb-accent); }
.summary { border: 1px solid var(--line); border-radius: 12px; overflow: hidden; margin-bottom: 22px; }
.summary-row { display: flex; justify-content: space-between; padding: 12px 16px; font-size: 14px; }
.summary-row:nth-child(odd) { background: #fafbfc; }
.summary-row span { color: var(--muted); }
.summary-row b { font-weight: 700; }
.zip-contents { margin-bottom: 22px; }
#zip-list { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
#zip-list li { font-size: 12.5px; color: #4b5563; font-family: ui-monospace, "SF Mono", Menlo, monospace; }
#zip-list li::before { content: "›"; color: var(--rb-accent); margin-right: 6px; }
.send-callout { background: #fafbfc; border: 1px solid var(--line); border-radius: 12px; padding: 18px 20px; margin-bottom: 24px; }
.send-callout h3 { margin: 0 0 6px; font-size: 15px; font-weight: 800; }
.send-callout p { margin: 0 0 12px; color: var(--muted); font-size: 13.5px; line-height: 1.55; }
.send-callout code { background: #eef0f4; padding: 1px 6px; border-radius: 5px; font-size: 12px; }
.copy-done { color: #16a34a; font-size: 13px; font-weight: 600; margin-left: 10px; }
.success-actions { display: flex; gap: 14px; }
.success-actions button {
  flex: 1; padding: 14px; border-radius: 11px; cursor: pointer; font-weight: 800;
  font-size: 15px; font-family: var(--ui); border: none;
  background: var(--rb-accent); color: #fff;
}
.success-actions .ghost { background: #fff; color: var(--ink); border: 1.5px solid var(--line); }
.success-actions button:hover { filter: brightness(1.03); }

@media (max-width: 900px) {
  .form-layout { grid-template-columns: 1fr; }
  .preview-col { order: -1; }
  #zip-list { grid-template-columns: 1fr; }
}
