:root {
  --bg: #f3f5fb;
  --ink: #0f172a;
  --muted: #64748b;
  --line: rgba(15, 23, 42, 0.1);
  --card: #ffffff;
  --accent: #4f46e5;
  --radius-md: 12px;
  --radius-lg: 16px;
  --field-h: 42px;
  --step3-preview-card-max: 650px;
}

* { box-sizing: border-box; }

/* Font picker: client-approved faces — Aa preview uses each tile's typeface (labels stay UI font) */
/* Legacy Template 4 split color UI — removed per client; hide if old HTML is cached */
#bizEl12Wrap,
#bizHintT4Colors,
#bizEl1SwatchGrid,
#bizEl2SwatchGrid,
#bizEl1CircleGrid,
#bizEl2CircleGrid {
  display: none !important;
  visibility: hidden !important;
  height: 0 !important;
  overflow: hidden !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
}

#bizClientLookPanel .biz-font-swatch__aa {
  color: #f8fafc;
}

html[data-theme="dark"] body.step3-page #bizClientLookPanel .biz-font-swatch__aa {
  color: #f8fafc !important;
}

#bizClientLookPanel .biz-font-swatch[data-font-face="times-new-roman"] .biz-font-swatch__aa {
  font-family: "Times New Roman", Times, Georgia, serif !important;
  font-weight: 700 !important;
  font-size: 1.2rem !important;
}
#bizClientLookPanel .biz-font-swatch[data-font-face="helvetica"] .biz-font-swatch__aa {
  font-family: Helvetica, "Helvetica Neue", Arial, sans-serif !important;
  font-weight: 700 !important;
}
#bizClientLookPanel .biz-font-swatch[data-font-face="arial"] .biz-font-swatch__aa {
  font-family: Arial, Helvetica, sans-serif !important;
  font-weight: 700 !important;
}
#bizClientLookPanel .biz-font-swatch[data-font-face="palatino"] .biz-font-swatch__aa {
  font-family: "Palatino Linotype", Palatino, Georgia, serif !important;
  font-weight: 700 !important;
  font-size: 1.18rem !important;
}
#bizClientLookPanel .biz-font-swatch[data-font-face="courier"] .biz-font-swatch__aa {
  font-family: "Courier New", Courier, monospace !important;
  font-weight: 400 !important;
  font-size: 1.05rem !important;
}
#bizClientLookPanel .biz-font-swatch[data-font-face="impact"] .biz-font-swatch__aa {
  font-family: Impact, "Arial Black", sans-serif !important;
  font-weight: 400 !important;
  font-size: 1.32rem !important;
  letter-spacing: 0.02em !important;
}
#bizClientLookPanel .biz-font-swatch[data-font-face="georgia"] .biz-font-swatch__aa {
  font-family: Georgia, "Times New Roman", serif !important;
  font-weight: 700 !important;
  font-size: 1.2rem !important;
}
#bizClientLookPanel .biz-font-swatch[data-font-face="tahoma"] .biz-font-swatch__aa {
  font-family: Tahoma, Verdana, Geneva, sans-serif !important;
  font-weight: 700 !important;
}
#bizClientLookPanel .biz-font-swatch[data-font-face="stencil-font"] .biz-font-swatch__aa {
  font-family: "Allerta Stencil", "Stencil Font", sans-serif !important;
  font-weight: 400 !important;
  font-size: 1.05rem !important;
  letter-spacing: 0.02em !important;
  text-transform: none !important;
}
#bizClientLookPanel .biz-font-swatch[data-font-face="sf-sport-night-ns"] .biz-font-swatch__aa {
  font-family: "SF Sports Night NS", Impact, Haettenschweiler, Arial Narrow, sans-serif !important;
  font-weight: 400 !important;
  font-size: 1.08rem !important;
  letter-spacing: 0.04em !important;
  text-transform: uppercase !important;
}

#bizClientLookPanel .biz-font-swatch__name {
  font-size: 0.52rem;
  line-height: 1.2;
  max-width: 100%;
  padding: 0 0.1rem;
}

/* Button icon shape — 2×2 grid, always 4 options including hexagon */
#bizClientLookPanel .biz-icon-shape-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.55rem;
}

#bizClientLookPanel .biz-shape-opt {
  min-height: 5.35rem;
  justify-content: center;
}

#bizClientLookPanel .biz-shape-opt__preview {
  width: 2.5rem;
  height: 2.5rem;
  min-width: 2.5rem;
  min-height: 2.5rem;
  background: #007bff;
  flex-shrink: 0;
  display: block;
}

#bizClientLookPanel .biz-shape-opt__preview--circle {
  border-radius: 50%;
}

#bizClientLookPanel .biz-shape-opt__preview--hexagon {
  border-radius: 0;
  -webkit-clip-path: polygon(25% 0%, 75% 0%, 100% 50%, 75% 100%, 25% 100%, 0% 50%);
  clip-path: polygon(25% 0%, 75% 0%, 100% 50%, 75% 100%, 25% 100%, 0% 50%);
}

#bizClientLookPanel .biz-icon-style-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.5rem;
}

#bizClientLookPanel .biz-icon-style-opt__preview--outline-white {
  box-shadow: 0 0 0 3px #ffffff, 0 0 0 4px rgba(15, 23, 42, 0.22);
}

#bizClientLookPanel .biz-icon-style-opt__preview--outline-black {
  box-shadow: 0 0 0 2px #111111;
}

body.step3-page {
  margin: 0;
  font-family: "Plus Jakarta Sans", system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
  background:
    radial-gradient(1200px 520px at 10% -10%, rgba(79, 70, 229, 0.08), transparent 55%),
    radial-gradient(900px 440px at 95% -20%, rgba(99, 102, 241, 0.07), transparent 60%),
    var(--bg);
  color: var(--ink);
}

.step3-wrap {
  width: min(1440px, calc(100% - 28px));
  margin: 0 auto;
  padding: clamp(0.45rem, 1.2vw, 0.9rem) 0 2.2rem;
}

.builder-flow-hero {
  position: relative;
  text-align: left;
  margin: 0 0 1rem;
  padding: 0.95rem 1.05rem 1rem;
  padding-right: 18rem;
  border-radius: 18px;
  border: 1px solid var(--line, rgba(15, 23, 42, 0.08));
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.09);
}

.builder-flow-hero::before {
  display: none;
}

.builder-flow-step {
  margin: 0 0 0.45rem;
  padding: 0.28rem 0.62rem;
  font-size: 0.67rem;
  letter-spacing: 0.08em;
  background: rgba(99, 102, 241, 0.08);
  border-color: rgba(99, 102, 241, 0.2);
  color: #5b5fd6;
}

.builder-flow-hero h1 {
  font-size: clamp(2rem, 1.4vw + 1.2rem, 2.6rem);
  line-height: 1.15;
  margin: 0;
}

.builder-flow-sub {
  margin: 0.45rem 0 0;
  padding: 0;
  max-width: 42rem;
  font-size: 1.04rem;
  color: #556177;
}

.builder-top-right {
  position: absolute;
  top: 0.9rem;
  right: 0.95rem;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.5rem;
  z-index: 6;
  pointer-events: auto;
}

.builder-flow-hero .builder-flow-stepper {
  margin-bottom: 0.35rem;
}

.builder-flow-icon-nav {
  position: static;
  margin-top: 1.35rem;
  margin-bottom: 0.45rem;
  display: flex;
  width: 100%;
  justify-content: center;
  gap: 0.35rem;
}

.builder-flow-progress-track {
  display: inline-flex;
  align-items: center;
  gap: 0.52rem;
  margin-top: 0.6rem;
  color: #667085;
  font-size: 0.8rem;
  font-weight: 600;
}

.flow-stage {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.flow-dot {
  width: 18px;
  height: 18px;
  border-radius: 999px;
  border: 1px solid #cbd5e1;
  background: #fff;
  color: #64748b;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.68rem;
  line-height: 1;
}

.flow-stage.done .flow-dot,
.flow-stage.active .flow-dot {
  border-color: #5b5fd6;
  background: #5b5fd6;
  color: #fff;
}

.flow-sep {
  width: 16px;
  height: 1px;
  background: #cbd5e1;
}

.builder-top-actions {
  position: static;
  margin-top: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.28rem;
}

.builder-top-actions__buttons {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  justify-content: flex-end;
  gap: 0.65rem;
}

/* card-ui.css sets .btn { width: 100% } — breaks this row and creates uneven gaps */
.builder-top-actions__buttons .btn {
  width: auto;
  max-width: 100%;
  flex: 0 0 auto;
  box-sizing: border-box;
  min-height: 48px;
  padding: 0.65rem 1.25rem;
  white-space: nowrap;
  text-align: center;
}

.builder-top-actions__buttons .btn-primary {
  padding: 0.65rem 1.25rem;
  box-shadow: none;
  filter: none;
}

.builder-top-actions__buttons .btn-primary:hover,
.builder-top-actions__buttons .btn-primary:focus {
  box-shadow: none;
  filter: none;
}

.helper-top {
  margin: 0;
}

/* Hide empty save/reset status line until JS sets feedback */
.helper-top:empty {
  display: none;
}

.builder-paid-note {
  margin-top: 0.62rem;
  border: 1px solid rgba(129, 140, 248, 0.18);
  background: rgba(79, 70, 229, 0.06);
  border-radius: 12px;
  padding: 0.55rem 0.72rem;
  display: grid;
  gap: 0.12rem;
}

.builder-paid-note strong {
  font-size: 0.86rem;
  color: #3730a3;
}

.builder-paid-note span {
  font-size: 0.82rem;
  color: #475569;
}

.step3-grid {
  display: grid;
  /* Left: Color & theme (capped). Right: Live preview grows so the full card is visible. */
  grid-template-columns: minmax(0, min(520px, 42%)) minmax(480px, 1fr);
  gap: 1.15rem;
  align-items: start;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.step3-panel {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.07);
}

.editor-panel {
  padding: 1rem 1rem 1.15rem;
  max-height: none;
  overflow: visible;
}

.preview-panel {
  padding: 0.65rem 1rem 1rem;
  position: sticky;
  top: 1rem;
  background: transparent;
  border: none;
  box-shadow: none;
  min-width: 0;
  width: 100%;
  box-sizing: border-box;
}

.panel-title {
  margin: 0 0 0.85rem;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #556177;
}

.form-grid {
  display: grid;
  gap: 0.9rem;
}

.template-picker-modern__head {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  flex-wrap: wrap;
  gap: 0.55rem 1rem;
  margin: 0 0 0.42rem;
}

.template-picker-modern__head .template-notice-warning {
  margin: 0;
  padding: 0;
  border: none;
  background: none;
  border-radius: 0;
  font-size: 0.74rem;
  font-weight: 600;
  line-height: 1.35;
  color: #b91c1c;
  flex: 0 1 auto;
  max-width: 100%;
}

@media (max-width: 520px) {
  .template-picker-modern__head .template-notice-warning {
    flex-basis: 100%;
  }
}

.template-picker-modern {
  position: relative;
  border: 1px solid rgba(79, 70, 229, 0.18);
  border-radius: 14px;
  background:
    linear-gradient(180deg, rgba(99, 102, 241, 0.07), rgba(255, 255, 255, 0.95) 45%),
    #fff;
  padding: 0.78rem 0.78rem 0.72rem;
  box-shadow: 0 10px 24px rgba(79, 70, 229, 0.12);
}

.template-picker-modern::after {
  content: "";
  position: absolute;
  inset: 0 auto auto 0;
  width: 88px;
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, #4f46e5, #6366f1);
}

.template-picker-modern label {
  margin: 0 0 0.42rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #64748b;
}

.template-picker-modern .template-picker-modern__head label {
  margin: 0;
}

.template-picker-modern select {
  border-radius: 12px;
  border: 1px solid rgba(148, 163, 184, 0.45);
  background: #fff;
  padding: 0.7rem 2.2rem 0.7rem 0.82rem;
  font-size: 1rem;
  font-weight: 600;
  color: #0f172a;
  appearance: none;
  background-image:
    linear-gradient(45deg, transparent 50%, #4f46e5 50%),
    linear-gradient(135deg, #4f46e5 50%, transparent 50%),
    linear-gradient(to right, rgba(148, 163, 184, 0.25), rgba(148, 163, 184, 0.25));
  background-position:
    calc(100% - 18px) 52%,
    calc(100% - 12px) 52%,
    calc(100% - 2.2rem) 50%;
  background-size: 6px 6px, 6px 6px, 1px 62%;
  background-repeat: no-repeat;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.template-picker-modern select:focus {
  outline: none;
  border-color: rgba(79, 70, 229, 0.6);
  box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.15);
}

.brand-color-modern {
  margin-top: 0.62rem;
  padding: 0.58rem;
  border: 1px solid rgba(148, 163, 184, 0.28);
  border-radius: 12px;
  background: linear-gradient(180deg, rgba(248, 250, 252, 0.9), #fff);
}

.brand-color-modern__row {
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

.brand-color-modern input[type="color"] {
  -webkit-appearance: none;
  appearance: none;
  width: 62px;
  height: 42px;
  border: 1px solid rgba(148, 163, 184, 0.45);
  border-radius: 10px;
  background: #fff;
  padding: 0.2rem;
  cursor: pointer;
}

.brand-color-modern input[type="color"]::-webkit-color-swatch-wrapper {
  padding: 0;
}

.brand-color-modern input[type="color"]::-webkit-color-swatch {
  border: none;
  border-radius: 7px;
}

.brand-color-modern input[type="color"]::-moz-color-swatch {
  border: none;
  border-radius: 7px;
}

.brand-color-modern__hex {
  min-width: 92px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0.35rem 0.65rem;
  border: 1px solid rgba(79, 70, 229, 0.22);
  border-radius: 10px;
  background: rgba(79, 70, 229, 0.06);
  font-weight: 700;
  letter-spacing: 0.04em;
  color: #3730a3;
  font-size: 0.79rem;
}

.step3-look-surface {
  margin-top: 0.65rem;
  padding: 1rem 1.1rem 1.05rem;
  border-radius: 14px;
  border: 1px solid rgba(15, 23, 42, 0.22);
  background: #0a0a0a;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.step3-look-surface .brand-color-modern {
  margin-top: 0;
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(248, 250, 252, 0.12);
}

.step3-look-surface .brand-color-modern label,
.step3-look-surface .step3-look-row label {
  color: #f1f5f9;
}

.step3-look-surface .brand-color-modern__hex {
  color: #f8fafc;
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(248, 250, 252, 0.14);
}

.step3-look-row {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.step3-look-row label {
  font-weight: 600;
  font-size: 0.84rem;
}

.step3-look-row select {
  min-height: 44px;
  border-radius: 10px;
  padding: 0 0.65rem;
  border: 1px solid rgba(248, 250, 252, 0.16);
  background: #141418;
  color: #f1f5f9;
  font-weight: 600;
  font-size: 0.86rem;
}

.step3-look-t4-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.65rem 0.85rem;
}

@media (max-width: 520px) {
  .step3-look-t4-grid {
    grid-template-columns: 1fr;
  }
}

.step3-look-type-detail {
  border: 1px solid rgba(248, 250, 252, 0.12);
  border-radius: 12px;
  padding: 0;
  margin-top: 0.15rem;
  background: rgba(255, 255, 255, 0.03);
}

.step3-look-type-detail__summary {
  cursor: pointer;
  list-style: none;
  font-weight: 600;
  font-size: 0.84rem;
  padding: 0.55rem 0.65rem;
  color: #e2e8f0;
}

.step3-look-type-detail__summary::-webkit-details-marker {
  display: none;
}

.step3-look-type-detail__body {
  padding: 0 0.65rem 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

.color-controls-inline {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.52rem;
  margin-top: 0.62rem;
}

.color-controls-inline .brand-color-modern {
  margin-top: 0;
  padding: 0.5rem 0.45rem;
}

.color-controls-inline .brand-color-modern label {
  margin-bottom: 0.28rem;
  font-size: 0.72rem;
}

.color-controls-inline .brand-color-modern__row {
  justify-content: flex-start;
}

.color-controls-inline .brand-color-modern input[type="color"] {
  width: 56px;
  height: 38px;
}

.color-controls-inline .brand-color-modern__hex.color-code--compact {
  display: none;
}

.section-title {
  margin: 1.12rem 0 0.48rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.075em;
  text-transform: uppercase;
  color: #3a4a62;
  display: inline-flex;
  align-items: center;
  gap: 0.42rem;
}

.section-title::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: linear-gradient(135deg, #4f46e5, #6366f1);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.12);
}

.section-title--with-icon::before {
  display: none;
}

.section-title--personal {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.personal-info-card {
  margin-top: 0.9rem;
  border: 1px solid #d6e1f2;
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
  box-shadow: 0 12px 28px rgba(79, 70, 229, 0.1);
  overflow: hidden;
}

.personal-info-card__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.65rem;
  padding: 0.76rem 0.9rem;
  border-bottom: 1px solid #e2eaf7;
  background: linear-gradient(180deg, #eef2ff 0%, #f8fbff 100%);
}

.personal-info-card__head .section-title {
  margin: 0;
  font-size: 0.76rem;
  letter-spacing: 0.07em;
}

.personal-info-card__arrow {
  width: 30px;
  height: 30px;
  min-width: 30px;
  min-height: 30px;
  border-radius: 999px;
  border: 1px solid rgba(99, 102, 241, 0.26);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #4f46e5;
  background: #fff;
  padding: 0;
  cursor: pointer;
}

.personal-info-card__body {
  padding: 0.95rem;
  display: grid;
  gap: 0.72rem;
}

.section-title__icon {
  width: 16px;
  height: 16px;
  color: #6366f1;
  display: inline-flex;
}

.section-title__icon svg {
  width: 16px;
  height: 16px;
  display: block;
}

.section-title__icon--loan {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #4f46e5;
  flex-shrink: 0;
}

.section-title--with-icon,
.section-title.section-title--with-icon {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.btn-add-more {
  width: 100%;
  min-height: 40px;
  border-radius: 10px;
  border: 1px dashed rgba(99, 102, 241, 0.45);
  background: #ffffff;
  color: #4f46e5;
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.02em;
  cursor: pointer;
}

.btn-add-more:hover {
  background: rgba(99, 102, 241, 0.06);
}

.add-field-wrap {
  position: relative;
}

.field-picker {
  position: absolute;
  top: calc(100% + 0.35rem);
  left: 0;
  right: 0;
  z-index: 20;
  background: #ffffff;
  border: 1px solid #dbe2ee;
  border-radius: 10px;
  padding: 0.35rem;
  display: none;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.16);
}

.field-picker.open {
  display: grid;
  gap: 0.24rem;
}

.field-picker-item {
  border: 0;
  background: #f8fafc;
  text-align: left;
  border-radius: 8px;
  padding: 0.46rem 0.58rem;
  font-size: 0.8rem;
  color: #1e293b;
  cursor: pointer;
}

.field-picker-item:hover {
  background: #eef2ff;
}

.contact-extra-card {
  border: 1px solid rgba(99, 102, 241, 0.2);
  background: #f8faff;
  border-radius: 10px;
  padding: 0.55rem;
  margin-top: 0.45rem;
}

.step3-link-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.65rem;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.step3-link-grid .contact-extra-card {
  margin-top: 0;
}

.step3-link-grid .contact-extra-card .label-ico {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  gap: 0.4rem;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  text-align: left;
}

.step3-link-grid .contact-extra-card .label-ico svg,
.step3-link-grid .contact-extra-card .label-ico img {
  flex-shrink: 0;
}

@media (max-width: 520px) {
  .step3-link-grid {
    grid-template-columns: 1fr;
  }
}

.personal-extra-fields[hidden] {
  display: none !important;
}

.personal-style-panel {
  margin-top: 0.52rem;
  border: 1px solid rgba(99, 102, 241, 0.2);
  border-radius: var(--radius-md);
  background: linear-gradient(180deg, #ffffff 0%, #f7f9ff 100%);
  padding: 0.82rem;
}

.personal-style-panel__title {
  margin: 0 0 0.5rem;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #64748b;
}

.social-style-panel {
  border: 1px solid rgba(79, 70, 229, 0.28);
  border-radius: 14px;
  background:
    radial-gradient(280px 120px at 100% -10%, rgba(99, 102, 241, 0.14), transparent 70%),
    linear-gradient(180deg, rgba(238, 242, 255, 0.68), rgba(255, 255, 255, 0.98));
  box-shadow: 0 10px 24px rgba(79, 70, 229, 0.12);
  padding: 0.95rem;
}

.social-style-panel .personal-style-panel__title {
  margin-bottom: 0.68rem;
  color: #4338ca;
  letter-spacing: 0.07em;
}

.social-style-panel > div {
  border: 1px solid rgba(148, 163, 184, 0.26);
  border-radius: 11px;
  background: #fff;
  padding: 0.52rem;
}

.social-style-panel > div + div {
  margin-top: 0.56rem;
}

.social-style-panel .two-col {
  gap: 0.6rem;
}

.social-style-panel input[type="range"] {
  accent-color: #4f46e5;
}

.social-style-panel input[type="color"] {
  width: 56px;
  height: 36px;
  border-radius: 9px;
  padding: 0.14rem;
  border: 1px solid rgba(148, 163, 184, 0.45);
  background: #fff;
}

.advanced-style-panel {
  border: 1px solid rgba(79, 70, 229, 0.24);
  border-radius: 14px;
  background:
    radial-gradient(260px 120px at 100% -10%, rgba(99, 102, 241, 0.12), transparent 70%),
    linear-gradient(180deg, rgba(238, 242, 255, 0.62), rgba(255, 255, 255, 0.98));
  box-shadow: 0 8px 22px rgba(79, 70, 229, 0.1);
  padding: 0.92rem;
}

.advanced-style-panel .personal-style-panel__title {
  margin-bottom: 0.66rem;
  color: #4338ca;
  letter-spacing: 0.07em;
}

.advanced-style-panel > div {
  border: 1px solid rgba(148, 163, 184, 0.26);
  border-radius: 11px;
  background: #fff;
  padding: 0.52rem;
}

.advanced-style-panel > div + div {
  margin-top: 0.55rem;
}

.advanced-style-panel .two-col {
  gap: 0.6rem;
}

.advanced-style-panel input[type="range"] {
  accent-color: #4f46e5;
}

.advanced-style-panel input[type="color"] {
  width: 56px;
  height: 36px;
  border-radius: 9px;
  padding: 0.14rem;
  border: 1px solid rgba(148, 163, 184, 0.45);
  background: #fff;
}

label { display: block; font-size: 0.79rem; font-weight: 600; color: #46566d; margin-bottom: 0.26rem; }

.helper--video-embed-hint {
  color: #b91c1c;
  font-weight: 500;
}

.video-embed-slots > div {
  margin-bottom: 0.45rem;
}

.video-embed-slots input[type="text"] {
  width: 100%;
}

.gallery-grid-picker-wrap {
  position: relative;
  margin-bottom: 0.35rem;
}

.gallery-grid-picker__trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.65rem;
  border: 1px solid #dbe2ee;
  background: #fff;
  border-radius: var(--radius-md);
  min-height: var(--field-h);
  padding: 0.52rem 0.85rem;
  font: inherit;
  font-size: 0.88rem;
  color: #0f172a;
  cursor: pointer;
  text-align: left;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.gallery-grid-picker__trigger:hover {
  border-color: rgba(148, 163, 184, 0.65);
}

.gallery-grid-picker__trigger:focus {
  outline: none;
  border-color: rgba(79, 70, 229, 0.52);
  box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.13);
}

.gallery-grid-picker__value {
  flex: 1;
  min-width: 0;
  line-height: 1.35;
}

.gallery-grid-picker__chevron {
  flex-shrink: 0;
  width: 0.55rem;
  height: 0.55rem;
  border-right: 2px solid #64748b;
  border-bottom: 2px solid #64748b;
  transform: rotate(45deg) translateY(-2px);
  margin-top: -2px;
  opacity: 0.85;
}

.gallery-grid-picker__popover {
  position: absolute;
  left: 0;
  top: calc(100% + 6px);
  z-index: 40;
  width: min(320px, calc(100vw - 2rem));
  padding: 0.85rem 0.95rem;
  background: #fff;
  border: 1px solid rgba(148, 163, 184, 0.35);
  border-radius: 14px;
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.12);
}

.gallery-grid-picker__intro {
  margin: 0 0 0.65rem;
  font-size: 0.76rem;
  color: #64748b;
  line-height: 1.45;
}

.gallery-grid-picker__matrix {
  margin-bottom: 0.45rem;
}

.gallery-grid-picker__matrix-inner {
  display: grid;
  gap: 4px;
  user-select: none;
}

.gallery-grid-picker__cell {
  aspect-ratio: 1;
  min-height: 18px;
  border-radius: 4px;
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  cursor: pointer;
  transition: background 0.1s ease, border-color 0.1s ease, transform 0.08s ease;
}

.gallery-grid-picker__cell:hover:not(.is-disabled) {
  background: #e0e7ff;
  border-color: rgba(79, 70, 229, 0.35);
}

.gallery-grid-picker__cell.is-hover {
  background: rgba(79, 70, 229, 0.22);
  border-color: rgba(79, 70, 229, 0.55);
}

.gallery-grid-picker__cell.is-disabled {
  opacity: 0.28;
  cursor: not-allowed;
  background: #f8fafc;
}

.gallery-grid-picker__live {
  margin: 0 0 0.55rem;
  font-size: 0.78rem;
  font-weight: 600;
  color: #334155;
  min-height: 1.2em;
}

.gallery-grid-picker__preset {
  width: 100%;
  margin: 0;
  padding: 0.5rem 0.55rem;
  font-size: 0.74rem;
  line-height: 1.35;
  color: #4f46e5;
  background: rgba(79, 70, 229, 0.06);
  border: 1px dashed rgba(79, 70, 229, 0.35);
  border-radius: 10px;
  cursor: pointer;
  text-align: center;
  font-weight: 600;
}

.gallery-grid-picker__preset:hover {
  background: rgba(79, 70, 229, 0.1);
}

input[type="text"], input[type="url"], input[type="email"], input[type="tel"], textarea, select {
  width: 100%;
  border: 1px solid #dbe2ee;
  background: #fff;
  border-radius: var(--radius-md);
  min-height: var(--field-h);
  padding: 0.62rem 0.75rem;
  font: inherit;
  color: #0f172a;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease;
}

input[type="text"]:focus,
input[type="url"]:focus,
input[type="email"]:focus,
input[type="tel"]:focus,
textarea:focus,
select:focus {
  outline: none;
  border-color: rgba(79, 70, 229, 0.52);
  box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.13);
  background: #fff;
}

textarea { min-height: 74px; resize: vertical; }

.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.7rem;
}

.row {
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

.row input[type="checkbox"] { width: 16px; height: 16px; }

.tri-suite-optional-panel {
  border: 1px solid rgba(99, 102, 241, 0.2);
  border-radius: 14px;
  background:
    linear-gradient(180deg, rgba(238, 242, 255, 0.6) 0%, rgba(255, 255, 255, 0.98) 42%),
    #fff;
  padding: 0.85rem;
  box-shadow: 0 10px 24px rgba(79, 70, 229, 0.08);
}

.tri-suite-optional-panel .section-title {
  margin-top: 0;
  margin-bottom: 0.65rem;
}

.section-header-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.65rem;
}

.section-header-line .section-title {
  margin-bottom: 0;
}

.section-header-line--subpanel {
  margin-bottom: 0.55rem;
}

.section-header-line--subpanel .personal-style-panel__title {
  margin: 0;
}

.section-collapse-btn--subpanel {
  width: 26px;
  height: 26px;
  min-width: 26px;
  min-height: 26px;
}

.section-collapse-btn {
  border: 1px solid rgba(99, 102, 241, 0.26);
  background: #fff;
  border-radius: 999px;
  width: 30px;
  height: 30px;
  min-width: 30px;
  min-height: 30px;
  padding: 0;
  color: #4f46e5;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background 0.16s ease, transform 0.16s ease, border-color 0.16s ease;
}

.section-collapse-btn:hover {
  background: rgba(99, 102, 241, 0.08);
}

.section-collapse-btn svg {
  width: 16px;
  height: 16px;
  display: block;
}

.section-collapsible-body {
  margin-top: 0.7rem;
}

[data-collapsible-section].is-collapsed .section-collapsible-body {
  display: none;
}

[data-subcollapsible-section].is-collapsed .section-collapsible-body--subpanel {
  display: none;
}

.editor-collapsible-block {
  margin-top: 0.95rem;
  border: 1px solid #d6e1f2;
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
  box-shadow: 0 10px 24px rgba(79, 70, 229, 0.08);
  padding: 0.85rem 0.9rem;
}

.editor-collapsible-block .section-title {
  margin: 0;
}

.media-block {
  display: none;
}

.media-upload-row {
  display: grid;
  grid-template-columns: 1fr;
}

.media-upload-pair {
  align-items: start;
}

.file-dropzone__input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
  overflow: hidden;
  pointer-events: none;
}

.file-dropzone__box {
  margin-top: 0.35rem;
  min-height: 132px;
  border: 1px dashed rgba(100, 116, 139, 0.45);
  border-radius: 12px;
  background: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.28rem;
  text-align: center;
  padding: 0.75rem;
  cursor: pointer;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease;
}

.file-dropzone__box:hover,
.file-dropzone__box.is-dragover {
  border-color: rgba(79, 70, 229, 0.55);
  background: rgba(79, 70, 229, 0.03);
  box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.08);
}

.file-dropzone__icon {
  width: 30px;
  height: 30px;
  border-radius: 999px;
  background: rgba(79, 70, 229, 0.1);
  color: #4f46e5;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  font-weight: 700;
}

.file-dropzone__hint {
  font-size: 0.76rem;
  color: #475569;
}

.file-dropzone__or {
  font-size: 0.68rem;
  letter-spacing: 0.05em;
  color: #94a3b8;
}

.file-dropzone__browse {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 30px;
  padding: 0 0.7rem;
  border-radius: 999px;
  border: 1px solid rgba(79, 70, 229, 0.28);
  background: linear-gradient(135deg, #4f46e5, #6366f1);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
}

.file-dropzone__name {
  margin-top: 0.22rem;
  font-size: 0.72rem;
  color: #64748b;
}

@media (max-width: 860px) {
  .media-upload-pair {
    grid-template-columns: 1fr;
  }
  .media-upload-row {
    grid-template-columns: 1fr;
  }
}

[data-collapsible-section].is-collapsed .section-collapse-btn svg {
  transform: rotate(180deg);
}

[data-subcollapsible-section].is-collapsed .section-collapse-btn svg {
  transform: rotate(180deg);
}

.tri-suite-optional-panel > div + div {
  margin-top: 0.55rem;
}

.optional-feature-block {
  margin-bottom: 0.55rem;
}

.optional-feature-block:last-child {
  margin-bottom: 0;
}

.optional-feature-fields {
  margin-top: 0.45rem;
  padding-top: 0.55rem;
  border-top: 1px solid rgba(148, 163, 184, 0.28);
}

.optional-feature-fields__hint {
  margin: 0 0 0.45rem;
  font-size: 0.76rem;
  color: #64748b;
  line-height: 1.45;
}

.optional-feature-fields__heading {
  margin: 0 0 0.56rem;
  font-size: 0.74rem;
  font-weight: 700;
  color: #475569;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.optional-feature-fields .optional-feature-fields__heading.section-title {
  margin: 0 0 0.56rem;
  font-size: 0.74rem;
  color: #475569;
}

.optional-feature-fields > div + div {
  margin-top: 0.5rem;
}

.payment-panel {
  border: 1px solid rgba(99, 102, 241, 0.2);
  border-radius: 12px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(238, 242, 255, 0.42));
  padding: 0.78rem;
}

.payment-panel__hint {
  margin: 0 0 0.55rem;
  font-size: 0.76rem;
  color: #64748b;
}

.payment-grid {
  gap: 0.62rem;
}

.payment-field {
  border: 1px solid rgba(148, 163, 184, 0.28);
  border-radius: 11px;
  background: #fff;
  padding: 0.52rem;
}

.payment-field label {
  margin-bottom: 0.24rem;
}

.payment-bank-field {
  margin-top: 0.6rem;
  border: 1px solid rgba(148, 163, 184, 0.28);
  border-radius: 11px;
  background: #fff;
  padding: 0.52rem;
}

.row--toggle {
  min-height: 42px;
  padding: 0.55rem 0.62rem;
  border: 1px solid #dbe2ee;
  border-radius: 11px;
  background: #fff;
  font-weight: 600;
  color: #334155;
}

.row--toggle:hover {
  border-color: rgba(99, 102, 241, 0.4);
  background: rgba(99, 102, 241, 0.05);
}

.preview-card-wrap {
  width: 100%;
  min-height: 420px;
  display: grid;
  place-items: start center;
  padding: 0.5rem 0.35rem 1rem;
  box-sizing: border-box;
}

/* Live preview only — wider business card; editor panel / grid unchanged */
.preview-card-wrap > *,
.preview-card-wrap .tpl-preview-wrap,
.preview-card-wrap .bc-card,
.preview-card-wrap .pub-card,
.preview-card-wrap .bc-t3-profile-card,
.preview-card-wrap .bc-t4-profile-card {
  width: 100%;
  max-width: min(100%, var(--step3-preview-card-max));
  margin-inline: auto;
}

.step3-actions {
  margin-top: 0.95rem;
  display: flex;
  justify-content: space-between;
  gap: 0.7rem;
}

.btn {
  border: 1px solid #d6deea;
  background: #fff;
  border-radius: var(--radius-md);
  min-height: 40px;
  padding: 0.62rem 0.96rem;
  font-weight: 600;
  text-decoration: none;
  color: #0f172a;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.btn:hover {
  border-color: #c4cfdf;
  box-shadow: 0 7px 16px rgba(15, 23, 42, 0.08);
  transform: translateY(-1px);
}

.btn-primary {
  background: linear-gradient(135deg, #4f46e5, #6366f1);
  color: #fff;
  border-color: transparent;
}

.btn-primary:hover {
  box-shadow: 0 10px 20px rgba(79, 70, 229, 0.24);
}

.helper { color: var(--muted); font-size: 0.76rem; margin: 0.25rem 0 0; }

.editor-panel .section-title + .two-col,
.editor-panel .section-title + div,
.editor-panel #contact-extra-mount,
.editor-panel #social-extra-mount {
  margin-top: 0.2rem;
}

.row input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: var(--accent);
}

@media (max-width: 1180px) {
  .step3-grid {
    grid-template-columns: minmax(0, min(460px, 44%)) minmax(420px, 1fr);
  }
}

@media (max-width: 1080px) {
  .step3-grid { grid-template-columns: 1fr; }
  .preview-panel { position: static; }
  .editor-panel { max-height: none; }
  .preview-card-wrap > *,
  .preview-card-wrap .tpl-preview-wrap,
  .preview-card-wrap .bc-card,
  .preview-card-wrap .pub-card,
  .preview-card-wrap .bc-t3-profile-card,
  .preview-card-wrap .bc-t4-profile-card {
    max-width: min(100%, var(--step3-preview-card-max));
  }
}

@media (max-width: 760px) {
  .builder-flow-hero {
    padding-right: 1.05rem;
  }
  .builder-top-right {
    position: static;
    margin-top: 0.9rem;
    align-items: stretch;
    gap: 0.55rem;
  }
  .builder-flow-icon-nav {
    justify-content: center;
  }
  .builder-top-actions {
    position: static;
    margin-top: 0;
    align-items: stretch;
  }
  .builder-top-actions__buttons {
    flex-wrap: wrap;
    justify-content: stretch;
    gap: 0.55rem;
  }
  .builder-top-actions__buttons .btn {
    flex: 1 1 auto;
    min-width: min(100%, 9.5rem);
    white-space: normal;
    text-align: center;
  }
  .two-col {
    grid-template-columns: 1fr;
  }
  .tri-suite-optional-panel {
    padding: 0.75rem;
  }
  .row--toggle {
    min-height: 40px;
    padding: 0.5rem 0.58rem;
  }
  .step3-wrap {
    width: min(1320px, calc(100% - 18px));
  }
}

/* Step 3 — phone + country picker (aligned with create.html contact row) */
.editor-panel .phone-row {
  display: grid;
  grid-template-columns: minmax(132px, 196px) 1fr;
  gap: 0.5rem;
  align-items: stretch;
}
.editor-panel .country-picker {
  position: relative;
}
.editor-panel .country-trigger {
  min-height: var(--field-h);
  width: 100%;
  border-radius: var(--radius-md);
  border: 1px solid #dbe2ee;
  background: #fff;
  padding: 0.58rem 0.68rem;
  font-size: 0.86rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.36rem;
  cursor: pointer;
  font: inherit;
  color: #0f172a;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease;
}
.editor-panel .country-trigger:hover {
  border-color: rgba(99, 102, 241, 0.45);
  background: #fafaff;
}
.editor-panel .country-trigger:focus-visible {
  outline: none;
  border-color: rgba(79, 70, 229, 0.52);
  box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.13);
}
.editor-panel .country-trigger-main {
  display: inline-flex;
  align-items: center;
  gap: 0.36rem;
  min-width: 0;
  font-weight: 600;
}
.editor-panel .flag-img {
  width: 18px;
  height: 13px;
  border-radius: 2px;
  object-fit: cover;
  border: 1px solid rgba(148, 163, 184, 0.32);
}
.editor-panel .country-trigger-arrow {
  color: #64748b;
  font-size: 0.72rem;
  line-height: 1;
  transform: translateY(1px);
}
.editor-panel .country-sheet {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  z-index: 25;
  border: 1px solid rgba(148, 163, 184, 0.35);
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 14px 28px rgba(15, 23, 42, 0.14);
  padding: 0.45rem;
  display: none;
}
.editor-panel .country-sheet.open {
  display: block;
}
.editor-panel .country-search {
  min-height: 40px;
  border-radius: 10px;
  border: 1px solid rgba(148, 163, 184, 0.4);
  width: 100%;
  padding: 0.5rem 0.6rem;
  margin-bottom: 0.4rem;
  font-size: 0.84rem;
}
.editor-panel .country-list {
  max-height: 210px;
  overflow: auto;
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.18rem;
  scroll-behavior: smooth;
  scrollbar-width: thin;
  scrollbar-color: rgba(99, 102, 241, 0.45) rgba(226, 232, 240, 0.55);
}
.editor-panel .country-list::-webkit-scrollbar {
  width: 8px;
}
.editor-panel .country-list::-webkit-scrollbar-track {
  background: rgba(226, 232, 240, 0.55);
  border-radius: 999px;
}
.editor-panel .country-list::-webkit-scrollbar-thumb {
  background: rgba(99, 102, 241, 0.45);
  border-radius: 999px;
}
.editor-panel .country-item {
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 0.34rem 0.42rem;
  display: flex;
  gap: 0.42rem;
  align-items: center;
  cursor: pointer;
  font-size: 0.82rem;
  line-height: 1.35;
  transition: background 0.18s ease, border-color 0.18s ease;
}
.editor-panel .country-item:hover {
  background: rgba(79, 70, 229, 0.08);
  border-color: rgba(79, 70, 229, 0.18);
}
.editor-panel .country-item.active {
  background: rgba(79, 70, 229, 0.12);
  border-color: rgba(79, 70, 229, 0.32);
}
.editor-panel .country-item-main {
  font-weight: 600;
  color: #0f172a;
}
.editor-panel .country-item-meta {
  color: #64748b;
  font-size: 0.74rem;
}
.editor-panel .phone-row #step3-phoneNumber {
  min-height: var(--field-h);
}
@media (max-width: 640px) {
  .editor-panel .phone-row {
    grid-template-columns: 1fr;
  }
}

/* —— Step 3 “Mitch” builder: dark editor canvas + collapsed advanced media —— */
body.step3-page .step3-panel.editor-panel {
  background: #0c0c0f;
  border-color: rgba(248, 250, 252, 0.12);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.42);
  color: #e2e8f0;
}

body.step3-page .editor-panel .panel-title {
  color: #94a3b8;
}

body.step3-page .editor-panel .section-title,
body.step3-page .editor-panel .section-subtitle,
body.step3-page .editor-panel .optional-feature-fields__heading {
  color: #f8fafc;
}

body.step3-page .editor-panel .helper,
body.step3-page .editor-panel .payment-panel__hint,
body.step3-page .editor-panel .gallery-grid-picker__intro,
body.step3-page .editor-panel .builder-flow-hint {
  color: #94a3b8 !important;
}

body.step3-page .editor-panel label:not(.file-dropzone__box) {
  color: #cbd5e1;
}

body.step3-page .editor-panel input:not([type="checkbox"]):not([type="radio"]):not([type="color"]):not([type="range"]):not([type="file"]):not([type="hidden"]),
body.step3-page .editor-panel select,
body.step3-page .editor-panel textarea {
  background: #16161c !important;
  border-color: rgba(248, 250, 252, 0.14) !important;
  color: #f8fafc !important;
}

body.step3-page .editor-panel input:focus,
body.step3-page .editor-panel textarea:focus,
body.step3-page .editor-panel select:focus {
  background: #1c1c24 !important;
  border-color: rgba(129, 140, 248, 0.65) !important;
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.22) !important;
}

body.step3-page .editor-panel input[type="color"] {
  padding: 0.2rem;
  background: #16161c !important;
  border-radius: 10px;
}

body.step3-page .editor-panel .template-picker-modern {
  background:
    linear-gradient(180deg, rgba(99, 102, 241, 0.18), rgba(22, 22, 28, 0.98) 42%),
    #121218;
  border-color: rgba(129, 140, 248, 0.35);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.35);
}

body.step3-page .editor-panel .template-picker-modern label {
  color: #cbd5e1;
}

body.step3-page .editor-panel .template-picker-modern select {
  background: #16161c !important;
  border-color: rgba(248, 250, 252, 0.16) !important;
  color: #f8fafc !important;
}

body.step3-page .editor-panel .personal-info-card,
body.step3-page .editor-panel .personal-style-panel,
body.step3-page .editor-panel .contact-advanced-style-panel,
body.step3-page .editor-panel .social-style-panel,
body.step3-page .editor-panel .tri-suite-optional-panel {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(248, 250, 252, 0.1);
}

body.step3-page .editor-panel .personal-style-panel__title {
  color: #e2e8f0;
}

body.step3-page .editor-panel .file-dropzone__box,
body.step3-page .editor-panel .gallery-grid-picker__trigger {
  background: #1e1e26 !important;
  border-color: rgba(248, 250, 252, 0.12) !important;
  color: #e2e8f0 !important;
}

body.step3-page .editor-panel .gallery-grid-picker__value {
  color: #f8fafc;
}

body.step3-page .editor-panel .btn-add-more {
  background: rgba(99, 102, 241, 0.2);
  border-color: rgba(129, 140, 248, 0.45);
  color: #e0e7ff;
}

body.step3-page .editor-panel .country-trigger {
  background: #16161c !important;
  border-color: rgba(248, 250, 252, 0.14) !important;
  color: #f8fafc !important;
}

body.step3-page .editor-panel .country-trigger-main {
  color: #f8fafc;
}

body.step3-page .editor-panel .country-sheet {
  background: #14141a !important;
  border-color: rgba(248, 250, 252, 0.12) !important;
}

body.step3-page .editor-panel .country-search {
  background: #16161c !important;
  border-color: rgba(248, 250, 252, 0.14) !important;
  color: #f8fafc !important;
}

body.step3-page .editor-panel .country-item-main {
  color: #f1f5f9;
}

body.step3-page .editor-panel .country-item-meta {
  color: #94a3b8;
}

body.step3-page .editor-panel .country-item:hover {
  background: rgba(99, 102, 241, 0.12);
  border-color: rgba(129, 140, 248, 0.25);
}

body.step3-page .editor-panel .country-item.active {
  background: rgba(99, 102, 241, 0.2);
  border-color: rgba(129, 140, 248, 0.4);
}

body.step3-page .editor-panel .builder-section-card {
  background: linear-gradient(180deg, #14141a 0%, #101014 100%);
  border-color: rgba(248, 250, 252, 0.1);
}

body.step3-page .editor-panel .builder-section-card .section-title {
  color: #f8fafc;
}

body.step3-page .editor-panel .builder-section-card .helper {
  color: #94a3b8 !important;
}

body.step3-page .editor-panel .row.row--toggle {
  color: #e2e8f0;
}

.step3-advanced-media__body {
  padding: 0.35rem 0 0.75rem;
}

body.step3-page .editor-panel .gallery-grid-picker__popover {
  background: #14141a;
  border-color: rgba(248, 250, 252, 0.12);
  color: #e2e8f0;
}

body.step3-page .editor-panel .gallery-grid-picker__preset {
  background: rgba(99, 102, 241, 0.15);
  border-color: rgba(129, 140, 248, 0.35);
  color: #e0e7ff;
}

body.step3-page .editor-panel .template-thumb-btn__caption {
  color: #94a3b8;
}

body.step3-page .editor-panel .template-thumb-btn[aria-pressed="true"] .template-thumb-btn__caption {
  color: #e0e7ff;
}

body.step3-page .editor-panel .field-picker {
  background: #14141a;
  border-color: rgba(248, 250, 252, 0.12);
}

body.step3-page .editor-panel .field-picker-item {
  background: #1e1e26;
  color: #e2e8f0;
}

body.step3-page .editor-panel .field-picker-item:hover {
  background: rgba(99, 102, 241, 0.22);
}

body.step3-page .editor-panel .contact-extra-card {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(248, 250, 252, 0.12);
}

body.step3-page .editor-panel .step3-link-grid .label-ico {
  color: #f8fafc;
}

body.step3-page .editor-panel .section-collapse-btn {
  background: #1e1e26;
  border-color: rgba(129, 140, 248, 0.45);
  color: #c7d2fe;
}

body.step3-page .editor-panel .section-collapse-btn:hover {
  background: rgba(99, 102, 241, 0.2);
}

/* Links / collapsible sections still used light “cards” under the dark editor — labels looked washed out on white */
body.step3-page .editor-panel .editor-collapsible-block {
  background: linear-gradient(180deg, #16161c 0%, #121218 100%);
  border-color: rgba(248, 250, 252, 0.12);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.38);
}

body.step3-page .editor-panel .advanced-style-panel,
body.step3-page .editor-panel .social-style-panel {
  background: linear-gradient(180deg, rgba(22, 22, 28, 0.96) 0%, rgba(14, 14, 18, 0.98) 100%);
  border-color: rgba(248, 250, 252, 0.1);
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.35);
}

body.step3-page .editor-panel .advanced-style-panel > div,
body.step3-page .editor-panel .social-style-panel > div {
  background: #16161c !important;
  border-color: rgba(248, 250, 252, 0.12) !important;
}

body.step3-page .editor-panel .advanced-style-panel .personal-style-panel__title,
body.step3-page .editor-panel .social-style-panel .personal-style-panel__title {
  color: #c7d2fe;
}

body.step3-page .editor-panel .personal-info-card__head {
  background: linear-gradient(180deg, #1a1d26 0%, #16161c 100%);
  border-bottom-color: rgba(248, 250, 252, 0.1);
}

body.step3-page .editor-panel .personal-info-card__arrow {
  background: #1e1e26;
  border-color: rgba(248, 250, 252, 0.14);
  color: #c7d2fe;
}

body.step3-page .editor-panel .payment-panel {
  background: linear-gradient(180deg, #16161c 0%, #14141a 100%);
  border-color: rgba(248, 250, 252, 0.1);
}

body.step3-page .editor-panel .payment-field,
body.step3-page .editor-panel .payment-bank-field {
  background: #1a1a22 !important;
  border-color: rgba(248, 250, 252, 0.12) !important;
}

body.step3-page .editor-panel .payment-panel__hint {
  color: #94a3b8 !important;
}

body.step3-page .editor-panel .row--toggle {
  background: #16161c !important;
  border-color: rgba(248, 250, 252, 0.12) !important;
  color: #e2e8f0 !important;
}

body.step3-page .editor-panel .row--toggle:hover {
  background: rgba(99, 102, 241, 0.14) !important;
  border-color: rgba(129, 140, 248, 0.35) !important;
}

body.step3-page .editor-panel .optional-feature-fields__heading,
body.step3-page .editor-panel .optional-feature-fields .optional-feature-fields__heading.section-title {
  color: #94a3b8 !important;
}

body.step3-page .editor-panel .step3-rgb-detail {
  border-color: rgba(248, 250, 252, 0.12);
  background: #14141a;
}

body.step3-page .editor-panel .step3-rgb-detail__summary {
  color: #cbd5e1;
}

body.step3-page .editor-panel .step3-rgb-row,
body.step3-page .editor-panel .step3-rgb-group__label {
  color: #94a3b8;
}

body.step3-page .editor-panel .section-subtitle {
  color: #94a3b8;
}

body.step3-page .editor-panel .template-picker-modern__label {
  color: #94a3b8;
}

body.step3-page .editor-panel .tri-suite-contact-form-panel {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(248, 250, 252, 0.12);
}

body.step3-page .editor-panel .builder-sections-nav {
  border-color: rgba(248, 250, 252, 0.12);
  background: linear-gradient(180deg, rgba(22, 22, 28, 0.95) 0%, rgba(16, 16, 20, 0.92) 100%);
}

body.step3-page .editor-panel .builder-sections-nav button {
  background: #1e1e26;
  border-color: rgba(248, 250, 252, 0.14);
  color: #e2e8f0;
}

body.step3-page .editor-panel .builder-sections-nav button:hover {
  color: #f8fafc;
  border-color: rgba(129, 140, 248, 0.45);
}

.tri-suite-contact-form-panel {
  margin: 0.75rem 0 1rem;
  padding: 0.75rem 0.85rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--line);
  background: rgba(79, 70, 229, 0.04);
}

.step3-rgb-detail {
  margin: 0.5rem 0 1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--card);
  padding: 0.15rem 0.55rem;
}

.step3-rgb-detail__summary {
  cursor: pointer;
  font-weight: 600;
  font-size: 0.86rem;
  color: var(--muted);
}

.step3-rgb-detail__body {
  display: grid;
  gap: 0.75rem;
  padding: 0.5rem 0 0.65rem;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
}

.step3-rgb-group__label {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted);
  margin-bottom: 0.28rem;
}

.step3-rgb-row {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.8rem;
  margin: 0.18rem 0;
}

.step3-rgb-row input[type="range"] {
  flex: 1;
  min-width: 0;
}

.step3-bottom-preview {
  margin-top: 1.25rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
}

.step3-bottom-preview__title {
  margin-bottom: 0.35rem;
}

.preview-card-wrap--bottom {
  transform: scale(0.88);
  transform-origin: top center;
  min-height: 320px;
}

body.step3-page .editor-panel .phone-row .country-trigger {
  background: #0f172a;
  color: #e2e8f0;
  border-color: rgba(148, 163, 184, 0.35);
}

body.step3-page .editor-panel .phone-row .country-trigger:hover {
  background: #111c33;
}

body.step3-page .editor-panel .phone-row .country-trigger-arrow {
  color: #94a3b8;
}

body.step3-page .editor-panel .phone-row #step3-phoneNumber {
  background: #0f172a;
  color: #e2e8f0;
  border-color: rgba(148, 163, 184, 0.35);
}

body.step3-page .editor-panel .phone-row #step3-phoneNumber::placeholder {
  color: #64748b;
}
