.hint { color: #6B6B6B; font-size: 11px; }
.footnote { color: #6B6B6B; font-size: 11.5px; text-align: center; margin: 4px 8px 0; line-height: 1.6; }
.footnote b { color: var(--pink-light); font-weight: 600; }

/* ---------- 탭 ---------- */
.tabs {
  flex: 0 0 auto;
  display: flex;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  padding: 0 8px;
}
.tabs .tab {
  flex: 1;
  background: transparent;
  color: var(--muted);
  border: none;
  border-bottom: 2px solid transparent;
  border-radius: 0;
  padding: 12px 8px;
  font-size: 13.5px;
  font-weight: 600;
  display: flex; align-items: center; justify-content: center; gap: 6px;
}
.tabs .tab.active { color: var(--pink); border-bottom-color: var(--pink); }
.tabs .tab:active { transform: none; }
.badge {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 18px; height: 18px; padding: 0 5px;
  border-radius: 999px; font-size: 11px; font-weight: 700;
  background: var(--surface-2); color: var(--muted);
}
.tabs .tab.active .badge { background: var(--accent-soft); color: var(--pink); }

/* ---------- 검색 / 정렬 ---------- */
.filters { display: flex; gap: 8px; margin-bottom: 12px; }
.filters input[type="search"] { flex: 1.6; min-width: 0; }
.filters select { flex: 1; min-width: 0; }

.listHead {
  display: flex; align-items: center; justify-content: space-between;
  margin: 0 2px 10px; font-size: 13px; color: var(--muted);
}

/* ---------- 방 카드 ---------- */
.room {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 13px 14px;
  margin-bottom: 10px;
}
.room.hot { border-color: rgba(255, 45, 122, .45); }
.room .head { display: flex; align-items: flex-start; gap: 8px; }
.room .name { font-weight: 650; font-size: 15px; flex: 1; word-break: break-all; }
.room .note { color: var(--muted); font-size: 12px; margin-top: 2px; }
.room .meta { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }

.kv {
  display: flex; align-items: center; gap: 8px;
  background: var(--surface-2); border: 1px solid var(--line);
  border-radius: 10px; padding: 8px 10px; margin-top: 8px;
  font-size: 12px;
}
.kv .k { color: var(--muted); flex: 0 0 auto; }
.kv .v { flex: 1; word-break: break-all; color: var(--text); }
.kv button { flex: 0 0 auto; }

.room .actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 11px; }
.room .actions button { flex: 1 1 calc(50% - 4px); }
.room .actions button.backup { background: var(--accent-soft); color: var(--pink); border: 1px solid rgba(255, 45, 122, .4); }

/* =========================================================
   v2 — 모달 · 고객사 카드 · 크레딧 · 설정
   ========================================================= */
.tabs { overflow-x: auto; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tabs .tab { flex: 1 0 auto; padding: 12px 10px; white-space: nowrap; }
.badge.hot { background: var(--pink); color: #fff; }

.modalBack {
  position: fixed; inset: 0; z-index: 50;
  background: rgba(0, 0, 0, .7);
  display: flex; align-items: flex-end; justify-content: center;
}
.modal {
  width: 100%; max-width: var(--shell);
  background: var(--surface);
  border-top: 1px solid var(--line);
  border-radius: 18px 18px 0 0;
  padding: 18px 16px calc(16px + env(safe-area-inset-bottom));
  max-height: 88dvh; overflow-y: auto;
}
@media (min-width: 520px) {
  .modalBack { align-items: center; }
  .modal { border-radius: 16px; border: 1px solid var(--line); max-width: 420px; }
}
.modal h3 { margin: 0 0 6px; font-size: 16px; }
.modalMsg { color: var(--muted); font-size: 13px; margin: 4px 0; line-height: 1.6; white-space: pre-wrap; }
.modalActions { display: flex; gap: 8px; margin-top: 16px; }
.modalActions button { flex: 1; }
button.dangerSolid { background: var(--danger); color: #fff; }
.modal .big {
  font-size: 22px; font-weight: 700; color: var(--pink); margin: 6px 0 2px;
}

/* 잔액 · 요약 */
.balance {
  display: flex; align-items: baseline; gap: 8px;
  font-size: 26px; font-weight: 750; letter-spacing: -.01em;
}
.balance small { font-size: 12px; color: var(--muted); font-weight: 500; }
.stripe {
  border-radius: 12px; padding: 10px 12px; font-size: 12.5px; margin-bottom: 12px; line-height: 1.6;
}
.stripe.promo { background: rgba(55, 211, 153, .1); color: #9DF0CD; border: 1px solid rgba(55, 211, 153, .3); }
.stripe.warn { background: var(--accent-soft); color: var(--pink-light); border: 1px solid rgba(255, 45, 122, .35); }
.stripe.bad { background: rgba(255, 84, 112, .12); color: #FFB3C0; border: 1px solid rgba(255, 84, 112, .35); }
.stripe button { margin-top: 8px; }

.hours { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.hours button {
  padding: 9px 4px; font-size: 12.5px; background: var(--surface-2); color: var(--text);
  border: 1px solid var(--line); line-height: 1.3;
}
.hours button small { display: block; font-size: 10.5px; color: var(--muted); font-weight: 500; }
.hours button.on { background: var(--accent-soft); border-color: var(--pink); color: var(--pink); }
.hours button.on small { color: var(--pink-light); }
.costLine { display: flex; justify-content: space-between; font-size: 13px; color: var(--muted); margin-top: 12px; }
.costLine b { color: var(--text); font-size: 15px; }
.costLine s { color: #6B6B6B; margin-right: 6px; }

/* 고객사 카드 */
.tenant { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 13px 14px; margin-bottom: 10px; }
.tenant.suspended { border-color: rgba(255, 214, 231, .35); }
.tenant.blocked { border-color: rgba(255, 84, 112, .5); opacity: .85; }
.tenant .head { display: flex; align-items: center; gap: 8px; }
.tenant .name { font-weight: 650; font-size: 15px; flex: 1; word-break: break-all; }
.tenant .credit { font-weight: 700; color: var(--pink); font-size: 15px; }
.tenant .memo { color: var(--muted); font-size: 12px; margin-top: 2px; }
.tenant .meta { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 9px; }
.tenant .actions { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-top: 10px; }
.tenant .actions button { padding: 8px 4px; font-size: 12px; }
.pill.bad { color: var(--danger); border-color: rgba(255, 84, 112, .45); }
.pill.ok { color: var(--ok); border-color: rgba(55, 211, 153, .35); }

/* 표 형태 목록 (내역·요청·링크) */
.lines { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.line { display: flex; align-items: center; gap: 10px; padding: 11px 12px; border-bottom: 1px solid var(--line); font-size: 13px; }
.line:last-child { border-bottom: none; }
.line .grow { flex: 1; min-width: 0; }
.line .t1 { word-break: break-all; }
.line .t2 { font-size: 11.5px; color: var(--muted); margin-top: 2px; word-break: break-all; }
.line .amt { font-weight: 700; white-space: nowrap; }
.line .amt.plus { color: var(--ok); }
.line .amt.minus { color: var(--pink); }
.line .btns { display: flex; gap: 6px; flex: 0 0 auto; }
.line.off { opacity: .5; }
.sectionHead { display: flex; align-items: center; justify-content: space-between; margin: 18px 2px 8px; font-size: 13px; color: var(--muted); }
.sectionHead:first-child { margin-top: 0; }

/* 잠긴 화면 (차단 등) */
.lockedView { text-align: center; padding: 60px 20px; }
.lockedView .ico { font-size: 34px; margin-bottom: 10px; }
.lockedView h2 { font-size: 18px; margin: 0 0 6px; }
.lockedView p { color: var(--muted); font-size: 13px; }

/* 고객사 페이지 상단 — 기록 미보관 안내 */
.privacyBar {
  flex: 0 0 auto;
  padding: 10px 14px;
  font-size: 12.5px;
  line-height: 1.55;
  color: var(--pink-light);
  background: var(--accent-soft);
  border-bottom: 1px solid rgba(255, 45, 122, .35);
}
.privacyBar b { color: #fff; font-weight: 700; }
.minTopup { font-size: 12.5px; color: var(--pink-light); margin: 0 0 12px; font-weight: 600; }

/* 월 구독 */
.subStatus { font-size: 18px; font-weight: 700; }
.subStatus.on { color: var(--ok); }
.subStatus.off { color: var(--muted); font-size: 15px; font-weight: 600; }
.plans { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 4px; }
.plan {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 14px 12px; display: flex; flex-direction: column; gap: 4px;
}
.plan.best { border-color: rgba(255, 45, 122, .55); }
.plan .pm { font-size: 13px; color: var(--muted); font-weight: 600; }
.plan .pp { font-size: 19px; font-weight: 750; }
.plan .pe { font-size: 11.5px; color: var(--muted); }
.plan .pd { font-size: 11px; font-weight: 700; color: var(--pink); min-height: 15px; }
.plan button { margin-top: 8px; }
.planRow { display: grid; grid-template-columns: 92px 1fr; align-items: center; gap: 10px; margin-top: 8px; }
.planRow span { font-size: 13px; color: var(--muted); }
.planRow small { grid-column: 2; font-size: 11px; color: #6B6B6B; margin-top: -4px; }
.planRow .pctWrap { display: flex; align-items: center; gap: 6px; }
.planRow .pctWrap input { flex: 1; min-width: 0; }
.planRow .pctWrap b { font-size: 14px; color: var(--muted); font-weight: 600; }
.planNote { font-size: 11px; margin: 10px 0 0; }

/* 고객사 공지 */
.line.notice { align-items: flex-start; }
.line .nb { font-size: 12.5px; color: var(--text); opacity: .85; margin-top: 4px; white-space: pre-wrap; word-break: break-word; }
.noticeCard { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 13px 14px; margin-bottom: 10px; }
.noticeCard.unread { border-color: rgba(255, 45, 122, .5); }
.noticeCard .nh { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.noticeCard .nt { font-weight: 650; font-size: 15px; margin-top: 6px; word-break: break-word; }
.noticeCard .nb { font-size: 13.5px; margin-top: 6px; white-space: pre-wrap; word-break: break-word; line-height: 1.6; }
.noticeCard .nd { font-size: 11.5px; color: var(--muted); }

/* 새 신청이 들어온 탭을 잠깐 반짝 */
.tabs .tab.ping { animation: tabPing 1.4s ease-out 2; }
@keyframes tabPing { 0%, 40% { background: var(--accent-soft); color: var(--pink); } 100% { background: transparent; } }
