/* Dashboard CSS — imports the main stylesheet */
@import url('style.css');

/* ============================================================
   Core Layout & Component Styles (BEM)
   ============================================================ */

/* --- App Wrapper --- */
.app-wrapper {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.25rem 3rem;
  position: relative;
  z-index: 1;
}

.app-wrapper--wide {
  max-width: 1400px;
}

/* --- Header --- */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 0;
  margin-bottom: 0.5rem;
  background: rgba(7, 7, 13, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

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

.header__logo {
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 0.85rem;
  color: #fff;
  flex-shrink: 0;
}

.header__title {
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-primary, #e8e8f0);
}

.header__subtitle {
  font-size: 0.6rem;
  font-weight: 400;
  letter-spacing: 0.08em;
  color: var(--text-muted, #5a5a78);
  text-transform: uppercase;
}

.header__persona-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary, #e8e8f0);
}

.header__persona-role {
  font-size: 0.75rem;
  color: var(--text-muted, #5a5a78);
}

.header__meta {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  color: var(--text-secondary, #9898b0);
}

.header__live-dot {
  width: 8px;
  height: 8px;
  background: #00ff88;
  border-radius: 50%;
  animation: pulse-green 3s ease-in-out infinite;
}

.header__timestamp {
  font-family: var(--font-mono, 'SF Mono', monospace);
  font-size: 0.72rem;
  color: var(--text-muted, #5a5a78);
}

/* --- Navigation --- */
.nav {
  display: flex;
  gap: 0.25rem;
  padding: 0.5rem 0;
  margin-bottom: 1.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.nav__link {
  padding: 0.4rem 0.75rem;
  border-radius: 6px;
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--text-secondary, #9898b0);
  text-decoration: none;
  transition: all 0.15s ease;
  white-space: nowrap;
  border: 1px solid transparent;
}

.nav__link:hover {
  color: var(--text-primary, #e8e8f0);
  background: rgba(255, 255, 255, 0.04);
}

.nav__link--active {
  color: #818cf8;
  background: rgba(99, 102, 241, 0.1);
  border-color: rgba(99, 102, 241, 0.25);
}

/* --- Dashboard Layout --- */
.dashboard-layout {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.dashboard-layout--full {
  grid-template-columns: 1fr;
}

@media (max-width: 900px) {
  .dashboard-layout {
    grid-template-columns: 1fr;
  }
}

/* --- Sidebar --- */
.sidebar {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

/* --- Widget --- */
.widget {
  padding: 1.25rem;
  background: rgba(22, 22, 37, 0.65);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  transition: all 0.25s ease;
}

.widget:hover {
  border-color: rgba(99, 102, 241, 0.2);
}

.widget__title {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted, #5a5a78);
  margin-bottom: 0.75rem;
  font-weight: 600;
}

.widget__value {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--text-primary, #e8e8f0);
  font-variant-numeric: tabular-nums;
  font-family: var(--font-mono, 'SF Mono', monospace);
}

.widget__change {
  font-size: 0.78rem;
  font-weight: 500;
  margin-top: 0.2rem;
}

.widget__change--positive { color: #00ff88; }
.widget__change--negative { color: #ff4444; }
.widget__change--neutral { color: var(--text-muted, #5a5a78); }

.widget__chart {
  margin-top: 0.75rem;
  height: 80px;
}

/* --- Traffic Card --- */
.traffic-card {
  display: flex;
  flex-direction: column;
  padding: 1.25rem;
  background: rgba(22, 22, 37, 0.65);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  transition: all 0.25s ease;
  cursor: pointer;
}

.traffic-card:hover {
  border-color: rgba(99, 102, 241, 0.25);
  transform: translateY(-1px);
}

.traffic-card__header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.traffic-card__icon {
  font-size: 1.3rem;
  flex-shrink: 0;
}

.traffic-card__title {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-primary, #e8e8f0);
}

.traffic-card__count {
  font-size: 0.7rem;
  color: var(--text-muted, #5a5a78);
  margin-top: 2px;
}

.traffic-card__severity-indicator {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  margin-left: auto;
  flex-shrink: 0;
}

.traffic-card__severity-indicator[data-severity="green"] {
  background: #00ff88;
  box-shadow: 0 0 12px rgba(0, 255, 136, 0.4);
  animation: pulse-green 3s ease-in-out infinite;
}

.traffic-card__severity-indicator[data-severity="yellow"] {
  background: #ffaa00;
  box-shadow: 0 0 12px rgba(255, 170, 0, 0.4);
  animation: pulse-yellow 2.5s ease-in-out infinite;
}

.traffic-card__severity-indicator[data-severity="red"] {
  background: #ff4444;
  box-shadow: 0 0 12px rgba(255, 68, 68, 0.4);
  animation: pulse-red 2s ease-in-out infinite;
}

.traffic-card__latest {
  font-size: 0.82rem;
  color: var(--text-secondary, #9898b0);
  margin-top: 0.75rem;
  line-height: 1.4;
}

.traffic-card__meta {
  font-size: 0.7rem;
  color: var(--text-muted, #5a5a78);
  margin-top: 0.4rem;
}

.traffic-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

/* --- Signal Card --- */
.signal-card {
  display: flex;
  gap: 0;
  background: rgba(22, 22, 37, 0.65);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 10px;
  margin-bottom: 0.5rem;
  overflow: hidden;
  transition: all 0.25s ease;
}

.signal-card:hover {
  border-color: rgba(99, 102, 241, 0.2);
  transform: translateX(3px);
}

.signal-card__severity {
  width: 4px;
  flex-shrink: 0;
  align-self: stretch;
}

.signal-card__severity[data-severity="green"] { background: #00ff88; }
.signal-card__severity[data-severity="yellow"] { background: #ffaa00; }
.signal-card__severity[data-severity="red"] { background: #ff4444; }

.signal-card__body {
  flex: 1;
  padding: 0.8rem 1rem;
  min-width: 0;
}

.signal-card__category {
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.3rem;
}

.signal-card__title {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-primary, #e8e8f0);
  margin-bottom: 0.3rem;
  line-height: 1.3;
}

.signal-card__summary {
  font-size: 0.8rem;
  color: var(--text-secondary, #9898b0);
  line-height: 1.5;
}

.signal-card__footer {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.5rem;
  font-size: 0.7rem;
  color: var(--text-muted, #5a5a78);
  flex-wrap: wrap;
}

.signal-card__source {
  font-weight: 500;
}

.signal-feed__title {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-primary, #e8e8f0);
  margin-bottom: 0.75rem;
}

/* --- Stats Row --- */
.stats-row {
  display: flex;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 0.25rem;
}

.stat-card {
  flex: 1;
  min-width: 90px;
  padding: 0.75rem 1rem;
  background: rgba(22, 22, 37, 0.65);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 10px;
  text-align: center;
  flex-shrink: 0;
}

.stat-card__value {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--text-primary, #e8e8f0);
  font-variant-numeric: tabular-nums;
  font-family: var(--font-mono, 'SF Mono', monospace);
  line-height: 1;
}

.stat-card__label {
  font-size: 0.6rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted, #5a5a78);
  margin-top: 0.3rem;
}

/* --- Section Header --- */
.section-header {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-primary, #e8e8f0);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.75rem;
  margin-top: 1.5rem;
}

/* --- Summary Box --- */
.summary-box {
  padding: 1.25rem;
  margin-bottom: 1.5rem;
  background: rgba(22, 22, 37, 0.65);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  border-left: 4px solid #6366f1;
}

.summary-box__title {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted, #5a5a78);
  margin-bottom: 0.5rem;
  font-weight: 600;
}

.summary-box__text {
  font-size: 0.9rem;
  line-height: 1.7;
  color: var(--text-secondary, #9898b0);
}

/* --- Glass Card --- */
.glass-card {
  background: rgba(22, 22, 37, 0.65);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 16px;
  padding: 1.5rem;
  position: relative;
}

.glass-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.08), transparent);
}

/* --- News Card --- */
.news-card {
  padding: 0.6rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.news-card__source {
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #818cf8;
  font-weight: 600;
  margin-bottom: 0.2rem;
}

.news-card__title {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-primary, #e8e8f0);
  line-height: 1.4;
}

.news-card__summary {
  font-size: 0.75rem;
  color: var(--text-secondary, #9898b0);
  margin-top: 0.2rem;
  line-height: 1.4;
}

.news-card__date {
  font-size: 0.65rem;
  color: var(--text-muted, #5a5a78);
  margin-top: 0.2rem;
}

/* --- Competitor Card --- */
.competitor-card {
  padding: 1.25rem;
  background: rgba(22, 22, 37, 0.65);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  transition: all 0.25s ease;
}

.competitor-card:hover {
  border-color: rgba(99, 102, 241, 0.2);
}

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

.competitor-card__name {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-primary, #e8e8f0);
}

.competitor-card__threat {
  font-size: 0.6rem;
  font-weight: 700;
  padding: 0.15rem 0.5rem;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.competitor-card__threat--high { background: rgba(255, 68, 68, 0.1); color: #ff4444; border: 1px solid rgba(255, 68, 68, 0.2); }
.competitor-card__threat--medium { background: rgba(255, 170, 0, 0.1); color: #ffaa00; border: 1px solid rgba(255, 170, 0, 0.2); }
.competitor-card__threat--low { background: rgba(0, 255, 136, 0.1); color: #00ff88; border: 1px solid rgba(0, 255, 136, 0.2); }

.competitor-card__stats {
  display: flex;
  gap: 1.5rem;
  margin-bottom: 0.75rem;
}

.competitor-card__stat-label {
  font-size: 0.6rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted, #5a5a78);
}

.competitor-card__stat-value {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-primary, #e8e8f0);
  font-variant-numeric: tabular-nums;
}

.competitor-card__strengths {
  display: flex;
  gap: 0.3rem;
  flex-wrap: wrap;
  margin-bottom: 0.75rem;
}

.competitor-card__strength {
  font-size: 0.65rem;
  padding: 0.15rem 0.5rem;
  background: rgba(99, 102, 241, 0.1);
  border: 1px solid rgba(99, 102, 241, 0.15);
  border-radius: 4px;
  color: #818cf8;
}

.competitor-card__activity {
  font-size: 0.78rem;
  color: var(--text-secondary, #9898b0);
  padding-top: 0.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.04);
  border-left: 3px solid;
  padding-left: 0.5rem;
  line-height: 1.5;
}

/* --- Merger Progress --- */
.merger-progress {
  margin-bottom: 0.5rem;
}

.merger-progress__bar-track {
  height: 8px;
  background: rgba(255, 255, 255, 0.04);
  border-radius: 4px;
  overflow: hidden;
}

.merger-progress__bar-fill {
  height: 100%;
  border-radius: 4px;
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
  transition: width 1.5s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
}

.merger-progress__bar-fill::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  animation: progress-shimmer 2s ease-in-out infinite;
}

@keyframes progress-shimmer {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

.merger-progress__label {
  display: flex;
  justify-content: space-between;
  margin-top: 0.4rem;
  font-size: 0.75rem;
}

.merger-progress__phase {
  color: var(--text-secondary, #9898b0);
}

.merger-progress__pct {
  color: #818cf8;
  font-weight: 600;
  font-family: var(--font-mono, 'SF Mono', monospace);
}

/* --- Merger Timeline (charts.js renders) --- */
.merger-timeline {
  position: relative;
  padding-left: 2rem;
}

.merger-timeline::before {
  content: '';
  position: absolute;
  left: 11px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: rgba(99, 102, 241, 0.2);
}

.timeline-item {
  position: relative;
  padding-bottom: 1.5rem;
  padding-left: 1rem;
}

.timeline-item:last-child { padding-bottom: 0; }

.timeline-item__dot {
  position: absolute;
  left: -2rem;
  top: 4px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  z-index: 1;
  border: 2px solid rgba(99, 102, 241, 0.3);
  background: var(--surface, #0e0e18);
}

.timeline-item__dot--completed {
  background: #00ff88;
  border-color: #00ff88;
}

.timeline-item__dot--in_progress {
  background: #ffaa00;
  border-color: #ffaa00;
  box-shadow: 0 0 12px rgba(255, 170, 0, 0.4);
}

.timeline-item__dot--pending {
  background: var(--surface, #0e0e18);
  border-color: rgba(255, 255, 255, 0.15);
}

.timeline-item__date {
  font-size: 0.72rem;
  color: #818cf8;
  font-weight: 600;
  margin-bottom: 0.2rem;
}

.timeline-item__milestone {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-primary, #e8e8f0);
  margin-bottom: 0.2rem;
}

.timeline-item__description {
  font-size: 0.78rem;
  color: var(--text-secondary, #9898b0);
  line-height: 1.5;
  margin-bottom: 0.3rem;
}

.timeline-item__status-badge {
  display: inline-block;
  font-size: 0.6rem;
  font-weight: 700;
  padding: 0.15rem 0.5rem;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.timeline-item__status-badge--completed { background: rgba(0, 255, 136, 0.1); color: #00ff88; }
.timeline-item__status-badge--in_progress { background: rgba(255, 170, 0, 0.1); color: #ffaa00; }
.timeline-item__status-badge--pending { background: rgba(255, 255, 255, 0.04); color: rgba(232, 232, 240, 0.35); }

/* --- Impact Grid --- */
.impact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 2rem;
}

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

.impact-card {
  padding: 1.25rem;
  background: rgba(22, 22, 37, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
}

.impact-card--opportunities { border-top: 3px solid #00ff88; }
.impact-card--risks { border-top: 3px solid #ff4444; }

.impact-card__title {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.75rem;
}

.impact-card__title--opportunities { color: #00ff88; }
.impact-card__title--risks { color: #ff4444; }

.impact-card__list {
  list-style: none;
  padding: 0;
}

/* --- FX Chart Container --- */
.fx-chart-container {
  width: 100%;
  height: 180px;
  position: relative;
}

.fx-chart-container--large {
  height: 240px;
}

/* --- Page Footer --- */
.page-footer {
  padding: 1.5rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.04);
  text-align: center;
  font-size: 0.7rem;
  color: var(--text-muted, #5a5a78);
  margin-top: 3rem;
}

/* --- Utility classes --- */
.mb-16 { margin-bottom: 16px; }
.mb-32 { margin-bottom: 32px; }
.mt-32 { margin-top: 32px; }
.text-green { color: #00ff88 !important; }
.text-yellow { color: #ffaa00 !important; }
.text-red { color: #ff4444 !important; }
.text-muted { color: var(--text-muted, #5a5a78) !important; }

/* --- Category color vars --- */
:root {
  --cat-piata: #00d4aa;
  --cat-merger: #ff6b35;
  --cat-fx: #4ecdc4;
  --cat-competitori: #ff4757;
  --cat-furnizori: #7c5cfc;
  --cat-regulamentar: #ffa726;
  --cat-echipa: #42a5f5;
}

/* --- Filter search input --- */
.filter-bar__search {
  padding: 0.4rem 0.8rem;
  border-radius: 6px;
  border: 1px solid rgba(255,255,255,0.1);
  background: rgba(255,255,255,0.03);
  color: #e8e8f0;
  font-size: 0.82rem;
  outline: none;
  min-width: 200px;
  transition: border-color 0.15s ease;
  font-family: inherit;
}

.filter-bar__search:focus { border-color: #6366f1; }
.filter-bar__search::placeholder { color: rgba(232, 232, 240, 0.3); }

.filter-bar__label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: rgba(232, 232, 240, 0.4);
}

.filter-bar__group {
  display: flex;
  gap: 0.3rem;
  flex-wrap: wrap;
}

.filter-chip--severity-green.filter-chip--active { background: rgba(0,255,136,0.1); border-color: #00ff88; color: #00ff88; }
.filter-chip--severity-yellow.filter-chip--active { background: rgba(255,170,0,0.1); border-color: #ffaa00; color: #ffaa00; }
.filter-chip--severity-red.filter-chip--active { background: rgba(255,68,68,0.1); border-color: #ff4444; color: #ff4444; }

/* --- Responsive --- */
@media (max-width: 480px) {
  .header__brand { gap: 0.5rem; }
  .header__title { font-size: 0.75rem; }
  .nav { gap: 0.15rem; flex-wrap: wrap; }
  .nav__link { font-size: 0.7rem; padding: 0.3rem 0.5rem; white-space: normal; }
  .stat-card { min-width: 70px; padding: 0.5rem; }
  .stat-card__value { font-size: 1rem; }
  .traffic-grid { grid-template-columns: 1fr; }
  .competitor-grid { grid-template-columns: 1fr; }
  .filter-bar { flex-direction: column; gap: 0.5rem; }
  .filter-bar__search { min-width: unset; width: 100%; }
}

/* Additional chart tooltip styles used by charts.js */
.chart-tooltip {
  position: absolute;
  pointer-events: none;
  background: rgba(14, 14, 24, 0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(99, 102, 241, 0.2);
  border-radius: 6px;
  padding: 6px 10px;
  font-size: 0.75rem;
  font-family: system-ui, -apple-system, sans-serif;
  color: #e8e8f0;
  z-index: 1000;
  white-space: nowrap;
  box-shadow: 0 4px 16px rgba(0,0,0,0.5);
  opacity: 0;
  transition: opacity 150ms ease;
}

.chart-tooltip--visible {
  opacity: 1;
}

/* === Persona Pages === */

.persona-header {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: 2rem;
  margin-bottom: 1.5rem;
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: 16px;
}

.persona-header__avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  font-weight: 800;
  color: #fff;
  flex-shrink: 0;
}

.persona-header__name {
  font-size: 1.6rem;
  font-weight: 700;
  margin-bottom: 0.2rem;
}

.persona-header__role {
  font-size: 0.9rem;
  color: var(--accent-light);
  margin-bottom: 0.4rem;
}

.persona-header__greeting {
  font-size: 0.85rem;
  opacity: 0.6;
}

/* Briefing Summary */
.briefing-summary {
  padding: 1.5rem;
  margin-bottom: 2rem;
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: 12px;
  border-left: 4px solid var(--accent);
}

.briefing-summary__text {
  font-size: 0.95rem;
  line-height: 1.7;
  color: rgba(232, 232, 240, 0.85);
}

/* Action Cards */
.actions-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1rem;
  margin-bottom: 2rem;
}

.action-card {
  display: flex;
  gap: 1rem;
  padding: 1.2rem;
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: 12px;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.action-card:hover {
  border-color: var(--card-border-hover);
  transform: translateY(-2px);
}

.action-card[data-severity="red"] { border-left: 4px solid var(--red); }
.action-card[data-severity="yellow"] { border-left: 4px solid var(--yellow); }
.action-card[data-severity="green"] { border-left: 4px solid var(--green); }

.action-card__priority {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--accent-light);
  min-width: 2.5rem;
}

.action-card__body { flex: 1; }

.action-card__title {
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 0.4rem;
}

.action-card__context {
  font-size: 0.82rem;
  color: rgba(232, 232, 240, 0.6);
  line-height: 1.5;
  margin-bottom: 0.5rem;
}

.action-card__deadline {
  font-size: 0.78rem;
  color: var(--accent-light);
  font-weight: 500;
}

/* Market Stats */
.market-stats {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}

.market-stat {
  text-align: center;
  min-width: 100px;
}

.market-stat__value {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--green);
}

.market-stat__label {
  font-size: 0.75rem;
  color: rgba(232, 232, 240, 0.5);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-top: 0.2rem;
}

.market-overview {
  padding: 1.5rem;
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: 12px;
  margin-bottom: 2rem;
}

.market-trend {
  font-size: 0.88rem;
  color: rgba(232, 232, 240, 0.75);
  margin-top: 0.8rem;
  padding-top: 0.8rem;
  border-top: 1px solid rgba(255,255,255,0.05);
}

.market-risk {
  font-size: 0.82rem;
  color: rgba(232, 232, 240, 0.5);
  margin-top: 0.5rem;
}

/* === FX Panel (Erika page) === */
.fx-panel {
  padding: 1.5rem;
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: 12px;
  margin-bottom: 2rem;
}

.fx-panel__rate {
  font-size: 2rem;
  font-weight: 800;
  color: var(--green);
}

.fx-panel__forecast,
.fx-panel__risk,
.fx-panel__hedge {
  font-size: 0.85rem;
  color: rgba(232, 232, 240, 0.65);
  margin-top: 0.3rem;
}

.fx-panel__chart {
  margin-top: 1rem;
  height: 80px;
}

/* Supplier Grid */
.supplier-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1rem;
  margin-bottom: 2rem;
}

.supplier-card__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.5rem;
}

.supplier-card__name {
  font-weight: 600;
  font-size: 0.95rem;
}

.supplier-card__status {
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.15rem 0.5rem;
  border-radius: 4px;
  text-transform: uppercase;
}

.supplier-card__status[data-severity="green"] { background: var(--green-bg); color: var(--green); }
.supplier-card__status[data-severity="yellow"] { background: var(--yellow-bg); color: var(--yellow); }
.supplier-card__status[data-severity="red"] { background: var(--red-bg); color: var(--red); }

.supplier-card__detail {
  font-size: 0.82rem;
  color: rgba(232, 232, 240, 0.6);
}

/* === Sales Pulse (Tudor) === */
.sales-pulse {
  padding: 1.5rem;
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: 12px;
  margin-bottom: 2rem;
}

/* Competitor Grid & Feed */
.competitor-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1rem;
  margin-bottom: 2rem;
}

.competitor-feed {
  margin-bottom: 2rem;
}

/* === MWI Timeline === */
.timeline {
  position: relative;
  padding-left: 2rem;
  margin-bottom: 2rem;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 11px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: rgba(99, 102, 241, 0.2);
}

.timeline__item {
  display: flex;
  gap: 1rem;
  position: relative;
  padding-bottom: 1.5rem;
}

.timeline__marker {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  flex-shrink: 0;
  position: relative;
  z-index: 1;
  background: var(--surface);
  border: 2px solid rgba(99, 102, 241, 0.3);
}

.timeline__item[data-status="completed"] .timeline__marker {
  background: var(--green);
  border-color: var(--green);
  color: #000;
}

.timeline__item[data-status="in_progress"] .timeline__marker {
  background: var(--yellow);
  border-color: var(--yellow);
  color: #000;
  box-shadow: 0 0 12px var(--yellow-glow);
}

.timeline__content {
  flex: 1;
  padding: 1rem;
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: 10px;
}

.timeline__date {
  font-size: 0.75rem;
  color: var(--accent-light);
  font-weight: 600;
  margin-bottom: 0.3rem;
}

.timeline__milestone {
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 0.3rem;
}

.timeline__description {
  font-size: 0.82rem;
  color: rgba(232, 232, 240, 0.6);
  margin-bottom: 0.5rem;
}

.timeline__status {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 700;
  padding: 0.15rem 0.5rem;
  border-radius: 4px;
  text-transform: uppercase;
}

.timeline__status--completed { background: var(--green-bg); color: var(--green); }
.timeline__status--in_progress { background: var(--yellow-bg); color: var(--yellow); }
.timeline__status--pending { background: rgba(255,255,255,0.05); color: rgba(232,232,240,0.4); }

/* Impact Lists */
.impact-list {
  list-style: none;
  padding: 0;
}

.impact-card__item {
  padding: 0.8rem 1rem;
  margin-bottom: 0.5rem;
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: 8px;
  font-size: 0.85rem;
  color: rgba(232, 232, 240, 0.8);
}

/* Checklist */
.checklist {
  list-style: none;
  padding: 0;
  margin-bottom: 2rem;
}

.checklist__item {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 0.7rem 1rem;
  margin-bottom: 0.4rem;
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: 8px;
  font-size: 0.88rem;
}

.checklist__check {
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-size: 0.75rem;
  font-weight: 700;
  flex-shrink: 0;
}

.checklist__check--done {
  background: var(--green-bg);
  color: var(--green);
  border: 2px solid var(--green-border);
}

.checklist__check--pending {
  background: rgba(255,255,255,0.03);
  color: rgba(232, 232, 240, 0.3);
  border: 2px solid rgba(255,255,255,0.08);
}

.checklist__text--done { color: rgba(232, 232, 240, 0.85); }
.checklist__text--pending { color: rgba(232, 232, 240, 0.45); }

/* === Feed Page === */
.feed-stats {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: 12px;
}

.feed-stat {
  text-align: center;
  min-width: 80px;
}

.feed-stat__count {
  display: block;
  font-size: 2rem;
  font-weight: 800;
}

.feed-stat--red .feed-stat__count { color: var(--red); }
.feed-stat--yellow .feed-stat__count { color: var(--yellow); }
.feed-stat--green .feed-stat__count { color: var(--green); }

.feed-stat__label {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: rgba(232, 232, 240, 0.5);
}

/* Filters */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
  padding: 1rem 1.2rem;
  margin-bottom: 1.5rem;
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: 12px;
}

.filter-group {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.filter-group__label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: rgba(232, 232, 240, 0.4);
  margin-right: 0.3rem;
}

.filter-chip {
  padding: 0.3rem 0.7rem;
  border-radius: 6px;
  border: 1px solid rgba(255,255,255,0.1);
  background: transparent;
  color: rgba(232, 232, 240, 0.5);
  font-size: 0.78rem;
  cursor: pointer;
  transition: all 0.15s ease;
}

.filter-chip--active {
  background: rgba(99, 102, 241, 0.15);
  border-color: var(--accent);
  color: var(--accent-light);
}

.filter-chip--red.filter-chip--active { background: var(--red-bg); border-color: var(--red); color: var(--red); }
.filter-chip--yellow.filter-chip--active { background: var(--yellow-bg); border-color: var(--yellow); color: var(--yellow); }
.filter-chip--green.filter-chip--active { background: var(--green-bg); border-color: var(--green); color: var(--green); }

.filter-search {
  padding: 0.4rem 0.8rem;
  border-radius: 6px;
  border: 1px solid rgba(255,255,255,0.1);
  background: rgba(255,255,255,0.03);
  color: #e8e8f0;
  font-size: 0.82rem;
  outline: none;
  min-width: 200px;
  transition: border-color 0.15s ease;
}

.filter-search:focus {
  border-color: var(--accent);
}

.filter-search::placeholder {
  color: rgba(232, 232, 240, 0.3);
}

/* Expandable signal cards */
.signal-card--expandable {
  cursor: pointer;
}

.signal-card--expandable .signal-card__summary {
  max-height: 2.4em;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.signal-card--expanded .signal-card__summary,
.signal-card__summary--full {
  max-height: 500px;
}

.signal-card__expand-icon {
  display: flex;
  align-items: center;
  padding: 0 0.8rem;
  font-size: 0.65rem;
  color: rgba(232, 232, 240, 0.3);
  transition: transform 0.3s ease;
}

.signal-card--expanded .signal-card__expand-icon {
  transform: rotate(180deg);
}

/* === Language Toggle === */
.lang-toggle {
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  border: 1px solid rgba(99, 102, 241, 0.35);
  background: rgba(99, 102, 241, 0.1);
  color: #818cf8;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  cursor: pointer;
  transition: all 0.15s ease;
  text-transform: uppercase;
  font-family: var(--font-mono, 'SF Mono', monospace);
  line-height: 1.4;
}

.lang-toggle:hover {
  background: rgba(99, 102, 241, 0.25);
  border-color: rgba(99, 102, 241, 0.5);
  color: #a5b4fc;
}

/* === Security Page === */
.security-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 1rem;
  margin-bottom: 2rem;
}

.security-card {
  padding: 1.5rem;
  background: rgba(22, 22, 37, 0.65);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  transition: all 0.25s ease;
}

.security-card:hover {
  border-color: rgba(99, 102, 241, 0.2);
}

.security-card__icon {
  font-size: 1.8rem;
  margin-bottom: 0.75rem;
}

.security-card__title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-primary, #e8e8f0);
  margin-bottom: 0.5rem;
}

.security-card__desc {
  font-size: 0.85rem;
  color: var(--text-secondary, #9898b0);
  line-height: 1.6;
}

/* Does-NOT-do list */
.security-not-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.security-not-list li {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.6rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  font-size: 0.85rem;
  color: var(--text-secondary, #9898b0);
}

.security-not-list li:last-child {
  border-bottom: none;
}

.security-not-list__x {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(255, 68, 68, 0.1);
  color: #ff4444;
  font-weight: 700;
  font-size: 0.7rem;
  flex-shrink: 0;
}

/* Security Diagram */
.security-diagram {
  padding: 2rem;
  background: rgba(22, 22, 37, 0.65);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 16px;
  margin-bottom: 2rem;
  overflow-x: auto;
}

.security-diagram__title {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted, #5a5a78);
  margin-bottom: 1.5rem;
  font-weight: 600;
  text-align: center;
}

.security-diagram__flow {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  flex-wrap: wrap;
  min-height: 200px;
}

.sec-node {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1rem 1.25rem;
  border-radius: 12px;
  text-align: center;
  min-width: 110px;
  position: relative;
}

.sec-node__icon {
  font-size: 1.5rem;
  margin-bottom: 0.4rem;
}

.sec-node__label {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-primary, #e8e8f0);
  white-space: nowrap;
}

.sec-node--internet {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.sec-node--firewall {
  background: rgba(255, 170, 0, 0.08);
  border: 2px solid rgba(255, 170, 0, 0.3);
}

.sec-node--server {
  background: rgba(99, 102, 241, 0.1);
  border: 2px solid rgba(99, 102, 241, 0.35);
}

.sec-node--db {
  background: rgba(0, 212, 170, 0.08);
  border: 1px solid rgba(0, 212, 170, 0.25);
}

.sec-node--ai {
  background: rgba(139, 92, 246, 0.1);
  border: 1px dashed rgba(139, 92, 246, 0.35);
}

.sec-node--blocked {
  background: rgba(255, 68, 68, 0.06);
  border: 2px dashed rgba(255, 68, 68, 0.3);
}

.sec-arrow {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0 0.5rem;
  color: var(--text-muted, #5a5a78);
}

.sec-arrow__line {
  font-size: 1.2rem;
  line-height: 1;
}

.sec-arrow__label {
  font-size: 0.55rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  white-space: nowrap;
  color: #4ecdc4;
}

.sec-branch {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

.sec-branch__connector {
  width: 2px;
  height: 20px;
  background: rgba(139, 92, 246, 0.3);
}

@media (max-width: 700px) {
  .security-diagram__flow {
    flex-direction: column;
    gap: 0.5rem;
  }
  .sec-arrow__line {
    transform: rotate(90deg);
  }
  .security-grid {
    grid-template-columns: 1fr;
  }
}
