/* ───── 회원 · 전력포인트 (app.css 의 색 · 간격을 그대로 씀) ───── */
.account { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.account:empty { width: 80px; }
.account-login { border: 1px solid var(--navy); background: var(--navy); color: #fff; border-radius: 30px; padding: 9px 18px; font-weight: 700; font-size: 13px; white-space: nowrap; }
.account-login:hover { background: #172d5c; }
.balance { display: inline-flex; align-items: center; gap: 6px; border: 1px solid #d4defc; background: #f3f6ff; color: #1f3f9e; border-radius: 30px; padding: 7px 14px; font-size: 13px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.balance:hover { border-color: var(--blue); }
.balance .bolt { font-size: 13px; }
.balance small { font-size: 10px; color: #5b70b0; font-weight: 650; }
.menu { position: relative; }
.menu summary { list-style: none; display: flex; align-items: center; gap: 7px; cursor: pointer; font-size: 12px; font-weight: 650; color: #44536e; border-radius: 30px; padding: 3px 8px 3px 3px; }
.menu summary::-webkit-details-marker { display: none; }
.menu summary:hover { background: #f2f5fb; }
.avatar { width: 30px; height: 30px; border-radius: 50%; background: var(--navy); color: #fff; display: grid; place-items: center; font-size: 12px; font-weight: 750; }
.menu-name { max-width: 90px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.menu-list { position: absolute; right: 0; top: calc(100% + 8px); min-width: 190px; background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 14px 36px rgb(20 42 83 / 14%); padding: 8px; z-index: 30; display: grid; }
.menu-list button { border: 0; background: none; text-align: left; padding: 9px 10px; border-radius: 7px; font-size: 13px; }
.menu-list button:hover { background: #f2f5fd; color: var(--blue); }
.menu-email { font-size: 11px; color: var(--muted); padding: 6px 10px 8px; border-bottom: 1px solid var(--line); margin-bottom: 4px; overflow-wrap: anywhere; }
.menu-email:empty { display: none; }
.engine-price { display: inline-block; margin-top: 6px; font-size: 11px; font-weight: 700; color: #2347c5; }
.connect-note { margin-top: 14px; font-size: 12px; color: var(--muted); }
.connect-note a { color: #254bca; text-decoration: underline; text-underline-offset: 3px; }

.modal { border: 0; border-radius: 20px; padding: 30px 32px 32px; width: min(440px, calc(100vw - 32px)); max-height: calc(100dvh - 40px); overflow: auto; color: var(--navy); box-shadow: 0 30px 80px rgb(8 20 45 / 30%); }
.modal.wide { width: min(780px, calc(100vw - 32px)); }
.modal::backdrop { background: rgb(9 20 42 / 55%); backdrop-filter: blur(2px); }
.modal-close-row { position: sticky; top: 0; display: flex; justify-content: flex-end; margin: -12px -14px 0 0; height: 0; z-index: 2; }
.modal-close { width: 36px; height: 36px; border-radius: 50%; border: 0; background: #f1f4fa; font-size: 20px; line-height: 1; color: #4b5b78; }
.modal-close:hover { background: #e3e9f6; }
.modal h2 { font-size: 24px; }
.modal-lead { margin: 8px 0 20px; color: var(--muted); font-size: 13px; }
.modal-form .primary { margin-top: 4px; padding: 12px 16px; }
.tabs { display: grid; grid-template-columns: 1fr 1fr; background: #f1f4fa; border-radius: 10px; padding: 4px; margin-bottom: 18px; }
.tabs button { border: 0; background: none; padding: 8px; border-radius: 7px; font-weight: 650; color: #66738a; font-size: 13px; }
.tabs button.on { background: #fff; color: var(--navy); box-shadow: 0 2px 6px rgb(20 42 83 / 10%); }
.social { display: grid; gap: 8px; margin-bottom: 6px; }
.social-btn { display: flex; justify-content: center; align-items: center; min-height: 46px; border-radius: 10px; font-weight: 700; font-size: 14px; }
.social-btn.kakao { background: #fee500; color: #191600; }
.social-btn.google { background: #fff; border: 1px solid #d7deea; }
.social-btn:hover { filter: brightness(.97); }
.divider { display: flex; align-items: center; gap: 10px; color: #8a96aa; font-size: 11px; margin: 10px 0 8px; }
.divider::before, .divider::after { content: ""; flex: 1; height: 1px; background: var(--line); }

.wallet-message { margin: 14px 0 0; padding: 12px 14px; border-radius: 10px; font-size: 13px; font-weight: 600; }
.wallet-message.ok { background: #ecf8f1; color: #17693d; }
.wallet-message.error { background: #fff0f1; color: #a52c36; }
.wallet-message.info { background: #f0f4ff; color: #2d4ba8; }
#wallet-body { margin-top: 20px; }
.wallet-summary { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 10px; }
.sum { border: 1px solid var(--line); border-radius: 14px; padding: 16px; display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.sum span { font-size: 11px; color: var(--muted); font-weight: 650; }
.sum b { font-size: 22px; letter-spacing: -.6px; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.sum small { font-size: 11px; color: #7a879c; }
.sum.main { background: var(--navy); border-color: var(--navy); color: #fff; }
.sum.main span, .sum.main small { color: #b9c6dd; }
.wallet-section { margin-top: 26px; padding-top: 22px; border-top: 1px solid var(--line); }
.wallet-section h3 { font-size: 16px; letter-spacing: -.3px; }
.section-lead { margin: 6px 0 14px; font-size: 12px; color: var(--muted); line-height: 1.7; }
.pay-box { border: 1px solid var(--line); border-radius: 14px; padding: 16px; display: grid; gap: 12px; background: #fbfcff; }
.pay-box + .pay-box { margin-top: 10px; }
.pay-box.off { background: #f7f8fb; }
.pay-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.pay-head b { font-size: 14px; }
.pay-by { font-size: 11px; color: var(--muted); }
.test-badge { font-size: 10px; font-weight: 750; color: #9a5b00; background: #fff4dc; border-radius: 5px; padding: 2px 7px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { border: 1px solid #d9e1ee; background: #fff; border-radius: 30px; padding: 7px 14px; font-size: 13px; font-weight: 650; color: #44536e; font-variant-numeric: tabular-nums; }
.chip.on { background: var(--navy); border-color: var(--navy); color: #fff; }
.pay-row { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.pay-row input, .postpaid-form input[type=number], .admin input, .admin select { min-width: 0; flex: 1; padding: 10px 12px; border: 1px solid #d7dfec; border-radius: 8px; font-size: 13px; background: #fff; color: var(--navy); }
.pay-row .primary { width: auto; flex: 1; min-width: 160px; }
.packages { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 8px; }
.package { border: 1px solid #d9e1ee; background: #fff; border-radius: 12px; padding: 14px; display: grid; gap: 2px; text-align: left; }
.package b { font-size: 16px; }
.package span { font-size: 12px; color: var(--muted); }
.package:hover { border-color: var(--blue); }
.card-row { display: flex; align-items: center; gap: 12px; }
.card-row > div { flex: 1; min-width: 0; display: grid; }
.card-row small { font-size: 11px; color: var(--muted); }
.card-chip { width: 42px; height: 30px; border-radius: 6px; background: linear-gradient(135deg, #2f5bff, #0b1b3a); flex-shrink: 0; }
.postpaid-form { display: flex; gap: 12px; align-items: flex-end; flex-wrap: wrap; border-top: 1px dashed var(--line); padding-top: 12px; }
.switch { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 650; min-height: 42px; }
.switch input { width: 18px; height: 18px; accent-color: var(--blue); }
.limit { display: grid; gap: 4px; flex: 1; min-width: 150px; }
.limit span { font-size: 11px; color: var(--muted); font-weight: 650; }
.text-danger { white-space: nowrap; flex-shrink: 0; border: 0; background: none; color: #b0303b; font-size: 12px; font-weight: 650; padding: 6px 4px; }
.text-danger:hover { text-decoration: underline; }
.fresh-key { margin-top: 12px; border: 1px solid #f0d58b; background: #fffbea; border-radius: 12px; padding: 14px; display: grid; gap: 10px; }
.fresh-key b { font-size: 12px; color: #7a5200; }
.fresh-key code { display: block; font-family: Consolas, "SFMono-Regular", monospace; font-size: 13px; overflow-wrap: anywhere; background: #fff; border-radius: 6px; padding: 8px 10px; }
.fresh-key code.small { font-size: 11px; color: #52647f; }
.key-list { list-style: none; padding: 0; margin: 12px 0 0; }
.key-list li { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 11px 2px; border-top: 1px solid #edf0f5; }
.key-list li > div { display: grid; min-width: 0; }
.key-list small { font-size: 11px; color: var(--muted); overflow-wrap: anywhere; }
.table-wrap { overflow-x: auto; }
.ledger { width: 100%; border-collapse: collapse; font-size: 12px; }
.ledger th { text-align: left; font-size: 11px; color: var(--muted); font-weight: 650; padding: 8px 6px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.ledger td { padding: 10px 6px; border-bottom: 1px solid #f0f2f7; vertical-align: top; }
.ledger td:first-child { white-space: nowrap; color: #6c7890; }
.ledger .memo { display: block; font-size: 11px; color: var(--muted); }
.ledger .num { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; font-weight: 700; }
.ledger .plus { color: #17793f; }
.ledger .minus { color: #24314c; }
.admin td { vertical-align: middle; }
.admin input { width: 100px; flex: none; }
.admin-adjust { margin-top: 14px; }
.toast { position: fixed; left: 50%; bottom: 28px; transform: translate(-50%, 30px); opacity: 0; pointer-events: none; z-index: 1000; background: var(--navy); color: #fff; padding: 12px 20px; border-radius: 30px; font-size: 13px; font-weight: 600; box-shadow: 0 12px 30px rgb(8 20 45 / 25%); transition: opacity .2s, transform .2s; max-width: calc(100vw - 32px); }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.toast.error { background: #a52c36; }
.toast.info { background: #2d4ba8; }
@media (max-width: 1200px) {
  .menu-name { display: none; }
}
@media (max-width: 900px) {
  .account { gap: 6px; }
  .balance small { display: none; }
}
@media (max-width: 600px) {
  .header-inner { grid-template-columns: auto 1fr auto; }
  .navigation { display: none; }
  .account { justify-self: end; grid-row: 1; grid-column: 2 / 4; }
  .search { grid-column: 1 / -1; grid-row: 2; }
  .modal { padding: 24px 18px 22px; border-radius: 16px; }
  .wallet-summary { grid-template-columns: 1fr; }
  .sum b { font-size: 20px; }
  .pay-row .primary { min-width: 100%; }
  .admin input { width: 70px; }
}
