/* 마이페이지 전용 스타일. 색상과 버튼, 카드는 styles.css를 함께 사용합니다. */

/* ---------- 상단 띠 (공지 · 미리보기) ---------- */
.demo-bar {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 16px;
  padding: 7px var(--gutter);
  background: var(--paper-2); font-size: 13px;
}
.demo-note strong { margin-right: 6px; padding: 1px 8px; background: var(--ink); color: var(--white); border-radius: 999px; }
.demo-controls { display: flex; flex-wrap: wrap; gap: 4px; }
/* 공지도 상태 버튼도 없으면(회원가입에서 공지를 닫았을 때) 빈 띠를 숨깁니다 */
.demo-bar:has(.demo-note:empty):not(:has(.demo-controls)) { display: none; }
.demo-controls button {
  padding: 3px 10px; border: 1px solid transparent; border-radius: 999px; background: transparent;
  font-size: 13px; font-weight: 600; cursor: pointer;
}
.demo-controls button:hover { background: var(--white); }
.demo-controls button.is-on { background: var(--white); border-color: var(--ink); }
#demo-plan { border-color: #A8A29A; }

/* ---------- 공통 ---------- */
.nav a.is-on { background: var(--ink); color: var(--white); }
.btn-full { width: 100%; }
button.btn { border: 0; cursor: pointer; }
.btn-soft { background: var(--paper-2); color: var(--ink); }
.btn-soft:hover { background: #DEDAD3; }
.topbar-side { min-width: 92px; justify-content: flex-end; }
.view > .card, .view > .two-col, .view > details { margin-top: 14px; }
.view > .answer + .card, .view > .answer + .two-col { margin-top: 0; }
.card-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.side-note { margin-top: 12px; }
.text-btn {
  padding: 4px 0; border: 0; background: none; cursor: pointer;
  font-size: 15px; font-weight: 700; text-decoration: underline; text-underline-offset: 3px;
}
.text-muted { color: var(--muted); font-weight: 600; }
.note-list { margin-top: 14px; display: grid; gap: 6px; color: var(--muted); font-size: 15px; line-height: 1.5; }
.note-list li { position: relative; padding-left: 13px; }
.note-list li::before { content: ""; position: absolute; left: 0; top: .62em; width: 5px; height: 5px; border-radius: 50%; background: #A8A29A; }
.note-list strong { color: var(--ink); }
.support-only { margin-top: 6px; font-size: 15px; font-weight: 600; line-height: 1.5; }

/* ---------- 입력칸 ---------- */
.field { display: block; margin-bottom: 14px; min-width: 0; }
.field > span { display: block; margin-bottom: 6px; font-size: 15px; font-weight: 700; }
.field input {
  width: 100%; height: 54px; padding: 0 18px;
  background: var(--paper); border: 2px solid transparent; border-radius: var(--r-sm);
  color: var(--ink); font: 600 16px var(--font);
}
.field input:focus { outline: none; border-color: var(--ink); }
.field input::placeholder { color: #8A847B; font-weight: 500; }
.field input[readonly] { color: var(--muted); }
.field select {
  width: 100%; height: 54px; padding: 0 14px;
  background: var(--paper); border: 2px solid transparent; border-radius: var(--r-sm);
  color: var(--ink); font: 600 16px var(--font); cursor: pointer;
}
.field select:focus { outline: none; border-color: var(--ink); }
.field input[aria-invalid="true"], .field select[aria-invalid="true"] { border-color: #C9341A; }
.field input:disabled { opacity: .55; cursor: not-allowed; }
.field-error { margin: -6px 0 12px; color: #B42C14; font-size: 14px; font-weight: 600; line-height: 1.4; }
.field-error:empty { display: none; }

/* 환불 신청 */
.refund-form { max-width: 720px; }
.refund-info { margin-top: 8px; }
.refund-step { margin-top: 28px; margin-bottom: 12px; }
.refund-bank { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr) minmax(0, 1fr); gap: 0 12px; }
.refund-notes { margin: 8px 0 18px; }
.refund-confirm { margin: 14px 0 4px; }
.field small { display: block; margin-top: 6px; color: var(--muted); font-size: 14px; }
.field-gap { margin-top: 18px; }
.field-pair { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0 12px; }
.field-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; align-items: end; margin-bottom: 14px; }
.field-row .field { margin-bottom: 0; }
.field-row .btn { min-height: 54px; padding: 0 20px; border-radius: var(--r-sm); font-size: 15px; }
.agree { display: flex; gap: 10px; align-items: flex-start; margin: 16px 0; font-size: 15px; line-height: 1.5; cursor: pointer; }
.agree input { flex: none; width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--orange); }

/* 켜고 끄는 스위치 */
.sw {
  flex: none; position: relative; width: 52px; height: 30px; margin: 0;
  background: var(--paper-2); border-radius: 999px; cursor: pointer;
  -webkit-appearance: none; appearance: none; transition: background-color .2s;
}
.sw::after {
  content: ""; position: absolute; left: 4px; top: 4px; width: 22px; height: 22px; box-sizing: border-box;
  background: var(--paper-2); border: 6px solid var(--white); border-radius: 50%; transition: transform .2s;
}
.sw:checked { background: var(--orange); }
.sw:checked::after { background: var(--orange); transform: translateX(22px); }

/* ---------- 로그인 ---------- */
.login { display: grid; place-items: center; min-height: calc(100vh - 140px); padding: 24px var(--gutter) 48px; }
.login-card { width: min(440px, 100%); padding: clamp(24px, 5vw, 40px); background: var(--white); border-radius: var(--r-lg); }
.login-card .avatar { margin: 0 0 16px; }
.login-title { margin-bottom: 24px; font-size: clamp(1.9rem, 5vw, 2.5rem); line-height: 1.2; }
.login-links { display: flex; justify-content: space-between; gap: 12px; margin-top: 18px; }
.login-links button, .login-links a { padding: 4px 0; border: 0; background: none; cursor: pointer; font-size: 15px; font-weight: 600; color: var(--muted); text-decoration: none; }
.login-links button:hover, .login-links a:hover { color: var(--ink); }

/* ---------- 화면 공통 ---------- */
.view { max-width: 1120px; margin: 0 auto; padding: clamp(16px, 3vw, 32px) var(--gutter) clamp(48px, 7vw, 96px); }
.view .answer { margin-top: clamp(12px, 2vw, 24px); }

/* ---------- 내 계정 ---------- */
.status {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 14px;
  padding: clamp(14px, 1.6vw, 18px);
  background: var(--ink); color: var(--white); border-radius: var(--r-lg);
}
.status-balance { display: flex; flex-direction: column; align-items: flex-start; padding: clamp(14px, 2.4vw, 28px); }
.status-hi { color: var(--muted-dark); font-weight: 600; margin-bottom: clamp(20px, 3vw, 36px); }
.status-label { font-size: clamp(1rem, 1.4vw, 1.15rem); font-weight: 600; }
.status-value { font-size: clamp(2.5rem, 5.6vw, 4.6rem); font-weight: 800; line-height: 1.1; letter-spacing: -.045em; color: var(--orange); white-space: nowrap; }
.status-sub { margin: 8px 0 24px; color: #DEDAD4; }

.status-pc { display: flex; flex-direction: column; padding: clamp(18px, 2.4vw, 28px); background: var(--ink-2); border-radius: var(--r-md); }
.pc-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.pc-title { font-size: clamp(1.15rem, 1.6vw, 1.35rem); letter-spacing: -.025em; line-height: 1.3; }
.toggle-view { display: flex; align-items: center; width: 60px; height: 34px; padding: 0 4px; background: var(--ink-3); border-radius: 999px; }
.toggle-view i {
  display: block; box-sizing: border-box; width: 26px; height: 26px;
  background: var(--ink-3); border: 7px solid var(--white); border-radius: 50%;
  transition: transform .3s;
}
.toggle-view.on { background: var(--orange); }
.toggle-view.on i { background: var(--orange); transform: translateX(26px); }
.pc-state { font-size: clamp(1.35rem, 2.5vw, 2.05rem); font-weight: 800; line-height: 1.25; letter-spacing: -.035em; }
.pc-detail { margin-top: 6px; color: #DEDAD4; line-height: 1.5; }
.pc-actions { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-top: auto; padding-top: 24px; }
.pc-actions .btn { padding: 0 8px; }
.pc-actions :focus-visible { outline-color: var(--white); }
/* PC 버튼: 종료만 주황으로 강조하고, 나머지는 패널에 어울리는 짙은 회색에 아이콘으로 구분합니다 */
.pc-btn { display: inline-flex; align-items: center; justify-content: center; gap: 7px; }
.pc-btn svg { flex: none; }
.pc-btn-sub {
  background: #3A3936; color: var(--white);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08);
  transition: background-color .15s, box-shadow .15s;
}
.pc-btn-sub:hover, .pc-btn-sub[aria-expanded="true"] { background: #4A4844; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .16); }
.pc-icon-warn { color: #FFC94D; }
.reserve { position: relative; }
.reserve-btn {
  width: 100%; height: 56px; padding: 0 8px; border: 0; border-radius: 999px;
  font-size: 17px; font-weight: 700; white-space: nowrap; cursor: pointer;
}
/* 아래쪽 흰 카드와 겹치지 않도록 버튼 위로 열립니다 */
.reserve-pop {
  position: absolute; right: 0; bottom: calc(100% + 8px); z-index: 5;
  width: min(280px, calc(100vw - 64px)); padding: 18px;
  background: var(--white); color: var(--ink); border-radius: var(--r-md);
  box-shadow: 0 12px 32px rgba(0, 0, 0, .4);
  transform-origin: right bottom;
  animation: reserve-open .16s cubic-bezier(.2, .7, .2, 1);
}
.reserve-pop :focus-visible { outline-color: var(--ink); }
.reserve-title { display: block; font-size: 17px; font-weight: 700; letter-spacing: -.02em; }
.reserve-input { display: flex; align-items: center; gap: 10px; margin-top: 12px; font-weight: 700; white-space: nowrap; }
.reserve-input input {
  flex: 1; width: 100%; min-width: 0; height: 54px; padding: 0 14px;
  background: var(--paper); color: var(--ink); border: 2px solid transparent; border-radius: var(--r-sm);
  font: 700 20px var(--font); text-align: right; font-variant-numeric: tabular-nums;
}
.reserve-input input::placeholder { color: #9B958C; font-weight: 500; }
.reserve-input input:focus { border-color: var(--ink); outline: 0; }
.reserve-input input[aria-invalid="true"] { border-color: #C9341A; }
.reserve-input input { ime-mode: disabled; }
.reserve-hint { margin-top: 8px; color: var(--muted); font-size: 14px; line-height: 1.4; }
.reserve-error { margin-top: 8px; color: #B42C14; font-size: 14px; font-weight: 600; line-height: 1.4; }
.reserve-error:empty { display: none; }
.reserve-pop .btn { margin-top: 12px; }
@keyframes reserve-open {
  from { opacity: 0; transform: translateY(6px) scale(.97); }
  to { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  .reserve-pop { animation: none; }
}

.home-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 14px; margin-top: 14px; }
.info { margin: 8px 0 0; }
.info div { display: flex; justify-content: space-between; gap: 16px; padding: 9px 0; }
.info div + div { border-top: 1px solid var(--paper-2); }
.info dt { color: var(--muted); font-size: 15px; white-space: nowrap; }
.info dd { margin: 0; font-weight: 600; text-align: right; font-variant-numeric: tabular-nums; }
.quick { display: grid; gap: 14px; }
.quick-item { display: block; padding: clamp(16px, 2vw, 22px); text-decoration: none; transition: background-color .15s; }
.quick-item:hover { background: var(--paper-2); }
.quick-item p { margin-top: 2px; color: var(--muted); font-size: 15px; line-height: 1.45; }

/* ---------- 충전 ---------- */
.charge { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 14px; align-items: start; }
.charge-plan { display: flex; align-items: center; gap: 10px; }
.charge-plan strong { font-size: clamp(1.1rem, 1.6vw, 1.3rem); font-weight: 800; letter-spacing: -.03em; }
.charge-plan .pill b { font-weight: 800; }
.charge-plan-note { margin-top: 6px; color: var(--muted); font-size: 15px; line-height: 1.5; }
.segment { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 4px; padding: 4px; background: var(--paper); border-radius: 999px; }
.segment label { cursor: pointer; }
.segment input { position: absolute; opacity: 0; }
.segment span {
  display: block; width: 100%; padding: 12px 8px; border-radius: 999px;
  text-align: center; font: 700 15px var(--font);
}
.segment input:checked + span { background: var(--ink); color: var(--white); }
.segment input:focus-visible + span { outline: 3px solid var(--orange); outline-offset: 2px; }

.amounts { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; margin: 16px 0 20px; }
.amount { cursor: pointer; }
.amount input { position: absolute; opacity: 0; }
.amount span { display: block; padding: 14px 16px; background: var(--paper); border: 2px solid transparent; border-radius: var(--r-sm); }
.amount strong { display: block; font-size: 1.15rem; font-weight: 800; letter-spacing: -.03em; }
.amount small { color: var(--muted); font-size: 14px; }
.amount input:checked + span { background: #FFE9DF; border-color: var(--orange); }
.amount input:focus-visible + span { outline: 3px solid var(--ink); outline-offset: 2px; }

.charge-side { display: grid; gap: 14px; }
.charge-side .side-note { margin-top: 0; padding: 0 4px; }
.charge-summary { padding: clamp(20px, 3vw, 32px); background: var(--orange); border-radius: var(--r-md); }
.charge-summary .mini-label { margin-bottom: 2px; }
.summary-value { font-size: clamp(2.3rem, 4.8vw, 3.6rem); font-weight: 800; line-height: 1.15; letter-spacing: -.045em; }
.summary-detail { font-weight: 600; }
.summary-price { margin: 16px 0 0; padding-top: 12px; border-top: 1px solid rgba(26, 26, 26, .25); }
.summary-price div { display: flex; justify-content: space-between; gap: 12px; padding: 2px 0; font-weight: 500; }
.summary-price dd { margin: 0; font-variant-numeric: tabular-nums; }
.summary-total { margin-top: 4px; font-size: clamp(1.15rem, 1.8vw, 1.4rem); }
.summary-price .summary-total { font-weight: 800; letter-spacing: -.02em; }
.bank ul { margin: 8px 0 10px; }
.bank li { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--paper-2); font-weight: 600; font-variant-numeric: tabular-nums; }
.bank li button { flex: none; padding: 4px 12px; background: var(--paper-2); border: 0; border-radius: 999px; font-size: 14px; font-weight: 700; cursor: pointer; }
.bank li button:hover { background: #DEDAD3; }

/* ---------- 이용내역 ---------- */
.history { padding-top: 8px; padding-bottom: 8px; }
.history li { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 0; }
.history li + li { border-top: 1px solid var(--paper-2); }
.history li > div { min-width: 0; }
.history strong { display: block; font-weight: 700; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.history small { display: block; color: var(--muted); font-size: 14px; }
.reason { display: block; font-size: 14px; color: var(--muted); }
.reason-error { color: #C93F0C; font-weight: 700; }
.amount-minus { flex: none; font-size: clamp(1.15rem, 2vw, 1.5rem); font-weight: 800; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }

/* ---------- 기기·알림 ---------- */
.device-rows { margin-top: 6px; }
.device-rows li { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 8px 20px; padding: 14px 0; border-bottom: 1px solid var(--paper-2); }
.device-name { min-width: 0; }
.device-name strong { display: block; font-weight: 700; overflow-wrap: anywhere; }
.device-title { display: flex; align-items: center; gap: 4px; }
.device-rename-btn {
  display: grid; place-items: center; flex: none; width: 32px; height: 32px; padding: 0;
  border: 0; border-radius: 50%; background: none; color: var(--muted); cursor: pointer;
  transition: background-color .15s, color .15s;
}
.device-rename-btn:hover { background: var(--paper-2); color: var(--ink); }
.device-rename { margin-bottom: 4px; }
.device-rename-row { display: flex; align-items: center; gap: 8px; }
.device-rename input {
  width: min(240px, 100%); min-width: 0; height: 42px; padding: 0 14px;
  background: var(--paper); color: var(--ink); border: 2px solid transparent; border-radius: var(--r-sm);
  font: 700 16px var(--font);
}
.device-rename input:focus { border-color: var(--ink); outline: 0; }
.device-rename input[aria-invalid="true"] { border-color: #C9341A; }
.device-rename .btn { flex: none; border: 0; cursor: pointer; }
.device-rename .text-btn { flex: none; }
.device-rename-error { margin-top: 6px; color: #B42C14; font-size: 14px; font-weight: 600; line-height: 1.4; }
.device-rename-error:empty { display: none; }
.device-name small { color: var(--muted); font-size: 14px; }
.device-controls { display: flex; align-items: center; gap: 16px; }
.sw-label { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; cursor: pointer; white-space: nowrap; }
.device-rows .empty { color: var(--muted); }
.phone-form .field-row:first-of-type { margin-top: 12px; }
.phone-form .field-row:last-child { margin-bottom: 0; }

/* ---------- 공통 배치 ---------- */
.two-col { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 14px; align-items: start; }
.side-stack { display: grid; gap: 14px; }

/* ---------- 추천 (가입 화면의 설명 팝업과 함께 씁니다) ---------- */
.recommend-me { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 14px; }
.copy-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 12px; padding: 12px 14px 12px 18px; background: var(--paper); border-radius: var(--r-sm); overflow-wrap: anywhere; }
.copy-row strong { font-size: clamp(1.15rem, 2vw, 1.4rem); font-weight: 800; letter-spacing: -.02em; }
.copy-row button { flex: none; padding: 4px 12px; background: var(--paper-2); border: 0; border-radius: 999px; font-size: 14px; font-weight: 700; cursor: pointer; }
.copy-row button:hover { background: #DEDAD3; }
.point-card { padding: clamp(20px, 3vw, 36px); background: var(--orange); border-radius: var(--r-md); line-height: 1.45; }
.point-value { margin: 4px 0; font-size: clamp(2.3rem, 4.8vw, 3.6rem); font-weight: 800; line-height: 1.1; letter-spacing: -.045em; }
.recommend-lead { margin-top: 4px; color: var(--muted); line-height: 1.5; }
.recommend .help-steps { margin-top: 16px; }
.help-steps { counter-reset: help; }
.help-steps li { counter-increment: help; position: relative; padding: 11px 0 11px 36px; border-top: 1px solid var(--paper-2); line-height: 1.45; }
.help-steps li::before {
  content: counter(help); position: absolute; left: 0; top: 12px; display: grid; place-items: center; width: 24px; height: 24px;
  background: var(--orange); border-radius: 50%; font-size: 13px; font-weight: 800;
}
.help-steps strong { display: block; font-weight: 800; letter-spacing: -.02em; }
.help-steps span { display: block; margin-top: 1px; color: #4A4641; font-size: 15px; }
.help-note { margin-top: 4px; padding: 11px 14px; background: var(--paper); border-radius: var(--r-sm); font-size: 15px; font-weight: 600; line-height: 1.45; }

/* ---------- 내 정보 ---------- */
.profile { max-width: 720px; }
.withdraw { max-width: 720px; }
.withdraw summary, .refund summary { cursor: pointer; font-weight: 800; letter-spacing: -.025em; }
.withdraw .text-btn { margin-top: 12px; }
.refund form { margin-top: 18px; }
.refund .note-list { margin: 0 0 16px; }

/* ---------- 고객센터 ---------- */
.support-item { display: block; width: 100%; border: 0; text-align: left; cursor: pointer; transition: background-color .15s; font: inherit; color: inherit; }
.support-item:hover { background: var(--paper-2); }
.support-item p { margin-top: 4px; color: var(--muted); font-size: 15px; line-height: 1.45; }
.support-call {
  display: grid; gap: 8px;
  padding: clamp(20px, 3vw, 32px);
  background: var(--ink); color: var(--muted-dark); border-radius: var(--r-md);
}
.support-call a { color: var(--white); font-size: clamp(1.6rem, 3vw, 2.4rem); font-weight: 800; letter-spacing: -.03em; text-decoration: none; }
.support-call-note { font-size: 15px; }
.alerts ul { margin-top: 6px; }
.alerts li { display: grid; grid-template-columns: 136px minmax(0, 1fr); gap: 12px; padding: 11px 0; line-height: 1.5; }
.alerts li + li { border-top: 1px solid var(--paper-2); }
.alerts small { color: var(--muted); font-size: 14px; line-height: 1.7; font-variant-numeric: tabular-nums; }

/* ---------- 안내 메시지 ---------- */
.toast {
  position: fixed; left: 50%; bottom: 28px; z-index: 40; max-width: calc(100vw - 32px);
  padding: 12px 20px; background: var(--ink); color: var(--white); border-radius: 999px;
  font-size: 15px; font-weight: 600; text-align: center;
  opacity: 0; pointer-events: none; transform: translate(-50%, 12px);
  transition: opacity .2s, transform .2s;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---------- 반응형 ---------- */
@media (max-width: 900px) {
  .status, .charge, .two-col, .home-grid, .recommend-me { grid-template-columns: minmax(0, 1fr); }
  .pc-actions { padding-top: 20px; }
}
@media (max-width: 720px) {
  .demo-bar { padding-left: 14px; padding-right: 14px; }
  .topbar-side { min-width: 0; }
  .nav a { padding: 9px 3px; }
  .status { border-radius: 28px; }
  /* 휴대폰: 세 버튼이 한 줄이면 글자가 잘려 PC 종료를 윗줄로 올립니다 */
  .pc-actions { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  #pc-stop { grid-column: 1 / -1; }
  .amounts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .field-pair, .refund-bank { grid-template-columns: minmax(0, 1fr); }
  .device-rows li { display: block; }
  .device-controls { justify-content: space-between; margin-top: 10px; }
  .alerts li { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .toast { bottom: 84px; width: max-content; border-radius: 18px; }
}
@media (prefers-reduced-motion: reduce) {
  .toast, .toggle-view i, .sw, .sw::after { transition: none; }
}

/* ---------- 아이디·비밀번호 찾기 ---------- */
.find-card { width: min(480px, 100%); }
.find-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; margin-bottom: 20px; padding: 4px; background: var(--paper); border-radius: 999px; }
.find-tabs button { min-height: 44px; border: 0; border-radius: 999px; background: transparent; color: var(--muted); font: 700 15px var(--font); cursor: pointer; }
.find-tabs button[aria-selected="true"] { background: var(--ink); color: var(--white); }
.find-tabs button:not([aria-selected="true"]):hover { color: var(--ink); }
.find-lead { margin-bottom: 16px; color: var(--muted); line-height: 1.5; }
.find-lead strong { color: var(--ink); }
.find-card .btn-full { margin-top: 4px; }
.find-result { padding: 22px; background: var(--paper); border-radius: var(--r-md); text-align: center; outline: none; }
.find-result-label { color: var(--muted); font-weight: 700; }
.find-result-value { margin-top: 6px; font-size: 1.8rem; font-weight: 800; letter-spacing: -.02em; overflow-wrap: anywhere; }
.find-result-label + .find-result-note { margin-top: 10px; }
.find-result-note { margin-top: 6px; color: var(--muted); font-size: 14px; line-height: 1.5; }
.find-actions { display: grid; gap: 8px; margin-top: 18px; }
.find-help { margin-top: 20px; color: var(--muted); font-size: 14px; line-height: 1.5; }
.find-help a { color: var(--ink); font-weight: 700; }

/* ---------- 로그인 실패 안내 ---------- */
.login-msg { margin: -4px 0 14px; padding: 12px 14px; background: #FDECE6; color: #A8320B; border-radius: var(--r-sm); font-size: 14px; font-weight: 600; line-height: 1.5; }
.login-msg:empty { display: none; }
.login-msg a { color: inherit; font-weight: 800; text-underline-offset: 3px; white-space: nowrap; }

/* ---------- 비어 있을 때 ---------- */
.empty-state { display: grid; justify-items: center; gap: 6px; padding: clamp(32px, 6vw, 56px) 24px; text-align: center; }
.empty-state svg { margin-bottom: 8px; color: #C9C3BA; }
.empty-state strong { font-size: 1.15rem; font-weight: 800; letter-spacing: -.02em; }
.empty-state p { color: var(--muted); line-height: 1.5; }
.empty-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 12px; }
.device-rows li.device-empty { display: block; padding: 28px 8px; text-align: center; border-bottom: 0; }
.device-empty strong { display: block; font-weight: 800; }
.device-empty p { margin-top: 4px; color: var(--muted); font-size: 15px; line-height: 1.5; }
#alert-list li.alert-empty { display: block; color: var(--muted); }

/* ---------- 회원 탈퇴 ---------- */
.withdraw-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 14px; padding: 18px clamp(18px, 2.4vw, 26px); border: 1px dashed #CFC9C0; border-radius: var(--r-md); }
.withdraw-row strong { font-weight: 800; }
.withdraw-row p { margin-top: 2px; color: var(--muted); font-size: 15px; }
.withdraw-row .btn { flex: none; border: 0; cursor: pointer; }
.withdraw-dialog { width: min(460px, calc(100vw - 32px)); }
.withdraw-notes { margin: 14px 0 18px; }
.withdraw-notes a { color: var(--ink); font-weight: 700; }
.withdraw-dialog .agree { margin: 4px 0 0; }
.withdraw-dialog .field-msg { margin-top: 10px; color: #B42C14; font-size: 14px; font-weight: 600; }
.withdraw-dialog .field-msg:empty { display: none; }
.popup-btn-danger { background: #C9341A; color: var(--white); }
.popup-btn-danger:hover { background: #A82A14; }
@media (max-width: 560px) {
  .withdraw-row { flex-direction: column; align-items: flex-start; }
}

/* 약관 보기 창 (충전 화면의 동의 문구) */
.agree .text-btn { padding: 0; font-size: inherit; color: var(--ink); }
.policy-dialog { width: min(640px, calc(100vw - 32px)); max-height: min(760px, calc(100dvh - 32px)); }
.policy-dialog .popup-actions { grid-template-columns: 1fr; }
.policy-dialog-content { margin-top: 12px; }
.policy-dialog .policy-lead { margin-top: 0; font-size: 15px; }
.policy-dialog .policy-summary { margin-top: 14px; background: var(--paper-2); }
.policy-dialog .policy-summary div { padding: 12px 16px; background: var(--paper); }
.policy-dialog .policy-body { margin-top: 14px; padding: 0; font-size: 15px; }
.policy-dialog .policy-body section + section { margin-top: 22px; padding-top: 22px; }
.policy-dialog .policy-body h2 { font-size: 1.02rem; }

/* 충전 약관 팝업: 내용 스크롤 및 모바일 화면 대응 */
.policy-dialog { width: min(760px, calc(100vw - 32px)); max-height: 88dvh; overflow: hidden; }
.policy-dialog-content { max-height: 60dvh; overflow-y: auto; overscroll-behavior: contain; padding-right: 8px; line-height: 1.75; }
.policy-dialog .policy-table-wrap { overflow-x: auto; }
@media (max-width: 600px) {
  .policy-dialog { width: calc(100vw - 24px); max-height: 92dvh; }
  .policy-dialog-content { max-height: 65dvh; }
}
