/* SeekReview Reseller Studio ─────────────────────────────────────── */

* { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:          #fafaf9;
  --surface:     #ffffff;
  --border:      rgba(0,0,0,0.08);
  --border-strong: rgba(0,0,0,0.18);
  --text:        #1a1a1a;
  --text-muted:  #6b6b6b;
  --text-light:  #999;
  --accent:      #ffc400;          /* SeekReview gold for the kit's own UI */
  --accent-deep: #d99c00;
  --accent-dim:  rgba(255,196,0,0.12);
  --success:     #10b981;
  --success-dim: rgba(16,185,129,0.10);
  --danger:      #dc2626;
  --radius:      8px;
  --radius-sm:   6px;
  --font:        'Montserrat', -apple-system, BlinkMacSystemFont, sans-serif;
}

html, body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 14px;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}

/* ── Header ───────────────────────────────────────────────────────── */
#kit-header {
  background: #1a1a1a;
  border-bottom: 1px solid var(--border);
  padding: 14px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.kit-brand {
  display: flex;
  align-items: center;
  gap: 11px;
}
.kit-wordmark {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}
.kit-wordmark-name {
  font-weight: 800;
  font-size: 15px;
  letter-spacing: 0.04em;
  color: #ffffff;
}
.kit-wordmark-accent {
  color: var(--accent);
}
.kit-wordmark-tagline {
  font-weight: 600;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-top: 2px;
}
.kit-header-right { display: flex; align-items: center; gap: 14px; }
.verified-pill {
  font-size: 11px;
  padding: 4px 10px;
  background: var(--success-dim);
  color: var(--success);
  border-radius: 999px;
  font-weight: 600;
}
#kit-logout {
  font-size: 12px;
  color: var(--text-muted);
  text-decoration: none;
}
#kit-logout:hover { color: var(--text); text-decoration: underline; }

.view { padding: 28px; }

/* ── Email gate ────────────────────────────────────────────────────── */
.gate-card {
  max-width: 440px;
  margin: 60px auto;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px 40px;
  text-align: center;
}
.gate-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 18px;
  background: var(--accent-dim);
  color: var(--accent-deep);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.gate-card h1 {
  font-size: 20px;
  font-weight: 800;
  margin-bottom: 8px;
}
.gate-sub {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.55;
  margin-bottom: 22px;
}
#gate-form {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
#gate-email {
  padding: 11px 14px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: var(--font);
  font-size: 13px;
  outline: none;
  transition: border-color 0.15s;
}
#gate-email:focus { border-color: var(--accent); }
#gate-submit {
  padding: 11px 14px;
  background: var(--text);
  color: var(--surface);
  font-family: var(--font);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: opacity 0.15s;
}
#gate-submit:hover { opacity: 0.85; }
#gate-submit:disabled { opacity: 0.5; cursor: wait; }
.gate-error {
  padding: 9px 12px;
  background: rgba(220,38,38,0.08);
  color: var(--danger);
  font-size: 12px;
  border-radius: var(--radius-sm);
  text-align: left;
  margin-top: 4px;
}
.gate-help {
  margin-top: 22px;
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.55;
}
.gate-help a { color: var(--accent-deep); text-decoration: none; font-weight: 600; }
.gate-help a:hover { text-decoration: underline; }

/* ── Form view ────────────────────────────────────────────────────── */
.form-grid {
  max-width: 1120px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: 28px;
}
.form-column {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 32px;
}
.form-column h1 {
  font-size: 22px;
  font-weight: 800;
  margin-bottom: 4px;
}
.form-intro {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 22px;
}

.field { margin-bottom: 18px; }
.field label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text);
  margin-bottom: 6px;
}
.field .req { color: var(--accent-deep); }
.field input[type="text"],
.field input[type="email"],
.field textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface);
  font-family: var(--font);
  font-size: 13px;
  color: var(--text);
  outline: none;
  transition: border-color 0.15s;
}
.field input:focus,
.field textarea:focus { border-color: var(--accent); }
.field textarea { resize: vertical; min-height: 56px; }
.field .mono-input,
.mono-input { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 12px; }
.field-hint {
  font-size: 11.5px;
  color: var(--text-muted);
  margin-top: 5px;
  line-height: 1.5;
}
.field-hint-tiny {
  font-size: 11px;
  color: var(--text-light);
  margin-top: 3px;
}
.field-hint-row {
  display: flex;
  justify-content: space-between;
  margin-top: 5px;
}
.field-counter { font-size: 11px; color: var(--text-light); }
.field-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 12px; }

.wordmark-preview {
  margin-top: 8px;
  padding: 8px 12px;
  background: var(--bg);
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.04em;
}
#f-wordmark-preview-text { letter-spacing: 0.04em; }

/* ── Logo upload ──────────────────────────────────────────────────── */
.logo-area {
  border: 1.5px dashed var(--border-strong);
  border-radius: var(--radius-sm);
  padding: 16px;
  cursor: pointer;
  text-align: center;
  transition: border-color 0.15s, background 0.15s;
}
.logo-area:hover { border-color: var(--accent); background: var(--accent-dim); }
.logo-area.drag-over { border-color: var(--accent); background: var(--accent-dim); }
#f-logo-empty { color: var(--text-muted); }
#f-logo-empty svg { color: var(--text-light); margin-bottom: 6px; }
.logo-empty-title { font-size: 13px; font-weight: 600; color: var(--text); margin-bottom: 3px; }
.logo-empty-sub { font-size: 11px; color: var(--text-light); }

#f-logo-preview-row {
  display: flex;
  align-items: center;
  gap: 14px;
  text-align: left;
}
#f-logo-preview {
  width: 56px;
  height: 56px;
  background: var(--bg);
  border-radius: var(--radius-sm);
  object-fit: contain;
  flex-shrink: 0;
}
.logo-meta { flex: 1; }
.logo-name { font-size: 13px; font-weight: 600; }
.logo-dims { font-size: 11px; color: var(--text-muted); margin-top: 3px; }
.logo-replace {
  padding: 6px 12px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: var(--font);
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
}
.logo-replace:hover { border-color: var(--accent); color: var(--accent-deep); }

#f-logo-sizes {
  display: flex;
  gap: 16px;
  margin-top: 10px;
  padding-top: 12px;
  border-top: 1px dashed var(--border);
}
.size-preview { display: flex; align-items: center; gap: 8px; }
.size-frame {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.size-frame img { max-width: 100%; max-height: 100%; object-fit: contain; }
.size-16 { width: 24px; height: 24px; }
.size-16 img { width: 16px; height: 16px; }
.size-48 { width: 56px; height: 56px; }
.size-48 img { width: 48px; height: 48px; }
.size-128 { width: 80px; height: 80px; }
.size-128 img { width: 64px; height: 64px; }
.size-label { font-size: 10px; color: var(--text-muted); line-height: 1.4; }
.size-label span { color: var(--text-light); }

/* ── Accent ────────────────────────────────────────────────────────── */
.accent-row { display: flex; align-items: center; gap: 10px; }
.accent-row input[type="color"] {
  width: 40px;
  height: 40px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  cursor: pointer;
  padding: 2px;
  background: var(--surface);
}
.hex-input { width: 110px !important; }

/* ── Footer ───────────────────────────────────────────────────────── */
.form-footer {
  margin-top: 28px;
  padding-top: 18px;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
#f-reset {
  font-size: 12px;
  color: var(--text-muted);
  text-decoration: none;
}
#f-reset:hover { color: var(--text); text-decoration: underline; }
.build-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  background: var(--text);
  color: var(--surface);
  font-family: var(--font);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: opacity 0.15s;
}
.build-btn:hover { opacity: 0.85; }
.build-btn:disabled { opacity: 0.5; cursor: not-allowed; }
.form-footer-help {
  margin-top: 10px;
  font-size: 11px;
  color: var(--text-light);
  text-align: right;
}

/* ── Preview column ───────────────────────────────────────────────── */
.preview-column { display: flex; flex-direction: column; gap: 14px; }
.preview-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-light);
  padding: 0 4px;
}
.preview-screen-label {
  font-size: 9px;
  color: rgba(255,255,255,0.4);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 8px;
}

/* Popup preview */
.preview-popup {
  background: #1a1a1c;
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  color: #f5f5f6;
}
.preview-popup-inner { padding: 4px 0; }
.pp-header {
  display: flex;
  align-items: center;
  gap: 7px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  margin-bottom: 10px;
}
.pp-mark { width: 14px; height: 14px; display: block; }
.pp-wordmark { font-weight: 700; font-size: 12px; letter-spacing: 0.6px; color: #f5f5f6; }
.pp-section-label {
  font-size: 9.5px;
  color: rgba(255,255,255,0.55);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 7px;
}
.pp-profile-row {
  display: flex;
  align-items: center;
  gap: 9px;
  padding-bottom: 11px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  margin-bottom: 11px;
}
.pp-avatar {
  width: 26px;
  height: 26px;
  background: rgba(255,196,0,0.15);
  color: #ffc400;
  border-radius: 5px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 800;
}
.pp-name { font-weight: 700; font-size: 12px; }
.pp-btn-primary,
.pp-btn-secondary {
  display: block;
  width: 100%;
  padding: 8px;
  margin-bottom: 5px;
  border-radius: 5px;
  font-family: var(--font);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  text-align: center;
  border: none;
  cursor: default;
}
.pp-btn-primary { background: #ffc400; color: #1a1a1a; }
.pp-btn-secondary { background: #232327; color: #f5f5f6; border: 1px solid rgba(255,255,255,0.08); }

/* Editor preview */
.preview-editor {
  background: #111111;
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  color: #f5f5f6;
}
.preview-editor-inner {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 0;
}
.pe-mark { width: 18px; height: 18px; display: block; }
.pe-wordmark { font-weight: 700; font-size: 14px; letter-spacing: -0.5px; color: #f5f5f6; }
.pe-chip {
  margin-left: 4px;
  padding: 2px 9px;
  background: rgba(255,196,0,0.10);
  border: 1px solid rgba(255,196,0,0.30);
  border-radius: 999px;
  color: #ffc400;
  font-size: 9.5px;
  font-weight: 700;
}

/* Settings preview */
.preview-settings {
  background: #0d0d0e;
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  color: #f5f5f6;
}
.preview-settings-inner { padding: 4px 0; }
.ps-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  margin-bottom: 10px;
}
.ps-mark { width: 22px; height: 22px; display: block; }
.ps-wordmark { font-weight: 700; font-size: 16px; letter-spacing: 0.04em; color: #f5f5f6; }
.ps-profile-bar {
  background: rgba(255,196,0,0.06);
  border: 1px solid rgba(255,196,0,0.18);
  border-radius: 5px;
  padding: 8px 11px;
  margin-bottom: 9px;
}
.ps-profile-label {
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #ffc400;
  margin-bottom: 5px;
}
.ps-profile-row { font-size: 11px; }
.ps-btn-primary {
  display: block;
  width: 100%;
  padding: 8px;
  background: #ffc400;
  color: #1a1a1a;
  border: none;
  border-radius: 5px;
  font-family: var(--font);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  cursor: default;
}

/* ── Building view ────────────────────────────────────────────────── */
.building-card {
  max-width: 380px;
  margin: 80px auto;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px 40px;
  text-align: center;
}
.building-spinner {
  width: 36px;
  height: 36px;
  border: 3px solid var(--border);
  border-top-color: var(--accent);
  border-radius: 50%;
  margin: 0 auto 18px;
  animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.building-card h2 { font-size: 17px; margin-bottom: 6px; }
.building-card p { font-size: 13px; color: var(--text-muted); }

/* ── Success view ─────────────────────────────────────────────────── */
.success-card {
  max-width: 760px;
  margin: 0 auto;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 40px;
}
.success-head {
  display: grid;
  grid-template-columns: 56px 1fr;
  align-items: center;
  gap: 18px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 24px;
}
.success-check {
  width: 56px;
  height: 56px;
  background: var(--success-dim);
  color: var(--success);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.success-head-text h2 { font-size: 22px; margin-bottom: 4px; }
.success-head-text p { font-size: 13px; color: var(--text-muted); }
.success-head-text .mono {
  background: var(--bg);
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 12px;
}

.success-body {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-bottom: 24px;
}
.success-col-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-light);
  margin-bottom: 10px;
}

/* The summary card mirrors the actual rebranded popup look */
.success-summary-card {
  background: #0d0d0e;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  color: #f5f5f6;
}
.ss-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  margin-bottom: 12px;
}
.ss-mark { width: 26px; height: 26px; display: block; }
.ss-wordmark { font-weight: 700; font-size: 17px; letter-spacing: -0.5px; }
.ss-rows { font-size: 11.5px; color: rgba(255,255,255,0.55); line-height: 1.6; }
.ss-row { display: flex; justify-content: space-between; padding: 3px 0; }
.ss-row span:last-child { color: rgba(255,255,255,0.85); }

.zip-list { display: flex; flex-direction: column; gap: 6px; }
.zip-item {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 9px 12px;
  background: var(--bg);
  border-radius: var(--radius-sm);
  font-size: 12px;
}
.zip-item svg { color: var(--text-muted); flex-shrink: 0; }
.zip-item .mono { flex: 1; }
.zip-tag { font-size: 10px; color: var(--text-light); }

.success-callout {
  background: var(--bg);
  border-radius: var(--radius-sm);
  padding: 16px 18px;
  margin-bottom: 24px;
}
.callout-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-light);
  margin-bottom: 8px;
}
.success-callout p {
  font-size: 12.5px;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 10px;
}
.callout-buttons { display: flex; gap: 8px; }
.callout-buttons button {
  padding: 7px 12px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: var(--font);
  font-size: 11.5px;
  font-weight: 600;
  cursor: pointer;
}
.callout-buttons button:hover { border-color: var(--accent); color: var(--accent-deep); }

.success-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 18px;
  border-top: 1px solid var(--border);
}
.success-footer button {
  padding: 9px 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: var(--font);
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
}
.success-footer button.primary {
  background: var(--text);
  color: var(--surface);
  border-color: var(--text);
}
.success-footer button:hover { border-color: var(--accent); color: var(--accent-deep); }
.success-footer button.primary:hover { opacity: 0.85; color: var(--surface); border-color: var(--text); }

/* ── Mobile ──────────────────────────────────────────────────────── */
@media (max-width: 920px) {
  .form-grid { grid-template-columns: 1fr; }
  .success-body { grid-template-columns: 1fr; }
  #kit-header { padding: 12px 16px; }
  .view { padding: 16px; }
}
