/* ps2-pay.css — 피이쉐어 프리미엄 (멤버십) · 결제 · 내 이용권 (2026-10-11)
   ps2.css + ps2-home.css 위에 얹는다. 접두사 pp- */
.ps-pay { --pp-gold: #c9a227; --pp-gold-2: #f0d273; --pp-ink: #0f172a; --pp-navy: #0b1b3a; }

/* ---------- 상단 ---------- */
.pp-hero { position: relative; overflow: hidden; padding: clamp(56px, 9vw, 110px) 0 clamp(40px, 6vw, 72px); color: #fff;
    background: radial-gradient(1200px 600px at 15% -10%, #1e3a8a 0%, transparent 60%), radial-gradient(900px 500px at 95% 10%, #14532d 0%, transparent 55%), linear-gradient(180deg, #0b1b3a 0%, #0f172a 100%); }
.pp-hero::after { content: ""; position: absolute; inset: auto 0 0 0; height: 1px; background: linear-gradient(90deg, transparent, rgba(255,255,255,.35), transparent); }
.pp-hero__grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(28px, 5vw, 72px); align-items: center; }
.pp-hero .ps-eyebrow { color: var(--pp-gold-2); }
.pp-hero__title { margin: 14px 0 0; font-size: clamp(30px, 4.4vw, 52px); line-height: 1.12; letter-spacing: -0.035em; font-weight: 800; }
.pp-hero__title em { font-style: normal; background: linear-gradient(90deg, #f0d273, #c9a227); -webkit-background-clip: text; background-clip: text; color: transparent; }
.pp-hero__lead { margin: 18px 0 0; max-width: 56ch; font-size: clamp(16px, 1.6vw, 19px); line-height: 1.7; color: rgba(255,255,255,.82); }
.pp-hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.pp-hero__note { margin: 14px 0 0; font-size: 13.5px; color: rgba(255,255,255,.62); }
.pp-status { padding: 22px 24px; border-radius: 20px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.16); backdrop-filter: blur(6px); }
.pp-status b { display: block; font-size: 22px; letter-spacing: -0.02em; }
.pp-status span { display: block; margin-top: 6px; color: rgba(255,255,255,.7); font-size: 14.5px; }

/* 멤버십 카드 (상단 오른쪽) */
.pp-card { position: relative; border-radius: 26px; padding: 28px; color: #fff; overflow: hidden;
    background: linear-gradient(145deg, #1f2937 0%, #0b1b3a 55%, #111827 100%); box-shadow: 0 40px 80px -40px rgba(0,0,0,.8), inset 0 1px 0 rgba(255,255,255,.12); }
.pp-card::before { content: ""; position: absolute; inset: 0; background: radial-gradient(500px 240px at 110% -20%, rgba(240,210,115,.35), transparent 60%); pointer-events: none; }
.pp-card__brand { display: flex; align-items: center; justify-content: space-between; font-size: 12.5px; letter-spacing: .14em; text-transform: uppercase; color: rgba(255,255,255,.7); }
.pp-card__brand i { font-style: normal; padding: 4px 10px; border-radius: 999px; border: 1px solid rgba(240,210,115,.6); color: #f0d273; letter-spacing: .08em; }
.pp-card__name { margin: 46px 0 0; font-size: 26px; font-weight: 800; letter-spacing: -0.02em; }
.pp-card__name small { display: block; margin-top: 6px; font-size: 14px; font-weight: 500; color: rgba(255,255,255,.65); }
.pp-card__perks { margin: 22px 0 0; padding: 0; list-style: none; display: grid; gap: 9px; font-size: 14.5px; color: rgba(255,255,255,.88); }
.pp-card__perks li { display: flex; gap: 10px; align-items: flex-start; }
.pp-card__perks .ps-i { flex: none; width: 18px; height: 18px; margin-top: 2px; color: #f0d273; }

/* ---------- 요금 ---------- */
.pp-plans { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; max-width: 880px; margin: 0 auto; }
.pp-plan { position: relative; display: flex; flex-direction: column; padding: 30px 28px; border-radius: 24px; background: #fff; border: 1px solid var(--ps-line, #e5e7eb);
    box-shadow: 0 24px 50px -30px rgba(15, 23, 42, .35); transition: transform .25s ease, box-shadow .25s ease; }
.pp-plan:hover { transform: translateY(-3px); box-shadow: 0 34px 60px -30px rgba(15, 23, 42, .45); }
.pp-plan--best { border: 2px solid var(--pp-gold); }
.pp-plan__flag { position: absolute; top: -14px; left: 28px; padding: 5px 12px; border-radius: 999px; font-size: 12.5px; font-weight: 800; letter-spacing: .04em; color: #1f1300; background: linear-gradient(90deg, #f0d273, #c9a227); box-shadow: 0 8px 18px -8px rgba(201,162,39,.8); }
.pp-plan__name { font-size: 15px; font-weight: 700; color: var(--ps-ink-3, #64748b); letter-spacing: .02em; }
.pp-plan__price { margin-top: 12px; display: flex; align-items: baseline; gap: 6px; }
.pp-plan__price b { font-size: 44px; font-weight: 800; letter-spacing: -0.04em; color: var(--ps-ink, #0f172a); line-height: 1; }
.pp-plan__price span { font-size: 15px; color: var(--ps-ink-3, #64748b); font-weight: 600; }
.pp-plan__per { margin: 8px 0 0; font-size: 13.5px; color: var(--ps-ink-3, #64748b); }
.pp-plan__list { margin: 22px 0 0; padding: 0; list-style: none; display: grid; gap: 10px; font-size: 14.5px; color: var(--ps-ink-2, #334155); }
.pp-plan__list li { display: flex; gap: 10px; }
.pp-plan__list .ps-i { flex: none; width: 18px; height: 18px; margin-top: 2px; color: var(--ps-brand, #16a34a); }
.pp-plan__cta { margin-top: auto; padding-top: 26px; }
.pp-plan__cta .ps-btn { width: 100%; justify-content: center; }
.pp-plan__fine { margin: 10px 0 0; text-align: center; font-size: 12.5px; color: var(--ps-ink-3, #64748b); }

/* ---------- 혜택 ---------- */
.pp-perks { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.pp-perk { padding: 24px; border-radius: 20px; background: #fff; border: 1px solid var(--ps-line, #e5e7eb); }
.pp-perk__icon { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: #eef2fb; color: #1e3a8a; margin-bottom: 14px; }
.pp-perk__icon .ps-i { width: 22px; height: 22px; }
.pp-perk h3 { margin: 0; font-size: 17px; letter-spacing: -0.01em; }
.pp-perk p { margin: 8px 0 0; font-size: 14.5px; line-height: 1.65; color: var(--ps-ink-2, #334155); }
.pp-compare { width: 100%; border-collapse: collapse; font-size: 14.5px; background: #fff; border-radius: 18px; overflow: hidden; border: 1px solid var(--ps-line, #e5e7eb); }
.pp-compare th, .pp-compare td { padding: 14px 16px; text-align: left; border-bottom: 1px solid var(--ps-line, #e5e7eb); }
.pp-compare th { background: #f8fafc; font-size: 13px; letter-spacing: .04em; text-transform: uppercase; color: var(--ps-ink-3, #64748b); }
.pp-compare td:nth-child(2), .pp-compare td:nth-child(3), .pp-compare th:nth-child(2), .pp-compare th:nth-child(3) { text-align: center; }
.pp-compare td.is-yes { color: var(--ps-brand, #16a34a); font-weight: 800; }
.pp-compare td.is-no { color: #cbd5e1; }
.pp-compare tr:last-child td { border-bottom: 0; }

/* ---------- 자주 묻는 것 ---------- */
.pp-faq { max-width: 760px; margin: 0 auto; display: grid; gap: 10px; }
.pp-faq details { border: 1px solid var(--ps-line, #e5e7eb); border-radius: 14px; background: #fff; padding: 0 18px; }
.pp-faq summary { cursor: pointer; padding: 15px 0; font-weight: 700; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.pp-faq summary::-webkit-details-marker { display: none; }
.pp-faq summary::after { content: "+"; color: var(--ps-ink-3, #64748b); font-weight: 400; }
.pp-faq details[open] summary::after { content: "–"; }
.pp-faq p { margin: 0 0 16px; font-size: 14.5px; line-height: 1.7; color: var(--ps-ink-2, #334155); }

/* ---------- 결제 화면 ---------- */
.pp-checkout { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 28px; align-items: start; }
.pp-box { background: #fff; border: 1px solid var(--ps-line, #e5e7eb); border-radius: 22px; padding: 24px; box-shadow: var(--ps-shadow-sm, 0 1px 2px rgba(0,0,0,.04)); }
.pp-box h2 { margin: 0 0 6px; font-size: 20px; letter-spacing: -0.02em; }
.pp-box .pp-sub { margin: 0 0 18px; font-size: 14px; color: var(--ps-ink-3, #64748b); }
.pp-summary { margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; font-size: 14.5px; }
.pp-summary li { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px dashed var(--ps-line, #e5e7eb); }
.pp-summary li:last-child { border-bottom: 0; }
.pp-summary li span:first-child { color: var(--ps-ink-3, #64748b); }
.pp-summary li.is-total { font-size: 18px; font-weight: 800; }
.pp-summary li.is-total span:first-child { color: var(--ps-ink, #0f172a); }
.pp-pay-btn { margin-top: 18px; width: 100%; justify-content: center; font-size: 17px; padding: 16px 20px; }
.pp-msg { padding: 14px 16px; border-radius: 14px; font-size: 14.5px; line-height: 1.6; }
.pp-msg--bad { background: #fef2f2; color: #991b1b; border: 1px solid #fecaca; }
.pp-msg--good { background: #f0fdf4; color: #166534; border: 1px solid #bbf7d0; }
.pp-msg--info { background: #eff6ff; color: #1e3a8a; border: 1px solid #bfdbfe; }
.pp-testbanner { background: #fffbeb; color: #92400e; border: 1px solid #fde68a; border-radius: 12px; padding: 10px 14px; font-size: 13.5px; margin-bottom: 16px; }

/* ---------- 결과 / 내 이용권 ---------- */
.pp-result { max-width: 720px; margin: 0 auto; text-align: center; }
.pp-result__mark { width: 84px; height: 84px; margin: 0 auto 18px; border-radius: 50%; display: grid; place-items: center; background: linear-gradient(135deg, #16a34a, #15803d); color: #fff; box-shadow: 0 20px 40px -20px rgba(22,163,74,.8); }
.pp-result__mark .ps-i { width: 40px; height: 40px; }
.pp-result__mark--bad { background: linear-gradient(135deg, #ef4444, #b91c1c); box-shadow: 0 20px 40px -20px rgba(239,68,68,.8); }
.pp-result h1 { margin: 0; font-size: clamp(26px, 3.6vw, 38px); letter-spacing: -0.03em; }
.pp-result .ps-lead { margin-top: 12px; }
.pp-result__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 26px; }
.pp-my { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 22px; align-items: start; }
.pp-orders { width: 100%; border-collapse: collapse; font-size: 14px; }
.pp-orders th, .pp-orders td { padding: 11px 10px; border-bottom: 1px solid var(--ps-line, #e5e7eb); text-align: left; vertical-align: top; }
.pp-orders th { font-size: 12.5px; color: var(--ps-ink-3, #64748b); letter-spacing: .04em; text-transform: uppercase; }
.pp-orders td.is-amt { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.pp-tag { display: inline-block; padding: 3px 9px; border-radius: 999px; font-size: 12px; font-weight: 700; background: #f1f5f9; color: #475569; }
.pp-tag--paid { background: #dcfce7; color: #166534; }
.pp-tag--fail { background: #fee2e2; color: #991b1b; }
.pp-tag--wait { background: #fef3c7; color: #92400e; }
.pp-days { font-size: 40px; font-weight: 800; letter-spacing: -0.04em; line-height: 1; }
.pp-days small { font-size: 15px; font-weight: 600; color: var(--ps-ink-3, #64748b); margin-left: 4px; }

@media (max-width: 900px) {
    .pp-hero__grid, .pp-checkout, .pp-my { grid-template-columns: minmax(0, 1fr); }
    .pp-perks { grid-template-columns: minmax(0, 1fr); }
    .pp-plans { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 600px) {
    .pp-card { padding: 22px; }
    .pp-plan__price b { font-size: 38px; }
}
