/* 420 Plugins — Confirmation page (modal + UI polish) */

/* ---------- Force-password modal ---------- */
body.ra-needs-password .wp-site-blocks{
  filter: blur(6px);
  pointer-events: none;
  user-select: none;
}
.ra-pw-modal{
  position: fixed; inset: 0;
  display: flex; align-items: center; justify-content: center;
  background: rgba(12,15,17,.65);
  backdrop-filter: blur(2px);
  z-index: 9999;
}
.ra-pw-box{
  width: min(520px, 92vw);
  background: #0f1318;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 16px;
  padding: 22px;
  box-shadow: 0 18px 60px rgba(0,0,0,.45);
  color: #e9eef5;
}
.ra-pw-box h2{ margin: 0 0 8px; font-size: 22px; font-weight: 800; }
.ra-pw-box p.helper{ margin: 0 0 16px; color:#9aa6b2; }
.ra-pw-form label{ display:block; font-weight:600; margin: 12px 0 6px; }
.ra-pw-form input[type="password"]{
  width: 100%;
  background:#151a21; border:1px solid rgba(255,255,255,.12);
  color:#e9eef5; border-radius:12px; padding:12px 14px; line-height:1.2;
}
.ra-pw-actions{ display:flex; justify-content:flex-end; gap:10px; margin-top:16px; }
.ra-pw-submit{
  appearance:none; cursor:pointer; border:0; border-radius:12px; padding:12px 16px; font-weight:700;
  background:linear-gradient(180deg,#9a4cff,#7b2ef5); color:#fff;
}
.ra-pw-error{ margin-top:10px; color:#ff8f8f; font-weight:600; }

/* ---------- **NEW**: Second-chance opt-in modal ---------- */
.ra-optin-modal{
  position: fixed; inset: 0;
  display: flex; align-items: center; justify-content: center;
  background: rgba(12,15,17,.65);
  backdrop-filter: blur(2px);
  z-index: 9999;
}
.ra-optin-box{
  width: min(560px, 94vw);
  background: #0f1318;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 16px;
  padding: 22px;
  box-shadow: 0 18px 60px rgba(0,0,0,.45);
  color: #e9eef5;
}
.ra-optin-box h2{ margin: 0 0 8px; font-size: 22px; font-weight: 800; }
.ra-optin-box p.helper{ margin: 0 0 14px; color:#9aa6b2; }
.ra-optin-form .chk{
  display:flex; align-items:flex-start; gap:10px;
  padding: 10px 0 2px;
}
.ra-optin-form .chk input{ margin-top: 2px; accent-color:#b14fff; }
.ra-optin-form .chk span{ color:#dde3ea; font-weight:700; }
.ra-optin-actions{ display:flex; justify-content:flex-end; gap:10px; margin-top:16px; }
.ra-optin-yes, .ra-optin-skip{
  appearance:none; cursor:pointer; border:0; border-radius:12px; padding:10px 14px; font-weight:800;
}
.ra-optin-skip{
  background:#1a1f25; color:#d3d9e1; border:1px solid rgba(255,255,255,.12);
}
.ra-optin-yes{
  background:linear-gradient(180deg,#39f082,#2EE870); color:#0b0c10;
  box-shadow:0 10px 24px rgba(46,232,112,.25), 0 0 0 1px rgba(255,255,255,.05) inset;
}
.ra-optin-yes[disabled]{ opacity:.55; cursor:not-allowed; }
.ra-optin-error{ margin-top:10px; color:#ff8f8f; font-weight:600; }

/* ---------- Header trim on confirmation ---------- */
body.edd-success header.header .brand-pill{ display:none !important; }

/* ---------- Page layout ---------- */
body.edd-success .container{ width:min(900px,92vw); max-width:900px; }

/* Hero heading */
.ra-hero{ margin:28px auto 18px; text-align:center; }
.ra-hero h1{
  margin:0; font-size:clamp(32px, 5vw, 58px); font-weight:900; letter-spacing:.01em;
  background:linear-gradient(90deg,#34e2e4,#8A5CF6 45%,#2EE870);
  -webkit-background-clip:text; background-clip:text; color:transparent;
}
.ra-hero p{ margin:.5rem 0 0; color:#A7B0B7; }

/* Cards (order details) */
body.edd-success .edd-blocks-receipt__items,
body.edd-success .edd-blocks-receipt__totals{
  background:#0f1318; border:1px solid rgba(255,255,255,.10);
  border-radius:16px; padding:20px; margin:18px auto;
  box-shadow:0 18px 60px rgba(0,0,0,.35);
}
body.edd-success .edd-blocks__row{ gap:12px; }
body.edd-success .edd-blocks-receipt__row-item{ border-bottom:1px solid rgba(255,255,255,.06); }
body.edd-success .edd-blocks-receipt__row-item:last-child{ border-bottom:none; }
body.edd-success .edd-blocks__row-label{ color:#cfd6df; font-weight:600; }
body.edd-success .edd-blocks__row-value{ color:#e9eef5; }

/* Hide duplicated file list & license rows in receipt (integrated into steps) */
body.edd-success ul.edd_purchase_receipt_files{ display:none !important; }
body.edd-success .edd-blocks-receipt__row-item--license-key{ display:none !important; }

/* Hide “View Order Details” block per request */
body.edd-success .edd-blocks__confirmation-details{ display:none !important; }

/* ---------- Quick Start (stacked 1–2–3) ---------- */
.ra-quickstart{
  width:min(900px,92vw);
  margin:22px auto 16px;
  padding:18px;
  border-radius:16px;
  background:
    linear-gradient(180deg, rgba(15,19,24,.86), rgba(15,19,24,.92)),
    radial-gradient(80% 120% at 0% 0%, rgba(177,79,255,.14), transparent 62%),
    radial-gradient(80% 120% at 100% 0%, rgba(0,224,198,.12), transparent 62%);
  border:1px solid rgba(255,255,255,.12);
  box-shadow:0 18px 60px rgba(0,0,0,.35);
  color:#e9eef5;
}
.ra-quickstart .qs-title{
  margin:2px 0 12px; font-weight:900; font-size:clamp(18px,2.3vw,22px); letter-spacing:.01em;
}
.ra-quickstart .qs-rows{ display:flex; flex-direction:column; gap:14px; margin:0; padding:0; list-style:none; }
.ra-quickstart .qs-row{
  display:flex; gap:12px; align-items:flex-start;
  background:#0f1318; border:1px solid rgba(255,255,255,.10);
  border-radius:12px; padding:14px;
}
.ra-quickstart .qs-num{
  flex:0 0 30px; height:30px; width:30px; display:inline-grid; place-items:center;
  border-radius:999px; font-weight:900;
  background:#2EE870; color:#0b0c10;
  box-shadow:0 0 0 2px rgba(46,232,112,.22);
}
.ra-quickstart .qs-copy strong{ display:block; margin:0 0 4px; }
.ra-quickstart .qs-copy p{ margin:0; color:#A7B0B7; }
.ra-quickstart .qs-actions{ display:flex; flex-wrap:wrap; gap:10px; margin-top:10px; }

/* Buttons inside quick start */
.ra-quickstart .btn{
  appearance:none; cursor:pointer; border:0; border-radius:12px;
  padding:10px 14px; font-weight:900; letter-spacing:.2px; white-space:nowrap;
  background:linear-gradient(180deg,#39f082,#2EE870); color:#0b0c10;
  box-shadow:0 10px 24px rgba(46,232,112,.25), 0 0 0 1px rgba(255,255,255,.05) inset;
  transition:transform .12s ease, filter .2s ease, box-shadow .2s ease;
}
.ra-quickstart .btn:hover{ transform:translateY(-1px); filter:brightness(1.04); }
.ra-quickstart .btn:active{ transform:translateY(0); }
.ra-quickstart .btn[disabled]{ opacity:.55; cursor:not-allowed; }

/* License slab inside Step 3 */
.qs-license{
  display:flex; flex-wrap:wrap; align-items:center; gap:10px; margin-top:10px;
}
.qs-license .badge{
  display:block; width:100%; margin:0 0 6px;
  font-size:12px; letter-spacing:.06em; color:#cfd6df; text-transform:uppercase;
}
.qs-license .key{
  font:600 18px/1.2 ui-monospace,SFMono-Regular,Menlo,monospace;
  padding:10px 12px; border-radius:12px;
  background:#0b0e12;
  border:1px solid rgba(173,216,255,.35);
  color:#8fd1ff; word-break:break-all;
}

/* ---------- Misc cleanups ---------- */
body.edd-success #wpadminbar{ display:none !important; }
