/* =============================================
   다크 모던 테마 — CSS 변수 & Bootstrap 오버라이드
   ============================================= */

/* 1. 색상 팔레트 변수 */
:root {
  --bg-body:        #0f1117;
  --bg-sidebar:     #1a1d2e;
  --bg-card:        #1e2135;
  --bg-card-hover:  #252843;
  --bg-topbar:      #161929;
  --border-color:   #2d3154;
  --accent:         #6366f1;
  --accent-hover:   #4f46e5;
  --accent-light:   #a5b4fc;
  --positive:       #10b981;
  --positive-hover: #059669;
  --negative:       #ef4444;
  --neutral:        #94a3b8;
  --text-primary:   #e2e8f0;
  --text-muted:     #64748b;
  --sidebar-width:  220px;
}

/* 2. Bootstrap 변수 오버라이드 */
:root {
  --bs-primary:           #6366f1;
  --bs-body-bg:           var(--bg-body);
  --bs-body-color:        var(--text-primary);
  --bs-card-bg:           var(--bg-card);
  --bs-card-border-color: var(--border-color);
  --bs-border-color:      var(--border-color);
  --bs-secondary-bg:      var(--bg-card);
  --bs-tertiary-bg:       var(--bg-sidebar);
  --bs-primary-rgb:       99, 102, 241;
  --bs-success-rgb:       16, 185, 129;
  --bs-danger-rgb:        239, 68, 68;
  --bs-secondary-color:   var(--text-muted);
  --bs-link-color:        var(--accent);
  --bs-link-hover-color:  var(--accent-hover);
}

/* 3. 전역 폰트 & body */
body {
  font-family: 'Inter', 'Noto Sans KR', sans-serif;
  background-color: var(--bg-body);
  color: var(--text-primary);
  min-height: 100vh;
}

/* =============================================
   사이드바 레이아웃
   ============================================= */

.sidebar {
  position: fixed;
  top: 0;
  left: 0;
  width: var(--sidebar-width);
  height: 100vh;
  background: var(--bg-sidebar);
  border-right: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
  z-index: 1000;
  transition: transform 0.3s ease;
  overflow-y: auto;
}

.sidebar-brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 1.25rem 1rem;
  color: var(--text-primary);
  text-decoration: none;
  font-weight: 700;
  font-size: 0.95rem;
  border-bottom: 1px solid var(--border-color);
  background: linear-gradient(180deg, rgba(99, 102, 241, 0.07) 0%, transparent 100%);
}

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

.sidebar-brand .brand-icon {
  font-size: 1.4rem;
  color: var(--accent);
}

.sidebar-nav {
  flex: 1;
  padding: 1rem 0.75rem;
  list-style: none;
  margin: 0;
}

.sidebar-nav .nav-label {
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  padding: 0.75rem 0.5rem 0.25rem;
  font-weight: 600;
}

.sidebar-nav .nav-link {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.55rem 0.75rem;
  border-radius: 8px;
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  transition: all 0.15s ease;
  margin-bottom: 2px;
}

.sidebar-nav .nav-link i {
  font-size: 1rem;
  width: 1.2rem;
  text-align: center;
}

.sidebar-nav .nav-link:hover {
  color: var(--text-primary);
  background: rgba(99, 102, 241, 0.1);
}

.sidebar-nav .nav-link.active {
  color: var(--accent);
  background: rgba(99, 102, 241, 0.12);
  font-weight: 600;
  border-left: 2px solid var(--accent);
  padding-left: calc(0.75rem - 2px);
}

.sidebar-footer {
  padding: 0.75rem;
  border-top: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.sidebar-user {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem;
  border-radius: 8px;
  margin-bottom: 0.5rem;
  font-size: 0.82rem;
  color: var(--text-muted);
}

.sidebar-user i {
  font-size: 1.2rem;
  color: var(--accent);
}

.btn-collect {
  width: 100%;
  background: var(--accent);
  border: none;
  color: #fff;
  font-size: 0.82rem;
  font-weight: 600;
  padding: 0.45rem 0.75rem;
  border-radius: 8px;
  transition: background 0.15s ease;
  cursor: pointer;
}

.btn-collect:hover {
  background: var(--accent-hover);
  color: #fff;
}

.btn-logout {
  width: 100%;
  background: transparent;
  border: 1px solid var(--border-color);
  color: var(--text-muted);
  font-size: 0.78rem;
  padding: 0.35rem 0.75rem;
  border-radius: 8px;
  margin-top: 0.35rem;
  transition: all 0.15s ease;
  cursor: pointer;
}

.btn-logout:hover {
  border-color: var(--negative);
  color: var(--negative);
}

.main-wrapper {
  margin-left: var(--sidebar-width);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.topbar {
  background: var(--bg-topbar);
  border-bottom: 1px solid var(--border-color);
  padding: 0.75rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 900;
}

.topbar-title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
  margin: 0;
}

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

.topbar-user {
  font-size: 0.82rem;
  color: var(--text-muted);
}

.content-area {
  flex: 1;
  padding: 1.75rem 1.5rem;
}

.sidebar-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  padding: 0.3rem 0.6rem;
  border-radius: 6px;
  cursor: pointer;
  font-size: 1.1rem;
}

.sidebar-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 999;
}

/* =============================================
   컴포넌트 스타일
   ============================================= */

.card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
  border-color: rgba(99, 102, 241, 0.4);
  box-shadow: 0 0 0 1px rgba(99, 102, 241, 0.15),
              0 4px 16px rgba(0, 0, 0, 0.4);
}

.card-header {
  background: transparent;
  border-bottom: 1px solid var(--border-color);
  padding: 0.875rem 1.25rem;
  font-weight: 600;
  font-size: 0.875rem;
  color: var(--text-primary);
}

.badge.bg-success {
  background: rgba(16, 185, 129, 0.15) !important;
  color: var(--positive) !important;
  border: 1px solid rgba(16, 185, 129, 0.3);
  font-weight: 600;
}

.badge.bg-danger {
  background: rgba(239, 68, 68, 0.15) !important;
  color: var(--negative) !important;
  border: 1px solid rgba(239, 68, 68, 0.3);
  font-weight: 600;
}

.badge.bg-secondary {
  background: rgba(148, 163, 184, 0.12) !important;
  color: var(--neutral) !important;
  border: 1px solid rgba(148, 163, 184, 0.2);
}

.badge.bg-info {
  background: rgba(99, 102, 241, 0.15) !important;
  color: #a5b4fc !important;
  border: 1px solid rgba(99, 102, 241, 0.3);
}

.badge.bg-dark {
  background: rgba(255, 255, 255, 0.07) !important;
  color: var(--text-muted) !important;
  border: 1px solid var(--border-color);
}

.badge.bg-light {
  background: rgba(255, 255, 255, 0.06) !important;
  color: var(--neutral) !important;
  border: 1px solid var(--border-color);
}

.badge.bg-warning {
  background: rgba(251, 191, 36, 0.15) !important;
  color: #fcd34d !important;
  border: 1px solid rgba(251, 191, 36, 0.3);
}

.btn-primary {
  background: var(--accent);
  border-color: var(--accent);
}

.btn-primary:hover,
.btn-primary:focus {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
}

.btn-outline-primary {
  border-color: var(--accent);
  color: var(--accent);
}

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

.btn-outline-primary.active {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.btn-success {
  background: var(--positive);
  border-color: var(--positive);
  color: #fff;
}

.btn-success:hover {
  background: var(--positive-hover);
  border-color: var(--positive-hover);
  color: #fff;
}

.btn-outline-secondary {
  border-color: var(--border-color);
  color: var(--text-muted);
}

.btn-outline-secondary:hover {
  background: var(--bg-card-hover);
  border-color: var(--text-muted);
  color: var(--text-primary);
}

.btn-outline-light {
  border-color: var(--border-color);
  color: var(--text-muted);
}

.btn-outline-light:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--text-muted);
  color: var(--text-primary);
}

.btn-outline-danger {
  border-color: rgba(239, 68, 68, 0.4);
  color: var(--negative);
}

.btn-outline-danger:hover {
  background: rgba(239, 68, 68, 0.1);
  border-color: var(--negative);
  color: var(--negative);
}

.btn-secondary {
  background: var(--bg-card-hover);
  border-color: var(--border-color);
  color: var(--text-muted);
}

.btn-secondary:hover {
  background: var(--border-color);
  border-color: var(--text-muted);
  color: var(--text-primary);
}

.form-control,
.form-select {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  border-radius: 8px;
}

.form-control:focus,
.form-select:focus {
  background: rgba(255, 255, 255, 0.07);
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.15);
  color: var(--text-primary);
}

.form-control.is-invalid,
.form-select.is-invalid {
  background-color: rgba(239, 68, 68, 0.07);
  border-color: var(--negative);
  color: var(--text-primary);
}

.form-control::placeholder {
  color: var(--text-muted);
}

.form-select option {
  background: var(--bg-card);
  color: var(--text-primary);
}

.form-label {
  color: var(--text-muted);
  font-size: 0.82rem;
  font-weight: 500;
  margin-bottom: 0.35rem;
}

.form-check-input:checked {
  background-color: var(--accent);
  border-color: var(--accent);
}

.form-check-input {
  background-color: rgba(255, 255, 255, 0.08);
  border-color: var(--border-color);
}

.form-text,
small.text-muted {
  color: var(--text-muted) !important;
}

.table {
  color: var(--text-primary);
}

.table > :not(caption) > * > * {
  background-color: transparent;
  border-bottom-color: var(--border-color);
  color: var(--text-primary);
}

.table-hover > tbody > tr:hover > * {
  background-color: rgba(99, 102, 241, 0.05);
}

.table thead th {
  color: var(--text-muted);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 600;
  border-bottom-color: var(--border-color);
}

.table-light {
  --bs-table-bg: rgba(255, 255, 255, 0.03);
  --bs-table-color: var(--text-muted);
}

.list-group-item {
  background: transparent;
  border-color: var(--border-color);
  color: var(--text-primary);
}

.alert-info {
  background: rgba(99, 102, 241, 0.1);
  border-color: rgba(99, 102, 241, 0.25);
  color: #a5b4fc;
}

.alert-warning {
  background: rgba(251, 191, 36, 0.1);
  border-color: rgba(251, 191, 36, 0.25);
  color: #fcd34d;
}

.alert-danger {
  background: rgba(239, 68, 68, 0.1);
  border-color: rgba(239, 68, 68, 0.25);
  color: #fca5a5;
}

.alert-success {
  background: rgba(16, 185, 129, 0.1);
  border-color: rgba(16, 185, 129, 0.25);
  color: #6ee7b7;
}

.page-link {
  background: var(--bg-card);
  border-color: var(--border-color);
  color: var(--text-muted);
}

.page-link:hover {
  background: var(--bg-card-hover);
  border-color: var(--accent);
  color: var(--accent);
}

.page-item.active .page-link {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.page-item.disabled .page-link {
  background: var(--bg-card);
  border-color: var(--border-color);
  color: var(--text-muted);
  opacity: 0.4;
}

.modal-content {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 12px;
}

.modal-header {
  border-bottom-color: var(--border-color);
  color: var(--text-primary);
}

.modal-footer {
  border-top-color: var(--border-color);
}

.btn-close {
  filter: invert(1) brightness(0.6);
}

.breadcrumb-item a {
  color: var(--accent);
  text-decoration: none;
}

.breadcrumb-item.active,
.breadcrumb-item + .breadcrumb-item::before {
  color: var(--text-muted);
}

/* 통계 카드 큰 숫자 그라디언트 */
.stat-number {
  font-size: 2.5rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--accent), #818cf8);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1.1;
  margin: 0.25rem 0;
}

.stat-number.positive {
  background: linear-gradient(135deg, var(--positive), #34d399);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stat-number.negative {
  background: linear-gradient(135deg, var(--negative), #f87171);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stat-number.neutral {
  background: linear-gradient(135deg, var(--neutral), #cbd5e1);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.chart-container {
  position: relative;
  height: 300px;
}

/* 로그인/회원가입 배경 */
.auth-wrapper {
  min-height: 100vh;
  background: radial-gradient(ellipse at 50% 0%, rgba(99, 102, 241, 0.12) 0%, transparent 65%),
              var(--bg-body);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 1rem;
}

.auth-card {
  width: 100%;
  max-width: 420px;
}

/* 스크롤바 */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: var(--border-color);
  border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--text-muted);
}

/* 모바일 반응형 */
@media (max-width: 768px) {
  .sidebar {
    transform: translateX(-100%);
  }

  .sidebar.open {
    transform: translateX(0);
  }

  .sidebar-overlay.open {
    display: block;
  }

  .sidebar-toggle {
    display: block;
  }

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

  .content-area {
    padding: 1rem;
  }
}

.progress {
  background: rgba(255, 255, 255, 0.07);
  border-radius: 4px;
}

.progress-bar {
  background: var(--accent);
}

footer {
  background: var(--bg-topbar) !important;
  border-top: 1px solid var(--border-color);
  color: var(--text-muted) !important;
  font-size: 0.8rem;
  padding: 1rem 1.5rem;
}

.btn-loading {
  pointer-events: none;
  opacity: 0.65;
}

hr {
  border-color: var(--border-color);
  opacity: 1;
}

code {
  color: #a5b4fc;
  background: rgba(99, 102, 241, 0.1);
  padding: 0.1em 0.35em;
  border-radius: 4px;
  font-size: 0.85em;
}

/* =============================================
   보기 모드 탭
   ============================================= */

.view-mode-tabs {
  display: flex;
  gap: 0.5rem;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 0;
}

.view-mode-tab {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.6rem 1.1rem;
  border-radius: 8px 8px 0 0;
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  border: 1px solid transparent;
  border-bottom: none;
  transition: all 0.15s ease;
  margin-bottom: -1px;
}

.view-mode-tab:hover {
  color: var(--text-primary);
  background: rgba(99, 102, 241, 0.08);
}

.view-mode-tab.active {
  color: var(--accent);
  background: var(--bg-card);
  border-color: var(--border-color);
  border-bottom-color: var(--bg-card);
}

/* =============================================
   캘린더
   ============================================= */

.calendar-wrapper {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  overflow: hidden;
}

.calendar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--border-color);
  background: rgba(99, 102, 241, 0.06);
}

.calendar-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary);
}

.calendar-nav-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: 6px;
  color: var(--text-muted);
  text-decoration: none;
  transition: all 0.15s ease;
  border: 1px solid var(--border-color);
}

.calendar-nav-btn:hover {
  color: var(--accent);
  border-color: var(--accent);
  background: rgba(99, 102, 241, 0.1);
}

.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 1px;
  background: var(--border-color);
  padding: 0;
}

.calendar-dow {
  background: var(--bg-card);
  text-align: center;
  padding: 0.6rem 0.25rem;
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
}

.calendar-cell {
  background: var(--bg-card);
  min-height: 3.5rem;
  padding: 0.4rem 0.5rem;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.2rem;
  text-decoration: none;
  transition: background 0.15s ease;
  position: relative;
}

.calendar-cell:not(.empty):hover {
  background: var(--bg-card-hover);
  cursor: pointer;
}

.calendar-cell.empty {
  background: rgba(0, 0, 0, 0.15);
}

.calendar-cell.today .calendar-day-num {
  color: var(--accent);
  font-weight: 700;
}

.calendar-cell.selected {
  background: rgba(99, 102, 241, 0.18);
  border: 1px solid var(--accent);
}

.calendar-cell.selected .calendar-day-num {
  color: var(--accent);
  font-weight: 700;
}

.calendar-day-num {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1;
}

.calendar-dot {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.2rem;
  height: 1.2rem;
  padding: 0 0.3rem;
  background: rgba(99, 102, 241, 0.2);
  color: var(--accent);
  border-radius: 10px;
  font-size: 0.65rem;
  font-weight: 700;
  border: 1px solid rgba(99, 102, 241, 0.35);
}

/* =============================================
   테마 타일
   ============================================= */

.theme-tile {
  display: block;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 1.1rem 1.25rem;
  text-decoration: none;
  transition: all 0.2s ease;
  height: 100%;
}

.theme-tile:hover {
  border-color: rgba(99, 102, 241, 0.5);
  background: var(--bg-card-hover);
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
}

.theme-tile.selected {
  border-color: var(--accent);
  background: rgba(99, 102, 241, 0.1);
  box-shadow: 0 0 0 1px var(--accent), 0 4px 16px rgba(99, 102, 241, 0.2);
}

.theme-tile-name {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.35rem;
}

.theme-tile-count {
  font-size: 1.5rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--accent), #818cf8);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1.1;
  margin-bottom: 0.6rem;
}

.theme-tile-bar {
  display: flex;
  height: 5px;
  border-radius: 3px;
  overflow: hidden;
  background: var(--border-color);
  margin-bottom: 0.4rem;
}

.theme-bar-segment {
  height: 100%;
  transition: width 0.3s ease;
}

.theme-bar-segment.positive { background: var(--positive); }
.theme-bar-segment.negative { background: var(--negative); }
.theme-bar-segment.neutral  { background: var(--neutral); }

.theme-tile-legend {
  display: flex;
  gap: 0.75rem;
  font-size: 0.72rem;
  font-weight: 500;
}

.text-positive { color: var(--positive); }
.text-negative { color: var(--negative); }

/* =============================================
   섹션 헤딩 (날짜/테마 선택 후 결과 제목)
   ============================================= */

.section-heading {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary);
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--border-color);
}

/* =============================================
   뉴스 리스트형 카드
   ============================================= */

.news-list {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--border-color);
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 1.5rem;
}

.news-list-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.9rem 1.25rem;
  text-decoration: none;
  border-bottom: 1px solid var(--border-color);
  border-left: 4px solid transparent;
  background: var(--bg-card);
  transition: background 0.15s ease;
  color: var(--text-primary);
}

.news-list-item:last-child {
  border-bottom: none;
}

.news-list-item:hover {
  background: var(--bg-card-hover);
  color: var(--text-primary);
}

.news-list-item.news-sentiment-positive { border-left-color: var(--positive); }
.news-list-item.news-sentiment-negative { border-left-color: var(--negative); }
.news-list-item.news-sentiment-neutral  { border-left-color: var(--neutral); }

.news-list-main {
  flex: 1;
  min-width: 0;
}

.news-list-meta {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  margin-bottom: 0.3rem;
  flex-wrap: wrap;
}

.news-list-time {
  font-size: 0.72rem;
  color: var(--text-muted);
  margin-left: auto;
  white-space: nowrap;
}

.news-list-title {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.2rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: color 0.15s ease;
}

.news-list-item:hover .news-list-title {
  color: var(--accent);
}

.news-list-summary {
  font-size: 0.78rem;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.news-list-arrow {
  color: var(--text-muted);
  font-size: 0.8rem;
  flex-shrink: 0;
  transition: transform 0.15s ease, color 0.15s ease;
}

.news-list-item:hover .news-list-arrow {
  transform: translateX(3px);
  color: var(--accent);
}

/* =============================================
   대시보드 stat 카드
   ============================================= */

.stat-card {
  border-top: 3px solid var(--border-color);
}

.stat-card--total    { border-top-color: var(--accent); }
.stat-card--positive { border-top-color: var(--positive); }
.stat-card--negative { border-top-color: var(--negative); }
.stat-card--neutral  { border-top-color: var(--neutral); }

.stat-card-icon {
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  flex-shrink: 0;
}

.stat-card--total    .stat-card-icon { background: rgba(99,102,241,0.15);  color: var(--accent); }
.stat-card--positive .stat-card-icon { background: rgba(16,185,129,0.15);  color: var(--positive); }
.stat-card--negative .stat-card-icon { background: rgba(239,68,68,0.15);   color: var(--negative); }
.stat-card--neutral  .stat-card-icon { background: rgba(148,163,184,0.12); color: var(--neutral); }

.stat-card-label {
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  margin-bottom: 0.1rem;
}

.stat-card-sub {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 0.1rem;
}
