/* ================================================================
   MY:D Credit Passport — Complete Design System
   Apple × Stripe × Linear inspired Premium Fintech UI
   ================================================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  /* ── Color Tokens ─────────────────────────────────────────── */
  --blue-primary:  #0A5BFF;
  --blue-light:    #4DA8FF;
  --blue-pale:     #E8F1FF;
  --blue-ultra:    #F0F6FF;
  --mint:          #48E3C2;
  --mint-light:    #DFFAF5;
  --purple:        #7C5CFC;
  --purple-light:  #EDE9FF;
  --orange:        #FF8C42;
  --orange-light:  #FFF0E6;
  --bg:            #F4F7FF;
  --surface:       #FFFFFF;
  --text-primary:  #1E293B;
  --text-secondary:#64748B;
  --text-muted:    #94A3B8;
  --border:        rgba(10, 91, 255, 0.08);
  --border-light:  rgba(0,0,0,0.06);
  --shadow-sm:     0 2px 8px rgba(10,91,255,0.06);
  --shadow-md:     0 4px 20px rgba(10,91,255,0.10);
  --shadow-lg:     0 8px 40px rgba(10,91,255,0.14);
  --shadow-card:   0 1px 3px rgba(0,0,0,0.04), 0 4px 16px rgba(10,91,255,0.08);

  /* ── Gradient ─────────────────────────────────────────────── */
  --grad-primary:  linear-gradient(135deg, #0A5BFF 0%, #46C7FF 100%);
  --grad-mint:     linear-gradient(135deg, #48E3C2 0%, #0AC8A0 100%);
  --grad-purple:   linear-gradient(135deg, #7C5CFC 0%, #C084FC 100%);
  --grad-orange:   linear-gradient(135deg, #FF8C42 0%, #FFB347 100%);
  --grad-hero:     linear-gradient(135deg, #0A5BFF 0%, #1E7FFF 40%, #46C7FF 100%);
  --grad-soft:     linear-gradient(135deg, #F0F6FF 0%, #E8F4FF 100%);

  /* ── Spacing ──────────────────────────────────────────────── */
  --space-xs:  4px;
  --space-sm:  8px;
  --space-md:  16px;
  --space-lg:  24px;
  --space-xl:  32px;
  --space-2xl: 48px;

  /* ── Radius ───────────────────────────────────────────────── */
  --radius-sm:  10px;
  --radius-md:  16px;
  --radius-lg:  20px;
  --radius-xl:  24px;
  --radius-2xl: 32px;
  --radius-pill: 999px;

  /* ── Sidebar ──────────────────────────────────────────────── */
  --sidebar-w: 248px;  /* sb-w 와 동기화 */
  --topbar-h:  68px;
}

html { font-size: 14px; }
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg);
  color: var(--text-primary);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
}

/* ================================================================
   LAYOUT SHELL
   ================================================================ */
.app-shell {
  display: flex;
  min-height: 100vh;
}

/* ── SIDEBAR ──────────────────────────────────────────────────── */
.sidebar {
  position: fixed;
  top: 0; left: 0;
  width: var(--sidebar-w);
  height: 100vh;
  background: var(--surface);
  border-right: 1px solid var(--border-light);
  display: flex;
  flex-direction: column;
  z-index: 100;
  overflow-y: auto;
  scrollbar-width: none;
  flex-shrink: 0;
}
.sidebar::-webkit-scrollbar { display: none; }

.sidebar-brand {
  padding: 28px 20px 20px;
  border-bottom: 1px solid var(--border-light);
}
.sidebar-brand .brand-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 6px;
}
.brand-icon {
  width: 36px; height: 36px;
  background: var(--grad-primary);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-weight: 900; font-size: 13px; color: #fff;
  letter-spacing: -0.5px;
}
.brand-name {
  font-size: 18px; font-weight: 800;
  color: var(--text-primary); letter-spacing: -0.5px;
}
.brand-name span { color: var(--blue-primary); }
.brand-sub {
  font-size: 10px; color: var(--text-muted);
  font-weight: 500; letter-spacing: 0.2px;
  padding-left: 46px; margin-top: -2px;
}

.sidebar-nav { flex: 1; padding: 12px 12px; }
.nav-section-label {
  font-size: 10px; font-weight: 600;
  color: var(--text-muted);
  letter-spacing: 0.8px; text-transform: uppercase;
  padding: 12px 10px 6px;
}
.nav-item {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 12px;
  border-radius: var(--radius-md);
  color: var(--text-secondary);
  font-size: 13.5px; font-weight: 500;
  text-decoration: none;
  transition: all 0.18s ease;
  cursor: pointer;
  margin-bottom: 2px;
  position: relative;
}
.nav-item:hover {
  background: var(--blue-ultra);
  color: var(--blue-primary);
}
.nav-item.active {
  background: var(--blue-pale);
  color: var(--blue-primary);
  font-weight: 600;
}
.nav-item.active::before {
  content: '';
  position: absolute; left: 0; top: 50%;
  transform: translateY(-50%);
  width: 3px; height: 20px;
  background: var(--blue-primary);
  border-radius: 0 3px 3px 0;
}
.nav-icon {
  width: 32px; height: 32px;
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-size: 15px;
  background: transparent;
  transition: all 0.18s;
  flex-shrink: 0;
}
.nav-item.active .nav-icon {
  background: var(--blue-primary);
  color: #fff;
}
.nav-item:hover .nav-icon { background: var(--blue-pale); }
.nav-badge {
  margin-left: auto;
  background: var(--blue-primary);
  color: #fff; font-size: 10px; font-weight: 700;
  padding: 2px 7px; border-radius: var(--radius-pill);
  min-width: 20px; text-align: center;
}
.nav-badge.green { background: var(--mint); color: var(--text-primary); }

.nav-item-sub {
  padding-left: 52px !important;
  font-size: 12.5px;
  color: var(--text-muted);
}
.nav-item-sub.active { color: var(--blue-primary); font-weight: 600; }

.sidebar-bottom {
  padding: 12px;
  border-top: 1px solid var(--border-light);
}
.nav-item-admin {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 12px; margin-bottom: 8px;
  border-radius: var(--radius);
  font-size: 12px; font-weight: 600;
  color: var(--text-muted);
  text-decoration: none;
  border: 1px dashed var(--border);
  transition: all .18s;
}
.nav-item-admin i { font-size: 13px; color: #8A94A6; }
.nav-item-admin:hover {
  background: rgba(99,102,241,.07);
  color: #6366f1; border-color: #6366f1;
}
.nav-item-admin:hover i { color: #6366f1; }
.nav-item-admin.active {
  background: rgba(99,102,241,.12);
  color: #6366f1; border-color: #6366f1;
}
.nav-item-admin.active i { color: #6366f1; }
.sidebar-app-promo {
  background: linear-gradient(135deg, #EBF3FF, #F0FAFF);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 14px;
}
.sidebar-app-promo p {
  font-size: 11px; font-weight: 600;
  color: var(--blue-primary); margin-bottom: 4px;
}
.sidebar-app-promo small {
  font-size: 10px; color: var(--text-muted);
  display: block; margin-bottom: 10px;
}
.app-store-btns { display: flex; gap: 6px; }
.app-store-btn {
  flex: 1; background: var(--text-primary); color: #fff;
  border-radius: 7px; padding: 6px 8px;
  font-size: 9px; font-weight: 600;
  display: flex; align-items: center; gap: 4px;
  text-decoration: none; justify-content: center;
}
.app-store-btn i { font-size: 11px; }

/* ── MAIN AREA ────────────────────────────────────────────────── */
.main-area {
  margin-left: var(--sb-w, 248px);
  width: calc(100% - var(--sb-w, 248px));
  transition: margin-left 0.22s cubic-bezier(.4,0,.2,1), width 0.22s cubic-bezier(.4,0,.2,1);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow-x: hidden;
}

/* ── TOPBAR ───────────────────────────────────────────────────── */
.topbar {
  height: var(--topbar-h);
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  padding: 0 28px;
  gap: 16px;
  position: sticky; top: 0; z-index: 90;
}
.topbar-greeting { flex: 1; }
.topbar-greeting h1 {
  font-size: 20px; font-weight: 700;
  color: var(--text-primary); letter-spacing: -0.4px;
}
.topbar-greeting p { font-size: 12px; color: var(--text-muted); margin-top: 1px; }

.topbar-actions {
  display: flex; align-items: center; gap: 10px;
}
.topbar-icon-btn {
  width: 38px; height: 38px;
  border-radius: var(--radius-md);
  background: var(--bg);
  border: 1px solid var(--border-light);
  display: flex; align-items: center; justify-content: center;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.18s;
  position: relative;
  text-decoration: none;
  font-size: 15px;
}
.topbar-icon-btn:hover { background: var(--blue-pale); color: var(--blue-primary); }
.notif-dot {
  position: absolute; top: 6px; right: 6px;
  width: 8px; height: 8px;
  background: #FF4D4F;
  border-radius: 50%;
  border: 2px solid var(--surface);
}

.lang-selector {
  display: flex; align-items: center; gap: 6px;
  padding: 7px 12px;
  background: var(--bg); border: 1px solid var(--border-light);
  border-radius: var(--radius-pill);
  font-size: 12px; font-weight: 500; color: var(--text-secondary);
  cursor: pointer;
}
.lang-selector i { font-size: 11px; }

.topbar-profile {
  display: flex; align-items: center; gap: 9px;
  padding: 6px 12px 6px 6px;
  background: var(--bg); border: 1px solid var(--border-light);
  border-radius: var(--radius-pill); cursor: pointer;
  transition: all 0.18s;
  text-decoration: none;
}
.topbar-profile:hover { border-color: var(--blue-primary); background: var(--blue-ultra); }
.profile-avatar {
  width: 32px; height: 32px; border-radius: 50%;
  background: var(--grad-primary);
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 700; color: #fff;
}
.profile-name { font-size: 13px; font-weight: 600; color: var(--text-primary); }
.verified-badge {
  display: inline-flex; align-items: center; gap: 4px;
  background: linear-gradient(135deg, #0A5BFF, #46C7FF);
  color: #fff; font-size: 10px; font-weight: 700;
  padding: 2px 8px; border-radius: var(--radius-pill);
}
.verified-badge i { font-size: 9px; }

.myd-id-btn {
  display: flex; align-items: center; gap: 7px;
  padding: 9px 16px;
  background: var(--surface);
  border: 1.5px solid var(--blue-primary);
  border-radius: var(--radius-pill);
  color: var(--blue-primary); font-size: 12px; font-weight: 600;
  cursor: pointer; text-decoration: none;
  transition: all 0.18s;
}
.myd-id-btn:hover { background: var(--blue-primary); color: #fff; }

/* ── CONTENT ─────────────────────────────────────────────────── */
.page-content {
  flex: 1;
  padding: 24px 28px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* ================================================================
   CARDS — Base
   ================================================================ */
.card {
  background: var(--surface);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-card);
  border: 1px solid rgba(255,255,255,0.8);
  transition: box-shadow 0.2s, transform 0.2s;
}
.card:hover { box-shadow: var(--shadow-md); }
.card-p { padding: var(--space-lg); }
.card-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 16px;
}
.card-title {
  font-size: 14px; font-weight: 700;
  color: var(--text-primary); letter-spacing: -0.2px;
}
.card-title-sm { font-size: 13px; font-weight: 600; color: var(--text-primary); }
.card-link {
  font-size: 12px; font-weight: 600; color: var(--blue-primary);
  text-decoration: none; display: flex; align-items: center; gap: 4px;
}
.card-link:hover { opacity: 0.8; }

/* ================================================================
   HERO SCORE CARD
   ================================================================ */
.hero-card {
  background: var(--grad-hero);
  border-radius: var(--radius-2xl);
  padding: 28px 32px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 8px 40px rgba(10,91,255,0.30);
  color: #fff;
}
.hero-card::before {
  content: '';
  position: absolute; inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='400' height='200' xmlns='http://www.w3.org/2000/svg'%3E%3Ccircle cx='340' cy='60' r='120' fill='rgba(255,255,255,0.04)'/%3E%3Ccircle cx='380' cy='160' r='80' fill='rgba(255,255,255,0.03)'/%3E%3Ccircle cx='50' cy='180' r='90' fill='rgba(255,255,255,0.02)'/%3E%3C/svg%3E") no-repeat center/cover;
  pointer-events: none;
}
.hero-grid {
  display: grid; grid-template-columns: 1fr auto;
  align-items: center; gap: 24px; position: relative; z-index: 1;
}
.hero-left {}
.hero-label {
  font-size: 12px; font-weight: 600;
  color: rgba(255,255,255,0.7);
  display: flex; align-items: center; gap: 6px;
  margin-bottom: 8px;
}
.hero-label i { font-size: 11px; }
.hero-score-row {
  display: flex; align-items: baseline; gap: 6px;
  margin-bottom: 6px;
}
.hero-score {
  font-size: 68px; font-weight: 900;
  letter-spacing: -3px; line-height: 1;
  color: #fff;
}
.hero-score-max {
  font-size: 22px; font-weight: 600;
  color: rgba(255,255,255,0.6);
}
.hero-grade {
  display: flex; align-items: center; gap: 8px;
  margin-bottom: 14px;
}
.hero-grade-text {
  font-size: 18px; font-weight: 700; color: #fff;
}
.hero-grade-emoji { font-size: 20px; }
.did-badge {
  display: inline-flex; align-items: center; gap: 5px;
  background: rgba(255,255,255,0.18);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.3);
  border-radius: var(--radius-pill);
  padding: 4px 12px;
  font-size: 11px; font-weight: 600; color: #fff;
}
.did-badge i { color: #48E3C2; }

.hero-rank-bar {
  margin-top: 20px;
  background: rgba(255,255,255,0.12);
  border-radius: var(--radius-md);
  padding: 12px 16px;
  display: flex; align-items: center; gap: 12px;
  cursor: pointer;
  transition: background 0.2s;
}
.hero-rank-bar:hover { background: rgba(255,255,255,0.18); }
.rank-icon {
  width: 36px; height: 36px; border-radius: 10px;
  background: rgba(255,255,255,0.2);
  display: flex; align-items: center; justify-content: center;
  font-size: 16px;
}
.rank-text { flex: 1; }
.rank-title { font-size: 13px; font-weight: 700; color: #fff; }
.rank-sub { font-size: 11px; color: rgba(255,255,255,0.65); margin-top: 1px; }
.rank-arrow { color: rgba(255,255,255,0.5); font-size: 12px; }

/* Score Gauge */
.hero-gauge-wrap {
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  position: relative; z-index: 1;
}
.score-gauge {
  position: relative; width: 180px; height: 180px;
}
.gauge-svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.gauge-bg { fill: none; stroke: rgba(255,255,255,0.15); }
.gauge-fill {
  fill: none;
  stroke: url(#gaugeGrad);
  stroke-linecap: round;
  transition: stroke-dashoffset 1.5s cubic-bezier(0.4,0,0.2,1);
}
.gauge-center-text {
  position: absolute; inset: 0;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
}
.gauge-center-icon {
  width: 52px; height: 52px;
  background: rgba(255,255,255,0.15);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 24px; color: #fff;
  margin-bottom: 4px;
}
.gauge-sub-text {
  font-size: 11px; font-weight: 500;
  color: rgba(255,255,255,0.7);
  text-align: center; max-width: 120px;
  line-height: 1.4;
  margin-top: 8px;
}

/* ================================================================
   STAT CARDS (Loan, Rewards, Wallet)
   ================================================================ */
.stat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.stat-card {
  background: var(--surface);
  border-radius: var(--radius-xl);
  padding: 22px 22px 18px;
  box-shadow: var(--shadow-card);
  border: 1px solid rgba(255,255,255,0.8);
  position: relative; overflow: hidden;
  transition: all 0.22s;
}
.stat-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }

.stat-card-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 14px;
}
.stat-card-label {
  font-size: 12px; font-weight: 600;
  color: var(--text-secondary);
  display: flex; align-items: center; gap: 5px;
}
.stat-card-label i { font-size: 11px; color: var(--text-muted); }
.stat-3d-img {
  width: 60px; height: 60px;
  object-fit: contain; display: block;
}
.stat-3d-icon {
  width: 56px; height: 56px;
  border-radius: 16px;
  display: flex; align-items: center; justify-content: center;
  font-size: 26px;
}
.stat-value {
  font-size: 26px; font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -1px; line-height: 1;
  margin-bottom: 4px;
}
.stat-value-lg {
  font-size: 22px; font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -0.8px;
}
.stat-sub {
  font-size: 11px; color: var(--text-muted);
  margin-bottom: 14px;
}
.stat-btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 9px 18px;
  border-radius: var(--radius-pill);
  font-size: 12px; font-weight: 600;
  text-decoration: none; cursor: pointer;
  transition: all 0.18s;
  border: none;
}
.stat-btn-primary {
  background: var(--blue-primary);
  color: #fff;
  box-shadow: 0 4px 14px rgba(10,91,255,0.3);
}
.stat-btn-primary:hover {
  background: #0952E8;
  box-shadow: 0 6px 20px rgba(10,91,255,0.4);
  transform: translateY(-1px);
}
.stat-btn-outline {
  background: transparent;
  border: 1.5px solid var(--blue-primary);
  color: var(--blue-primary);
}
.stat-btn-outline:hover { background: var(--blue-pale); }
.stat-btn-mint {
  background: transparent;
  border: 1.5px solid var(--mint);
  color: #0AC8A0;
}
.stat-btn-mint:hover { background: var(--mint-light); }

.stat-card-bg-deco {
  position: absolute; right: -10px; bottom: -10px;
  width: 80px; height: 80px;
  border-radius: 50%;
  opacity: 0.06;
}

/* Loan Card Blue */
.stat-card-blue {
  background: linear-gradient(135deg, #EBF3FF 0%, #F0FAFF 100%);
  border-color: rgba(10,91,255,0.1);
}
/* Rewards Card Mint */
.stat-card-mint {
  background: linear-gradient(135deg, #E8FBF7 0%, #F0FDF9 100%);
  border-color: rgba(72,227,194,0.15);
}
/* Wallet Card Purple */
.stat-card-purple {
  background: linear-gradient(135deg, #F0EBFF 0%, #F8F5FF 100%);
  border-color: rgba(124,92,252,0.12);
}

.wallet-btn-row { display: flex; gap: 8px; }
.wallet-btn-sm {
  flex: 1; padding: 8px 12px;
  border-radius: var(--radius-md);
  font-size: 12px; font-weight: 600;
  border: none; cursor: pointer; text-align: center;
  transition: all 0.18s;
}
.wallet-btn-sm.blue {
  background: var(--blue-primary); color: #fff;
}
.wallet-btn-sm.blue:hover { background: #0952E8; }
.wallet-btn-sm.outline {
  background: transparent;
  border: 1.5px solid var(--border-light);
  color: var(--text-secondary);
}
.wallet-btn-sm.outline:hover { border-color: var(--blue-primary); color: var(--blue-primary); }

/* MYD Balance row */
.myd-balance { font-size: 11px; color: var(--text-muted); margin-bottom: 2px; }
.myd-krw { font-size: 11px; color: var(--text-muted); margin-top: 2px; margin-bottom: 12px; }

/* ================================================================
   CONNECTED DATA SOURCES
   ================================================================ */
.data-sources-card { grid-column: span 1; }
.data-source-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}
.data-source-item {
  display: flex; flex-direction: column; align-items: center;
  gap: 5px; padding: 10px 6px; border-radius: var(--radius-md);
  background: var(--bg);
  transition: all 0.18s; cursor: pointer;
}
.data-source-item:hover { background: var(--blue-ultra); }
.data-source-icon {
  width: 36px; height: 36px; border-radius: 10px;
  background: var(--surface);
  display: flex; align-items: center; justify-content: center;
  font-size: 18px;
  box-shadow: var(--shadow-sm);
  position: relative;
}
.data-check {
  position: absolute; top: -3px; right: -3px;
  width: 14px; height: 14px; border-radius: 50%;
  background: #10B981; color: #fff;
  font-size: 7px;
  display: flex; align-items: center; justify-content: center;
  border: 2px solid var(--surface);
}
.data-source-name {
  font-size: 10px; font-weight: 500;
  color: var(--text-secondary); text-align: center;
}
.data-progress-row {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--border-light);
}
.data-progress-header {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 6px;
}
.data-progress-label { font-size: 12px; color: var(--text-secondary); font-weight: 500; }
.data-progress-pct { font-size: 14px; font-weight: 800; color: var(--blue-primary); }
.data-progress-bar {
  height: 7px; background: var(--blue-pale);
  border-radius: var(--radius-pill); overflow: hidden;
  margin-bottom: 8px;
}
.data-progress-fill {
  height: 100%; border-radius: var(--radius-pill);
  background: var(--grad-primary);
  transition: width 1.2s ease;
}
.data-progress-hint {
  font-size: 10.5px; color: var(--text-muted);
  line-height: 1.4;
}
.data-manage-btn {
  display: block; width: 100%; text-align: center;
  margin-top: 10px; padding: 9px;
  background: var(--blue-pale); color: var(--blue-primary);
  border-radius: var(--radius-md); font-size: 12px; font-weight: 600;
  text-decoration: none; transition: all 0.18s;
  border: none; cursor: pointer;
}
.data-manage-btn:hover { background: var(--blue-primary); color: #fff; }

/* ================================================================
   QUICK MENU
   ================================================================ */
.quick-menu-card { }
.quick-menu-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 10px;
}
.quick-menu-item {
  display: flex; flex-direction: column;
  align-items: center; gap: 8px;
  padding: 14px 8px; border-radius: var(--radius-lg);
  background: var(--bg);
  cursor: pointer; text-decoration: none;
  transition: all 0.2s;
}
.quick-menu-item:hover { background: var(--blue-ultra); transform: translateY(-2px); }
.quick-icon {
  width: 44px; height: 44px; border-radius: 13px;
  display: flex; align-items: center; justify-content: center;
  font-size: 20px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}
.quick-icon.blue   { background: linear-gradient(135deg,#0A5BFF,#46C7FF); color:#fff; }
.quick-icon.mint   { background: linear-gradient(135deg,#48E3C2,#0AC8A0); color:#fff; }
.quick-icon.purple { background: linear-gradient(135deg,#7C5CFC,#C084FC); color:#fff; }
.quick-icon.orange { background: linear-gradient(135deg,#FF8C42,#FFB347); color:#fff; }
.quick-icon.rose   { background: linear-gradient(135deg,#F43F5E,#FB7185); color:#fff; }
.quick-icon.teal   { background: linear-gradient(135deg,#14B8A6,#2DD4BF); color:#fff; }
.quick-menu-label  { font-size: 11.5px; font-weight: 600; color: var(--text-secondary); text-align: center; }
.quick-menu-sub    { font-size: 10px; color: var(--text-muted); text-align: center; margin-top: -4px; }

/* ================================================================
   DID BANNER
   ================================================================ */
.did-banner {
  background: linear-gradient(135deg, #F0F6FF 0%, #E8F4FF 60%, #F5F0FF 100%);
  border: 1px solid rgba(10,91,255,0.1);
  border-radius: var(--radius-xl);
  padding: 22px 28px;
  display: flex; align-items: center; gap: 24px;
  position: relative; overflow: hidden;
}
.did-banner::before {
  content: '';
  position: absolute; right: -30px; top: -30px;
  width: 200px; height: 200px; border-radius: 50%;
  background: radial-gradient(circle, rgba(10,91,255,0.06), transparent 70%);
}
.did-banner-icon {
  width: 56px; height: 56px; flex-shrink: 0;
  background: var(--grad-primary);
  border-radius: 18px;
  display: flex; align-items: center; justify-content: center;
  font-size: 26px; color: #fff;
  box-shadow: 0 6px 20px rgba(10,91,255,0.25);
}
.did-banner-text { flex: 1; }
.did-banner-text h3 {
  font-size: 15px; font-weight: 700; color: var(--text-primary);
  margin-bottom: 4px;
}
.did-banner-text p { font-size: 12px; color: var(--text-secondary); line-height: 1.5; }
.did-banner-right { display: flex; align-items: center; gap: 32px; flex-shrink: 0; }
.did-id-graphic {
  width: 140px; opacity: 0.9;
}
.did-btn {
  padding: 10px 20px;
  background: var(--blue-primary); color: #fff;
  border-radius: var(--radius-pill);
  font-size: 12.5px; font-weight: 700;
  text-decoration: none; white-space: nowrap;
  box-shadow: 0 4px 14px rgba(10,91,255,0.3);
  transition: all 0.18s; display: flex; align-items: center; gap: 6px;
}
.did-btn:hover {
  background: #0952E8;
  box-shadow: 0 6px 20px rgba(10,91,255,0.4);
  transform: translateY(-1px);
}

/* ================================================================
   MAIN CONTENT GRID
   ================================================================ */
.content-grid {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 20px;
}
.content-main { display: flex; flex-direction: column; gap: 20px; }
.content-side { display: flex; flex-direction: column; gap: 16px; }

/* ================================================================
   CREDIT GROWTH CHART CARD
   ================================================================ */
.chart-filter-row {
  display: flex; gap: 6px;
}
.chart-filter-btn {
  padding: 5px 12px;
  border-radius: var(--radius-pill);
  font-size: 11px; font-weight: 600;
  border: none; cursor: pointer;
  transition: all 0.15s;
  background: var(--bg); color: var(--text-muted);
}
.chart-filter-btn.active { background: var(--blue-primary); color: #fff; }
.chart-filter-btn:hover:not(.active) { background: var(--blue-pale); color: var(--blue-primary); }

/* ================================================================
   AI INSIGHT CARD
   ================================================================ */
.insight-item {
  display: flex; align-items: flex-start; gap: 10px;
  padding: 12px; border-radius: var(--radius-md);
  background: var(--bg); margin-bottom: 8px;
  cursor: pointer; transition: all 0.18s;
  text-decoration: none;
}
.insight-item:hover { background: var(--blue-ultra); }
.insight-icon {
  width: 32px; height: 32px; border-radius: 9px;
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; flex-shrink: 0;
}
.insight-text {}
.insight-title { font-size: 12.5px; font-weight: 600; color: var(--text-primary); }
.insight-sub { font-size: 11px; color: var(--text-muted); margin-top: 2px; }
.insight-badge {
  margin-left: auto; flex-shrink: 0;
  font-size: 10px; font-weight: 700;
  padding: 2px 8px; border-radius: var(--radius-pill);
}
.badge-up   { background:#DCFCE7; color:#15803D; }
.badge-warn { background:#FEF3C7; color:#D97706; }
.badge-info { background:#EFF6FF; color:#1D4ED8; }
.badge-new  { background:var(--purple-light); color:var(--purple); }

/* ================================================================
   SCORE BREAKDOWN (sidebar mini cards)
   ================================================================ */
.score-factor-item {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border-light);
}
.score-factor-item:last-child { border-bottom: none; }
.factor-icon {
  width: 32px; height: 32px; border-radius: 9px;
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; flex-shrink: 0;
}
.factor-info { flex: 1; }
.factor-name { font-size: 12px; font-weight: 600; color: var(--text-primary); }
.factor-bar {
  height: 4px; background: var(--bg); border-radius: var(--radius-pill);
  margin-top: 4px; overflow: hidden;
}
.factor-bar-fill {
  height: 100%; border-radius: var(--radius-pill);
  transition: width 1.3s ease;
}
.factor-score { font-size: 13px; font-weight: 700; color: var(--text-primary); }

/* ================================================================
   LOAN TABLE / LIST
   ================================================================ */
.loan-table { width: 100%; border-collapse: collapse; }
.loan-table th {
  padding: 10px 12px; text-align: left;
  font-size: 11px; font-weight: 600; color: var(--text-muted);
  text-transform: uppercase; letter-spacing: 0.5px;
  border-bottom: 1px solid var(--border-light);
}
.loan-table td {
  padding: 14px 12px;
  font-size: 13px; color: var(--text-primary);
  border-bottom: 1px solid var(--border-light);
}
.loan-table tr:last-child td { border-bottom: none; }
.loan-table tr:hover td { background: var(--bg); }

.status-pill {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 3px 10px; border-radius: var(--radius-pill);
  font-size: 11px; font-weight: 600;
}
.status-active  { background:#DCFCE7; color:#15803D; }
.status-pending { background:#FEF3C7; color:#D97706; }
.status-done    { background:#F1F5F9; color:#475569; }

/* ================================================================
   DATA CONNECTION PAGE
   ================================================================ */
.data-category-card {
  border-radius: var(--radius-xl);
  padding: var(--space-lg);
  background: var(--surface);
  box-shadow: var(--shadow-card);
}
.data-category-title {
  font-size: 13px; font-weight: 700; color: var(--text-primary);
  margin-bottom: 14px; display: flex; align-items: center; gap: 8px;
}
.data-item-row {
  display: flex; align-items: center; gap: 12px;
  padding: 11px 14px; border-radius: var(--radius-md);
  background: var(--bg); margin-bottom: 8px;
  cursor: pointer; transition: all 0.18s;
}
.data-item-row:last-child { margin-bottom: 0; }
.data-item-row:hover { background: var(--blue-ultra); }
.data-item-icon {
  width: 38px; height: 38px; border-radius: 11px;
  background: var(--surface); box-shadow: var(--shadow-sm);
  display: flex; align-items: center; justify-content: center;
  font-size: 19px;
}
.data-item-info { flex: 1; }
.data-item-name { font-size: 13px; font-weight: 600; color: var(--text-primary); }
.data-item-sub  { font-size: 11px; color: var(--text-muted); margin-top: 1px; }
.data-connect-btn {
  padding: 6px 14px; border-radius: var(--radius-pill);
  font-size: 11px; font-weight: 600; border: none; cursor: pointer;
  transition: all 0.18s;
}
.data-connect-btn.connected {
  background: #DCFCE7; color: #15803D;
}
.data-connect-btn.connect {
  background: var(--blue-primary); color: #fff;
}
.data-connect-btn.connect:hover { background: #0952E8; }

/* ================================================================
   MY:D ID PAGE
   ================================================================ */
.myid-passport-card {
  background: var(--grad-hero);
  border-radius: var(--radius-2xl);
  padding: 32px;
  color: #fff;
  box-shadow: 0 10px 50px rgba(10,91,255,0.3);
  position: relative; overflow: hidden;
}
.myid-passport-card::before {
  content: '';
  position: absolute; right: -40px; top: -40px;
  width: 250px; height: 250px;
  border-radius: 50%;
  background: rgba(255,255,255,0.04);
}
.passport-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 24px;
}
.passport-logo {
  font-size: 24px; font-weight: 900; letter-spacing: -1px;
}
.passport-logo span { color: rgba(255,255,255,0.7); }
.passport-type {
  font-size: 11px; letter-spacing: 2px; text-transform: uppercase;
  color: rgba(255,255,255,0.6); font-weight: 600;
}
.passport-qr {
  width: 70px; height: 70px;
  background: rgba(255,255,255,0.9);
  border-radius: 12px; padding: 6px;
}
.passport-did-code {
  font-size: 11px; font-family: 'Courier New', monospace;
  color: rgba(255,255,255,0.6); margin-bottom: 16px;
  letter-spacing: 0.5px;
}
.passport-owner-name {
  font-size: 28px; font-weight: 800; letter-spacing: -0.5px;
  margin-bottom: 4px;
}
.passport-meta {
  display: flex; gap: 20px; margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid rgba(255,255,255,0.15);
}
.passport-meta-item {}
.passport-meta-label {
  font-size: 10px; color: rgba(255,255,255,0.5);
  font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px;
}
.passport-meta-value {
  font-size: 14px; font-weight: 700; color: #fff; margin-top: 2px;
}
.passport-chip {
  position: absolute; bottom: 28px; right: 28px;
  width: 50px; height: 38px;
  background: linear-gradient(135deg, rgba(255,255,255,0.25), rgba(255,255,255,0.1));
  border-radius: 7px;
  border: 1px solid rgba(255,255,255,0.2);
}

/* ================================================================
   REPAYMENT TIMELINE
   ================================================================ */
.repay-item {
  display: flex; align-items: center; gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid var(--border-light);
}
.repay-item:last-child { border-bottom: none; }
.repay-date {
  width: 46px; text-align: center; flex-shrink: 0;
}
.repay-month { font-size: 10px; color: var(--text-muted); font-weight: 600; text-transform: uppercase; }
.repay-day   { font-size: 20px; font-weight: 800; color: var(--text-primary); line-height: 1; }
.repay-info  { flex: 1; }
.repay-lender { font-size: 13px; font-weight: 600; color: var(--text-primary); }
.repay-type   { font-size: 11px; color: var(--text-muted); margin-top: 1px; }
.repay-amount { font-size: 14px; font-weight: 700; color: var(--text-primary); text-align: right; }
.repay-amount.done { color: var(--text-muted); text-decoration: line-through; }

/* ================================================================
   TOOLTIPS & MISC
   ================================================================ */
.help-icon {
  width: 16px; height: 16px; border-radius: 50%;
  background: var(--bg); color: var(--text-muted);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 9px; cursor: help;
  border: 1px solid var(--border-light);
  font-weight: 700;
}

.tag {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 3px 10px; border-radius: var(--radius-pill);
  font-size: 11px; font-weight: 600;
}
.tag-blue   { background: var(--blue-pale); color: var(--blue-primary); }
.tag-mint   { background: var(--mint-light); color: #0AC8A0; }
.tag-purple { background: var(--purple-light); color: var(--purple); }
.tag-orange { background: var(--orange-light); color: var(--orange); }
.tag-green  { background: #DCFCE7; color: #15803D; }

.divider { height: 1px; background: var(--border-light); margin: 8px 0; }

/* ================================================================
   SKELETON LOADING
   ================================================================ */
@keyframes shimmer {
  0% { background-position: -400px 0; }
  100% { background-position: 400px 0; }
}
.skeleton {
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 400px 100%;
  animation: shimmer 1.4s infinite;
  border-radius: 6px;
}

/* ================================================================
   RESPONSIVE
   ================================================================ */
@media (max-width: 1200px) {
  :root { --sidebar-w: 220px; --sb-w: 220px; }
  .stat-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 900px) {
  :root { --sidebar-w: 0px; --sb-w: 0px; }
  .sidebar { transform: translateX(-248px); }
  .sidebar.open { transform: translateX(0); }
  .main-area { margin-left: 0 !important; width: 100% !important; }
  .content-grid { grid-template-columns: 1fr; }
  .stat-grid { grid-template-columns: 1fr; }
  .quick-menu-grid { grid-template-columns: repeat(3, 1fr); }
}

/* ================================================================
   SCROLLBAR
   ================================================================ */
::-webkit-scrollbar { width: 5px; height: 5px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(10,91,255,0.15); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: rgba(10,91,255,0.3); }

/* ================================================================
   ANIMATIONS
   ================================================================ */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}
.fade-up { animation: fadeUp 0.4s ease forwards; }
.fade-up-1 { animation-delay: 0.05s; opacity: 0; }
.fade-up-2 { animation-delay: 0.10s; opacity: 0; }
.fade-up-3 { animation-delay: 0.15s; opacity: 0; }
.fade-up-4 { animation-delay: 0.20s; opacity: 0; }
.fade-up-5 { animation-delay: 0.25s; opacity: 0; }

@keyframes countUp {
  from { opacity: 0; transform: scale(0.85); }
  to   { opacity: 1; transform: scale(1); }
}
.count-up { animation: countUp 0.6s cubic-bezier(0.34,1.56,0.64,1) forwards; }

/* ================================================================
   HOME PAGE — 전용 스타일
   ================================================================ */

/* ── 상단 그리드: 히어로 + 사이드 컬럼 ── */
.home-top-grid {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 20px;
  align-items: start;
}
.home-side-col {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* ── 히어로 우측 컬럼 ── */
.hero-right-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  position: relative; z-index: 1;
}
.hero-mini-chart-wrap {
  background: rgba(255,255,255,0.12);
  border-radius: 14px;
  padding: 12px 14px;
  width: 190px;
}

/* ── 점수 요소 바 ── */
.hero-score-factors { }
.score-factor-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 7px;
}
.sf-label {
  font-size: 10px;
  color: rgba(255,255,255,0.7);
  font-weight: 500;
  width: 60px;
  flex-shrink: 0;
}
.sf-bar-track {
  flex: 1;
  height: 5px;
  background: rgba(255,255,255,0.15);
  border-radius: 99px;
  overflow: hidden;
}
.sf-bar-fill {
  height: 100%;
  width: 0%;
  border-radius: 99px;
  transition: width 1.4s cubic-bezier(0.4,0,0.2,1);
}
.sf-val {
  font-size: 10px;
  font-weight: 700;
  color: rgba(255,255,255,0.9);
  width: 22px;
  text-align: right;
}

/* ── 하단 그리드: 빠른메뉴 + 팁 ── */
.home-bottom-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

/* ── 활동 피드 ── */
.live-dot {
  display: inline-block;
  width: 7px; height: 7px;
  background: #10B981;
  border-radius: 50%;
  margin-right: 4px;
  animation: livePulse 1.8s ease-in-out infinite;
}
@keyframes livePulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.5; transform: scale(0.7); }
}
.activity-feed {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.activity-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 10px;
  background: var(--bg);
  transition: all 0.35s cubic-bezier(0.4,0,0.2,1);
  animation: feedSlideIn 0.35s ease forwards;
}
.activity-item.activity-new {
  opacity: 0;
  transform: translateY(-8px);
}
@keyframes feedSlideIn {
  from { opacity: 0; transform: translateY(-8px); }
  to   { opacity: 1; transform: translateY(0); }
}
.act-icon {
  width: 30px; height: 30px;
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-size: 12px;
  flex-shrink: 0;
}
.act-icon.blue   { background: var(--blue-pale);   color: var(--blue-primary); }
.act-icon.mint   { background: var(--mint-light);  color: #0AC8A0; }
.act-icon.teal   { background: #E0FAF7;            color: #14B8A6; }
.act-icon.purple { background: var(--purple-light);color: var(--purple); }
.act-icon.orange { background: var(--orange-light);color: var(--orange); }
.act-body { flex: 1; min-width: 0; }
.act-msg  { font-size: 12px; color: var(--text-primary); line-height: 1.3; }
.act-time { font-size: 10px; color: var(--text-muted); margin-top: 2px; }

/* ── 알림 패널 ── */
.notif-panel {
  position: fixed;
  top: 0; right: -400px;
  width: 360px; height: 100vh;
  background: var(--surface);
  box-shadow: -8px 0 40px rgba(10,91,255,0.12);
  z-index: 300;
  display: flex; flex-direction: column;
  transition: right 0.35s cubic-bezier(0.4,0,0.2,1);
  border-left: 1px solid var(--border-light);
}
.notif-panel.open { right: 0; }
.notif-panel-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 22px 20px 16px;
  border-bottom: 1px solid var(--border-light);
}
.notif-panel-title {
  font-size: 16px; font-weight: 700; color: var(--text-primary);
  display: flex; align-items: center; gap: 8px;
}
.notif-list {
  flex: 1; overflow-y: auto; padding: 12px;
  display: flex; flex-direction: column; gap: 6px;
}
.notif-item {
  display: flex; align-items: flex-start; gap: 10px;
  padding: 12px;
  border-radius: 12px;
  background: var(--bg);
  cursor: pointer;
  transition: background 0.18s;
  position: relative;
}
.notif-item:hover { background: var(--blue-ultra); }
.notif-item.unread { background: var(--blue-ultra); }
.notif-dot-badge {
  position: absolute; top: 12px; left: 8px;
  width: 7px; height: 7px;
  background: var(--blue-primary); border-radius: 50%;
}
.notif-icon-wrap {
  width: 34px; height: 34px;
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; flex-shrink: 0;
}
.notif-icon-wrap.blue   { background: var(--blue-pale);    color: var(--blue-primary); }
.notif-icon-wrap.mint   { background: var(--mint-light);   color: #0AC8A0; }
.notif-icon-wrap.orange { background: var(--orange-light); color: var(--orange); }
.notif-icon-wrap.purple { background: var(--purple-light); color: var(--purple); }
.notif-icon-wrap.teal   { background: #E0FAF7;             color: #14B8A6; }
.notif-content { flex: 1; }
.notif-msg  { font-size: 12.5px; color: var(--text-primary); line-height: 1.4; }
.notif-time { font-size: 10px; color: var(--text-muted); margin-top: 3px; }

/* ── 점수 향상 팁 ── */
.tips-list { display: flex; flex-direction: column; gap: 8px; }
.tip-item {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.2s;
  border: 1.5px solid transparent;
}
.tip-item:hover { transform: translateX(4px); }
.tip-item.applied {
  opacity: 0.5;
  text-decoration: line-through;
  cursor: default;
}
.tip-high   { background: var(--blue-ultra);    border-color: rgba(10,91,255,0.08); }
.tip-mid    { background: var(--mint-light);    border-color: rgba(72,227,194,0.12); }
.tip-low    { background: var(--purple-light);  border-color: rgba(124,92,252,0.08); }
.tip-left   { display: flex; align-items: center; gap: 10px; }
.tip-icon   { width: 36px; height: 36px; border-radius: 10px; display:flex;align-items:center;justify-content:center; font-size:18px; }
.tip-title  { font-size: 12.5px; font-weight: 600; color: var(--text-primary); }
.tip-desc   { font-size: 10.5px; color: var(--text-muted); margin-top: 1px; }
.tip-score-up {
  font-size: 13px; font-weight: 800; color: var(--blue-primary);
  display: flex; align-items: center; gap: 4px;
  white-space: nowrap;
}

/* ── 모달 ── */
.modal-box {
  background: var(--surface);
  border-radius: var(--radius-2xl);
  width: 380px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.2);
  overflow: hidden;
  animation: modalPop 0.25s cubic-bezier(0.34,1.56,0.64,1);
}
@keyframes modalPop {
  from { opacity: 0; transform: scale(0.88) translateY(20px); }
  to   { opacity: 1; transform: scale(1) translateY(0); }
}
.modal-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 22px 24px 16px;
  border-bottom: 1px solid var(--border-light);
}
.modal-title { font-size: 17px; font-weight: 700; color: var(--text-primary); }
.modal-body { padding: 20px 24px 24px; }

/* ── data-source 토글 상태 ── */
.data-source-item { cursor: pointer; transition: all 0.2s; }
.data-source-item:not(.connected) .data-check { display: none; }
.data-source-item.add-more:hover { background: var(--blue-ultra); }

/* ── 반응형 ── */
@media (max-width: 1200px) {
  .home-top-grid { grid-template-columns: 1fr 280px; }
}
@media (max-width: 1000px) {
  .home-top-grid  { grid-template-columns: 1fr; }
  .home-side-col  { flex-direction: row; }
  .home-bottom-grid { grid-template-columns: 1fr; }
}

/* ================================================================
   DASHBOARD PAGE — Ask #6
   ================================================================ */

/* ── 점수 배너 ── */
.dash-score-banner {
  background: var(--grad-primary);
  border-radius: var(--radius-2xl);
  padding: 28px 32px 24px;
  color: #fff;
  margin-bottom: 20px;
  position: relative;
  overflow: hidden;
}
.dash-score-banner::before {
  content: '';
  position: absolute;
  top: -40px; right: -40px;
  width: 180px; height: 180px;
  border-radius: 50%;
  background: rgba(255,255,255,0.07);
  pointer-events: none;
}
.dsb-left {
  margin-bottom: 16px;
}
.dsb-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.8;
  margin-bottom: 6px;
}
.dsb-score-row {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin-bottom: 4px;
}
.dsb-score {
  font-size: 64px;
  font-weight: 900;
  letter-spacing: -3px;
  line-height: 1;
}
.dsb-max {
  font-size: 18px;
  font-weight: 600;
  opacity: 0.6;
}
.dsb-badge-grade {
  background: rgba(255,255,255,0.2);
  border: 1.5px solid rgba(255,255,255,0.4);
  border-radius: 8px;
  padding: 3px 11px;
  font-size: 14px;
  font-weight: 700;
  margin-left: 6px;
}
.dsb-sub {
  font-size: 12.5px;
  opacity: 0.85;
}
.dsb-stats {
  display: flex;
  align-items: center;
  gap: 0;
  background: rgba(255,255,255,0.1);
  border-radius: 14px;
  padding: 12px 0;
  margin-bottom: 20px;
}
.dsb-stat-item {
  flex: 1;
  text-align: center;
}
.dsb-stat-val {
  font-size: 22px;
  font-weight: 800;
  color: #fff;
  line-height: 1.2;
}
.dsb-stat-lbl {
  font-size: 10px;
  opacity: 0.7;
  margin-top: 2px;
}
.dsb-stat-div {
  width: 1px;
  height: 32px;
  background: rgba(255,255,255,0.2);
}
.dsb-progress-wrap { }
.dsb-progress-labels {
  display: flex;
  justify-content: space-between;
  font-size: 10px;
  opacity: 0.65;
  margin-bottom: 4px;
}
.dsb-progress-track {
  position: relative;
  height: 8px;
  background: rgba(255,255,255,0.2);
  border-radius: 99px;
  overflow: visible;
  margin-bottom: 4px;
}
.dsb-progress-fill {
  height: 100%;
  background: rgba(255,255,255,0.9);
  border-radius: 99px;
  transition: width 1.4s cubic-bezier(0.4,0,0.2,1);
}
.dsb-progress-thumb {
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 16px;
  height: 16px;
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 2px 8px rgba(0,0,0,0.25);
  transition: left 1.4s cubic-bezier(0.4,0,0.2,1);
}
.dsb-progress-range {
  display: flex;
  justify-content: space-between;
  font-size: 10px;
  opacity: 0.7;
  margin-top: 6px;
}

/* ── 메인 2컬럼 레이아웃 ── */
.dash-main-grid {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 18px;
  align-items: start;
}
.dash-col-main {
  display: flex;
  flex-direction: column;
  gap: 18px;
  min-width: 0;
}
.dash-col-side {
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-width: 0;
}

/* ── 등급 카드 ── */
.dash-grade-card {
  background: var(--grad-primary) !important;
  color: #fff;
  padding: 22px 22px 18px !important;
}
.dgc-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 16px;
}
.dgc-label {
  font-size: 10px;
  opacity: 0.75;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 4px;
}
.dgc-grade {
  font-size: 48px;
  font-weight: 900;
  letter-spacing: -2px;
  line-height: 1;
  color: #fff;
}
.dgc-sub {
  font-size: 11px;
  opacity: 0.75;
  margin-top: 4px;
}
.dgc-gauge-wrap {
  position: relative;
  width: 80px;
  height: 80px;
}
.dgc-gauge-num {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 800;
  color: #fff;
}
.dgc-next-row {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: rgba(255,255,255,0.8);
  margin-bottom: 6px;
}
.dgc-pts-left {
  font-weight: 700;
  color: rgba(255,255,255,0.95);
  font-size: 13px;
}
.dgc-bar-track {
  height: 6px;
  background: rgba(255,255,255,0.2);
  border-radius: 99px;
  overflow: hidden;
  margin-bottom: 12px;
}
.dgc-bar-fill {
  height: 100%;
  background: rgba(255,255,255,0.85);
  border-radius: 99px;
  transition: width 1.5s cubic-bezier(0.4,0,0.2,1);
}
.dgc-grade-row {
  display: flex;
  gap: 6px;
  justify-content: space-between;
}
.dgc-grade-dot {
  font-size: 11px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 8px;
  background: rgba(255,255,255,0.1);
  color: rgba(255,255,255,0.6);
  transition: all 0.2s;
}
.dgc-grade-dot.active {
  background: rgba(255,255,255,0.9);
  color: var(--blue-primary);
}

/* ── KPI 그리드 ── */
.kpi-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.kpi-item {
  background: var(--bg);
  border-radius: 14px;
  padding: 12px;
  text-align: center;
  border: 1px solid var(--border-light);
  transition: box-shadow 0.2s;
}
.kpi-item:hover {
  box-shadow: 0 4px 16px rgba(10,91,255,0.08);
}
.kpi-icon {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  margin: 0 auto 6px;
}
.kpi-val {
  font-size: 16px;
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1.1;
}
.kpi-lbl {
  font-size: 9.5px;
  color: var(--text-muted);
  margin-top: 2px;
}

/* ── 점수 구성 요소 (리스트 뷰) ── */
/* ── 점수 구성 요소 테이블 (헤더·행 동일 grid) ─────────────── */
/*
   컬럼 구조:
   [항목 = 아이콘+이름+설명]  [이번달 바+점수]  [지난달]  [변화]
   자동          180px           56px      56px
*/
.factor-compare-header,
.factor-row {
  display: grid;
  grid-template-columns: 1fr 180px 56px 56px;
  align-items: center;
  gap: 0;
  padding: 0 12px;
}
.factor-compare-header {
  padding-bottom: 8px;
  padding-top: 2px;
  font-size: 10px;
  font-weight: 600;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border-light);
  margin-bottom: 4px;
  letter-spacing: 0.2px;
}
/* 헤더 셀 정렬을 데이터와 맞춤 */
.factor-compare-header span:nth-child(1) { text-align: left; }
.factor-compare-header span:nth-child(2) { text-align: left;  padding-left: 4px; }
.factor-compare-header span:nth-child(3) { text-align: center; }
.factor-compare-header span:nth-child(4) { text-align: center; }

.factor-row {
  min-height: 58px;
  padding-top: 8px;
  padding-bottom: 8px;
  border-radius: 12px;
  cursor: pointer;
  transition: background 0.18s;
}
.factor-row:hover { background: var(--bg); }

/* ── col 1: 항목 (아이콘 + 이름 + 설명) ── */
.factor-row-left {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}
.factor-icon-sm {
  width: 36px; height: 36px;
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 16px;
  flex-shrink: 0;
}
.factor-row-name {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.2;
}
.factor-row-desc {
  font-size: 10px;
  color: var(--text-muted);
  margin-top: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 140px;
}

/* ── col 2: 이번달 (바 + 점수) ── */
.factor-bar-col {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 0 4px;
  min-width: 0;
}
.factor-bar-track2 {
  width: 100%;
  height: 5px;
  background: var(--border-light, #F0F2F5);
  border-radius: 99px;
  overflow: hidden;
}
.factor-bar-fill2 {
  height: 100%;
  width: 0%;
  border-radius: 99px;
  transition: width 1.2s cubic-bezier(0.4,0,0.2,1);
}
.factor-score-val {
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
  text-align: left;
  line-height: 1;
}

/* ── col 3: 지난달 ── */
.factor-prev-val {
  font-size: 12px;
  font-weight: 500;
  color: var(--text-muted);
  text-align: center;
}

/* ── col 4: 변화 ── */
.factor-delta {
  font-size: 11.5px;
  font-weight: 700;
  text-align: center;
}
.delta-up   { color: #10B981; }
.delta-down { color: #EF4444; }

/* ── 리스트/레이더 뷰 전환 버튼 ── */
.dash-view-btn {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  border: 1.5px solid var(--border-light);
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  transition: all 0.18s;
}
.dash-view-btn:hover {
  background: var(--bg);
  color: var(--blue-primary);
}
.dash-view-btn.active {
  background: var(--blue-ultra);
  border-color: rgba(10,91,255,0.25);
  color: var(--blue-primary);
}

/* ── AI 인사이트 ── */
.insight-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 4px;
}
.insight-card {
  border-radius: 16px;
  padding: 14px;
  cursor: pointer;
  border: 1.5px solid transparent;
  transition: transform 0.18s, box-shadow 0.18s;
}
.insight-card:hover:not(.applied) {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.08);
}
.insight-up   { background: #EBF3FF; border-color: rgba(10,91,255,0.12); }
.insight-warn { background: #FFF7ED; border-color: rgba(217,119,6,0.12); }
.insight-info { background: #F0EBFF; border-color: rgba(124,92,252,0.12); }
.insight-new  { background: #ECFDF5; border-color: rgba(16,185,129,0.12); }
.insight-card.applied { opacity: 0.5; cursor: default; }
.insight-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}
.insight-card-icon {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
}
.insight-pill {
  font-size: 10px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 99px;
}
.pill-up   { background: rgba(10,91,255,0.12); color: var(--blue-primary); }
.pill-warn { background: rgba(217,119,6,0.12); color: #D97706; }
.pill-info { background: rgba(124,92,252,0.12); color: var(--purple); }
.pill-new  { background: rgba(16,185,129,0.12); color: #10B981; }
.insight-card-title {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 3px;
}
.insight-card-desc {
  font-size: 10.5px;
  color: var(--text-secondary);
  line-height: 1.4;
  margin-bottom: 8px;
}
.insight-apply-btn {
  background: none;
  border: none;
  padding: 0;
  font-size: 11px;
  font-weight: 700;
  color: var(--blue-primary);
  cursor: pointer;
  transition: opacity 0.15s;
}
.insight-apply-btn:hover { opacity: 0.7; }

/* ── 액션 리스트 ── */
.action-list { display: flex; flex-direction: column; gap: 6px; }
.action-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 12px;
  background: var(--bg);
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: all 0.2s;
}
.action-item:not(.done):hover {
  background: var(--blue-ultra);
  border-color: rgba(10,91,255,0.15);
}
.action-item.done {
  cursor: default;
  opacity: 0.65;
}
.action-check {
  width: 20px;
  height: 20px;
  border-radius: 6px;
  border: 2px solid var(--border-light);
  background: var(--surface);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  color: #fff;
  flex-shrink: 0;
  transition: all 0.2s;
}
.action-check.checked {
  background: var(--blue-primary);
  border-color: var(--blue-primary);
}
.action-text {
  flex: 1;
  font-size: 12.5px;
  font-weight: 500;
  color: var(--text-primary);
}
.action-item.done .action-text {
  text-decoration: line-through;
  color: var(--text-muted);
}
.action-pts {
  font-size: 11px;
  font-weight: 700;
  color: var(--blue-primary);
  background: var(--blue-ultra);
  padding: 2px 7px;
  border-radius: 6px;
}

/* ── DID 상태 블록 ── */
.did-status-block {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.did-hash {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
  font-family: 'JetBrains Mono', 'Fira Code', monospace;
  background: var(--bg);
  padding: 7px 12px;
  border-radius: 8px;
  border: 1px solid var(--border-light);
  letter-spacing: 0.02em;
}
.did-tags {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.did-partners {}
.did-partner-flags {
  font-size: 18px;
  letter-spacing: 2px;
}

/* ── 요소 상세 모달 ── */
.fmodal-box {
  background: var(--surface);
  border-radius: var(--radius-2xl);
  width: 400px;
  max-width: 92vw;
  box-shadow: 0 24px 80px rgba(0,0,0,0.18);
  overflow: hidden;
  animation: modalPop 0.28s cubic-bezier(0.34,1.56,0.64,1);
}
.fmodal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 22px 14px;
  border-bottom: 1px solid var(--border-light);
}
.fmodal-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-primary);
}
.fmodal-body {
  padding: 20px 22px 24px;
}

/* ── 대시보드 반응형 ── */
@media (max-width: 1100px) {
  .dash-main-grid { grid-template-columns: 1fr 280px; }
}
@media (max-width: 860px) {
  .dash-main-grid { grid-template-columns: 1fr; }
  .dash-score-banner { padding: 22px 20px; }
  .dsb-score { font-size: 52px; }
  .insight-grid { grid-template-columns: 1fr; }
}

/* ================================================================
   FAMILY CREDIT SHARING PAGE — /family
   ================================================================ */

/* ── 히어로 배너 ── */
.fc-hero {
  background: linear-gradient(135deg, #0A5BFF 0%, #7C5CFC 60%, #48E3C2 100%);
  border-radius: var(--radius-2xl);
  padding: 32px 36px;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 20px;
  position: relative;
  overflow: hidden;
}
.fc-hero::before {
  content: '';
  position: absolute;
  top: -60px; right: 160px;
  width: 220px; height: 220px;
  border-radius: 50%;
  background: rgba(255,255,255,0.06);
  pointer-events: none;
}
.fc-hero-left { flex: 1; min-width: 0; }
.fc-hero-right { flex-shrink: 0; }

.fc-hero-eyebrow {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.8;
  margin-bottom: 8px;
}
.fc-hero-score-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 6px;
}
.fc-pool-score {
  font-size: 72px;
  font-weight: 900;
  letter-spacing: -4px;
  line-height: 1;
}
.fc-hero-badges { display: flex; flex-direction: column; gap: 5px; }
.fc-grade-badge {
  background: rgba(255,255,255,0.2);
  border: 1.5px solid rgba(255,255,255,0.45);
  border-radius: 8px;
  padding: 3px 11px;
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
}
.fc-new-badge {
  background: #FF8C42;
  border-radius: 6px;
  padding: 2px 9px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-align: center;
}
.fc-hero-sub {
  font-size: 13px;
  opacity: 0.88;
  margin-bottom: 18px;
}
.fc-hero-stat-row {
  display: flex;
  align-items: center;
  background: rgba(255,255,255,0.12);
  border-radius: 14px;
  padding: 12px 0;
}
.fc-hero-stat { flex: 1; text-align: center; }
.fc-hero-stat-div { width: 1px; height: 30px; background: rgba(255,255,255,0.2); }
.fc-stat-val { font-size: 18px; font-weight: 800; line-height: 1.2; }
.fc-stat-lbl { font-size: 10px; opacity: 0.7; margin-top: 2px; }

/* ── 2컬럼 레이아웃 ── */
.fc-main-grid {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 18px;
  align-items: start;
}
.fc-col-main { display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.fc-col-side  { display: flex; flex-direction: column; gap: 16px; min-width: 0; }

/* ── 가족 구성원 리스트 ── */
.fc-invite-btn {
  padding: 8px 16px;
  background: var(--grad-primary);
  color: #fff;
  border: none;
  border-radius: 10px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: opacity 0.18s;
  white-space: nowrap;
}
.fc-invite-btn:hover { opacity: 0.88; }

.fc-member-list { display: flex; flex-direction: column; gap: 4px; }
.fc-member-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: all 0.2s;
}
.fc-member-row:hover         { background: var(--bg); border-color: var(--border-light); }
.fc-member-row.support       { background: rgba(16,185,129,0.04); }
.fc-member-row.need          { background: rgba(255,140,66,0.05); border-color: rgba(255,140,66,0.12); }
.fc-member-row.owner         { background: var(--blue-ultra); border-color: rgba(10,91,255,0.12); }

.fc-member-left  { display: flex; align-items: center; gap: 12px; flex: 1; min-width: 0; }
.fc-member-right { display: flex; align-items: center; gap: 14px; flex-shrink: 0; }

.fc-avatar {
  width: 44px; height: 44px;
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  font-size: 16px; font-weight: 800; color: #fff;
  flex-shrink: 0;
}
.fc-member-name { font-size: 13px; font-weight: 600; color: var(--text-primary); margin-bottom: 4px; }
.fc-rel-tag {
  font-size: 10px; font-weight: 500;
  color: var(--text-muted);
  background: var(--bg);
  padding: 1px 7px;
  border-radius: 6px;
  margin-left: 5px;
}
.fc-member-score-row { display: flex; align-items: center; gap: 6px; }
.fc-m-score   { font-size: 15px; font-weight: 800; }
.fc-m-grade   { font-size: 11px; font-weight: 700; color: var(--text-secondary); background: var(--bg); padding: 1px 7px; border-radius: 6px; }
.fc-need-tag    { font-size: 9.5px; font-weight: 700; color: #D97706; background: #FFF7ED; padding: 2px 7px; border-radius: 6px; }
.fc-support-tag { font-size: 9.5px; font-weight: 700; color: #059669; background: #ECFDF5; padding: 2px 7px; border-radius: 6px; }
.fc-owner-tag   { font-size: 9.5px; font-weight: 700; color: var(--blue-primary); background: var(--blue-ultra); padding: 2px 7px; border-radius: 6px; }

.fc-member-bar-wrap { display: flex; align-items: center; gap: 6px; width: 120px; }
.fc-member-bar-track { flex: 1; height: 5px; background: var(--bg); border-radius: 99px; overflow: hidden; }
.fc-member-bar-fill  { height: 100%; width: 0%; border-radius: 99px; transition: width 1.2s cubic-bezier(0.4,0,0.2,1); }
.fc-bar-lbl { font-size: 10px; color: var(--text-muted); white-space: nowrap; }

/* ── 공유 토글 ── */
.fc-share-toggle {
  width: 40px; height: 22px;
  background: var(--border-light);
  border-radius: 99px;
  position: relative;
  cursor: pointer;
  transition: background 0.2s;
  flex-shrink: 0;
}
.fc-share-toggle.on { background: var(--blue-primary); }
.fc-share-knob {
  position: absolute;
  top: 3px; left: 3px;
  width: 16px; height: 16px;
  background: #fff;
  border-radius: 50%;
  transition: left 0.2s;
  box-shadow: 0 1px 4px rgba(0,0,0,0.2);
}
.fc-share-toggle.on .fc-share-knob { left: 21px; }

/* ── 시뮬레이터 ── */
.fc-sim-badge {
  font-size: 10px; font-weight: 700;
  color: var(--blue-primary);
  background: var(--blue-ultra);
  padding: 3px 10px; border-radius: 99px;
}
.fc-compare-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
  background: var(--bg);
  border-radius: 16px;
  padding: 16px;
}
.fc-compare-box {
  flex: 1;
  background: var(--surface);
  border-radius: 12px;
  padding: 14px;
  text-align: center;
  border: 1.5px solid var(--border-light);
}
.fc-compare-box.fc-shared {
  border-color: rgba(10,91,255,0.2);
  background: var(--blue-ultra);
}
.fc-compare-label  { font-size: 10px; color: var(--text-muted); margin-bottom: 4px; font-weight: 600; }
.fc-compare-score  { font-size: 32px; font-weight: 900; color: var(--text-primary); line-height: 1.1; }
.fc-compare-box.fc-shared .fc-compare-score { color: var(--blue-primary); }
.fc-compare-limit  { font-size: 11px; color: var(--text-secondary); margin-top: 4px; }
.fc-compare-rate   { font-size: 11px; color: var(--text-secondary); }
.fc-compare-arrow  { display: flex; flex-direction: column; align-items: center; gap: 4px; color: var(--text-muted); font-size: 16px; }
.fc-compare-vs     { font-size: 9px; color: var(--blue-primary); font-weight: 700; background: var(--blue-ultra); padding: 2px 6px; border-radius: 6px; }

.fc-sim-sliders { display: flex; flex-direction: column; gap: 16px; margin-bottom: 16px; }
.fc-slider-item {}
.fc-slider-header { display: flex; justify-content: space-between; margin-bottom: 6px; }
.fc-slider-lbl { font-size: 12px; font-weight: 600; color: var(--text-primary); }
.fc-slider-val { font-size: 12px; font-weight: 700; color: var(--blue-primary); }
.fc-range {
  -webkit-appearance: none;
  width: 100%; height: 5px;
  background: var(--bg);
  border-radius: 99px;
  outline: none;
  cursor: pointer;
}
.fc-range::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 18px; height: 18px;
  border-radius: 50%;
  background: var(--blue-primary);
  box-shadow: 0 2px 6px rgba(10,91,255,0.4);
  cursor: pointer;
  transition: transform 0.15s;
}
.fc-range::-webkit-slider-thumb:hover { transform: scale(1.2); }
.fc-slider-minmax { display: flex; justify-content: space-between; font-size: 9.5px; color: var(--text-muted); margin-top: 3px; }

.fc-sim-result {
  background: var(--bg);
  border-radius: 14px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.fc-result-row { display: flex; justify-content: space-between; align-items: center; }
.fc-result-lbl { font-size: 12px; color: var(--text-secondary); display: flex; align-items: center; gap: 7px; }
.fc-result-val { font-size: 14px; font-weight: 800; }
.fc-result-val.blue  { color: var(--blue-primary); }
.fc-result-val.green { color: #10B981; }

.fc-apply-btn {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  background: var(--grad-primary);
  color: #fff;
  border: none;
  border-radius: 12px;
  padding: 13px 20px;
  font-size: 13px; font-weight: 700;
  cursor: pointer;
  transition: opacity 0.18s, transform 0.15s;
  margin-top: 4px;
}
.fc-apply-btn:hover { opacity: 0.9; transform: translateY(-1px); }

/* ── 단계 흐름 ── */
.fc-step-flow { display: flex; flex-direction: column; gap: 0; }
.fc-step {
  display: flex; align-items: center; gap: 14px;
  padding: 14px 16px;
  border-radius: 14px;
  cursor: pointer;
  transition: background 0.18s;
  position: relative;
}
.fc-step:not(:last-child)::after {
  content: '';
  position: absolute;
  left: 31px; bottom: -1px;
  width: 2px; height: 8px;
  background: var(--border-light);
  z-index: 1;
}
.fc-step:hover { background: var(--bg); }
.fc-step.done  { opacity: 0.75; }
.fc-step.active {
  background: var(--blue-ultra);
  border: 1.5px solid rgba(10,91,255,0.15);
}
.fc-step-num {
  width: 32px; height: 32px;
  border-radius: 50%;
  border: 2px solid var(--border-light);
  background: var(--surface);
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 700; color: var(--text-secondary);
  flex-shrink: 0;
  transition: all 0.2s;
}
.fc-step.done .fc-step-num  { background: #10B981; border-color: #10B981; color: #fff; }
.fc-step.active .fc-step-num { background: var(--blue-primary); border-color: var(--blue-primary); color: #fff; }
.fc-step-body { flex: 1; }
.fc-step-title { font-size: 13px; font-weight: 600; color: var(--text-primary); }
.fc-step.done .fc-step-title  { color: var(--text-muted); text-decoration: line-through; }
.fc-step.active .fc-step-title { color: var(--blue-primary); }
.fc-step-desc { font-size: 11px; color: var(--text-muted); margin-top: 2px; }
.fc-step-badge {
  font-size: 9.5px; font-weight: 700;
  padding: 3px 9px; border-radius: 99px;
  background: var(--blue-ultra); color: var(--blue-primary);
  white-space: nowrap;
}
.fc-step-badge.done { background: #ECFDF5; color: #059669; }

/* ── 풀 게이지 카드 ── */
.fc-pool-card {
  background: var(--grad-primary) !important;
  color: #fff;
  padding: 22px 22px 18px !important;
  text-align: center;
}
.fc-pool-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.fc-pool-label { font-size: 11px; font-weight: 600; opacity: 0.8; letter-spacing: 0.04em; }
.fc-pool-grade-badge {
  font-size: 11px; font-weight: 700;
  background: rgba(255,255,255,0.2);
  border: 1.5px solid rgba(255,255,255,0.4);
  border-radius: 8px;
  padding: 3px 10px;
}
.fc-pool-gauge-wrap {
  position: relative;
  width: 120px; height: 120px;
  margin: 0 auto 10px;
}
.fc-pool-num {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 22px; font-weight: 900; color: #fff;
}
.fc-pool-sub { font-size: 11px; opacity: 0.75; margin-bottom: 12px; }
.fc-pool-bar-row { display: flex; justify-content: space-between; font-size: 10px; opacity: 0.7; margin-bottom: 4px; }
.fc-pool-diff-bar {
  height: 8px;
  background: rgba(255,255,255,0.15);
  border-radius: 99px;
  overflow: hidden;
  display: flex;
}
.fc-pool-solo {
  height: 100%;
  background: rgba(255,255,255,0.65);
  border-radius: 99px 0 0 99px;
}
.fc-pool-bonus {
  height: 100%;
  background: #48E3C2;
  border-radius: 0 99px 99px 0;
  transition: width 1.2s cubic-bezier(0.4,0,0.2,1);
}
.fc-pool-diff-lbl {
  display: flex; justify-content: space-between;
  font-size: 10px; opacity: 0.75; margin-top: 4px;
}
.fc-bonus-lbl { color: #48E3C2; font-weight: 800; }

/* ── 한도 비교 ── */
.fc-limit-list { display: flex; flex-direction: column; gap: 8px; }
.fc-limit-row { display: flex; align-items: center; justify-content: space-between; padding: 10px 12px; }
.fc-limit-left { display: flex; align-items: center; gap: 10px; }
.fc-limit-icon { width: 36px; height: 36px; border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 14px; }
.fc-limit-name { font-size: 12.5px; font-weight: 600; color: var(--text-primary); }
.fc-limit-sub  { font-size: 10px; color: var(--text-muted); margin-top: 1px; }
.fc-limit-val  { font-size: 16px; font-weight: 800; color: var(--text-primary); }
.fc-limit-divider {
  text-align: center; font-size: 14px;
  color: var(--blue-primary);
  background: var(--blue-ultra);
  border-radius: 50%;
  width: 24px; height: 24px;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto;
}
.fc-limit-gain {
  background: linear-gradient(90deg, #EBF3FF, #F0EBFF);
  border-radius: 12px;
  padding: 10px 14px;
  font-size: 12px;
  color: var(--blue-primary);
  font-weight: 600;
  text-align: center;
}

/* ── 추천 상품 ── */
.fc-product-list { display: flex; flex-direction: column; gap: 8px; }
.fc-product-row {
  display: flex; align-items: center; gap: 12px;
  padding: 12px;
  border-radius: 14px;
  border: 1.5px solid var(--border-light);
  cursor: pointer;
  transition: all 0.18s;
}
.fc-product-row:hover { background: var(--bg); transform: translateX(3px); }
.fc-product-icon { width: 40px; height: 40px; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 18px; flex-shrink: 0; }
.fc-product-body { flex: 1; min-width: 0; }
.fc-product-name { font-size: 12.5px; font-weight: 700; color: var(--text-primary); }
.fc-product-meta { font-size: 10.5px; color: var(--text-muted); margin-top: 2px; }
.fc-product-badge { font-size: 10px; font-weight: 700; padding: 3px 9px; border-radius: 99px; white-space: nowrap; }

/* ── 보안 안내 ── */
.fc-security-block { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 12px; }
.fc-sec-icon { font-size: 24px; flex-shrink: 0; }
.fc-sec-title { font-size: 13px; font-weight: 700; color: var(--text-primary); margin-bottom: 4px; }
.fc-sec-desc  { font-size: 11px; color: var(--text-secondary); line-height: 1.5; }
.fc-sec-features { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; }
.fc-sec-feat { font-size: 11px; color: var(--text-secondary); display: flex; align-items: center; gap: 6px; }

/* ── 모달 ── */
.fc-modal-box {
  background: var(--surface);
  border-radius: var(--radius-2xl);
  width: 420px;
  max-width: 94vw;
  box-shadow: 0 24px 80px rgba(0,0,0,0.2);
  overflow: hidden;
  animation: modalPop 0.28s cubic-bezier(0.34,1.56,0.64,1);
}
.fc-modal-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 22px 24px 16px;
  border-bottom: 1px solid var(--border-light);
}
.fc-modal-title { font-size: 16px; font-weight: 700; color: var(--text-primary); }
.fc-modal-body  { padding: 20px 24px 24px; }

/* 초대 모달 */
.fc-invite-input-row { display: flex; gap: 8px; margin-bottom: 16px; }
.fc-invite-input {
  flex: 1;
  padding: 10px 14px;
  border: 1.5px solid var(--border-light);
  border-radius: 12px;
  font-size: 13px;
  outline: none;
  font-family: inherit;
  transition: border-color 0.18s;
}
.fc-invite-input:focus { border-color: var(--blue-primary); }
.fc-invite-send-btn {
  padding: 10px 18px;
  background: var(--grad-primary);
  color: #fff;
  border: none;
  border-radius: 12px;
  font-size: 13px; font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
}
.fc-invite-rels { margin-bottom: 14px; }
.fc-rel-btns { display: flex; gap: 6px; flex-wrap: wrap; }
.fc-rel-btn {
  padding: 5px 12px;
  border: 1.5px solid var(--border-light);
  border-radius: 8px;
  background: var(--bg);
  font-size: 11.5px; font-weight: 500;
  cursor: pointer; transition: all 0.15s;
}
.fc-rel-btn:hover, .fc-rel-btn.active {
  background: var(--blue-ultra);
  border-color: rgba(10,91,255,0.3);
  color: var(--blue-primary); font-weight: 700;
}
.fc-invite-recent {}
.fc-recent-item {
  display: flex; align-items: center; justify-content: space-between;
  padding: 8px 12px;
  background: var(--bg);
  border-radius: 10px;
  font-size: 12px; color: var(--text-secondary);
}

/* 신청 모달 */
.fc-apply-summary { background: var(--bg); border-radius: 14px; padding: 14px; margin-bottom: 14px; display: flex; flex-direction: column; gap: 8px; }
.fc-apply-sum-row { display: flex; justify-content: space-between; align-items: center; font-size: 12.5px; color: var(--text-secondary); }
.fc-apply-sum-row strong { font-size: 13px; color: var(--text-primary); }
.fc-apply-members { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.fc-apply-mem { display: flex; align-items: center; gap: 10px; font-size: 12.5px; color: var(--text-secondary); background: var(--bg); padding: 8px 12px; border-radius: 10px; }
.fc-av-sm { width: 28px; height: 28px; border-radius: 8px; display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 800; color: #fff; }
.fc-apply-agree { display: flex; flex-direction: column; gap: 8px; }
.fc-agree-check { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--text-secondary); cursor: pointer; }
.fc-agree-check input[type="checkbox"] { accent-color: var(--blue-primary); width: 15px; height: 15px; cursor: pointer; }

/* ── 반응형 ── */
@media (max-width: 1100px) {
  .fc-main-grid { grid-template-columns: 1fr 280px; }
}
@media (max-width: 860px) {
  .fc-main-grid   { grid-template-columns: 1fr; }
  .fc-hero        { flex-direction: column; padding: 24px 20px; }
  .fc-pool-score  { font-size: 56px; }
  .fc-hero-stat-row { flex-wrap: wrap; }
  .fc-compare-row { flex-direction: column; }
  .fc-member-bar-wrap { display: none; }
}

/* ════════════════════════════════════════════════════════════════
   MIGRANT WORKER LOAN — /migrant 전용 CSS
   ════════════════════════════════════════════════════════════════ */

/* ── 사이드바 구분선 & 외국인 메뉴 ── */
.nav-divider {
  height: 1px;
  background: linear-gradient(to right, transparent, var(--border), transparent);
  margin: 10px 12px;
}
.nav-item-migrant {
  background: linear-gradient(135deg, rgba(124,92,252,0.06), rgba(124,92,252,0.03));
  border: 1px solid rgba(124,92,252,0.15);
  border-radius: 12px;
  position: relative;
}
.nav-item-migrant:hover {
  background: linear-gradient(135deg, rgba(124,92,252,0.12), rgba(124,92,252,0.06));
  border-color: rgba(124,92,252,0.3);
}
.nav-item-migrant.active {
  background: linear-gradient(135deg, rgba(124,92,252,0.18), rgba(124,92,252,0.10));
  border-color: rgba(124,92,252,0.4);
}
.nav-badge {
  font-size: 9px;
  font-weight: 700;
  color: #fff;
  padding: 2px 6px;
  border-radius: 20px;
  margin-left: auto;
  letter-spacing: 0.5px;
  flex-shrink: 0;
}

/* ════════════════════════════════════════════════════════════════
   MIGRANT V2 — 외국인 근로자 금융 서비스 (mv2-* prefix)
   ════════════════════════════════════════════════════════════════ */

/* ── 히어로 ── */
.mv2-hero {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 28px;
  background: linear-gradient(135deg, #0f0b2e 0%, #1a1060 35%, #1e3a8a 100%);
  border-radius: 22px;
  padding: 44px 48px;
  margin-bottom: 24px;
  position: relative;
  overflow: hidden;
}
.mv2-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 70% 40%, rgba(124,92,252,0.28) 0%, transparent 55%),
    radial-gradient(ellipse at 15% 80%, rgba(72,227,194,0.18) 0%, transparent 50%);
  pointer-events: none;
}
.mv2-hero-main { position: relative; z-index: 1; }
.mv2-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(72,227,194,0.12);
  border: 1px solid rgba(72,227,194,0.3);
  border-radius: 20px;
  padding: 6px 14px;
  font-size: 12px;
  font-weight: 600;
  color: #48E3C2;
  margin-bottom: 18px;
}
.mv2-live-dot {
  width: 7px; height: 7px;
  background: #48E3C2;
  border-radius: 50%;
  animation: livePulse 1.4s ease-in-out infinite;
  flex-shrink: 0;
}
@keyframes livePulse {
  0%,100% { opacity:1; transform:scale(1); }
  50% { opacity:0.5; transform:scale(1.4); }
}
.mv2-hero-h2 {
  font-size: 30px;
  font-weight: 900;
  color: #fff;
  line-height: 1.3;
  margin: 0 0 12px;
  letter-spacing: -0.5px;
}
.mv2-accent { color: #48E3C2; }
.mv2-hero-p {
  font-size: 14px;
  color: rgba(255,255,255,0.72);
  line-height: 1.7;
  margin: 0 0 22px;
}

/* ── 통계 행 ── */
.mv2-stats-row {
  display: flex;
  align-items: center;
  gap: 0;
  margin-bottom: 24px;
  flex-wrap: wrap;
}
.mv2-stat-item {
  text-align: center;
  padding: 0 18px;
  /* 진입 페이드인 */
  opacity: 0;
  transform: translateY(10px);
  animation: statFadeIn .55s ease forwards;
}
.mv2-stat-item:nth-child(1) { animation-delay: .05s; }
.mv2-stat-item:nth-child(3) { animation-delay: .12s; }
.mv2-stat-item:nth-child(5) { animation-delay: .19s; }
.mv2-stat-item:nth-child(7) { animation-delay: .26s; }
.mv2-stat-item:first-child  { padding-left: 0; }
@keyframes statFadeIn {
  to { opacity: 1; transform: translateY(0); }
}

.mv2-stat-num {
  font-size: 28px;
  font-weight: 900;
  color: #fff;
  line-height: 1;
  margin-bottom: 4px;
  letter-spacing: -0.5px;
  transition: color .5s ease, text-shadow .5s ease;
  /* will-change 제거 — GPU 레이어 분리로 인한 서브픽셀 흔들림 방지 */
}
/* 카운팅 중 — 흔들림 없이 opacity만 살짝 올림 (애니메이션 제거) */
.mv2-stat-num.mv2-stat-counting {
  opacity: 0.9;
}
/* 완료 — 자연스럽게 full opacity */
.mv2-stat-num.mv2-stat-done {
  opacity: 1;
}

.mv2-stat-lbl {
  font-size: 11px;
  color: rgba(255,255,255,0.6);
  font-weight: 500;
  letter-spacing: 0.3px;
}
.mv2-stat-sep {
  width: 1px;
  height: 36px;
  background: rgba(255,255,255,0.18);
  flex-shrink: 0;
  opacity: 0;
  animation: statFadeIn .4s ease .3s forwards;
}

/* ── CTA 버튼 행 ── */
.mv2-cta-row { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 18px; }
.mv2-btn-primary {
  background: linear-gradient(135deg, #48E3C2, #0AC8A0);
  color: #fff;
  border: none;
  border-radius: 10px;
  padding: 12px 22px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: transform .2s, box-shadow .2s;
  display: flex; align-items: center; gap: 6px;
}
.mv2-btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(72,227,194,0.4); }
.mv2-btn-secondary {
  background: rgba(99,102,241,0.18);
  color: #a5b4fc;
  border: 1px solid rgba(99,102,241,0.3);
  border-radius: 10px;
  padding: 12px 22px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: background .2s, transform .2s;
  display: flex; align-items: center; gap: 6px;
}
.mv2-btn-secondary:hover { background: rgba(99,102,241,0.3); transform: translateY(-1px); }
.mv2-btn-ghost {
  background: transparent;
  color: rgba(255,255,255,0.7);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 10px;
  padding: 12px 20px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: background .2s;
  display: flex; align-items: center; gap: 6px;
}
.mv2-btn-ghost:hover { background: rgba(255,255,255,0.08); }

/* ── 언어 배지 ── */
.mv2-lang-row { display: flex; gap: 6px; flex-wrap: wrap; }
.mv2-lang-badge {
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 20px;
  padding: 4px 12px;
  font-size: 11.5px;
  color: rgba(255,255,255,0.8);
  font-weight: 500;
}

/* ── 국가 카드 ── */
.mv2-country-card {
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 18px;
  padding: 20px;
  position: relative;
  z-index: 1;
  backdrop-filter: blur(8px);
}
.mv2-cc-header { margin-bottom: 14px; }
.mv2-cc-title { font-size: 14px; font-weight: 700; color: #fff; margin-bottom: 4px; }
.mv2-cc-sub { font-size: 11.5px; color: rgba(255,255,255,0.55); }
.mv2-country-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}
.mv2-country-item {
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 12px;
  padding: 10px 8px;
  text-align: center;
  cursor: pointer;
  transition: all .2s;
}
.mv2-country-item:hover {
  background: rgba(72,227,194,0.12);
  border-color: rgba(72,227,194,0.35);
  transform: translateY(-2px);
}
.mv2-country-item.selected {
  background: rgba(72,227,194,0.18);
  border-color: #48E3C2;
  box-shadow: 0 0 0 2px rgba(72,227,194,0.25);
}
.mv2-ci-flag { font-size: 22px; line-height: 1; margin-bottom: 4px; }
.mv2-ci-name { font-size: 11px; font-weight: 700; color: #fff; margin-bottom: 2px; }
.mv2-ci-workers { font-size: 10px; color: rgba(255,255,255,0.55); margin-bottom: 2px; }
.mv2-ci-trend { font-size: 10px; font-weight: 600; }

/* ── 선택된 국가 배너 ── */
.mv2-sel-country {
  margin-top: 12px;
  background: rgba(72,227,194,0.1);
  border: 1px solid rgba(72,227,194,0.25);
  border-radius: 12px;
  padding: 12px 14px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.mv2-sel-flag { font-size: 24px; }
.mv2-sel-info-wrap { flex: 1; }
.mv2-sel-name { font-size: 13px; font-weight: 700; color: #fff; }
.mv2-sel-info { font-size: 11.5px; color: rgba(255,255,255,0.65); }
.mv2-sel-apply-btn {
  background: linear-gradient(135deg, #48E3C2, #0AC8A0);
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 8px 16px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  display: flex; align-items: center; gap: 4px;
}

/* ── 탭 네비게이션 ── */
.mv2-tab-nav {
  display: flex;
  gap: 6px;
  margin-bottom: 24px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 6px;
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(12px);
}
.mv2-tab {
  flex: 1;
  background: transparent;
  border: none;
  border-radius: 12px;
  padding: 12px 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all .2s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  white-space: nowrap;
}
.mv2-tab:hover { background: var(--hover); color: var(--text-primary); }
.mv2-tab.active {
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
  color: #fff;
  box-shadow: 0 4px 12px rgba(99,102,241,0.35);
}

/* ── 패널 페이드 ── */
.mv2-panel { display: none; }
.mv2-panel.active {
  display: block;
  animation: mv2FadeIn .3s ease;
}
@keyframes mv2FadeIn {
  from { opacity:0; transform:translateY(8px); }
  to   { opacity:1; transform:translateY(0); }
}

/* ── 비자 필터바 ── */
.mv2-visa-filterbar {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}
.mv2-vfb-label { font-size: 12px; font-weight: 600; color: var(--text-secondary); white-space: nowrap; }
.mv2-vfb-btns { display: flex; gap: 6px; flex-wrap: wrap; }
.mv2-vfb {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 7px 16px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all .2s;
}
.mv2-vfb:hover { border-color: var(--blue-primary); color: var(--blue-primary); }
.mv2-vfb.active {
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
  border-color: transparent;
  color: #fff;
  box-shadow: 0 3px 10px rgba(99,102,241,0.3);
}

/* ── 신청 그리드 (2컬럼) ── */
.mv2-apply-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

/* ── 상품 컬럼 ── */
.mv2-prod-col { display: flex; flex-direction: column; gap: 14px; }

/* ── 상품 카드 ── */
.mv2-prod-card {
  background: var(--surface);
  border: 2px solid var(--border);
  border-radius: 18px;
  padding: 20px;
  cursor: pointer;
  transition: all .22s;
  position: relative;
}
.mv2-prod-card:hover { border-color: var(--blue-primary); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(99,102,241,0.12); }
.mv2-prod-card.selected {
  border-color: #6366f1;
  background: rgba(99,102,241,0.05);
  box-shadow: 0 0 0 3px rgba(99,102,241,0.15);
}
.mv2-pc-top { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 14px; }
.mv2-pc-icon-wrap { position: relative; flex-shrink: 0; }
.mv2-pc-icon {
  width: 46px; height: 46px;
  background: linear-gradient(135deg, rgba(99,102,241,0.12), rgba(139,92,246,0.12));
  border: 1px solid rgba(99,102,241,0.2);
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 22px;
}
.mv2-pc-badge {
  position: absolute;
  top: -5px; right: -5px;
  font-size: 9px;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: 6px;
  letter-spacing: 0.3px;
  white-space: nowrap;
}
.mv2-pc-meta { flex: 1; }
.mv2-pc-name { font-size: 15px; font-weight: 800; color: var(--text-primary); margin-bottom: 3px; }
.mv2-pc-desc { font-size: 12px; color: var(--text-secondary); line-height: 1.5; }
.mv2-pc-select-circle {
  width: 22px; height: 22px;
  border: 2px solid var(--border);
  border-radius: 50%;
  flex-shrink: 0;
  margin-top: 2px;
  transition: all .2s;
  display: flex; align-items: center; justify-content: center;
  font-size: 12px;
}
.mv2-pc-select-circle.checked {
  background: #6366f1;
  border-color: #6366f1;
  color: #fff;
}

/* ── 상품 스탯 그리드 ── */
.mv2-pc-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-bottom: 12px;
}
.mv2-pcs-item { text-align: center; }
.mv2-pcs-lbl { font-size: 10.5px; color: var(--text-secondary); margin-bottom: 2px; }
.mv2-pcs-val { font-size: 12.5px; font-weight: 700; color: var(--text-primary); }

/* ── 승인율 바 ── */
.mv2-pc-bar-wrap { margin-bottom: 10px; }
.mv2-pc-bar-track {
  height: 6px;
  background: var(--border);
  border-radius: 3px;
  overflow: hidden;
  margin-bottom: 3px;
}
.mv2-pc-bar-fill {
  height: 100%;
  border-radius: 3px;
  width: 0;
  transition: width 1s cubic-bezier(.4,0,.2,1);
  background: linear-gradient(90deg, #6366f1, #8b5cf6);
}
.mv2-pc-bar-pct { font-size: 11px; color: var(--text-secondary); text-align: right; }

/* ── 태그 ── */
.mv2-pc-tags { display: flex; gap: 5px; flex-wrap: wrap; }
.mv2-pc-tag {
  background: rgba(99,102,241,0.08);
  border: 1px solid rgba(99,102,241,0.18);
  border-radius: 6px;
  padding: 3px 8px;
  font-size: 10.5px;
  font-weight: 600;
  color: #8b5cf6;
}

/* ── 신청 폼 컬럼 ── */
.mv2-form-col {
  position: static;    /* sticky 제거 — 폼 전체가 페이지 흐름대로 표시 */
  max-height: none;    /* 높이 제한 없음 */
  overflow-y: visible; /* 스크롤 없이 전체 내용 표시 */
  overflow-x: visible;
  padding-right: 0;
  padding-bottom: 32px;
}

/* ── 선택 상품 배너 ── */
.mv2-sel-prod-banner {
  background: linear-gradient(135deg, rgba(99,102,241,0.08), rgba(139,92,246,0.08));
  border: 1px solid rgba(99,102,241,0.25);
  border-radius: 14px;
  padding: 14px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
}
.mv2-spb-icon { font-size: 24px; }
.mv2-spb-body { flex: 1; }
.mv2-spb-name { font-size: 13px; font-weight: 700; color: var(--text-primary); margin-bottom: 2px; }
.mv2-spb-rate { font-size: 12px; color: var(--text-secondary); }
.mv2-spb-check { color: #10B981; font-size: 18px; }

/* ── 폼 기본 ── */
.mv2-form-title {
  font-size: 16px;
  font-weight: 800;
  color: var(--text-primary);
  margin: 0 0 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}
.mv2-fg { margin-bottom: 14px; }
.mv2-flbl { font-size: 12px; font-weight: 600; color: var(--text-secondary); margin-bottom: 6px; display: block; }
.mv2-fsel {
  width: 100%;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 10px 14px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='7' fill='none'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%236b7280' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
  transition: border-color .2s;
}
.mv2-fsel:focus { outline: none; border-color: #6366f1; }

/* ── 비자 칩 ── */
.mv2-visa-chips { display: flex; gap: 6px; flex-wrap: wrap; }
.mv2-vchip {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all .2s;
}
.mv2-vchip.active {
  background: rgba(99,102,241,0.1);
  border-color: #6366f1;
  color: #6366f1;
}

/* ── 슬라이더 ── */
.mv2-slider-wrap { display: flex; flex-direction: column; gap: 6px; }
.mv2-range {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 5px;
  background: linear-gradient(90deg, #6366f1 var(--val,50%), var(--border,#e5e7eb) var(--val,50%));
  border-radius: 3px;
  outline: none;
  cursor: pointer;
}
.mv2-range::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 18px; height: 18px;
  background: #6366f1;
  border-radius: 50%;
  box-shadow: 0 2px 6px rgba(99,102,241,0.4);
  cursor: pointer;
}
.mv2-slider-val { display: flex; align-items: baseline; gap: 4px; }
.mv2-big-num { font-size: 20px; font-weight: 900; color: var(--text-primary); }
.mv2-minmax, .mv2-slider-minmax { display: flex; justify-content: space-between; font-size: 10px; color: var(--text-secondary); }

/* ── 계산 결과 박스 ── */
.mv2-calc-result {
  background: linear-gradient(135deg, rgba(99,102,241,0.06), rgba(139,92,246,0.06));
  border: 1px solid rgba(99,102,241,0.18);
  border-radius: 14px;
  padding: 16px;
  margin-bottom: 14px;
}
.mv2-cr-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; }
.mv2-cr-title { font-size: 13px; font-weight: 700; color: var(--text-primary); }
.mv2-cr-live {
  font-size: 10.5px;
  font-weight: 600;
  color: #10B981;
  background: rgba(16,185,129,0.1);
  border-radius: 10px;
  padding: 3px 9px;
  display: flex; align-items: center; gap: 4px;
}
.mv2-cr-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 14px; }
.mv2-cr-item { background: var(--bg); border-radius: 10px; padding: 10px 12px; }
.mv2-cr-lbl { font-size: 11px; color: var(--text-secondary); margin-bottom: 3px; }
.mv2-cr-val { font-size: 15px; font-weight: 800; color: var(--text-primary); }

/* ── 승인 확률 게이지 ── */
.mv2-cr-approval { margin-top: 4px; }
.mv2-cra-label { display: flex; justify-content: space-between; align-items: center; margin-bottom: 6px; }
.mv2-cra-pct { font-size: 20px; font-weight: 900; color: #10B981; }
.mv2-cra-track {
  height: 10px;
  background: var(--border);
  border-radius: 5px;
  overflow: hidden;
  margin-bottom: 8px;
}
.mv2-cra-fill {
  height: 100%;
  border-radius: 5px;
  background: linear-gradient(90deg, #10B981, #06D6A0);
  transition: width .8s cubic-bezier(.4,0,.2,1), background .4s;
}
.mv2-cra-msg {
  font-size: 11.5px;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* ── 서류 체크리스트 ── */
.mv2-doc-list { display: flex; flex-direction: column; gap: 8px; margin-bottom: 12px; }
.mv2-doc-item {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px 14px;
  cursor: pointer;
  transition: all .2s;
}
.mv2-doc-item:hover { border-color: #10B981; background: rgba(16,185,129,0.03); }
.mv2-di-check {
  width: 20px; height: 20px;
  border: 2px solid var(--border);
  border-radius: 6px;
  flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 11px;
  transition: all .2s;
}
.mv2-di-check.done { background: #10B981; border-color: #10B981; color: #fff; }
.mv2-di-icon { font-size: 18px; flex-shrink: 0; }
.mv2-di-body { flex: 1; }
.mv2-di-name { font-size: 13px; font-weight: 600; color: var(--text-primary); margin-bottom: 2px; }
.mv2-di-desc { font-size: 11.5px; color: var(--text-secondary); }
.mv2-di-tag {
  font-size: 10.5px;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 6px;
  background: var(--border);
  color: var(--text-secondary);
  flex-shrink: 0;
}
.mv2-di-tag.ready { background: rgba(16,185,129,0.12); color: #10B981; }

/* ── 서류 진행바 ── */
.mv2-doc-progress { margin: 4px 0 14px; }
.mv2-dp-track {
  height: 5px;
  background: var(--border);
  border-radius: 3px;
  overflow: hidden;
  margin-bottom: 5px;
}
.mv2-dp-fill {
  height: 100%;
  border-radius: 3px;
  background: linear-gradient(90deg, #10B981, #06D6A0);
  transition: width .6s ease;
}

/* ── 신청 버튼 ── */
.mv2-submit-btn {
  width: 100%;
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
  color: #fff;
  border: none;
  border-radius: 12px;
  padding: 15px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: all .2s;
  display: flex; align-items: center; justify-content: center; gap: 8px;
  margin-top: 4px;   /* calc-result 와의 간격 */
  flex-shrink: 0;    /* overflow 시 버튼 축소 방지 */
}
.mv2-submit-btn:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(99,102,241,0.4); }

/* ════ TAB2: 내 대출 ════ */
.mv2-myloan-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.mv2-loan-hero {
  background: linear-gradient(135deg, #1a1060 0%, #2d1b8e 50%, #1e3a8a 100%);
  border-radius: 20px;
  padding: 28px;
  display: flex;
  gap: 20px;
  align-items: flex-start;
  grid-column: 1 / -1;
  margin-bottom: 4px;
  position: relative;
  overflow: hidden;
}
.mv2-loan-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 80% 50%, rgba(124,92,252,0.22) 0%, transparent 55%);
  pointer-events: none;
}
.mv2-lh-left { flex: 1; position: relative; z-index: 1; }
.mv2-lh-label { font-size: 12px; color: rgba(255,255,255,0.6); margin-bottom: 6px; }
.mv2-lh-amount { font-size: 32px; font-weight: 900; color: #fff; margin-bottom: 10px; letter-spacing: -1px; }
.mv2-lh-info { font-size: 12.5px; color: rgba(255,255,255,0.7); margin-bottom: 14px; line-height: 1.6; }

/* ── 대출 진행바 ── */
.mv2-lhp-labels { display: flex; justify-content: space-between; font-size: 11px; color: rgba(255,255,255,0.6); margin-bottom: 6px; }
.mv2-lhp-track {
  height: 10px;
  background: rgba(255,255,255,0.15);
  border-radius: 5px;
  overflow: hidden;
  margin-bottom: 4px;
}
.mv2-lhp-fill {
  height: 100%;
  border-radius: 5px;
  background: linear-gradient(90deg, #48E3C2, #0AC8A0);
  transition: width 1s ease;
}
.mv2-lhp-pct { font-size: 11px; color: rgba(255,255,255,0.65); }

/* ── SVG 게이지 ── */
/* ── 대출 진행바 래퍼 (mv2-lh-progress) ── */
.mv2-lh-progress { margin-bottom: 14px; }

.mv2-lh-right { position: relative; z-index: 1; flex-shrink: 0; }
/* mv2-lh-gauge-* 는 mv2-gauge-* 의 별칭 */
.mv2-gauge-wrap, .mv2-lh-gauge-wrap { position: relative; width: 120px; height: 120px; }
.mv2-gauge-text, .mv2-lh-gauge-text {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.mv2-gauge-pct, .mv2-lh-gauge-pct { font-size: 22px; font-weight: 900; color: #fff; }
.mv2-gauge-lbl, .mv2-lh-gauge-lbl { font-size: 10px; color: rgba(255,255,255,0.6); }

/* ── KPI 행 ── */
.mv2-kpi-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  grid-column: 1 / -1;
  margin-bottom: 4px;
}
.mv2-kpi-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 6px;
  transition: transform .2s;
}
.mv2-kpi-card:hover { transform: translateY(-2px); }
.mv2-kpi-icon { font-size: 22px; }
.mv2-kpi-val { font-size: 18px; font-weight: 900; color: var(--text-primary); }
.mv2-kpi-lbl { font-size: 11px; color: var(--text-secondary); }

/* ── 내대출 2컬럼 ── */
.mv2-myloan-two { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; grid-column: 1 / -1; }
.mv2-next-pay {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 20px;
}
.mv2-repay-list { display: flex; flex-direction: column; gap: 8px; }
.mv2-repay-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  background: var(--bg);
  border-radius: 12px;
  border: 1px solid var(--border);
}
.mv2-rr-icon {
  width: 36px; height: 36px;
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 16px;
  flex-shrink: 0;
}
.mv2-rr-body { flex: 1; }
.mv2-rr-month { font-size: 13px; font-weight: 700; color: var(--text-primary); }
.mv2-rr-date { font-size: 11px; color: var(--text-secondary); }
.mv2-rr-amt { font-size: 13px; font-weight: 700; color: var(--text-primary); }
.mv2-rr-status {
  font-size: 11px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 6px;
}
.mv2-repay-actions { display: flex; gap: 8px; margin-top: 12px; }
.mv2-repay-btn {
  flex: 1;
  border-radius: 10px;
  padding: 10px;
  font-size: 12.5px;
  font-weight: 700;
  cursor: pointer;
  border: none;
  transition: all .2s;
}
.mv2-repay-btn.primary { background: linear-gradient(135deg, #6366f1, #8b5cf6); color: #fff; }
.mv2-repay-btn.secondary { background: var(--bg); border: 1px solid var(--border); color: var(--text-primary); }
.mv2-repay-btn:hover { transform: translateY(-1px); }

/* ── 팁 카드 ── */
.mv2-tip-card { padding: 20px; }
.mv2-tip-title { font-size: 14px; font-weight: 800; color: var(--text-primary); margin-bottom: 14px; }
.mv2-tip-row { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--border); }
.mv2-tip-row:last-child { border-bottom: none; }
.mv2-tip-dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.mv2-tip-text { flex: 1; font-size: 12.5px; color: var(--text-primary); }
.mv2-tip-pts { font-size: 12px; font-weight: 700; }

/* ════ TAB3: 해외 송금 ════ */
.mv2-remit-layout {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 24px;
}
.mv2-remit-left { display: flex; flex-direction: column; gap: 18px; }
.mv2-remit-right { display: flex; flex-direction: column; gap: 16px; }

/* ── 라이브 배지 ── */
.mv2-live-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(16,185,129,0.1);
  border: 1px solid rgba(16,185,129,0.25);
  border-radius: 20px;
  padding: 4px 12px;
  font-size: 11.5px;
  font-weight: 600;
  color: #10B981;
}

/* ── 송금 박스 ── */
.mv2-remit-box {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 24px;
  position: relative;
}
.mv2-rmb-side { flex: 1; }
.mv2-rmb-country { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; }
.mv2-rmb-flag { font-size: 22px; }
.mv2-rmb-code { font-size: 13px; font-weight: 800; color: var(--text-primary); }
.mv2-rmb-cname { font-size: 11px; color: var(--text-secondary); }
.mv2-rmb-input-wrap {
  display: flex;
  align-items: center;
  background: var(--bg);
  border: 2px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  transition: border-color .2s;
}
.mv2-rmb-input-wrap:focus-within { border-color: #6366f1; }
.mv2-rmb-currency-sym {
  padding: 0 12px;
  font-size: 16px;
  font-weight: 700;
  color: var(--text-secondary);
  background: rgba(0,0,0,0.04);
  align-self: stretch;
  display: flex;
  align-items: center;
  border-right: 1px solid var(--border);
}
.mv2-rmb-input {
  flex: 1;
  border: none;
  background: transparent;
  padding: 14px 12px;
  font-size: 18px;
  font-weight: 800;
  color: var(--text-primary);
  outline: none;
  width: 100%;
}
.mv2-rmb-hint { font-size: 11.5px; color: var(--text-secondary); margin-top: 5px; }

/* ── 중간 스왑 영역 ── */
.mv2-rmb-mid {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 14px 0;
}
.mv2-rmb-swap {
  width: 40px; height: 40px;
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
  border: none;
  border-radius: 50%;
  font-size: 18px;
  color: #fff;
  cursor: pointer;
  transition: transform .2s;
}
.mv2-rmb-swap:hover { transform: rotate(180deg) scale(1.1); }
.mv2-rmb-fee {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-secondary);
  background: var(--bg);
  border-radius: 8px;
  padding: 5px 10px;
}
.mv2-rmb-save {
  font-size: 11.5px;
  font-weight: 700;
  color: #10B981;
  background: rgba(16,185,129,0.1);
  border-radius: 8px;
  padding: 5px 10px;
}
.mv2-rmb-country-sel {
  width: 100%;
  background: var(--bg);
  border: 2px solid var(--border);
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
  cursor: pointer;
  margin-bottom: 10px;
}
.mv2-rmb-result {
  font-size: 28px;
  font-weight: 900;
  color: var(--text-primary);
  margin-bottom: 4px;
}
.mv2-rmb-rate { font-size: 12px; color: var(--text-secondary); }

/* ── 송금 상세 내역 ── */
.mv2-remit-detail {
  background: var(--bg);
  border-radius: 12px;
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 12px;
}
.mv2-rmd-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12.5px;
}
.mv2-rmd-row span { color: var(--text-secondary); }
.mv2-rmd-row strong { font-weight: 700; color: var(--text-primary); }
.mv2-rmd-row.highlight { padding-top: 4px; }
.mv2-rmd-row.highlight span { font-weight: 700; color: var(--text-primary); }
.mv2-rmd-divider { height: 1px; background: var(--border); margin: 2px 0; }

/* ── 송금 내역 ── */
.mv2-remit-hist {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 16px;
}
.mv2-rh-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  cursor: pointer;
  transition: background .15s;
}
.mv2-rh-row:last-child { border-bottom: none; }
.mv2-rh-flag { font-size: 22px; flex-shrink: 0; }
.mv2-rh-body { flex: 1; }
.mv2-rh-to { font-size: 13px; font-weight: 700; color: var(--text-primary); }
.mv2-rh-date { font-size: 11px; color: var(--text-secondary); }
.mv2-rh-amounts { text-align: right; }
.mv2-rh-krw { font-size: 13px; font-weight: 700; color: var(--text-primary); }
.mv2-rh-recv { font-size: 11px; color: var(--text-secondary); }
.mv2-rh-status {
  font-size: 11px;
  font-weight: 700;
  color: #10B981;
  background: rgba(16,185,129,0.1);
  border-radius: 6px;
  padding: 3px 8px;
}

/* ── 혜택 카드 ── */
.mv2-benefit-card { padding: 20px; }
.mv2-bc-title { font-size: 14px; font-weight: 800; color: var(--text-primary); margin-bottom: 14px; }
.mv2-bc-item { display: flex; align-items: flex-start; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--border); }
.mv2-bc-item:last-child { border-bottom: none; }
.mv2-bc-icon {
  width: 34px; height: 34px;
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 16px;
  flex-shrink: 0;
}
.mv2-bc-name { font-size: 13px; font-weight: 700; color: var(--text-primary); margin-bottom: 2px; }
.mv2-bc-desc { font-size: 11.5px; color: var(--text-secondary); }

/* ════ TAB4: 커뮤니티 ════ */
.mv2-comm-layout { display: grid; grid-template-columns: 1fr 320px; gap: 24px; }
.mv2-comm-main { display: flex; flex-direction: column; gap: 20px; }
.mv2-comm-side { display: flex; flex-direction: column; gap: 16px; }

/* ── 평점 배지 ── */
.mv2-rating-badge {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 16px;
}
.mv2-rating-badge .score { font-size: 40px; font-weight: 900; color: var(--text-primary); }
.mv2-rating-badge .sub { font-size: 13px; color: var(--text-secondary); }

/* ── 리뷰 그리드 ── */
.mv2-review-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.mv2-review-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 16px;
  transition: transform .2s, border-color .2s;
}
.mv2-review-card:hover { transform: translateY(-2px); border-color: var(--blue-primary); }
.mv2-rc-top { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 10px; }
.mv2-rc-avatar {
  width: 38px; height: 38px;
  border-radius: 50%;
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
  display: flex; align-items: center; justify-content: center;
  font-size: 16px;
  color: #fff;
  flex-shrink: 0;
  font-weight: 700;
}
.mv2-rc-meta { flex: 1; }
.mv2-rc-name { font-size: 13px; font-weight: 700; color: var(--text-primary); }
.mv2-rc-job { font-size: 11px; color: var(--text-secondary); }
.mv2-rc-date { font-size: 10.5px; color: var(--text-secondary); }
.mv2-rc-right { text-align: right; flex-shrink: 0; }
.mv2-rc-stars { font-size: 11px; color: #F59E0B; line-height: 1; margin-bottom: 2px; }
.mv2-rc-score { font-size: 14px; font-weight: 800; color: #F59E0B; }
.mv2-rc-text {
  font-size: 12.5px;
  color: var(--text-secondary);
  line-height: 1.6;
  margin: 0 0 10px;
  font-style: italic;
}
.mv2-rc-pts {
  font-size: 11px;
  font-weight: 700;
  color: #8b5cf6;
  background: rgba(139,92,246,0.08);
  border-radius: 6px;
  padding: 3px 9px;
  display: inline-block;
}

/* ── 공지 목록 ── */
.mv2-notice-list { display: flex; flex-direction: column; gap: 4px; }
.mv2-notice-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 12px;
  border-radius: 10px;
  cursor: pointer;
  transition: background .15s;
  border: 1px solid transparent;
}
.mv2-notice-row:hover { background: var(--hover); border-color: var(--border); }
.mv2-nr-flag { font-size: 18px; flex-shrink: 0; }
.mv2-nr-body { flex: 1; }
.mv2-nr-title { font-size: 13px; font-weight: 600; color: var(--text-primary); margin-bottom: 2px; }
.mv2-nr-meta { font-size: 11px; color: var(--text-secondary); }
.mv2-nr-tag {
  font-size: 10.5px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 6px;
  flex-shrink: 0;
}
.mv2-nr-arrow { color: var(--text-secondary); font-size: 11px; }

/* ── 고용주 카드 ── */
.mv2-employer-card { padding: 22px; }
.mv2-ec-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  color: #6366f1;
  background: rgba(99,102,241,0.1);
  border-radius: 20px;
  padding: 4px 12px;
  margin-bottom: 10px;
}
.mv2-ec-title {
  font-size: 18px;
  font-weight: 900;
  color: var(--text-primary);
  line-height: 1.3;
  margin-bottom: 8px;
}
.mv2-ec-desc { font-size: 13px; color: var(--text-secondary); line-height: 1.6; margin-bottom: 14px; }
.mv2-ec-features { display: flex; flex-direction: column; gap: 7px; margin-bottom: 16px; }
.mv2-ec-feat {
  display: flex;
  align-items: center;
  font-size: 13px;
  color: var(--text-primary);
}
.mv2-ec-btn {
  width: 100%;
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
  color: #fff;
  border: none;
  border-radius: 10px;
  padding: 12px;
  font-size: 13.5px;
  font-weight: 700;
  cursor: pointer;
  transition: all .2s;
}
.mv2-ec-btn:hover { transform: translateY(-1px); box-shadow: 0 6px 18px rgba(99,102,241,0.35); }

/* ── 파트너 목록 ── */
.mv2-partner-list { display: flex; flex-direction: column; gap: 4px; }
.mv2-partner-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 12px;
  border-radius: 10px;
  cursor: pointer;
  transition: background .15s;
  border: 1px solid transparent;
}
.mv2-partner-row:hover { background: var(--hover); border-color: var(--border); }
.mv2-pr-icon {
  width: 36px; height: 36px;
  background: var(--bg);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
  border: 1px solid var(--border);
}
.mv2-pr-body { flex: 1; }
.mv2-pr-name { font-size: 13px; font-weight: 700; color: var(--text-primary); }
.mv2-pr-desc { font-size: 11px; color: var(--text-secondary); }
.mv2-pr-arrow { color: var(--text-secondary); font-size: 11px; }

/* ── 상담 카드 ── */
.mv2-consult-card { padding: 22px; text-align: center; }
.mv2-con-title { font-size: 18px; font-weight: 900; color: var(--text-primary); margin-bottom: 6px; }
.mv2-con-sub { font-size: 12.5px; color: var(--text-secondary); line-height: 1.6; margin-bottom: 14px; }
.mv2-con-langs { display: flex; justify-content: center; gap: 6px; flex-wrap: wrap; margin-bottom: 16px; }
.mv2-con-flag { font-size: 22px; }

/* ════ 반응형 ════ */
@media (max-width: 1100px) {
  .mv2-hero { grid-template-columns: 1fr; }
  .mv2-country-card { display: none; }
  .mv2-apply-grid { grid-template-columns: 1fr; }
  .mv2-form-col { position: static; max-height: none; overflow-y: visible; padding-bottom: 0; }
  .mv2-myloan-two { grid-template-columns: 1fr; }
  .mv2-remit-layout { grid-template-columns: 1fr; }
  .mv2-comm-layout { grid-template-columns: 1fr; }
  .mv2-comm-side { display: grid; grid-template-columns: 1fr 1fr; }
  .mv2-kpi-row { grid-template-columns: repeat(2,1fr); }
}
@media (max-width: 768px) {
  .mv2-hero { padding: 28px 20px; }
  .mv2-hero-h2 { font-size: 22px; }
  .mv2-cta-row { flex-direction: column; }
  .mv2-btn-primary, .mv2-btn-secondary, .mv2-btn-ghost { width: 100%; justify-content: center; }
  .mv2-tab { font-size: 11.5px; padding: 10px 5px; gap: 4px; }
  .mv2-pc-stats { grid-template-columns: repeat(2,1fr); }
  .mv2-review-grid { grid-template-columns: 1fr; }
  .mv2-loan-hero { flex-direction: column; }
  .mv2-kpi-row { grid-template-columns: repeat(2,1fr); }
  .mv2-comm-side { grid-template-columns: 1fr; }
  .mv2-country-grid { grid-template-columns: repeat(4,1fr); }
}
/* ════════════════════════════════════════════════════════════════
   DASHBOARD V2 — 탭 시스템 + 분석 + 시뮬레이터 + 리포트
   ════════════════════════════════════════════════════════════════ */

/* ── 대시보드 탭 네비 ── */
.db-tab-nav {
  display: flex;
  gap: 6px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 6px;
  margin-bottom: 24px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}
.db-tab-nav::-webkit-scrollbar { display: none; }
.db-tab {
  padding: 10px 18px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
  cursor: pointer;
  border: none;
  background: transparent;
  transition: all 0.22s;
  white-space: nowrap;
  flex-shrink: 0;
}
.db-tab.active {
  background: var(--blue-primary);
  color: #fff;
  box-shadow: 0 4px 12px rgba(10,91,255,0.28);
}
.db-tab:hover:not(.active) { background: var(--bg); color: var(--text-primary); transform: translateY(-1px); }

/* ── 패널 전환 ── */
.db-panel { display: none; animation: none; }
.db-panel.active {
  display: block;
  animation: panelFadeIn 0.3s ease;
}
@keyframes panelFadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ════ TAB 2: 점수 분석 ════ */
.dbf-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

/* 요소 아이템 */
.dbf-factor-list { display: flex; flex-direction: column; gap: 4px; }
.dbf-factor-item {
  border: 1.5px solid var(--border);
  border-radius: 14px;
  padding: 14px 16px;
  cursor: pointer;
  transition: all 0.2s;
  background: var(--bg);
}
.dbf-factor-item:hover { border-color: var(--blue-primary); background: rgba(10,91,255,0.02); }
.dbf-factor-item.expanded { border-color: var(--blue-primary); box-shadow: 0 4px 14px rgba(10,91,255,0.1); }
.dbf-fi-header { display: flex; align-items: center; gap: 12px; }
.dbf-fi-icon {
  width: 36px; height: 36px; border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 17px; flex-shrink: 0;
}
.dbf-fi-info { flex: 1; min-width: 0; }
.dbf-fi-name { font-size: 13px; font-weight: 700; color: var(--text-primary); }
.dbf-fi-desc { font-size: 11px; color: var(--text-secondary); margin-top: 1px; }
.dbf-fi-right { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; flex-shrink: 0; }
.dbf-fi-score { font-size: 14px; font-weight: 800; }
.dbf-fi-delta { font-size: 11px; font-weight: 700; }
.dbf-fi-delta.up { color: #10B981; }
.dbf-fi-delta.down { color: #EF4444; }
.dbf-fi-arrow {
  font-size: 18px; color: var(--text-muted);
  transition: transform 0.25s; margin-left: 6px; flex-shrink: 0;
}
.dbf-fi-bar { display: flex; align-items: center; gap: 8px; margin-top: 10px; }
.dbf-fi-bar-bg {
  flex: 1; height: 5px; background: var(--border);
  border-radius: 99px; overflow: hidden;
}
.dbf-fi-bar-fill {
  height: 100%; border-radius: 99px;
  transition: width 1.2s cubic-bezier(0.4,0,0.2,1);
}
.dbf-fi-pct { font-size: 11px; font-weight: 700; color: var(--text-secondary); flex-shrink: 0; }
.dbf-fi-expand {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: max-height 0.38s cubic-bezier(0.4,0,0.2,1), opacity 0.28s ease, padding 0.2s;
  padding: 0 4px;
}
.dbf-factor-item.expanded .dbf-fi-expand {
  max-height: 400px;
  opacity: 1;
  padding: 12px 4px 4px;
}
.dbf-expand-body {
  background: var(--surface); border-radius: 12px; padding: 14px;
  border: 1px solid var(--border);
}
.dbf-expand-detail {
  font-size: 12.5px; color: var(--text-secondary); line-height: 1.65; margin: 0 0 12px;
}
.dbf-tips-hd { font-size: 12px; font-weight: 700; color: var(--text-primary); margin-bottom: 8px; }
.dbf-tips-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 6px; }
.dbf-tip-item {
  display: flex; align-items: center; gap: 8px;
  font-size: 12px; color: var(--text-secondary);
}
.dbf-tip-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--blue-primary); flex-shrink: 0;
}
.dbf-action-btn {
  padding: 8px 16px; border-radius: 10px; font-size: 12px; font-weight: 700;
  cursor: pointer; transition: all 0.2s; border: none;
  background: var(--blue-primary); color: #fff;
}
.dbf-action-btn:hover { opacity: 0.85; transform: translateY(-1px); }
.dbf-action-btn.secondary {
  background: transparent; color: var(--blue-primary);
  border: 1.5px solid var(--blue-primary);
}
.dbf-action-btn.secondary:hover { background: rgba(10,91,255,0.06); }

/* 비교 셀렉트 */
.dbf-compare-sel-wrap { display: flex; align-items: center; }
.dbf-sel {
  padding: 7px 12px; border: 1.5px solid var(--border);
  border-radius: 10px; background: var(--bg); color: var(--text-primary);
  font-size: 12px; font-weight: 600; cursor: pointer;
}
.dbf-sel:focus { outline: none; border-color: var(--blue-primary); }

/* ════ TAB 3: 이력 조회 ════ */
.dbh-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.dbh-filter-wrap { display: flex; gap: 4px; }
.dbh-flt {
  padding: 5px 12px; border-radius: 20px; font-size: 11.5px; font-weight: 600;
  border: 1.5px solid var(--border); color: var(--text-secondary);
  background: var(--bg); cursor: pointer; transition: all 0.2s;
}
.dbh-flt.active { background: var(--blue-primary); color: #fff; border-color: var(--blue-primary); }

.dbh-log-list { display: flex; flex-direction: column; gap: 6px; max-height: 380px; overflow-y: auto; }
.dbh-log-list::-webkit-scrollbar { width: 4px; }
.dbh-log-list::-webkit-scrollbar-track { background: transparent; }
.dbh-log-list::-webkit-scrollbar-thumb { background: var(--border); border-radius: 4px; }
.dbh-log-row {
  display: flex; align-items: center; gap: 12px;
  padding: 11px 14px; border-radius: 12px;
  background: var(--bg); border: 1px solid var(--border); transition: background 0.15s;
}
.dbh-log-row:hover { background: rgba(10,91,255,0.03); }
.dbh-log-icon {
  width: 34px; height: 34px; border-radius: 9px;
  display: flex; align-items: center; justify-content: center;
  font-size: 15px; flex-shrink: 0;
}
.dbh-log-icon.up   { background: rgba(16,185,129,0.1); }
.dbh-log-icon.down { background: rgba(239,68,68,0.1); }
.dbh-log-info { flex: 1; min-width: 0; }
.dbh-log-event { font-size: 12.5px; font-weight: 600; color: var(--text-primary); }
.dbh-log-meta  { font-size: 11px; color: var(--text-muted); margin-top: 1px; }
.dbh-log-cat {
  font-size: 10px; font-weight: 700; padding: 1px 7px; border-radius: 20px;
  background: var(--border); color: var(--text-secondary);
}
.dbh-log-delta { font-size: 13px; font-weight: 800; flex-shrink: 0; }
.dbh-log-delta.up   { color: #10B981; }
.dbh-log-delta.down { color: #EF4444; }

/* ════ TAB 4: 시뮬레이터 ════ */
.dbs-layout {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 20px;
  align-items: start;
}
.dbs-left { display: flex; flex-direction: column; gap: 20px; }

/* 시나리오 카드 */
.dbs-scenario-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
.dbs-scenario-card {
  background: var(--bg); border: 1.5px solid var(--border);
  border-radius: 14px; padding: 14px 12px; cursor: pointer;
  transition: all 0.22s; position: relative; text-align: center;
}
.dbs-scenario-card:hover { border-color: var(--blue-primary); transform: translateY(-2px); }
.dbs-scenario-card.selected {
  border-color: var(--blue-primary);
  background: rgba(10,91,255,0.05);
  box-shadow: 0 0 0 2px rgba(10,91,255,0.18);
}
.dbs-sc-icon { font-size: 22px; margin-bottom: 6px; }
.dbs-sc-label { font-size: 11.5px; font-weight: 600; color: var(--text-primary); margin-bottom: 4px; line-height: 1.3; }
.dbs-sc-pts { font-size: 13px; font-weight: 800; }
.dbs-sc-check {
  position: absolute; top: 8px; right: 8px;
  width: 18px; height: 18px; border-radius: 50%;
  background: var(--blue-primary); color: #fff;
  font-size: 10px; font-weight: 800; display: none;
  align-items: center; justify-content: center;
}
.dbs-scenario-card.selected .dbs-sc-check { display: flex; }

/* 맞춤 조건 */
.dbs-custom-grid { display: flex; flex-direction: column; gap: 16px; }
.dbs-custom-item { display: flex; flex-direction: column; gap: 8px; }
.dbs-cus-lbl { font-size: 12px; font-weight: 700; color: var(--text-secondary); }
.dbs-range-wrap input[type=range] {
  width: 100%; accent-color: var(--blue-primary); height: 4px; cursor: pointer;
}
.dbs-range-labels {
  display: flex; justify-content: space-between;
  font-size: 10.5px; color: var(--text-muted); margin-top: 3px;
}
.dbs-range-labels span:nth-child(2) { font-weight: 700; color: var(--blue-primary); }

/* 결과 카드 */
.dbs-result-card {
  background: linear-gradient(135deg, #0d1b4b, #1a2a6e);
  border-radius: 20px; padding: 24px; color: #fff; margin-bottom: 16px;
}
.dbs-result-hd { font-size: 13px; font-weight: 700; color: rgba(255,255,255,0.7); margin-bottom: 20px; }
.dbs-score-compare { display: flex; align-items: center; justify-content: space-between; margin-bottom: 24px; }
.dbs-sc-now, .dbs-sc-pred { text-align: center; }
.dbs-sc-now-lbl, .dbs-sc-pred-lbl { font-size: 11px; color: rgba(255,255,255,0.55); margin-bottom: 4px; }
.dbs-sc-now-val { font-size: 38px; font-weight: 900; color: rgba(255,255,255,0.7); }
.dbs-sc-pred-val { font-size: 38px; font-weight: 900; color: #48E3C2; transition: all 0.4s; }
.dbs-sc-now-grade, .dbs-sc-pred-grade {
  font-size: 14px; font-weight: 800;
  background: rgba(255,255,255,0.12); border-radius: 20px;
  padding: 3px 12px; display: inline-block; margin-top: 4px;
}
.dbs-sc-pred-grade { background: rgba(72,227,194,0.2); color: #48E3C2; }
.dbs-arrow-col { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.dbs-arrow-icon { font-size: 22px; color: rgba(255,255,255,0.4); }
.dbs-delta-pill {
  font-size: 13px; font-weight: 800; padding: 4px 12px; border-radius: 20px;
  background: #DCFCE7; color: #15803D; transition: all 0.3s;
}

/* 게이지 */
.dbs-gauge-wrap { margin-bottom: 20px; }
.dbs-gauge-track {
  height: 12px; background: rgba(255,255,255,0.1);
  border-radius: 6px; overflow: visible; position: relative; margin-bottom: 6px;
}
.dbs-gauge-fill-base {
  position: absolute; inset: 0;
  background: rgba(255,255,255,0.2); border-radius: 6px;
  transition: width 0.6s ease;
}
.dbs-gauge-fill-pred {
  position: absolute; top: 0; left: 0; height: 100%;
  background: linear-gradient(90deg, #48E3C2, #0AC8A0);
  border-radius: 6px; transition: width 0.5s cubic-bezier(0.4,0,0.2,1);
}
.dbs-gauge-marker {
  position: absolute; top: -4px;
  width: 20px; height: 20px; border-radius: 50%;
  background: #fff; box-shadow: 0 2px 8px rgba(0,0,0,0.3);
  transform: translateX(-50%); transition: left 0.5s cubic-bezier(0.4,0,0.2,1);
}
.dbs-gauge-labels {
  display: flex; justify-content: space-between;
  font-size: 10px; color: rgba(255,255,255,0.45);
}

/* 영향도 */
.dbs-impact-list { margin-bottom: 16px; }
.dbs-impact-hd { font-size: 11px; font-weight: 700; color: rgba(255,255,255,0.55); margin-bottom: 10px; text-transform: uppercase; letter-spacing: 0.5px; }
.dbs-impact-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 7px 0; border-bottom: 1px solid rgba(255,255,255,0.07); font-size: 12.5px;
}
.dbs-impact-row:last-child { border-bottom: none; }
.dbs-impact-text { color: rgba(255,255,255,0.75); }
.dbs-impact-pts { font-weight: 800; }
.dbs-impact-pts.up   { color: #48E3C2; }
.dbs-impact-pts.down { color: #EF4444; }

/* 달성 타임라인 */
.dbs-timeline { margin-bottom: 20px; }
.dbs-tl-hd { font-size: 11px; font-weight: 700; color: rgba(255,255,255,0.55); margin-bottom: 10px; }
.dbs-tl-grid { display: flex; gap: 10px; }
.dbs-tl-item { flex: 1; text-align: center; background: rgba(255,255,255,0.07); border-radius: 12px; padding: 10px 6px; }
.dbs-tl-grade { font-size: 16px; font-weight: 900; color: #fff; margin-bottom: 4px; }
.dbs-tl-period { font-size: 11px; color: #48E3C2; font-weight: 700; }

.dbs-apply-all-btn {
  width: 100%; padding: 12px; border-radius: 12px;
  background: linear-gradient(135deg, #48E3C2, #0AC8A0);
  color: #fff; font-size: 13px; font-weight: 800;
  border: none; cursor: pointer; transition: all 0.2s;
  box-shadow: 0 4px 14px rgba(72,227,194,0.3);
}
.dbs-apply-all-btn:hover { transform: translateY(-2px); opacity: 0.9; }

/* ════ TAB 5: AI 리포트 ════ */
.dbr-layout { display: flex; flex-direction: column; gap: 20px; }

.dbr-header {
  display: flex; justify-content: space-between; align-items: center;
  padding: 28px 32px; gap: 24px;
  background: linear-gradient(135deg, #EBF3FF 0%, #F0FAFF 100%);
  border: 1px solid rgba(10,91,255,0.12);
}
.dbr-hd-badge {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 11.5px; font-weight: 700; color: var(--blue-primary);
  background: rgba(10,91,255,0.08); border: 1px solid rgba(10,91,255,0.15);
  padding: 4px 12px; border-radius: 20px; margin-bottom: 10px;
}
.dbr-hd-title { font-size: 20px; font-weight: 800; color: var(--text-primary); margin: 0 0 6px; }
.dbr-hd-sub   { font-size: 13px; color: var(--text-secondary); margin: 0 0 14px; }
.dbr-hd-meta  { display: flex; gap: 16px; flex-wrap: wrap; }
.dbr-hd-meta span { font-size: 11.5px; color: var(--text-secondary); font-weight: 500; }
.dbr-hd-right { flex-shrink: 0; position: relative; display: flex; align-items: center; }
.dbr-overall-num {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%,-60%);
  font-size: 22px; font-weight: 900; color: var(--blue-primary);
}
.dbr-overall-grade {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%,30%);
  font-size: 13px; font-weight: 800; color: var(--text-secondary);
}

.dbr-sections { display: flex; flex-direction: column; gap: 20px; }
.dbr-two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.dbr-sec-title { font-size: 14px; font-weight: 800; margin-bottom: 14px; }

/* 강점/개선점 리스트 */
.dbr-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.dbr-list-item {
  display: flex; align-items: flex-start; gap: 12px;
  padding: 12px 14px; border-radius: 12px; font-size: 12.5px;
}
.dbr-list-item strong { display: block; font-size: 13px; color: var(--text-primary); margin-bottom: 2px; }
.dbr-list-item span:last-child { color: var(--text-secondary); font-size: 11.5px; }
.dbr-good { background: rgba(16,185,129,0.05); border: 1px solid rgba(16,185,129,0.15); }
.dbr-warn { background: rgba(245,158,11,0.05); border: 1px solid rgba(245,158,11,0.15); }
.dbr-li-icon { font-size: 16px; flex-shrink: 0; margin-top: 1px; }

/* AI 리포트 타임라인 */
.dbr-live-tag {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 10.5px; font-weight: 700; color: #10B981;
  background: rgba(16,185,129,0.08); border: 1px solid rgba(16,185,129,0.2);
  padding: 3px 9px; border-radius: 20px;
}
.dbr-action-timeline { display: flex; flex-direction: column; gap: 20px; }
.dbr-tl-period { display: flex; flex-direction: column; gap: 8px; }
.dbr-tl-period-hd {
  display: flex; align-items: center; gap: 8px;
  font-size: 12px; font-weight: 800; margin-bottom: 2px;
}
.dbr-tl-dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.dbr-tl-item {
  display: flex; align-items: center; gap: 10px;
  padding: 11px 14px; border-radius: 12px;
  background: var(--bg); border: 1px solid var(--border); transition: all 0.2s;
}
.dbr-tl-item.done { opacity: 0.55; background: rgba(16,185,129,0.03); }
.dbr-tl-item-check {
  width: 20px; height: 20px; border-radius: 6px; flex-shrink: 0;
  border: 2px solid var(--border);
  display: flex; align-items: center; justify-content: center; font-size: 10px;
}
.dbr-tl-item-check.checked { background: #10B981; border-color: #10B981; color: #fff; }
.dbr-tl-item-body { flex: 1; display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.dbr-tl-item-text { font-size: 12.5px; font-weight: 600; color: var(--text-primary); }
.dbr-tl-item-pts  { font-size: 12px; font-weight: 800; color: #10B981; flex-shrink: 0; }
.dbr-tl-apply-btn {
  padding: 6px 14px; border-radius: 8px; font-size: 11.5px; font-weight: 700;
  background: var(--blue-primary); color: #fff; border: none; cursor: pointer;
  transition: all 0.2s; flex-shrink: 0;
}
.dbr-tl-apply-btn:hover { opacity: 0.85; }
.dbr-done-lbl { font-size: 11px; font-weight: 700; color: #10B981; flex-shrink: 0; }

/* 경로 */
.dbr-path-row {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 0; border-bottom: 1px solid var(--border); margin-bottom: 16px;
  flex-wrap: wrap; gap: 8px;
}
.dbr-path-item { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.dbr-path-circle {
  width: 44px; height: 44px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; font-weight: 900; border: 2.5px solid var(--border);
  color: var(--text-muted); background: var(--bg);
}
.dbr-path-item.past .dbr-path-circle { border-color: #10B981; background: rgba(16,185,129,0.06); color: #10B981; }
.dbr-path-item.current .dbr-path-circle {
  border-color: var(--blue-primary); background: var(--blue-primary);
  color: #fff; box-shadow: 0 4px 12px rgba(10,91,255,0.3);
}
.dbr-path-item.future .dbr-path-circle { border-color: var(--border); border-style: dashed; color: var(--text-muted); }
.dbr-path-score { font-size: 10.5px; color: var(--text-secondary); font-weight: 600; }
.dbr-path-label { font-size: 10px; color: var(--text-muted); }
.dbr-path-item.current .dbr-path-label { color: var(--blue-primary); font-weight: 700; }
.dbr-path-item.past    .dbr-path-label { color: #10B981; }

/* 비교 */
.dbr-compare-grid { display: flex; flex-direction: column; gap: 14px; }
.dbr-cmp-row { display: grid; grid-template-columns: 90px 1fr 40px; align-items: center; gap: 12px; }
.dbr-cmp-lbl { font-size: 12px; font-weight: 600; color: var(--text-secondary); }
.dbr-cmp-bars { display: flex; flex-direction: column; gap: 4px; }
.dbr-cmp-bar-wrap { display: flex; align-items: center; gap: 8px; }
.dbr-cmp-bar {
  height: 8px; border-radius: 4px; transition: width 1s cubic-bezier(0.4,0,0.2,1); min-width: 4px;
}
.dbr-cmp-val { font-size: 11px; font-weight: 700; flex-shrink: 0; }
.dbr-cmp-diff { font-size: 13px; font-weight: 800; text-align: right; }
.dbr-cmp-diff.up   { color: #10B981; }
.dbr-cmp-diff.down { color: #EF4444; }

/* ── 반응형 ── */
@media (max-width: 1100px) {
  .dbf-grid   { grid-template-columns: 1fr; }
  .dbh-grid   { grid-template-columns: 1fr; }
  .dbs-layout { grid-template-columns: 1fr; }
  .dbs-right  { position: static; }
  .dbs-scenario-grid { grid-template-columns: repeat(2,1fr); }
  .dbr-two-col { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  .db-tab { padding: 9px 10px; font-size: 11.5px; }
  .db-tab-nav { gap: 4px; padding: 5px; border-radius: 14px; }
  .dbr-header { flex-direction: column; padding: 20px; }
  .dbs-scenario-grid { grid-template-columns: repeat(2,1fr); }
  .dbr-path-row { justify-content: center; }
  .dbs-sc-now-val, .dbs-sc-pred-val { font-size: 30px; }
  .dbr-cmp-row { grid-template-columns: 70px 1fr 36px; }
}

/* ── 시뮬레이터 결과카드 내 등급 색상 트랜지션 ── */
.dbs-sc-pred-grade { transition: color 0.35s, background 0.35s; }

/* ── 달성 타임라인 달성 시 강조 ── */
.dbs-tl-period { transition: background 0.3s; }
.dbs-tl-period .dbs-tl-period[style*="달성"] { color: #10B981 !important; }


/* ════════════════════════════════════════════════════════════════
   ADMIN PAGE — 전체 관리자 대시보드 (adm-* prefix)
   ════════════════════════════════════════════════════════════════ */

/* ── 전역 리셋 (어드민 전용) ── */
.adm-body {
  margin: 0; padding: 0;
  background: var(--bg, #F4F6FB);
  color: var(--text-primary, #1a1a2e);
  font-family: 'Inter', sans-serif;
  min-height: 100vh;
}

/* ── 어드민 쉘 레이아웃 ── */
.adm-shell {
  display: flex;
  min-height: 100vh;
}

/* ══════════════════════════════════════════
   사이드바
══════════════════════════════════════════ */
.adm-sidebar {
  width: 240px;
  flex-shrink: 0;
  background: var(--surface, #fff);
  border-right: 1px solid var(--border, #E8EAF0);
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
  overflow-x: hidden;
  z-index: 200;
  transition: transform .3s;
}
.adm-sidebar::-webkit-scrollbar { width: 3px; }
.adm-sidebar::-webkit-scrollbar-thumb { background: var(--border); border-radius: 2px; }

/* 브랜드 */
.adm-sb-brand {
  padding: 20px 16px 14px;
  border-bottom: 1px solid var(--border);
}
.adm-sb-logo { display: flex; align-items: center; gap: 10px; }
.adm-sb-icon {
  width: 38px; height: 38px;
  background: linear-gradient(135deg, #1a1060, #6366f1);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 900; color: #fff;
  flex-shrink: 0;
}
.adm-sb-title { font-size: 15px; font-weight: 800; color: var(--text-primary); }
.adm-sb-title span { color: #6366f1; }
.adm-sb-ver { font-size: 10.5px; color: var(--text-secondary); }

/* 네비 */
.adm-sb-nav { flex: 1; padding: 12px 8px; }
.adm-sb-section {
  font-size: 10px;
  font-weight: 700;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.8px;
  padding: 6px 8px 4px;
  margin-top: 4px;
}
.adm-sb-item {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 9px 10px;
  border-radius: 10px;
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all .18s;
  text-decoration: none;
  margin-bottom: 1px;
  user-select: none;
}
.adm-sb-item i { width: 16px; text-align: center; font-size: 13px; flex-shrink: 0; }
.adm-sb-item span:nth-child(2) { flex: 1; }
.adm-sb-item:hover { background: var(--hover, #F4F6FB); color: var(--text-primary); }
.adm-sb-item.active {
  background: linear-gradient(135deg, rgba(99,102,241,0.1), rgba(139,92,246,0.1));
  color: #6366f1;
  border: 1px solid rgba(99,102,241,0.18);
}

/* 배지 */
.adm-sb-badge {
  font-size: 10px; font-weight: 800;
  background: #6366f1; color: #fff;
  border-radius: 10px; padding: 2px 7px;
  min-width: 20px; text-align: center;
  flex-shrink: 0;
}
.adm-sb-badge.red    { background: #EF4444; }
.adm-sb-badge.orange { background: #F97316; }
.adm-sb-badge.purple { background: #8b5cf6; }

/* 라이브 도트 */
.adm-sb-dot.live {
  width: 7px; height: 7px;
  background: #10B981;
  border-radius: 50%;
  animation: livePulse 1.4s ease-in-out infinite;
  flex-shrink: 0;
}

/* 푸터 */
.adm-sb-footer {
  border-top: 1px solid var(--border);
  padding: 14px 12px;
}
.adm-sb-admin { display: flex; align-items: center; gap: 9px; }
.adm-sb-avatar {
  width: 34px; height: 34px;
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 800; color: #fff;
  flex-shrink: 0;
}
.adm-sb-aname { font-size: 12.5px; font-weight: 700; color: var(--text-primary); }
.adm-sb-arole { font-size: 10.5px; color: #6366f1; font-weight: 600; }
.adm-sb-back {
  margin-left: auto;
  color: var(--text-secondary);
  font-size: 12px;
  text-decoration: none;
  transition: color .2s;
  padding: 4px;
}
.adm-sb-back:hover { color: #6366f1; }

/* ══════════════════════════════════════════
   메인 영역
══════════════════════════════════════════ */
.adm-main {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

/* ── 상단 바 ── */
.adm-topbar {
  height: 60px;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  gap: 16px;
  position: sticky;
  top: 0;
  z-index: 100;
}
.adm-tb-left { display: flex; align-items: center; gap: 14px; }
.adm-menu-toggle {
  background: none; border: none; font-size: 16px;
  color: var(--text-secondary); cursor: pointer; padding: 4px;
  display: none;
}
.adm-tb-title { font-size: 16px; font-weight: 800; color: var(--text-primary); }
.adm-tb-live {
  display: flex; align-items: center; gap: 6px;
  font-size: 11.5px; font-weight: 600; color: #10B981;
  background: rgba(16,185,129,0.08);
  border-radius: 20px; padding: 4px 10px;
}
.adm-live-dot {
  width: 6px; height: 6px;
  background: #10B981; border-radius: 50%;
  animation: livePulse 1.4s ease-in-out infinite;
  flex-shrink: 0;
}
.adm-live-badge {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 11px; font-weight: 600; color: #10B981;
  background: rgba(16,185,129,0.1); border-radius: 10px; padding: 3px 10px;
}

.adm-tb-right { display: flex; align-items: center; gap: 10px; }
.adm-tb-search {
  display: flex; align-items: center; gap: 8px;
  background: var(--bg); border: 1px solid var(--border);
  border-radius: 10px; padding: 7px 12px;
  transition: border-color .2s;
}
.adm-tb-search:focus-within { border-color: #6366f1; }
.adm-tb-search i { color: var(--text-secondary); font-size: 12px; }
.adm-tb-search input {
  border: none; background: transparent; outline: none;
  font-size: 12.5px; color: var(--text-primary); width: 220px;
}
.adm-tb-icon-btn {
  position: relative;
  width: 36px; height: 36px;
  background: var(--bg); border: 1px solid var(--border);
  border-radius: 10px; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; color: var(--text-secondary);
  transition: all .2s;
}
.adm-tb-icon-btn:hover { border-color: #6366f1; color: #6366f1; }
.adm-notif-dot {
  position: absolute; top: -4px; right: -4px;
  width: 16px; height: 16px;
  background: #EF4444; color: #fff;
  border-radius: 50%; font-size: 9px; font-weight: 800;
  display: flex; align-items: center; justify-content: center;
}
.adm-tb-date {
  font-size: 11.5px; color: var(--text-secondary); white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

/* ══════════════════════════════════════════
   패널
══════════════════════════════════════════ */
.adm-panels { flex: 1; padding: 24px; overflow-y: auto; }
.adm-panel { display: none; }
.adm-panel.active {
  display: block;
  animation: admFadeIn .28s ease;
}
@keyframes admFadeIn {
  from { opacity:0; transform:translateY(6px); }
  to   { opacity:1; transform:translateY(0); }
}

/* ── 페이지 헤더 ── */
.adm-page-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 20px; gap: 16px;
}
.adm-ph-title { font-size: 20px; font-weight: 900; color: var(--text-primary); margin-bottom: 4px; }
.adm-ph-sub { font-size: 13px; color: var(--text-secondary); }
.adm-ph-actions { display: flex; gap: 8px; }

/* ── KPI 카드 행 ── */
.adm-kpi-row {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 14px;
  margin-bottom: 22px;
}
.adm-kpi-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 16px;
  display: flex; align-items: center; gap: 12px;
  transition: transform .2s, box-shadow .2s;
}
.adm-kpi-card:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(0,0,0,0.06); }
.adm-kpi-icon {
  width: 42px; height: 42px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 20px; flex-shrink: 0;
}
.adm-kpi-body { flex: 1; min-width: 0; }
.adm-kpi-val { font-size: 18px; font-weight: 900; color: var(--text-primary); white-space: nowrap; }
.adm-kpi-lbl { font-size: 11px; color: var(--text-secondary); margin-top: 2px; }
.adm-kpi-delta {
  font-size: 11.5px; font-weight: 700; border-radius: 8px;
  padding: 3px 7px; white-space: nowrap; flex-shrink: 0;
}
.adm-kpi-delta.up   { color: #10B981; background: rgba(16,185,129,0.1); }
.adm-kpi-delta.down { color: #EF4444; background: rgba(239,68,68,0.1); }

/* ── 차트 행 ── */
.adm-chart-row {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 18px;
  margin-bottom: 18px;
}
.adm-chart-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 20px;
}
.adm-chart-card.wide { grid-column: 1 / -1; }
.adm-cc-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 16px; gap: 10px;
}
.adm-cc-title { font-size: 14px; font-weight: 800; color: var(--text-primary); }
.adm-cc-actions { display: flex; gap: 5px; }
.adm-cc-btn {
  background: var(--bg); border: 1px solid var(--border);
  border-radius: 7px; padding: 5px 12px;
  font-size: 11.5px; font-weight: 600;
  color: var(--text-secondary); cursor: pointer; transition: all .18s;
}
.adm-cc-btn:hover, .adm-cc-btn.active {
  background: #6366f1; border-color: #6366f1; color: #fff;
}
.adm-chart-wrap { height: 220px; }

/* ── 하단 3열 ── */
.adm-bottom-row {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 18px;
}
.adm-table-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 18px;
}
.adm-tc-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 14px;
}
.adm-tc-title { font-size: 13.5px; font-weight: 800; color: var(--text-primary); }
.adm-tc-more {
  font-size: 12px; font-weight: 600; color: #6366f1;
  background: none; border: none; cursor: pointer; transition: opacity .2s;
}
.adm-tc-more:hover { opacity: 0.7; }

/* ── 미니 테이블 ── */
.adm-mini-table { font-size: 12.5px; }
.adm-mt-head {
  display: grid; grid-template-columns: 1fr 80px 50px 60px;
  padding: 5px 8px 7px;
  color: var(--text-secondary); font-size: 11px; font-weight: 600;
  border-bottom: 1px solid var(--border);
}
.adm-mt-row {
  display: grid; grid-template-columns: 1fr 80px 50px 60px;
  padding: 8px 8px;
  border-bottom: 1px solid var(--border);
  align-items: center;
  transition: background .15s;
  cursor: pointer;
}
.adm-mt-row:last-child { border-bottom: none; }
.adm-mt-row:hover { background: var(--hover); border-radius: 8px; }
.adm-mt-name { font-weight: 700; color: var(--text-primary); }

/* ── 시스템 현황 ── */
.adm-sys-list { display: flex; flex-direction: column; gap: 10px; margin-bottom: 14px; }
.adm-sys-row { display: flex; align-items: center; gap: 10px; }
.adm-sys-icon { width: 28px; text-align: center; font-size: 14px; flex-shrink: 0; }
.adm-sys-body { flex: 1; }
.adm-sys-name { font-size: 12px; font-weight: 600; color: var(--text-primary); margin-bottom: 3px; }
.adm-sys-bar-wrap { display: flex; align-items: center; gap: 6px; }
.adm-sys-bar-track {
  flex: 1; height: 5px; background: var(--border);
  border-radius: 3px; overflow: hidden;
}
.adm-sys-bar-fill { height: 100%; border-radius: 3px; transition: width 1s ease; }
.adm-sys-pct { font-size: 10.5px; color: var(--text-secondary); width: 36px; text-align: right; }
.adm-sys-metrics {
  display: grid; grid-template-columns: repeat(4, 1fr);
  background: var(--bg); border-radius: 12px; padding: 10px;
  gap: 8px;
}
.adm-sysm-item { text-align: center; }
.adm-sysm-val { font-size: 14px; font-weight: 800; color: var(--text-primary); }
.adm-sysm-lbl { font-size: 10.5px; color: var(--text-secondary); }

/* ══════════════════════════════════════════
   공통 UI 컴포넌트
══════════════════════════════════════════ */

/* 버튼 */
.adm-btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 9px 16px; border-radius: 10px;
  font-size: 12.5px; font-weight: 700; cursor: pointer;
  border: 1px solid var(--border);
  background: var(--surface); color: var(--text-primary);
  transition: all .2s;
}
.adm-btn:hover { background: var(--hover); }
.adm-btn.primary {
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
  border-color: transparent; color: #fff;
}
.adm-btn.primary:hover { transform: translateY(-1px); box-shadow: 0 4px 14px rgba(99,102,241,0.35); }
.adm-btn.secondary { background: var(--bg); }
.adm-btn.small { padding: 6px 12px; font-size: 11.5px; }

/* 상태 태그 */
.adm-status-tag {
  font-size: 11px; font-weight: 700;
  padding: 3px 9px; border-radius: 7px;
  white-space: nowrap;
}
.adm-urgency-tag {
  font-size: 11px; font-weight: 700;
  padding: 3px 9px; border-radius: 7px;
}
.adm-grade-tag {
  font-size: 11.5px; font-weight: 800;
  color: #6366f1;
}
.adm-grade-badge {
  display: inline-block;
  font-size: 11.5px; font-weight: 800;
  padding: 2px 9px; border-radius: 7px;
}
.grade-Ap { background: rgba(99,102,241,0.12); color: #6366f1; }
.grade-A  { background: rgba(16,185,129,0.12); color: #10B981; }
.grade-Bp { background: rgba(10,91,255,0.12); color: #0A5BFF; }
.grade-B  { background: rgba(245,158,11,0.12); color: #D97706; }
.grade-Cp { background: rgba(249,115,22,0.12); color: #EA580C; }
.grade-C  { background: rgba(239,68,68,0.12); color: #EF4444; }

/* 액션 버튼 */
.adm-action-btn {
  padding: 5px 12px; border-radius: 7px;
  font-size: 11.5px; font-weight: 700; cursor: pointer;
  border: 1px solid var(--border);
  background: var(--bg); color: var(--text-primary);
  transition: all .18s;
}
.adm-action-btn:hover { transform: translateY(-1px); }
.adm-action-btn.green { background: rgba(16,185,129,0.1); border-color: rgba(16,185,129,0.3); color: #10B981; }
.adm-action-btn.red   { background: rgba(239,68,68,0.1); border-color: rgba(239,68,68,0.3); color: #EF4444; }
.adm-ra-btn {
  width: 28px; height: 28px; border-radius: 7px;
  background: var(--bg); border: 1px solid var(--border);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 12px; color: var(--text-secondary);
  cursor: pointer; transition: all .18s;
}
.adm-ra-btn:hover { border-color: #6366f1; color: #6366f1; }
.adm-ra-btn.red:hover { border-color: #EF4444; color: #EF4444; }
.adm-row-actions { display: flex; gap: 5px; align-items: center; }

/* 전체 테이블 */
.adm-full-table-wrap { overflow-x: auto; }
.adm-full-table {
  width: 100%; border-collapse: collapse;
  font-size: 13px;
}
.adm-full-table thead tr {
  background: var(--bg);
}
.adm-full-table th {
  padding: 11px 12px;
  text-align: left;
  font-size: 11.5px; font-weight: 700;
  color: var(--text-secondary);
  white-space: nowrap;
  border-bottom: 1px solid var(--border);
}
.adm-full-table th:first-child { border-radius: 10px 0 0 10px; }
.adm-full-table th:last-child  { border-radius: 0 10px 10px 0; }
.adm-full-table td {
  padding: 11px 12px;
  border-bottom: 1px solid var(--border);
  color: var(--text-primary);
  vertical-align: middle;
}
.adm-tr { transition: background .15s; }
.adm-tr:hover { background: var(--hover, #F4F6FB); }
.adm-tr:last-child td { border-bottom: none; }

/* 회원 셀 */
.adm-user-cell { display: flex; align-items: center; gap: 10px; }
.adm-user-avatar {
  width: 34px; height: 34px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; font-weight: 800; flex-shrink: 0;
}
.adm-user-name { font-size: 13px; font-weight: 700; color: var(--text-primary); }
.adm-user-email { font-size: 11px; color: var(--text-secondary); }
.adm-user-type-tag {
  font-size: 9.5px; font-weight: 700;
  background: rgba(99,102,241,0.1); color: #6366f1;
  border-radius: 5px; padding: 1px 5px; margin-left: 4px;
}

/* 페이지네이션 */
.adm-pagination {
  display: flex; align-items: center; justify-content: space-between;
  margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--border);
}
.adm-page-info { font-size: 12.5px; color: var(--text-secondary); }
.adm-page-btns { display: flex; gap: 4px; align-items: center; }
.adm-pg-btn {
  width: 32px; height: 32px; border-radius: 8px;
  background: var(--bg); border: 1px solid var(--border);
  font-size: 12px; font-weight: 600; color: var(--text-secondary);
  cursor: pointer; transition: all .18s;
  display: flex; align-items: center; justify-content: center;
}
.adm-pg-btn:hover:not(:disabled) { border-color: #6366f1; color: #6366f1; }
.adm-pg-btn.active { background: #6366f1; border-color: #6366f1; color: #fff; }
.adm-pg-btn:disabled { opacity: 0.4; cursor: not-allowed; }
.adm-page-ellipsis { font-size: 13px; color: var(--text-secondary); padding: 0 4px; }

/* 필터 바 */
.adm-filter-bar {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 14px; padding: 14px 16px; margin-bottom: 18px;
}
.adm-filter-group { display: flex; flex-direction: column; gap: 4px; }
.adm-filter-group label { font-size: 11px; font-weight: 600; color: var(--text-secondary); }
.adm-fsel {
  background: var(--bg); border: 1px solid var(--border);
  border-radius: 9px; padding: 7px 12px;
  font-size: 12.5px; font-weight: 600; color: var(--text-primary);
  cursor: pointer; outline: none; transition: border-color .2s;
}
.adm-fsel:focus { border-color: #6366f1; }
.adm-search-wrap {
  display: flex; align-items: center; gap: 7px;
  background: var(--bg); border: 1px solid var(--border);
  border-radius: 9px; padding: 7px 12px;
  transition: border-color .2s;
}
.adm-search-wrap:focus-within { border-color: #6366f1; }
.adm-search-in {
  border: none; background: transparent; outline: none;
  font-size: 12.5px; color: var(--text-primary); width: 200px;
}

/* 서브 탭 */
.adm-sub-tabs {
  display: flex; gap: 4px; margin-bottom: 16px;
  background: var(--bg); border-radius: 12px; padding: 4px;
  width: fit-content;
}
.adm-sub-tab {
  padding: 8px 18px; border-radius: 9px;
  font-size: 12.5px; font-weight: 700; cursor: pointer;
  border: none; background: transparent; color: var(--text-secondary);
  transition: all .18s; display: flex; align-items: center; gap: 6px;
}
.adm-sub-tab:hover { color: var(--text-primary); }
.adm-sub-tab.active { background: var(--surface); color: #6366f1; box-shadow: 0 2px 8px rgba(0,0,0,0.06); }
.adm-st-badge {
  font-size: 10px; font-weight: 800;
  background: rgba(99,102,241,0.12); color: #6366f1;
  border-radius: 8px; padding: 1px 6px;
}
.adm-sub-panel { display: none; }
.adm-sub-panel.active { display: block; }
.adm-empty-msg {
  padding: 40px; text-align: center;
  color: var(--text-secondary); font-size: 14px;
}

/* 대출 KPI */
.adm-loan-kpi {
  display: grid; grid-template-columns: repeat(5, 1fr);
  gap: 12px; margin-bottom: 18px;
}
.adm-loan-kpi-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 14px; padding: 16px; text-align: center;
}
.adm-lk-icon { font-size: 22px; margin-bottom: 6px; }
.adm-lk-val { font-size: 22px; font-weight: 900; margin-bottom: 4px; }
.adm-lk-lbl { font-size: 11.5px; color: var(--text-secondary); }

/* 신용 레이아웃 */
.adm-credit-layout {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.adm-credit-layout .wide { grid-column: 1 / -1; }

/* 등급 목록 */
.adm-grade-list { display: flex; flex-direction: column; gap: 10px; }
.adm-grade-row { display: flex; align-items: center; gap: 10px; }
.adm-gr-badge {
  width: 36px; height: 36px; border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 900; flex-shrink: 0;
}
.adm-gr-body { flex: 1; }
.adm-gr-info { display: flex; align-items: center; gap: 8px; margin-bottom: 4px; font-size: 12px; }
.adm-gr-range { color: var(--text-secondary); flex: 1; }
.adm-gr-count { font-weight: 700; color: var(--text-primary); }
.adm-gr-pct { color: var(--text-secondary); font-size: 11px; }
.adm-gr-bar-track { height: 5px; background: var(--border); border-radius: 3px; overflow: hidden; }
.adm-gr-bar-fill { height: 100%; border-radius: 3px; transition: width 1s ease; }

/* 국가 KPI */
.adm-country-kpi {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px;
}
.adm-country-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 16px; padding: 16px; transition: transform .2s;
}
.adm-country-card:hover { transform: translateY(-2px); }
.adm-cc-flag { font-size: 28px; margin-bottom: 6px; }
.adm-cc-name { font-size: 13px; font-weight: 800; color: var(--text-primary); margin-bottom: 10px; }
.adm-cc-stats { display: flex; gap: 8px; margin-bottom: 10px; }
.adm-cc-stat { flex: 1; text-align: center; }
.adm-cc-stat span { display: block; font-size: 13px; font-weight: 800; color: var(--text-primary); }
.adm-cc-stat small { font-size: 10px; color: var(--text-secondary); }
.adm-cc-bar-track { height: 4px; background: var(--border); border-radius: 2px; overflow: hidden; }
.adm-cc-bar-fill { height: 100%; border-radius: 2px; transition: width 1s ease; }

/* 외국인 차트 행 */
.adm-migrant-chart-row { display: flex; gap: 20px; }
.adm-migrant-chart-row > div { height: 220px; }

/* 서류 진행바 */
.adm-doc-progress { display: flex; align-items: center; gap: 8px; }
.adm-dp-track { flex: 1; height: 5px; background: var(--border); border-radius: 3px; overflow: hidden; }
.adm-dp-fill { height: 100%; border-radius: 3px; transition: width .6s ease; }

/* KYC 그리드 */
.adm-kyc-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px;
}
.adm-kyc-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 16px; padding: 18px;
}
.adm-kyc-top { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.adm-kyc-avatar {
  width: 38px; height: 38px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 16px; font-weight: 800; flex-shrink: 0;
}
.adm-kyc-info { flex: 1; }
.adm-kyc-name { font-size: 13px; font-weight: 700; color: var(--text-primary); }
.adm-kyc-type { font-size: 11px; color: var(--text-secondary); }
.adm-kyc-method {
  font-size: 12px; color: var(--text-secondary);
  background: var(--bg); border-radius: 8px; padding: 7px 10px;
  margin-bottom: 12px;
}
.adm-kyc-progress { margin-bottom: 14px; }
.adm-kyc-actions { display: flex; gap: 6px; }

/* 리스크 KPI */
.adm-risk-kpi {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px;
  margin-bottom: 0;
}
.adm-risk-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 16px; padding: 18px;
}
.adm-rk-label { font-size: 12px; color: var(--text-secondary); margin-bottom: 6px; font-weight: 600; }
.adm-rk-val { font-size: 24px; font-weight: 900; margin-bottom: 6px; }
.adm-rk-sub { font-size: 11.5px; color: var(--text-secondary); margin-bottom: 6px; }
.adm-rk-trend { font-size: 12px; font-weight: 700; }

/* 로그 터미널 */
.adm-log-filter {
  display: flex; gap: 6px; margin-bottom: 12px;
}
.adm-log-type-btn {
  padding: 6px 14px; border-radius: 8px;
  font-size: 12px; font-weight: 700; cursor: pointer;
  border: 1px solid var(--border);
  background: var(--bg); color: var(--text-secondary);
  transition: all .18s;
}
.adm-log-type-btn.active { background: #6366f1; border-color: #6366f1; color: #fff; }
.adm-log-terminal {
  background: #0d1117; border-radius: 14px; padding: 18px;
  font-family: 'Menlo','Consolas',monospace;
  max-height: 500px; overflow-y: auto;
  border: 1px solid rgba(255,255,255,0.06);
}
.adm-log-terminal::-webkit-scrollbar { width: 5px; }
.adm-log-terminal::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.12); border-radius: 3px; }
.adm-log-line {
  display: flex; align-items: baseline; gap: 10px;
  padding: 5px 0; border-bottom: 1px solid rgba(255,255,255,0.04);
  font-size: 12px;
}
.adm-log-line:last-child { border-bottom: none; }
.adm-log-time { color: #4B5563; flex-shrink: 0; font-variant-numeric: tabular-nums; }
.adm-log-tag {
  font-size: 10px; font-weight: 800; padding: 1px 6px;
  border-radius: 4px; flex-shrink: 0; min-width: 46px; text-align: center;
}
.adm-log-msg { color: #D1D5DB; flex: 1; line-height: 1.5; }

/* 설정 그리드 */
.adm-settings-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px;
}
.adm-settings-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 18px; padding: 20px;
}
.adm-sc-title {
  font-size: 14px; font-weight: 800; color: var(--text-primary);
  display: flex; align-items: center; gap: 8px;
  margin-bottom: 16px; padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}
.adm-sc-title i { color: #6366f1; }
.adm-setting-row {
  display: flex; align-items: center; justify-content: space-between;
  padding: 8px 0; border-bottom: 1px solid var(--border);
}
.adm-setting-row:last-child { border-bottom: none; }
.adm-setting-row label { font-size: 12.5px; font-weight: 600; color: var(--text-primary); }
.adm-setting-input-wrap { display: flex; align-items: center; gap: 6px; }
.adm-setting-input {
  background: var(--bg); border: 1px solid var(--border);
  border-radius: 8px; padding: 6px 10px;
  font-size: 13px; font-weight: 700; color: var(--text-primary);
  outline: none; text-align: right; max-width: 140px;
  transition: border-color .2s;
}
.adm-setting-input:focus { border-color: #6366f1; }
.adm-setting-unit { font-size: 11.5px; color: var(--text-secondary); font-weight: 600; }

/* 가중치 슬라이더 */
.adm-weight-wrap { display: flex; align-items: center; gap: 10px; }
.adm-weight-slider {
  -webkit-appearance: none; appearance: none;
  width: 120px; height: 5px; border-radius: 3px;
  background: linear-gradient(90deg, #6366f1 50%, var(--border) 50%);
  outline: none; cursor: pointer;
}
.adm-weight-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 16px; height: 16px; background: #6366f1;
  border-radius: 50%; box-shadow: 0 2px 6px rgba(99,102,241,0.4);
}
.adm-weight-val { font-size: 12.5px; font-weight: 700; color: #6366f1; width: 32px; }

/* 토글 */
.adm-toggle-row {
  display: flex; align-items: center; justify-content: space-between;
  padding: 9px 0; border-bottom: 1px solid var(--border);
  font-size: 12.5px; font-weight: 600; color: var(--text-primary);
}
.adm-toggle-row:last-child { border-bottom: none; }
.adm-toggle { position: relative; display: inline-block; width: 40px; height: 22px; }
.adm-toggle input { opacity: 0; width: 0; height: 0; }
.adm-toggle-slider {
  position: absolute; inset: 0;
  background: var(--border); border-radius: 22px;
  transition: background .25s;
  cursor: pointer;
}
.adm-toggle-slider::before {
  content: ''; position: absolute;
  width: 16px; height: 16px;
  left: 3px; top: 3px;
  background: #fff; border-radius: 50%;
  transition: transform .25s;
}
.adm-toggle input:checked + .adm-toggle-slider { background: #6366f1; }
.adm-toggle input:checked + .adm-toggle-slider::before { transform: translateX(18px); }

/* 모달 */
.adm-modal-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.5); backdrop-filter: blur(4px);
  z-index: 1000; display: none;
  align-items: center; justify-content: center;
}
.adm-modal-overlay.active { display: flex; }
.adm-modal {
  background: var(--surface); border-radius: 20px;
  width: 560px; max-width: 95vw; max-height: 85vh;
  overflow-y: auto; box-shadow: 0 20px 60px rgba(0,0,0,0.2);
  animation: admFadeIn .25s ease;
}
.adm-modal-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px 24px; border-bottom: 1px solid var(--border);
}
.adm-modal-title { font-size: 16px; font-weight: 800; color: var(--text-primary); }
.adm-modal-close {
  width: 32px; height: 32px; border-radius: 8px;
  background: var(--bg); border: 1px solid var(--border);
  cursor: pointer; font-size: 13px; color: var(--text-secondary);
  display: flex; align-items: center; justify-content: center;
  transition: all .2s;
}
.adm-modal-close:hover { background: #EF4444; border-color: #EF4444; color: #fff; }
.adm-modal-body { padding: 22px 24px; }
.adm-modal-user .adm-mu-section { margin-bottom: 20px; }
.adm-mu-label { font-size: 12px; font-weight: 700; color: #6366f1; text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 10px; }
.adm-mu-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.adm-mu-grid > div { background: var(--bg); border-radius: 10px; padding: 10px 12px; }
.adm-mu-grid span { font-size: 11px; color: var(--text-secondary); display: block; margin-bottom: 3px; }
.adm-mu-grid strong { font-size: 13px; }
.adm-mu-actions { display: flex; gap: 8px; }

/* 토스트 */
.adm-toast-wrap {
  position: fixed; bottom: 24px; right: 24px;
  z-index: 9999; display: flex; flex-direction: column; gap: 8px;
  pointer-events: none;
}
.adm-toast {
  background: var(--surface); border: 1px solid var(--border);
  border-left: 4px solid #6366f1;
  border-radius: 12px; padding: 13px 18px;
  font-size: 13px; font-weight: 600; color: var(--text-primary);
  box-shadow: 0 8px 24px rgba(0,0,0,0.12);
  opacity: 0; transform: translateX(20px);
  transition: all .28s; pointer-events: auto;
  max-width: 360px;
}
.adm-toast.show { opacity: 1; transform: translateX(0); }

/* ══════════════════════════════════════════
   반응형
══════════════════════════════════════════ */
@media (max-width: 1400px) {
  .adm-kpi-row { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 1200px) {
  .adm-bottom-row { grid-template-columns: 1fr 1fr; }
  .adm-chart-row { grid-template-columns: 1fr; }
  .adm-chart-card.wide { grid-column: 1; }
  .adm-country-kpi { grid-template-columns: repeat(4, 1fr); }
  .adm-kyc-grid { grid-template-columns: repeat(2, 1fr); }
  .adm-credit-layout { grid-template-columns: 1fr; }
}
@media (max-width: 1024px) {
  .adm-sidebar { position: fixed; transform: translateX(-100%); }
  .adm-sidebar.open { transform: translateX(0); }
  .adm-menu-toggle { display: flex; }
  .adm-kpi-row { grid-template-columns: repeat(3, 1fr); }
  .adm-bottom-row { grid-template-columns: 1fr; }
  .adm-tb-search input { width: 150px; }
}
@media (max-width: 768px) {
  .adm-panels { padding: 16px; }
  .adm-kpi-row { grid-template-columns: repeat(2, 1fr); }
  .adm-loan-kpi { grid-template-columns: repeat(3, 1fr); }
  .adm-country-kpi { grid-template-columns: repeat(2, 1fr); }
  .adm-kyc-grid { grid-template-columns: 1fr; }
  .adm-settings-grid { grid-template-columns: 1fr; }
  .adm-risk-kpi { grid-template-columns: repeat(2, 1fr); }
  .adm-page-header { flex-direction: column; align-items: flex-start; }
  .adm-migrant-chart-row { flex-direction: column; }
  .adm-tb-search { display: none; }
}

/* ══════════════════════════════════════════
   ADM 추가 컴포넌트 CSS (Phase 2)
══════════════════════════════════════════ */

/* 모달 박스 */
.adm-modal-box {
  background: var(--surface); border-radius: 20px;
  width: 520px; max-width: 95vw; max-height: 88vh;
  overflow-y: auto; box-shadow: 0 24px 80px rgba(0,0,0,0.25);
  animation: admFadeIn .25s ease;
}
.adm-modal-box.large {
  width: 700px;
}

/* 회원 모달 내부 */
.adm-modal-user, .adm-modal-loan { padding: 0; }
.adm-mu-top {
  display: flex; align-items: center; gap: 16px;
  padding: 4px 0 20px;
  border-bottom: 1px solid var(--border); margin-bottom: 20px;
}
.adm-user-avatar.large {
  width: 56px; height: 56px; border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  font-size: 20px; font-weight: 800; flex-shrink: 0;
}
.adm-mu-grid4 {
  display: grid; grid-template-columns: repeat(4,1fr); gap: 10px;
  margin-bottom: 20px;
}
.adm-mu-stat {
  background: var(--bg); border-radius: 12px;
  padding: 12px 14px; text-align: center;
}
.adm-mu-stat span { display: block; font-size: 11px; color: var(--text-secondary); margin-bottom: 5px; }
.adm-mu-stat strong { font-size: 15px; font-weight: 800; color: var(--text-primary); }
.adm-mu-sections {
  display: grid; grid-template-columns: 1fr 1fr; gap: 14px;
  margin-bottom: 20px;
}
.adm-mu-section {
  background: var(--bg); border-radius: 12px; padding: 14px;
}
.adm-mu-rows { display: flex; flex-direction: column; gap: 8px; }
.adm-mu-row {
  display: flex; justify-content: space-between; align-items: center;
  font-size: 13px;
}
.adm-mu-row span { color: var(--text-secondary); }
.adm-mu-row strong { font-weight: 700; }

/* AI 점수 바 (대출 모달) */
.adm-ai-score {
  background: var(--bg); border-radius: 12px;
  padding: 16px; margin-bottom: 16px;
}
.adm-ai-score > div:first-child {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 8px; font-size: 13px; font-weight: 700;
}
.adm-ai-bar {
  height: 10px; background: var(--border);
  border-radius: 5px; overflow: hidden;
}
.adm-ai-bar > div {
  height: 100%; border-radius: 5px;
  transition: width .8s ease;
}

/* 대출 모달 내부 */
.adm-modal-loan {}
.adm-loan-detail-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 16px;
}
.adm-loan-detail-grid > div {
  background: var(--bg); border-radius: 10px; padding: 10px 12px;
}
.adm-loan-detail-grid span { display: block; font-size: 11px; color: var(--text-secondary); margin-bottom: 3px; }
.adm-loan-detail-grid strong { font-size: 13px; font-weight: 800; }

/* 대출 체크박스 */
.adm-loan-chk {
  width: 15px; height: 15px; cursor: pointer; accent-color: #6366f1;
}
.adm-row-chk {
  width: 15px; height: 15px; cursor: pointer; accent-color: #6366f1;
}

/* 로그 툴바 */
.adm-log-toolbar {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; flex-wrap: wrap; margin-bottom: 14px;
}
.adm-log-filters { display: flex; gap: 6px; flex-wrap: wrap; }
.adm-log-search {
  display: flex; align-items: center; gap: 6px;
  background: var(--bg); border: 1px solid var(--border);
  border-radius: 8px; padding: 6px 10px; flex: 1; min-width: 180px;
}
.adm-log-search i { color: var(--text-muted); font-size: 12px; }
.adm-log-search input {
  border: none; background: transparent; outline: none;
  font-size: 12px; color: var(--text-primary); width: 100%;
}
.adm-log-live-toggle {
  display: flex; align-items: center; gap: 6px;
  font-size: 12px; font-weight: 600; color: var(--text-secondary);
  cursor: pointer; white-space: nowrap;
}
.adm-log-live-toggle input { accent-color: #10B981; cursor: pointer; }
.adm-log-stats {
  display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 12px;
}
.adm-ls-item {
  display: flex; align-items: center; gap: 5px;
  font-size: 12px; font-weight: 600;
  padding: 4px 10px; border-radius: 20px;
  background: var(--bg); border: 1px solid var(--border);
}
.adm-ls-item::before { content: ''; width: 7px; height: 7px; border-radius: 50%; }
.adm-ls-item.info::before  { background: #3B82F6; }
.adm-ls-item.warn::before  { background: #F59E0B; }
.adm-ls-item.error::before { background: #EF4444; }
.adm-ls-item.debug::before { background: #8b5cf6; }

/* 설정 토글 목록 */
.adm-toggle-list { display: flex; flex-direction: column; gap: 0; }
.adm-toggle-item {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 0; border-bottom: 1px solid var(--border);
}
.adm-toggle-item:last-child { border-bottom: none; }
.adm-ti-info { flex: 1; }
.adm-ti-label { font-size: 14px; font-weight: 700; color: var(--text-primary); margin-bottom: 3px; }
.adm-ti-desc  { font-size: 12px; color: var(--text-secondary); }

/* 설정 슬라이더 행 */
.adm-slider-row {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 0; border-bottom: 1px solid var(--border);
}
.adm-slider-row:last-child { border-bottom: none; }
.adm-slider-row label { flex: 1; font-size: 13px; font-weight: 600; color: var(--text-primary); }
.adm-slider-row input[type=range] {
  width: 160px; accent-color: #6366f1; cursor: pointer;
}
.adm-slider-row span { font-size: 13px; font-weight: 800; color: #6366f1; width: 36px; text-align: right; }

/* 폼 그룹 (모달 내) */
.adm-form-group { margin-bottom: 16px; }
.adm-form-group label {
  display: block; font-size: 12px; font-weight: 700;
  color: var(--text-secondary); margin-bottom: 6px; text-transform: uppercase; letter-spacing: 0.4px;
}
.adm-modal-actions {
  display: flex; gap: 10px; justify-content: flex-end;
  padding-top: 16px; border-top: 1px solid var(--border); margin-top: 20px;
}

/* ra-btn blue variant */
.adm-ra-btn.blue { color: #6366f1; }
.adm-ra-btn.blue:hover { border-color: #6366f1; background: rgba(99,102,241,.08); }

/* 리스크 KPI 행 */
.adm-risk-kpi { display: grid; grid-template-columns: repeat(4,1fr); gap: 14px; margin-bottom: 20px; }

/* 송금 KPI 행 */
.adm-remit-kpi { display: grid; grid-template-columns: repeat(5,1fr); gap: 14px; margin-bottom: 20px; }

/* 대출 KPI 카드 */
.adm-loan-kpi { display: grid; grid-template-columns: repeat(4,1fr); gap: 14px; margin-bottom: 20px; }

/* 로그 터미널 */
.adm-log-terminal {
  background: #0F1117; border-radius: 14px;
  padding: 16px; font-family: 'Fira Mono','Consolas','Menlo',monospace;
  font-size: 12px; min-height: 420px; max-height: 560px;
  overflow-y: auto; border: 1px solid #1E2130;
}

/* 크레딧 레이아웃 */
.adm-credit-layout { display: grid; grid-template-columns: 340px 1fr; gap: 20px; }
.adm-grade-list { display: flex; flex-direction: column; gap: 8px; }
.adm-grade-row { display: flex; align-items: center; gap: 10px; }
.adm-gr-badge {
  width: 36px; height: 36px; border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-weight: 900; font-size: 13px; flex-shrink: 0;
}
.adm-gr-body { flex: 1; min-width: 0; }
.adm-gr-info { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 5px; }
.adm-gr-range { font-size: 11px; color: var(--text-secondary); }
.adm-gr-count { font-size: 13px; font-weight: 800; }
.adm-gr-pct   { font-size: 11px; color: var(--text-muted); }
.adm-gr-bar-track { height: 6px; background: var(--border); border-radius: 3px; overflow: hidden; }
.adm-gr-bar-fill  { height: 100%; border-radius: 3px; transition: width 1s ease; }

/* 국가 KPI 카드 */
.adm-country-kpi { display: grid; grid-template-columns: repeat(4,1fr); gap: 14px; margin-bottom: 20px; }
.adm-country-card {
  background: var(--surface); border-radius: 14px;
  padding: 16px; border: 1px solid var(--border);
  transition: transform .2s, box-shadow .2s; cursor: default;
}
.adm-country-card:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(0,0,0,.08); }
.adm-cc-flag  { font-size: 28px; margin-bottom: 6px; display: block; }
.adm-cc-name  { font-size: 13px; font-weight: 800; color: var(--text-primary); margin-bottom: 10px; }
.adm-cc-stats { display: flex; gap: 8px; margin-bottom: 10px; }
.adm-cc-stat  { flex: 1; text-align: center; }
.adm-cc-stat span  { display: block; font-size: 13px; font-weight: 800; color: var(--text-primary); }
.adm-cc-stat small { font-size: 10px; color: var(--text-secondary); }
.adm-cc-bar-track { height: 4px; background: var(--border); border-radius: 2px; overflow: hidden; }
.adm-cc-bar-fill  { height: 100%; border-radius: 2px; transition: width 1s ease; }

/* 이주 근로자 차트 행 */
.adm-migrant-chart-row { display: flex; gap: 16px; }
.adm-migrant-chart-row > * { flex: 1; }

/* KYC 그리드 */
.adm-kyc-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 16px; }
.adm-kyc-card {
  background: var(--surface); border-radius: 16px;
  padding: 18px; border: 1px solid var(--border);
  transition: transform .25s, box-shadow .25s;
}
.adm-kyc-card:hover { transform: translateY(-3px); box-shadow: 0 8px 24px rgba(0,0,0,.1); }
.adm-kyc-top { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.adm-kyc-avatar {
  width: 42px; height: 42px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(99,102,241,.1); color: #6366f1;
  font-size: 18px; font-weight: 800; flex-shrink: 0;
}
.adm-kyc-info { flex: 1; min-width: 0; }
.adm-kyc-name { font-size: 14px; font-weight: 800; color: var(--text-primary); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.adm-kyc-type { font-size: 11px; color: var(--text-secondary); }
.adm-kyc-method {
  background: var(--bg); border-radius: 8px;
  padding: 7px 10px; font-size: 11.5px; color: var(--text-secondary);
  margin-bottom: 10px; display: flex; align-items: center; gap: 5px;
}
.adm-kyc-method i { color: #6366f1; }
.adm-kyc-progress { margin-bottom: 14px; }
.adm-kyc-actions { display: flex; gap: 6px; }

/* 사용자 타입 태그 */
.adm-user-type-tag {
  display: inline-block; padding: 1px 7px; border-radius: 20px;
  font-size: 10px; font-weight: 700; margin-left: 4px;
}
.adm-user-type-tag.type-일반   { background: rgba(99,102,241,.1);  color: #6366f1; }
.adm-user-type-tag.type-외국인 { background: rgba(59,130,246,.1);  color: #3B82F6; }
.adm-user-type-tag.type-VIP    { background: rgba(139,92,246,.12); color: #8b5cf6; }

/* 대출 긴급 태그 */
.adm-urgency-tag {
  padding: 2px 9px; border-radius: 20px;
  font-size: 11px; font-weight: 700; white-space: nowrap;
}

/* 신용 히스토리 tbody */
#admCreditHistBody tr:hover { background: rgba(99,102,241,.03); }

/* 리스크 KPI 카드 */
.adm-risk-card {
  background: var(--surface); border-radius: 14px;
  padding: 18px; border: 1px solid var(--border);
  position: relative; overflow: hidden;
}
.adm-rk-label { font-size: 12px; color: var(--text-secondary); margin-bottom: 6px; font-weight: 600; }
.adm-rk-val   { font-size: 24px; font-weight: 900; margin-bottom: 6px; }
.adm-rk-sub   { font-size: 11.5px; color: var(--text-secondary); margin-bottom: 6px; }
.adm-rk-trend { font-size: 12px; font-weight: 700; }

/* 섹션 라벨 (사이드바) */
.adm-sb-section-label {
  font-size: 10px; font-weight: 800; letter-spacing: 1px;
  text-transform: uppercase; color: var(--text-muted);
  padding: 8px 6px 4px; margin-top: 4px;
}

/* 사이드바 뒤로가기 버튼 */
.adm-sb-back {
  display: flex; align-items: center; gap: 8px;
  padding: 8px 10px; border-radius: 10px;
  font-size: 12px; font-weight: 600; color: var(--text-secondary);
  text-decoration: none; margin-bottom: 10px;
  border: 1px solid var(--border); transition: all .2s;
}
.adm-sb-back:hover { background: var(--bg); color: var(--text-primary); }

/* 토글 슬라이더 (설정 탭) */
.adm-toggle {
  position: relative; width: 40px; height: 22px; flex-shrink: 0;
}
.adm-toggle input { opacity: 0; width: 0; height: 0; }
.adm-toggle-slider {
  position: absolute; inset: 0; background: var(--border);
  border-radius: 11px; cursor: pointer; transition: background .25s;
}
.adm-toggle-slider::before {
  content: ''; position: absolute;
  width: 16px; height: 16px; left: 3px; top: 3px;
  background: #fff; border-radius: 50%; transition: transform .25s;
}
.adm-toggle input:checked + .adm-toggle-slider { background: #6366f1; }
.adm-toggle input:checked + .adm-toggle-slider::before { transform: translateX(18px); }

/* 가중치 합계 표시 */
.adm-weight-total {
  font-size: 14px; font-weight: 800; padding: 10px 14px;
  background: var(--bg); border-radius: 10px; margin-top: 8px;
  display: inline-flex; align-items: center; gap: 6px;
}
.adm-weight-total.ok    { color: #10B981; }
.adm-weight-total.error { color: #EF4444; }

/* 리스크 tbody */
#admRiskTableBody tr:hover { background: rgba(239,68,68,.03); }

/* 송금 의심 tbody */
#admRemitSuspBody tr { border-left: 3px solid transparent; }
#admRemitSuspBody tr:hover { background: rgba(239,68,68,.03); border-left-color: #EF4444; }

/* KPI 카드 공통 아이콘 */
.adm-kpi-icon {
  width: 42px; height: 42px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 17px; flex-shrink: 0;
}

/* 대출 모달 상세 그리드 */
.adm-lm-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 14px;
}
.adm-lm-grid > div {
  background: var(--bg); border-radius: 10px; padding: 10px 12px;
}
.adm-lm-grid span { display: block; font-size: 11px; color: var(--text-secondary); margin-bottom: 3px; }
.adm-lm-grid strong { font-size: 13px; font-weight: 800; }

/* 대출 모달 액션 버튼 행 */
.adm-loan-modal-actions {
  display: flex; gap: 10px;
  padding-top: 16px; border-top: 1px solid var(--border); margin-top: 16px;
}

/* 전체 개요 하단 미니카드 */
.adm-bottom-row { display: grid; grid-template-columns: repeat(3,1fr); gap: 16px; margin-top: 20px; }
.adm-mini-card {
  background: var(--surface); border-radius: 16px;
  padding: 18px; border: 1px solid var(--border);
}
.adm-mc-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.adm-mc-title  { font-size: 14px; font-weight: 800; }
.adm-mini-list { display: flex; flex-direction: column; gap: 8px; }
.adm-mini-row  { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 12px; }
.adm-mr-info   { display: flex; align-items: center; gap: 6px; flex: 1; min-width: 0; }
.adm-mr-name   { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.adm-doc-mini-bar { width: 70px; height: 4px; background: var(--border); border-radius: 2px; overflow: hidden; }
.adm-doc-mini-bar > div { height: 100%; border-radius: 2px; background: #10B981; transition: width .6s; }

/* 시스템 상태 목록 */
.adm-sys-list  { display: flex; flex-direction: column; gap: 8px; }
.adm-sys-row   { display: flex; align-items: center; justify-content: space-between; font-size: 12px; padding: 8px 10px; background: var(--bg); border-radius: 8px; }
.adm-sys-ok    { color: #10B981; font-weight: 700; font-size: 11px; }
.adm-sys-warn  { color: #F59E0B; font-weight: 700; font-size: 11px; }

/* 토픽바 메트릭 */
.adm-tb-metrics { display: flex; align-items: center; gap: 18px; }
.adm-tm-item { display: flex; align-items: center; gap: 5px; font-size: 11.5px; color: var(--text-secondary); }
.adm-tm-label { font-weight: 600; }
.adm-tm-val { font-weight: 800; color: var(--text-primary); }
.adm-tm-val.green { color: #10B981; }

/* 토픽바 알림/어드민 */
.adm-tb-notif {
  position: relative; width: 36px; height: 36px;
  background: var(--bg); border: 1px solid var(--border);
  border-radius: 10px; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; color: var(--text-secondary);
  transition: all .2s;
}
.adm-tb-notif:hover { border-color: #6366f1; color: #6366f1; }
.adm-notif-dot {
  position: absolute; top: 6px; right: 6px;
  width: 8px; height: 8px; border-radius: 50%;
  background: #EF4444; border: 2px solid var(--surface);
}
.adm-tb-admin { display: flex; align-items: center; gap: 10px; }
.adm-admin-avatar {
  width: 36px; height: 36px; border-radius: 10px;
  background: linear-gradient(135deg,#6366f1,#8b5cf6);
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; font-weight: 800; color: #fff; flex-shrink: 0;
}
.adm-admin-name { font-size: 13px; font-weight: 800; color: var(--text-primary); }
.adm-admin-role { font-size: 10.5px; color: var(--text-muted); }

/* KPI 카드 내부 구성 */
.adm-kpi-body  { flex: 1; }
.adm-kpi-val   { font-size: 24px; font-weight: 900; color: var(--text-primary); margin-bottom: 4px; }
.adm-kpi-label { font-size: 12px; color: var(--text-secondary); font-weight: 600; }
.adm-kpi-trend { font-size: 12px; font-weight: 700; margin-top: 6px; }
.adm-kpi-trend.up   { color: #10B981; }
.adm-kpi-trend.down { color: #EF4444; }

/* 메뉴 토글 (모바일) */
.adm-menu-toggle {
  display: none; width: 36px; height: 36px;
  background: var(--bg); border: 1px solid var(--border);
  border-radius: 10px; cursor: pointer;
  align-items: center; justify-content: center;
  font-size: 14px; color: var(--text-secondary);
}

/* 모달 추가 애니메이션 */
@keyframes admSlideUp {
  from { opacity:0; transform:translateY(20px); }
  to   { opacity:1; transform:translateY(0); }
}
.adm-modal-box { animation: admSlideUp .25s ease; }

/* ══════════════════════════════════════════
   ADM 로그아웃 버튼 + 비밀번호 강도 바
══════════════════════════════════════════ */
.adm-logout-btn {
  display: flex; align-items: center; justify-content: center;
  width: 34px; height: 34px; border-radius: 9px;
  background: rgba(239,68,68,.08); border: 1px solid rgba(239,68,68,.2);
  color: #EF4444; font-size: 13px; text-decoration: none;
  transition: all .2s; flex-shrink: 0;
}
.adm-logout-btn:hover { background: #EF4444; color: #fff; border-color: #EF4444; }

/* 비밀번호 강도 바 (settings 탭) */
.adm-cp-bar {
  flex: 1; height: 4px; border-radius: 2px;
  background: var(--border); transition: background .3s;
}


/* ════════════════════════════════════════════════════════════════
   NEW SIDEBAR  —  sb-* / snav-* design system
   ════════════════════════════════════════════════════════════════ */

/* ── CSS 변수 오버라이드 ──────────────────────────────────────── */
:root {
  --sb-w: 248px;
  --sb-collapsed-w: 72px;
  --sb-bg: #ffffff;
  --sb-border: rgba(0,0,0,.07);
  --sb-brand-h: 68px;
  --sb-profile-h: 84px;
  --sb-item-h: 44px;
  --sb-radius: 12px;
  --sb-transition: 0.22s cubic-bezier(.4,0,.2,1);
}

/* ── 사이드바 베이스 재정의 ───────────────────────────────────── */
.sidebar {
  width: var(--sb-w) !important;
  background: var(--sb-bg) !important;
  border-right: 1px solid var(--sb-border) !important;
  display: flex !important;
  flex-direction: column !important;
  transition: width var(--sb-transition) !important;
  overflow: hidden !important;
  position: fixed !important;
  top: 0; left: 0 !important;
  height: 100vh !important;
  z-index: 100 !important;
  box-shadow: 1px 0 24px rgba(0,0,0,.04) !important;
}
.sidebar.collapsed { width: var(--sb-collapsed-w) !important; }

/* ── 브랜드 헤더 ──────────────────────────────────────────────── */
.sb-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 14px;
  height: var(--sb-brand-h);
  border-bottom: 1px solid var(--sb-border);
  flex-shrink: 0;
  overflow: hidden;
}

.sb-logo-ring {
  width: 38px; height: 38px;
  border-radius: 12px;
  flex-shrink: 0;
  box-shadow: 0 2px 10px rgba(10,91,255,.25);
  overflow: hidden;
}
.sb-logo-ring svg { display: block; }

.sb-brand-text {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  white-space: nowrap;
  transition: opacity var(--sb-transition), width var(--sb-transition);
}
.sb-brand-name {
  font-size: 17px;
  font-weight: 900;
  color: var(--text-primary);
  letter-spacing: -0.6px;
  line-height: 1.1;
}
.sb-brand-name span { color: #0A5BFF; }
.sb-brand-sub {
  font-size: 9.5px;
  font-weight: 600;
  color: #B0B8C9;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  margin-top: 2px;
}

.sb-collapse-btn {
  width: 28px; height: 28px;
  background: rgba(10,91,255,.06);
  border: 1px solid rgba(10,91,255,.12);
  border-radius: 8px;
  color: #0A5BFF;
  font-size: 11px;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  transition: all .18s;
  margin-left: auto;
}
.sb-collapse-btn:hover {
  background: #0A5BFF;
  color: #fff;
  border-color: #0A5BFF;
}
.sidebar.collapsed .sb-collapse-btn .fa-chevron-left {
  transform: rotate(180deg);
}
.sidebar.collapsed .sb-brand-text { opacity: 0; width: 0; }
.sidebar.collapsed .sb-collapse-btn { margin-left: 0; }

/* ── 유저 프로필 칩 ──────────────────────────────────────────── */
.sb-profile-chip {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 10px 10px 4px;
  padding: 10px 12px;
  background: linear-gradient(135deg, #F0F5FF 0%, #EBF9FF 100%);
  border: 1px solid rgba(10,91,255,.1);
  border-radius: 14px;
  flex-shrink: 0;
  overflow: hidden;
  transition: all var(--sb-transition);
  cursor: pointer;
}
.sb-profile-chip:hover {
  background: linear-gradient(135deg, #E5EEFF 0%, #E0F5FF 100%);
  border-color: rgba(10,91,255,.2);
}

.sb-profile-avatar {
  width: 36px; height: 36px;
  border-radius: 10px;
  background: linear-gradient(135deg, #0A5BFF, #46C7FF);
  color: #fff;
  font-size: 14px;
  font-weight: 800;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(10,91,255,.3);
}

.sb-profile-info {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  white-space: nowrap;
  transition: opacity var(--sb-transition);
}
.sb-profile-name {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.2;
}
.sb-profile-badge {
  font-size: 10px;
  font-weight: 600;
  color: #10B981;
  display: flex;
  align-items: center;
  gap: 3px;
  margin-top: 2px;
}
.sb-profile-badge i { font-size: 9px; }

.sb-profile-score {
  text-align: right;
  flex-shrink: 0;
  transition: opacity var(--sb-transition);
}
.sb-score-num {
  font-size: 17px;
  font-weight: 900;
  color: #0A5BFF;
  line-height: 1;
  letter-spacing: -0.5px;
}
.sb-score-lbl {
  font-size: 9px;
  font-weight: 700;
  color: #B0B8C9;
  margin-top: 2px;
  text-align: right;
  letter-spacing: 0.3px;
}

/* collapsed 상태 */
.sidebar.collapsed .sb-profile-info,
.sidebar.collapsed .sb-profile-score { opacity: 0; width: 0; overflow: hidden; }
.sidebar.collapsed .sb-profile-chip { justify-content: center; padding: 10px 0; background: transparent; border-color: transparent; }

/* ── 네비게이션 섹션 ─────────────────────────────────────────── */
.sb-nav {
  flex: 1;
  padding: 6px 4px 8px 8px;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(10,91,255,.18) transparent;
}
.sb-nav::-webkit-scrollbar {
  width: 4px;
}
.sb-nav::-webkit-scrollbar-track {
  background: transparent;
  border-radius: 4px;
}
.sb-nav::-webkit-scrollbar-thumb {
  background: rgba(10,91,255,.18);
  border-radius: 4px;
  transition: background .2s;
}
.sb-nav::-webkit-scrollbar-thumb:hover {
  background: rgba(10,91,255,.38);
}
/* collapsed 상태에서는 스크롤바 숨김 */
.sidebar.collapsed .sb-nav {
  scrollbar-width: none;
}
.sidebar.collapsed .sb-nav::-webkit-scrollbar { display: none; }

.sb-section-label {
  font-size: 9.5px;
  font-weight: 700;
  color: #B0B8C9;
  letter-spacing: 0.9px;
  text-transform: uppercase;
  padding: 10px 10px 6px;
  white-space: nowrap;
  overflow: hidden;
  transition: opacity var(--sb-transition);
}
.sidebar.collapsed .sb-section-label { opacity: 0; }

.sb-divider {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 10px 6px;
  overflow: hidden;
}
.sb-divider::before,
.sb-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--sb-border);
}
.sb-divider span {
  font-size: 9.5px;
  font-weight: 700;
  color: #B0B8C9;
  letter-spacing: 0.6px;
  white-space: nowrap;
  text-transform: uppercase;
  transition: opacity var(--sb-transition);
}
.sidebar.collapsed .sb-divider span { opacity: 0; }
.sidebar.collapsed .sb-divider::before { display: none; }

/* ── snav 그룹 (아이템 + 서브메뉴) ──────────────────────────── */
.snav-group { position: relative; }

/* ── snav 아이템 ─────────────────────────────────────────────── */
.snav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 8px 6px 6px;
  border-radius: var(--sb-radius);
  color: var(--text-secondary);
  font-size: 13.5px;
  font-weight: 500;
  text-decoration: none;
  transition: all .18s ease;
  cursor: pointer;
  position: relative;
  height: var(--sb-item-h);
  margin-bottom: 1px;
  white-space: nowrap;
  overflow: hidden;
}
.snav-item:hover {
  background: rgba(10,91,255,.05);
  color: #0A5BFF;
}
.snav-item:hover .snav-icon-wrap {
  transform: scale(1.06);
}
.snav-item.active {
  background: rgba(10,91,255,.06);
  color: #0A5BFF;
  font-weight: 700;
}
.snav-item.active::before {
  content: '';
  position: absolute;
  left: 0; top: 50%;
  transform: translateY(-50%);
  width: 3px; height: 22px;
  background: #0A5BFF;
  border-radius: 0 4px 4px 0;
}

/* ── 아이콘 래퍼 (CSS var --ic, --ib) ───────────────────────── */
.snav-icon-wrap {
  width: 34px; height: 34px;
  border-radius: 10px;
  background: var(--ib, #F0F5FF);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  transition: all .18s ease;
}
.snav-icon {
  font-size: 14px;
  color: var(--ic, #0A5BFF);
  transition: color .18s;
}

/* hover: 아이콘 배경 살짝 진하게 */
.snav-item:hover .snav-icon-wrap {
  filter: brightness(0.94);
}
/* active: 아이콘 배경 채움 */
.snav-item.active .snav-icon-wrap {
  background: var(--ic, #0A5BFF);
  box-shadow: 0 3px 10px color-mix(in srgb, var(--ic, #0A5BFF) 35%, transparent);
}
.snav-item.active .snav-icon {
  color: #fff !important;
}

/* ── 레이블 ──────────────────────────────────────────────────── */
.snav-label {
  flex: 1;
  font-size: 13.5px;
  transition: opacity var(--sb-transition);
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}
.sidebar.collapsed .snav-label { opacity: 0; width: 0; }

/* ── 뱃지 ────────────────────────────────────────────────────── */
.snav-badge {
  font-size: 10px;
  font-weight: 700;
  color: #fff;
  padding: 2px 7px;
  border-radius: 20px;
  min-width: 20px;
  text-align: center;
  line-height: 1.5;
  flex-shrink: 0;
  transition: opacity var(--sb-transition);
}
.sidebar.collapsed .snav-badge { opacity: 0; width: 0; overflow: hidden; padding: 0; }

/* ── 서브 메뉴 ───────────────────────────────────────────────── */
.snav-sub-wrap {
  padding: 2px 0 4px 52px;
  display: flex;
  flex-direction: column;
  gap: 1px;
  overflow: hidden;
  transition: opacity var(--sb-transition);
}
.sidebar.collapsed .snav-sub-wrap { opacity: 0; height: 0; overflow: hidden; }

.snav-sub-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 10px;
  border-radius: 8px;
  font-size: 12.5px;
  font-weight: 500;
  color: var(--text-muted);
  text-decoration: none;
  transition: all .15s;
  white-space: nowrap;
}
.snav-sub-item:hover {
  background: rgba(10,91,255,.04);
  color: #0A5BFF;
}
.snav-sub-item:hover .snav-sub-dot { background: #0A5BFF; }
.snav-sub-item.active {
  color: #0A5BFF;
  font-weight: 700;
  background: rgba(10,91,255,.06);
}

.snav-sub-dot {
  width: 5px; height: 5px;
  border-radius: 50%;
  background: #CBD5E1;
  flex-shrink: 0;
  transition: background .15s;
}
.snav-sub-item.active .snav-sub-dot { background: #0A5BFF; }

/* ── 하단 영역 (앱 배너만) ───────────────────────────────────── */
.sb-bottom {
  padding: 8px 8px 12px;
  border-top: 1px solid var(--sb-border);
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

/* 관리자 포털 구분선 — span 없으므로 선만 표시 */
.sb-divider-admin { padding: 4px 10px 2px; }
.sb-divider-admin::after { display: none; }

/* 관리자 포털 버튼 — nav 안 snav-group 내부에서도 동일 스타일 */
.snav-group .sb-admin-btn {
  margin: 0 4px 2px 4px;
  width: calc(100% - 8px);
  box-sizing: border-box;
}

/* 관리자 포털 버튼 */
.sb-admin-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  border-radius: 10px;
  font-size: 12.5px;
  font-weight: 600;
  color: #7C5CFC;
  text-decoration: none;
  border: 1px solid rgba(124,92,252,.15);
  background: rgba(124,92,252,.05);
  transition: all .18s;
  overflow: hidden;
  white-space: nowrap;
}
.sb-admin-btn i:first-child { font-size: 13px; color: #7C5CFC; flex-shrink: 0; }
.sb-admin-btn:hover {
  background: rgba(124,92,252,.1);
  border-color: rgba(124,92,252,.3);
  color: #6D42FC;
}
.sb-admin-btn.active {
  background: rgba(124,92,252,.12);
  border-color: rgba(124,92,252,.3);
  font-weight: 700;
}
.sb-admin-arrow {
  font-size: 10px !important;
  color: #B0B8C9 !important;
  margin-left: auto;
  flex-shrink: 0;
  transition: opacity var(--sb-transition);
}
.sidebar.collapsed .sb-admin-btn { justify-content: center; padding: 9px 0; background: transparent; border-color: transparent; }
.sidebar.collapsed .sb-admin-btn span,
.sidebar.collapsed .sb-admin-arrow { opacity: 0; width: 0; overflow: hidden; }

/* 앱 다운로드 배너 */
.sb-app-banner {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  background: linear-gradient(135deg, #EBF3FF 0%, #EDF9FF 100%);
  border: 1px solid rgba(10,91,255,.1);
  border-radius: 12px;
  cursor: pointer;
  transition: all .18s;
  overflow: hidden;
  white-space: nowrap;
  text-decoration: none;
}
.sb-app-banner:hover {
  background: linear-gradient(135deg, #DDE9FF 0%, #E3F6FF 100%);
  border-color: rgba(10,91,255,.2);
}
.sb-app-banner-icon {
  font-size: 18px;
  flex-shrink: 0;
  line-height: 1;
}
.sb-app-banner-body {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  transition: opacity var(--sb-transition);
}
.sb-app-banner-title {
  font-size: 11.5px;
  font-weight: 700;
  color: #0A5BFF;
  line-height: 1.2;
}
.sb-app-banner-sub {
  font-size: 9.5px;
  color: #B0B8C9;
  font-weight: 500;
  margin-top: 2px;
}
.sb-app-banner-arrow {
  font-size: 10px;
  color: #B0B8C9;
  flex-shrink: 0;
  transition: opacity var(--sb-transition);
}
.sidebar.collapsed .sb-app-banner { justify-content: center; background: transparent; border-color: transparent; padding: 9px 0; }
.sidebar.collapsed .sb-app-banner-body,
.sidebar.collapsed .sb-app-banner-arrow { opacity: 0; width: 0; overflow: hidden; }

/* ── collapsed 상태 마진 보정 ────────────────────────────────── */
.sidebar.collapsed ~ .main-area {
  margin-left: var(--sb-collapsed-w) !important;
  width: calc(100% - var(--sb-collapsed-w)) !important;
}

/* ── 반응형 ──────────────────────────────────────────────────── */
@media (max-width: 1024px) {
  :root { --sb-w: 220px; }
}
@media (max-width: 768px) {
  .sidebar {
    transform: translateX(-100%) !important;
    width: 248px !important;
    box-shadow: 4px 0 24px rgba(0,0,0,.12) !important;
  }
  .sidebar.open {
    transform: translateX(0) !important;
  }
}

/* ── Tooltip (collapsed 상태에서 hover 시) ───────────────────── */
.sidebar.collapsed .snav-item {
  position: relative;
}
.sidebar.collapsed .snav-item::after {
  content: attr(data-label);
  position: absolute;
  left: calc(var(--sb-collapsed-w) - 4px);
  top: 50%;
  transform: translateY(-50%);
  background: rgba(15,23,42,.88);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  padding: 5px 11px;
  border-radius: 8px;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transition: opacity .18s;
  z-index: 999;
  backdrop-filter: blur(4px);
}
.sidebar.collapsed .snav-item:hover::after {
  opacity: 1;
}

/* ════════════════════════════════════════════════════════════════
   END NEW SIDEBAR
   ════════════════════════════════════════════════════════════════ */

/* ── 상환 페이지 stat 카드 overflow 수정 ─────────────────────── */
.repay-stat-card {
  overflow: visible !important;   /* 숫자 잘림 방지 */
  min-width: 0;
}
.repay-stat-icon {
  font-size: 22px;
  line-height: 1;
  flex-shrink: 0;
}
.repay-stat-val {
  font-size: clamp(18px, 2.4vw, 28px); /* 뷰포트에 따라 자동 축소 */
  font-weight: 800;
  letter-spacing: -0.8px;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
  max-width: 100%;
}


/* ════════════════════════════════════════════════════════════
   스테이블코인 해외송금 (sc-*)
   ════════════════════════════════════════════════════════════ */

/* ── 모드 토글 (일반송금 / 스테이블코인) ── */
.remit-mode-toggle {
  display: flex;
  gap: 8px;
  margin-bottom: 20px;
  background: #f1f5f9;
  border-radius: 12px;
  padding: 4px;
}
.rmt-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 10px 16px;
  border: none;
  border-radius: 9px;
  font-size: 14px;
  font-weight: 600;
  color: #64748b;
  background: transparent;
  cursor: pointer;
  transition: all .2s;
  position: relative;
}
.rmt-btn i { font-size: 15px; }
.rmt-btn.active {
  background: #fff;
  color: #1e293b;
  box-shadow: 0 2px 8px rgba(0,0,0,.10);
}
.rmt-btn.active i { color: #6366f1; }
.rmt-new-badge {
  position: absolute;
  top: 4px;
  right: 8px;
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
  color: #fff;
  font-size: 9px;
  font-weight: 700;
  padding: 1px 5px;
  border-radius: 999px;
  letter-spacing: .3px;
  line-height: 1.5;
}

/* ── 패널 전환 ── */
.remit-panel { display: none; }
.remit-panel.active { display: block; }

/* ── 코인 탭 ── */
.sc-coin-tabs {
  display: flex;
  gap: 10px;
  margin-bottom: 18px;
}
.sc-coin-tab {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  padding: 12px 8px 10px;
  border: 2px solid #e2e8f0;
  border-radius: 12px;
  background: #fff;
  cursor: pointer;
  transition: all .2s;
  min-width: 0;
}
.sc-coin-tab:hover { border-color: #a5b4fc; background: #f8f7ff; }
.sc-coin-tab.active {
  border-color: var(--sc-color, #26A17B);
  background: #f8f7ff;
  box-shadow: 0 0 0 3px rgba(99,102,241,.10);
}
.sc-coin-logo {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: 900;
  color: #fff;
  background: var(--sc-color, #26A17B);
  flex-shrink: 0;
}
.sc-coin-name {
  font-size: 13px;
  font-weight: 700;
  color: #1e293b;
}
.sc-coin-sub {
  font-size: 10px;
  color: #94a3b8;
  text-align: center;
  line-height: 1.3;
}

/* ── 네트워크 칩 ── */
.sc-network-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}
.sc-network-label {
  font-size: 13px;
  font-weight: 600;
  color: #64748b;
  white-space: nowrap;
}
.sc-network-chips {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.sc-net-chip {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 5px 12px;
  border: 1.5px solid #e2e8f0;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  color: #64748b;
  background: #fff;
  cursor: pointer;
  transition: all .18s;
  white-space: nowrap;
}
.sc-net-chip:hover { border-color: #6366f1; color: #6366f1; background: #f8f7ff; }
.sc-net-chip.active {
  background: #6366f1;
  color: #fff;
  border-color: #6366f1;
  box-shadow: 0 2px 8px rgba(99,102,241,.25);
}
.sc-net-fee {
  font-size: 10px;
  opacity: .8;
  font-weight: 500;
}

/* ── 환전 계산기 박스 ── */
.sc-amount-box {
  display: flex;
  align-items: stretch;
  gap: 0;
  background: #f8fafc;
  border: 1.5px solid #e2e8f0;
  border-radius: 14px;
  overflow: hidden;
  margin-bottom: 14px;
}
.sc-amount-side {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 14px 16px;
  flex: 1;
  min-width: 0;
}
.sc-amount-side + .sc-amount-side {
  border-left: 1.5px solid #e2e8f0;
  background: #fff;
}
.sc-amount-side label {
  font-size: 11px;
  font-weight: 600;
  color: #94a3b8;
  margin-bottom: 5px;
  letter-spacing: .4px;
  text-transform: uppercase;
}
.sc-amount-input-wrap {
  display: flex;
  align-items: center;
  gap: 6px;
}
.sc-currency-sym {
  font-size: 17px;
  font-weight: 700;
  color: #475569;
  flex-shrink: 0;
}
.sc-amount-input {
  border: none;
  background: transparent;
  font-size: 22px;
  font-weight: 800;
  color: #1e293b;
  width: 100%;
  outline: none;
  min-width: 0;
}
.sc-amount-input::placeholder { color: #cbd5e1; }
.sc-amount-hint {
  font-size: 11px;
  color: #94a3b8;
  margin-top: 4px;
}

/* ── 환율 화살표 미드 ── */
.sc-arrow-mid {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 0 10px;
  background: #f1f5f9;
  flex-shrink: 0;
}
.sc-arrow-icon {
  font-size: 18px;
  color: #6366f1;
  margin-bottom: 3px;
}
.sc-arrow-rate {
  font-size: 10px;
  color: #94a3b8;
  font-weight: 600;
  white-space: nowrap;
}

/* ── 코인 수량 우측 ── */
.sc-amount-right {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 14px 16px;
  background: #fff;
  border-left: 1.5px solid #e2e8f0;
  min-width: 130px;
}
.sc-amount-right label {
  font-size: 11px;
  font-weight: 600;
  color: #94a3b8;
  margin-bottom: 5px;
  letter-spacing: .4px;
  text-transform: uppercase;
}
.sc-result-val {
  font-size: 22px;
  font-weight: 800;
  color: #1e293b;
  line-height: 1.2;
}
.sc-result-sub {
  font-size: 11px;
  color: #94a3b8;
  margin-top: 3px;
}

/* ── 상세 내역 ── */
.sc-detail-rows {
  background: #f8fafc;
  border: 1.5px solid #e2e8f0;
  border-radius: 12px;
  padding: 12px 16px;
  margin-bottom: 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.sc-detail-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
}
.sc-detail-row .lbl {
  color: #64748b;
  font-weight: 500;
}
.sc-detail-row .val {
  color: #1e293b;
  font-weight: 600;
}
.sc-detail-row.final-row {
  border-top: 1px dashed #cbd5e1;
  padding-top: 8px;
  margin-top: 2px;
}
.sc-detail-row.final-row .lbl { color: #1e293b; font-weight: 700; font-size: 14px; }
.sc-detail-row.final-row .val { color: #6366f1; font-weight: 800; font-size: 15px; }

/* ── 지갑 주소 섹션 ── */
.sc-wallet-section {
  margin-bottom: 18px;
}
.sc-wallet-label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 700;
  color: #374151;
  margin-bottom: 8px;
}
.sc-wallet-net-badge {
  font-size: 10px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 999px;
  background: #6366f1;
  color: #fff;
  letter-spacing: .3px;
}
.sc-wallet-input-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1.5px solid #e2e8f0;
  border-radius: 10px;
  background: #fff;
  padding: 4px 4px 4px 12px;
  transition: border-color .2s;
}
.sc-wallet-input-wrap:focus-within {
  border-color: #6366f1;
  box-shadow: 0 0 0 3px rgba(99,102,241,.10);
}
.sc-wallet-input {
  flex: 1;
  border: none;
  background: transparent;
  font-size: 13px;
  font-weight: 500;
  color: #1e293b;
  outline: none;
  font-family: 'SFMono-Regular', 'Consolas', monospace;
  min-width: 0;
}
.sc-wallet-input::placeholder { color: #cbd5e1; font-family: inherit; font-size: 12px; }
.sc-wallet-paste-btn {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 7px 12px;
  background: #f1f5f9;
  border: none;
  border-radius: 7px;
  font-size: 12px;
  font-weight: 600;
  color: #64748b;
  cursor: pointer;
  transition: all .2s;
  flex-shrink: 0;
}
.sc-wallet-paste-btn:hover { background: #e0e7ff; color: #6366f1; }
.sc-wallet-status {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  font-weight: 600;
  margin-top: 6px;
  min-height: 20px;
}
.sc-wallet-status.valid { color: #10b981; }
.sc-wallet-status.invalid { color: #ef4444; }
.sc-wallet-status.idle { color: #94a3b8; }

/* ── QR 팁 ── */
.sc-qr-tip {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #fffbeb;
  border: 1px solid #fde68a;
  border-radius: 8px;
  padding: 9px 12px;
  font-size: 12px;
  color: #92400e;
  margin-bottom: 16px;
}
.sc-qr-tip i { color: #f59e0b; font-size: 14px; flex-shrink: 0; }

/* ── 제출 버튼 ── */
.sc-submit-btn {
  width: 100%;
  padding: 14px;
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
  color: #fff;
  border: none;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all .2s;
  box-shadow: 0 4px 14px rgba(99,102,241,.30);
}
.sc-submit-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(99,102,241,.40);
}
.sc-submit-btn:active { transform: translateY(0); }

/* ── 최근 이력 ── */
.sc-hist-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.sc-hist-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid #f1f5f9;
  font-size: 13px;
}
.sc-hist-row:last-child { border-bottom: none; }
.sc-hist-coin-badge {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 800;
  color: #fff;
  flex-shrink: 0;
}
.sc-hist-info { flex: 1; min-width: 0; }
.sc-hist-addr {
  font-size: 12px;
  font-weight: 600;
  color: #374151;
  font-family: 'SFMono-Regular', 'Consolas', monospace;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.sc-hist-time {
  font-size: 11px;
  color: #94a3b8;
  margin-top: 1px;
}
.sc-hist-right { text-align: right; flex-shrink: 0; }
.sc-hist-amount {
  font-size: 13px;
  font-weight: 700;
  color: #1e293b;
}
.sc-hist-krw {
  font-size: 11px;
  color: #94a3b8;
}
.sc-net-tag {
  font-size: 10px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 4px;
  background: #e0e7ff;
  color: #6366f1;
  flex-shrink: 0;
}

/* ── 실시간 시세 ── */
.sc-price-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.sc-price-row {
  display: grid;
  grid-template-columns: 10px 38px 1fr auto;
  align-items: center;
  gap: 8px;
  padding: 11px 0;
  border-bottom: 1px solid #f1f5f9;
}
.sc-price-row:last-child { border-bottom: none; }
/* dot 열 */
.sc-price-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #10b981;
  flex-shrink: 0;
  justify-self: center;
  animation: scPricePulse 2s infinite;
}
@keyframes scPricePulse {
  0%,100% { opacity: 1; transform: scale(1); }
  50%      { opacity: .5; transform: scale(.7); }
}
/* 심볼+네트워크 열 */
.sc-price-coin {
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
}
.sc-price-sym {
  font-size: 13px;
  font-weight: 700;
  color: #1e293b;
  line-height: 1.2;
}
/* 중간 네트워크 텍스트 열 */
.sc-price-net {
  font-size: 10px;
  color: #94a3b8;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
/* 가격+등락 우측 열 */
.sc-price-right {
  text-align: right;
  flex-shrink: 0;
}
.sc-price-krw {
  font-size: 14px;
  font-weight: 800;
  color: #1e293b;
  white-space: nowrap;
}
.sc-price-chg {
  font-size: 11px;
  font-weight: 600;
  margin-top: 1px;
  white-space: nowrap;
}
.sc-price-chg.up  { color: #10b981; }
.sc-price-chg.down { color: #ef4444; }

/* ── 네트워크 비교표 ── */
.sc-net-compare {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
.sc-nc-header {
  display: grid;
  grid-template-columns: 80px 1fr 70px 60px;
  gap: 0;
  padding: 6px 10px;
  background: #f8fafc;
  border-radius: 8px 8px 0 0;
  border: 1px solid #e2e8f0;
  font-size: 11px;
  font-weight: 700;
  color: #94a3b8;
  letter-spacing: .3px;
  text-transform: uppercase;
}
.sc-nc-row {
  display: grid;
  grid-template-columns: 80px 1fr 70px 60px;
  gap: 0;
  padding: 9px 10px;
  border: 1px solid #e2e8f0;
  border-top: none;
  align-items: center;
  transition: background .15s;
}
.sc-nc-row:last-child { border-radius: 0 0 8px 8px; }
.sc-nc-row:hover { background: #f8f7ff; }
.sc-nc-row.recommended {
  background: #f0fdf4;
  border-color: #bbf7d0;
}
.sc-nc-name {
  font-size: 12px;
  font-weight: 700;
  color: #374151;
}
.sc-nc-fee {
  font-size: 12px;
  color: #64748b;
}
.sc-nc-speed {
  font-size: 12px;
  color: #64748b;
}
.sc-nc-rec {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-size: 10px;
  font-weight: 700;
  color: #10b981;
}

/* ── 혜택 카드 (다크 테마) ── */
.sc-benefit-card {
  background: linear-gradient(135deg, #1e1b4b 0%, #312e81 50%, #1e1b4b 100%);
  border-radius: 14px;
  padding: 16px;
  color: #fff;
}
.sc-benefit-title {
  font-size: 13px;
  font-weight: 700;
  color: #a5b4fc;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.sc-benefit-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.sc-benefit-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}
.sc-benefit-icon {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: rgba(255,255,255,.12);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  flex-shrink: 0;
}
.sc-benefit-info { flex: 1; min-width: 0; }
.sc-benefit-name {
  font-size: 12px;
  font-weight: 700;
  color: #e0e7ff;
}
.sc-benefit-desc {
  font-size: 11px;
  color: #94a3b8;
  margin-top: 1px;
  line-height: 1.4;
}

/* ── 주의사항 ── */
.sc-warning-box {
  background: #fff7ed;
  border: 1.5px solid #fed7aa;
  border-radius: 12px;
  padding: 14px;
  margin-top: 4px;
}
.sc-warn-title {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 700;
  color: #c2410c;
  margin-bottom: 10px;
}
.sc-warn-title i { font-size: 14px; color: #ea580c; }
.sc-warn-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.sc-warn-list li {
  display: flex;
  gap: 7px;
  font-size: 12px;
  color: #7c2d12;
  line-height: 1.5;
}
.sc-warn-list li::before {
  content: '•';
  color: #ea580c;
  font-weight: 900;
  flex-shrink: 0;
  margin-top: 1px;
}

/* ── 우측 패널 카드 공통 (sidebar inside remit) ── */
.sc-side-card {
  background: #fff;
  border: 1.5px solid #e2e8f0;
  border-radius: 14px;
  padding: 16px;
  margin-bottom: 14px;
}
.sc-side-card:last-child { margin-bottom: 0; }
.sc-side-card-title {
  font-size: 13px;
  font-weight: 700;
  color: #374151;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.sc-side-card-title i { color: #6366f1; }

/* ── 반응형 ── */
@media (max-width: 900px) {
  .sc-coin-tabs { gap: 6px; }
  .sc-coin-tab { padding: 10px 6px 8px; }
  .sc-coin-logo { width: 30px; height: 30px; font-size: 13px; }
  .sc-coin-name { font-size: 12px; }
  .sc-amount-box { flex-direction: column; }
  .sc-amount-side + .sc-amount-side { border-left: none; border-top: 1.5px solid #e2e8f0; }
  .sc-arrow-mid { flex-direction: row; padding: 6px 14px; }
  .sc-nc-header,
  .sc-nc-row { grid-template-columns: 70px 1fr 60px 50px; font-size: 11px; }
}



/* ════════════════════════════════════════════════════════════
   법인 단체 보증 대출 (corp-*)
   ════════════════════════════════════════════════════════════ */

/* ── 신청 모드 토글 ── */
.corp-mode-toggle {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
  background: #f1f5f9;
  border-radius: 14px;
  padding: 5px;
}
.corp-mode-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 11px 14px;
  border: none;
  border-radius: 10px;
  font-size: 13.5px;
  font-weight: 600;
  color: #64748b;
  background: transparent;
  cursor: pointer;
  transition: all .2s;
  position: relative;
  white-space: nowrap;
}
.corp-mode-btn i { font-size: 14px; }
.corp-mode-btn.active {
  background: #fff;
  color: #1e293b;
  box-shadow: 0 2px 10px rgba(0,0,0,.10);
}
.corp-mode-btn.active i { color: #6366f1; }
.corp-mode-badge {
  position: absolute;
  top: 5px;
  right: 6px;
  background: linear-gradient(135deg,#10b981,#059669);
  color: #fff;
  font-size: 9px;
  font-weight: 800;
  padding: 1px 6px;
  border-radius: 999px;
  letter-spacing: .3px;
}

/* ── 패널 전환 ── */
.corp-apply-panel { display: none; }
.corp-apply-panel.active { display: block; }

/* ── 법인 보증 안내 배너 ── */
.corp-info-banner {
  background: linear-gradient(135deg,#1e1b4b,#312e81);
  border-radius: 16px;
  padding: 18px 20px;
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}
.corp-info-icon {
  width: 44px;
  height: 44px;
  background: rgba(255,255,255,.15);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  color: #a5b4fc;
  flex-shrink: 0;
}
.corp-info-body { flex: 1; min-width: 160px; }
.corp-info-title {
  font-size: 15px;
  font-weight: 800;
  color: #fff;
  margin-bottom: 5px;
}
.corp-info-desc {
  font-size: 12px;
  color: rgba(255,255,255,.7);
  line-height: 1.6;
}
.corp-info-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: flex-start;
  padding-top: 2px;
}
.corp-chip {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
}
.corp-chip.green  { background: rgba(16,185,129,.2);  color: #6ee7b7; }
.corp-chip.blue   { background: rgba(99,102,241,.2);  color: #a5b4fc; }
.corp-chip.purple { background: rgba(139,92,246,.2);  color: #c4b5fd; }

/* ── Step 헤더 ── */
.corp-step-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
}
.corp-step-num {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: linear-gradient(135deg,#6366f1,#8b5cf6);
  color: #fff;
  font-size: 13px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.corp-step-title {
  font-size: 14px;
  font-weight: 700;
  color: #1e293b;
  flex: 1;
}
.corp-step-badge {
  font-size: 11px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 999px;
  background: #f1f5f9;
  color: #64748b;
  white-space: nowrap;
}
.corp-step-badge.done {
  background: rgba(16,185,129,.12);
  color: #10b981;
}

/* ── 법인 입력 필드 ── */
.corp-input-wrap {
  display: flex;
  align-items: center;
  gap: 0;
  border: 1.5px solid #e2e8f0;
  border-radius: 10px;
  background: #fff;
  overflow: hidden;
  transition: border-color .2s;
}
.corp-input-wrap:focus-within {
  border-color: #6366f1;
  box-shadow: 0 0 0 3px rgba(99,102,241,.10);
}
.corp-input-icon {
  padding: 0 12px;
  color: #94a3b8;
  font-size: 14px;
  flex-shrink: 0;
}
.corp-input {
  flex: 1;
  border: none;
  background: transparent;
  font-size: 13.5px;
  font-weight: 500;
  color: #1e293b;
  outline: none;
  padding: 11px 0;
  min-width: 0;
}
.corp-input::placeholder { color: #cbd5e1; }
.corp-verify-btn {
  padding: 11px 16px;
  background: #6366f1;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  flex-shrink: 0;
  transition: background .2s;
  user-select: none;
}
.corp-verify-btn:hover { background: #4f46e5; }

/* ── 법인 조회 결과 ── */
.corp-biz-result {
  background: #f0fdf4;
  border: 1.5px solid #bbf7d0;
  border-radius: 12px;
  padding: 14px 16px;
  margin-bottom: 14px;
}
.corp-biz-result-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}
.corp-biz-name {
  font-size: 14px;
  font-weight: 800;
  color: #1e293b;
  flex: 1;
}
.corp-biz-verified {
  font-size: 11px;
  font-weight: 700;
  color: #10b981;
  display: flex;
  align-items: center;
  gap: 3px;
}
.corp-biz-detail-grid {
  display: grid;
  grid-template-columns: repeat(4,1fr);
  gap: 8px;
}
.corp-biz-detail-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.corp-biz-detail-lbl { font-size: 10px; color: #64748b; font-weight: 600; }
.corp-biz-detail-val { font-size: 12px; color: #1e293b; font-weight: 700; }
.corp-grade { font-weight: 800 !important; }

/* ── 보증 유형 선택 ── */
.corp-guarantee-types {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.corp-gt-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 14px;
  border: 2px solid #e2e8f0;
  border-radius: 12px;
  cursor: pointer;
  transition: all .2s;
  background: #fff;
}
.corp-gt-item input[type=radio] { display: none; }
.corp-gt-item:hover { border-color: #a5b4fc; background: #f8f7ff; }
.corp-gt-item.active {
  border-color: #6366f1;
  background: rgba(99,102,241,.05);
  box-shadow: 0 0 0 3px rgba(99,102,241,.10);
}
.corp-gt-icon { font-size: 22px; flex-shrink: 0; }
.corp-gt-body { flex: 1; min-width: 0; }
.corp-gt-name { font-size: 13px; font-weight: 700; color: #1e293b; margin-bottom: 2px; }
.corp-gt-desc { font-size: 11px; color: #64748b; line-height: 1.5; }
.corp-gt-rate {
  font-size: 15px;
  font-weight: 800;
  color: #10b981;
  flex-shrink: 0;
  white-space: nowrap;
}

/* ── 근로자 명단 ── */
.corp-worker-header {
  display: grid;
  grid-template-columns: 1fr 1fr 100px 90px 32px;
  gap: 6px;
  padding: 6px 8px;
  background: #f8fafc;
  border-radius: 8px;
  font-size: 11px;
  font-weight: 700;
  color: #94a3b8;
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: .3px;
}
.corp-worker-row {
  display: grid;
  grid-template-columns: 1fr 1fr 100px 90px 32px;
  gap: 6px;
  align-items: center;
  padding: 6px 0;
  border-bottom: 1px solid #f1f5f9;
}
.corp-worker-row:last-child { border-bottom: none; }
.corp-wf {
  border: 1.5px solid #e2e8f0;
  border-radius: 8px;
  padding: 8px 10px;
  font-size: 12.5px;
  font-weight: 500;
  color: #1e293b;
  outline: none;
  background: #fff;
  width: 100%;
  min-width: 0;
  transition: border-color .15s;
}
.corp-wf:focus { border-color: #6366f1; }
.corp-wf-amt { text-align: right; font-weight: 700; }
.corp-wf-del {
  width: 30px;
  height: 30px;
  border: 1.5px solid #fecaca;
  border-radius: 8px;
  background: #fff5f5;
  color: #ef4444;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  transition: all .2s;
  flex-shrink: 0;
}
.corp-wf-del:hover { background: #fee2e2; }
.corp-add-worker-btn {
  width: 100%;
  margin-top: 10px;
  padding: 10px;
  border: 2px dashed #c7d2fe;
  border-radius: 10px;
  background: transparent;
  color: #6366f1;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  transition: all .2s;
}
.corp-add-worker-btn:hover { background: #f8f7ff; border-color: #6366f1; }

/* ── 단체 통계 ── */
.corp-group-stats {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr auto 1fr;
  align-items: center;
  margin-top: 14px;
  background: linear-gradient(135deg,rgba(99,102,241,.06),rgba(139,92,246,.06));
  border: 1px solid rgba(99,102,241,.15);
  border-radius: 12px;
  padding: 14px 16px;
}
.corp-gs-item { text-align: center; }
.corp-gs-val { font-size: 16px; font-weight: 800; color: #1e293b; }
.corp-gs-lbl { font-size: 10.5px; color: #94a3b8; margin-top: 2px; }
.corp-gs-sep { width: 1px; height: 32px; background: #e2e8f0; }

/* ── 보증 혜택 비교 ── */
.corp-benefit-compare {
  display: flex;
  align-items: stretch;
  gap: 0;
  border: 1.5px solid #e2e8f0;
  border-radius: 14px;
  overflow: hidden;
  margin-bottom: 18px;
}
.corp-bc-col {
  flex: 1;
  padding: 14px 16px;
}
.corp-bc-col-good {
  background: linear-gradient(135deg,rgba(16,185,129,.05),rgba(5,150,105,.08));
  border-left: 1.5px solid #bbf7d0;
}
.corp-bc-header {
  font-size: 11px;
  font-weight: 700;
  color: #64748b;
  margin-bottom: 10px;
  text-transform: uppercase;
  letter-spacing: .3px;
  display: flex;
  align-items: center;
  gap: 5px;
}
.corp-bc-tag {
  background: #10b981;
  color: #fff;
  font-size: 9px;
  font-weight: 800;
  padding: 1px 6px;
  border-radius: 999px;
}
.corp-bc-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 5px 0;
  border-bottom: 1px solid #f1f5f9;
  font-size: 12.5px;
}
.corp-bc-row:last-child { border-bottom: none; }
.corp-bc-row .lbl { color: #64748b; }
.corp-bc-row .val { font-weight: 700; color: #1e293b; }
.corp-bc-row .val.bad  { color: #94a3b8; }
.corp-bc-row .val.good { color: #10b981; }
.corp-bc-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 10px;
  background: #f8fafc;
  color: #6366f1;
  font-size: 18px;
  flex-shrink: 0;
}

/* ── 법인 보증 의무 ── */
.corp-obligation-box {
  background: #fff7ed;
  border: 1.5px solid #fed7aa;
  border-radius: 12px;
  padding: 14px 16px;
  margin-bottom: 16px;
}
.corp-ob-title {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12.5px;
  font-weight: 700;
  color: #c2410c;
  margin-bottom: 10px;
}
.corp-ob-title i { color: #ea580c; }
.corp-ob-list {
  list-style: none;
  padding: 0;
  margin: 0 0 12px;
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.corp-ob-list li {
  display: flex;
  align-items: flex-start;
  gap: 7px;
  font-size: 12px;
  color: #7c2d12;
  line-height: 1.5;
}
.corp-ob-list li i { color: #ea580c; font-size: 9px; margin-top: 3px; flex-shrink: 0; }
.corp-agree-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  font-weight: 600;
  color: #374151;
  cursor: pointer;
  padding-top: 10px;
  border-top: 1px solid #fde68a;
}
.corp-agree-row input[type=checkbox] {
  width: 16px;
  height: 16px;
  accent-color: #6366f1;
  cursor: pointer;
}

/* ── 법인 서명 서류 ── */
.corp-sign-section { margin-bottom: 4px; }
.corp-sign-title {
  font-size: 12.5px;
  font-weight: 700;
  color: #374151;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.corp-sign-title i { color: #6366f1; }
.corp-sign-row {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.corp-sign-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 14px;
  border: 1.5px solid #e2e8f0;
  border-radius: 10px;
  background: #fff;
  cursor: pointer;
  font-size: 13px;
  font-weight: 500;
  color: #374151;
  transition: all .2s;
}
.corp-sign-item i { color: #94a3b8; font-size: 15px; flex-shrink: 0; }
.corp-sign-item:hover { border-color: #6366f1; background: #f8f7ff; }
.corp-sign-item.attached { border-color: #10b981; background: #f0fdf4; }
.corp-sign-item.attached i { color: #10b981; }
.corp-sign-item span:nth-child(2) { flex: 1; }
.corp-sign-tag {
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 999px;
  background: #f1f5f9;
  color: #94a3b8;
  flex-shrink: 0;
}
.corp-sign-item.attached .corp-sign-tag {
  background: rgba(16,185,129,.12);
  color: #10b981;
}

/* ── 제출 버튼 힌트 ── */
.corp-submit-btn { margin-top: 16px; }
.corp-submit-btn:disabled { cursor: not-allowed; }
.corp-submit-hint {
  text-align: center;
  font-size: 12px;
  color: #94a3b8;
  margin-top: 8px;
  margin-bottom: 4px;
  font-weight: 500;
}

/* ── 반응형 ── */
@media (max-width: 900px) {
  .corp-info-banner { flex-direction: column; gap: 10px; }
  .corp-biz-detail-grid { grid-template-columns: repeat(2,1fr); }
  .corp-worker-header,
  .corp-worker-row { grid-template-columns: 1fr 80px 80px 70px 28px; }
  .corp-group-stats { grid-template-columns: 1fr; gap: 10px; }
  .corp-gs-sep { display: none; }
  .corp-benefit-compare { flex-direction: column; }
  .corp-bc-col-good { border-left: none; border-top: 1.5px solid #bbf7d0; }
  .corp-bc-arrow { padding: 8px; transform: rotate(90deg); }
}

