/* 결제 페이지 전용 스타일 */
.gnb-active { color:var(--brand) !important; font-weight:700 !important; }
.gnb-active::after { width:100% !important; }

.pay-tabs { display:flex; gap:0; margin-bottom:36px; border-bottom:2px solid var(--line); }
.pay-tab { background:none; border:none; padding:14px 28px; font-size:15px; font-weight:600; color:var(--ink-soft); cursor:pointer; border-bottom:2px solid transparent; margin-bottom:-2px; transition:all 0.18s; }
.pay-tab.active { color:var(--brand); border-bottom-color:var(--brand); }
.pay-tab:hover { color:var(--brand); }

.pay-price { font-size:22px; font-weight:800; color:var(--brand); margin-bottom:20px; }

.pay-modal-content { max-width:420px; }
.pay-modal-product { padding:20px; background:var(--bg-soft); border-radius:10px; margin-bottom:24px; }
.pay-modal-name { font-size:17px; font-weight:700; color:var(--ink); margin-bottom:6px; }
.pay-modal-price { font-size:24px; font-weight:800; color:var(--brand); }
.pay-methods-label { font-size:14px; font-weight:600; color:var(--ink-soft); margin-bottom:14px; }
.pay-methods { display:flex; flex-direction:column; gap:10px; }
.pay-method-btn { width:100%; padding:16px 24px; border:none; border-radius:10px; font-size:16px; font-weight:700; cursor:pointer; display:flex; align-items:center; justify-content:center; gap:10px; transition:all 0.18s; }
.pay-toss { background:#0064FF; color:#fff; }
.pay-toss:hover { background:#0057d9; transform:translateY(-1px); }
.pay-kakao { background:#FEE500; color:#3B1E1E; }
.pay-kakao:hover { background:#e6cf00; transform:translateY(-1px); }
.pay-naver { background:#03C75A; color:#fff; }
.pay-naver:hover { background:#02b050; transform:translateY(-1px); }

/* ── 결제 컨피규레이터 ── */
.cfg { display:grid; grid-template-columns:1fr 340px; gap:28px; align-items:start; }

/* 상품 선택 탭 */
.prod-tabs { display:flex; gap:10px; flex-wrap:wrap; }
.prod-tab { flex:1; min-width:130px; display:block; padding:14px 12px; border:1.5px solid var(--line); border-radius:12px; cursor:pointer; text-align:center; transition:all .15s; background:#fff; }
.prod-tab:hover { border-color:#94a3b8; }
.prod-tab.active { border-color:var(--brand); background:#f5f3ff; box-shadow:0 0 0 1px var(--brand) inset; }
.prod-tab-name { font-size:14px; font-weight:800; color:var(--ink); }
.prod-tab-price { font-size:12px; font-weight:700; color:var(--brand); margin-top:5px; }
.cfg-prod-emoji { width:46px; height:46px; display:flex; align-items:center; justify-content:center; font-size:28px; }

/* 하위 상품 선택 (업로드/오더/패키지) */
.prod-subtabs { display:flex; gap:8px; margin-top:10px; flex-wrap:wrap; }
.prod-subtab { flex:1; min-width:120px; display:flex; flex-direction:column; align-items:center; gap:3px; padding:11px 10px; border:1.5px solid var(--line); border-radius:10px; cursor:pointer; background:#fff; transition:all .15s; }
.prod-subtab:hover { border-color:#94a3b8; }
.prod-subtab.active { border-color:var(--brand); background:#f5f3ff; box-shadow:0 0 0 1px var(--brand) inset; }
.prod-subtab-name { font-size:13px; font-weight:700; color:var(--ink); }
.prod-subtab-price { font-size:11px; font-weight:700; color:var(--brand); }

.cfg-product { display:flex; align-items:center; gap:16px; padding:18px 20px; background:var(--bg-soft); border-radius:12px; margin-bottom:28px; }
.cfg-product img { height:46px; width:auto; }
.cfg-product-name { font-size:18px; font-weight:800; color:var(--ink); }
.cfg-product-desc { font-size:13px; color:var(--ink-soft); margin-top:3px; }

.cfg-block { margin-bottom:26px; }
.cfg-label { font-size:15px; font-weight:700; color:var(--ink); margin-bottom:12px; }
.cfg-options { display:grid; grid-template-columns:repeat(3,1fr); gap:10px; }
#term-options { grid-template-columns:repeat(4,1fr); }

.cfg-opt { display:block; padding:14px 12px; border:1.5px solid var(--line); border-radius:10px; cursor:pointer; text-align:center; transition:all .15s; background:#fff; }
.cfg-opt:hover { border-color:#94a3b8; }
.cfg-opt.active { border-color:var(--brand); background:#f5f3ff; box-shadow:0 0 0 1px var(--brand) inset; }
.cfg-opt-title { font-size:15px; font-weight:700; color:var(--ink); display:flex; align-items:center; justify-content:center; gap:5px; }
.cfg-opt-sub { font-size:12px; color:var(--ink-soft); margin-top:4px; }
.cfg-opt-eff { color:#94a3b8; font-size:11px; }
.cfg-opt-price { font-size:14px; font-weight:700; color:var(--brand); margin-top:6px; }
.cfg-opt-price span { font-size:11px; font-weight:500; color:var(--ink-soft); }
.cfg-badge { display:inline-block; background:#ef4444; color:#fff; font-size:11px; font-weight:700; padding:1px 6px; border-radius:999px; }

.cfg-api { display:flex; align-items:center; gap:10px; padding:14px 16px; border:1.5px solid var(--line); border-radius:10px; cursor:pointer; transition:all .15s; }
.cfg-api:hover { border-color:#94a3b8; }
.cfg-api input { width:18px; height:18px; accent-color:var(--brand); cursor:pointer; }
.cfg-api-text { font-size:14px; font-weight:600; color:var(--ink); flex:1; }
.cfg-api-price { color:var(--brand); font-size:14px; }
.cfg-api.disabled { opacity:.45; cursor:not-allowed; }
.cfg-api.disabled input { cursor:not-allowed; }
.cfg-api-note { font-size:12px; color:#94a3b8; margin:8px 2px 0; line-height:1.5; }

.cfg-summary { position:sticky; top:90px; }
.cfg-summary-card { border:1.5px solid var(--line); border-radius:14px; padding:22px 20px; background:#fff; }
.cfg-summary-title { font-size:16px; font-weight:800; color:var(--ink); margin-bottom:16px; }
.cfg-summary-row { display:flex; justify-content:space-between; align-items:center; font-size:14px; color:var(--ink-soft); margin:9px 0; }
.cfg-summary-row strong { color:var(--ink); font-weight:700; }
.cfg-summary-discount span { color:#ef4444; }
.cfg-summary-line { height:1px; background:var(--line); margin:14px 0; }
.cfg-summary-total { font-size:16px; }
.cfg-summary-total span { color:var(--ink); font-weight:700; }
.cfg-summary-total strong { color:var(--brand); font-size:22px; font-weight:800; }
.cfg-pay-btn { width:100%; margin-top:18px; padding:14px; font-size:16px; }
.cfg-vat { font-size:12px; color:#94a3b8; text-align:center; margin-top:10px; }

/* 기간 잠금 + 안내 */
.cfg-locked { opacity:.4; }
.cfg-pay-btn:disabled { opacity:.45; cursor:not-allowed; filter:grayscale(.3); }
.cfg-term-hint { color:#f87171; font-size:13px; font-weight:600; margin-top:9px; }

/* 주문 확인 모달 */
.order-modal-bg { display:none; position:fixed; inset:0; background:rgba(0,0,0,.65); z-index:1000; align-items:center; justify-content:center; padding:20px; }
.order-modal-bg.open { display:flex; }
.order-modal { position:relative; width:100%; max-width:460px; background:#11161f; border:1px solid rgba(255,255,255,.1); border-radius:18px; overflow:hidden; box-shadow:0 30px 80px rgba(0,0,0,.6); }
.order-modal-x { position:absolute; top:14px; right:16px; background:none; border:none; color:rgba(255,255,255,.5); font-size:26px; cursor:pointer; line-height:1; }
.order-modal-x:hover { color:#fff; }
.order-modal-head { padding:22px 26px 16px; font-size:18px; font-weight:800; color:#fff; border-bottom:1px solid rgba(255,255,255,.08); }
.order-modal-body { padding:22px 26px 26px; }
.od-row { display:flex; justify-content:space-between; align-items:center; font-size:14px; color:rgba(255,255,255,.6); margin:10px 0; }
.od-row[hidden] { display:none; }
.cfg-summary-row[hidden] { display:none; }
.od-row strong { color:#fff; font-weight:700; }
.od-line { height:1px; background:rgba(255,255,255,.1); margin:14px 0; }
.od-total { font-size:16px; }
.od-total strong { font-size:22px; background:linear-gradient(110deg,#818cf8,#22d3ee); -webkit-background-clip:text; background-clip:text; -webkit-text-fill-color:transparent; }
.od-notice { margin-top:18px; padding:14px 16px; background:rgba(129,140,248,.1); border:1px solid rgba(129,140,248,.25); border-radius:10px; font-size:13px; color:rgba(255,255,255,.78); line-height:1.7; }
.od-notice b { color:#fff; }

/* 입금 계좌 + 확인요청 */
.od-account { margin-top:18px; padding:16px 18px; background:rgba(255,255,255,.05); border:1px solid rgba(255,255,255,.12); border-radius:12px; }
.od-account-label { font-size:12px; color:rgba(255,255,255,.5); margin-bottom:6px; }
.od-account-row { display:flex; align-items:center; justify-content:space-between; gap:10px; }
.od-account-num { font-size:17px; font-weight:800; color:#fff; letter-spacing:.3px; }
.od-copy { background:rgba(255,255,255,.1); border:none; color:#fff; font-size:12px; font-weight:700; padding:6px 12px; border-radius:7px; cursor:pointer; flex-shrink:0; }
.od-copy:hover { background:rgba(255,255,255,.18); }
.od-account-holder { font-size:13px; color:rgba(255,255,255,.6); margin-top:8px; }
.od-guide { font-size:13px; color:rgba(255,255,255,.6); line-height:1.7; margin-top:14px; }
.od-guide b { color:#fff; }
.od-confirm-btn { width:100%; margin-top:14px; padding:14px; border:none; border-radius:10px; background:linear-gradient(110deg,#818cf8,#22d3ee); color:#fff; font-size:15px; font-weight:800; cursor:pointer; transition:filter .15s; }
.od-confirm-btn:hover { filter:brightness(1.08); }
.od-confirm-btn:disabled { opacity:.6; cursor:default; filter:grayscale(.3); }
.od-confirm-msg { font-size:13px; line-height:1.6; margin-top:10px; min-height:18px; }
.od-confirm-msg.ok { color:#4ade80; }
.od-confirm-msg.err { color:#f87171; }
.od-kakao { margin-top:16px; }

/* 현금영수증 선택 */
.od-receipt { margin-top:18px; }
.od-receipt-label { font-size:13px; color:rgba(255,255,255,.6); margin-bottom:8px; }
.od-receipt-seg { display:flex; gap:6px; }
.od-rc-btn { flex:1; padding:10px 8px; border:1.5px solid rgba(255,255,255,.14); border-radius:8px; background:rgba(255,255,255,.03); color:rgba(255,255,255,.6); font-size:13px; font-weight:700; cursor:pointer; transition:all .15s; }
.od-rc-btn.active { border-color:#818cf8; background:rgba(129,140,248,.16); color:#fff; }
.od-rc-input { width:100%; margin-top:8px; padding:11px 13px; border:1.5px solid rgba(255,255,255,.16); border-radius:8px; background:#0e1420; color:#eef2f8; font-size:14px; box-sizing:border-box; }
.od-rc-input:focus { outline:none; border-color:#818cf8; }
.od-kakao { display:flex; align-items:center; gap:14px; margin-top:18px; }
.od-kakao .btn-kakao { flex:1; justify-content:center; }
.od-kakao img { width:74px; height:74px; border-radius:10px; background:#fff; padding:5px; box-sizing:border-box; flex-shrink:0; }

/* 결제 문의 (카카오톡) */
.pay-inquiry { display:flex; align-items:center; gap:30px; margin-top:34px; padding:28px 32px; background:rgba(255,255,255,.04); border:1px solid rgba(255,255,255,.1); border-radius:16px; flex-wrap:wrap; }
.pay-inquiry-text { flex:1; min-width:240px; }
.pay-inquiry-title { font-size:18px; font-weight:800; color:#fff; margin-bottom:10px; }
.pay-inquiry-text p { font-size:14px; color:rgba(255,255,255,.65); line-height:1.75; margin-bottom:18px; }
.pay-inquiry-text b { color:#fff; }
.btn-kakao { display:inline-flex; align-items:center; gap:7px; background:#FEE500; color:#3C1E1E; font-weight:800; font-size:15px; padding:13px 26px; border-radius:10px; text-decoration:none; transition:filter .15s, transform .15s; }
.btn-kakao:hover { filter:brightness(.96); transform:translateY(-1px); }
.pay-inquiry-qr { text-align:center; flex-shrink:0; }
.pay-inquiry-qr img { width:118px; height:118px; border-radius:12px; background:#fff; padding:8px; box-sizing:border-box; display:block; }
.pay-inquiry-qr span { display:block; font-size:12px; color:rgba(255,255,255,.5); margin-top:9px; }
@media (max-width:560px) {
  .pay-inquiry { flex-direction:column-reverse; text-align:center; }
  .pay-inquiry-text { min-width:0; }
}

/* 부여할 네이버 ID 입력 */
.cfg-id-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:8px; }
.cfg-id-input { padding:10px 12px; border:1.5px solid var(--line); border-radius:8px; font-size:13px; box-sizing:border-box; font-family:inherit; width:100%; }
.cfg-id-input:focus { outline:none; border-color:var(--brand); }

@media (max-width:860px){
  .cfg { grid-template-columns:1fr; }
  .cfg-summary { position:static; }
}
@media (max-width:520px){
  .cfg-id-grid { grid-template-columns:1fr 1fr; }
}
@media (max-width:480px){
  .cfg-options, #term-options { grid-template-columns:repeat(2,1fr); }
}

/* success / fail 페이지 */
.result-page { min-height:70vh; display:flex; align-items:center; justify-content:center; }
.result-box { text-align:center; max-width:480px; padding:48px 40px; }
.result-icon { font-size:64px; margin-bottom:24px; }
.result-title { font-size:28px; font-weight:800; color:var(--ink); margin-bottom:12px; }
.result-desc { font-size:15px; color:var(--ink-soft); margin-bottom:32px; line-height:1.7; }
.result-actions { display:flex; gap:12px; justify-content:center; flex-wrap:wrap; }
