@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700&display=swap');

:root {
  --qr-bg: #f3f6fb;
  --qr-card-border: #e3ecf2;
  --qr-card-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
  --qr-text: #2a354f;
  --qr-muted: #6c7a8c;
  --qr-green: #12b886;
  --qr-green-dark: #0fa26f;
  --qr-blue: #6ea8fe;
  --qr-accent-border: #5cd2a7;
  --qr-accent-soft: #eaf9f2;
  --qr-accent-text: #0f7d5b;
  --qr-accent-rgb: 18, 184, 134;
}

body {
  background: var(--qr-bg);
  font-family: 'Manrope', sans-serif;
}

body.site-home-page {
  --qr-bg: #f3f8f6;
  --qr-card-border: #d8e5ef;
  --qr-card-shadow: 0 14px 32px rgba(20, 34, 56, 0.08);
  --qr-text: #1f3348;
  --qr-muted: #678197;
  --qr-green: #4fb88a;
  --qr-green-dark: #2f8f66;
}

.site-home-main {
  padding-top: 5.8rem;
}

.site-home-builder-section {
  padding-top: 2rem;
  padding-bottom: 2.8rem;
}

.site-home-head {
  margin-bottom: 0.95rem;
}

.site-home-title {
  margin: 0 0 0.35rem;
  font-size: clamp(1.55rem, 3vw, 2.05rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #1a3147;
}

.site-home-subtitle {
  margin: 0;
  font-size: 0.98rem;
  color: #5f778d;
}

.site-home-shell {
  position: relative;
  border: 1px solid #d6e4ef;
  border-radius: 22px;
  background: linear-gradient(180deg, #f8fcfb 0%, #f4f8fd 100%);
  box-shadow: 0 18px 40px rgba(20, 34, 56, 0.08);
  overflow: hidden;
  padding: clamp(12px, 1.5vw, 20px);
}

.site-home-shell::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(480px 220px at 4% 0%, rgba(79, 184, 138, 0.13), transparent 70%),
    radial-gradient(560px 240px at 100% 8%, rgba(30, 93, 176, 0.08), transparent 72%);
}

.site-home-shell > * {
  position: relative;
  z-index: 1;
}

body.site-home-page .qr-home-page {
  background: transparent;
  min-height: 0;
  padding: 0;
  position: relative;
}

body.site-home-page .qr-builder-container {
  max-width: 100%;
  padding-left: 0;
  padding-right: 0;
}

body.site-home-page .qr-home-grid {
  gap: 18px;
  align-items: start;
}

body.site-home-page .qr-card {
  border-color: #d6e4ef;
  border-radius: 18px;
  box-shadow: 0 10px 22px rgba(20, 34, 56, 0.07);
  background: #ffffff;
}

body.site-home-page .qr-left-card {
  background: linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
}

body.site-home-page .qr-type-selector {
  border-radius: 16px;
  border-color: #dbe8f2;
  background: #f8fbff;
}

body.site-home-page .qr-type-button {
  border-color: #d2deeb;
  background: #ffffff;
}

body.site-home-page .qr-type-button.active {
  border-color: #87cbae;
  background: #edf8f3;
  box-shadow: inset 0 0 0 1px #87cbae;
}

body.site-home-page .qr-step {
  border-top-color: #e3ecf5;
}

body.site-home-page .qr-step-badge {
  background: #2f3f5e;
}

body.site-home-page .qr-preview-box {
  border-color: #dbe7f1;
  background: #f7fafc;
}

body.site-home-page .qr-download-btn {
  background: linear-gradient(135deg, #4fb88a 0%, #2f8f66 100%);
  border-color: #3fa77c;
}

body.site-home-page .qr-download-btn:hover {
  background: linear-gradient(135deg, #43ad81 0%, #2a7f5a 100%);
  border-color: #2a7f5a;
}

body.site-home-page .qr-download-secondary {
  border-color: #77c2a3;
  color: #1f6d4c;
}

body.site-home-page .qr-download-secondary:hover {
  border-color: #61b791;
  color: #145339;
  background: #eef8f2;
}

.qr-home-page {
  background: var(--qr-bg);
  min-height: 100vh;
  padding: 110px 0 80px;
}

.qr-builder-container {
  max-width: 1200px;
}

.qr-home-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 24px;
}

.qr-card {
  background: #ffffff;
  border: 1px solid var(--qr-card-border);
  border-radius: 14px;
  box-shadow: var(--qr-card-shadow);
  padding: 22px;
}

.qr-left-card {
  display: flex;
  flex-direction: column;
  gap: 20px;
  min-width: 0;
}

.qr-preview-card {
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-width: 0;
}

.qr-type-selector {
  background: #ffffff;
  border: 1px solid var(--qr-card-border);
  border-radius: 14px;
  padding: 14px;
}

.qr-type-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(110px, 1fr));
  gap: 10px;
}

.qr-type-button {
  border: 1px solid #d7e2ec;
  background: #ffffff;
  border-radius: 12px;
  padding: 8px 10px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.84rem;
  color: var(--qr-text);
  transition: border-color 0.2s ease, background 0.2s ease;
}

.qr-type-button i {
  font-size: 0.9rem;
  color: var(--qr-text);
}

.qr-type-button:hover {
  border-color: #9fb3c8;
}

.qr-type-button.active {
  border-color: var(--qr-accent-border);
  background: var(--qr-accent-soft);
  box-shadow: inset 0 0 0 1px var(--qr-accent-border);
}

.qr-pro-pill {
  margin-left: auto;
  background: #f4b452;
  color: #ffffff;
  font-size: 0.6rem;
  border-radius: 999px;
  padding: 1px 6px;
  font-weight: 600;
}

.qr-step {
  border-top: 1px solid #edf2f7;
  padding-top: 16px;
}

.qr-step-heading {
  display: flex;
  align-items: center;
  font-size: 1rem;
  font-weight: 600;
  color: var(--qr-text);
  margin-bottom: 12px;
}

.wizard-section-heading {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 16px;
}

.wizard-section-heading .qr-step-badge {
  font-weight: 700;
}

.qr-step-badge {
  background: #2a354f;
  color: #ffffff;
  font-size: 1rem;
  font-weight: 600;
  padding: 2px 7px;
  border-radius: 5px;
  margin-right: 7px;
}

.qr-form-block {
  margin-bottom: 10px;
}

.qr-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.qr-form-grid .qr-form-span {
  grid-column: span 2;
}

.qr-input,
.qr-form-block .form-control,
.qr-form-block .form-select {
  border-radius: 10px;
  border-color: #e1e7ef;
  background: #f8fbff;
  font-size: 0.9rem;
}

.qr-input:focus {
  border-color: var(--qr-accent-border);
  box-shadow: 0 0 0 0.2rem rgba(var(--qr-accent-rgb), 0.2);
}

.wizard-mode .qr-input::placeholder,
.wizard-mode .qr-form-block .form-control::placeholder {
  color: #b9c6d9;
  opacity: 1;
}

.qr-input.qr-input-invalid,
.qr-form-block .form-control.qr-input-invalid {
  border-color: #dc2626;
  background: #fff5f5;
}

.qr-input.qr-input-invalid:focus,
.qr-form-block .form-control.qr-input-invalid:focus {
  border-color: #dc2626;
  box-shadow: 0 0 0 0.2rem rgba(220, 38, 38, 0.15);
}

.wizard-input-hint {
  margin-top: 6px;
  font-size: 0.76rem;
  line-height: 1.3;
}

.wizard-input-hint-valid {
  color: var(--qr-accent-text);
}

.wizard-input-hint-neutral {
  color: #64748b;
}

.wizard-input-hint-error {
  color: #b42318;
}

.qr-checkbox {
  display: flex;
  align-items: center;
}

.qr-dynamic-toggle {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 10px;
}

.qr-hint {
  font-size: 0.8rem;
  color: var(--qr-muted);
}

.qr-error {
  margin-top: 8px;
  font-size: 0.85rem;
  color: #d9480f;
}

.qr-tabs {
  display: flex;
  gap: 18px;
  border-bottom: 1px solid #e1e7ef;
  margin-bottom: 16px;
}

.qr-tab {
  border: none;
  background: none;
  padding: 8px 0;
  font-weight: 600;
  color: #7b8796;
  cursor: pointer;
  border-bottom: 2px solid transparent;
}

.qr-tab.active {
  color: var(--qr-green);
  border-color: var(--qr-green);
}

.qr-scroll-row {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  overflow-y: hidden;
  max-width: 100%;
  width: 100%;
  flex-wrap: nowrap;
  scrollbar-width: thin;
  scrollbar-color: rgba(0, 0, 0, 0.25) transparent;
  padding-bottom: 8px;
  margin-bottom: 12px;
}

.qr-scroll-row-frame,
.qr-scroll-row-logo {
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  scrollbar-gutter: stable both-edges;
}

.qr-scroll-row-frame .qr-tile,
.qr-scroll-row-logo .qr-tile {
  flex: 0 0 64px;
}

.qr-scroll-row::-webkit-scrollbar {
  height: 6px;
}

.qr-scroll-row::-webkit-scrollbar-thumb {
  background: rgba(0, 0, 0, 0.15);
  border-radius: 999px;
}

.qr-scroll-row::-webkit-scrollbar-track {
  background: transparent;
}

.qr-tile {
  width: 64px;
  height: 64px;
  border: 2px solid #e1e7ef;
  border-radius: 10px;
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: border-color 0.2s ease;
}

.qr-tile:hover {
  border-color: #94a3b8;
}

.qr-tile.active {
  border-color: var(--qr-blue);
  box-shadow: 0 0 0 2px rgba(110, 168, 254, 0.25);
}

.qr-tile-svg svg {
  width: 40px;
  height: 40px;
}

.qr-section-label {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--qr-text);
  margin: 10px 0;
}

.qr-color-input {
  display: flex;
  align-items: center;
  gap: 10px;
}

.qr-color-picker {
  width: 44px;
  height: 38px;
  padding: 0;
  border-radius: 8px;
  border: 1px solid #e1e7ef;
  background: #ffffff;
}

.qr-preview-box {
  border: 0.1rem solid rgb(227, 236, 242);
  padding: 2px;
  border-radius: 14px;
  background: #f7f9fc;
}

.qr-preview-inner {
  background: #ffffff;
  border-radius: 12px;
  padding: 16px;
  min-height: 360px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.qr-preview-svg svg {
  width: 100%;
  height: auto;
  max-width: 340px;
  display: block;
}

.qr-preview-placeholder {
  color: var(--qr-muted);
  font-size: 0.9rem;
}

.qr-download-btn {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  background: var(--qr-green);
  border-color: var(--qr-green);
  border-radius: 10px;
  padding: 12px;
}

.qr-download-btn:hover {
  background: var(--qr-green-dark);
  border-color: var(--qr-green-dark);
}

.qr-download-secondary {
  width: 100%;
  border-radius: 10px;
  font-weight: 600;
}

.qr-save-btn {
  margin-top: 5px;
}

.qr-download-dropdown {
  margin-top: 5px;
}

.qr-saved-designs-btn {
  margin-top: 8px;
  width: auto;
  align-self: flex-end;
  border-radius: 10px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 8px 12px;
  font-size: 0.85rem;
}

.qr-download-dropdown .qr-download-btn {
  justify-content: space-between;
}

.qr-download-dropdown .dropdown-menu {
  border-radius: 10px;
  border: 1px solid #dbe4ef;
  padding: 6px 0;
}

.qr-download-dropdown .dropdown-item {
  font-weight: 600;
}

.qr-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1050;
}

.qr-modal {
  background: #ffffff;
  border-radius: 16px;
  padding: 24px;
  width: min(420px, 90%);
  text-align: center;
  box-shadow: 0 20px 50px rgba(15, 23, 42, 0.3);
}

.qr-modal h5 {
  color: var(--qr-text);
  margin-bottom: 12px;
}

.qr-modal p {
  color: var(--qr-muted);
  margin-bottom: 20px;
}

.saved-designs-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1060;
  padding: 16px;
}

.saved-designs-modal {
  width: min(760px, 100%);
  max-height: min(82vh, 780px);
  background: #ffffff;
  border-radius: 16px;
  box-shadow: 0 20px 50px rgba(15, 23, 42, 0.25);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.saved-designs-modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  border-bottom: 1px solid #e2e8f0;
}

.saved-designs-modal-head h5 {
  margin: 0;
  color: #334155;
  font-weight: 700;
  font-size: 1.15rem;
}

.saved-designs-modal-close {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  border: 1px solid #d8e0ea;
  background: #ffffff;
  color: #64748b;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.saved-designs-modal-close:hover {
  border-color: #c0ccd9;
}

.saved-designs-modal-body {
  padding: 16px;
  overflow: auto;
}

.saved-designs-save-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  margin-bottom: 10px;
}

.saved-designs-save-row .btn {
  min-width: 220px;
  border-radius: 10px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.saved-designs-message {
  border-radius: 10px;
  padding: 8px 10px;
  font-size: 0.84rem;
  margin-bottom: 10px;
}

.saved-designs-message-success {
  border: 1px solid #b7ebcf;
  background: #ecfdf3;
  color: #0f7a55;
}

.saved-designs-message-error {
  border: 1px solid #fecaca;
  background: #fff5f5;
  color: #b42318;
}

.saved-designs-empty {
  border: 1px dashed #dbe4ef;
  border-radius: 12px;
  background: #f8fbff;
  color: #64748b;
  text-align: center;
  padding: 14px;
  font-size: 0.86rem;
}

.saved-designs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 10px;
}

.saved-designs-item {
  border: 1px solid #dbe4ef;
  border-radius: 12px;
  background: #ffffff;
  padding: 10px;
  display: grid;
  gap: 8px;
}

.saved-designs-thumb {
  border: 1px solid #dbe4ef;
  border-radius: 10px;
  background: #f8fafc;
  height: 102px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.saved-designs-thumb img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.saved-designs-thumb-empty {
  color: #94a3b8;
  font-size: 0.74rem;
  font-weight: 700;
}

.saved-designs-item-title {
  font-size: 0.84rem;
  font-weight: 700;
  color: #334155;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.saved-designs-item-date {
  color: #94a3b8;
  font-size: 0.72rem;
  min-height: 1.1em;
}

.qr-hidden-render {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
  pointer-events: none;
  opacity: 0;
}

@media (max-width: 1200px) {
  .qr-type-grid {
    grid-template-columns: repeat(4, minmax(110px, 1fr));
  }
}

@media (max-width: 992px) {
  .site-home-builder-section {
    padding-top: 1.35rem;
    padding-bottom: 2.2rem;
  }

  .site-home-shell {
    border-radius: 18px;
    padding: 12px;
  }

  .qr-home-grid {
    grid-template-columns: 1fr;
  }

  .qr-type-grid {
    grid-template-columns: repeat(3, minmax(110px, 1fr));
  }

  .qr-preview-card {
    margin-top: 10px;
  }
}

@media (max-width: 640px) {
  .site-home-head {
    margin-bottom: 0.8rem;
  }

  .site-home-title {
    font-size: 1.45rem;
  }

  .site-home-subtitle {
    font-size: 0.92rem;
  }

  .site-home-shell {
    border-radius: 14px;
    padding: 10px;
  }

  .qr-type-grid {
    grid-template-columns: repeat(2, minmax(120px, 1fr));
  }

  .qr-form-grid {
    grid-template-columns: 1fr;
  }

  .qr-form-grid .qr-form-span {
    grid-column: span 1;
  }

  .saved-designs-save-row {
    grid-template-columns: 1fr;
  }

  .saved-designs-save-row .btn {
    min-width: 0;
    width: 100%;
  }
}

.wizard-mode .qr-builder-container {
  max-width: 1250px;
}

.wizard-topbar {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
  align-items: center;
  margin-bottom: 20px;
  gap: 16px 24px;
}

.wizard-actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  align-items: center;
}

.wizard-steps {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  min-width: 0;
}

.wizard-actions .btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
}

.wizard-step {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border: 1px solid #dbe4ef;
  background: #fff;
  border-radius: 999px;
  padding: 6px 14px;
  font-weight: 600;
  color: #46566c;
  cursor: pointer;
}

.wizard-step-circle {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #e2e8f0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
}

.wizard-step.active {
  border-color: var(--qr-accent-border);
  color: var(--qr-accent-text);
}

.wizard-step.active .wizard-step-circle {
  background: var(--qr-green);
  color: #fff;
}

.wizard-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
  gap: 24px;
  align-items: start;
}

.wizard-grid > .qr-card {
  min-width: 0;
}

.wizard-mode .wizard-design-tab-body {
  min-height: 520px;
  min-width: 0;
  overflow-x: hidden;
}

.wizard-mode .qr-preview-inner {
  min-height: 340px;
  height: 340px;
}

.wizard-mode .qr-preview-svg {
  width: 250px;
  height: 250px;
  flex: 0 0 250px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
}

.wizard-mode .qr-preview-svg svg {
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
}

.wizard-mode .wizard-preview .qr-preview-box {
  width: 100%;
}

.wizard-mode .qr-scroll-row-frame,
.wizard-mode .qr-scroll-row-logo {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  overflow-x: auto;
  overflow-y: hidden;
  flex-wrap: nowrap;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
}

.wizard-title {
  font-size: 1.3rem;
  margin-bottom: 16px;
}

.wizard-type-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.wizard-type-card {
  display: flex;
  gap: 12px;
  align-items: center;
  border: 1px solid #dbe4ef;
  border-radius: 14px;
  padding: 12px;
  background: #fff;
  text-align: left;
  transition: all 0.2s ease;
}

.wizard-type-card i {
  font-size: 1.1rem;
  color: #1f3b5b;
}

.wizard-type-card.active {
  border-color: var(--qr-green);
  background: var(--qr-accent-soft);
}

.wizard-type-label {
  font-weight: 700;
}

.wizard-type-desc {
  font-size: 0.85rem;
  color: var(--qr-muted);
}

.wizard-subtitle {
  margin: 0 0 8px;
  font-size: 1.75rem;
}

.wizard-preview-title {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  margin-bottom: 0;
}

.wizard-preview-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.wizard-preview-close {
  display: none;
  border: 1px solid #cbd5e1;
  background: #fff;
  color: #475569;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  align-items: center;
  justify-content: center;
}

.wizard-step-error {
  margin-bottom: 14px;
  border: 1px solid #fecaca;
  background: #ef4444;
  color: #ffffff;
  border-radius: 12px;
  padding: 12px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.wizard-step-error-text {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
}

.wizard-step-error-close {
  border: 0;
  background: transparent;
  color: #ffffff;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.wizard-content-save-row {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid #e2e8f0;
  display: flex;
  justify-content: flex-end;
}

.wizard-content-save-row .btn {
  border-radius: 10px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 180px;
  justify-content: center;
}

.wizard-mobile-bar,
.wizard-mobile-preview-backdrop {
  display: none;
}

.wizard-phone {
  position: relative;
  width: min(100%, 300px);
  aspect-ratio: 200 / 400;
  margin: 0 auto;
  background: transparent;
  border-radius: 0;
  overflow: visible;
}

.wizard-phone-shell {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  pointer-events: none;
  user-select: none;
  z-index: 2;
}

.wizard-phone-screen {
  position: absolute;
  left: 5.411%;
  top: 3.27%;
  width: 89.61%;
  height: 93.25%;
  background: #ffffff;
  border-radius: 0;
  padding: 16px;
  overflow: auto;
  z-index: 1;
}

.wizard-phone-header {
  font-weight: 700;
  margin-bottom: 10px;
}

.wizard-phone-header:empty {
  display: none;
}

.wizard-phone-gallery {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}

.wizard-phone-gallery img {
  width: 100%;
  border-radius: 10px;
  border: 1px solid #e2e8f0;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.wizard-images-preview {
  border: 1px solid #d9e2ec;
  border-radius: 16px;
  overflow: hidden;
  background: #ffffff;
}

.wizard-images-preview-hero {
  padding: 10px 12px;
  text-align: center;
  display: grid;
  gap: 5px;
}

.wizard-images-preview-hero strong {
  font-size: 0.94rem;
  line-height: 1.2;
}

.wizard-images-preview-hero span {
  font-size: 0.68rem;
  line-height: 1.25;
  opacity: 0.95;
}

.wizard-images-preview-link {
  margin: 4px auto 0;
  background: rgba(255, 255, 255, 0.85);
  color: var(--qr-accent-text);
  border-radius: 8px;
  padding: 4px 10px;
  font-size: 0.64rem;
  font-weight: 700;
}

.wizard-images-preview-gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  padding: 10px;
}

.wizard-images-preview-gallery img {
  width: 100%;
  border-radius: 10px;
  border: 1px solid #e2e8f0;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.wizard-images-preview-placeholder {
  border-radius: 10px;
  border: 1px solid #e2e8f0;
  aspect-ratio: 4 / 3;
  background: #edf2f7;
}

.wizard-phone-card {
  background: #fff;
  border-radius: 14px;
  padding: 12px;
  border: 1px solid #e2e8f0;
  display: grid;
  gap: 6px;
}

.wizard-link-card {
  gap: 4px;
  margin-top: 15px;
}

.wizard-link-url {
  font-size: 0.72rem;
  line-height: 1.25;
  color: #334155;
  overflow-wrap: anywhere;
  word-break: break-word;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 2.5em;
}

.wizard-link-url-placeholder {
  color: #b9c6d9;
}

.wizard-link-caption {
  font-size: 0.66rem;
  line-height: 1.2;
  font-weight: 700;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  text-align: center;
}

.wizard-phone-card > img {
  width: 72px;
  height: 72px;
  border-radius: 16px;
  object-fit: cover;
}

.wizard-image-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 8px;
}

.wizard-image-card {
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 6px;
  display: grid;
  gap: 10px;
  align-items: center;
  justify-items: center;
  background: #ffffff;
}

.wizard-image-card img {
  width: 100%;
  border-radius: 10px;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.wizard-image-placeholder {
  width: 100%;
  border-radius: 10px;
  aspect-ratio: 16 / 10;
  background: #edf2f7;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #64748b;
  font-size: 0.85rem;
}

.wizard-image-delete {
  min-width: 90px;
  border-radius: 10px;
  font-weight: 700;
}

.wizard-profile-preview {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 8px;
}

.wizard-profile-preview img {
  width: 72px;
  height: 72px;
  border-radius: 16px;
  object-fit: cover;
}

.wizard-color-row {
  display: flex;
  gap: 8px;
  margin-bottom: 10px;
}

.wizard-color-swatch {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  border: 2px solid transparent;
}

.wizard-color-swatch.active {
  border-color: #0f172a;
}

.wizard-link-row {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  gap: 8px;
  margin-bottom: 10px;
}

.wizard-link-actions {
  display: grid;
  gap: 6px;
}

.wizard-business-hours {
  display: grid;
  gap: 10px;
}

.wizard-business-hour-row {
  display: grid;
  grid-template-columns: 1fr 150px auto 150px;
  gap: 8px;
  align-items: center;
}

.wizard-business-day {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  margin: 0;
  font-weight: 600;
}

.wizard-hour-sep {
  text-align: center;
  color: #64748b;
}

.wizard-business-social-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.wizard-business-social-inputs {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 8px;
  width: 100%;
}

.wizard-link-preview {
  border: 1px solid #9bb7ff;
  border-radius: 10px;
  padding: 6px 10px;
  font-size: 0.85rem;
  text-align: center;
  margin-top: 6px;
}

.wizard-store-badge {
  border: 1px solid #9bb7ff;
  border-radius: 10px;
  padding: 6px 8px;
  margin-top: 6px;
  background: #f7fbff;
  color: #22496f;
  display: grid;
  grid-template-columns: 24px 1fr;
  gap: 8px;
  align-items: center;
}

.wizard-store-badge-ios {
  border-color: #a7bfd8;
}

.wizard-store-badge-icon {
  width: 24px;
  height: 24px;
  border-radius: 7px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #e7effc;
}

.wizard-store-badge-icon svg {
  width: 16px;
  height: 16px;
  display: block;
}

.wizard-store-badge-copy {
  display: grid;
  gap: 2px;
  text-align: left;
  line-height: 1.1;
}

.wizard-store-badge-copy small {
  font-size: 0.56rem;
  letter-spacing: 0.04em;
  opacity: 0.75;
}

.wizard-store-badge-copy strong {
  font-size: 0.82rem;
  line-height: 1.1;
  color: #22496f;
}

.wizard-links-image-placeholder {
  width: 72px;
  height: 72px;
  border-radius: 16px;
  border: 1px dashed #c6d3e6;
  background: #eef3f9;
  color: #6b7f99;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
}

.wizard-username-group {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0;
  border: 1px solid #d9e2ec;
  border-radius: 12px;
  overflow: hidden;
}

.wizard-username-prefix {
  background: #edf2f7;
  color: #64748b;
  padding: 10px 12px;
  display: inline-flex;
  align-items: center;
  font-weight: 700;
}

.wizard-username-group .qr-input {
  border: 0;
  border-radius: 0;
}

.wizard-url-group {
  display: grid;
  grid-template-columns: auto 1fr;
  border: 1px solid #d9e2ec;
  border-radius: 12px;
  overflow: hidden;
}

.wizard-url-prefix {
  background: #edf2f7;
  color: #64748b;
  padding: 10px 12px;
  display: inline-flex;
  align-items: center;
  font-size: 0.85rem;
  font-weight: 700;
}

.wizard-url-group .qr-input {
  border: 0;
  border-radius: 0;
}

.wizard-instagram-preview {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 12px;
  display: grid;
  gap: 10px;
}

.wizard-instagram-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
}

.wizard-instagram-top span {
  border: 1px solid #f9a8d4;
  color: #be185d;
  border-radius: 9px;
  padding: 2px 8px;
  font-size: 0.72rem;
  font-weight: 600;
}

.wizard-instagram-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.wizard-instagram-stats div {
  text-align: center;
  font-size: 0.72rem;
  color: #64748b;
  display: grid;
}

.wizard-instagram-stats strong {
  color: #0f172a;
  font-size: 0.9rem;
}

.wizard-instagram-stats small {
  font-size: 0.68rem;
  text-transform: uppercase;
}

.wizard-instagram-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
}

.wizard-instagram-grid span {
  border-radius: 8px;
  aspect-ratio: 1 / 1;
  background: linear-gradient(135deg, #fbcfe8, #fde68a, #bfdbfe);
}

.wizard-audio-preview {
  width: 100%;
  margin-top: 8px;
}

.wizard-upload-progress {
  margin-top: 8px;
  display: grid;
  gap: 6px;
}

.wizard-upload-progress-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 0.76rem;
  font-weight: 600;
  color: #52647a;
}

.wizard-upload-progress-track {
  height: 8px;
  border-radius: 999px;
  background: #e2e8f0;
  overflow: hidden;
}

.wizard-upload-progress-track > span {
  display: block;
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, #2f8f66, #4fb88a);
  transition: width 0.16s ease;
}

.wizard-audio-skeleton {
  height: 38px;
  border-radius: 999px;
  background: #e2e8f0;
  margin-top: 8px;
}

.wizard-video-card {
  gap: 8px;
}

.wizard-video-preview {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid #e2e8f0;
  background: #111827;
  margin-top: 8px;
}

.wizard-video-preview img {
  width: 100% !important;
  height: auto !important;
  min-height: 150px;
  object-fit: cover;
  display: block;
}

.wizard-video-placeholder {
  min-height: 150px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #cbd5e1;
  font-size: 0.82rem;
  text-align: center;
  padding: 10px;
}

.wizard-video-play {
  width: 52px;
  height: 36px;
  border-radius: 10px;
  background: rgba(239, 68, 68, 0.95);
  color: #fff;
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
}

.wizard-pdf-file-wrap {
  margin-top: 12px;
  border: 1px solid #d9e2ec;
  border-radius: 12px;
  overflow: hidden;
  background: #ffffff;
}

.wizard-pdf-file-preview {
  width: 100%;
  min-height: 220px;
  border: 0;
  display: block;
  background: #111827;
}

.wizard-pdf-file-empty {
  min-height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #64748b;
  font-size: 0.8rem;
  padding: 10px;
  text-align: center;
}

.wizard-pdf-file-actions {
  padding: 10px 12px;
  border-top: 1px solid #e2e8f0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.wizard-pdf-file-actions .qr-hint {
  overflow-wrap: anywhere;
}

.wizard-pdf-preview {
  border: 1px solid #d9e2ec;
  border-radius: 16px;
  overflow: hidden;
  background: #ffffff;
  display: grid;
  grid-template-rows: auto 1fr auto;
}

.wizard-pdf-preview-hero {
  padding: 10px 12px;
  text-align: center;
  display: grid;
  gap: 5px;
}

.wizard-pdf-preview-hero strong {
  font-size: 0.94rem;
  line-height: 1.2;
}

.wizard-pdf-preview-hero span {
  font-size: 0.7rem;
  line-height: 1.3;
  opacity: 0.95;
}

.wizard-pdf-preview-document {
  margin: 10px;
  border: 1px solid #d9e2ec;
  border-radius: 10px;
  overflow: hidden;
  background: #0f172a;
  min-height: 190px;
}

.wizard-pdf-preview-frame {
  width: 100%;
  min-height: 190px;
  border: 0;
  display: block;
}

.wizard-pdf-preview-empty {
  min-height: 190px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #cbd5e1;
  font-size: 0.76rem;
  text-align: center;
  padding: 10px;
}

.wizard-pdf-preview-cta {
  margin: 0 10px 10px;
  border-radius: 999px;
  padding: 7px 10px;
  font-size: 0.72rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.wizard-pdf-direct-message {
  min-height: 100%;
  color: rgba(52, 73, 94, 0.72);
  font-size: 0.84rem;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.wizard-menu-file-wrap {
  margin-top: 12px;
  display: grid;
}

.wizard-menu-file-preview {
  width: 100%;
  min-height: 270px;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  background: #111827;
}

.wizard-menu-preview {
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  overflow: hidden;
  background: #ffffff;
}

.wizard-menu-cover {
  width: 100%;
  display: block;
  height: 78px;
  object-fit: cover;
}

.wizard-menu-cover-placeholder {
  background: #1f2937;
  color: #cbd5e1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.78rem;
  height: 78px;
}

.wizard-menu-info {
  background: #ff0030;
  color: #fff;
  text-align: center;
  padding: 10px 12px;
  display: grid;
  gap: 4px;
}

.wizard-menu-info strong {
  font-size: 0.95rem;
  line-height: 1.2;
}

.wizard-menu-info span {
  font-size: 0.72rem;
  line-height: 1.25;
  opacity: 0.92;
}

.wizard-menu-document {
  margin: 12px;
  border-radius: 10px;
  border: 1px solid #e2e8f0;
  overflow: hidden;
  background: #0f172a;
}

.wizard-menu-document-frame {
  width: 100%;
  min-height: 170px;
  border: 0;
  display: block;
}

.wizard-menu-document-empty {
  min-height: 170px;
  color: #cbd5e1;
  font-size: 0.76rem;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 10px;
}

.wizard-menu-cta {
  margin: 0 12px 12px;
  background: #ff0030;
  color: #fff;
  border-radius: 999px;
  text-align: center;
  padding: 7px 10px;
  font-size: 0.73rem;
  font-weight: 700;
}

.wizard-feedback-preview {
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  overflow: hidden;
  background: #ffffff;
}

.wizard-feedback-header {
  background: #005ad4;
  color: #ffffff;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  padding: 10px 12px;
}

.wizard-feedback-body {
  padding: 12px;
  display: grid;
  gap: 8px;
}

.wizard-feedback-body strong {
  text-align: center;
  font-size: 0.95rem;
  color: #1f2937;
}

.wizard-feedback-stars {
  display: flex;
  justify-content: center;
  gap: 6px;
  font-size: 1.05rem;
  color: #d1d5db;
}

.wizard-feedback-stars .active {
  color: #f59e0b;
}

.wizard-feedback-input,
.wizard-feedback-textarea {
  width: 100%;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 6px 8px;
  font-size: 0.72rem;
  background: #f8fafc;
  color: #94a3b8;
}

.wizard-feedback-textarea {
  resize: none;
}

.wizard-feedback-button {
  border: 0;
  border-radius: 7px;
  background: var(--qr-green);
  color: #ffffff;
  font-size: 0.74rem;
  font-weight: 700;
  padding: 7px 10px;
  width: 88px;
  justify-self: center;
  opacity: 0.95;
}

.wizard-facebook-preview {
  border: 1px solid #d4dced;
  border-radius: 14px;
  background: #ffffff;
  padding: 10px;
  display: grid;
  gap: 7px;
  text-align: center;
}

.wizard-facebook-cover {
  width: 100%;
  max-width: 150px;
  height: 76px;
  border-radius: 8px;
  object-fit: cover;
  border: 1px solid #c9d3e8;
  justify-self: center;
}

.wizard-facebook-cover-placeholder {
  background: linear-gradient(135deg, #4a67ad, #2f5096);
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 1.6rem;
}

.wizard-facebook-cover-placeholder span {
  font-size: 1.1rem;
  font-weight: 700;
}

.wizard-facebook-name {
  font-weight: 700;
  font-size: 0.92rem;
  color: #1f2937;
}

.wizard-facebook-description {
  font-size: 0.68rem;
  color: #64748b;
}

.wizard-facebook-button {
  background: #1d69f2;
  color: #ffffff;
  border-radius: 8px;
  padding: 6px 10px;
  font-size: 0.72rem;
  font-weight: 700;
}

.wizard-facebook-link {
  font-size: 0.66rem;
  color: #1d4ed8;
}

.wizard-facebook-website {
  font-size: 0.66rem;
  color: #3f5c93;
  border-top: 1px solid #e2e8f0;
  padding-top: 6px;
}

.wizard-event-services-list {
  display: grid;
  gap: 8px;
}

.wizard-event-service-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.wizard-event-preview {
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  background: #ffffff;
  padding: 10px;
  display: grid;
  gap: 8px;
}

.wizard-event-cover {
  width: 82px;
  height: 82px;
  border-radius: 14px;
  object-fit: cover;
  border: 1px solid #e2e8f0;
  justify-self: center;
}

.wizard-event-cover-placeholder {
  background: #f8fafc;
  color: #94a3b8;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.74rem;
}

.wizard-event-title {
  text-align: center;
  font-weight: 700;
  font-size: 1rem;
  color: #1f2937;
}

.wizard-event-summary {
  text-align: center;
  font-size: 0.72rem;
  color: #64748b;
}

.wizard-event-section {
  border-top: 1px solid #e2e8f0;
  padding-top: 7px;
  display: grid;
  gap: 4px;
  font-size: 0.68rem;
  color: #334155;
}

.wizard-event-section strong {
  font-size: 0.76rem;
  color: #1f2937;
}

.wizard-event-section span {
  color: #64748b;
}

.wizard-event-services-icons {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  color: #3b4a69;
  font-size: 0.78rem;
}

.wizard-coupon-preview {
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  background: #ffffff;
  overflow: hidden;
}

.wizard-coupon-image {
  width: 100%;
  height: 112px;
  object-fit: cover;
  display: block;
}

.wizard-coupon-image-placeholder {
  background: #e5e7eb;
  color: #6b7280;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.78rem;
}

.wizard-coupon-card {
  padding: 10px;
  display: grid;
  gap: 6px;
}

.wizard-coupon-card strong {
  text-align: center;
  font-size: 0.95rem;
  color: #1f2937;
}

.wizard-coupon-expiry {
  text-align: center;
  font-size: 0.7rem;
  color: #64748b;
}

.wizard-coupon-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 6px;
  align-items: center;
}

.wizard-coupon-button {
  border-radius: 8px;
  background: #1d4ed8;
  color: #ffffff;
  font-size: 0.72rem;
  font-weight: 700;
  text-align: center;
  padding: 6px 8px;
}

.wizard-coupon-offer {
  border-radius: 8px;
  border: 1px solid #bfdbfe;
  color: #1d4ed8;
  font-size: 0.68rem;
  font-weight: 700;
  background: #eff6ff;
  padding: 4px 7px;
}

.wizard-coupon-code {
  border-top: 1px solid #e2e8f0;
  padding-top: 6px;
  font-size: 0.72rem;
  color: #334155;
  text-align: center;
}

.wizard-playlist-platforms {
  display: grid;
  gap: 10px;
}

.wizard-playlist-platform-card {
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 10px;
  display: grid;
  gap: 8px;
  background: #f8fafc;
}

.wizard-playlist-platform-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}

.wizard-playlist-platform-name {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-transform: capitalize;
  font-weight: 700;
  color: #1f2937;
}

.wizard-playlist-platform-actions {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.wizard-playlist-pill-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(44px, 44px));
  gap: 8px;
}

.wizard-playlist-pill {
  border: 1px solid #dbe4ef;
  border-radius: 10px;
  background: #ffffff;
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #1f3b5b;
}

.wizard-playlist-preview {
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  background: #ffffff;
  padding: 10px;
  display: grid;
  gap: 8px;
}

.wizard-playlist-cover {
  width: 100%;
  height: 112px;
  object-fit: cover;
  border-radius: 10px;
  border: 1px solid #e2e8f0;
}

.wizard-playlist-cover-placeholder {
  background: #0f172a;
  color: #cbd5e1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.78rem;
}

.wizard-playlist-title {
  text-align: center;
  font-weight: 700;
  font-size: 1rem;
  color: #1f2937;
}

.wizard-playlist-artist {
  text-align: center;
  color: #64748b;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.wizard-playlist-description {
  text-align: center;
  color: #64748b;
  font-size: 0.7rem;
}

.wizard-playlist-preview-links {
  display: grid;
  gap: 6px;
}

.wizard-playlist-preview-link {
  border: 1px solid #e2e8f0;
  border-radius: 9px;
  padding: 6px 8px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  align-items: center;
  background: #ffffff;
}

.wizard-playlist-preview-main {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  text-transform: capitalize;
  color: #334155;
  font-size: 0.72rem;
}

.wizard-playlist-preview-cta {
  border: 1px solid #bfdbfe;
  color: #1d4ed8;
  border-radius: 8px;
  padding: 3px 7px;
  font-size: 0.66rem;
  font-weight: 700;
}

.wizard-social-row {
  display: grid;
  grid-template-columns: 40px 1fr auto;
  gap: 10px;
  align-items: center;
  margin-bottom: 10px;
}

.wizard-profile-social-panel {
  border: 1px solid #dbe4ef;
  border-radius: 14px;
  padding: 14px;
  background: #ffffff;
}

.wizard-profile-social-row {
  align-items: flex-start;
}

.wizard-profile-social-field {
  width: 100%;
}

.wizard-profile-social-label {
  font-weight: 600;
  color: #334155;
  text-transform: capitalize;
  margin-bottom: 6px;
}

.wizard-social-icon {
  width: 36px;
  height: 36px;
  border-radius: 12px;
  background: #eef2ff;
  color: #1e3a8a;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
}

.wizard-add-social {
  margin-top: 16px;
}

.wizard-add-title {
  font-weight: 700;
  margin-bottom: 4px;
}

.wizard-add-desc {
  font-size: 0.85rem;
  color: var(--qr-muted);
  margin-bottom: 10px;
}

.wizard-social-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 10px;
}

.wizard-social-pill {
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 8px 10px;
  background: #fff;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  text-transform: capitalize;
}

.wizard-social-pill i {
  font-size: 1rem;
}

.wizard-social-pill.active {
  border-color: #38bdf8;
  background: #e0f2fe;
}

.wizard-profile-social-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(44px, 1fr));
  gap: 8px;
}

.wizard-profile-social-pill {
  border: 1px solid #dbe4ef;
  background: #ffffff;
  border-radius: 10px;
  width: 100%;
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #334155;
  font-size: 1.05rem;
}

.wizard-profile-social-pill.active {
  border-color: #93c5fd;
  background: #eff6ff;
  color: #1d4ed8;
}

.wizard-profile-preview-stack {
  display: grid;
  gap: 8px;
}

.wizard-profile-phone-card {
  text-align: center;
}

.wizard-profile-avatar-wrap {
  display: flex;
  justify-content: center;
}

.wizard-profile-avatar {
  width: 66px;
  height: 66px;
  border-radius: 14px;
  object-fit: cover;
  border: 1px solid #d8e2ef;
}

.wizard-profile-avatar-placeholder {
  width: 66px;
  height: 66px;
  border-radius: 14px;
  border: 1px solid #d8e2ef;
  background: #edf2f7;
  color: #64748b;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.wizard-profile-subtitle {
  color: #64748b;
  font-size: 0.72rem;
}

.wizard-profile-contact-list {
  display: grid;
  gap: 6px;
  margin-top: 4px;
}

.wizard-profile-contact-item {
  border: 1px solid #e2e8f0;
  border-radius: 9px;
  padding: 5px 8px;
  display: grid;
  grid-template-columns: 14px 1fr;
  gap: 6px;
  align-items: center;
  text-align: left;
  color: #475569;
  font-size: 0.7rem;
}

.wizard-profile-contact-item i {
  color: #64748b;
  font-size: 0.68rem;
}

.wizard-profile-contact-item span {
  overflow-wrap: anywhere;
}

.wizard-profile-social-preview-card {
  gap: 8px;
}

.wizard-social-preview-list {
  display: grid;
  gap: 8px;
}

.wizard-social-preview-item {
  display: grid;
  grid-template-columns: 20px 1fr auto;
  gap: 8px;
  align-items: center;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 6px 10px;
  font-size: 0.8rem;
  text-transform: capitalize;
}

.wizard-social-preview-item i {
  color: #2563eb;
}

.wizard-social-cta {
  border: 1px solid #93c5fd;
  color: #1d4ed8;
  border-radius: 8px;
  padding: 2px 8px;
  font-size: 0.7rem;
}

.wizard-business-preview-fields {
  width: 100%;
  display: grid;
  gap: 6px;
  text-align: left;
  color: #64748b;
  font-size: 0.78rem;
}

.wizard-business-preview-hours {
  width: 100%;
  margin-top: 8px;
  text-align: left;
  font-size: 0.78rem;
  color: #475569;
  display: grid;
  gap: 4px;
}

@media (max-width: 992px) {
  .wizard-mode .wizard-container {
    padding-bottom: 90px;
  }

  .wizard-mode .qr-card {
    width: 100%;
    min-width: 0;
    padding: 16px;
  }

  .wizard-mode .qr-step,
  .wizard-mode .qr-step-heading,
  .wizard-mode .qr-tabs {
    min-width: 0;
  }

  .wizard-mode .qr-scroll-row {
    overflow-x: scroll;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: auto;
    scrollbar-color: rgba(100, 116, 139, 0.75) rgba(226, 232, 240, 0.9);
    padding-bottom: 10px;
  }

  .wizard-mode .qr-scroll-row::-webkit-scrollbar {
    height: 8px;
  }

  .wizard-mode .qr-scroll-row::-webkit-scrollbar-track {
    background: rgba(226, 232, 240, 0.9);
    border-radius: 999px;
  }

  .wizard-mode .qr-scroll-row::-webkit-scrollbar-thumb {
    background: rgba(100, 116, 139, 0.75);
    border-radius: 999px;
  }

  .wizard-mode .qr-tile {
    width: 58px;
    height: 58px;
  }

  .wizard-mode .qr-tile-svg svg {
    width: 36px;
    height: 36px;
  }

  .wizard-mode .qr-frame-fields {
    grid-template-columns: 1fr;
  }

  .wizard-mode .qr-frame-fields .qr-form-span {
    grid-column: span 1;
  }

  .wizard-grid {
    grid-template-columns: 1fr;
  }

  .wizard-mode .wizard-design-tab-body {
    min-height: 0;
  }

  .wizard-mode .qr-preview-inner {
    min-height: 300px;
    height: auto;
  }

  .wizard-mode .qr-preview-svg {
    width: 220px;
    height: 220px;
  }

  .wizard-topbar {
    grid-template-columns: 1fr;
    align-items: flex-start;
  }

  .wizard-actions {
    display: none;
  }

  .wizard-preview-step {
    display: none;
  }

  .wizard-preview-step.wizard-preview-mobile-open {
    display: block;
    position: fixed;
    top: 74px;
    left: 14px;
    right: 14px;
    bottom: 14px;
    margin: 0;
    z-index: 1091;
    overflow: auto;
    border-radius: 14px;
  }

  .wizard-preview-step.wizard-preview-mobile-open .wizard-preview-close {
    display: inline-flex;
  }

  .wizard-preview-step.wizard-preview-mobile-open .wizard-phone {
    width: min(100%, 320px);
  }

  .wizard-mobile-preview-backdrop {
    display: block;
    position: fixed;
    inset: 0;
    border: 0;
    background: rgba(15, 23, 42, 0.45);
    z-index: 1090;
    padding: 0;
    margin: 0;
  }

  .wizard-mobile-bar {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 10px;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1080;
    background: #ffffff;
    border-top: 1px solid #dbe4ef;
    padding: 10px 12px max(10px, env(safe-area-inset-bottom));
  }

  .wizard-mobile-icon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    border: 1px solid #dbe4ef;
    background: #eef2f7;
    color: #526173;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .wizard-mobile-icon:disabled {
    opacity: 0.5;
  }

  .wizard-mobile-preview-btn,
  .wizard-mobile-continue-btn {
    height: 44px;
    border-radius: 10px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
  }

  .wizard-mobile-preview-spacer {
    height: 44px;
  }

  .wizard-business-hour-row {
    grid-template-columns: 1fr;
  }

  .wizard-business-social-inputs {
    grid-template-columns: 1fr;
  }

  .wizard-profile-social-row {
    grid-template-columns: 1fr;
  }

  .wizard-profile-social-row .wizard-link-actions {
    grid-auto-flow: column;
    grid-auto-columns: min-content;
    justify-content: flex-start;
  }
}

@media (max-width: 992px) {
  .wizard-image-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .wizard-image-grid {
    grid-template-columns: 1fr;
  }
}

/* Member-shell polish for builder/edit surfaces */
body.member-shell-page .qr-home-page {
  background: transparent;
  min-height: 0;
  padding: 0;
}

body.member-shell-page .qr-builder-container {
  max-width: 100%;
  padding-left: 0;
  padding-right: 0;
}

body.member-shell-page .qr-home-grid {
  gap: 16px;
  align-items: start;
}

body.member-shell-page .qr-card,
body.member-shell-page .qr-type-selector,
body.member-shell-page .wizard-type-card,
body.member-shell-page .wizard-profile-social-panel,
body.member-shell-page .wizard-playlist-platform-card {
  border-color: #dce6ef;
  box-shadow: 0 8px 18px rgba(22, 38, 64, 0.05);
  border-radius: 16px;
}

body.member-shell-page .qr-card {
  padding: 18px;
}

body.member-shell-page .qr-step {
  border-top-color: #e6edf5;
  padding-top: 14px;
}

body.member-shell-page .qr-step-badge {
  background: linear-gradient(135deg, var(--member-primary) 0%, var(--member-primary-dark) 100%);
  border-radius: 7px;
  font-size: 0.86rem;
  line-height: 1.2;
}

body.member-shell-page .qr-tabs {
  gap: 10px;
  border-bottom-color: #dce6ef;
  margin-bottom: 14px;
}

body.member-shell-page .qr-tab {
  border: 1px solid transparent;
  border-radius: 10px;
  padding: 7px 12px;
  color: #5e7187;
}

body.member-shell-page .qr-tab.active {
  color: #1e6245;
  background: #ecf8f1;
  border-color: #b9decb;
}

body.member-shell-page .qr-type-button.active {
  border-color: #8fd2b4;
  background: #ebf8f1;
  box-shadow: inset 0 0 0 1px #8fd2b4;
}

body.member-shell-page .qr-input,
body.member-shell-page .qr-form-block .form-control,
body.member-shell-page .qr-form-block .form-select {
  background: #f8fbff;
  border-color: #dbe5ef;
}

body.member-shell-page .qr-input:focus,
body.member-shell-page .qr-form-block .form-control:focus,
body.member-shell-page .qr-form-block .form-select:focus {
  border-color: #90d3b5;
  box-shadow: 0 0 0 0.2rem rgba(79, 184, 138, 0.18);
}

body.member-shell-page .qr-preview-box {
  border-color: #dce6ef;
  background: #f2f7f5;
}

body.member-shell-page .qr-download-secondary {
  border-color: #8ccfb2;
  color: #1f6d4c;
  background: #f6fcf9;
}

body.member-shell-page .qr-download-secondary:hover {
  border-color: var(--member-primary);
  color: #ffffff;
  background: var(--member-primary);
}

body.member-shell-page .wizard-step.active {
  border-color: #a6d9c0;
  background: #eef9f3;
}

body.member-shell-page .wizard-step.active .wizard-step-circle {
  background: linear-gradient(135deg, var(--member-primary) 0%, var(--member-primary-dark) 100%);
}

body.member-shell-page .wizard-step.done {
  border-color: #d2e4da;
  background: #f6fcf9;
  color: #315f49;
}

body.member-shell-page .wizard-step.done .wizard-step-circle {
  background: #cae9da;
  color: #1f6d4c;
}

/* Member-shell template standard pass for Create/Edit builder pages */
body.member-shell-page .qr-step-heading,
body.member-shell-page .wizard-title,
body.member-shell-page .wizard-subtitle {
  color: #1f3347;
  letter-spacing: -0.01em;
}

body.member-shell-page .qr-step-heading {
  font-weight: 700;
}

body.member-shell-page .qr-form-block .form-label {
  color: #2e4257;
  font-weight: 600;
  margin-bottom: 0.35rem;
}

body.member-shell-page .qr-hint,
body.member-shell-page .wizard-type-desc {
  color: #61768c;
}

body.member-shell-page .qr-error {
  color: #9f1f1f;
}

body.member-shell-page .qr-type-selector {
  padding: 15px;
  background: #ffffff;
}

body.member-shell-page .qr-type-button {
  border-color: #d4e0ec;
  background: #ffffff;
  color: #2d4358;
  border-radius: 12px;
  font-weight: 600;
}

body.member-shell-page .qr-type-button i {
  color: #2d4358;
}

body.member-shell-page .qr-type-button:hover {
  border-color: #9ccfb7;
  background: #f4fbf7;
}

body.member-shell-page .qr-type-button.active {
  color: #1f6d4c;
}

body.member-shell-page .qr-type-button.active i {
  color: #1f6d4c;
}

body.member-shell-page .qr-type-button.disabled,
body.member-shell-page .qr-type-button:disabled {
  border-color: #dce6ef;
  background: #f6f9fc;
  color: #7f92a7;
  opacity: 0.72;
  cursor: not-allowed;
}

body.member-shell-page .qr-type-button.disabled i,
body.member-shell-page .qr-type-button:disabled i {
  color: #7f92a7;
}

body.member-shell-page .qr-pro-pill {
  background: #f4b452;
  color: #ffffff;
  font-weight: 700;
}

body.member-shell-page .qr-tabs {
  align-items: center;
}

body.member-shell-page .qr-tab:hover {
  color: #1f6d4c;
  background: #f4fbf7;
}

body.member-shell-page .qr-tab.active {
  font-weight: 700;
}

body.member-shell-page .qr-tile:hover {
  border-color: #8fcfb1;
}

body.member-shell-page .qr-tile.active {
  border-color: #8fcfb1;
  box-shadow: 0 0 0 2px rgba(79, 184, 138, 0.2);
}

body.member-shell-page .wizard-topbar {
  margin-bottom: 16px;
}

body.member-shell-page .wizard-step {
  border-color: #d7e5f0;
  color: #496079;
}

body.member-shell-page .wizard-step-circle {
  background: #dce7f2;
  color: #3f556d;
}

body.member-shell-page .wizard-type-card {
  border-color: #d7e4ef;
  border-radius: 14px;
}

body.member-shell-page .wizard-type-card:hover {
  border-color: #9fd4bb;
  background: #f4fbf7;
}

body.member-shell-page .wizard-type-card i {
  color: #2d5f47;
}

body.member-shell-page .wizard-type-card.active {
  border-color: #8fcfb1;
  background: #ecf8f1;
}

body.member-shell-page .wizard-actions .btn-light {
  border: 1px solid #d1dfeb;
  color: #496079;
  background: #f7fafd;
}

body.member-shell-page .wizard-actions .btn-light:hover {
  border-color: #9ccfb7;
  color: #1f6d4c;
  background: #eef9f3;
}

body.member-shell-page .qr-download-btn {
  border-radius: 10px;
  font-weight: 700;
  box-shadow: 0 8px 16px rgba(47, 143, 102, 0.2);
}

body.member-shell-page .qr-download-dropdown .dropdown-menu {
  border-color: #d8e6df;
  box-shadow: 0 10px 20px rgba(22, 38, 64, 0.08);
}

body.member-shell-page .wizard-design-tab-body {
  min-height: 0;
}
