/* ── Variables ── */
:root {
  --green:        #008751;
  --green-light:  #007a49;
  --green-dim:    #e4f5ec;
  --bg:           #f4f6fb;
  --bg-card:      #ffffff;
  --bg-hover:     #eef1f8;
  --border:       #dde1ed;
  --text:         #1a1d2e;
  --text-muted:   #64698a;
  --badge-bg:     #e4f5ec;
  --badge-text:   #006840;
  --radius:       10px;
  --font:         'Inter', system-ui, sans-serif;
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  line-height: 1.5;
}

a { color: inherit; text-decoration: none; }

/* ── Header ── */
header {
  background: linear-gradient(135deg, #090c18 0%, #0b1c10 100%);
  border-bottom: 2px solid var(--green);
  padding: 0.9rem 2rem;
  position: sticky;
  top: 0;
  z-index: 200;
}

.header-inner {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.logo { display: flex; align-items: center; gap: 0.75rem; }
.flag { font-size: 2rem; line-height: 1; }

.ng-map {
  width: 36px;
  height: 34px;
  color: var(--green-light);
  opacity: 0.85;
  flex-shrink: 0;
}

.logo h1 {
  font-size: 1.55rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.4px;
}

.tagline {
  font-size: 0.7rem;
  color: var(--green-light);
  letter-spacing: 0.4px;
  margin-top: 1px;
}

.update-box {
  text-align: right;
  font-size: 0.78rem;
}

#last-updated { color: var(--green-light); margin-bottom: 2px; }
#next-update  { color: var(--text-muted); }

/* keep header accent text bright on dark header bg */
header .tagline,
header #last-updated,
header .ng-map { color: #4ed898; }

/* ── Tab nav ── */
.tab-nav {
  background: var(--bg-card);
  border-bottom: 1px solid var(--border);
  display: flex;
  padding: 0 2rem;
  overflow-x: auto;
  scrollbar-width: none;
}
.tab-nav::-webkit-scrollbar { display: none; }

.tab-btn {
  background: none;
  border: none;
  border-bottom: 3px solid transparent;
  color: var(--text-muted);
  padding: 0.85rem 1.4rem;
  font-family: var(--font);
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: color 0.15s, border-color 0.15s;
}
.tab-btn:hover   { color: var(--text); }
.tab-btn.active  { color: var(--green-light); border-bottom-color: var(--green); }

/* ── Main ── */
main {
  max-width: 1400px;
  margin: 0 auto;
  padding: 1.5rem 2rem;
}

.tab-panel         { display: none; }
.tab-panel.active  { display: block; }

/* ── Section heading ── */
.section-heading {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--green-light);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border);
}

/* ── Cards ── */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 0.85rem;
}

.card {
  display: flex;
  flex-direction: column;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color 0.15s, transform 0.15s, box-shadow 0.15s;
  text-decoration: none;
  color: inherit;
  box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}
.card:hover {
  border-color: var(--green);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,135,81,0.12);
}

/* Card image */
.card-img {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  flex-shrink: 0;
}

.card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s;
}

.card:hover .card-img img { transform: scale(1.04); }

.card-img-fallback {
  position: absolute;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: rgba(255,255,255,0.35);
  padding: 0.5rem;
  text-align: center;
}

.card-img--err .card-img-fallback { display: flex; }

.card-body {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  padding: 0.85rem 1rem;
  flex: 1;
}

.card-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
}

.badge {
  background: var(--badge-bg);
  color: var(--badge-text);
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  padding: 0.18rem 0.55rem;
  border-radius: 999px;
  white-space: nowrap;
  max-width: 130px;
  overflow: hidden;
  text-overflow: ellipsis;
}

.time {
  font-size: 0.72rem;
  color: var(--text-muted);
  white-space: nowrap;
}

.card-title {
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1.45;
  color: var(--text);
}

.card-summary {
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ── World Cup hero ── */
.wc-hero {
  background: linear-gradient(135deg, #e8f5ee 0%, #f4fff9 50%, #fffef0 100%);
  border: 1px solid #c8e6cc;
  border-radius: 12px;
  padding: 1.5rem 2rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.wc-hero::before {
  content: "⚽";
  position: absolute;
  font-size: 8rem;
  opacity: 0.05;
  right: -1rem;
  top: -1rem;
  line-height: 1;
}

.wc-hero h2 {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 0.4rem;
}

.wc-hero p {
  font-size: 0.85rem;
  color: var(--text-muted);
  letter-spacing: 1px;
}

/* ── Fixture cards ── */
.fixtures-strip {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 0.75rem;
}

.fixture-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1rem;
  text-decoration: none;
  color: inherit;
  display: block;
  transition: border-color 0.15s, background 0.15s;
}
.fixture-card:hover { border-color: var(--green); background: var(--bg-hover); }

.fixture-teams {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}

.fixture-team {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.2rem;
  flex: 1;
}

.fixture-team--away {
  align-items: flex-end;
}

.fixture-name {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text);
  line-height: 1.2;
}

.fixture-score {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text);
  line-height: 1;
}

.fixture-mid {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex-shrink: 0;
  padding: 0 0.5rem;
}

.fixture-status {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.3px;
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  background: var(--bg-hover);
}

.fixture-status--live {
  color: #ff4444;
  background: rgba(255,68,68,0.15);
  animation: pulse 1.5s ease-in-out infinite;
}

.fixture-status--done {
  color: var(--green-light);
  background: var(--green-dim);
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.6; }
}

.fixture-meta {
  font-size: 0.7rem;
  color: var(--text-muted);
  margin-top: 0.15rem;
  text-align: center;
}

/* ── Tech layout ── */
.tech-layout {
  display: grid;
  grid-template-columns: 1fr 350px;
  gap: 1.5rem;
  align-items: start;
}

/* ── Events sidebar ── */
.event-item {
  display: block;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-left: 3px solid var(--green);
  border-radius: 8px;
  padding: 0.8rem 1rem;
  margin-bottom: 0.7rem;
  transition: background 0.15s, border-left-color 0.15s;
}
.event-item:hover {
  background: var(--bg-hover);
  border-left-color: var(--green-light);
}

.event-title {
  font-size: 0.855rem;
  font-weight: 600;
  line-height: 1.4;
  margin-bottom: 0.3rem;
}

.event-meta {
  font-size: 0.72rem;
  color: var(--text-muted);
}

/* ── Trending ── */
.trending-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
  gap: 1.25rem;
}

.trend-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.25rem;
}

/* Google Trends list */
#google-trends {
  list-style: none;
  counter-reset: trends;
}

#google-trends li {
  counter-increment: trends;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.55rem 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.875rem;
}
#google-trends li:last-child { border-bottom: none; }

#google-trends li::before {
  content: counter(trends);
  min-width: 1.6rem;
  font-size: 0.72rem;
  font-weight: 800;
  color: var(--green);
}

/* Reddit & YouTube items */
.trend-item {
  padding: 0.65rem 0;
  border-bottom: 1px solid var(--border);
}
.trend-item:last-child { border-bottom: none; }

.trend-item a {
  font-size: 0.855rem;
  font-weight: 500;
  line-height: 1.4;
  display: block;
  color: var(--text);
  transition: color 0.15s;
}
.trend-item a:hover { color: var(--green-light); }

.trend-sub {
  font-size: 0.7rem;
  color: var(--text-muted);
  margin-top: 0.2rem;
}

/* YouTube thumbnail */
.yt-item {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  padding: 0.65rem 0;
  border-bottom: 1px solid var(--border);
}
.yt-item:last-child { border-bottom: none; }

.yt-thumb {
  width: 80px;
  height: 45px;
  border-radius: 4px;
  object-fit: cover;
  flex-shrink: 0;
  background: var(--border);
}

.yt-info a {
  font-size: 0.82rem;
  font-weight: 500;
  line-height: 1.4;
  color: var(--text);
  display: block;
}
.yt-info a:hover { color: var(--green-light); }

.yt-channel {
  font-size: 0.7rem;
  color: var(--text-muted);
  margin-top: 0.2rem;
}

/* ── Empty / Loading ── */
.empty {
  color: var(--text-muted);
  font-size: 0.85rem;
  text-align: center;
  padding: 2rem 1rem;
}

/* Skeleton loader */
.skeleton-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 0.85rem;
}

.skeleton {
  height: 120px;
  border-radius: var(--radius);
  background: linear-gradient(90deg, var(--bg-card) 25%, var(--bg-hover) 50%, var(--bg-card) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.4s infinite;
}

@keyframes shimmer {
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* ── Exchange Rates & Crypto shared ── */
.rates-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1.25rem;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.rates-header h2 {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 0.25rem;
}

.rates-timestamp {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.refresh-btn {
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--green-light);
  padding: 0.45rem 1rem;
  border-radius: 8px;
  font-family: var(--font);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s;
  white-space: nowrap;
}
.refresh-btn:hover { border-color: var(--green); background: var(--bg-hover); }

.parallel-notice {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  background: #fffbea;
  border: 1px solid #f5e6a0;
  border-left: 3px solid #f5a623;
  border-radius: 8px;
  padding: 0.7rem 1rem;
  font-size: 0.8rem;
  color: #7a5c10;
  margin-bottom: 1.25rem;
  line-height: 1.5;
}

.rates-note {
  margin-top: 1rem;
  font-size: 0.72rem;
  color: var(--text-muted);
  padding-top: 0.75rem;
  border-top: 1px solid var(--border);
  line-height: 1.6;
}

.loading-pulse {
  height: 76px;
  border-radius: var(--radius);
  background: linear-gradient(90deg, var(--bg-card) 25%, var(--bg-hover) 50%, var(--bg-card) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.4s infinite;
}

/* ── Rate cards ── */
.rates-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 0.75rem;
}

.rate-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 0.9rem 1rem;
  display: flex;
  align-items: center;
  gap: 0.85rem;
  transition: border-color 0.15s, background 0.15s;
}
.rate-card:hover { border-color: var(--green); background: var(--bg-hover); }

.rate-flag { font-size: 2rem; line-height: 1; flex-shrink: 0; }

.rate-name {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-bottom: 0.2rem;
}

.rate-code {
  font-weight: 700;
  color: var(--green-light);
}

.rate-value {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--text);
  line-height: 1;
  margin-bottom: 0.2rem;
}

.rate-sub {
  font-size: 0.68rem;
  color: var(--text-muted);
}

/* ── Crypto cards ── */
.crypto-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 0.75rem;
}

.crypto-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1rem 1.1rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  transition: border-color 0.15s, background 0.15s;
}
.crypto-card:hover { border-color: var(--green); background: var(--bg-hover); }

.crypto-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  font-weight: 800;
  flex-shrink: 0;
}

.crypto-name {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-bottom: 0.2rem;
}

.crypto-symbol {
  font-weight: 700;
  color: var(--green-light);
}

.crypto-ngn {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--text);
  line-height: 1;
  margin-bottom: 0.3rem;
}

.crypto-meta {
  display: flex;
  gap: 0.75rem;
  font-size: 0.75rem;
  align-items: center;
}

.crypto-usd  { color: var(--text-muted); }
.crypto-up   { color: #00c853; font-weight: 700; }
.crypto-down { color: #ff5252; font-weight: 700; }

/* ── Live TV ── */
.tv-intro {
  text-align: center;
  padding: 1.5rem 1rem 1rem;
}
.tv-intro h2 {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 0.4rem;
}
.tv-intro p { font-size: 0.85rem; color: var(--text-muted); }

.tv-category-heading {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.6px;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border);
}

.tv-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 0.85rem;
}

.tv-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1rem 1.1rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s, transform 0.15s;
  position: relative;
}
.tv-card:hover {
  border-color: var(--green);
  background: var(--bg-hover);
  transform: translateY(-2px);
}

.tv-logo {
  width: 52px;
  height: 52px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 800;
  color: #fff;
  flex-shrink: 0;
  letter-spacing: 0.5px;
}

.tv-logo--channels  { background: linear-gradient(135deg, #e31e24, #c0151a); }
.tv-logo--arise     { background: linear-gradient(135deg, #1a237e, #283593); }
.tv-logo--tvc       { background: linear-gradient(135deg, #006400, #008000); }
.tv-logo--ait       { background: linear-gradient(135deg, #b71c1c, #d32f2f); }
.tv-logo--nta       { background: linear-gradient(135deg, #1b5e20, #2e7d32); }
.tv-logo--galaxy    { background: linear-gradient(135deg, #4a148c, #6a1b9a); }
.tv-logo--ltv       { background: linear-gradient(135deg, #006064, #00838f); }
.tv-logo--silverbird{ background: linear-gradient(135deg, #bf360c, #e64a19); }
.tv-logo--wazobia   { background: linear-gradient(135deg, #33691e, #558b2f); }
.tv-logo--rstv      { background: linear-gradient(135deg, #880e4f, #ad1457); }
.tv-logo--rave      { background: linear-gradient(135deg, #e65100, #f57c00); }
.tv-logo--ekiti     { background: linear-gradient(135deg, #1a237e, #0d47a1); }

.tv-info { flex: 1; min-width: 0; }

.tv-name {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.2rem;
}

.tv-desc {
  font-size: 0.75rem;
  color: var(--text-muted);
  line-height: 1.3;
}

.tv-live-badge {
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.5px;
  color: #fff;
  background: #e31e24;
  padding: 0.15rem 0.45rem;
  border-radius: 4px;
  flex-shrink: 0;
  animation: pulse 2s ease-in-out infinite;
}

.tv-disclaimer {
  margin-top: 2rem;
  font-size: 0.75rem;
  color: var(--text-muted);
  text-align: center;
  line-height: 1.6;
  padding: 1rem;
  border-top: 1px solid var(--border);
}

/* ── Radio cards ── */
.radio-card {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.9rem 1rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s, transform 0.2s;
}
.radio-card:hover {
  border-color: var(--green);
  background: var(--bg-hover);
  transform: translateY(-2px);
}

.radio-logo {
  width: 52px;
  height: 52px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  font-weight: 800;
  color: #fff;
  flex-shrink: 0;
  letter-spacing: 0.3px;
}

.radio-logo--ch         { background: linear-gradient(135deg, #e31e24, #c0151a); }
.radio-logo--info       { background: linear-gradient(135deg, #1a237e, #283593); }
.radio-logo--lagostalks { background: linear-gradient(135deg, #1b5e20, #2e7d32); }
.radio-logo--raypower   { background: linear-gradient(135deg, #e65100, #f57c00); }
.radio-logo--cool       { background: linear-gradient(135deg, #006064, #00838f); }
.radio-logo--beat       { background: linear-gradient(135deg, #4a148c, #6a1b9a); }
.radio-logo--smooth     { background: linear-gradient(135deg, #880e4f, #ad1457); }
.radio-logo--wazobiafm  { background: linear-gradient(135deg, #33691e, #558b2f); }
.radio-logo--naijafm    { background: linear-gradient(135deg, #bf360c, #e64a19); }
.radio-logo--classic    { background: linear-gradient(135deg, #4e342e, #6d4c41); }
.radio-logo--brila      { background: linear-gradient(135deg, #006400, #008000); }
.radio-logo--adaba      { background: linear-gradient(135deg, #1565c0, #1976d2); }
.radio-logo--frcn       { background: linear-gradient(135deg, #004d00, #007000); }
.radio-logo--talksport  { background: linear-gradient(135deg, #7b0000, #b71c1c); }
.radio-logo--bbc5       { background: linear-gradient(135deg, #003087, #1565c0); }
.radio-logo--bbcws      { background: linear-gradient(135deg, #b71c1c, #d32f2f); }
.radio-logo--voa        { background: linear-gradient(135deg, #003087, #1565c0); }
.radio-logo--dw         { background: linear-gradient(135deg, #006d8f, #0097a7); }
.radio-logo--rhythm     { background: linear-gradient(135deg, #e65100, #ff6d00); }
.radio-logo--capitalfm  { background: linear-gradient(135deg, #4a148c, #7b1fa2); }
.radio-logo--1xtra      { background: linear-gradient(135deg, #212121, #424242); }

.radio-info { flex: 1; min-width: 0; }

.radio-name {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.2rem;
}

.radio-freq {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.radio-onair {
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.5px;
  color: #fff;
  background: #008751;
  padding: 0.15rem 0.45rem;
  border-radius: 4px;
  flex-shrink: 0;
  animation: pulse 2s ease-in-out infinite;
}

/* ── Ad slots ── */
.ad-leaderboard {
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  padding: 0.6rem 2rem;
  display: flex;
  justify-content: center;
}

.ad-placeholder {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: 100%;
  max-width: 728px;
  min-height: 60px;
  border: 1px dashed var(--border);
  border-radius: 6px;
  padding: 0.6rem 1.25rem;
  text-decoration: none;
  transition: border-color 0.15s, background 0.15s;
}

.ad-placeholder:hover {
  border-color: var(--green);
  background: var(--green-dim);
}

.ad-placeholder-text {
  font-size: 0.82rem;
  color: var(--text-muted);
}

.ad-placeholder-cta {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--green-light);
  white-space: nowrap;
}

.ad-sidebar {
  margin-top: 1.25rem;
}

.ad-placeholder--sidebar {
  max-width: 100%;
  min-height: 120px;
  flex-direction: column;
  text-align: center;
  gap: 0.5rem;
}

.footer-link {
  color: var(--green-light);
  text-decoration: none;
  font-weight: 600;
}
.footer-link:hover { text-decoration: underline; }

/* ── Footer ── */
footer {
  border-top: 1px solid var(--border);
  padding: 1.5rem 2rem;
  text-align: center;
  font-size: 0.78rem;
  color: var(--text-muted);
  max-width: 1400px;
  margin: 2rem auto 0;
}
footer p + p { margin-top: 0.3rem; }

/* ── Responsive ── */
@media (max-width: 960px) {
  .tech-layout { grid-template-columns: 1fr; }
  .tech-sidebar { border-top: 1px solid var(--border); padding-top: 1.5rem; }
}

@media (max-width: 600px) {
  header { padding: 0.75rem 1rem; }
  .logo h1 { font-size: 1.2rem; }
  main { padding: 1rem; }
  .tab-nav { padding: 0 0.5rem; }
  .tab-btn { padding: 0.7rem 0.9rem; font-size: 0.8rem; }
  .card-grid { grid-template-columns: 1fr; }
  .trending-grid { grid-template-columns: 1fr; }
}
