:root {
  --bg-root: #0a0b13;
  --bg-depth: #04050a;
  --glass-bg: rgba(255, 255, 255, 0.06);
  --glass-border: rgba(255, 255, 255, 0.12);
  --accent-primary: #8c5cf6;
  --accent-secondary: #42e4ff;
  --text-primary: #f5f7ff;
  --text-secondary: #d0d3eb;
  --text-muted: #8d91af;
  --positive: #39d98a;
  --negative: #ff5f7a;
  --warning: #ffd166;
  --card-padding: 26px;
  --transition: 0.28s cubic-bezier(0.4, 0, 0.2, 1);
}

html {
  scroll-behavior: smooth;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: 'Heebo', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  color: var(--text-primary);
  display: grid;
  grid-template-rows: 1fr auto;
  background-color: var(--bg-root);
  background-image:
    radial-gradient(circle at 50% 32%, rgba(34, 37, 53, 0.46) 0%, rgba(18, 20, 32, 0.62) 38%, rgba(5, 6, 12, 0.92) 96%),
    radial-gradient(circle at 88% -6%, rgba(66, 228, 255, 0.2), transparent 56%),
    radial-gradient(circle at 0% -10%, rgba(140, 92, 246, 0.24), transparent 62%);
  background-attachment: fixed;
}

body.loading .app-shell {
  visibility: hidden;
}

#loader-screen {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 48px 20px;
  background-color: #0a0b13;
  background: linear-gradient(160deg, rgba(10, 11, 19, 0.94), rgba(6, 7, 14, 0.96));
  backdrop-filter: blur(24px);
  z-index: 999;
  gap: 24px;
  text-align: center;
  transition: opacity 0.6s ease;
}

#loader-screen.hidden {
  opacity: 0;
  pointer-events: none;
}

.loader-title {
  margin: 0;
  font-family: 'Orbitron', 'Heebo', sans-serif;
  font-size: clamp(2.75rem, 6vw, 3.5rem);
  letter-spacing: 0.28em;
  text-transform: uppercase;
}

.loader {
  width: fit-content;
  font-size: 40px;
  font-family: monospace;
  font-weight: bold;
  text-transform: uppercase;
  color: #0000;
  -webkit-text-stroke: 1px #fff;
  background: conic-gradient(#fff 0 0) 0/1ch 100% no-repeat text;
  animation: l14 1.5s steps(7, jump-none) infinite alternate;
}

.loader:before {
  content: 'Loading';
}

@keyframes l14 {
  to {
    background-position: 100%;
  }
}

#loader-percentage {
  font-family: 'Orbitron', 'Heebo', sans-serif;
  font-size: 0.95rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--text-secondary);
}

.app-shell {
  width: min(1180px, 94%);
  margin: 0 auto;
  padding: 54px 0 70px;
  display: grid;
  gap: 34px;
}

.app-header {
  display: grid;
  gap: 24px;
  text-align: center;
  justify-items: center;
}

.app-title {
  margin: 0;
  font-family: 'Orbitron', 'Heebo', sans-serif;
  font-size: clamp(2.6rem, 5vw, 3.6rem);
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

#synthesis-subtitle {
  margin: 0;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-secondary);
  max-width: 760px;
}

#synthesis-container {
  width: min(860px, 100%);
  background: #11131b;
  border: 1px solid rgba(108, 118, 189, 0.2);
  border-radius: 20px;
  padding: clamp(24px, 4vw, 32px);
  line-height: 1.7;
  color: var(--text-secondary);
}

#synthesis-container[dir='rtl'] {
  text-align: right;
}

#filter-controls {
  display: flex;
  justify-content: center;
  gap: 18px;
  flex-wrap: wrap;
}

.filter-button {
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  padding: 12px 30px;
  font-size: 0.95rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-secondary);
  background: rgba(255, 255, 255, 0.04);
  cursor: pointer;
  transition: background var(--transition), box-shadow var(--transition), transform var(--transition), color var(--transition), border-color var(--transition);
  position: relative;
}

.filter-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(140, 92, 246, 0.25);
}

.filter-button.active {
  background: linear-gradient(135deg, rgba(140, 92, 246, 0.35), rgba(66, 228, 255, 0.25));
  color: var(--text-primary);
  box-shadow: 0 14px 36px rgba(140, 92, 246, 0.35);
  border-color: rgba(140, 92, 246, 0.55);
}

.filter-button::after {
  content: '';
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 8px;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(140, 92, 246, 0), rgba(140, 92, 246, 0.55), rgba(66, 228, 255, 0));
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.filter-button:hover::after,
.filter-button.active::after {
  opacity: 1;
  transform: translateY(0);
}

.filter-button:focus-visible {
  outline: none;
  border-color: rgba(66, 228, 255, 0.6);
  box-shadow: 0 0 0 3px rgba(66, 228, 255, 0.2), 0 10px 26px rgba(66, 228, 255, 0.35);
}

.filter-button:focus-visible::after {
  opacity: 1;
  transform: translateY(0);
}

.hero-insights {
  margin: 18px auto 0;
  width: min(860px, 100%);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  align-items: stretch;
}

.hero-chip {
  min-width: 0;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.05);
  display: grid;
  gap: 6px;
  text-align: center;
  justify-items: center;
  height: 100%;
  align-content: center;
}

.hero-chip:hover {
  background: rgba(255, 255, 255, 0.08);
}

.hero-chip-label {
  font-size: 0.6rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.56);
}

.hero-chip-value {
  font-family: 'Orbitron', 'Heebo', sans-serif;
  font-size: 0.95rem;
  letter-spacing: 0.14em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.hero-chip-meta {
  font-size: 0.68rem;
  color: rgba(255, 255, 255, 0.54);
  letter-spacing: 0.1em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-transform: uppercase;
}

#narrative-wall {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 26px;
  position: relative;
  align-items: stretch;
  grid-auto-rows: 1fr;
}

.empty-state {
  grid-column: 1 / -1;
  padding: 34px 28px;
  border-radius: 26px;
  background: linear-gradient(145deg, rgba(20, 22, 32, 0.85), rgba(12, 14, 24, 0.92));
  border: 1px solid rgba(255, 255, 255, 0.08);
  text-align: center;
  color: var(--text-secondary);
  display: grid;
  gap: 14px;
  justify-items: center;
  position: relative;
  overflow: hidden;
}

.empty-state::before {
  content: '';
  position: absolute;
  inset: -60px -120px auto;
  height: 160px;
  background: radial-gradient(circle, rgba(140, 92, 246, 0.25), transparent 70%);
  opacity: 0.6;
  pointer-events: none;
}

.empty-state h4 {
  margin: 0;
  font-family: 'Orbitron', 'Heebo', sans-serif;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-primary);
}

.empty-state p {
  margin: 0;
  max-width: 360px;
  color: rgba(255, 255, 255, 0.65);
}

.empty-state button {
  border: 1px solid rgba(66, 228, 255, 0.4);
  border-radius: 999px;
  padding: 10px 26px;
  background: linear-gradient(135deg, rgba(66, 228, 255, 0.18), rgba(140, 92, 246, 0.24));
  color: var(--text-primary);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.empty-state button:hover,
.empty-state button:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 12px 26px rgba(66, 228, 255, 0.32);
  outline: none;
}

.asset-card {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 14px;
  padding: var(--card-padding);
  border-radius: 20px;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.02));
  border: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(16px);
  box-shadow: 0 14px 40px rgba(10, 12, 24, 0.32);
  transition:
    transform 0.38s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.38s cubic-bezier(0.22, 1, 0.36, 1),
    border-color 0.32s ease,
    opacity 0.24s ease;
  cursor: grab;
  overflow: hidden;
  will-change: transform;
  min-height: 300px;
  height: 100%;
}

.asset-card.is-hidden {
  display: none;
}

.asset-card:focus-visible {
  outline: 2px solid var(--accent-secondary);
  outline-offset: 4px;
}

.asset-card:hover {
  transform: translateY(-4px);
  border-color: rgba(140, 92, 246, 0.4);
  box-shadow: 0 20px 48px rgba(10, 12, 24, 0.42);
}

.asset-card.trend-up:hover {
  border-color: rgba(57, 217, 138, 0.45);
  box-shadow: 0 22px 52px rgba(57, 217, 138, 0.18);
}

.asset-card.trend-down:hover {
  border-color: rgba(255, 95, 122, 0.45);
  box-shadow: 0 22px 52px rgba(255, 95, 122, 0.18);
}

.asset-card.trend-flat:hover {
  border-color: rgba(255, 209, 102, 0.4);
  box-shadow: 0 22px 52px rgba(255, 209, 102, 0.16);
}

.asset-card.trend-up {
  border-color: rgba(57, 217, 138, 0.28);
}

.asset-card.trend-down {
  border-color: rgba(255, 95, 122, 0.28);
}

.asset-card.trend-flat {
  border-color: rgba(255, 209, 102, 0.24);
}

.asset-card.reordering {
  animation: cardHoverPulse 0.45s ease;
}

.asset-card.drop-target::before {
  content: '';
  position: absolute;
  inset: 10px;
  border-radius: 20px;
  border: 2px dashed rgba(66, 228, 255, 0.4);
  pointer-events: none;
  animation: dropZoneGlow 0.8s ease-in-out infinite alternate;
}

@keyframes cardHoverPulse {
  0% {
    transform: translateY(-6px) scale(1.01);
  }
  50% {
    transform: translateY(-9px) scale(1.015);
  }
  100% {
    transform: translateY(-6px) scale(1.01);
  }
}

.asset-card.dragging {
  opacity: 0.52;
  transform: translateY(-8px) scale(0.96);
  box-shadow: 0 36px 84px rgba(140, 92, 246, 0.46);
  cursor: grabbing;
  z-index: 5;
}

.asset-card.spotlight {
  border-color: rgba(57, 217, 138, 0.7);
  box-shadow: 0 24px 70px rgba(57, 217, 138, 0.25);
}

.asset-card.underwatch {
  border-color: rgba(255, 95, 122, 0.7);
  box-shadow: 0 24px 70px rgba(255, 95, 122, 0.25);
}

.asset-header {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: flex-start;
  min-height: 54px;
}

.asset-titles {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}

.asset-company {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.asset-company[dir='rtl'] {
  text-align: right;
}

.asset-ticker {
  font-size: 0.85rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.65);
}

.asset-tag {
  align-self: center;
  padding: 6px 14px;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.75rem;
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: var(--text-secondary);
  background: rgba(255, 255, 255, 0.08);
}

.asset-tag.momentum {
  background: rgba(57, 217, 138, 0.16);
  color: var(--positive);
}

.asset-tag.risk {
  background: rgba(255, 95, 122, 0.16);
  color: var(--negative);
}

.asset-tag.steady {
  background: rgba(255, 209, 102, 0.14);
  color: var(--warning);
}

.asset-metrics {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  min-height: 42px;
}

.asset-price {
  font-size: 1.18rem;
  font-weight: 600;
  white-space: nowrap;
}

.price-change {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  position: relative;
  padding-right: 18px;
  white-space: nowrap;
}

.price-change::before {
  content: '';
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: currentColor;
  opacity: 0.85;
}

.price-change::after {
  content: '';
  position: absolute;
  right: 0;
  top: 50%;
  width: 10px;
  height: 10px;
  transform: translateY(-50%);
  mask: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 10 10"><path d="M5 0 L10 5 L8.6 6.4 L6 3.8 L6 10 L4 10 L4 3.8 L1.4 6.4 L0 5 Z"/></svg>') center / contain no-repeat;
  -webkit-mask: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 10 10"><path d="M5 0 L10 5 L8.6 6.4 L6 3.8 L6 10 L4 10 L4 3.8 L1.4 6.4 L0 5 Z"/></svg>') center / contain no-repeat;
  background: currentColor;
  opacity: 0.8;
}

.price-change.positive {
  color: var(--positive);
}

.price-change.positive::after {
  transform: translateY(-50%) rotate(0deg);
}

.price-change.negative {
  color: var(--negative);
}

.price-change.negative::after {
  transform: translateY(-50%) rotate(180deg);
}

.price-change.neutral {
  color: var(--warning);
}

.asset-narrative {
  flex: 1 1 auto;
  margin: 0;
  color: var(--text-muted);
  line-height: 1.6;
  max-height: calc(1.6em * 4);
  display: -webkit-box;
  -webkit-box-orient: vertical;
  line-clamp: 4;
  -webkit-line-clamp: 4;
  overflow: hidden;
  text-overflow: ellipsis;
}

.asset-narrative[dir='rtl'] {
  text-align: right;
}

.asset-more {
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.58);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  pointer-events: none;
  margin-top: 4px;
  align-self: flex-start;
}

.asset-more::after {
  content: '→';
  font-size: 0.75rem;
}

.asset-more[dir='rtl'] {
  justify-content: flex-end;
  text-align: right;
  align-self: flex-end;
}

.asset-more[dir='rtl']::after {
  content: '←';
}

.asset-card:hover .asset-more {
  color: rgba(255, 255, 255, 0.78);
}

#dossier-modal {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 40px 20px;
  background: rgba(7, 7, 14, 0.82);
  backdrop-filter: blur(18px);
  z-index: 999;
  opacity: 1;
  transition: opacity 0.35s ease;
}

#dossier-modal.modal-hidden {
  opacity: 0;
  pointer-events: none;
}

.modal-content {
  width: min(900px, 94%);
  height: min(80vh, 620px);
  background: rgba(11, 12, 21, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 28px;
  padding: clamp(30px, 4vw, 42px);
  backdrop-filter: blur(20px);
  box-shadow: 0 32px 90px rgba(5, 5, 12, 0.65);
  display: flex;
  flex-direction: column;
  gap: 18px;
  position: relative;
  overflow: hidden;
}

#close-modal {
  position: absolute;
  top: 18px;
  right: 22px;
  border: none;
  background: none;
  color: var(--text-primary);
  font-size: 2rem;
  font-weight: 300;
  cursor: pointer;
  transition: color var(--transition), text-shadow var(--transition);
}

#close-modal:hover {
  color: var(--accent-secondary);
  text-shadow: 0 0 12px rgba(66, 228, 255, 0.6);
}

.modal-title {
  margin: 0;
  text-align: center;
  font-family: 'Orbitron', 'Heebo', sans-serif;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.modal-tabs {
  display: flex;
  gap: 16px;
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  padding-bottom: 8px;
}

.modal-tab {
  border: none;
  background: none;
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  cursor: pointer;
  padding: 6px 10px;
  position: relative;
  transition: color 0.25s ease;
}

.modal-tab::after {
  content: '';
  position: absolute;
  left: 8px;
  right: 8px;
  bottom: -3px;
  height: 2px;
  opacity: 0;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(66, 228, 255, 0), rgba(66, 228, 255, 0.75), rgba(140, 92, 246, 0));
  transition: opacity 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
  transform: translateY(2px);
}

.modal-tab.active {
  color: var(--text-primary);
}

.modal-tab.active::after {
  opacity: 1;
  transform: translateY(0);
  box-shadow: 0 0 12px rgba(66, 228, 255, 0.45);
}

.modal-tab:focus-visible {
  outline: none;
  color: var(--text-primary);
}

.modal-panels {
  flex: 1 1 auto;
  position: relative;
  margin-top: 12px;
  overflow: hidden;
  min-height: 0;
}

.modal-panel {
  position: absolute;
  inset: 0;
  display: grid;
  gap: 24px;
  align-content: start;
  padding-right: 8px;
  padding-bottom: 12px;
  overflow-y: auto;
  opacity: 0;
  pointer-events: none;
  transform: translateY(6px);
  transition: opacity 0.28s ease, transform 0.28s ease;
}

.modal-panel.active {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.modal-summary-grid {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  align-items: stretch;
}

.modal-summary-text {
  margin: 0;
  color: var(--text-secondary);
  line-height: 1.8;
}

.modal-summary-text[dir='rtl'] {
  text-align: right;
}

.modal-media-frame {
  height: 220px;
  border-radius: 18px;
  overflow: hidden;
  background: rgba(15, 17, 26, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 16px 40px rgba(5, 5, 12, 0.45);
}

.modal-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  cursor: zoom-in;
  transition:
    transform 0.32s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.32s ease,
    border-color 0.32s ease;
  transform-origin: center;
}

.modal-image:hover {
  transform: scale(1.03);
  box-shadow: 0 24px 56px rgba(140, 92, 246, 0.35);
}

.modal-image:focus-visible {
  transform: scale(1.03);
  box-shadow: 0 26px 60px rgba(140, 92, 246, 0.42);
  outline: 2px solid rgba(66, 228, 255, 0.6);
  outline-offset: 6px;
}

.modal-links {
  margin: 0;
  padding-left: 0;
  display: grid;
  gap: 12px;
  color: var(--text-muted);
  list-style: none;
}

.modal-links[dir='rtl'] {
  padding-right: 0;
  text-align: right;
}

.modal-links[dir='rtl'] a {
  padding-left: 0;
  padding-right: 26px;
}

.modal-links[dir='rtl'] a::before {
  left: auto;
  right: 0;
}

.modal-links a {
  color: var(--accent-secondary);
  text-decoration: none;
  transition: color var(--transition);
  position: relative;
  padding-left: 26px;
}

.modal-links a::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  border-radius: 6px;
  background: rgba(66, 228, 255, 0.25);
  mask: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16"><path d="M8 0A8 8 0 1 0 8 16A8 8 0 0 0 8 0ZM7.25 4H8.75V8.75H12V10.25H7.25Z"/></svg>') center / contain no-repeat;
  -webkit-mask: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16"><path d="M8 0A8 8 0 1 0 8 16A8 8 0 0 0 8 0ZM7.25 4H8.75V8.75H12V10.25H7.25Z"/></svg>') center / contain no-repeat;
  background-color: rgba(66, 228, 255, 0.85);
}

.modal-links a:hover {
  color: #9df2ff;
}

.modal-links a:focus-visible {
  outline: none;
  color: #9df2ff;
}

.modal-links li {
  position: relative;
  padding-left: 0;
  display: grid;
  gap: 4px;
  align-items: start;
}

.modal-links li .modal-link-source {
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
}

.modal-links[dir='rtl'] li .modal-link-source,
.modal-links[dir='rtl'] li time {
  justify-self: end;
}

.modal-links li time {
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.55);
}

.modal-sources-empty {
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.6);
  list-style: none;
  padding-left: 0;
  text-align: center;
}

body.no-scroll {
  overflow: hidden;
}

.media-lightbox {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 40px 24px;
  background: rgba(10, 11, 19, 0.92);
  backdrop-filter: blur(26px);
  z-index: 1400;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.35s ease, visibility 0.35s ease, transform 0.35s ease;
  transform: scale(0.96);
}

.media-lightbox.is-visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: scale(1);
}

.lightbox-frame {
  position: relative;
  width: min(92vw, 1280px);
  max-height: 92vh;
  display: grid;
  place-items: center;
}

.media-lightbox.is-visible .lightbox-frame {
  animation: lightboxRise 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

.media-lightbox img {
  width: 100%;
  max-height: 92vh;
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: 0 34px 88px rgba(8, 8, 18, 0.78);
  background: #0a0b13;
  object-fit: contain;
  cursor: zoom-out;
}

.lightbox-close {
  position: absolute;
  top: 12px;
  right: 12px;
  border: none;
  background: rgba(10, 11, 19, 0.75);
  color: #f5f7ff;
  font-size: 1.75rem;
  line-height: 1;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35);
  cursor: pointer;
  transition: transform 0.25s ease, background 0.25s ease, color 0.25s ease;
}

.lightbox-close:hover,
.lightbox-close:focus-visible {
  transform: scale(1.08);
  background: rgba(140, 92, 246, 0.85);
  color: #0a0b13;
  outline: none;
}

@keyframes lightboxRise {
  from {
    opacity: 0;
    transform: translateY(14px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes dropZoneGlow {
  from {
    box-shadow: 0 0 20px rgba(66, 228, 255, 0.25);
  }
  to {
    box-shadow: 0 0 34px rgba(66, 228, 255, 0.45);
  }
}

@keyframes lightboxRise {
  from {
    opacity: 0;
    transform: translateY(14px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.app-footer {
  text-align: center;
  padding: 20px 0 26px;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.52);
}

@media (max-width: 860px) {
  .app-shell {
    padding: 40px 0 60px;
  }

  #synthesis-container {
    border-radius: 24px;
  }

  .asset-card {
    --card-padding: 22px;
    min-height: 280px;
  }

  .hero-insights {
    gap: 10px;
  }

  .modal-media-frame {
    height: 200px;
  }
}

@media (max-width: 720px) {
  #filter-controls {
    gap: 12px;
  }

  .filter-button {
    padding: 10px 22px;
    letter-spacing: 0.08em;
  }

  #narrative-wall {
    gap: 22px;
  }

  .asset-card {
    border-radius: 22px;
    min-height: 260px;
  }

  .hero-insights {
    gap: 10px;
  }

  .modal-media-frame {
    height: 200px;
  }
}

@media (max-width: 540px) {
  .loader-title {
    letter-spacing: 0.18em;
  }

  .modal-summary-grid {
    grid-template-columns: 1fr;
  }

  .modal-media-frame {
    height: 180px;
  }
}
