
    /* ============================================================
       BRAND TOKENS — match the homepage / navigation design
       ============================================================ */
    :root {
      --primary: #795f49;
      --primary-dark: #5f4938;
      --accent: #b99573;
      --accent-soft: #e9dccd;
      --text: #2f2b28;
      --muted: #746d67;
      --line: #ece6df;
      --soft: #faf8f5;
      --white: #ffffff;
      --gold: #c79a5b;
      --success: #4c7a52;
      --shadow: 0 30px 80px rgba(47, 35, 24, 0.34);
      --radius: 16px;
    }

    * { box-sizing: border-box; margin: 0; padding: 0; }

    body {
      font-family: "PingFang SC", "Microsoft YaHei", "Noto Sans SC", Arial, sans-serif;
      color: var(--text);
      background: var(--soft);
      min-height: 100vh;
    }

    /* ============================================================
       OVERLAY
       ============================================================ */
    .popup-overlay {
      position: fixed; inset: 0; z-index: 9999;
      display: grid; place-items: center; padding: 20px;
      background: rgba(38, 28, 20, 0.62);
      backdrop-filter: blur(4px);
      opacity: 0; visibility: hidden;
      transition: opacity .35s ease, visibility .35s ease;
    }
    .popup-overlay.is-open { opacity: 1; visibility: visible; }

    /* ============================================================
       POPUP CARD
       ============================================================ */
    .popup {
      position: relative;
      width: min(880px, 100%);
      max-height: calc(100vh - 40px);
      display: grid;
      grid-template-columns: 0.92fr 1.08fr;
      background: var(--white);
      border-radius: var(--radius);
      overflow: hidden;
      box-shadow: var(--shadow);
      transform: translateY(24px) scale(0.97);
      opacity: 0;
      transition: transform .4s cubic-bezier(.2,.8,.2,1), opacity .4s ease;
    }
    .popup-overlay.is-open .popup { transform: translateY(0) scale(1); opacity: 1; }

    /* ---- close button ---- */
    .popup-close {
      position: absolute; top: 14px; right: 14px; z-index: 5;
      width: 36px; height: 36px; display: grid; place-items: center;
      border: none; border-radius: 50%; cursor: pointer;
      background: rgba(255,255,255,.85); color: var(--text);
      transition: background .2s ease, transform .2s ease;
    }
    .popup-close:hover { background: var(--white); transform: rotate(90deg); }
    .popup-close svg { width: 18px; height: 18px; }

    /* ============================================================
       LEFT — visual + value stack
       ============================================================ */
    .popup-visual {
      position: relative;
      padding: 34px 30px;
      color: var(--white);
      display: flex; flex-direction: column; justify-content: space-between;
      background:
        linear-gradient(160deg, rgba(95,73,56,.86), rgba(47,35,24,.92)),
        url("https://images.unsplash.com/photo-1616486338812-3dadae4b4ace?auto=format&fit=crop&w=1100&q=80")
        center / cover;
    }
    .visual-badge {
      align-self: flex-start;
      display: inline-flex; align-items: center; gap: 6px;
      padding: 6px 12px; border-radius: 999px;
      background: rgba(255,255,255,.16);
      border: 1px solid rgba(255,255,255,.28);
      font-size: 11px; font-weight: 700; letter-spacing: 1.5px;
      backdrop-filter: blur(4px);
    }
    .visual-headline { margin-top: 26px; }
    .visual-headline h2 {
      font-size: 27px; line-height: 1.32; letter-spacing: .5px; font-weight: 700;
    }
    .visual-headline .gift {
      color: #f0d6a8;
    }
    .visual-list {
      list-style: none; margin-top: 22px; display: grid; gap: 12px;
    }
    .visual-list li {
      display: flex; align-items: flex-start; gap: 10px;
      font-size: 13.5px; line-height: 1.5; color: rgba(255,255,255,.94);
    }
    .visual-list .tick {
      flex-shrink: 0; width: 20px; height: 20px; margin-top: 1px;
      display: grid; place-items: center; border-radius: 50%;
      background: var(--gold); color: #3a2c1c;
    }
    .visual-list .tick svg { width: 12px; height: 12px; }

    .visual-proof {
      margin-top: 26px; padding-top: 18px;
      border-top: 1px solid rgba(255,255,255,.18);
      display: flex; gap: 22px;
    }
    .proof-num { font-size: 21px; font-weight: 800; color: #f0d6a8; }
    .proof-label { font-size: 11px; color: rgba(255,255,255,.78); letter-spacing: .4px; }

    /* ============================================================
       RIGHT — the offer + form
       ============================================================ */
    .popup-form {
      padding: 38px 36px 32px;
      display: flex; flex-direction: column;
      overflow-y: auto;
    }
    .form-kicker {
      display: inline-flex; align-items: center; gap: 7px; align-self: flex-start;
      color: var(--primary); font-size: 12px; font-weight: 800; letter-spacing: 1.5px;
      margin-bottom: 12px;
    }
    .form-kicker .pulse {
      width: 8px; height: 8px; border-radius: 50%; background: #d8503e;
      box-shadow: 0 0 0 0 rgba(216,80,62,.6); animation: pulse 1.8s infinite;
    }
    @keyframes pulse {
      0%   { box-shadow: 0 0 0 0 rgba(216,80,62,.55); }
      70%  { box-shadow: 0 0 0 9px rgba(216,80,62,0); }
      100% { box-shadow: 0 0 0 0 rgba(216,80,62,0); }
    }
    .popup-form h3 {
      font-size: 25px; line-height: 1.3; letter-spacing: .3px; margin-bottom: 8px;
    }
    .popup-form h3 .hl {
      color: var(--primary); border-bottom: 3px solid var(--accent-soft);
    }
    .form-sub { color: var(--muted); font-size: 13.5px; line-height: 1.6; margin-bottom: 18px; }

    /* ---- response note ---- */
    .scarcity {
      display: flex; align-items: center; justify-content: space-between; gap: 12px;
      padding: 11px 14px; margin-bottom: 20px;
      background: var(--soft); border: 1px solid var(--line); border-radius: 10px;
    }
    .scarcity-left { font-size: 12px; color: var(--muted); line-height: 1.4; }
    .scarcity-left b { color: var(--text); }
    /* ---- fields ---- */
    .field { margin-bottom: 13px; }
    .field label {
      display: block;
      margin: 0 0 6px;
      color: #5e554d;
      font-size: 12px;
      font-weight: 700;
    }
    .field input, .field select {
      width: 100%; height: 50px; padding: 0 15px;
      border: 1.5px solid var(--line); border-radius: 9px;
      font-size: 14.5px; font-family: inherit; color: var(--text);
      background: var(--white); transition: border-color .2s ease, box-shadow .2s ease;
    }
    .field input::placeholder { color: #a7a099; }
    .field input:focus, .field select:focus {
      outline: none; border-color: var(--accent);
      box-shadow: 0 0 0 3px rgba(185,149,115,.18);
    }
    .field select { appearance: none; cursor: pointer;
      background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23746d67' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
      background-repeat: no-repeat; background-position: right 14px center; background-size: 16px;
    }
    .field-error input { border-color: #d8503e; }
    .err-msg { display: none; margin-top: 5px; color: #d8503e; font-size: 11.5px; }
    .field-error .err-msg { display: block; }

    /* ---- submit ---- */
    .submit-btn {
      position: relative; overflow: hidden;
      width: 100%; height: 54px; margin-top: 6px; border: none; border-radius: 9px;
      cursor: pointer; color: var(--white);
      background: linear-gradient(180deg, #8a6c52, var(--primary-dark));
      font-size: 16px; font-weight: 800; letter-spacing: .6px;
      box-shadow: 0 12px 26px rgba(95,73,56,.32);
      transition: transform .15s ease, box-shadow .2s ease;
    }
    .submit-btn:hover { transform: translateY(-2px); box-shadow: 0 16px 32px rgba(95,73,56,.4); }
    .submit-btn:active { transform: translateY(0); }
    .submit-btn .shine {
      position: absolute; top: 0; left: -120%; width: 60%; height: 100%;
      background: linear-gradient(100deg, transparent, rgba(255,255,255,.35), transparent);
      animation: shine 3.2s infinite;
    }
    @keyframes shine { 0% { left: -120%; } 55%,100% { left: 130%; } }

    .form-reassure {
      display: flex; align-items: center; justify-content: center; gap: 7px;
      margin-top: 13px; color: var(--muted); font-size: 11.5px;
    }
    .form-consent {
      display: flex;
      align-items: flex-start;
      gap: 8px;
      margin-top: 12px;
      color: var(--muted);
      font-size: 11.5px;
      line-height: 1.5;
    }
    .form-consent input { width: auto; height: auto; margin-top: 2px; }
    .form-consent a { color: var(--primary); font-weight: 700; }
    .form-reassure svg { width: 13px; height: 13px; color: var(--success); }

    /* ============================================================
       SUCCESS STATE
       ============================================================ */
    .popup-success {
      display: none;
      grid-column: 1 / -1;
      padding: 56px 40px; text-align: center;
      flex-direction: column; align-items: center;
    }
    .popup.is-success .popup-visual,
    .popup.is-success .popup-form { display: none; }
    .popup.is-success { grid-template-columns: 1fr; }
    .popup.is-success .popup-success { display: flex; }
    .success-ring {
      width: 76px; height: 76px; margin-bottom: 22px;
      display: grid; place-items: center; border-radius: 50%;
      background: rgba(76,122,82,.12); color: var(--success);
      animation: pop .5s cubic-bezier(.2,1.4,.4,1);
    }
    @keyframes pop { 0% { transform: scale(0); } 100% { transform: scale(1); } }
    .success-ring svg { width: 38px; height: 38px; }
    .popup-success h3 { font-size: 24px; margin-bottom: 10px; }
    .popup-success p { color: var(--muted); font-size: 14px; line-height: 1.7; max-width: 380px; }
    .success-hotline {
      margin-top: 22px; padding: 12px 22px; border-radius: 999px;
      background: var(--soft); border: 1px solid var(--line);
      font-size: 14px; font-weight: 700; color: var(--primary);
    }

    /* ============================================================
       RESPONSIVE
       ============================================================ */
    @media (max-width: 720px) {
      .popup { grid-template-columns: 1fr; max-height: calc(100vh - 24px); }
      .popup-visual { padding: 26px 24px 22px; }
      .visual-headline { margin-top: 16px; }
      .visual-headline h2 { font-size: 22px; }
      .visual-list { gap: 9px; margin-top: 16px; }
      .visual-proof { margin-top: 18px; padding-top: 14px; }
      .popup-form { padding: 26px 24px; }
      .popup-form h3 { font-size: 21px; }
    }
    @media (max-width: 720px) and (max-height: 720px) {
      /* hide decorative list on short phones so the form stays above the fold */
      .visual-list, .visual-proof { display: none; }
      .visual-headline { margin-top: 10px; }
    }
  
