/* Cameroon Brand-feed — forest / gold / crimson */
:root {
  --smms-ink: #0b3d2e;
  --smms-ink-soft: #14523d;
  --smms-red: #ce1126;
  --smms-red-deep: #9a0d1c;
  --smms-sand: #f0c94a;
  --smms-sand-soft: #fff6d6;
  --smms-paper: #f3f7f4;
  --smms-line: rgba(11, 61, 46, 0.1);
  --smms-muted: #5a7268;
  --smms-font: "Manrope", "Segoe UI", sans-serif;
  --smms-display: "Syne", "Arial Black", sans-serif;
  --bf-green: #1a6b45;
  --bf-deep: #072820;
  --sidebar-w: 248px;
  --top-h: 64px;
}

*, *::before, *::after { box-sizing: border-box; }

html, body {
  margin: 0;
  min-height: 100%;
  font-family: var(--smms-font);
  color: var(--smms-ink);
  background:
    radial-gradient(1100px 520px at 8% -12%, rgba(240, 201, 74, 0.22), transparent 55%),
    radial-gradient(900px 420px at 100% 0%, rgba(26, 107, 69, 0.14), transparent 50%),
    radial-gradient(700px 360px at 70% 100%, rgba(206, 17, 38, 0.05), transparent 55%),
    var(--smms-paper);
}

a { color: var(--smms-red-deep); text-decoration: none; }
a:hover { color: var(--smms-red); }

.portal-shell { display: flex; min-height: 100vh; }

/* —— Sidebar —— */
.portal-nav {
  width: var(--sidebar-w);
  flex-shrink: 0;
  background: var(--smms-ink);
  color: #fff;
  display: flex;
  flex-direction: column;
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 40;
  border-right: 2px solid var(--smms-red);
}

.portal-nav__brand {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 18px 18px 16px;
  border-bottom: 1px solid rgba(232, 213, 163, 0.12);
}

.portal-nav__brand img {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  object-fit: cover;
}

.portal-nav__name {
  font-family: var(--smms-display);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.2;
}

.portal-nav__sub {
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--smms-sand);
  margin-top: 2px;
}

.portal-nav__menu {
  list-style: none;
  margin: 12px 0 0;
  padding: 0 10px;
  flex: 1;
  overflow-y: auto;
}

.portal-nav__label {
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(232, 213, 163, 0.55);
  padding: 14px 12px 6px;
}

.portal-nav__link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 12px;
  border-radius: 6px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 14px;
  font-weight: 500;
  transition: background 0.18s, color 0.18s;
}

.portal-nav__link i { font-size: 1.05rem; opacity: 0.9; width: 1.2em; text-align: center; }

.portal-nav__link:hover,
.portal-nav__link.is-active {
  background: rgba(196, 30, 58, 0.22);
  color: #fff;
}

.portal-nav__link.is-active {
  box-shadow: inset 3px 0 0 var(--smms-sand);
}

.portal-nav__foot {
  padding: 14px 16px 18px;
  border-top: 1px solid rgba(232, 213, 163, 0.12);
}

.portal-nav__user {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.portal-nav__avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--smms-red);
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 13px;
}

.portal-nav__user-meta { min-width: 0; }
.portal-nav__user-name {
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.portal-nav__user-org {
  font-size: 11px;
  color: var(--smms-sand);
}

.portal-nav__logout {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: rgba(255,255,255,0.65);
}
.portal-nav__logout:hover { color: var(--smms-sand); }

/* —— Main —— */
.portal-main {
  flex: 1;
  margin-left: var(--sidebar-w);
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.portal-top {
  height: var(--top-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 0 28px;
  background: rgba(251, 248, 244, 0.86);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--smms-line);
  position: sticky;
  top: 0;
  z-index: 20;
}

.portal-top__title {
  font-family: var(--smms-display);
  font-size: 1.15rem;
  font-weight: 700;
  margin: 0;
}

.portal-top__meta {
  font-size: 12px;
  color: var(--smms-muted);
}

.portal-burger {
  display: none;
  border: 0;
  background: var(--smms-ink);
  color: var(--smms-sand);
  width: 40px;
  height: 40px;
  border-radius: 8px;
  font-size: 1.3rem;
  cursor: pointer;
}

.portal-content {
  padding: 28px;
  max-width: 1240px;
  width: 100%;
  margin: 0 auto;
}

/* —— Motion —— */
@keyframes smms-fade-up {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}
.smms-fade { animation: smms-fade-up 0.45s ease both; }
.smms-fade-d1 { animation-delay: 0.06s; }
.smms-fade-d2 { animation-delay: 0.12s; }
.smms-fade-d3 { animation-delay: 0.18s; }
.smms-fade-d4 { animation-delay: 0.24s; }

/* —— Dashboard hero (AI) —— */
.insight-hero {
  position: relative;
  overflow: hidden;
  border-radius: 10px;
  padding: 28px 30px 26px;
  color: #fff;
  background:
    radial-gradient(600px 280px at 85% 20%, rgba(232, 213, 163, 0.22), transparent 60%),
    linear-gradient(135deg, var(--smms-red) 0%, var(--smms-red-deep) 42%, var(--smms-ink) 100%);
  margin-bottom: 22px;
}

.insight-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    -32deg,
    transparent,
    transparent 10px,
    rgba(255,255,255,0.03) 10px,
    rgba(255,255,255,0.03) 11px
  );
  pointer-events: none;
}

.insight-hero > * { position: relative; z-index: 1; }

.insight-hero__eyebrow {
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--smms-sand);
  margin: 0 0 10px;
  font-weight: 600;
}

.insight-hero__title {
  font-family: var(--smms-display);
  font-size: clamp(1.45rem, 2.4vw, 1.9rem);
  font-weight: 700;
  line-height: 1.25;
  margin: 0 0 12px;
  max-width: 46rem;
}

.insight-hero__lede {
  margin: 0;
  max-width: 42rem;
  color: rgba(255,255,255,0.86);
  font-size: 0.98rem;
  line-height: 1.55;
}

.insight-hero__foot {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  margin-top: 18px;
  align-items: center;
  font-size: 12px;
  color: rgba(255,255,255,0.7);
}

.insight-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(0,0,0,0.22);
  border: 1px solid rgba(232, 213, 163, 0.25);
  color: var(--smms-sand);
  font-size: 11px;
  letter-spacing: 0.04em;
}

.btn-smms {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 0;
  cursor: pointer;
  font-family: var(--smms-font);
  font-weight: 600;
  font-size: 13px;
  padding: 9px 14px;
  border-radius: 6px;
  background: var(--smms-sand);
  color: var(--smms-ink);
  transition: transform 0.15s, background 0.15s;
}
.btn-smms:hover { background: #fff; transform: translateY(-1px); color: var(--smms-ink); }
.btn-smms--ghost {
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255,255,255,0.35);
}
.btn-smms--ghost:hover { background: rgba(255,255,255,0.1); color: #fff; }
.btn-smms--solid {
  background: var(--smms-red);
  color: #fff;
}
.btn-smms--solid:hover { background: var(--smms-red-deep); color: #fff; }

/* —— Stats —— */
.stat-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-bottom: 22px;
}

.stat-card {
  background: #fff;
  border: 1px solid var(--smms-line);
  border-radius: 8px;
  padding: 16px 18px;
  transition: border-color 0.18s, transform 0.18s;
}
.stat-card:hover {
  border-color: rgba(196, 30, 58, 0.35);
  transform: translateY(-2px);
}

.stat-card__label {
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--smms-muted);
  margin: 0 0 8px;
}

.stat-card__value {
  font-family: var(--smms-display);
  font-size: 1.85rem;
  font-weight: 700;
  line-height: 1;
  margin: 0;
}

.stat-card__hint {
  margin: 8px 0 0;
  font-size: 12px;
  color: var(--smms-muted);
}

/* —— High-impact clip reel —— */
.impact-reel {
  margin-bottom: 22px;
}
.impact-reel__head {
  margin-bottom: 14px;
}
.impact-reel__title {
  font-family: var(--smms-display);
  font-size: 1.55rem;
  margin: 0 0 6px;
  color: var(--smms-ink);
}
.impact-reel__lede {
  margin: 0;
  color: var(--smms-muted);
  max-width: 52ch;
  font-size: 0.95rem;
}
.impact-reel__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.impact-card {
  background: #fff;
  border: 1px solid var(--smms-line);
  border-radius: 10px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 100%;
  transition: border-color 0.18s, transform 0.18s;
}
.impact-card:hover {
  border-color: rgba(196, 30, 58, 0.35);
  transform: translateY(-2px);
}
.impact-card__head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 8px;
}
.impact-card__channel {
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--smms-red);
  font-weight: 600;
}
.impact-card__hint {
  font-size: 11px;
  color: var(--smms-muted);
}
.impact-card__player {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  background: #1a1210;
  aspect-ratio: 16 / 9;
}
.impact-card__player video {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  background: #000;
}
.impact-card__social {
  aspect-ratio: 16 / 9;
  border-radius: 8px;
  background: linear-gradient(145deg, #2a1f1b 0%, #140e0c 60%, #3d1a22 100%);
  color: #f5ebe0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  text-align: center;
  padding: 18px;
}
.impact-card__social i {
  font-size: 1.8rem;
  color: var(--smms-sand);
}
.impact-card__social p {
  margin: 0;
  font-size: 0.85rem;
  opacity: 0.9;
  max-width: 28ch;
}
.impact-card__title {
  font-family: var(--smms-display);
  font-size: 1.05rem;
  margin: 0;
  line-height: 1.35;
  color: var(--smms-ink);
}
.impact-card__summary {
  margin: 0;
  font-size: 0.88rem;
  color: var(--smms-muted);
  line-height: 1.45;
  flex: 1;
}
.impact-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  font-size: 12px;
  color: var(--smms-muted);
  align-items: center;
}
.impact-card__meta a {
  color: var(--smms-red);
  text-decoration: none;
  font-weight: 600;
  margin-left: auto;
}
.impact-card__meta a:hover { text-decoration: underline; }
.impact-card__empty {
  aspect-ratio: 16 / 9;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 16px;
  border-radius: 8px;
  background: rgba(20, 14, 12, 0.04);
  color: var(--smms-muted);
  font-size: 0.9rem;
}

/* —— Panels / grid —— */
.dash-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 16px;
  margin-bottom: 16px;
}

.panel {
  background: #fff;
  border: 1px solid var(--smms-line);
  border-radius: 8px;
  padding: 18px 20px;
}

.panel__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.panel__title {
  font-family: var(--smms-display);
  font-size: 1.05rem;
  font-weight: 700;
  margin: 0;
}

.panel__sub {
  font-size: 12px;
  color: var(--smms-muted);
}

.insight-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.insight-list li {
  position: relative;
  padding: 10px 0 10px 16px;
  border-bottom: 1px solid var(--smms-line);
  font-size: 14px;
  line-height: 1.45;
}
.insight-list li:last-child { border-bottom: 0; }
.insight-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 16px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--smms-red);
}

.theme-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  margin: 0 8px 8px 0;
  border-radius: 6px;
  background: var(--smms-sand-soft);
  border: 1px solid var(--smms-line);
  font-size: 13px;
  font-weight: 500;
}
.theme-chip__n {
  font-size: 11px;
  color: var(--smms-muted);
  font-weight: 600;
}

.tone-bar {
  display: flex;
  height: 10px;
  border-radius: 999px;
  overflow: hidden;
  background: var(--smms-sand-soft);
  margin: 8px 0 12px;
}
.tone-bar__pos { background: #2f7d4a; }
.tone-bar__neu { background: #b8a48a; }
.tone-bar__neg { background: var(--smms-red); }

.tone-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 12px;
  color: var(--smms-muted);
}
.tone-legend span::before {
  content: "";
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  margin-right: 6px;
  vertical-align: middle;
}
.tone-legend .pos::before { background: #2f7d4a; }
.tone-legend .neu::before { background: #b8a48a; }
.tone-legend .neg::before { background: var(--smms-red); }

/* —— Story rows —— */
.story-list { display: flex; flex-direction: column; gap: 10px; }

.story-row {
  display: grid;
  grid-template-columns: 72px 1fr auto;
  gap: 14px;
  align-items: start;
  padding: 12px;
  border-radius: 8px;
  border: 1px solid var(--smms-line);
  background: #fff;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.story-row:hover {
  border-color: rgba(196, 30, 58, 0.28);
  box-shadow: 0 6px 18px rgba(20, 14, 12, 0.05);
}

.story-row__thumb {
  width: 72px;
  height: 54px;
  border-radius: 6px;
  object-fit: cover;
  background: var(--smms-sand-soft);
  display: block;
}

.story-row__channel {
  display: inline-block;
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--smms-red);
  font-weight: 700;
  margin-bottom: 4px;
}

.story-row__title {
  font-family: var(--smms-display);
  font-size: 0.98rem;
  font-weight: 700;
  margin: 0 0 4px;
  line-height: 1.3;
  color: var(--smms-ink);
}

.story-row__meta {
  font-size: 12px;
  color: var(--smms-muted);
}

.story-row__summary {
  margin: 6px 0 0;
  font-size: 13px;
  color: var(--smms-ink-soft);
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.story-row__time {
  font-size: 11px;
  color: var(--smms-muted);
  white-space: nowrap;
  padding-top: 2px;
}

.empty-state {
  text-align: center;
  padding: 40px 20px;
  color: var(--smms-muted);
  border: 1px dashed var(--smms-line);
  border-radius: 8px;
  background: rgba(255,255,255,0.5);
}

/* —— Login —— */
.login-stage {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
  background:
    radial-gradient(800px 420px at 15% 10%, rgba(232, 213, 163, 0.35), transparent 55%),
    linear-gradient(160deg, var(--smms-ink) 0%, #1c1411 48%, var(--smms-red-deep) 140%);
}

.login-card {
  width: min(420px, 100%);
  background: var(--smms-paper);
  border-radius: 12px;
  padding: 32px 28px 28px;
  border: 1px solid rgba(232, 213, 163, 0.35);
  box-shadow: 0 24px 60px rgba(0,0,0,0.35);
  animation: smms-fade-up 0.5s ease both;
}

.login-card__brand {
  text-align: center;
  margin-bottom: 22px;
}
.login-card__brand img {
  width: 56px;
  height: 56px;
  border-radius: 10px;
  margin-bottom: 12px;
}
.login-card__brand h1 {
  font-family: var(--smms-display);
  font-size: 1.35rem;
  margin: 0 0 4px;
}
.login-card__brand p {
  margin: 0;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--smms-muted);
}

.login-field { margin-bottom: 14px; }
.login-field label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: var(--smms-muted);
  margin-bottom: 6px;
}
.login-field input {
  width: 100%;
  padding: 11px 12px;
  border-radius: 6px;
  border: 1px solid var(--smms-line);
  background: #fff;
  font: inherit;
  color: var(--smms-ink);
}
.login-field input:focus {
  outline: 2px solid rgba(196, 30, 58, 0.25);
  border-color: var(--smms-red);
}

.login-alert {
  padding: 10px 12px;
  border-radius: 6px;
  margin-bottom: 14px;
  font-size: 13px;
}
.login-alert--error { background: #fde8eb; color: var(--smms-red-deep); }
.login-alert--ok { background: #e8f5ee; color: #1f5c38; }

.login-submit {
  width: 100%;
  margin-top: 6px;
  padding: 12px;
  border: 0;
  border-radius: 6px;
  background: var(--smms-red);
  color: #fff;
  font-family: var(--smms-font);
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
}
.login-submit:hover { background: var(--smms-red-deep); }

/* —— Responsive —— */
@media (max-width: 980px) {
  .stat-row { grid-template-columns: repeat(2, 1fr); }
  .dash-grid { grid-template-columns: 1fr; }
  .impact-reel__grid { grid-template-columns: 1fr; }
  .story-row { grid-template-columns: 64px 1fr; }
  .story-row__time { grid-column: 2; }
}

@media (max-width: 820px) {
  .portal-nav {
    transform: translateX(-105%);
    transition: transform 0.22s ease;
  }
  .portal-nav.is-open { transform: translateX(0); }
  .portal-main { margin-left: 0; }
  .portal-burger { display: inline-grid; place-items: center; }
  .portal-content { padding: 18px 16px 28px; }
  .portal-top { padding: 0 16px; }
  .portal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(20,14,12,0.45);
    z-index: 35;
  }
  .portal-overlay.is-on { display: block; }
}

/* Soft-restyle legacy chart/report pages inside the new shell */
.portal-content .container,
.portal-content .container-fluid { max-width: none; padding: 0; }
.portal-content .card,
.portal-content .box {
  background: #fff;
  border: 1px solid var(--smms-line);
  border-radius: 8px;
  box-shadow: none;
}
.portal-content h1, .portal-content h2, .portal-content h3 {
  font-family: var(--smms-display);
  color: var(--smms-ink);
}
.portal-content .btn-primary {
  background: var(--smms-red);
  border-color: var(--smms-red-deep);
}

/* —— Dashboard enhancements —— */
.insight-hero__grid {
  display: grid;
  grid-template-columns: 1fr 140px;
  gap: 20px;
  align-items: center;
}
.insight-hero__pulse {
  position: relative;
  width: 120px;
  height: 120px;
  margin: 0 auto;
}
.pulse-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1px solid rgba(232,213,163,0.35);
  animation: pulse-spin 8s linear infinite;
}
.pulse-ring::after {
  content: "";
  position: absolute;
  inset: 12px;
  border-radius: 50%;
  border: 1px dashed rgba(255,255,255,0.25);
}
@keyframes pulse-spin { to { transform: rotate(360deg); } }
.pulse-core {
  position: absolute;
  inset: 22px;
  border-radius: 50%;
  background: rgba(0,0,0,0.28);
  display: grid;
  place-items: center;
  align-content: center;
  text-align: center;
}
.pulse-core span {
  font-family: var(--smms-display);
  font-size: 1.6rem;
  font-weight: 700;
  line-height: 1;
}
.pulse-core small {
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--smms-sand);
}

.dash-grid--3 {
  grid-template-columns: repeat(3, 1fr);
}
.chart-wrap { position: relative; min-height: 160px; }
.chart-panel { min-height: 260px; }

.trend-narrative {
  margin: 0 0 14px;
  padding: 12px 14px;
  background: var(--smms-sand-soft);
  border-left: 3px solid var(--smms-red);
  border-radius: 0 6px 6px 0;
  font-size: 14px;
  line-height: 1.45;
  color: var(--smms-ink-soft);
}
.trend-list { display: flex; flex-direction: column; gap: 12px; }
.trend-item p {
  margin: 6px 0 0;
  font-size: 12px;
  color: var(--smms-muted);
  line-height: 1.4;
}
.trend-item__top {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
}
.trend-item__top strong { font-size: 14px; }
.heat {
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 999px;
  background: var(--smms-sand-soft);
  color: var(--smms-muted);
}
.heat--rising { background: #fde8eb; color: var(--smms-red-deep); }
.heat--cooling { background: #eef2f0; color: #3d5c4a; }
.momentum {
  height: 5px;
  background: rgba(20,14,12,0.06);
  border-radius: 999px;
  overflow: hidden;
  margin-top: 8px;
}
.momentum span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--smms-red), var(--smms-sand));
  border-radius: 999px;
}

.story-row__badge {
  width: 72px;
  height: 54px;
  border-radius: 6px;
  background: var(--smms-ink);
  color: var(--smms-sand);
  display: grid;
  place-items: center;
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 700;
  text-align: center;
  padding: 4px;
}

/* —— Articles library —— */
.lib-hero {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: flex-end;
  margin-bottom: 18px;
  flex-wrap: wrap;
}
.lib-hero__title {
  font-family: var(--smms-display);
  font-size: clamp(1.35rem, 2.2vw, 1.75rem);
  margin: 0 0 8px;
  max-width: 36rem;
}
.lib-hero__lede {
  margin: 0;
  color: var(--smms-muted);
  max-width: 38rem;
  line-height: 1.45;
}
.lib-hero__actions { display: flex; gap: 10px; flex-wrap: wrap; }

.filter-bar {
  display: grid;
  grid-template-columns: 1.6fr repeat(5, minmax(110px, 1fr)) auto;
  gap: 10px;
  padding: 14px;
  background: #fff;
  border: 1px solid var(--smms-line);
  border-radius: 8px;
  margin-bottom: 16px;
  align-items: end;
}
.filter-bar__field label {
  display: block;
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--smms-muted);
  margin-bottom: 5px;
  font-weight: 600;
}
.filter-bar__field input,
.filter-bar__field select {
  width: 100%;
  padding: 9px 10px;
  border: 1px solid var(--smms-line);
  border-radius: 6px;
  font: inherit;
  background: var(--smms-paper);
  color: var(--smms-ink);
}
.filter-bar__field input:focus,
.filter-bar__field select:focus {
  outline: 2px solid rgba(196,30,58,0.2);
  border-color: var(--smms-red);
}
.filter-bar__grow { grid-column: span 1; }

.article-table-wrap { overflow-x: auto; }
.article-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
.article-table th {
  text-align: left;
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--smms-muted);
  padding: 10px 8px;
  border-bottom: 1px solid var(--smms-line);
  white-space: nowrap;
}
.article-table td {
  padding: 12px 8px;
  border-bottom: 1px solid var(--smms-line);
  vertical-align: top;
}
.article-table tr:hover td { background: rgba(247, 240, 226, 0.45); }
.article-table__title { font-weight: 600; line-height: 1.35; color: var(--smms-ink); }
.article-table__sum { margin-top: 4px; font-size: 12px; color: var(--smms-muted); line-height: 1.35; }
.nowrap { white-space: nowrap; }
.muted { color: var(--smms-muted); font-size: 12px; }
.table-link {
  font-weight: 600;
  font-size: 12px;
  color: var(--smms-red-deep);
}
.type-pill {
  display: inline-block;
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 700;
  padding: 4px 8px;
  border-radius: 4px;
  background: var(--smms-sand-soft);
  color: var(--smms-ink);
}
.type-pill--tv { background: #140e0c; color: var(--smms-sand); }
.type-pill--radio { background: #2a1f1b; color: #fff; }
.type-pill--social { background: #fde8eb; color: var(--smms-red-deep); }
.type-pill--online { background: #eef2f0; color: #2f5c45; }
.tonality {
  display: inline-block;
  margin-top: 6px;
  font-size: 10px;
  padding: 2px 7px;
  border-radius: 999px;
  background: var(--smms-sand-soft);
}
.tonality--positive { background: #e8f5ee; color: #1f5c38; }
.tonality--negative { background: #fde8eb; color: var(--smms-red-deep); }
.tonality--neutral { background: #f0ebe3; color: var(--smms-muted); }

@media (max-width: 1100px) {
  .dash-grid--3 { grid-template-columns: 1fr; }
  .filter-bar { grid-template-columns: 1fr 1fr 1fr; }
  .insight-hero__grid { grid-template-columns: 1fr; }
  .insight-hero__pulse { display: none; }
}
@media (max-width: 700px) {
  .filter-bar { grid-template-columns: 1fr; }
}

/* —— Thematic framework —— */
.theme-frame {
  margin-bottom: 22px;
  padding: 22px;
  border-radius: 10px;
  background:
    radial-gradient(700px 240px at 100% 0%, rgba(232,213,163,0.28), transparent 55%),
    #fff;
  border: 1px solid var(--smms-line);
}
.theme-frame__head {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: flex-end;
  flex-wrap: wrap;
  margin-bottom: 18px;
}
.theme-frame__title {
  font-family: var(--smms-display);
  font-size: clamp(1.25rem, 2vw, 1.55rem);
  margin: 0 0 8px;
  max-width: 34rem;
}
.theme-frame__lede {
  margin: 0;
  color: var(--smms-muted);
  max-width: 40rem;
  line-height: 1.5;
  font-size: 14px;
}
.mix-meters {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}
.mix-meter {
  min-width: 92px;
  padding: 10px 12px;
  border-radius: 8px;
  background: var(--smms-ink);
  color: #fff;
  text-align: center;
}
.mix-meter--online { background: var(--smms-red-deep); }
.mix-meter span {
  display: block;
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--smms-sand);
}
.mix-meter strong {
  display: block;
  font-family: var(--smms-display);
  font-size: 1.5rem;
  line-height: 1.1;
  margin: 4px 0 2px;
}
.mix-meter small { font-size: 10px; opacity: 0.75; }

.theme-radar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}
.theme-tile {
  display: block;
  padding: 14px;
  border-radius: 8px;
  border: 1px solid var(--smms-line);
  background: var(--smms-paper);
  color: inherit;
  text-decoration: none;
  transition: transform 0.18s, border-color 0.18s, box-shadow 0.18s;
  min-height: 180px;
}
.theme-tile:hover {
  transform: translateY(-3px);
  border-color: rgba(196,30,58,0.35);
  box-shadow: 0 10px 24px rgba(20,14,12,0.06);
  color: inherit;
}
.theme-tile__top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}
.theme-tile__top i {
  font-size: 1.2rem;
  color: var(--smms-red);
}
.theme-tile h3 {
  font-family: var(--smms-display);
  font-size: 0.98rem;
  margin: 0 0 8px;
  line-height: 1.25;
}
.theme-tile > p {
  margin: 0;
  font-size: 12px;
  color: var(--smms-muted);
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 3.9em;
}
.theme-tile__stats {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 12px;
  font-size: 11px;
  color: var(--smms-muted);
}
.theme-tile__stats strong { color: var(--smms-ink); font-size: 13px; }
.intensity {
  height: 4px;
  background: rgba(20,14,12,0.08);
  border-radius: 999px;
  margin-top: 10px;
  overflow: hidden;
}
.intensity span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--smms-red), var(--smms-sand));
}
.theme-tile__risk {
  margin-top: 8px;
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--smms-muted);
}
.risk--elevated { color: var(--smms-red-deep); }
.risk--watch { color: #9a5b1a; }
.risk--active { color: #2f5c45; }
.risk--calm, .risk--quiet { color: var(--smms-muted); }

.temp {
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 999px;
  background: var(--smms-sand-soft);
  color: var(--smms-muted);
  font-weight: 700;
}
.temp--high { background: #fde8eb; color: var(--smms-red-deep); }
.temp--moderate { background: #fff1dd; color: #9a5b1a; }
.temp--low { background: #eef2f0; color: #3d5c4a; }

.risk-board--emerging {
  background:
    linear-gradient(180deg, rgba(196,30,58,0.04), transparent 40%),
    #fff;
}
.signal-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 16px;
}
.signal-strip div {
  padding: 10px;
  border-radius: 6px;
  background: var(--smms-sand-soft);
  text-align: center;
}
.signal-strip span {
  display: block;
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--smms-muted);
}
.signal-strip strong {
  font-family: var(--smms-display);
  font-size: 1.25rem;
}
.mini-stories {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.mini-stories a {
  font-size: 13px;
  line-height: 1.35;
  color: var(--smms-ink);
  border-bottom: 1px solid var(--smms-line);
  padding-bottom: 8px;
}
.mini-stories a:hover { color: var(--smms-red); }

.theme-deep {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  margin-bottom: 18px;
}
.theme-deep__card {
  background: #fff;
  border: 1px solid var(--smms-line);
  border-radius: 8px;
  padding: 16px 18px;
}
.theme-deep__card header {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin-bottom: 10px;
}
.theme-deep__card header i {
  font-size: 1.3rem;
  color: var(--smms-red);
  margin-top: 2px;
}
.theme-deep__card header h3 {
  font-family: var(--smms-display);
  font-size: 1.02rem;
  margin: 0 0 4px;
}
.theme-deep__card header p {
  margin: 0;
  font-size: 12px;
  color: var(--smms-muted);
}
.theme-deep__signal {
  margin: 0 0 8px;
  font-size: 14px;
  line-height: 1.45;
}
.theme-deep__impl {
  margin: 0 0 12px;
  font-size: 13px;
  color: var(--smms-ink-soft);
  line-height: 1.45;
}
.theme-deep__split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 12px;
}
.theme-deep__split label {
  display: block;
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--smms-muted);
  margin-bottom: 4px;
}
.theme-deep__split .bar {
  height: 6px;
  background: rgba(20,14,12,0.08);
  border-radius: 999px;
  overflow: hidden;
}
.theme-deep__split .bar span {
  display: block;
  height: 100%;
  background: var(--smms-ink);
}
.theme-deep__split .bar--online span { background: var(--smms-red); }
.theme-deep__samples {
  list-style: none;
  margin: 0 0 12px;
  padding: 0;
}
.theme-deep__samples li {
  padding: 6px 0;
  border-top: 1px solid var(--smms-line);
  font-size: 13px;
}
.theme-deep__samples a { color: var(--smms-ink); }
.theme-deep__samples a:hover { color: var(--smms-red); }
.theme-deep__link {
  font-size: 12px;
  font-weight: 700;
  color: var(--smms-red-deep);
}

.theme-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}
.theme-tab {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  border-radius: 6px;
  border: 1px solid var(--smms-line);
  background: #fff;
  color: var(--smms-ink);
  font-size: 12px;
  font-weight: 600;
}
.theme-tab em {
  font-style: normal;
  background: var(--smms-sand-soft);
  padding: 1px 6px;
  border-radius: 999px;
  font-size: 11px;
  color: var(--smms-muted);
}
.theme-tab.is-active,
.theme-tab:hover {
  background: var(--smms-ink);
  border-color: var(--smms-ink);
  color: #fff;
}
.theme-tab.is-active em,
.theme-tab:hover em {
  background: rgba(232,213,163,0.2);
  color: var(--smms-sand);
}

@media (max-width: 1100px) {
  .theme-radar { grid-template-columns: repeat(2, 1fr); }
  .theme-deep { grid-template-columns: 1fr; }
}
@media (max-width: 700px) {
  .theme-radar { grid-template-columns: 1fr; }
  .signal-strip { grid-template-columns: 1fr; }
}

/* Login extras */
.login-pw {
  position: relative;
}
.login-pw input {
  width: 100%;
  padding: 11px 64px 11px 12px;
  border-radius: 6px;
  border: 1px solid var(--smms-line);
  background: #fff;
  font: inherit;
  color: var(--smms-ink);
}
.login-pw input:focus {
  outline: 2px solid rgba(196, 30, 58, 0.25);
  border-color: var(--smms-red);
}
.login-pw__toggle {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  border: 0;
  background: transparent;
  color: var(--smms-red);
  font: inherit;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  cursor: pointer;
  padding: 4px 6px;
}
.login-footer {
  margin: 16px 0 0;
  text-align: center;
  font-size: 13px;
}
.login-footer a {
  color: var(--smms-red-deep);
  font-weight: 600;
}
.login-lede {
  margin: 0 0 16px;
  font-size: 13px;
  color: var(--smms-muted);
  line-height: 1.45;
  text-align: center;
}

/* —— Consulsat-SD brand blend (logo purple + existing ink/sand/red) —— */
:root {
  --cs-purple: #6b2d8b;
  --cs-purple-deep: #4a1f66;
  --cs-navy: #1e3a5f;
  --cs-gold: #e8c547;
}

.portal-nav__brand {
  gap: 10px;
  padding: 14px 14px 14px;
  background:
    linear-gradient(135deg, rgba(107, 45, 139, 0.22), transparent 55%),
    transparent;
}
.portal-nav__logo {
  width: 46px;
  height: 46px;
  border-radius: 10px;
  object-fit: cover;
  background: #fff;
  border: 1px solid rgba(232, 213, 163, 0.35);
  flex-shrink: 0;
}
.portal-nav__name {
  font-size: 13px;
  letter-spacing: 0.02em;
}
.portal-nav__sub {
  color: var(--smms-sand);
}

.login-stage--blend {
  background:
    radial-gradient(900px 420px at 12% 8%, rgba(107, 45, 139, 0.28), transparent 55%),
    radial-gradient(700px 380px at 92% 12%, rgba(232, 197, 71, 0.12), transparent 50%),
    linear-gradient(160deg, var(--smms-ink) 0%, #1c1411 42%, var(--smms-red-deep) 130%);
}
.login-card--branded {
  width: min(460px, 100%);
}
.login-card__brand--wide .login-card__logo {
  width: min(100%, 320px);
  height: auto;
  border-radius: 10px;
  margin: 0 auto 14px;
  display: block;
  background: #fff;
  box-shadow: 0 8px 24px rgba(20, 14, 12, 0.12);
}
.login-card__brand--wide h1 {
  font-size: 1.2rem;
  margin-top: 4px;
}
.login-card__brand--wide p {
  letter-spacing: 0.14em;
}

.login-card__brand img:not(.login-card__logo) {
  width: 64px;
  height: 64px;
  object-fit: cover;
  border-radius: 12px;
  background: #fff;
}

/* —— Editorial charts (Media analysis) —— */
.analysis-clips {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.analysis-clip {
  border: 1px solid var(--smms-line);
  border-radius: 10px;
  overflow: hidden;
  background: #fff;
}
.analysis-clip__player {
  aspect-ratio: 16 / 9;
  background: #1a1210;
}
.analysis-clip__player video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.analysis-clip__body {
  padding: 12px 14px 14px;
}
.analysis-clip__body h4 {
  font-family: var(--smms-display);
  font-size: 0.95rem;
  margin: 4px 0 6px;
  line-height: 1.3;
}
.analysis-clip__body h4 a {
  color: var(--smms-ink);
  text-decoration: none;
}
.analysis-clip__body h4 a:hover { color: var(--smms-red); }
.analysis-clip__body p {
  margin: 0;
  font-size: 12px;
  color: var(--smms-muted);
}
.analysis-wordcloud {
  min-height: 280px;
  height: 320px;
  width: 100%;
  border-radius: 8px;
  background: linear-gradient(160deg, rgba(232,213,163,0.25), rgba(20,14,12,0.03));
}
@media (max-width: 980px) {
  .analysis-clips { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .analysis-clips { grid-template-columns: 1fr; }
}

/* —— Advertising analysis —— */
.ad-hero {
  position: relative;
  overflow: hidden;
  border-radius: 14px;
  padding: 28px 28px 26px;
  margin-bottom: 18px;
  color: #f7f0e8;
  background:
    radial-gradient(ellipse 70% 80% at 100% 0%, rgba(196,30,58,0.45), transparent 55%),
    radial-gradient(ellipse 50% 60% at 0% 100%, rgba(232,213,163,0.18), transparent 50%),
    linear-gradient(145deg, #1a1210 0%, #2a1a18 48%, #140e0c 100%);
  border: 1px solid rgba(232,213,163,0.12);
}
.ad-hero__grid {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr;
  gap: 24px;
  align-items: center;
  position: relative;
  z-index: 1;
}
.ad-hero__title {
  font-family: var(--smms-display);
  font-size: clamp(1.55rem, 2.4vw, 2.1rem);
  margin: 0 0 10px;
  line-height: 1.15;
  color: #fff;
}
.ad-hero__lede {
  margin: 0;
  max-width: 54ch;
  color: rgba(247,240,232,0.78);
  line-height: 1.55;
}
.ad-preview-banner {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin-top: 14px;
  padding: 10px 12px;
  border-radius: 8px;
  background: rgba(232,213,163,0.12);
  border: 1px solid rgba(232,213,163,0.22);
  color: var(--smms-sand);
  font-size: 0.88rem;
  line-height: 1.45;
}
.ad-preview-banner i { margin-top: 2px; }
.ad-hero .insight-pill {
  background: rgba(255,255,255,0.08);
  border-color: rgba(232,213,163,0.25);
  color: rgba(247,240,232,0.9);
}
.ad-hero .btn-smms {
  border-color: rgba(232,213,163,0.35);
  color: #fff;
}
.ad-hero .btn-smms:hover {
  background: rgba(255,255,255,0.1);
  color: #fff;
}
.ad-hero__orbit {
  position: relative;
  min-height: 180px;
  display: grid;
  place-items: center;
}
.ad-orbit__ring {
  position: absolute;
  width: 160px;
  height: 160px;
  border-radius: 50%;
  border: 1px dashed rgba(232,213,163,0.35);
  animation: ad-spin 18s linear infinite;
}
.ad-orbit__core {
  width: 110px;
  height: 110px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, #c41e3a, #5c0f1c 70%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  box-shadow: 0 12px 40px rgba(196,30,58,0.35);
}
.ad-orbit__core strong {
  font-family: var(--smms-display);
  font-size: 1.6rem;
  line-height: 1;
}
.ad-orbit__core span {
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 0.85;
}
.ad-orbit__chip {
  position: absolute;
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(232,213,163,0.25);
  color: var(--smms-sand);
  backdrop-filter: blur(4px);
}
.ad-orbit__chip--1 { top: 18px; right: 8px; animation: ad-float 4s ease-in-out infinite; }
.ad-orbit__chip--2 { bottom: 22px; left: 4px; animation: ad-float 4.8s ease-in-out infinite reverse; }
@keyframes ad-spin { to { transform: rotate(360deg); } }
@keyframes ad-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

.ad-sov-list { display: flex; flex-direction: column; gap: 10px; }
.ad-sov-row.is-focus .ad-sov-bar span { background: var(--smms-red); }
.ad-sov-row__top {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
  font-size: 0.92rem;
}
.ad-sov-rank {
  width: 22px; height: 22px; border-radius: 6px;
  display: grid; place-items: center;
  background: rgba(20,14,12,0.06);
  font-size: 11px; font-weight: 700; color: var(--smms-muted);
}
.ad-sov-row__top strong { flex: 1; color: var(--smms-ink); }
.ad-sov-row__top em { font-style: normal; font-weight: 700; color: var(--smms-red); }
.ad-sov-bar {
  height: 7px; border-radius: 99px; background: rgba(20,14,12,0.06); overflow: hidden;
}
.ad-sov-bar span {
  display: block; height: 100%; border-radius: 99px;
  background: linear-gradient(90deg, #2a1f1b, #c41e3a);
}

.ad-heatstrip {
  display: grid;
  grid-template-columns: repeat(24, 1fr);
  gap: 4px;
  align-items: end;
  min-height: 110px;
  padding-top: 8px;
}
.ad-heatstrip__cell {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  height: 100px;
  justify-content: flex-end;
}
.ad-heatstrip__fill {
  width: 100%;
  max-width: 18px;
  border-radius: 5px 5px 2px 2px;
  background: linear-gradient(180deg, #e8d5a3, #c41e3a);
}
.ad-heatstrip__cell small {
  font-size: 9px;
  color: var(--smms-muted);
}

.ad-gap-list { display: flex; flex-direction: column; gap: 8px; }
.ad-gap-item {
  display: grid;
  grid-template-columns: 64px 1fr auto;
  gap: 10px;
  align-items: center;
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid var(--smms-line);
  background: rgba(20,14,12,0.02);
}
.ad-gap-item strong { font-family: var(--smms-display); }
.ad-gap-item__meta {
  display: flex; gap: 10px; font-size: 12px; color: var(--smms-muted);
}
.ad-gap-item em {
  font-style: normal;
  font-weight: 700;
  color: var(--smms-red);
}

.ad-activity { display: flex; flex-direction: column; gap: 8px; }
.ad-activity__row {
  display: grid;
  grid-template-columns: 100px 1fr auto;
  gap: 14px;
  align-items: start;
  padding: 12px;
  border-radius: 8px;
  border: 1px solid var(--smms-line);
  background: #fff;
  transition: border-color 0.15s, transform 0.15s;
}
.ad-activity__row:hover {
  border-color: rgba(196,30,58,0.3);
  transform: translateY(-1px);
}
.ad-activity__time strong { display: block; font-size: 0.88rem; }
.ad-activity__time span { font-size: 12px; color: var(--smms-muted); }
.ad-activity__main h4 {
  margin: 2px 0 4px;
  font-family: var(--smms-display);
  font-size: 0.98rem;
  color: var(--smms-ink);
}
.ad-activity__main p { margin: 0; font-size: 12px; color: var(--smms-muted); }
.ad-activity__cost {
  font-weight: 700;
  color: var(--smms-ink);
  font-variant-numeric: tabular-nums;
}

@media (max-width: 980px) {
  .ad-hero__grid { grid-template-columns: 1fr; }
  .ad-hero__orbit { display: none; }
  .ad-heatstrip { overflow-x: auto; }
  .ad-activity__row { grid-template-columns: 1fr; }
}

/* —— Cameroon Brand-feed landing —— */
.bf-hero {
  position: relative;
  overflow: hidden;
  min-height: min(72vh, 560px);
  margin: -8px -8px 28px;
  border-radius: 0 0 28px 28px;
  background:
    linear-gradient(135deg, rgba(7, 40, 32, 0.92) 0%, rgba(11, 61, 46, 0.88) 42%, rgba(26, 107, 69, 0.78) 100%),
    radial-gradient(800px 400px at 80% 20%, rgba(240, 201, 74, 0.35), transparent 60%);
  color: #fff;
  isolation: isolate;
}

.bf-hero__atmosphere {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.bf-hero__wave {
  position: absolute;
  inset: auto -10% -20% -10%;
  height: 70%;
  border-radius: 50%;
  border: 1px solid rgba(240, 201, 74, 0.18);
  animation: bf-pulse 8s ease-in-out infinite;
}
.bf-hero__wave--a { transform: scale(1.05); animation-delay: 0s; }
.bf-hero__wave--b {
  inset: auto -5% -35% -5%;
  height: 85%;
  border-color: rgba(255, 255, 255, 0.08);
  animation-delay: -2.5s;
}
.bf-hero__glow {
  position: absolute;
  width: 420px;
  height: 420px;
  right: -40px;
  top: -80px;
  background: radial-gradient(circle, rgba(240, 201, 74, 0.35), transparent 68%);
  animation: bf-drift 12s ease-in-out infinite alternate;
}

@keyframes bf-pulse {
  0%, 100% { opacity: 0.55; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.04); }
}
@keyframes bf-drift {
  from { transform: translate(0, 0); }
  to { transform: translate(-30px, 24px); }
}
@keyframes bf-rise {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}

.bf-hero__inner {
  position: relative;
  z-index: 1;
  max-width: 760px;
  padding: 72px 40px 56px;
  animation: bf-rise 0.8s ease both;
}

.bf-hero__brand {
  margin: 0 0 14px;
  font-family: var(--smms-display);
  font-weight: 800;
  font-size: clamp(1.6rem, 3.4vw, 2.35rem);
  letter-spacing: -0.03em;
  color: var(--smms-sand);
  line-height: 1.1;
}

.bf-hero__title {
  margin: 0 0 16px;
  font-family: var(--smms-display);
  font-weight: 800;
  font-size: clamp(1.85rem, 4.2vw, 3.1rem);
  letter-spacing: -0.035em;
  line-height: 1.05;
  color: #fff;
}

.bf-hero__lede {
  margin: 0 0 28px;
  max-width: 34rem;
  font-size: 1.05rem;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.82);
}

.bf-hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 28px;
}

.bf-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 20px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.92rem;
  transition: transform 0.18s ease, background 0.18s ease, color 0.18s ease;
}
.bf-btn:hover { transform: translateY(-1px); }
.bf-btn--gold {
  background: var(--smms-sand);
  color: var(--bf-deep);
}
.bf-btn--gold:hover { background: #ffe082; color: var(--bf-deep); }
.bf-btn--ghost {
  border: 1px solid rgba(255, 255, 255, 0.35);
  color: #fff;
  background: transparent;
}
.bf-btn--ghost:hover { border-color: #fff; color: #fff; }

.bf-hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  font-size: 0.84rem;
  color: rgba(255, 255, 255, 0.72);
}
.bf-hero__meta i { color: var(--smms-sand); margin-right: 4px; }

.bf-preview {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin: 0 0 22px;
  padding: 12px 14px;
  border-radius: 12px;
  background: rgba(240, 201, 74, 0.16);
  border: 1px solid rgba(240, 201, 74, 0.35);
  color: var(--smms-ink);
  font-size: 0.9rem;
}

.bf-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 28px;
  animation: bf-rise 0.7s ease 0.12s both;
}
.bf-stat {
  padding: 18px 18px 16px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid var(--smms-line);
  backdrop-filter: blur(6px);
}
.bf-stat__label {
  margin: 0;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--smms-muted);
}
.bf-stat__value {
  margin: 8px 0 4px;
  font-family: var(--smms-display);
  font-size: 1.85rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--smms-ink);
}
.bf-stat__hint { margin: 0; font-size: 0.8rem; color: var(--smms-muted); }

.bf-section {
  margin-bottom: 34px;
  animation: bf-rise 0.75s ease 0.18s both;
}
.bf-section__head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-end;
  margin-bottom: 16px;
}
.bf-section__head h2 {
  margin: 4px 0 6px;
  font-family: var(--smms-display);
  font-size: 1.45rem;
  letter-spacing: -0.02em;
}
.bf-section__head p { margin: 0; color: var(--smms-muted); font-size: 0.92rem; }
.bf-kicker {
  margin: 0;
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--smms-red);
  font-weight: 700;
}
.bf-link {
  font-weight: 700;
  color: var(--bf-green);
  white-space: nowrap;
}
.bf-link:hover { color: var(--smms-red); }

.bf-split {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 16px;
}
.bf-split--charts { grid-template-columns: 1fr 1fr; }

.bf-rank {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.bf-rank__row {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 10px;
  align-items: center;
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid var(--smms-line);
}
.bf-rank__n {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  background: var(--smms-ink);
  color: var(--smms-sand);
  font-weight: 800;
  font-size: 0.78rem;
}
.bf-rank__top {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
  font-size: 0.9rem;
}
.bf-rank__top span { color: var(--smms-muted); font-variant-numeric: tabular-nums; }
.bf-rank__bar {
  height: 6px;
  border-radius: 999px;
  background: rgba(11, 61, 46, 0.08);
  overflow: hidden;
}
.bf-rank__bar span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--bf-green), var(--smms-sand));
}

.bf-chart-card {
  padding: 16px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.75);
  border: 1px solid var(--smms-line);
}
.bf-chart-card__label {
  margin: 0 0 10px;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--smms-muted);
  font-weight: 700;
}

.bf-media-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
.bf-media {
  padding: 16px;
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(255,255,255,0.85), rgba(243,247,244,0.9));
  border: 1px solid var(--smms-line);
}
.bf-media h3 {
  margin: 0 0 12px;
  font-size: 0.95rem;
  font-family: var(--smms-display);
}
.bf-media__bar {
  height: 8px;
  border-radius: 999px;
  background: rgba(11, 61, 46, 0.08);
  overflow: hidden;
  margin-bottom: 10px;
}
.bf-media__bar span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--smms-red), var(--smms-sand));
}
.bf-media p { margin: 0; font-size: 0.82rem; color: var(--smms-muted); }

.bf-feed {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.bf-feed__item {
  display: grid;
  grid-template-columns: 110px 1fr auto;
  gap: 14px;
  align-items: center;
  padding: 14px 16px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid var(--smms-line);
  transition: border-color 0.15s, transform 0.15s;
}
.bf-feed__item:hover {
  border-color: rgba(26, 107, 69, 0.35);
  transform: translateY(-1px);
}
.bf-feed__when strong { display: block; font-size: 0.88rem; }
.bf-feed__when span { font-size: 12px; color: var(--smms-muted); }
.bf-feed__main h3 {
  margin: 0 0 4px;
  font-family: var(--smms-display);
  font-size: 1rem;
}
.bf-feed__main p { margin: 0; font-size: 0.82rem; color: var(--smms-muted); }
.bf-feed__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: flex-end;
}
.bf-feed__meta span {
  font-size: 0.72rem;
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(11, 61, 46, 0.07);
  color: var(--smms-ink-soft);
}
.bf-empty { color: var(--smms-muted); margin: 0; }

/* Login landing */
.bf-login-body { background: var(--bf-deep); }
.bf-login {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
}
.bf-login__stage {
  position: relative;
  overflow: hidden;
  padding: 56px 48px;
  display: flex;
  align-items: flex-end;
  background:
    linear-gradient(160deg, #072820 0%, #0b3d2e 45%, #1a6b45 100%),
    radial-gradient(600px 300px at 90% 10%, rgba(240, 201, 74, 0.28), transparent 60%);
  color: #fff;
}
.bf-login__atmosphere {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.bf-login__copy {
  position: relative;
  z-index: 1;
  max-width: 34rem;
  animation: bf-rise 0.85s ease both;
}
.bf-login__mark {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  margin-bottom: 22px;
}
.bf-login__copy h1 {
  margin: 10px 0 16px;
  font-family: var(--smms-display);
  font-weight: 800;
  font-size: clamp(2rem, 3.6vw, 3rem);
  letter-spacing: -0.035em;
  line-height: 1.05;
}
.bf-login__lede {
  margin: 0;
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.55;
  font-size: 1.02rem;
}
.bf-login__panel {
  display: grid;
  place-items: center;
  padding: 32px 24px;
  background:
    radial-gradient(500px 280px at 50% 0%, rgba(240, 201, 74, 0.18), transparent 60%),
    var(--smms-paper);
}
.bf-login__card {
  width: min(100%, 400px);
  padding: 28px 28px 22px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid var(--smms-line);
  box-shadow: 0 18px 50px rgba(7, 40, 32, 0.08);
  animation: bf-rise 0.8s ease 0.1s both;
}
.bf-login__card h2 {
  margin: 0 0 4px;
  font-family: var(--smms-display);
  font-size: 1.45rem;
  letter-spacing: -0.02em;
  color: var(--smms-ink);
}
.bf-login__sub {
  margin: 0 0 18px;
  color: var(--smms-muted);
  font-size: 0.9rem;
}
.bf-login__submit {
  background: var(--smms-ink) !important;
  color: var(--smms-sand) !important;
}
.bf-login__submit:hover {
  background: var(--bf-green) !important;
}

@media (max-width: 980px) {
  .bf-hero { min-height: auto; margin: -8px -4px 22px; border-radius: 0 0 20px 20px; }
  .bf-hero__inner { padding: 48px 22px 40px; }
  .bf-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bf-split, .bf-split--charts, .bf-media-grid { grid-template-columns: 1fr; }
  .bf-feed__item { grid-template-columns: 1fr; }
  .bf-feed__meta { justify-content: flex-start; }
  .bf-login { grid-template-columns: 1fr; }
  .bf-login__stage { min-height: 42vh; padding: 36px 24px; align-items: flex-end; }
  .bf-login__copy h1 { font-size: 1.85rem; }
}

/* Catalogue tables */
.bf-table-wrap {
  overflow-x: auto;
  border-radius: 14px;
  border: 1px solid var(--smms-line);
  background: rgba(255,255,255,0.75);
}
.bf-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}
.bf-table th {
  text-align: left;
  padding: 12px 14px;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--smms-muted);
  border-bottom: 1px solid var(--smms-line);
  background: rgba(11, 61, 46, 0.04);
}
.bf-table td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--smms-line);
  vertical-align: top;
}
.bf-table tr:last-child td { border-bottom: 0; }
.bf-table tr:hover td { background: rgba(26, 107, 69, 0.04); }
.bf-muted { color: var(--smms-muted); font-size: 0.82rem; }
.bf-pager {
  display: flex;
  gap: 16px;
  align-items: center;
  justify-content: center;
  margin-top: 16px;
  font-size: 0.9rem;
}
.bf-pager a { font-weight: 700; color: var(--bf-green); }

/* TV / Radio channel badges */
.bf-channel {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  background: rgba(11, 61, 46, 0.08);
  color: var(--smms-ink);
}
.bf-channel--tv {
  background: rgba(206, 17, 38, 0.12);
  color: #9a0d1c;
}
.bf-channel--radio {
  background: rgba(26, 107, 69, 0.14);
  color: #0b3d2e;
}
