/* ===== BankAPI — Vault Design System ===== */

:root {
  --bg:          #0d1117;
  --surface:     #161b22;
  --surface-2:   #21262d;
  --surface-3:   #2d333b;
  --border:      #30363d;
  --border-muted:#21262d;

  --primary:     #3b82f6;
  --primary-hover:#60a5fa;
  --primary-bg:  rgba(59,130,246,.12);
  --primary-dim: rgba(59,130,246,.06);

  --success:     #22c55e;
  --success-bg:  rgba(34,197,94,.1);
  --danger:      #ef4444;
  --danger-bg:   rgba(239,68,68,.1);
  --warn:        #f59e0b;
  --warn-bg:     rgba(245,158,11,.1);
  --info:        #06b6d4;
  --info-bg:     rgba(6,182,212,.1);
  --purple:      #a78bfa;
  --purple-bg:   rgba(167,139,250,.1);

  --text:        #e6edf3;
  --text-muted:  #8b949e;
  --text-subtle: #484f58;

  --sidebar-width: 220px;
  --topbar-height: 56px;

  --radius-sm: 4px;
  --radius:    6px;
  --radius-lg: 10px;
  --radius-xl: 14px;

  --shadow-sm: 0 1px 3px rgba(0,0,0,.3);
  --shadow:    0 4px 12px rgba(0,0,0,.4);
  --shadow-lg: 0 8px 32px rgba(0,0,0,.5);
  --shadow-xl: 0 20px 60px rgba(0,0,0,.6);

  --font:      'IBM Plex Sans', 'Pretendard', -apple-system, sans-serif;
  --font-mono: 'IBM Plex Mono', 'SF Mono', 'Fira Code', monospace;

  --transition: .16s cubic-bezier(.4,0,.2,1);
}

/* ── Reset & Base ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { font-size: 16px; scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}

a { color: var(--primary); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--primary-hover); }

img, svg { display: block; max-width: 100%; }

/* ── Sidebar Layout ── */
.app-layout {
  display: flex;
  min-height: 100vh;
}

.sidebar {
  position: fixed;
  top: 0; left: 0; bottom: 0;
  width: var(--sidebar-width);
  background: var(--surface);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  z-index: 100;
  overflow-y: auto;
  overflow-x: hidden;
}

.sidebar-brand {
  display: flex;
  align-items: center;
  gap: .75rem;
  padding: 1.25rem 1.25rem 1rem;
  font-weight: 700;
  font-size: 1rem;
  color: var(--text);
  letter-spacing: -.01em;
  border-bottom: 1px solid var(--border);
  text-decoration: none;
  flex-shrink: 0;
}

.sidebar-brand:hover { color: var(--text); }

.brand-icon {
  width: 32px; height: 32px;
  background: var(--primary);
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: .875rem;
  color: #fff;
  flex-shrink: 0;
  letter-spacing: 0;
}

.sidebar-section {
  padding: .75rem .75rem .25rem;
  font-size: .65rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--text-subtle);
}

.sidebar-nav {
  flex: 1;
  padding: .5rem .75rem;
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.sidebar-item {
  display: flex;
  align-items: center;
  gap: .625rem;
  padding: .5rem .75rem;
  border-radius: var(--radius-sm);
  font-size: .875rem;
  color: var(--text-muted);
  text-decoration: none;
  transition: background var(--transition), color var(--transition);
  white-space: nowrap;
}

.sidebar-item:hover {
  background: var(--surface-2);
  color: var(--text);
}

.sidebar-item.active {
  background: var(--primary-bg);
  color: var(--primary);
  font-weight: 500;
}

.sidebar-item svg {
  width: 15px; height: 15px;
  flex-shrink: 0;
  opacity: .7;
}

.sidebar-item.active svg { opacity: 1; }

.sidebar-footer {
  padding: .75rem;
  border-top: 1px solid var(--border);
  flex-shrink: 0;
}

.sidebar-credit {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: .5rem .75rem;
  background: var(--primary-dim);
  border: 1px solid var(--primary-bg);
  border-radius: var(--radius-sm);
  margin-bottom: .5rem;
  font-size: .8rem;
}

.sidebar-credit-label { color: var(--text-muted); }
.sidebar-credit-val { font-weight: 600; color: var(--primary); font-variant-numeric: tabular-nums; }

.sidebar-user {
  display: flex;
  align-items: center;
  gap: .625rem;
  padding: .375rem .75rem;
  border-radius: var(--radius-sm);
}

.sidebar-avatar {
  width: 28px; height: 28px;
  background: var(--surface-3);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: .7rem;
  font-weight: 600;
  color: var(--text-muted);
  flex-shrink: 0;
}

.sidebar-user-info { flex: 1; min-width: 0; }
.sidebar-user-name { font-size: .8rem; font-weight: 500; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sidebar-user-role { font-size: .7rem; color: var(--text-subtle); }

.sidebar-logout {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px; height: 28px;
  border-radius: var(--radius-sm);
  color: var(--text-subtle);
  transition: background var(--transition), color var(--transition);
}
.sidebar-logout:hover { background: var(--danger-bg); color: var(--danger); }

/* ── Mobile Sidebar Overlay ── */
.sidebar-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.6);
  z-index: 99;
  backdrop-filter: blur(2px);
}

/* ── Main Content Area ── */
.main-wrapper {
  flex: 1;
  margin-left: var(--sidebar-width);
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.topbar {
  position: sticky;
  top: 0;
  height: var(--topbar-height);
  background: rgba(13,17,23,.9);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  padding: 0 1.5rem;
  gap: 1rem;
  z-index: 50;
}

.topbar-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 36px; height: 36px;
  border: none;
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
  border-radius: var(--radius-sm);
  transition: background var(--transition);
}
.topbar-toggle:hover { background: var(--surface-2); color: var(--text); }

.topbar-title {
  font-size: .9375rem;
  font-weight: 600;
  color: var(--text);
  flex: 1;
}

.topbar-right { display: flex; align-items: center; gap: .75rem; }

.content {
  flex: 1;
  padding: 1.5rem;
  width: 100%;
  min-width: 0;
}

/* ── Landing / Public pages (no sidebar) ── */
.public-layout {
  min-height: 100vh;
}

.public-nav {
  position: sticky;
  top: 0;
  height: 60px;
  background: rgba(13,17,23,.9);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  padding: 0 2rem;
  gap: 2rem;
  z-index: 50;
}

.public-nav-brand {
  display: flex;
  align-items: center;
  gap: .75rem;
  font-weight: 700;
  font-size: 1rem;
  color: var(--text);
  text-decoration: none;
}

.public-nav-links { flex: 1; display: flex; gap: 1.5rem; }
.public-nav-links a { font-size: .875rem; color: var(--text-muted); }
.public-nav-links a:hover { color: var(--text); }
.public-nav-actions { display: flex; gap: .75rem; }

/* ── Page Header ── */
.page-header {
  margin-bottom: 1.5rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--border-muted);
}

.page-title {
  font-size: 1.375rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1.3;
  letter-spacing: -.02em;
}

.page-subtitle {
  font-size: .875rem;
  color: var(--text-muted);
  margin-top: .25rem;
}

.page-header-actions {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

/* ── Cards ── */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--border);
  gap: 1rem;
}

.card-header h2,
.card-header h3 {
  font-size: .9375rem;
  font-weight: 600;
  color: var(--text);
}

.card-body { padding: 1.25rem; }
.card-footer {
  padding: .75rem 1.25rem;
  border-top: 1px solid var(--border);
  font-size: .8rem;
  color: var(--text-subtle);
}

/* ── Stats Grid ── */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.stat-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  position: relative;
  overflow: hidden;
  transition: border-color var(--transition), transform var(--transition);
}

.stat-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: var(--border);
  transition: background var(--transition);
}

.stat-card.primary::before { background: var(--primary); }
.stat-card.success::before { background: var(--success); }
.stat-card.warn::before    { background: var(--warn); }
.stat-card.danger::before  { background: var(--danger); }
.stat-card.info::before    { background: var(--info); }
.stat-card.purple::before  { background: var(--purple); }
.stat-card.accent::before  { background: var(--success); }

.stat-icon {
  width: 36px; height: 36px;
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: .875rem;
}

.stat-icon.primary { background: var(--primary-bg); color: var(--primary); }
.stat-icon.success { background: var(--success-bg); color: var(--success); }
.stat-icon.warn    { background: var(--warn-bg);    color: var(--warn); }
.stat-icon.danger  { background: var(--danger-bg);  color: var(--danger); }
.stat-icon.info    { background: var(--info-bg);    color: var(--info); }

.stat-label { font-size: .78rem; color: var(--text-muted); font-weight: 500; text-transform: uppercase; letter-spacing: .04em; margin-bottom: .375rem; }
.stat-value { font-size: 1.75rem; font-weight: 700; color: var(--text); line-height: 1; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.stat-sub   { font-size: .78rem; color: var(--text-muted); margin-top: .5rem; }

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .375rem;
  padding: .5rem 1rem;
  font-family: var(--font);
  font-size: .875rem;
  font-weight: 500;
  line-height: 1;
  border: 1px solid transparent;
  border-radius: var(--radius);
  cursor: pointer;
  white-space: nowrap;
  transition: background var(--transition), border-color var(--transition), color var(--transition), box-shadow var(--transition);
  text-decoration: none;
  -webkit-user-select: none;
  user-select: none;
}

.btn:disabled { opacity: .45; cursor: not-allowed; }

.btn-primary {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}
.btn-primary:hover:not(:disabled) { background: var(--primary-hover); border-color: var(--primary-hover); color: #fff; }

.btn-secondary {
  background: var(--surface-2);
  border-color: var(--border);
  color: var(--text);
}
.btn-secondary:hover:not(:disabled) { background: var(--surface-3); border-color: var(--border-muted); }

.btn-ghost {
  background: transparent;
  border-color: transparent;
  color: var(--text-muted);
}
.btn-ghost:hover:not(:disabled) { background: var(--surface-2); color: var(--text); }

.btn-danger {
  background: var(--danger-bg);
  border-color: var(--danger);
  color: var(--danger);
}
.btn-danger:hover:not(:disabled) { background: var(--danger); color: #fff; }

.btn-warn {
  background: var(--warn-bg);
  border-color: var(--warn);
  color: var(--warn);
}
.btn-warn:hover:not(:disabled) { background: var(--warn); color: #000; }

.btn-sm { padding: .3rem .7rem; font-size: .8rem; }

/* ── 인라인 SVG 아이콘 (이모지 대체 — _icons.html 매크로) ── */
.ico { width: 1em; height: 1em; display: inline-block; vertical-align: -0.125em; flex-shrink: 0; }
.ico-ok { color: var(--success); }
.ico-bad { color: var(--danger); }
.ico-warn { color: var(--warn); }
.btn-lg { padding: .7rem 1.5rem; font-size: .9375rem; }
.btn-icon { padding: .45rem; }

/* ── Badges ── */
.badge {
  display: inline-flex;
  align-items: center;
  gap: .25rem;
  padding: .2rem .55rem;
  font-size: .7rem;
  font-weight: 600;
  letter-spacing: .02em;
  border-radius: 99px;
  white-space: nowrap;
}

.badge-success { background: var(--success-bg); color: var(--success); }
.badge-danger  { background: var(--danger-bg);  color: var(--danger); }
.badge-warn    { background: var(--warn-bg);     color: var(--warn); }
.badge-info    { background: var(--info-bg);     color: var(--info); }
.badge-primary { background: var(--primary-bg);  color: var(--primary); }
.badge-purple  { background: var(--purple-bg);   color: var(--purple); }
.badge-gray    { background: var(--surface-3);   color: var(--text-muted); }

/* ── Tables ── */
.table-wrap { overflow-x: auto; }

table { width: 100%; border-collapse: collapse; font-size: .875rem; }

th {
  text-align: left;
  padding: .625rem 1rem;
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--text-subtle);
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}

td {
  padding: .75rem 1rem;
  border-bottom: 1px solid var(--border-muted);
  color: var(--text);
  vertical-align: middle;
}

tr:last-child td { border-bottom: none; }
tbody tr:hover td { background: var(--primary-dim); }

.td-mono { font-family: var(--font-mono); font-size: .82rem; }

/* ── Forms ── */
.form-group { margin-bottom: 1.25rem; }

.form-label {
  display: block;
  font-size: .8125rem;
  font-weight: 500;
  color: var(--text-muted);
  margin-bottom: .4rem;
  letter-spacing: .01em;
}

.form-control {
  display: block;
  width: 100%;
  padding: .5rem .75rem;
  font-family: var(--font);
  font-size: .875rem;
  color: var(--text);
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  outline: none;
  transition: border-color var(--transition), box-shadow var(--transition);
  -webkit-appearance: none;
}

.form-control::placeholder { color: var(--text-subtle); }
.form-control:focus { border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-bg); }
.form-control:disabled { opacity: .5; cursor: not-allowed; }

select.form-control { cursor: pointer; }

.form-hint { font-size: .78rem; color: var(--text-subtle); margin-top: .3rem; }

/* ── Alerts ── */
.alert {
  display: flex;
  align-items: flex-start;
  gap: .75rem;
  padding: .875rem 1rem;
  border-radius: var(--radius);
  font-size: .875rem;
  margin-bottom: 1rem;
}

.alert-success { background: var(--success-bg); border: 1px solid var(--success); color: var(--success); }
.alert-danger  { background: var(--danger-bg);  border: 1px solid var(--danger);  color: var(--danger); }
.alert-warn    { background: var(--warn-bg);     border: 1px solid var(--warn);    color: var(--warn); }
.alert-info    { background: var(--info-bg);     border: 1px solid var(--info);    color: var(--info); }

/* ── Code Blocks ── */
.code-block, pre {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
  font-family: var(--font-mono);
  font-size: .8rem;
  color: var(--text-muted);
  overflow-x: auto;
  line-height: 1.7;
}

code { font-family: var(--font-mono); font-size: .875em; color: var(--primary-hover); background: var(--primary-dim); padding: .1em .35em; border-radius: 3px; }

pre code { background: none; color: inherit; padding: 0; font-size: inherit; }

/* ── Pagination ── */
.pagination {
  display: flex;
  align-items: center;
  gap: .25rem;
  flex-wrap: wrap;
}

.pagination a, .pagination span {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 32px;
  height: 32px;
  padding: 0 .5rem;
  font-size: .8125rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  text-decoration: none;
  transition: background var(--transition), color var(--transition);
}

.pagination a:hover { background: var(--surface-2); color: var(--text); }
.pagination span.active { background: var(--primary); border-color: var(--primary); color: #fff; font-weight: 600; }

/* ── API Key Box ── */
.api-key-box {
  display: flex;
  align-items: center;
  gap: .75rem;
  padding: .75rem 1rem;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.key-text {
  flex: 1;
  font-family: var(--font-mono);
  font-size: .8rem;
  color: var(--text);
  background: none;
  padding: 0;
  word-break: break-all;
}

/* ── Credit Options ── */
.credit-options {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: .75rem;
}

.credit-option {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 1rem;
  background: var(--surface-2);
  border: 2px solid var(--border);
  border-radius: var(--radius-lg);
  cursor: pointer;
  text-align: center;
  transition: border-color var(--transition), background var(--transition), transform var(--transition);
}

.credit-option:hover { border-color: var(--primary); background: var(--primary-dim); transform: translateY(-1px); }
.credit-option.selected { border-color: var(--primary); background: var(--primary-bg); }

.credit-option .amount { font-size: 1.1rem; font-weight: 700; color: var(--text); }
.credit-option .bonus { font-size: .72rem; color: var(--success); font-weight: 600; margin-top: .2rem; }
.credit-option .total { font-size: .75rem; color: var(--text-muted); margin-top: .2rem; }

/* ── Toggle Switch ── */
.toggle-switch { position: relative; cursor: pointer; }

.toggle-track {
  width: 40px; height: 22px;
  background: var(--surface-3);
  border: 1px solid var(--border);
  border-radius: 11px;
  position: relative;
  transition: background var(--transition), border-color var(--transition);
}

.toggle-track.on { background: var(--primary); border-color: var(--primary); }

.toggle-thumb {
  position: absolute;
  top: 2px; left: 2px;
  width: 16px; height: 16px;
  background: var(--text-muted);
  border-radius: 50%;
  transition: left .2s, background .2s;
}

.toggle-track.on .toggle-thumb { left: 20px; background: #fff; }

/* ── Credit Card Visual ── */
.credit-card-visual {
  width: 100%;
  max-width: 320px;
  aspect-ratio: 1.586;
  border-radius: 12px;
  padding: 1.125rem 1.25rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  cursor: pointer;
  transition: transform var(--transition), box-shadow var(--transition);
}

.credit-card-visual:hover { transform: translateY(-3px) scale(1.01); box-shadow: var(--shadow-xl); }

.credit-card-visual::before {
  content: '';
  position: absolute;
  top: -40%;
  right: -20%;
  width: 70%;
  aspect-ratio: 1;
  background: rgba(255,255,255,.07);
  border-radius: 50%;
}

.credit-card-visual::after {
  content: '';
  position: absolute;
  bottom: -40%;
  left: -10%;
  width: 60%;
  aspect-ratio: 1;
  background: rgba(255,255,255,.04);
  border-radius: 50%;
}

/* Card company gradients */
.card-shinhan  { background: linear-gradient(135deg, #0046a6 0%, #1a6fd4 100%); }
.card-kb       { background: linear-gradient(135deg, #c8860a 0%, #f5a623 100%); }
.card-samsung  { background: linear-gradient(135deg, #1e2742 0%, #2d4f8e 100%); }
.card-hyundai  { background: linear-gradient(135deg, #1a1a1a 0%, #3d3d3d 100%); }
.card-lotte    { background: linear-gradient(135deg, #c0001d 0%, #e8002b 100%); }
.card-woori    { background: linear-gradient(135deg, #00817e 0%, #00a89e 100%); }
.card-hana     { background: linear-gradient(135deg, #006b3f 0%, #00994d 100%); }
.card-nh       { background: linear-gradient(135deg, #5b8c00 0%, #7ab800 100%); }
.card-bc       { background: linear-gradient(135deg, #e06600 0%, #f08a00 100%); }
.card-ibk      { background: linear-gradient(135deg, #004b9b 0%, #0062cc 100%); }
.card-citi     { background: linear-gradient(135deg, #003b8e 0%, #1565c0 100%); }
.card-unknown  { background: linear-gradient(135deg, #2d333b 0%, #373e47 100%); }

.card-chip {
  width: 36px;
  height: 28px;
  background: linear-gradient(135deg, #d4b483, #a8813e);
  border-radius: 4px;
  position: relative;
  z-index: 1;
}

.card-chip::before {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 60%; height: 50%;
  border: 1.5px solid rgba(0,0,0,.2);
  border-radius: 2px;
}

.card-number {
  font-family: var(--font-mono);
  font-size: .875rem;
  font-weight: 500;
  letter-spacing: .15em;
  color: rgba(255,255,255,.9);
  position: relative;
  z-index: 1;
}

.card-bottom {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  position: relative;
  z-index: 1;
}

.card-holder { font-size: .72rem; color: rgba(255,255,255,.7); text-transform: uppercase; letter-spacing: .05em; }
.card-holder-name { font-size: .875rem; font-weight: 600; color: rgba(255,255,255,.95); margin-top: .125rem; }

.card-brand-name { font-size: .8rem; font-weight: 700; color: rgba(255,255,255,.9); letter-spacing: .02em; }

/* ── Card list ── */
.card-list { display: flex; flex-direction: column; gap: .75rem; }

.card-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: border-color var(--transition);
}

.card-item:hover { border-color: var(--primary); }
.card-item.default-card { border-color: var(--primary); background: var(--primary-dim); }

.card-item-icon {
  width: 52px;
  height: 36px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: .7rem;
  color: rgba(255,255,255,.9);
  flex-shrink: 0;
  letter-spacing: .04em;
}

.card-item-info { flex: 1; min-width: 0; }
.card-item-name { font-size: .875rem; font-weight: 500; color: var(--text); }
.card-item-num  { font-size: .78rem; font-family: var(--font-mono); color: var(--text-muted); margin-top: .125rem; }
.card-item-actions { display: flex; gap: .375rem; }

/* ── Modal ── */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.7);
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  backdrop-filter: blur(4px);
  animation: fadeIn .15s ease;
}

.modal {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  width: 100%;
  max-width: 480px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--shadow-xl);
  animation: slideUp .18s cubic-bezier(.34,1.56,.64,1);
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 1.5rem 1rem;
  border-bottom: 1px solid var(--border);
}

.modal-title { font-size: 1.0625rem; font-weight: 700; color: var(--text); }

.modal-close {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px; height: 32px;
  border: none;
  background: transparent;
  color: var(--text-muted);
  font-size: 1.25rem;
  cursor: pointer;
  border-radius: var(--radius-sm);
  transition: background var(--transition), color var(--transition);
}
.modal-close:hover { background: var(--surface-2); color: var(--text); }

.modal-body { padding: 1.25rem 1.5rem; }
.modal-footer { padding: 1rem 1.5rem; border-top: 1px solid var(--border); display: flex; justify-content: flex-end; gap: .75rem; }

/* Card brand selector in modal */
.card-brand-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: .75rem;
  margin-bottom: 1.25rem;
}

.card-brand-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .5rem;
  padding: .875rem .5rem;
  background: var(--surface-2);
  border: 2px solid var(--border);
  border-radius: var(--radius-lg);
  cursor: pointer;
  text-align: center;
  transition: border-color var(--transition), background var(--transition);
}

.card-brand-btn:hover { border-color: var(--primary); background: var(--primary-dim); }
.card-brand-btn.selected { border-color: var(--primary); background: var(--primary-bg); }

.card-brand-logo {
  width: 40px; height: 28px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .6rem;
  font-weight: 800;
  color: rgba(255,255,255,.95);
  letter-spacing: .03em;
}

.card-brand-name-label { font-size: .72rem; color: var(--text-muted); white-space: nowrap; }

/* ── Toast ── */
#toast { position: fixed; bottom: 1.5rem; right: 1.5rem; z-index: 999; display: flex; flex-direction: column; gap: .5rem; }

.toast-item {
  display: flex;
  align-items: center;
  gap: .75rem;
  padding: .75rem 1.125rem;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  font-size: .875rem;
  color: var(--text);
  box-shadow: var(--shadow-lg);
  animation: slideRight .2s ease;
  max-width: 320px;
}

.toast-item.success { border-color: var(--success); }
.toast-item.error   { border-color: var(--danger); }

/* ── Animations ── */
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes slideUp { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: translateY(0); } }
@keyframes slideRight { from { opacity: 0; transform: translateX(12px); } to { opacity: 1; transform: translateX(0); } }

/* ── Utilities ── */
.flex { display: flex; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-2 { gap: .5rem; }
.gap-3 { gap: .75rem; }
.text-center { text-align: center; }
.text-muted { color: var(--text-muted); }
.text-success { color: var(--success); }
.text-danger { color: var(--danger); }
.text-warn { color: var(--warn); }
.text-primary { color: var(--primary); }
.text-subtle { color: var(--text-subtle); }
.font-mono { font-family: var(--font-mono); }
.font-bold { font-weight: 700; }
.font-medium { font-weight: 500; }
.truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.small { font-size: .8125rem; }
.muted { color: var(--text-muted); }
.empty { text-align: center; padding: 3rem 1rem; color: var(--text-muted); }
.back { color: var(--text-muted); font-size: .875rem; display: inline-flex; align-items: center; gap: .25rem; }
.back:hover { color: var(--text); }
.mt-1 { margin-top: .25rem; }
.mt-2 { margin-top: .5rem; }
.mt-3 { margin-top: .75rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-6 { margin-bottom: 1.5rem; }

/* ── Login / Register Pages ── */
.auth-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg);
  padding: 1rem;
}

.auth-card {
  width: 100%;
  max-width: 400px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 2rem;
  box-shadow: var(--shadow-xl);
}

.auth-logo {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 1.75rem;
  text-align: center;
}

.auth-logo .brand-icon {
  width: 48px; height: 48px;
  border-radius: var(--radius);
  font-size: 1.25rem;
  margin-bottom: .75rem;
}

.auth-logo h1 { font-size: 1.25rem; font-weight: 700; }
.auth-logo p  { font-size: .875rem; color: var(--text-muted); margin-top: .25rem; }

/* ── Admin Revenue Charts ── */
.chart-bar-row {
  display: flex;
  align-items: center;
  gap: .75rem;
  margin-bottom: .5rem;
}

.chart-bar-label { width: 80px; font-size: .78rem; color: var(--text-muted); text-align: right; flex-shrink: 0; }

.chart-bar-track {
  flex: 1;
  height: 24px;
  background: var(--surface-2);
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.chart-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--primary) 0%, var(--primary-hover) 100%);
  border-radius: var(--radius-sm);
  transition: width .5s cubic-bezier(.4,0,.2,1);
  display: flex;
  align-items: center;
  padding-right: .5rem;
  justify-content: flex-end;
  font-size: .72rem;
  font-weight: 600;
  color: #fff;
  min-width: 2px;
}

/* ── Member Status Badges ── */
.badge-personal  { background: var(--info-bg);    color: var(--info); }
.badge-corporate { background: var(--purple-bg);  color: var(--purple); }
.badge-business  { background: var(--warn-bg);    color: var(--warn); }
.badge-active    { background: var(--success-bg); color: var(--success); }
.badge-suspended { background: var(--danger-bg);  color: var(--danger); }

/* ── Dev badge ── */
.dev-badge {
  display: inline-flex; align-items: center; gap: .25rem;
  padding: .1rem .4rem;
  background: var(--warn-bg); color: var(--warn);
  font-size: .65rem; font-weight: 700;
  border-radius: 3px; letter-spacing: .04em;
}

/* ── ch-badge ── */
.ch-badge {
  display: inline-flex; align-items: center;
  padding: .1rem .4rem;
  font-size: .68rem; font-weight: 600;
  border-radius: 3px;
}

/* Bank list / cert slot ── */
.bank-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px,1fr)); gap: .75rem; }

.bank-card {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1rem;
  transition: border-color var(--transition);
  display: flex;
  flex-direction: column;
  gap: .5rem;
}

.bank-card:hover { border-color: var(--primary); }
.bank-card.linked { border-color: var(--success); background: var(--success-bg); }
.bank-card.error  { border-color: var(--danger); }

.bank-head { display: flex; align-items: center; justify-content: space-between; gap: .5rem; }
.bank-name { font-size: .9375rem; font-weight: 600; color: var(--text); }
.bank-channels { display: flex; gap: .375rem; }
.bank-body { margin: .25rem 0; }
.bank-foot { display: flex; align-items: center; gap: .5rem; margin-top: auto; }
.bank-detail-link { font-size: .8125rem; color: var(--primary); } /* 다크(관리자) 기본 — 회원 라이트는 .member-area 오버라이드로 필 버튼 */

.status { font-size: .8125rem; font-weight: 500; }
.status.ok { color: var(--success); }
.status.off { color: var(--text-subtle); }

.balance { font-size: 1.125rem; font-weight: 700; color: var(--text); font-variant-numeric: tabular-nums; margin-top: .25rem; }

/* ── Cert Slot ── */
.cert-slot {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  text-align: center;
}
.cert-slot.has-cert { border-style: solid; }
.cert-slot-head { display: flex; align-items: center; justify-content: center; gap: .5rem; flex-wrap: wrap; margin-bottom: .75rem; }
.cert-slot-body { overflow-wrap: anywhere; }
/* owner_cn은 사업자명+등록번호+식별자가 공백 없이 이어진 긴 문자열일 수 있어(모바일 가로 넘침 유발) 강제 줄바꿈 */
.cert-slot-body strong { font-size: 1rem; color: var(--text); overflow-wrap: anywhere; word-break: break-word; }

/* ── Cert Status Flags ── */
.cert-flag {
  display: inline-flex;
  align-items: center;
  gap: .25rem;
  padding: .15rem .5rem;
  font-size: .75rem;
  font-weight: 600;
  border-radius: 99px;
  white-space: nowrap;
}
.cert-flag.active     { background: var(--success-bg); color: var(--success); }
.cert-flag.expired    { background: var(--warn-bg);    color: var(--warn); }
.cert-flag.mismatched { background: var(--danger-bg);  color: var(--danger); }
.cert-flag.blocked    { background: var(--danger-bg);  color: var(--danger); }
.cert-flag.none       { background: var(--surface-3);  color: var(--text-subtle); }

/* ── Cert Register ── */
.cert-register { margin-bottom: 1.5rem; }

/* ── Table numeric / color cells ── */
th.num, td.num { text-align: right; font-variant-numeric: tabular-nums; }

/* 표 정렬 유틸 — 헤더/셀 공통 (관리자 다크 + 회원 라이트 양쪽 적용)
   컬럼 단위: td-l(왼쪽, 기본) / td-c(가운데, 배지·버튼) / td-r(오른쪽, 숫자)
   헤더는 해당 컬럼 데이터와 같은 정렬을 쓸 것 — 헤더 일괄 가운데는 <table class="th-center"> */
th.td-l, td.td-l { text-align: left; }
th.td-c, td.td-c { text-align: center; }
th.td-r, td.td-r { text-align: right; font-variant-numeric: tabular-nums; }
table.th-center thead th,
table.th-center thead th.num { text-align: center; }

/* ── Revenue / Admin Tabs ── */
.tab-list {
  display: flex;
  gap: 0;
  border-bottom: 1px solid var(--border);
  margin-bottom: 1.5rem;
}

.tab-item {
  padding: .625rem 1.25rem;
  font-size: .875rem;
  font-weight: 500;
  color: var(--text-muted);
  border-bottom: 2px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: color var(--transition), border-color var(--transition);
  white-space: nowrap;
}

.tab-item:hover { color: var(--text); }
.tab-item.active { color: var(--primary); border-bottom-color: var(--primary); }

/* ── Mobile Responsive ── */
@media (max-width: 768px) {
  :root { --sidebar-width: 0px; }

  .sidebar {
    transform: translateX(-100%);
    transition: transform .25s ease;
    width: 220px;
    z-index: 101;
  }

  .sidebar.open { transform: translateX(0); }
  .sidebar-overlay.open { display: block; }

  .main-wrapper { margin-left: 0; }

  .topbar { padding: 0 1rem; }
  .topbar-toggle { display: flex; }

  .content { padding: 1rem; }

  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: .75rem; }
  .stat-value { font-size: 1.375rem; }

  .credit-options { grid-template-columns: repeat(2, 1fr); }
  .card-brand-grid { grid-template-columns: repeat(3, 1fr); gap: .5rem; }

  .modal { border-radius: var(--radius-lg) var(--radius-lg) 0 0; position: fixed; bottom: 0; left: 0; right: 0; max-width: none; animation: slideUp .2s ease; }
  .modal-backdrop { align-items: flex-end; padding: 0; }

  .page-header { margin-bottom: 1rem; padding-bottom: 1rem; }
  .page-title { font-size: 1.125rem; }

  table { font-size: .8rem; }
  th, td { padding: .5rem .75rem; }

  #toast { bottom: 1rem; right: 1rem; left: 1rem; }
  .toast-item { max-width: none; }
}

@media (max-width: 480px) {
  .stats-grid { grid-template-columns: 1fr; }
  .credit-options { grid-template-columns: repeat(2, 1fr); }
  .auth-card { padding: 1.5rem; }
}

/* ── Modal Overlay (legacy name — same as modal-backdrop but display:none toggle) ── */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.7);
  z-index: 200;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  backdrop-filter: blur(4px);
  animation: fadeIn .15s ease;
}
.modal-overlay.open {
  display: flex;
}
@media (max-width: 768px) {
  .modal-overlay.open { align-items: flex-end; padding: 0; }
  .modal-overlay .modal { border-radius: var(--radius-lg) var(--radius-lg) 0 0; position: relative; max-width: none; width: 100%; }
}

/* ── Card Logo (small inline icons) ── */
.card-logo {
  width: 48px;
  height: 32px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .62rem;
  font-weight: 800;
  color: rgba(255,255,255,.95);
  letter-spacing: .04em;
  flex-shrink: 0;
}
.card-logo.shinhan  { background: linear-gradient(135deg, #0046a6 0%, #1a6fd4 100%); }
.card-logo.kb       { background: linear-gradient(135deg, #c8860a 0%, #f5a623 100%); }
.card-logo.samsung  { background: linear-gradient(135deg, #1e2742 0%, #2d4f8e 100%); }
.card-logo.hyundai  { background: linear-gradient(135deg, #1a1a1a 0%, #3d3d3d 100%); }
.card-logo.lotte    { background: linear-gradient(135deg, #c0001d 0%, #e8002b 100%); }
.card-logo.nonghyup { background: linear-gradient(135deg, #5b8c00 0%, #7ab800 100%); }
.card-logo.hana     { background: linear-gradient(135deg, #006b3f 0%, #00994d 100%); }
.card-logo.woori    { background: linear-gradient(135deg, #00817e 0%, #00a89e 100%); }
.card-logo.bc       { background: linear-gradient(135deg, #e06600 0%, #f08a00 100%); }
.card-logo.citi     { background: linear-gradient(135deg, #003b8e 0%, #1565c0 100%); }
.card-logo.generic  { background: linear-gradient(135deg, #2d333b 0%, #373e47 100%); }

/* ── Saved Card Item ── */
.saved-card-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--border-muted);
}
.saved-card-item:last-child { border-bottom: none; }

.saved-card-info { display: flex; align-items: center; gap: .875rem; flex: 1; min-width: 0; }
.saved-card-details { flex: 1; min-width: 0; }
.saved-card-name { font-size: .875rem; font-weight: 500; color: var(--text); display: flex; align-items: center; gap: .5rem; }
.saved-card-number { font-size: .78rem; font-family: var(--font-mono); color: var(--text-muted); margin-top: .125rem; }
.saved-card-actions { display: flex; gap: .375rem; flex-shrink: 0; }

/* ── Empty State ── */
.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 3rem 1rem;
  text-align: center;
}
.empty-icon { font-size: 2rem; margin-bottom: .75rem; opacity: .6; }
.empty-title { font-size: .9375rem; font-weight: 500; color: var(--text-muted); margin-bottom: .375rem; }
.empty-desc { font-size: .8125rem; color: var(--text-subtle); }

/* ── Table small text cell ── */
.td-sm { font-size: .78rem; color: var(--text-muted); white-space: nowrap; }

/* ── Progress Bar (used in stats) ── */
.progress-bar {
  height: 6px;
  background: var(--surface-3);
  border-radius: 3px;
  overflow: hidden;
}
.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--primary) 0%, var(--primary-hover) 100%);
  border-radius: 3px;
  transition: width .5s cubic-bezier(.4,0,.2,1);
}

/* ── Sidebar divider ── */
.sidebar-divider { border: none; border-top: 1px solid var(--border-muted); }

/* ── Additional Button Variants ── */
.btn-success {
  background: var(--success);
  border-color: var(--success);
  color: #000;
}
.btn-success:hover:not(:disabled) { background: #16a34a; border-color: #16a34a; }

.btn-ghost-danger {
  background: transparent;
  border-color: transparent;
  color: var(--danger);
}
.btn-ghost-danger:hover:not(:disabled) { background: var(--danger-bg); border-color: var(--danger-bg); }

.btn-ghost-warn {
  background: transparent;
  border-color: transparent;
  color: var(--warn);
}
.btn-ghost-warn:hover:not(:disabled) { background: var(--warn-bg); border-color: var(--warn-bg); }

.btn-ghost-success {
  background: transparent;
  border-color: transparent;
  color: var(--success);
}
.btn-ghost-success:hover:not(:disabled) { background: var(--success-bg); border-color: var(--success-bg); }

.btn-xs { padding: .175rem .5rem; font-size: .72rem; }

/* ── Filter Bar (form controls + buttons same height) ── */
.filter-bar {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: .875rem 1.25rem;
  margin-bottom: 1.5rem;
}
.filter-bar form {
  display: flex;
  gap: .75rem;
  align-items: flex-end;
  flex-wrap: wrap;
}
.filter-bar .form-group { margin-bottom: 0; }
.filter-bar .form-control,
.filter-bar .btn {
  height: 38px;
  padding-top: 0;
  padding-bottom: 0;
  line-height: 38px;
}
@media (max-width: 768px) {
  .filter-bar form { gap: .5rem; }
  .filter-bar .form-group { min-width: 0 !important; flex: 1 1 140px; }
}

/* ── Card Registration Modal: Step Indicator ── */
.modal-steps {
  display: flex;
  align-items: center;
  gap: .5rem;
  margin-bottom: 1.25rem;
}
.modal-step-dot {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 1.5px solid var(--border);
  background: var(--surface-3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .65rem;
  font-weight: 700;
  color: var(--text-subtle);
  transition: all var(--transition);
  flex-shrink: 0;
}
.modal-step-dot.active  { background: var(--primary);    border-color: var(--primary);  color: #fff; }
.modal-step-dot.done    { background: var(--success-bg); border-color: var(--success);  color: var(--success); }
.modal-step-line { flex: 1; height: 1px; background: var(--border); }
.modal-step-label {
  font-size: .72rem;
  color: var(--text-muted);
  white-space: nowrap;
}

/* ── Card Register Visual Preview ── */
.card-reg-preview {
  width: 100%;
  aspect-ratio: 1.586;
  border-radius: 12px;
  padding: 1.125rem 1.375rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  margin-bottom: 1.375rem;
  background: linear-gradient(135deg, #2d333b 0%, #373e47 100%);
  transition: background .3s ease;
}
.card-reg-preview::before {
  content: '';
  position: absolute;
  top: -40%; right: -20%;
  width: 70%; aspect-ratio: 1;
  background: rgba(255,255,255,.08);
  border-radius: 50%;
  pointer-events: none;
}
.card-reg-preview::after {
  content: '';
  position: absolute;
  bottom: -40%; left: -10%;
  width: 55%; aspect-ratio: 1;
  background: rgba(255,255,255,.04);
  border-radius: 50%;
  pointer-events: none;
}
.crp-brand      { font-size: .68rem; font-weight: 700; letter-spacing: .08em; color: rgba(255,255,255,.8); text-transform: uppercase; position: relative; z-index: 1; }
.crp-chip       { width: 30px; height: 22px; background: linear-gradient(135deg,#d4b483,#a8813e); border-radius: 3px; margin-top: .5rem; position: relative; z-index: 1; }
.crp-number     { font-family: var(--font-mono); font-size: 1rem; letter-spacing: .2em; color: rgba(255,255,255,.92); position: relative; z-index: 1; }
.crp-bottom     { display: flex; justify-content: space-between; align-items: flex-end; position: relative; z-index: 1; }
.crp-expiry-label { font-size: .55rem; color: rgba(255,255,255,.6); letter-spacing: .04em; text-transform: uppercase; }
.crp-expiry-val   { font-family: var(--font-mono); font-size: .82rem; color: rgba(255,255,255,.9); }
.crp-brand-name   { font-size: .9rem; font-weight: 700; color: rgba(255,255,255,.9); letter-spacing: .02em; }

/* ── 사이트 푸터 ─────────────────────────────────────────── */
.site-footer {
  border-top: 1px solid var(--border);
  background: var(--surface-1);
  padding: 2rem 0 1.5rem;
  margin-top: auto;
}
.site-footer-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  flex-direction: column;
  gap: .5rem;
}
.site-footer-info {
  display: flex;
  flex-wrap: wrap;
  gap: .25rem 1.5rem;
  font-size: .75rem;
  color: var(--text-muted);
  line-height: 1.6;
}
.site-footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: .5rem;
  margin-top: .75rem;
  padding-top: .75rem;
  border-top: 1px solid var(--border);
  font-size: .75rem;
  color: var(--text-muted);
}
.site-footer-links {
  display: flex;
  gap: 1.25rem;
}
.site-footer-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: .75rem;
  transition: color var(--transition);
}
.site-footer-links a:hover { color: var(--text-primary); }

/* ── 법적 문서 페이지 ─────────────────────────────────────── */
.legal-wrap {
  max-width: 860px;
  margin: 0 auto;
  padding: 3rem 2rem 4rem;
}
.legal-wrap h1 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: .5rem;
}
.legal-wrap .legal-date {
  font-size: .8125rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
}
.legal-wrap h2 {
  font-size: 1rem;
  font-weight: 600;
  margin: 2rem 0 .5rem;
  color: var(--text-primary);
}
.legal-wrap p, .legal-wrap li {
  font-size: .875rem;
  color: var(--text-secondary);
  line-height: 1.75;
}
.legal-wrap ul, .legal-wrap ol {
  padding-left: 1.25rem;
  margin: .5rem 0;
}
.legal-wrap table {
  width: 100%;
  border-collapse: collapse;
  font-size: .8125rem;
  margin: .75rem 0;
}
.legal-wrap th, .legal-wrap td {
  border: 1px solid var(--border);
  padding: .5rem .75rem;
  text-align: left;
  color: var(--text-secondary);
}
.legal-wrap th {
  background: var(--surface-2);
  font-weight: 600;
  color: var(--text-primary);
}

/* ── 공개 페이지 공통 레이아웃 ───────────────────────────── */
.public-body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}
.public-main {
  flex: 1;
  display: flex;
  flex-direction: column;
}

/* 공개 네비게이션 */
.public-nav {
  position: sticky;
  top: 0;
  height: 60px;
  background: rgba(13,17,23,.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  z-index: 50;
  flex-shrink: 0;
}
.public-nav-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 2rem;
  height: 100%;
  display: flex;
  align-items: center;
  gap: 1.5rem;
}
.public-nav-brand {
  display: flex;
  align-items: center;
  gap: .625rem;
  text-decoration: none;
  flex-shrink: 0;
}
.brand-mark-sm {
  width: 32px;
  height: 32px;
  background: var(--primary);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: .875rem;
  color: #fff;
}
.public-nav-title {
  font-weight: 700;
  font-size: 1rem;
  color: var(--text-primary);
}
.public-nav-links {
  display: flex;
  gap: 1.25rem;
  align-items: center;
}
.public-nav-links a {
  font-size: .875rem;
  color: var(--text-muted);
  text-decoration: none;
  transition: color var(--transition);
}
.public-nav-links a:hover { color: var(--text-primary); }
.public-nav-actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: .625rem;
}

/* auth-page: public-body 안에서는 flex 기반 센터링 */
.public-body .auth-page {
  min-height: unset;
  flex: 1;
}

@media (max-width: 600px) {
  .public-nav-links { display: none; }
  .public-nav-inner { gap: .75rem; }
}

/* ═══════════════════════════════════════════════════════════════
   PUBLIC PAGES — Light Theme (리뉴얼 2025)
   ═══════════════════════════════════════════════════════════════ */

/* Fonts for public pages */
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+KR:wght@300;400;500;600;700;900&family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

/* ── Reset & base ─────────────────────────────────────────────── */
.pub-body {
  background: #fff;
  color: #111;
  font-family: 'Noto Sans KR', -apple-system, BlinkMacSystemFont, sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
.pub-body * { box-sizing: border-box; }
.pub-body ::-webkit-scrollbar { width: 0; }

/* ── Nav ──────────────────────────────────────────────────────── */
.pub-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: 68px;
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background .3s, border-color .3s, backdrop-filter .3s;
}
.pub-nav.scrolled, .pub-nav.solid {
  background: rgba(255,255,255,.96);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid #eee;
}
.pub-nav-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.pub-nav-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  flex-shrink: 0;
}
.pub-logo-mark {
  width: 36px; height: 36px;
  border-radius: 10px;
  background: #FEE500;
  display: flex; align-items: center; justify-content: center;
  font-weight: 900; font-size: 16px; color: #111;
}
.pub-nav-brand-text {
  font-weight: 800;
  font-size: 17px;
  color: #111;
  letter-spacing: -.5px;
}
.pub-nav-sep { width: 1px; height: 14px; background: #ddd; flex-shrink: 0; align-self: center; }
.pub-nav-links .member-link { color: #333; font-size: 13px; }
.pub-nav-links .member-link:hover { color: #111; }
.pub-nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}
.pub-nav-links a {
  font-size: 14px;
  font-weight: 500;
  color: #333;
  text-decoration: none;
  transition: color .2s;
}
.pub-nav-links a:hover { color: #111; }
.pub-nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}
.pub-nav-actions .pub-link {
  font-size: 14px; font-weight: 500; color: #555; text-decoration: none;
}
.pub-nav-actions .pub-btn-pill {
  font-size: 14px; font-weight: 700;
  padding: 9px 22px; border-radius: 50px;
  background: #FEE500; color: #111;
  text-decoration: none; white-space: nowrap;
  transition: opacity .2s;
}
.pub-nav-actions .pub-btn-pill:hover { opacity: .85; }
.pub-btn-admin {
  font-size: 13px; font-weight: 700; padding: 7px 16px; border-radius: 50px;
  background: #111; color: #fff; text-decoration: none; white-space: nowrap;
  transition: background .2s;
}
.pub-btn-admin:hover { background: #333; }
.pub-user-wrap { position: relative; display: flex; align-items: center; }
.pub-user-btn {
  display: flex; align-items: center; gap: 7px; background: none; border: 1px solid #ddd;
  border-radius: 50px; padding: 6px 14px 6px 8px; cursor: pointer; font-size: 13px;
  font-weight: 500; color: #333; font-family: inherit; transition: border-color .2s, background .2s;
}
.pub-user-btn:hover { border-color: #bbb; background: #f7f8fa; }
.pub-user-avatar {
  width: 24px; height: 24px; border-radius: 50%; background: #FEE500;
  color: #111; font-size: 12px; font-weight: 800; display: flex; align-items: center; justify-content: center;
}
.pub-user-dropdown {
  display: none; position: absolute; top: calc(100% + 8px); right: 0;
  background: #fff; border: 1px solid #e5e7eb; border-radius: 12px;
  box-shadow: 0 8px 32px rgba(0,0,0,.12); min-width: 180px; padding: 6px; z-index: 300;
}
.pub-user-wrap:hover .pub-user-dropdown,
.pub-user-wrap.open .pub-user-dropdown { display: block; }
.pub-user-dropdown a {
  display: block; padding: 8px 12px; font-size: 13px; color: #333;
  text-decoration: none; border-radius: 8px; transition: background .15s;
}
.pub-user-dropdown a:hover { background: #f7f8fa; }
.pub-user-dropdown hr { border: none; border-top: 1px solid #f0f0f0; margin: 4px 0; }
.pub-user-dropdown .logout-link { color: #e00; }

/* ── Mega-menu dropdown ── */
.pub-nav-dropdown-wrap {
  position: relative;
  display: flex;
  align-items: center;
}
.pub-nav-dropdown-trigger {
  display: flex; align-items: center; gap: 4px;
  font-size: 14px; font-weight: 500; color: #333; text-decoration: none; cursor: pointer;
  transition: color .2s;
}
.pub-nav-dropdown-trigger:hover { color: #111; }
.pub-nav-dropdown-trigger svg { transition: transform .2s; }
.pub-nav-dropdown-wrap:hover .pub-nav-dropdown-trigger svg { transform: rotate(180deg); }
.pub-nav-megamenu {
  display: none;
  position: absolute; top: calc(100% + 14px); left: 50%; transform: translateX(-50%);
  background: #fff; border: 1px solid #eee; border-radius: 16px;
  box-shadow: 0 8px 40px rgba(0,0,0,.10);
  padding: 20px 4px; min-width: 560px;
  flex-direction: row; gap: 0; z-index: 1000;
}
.pub-nav-dropdown-wrap:hover .pub-nav-megamenu { display: flex; }
.pub-mm-col { flex: 1; padding: 0 20px; }
.pub-mm-divider { width: 1px; background: #eee; flex-shrink: 0; }
.pub-mm-label {
  font-size: 10px; font-weight: 700; color: #aaa;
  text-transform: uppercase; letter-spacing: .08em;
  margin: 0 0 10px; padding: 0 4px;
}
.pub-mm-step {
  display: flex; align-items: center; gap: 10px;
  padding: 7px 8px; border-radius: 8px;
  text-decoration: none; color: #333; font-size: 13px; font-weight: 500;
  transition: background .15s;
}
.pub-mm-step:hover { background: #f7f8fa; }
.pub-mm-num { font-size: 10px; font-weight: 800; color: #ccc; font-family: monospace; min-width: 18px; }
.pub-mm-group {
  font-size: 11px; font-weight: 700; color: #bbb;
  margin: 14px 0 4px; padding: 0 4px;
}
.pub-mm-group:first-of-type { margin-top: 2px; }
.pub-mm-ep {
  display: flex; align-items: center; gap: 8px;
  padding: 5px 4px; text-decoration: none; color: #333;
  font-size: 12px; border-radius: 6px; transition: background .15s;
}
.pub-mm-ep:hover { background: #f7f8fa; }
.pub-mm-method {
  display: inline-block; padding: 2px 5px; border-radius: 4px;
  font-size: 9px; font-weight: 700; font-family: monospace; min-width: 32px; text-align: center;
}
.pub-mm-method.post { background: #e8f0fe; color: #1a73e8; }
.pub-mm-method.get  { background: #e6f4ea; color: #2e7d32; }
.pub-mm-method.del  { background: #fce8e6; color: #c62828; }

/* hamburger */
.pub-nav-hamburger {
  display: none;
  background: none; border: none; cursor: pointer; padding: 8px;
  flex-direction: column; gap: 5px;
}
.pub-nav-hamburger span {
  display: block; width: 22px; height: 2px; background: #111; border-radius: 2px;
}
.pub-nav-mobile {
  display: none;
  background: #fff;
  border-top: 1px solid #eee;
  padding: 16px 24px;
  flex-direction: column;
  gap: 16px;
}
.pub-nav-mobile.open { display: flex; }
.pub-nav-mobile a { font-size: 15px; font-weight: 500; color: #333; text-decoration: none; }
.pub-nav-mobile .mob-actions { display: flex; gap: 10px; padding-top: 4px; }
.pub-nav-mobile .mob-actions a {
  flex: 1; text-align: center; padding: 11px;
  border-radius: 50px; font-size: 14px; font-weight: 600;
  text-decoration: none;
}
.pub-nav-mobile .mob-login {
  border: 1.5px solid #ddd; color: #333; background: transparent;
}
.pub-nav-mobile .mob-start {
  background: #FEE500; color: #111; font-weight: 700;
}

@media (max-width: 768px) {
  .pub-nav-links, .pub-nav-actions { display: none !important; }
  .pub-nav-hamburger { display: flex !important; }
}

/* ── Auth pages (login / register) mini nav ───────────────────── */
.auth-mini-nav {
  padding: 20px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.auth-mini-brand {
  display: flex; align-items: center; gap: 8px; text-decoration: none;
}
.auth-mini-brand .pub-logo-mark { width: 34px; height: 34px; font-size: 15px; }
.auth-mini-brand span { font-weight: 800; font-size: 16px; color: #111; letter-spacing: -.5px; }
.auth-mini-hint { font-size: 13px; color: #888; }
.auth-mini-hint a { color: #111; font-weight: 700; text-decoration: none; }

/* ── Auth form card ───────────────────────────────────────────── */
.pub-auth-page {
  background: #f7f8fa;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}
.pub-auth-body {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 24px;
}
.pub-auth-wrap { width: 100%; max-width: 440px; }
.pub-auth-wrap-lg { width: 100%; max-width: 480px; }
.pub-auth-heading {
  text-align: center;
  margin-bottom: 40px;
}
.pub-auth-heading h1 {
  font-size: 28px; font-weight: 900; color: #111; letter-spacing: -1px; margin-bottom: 8px;
}
.pub-auth-heading p { font-size: 14px; color: #888; }
.pub-auth-card {
  background: #fff;
  border-radius: 20px;
  padding: 40px;
  border: 1px solid #eee;
  box-shadow: 0 4px 24px rgba(0,0,0,.06);
}
.pub-field { margin-bottom: 16px; }
.pub-field-last { margin-bottom: 24px; }
.pub-label {
  display: block;
  font-size: 13px; font-weight: 700; color: #333;
  margin-bottom: 6px;
}
.pub-label .req { color: #e00; }
.pub-label .opt { color: #aaa; font-weight: 400; }
.pub-input {
  width: 100%; padding: 13px 16px;
  border-radius: 12px; border: 1.5px solid #e8e8e8;
  font-size: 14px; color: #111; outline: none;
  transition: border-color .2s;
  background: #fff; box-sizing: border-box;
  font-family: inherit;
}
.pub-input:focus { border-color: #FEE500; }
.pub-input.err { border-color: #f44336; }
.pub-input-pw { padding-right: 48px; }
.pub-pw-wrap { position: relative; }
.pub-pw-toggle {
  position: absolute; right: 14px; top: 50%; transform: translateY(-50%);
  background: none; border: none; cursor: pointer; font-size: 16px; color: #aaa;
  padding: 0; line-height: 1;
}
.pub-field-err { font-size: 12px; color: #e00; margin-top: 4px; }
.pub-submit-btn {
  width: 100%; padding: 14px; border-radius: 50px; border: none;
  background: #FEE500; color: #111;
  font-size: 15px; font-weight: 700; cursor: pointer;
  transition: opacity .2s; font-family: inherit;
}
.pub-submit-btn:hover { opacity: .85; }
.pub-submit-btn:disabled { background: #f0f0f0; color: #aaa; cursor: not-allowed; opacity: 1; }
.pub-divider {
  display: flex; align-items: center; gap: 12px; margin: 24px 0;
}
.pub-divider::before, .pub-divider::after {
  content: ''; flex: 1; height: 1px; background: #eee;
}
.pub-divider span { font-size: 12px; color: #bbb; }
.pub-social-btn {
  width: 100%; padding: 13px; border-radius: 12px; border: 1.5px solid #eee;
  background: #fff; cursor: pointer; font-size: 14px; font-weight: 600; color: #333;
  display: flex; align-items: center; justify-content: center; gap: 8px;
  transition: border-color .2s; font-family: inherit;
}
.pub-social-btn:hover { border-color: #ddd; }
.pub-auth-footer {
  text-align: center; margin-top: 24px; font-size: 13px; color: #888;
}
.pub-auth-footer a { color: #111; font-weight: 700; text-decoration: none; }
.pub-pw-row {
  display: flex; justify-content: space-between; margin-bottom: 6px;
}
.pub-pw-row a { font-size: 12px; color: #888; text-decoration: none; }

/* ── Register wizard ──────────────────────────────────────────── */
.reg-steps {
  display: flex; align-items: center; justify-content: center;
  gap: 0; margin-bottom: 40px;
}
.reg-step-item { display: flex; align-items: center; }
.reg-step-circle-wrap {
  display: flex; flex-direction: column; align-items: center; gap: 6px;
}
.reg-step-circle {
  width: 32px; height: 32px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 13px;
  background: #e8e8e8; color: #aaa;
  transition: all .3s;
}
.reg-step-circle.active { background: #FEE500; color: #111; }
.reg-step-circle.done { background: #FEE500; color: #111; }
.reg-step-label {
  font-size: 11px; font-weight: 400; color: #aaa; white-space: nowrap;
}
.reg-step-label.active { font-weight: 700; color: #111; }
.reg-step-line {
  width: 60px; height: 2px;
  background: #e8e8e8;
  margin: 0 4px; margin-bottom: 20px;
  transition: background .3s;
}
.reg-step-line.done { background: #FEE500; }
.reg-btn-row { display: flex; gap: 10px; }
.reg-btn-back {
  flex: 1; padding: 14px; border-radius: 50px;
  border: 1.5px solid #e8e8e8; background: #fff;
  cursor: pointer; font-size: 14px; font-weight: 600; color: #555;
  font-family: inherit;
}
.reg-btn-next {
  flex: 2; padding: 14px; border-radius: 50px; border: none;
  background: #FEE500; color: #111;
  font-size: 15px; font-weight: 700; cursor: pointer;
  transition: opacity .2s; font-family: inherit;
}
.reg-btn-next:hover { opacity: .85; }

/* agree checkboxes */
.agree-all {
  padding: 16px; border-radius: 12px;
  background: #fffde6; border: 1px solid #FEE500; margin-bottom: 16px;
}
.agree-row {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 0; border-bottom: 1px solid #f0f0f0;
}
.agree-row:last-child { border-bottom: none; }
.agree-check-label {
  display: flex; align-items: center; gap: 10px; cursor: pointer; flex: 1;
}
.agree-check-label input[type=checkbox] {
  width: 16px; height: 16px; accent-color: #FEE500; cursor: pointer;
}
.agree-all .agree-check-label input[type=checkbox] { width: 18px; height: 18px; }
.agree-check-label span { font-size: 14px; color: #333; }
.agree-all .agree-check-label span { font-size: 15px; font-weight: 700; color: #111; }
.agree-link { font-size: 12px; color: #aaa; text-decoration: none; }

/* register success */
.reg-success {
  min-height: 100vh; background: #f7f8fa;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 24px; text-align: center;
}
.reg-success-icon {
  width: 72px; height: 72px; border-radius: 50%; background: #FEE500;
  display: flex; align-items: center; justify-content: center;
  font-size: 32px; margin: 0 auto 24px;
}
.reg-success h1 { font-size: 28px; font-weight: 900; color: #111; margin-bottom: 12px; }
.reg-success p { font-size: 15px; color: #666; line-height: 1.7; margin-bottom: 32px; word-break: keep-all; }
.reg-success a {
  padding: 14px 32px; border-radius: 50px;
  background: #FEE500; color: #111;
  font-size: 15px; font-weight: 700; text-decoration: none; display: inline-block;
}

/* ── Footer (dark) ───────────────────────────────────────────── */
.pub-footer {
  background: #0d0d0d;
  padding: 64px 24px 40px;
}
.pub-footer-inner { max-width: 1120px; margin: 0 auto; }
.pub-footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}
.pub-footer-brand {
  display: flex; align-items: center; gap: 8px; text-decoration: none; margin-bottom: 20px;
}
.pub-footer-brand .pub-logo-mark { width: 34px; height: 34px; font-size: 15px; }
.pub-footer-brand span { font-weight: 800; font-size: 16px; color: #fff; letter-spacing: -.5px; }
.pub-footer-tagline {
  font-size: 13px; color: #666; line-height: 1.8; margin-bottom: 24px; word-break: keep-all;
}
.pub-footer-corp { font-size: 12px; color: #555; line-height: 2.2; }
.pub-footer-corp a { color: #FEE500; text-decoration: none; }
.pub-footer-col h4 {
  font-size: 13px; font-weight: 700; color: #fff; margin-bottom: 16px; letter-spacing: .5px;
}
.pub-footer-col ul { list-style: none; }
.pub-footer-col li { margin-bottom: 10px; }
.pub-footer-col a { font-size: 13px; color: #666; text-decoration: none; transition: color .2s; }
.pub-footer-col a:hover { color: #fff; }
.pub-footer-bottom {
  border-top: 1px solid rgba(255,255,255,.07);
  padding-top: 24px;
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px;
}
.pub-footer-bottom p { font-size: 12px; color: #444; }

@media (max-width: 768px) {
  .pub-footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .pub-footer { padding: 48px 24px 32px; }
}

/* ── Landing page sections ───────────────────────────────────── */
.pub-section { padding: 96px 24px; }
.pub-section-inner { max-width: 1120px; margin: 0 auto; }
.pub-eyebrow {
  font-size: 12px; font-weight: 700; letter-spacing: 3px;
  color: #aaa; text-transform: uppercase; margin-bottom: 12px;
}
.pub-section-h2 {
  font-size: clamp(28px, 3.5vw, 48px); font-weight: 900;
  letter-spacing: -1px; color: #111; margin-bottom: 56px; word-break: keep-all;
}
.pub-section-lead {
  font-size: 15px; color: #888; margin-bottom: 56px; word-break: keep-all;
}

/* fade-in via CSS keyframe animation */
@keyframes pubReveal {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: none; }
}
.pub-reveal {
  animation: pubReveal .6s ease both;
}

/* features grid */
.pub-features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.pub-feature-card {
  background: #fff; border-radius: 20px; padding: 32px 28px;
  border: 1px solid #ebebeb; height: 100%;
  transition: transform .25s, box-shadow .25s;
  cursor: default;
}
.pub-feature-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0,0,0,.08);
}
.pub-feature-top {
  display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 20px;
}
.pub-feature-icon { display: flex; align-items: center; }
.pub-feature-icon svg { width: 28px; height: 28px; color: #111; }
.pub-badge {
  font-size: 10px; font-weight: 800; letter-spacing: .5px;
  padding: 4px 10px; border-radius: 50px;
  background: #FEE500; color: #111;
}
.pub-feature-card h3 { font-size: 17px; font-weight: 700; color: #111; margin-bottom: 10px; }
.pub-feature-card p { font-size: 14px; color: #666; line-height: 1.7; word-break: keep-all; }

/* banks grid */
.pub-banks-grid {
  display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px;
}
.pub-bank-card {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 12px; padding: 24px 16px; border-radius: 20px;
  background: #f7f8fa; border: 1px solid #ebebeb;
  transition: transform .25s, box-shadow .25s; cursor: default;
}
.pub-bank-card:hover { transform: translateY(-4px); box-shadow: 0 12px 40px rgba(0,0,0,.08); }
.pub-bank-icon {
  width: 64px; height: 64px; border-radius: 16px;
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 800;
}
.pub-bank-logo {
  width: 72px; height: 72px;
  display: block; object-fit: contain;
}
.pub-bank-name { font-size: 12px; font-weight: 600; color: #444; text-align: center; word-break: keep-all; }

/* stats */
.pub-stats-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 0; border-top: 1px solid #eee; padding-top: 40px;
}
.pub-stat-item {
  padding-right: 32px; border-right: 1px solid #eee;
}
.pub-stat-item:first-child { padding-left: 0; }
.pub-stat-item:last-child { border-right: none; }
.pub-stat-item + .pub-stat-item { padding-left: 32px; }
.pub-stat-value {
  font-size: clamp(28px, 3.5vw, 44px); font-weight: 900;
  letter-spacing: -1px; color: #111;
  font-family: 'Plus Jakarta Sans', sans-serif;
}
.pub-stat-label { font-size: 13px; color: #888; margin-top: 4px; font-weight: 500; }

/* pricing tabs */
.pub-tab-wrap {
  display: flex; justify-content: center; margin-bottom: 40px;
}
.pub-tabs {
  display: flex; background: #ebebeb; border-radius: 50px; padding: 4px;
}
.pub-tab {
  padding: 10px 24px; border-radius: 50px; border: none; cursor: pointer;
  font-size: 14px; font-weight: 700; transition: all .25s;
  background: transparent; color: #888; font-family: inherit;
}
.pub-tab.active { background: #FEE500; color: #111; }
.pub-pricing-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 16px;
}
.pub-plan-card {
  border-radius: 24px; padding: 36px 32px;
  border: 2px solid #e8e8e8; background: #fff;
  transition: all .3s; display: flex; flex-direction: column;
}
.pub-plan-card.active-free { border-color: #FEE500; background: #fffde6; }
.pub-plan-card.active-paid { border-color: #111; background: #111; }
.pub-plan-name { font-size: 13px; font-weight: 600; color: #888; margin-bottom: 20px; }
.pub-plan-card.active-paid .pub-plan-name { color: #999; }
.pub-plan-selected {
  margin-left: 8px; font-size: 11px; font-weight: 800;
  padding: 3px 10px; border-radius: 50px; background: #FEE500; color: #111;
}
.pub-plan-price {
  font-size: 48px; font-weight: 900; color: #111;
  font-family: 'Plus Jakarta Sans', sans-serif; letter-spacing: -1px;
}
.pub-plan-card.active-paid .pub-plan-price { color: #fff; }
.pub-plan-unit { font-size: 14px; color: #aaa; margin-left: 6px; }
.pub-plan-card.active-paid .pub-plan-unit { color: #666; }
.pub-plan-desc { font-size: 13px; color: #999; margin-bottom: 24px; }
.pub-plan-card.active-paid .pub-plan-desc { color: #777; }
.pub-plan-features { list-style: none; flex: 1; margin-bottom: 28px; }
.pub-plan-features li {
  display: flex; align-items: center; gap: 8px;
  font-size: 14px; color: #444; margin-bottom: 10px;
}
.pub-plan-card.active-paid .pub-plan-features li { color: #ccc; }
.pub-plan-check {
  width: 18px; height: 18px; border-radius: 50%;
  background: #FEE500; color: #111;
  display: flex; align-items: center; justify-content: center;
  font-size: 10px; font-weight: 900; flex-shrink: 0;
}
.pub-plan-cta {
  display: block; text-align: center; padding: 14px; border-radius: 50px;
  font-size: 14px; font-weight: 700; text-decoration: none;
  background: #111; color: #fff; transition: opacity .2s;
}
.pub-plan-cta:hover { opacity: .8; }
.pub-plan-card.active-paid .pub-plan-cta { background: #FEE500; color: #111; }

/* security section */
.pub-security-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center;
}
.pub-security-eyebrow { font-size: 12px; font-weight: 700; letter-spacing: 3px; color: #FEE500; text-transform: uppercase; margin-bottom: 16px; }
.pub-security-h2 {
  font-size: clamp(28px, 3.5vw, 52px); font-weight: 900;
  letter-spacing: -1.5px; color: #fff; line-height: 1.1; margin-bottom: 20px; word-break: keep-all;
}
.pub-security-desc { font-size: 15px; color: #777; line-height: 1.8; word-break: keep-all; }
.pub-security-items { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.pub-security-item {
  padding: 24px 20px; border-radius: 16px;
  background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.08);
}
.pub-security-item-icon { font-size: 24px; display: flex; margin-bottom: 12px; color: #fff; }
.pub-security-item-icon svg { width: 24px; height: 24px; }
.pub-security-item-label { font-size: 14px; font-weight: 600; color: #ddd; }

/* CTA section */
.pub-cta-section {
  background: #FEE500; padding: 96px 24px; text-align: center;
}
.pub-cta-h2 {
  font-size: clamp(32px, 4.5vw, 60px); font-weight: 900;
  letter-spacing: -1.5px; color: #111; margin-bottom: 16px; word-break: keep-all;
}
.pub-cta-p { font-size: 17px; color: #555; line-height: 1.7; margin-bottom: 36px; word-break: keep-all; }
.pub-cta-btns { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.pub-btn-dark {
  padding: 15px 32px; border-radius: 50px;
  background: #111; color: #fff;
  font-size: 15px; font-weight: 700; text-decoration: none; white-space: nowrap;
}
.pub-btn-outline {
  padding: 15px 32px; border-radius: 50px;
  background: transparent; color: #333;
  font-size: 15px; font-weight: 600; text-decoration: none;
  border: 2px solid rgba(0,0,0,.2); white-space: nowrap;
}

@media (max-width: 900px) {
  .pub-features-grid { grid-template-columns: repeat(2, 1fr) !important; }
}
@media (max-width: 600px) {
  .pub-stats-grid { grid-template-columns: repeat(2, 1fr) !important; }
  .pub-stat-item:nth-child(2) { border-right: none !important; }
  .pub-stat-item:nth-child(3), .pub-stat-item:nth-child(4) { border-top: 1px solid #eee; padding-top: 24px; margin-top: 24px; }
  .pub-features-grid { grid-template-columns: 1fr !important; }
  .pub-banks-grid { grid-template-columns: repeat(3, 1fr) !important; }
  .pub-security-grid { grid-template-columns: 1fr !important; }
  .pub-pricing-grid { grid-template-columns: 1fr !important; }
  .pub-auth-card { padding: 24px; }
}

/* ══════════════════════════════════════════════════════
   Member Area — public layout + light-mode dashboard
   ══════════════════════════════════════════════════════ */
.member-area {
  /* Light-mode variable overrides */
  --bg:           #f7f8fa;
  --surface:      #ffffff;
  --surface-2:    #f7f8fa;
  --surface-3:    #eff0f3;
  --border:       #eeeeee;
  --border-muted: #f5f5f5;
  --primary:      #2563eb;
  --primary-hover:#1d4ed8;
  --primary-bg:   rgba(37,99,235,.09);
  --primary-dim:  rgba(37,99,235,.04);
  --success:      #16a34a;
  --success-bg:   rgba(22,163,74,.1);
  --danger:       #dc2626;
  --danger-bg:    rgba(220,38,38,.1);
  --warn:         #d97706;
  --warn-bg:      rgba(217,119,6,.1);
  --info:         #0891b2;
  --info-bg:      rgba(8,145,178,.1);
  --purple:       #7c3aed;
  --purple-bg:    rgba(124,58,237,.1);
  --text:         #111827;
  --text-muted:   #6b7280;
  --text-subtle:  #9ca3af;
  --radius-lg:    16px;
  --font:         'Noto Sans KR', -apple-system, BlinkMacSystemFont, sans-serif;
  --shadow-sm:    0 1px 3px rgba(0,0,0,.05);
  --shadow:       0 4px 24px rgba(0,0,0,.07);
  background: var(--bg);
  min-height: calc(100vh - 68px);
}

.member-area-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2.5rem 1.5rem 4rem;
}

/* Font */
.member-area,
.member-area .btn,
.member-area .form-control,
.member-area input,
.member-area select,
.member-area textarea { font-family: var(--font); }

/* Links */
.member-area a { color: var(--primary); }
.member-area a:hover { color: var(--primary-hover); }

/* ── Page Header Typography ── */
.member-area .page-header {
  margin-bottom: 2rem;
  padding-bottom: 0;
  border-bottom: none;
}
.member-area .page-title {
  font-size: 1.625rem;
  font-weight: 900;
  color: #111;
  letter-spacing: -.03em;
  line-height: 1.2;
}
.member-area .page-subtitle {
  font-size: 14px;
  color: #888;
  margin-top: 5px;
  font-weight: 400;
  word-break: keep-all;
}
/* 국문 멘트: 띄어쓰기(어절) 기준 줄바꿈 — 단어 중간에서 끊기지 않게. 넘칠 때만 강제 분리 */
.member-area .mba-sec-head .sub,
.member-area .mba-cr-panehead .sub,
.member-area .mba-dash-kpi .k, .member-area .mba-dash-kpi .s,
.member-area .mba-cr-cell .k, .member-area .mba-cr-cell .s,
.member-area .mba-dash-att .tt, .member-area .mba-dash-att .ds,
.member-area .mba-dash-week-body .sum,
.member-area .mba-cr-footnote, .member-area .mba-cr-foothint,
.member-area .mba-cr-freebox, .member-area .mba-cr-upgrade-note,
.member-area .mba-cr-bar .msg,
.member-area .mba-gauge-label .t, .member-area .mba-balance .t,
.member-area .mba-today-num .t, .member-area .mba-plan-name {
  word-break: keep-all;
  overflow-wrap: break-word;
}

/* ── Cards ── */
.member-area .card {
  border-radius: var(--radius-lg);
  border-color: #eee;
  box-shadow: 0 2px 16px rgba(0,0,0,.06);
  margin-bottom: 1.5rem;
}
.member-area .card-header {
  border-bottom-color: #f5f5f5;
  padding: 1.125rem 1.5rem;
}
.member-area .card-header h2,
.member-area .card-header h3 {
  font-size: 15px;
  font-weight: 800;
  color: #111;
  letter-spacing: -.01em;
}
.member-area .card-body { padding: 1.5rem; }
.member-area .card-footer {
  background: #fafafa;
  border-top-color: #f0f0f0;
  color: #aaa;
}

/* ── Stat Cards ── */
.member-area .stat-card {
  border-radius: var(--radius-lg);
  border-color: #eee;
  box-shadow: 0 2px 16px rgba(0,0,0,.06);
}
.member-area .stat-label {
  font-size: 11px;
  font-weight: 700;
  color: #aaa;
  letter-spacing: .06em;
}
.member-area .stat-value {
  font-size: 2rem;
  font-weight: 900;
  letter-spacing: -.04em;
  color: #111;
}
.member-area .stat-sub { color: #aaa; font-size: 12px; }

/* ── Buttons ── */
.member-area .btn-primary {
  background: #111;
  border-color: #111;
  color: #fff; /* .member-area a 링크 색상(파랑)이 앵커형 버튼에 스며드는 것 방지 */
  border-radius: 50px;
  font-weight: 700;
}
.member-area .btn-primary:hover:not(:disabled) { background: #333; border-color: #333; color: #fff; }

.member-area .btn-secondary {
  background: #fff;
  border-color: #e8e8e8;
  color: #333;
  border-radius: 50px;
  font-weight: 600;
}
.member-area .btn-secondary:hover:not(:disabled) { background: #f7f8fa; border-color: #ddd; }

.member-area .btn-ghost { color: #888; border-radius: 8px; }
.member-area .btn-ghost:hover:not(:disabled) { background: #f7f8fa; color: #111; }

.member-area .btn-ghost-danger { background: transparent; border-color: transparent; color: #bbb; border-radius: 8px; }
.member-area .btn-ghost-danger:hover:not(:disabled) { background: var(--danger-bg); color: var(--danger); }

/* 목록 행 액션(상세·수정·삭제)이 링크가 아니라 버튼으로 보이도록 — 테두리+배경 부여.
   .mba-row-actions 안에서만 적용해 다른 곳의 ghost 버튼(툴바 등)에는 영향 없음 */
.member-area .mba-row-actions .btn-ghost {
  background: #fff; border-color: #e2e2e2; color: #444; box-shadow: 0 1px 1px rgba(15,23,42,.04);
}
.member-area .mba-row-actions .btn-ghost:hover:not(:disabled) { background: #f7f8fa; border-color: #cbcbcb; color: #111; }
.member-area .mba-row-actions .btn-ghost-danger {
  background: #fff; border-color: #eecccc; color: var(--danger); box-shadow: 0 1px 1px rgba(15,23,42,.04);
}
.member-area .mba-row-actions .btn-ghost-danger:hover:not(:disabled) { background: var(--danger-bg); border-color: var(--danger); color: var(--danger); }

/* ── 뒤로가기 필 버튼 (목업 back-button-4ways ⑤ 변형: 알약형 + 테두리만 진해지는 호버) ──
   화살표는 ::before로 주입 — 회원 렌더 템플릿의 .back 텍스트에는 ← 문자를 넣지 말 것 */
.member-area .back {
  display: inline-flex; align-items: center; gap: .45rem;
  padding: .5rem 1.05rem .5rem .8rem;
  background: #fff; border: 1px solid #e2e2e2; border-radius: 50px;
  font-size: .84rem; font-weight: 600; color: #444;
  box-shadow: 0 1px 3px rgba(0,0,0,.04);
  transition: all .16s cubic-bezier(.4,0,.2,1);
}
.member-area .back::before { content: '←'; transition: transform .16s cubic-bezier(.4,0,.2,1); }
.member-area .back:hover { border-color: #111; color: #111; box-shadow: 0 1px 4px rgba(0,0,0,.08); }
.member-area .back:hover::before { transform: translateX(-2px); }

/* ── 은행 타일 '계좌 상세' 필 버튼 (목업 bank-card-link-4ways ①, 화살표 없음)
   스크래핑 버튼(.btn-sm)과 같은 크기의 흰 알약 — 버튼 쌍으로 보이게 ── */
.member-area .bank-detail-link {
  display: inline-flex; align-items: center;
  padding: .3rem .7rem; font-size: .8rem; font-weight: 600;
  background: #fff; border: 1px solid #e2e2e2; border-radius: 50px; color: #333;
  transition: all .16s cubic-bezier(.4,0,.2,1);
}
.member-area .bank-detail-link:hover { border-color: #111; color: #111; box-shadow: 0 1px 4px rgba(0,0,0,.08); }

/* ── Form Controls (filter bars etc.) ── */
.member-area .form-control,
.member-area select.form-control {
  background: #fff;
  border: 1.5px solid #e8e8e8;
  border-radius: 10px;
  color: #111;
  font-size: 14px;
  padding: 10px 14px;
  transition: border-color .2s;
}
.member-area .form-control:focus,
.member-area select.form-control:focus {
  border-color: #FEE500;
  outline: none;
  box-shadow: 0 0 0 3px rgba(254,229,0,.15);
}
.member-area .form-label { color: #333; font-weight: 700; font-size: 13px; }
.member-area .form-hint  { color: #bbb; font-size: 12px; }

/* Filter bar wrapper */
.member-area .filter-bar {
  background: #fff;
  border-radius: var(--radius-lg);
  border: 1px solid #eee;
  box-shadow: 0 2px 16px rgba(0,0,0,.06);
  padding: 1.25rem 1.5rem;
  margin-bottom: 1.5rem;
}
.member-area .filter-bar .form-control {
  height: auto;
  padding: 9px 14px;
  line-height: 1.4;
}

/* ── Tables ── */
.member-area th {
  background: #fafafa;
  color: #aaa;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .07em;
  border-bottom-color: #f0f0f0;
}
.member-area td { color: #333; border-bottom-color: #f8f8f8; }
.member-area tbody tr:hover td { background: #fafeff; }
/* 표 정렬 유틸 (회원 영역 전용 — 관리자 다크에는 적용 안 됨)
   헤더 일괄 가운데: <table class="th-center"> · 셀 단위: td-c(가운데) / td-r(오른쪽, 숫자) */
.member-area table.th-center thead th { text-align: center; }
.member-area td.td-c, .member-area th.td-c { text-align: center; }
.member-area td.td-r, .member-area th.td-r { text-align: right; font-variant-numeric: tabular-nums; }

/* ── Badges ── */
.member-area .badge-gray { background: #f0f0f0; color: #999; }

/* ── Toggle ── */
.member-area .toggle-track { background: #e0e0e0; }
.member-area .toggle-track.on { background: var(--success); }

/* ── Alerts ── */
.member-area .alert-info    { background: var(--info-bg);    border-color: var(--info);    color: var(--info); border-radius: 10px; }
.member-area .alert-danger  { background: var(--danger-bg);  border-color: var(--danger);  color: var(--danger); border-radius: 10px; }
.member-area .alert-success { background: var(--success-bg); border-color: var(--success); color: var(--success); border-radius: 10px; }

/* ── Pagination ── */
.member-area .pagination a,
.member-area .pagination span {
  background: #fff; border-color: #eee; color: #333; border-radius: 8px;
}
.member-area .pagination .active { background: #111; border-color: #111; color: #fff; }

/* ── Empty state ── */
.member-area .empty { color: #bbb; }

/* ── code ── */
.member-area code {
  background: #f0f4ff;
  color: var(--primary);
  border-radius: 5px;
  padding: 2px 6px;
  font-size: .83em;
}

/* ── Modal ── */
.member-area .modal { background: #fff; color: #111; border-radius: 20px; }
.member-area .modal-header { border-bottom-color: #f0f0f0; }
.member-area .modal-footer { border-top-color: #f0f0f0; }
.member-area .modal-title  { color: #111; font-weight: 800; }

/* ── Credit options ── */
.member-area .credit-option {
  background: #fff; border-color: #eee; color: #111;
  border-radius: 12px;
}
.member-area .credit-option:hover { border-color: #FEE500; }
.member-area .credit-option.selected { border-color: #FEE500; background: rgba(254,229,0,.08); }

/* ── Card brand buttons ── */
.member-area .card-brand-btn { background: #fff; border-color: #eee; color: #333; border-radius: 12px; }
.member-area .card-brand-btn:hover  { border-color: #FEE500; }
.member-area .card-brand-btn.selected { border-color: #FEE500; background: rgba(254,229,0,.08); }

/* ── Card item (registered cards list) ── */
.member-area .card-item { background: #f7f8fa; border-color: #eee; border-radius: 12px; }
.member-area .card-item.default-card { border-color: #111; }

/* ── Card list dividers and step dots ── */
.member-area .modal-step-dot { background: #f0f0f0; color: #aaa; border-color: #e0e0e0; }
.member-area .modal-step-dot.active { background: #FEE500; color: #111; border-color: #FEE500; }
.member-area .modal-step-dot.done { background: #111; color: #fff; border-color: #111; }
.member-area .modal-step-line { background: #eee; }

@media (max-width: 768px) {
  .member-area-inner { padding: 1.5rem 1rem 3rem; }
  .member-area .stats-grid { grid-template-columns: repeat(2,1fr); }
  .member-area .filter-bar form { flex-direction: column; }
}

/* ══════════════════════════════════════════════════════
   ===== 서브퍼블(mba-*) 시작 =====
   회원 서브페이지 5종 공통 컴포넌트 — 기준: html_page 프로토타입(8/19 폴리싱)
   규칙: 신규 클래스는 전부 mba- 접두사, CSS 변수 신설 금지(색·간격 직접 선언),
   이 블록 + static/member/ + _member_ui.html 을 지우면 원상복구된다.
   ══════════════════════════════════════════════════════ */

/* ── 숫자 폰트 통일 (Phase 0 결정: Pretendard + tabular-nums, 5페이지 공통) ── */
.member-area .mba-num {
  font-family: 'Pretendard Variable', Pretendard, 'Noto Sans KR', sans-serif;
  font-variant-numeric: tabular-nums;
}

/* ── 레이아웃: 파셋 레일 230px + 본문 ── */
.member-area .mba-layout { display: grid; grid-template-columns: 230px 1fr; gap: 1.5rem; align-items: start; }

/* ── 파셋 레일 ── */
.member-area .mba-facet { margin-bottom: 1.5rem; }
.member-area .mba-facet-title { font-size: 11px; font-weight: 700; letter-spacing: .06em; color: #aaa; margin-bottom: .55rem; }
.member-area .mba-facet-item {
  display: flex; align-items: center; gap: .55rem; padding: .38rem .55rem;
  border-radius: 8px; cursor: pointer; font-size: .85rem; color: #555;
  transition: all .16s cubic-bezier(.4,0,.2,1); font-weight: 500; text-decoration: none;
}
.member-area .mba-facet-item:hover { background: #fff; color: #111; }
.member-area .mba-facet-item.on { background: #111; color: #fff; font-weight: 700; }
.member-area .mba-facet-item .n { margin-left: auto; font-size: .72rem; color: #bbb; }
.member-area .mba-facet-item.on .n { color: rgba(255,255,255,.6); }
.member-area .mba-cbx {
  width: 15px; height: 15px; border: 1.5px solid #ddd; border-radius: 4px; flex-shrink: 0;
  background: #fff; display: flex; align-items: center; justify-content: center;
}
.member-area .mba-facet-item.on .mba-cbx { background: #fff; border-color: #fff; }

/* 레일 하단 '필터 초기화' — 알약(50px) 대신 파셋 아이템과 같은 각진 직사각형 + 넉넉한 패딩 */
.member-area .mba-facet-reset { padding: .55rem .7rem; border-radius: 8px; }

/* ── 필터 칩 (적용 중 필터 표시, ✕는 해당 파라미터 제거 링크) ── */
.member-area .mba-chips { display: flex; align-items: center; gap: .375rem; flex-wrap: wrap; }
.member-area .mba-chip {
  display: inline-flex; align-items: center; gap: .375rem;
  background: #fff; color: #111; border: 1px solid #111; border-radius: 99px;
  font-size: .74rem; font-weight: 600; padding: .25rem .35rem .25rem .75rem;
}
.member-area .mba-chip .x {
  cursor: pointer; background: rgba(0,0,0,.07); border-radius: 50%;
  width: 15px; height: 15px; display: flex; align-items: center; justify-content: center;
  font-size: .68rem; font-weight: 400; color: #111; text-decoration: none;
  transition: background .16s cubic-bezier(.4,0,.2,1);
}
.member-area .mba-chip .x:hover { background: #111; color: #fff; }

/* ── 리스트 툴바 + 결과 행 ── */
.member-area .mba-toolbar {
  display: flex; align-items: center; gap: .75rem; padding: .75rem 1.25rem;
  border-bottom: 1px solid #f0f0f0; background: #fafafa; flex-wrap: wrap;
}
.member-area .mba-toolbar .sel-info { font-size: .8rem; color: #888; }
.member-area .mba-toolbar .spacer { flex: 1; }
.member-area .mba-row {
  display: flex; align-items: center; gap: .875rem; padding: .875rem 1.25rem;
  border-bottom: 1px solid #f5f5f5; transition: background .16s cubic-bezier(.4,0,.2,1);
}
.member-area .mba-row:last-child { border-bottom: none; }
.member-area .mba-row:hover { background: #fafbfc; }
.member-area .mba-row-main { flex: 1; min-width: 0; }
.member-area .mba-row-name { font-weight: 700; font-size: .92rem; }
.member-area .mba-row-name a { color: #111; }
.member-area .mba-row-name a:hover { color: #2563eb; }
.member-area .mba-row-meta { display: flex; align-items: center; gap: .625rem; margin-top: .15rem; font-size: .76rem; color: #aaa; flex-wrap: wrap; }
.member-area .mba-row-badges { display: flex; gap: .375rem; flex-shrink: 0; flex-wrap: wrap; justify-content: flex-end; }
.member-area .mba-row-cbx,
.member-area .mba-row input[type="checkbox"] { accent-color: #111; width: 15px; height: 15px; cursor: pointer; flex-shrink: 0; }

/* ── 스탯/KPI 카드 ── */
.member-area .mba-statbar { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: .875rem; margin-bottom: 1.5rem; }
.member-area .mba-stat {
  background: #fff; border: 1px solid #eee; border-radius: 12px;
  padding: 1.125rem 1.375rem; box-shadow: 0 2px 16px rgba(0,0,0,.06);
}
.member-area .mba-stat .k { font-size: 11px; color: #aaa; font-weight: 700; letter-spacing: .06em; margin-bottom: .25rem; }
.member-area .mba-stat .v {
  font-size: 1.75rem; font-weight: 900; letter-spacing: -.04em; color: #111;
  font-family: 'Pretendard Variable', Pretendard, 'Noto Sans KR', sans-serif; font-variant-numeric: tabular-nums;
}
.member-area .mba-stat .v .unit { font-size: .95rem; font-weight: 700; color: #aaa; margin-left: 1px; }
.member-area .mba-stat .v.ok { color: #16a34a; }
.member-area .mba-stat .v.bad { color: #dc2626; }
.member-area .mba-stat .s { color: #aaa; font-size: 12px; margin-top: .25rem; }

/* ── 커스텀 셀렉트 (credits 목업 검증분 공통화) ── */
.member-area .mba-csel { position: relative; }
.member-area .mba-csel-btn {
  width: 100%; display: flex; align-items: center; gap: .55rem;
  border: 1px solid #e5e5e5; border-radius: 10px; background: #fff;
  padding: .6rem .75rem .6rem .875rem; font-family: inherit; font-size: .84rem; font-weight: 600;
  color: #111; cursor: pointer; transition: all .16s cubic-bezier(.4,0,.2,1); text-align: left;
}
.member-area .mba-csel-btn:hover { border-color: #ccc; }
.member-area .mba-csel.open .mba-csel-btn { border-color: #111; box-shadow: 0 0 0 3px rgba(17,17,17,.07); }
.member-area .mba-csel-val { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.member-area .mba-csel-btn .chev { margin-left: auto; color: #aaa; transition: transform .16s cubic-bezier(.4,0,.2,1); flex-shrink: 0; }
.member-area .mba-csel.open .chev { transform: rotate(180deg); }
.member-area .mba-csel-menu {
  position: absolute; top: calc(100% + 6px); left: 0; right: 0; min-width: 100%;
  background: #fff; border: 1px solid #eee; border-radius: 12px;
  box-shadow: 0 12px 34px rgba(0,0,0,.14); padding: 5px; z-index: 60; display: none;
}
.member-area .mba-csel.open .mba-csel-menu { display: block; animation: mbaCselIn .14s ease; }
@keyframes mbaCselIn { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
.member-area .mba-csel-opt {
  display: flex; align-items: center; gap: .55rem; width: 100%;
  border: none; background: none; border-radius: 8px; padding: .55rem .7rem;
  font-family: inherit; font-size: .84rem; font-weight: 500; color: #333;
  cursor: pointer; text-align: left; white-space: nowrap;
}
.member-area .mba-csel-opt:hover { background: #f5f6f8; }
.member-area .mba-csel-opt.selected { font-weight: 700; color: #111; }
.member-area .mba-csel-opt .chk { margin-left: auto; color: #111; visibility: hidden; flex-shrink: 0; }
.member-area .mba-csel-opt.selected .chk { visibility: visible; }
.member-area .mba-csel-opt .sub { font-size: .72rem; color: #aaa; font-weight: 500; }

/* ── 토글 스위치 ── */
.member-area .mba-toggle-row { display: flex; align-items: center; gap: .55rem; font-size: .8rem; font-weight: 800; }
.member-area .mba-toggle {
  position: relative; width: 42px; height: 24px; border-radius: 99px; background: #ddd;
  cursor: pointer; transition: background .16s cubic-bezier(.4,0,.2,1); border: none; flex-shrink: 0; padding: 0;
}
.member-area .mba-toggle::after {
  content: ''; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px;
  border-radius: 50%; background: #fff; box-shadow: 0 1px 4px rgba(0,0,0,.22);
  transition: transform .16s cubic-bezier(.4,0,.2,1);
}
.member-area .mba-toggle.on { background: #16a34a; }
.member-area .mba-toggle.on::after { transform: translateX(18px); }

/* ── 모달 셸 (열고 닫기만 공통 — 내용은 페이지가 채움) ── */
.member-area .mba-modal-backdrop {
  position: fixed; inset: 0; background: rgba(17,17,17,.45); z-index: 1100;
  display: none; align-items: center; justify-content: center; padding: 1rem;
}
.member-area .mba-modal-backdrop.open { display: flex; }
.member-area .mba-modal {
  background: #fff; border-radius: 16px; width: 100%; max-width: 440px;
  box-shadow: 0 20px 60px rgba(0,0,0,.22); overflow: hidden; max-height: 90vh; overflow-y: auto;
  animation: mbaModalPop .18s cubic-bezier(.2,.9,.3,1.2);
}
@keyframes mbaModalPop { from { transform: scale(.95) translateY(8px); opacity: 0; } }
.member-area .mba-modal-header { padding: 1.25rem 1.5rem 0; display: flex; align-items: center; justify-content: space-between; }
.member-area .mba-modal-header .t { font-size: 1.05rem; font-weight: 900; letter-spacing: -.02em; color: #111; }
.member-area .mba-modal-close {
  background: none; border: none; cursor: pointer; color: #bbb; font-size: 1.25rem;
  line-height: 1; padding: .25rem; border-radius: 8px; font-family: inherit;
}
.member-area .mba-modal-close:hover { color: #111; background: #f5f5f5; }
.member-area .mba-modal-body { padding: 1.25rem 1.5rem; }
.member-area .mba-modal-footer { padding: 0 1.5rem 1.5rem; display: flex; justify-content: flex-end; gap: .5rem; }
/* 삭제/경고 확인 변형 */
.member-area .mba-modal-del-body { text-align: center; padding: 1.75rem 1.5rem 1.25rem; }
.member-area .mba-del-icon {
  width: 52px; height: 52px; border-radius: 50%; background: rgba(220,38,38,.08);
  color: #dc2626; display: flex; align-items: center; justify-content: center; margin: 0 auto 1rem;
}
.member-area .mba-del-title { font-size: 1.05rem; font-weight: 900; letter-spacing: -.02em; margin-bottom: .375rem; color: #111; }
.member-area .mba-del-target { font-size: .9rem; color: #333; margin-bottom: .75rem; }
.member-area .mba-del-target b { font-weight: 800; }
.member-area .mba-del-warn {
  font-size: .8rem; color: #dc2626; background: rgba(220,38,38,.08);
  border-radius: 10px; padding: .625rem .875rem; line-height: 1.5;
}
.member-area .mba-modal-del-footer { justify-content: center; padding-bottom: 1.75rem; }
.member-area .mba-btn-danger-solid { background: #dc2626; border-color: #dc2626; color: #fff; border-radius: 50px; font-weight: 700; }
.member-area .mba-btn-danger-solid:hover { background: #b91c1c; border-color: #b91c1c; color: #fff; }
/* 사용자 상세 삭제 확인 변형: 타이틀바 명세형 (목업 delete-modal-spec-4ways ②)
   2026-08-21: 각진 모서리 → 라운드, 빨강은 '영향 값 + 실행 버튼'에만 남기고 톤다운.
   위험색은 아래 3개 변수로만 조절할 것 */
.member-area .mba-udel {
  --udel-red: #c53030; --udel-red-dk: #a52a2a; --udel-red-soft: rgba(197,48,48,.07);
  border-radius: 14px; max-width: 420px;
}
.member-area .mba-udel-titlebar { display: flex; align-items: center; justify-content: space-between; padding: .9rem 1.5rem; border-bottom: 1px solid #eee; }
.member-area .mba-udel-titlebar .t { font-size: .95rem; font-weight: 800; color: #111; }
.member-area .mba-udel-body { padding: 1.25rem 1.5rem 1.5rem; }
.member-area .mba-udel-ask { text-align: center; font-size: 1.02rem; font-weight: 900; color: #111; letter-spacing: -.01em; margin-bottom: .3rem; }
.member-area .mba-udel-sub { text-align: center; font-size: .8rem; color: #888; margin-bottom: 1.1rem; }
.member-area .mba-udel-rows { border-top: 1px solid #eee; margin-bottom: 1rem; }
.member-area .mba-udel-row { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: .55rem .1rem; border-bottom: 1px solid #eee; }
.member-area .mba-udel-row .k { font-size: .8rem; color: #888; font-weight: 600; flex-shrink: 0; }
.member-area .mba-udel-row .v { font-size: .82rem; font-weight: 700; color: #111; text-align: right; }
.member-area .mba-udel-row .v.red { color: var(--udel-red); }
.member-area .mba-udel-warnline {
  text-align: center; font-size: .76rem; font-weight: 700; color: var(--udel-red);
  background: var(--udel-red-soft); border-radius: 10px; padding: .5rem .75rem; margin-bottom: 1rem;
}
.member-area .mba-udel-btns { display: flex; gap: .5rem; }
.member-area .mba-udel-btn {
  flex: 1; padding: .65rem 0; font-family: var(--font); font-size: .86rem; font-weight: 700;
  border-radius: 10px; border: 1px solid transparent; cursor: pointer;
  transition: all .16s cubic-bezier(.4,0,.2,1);
}
.member-area .mba-udel-btn.no { background: #f3f4f6; color: #555; }
.member-area .mba-udel-btn.no:hover { background: #e8eaee; }
.member-area .mba-udel-btn.yes { background: var(--udel-red); color: #fff; }
.member-area .mba-udel-btn.yes:hover { background: var(--udel-red-dk); }

/* ── 토스트 (member-ui.js showToast가 생성) ── */
.member-area .mba-toast {
  position: fixed; left: 50%; bottom: 2rem; transform: translateX(-50%) translateY(12px);
  background: #111; color: #fff; padding: .7rem 1.375rem; border-radius: 50px;
  font-size: .875rem; font-weight: 600; opacity: 0; pointer-events: none;
  transition: opacity .25s, transform .25s; z-index: 1300;
  box-shadow: 0 8px 24px rgba(0,0,0,.25); max-width: 90vw; text-align: center;
}
.member-area .mba-toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ── 소프트 내비게이션 (member-ui.js — data-mba-swap 영역 부분 교체) ── */
.mba-progress {
  position: fixed; top: 0; left: 0; height: 2px; width: 0;
  background: #111; z-index: 1400; opacity: 0; pointer-events: none;
  transition: width .4s ease, opacity .25s;
}
/* 흐림 처리도 200ms 지연 — 빠른 응답에서는 아무 변화 없이 교체만 */
[data-mba-swap] { transition: opacity .15s; }
.mba-soft-busy [data-mba-swap] { opacity: .55; pointer-events: none; transition-delay: .2s; }

/* ── 페이저 (전부 GET 링크 — JS 상태 없음) ── */
.member-area .mba-pager-row {
  position: relative; display: flex; align-items: center; justify-content: center;
  padding: .8rem 1.25rem; border-top: 1px solid #f0f0f0;
}
.member-area .mba-pager { display: flex; align-items: center; gap: .3rem; }
.member-area .mba-pg-btn {
  min-width: 30px; height: 30px; padding: 0 .5rem; border: 1px solid transparent;
  background: transparent; border-radius: 8px; font-size: .8rem; font-weight: 600;
  color: #888; cursor: pointer; font-family: 'Pretendard Variable', Pretendard, 'Noto Sans KR', sans-serif;
  font-variant-numeric: tabular-nums; transition: all .16s cubic-bezier(.4,0,.2,1);
  display: inline-flex; align-items: center; justify-content: center; text-decoration: none;
}
.member-area .mba-pg-btn:hover:not(.disabled):not(.on) { background: #f5f5f5; color: #111; }
.member-area .mba-pg-btn.on { background: #111; color: #fff; }
.member-area .mba-pg-btn.disabled { opacity: .35; cursor: default; pointer-events: none; }
.member-area .mba-pg-ellipsis { color: #ccc; font-size: .8rem; padding: 0 .2rem; }
.member-area .mba-pager-info { font-size: .78rem; color: #aaa; position: absolute; left: 1.25rem; top: 50%; transform: translateY(-50%); }
.member-area .mba-page-size {
  position: absolute; right: 1.25rem; top: 50%; transform: translateY(-50%);
  width: auto; padding: .35rem .6rem; font-size: .78rem; border-radius: 8px; cursor: pointer;
  border: 1px solid #e5e5e5; background: #fff; color: #333; font-family: inherit;
}

/* ── 기간 검색 (GET 폼 — 서버 필터) ── */
/* 기간 검색 행 — 캘린더 입력 높이를 기준으로 적용 버튼·초기화(·칩)까지 같은 높이로.
   높이는 var(--mba-ctl-h, 32px) 폴백만 사용 — 여기서 변수를 "선언"하면 상위(.mba-tx-segs의 34px)를
   가려버리므로 선언 금지. 거래내역 세그 행은 그대로 34px로 렌더된다 */
.member-area .mba-daterange { display: flex; align-items: center; gap: .4rem; flex-wrap: wrap; }
.member-area .mba-daterange input[type="date"],
.member-area .mba-daterange input[type="month"] {
  width: 140px; height: var(--mba-ctl-h, 32px); padding: 0 .6rem; font-size: .78rem; border-radius: 8px;
  border: 1px solid #e5e5e5; background: #fff; color: #111; font-family: inherit;
}
.member-area .mba-daterange .btn {
  display: inline-flex; align-items: center; height: var(--mba-ctl-h, 32px); padding: 0 .9rem;
}
.member-area .mba-daterange .sep { color: #bbb; font-size: .8rem; }
.member-area .mba-dr-reset { display: inline-flex; align-items: center; height: var(--mba-ctl-h, 32px); font-size: .78rem; color: #999; }
.member-area .mba-dr-reset:hover { color: #111; }

/* ── CTA 버튼 (랜딩 .header-cta 동일 스펙: 다크 네이비 → 호버 그린) ── */
.member-area .btn-cta {
  background: #0F172A; border-color: #0F172A; color: #fff;
  border-radius: 11px; font-size: 14.5px; font-weight: 700; padding: 11px 22px;
}
.member-area .btn-cta:hover:not(:disabled) { background: #059669; border-color: #059669; color: #fff; }

/* ── 모달 폼 행 (공통 — 페이지 모달들이 공유) ── */
.member-area .mba-modal .form-row { margin-bottom: 1rem; }
.member-area .mba-modal .form-row:last-child { margin-bottom: 0; }
.member-area .mba-modal .form-label { display: block; font-size: .8rem; font-weight: 700; color: #333; margin-bottom: .375rem; }
.member-area .mba-modal .form-hint { font-size: .74rem; color: #aaa; margin-top: .3rem; }
.member-area .mba-modal-error {
  display: none; background: #fef2f2; color: #dc2626; border: 1px solid #fecaca;
  border-radius: 8px; padding: .625rem .875rem; margin-bottom: 1rem; font-size: .85rem;
}
.member-area .mba-modal-error.show { display: block; }

/* ── 텍스트 상태 색 (행 메타 등) ── */
.member-area .mba-t-danger { color: #dc2626; }
.member-area .mba-t-warn { color: #d97706; }

/* ── 페이지: end-users ── */
.member-area .mba-chips { margin-bottom: .875rem; }
.member-area .mba-row-actions { display: flex; gap: .375rem; flex-shrink: 0; align-items: center; }
/* 뱃지를 링크(인증서 페이지 이동)로 쓸 때 앵커 기본색이 뱃지색을 덮지 않도록 */
.member-area .mba-row-badges a.badge { text-decoration: none; }
.member-area .mba-row-badges a.badge-success { color: #16a34a; }
.member-area .mba-row-badges a.badge-danger { color: #dc2626; }
.member-area .mba-row-badges a.badge-gray { color: #999; }

/* ── 페이지: scrape-jobs ── */
/* 스탯 4장 고정 그리드 (모바일 2×2는 반응형 절) */
.member-area .mba-stats4 { grid-template-columns: repeat(4, 1fr); }
/* 상태 점 (파셋 레일) */
.member-area .mba-dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; display: inline-block; }
.member-area .mba-dot-ok { background: #16a34a; }
.member-area .mba-dot-fail { background: #dc2626; }
.member-area .mba-dot-block { background: #dc2626; }
.member-area .mba-dot-run { background: #0891b2; box-shadow: 0 0 0 3px rgba(8,145,178,.15); animation: mbaPulse 1.4s infinite; }
.member-area .mba-dot-wait { background: #d97706; }
.member-area .mba-dot-none { background: #bbb; }
@keyframes mbaPulse { 0%,100% { opacity: 1; } 50% { opacity: .45; } }
/* 스탯 스파크 (총 호출 카드) */
.member-area .mba-spark { display: flex; align-items: flex-end; gap: 3px; height: 34px; margin-top: .6rem; }
.member-area .mba-spark b { flex: 1; background: #e8eaee; border-radius: 3px 3px 0 0; min-height: 3px; }
.member-area .mba-spark b.hi { background: #111; }
/* 리스트 메타 줄: 선택 정보 + 칩 + 기간 검색 */
.member-area .mba-jobs-meta {
  display: flex; align-items: center; gap: .75rem; margin-bottom: .7rem;
  flex-wrap: wrap; min-height: 32px;
}
.member-area .mba-jobs-meta .sel-info { font-size: .8rem; color: #555; font-weight: 600; }
.member-area .mba-jobs-meta .spacer { flex: 1; }
.member-area .mba-jobs-meta .mba-chips { margin-bottom: 0; }
/* 기간 칩도 같은 행의 캘린더·버튼과 같은 높이로 (다른 페이지 칩 크기는 그대로) */
.member-area .mba-jobs-meta .mba-chip { height: var(--mba-ctl-h, 32px); padding: 0 .35rem 0 .75rem; }
/* 엑셀형 그리드: 헤더·행 동일 컬럼 템플릿 (은행 106 · 이름 · 회원ID · 상태 92 · 날짜 112 · 소요 84 · 셰브론 40)
   — 체크박스 칸은 2026-08-19 일괄 기능 제거와 함께 삭제 */
.member-area .mba-job-head, .member-area .mba-job-row {
  display: grid;
  grid-template-columns: 106px minmax(0, 1.15fr) minmax(0, 1fr) 92px 112px 84px 40px;
  align-items: stretch;
}
.member-area .mba-job-head {
  border-bottom: 1px solid #ececec; background: #fafafa;
  font-size: 11px; font-weight: 700; letter-spacing: .05em; color: #999;
}
.member-area .mba-job-head > span, .member-area .mba-job-row > span {
  display: flex; align-items: center; justify-content: center; text-align: center;
  padding: .6rem .5rem; border-right: 1px solid #f0f0f0; min-width: 0;
}
.member-area .mba-job-head > span:last-child, .member-area .mba-job-row > span:last-child { border-right: none; }
.member-area .mba-job-wrap { border-bottom: 1px solid #f0f0f0; }
.member-area .mba-job-wrap:last-of-type { border-bottom: none; }
.member-area .mba-job-row { cursor: pointer; transition: background .16s cubic-bezier(.4,0,.2,1); }
.member-area .mba-job-row:hover { background: #fafbfc; }
.member-area .mba-jr-bank { font-weight: 700; font-size: .875rem; color: #111; }
.member-area .mba-jr-user { font-size: .84rem; color: #555; white-space: nowrap; overflow: hidden; }
.member-area .mba-jr-ref { font-size: .74rem; color: #888; white-space: nowrap; overflow: hidden; }
.member-area .mba-jr-date { font-size: .74rem; color: #999; white-space: nowrap; }
.member-area .mba-jr-elapsed { font-size: .74rem; color: #999; }
.member-area .mba-job-row .badge { width: 64px; justify-content: center; flex-shrink: 0; }
.member-area .mba-jr-chevron { transition: transform .16s cubic-bezier(.4,0,.2,1); color: #ccc; }
.member-area .mba-job-wrap.open .mba-jr-chevron { transform: rotate(180deg); color: #111; }
/* 행 확장 상세 */
.member-area .mba-jr-detail { display: none; background: #fafbfc; border-top: 1px solid #f5f5f5; padding: 1rem 1.5rem; }
.member-area .mba-job-wrap.open .mba-jr-detail { display: block; }
.member-area .mba-kv-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: .8rem 1.5rem; }
.member-area .mba-kv-m { display: none; } /* 모바일 전용 kv — 640px 이하에서만 노출 (숨긴 컬럼 대체) */
.member-area .mba-kv .k { font-size: 10.5px; font-weight: 700; letter-spacing: .06em; color: #aaa; margin-bottom: .15rem; }
.member-area .mba-kv .v { font-size: .82rem; font-weight: 500; color: #333; word-break: break-all; }
.member-area .mba-err-box {
  margin-top: .8rem; padding: .65rem .875rem; background: rgba(220,38,38,.08);
  border-radius: 8px; font-size: .8rem; color: #dc2626; font-weight: 500;
}
.member-area .mba-jr-detail-actions { margin-top: .7rem; display: flex; gap: .5rem; }

/* ── 페이지: my-usage (5번 하이브리드 — 게이지 + KPI 3장 + Jinja 인라인 차트) ── */
.member-area .mba-usage-top { display: grid; grid-template-columns: 300px 1fr; gap: 1.25rem; margin-bottom: 1.25rem; align-items: stretch; }
.member-area .mba-usage-topright { display: flex; flex-direction: column; gap: 1.25rem; min-width: 0; }
.member-area .mba-usage-topright > .card:last-child { flex: 1; display: flex; flex-direction: column; }
.member-area .mba-kpi3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.member-area .mba-kpi { position: relative; }
.member-area .mba-kpi-spark { position: absolute; right: 14px; bottom: 14px; opacity: .9; }
.member-area .mba-delta-up { color: #16a34a; font-weight: 700; }
.member-area .mba-delta-down { color: #dc2626; font-weight: 700; }
/* 플랜 카드 (무료: 아크 게이지 / 유료: 크레딧 잔액) */
.member-area .mba-plan-card { padding: 1.25rem 1.375rem; display: flex; flex-direction: column; justify-content: center; }
.member-area .mba-plan-row { display: flex; align-items: center; justify-content: space-between; margin-bottom: .875rem; }
.member-area .mba-plan-name { font-size: .95rem; font-weight: 900; color: #111; }
.member-area .mba-gauge-wrap { display: flex; justify-content: center; margin: .25rem 0 .75rem; }
.member-area .mba-gauge-wrap svg { display: block; }
.member-area .mba-gauge-label { text-align: center; }
.member-area .mba-gauge-label .n { font-size: 1.5rem; font-weight: 900; letter-spacing: -.02em; color: #111; }
.member-area .mba-gauge-label .n small { font-size: .85rem; color: #aaa; font-weight: 600; }
.member-area .mba-gauge-label .t { font-size: .72rem; color: #999; font-weight: 600; }
.member-area .mba-plan-cta { display: block; text-align: center; margin-top: .875rem; }
.member-area .mba-balance { text-align: center; padding: .625rem 0 .375rem; }
.member-area .mba-balance .n { font-size: 2rem; font-weight: 900; letter-spacing: -.03em; color: #111; }
.member-area .mba-balance .n small { font-size: .95rem; color: #aaa; font-weight: 600; margin-left: 2px; }
.member-area .mba-balance .t { font-size: .72rem; color: #999; font-weight: 600; margin-top: .2rem; }
/* 섹션 카드 헤더 + 차트 패딩 */
.member-area .mba-sec-head { padding: 1.05rem 1.5rem; border-bottom: 1px solid #f5f5f5; display: flex; align-items: center; gap: .75rem; flex-wrap: wrap; }
.member-area .mba-sec-head h2 { font-size: .95rem; font-weight: 800; letter-spacing: -.01em; margin: 0; border: none; padding: 0; }
.member-area .mba-sec-head .sub { font-size: .76rem; color: #aaa; font-weight: 500; margin-right: auto; }
.member-area .mba-chart-pad { padding: 1.25rem 1.5rem; }
.member-area .mba-chart-range { display: flex; align-items: center; gap: .4rem; }
.member-area .mba-chart-range input[type="date"],
.member-area .mba-chart-range input[type="month"] {
  border: 1px solid #e5e5e5; border-radius: 8px; padding: .3rem .55rem;
  font-family: inherit; font-size: .76rem; color: #111; background: #fff; outline: none; width: auto;
}
.member-area .mba-chart-range input:focus { border-color: #111; }
.member-area .mba-chart-range .sep { color: #bbb; font-size: .8rem; }
/* 오늘 시간대별 */
.member-area .mba-today-grid { display: grid; grid-template-columns: 150px 1fr; gap: 1.25rem; padding: 1.25rem 1.5rem; align-items: center; flex: 1; }
.member-area .mba-today-num .n { font-size: 2.2rem; font-weight: 900; letter-spacing: -.03em; line-height: 1.1; color: #111; }
.member-area .mba-today-num .t { font-size: .76rem; color: #999; }
.member-area .mba-hour-bars { display: flex; align-items: flex-end; gap: 3px; height: 88px; }
.member-area .mba-hour-bar { flex: 1; background: #dbe5f9; border-radius: 3px 3px 0 0; min-height: 2px; }
.member-area .mba-hour-bar.peak { background: #2563eb; }
.member-area .mba-hour-x { display: flex; justify-content: space-between; font-size: .66rem; color: #bbb; margin-top: .35rem; }
/* 일별 30일 막대 + 커스텀 툴팁 */
.member-area .mba-daily-card { margin-bottom: 1.25rem; }
.member-area .mba-daily-bars { display: flex; align-items: flex-end; gap: 3px; height: 130px; }
.member-area .mba-day-bar { flex: 1; background: #c8d6f5; border-radius: 3px 3px 0 0; min-height: 2px; }
.member-area .mba-day-bar.max { background: #2563eb; }
.member-area .mba-day-bar.future { background: #f0f0f0; }
.member-area .mba-day-tip {
  position: absolute; left: 0; top: 0; pointer-events: none; opacity: 0;
  background: #111; color: #fff; font-size: .72rem; font-weight: 600;
  font-family: 'Pretendard Variable', Pretendard, 'Noto Sans KR', sans-serif; font-variant-numeric: tabular-nums;
  padding: .3rem .6rem; border-radius: 6px; white-space: nowrap;
  transform: translate(-50%, -135%); transition: opacity .12s; z-index: 5;
}
/* 하단: 월별 스택 + 은행별 순위 */
.member-area .mba-usage-bottom { display: grid; grid-template-columns: 1fr 1.4fr; gap: 1.25rem; align-items: stretch; }
.member-area .mba-usage-bottom .card { display: flex; flex-direction: column; }
.member-area .mba-mon-rows { flex: 1; display: flex; flex-direction: column; justify-content: space-evenly; }
.member-area .mba-mon-row { display: grid; grid-template-columns: 74px 1fr 90px; gap: .875rem; align-items: center; padding: .45rem 0; }
.member-area .mba-mon-name { font-size: .8rem; font-weight: 700; color: #555; }
.member-area .mba-mon-track { height: 9px; background: #f0f1f4; border-radius: 5px; overflow: hidden; display: flex; }
.member-area .mba-mon-track .ok { height: 100%; background: #2563eb; }
.member-area .mba-mon-track .fail { height: 100%; background: #f0b1b1; }
.member-area .mba-mon-val { font-size: .76rem; color: #666; text-align: right; }
.member-area .mba-rank-rows { padding: .5rem 1.5rem 1.25rem; flex: 1; display: flex; flex-direction: column; justify-content: space-evenly; }
.member-area .mba-rank-row { display: grid; grid-template-columns: 22px 90px 1fr 70px; align-items: center; gap: .75rem; padding: .55rem 0; }
.member-area .mba-rank-row .no { font-size: .75rem; color: #bbb; font-weight: 600; }
.member-area .mba-rank-row .name { font-size: .85rem; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.member-area .mba-rank-row .track { height: 8px; background: #f0f1f4; border-radius: 4px; overflow: hidden; }
.member-area .mba-rank-row .bar { height: 100%; border-radius: 4px; background: #2563eb; }
.member-area .mba-rank-row .val { font-size: .78rem; color: #666; text-align: right; }

/* ── 페이지: credits (3번 정산 콘솔 — 요약 스트립 + 업무 탭 4개) ── */
/* 드롭다운(csel)이 든 카드는 .card의 overflow:hidden이 메뉴를 자르므로 예외 (8/18-4 발견) */
.member-area .mba-ov-visible { overflow: visible; }
/* 요약 스트립 4셀 (2px 구분선은 콘텐츠 높이만) */
.member-area .mba-cr-strip { display: grid; grid-template-columns: repeat(4, 1fr); margin-bottom: 1.5rem; }
.member-area .mba-cr-cell { position: relative; padding: 1.05rem 1.375rem; }
.member-area .mba-cr-cell::after {
  content: ''; position: absolute; right: 0; top: 1.05rem; bottom: 1.05rem;
  width: 2px; background: #e8e8e8; border-radius: 2px;
}
.member-area .mba-cr-cell:last-child::after { display: none; }
.member-area .mba-cr-cell .k { font-size: .73rem; color: #999; font-weight: 600; }
.member-area .mba-cr-cell .v { font-size: 1.3rem; font-weight: 900; letter-spacing: -.02em; color: #111; }
.member-area .mba-cr-cell .v small { font-size: .78rem; font-weight: 600; color: #aaa; }
.member-area .mba-cr-cell .s { font-size: .72rem; color: #aaa; margin-top: .05rem; }
.member-area .mba-cr-cell .v.low { color: var(--danger); }
/* 잔액 게이지 + 인라인 충전 버튼 (목업 credit-charge-cta-4ways 3번) — .low는 소진 임박(7일 이하) */
.member-area .mba-cr-gauge { margin-top: .4rem; }
.member-area .mba-cr-gauge .track { height: 5px; border-radius: 99px; background: #eee; overflow: hidden; }
.member-area .mba-cr-gauge .fill { height: 100%; border-radius: 99px; background: #111; transition: width .4s ease; }
.member-area .mba-cr-gauge .fill.low { background: var(--danger); }
.member-area .mba-cr-gauge .meta {
  display: flex; align-items: center; justify-content: space-between; gap: .5rem; margin-top: .3rem;
}
.member-area .mba-cr-gauge .t { font-size: .68rem; color: #aaa; font-weight: 600; min-width: 0; word-break: keep-all; }
.member-area .mba-cr-gauge .t.low { color: var(--danger); font-weight: 700; }
.member-area .mba-cr-chg {
  display: inline-flex; align-items: center; flex-shrink: 0;
  padding: .18rem .6rem; font-size: .69rem; font-weight: 800;
  background: #111; border: 1px solid #111; border-radius: 50px; color: #fff;
  transition: all .16s cubic-bezier(.4,0,.2,1);
}
.member-area .mba-cr-chg:hover { background: #333; border-color: #333; color: #fff; }
.member-area .mba-cr-chg.low { background: var(--danger); border-color: var(--danger); }
.member-area .mba-cr-chg.low:hover { background: #b91c1c; border-color: #b91c1c; }
/* 스트립 하단 안내 바 (목업 credit-card-cta-4ways 4번) — 카드 미등록이면 경고 톤, 등록되면 확인 톤.
   .card의 overflow:hidden이 아래 모서리를 잘라주므로 별도 radius 불필요 */
.member-area .mba-cr-bar {
  grid-column: 1 / -1;
  display: flex; align-items: center; gap: .7rem; flex-wrap: wrap;
  padding: .7rem 1.375rem;
  border-top: 1px solid #f2e9d6; background: #fffbeb;
}
.member-area .mba-cr-bar .ico { width: 16px; height: 16px; }
.member-area .mba-cr-bar .msg { font-size: .78rem; font-weight: 600; color: #92702a; }
.member-area .mba-cr-bar .msg b { color: #7c5c15; font-weight: 800; }
.member-area .mba-cr-bar.ok { background: #fafafa; border-top-color: #f0f0f0; }
.member-area .mba-cr-bar.ok .msg { color: #888; }
.member-area .mba-cr-bar.ok .msg b { color: #444; }
.member-area .mba-cr-barbtn {
  margin-left: auto; display: inline-flex; align-items: center; gap: .35rem;
  padding: .32rem .9rem; font-family: inherit; font-size: .745rem; font-weight: 700;
  background: #111; border: 1px solid #111; border-radius: 50px; color: #fff;
  cursor: pointer; transition: all .16s cubic-bezier(.4,0,.2,1);
}
.member-area .mba-cr-barbtn:hover { background: #333; border-color: #333; }
.member-area .mba-cr-barbtn .ico { width: 12px; height: 12px; }
.member-area .mba-cr-barbtn.ghost { background: #fff; border-color: #e2e2e2; color: #333; }
.member-area .mba-cr-barbtn.ghost:hover { background: #fff; border-color: #111; color: #111; }
/* 업무 탭 */
.member-area .mba-cr-tabs { display: flex; gap: 1.75rem; border-bottom: 1px solid #e8e8e8; margin-bottom: 1.5rem; }
.member-area .mba-cr-tab {
  background: none; border: none; font-family: inherit; font-size: .9rem; font-weight: 600;
  color: #999; padding: .6rem .1rem; cursor: pointer; border-bottom: 2px solid transparent;
  margin-bottom: -1px; transition: color .16s cubic-bezier(.4,0,.2,1);
}
.member-area .mba-cr-tab:hover { color: #111; }
.member-area .mba-cr-tab.active { color: #111; font-weight: 800; border-bottom-color: #111; }
.member-area .mba-cr-pane { display: none; }
.member-area .mba-cr-pane.visible { display: block; }
/* 공통 카드 헤더 */
.member-area .mba-cr-panehead {
  padding: 1.125rem 1.375rem; border-bottom: 1px solid #f5f5f5;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
}
.member-area .mba-cr-panehead.wrap { flex-wrap: wrap; }
.member-area .mba-cr-panehead h2 { font-size: .95rem; font-weight: 800; margin: 0; border: none; padding: 0; }
.member-area .mba-cr-panehead .sub { font-size: .76rem; color: #888; }
.member-area .mba-cr-bonus-hl { color: #16a34a; font-weight: 700; }
.member-area .mba-cr-footnote { padding: .8rem 1.375rem; font-size: .72rem; color: #aaa; background: #fafafa; margin-top: auto; }
/* 개요 탭 */
.member-area .mba-cr-ovgrid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 1.25rem; align-items: stretch; }
.member-area .mba-cr-ovgrid > .card { margin-bottom: 0; display: flex; flex-direction: column; }
.member-area .mba-cr-bal { padding: 1.5rem 1.75rem; }
.member-area .mba-cr-bal .k { font-size: .78rem; font-weight: 600; color: #888; }
.member-area .mba-cr-bal .v { font-size: 2.2rem; font-weight: 900; letter-spacing: -.03em; color: #111; }
.member-area .mba-cr-bal .v .unit { font-size: 1rem; font-weight: 600; color: #aaa; }
.member-area .mba-cr-bal .burn { font-size: .76rem; color: #999; margin-top: .25rem; }
.member-area .mba-cr-freebox {
  margin-top: 1rem; background: rgba(22,163,74,.08); border-radius: 10px;
  padding: .7rem .95rem; font-size: .8rem; color: #333; line-height: 1.55;
}
.member-area .mba-cr-freebox b { font-weight: 800; }
.member-area .mba-cr-inout { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-top: 1.25rem; padding-top: 1.25rem; border-top: 1px solid #f5f5f5; }
.member-area .mba-cr-inout .k { font-size: .73rem; color: #999; font-weight: 600; }
.member-area .mba-cr-inout .n { font-size: 1.05rem; font-weight: 800; color: #111; }
.member-area .mba-cr-bal .acts { margin-top: 1.25rem; display: flex; gap: .5rem; }
.member-area .mba-cr-recent .head { padding: 1rem 1.375rem; border-bottom: 1px solid #f5f5f5; font-size: .9rem; font-weight: 800; }
.member-area .mba-cr-recent .row { display: flex; align-items: center; gap: .75rem; padding: .65rem 1.375rem; border-bottom: 1px solid #f7f7f7; font-size: .82rem; }
.member-area .mba-cr-recent .row:last-child { border-bottom: none; }
.member-area .mba-cr-recent .d { color: #aaa; font-size: .72rem; width: 84px; flex-shrink: 0; }
.member-area .mba-cr-recent .desc { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.member-area .mba-cr-recent .amt { margin-left: auto; font-size: .8rem; font-weight: 700; color: #111; }
.member-area .mba-cr-recent .amt.plus { color: #16a34a; }
/* 충전 탭 */
.member-area .mba-cr-chargegrid { display: grid; grid-template-columns: 1.5fr 1fr; gap: 1.25rem; align-items: stretch; }
.member-area .mba-cr-chargegrid > .card { margin-bottom: 0; display: flex; flex-direction: column; }
.member-area .mba-cr-amts { display: grid; grid-template-columns: repeat(3, 1fr); gap: .75rem; padding: 1.375rem; flex: 1; align-content: space-evenly; }
.member-area .mba-cr-amt {
  border: 1px solid #e8e8e8; border-radius: 10px; padding: .875rem .5rem; text-align: center;
  cursor: pointer; transition: all .16s cubic-bezier(.4,0,.2,1); background: #fff; font-family: inherit;
  display: flex; flex-direction: column; justify-content: center; align-items: center; min-height: 70px; gap: .1rem;
}
.member-area .mba-cr-amt:hover { border-color: #bbb; }
.member-area .mba-cr-amt.selected { border-color: #111; box-shadow: 0 0 0 1px #111 inset; }
.member-area .mba-cr-amt .a { font-size: .95rem; font-weight: 800; color: #111; }
.member-area .mba-cr-amt .b { font-size: .68rem; font-weight: 700; color: #16a34a; }
.member-area .mba-cr-sum { padding: 1.375rem 1.5rem; }
.member-area .mba-cr-sum h3 { font-size: .9rem; font-weight: 800; margin-bottom: .875rem; }
.member-area .mba-cr-sum .row { display: flex; justify-content: space-between; font-size: .84rem; padding: .35rem 0; color: #666; }
.member-area .mba-cr-sum .row b { color: #111; font-weight: 700; }
.member-area .mba-cr-sum .row.total { border-top: 1px solid #f0f0f0; margin-top: auto; padding-top: .75rem; font-weight: 700; color: #111; }
.member-area .mba-cr-sum .row.total b { font-size: 1.05rem; }
.member-area .mba-cr-sum .btn-primary { width: 100%; margin-top: 1rem; }
.member-area .mba-cr-sum .note { font-size: .7rem; color: #aaa; margin-top: .75rem; }
.member-area .mba-cr-upgrade-note {
  margin-top: .875rem; background: rgba(217,119,6,.1); border-radius: 10px;
  padding: .65rem .875rem; font-size: .76rem; color: #92400e; line-height: 1.55;
}
.member-area .mba-cr-upgrade-note b { font-weight: 800; }
/* 카드 · 자동충전 탭 */
.member-area .mba-cr-cardsgrid { display: grid; grid-template-columns: 1fr 1.4fr; gap: 1.25rem; align-items: stretch; min-width: 0; }
.member-area .mba-cr-cardsgrid > .card { margin-bottom: 0; display: flex; flex-direction: column; min-width: 0; }
.member-area .mba-cr-cardlist { padding: 1.25rem 1.375rem; display: flex; flex-direction: column; gap: .75rem; flex: 1; justify-content: center; align-items: center; }
/* 실물 카드 비율 (85.6 × 53.98 mm → 1.586 : 1) */
.member-area .mba-pcard {
  border-radius: 16px; padding: 1.1rem 1.25rem 1rem;
  color: #fff; position: relative;
  aspect-ratio: 1.586; width: 100%; max-width: 360px;
  display: flex; flex-direction: column; justify-content: space-between;
  box-shadow: 0 8px 28px rgba(0,0,0,.22);
  overflow: hidden;
}
/* 카드 배경 광택 레이어 */
.member-area .mba-pcard::after {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(135deg, rgba(255,255,255,.18) 0%, transparent 60%);
}
.member-area .mba-pcard .pc-top {
  display: flex; justify-content: space-between; align-items: flex-start; position: relative; z-index: 1;
}
.member-area .mba-pcard .pc-brand {
  font-size: .82rem; font-weight: 800; letter-spacing: .01em; opacity: .95;
}
/* 삭제 버튼 — 카드 우상단 ✕ */
.member-area .mba-pcard .pc-del {
  border: none; background: rgba(0,0,0,.25); color: rgba(255,255,255,.8);
  width: 24px; height: 24px; border-radius: 50%; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  font-size: .8rem; line-height: 1; font-family: inherit;
  transition: background .15s; flex-shrink: 0;
}
.member-area .mba-pcard .pc-del:hover { background: rgba(220,38,38,.7); color: #fff; }
/* IC 칩 */
.member-area .mba-pcard .pc-chip { display: block; opacity: .8; position: relative; z-index: 1; }
/* 카드 하단: 번호 + 로고 */
.member-area .mba-pcard .pc-bottom {
  display: flex; justify-content: space-between; align-items: flex-end; position: relative; z-index: 1;
}
.member-area .mba-pcard .pc-num { font-size: .95rem; letter-spacing: .15em; font-weight: 500; opacity: .95; }
.member-area .mba-pcard .pc-logo { flex-shrink: 0; }
/* 이전 스타일 호환 제거 */
.member-area .mba-cr-cardacts { display: none; }
.member-area .mba-cr-ghost {
  border: none; background: none; color: #999; font-size: .72rem; font-weight: 600;
  cursor: pointer; padding: .18rem .5rem; border-radius: 6px; font-family: inherit;
  transition: all .16s cubic-bezier(.4,0,.2,1);
}
.member-area .mba-cr-ghost:hover { background: #f5f6f8; color: #111; }
.member-area .mba-cr-ghost.danger:hover { background: rgba(220,38,38,.08); color: #dc2626; }
.member-area .mba-cr-cardempty {
  text-align: center; padding: 2.25rem 1rem; flex: 1;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
}
.member-area .mba-cr-cardempty svg { margin: 0 auto .75rem; }
.member-area .mba-cr-cardempty .t { font-weight: 600; margin-bottom: .25rem; }
.member-area .mba-cr-cardempty .s { font-size: .78rem; color: #aaa; margin-bottom: 1rem; }
/* 카드 브랜드 그라디언트 (실물 카드·브랜드 점·로고 공용) */
.member-area .mba-gbg-shinhan { background: linear-gradient(135deg,#0046a6 0%,#1a6fd4 100%); }
.member-area .mba-gbg-kb      { background: linear-gradient(135deg,#c8860a 0%,#f5a623 100%); }
.member-area .mba-gbg-samsung { background: linear-gradient(135deg,#1e2742 0%,#2d4f8e 100%); }
.member-area .mba-gbg-hyundai { background: linear-gradient(135deg,#1a1a1a 0%,#3d3d3d 100%); }
.member-area .mba-gbg-lotte   { background: linear-gradient(135deg,#c0001d 0%,#e8002b 100%); }
.member-area .mba-gbg-woori   { background: linear-gradient(135deg,#00817e 0%,#00a89e 100%); }
.member-area .mba-gbg-hana    { background: linear-gradient(135deg,#006b3f 0%,#00994d 100%); }
.member-area .mba-gbg-nh      { background: linear-gradient(135deg,#5b8c00 0%,#7ab800 100%); }
.member-area .mba-gbg-bc      { background: linear-gradient(135deg,#e06600 0%,#f08a00 100%); }
.member-area .mba-gbg-ibk     { background: linear-gradient(135deg,#003c7d 0%,#1263b8 100%); }
.member-area .mba-gbg-citi    { background: linear-gradient(135deg,#003a72 0%,#0a5dab 100%); }
.member-area .mba-gbg-etc     { background: linear-gradient(135deg,#2d333b 0%,#373e47 100%); }
.member-area .mba-cr-branddot {
  width: 22px; height: 22px; border-radius: 6px; flex-shrink: 0;
  display: inline-flex; align-items: center; justify-content: center;
  color: #fff; font-size: .54rem; font-weight: 800; letter-spacing: -.02em;
}
/* 자동충전 폼 */
.member-area .mba-cr-acform { padding: 1.375rem; display: grid; grid-template-columns: 1fr 1fr; gap: 1.125rem; flex: 1; align-content: space-evenly; }
.member-area .mba-cr-acsave { display: flex; align-items: flex-end; }
.member-area .mba-cr-cinput { position: relative; }
.member-area .mba-cr-cinput input {
  width: 100%; border: 1px solid #e5e5e5; border-radius: 10px; padding: .6rem 2.4rem .6rem .875rem;
  font-size: .88rem; font-weight: 600; color: #111; background: #fff;
  outline: none; transition: all .16s cubic-bezier(.4,0,.2,1); font-family: inherit;
}
.member-area .mba-cr-cinput input:hover:not(:disabled) { border-color: #ccc; }
.member-area .mba-cr-cinput input:focus { border-color: #111; box-shadow: 0 0 0 3px rgba(17,17,17,.07); }
.member-area .mba-cr-cinput input:disabled { background: #fafafa; color: #bbb; }
.member-area .mba-cr-cinput .suffix { position: absolute; right: .875rem; top: 50%; transform: translateY(-50%); font-size: .78rem; color: #aaa; pointer-events: none; }
.member-area .mba-cr-bonustag { font-size: .66rem; font-weight: 800; color: #16a34a; background: rgba(22,163,74,.1); border-radius: 99px; padding: .08rem .45rem; }
.member-area .mba-csel-btn:disabled { background: #fafafa; color: #bbb; cursor: default; }
/* 이력 탭 */
.member-area .mba-cr-seg { display: inline-flex; background: #eff0f3; border-radius: 50px; padding: 3px; gap: 2px; }
.member-area .mba-cr-seg .seg {
  padding: .34rem .95rem; border-radius: 50px; font-size: .78rem; font-weight: 600;
  color: #777; text-decoration: none; transition: all .16s cubic-bezier(.4,0,.2,1);
}
.member-area .mba-cr-seg .seg:hover { color: #111; }
.member-area .mba-cr-seg .seg.active { background: #fff; color: #111; font-weight: 700; box-shadow: 0 1px 4px rgba(0,0,0,.08); }
.member-area .mba-cr-table { width: 100%; border-collapse: collapse; font-size: .83rem; }
.member-area .mba-cr-table th { text-align: left; padding: .6rem 1.375rem; }
.member-area .mba-cr-table th.r, .member-area .mba-cr-table td.r { text-align: right; }
.member-area .mba-cr-table td { padding: .7rem 1.375rem; }
.member-area .mba-cr-table td.dim { color: #888; font-size: .78rem; }
.member-area .mba-cr-table td.plus { color: #16a34a; font-weight: 700; }
.member-area .mba-cr-table td.r { font-weight: 700; }
.member-area .mba-cr-table td.desc { color: #555; }
/* 카드 등록 모달 (2단계) */
.member-area .mba-cr-steps { display: flex; align-items: center; gap: .5rem; margin-bottom: 1.125rem; }
.member-area .mba-cr-steps .dot {
  width: 24px; height: 24px; border-radius: 50%; background: #eff0f3; color: #999;
  font-size: .72rem; font-weight: 800; display: flex; align-items: center; justify-content: center;
  transition: all .16s cubic-bezier(.4,0,.2,1);
}
.member-area .mba-cr-steps .dot.active { background: #111; color: #fff; }
.member-area .mba-cr-steps .dot.done { background: #16a34a; color: #fff; }
.member-area .mba-cr-steps .line { width: 26px; height: 2px; background: #eee; border-radius: 2px; }
.member-area .mba-cr-steps .lbl { font-size: .78rem; font-weight: 700; color: #666; }
.member-area .mba-cr-stephint { font-size: .78rem; color: #888; margin-bottom: .875rem; }
.member-area .mba-cr-brands { display: grid; grid-template-columns: repeat(3, 1fr); gap: .625rem; }
.member-area .mba-cr-brandbtn {
  border: 1px solid #eee; border-radius: 12px; background: #fff; padding: .875rem .5rem .7rem;
  cursor: pointer; display: flex; flex-direction: column; align-items: center; gap: .45rem;
  font-family: inherit; transition: all .16s cubic-bezier(.4,0,.2,1);
}
.member-area .mba-cr-brandbtn:hover { border-color: #ccc; transform: translateY(-1px); }
.member-area .mba-cr-brandbtn.selected { border-color: #111; box-shadow: 0 0 0 1px #111 inset; }
.member-area .mba-cr-brandbtn .logo {
  width: 34px; height: 34px; border-radius: 9px; color: #fff; font-size: .66rem; font-weight: 800;
  display: flex; align-items: center; justify-content: center;
}
/* 로고 이미지가 있는 브랜드 — 카드사 CI는 가로형 워드마크(삼성 7:1, 현대 5:1, 롯데 4.4:1, BC 4.1:1)와
   정사각 심볼(은행계 1:1)이 섞여 있다. 34px 정사각 타일에 넣으면 워드마크가 뭉개지므로
   높이 34px 짜리 가로 띠로 통일하고 object-fit:contain 이 두 비율을 알아서 맞추게 한다 */
.member-area .mba-cr-brandbtn .logo.has-logo {
  width: 100%; height: 34px; background: none; border: 0; border-radius: 0;
}
.member-area .mba-cr-brandbtn .logo.has-logo img {
  max-width: 100%; max-height: 100%; object-fit: contain;
}
.member-area .mba-cr-brandbtn .name { font-size: .75rem; font-weight: 700; color: #333; }
.member-area .mba-cr-regpreview {
  border-radius: 14px; padding: 1.05rem 1.2rem; color: #fff; min-height: 132px;
  display: flex; flex-direction: column; justify-content: space-between; margin-bottom: 1.125rem;
  box-shadow: 0 8px 22px rgba(0,0,0,.18);
  background: linear-gradient(135deg,#2d333b 0%,#373e47 100%); transition: background .25s ease;
}
.member-area .mba-cr-regpreview .rp-top { display: flex; justify-content: space-between; font-size: .74rem; font-weight: 800; letter-spacing: .06em; opacity: .95; }
.member-area .mba-cr-regpreview .rp-chip { width: 30px; height: 22px; border-radius: 5px; background: linear-gradient(135deg,#e8c56b,#c9a244); margin-top: .5rem; }
.member-area .mba-cr-regpreview .rp-num { font-size: 1rem; letter-spacing: .14em; margin-bottom: .45rem; }
.member-area .mba-cr-regpreview .rp-bottom { display: flex; justify-content: space-between; align-items: flex-end; font-size: .66rem; opacity: .9; }
.member-area .mba-cr-regpreview .rp-exp { font-size: .8rem; }
.member-area .mba-cr-regpreview .rp-brandname { font-weight: 800; }
.member-area .mba-cr-2col { display: grid; grid-template-columns: 1fr 1fr; gap: .75rem; }
.member-area .mba-cr-foothint { font-size: .7rem; color: #aaa; margin-right: auto; align-self: center; }

/* ── 페이지: dashboard (5번 하이브리드 — A 관제탑 + D 확인 필요 + 온보딩) ── */
.member-area .mba-dash-live { width: 7px; height: 7px; border-radius: 50%; background: #0891b2; display: inline-block; animation: mbaDashPulse 1.4s ease infinite; }
@keyframes mbaDashPulse { 0%,100% { opacity: 1; } 50% { opacity: .25; } }
/* KPI 스트립 4셀 (2px 콘텐츠 높이 구분선) */
.member-area .mba-dash-kpis { display: grid; grid-template-columns: repeat(4, 1fr); margin-bottom: 1.375rem; }
.member-area .mba-dash-kpi { position: relative; padding: 1.35rem 1.5rem; }
.member-area .mba-dash-kpi::after {
  content: ''; position: absolute; right: 0; top: 1.35rem; bottom: 1.35rem;
  width: 2px; background: #e8e8e8; border-radius: 2px;
}
.member-area .mba-dash-kpi:last-child::after { display: none; }
.member-area .mba-dash-kpi .k { font-size: .78rem; font-weight: 600; color: #999; letter-spacing: .04em; display: flex; align-items: center; gap: .4rem; }
.member-area .mba-dash-kpi .v { font-size: 1.6rem; font-weight: 900; letter-spacing: -.01em; line-height: 1.3; margin-top: .4rem; color: #111; }
.member-area .mba-dash-kpi .v small { font-size: .85rem; font-weight: 600; color: #aaa; margin-left: .25rem; }
.member-area .mba-dash-kpi .s { font-size: .74rem; color: #aaa; letter-spacing: .015em; line-height: 1.55; margin-top: .4rem; }
.member-area .mba-dash-kpi .s b { font-weight: 700; }
.member-area .mba-dash-kpi .s .ok { color: #16a34a; }
.member-area .mba-dash-kpi .s .bad { color: #dc2626; }
/* 2열 워크스페이스 — 하단 A안: 사용량 카드가 세로 공간을 흡수해 우측과 정렬 */
.member-area .mba-dash-work { display: grid; grid-template-columns: 1.9fr 1fr; gap: 1.25rem; align-items: stretch; }
.member-area .mba-dash-main { display: flex; flex-direction: column; gap: 1.25rem; min-width: 0; }
.member-area .mba-dash-main > .mba-dash-week { flex: 1; display: flex; flex-direction: column; }
.member-area .mba-dash-side { display: flex; flex-direction: column; gap: 1.25rem; }
.member-area .mba-dash-card { margin-bottom: 0; }
.member-area .mba-dash-head {
  padding: 1.05rem 1.375rem; border-bottom: 1px solid #f5f5f5;
  display: flex; align-items: center; justify-content: space-between; gap: .75rem;
}
.member-area .mba-dash-head.att { border-bottom: none; padding-bottom: .55rem; }
.member-area .mba-dash-head h2 { font-size: .98rem; font-weight: 800; letter-spacing: -.01em; display: flex; align-items: center; gap: .5rem; margin: 0; border: none; padding: 0; }
/* 카드 헤더 이동 링크(전체 이력·사용 통계·전체 보기)와 확인 필요 행의 '보기'
   — 파란 텍스트라 버튼으로 안 보이던 것을 흰 알약 버튼으로 (뒤로가기·계좌 상세와 같은 언어) */
.member-area .mba-dash-link,
.member-area .mba-dash-att .go {
  display: inline-flex; align-items: center; gap: .2rem;
  padding: .22rem .62rem; font-size: .72rem; font-weight: 700;
  background: #fff; border: 1px solid #e2e2e2; border-radius: 50px; color: #333;
  transition: all .16s cubic-bezier(.4,0,.2,1);
}
.member-area .mba-dash-link:hover,
.member-area .mba-dash-att .go:hover {
  border-color: #111; color: #111; box-shadow: 0 1px 4px rgba(0,0,0,.08);
}
/* 다른 페이지로 나가는 헤더 링크에만 셰브론 — 템플릿에 화살표 문자를 넣지 말 것 */
.member-area .mba-dash-link::after {
  content: '›'; font-size: .88rem; line-height: 1; color: #bbb;
  transition: transform .16s cubic-bezier(.4,0,.2,1), color .16s cubic-bezier(.4,0,.2,1);
}
.member-area .mba-dash-link:hover::after { color: #111; transform: translateX(2px); }
.member-area .mba-dash-cnt { font-size: .72rem; font-weight: 700; color: #dc2626; background: rgba(220,38,38,.08); border-radius: 99px; padding: .12rem .55rem; }
/* 최근 스크래핑 테이블 */
.member-area .mba-dash-tbl { width: 100%; border-collapse: collapse; }
.member-area .mba-dash-tbl th {
  text-align: left; font-size: .72rem; font-weight: 700; color: #999; letter-spacing: .03em;
  padding: .7rem 1.25rem; border-bottom: 1px solid #f5f5f5; background: #fafbfc; white-space: nowrap;
}
.member-area .mba-dash-tbl td { padding: .7rem 1.25rem; border-bottom: 1px solid #f7f7f7; font-size: .85rem; vertical-align: middle; }
.member-area .mba-dash-tbl tbody tr:last-child td { border-bottom: none; }
.member-area .mba-dash-tbl tbody tr:hover td { background: #fafbfc; }
.member-area .mba-dash-tbl td.dim { font-size: .76rem; color: #999; }
.member-area .mba-dash-tbl td.nm { font-weight: 600; }
/* 확인 필요 */
.member-area .mba-dash-att { display: flex; align-items: flex-start; gap: .7rem; padding: .8rem 1.375rem; border-bottom: 1px solid #f7f7f7; }
.member-area .mba-dash-att:last-child { border-bottom: none; }
.member-area .mba-dash-att .ico { width: 28px; height: 28px; border-radius: 8px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; margin-top: .1rem; }
.member-area .mba-dash-att .ico.danger { background: rgba(220,38,38,.08); color: #dc2626; }
.member-area .mba-dash-att .ico.warn { background: rgba(217,119,6,.1); color: #d97706; }
.member-area .mba-dash-att .tt { font-size: .82rem; font-weight: 700; }
.member-area .mba-dash-att .ds { font-size: .74rem; color: #999; }
.member-area .mba-dash-att .go { margin-left: auto; align-self: center; white-space: nowrap; }
.member-area .mba-dash-att-ok { display: flex; align-items: center; gap: .5rem; padding: .35rem 1.375rem 1.05rem; font-size: .82rem; font-weight: 600; color: #16a34a; }
/* 크레딧 카드 */
.member-area .mba-dash-credit { padding: 1.25rem 1.375rem; }
.member-area .mba-dash-credit .amt { font-size: 1.75rem; font-weight: 900; letter-spacing: -.03em; color: #111; }
.member-area .mba-dash-credit .amt small { font-size: .9rem; font-weight: 600; color: #aaa; margin-left: .25rem; letter-spacing: 0; }
.member-area .mba-dash-credit .meta { font-size: .76rem; color: #999; margin: .25rem 0 1rem; }
.member-area .mba-dash-credit .acts { display: flex; gap: .5rem; }
/* 내 회원 요약 */
.member-area .mba-dash-dist { padding: 1rem 1.375rem .9rem; border-bottom: 1px solid #f7f7f7; }
.member-area .mba-dash-dist .top { display: flex; align-items: center; justify-content: space-between; }
.member-area .mba-dash-dist .tv { font-size: 1.45rem; font-weight: 900; letter-spacing: -.02em; line-height: 1.2; color: #111; }
.member-area .mba-dash-dist .tv small { font-size: .8rem; font-weight: 600; color: #aaa; margin-left: .25rem; letter-spacing: 0; }
.member-area .mba-dash-dist .bar { display: flex; height: 8px; border-radius: 4px; overflow: hidden; margin: .6rem 0 .55rem; background: #f0f1f4; }
.member-area .mba-dash-dist .legend { display: flex; align-items: center; gap: 1rem; font-size: .74rem; color: #888; font-weight: 500; }
.member-area .mba-dash-dist .legend i { width: 8px; height: 8px; border-radius: 2px; display: inline-block; margin-right: .35rem; }
.member-area .mba-dash-dist .legend b { color: #111; font-weight: 800; }
.member-area .mba-dash-minis { padding: .4rem 0; }
.member-area .mba-dash-minis .row { display: flex; align-items: center; gap: .65rem; padding: .5rem 1.375rem; transition: background .16s cubic-bezier(.4,0,.2,1); text-decoration: none; color: inherit; }
.member-area .mba-dash-minis .row:hover { background: #fafbfc; }
.member-area .mba-dash-minis .ava {
  width: 28px; height: 28px; border-radius: 50%; background: #eff0f3; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center; font-size: .72rem; font-weight: 800; color: #666;
}
.member-area .mba-dash-minis .bd { display: flex; flex-direction: column; min-width: 0; }
.member-area .mba-dash-minis .nm { font-size: .83rem; font-weight: 600; color: #111; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.member-area .mba-dash-minis .sub { font-size: .7rem; color: #aaa; }
.member-area .mba-dash-minis .st { margin-left: auto; font-size: .72rem; font-weight: 700; flex-shrink: 0; }
.member-area .mba-dash-minis .st.ok { color: #16a34a; }
.member-area .mba-dash-minis .st.bad { color: #dc2626; }
.member-area .mba-dash-minis .st.none { color: #bbb; }
/* 이번 주 사용량 */
.member-area .mba-dash-week-body { padding: 1.125rem 1.375rem .9rem; flex: 1; display: flex; flex-direction: column; }
.member-area .mba-dash-week-body .sum { display: flex; gap: 1.5rem; font-size: .76rem; color: #888; margin-bottom: 1rem; flex-wrap: wrap; }
.member-area .mba-dash-week-body .sum b { color: #111; }
.member-area .mba-dash-week-body .bars { display: flex; align-items: flex-end; gap: 10px; flex: 1; min-height: 116px; }
.member-area .mba-dash-week-body .col { flex: 1; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: .3rem; }
.member-area .mba-dash-week-body .wb { width: 100%; max-width: 46px; background: #c8d6f5; border-radius: 4px 4px 0 0; }
.member-area .mba-dash-week-body .col.today .wb { background: #2563eb; }
.member-area .mba-dash-week-body .wl { font-size: .68rem; color: #aaa; white-space: nowrap; }
.member-area .mba-dash-week-body .col.today .wl { color: #111; font-weight: 700; }
.member-area .mba-dash-week-body .wv { font-size: .62rem; color: #888; white-space: nowrap; }
.member-area .mba-dash-week-body .col.today .wv { color: #2563eb; font-weight: 700; }
/* 온보딩 빈 상태 */
.member-area .mba-dash-ob { max-width: 720px; margin: 0 auto; display: flex; flex-direction: column; gap: 1.25rem; }
.member-area .mba-dash-ob .hero { text-align: center; padding: .5rem 0 .25rem; }
.member-area .mba-dash-ob .hero h2 { font-size: 1.15rem; font-weight: 900; letter-spacing: -.02em; }
.member-area .mba-dash-ob .hero p { font-size: .84rem; color: #888; margin-top: .2rem; }
.member-area .mba-dash-ob .prog { font-size: .74rem; font-weight: 700; color: #888; display: flex; align-items: center; gap: .55rem; }
.member-area .mba-dash-ob .prog .bar { width: 90px; height: 6px; background: #eff0f3; border-radius: 3px; overflow: hidden; display: inline-block; }
.member-area .mba-dash-ob .prog .bar i { display: block; height: 100%; background: #12b76a; border-radius: 3px; }
.member-area .mba-dash-obstep { display: flex; align-items: flex-start; gap: .9rem; padding: .95rem 1.5rem; border-bottom: 1px solid #f7f7f7; }
.member-area .mba-dash-obstep:last-child { border-bottom: none; }
.member-area .mba-dash-obstep .num {
  width: 28px; height: 28px; border-radius: 50%; flex-shrink: 0; margin-top: .1rem;
  display: flex; align-items: center; justify-content: center;
  font-size: .78rem; font-weight: 800; background: #eff0f3; color: #999;
}
.member-area .mba-dash-obstep.done .num { background: rgba(22,163,74,.1); color: #16a34a; }
.member-area .mba-dash-obstep.now { background: rgba(37,99,235,.04); }
.member-area .mba-dash-obstep.now .num { background: #111; color: #fff; }
.member-area .mba-dash-obstep .tt { font-size: .88rem; font-weight: 700; }
.member-area .mba-dash-obstep.done .tt { color: #999; }
.member-area .mba-dash-obstep .ds { font-size: .76rem; color: #999; }
.member-area .mba-dash-obstep .go { margin-left: auto; align-self: center; font-size: .77rem; font-weight: 700; white-space: nowrap; }
.member-area .mba-dash-obfree { display: flex; align-items: center; gap: .9rem; padding: 1.125rem 1.5rem; margin-bottom: 0; }
.member-area .mba-dash-obfree .fi {
  width: 36px; height: 36px; border-radius: 10px; flex-shrink: 0;
  background: rgba(22,163,74,.1); color: #16a34a;
  display: flex; align-items: center; justify-content: center;
}
.member-area .mba-dash-obfree .tt { font-size: .86rem; font-weight: 700; }
.member-area .mba-dash-obfree .ds { font-size: .75rem; color: #999; }
.member-area .mba-dash-obfree .go { margin-left: auto; font-size: .77rem; font-weight: 700; white-space: nowrap; }

/* ── 거래내역(mba-tx-*) — 회원 하이브리드 (2026-08-20 Phase 2, 목업 5번) ── */
/* 자기완결 블록: 반응형 포함 이 구획만 지우면 원상복구. 레일/스탯 골격은 공통(mba-layout·mba-stats4) 재사용 */
.member-area .mba-tx-acct { padding: 1.15rem 1.25rem; margin-bottom: 1rem; }
.member-area .mba-tx-bank { display: flex; align-items: center; gap: .6rem; margin-bottom: .8rem; }
.member-area .mba-tx-bankcircle {
  width: 38px; height: 38px; border-radius: 50%; flex-shrink: 0;
  background: #0F172A; color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: .68rem; font-weight: 800; letter-spacing: .02em;
}
.member-area .mba-tx-bankcircle.has-logo {
  background: #fff; border: 1px solid #E5E7EB;
}
.member-area .mba-tx-bankcircle.has-logo img {
  width: 24px; height: 24px; object-fit: contain;
}
.member-area .mba-tx-bank .nm { font-size: .95rem; font-weight: 800; line-height: 1.3; }
.member-area .mba-tx-bank .tp { font-size: .73rem; color: #999; }
.member-area .mba-tx-no { font-size: .8rem; color: #777; margin-bottom: .75rem; }
.member-area .mba-tx-ballbl { font-size: .72rem; font-weight: 700; color: #999; }
.member-area .mba-tx-bal { font-size: 1.35rem; font-weight: 900; letter-spacing: -.02em; }
.member-area .mba-tx-bal .cur { font-size: .78rem; font-weight: 700; color: #999; }
.member-area .mba-tx-range { padding: 1rem 1.1rem; }
/* 스탯 4장 — 긴 금액의 min-content가 1fr을 밀어내는 그리드 블로우아웃 방지(minmax 0) + 값 폰트 축소 */
.member-area .mba-stats4.mba-tx-stats { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.member-area .mba-tx-stats .mba-stat .v { font-size: 1.2rem; white-space: nowrap; }
/* 세그 필터 — GET 링크 (활성 = 검정 필) */
.member-area .mba-tx-segs { display: flex; align-items: center; gap: .6rem; flex-wrap: wrap; margin: 1rem 0 .8rem; }
.member-area .mba-tx-seg {
  display: inline-flex; background: #fff; border: 1px solid #e5e5e5; border-radius: 50px; padding: 3px;
}
.member-area .mba-tx-seg a {
  font-size: .8rem; font-weight: 600; color: #777; padding: .32rem .9rem;
  border-radius: 50px; white-space: nowrap; transition: all .16s;
}
.member-area .mba-tx-seg a:hover { color: #111; }
.member-area .mba-tx-seg a.on { background: #111; color: #fff; }
/* 컨트롤 행 (2026-08-21): 기간 폼 → 기간 세그 = 왼쪽, 유형 세그 = 오른쪽.
   --mba-ctl-h 하나로 입력/버튼/세그 높이를 통일 — 새 컨트롤도 이 변수를 쓸 것 */
.member-area .mba-tx-segs { --mba-ctl-h: 34px; }
.member-area .mba-tx-segs .mba-tx-typeseg { margin-left: auto; }
.member-area .mba-tx-segs .mba-tx-seg { height: var(--mba-ctl-h); }
.member-area .mba-tx-segs .mba-tx-seg a {
  display: inline-flex; align-items: center;
  height: calc(var(--mba-ctl-h) - 8px); padding: 0 .9rem;
}
.member-area .mba-tx-segs .mba-daterange input[type="month"],
.member-area .mba-tx-segs .mba-daterange input[type="date"] {
  width: 132px; height: var(--mba-ctl-h); padding: 0 .55rem; border-radius: 50px;
}
.member-area .mba-tx-segs .mba-daterange { gap: .3rem; }
.member-area .mba-tx-segs .mba-daterange .btn {
  display: inline-flex; align-items: center;
  height: var(--mba-ctl-h); padding: 0 .95rem; font-size: .8rem;
}
/* 엑셀형 그리드 — 헤더·행 동일 템플릿 (scrape-jobs 문법) */
.member-area .mba-tx-head, .member-area .mba-tx-row {
  display: grid; grid-template-columns: 142px 68px minmax(0, 1fr) minmax(0, 1fr) 118px 118px; align-items: center;
}
.member-area .mba-tx-head { background: #fafbfc; border-bottom: 1px solid #eee; }
.member-area .mba-tx-head > span {
  font-size: .72rem; font-weight: 700; color: #999; letter-spacing: .04em;
  padding: .7rem .8rem; border-right: 1px solid #f0f0f0;
  display: flex; align-items: center;
}
.member-area .mba-tx-head > span:last-child { border-right: none; }
.member-area .mba-tx-row { border-bottom: 1px solid #f5f5f5; }
.member-area .mba-tx-row:last-child { border-bottom: none; }
.member-area .mba-tx-row > span {
  font-size: .84rem; padding: .64rem .8rem; border-right: 1px solid #f7f7f7;
  display: flex; align-items: center; min-width: 0; overflow: hidden; white-space: nowrap;
}
.member-area .mba-tx-row > span:last-child { border-right: none; }
.member-area .mba-tx-when { font-size: .78rem; color: #888; }
.member-area .mba-tx-memo, .member-area .mba-tx-party { text-overflow: ellipsis; }
.member-area .mba-tx-party { color: #888; }
.member-area .mba-tx-r { justify-content: flex-end; text-align: right; }
/* 컬럼 정렬 (2026-08-21): 헤더는 전부 가운데.
   값은 컬럼 성격대로 — 일시·구분은 가운데(고정 폭·배지), 내용·상대는 왼쪽(길이 가변 텍스트),
   금액·거래후잔액은 오른쪽(.mba-tx-r — 자릿수 비교). 셀이 flex라 정렬은 justify-content가 담당 */
.member-area .mba-tx-head > span { justify-content: center; text-align: center; }
.member-area .mba-tx-row > span.mba-tx-when,
.member-area .mba-tx-row > span.mba-tx-kind { justify-content: center; text-align: center; }
.member-area .mba-tx-in { color: #16a34a; font-weight: 700; }
.member-area .mba-tx-out { color: #dc2626; font-weight: 700; }
.member-area .mba-tx-empty { padding: 2.5rem; text-align: center; color: #aaa; font-size: .85rem; }
@media (max-width: 880px) {
  .member-area .mba-stats4.mba-tx-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  /* 4칸 축약: 상대·거래후잔액 숨김 — 행 셀 규칙은 span.클래스(0,3,1)로 기본 규칙(0,2,1)을 이김 (scrape-jobs §13 관례) */
  .member-area .mba-tx-head, .member-area .mba-tx-row { grid-template-columns: 74px 56px minmax(0, 1fr) 96px; }
  .member-area .mba-tx-head > span, .member-area .mba-tx-row > span { padding: .55rem .4rem; }
  .member-area .mba-tx-head > span:nth-child(4), .member-area .mba-tx-head > span:nth-child(6) { display: none; }
  .member-area .mba-tx-row > span.mba-tx-party,
  .member-area .mba-tx-row > span.mba-tx-balafter { display: none; }
  .member-area .mba-tx-row > span.mba-tx-when { font-size: .68rem; white-space: normal; line-height: 1.35; }
  /* scrape-jobs 통계 카드(총 호출·성공률·실패·평균)는 폰에서 세로로 쌓는다 (.mba-stats4 2열보다 우선) */
  .member-area .mba-stats4.mba-stats-stack { grid-template-columns: 1fr; }
}

/* ── 반응형 ── */
@media (max-width: 880px) {
  .member-area .mba-layout { grid-template-columns: 1fr; }
  .member-area .mba-pager-info { display: none; }
  .member-area .mba-stats4 { grid-template-columns: repeat(2, 1fr); }
  .member-area .mba-usage-top { grid-template-columns: 1fr; }
  .member-area .mba-usage-bottom { grid-template-columns: 1fr; }
  .member-area .mba-kpi3 { grid-template-columns: repeat(2, 1fr); }
  .member-area .mba-cr-ovgrid, .member-area .mba-cr-chargegrid, .member-area .mba-cr-cardsgrid { grid-template-columns: 1fr; }
  .member-area .mba-dash-work { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .member-area .mba-cr-strip { grid-template-columns: repeat(2, 1fr); }
  .member-area .mba-cr-cell:nth-child(2)::after { display: none; }
  .member-area .mba-cr-tabs { gap: 1.1rem; overflow-x: auto; }
  .member-area .mba-dash-kpis { grid-template-columns: repeat(2, 1fr); }
  .member-area .mba-dash-kpi:nth-child(2)::after { display: none; }
  .member-area .mba-dash-kpi:nth-child(-n+2) { border-bottom: 1px solid #f5f5f5; }
  .member-area .mba-dash-week-body .wv { display: none; }
}
@media (max-width: 640px) {
  /* 결과 행(end-users): 한 줄 강제 배치가 이름을 1글자 폭까지 짜부라뜨림 →
     1줄 = 이름/메타(전폭), 2줄 = 뱃지(좌) + 액션(우)로 감싸기 */
  .member-area .mba-row { flex-wrap: wrap; row-gap: .25rem; }
  .member-area .mba-row-main { min-width: 100%; }
  .member-area .mba-row-badges { justify-content: flex-start; }
  .member-area .mba-row-actions { margin-left: auto; }
  /* 스크래핑 이력 그리드 4칸 축약 — 행 셀 숨김은 기본 규칙(.mba-job-row > span, 명시도 0,2,1)을
     이기도록 span.클래스(0,3,1)로 선언 (낮으면 display:flex가 살아남아 헤더/행 칸수 불일치) */
  .member-area .mba-job-head, .member-area .mba-job-row { grid-template-columns: minmax(0, 1fr) 78px 96px 32px; }
  .member-area .mba-job-head > span, .member-area .mba-job-row > span { padding: .6rem .3rem; }
  .member-area .mba-job-row > span.mba-jr-user,
  .member-area .mba-job-row > span.mba-jr-ref,
  .member-area .mba-job-row > span.mba-jr-elapsed { display: none; }
  .member-area .mba-job-head > span:nth-child(2), .member-area .mba-job-head > span:nth-child(3) { display: none; }
  .member-area .mba-job-head > span:nth-child(6) { display: none; }
  .member-area .mba-jr-bank { font-size: .8rem; }
  .member-area .mba-kv-m { display: block; } /* 숨긴 이름/회원 ID/소요는 행 확장 상세에서 표시 */
  .member-area .mba-kpi3 { grid-template-columns: 1fr; }
  .member-area .mba-today-grid { grid-template-columns: 1fr; }
  .member-area .mba-cr-amts { grid-template-columns: repeat(2, 1fr); }
  .member-area .mba-cr-acform { grid-template-columns: 1fr; }
}

/* ── 모바일 추가 보정 (2026-09) ── */
/* 탭 라벨은 한 줄 유지 + 줄바꿈 금지 → 탭 높이/크기 균일 (카드·자동충전 등 긴 라벨 대응) */
.member-area .mba-cr-tab { white-space: nowrap; flex-shrink: 0; }
/* 날짜 셀 줄바꿈 금지 — 모바일에서 08-\n27 처럼 쪼개지는 것 방지 (넘치면 표가 가로 스크롤) */
.member-area .mba-cr-recent .row .d { white-space: nowrap; }
.member-area .mba-cr-table td:first-child,
.member-area .mba-cr-table th:first-child { white-space: nowrap; }

@media (max-width: 640px) {
  /* 대시보드 헤더: 모바일에서 회원명을 날짜 아래 줄로 (이름이 어절 중간에서 잘리던 문제) */
  .member-area .mba-dash-sub .sep { display: none; }
  .member-area .mba-dash-sub .owner { display: block; }
  /* my/usage 월별 요약: 월 선택 전폭 균등 분할 */
  .member-area .mba-sec-head .mba-chart-range { width: 100%; }
  .member-area .mba-chart-range input[type="month"],
  .member-area .mba-chart-range input[type="date"] { flex: 1; min-width: 0; }
  /* 기간 필터(크레딧·결제 내역·스크래핑 이력 등): 날짜 입력은 한 줄, 적용·초기화 버튼은 그 아랫줄 */
  .member-area .mba-daterange { width: 100%; }
  .member-area .mba-daterange input[type="date"],
  .member-area .mba-daterange input[type="month"] { flex: 1 1 calc(50% - 1.4rem); min-width: 0; }
  .member-area .mba-daterange .btn,
  .member-area .mba-daterange .mba-dr-reset { flex: 1 1 auto; justify-content: center; text-align: center; }
}

@media (max-width: 560px) {
  /* KPI/요약 스트립: 한 줄에 하나씩 — 긴 금액이 라벨을 짓눌러 깨지던 문제 해결 */
  .member-area .mba-dash-kpis { grid-template-columns: 1fr; }
  .member-area .mba-dash-kpi::after { display: none; }
  .member-area .mba-dash-kpi { border-bottom: 1px solid #f0f0f0; padding: 1rem 1.25rem; }
  .member-area .mba-dash-kpi:last-child { border-bottom: none; }

  .member-area .mba-cr-strip { grid-template-columns: 1fr; }
  .member-area .mba-cr-cell::after { display: none; }
  .member-area .mba-cr-cell { border-top: 1px solid #f0f0f0; }
  .member-area .mba-cr-cell:first-child { border-top: none; }

  /* 카드 등록 모달: 안내 멘트는 위로(전폭), 버튼은 아래 한 줄에 균등 배치 */
  .member-area .mba-modal-footer { flex-wrap: wrap; }
  .member-area .mba-modal-footer .mba-cr-foothint { order: -1; width: 100%; margin: 0 0 .625rem; text-align: center; }
  .member-area .mba-modal-footer .mba-cr-foothint ~ .btn { flex: 1; }

  /* 등록 카드 시각물: 화면 밖으로 넘치지 않게 축소 + 카드번호 한 줄 유지 */
  .member-area .mba-pcard { max-width: 300px; }
  .member-area .mba-pcard .pc-num { font-size: .82rem; letter-spacing: .08em; white-space: nowrap; }

  /* 모바일 축약: 라벨 숨기고 아이콘/기호만 노출 (예: end-users '+ 회원 추가' → '+') */
  .member-area .mba-hide-sm { display: none; }
}
/* ===== 서브퍼블 끝 ===== */
