/* ── Header ── */

.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: 56px;
  display: flex;
  align-items: center;
  background: rgba(10, 10, 10, 0.9);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-subtle);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.header__logo {
  font-family: var(--font);
  font-size: 17px;
  font-weight: 700;
  color: var(--text-1);
  text-decoration: none;
  letter-spacing: -0.3px;
}

.header__nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

.header__link {
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--text-4);
  text-decoration: none;
  transition: color 0.2s;
}

.header__link:hover { color: var(--text-2); }

.header__cta {
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--indigo);
  text-decoration: none;
  padding: 6px 14px;
  border: 1px solid var(--indigo-surface);
  border-radius: var(--r-badge);
  transition: background 0.2s;
}

.header__cta:hover { background: var(--indigo-surface); }

/* ── Opportunity card (mirrors AppOpportunityCard) ── */

.opp-card {
  padding: 20px;
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.opp-card__tag-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.opp-card__name { font-family: var(--font); font-size: 16px; font-weight: 700; }
.opp-card__revenue { font-family: var(--font); font-size: 32px; font-weight: 800; letter-spacing: -0.5px; }
.opp-card__reason { font-family: var(--mono); font-size: 10px; font-weight: 400; color: var(--text-4); line-height: 1.5; }

.opp-card__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.opp-card__meta-text {
  font-family: var(--mono);
  font-size: 9px;
  font-weight: 400;
  color: var(--text-4);
}

/* ── Metric cell (mirrors AppMetricCell) ── */

.metric {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.metric__label { /* uses .mono */ }
.metric__value { font-family: var(--font); font-size: 24px; font-weight: 800; }

/* ── SWOT grid ── */

.swot {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.swot__cell {
  padding: 14px;
  border-radius: 6px;
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 400;
  line-height: 1.5;
}

.swot__cell-title {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 6px;
  display: block;
}

.swot--s { background: rgba(34, 197, 94, 0.06); color: var(--green); }
.swot--w { background: rgba(229, 62, 62, 0.06); color: #f87171; }
.swot--o { background: rgba(59, 130, 246, 0.06); color: #60a5fa; }
.swot--t { background: rgba(245, 158, 11, 0.06); color: #fbbf24; }

/* ── Monitor row ── */

.monitor-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0;
  border-bottom: 1px solid var(--border-subtle);
}

.monitor-row__left {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.monitor-row__right {
  text-align: right;
  display: flex;
  flex-direction: column;
  gap: 2px;
  align-items: flex-end;
}

.monitor-row__change {
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 700;
}

.change--up { color: var(--green); }
.change--down { color: var(--red); }

.monitor-row__status {
  font-family: var(--mono);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 1px;
}

/* ── Alert dot ── */

.dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  margin-right: 6px;
}

.dot--green { background: var(--green); }
.dot--red { background: var(--red); }
.dot--amber { background: var(--amber); }

/* ── Footer ── */

.footer {
  padding: 32px 0;
  border-top: 1px solid var(--border);
}

.footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer__links {
  display: flex;
  align-items: center;
  gap: 24px;
}

.footer__link {
  font-family: var(--mono);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--text-4);
  text-decoration: none;
  transition: color 0.2s;
}

.footer__link:hover { color: var(--text-2); }

.footer__copy {
  font-family: var(--mono);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text-4);
}
