  /* =========== Video lightbox modal =========== */
  .video-modal-bd {
    position: fixed; inset: 0; z-index: 250;
    background: rgba(4,12,24,0.88);
    backdrop-filter: blur(10px);
    display: none;
    align-items: center; justify-content: center;
    padding: clamp(16px, 4vw, 48px);
  }
  .video-modal-bd.open { display: flex; animation: fadeIn .2s ease; }
  .video-modal {
    position: relative;
    background: #000;
    border-radius: 4px;
    box-shadow: 0 60px 120px -30px rgba(0,0,0,0.7);
    width: min(1180px, 92vw);
    aspect-ratio: 16 / 9;
    max-height: 88vh;
    animation: rise .3s cubic-bezier(.2,.8,.2,1);
  }
  .video-modal.is-portrait {
    width: min(480px, 92vw);
    aspect-ratio: 9 / 16;
  }
  .video-modal-frame,
  .video-modal-frame iframe {
    position: absolute; inset: 0;
    width: 100%; height: 100%;
    border: 0;
  }
  .video-modal-close {
    position: absolute; top: -42px; right: 0;
    z-index: 2;
    background: transparent;
    border: 1px solid rgba(247,245,240,0.6);
    color: var(--ivory);
    width: 32px; height: 32px;
    display: grid; place-items: center;
    cursor: pointer;
    font-size: 16px;
    transition: background .2s, color .2s, border-color .2s;
  }
  .video-modal-close:hover {
    background: var(--accent); color: var(--navy-deep); border-color: var(--accent);
  }
  .video-modal-close:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 3px;
  }
  /* Tap-to-play fallback — shown when iOS or another mobile browser
     refuses muted autoplay even with playsinline. Clicking it triggers
     play() inside a user gesture, which iOS always allows. */
  .video-modal-tap {
    position: absolute; inset: 0; z-index: 3;
    display: none;
    align-items: center; justify-content: center;
    background: rgba(8,22,41,0.35);
    border: 0; padding: 0; margin: 0;
    color: var(--ivory);
    font-family: var(--cond); font-weight: 700;
    font-size: 14px; letter-spacing: 0.22em; text-transform: uppercase;
    cursor: pointer;
    pointer-events: none;
  }
  .video-modal-tap.show { display: flex; pointer-events: auto; }
  .video-modal-tap span {
    background: rgba(8,22,41,0.78);
    padding: 14px 22px;
    border-left: 2px solid var(--accent);
    backdrop-filter: blur(8px);
  }

  /* =========== Modal =========== */
  .modal-bd {
    position: fixed; inset: 0; z-index: 210;
    background: rgba(8,22,41,0.72); backdrop-filter: blur(8px);
    display: none;
    align-items: center; justify-content: center;
    padding: 24px;
  }
  .modal-bd.open { display: flex; animation: fadeIn .2s ease; }
  @keyframes fadeIn { from{opacity:0;} to{opacity:1;} }

  .modal {
    background: var(--paper);
    width: min(680px, 100%);
    max-height: 92vh; overflow: auto;
    box-shadow: 0 40px 100px -30px rgba(8,22,41,0.65);
    position: relative;
    animation: rise .3s cubic-bezier(.2,.8,.2,1);
    border-top: 3px solid var(--accent);
  }
  @keyframes rise { from{transform:translateY(12px);opacity:0;} to{transform:translateY(0);opacity:1;} }

  /* ---- Step rail (horizontal progress) ---- */
  .modal-rail {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    background: var(--cream);
    border-bottom: 1px solid var(--rule);
    padding: 14px 20px;
    gap: 8px;
    font-family: var(--mono);
    font-size: 10px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
  }
  .modal-rail .step {
    display: flex; align-items: center; gap: 8px;
    color: var(--steel-deep);
    padding: 6px 10px;
    border-left: 2px solid var(--rule-strong);
    transition: color .2s, border-color .2s;
  }
  .modal-rail .step .n {
    font-weight: 700; color: var(--steel-deep);
  }
  .modal-rail .step .t { opacity: 0.9; }
  .modal-rail .step.active {
    color: var(--navy-deep);
    border-left-color: var(--accent);
  }
  .modal-rail .step.active .n { color: var(--accent); }
  .modal-rail .step.done {
    color: var(--navy-500);
    border-left-color: var(--navy-500);
  }
  .modal-rail .step.done .n { color: var(--navy-500); }
  .modal-rail .step.done .t::after {
    content: " ✓"; color: var(--accent);
  }

  .modal-head {
    padding: 26px 32px 18px;
    border-bottom: 1px solid var(--rule);
    display: flex; justify-content: space-between; align-items: flex-start; gap: 16px;
  }
  .modal-head h3 {
    font-family: var(--display); font-weight: 600;
    font-size: 30px; text-transform: uppercase;
    line-height: 1; margin-top: 6px; letter-spacing: -0.005em;
  }
  .modal-desc {
    font-family: var(--sans); font-size: 12.5px;
    color: var(--steel-deep);
    margin-top: 8px; line-height: 1.5;
    max-width: 48ch;
  }
  .modal-close {
    appearance: none; border: 1px solid var(--rule-strong);
    background: transparent; width: 34px; height: 34px;
    cursor: pointer; color: var(--navy-500);
    display: grid; place-items: center; font-size: 14px;
    flex: 0 0 auto;
  }
  .modal-close:hover { background: var(--navy-deep); color: var(--ivory); border-color: var(--navy-deep); }

  /* ---- Steps (show/hide) ---- */
  .modal-body { padding: 24px 32px 28px; }
  .modal-step { display: none; }
  .modal-step.is-active { display: block; animation: stepFade .28s ease; }
  @keyframes stepFade { from{opacity:0;transform:translateY(4px);} to{opacity:1;transform:translateY(0);} }

  .mb-label {
    font-family: var(--mono); font-size: 10px;
    letter-spacing: 0.22em; text-transform: uppercase;
    color: var(--steel-deep); margin: 10px 0 10px;
  }

  .m-presets { display: grid; grid-template-columns: repeat(3,1fr); gap: 8px; }
  .m-preset {
    appearance: none; cursor: pointer;
    background: var(--paper);
    border: 1px solid var(--rule-strong);
    font-family: var(--display); font-weight: 500;
    font-size: 22px; color: var(--navy-deep);
    padding: 14px;
    transition: all .15s;
    letter-spacing: -0.01em;
  }
  .m-preset:hover { border-color: var(--navy-deep); }
  .m-preset.active { background: var(--navy-deep); color: var(--ivory); border-color: var(--navy-deep); }
  .m-preset.other { grid-column: span 3; display: flex; align-items: center; gap: 8px; padding: 12px 16px; }
  .m-preset.other input {
    flex: 1; background: transparent; border: 0; outline: 0;
    font-family: var(--display); font-size: 22px; color: inherit; padding: 0; font-weight: 500;
  }

  /* ---- Frequency tabs inside modal ---- */
  .m-freq {
    display: grid;
    grid-template-columns: repeat(3,1fr);
    border: 1px solid var(--rule-strong);
    background: var(--paper);
  }
  .m-freq-btn {
    appearance: none; cursor: pointer;
    background: transparent; border: 0;
    font-family: var(--cond); font-weight: 600;
    font-size: 12px; letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--steel-deep);
    padding: 14px 10px;
    border-right: 1px solid var(--rule);
    transition: all .15s;
  }
  .m-freq-btn:last-child { border-right: 0; }
  .m-freq-btn:hover { color: var(--navy-deep); }
  .m-freq-btn.active {
    background: var(--navy-deep);
    color: var(--ivory);
  }

  /* ---- Impact mini-copy ---- */
  .m-impact {
    margin-top: 14px;
    padding: 12px 14px;
    background: #FFF9EC;
    border-left: 2px solid var(--accent);
    font-family: var(--sans); font-size: 13px;
    color: var(--navy-deep);
    letter-spacing: 0.01em;
  }

  .split { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
  .field {
    border: 1px solid var(--rule-strong);
    padding: 14px; background: #fff;
    font-family: var(--sans); font-size: 14px;
    color: var(--navy-deep); width: 100%;
    outline: 0;
    transition: border-color .15s, box-shadow .15s;
  }
  .field:focus { border-color: var(--navy-deep); box-shadow: 0 0 0 3px rgba(14,35,64,0.08); }
  .stripe-wrap {
    border: 1px solid var(--rule-strong);
    padding: 14px; background: #fff;
  }
  .stripe-wrap.focus { border-color: var(--navy-deep); box-shadow: 0 0 0 3px rgba(14,35,64,0.08); }
  #card-errors {
    margin-top: 8px;
    font-family: var(--sans); font-size: 12px;
    color: #C8342C; min-height: 16px;
  }

  /* ---- Checkboxes ---- */
  .m-check {
    display: flex; align-items: center; gap: 10px;
    margin: 10px 0;
    font-family: var(--sans); font-size: 13px;
    color: var(--navy-deep);
    cursor: pointer;
    user-select: none;
  }
  .m-check input[type="checkbox"] {
    width: 16px; height: 16px;
    accent-color: var(--navy-deep);
    cursor: pointer;
  }
  .m-hidden { display: none !important; }
  #m-honoree { margin: 2px 0 10px; }

  .m-summary {
    margin-top: 18px;
    padding: 16px;
    border: 1px dashed var(--rule-strong);
    background: var(--cream);
    display: flex; justify-content: space-between; align-items: baseline;
    font-family: var(--mono); font-size: 10.5px;
    letter-spacing: 0.2em; text-transform: uppercase;
    color: var(--navy-500);
  }
  .m-summary .total {
    font-family: var(--display); font-weight: 600;
    font-size: 28px; color: var(--navy-deep);
    text-transform: none; letter-spacing: -0.02em;
  }

  .m-submit {
    margin-top: 18px; width: 100%;
    appearance: none; border: 0; cursor: pointer;
    background: var(--navy-deep); color: var(--ivory);
    font-family: var(--cond); font-weight: 700; font-size: 13px;
    letter-spacing: 0.22em; text-transform: uppercase;
    padding: 18px;
    transition: background .15s, color .15s, border-color .15s;
  }
  .m-submit:hover { background: var(--accent); color: var(--navy-deep); }
  .m-submit[disabled] { opacity: 0.6; cursor: not-allowed; }
  .m-submit.ghost {
    background: transparent;
    color: var(--navy-deep);
    border: 1px solid var(--rule-strong);
  }
  .m-submit.ghost:hover {
    background: var(--navy-deep);
    color: var(--ivory);
    border-color: var(--navy-deep);
  }
  .m-actions {
    margin-top: 14px;
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 10px;
  }
  .m-actions .m-submit { margin-top: 0; }

  .m-disc {
    margin-top: 12px; text-align: center;
    font-family: var(--mono); font-size: 9.5px;
    letter-spacing: 0.18em; text-transform: uppercase;
    color: var(--steel-deep);
  }

  /* ---- Wallet buttons (Apple / Google Pay mock) ---- */
  .m-wallets {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 12px;
  }
  .m-wallet {
    appearance: none; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    gap: 8px;
    padding: 14px 16px;
    border: 1px solid var(--rule-strong);
    background: #000;
    color: #fff;
    font-family: var(--sans); font-size: 13px;
    font-weight: 500;
    transition: opacity .15s;
  }
  .m-wallet.gpay {
    background: #fff;
    color: #3c4043;
    border-color: #dadce0;
  }
  .m-wallet:hover { opacity: 0.86; }
  .m-wallet .w-label { font-weight: 400; opacity: 0.9; }
  .m-wallet .w-brand {
    font-family: var(--sans); font-weight: 600;
    display: inline-flex; align-items: center;
  }
  .m-wallet .w-brand.apple::before {
    content: "";
    display: inline-block;
    width: 14px; height: 16px;
    background: currentColor;
    -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 384 512'><path d='M318.7 268.7c-.2-36.7 16.4-64.4 50-84.8-18.8-26.9-47.2-41.7-84.7-44.6-35.5-2.8-74.3 20.7-88.5 20.7-15 0-49.4-19.7-76.4-19.7C63.3 141.2 4 184.8 4 273.5q0 39.3 14.4 81.2c12.8 36.7 59 126.7 107.2 125.2 25.2-.6 43-17.9 75.8-17.9 31.8 0 48.3 17.9 76.4 17.9 48.6-.7 90.4-82.5 102.6-119.3-65.2-30.7-61.7-90-61.7-91.9zm-56.6-164.2c27.3-32.4 24.8-61.9 24-72.5-24.1 1.4-52 16.4-67.9 34.9-17.5 19.8-27.8 44.3-25.6 71.9 26.1 2 49.9-11.4 69.5-34.3z'/></svg>") center/contain no-repeat;
            mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 384 512'><path d='M318.7 268.7c-.2-36.7 16.4-64.4 50-84.8-18.8-26.9-47.2-41.7-84.7-44.6-35.5-2.8-74.3 20.7-88.5 20.7-15 0-49.4-19.7-76.4-19.7C63.3 141.2 4 184.8 4 273.5q0 39.3 14.4 81.2c12.8 36.7 59 126.7 107.2 125.2 25.2-.6 43-17.9 75.8-17.9 31.8 0 48.3 17.9 76.4 17.9 48.6-.7 90.4-82.5 102.6-119.3-65.2-30.7-61.7-90-61.7-91.9zm-56.6-164.2c27.3-32.4 24.8-61.9 24-72.5-24.1 1.4-52 16.4-67.9 34.9-17.5 19.8-27.8 44.3-25.6 71.9 26.1 2 49.9-11.4 69.5-34.3z'/></svg>") center/contain no-repeat;
  }
  .m-wallet .w-brand.apple::after {
    content: "Pay";
    font-weight: 600; margin-left: 4px;
  }
  .m-wallet .w-brand.google {
    font-weight: 600;
    background: linear-gradient(90deg, #4285F4 0 25%, #EA4335 25% 50%, #FBBC05 50% 75%, #34A853 75% 100%);
    -webkit-background-clip: text;
            background-clip: text;
    color: transparent;
  }

  .m-divider {
    position: relative;
    text-align: center;
    margin: 18px 0 14px;
  }
  .m-divider::before {
    content: "";
    position: absolute; left: 0; right: 0; top: 50%;
    height: 1px; background: var(--rule);
  }
  .m-divider span {
    position: relative;
    padding: 0 14px;
    background: var(--paper);
    font-family: var(--mono); font-size: 9.5px;
    letter-spacing: 0.22em; text-transform: uppercase;
    color: var(--steel-deep);
  }

  /* ---- Success screen ---- */
  .modal-success {
    text-align: center;
    padding: 48px 32px 40px;
  }
  .modal-success.is-active { display: block; }
  .success-mark {
    display: grid; place-items: center;
    width: 92px; height: 92px;
    margin: 0 auto 18px;
    border-radius: 50%;
    background: #FFF9EC;
    border: 1px solid var(--accent);
    animation: pop .45s cubic-bezier(.2,1.2,.3,1);
  }
  @keyframes pop { from{transform:scale(.8);opacity:0;} to{transform:scale(1);opacity:1;} }

  .success-title {
    font-family: var(--display); font-weight: 600;
    font-size: 36px; text-transform: uppercase;
    letter-spacing: -0.005em;
    color: var(--navy-deep);
    margin-bottom: 8px;
  }
  .success-sub {
    font-family: var(--sans); font-size: 14px;
    color: var(--navy-500);
    line-height: 1.6;
    max-width: 44ch;
    margin: 0 auto 22px;
  }
  .success-sub strong { color: var(--navy-deep); font-weight: 600; }

  .success-meta {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin: 22px 0 12px;
    text-align: left;
    border-top: 1px solid var(--rule);
    border-bottom: 1px solid var(--rule);
    padding: 16px 0;
  }
  .success-meta > div {
    display: flex; flex-direction: column;
    gap: 4px;
    padding: 0 12px;
    border-right: 1px solid var(--rule);
  }
  .success-meta > div:last-child { border-right: 0; }
  .success-meta .l {
    font-family: var(--mono); font-size: 9px;
    letter-spacing: 0.22em; text-transform: uppercase;
    color: var(--steel-deep);
  }
  .success-meta .v {
    font-family: var(--sans); font-size: 12.5px;
    font-weight: 500;
    color: var(--navy-deep);
  }
