    /* Auth Section Styles - Normal responsive page section */
    #authSection {
      display: none;
    }
    #authSection.active {
      display: block;
    }
    .auth-section-card {
      background: white;
      border-radius: 24px;
      padding: 48px 32px;
      max-width: 500px;
      width: 100%;
      margin: 0 auto;
      box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    }
    @media (max-width: 767px) {
      /* Full-bleed auth: one white column with step-card padding (no inner card chrome) */
      .auth-section-card {
        padding: 0;
        border-radius: 0;
        max-width: none;
        width: 100%;
        margin: 0;
        background: transparent;
        box-shadow: none;
      }
      #authSection .step-card {
        padding-left: calc(20px + env(safe-area-inset-left, 0px));
        padding-right: calc(20px + env(safe-area-inset-right, 0px));
      }
    }
    .auth-section-header {
      text-align: center;
      margin-bottom: 40px;
    }
    .auth-section-icon {
      display: inline-block;
      margin-bottom: 20px;
    }
    .auth-section-icon div {
      width: 64px;
      height: 64px;
      background: linear-gradient(135deg, #0066FF 0%, #0052CC 100%);
      border-radius: 16px;
        display: flex;
        align-items: center;
        justify-content: center;
      color: white;
      font-size: 24px;
      font-weight: bold;
      box-shadow: 0 4px 15px rgba(0, 102, 255, 0.3);
      margin: 0 auto;
    }
    .auth-section-title {
      font-size: 24px;
      font-weight: 700;
      color: #1a1c1e;
      margin-bottom: 12px;
      line-height: 1.2;
    }
    @media (max-width: 767px) {
      .auth-section-title {
        font-size: 24px;
      }
    }
    .auth-section-subtitle {
      color: #6a7ea8;
      font-size: 14px;
      line-height: 1.5;
    }
    @media (max-width: 767px) {
      .auth-section-subtitle {
        font-size: 14px;
      }
    }
    .auth-form {
      display: block;
    }
    .auth-form-group {
      margin-bottom: 20px;
    }
    .auth-form-group:last-of-type {
      margin-bottom: 24px;
    }
    .auth-form-label {
      display: block;
      font-size: 14px;
      font-weight: 500;
      color: #1a1c1e;
      margin-bottom: 8px;
    }
    .auth-form-label i {
      margin-right: 6px;
      color: #6a7ea8;
    }
    .auth-help-text {
      font-size: 12px;
      color: #6a7ea8;
      margin-top: 6px;
    }
    .auth-password-wrapper {
      position: relative;
    }
    .auth-password-wrapper input {
      padding-right: 44px;
    }
    .auth-password-toggle {
      position: absolute;
      right: 14px;
      top: 50%;
      transform: translateY(-50%);
      background: none;
      border: none;
      cursor: pointer;
      color: #64748B;
      padding: 4px;
      font-size: 16px;
    }
    .auth-password-toggle:hover {
      color: #0F172A;
    }
    .auth-footer-links {
      text-align: center;
      margin-top: 20px;
      font-size: 14px;
      color: #64748B;
    }
    .auth-footer-links a {
      color: #0066FF;
      text-decoration: none;
      font-weight: 500;
    }
    .auth-footer-links a:hover {
      text-decoration: underline;
    }
    .auth-input {
      width: 100%;
      padding: 14px 16px;
      border: 2px solid #E2E8F0;
      border-radius: 10px;
      /* 16px so iOS Safari never zooms on focus even if the mobile override is bypassed. */
      font-size: 16px;
      margin-bottom: 16px;
      transition: border-color 0.18s cubic-bezier(0.33, 1, 0.68, 1), box-shadow 0.18s cubic-bezier(0.33, 1, 0.68, 1), background-color 0.18s cubic-bezier(0.33, 1, 0.68, 1);
    }
    .auth-input:focus {
      outline: none;
      border-color: #0066FF;
      box-shadow: 0 0 0 3px rgba(0, 102, 255, 0.1);
    }
    .auth-alert {
      padding: 12px 16px;
      border-radius: 10px;
      margin-bottom: 20px;
      font-size: 14px;
      display: none;
    }
    .auth-alert.show {
      display: block;
    }
    .auth-alert.error {
      background: #FEE2E2;
      color: #DC2626;
      border: 1px solid #FECACA;
    }
    .auth-alert.success {
      background: #D1FAE5;
      color: #059669;
      border: 1px solid #A7F3D0;
    }
    .auth-alert.info {
      background: #E0F2FE;
      color: #0C4A6E;
      border: 1px solid #BAE6FD;
    }
    .auth-btn {
      width: 100%;
      padding: 14px;
      background: #0066FF;
      color: white;
      border: none;
      border-radius: 10px;
      font-size: 16px;
      font-weight: 600;
      cursor: pointer;
      transition: background-color 0.18s cubic-bezier(0.33, 1, 0.68, 1), box-shadow 0.18s cubic-bezier(0.33, 1, 0.68, 1), transform 0.15s cubic-bezier(0.33, 1, 0.68, 1), opacity 0.18s cubic-bezier(0.33, 1, 0.68, 1);
    }
    .auth-btn:hover {
      background: #0052CC;
      box-shadow: 0 4px 12px rgba(0, 102, 255, 0.24);
    }
    .auth-btn:active:not(:disabled) {
      transform: scale(0.98);
    }
    .auth-btn:disabled {
      opacity: 0.6;
      cursor: not-allowed;
    }
    #authSection .step-card {
      display: flex;
      flex-direction: column;
    }
    #authSection .step-content-header {
      margin-bottom: 20px !important;
    }
    #authSection .auth-form-group {
      margin-bottom: 14px;
    }
    #authSection .auth-form-group:last-of-type {
      margin-bottom: 18px;
    }
    #authSection .auth-form-label {
      margin-bottom: 6px;
    }
    #authSection .auth-input {
      margin-bottom: 0;
      padding: 12px 14px;
    }
    #authSection .auth-help-text {
      margin-top: 4px;
      line-height: 1.35;
    }
    #authSection .auth-alert {
      margin-bottom: 14px;
    }
    #authSection .auth-btn {
      min-height: 48px;
      padding: 12px 14px;
    }
    @media (max-width: 430px) {
      #authSection .step-card {
        padding: 20px 16px 24px;
        padding-left: calc(16px + env(safe-area-inset-left, 0px));
        padding-right: calc(16px + env(safe-area-inset-right, 0px));
      }
      #authSection .step-content-header {
        margin-bottom: 16px !important;
      }
      #authSection .step-title-large {
        font-size: 22px;
        line-height: 1.15;
      }
      #authSection .step-subtitle {
        font-size: 13px;
        line-height: 1.4;
      }
      #authSection .auth-section-card {
        padding: 0;
      }
      #authSection .auth-form-group {
        margin-bottom: 12px;
      }
      #authSection .auth-form-group:last-of-type {
        margin-bottom: 16px;
      }
    }
    .auth-spinner {
      display: inline-block;
      width: 16px;
      height: 16px;
      border: 2px solid rgba(255, 255, 255, 0.3);
      border-top-color: white;
      border-radius: 50%;
      animation: spin 1s linear infinite;
      margin-left: 8px;
    }
    @keyframes spin {
      to { transform: rotate(360deg); }
    }
    /* Prevent horizontal scroll and blank space issues (desktop/tablet only) */
    @media (min-width: 768px) {
      html {
        overflow-x: hidden;
        width: 100%;
        max-width: 100vw;
      }
      body {
        overflow-x: hidden;
        width: 100%;
        max-width: 100vw;
        position: relative;
      }
      .step.active {
        overflow-x: hidden;
        width: 100%;
        max-width: 100vw;
      }
    }
    /* Mobile: let the document (body) scroll — do not create inner scrollports */
    @media (max-width: 767px) {
      .step.active {
        overflow: visible;
        width: 100%;
        max-width: 100vw;
      }
      .step-layout,
      .step-card,
      .step-card-inner,
      .onboarding-step5-inner,
      .onboarding-step5-desktop,
      .onboarding-step5-desktop-controls,
      .contact-field,
      .field-group {
        overflow: visible;
        max-width: 100%;
      }
    }
    /* Ensure all content containers respect viewport (desktop/tablet).
       On mobile, overflow-x:hidden forces overflow-y:auto and traps scroll inside
       .step / .step-card — see mobile override after this block. */
    @media (min-width: 768px) {
      .step-layout,
      .step-card,
      .step-card-inner,
      .contact-field,
      .field-group {
        overflow-x: hidden;
        max-width: 100%;
      }
    }
    /* Fix any elements that might cause overflow */
    input,
    textarea,
    select,
    button {
      max-width: 100%;
    }
    
    /* Payment/Subscription Modal Styles */
    .subscription-modal-overlay {
      position: fixed;
      top: 0;
      left: 0;
      right: 0;
      bottom: 0;
      background: rgba(0, 0, 0, 0.5);
      display: flex;
      align-items: center;
      justify-content: center;
      z-index: 10000;
      padding: 20px;
      backdrop-filter: blur(4px);
    }
    .subscription-modal-overlay.hidden {
      display: none;
    }
    .modal-overlay {
      position: fixed;
      inset: 0;
      background: rgba(15, 23, 42, 0.6);
      display: flex;
      align-items: center;
      justify-content: center;
      z-index: 1000;
    }
    .modal-overlay.hidden {
      display: none;
    }
    .modal-content {
      background: #fff;
      border-radius: 16px;
      padding: 24px;
      max-width: 420px;
      width: 90%;
      box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    }
    .modal-actions {
      display: flex;
      justify-content: flex-end;
      gap: 12px;
      margin-top: 20px;
    }
    /* ── Pricing / Subscription modal ───────────────────────────────── */

    .subscription-modal {
      width: 100%;
      position: relative;
    }

    /* Mobile default: single-column vertical stack */
    .subscription-modal .plans-list {
      display: grid;
      grid-template-columns: 1fr;
      gap: 12px;
      margin-bottom: 20px;
    }

    .subscription-modal .plan-option {
      position: relative;
      display: block;
      min-width: 0;
    }
    .subscription-modal .plan-option input[type="radio"] {
      position: absolute;
      opacity: 0;
      width: 0;
      height: 0;
      pointer-events: none;
    }

    /* Card base */
    .subscription-modal .plan-card {
      position: relative;
      display: flex;
      flex-direction: column;
      padding: 20px 18px 18px;
      border: 1.5px solid var(--border);
      border-radius: 20px;
      box-sizing: border-box;
      cursor: pointer;
      background: #fff;
      transition: border-color 0.18s cubic-bezier(0.33,1,0.68,1),
                  box-shadow 0.18s cubic-bezier(0.33,1,0.68,1),
                  background 0.18s cubic-bezier(0.33,1,0.68,1),
                  transform 0.15s cubic-bezier(0.33,1,0.68,1);
    }
    .subscription-modal .plan-card:hover {
      border-color: rgba(0,102,255,0.4);
      box-shadow: 0 4px 16px rgba(0,102,255,0.08);
      transform: translateY(-1px);
    }

    /* Selected */
    .subscription-modal .plan-option input[type="radio"]:checked + .plan-card {
      border-color: var(--primary-cta);
      background: linear-gradient(180deg, #f4f8ff 0%, #fff 100%);
      box-shadow: 0 0 0 1px rgba(0,102,255,0.15), 0 8px 24px rgba(0,102,255,0.1);
    }

    /* Featured (Professional) — subtle blue tint at rest */
    .subscription-modal .plan-option-featured .plan-card {
      border-color: rgba(0,102,255,0.3);
      box-shadow: 0 4px 16px rgba(0,102,255,0.09);
    }
    .subscription-modal .plan-option-featured input[type="radio"]:checked + .plan-card {
      border-color: var(--primary-cta);
      box-shadow: 0 0 0 1px rgba(0,102,255,0.2), 0 10px 28px rgba(0,102,255,0.14);
    }

    /* "Most Popular" badge */
    .subscription-modal .plan-badge {
      position: absolute;
      top: -10px;
      left: 50%;
      transform: translateX(-50%);
      background: linear-gradient(135deg, #10b981 0%, #059669 100%);
      color: #fff;
      font-size: 11px;
      padding: 4px 12px;
      border-radius: 999px;
      font-weight: 600;
      letter-spacing: 0.02em;
      white-space: nowrap;
      z-index: 1;
      box-shadow: 0 2px 8px rgba(16,185,129,0.3);
    }

    /* Card inner layout */
    .subscription-modal .plan-card-header {
      display: flex;
      align-items: center;
      gap: 8px;
      margin-bottom: 6px;
      padding-right: 28px; /* space for check indicator */
    }
    .subscription-modal .plan-name {
      font-size: 16px;
      font-weight: 700;
      color: var(--text);
      letter-spacing: -0.01em;
    }
    .subscription-modal .plan-price-row {
      display: flex;
      align-items: baseline;
      gap: 3px;
      margin-bottom: 10px;
    }
    .subscription-modal .plan-price {
      font-size: 28px;
      font-weight: 700;
      color: var(--primary-cta);
      letter-spacing: -0.04em;
      line-height: 1;
    }
    .subscription-modal .plan-period {
      font-size: 13px;
      color: var(--accent);
      font-weight: 500;
    }


    /* Feature list */
    .subscription-modal .plan-features {
      list-style: none;
      margin: 0;
      padding: 0;
      display: grid;
      gap: 7px;
      flex: 1;
    }
    .subscription-modal .plan-features li {
      display: flex;
      align-items: flex-start;
      gap: 8px;
      font-size: 13px;
      line-height: 1.4;
      color: #4b5563;
    }
    .subscription-modal .plan-features li::before {
      content: '';
      flex-shrink: 0;
      width: 16px;
      height: 16px;
      margin-top: 1px;
      border-radius: 50%;
      background: rgba(16,185,129,0.12);
      background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%2310b981'%3E%3Cpath d='M6.5 11.5 3.5 8.5l1-1 2 2 4.5-4.5 1 1z'/%3E%3C/svg%3E");
      background-repeat: no-repeat;
      background-position: center;
      background-size: 11px;
    }

    /* Mobile: show compact list, hide full list */
    .subscription-modal .plan-features-full {
      display: none;
    }
    .subscription-modal .plan-features-mobile {
      display: grid;
      gap: 7px;
      margin-top: auto;
      padding-top: 12px;
    }

    /* Selection check indicator */
    .subscription-modal .plan-check {
      position: absolute;
      top: 14px;
      right: 14px;
      width: 22px;
      height: 22px;
      border-radius: 50%;
      border: 1.5px solid var(--border);
      background: #fff;
      flex-shrink: 0;
      transition: border-color 0.18s, background-color 0.18s, box-shadow 0.18s;
    }
    .subscription-modal .plan-option input[type="radio"]:checked + .plan-card .plan-check {
      border-color: var(--primary-cta);
      background: var(--primary-cta);
      box-shadow: 0 2px 6px rgba(0,102,255,0.35);
    }
    .subscription-modal .plan-option input[type="radio"]:checked + .plan-card .plan-check::after {
      content: '';
      position: absolute;
      top: 50%;
      left: 50%;
      width: 8px;
      height: 5px;
      border-left: 2px solid #fff;
      border-bottom: 2px solid #fff;
      transform: translate(-50%, -60%) rotate(-45deg);
    }

    /* Terms text */
    .subscription-modal .terms-text {
      font-size: 12px;
      color: var(--accent);
      text-align: center;
      line-height: 1.5;
      margin-bottom: 16px;
      padding: 0 4px;
    }
    .subscription-modal .terms-text a {
      color: var(--primary-cta);
      text-decoration: none;
      font-weight: 500;
    }
    .subscription-modal .terms-text a:hover {
      text-decoration: underline;
    }

    /* CTA button */
    .subscription-modal .select-button {
      width: 100%;
      padding: 15px 16px;
      background: var(--primary-cta);
      color: #fff;
      border: none;
      border-radius: 14px;
      font-size: 16px;
      font-weight: 600;
      cursor: pointer;
      transition: background-color 0.18s cubic-bezier(0.33,1,0.68,1),
                  box-shadow 0.18s cubic-bezier(0.33,1,0.68,1),
                  transform 0.15s cubic-bezier(0.33,1,0.68,1);
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 8px;
      box-shadow: 0 2px 8px rgba(0,102,255,0.22);
    }
    .subscription-modal .select-button:hover:not(:disabled) {
      background: var(--primary-dark);
      box-shadow: 0 4px 14px rgba(0,102,255,0.28);
    }
    .subscription-modal .select-button:active:not(:disabled) {
      transform: scale(0.98);
    }
    .subscription-modal .select-button:disabled {
      background: #d0d0d0;
      box-shadow: none;
      cursor: not-allowed;
      transform: none;
    }

    /* ── Tablet: 768px–1023px — 3-column grid ─────────────────────── */
    @media (min-width: 768px) {
      /* Show full feature list, hide mobile compact list */
      #step-8 .subscription-modal .plan-features-full {
        display: grid;
        gap: 8px;
        margin-top: auto;
        padding-top: 16px;
      }
      #step-8 .subscription-modal .plan-features-full li {
        font-size: 13px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
      }
      #step-8 .subscription-modal .plan-features-mobile { display: none; }

      /* Three plans → three equal columns (no empty/orphan cell), centered. */
      #step-8 .subscription-modal .plans-list {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 16px;
        max-width: none;
        margin-bottom: 28px;
      }

      /* Tall cards — equal height */
      #step-8 .subscription-modal .plan-option {
        display: flex;
      }
      #step-8 .subscription-modal .plan-card {
        flex: 1;
        min-height: 280px;
        padding: 22px 20px 20px;
        border-radius: 22px;
      }

      /* Professional badge */
      #step-8 .subscription-modal .plan-option-featured .plan-card {
        padding-top: 34px;
      }
      #step-8 .subscription-modal .plan-badge {
        font-size: 11px;
        padding: 4px 14px;
        top: -11px;
      }

      /* Typography */
      #step-8 .subscription-modal .plan-name  { font-size: 17px; }
      #step-8 .subscription-modal .plan-price { font-size: 32px; }
      #step-8 .subscription-modal .plan-period { font-size: 13px; }

      /* Check indicator */
      #step-8 .subscription-modal .plan-check {
        top: 16px;
        right: 16px;
        width: 22px;
        height: 22px;
      }

      /* Page-level sizing */
      #step-8.active {
        max-width: 900px;
        margin: 0 auto;
        padding: 40px 32px;
        background: #fff;
      }
      #step-8 .step-card          { padding: 36px; }
      #step-8 .step-content-header { max-width: 600px; margin: 0 auto 32px; }
      #step-8 .step-subtitle       { display: block; }
      #step-8 .subscription-modal  { background: transparent; box-shadow: none; }
      #step-8 .subscription-modal .terms-text {
        max-width: 600px;
        margin: 0 auto 16px;
        font-size: 12px;
      }
      #step-8 .subscription-modal .select-button {
        max-width: 380px;
        margin: 0 auto;
        padding: 16px;
        font-size: 16px;
      }
      #step-8 .step-card-inner { overflow: visible; }
    }

    /* ── Desktop: 1024px+ — 3-column grid (centered) ───────────────── */
    @media (min-width: 1024px) {
      /* Three plans → three equal columns, centered within the page. */
      #step-8 .subscription-modal .plans-list {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 16px;
        max-width: 860px;
        margin-left: auto;
        margin-right: auto;
      }
      #step-8 .subscription-modal .plan-card {
        min-height: 300px;
        padding: 24px 16px 20px;
      }
      #step-8 .subscription-modal .plan-option-featured .plan-card {
        padding-top: 36px;
      }

      /* Page-level sizing */
      #step-8.active {
        max-width: 1200px;
        padding: 40px 40px;
      }
      #step-8 .step-card { padding: 44px; }
    }

    /* ============================================================
       Desktop onboarding (min-width: 1024px)
       ============================================================ */
    .desktop-preview-shell {
      display: none;
    }
    .form-grid {
      display: grid;
      gap: 16px;
    }
    .form-row {
      display: grid;
      gap: 16px;
    }
    .form-row.single {
      grid-template-columns: 1fr;
    }
    @media (min-width: 1024px) {
      .screen {
        background: #ffffff;
      }
      .layout {
        max-width: 560px;
        margin: 0 auto;
        padding: 48px 40px 72px;
        min-height: 100dvh;
      }
      .desktop-preview-shell {
        display: none;
      }
      .desktop-preview-panel {
        width: 100%;
      }
      .desktop-preview-stage {
        width: 100%;
        display: flex;
        align-items: center;
        justify-content: center;
      }
      .phone-mockup {
        display: flex;
        justify-content: center;
        align-items: center;
        width: 100%;
      }
      .phone-frame {
        width: min(300px, 100%);
        aspect-ratio: 390 / 844;
        border-radius: 34px;
        background: #000;
        padding: 10px;
        box-shadow: 0 16px 32px rgba(0, 0, 0, 0.12);
        position: relative;
      }
      .phone-frame::before {
        content: "";
        position: absolute;
        top: 9px;
        left: 50%;
        transform: translateX(-50%);
        width: 104px;
        height: 20px;
        background: #000;
        border-radius: 10px;
        z-index: 2;
      }
      .phone-screen {
        width: 100%;
        height: 100%;
        border-radius: 26px;
        background: linear-gradient(180deg, #eef4ff 0%, #f8fbff 100%);
        overflow: hidden;
        display: flex;
        flex-direction: column;
        align-items: stretch;
        justify-content: flex-start;
      }
      .wallet-chrome {
        padding: 14px 14px 0;
        flex-shrink: 0;
      }
      .wallet-statusbar,
      .wallet-toolbar {
        display: flex;
        align-items: center;
        justify-content: space-between;
      }
      .wallet-statusbar {
        margin-bottom: 12px;
      }
      .wallet-time {
        font-size: 16px;
        font-weight: 700;
        color: #0f172a;
        letter-spacing: -0.02em;
      }
      .wallet-status-icons {
        display: flex;
        align-items: center;
        gap: 8px;
        color: #0f172a;
      }
      .wallet-status-icons svg {
        display: block;
      }
      .wallet-toolbar {
        margin-bottom: 10px;
        min-height: 30px;
      }
      .wallet-toolbar-title {
        font-family: "SF Pro Display", "SF Pro Text", -apple-system, BlinkMacSystemFont, "Helvetica Neue", sans-serif;
        font-size: 26px;
        font-weight: 800;
        line-height: 1;
        letter-spacing: -0.04em;
        color: #0f172a;
      }
      .wallet-toolbar-actions {
        display: flex;
        align-items: center;
        gap: 10px;
      }
      .wallet-toolbar-btn {
        width: 30px;
        height: 30px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        border-radius: 999px;
        border: 1px solid rgba(15, 23, 42, 0.08);
        background: rgba(255, 255, 255, 0.78);
        color: #0f172a;
        box-shadow: 0 4px 12px rgba(15, 23, 42, 0.08);
      }
      .wallet-pass-stage {
        flex: 1;
        display: flex;
        align-items: flex-start;
        justify-content: center;
        padding: 16px 14px 20px;
        min-height: 0;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
      }
      .phone-screen .success-card-preview {
        width: 96%;
        height: auto;
        margin-top: 0;
        display: flex;
        align-items: flex-start;
        justify-content: center;
      }
      .phone-screen .business-card-preview {
        width: 100%;
        max-width: none;
        transform: none;
      }
      /* Inner card: height follows content so wrapped fields stay inside the blue area
         (fixed aspect-ratio would clip multi-line email/title/company). */
      .phone-screen .business-card-preview-inner {
        width: 100%;
        max-width: none;
        aspect-ratio: unset;
        height: auto;
        min-height: 200px;
        box-shadow: 0 14px 30px rgba(15, 23, 42, 0.18);
        padding: 0 8px;
        border-radius: 14px;
      }
      .phone-screen .card-preview-header {
        height: 50px;
        padding-top: 12px;
        margin-bottom: 10px;
      }
      .phone-screen .card-preview-logo-wrapper:not(.has-logo) {
        width: 36px;
        height: 36px;
        min-width: 36px;
        max-width: 36px;
        flex-shrink: 0;
        border-radius: 6px;
        margin-right: 7px;
      }
      .phone-screen .card-preview-logo-wrapper.has-logo {
        /* ~160:50 scaled to 36px height */
        width: min(115px, 100%);
        max-width: 115px;
        height: 36px;
        min-width: 32px;
        flex-shrink: 1;
        border-radius: 6px;
        margin-right: 7px;
      }
      .phone-screen .card-preview-logo-wrapper:not(.has-logo)::after {
        font-size: 9px;
        padding: 0 2px;
      }
      .phone-screen .card-preview-main {
        padding-top: 6px;
        margin-bottom: 10px;
      }
      .phone-screen .card-preview-label {
        font-size: 9px;
        margin-bottom: 3px;
      }
      .phone-screen .card-preview-name {
        font-size: 17px;
      }
      .phone-screen .card-preview-secondary-row {
        padding-top: 7px;
        gap: clamp(11px, 3.2vw, 16px);
      }
      .phone-screen .card-preview-phone,
      .phone-screen .card-preview-email,
      .phone-screen .card-preview-title,
      .phone-screen .card-preview-company {
        font-size: 11px;
      }
      .phone-screen .card-preview-auxiliary-row {
        padding-top: 7px;
        margin-bottom: 12px;
        gap: clamp(11px, 3.2vw, 16px);
      }
      .phone-screen .card-preview-qr-wrapper {
        margin-bottom: 16px;
      }
      .phone-screen .card-preview-qr-placeholder {
        width: 90px;
        height: 90px;
        padding: 7px;
        border-radius: 6px;
      }
      .phone-screen .card-preview-qr-caption {
        font-size: 10px;
        margin-top: 4px;
      }
      /* Desktop wallet mockup only: phone/email use flex 1.65 vs 1 on title/company. */
      .phone-screen .card-preview-secondary-block:first-child,
      .phone-screen .card-preview-auxiliary-block:first-child {
        flex: 1.65 1 0;
        min-width: 0;
      }
      .phone-screen .card-preview-secondary-block:last-child,
      .phone-screen .card-preview-auxiliary-block:last-child {
        flex: 1 1 0;
        min-width: 0;
        max-width: none;
      }

      .layout:has(#step-1.active),
      .layout:has(#step-2.active),
      .layout:has(#step-3.active),
      .layout:has(#step-4.active),
      .layout:has(#step-5.active),
      .layout:has(#step-7.active) {
        display: grid;
        grid-template-columns: 1fr 1fr;
        max-width: none;
        width: 100%;
        margin: 0;
        padding: 0;
        min-height: 100dvh;
        height: 100dvh;
        overflow: hidden;
        align-items: stretch;
      }
      .layout:has(#step-1.active) .desktop-preview-shell,
      .layout:has(#step-2.active) .desktop-preview-shell,
      .layout:has(#step-3.active) .desktop-preview-shell,
      .layout:has(#step-4.active) .desktop-preview-shell,
      .layout:has(#step-5.active) .desktop-preview-shell,
      .layout:has(#step-7.active) .desktop-preview-shell {
        display: block;
        grid-column: 2;
        grid-row: 1;
        min-width: 0;
        background: #bfe4fa;
        border-left: none;
      }
      .layout:has(#step-1.active) .desktop-preview-panel,
      .layout:has(#step-2.active) .desktop-preview-panel,
      .layout:has(#step-3.active) .desktop-preview-panel,
      .layout:has(#step-4.active) .desktop-preview-panel,
      .layout:has(#step-5.active) .desktop-preview-panel,
      .layout:has(#step-7.active) .desktop-preview-panel {
        position: sticky;
        top: 0;
        min-height: 100dvh;
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 24px 40px;
      }
      .layout:has(#step-1.active) #step-1.active,
      .layout:has(#step-2.active) #step-2.active,
      .layout:has(#step-3.active) #step-3.active,
      .layout:has(#step-4.active) #step-4.active,
      .layout:has(#step-5.active) #step-5.active,
      .layout:has(#step-7.active) #step-7.active {
        grid-column: 1;
        grid-row: 1;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-self: stretch;
        min-height: 100dvh;
        padding: 24px 32px;
        background: #ffffff;
      }

      #step-0.active,
      #authSection.active {
        width: 100%;
        max-width: 560px;
        margin: 0 auto;
      }
      /* #step-8.active max-width set in the @media (min-width:768px) pricing block */

      #step-0 {
        padding: 0;
        background: transparent;
      }
      #step-0 .welcome {
        max-width: 560px;
        width: 100%;
        padding: 56px 48px 48px;
        border-radius: 28px;
        border: 1px solid #e2e8f0;
        box-shadow: 0 16px 32px rgba(15, 23, 42, 0.06);
      }

      #step-1,
      #step-2,
      #step-3,
      #step-4,
      #step-5,
      #step-7,
      #step-8 {
        padding: 0;
        background: transparent;
      }
      #step-1 .step-header,
      #step-2 .step-header,
      #step-3 .step-header,
      #step-4 .step-header,
      #step-5 .step-header,
      #step-7 .step-header,
      #step-8 .step-header,
      #authSection .step-header {
        position: relative;
        top: auto;
        z-index: auto;
        padding: 0 0 16px;
        margin: 0;
        background: transparent;
        border-bottom: 0;
        backdrop-filter: none;
      }
      #step-1 .step-header-inner,
      #step-2 .step-header-inner,
      #step-3 .step-header-inner,
      #step-4 .step-header-inner,
      #step-5 .step-header-inner,
      #step-7 .step-header-inner,
      #step-8 .step-header-inner,
      #authSection .step-header-inner {
        max-width: none;
        margin: 0;
      }

      #step-1 .step-header,
      #step-2 .step-header,
      #step-3 .step-header,
      #step-4 .step-header,
      #step-5 .step-header,
      #step-7 .step-header {
        display: none;
      }
      #step-1 .step-card,
      #step-2 .step-card,
      #step-3 .step-card,
      #step-4 .step-card,
      #step-5 .step-card,
      #step-7 .step-card {
        width: 100%;
        max-width: 420px;
        margin: 0 auto;
        padding: 24px;
        background: #ffffff;
        border: none;
        border-radius: 28px;
        box-shadow: none;
      }
      #authSection .step-card {
        width: 100%;
        margin: 0;
        padding: 28px;
        background: #ffffff;
        border: none;
        border-radius: 28px;
        box-shadow: none;
      }
      /* #step-8 .step-card padding set in the @media (min-width:768px) pricing block */
      #step-1 .step-card-inner,
      #step-2 .step-card-inner,
      #step-3 .step-card-inner,
      #step-4 .step-card-inner,
      #step-5 .step-card-inner,
      #step-7 .step-card-inner {
        padding: 0;
      }
      #step-8 .step-card-inner { padding: 0; overflow: visible; }

      .step-content-header {
        margin-bottom: 16px;
      }
      .step-title-large,
      #step-6 .step-title-large {
        font-size: 24px;
        line-height: 1.2;
        letter-spacing: -0.02em;
      }
      .step-subtitle {
        font-size: 14px;
        line-height: 1.6;
        color: #6a7ea8;
      }
      .step-buttons,
      .button-group {
        margin-top: 24px;
        position: static;
        padding: 0;
        background: transparent;
        box-shadow: none;
      }
      .step-btn-primary {
        width: 100%;
        min-width: 0;
        box-shadow: none;
      }
      .step-btn-back + .step-btn-primary {
        width: auto;
        flex: 1;
      }
      .desktop-inline-back {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
        width: auto;
        min-width: 88px;
        height: 44px;
        padding: 0 14px;
        border-radius: 12px;
        font-size: 14px;
      }
      .desktop-inline-back svg {
        flex-shrink: 0;
      }

      .form-row {
        grid-template-columns: 1fr 1fr;
        align-items: start;
      }
      .contact-field {
        margin-bottom: 0;
      }
      .contact-input,
      .auth-input,
      .contact-country-btn,
      .color-picker-btn,
      .country-select-display {
        min-height: 56px;
      }
      textarea.contact-input {
        min-height: 120px;
        resize: vertical;
      }
      .phone-input-row {
        grid-template-columns: 160px minmax(0, 1fr);
      }
      .privacy-terms-text {
        margin: 4px 0 0;
      }

      #step-5 .onboarding-step5-desktop {
        display: block;
      }
      #step-5 .onboarding-step5-desktop-preview {
        display: none;
      }
      #step-5 .onboarding-step5-desktop-controls {
        display: grid;
        gap: 14px;
      }
      #step-5 .step-card {
        padding: 20px;
      }
      #step-5 .step-content-header {
        margin-bottom: 12px;
      }
      #step-5.active {
        padding: 20px 28px;
        background: #ffffff;
      }
      #step-7.active {
        padding: 24px 32px;
        background: #ffffff;
      }
      #step-7 .onboarding-step7-inner {
        display: block;
      }
      .onboarding-step7-footer {
        width: 100%;
        max-width: none;
        margin: 0;
      }
      #step-7 .step-content-header {
        margin-bottom: 20px;
      }

      /* #step-8 desktop overrides are handled in the @media (min-width: 768px) pricing block above */

      #authSection.active {
        display: flex;
        flex-direction: column;
        justify-content: center;
        max-width: 720px;
        margin: 0 auto;
        padding: 20px 32px;
        min-height: 100dvh;
        background: #ffffff;
      }
      #authSection .step-card {
        padding: 28px;
        max-width: 680px;
        margin: 0 auto;
      }
      #authSection .auth-section-card {
        max-width: none;
        margin: 0;
        padding: 0;
        border: 0;
        box-shadow: none;
        background: transparent;
      }
      #authSection .step-content-header {
        margin-bottom: 20px !important;
      }
      #authSection .auth-form {
        max-width: 560px;
        margin: 0 auto;
      }
    }
    @media (max-width: 1023px) {
      .form-row {
        grid-template-columns: 1fr;
      }
      .desktop-inline-back {
        display: none;
      }
    }

    /* iOS Safari: prevent auto-zoom on input focus (computed font-size must be >= 16px) */
    @supports (-webkit-touch-callout: none) {
      html body input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="color"]):not([type="file"]):not([type="image"]):not([type="hidden"]):not([type="submit"]):not([type="reset"]):not([type="button"]),
      html body textarea,
      html body select {
        font-size: 16px !important;
      }
    }
