/* ============================================================
   MIND MATTER — Studio Entry Gate
   Sign-in gate + premium profile setup wizard for /studio.
   Same design system: ink / ivory / hot magenta / star / ember.
   ============================================================ */

/* The profile setup lives INLINE in the page flow — between the studio
   hero and the 3D editor — so the section scrolls with the page instead
   of covering it as a modal. */
.studio-profile-setup {
  position: relative;
  padding: 72px 0 96px;
  background:
    radial-gradient(900px 640px at 78% 12%, rgba(80, 140, 210, 0.14), transparent 62%),
    radial-gradient(760px 620px at 8% 82%, rgba(255, 45, 111, 0.10), transparent 60%),
    linear-gradient(160deg, rgba(10, 17, 32, 0.72), rgba(7, 12, 23, 0.6));
  border-top: 1px solid var(--hair);
  border-bottom: 1px solid var(--hair);
}
.studio-profile-setup .wrap {
  max-width: 1160px;
}
.studio-profile-setup .sg-step-head {
  max-width: 640px;
}
.studio-profile-setup .sg-step-head h1 {
  font-family: var(--serif);
  font-size: clamp(26px, 3.4vw, 38px);
  font-weight: 700;
  line-height: 1.15;
  margin: 10px 0 12px;
  color: var(--ivory);
}
.studio-profile-setup .sg-exit {
  display: inline-block;
  margin-top: 28px;
  font-size: 12.5px;
  color: var(--ivory-dim);
  text-decoration: none;
  transition: color 0.2s ease;
}
.studio-profile-setup .sg-exit:hover { color: var(--ivory); }

.sg-step-head h1 {
  font-family: var(--serif);
  font-size: clamp(26px, 3.4vw, 38px);
  font-weight: 700;
  line-height: 1.15;
  margin: 10px 0 12px;
  color: var(--ivory);
}
.sg-lede {
  color: var(--ivory-dim);
  max-width: 560px;
  font-size: 15px;
  line-height: 1.65;
  margin-bottom: 26px;
}
.kicker {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--gold);
}

/* ---------- Auth buttons ---------- */
.sg-auth {
  display: grid;
  gap: 12px;
  max-width: 380px;
}
.sg-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 14px 18px;
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 600;
  border-radius: 10px;
  border: 1px solid var(--hair);
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}
.sg-btn:hover { transform: translateY(-1px); }
.sg-btn:active { transform: translateY(0); }

.sg-btn-google {
  background: #fff;
  color: #1a1a1a;
  border-color: rgba(255, 255, 255, 0.9);
  box-shadow: 0 6px 22px rgba(255, 255, 255, 0.12);
}
.sg-btn-google:hover { box-shadow: 0 10px 30px rgba(255, 255, 255, 0.2); }

.sg-btn-demo {
  background: transparent;
  color: var(--ivory);
  border-style: dashed;
}
.sg-btn-demo:hover {
  border-color: var(--gold);
  color: var(--gold-bright);
  background: rgba(255, 45, 111, 0.06);
}

.sg-email-form {
  display: grid;
  gap: 10px;
}
.sg-email-form input {
  width: 100%;
  box-sizing: border-box;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid var(--hair);
  background: rgba(0, 0, 0, 0.35);
  color: var(--ivory);
  font: 500 14px var(--sans);
}
.sg-email-form input:focus {
  outline: none;
  border-color: rgba(255, 45, 111, 0.45);
}
.sg-email-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.sg-btn-email {
  background: rgba(255, 45, 111, 0.16);
  color: var(--gold-bright, #ff2d6f);
  border-color: rgba(255, 45, 111, 0.35);
}
.sg-btn-email:hover {
  background: rgba(255, 45, 111, 0.24);
}

.sg-note {
  font-size: 12px;
  color: var(--ivory-dim);
  text-align: center;
  margin-top: -2px;
}
.sg-note.sg-error { color: #f5a9a0; }

/* ---------- Creator payouts (Stripe Connect) ---------- */
.creator-payout-panel {
  padding: 0 0 28px;
}
.creator-payout-card {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 18px 24px;
  padding: 22px 24px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: linear-gradient(145deg, rgba(18, 26, 42, 0.95), rgba(8, 12, 22, 0.98));
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
}
.creator-payout-copy {
  flex: 1 1 240px;
  max-width: 520px;
}
.creator-payout-copy .kicker {
  font: 600 10px var(--mono, ui-monospace, monospace);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold, #ff2d6f);
  margin-bottom: 6px;
}
.creator-payout-copy h2 {
  margin: 0 0 8px;
  font-family: var(--serif, Georgia, serif);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--ivory, #f2f4f8);
}
.creator-payout-copy p {
  margin: 0 0 6px;
  font-size: 0.9rem;
  line-height: 1.5;
  color: var(--ivory-dim, #9aa3b5);
}
.creator-payout-status {
  margin-top: 8px !important;
  color: var(--ivory, #f2f4f8) !important;
  font-weight: 500;
}
.creator-payout-balance {
  margin-top: 6px !important;
  font: 600 0.88rem var(--mono, ui-monospace, monospace);
  color: var(--gold, #ff2d6f) !important;
}
.creator-payout-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

/* ---------- Sales analytics ---------- */
.creator-sales-panel {
  margin-top: 28px;
  padding: 22px 0 8px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}
.creator-sales-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}
.creator-sales-head .kicker {
  font: 600 10px var(--mono, ui-monospace, monospace);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold, #ff2d6f);
  margin-bottom: 6px;
}
.creator-sales-head h2 {
  margin: 0 0 6px;
  font-family: var(--serif, Georgia, serif);
  font-size: 1.35rem;
  color: var(--ivory, #f2f4f8);
}
.creator-sales-lede {
  margin: 0;
  max-width: 520px;
  font-size: 0.9rem;
  line-height: 1.5;
  color: var(--ivory-dim, #9aa3b5);
}
.creator-sales-table-wrap {
  margin-top: 18px;
  overflow-x: auto;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
}
.creator-sales-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
}
.creator-sales-table th,
.creator-sales-table td {
  padding: 12px 14px;
  text-align: left;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.creator-sales-table th {
  font: 600 10px var(--mono, ui-monospace, monospace);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ivory-dim);
  background: rgba(0, 0, 0, 0.25);
}
.creator-sales-table td {
  color: var(--ivory, #f2f4f8);
}
.creator-sales-sub {
  font-size: 0.75rem;
  color: var(--ivory-dim);
  margin-top: 2px;
  text-transform: capitalize;
}
.creator-sales-net {
  color: var(--gold, #ff2d6f);
  font-weight: 700;
}
.creator-sales-empty {
  text-align: center;
  color: var(--ivory-dim) !important;
  padding: 28px 14px !important;
}

.sg-or {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--ivory-dim);
  font-size: 11px;
  font-family: var(--mono);
  letter-spacing: 0.2em;
  margin: 2px 0;
}
.sg-or::before, .sg-or::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--hair);
}

.sg-perks {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  margin-top: 26px;
  padding: 0;
}
.sg-perks li {
  font-size: 12.5px;
  color: var(--ivory-dim);
  display: flex;
  align-items: center;
  gap: 7px;
}
.sg-perks li span { color: var(--gold); }

/* ---------- Wizard ---------- */
.sg-wizard {
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 28px;
  align-items: start;
}

.sg-preview {
  position: sticky;
  top: 84px; /* clears the fixed site header while the page scrolls */
  border: 1px solid var(--hair);
  border-radius: 12px;
  overflow: hidden;
  background: #0a1120;
  min-height: 460px;
  display: flex;
  flex-direction: column;
}
.sg-preview-cover {
  position: relative;
  height: 150px;
  background:
    radial-gradient(400px 240px at 72% 36%, rgba(255, 45, 111, 0.22), transparent 70%),
    linear-gradient(135deg, rgba(16, 24, 44, 0.95), rgba(6, 11, 22, 0.95));
  background-size: cover;
  background-position: center;
  border-bottom: 1px solid var(--hair);
  transition: background 0.3s ease;
}
.sg-upload-chip {
  position: absolute;
  right: 10px;
  bottom: 10px;
  font-size: 11px;
  font-family: var(--mono);
  letter-spacing: 0.1em;
  color: var(--ivory);
  background: rgba(7, 13, 24, 0.72);
  border: 1px solid var(--hair);
  border-radius: 6px;
  padding: 5px 9px;
  cursor: pointer;
  transition: border-color 0.2s ease, color 0.2s ease;
}
.sg-upload-chip:hover { border-color: var(--gold); color: var(--gold-bright); }

.sg-preview-avatar {
  position: relative;
  width: 88px;
  height: 88px;
  margin: -44px 20px 0;
  border-radius: 50%;
  background: #101a30 center/cover;
  border: 3px solid #0a1120;
  outline: 1px solid var(--hair-strong);
  display: grid;
  place-items: center;
}
.sg-avatar-initial {
  font-family: var(--serif);
  font-size: 30px;
  color: var(--ivory-dim);
}
.sg-avatar-chip {
  position: absolute;
  right: -2px;
  bottom: -2px;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 14px;
  line-height: 1;
  background: var(--gold);
  color: var(--ink-on-gold);
  cursor: pointer;
  border: 2px solid #0a1120;
  transition: transform 0.15s ease;
}
.sg-avatar-chip:hover { transform: scale(1.12); }

.sg-preview-id {
  padding: 14px 20px 0;
}
.sg-preview-id h2 {
  font-family: var(--serif);
  font-size: 20px;
  color: var(--ivory);
  margin-bottom: 4px;
}
.sg-preview-id p {
  font-size: 12.5px;
  color: var(--ivory-dim);
  line-height: 1.5;
}
.sg-preview-meta { font-family: var(--mono); font-size: 10.5px !important; letter-spacing: 0.08em; margin-top: 6px; }

.sg-preview-socials {
  display: flex;
  gap: 14px;
  padding: 16px 20px 20px;
  margin-top: auto;
}
.sg-soc-off {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid var(--hair);
  color: var(--ivory-dim);
  font-size: 15px;
  transition: all 0.2s ease;
}
.sg-soc-off.on {
  color: var(--ink-on-gold);
  background: var(--gold);
  border-color: var(--gold);
  box-shadow: 0 0 14px rgba(255, 45, 111, 0.5);
}

/* ---------- Form ---------- */
.sg-form {
  display: grid;
  gap: 26px;
}
.sg-form-section {
  display: grid;
  gap: 12px;
}
.sg-form-section h3 {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 2px;
}

.sg-f-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.sg-upload-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.sg-upload-tile {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px;
  border: 1px dashed var(--hair-strong);
  border-radius: 10px;
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease;
}
.sg-upload-tile:hover {
  border-color: var(--gold);
  background: rgba(255, 45, 111, 0.05);
}
.sg-upload-ico { font-size: 18px; color: var(--gold); }
.sg-upload-tile b { display: block; font-size: 13px; color: var(--ivory); }
.sg-upload-tile small { font-size: 11px; color: var(--ivory-dim); }

.sg-social-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.sg-accent-label {
  font-size: 12.5px;
  color: var(--ivory-dim);
  margin-bottom: 2px;
}
.sg-swatches {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.sg-swatch {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 8px;
  border: 1px solid var(--hair);
  background: transparent;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: var(--sans);
  font-size: 12px;
  color: var(--ivory-dim);
}
.sg-swatch span {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.25);
}
.sg-swatch.on {
  border-color: var(--gold);
  color: var(--ivory);
  background: rgba(255, 45, 111, 0.08);
}

.sg-wizard-actions {
  display: grid;
  gap: 10px;
  margin-top: 6px;
}
.sg-wizard-actions .wide { width: 100%; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .sg-wizard { grid-template-columns: 1fr; }
  .sg-preview { position: relative; min-height: 380px; }
}
@media (max-width: 560px) {
  .studio-profile-setup { padding: 44px 0 64px; }
  .sg-f-row, .sg-upload-row, .sg-social-grid { grid-template-columns: 1fr; }
  .sg-swatches { gap: 6px; }
  .sg-swatch { padding: 6px 9px; font-size: 11px; }
}
