/* ==========================================================================
   COMPONENTS - Design System Components
   ========================================================================== */

/* ==========================================================================
   CARDS - Glassmorphism
   ========================================================================== */

/* Base card - structure only, visual styles defined in Premium section */
.card {
  border-radius: var(--radius-lg);
  padding: var(--space-5);
}

/* Card variants */
.card-flat {
  background: var(--bg-secondary);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.card-flat:hover {
  transform: none;
  box-shadow: none;
}

.card-interactive {
  cursor: pointer;
}

/* ==========================================================================
   BUTTONS
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-5);
  border: none;
  border-radius: var(--radius-md);
  font-family: inherit;
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 1;
  cursor: pointer;
  transition: all var(--duration-fast) var(--ease-out);
  text-decoration: none;
}

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Primary button */
.btn-primary {
  background: var(--accent);
  color: #0a0c10;
}

.btn-primary:hover:not(:disabled) {
  box-shadow: var(--shadow-glow);
  transform: translateY(-1px);
}

.btn-primary:active:not(:disabled) {
  transform: translateY(0);
}

/* Secondary button */
.btn-secondary {
  background: transparent;
  border: 1px solid var(--accent);
  color: var(--accent);
}

.btn-secondary:hover:not(:disabled) {
  background: var(--accent-muted);
}

/* Ghost button */
.btn-ghost {
  background: transparent;
  color: var(--text-secondary);
}

.btn-ghost:hover:not(:disabled) {
  color: var(--text-primary);
  background: var(--bg-tertiary);
}

/* Button sizes */
.btn-sm {
  padding: var(--space-2) var(--space-3);
  font-size: 0.75rem;
}

.btn-lg {
  padding: var(--space-4) var(--space-6);
  font-size: 1rem;
}

/* ==========================================================================
   BADGES
   ========================================================================== */

.badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  padding: var(--space-1) var(--space-2);
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
  font-weight: 500;
  line-height: 1;
}

.badge-positive {
  background: var(--positive-muted);
  color: var(--positive);
}

.badge.text-positive {
  background: var(--positive) !important;
  color: #fff !important;
  -webkit-text-fill-color: #fff;
  -webkit-background-clip: unset;
  background-clip: unset;
}

.badge-negative {
  background: var(--negative-muted);
  color: var(--negative);
}

.badge.text-negative {
  background: var(--negative) !important;
  color: #fff !important;
  -webkit-text-fill-color: #fff;
  -webkit-background-clip: unset;
  background-clip: unset;
}

.badge-warning,
.badge.text-warning {
  background: var(--warning-muted);
  color: var(--warning);
}

.badge-info {
  background: var(--info-muted);
  color: var(--info);
}

.badge-neutral {
  background: var(--bg-tertiary);
  color: var(--text-secondary);
}

.badge-accent {
  background: rgba(139, 92, 246, 0.2);
  color: var(--accent);
  border: 1px solid rgba(139, 92, 246, 0.3);
}

/* Badge sizes */
.badge-sm {
  font-size: 0.625rem;
  padding: 2px 6px;
}

/* ==========================================================================
   SKELETON LOADING
   ========================================================================== */

.skeleton {
  background: linear-gradient(
    90deg,
    var(--bg-tertiary) 0%,
    var(--bg-secondary) 50%,
    var(--bg-tertiary) 100%
  );
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite linear;
  border-radius: var(--radius-sm);
}

@keyframes shimmer {
  0% {
    background-position: 200% 0;
  }
  100% {
    background-position: -200% 0;
  }
}

.skeleton-text {
  height: 1rem;
  width: 100%;
  margin-bottom: var(--space-2);
}

.skeleton-text:last-child {
  width: 60%;
  margin-bottom: 0;
}

.skeleton-title {
  height: 1.5rem;
  width: 70%;
  margin-bottom: var(--space-3);
}

.skeleton-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  flex-shrink: 0;
}

.skeleton-card {
  height: 120px;
  width: 100%;
  border-radius: var(--radius-lg);
}

.skeleton-stat {
  height: 80px;
  width: 100%;
  border-radius: var(--radius-md);
}

/* ==========================================================================
   TOAST NOTIFICATIONS
   ========================================================================== */

.toast-container {
  position: fixed;
  bottom: var(--space-5);
  right: var(--space-5);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  z-index: 9999;
  pointer-events: none;
}

.toast {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  min-width: 300px;
  max-width: 420px;
  padding: var(--space-4);
  background: linear-gradient(135deg, rgba(15, 18, 25, 0.95) 0%, rgba(8, 10, 15, 0.98) 100%);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4), 0 0 40px rgba(124, 138, 255, 0.1);
  pointer-events: auto;
  animation: toastIn var(--duration-normal) var(--ease-spring);
  position: relative;
  overflow: hidden;
}

/* Scan line effect on toast */
.toast::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(124, 138, 255, 0.8), transparent);
  animation: toast-scan 2s ease-out forwards;
}

@keyframes toast-scan {
  0% { left: -100%; }
  100% { left: 100%; }
}

.toast.toast-exit {
  animation: toastOut var(--duration-fast) var(--ease-out) forwards;
}

.toast-success {
  border-left: 3px solid var(--positive);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4), 0 0 30px rgba(34, 197, 94, 0.15);
}

.toast-success::before {
  background: linear-gradient(90deg, transparent, rgba(34, 197, 94, 0.8), transparent);
}

.toast-error {
  border-left: 3px solid var(--negative);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4), 0 0 30px rgba(239, 68, 68, 0.15);
}

.toast-error::before {
  background: linear-gradient(90deg, transparent, rgba(239, 68, 68, 0.8), transparent);
}

.toast-warning {
  border-left: 3px solid var(--warning);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4), 0 0 30px rgba(245, 158, 11, 0.15);
}

.toast-warning::before {
  background: linear-gradient(90deg, transparent, rgba(245, 158, 11, 0.8), transparent);
}

.toast-info {
  border-left: 3px solid var(--info);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4), 0 0 30px rgba(59, 130, 246, 0.15);
}

.toast-info::before {
  background: linear-gradient(90deg, transparent, rgba(59, 130, 246, 0.8), transparent);
}

.toast-icon {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
}

.toast-success .toast-icon { color: var(--positive); }
.toast-error .toast-icon { color: var(--negative); }
.toast-warning .toast-icon { color: var(--warning); }
.toast-info .toast-icon { color: var(--info); }

.toast-content {
  flex: 1;
  min-width: 0;
}

.toast-title {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: var(--space-1);
}

.toast-message {
  font-size: 0.8125rem;
  color: var(--text-secondary);
  line-height: 1.4;
}

.toast-close {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  cursor: pointer;
  transition: all var(--duration-fast) var(--ease-out);
}

.toast-close:hover {
  background: var(--bg-tertiary);
  color: var(--text-primary);
}

@keyframes toastIn {
  0% {
    opacity: 0;
    transform: translateX(100%);
  }
  100% {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes toastOut {
  0% {
    opacity: 1;
    transform: translateX(0);
  }
  100% {
    opacity: 0;
    transform: translateX(100%);
  }
}

/* ==========================================================================
   FORM ELEMENTS
   ========================================================================== */

input,
select,
textarea {
  font-family: inherit;
  font-size: 0.875rem;
  line-height: 1.5;
  color: var(--text-primary);
  background: var(--bg-secondary);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-md);
  padding: var(--space-3) var(--space-4);
  width: 100%;
  transition: all var(--duration-fast) var(--ease-out);
}

input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-muted);
}

input::placeholder,
textarea::placeholder {
  color: var(--text-muted);
}

select {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right var(--space-3) center;
  padding-right: var(--space-8);
}

/* Checkbox & Radio */
input[type="checkbox"],
input[type="radio"] {
  width: 18px;
  height: 18px;
  padding: 0;
  cursor: pointer;
}

/* ==========================================================================
   DIVIDERS
   ========================================================================== */

.divider {
  height: 1px;
  background: rgba(255, 255, 255, 0.06);
  margin: var(--space-4) 0;
}

.divider-vertical {
  width: 1px;
  height: 100%;
  background: rgba(255, 255, 255, 0.06);
}

/* ==========================================================================
   EMPTY STATE
   ========================================================================== */

.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: var(--space-8);
  text-align: center;
}

.empty-state-icon {
  width: 64px;
  height: 64px;
  color: var(--text-muted);
  margin-bottom: var(--space-4);
  opacity: 0.5;
}

.empty-state-title {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: var(--space-2);
}

.empty-state-message {
  font-size: 0.875rem;
  color: var(--text-secondary);
  max-width: 320px;
}

/* ==========================================================================
   STAT CARDS
   ========================================================================== */

.stat-label {
  font-size: 0.625rem;
  font-weight: 500;
  color: var(--text-muted);
  margin-bottom: 2px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.stat-value {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1;
  margin-bottom: 2px;
  text-shadow: 0 0 20px rgba(124, 138, 255, 0.3);
}

.stat-delta {
  font-size: 0.75rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: var(--space-1);
}

.stat-delta.positive {
  color: var(--positive);
  text-shadow: 0 0 10px rgba(34, 197, 94, 0.3);
}

.stat-delta.negative {
  color: var(--negative);
  text-shadow: 0 0 10px rgba(239, 68, 68, 0.3);
}

/* Compact stat cards in bento-quarter */
.card.bento-quarter {
  padding: var(--space-2) var(--space-3);
  position: relative;
  overflow: hidden;
}

.card.bento-quarter::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 2px;
  height: 100%;
  background: linear-gradient(180deg,
    transparent 0%,
    rgba(124, 138, 255, 0.8) 50%,
    transparent 100%);
  box-shadow: 0 0 15px rgba(124, 138, 255, 0.6), 0 0 30px rgba(124, 138, 255, 0.3);
  transition: none;
}

.card.bento-quarter:hover::after {
  animation: scan-line 0.6s ease-out forwards;
}

@keyframes scan-line {
  0% {
    left: -2px;
  }
  100% {
    left: calc(100% + 2px);
  }
}

.stat-delta-label {
  font-weight: 400;
  color: var(--text-muted);
  text-shadow: none;
}

/* ==========================================================================
   CARD HEADER
   ========================================================================== */

.card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-4);
  padding-bottom: var(--space-3);
  border-bottom: 1px solid rgba(124, 138, 255, 0.1);
}

.card-header-insight {
  flex: 1;
  text-align: center;
  font-size: 0.8125rem;
  color: var(--text-secondary);
}

.card-header-insight strong {
  color: var(--text-primary);
  font-weight: 600;
}

.card-title {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: var(--space-2);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.card-title::before {
  content: '◈';
  color: var(--accent);
  font-size: 12px;
  opacity: 0.7;
}

/* ==========================================================================
   AVATAR
   ========================================================================== */

.avatar {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  font-size: 0.875rem;
  font-weight: 600;
  color: white;
  flex-shrink: 0;
  text-transform: uppercase;
}

.avatar-sm {
  width: 32px;
  height: 32px;
  font-size: 0.75rem;
}

.avatar-lg {
  width: 48px;
  height: 48px;
  font-size: 1rem;
}

/* ==========================================================================
   DUAL PANEL (Movers + Alerts)
   ========================================================================== */

.dual-panel {
  display: flex;
  gap: var(--space-4);
  min-height: 280px;
}

.dual-panel-section {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.dual-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-3);
  padding-bottom: var(--space-2);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.dual-panel-divider {
  width: 1px;
  background: linear-gradient(180deg, transparent 0%, rgba(124, 138, 255, 0.3) 20%, rgba(124, 138, 255, 0.5) 50%, rgba(124, 138, 255, 0.3) 80%, transparent 100%);
  box-shadow: 0 0 10px rgba(124, 138, 255, 0.3), 0 0 20px rgba(124, 138, 255, 0.1);
  position: relative;
}

.dual-panel-divider::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 3px;
  height: 20px;
  background: rgba(124, 138, 255, 0.8);
  border-radius: 2px;
  animation: divider-glow 3s ease-in-out infinite;
}

@keyframes divider-glow {
  0%, 100% { top: 0; opacity: 0.5; }
  50% { top: calc(100% - 20px); opacity: 1; }
}

@media (max-width: 768px) {
  .dual-panel {
    flex-direction: column;
  }

  .dual-panel-divider {
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.1) 20%, rgba(255, 255, 255, 0.1) 80%, transparent 100%);
  }
}

/* ==========================================================================
   MOVERS LIST
   ========================================================================== */

.movers-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
}

.mover-item {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2);
  border-radius: var(--radius-md);
  text-decoration: none;
  transition: background var(--duration-fast) var(--ease-out);
  width: 100%;
  box-sizing: border-box;
}

.mover-item {
  position: relative;
  overflow: hidden;
}

.mover-item::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 2px;
  height: 100%;
  background: linear-gradient(180deg, transparent 0%, rgba(124, 138, 255, 0.8) 50%, transparent 100%);
  box-shadow: 0 0 10px rgba(124, 138, 255, 0.5);
}

.mover-item:hover {
  background: linear-gradient(90deg, rgba(124, 138, 255, 0.08) 0%, transparent 100%);
}

.mover-item:hover::after {
  animation: scan-line 0.5s ease-out forwards;
}

.mover-info {
  flex: 1;
  min-width: 0;
}

.mover-name {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mover-mentions {
  margin-top: var(--space-1);
}

.mover-delta {
  font-size: 0.875rem;
  font-weight: 600;
  flex-shrink: 0;
}

/* ==========================================================================
   ACTIVITY LIST
   ========================================================================== */

.activity-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.activity-item {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-2);
  margin: calc(var(--space-2) * -1);
  border-radius: var(--radius-md);
  text-decoration: none;
  transition: background var(--duration-fast) var(--ease-out);
}

.activity-item:hover {
  background: var(--bg-tertiary);
}

.activity-info {
  flex: 1;
  min-width: 0;
}

.activity-entity {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.activity-source {
  margin-top: var(--space-1);
}

.activity-time {
  flex-shrink: 0;
}

/* ==========================================================================
   VIEW CONTENT
   ========================================================================== */

.view-content {
  width: 100%;
}

/* ============================================
   METRICS RENDERERS
   ============================================ */

/* Sparkline */
.sparkline {
  display: block;
  overflow: visible;
}

.sparkline--empty {
  opacity: 0.3;
}

.sparkline-line {
  vector-effect: non-scaling-stroke;
}

.sparkline-area {
  opacity: 0.8;
}

.sparkline-container {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
}

.sparkline-trend {
  font-size: 0.875rem;
  font-weight: 600;
}

.sparkline-trend.trend-up {
  color: var(--success);
}

.sparkline-trend.trend-down {
  color: var(--danger);
}

.sparkline-trend.trend-stable {
  color: var(--text-muted);
}

/* Progress Bar */
.progress-bar {
  position: relative;
  width: 100%;
  height: var(--height, 8px);
  background: var(--bg-tertiary);
  border-radius: var(--radius-full);
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  border-radius: var(--radius-full);
  transition: width 0.5s ease-out;
}

.progress-bar--animated .progress-fill {
  animation: progress-grow 0.8s ease-out;
}

@keyframes progress-grow {
  from { width: 0; }
}

.progress-label {
  position: absolute;
  right: var(--space-xs);
  top: 50%;
  transform: translateY(-50%);
  font-size: 0.625rem;
  font-weight: 600;
  color: var(--text-primary);
  text-shadow: 0 1px 2px var(--bg-primary);
}

/* Sentiment Bar */
.sentiment-bar {
  display: flex;
  width: 100%;
  height: var(--height, 8px);
  border-radius: var(--radius-full);
  overflow: hidden;
  background: var(--bg-tertiary);
}

.sentiment-positive {
  background: var(--success);
}

.sentiment-negative {
  background: var(--danger);
}

/* Trust Gauge */
.trust-gauge {
  display: block;
}

.trust-gauge-value {
  font-size: 0.875rem;
  font-weight: 700;
  fill: var(--text-primary);
}

.trust-gauge.trust-high { color: var(--positive); }
.trust-gauge.trust-good { color: #4ade80; }
.trust-gauge.trust-neutral { color: var(--text-muted); }
.trust-gauge.trust-low { color: #fb923c; }
.trust-gauge.trust-critical { color: var(--negative); }

/* Avatar (extended) */
.avatar {
  width: var(--size, 40px);
  height: var(--size, 40px);
  background: var(--bg, var(--accent));
}

.avatar-initials {
  font-size: calc(var(--size, 40px) * 0.4);
}

/* Trust/Delta Classes - scala 1-5, neutru la 3 (2.8-3.2) */
.trust-high { color: var(--positive); }       /* >= 3.8 - pozitiv clar */
.trust-good { color: #4ade80; }               /* 3.2-3.8 - ușor pozitiv */
.trust-neutral { color: var(--text-muted); }  /* 2.8-3.2 - neutru */
.trust-low { color: #fb923c; }                /* 2.2-2.8 - ușor negativ */
.trust-critical { color: var(--negative); }   /* < 2.2 - negativ clar */
.trust-unknown { color: var(--text-muted); }

.delta-positive { color: var(--success); }
.delta-negative { color: var(--danger); }
.delta-neutral { color: var(--text-muted); }
.delta-unknown { color: var(--text-muted); }

/* Status Classes */
.status-critical { color: var(--danger); }
.status-warning { color: var(--warning); }
.status-success { color: var(--success); }
.status-info { color: var(--accent); }
.status-neutral { color: var(--text-muted); }

/* ==========================================================================
   METRIC CARD - Widget pentru valori individuale
   ========================================================================== */

.metric-card {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  padding: var(--space-4);
  background: var(--bg-glass);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-md);
}

.metric-card--loading {
  min-height: 80px;
}

.metric-card--small {
  padding: var(--space-3);
}

.metric-card--small .metric-value {
  font-size: 1.25rem;
}

.metric-card--large {
  padding: var(--space-5);
}

.metric-card--large .metric-value {
  font-size: 2.5rem;
}

.metric-icon {
  font-size: 1.5rem;
  flex-shrink: 0;
}

.metric-content {
  flex: 1;
  min-width: 0;
}

.metric-value {
  font-size: 1.75rem;
  font-weight: 700;
  line-height: 1.2;
  color: var(--text-primary);
}

.metric-delta {
  display: inline-block;
  font-size: 0.875rem;
  font-weight: 500;
  margin-top: var(--space-1);
}

.metric-label {
  font-size: 0.875rem;
  color: var(--text-secondary);
  margin-top: var(--space-1);
}

.metric-sparkline {
  flex-shrink: 0;
  align-self: center;
}

/* ==========================================================================
   KPI CARD - Versiune mare pentru indicatori principali
   ========================================================================== */

.kpi-card {
  background: var(--bg-glass);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-lg);
  padding: var(--space-5);
  transition: all var(--duration-normal) var(--ease-out);
  height: 100%;
  display: flex;
  flex-direction: column;
}

.kpi-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-glow);
  border-color: var(--accent);
}

.kpi-card--loading {
  min-height: 160px;
}

.kpi-card .metric-card {
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border: none;
  padding: 0;
}

.kpi-subtitle {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-top: auto;
  padding-top: var(--space-3);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

/* ==========================================================================
   ENTITY CARD - Card pentru entități
   ========================================================================== */

.entity-card {
  display: block;
  text-decoration: none;
  background: var(--bg-glass);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-lg);
  padding: var(--space-4);
  transition: all var(--duration-normal) var(--ease-out);
}

.entity-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-glow);
  border-color: var(--accent);
}

.entity-card--loading {
  min-height: 180px;
}

.entity-card--compact {
  padding: var(--space-3);
}

.entity-card-header {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin-bottom: var(--space-4);
}

.entity-card--compact .entity-card-header {
  margin-bottom: 0;
}

.entity-info {
  flex: 1;
  min-width: 0;
}

.entity-name {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.entity-sparkline {
  flex-shrink: 0;
}

.entity-metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-3);
  padding-top: var(--space-4);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.entity-metrics--compact {
  display: flex;
  gap: var(--space-2);
  padding-top: 0;
  border-top: none;
}

.entity-metric {
  text-align: center;
}

.entity-metric-value {
  display: block;
  font-size: 1rem;
  font-weight: 600;
}

.entity-metric-label {
  display: block;
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: var(--space-1);
}

/* ==========================================================================
   STATUS BADGE - Badge pentru status/signal
   ========================================================================== */

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  padding: var(--space-1) var(--space-2);
  background: rgba(255, 255, 255, 0.05);
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
  font-weight: 500;
}

.status-icon {
  font-size: 0.875rem;
}

.status-label {
  white-space: nowrap;
}

/* ==========================================================================
   ALERT CARD - Card pentru alerte/notificări
   ========================================================================== */

.alert-card {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  padding: var(--space-4);
  background: var(--bg-secondary);
  border-radius: var(--radius-md);
  border-left: 3px solid var(--text-muted);
}

.alert-card--loading {
  min-height: 60px;
}

.alert-card--crisis {
  border-left-color: var(--danger);
  background: rgba(239, 68, 68, 0.1);
}

.alert-card--warning {
  border-left-color: var(--warning);
  background: rgba(245, 158, 11, 0.1);
}

.alert-card--info {
  border-left-color: var(--accent);
  background: rgba(0, 240, 255, 0.05);
}

.alert-card--success {
  border-left-color: var(--success);
  background: rgba(16, 185, 129, 0.1);
}

.alert-icon {
  font-size: 1.25rem;
  flex-shrink: 0;
}

.alert-content {
  flex: 1;
  min-width: 0;
}

.alert-title {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-primary);
  margin: 0 0 var(--space-1) 0;
}

.alert-message {
  font-size: 0.8125rem;
  color: var(--text-secondary);
  margin: 0;
  line-height: 1.4;
}

.alert-entity {
  display: inline-block;
  font-size: 0.75rem;
  color: var(--accent);
  margin-top: var(--space-2);
}

.alert-time {
  flex-shrink: 0;
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* ==========================================================================
   EMPTY STATE - Mesaj când nu sunt date (extins)
   ========================================================================== */

.empty-state-icon {
  font-size: 3rem;
  margin-bottom: var(--space-4);
  opacity: 0.6;
}

.empty-state-action {
  margin-top: var(--space-4);
}

/* ==========================================================================
   ENTITY VIEW
   ========================================================================== */

.entity-header {
  margin-bottom: var(--space-6);
}

.entity-header--loading {
  min-height: 100px;
}

.entity-hero {
  display: flex;
  align-items: center;
  gap: var(--space-4);
}

.entity-hero-info {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

/* ==========================================================================
   PERIOD SELECTOR
   ========================================================================== */

.period-selector {
  display: flex;
  justify-content: flex-end;
  margin-bottom: var(--space-4);
}

.select {
  background: var(--bg-glass);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-md);
  padding: var(--space-2) var(--space-3);
  padding-right: var(--space-8);
  color: var(--text-primary);
  font-size: 0.875rem;
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right var(--space-2) center;
}

.select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-muted);
}

.select:hover {
  border-color: rgba(255, 255, 255, 0.2);
}

/* ==========================================================================
   BREAKDOWNS
   ========================================================================== */

.breakdown-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  max-height: 300px;
  overflow-y: auto;
}

.breakdown-list--loading {
  min-height: 200px;
}

.breakdown-item {
  display: grid;
  grid-template-columns: 1fr 120px 40px;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-2);
  border-radius: var(--radius-sm);
  transition: background var(--duration-fast);
  text-decoration: none;
  color: inherit;
}

.breakdown-item:hover {
  background: var(--bg-tertiary);
}

a.breakdown-item {
  cursor: pointer;
}

.breakdown-name {
  font-size: 0.875rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.breakdown-bar {
  flex-shrink: 0;
}

.breakdown-count {
  text-align: right;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-secondary);
}

/* ==========================================================================
   BACK LINK
   ========================================================================== */

.back-link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.875rem;
  margin-bottom: var(--space-4);
  transition: color var(--duration-fast);
}

.back-link:hover {
  color: var(--text-primary);
}

/* ==========================================================================
   RESPONSIVE - ENTITY VIEW
   ========================================================================== */

@media (max-width: 768px) {
  .breakdown-item {
    grid-template-columns: 1fr 80px 30px;
  }

  .entity-hero {
    flex-direction: column;
    text-align: center;
  }

  .entity-hero-info {
    align-items: center;
  }
}

/* ==========================================================================
   PUBLICATION VIEW
   ========================================================================== */

.publication-header {
  display: flex;
  align-items: center;
  gap: var(--space-4);
}

.publication-header-skeleton {
  display: flex;
  align-items: center;
  gap: var(--space-4);
}

.publication-header-info {
  flex: 1;
}

.publication-icon {
  font-size: 2.5rem;
  width: 64px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-glass);
  border-radius: var(--radius-lg);
  flex-shrink: 0;
}

.publication-info {
  flex: 1;
  min-width: 0;
}

.publication-meta {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  margin-top: var(--space-2);
  flex-wrap: wrap;
}

.publication-url {
  color: var(--accent);
  text-decoration: none;
  font-size: 0.875rem;
}

.publication-url:hover {
  text-decoration: underline;
}

.publication-stats {
  display: flex;
  gap: var(--space-6);
  flex-shrink: 0;
}

.publication-stat {
  text-align: center;
}

.publication-stat-value {
  display: block;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary);
}

.publication-stat-label {
  display: block;
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: var(--space-1);
}

.publication-controls {
  display: flex;
  justify-content: flex-end;
  margin-bottom: var(--space-4);
}

/* ==========================================================================
   ARTICLES LIST
   ========================================================================== */

.articles-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  max-height: 400px;
  overflow-y: auto;
}

.article-item {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: var(--space-4);
  padding: var(--space-3);
  background: var(--bg-tertiary);
  border-radius: var(--radius-md);
  transition: background var(--duration-fast);
}

.article-item:hover {
  background: var(--bg-secondary);
}

.article-content {
  flex: 1;
  min-width: 0;
}

.article-title {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-primary);
  text-decoration: none;
  line-height: 1.4;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.article-title:hover {
  color: var(--accent);
}

.article-entities {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-1);
  margin-top: var(--space-2);
}

.article-entity-tag {
  display: inline-block;
  padding: var(--space-1) var(--space-2);
  background: rgba(0, 240, 255, 0.1);
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
  color: var(--accent);
  text-decoration: none;
  transition: background var(--duration-fast);
}

.article-entity-tag:hover {
  background: rgba(0, 240, 255, 0.2);
}

.article-entity-more {
  display: inline-block;
  padding: var(--space-1) var(--space-2);
  font-size: 0.75rem;
  color: var(--text-muted);
}

.article-meta {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: var(--space-2);
  min-width: 100px;
}

.article-time {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.article-sentiment {
  width: 80px;
}

.articles-more {
  text-align: center;
  margin-top: var(--space-3);
}

/* ==========================================================================
   TIMELINE CHART
   ========================================================================== */

.timeline-chart {
  display: flex;
  align-items: flex-end;
  gap: 2px;
  height: 120px;
  padding: var(--space-2) 0;
}

.timeline-bar {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  height: 100%;
  cursor: pointer;
  position: relative;
}

.timeline-bar-fill {
  width: 100%;
  background: var(--accent);
  border-radius: var(--radius-sm) var(--radius-sm) 0 0;
  transition: height 0.3s ease, background 0.2s;
  margin-top: auto;
}

.timeline-bar:hover .timeline-bar-fill {
  background: var(--accent-hover, #00d4e6);
}

.timeline-bar-label {
  font-size: 0.625rem;
  color: var(--text-muted);
  margin-top: var(--space-1);
  position: absolute;
  bottom: -16px;
}

.timeline-empty {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 120px;
  color: var(--text-muted);
  font-size: 0.875rem;
}

.timeline-tooltip {
  position: fixed;
  background: var(--bg-secondary);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-sm);
  padding: var(--space-2) var(--space-3);
  font-size: 0.75rem;
  color: var(--text-primary);
  pointer-events: none;
  opacity: 0;
  transform: translateX(-50%);
  transition: opacity var(--duration-fast);
  z-index: 1000;
  white-space: nowrap;
}

.timeline-tooltip.visible {
  opacity: 1;
}

/* ==========================================================================
   SENTIMENT BREAKDOWN
   ========================================================================== */

.sentiment-breakdown-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  max-height: 400px;
  overflow-y: auto;
}

.sentiment-entity-item {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-2);
  border-radius: var(--radius-md);
  text-decoration: none;
  color: inherit;
  transition: background var(--duration-fast);
}

.sentiment-entity-item:hover {
  background: var(--bg-tertiary);
}

.sentiment-entity-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.sentiment-entity-name {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-primary);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sentiment-entity-count {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.sentiment-entity-bar {
  width: 80px;
  flex-shrink: 0;
}

/* ==========================================================================
   RESPONSIVE - PUBLICATION VIEW
   ========================================================================== */

@media (max-width: 768px) {
  .publication-header {
    flex-direction: column;
    text-align: center;
  }

  .publication-meta {
    justify-content: center;
  }

  .publication-stats {
    width: 100%;
    justify-content: center;
  }

  .article-item {
    flex-direction: column;
  }

  .article-meta {
    flex-direction: row;
    align-items: center;
    width: 100%;
    justify-content: space-between;
    min-width: auto;
  }

  .timeline-bar-label {
    display: none;
  }

  .timeline-bar:nth-child(odd) .timeline-bar-label {
    display: block;
  }
}

/* ==========================================================================
   PULSE GRID - Topics Trending
   ========================================================================== */

.pulse-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-3);
}

.pulse-card {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--bg-tertiary);
  background-size: cover;
  background-position: center;
}

.pulse-card--loading {
  display: flex;
  align-items: center;
  justify-content: center;
}

.pulse-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(10, 12, 16, 0.95) 0%,
    rgba(10, 12, 16, 0.7) 50%,
    rgba(10, 12, 16, 0.3) 100%
  );
  display: flex;
  align-items: flex-end;
  padding: var(--space-3);
}

.pulse-card-content {
  width: 100%;
}

.pulse-card-score {
  display: inline-block;
  padding: var(--space-1) var(--space-2);
  background: var(--accent);
  color: var(--bg-primary);
  font-size: 0.75rem;
  font-weight: 700;
  border-radius: var(--radius-sm);
  margin-bottom: var(--space-2);
}

.pulse-card-text {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-primary);
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: var(--space-1);
}

.pulse-card-meta {
  font-size: 0.75rem;
  color: var(--text-muted);
  display: flex;
  gap: var(--space-1);
}

.pulse-icon {
  animation: pulse-glow 2s ease-in-out infinite;
}

@keyframes pulse-glow {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.5;
  }
}

/* Responsive Pulse Grid */
@media (max-width: 1024px) {
  .pulse-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .pulse-grid {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   PULSE GRID - Entity Cards Variant
   ========================================================================== */

.pulse-grid--entities {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-4);
}

@media (max-width: 1023px) {
  .pulse-grid--entities {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 639px) {
  .pulse-grid--entities {
    grid-template-columns: 1fr;
  }
}

.pulse-wrapper {
  text-decoration: none;
  color: inherit;
  display: block;
}

.pulse-entity-card {
  background: var(--bg-card, var(--bg-secondary));
  border-radius: var(--radius-lg);
  padding: var(--space-4);
  border: 1px solid var(--border-subtle, rgba(255, 255, 255, 0.06));
  transition: border-color 0.15s, transform 0.15s;
}

.pulse-entity-card:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
}

.pulse-head {
  display: flex;
  gap: var(--space-3);
  align-items: center;
  margin-bottom: var(--space-3);
}

.pulse-info {
  flex: 1;
  min-width: 0;
}

.pulse-name {
  font-weight: 600;
  font-size: 0.875rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.pulse-metrics {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-2);
}

.pulse-metric {
  background: rgba(0, 0, 0, 0.2);
  border-radius: var(--radius);
  padding: var(--space-2);
  text-align: center;
}

.pulse-label {
  font-size: 0.625rem;
  text-transform: uppercase;
  color: var(--text-muted);
  letter-spacing: 0.05em;
}

.pulse-value {
  font-size: 0.875rem;
  font-weight: 700;
  margin-top: var(--space-1);
}

/* ==========================================================================
   ALERTS LIST - Pentru Briefing Alerts Section
   ========================================================================== */

.alerts-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
}

/* ==========================================================================
   REALTIME FEED - Articole recente cu polling
   ========================================================================== */

.realtime-feed {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  max-height: 500px;
  overflow-y: auto;
  overflow-x: hidden;
  position: relative;
  padding-left: var(--space-4);
}

/* Timeline vertical line */
.realtime-feed::before {
  content: '';
  position: absolute;
  top: 0;
  left: 8px;
  width: 2px;
  height: 100%;
  background: linear-gradient(180deg,
    rgba(124, 138, 255, 0.5) 0%,
    rgba(124, 138, 255, 0.2) 50%,
    transparent 100%);
  box-shadow: 0 0 8px rgba(124, 138, 255, 0.3);
}

.feed-item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  padding: var(--space-3);
  background: var(--bg-tertiary);
  border-radius: var(--radius-md);
  text-decoration: none;
  transition: all var(--duration-fast);
  position: relative;
  border-left: 2px solid transparent;
}

/* Timeline dot */
.feed-item::before {
  content: '';
  position: absolute;
  left: calc(-1 * var(--space-4) - 3px);
  top: 50%;
  transform: translateY(-50%);
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(124, 138, 255, 0.6);
  border: 2px solid var(--bg-primary);
  box-shadow: 0 0 8px rgba(124, 138, 255, 0.4);
  transition: all 0.2s;
}

.feed-item:hover {
  background: linear-gradient(90deg, rgba(124, 138, 255, 0.08) 0%, var(--bg-secondary) 100%);
  transform: translateX(4px);
  border-left-color: rgba(124, 138, 255, 0.5);
}

.feed-item:hover::before {
  background: var(--accent);
  box-shadow: 0 0 12px rgba(124, 138, 255, 0.6);
  transform: translateY(-50%) scale(1.2);
}

/* New item animation */
.feed-item--new {
  animation: feed-slide-in 0.4s ease-out;
}

@keyframes feed-slide-in {
  0% {
    opacity: 0;
    transform: translateX(-20px);
  }
  100% {
    opacity: 1;
    transform: translateX(0);
  }
}

.feed-source {
  flex-shrink: 0;
}

.source-badge {
  display: inline-block;
  padding: var(--space-1) var(--space-2);
  background: rgba(0, 240, 255, 0.1);
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--accent);
  max-width: 100px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.feed-content {
  flex: 1;
  min-width: 0;
}

.feed-title {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-primary);
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.feed-meta {
  margin-top: var(--space-1);
  display: flex;
  align-items: center;
  gap: var(--space-2);
  flex-wrap: wrap;
}

.feed-entities {
  color: var(--accent);
}

.feed-time {
  flex-shrink: 0;
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* Live dot animation pentru Realtime Feed */
.live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--positive);
  position: relative;
  animation: live-pulse 2s ease-in-out infinite;
}

.live-dot::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: inherit;
  animation: live-ripple 2s ease-out infinite;
}

.live-dot::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: inherit;
  animation: live-ripple 2s ease-out infinite 0.5s;
}

@keyframes live-ripple {
  0% { width: 100%; height: 100%; opacity: 0.6; }
  100% { width: 300%; height: 300%; opacity: 0; }
}

.live-dot-warning {
  background: var(--warning);
}

@keyframes live-pulse {
  0%, 100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.6;
    transform: scale(1.2);
  }
}

/* ==========================================================================
   FEED ITEM - Enhanced Layout cu Favorability Score
   ========================================================================== */

.feed-item--enhanced {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: var(--space-3);
  padding: var(--space-3);
  background: var(--bg-tertiary);
  border-radius: var(--radius-md);
  text-decoration: none;
  transition: background var(--duration-fast), transform var(--duration-fast);
  align-items: start;
}

.feed-item--enhanced:hover {
  background: var(--bg-secondary);
  transform: translateX(4px);
}

.feed-item--enhanced .feed-time {
  font-size: 0.75rem;
  color: var(--text-muted);
  min-width: 60px;
  flex-shrink: 0;
}

.feed-item--enhanced .feed-content {
  flex: 1;
  min-width: 0;
  overflow: hidden;
}

.feed-item--enhanced .feed-title {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  word-break: break-word;
}

.feed-item--enhanced .feed-source-name {
  color: var(--accent);
}

.feed-score {
  font-weight: 700;
  font-size: 0.875rem;
  min-width: 40px;
  text-align: right;
  flex-shrink: 0;
}

/* ==========================================================================
   PUBLICATION VIEW - Entity Cards Grid
   ========================================================================== */

.metric-card-compact {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  height: 100%;
}

.metric-card-compact .metric-title {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.metric-card-compact .metric-value {
  font-size: 1.5rem;
  font-weight: 700;
}

.metric-card-compact .metric-entity {
  font-size: 0.875rem;
  color: var(--text-secondary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.entities-pub-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-4);
}

@media (max-width: 1279px) {
  .entities-pub-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 1023px) {
  .entities-pub-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 639px) {
  .entities-pub-grid {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   PUBLICATION - Media Intelligence Visualizations
   ========================================================================== */

/* Sentiment Landscape - Bubble visualization */
.sentiment-landscape {
  position: relative;
  height: 400px;
  background: linear-gradient(135deg, rgba(var(--accent-rgb, 99, 102, 241), 0.05) 0%, rgba(var(--success-rgb, 34, 197, 94), 0.03) 50%, rgba(var(--danger-rgb, 239, 68, 68), 0.05) 100%);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.sentiment-landscape::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 30%, rgba(34, 197, 94, 0.1) 0%, transparent 40%),
    radial-gradient(circle at 80% 70%, rgba(239, 68, 68, 0.1) 0%, transparent 40%);
  pointer-events: none;
}

.landscape-axis {
  position: absolute;
  color: var(--text-muted);
  font-size: 0.625rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.landscape-axis--top { top: 12px; left: 50%; transform: translateX(-50%); }
.landscape-axis--bottom { bottom: 12px; left: 50%; transform: translateX(-50%); }
.landscape-axis--left { left: 12px; top: 50%; transform: translateY(-50%) rotate(-90deg); }
.landscape-axis--right { right: 12px; top: 50%; transform: translateY(-50%) rotate(90deg); }

.landscape-bubble {
  position: absolute;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--bg-glass);
  backdrop-filter: blur(8px);
  border: 2px solid;
  cursor: pointer;
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s;
  z-index: 1;
}

.landscape-bubble:hover {
  transform: scale(1.15);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  z-index: 10;
}

.landscape-bubble-name {
  font-size: 0.625rem;
  font-weight: 600;
  text-align: center;
  max-width: 90%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.landscape-bubble-value {
  font-size: 0.75rem;
  font-weight: 700;
  margin-top: 2px;
}

/* Coverage Bars - Horizontal bars */
.coverage-bars {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.coverage-bar-item {
  display: grid;
  grid-template-columns: 120px 1fr auto;
  gap: var(--space-3);
  align-items: center;
}

.coverage-bar-name {
  font-size: 0.875rem;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.coverage-bar-track {
  height: 24px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: var(--radius);
  overflow: hidden;
  position: relative;
}

.coverage-bar-fill {
  height: 100%;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding-right: var(--space-2);
  font-size: 0.75rem;
  font-weight: 600;
  color: white;
  transition: width 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
  background: linear-gradient(90deg, var(--bar-start, var(--accent)) 0%, var(--bar-end, var(--accent)) 100%);
}

.coverage-bar-value {
  font-size: 0.875rem;
  font-weight: 600;
  min-width: 60px;
  text-align: right;
}

/* Sentiment Radar */
.sentiment-radar {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: var(--space-4);
}

.radar-svg {
  max-width: 100%;
  height: auto;
}

.radar-polygon {
  /* fill and stroke set inline per entity color */
  fill-opacity: 0.25;
  stroke-width: 2;
  transition: all 0.3s;
}

.radar-polygon:hover {
  fill-opacity: 0.4;
  stroke-width: 3;
}

.radar-label {
  font-size: 11px;
  fill: var(--text-secondary);
  font-weight: 500;
}

.radar-value {
  font-size: 10px;
  fill: var(--text-muted);
}

.radar-grid-line {
  stroke: rgba(255, 255, 255, 0.1);
  stroke-width: 1;
  fill: none;
}

.radar-axis {
  stroke: rgba(255, 255, 255, 0.15);
  stroke-width: 1;
}

/* Activity Timeline */
.activity-timeline {
  display: flex;
  gap: 2px;
  height: 80px;
  align-items: flex-end;
}

.timeline-bar {
  flex: 1;
  background: var(--accent);
  border-radius: 2px 2px 0 0;
  min-height: 4px;
  opacity: 0.7;
  transition: opacity 0.2s, transform 0.2s;
  position: relative;
}

.timeline-bar:hover {
  opacity: 1;
  transform: scaleY(1.1);
  transform-origin: bottom;
}

.timeline-bar::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  background: var(--bg-primary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius);
  padding: 4px 8px;
  font-size: 0.625rem;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s;
}

.timeline-bar:hover::after {
  opacity: 1;
}

.timeline-labels {
  display: flex;
  justify-content: space-between;
  margin-top: var(--space-2);
  font-size: 0.625rem;
  color: var(--text-muted);
}

/* Insight Cards */
.insights-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-4);
}

@media (max-width: 1023px) {
  .insights-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 639px) {
  .insights-grid {
    grid-template-columns: 1fr;
  }
}

.insight-card {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.03) 0%, rgba(255, 255, 255, 0.01) 100%);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: var(--space-4);
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.insight-card--highlight {
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.1) 0%, rgba(99, 102, 241, 0.02) 100%);
  border-color: rgba(99, 102, 241, 0.3);
}

.insight-icon {
  font-size: 1.5rem;
}

.insight-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.insight-value {
  font-size: 1.25rem;
  font-weight: 700;
}

.insight-detail {
  font-size: 0.875rem;
  color: var(--text-secondary);
}

/* ==========================================================================
   2030 PREMIUM DESIGN SYSTEM
   Modern glassmorphism, glow effects, premium aesthetics
   ========================================================================== */

/* Premium Card Base */
/* Futuristic Card Style */
.card {
  background: linear-gradient(135deg, rgba(15, 18, 25, 0.95) 0%, rgba(8, 10, 15, 0.98) 100%);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid rgba(124, 138, 255, 0.12);
  box-shadow:
    0 4px 24px rgba(0, 0, 0, 0.2),
    0 0 0 1px rgba(124, 138, 255, 0.05),
    inset 0 1px 0 rgba(255, 255, 255, 0.03);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
}

.card:hover {
  border-color: rgba(124, 138, 255, 0.25);
  box-shadow:
    0 8px 40px rgba(0, 0, 0, 0.3),
    0 0 20px rgba(124, 138, 255, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

/* Subtle corner accents */
.card::before,
.card::after {
  content: '';
  position: absolute;
  width: 12px;
  height: 12px;
  border: 1px solid rgba(124, 138, 255, 0.3);
  pointer-events: none;
  opacity: 0.6;
  transition: opacity 0.3s;
}

.card::before {
  top: -1px;
  left: -1px;
  border-right: none;
  border-bottom: none;
  border-top-left-radius: var(--radius-lg);
}

.card::after {
  bottom: -1px;
  right: -1px;
  border-left: none;
  border-top: none;
  border-bottom-right-radius: var(--radius-lg);
}

.card:hover::before,
.card:hover::after {
  opacity: 1;
  border-color: rgba(124, 138, 255, 0.5);
}

/* Glow effect on animated cards */
.card[data-animate]::before,
.card[data-animate]::after {
  transition: all 0.3s ease;
}

/* Premium KPI Card */
.kpi-card {
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.04) 0%, rgba(255, 255, 255, 0.01) 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  position: relative;
  overflow: hidden;
}

.kpi-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg,
    transparent 0%,
    rgba(99, 102, 241, 0.5) 50%,
    transparent 100%);
}

.kpi-card:hover {
  transform: translateY(-4px);
  box-shadow:
    0 20px 40px -10px rgba(99, 102, 241, 0.15),
    0 8px 20px -5px rgba(0, 0, 0, 0.3);
}

/* Premium Value Display */
.kpi-value,
.stat-value,
.metric-value {
  background: linear-gradient(135deg, #fff 0%, #a5b4fc 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.text-positive {
  background: linear-gradient(135deg, #22c55e 0%, #4ade80 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.text-negative {
  background: linear-gradient(135deg, #ef4444 0%, #f87171 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Premium Badge */
.badge {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.05) 100%);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.badge-info {
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.2) 0%, rgba(99, 102, 241, 0.1) 100%);
  border-color: rgba(99, 102, 241, 0.3);
  color: #a5b4fc;
}

/* Premium Header */
.publication-header,
.entity-header {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.02) 0%, transparent 100%);
  border-radius: var(--radius-xl, 20px);
  padding: var(--space-6);
  border: 1px solid rgba(255, 255, 255, 0.04);
  margin-bottom: var(--space-5);
}

.publication-icon {
  font-size: 3rem;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
}

/* Premium Pulse Entity Card */
.pulse-entity-card {
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.04) 0%, rgba(255, 255, 255, 0.01) 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  position: relative;
  overflow: hidden;
}

.pulse-entity-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent) 0%, #ec4899 100%);
  opacity: 0;
  transition: opacity 0.3s;
}

.pulse-entity-card:hover::before {
  opacity: 1;
}

/* Premium Entity Pub Card */
.entity-pub-card {
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.03) 0%, transparent 100%);
  border: 1px solid rgba(255, 255, 255, 0.06);
  position: relative;
  overflow: hidden;
}

.entity-pub-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top right, rgba(99, 102, 241, 0.1) 0%, transparent 70%);
  opacity: 0;
  transition: opacity 0.3s;
  pointer-events: none;
}

.entity-pub-card:hover::after {
  opacity: 1;
}

.entity-pub-card.border-positive {
  border-color: rgba(34, 197, 94, 0.4);
  box-shadow: 0 0 20px -5px rgba(34, 197, 94, 0.2);
}

.entity-pub-card.border-negative {
  border-color: rgba(239, 68, 68, 0.4);
  box-shadow: 0 0 20px -5px rgba(239, 68, 68, 0.2);
}

/* Premium Feed Item */
.feed-item--enhanced {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.02) 0%, transparent 100%);
  border: 1px solid rgba(255, 255, 255, 0.04);
}

.feed-item--enhanced:hover {
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.05) 0%, transparent 100%);
  border-color: rgba(99, 102, 241, 0.2);
}

/* Premium Sentiment Landscape */
.sentiment-landscape {
  background:
    radial-gradient(ellipse at 20% 20%, rgba(34, 197, 94, 0.08) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 80%, rgba(239, 68, 68, 0.08) 0%, transparent 50%),
    radial-gradient(ellipse at 50% 50%, rgba(99, 102, 241, 0.05) 0%, transparent 70%),
    linear-gradient(135deg, rgba(15, 23, 42, 0.8) 0%, rgba(15, 23, 42, 0.95) 100%);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.landscape-bubble {
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0.02) 100%);
  backdrop-filter: blur(12px);
  box-shadow:
    0 8px 32px rgba(0, 0, 0, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.landscape-bubble:hover {
  box-shadow:
    0 16px 48px rgba(0, 0, 0, 0.4),
    0 0 30px rgba(99, 102, 241, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

/* Premium Coverage Bar */
.coverage-bar-track {
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.02) 0%, rgba(255, 255, 255, 0.05) 100%);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.coverage-bar-fill {
  box-shadow: 0 0 20px rgba(99, 102, 241, 0.4);
}

/* Premium Radar - colors set inline, only enhance here */
.radar-polygon {
  filter: drop-shadow(0 0 6px currentColor);
}

/* Premium Timeline Bar */
.timeline-bar {
  background: linear-gradient(180deg, var(--accent) 0%, rgba(99, 102, 241, 0.6) 100%);
  box-shadow: 0 0 10px rgba(99, 102, 241, 0.3);
}

.timeline-bar:hover {
  box-shadow: 0 0 20px rgba(99, 102, 241, 0.5);
}

/* Animated gradient border for special cards */
@keyframes gradient-shift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.card--premium {
  position: relative;
}

.card--premium::before {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: inherit;
  background: linear-gradient(45deg,
    #6366f1, #8b5cf6, #ec4899, #6366f1);
  background-size: 400% 400%;
  animation: gradient-shift 8s ease infinite;
  opacity: 0.3;
  z-index: -1;
  filter: blur(8px);
}

/* Premium scrollbar */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.02);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, rgba(99, 102, 241, 0.4) 0%, rgba(99, 102, 241, 0.2) 100%);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, rgba(99, 102, 241, 0.6) 0%, rgba(99, 102, 241, 0.4) 100%);
}

/* Premium select */
.select {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.04) 0%, rgba(255, 255, 255, 0.01) 100%);
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  transition: all 0.3s;
}

.select:hover {
  border-color: rgba(99, 102, 241, 0.4);
  box-shadow: 0 0 20px rgba(99, 102, 241, 0.1);
}

.select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.2);
}

.select--compact {
  padding: 6px 28px 6px 12px;
  font-size: 0.75rem;
  min-width: auto;
}

.select--mini {
  font-size: 11px;
  padding: 4px 8px;
  background: rgba(124, 138, 255, 0.1);
  border: 1px solid rgba(124, 138, 255, 0.25);
  border-radius: var(--radius-md);
  transition: all 0.2s ease;
  width: fit-content;
}

.select--mini:hover {
  background: rgba(124, 138, 255, 0.15);
  border-color: rgba(124, 138, 255, 0.4);
}

.select--mini:focus {
  background: rgba(124, 138, 255, 0.2);
  border-color: var(--accent);
  box-shadow: 0 0 0 2px rgba(124, 138, 255, 0.15);
  outline: none;
}

/* Style native dropdown options - use light theme for readability */
.select option {
  background: #ffffff !important;
  color: #1e1e2e !important;
  padding: 8px 12px;
}

.select option:checked {
  background: #4f46e5 !important;
  color: #ffffff !important;
}

/* Force dark text on hover - browser may override */
.select option:hover,
.select option:focus {
  background: #e5e5e5 !important;
  color: #1e1e2e !important;
}

/* View Header Top - back link + period selector */
.view-header-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--space-4);
  gap: var(--space-4);
}

.view-header-top .select--compact {
  width: auto !important;
  min-width: 90px;
  max-width: 110px;
  padding: 8px 32px 8px 12px;
  font-size: 0.8125rem;
  background-color: var(--bg-secondary);
  color: var(--text-primary);
}

.back-link {
  font-size: 0.875rem;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s;
}

.back-link:hover {
  color: var(--accent);
}

/* Publication Header Layout */
.publication-header {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  flex-wrap: wrap;
}

.publication-icon {
  font-size: 2.5rem;
  flex-shrink: 0;
}

.publication-info {
  flex: 1;
  min-width: 200px;
}

.publication-meta {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  margin-top: var(--space-2);
  flex-wrap: wrap;
}

.publication-url {
  font-size: 0.875rem;
  color: var(--accent);
  text-decoration: none;
}

.publication-url:hover {
  text-decoration: underline;
}

.publication-stats {
  display: flex;
  gap: var(--space-4);
  margin-left: auto;
}

.publication-stat {
  text-align: center;
  padding: var(--space-2) var(--space-3);
  background: rgba(255, 255, 255, 0.03);
  border-radius: var(--radius);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.publication-stat-value {
  display: block;
  font-size: 1.25rem;
  font-weight: 700;
  background: linear-gradient(135deg, #fff 0%, #a5b4fc 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.publication-stat-label {
  display: block;
  font-size: 0.625rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-top: 2px;
}

@media (max-width: 768px) {
  .publication-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .publication-stats {
    margin-left: 0;
    width: 100%;
    justify-content: space-between;
  }
}

.entity-pub-card {
  display: block;
  text-decoration: none;
  color: inherit;
  background: var(--bg-tertiary);
  border-radius: var(--radius-lg);
  padding: var(--space-4);
  border: 2px solid var(--text-muted);
  transition: all var(--duration-fast) var(--ease-out);
}

.entity-pub-card:hover {
  transform: translateY(-2px);
  border-color: var(--accent);
}

.entity-pub-card.border-positive {
  border-color: var(--success);
}

.entity-pub-card.border-negative {
  border-color: var(--danger);
}

.entity-pub-card.border-neutral {
  border-color: var(--text-muted);
}

.entity-pub-head {
  display: flex;
  gap: var(--space-3);
  align-items: center;
  margin-bottom: var(--space-3);
}

.entity-pub-info {
  flex: 1;
  min-width: 0;
}

.entity-pub-name {
  font-weight: 600;
  font-size: 1rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.entity-pub-role {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: var(--space-1);
}

.entity-pub-metrics {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-2);
}

.entity-pub-metric {
  background: rgba(0, 0, 0, 0.2);
  border-radius: var(--radius);
  padding: var(--space-2);
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.entity-pub-metric .metric-label {
  font-size: 0.625rem;
  text-transform: uppercase;
  color: var(--text-muted);
  letter-spacing: 0.05em;
}

.entity-pub-metric .metric-value {
  font-size: 0.875rem;
  font-weight: 600;
}

/* Entity pub stats - badges pentru mențiuni și SOV */
.entity-pub-stats {
  display: flex;
  gap: var(--space-2);
  margin-top: var(--space-1);
}

/* Entity sentiment grid - legacy (4 columns) */
.entity-sentiment-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-2);
}

@media (max-width: 639px) {
  .entity-sentiment-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Entity sentiment rows - 3 rânduri: highlight, pozitive, negative */
.entity-sentiment-rows {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  margin-top: var(--space-2);
}

.sentiment-row {
  display: grid;
  gap: var(--space-2);
  padding: var(--space-1) 0;
  border-radius: var(--radius);
}

.sentiment-row--highlight {
  grid-template-columns: repeat(2, 1fr);
}

.sentiment-row--positive {
  grid-template-columns: repeat(3, 1fr);
  border-left: 2px solid rgba(34, 197, 94, 0.3);
  padding-left: var(--space-2);
}

.sentiment-row--negative {
  grid-template-columns: repeat(3, 1fr);
  border-left: 2px solid rgba(239, 68, 68, 0.3);
  padding-left: var(--space-2);
}

.entity-sentiment-metric {
  background: rgba(0, 0, 0, 0.2);
  border-radius: var(--radius);
  padding: var(--space-2);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  text-align: center;
}

.entity-sentiment-metric .metric-label {
  font-size: 0.5rem;
  text-transform: uppercase;
  color: var(--text-muted);
  letter-spacing: 0.05em;
}

.entity-sentiment-metric .metric-value {
  font-size: 0.75rem;
  font-weight: 700;
}

.entity-sentiment-metric .metric-bar-wrap {
  display: flex;
  align-items: center;
  gap: 4px;
  width: 100%;
}

.entity-sentiment-metric .metric-bar-track {
  flex: 1;
  height: 4px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 2px;
  overflow: hidden;
}

.entity-sentiment-metric .metric-bar-fill {
  height: 100%;
  border-radius: 2px;
  transition: width 0.6s ease;
}

/* ==========================================================================
   COVERAGE MATRIX - SOV + Favorabilitate Grid Premium
   ========================================================================== */

.coverage-matrix {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
}

.coverage-header {
  display: grid;
  grid-template-columns: 1fr 180px;
  gap: var(--space-3);
  padding: var(--space-2) var(--space-3);
  font-size: 0.6875rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.7);
  font-weight: 500;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.coverage-header--extended {
  grid-template-columns: 1fr 320px;
}

.coverage-header--full {
  grid-template-columns: 1fr 560px;
}

.coverage-labels {
  display: grid;
  grid-template-columns: 50px 50px 40px;
  gap: var(--space-2);
  text-align: center;
}

.coverage-labels--extended {
  grid-template-columns: 55px 55px 55px 55px 45px;
}

.coverage-labels--full {
  grid-template-columns: 80px 95px 85px 60px 85px 65px;
}

.coverage-row {
  display: grid;
  grid-template-columns: 1fr 180px;
  gap: var(--space-3);
  padding: var(--space-3) var(--space-3);
  border-radius: var(--radius);
  transition: all 0.2s;
  position: relative;
  overflow: hidden;
  border-left: 2px solid transparent;
  min-height: 40px;
  align-items: center;
}

.coverage-row::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 2px;
  height: 100%;
  background: linear-gradient(180deg, transparent 0%, rgba(124, 138, 255, 0.8) 50%, transparent 100%);
  box-shadow: 0 0 10px rgba(124, 138, 255, 0.5);
}

.coverage-row:hover {
  background: linear-gradient(90deg, rgba(124, 138, 255, 0.06) 0%, transparent 100%);
  border-left-color: rgba(124, 138, 255, 0.5);
}

.coverage-row:hover::after {
  animation: scan-line 0.4s ease-out forwards;
}

/* Link variant - când row-ul e un <a> */
a.coverage-row--link {
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}

a.coverage-row--link:hover {
  background: rgba(139, 92, 246, 0.1);
  border-color: rgba(139, 92, 246, 0.3);
}

a.coverage-row--link:hover .coverage-name {
  color: var(--accent);
}

.coverage-row:has(.coverage-metrics--extended) {
  grid-template-columns: 1fr 320px;
}

.coverage-row:has(.coverage-metrics--full) {
  grid-template-columns: 1fr 560px;
}

.coverage-entity {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  text-decoration: none;
  color: inherit;
  min-width: 0;
}

.coverage-entity:hover .coverage-name {
  color: var(--accent);
}

.coverage-name {
  font-size: 0.8125rem;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: color 0.2s;
  line-height: 1.4;
}

.coverage-metrics {
  display: grid;
  grid-template-columns: 50px 50px 40px;
  gap: var(--space-2);
  align-items: center;
}

.coverage-metrics--extended {
  grid-template-columns: 55px 55px 55px 55px 45px;
}

.coverage-metrics--full {
  grid-template-columns: 80px 95px 85px 60px 85px 65px;
}

/* Daily version - 4 columns */
.coverage-header--daily {
  grid-template-columns: 1fr 340px;
}

.coverage-labels--daily {
  grid-template-columns: 80px 65px 90px 60px;
}

.coverage-metrics--daily {
  grid-template-columns: 80px 65px 90px 60px;
}

.coverage-row:has(.coverage-metrics--daily) {
  grid-template-columns: 1fr 340px;
}

.coverage-row:has(.coverage-metrics--pub) {
  grid-template-columns: 1fr auto;
  padding-right: var(--space-4);
}

.coverage-metric {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.coverage-bar-mini {
  height: 4px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 2px;
  overflow: hidden;
}

.coverage-bar-fill-mini {
  height: 100%;
  border-radius: 2px;
  transition: width 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.coverage-val {
  font-size: 0.6875rem;
  font-weight: 600;
  text-align: center;
}

.coverage-mentions {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-secondary);
  text-align: center;
}

/* ==========================================================================
   SENTIMENT LANDSCAPE - Premium Bubble Chart 2030
   ========================================================================== */

/* KPI Stats Row inside Landscape card */
.landscape-kpis {
  display: flex;
  gap: var(--space-4);
  padding: var(--space-2) 0 var(--space-3);
  margin-bottom: var(--space-2);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.landscape-kpi {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: var(--space-2) var(--space-3);
  background: rgba(255, 255, 255, 0.02);
  border-radius: var(--radius-md);
  transition: all var(--duration-fast) var(--ease-out);
  position: relative;
  overflow: hidden;
}

.landscape-kpi::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 2px;
  height: 100%;
  background: linear-gradient(180deg,
    transparent 0%,
    rgba(124, 138, 255, 0.8) 50%,
    transparent 100%);
  box-shadow: 0 0 15px rgba(124, 138, 255, 0.6);
  transition: none;
}

.landscape-kpi:hover::after {
  animation: scan-line 0.6s ease-out forwards;
}

.landscape-kpi:hover {
  background: rgba(124, 138, 255, 0.08);
}

.landscape-kpi-value {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1;
  text-shadow: 0 0 20px rgba(124, 138, 255, 0.3);
}

.landscape-kpi-label {
  font-size: 0.625rem;
  font-weight: 500;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.sentiment-landscape {
  position: relative;
  height: 480px;
  padding: 40px 60px;
  background:
    linear-gradient(180deg, rgba(34, 197, 94, 0.08) 0%, transparent 30%),
    linear-gradient(0deg, rgba(239, 68, 68, 0.08) 0%, transparent 30%),
    linear-gradient(90deg, rgba(99, 102, 241, 0.03) 0%, rgba(168, 85, 247, 0.03) 100%),
    radial-gradient(ellipse at center, rgba(255, 255, 255, 0.02) 0%, transparent 70%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-xl, 16px);
  overflow: hidden;
}

/* Quadrant labels - poziționare în zona de bule */
.landscape-quadrant {
  position: absolute;
  font-size: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: rgba(255, 255, 255, 0.9);
  text-shadow: 0 1px 4px rgba(0, 0, 0, 1), 0 0 8px rgba(0, 0, 0, 0.7);
  pointer-events: none;
  white-space: nowrap;
}

.landscape-quadrant--top-left { top: 8px; left: 62px; }
.landscape-quadrant--top-right { top: 8px; right: 62px; }
.landscape-quadrant--bottom-left { bottom: 44px; left: 62px; }
.landscape-quadrant--bottom-right { bottom: 44px; right: 62px; }

.landscape-axis {
  position: absolute;
  font-size: 0.5625rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: rgba(255, 255, 255, 0.4);
  pointer-events: none;
}

.landscape-axis--top {
  top: 12px;
  left: 50%;
  transform: translateX(-50%);
  color: #4ade80;
  text-shadow: 0 0 10px rgba(34, 197, 94, 0.6), 0 1px 3px rgba(0, 0, 0, 0.8);
}

.landscape-axis--bottom {
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  color: #f87171;
  text-shadow: 0 0 10px rgba(239, 68, 68, 0.6), 0 1px 3px rgba(0, 0, 0, 0.8);
}

.landscape-axis--left {
  left: 12px;
  top: 50%;
  transform: translateY(-50%) rotate(-90deg);
  white-space: nowrap;
  color: var(--text-secondary);
}

.landscape-axis--right {
  right: 12px;
  top: 50%;
  transform: translateY(-50%) rotate(90deg);
  color: var(--text-secondary);
  white-space: nowrap;
}

/* Futuristic 3D Metropolis Background */
.landscape-skyline {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

/* Perspective grid floor - ground plane */
.landscape-skyline::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: -100%;
  width: 300%;
  height: 150%;
  background:
    repeating-linear-gradient(
      90deg,
      transparent 0,
      transparent 35px,
      rgba(99, 102, 241, 0.18) 35px,
      rgba(99, 102, 241, 0.18) 37px
    ),
    repeating-linear-gradient(
      0deg,
      transparent 0,
      transparent 35px,
      rgba(99, 102, 241, 0.18) 35px,
      rgba(99, 102, 241, 0.18) 37px
    );
  transform: perspective(300px) rotateX(80deg);
  transform-origin: center bottom;
  mask-image: linear-gradient(to top, black 0%, black 15%, transparent 70%);
  -webkit-mask-image: linear-gradient(to top, black 0%, black 15%, transparent 70%);
  z-index: -1;
}

/* Scan line container - same transform as grid */
.landscape-scanline {
  position: absolute;
  bottom: 0;
  left: -100%;
  width: 300%;
  height: 150%;
  transform: perspective(300px) rotateX(80deg);
  transform-origin: center bottom;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

/* The actual moving line */
.landscape-scanline::before {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg,
    transparent 0%,
    rgba(99, 102, 241, 0.3) 20%,
    rgba(168, 85, 247, 0.6) 50%,
    rgba(99, 102, 241, 0.3) 80%,
    transparent 100%
  );
  box-shadow:
    0 0 15px rgba(168, 85, 247, 0.5),
    0 0 30px rgba(99, 102, 241, 0.3);
  animation: scanline-move 3s ease-in-out infinite;
}

@keyframes scanline-move {
  0% {
    bottom: 0%;
    opacity: 0.9;
  }
  100% {
    bottom: 100%;
    opacity: 0;
  }
}

/* Cityscape SVG overlay */
.landscape-skyline::after {
  content: '';
  position: absolute;
  inset: 0;
  background: url('../assets/cityscape.svg') no-repeat right bottom;
  background-size: 50% auto;
  opacity: 0.18;
  filter: hue-rotate(-10deg) saturate(1.2);
  z-index: 0;
}

/* 3D Building towers container */
.landscape-metropolis {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

/* Individual 3D buildings - CSS custom properties for positioning */
.landscape-tower {
  position: absolute;
  transform-style: preserve-3d;
  transform: translateZ(0);
}

/* Tower face - front */
.landscape-tower::before {
  content: '';
  position: absolute;
  bottom: 0;
  background: linear-gradient(to top,
    rgba(99, 102, 241, 0.15) 0%,
    rgba(99, 102, 241, 0.05) 50%,
    rgba(168, 85, 247, 0.1) 100%);
  border: 1px solid rgba(99, 102, 241, 0.2);
  border-bottom: none;
  box-shadow:
    inset 0 0 20px rgba(99, 102, 241, 0.1),
    0 0 15px rgba(99, 102, 241, 0.1);
}

/* Success glow in top-right corner */
.landscape-beacon {
  position: absolute;
  top: 8%;
  right: 8%;
  width: 80px;
  height: 80px;
  background: radial-gradient(circle at center,
    rgba(34, 197, 94, 0.4) 0%,
    rgba(34, 197, 94, 0.15) 30%,
    rgba(99, 102, 241, 0.05) 60%,
    transparent 100%);
  border-radius: 50%;
  filter: blur(20px);
  animation: beacon-pulse 3s ease-in-out infinite;
}

@keyframes beacon-pulse {
  0%, 100% { opacity: 0.6; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.15); }
}

/* Floating particles/data points */
.landscape-particles {
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(1.5px 1.5px at 75% 15%, rgba(34, 197, 94, 0.7) 0%, transparent 100%),
    radial-gradient(1px 1px at 85% 25%, rgba(34, 197, 94, 0.5) 0%, transparent 100%),
    radial-gradient(1.5px 1.5px at 90% 12%, rgba(168, 85, 247, 0.6) 0%, transparent 100%),
    radial-gradient(1px 1px at 70% 8%, rgba(99, 102, 241, 0.5) 0%, transparent 100%),
    radial-gradient(1px 1px at 80% 20%, rgba(255, 255, 255, 0.4) 0%, transparent 100%),
    radial-gradient(1.5px 1.5px at 65% 18%, rgba(99, 102, 241, 0.4) 0%, transparent 100%),
    radial-gradient(1px 1px at 92% 8%, rgba(34, 197, 94, 0.6) 0%, transparent 100%);
  animation: float-particles 8s ease-in-out infinite;
}

@keyframes float-particles {
  0%, 100% { opacity: 0.7; transform: translateY(0); }
  50% { opacity: 1; transform: translateY(-5px); }
}

/* Vertical light beams from top-right */
.landscape-beams {
  position: absolute;
  top: 0;
  right: 10%;
  width: 40%;
  height: 60%;
  background:
    linear-gradient(180deg, rgba(34, 197, 94, 0.15) 0%, transparent 100%),
    linear-gradient(175deg, rgba(168, 85, 247, 0.08) 0%, transparent 80%),
    linear-gradient(185deg, rgba(99, 102, 241, 0.06) 0%, transparent 70%);
  mask-image: linear-gradient(180deg, black 0%, transparent 100%);
  -webkit-mask-image: linear-gradient(180deg, black 0%, transparent 100%);
  opacity: 0.5;
}

/* 3D Isometric Metropolis */
.landscape-metropolis {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 70%;
  height: 65%;
  pointer-events: none;
  z-index: 0;
  transform: perspective(500px) rotateX(5deg);
  transform-origin: bottom right;
  opacity: 0.35;
}

/* Back layer - distant buildings */
.landscape-metropolis::before {
  content: '';
  position: absolute;
  bottom: 20%;
  right: 5%;
  width: 90%;
  height: 100%;
  background:
    /* Distant tall spire */
    linear-gradient(to top, rgba(99, 102, 241, 0.3) 0%, rgba(99, 102, 241, 0.1) 60%, transparent 60%) no-repeat calc(100% - 20px) bottom / 3px 85%,
    linear-gradient(to top, rgba(99, 102, 241, 0.25) 0%, transparent 100%) no-repeat calc(100% - 15px) bottom / 12px 70%,
    /* Distant towers */
    linear-gradient(to top, rgba(168, 85, 247, 0.2) 0%, rgba(168, 85, 247, 0.05) 80%, transparent 80%) no-repeat calc(100% - 50px) bottom / 18px 55%,
    linear-gradient(to top, rgba(99, 102, 241, 0.15) 0%, transparent 100%) no-repeat calc(100% - 80px) bottom / 14px 45%,
    linear-gradient(to top, rgba(168, 85, 247, 0.18) 0%, transparent 100%) no-repeat calc(100% - 110px) bottom / 20px 50%,
    linear-gradient(to top, rgba(99, 102, 241, 0.12) 0%, transparent 100%) no-repeat calc(100% - 145px) bottom / 16px 38%;
  filter: blur(1px);
}

/* Front layer - closer buildings with 3D faces */
.landscape-metropolis::after {
  content: '';
  position: absolute;
  bottom: 0;
  right: 0;
  width: 95%;
  height: 100%;
  background:
    /* Main tower - tallest, right side with antenna */
    linear-gradient(135deg, rgba(99, 102, 241, 0.5) 0%, rgba(99, 102, 241, 0.2) 100%) no-repeat calc(100% - 8px) bottom / 28px 90%,
    linear-gradient(to top, rgba(34, 197, 94, 0.8) 0%, rgba(34, 197, 94, 0.3) 100%) no-repeat calc(100% - 18px) calc(100% - 90%) / 4px 15%,
    /* Tower 2 */
    linear-gradient(135deg, rgba(168, 85, 247, 0.45) 0%, rgba(168, 85, 247, 0.15) 100%) no-repeat calc(100% - 45px) bottom / 24px 75%,
    linear-gradient(90deg, rgba(255, 255, 255, 0.1) 0%, transparent 100%) no-repeat calc(100% - 45px) bottom / 6px 75%,
    /* Tower 3 */
    linear-gradient(135deg, rgba(99, 102, 241, 0.4) 0%, rgba(99, 102, 241, 0.1) 100%) no-repeat calc(100% - 78px) bottom / 22px 65%,
    /* Tower 4 - with side face */
    linear-gradient(135deg, rgba(168, 85, 247, 0.35) 0%, rgba(168, 85, 247, 0.1) 100%) no-repeat calc(100% - 108px) bottom / 26px 55%,
    linear-gradient(90deg, rgba(255, 255, 255, 0.08) 0%, transparent 100%) no-repeat calc(100% - 108px) bottom / 8px 55%,
    /* Tower 5 */
    linear-gradient(135deg, rgba(99, 102, 241, 0.3) 0%, rgba(99, 102, 241, 0.08) 100%) no-repeat calc(100% - 142px) bottom / 20px 70%,
    linear-gradient(to top, rgba(34, 197, 94, 0.5) 0%, transparent 100%) no-repeat calc(100% - 148px) calc(100% - 70%) / 3px 8%,
    /* Tower 6 */
    linear-gradient(135deg, rgba(168, 85, 247, 0.25) 0%, rgba(168, 85, 247, 0.05) 100%) no-repeat calc(100% - 172px) bottom / 18px 48%,
    /* Tower 7 */
    linear-gradient(135deg, rgba(99, 102, 241, 0.28) 0%, rgba(99, 102, 241, 0.06) 100%) no-repeat calc(100% - 198px) bottom / 22px 58%,
    /* Smaller buildings left */
    linear-gradient(135deg, rgba(168, 85, 247, 0.2) 0%, transparent 100%) no-repeat calc(100% - 228px) bottom / 16px 35%,
    linear-gradient(135deg, rgba(99, 102, 241, 0.18) 0%, transparent 100%) no-repeat calc(100% - 252px) bottom / 20px 42%,
    linear-gradient(135deg, rgba(168, 85, 247, 0.15) 0%, transparent 100%) no-repeat calc(100% - 280px) bottom / 14px 28%,
    linear-gradient(135deg, rgba(99, 102, 241, 0.12) 0%, transparent 100%) no-repeat calc(100% - 302px) bottom / 18px 32%;
}

/* Futuristic City Hall - right side */
.landscape-cityhall {
  position: absolute;
  right: 20px;
  top: 15%;
  bottom: 25%;
  width: 45px;
  pointer-events: none;
  z-index: 1;
}

/* Main building structure */
.landscape-cityhall::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    /* Central spire/antenna */
    linear-gradient(to top, rgba(34, 197, 94, 0.9) 0%, rgba(34, 197, 94, 0.3) 100%) no-repeat center top / 2px 20%,
    /* Dome top */
    radial-gradient(ellipse 100% 30% at 50% 22%, rgba(99, 102, 241, 0.4) 0%, transparent 70%),
    /* Main tower body */
    linear-gradient(90deg,
      rgba(99, 102, 241, 0.15) 0%,
      rgba(99, 102, 241, 0.35) 20%,
      rgba(168, 85, 247, 0.4) 50%,
      rgba(99, 102, 241, 0.35) 80%,
      rgba(99, 102, 241, 0.15) 100%
    ) no-repeat center 20% / 100% 80%;
  border-radius: 8px 8px 0 0;
}

/* Building details - windows and accents */
.landscape-cityhall::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    /* Top beacon glow */
    radial-gradient(circle at 50% 8%, rgba(34, 197, 94, 0.6) 0%, transparent 25%),
    /* Horizontal accent lines */
    linear-gradient(to bottom,
      transparent 20%,
      rgba(99, 102, 241, 0.5) 21%,
      transparent 22%,
      transparent 40%,
      rgba(168, 85, 247, 0.4) 41%,
      transparent 42%,
      transparent 60%,
      rgba(99, 102, 241, 0.4) 61%,
      transparent 62%,
      transparent 80%,
      rgba(168, 85, 247, 0.3) 81%,
      transparent 82%
    ),
    /* Window grid */
    repeating-linear-gradient(
      to bottom,
      transparent 0px,
      transparent 8px,
      rgba(255, 255, 255, 0.1) 8px,
      rgba(255, 255, 255, 0.1) 10px
    ),
    /* Vertical edge highlights */
    linear-gradient(90deg,
      rgba(255, 255, 255, 0.15) 0%,
      transparent 15%,
      transparent 85%,
      rgba(255, 255, 255, 0.1) 100%
    );
  border-radius: 8px 8px 0 0;
  animation: cityhall-pulse 4s ease-in-out infinite;
}

@keyframes cityhall-pulse {
  0%, 100% { opacity: 0.8; }
  50% { opacity: 1; }
}

/* Neon glow layer */
.landscape-city-glow {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 60%;
  height: 50%;
  pointer-events: none;
  background:
    radial-gradient(ellipse 30% 40% at 85% 90%, rgba(34, 197, 94, 0.15) 0%, transparent 70%),
    radial-gradient(ellipse 40% 50% at 75% 85%, rgba(99, 102, 241, 0.12) 0%, transparent 60%),
    radial-gradient(ellipse 35% 45% at 90% 95%, rgba(168, 85, 247, 0.1) 0%, transparent 65%);
  filter: blur(15px);
  z-index: 0;
}

/* Floating holographic elements */
.landscape-holograms {
  position: absolute;
  top: 15%;
  right: 8%;
  width: 25%;
  height: 35%;
  pointer-events: none;
  z-index: 1;
}

.landscape-holograms::before {
  content: '';
  position: absolute;
  width: 40px;
  height: 40px;
  right: 20%;
  top: 30%;
  border: 1px solid rgba(34, 197, 94, 0.3);
  border-radius: 4px;
  transform: rotate(45deg);
  animation: holo-float 6s ease-in-out infinite;
  box-shadow: 0 0 15px rgba(34, 197, 94, 0.2);
}

.landscape-holograms::after {
  content: '';
  position: absolute;
  width: 25px;
  height: 25px;
  right: 45%;
  top: 50%;
  border: 1px solid rgba(99, 102, 241, 0.25);
  border-radius: 50%;
  animation: holo-float 8s ease-in-out infinite reverse;
  box-shadow: 0 0 12px rgba(99, 102, 241, 0.15);
}

@keyframes holo-float {
  0%, 100% { transform: rotate(45deg) translateY(0) scale(1); opacity: 0.6; }
  50% { transform: rotate(45deg) translateY(-8px) scale(1.05); opacity: 0.9; }
}

/* Premium Bubbles */
.landscape-bubble {
  position: absolute;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  text-decoration: none;
  color: inherit;
  /* 3D Glass sphere effect */
  background:
    /* Top highlight - light reflection */
    radial-gradient(ellipse 80% 50% at 50% 10%, rgba(255, 255, 255, 0.35) 0%, transparent 60%),
    /* Inner glow from entity color */
    radial-gradient(circle at 50% 60%, var(--entity-color, rgba(99, 102, 241, 0.3)) 0%, transparent 70%),
    /* Base glass gradient */
    linear-gradient(180deg,
      rgba(255, 255, 255, 0.15) 0%,
      rgba(255, 255, 255, 0.05) 40%,
      rgba(0, 0, 0, 0.1) 100%);
  backdrop-filter: blur(12px) saturate(150%);
  -webkit-backdrop-filter: blur(12px) saturate(150%);
  border: 2px solid;
  border-color: var(--entity-color, rgba(99, 102, 241, 0.5));
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  z-index: 1;
  transform: translate(-50%, -50%);
  box-shadow:
    /* Outer glow */
    0 0 20px var(--entity-color, rgba(99, 102, 241, 0.25)),
    /* Drop shadow for depth */
    0 10px 40px rgba(0, 0, 0, 0.4),
    /* Inner bottom shadow for 3D depth */
    inset 0 -8px 20px rgba(0, 0, 0, 0.3),
    /* Inner top highlight */
    inset 0 2px 10px rgba(255, 255, 255, 0.2);
  /* Subtle floating animation */
  animation: bubble-float var(--float-duration, 4s) ease-in-out infinite;
  animation-delay: var(--float-delay, 0s);
}

@keyframes bubble-float {
  0%, 100% {
    transform: translate(-50%, -50%) translateY(0);
  }
  50% {
    transform: translate(-50%, -50%) translateY(-6px);
  }
}

/* Holographic ring effect */
.landscape-bubble::before {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 1px solid var(--entity-color, rgba(99, 102, 241, 0.3));
  opacity: 0.5;
  animation: bubble-ring-pulse 3s ease-in-out infinite;
}

@keyframes bubble-ring-pulse {
  0%, 100% { transform: scale(1); opacity: 0.5; }
  50% { transform: scale(1.08); opacity: 0.2; }
}

.landscape-bubble:hover {
  transform: translate(-50%, -50%) scale(1.15);
  z-index: 100;
  animation-play-state: paused;
  box-shadow:
    0 0 40px var(--entity-color, rgba(99, 102, 241, 0.5)),
    0 15px 50px rgba(0, 0, 0, 0.5),
    inset 0 -8px 25px rgba(0, 0, 0, 0.35),
    inset 0 3px 15px rgba(255, 255, 255, 0.25);
}

.landscape-bubble:hover::before {
  animation: none;
  transform: scale(1.15);
  opacity: 0.8;
}

.landscape-bubble-initials {
  font-size: 0.875rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.9);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.9);
  margin-bottom: 3px;
}

.landscape-bubble-value {
  font-size: 1.125rem;
  font-weight: 800;
  color: #fff;
  text-shadow:
    0 2px 4px rgba(0, 0, 0, 0.9),
    0 0 12px rgba(0, 0, 0, 0.7),
    0 0 20px var(--entity-color, rgba(99, 102, 241, 0.5));
  letter-spacing: -0.02em;
}

/* External label for entity name */
.landscape-bubble-label {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 0.625rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.9);
  white-space: nowrap;
  padding: 3px 8px;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  border-radius: 4px;
  border: 1px solid var(--entity-color, rgba(99, 102, 241, 0.3));
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.8);
  opacity: 0;
  transition: opacity 0.2s ease;
  pointer-events: none;
}

.landscape-bubble:hover .landscape-bubble-label {
  opacity: 1;
}

.landscape-bubble-label--left {
  right: calc(100% + 8px);
}

.landscape-bubble-label--right {
  left: calc(100% + 8px);
}

/* Bubble glow by favorability */
.landscape-bubble--positive {
  --bubble-glow: rgba(34, 197, 94, 0.5);
}

.landscape-bubble--negative {
  --bubble-glow: rgba(239, 68, 68, 0.5);
}

.landscape-bubble--neutral {
  --bubble-glow: rgba(148, 163, 184, 0.4);
}

/* Legend - sub vizualizare, în card */
.landscape-legend {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: var(--space-3);
  margin-top: var(--space-3);
  padding-top: var(--space-3);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 0.6875rem;
  color: var(--text-muted);
}

.landscape-legend-item {
  display: flex;
  align-items: center;
  gap: var(--space-1);
}

.landscape-legend-icon {
  width: 14px;
  height: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.landscape-legend-icon--size::before {
  content: '';
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(124, 138, 255, 0.6) 0%, rgba(124, 138, 255, 0.2) 100%);
  border: 1px solid rgba(124, 138, 255, 0.4);
}

.landscape-legend-icon--x::before {
  content: '↔';
  font-size: 12px;
  color: var(--text-secondary);
}

.landscape-legend-icon--y::before {
  content: '↕';
  font-size: 12px;
  color: var(--text-secondary);
}

.landscape-legend-icon--color::before {
  content: '';
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: conic-gradient(#22c55e 0deg, #3b82f6 90deg, #a855f7 180deg, #ef4444 270deg, #22c55e 360deg);
}

.landscape-legend-text {
  white-space: nowrap;
}

/* Insight box - centrat sus, în padding */
.landscape-insight {
  position: absolute;
  top: 6px;
  left: 50%;
  transform: translateX(-50%);
  max-width: 280px;
  padding: var(--space-2) var(--space-3);
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(12px);
  border-radius: var(--radius);
  border: 1px solid rgba(255, 255, 255, 0.15);
  font-size: 0.6875rem;
  color: var(--text-primary);
  line-height: 1.4;
  z-index: 200;
  text-align: center;
}

.landscape-insight strong {
  color: var(--accent);
  font-weight: 600;
}

/* ==========================================================================
   ENTITY VIEW - Enhanced Components
   ========================================================================== */

/* View Header Top - back link + period selector */
.view-header-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--space-4);
}

/* Entity Header Card - ca publication-header */
.entity-header-card {
  display: flex;
  align-items: center;
  gap: var(--space-5);
  background: var(--bg-glass);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-lg);
  padding: var(--space-5);
}

.entity-header-card--loading {
  min-height: 100px;
}

.entity-header-info {
  flex: 1;
  min-width: 0;
}

.entity-header-meta {
  display: flex;
  gap: var(--space-2);
  margin-top: var(--space-2);
}

.entity-header-stats {
  display: flex;
  gap: var(--space-6);
}

.entity-stat {
  text-align: center;
}

.entity-stat-value {
  display: block;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.2;
}

.entity-stat-label {
  display: block;
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Skeleton avatar */
.avatar--skeleton {
  background: linear-gradient(90deg, var(--bg-tertiary) 25%, var(--bg-secondary) 50%, var(--bg-tertiary) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: 50%;
  width: var(--size);
  height: var(--size);
}

/* Skeleton stat */
.skeleton--stat {
  width: 60px;
  height: 40px;
  border-radius: var(--radius-sm);
}

/* Coverage Matrix Entity Variant */
.coverage-matrix--compact {
  max-height: 400px;
  overflow-y: auto;
  overflow-x: hidden;
  scrollbar-gutter: stable;
}

.coverage-header--pub {
  display: grid;
  grid-template-columns: 1fr auto;
  padding: var(--space-2) var(--space-3);
  padding-right: var(--space-4);
  border-bottom: 1px solid var(--border-subtle);
  font-size: 0.6875rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.03em;
  position: sticky;
  top: 0;
  background: var(--bg-glass);
  backdrop-filter: blur(12px);
  z-index: 10;
  margin-right: -4px;
}

.coverage-labels--pub {
  display: flex;
  gap: var(--space-3);
  text-align: right;
}

.coverage-labels--pub span {
  min-width: 70px;
  text-align: right;
}

.coverage-metrics--pub {
  display: flex;
  gap: var(--space-3);
  align-items: center;
  flex-shrink: 0;
}

.coverage-metrics--pub .coverage-metric {
  min-width: 70px;
  text-align: right;
  flex-shrink: 0;
}

/* Sentiment Donut Chart */
.sentiment-gauge-container {
  display: flex;
  align-items: center;
  gap: var(--space-5);
  padding: var(--space-3) 0;
}

.sentiment-donut {
  position: relative;
  width: 120px;
  height: 120px;
  flex-shrink: 0;
}

.sentiment-donut-svg {
  width: 100%;
  height: 100%;
  transform: rotate(0deg);
}

.sentiment-donut-svg circle {
  transition: stroke-dasharray 0.6s var(--ease-out), stroke-dashoffset 0.6s var(--ease-out);
}

.sentiment-donut-center {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.sentiment-net {
  font-size: 1.25rem;
  font-weight: 700;
}

.sentiment-legend {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.sentiment-legend-item {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.sentiment-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}

.sentiment-dot--positive { background: var(--positive); }
.sentiment-dot--neutral { background: var(--text-muted); }
.sentiment-dot--negative { background: var(--negative); }

.sentiment-legend-label {
  font-size: 0.8125rem;
  color: var(--text-secondary);
  min-width: 60px;
}

.sentiment-legend-value {
  font-size: 0.875rem;
  font-weight: 600;
}

/* Trust Evolution Chart */
.trust-evolution-card {
  display: flex;
  flex-direction: column;
}

.trust-evolution-card .card-header {
  flex-shrink: 0;
}

.trust-evolution-meta {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.trust-current {
  font-size: 1.25rem;
  font-weight: 700;
}

.trust-delta {
  font-size: 0.875rem;
  font-weight: 500;
}

.trend-up { color: var(--positive); }
.trend-down { color: var(--negative); }
.trend-stable { color: var(--text-muted); }

.trust-evolution-chart {
  flex: 1;
  display: flex;
  align-items: stretch;
  padding: var(--space-3) 0;
  min-height: 200px;
}

.trust-evolution-chart .sparkline {
  width: 100%;
  height: 100%;
}

.trust-evolution-labels {
  position: relative;
  height: 28px;
  margin-top: var(--space-2);
}

.trust-evolution-labels .trust-label {
  position: absolute;
  transform: translateX(-50%);
  font-size: 0.75rem;
  color: var(--text-muted);
}

.trust-evolution-labels .trust-label:first-child {
  transform: translateX(0);
}

.trust-evolution-labels .trust-label:last-child {
  transform: translateX(-100%);
}

.trust-mentions-chart {
  width: 100%;
  height: 100%;
}

.trust-mentions-chart .mention-value {
  font-size: 10px;
  font-weight: 600;
  fill: var(--accent);
  opacity: 0;
  animation: fadeInValue 0.5s ease-out forwards;
}

@keyframes fadeInValue {
  to {
    opacity: 0.7;
  }
}

/* Delay pentru fiecare valoare text */
.trust-mentions-chart text:nth-of-type(1) { animation-delay: 0.3s; }
.trust-mentions-chart text:nth-of-type(2) { animation-delay: 0.4s; }
.trust-mentions-chart text:nth-of-type(3) { animation-delay: 0.5s; }
.trust-mentions-chart text:nth-of-type(4) { animation-delay: 0.6s; }
.trust-mentions-chart text:nth-of-type(5) { animation-delay: 0.7s; }
.trust-mentions-chart text:nth-of-type(6) { animation-delay: 0.8s; }
.trust-mentions-chart text:nth-of-type(7) { animation-delay: 0.9s; }
.trust-mentions-chart text:nth-of-type(8) { animation-delay: 1s; }
.trust-mentions-chart text:nth-of-type(9) { animation-delay: 1.1s; }
.trust-mentions-chart text:nth-of-type(10) { animation-delay: 1.2s; }
.trust-mentions-chart text:nth-of-type(n+11) { animation-delay: 1.3s; }

/* Animație linie trust - se desenează mai lent */
.trust-mentions-chart .trust-line {
  stroke-dasharray: 2000;
  stroke-dashoffset: 2000;
  animation: drawTrustLine 5s ease-out forwards;
  animation-delay: 0.5s;
}

@keyframes drawTrustLine {
  to {
    stroke-dashoffset: 0;
  }
}

/* Animație area fill - fade in */
.trust-mentions-chart .trust-area {
  opacity: 0;
  animation: fadeInArea 2s ease-out forwards;
  animation-delay: 4s;
}

@keyframes fadeInArea {
  to {
    opacity: 1;
  }
}

/* Animație bare mențiuni - cresc sincronizat cu linia */
.trust-mentions-chart rect {
  transform-origin: bottom center;
  transform: scaleY(0);
  animation: growBar 2s ease-out forwards;
}

.trust-mentions-chart rect:nth-child(1) { animation-delay: 0.1s; }
.trust-mentions-chart rect:nth-child(2) { animation-delay: 0.2s; }
.trust-mentions-chart rect:nth-child(3) { animation-delay: 0.3s; }
.trust-mentions-chart rect:nth-child(4) { animation-delay: 0.4s; }
.trust-mentions-chart rect:nth-child(5) { animation-delay: 0.5s; }
.trust-mentions-chart rect:nth-child(6) { animation-delay: 0.6s; }
.trust-mentions-chart rect:nth-child(7) { animation-delay: 0.7s; }
.trust-mentions-chart rect:nth-child(8) { animation-delay: 0.8s; }
.trust-mentions-chart rect:nth-child(9) { animation-delay: 0.9s; }
.trust-mentions-chart rect:nth-child(10) { animation-delay: 1s; }
.trust-mentions-chart rect:nth-child(11) { animation-delay: 1.1s; }
.trust-mentions-chart rect:nth-child(12) { animation-delay: 1.2s; }
.trust-mentions-chart rect:nth-child(13) { animation-delay: 1.3s; }
.trust-mentions-chart rect:nth-child(14) { animation-delay: 1.4s; }
.trust-mentions-chart rect:nth-child(15) { animation-delay: 1.5s; }
.trust-mentions-chart rect:nth-child(n+16) { animation-delay: 1.6s; }

@keyframes growBar {
  0% {
    transform: scaleY(0);
    opacity: 0;
  }
  50% {
    opacity: 1;
  }
  100% {
    transform: scaleY(1);
    opacity: 1;
  }
}

.trust-evolution-legend {
  display: flex;
  justify-content: center;
  gap: var(--space-5);
  padding-top: var(--space-3);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  margin-top: var(--space-2);
}

.legend-item {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: 0.75rem;
  color: var(--text-muted);
}

.legend-line {
  width: 16px;
  height: 3px;
  background: var(--positive);
  border-radius: 2px;
}

.legend-bar {
  width: 10px;
  height: 14px;
  background: var(--accent);
  opacity: 0.4;
  border-radius: 2px;
}

/* Entity Feed */
.entity-feed {
  display: flex;
  flex-direction: column;
  max-height: 500px;
  overflow-y: auto;
  overflow-x: hidden;
}

/* Feed Score styling */
.feed-score {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  min-width: 40px;
}

.feed-score-icon {
  font-size: 0.75rem;
}

.feed-score-value {
  font-size: 0.8125rem;
  font-weight: 600;
}

/* Responsive adjustments */
@media (max-width: 767px) {
  .entity-header-card {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-4);
  }

  .entity-header-stats {
    width: 100%;
    justify-content: space-between;
    gap: var(--space-4);
  }

  .entity-stat-value {
    font-size: 1.25rem;
  }

  .sentiment-gauge-container {
    flex-direction: column;
    align-items: flex-start;
  }

  .sentiment-donut {
    width: 100px;
    height: 100px;
  }

  .sentiment-legend {
    flex-direction: row;
    flex-wrap: wrap;
    gap: var(--space-3);
  }

  .trust-evolution-chart .sparkline {
    height: 60px;
  }

  .entity-feed {
    max-height: 400px;
  }

  .coverage-header--entity {
    display: none;
  }

  .coverage-metrics--entity {
    grid-template-columns: 80px auto;
  }
}

/* ==========================================================================
   EMOTION SPECTRUM
   ========================================================================== */

.emotion-spectrum {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  padding: var(--space-3) 0;
}

.spectrum-row {
  display: grid;
  grid-template-columns: 120px 1fr 50px;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-2) 0;
  animation: spectrumFadeIn 0.4s ease-out forwards;
  animation-delay: var(--delay, 0ms);
  opacity: 0;
}

@keyframes spectrumFadeIn {
  from {
    opacity: 0;
    transform: translateX(-10px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.spectrum-row--special {
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding-bottom: var(--space-3);
  margin-bottom: var(--space-2);
}

.spectrum-label {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.spectrum-icon {
  font-size: 0.875rem;
  width: 18px;
  text-align: center;
  flex-shrink: 0;
}

.spectrum-name {
  font-size: 0.8125rem;
  color: var(--text-secondary);
  white-space: nowrap;
}

.spectrum-bar-container {
  position: relative;
  height: 24px;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 12px;
  overflow: hidden;
}

.spectrum-bar {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: var(--width, 0%);
  animation: spectrumBarGrow 2.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  animation-delay: var(--delay, 0ms);
  transform-origin: left center;
}

@keyframes spectrumBarGrow {
  0% {
    width: 0%;
    opacity: 0;
  }
  20% {
    opacity: 1;
  }
  100% {
    width: var(--width, 0%);
    opacity: 1;
  }
}

.spectrum-bar-fill {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg,
    color-mix(in srgb, var(--color) 60%, transparent),
    var(--color),
    color-mix(in srgb, var(--color) 90%, white)
  );
  border-radius: 12px;
  box-shadow: 0 0 20px color-mix(in srgb, var(--color) 40%, transparent);
}

.spectrum-bar-glow {
  position: absolute;
  inset: -2px;
  background: radial-gradient(
    ellipse at right center,
    color-mix(in srgb, var(--color) 50%, transparent) 0%,
    transparent 70%
  );
  border-radius: 14px;
  filter: blur(8px);
  animation: spectrumGlowPulse 2s ease-in-out infinite;
  animation-delay: var(--delay, 0ms);
}

@keyframes spectrumGlowPulse {
  0%, 100% {
    opacity: 0.5;
  }
  50% {
    opacity: 1;
  }
}

.spectrum-value {
  font-size: 0.875rem;
  font-weight: 700;
  font-family: var(--font-mono);
  text-align: right;
}

/* Score Header */
.spectrum-score {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.03);
}

.spectrum-score.spectrum-positive {
  background: var(--positive-muted);
}

.spectrum-score.spectrum-negative {
  background: var(--negative-muted);
}

.spectrum-score.spectrum-neutral {
  background: rgba(100, 116, 139, 0.15);
}

.spectrum-score-value {
  font-size: 1.25rem;
  font-weight: 700;
  font-family: var(--font-mono);
  animation: scorePopIn 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
  animation-delay: 0.5s;
  opacity: 0;
  transform: scale(0.5);
}

@keyframes scorePopIn {
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.spectrum-positive .spectrum-score-value {
  color: var(--positive);
}

.spectrum-negative .spectrum-score-value {
  color: var(--negative);
}

.spectrum-neutral .spectrum-score-value {
  color: var(--text-muted);
}

.spectrum-score-label {
  font-size: 0.6875rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
}

/* Footer */
.spectrum-footer {
  padding-top: var(--space-3);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.spectrum-legend {
  display: flex;
  justify-content: center;
  gap: var(--space-5);
}

.spectrum-leg {
  font-size: 0.75rem;
  display: flex;
  align-items: center;
  gap: var(--space-2);
  color: var(--text-muted);
}

.spectrum-leg::before {
  content: '';
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

.spectrum-leg--positive::before {
  background: linear-gradient(135deg, #22c55e, #10b981);
}

.spectrum-leg--negative::before {
  background: linear-gradient(135deg, #f59e0b, #ef4444);
}

/* Mobile */
@media (max-width: 639px) {
  .spectrum-row {
    grid-template-columns: 100px 1fr 40px;
    gap: var(--space-2);
  }

  .spectrum-name {
    font-size: 0.75rem;
  }

  .spectrum-value {
    font-size: 0.75rem;
  }

  .spectrum-bar-container {
    height: 20px;
  }
}

/* ==========================================================================
   AI ANALYSIS CARD
   ========================================================================== */

.ai-analysis-card {
  position: relative;
  overflow: hidden;
}

.ai-analysis-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(139, 92, 246, 0.8), transparent);
  animation: ai-scan 3s ease-in-out infinite;
}

@keyframes ai-scan {
  0%, 100% { left: -100%; }
  50% { left: 100%; }
}

.ai-analysis-card .card-header {
  border-bottom: 1px solid rgba(139, 92, 246, 0.2);
  padding-bottom: var(--space-3);
  margin-bottom: var(--space-4);
}

.ai-analysis-card .card-title {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.ai-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  position: relative;
}

.ai-icon::before {
  content: '';
  width: 8px;
  height: 8px;
  background: linear-gradient(135deg, var(--accent), rgba(139, 92, 246, 0.8));
  border-radius: 50%;
  animation: ai-pulse 2s ease-in-out infinite;
}

.ai-icon::after {
  content: '';
  position: absolute;
  width: 16px;
  height: 16px;
  border: 1px solid rgba(139, 92, 246, 0.4);
  border-radius: 50%;
  animation: ai-ring 2s ease-in-out infinite;
}

@keyframes ai-pulse {
  0%, 100% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.2);
    opacity: 0.8;
  }
}

@keyframes ai-ring {
  0%, 100% {
    transform: scale(1);
    opacity: 0.6;
  }
  50% {
    transform: scale(1.3);
    opacity: 0.2;
  }
}

.ai-analysis-content {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.ai-analysis-section {
  padding: var(--space-3);
  background: rgba(139, 92, 246, 0.05);
  border-radius: var(--radius-md);
  border-left: 3px solid rgba(139, 92, 246, 0.5);
}

.ai-analysis-heading {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: var(--space-2);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.ai-analysis-text {
  font-size: 0.9375rem;
  line-height: 1.6;
  color: var(--text-secondary);
}

.ai-analysis-text strong {
  color: var(--text-primary);
}

.ai-analysis-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.ai-analysis-list li {
  position: relative;
  padding-left: var(--space-4);
  font-size: 0.9375rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

.ai-analysis-list li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 600;
}

.ai-analysis-footer {
  padding-top: var(--space-3);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  margin-top: var(--space-2);
}

.ai-analysis-disclaimer {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-style: italic;
}

/* Responsive */
@media (min-width: 768px) {
  .ai-analysis-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-4);
  }

  .ai-analysis-section:first-child {
    grid-column: span 2;
  }

  .ai-analysis-footer {
    grid-column: span 2;
  }
}

/* ==========================================================================
   ENTITY VIEW - FUTURISTIC ENHANCEMENTS
   ========================================================================== */

/* Entity Header Card - Holographic Effect */
.entity-header-card {
  position: relative;
  overflow: hidden;
}

.entity-header-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(124, 138, 255, 0.8), transparent);
  animation: entity-header-scan 4s ease-in-out infinite;
}

@keyframes entity-header-scan {
  0%, 100% {
    left: -100%;
  }
  50% {
    left: 100%;
  }
}

.entity-header-card::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg,
    rgba(124, 138, 255, 0.05) 0%,
    transparent 50%,
    rgba(124, 138, 255, 0.03) 100%);
  pointer-events: none;
}

/* Entity stat glow on hover */
.entity-stat {
  position: relative;
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius-md);
  transition: all 0.3s ease;
}

.entity-stat::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--radius-md);
  background: rgba(124, 138, 255, 0.1);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.entity-stat:hover::before {
  opacity: 1;
}

.entity-stat:hover .entity-stat-value {
  text-shadow: 0 0 20px currentColor;
}

/* Avatar holographic ring */
.entity-header-card .avatar {
  position: relative;
}

.entity-header-card .avatar::after {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 2px solid transparent;
  background: linear-gradient(135deg, rgba(124, 138, 255, 0.5), transparent, rgba(124, 138, 255, 0.3)) border-box;
  -webkit-mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  animation: avatar-ring-rotate 8s linear infinite;
}

@keyframes avatar-ring-rotate {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* Spectrum row scan line on hover */
.spectrum-row {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-sm);
  transition: background 0.3s ease;
}

.spectrum-row::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 2px;
  height: 100%;
  background: linear-gradient(180deg, transparent 0%, rgba(124, 138, 255, 0.8) 50%, transparent 100%);
  box-shadow: 0 0 10px rgba(124, 138, 255, 0.5);
  opacity: 0;
  transition: opacity 0.2s ease;
}

.spectrum-row:hover {
  background: rgba(124, 138, 255, 0.05);
}

.spectrum-row:hover::after {
  opacity: 1;
  animation: scan-line 0.5s ease-out forwards;
}

/* Trust Evolution Chart - Grid background */
.trust-evolution-chart {
  position: relative;
}

.trust-evolution-chart::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(124, 138, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(124, 138, 255, 0.05) 1px, transparent 1px);
  background-size: 40px 40px;
  pointer-events: none;
  opacity: 0.5;
}

/* Trust line glow effect */
.trust-mentions-chart .trust-line {
  filter: drop-shadow(0 0 6px currentColor);
}

/* Coverage Matrix rows (Publications & Counties) - scan line */
.coverage-matrix--compact .coverage-row {
  position: relative;
  overflow: hidden;
}

.coverage-matrix--compact .coverage-row::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 2px;
  height: 100%;
  background: linear-gradient(180deg, transparent 0%, rgba(124, 138, 255, 0.8) 50%, transparent 100%);
  box-shadow: 0 0 10px rgba(124, 138, 255, 0.5);
  opacity: 0;
  transition: opacity 0.2s ease;
}

.coverage-matrix--compact .coverage-row:hover {
  background: linear-gradient(90deg, rgba(124, 138, 255, 0.08) 0%, transparent 100%);
  border-color: rgba(124, 138, 255, 0.3);
}

.coverage-matrix--compact .coverage-row:hover::after {
  opacity: 1;
  animation: scan-line 0.5s ease-out forwards;
}

/* Entity Feed - Timeline effect */
.entity-feed {
  position: relative;
  padding-left: var(--space-4);
}

.entity-feed::before {
  content: '';
  position: absolute;
  left: 8px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(180deg,
    rgba(124, 138, 255, 0.5) 0%,
    rgba(124, 138, 255, 0.2) 50%,
    transparent 100%);
  box-shadow: 0 0 8px rgba(124, 138, 255, 0.3);
}

.entity-feed .feed-item {
  position: relative;
}

.entity-feed .feed-item::before {
  content: '';
  position: absolute;
  left: calc(-1 * var(--space-4) - 3px);
  top: 50%;
  transform: translateY(-50%);
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(124, 138, 255, 0.6);
  box-shadow: 0 0 8px rgba(124, 138, 255, 0.4);
  transition: all 0.3s ease;
}

.entity-feed .feed-item:hover::before {
  background: var(--accent);
  box-shadow: 0 0 12px rgba(124, 138, 255, 0.8);
  transform: translateY(-50%) scale(1.3);
}

/* Feed item scan line */
.entity-feed .feed-item::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(124, 138, 255, 0.6), transparent);
  opacity: 0;
  transition: opacity 0.2s ease;
}

.entity-feed .feed-item:hover::after {
  opacity: 1;
  animation: feed-scan 0.6s ease-out forwards;
}

@keyframes feed-scan {
  0% {
    transform: translateX(-100%);
  }
  100% {
    transform: translateX(100%);
  }
}

/* ==========================================================================
   PUBLICATION VIEW - FUTURISTIC ENHANCEMENTS
   ========================================================================== */

/* Publication Header - Holographic card effect */
.publication-header {
  position: relative;
  overflow: hidden;
  background: var(--bg-glass);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-lg);
  padding: var(--space-5);
}

.publication-header::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(124, 138, 255, 0.8), transparent);
  animation: publication-header-scan 4s ease-in-out infinite;
}

@keyframes publication-header-scan {
  0%, 100% { left: -100%; }
  50% { left: 100%; }
}

.publication-header::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg,
    rgba(124, 138, 255, 0.05) 0%,
    transparent 50%,
    rgba(124, 138, 255, 0.03) 100%);
  pointer-events: none;
}

/* Publication icon glow */
.publication-icon {
  position: relative;
  text-shadow: 0 0 20px rgba(124, 138, 255, 0.5);
  animation: icon-pulse 3s ease-in-out infinite;
}

@keyframes icon-pulse {
  0%, 100% { text-shadow: 0 0 20px rgba(124, 138, 255, 0.5); }
  50% { text-shadow: 0 0 30px rgba(124, 138, 255, 0.8), 0 0 40px rgba(124, 138, 255, 0.4); }
}

/* Publication stat glow on hover */
.publication-stat {
  position: relative;
  transition: all 0.3s ease;
}

.publication-stat::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--radius);
  background: rgba(124, 138, 255, 0.1);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.publication-stat:hover::before {
  opacity: 1;
}

.publication-stat:hover {
  border-color: rgba(124, 138, 255, 0.3);
  box-shadow: 0 0 15px rgba(124, 138, 255, 0.2);
}

/* Metric cards (KPI) - scan line on hover */
.metric-card-compact {
  position: relative;
  overflow: hidden;
}

.metric-card-compact::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 2px;
  height: 100%;
  background: linear-gradient(180deg, transparent 0%, rgba(124, 138, 255, 0.8) 50%, transparent 100%);
  box-shadow: 0 0 10px rgba(124, 138, 255, 0.5);
  opacity: 0;
  transition: opacity 0.2s ease;
}

.bento-quarter:hover .metric-card-compact::after {
  opacity: 1;
  animation: scan-line 0.5s ease-out forwards;
}

/* Entity pub cards - futuristic hover */
.entity-pub-card {
  position: relative;
  overflow: hidden;
}

.entity-pub-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(124, 138, 255, 0.8), transparent);
  opacity: 0;
  transition: opacity 0.2s ease;
}

.entity-pub-card:hover::before {
  opacity: 1;
  animation: entity-card-scan 0.6s ease-out forwards;
}

@keyframes entity-card-scan {
  0% { left: -100%; }
  100% { left: 100%; }
}

.entity-pub-card:hover {
  box-shadow: 0 0 20px rgba(124, 138, 255, 0.15), 0 4px 15px rgba(0, 0, 0, 0.3);
}

/* Entity pub card avatar ring */
.entity-pub-card .avatar {
  position: relative;
}

.entity-pub-card .avatar::after {
  content: '';
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  border: 2px solid transparent;
  background: linear-gradient(135deg, rgba(124, 138, 255, 0.4), transparent, rgba(124, 138, 255, 0.2)) border-box;
  -webkit-mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.entity-pub-card:hover .avatar::after {
  opacity: 1;
  animation: avatar-ring-rotate 4s linear infinite;
}

/* Entities grid container */
.entities-pub-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: var(--space-4);
}

/* ==========================================================================
   COUNTY VIEW
   ========================================================================== */

.county-header {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: var(--space-5);
  align-items: center;
  background: var(--bg-glass);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-lg);
  padding: var(--space-5);
  margin-bottom: var(--space-5);
}

.county-header::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(124, 138, 255, 0.8), transparent);
  animation: county-header-scan 4s ease-in-out infinite;
}

@keyframes county-header-scan {
  0%, 100% { left: -100%; }
  50% { left: 100%; }
}

.county-emblem-wrapper {
  width: 72px;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.county-emblem {
  max-width: 72px;
  max-height: 72px;
  object-fit: contain;
  border-radius: var(--radius-md);
}

.county-emblem--placeholder {
  width: 72px;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  background: var(--bg-tertiary);
  border-radius: var(--radius-md);
}

.county-info {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.county-meta {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  flex-wrap: wrap;
}

.county-subtitle {
  font-size: 0.875rem;
  color: var(--text-muted);
}

.county-stats {
  display: flex;
  gap: var(--space-5);
}

.county-stat {
  text-align: center;
}

.county-stat-value {
  display: block;
  font-size: 1.5rem;
  font-weight: 700;
}

.county-stat-label {
  display: block;
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Entities County Grid */
.entities-county-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-4);
}

@media (max-width: 1023px) {
  .entities-county-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 639px) {
  .entities-county-grid {
    grid-template-columns: 1fr;
  }
}

.entity-county-card {
  display: block;
  text-decoration: none;
  color: inherit;
  background: var(--bg-secondary);
  border: 2px solid var(--bg-tertiary);
  border-radius: var(--radius-lg);
  padding: var(--space-4);
  transition: all var(--duration-fast) var(--ease-out);
}

.entity-county-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
  border-color: var(--accent);
}

/* Highlighted - entitatea din care s-a navigat */
.entity-county-card--highlighted {
  background: rgba(139, 92, 246, 0.1);
  border-color: var(--accent);
  box-shadow: 0 0 0 1px rgba(139, 92, 246, 0.3);
}

.entity-county-card--highlighted:hover {
  background: rgba(139, 92, 246, 0.15);
}

.entity-county-head {
  display: flex;
  gap: var(--space-3);
  align-items: center;
  margin-bottom: var(--space-4);
}

.entity-county-info {
  flex: 1;
  min-width: 0;
}

.entity-county-name {
  font-weight: 600;
  font-size: 1rem;
  line-height: 1.3;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.entity-county-role {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 2px;
}

.entity-county-metrics {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-2);
}

.entity-county-metric {
  background: rgba(0, 0, 0, 0.2);
  border-radius: var(--radius-sm);
  padding: var(--space-2);
  text-align: center;
}

.entity-county-metric .metric-label {
  display: block;
  font-size: 0.625rem;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 2px;
}

.entity-county-metric .metric-value {
  display: block;
  font-size: 0.875rem;
  font-weight: 700;
}

/* Mobile adjustments */
@media (max-width: 639px) {
  .county-header {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .county-emblem-wrapper {
    justify-self: center;
  }

  .county-stats {
    justify-content: center;
  }

  .county-meta {
    justify-content: center;
  }
}

/* ==========================================================================
   ANALYTICS VIEW - Radar, Bubble, Rankings, H2H, Map
   ========================================================================== */

/* Fighters Arena (replaces Radar Chart) */
.fighters-arena {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-3);
  padding: var(--space-2);
}

@media (max-width: 900px) {
  .fighters-arena {
    grid-template-columns: repeat(2, 1fr);
  }
}

.fighter-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: var(--space-3);
  background: var(--bg-tertiary);
  border-radius: var(--radius-lg);
  transition: all 0.3s var(--ease-out);
  cursor: pointer;
  /* Fixed card size - no scaling on card */
}

.fighter-card:hover {
  background: rgba(255, 255, 255, 0.08);
  transform: translateY(-2px);
}

/* Icon wrapper - fixed size container for icon */
.fighter-icon-wrapper {
  width: 72px;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

/* The icon itself - scales based on SOV */
.fighter-icon {
  width: 100%;
  height: 100%;
  color: var(--icon-color, hsl(45, 70%, 55%));
  transform: scale(var(--icon-scale, 1));
  transition: transform 0.3s, filter 0.3s;
  filter: drop-shadow(0 0 var(--glow-size, 8px) var(--glow-color, transparent));
}

.fighter-card:hover .fighter-icon {
  transform: scale(calc(var(--icon-scale, 1) * 1.1));
  filter: drop-shadow(0 0 calc(var(--glow-size, 8px) * 1.5) var(--glow-color, transparent));
}

/* Aura pulse animation */
@keyframes pulse-glow {
  0%, 100% {
    filter: drop-shadow(0 0 var(--glow-size, 15px) var(--glow-color, transparent))
            drop-shadow(0 0 calc(var(--glow-size, 15px) * 0.5) var(--glow-color, transparent));
  }
  50% {
    filter: drop-shadow(0 0 calc(var(--glow-size, 15px) * 1.6) var(--glow-color, transparent))
            drop-shadow(0 0 calc(var(--glow-size, 15px) * 0.8) var(--glow-color, transparent));
  }
}

.fighter-icon {
  animation: pulse-glow 2s ease-in-out infinite;
}

.fighter-name {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-primary);
  margin-top: var(--space-2);
  text-align: center;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Stats row */
.fighter-stats {
  display: flex;
  gap: var(--space-2);
  margin-top: var(--space-2);
}

.fighter-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: var(--space-1) var(--space-2);
  background: var(--bg-secondary);
  border-radius: var(--radius-sm);
  min-width: 44px;
}

.fighter-stat .stat-value {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-primary);
}

.fighter-stat .stat-label {
  font-size: 9px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.fighter-stat.stat-positive .stat-value {
  color: var(--positive);
}

.fighter-stat.stat-negative .stat-value {
  color: var(--negative);
}

/* Legend */
.fighters-legend {
  display: flex;
  justify-content: center;
  gap: var(--space-4);
  margin-top: var(--space-3);
  padding-top: var(--space-3);
  border-top: 1px solid var(--border);
}

.fighters-legend .legend-item {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: 11px;
  color: var(--text-muted);
}

.legend-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

.legend-dot--size {
  background: linear-gradient(135deg, var(--text-muted) 0%, var(--text-primary) 100%);
  transform: scale(0.7);
  box-shadow: 0 0 0 2px var(--bg-tertiary), 0 0 0 3px var(--text-muted);
}

.legend-dot--trust {
  background: linear-gradient(135deg, hsl(0, 60%, 50%) 0%, hsl(40, 70%, 55%) 50%, hsl(150, 60%, 45%) 100%);
}

.legend-dot--aura {
  background: var(--bg-tertiary);
  box-shadow: 0 0 8px 2px hsla(142, 70%, 50%, 0.6), 0 0 4px 1px hsla(0, 70%, 50%, 0.4);
}

/* Bubble Chart */
.bubble-chart {
  position: relative;
  height: 380px;
  background: var(--bg-secondary);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.bubble-grid {
  position: absolute;
  inset: 40px;
  border-left: 1px dashed var(--border);
  border-bottom: 1px dashed var(--border);
}

.bubble-axis {
  position: absolute;
  font-size: 11px;
  color: var(--text-muted);
  font-weight: 500;
}

.bubble-axis--x {
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
}

.bubble-axis--y {
  top: 50%;
  left: 10px;
  transform: translateY(-50%) rotate(-90deg);
  transform-origin: center;
}

.bubble {
  position: absolute;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
  border: 2px solid rgba(255, 255, 255, 0.3);
  text-decoration: none;
}

.bubble:hover {
  transform: translate(-50%, -50%) scale(1.15);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
  z-index: 10;
}

.bubble-label {
  font-size: 10px;
  font-weight: 600;
  color: white;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.6);
  text-align: center;
  padding: 2px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 90%;
}

/* Rankings */
.rankings-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.ranking-row {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-2) var(--space-3);
  background: var(--bg-secondary);
  border-radius: var(--radius-md);
  animation: rankingSlideIn 0.5s var(--ease-out) calc(var(--delay, 0s)) both;
}

@keyframes rankingSlideIn {
  from {
    opacity: 0;
    transform: translateX(-20px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.ranking-position {
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 13px;
  border-radius: var(--radius-sm);
  background: var(--bg-tertiary);
  color: var(--text-secondary);
  flex-shrink: 0;
}

.ranking-position--1 {
  background: linear-gradient(135deg, #ffd700, #ffb700);
  color: #000;
  box-shadow: 0 2px 8px rgba(255, 215, 0, 0.4);
}

.ranking-position--2 {
  background: linear-gradient(135deg, #e0e0e0, #b0b0b0);
  color: #000;
}

.ranking-position--3 {
  background: linear-gradient(135deg, #cd7f32, #b87333);
  color: #fff;
}

.ranking-entity {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  min-width: 120px;
  font-size: 13px;
  font-weight: 500;
}

.ranking-bar-container {
  flex: 1;
  height: 24px;
  background: var(--bg-tertiary);
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.ranking-bar {
  height: 100%;
  border-radius: var(--radius-sm);
  transition: width 0.8s var(--ease-out);
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding-right: var(--space-2);
  min-width: 40px;
}

.ranking-value {
  font-weight: 600;
  color: white;
  font-size: 12px;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.4);
}

.ranking-metric-selector {
  max-width: 130px;
  background-color: var(--bg-secondary);
  color: var(--text-primary);
}

/* Head-to-Head Football Field */
.h2h-controls {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  flex-wrap: nowrap;
  flex: 1;
  justify-content: flex-end;
}

.h2h-controls select {
  background-color: var(--bg-secondary);
  color: var(--text-primary);
}

.h2h-vs-small {
  font-weight: 700;
  font-size: 12px;
  color: var(--text-muted);
  padding: 0 var(--space-1);
}

.h2h-metric-selector {
  margin-left: var(--space-2);
}

/* Football Field Container - 3D Space */
.football-field-wrapper {
  perspective: 1000px;
  perspective-origin: 50% 70%;
  padding: var(--space-6) var(--space-8) var(--space-12);
  margin-bottom: var(--space-4);
  background:
    radial-gradient(ellipse at 50% 100%, rgba(139, 92, 246, 0.1) 0%, transparent 50%),
    radial-gradient(ellipse at 50% 50%, rgba(10, 15, 25, 0.8) 0%, transparent 70%);
  /* Ensure 3D elements don't get clipped by following cards */
  position: relative;
  z-index: 10;
  isolation: isolate;
}

/* Floor reflection line - subtle */
.football-field-wrapper::after {
  content: '';
  display: block;
  margin-top: var(--space-2);
  height: 1px;
  background: linear-gradient(90deg,
    transparent 20%,
    rgba(139, 92, 246, 0.2) 50%,
    transparent 80%
  );
}

/* Card containing H2H field needs proper stacking */
.card:has(.football-field-wrapper) {
  position: relative;
  z-index: 5;
  overflow: visible;
  margin-bottom: var(--space-5);
}

/* Mugshot Wall card - ensure it stays below H2H */
.card:has(.holo-carousel) {
  position: relative;
  z-index: 1;
}

/* Football Field - floating in 3D space */
.football-field {
  position: relative;
  width: 95%;
  max-width: 1100px;
  margin: 0 auto;
  aspect-ratio: 16 / 9;
  min-height: 340px;
  max-height: 450px;
  background:
    /* Dot grid pattern - space effect */
    radial-gradient(circle at center, rgba(124, 138, 255, 0.15) 1px, transparent 1px),
    /* Base gradient */
    linear-gradient(135deg, rgba(8, 12, 20, 0.98) 0%, rgba(12, 18, 30, 0.95) 50%, rgba(8, 12, 20, 0.98) 100%);
  background-size: 20px 20px, 100% 100%;
  border: 2px solid rgba(124, 138, 255, 0.5);
  border-radius: 0;
  overflow: visible;
  display: flex;
  /* 3D floating effect - 55deg tilt */
  transform-style: preserve-3d;
  transform: rotateX(55deg);
  transition: transform 0.5s ease;
  box-shadow:
    0 40px 80px rgba(0, 0, 0, 0.5),
    0 0 40px rgba(124, 138, 255, 0.15),
    0 0 80px rgba(139, 92, 246, 0.1),
    inset 0 0 60px rgba(124, 138, 255, 0.03);
}

/* No hover effect on field - only cards react */

/* Scanline effect */
.football-field::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, rgba(124, 138, 255, 0.8), transparent);
  animation: field-scanline 3s linear infinite;
  z-index: 10;
  pointer-events: none;
  box-shadow: 0 0 15px rgba(124, 138, 255, 0.5);
}

@keyframes field-scanline {
  0% { top: -3px; opacity: 0; }
  10% { opacity: 1; }
  90% { opacity: 1; }
  100% { top: 100%; opacity: 0; }
}

/* Shine sweep effect on field surface - under cards, clipped to field */
.football-field::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    75deg,
    transparent 0%,
    rgba(124, 138, 255, 0.06) 45%,
    rgba(255, 255, 255, 0.08) 50%,
    rgba(124, 138, 255, 0.06) 55%,
    transparent 100%
  );
  background-size: 60% 100%;
  background-repeat: no-repeat;
  animation: field-shine 12s ease-in-out infinite;
  pointer-events: none;
  z-index: 1;
}

@keyframes field-shine {
  0% { background-position: -60% 0; }
  100% { background-position: 160% 0; }
}

/* Field markings - Neon holographic style */
.field-markings {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.field-center-line {
  position: absolute;
  left: 50%;
  top: 10%;
  bottom: 10%;
  width: 2px;
  background: linear-gradient(180deg, transparent, rgba(124, 138, 255, 0.6), rgba(139, 92, 246, 0.6), transparent);
  transform: translateX(-50%);
  box-shadow: 0 0 10px rgba(124, 138, 255, 0.4);
}

.field-center-circle {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 140px;
  height: 140px;
  border: 2px solid rgba(124, 138, 255, 0.5);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  box-shadow:
    0 0 15px rgba(124, 138, 255, 0.3),
    inset 0 0 15px rgba(124, 138, 255, 0.1);
  animation: pulse-glow 3s ease-in-out infinite;
}

@keyframes pulse-glow {
  0%, 100% { box-shadow: 0 0 15px rgba(124, 138, 255, 0.3), inset 0 0 15px rgba(124, 138, 255, 0.1); }
  50% { box-shadow: 0 0 25px rgba(124, 138, 255, 0.5), inset 0 0 25px rgba(124, 138, 255, 0.2); }
}

.field-penalty-area {
  position: absolute;
  top: 20%;
  height: 60%;
  width: 15%;
  border: 2px solid rgba(124, 138, 255, 0.4);
  box-shadow: 0 0 10px rgba(124, 138, 255, 0.2);
}

.field-penalty-area--left {
  left: 0;
  border-left: none;
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
}

.field-penalty-area--right {
  right: 0;
  border-right: none;
  border-radius: var(--radius-md) 0 0 var(--radius-md);
}

.field-goal {
  position: absolute;
  top: 35%;
  height: 30%;
  width: 3%;
  background: rgba(124, 138, 255, 0.1);
  border: 2px solid rgba(124, 138, 255, 0.5);
  box-shadow:
    0 0 15px rgba(124, 138, 255, 0.3),
    inset 0 0 10px rgba(124, 138, 255, 0.2);
}

.field-goal--left {
  left: 0;
  border-left: none;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

.field-goal--right {
  right: 0;
  border-right: none;
  border-radius: var(--radius-sm) 0 0 var(--radius-sm);
}

/* Field halves - split into 3 zones each */
.field-half {
  flex: 1;
  position: relative;
  display: flex;
  padding: var(--space-4) var(--space-6);
  transform-style: preserve-3d;
  overflow: visible;
}

.field-half--left {
  flex-direction: row;
  padding-left: var(--space-6);
}

.field-half--right {
  flex-direction: row;
  padding-right: var(--space-6);
}

/* Zones: defense (near goal), midfield, attack (near center) */
.field-zone {
  flex: 1;
  position: relative;
  transform-style: preserve-3d;
  /* Margin orizontal pentru aerisire în profunzime */
  margin: 0 var(--space-4);
}

/* 4-line zone system - aerisite în profunzime */
.field-zone--line1 {
  /* Counties back line - lângă poartă */
  flex: 2;
  margin-top: 8%;
}

.field-zone--line1 .field-holo-card {
  transform: translate(-50%, -50%) rotateX(-55deg) translateZ(85px);
}

.field-zone--line2 {
  /* Counties second line */
  flex: 1.8;
}

.field-zone--line2 .field-holo-card {
  transform: translate(-50%, -50%) rotateX(-55deg) translateZ(70px);
}

.field-zone--line3 {
  /* Sources line */
  flex: 1.8;
}

.field-zone--line3 .field-holo-card {
  transform: translate(-50%, -50%) rotateX(-55deg) translateZ(55px);
}

.field-zone--line4 {
  /* Entity player - la centru */
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 2;
  padding-left: 0;
  padding-right: 0;
}

/* Vertical axis line from card to field */
.field-holo-card::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 50%;
  width: 2px;
  height: 25px;
  background: linear-gradient(to bottom,
    color-mix(in srgb, var(--entity-color) 80%, transparent),
    color-mix(in srgb, var(--entity-color) 30%, transparent)
  );
  transform: translateX(-50%) rotateX(55deg);
  transform-origin: top center;
  pointer-events: none;
  border-radius: 1px;
}

/* Axis height per zone - taller for higher cards */
.field-zone--line1 .field-holo-card::after {
  height: 80px;
}

.field-zone--line2 .field-holo-card::after {
  height: 65px;
}

.field-zone--line3 .field-holo-card::after {
  height: 50px;
}

/* Player positioning in line4 */
.field-half--left .field-zone--line4 {
  justify-content: flex-end;
  padding-right: var(--space-2);
}

.field-half--right .field-zone--line4 {
  justify-content: flex-start;
  padding-left: var(--space-2);
}

/* Loading state for field */
.field-loading {
  opacity: 0.6;
  pointer-events: none;
}

.field-loading::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(255, 255, 255, 0.1) 50%,
    transparent 100%
  );
  animation: field-shimmer 1s ease-in-out infinite;
}

@keyframes field-shimmer {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

/* ============================================================
   MINI HOLO-CARDS - Jersey style for field badges
   ============================================================ */

/* Badge wrapper - no mask, holds name + jersey */
.field-badge {
  display: flex;
  flex-direction: column;
  align-items: center;
  transform-style: preserve-3d;
  transform: translate(-50%, -90%) rotateX(-55deg) translateZ(40px);
  transform-origin: center center;
  /* Faster transition out */
  transition: transform 0.25s ease, filter 0.25s ease;
}

.field-badge:hover,
.field-badge.active {
  transform: translate(-50%, -90%) rotateX(-55deg) translateZ(140px) scale(1.5);
  filter: drop-shadow(0 15px 30px rgba(0, 0, 0, 0.7));
  /* Fast transition in */
  transition: transform 0.15s ease, filter 0.15s ease;
}

/* Prevent enlarged jerseys from intercepting mouse - hover only on original position */
.field-badge.active > * {
  pointer-events: none;
}

/* Name above jersey */
.field-jersey-name {
  font-size: 10px;
  font-weight: 600;
  color: #fff;
  text-align: center;
  white-space: nowrap;
  text-shadow:
    0 0 8px var(--entity-color),
    0 1px 3px rgba(0, 0, 0, 0.9);
  background: rgba(0, 0, 0, 0.7);
  padding: 3px 8px;
  border-radius: 3px;
  margin-bottom: 4px;
}

/* Jersey with mask */
.field-jersey {
  width: 52px;
  height: 56px;
  display: flex;
  justify-content: center;
  align-items: center;
  background: linear-gradient(180deg,
    color-mix(in srgb, var(--entity-color) 95%, rgba(30, 35, 45, 1)) 0%,
    color-mix(in srgb, var(--entity-color) 70%, rgba(15, 18, 25, 1)) 100%);
  /* Jersey SVG mask */
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 110'%3E%3Cpath d='M35 0 C40 0 42 2 45 4 L50 8 L55 4 C58 2 60 0 65 0 L75 4 L100 18 L100 38 L82 32 L82 110 L18 110 L18 32 L0 38 L0 18 L25 4 Z' fill='black'/%3E%3C/svg%3E") center/contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 110'%3E%3Cpath d='M35 0 C40 0 42 2 45 4 L50 8 L55 4 C58 2 60 0 65 0 L75 4 L100 18 L100 38 L82 32 L82 110 L18 110 L18 32 L0 38 L0 18 L25 4 Z' fill='black'/%3E%3C/svg%3E") center/contain no-repeat;
  filter: drop-shadow(0 6px 12px rgba(0, 0, 0, 0.6))
          drop-shadow(0 0 15px color-mix(in srgb, var(--entity-color) 50%, transparent));
}

/* Keep old class for compatibility */
.field-holo-card {
  width: 42px;
  height: 46px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background: linear-gradient(180deg,
    color-mix(in srgb, var(--entity-color) 95%, rgba(30, 35, 45, 1)) 0%,
    color-mix(in srgb, var(--entity-color) 70%, rgba(15, 18, 25, 1)) 100%);
  border: none;
  padding: 8px 4px 4px;
  overflow: visible;
  position: relative;
  z-index: 1;
  cursor: default;
}

/* Jersey shine overlay */
.field-holo-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg,
    rgba(255, 255, 255, 0.25) 0%,
    rgba(255, 255, 255, 0.1) 30%,
    transparent 50%);
  pointer-events: none;
}

/* Scanline effect - hidden for jersey */
.field-holo-scanline {
  display: none;
}

.field-holo-scanline-old {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent 10%, var(--entity-color) 50%, transparent 90%);
  opacity: 0.8;
}

/* HUD Corners - hidden for jersey shape */
.field-holo-corner {
  display: none;
}

/* Card content */
.field-holo-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-1);
  height: 100%;
  position: relative;
  z-index: 1;
}

.field-holo-name {
  font-size: 8px;
  font-weight: 600;
  color: #fff;
  text-align: center;
  line-height: 1.1;
  white-space: nowrap;
  text-shadow:
    0 0 8px var(--entity-color),
    0 1px 3px rgba(0, 0, 0, 0.9);
  /* Position above jersey like entity names */
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  margin-bottom: 4px;
  background: rgba(0, 0, 0, 0.6);
  padding: 2px 6px;
  border-radius: 3px;
}

.field-holo-score {
  font-size: 16px;
  font-weight: 900;
  font-family: 'Arial Black', sans-serif;
  color: #fff;
  text-shadow:
    1px 1px 0 rgba(0, 0, 0, 0.4),
    -1px -1px 0 rgba(0, 0, 0, 0.2),
    0 2px 3px rgba(0, 0, 0, 0.7);
}

/* Hover effect is now on wrapper */

.field-holo-card:hover .field-holo-corner {
  opacity: 1;
}

/* "+X more" mini card */
.field-holo-card--more {
  width: 50px;
  height: 40px;
  background: linear-gradient(135deg, rgba(30, 35, 50, 0.95), rgba(20, 25, 40, 0.98));
  border: 1px solid rgba(139, 92, 246, 0.5);
  --entity-color: rgba(139, 92, 246, 1);
}

.field-holo-more {
  font-size: 14px;
  font-weight: 700;
  color: rgba(139, 92, 246, 0.9);
}

/* ============================================================
   ENTITY CARD - Larger holo-card for main entities
   ============================================================ */

.field-entity-card {
  width: 110px;
  height: 130px;
  display: flex;
  flex-direction: column;
  background: linear-gradient(135deg, rgba(15, 20, 30, 0.97), rgba(8, 12, 22, 0.99));
  border: 2px solid color-mix(in srgb, var(--entity-color) 60%, transparent);
  border-radius: var(--radius-lg);
  padding: var(--space-3);
  overflow: hidden;
  position: relative;
  z-index: 5;
  cursor: default;
  /* Stand perpendicular facing viewer: -65deg counters field tilt */
  transform-style: preserve-3d;
  transform: rotateX(-55deg) translateZ(60px);
  transform-origin: center center;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  animation: entity-card-float 3s ease-in-out infinite;
  box-shadow:
    0 15px 35px rgba(0, 0, 0, 0.7),
    0 0 40px color-mix(in srgb, var(--entity-color) 40%, transparent);
}

@keyframes entity-card-float {
  0%, 100% { transform: rotateX(-55deg) translateZ(60px); }
  50% { transform: rotateX(-55deg) translateZ(70px); }
}

/* Holographic gradient overlay */
.field-entity-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg,
    color-mix(in srgb, var(--entity-color) 15%, transparent),
    transparent 50%);
  pointer-events: none;
}

/* Holographic shine sweep */
.field-entity-card::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(
    45deg,
    transparent 30%,
    rgba(255, 255, 255, 0.12) 50%,
    transparent 70%
  );
  animation: holo-mini-shine 3.5s ease-in-out infinite;
  pointer-events: none;
}

/* Entity card content */
.field-entity-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  height: 100%;
  position: relative;
  z-index: 1;
}

.field-entity-content .avatar {
  border: 3px solid var(--entity-color);
  box-shadow:
    0 0 20px color-mix(in srgb, var(--entity-color) 60%, transparent),
    0 0 40px color-mix(in srgb, var(--entity-color) 30%, transparent);
}

.field-entity-name {
  font-size: 12px;
  font-weight: 700;
  color: #fff;
  text-align: center;
  line-height: 1.2;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  text-shadow: 0 0 10px var(--entity-color);
}

/* Hover effect */
.field-entity-card:hover {
  transform: rotateX(-55deg) translateZ(80px) scale(1.1);
  z-index: 25;
  box-shadow:
    0 25px 50px rgba(0, 0, 0, 0.8),
    0 0 60px color-mix(in srgb, var(--entity-color) 60%, transparent);
  border-color: var(--entity-color);
  animation-play-state: paused;
}

.field-entity-card:hover .field-holo-corner {
  opacity: 1;
}

/* ============================================================
   FIELD EDGE BOARD - 3D panel along field edge with scoreboard
   ============================================================ */

.field-edge-board {
  position: absolute;
  bottom: -50px;
  left: 0;
  right: 0;
  height: 45px;
  transform-style: preserve-3d;
  /* Perpendicular to field, facing viewer */
  transform: rotateX(-55deg);
  transform-origin: top center;
  z-index: 30;
}

/* Edge board - doar contur exterior, fără linii interne */
.field-edge-lines {
  position: absolute;
  inset: 0;
  background: transparent;
  border: 2px solid rgba(124, 138, 255, 0.4);
  border-top: none;
  border-radius: 0;
}

/* Fără linii interne */
.field-edge-lines::before,
.field-edge-lines::after {
  display: none;
}

/* Scoreboard inside edge board */
.field-edge-scoreboard {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translateX(-50%) translateY(-50%);
  width: 80%;
  max-width: 600px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 var(--space-4);
  /* Solid opaque background to cover lines behind */
  background: #050a0f;
  border: 2px solid rgba(124, 138, 255, 0.6);
  border-radius: var(--radius-sm);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
  z-index: 10;
}

/* LED glow effect disabled for readability */

/* Scoreboard content */
.scoreboard-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
  z-index: 1;
}

.scoreboard-team {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 120px;
}

.scoreboard-team:first-child {
  text-align: left;
}

.scoreboard-team:last-child {
  text-align: right;
}

.scoreboard-name {
  font-size: 10px;
  font-weight: 600;
  color: #fff;
}

.scoreboard-stats {
  font-size: 10px;
  color: rgba(255, 255, 255, 0.6);
}

.scoreboard-center {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-1);
}

.scoreboard-metric {
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: rgba(139, 92, 246, 0.9);
}

.scoreboard-scores {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.scoreboard-score {
  font-size: 14px;
  font-weight: 800;
  color: #fff;
  font-family: 'Courier New', monospace;
}

.scoreboard-vs {
  font-size: 12px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.5);
  text-transform: uppercase;
}

/* Edge scoreboard - single line compact layout with high contrast */
.field-edge-scoreboard .scoreboard-content {
  gap: var(--space-4);
  width: 100%;
}

.field-edge-scoreboard .scoreboard-team {
  min-width: auto;
  flex-direction: row;
  gap: var(--space-2);
  align-items: center;
}

.field-edge-scoreboard .scoreboard-name {
  font-size: 11px;
  font-weight: 700;
  color: #fff;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.9);
  white-space: nowrap;
}

.field-edge-scoreboard .scoreboard-stats {
  font-size: 9px;
  white-space: nowrap;
  color: rgba(255, 255, 255, 0.8);
}

.field-edge-scoreboard .scoreboard-center {
  flex-direction: row;
  gap: var(--space-2);
}

.field-edge-scoreboard .scoreboard-metric {
  font-size: 9px;
  font-weight: 600;
  color: rgba(124, 138, 255, 1);
}

.field-edge-scoreboard .scoreboard-scores {
  gap: var(--space-2);
}

.field-edge-scoreboard .scoreboard-score {
  font-size: 14px;
  font-weight: 800;
  color: #fff;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.9);
}

.field-edge-scoreboard .scoreboard-vs {
  font-size: 10px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.9);
}

/* Entity player - avatar + name standing perpendicular on field */
.field-player {
  display: flex;
  flex-direction: column-reverse;
  align-items: center;
  gap: var(--space-1);
  transform-style: preserve-3d;
  /* Stand perpendicular facing viewer - raised much higher */
  transform: rotateX(-55deg) translateZ(120px);
  transform-origin: center center;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  animation: player-float 3s ease-in-out infinite;
}

@keyframes player-float {
  0%, 100% { transform: rotateX(-55deg) translateZ(120px); }
  50% { transform: rotateX(-55deg) translateZ(135px); }
}

/* Holographic ring around avatar - standing upright */
.field-player::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 90px;
  height: 90px;
  margin-left: -45px;
  margin-top: -45px;
  border: 2px solid var(--team-color, cyan);
  border-radius: 50%;
  opacity: 0.6;
  animation: entity-ring-spin 4s linear infinite;
  box-shadow:
    0 0 20px var(--team-color, cyan),
    inset 0 0 20px color-mix(in srgb, var(--team-color, cyan) 30%, transparent);
  /* Standing upright - no rotation needed, already perpendicular with player */
}

@keyframes entity-ring-spin {
  0% { transform: rotateY(0deg); opacity: 0.6; }
  50% { opacity: 0.3; }
  100% { transform: rotateY(360deg); opacity: 0.6; }
}

/* Second ring - perpendicular for 3D effect */
.field-player::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 90px;
  height: 90px;
  margin-left: -45px;
  margin-top: -45px;
  border: 2px solid color-mix(in srgb, var(--team-color, cyan) 60%, transparent);
  border-radius: 50%;
  opacity: 0.4;
  animation: entity-ring-spin-reverse 4s linear infinite;
  /* Rotated 90deg for perpendicular ring */
  transform: rotateY(90deg);
}

@keyframes entity-ring-spin-reverse {
  0% { transform: rotateY(90deg); }
  100% { transform: rotateY(450deg); }
}

.field-player:hover {
  transform: rotateX(-55deg) translateZ(150px) scale(1.15);
  animation-play-state: paused;
}

.field-player .avatar {
  border: 3px solid var(--team-color, rgba(124, 138, 255, 0.9));
  box-shadow:
    0 0 30px color-mix(in srgb, var(--team-color, cyan) 70%, transparent),
    0 0 60px color-mix(in srgb, var(--team-color, cyan) 40%, transparent);
  position: relative;
  z-index: 1;
  animation: avatar-float 3s ease-in-out infinite;
}

@keyframes avatar-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-5px); }
}

.field-player-name {
  font-size: 11px;
  font-weight: 700;
  color: #fff;
  text-shadow:
    0 0 15px var(--team-color, cyan),
    0 0 30px var(--team-color, cyan),
    0 2px 4px rgba(0, 0, 0, 0.9);
  background: rgba(0, 0, 0, 0.7);
  padding: var(--space-1) var(--space-2);
  border: none;
  border-radius: var(--radius-sm);
  /* Position absolute so it doesn't affect avatar centering */
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%) translateZ(15px);
  margin-bottom: var(--space-1);
  white-space: nowrap;
  z-index: 1;
}

/* Field score - holographic HUD */
.field-score {
  position: absolute;
  top: -5%;
  left: 50%;
  /* Stand perpendicular on back line of field */
  transform: translateX(-50%) rotateX(-55deg) translateZ(80px);
  transform-origin: center center;
  transform-style: preserve-3d;
  display: flex;
  align-items: center;
  gap: var(--space-2);
  background: linear-gradient(135deg, rgba(10, 15, 25, 0.98), rgba(20, 25, 40, 0.95));
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius-md);
  border: 2px solid rgba(124, 138, 255, 0.5);
  z-index: 50;
  box-shadow:
    0 8px 24px rgba(0, 0, 0, 0.6),
    0 0 20px rgba(124, 138, 255, 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
  z-index: 10;
}

.field-score-value {
  font-size: 28px;
  font-weight: 700;
  color: #fff;
  min-width: 40px;
  text-align: center;
  text-shadow: 0 0 15px rgba(124, 138, 255, 0.5);
  font-family: 'Courier New', monospace;
}

.field-score-separator {
  font-size: 24px;
  color: rgba(124, 138, 255, 0.6);
  text-shadow: 0 0 10px rgba(124, 138, 255, 0.3);
}

/* Legend - Holographic HUD style */
.h2h-legend {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--space-3) var(--space-4);
  background: linear-gradient(135deg, rgba(15, 20, 30, 0.9), rgba(20, 25, 40, 0.85));
  border: 1px solid rgba(139, 92, 246, 0.2);
  border-radius: var(--radius-lg);
  margin-top: var(--space-3);
  box-shadow:
    0 4px 16px rgba(0, 0, 0, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.legend-section {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.legend-section--center {
  flex-direction: column;
  gap: var(--space-1);
}

.legend-metric-name {
  font-size: 11px;
  font-weight: 500;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.legend-scores {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.legend-title {
  font-weight: 600;
  font-size: 13px;
  color: var(--text-primary);
}

.legend-stat {
  font-size: 12px;
  color: var(--text-secondary);
  padding: var(--space-1) var(--space-2);
  background: var(--bg-secondary);
  border-radius: var(--radius-sm);
}

.legend-label {
  font-size: 11px;
  color: var(--text-muted);
}

.legend-score {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-primary);
  padding: var(--space-1) var(--space-3);
  background: var(--bg-secondary);
  border-radius: var(--radius-md);
}

.legend-vs {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
}

/* Responsive */
@media (max-width: 768px) {
  .football-field {
    height: 280px;
  }

  .field-center {
    gap: var(--space-2);
  }

  .field-player .avatar {
    width: 40px !important;
    height: 40px !important;
  }

  .field-score-value {
    font-size: 18px;
  }

  .h2h-legend {
    flex-direction: column;
    gap: var(--space-2);
  }

  /* Mini holo-cards responsive */
  .field-holo-card {
    width: 70px;
    height: 85px;
    padding: var(--space-1);
  }

  .field-holo-name {
    font-size: 9px;
  }

  .field-holo-score {
    font-size: 16px;
  }

  .field-holo-corner {
    width: 6px;
    height: 6px;
  }

  /* Entity card responsive */
  .field-entity-card {
    width: 85px;
    height: 100px;
    padding: var(--space-2);
  }

  .field-entity-content .avatar {
    width: 40px !important;
    height: 40px !important;
  }

  .field-entity-name {
    font-size: 10px;
  }

  /* Edge board responsive */
  .field-edge-board {
    height: 32px;
    bottom: -30px;
    left: 2%;
    right: 2%;
  }

  .field-edge-scoreboard {
    width: 95%;
    height: 24px;
    padding: 0 var(--space-2);
  }

  .field-edge-scoreboard .scoreboard-team {
    min-width: 60px;
  }

  .field-edge-scoreboard .scoreboard-name {
    font-size: 9px;
  }

  .field-edge-scoreboard .scoreboard-stats {
    font-size: 7px;
  }

  .field-edge-scoreboard .scoreboard-score {
    font-size: 11px;
  }
}

/* Romania Map - Real SVG */
.romania-map {
  position: relative;
  width: 100%;
  max-width: 750px;
  margin: 0 auto;
  aspect-ratio: 1022 / 500;
}

.romania-map svg {
  width: 100%;
  height: 100%;
  display: block;
}

.romania-map svg path {
  stroke: rgba(255, 255, 255, 0.3);
  stroke-width: 0.5;
  transition: fill 0.3s, opacity 0.2s, filter 0.2s;
}

.romania-map svg path:hover {
  stroke: rgba(255, 255, 255, 0.8);
  stroke-width: 1;
}

.map-loading,
.map-error {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 300px;
  color: var(--text-muted);
  font-size: 0.875rem;
}

.map-error {
  color: var(--danger);
}

.map-controls {
  display: flex;
  gap: var(--space-3);
  align-items: center;
}

.map-metric-selector {
  max-width: 150px;
  background-color: var(--bg-secondary);
  color: var(--text-primary);
}

.map-legend {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin-top: var(--space-4);
  justify-content: center;
}

.map-legend-gradient {
  width: 160px;
  height: 12px;
  border-radius: 6px;
}

.map-legend-label {
  font-size: 12px;
  color: var(--text-secondary);
  font-weight: 500;
}

/* County labels on map */
.county-label {
  font-size: 11px;
  font-weight: 800;
  fill: #ffffff;
  text-anchor: middle;
  dominant-baseline: middle;
  paint-order: stroke fill;
  stroke: rgba(0, 0, 0, 0.8);
  stroke-width: 2.5px;
  stroke-linecap: round;
  stroke-linejoin: round;
  pointer-events: none;
}

/* Map tooltip */
.map-tooltip {
  position: absolute;
  background: rgba(20, 20, 30, 0.95);
  color: #fff;
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius-md);
  font-size: 13px;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.15s;
  z-index: 100;
  white-space: nowrap;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

.map-tooltip.visible {
  opacity: 1;
}

.map-tooltip-value {
  font-weight: 700;
  color: var(--accent);
  margin-left: var(--space-2);
}

.map-tooltip-leader {
  font-size: 12px;
  color: var(--text-secondary);
}

/* Fixed tooltip area below map */
.map-tooltip-area {
  min-height: 48px;
  padding: var(--space-2) var(--space-3);
  background: var(--bg-tertiary);
  border-radius: var(--radius-md);
  margin-top: var(--space-3);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.map-tooltip-hint {
  font-size: 13px;
  color: var(--text-muted);
}

.map-tooltip-content {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-4);
  flex-wrap: wrap;
}

.map-tooltip-content strong {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-primary);
}

.map-tooltip-content .map-tooltip-value {
  font-size: 16px;
  font-weight: 700;
  color: var(--accent);
  background: var(--bg-secondary);
  padding: var(--space-1) var(--space-2);
  border-radius: var(--radius-sm);
}

.map-tooltip-content .map-tooltip-leader {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: 13px;
  color: var(--text-secondary);
}

.map-tooltip-content .leader-color {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  display: inline-block;
  flex-shrink: 0;
}

/* ==========================================================================
   GEO RANKINGS - Combined Map + Rankings (Futuristic Style)
   ========================================================================== */

.geo-rankings-card {
  background: linear-gradient(135deg, rgba(15, 18, 25, 0.95), rgba(8, 10, 15, 0.98));
  border: 1px solid rgba(124, 138, 255, 0.15);
  overflow: hidden;
}

.geo-rankings-container {
  display: flex;
  gap: var(--space-4);
  min-height: 600px;
}

/* Left Panel - Rankings */
.geo-rankings-panel {
  flex: 0 0 45%;
  display: flex;
  flex-direction: column;
  padding: var(--space-4);
  background: linear-gradient(180deg, rgba(124, 138, 255, 0.03) 0%, transparent 100%);
  border-right: 1px solid rgba(124, 138, 255, 0.1);
}

.geo-rankings-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-4);
  padding-bottom: var(--space-3);
  border-bottom: 1px solid rgba(124, 138, 255, 0.1);
}

.geo-rankings-title {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.geo-rankings-icon {
  color: var(--accent);
  font-size: 14px;
  animation: pulse-glow 2s ease-in-out infinite;
}

@keyframes pulse-glow {
  0%, 100% { opacity: 0.6; text-shadow: 0 0 5px var(--accent); }
  50% { opacity: 1; text-shadow: 0 0 15px var(--accent); }
}

.geo-rankings-title h3 {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin: 0;
}

.geo-metric-selector {
  font-size: 11px;
  padding: 6px 8px;
  background: rgba(124, 138, 255, 0.1);
  border: 1px solid rgba(124, 138, 255, 0.2);
  max-width: 90px;
  line-height: 1;
  text-align: center;
}

.geo-rankings-list {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  overflow-y: auto;
}

.geo-rank-row {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-2);
  background: rgba(255, 255, 255, 0.02);
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  transition: all 0.2s ease;
  animation: fadeSlideIn 0.3s ease backwards;
  animation-delay: var(--delay, 0s);
}

@keyframes fadeSlideIn {
  from {
    opacity: 0;
    transform: translateX(-10px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.geo-rank-row:hover {
  background: rgba(124, 138, 255, 0.08);
  border-color: rgba(124, 138, 255, 0.2);
}

.geo-rank-position {
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  color: #fff;
  background: var(--entity-color, var(--accent));
  border-radius: 50%;
  box-shadow: 0 0 8px color-mix(in srgb, var(--entity-color, var(--accent)) 50%, transparent);
}

.geo-rank-entity {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  flex: 0 0 120px;
}

.geo-rank-entity .avatar {
  border: 1px solid var(--entity-color, var(--accent));
  box-shadow: 0 0 6px color-mix(in srgb, var(--entity-color, var(--accent)) 30%, transparent);
}

.geo-rank-name {
  font-size: 12px;
  font-weight: 500;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.geo-rank-bar-wrap {
  flex: 1;
  display: flex;
  align-items: center;
  gap: var(--space-2);
  min-width: 0;
}

.geo-rank-bar {
  flex: 1;
  height: 6px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 3px;
  overflow: hidden;
  position: relative;
}

.geo-rank-bar::after {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  width: var(--percent, 0%);
  background: linear-gradient(90deg, var(--bar-color, var(--accent)), color-mix(in srgb, var(--bar-color, var(--accent)) 60%, white));
  border-radius: 3px;
  transition: width 0.4s ease;
  box-shadow: 0 0 8px color-mix(in srgb, var(--bar-color, var(--accent)) 50%, transparent);
}

.geo-rank-value {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-secondary);
  min-width: 40px;
  text-align: right;
}

.geo-rank-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-3);
  height: 100%;
  min-height: 200px;
  color: var(--text-muted);
  text-align: center;
}

.geo-rank-empty-icon {
  font-size: 32px;
  opacity: 0.3;
  animation: pulse-glow 2s ease-in-out infinite;
}

.geo-rank-empty-text {
  font-size: 13px;
  max-width: 200px;
  line-height: 1.4;
}

.geo-rankings-hint {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  margin-top: var(--space-3);
  padding-top: var(--space-3);
  border-top: 1px solid rgba(124, 138, 255, 0.1);
  font-size: 11px;
  color: var(--text-muted);
}

.hint-icon {
  color: var(--accent);
  animation: bounce-arrow 1.5s ease-in-out infinite;
}

@keyframes bounce-arrow {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(3px, -3px); }
}

/* Right Panel - Map */
.geo-map-panel {
  flex: 0 0 55%;
  display: flex;
  flex-direction: column;
  padding: var(--space-4);
  min-width: 0;
}

.geo-map-frame {
  position: relative;
  flex: 1;
  border: 1px solid rgba(124, 138, 255, 0.2);
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, rgba(124, 138, 255, 0.02) 0%, rgba(0, 0, 0, 0.3) 100%);
  overflow: hidden;
}

/* Corner decorations */
.geo-map-corner {
  position: absolute;
  width: 20px;
  height: 20px;
  border: 2px solid var(--accent);
  z-index: 2;
}

.geo-map-corner--tl {
  top: -1px;
  left: -1px;
  border-right: none;
  border-bottom: none;
  border-top-left-radius: var(--radius-lg);
}

.geo-map-corner--tr {
  top: -1px;
  right: -1px;
  border-left: none;
  border-bottom: none;
  border-top-right-radius: var(--radius-lg);
}

.geo-map-corner--bl {
  bottom: -1px;
  left: -1px;
  border-right: none;
  border-top: none;
  border-bottom-left-radius: var(--radius-lg);
}

.geo-map-corner--br {
  bottom: -1px;
  right: -1px;
  border-left: none;
  border-top: none;
  border-bottom-right-radius: var(--radius-lg);
}

/* Scanline effect */
.geo-map-scanline {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  opacity: 0.4;
  animation: scanline 4s linear infinite;
  z-index: 1;
  pointer-events: none;
}

@keyframes scanline {
  0% { top: 0; opacity: 0.4; }
  50% { opacity: 0.6; }
  100% { top: 100%; opacity: 0.4; }
}

.geo-map-content {
  position: absolute;
  inset: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.geo-map-content.romania-map {
  max-width: none;
  aspect-ratio: auto;
}

.geo-map-content svg {
  max-width: 100%;
  max-height: 100%;
  filter: drop-shadow(0 0 20px rgba(124, 138, 255, 0.1));
}

.geo-map-content svg path {
  transition: all 0.3s ease;
}

.geo-map-content svg path:hover {
  filter: brightness(1.2);
}

/* Status bar */
.geo-map-status {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  margin-top: var(--space-3);
  padding: var(--space-2) var(--space-3);
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(124, 138, 255, 0.15);
  border-radius: var(--radius-md);
}

.status-dot {
  width: 8px;
  height: 8px;
  background: var(--accent);
  border-radius: 50%;
  opacity: 0.6;
  animation: status-pulse 2s ease-in-out infinite;
}

.status-dot.active {
  background: var(--positive);
  opacity: 1;
  box-shadow: 0 0 10px var(--positive);
}

@keyframes status-pulse {
  0%, 100% { opacity: 0.4; }
  50% { opacity: 0.8; }
}

.status-text {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 1px;
  color: var(--text-muted);
  text-transform: uppercase;
}

/* Responsive */
@media (max-width: 900px) {
  .geo-rankings-container {
    flex-direction: column;
  }

  .geo-rankings-panel {
    flex: none;
    border-right: none;
    border-bottom: 1px solid rgba(124, 138, 255, 0.1);
  }

  .geo-map-panel {
    min-height: 300px;
  }
}

/* Mugshot Wall - 3D Carousel */
/* Scale carousel to fit viewport while preserving proportions */
.holo-carousel {
  --carousel-scale: 0.78;
  position: relative;
  height: calc(720px * var(--carousel-scale));
  perspective: 1600px;
  perspective-origin: 50% 40%;
  overflow: visible;
  margin: var(--space-4) 0;
  touch-action: pan-x;
  overscroll-behavior: contain;
  /* Depth background */
  background:
    radial-gradient(ellipse at 50% 100%, rgba(139, 92, 246, 0.08) 0%, transparent 50%),
    radial-gradient(ellipse at 50% 50%, rgba(20, 20, 30, 0.5) 0%, transparent 70%);
}

/* Floor reflection effect */
.holo-carousel::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 10%;
  right: 10%;
  height: 1px;
  background: linear-gradient(90deg,
    transparent,
    rgba(139, 92, 246, 0.3) 20%,
    rgba(139, 92, 246, 0.5) 50%,
    rgba(139, 92, 246, 0.3) 80%,
    transparent
  );
  box-shadow: 0 0 20px rgba(139, 92, 246, 0.3);
}

.holo-carousel-track {
  position: absolute;
  width: 100%;
  height: calc(720px); /* Original height */
  top: 50%;
  transform: translateY(-50%) scale(var(--carousel-scale, 0.78));
  transform-style: preserve-3d;
  transform-origin: center center;
  cursor: grab;
  user-select: none;
  touch-action: pan-x;
  overscroll-behavior: contain;
}

.holo-carousel-track:active {
  cursor: grabbing;
}

.carousel-controls {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.carousel-controls .power-metric-selector {
  margin-left: auto;
}

.carousel-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--border-color);
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-secondary);
  font-size: 20px;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.carousel-btn:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
  box-shadow: 0 0 20px rgba(139, 92, 246, 0.4);
}

.carousel-indicators {
  display: flex;
  justify-content: center;
  gap: var(--space-2);
  padding: var(--space-3) 0;
}

.carousel-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 1px solid var(--border-color);
  background: transparent;
  cursor: pointer;
  transition: all 0.3s;
}

.carousel-dot:hover {
  border-color: var(--accent);
}

.carousel-dot.active {
  background: var(--accent);
  border-color: var(--accent);
  box-shadow: 0 0 10px var(--accent);
}

/* Holographic Card - 3D Carousel Item */
.holo-card {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 500px;
  height: 660px;
  margin-left: -250px;
  margin-top: -330px;
  display: flex;
  flex-direction: column;
  background: linear-gradient(135deg, rgba(15, 20, 30, 0.97), rgba(8, 12, 22, 0.99));
  border: 2px solid color-mix(in srgb, var(--entity-color) 50%, transparent);
  border-radius: var(--radius-xl);
  padding: var(--space-5);
  overflow: hidden;
  transform-style: preserve-3d;
  backface-visibility: hidden;
  transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
}

/* Card positioned in 3D space - calculated by JS */
.holo-card[data-position="center"] {
  z-index: 10;
  opacity: 1;
  filter: brightness(1.1);
  box-shadow:
    0 30px 60px rgba(0, 0, 0, 0.5),
    0 0 60px color-mix(in srgb, var(--entity-color) 40%, transparent);
}

.holo-card[data-position="left-1"],
.holo-card[data-position="right-1"] {
  z-index: 8;
  opacity: 0.85;
  filter: brightness(0.85);
}

.holo-card[data-position="left-2"],
.holo-card[data-position="right-2"] {
  z-index: 6;
  opacity: 0.6;
  filter: brightness(0.7);
}

.holo-card[data-position="hidden"] {
  z-index: 1;
  opacity: 0;
  pointer-events: none;
}

.holo-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg,
    color-mix(in srgb, var(--entity-color) 8%, transparent),
    transparent 50%);
  pointer-events: none;
}

/* Holographic shine effect - only on center card */
.holo-card[data-position="center"]::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(
    45deg,
    transparent 30%,
    rgba(255, 255, 255, 0.08) 50%,
    transparent 70%
  );
  animation: holo-shine 3s ease-in-out infinite;
  pointer-events: none;
}

@keyframes holo-shine {
  0% { transform: translateX(-100%) translateY(-100%) rotate(45deg); }
  100% { transform: translateX(100%) translateY(100%) rotate(45deg); }
}

/* Scanline only on center */
.holo-card[data-position="center"] .holo-scanline {
  opacity: 0.5;
}

.holo-card:not([data-position="center"]) .holo-scanline {
  opacity: 0;
}

/* Scanline animation */
.holo-scanline {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--entity-color), transparent);
  opacity: 0.5;
  animation: scanline 3s linear infinite;
}

@keyframes scanline {
  0% { top: 0; opacity: 0; }
  10% { opacity: 0.5; }
  90% { opacity: 0.5; }
  100% { top: 100%; opacity: 0; }
}

/* HUD Corners */
.holo-corner {
  position: absolute;
  width: 20px;
  height: 20px;
  border-color: var(--entity-color);
  border-style: solid;
  opacity: 0.6;
}

.holo-corner--tl { top: 0; left: 0; border-width: 2px 0 0 2px; }
.holo-corner--tr { top: 0; right: 0; border-width: 2px 2px 0 0; }
.holo-corner--bl { bottom: 0; left: 0; border-width: 0 0 2px 2px; }
.holo-corner--br { bottom: 0; right: 0; border-width: 0 2px 2px 0; }

/* Header */
.holo-header {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin-bottom: var(--space-3);
  position: relative;
  z-index: 1;
}

.holo-avatar {
  position: relative;
  flex-shrink: 0;
}

.holo-avatar .avatar {
  border: 2px solid var(--entity-color);
  box-shadow: 0 0 20px color-mix(in srgb, var(--entity-color) 40%, transparent);
}

.holo-avatar-ring {
  position: absolute;
  inset: -6px;
  border: 1px solid var(--entity-color);
  border-radius: 50%;
  opacity: 0.4;
  animation: pulse-ring 2s ease-out infinite;
}

@keyframes pulse-ring {
  0% { transform: scale(1); opacity: 0.4; }
  100% { transform: scale(1.3); opacity: 0; }
}

.holo-avatar-scan {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: linear-gradient(180deg, transparent 40%, var(--entity-color) 50%, transparent 60%);
  opacity: 0.3;
  animation: avatar-scan 2s linear infinite;
}

@keyframes avatar-scan {
  0% { transform: translateY(-100%); }
  100% { transform: translateY(100%); }
}

.holo-identity {
  flex: 1;
  min-width: 0;
}

.holo-name {
  display: block;
  font-size: 22px;
  font-weight: 700;
  color: #fff;
  text-shadow: 0 0 15px color-mix(in srgb, var(--entity-color) 60%, transparent);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  letter-spacing: 0.5px;
}

.holo-id {
  font-size: 12px;
  font-family: 'Courier New', monospace;
  color: var(--entity-color);
  letter-spacing: 2px;
  opacity: 0.9;
  margin-top: 4px;
}

/* Power Ring */
.holo-power {
  position: relative;
  width: 64px;
  height: 64px;
}

.holo-power-ring {
  width: 100%;
  height: 100%;
  filter: drop-shadow(0 0 8px var(--entity-color));
}

.holo-power-value {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: 700;
  color: #fff;
  text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

/* Stats Row */
.holo-stats {
  display: flex;
  justify-content: space-around;
  padding: var(--space-3) 0;
  margin-bottom: var(--space-3);
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.02);
  border-radius: var(--radius);
  position: relative;
  z-index: 1;
}

.holo-stat {
  text-align: center;
}

.holo-stat-value {
  display: block;
  font-size: 24px;
  font-weight: 700;
  color: #fff;
  text-shadow: 0 0 12px color-mix(in srgb, var(--entity-color) 60%, transparent);
}

.holo-stat-label {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 1.5px;
  color: rgba(255, 255, 255, 0.6);
  margin-top: 2px;
}

/* Sections */
.holo-section {
  margin-bottom: var(--space-3);
  position: relative;
  z-index: 1;
  flex: 1;
}

.holo-section:last-child {
  margin-bottom: 0;
}

.holo-section-header {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  margin-bottom: var(--space-2);
}

.holo-section-icon {
  color: var(--entity-color);
  font-size: 14px;
  filter: drop-shadow(0 0 4px var(--entity-color));
}

.holo-section-title {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 2px;
  color: rgba(255, 255, 255, 0.7);
  text-shadow: 0 0 10px rgba(255, 255, 255, 0.2);
}

/* Data Grid */
.holo-data-grid {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.holo-data-row {
  display: grid;
  grid-template-columns: 1fr 100px 50px;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-3);
  background: rgba(255, 255, 255, 0.04);
  border-radius: var(--radius);
  border-left: 3px solid color-mix(in srgb, var(--entity-color) 60%, transparent);
  transition: all 0.2s;
}

.holo-data-row:hover {
  background: rgba(255, 255, 255, 0.08);
  border-left-color: var(--entity-color);
  transform: translateX(4px);
}

.holo-data-label {
  font-size: 14px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.95);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.holo-data-bar {
  height: 6px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 3px;
  overflow: hidden;
}

.holo-data-fill {
  height: 100%;
  background: var(--glow-color, var(--entity-color));
  border-radius: 3px;
  box-shadow: 0 0 12px var(--glow-color, var(--entity-color));
  transition: width 0.5s ease;
}

.holo-data-value {
  font-size: 14px;
  font-weight: 700;
  font-family: 'Courier New', monospace;
  color: #fff;
  text-align: right;
  text-shadow: 0 0 8px color-mix(in srgb, var(--entity-color) 50%, transparent);
}

.holo-empty {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.4);
  font-style: italic;
  letter-spacing: 2px;
  text-align: center;
  padding: var(--space-3);
}

/* Legend */
.investigation-legend {
  display: flex;
  justify-content: center;
  gap: var(--space-6);
  margin-top: var(--space-4);
  padding-top: var(--space-3);
  border-top: 1px solid var(--border-color);
}

.investigation-legend-item {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: 11px;
  color: var(--text-muted);
  letter-spacing: 0.5px;
}

.legend-marker {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  box-shadow: 0 0 6px currentColor;
}

.legend-marker--county {
  background: var(--accent);
  color: var(--accent);
}

.legend-marker--source {
  background: var(--positive);
  color: var(--positive);
}

.power-metric-selector {
  background-color: var(--bg-secondary);
  color: var(--text-primary);
}

/* Analytics Mobile */
@media (max-width: 767px) {
  .h2h-comparison {
    grid-template-columns: 80px 1fr 80px;
    gap: var(--space-2);
  }

  .h2h-metric-row {
    grid-template-columns: 55px 1fr 55px;
  }

  .ranking-entity {
    min-width: 90px;
  }

  .ranking-entity span {
    display: none;
  }

  .bubble-chart {
    height: 300px;
  }

  .romania-map {
    min-height: 250px;
  }

  .romania-map svg path {
    stroke-width: 0.3;
  }

  .fighters-arena {
    gap: var(--space-2);
    padding: var(--space-1);
  }

  .fighter-card {
    padding: var(--space-2);
  }

  .fighter-icon-wrapper {
    width: 56px;
    height: 56px;
  }

  .fighter-stats {
    gap: var(--space-1);
  }

  .fighter-stat {
    padding: 2px var(--space-1);
    min-width: 36px;
  }

  .fighter-stat .stat-value {
    font-size: 10px;
  }

  .fighter-stat .stat-label {
    font-size: 8px;
  }

  .fighters-legend {
    flex-wrap: wrap;
    gap: var(--space-2);
  }
}

/* ==========================================================================
   SETTINGS VIEW
   ========================================================================== */

.settings-section {
  position: relative;
  overflow: hidden;
}

.settings-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(124, 138, 255, 0.6), transparent);
  animation: settings-scan 5s ease-in-out infinite;
}

@keyframes settings-scan {
  0%, 100% { left: -100%; }
  50% { left: 100%; }
}

.settings-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  color: var(--accent);
}

.settings-icon svg {
  width: 20px;
  height: 20px;
}

.settings-description {
  font-size: 0.875rem;
  color: var(--text-secondary);
  margin-bottom: var(--space-4);
  line-height: 1.5;
}

.settings-hint {
  display: block;
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: var(--space-2);
}

/* Entity Set Selector */
.entity-set-selector {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.entity-set-option {
  cursor: pointer;
}

.entity-set-option input {
  display: none;
}

.entity-set-card {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--space-3) var(--space-4);
  background: var(--bg-tertiary);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-md);
  transition: all 0.2s ease;
}

.entity-set-option:hover .entity-set-card {
  border-color: rgba(124, 138, 255, 0.3);
  background: rgba(124, 138, 255, 0.05);
}

.entity-set-option.selected .entity-set-card {
  border-color: var(--accent);
  background: rgba(124, 138, 255, 0.1);
  box-shadow: 0 0 20px rgba(124, 138, 255, 0.15);
}

.entity-set-name {
  font-weight: 500;
  color: var(--text-primary);
}

.entity-set-count {
  font-size: 0.75rem;
  color: var(--text-muted);
  background: var(--bg-secondary);
  padding: 2px 8px;
  border-radius: var(--radius-sm);
}

/* Notification Cards */
.notification-channels {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.notification-card {
  padding: var(--space-3) var(--space-4);
  background: var(--bg-tertiary);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-md);
  transition: all 0.2s ease;
}

.notification-card:hover {
  border-color: rgba(255, 255, 255, 0.1);
}

.notification-card-header {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.notification-icon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
  flex-shrink: 0;
}

.notification-icon svg {
  width: 22px;
  height: 22px;
}

.email-icon {
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.2), rgba(59, 130, 246, 0.1));
  color: #60a5fa;
}

.telegram-icon {
  background: linear-gradient(135deg, rgba(0, 136, 204, 0.2), rgba(0, 136, 204, 0.1));
  color: #29b6f6;
}

.whatsapp-icon {
  background: linear-gradient(135deg, rgba(37, 211, 102, 0.2), rgba(37, 211, 102, 0.1));
  color: #25d366;
}

.notification-info {
  flex: 1;
}

.notification-title {
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--text-primary);
  margin: 0;
}

.notification-status {
  font-size: 0.75rem;
  font-weight: 500;
}

.status-active {
  color: var(--positive);
}

.status-inactive {
  color: var(--text-muted);
}

/* Toggle Switch */
.toggle-switch {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 24px;
  flex-shrink: 0;
}

.toggle-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.toggle-slider {
  position: absolute;
  cursor: pointer;
  inset: 0;
  background: var(--bg-secondary);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 24px;
  transition: all 0.3s ease;
}

.toggle-slider::before {
  content: '';
  position: absolute;
  height: 18px;
  width: 18px;
  left: 2px;
  bottom: 2px;
  background: var(--text-muted);
  border-radius: 50%;
  transition: all 0.3s ease;
}

.toggle-switch input:checked + .toggle-slider {
  background: rgba(124, 138, 255, 0.2);
  border-color: var(--accent);
}

.toggle-switch input:checked + .toggle-slider::before {
  transform: translateX(20px);
  background: var(--accent);
  box-shadow: 0 0 10px rgba(124, 138, 255, 0.5);
}

/* Settings Toggle Row */
.settings-toggle-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--space-3) 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.settings-toggle-row:last-child {
  border-bottom: none;
}

.settings-toggle-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.settings-toggle-label {
  font-size: 0.9375rem;
  color: var(--text-primary);
}

.settings-toggle-sublabel {
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* Settings Preferences */
.settings-preferences {
  display: flex;
  flex-direction: column;
}

/* Save Indicator */
.settings-save-indicator {
  position: fixed;
  bottom: var(--space-5);
  right: var(--space-5);
  display: flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-4);
  background: var(--bg-glass);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(34, 197, 94, 0.3);
  border-radius: var(--radius-md);
  color: var(--positive);
  font-size: 0.875rem;
  font-weight: 500;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.3s ease;
  pointer-events: none;
  z-index: 100;
}

.settings-save-indicator.visible {
  opacity: 1;
  transform: translateY(0);
}

.settings-save-indicator svg {
  color: var(--positive);
}

/* Buttons in Settings */
.settings-section .btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
}

.settings-section .btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Responsive */
@media (max-width: 768px) {
  .entity-set-card {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-2);
  }

  .notification-card-header {
    flex-wrap: wrap;
  }

  .settings-save-indicator {
    left: var(--space-4);
    right: var(--space-4);
    bottom: var(--space-4);
    justify-content: center;
  }
}

/* ==========================================================================
   ALERTS VIEW
   ========================================================================== */

/* Stats Cards */
.alerts-stat-card {
  text-align: center;
}

.alerts-stat {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
}

.alerts-stat-value {
  font-size: 2rem;
  font-weight: 700;
  color: var(--text-primary);
}

.alerts-stat-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Filters */
.alerts-filters-card {
  padding: var(--space-4);
}

.alerts-filters {
  display: flex;
  align-items: flex-end;
  gap: var(--space-4);
  flex-wrap: wrap;
}

.filter-group {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
}

.filter-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.alerts-filters .select--compact {
  min-width: 160px;
}

.alerts-filters .btn-sm {
  padding: 8px 12px;
  font-size: 0.8125rem;
}

/* Timeline Card */
.alerts-timeline-card {
  position: relative;
  overflow: hidden;
}

.alerts-timeline-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(124, 138, 255, 0.6), transparent);
  animation: alerts-scan 5s ease-in-out infinite;
}

@keyframes alerts-scan {
  0%, 100% { left: -100%; }
  50% { left: 100%; }
}

.alerts-title-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  color: var(--accent);
}

.alerts-title-icon svg {
  width: 20px;
  height: 20px;
}

/* Timeline */
.alerts-timeline {
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
}

.alerts-day-group {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.alerts-day-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: var(--space-2);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.alerts-day-label {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-primary);
  text-transform: capitalize;
}

.alerts-day-count {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.alerts-day-items {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

/* Alert Item */
.alert-item {
  display: flex;
  gap: var(--space-3);
  padding: var(--space-3);
  background: var(--bg-tertiary);
  border: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: var(--radius-md);
  transition: all 0.2s ease;
}

.alert-item:hover {
  border-color: rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.02);
}

.alert-icon {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: color-mix(in srgb, var(--alert-color) 15%, transparent);
  border-radius: var(--radius-md);
  flex-shrink: 0;
}

.alert-icon svg {
  width: 18px;
  height: 18px;
  color: var(--alert-color);
}

.alert-content {
  flex: 1;
  min-width: 0;
}

.alert-header {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  margin-bottom: var(--space-1);
}

.alert-entity {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-primary);
}

.alert-type-badge {
  font-size: 0.625rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 2px 6px;
  border-radius: var(--radius-sm);
  background: color-mix(in srgb, var(--alert-color) 15%, transparent);
  color: var(--alert-color);
}

.alert-message {
  font-size: 0.8125rem;
  color: var(--text-secondary);
  line-height: 1.4;
  margin: 0 0 var(--space-2) 0;
}

.alert-meta {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.alert-time {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.alert-channel {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  color: var(--text-muted);
}

.alert-channel svg {
  width: 14px;
  height: 14px;
}

.alert-status {
  font-size: 0.6875rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.status-sent {
  color: var(--positive);
}

.status-error {
  color: var(--negative);
}

.status-pending {
  color: var(--warning);
}

/* Empty State */
.alerts-empty {
  padding: var(--space-6);
}

.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-3);
  text-align: center;
}

.empty-icon {
  width: 48px;
  height: 48px;
  color: var(--text-muted);
  opacity: 0.5;
}

.empty-text {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin: 0;
}

/* Responsive */
@media (max-width: 768px) {
  .alerts-filters {
    flex-direction: column;
    align-items: stretch;
  }

  .filter-group {
    width: 100%;
  }

  .alerts-filters .select--compact {
    width: 100%;
    min-width: unset;
  }

  .alerts-filters .btn-sm {
    width: 100%;
    justify-content: center;
  }

  .alert-header {
    flex-wrap: wrap;
  }
}

/* ==========================================================================
   MOBILE OPTIMIZATIONS (max-width: 639px)
   ========================================================================== */

@media (max-width: 639px) {
  /* Sentiment Landscape - compact pentru mobil */
  .sentiment-landscape {
    height: 320px;
    padding: 24px 16px;
  }

  .landscape-quadrant {
    font-size: 0.4rem;
    display: none; /* Ascunde pe mobil - prea aglomerat */
  }

  .landscape-axis {
    font-size: 0.5rem;
  }

  .landscape-axis--left,
  .landscape-axis--right {
    display: none; /* Ascunde axele laterale pe mobil */
  }

  .landscape-bubble {
    min-width: 50px !important;
    min-height: 50px !important;
  }

  .landscape-bubble-initials {
    font-size: 0.75rem;
  }

  .landscape-bubble-value {
    font-size: 0.625rem;
  }

  .landscape-bubble-label {
    font-size: 0.5rem;
    max-width: 60px;
  }

  .landscape-skyline {
    opacity: 0.5; /* Mai subtil pe mobil */
  }

  /* KPIs - 2x2 grid pe mobil */
  .landscape-kpis {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-2);
    padding: var(--space-3);
  }

  .landscape-kpi {
    padding: var(--space-2);
  }

  .landscape-kpi-value {
    font-size: 1.25rem;
  }

  .landscape-kpi-label {
    font-size: 0.625rem;
  }

  .landscape-legend {
    flex-wrap: wrap;
    gap: var(--space-2);
    justify-content: center;
  }

  .landscape-legend-item {
    font-size: 0.625rem;
  }

  /* Coverage Matrix - scrollabil pe mobil */
  .coverage-matrix {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .coverage-row {
    min-width: 400px;
  }

  .coverage-header {
    min-width: 400px;
  }

  .coverage-name {
    font-size: 0.75rem;
    max-width: 100px;
  }

  /* Feed items - layout compact */
  .feed-item--enhanced {
    padding: var(--space-2);
    gap: var(--space-2);
  }

  .feed-item--enhanced .feed-time {
    font-size: 0.625rem;
    min-width: 45px;
  }

  .feed-item--enhanced .feed-title {
    font-size: 0.8125rem;
    -webkit-line-clamp: 2;
  }

  .feed-item--enhanced .feed-meta {
    font-size: 0.6875rem;
  }

  .feed-item--enhanced .feed-score {
    font-size: 0.75rem;
    min-width: 32px;
  }

  /* Movers list - compact */
  .mover-item {
    padding: var(--space-1) var(--space-2);
  }

  .mover-name {
    font-size: 0.8125rem;
  }

  .mover-delta {
    font-size: 0.8125rem;
  }

  /* Cards - padding redus */
  .card {
    padding: var(--space-3);
  }

  .card-header {
    margin-bottom: var(--space-3);
  }

  .card-title {
    font-size: 0.9375rem;
  }

  /* Stat cards */
  .stat-value {
    font-size: 1.5rem;
  }

  .stat-label {
    font-size: 0.6875rem;
  }

  /* Dual panel - mai mult spațiu pe verticală */
  .dual-panel {
    gap: var(--space-3);
  }

  .dual-panel-section {
    min-height: auto;
  }

  /* Alerts list */
  .alerts-list {
    gap: var(--space-2);
  }

  .alert-card {
    padding: var(--space-2);
  }

  /* Typography adjustments */
  .view-title {
    font-size: 1.25rem;
  }

  .view-subtitle {
    font-size: 0.8125rem;
  }

  .section-title {
    font-size: 1rem;
  }
}

/* ==========================================================================
   ALERTS VIEW - Real alerts from entity status signals
   ========================================================================== */

.alerts-active-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.alert-entity-card {
  display: block;
  padding: 1rem 1.25rem;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  transition: all 0.2s ease;
  text-decoration: none;
  color: inherit;
}

.alert-entity-card:hover {
  background: rgba(255, 255, 255, 0.06);
  transform: translateX(4px);
}

.alert-entity-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.5rem;
}

.alert-entity-left {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.alert-severity-icon {
  font-size: 1.25rem;
  flex-shrink: 0;
}

.alert-entity-info {
  display: flex;
  flex-direction: column;
}

.alert-entity-name {
  font-weight: 600;
  font-size: 0.95rem;
}

.alert-entity-role {
  font-size: 0.8rem;
}

.alert-entity-description {
  padding: 0.5rem 0;
  font-size: 0.875rem;
  color: var(--text-secondary, #94a3b8);
  line-height: 1.4;
}

.alert-entity-metrics {
  display: flex;
  gap: 1.25rem;
  flex-wrap: wrap;
  padding-top: 0.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.alert-metric {
  display: flex;
  flex-direction: column;
  gap: 0.125rem;
}

.alert-metric-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-secondary, #94a3b8);
}

.alert-metric-value {
  font-size: 0.9rem;
  font-weight: 600;
  display: flex;
  align-items: center;
}

.sparkline-mini {
  display: inline-block;
  vertical-align: middle;
}

/* Stable entities grid */
.alert-stable-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 0.5rem;
  padding: 0.5rem 0;
}

.alert-stable-card {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.75rem;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.04);
  text-decoration: none;
  color: inherit;
  transition: background 0.2s;
}

.alert-stable-card:hover {
  background: rgba(255, 255, 255, 0.05);
}

.alert-stable-info {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-width: 0;
}

.alert-stable-name {
  font-weight: 500;
  font-size: 0.875rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

@media (max-width: 768px) {
  .alert-entity-metrics {
    gap: 0.75rem;
  }

  .alert-stable-grid {
    grid-template-columns: 1fr;
  }
}
