/* =====================================================================
   plan-card.css — 요금제 회원 카드 (2026-11-01, 시안 docs/design/plan_cards_mock.html)
   요금표 맨 위에 "발급되는 회원 카드" 한 장씩 — 내 정보 › 결제 정보의 회원 카드(css/rail.css .acc-mcard)와 같은 틀
   비쌀수록 고급스럽게: Basic 무광 → Pro 사파이어 금속 → Expert 홀로그램 은박 + 금 테두리 → Business 블랙 티타늄 + 금박
   그리는 곳: js/common/plan-card.js planCardHTML(plan) — 파트너 문의 요금 카드 (홈 요금 절도 나중에 같은 부품)
   주의 — 디자인 규칙 예외 (선생님 허락 2026-11-01 "가격이 비싸질수록 고급스러운 느낌"): 카드 안에서만 금·은·홀로그램 색을 씀. 카드 밖 화면은 테마 변수만
   ===================================================================== */

/* 카드 틀 (신용카드 비율 85.6 : 54) — 크기는 카드 폭(cqw)을 따라 같이 줄어듦 */
.pcard { position: relative; width: 100%; aspect-ratio: 85.6 / 54; border-radius: 12px; perspective: 900px; container-type: inline-size; font-family: var(--font-sans); text-align: left; }
.pcard-in { position: absolute; inset: 0; border-radius: 12px; overflow: hidden; color: #fff; transform-style: preserve-3d;
  background: var(--face); box-shadow: 0 1px 0 rgba(255,255,255,.25) inset, 0 12px 28px rgba(11, 18, 32, .22);
  transform: rotateX(var(--ry, 0deg)) rotateY(var(--rx, 0deg)); transition: transform .4s cubic-bezier(.2,.8,.2,1); }
.pcard-in::before { content: ""; position: absolute; inset: 0; background: var(--pattern, none); opacity: .5; }
/* 빛 반사 띠 — 천천히 지나가고, 마우스를 올리면 빨리 */
.pcard-in::after { content: ""; position: absolute; inset: -60%; background: linear-gradient(110deg, transparent 44%, rgba(255,255,255,.55) 50%, transparent 56%);
  transform: translateX(-60%); animation: pcSweep 6s ease-in-out infinite; animation-delay: var(--d, 0s); pointer-events: none; mix-blend-mode: soft-light; }
.pcard:hover .pcard-in::after, .pt-plan:hover .pcard-in::after { animation-duration: 1.6s; }
@keyframes pcSweep { 0%, 55% { transform: translateX(-60%); } 85%, 100% { transform: translateX(60%); } }
.pc-brand { position: absolute; left: 7cqw; top: 7cqw; display: flex; align-items: center; gap: 2.5cqw; }
.pc-brand img { width: 9cqw; height: 9cqw; }
.pc-brand b { font-size: 5.6cqw; font-weight: 900; letter-spacing: -.02em; }
.pc-brand small { font: 700 3.4cqw/1 var(--font-mono); letter-spacing: .8cqw; opacity: .8; }
.pc-chip { position: absolute; left: 7cqw; top: 26cqw; width: 11cqw; height: 8.5cqw; border-radius: 1.6cqw; background: linear-gradient(135deg, #f3e3b0, #b99a52 60%, #e9d49a); opacity: .9; }
.pc-chip::before { content: ""; position: absolute; inset: 1.6cqw 3.2cqw; border: 1px solid rgba(80, 60, 20, .45); border-radius: 1cqw; }
.pc-price { position: absolute; left: 7cqw; bottom: 15cqw; font-size: 8.4cqw; font-weight: 900; letter-spacing: -.03em; line-height: 1; }
.pc-price small { font-size: 3.6cqw; font-weight: 700; opacity: .85; margin-left: 1cqw; letter-spacing: 0; }
.pc-lb { position: absolute; left: 7cqw; bottom: 7cqw; font: 700 3.4cqw/1 var(--font-mono); letter-spacing: .8cqw; opacity: .8; }
.pc-plan { position: absolute; right: 0; bottom: 6cqw; padding: 2.4cqw 5cqw 2.4cqw 6cqw; border-radius: 1.8cqw 0 0 1.8cqw; background: #fff; color: #0b1220; font: 800 4cqw/1 var(--font-sans); letter-spacing: .3cqw; }
.pc-fox { position: absolute; right: 4cqw; bottom: 14cqw; height: 40cqw; width: auto; pointer-events: none; filter: drop-shadow(0 2cqw 3cqw rgba(0,0,0,.35)); }
.pc-tag { position: absolute; right: 6cqw; top: 7cqw; padding: 1.4cqw 3cqw; border-radius: 99px; background: #fff; color: #0b1220; font: 800 3.4cqw/1 var(--font-sans); }
.pc-holo { position: absolute; left: 21cqw; top: 26.75cqw; width: 10cqw; height: 7cqw; border-radius: 1.2cqw; background: linear-gradient(125deg, #f7f8fa, #b9bec7 30%, #ffffff 48%, #8e949e 66%, #e9ecf0); background-size: 300% 300%; animation: pcHolo 3s ease-in-out infinite alternate; box-shadow: 0 0 0 1px rgba(255,255,255,.35) inset; }   /* 은색 딱지 (2026-11-04 선생님 "분홍색 말고 은색 빛나는 걸로") */
/* 움직이는 그림이 없는 퀘스(책)는 둥실 떠오름 (2026-11-04) */
.pc-float { animation: pcFloat 3.2s ease-in-out infinite; }
@keyframes pcFloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-2.5cqw); } }
@keyframes pcHolo { to { background-position: 100% 100%; } }

/* Basic = 무광: 평평한 남색, 은색 칩, 빛 띠 약하게 */
.pcard.is-basic { --face: linear-gradient(160deg, #1d3550, #2a4f75); }
.pcard.is-basic .pcard-in::after { opacity: .35; }
.pcard.is-basic .pc-chip { background: linear-gradient(135deg, #e6e9ee, #9aa3ae 60%, #d5dae1); }
.pcard.is-basic .pc-chip::before { border-color: rgba(40, 50, 60, .35); }
/* Pro = 사파이어 금속: 결 무늬 + 금 칩 + 또렷한 빛 띠 */
.pcard.is-pro { --face: linear-gradient(135deg, #04203d 0%, #0a5ea3 50%, #3fa6ea 100%);
  --pattern: repeating-linear-gradient(100deg, rgba(255,255,255,.07) 0 1px, transparent 1px 3px); }
.pcard.is-pro .pcard-in { box-shadow: 0 0 0 1px rgba(255,255,255,.28) inset, 0 14px 32px rgba(4, 32, 61, .3); }
/* Expert = 홀로그램 은박 + 금 테두리: 무지개 빛이 천천히 흐름 */
.pcard.is-expert { --face: linear-gradient(125deg, #f4ecff, #fdf6c8, #c8f5e4, #cfeaff, #ecd3ff, #fffaf0); }
.pcard.is-expert .pcard-in { color: #0b1220; background-size: 300% 300%; animation: pcHolo 6s ease-in-out infinite alternate;
  box-shadow: 0 0 0 1.5px #c9a85a inset, 0 0 0 4px rgba(255,255,255,.6) inset, 0 16px 36px rgba(11, 18, 32, .25); }
.pcard.is-expert .pcard-in::before { background: repeating-linear-gradient(115deg, rgba(255,255,255,.35) 0 2px, transparent 2px 9px); opacity: .6; }
.pcard.is-expert .pcard-in::after { mix-blend-mode: overlay; }
.pcard.is-expert .pc-plan { background: #0b1220; color: #f0d999; }
.pcard.is-expert .pc-brand small, .pcard.is-expert .pc-lb { opacity: .7; }
/* Business = 블랙 티타늄 + 금박 글자 + 금 테두리 + 홀로그램 딱지 (가장 고급) */
.pcard.is-business { --face: radial-gradient(120% 90% at 20% 0%, #2c3038 0%, #0d0f13 55%, #050506 100%);
  --pattern: repeating-linear-gradient(90deg, rgba(255,255,255,.035) 0 1px, transparent 1px 4px); }
.pcard.is-business .pcard-in { color: #e9cf8a; box-shadow: 0 0 0 1px #b8954a inset, 0 0 0 5px rgba(0,0,0,.6) inset, 0 0 0 6px rgba(201,168,90,.35) inset, 0 18px 40px rgba(0,0,0,.45); }
.pcard.is-business .pcard-in::after { background: linear-gradient(110deg, transparent 44%, rgba(255,226,160,.6) 50%, transparent 56%); mix-blend-mode: screen; opacity: .6; }
.pcard.is-business .pc-brand b, .pcard.is-business .pc-price { background: linear-gradient(180deg, #fff1c4, #d9b462 55%, #a9822f); -webkit-background-clip: text; background-clip: text; color: transparent; }
.pcard.is-business .pc-plan { background: linear-gradient(135deg, #f3dc98, #b98d3c); color: #111; }
.pcard.is-business .pc-brand img { filter: sepia(1) saturate(2.2) hue-rotate(-12deg) brightness(1.15); }
.pcard.is-business .pc-chip { background: linear-gradient(135deg, #fff1c4, #c9a24f 55%, #8a6626); }

@media (prefers-reduced-motion: reduce) { .pcard-in::after { animation: none; opacity: 0; } .pcard-in, .pcard.is-expert .pcard-in, .pc-holo, .pc-float { transition: none; animation: none; } }
.me-mcard { margin: 0 0 8px; }   /* 내 상태 칸 맨 위 회원 카드 (js/common/site.js siteMemberCardHTML, 2026-11-04) */
