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

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: radial-gradient(circle at top, #111827 0, #020617 55%, #000 100%);
  color: #e5e7eb;
  min-height: 100vh;
}

.page {
  max-width: 1400px;
  margin: 0 auto;
  padding: 24px 20px 40px;
}

.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 18px;
}

h1 {
  font-size: 2.1rem;
  color: #e5fff9;
  letter-spacing: 0.04em;
}

.subtitle {
  margin-top: 4px;
  font-size: 0.95rem;
  color: #9ca3af;
}

.status-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid rgba(56, 189, 248, 0.35);
  font-size: 0.85rem;
}

.live-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #f97316;
  box-shadow: 0 0 10px rgba(249, 115, 22, 0.9);
  animation: pulse 1.2s infinite;
}

.live-text {
  font-weight: 700;
  color: #fecaca;
}

@keyframes pulse {
  0% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.3); opacity: 0.5; }
  100% { transform: scale(1); opacity: 1; }
}

.tabs {
  margin-top: 12px;
  display: inline-flex;
  padding: 4px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid rgba(55, 65, 81, 0.8);
  gap: 6px;
  flex-wrap: wrap;
}

.tab {
  padding: 7px 15px;
  border-radius: 999px;
  border: none;
  background: transparent;
  color: #9ca3af;
  font-size: 0.88rem;
  cursor: pointer;
}

.tab.active {
  background: linear-gradient(135deg, #22c55e, #0ea5e9);
  color: #0b1220;
  font-weight: 700;
}

.layout {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(260px, 1fr);
  gap: 18px;
  margin-top: 20px;
}

.section {
  background: radial-gradient(circle at top left, #020617 0, #020617 40%, #020617 100%);
  border-radius: 16px;
  padding: 16px 18px;
  border: 1px solid rgba(31, 41, 55, 0.9);
  box-shadow: 0 22px 40px rgba(0, 0, 0, 0.55);
  margin-bottom: 14px;
}

.section h2,
.section h3 {
  font-size: 1.15rem;
  margin-bottom: 6px;
}

.section-subtitle {
  font-size: 0.9rem;
  color: #94a3b8;
  margin-bottom: 12px;
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
  gap: 18px;
}

.tc-card {
  border-radius: 20px;
  padding: 20px 22px;
  background: radial-gradient(circle at top left, #152c38 0, #050910 55%, #020617 100%);
  border: 1px solid rgba(0, 255, 200, 0.12);
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.7);
  min-height: 210px;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.tc-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.95rem;
  opacity: 0.9;
}

.tc-card-title {
  font-size: 1.2rem;
  font-weight: 700;
  line-height: 1.35;
  color: #e5e7eb;
}

.tc-card-summary {
  font-size: 1.02rem;
  color: #cbd5f5;
  line-height: 1.55;
  max-height: 6.2rem;
  overflow: hidden;
}

.tc-card-footer {
  margin-top: auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.95rem;
  color: #9ca3af;
}

.link-btn {
  border-radius: 999px;
  padding: 6px 12px;
  border: 1px solid rgba(34, 211, 238, 0.6);
  background: rgba(34, 211, 238, 0.08);
  color: #7dd3fc;
  font-size: 0.85rem;
  text-decoration: none;
}

.link-btn:hover {
  background: rgba(34, 211, 238, 0.18);
}

.chip {
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.35);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.chip.priority {
  border-color: rgba(252, 211, 77, 0.9);
  color: #fed7aa;
  background: rgba(252, 211, 77, 0.08);
}

.keyword-list {
  list-style: disc;
  padding-left: 18px;
  font-size: 0.9rem;
  color: #d1d5db;
}

.ticker {
  overflow: hidden;
  height: 56px;
  border-radius: 16px;
  border: 1px solid rgba(55, 65, 81, 0.9);
  background: radial-gradient(circle at left, #020617 0, #020617 60%, #020617 100%);
  display: flex;
  align-items: center;
}

.ticker-inner {
  padding: 0 16px;
  font-size: 0.95rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.recap-day {
  border-top: 1px solid rgba(148, 163, 184, 0.18);
  padding: 16px 0;
}

.recap-day:first-child {
  border-top: none;
  padding-top: 0;
}

.recap-day h3 {
  font-size: 1.05rem;
  color: #e5fff9;
  margin-bottom: 10px;
}

.recap-item {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr);
  gap: 12px;
  margin-bottom: 10px;
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(15, 23, 42, 0.68);
  border: 1px solid rgba(56, 189, 248, 0.14);
}

.recap-rank {
  font-size: 1.1rem;
  font-weight: 800;
  color: #7dd3fc;
}

.recap-meta {
  font-size: 0.8rem;
  color: #94a3b8;
  margin-bottom: 5px;
}

.recap-title {
  font-size: 1rem;
  color: #dbeafe;
  text-decoration: none;
  font-weight: 700;
  line-height: 1.35;
}

.recap-title:hover {
  color: #7dd3fc;
  text-decoration: underline;
}

@media (max-width: 900px) {
  .header {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
  }

  .layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .cards-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .tc-card {
    min-height: 0;
  }
}
