
  /* =============================================
     CHECKOUT MODAL
  ============================================= */
  .modal-backdrop {
    position: fixed; inset: 0; z-index: 500;
    background: rgba(28,38,32,0.72);
    backdrop-filter: blur(4px);
    display: flex; align-items: center; justify-content: center;
    padding: 1.5rem;
    opacity: 0; pointer-events: none;
    transition: opacity 0.25s ease;
  }
  .modal-backdrop.open { opacity: 1; pointer-events: all; }

  .modal {
    background: var(--white);
    border-radius: 6px;
    width: 100%; max-width: 520px;
    max-height: 90vh; overflow-y: auto;
    position: relative;
    transform: translateY(16px);
    transition: transform 0.25s ease;
    box-shadow: 0 24px 64px rgba(28,38,32,0.25);
  }
  .modal-backdrop.open .modal { transform: translateY(0); }

  .modal-header {
    padding: 1.8rem 2rem 1.2rem;
    border-bottom: 1px solid var(--ivory-dark);
    display: flex; justify-content: space-between; align-items: flex-start;
    gap: 1rem;
  }
  .modal-product-tag {
    font-size: 0.68rem; font-weight: 500; letter-spacing: 0.18em;
    text-transform: uppercase; color: var(--sage-dark);
    margin-bottom: 0.4rem;
  }
  .modal-product-name {
    font-family: var(--font-display); font-size: 1.35rem;
    font-weight: 400; color: var(--forest); line-height: 1.3;
  }
  .modal-close {
    background: none; border: none; cursor: pointer; font-size: 1.4rem;
    color: var(--slate-light); line-height: 1; padding: 0; flex-shrink: 0;
    margin-top: 0.1rem; transition: color 0.2s;
  }
  .modal-close:hover { color: var(--forest); }

  .modal-body { padding: 1.6rem 2rem; }

  .modal-price-row {
    display: flex; align-items: baseline; gap: 0.8rem; margin-bottom: 1.6rem;
  }
  .modal-price {
    font-family: var(--font-display); font-size: 2rem;
    font-weight: 400; color: var(--forest);
  }
  .modal-price-old {
    font-size: 0.95rem; color: var(--slate-light);
    text-decoration: line-through;
  }
  .modal-price-note {
    font-size: 0.78rem; color: var(--sage-dark);
    background: var(--sage-light); padding: 0.2rem 0.6rem;
    border-radius: 2px; margin-left: auto;
  }

  /* What's inside */
  .modal-includes {
    background: var(--ivory); border-radius: 4px;
    padding: 1rem 1.2rem; margin-bottom: 1.6rem;
  }
  .modal-includes-title {
    font-size: 0.7rem; font-weight: 500; letter-spacing: 0.15em;
    text-transform: uppercase; color: var(--text-muted); margin-bottom: 0.7rem;
  }
  .modal-includes ul {
    list-style: none; display: flex; flex-direction: column; gap: 0.45rem;
  }
  .modal-includes li {
    font-size: 0.87rem; font-weight: 300; color: var(--slate);
    display: flex; align-items: flex-start; gap: 0.55rem; line-height: 1.5;
  }
  .modal-includes li::before {
    content: '✦'; font-size: 0.55rem; color: var(--sage-dark);
    flex-shrink: 0; margin-top: 0.35rem;
  }

  /* Email field inside modal */
  .modal-field { margin-bottom: 1rem; }
  .modal-label {
    display: block; font-size: 0.8rem; font-weight: 400;
    color: var(--slate); margin-bottom: 0.4rem;
  }
  .modal-input {
    width: 100%; border: 1px solid var(--ivory-dark); border-radius: 2px;
    padding: 0.85rem 1rem; font-family: var(--font-body); font-size: 0.9rem;
    color: var(--text-main); background: var(--ivory); outline: none;
    transition: border-color 0.2s;
  }
  .modal-input:focus { border-color: var(--sage); }
  .modal-input.error { border-color: var(--rose); }

  .modal-pay-btn {
    width: 100%; background: var(--forest); color: var(--ivory);
    border: none; border-radius: 2px; padding: 1rem;
    font-family: var(--font-body); font-size: 0.95rem; font-weight: 400;
    letter-spacing: 0.04em; cursor: pointer; margin-top: 0.4rem;
    transition: background 0.2s;
    display: flex; align-items: center; justify-content: center; gap: 0.6rem;
  }
  .modal-pay-btn:hover:not(:disabled) { background: var(--sage-dark); }
  .modal-pay-btn:disabled { opacity: 0.6; cursor: not-allowed; }

  .modal-security {
    display: flex; align-items: center; justify-content: center;
    gap: 0.5rem; margin-top: 0.9rem;
    font-size: 0.74rem; color: var(--text-muted); text-align: center;
  }
  .modal-security::before { content: '🔒'; font-size: 0.7rem; }

  .modal-refund {
    text-align: center; margin-top: 0.6rem;
    font-size: 0.75rem; color: var(--text-muted);
  }

  /* Success state inside modal */
  .modal-success {
    text-align: center; padding: 2.5rem 1.5rem 2rem;
    display: none; flex-direction: column; align-items: center; gap: 0.8rem;
  }
  .modal-success.show { display: flex; }
  .modal-success-icon {
    width: 56px; height: 56px; border-radius: 50%;
    background: var(--sage-light); display: flex; align-items: center;
    justify-content: center; font-size: 1.6rem; margin-bottom: 0.4rem;
  }
  .modal-success h3 {
    font-family: var(--font-display); font-size: 1.5rem;
    font-weight: 400; color: var(--forest);
  }
  .modal-success p { font-size: 0.9rem; font-weight: 300; color: var(--slate); line-height: 1.7; }

  .modal-form-area { display: block; }
  .modal-form-area.hide { display: none; }

  

  @media (max-width: 540px) {
    .modal-body { padding: 1.2rem 1.4rem; }
    .modal-header { padding: 1.4rem 1.4rem 1rem; }
  }
