:root {
  --bg-main: #f3f4f6; /* 舒適清爽的淺灰色底 */
  --bg-card: rgba(255, 255, 255, 0.85); /* 半透明純白質感卡片 */
  --bg-card-hover: rgba(255, 255, 255, 0.95);
  --border-color: rgba(0, 0, 0, 0.06);
  
  --color-primary: #4f46e5; /* 靛藍 */
  --color-primary-glow: rgba(79, 70, 229, 0.12);
  --color-secondary: #8b5cf6; /* 紫色 */
  
  --color-high: #dc2626; /* 柔和深紅 */
  --color-high-glow: rgba(220, 38, 38, 0.08);
  --color-medium: #2563eb; /* 柔和深藍 */
  --color-medium-glow: rgba(37, 99, 235, 0.08);
  --color-low: #059669; /* 柔和深綠 */
  --color-low-glow: rgba(5, 150, 105, 0.08);
  
  --text-main: #1f2937; /* 主要文字改為舒服的深灰 */
  --text-muted: #4b5563; /* 中灰 */
  --text-dark: #8b95a5;
  
  --font-display: 'Outfit', 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  
  --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ==========================================
   基礎樣式與滾動條
   ========================================== */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  background-color: var(--bg-main);
  background-image: 
    radial-gradient(at 10% 10%, rgba(99, 102, 241, 0.1) 0px, transparent 50%),
    radial-gradient(at 90% 90%, rgba(168, 85, 247, 0.1) 0px, transparent 50%);
  background-attachment: fixed;
  color: var(--text-main);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}

/* 自訂滾動條 */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.01);
}
::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.15);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--color-primary);
}

/* ==========================================
   主版面配置
   ========================================== */
.app-container {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  max-width: 1600px;
  margin: 0 auto;
  padding: 20px;
}

/* ==========================================
   頂部導覽列 (Header)
   ========================================== */
.app-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
  padding: 20px 24px;
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  margin-bottom: 24px;
}

.header-logo {
  display: flex;
  align-items: center;
  gap: 16px;
}

.logo-icon {
  font-size: 2.2rem;
  animation: logoPulse 3s infinite ease-in-out;
}

.logo-text h1 {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 700;
  background: linear-gradient(135deg, #1f2937 0%, #4f46e5 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.logo-text .subtitle {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.header-status {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}

.status-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.05);
  padding: 6px 12px;
  border-radius: 30px;
  border: 1px solid var(--border-color);
  font-size: 0.85rem;
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--color-low);
  box-shadow: 0 0 8px var(--color-low);
}

.status-badge.loading .status-dot {
  background-color: var(--color-medium);
  box-shadow: 0 0 8px var(--color-medium);
  animation: dotPulse 1s infinite alternate;
}

.status-badge.offline .status-dot {
  background-color: var(--text-dark);
  box-shadow: none;
}

.sync-info {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.sync-time {
  color: var(--text-main);
  font-weight: 600;
}

/* ==========================================
   主要內容網格區
   ========================================== */
.app-main {
  display: grid;
  grid-template-columns: 1fr 400px;
  gap: 24px;
  flex-grow: 1;
}

@media (max-width: 1100px) {
  .app-main {
    grid-template-columns: 1fr;
  }
}

.main-left {
  display: flex;
  flex-direction: column;
  gap: 24px;
  min-width: 0; /* 防止子元素撐爆 Grid */
}

/* ==========================================
   統計資訊與圖表 (Stats)
   ========================================== */
.stats-grid {
  display: grid;
  grid-template-columns: 180px 180px 1fr;
  gap: 16px;
}

@media (max-width: 768px) {
  .stats-grid {
    grid-template-columns: 1fr;
  }
}

.stat-card {
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 20px;
  display: flex;
  align-items: center;
  gap: 16px;
  position: relative;
  overflow: hidden;
}

.stat-icon {
  font-size: 1.8rem;
  background: rgba(255, 255, 255, 0.04);
  padding: 10px;
  border-radius: 12px;
}

.stat-info {
  display: flex;
  flex-direction: column;
}

.stat-value {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 700;
  color: #fff;
}

.stat-title {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* 圖表卡片 */
.charts-card {
  flex-direction: column;
  align-items: stretch;
  gap: 12px;
}

.chart-header {
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  padding-bottom: 6px;
}

.chart-container {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.chart-row {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.8rem;
}

.chart-label {
  width: 80px;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.chart-bar-wrapper {
  flex-grow: 1;
  background: rgba(255, 255, 255, 0.05);
  height: 8px;
  border-radius: 10px;
  overflow: hidden;
  position: relative;
}

.chart-bar {
  height: 100%;
  border-radius: 10px;
  background: linear-gradient(90deg, var(--color-primary), var(--color-secondary));
  transition: width 0.8s cubic-bezier(0.4, 0, 0.2, 1);
  width: 0;
}

.chart-value {
  width: 25px;
  text-align: right;
  font-weight: 600;
}

.chart-fallback {
  font-size: 0.8rem;
  color: var(--text-dark);
  text-align: center;
  padding: 10px 0;
}

/* ==========================================
   篩選面板 (Filter Panel)
   ========================================== */
.filter-panel {
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.search-box {
  display: flex;
  align-items: center;
  background: rgba(0, 0, 0, 0.03);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 10px 16px;
  transition: var(--transition-smooth);
}

.search-box:focus-within {
  border-color: var(--color-primary);
  box-shadow: 0 0 10px var(--color-primary-glow);
  background: #ffffff;
}

.search-icon {
  margin-right: 12px;
  font-size: 1.1rem;
}

.search-box input {
  background: transparent;
  border: none;
  color: var(--text-main);
  font-size: 0.95rem;
  width: 100%;
  outline: none;
}

.search-box input::placeholder {
  color: var(--text-dark);
}

.filter-groups {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.filter-group {
  display: flex;
  align-items: center;
  gap: 8px;
}

.filter-group label {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.filter-group select {
  background: #ffffff;
  border: 1px solid var(--border-color);
  color: var(--text-main);
  padding: 6px 12px;
  border-radius: 8px;
  outline: none;
  font-size: 0.85rem;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.filter-group select:hover {
  border-color: var(--text-muted);
}

.hot-tags-container {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 12px;
}

.tags-label {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.hot-tags-list {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.tag-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-color);
  color: var(--text-muted);
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 0.8rem;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.tag-btn:hover {
  background: rgba(99, 102, 241, 0.15);
  border-color: var(--color-primary);
  color: #fff;
}

.tag-btn.active {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: #fff;
  box-shadow: 0 0 10px var(--color-primary-glow);
}

/* ==========================================
   新聞卡片列表 (Trends Section)
   ========================================== */
.trends-section {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.section-title-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 4px;
}

.section-title-bar h2 {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 600;
}

.results-count {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.news-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* 新聞卡片 */
.news-card {
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: var(--transition-smooth);
  position: relative;
}

/* 針對不同影響力亮左邊框 */
.news-card.impact-High {
  border-left: 4px solid var(--color-high);
}
.news-card.impact-Medium {
  border-left: 4px solid var(--color-medium);
}
.news-card.impact-Low {
  border-left: 4px solid var(--color-low);
}

.news-card:hover {
  transform: translateY(-2px);
  background: var(--bg-card-hover);
  border-color: rgba(255, 255, 255, 0.15);
}

.news-card.impact-High:hover {
  box-shadow: 0 4px 20px var(--color-high-glow);
}
.news-card.impact-Medium:hover {
  box-shadow: 0 4px 20px var(--color-medium-glow);
}
.news-card.impact-Low:hover {
  box-shadow: 0 4px 20px var(--color-low-glow);
}

.card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
}

.card-meta-left {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.source-badge {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  padding: 3px 8px;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 500;
}

.impact-badge {
  font-size: 0.75rem;
  padding: 3px 8px;
  border-radius: 6px;
  font-weight: 600;
}

.impact-High {
  background: rgba(239, 68, 68, 0.15);
  color: #fca5a5;
  border: 1px solid rgba(239, 68, 68, 0.3);
}
.impact-Medium {
  background: rgba(59, 130, 246, 0.15);
  color: #93c5fd;
  border: 1px solid rgba(59, 130, 246, 0.3);
}
.impact-Low {
  background: rgba(16, 185, 129, 0.15);
  color: #6ee7b7;
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.pub-date {
  font-size: 0.8rem;
  color: var(--text-dark);
}

.card-title-area {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.card-title {
  font-size: 1.1rem;
  font-weight: 600;
  line-height: 1.4;
  color: var(--text-main);
  text-decoration: none;
  transition: var(--transition-smooth);
}

.card-title:hover {
  color: var(--color-primary);
}

.card-original-title {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-style: italic;
}

.card-description {
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--text-muted);
  background: rgba(0, 0, 0, 0.15);
  padding: 12px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.02);
}

.card-original-description {
  font-size: 0.85rem;
  line-height: 1.5;
  color: #7b808a;
  background: rgba(0, 0, 0, 0.1);
  padding: 10px 12px;
  border-radius: 8px;
  border-left: 3px solid rgba(255, 255, 255, 0.15);
  margin-top: 8px;
  font-style: italic;
}

.desc-label {
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.5px;
  margin-right: 6px;
  padding: 1px 4px;
  border-radius: 3px;
}

.desc-label.zh {
  background: rgba(99, 102, 241, 0.15);
  color: #a5b4fc;
}

.desc-label.en {
  background: rgba(255, 255, 255, 0.06);
  color: #9ca3af;
}

.card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.card-tags {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.card-tag {
  background: rgba(99, 102, 241, 0.08);
  color: #a5b4fc;
  border: 1px solid rgba(99, 102, 241, 0.15);
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 0.75rem;
}

.read-more {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  color: var(--color-primary);
  text-decoration: none;
  font-weight: 600;
  transition: var(--transition-smooth);
}

.read-more:hover {
  color: #fff;
  transform: translateX(4px);
}

/* ==========================================
   右側：AI Agent 對話區 (Chat Container)
   ========================================== */
.main-right {
  position: sticky;
  top: 20px;
  height: calc(100vh - 150px);
  min-height: 550px;
}

@media (max-width: 1100px) {
  .main-right {
    position: static;
    height: 600px;
  }
}

.agent-chat-card {
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

.chat-header {
  padding: 16px 20px;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  gap: 14px;
  background: rgba(255, 255, 255, 0.02);
}

.agent-avatar {
  position: relative;
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.avatar-emoji {
  font-size: 1.3rem;
  z-index: 2;
}

.pulse-ring {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: var(--color-primary);
  opacity: 0.4;
  animation: avatarPulse 2s infinite;
}

.agent-info h3 {
  font-size: 0.95rem;
  font-weight: 600;
  color: #fff;
}

.agent-info p {
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* 對話訊息區 */
.chat-messages {
  flex-grow: 1;
  padding: 20px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.message {
  display: flex;
  flex-direction: column;
  max-width: 85%;
  animation: messageFadeIn 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.message.agent {
  align-self: flex-start;
}

.message.user {
  align-self: flex-end;
}

.msg-content {
  padding: 12px 16px;
  border-radius: 14px;
  font-size: 0.9rem;
  line-height: 1.5;
}

.message.agent .msg-content {
  background: rgba(0, 0, 0, 0.04);
  color: var(--text-main);
  border-bottom-left-radius: 2px;
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.message.user .msg-content {
  background: var(--color-primary);
  color: #fff;
  border-bottom-right-radius: 2px;
  box-shadow: 0 4px 10px var(--color-primary-glow);
}

/* 推薦問題 */
.quick-questions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 14px;
}

.quick-q-btn {
  background: rgba(79, 70, 229, 0.06);
  border: 1px solid rgba(79, 70, 229, 0.15);
  color: var(--color-primary);
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 0.8rem;
  text-align: left;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.quick-q-btn:hover {
  background: rgba(99, 102, 241, 0.15);
  color: var(--color-primary);
}

/* 輸入框 */
.chat-input-area {
  padding: 16px 20px;
  border-top: 1px solid var(--border-color);
  display: flex;
  align-items: flex-end;
  gap: 12px;
  background: rgba(0, 0, 0, 0.02);
}

.chat-input-area textarea {
  flex-grow: 1;
  background: rgba(0, 0, 0, 0.04);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 10px 14px;
  color: var(--text-main);
  font-size: 0.9rem;
  outline: none;
  resize: none;
  font-family: var(--font-body);
  max-height: 100px;
  transition: var(--transition-smooth);
}

.chat-input-area textarea:focus {
  border-color: var(--color-primary);
  background: #ffffff;
}

/* ==========================================
   按鈕與 Loading 樣式 (Buttons / Spinners)
   ========================================== */
.btn {
  border: none;
  outline: none;
  font-family: var(--font-display);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  transition: var(--transition-smooth);
}

.btn-primary {
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 100%);
  color: #fff;
  padding: 10px 18px;
  border-radius: 10px;
  font-size: 0.9rem;
  box-shadow: 0 4px 15px rgba(99, 102, 241, 0.2);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(99, 102, 241, 0.35);
}

.btn-glow:active {
  transform: translateY(1px);
}

.btn-secondary {
  background: rgba(0, 0, 0, 0.04);
  color: var(--text-muted);
  border: 1px solid var(--border-color);
  padding: 10px 18px;
  border-radius: 10px;
  font-size: 0.9rem;
  transition: var(--transition-smooth);
}

.btn-secondary:hover {
  background: rgba(0, 0, 0, 0.08);
  color: var(--text-main);
  border-color: var(--text-muted);
}

.btn-send {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-dark);
  width: 40px;
  height: 40px;
  border-radius: 12px;
  flex-shrink: 0;
}

.btn-send:not(:disabled) {
  background: var(--color-primary);
  color: #fff;
  box-shadow: 0 4px 10px var(--color-primary-glow);
}

.btn-send:not(:disabled):hover {
  background: #4f46e5;
  transform: scale(1.05);
}

/* Spinners */
.spinner {
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin-left: 8px;
}

.large-spinner {
  width: 40px;
  height: 40px;
  border: 3px solid rgba(255, 255, 255, 0.05);
  border-top-color: var(--color-primary);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

.loading-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 20px;
  gap: 16px;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.hidden {
  display: none !important;
}

/* ==========================================
   頁尾 (Footer)
   ========================================== */
.app-footer {
  text-align: center;
  padding: 24px 0 10px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  color: var(--text-dark);
  font-size: 0.8rem;
  margin-top: 24px;
}

/* ==========================================
   動畫效果 (Animations)
   ========================================== */
@keyframes spin {
  to { transform: rotate(360deg); }
}

@keyframes logoPulse {
  0%, 100% { transform: scale(1) rotate(0deg); }
  50% { transform: scale(1.1) rotate(5deg); }
}

@keyframes dotPulse {
  to { opacity: 0.4; }
}

@keyframes avatarPulse {
  0% { transform: scale(0.9); opacity: 0.5; }
  100% { transform: scale(1.3); opacity: 0; }
}

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

/* ==========================================
   追蹤來源彈出視窗 (Modal Styles)
   ========================================== */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(4, 6, 12, 0.7);
  backdrop-filter: blur(10px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.3s ease;
}

.modal-content {
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid var(--border-color);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15), 0 0 15px rgba(99, 102, 241, 0.05);
  border-radius: 20px;
  width: 90%;
  max-width: 650px;
  max-height: 80vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  animation: modalScaleIn 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.modal-header {
  padding: 20px 24px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.modal-header h2 {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 600;
  background: linear-gradient(135deg, #111827 0%, #4f46e5 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.close-btn {
  font-size: 1.8rem;
  color: var(--text-muted);
  cursor: pointer;
  transition: var(--transition-smooth);
}

.close-btn:hover {
  color: var(--color-high);
}

.modal-body {
  padding: 24px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.source-category {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.source-category h3 {
  font-size: 0.95rem;
  color: var(--text-main);
  border-left: 3px solid var(--color-primary);
  padding-left: 8px;
}

.source-list {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  padding-left: 12px;
}

@media (max-width: 600px) {
  .source-list {
    grid-template-columns: 1fr;
  }
}

.source-list li a {
  font-size: 0.88rem;
  color: var(--text-muted);
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
  background: rgba(0, 0, 0, 0.03);
  border: 1px solid rgba(0, 0, 0, 0.02);
  border-radius: 8px;
  transition: var(--transition-smooth);
}

.source-list li a:hover {
  background: rgba(99, 102, 241, 0.05);
  border-color: rgba(99, 102, 241, 0.2);
  color: var(--color-primary);
}

.badge {
  font-size: 0.68rem;
  padding: 2px 6px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-muted);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.badge.community {
  background: rgba(168, 85, 247, 0.12);
  color: #d8b4fe;
  border-color: rgba(168, 85, 247, 0.25);
}

.badge.filter {
  background: rgba(16, 185, 129, 0.12);
  color: #a7f3d0;
  border-color: rgba(16, 185, 129, 0.25);
}

@keyframes modalScaleIn {
  from { opacity: 0; transform: scale(0.95) translateY(-10px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}
