/* 별사탕 개복치 (MolaDiv) — 토스·카카오뱅크·일본 파스텔 치유계 디자인 시스템 */

:root {
  --bg: #F4F7FB;
  --surface: #FFFFFF;
  --surface-soft: #F8FAFC;
  --border: #E8EEF5;
  --text: #191F28;
  --text-sub: #4E5968;
  --text-muted: #8B95A1;
  --primary: #3182F6;
  --primary-soft: #EBF4FF;
  --gold: #F5B731;
  --gold-soft: #FFF8E1;
  --mint: #10B981;
  --mint-soft: #ECFDF5;
  --coral: #F04452;
  --coral-soft: #FFF0F1;
  --radius-xl: 24px;
  --radius-lg: 18px;
  --radius-md: 12px;
  --shadow-card: 0 4px 20px rgba(25, 31, 40, 0.045);
  --shadow-float: 0 12px 32px rgba(25, 31, 40, 0.12);
}

* {
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, 'Apple SD Gothic Neo', 'Malgun Gothic', 'Segoe UI', sans-serif;
  -webkit-font-smoothing: antialiased;
  line-height: 1.5;
}

.num {
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
}

/* 헤더 */
.top-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  max-width: 1080px;
  margin: 0 auto;
  padding: 12px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
}

.brand-avatar {
  width: 38px;
  height: 38px;
  border-radius: 14px;
  object-fit: cover;
  border: 2px solid #E3F0FF;
  box-shadow: 0 2px 8px rgba(49, 130, 246, 0.14);
}

.brand-title {
  font-size: 16px;
  font-weight: 800;
  letter-spacing: -0.03em;
  display: flex;
  align-items: center;
  gap: 6px;
}

.brand-badge {
  font-size: 10px;
  font-weight: 700;
  color: var(--primary);
  background: var(--primary-soft);
  padding: 2px 7px;
  border-radius: 999px;
}

.brand-sub {
  font-size: 11px;
  color: var(--text-muted);
}

.desktop-nav {
  display: flex;
  gap: 4px;
  background: var(--surface-soft);
  padding: 4px;
  border-radius: 14px;
  border: 1px solid var(--border);
}

.nav-btn {
  border: none;
  background: transparent;
  color: var(--text-sub);
  font-size: 13px;
  font-weight: 600;
  padding: 7px 14px;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.18s ease;
}

.nav-btn:hover {
  color: var(--text);
}

.nav-btn.active {
  background: var(--surface);
  color: var(--primary);
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.06);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.icon-pill {
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-sub);
  font-size: 12px;
  font-weight: 600;
  padding: 7px 12px;
  border-radius: 999px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: all 0.18s ease;
}

.icon-pill:hover {
  background: var(--surface-soft);
  color: var(--text);
}

.icon-pill.active {
  background: #191F28;
  color: #FFFFFF;
  border-color: #191F28;
}

.icon-pill.primary {
  background: var(--primary);
  color: #FFFFFF;
  border-color: var(--primary);
}

.icon-pill.primary:hover {
  background: #1B64DA;
}

/* 메인 컨테이너 */
.main-wrap {
  max-width: 1080px;
  margin: 0 auto;
  padding: 22px 20px 104px;
}

.tab-panel {
  display: none;
  animation: fadeUp 0.22s ease;
}

.tab-panel.active {
  display: block;
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

/* 샘플 온보딩 배너 */
.sample-banner {
  background: #FFFFFF;
  border: 1px solid #D6E7FF;
  border-radius: 16px;
  padding: 12px 16px;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  box-shadow: 0 4px 14px rgba(49, 130, 246, 0.06);
}

.sample-banner-text {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text-sub);
}

.sample-banner-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* 카드 공통 */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 22px;
  box-shadow: var(--shadow-card);
}

.card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

.card-title {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0;
}

.card-desc {
  font-size: 12.5px;
  color: var(--text-muted);
  margin: 2px 0 0;
}

/* 히어로 개복치 성장 카드 */
.hero-card {
  background: linear-gradient(135deg, #EEF7FF 0%, #FFFFFF 55%, #FFFDF5 100%);
  border: 1px solid #DCEBFF;
  border-radius: 28px;
  padding: 26px;
  box-shadow: 0 8px 30px rgba(49, 130, 246, 0.07);
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: 24px;
  align-items: center;
  margin-bottom: 18px;
  position: relative;
  overflow: hidden;
}

.hero-left {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.stage-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  background: #FFFFFF;
  color: var(--primary);
  border: 1px solid #D6E7FF;
  box-shadow: 0 2px 6px rgba(49, 130, 246, 0.08);
}

.shield-toggle {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 11px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.85);
  color: var(--text-sub);
  border: 1px solid var(--border);
  cursor: pointer;
  transition: all 0.18s ease;
}

.shield-toggle.active {
  background: #FFF7E0;
  color: #B45309;
  border-color: #FCD34D;
}

.hero-main-metric {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.hero-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-sub);
}

.hero-amount {
  font-size: 40px;
  font-weight: 800;
  letter-spacing: -0.035em;
  color: var(--text);
  line-height: 1.15;
}

.hero-sub-metric {
  font-size: 13px;
  color: var(--text-muted);
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.hero-sub-metric strong {
  color: var(--mint);
  font-weight: 700;
}

/* 2mm -> 3m 성장 바 */
.growth-box {
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid #E5EEF9;
  border-radius: 18px;
  padding: 14px 16px;
}

.growth-top {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 8px;
  gap: 8px;
}

.growth-size {
  font-size: 14px;
  font-weight: 800;
  color: var(--primary);
}

.growth-next {
  font-size: 12px;
  color: var(--text-sub);
}

.progress-track {
  width: 100%;
  height: 10px;
  background: #E8F0FA;
  border-radius: 999px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #60A5FA 0%, #3182F6 60%, #F5B731 100%);
  transition: width 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

.growth-milestones {
  display: flex;
  justify-content: space-between;
  margin-top: 6px;
  font-size: 10.5px;
  font-weight: 600;
  color: var(--text-muted);
}

/* 히어로 오른쪽: 개복치 + 말풍선 + 별사탕 유리병 */
.hero-right {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.speech-bubble {
  background: #FFFFFF;
  border: 1px solid #E2ECF8;
  border-radius: 18px;
  padding: 10px 14px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text-sub);
  text-align: center;
  position: relative;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.04);
  max-width: 340px;
}

.speech-bubble::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 50%;
  transform: translateX(-50%) rotate(45deg);
  width: 11px;
  height: 11px;
  background: #FFFFFF;
  border-right: 1px solid #E2ECF8;
  border-bottom: 1px solid #E2ECF8;
}

.mascot-stage {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 16px;
}

.mascot-frame {
  width: 158px;
  height: 158px;
  border-radius: 36px;
  background: #FFFFFF;
  border: 3px solid #FFFFFF;
  box-shadow: 0 12px 28px rgba(49, 130, 246, 0.14);
  overflow: hidden;
  position: relative;
  animation: gentleBob 3.6s ease-in-out infinite;
}

.mascot-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

@keyframes gentleBob {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-6px); }
}

/* 별사탕 유리병 */
.candy-jar-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
}

.candy-jar {
  width: 82px;
  height: 112px;
  border-radius: 16px 16px 24px 24px;
  border: 2.5px solid #CFE2F7;
  background: linear-gradient(180deg, rgba(255,255,255,0.65) 0%, rgba(235,245,255,0.85) 100%);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-wrap: wrap-reverse;
  align-content: flex-start;
  justify-content: center;
  gap: 3px;
  padding: 8px 6px;
  box-shadow: inset 0 4px 10px rgba(255,255,255,0.9), 0 6px 14px rgba(49,130,246,0.08);
}

.candy-jar-lid {
  width: 56px;
  height: 11px;
  border-radius: 6px;
  background: #E2B887;
  border: 2px solid #C69563;
  margin-bottom: -4px;
  z-index: 2;
}

.star-candy {
  width: 12px;
  height: 12px;
  border-radius: 4px;
  transform: rotate(22deg);
  box-shadow: inset -2px -2px 0 rgba(0, 0, 0, 0.08);
  animation: popIn 0.35s ease backwards;
}

@keyframes popIn {
  from { transform: scale(0) rotate(0deg); opacity: 0; }
  to { transform: scale(1) rotate(22deg); opacity: 1; }
}

.candy-jar-label {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-muted);
}

/* KPI 3열 그리드 */
.kpi-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-bottom: 18px;
}

.kpi-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 18px 20px;
  box-shadow: var(--shadow-card);
}

.kpi-label {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.kpi-value {
  font-size: 22px;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 4px;
}

.kpi-meta {
  font-size: 12px;
  color: var(--text-sub);
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.tag {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
}

.tag-blue { background: var(--primary-soft); color: var(--primary); }
.tag-mint { background: var(--mint-soft); color: #059669; }
.tag-gold { background: var(--gold-soft); color: #B45309; }
.tag-coral { background: var(--coral-soft); color: var(--coral); }

/* 대시보드 2열 레이아웃 */
.dashboard-grid {
  display: grid;
  grid-template-columns: 1.45fr 1fr;
  gap: 18px;
}

/* 12개월 배당 차트 */
.bar-chart {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 6px;
  align-items: end;
  height: 196px;
  padding: 14px 4px 6px;
}

.bar-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  height: 100%;
  justify-content: flex-end;
  gap: 6px;
  cursor: pointer;
}

.bar-val {
  font-size: 10px;
  font-weight: 700;
  color: var(--text-muted);
  white-space: nowrap;
}

.bar-col.selected .bar-val {
  color: var(--primary);
}

.bar-track {
  width: 100%;
  max-width: 30px;
  height: 138px;
  background: #F2F6FB;
  border-radius: 10px;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}

.bar-fill {
  width: 100%;
  border-radius: 10px;
  background: linear-gradient(180deg, #7CC4FA 0%, #3182F6 100%);
  transition: height 0.4s cubic-bezier(0.22, 1, 0.36, 1), background 0.2s;
  min-height: 4px;
}

.bar-col.selected .bar-fill {
  background: linear-gradient(180deg, #FCD34D 0%, #F59E0B 100%);
}

.bar-month {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-sub);
}

.bar-col.selected .bar-month {
  color: var(--text);
  font-weight: 800;
}

.month-detail-box {
  margin-top: 12px;
  background: var(--surface-soft);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 14px 16px;
}

.month-detail-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 10px;
}

.month-detail-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
}

/* 계좌별 비중 리스트 */
.account-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.account-row {
  padding: 12px 14px;
  border-radius: 14px;
  background: var(--surface-soft);
  border: 1px solid var(--border);
}

.account-row-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
  font-size: 13px;
}

/* 보유 종목 카드 리스트 */
.holdings-toolbar {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}

.filter-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.chip {
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-sub);
  font-size: 12.5px;
  font-weight: 600;
  padding: 6px 13px;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.chip.active {
  background: var(--primary);
  color: #FFFFFF;
  border-color: var(--primary);
}

.holding-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.holding-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 16px 20px;
  box-shadow: var(--shadow-card);
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr auto;
  gap: 14px;
  align-items: center;
}

.holding-name-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.holding-name {
  font-size: 15px;
  font-weight: 700;
}

.holding-ticker {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-muted);
}

.holding-sub {
  font-size: 12px;
  color: var(--text-sub);
  margin-top: 4px;
}

.holding-col-label {
  font-size: 11px;
  color: var(--text-muted);
  margin-bottom: 2px;
}

.holding-col-val {
  font-size: 15px;
  font-weight: 700;
}

.holding-actions {
  display: flex;
  gap: 6px;
}

.btn-sm {
  border: 1px solid var(--border);
  background: var(--surface-soft);
  color: var(--text-sub);
  font-size: 12px;
  font-weight: 600;
  padding: 6px 10px;
  border-radius: 10px;
  cursor: pointer;
}

.btn-sm:hover {
  background: #EDF2F8;
  color: var(--text);
}

.btn-sm.danger:hover {
  background: var(--coral-soft);
  color: var(--coral);
  border-color: #FECDD3;
}

/* 리밸런싱 & 절세 게이지 */
.rebalance-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  background: var(--surface-soft);
  border: 1px solid var(--border);
  padding: 16px;
  border-radius: 18px;
  margin-bottom: 16px;
}

.input-field {
  border: 1px solid #D5DEE8;
  background: #FFFFFF;
  border-radius: 12px;
  padding: 10px 13px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  outline: none;
  font-family: inherit;
  transition: border-color 0.15s;
}

.input-field:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(49, 130, 246, 0.12);
}

.rebalance-row {
  display: grid;
  grid-template-columns: 1.4fr 0.9fr 1fr 1.1fr;
  gap: 12px;
  align-items: center;
  padding: 14px 16px;
  border-radius: 16px;
  background: var(--surface-soft);
  border: 1px solid var(--border);
}

.tax-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.gauge-bar {
  width: 100%;
  height: 14px;
  background: #EDF2F7;
  border-radius: 999px;
  overflow: hidden;
  margin: 10px 0 8px;
}

.gauge-fill {
  height: 100%;
  border-radius: 999px;
  transition: width 0.45s ease;
}

.gauge-safe { background: linear-gradient(90deg, #34D399, #10B981); }
.gauge-warn { background: linear-gradient(90deg, #FBBF24, #F59E0B); }
.gauge-danger { background: linear-gradient(90deg, #FB7185, #F04452); }

/* 프로 배너 (7일 시장 검증용) */
.pro-banner {
  margin-top: 20px;
  background: linear-gradient(135deg, #1E293B 0%, #273752 100%);
  color: #FFFFFF;
  border-radius: 22px;
  padding: 20px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.pro-banner h3 {
  margin: 0 0 4px;
  font-size: 16px;
  font-weight: 800;
}

.pro-banner p {
  margin: 0;
  font-size: 12.5px;
  color: #CBD5E1;
}

.btn-gold {
  border: none;
  background: linear-gradient(135deg, #FDE047, #F5B731);
  color: #191F28;
  font-size: 13px;
  font-weight: 800;
  padding: 10px 18px;
  border-radius: 12px;
  cursor: pointer;
  white-space: nowrap;
}

.btn-gold:hover {
  filter: brightness(1.03);
}

/* 모달 */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.48);
  backdrop-filter: blur(4px);
  z-index: 80;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.modal-backdrop.open {
  display: flex;
}

.modal-sheet {
  background: var(--surface);
  width: 100%;
  max-width: 520px;
  max-height: 90vh;
  overflow-y: auto;
  border-radius: 26px;
  padding: 24px;
  box-shadow: var(--shadow-float);
  animation: modalPop 0.2s ease;
}

@keyframes modalPop {
  from { opacity: 0; transform: scale(0.96) translateY(8px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.modal-title {
  font-size: 18px;
  font-weight: 800;
  margin: 0;
}

.close-btn {
  border: none;
  background: var(--surface-soft);
  width: 34px;
  height: 34px;
  border-radius: 12px;
  font-size: 18px;
  cursor: pointer;
  color: var(--text-sub);
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin-bottom: 12px;
}

.form-label {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-sub);
}

.preset-scroll {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding-bottom: 6px;
  margin-bottom: 12px;
}

.preset-chip {
  flex: 0 0 auto;
  border: 1px solid #D8E6F7;
  background: #F4F9FF;
  color: var(--primary);
  font-size: 12px;
  font-weight: 700;
  padding: 6px 11px;
  border-radius: 999px;
  cursor: pointer;
}

.preset-chip:hover {
  background: var(--primary);
  color: #FFFFFF;
}

.month-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 6px;
}

.month-chip {
  border: 1px solid var(--border);
  background: var(--surface-soft);
  color: var(--text-sub);
  font-size: 12px;
  font-weight: 700;
  padding: 7px 0;
  border-radius: 10px;
  cursor: pointer;
  text-align: center;
}

.month-chip.active {
  background: var(--primary);
  color: #FFFFFF;
  border-color: var(--primary);
}

.btn-primary-full {
  width: 100%;
  border: none;
  background: var(--primary);
  color: #FFFFFF;
  font-size: 15px;
  font-weight: 700;
  padding: 13px;
  border-radius: 14px;
  cursor: pointer;
  margin-top: 6px;
}

.btn-primary-full:hover {
  background: #1B64DA;
}

/* 메이트 선택 그리드 */
.mate-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-bottom: 14px;
}

.mate-card {
  border: 2px solid var(--border);
  border-radius: 16px;
  padding: 10px;
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  background: var(--surface);
  transition: all 0.15s;
}

.mate-card.active {
  border-color: var(--primary);
  background: var(--primary-soft);
}

.mate-card img {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  object-fit: cover;
}

/* 인증샷 캔버스 프리뷰 */
.share-preview-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

#shareCanvas {
  width: 100%;
  max-width: 380px;
  height: auto;
  border-radius: 20px;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.12);
  border: 1px solid var(--border);
}

/* 토스트 */
.toast {
  position: fixed;
  bottom: 84px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: #191F28;
  color: #FFFFFF;
  font-size: 13px;
  font-weight: 600;
  padding: 10px 18px;
  border-radius: 999px;
  opacity: 0;
  pointer-events: none;
  transition: all 0.25s ease;
  z-index: 120;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* 모바일 하단 탭 바 */
.mobile-nav {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(12px);
  border-top: 1px solid var(--border);
  padding: 8px 10px 12px;
  z-index: 50;
  justify-content: space-around;
}

.mobile-nav-btn {
  border: none;
  background: transparent;
  color: var(--text-muted);
  font-size: 11px;
  font-weight: 700;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  cursor: pointer;
  padding: 4px 10px;
}

.mobile-nav-btn.active {
  color: var(--primary);
}

.mobile-nav-icon {
  font-size: 18px;
}

.footer-disclaimer {
  margin-top: 26px;
  text-align: center;
  font-size: 11.5px;
  color: var(--text-muted);
  line-height: 1.6;
}

/* 반응형 */
@media (max-width: 860px) {
  .desktop-nav { display: none; }
  .mobile-nav { display: flex; }
  .hero-card { grid-template-columns: 1fr; padding: 20px; }
  .hero-amount { font-size: 32px; }
  .kpi-grid { grid-template-columns: 1fr; }
  .dashboard-grid { grid-template-columns: 1fr; }
  .tax-grid { grid-template-columns: 1fr; }
  .holding-card { grid-template-columns: 1fr 1fr; }
  .rebalance-row { grid-template-columns: 1fr; }
  .header-inner { padding: 10px 14px; }
  .hide-mobile { display: none; }
}
