/* ===================== OVERLAY ===================== */
  .modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 500;
    background: rgba(8,6,12,0.80);
    backdrop-filter: blur(14px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
  }
  .modal-overlay.open {
    opacity: 1;
    pointer-events: all;
  }

  /* ===================== MODAL ===================== */
  .modal {
    background: var(--bg2);
    border: 1px solid var(--border);
    border-radius: 22px;
    width: 100%;
    max-width: 920px;
    max-height: 92vh;
    overflow: hidden;
    display: grid;
    grid-template-columns: 300px 1fr;
    position: relative;
    transform: translateY(24px) scale(0.98);
    transition: transform 0.35s cubic-bezier(.22,.68,0,1.1);
    box-shadow: 0 40px 120px rgba(0,0,0,0.7), 0 0 0 1px rgba(224,82,154,0.08);
  }
  .modal-overlay.open .modal {
    transform: translateY(0) scale(1);
  }

  /* Close button */
  .modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 34px; height: 34px;
    background: var(--bg3);
    border: 1px solid var(--border);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--muted);
    font-size: 16px;
    z-index: 10;
    transition: color 0.2s, background 0.2s;
    line-height: 1;
  }
  .modal-close:hover { color: var(--text); background: var(--bg4); }

  /* ===================== LEFT PANEL ===================== */
  .modal-left {
    background: var(--bg3);
    border-right: 1px solid var(--border);
    padding: 2rem 1.75rem;
    display: flex;
    flex-direction: column;
    gap: 0;
    position: relative;
    overflow: hidden;
  }
  .modal-left::before {
    content: '';
    position: absolute;
    bottom: -60px; left: -60px;
    width: 220px; height: 220px;
    background: radial-gradient(circle, rgba(160,40,120,0.18) 0%, transparent 70%);
    pointer-events: none;
  }
  .modal-left::after {
    content: '';
    position: absolute;
    top: -40px; right: -40px;
    width: 160px; height: 160px;
    background: radial-gradient(circle, rgba(80,20,180,0.12) 0%, transparent 70%);
    pointer-events: none;
  }

  .modal-logo {
    display: flex;
    align-items: center;
    gap: 9px;
    margin-bottom: 2rem;
    position: relative;
  }
  .modal-logo-icon {
    width: 34px; height: 34px;
    border-radius: 9px;
    background: linear-gradient(135deg, #c03a7e, #7b2fff);
    display: flex; align-items: center; justify-content: center;
    font-size: 16px;
  }
  .modal-logo-text {
    font-family: 'DM Serif Display', serif;
    font-size: 1.1rem;
    letter-spacing: -0.02em;
  }
  .modal-logo-text span { color: var(--accent); }

  .modal-tagline {
    font-family: 'DM Serif Display', serif;
    font-size: 1.45rem;
    font-weight: 400;
    line-height: 1.25;
    letter-spacing: -0.02em;
    margin-bottom: 0.75rem;
    position: relative;
  }
  .modal-tagline em { font-style: italic; color: var(--accent); }

  .modal-sub {
    font-size: 0.8rem;
    color: var(--muted);
    line-height: 1.65;
    margin-bottom: 2rem;
    position: relative;
  }

  /* Benefits list */
  .benefits {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
    position: relative;
    flex: 1;
  }
  .benefit {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 0.8rem;
    color: #c4b5d3;
    line-height: 1.5;
  }
  .benefit-icon {
    width: 24px; height: 24px;
    border-radius: 7px;
    background: var(--tag-bg);
    border: 1px solid var(--tag-border);
    display: flex; align-items: center; justify-content: center;
    font-size: 11px;
    flex-shrink: 0;
    margin-top: 1px;
  }
  .benefit strong { color: var(--text); }

  /* Social proof */
  .social-proof {
    margin-top: 1.75rem;
    position: relative;
    display: flex;
    align-items: center;
    gap: 10px;
  }
  .sp-avatars {
    display: flex;
  }
  .sp-avatar {
    width: 28px; height: 28px;
    border-radius: 50%;
    border: 2px solid var(--bg3);
    overflow: hidden;
    background: var(--bg4);
    margin-left: -8px;
  }
  .sp-avatar:first-child { margin-left: 0; }
  .sp-avatar img { width: 100%; height: 100%; object-fit: cover; }
  .sp-text { font-size: 0.72rem; color: var(--muted); line-height: 1.45; }
  .sp-text strong { color: var(--online); }

  /* ===================== RIGHT PANEL ===================== */
  .modal-right {
    padding: 2rem 2.25rem;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
  }

  /* STEPS INDICATOR */
  .steps-bar {
    display: flex;
    align-items: center;
    gap: 0;
    margin-bottom: 2rem;
  }
  .step-dot {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 0.75rem;
    color: var(--muted);
    transition: color 0.3s;
  }
  .step-dot.active { color: var(--text); }
  .step-dot.done { color: var(--online); }
  .step-num {
    width: 26px; height: 26px;
    border-radius: 50%;
    background: var(--bg3);
    border: 1px solid var(--border);
    display: flex; align-items: center; justify-content: center;
    font-size: 0.72rem;
    font-weight: 500;
    transition: all 0.3s;
    flex-shrink: 0;
  }
  .step-dot.active .step-num {
    background: var(--accent);
    border-color: var(--accent);
    color: #fff;
    box-shadow: 0 0 0 4px rgba(224,82,154,0.15);
  }
  .step-dot.done .step-num {
    background: rgba(74,222,128,0.15);
    border-color: rgba(74,222,128,0.3);
    color: var(--online);
  }
  .step-line {
    flex: 1;
    height: 1px;
    background: var(--border);
    margin: 0 8px;
    position: relative;
    overflow: hidden;
  }
  .step-line::after {
    content: '';
    position: absolute;
    left: 0; top: 0;
    height: 100%;
    width: 0%;
    background: var(--accent);
    transition: width 0.4s ease;
  }
  .step-line.done::after { width: 100%; }

  /* STEP PANELS */
  .step-panel {
    display: none;
    flex-direction: column;
    gap: 0;
    animation: fadeSlideIn 0.35s ease;
  }
  .step-panel.active { display: flex; }

  @keyframes fadeSlideIn {
    from { opacity: 0; transform: translateX(18px); }
    to   { opacity: 1; transform: translateX(0); }
  }
  @keyframes fadeSlideBack {
    from { opacity: 0; transform: translateX(-18px); }
    to   { opacity: 1; transform: translateX(0); }
  }
  .step-panel.back { animation: fadeSlideBack 0.3s ease; }

  .step-title {
    font-family: 'DM Serif Display', serif;
    font-size: 1.55rem;
    font-weight: 400;
    letter-spacing: -0.025em;
    line-height: 1.2;
    margin-bottom: 0.35rem;
  }
  .step-title em { font-style: italic; color: var(--accent); }
  .step-subtitle {
    font-size: 0.82rem;
    color: var(--muted);
    line-height: 1.6;
    margin-bottom: 1.75rem;
  }

  /* FORM ELEMENTS */
  .form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 14px;
  }
  .form-group:last-of-type { margin-bottom: 0; }

  label {
    font-size: 0.76rem;
    color: var(--muted);
    letter-spacing: 0.03em;
    text-transform: uppercase;
  }

  input[type="text"],
  input[type="email"],
  input[type="password"],
  input[type="date"],
  select,
  textarea {
    background: var(--bg3);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text);
    font-family: 'DM Sans', sans-serif;
    font-size: 0.9rem;
    padding: 11px 14px;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
    width: 100%;
    -webkit-appearance: none;
  }
  input::placeholder { color: #4a3f57; }
  input:focus, select:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(224,82,154,0.12);
  }
  input.error { border-color: var(--error); }
  input.valid { border-color: rgba(74,222,128,0.45); }

  select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%239585a8' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 36px;
    cursor: pointer;
  }
  select option { background: #1a1624; color: var(--text); }

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

  /* Password strength */
  .pw-strength {
    display: flex;
    gap: 4px;
    margin-top: 6px;
  }
  .pw-bar {
    flex: 1;
    height: 3px;
    border-radius: 2px;
    background: var(--bg4);
    transition: background 0.3s;
  }
  .pw-bar.weak { background: var(--error); }
  .pw-bar.medium { background: var(--gold, #f5c46b); }
  .pw-bar.strong { background: var(--online); }
  .pw-label { font-size: 0.7rem; color: var(--muted); margin-top: 4px; }

  /* Gender / type choices */
  .choice-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-bottom: 14px;
  }
  .choice-btn {
    background: var(--bg3);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 14px 8px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s;
    font-family: 'DM Sans', sans-serif;
  }
  .choice-btn:hover { border-color: var(--border-hover); }
  .choice-btn.selected {
    background: var(--tag-bg);
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(224,82,154,0.10);
  }
  .choice-icon { font-size: 1.4rem; display: block; margin-bottom: 5px; }
  .choice-label { font-size: 0.75rem; color: var(--muted); }
  .choice-btn.selected .choice-label { color: var(--rose); }

  /* Checkbox toggle */
  .check-row {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 12px;
    cursor: pointer;
  }
  .check-row input[type="checkbox"] {
    width: 18px; height: 18px;
    flex-shrink: 0;
    accent-color: var(--accent);
    margin-top: 1px;
    cursor: pointer;
    border-radius: 4px;
  }
  .check-label {
    font-size: 0.78rem;
    color: var(--muted);
    line-height: 1.55;
  }
  .check-label a { color: var(--rose); text-decoration: none; }
  .check-label a:hover { text-decoration: underline; }

  /* Age gate chips */
  .age-chips {
    display: flex;
    gap: 8px;
    margin-bottom: 14px;
    flex-wrap: wrap;
  }
  .age-chip {
    background: var(--bg3);
    border: 1px solid var(--border);
    border-radius: 50px;
    padding: 8px 18px;
    font-size: 0.82rem;
    color: var(--muted);
    cursor: pointer;
    transition: all 0.2s;
    font-family: 'DM Sans', sans-serif;
  }
  .age-chip:hover { border-color: var(--border-hover); }
  .age-chip.selected {
    background: var(--tag-bg);
    border-color: var(--accent);
    color: var(--rose);
  }

  /* Error message */
  .field-error {
    font-size: 0.72rem;
    color: var(--error);
    margin-top: 3px;
    display: none;
  }
  .field-error.show { display: block; }

  /* Global notice */
  .notice {
    background: var(--bg3);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 10px 14px;
    font-size: 0.75rem;
    color: var(--muted);
    line-height: 1.55;
    margin-top: 8px;
    display: flex;
    gap: 8px;
    align-items: flex-start;
  }
  .notice-icon { flex-shrink: 0; margin-top: 1px; }

  /* BUTTONS */
  .btn-next {
    width: 100%;
    background: linear-gradient(135deg, #c03a7e 0%, #7b2fff 100%);
    color: #fff;
    border: none;
    padding: 13px;
    border-radius: 10px;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    font-family: 'DM Sans', sans-serif;
    margin-top: 1.5rem;
    transition: opacity 0.2s, transform 0.15s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    text-decoration: none;
  }
  .btn-next:hover { opacity: 0.9; transform: translateY(-1px); }
  .btn-next:disabled { opacity: 0.45; cursor: not-allowed; transform: none; }

  .btn-back {
    background: none;
    border: none;
    color: var(--muted);
    font-size: 0.8rem;
    cursor: pointer;
    font-family: 'DM Sans', sans-serif;
    padding: 6px 0;
    margin-top: 0.75rem;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: color 0.2s;
  }
  .btn-back:hover { color: var(--text); }

  .btn-bottom-row {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  /* Success step */
  .success-icon {
    width: 64px; height: 64px;
    border-radius: 50%;
    background: rgba(74,222,128,0.12);
    border: 1px solid rgba(74,222,128,0.3);
    display: flex; align-items: center; justify-content: center;
    font-size: 28px;
    margin: 0 auto 1.5rem;
    animation: popIn 0.5s cubic-bezier(.22,.68,0,1.4);
  }
  @keyframes popIn {
    from { transform: scale(0.4); opacity: 0; }
    to   { transform: scale(1);   opacity: 1; }
  }
  .success-title {
    font-family: 'DM Serif Display', serif;
    font-size: 1.6rem;
    font-weight: 400;
    text-align: center;
    margin-bottom: 0.5rem;
    letter-spacing: -0.02em;
  }
  .success-sub {
    text-align: center;
    font-size: 0.85rem;
    color: var(--muted);
    line-height: 1.6;
    margin-bottom: 2rem;
  }
  .success-benefits {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 1.75rem;
  }
  .sb-item {
    background: var(--bg3);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 12px 14px;
    font-size: 0.78rem;
    display: flex;
    align-items: flex-start;
    gap: 8px;
    color: #c4b5d3;
  }
  .sb-item strong { color: var(--text); display: block; margin-bottom: 1px; }

  /* divider */
  .divider {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 1.25rem 0;
    color: var(--muted);
    font-size: 0.75rem;
  }
  .divider::before, .divider::after {
    content: ''; flex: 1; height: 1px;
    background: var(--border);
  }

  /* Progress spinner for final step */
  .spinner {
    display: inline-block;
    width: 16px; height: 16px;
    border: 2px solid rgba(255,255,255,0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin 0.7s linear infinite;
    flex-shrink: 0;
  }
  @keyframes spin { to { transform: rotate(360deg); } }

  @media (max-width: 720px) {
    .modal { grid-template-columns: 1fr; max-height: 98vh; }
    .modal-left { display: none; }
    .modal-right { padding: 1.5rem; }
    .form-row { grid-template-columns: 1fr; }
    .choice-grid { grid-template-columns: repeat(3, 1fr); }
    .success-benefits { grid-template-columns: 1fr; }
  }