/**
 * Trading Signals Styles
 * Dark theme matching SmartTrader system design
 */

/* Container */
.signals-container {
  min-height: 100vh;
  position: relative;
  padding: 2rem;
}

/* Background */
.signals-background {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
}

.signals-background__gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #0f172a 100%);
}

.signals-background__grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(6, 182, 212, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(6, 182, 212, 0.03) 1px, transparent 1px);
  background-size: 50px 50px;
}

/* Header */
.signals-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid rgba(148, 163, 184, 0.1);
}

.signals-header__left {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.signals-home-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: rgba(30, 41, 59, 0.6);
  border: 1px solid rgba(148, 163, 184, 0.15);
  border-radius: 10px;
  color: #94a3b8;
  transition: all 0.2s ease;
  text-decoration: none;
}

.signals-home-link:hover {
  background: rgba(51, 65, 85, 0.6);
  color: #06b6d4;
  border-color: rgba(6, 182, 212, 0.3);
}

.signals-home-link svg {
  width: 20px;
  height: 20px;
}

.signals-header__title {
  font-size: 1.75rem;
  font-weight: 700;
  color: #f1f5f9;
  margin: 0;
}

.signals-header__subtitle {
  font-size: 0.875rem;
  color: #94a3b8;
  margin: 0;
}

.signals-header__right {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

/* Buttons */
.signals-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.625rem 1.25rem;
  border-radius: 10px;
  font-size: 0.875rem;
  font-weight: 500;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
}

.signals-btn svg {
  width: 18px;
  height: 18px;
}

.signals-btn--primary {
  background: linear-gradient(135deg, #06b6d4 0%, #0891b2 100%);
  color: white;
}

.signals-btn--primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(6, 182, 212, 0.4);
}

.signals-btn--secondary {
  background: rgba(30, 41, 59, 0.6);
  color: #e2e8f0;
  border: 1px solid rgba(148, 163, 184, 0.2);
}

.signals-btn--secondary:hover {
  background: rgba(51, 65, 85, 0.6);
  border-color: rgba(148, 163, 184, 0.3);
}

.signals-btn--small {
  padding: 0.5rem 1rem;
  font-size: 0.8125rem;
}

.signals-btn--outline {
  background: transparent;
  color: #94a3b8;
  border: 1px solid rgba(148, 163, 184, 0.2);
}

.signals-btn--outline:hover {
  background: rgba(51, 65, 85, 0.4);
  color: #e2e8f0;
}

/* Stats Cards */
.signals-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.stat-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.25rem;
  background: rgba(30, 41, 59, 0.6);
  border: 1px solid rgba(148, 163, 184, 0.1);
  border-radius: 16px;
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
}

.stat-card:hover {
  transform: translateY(-2px);
  border-color: rgba(6, 182, 212, 0.2);
}

.stat-card__icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
}

.stat-card__icon svg {
  width: 24px;
  height: 24px;
}

.stat-card--total .stat-card__icon {
  background: linear-gradient(135deg, rgba(6, 182, 212, 0.2), rgba(6, 182, 212, 0.1));
  color: #06b6d4;
}

.stat-card--buy .stat-card__icon {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.2), rgba(16, 185, 129, 0.1));
  color: #10b981;
}

.stat-card--sell .stat-card__icon {
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.2), rgba(239, 68, 68, 0.1));
  color: #ef4444;
}

.stat-card--high .stat-card__icon {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.2), rgba(245, 158, 11, 0.1));
  color: #f59e0b;
}

.stat-card__content {
  display: flex;
  flex-direction: column;
  gap: 0.125rem;
}

.stat-card__value {
  font-size: 1.75rem;
  font-weight: 700;
  color: #f1f5f9;
  line-height: 1;
}

.stat-card__label {
  font-size: 0.75rem;
  color: #94a3b8;
}

/* Filters */
.signals-filters {
  margin-bottom: 1.5rem;
}

.signals-filters__form {
  display: flex;
  gap: 1rem;
  align-items: flex-end;
  padding: 1.25rem 1.5rem;
  background: rgba(30, 41, 59, 0.6);
  border: 1px solid rgba(148, 163, 184, 0.1);
  border-radius: 16px;
  backdrop-filter: blur(10px);
}

.filter-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.filter-group:last-child {
  flex-direction: row;
  align-items: flex-end;
  gap: 0.75rem;
  margin-left: auto;
}

.filter-label {
  font-size: 0.8125rem;
  font-weight: 500;
  color: #94a3b8;
}

.filter-select {
  padding: 0.625rem 2.5rem 0.625rem 1rem;
  background: rgba(15, 23, 42, 0.8);
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 10px;
  font-size: 0.875rem;
  color: #e2e8f0;
  min-width: 140px;
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  background-size: 16px;
  transition: all 0.2s ease;
}

.filter-select:hover {
  border-color: rgba(148, 163, 184, 0.3);
}

.filter-select:focus {
  outline: none;
  border-color: #06b6d4;
  box-shadow: 0 0 0 3px rgba(6, 182, 212, 0.15);
}

.filter-select option {
  background: #1e293b;
  color: #e2e8f0;
  padding: 0.5rem;
}

/* Sections */
.signals-section {
  margin-bottom: 2rem;
}

.signals-section__title {
  font-size: 1.125rem;
  font-weight: 600;
  color: #e2e8f0;
  margin: 0 0 1rem 0;
  padding-left: 0.75rem;
  border-left: 3px solid #06b6d4;
}

/* Latest Signals Grid */
.signals-latest-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1rem;
}

.signal-latest-card {
  background: rgba(30, 41, 59, 0.6);
  border: 1px solid rgba(148, 163, 184, 0.1);
  border-radius: 16px;
  padding: 1.25rem;
  backdrop-filter: blur(10px);
  border-left: 3px solid #64748b;
  transition: all 0.3s ease;
}

.signal-latest-card:hover {
  transform: translateY(-2px);
  border-color: rgba(148, 163, 184, 0.2);
  box-shadow: 0 8px 24px -8px rgba(0, 0, 0, 0.3);
}

.signal-latest-card--buy {
  border-left-color: #10b981;
}

.signal-latest-card--sell {
  border-left-color: #ef4444;
}

.signal-latest-card--hold {
  border-left-color: #64748b;
}

.signal-latest-card__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.75rem;
}

.signal-latest-card__asset {
  font-size: 1.125rem;
  font-weight: 700;
  color: #f1f5f9;
}

.signal-latest-card__confidence {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.confidence-bar {
  flex: 1;
  height: 6px;
  background: rgba(51, 65, 85, 0.6);
  border-radius: 3px;
  overflow: hidden;
}

.confidence-bar__fill {
  height: 100%;
  background: linear-gradient(90deg, #06b6d4, #0891b2);
  border-radius: 3px;
  transition: width 0.3s ease;
}

.confidence-value {
  font-size: 0.875rem;
  font-weight: 600;
  color: #e2e8f0;
  min-width: 45px;
  text-align: right;
}

.signal-latest-card__reasoning {
  font-size: 0.8125rem;
  color: #94a3b8;
  line-height: 1.5;
  margin: 0 0 0.75rem 0;
}

.signal-latest-card__footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.signal-latest-card__time {
  font-size: 0.75rem;
  color: #64748b;
}

.signal-latest-card__link {
  font-size: 0.8125rem;
  color: #06b6d4;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s ease;
}

.signal-latest-card__link:hover {
  color: #22d3ee;
}

/* Signal Badges */
.signal-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.625rem;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 600;
}

.signal-badge--buy {
  background: rgba(16, 185, 129, 0.15);
  color: #10b981;
}

.signal-badge--sell {
  background: rgba(239, 68, 68, 0.15);
  color: #ef4444;
}

.signal-badge--hold {
  background: rgba(100, 116, 139, 0.15);
  color: #94a3b8;
}

/* Signals Table */
.signals-table-wrapper {
  background: rgba(30, 41, 59, 0.6);
  border: 1px solid rgba(148, 163, 184, 0.1);
  border-radius: 16px;
  overflow: hidden;
  backdrop-filter: blur(10px);
}

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

.signals-table th {
  padding: 0.875rem 1rem;
  text-align: left;
  font-size: 0.75rem;
  font-weight: 600;
  color: #94a3b8;
  background: rgba(15, 23, 42, 0.5);
  border-bottom: 1px solid rgba(148, 163, 184, 0.1);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.signals-table td {
  padding: 0.875rem 1rem;
  border-bottom: 1px solid rgba(148, 163, 184, 0.05);
  vertical-align: middle;
}

.signals-table__row {
  transition: background 0.2s ease;
}

.signals-table__row:hover {
  background: rgba(6, 182, 212, 0.03);
}

.signals-table__row--buy {
  border-left: 3px solid #10b981;
}

.signals-table__row--sell {
  border-left: 3px solid #ef4444;
}

.signals-table__row--hold {
  border-left: 3px solid #64748b;
}

.asset-cell {
  display: flex;
  flex-direction: column;
  gap: 0.125rem;
}

.asset-symbol {
  font-weight: 600;
  color: #f1f5f9;
}

.asset-name {
  font-size: 0.75rem;
  color: #64748b;
}

.confidence-cell {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.confidence-mini-bar {
  width: 60px;
  height: 4px;
  background: rgba(51, 65, 85, 0.6);
  border-radius: 2px;
  overflow: hidden;
}

.confidence-mini-bar__fill {
  height: 100%;
  border-radius: 2px;
}

.confidence-mini-bar__fill--high {
  background: #10b981;
}

.confidence-mini-bar__fill--medium {
  background: #f59e0b;
}

.confidence-mini-bar__fill--low {
  background: #ef4444;
}

.confidence-cell span {
  font-size: 0.8125rem;
  color: #e2e8f0;
}

.reasoning-text {
  font-size: 0.8125rem;
  color: #94a3b8;
}

.key-factors {
  display: flex;
  gap: 0.375rem;
  flex-wrap: wrap;
}

.key-factor-tag {
  padding: 0.25rem 0.5rem;
  background: rgba(6, 182, 212, 0.1);
  color: #06b6d4;
  border-radius: 4px;
  font-size: 0.6875rem;
  font-weight: 500;
}

.time-cell {
  font-size: 0.8125rem;
  color: #64748b;
}

.action-link {
  font-size: 0.8125rem;
  color: #06b6d4;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s ease;
}

.action-link:hover {
  color: #22d3ee;
}

/* Pagination */
.pagination {
  display: flex;
  justify-content: center;
  gap: 0.25rem;
  padding: 1.25rem;
}

.pagination .page {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 32px;
  height: 32px;
  padding: 0 0.5rem;
  font-size: 0.8125rem;
  font-weight: 500;
  color: #94a3b8;
  background: transparent;
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 6px;
  text-decoration: none;
  transition: all 0.2s ease;
}

.pagination .page:hover {
  background: rgba(51, 65, 85, 0.4);
  color: #e2e8f0;
}

.pagination .page.current {
  background: linear-gradient(135deg, #06b6d4, #0891b2);
  color: white;
  border-color: transparent;
}

.pagination .page.prev,
.pagination .page.next {
  color: #64748b;
}

/* ==================== Signal Detail Page ==================== */

.signal-detail-container {
  min-height: 100vh;
  padding: 2rem;
  position: relative;
}

.signal-detail-container::before {
  content: "";
  position: fixed;
  inset: 0;
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #0f172a 100%);
  z-index: -2;
}

.signal-detail-container::after {
  content: "";
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(6, 182, 212, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(6, 182, 212, 0.03) 1px, transparent 1px);
  background-size: 50px 50px;
  z-index: -1;
}

.signal-detail-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: #94a3b8;
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  transition: all 0.2s ease;
}

.back-link:hover {
  color: #e2e8f0;
  background: rgba(148, 163, 184, 0.1);
}

.back-link svg {
  width: 18px;
  height: 18px;
}

.signal-detail-header__time {
  font-size: 0.8125rem;
  color: #64748b;
}

/* Main Signal Card */
.signal-main-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 2rem;
  background: rgba(30, 41, 59, 0.6);
  border: 1px solid rgba(148, 163, 184, 0.1);
  border-radius: 20px;
  backdrop-filter: blur(10px);
  margin-bottom: 1.5rem;
  border-top: 3px solid #64748b;
}

.signal-main-card--buy {
  border-top-color: #10b981;
  background: linear-gradient(to bottom, rgba(16, 185, 129, 0.05), rgba(30, 41, 59, 0.6));
}

.signal-main-card--sell {
  border-top-color: #ef4444;
  background: linear-gradient(to bottom, rgba(239, 68, 68, 0.05), rgba(30, 41, 59, 0.6));
}

.signal-main-card--hold {
  border-top-color: #64748b;
}

.signal-main-card__symbol {
  font-size: 2rem;
  font-weight: 700;
  color: #f1f5f9;
  margin: 0 0 0.25rem 0;
}

.signal-main-card__name {
  font-size: 0.9375rem;
  color: #94a3b8;
  margin: 0;
}

.signal-type-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border-radius: 12px;
  font-size: 1.125rem;
  font-weight: 700;
}

.signal-type-badge svg {
  width: 20px;
  height: 20px;
}

.signal-type-badge--buy {
  background: #10b981;
  color: white;
}

.signal-type-badge--sell {
  background: #ef4444;
  color: white;
}

.signal-type-badge--hold {
  background: #64748b;
  color: white;
}

.signal-main-card__confidence {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

.confidence-circle {
  position: relative;
  width: 100px;
  height: 100px;
}

.confidence-circle__svg {
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}

.confidence-circle__value {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 1.25rem;
  font-weight: 700;
  color: #f1f5f9;
}

.confidence-label {
  font-size: 0.8125rem;
  color: #94a3b8;
}

/* Signal Sections */
.signal-section {
  background: rgba(30, 41, 59, 0.6);
  border: 1px solid rgba(148, 163, 184, 0.1);
  border-radius: 16px;
  padding: 1.5rem;
  margin-bottom: 1rem;
  backdrop-filter: blur(10px);
}

.signal-section--warning {
  background: rgba(30, 41, 59, 0.6);
  border-color: rgba(245, 158, 11, 0.3);
}

.signal-section__title {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  font-size: 1rem;
  font-weight: 600;
  color: #e2e8f0;
  margin: 0 0 1rem 0;
}

.signal-section__title svg {
  width: 20px;
  height: 20px;
  color: #64748b;
}

.signal-section--warning .signal-section__title {
  color: #fbbf24;
}

.signal-section--warning .signal-section__title svg {
  color: #f59e0b;
}

.reasoning-full {
  font-size: 0.9375rem;
  color: #cbd5e1;
  line-height: 1.7;
  margin: 0;
}

/* Key Factors */
.key-factors-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.key-factor-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  background: rgba(15, 23, 42, 0.4);
  border-radius: 8px;
}

.key-factor-icon {
  color: #fbbf24;
  font-size: 1rem;
}

.key-factor-text {
  font-size: 0.875rem;
  color: #e2e8f0;
  font-weight: 500;
}

/* Risk Warning */
.risk-warning-text {
  font-size: 0.875rem;
  color: #fbbf24;
  line-height: 1.6;
  margin: 0;
}

/* Factor Snapshot */
.factor-snapshot-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.factor-snapshot-item {
  padding: 1rem;
  background: rgba(15, 23, 42, 0.4);
  border-radius: 10px;
}

.factor-snapshot-item__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.75rem;
}

.factor-snapshot-item__name {
  font-size: 0.8125rem;
  font-weight: 600;
  color: #e2e8f0;
}

.factor-snapshot-item__weight {
  font-size: 0.6875rem;
  color: #64748b;
}

.factor-snapshot-item__value {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.375rem;
}

.factor-snapshot-item__percentile {
  font-size: 0.6875rem;
  color: #94a3b8;
}

/* Factor Value Classes */
.factor-matrix-value--positive {
  color: #10b981;
}

.factor-matrix-value--negative {
  color: #ef4444;
}

.factor-matrix-value--neutral {
  color: #94a3b8;
}

/* Signal Actions */
.signal-actions {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-top: 2rem;
}

/* ==================== NEW Signal Detail Page ==================== */

.signal-detail-page {
  min-height: 100vh;
  position: relative;
  padding: 1.5rem;
}

.signal-detail-bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
}

.signal-detail-bg__gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #0f172a 100%);
}

.signal-detail-bg__grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(6, 182, 212, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(6, 182, 212, 0.03) 1px, transparent 1px);
  background-size: 50px 50px;
}

.signal-detail-bg__glow {
  position: absolute;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.15;
  pointer-events: none;
}

.signal-detail-bg__glow--buy {
  top: -200px;
  right: -100px;
  background: #10b981;
}

.signal-detail-bg__glow--sell {
  top: -200px;
  right: -100px;
  background: #ef4444;
}

.signal-detail-bg__glow--hold {
  top: -200px;
  right: -100px;
  background: #64748b;
}

/* Header */
.signal-detail-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 900px;
  margin: 0 auto 2rem;
}

.signal-back-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.625rem 1rem;
  background: rgba(30, 41, 59, 0.6);
  border: 1px solid rgba(148, 163, 184, 0.15);
  border-radius: 10px;
  color: #94a3b8;
  font-size: 0.875rem;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.2s ease;
  backdrop-filter: blur(10px);
}

.signal-back-btn:hover {
  background: rgba(51, 65, 85, 0.6);
  color: #e2e8f0;
  border-color: rgba(148, 163, 184, 0.25);
}

.signal-back-btn svg {
  width: 18px;
  height: 18px;
}

.signal-detail-header__meta {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.signal-detail-header__time {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8125rem;
  color: #64748b;
}

.signal-detail-header__time svg {
  width: 16px;
  height: 16px;
}

/* Main Content */
.signal-detail-main {
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

/* Hero Card */
.signal-hero {
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  padding: 2.5rem;
}

.signal-hero__bg {
  position: absolute;
  inset: 0;
  background: rgba(30, 41, 59, 0.7);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(148, 163, 184, 0.1);
  border-radius: 24px;
}

.signal-hero--buy .signal-hero__bg {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.1), rgba(30, 41, 59, 0.8));
  border-color: rgba(16, 185, 129, 0.2);
}

.signal-hero--sell .signal-hero__bg {
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.1), rgba(30, 41, 59, 0.8));
  border-color: rgba(239, 68, 68, 0.2);
}

.signal-hero--hold .signal-hero__bg {
  background: linear-gradient(135deg, rgba(100, 116, 139, 0.1), rgba(30, 41, 59, 0.8));
  border-color: rgba(100, 116, 139, 0.2);
}

.signal-hero__content {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.signal-hero__asset {
  flex: 1;
}

.signal-hero__symbol {
  font-size: 2.5rem;
  font-weight: 800;
  color: #f1f5f9;
  line-height: 1.1;
  margin-bottom: 0.25rem;
  letter-spacing: -0.02em;
}

.signal-hero__name {
  font-size: 1rem;
  color: #94a3b8;
}

.signal-hero__signal {
  flex-shrink: 0;
}

.signal-type-badge-lg {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  padding: 1rem 1.75rem;
  border-radius: 16px;
  font-size: 1.25rem;
  font-weight: 700;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.signal-type-badge-lg svg {
  width: 24px;
  height: 24px;
}

.signal-type-badge-lg--buy {
  background: linear-gradient(135deg, #10b981, #059669);
  color: white;
  box-shadow: 0 4px 20px rgba(16, 185, 129, 0.3);
}

.signal-type-badge-lg--sell {
  background: linear-gradient(135deg, #ef4444, #dc2626);
  color: white;
  box-shadow: 0 4px 20px rgba(239, 68, 68, 0.3);
}

.signal-type-badge-lg--hold {
  background: linear-gradient(135deg, #64748b, #475569);
  color: white;
  box-shadow: 0 4px 20px rgba(100, 116, 139, 0.3);
}

.signal-hero__confidence {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
}

.confidence-ring {
  position: relative;
  width: 120px;
  height: 120px;
}

.confidence-ring svg {
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}

.confidence-ring__bg {
  fill: none;
  stroke: rgba(51, 65, 85, 0.6);
  stroke-width: 8;
}

.confidence-ring__progress {
  fill: none;
  stroke-width: 8;
  stroke-linecap: round;
  transition: stroke-dasharray 0.8s ease;
}

.confidence-ring__center {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
}

.confidence-ring__value {
  display: block;
  font-size: 1.75rem;
  font-weight: 800;
  color: #f1f5f9;
  line-height: 1;
}

.confidence-ring__unit {
  font-size: 0.875rem;
  color: #94a3b8;
  font-weight: 500;
}

.confidence-ring__label {
  font-size: 0.8125rem;
  color: #94a3b8;
  font-weight: 500;
}

/* Signal Card */
.signal-card {
  background: rgba(30, 41, 59, 0.6);
  border: 1px solid rgba(148, 163, 184, 0.1);
  border-radius: 20px;
  overflow: hidden;
  backdrop-filter: blur(10px);
}

.signal-card--warning {
  border-color: rgba(245, 158, 11, 0.25);
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.05), rgba(30, 41, 59, 0.6));
}

.signal-card__header {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid rgba(148, 163, 184, 0.08);
}

.signal-card__icon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
}

.signal-card__icon svg {
  width: 20px;
  height: 20px;
}

.signal-card__icon--cyan {
  background: rgba(6, 182, 212, 0.15);
  color: #06b6d4;
}

.signal-card__icon--yellow {
  background: rgba(245, 158, 11, 0.15);
  color: #f59e0b;
}

.signal-card__icon--orange {
  background: rgba(249, 115, 22, 0.15);
  color: #f97316;
}

.signal-card__icon--purple {
  background: rgba(139, 92, 246, 0.15);
  color: #8b5cf6;
}

.signal-card__title {
  font-size: 1rem;
  font-weight: 600;
  color: #e2e8f0;
  margin: 0;
}

.signal-card__badge {
  margin-left: auto;
  padding: 0.25rem 0.75rem;
  background: rgba(100, 116, 139, 0.15);
  color: #94a3b8;
  font-size: 0.6875rem;
  font-weight: 500;
  border-radius: 9999px;
}

.signal-card__body {
  padding: 1.5rem;
}

.signal-reasoning {
  font-size: 1rem;
  color: #cbd5e1;
  line-height: 1.8;
  margin: 0;
}

.signal-warning {
  font-size: 0.9375rem;
  color: #fbbf24;
  line-height: 1.7;
  margin: 0;
}

/* Key Factors Grid */
.key-factors-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.key-factor-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.625rem 1rem;
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.2);
  border-radius: 10px;
  color: #10b981;
  font-size: 0.875rem;
  font-weight: 500;
}

.key-factor-chip svg {
  width: 16px;
  height: 16px;
}

/* Factor Snapshot Cards */
.factor-snapshot-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 1rem;
}

.factor-snapshot-card {
  padding: 1.25rem;
  background: rgba(15, 23, 42, 0.5);
  border: 1px solid rgba(148, 163, 184, 0.08);
  border-radius: 14px;
  transition: all 0.2s ease;
}

.factor-snapshot-card:hover {
  border-color: rgba(148, 163, 184, 0.15);
  transform: translateY(-2px);
}

.factor-snapshot-card__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.75rem;
}

.factor-snapshot-card__name {
  font-size: 0.8125rem;
  font-weight: 600;
  color: #e2e8f0;
}

.factor-snapshot-card__weight {
  font-size: 0.6875rem;
  color: #64748b;
  padding: 0.125rem 0.5rem;
  background: rgba(100, 116, 139, 0.15);
  border-radius: 4px;
}

.factor-snapshot-card__value {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.factor-snapshot-card__percentile {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.75rem;
  color: #94a3b8;
}

.percentile-bar {
  flex: 1;
  height: 4px;
  background: rgba(51, 65, 85, 0.6);
  border-radius: 2px;
  overflow: hidden;
}

.percentile-bar__fill {
  height: 100%;
  background: linear-gradient(90deg, #06b6d4, #22d3ee);
  border-radius: 2px;
}

/* Factor Value Classes */
.factor-matrix-value--positive {
  color: #10b981;
}

.factor-matrix-value--negative {
  color: #ef4444;
}

.factor-matrix-value--neutral {
  color: #94a3b8;
}

/* Action Buttons */
.signal-action-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.625rem;
  padding: 0.875rem 1.5rem;
  border-radius: 12px;
  font-size: 0.9375rem;
  font-weight: 600;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
}

.signal-action-btn svg {
  width: 18px;
  height: 18px;
}

.signal-action-btn--primary {
  background: linear-gradient(135deg, #06b6d4, #0891b2);
  color: white;
  box-shadow: 0 4px 15px rgba(6, 182, 212, 0.3);
}

.signal-action-btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(6, 182, 212, 0.4);
}

.signal-action-btn--secondary {
  background: rgba(51, 65, 85, 0.6);
  color: #e2e8f0;
  border: 1px solid rgba(148, 163, 184, 0.2);
}

.signal-action-btn--secondary:hover {
  background: rgba(71, 85, 105, 0.6);
  border-color: rgba(148, 163, 184, 0.3);
}

/* Responsive */
@media (max-width: 1024px) {
  .signals-stats {
    grid-template-columns: repeat(2, 1fr);
  }

  .factor-snapshot-cards {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .signals-header {
    flex-direction: column;
    gap: 1rem;
    align-items: flex-start;
  }

  .signals-header__right {
    width: 100%;
    flex-wrap: wrap;
  }

  .signals-stats {
    grid-template-columns: 1fr;
  }

  .signals-latest-grid {
    grid-template-columns: 1fr;
  }

  .signals-table-wrapper {
    overflow-x: auto;
  }

  .signals-filters__form {
    flex-direction: column;
    align-items: stretch;
  }

  .signal-hero__content {
    flex-direction: column;
    text-align: center;
    gap: 1.5rem;
  }

  .signal-hero__symbol {
    font-size: 2rem;
  }

  .signal-detail-header {
    flex-direction: column;
    gap: 1rem;
    align-items: flex-start;
  }

  .factor-snapshot-cards {
    grid-template-columns: 1fr;
  }

  .signal-actions {
    flex-direction: column;
  }

  .signal-action-btn {
    width: 100%;
  }
}
