/* CardSkin-style paywall + checkout, in Pixora's purple/pink design (used by /rapduo3/ and /rapduo4/) */

/* Reserved-price bar with "Claim it" */
.cs-topbar { position: sticky; top: 0; z-index: 25; display: flex; align-items: center; justify-content: center; gap: 10px; padding: 9px 12px;
  background: rgba(24,14,40,.92); backdrop-filter: blur(10px); border-bottom: 1px solid rgba(180,108,255,.25); font-size: 13px; font-weight: 600; color: var(--muted); }
.cs-topbar b { color: var(--text); font-size: 15px; font-variant-numeric: tabular-nums; }
.cs-topbar button { background: var(--grad); color: #fff; font-weight: 800; font-size: 12px; padding: 5px 12px; border-radius: 999px; }
.cs-pw { position: relative; }
.cs-x { position: absolute; top: 6px; right: 16px; width: 32px; height: 32px; border-radius: 50%; background: rgba(255,255,255,.08); color: var(--muted); z-index: 2; }
.cs-h { margin: 14px 40px 16px; font-size: 26px; }

/* Phone mockup with the user's video */
.cs-phone { position: relative; width: 62%; max-width: 250px; margin: 14px auto 0; padding: 10px; border-radius: 38px;
  background: linear-gradient(160deg, #2c1f45, #120c1e); border: 2px solid rgba(255,255,255,.12);
  box-shadow: 0 30px 60px rgba(0,0,0,.55), 0 0 70px rgba(180,108,255,.25), inset 0 0 0 1px rgba(255,255,255,.05); animation: cs-rise .7s cubic-bezier(.2,1.2,.4,1) both; }
@keyframes cs-rise { from { transform: translateY(30px) rotate(-3deg); opacity: 0; } }
.cs-made { position: absolute; top: -12px; left: 50%; transform: translateX(-50%); z-index: 3; white-space: nowrap; font-size: 12px; font-weight: 800;
  padding: 4px 12px; border-radius: 999px; background: #fff; color: #1d1430; box-shadow: 0 6px 16px rgba(0,0,0,.35); }
.cs-screen { position: relative; border-radius: 28px; overflow: hidden; aspect-ratio: 9/17; background: #000; }
.cs-screen > video, .cs-screen > img:not(.rd-face) { width: 100%; height: 100%; object-fit: cover; object-position: center 30%; display: block; }
.cs-screen .rd-caption { font-size: 14px; bottom: 62px; white-space: nowrap; max-width: 92%; overflow: hidden; text-overflow: ellipsis; }
.cs-screen .rd-face { width: 40px; height: 40px; top: 30px; right: 10px; }
.cs-status { position: absolute; top: 0; left: 0; right: 0; z-index: 2; display: flex; justify-content: space-between; align-items: center; padding: 8px 16px; font-size: 11px; font-weight: 700;
  background: linear-gradient(rgba(0,0,0,.45), transparent); }
.cs-status i { width: 18px; height: 9px; border: 1.5px solid #fff; border-radius: 3px; }
.cs-shine { position: absolute; inset: 0; background: linear-gradient(115deg, transparent 35%, rgba(255,255,255,.22) 50%, transparent 65%); background-size: 260% 100%; animation: sweep 3.2s ease-in-out infinite; pointer-events: none; }
.cs-lock { position: absolute; left: 50%; bottom: 22px; transform: translateX(-50%); z-index: 3; white-space: nowrap; font-size: 12px; font-weight: 700;
  padding: 6px 12px; border-radius: 999px; background: rgba(0,0,0,.6); backdrop-filter: blur(8px); border: 1px solid rgba(255,255,255,.15); }

/* Plans */
.cs-plans { display: flex; flex-direction: column; gap: 14px; margin-top: 26px; }
.cs-plan, .cs-pm { position: relative; display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; padding: 16px 14px; border-radius: 18px;
  background: var(--card); border: 2px solid var(--line); transition: border-color .2s, background .2s, transform .1s; }
.cs-plan:active, .cs-pm:active { transform: scale(.99); }
.cs-plan.sel, .cs-pm.sel { border-color: #d7b8ff; background: linear-gradient(160deg, rgba(139,92,255,.22), rgba(255,95,162,.1)); box-shadow: 0 10px 30px rgba(139,92,255,.25); }
.cs-radio { width: 22px; height: 22px; border-radius: 50%; border: 2px solid rgba(255,255,255,.3); flex-shrink: 0; }
.sel > .cs-radio { border: 6px solid #fff; background: var(--accent); }
.cs-pn { flex: 1; }
.cs-pn b { display: block; font-size: 17px; }
.cs-pn small { color: var(--muted); font-size: 13px; }
.cs-pn s { opacity: .7; }
.cs-pd { text-align: center; border-radius: 12px; padding: 8px 10px; background: rgba(255,255,255,.06); min-width: 80px; }
.sel > .cs-pd { background: var(--grad); }
.cs-pd b { display: block; font-size: 22px; line-height: 1; }
.cs-pd sup { font-size: 11px; vertical-align: top; }
.cs-pd small { font-size: 11px; opacity: .85; }
.cs-badge { position: absolute; top: -11px; right: 14px; font-size: 10px; font-weight: 800; letter-spacing: .06em; padding: 3px 9px; border-radius: 6px; background: #fff; color: #1d1430; }
.cs-badge.sm { top: -9px; font-size: 9px; }

/* Plan summary */
.cs-sec { font-size: 21px; margin: 30px 0 12px; }
.cs-p { font-size: 14px; margin: -4px 0 12px; }
.cs-sum { border: 1px solid var(--line); border-radius: 18px; background: var(--card); overflow: hidden; }
.cs-sum div { display: flex; justify-content: space-between; gap: 12px; padding: 12px 14px; border-bottom: 1px solid var(--line); font-size: 14px; }
.cs-sum div:last-child { border: 0; }
.cs-sum span { color: var(--muted); } .cs-sum b { text-align: right; }

/* Inline payment methods */
.cs-paybox { margin-top: 22px; padding: 16px 12px; border-radius: 22px; background: linear-gradient(160deg, #241638, #170f26); border: 1px solid rgba(180,108,255,.3); display: flex; flex-direction: column; gap: 12px; }
.cs-pm { padding: 13px 12px; }
.cs-pm .cs-pn b { font-size: 16px; }
.pm-logo { flex-shrink: 0; font-size: 13px; font-weight: 700; padding: 5px 10px; border-radius: 7px; background: #fff; color: #000; }
.pm-apple { background: #000; color: #fff; border: 1px solid rgba(255,255,255,.3); }
.pm-paypal { background: #ffc439; } .pm-paypal b { color: #003087; } .pm-paypal i { color: #009cde; font-weight: 800; font-style: italic; }
.pm-card { background: transparent; font-size: 20px; padding: 0 4px; }
.cs-buy { margin-top: 6px; }
.cs-secure { text-align: center; font-size: 13px; color: var(--muted); font-weight: 600; }
.cs-legal { text-align: center; font-size: 12px; color: var(--muted); line-height: 1.5; } .cs-legal a { color: var(--muted); }

/* Locked templates grid */
.cs-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.cs-tile, .cs-more { position: relative; border-radius: 12px; overflow: hidden; aspect-ratio: 3/4; }
.cs-tile > video, .cs-tile > img { width: 100%; height: 100%; object-fit: cover; object-position: center 30%; display: block; filter: brightness(.75); }
.cs-tile span { position: absolute; top: 6px; right: 6px; font-size: 13px; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; background: rgba(0,0,0,.55); }
.cs-more { display: flex; flex-direction: column; align-items: center; justify-content: center; background: linear-gradient(160deg, rgba(139,92,255,.3), rgba(255,95,162,.18)); border: 1px solid rgba(215,184,255,.45); }
.cs-more b { font-size: 26px; } .cs-more small { color: var(--muted); font-size: 11px; }
.cs-unlock { margin-top: 14px; }

/* Free vs Premium */
.cs-table { border-radius: 18px; overflow: hidden; }
.cs-tr { display: grid; grid-template-columns: 1fr 56px 84px; align-items: center; gap: 6px; padding: 12px 6px; border-bottom: 1px solid var(--line); font-size: 14px; font-weight: 600; }
.cs-tr span:not(:first-child) { text-align: center; }
.cs-tr .prem { background: rgba(139,92,255,.16); align-self: stretch; display: grid; place-items: center; margin: -12px 0; padding: 12px 0; }
.cs-th { font-size: 12px; color: var(--muted); }
.cs-th .prem { background: var(--grad); color: #fff; font-weight: 800; border-radius: 12px 12px 0 0; }
.cs-box { text-align: center; margin-top: 22px; padding: 20px 16px; border-radius: 20px; background: var(--card); border: 1px solid var(--line); }
.cs-box b { font-size: 19px; } .cs-box p { color: var(--muted); font-size: 14px; margin-top: 6px; } .cs-box a { color: var(--text); }
.cs-chip { display: inline-block; margin-top: 12px; font-size: 13px; font-weight: 700; padding: 7px 14px; border-radius: 999px; border: 1px solid var(--line); }
.cs-faq summary { list-style: none; display: flex; justify-content: space-between; } .cs-faq summary::after { content: '+'; font-weight: 800; }
.cs-faq details[open] summary::after { content: '−'; }

/* Sticky price + unlock bar (always visible) */
.cs-sticky { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); background: linear-gradient(transparent, var(--bg) 26%); }
.cs-sticky .inner { max-width: calc(var(--maxw) - 32px); margin: 0 auto; display: flex; align-items: center; gap: 14px; }
.cs-price b { display: block; font-size: 22px; font-weight: 900; } .cs-price small { color: var(--muted); font-size: 12px; white-space: nowrap; }
.cs-sticky .btn { flex: 1; }
.cs-pw.has-sticky { padding-bottom: 130px; }

/* Checkout page */
.cs-reserved { text-align: center; margin: 4px auto 14px; width: fit-content; font-size: 13px; font-weight: 600; color: var(--muted); padding: 8px 16px; border-radius: 12px;
  border: 1px solid rgba(215,184,255,.4); background: rgba(139,92,255,.12); }
.cs-reserved b { color: var(--text); font-variant-numeric: tabular-nums; }
.cs-order { margin-top: 18px; padding: 16px; border-radius: 20px; background: var(--card); border: 1px solid var(--line); }
.cs-order-top { display: flex; align-items: center; gap: 14px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.cs-order-top b { flex: 1; text-align: right; font-size: 15px; }
.cs-thumb { width: 90px; aspect-ratio: 3/4; border-radius: 10px; overflow: hidden; flex-shrink: 0; }
.cs-thumb > * { width: 100%; height: 100%; object-fit: cover; object-position: center 30%; display: block; }
.cs-row { display: flex; justify-content: space-between; padding: 12px 0 0; font-size: 14px; color: var(--muted); }
.cs-row.disc span:first-child { color: var(--green); } .cs-row.disc span:last-child { color: #ff8fa3; }
.cs-row.total { color: var(--text); font-weight: 800; font-size: 18px; border-top: 1px solid var(--line); margin-top: 12px; }
.cs-save { display: block; width: fit-content; margin: 10px 0 0 auto; font-size: 12px; font-weight: 800; color: #ff8fa3; background: rgba(255,77,109,.14); padding: 4px 10px; border-radius: 8px; }
.cs-applepay { width: 100%; height: 50px; margin-top: 22px; border-radius: 12px; background: #fff; color: #000; font-size: 19px; font-weight: 600; }
.cs-co .cs-legal { margin-top: 14px; text-align: left; }
