:root {
  --color-bg: #f5f7fa;
  --color-paper: #ffffff;
  --color-ink: #1a1f36;
  --color-ink-light: #6b7280;
  --color-border: #e5e7eb;
  --color-rise: #e24a3b;
  --color-fall: #1e9b6c;
  --color-primary: #3b82f6;
  --color-primary-dark: #2563eb;
  --color-warning: #f59e0b;
  --color-sidebar: #0f172a;
  --color-sidebar-hover: #1e293b;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
  --shadow-lg: 0 4px 12px rgba(0,0,0,0.08);
  --transition: 0.2s ease;
  --safe-area-bottom: env(safe-area-inset-bottom, 0px);
}

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

html, body, #app { height: 100%; }

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Noto Sans SC', sans-serif;
  background: var(--color-bg);
  color: var(--color-ink);
  line-height: 1.5;
  -webkit-tap-highlight-color: transparent;
}

a { color: inherit; text-decoration: none; }

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
  -webkit-appearance: none;
}

input {
  font-family: inherit;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  font-size: 15px;
  transition: var(--transition);
  width: 100%;
}

input:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 20px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 500;
  transition: var(--transition);
}

.btn-primary { background: var(--color-primary); color: white; }
.btn-primary:hover { background: var(--color-primary-dark); }
.btn-danger { background: var(--color-rise); color: white; }
.btn-success { background: var(--color-fall); color: white; }
.btn-block { width: 100%; }
.btn-sm { padding: 6px 12px; font-size: 13px; }

.card {
  background: var(--color-paper);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.loading { text-align: center; padding: 40px; color: var(--color-ink-light); }
.empty { text-align: center; padding: 60px 20px; color: var(--color-ink-light); }
.empty-icon { font-size: 48px; margin-bottom: 16px; }

.up { color: var(--color-rise); }
.down { color: var(--color-fall); }

/* Transitions */
.fade-enter-active, .fade-leave-active { transition: opacity 0.15s ease; }
.fade-enter-from, .fade-leave-to { opacity: 0; }

.slide-enter-active, .slide-leave-active { transition: transform 0.25s ease; }
.slide-enter-from, .slide-leave-to { transform: translateX(-100%); }

/* Login Page */
.login-page {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  padding: 20px;
}

.login-box {
  width: 100%;
  max-width: 400px;
  padding: 40px 32px;
}

.login-header {
  text-align: center;
  margin-bottom: 32px;
}

.logo-icon {
  font-size: 56px;
  margin-bottom: 16px;
}

.login-header h1 {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--color-ink);
}

.login-header p {
  color: var(--color-ink-light);
  font-size: 14px;
}

.login-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.form-group { margin-bottom: 4px; }

.error-msg {
  color: var(--color-rise);
  background: #fef2f2;
  padding: 12px;
  border-radius: var(--radius-sm);
  text-align: center;
  font-size: 14px;
}

.success-msg {
  color: var(--color-fall);
  background: #ecfdf5;
  padding: 12px;
  border-radius: var(--radius-sm);
  text-align: center;
  font-size: 14px;
}

/* App Shell - Desktop */
.app-shell {
  display: flex;
  height: 100%;
}

.sidebar {
  width: 240px;
  background: var(--color-sidebar);
  color: white;
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 20px;
  border-bottom: 1px solid var(--color-sidebar-hover);
}

.logo-icon {
  font-size: 24px;
}

.logo-text {
  font-size: 18px;
  font-weight: 600;
}

.nav {
  flex: 1;
  padding: 12px 0;
  overflow-y: auto;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 20px;
  color: #94a3b8;
  transition: var(--transition);
  border-left: 3px solid transparent;
}

.nav-item:hover {
  background: var(--color-sidebar-hover);
  color: white;
}

.nav-item.router-link-active {
  background: rgba(59, 130, 246, 0.15);
  color: white;
  border-left-color: var(--color-primary);
}

.nav-icon {
  font-size: 18px;
  width: 24px;
  text-align: center;
}

.nav-text {
  font-size: 14px;
  font-weight: 500;
}

.user-panel {
  padding: 16px 20px;
  border-top: 1px solid var(--color-sidebar-hover);
}

.user-info {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.user-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 14px;
}

.user-avatar.lg {
  width: 56px;
  height: 56px;
  font-size: 20px;
}

.user-detail {
  flex: 1;
}

.user-name {
  font-size: 14px;
  font-weight: 500;
  display: block;
}

.user-vip {
  font-size: 12px;
  color: #94a3b8;
}

.vip {
  background: var(--color-warning);
  color: white;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 500;
}

.btn-logout {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 10px;
  border: 1px solid #334155;
  border-radius: var(--radius-sm);
  color: #94a3b8;
  font-size: 13px;
  transition: var(--transition);
}

.btn-logout:hover {
  background: var(--color-rise);
  border-color: var(--color-rise);
  color: white;
}

/* Main Content */
.main {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--color-bg);
}

.header {
  height: 60px;
  background: white;
  display: flex;
  align-items: center;
  padding: 0 24px;
  box-shadow: var(--shadow);
  position: relative;
  z-index: 10;
}

.menu-btn {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 8px;
  border-radius: var(--radius-sm);
}

.menu-btn:active {
  background: var(--color-bg);
}

.menu-icon {
  font-size: 20px;
}

.page-title {
  font-size: 18px;
  font-weight: 600;
  flex: 1;
}

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

.vip-badge {
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: white;
  padding: 4px 10px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 600;
}

.content {
  flex: 1;
  overflow: hidden;
  padding: 24px;
}

/* Mobile Tabbar */
.tabbar {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: calc(60px + var(--safe-area-bottom));
  padding-bottom: var(--safe-area-bottom);
  background: white;
  border-top: 1px solid var(--color-border);
  z-index: 100;
}

.tab-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 8px 0;
  color: var(--color-ink-light);
  transition: var(--transition);
}

.tab-item.router-link-active {
  color: var(--color-primary);
}

.tab-icon {
  font-size: 20px;
}

.tab-text {
  font-size: 11px;
  font-weight: 500;
}

/* Mobile Menu */
.mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 200;
}

.mobile-menu-content {
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  width: 280px;
  background: var(--color-sidebar);
  color: white;
  display: flex;
  flex-direction: column;
}

.mobile-menu-header {
  padding: 40px 24px 24px;
  text-align: center;
  border-bottom: 1px solid var(--color-sidebar-hover);
}

.mobile-menu-header .user-avatar {
  margin: 0 auto 12px;
}

.mobile-menu-header .user-name {
  font-size: 18px;
  margin-bottom: 4px;
}

.mobile-menu-header .user-vip {
  color: #94a3b8;
}

.mobile-menu-items {
  padding: 12px 0;
}

.mobile-menu-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 24px;
  color: white;
  font-size: 15px;
  transition: var(--transition);
}

.mobile-menu-item:active {
  background: var(--color-sidebar-hover);
}

.mobile-menu-item.danger {
  color: #f87171;
}

/* Split View */
.split-view {
  display: flex;
  gap: 20px;
  height: 100%;
  min-height: 0;
}

.split-left {
  width: 320px;
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  min-height: 0;
}

.split-right {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  min-height: 0;
}

.panel-header {
  padding: 16px 20px;
  border-bottom: 1px solid var(--color-border);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.panel-header h3 {
  font-size: 16px;
  font-weight: 600;
}

.list-items {
  flex: 1;
  overflow: auto;
  min-height: 0;
}

.list-item {
  padding: 14px 20px;
  border-bottom: 1px solid var(--color-border);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: var(--transition);
  position: relative;
}

.list-item:hover {
  background: #f8fafc;
}

.list-item.active {
  background: #dbeafe;
  border-left: 3px solid var(--color-primary);
}

.list-item.clicked {
  opacity: 0.55;
}

.item-name {
  font-weight: 600;
  font-size: 15px;
}

.item-score {
  margin-left: 8px;
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 600;
}

.item-score.score-low { background: #ecfdf5; color: var(--color-fall); }
.item-score.score-blue { background: #eff6ff; color: var(--color-primary); }
.item-score.score-high { background: #fef2f2; color: var(--color-rise); }
.item-score.score-top { background: #f5f3ff; color: #6d28d9; }

.tag-new {
  margin-left: 6px;
  padding: 1px 5px;
  border-radius: 3px;
  font-size: 10px;
  font-weight: 600;
  background: linear-gradient(135deg, #f5576c, #f093fb);
  color: white;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.tag-hot {
  margin-left: 6px;
  padding: 1px 5px;
  border-radius: 3px;
  font-size: 10px;
  font-weight: 600;
  background: linear-gradient(135deg, #f59e0b, #ef4444);
  color: white;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.item-code {
  font-size: 13px;
  color: var(--color-ink-light);
  margin-top: 2px;
}

.item-price {
  text-align: right;
  min-width: 80px;
}

.item-added-change {
  font-size: 11px;
  margin-top: 2px;
}

.item-added-change.up { color: var(--color-rise); }
.item-added-change.down { color: var(--color-fall); }
.item-added-change.neutral { color: #9ca3af; }

.item-change {
  font-size: 13px;
  margin-top: 2px;
}

.empty-item {
  padding: 40px 20px;
  text-align: center;
  color: var(--color-ink-light);
}

/* Detail Panel */
.detail-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  color: var(--color-ink-light);
}

.detail-content {
  flex: 1;
  padding: 24px;
  overflow: auto;
  min-height: 0;
}

.page-news,
.page-watchlist,
.page-unusual,
.page-hotpicks,
.page-portfolio {
  height: 100%;
  min-height: 0;
}

.page-news {
  overflow: auto;
}

.stock-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}

.stock-header h2 {
  font-size: 24px;
}

.stock-price {
  font-size: 20px;
  font-weight: 600;
}

.stock-info {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 20px;
}

.info-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 100px;
}

.info-item .label {
  font-size: 12px;
  color: var(--color-ink-light);
}

.info-item span:last-child {
  font-size: 16px;
  font-weight: 600;
}

.chart-box {
  height: 380px;
  margin-bottom: 20px;
  background: #fafafa;
  border-radius: var(--radius-sm);
}

/* News List */
.news-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.news-item {
  padding: 20px;
  cursor: pointer;
  transition: var(--transition);
}

.news-item:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.news-title {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 8px;
  line-height: 1.5;
}

.news-header {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 8px;
}

.news-header .news-title {
  flex: 1;
  margin-bottom: 0;
}

.news-summary {
  font-size: 14px;
  color: var(--color-ink-light);
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 12px;
}

.news-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  font-size: 12px;
  color: var(--color-ink-light);
}

.meta-date, .meta-score {
  padding: 3px 8px;
  background: var(--color-bg);
  border-radius: 4px;
}

.meta-stocks {
  color: var(--color-primary);
  font-weight: 500;
}

.tag {
  background: #fef3c7;
  color: #92400e;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 12px;
}

.tag-hot {
  background: #fef2f2;
  color: var(--color-rise);
  flex-shrink: 0;
}

.score {
  font-weight: 700;
}

.score-low {
  color: var(--color-fall);
}

.score-mid {
  color: var(--color-primary);
}

.score-high {
  color: var(--color-rise);
}

.score-top {
  color: #6d28d9;
}

.score-blue {
  color: #2563eb;
}

.news-meta-top {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.news-score {
  font-weight: 700;
  font-size: 13px;
}

.news-source {
  color: var(--color-primary);
  font-size: 12px;
  text-decoration: none;
}

.news-source:hover {
  text-decoration: underline;
}

/* Modal / Drawer */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 300;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

@media (min-width: 768px) {
  .modal-overlay {
    align-items: center;
  }
}

.modal-drawer {
  background: white;
  width: 100%;
  max-width: 600px;
  max-height: 85vh;
  border-radius: 20px 20px 0 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

@media (min-width: 768px) {
  .modal-drawer {
    border-radius: 16px;
    max-height: 80vh;
  }
}

.modal-header {
  padding: 20px;
  border-bottom: 1px solid var(--color-border);
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.modal-header h3 {
  flex: 1;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.4;
}

.modal-close {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--color-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  color: var(--color-ink-light);
  flex-shrink: 0;
}

.modal-close:hover {
  background: var(--color-border);
}

.modal-body {
  padding: 20px;
  overflow-y: auto;
}

.modal-meta {
  display: flex;
  gap: 12px;
  margin-bottom: 16px;
  font-size: 13px;
  color: var(--color-ink-light);
}

.modal-content {
  font-size: 15px;
  line-height: 1.8;
  color: var(--color-ink);
  white-space: pre-wrap;
}

.modal-stocks {
  margin-top: 24px;
  padding-top: 16px;
  border-top: 1px solid var(--color-border);
}

.modal-stocks h4 {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 12px;
  color: var(--color-ink-light);
}

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

.stock-tag {
  padding: 6px 12px;
  background: #eff6ff;
  color: var(--color-primary);
  border-radius: 6px;
  font-size: 13px;
  font-weight: 500;
}

.form-group {
  margin-bottom: 16px;
}

.form-group label {
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: var(--color-ink-light);
  margin-bottom: 8px;
}

.form-select {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  font-size: 15px;
  background: white;
  cursor: pointer;
}

/* Portfolio */
.summary-cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 20px;
}

.summary-card {
  background: linear-gradient(135deg, #667eea, #764ba2);
  color: white;
  padding: 20px;
  border-radius: var(--radius);
}

.summary-card.green {
  background: linear-gradient(135deg, #11998e, #38ef7d);
}

.summary-card.orange {
  background: linear-gradient(135deg, #f093fb, #f5576c);
}

.summary-card.blue {
  background: linear-gradient(135deg, #4facfe, #00f2fe);
}

.summary-card .label {
  font-size: 13px;
  opacity: 0.9;
  margin-bottom: 8px;
}

.summary-card .value {
  font-size: 22px;
  font-weight: 700;
}

.holdings-table {
  width: 100%;
  border-collapse: collapse;
}

.holdings-table th,
.holdings-table td {
  padding: 12px;
  text-align: left;
  border-bottom: 1px solid var(--color-border);
}

.holdings-table th {
  background: #f8fafc;
  font-weight: 600;
  font-size: 13px;
  color: var(--color-ink-light);
}

/* Mobile Responsive */
@media (max-width: 767px) {
  :root {
    --radius: 8px;
  }
  
  .app-shell.is-mobile .sidebar {
    display: none;
  }
  
  .tabbar {
    display: flex;
  }
  
  .main {
    padding-bottom: calc(60px + var(--safe-area-bottom));
  }
  
  .header {
    padding: 0 16px;
  }
  
  .content {
    padding: 16px;
    overflow: hidden;
  }
  
  .split-view {
    flex-direction: column;
    height: 100%;
  }
  
  .split-left {
    width: 100%;
    max-height: 40vh;
    min-height: 0;
  }
  
  .split-right {
    flex: 1;
    min-height: 0;
  }
  
  .summary-cards {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
  
  .summary-card {
    padding: 16px;
  }
  
  .summary-card .value {
    font-size: 18px;
  }
  
  .chart-box {
    height: 300px;
  }
  
  .detail-content {
    padding: 16px;
  }
  
  .holdings-table {
    font-size: 13px;
  }
  
  .holdings-table th,
  .holdings-table td {
    padding: 10px 8px;
  }
  
  .news-item {
    padding: 16px;
  }
  
  .news-title {
    font-size: 15px;
  }
}

/* Scrollbar */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

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

::-webkit-scrollbar-thumb {
  background: #d1d5db;
  border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
  background: #9ca3af;
}

/* Toast */
.toast {
  position: fixed;
  bottom: 100px;
  left: 50%;
  transform: translateX(-50%);
  padding: 12px 24px;
  border-radius: 24px;
  font-size: 14px;
  font-weight: 500;
  z-index: 400;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.toast.success {
  background: var(--color-fall);
  color: white;
}

.toast.error {
  background: var(--color-rise);
  color: white;
}

@media (max-width: 767px) {
  .toast {
    bottom: calc(80px + var(--safe-area-bottom));
  }
}

/* Fundamentals Section */
.fundamentals-section {
  margin-bottom: 20px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.fundamentals-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 16px;
  background: #f8fafc;
  cursor: pointer;
  font-weight: 600;
  font-size: 14px;
  transition: var(--transition);
}

.fundamentals-header:hover {
  background: #f1f5f9;
}

.toggle-icon {
  font-size: 12px;
  color: var(--color-ink-light);
}

.fundamentals-body {
  padding: 16px;
}

.fund-score-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px;
  background: linear-gradient(135deg, #f8fafc, #f1f5f9);
  border-radius: var(--radius-sm);
  margin-bottom: 16px;
}

.fund-score-total .score-label {
  font-size: 14px;
  font-weight: 600;
  color: var(--color-ink);
}

.fund-score-total .score-value {
  font-size: 28px;
  font-weight: 700;
}

.fund-scores {
  margin-bottom: 16px;
}

.score-item {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
}

.score-name {
  width: 80px;
  font-size: 13px;
  color: var(--color-ink-light);
  flex-shrink: 0;
}

.score-bar-wrap {
  flex: 1;
  height: 8px;
  background: #e5e7eb;
  border-radius: 4px;
  overflow: hidden;
}

.score-bar {
  height: 100%;
  border-radius: 4px;
  transition: width 0.3s ease;
}

.bar-low { background: var(--color-fall); }
.bar-mid { background: var(--color-primary); }
.bar-high { background: var(--color-rise); }
.bar-top { background: linear-gradient(90deg, #6d28d9, #a855f7); }

.score-num {
  width: 36px;
  text-align: right;
  font-size: 13px;
  font-weight: 600;
  flex-shrink: 0;
}

.fund-text {
  margin-bottom: 14px;
}

.fund-text-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--color-ink-light);
  margin-bottom: 6px;
}

.fund-text-content {
  font-size: 14px;
  line-height: 1.6;
  color: var(--color-ink);
}

.fund-tags-row {
  margin-bottom: 10px;
}

.fund-tags {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.fund-tag-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--color-ink-light);
}

.fund-tag {
  padding: 4px 10px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 500;
}

.fund-tag.tag-up {
  background: #ecfdf5;
  color: var(--color-fall);
}

.fund-tag.tag-down {
  background: #fef2f2;
  color: var(--color-rise);
}

.fund-loading, .fund-error, .fund-empty {
  text-align: center;
  padding: 24px;
  color: var(--color-ink-light);
  font-size: 14px;
}

.fund-loading {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.fund-loading::before {
  content: '';
  width: 16px;
  height: 16px;
  border: 2px solid var(--color-border);
  border-top-color: var(--color-primary);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.fund-error {
  color: var(--color-rise);
  background: #fef2f2;
  border-radius: var(--radius-sm);
}

/* Mobile adjustments for fundamentals */
@media (max-width: 767px) {
  .fundamentals-section {
    margin-bottom: 16px;
  }
  
  .fundamentals-header {
    padding: 12px 14px;
  }
  
  .fundamentals-body {
    padding: 14px;
  }
  
  .fund-score-total .score-value {
    font-size: 24px;
  }
  
  .score-name {
    width: 70px;
    font-size: 12px;
  }
  
  .score-num {
    width: 32px;
    font-size: 12px;
  }
  
  .fund-text-content {
    font-size: 13px;
  }
}

/* Watchlist source tags */
.tag-source {
  margin-left: 6px;
  padding: 1px 5px;
  border-radius: 3px;
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.tag-unusual {
  background: linear-gradient(135deg, #f59e0b, #ef4444);
  color: white;
}

.tag-hot {
  background: linear-gradient(135deg, #8b5cf6, #ec4899);
  color: white;
}

.tag-manual {
  background: linear-gradient(135deg, #10b981, #059669);
  color: white;
}

.item-meta {
  font-size: 11px;
  color: var(--color-ink-light);
  margin-top: 2px;
}

/* News viewed status */
.news-item.viewed {
  opacity: 0.7;
}

.news-item.viewed .news-title {
  font-weight: normal;
  color: var(--color-ink-light);
}

.viewed-badge {
  margin-left: 8px;
  padding: 2px 6px;
  border-radius: 10px;
  font-size: 10px;
  background: var(--color-ink-light);
  color: white;
}

/* News Filter Bar */
.filter-bar {
  display: flex;
  gap: 8px;
  padding: 12px 16px;
  background: white;
  border-bottom: 1px solid var(--color-border);
}

.filter-btn {
  padding: 6px 12px;
  border: 1px solid var(--color-border);
  border-radius: 16px;
  background: white;
  color: var(--color-ink);
  font-size: 12px;
  cursor: pointer;
  transition: var(--transition);
}

.filter-btn:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
}

.filter-btn.active {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: white;
}
